From 3e4f034aa35320f269ca3215e9b4bf4944f811a9 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Wed, 2 Dec 2026 11:46:31 +0000 Subject: [PATCH 1/2] [fern-generated] Update SDK Generated by Fern CLI Version: unknown Generators: - fernapi/fern-python-sdk: 5.26.0 --- reference.md | 45824 +--------------- src/auth0/management/__init__.py | 12262 +---- src/auth0/management/actions/__init__.py | 39 - src/auth0/management/actions/client.py | 920 - .../management/actions/executions/__init__.py | 4 - .../management/actions/executions/client.py | 114 - .../actions/executions/raw_client.py | 225 - .../management/actions/modules/__init__.py | 34 - .../management/actions/modules/client.py | 757 - .../management/actions/modules/raw_client.py | 1693 - .../actions/modules/versions/__init__.py | 4 - .../actions/modules/versions/client.py | 309 - .../actions/modules/versions/raw_client.py | 704 - src/auth0/management/actions/raw_client.py | 1645 - .../management/actions/triggers/__init__.py | 34 - .../actions/triggers/bindings/__init__.py | 4 - .../actions/triggers/bindings/client.py | 245 - .../actions/triggers/bindings/raw_client.py | 470 - .../management/actions/triggers/client.py | 127 - .../management/actions/triggers/raw_client.py | 195 - .../management/actions/versions/__init__.py | 4 - .../management/actions/versions/client.py | 337 - .../management/actions/versions/raw_client.py | 669 - src/auth0/management/agents/__init__.py | 4 - src/auth0/management/agents/client.py | 493 - src/auth0/management/agents/raw_client.py | 1059 - src/auth0/management/anomaly/__init__.py | 34 - .../management/anomaly/blocks/__init__.py | 4 - src/auth0/management/anomaly/blocks/client.py | 176 - .../management/anomaly/blocks/raw_client.py | 367 - src/auth0/management/anomaly/client.py | 63 - src/auth0/management/anomaly/raw_client.py | 13 - .../management/attack_protection/__init__.py | 55 - .../bot_detection/__init__.py | 4 - .../attack_protection/bot_detection/client.py | 236 - .../bot_detection/raw_client.py | 464 - .../breached_password_detection/__init__.py | 4 - .../breached_password_detection/client.py | 244 - .../breached_password_detection/raw_client.py | 430 - .../brute_force_protection/__init__.py | 4 - .../brute_force_protection/client.py | 239 - .../brute_force_protection/raw_client.py | 422 - .../attack_protection/captcha/__init__.py | 4 - .../attack_protection/captcha/client.py | 256 - .../attack_protection/captcha/raw_client.py | 488 - .../management/attack_protection/client.py | 163 - .../phone_provider_protection/__init__.py | 4 - .../phone_provider_protection/client.py | 187 - .../phone_provider_protection/raw_client.py | 370 - .../attack_protection/raw_client.py | 13 - .../suspicious_ip_throttling/__init__.py | 4 - .../suspicious_ip_throttling/client.py | 217 - .../suspicious_ip_throttling/raw_client.py | 411 - src/auth0/management/branding/__init__.py | 34 - src/auth0/management/branding/client.py | 268 - .../management/branding/phone/__init__.py | 34 - src/auth0/management/branding/phone/client.py | 82 - .../branding/phone/providers/__init__.py | 4 - .../branding/phone/providers/client.py | 593 - .../branding/phone/providers/raw_client.py | 1346 - .../management/branding/phone/raw_client.py | 13 - .../branding/phone/templates/__init__.py | 4 - .../branding/phone/templates/client.py | 609 - .../branding/phone/templates/raw_client.py | 1458 - src/auth0/management/branding/raw_client.py | 408 - .../management/branding/templates/__init__.py | 4 - .../management/branding/templates/client.py | 280 - .../branding/templates/raw_client.py | 627 - .../management/branding/themes/__init__.py | 4 - .../management/branding/themes/client.py | 866 - .../management/branding/themes/raw_client.py | 1125 - src/auth0/management/client.py | 1137 +- .../management/client_grants/__init__.py | 34 - src/auth0/management/client_grants/client.py | 864 - .../client_grants/organizations/__init__.py | 4 - .../client_grants/organizations/client.py | 163 - .../client_grants/organizations/raw_client.py | 287 - .../management/client_grants/raw_client.py | 1562 - .../management/client_profiles/__init__.py | 4 - .../management/client_profiles/client.py | 533 - .../management/client_profiles/raw_client.py | 1110 - src/auth0/management/clients/__init__.py | 34 - src/auth0/management/clients/client.py | 2436 - .../clients/connections/__init__.py | 4 - .../management/clients/connections/client.py | 204 - .../clients/connections/raw_client.py | 320 - .../clients/credentials/__init__.py | 4 - .../management/clients/credentials/client.py | 671 - .../clients/credentials/raw_client.py | 1198 - src/auth0/management/clients/raw_client.py | 3828 -- .../connection_profiles/__init__.py | 4 - .../management/connection_profiles/client.py | 727 - .../connection_profiles/raw_client.py | 1488 - src/auth0/management/connections/__init__.py | 40 - src/auth0/management/connections/client.py | 989 - .../connections/clients/__init__.py | 4 - .../management/connections/clients/client.py | 251 - .../connections/clients/raw_client.py | 483 - .../directory_provisioning/__init__.py | 34 - .../directory_provisioning/client.py | 990 - .../directory_provisioning/raw_client.py | 2211 - .../synchronizations/__init__.py | 4 - .../synchronizations/client.py | 114 - .../synchronizations/raw_client.py | 248 - .../management/connections/keys/__init__.py | 4 - .../management/connections/keys/client.py | 303 - .../management/connections/keys/raw_client.py | 696 - .../management/connections/raw_client.py | 1675 - .../scim_configuration/__init__.py | 34 - .../connections/scim_configuration/client.py | 584 - .../scim_configuration/raw_client.py | 975 - .../scim_configuration/tokens/__init__.py | 4 - .../scim_configuration/tokens/client.py | 292 - .../scim_configuration/tokens/raw_client.py | 471 - .../management/connections/users/__init__.py | 4 - .../management/connections/users/client.py | 117 - .../connections/users/raw_client.py | 220 - src/auth0/management/core/__init__.py | 5 - src/auth0/management/core/client_wrapper.py | 29 - src/auth0/management/core/pagination.py | 82 - .../management/custom_domains/__init__.py | 4 - src/auth0/management/custom_domains/client.py | 957 - .../management/custom_domains/raw_client.py | 1889 - .../management/device_credentials/__init__.py | 4 - .../management/device_credentials/client.py | 431 - .../device_credentials/raw_client.py | 742 - .../management/email_templates/__init__.py | 4 - .../management/email_templates/client.py | 635 - .../management/email_templates/raw_client.py | 1109 - src/auth0/management/emails/__init__.py | 34 - src/auth0/management/emails/client.py | 63 - .../management/emails/provider/__init__.py | 4 - .../management/emails/provider/client.py | 534 - .../management/emails/provider/raw_client.py | 1056 - src/auth0/management/emails/raw_client.py | 13 - src/auth0/management/environment.py | 7 - src/auth0/management/errors/__init__.py | 77 - .../management/errors/bad_request_error.py | 10 - src/auth0/management/errors/conflict_error.py | 10 - .../errors/content_too_large_error.py | 10 - .../management/errors/forbidden_error.py | 10 - .../errors/gateway_timeout_error.py | 10 - src/auth0/management/errors/gone_error.py | 10 - .../errors/internal_server_error.py | 10 - .../management/errors/not_found_error.py | 10 - .../errors/payment_required_error.py | 10 - .../errors/precondition_failed_error.py | 10 - .../errors/service_unavailable_error.py | 10 - .../errors/too_many_requests_error.py | 10 - .../management/errors/unauthorized_error.py | 10 - .../errors/unprocessable_entity_error.py | 10 - .../management/event_streams/__init__.py | 39 - src/auth0/management/event_streams/client.py | 635 - .../event_streams/deliveries/__init__.py | 4 - .../event_streams/deliveries/client.py | 284 - .../event_streams/deliveries/raw_client.py | 499 - .../management/event_streams/raw_client.py | 1191 - .../event_streams/redeliveries/__init__.py | 4 - .../event_streams/redeliveries/client.py | 242 - .../event_streams/redeliveries/raw_client.py | 467 - .../event_streams/types/__init__.py | 34 - .../types/event_streams_create_request.py | 13 - src/auth0/management/events/__init__.py | 4 - src/auth0/management/events/client.py | 158 - src/auth0/management/events/raw_client.py | 973 - .../management/experimentation/__init__.py | 38 - .../management/experimentation/client.py | 101 - .../experimentation/experiments/__init__.py | 4 - .../experimentation/experiments/client.py | 809 - .../experimentation/experiments/raw_client.py | 1681 - .../experimentation/feature_flags/__init__.py | 34 - .../experimentation/feature_flags/client.py | 561 - .../feature_flags/raw_client.py | 1106 - .../feature_flags/variations/__init__.py | 4 - .../feature_flags/variations/client.py | 508 - .../feature_flags/variations/raw_client.py | 1116 - .../management/experimentation/raw_client.py | 13 - .../experimentation/segments/__init__.py | 4 - .../experimentation/segments/client.py | 530 - .../experimentation/segments/raw_client.py | 1154 - src/auth0/management/flows/__init__.py | 34 - src/auth0/management/flows/client.py | 559 - .../management/flows/executions/__init__.py | 4 - .../management/flows/executions/client.py | 345 - .../management/flows/executions/raw_client.py | 678 - src/auth0/management/flows/raw_client.py | 1137 - src/auth0/management/flows/vault/__init__.py | 34 - src/auth0/management/flows/vault/client.py | 63 - .../flows/vault/connections/__init__.py | 4 - .../flows/vault/connections/client.py | 483 - .../flows/vault/connections/raw_client.py | 1025 - .../management/flows/vault/raw_client.py | 13 - src/auth0/management/forms/__init__.py | 4 - src/auth0/management/forms/client.py | 630 - src/auth0/management/forms/raw_client.py | 1228 - src/auth0/management/groups/__init__.py | 34 - src/auth0/management/groups/client.py | 416 - .../management/groups/members/__init__.py | 4 - src/auth0/management/groups/members/client.py | 175 - .../management/groups/members/raw_client.py | 301 - src/auth0/management/groups/raw_client.py | 683 - src/auth0/management/groups/roles/__init__.py | 4 - src/auth0/management/groups/roles/client.py | 314 - .../management/groups/roles/raw_client.py | 681 - src/auth0/management/guardian/__init__.py | 38 - src/auth0/management/guardian/client.py | 290 - .../guardian/enrollments/__init__.py | 4 - .../management/guardian/enrollments/client.py | 321 - .../guardian/enrollments/raw_client.py | 561 - .../management/guardian/factors/__init__.py | 40 - .../management/guardian/factors/client.py | 287 - .../guardian/factors/duo/__init__.py | 34 - .../management/guardian/factors/duo/client.py | 63 - .../guardian/factors/duo/raw_client.py | 13 - .../guardian/factors/duo/settings/__init__.py | 4 - .../guardian/factors/duo/settings/client.py | 279 - .../factors/duo/settings/raw_client.py | 547 - .../guardian/factors/email/__init__.py | 4 - .../guardian/factors/email/client.py | 192 - .../guardian/factors/email/raw_client.py | 373 - .../guardian/factors/phone/__init__.py | 4 - .../guardian/factors/phone/client.py | 840 - .../guardian/factors/phone/raw_client.py | 1728 - .../factors/push_notification/__init__.py | 4 - .../factors/push_notification/client.py | 1043 - .../factors/push_notification/raw_client.py | 2115 - .../management/guardian/factors/raw_client.py | 350 - .../guardian/factors/sms/__init__.py | 4 - .../management/guardian/factors/sms/client.py | 557 - .../guardian/factors/sms/raw_client.py | 1059 - .../management/guardian/policies/__init__.py | 4 - .../management/guardian/policies/client.py | 207 - .../guardian/policies/raw_client.py | 359 - src/auth0/management/guardian/raw_client.py | 401 - src/auth0/management/hooks/__init__.py | 34 - src/auth0/management/hooks/client.py | 621 - src/auth0/management/hooks/raw_client.py | 1219 - .../management/hooks/secrets/__init__.py | 4 - src/auth0/management/hooks/secrets/client.py | 376 - .../management/hooks/secrets/raw_client.py | 820 - src/auth0/management/jobs/__init__.py | 41 - src/auth0/management/jobs/client.py | 192 - src/auth0/management/jobs/errors/__init__.py | 34 - src/auth0/management/jobs/errors/client.py | 114 - .../management/jobs/errors/raw_client.py | 229 - .../management/jobs/errors/types/__init__.py | 34 - .../jobs/errors/types/errors_get_response.py | 8 - src/auth0/management/jobs/raw_client.py | 225 - .../management/jobs/users_exports/__init__.py | 4 - .../management/jobs/users_exports/client.py | 147 - .../jobs/users_exports/raw_client.py | 259 - .../management/jobs/users_imports/__init__.py | 4 - .../management/jobs/users_imports/client.py | 170 - .../jobs/users_imports/raw_client.py | 311 - .../jobs/verification_email/__init__.py | 4 - .../jobs/verification_email/client.py | 162 - .../jobs/verification_email/raw_client.py | 262 - src/auth0/management/keys/__init__.py | 39 - src/auth0/management/keys/client.py | 120 - .../keys/custom_signing/__init__.py | 4 - .../management/keys/custom_signing/client.py | 247 - .../keys/custom_signing/raw_client.py | 520 - .../management/keys/encryption/__init__.py | 4 - .../management/keys/encryption/client.py | 595 - .../management/keys/encryption/raw_client.py | 1371 - .../management/keys/network_acls/__init__.py | 4 - .../management/keys/network_acls/client.py | 344 - .../keys/network_acls/raw_client.py | 832 - src/auth0/management/keys/raw_client.py | 13 - src/auth0/management/keys/signing/__init__.py | 4 - src/auth0/management/keys/signing/client.py | 313 - .../management/keys/signing/raw_client.py | 716 - src/auth0/management/log_streams/__init__.py | 4 - src/auth0/management/log_streams/client.py | 1455 - .../management/log_streams/raw_client.py | 2002 - src/auth0/management/logs/__init__.py | 4 - src/auth0/management/logs/client.py | 334 - src/auth0/management/logs/raw_client.py | 559 - src/auth0/management/network_acls/__init__.py | 4 - src/auth0/management/network_acls/client.py | 650 - .../management/network_acls/raw_client.py | 1382 - .../management/organizations/__init__.py | 64 - src/auth0/management/organizations/client.py | 1087 - .../organizations/client_grants/__init__.py | 4 - .../organizations/client_grants/client.py | 363 - .../organizations/client_grants/raw_client.py | 727 - .../organizations/clients/__init__.py | 4 - .../organizations/clients/client.py | 532 - .../organizations/clients/raw_client.py | 1181 - .../organizations/connections/__init__.py | 4 - .../organizations/connections/client.py | 665 - .../organizations/connections/raw_client.py | 1175 - .../discovery_domains/__init__.py | 4 - .../organizations/discovery_domains/client.py | 649 - .../discovery_domains/raw_client.py | 1307 - .../enabled_connections/__init__.py | 4 - .../enabled_connections/client.py | 597 - .../enabled_connections/raw_client.py | 1203 - .../organizations/groups/__init__.py | 34 - .../management/organizations/groups/client.py | 176 - .../organizations/groups/raw_client.py | 277 - .../organizations/groups/roles/__init__.py | 4 - .../organizations/groups/roles/client.py | 366 - .../organizations/groups/roles/raw_client.py | 746 - .../organizations/invitations/__init__.py | 4 - .../organizations/invitations/client.py | 594 - .../organizations/invitations/raw_client.py | 1034 - .../organizations/members/__init__.py | 34 - .../organizations/members/client.py | 435 - .../members/effective_roles/__init__.py | 34 - .../members/effective_roles/client.py | 188 - .../members/effective_roles/raw_client.py | 289 - .../effective_roles/sources/__init__.py | 34 - .../members/effective_roles/sources/client.py | 63 - .../sources/groups/__init__.py | 4 - .../effective_roles/sources/groups/client.py | 179 - .../sources/groups/raw_client.py | 301 - .../effective_roles/sources/raw_client.py | 13 - .../organizations/members/raw_client.py | 705 - .../organizations/members/roles/__init__.py | 4 - .../organizations/members/roles/client.py | 392 - .../organizations/members/roles/raw_client.py | 734 - .../management/organizations/raw_client.py | 1765 - .../organizations/roles/__init__.py | 34 - .../management/organizations/roles/client.py | 82 - .../organizations/roles/groups/__init__.py | 4 - .../organizations/roles/groups/client.py | 163 - .../organizations/roles/groups/raw_client.py | 287 - .../organizations/roles/members/__init__.py | 4 - .../organizations/roles/members/client.py | 207 - .../organizations/roles/members/raw_client.py | 321 - .../organizations/roles/raw_client.py | 13 - src/auth0/management/portals/__init__.py | 4 - src/auth0/management/portals/client.py | 496 - src/auth0/management/portals/raw_client.py | 1262 - src/auth0/management/prompts/__init__.py | 38 - src/auth0/management/prompts/client.py | 269 - .../prompts/custom_text/__init__.py | 4 - .../management/prompts/custom_text/client.py | 232 - .../prompts/custom_text/raw_client.py | 427 - .../management/prompts/partials/__init__.py | 4 - .../management/prompts/partials/client.py | 205 - .../management/prompts/partials/raw_client.py | 404 - src/auth0/management/prompts/raw_client.py | 390 - .../management/prompts/rendering/__init__.py | 4 - .../management/prompts/rendering/client.py | 560 - .../prompts/rendering/raw_client.py | 1095 - .../rate_limit_policies/__init__.py | 4 - .../management/rate_limit_policies/client.py | 534 - .../rate_limit_policies/raw_client.py | 1076 - src/auth0/management/raw_client.py | 211 + .../management/refresh_tokens/__init__.py | 4 - src/auth0/management/refresh_tokens/client.py | 539 - .../management/refresh_tokens/raw_client.py | 1106 - .../management/resource_servers/__init__.py | 4 - .../management/resource_servers/client.py | 1107 - .../management/resource_servers/raw_client.py | 1936 - .../management/risk_assessments/__init__.py | 34 - .../management/risk_assessments/client.py | 63 - .../management/risk_assessments/raw_client.py | 13 - .../risk_assessments/settings/__init__.py | 34 - .../risk_assessments/settings/client.py | 206 - .../settings/new_device/__init__.py | 4 - .../settings/new_device/client.py | 186 - .../settings/new_device/raw_client.py | 414 - .../risk_assessments/settings/raw_client.py | 410 - src/auth0/management/roles/__init__.py | 34 - src/auth0/management/roles/client.py | 619 - src/auth0/management/roles/groups/__init__.py | 4 - src/auth0/management/roles/groups/client.py | 314 - .../management/roles/groups/raw_client.py | 681 - .../management/roles/permissions/__init__.py | 4 - .../management/roles/permissions/client.py | 367 - .../roles/permissions/raw_client.py | 701 - src/auth0/management/roles/raw_client.py | 1145 - src/auth0/management/roles/users/__init__.py | 4 - src/auth0/management/roles/users/client.py | 288 - .../management/roles/users/raw_client.py | 533 - src/auth0/management/rules/__init__.py | 4 - src/auth0/management/rules/client.py | 605 - src/auth0/management/rules/raw_client.py | 1233 - .../management/rules_configs/__init__.py | 4 - src/auth0/management/rules_configs/client.py | 258 - .../management/rules_configs/raw_client.py | 487 - .../self_service_profiles/__init__.py | 34 - .../self_service_profiles/client.py | 628 - .../custom_text/__init__.py | 4 - .../custom_text/client.py | 259 - .../custom_text/raw_client.py | 441 - .../self_service_profiles/raw_client.py | 1273 - .../sso_ticket/__init__.py | 4 - .../sso_ticket/client.py | 320 - .../sso_ticket/raw_client.py | 546 - src/auth0/management/sessions/__init__.py | 4 - src/auth0/management/sessions/client.py | 343 - src/auth0/management/sessions/raw_client.py | 766 - src/auth0/management/stats/__init__.py | 4 - src/auth0/management/stats/client.py | 195 - src/auth0/management/stats/raw_client.py | 370 - .../supplemental_signals/__init__.py | 4 - .../management/supplemental_signals/client.py | 180 - .../supplemental_signals/raw_client.py | 387 - src/auth0/management/tenants/__init__.py | 34 - src/auth0/management/tenants/client.py | 63 - src/auth0/management/tenants/raw_client.py | 13 - .../management/tenants/settings/__init__.py | 4 - .../management/tenants/settings/client.py | 666 - .../management/tenants/settings/raw_client.py | 926 - src/auth0/management/tickets/__init__.py | 4 - src/auth0/management/tickets/client.py | 364 - src/auth0/management/tickets/raw_client.py | 625 - .../token_exchange_profiles/__init__.py | 4 - .../token_exchange_profiles/client.py | 541 - .../token_exchange_profiles/raw_client.py | 1101 - src/auth0/management/types/__init__.py | 14657 +---- src/auth0/management/types/action.py | 98 - src/auth0/management/types/action_base.py | 53 - src/auth0/management/types/action_binding.py | 46 - .../management/types/action_binding_ref.py | 28 - .../types/action_binding_ref_type_enum.py | 5 - .../types/action_binding_type_enum.py | 5 - .../types/action_binding_with_ref.py | 30 - .../types/action_build_status_enum.py | 7 - .../types/action_deployed_version.py | 101 - src/auth0/management/types/action_error.py | 25 - .../types/action_execution_result.py | 39 - .../types/action_execution_status_enum.py | 7 - .../management/types/action_module_action.py | 43 - .../types/action_module_dependency.py | 27 - .../types/action_module_dependency_request.py | 27 - .../types/action_module_list_item.py | 70 - .../types/action_module_reference.py | 41 - .../management/types/action_module_secret.py | 28 - .../types/action_module_secret_request.py | 27 - .../management/types/action_module_version.py | 55 - .../types/action_module_version_reference.py | 54 - .../management/types/action_secret_request.py | 27 - .../types/action_secret_response.py | 28 - src/auth0/management/types/action_trigger.py | 48 - .../action_trigger_compatible_trigger.py | 24 - .../types/action_trigger_type_enum.py | 24 - src/auth0/management/types/action_version.py | 97 - .../types/action_version_build_status_enum.py | 7 - .../types/action_version_dependency.py | 36 - .../management/types/acul_client_filter.py | 8 - .../types/acul_client_filter_by_id.py | 22 - .../types/acul_client_filter_by_metadata.py | 20 - .../management/types/acul_client_metadata.py | 8 - src/auth0/management/types/acul_configs.py | 10 - .../management/types/acul_configs_item.py | 48 - .../types/acul_context_configuration.py | 10 - .../types/acul_context_configuration_item.py | 7 - .../management/types/acul_context_enum.py | 28 - .../management/types/acul_domain_filter.py | 8 - .../types/acul_domain_filter_by_id.py | 22 - .../types/acul_domain_filter_by_metadata.py | 20 - .../management/types/acul_domain_metadata.py | 8 - src/auth0/management/types/acul_filters.py | 41 - src/auth0/management/types/acul_head_tag.py | 27 - .../types/acul_head_tag_attributes.py | 8 - .../management/types/acul_head_tag_content.py | 7 - .../management/types/acul_match_type_enum.py | 5 - .../types/acul_organization_filter.py | 8 - .../types/acul_organization_filter_by_id.py | 22 - .../acul_organization_filter_by_metadata.py | 20 - .../types/acul_organization_metadata.py | 8 - .../types/acul_rendering_mode_enum.py | 5 - ...rganization_connection_response_content.py | 40 - .../types/advance_ramp_response_content.py | 22 - src/auth0/management/types/agent_metadata.py | 8 - .../types/agent_response_content.py | 46 - src/auth0/management/types/allocation_item.py | 28 - .../types/allocation_request_item.py | 47 - .../types/allocation_strategy_enum.py | 5 - .../management/types/anomaly_ip_format.py | 6 - .../management/types/anonymous_sessions.py | 26 - src/auth0/management/types/app_metadata.py | 8 - .../management/types/assessors_type_enum.py | 5 - ...anization_client_grant_response_content.py | 44 - ...nc_approval_notifications_channels_enum.py | 7 - ...tection_captcha_arkose_response_content.py | 37 - ...otection_captcha_auth_challenge_request.py | 22 - ...captcha_auth_challenge_response_content.py | 22 - ...ptcha_friendly_captcha_response_content.py | 22 - ...ction_captcha_hcaptcha_response_content.py | 22 - .../attack_protection_captcha_provider_id.py | 16 - ...a_recaptcha_enterprise_response_content.py | 27 - ..._captcha_recaptcha_v_2_response_content.py | 22 - ...captcha_simple_captcha_response_content.py | 5 - ...attack_protection_update_captcha_arkose.py | 42 - ...tection_update_captcha_friendly_captcha.py | 27 - ...tack_protection_update_captcha_hcaptcha.py | 27 - ...ion_update_captcha_recaptcha_enterprise.py | 32 - ...protection_update_captcha_recaptcha_v_2.py | 27 - .../types/authentication_flow_enum.py | 8 - .../types/authentication_method_type_enum.py | 20 - .../types/authentication_type_enum.py | 5 - .../types/b_2_b_integration_configuration.py | 29 - ...ion_configuration_integration_type_enum.py | 7 - .../management/types/bad_request_schema.py | 28 - .../types/bad_request_schema_error.py | 5 - .../types/bot_detection_allowlist.py | 10 - ...ion_challenge_policy_password_flow_enum.py | 5 - ...allenge_policy_password_reset_flow_enum.py | 7 - ...challenge_policy_passwordless_flow_enum.py | 7 - .../types/bot_detection_cidr_block.py | 6 - .../management/types/bot_detection_i_pv_4.py | 6 - .../management/types/bot_detection_i_pv_6.py | 6 - .../types/bot_detection_i_pv_6_cidr_block.py | 6 - .../bot_detection_ip_address_or_cidr_block.py | 6 - .../types/bot_detection_level_enum.py | 5 - .../bot_detection_monitoring_mode_enabled.py | 6 - src/auth0/management/types/branding_colors.py | 29 - src/auth0/management/types/branding_font.py | 26 - .../types/branding_page_background.py | 5 - .../types/branding_theme_borders.py | 56 - ...anding_theme_borders_buttons_style_enum.py | 5 - ...randing_theme_borders_inputs_style_enum.py | 5 - .../management/types/branding_theme_colors.py | 114 - ..._theme_colors_captcha_widget_theme_enum.py | 5 - .../types/branding_theme_font_body_text.py | 31 - .../types/branding_theme_font_buttons_text.py | 31 - .../types/branding_theme_font_input_labels.py | 31 - .../types/branding_theme_font_links.py | 31 - .../branding_theme_font_links_style_enum.py | 5 - .../types/branding_theme_font_subtitle.py | 31 - .../types/branding_theme_font_title.py | 31 - .../management/types/branding_theme_fonts.py | 42 - .../types/branding_theme_identifiers.py | 27 - ...ng_theme_identifiers_login_display_enum.py | 5 - ...randing_theme_identifiers_phone_display.py | 26 - ...entifiers_phone_display_formatting_enum.py | 7 - ..._identifiers_phone_display_masking_enum.py | 7 - .../types/branding_theme_page_background.py | 30 - ..._theme_page_background_page_layout_enum.py | 5 - .../management/types/branding_theme_widget.py | 34 - ...theme_widget_header_text_alignment_enum.py | 5 - ...randing_theme_widget_logo_position_enum.py | 5 - ...theme_widget_social_buttons_layout_enum.py | 5 - ...ction_admin_notification_frequency_enum.py | 7 - ...breached_password_detection_method_enum.py | 5 - ...ection_pre_change_password_shields_enum.py | 7 - ...ord_detection_pre_change_password_stage.py | 28 - ...tion_pre_user_registration_shields_enum.py | 7 - ...d_detection_pre_user_registration_stage.py | 28 - ...reached_password_detection_shields_enum.py | 7 - .../breached_password_detection_stage.py | 32 - ...ce_protection_form_submission_mode_enum.py | 5 - .../types/brute_force_protection_mode_enum.py | 7 - .../brute_force_protection_shields_enum.py | 5 - .../bulk_update_acul_response_content.py | 20 - .../certificate_subject_dn_credential.py | 34 - ...ificate_subject_dn_credential_type_enum.py | 5 - .../types/change_password_ticket_identity.py | 33 - ...change_password_ticket_response_content.py | 22 - .../cimd_external_metadata_created_by_enum.py | 5 - ...md_mapped_client_authentication_methods.py | 26 - ..._authentication_methods_private_key_jwt.py | 27 - .../types/cimd_mapped_client_fields.py | 69 - .../cimd_mapped_private_key_jwt_credential.py | 32 - .../types/cimd_validation_result.py | 36 - src/auth0/management/types/client.py | 299 - .../management/types/client_addon_aws.py | 36 - .../types/client_addon_azure_blob.py | 117 - .../management/types/client_addon_azure_sb.py | 62 - .../management/types/client_addon_box.py | 8 - .../types/client_addon_cloud_bees.py | 8 - .../management/types/client_addon_concur.py | 8 - .../management/types/client_addon_dropbox.py | 8 - .../types/client_addon_echo_sign.py | 26 - .../management/types/client_addon_egnyte.py | 26 - .../management/types/client_addon_firebase.py | 46 - .../management/types/client_addon_layer.py | 60 - .../management/types/client_addon_mscrm.py | 26 - .../types/client_addon_new_relic.py | 26 - .../management/types/client_addon_oag.py | 21 - .../types/client_addon_office_365.py | 31 - .../management/types/client_addon_rms.py | 26 - .../types/client_addon_salesforce.py | 26 - .../types/client_addon_salesforce_api.py | 47 - .../client_addon_salesforce_sandbox_api.py | 47 - .../management/types/client_addon_saml.py | 67 - .../types/client_addon_saml_mapping.py | 5 - .../management/types/client_addon_sapapi.py | 78 - .../management/types/client_addon_sentry.py | 31 - .../types/client_addon_share_point.py | 29 - .../client_addon_share_point_external_url.py | 5 - .../management/types/client_addon_slack.py | 26 - .../types/client_addon_spring_cm.py | 26 - .../types/client_addon_sso_integration.py | 27 - .../management/types/client_addon_wams.py | 26 - .../management/types/client_addon_ws_fed.py | 8 - .../management/types/client_addon_zendesk.py | 35 - .../management/types/client_addon_zoom.py | 26 - src/auth0/management/types/client_addons.py | 86 - ...s_session_transfer_network_binding_enum.py | 5 - .../management/types/client_app_type_enum.py | 34 - ...ations_channels_api_patch_configuration.py | 12 - ...cations_channels_api_post_configuration.py | 10 - .../types/client_authentication_method.py | 28 - ...t_authentication_method_private_key_jwt.py | 24 - ...tion_method_private_key_jwt_credentials.py | 10 - ...tion_method_self_signed_tls_client_auth.py | 26 - ...self_signed_tls_client_auth_credentials.py | 10 - ...t_authentication_method_tls_client_auth.py | 24 - ...tion_method_tls_client_auth_credentials.py | 10 - .../types/client_compliance_level_enum.py | 8 - .../client_create_authentication_method.py | 30 - ...e_authentication_method_private_key_jwt.py | 26 - ...tion_method_private_key_jwt_credentials.py | 10 - ...e_authentication_method_tls_client_auth.py | 26 - ...tion_method_tls_client_auth_credentials.py | 10 - .../management/types/client_credential.py | 68 - .../types/client_credential_algorithm_enum.py | 5 - .../types/client_credential_type_enum.py | 5 - .../types/client_default_organization.py | 32 - .../client_default_organization_flows_enum.py | 5 - .../management/types/client_encryption_key.py | 36 - ...lient_external_metadata_created_by_enum.py | 5 - .../client_external_metadata_status_enum.py | 5 - .../client_external_metadata_type_enum.py | 5 - ...lient_grant_allow_any_organization_enum.py | 6 - .../types/client_grant_default_for_enum.py | 5 - ..._grant_organization_nullable_usage_enum.py | 5 - .../client_grant_organization_usage_enum.py | 5 - .../types/client_grant_response_content.py | 63 - .../types/client_grant_sort_field_enum.py | 5 - .../types/client_grant_subject_type_enum.py | 5 - .../types/client_jwt_configuration.py | 36 - .../types/client_jwt_configuration_scopes.py | 8 - src/auth0/management/types/client_metadata.py | 8 - src/auth0/management/types/client_mobile.py | 26 - .../management/types/client_mobile_android.py | 40 - .../management/types/client_mobilei_os.py | 31 - ...n_configuration_allowed_strategies_enum.py | 7 - ...party_client_access_allowed_values_enum.py | 7 - ..._party_client_access_default_value_enum.py | 7 - ..._my_organization_deletion_behavior_enum.py | 5 - ...ent_my_organization_patch_configuration.py | 60 - ...ient_my_organization_post_configuration.py | 60 - ..._my_organization_response_configuration.py | 60 - ...third_party_client_access_configuration.py | 35 - ...ient_oidc_backchannel_logout_initiators.py | 26 - ...oidc_backchannel_logout_initiators_enum.py | 19 - ...backchannel_logout_initiators_mode_enum.py | 5 - ...idc_backchannel_logout_session_metadata.py | 26 - ...client_oidc_backchannel_logout_settings.py | 31 - .../management/types/client_oidc_support.py | 37 - ...client_oidc_support_allowed_scopes_enum.py | 5 - .../types/client_oidc_support_patch.py | 37 - .../types/client_oidc_support_post.py | 37 - .../client_organization_discovery_enum.py | 5 - ...ient_organization_require_behavior_enum.py | 7 - ...rganization_require_behavior_patch_enum.py | 7 - .../types/client_organization_usage_enum.py | 5 - .../client_organization_usage_patch_enum.py | 5 - src/auth0/management/types/client_profile.py | 38 - .../types/client_profile_apply_policy.py | 28 - ...olicy_external_metadata_created_by_enum.py | 5 - ...pply_policy_external_metadata_type_enum.py | 5 - .../client_profile_client_configuration.py | 40 - ...ofile_client_configuration_oidc_support.py | 26 - ...ration_oidc_support_allowed_scopes_enum.py | 7 - ...onfiguration_oidc_support_default_value.py | 41 - ...tion_organization_discovery_method_enum.py | 7 - ...guration_organization_discovery_methods.py | 26 - ...iguration_organization_require_behavior.py | 26 - ...tion_organization_require_behavior_enum.py | 7 - ...client_configuration_organization_usage.py | 26 - ...t_configuration_organization_usage_enum.py | 7 - ...file_client_configuration_refresh_token.py | 28 - ...nfiguration_require_proof_of_possession.py | 23 - .../types/client_profile_description.py | 8 - .../management/types/client_profile_id.py | 6 - .../management/types/client_profile_name.py | 6 - ...ofile_refresh_token_idle_token_lifetime.py | 23 - .../client_profile_refresh_token_leeway.py | 23 - ...nt_profile_refresh_token_token_lifetime.py | 23 - .../types/client_redirection_policy_enum.py | 5 - .../client_refresh_token_configuration.py | 56 - .../types/client_refresh_token_policy.py | 27 - .../types/client_search_response.py | 288 - ...fer_allowed_authentication_methods_enum.py | 5 - .../client_session_transfer_configuration.py | 56 - ...ssion_transfer_delegation_configuration.py | 29 - ...transfer_delegation_device_binding_enum.py | 5 - ...nt_session_transfer_device_binding_enum.py | 5 - ...igned_request_object_with_credential_id.py | 29 - ...t_signed_request_object_with_public_key.py | 29 - .../management/types/client_signing_key.py | 38 - .../management/types/client_signing_keys.py | 10 - .../types/client_sort_field_enum.py | 5 - .../client_third_party_security_mode_enum.py | 5 - .../client_token_endpoint_auth_method_enum.py | 7 - ...token_endpoint_auth_method_or_null_enum.py | 7 - .../client_token_exchange_configuration.py | 27 - ...nt_token_exchange_configuration_or_null.py | 27 - .../types/client_token_exchange_type_enum.py | 7 - ...lt_privileged_access_with_credential_id.py | 28 - ...vault_privileged_access_with_public_key.py | 28 - src/auth0/management/types/conflict_schema.py | 28 - .../management/types/conflict_schema_error.py | 5 - .../management/types/connected_account.py | 60 - .../connected_account_access_type_enum.py | 5 - .../connection_access_token_urlo_auth_1.py | 8 - .../types/connection_acr_values_supported.py | 8 - ...min_access_token_expires_in_google_apps.py | 8 - ...nnection_admin_access_token_google_apps.py | 6 - ...nection_admin_refresh_token_google_apps.py | 6 - .../management/types/connection_agent_ipad.py | 6 - .../types/connection_agent_mode_ad.py | 6 - .../types/connection_agent_version_ad.py | 6 - ...ction_allowed_audiences_google_o_auth_2.py | 8 - .../types/connection_api_behavior_enum.py | 5 - .../types/connection_api_enable_groups.py | 3 - ...onnection_api_enable_groups_google_apps.py | 8 - .../types/connection_api_enable_users.py | 3 - ...connection_api_enable_users_google_apps.py | 8 - .../types/connection_app_domain_azure_ad.py | 6 - ...rtion_decryption_algorithm_profile_enum.py | 5 - ...onnection_assertion_decryption_settings.py | 28 - .../connection_attribute_map_attributes.py | 8 - .../types/connection_attribute_map_oidc.py | 28 - .../types/connection_attribute_map_okta.py | 28 - ...connection_attribute_map_userinfo_scope.py | 6 - .../management/types/connection_attributes.py | 28 - ...h_params_additional_properties_o_auth_2.py | 6 - .../types/connection_auth_params_email.py | 6 - .../types/connection_auth_params_map.py | 8 - .../types/connection_auth_params_o_auth_2.py | 10 - .../connection_authentication_methods.py | 30 - .../connection_authentication_purpose.py | 23 - .../connection_authorization_endpoint.py | 3 - .../types/connection_base_url_exact.py | 6 - .../connection_brute_force_protection.py | 6 - .../connection_calculated_thumbprint_saml.py | 5 - .../management/types/connection_certs_ad.py | 8 - .../types/connection_claim_types_supported.py | 8 - .../connection_claims_locales_supported.py | 8 - .../connection_claims_parameter_supported.py | 6 - .../types/connection_claims_supported.py | 8 - .../management/types/connection_client_id.py | 6 - .../types/connection_client_id_amazon.py | 6 - .../types/connection_client_id_azure_ad.py | 6 - .../types/connection_client_id_bitbucket.py | 6 - .../types/connection_client_id_exact.py | 6 - .../types/connection_client_id_facebook.py | 6 - .../types/connection_client_id_google_apps.py | 6 - .../connection_client_id_google_o_auth_2.py | 6 - .../types/connection_client_id_line.py | 6 - .../types/connection_client_id_linkedin.py | 6 - .../types/connection_client_id_o_auth_1.py | 6 - .../types/connection_client_id_o_auth_2.py | 6 - .../types/connection_client_id_oidc.py | 6 - .../types/connection_client_id_paypal.py | 6 - .../types/connection_client_id_salesforce.py | 6 - ...ection_client_id_samlxaa_requesting_app.py | 8 - .../connection_client_id_windows_live.py | 6 - .../types/connection_client_protocol_saml.py | 10 - .../types/connection_client_secret.py | 6 - .../types/connection_client_secret_amazon.py | 6 - .../connection_client_secret_azure_ad.py | 6 - .../connection_client_secret_bitbucket.py | 6 - .../types/connection_client_secret_exact.py | 6 - .../connection_client_secret_facebook.py | 6 - .../connection_client_secret_google_apps.py | 6 - ...onnection_client_secret_google_o_auth_2.py | 6 - .../types/connection_client_secret_line.py | 6 - .../connection_client_secret_linkedin.py | 6 - .../connection_client_secret_o_auth_1.py | 6 - .../connection_client_secret_o_auth_2.py | 6 - .../types/connection_client_secret_oidc.py | 6 - .../types/connection_client_secret_paypal.py | 6 - .../connection_client_secret_salesforce.py | 6 - ...on_client_secret_samlxaa_requesting_app.py | 6 - .../connection_client_secret_windows_live.py | 6 - .../management/types/connection_common.py | 26 - ...onnection_community_base_url_salesforce.py | 8 - .../types/connection_configuration.py | 8 - .../connection_connected_accounts_purpose.py | 28 - ...nnection_connected_accounts_purpose_xaa.py | 28 - .../types/connection_connection_settings.py | 24 - ...onnection_connection_settings_pkce_enum.py | 5 - ...onnection_cross_app_access_resource_app.py | 24 - ...oss_app_access_resource_app_status_enum.py | 5 - .../connection_custom_headers_o_auth_2.py | 8 - .../types/connection_custom_scripts.py | 31 - .../management/types/connection_debug_saml.py | 6 - .../types/connection_decryption_key_saml.py | 7 - .../connection_decryption_key_saml_cert.py | 31 - .../types/connection_destination_url_saml.py | 8 - .../connection_digest_algorithm_enum_saml.py | 5 - .../types/connection_digest_algorithm_saml.py | 8 - ...on_disable_self_service_change_password.py | 6 - .../types/connection_disable_signup.py | 6 - .../types/connection_disable_signup_sms.py | 8 - .../types/connection_discovery_url.py | 8 - .../types/connection_display_name.py | 6 - .../connection_display_values_supported.py | 8 - .../types/connection_domain_aliases.py | 10 - .../types/connection_domain_aliases_ad.py | 8 - .../connection_domain_aliases_azure_ad.py | 8 - .../connection_domain_aliases_items_one.py | 3 - .../types/connection_domain_aliases_saml.py | 10 - .../types/connection_domain_google_apps.py | 6 - .../types/connection_domain_okta.py | 6 - .../types/connection_dpop_signing_alg_enum.py | 5 - ...ction_dpop_signing_alg_values_supported.py | 8 - .../types/connection_email_body_email.py | 6 - .../types/connection_email_email.py | 37 - .../types/connection_email_email_syntax.py | 5 - .../types/connection_email_from_email.py | 6 - ...nection_email_otp_authentication_method.py | 26 - .../types/connection_email_subject_email.py | 6 - ...on_enable_pushed_authorization_requests.py | 6 - .../types/connection_enable_script_context.py | 6 - .../types/connection_enabled_client.py | 22 - .../types/connection_enabled_clients.py | 8 - ...nnection_enabled_database_customization.py | 6 - .../types/connection_end_session_endpoint.py | 6 - .../types/connection_entity_id_saml.py | 6 - .../management/types/connection_ext_admin.py | 6 - .../types/connection_ext_agreed_terms.py | 6 - ...connection_ext_agreed_terms_google_apps.py | 8 - .../types/connection_ext_assigned_plans.py | 6 - .../management/types/connection_ext_groups.py | 3 - .../types/connection_ext_groups_azure_ad.py | 8 - .../connection_ext_groups_google_apps.py | 8 - .../connection_ext_is_admin_google_apps.py | 8 - .../types/connection_ext_is_suspended.py | 6 - ...connection_ext_is_suspended_google_apps.py | 8 - .../types/connection_ext_profile.py | 6 - .../management/types/connection_fields_map.py | 8 - .../types/connection_fields_map_saml.py | 10 - .../types/connection_fields_map_saml_value.py | 5 - .../management/types/connection_for_list.py | 65 - .../types/connection_for_organization.py | 41 - .../types/connection_forward_req_info_sms.py | 6 - .../connection_freeform_scopes_amazon.py | 8 - ...nection_freeform_scopes_google_o_auth_2.py | 8 - .../connection_freeform_scopes_linkedin.py | 8 - .../connection_freeform_scopes_paypal.py | 8 - .../connection_freeform_scopes_salesforce.py | 8 - ...connection_freeform_scopes_windows_live.py | 8 - .../management/types/connection_from_sms.py | 6 - .../connection_gateway_authentication.py | 54 - ...ion_gateway_authentication_audience_sms.py | 6 - ...ction_gateway_authentication_method_sms.py | 6 - .../connection_gateway_authentication_sms.py | 44 - ...tion_gateway_authentication_subject_sms.py | 6 - .../types/connection_gateway_url_sms.py | 8 - ...on_global_token_revocation_jwt_iss_saml.py | 6 - ...on_global_token_revocation_jwt_sub_saml.py | 6 - .../types/connection_grant_types_supported.py | 8 - ...on_handle_login_from_social_google_apps.py | 6 - ...connection_https_url_with_http_fallback.py | 3 - ...ction_https_url_with_http_fallback_2048.py | 3 - ...ection_https_url_with_http_fallback_255.py | 3 - .../management/types/connection_icon_url.py | 6 - .../types/connection_icon_url_adfs.py | 8 - .../types/connection_icon_url_azure_ad.py | 8 - .../types/connection_icon_url_google_apps.py | 8 - .../connection_icon_url_google_o_auth_2.py | 8 - .../types/connection_icon_url_saml.py | 8 - src/auth0/management/types/connection_id.py | 6 - ...d_token_encryption_alg_values_supported.py | 8 - ...d_token_encryption_enc_values_supported.py | 8 - ...ction_id_token_session_expiry_supported.py | 6 - ...ction_id_token_signed_response_alg_enum.py | 7 - ...onnection_id_token_signed_response_algs.py | 10 - ...n_id_token_signing_alg_values_supported.py | 8 - .../types/connection_identifier_precedence.py | 10 - .../connection_identifier_precedence_enum.py | 5 - .../types/connection_identity_api_azure_ad.py | 8 - .../connection_identity_api_enum_azure_ad.py | 7 - .../connection_identity_provider_enum.py | 73 - .../types/connection_import_mode.py | 6 - .../management/types/connection_ips_ad.py | 8 - .../types/connection_is_domain_connection.py | 6 - .../management/types/connection_issuer.py | 6 - .../management/types/connection_jwks_uri.py | 6 - src/auth0/management/types/connection_key.py | 71 - .../types/connection_key_use_enum.py | 5 - .../connection_mapping_mode_enum_oidc.py | 5 - .../connection_mapping_mode_enum_okta.py | 5 - .../connection_max_groups_to_retrieve.py | 6 - .../connection_messaging_service_sid_sms.py | 6 - .../types/connection_metadata_url_saml.py | 8 - .../types/connection_metadata_xml.py | 6 - .../types/connection_metadata_xml_adfs.py | 8 - .../types/connection_metadata_xml_saml.py | 8 - src/auth0/management/types/connection_mfa.py | 31 - src/auth0/management/types/connection_name.py | 6 - .../types/connection_name_prefix_template.py | 6 - .../types/connection_non_persistent_attrs.py | 8 - .../types/connection_op_policy_uri.py | 6 - .../management/types/connection_op_tos_uri.py | 6 - .../management/types/connection_options.py | 8 - .../management/types/connection_options_ad.py | 96 - .../types/connection_options_adfs.py | 79 - .../types/connection_options_amazon.py | 45 - .../types/connection_options_apple.py | 67 - .../types/connection_options_auth_0.py | 83 - .../types/connection_options_auth_0_oidc.py | 26 - .../types/connection_options_azure_ad.py | 305 - .../types/connection_options_baidu.py | 22 - .../types/connection_options_bitbucket.py | 34 - .../types/connection_options_bitly.py | 22 - .../types/connection_options_box.py | 22 - .../connection_options_client_id_github.py | 6 - .../connection_options_client_id_twitter.py | 6 - ...connection_options_client_secret_github.py | 6 - ...onnection_options_client_secret_twitter.py | 6 - .../types/connection_options_common.py | 24 - .../types/connection_options_common_oidc.py | 78 - .../types/connection_options_common_saml.py | 88 - .../types/connection_options_custom.py | 8 - .../types/connection_options_daccount.py | 22 - .../types/connection_options_deflate_saml.py | 6 - .../types/connection_options_dropbox.py | 22 - .../types/connection_options_dwolla.py | 22 - .../types/connection_options_email.py | 44 - .../types/connection_options_evernote.py | 22 - .../types/connection_options_exact.py | 42 - .../types/connection_options_facebook.py | 239 - .../types/connection_options_fitbit.py | 22 - ...nnection_options_freeform_scopes_github.py | 8 - .../types/connection_options_git_hub.py | 134 - .../types/connection_options_google_apps.py | 86 - .../connection_options_google_o_auth_2.py | 363 - ...idp_initiated_client_protocol_enum_saml.py | 5 - .../connection_options_idpinitiated_saml.py | 38 - .../types/connection_options_instagram.py | 22 - .../management/types/connection_options_ip.py | 8 - .../types/connection_options_line.py | 43 - .../types/connection_options_linkedin.py | 70 - .../types/connection_options_o_auth_1.py | 57 - .../connection_options_o_auth_1_common.py | 33 - .../types/connection_options_o_auth_2.py | 93 - .../connection_options_o_auth_2_common.py | 29 - .../types/connection_options_office_365.py | 26 - .../types/connection_options_oidc.py | 30 - .../types/connection_options_oidc_metadata.py | 114 - .../types/connection_options_okta.py | 30 - .../types/connection_options_paypal.py | 52 - .../types/connection_options_ping_federate.py | 38 - .../connection_options_planning_center.py | 22 - ...onnection_options_protocol_enum_twitter.py | 5 - .../types/connection_options_salesforce.py | 40 - ...connection_options_salesforce_community.py | 25 - .../types/connection_options_saml.py | 110 - .../types/connection_options_scope_github.py | 8 - .../types/connection_options_scope_twitter.py | 8 - .../types/connection_options_sharepoint.py | 22 - .../types/connection_options_shop.py | 22 - .../types/connection_options_shopify.py | 22 - .../types/connection_options_sms.py | 61 - .../types/connection_options_soundcloud.py | 22 - ...connection_options_thirty_seven_signals.py | 22 - .../types/connection_options_twitter.py | 56 - .../types/connection_options_untappd.py | 22 - .../types/connection_options_vkontakte.py | 22 - .../types/connection_options_weibo.py | 22 - .../types/connection_options_windows_live.py | 326 - .../types/connection_options_wordpress.py | 22 - .../types/connection_options_yahoo.py | 22 - .../types/connection_options_yandex.py | 22 - .../types/connection_otp_channel_settings.py | 31 - .../types/connection_otp_settings.py | 25 - ...onnection_passkey_authentication_method.py | 32 - .../connection_passkey_challenge_ui_enum.py | 5 - .../types/connection_passkey_options.py | 33 - ...nnection_password_authentication_method.py | 31 - .../connection_password_complexity_options.py | 26 - .../connection_password_dictionary_options.py | 27 - .../connection_password_history_options.py | 24 - ...ction_password_no_personal_info_options.py | 23 - .../types/connection_password_options.py | 30 - .../connection_password_options_complexity.py | 41 - .../connection_password_options_dictionary.py | 36 - .../connection_password_options_history.py | 31 - ...onnection_password_options_profile_data.py | 31 - .../types/connection_password_policy_enum.py | 5 - ...nection_phone_otp_authentication_method.py | 26 - .../connection_ping_federate_base_url.py | 8 - ...on_ping_federate_base_url_ping_federate.py | 6 - .../management/types/connection_profile.py | 36 - .../types/connection_profile_bitbucket.py | 6 - .../types/connection_profile_config.py | 21 - ...n_profile_cross_app_access_resource_app.py | 24 - ...le_cross_app_access_resource_app_status.py | 30 - ...resource_app_status_allowed_values_enum.py | 14 - ..._resource_app_status_default_value_enum.py | 7 - ...p_access_resource_app_status_value_enum.py | 7 - .../connection_profile_enabled_features.py | 10 - .../management/types/connection_profile_id.py | 6 - .../types/connection_profile_name.py | 6 - .../types/connection_profile_organization.py | 28 - ...ization_assign_membership_on_login_enum.py | 7 - ...rofile_organization_show_as_button_enum.py | 5 - .../types/connection_profile_provisioning.py | 26 - ...n_profile_provisioning_google_workspace.py | 26 - ...rovisioning_google_workspace_sync_users.py | 6 - .../connection_profile_provisioning_scim.py | 24 - ..._provisioning_scim_token_default_expiry.py | 8 - ...visioning_scim_token_max_allowed_expiry.py | 8 - ...file_provisioning_scim_token_scope_enum.py | 7 - ..._profile_provisioning_scim_token_scopes.py | 10 - ...ection_profile_provisioning_scim_tokens.py | 32 - .../connection_profile_strategy_override.py | 28 - .../connection_profile_strategy_overrides.py | 37 - ...le_strategy_overrides_connection_config.py | 21 - ...ile_strategy_overrides_enabled_features.py | 10 - ...profile_strategy_overrides_provisioning.py | 26 - .../types/connection_profile_template.py | 36 - .../types/connection_profile_template_item.py | 30 - .../types/connection_properties_options.py | 153 - .../connection_protocol_binding_enum_saml.py | 10 - .../types/connection_protocol_binding_saml.py | 8 - .../types/connection_provider_enum_sms.py | 5 - .../types/connection_provider_sms.py | 8 - .../connection_provisioning_ticket_url.py | 6 - .../management/types/connection_purposes.py | 26 - ...n_pushed_authorization_request_endpoint.py | 6 - .../types/connection_realm_fallback.py | 6 - .../management/types/connection_realms.py | 8 - .../types/connection_recipient_url_saml.py | 8 - .../types/connection_registration_endpoint.py | 6 - ..._object_encryption_alg_values_supported.py | 8 - ..._object_encryption_enc_values_supported.py | 8 - ...est_object_signing_alg_values_supported.py | 8 - .../connection_request_parameter_supported.py | 6 - .../types/connection_request_template_saml.py | 6 - .../connection_request_token_urlo_auth_1.py | 8 - ...nection_request_uri_parameter_supported.py | 6 - ...n_require_pushed_authorization_requests.py | 6 - ...ection_require_request_uri_registration.py | 6 - .../types/connection_requires_username.py | 6 - .../types/connection_response_common.py | 35 - .../types/connection_response_content_ad.py | 30 - ...connection_response_content_ad_strategy.py | 5 - .../types/connection_response_content_adfs.py | 32 - ...nnection_response_content_adfs_strategy.py | 5 - .../connection_response_content_amazon.py | 28 - ...ection_response_content_amazon_strategy.py | 5 - .../connection_response_content_apple.py | 28 - ...nection_response_content_apple_strategy.py | 5 - .../connection_response_content_auth_0.py | 28 - ...connection_response_content_auth_0_oidc.py | 28 - ...n_response_content_auth_0_oidc_strategy.py | 5 - ...ection_response_content_auth_0_strategy.py | 5 - .../connection_response_content_azure_ad.py | 32 - ...tion_response_content_azure_ad_strategy.py | 5 - .../connection_response_content_baidu.py | 28 - ...nection_response_content_baidu_strategy.py | 5 - .../connection_response_content_bitbucket.py | 28 - ...ion_response_content_bitbucket_strategy.py | 5 - .../connection_response_content_bitly.py | 28 - ...nection_response_content_bitly_strategy.py | 5 - .../types/connection_response_content_box.py | 28 - ...onnection_response_content_box_strategy.py | 5 - .../connection_response_content_custom.py | 30 - ...ection_response_content_custom_strategy.py | 5 - .../connection_response_content_daccount.py | 28 - ...tion_response_content_daccount_strategy.py | 5 - .../connection_response_content_dropbox.py | 28 - ...ction_response_content_dropbox_strategy.py | 5 - .../connection_response_content_dwolla.py | 28 - ...ection_response_content_dwolla_strategy.py | 5 - .../connection_response_content_email.py | 28 - ...nection_response_content_email_strategy.py | 5 - .../connection_response_content_evernote.py | 28 - ...ction_response_content_evernote_sandbox.py | 28 - ...ponse_content_evernote_sandbox_strategy.py | 5 - ...tion_response_content_evernote_strategy.py | 5 - .../connection_response_content_exact.py | 28 - ...nection_response_content_exact_strategy.py | 5 - .../connection_response_content_facebook.py | 28 - ...tion_response_content_facebook_strategy.py | 5 - .../connection_response_content_fitbit.py | 28 - ...ection_response_content_fitbit_strategy.py | 5 - .../connection_response_content_git_hub.py | 28 - ...ction_response_content_git_hub_strategy.py | 5 - ...connection_response_content_google_apps.py | 32 - ...n_response_content_google_apps_strategy.py | 5 - ...ection_response_content_google_o_auth_2.py | 28 - ...sponse_content_google_o_auth_2_strategy.py | 5 - .../connection_response_content_instagram.py | 28 - ...ion_response_content_instagram_strategy.py | 5 - .../types/connection_response_content_ip.py | 30 - ...connection_response_content_ip_strategy.py | 5 - .../types/connection_response_content_line.py | 28 - ...nnection_response_content_line_strategy.py | 5 - .../connection_response_content_linkedin.py | 28 - ...tion_response_content_linkedin_strategy.py | 5 - .../connection_response_content_o_auth_1.py | 28 - ...tion_response_content_o_auth_1_strategy.py | 5 - .../connection_response_content_o_auth_2.py | 28 - ...tion_response_content_o_auth_2_strategy.py | 5 - .../connection_response_content_office_365.py | 32 - ...on_response_content_office_365_strategy.py | 5 - .../types/connection_response_content_oidc.py | 37 - ...nnection_response_content_oidc_strategy.py | 5 - .../types/connection_response_content_okta.py | 32 - ...nnection_response_content_okta_strategy.py | 5 - .../connection_response_content_paypal.py | 28 - ...nection_response_content_paypal_sandbox.py | 28 - ...esponse_content_paypal_sandbox_strategy.py | 5 - ...ection_response_content_paypal_strategy.py | 5 - ...nnection_response_content_ping_federate.py | 32 - ...response_content_ping_federate_strategy.py | 5 - ...ection_response_content_planning_center.py | 28 - ...sponse_content_planning_center_strategy.py | 5 - .../connection_response_content_salesforce.py | 28 - ...n_response_content_salesforce_community.py | 30 - ...e_content_salesforce_community_strategy.py | 5 - ...ion_response_content_salesforce_sandbox.py | 28 - ...nse_content_salesforce_sandbox_strategy.py | 5 - ...on_response_content_salesforce_strategy.py | 5 - .../types/connection_response_content_saml.py | 36 - ...nnection_response_content_saml_strategy.py | 5 - .../connection_response_content_sharepoint.py | 30 - ...on_response_content_sharepoint_strategy.py | 5 - .../types/connection_response_content_shop.py | 28 - ...nnection_response_content_shop_strategy.py | 5 - .../connection_response_content_shopify.py | 28 - ...ction_response_content_shopify_strategy.py | 5 - .../types/connection_response_content_sms.py | 28 - ...onnection_response_content_sms_strategy.py | 5 - .../connection_response_content_soundcloud.py | 28 - ...on_response_content_soundcloud_strategy.py | 5 - ...n_response_content_thirty_seven_signals.py | 30 - ...e_content_thirty_seven_signals_strategy.py | 5 - .../connection_response_content_twitter.py | 28 - ...ction_response_content_twitter_strategy.py | 5 - .../connection_response_content_untappd.py | 28 - ...ction_response_content_untappd_strategy.py | 5 - .../connection_response_content_vkontakte.py | 28 - ...ion_response_content_vkontakte_strategy.py | 5 - .../connection_response_content_weibo.py | 28 - ...nection_response_content_weibo_strategy.py | 5 - ...onnection_response_content_windows_live.py | 28 - ..._response_content_windows_live_strategy.py | 5 - .../connection_response_content_wordpress.py | 28 - ...ion_response_content_wordpress_strategy.py | 5 - .../connection_response_content_yahoo.py | 28 - ...nection_response_content_yahoo_strategy.py | 5 - .../connection_response_content_yandex.py | 28 - ...ection_response_content_yandex_strategy.py | 5 - .../connection_response_modes_supported.py | 8 - .../connection_response_types_supported.py | 8 - .../types/connection_scope_amazon.py | 8 - .../types/connection_scope_array.py | 10 - .../types/connection_scope_array_facebook.py | 10 - .../connection_scope_array_windows_live.py | 8 - .../types/connection_scope_azure_ad.py | 8 - .../types/connection_scope_facebook.py | 6 - .../types/connection_scope_google_apps.py | 10 - .../types/connection_scope_google_o_auth_2.py | 8 - .../management/types/connection_scope_item.py | 6 - .../connection_scope_item_google_apps.py | 6 - .../types/connection_scope_linkedin.py | 8 - .../types/connection_scope_o_auth_2.py | 5 - .../management/types/connection_scope_oidc.py | 6 - .../types/connection_scope_paypal.py | 8 - .../types/connection_scope_salesforce.py | 8 - .../types/connection_scopes_supported.py | 8 - .../types/connection_scripts_o_auth_1.py | 35 - .../types/connection_scripts_o_auth_2.py | 47 - .../connection_send_back_channel_nonce.py | 6 - .../types/connection_service_documentation.py | 6 - ...onnection_set_user_root_attributes_enum.py | 7 - .../types/connection_sha_1_thumbprint.py | 6 - ...ld_trust_email_verified_connection_enum.py | 7 - .../types/connection_show_as_button.py | 6 - .../types/connection_sign_in_endpoint_ad.py | 8 - .../types/connection_sign_in_endpoint_adfs.py | 8 - .../types/connection_sign_in_endpoint_saml.py | 8 - .../connection_sign_out_endpoint_saml.py | 8 - .../connection_sign_saml_request_saml.py | 6 - ...onnection_signature_algorithm_enum_saml.py | 5 - .../connection_signature_algorithm_saml.py | 8 - .../connection_signature_method_o_auth_1.py | 5 - .../types/connection_signing_cert_saml.py | 8 - ...connection_signing_certificate_der_saml.py | 6 - ...n_signing_certificate_pem_ping_federate.py | 6 - ...connection_signing_certificate_pem_saml.py | 6 - .../types/connection_signing_key_saml.py | 31 - .../types/connection_signup_behavior_enum.py | 5 - .../types/connection_strategy_enum.py | 74 - ...nnection_strategy_version_enum_linkedin.py | 3 - ...tion_strategy_version_enum_windows_live.py | 6 - .../connection_subject_types_supported.py | 8 - .../types/connection_template_sms.py | 6 - .../connection_template_syntax_enum_sms.py | 5 - .../types/connection_tenant_domain.py | 6 - .../types/connection_tenant_domain_ad.py | 6 - .../connection_tenant_domain_azure_ad_one.py | 3 - .../connection_tenant_domain_google_apps.py | 8 - .../types/connection_tenant_domain_saml.py | 6 - .../types/connection_tenant_id_azure_ad.py | 6 - .../types/connection_thumbprints.py | 8 - .../types/connection_thumbprints_ad.py | 10 - .../types/connection_thumbprints_saml.py | 10 - .../types/connection_thumbprints_sha_384.py | 8 - .../connection_thumbprints_sha_384_ad.py | 8 - .../connection_thumbprints_sha_384_saml.py | 8 - .../types/connection_token_endpoint.py | 6 - ...nection_token_endpoint_auth_method_enum.py | 7 - ...n_token_endpoint_auth_methods_supported.py | 8 - ...on_token_endpoint_auth_signing_alg_enum.py | 7 - ...point_auth_signing_alg_values_supported.py | 8 - ...ken_endpoint_jwtca_aud_format_enum_oidc.py | 5 - .../management/types/connection_totp_email.py | 22 - .../types/connection_totp_length_email.py | 8 - .../connection_totp_length_passwordless.py | 6 - .../types/connection_totp_length_sms.py | 8 - .../management/types/connection_totp_sms.py | 26 - .../types/connection_totp_time_step_email.py | 8 - .../connection_totp_time_step_passwordless.py | 6 - .../types/connection_totp_time_step_sms.py | 8 - .../types/connection_twilio_sid_sms.py | 6 - .../types/connection_twilio_token_sms.py | 6 - .../types/connection_type_enum_oidc.py | 5 - .../types/connection_type_enum_okta.py | 5 - .../types/connection_ui_locales_supported.py | 8 - ...nnection_upstream_additional_properties.py | 8 - .../types/connection_upstream_alias.py | 20 - .../types/connection_upstream_alias_enum.py | 21 - .../types/connection_upstream_params.py | 10 - .../connection_upstream_params_facebook.py | 10 - .../types/connection_upstream_value.py | 19 - ...connection_use_common_endpoint_azure_ad.py | 6 - .../types/connection_use_oauth_spec_scope.py | 6 - ...nnection_user_authorization_urlo_auth_1.py | 8 - .../connection_user_id_attribute_saml.py | 6 - .../connection_userid_attribute_azure_ad.py | 8 - ...nnection_userid_attribute_enum_azure_ad.py | 5 - ...serinfo_encryption_alg_values_supported.py | 8 - ...serinfo_encryption_enc_values_supported.py | 8 - .../types/connection_userinfo_endpoint.py | 6 - ...n_userinfo_signing_alg_values_supported.py | 8 - .../connection_username_validation_options.py | 20 - .../types/connection_validation_options.py | 24 - .../types/connection_waad_protocol.py | 8 - .../connection_waad_protocol_enum_azure_ad.py | 5 - .../types/connections_discovery_url.py | 8 - .../management/types/connections_metadata.py | 8 - .../types/connections_oidc_metadata.py | 216 - .../management/types/consent_signing_key.py | 38 - .../types/content_security_policy_config.py | 31 - .../create_action_module_response_content.py | 73 - ..._action_module_version_response_content.py | 55 - .../types/create_action_response_content.py | 98 - .../types/create_anonymous_sessions.py | 26 - ...randing_phone_provider_response_content.py | 49 - .../create_branding_theme_response_content.py | 46 - ...tion_method_self_signed_tls_client_auth.py | 26 - ...self_signed_tls_client_auth_credentials.py | 10 - .../create_client_grant_response_content.py | 63 - .../types/create_client_response_content.py | 299 - .../types/create_connection_common.py | 31 - ...ate_connection_profile_response_content.py | 36 - .../create_connection_request_content_ad.py | 27 - ..._connection_request_content_ad_strategy.py | 5 - .../create_connection_request_content_adfs.py | 29 - ...onnection_request_content_adfs_strategy.py | 5 - ...reate_connection_request_content_amazon.py | 27 - ...nection_request_content_amazon_strategy.py | 5 - ...create_connection_request_content_apple.py | 27 - ...nnection_request_content_apple_strategy.py | 5 - ...reate_connection_request_content_auth_0.py | 29 - ..._connection_request_content_auth_0_oidc.py | 27 - ...on_request_content_auth_0_oidc_strategy.py | 5 - ...nection_request_content_auth_0_strategy.py | 5 - ...ate_connection_request_content_azure_ad.py | 29 - ...ction_request_content_azure_ad_strategy.py | 5 - ...create_connection_request_content_baidu.py | 27 - ...nnection_request_content_baidu_strategy.py | 5 - ...te_connection_request_content_bitbucket.py | 27 - ...tion_request_content_bitbucket_strategy.py | 5 - ...create_connection_request_content_bitly.py | 27 - ...nnection_request_content_bitly_strategy.py | 5 - .../create_connection_request_content_box.py | 28 - ...connection_request_content_box_strategy.py | 5 - ...reate_connection_request_content_custom.py | 27 - ...nection_request_content_custom_strategy.py | 5 - ...ate_connection_request_content_daccount.py | 27 - ...ction_request_content_daccount_strategy.py | 5 - ...eate_connection_request_content_dropbox.py | 27 - ...ection_request_content_dropbox_strategy.py | 5 - ...reate_connection_request_content_dwolla.py | 27 - ...nection_request_content_dwolla_strategy.py | 5 - ...create_connection_request_content_email.py | 27 - ...nnection_request_content_email_strategy.py | 5 - ...ate_connection_request_content_evernote.py | 27 - ...ection_request_content_evernote_sandbox.py | 29 - ...quest_content_evernote_sandbox_strategy.py | 5 - ...ction_request_content_evernote_strategy.py | 5 - ...create_connection_request_content_exact.py | 27 - ...nnection_request_content_exact_strategy.py | 5 - ...ate_connection_request_content_facebook.py | 27 - ...ction_request_content_facebook_strategy.py | 5 - ...reate_connection_request_content_fitbit.py | 27 - ...nection_request_content_fitbit_strategy.py | 5 - ...eate_connection_request_content_git_hub.py | 28 - ...ection_request_content_git_hub_strategy.py | 5 - ..._connection_request_content_google_apps.py | 29 - ...on_request_content_google_apps_strategy.py | 5 - ...nection_request_content_google_o_auth_2.py | 30 - ...equest_content_google_o_auth_2_strategy.py | 5 - ...te_connection_request_content_instagram.py | 27 - ...tion_request_content_instagram_strategy.py | 5 - .../create_connection_request_content_ip.py | 29 - ..._connection_request_content_ip_strategy.py | 5 - .../create_connection_request_content_line.py | 27 - ...onnection_request_content_line_strategy.py | 5 - ...ate_connection_request_content_linkedin.py | 27 - ...ction_request_content_linkedin_strategy.py | 5 - ...ate_connection_request_content_o_auth_1.py | 27 - ...ction_request_content_o_auth_1_strategy.py | 5 - ...ate_connection_request_content_o_auth_2.py | 28 - ...ction_request_content_o_auth_2_strategy.py | 5 - ...e_connection_request_content_office_365.py | 29 - ...ion_request_content_office_365_strategy.py | 5 - .../create_connection_request_content_oidc.py | 37 - ...onnection_request_content_oidc_strategy.py | 5 - .../create_connection_request_content_okta.py | 31 - ...onnection_request_content_okta_strategy.py | 5 - ...reate_connection_request_content_paypal.py | 27 - ...nnection_request_content_paypal_sandbox.py | 29 - ...request_content_paypal_sandbox_strategy.py | 5 - ...nection_request_content_paypal_strategy.py | 5 - ...onnection_request_content_ping_federate.py | 29 - ..._request_content_ping_federate_strategy.py | 5 - ...nection_request_content_planning_center.py | 29 - ...equest_content_planning_center_strategy.py | 5 - ...e_connection_request_content_salesforce.py | 27 - ...on_request_content_salesforce_community.py | 29 - ...t_content_salesforce_community_strategy.py | 7 - ...tion_request_content_salesforce_sandbox.py | 29 - ...est_content_salesforce_sandbox_strategy.py | 5 - ...ion_request_content_salesforce_strategy.py | 5 - .../create_connection_request_content_saml.py | 33 - ...onnection_request_content_saml_strategy.py | 5 - ...e_connection_request_content_sharepoint.py | 29 - ...ion_request_content_sharepoint_strategy.py | 5 - .../create_connection_request_content_shop.py | 27 - ...onnection_request_content_shop_strategy.py | 5 - ...eate_connection_request_content_shopify.py | 27 - ...ection_request_content_shopify_strategy.py | 5 - .../create_connection_request_content_sms.py | 27 - ...connection_request_content_sms_strategy.py | 5 - ...e_connection_request_content_soundcloud.py | 27 - ...ion_request_content_soundcloud_strategy.py | 5 - ...on_request_content_thirty_seven_signals.py | 29 - ...t_content_thirty_seven_signals_strategy.py | 7 - ...eate_connection_request_content_twitter.py | 27 - ...ection_request_content_twitter_strategy.py | 5 - ...eate_connection_request_content_untappd.py | 27 - ...ection_request_content_untappd_strategy.py | 5 - ...te_connection_request_content_vkontakte.py | 27 - ...tion_request_content_vkontakte_strategy.py | 5 - ...create_connection_request_content_weibo.py | 27 - ...nnection_request_content_weibo_strategy.py | 5 - ...connection_request_content_windows_live.py | 28 - ...n_request_content_windows_live_strategy.py | 5 - ...te_connection_request_content_wordpress.py | 27 - ...tion_request_content_wordpress_strategy.py | 5 - ...create_connection_request_content_yahoo.py | 27 - ...nnection_request_content_yahoo_strategy.py | 5 - ...reate_connection_request_content_yandex.py | 27 - ...nection_request_content_yandex_strategy.py | 5 - .../create_connection_response_content.py | 70 - .../create_cross_app_access_resource_app.py | 24 - .../create_custom_domain_response_content.py | 62 - ..._directory_provisioning_request_content.py | 31 - ...directory_provisioning_response_content.py | 71 - ...ectory_synchronization_response_content.py | 32 - .../create_email_provider_response_content.py | 37 - .../create_email_template_response_content.py | 83 - ...on_key_public_wrapping_response_content.py | 25 - .../create_encryption_key_response_content.py | 51 - .../types/create_encryption_key_type.py | 7 - ...ate_event_stream_action_request_content.py | 33 - ...ent_stream_event_bridge_request_content.py | 33 - ...vent_stream_redelivery_response_content.py | 40 - .../create_event_stream_response_content.py | 11 - ...vent_stream_test_event_response_content.py | 44 - ...e_event_stream_web_hook_request_content.py | 33 - .../create_experiment_response_content.py | 58 - .../types/create_export_users_fields.py | 27 - .../create_export_users_response_content.py | 55 - .../types/create_feature_flag_parameters.py | 10 - .../create_feature_flag_response_content.py | 30 - .../types/create_flow_response_content.py | 41 - ...e_flows_vault_connection_activecampaign.py | 12 - ...vault_connection_activecampaign_api_key.py | 27 - ...connection_activecampaign_uninitialized.py | 25 - .../create_flows_vault_connection_airtable.py | 10 - ...flows_vault_connection_airtable_api_key.py | 27 - ...vault_connection_airtable_uninitialized.py | 25 - .../create_flows_vault_connection_auth_0.py | 10 - ...flows_vault_connection_auth_0_oauth_app.py | 27 - ...s_vault_connection_auth_0_uninitialized.py | 25 - .../create_flows_vault_connection_bigquery.py | 10 - ...ate_flows_vault_connection_bigquery_jwt.py | 27 - ...vault_connection_bigquery_uninitialized.py | 25 - .../create_flows_vault_connection_clearbit.py | 10 - ...flows_vault_connection_clearbit_api_key.py | 27 - ...vault_connection_clearbit_uninitialized.py | 25 - .../create_flows_vault_connection_docusign.py | 10 - ...ws_vault_connection_docusign_oauth_code.py | 27 - ...vault_connection_docusign_uninitialized.py | 25 - ...te_flows_vault_connection_google_sheets.py | 12 - ...ult_connection_google_sheets_oauth_code.py | 27 - ..._connection_google_sheets_uninitialized.py | 25 - .../create_flows_vault_connection_http.py | 19 - ...ate_flows_vault_connection_http_api_key.py | 27 - ..._flows_vault_connection_http_basic_auth.py | 27 - ...eate_flows_vault_connection_http_bearer.py | 27 - ...onnection_http_oauth_client_credentials.py | 29 - ...ows_vault_connection_http_uninitialized.py | 25 - .../create_flows_vault_connection_hubspot.py | 13 - ..._flows_vault_connection_hubspot_api_key.py | 27 - ...ows_vault_connection_hubspot_oauth_code.py | 27 - ..._vault_connection_hubspot_uninitialized.py | 25 - .../create_flows_vault_connection_jwt.py | 10 - .../create_flows_vault_connection_jwt_jwt.py | 27 - ...lows_vault_connection_jwt_uninitialized.py | 25 - ...create_flows_vault_connection_mailchimp.py | 13 - ...lows_vault_connection_mailchimp_api_key.py | 27 - ...s_vault_connection_mailchimp_oauth_code.py | 27 - ...ault_connection_mailchimp_uninitialized.py | 25 - .../create_flows_vault_connection_mailjet.py | 10 - ..._flows_vault_connection_mailjet_api_key.py | 27 - ..._vault_connection_mailjet_uninitialized.py | 25 - ...create_flows_vault_connection_pipedrive.py | 13 - ...s_vault_connection_pipedrive_oauth_code.py | 27 - ..._flows_vault_connection_pipedrive_token.py | 27 - ...ault_connection_pipedrive_uninitialized.py | 25 - ..._flows_vault_connection_request_content.py | 49 - ...flows_vault_connection_response_content.py | 65 - ...reate_flows_vault_connection_salesforce.py | 10 - ..._vault_connection_salesforce_oauth_code.py | 27 - ...ult_connection_salesforce_uninitialized.py | 25 - .../create_flows_vault_connection_sendgrid.py | 10 - ...flows_vault_connection_sendgrid_api_key.py | 27 - ...vault_connection_sendgrid_uninitialized.py | 25 - .../create_flows_vault_connection_slack.py | 13 - ...flows_vault_connection_slack_oauth_code.py | 27 - ...ws_vault_connection_slack_uninitialized.py | 25 - ...te_flows_vault_connection_slack_webhook.py | 27 - .../create_flows_vault_connection_stripe.py | 13 - ..._flows_vault_connection_stripe_key_pair.py | 27 - ...lows_vault_connection_stripe_oauth_code.py | 27 - ...s_vault_connection_stripe_uninitialized.py | 25 - .../create_flows_vault_connection_telegram.py | 10 - ...e_flows_vault_connection_telegram_token.py | 27 - ...vault_connection_telegram_uninitialized.py | 25 - .../create_flows_vault_connection_twilio.py | 10 - ...e_flows_vault_connection_twilio_api_key.py | 27 - ...s_vault_connection_twilio_uninitialized.py | 25 - .../create_flows_vault_connection_whatsapp.py | 10 - ...e_flows_vault_connection_whatsapp_token.py | 27 - ...vault_connection_whatsapp_uninitialized.py | 25 - .../create_flows_vault_connection_zapier.py | 10 - ...s_vault_connection_zapier_uninitialized.py | 25 - ...e_flows_vault_connection_zapier_webhook.py | 27 - .../types/create_form_response_content.py | 39 - ...dian_enrollment_ticket_response_content.py | 27 - .../types/create_hook_response_content.py | 51 - .../create_hook_secret_request_content.py | 8 - ..._identity_assertion_authorization_grant.py | 26 - .../create_import_users_response_content.py | 47 - ...eate_keys_network_acls_response_content.py | 44 - .../create_log_stream_datadog_request_body.py | 54 - ...te_log_stream_event_bridge_request_body.py | 54 - ...eate_log_stream_event_grid_request_body.py | 54 - .../create_log_stream_http_request_body.py | 54 - ...create_log_stream_mixpanel_request_body.py | 54 - .../create_log_stream_request_content.py | 23 - .../create_log_stream_response_content.py | 23 - .../create_log_stream_segment_request_body.py | 54 - .../create_log_stream_splunk_request_body.py | 54 - .../create_log_stream_sumo_request_body.py | 54 - ...ization_all_connection_response_content.py | 54 - ...create_organization_client_request_item.py | 27 - ...e_organization_clients_response_content.py | 7 - ...ation_discovery_domain_response_content.py | 44 - ...rganization_invitation_response_content.py | 71 - .../create_organization_response_content.py | 50 - ...one_provider_send_test_response_content.py | 27 - .../create_phone_template_response_content.py | 30 - ...late_test_notification_response_content.py | 19 - ..._key_device_credential_response_content.py | 22 - ...eate_rate_limit_policy_response_content.py | 44 - ...create_resource_server_response_content.py | 120 - .../types/create_role_response_content.py | 37 - .../types/create_rule_response_content.py | 47 - ...eate_scim_configuration_request_content.py | 28 - ...ate_scim_configuration_response_content.py | 59 - .../create_scim_token_response_content.py | 42 - .../types/create_segment_response_content.py | 30 - ...e_self_service_profile_response_content.py | 64 - ...ice_profile_sso_ticket_response_content.py | 22 - ...token_exchange_profile_response_content.py | 50 - .../management/types/create_token_quota.py | 20 - ...user_attribute_profile_response_content.py | 26 - ..._authentication_method_response_content.py | 109 - .../types/create_user_response_content.py | 128 - .../create_variation_response_content.py | 27 - ...le_credential_template_response_content.py | 60 - ...ate_verification_email_response_content.py | 37 - ...created_authentication_method_type_enum.py | 7 - ...ed_user_authentication_method_type_enum.py | 7 - .../types/credential_device_type_enum.py | 5 - src/auth0/management/types/credential_id.py | 22 - .../types/cross_app_access_requesting_app.py | 26 - .../types/cross_app_access_resource_app.py | 24 - ...oss_app_access_resource_app_status_enum.py | 5 - src/auth0/management/types/csp_directives.py | 8 - src/auth0/management/types/csp_flag.py | 5 - src/auth0/management/types/csp_flags.py | 10 - src/auth0/management/types/csp_policies.py | 10 - src/auth0/management/types/csp_policy.py | 30 - src/auth0/management/types/csp_policy_mode.py | 5 - .../management/types/csp_policy_reporting.py | 31 - src/auth0/management/types/csp_report_to.py | 34 - .../types/csp_report_to_endpoint.py | 26 - .../types/csp_report_to_endpoints.py | 10 - .../types/csp_reporting_endpoints.py | 8 - .../types/csp_reporting_infrastructure.py | 26 - src/auth0/management/types/custom_domain.py | 67 - .../custom_domain_custom_client_ip_header.py | 7 - ...tom_domain_custom_client_ip_header_enum.py | 7 - .../custom_domain_provisioning_type_enum.py | 5 - .../types/custom_domain_status_filter_enum.py | 5 - .../types/custom_domain_tls_policy_enum.py | 5 - .../types/custom_domain_type_enum.py | 5 - .../custom_domain_verification_method_enum.py | 5 - .../types/custom_provider_configuration.py | 20 - .../custom_provider_delivery_method_enum.py | 5 - .../custom_signing_key_algorithm_enum.py | 7 - .../types/custom_signing_key_curve_enum.py | 5 - .../types/custom_signing_key_jwk.py | 96 - .../custom_signing_key_operation_enum.py | 5 - .../types/custom_signing_key_type_enum.py | 5 - .../types/custom_signing_key_use_enum.py | 5 - src/auth0/management/types/daily_stats.py | 47 - .../management/types/default_config_enum.py | 5 - .../default_method_email_identifier_enum.py | 5 - ...ult_method_phone_number_identifier_enum.py | 5 - .../management/types/default_token_quota.py | 25 - .../delete_hook_secret_request_content.py | 8 - .../delete_user_identity_response_content.py | 10 - ...ete_user_identity_response_content_item.py | 67 - .../types/deploy_action_response_content.py | 97 - .../deploy_action_version_request_content.py | 22 - .../deploy_action_version_response_content.py | 97 - .../management/types/device_credential.py | 48 - .../device_credential_public_key_type_enum.py | 5 - .../types/device_credential_type_enum.py | 7 - .../types/directory_provisioning.py | 71 - .../directory_provisioning_mapping_item.py | 33 - .../management/types/domain_certificate.py | 35 - .../domain_certificate_authority_enum.py | 5 - .../types/domain_certificate_status_enum.py | 7 - src/auth0/management/types/domain_metadata.py | 8 - .../management/types/domain_verification.py | 39 - .../types/domain_verification_method.py | 29 - .../domain_verification_method_name_enum.py | 5 - .../types/domain_verification_status_enum.py | 5 - src/auth0/management/types/email_attribute.py | 38 - .../types/email_attribute_identifier.py | 25 - .../types/email_mailgun_region_enum.py | 5 - .../types/email_provider_credentials.py | 46 - .../email_provider_credentials_schema.py | 23 - ...ovider_credentials_schema_access_key_id.py | 42 - ...ail_provider_credentials_schema_api_key.py | 30 - ...l_provider_credentials_schema_client_id.py | 46 - ...er_credentials_schema_connection_string.py | 28 - ...l_provider_credentials_schema_smtp_host.py | 34 - ...email_provider_credentials_schema_three.py | 25 - .../email_provider_credentials_schema_zero.py | 22 - .../types/email_provider_name_enum.py | 10 - .../types/email_provider_settings.py | 8 - src/auth0/management/types/email_smtp_host.py | 6 - .../types/email_spark_post_region_enum.py | 5 - ...der_settings_with_additional_properties.py | 8 - .../types/email_template_name_enum.py | 23 - .../management/types/enabled_features_enum.py | 5 - src/auth0/management/types/encryption_key.py | 51 - ...ncryption_key_public_wrapping_algorithm.py | 5 - .../management/types/encryption_key_state.py | 5 - .../management/types/encryption_key_type.py | 8 - .../event_stream_action_configuration.py | 26 - .../types/event_stream_action_destination.py | 22 - ...ent_stream_action_destination_type_enum.py | 5 - .../event_stream_action_response_content.py | 48 - .../types/event_stream_cloud_event.py | 50 - ...ent_stream_cloud_event_a_0_purpose_enum.py | 5 - ...t_stream_cloud_event_connection_created.py | 29 - ...ud_event_connection_created_cloud_event.py | 77 - ...onnection_created_cloud_event_type_enum.py | 7 - ...eam_cloud_event_connection_created_data.py | 30 - ...m_cloud_event_connection_created_object.py | 23 - ...cloud_event_connection_created_object_0.py | 73 - ...nection_created_object_0_authentication.py | 23 - ...ion_created_object_0_connected_accounts.py | 24 - ...nt_connection_created_object_0_metadata.py | 21 - ...ent_connection_created_object_0_options.py | 174 - ..._created_object_0_options_attribute_map.py | 37 - ...ject_0_options_attribute_map_attributes.py | 8 - ...options_attribute_map_mapping_mode_enum.py | 7 - ...ed_object_0_options_connection_settings.py | 26 - ...0_options_connection_settings_pkce_enum.py | 7 - ..._object_0_options_dpop_signing_alg_enum.py | 7 - ...ons_federated_connections_access_tokens.py | 26 - ...id_token_signed_response_algs_item_enum.py | 7 - ..._created_object_0_options_oidc_metadata.py | 211 - ...ed_object_0_options_schema_version_enum.py | 7 - ...0_options_set_user_root_attributes_enum.py | 7 - ...options_token_endpoint_auth_method_enum.py | 7 - ...ns_token_endpoint_auth_signing_alg_enum.py | 7 - ...ns_token_endpoint_jwtca_aud_format_enum.py | 7 - ...tion_created_object_0_options_type_enum.py | 7 - ...reated_object_0_options_upstream_params.py | 8 - ...nnection_created_object_0_strategy_enum.py | 5 - ...cloud_event_connection_created_object_1.py | 73 - ...nection_created_object_1_authentication.py | 23 - ...ion_created_object_1_connected_accounts.py | 23 - ...nt_connection_created_object_1_metadata.py | 21 - ...ent_connection_created_object_1_options.py | 174 - ..._created_object_1_options_attribute_map.py | 37 - ...ject_1_options_attribute_map_attributes.py | 8 - ...options_attribute_map_mapping_mode_enum.py | 7 - ...ed_object_1_options_connection_settings.py | 26 - ...1_options_connection_settings_pkce_enum.py | 7 - ..._object_1_options_dpop_signing_alg_enum.py | 7 - ...ons_federated_connections_access_tokens.py | 26 - ...id_token_signed_response_algs_item_enum.py | 7 - ..._created_object_1_options_oidc_metadata.py | 211 - ...ed_object_1_options_schema_version_enum.py | 7 - ...1_options_set_user_root_attributes_enum.py | 7 - ...options_token_endpoint_auth_method_enum.py | 7 - ...ns_token_endpoint_auth_signing_alg_enum.py | 7 - ...ns_token_endpoint_jwtca_aud_format_enum.py | 7 - ...tion_created_object_1_options_type_enum.py | 5 - ...reated_object_1_options_upstream_params.py | 8 - ...nnection_created_object_1_strategy_enum.py | 5 - ...cloud_event_connection_created_object_2.py | 73 - ...nection_created_object_2_authentication.py | 23 - ...ion_created_object_2_connected_accounts.py | 23 - ...nt_connection_created_object_2_metadata.py | 21 - ...ent_connection_created_object_2_options.py | 298 - ...2_options_assertion_decryption_settings.py | 33 - ...ryption_settings_algorithm_profile_enum.py | 7 - ..._object_2_options_digest_algorithm_enum.py | 7 - ...ion_created_object_2_options_fields_map.py | 8 - ...n_created_object_2_options_idpinitiated.py | 42 - ...tions_idpinitiated_client_protocol_enum.py | 7 - ..._created_object_2_options_oidc_metadata.py | 211 - ..._object_2_options_protocol_binding_enum.py | 10 - ...2_options_set_user_root_attributes_enum.py | 7 - ...ject_2_options_signature_algorithm_enum.py | 7 - ...ection_created_object_2_options_subject.py | 21 - ...reated_object_2_options_upstream_params.py | 8 - ...nnection_created_object_2_strategy_enum.py | 5 - ...cloud_event_connection_created_object_3.py | 73 - ...nection_created_object_3_authentication.py | 23 - ...ion_created_object_3_connected_accounts.py | 23 - ...nt_connection_created_object_3_metadata.py | 21 - ...ent_connection_created_object_3_options.py | 172 - ...3_options_assertion_decryption_settings.py | 33 - ...ryption_settings_algorithm_profile_enum.py | 7 - ..._object_3_options_digest_algorithm_enum.py | 7 - ...n_created_object_3_options_idpinitiated.py | 42 - ...tions_idpinitiated_client_protocol_enum.py | 7 - ..._object_3_options_protocol_binding_enum.py | 10 - ...3_options_set_user_root_attributes_enum.py | 7 - ...ject_3_options_signature_algorithm_enum.py | 7 - ...ection_created_object_3_options_subject.py | 21 - ...reated_object_3_options_upstream_params.py | 8 - ...nnection_created_object_3_strategy_enum.py | 5 - ...cloud_event_connection_created_object_4.py | 73 - ...nection_created_object_4_authentication.py | 23 - ...ion_created_object_4_connected_accounts.py | 23 - ...nt_connection_created_object_4_metadata.py | 21 - ...ent_connection_created_object_4_options.py | 121 - ...4_options_set_user_root_attributes_enum.py | 7 - ...ld_trust_email_verified_connection_enum.py | 7 - ...reated_object_4_options_upstream_params.py | 8 - ...nnection_created_object_4_strategy_enum.py | 5 - ...cloud_event_connection_created_object_5.py | 68 - ...nection_created_object_5_authentication.py | 23 - ...ion_created_object_5_connected_accounts.py | 23 - ...nt_connection_created_object_5_metadata.py | 21 - ...ent_connection_created_object_5_options.py | 154 - ...5_options_set_user_root_attributes_enum.py | 7 - ...reated_object_5_options_upstream_params.py | 8 - ...nnection_created_object_5_strategy_enum.py | 5 - ...cloud_event_connection_created_object_6.py | 73 - ...nection_created_object_6_authentication.py | 23 - ...ion_created_object_6_connected_accounts.py | 23 - ...nt_connection_created_object_6_metadata.py | 21 - ...ent_connection_created_object_6_options.py | 139 - ...ons_federated_connections_access_tokens.py | 26 - ...6_options_set_user_root_attributes_enum.py | 7 - ...reated_object_6_options_upstream_params.py | 8 - ...nnection_created_object_6_strategy_enum.py | 5 - ...cloud_event_connection_created_object_7.py | 73 - ...nection_created_object_7_authentication.py | 23 - ...ion_created_object_7_connected_accounts.py | 23 - ...nt_connection_created_object_7_metadata.py | 21 - ...ent_connection_created_object_7_options.py | 177 - ...ons_federated_connections_access_tokens.py | 26 - ...ated_object_7_options_identity_api_enum.py | 7 - ...7_options_set_user_root_attributes_enum.py | 7 - ...ld_trust_email_verified_connection_enum.py | 7 - ...ated_object_7_options_tenant_domain_one.py | 6 - ...reated_object_7_options_upstream_params.py | 8 - ..._object_7_options_userid_attribute_enum.py | 7 - ...ted_object_7_options_waad_protocol_enum.py | 7 - ...nnection_created_object_7_strategy_enum.py | 5 - ...vent_connection_created_previous_object.py | 39 - ...nt_connection_created_previous_object_0.py | 73 - ...reated_previous_object_0_authentication.py | 23 - ...ed_previous_object_0_connected_accounts.py | 24 - ...tion_created_previous_object_0_metadata.py | 21 - ...ction_created_previous_object_0_options.py | 180 - ...previous_object_0_options_attribute_map.py | 39 - ...ject_0_options_attribute_map_attributes.py | 8 - ...options_attribute_map_mapping_mode_enum.py | 7 - ...us_object_0_options_connection_settings.py | 26 - ...0_options_connection_settings_pkce_enum.py | 7 - ..._object_0_options_dpop_signing_alg_enum.py | 7 - ...ons_federated_connections_access_tokens.py | 26 - ...id_token_signed_response_algs_item_enum.py | 7 - ...previous_object_0_options_oidc_metadata.py | 211 - ...us_object_0_options_schema_version_enum.py | 7 - ...0_options_set_user_root_attributes_enum.py | 7 - ...options_token_endpoint_auth_method_enum.py | 7 - ...ns_token_endpoint_auth_signing_alg_enum.py | 7 - ...ns_token_endpoint_jwtca_aud_format_enum.py | 7 - ...ted_previous_object_0_options_type_enum.py | 7 - ...evious_object_0_options_upstream_params.py | 8 - ...created_previous_object_0_strategy_enum.py | 5 - ...nt_connection_created_previous_object_1.py | 73 - ...reated_previous_object_1_authentication.py | 23 - ...ed_previous_object_1_connected_accounts.py | 23 - ...tion_created_previous_object_1_metadata.py | 21 - ...ction_created_previous_object_1_options.py | 180 - ...previous_object_1_options_attribute_map.py | 39 - ...ject_1_options_attribute_map_attributes.py | 8 - ...options_attribute_map_mapping_mode_enum.py | 7 - ...us_object_1_options_connection_settings.py | 26 - ...1_options_connection_settings_pkce_enum.py | 7 - ..._object_1_options_dpop_signing_alg_enum.py | 7 - ...ons_federated_connections_access_tokens.py | 26 - ...id_token_signed_response_algs_item_enum.py | 7 - ...previous_object_1_options_oidc_metadata.py | 211 - ...us_object_1_options_schema_version_enum.py | 7 - ...1_options_set_user_root_attributes_enum.py | 7 - ...options_token_endpoint_auth_method_enum.py | 7 - ...ns_token_endpoint_auth_signing_alg_enum.py | 7 - ...ns_token_endpoint_jwtca_aud_format_enum.py | 7 - ...ted_previous_object_1_options_type_enum.py | 7 - ...evious_object_1_options_upstream_params.py | 8 - ...created_previous_object_1_strategy_enum.py | 5 - ...nt_connection_created_previous_object_2.py | 73 - ...reated_previous_object_2_authentication.py | 23 - ...ed_previous_object_2_connected_accounts.py | 23 - ...tion_created_previous_object_2_metadata.py | 21 - ...ction_created_previous_object_2_options.py | 298 - ...2_options_assertion_decryption_settings.py | 33 - ...ryption_settings_algorithm_profile_enum.py | 7 - ..._object_2_options_digest_algorithm_enum.py | 7 - ...ed_previous_object_2_options_fields_map.py | 8 - ..._previous_object_2_options_idpinitiated.py | 42 - ...tions_idpinitiated_client_protocol_enum.py | 7 - ...previous_object_2_options_oidc_metadata.py | 211 - ..._object_2_options_protocol_binding_enum.py | 10 - ...2_options_set_user_root_attributes_enum.py | 7 - ...ject_2_options_signature_algorithm_enum.py | 7 - ...eated_previous_object_2_options_subject.py | 21 - ...evious_object_2_options_upstream_params.py | 8 - ...created_previous_object_2_strategy_enum.py | 5 - ...nt_connection_created_previous_object_3.py | 73 - ...reated_previous_object_3_authentication.py | 23 - ...ed_previous_object_3_connected_accounts.py | 23 - ...tion_created_previous_object_3_metadata.py | 21 - ...ction_created_previous_object_3_options.py | 172 - ...3_options_assertion_decryption_settings.py | 33 - ...ryption_settings_algorithm_profile_enum.py | 7 - ..._object_3_options_digest_algorithm_enum.py | 7 - ..._previous_object_3_options_idpinitiated.py | 42 - ...tions_idpinitiated_client_protocol_enum.py | 7 - ..._object_3_options_protocol_binding_enum.py | 10 - ...3_options_set_user_root_attributes_enum.py | 7 - ...ject_3_options_signature_algorithm_enum.py | 7 - ...eated_previous_object_3_options_subject.py | 21 - ...evious_object_3_options_upstream_params.py | 8 - ...created_previous_object_3_strategy_enum.py | 7 - ...nt_connection_created_previous_object_4.py | 73 - ...reated_previous_object_4_authentication.py | 23 - ...ed_previous_object_4_connected_accounts.py | 23 - ...tion_created_previous_object_4_metadata.py | 21 - ...ction_created_previous_object_4_options.py | 121 - ...4_options_set_user_root_attributes_enum.py | 7 - ...ld_trust_email_verified_connection_enum.py | 7 - ...evious_object_4_options_upstream_params.py | 8 - ...created_previous_object_4_strategy_enum.py | 5 - ...nt_connection_created_previous_object_5.py | 68 - ...reated_previous_object_5_authentication.py | 23 - ...ed_previous_object_5_connected_accounts.py | 23 - ...tion_created_previous_object_5_metadata.py | 21 - ...ction_created_previous_object_5_options.py | 154 - ...5_options_set_user_root_attributes_enum.py | 7 - ...evious_object_5_options_upstream_params.py | 8 - ...created_previous_object_5_strategy_enum.py | 5 - ...nt_connection_created_previous_object_6.py | 73 - ...reated_previous_object_6_authentication.py | 23 - ...ed_previous_object_6_connected_accounts.py | 23 - ...tion_created_previous_object_6_metadata.py | 21 - ...ction_created_previous_object_6_options.py | 139 - ...ons_federated_connections_access_tokens.py | 26 - ...6_options_set_user_root_attributes_enum.py | 7 - ...evious_object_6_options_upstream_params.py | 8 - ...created_previous_object_6_strategy_enum.py | 7 - ...nt_connection_created_previous_object_7.py | 73 - ...reated_previous_object_7_authentication.py | 23 - ...ed_previous_object_7_connected_accounts.py | 23 - ...tion_created_previous_object_7_metadata.py | 21 - ...ction_created_previous_object_7_options.py | 179 - ...ons_federated_connections_access_tokens.py | 26 - ...ious_object_7_options_identity_api_enum.py | 7 - ...7_options_set_user_root_attributes_enum.py | 7 - ...ld_trust_email_verified_connection_enum.py | 7 - ...ious_object_7_options_tenant_domain_one.py | 6 - ...evious_object_7_options_upstream_params.py | 8 - ..._object_7_options_userid_attribute_enum.py | 7 - ...ous_object_7_options_waad_protocol_enum.py | 7 - ...created_previous_object_7_strategy_enum.py | 5 - ...loud_event_connection_created_type_enum.py | 5 - ...t_stream_cloud_event_connection_deleted.py | 29 - ...ud_event_connection_deleted_cloud_event.py | 77 - ...onnection_deleted_cloud_event_type_enum.py | 7 - ...eam_cloud_event_connection_deleted_data.py | 30 - ...m_cloud_event_connection_deleted_object.py | 23 - ...cloud_event_connection_deleted_object_0.py | 73 - ...nection_deleted_object_0_authentication.py | 23 - ...ion_deleted_object_0_connected_accounts.py | 24 - ...nt_connection_deleted_object_0_metadata.py | 21 - ...ent_connection_deleted_object_0_options.py | 174 - ..._deleted_object_0_options_attribute_map.py | 37 - ...ject_0_options_attribute_map_attributes.py | 8 - ...options_attribute_map_mapping_mode_enum.py | 7 - ...ed_object_0_options_connection_settings.py | 26 - ...0_options_connection_settings_pkce_enum.py | 7 - ..._object_0_options_dpop_signing_alg_enum.py | 7 - ...ons_federated_connections_access_tokens.py | 26 - ...id_token_signed_response_algs_item_enum.py | 7 - ..._deleted_object_0_options_oidc_metadata.py | 211 - ...ed_object_0_options_schema_version_enum.py | 7 - ...0_options_set_user_root_attributes_enum.py | 7 - ...options_token_endpoint_auth_method_enum.py | 7 - ...ns_token_endpoint_auth_signing_alg_enum.py | 7 - ...ns_token_endpoint_jwtca_aud_format_enum.py | 7 - ...tion_deleted_object_0_options_type_enum.py | 7 - ...eleted_object_0_options_upstream_params.py | 8 - ...nnection_deleted_object_0_strategy_enum.py | 5 - ...cloud_event_connection_deleted_object_1.py | 73 - ...nection_deleted_object_1_authentication.py | 23 - ...ion_deleted_object_1_connected_accounts.py | 23 - ...nt_connection_deleted_object_1_metadata.py | 21 - ...ent_connection_deleted_object_1_options.py | 174 - ..._deleted_object_1_options_attribute_map.py | 37 - ...ject_1_options_attribute_map_attributes.py | 8 - ...options_attribute_map_mapping_mode_enum.py | 7 - ...ed_object_1_options_connection_settings.py | 26 - ...1_options_connection_settings_pkce_enum.py | 7 - ..._object_1_options_dpop_signing_alg_enum.py | 7 - ...ons_federated_connections_access_tokens.py | 26 - ...id_token_signed_response_algs_item_enum.py | 7 - ..._deleted_object_1_options_oidc_metadata.py | 211 - ...ed_object_1_options_schema_version_enum.py | 7 - ...1_options_set_user_root_attributes_enum.py | 7 - ...options_token_endpoint_auth_method_enum.py | 7 - ...ns_token_endpoint_auth_signing_alg_enum.py | 7 - ...ns_token_endpoint_jwtca_aud_format_enum.py | 7 - ...tion_deleted_object_1_options_type_enum.py | 5 - ...eleted_object_1_options_upstream_params.py | 8 - ...nnection_deleted_object_1_strategy_enum.py | 5 - ...cloud_event_connection_deleted_object_2.py | 73 - ...nection_deleted_object_2_authentication.py | 23 - ...ion_deleted_object_2_connected_accounts.py | 23 - ...nt_connection_deleted_object_2_metadata.py | 21 - ...ent_connection_deleted_object_2_options.py | 298 - ...2_options_assertion_decryption_settings.py | 33 - ...ryption_settings_algorithm_profile_enum.py | 7 - ..._object_2_options_digest_algorithm_enum.py | 7 - ...ion_deleted_object_2_options_fields_map.py | 8 - ...n_deleted_object_2_options_idpinitiated.py | 42 - ...tions_idpinitiated_client_protocol_enum.py | 7 - ..._deleted_object_2_options_oidc_metadata.py | 211 - ..._object_2_options_protocol_binding_enum.py | 10 - ...2_options_set_user_root_attributes_enum.py | 7 - ...ject_2_options_signature_algorithm_enum.py | 7 - ...ection_deleted_object_2_options_subject.py | 21 - ...eleted_object_2_options_upstream_params.py | 8 - ...nnection_deleted_object_2_strategy_enum.py | 5 - ...cloud_event_connection_deleted_object_3.py | 73 - ...nection_deleted_object_3_authentication.py | 23 - ...ion_deleted_object_3_connected_accounts.py | 23 - ...nt_connection_deleted_object_3_metadata.py | 21 - ...ent_connection_deleted_object_3_options.py | 172 - ...3_options_assertion_decryption_settings.py | 33 - ...ryption_settings_algorithm_profile_enum.py | 7 - ..._object_3_options_digest_algorithm_enum.py | 7 - ...n_deleted_object_3_options_idpinitiated.py | 42 - ...tions_idpinitiated_client_protocol_enum.py | 7 - ..._object_3_options_protocol_binding_enum.py | 10 - ...3_options_set_user_root_attributes_enum.py | 7 - ...ject_3_options_signature_algorithm_enum.py | 7 - ...ection_deleted_object_3_options_subject.py | 21 - ...eleted_object_3_options_upstream_params.py | 8 - ...nnection_deleted_object_3_strategy_enum.py | 5 - ...cloud_event_connection_deleted_object_4.py | 73 - ...nection_deleted_object_4_authentication.py | 23 - ...ion_deleted_object_4_connected_accounts.py | 23 - ...nt_connection_deleted_object_4_metadata.py | 21 - ...ent_connection_deleted_object_4_options.py | 121 - ...4_options_set_user_root_attributes_enum.py | 7 - ...ld_trust_email_verified_connection_enum.py | 7 - ...eleted_object_4_options_upstream_params.py | 8 - ...nnection_deleted_object_4_strategy_enum.py | 5 - ...cloud_event_connection_deleted_object_5.py | 68 - ...nection_deleted_object_5_authentication.py | 23 - ...ion_deleted_object_5_connected_accounts.py | 23 - ...nt_connection_deleted_object_5_metadata.py | 21 - ...ent_connection_deleted_object_5_options.py | 154 - ...5_options_set_user_root_attributes_enum.py | 7 - ...eleted_object_5_options_upstream_params.py | 8 - ...nnection_deleted_object_5_strategy_enum.py | 5 - ...cloud_event_connection_deleted_object_6.py | 73 - ...nection_deleted_object_6_authentication.py | 23 - ...ion_deleted_object_6_connected_accounts.py | 23 - ...nt_connection_deleted_object_6_metadata.py | 21 - ...ent_connection_deleted_object_6_options.py | 139 - ...ons_federated_connections_access_tokens.py | 26 - ...6_options_set_user_root_attributes_enum.py | 7 - ...eleted_object_6_options_upstream_params.py | 8 - ...nnection_deleted_object_6_strategy_enum.py | 5 - ...cloud_event_connection_deleted_object_7.py | 73 - ...nection_deleted_object_7_authentication.py | 23 - ...ion_deleted_object_7_connected_accounts.py | 23 - ...nt_connection_deleted_object_7_metadata.py | 21 - ...ent_connection_deleted_object_7_options.py | 177 - ...ons_federated_connections_access_tokens.py | 26 - ...eted_object_7_options_identity_api_enum.py | 7 - ...7_options_set_user_root_attributes_enum.py | 7 - ...ld_trust_email_verified_connection_enum.py | 7 - ...eted_object_7_options_tenant_domain_one.py | 6 - ...eleted_object_7_options_upstream_params.py | 8 - ..._object_7_options_userid_attribute_enum.py | 7 - ...ted_object_7_options_waad_protocol_enum.py | 7 - ...nnection_deleted_object_7_strategy_enum.py | 5 - ...vent_connection_deleted_previous_object.py | 39 - ...nt_connection_deleted_previous_object_0.py | 73 - ...eleted_previous_object_0_authentication.py | 23 - ...ed_previous_object_0_connected_accounts.py | 24 - ...tion_deleted_previous_object_0_metadata.py | 21 - ...ction_deleted_previous_object_0_options.py | 180 - ...previous_object_0_options_attribute_map.py | 39 - ...ject_0_options_attribute_map_attributes.py | 8 - ...options_attribute_map_mapping_mode_enum.py | 7 - ...us_object_0_options_connection_settings.py | 26 - ...0_options_connection_settings_pkce_enum.py | 7 - ..._object_0_options_dpop_signing_alg_enum.py | 7 - ...ons_federated_connections_access_tokens.py | 26 - ...id_token_signed_response_algs_item_enum.py | 7 - ...previous_object_0_options_oidc_metadata.py | 211 - ...us_object_0_options_schema_version_enum.py | 7 - ...0_options_set_user_root_attributes_enum.py | 7 - ...options_token_endpoint_auth_method_enum.py | 7 - ...ns_token_endpoint_auth_signing_alg_enum.py | 7 - ...ns_token_endpoint_jwtca_aud_format_enum.py | 7 - ...ted_previous_object_0_options_type_enum.py | 7 - ...evious_object_0_options_upstream_params.py | 8 - ...deleted_previous_object_0_strategy_enum.py | 5 - ...nt_connection_deleted_previous_object_1.py | 73 - ...eleted_previous_object_1_authentication.py | 23 - ...ed_previous_object_1_connected_accounts.py | 23 - ...tion_deleted_previous_object_1_metadata.py | 21 - ...ction_deleted_previous_object_1_options.py | 180 - ...previous_object_1_options_attribute_map.py | 39 - ...ject_1_options_attribute_map_attributes.py | 8 - ...options_attribute_map_mapping_mode_enum.py | 7 - ...us_object_1_options_connection_settings.py | 26 - ...1_options_connection_settings_pkce_enum.py | 7 - ..._object_1_options_dpop_signing_alg_enum.py | 7 - ...ons_federated_connections_access_tokens.py | 26 - ...id_token_signed_response_algs_item_enum.py | 7 - ...previous_object_1_options_oidc_metadata.py | 211 - ...us_object_1_options_schema_version_enum.py | 7 - ...1_options_set_user_root_attributes_enum.py | 7 - ...options_token_endpoint_auth_method_enum.py | 7 - ...ns_token_endpoint_auth_signing_alg_enum.py | 7 - ...ns_token_endpoint_jwtca_aud_format_enum.py | 7 - ...ted_previous_object_1_options_type_enum.py | 7 - ...evious_object_1_options_upstream_params.py | 8 - ...deleted_previous_object_1_strategy_enum.py | 5 - ...nt_connection_deleted_previous_object_2.py | 73 - ...eleted_previous_object_2_authentication.py | 23 - ...ed_previous_object_2_connected_accounts.py | 23 - ...tion_deleted_previous_object_2_metadata.py | 21 - ...ction_deleted_previous_object_2_options.py | 298 - ...2_options_assertion_decryption_settings.py | 33 - ...ryption_settings_algorithm_profile_enum.py | 7 - ..._object_2_options_digest_algorithm_enum.py | 7 - ...ed_previous_object_2_options_fields_map.py | 8 - ..._previous_object_2_options_idpinitiated.py | 42 - ...tions_idpinitiated_client_protocol_enum.py | 7 - ...previous_object_2_options_oidc_metadata.py | 211 - ..._object_2_options_protocol_binding_enum.py | 10 - ...2_options_set_user_root_attributes_enum.py | 7 - ...ject_2_options_signature_algorithm_enum.py | 7 - ...leted_previous_object_2_options_subject.py | 21 - ...evious_object_2_options_upstream_params.py | 8 - ...deleted_previous_object_2_strategy_enum.py | 5 - ...nt_connection_deleted_previous_object_3.py | 73 - ...eleted_previous_object_3_authentication.py | 23 - ...ed_previous_object_3_connected_accounts.py | 23 - ...tion_deleted_previous_object_3_metadata.py | 21 - ...ction_deleted_previous_object_3_options.py | 172 - ...3_options_assertion_decryption_settings.py | 33 - ...ryption_settings_algorithm_profile_enum.py | 7 - ..._object_3_options_digest_algorithm_enum.py | 7 - ..._previous_object_3_options_idpinitiated.py | 42 - ...tions_idpinitiated_client_protocol_enum.py | 7 - ..._object_3_options_protocol_binding_enum.py | 10 - ...3_options_set_user_root_attributes_enum.py | 7 - ...ject_3_options_signature_algorithm_enum.py | 7 - ...leted_previous_object_3_options_subject.py | 21 - ...evious_object_3_options_upstream_params.py | 8 - ...deleted_previous_object_3_strategy_enum.py | 7 - ...nt_connection_deleted_previous_object_4.py | 73 - ...eleted_previous_object_4_authentication.py | 23 - ...ed_previous_object_4_connected_accounts.py | 23 - ...tion_deleted_previous_object_4_metadata.py | 21 - ...ction_deleted_previous_object_4_options.py | 121 - ...4_options_set_user_root_attributes_enum.py | 7 - ...ld_trust_email_verified_connection_enum.py | 7 - ...evious_object_4_options_upstream_params.py | 8 - ...deleted_previous_object_4_strategy_enum.py | 5 - ...nt_connection_deleted_previous_object_5.py | 68 - ...eleted_previous_object_5_authentication.py | 23 - ...ed_previous_object_5_connected_accounts.py | 23 - ...tion_deleted_previous_object_5_metadata.py | 21 - ...ction_deleted_previous_object_5_options.py | 154 - ...5_options_set_user_root_attributes_enum.py | 7 - ...evious_object_5_options_upstream_params.py | 8 - ...deleted_previous_object_5_strategy_enum.py | 5 - ...nt_connection_deleted_previous_object_6.py | 73 - ...eleted_previous_object_6_authentication.py | 23 - ...ed_previous_object_6_connected_accounts.py | 23 - ...tion_deleted_previous_object_6_metadata.py | 21 - ...ction_deleted_previous_object_6_options.py | 139 - ...ons_federated_connections_access_tokens.py | 26 - ...6_options_set_user_root_attributes_enum.py | 7 - ...evious_object_6_options_upstream_params.py | 8 - ...deleted_previous_object_6_strategy_enum.py | 7 - ...nt_connection_deleted_previous_object_7.py | 73 - ...eleted_previous_object_7_authentication.py | 23 - ...ed_previous_object_7_connected_accounts.py | 23 - ...tion_deleted_previous_object_7_metadata.py | 21 - ...ction_deleted_previous_object_7_options.py | 179 - ...ons_federated_connections_access_tokens.py | 26 - ...ious_object_7_options_identity_api_enum.py | 7 - ...7_options_set_user_root_attributes_enum.py | 7 - ...ld_trust_email_verified_connection_enum.py | 7 - ...ious_object_7_options_tenant_domain_one.py | 6 - ...evious_object_7_options_upstream_params.py | 8 - ..._object_7_options_userid_attribute_enum.py | 7 - ...ous_object_7_options_waad_protocol_enum.py | 7 - ...deleted_previous_object_7_strategy_enum.py | 5 - ...loud_event_connection_deleted_type_enum.py | 5 - ...t_stream_cloud_event_connection_updated.py | 29 - ...ud_event_connection_updated_cloud_event.py | 77 - ...onnection_updated_cloud_event_type_enum.py | 7 - ...eam_cloud_event_connection_updated_data.py | 30 - ...m_cloud_event_connection_updated_object.py | 23 - ...cloud_event_connection_updated_object_0.py | 73 - ...nection_updated_object_0_authentication.py | 23 - ...ion_updated_object_0_connected_accounts.py | 24 - ...nt_connection_updated_object_0_metadata.py | 21 - ...ent_connection_updated_object_0_options.py | 174 - ..._updated_object_0_options_attribute_map.py | 37 - ...ject_0_options_attribute_map_attributes.py | 8 - ...options_attribute_map_mapping_mode_enum.py | 7 - ...ed_object_0_options_connection_settings.py | 26 - ...0_options_connection_settings_pkce_enum.py | 7 - ..._object_0_options_dpop_signing_alg_enum.py | 7 - ...ons_federated_connections_access_tokens.py | 26 - ...id_token_signed_response_algs_item_enum.py | 7 - ..._updated_object_0_options_oidc_metadata.py | 211 - ...ed_object_0_options_schema_version_enum.py | 7 - ...0_options_set_user_root_attributes_enum.py | 7 - ...options_token_endpoint_auth_method_enum.py | 7 - ...ns_token_endpoint_auth_signing_alg_enum.py | 7 - ...ns_token_endpoint_jwtca_aud_format_enum.py | 7 - ...tion_updated_object_0_options_type_enum.py | 7 - ...pdated_object_0_options_upstream_params.py | 8 - ...nnection_updated_object_0_strategy_enum.py | 5 - ...cloud_event_connection_updated_object_1.py | 73 - ...nection_updated_object_1_authentication.py | 23 - ...ion_updated_object_1_connected_accounts.py | 23 - ...nt_connection_updated_object_1_metadata.py | 21 - ...ent_connection_updated_object_1_options.py | 174 - ..._updated_object_1_options_attribute_map.py | 37 - ...ject_1_options_attribute_map_attributes.py | 8 - ...options_attribute_map_mapping_mode_enum.py | 7 - ...ed_object_1_options_connection_settings.py | 26 - ...1_options_connection_settings_pkce_enum.py | 7 - ..._object_1_options_dpop_signing_alg_enum.py | 7 - ...ons_federated_connections_access_tokens.py | 26 - ...id_token_signed_response_algs_item_enum.py | 7 - ..._updated_object_1_options_oidc_metadata.py | 211 - ...ed_object_1_options_schema_version_enum.py | 7 - ...1_options_set_user_root_attributes_enum.py | 7 - ...options_token_endpoint_auth_method_enum.py | 7 - ...ns_token_endpoint_auth_signing_alg_enum.py | 7 - ...ns_token_endpoint_jwtca_aud_format_enum.py | 7 - ...tion_updated_object_1_options_type_enum.py | 5 - ...pdated_object_1_options_upstream_params.py | 8 - ...nnection_updated_object_1_strategy_enum.py | 5 - ...cloud_event_connection_updated_object_2.py | 73 - ...nection_updated_object_2_authentication.py | 23 - ...ion_updated_object_2_connected_accounts.py | 23 - ...nt_connection_updated_object_2_metadata.py | 21 - ...ent_connection_updated_object_2_options.py | 298 - ...2_options_assertion_decryption_settings.py | 33 - ...ryption_settings_algorithm_profile_enum.py | 7 - ..._object_2_options_digest_algorithm_enum.py | 7 - ...ion_updated_object_2_options_fields_map.py | 8 - ...n_updated_object_2_options_idpinitiated.py | 42 - ...tions_idpinitiated_client_protocol_enum.py | 7 - ..._updated_object_2_options_oidc_metadata.py | 211 - ..._object_2_options_protocol_binding_enum.py | 10 - ...2_options_set_user_root_attributes_enum.py | 7 - ...ject_2_options_signature_algorithm_enum.py | 7 - ...ection_updated_object_2_options_subject.py | 21 - ...pdated_object_2_options_upstream_params.py | 8 - ...nnection_updated_object_2_strategy_enum.py | 5 - ...cloud_event_connection_updated_object_3.py | 73 - ...nection_updated_object_3_authentication.py | 23 - ...ion_updated_object_3_connected_accounts.py | 23 - ...nt_connection_updated_object_3_metadata.py | 21 - ...ent_connection_updated_object_3_options.py | 172 - ...3_options_assertion_decryption_settings.py | 33 - ...ryption_settings_algorithm_profile_enum.py | 7 - ..._object_3_options_digest_algorithm_enum.py | 7 - ...n_updated_object_3_options_idpinitiated.py | 42 - ...tions_idpinitiated_client_protocol_enum.py | 7 - ..._object_3_options_protocol_binding_enum.py | 10 - ...3_options_set_user_root_attributes_enum.py | 7 - ...ject_3_options_signature_algorithm_enum.py | 7 - ...ection_updated_object_3_options_subject.py | 21 - ...pdated_object_3_options_upstream_params.py | 8 - ...nnection_updated_object_3_strategy_enum.py | 5 - ...cloud_event_connection_updated_object_4.py | 73 - ...nection_updated_object_4_authentication.py | 23 - ...ion_updated_object_4_connected_accounts.py | 23 - ...nt_connection_updated_object_4_metadata.py | 21 - ...ent_connection_updated_object_4_options.py | 121 - ...4_options_set_user_root_attributes_enum.py | 7 - ...ld_trust_email_verified_connection_enum.py | 7 - ...pdated_object_4_options_upstream_params.py | 8 - ...nnection_updated_object_4_strategy_enum.py | 5 - ...cloud_event_connection_updated_object_5.py | 68 - ...nection_updated_object_5_authentication.py | 23 - ...ion_updated_object_5_connected_accounts.py | 23 - ...nt_connection_updated_object_5_metadata.py | 21 - ...ent_connection_updated_object_5_options.py | 154 - ...5_options_set_user_root_attributes_enum.py | 7 - ...pdated_object_5_options_upstream_params.py | 8 - ...nnection_updated_object_5_strategy_enum.py | 5 - ...cloud_event_connection_updated_object_6.py | 73 - ...nection_updated_object_6_authentication.py | 23 - ...ion_updated_object_6_connected_accounts.py | 23 - ...nt_connection_updated_object_6_metadata.py | 21 - ...ent_connection_updated_object_6_options.py | 139 - ...ons_federated_connections_access_tokens.py | 26 - ...6_options_set_user_root_attributes_enum.py | 7 - ...pdated_object_6_options_upstream_params.py | 8 - ...nnection_updated_object_6_strategy_enum.py | 5 - ...cloud_event_connection_updated_object_7.py | 73 - ...nection_updated_object_7_authentication.py | 23 - ...ion_updated_object_7_connected_accounts.py | 23 - ...nt_connection_updated_object_7_metadata.py | 21 - ...ent_connection_updated_object_7_options.py | 177 - ...ons_federated_connections_access_tokens.py | 26 - ...ated_object_7_options_identity_api_enum.py | 7 - ...7_options_set_user_root_attributes_enum.py | 7 - ...ld_trust_email_verified_connection_enum.py | 7 - ...ated_object_7_options_tenant_domain_one.py | 6 - ...pdated_object_7_options_upstream_params.py | 8 - ..._object_7_options_userid_attribute_enum.py | 7 - ...ted_object_7_options_waad_protocol_enum.py | 7 - ...nnection_updated_object_7_strategy_enum.py | 5 - ...vent_connection_updated_previous_object.py | 39 - ...nt_connection_updated_previous_object_0.py | 73 - ...pdated_previous_object_0_authentication.py | 23 - ...ed_previous_object_0_connected_accounts.py | 24 - ...tion_updated_previous_object_0_metadata.py | 21 - ...ction_updated_previous_object_0_options.py | 180 - ...previous_object_0_options_attribute_map.py | 39 - ...ject_0_options_attribute_map_attributes.py | 8 - ...options_attribute_map_mapping_mode_enum.py | 7 - ...us_object_0_options_connection_settings.py | 26 - ...0_options_connection_settings_pkce_enum.py | 7 - ..._object_0_options_dpop_signing_alg_enum.py | 7 - ...ons_federated_connections_access_tokens.py | 26 - ...id_token_signed_response_algs_item_enum.py | 7 - ...previous_object_0_options_oidc_metadata.py | 211 - ...us_object_0_options_schema_version_enum.py | 7 - ...0_options_set_user_root_attributes_enum.py | 7 - ...options_token_endpoint_auth_method_enum.py | 7 - ...ns_token_endpoint_auth_signing_alg_enum.py | 7 - ...ns_token_endpoint_jwtca_aud_format_enum.py | 7 - ...ted_previous_object_0_options_type_enum.py | 7 - ...evious_object_0_options_upstream_params.py | 8 - ...updated_previous_object_0_strategy_enum.py | 5 - ...nt_connection_updated_previous_object_1.py | 73 - ...pdated_previous_object_1_authentication.py | 23 - ...ed_previous_object_1_connected_accounts.py | 23 - ...tion_updated_previous_object_1_metadata.py | 21 - ...ction_updated_previous_object_1_options.py | 180 - ...previous_object_1_options_attribute_map.py | 39 - ...ject_1_options_attribute_map_attributes.py | 8 - ...options_attribute_map_mapping_mode_enum.py | 7 - ...us_object_1_options_connection_settings.py | 26 - ...1_options_connection_settings_pkce_enum.py | 7 - ..._object_1_options_dpop_signing_alg_enum.py | 7 - ...ons_federated_connections_access_tokens.py | 26 - ...id_token_signed_response_algs_item_enum.py | 7 - ...previous_object_1_options_oidc_metadata.py | 211 - ...us_object_1_options_schema_version_enum.py | 7 - ...1_options_set_user_root_attributes_enum.py | 7 - ...options_token_endpoint_auth_method_enum.py | 7 - ...ns_token_endpoint_auth_signing_alg_enum.py | 7 - ...ns_token_endpoint_jwtca_aud_format_enum.py | 7 - ...ted_previous_object_1_options_type_enum.py | 7 - ...evious_object_1_options_upstream_params.py | 8 - ...updated_previous_object_1_strategy_enum.py | 5 - ...nt_connection_updated_previous_object_2.py | 73 - ...pdated_previous_object_2_authentication.py | 23 - ...ed_previous_object_2_connected_accounts.py | 23 - ...tion_updated_previous_object_2_metadata.py | 21 - ...ction_updated_previous_object_2_options.py | 298 - ...2_options_assertion_decryption_settings.py | 33 - ...ryption_settings_algorithm_profile_enum.py | 7 - ..._object_2_options_digest_algorithm_enum.py | 7 - ...ed_previous_object_2_options_fields_map.py | 8 - ..._previous_object_2_options_idpinitiated.py | 42 - ...tions_idpinitiated_client_protocol_enum.py | 7 - ...previous_object_2_options_oidc_metadata.py | 211 - ..._object_2_options_protocol_binding_enum.py | 10 - ...2_options_set_user_root_attributes_enum.py | 7 - ...ject_2_options_signature_algorithm_enum.py | 7 - ...dated_previous_object_2_options_subject.py | 21 - ...evious_object_2_options_upstream_params.py | 8 - ...updated_previous_object_2_strategy_enum.py | 5 - ...nt_connection_updated_previous_object_3.py | 73 - ...pdated_previous_object_3_authentication.py | 23 - ...ed_previous_object_3_connected_accounts.py | 23 - ...tion_updated_previous_object_3_metadata.py | 21 - ...ction_updated_previous_object_3_options.py | 172 - ...3_options_assertion_decryption_settings.py | 33 - ...ryption_settings_algorithm_profile_enum.py | 7 - ..._object_3_options_digest_algorithm_enum.py | 7 - ..._previous_object_3_options_idpinitiated.py | 42 - ...tions_idpinitiated_client_protocol_enum.py | 7 - ..._object_3_options_protocol_binding_enum.py | 10 - ...3_options_set_user_root_attributes_enum.py | 7 - ...ject_3_options_signature_algorithm_enum.py | 7 - ...dated_previous_object_3_options_subject.py | 21 - ...evious_object_3_options_upstream_params.py | 8 - ...updated_previous_object_3_strategy_enum.py | 7 - ...nt_connection_updated_previous_object_4.py | 73 - ...pdated_previous_object_4_authentication.py | 23 - ...ed_previous_object_4_connected_accounts.py | 23 - ...tion_updated_previous_object_4_metadata.py | 21 - ...ction_updated_previous_object_4_options.py | 121 - ...4_options_set_user_root_attributes_enum.py | 7 - ...ld_trust_email_verified_connection_enum.py | 7 - ...evious_object_4_options_upstream_params.py | 8 - ...updated_previous_object_4_strategy_enum.py | 5 - ...nt_connection_updated_previous_object_5.py | 68 - ...pdated_previous_object_5_authentication.py | 23 - ...ed_previous_object_5_connected_accounts.py | 23 - ...tion_updated_previous_object_5_metadata.py | 21 - ...ction_updated_previous_object_5_options.py | 154 - ...5_options_set_user_root_attributes_enum.py | 7 - ...evious_object_5_options_upstream_params.py | 8 - ...updated_previous_object_5_strategy_enum.py | 5 - ...nt_connection_updated_previous_object_6.py | 73 - ...pdated_previous_object_6_authentication.py | 23 - ...ed_previous_object_6_connected_accounts.py | 23 - ...tion_updated_previous_object_6_metadata.py | 21 - ...ction_updated_previous_object_6_options.py | 139 - ...ons_federated_connections_access_tokens.py | 26 - ...6_options_set_user_root_attributes_enum.py | 7 - ...evious_object_6_options_upstream_params.py | 8 - ...updated_previous_object_6_strategy_enum.py | 7 - ...nt_connection_updated_previous_object_7.py | 73 - ...pdated_previous_object_7_authentication.py | 23 - ...ed_previous_object_7_connected_accounts.py | 23 - ...tion_updated_previous_object_7_metadata.py | 21 - ...ction_updated_previous_object_7_options.py | 179 - ...ons_federated_connections_access_tokens.py | 26 - ...ious_object_7_options_identity_api_enum.py | 7 - ...7_options_set_user_root_attributes_enum.py | 7 - ...ld_trust_email_verified_connection_enum.py | 7 - ...ious_object_7_options_tenant_domain_one.py | 6 - ...evious_object_7_options_upstream_params.py | 8 - ..._object_7_options_userid_attribute_enum.py | 7 - ...ous_object_7_options_waad_protocol_enum.py | 7 - ...updated_previous_object_7_strategy_enum.py | 5 - ...loud_event_connection_updated_type_enum.py | 5 - .../types/event_stream_cloud_event_context.py | 36 - ...event_stream_cloud_event_context_client.py | 34 - ...eam_cloud_event_context_client_metadata.py | 8 - ...t_stream_cloud_event_context_connection.py | 36 - ...vent_stream_cloud_event_context_request.py | 48 - ..._stream_cloud_event_context_request_geo.py | 66 - ...event_stream_cloud_event_context_tenant.py | 26 - ..._stream_cloud_event_context_transaction.py | 79 - ...event_context_transaction_protocol_enum.py | 23 - ..._context_transaction_response_mode_enum.py | 7 - ...ext_transaction_response_type_item_enum.py | 7 - .../types/event_stream_cloud_event_data.py | 8 - ...vent_stream_cloud_event_error_code_enum.py | 10 - .../event_stream_cloud_event_error_detail.py | 33 - .../event_stream_cloud_event_error_message.py | 24 - ...eam_cloud_event_error_message_type_enum.py | 5 - .../event_stream_cloud_event_group_created.py | 29 - ...m_cloud_event_group_created_cloud_event.py | 77 - ...ent_group_created_cloud_event_type_enum.py | 5 - ...t_stream_cloud_event_group_created_data.py | 28 - ...stream_cloud_event_group_created_object.py | 13 - ...ream_cloud_event_group_created_object_0.py | 49 - ..._event_group_created_object_0_type_enum.py | 5 - ...ream_cloud_event_group_created_object_1.py | 49 - ..._event_group_created_object_1_type_enum.py | 5 - ...ream_cloud_event_group_created_object_2.py | 45 - ..._event_group_created_object_2_type_enum.py | 5 - ...oud_event_group_created_previous_object.py | 13 - ...d_event_group_created_previous_object_0.py | 51 - ...oup_created_previous_object_0_type_enum.py | 5 - ...d_event_group_created_previous_object_1.py | 51 - ...oup_created_previous_object_1_type_enum.py | 5 - ...d_event_group_created_previous_object_2.py | 47 - ...oup_created_previous_object_2_type_enum.py | 5 - ...eam_cloud_event_group_created_type_enum.py | 5 - .../event_stream_cloud_event_group_deleted.py | 29 - ...m_cloud_event_group_deleted_cloud_event.py | 77 - ...ent_group_deleted_cloud_event_type_enum.py | 5 - ...t_stream_cloud_event_group_deleted_data.py | 28 - ...stream_cloud_event_group_deleted_object.py | 13 - ...ream_cloud_event_group_deleted_object_0.py | 54 - ..._event_group_deleted_object_0_type_enum.py | 5 - ...ream_cloud_event_group_deleted_object_1.py | 54 - ..._event_group_deleted_object_1_type_enum.py | 5 - ...ream_cloud_event_group_deleted_object_2.py | 49 - ..._event_group_deleted_object_2_type_enum.py | 5 - ...oud_event_group_deleted_previous_object.py | 13 - ...d_event_group_deleted_previous_object_0.py | 56 - ...oup_deleted_previous_object_0_type_enum.py | 5 - ...d_event_group_deleted_previous_object_1.py | 56 - ...oup_deleted_previous_object_1_type_enum.py | 5 - ...d_event_group_deleted_previous_object_2.py | 51 - ...oup_deleted_previous_object_2_type_enum.py | 5 - ...eam_cloud_event_group_deleted_type_enum.py | 5 - ...t_stream_cloud_event_group_member_added.py | 29 - ...ud_event_group_member_added_cloud_event.py | 77 - ...roup_member_added_cloud_event_type_enum.py | 5 - ...eam_cloud_event_group_member_added_data.py | 30 - ...m_cloud_event_group_member_added_object.py | 26 - ...d_event_group_member_added_object_group.py | 19 - ...event_group_member_added_object_group_0.py | 40 - ...p_member_added_object_group_0_type_enum.py | 5 - ...event_group_member_added_object_group_1.py | 40 - ...p_member_added_object_group_1_type_enum.py | 5 - ...event_group_member_added_object_group_2.py | 36 - ...p_member_added_object_group_2_type_enum.py | 5 - ..._event_group_member_added_object_member.py | 14 - ...vent_group_member_added_object_member_0.py | 30 - ..._added_object_member_0_member_type_enum.py | 5 - ...vent_group_member_added_object_member_1.py | 40 - ..._added_object_member_1_member_type_enum.py | 7 - ...vent_group_member_added_previous_object.py | 30 - ...roup_member_added_previous_object_group.py | 19 - ...up_member_added_previous_object_group_0.py | 40 - ...added_previous_object_group_0_type_enum.py | 7 - ...up_member_added_previous_object_group_1.py | 40 - ...added_previous_object_group_1_type_enum.py | 7 - ...up_member_added_previous_object_group_2.py | 36 - ...added_previous_object_group_2_type_enum.py | 5 - ...oup_member_added_previous_object_member.py | 15 - ...p_member_added_previous_object_member_0.py | 30 - ...evious_object_member_0_member_type_enum.py | 7 - ...p_member_added_previous_object_member_1.py | 40 - ...evious_object_member_1_member_type_enum.py | 7 - ...loud_event_group_member_added_type_enum.py | 5 - ...stream_cloud_event_group_member_deleted.py | 29 - ..._event_group_member_deleted_cloud_event.py | 77 - ...up_member_deleted_cloud_event_type_enum.py | 7 - ...m_cloud_event_group_member_deleted_data.py | 30 - ...cloud_event_group_member_deleted_object.py | 30 - ...event_group_member_deleted_object_group.py | 19 - ...ent_group_member_deleted_object_group_0.py | 40 - ...member_deleted_object_group_0_type_enum.py | 5 - ...ent_group_member_deleted_object_group_1.py | 40 - ...member_deleted_object_group_1_type_enum.py | 5 - ...ent_group_member_deleted_object_group_2.py | 36 - ...member_deleted_object_group_2_type_enum.py | 5 - ...vent_group_member_deleted_object_member.py | 14 - ...nt_group_member_deleted_object_member_0.py | 30 - ...eleted_object_member_0_member_type_enum.py | 5 - ...nt_group_member_deleted_object_member_1.py | 40 - ...eleted_object_member_1_member_type_enum.py | 7 - ...nt_group_member_deleted_previous_object.py | 30 - ...up_member_deleted_previous_object_group.py | 19 - ..._member_deleted_previous_object_group_0.py | 40 - ...leted_previous_object_group_0_type_enum.py | 7 - ..._member_deleted_previous_object_group_1.py | 40 - ...leted_previous_object_group_1_type_enum.py | 7 - ..._member_deleted_previous_object_group_2.py | 36 - ...leted_previous_object_group_2_type_enum.py | 5 - ...p_member_deleted_previous_object_member.py | 15 - ...member_deleted_previous_object_member_0.py | 30 - ...evious_object_member_0_member_type_enum.py | 7 - ...member_deleted_previous_object_member_1.py | 40 - ...evious_object_member_1_member_type_enum.py | 7 - ...ud_event_group_member_deleted_type_enum.py | 5 - ..._stream_cloud_event_group_role_assigned.py | 29 - ...d_event_group_role_assigned_cloud_event.py | 77 - ...oup_role_assigned_cloud_event_type_enum.py | 7 - ...am_cloud_event_group_role_assigned_data.py | 30 - ..._cloud_event_group_role_assigned_object.py | 31 - ..._event_group_role_assigned_object_group.py | 19 - ...vent_group_role_assigned_object_group_0.py | 40 - ..._role_assigned_object_group_0_type_enum.py | 5 - ...vent_group_role_assigned_object_group_1.py | 40 - ..._role_assigned_object_group_1_type_enum.py | 5 - ...vent_group_role_assigned_object_group_2.py | 36 - ..._role_assigned_object_group_2_type_enum.py | 5 - ...d_event_group_role_assigned_object_role.py | 31 - ...ent_group_role_assigned_previous_object.py | 35 - ...oup_role_assigned_previous_object_group.py | 19 - ...p_role_assigned_previous_object_group_0.py | 40 - ...igned_previous_object_group_0_type_enum.py | 7 - ...p_role_assigned_previous_object_group_1.py | 40 - ...igned_previous_object_group_1_type_enum.py | 7 - ...p_role_assigned_previous_object_group_2.py | 36 - ...igned_previous_object_group_2_type_enum.py | 5 - ...roup_role_assigned_previous_object_role.py | 31 - ...oud_event_group_role_assigned_type_enum.py | 5 - ...t_stream_cloud_event_group_role_deleted.py | 29 - ...ud_event_group_role_deleted_cloud_event.py | 77 - ...roup_role_deleted_cloud_event_type_enum.py | 5 - ...eam_cloud_event_group_role_deleted_data.py | 30 - ...m_cloud_event_group_role_deleted_object.py | 31 - ...d_event_group_role_deleted_object_group.py | 19 - ...event_group_role_deleted_object_group_0.py | 40 - ...p_role_deleted_object_group_0_type_enum.py | 5 - ...event_group_role_deleted_object_group_1.py | 40 - ...p_role_deleted_object_group_1_type_enum.py | 5 - ...event_group_role_deleted_object_group_2.py | 36 - ...p_role_deleted_object_group_2_type_enum.py | 5 - ...ud_event_group_role_deleted_object_role.py | 26 - ...vent_group_role_deleted_previous_object.py | 35 - ...roup_role_deleted_previous_object_group.py | 19 - ...up_role_deleted_previous_object_group_0.py | 40 - ...leted_previous_object_group_0_type_enum.py | 7 - ...up_role_deleted_previous_object_group_1.py | 40 - ...leted_previous_object_group_1_type_enum.py | 7 - ...up_role_deleted_previous_object_group_2.py | 36 - ...leted_previous_object_group_2_type_enum.py | 5 - ...group_role_deleted_previous_object_role.py | 31 - ...loud_event_group_role_deleted_type_enum.py | 5 - .../event_stream_cloud_event_group_updated.py | 29 - ...m_cloud_event_group_updated_cloud_event.py | 77 - ...ent_group_updated_cloud_event_type_enum.py | 5 - ...t_stream_cloud_event_group_updated_data.py | 28 - ...stream_cloud_event_group_updated_object.py | 13 - ...ream_cloud_event_group_updated_object_0.py | 54 - ..._event_group_updated_object_0_type_enum.py | 5 - ...ream_cloud_event_group_updated_object_1.py | 54 - ..._event_group_updated_object_1_type_enum.py | 5 - ...ream_cloud_event_group_updated_object_2.py | 49 - ..._event_group_updated_object_2_type_enum.py | 5 - ...oud_event_group_updated_previous_object.py | 13 - ...d_event_group_updated_previous_object_0.py | 56 - ...oup_updated_previous_object_0_type_enum.py | 5 - ...d_event_group_updated_previous_object_1.py | 56 - ...oup_updated_previous_object_1_type_enum.py | 5 - ...d_event_group_updated_previous_object_2.py | 51 - ...oup_updated_previous_object_2_type_enum.py | 5 - ...eam_cloud_event_group_updated_type_enum.py | 5 - ..._stream_cloud_event_offset_only_message.py | 26 - ...oud_event_offset_only_message_type_enum.py | 5 - ...stream_cloud_event_org_connection_added.py | 29 - ..._event_org_connection_added_cloud_event.py | 77 - ..._connection_added_cloud_event_type_enum.py | 7 - ...m_cloud_event_org_connection_added_data.py | 30 - ...cloud_event_org_connection_added_object.py | 66 - ..._org_connection_added_object_connection.py | 22 - ...rg_connection_added_object_organization.py | 31 - ..._added_object_organization_access_level.py | 23 - ...object_organization_access_level_0_enum.py | 7 - ...object_organization_access_level_1_enum.py | 7 - ...object_organization_access_level_2_enum.py | 7 - ...object_organization_access_level_3_enum.py | 7 - ...object_organization_member_access_level.py | 23 - ...organization_member_access_level_0_enum.py | 7 - ...organization_member_access_level_1_enum.py | 7 - ...organization_member_access_level_2_enum.py | 7 - ...organization_member_access_level_3_enum.py | 7 - ...nt_org_connection_added_previous_object.py | 66 - ...ection_added_previous_object_connection.py | 22 - ...tion_added_previous_object_organization.py | 31 - ...evious_object_organization_access_level.py | 23 - ...object_organization_access_level_0_enum.py | 7 - ...object_organization_access_level_1_enum.py | 7 - ...object_organization_access_level_2_enum.py | 7 - ...object_organization_access_level_3_enum.py | 7 - ...object_organization_member_access_level.py | 23 - ...organization_member_access_level_0_enum.py | 7 - ...organization_member_access_level_1_enum.py | 7 - ...organization_member_access_level_2_enum.py | 7 - ...organization_member_access_level_3_enum.py | 7 - ...ud_event_org_connection_added_type_enum.py | 7 - ...ream_cloud_event_org_connection_removed.py | 31 - ...vent_org_connection_removed_cloud_event.py | 77 - ...onnection_removed_cloud_event_type_enum.py | 7 - ...cloud_event_org_connection_removed_data.py | 30 - ...oud_event_org_connection_removed_object.py | 30 - ...rg_connection_removed_object_connection.py | 22 - ..._connection_removed_object_organization.py | 31 - ..._org_connection_removed_previous_object.py | 30 - ...tion_removed_previous_object_connection.py | 22 - ...on_removed_previous_object_organization.py | 31 - ..._event_org_connection_removed_type_enum.py | 7 - ...ream_cloud_event_org_connection_updated.py | 31 - ...vent_org_connection_updated_cloud_event.py | 77 - ...onnection_updated_cloud_event_type_enum.py | 7 - ...cloud_event_org_connection_updated_data.py | 30 - ...oud_event_org_connection_updated_object.py | 66 - ...rg_connection_updated_object_connection.py | 22 - ..._connection_updated_object_organization.py | 31 - ...pdated_object_organization_access_level.py | 23 - ...object_organization_access_level_0_enum.py | 7 - ...object_organization_access_level_1_enum.py | 7 - ...object_organization_access_level_2_enum.py | 7 - ...object_organization_access_level_3_enum.py | 7 - ...object_organization_member_access_level.py | 23 - ...organization_member_access_level_0_enum.py | 7 - ...organization_member_access_level_1_enum.py | 7 - ...organization_member_access_level_2_enum.py | 7 - ...organization_member_access_level_3_enum.py | 7 - ..._org_connection_updated_previous_object.py | 66 - ...tion_updated_previous_object_connection.py | 22 - ...on_updated_previous_object_organization.py | 31 - ...evious_object_organization_access_level.py | 23 - ...object_organization_access_level_0_enum.py | 7 - ...object_organization_access_level_1_enum.py | 7 - ...object_organization_access_level_2_enum.py | 7 - ...object_organization_access_level_3_enum.py | 7 - ...object_organization_member_access_level.py | 23 - ...organization_member_access_level_0_enum.py | 7 - ...organization_member_access_level_1_enum.py | 7 - ...organization_member_access_level_2_enum.py | 7 - ...organization_member_access_level_3_enum.py | 7 - ..._event_org_connection_updated_type_enum.py | 7 - .../event_stream_cloud_event_org_created.py | 29 - ...eam_cloud_event_org_created_cloud_event.py | 77 - ...event_org_created_cloud_event_type_enum.py | 5 - ...ent_stream_cloud_event_org_created_data.py | 28 - ...t_stream_cloud_event_org_created_object.py | 41 - ...cloud_event_org_created_object_branding.py | 31 - ...vent_org_created_object_branding_colors.py | 31 - ...cloud_event_org_created_object_metadata.py | 8 - ...cloud_event_org_created_previous_object.py | 45 - ...nt_org_created_previous_object_branding.py | 31 - ...created_previous_object_branding_colors.py | 31 - ...nt_org_created_previous_object_metadata.py | 8 - ...tream_cloud_event_org_created_type_enum.py | 5 - .../event_stream_cloud_event_org_deleted.py | 29 - ...eam_cloud_event_org_deleted_cloud_event.py | 77 - ...event_org_deleted_cloud_event_type_enum.py | 5 - ...ent_stream_cloud_event_org_deleted_data.py | 28 - ...t_stream_cloud_event_org_deleted_object.py | 39 - ...cloud_event_org_deleted_object_metadata.py | 8 - ...cloud_event_org_deleted_previous_object.py | 41 - ...nt_org_deleted_previous_object_metadata.py | 8 - ...tream_cloud_event_org_deleted_type_enum.py | 5 - ...eam_cloud_event_org_group_role_assigned.py | 31 - ...ent_org_group_role_assigned_cloud_event.py | 77 - ...oup_role_assigned_cloud_event_type_enum.py | 7 - ...loud_event_org_group_role_assigned_data.py | 30 - ...ud_event_org_group_role_assigned_object.py | 39 - ...nt_org_group_role_assigned_object_group.py | 19 - ..._org_group_role_assigned_object_group_0.py | 40 - ..._role_assigned_object_group_0_type_enum.py | 5 - ..._org_group_role_assigned_object_group_1.py | 40 - ..._role_assigned_object_group_1_type_enum.py | 5 - ..._org_group_role_assigned_object_group_2.py | 36 - ..._role_assigned_object_group_2_type_enum.py | 5 - ...group_role_assigned_object_organization.py | 26 - ...ent_org_group_role_assigned_object_role.py | 31 - ...org_group_role_assigned_previous_object.py | 39 - ...oup_role_assigned_previous_object_group.py | 19 - ...p_role_assigned_previous_object_group_0.py | 40 - ...igned_previous_object_group_0_type_enum.py | 7 - ...p_role_assigned_previous_object_group_1.py | 40 - ...igned_previous_object_group_1_type_enum.py | 7 - ...p_role_assigned_previous_object_group_2.py | 36 - ...igned_previous_object_group_2_type_enum.py | 7 - ...e_assigned_previous_object_organization.py | 26 - ...roup_role_assigned_previous_object_role.py | 31 - ...event_org_group_role_assigned_type_enum.py | 7 - ...ream_cloud_event_org_group_role_deleted.py | 31 - ...vent_org_group_role_deleted_cloud_event.py | 77 - ...roup_role_deleted_cloud_event_type_enum.py | 7 - ...cloud_event_org_group_role_deleted_data.py | 30 - ...oud_event_org_group_role_deleted_object.py | 39 - ...ent_org_group_role_deleted_object_group.py | 19 - ...t_org_group_role_deleted_object_group_0.py | 40 - ...p_role_deleted_object_group_0_type_enum.py | 5 - ...t_org_group_role_deleted_object_group_1.py | 40 - ...p_role_deleted_object_group_1_type_enum.py | 5 - ...t_org_group_role_deleted_object_group_2.py | 36 - ...p_role_deleted_object_group_2_type_enum.py | 5 - ..._group_role_deleted_object_organization.py | 26 - ...vent_org_group_role_deleted_object_role.py | 26 - ..._org_group_role_deleted_previous_object.py | 39 - ...roup_role_deleted_previous_object_group.py | 19 - ...up_role_deleted_previous_object_group_0.py | 40 - ...leted_previous_object_group_0_type_enum.py | 7 - ...up_role_deleted_previous_object_group_1.py | 40 - ...leted_previous_object_group_1_type_enum.py | 7 - ...up_role_deleted_previous_object_group_2.py | 36 - ...leted_previous_object_group_2_type_enum.py | 7 - ...le_deleted_previous_object_organization.py | 26 - ...group_role_deleted_previous_object_role.py | 31 - ..._event_org_group_role_deleted_type_enum.py | 7 - ...ent_stream_cloud_event_org_member_added.py | 29 - ...loud_event_org_member_added_cloud_event.py | 77 - ..._org_member_added_cloud_event_type_enum.py | 7 - ...tream_cloud_event_org_member_added_data.py | 28 - ...eam_cloud_event_org_member_added_object.py | 28 - ...nt_org_member_added_object_organization.py | 31 - ...loud_event_org_member_added_object_user.py | 26 - ..._event_org_member_added_previous_object.py | 30 - ...mber_added_previous_object_organization.py | 31 - ...t_org_member_added_previous_object_user.py | 26 - ..._cloud_event_org_member_added_type_enum.py | 5 - ...t_stream_cloud_event_org_member_deleted.py | 29 - ...ud_event_org_member_deleted_cloud_event.py | 77 - ...rg_member_deleted_cloud_event_type_enum.py | 7 - ...eam_cloud_event_org_member_deleted_data.py | 30 - ...m_cloud_event_org_member_deleted_object.py | 28 - ..._org_member_deleted_object_organization.py | 31 - ...ud_event_org_member_deleted_object_user.py | 26 - ...vent_org_member_deleted_previous_object.py | 30 - ...er_deleted_previous_object_organization.py | 31 - ...org_member_deleted_previous_object_user.py | 26 - ...loud_event_org_member_deleted_type_enum.py | 5 - ...am_cloud_event_org_member_role_assigned.py | 31 - ...nt_org_member_role_assigned_cloud_event.py | 77 - ...ber_role_assigned_cloud_event_type_enum.py | 7 - ...oud_event_org_member_role_assigned_data.py | 30 - ...d_event_org_member_role_assigned_object.py | 34 - ...ember_role_assigned_object_organization.py | 26 - ...nt_org_member_role_assigned_object_role.py | 31 - ...nt_org_member_role_assigned_object_user.py | 26 - ...rg_member_role_assigned_previous_object.py | 34 - ...e_assigned_previous_object_organization.py | 26 - ...mber_role_assigned_previous_object_role.py | 31 - ...mber_role_assigned_previous_object_user.py | 26 - ...vent_org_member_role_assigned_type_enum.py | 7 - ...eam_cloud_event_org_member_role_deleted.py | 31 - ...ent_org_member_role_deleted_cloud_event.py | 77 - ...mber_role_deleted_cloud_event_type_enum.py | 7 - ...loud_event_org_member_role_deleted_data.py | 30 - ...ud_event_org_member_role_deleted_object.py | 34 - ...member_role_deleted_object_organization.py | 26 - ...ent_org_member_role_deleted_object_role.py | 31 - ...ent_org_member_role_deleted_object_user.py | 26 - ...org_member_role_deleted_previous_object.py | 34 - ...le_deleted_previous_object_organization.py | 26 - ...ember_role_deleted_previous_object_role.py | 31 - ...ember_role_deleted_previous_object_user.py | 26 - ...event_org_member_role_deleted_type_enum.py | 7 - .../event_stream_cloud_event_org_updated.py | 29 - ...eam_cloud_event_org_updated_cloud_event.py | 77 - ...event_org_updated_cloud_event_type_enum.py | 5 - ...ent_stream_cloud_event_org_updated_data.py | 28 - ...t_stream_cloud_event_org_updated_object.py | 41 - ...cloud_event_org_updated_object_branding.py | 31 - ...vent_org_updated_object_branding_colors.py | 31 - ...cloud_event_org_updated_object_metadata.py | 8 - ...cloud_event_org_updated_previous_object.py | 45 - ...nt_org_updated_previous_object_branding.py | 31 - ...updated_previous_object_branding_colors.py | 31 - ...nt_org_updated_previous_object_metadata.py | 8 - ...tream_cloud_event_org_updated_type_enum.py | 5 - ...nt_stream_cloud_event_spec_version_enum.py | 5 - .../event_stream_cloud_event_user_created.py | 29 - ...am_cloud_event_user_created_cloud_event.py | 77 - ...vent_user_created_cloud_event_type_enum.py | 5 - ...nt_stream_cloud_event_user_created_data.py | 28 - ..._stream_cloud_event_user_created_object.py | 126 - ..._event_user_created_object_app_metadata.py | 8 - ...ent_user_created_object_identities_item.py | 27 - ...r_created_object_identities_item_custom.py | 53 - ...t_identities_item_custom_is_social_enum.py | 3 - ...ect_identities_item_custom_profile_data.py | 61 - ...ct_identities_item_custom_provider_enum.py | 7 - ...d_object_identities_item_custom_user_id.py | 5 - ...created_object_identities_item_database.py | 53 - ...identities_item_database_is_social_enum.py | 3 - ...t_identities_item_database_profile_data.py | 61 - ..._identities_item_database_provider_enum.py | 7 - ...object_identities_item_database_user_id.py | 5 - ...eated_object_identities_item_enterprise.py | 53 - ...entities_item_enterprise_is_social_enum.py | 3 - ...identities_item_enterprise_profile_data.py | 61 - ...dentities_item_enterprise_provider_enum.py | 10 - ...ject_identities_item_enterprise_user_id.py | 5 - ...ted_object_identities_item_passwordless.py | 53 - ...tities_item_passwordless_is_social_enum.py | 3 - ...entities_item_passwordless_profile_data.py | 61 - ...ntities_item_passwordless_provider_enum.py | 7 - ...ct_identities_item_passwordless_user_id.py | 5 - ...r_created_object_identities_item_social.py | 53 - ...t_identities_item_social_is_social_enum.py | 3 - ...ect_identities_item_social_profile_data.py | 61 - ...ct_identities_item_social_provider_enum.py | 48 - ...d_object_identities_item_social_user_id.py | 5 - ...event_user_created_object_user_metadata.py | 8 - ...loud_event_user_created_previous_object.py | 128 - ...er_created_previous_object_app_metadata.py | 8 - ...created_previous_object_identities_item.py | 27 - ..._previous_object_identities_item_custom.py | 53 - ...t_identities_item_custom_is_social_enum.py | 3 - ...ect_identities_item_custom_profile_data.py | 61 - ...ct_identities_item_custom_provider_enum.py | 7 - ...s_object_identities_item_custom_user_id.py | 5 - ...revious_object_identities_item_database.py | 53 - ...identities_item_database_is_social_enum.py | 3 - ...t_identities_item_database_profile_data.py | 61 - ..._identities_item_database_provider_enum.py | 7 - ...object_identities_item_database_user_id.py | 5 - ...vious_object_identities_item_enterprise.py | 53 - ...entities_item_enterprise_is_social_enum.py | 3 - ...identities_item_enterprise_profile_data.py | 61 - ...dentities_item_enterprise_provider_enum.py | 10 - ...ject_identities_item_enterprise_user_id.py | 5 - ...ous_object_identities_item_passwordless.py | 53 - ...tities_item_passwordless_is_social_enum.py | 3 - ...entities_item_passwordless_profile_data.py | 61 - ...ntities_item_passwordless_provider_enum.py | 7 - ...ct_identities_item_passwordless_user_id.py | 5 - ..._previous_object_identities_item_social.py | 53 - ...t_identities_item_social_is_social_enum.py | 3 - ...ect_identities_item_social_profile_data.py | 61 - ...ct_identities_item_social_provider_enum.py | 48 - ...s_object_identities_item_social_user_id.py | 5 - ...r_created_previous_object_user_metadata.py | 8 - ...ream_cloud_event_user_created_type_enum.py | 5 - .../event_stream_cloud_event_user_deleted.py | 29 - ...am_cloud_event_user_deleted_cloud_event.py | 77 - ...vent_user_deleted_cloud_event_type_enum.py | 5 - ...nt_stream_cloud_event_user_deleted_data.py | 28 - ..._stream_cloud_event_user_deleted_object.py | 131 - ..._event_user_deleted_object_app_metadata.py | 8 - ...ent_user_deleted_object_identities_item.py | 27 - ...r_deleted_object_identities_item_custom.py | 53 - ...t_identities_item_custom_is_social_enum.py | 3 - ...ect_identities_item_custom_profile_data.py | 61 - ...ct_identities_item_custom_provider_enum.py | 7 - ...d_object_identities_item_custom_user_id.py | 5 - ...deleted_object_identities_item_database.py | 53 - ...identities_item_database_is_social_enum.py | 3 - ...t_identities_item_database_profile_data.py | 61 - ..._identities_item_database_provider_enum.py | 7 - ...object_identities_item_database_user_id.py | 5 - ...leted_object_identities_item_enterprise.py | 53 - ...entities_item_enterprise_is_social_enum.py | 3 - ...identities_item_enterprise_profile_data.py | 61 - ...dentities_item_enterprise_provider_enum.py | 10 - ...ject_identities_item_enterprise_user_id.py | 5 - ...ted_object_identities_item_passwordless.py | 53 - ...tities_item_passwordless_is_social_enum.py | 3 - ...entities_item_passwordless_profile_data.py | 61 - ...ntities_item_passwordless_provider_enum.py | 7 - ...ct_identities_item_passwordless_user_id.py | 5 - ...r_deleted_object_identities_item_social.py | 53 - ...t_identities_item_social_is_social_enum.py | 3 - ...ect_identities_item_social_profile_data.py | 61 - ...ct_identities_item_social_provider_enum.py | 48 - ...d_object_identities_item_social_user_id.py | 5 - ...event_user_deleted_object_user_metadata.py | 8 - ...loud_event_user_deleted_previous_object.py | 128 - ...er_deleted_previous_object_app_metadata.py | 8 - ...deleted_previous_object_identities_item.py | 27 - ..._previous_object_identities_item_custom.py | 53 - ...t_identities_item_custom_is_social_enum.py | 3 - ...ect_identities_item_custom_profile_data.py | 61 - ...ct_identities_item_custom_provider_enum.py | 7 - ...s_object_identities_item_custom_user_id.py | 5 - ...revious_object_identities_item_database.py | 53 - ...identities_item_database_is_social_enum.py | 3 - ...t_identities_item_database_profile_data.py | 61 - ..._identities_item_database_provider_enum.py | 7 - ...object_identities_item_database_user_id.py | 5 - ...vious_object_identities_item_enterprise.py | 53 - ...entities_item_enterprise_is_social_enum.py | 3 - ...identities_item_enterprise_profile_data.py | 61 - ...dentities_item_enterprise_provider_enum.py | 10 - ...ject_identities_item_enterprise_user_id.py | 5 - ...ous_object_identities_item_passwordless.py | 53 - ...tities_item_passwordless_is_social_enum.py | 3 - ...entities_item_passwordless_profile_data.py | 61 - ...ntities_item_passwordless_provider_enum.py | 7 - ...ct_identities_item_passwordless_user_id.py | 5 - ..._previous_object_identities_item_social.py | 53 - ...t_identities_item_social_is_social_enum.py | 3 - ...ect_identities_item_social_profile_data.py | 61 - ...ct_identities_item_social_provider_enum.py | 48 - ...s_object_identities_item_social_user_id.py | 5 - ...r_deleted_previous_object_user_metadata.py | 8 - ...ream_cloud_event_user_deleted_type_enum.py | 5 - .../event_stream_cloud_event_user_updated.py | 29 - ...am_cloud_event_user_updated_cloud_event.py | 77 - ...vent_user_updated_cloud_event_type_enum.py | 5 - ...nt_stream_cloud_event_user_updated_data.py | 28 - ..._stream_cloud_event_user_updated_object.py | 126 - ..._event_user_updated_object_app_metadata.py | 8 - ...ent_user_updated_object_identities_item.py | 27 - ...r_updated_object_identities_item_custom.py | 53 - ...t_identities_item_custom_is_social_enum.py | 3 - ...ect_identities_item_custom_profile_data.py | 61 - ...ct_identities_item_custom_provider_enum.py | 7 - ...d_object_identities_item_custom_user_id.py | 5 - ...updated_object_identities_item_database.py | 53 - ...identities_item_database_is_social_enum.py | 3 - ...t_identities_item_database_profile_data.py | 61 - ..._identities_item_database_provider_enum.py | 7 - ...object_identities_item_database_user_id.py | 5 - ...dated_object_identities_item_enterprise.py | 53 - ...entities_item_enterprise_is_social_enum.py | 3 - ...identities_item_enterprise_profile_data.py | 61 - ...dentities_item_enterprise_provider_enum.py | 10 - ...ject_identities_item_enterprise_user_id.py | 5 - ...ted_object_identities_item_passwordless.py | 53 - ...tities_item_passwordless_is_social_enum.py | 3 - ...entities_item_passwordless_profile_data.py | 61 - ...ntities_item_passwordless_provider_enum.py | 7 - ...ct_identities_item_passwordless_user_id.py | 5 - ...r_updated_object_identities_item_social.py | 53 - ...t_identities_item_social_is_social_enum.py | 3 - ...ect_identities_item_social_profile_data.py | 61 - ...ct_identities_item_social_provider_enum.py | 48 - ...d_object_identities_item_social_user_id.py | 5 - ...event_user_updated_object_user_metadata.py | 8 - ...loud_event_user_updated_previous_object.py | 128 - ...er_updated_previous_object_app_metadata.py | 8 - ...updated_previous_object_identities_item.py | 27 - ..._previous_object_identities_item_custom.py | 53 - ...t_identities_item_custom_is_social_enum.py | 3 - ...ect_identities_item_custom_profile_data.py | 61 - ...ct_identities_item_custom_provider_enum.py | 7 - ...s_object_identities_item_custom_user_id.py | 5 - ...revious_object_identities_item_database.py | 53 - ...identities_item_database_is_social_enum.py | 3 - ...t_identities_item_database_profile_data.py | 61 - ..._identities_item_database_provider_enum.py | 7 - ...object_identities_item_database_user_id.py | 5 - ...vious_object_identities_item_enterprise.py | 53 - ...entities_item_enterprise_is_social_enum.py | 3 - ...identities_item_enterprise_profile_data.py | 61 - ...dentities_item_enterprise_provider_enum.py | 10 - ...ject_identities_item_enterprise_user_id.py | 5 - ...ous_object_identities_item_passwordless.py | 53 - ...tities_item_passwordless_is_social_enum.py | 3 - ...entities_item_passwordless_profile_data.py | 61 - ...ntities_item_passwordless_provider_enum.py | 7 - ...ct_identities_item_passwordless_user_id.py | 5 - ..._previous_object_identities_item_social.py | 53 - ...t_identities_item_social_is_social_enum.py | 3 - ...ect_identities_item_social_profile_data.py | 61 - ...ct_identities_item_social_provider_enum.py | 48 - ...s_object_identities_item_social_user_id.py | 5 - ...r_updated_previous_object_user_metadata.py | 8 - ...ream_cloud_event_user_updated_type_enum.py | 5 - .../management/types/event_stream_delivery.py | 44 - .../types/event_stream_delivery_attempt.py | 35 - .../event_stream_delivery_event_type_enum.py | 34 - .../event_stream_delivery_status_enum.py | 5 - .../types/event_stream_destination_patch.py | 8 - ...ent_stream_event_bridge_aws_region_enum.py | 45 - ...event_stream_event_bridge_configuration.py | 33 - .../event_stream_event_bridge_destination.py | 22 - ...ream_event_bridge_destination_type_enum.py | 5 - ...nt_stream_event_bridge_response_content.py | 48 - .../types/event_stream_event_type_enum.py | 34 - .../types/event_stream_response_content.py | 11 - .../types/event_stream_status_enum.py | 5 - ...stream_subscribe_events_event_type_enum.py | 34 - ...tream_subscribe_events_event_type_param.py | 10 - ...tream_subscribe_events_response_content.py | 592 - .../types/event_stream_subscription.py | 23 - .../event_stream_test_event_type_enum.py | 34 - ...t_stream_webhook_authorization_response.py | 11 - .../types/event_stream_webhook_basic_auth.py | 28 - ...t_stream_webhook_basic_auth_method_enum.py | 5 - .../types/event_stream_webhook_bearer_auth.py | 24 - ..._stream_webhook_bearer_auth_method_enum.py | 5 - .../event_stream_webhook_configuration.py | 29 - ...event_stream_webhook_custom_header_auth.py | 28 - ..._webhook_custom_header_auth_method_enum.py | 5 - .../types/event_stream_webhook_destination.py | 22 - ...nt_stream_webhook_destination_type_enum.py | 5 - .../event_stream_webhook_response_content.py | 48 - .../management/types/experiment_list_item.py | 58 - .../types/experiment_status_enum.py | 5 - .../experiment_transition_status_enum.py | 5 - .../types/experiment_validation_error.py | 27 - .../management/types/express_configuration.py | 72 - .../types/express_configuration_or_null.py | 72 - src/auth0/management/types/feature_flag.py | 30 - .../types/feature_flag_config_param.py | 25 - .../feature_flag_config_param_type_enum.py | 7 - .../types/feature_flag_config_params.py | 10 - .../types/feature_flag_status_enum.py | 5 - .../types/feature_flag_type_enum.py | 5 - src/auth0/management/types/fed_cm_login.py | 24 - .../management/types/fed_cm_login_google.py | 26 - .../types/fed_cm_login_google_patch.py | 26 - .../management/types/fed_cm_login_patch.py | 24 - src/auth0/management/types/flow_action.py | 60 - .../types/flow_action_activecampaign.py | 8 - ...low_action_activecampaign_list_contacts.py | 28 - ...ion_activecampaign_list_contacts_action.py | 5 - ...ction_activecampaign_list_contacts_type.py | 5 - ...ow_action_activecampaign_upsert_contact.py | 28 - ...on_activecampaign_upsert_contact_action.py | 5 - ...on_activecampaign_upsert_contact_params.py | 27 - ...ign_upsert_contact_params_custom_fields.py | 5 - ...tion_activecampaign_upsert_contact_type.py | 5 - .../management/types/flow_action_airtable.py | 11 - .../flow_action_airtable_create_record.py | 28 - ...ow_action_airtable_create_record_action.py | 5 - ...ow_action_airtable_create_record_params.py | 23 - ...on_airtable_create_record_params_fields.py | 5 - ...flow_action_airtable_create_record_type.py | 5 - .../flow_action_airtable_list_records.py | 28 - ...low_action_airtable_list_records_action.py | 5 - ...low_action_airtable_list_records_params.py | 23 - .../flow_action_airtable_list_records_type.py | 5 - .../flow_action_airtable_update_record.py | 28 - ...ow_action_airtable_update_record_action.py | 5 - ...ow_action_airtable_update_record_params.py | 24 - ...on_airtable_update_record_params_fields.py | 5 - ...flow_action_airtable_update_record_type.py | 5 - .../management/types/flow_action_auth_0.py | 21 - .../types/flow_action_auth_0_create_user.py | 28 - .../flow_action_auth_0_create_user_action.py | 5 - .../flow_action_auth_0_create_user_params.py | 21 - ...ction_auth_0_create_user_params_payload.py | 5 - .../flow_action_auth_0_create_user_type.py | 5 - .../types/flow_action_auth_0_get_user.py | 28 - .../flow_action_auth_0_get_user_action.py | 5 - .../flow_action_auth_0_get_user_params.py | 20 - .../types/flow_action_auth_0_get_user_type.py | 5 - .../types/flow_action_auth_0_make_call.py | 28 - .../flow_action_auth_0_make_call_action.py | 5 - .../flow_action_auth_0_make_call_params.py | 27 - ...ion_auth_0_make_call_params_custom_vars.py | 5 - .../flow_action_auth_0_make_call_type.py | 5 - .../types/flow_action_auth_0_send_email.py | 28 - .../flow_action_auth_0_send_email_action.py | 5 - .../flow_action_auth_0_send_email_params.py | 30 - ...ow_action_auth_0_send_email_params_from.py | 21 - ...ion_auth_0_send_email_params_from_email.py | 3 - ...flow_action_auth_0_send_email_params_to.py | 3 - .../flow_action_auth_0_send_email_type.py | 5 - .../types/flow_action_auth_0_send_request.py | 28 - .../flow_action_auth_0_send_request_action.py | 5 - .../flow_action_auth_0_send_request_params.py | 28 - ..._auth_0_send_request_params_custom_vars.py | 5 - ...tion_auth_0_send_request_params_headers.py | 5 - ...ction_auth_0_send_request_params_method.py | 7 - ...tion_auth_0_send_request_params_payload.py | 9 - ...th_0_send_request_params_payload_object.py | 5 - ...auth_0_send_request_params_query_params.py | 9 - ..._send_request_params_query_params_value.py | 5 - .../flow_action_auth_0_send_request_type.py | 5 - .../types/flow_action_auth_0_send_sms.py | 28 - .../flow_action_auth_0_send_sms_action.py | 5 - .../flow_action_auth_0_send_sms_params.py | 27 - ...tion_auth_0_send_sms_params_custom_vars.py | 5 - .../types/flow_action_auth_0_send_sms_type.py | 5 - .../types/flow_action_auth_0_update_user.py | 28 - .../flow_action_auth_0_update_user_action.py | 5 - .../flow_action_auth_0_update_user_params.py | 22 - ...ction_auth_0_update_user_params_changes.py | 5 - .../flow_action_auth_0_update_user_type.py | 5 - .../management/types/flow_action_bigquery.py | 5 - .../types/flow_action_bigquery_insert_rows.py | 28 - ...flow_action_bigquery_insert_rows_action.py | 5 - ...flow_action_bigquery_insert_rows_params.py | 23 - ...action_bigquery_insert_rows_params_data.py | 5 - .../flow_action_bigquery_insert_rows_type.py | 5 - .../management/types/flow_action_clearbit.py | 8 - .../flow_action_clearbit_find_company.py | 28 - ...low_action_clearbit_find_company_action.py | 5 - ...low_action_clearbit_find_company_params.py | 20 - .../flow_action_clearbit_find_company_type.py | 5 - .../types/flow_action_clearbit_find_person.py | 28 - ...flow_action_clearbit_find_person_action.py | 5 - ...flow_action_clearbit_find_person_params.py | 20 - .../flow_action_clearbit_find_person_type.py | 5 - .../management/types/flow_action_email.py | 5 - .../types/flow_action_email_verify_email.py | 28 - .../flow_action_email_verify_email_action.py | 5 - .../flow_action_email_verify_email_params.py | 21 - ..._action_email_verify_email_params_rules.py | 24 - .../flow_action_email_verify_email_type.py | 5 - .../management/types/flow_action_flow.py | 24 - .../flow_action_flow_boolean_condition.py | 41 - ...ow_action_flow_boolean_condition_action.py | 5 - ...ow_action_flow_boolean_condition_params.py | 38 - ...flow_action_flow_boolean_condition_type.py | 5 - .../types/flow_action_flow_delay_flow.py | 28 - .../flow_action_flow_delay_flow_action.py | 5 - .../flow_action_flow_delay_flow_params.py | 22 - ...ow_action_flow_delay_flow_params_number.py | 5 - ...low_action_flow_delay_flow_params_units.py | 5 - .../types/flow_action_flow_delay_flow_type.py | 5 - .../types/flow_action_flow_do_nothing.py | 28 - .../flow_action_flow_do_nothing_action.py | 5 - .../types/flow_action_flow_do_nothing_type.py | 5 - .../types/flow_action_flow_error_message.py | 28 - .../flow_action_flow_error_message_action.py | 5 - .../flow_action_flow_error_message_params.py | 19 - .../flow_action_flow_error_message_type.py | 5 - .../types/flow_action_flow_map_value.py | 28 - .../flow_action_flow_map_value_action.py | 5 - .../flow_action_flow_map_value_params.py | 24 - ...flow_action_flow_map_value_params_cases.py | 5 - ...w_action_flow_map_value_params_fallback.py | 9 - ...n_flow_map_value_params_fallback_object.py | 5 - ...flow_action_flow_map_value_params_input.py | 5 - .../types/flow_action_flow_return_json.py | 28 - .../flow_action_flow_return_json_action.py | 5 - .../flow_action_flow_return_json_params.py | 20 - ..._action_flow_return_json_params_payload.py | 7 - ..._flow_return_json_params_payload_object.py | 5 - .../flow_action_flow_return_json_type.py | 5 - .../types/flow_action_flow_store_vars.py | 28 - .../flow_action_flow_store_vars_action.py | 5 - .../flow_action_flow_store_vars_params.py | 20 - ...flow_action_flow_store_vars_params_vars.py | 5 - .../types/flow_action_flow_store_vars_type.py | 5 - .../types/flow_action_google_sheets.py | 5 - .../flow_action_google_sheets_add_row.py | 28 - ...low_action_google_sheets_add_row_action.py | 5 - ...low_action_google_sheets_add_row_params.py | 24 - ...n_google_sheets_add_row_params_sheet_id.py | 5 - ...ion_google_sheets_add_row_params_values.py | 5 - .../flow_action_google_sheets_add_row_type.py | 5 - .../management/types/flow_action_http.py | 5 - .../types/flow_action_http_send_request.py | 28 - .../flow_action_http_send_request_action.py | 5 - .../flow_action_http_send_request_params.py | 32 - ...ion_http_send_request_params_basic_auth.py | 20 - ...n_http_send_request_params_content_type.py | 5 - ...action_http_send_request_params_headers.py | 5 - ..._action_http_send_request_params_method.py | 7 - ...action_http_send_request_params_payload.py | 9 - ...n_http_send_request_params_query_params.py | 9 - ..._send_request_params_query_params_value.py | 5 - .../flow_action_http_send_request_type.py | 5 - .../management/types/flow_action_hubspot.py | 11 - .../flow_action_hubspot_enroll_contact.py | 28 - ...ow_action_hubspot_enroll_contact_action.py | 5 - ...ow_action_hubspot_enroll_contact_params.py | 22 - ...bspot_enroll_contact_params_workflow_id.py | 5 - ...flow_action_hubspot_enroll_contact_type.py | 5 - .../types/flow_action_hubspot_get_contact.py | 28 - .../flow_action_hubspot_get_contact_action.py | 5 - .../flow_action_hubspot_get_contact_params.py | 20 - .../flow_action_hubspot_get_contact_type.py | 5 - .../flow_action_hubspot_upsert_contact.py | 28 - ...ow_action_hubspot_upsert_contact_action.py | 5 - ...ow_action_hubspot_upsert_contact_params.py | 22 - ..._hubspot_upsert_contact_params_property.py | 19 - ...flow_action_hubspot_upsert_contact_type.py | 5 - .../management/types/flow_action_json.py | 9 - .../types/flow_action_json_create_json.py | 28 - .../flow_action_json_create_json_action.py | 5 - .../flow_action_json_create_json_params.py | 20 - ...w_action_json_create_json_params_object.py | 5 - .../flow_action_json_create_json_type.py | 5 - .../types/flow_action_json_parse_json.py | 28 - .../flow_action_json_parse_json_action.py | 5 - .../flow_action_json_parse_json_params.py | 21 - .../types/flow_action_json_parse_json_type.py | 5 - .../types/flow_action_json_serialize_json.py | 28 - .../flow_action_json_serialize_json_action.py | 5 - .../flow_action_json_serialize_json_params.py | 20 - ...ction_json_serialize_json_params_object.py | 7 - ...son_serialize_json_params_object_object.py | 5 - .../flow_action_json_serialize_json_type.py | 5 - src/auth0/management/types/flow_action_jwt.py | 9 - .../types/flow_action_jwt_decode_jwt.py | 28 - .../flow_action_jwt_decode_jwt_action.py | 5 - .../flow_action_jwt_decode_jwt_params.py | 19 - .../types/flow_action_jwt_decode_jwt_type.py | 5 - .../types/flow_action_jwt_sign_jwt.py | 28 - .../types/flow_action_jwt_sign_jwt_action.py | 5 - .../types/flow_action_jwt_sign_jwt_params.py | 25 - ...flow_action_jwt_sign_jwt_params_payload.py | 5 - .../types/flow_action_jwt_sign_jwt_type.py | 5 - .../types/flow_action_jwt_verify_jwt.py | 28 - .../flow_action_jwt_verify_jwt_action.py | 5 - .../flow_action_jwt_verify_jwt_params.py | 22 - .../types/flow_action_jwt_verify_jwt_type.py | 5 - .../management/types/flow_action_mailchimp.py | 5 - .../flow_action_mailchimp_upsert_member.py | 28 - ...w_action_mailchimp_upsert_member_action.py | 5 - ...w_action_mailchimp_upsert_member_params.py | 22 - ...n_mailchimp_upsert_member_params_member.py | 24 - ...psert_member_params_member_merge_fields.py | 5 - ...low_action_mailchimp_upsert_member_type.py | 5 - .../management/types/flow_action_mailjet.py | 5 - .../types/flow_action_mailjet_send_email.py | 28 - .../flow_action_mailjet_send_email_action.py | 5 - .../flow_action_mailjet_send_email_params.py | 10 - ...ction_mailjet_send_email_params_content.py | 19 - ...n_mailjet_send_email_params_template_id.py | 20 - .../flow_action_mailjet_send_email_type.py | 5 - src/auth0/management/types/flow_action_otp.py | 8 - .../types/flow_action_otp_generate_code.py | 28 - .../flow_action_otp_generate_code_action.py | 5 - .../flow_action_otp_generate_code_params.py | 20 - .../flow_action_otp_generate_code_type.py | 5 - .../types/flow_action_otp_verify_code.py | 28 - .../flow_action_otp_verify_code_action.py | 5 - .../flow_action_otp_verify_code_params.py | 21 - ...flow_action_otp_verify_code_params_code.py | 5 - .../types/flow_action_otp_verify_code_type.py | 5 - .../management/types/flow_action_pipedrive.py | 11 - .../types/flow_action_pipedrive_add_deal.py | 28 - .../flow_action_pipedrive_add_deal_action.py | 5 - .../flow_action_pipedrive_add_deal_params.py | 31 - ...action_pipedrive_add_deal_params_fields.py | 5 - ...pedrive_add_deal_params_organization_id.py | 5 - ...ion_pipedrive_add_deal_params_person_id.py | 5 - ...tion_pipedrive_add_deal_params_stage_id.py | 5 - ...ction_pipedrive_add_deal_params_user_id.py | 5 - .../flow_action_pipedrive_add_deal_type.py | 5 - .../flow_action_pipedrive_add_organization.py | 28 - ...ction_pipedrive_add_organization_action.py | 5 - ...ction_pipedrive_add_organization_params.py | 24 - ...ipedrive_add_organization_params_fields.py | 5 - ...edrive_add_organization_params_owner_id.py | 5 - ..._action_pipedrive_add_organization_type.py | 5 - .../types/flow_action_pipedrive_add_person.py | 28 - ...flow_action_pipedrive_add_person_action.py | 5 - ...flow_action_pipedrive_add_person_params.py | 28 - ...tion_pipedrive_add_person_params_fields.py | 5 - ...drive_add_person_params_organization_id.py | 5 - ...on_pipedrive_add_person_params_owner_id.py | 5 - .../flow_action_pipedrive_add_person_type.py | 5 - .../types/flow_action_salesforce.py | 15 - .../flow_action_salesforce_create_lead.py | 28 - ...ow_action_salesforce_create_lead_action.py | 5 - ...ow_action_salesforce_create_lead_params.py | 26 - ...n_salesforce_create_lead_params_payload.py | 5 - ...flow_action_salesforce_create_lead_type.py | 5 - .../types/flow_action_salesforce_get_lead.py | 28 - .../flow_action_salesforce_get_lead_action.py | 5 - .../flow_action_salesforce_get_lead_params.py | 20 - .../flow_action_salesforce_get_lead_type.py | 5 - .../flow_action_salesforce_search_leads.py | 28 - ...w_action_salesforce_search_leads_action.py | 5 - ...w_action_salesforce_search_leads_params.py | 23 - ...sforce_search_leads_params_search_field.py | 7 - ...low_action_salesforce_search_leads_type.py | 5 - .../flow_action_salesforce_update_lead.py | 28 - ...ow_action_salesforce_update_lead_action.py | 5 - ...ow_action_salesforce_update_lead_params.py | 22 - ...n_salesforce_update_lead_params_payload.py | 5 - ...flow_action_salesforce_update_lead_type.py | 5 - .../management/types/flow_action_sendgrid.py | 5 - .../types/flow_action_sendgrid_send_email.py | 28 - .../flow_action_sendgrid_send_email_action.py | 5 - .../flow_action_sendgrid_send_email_params.py | 26 - ...ction_sendgrid_send_email_params_person.py | 20 - .../flow_action_sendgrid_send_email_type.py | 5 - .../management/types/flow_action_slack.py | 5 - .../types/flow_action_slack_post_message.py | 28 - .../flow_action_slack_post_message_action.py | 5 - .../flow_action_slack_post_message_params.py | 22 - ...on_slack_post_message_params_attachment.py | 24 - ...ck_post_message_params_attachment_color.py | 5 - ...ck_post_message_params_attachment_field.py | 21 - .../flow_action_slack_post_message_type.py | 5 - .../management/types/flow_action_stripe.py | 21 - .../types/flow_action_stripe_add_tax_id.py | 28 - .../flow_action_stripe_add_tax_id_action.py | 5 - .../flow_action_stripe_add_tax_id_params.py | 22 - .../flow_action_stripe_add_tax_id_type.py | 5 - .../types/flow_action_stripe_address.py | 32 - .../flow_action_stripe_create_customer.py | 28 - ...ow_action_stripe_create_customer_action.py | 5 - ...ow_action_stripe_create_customer_params.py | 30 - ...flow_action_stripe_create_customer_type.py | 5 - ...low_action_stripe_create_portal_session.py | 28 - ...ion_stripe_create_portal_session_action.py | 5 - ...ion_stripe_create_portal_session_params.py | 21 - ...ction_stripe_create_portal_session_type.py | 5 - .../types/flow_action_stripe_delete_tax_id.py | 28 - ...flow_action_stripe_delete_tax_id_action.py | 5 - ...flow_action_stripe_delete_tax_id_params.py | 21 - .../flow_action_stripe_delete_tax_id_type.py | 5 - .../flow_action_stripe_find_customers.py | 28 - ...low_action_stripe_find_customers_action.py | 5 - ...low_action_stripe_find_customers_params.py | 20 - .../flow_action_stripe_find_customers_type.py | 5 - .../types/flow_action_stripe_get_customer.py | 28 - .../flow_action_stripe_get_customer_action.py | 5 - .../flow_action_stripe_get_customer_params.py | 20 - .../flow_action_stripe_get_customer_type.py | 5 - .../types/flow_action_stripe_metadata.py | 5 - .../types/flow_action_stripe_tax_id.py | 20 - .../flow_action_stripe_update_customer.py | 28 - ...ow_action_stripe_update_customer_action.py | 5 - ...ow_action_stripe_update_customer_params.py | 29 - ...flow_action_stripe_update_customer_type.py | 5 - .../management/types/flow_action_telegram.py | 5 - .../flow_action_telegram_send_message.py | 28 - ...low_action_telegram_send_message_action.py | 5 - ...low_action_telegram_send_message_params.py | 21 - .../flow_action_telegram_send_message_type.py | 5 - .../management/types/flow_action_twilio.py | 8 - .../types/flow_action_twilio_make_call.py | 28 - .../flow_action_twilio_make_call_action.py | 5 - .../flow_action_twilio_make_call_params.py | 24 - .../flow_action_twilio_make_call_type.py | 5 - .../types/flow_action_twilio_send_sms.py | 28 - .../flow_action_twilio_send_sms_action.py | 5 - .../flow_action_twilio_send_sms_params.py | 24 - .../types/flow_action_twilio_send_sms_type.py | 5 - .../management/types/flow_action_whatsapp.py | 5 - .../flow_action_whatsapp_send_message.py | 28 - ...low_action_whatsapp_send_message_action.py | 5 - ...low_action_whatsapp_send_message_params.py | 25 - ...on_whatsapp_send_message_params_payload.py | 7 - ...sapp_send_message_params_payload_object.py | 5 - ...ction_whatsapp_send_message_params_type.py | 8 - .../flow_action_whatsapp_send_message_type.py | 5 - src/auth0/management/types/flow_action_xml.py | 8 - .../types/flow_action_xml_parse_xml.py | 28 - .../types/flow_action_xml_parse_xml_action.py | 5 - .../types/flow_action_xml_parse_xml_params.py | 19 - .../types/flow_action_xml_parse_xml_type.py | 5 - .../types/flow_action_xml_serialize_xml.py | 28 - .../flow_action_xml_serialize_xml_action.py | 5 - .../flow_action_xml_serialize_xml_params.py | 20 - ..._action_xml_serialize_xml_params_object.py | 7 - ..._xml_serialize_xml_params_object_object.py | 5 - .../flow_action_xml_serialize_xml_type.py | 5 - .../management/types/flow_action_zapier.py | 5 - .../flow_action_zapier_trigger_webhook.py | 28 - ...ow_action_zapier_trigger_webhook_action.py | 5 - ...ow_action_zapier_trigger_webhook_params.py | 21 - ...on_zapier_trigger_webhook_params_method.py | 5 - ...flow_action_zapier_trigger_webhook_type.py | 5 - .../management/types/flow_execution_debug.py | 8 - .../types/flow_execution_summary.py | 58 - src/auth0/management/types/flow_summary.py | 24 - .../flows_vault_connectio_setup_api_key.py | 21 - ...t_connectio_setup_api_key_with_base_url.py | 22 - ...ault_connectio_setup_bigquery_oauth_jwt.py | 23 - ...flows_vault_connectio_setup_http_bearer.py | 21 - .../types/flows_vault_connectio_setup_jwt.py | 22 - ...ault_connectio_setup_jwt_algorithm_enum.py | 10 - ...s_vault_connectio_setup_mailjet_api_key.py | 22 - .../flows_vault_connectio_setup_oauth_app.py | 24 - .../flows_vault_connectio_setup_oauth_code.py | 21 - ...ws_vault_connectio_setup_secret_api_key.py | 21 - ...s_vault_connectio_setup_stripe_key_pair.py | 22 - .../flows_vault_connectio_setup_token.py | 21 - ...ws_vault_connectio_setup_twilio_api_key.py | 22 - ...vault_connectio_setup_type_api_key_enum.py | 5 - ..._vault_connectio_setup_type_bearer_enum.py | 5 - ...ows_vault_connectio_setup_type_jwt_enum.py | 5 - ...ault_connectio_setup_type_key_pair_enum.py | 5 - ...ult_connectio_setup_type_oauth_app_enum.py | 5 - ...lt_connectio_setup_type_oauth_code_enum.py | 5 - ...ult_connectio_setup_type_oauth_jwt_enum.py | 5 - ...s_vault_connectio_setup_type_token_enum.py | 5 - ...vault_connectio_setup_type_webhook_enum.py | 5 - .../flows_vault_connectio_setup_webhook.py | 21 - ...t_connection_app_id_activecampaign_enum.py | 5 - ...s_vault_connection_app_id_airtable_enum.py | 5 - ...ows_vault_connection_app_id_auth_0_enum.py | 5 - ...s_vault_connection_app_id_bigquery_enum.py | 5 - ...s_vault_connection_app_id_clearbit_enum.py | 5 - ...s_vault_connection_app_id_docusign_enum.py | 5 - ...lt_connection_app_id_google_sheets_enum.py | 5 - ...flows_vault_connection_app_id_http_enum.py | 5 - ...ws_vault_connection_app_id_hubspot_enum.py | 5 - .../flows_vault_connection_app_id_jwt_enum.py | 5 - ..._vault_connection_app_id_mailchimp_enum.py | 5 - ...ws_vault_connection_app_id_mailjet_enum.py | 5 - ..._vault_connection_app_id_pipedrive_enum.py | 5 - ...vault_connection_app_id_salesforce_enum.py | 5 - ...s_vault_connection_app_id_sendgrid_enum.py | 5 - ...lows_vault_connection_app_id_slack_enum.py | 5 - ...ows_vault_connection_app_id_stripe_enum.py | 5 - ...s_vault_connection_app_id_telegram_enum.py | 5 - ...ows_vault_connection_app_id_twilio_enum.py | 5 - ...s_vault_connection_app_id_whatsapp_enum.py | 5 - ...ows_vault_connection_app_id_zapier_enum.py | 5 - ...ows_vault_connection_http_api_key_setup.py | 28 - ...t_connection_http_api_key_setup_in_enum.py | 5 - ..._vault_connection_http_basic_auth_setup.py | 22 - ...ion_http_oauth_client_credentials_setup.py | 28 - ...ault_connection_setup_type_api_key_enum.py | 5 - ...t_connection_setup_type_basic_auth_enum.py | 5 - ...etup_type_oauth_client_credentials_enum.py | 7 - .../types/flows_vault_connection_summary.py | 60 - .../management/types/forbidden_schema.py | 28 - .../types/forbidden_schema_error.py | 5 - src/auth0/management/types/form_block.py | 23 - .../management/types/form_block_divider.py | 25 - .../types/form_block_divider_config.py | 19 - src/auth0/management/types/form_block_html.py | 25 - .../types/form_block_html_config.py | 19 - .../management/types/form_block_image.py | 25 - .../types/form_block_image_config.py | 22 - .../form_block_image_config_position_enum.py | 5 - .../types/form_block_jump_button.py | 25 - .../types/form_block_jump_button_config.py | 23 - .../form_block_jump_button_config_style.py | 19 - .../types/form_block_next_button.py | 25 - .../types/form_block_previous_button.py | 25 - .../form_block_previous_button_config.py | 19 - .../types/form_block_resend_button.py | 25 - .../types/form_block_resend_button_config.py | 26 - ...esend_button_config_text_alignment_enum.py | 5 - .../management/types/form_block_rich_text.py | 25 - .../types/form_block_rich_text_config.py | 19 - .../types/form_block_type_divider_const.py | 5 - .../types/form_block_type_html_const.py | 5 - .../types/form_block_type_image_const.py | 5 - .../form_block_type_jump_button_const.py | 5 - .../form_block_type_next_button_const.py | 5 - .../form_block_type_previous_button_const.py | 5 - .../form_block_type_resend_button_const.py | 5 - .../types/form_block_type_rich_text_const.py | 5 - src/auth0/management/types/form_component.py | 9 - .../form_component_category_block_const.py | 5 - .../form_component_category_field_const.py | 5 - .../form_component_category_widget_const.py | 5 - .../management/types/form_ending_node.py | 26 - .../types/form_ending_node_after_submit.py | 19 - .../management/types/form_ending_node_id.py | 5 - .../types/form_ending_node_nullable.py | 7 - .../types/form_ending_node_redirection.py | 20 - ...form_ending_node_resume_flow_true_const.py | 3 - src/auth0/management/types/form_field.py | 39 - .../management/types/form_field_boolean.py | 29 - .../types/form_field_boolean_config.py | 21 - .../form_field_boolean_config_options.py | 20 - .../management/types/form_field_cards.py | 29 - .../types/form_field_cards_config.py | 22 - .../types/form_field_cards_config_option.py | 21 - .../management/types/form_field_choice.py | 29 - .../types/form_field_choice_config.py | 23 - .../form_field_choice_config_allow_other.py | 22 - ...ce_config_allow_other_enabled_true_enum.py | 3 - .../types/form_field_choice_config_option.py | 20 - .../management/types/form_field_custom.py | 29 - .../types/form_field_custom_config.py | 28 - .../types/form_field_custom_config_params.py | 5 - .../types/form_field_custom_config_schema.py | 5 - src/auth0/management/types/form_field_date.py | 29 - .../types/form_field_date_config.py | 21 - .../form_field_date_config_format_enum.py | 5 - .../management/types/form_field_dropdown.py | 29 - .../types/form_field_dropdown_config.py | 22 - .../form_field_dropdown_config_option.py | 20 - .../management/types/form_field_email.py | 29 - .../types/form_field_email_config.py | 20 - src/auth0/management/types/form_field_file.py | 29 - .../types/form_field_file_config.py | 32 - .../form_field_file_config_category_enum.py | 7 - .../types/form_field_file_config_storage.py | 20 - ...orm_field_file_config_storage_type_enum.py | 5 - .../management/types/form_field_legal.py | 29 - .../types/form_field_legal_config.py | 19 - .../management/types/form_field_number.py | 29 - .../types/form_field_number_config.py | 22 - .../management/types/form_field_password.py | 29 - .../types/form_field_password_config.py | 26 - .../form_field_password_config_hash_enum.py | 5 - .../management/types/form_field_payment.py | 29 - .../types/form_field_payment_config.py | 28 - .../types/form_field_payment_config_charge.py | 10 - ...orm_field_payment_config_charge_one_off.py | 22 - ...ent_config_charge_one_off_currency_enum.py | 7 - ...d_payment_config_charge_one_off_one_off.py | 22 - ...nt_config_charge_one_off_one_off_amount.py | 5 - ...ield_payment_config_charge_subscription.py | 22 - ...ayment_config_charge_type_one_off_const.py | 5 - ...t_config_charge_type_subscription_const.py | 5 - .../form_field_payment_config_credentials.py | 20 - .../form_field_payment_config_customer.py | 5 - ...m_field_payment_config_field_properties.py | 20 - .../types/form_field_payment_config_fields.py | 23 - ...form_field_payment_config_provider_enum.py | 5 - .../form_field_payment_config_subscription.py | 5 - .../management/types/form_field_social.py | 29 - .../types/form_field_social_config.py | 17 - src/auth0/management/types/form_field_tel.py | 29 - .../management/types/form_field_tel_config.py | 25 - .../types/form_field_tel_config_strings.py | 19 - src/auth0/management/types/form_field_text.py | 29 - .../types/form_field_text_config.py | 23 - .../types/form_field_type_boolean_const.py | 5 - .../types/form_field_type_cards_const.py | 5 - .../types/form_field_type_choice_const.py | 5 - .../types/form_field_type_custom_const.py | 5 - .../types/form_field_type_date_const.py | 5 - .../types/form_field_type_dropdown_const.py | 5 - .../types/form_field_type_email_const.py | 5 - .../types/form_field_type_file_const.py | 5 - .../types/form_field_type_legal_const.py | 5 - .../types/form_field_type_number_const.py | 5 - .../types/form_field_type_password_const.py | 5 - .../types/form_field_type_payment_const.py | 5 - .../types/form_field_type_social_const.py | 5 - .../types/form_field_type_tel_const.py | 5 - .../types/form_field_type_text_const.py | 5 - .../types/form_field_type_url_const.py | 5 - src/auth0/management/types/form_field_url.py | 29 - .../management/types/form_field_url_config.py | 20 - src/auth0/management/types/form_flow.py | 26 - .../management/types/form_flow_config.py | 21 - .../management/types/form_hidden_field.py | 20 - src/auth0/management/types/form_languages.py | 20 - .../types/form_languages_nullable.py | 7 - src/auth0/management/types/form_messages.py | 22 - .../management/types/form_messages_custom.py | 5 - .../management/types/form_messages_error.py | 5 - .../types/form_messages_nullable.py | 7 - src/auth0/management/types/form_node.py | 9 - .../management/types/form_node_coordinates.py | 20 - src/auth0/management/types/form_node_list.py | 7 - .../types/form_node_list_nullable.py | 7 - .../management/types/form_node_pointer.py | 7 - .../types/form_node_type_flow_const.py | 5 - .../types/form_node_type_router_const.py | 5 - .../types/form_node_type_step_const.py | 5 - src/auth0/management/types/form_router.py | 26 - .../management/types/form_router_config.py | 22 - .../management/types/form_router_rule.py | 22 - src/auth0/management/types/form_start_node.py | 24 - .../types/form_start_node_nullable.py | 7 - src/auth0/management/types/form_step.py | 26 - .../types/form_step_component_list.py | 7 - .../management/types/form_step_config.py | 22 - src/auth0/management/types/form_style.py | 19 - .../management/types/form_style_nullable.py | 7 - src/auth0/management/types/form_summary.py | 25 - .../management/types/form_translations.py | 5 - .../types/form_translations_nullable.py | 7 - src/auth0/management/types/form_widget.py | 9 - ...rm_widget_auth_0_verifiable_credentials.py | 29 - ...et_auth_0_verifiable_credentials_config.py | 24 - .../types/form_widget_g_maps_address.py | 29 - .../form_widget_g_maps_address_config.py | 20 - .../management/types/form_widget_recaptcha.py | 29 - .../types/form_widget_recaptcha_config.py | 20 - ...ype_auth_0_verifiable_credentials_const.py | 5 - .../form_widget_type_g_maps_address_const.py | 5 - .../types/form_widget_type_recaptcha_const.py | 5 - .../forms_request_parameters_hydrate_enum.py | 5 - .../get_action_execution_response_content.py | 43 - ..._action_module_actions_response_content.py | 38 - .../get_action_module_response_content.py | 73 - ..._action_module_version_response_content.py | 55 - ...action_module_versions_response_content.py | 38 - .../get_action_modules_response_content.py | 38 - .../types/get_action_response_content.py | 98 - .../get_action_version_response_content.py | 97 - ...tive_users_count_stats_response_content.py | 6 - .../types/get_acul_response_content.py | 59 - ..._all_keys_network_acls_response_content.py | 23 - ...ack_protection_captcha_response_content.py | 47 - ...bot_detection_settings_response_content.py | 30 - ...branding_default_theme_response_content.py | 46 - ...randing_phone_provider_response_content.py | 49 - .../types/get_branding_response_content.py | 32 - .../get_branding_theme_response_content.py | 46 - ...ord_detection_settings_response_content.py | 45 - ...t_brute_force_settings_response_content.py | 43 - .../get_client_credential_response_content.py | 68 - .../get_client_grant_response_content.py | 63 - .../types/get_client_response_content.py | 299 - ...ection_enabled_clients_response_content.py | 28 - ...get_connection_profile_response_content.py | 36 - ...ction_profile_template_response_content.py | 30 - .../types/get_connection_response_content.py | 70 - .../get_custom_domain_response_content.py | 67 - ...et_custom_signing_keys_response_content.py | 27 - ...stom_texts_by_language_response_content.py | 8 - ...fault_canonical_domain_response_content.py | 22 - ..._default_custom_domain_response_content.py | 67 - .../get_default_domain_response_content.py | 10 - ...ioning_default_mapping_response_content.py | 23 - ...directory_provisioning_response_content.py | 71 - ..._email_factor_settings_response_content.py | 27 - .../get_email_provider_response_content.py | 37 - .../get_email_template_response_content.py | 83 - .../get_encryption_key_response_content.py | 51 - ...tream_delivery_history_response_content.py | 44 - .../get_event_stream_response_content.py | 11 - .../types/get_experiment_response_content.py | 58 - .../get_feature_flag_response_content.py | 30 - ...ecution_request_parameters_hydrate_enum.py | 5 - .../get_flow_execution_response_content.py | 60 - ...et_flow_request_parameters_hydrate_enum.py | 5 - .../types/get_flow_response_content.py | 41 - ...flows_vault_connection_response_content.py | 65 - .../types/get_form_response_content.py | 39 - .../get_group_members_response_content.py | 24 - .../types/get_group_response_content.py | 57 - ...et_guardian_enrollment_response_content.py | 43 - ...an_factor_duo_settings_response_content.py | 21 - ...or_phone_message_types_response_content.py | 23 - ...factor_phone_templates_response_content.py | 27 - ...n_factor_sms_templates_response_content.py | 27 - ..._factors_provider_apns_response_content.py | 21 - ...factors_provider_phone_response_content.py | 20 - ..._provider_phone_twilio_response_content.py | 41 - ...ider_push_notification_response_content.py | 22 - ...n_factors_provider_sms_response_content.py | 20 - ...rs_provider_sms_twilio_response_content.py | 41 - ...n_factors_provider_sns_response_content.py | 23 - .../get_guardian_settings_response_content.py | 37 - .../types/get_hook_response_content.py | 51 - .../types/get_hook_secret_response_content.py | 8 - .../types/get_job_error_response_content.py | 25 - .../get_job_generic_error_response_content.py | 47 - .../types/get_job_import_user_error.py | 32 - .../types/get_job_response_content.py | 67 - src/auth0/management/types/get_job_summary.py | 41 - .../management/types/get_job_user_error.py | 8 - .../types/get_log_response_content.py | 120 - .../types/get_log_stream_response_content.py | 23 - .../get_network_acls_response_content.py | 33 - ...ization_all_connection_response_content.py | 54 - ...t_organization_by_name_response_content.py | 48 - ...et_organization_client_response_content.py | 30 - ...rganization_connection_response_content.py | 40 - ...scovery_domain_by_name_response_content.py | 44 - ...ation_discovery_domain_response_content.py | 44 - ...rganization_invitation_response_content.py | 71 - .../get_organization_response_content.py | 48 - .../types/get_partials_response_content.py | 8 - ..._phone_factor_settings_response_content.py | 27 - ...ne_provider_protection_response_content.py | 20 - .../get_phone_template_response_content.py | 30 - .../get_rate_limit_policy_response_content.py | 44 - .../get_refresh_token_response_content.py | 55 - ...fresh_tokens_paginated_response_content.py | 24 - .../get_resource_server_response_content.py | 120 - ...ts_settings_new_device_response_content.py | 22 - ...k_assessments_settings_response_content.py | 22 - .../types/get_role_response_content.py | 37 - .../types/get_rule_response_content.py | 47 - ...ration_default_mapping_response_content.py | 23 - ...get_scim_configuration_response_content.py | 59 - .../types/get_scim_tokens_response_content.py | 10 - .../types/get_segment_response_content.py | 30 - ...t_self_service_profile_response_content.py | 64 - .../types/get_session_response_content.py | 51 - .../types/get_settings_response_content.py | 29 - .../get_signing_keys_response_content.py | 73 - ...t_supplemental_signals_response_content.py | 22 - ...ip_throttling_settings_response_content.py | 34 - .../get_tenant_settings_response_content.py | 195 - ...token_exchange_profile_response_content.py | 50 - .../types/get_universal_login_template.py | 22 - ...iversal_login_template_response_content.py | 7 - ...user_attribute_profile_response_content.py | 26 - ...ibute_profile_template_response_content.py | 30 - ..._authentication_method_response_content.py | 119 - ..._user_groups_paginated_response_content.py | 28 - .../types/get_user_response_content.py | 128 - .../types/get_variation_response_content.py | 27 - ...le_credential_template_response_content.py | 60 - .../google_account_linking_configuration.py | 26 - ...le_account_linking_configuration_create.py | 26 - ...e_account_linking_configuration_or_null.py | 26 - src/auth0/management/types/group.py | 57 - src/auth0/management/types/group_member.py | 41 - .../types/group_member_type_enum.py | 5 - src/auth0/management/types/group_type_enum.py | 5 - .../types/guardian_enrollment_date.py | 6 - .../types/guardian_enrollment_factor_enum.py | 7 - .../types/guardian_enrollment_status.py | 5 - src/auth0/management/types/guardian_factor.py | 32 - .../types/guardian_factor_name_enum.py | 18 - ...n_factor_phone_factor_message_type_enum.py | 5 - .../types/guardian_factor_settings.py | 31 - ...er_push_notification_provider_data_enum.py | 7 - ...dian_factors_provider_sms_provider_enum.py | 7 - src/auth0/management/types/hook.py | 51 - .../management/types/hook_dependencies.py | 8 - .../management/types/hook_trigger_id_enum.py | 14 - .../management/types/http_custom_header.py | 27 - src/auth0/management/types/identity.py | 33 - .../identity_assertion_authorization_grant.py | 26 - .../types/identity_provider_enum.py | 64 - .../identity_provider_only_auth_0_enum.py | 5 - .../import_encryption_key_response_content.py | 51 - .../include_user_profile_size_header_enum.py | 5 - src/auth0/management/types/integration.py | 76 - .../types/integration_feature_type_enum.py | 8 - .../management/types/integration_release.py | 38 - .../types/integration_required_param.py | 69 - .../integration_required_param_option.py | 27 - .../integration_required_param_type_enum.py | 5 - .../management/types/integration_sem_ver.py | 31 - .../types/internal_server_error_body.py | 24 - .../types/internal_server_error_body_error.py | 5 - .../management/types/job_file_format_enum.py | 5 - .../types/linked_client_configuration.py | 26 - ...ion_bindings_paginated_response_content.py | 38 - .../list_action_triggers_response_content.py | 20 - ...ion_versions_paginated_response_content.py | 35 - ...list_actions_paginated_response_content.py | 38 - ...aculs_offset_paginated_response_content.py | 34 - .../types/list_aculs_response_content_item.py | 59 - .../types/list_agents_response_content.py | 24 - ...anding_phone_providers_response_content.py | 20 - ...ist_client_connections_response_content.py | 24 - ...rganizations_paginated_response_content.py | 25 - ...client_grant_paginated_response_content.py | 25 - ...ent_profiles_paginated_response_content.py | 29 - ...ients_offset_paginated_response_content.py | 23 - ...ction_profile_template_response_content.py | 20 - ...ion_profiles_paginated_response_content.py | 25 - ...s_checkpoint_paginated_response_content.py | 25 - .../list_custom_domains_response_content.py | 7 - ...tials_offset_paginated_response_content.py | 23 - ...irectory_provisionings_response_content.py | 28 - ...n_key_offset_paginated_response_content.py | 38 - ...vent_stream_deliveries_response_content.py | 28 - .../list_event_streams_response_content.py | 30 - .../list_experiments_response_content.py | 24 - .../list_feature_flags_response_content.py | 24 - ...w_executions_paginated_response_content.py | 25 - ...flows_offset_paginated_response_content.py | 23 - ...t_flows_request_parameters_hydrate_enum.py | 5 - ...tions_offset_paginated_response_content.py | 23 - ...forms_offset_paginated_response_content.py | 23 - .../list_group_roles_response_content.py | 24 - .../list_groups_paginated_response_content.py | 28 - ...list_guardian_policies_response_content.py | 7 - ...hooks_offset_paginated_response_content.py | 23 - ...t_log_offset_paginated_response_content.py | 24 - ..._acls_offset_paginated_response_content.py | 23 - ...tions_offset_paginated_response_content.py | 23 - ...rants_offset_paginated_response_content.py | 23 - ...t_organization_clients_response_content.py | 28 - ...tions_offset_paginated_response_content.py | 23 - ...tion_discovery_domains_response_content.py | 21 - ...ganization_group_roles_response_content.py | 24 - ...st_organization_groups_response_content.py | 24 - ...tions_offset_paginated_response_content.py | 22 - ...member_effective_roles_response_content.py | 24 - ...ber_role_source_groups_response_content.py | 24 - ...roles_offset_paginated_response_content.py | 23 - ...tion_members_paginated_response_content.py | 21 - ...ganization_role_groups_response_content.py | 28 - ...anization_role_members_response_content.py | 28 - ...rganizations_paginated_response_content.py | 21 - .../list_phone_templates_response_content.py | 20 - .../types/list_portals_response_content.py | 20 - ...mit_policies_paginated_response_content.py | 24 - ...fresh_tokens_paginated_response_content.py | 24 - ...erver_offset_paginated_response_content.py | 23 - .../list_role_groups_response_content.py | 24 - ...sions_offset_paginated_response_content.py | 23 - ...t_role_users_paginated_response_content.py | 21 - ...roles_offset_paginated_response_content.py | 23 - ...rules_offset_paginated_response_content.py | 23 - ...st_scim_configurations_response_content.py | 28 - .../types/list_segments_response_content.py | 24 - ...ce_profile_custom_text_response_content.py | 8 - ...ice_profiles_paginated_response_content.py | 23 - ...st_synchronized_groups_response_content.py | 28 - ...token_exchange_profile_response_content.py | 25 - ...ibute_profile_template_response_content.py | 20 - ...ute_profiles_paginated_response_content.py | 25 - ...thods_offset_paginated_response_content.py | 38 - ...r_blocks_by_identifier_response_content.py | 23 - .../list_user_blocks_response_content.py | 23 - ...ser_connected_accounts_response_content.py | 24 - ...r_consent_signing_keys_response_content.py | 23 - ...ermission_role_sources_response_content.py | 28 - ..._effective_permissions_response_content.py | 28 - ...t_user_effective_roles_response_content.py | 24 - ...rants_offset_paginated_response_content.py | 23 - ...tions_offset_paginated_response_content.py | 23 - ...sions_offset_paginated_response_content.py | 23 - ...ser_role_source_groups_response_content.py | 24 - ...roles_offset_paginated_response_content.py | 23 - ...ser_sessions_paginated_response_content.py | 24 - ...users_offset_paginated_response_content.py | 24 - .../types/list_variations_response_content.py | 20 - ...al_templates_paginated_response_content.py | 25 - src/auth0/management/types/log.py | 120 - src/auth0/management/types/log_date.py | 7 - src/auth0/management/types/log_date_object.py | 8 - src/auth0/management/types/log_details.py | 8 - .../management/types/log_location_info.py | 70 - .../management/types/log_security_context.py | 41 - .../types/log_stream_datadog_enum.py | 5 - .../types/log_stream_datadog_region_enum.py | 5 - .../log_stream_datadog_response_schema.py | 53 - .../types/log_stream_datadog_sink.py | 31 - .../types/log_stream_event_bridge_enum.py | 5 - ...log_stream_event_bridge_response_schema.py | 53 - .../types/log_stream_event_bridge_sink.py | 39 - ...og_stream_event_bridge_sink_region_enum.py | 45 - .../types/log_stream_event_grid_enum.py | 5 - .../log_stream_event_grid_region_enum.py | 43 - .../log_stream_event_grid_response_schema.py | 53 - .../types/log_stream_event_grid_sink.py | 50 - .../management/types/log_stream_filter.py | 22 - .../log_stream_filter_group_name_enum.py | 32 - .../types/log_stream_filter_type_enum.py | 5 - .../log_stream_http_content_format_enum.py | 5 - .../management/types/log_stream_http_enum.py | 5 - .../types/log_stream_http_response_schema.py | 53 - .../management/types/log_stream_http_sink.py | 60 - .../types/log_stream_mixpanel_enum.py | 5 - .../types/log_stream_mixpanel_region_enum.py | 5 - .../log_stream_mixpanel_response_schema.py | 53 - .../types/log_stream_mixpanel_sink.py | 50 - .../types/log_stream_mixpanel_sink_patch.py | 50 - .../types/log_stream_pii_algorithm_enum.py | 5 - .../management/types/log_stream_pii_config.py | 24 - .../types/log_stream_pii_log_fields_enum.py | 7 - .../types/log_stream_pii_method_enum.py | 5 - .../types/log_stream_response_schema.py | 23 - .../types/log_stream_segment_enum.py | 5 - .../log_stream_segment_response_schema.py | 53 - .../types/log_stream_segment_sink.py | 28 - .../log_stream_segment_sink_write_key.py | 28 - .../management/types/log_stream_sink_patch.py | 19 - .../types/log_stream_splunk_enum.py | 5 - .../log_stream_splunk_response_schema.py | 53 - .../types/log_stream_splunk_sink.py | 51 - .../types/log_stream_status_enum.py | 5 - .../management/types/log_stream_sumo_enum.py | 5 - .../types/log_stream_sumo_response_schema.py | 53 - .../management/types/log_stream_sumo_sink.py | 28 - .../types/mdl_presentation_properties.py | 122 - .../types/mdl_presentation_request.py | 30 - .../mdl_presentation_request_properties.py | 24 - src/auth0/management/types/mfa_policy_enum.py | 5 - .../management/types/native_social_login.py | 28 - .../types/native_social_login_apple.py | 26 - .../types/native_social_login_apple_patch.py | 26 - .../types/native_social_login_facebook.py | 26 - .../native_social_login_facebook_patch.py | 26 - .../types/native_social_login_google.py | 26 - .../types/native_social_login_google_patch.py | 26 - .../types/native_social_login_patch.py | 28 - .../management/types/network_acl_action.py | 30 - .../types/network_acl_action_allow_enum.py | 6 - .../types/network_acl_action_block_enum.py | 6 - .../types/network_acl_action_log_enum.py | 6 - .../types/network_acl_action_redirect_enum.py | 6 - .../network_acl_http_message_signature.py | 24 - .../network_acl_http_message_signature_key.py | 22 - ...network_acl_http_message_signature_keys.py | 10 - src/auth0/management/types/network_acl_key.py | 44 - .../types/network_acl_key_algorithm_enum.py | 5 - .../management/types/network_acl_match.py | 64 - ...network_acl_match_connecting_ipv_4_cidr.py | 3 - ...network_acl_match_connecting_ipv_6_cidr.py | 3 - .../types/network_acl_match_ipv_4_cidr.py | 3 - .../types/network_acl_match_ipv_6_cidr.py | 3 - .../management/types/network_acl_rule.py | 27 - .../types/network_acl_rule_match_all_enum.py | 6 - .../types/network_acl_rule_scope_enum.py | 7 - .../types/network_acls_response_content.py | 33 - .../management/types/not_found_error_body.py | 24 - .../types/not_found_error_body_error.py | 5 - .../management/types/not_found_schema.py | 28 - .../types/not_found_schema_error.py | 5 - src/auth0/management/types/oauth_scope.py | 268 - src/auth0/management/types/organization.py | 48 - .../types/organization_access_level_enum.py | 5 - ...rganization_access_level_enum_with_null.py | 5 - .../types/organization_all_connection_post.py | 54 - .../management/types/organization_branding.py | 29 - .../types/organization_branding_colors.py | 31 - .../management/types/organization_client.py | 30 - .../types/organization_client_association.py | 26 - .../types/organization_client_grant.py | 44 - .../types/organization_client_metadata.py | 49 - ...client_metadata_organization_usage_enum.py | 5 - .../types/organization_connection.py | 40 - .../organization_connection_information.py | 27 - .../types/organization_discovery_domain.py | 44 - .../organization_discovery_domain_status.py | 5 - .../types/organization_enabled_connection.py | 40 - .../types/organization_invitation.py | 71 - .../types/organization_invitation_invitee.py | 22 - .../types/organization_invitation_inviter.py | 22 - .../management/types/organization_member.py | 40 - .../organization_member_access_level_enum.py | 5 - ...tion_member_access_level_enum_with_null.py | 7 - .../organization_member_effective_role.py | 38 - ...ganization_member_effective_role_source.py | 5 - .../types/organization_member_role.py | 27 - .../management/types/organization_metadata.py | 8 - .../types/organization_sort_field_enum.py | 5 - ...nization_third_party_client_access_enum.py | 5 - .../types/organization_usage_enum.py | 5 - src/auth0/management/types/page_component.py | 206 - .../types/page_component_auth_0_form.py | 20 - .../page_component_auth_0_form_config.py | 27 - .../page_component_auth_0_media_image.py | 20 - ...age_component_auth_0_media_image_config.py | 29 - ...ponent_auth_0_my_account_mfa_management.py | 20 - ...auth_0_my_account_mfa_management_config.py | 17 - ...nt_auth_0_my_account_passkey_management.py | 22 - ..._0_my_account_passkey_management_config.py | 17 - ...ent_auth_0_my_organization_details_edit.py | 20 - ...h_0_my_organization_details_edit_config.py | 17 - ...ent_auth_0_my_organization_domain_table.py | 20 - ...h_0_my_organization_domain_table_config.py | 17 - ...uth_0_my_organization_member_management.py | 22 - ...y_organization_member_management_config.py | 17 - ...page_component_auth_0_structure_section.py | 20 - ...mponent_auth_0_structure_section_config.py | 35 - ...t_auth_0_structure_section_variant_enum.py | 5 - ...ge_component_auth_0_structure_separator.py | 20 - ...onent_auth_0_structure_separator_config.py | 24 - ...auth_0_structure_separator_variant_enum.py | 5 - ...age_component_auth_0_typography_heading.py | 20 - ...ponent_auth_0_typography_heading_config.py | 27 - ...e_component_auth_0_typography_rich_text.py | 20 - ...nent_auth_0_typography_rich_text_config.py | 22 - .../types/page_component_no_children.py | 190 - src/auth0/management/types/page_slug.py | 3 - .../management/types/partial_groups_enum.py | 19 - .../types/partial_phone_template_content.py | 33 - .../types/password_character_type_enum.py | 5 - ...assword_character_type_rule_policy_enum.py | 5 - .../password_default_dictionaries_enum.py | 5 - .../password_dictionary_match_type_enum.py | 5 - ...ssword_identical_characters_policy_enum.py | 5 - ...assword_max_length_exceeded_policy_enum.py | 5 - ...sword_sequential_characters_policy_enum.py | 5 - ...atch_client_credential_response_content.py | 68 - ...ne_provider_protection_response_content.py | 20 - ...it_policy_configuration_request_content.py | 19 - ...cy_configuration_request_content_action.py | 35 - ...iguration_request_content_action_action.py | 5 - ...olicy_configuration_request_content_one.py | 30 - ...onfiguration_request_content_one_action.py | 5 - ...licy_configuration_request_content_zero.py | 25 - ...nfiguration_request_content_zero_action.py | 5 - ...h_supplemental_signals_response_content.py | 22 - .../types/permission_request_payload.py | 27 - .../types/permissions_response_payload.py | 37 - src/auth0/management/types/phone_attribute.py | 31 - .../types/phone_attribute_identifier.py | 25 - .../types/phone_provider_channel_enum.py | 5 - .../types/phone_provider_configuration.py | 8 - .../types/phone_provider_credentials.py | 8 - .../phone_provider_delivery_method_enum.py | 5 - .../types/phone_provider_name_enum.py | 5 - ...ovider_protection_backoff_strategy_enum.py | 5 - .../types/phone_provider_schema_masked.py | 49 - src/auth0/management/types/phone_template.py | 30 - .../management/types/phone_template_body.py | 27 - .../types/phone_template_content.py | 34 - .../phone_template_notification_type_enum.py | 7 - src/auth0/management/types/portal.py | 35 - .../types/portal_client_secret_post.py | 21 - .../portal_client_secret_post_request.py | 24 - ...post_request_token_endpoint_auth_method.py | 5 - ..._secret_post_token_endpoint_auth_method.py | 5 - .../management/types/portal_custom_code.py | 22 - .../types/portal_custom_code_nullable.py | 7 - .../management/types/portal_date_time.py | 5 - src/auth0/management/types/portal_id.py | 3 - src/auth0/management/types/portal_name.py | 3 - .../management/types/portal_navigation.py | 20 - .../types/portal_navigation_nullable.py | 7 - src/auth0/management/types/portal_page.py | 23 - .../management/types/portal_pages_by_type.py | 22 - .../types/portal_pages_by_type_nullable.py | 7 - src/auth0/management/types/portal_slug.py | 3 - src/auth0/management/types/portal_summary.py | 27 - src/auth0/management/types/position.py | 5 - ...post_client_credential_response_content.py | 68 - .../types/post_connection_keys_alg_enum.py | 7 - .../post_connection_keys_request_content.py | 26 - .../post_connections_keys_response_content.py | 7 - ..._connections_keys_response_content_item.py | 66 - .../preferred_authentication_method_enum.py | 5 - .../preview_cimd_metadata_response_content.py | 34 - .../types/prompt_group_name_enum.py | 46 - .../management/types/prompt_language_enum.py | 91 - .../management/types/public_key_credential.py | 47 - .../public_key_credential_algorithm_enum.py | 5 - .../types/public_key_credential_type_enum.py | 5 - .../management/types/rate_limit_policy.py | 44 - .../types/rate_limit_policy_configuration.py | 11 - .../rate_limit_policy_configuration_action.py | 33 - ...imit_policy_configuration_action_action.py | 5 - .../rate_limit_policy_configuration_one.py | 28 - ...e_limit_policy_configuration_one_action.py | 5 - .../rate_limit_policy_configuration_zero.py | 23 - ..._limit_policy_configuration_zero_action.py | 5 - .../types/rate_limit_policy_consumer_enum.py | 5 - .../types/rate_limit_policy_resource_enum.py | 5 - .../management/types/refresh_token_date.py | 8 - .../types/refresh_token_date_object.py | 8 - .../management/types/refresh_token_device.py | 51 - .../refresh_token_expiration_type_enum.py | 5 - .../types/refresh_token_metadata.py | 8 - .../types/refresh_token_resource_server.py | 27 - .../types/refresh_token_response_content.py | 55 - .../types/refresh_token_rotation_type_enum.py | 5 - .../types/refresh_token_session_id.py | 8 - ...te_users_recovery_code_response_content.py | 22 - .../register_cimd_client_response_content.py | 31 - .../reset_phone_template_request_content.py | 5 - .../reset_phone_template_response_content.py | 30 - src/auth0/management/types/resource_server.py | 120 - .../types/resource_server_access_token.py | 24 - ...urce_server_access_token_claims_mapping.py | 24 - ...rver_access_token_custom_claims_mapping.py | 10 - ...access_token_custom_claims_mapping_rule.py | 27 - ...rver_agent_subject_claims_response_enum.py | 5 - ...server_agent_subject_claims_schema_enum.py | 5 - .../resource_server_authorization_policy.py | 26 - .../resource_server_consent_policy_enum.py | 5 - .../resource_server_proof_of_possession.py | 31 - ...rver_proof_of_possession_mechanism_enum.py | 5 - ...r_proof_of_possession_required_for_enum.py | 7 - .../management/types/resource_server_scope.py | 27 - .../types/resource_server_search_response.py | 115 - .../types/resource_server_sort_field_enum.py | 5 - ...ource_server_subject_type_authorization.py | 30 - ...bject_type_authorization_anonymous_user.py | 26 - ...uthorization_anonymous_user_policy_enum.py | 7 - ...erver_subject_type_authorization_client.py | 26 - ...t_type_authorization_client_policy_enum.py | 7 - ..._server_subject_type_authorization_user.py | 26 - ...ect_type_authorization_user_policy_enum.py | 7 - ...urce_server_token_dialect_response_enum.py | 7 - ...source_server_token_dialect_schema_enum.py | 7 - .../types/resource_server_token_encryption.py | 22 - ..._server_token_encryption_algorithm_enum.py | 7 - ...rce_server_token_encryption_format_enum.py | 5 - .../resource_server_token_encryption_key.py | 34 - .../types/resource_server_type_enum.py | 7 - ...server_verification_key_pem_certificate.py | 6 - .../revoked_signing_keys_response_content.py | 27 - src/auth0/management/types/role.py | 37 - src/auth0/management/types/role_group.py | 67 - src/auth0/management/types/role_member.py | 37 - src/auth0/management/types/role_owner_id.py | 6 - .../management/types/role_owner_id_filter.py | 6 - src/auth0/management/types/role_type_enum.py | 5 - src/auth0/management/types/role_user.py | 37 - ...rollback_action_module_response_content.py | 73 - .../rotate_client_secret_response_content.py | 299 - .../rotate_connection_keys_request_content.py | 26 - ...rotate_connection_keys_signing_alg_enum.py | 7 - ...otate_connections_keys_response_content.py | 56 - .../rotate_signing_keys_response_content.py | 27 - src/auth0/management/types/rule.py | 47 - src/auth0/management/types/rules_config.py | 22 - .../management/types/scim_configuration.py | 59 - .../management/types/scim_mapping_item.py | 33 - src/auth0/management/types/scim_token_item.py | 42 - .../types/screen_group_name_enum.py | 101 - .../search_client_grants_response_content.py | 28 - .../types/search_clients_response_content.py | 28 - .../types/search_engine_versions_enum.py | 5 - .../management/types/search_organization.py | 43 - ...rganizations_paginated_response_content.py | 28 - .../management/types/search_parser_enum.py | 5 - ...earch_resource_servers_response_content.py | 28 - src/auth0/management/types/segment.py | 30 - .../types/segment_contains_expression.py | 19 - .../types/segment_ends_with_expression.py | 19 - .../types/segment_exists_expression.py | 19 - .../types/segment_match_conditions.py | 34 - .../types/segment_match_expression.py | 16 - .../types/segment_not_match_conditions.py | 34 - src/auth0/management/types/segment_rule.py | 22 - .../types/segment_starts_with_expression.py | 19 - .../management/types/segment_status_enum.py | 5 - .../management/types/segment_type_enum.py | 5 - .../types/segment_type_filter_enum.py | 5 - .../management/types/self_service_profile.py | 64 - ...f_service_profile_allowed_strategy_enum.py | 19 - .../types/self_service_profile_branding.py | 7 - .../self_service_profile_branding_colors.py | 19 - ...elf_service_profile_branding_properties.py | 21 - ...rvice_profile_custom_text_language_enum.py | 5 - ...f_service_profile_custom_text_page_enum.py | 5 - .../types/self_service_profile_description.py | 8 - ...ce_profile_sso_ticket_connection_config.py | 46 - ...e_profile_sso_ticket_connection_options.py | 34 - ...rofile_sso_ticket_domain_aliases_config.py | 28 - ...ile_sso_ticket_domain_verification_enum.py | 7 - ...ice_profile_sso_ticket_enabled_features.py | 36 - ...profile_sso_ticket_enabled_organization.py | 32 - ...file_sso_ticket_google_workspace_config.py | 31 - ...cket_idp_initiated_client_protocol_enum.py | 7 - ...rofile_sso_ticket_idp_initiated_options.py | 40 - ..._profile_sso_ticket_provisioning_config.py | 36 - ...file_sso_ticket_provisioning_scope_enum.py | 19 - ...file_sso_ticket_universal_logout_config.py | 26 - .../self_service_profile_user_attribute.py | 32 - .../self_service_profile_user_attributes.py | 10 - ...n_list_contacts_params.py => send_base.py} | 6 +- ...ms_payload_object.py => send_base_type.py} | 2 +- ...ider_credentials.py => send_by_content.py} | 4 +- ...der_credentials.py => send_by_template.py} | 4 +- src/auth0/management/types/send_params.py | 8 + ...thing_params.py => send_params_content.py} | 4 +- ...n_config.py => send_params_template_id.py} | 4 +- ..._map_value_type.py => send_params_type.py} | 2 +- .../types/session_actor_claim_value.py | 5 - .../types/session_actor_metadata.py | 26 - .../types/session_authentication_signal.py | 33 - .../types/session_authentication_signals.py | 27 - .../types/session_client_metadata.py | 26 - .../types/session_cookie_metadata.py | 24 - .../session_cookie_metadata_mode_enum.py | 5 - .../types/session_cookie_mode_enum.py | 5 - .../management/types/session_cookie_schema.py | 24 - src/auth0/management/types/session_date.py | 6 - .../types/session_device_metadata.py | 44 - src/auth0/management/types/session_ip.py | 8 - .../management/types/session_metadata.py | 8 - .../types/session_response_content.py | 51 - ...et_custom_signing_keys_response_content.py | 27 - ..._email_factor_settings_response_content.py | 27 - .../set_email_template_response_content.py | 83 - ...an_factor_duo_settings_response_content.py | 21 - ...or_phone_message_types_response_content.py | 23 - ...factor_phone_templates_response_content.py | 27 - .../set_guardian_factor_response_content.py | 22 - ...n_factor_sms_templates_response_content.py | 27 - ...factors_provider_phone_response_content.py | 20 - ..._provider_phone_twilio_response_content.py | 41 - ...push_notification_apns_response_content.py | 20 - ..._push_notification_fcm_response_content.py | 5 - ...sh_notification_fcmv_1_response_content.py | 5 - ...ider_push_notification_response_content.py | 22 - ..._push_notification_sns_response_content.py | 23 - ...n_factors_provider_sms_response_content.py | 20 - ...rs_provider_sms_twilio_response_content.py | 41 - .../set_guardian_policies_request_content.py | 7 - .../set_guardian_policies_response_content.py | 7 - .../set_guardian_settings_response_content.py | 37 - .../set_network_acls_response_content.py | 33 - .../types/set_partials_request_content.py | 8 - ..._phone_factor_settings_response_content.py | 27 - .../set_rules_config_response_content.py | 27 - ...ice_profile_custom_text_request_content.py | 8 - ...ce_profile_custom_text_response_content.py | 8 - ..._authentication_method_response_content.py | 82 - .../types/set_user_authentication_methods.py | 41 - ..._authentication_methods_request_content.py | 7 - ...ustom_texts_by_language_request_content.py | 8 - src/auth0/management/types/sidebar.py | 20 - .../management/types/sidebar_component.py | 80 - .../sidebar_component_auth_0_external_link.py | 24 - ...r_component_auth_0_external_link_config.py | 32 - ...ebar_component_auth_0_external_link_v_2.py | 20 - ...mponent_auth_0_external_link_v_2_config.py | 32 - .../sidebar_component_auth_0_internal_link.py | 24 - ...r_component_auth_0_internal_link_config.py | 32 - ...ebar_component_auth_0_internal_link_v_2.py | 20 - ...mponent_auth_0_internal_link_v_2_config.py | 32 - .../types/signing_algorithm_enum.py | 5 - src/auth0/management/types/signing_keys.py | 73 - .../management/types/signing_keys_date.py | 5 - src/auth0/management/types/signup_schema.py | 20 - .../management/types/signup_status_enum.py | 5 - .../management/types/signup_verification.py | 19 - src/auth0/management/types/signup_verified.py | 22 - .../management/types/supported_locales.py | 91 - .../suspicious_ip_throttling_allowlist.py | 10 - ...suspicious_ip_throttling_allowlist_item.py | 3 - ...ottling_pre_custom_token_exchange_stage.py | 31 - ...uspicious_ip_throttling_pre_login_stage.py | 31 - ..._throttling_pre_user_registration_stage.py | 31 - .../suspicious_ip_throttling_shields_enum.py | 5 - .../types/suspicious_ip_throttling_stage.py | 42 - .../types/synchronize_groups_enum.py | 5 - .../types/synchronized_group_payload.py | 37 - .../types/synchronized_group_selection_id.py | 22 - .../management/types/system_role_owner_id.py | 5 - .../types/tenant_oidc_logout_settings.py | 26 - .../types/tenant_settings_country_codes.py | 35 - .../tenant_settings_country_codes_mode.py | 5 - ...nt_settings_country_codes_mode_response.py | 5 - .../tenant_settings_country_codes_response.py | 35 - .../types/tenant_settings_device_flow.py | 28 - .../tenant_settings_device_flow_charset.py | 5 - ...namic_client_registration_security_mode.py | 5 - .../types/tenant_settings_error_page.py | 36 - .../management/types/tenant_settings_flags.py | 189 - .../types/tenant_settings_guardian_page.py | 31 - .../management/types/tenant_settings_mtls.py | 26 - ...nant_settings_nullable_security_headers.py | 26 - .../types/tenant_settings_password_page.py | 31 - ...ant_settings_resource_parameter_profile.py | 5 - .../types/tenant_settings_sessions.py | 29 - .../tenant_settings_sessions_anonymous.py | 31 - .../tenant_settings_supported_locales_enum.py | 91 - .../management/types/test_action_payload.py | 8 - .../types/test_action_response_content.py | 20 - .../types/test_action_result_payload.py | 8 - .../test_custom_domain_response_content.py | 27 - .../types/test_event_data_content.py | 8 - .../types/third_party_client_access_config.py | 26 - ...token_exchange_profile_response_content.py | 50 - .../types/token_exchange_profile_type_enum.py | 5 - src/auth0/management/types/token_quota.py | 20 - .../types/token_quota_client_credentials.py | 36 - .../types/token_quota_configuration.py | 20 - .../token_vault_privileged_access_grant.py | 20 - ...lt_privileged_access_ip_allowlist_entry.py | 3 - .../types/too_many_requests_error_body.py | 24 - .../too_many_requests_error_body_error.py | 5 - .../types/too_many_requests_schema.py | 28 - .../types/too_many_requests_schema_error.py | 5 - .../types/twilio_provider_configuration.py | 23 - .../types/twilio_provider_credentials.py | 19 - .../twilio_provider_delivery_method_enum.py | 5 - .../management/types/unauthorized_schema.py | 28 - .../types/unauthorized_schema_error.py | 5 - .../types/universal_login_experience_enum.py | 5 - ...update_action_bindings_response_content.py | 20 - .../update_action_module_response_content.py | 73 - .../types/update_action_response_content.py | 98 - .../types/update_acul_response_content.py | 44 - .../types/update_anonymous_sessions.py | 26 - ...ack_protection_captcha_response_content.py | 47 - ...bot_detection_settings_response_content.py | 30 - .../types/update_branding_colors.py | 29 - .../management/types/update_branding_font.py | 26 - .../types/update_branding_page_background.py | 5 - ...randing_phone_provider_response_content.py | 49 - .../types/update_branding_response_content.py | 32 - .../update_branding_theme_response_content.py | 46 - ...ord_detection_settings_response_content.py | 45 - ...e_brute_force_settings_response_content.py | 43 - .../update_client_grant_response_content.py | 63 - .../types/update_client_response_content.py | 299 - .../types/update_connection_options.py | 153 - ...ate_connection_profile_response_content.py | 36 - .../update_connection_request_content_ad.py | 25 - .../update_connection_request_content_adfs.py | 27 - ...pdate_connection_request_content_amazon.py | 25 - ...update_connection_request_content_apple.py | 25 - ...pdate_connection_request_content_auth_0.py | 27 - ..._connection_request_content_auth_0_oidc.py | 25 - ...ate_connection_request_content_azure_ad.py | 27 - ...update_connection_request_content_baidu.py | 25 - ...te_connection_request_content_bitbucket.py | 25 - ...update_connection_request_content_bitly.py | 25 - .../update_connection_request_content_box.py | 26 - ...pdate_connection_request_content_custom.py | 25 - ...ate_connection_request_content_daccount.py | 25 - ...date_connection_request_content_dropbox.py | 25 - ...pdate_connection_request_content_dwolla.py | 25 - ...update_connection_request_content_email.py | 25 - ...ate_connection_request_content_evernote.py | 25 - ...ection_request_content_evernote_sandbox.py | 25 - ...update_connection_request_content_exact.py | 25 - ...ate_connection_request_content_facebook.py | 25 - ...pdate_connection_request_content_fitbit.py | 25 - ...date_connection_request_content_git_hub.py | 26 - ..._connection_request_content_google_apps.py | 27 - ...nection_request_content_google_o_auth_2.py | 26 - ...te_connection_request_content_instagram.py | 25 - .../update_connection_request_content_ip.py | 27 - .../update_connection_request_content_line.py | 25 - ...ate_connection_request_content_linkedin.py | 25 - ...ate_connection_request_content_o_auth_1.py | 25 - ...ate_connection_request_content_o_auth_2.py | 26 - ...e_connection_request_content_office_365.py | 27 - .../update_connection_request_content_oidc.py | 35 - .../update_connection_request_content_okta.py | 29 - ...pdate_connection_request_content_paypal.py | 25 - ...nnection_request_content_paypal_sandbox.py | 25 - ...onnection_request_content_ping_federate.py | 27 - ...nection_request_content_planning_center.py | 25 - ...e_connection_request_content_salesforce.py | 25 - ...on_request_content_salesforce_community.py | 25 - ...tion_request_content_salesforce_sandbox.py | 25 - .../update_connection_request_content_saml.py | 31 - ...e_connection_request_content_sharepoint.py | 27 - .../update_connection_request_content_shop.py | 25 - ...date_connection_request_content_shopify.py | 25 - .../update_connection_request_content_sms.py | 25 - ...e_connection_request_content_soundcloud.py | 25 - ...on_request_content_thirty_seven_signals.py | 25 - ...date_connection_request_content_twitter.py | 25 - ...date_connection_request_content_untappd.py | 25 - ...te_connection_request_content_vkontakte.py | 25 - ...update_connection_request_content_weibo.py | 25 - ...connection_request_content_windows_live.py | 26 - ...te_connection_request_content_wordpress.py | 25 - ...update_connection_request_content_yahoo.py | 25 - ...pdate_connection_request_content_yandex.py | 25 - .../update_connection_response_content.py | 70 - .../update_cross_app_access_resource_app.py | 24 - .../update_custom_domain_response_content.py | 62 - ...fault_canonical_domain_response_content.py | 22 - ..._default_custom_domain_response_content.py | 67 - .../update_default_domain_response_content.py | 10 - ..._directory_provisioning_request_content.py | 31 - ...directory_provisioning_response_content.py | 71 - .../update_email_provider_response_content.py | 37 - .../update_email_template_response_content.py | 83 - ...bled_client_connections_request_content.py | 7 - ...client_connections_request_content_item.py | 27 - .../update_event_stream_response_content.py | 11 - .../update_experiment_response_content.py | 58 - .../types/update_feature_flag_parameters.py | 10 - .../update_feature_flag_response_content.py | 30 - .../types/update_flow_response_content.py | 41 - ...flows_vault_connection_response_content.py | 65 - .../update_flows_vault_connection_setup.py | 41 - .../types/update_form_response_content.py | 39 - ...an_factor_duo_settings_response_content.py | 21 - ...push_notification_apns_response_content.py | 20 - ..._push_notification_fcm_response_content.py | 5 - ...sh_notification_fcmv_1_response_content.py | 5 - ..._push_notification_sns_response_content.py | 23 - .../types/update_hook_response_content.py | 51 - .../update_hook_secret_request_content.py | 8 - ..._identity_assertion_authorization_grant.py | 26 - .../update_log_stream_response_content.py | 23 - .../update_network_acl_response_content.py | 33 - ...ization_all_connection_response_content.py | 54 - ...te_organization_client_response_content.py | 30 - ...rganization_connection_response_content.py | 40 - ...ation_discovery_domain_response_content.py | 44 - .../update_organization_response_content.py | 48 - .../update_phone_template_response_content.py | 30 - ...date_rate_limit_policy_response_content.py | 44 - .../update_refresh_token_response_content.py | 55 - ...update_resource_server_response_content.py | 120 - ...ts_settings_new_device_response_content.py | 22 - ...k_assessments_settings_response_content.py | 22 - .../types/update_role_response_content.py | 37 - .../types/update_rule_response_content.py | 47 - ...ate_scim_configuration_response_content.py | 59 - .../types/update_segment_response_content.py | 30 - ...e_self_service_profile_response_content.py | 64 - .../types/update_session_response_content.py | 51 - .../types/update_settings_response_content.py | 29 - ...ip_throttling_settings_response_content.py | 34 - ...update_tenant_settings_response_content.py | 195 - .../management/types/update_token_quota.py | 20 - ...niversal_login_template_request_content.py | 7 - ...login_template_request_content_template.py | 19 - ...user_attribute_profile_response_content.py | 26 - ..._authentication_method_response_content.py | 83 - .../types/update_user_response_content.py | 128 - .../types/update_variation_overrides_map.py | 8 - .../update_variation_response_content.py | 27 - ...le_credential_template_response_content.py | 60 - .../types/user_app_metadata_schema.py | 8 - .../types/user_attribute_profile.py | 26 - .../types/user_attribute_profile_id.py | 6 - .../types/user_attribute_profile_name.py | 6 - .../user_attribute_profile_oidc_mapping.py | 31 - .../user_attribute_profile_patch_user_id.py | 7 - .../user_attribute_profile_saml_mapping.py | 8 - ...er_attribute_profile_strategy_overrides.py | 37 - ...bute_profile_strategy_overrides_mapping.py | 30 - ...bute_profile_strategy_overrides_user_id.py | 39 - ...file_strategy_overrides_user_id_mapping.py | 28 - .../types/user_attribute_profile_template.py | 28 - .../user_attribute_profile_template_item.py | 30 - ...le_user_attribute_additional_properties.py | 59 - .../user_attribute_profile_user_attributes.py | 12 - .../types/user_attribute_profile_user_id.py | 33 - ...ibute_profile_user_id_oidc_mapping_enum.py | 5 - ..._user_id_oidc_strategy_override_mapping.py | 5 - ..._attribute_profile_user_id_saml_mapping.py | 8 - .../types/user_authentication_method.py | 119 - .../user_authentication_method_properties.py | 21 - ...r_authentication_method_properties_enum.py | 5 - .../management/types/user_block_identifier.py | 32 - ...r_effective_permission_response_content.py | 43 - ...r_effective_permission_role_source_enum.py | 5 - ...permission_role_source_response_content.py | 42 - .../user_effective_permission_source_enum.py | 5 - .../management/types/user_effective_role.py | 38 - .../types/user_effective_role_source.py | 5 - .../types/user_enrollment_auth_method_enum.py | 7 - .../types/user_enrollment_status_enum.py | 5 - src/auth0/management/types/user_grant.py | 53 - .../types/user_groups_response_schema.py | 24 - src/auth0/management/types/user_id.py | 5 - src/auth0/management/types/user_identity.py | 65 - .../types/user_identity_provider_enum.py | 64 - .../management/types/user_identity_schema.py | 59 - ...t_log_offset_paginated_response_content.py | 24 - src/auth0/management/types/user_metadata.py | 8 - .../management/types/user_metadata_schema.py | 8 - .../types/user_multifactor_provider_enum.py | 5 - .../types/user_permission_schema.py | 37 - .../management/types/user_profile_data.py | 57 - .../management/types/user_response_schema.py | 128 - .../types/username_allowed_types.py | 20 - .../management/types/username_attribute.py | 33 - .../types/username_attribute_identifier.py | 22 - .../management/types/username_validation.py | 30 - .../management/types/users_enrollment.py | 57 - .../validate_experiment_response_content.py | 28 - src/auth0/management/types/variation.py | 27 - .../types/variation_overrides_map.py | 8 - ...verifiable_credential_template_response.py | 60 - .../types/verification_method_enum.py | 5 - .../verify_custom_domain_response_content.py | 63 - .../verify_email_ticket_response_content.py | 22 - .../types/x_509_certificate_credential.py | 29 - .../x_509_certificate_credential_type_enum.py | 5 - .../management/types/xss_protection_config.py | 33 - .../management/types/xss_protection_mode.py | 5 - .../user_attribute_profiles/__init__.py | 4 - .../user_attribute_profiles/client.py | 652 - .../user_attribute_profiles/raw_client.py | 1376 - src/auth0/management/user_blocks/__init__.py | 4 - src/auth0/management/user_blocks/client.py | 391 - .../management/user_blocks/raw_client.py | 804 - src/auth0/management/user_grants/__init__.py | 4 - src/auth0/management/user_grants/client.py | 333 - .../management/user_grants/raw_client.py | 548 - src/auth0/management/users/__init__.py | 85 - .../users/authentication_methods/__init__.py | 4 - .../users/authentication_methods/client.py | 864 - .../authentication_methods/raw_client.py | 1699 - .../users/authenticators/__init__.py | 4 - .../management/users/authenticators/client.py | 107 - .../users/authenticators/raw_client.py | 183 - src/auth0/management/users/client.py | 1980 - .../users/connected_accounts/__init__.py | 4 - .../users/connected_accounts/client.py | 151 - .../users/connected_accounts/raw_client.py | 277 - .../users/effective_permissions/__init__.py | 34 - .../users/effective_permissions/client.py | 198 - .../users/effective_permissions/raw_client.py | 289 - .../effective_permissions/sources/__init__.py | 34 - .../effective_permissions/sources/client.py | 63 - .../sources/raw_client.py | 13 - .../sources/roles/__init__.py | 4 - .../sources/roles/client.py | 193 - .../sources/roles/raw_client.py | 309 - .../users/effective_roles/__init__.py | 34 - .../users/effective_roles/client.py | 176 - .../users/effective_roles/raw_client.py | 277 - .../users/effective_roles/sources/__init__.py | 34 - .../users/effective_roles/sources/client.py | 63 - .../sources/groups/__init__.py | 4 - .../effective_roles/sources/groups/client.py | 161 - .../sources/groups/raw_client.py | 289 - .../effective_roles/sources/raw_client.py | 13 - .../management/users/enrollments/__init__.py | 4 - .../management/users/enrollments/client.py | 112 - .../users/enrollments/raw_client.py | 225 - src/auth0/management/users/groups/__init__.py | 4 - src/auth0/management/users/groups/client.py | 197 - .../management/users/groups/raw_client.py | 313 - .../management/users/identities/__init__.py | 4 - .../management/users/identities/client.py | 332 - .../management/users/identities/raw_client.py | 550 - src/auth0/management/users/logs/__init__.py | 4 - src/auth0/management/users/logs/client.py | 187 - src/auth0/management/users/logs/raw_client.py | 292 - .../management/users/multifactor/__init__.py | 4 - .../management/users/multifactor/client.py | 190 - .../users/multifactor/raw_client.py | 351 - .../users/organizations/__init__.py | 4 - .../management/users/organizations/client.py | 199 - .../users/organizations/raw_client.py | 325 - .../management/users/permissions/__init__.py | 4 - .../management/users/permissions/client.py | 371 - .../users/permissions/raw_client.py | 727 - src/auth0/management/users/raw_client.py | 2866 - .../users/refresh_token/__init__.py | 4 - .../management/users/refresh_token/client.py | 233 - .../users/refresh_token/raw_client.py | 446 - .../users/risk_assessments/__init__.py | 4 - .../users/risk_assessments/client.py | 145 - .../users/risk_assessments/raw_client.py | 227 - src/auth0/management/users/roles/__init__.py | 4 - src/auth0/management/users/roles/client.py | 344 - .../management/users/roles/raw_client.py | 689 - .../management/users/sessions/__init__.py | 4 - src/auth0/management/users/sessions/client.py | 233 - .../management/users/sessions/raw_client.py | 446 - .../verifiable_credentials/__init__.py | 34 - .../verifiable_credentials/client.py | 63 - .../verifiable_credentials/raw_client.py | 13 - .../verification/__init__.py | 34 - .../verification/client.py | 63 - .../verification/raw_client.py | 13 - .../verification/templates/__init__.py | 4 - .../verification/templates/client.py | 580 - .../verification/templates/raw_client.py | 1137 - tests/wire/conftest.py | 2 - tests/wire/test_.py | 26 + tests/wire/test_actions.py | 98 - tests/wire/test_actions_executions.py | 11 - tests/wire/test_actions_modules.py | 76 - tests/wire/test_actions_modules_versions.py | 34 - tests/wire/test_actions_triggers.py | 9 - tests/wire/test_actions_triggers_bindings.py | 23 - tests/wire/test_actions_versions.py | 38 - tests/wire/test_agents.py | 52 - tests/wire/test_anomaly_blocks.py | 21 - .../test_attackProtection_botDetection.py | 17 - ...ackProtection_breachedPasswordDetection.py | 17 - ...t_attackProtection_bruteForceProtection.py | 17 - tests/wire/test_attackProtection_captcha.py | 17 - ...ttackProtection_phoneProviderProtection.py | 19 - ...attackProtection_suspiciousIpThrottling.py | 17 - tests/wire/test_branding.py | 17 - tests/wire/test_branding_phone_providers.py | 67 - tests/wire/test_branding_phone_templates.py | 71 - tests/wire/test_branding_templates.py | 27 - tests/wire/test_branding_themes.py | 202 - tests/wire/test_clientGrants.py | 103 - tests/wire/test_clientGrants_organizations.py | 16 - tests/wire/test_clientProfiles.py | 59 - tests/wire/test_clients.py | 141 - tests/wire/test_clients_connections.py | 22 - tests/wire/test_clients_credentials.py | 55 - tests/wire/test_connectionProfiles.py | 70 - tests/wire/test_connections.py | 84 - tests/wire/test_connections_clients.py | 31 - .../test_connections_directoryProvisioning.py | 135 - ..._directoryProvisioning_synchronizations.py | 11 - tests/wire/test_connections_keys.py | 35 - .../test_connections_scimConfiguration.py | 67 - ...st_connections_scimConfiguration_tokens.py | 32 - tests/wire/test_connections_users.py | 12 - tests/wire/test_customDomains.py | 95 - tests/wire/test_deviceCredentials.py | 56 - tests/wire/test_emailTemplates.py | 52 - tests/wire/test_emails_provider.py | 38 - tests/wire/test_eventStreams.py | 81 - tests/wire/test_eventStreams_deliveries.py | 41 - tests/wire/test_eventStreams_redeliveries.py | 22 - tests/wire/test_events.py | 20 - .../wire/test_experimentation_experiments.py | 91 - .../wire/test_experimentation_featureFlags.py | 61 - ...experimentation_featureFlags_variations.py | 56 - tests/wire/test_experimentation_segments.py | 63 - tests/wire/test_flows.py | 62 - tests/wire/test_flows_executions.py | 39 - tests/wire/test_flows_vault_connections.py | 65 - tests/wire/test_forms.py | 57 - tests/wire/test_groups.py | 55 - tests/wire/test_groups_members.py | 21 - tests/wire/test_groups_roles.py | 35 - tests/wire/test_guardian.py | 22 - tests/wire/test_guardian_enrollments.py | 31 - tests/wire/test_guardian_factors.py | 20 - .../test_guardian_factors_duo_settings.py | 25 - tests/wire/test_guardian_factors_email.py | 20 - tests/wire/test_guardian_factors_phone.py | 91 - .../test_guardian_factors_pushNotification.py | 99 - tests/wire/test_guardian_factors_sms.py | 54 - tests/wire/test_guardian_policies.py | 19 - tests/wire/test_hooks.py | 72 - tests/wire/test_hooks_secrets.py | 44 - tests/wire/test_jobs.py | 11 - tests/wire/test_jobs_errors.py | 11 - tests/wire/test_jobs_usersExports.py | 9 - tests/wire/test_jobs_usersImports.py | 12 - tests/wire/test_jobs_verificationEmail.py | 11 - tests/wire/test_keys_customSigning.py | 33 - tests/wire/test_keys_encryption.py | 74 - tests/wire/test_keys_networkAcls.py | 41 - tests/wire/test_keys_signing.py | 37 - tests/wire/test_logStreams.py | 56 - tests/wire/test_logs.py | 41 - tests/wire/test_networkAcls.py | 76 - tests/wire/test_organizations.py | 97 - tests/wire/test_organizations_clientGrants.py | 52 - tests/wire/test_organizations_clients.py | 64 - tests/wire/test_organizations_connections.py | 65 - .../test_organizations_discoveryDomains.py | 68 - .../test_organizations_enabledConnections.py | 64 - tests/wire/test_organizations_groups.py | 13 - tests/wire/test_organizations_groups_roles.py | 40 - tests/wire/test_organizations_invitations.py | 75 - tests/wire/test_organizations_members.py | 44 - ...st_organizations_members_effectiveRoles.py | 16 - ...s_members_effectiveRoles_sources_groups.py | 21 - .../wire/test_organizations_members_roles.py | 45 - tests/wire/test_organizations_roles_groups.py | 16 - .../wire/test_organizations_roles_members.py | 22 - tests/wire/test_portals.py | 57 - tests/wire/test_prompts.py | 17 - tests/wire/test_prompts_customText.py | 24 - tests/wire/test_prompts_partials.py | 22 - tests/wire/test_prompts_rendering.py | 72 - tests/wire/test_rateLimitPolicies.py | 77 - tests/wire/test_refreshTokens.py | 67 - tests/wire/test_resourceServers.py | 98 - tests/wire/test_riskAssessments_settings.py | 19 - ...test_riskAssessments_settings_newDevice.py | 19 - tests/wire/test_roles.py | 69 - tests/wire/test_roles_groups.py | 35 - tests/wire/test_roles_permissions.py | 50 - tests/wire/test_roles_users.py | 25 - tests/wire/test_rules.py | 72 - tests/wire/test_rulesConfigs.py | 30 - tests/wire/test_selfServiceProfiles.py | 55 - .../test_selfServiceProfiles_customText.py | 26 - .../test_selfServiceProfiles_ssoTicket.py | 22 - tests/wire/test_sessions.py | 41 - tests/wire/test_stats.py | 20 - tests/wire/test_supplementalSignals.py | 19 - tests/wire/test_tenants_settings.py | 20 - tests/wire/test_tickets.py | 19 - tests/wire/test_tokenExchangeProfiles.py | 55 - tests/wire/test_userAttributeProfiles.py | 80 - tests/wire/test_userBlocks.py | 45 - tests/wire/test_userGrants.py | 49 - tests/wire/test_users.py | 145 - .../wire/test_users_authenticationMethods.py | 87 - tests/wire/test_users_authenticators.py | 11 - tests/wire/test_users_connectedAccounts.py | 13 - tests/wire/test_users_effectivePermissions.py | 20 - ...sers_effectivePermissions_sources_roles.py | 26 - tests/wire/test_users_effectiveRoles.py | 13 - ...est_users_effectiveRoles_sources_groups.py | 20 - tests/wire/test_users_enrollments.py | 11 - tests/wire/test_users_groups.py | 22 - tests/wire/test_users_identities.py | 23 - tests/wire/test_users_logs.py | 17 - tests/wire/test_users_multifactor.py | 22 - tests/wire/test_users_organizations.py | 16 - tests/wire/test_users_permissions.py | 50 - tests/wire/test_users_refreshToken.py | 26 - tests/wire/test_users_riskAssessments.py | 13 - tests/wire/test_users_roles.py | 36 - tests/wire/test_users_sessions.py | 26 - ...iableCredentials_verification_templates.py | 64 - wiremock/wiremock-mappings.json | 18319 +----- 4601 files changed, 511 insertions(+), 379762 deletions(-) delete mode 100644 src/auth0/management/actions/__init__.py delete mode 100644 src/auth0/management/actions/client.py delete mode 100644 src/auth0/management/actions/executions/__init__.py delete mode 100644 src/auth0/management/actions/executions/client.py delete mode 100644 src/auth0/management/actions/executions/raw_client.py delete mode 100644 src/auth0/management/actions/modules/__init__.py delete mode 100644 src/auth0/management/actions/modules/client.py delete mode 100644 src/auth0/management/actions/modules/raw_client.py delete mode 100644 src/auth0/management/actions/modules/versions/__init__.py delete mode 100644 src/auth0/management/actions/modules/versions/client.py delete mode 100644 src/auth0/management/actions/modules/versions/raw_client.py delete mode 100644 src/auth0/management/actions/raw_client.py delete mode 100644 src/auth0/management/actions/triggers/__init__.py delete mode 100644 src/auth0/management/actions/triggers/bindings/__init__.py delete mode 100644 src/auth0/management/actions/triggers/bindings/client.py delete mode 100644 src/auth0/management/actions/triggers/bindings/raw_client.py delete mode 100644 src/auth0/management/actions/triggers/client.py delete mode 100644 src/auth0/management/actions/triggers/raw_client.py delete mode 100644 src/auth0/management/actions/versions/__init__.py delete mode 100644 src/auth0/management/actions/versions/client.py delete mode 100644 src/auth0/management/actions/versions/raw_client.py delete mode 100644 src/auth0/management/agents/__init__.py delete mode 100644 src/auth0/management/agents/client.py delete mode 100644 src/auth0/management/agents/raw_client.py delete mode 100644 src/auth0/management/anomaly/__init__.py delete mode 100644 src/auth0/management/anomaly/blocks/__init__.py delete mode 100644 src/auth0/management/anomaly/blocks/client.py delete mode 100644 src/auth0/management/anomaly/blocks/raw_client.py delete mode 100644 src/auth0/management/anomaly/client.py delete mode 100644 src/auth0/management/anomaly/raw_client.py delete mode 100644 src/auth0/management/attack_protection/__init__.py delete mode 100644 src/auth0/management/attack_protection/bot_detection/__init__.py delete mode 100644 src/auth0/management/attack_protection/bot_detection/client.py delete mode 100644 src/auth0/management/attack_protection/bot_detection/raw_client.py delete mode 100644 src/auth0/management/attack_protection/breached_password_detection/__init__.py delete mode 100644 src/auth0/management/attack_protection/breached_password_detection/client.py delete mode 100644 src/auth0/management/attack_protection/breached_password_detection/raw_client.py delete mode 100644 src/auth0/management/attack_protection/brute_force_protection/__init__.py delete mode 100644 src/auth0/management/attack_protection/brute_force_protection/client.py delete mode 100644 src/auth0/management/attack_protection/brute_force_protection/raw_client.py delete mode 100644 src/auth0/management/attack_protection/captcha/__init__.py delete mode 100644 src/auth0/management/attack_protection/captcha/client.py delete mode 100644 src/auth0/management/attack_protection/captcha/raw_client.py delete mode 100644 src/auth0/management/attack_protection/client.py delete mode 100644 src/auth0/management/attack_protection/phone_provider_protection/__init__.py delete mode 100644 src/auth0/management/attack_protection/phone_provider_protection/client.py delete mode 100644 src/auth0/management/attack_protection/phone_provider_protection/raw_client.py delete mode 100644 src/auth0/management/attack_protection/raw_client.py delete mode 100644 src/auth0/management/attack_protection/suspicious_ip_throttling/__init__.py delete mode 100644 src/auth0/management/attack_protection/suspicious_ip_throttling/client.py delete mode 100644 src/auth0/management/attack_protection/suspicious_ip_throttling/raw_client.py delete mode 100644 src/auth0/management/branding/__init__.py delete mode 100644 src/auth0/management/branding/client.py delete mode 100644 src/auth0/management/branding/phone/__init__.py delete mode 100644 src/auth0/management/branding/phone/client.py delete mode 100644 src/auth0/management/branding/phone/providers/__init__.py delete mode 100644 src/auth0/management/branding/phone/providers/client.py delete mode 100644 src/auth0/management/branding/phone/providers/raw_client.py delete mode 100644 src/auth0/management/branding/phone/raw_client.py delete mode 100644 src/auth0/management/branding/phone/templates/__init__.py delete mode 100644 src/auth0/management/branding/phone/templates/client.py delete mode 100644 src/auth0/management/branding/phone/templates/raw_client.py delete mode 100644 src/auth0/management/branding/raw_client.py delete mode 100644 src/auth0/management/branding/templates/__init__.py delete mode 100644 src/auth0/management/branding/templates/client.py delete mode 100644 src/auth0/management/branding/templates/raw_client.py delete mode 100644 src/auth0/management/branding/themes/__init__.py delete mode 100644 src/auth0/management/branding/themes/client.py delete mode 100644 src/auth0/management/branding/themes/raw_client.py delete mode 100644 src/auth0/management/client_grants/__init__.py delete mode 100644 src/auth0/management/client_grants/client.py delete mode 100644 src/auth0/management/client_grants/organizations/__init__.py delete mode 100644 src/auth0/management/client_grants/organizations/client.py delete mode 100644 src/auth0/management/client_grants/organizations/raw_client.py delete mode 100644 src/auth0/management/client_grants/raw_client.py delete mode 100644 src/auth0/management/client_profiles/__init__.py delete mode 100644 src/auth0/management/client_profiles/client.py delete mode 100644 src/auth0/management/client_profiles/raw_client.py delete mode 100644 src/auth0/management/clients/__init__.py delete mode 100644 src/auth0/management/clients/client.py delete mode 100644 src/auth0/management/clients/connections/__init__.py delete mode 100644 src/auth0/management/clients/connections/client.py delete mode 100644 src/auth0/management/clients/connections/raw_client.py delete mode 100644 src/auth0/management/clients/credentials/__init__.py delete mode 100644 src/auth0/management/clients/credentials/client.py delete mode 100644 src/auth0/management/clients/credentials/raw_client.py delete mode 100644 src/auth0/management/clients/raw_client.py delete mode 100644 src/auth0/management/connection_profiles/__init__.py delete mode 100644 src/auth0/management/connection_profiles/client.py delete mode 100644 src/auth0/management/connection_profiles/raw_client.py delete mode 100644 src/auth0/management/connections/__init__.py delete mode 100644 src/auth0/management/connections/client.py delete mode 100644 src/auth0/management/connections/clients/__init__.py delete mode 100644 src/auth0/management/connections/clients/client.py delete mode 100644 src/auth0/management/connections/clients/raw_client.py delete mode 100644 src/auth0/management/connections/directory_provisioning/__init__.py delete mode 100644 src/auth0/management/connections/directory_provisioning/client.py delete mode 100644 src/auth0/management/connections/directory_provisioning/raw_client.py delete mode 100644 src/auth0/management/connections/directory_provisioning/synchronizations/__init__.py delete mode 100644 src/auth0/management/connections/directory_provisioning/synchronizations/client.py delete mode 100644 src/auth0/management/connections/directory_provisioning/synchronizations/raw_client.py delete mode 100644 src/auth0/management/connections/keys/__init__.py delete mode 100644 src/auth0/management/connections/keys/client.py delete mode 100644 src/auth0/management/connections/keys/raw_client.py delete mode 100644 src/auth0/management/connections/raw_client.py delete mode 100644 src/auth0/management/connections/scim_configuration/__init__.py delete mode 100644 src/auth0/management/connections/scim_configuration/client.py delete mode 100644 src/auth0/management/connections/scim_configuration/raw_client.py delete mode 100644 src/auth0/management/connections/scim_configuration/tokens/__init__.py delete mode 100644 src/auth0/management/connections/scim_configuration/tokens/client.py delete mode 100644 src/auth0/management/connections/scim_configuration/tokens/raw_client.py delete mode 100644 src/auth0/management/connections/users/__init__.py delete mode 100644 src/auth0/management/connections/users/client.py delete mode 100644 src/auth0/management/connections/users/raw_client.py delete mode 100644 src/auth0/management/core/pagination.py delete mode 100644 src/auth0/management/custom_domains/__init__.py delete mode 100644 src/auth0/management/custom_domains/client.py delete mode 100644 src/auth0/management/custom_domains/raw_client.py delete mode 100644 src/auth0/management/device_credentials/__init__.py delete mode 100644 src/auth0/management/device_credentials/client.py delete mode 100644 src/auth0/management/device_credentials/raw_client.py delete mode 100644 src/auth0/management/email_templates/__init__.py delete mode 100644 src/auth0/management/email_templates/client.py delete mode 100644 src/auth0/management/email_templates/raw_client.py delete mode 100644 src/auth0/management/emails/__init__.py delete mode 100644 src/auth0/management/emails/client.py delete mode 100644 src/auth0/management/emails/provider/__init__.py delete mode 100644 src/auth0/management/emails/provider/client.py delete mode 100644 src/auth0/management/emails/provider/raw_client.py delete mode 100644 src/auth0/management/emails/raw_client.py delete mode 100644 src/auth0/management/environment.py delete mode 100644 src/auth0/management/errors/__init__.py delete mode 100644 src/auth0/management/errors/bad_request_error.py delete mode 100644 src/auth0/management/errors/conflict_error.py delete mode 100644 src/auth0/management/errors/content_too_large_error.py delete mode 100644 src/auth0/management/errors/forbidden_error.py delete mode 100644 src/auth0/management/errors/gateway_timeout_error.py delete mode 100644 src/auth0/management/errors/gone_error.py delete mode 100644 src/auth0/management/errors/internal_server_error.py delete mode 100644 src/auth0/management/errors/not_found_error.py delete mode 100644 src/auth0/management/errors/payment_required_error.py delete mode 100644 src/auth0/management/errors/precondition_failed_error.py delete mode 100644 src/auth0/management/errors/service_unavailable_error.py delete mode 100644 src/auth0/management/errors/too_many_requests_error.py delete mode 100644 src/auth0/management/errors/unauthorized_error.py delete mode 100644 src/auth0/management/errors/unprocessable_entity_error.py delete mode 100644 src/auth0/management/event_streams/__init__.py delete mode 100644 src/auth0/management/event_streams/client.py delete mode 100644 src/auth0/management/event_streams/deliveries/__init__.py delete mode 100644 src/auth0/management/event_streams/deliveries/client.py delete mode 100644 src/auth0/management/event_streams/deliveries/raw_client.py delete mode 100644 src/auth0/management/event_streams/raw_client.py delete mode 100644 src/auth0/management/event_streams/redeliveries/__init__.py delete mode 100644 src/auth0/management/event_streams/redeliveries/client.py delete mode 100644 src/auth0/management/event_streams/redeliveries/raw_client.py delete mode 100644 src/auth0/management/event_streams/types/__init__.py delete mode 100644 src/auth0/management/event_streams/types/event_streams_create_request.py delete mode 100644 src/auth0/management/events/__init__.py delete mode 100644 src/auth0/management/events/client.py delete mode 100644 src/auth0/management/events/raw_client.py delete mode 100644 src/auth0/management/experimentation/__init__.py delete mode 100644 src/auth0/management/experimentation/client.py delete mode 100644 src/auth0/management/experimentation/experiments/__init__.py delete mode 100644 src/auth0/management/experimentation/experiments/client.py delete mode 100644 src/auth0/management/experimentation/experiments/raw_client.py delete mode 100644 src/auth0/management/experimentation/feature_flags/__init__.py delete mode 100644 src/auth0/management/experimentation/feature_flags/client.py delete mode 100644 src/auth0/management/experimentation/feature_flags/raw_client.py delete mode 100644 src/auth0/management/experimentation/feature_flags/variations/__init__.py delete mode 100644 src/auth0/management/experimentation/feature_flags/variations/client.py delete mode 100644 src/auth0/management/experimentation/feature_flags/variations/raw_client.py delete mode 100644 src/auth0/management/experimentation/raw_client.py delete mode 100644 src/auth0/management/experimentation/segments/__init__.py delete mode 100644 src/auth0/management/experimentation/segments/client.py delete mode 100644 src/auth0/management/experimentation/segments/raw_client.py delete mode 100644 src/auth0/management/flows/__init__.py delete mode 100644 src/auth0/management/flows/client.py delete mode 100644 src/auth0/management/flows/executions/__init__.py delete mode 100644 src/auth0/management/flows/executions/client.py delete mode 100644 src/auth0/management/flows/executions/raw_client.py delete mode 100644 src/auth0/management/flows/raw_client.py delete mode 100644 src/auth0/management/flows/vault/__init__.py delete mode 100644 src/auth0/management/flows/vault/client.py delete mode 100644 src/auth0/management/flows/vault/connections/__init__.py delete mode 100644 src/auth0/management/flows/vault/connections/client.py delete mode 100644 src/auth0/management/flows/vault/connections/raw_client.py delete mode 100644 src/auth0/management/flows/vault/raw_client.py delete mode 100644 src/auth0/management/forms/__init__.py delete mode 100644 src/auth0/management/forms/client.py delete mode 100644 src/auth0/management/forms/raw_client.py delete mode 100644 src/auth0/management/groups/__init__.py delete mode 100644 src/auth0/management/groups/client.py delete mode 100644 src/auth0/management/groups/members/__init__.py delete mode 100644 src/auth0/management/groups/members/client.py delete mode 100644 src/auth0/management/groups/members/raw_client.py delete mode 100644 src/auth0/management/groups/raw_client.py delete mode 100644 src/auth0/management/groups/roles/__init__.py delete mode 100644 src/auth0/management/groups/roles/client.py delete mode 100644 src/auth0/management/groups/roles/raw_client.py delete mode 100644 src/auth0/management/guardian/__init__.py delete mode 100644 src/auth0/management/guardian/client.py delete mode 100644 src/auth0/management/guardian/enrollments/__init__.py delete mode 100644 src/auth0/management/guardian/enrollments/client.py delete mode 100644 src/auth0/management/guardian/enrollments/raw_client.py delete mode 100644 src/auth0/management/guardian/factors/__init__.py delete mode 100644 src/auth0/management/guardian/factors/client.py delete mode 100644 src/auth0/management/guardian/factors/duo/__init__.py delete mode 100644 src/auth0/management/guardian/factors/duo/client.py delete mode 100644 src/auth0/management/guardian/factors/duo/raw_client.py delete mode 100644 src/auth0/management/guardian/factors/duo/settings/__init__.py delete mode 100644 src/auth0/management/guardian/factors/duo/settings/client.py delete mode 100644 src/auth0/management/guardian/factors/duo/settings/raw_client.py delete mode 100644 src/auth0/management/guardian/factors/email/__init__.py delete mode 100644 src/auth0/management/guardian/factors/email/client.py delete mode 100644 src/auth0/management/guardian/factors/email/raw_client.py delete mode 100644 src/auth0/management/guardian/factors/phone/__init__.py delete mode 100644 src/auth0/management/guardian/factors/phone/client.py delete mode 100644 src/auth0/management/guardian/factors/phone/raw_client.py delete mode 100644 src/auth0/management/guardian/factors/push_notification/__init__.py delete mode 100644 src/auth0/management/guardian/factors/push_notification/client.py delete mode 100644 src/auth0/management/guardian/factors/push_notification/raw_client.py delete mode 100644 src/auth0/management/guardian/factors/raw_client.py delete mode 100644 src/auth0/management/guardian/factors/sms/__init__.py delete mode 100644 src/auth0/management/guardian/factors/sms/client.py delete mode 100644 src/auth0/management/guardian/factors/sms/raw_client.py delete mode 100644 src/auth0/management/guardian/policies/__init__.py delete mode 100644 src/auth0/management/guardian/policies/client.py delete mode 100644 src/auth0/management/guardian/policies/raw_client.py delete mode 100644 src/auth0/management/guardian/raw_client.py delete mode 100644 src/auth0/management/hooks/__init__.py delete mode 100644 src/auth0/management/hooks/client.py delete mode 100644 src/auth0/management/hooks/raw_client.py delete mode 100644 src/auth0/management/hooks/secrets/__init__.py delete mode 100644 src/auth0/management/hooks/secrets/client.py delete mode 100644 src/auth0/management/hooks/secrets/raw_client.py delete mode 100644 src/auth0/management/jobs/__init__.py delete mode 100644 src/auth0/management/jobs/client.py delete mode 100644 src/auth0/management/jobs/errors/__init__.py delete mode 100644 src/auth0/management/jobs/errors/client.py delete mode 100644 src/auth0/management/jobs/errors/raw_client.py delete mode 100644 src/auth0/management/jobs/errors/types/__init__.py delete mode 100644 src/auth0/management/jobs/errors/types/errors_get_response.py delete mode 100644 src/auth0/management/jobs/raw_client.py delete mode 100644 src/auth0/management/jobs/users_exports/__init__.py delete mode 100644 src/auth0/management/jobs/users_exports/client.py delete mode 100644 src/auth0/management/jobs/users_exports/raw_client.py delete mode 100644 src/auth0/management/jobs/users_imports/__init__.py delete mode 100644 src/auth0/management/jobs/users_imports/client.py delete mode 100644 src/auth0/management/jobs/users_imports/raw_client.py delete mode 100644 src/auth0/management/jobs/verification_email/__init__.py delete mode 100644 src/auth0/management/jobs/verification_email/client.py delete mode 100644 src/auth0/management/jobs/verification_email/raw_client.py delete mode 100644 src/auth0/management/keys/__init__.py delete mode 100644 src/auth0/management/keys/client.py delete mode 100644 src/auth0/management/keys/custom_signing/__init__.py delete mode 100644 src/auth0/management/keys/custom_signing/client.py delete mode 100644 src/auth0/management/keys/custom_signing/raw_client.py delete mode 100644 src/auth0/management/keys/encryption/__init__.py delete mode 100644 src/auth0/management/keys/encryption/client.py delete mode 100644 src/auth0/management/keys/encryption/raw_client.py delete mode 100644 src/auth0/management/keys/network_acls/__init__.py delete mode 100644 src/auth0/management/keys/network_acls/client.py delete mode 100644 src/auth0/management/keys/network_acls/raw_client.py delete mode 100644 src/auth0/management/keys/raw_client.py delete mode 100644 src/auth0/management/keys/signing/__init__.py delete mode 100644 src/auth0/management/keys/signing/client.py delete mode 100644 src/auth0/management/keys/signing/raw_client.py delete mode 100644 src/auth0/management/log_streams/__init__.py delete mode 100644 src/auth0/management/log_streams/client.py delete mode 100644 src/auth0/management/log_streams/raw_client.py delete mode 100644 src/auth0/management/logs/__init__.py delete mode 100644 src/auth0/management/logs/client.py delete mode 100644 src/auth0/management/logs/raw_client.py delete mode 100644 src/auth0/management/network_acls/__init__.py delete mode 100644 src/auth0/management/network_acls/client.py delete mode 100644 src/auth0/management/network_acls/raw_client.py delete mode 100644 src/auth0/management/organizations/__init__.py delete mode 100644 src/auth0/management/organizations/client.py delete mode 100644 src/auth0/management/organizations/client_grants/__init__.py delete mode 100644 src/auth0/management/organizations/client_grants/client.py delete mode 100644 src/auth0/management/organizations/client_grants/raw_client.py delete mode 100644 src/auth0/management/organizations/clients/__init__.py delete mode 100644 src/auth0/management/organizations/clients/client.py delete mode 100644 src/auth0/management/organizations/clients/raw_client.py delete mode 100644 src/auth0/management/organizations/connections/__init__.py delete mode 100644 src/auth0/management/organizations/connections/client.py delete mode 100644 src/auth0/management/organizations/connections/raw_client.py delete mode 100644 src/auth0/management/organizations/discovery_domains/__init__.py delete mode 100644 src/auth0/management/organizations/discovery_domains/client.py delete mode 100644 src/auth0/management/organizations/discovery_domains/raw_client.py delete mode 100644 src/auth0/management/organizations/enabled_connections/__init__.py delete mode 100644 src/auth0/management/organizations/enabled_connections/client.py delete mode 100644 src/auth0/management/organizations/enabled_connections/raw_client.py delete mode 100644 src/auth0/management/organizations/groups/__init__.py delete mode 100644 src/auth0/management/organizations/groups/client.py delete mode 100644 src/auth0/management/organizations/groups/raw_client.py delete mode 100644 src/auth0/management/organizations/groups/roles/__init__.py delete mode 100644 src/auth0/management/organizations/groups/roles/client.py delete mode 100644 src/auth0/management/organizations/groups/roles/raw_client.py delete mode 100644 src/auth0/management/organizations/invitations/__init__.py delete mode 100644 src/auth0/management/organizations/invitations/client.py delete mode 100644 src/auth0/management/organizations/invitations/raw_client.py delete mode 100644 src/auth0/management/organizations/members/__init__.py delete mode 100644 src/auth0/management/organizations/members/client.py delete mode 100644 src/auth0/management/organizations/members/effective_roles/__init__.py delete mode 100644 src/auth0/management/organizations/members/effective_roles/client.py delete mode 100644 src/auth0/management/organizations/members/effective_roles/raw_client.py delete mode 100644 src/auth0/management/organizations/members/effective_roles/sources/__init__.py delete mode 100644 src/auth0/management/organizations/members/effective_roles/sources/client.py delete mode 100644 src/auth0/management/organizations/members/effective_roles/sources/groups/__init__.py delete mode 100644 src/auth0/management/organizations/members/effective_roles/sources/groups/client.py delete mode 100644 src/auth0/management/organizations/members/effective_roles/sources/groups/raw_client.py delete mode 100644 src/auth0/management/organizations/members/effective_roles/sources/raw_client.py delete mode 100644 src/auth0/management/organizations/members/raw_client.py delete mode 100644 src/auth0/management/organizations/members/roles/__init__.py delete mode 100644 src/auth0/management/organizations/members/roles/client.py delete mode 100644 src/auth0/management/organizations/members/roles/raw_client.py delete mode 100644 src/auth0/management/organizations/raw_client.py delete mode 100644 src/auth0/management/organizations/roles/__init__.py delete mode 100644 src/auth0/management/organizations/roles/client.py delete mode 100644 src/auth0/management/organizations/roles/groups/__init__.py delete mode 100644 src/auth0/management/organizations/roles/groups/client.py delete mode 100644 src/auth0/management/organizations/roles/groups/raw_client.py delete mode 100644 src/auth0/management/organizations/roles/members/__init__.py delete mode 100644 src/auth0/management/organizations/roles/members/client.py delete mode 100644 src/auth0/management/organizations/roles/members/raw_client.py delete mode 100644 src/auth0/management/organizations/roles/raw_client.py delete mode 100644 src/auth0/management/portals/__init__.py delete mode 100644 src/auth0/management/portals/client.py delete mode 100644 src/auth0/management/portals/raw_client.py delete mode 100644 src/auth0/management/prompts/__init__.py delete mode 100644 src/auth0/management/prompts/client.py delete mode 100644 src/auth0/management/prompts/custom_text/__init__.py delete mode 100644 src/auth0/management/prompts/custom_text/client.py delete mode 100644 src/auth0/management/prompts/custom_text/raw_client.py delete mode 100644 src/auth0/management/prompts/partials/__init__.py delete mode 100644 src/auth0/management/prompts/partials/client.py delete mode 100644 src/auth0/management/prompts/partials/raw_client.py delete mode 100644 src/auth0/management/prompts/raw_client.py delete mode 100644 src/auth0/management/prompts/rendering/__init__.py delete mode 100644 src/auth0/management/prompts/rendering/client.py delete mode 100644 src/auth0/management/prompts/rendering/raw_client.py delete mode 100644 src/auth0/management/rate_limit_policies/__init__.py delete mode 100644 src/auth0/management/rate_limit_policies/client.py delete mode 100644 src/auth0/management/rate_limit_policies/raw_client.py create mode 100644 src/auth0/management/raw_client.py delete mode 100644 src/auth0/management/refresh_tokens/__init__.py delete mode 100644 src/auth0/management/refresh_tokens/client.py delete mode 100644 src/auth0/management/refresh_tokens/raw_client.py delete mode 100644 src/auth0/management/resource_servers/__init__.py delete mode 100644 src/auth0/management/resource_servers/client.py delete mode 100644 src/auth0/management/resource_servers/raw_client.py delete mode 100644 src/auth0/management/risk_assessments/__init__.py delete mode 100644 src/auth0/management/risk_assessments/client.py delete mode 100644 src/auth0/management/risk_assessments/raw_client.py delete mode 100644 src/auth0/management/risk_assessments/settings/__init__.py delete mode 100644 src/auth0/management/risk_assessments/settings/client.py delete mode 100644 src/auth0/management/risk_assessments/settings/new_device/__init__.py delete mode 100644 src/auth0/management/risk_assessments/settings/new_device/client.py delete mode 100644 src/auth0/management/risk_assessments/settings/new_device/raw_client.py delete mode 100644 src/auth0/management/risk_assessments/settings/raw_client.py delete mode 100644 src/auth0/management/roles/__init__.py delete mode 100644 src/auth0/management/roles/client.py delete mode 100644 src/auth0/management/roles/groups/__init__.py delete mode 100644 src/auth0/management/roles/groups/client.py delete mode 100644 src/auth0/management/roles/groups/raw_client.py delete mode 100644 src/auth0/management/roles/permissions/__init__.py delete mode 100644 src/auth0/management/roles/permissions/client.py delete mode 100644 src/auth0/management/roles/permissions/raw_client.py delete mode 100644 src/auth0/management/roles/raw_client.py delete mode 100644 src/auth0/management/roles/users/__init__.py delete mode 100644 src/auth0/management/roles/users/client.py delete mode 100644 src/auth0/management/roles/users/raw_client.py delete mode 100644 src/auth0/management/rules/__init__.py delete mode 100644 src/auth0/management/rules/client.py delete mode 100644 src/auth0/management/rules/raw_client.py delete mode 100644 src/auth0/management/rules_configs/__init__.py delete mode 100644 src/auth0/management/rules_configs/client.py delete mode 100644 src/auth0/management/rules_configs/raw_client.py delete mode 100644 src/auth0/management/self_service_profiles/__init__.py delete mode 100644 src/auth0/management/self_service_profiles/client.py delete mode 100644 src/auth0/management/self_service_profiles/custom_text/__init__.py delete mode 100644 src/auth0/management/self_service_profiles/custom_text/client.py delete mode 100644 src/auth0/management/self_service_profiles/custom_text/raw_client.py delete mode 100644 src/auth0/management/self_service_profiles/raw_client.py delete mode 100644 src/auth0/management/self_service_profiles/sso_ticket/__init__.py delete mode 100644 src/auth0/management/self_service_profiles/sso_ticket/client.py delete mode 100644 src/auth0/management/self_service_profiles/sso_ticket/raw_client.py delete mode 100644 src/auth0/management/sessions/__init__.py delete mode 100644 src/auth0/management/sessions/client.py delete mode 100644 src/auth0/management/sessions/raw_client.py delete mode 100644 src/auth0/management/stats/__init__.py delete mode 100644 src/auth0/management/stats/client.py delete mode 100644 src/auth0/management/stats/raw_client.py delete mode 100644 src/auth0/management/supplemental_signals/__init__.py delete mode 100644 src/auth0/management/supplemental_signals/client.py delete mode 100644 src/auth0/management/supplemental_signals/raw_client.py delete mode 100644 src/auth0/management/tenants/__init__.py delete mode 100644 src/auth0/management/tenants/client.py delete mode 100644 src/auth0/management/tenants/raw_client.py delete mode 100644 src/auth0/management/tenants/settings/__init__.py delete mode 100644 src/auth0/management/tenants/settings/client.py delete mode 100644 src/auth0/management/tenants/settings/raw_client.py delete mode 100644 src/auth0/management/tickets/__init__.py delete mode 100644 src/auth0/management/tickets/client.py delete mode 100644 src/auth0/management/tickets/raw_client.py delete mode 100644 src/auth0/management/token_exchange_profiles/__init__.py delete mode 100644 src/auth0/management/token_exchange_profiles/client.py delete mode 100644 src/auth0/management/token_exchange_profiles/raw_client.py delete mode 100644 src/auth0/management/types/action.py delete mode 100644 src/auth0/management/types/action_base.py delete mode 100644 src/auth0/management/types/action_binding.py delete mode 100644 src/auth0/management/types/action_binding_ref.py delete mode 100644 src/auth0/management/types/action_binding_ref_type_enum.py delete mode 100644 src/auth0/management/types/action_binding_type_enum.py delete mode 100644 src/auth0/management/types/action_binding_with_ref.py delete mode 100644 src/auth0/management/types/action_build_status_enum.py delete mode 100644 src/auth0/management/types/action_deployed_version.py delete mode 100644 src/auth0/management/types/action_error.py delete mode 100644 src/auth0/management/types/action_execution_result.py delete mode 100644 src/auth0/management/types/action_execution_status_enum.py delete mode 100644 src/auth0/management/types/action_module_action.py delete mode 100644 src/auth0/management/types/action_module_dependency.py delete mode 100644 src/auth0/management/types/action_module_dependency_request.py delete mode 100644 src/auth0/management/types/action_module_list_item.py delete mode 100644 src/auth0/management/types/action_module_reference.py delete mode 100644 src/auth0/management/types/action_module_secret.py delete mode 100644 src/auth0/management/types/action_module_secret_request.py delete mode 100644 src/auth0/management/types/action_module_version.py delete mode 100644 src/auth0/management/types/action_module_version_reference.py delete mode 100644 src/auth0/management/types/action_secret_request.py delete mode 100644 src/auth0/management/types/action_secret_response.py delete mode 100644 src/auth0/management/types/action_trigger.py delete mode 100644 src/auth0/management/types/action_trigger_compatible_trigger.py delete mode 100644 src/auth0/management/types/action_trigger_type_enum.py delete mode 100644 src/auth0/management/types/action_version.py delete mode 100644 src/auth0/management/types/action_version_build_status_enum.py delete mode 100644 src/auth0/management/types/action_version_dependency.py delete mode 100644 src/auth0/management/types/acul_client_filter.py delete mode 100644 src/auth0/management/types/acul_client_filter_by_id.py delete mode 100644 src/auth0/management/types/acul_client_filter_by_metadata.py delete mode 100644 src/auth0/management/types/acul_client_metadata.py delete mode 100644 src/auth0/management/types/acul_configs.py delete mode 100644 src/auth0/management/types/acul_configs_item.py delete mode 100644 src/auth0/management/types/acul_context_configuration.py delete mode 100644 src/auth0/management/types/acul_context_configuration_item.py delete mode 100644 src/auth0/management/types/acul_context_enum.py delete mode 100644 src/auth0/management/types/acul_domain_filter.py delete mode 100644 src/auth0/management/types/acul_domain_filter_by_id.py delete mode 100644 src/auth0/management/types/acul_domain_filter_by_metadata.py delete mode 100644 src/auth0/management/types/acul_domain_metadata.py delete mode 100644 src/auth0/management/types/acul_filters.py delete mode 100644 src/auth0/management/types/acul_head_tag.py delete mode 100644 src/auth0/management/types/acul_head_tag_attributes.py delete mode 100644 src/auth0/management/types/acul_head_tag_content.py delete mode 100644 src/auth0/management/types/acul_match_type_enum.py delete mode 100644 src/auth0/management/types/acul_organization_filter.py delete mode 100644 src/auth0/management/types/acul_organization_filter_by_id.py delete mode 100644 src/auth0/management/types/acul_organization_filter_by_metadata.py delete mode 100644 src/auth0/management/types/acul_organization_metadata.py delete mode 100644 src/auth0/management/types/acul_rendering_mode_enum.py delete mode 100644 src/auth0/management/types/add_organization_connection_response_content.py delete mode 100644 src/auth0/management/types/advance_ramp_response_content.py delete mode 100644 src/auth0/management/types/agent_metadata.py delete mode 100644 src/auth0/management/types/agent_response_content.py delete mode 100644 src/auth0/management/types/allocation_item.py delete mode 100644 src/auth0/management/types/allocation_request_item.py delete mode 100644 src/auth0/management/types/allocation_strategy_enum.py delete mode 100644 src/auth0/management/types/anomaly_ip_format.py delete mode 100644 src/auth0/management/types/anonymous_sessions.py delete mode 100644 src/auth0/management/types/app_metadata.py delete mode 100644 src/auth0/management/types/assessors_type_enum.py delete mode 100644 src/auth0/management/types/associate_organization_client_grant_response_content.py delete mode 100644 src/auth0/management/types/async_approval_notifications_channels_enum.py delete mode 100644 src/auth0/management/types/attack_protection_captcha_arkose_response_content.py delete mode 100644 src/auth0/management/types/attack_protection_captcha_auth_challenge_request.py delete mode 100644 src/auth0/management/types/attack_protection_captcha_auth_challenge_response_content.py delete mode 100644 src/auth0/management/types/attack_protection_captcha_friendly_captcha_response_content.py delete mode 100644 src/auth0/management/types/attack_protection_captcha_hcaptcha_response_content.py delete mode 100644 src/auth0/management/types/attack_protection_captcha_provider_id.py delete mode 100644 src/auth0/management/types/attack_protection_captcha_recaptcha_enterprise_response_content.py delete mode 100644 src/auth0/management/types/attack_protection_captcha_recaptcha_v_2_response_content.py delete mode 100644 src/auth0/management/types/attack_protection_captcha_simple_captcha_response_content.py delete mode 100644 src/auth0/management/types/attack_protection_update_captcha_arkose.py delete mode 100644 src/auth0/management/types/attack_protection_update_captcha_friendly_captcha.py delete mode 100644 src/auth0/management/types/attack_protection_update_captcha_hcaptcha.py delete mode 100644 src/auth0/management/types/attack_protection_update_captcha_recaptcha_enterprise.py delete mode 100644 src/auth0/management/types/attack_protection_update_captcha_recaptcha_v_2.py delete mode 100644 src/auth0/management/types/authentication_flow_enum.py delete mode 100644 src/auth0/management/types/authentication_method_type_enum.py delete mode 100644 src/auth0/management/types/authentication_type_enum.py delete mode 100644 src/auth0/management/types/b_2_b_integration_configuration.py delete mode 100644 src/auth0/management/types/b_2_b_integration_configuration_integration_type_enum.py delete mode 100644 src/auth0/management/types/bad_request_schema.py delete mode 100644 src/auth0/management/types/bad_request_schema_error.py delete mode 100644 src/auth0/management/types/bot_detection_allowlist.py delete mode 100644 src/auth0/management/types/bot_detection_challenge_policy_password_flow_enum.py delete mode 100644 src/auth0/management/types/bot_detection_challenge_policy_password_reset_flow_enum.py delete mode 100644 src/auth0/management/types/bot_detection_challenge_policy_passwordless_flow_enum.py delete mode 100644 src/auth0/management/types/bot_detection_cidr_block.py delete mode 100644 src/auth0/management/types/bot_detection_i_pv_4.py delete mode 100644 src/auth0/management/types/bot_detection_i_pv_6.py delete mode 100644 src/auth0/management/types/bot_detection_i_pv_6_cidr_block.py delete mode 100644 src/auth0/management/types/bot_detection_ip_address_or_cidr_block.py delete mode 100644 src/auth0/management/types/bot_detection_level_enum.py delete mode 100644 src/auth0/management/types/bot_detection_monitoring_mode_enabled.py delete mode 100644 src/auth0/management/types/branding_colors.py delete mode 100644 src/auth0/management/types/branding_font.py delete mode 100644 src/auth0/management/types/branding_page_background.py delete mode 100644 src/auth0/management/types/branding_theme_borders.py delete mode 100644 src/auth0/management/types/branding_theme_borders_buttons_style_enum.py delete mode 100644 src/auth0/management/types/branding_theme_borders_inputs_style_enum.py delete mode 100644 src/auth0/management/types/branding_theme_colors.py delete mode 100644 src/auth0/management/types/branding_theme_colors_captcha_widget_theme_enum.py delete mode 100644 src/auth0/management/types/branding_theme_font_body_text.py delete mode 100644 src/auth0/management/types/branding_theme_font_buttons_text.py delete mode 100644 src/auth0/management/types/branding_theme_font_input_labels.py delete mode 100644 src/auth0/management/types/branding_theme_font_links.py delete mode 100644 src/auth0/management/types/branding_theme_font_links_style_enum.py delete mode 100644 src/auth0/management/types/branding_theme_font_subtitle.py delete mode 100644 src/auth0/management/types/branding_theme_font_title.py delete mode 100644 src/auth0/management/types/branding_theme_fonts.py delete mode 100644 src/auth0/management/types/branding_theme_identifiers.py delete mode 100644 src/auth0/management/types/branding_theme_identifiers_login_display_enum.py delete mode 100644 src/auth0/management/types/branding_theme_identifiers_phone_display.py delete mode 100644 src/auth0/management/types/branding_theme_identifiers_phone_display_formatting_enum.py delete mode 100644 src/auth0/management/types/branding_theme_identifiers_phone_display_masking_enum.py delete mode 100644 src/auth0/management/types/branding_theme_page_background.py delete mode 100644 src/auth0/management/types/branding_theme_page_background_page_layout_enum.py delete mode 100644 src/auth0/management/types/branding_theme_widget.py delete mode 100644 src/auth0/management/types/branding_theme_widget_header_text_alignment_enum.py delete mode 100644 src/auth0/management/types/branding_theme_widget_logo_position_enum.py delete mode 100644 src/auth0/management/types/branding_theme_widget_social_buttons_layout_enum.py delete mode 100644 src/auth0/management/types/breached_password_detection_admin_notification_frequency_enum.py delete mode 100644 src/auth0/management/types/breached_password_detection_method_enum.py delete mode 100644 src/auth0/management/types/breached_password_detection_pre_change_password_shields_enum.py delete mode 100644 src/auth0/management/types/breached_password_detection_pre_change_password_stage.py delete mode 100644 src/auth0/management/types/breached_password_detection_pre_user_registration_shields_enum.py delete mode 100644 src/auth0/management/types/breached_password_detection_pre_user_registration_stage.py delete mode 100644 src/auth0/management/types/breached_password_detection_shields_enum.py delete mode 100644 src/auth0/management/types/breached_password_detection_stage.py delete mode 100644 src/auth0/management/types/brute_force_protection_form_submission_mode_enum.py delete mode 100644 src/auth0/management/types/brute_force_protection_mode_enum.py delete mode 100644 src/auth0/management/types/brute_force_protection_shields_enum.py delete mode 100644 src/auth0/management/types/bulk_update_acul_response_content.py delete mode 100644 src/auth0/management/types/certificate_subject_dn_credential.py delete mode 100644 src/auth0/management/types/certificate_subject_dn_credential_type_enum.py delete mode 100644 src/auth0/management/types/change_password_ticket_identity.py delete mode 100644 src/auth0/management/types/change_password_ticket_response_content.py delete mode 100644 src/auth0/management/types/cimd_external_metadata_created_by_enum.py delete mode 100644 src/auth0/management/types/cimd_mapped_client_authentication_methods.py delete mode 100644 src/auth0/management/types/cimd_mapped_client_authentication_methods_private_key_jwt.py delete mode 100644 src/auth0/management/types/cimd_mapped_client_fields.py delete mode 100644 src/auth0/management/types/cimd_mapped_private_key_jwt_credential.py delete mode 100644 src/auth0/management/types/cimd_validation_result.py delete mode 100644 src/auth0/management/types/client.py delete mode 100644 src/auth0/management/types/client_addon_aws.py delete mode 100644 src/auth0/management/types/client_addon_azure_blob.py delete mode 100644 src/auth0/management/types/client_addon_azure_sb.py delete mode 100644 src/auth0/management/types/client_addon_box.py delete mode 100644 src/auth0/management/types/client_addon_cloud_bees.py delete mode 100644 src/auth0/management/types/client_addon_concur.py delete mode 100644 src/auth0/management/types/client_addon_dropbox.py delete mode 100644 src/auth0/management/types/client_addon_echo_sign.py delete mode 100644 src/auth0/management/types/client_addon_egnyte.py delete mode 100644 src/auth0/management/types/client_addon_firebase.py delete mode 100644 src/auth0/management/types/client_addon_layer.py delete mode 100644 src/auth0/management/types/client_addon_mscrm.py delete mode 100644 src/auth0/management/types/client_addon_new_relic.py delete mode 100644 src/auth0/management/types/client_addon_oag.py delete mode 100644 src/auth0/management/types/client_addon_office_365.py delete mode 100644 src/auth0/management/types/client_addon_rms.py delete mode 100644 src/auth0/management/types/client_addon_salesforce.py delete mode 100644 src/auth0/management/types/client_addon_salesforce_api.py delete mode 100644 src/auth0/management/types/client_addon_salesforce_sandbox_api.py delete mode 100644 src/auth0/management/types/client_addon_saml.py delete mode 100644 src/auth0/management/types/client_addon_saml_mapping.py delete mode 100644 src/auth0/management/types/client_addon_sapapi.py delete mode 100644 src/auth0/management/types/client_addon_sentry.py delete mode 100644 src/auth0/management/types/client_addon_share_point.py delete mode 100644 src/auth0/management/types/client_addon_share_point_external_url.py delete mode 100644 src/auth0/management/types/client_addon_slack.py delete mode 100644 src/auth0/management/types/client_addon_spring_cm.py delete mode 100644 src/auth0/management/types/client_addon_sso_integration.py delete mode 100644 src/auth0/management/types/client_addon_wams.py delete mode 100644 src/auth0/management/types/client_addon_ws_fed.py delete mode 100644 src/auth0/management/types/client_addon_zendesk.py delete mode 100644 src/auth0/management/types/client_addon_zoom.py delete mode 100644 src/auth0/management/types/client_addons.py delete mode 100644 src/auth0/management/types/client_anonymous_session_transfer_network_binding_enum.py delete mode 100644 src/auth0/management/types/client_app_type_enum.py delete mode 100644 src/auth0/management/types/client_async_approval_notifications_channels_api_patch_configuration.py delete mode 100644 src/auth0/management/types/client_async_approval_notifications_channels_api_post_configuration.py delete mode 100644 src/auth0/management/types/client_authentication_method.py delete mode 100644 src/auth0/management/types/client_authentication_method_private_key_jwt.py delete mode 100644 src/auth0/management/types/client_authentication_method_private_key_jwt_credentials.py delete mode 100644 src/auth0/management/types/client_authentication_method_self_signed_tls_client_auth.py delete mode 100644 src/auth0/management/types/client_authentication_method_self_signed_tls_client_auth_credentials.py delete mode 100644 src/auth0/management/types/client_authentication_method_tls_client_auth.py delete mode 100644 src/auth0/management/types/client_authentication_method_tls_client_auth_credentials.py delete mode 100644 src/auth0/management/types/client_compliance_level_enum.py delete mode 100644 src/auth0/management/types/client_create_authentication_method.py delete mode 100644 src/auth0/management/types/client_create_authentication_method_private_key_jwt.py delete mode 100644 src/auth0/management/types/client_create_authentication_method_private_key_jwt_credentials.py delete mode 100644 src/auth0/management/types/client_create_authentication_method_tls_client_auth.py delete mode 100644 src/auth0/management/types/client_create_authentication_method_tls_client_auth_credentials.py delete mode 100644 src/auth0/management/types/client_credential.py delete mode 100644 src/auth0/management/types/client_credential_algorithm_enum.py delete mode 100644 src/auth0/management/types/client_credential_type_enum.py delete mode 100644 src/auth0/management/types/client_default_organization.py delete mode 100644 src/auth0/management/types/client_default_organization_flows_enum.py delete mode 100644 src/auth0/management/types/client_encryption_key.py delete mode 100644 src/auth0/management/types/client_external_metadata_created_by_enum.py delete mode 100644 src/auth0/management/types/client_external_metadata_status_enum.py delete mode 100644 src/auth0/management/types/client_external_metadata_type_enum.py delete mode 100644 src/auth0/management/types/client_grant_allow_any_organization_enum.py delete mode 100644 src/auth0/management/types/client_grant_default_for_enum.py delete mode 100644 src/auth0/management/types/client_grant_organization_nullable_usage_enum.py delete mode 100644 src/auth0/management/types/client_grant_organization_usage_enum.py delete mode 100644 src/auth0/management/types/client_grant_response_content.py delete mode 100644 src/auth0/management/types/client_grant_sort_field_enum.py delete mode 100644 src/auth0/management/types/client_grant_subject_type_enum.py delete mode 100644 src/auth0/management/types/client_jwt_configuration.py delete mode 100644 src/auth0/management/types/client_jwt_configuration_scopes.py delete mode 100644 src/auth0/management/types/client_metadata.py delete mode 100644 src/auth0/management/types/client_mobile.py delete mode 100644 src/auth0/management/types/client_mobile_android.py delete mode 100644 src/auth0/management/types/client_mobilei_os.py delete mode 100644 src/auth0/management/types/client_my_organization_configuration_allowed_strategies_enum.py delete mode 100644 src/auth0/management/types/client_my_organization_configuration_third_party_client_access_allowed_values_enum.py delete mode 100644 src/auth0/management/types/client_my_organization_configuration_third_party_client_access_default_value_enum.py delete mode 100644 src/auth0/management/types/client_my_organization_deletion_behavior_enum.py delete mode 100644 src/auth0/management/types/client_my_organization_patch_configuration.py delete mode 100644 src/auth0/management/types/client_my_organization_post_configuration.py delete mode 100644 src/auth0/management/types/client_my_organization_response_configuration.py delete mode 100644 src/auth0/management/types/client_my_organization_third_party_client_access_configuration.py delete mode 100644 src/auth0/management/types/client_oidc_backchannel_logout_initiators.py delete mode 100644 src/auth0/management/types/client_oidc_backchannel_logout_initiators_enum.py delete mode 100644 src/auth0/management/types/client_oidc_backchannel_logout_initiators_mode_enum.py delete mode 100644 src/auth0/management/types/client_oidc_backchannel_logout_session_metadata.py delete mode 100644 src/auth0/management/types/client_oidc_backchannel_logout_settings.py delete mode 100644 src/auth0/management/types/client_oidc_support.py delete mode 100644 src/auth0/management/types/client_oidc_support_allowed_scopes_enum.py delete mode 100644 src/auth0/management/types/client_oidc_support_patch.py delete mode 100644 src/auth0/management/types/client_oidc_support_post.py delete mode 100644 src/auth0/management/types/client_organization_discovery_enum.py delete mode 100644 src/auth0/management/types/client_organization_require_behavior_enum.py delete mode 100644 src/auth0/management/types/client_organization_require_behavior_patch_enum.py delete mode 100644 src/auth0/management/types/client_organization_usage_enum.py delete mode 100644 src/auth0/management/types/client_organization_usage_patch_enum.py delete mode 100644 src/auth0/management/types/client_profile.py delete mode 100644 src/auth0/management/types/client_profile_apply_policy.py delete mode 100644 src/auth0/management/types/client_profile_apply_policy_external_metadata_created_by_enum.py delete mode 100644 src/auth0/management/types/client_profile_apply_policy_external_metadata_type_enum.py delete mode 100644 src/auth0/management/types/client_profile_client_configuration.py delete mode 100644 src/auth0/management/types/client_profile_client_configuration_oidc_support.py delete mode 100644 src/auth0/management/types/client_profile_client_configuration_oidc_support_allowed_scopes_enum.py delete mode 100644 src/auth0/management/types/client_profile_client_configuration_oidc_support_default_value.py delete mode 100644 src/auth0/management/types/client_profile_client_configuration_organization_discovery_method_enum.py delete mode 100644 src/auth0/management/types/client_profile_client_configuration_organization_discovery_methods.py delete mode 100644 src/auth0/management/types/client_profile_client_configuration_organization_require_behavior.py delete mode 100644 src/auth0/management/types/client_profile_client_configuration_organization_require_behavior_enum.py delete mode 100644 src/auth0/management/types/client_profile_client_configuration_organization_usage.py delete mode 100644 src/auth0/management/types/client_profile_client_configuration_organization_usage_enum.py delete mode 100644 src/auth0/management/types/client_profile_client_configuration_refresh_token.py delete mode 100644 src/auth0/management/types/client_profile_client_configuration_require_proof_of_possession.py delete mode 100644 src/auth0/management/types/client_profile_description.py delete mode 100644 src/auth0/management/types/client_profile_id.py delete mode 100644 src/auth0/management/types/client_profile_name.py delete mode 100644 src/auth0/management/types/client_profile_refresh_token_idle_token_lifetime.py delete mode 100644 src/auth0/management/types/client_profile_refresh_token_leeway.py delete mode 100644 src/auth0/management/types/client_profile_refresh_token_token_lifetime.py delete mode 100644 src/auth0/management/types/client_redirection_policy_enum.py delete mode 100644 src/auth0/management/types/client_refresh_token_configuration.py delete mode 100644 src/auth0/management/types/client_refresh_token_policy.py delete mode 100644 src/auth0/management/types/client_search_response.py delete mode 100644 src/auth0/management/types/client_session_transfer_allowed_authentication_methods_enum.py delete mode 100644 src/auth0/management/types/client_session_transfer_configuration.py delete mode 100644 src/auth0/management/types/client_session_transfer_delegation_configuration.py delete mode 100644 src/auth0/management/types/client_session_transfer_delegation_device_binding_enum.py delete mode 100644 src/auth0/management/types/client_session_transfer_device_binding_enum.py delete mode 100644 src/auth0/management/types/client_signed_request_object_with_credential_id.py delete mode 100644 src/auth0/management/types/client_signed_request_object_with_public_key.py delete mode 100644 src/auth0/management/types/client_signing_key.py delete mode 100644 src/auth0/management/types/client_signing_keys.py delete mode 100644 src/auth0/management/types/client_sort_field_enum.py delete mode 100644 src/auth0/management/types/client_third_party_security_mode_enum.py delete mode 100644 src/auth0/management/types/client_token_endpoint_auth_method_enum.py delete mode 100644 src/auth0/management/types/client_token_endpoint_auth_method_or_null_enum.py delete mode 100644 src/auth0/management/types/client_token_exchange_configuration.py delete mode 100644 src/auth0/management/types/client_token_exchange_configuration_or_null.py delete mode 100644 src/auth0/management/types/client_token_exchange_type_enum.py delete mode 100644 src/auth0/management/types/client_token_vault_privileged_access_with_credential_id.py delete mode 100644 src/auth0/management/types/client_token_vault_privileged_access_with_public_key.py delete mode 100644 src/auth0/management/types/conflict_schema.py delete mode 100644 src/auth0/management/types/conflict_schema_error.py delete mode 100644 src/auth0/management/types/connected_account.py delete mode 100644 src/auth0/management/types/connected_account_access_type_enum.py delete mode 100644 src/auth0/management/types/connection_access_token_urlo_auth_1.py delete mode 100644 src/auth0/management/types/connection_acr_values_supported.py delete mode 100644 src/auth0/management/types/connection_admin_access_token_expires_in_google_apps.py delete mode 100644 src/auth0/management/types/connection_admin_access_token_google_apps.py delete mode 100644 src/auth0/management/types/connection_admin_refresh_token_google_apps.py delete mode 100644 src/auth0/management/types/connection_agent_ipad.py delete mode 100644 src/auth0/management/types/connection_agent_mode_ad.py delete mode 100644 src/auth0/management/types/connection_agent_version_ad.py delete mode 100644 src/auth0/management/types/connection_allowed_audiences_google_o_auth_2.py delete mode 100644 src/auth0/management/types/connection_api_behavior_enum.py delete mode 100644 src/auth0/management/types/connection_api_enable_groups.py delete mode 100644 src/auth0/management/types/connection_api_enable_groups_google_apps.py delete mode 100644 src/auth0/management/types/connection_api_enable_users.py delete mode 100644 src/auth0/management/types/connection_api_enable_users_google_apps.py delete mode 100644 src/auth0/management/types/connection_app_domain_azure_ad.py delete mode 100644 src/auth0/management/types/connection_assertion_decryption_algorithm_profile_enum.py delete mode 100644 src/auth0/management/types/connection_assertion_decryption_settings.py delete mode 100644 src/auth0/management/types/connection_attribute_map_attributes.py delete mode 100644 src/auth0/management/types/connection_attribute_map_oidc.py delete mode 100644 src/auth0/management/types/connection_attribute_map_okta.py delete mode 100644 src/auth0/management/types/connection_attribute_map_userinfo_scope.py delete mode 100644 src/auth0/management/types/connection_attributes.py delete mode 100644 src/auth0/management/types/connection_auth_params_additional_properties_o_auth_2.py delete mode 100644 src/auth0/management/types/connection_auth_params_email.py delete mode 100644 src/auth0/management/types/connection_auth_params_map.py delete mode 100644 src/auth0/management/types/connection_auth_params_o_auth_2.py delete mode 100644 src/auth0/management/types/connection_authentication_methods.py delete mode 100644 src/auth0/management/types/connection_authentication_purpose.py delete mode 100644 src/auth0/management/types/connection_authorization_endpoint.py delete mode 100644 src/auth0/management/types/connection_base_url_exact.py delete mode 100644 src/auth0/management/types/connection_brute_force_protection.py delete mode 100644 src/auth0/management/types/connection_calculated_thumbprint_saml.py delete mode 100644 src/auth0/management/types/connection_certs_ad.py delete mode 100644 src/auth0/management/types/connection_claim_types_supported.py delete mode 100644 src/auth0/management/types/connection_claims_locales_supported.py delete mode 100644 src/auth0/management/types/connection_claims_parameter_supported.py delete mode 100644 src/auth0/management/types/connection_claims_supported.py delete mode 100644 src/auth0/management/types/connection_client_id.py delete mode 100644 src/auth0/management/types/connection_client_id_amazon.py delete mode 100644 src/auth0/management/types/connection_client_id_azure_ad.py delete mode 100644 src/auth0/management/types/connection_client_id_bitbucket.py delete mode 100644 src/auth0/management/types/connection_client_id_exact.py delete mode 100644 src/auth0/management/types/connection_client_id_facebook.py delete mode 100644 src/auth0/management/types/connection_client_id_google_apps.py delete mode 100644 src/auth0/management/types/connection_client_id_google_o_auth_2.py delete mode 100644 src/auth0/management/types/connection_client_id_line.py delete mode 100644 src/auth0/management/types/connection_client_id_linkedin.py delete mode 100644 src/auth0/management/types/connection_client_id_o_auth_1.py delete mode 100644 src/auth0/management/types/connection_client_id_o_auth_2.py delete mode 100644 src/auth0/management/types/connection_client_id_oidc.py delete mode 100644 src/auth0/management/types/connection_client_id_paypal.py delete mode 100644 src/auth0/management/types/connection_client_id_salesforce.py delete mode 100644 src/auth0/management/types/connection_client_id_samlxaa_requesting_app.py delete mode 100644 src/auth0/management/types/connection_client_id_windows_live.py delete mode 100644 src/auth0/management/types/connection_client_protocol_saml.py delete mode 100644 src/auth0/management/types/connection_client_secret.py delete mode 100644 src/auth0/management/types/connection_client_secret_amazon.py delete mode 100644 src/auth0/management/types/connection_client_secret_azure_ad.py delete mode 100644 src/auth0/management/types/connection_client_secret_bitbucket.py delete mode 100644 src/auth0/management/types/connection_client_secret_exact.py delete mode 100644 src/auth0/management/types/connection_client_secret_facebook.py delete mode 100644 src/auth0/management/types/connection_client_secret_google_apps.py delete mode 100644 src/auth0/management/types/connection_client_secret_google_o_auth_2.py delete mode 100644 src/auth0/management/types/connection_client_secret_line.py delete mode 100644 src/auth0/management/types/connection_client_secret_linkedin.py delete mode 100644 src/auth0/management/types/connection_client_secret_o_auth_1.py delete mode 100644 src/auth0/management/types/connection_client_secret_o_auth_2.py delete mode 100644 src/auth0/management/types/connection_client_secret_oidc.py delete mode 100644 src/auth0/management/types/connection_client_secret_paypal.py delete mode 100644 src/auth0/management/types/connection_client_secret_salesforce.py delete mode 100644 src/auth0/management/types/connection_client_secret_samlxaa_requesting_app.py delete mode 100644 src/auth0/management/types/connection_client_secret_windows_live.py delete mode 100644 src/auth0/management/types/connection_common.py delete mode 100644 src/auth0/management/types/connection_community_base_url_salesforce.py delete mode 100644 src/auth0/management/types/connection_configuration.py delete mode 100644 src/auth0/management/types/connection_connected_accounts_purpose.py delete mode 100644 src/auth0/management/types/connection_connected_accounts_purpose_xaa.py delete mode 100644 src/auth0/management/types/connection_connection_settings.py delete mode 100644 src/auth0/management/types/connection_connection_settings_pkce_enum.py delete mode 100644 src/auth0/management/types/connection_cross_app_access_resource_app.py delete mode 100644 src/auth0/management/types/connection_cross_app_access_resource_app_status_enum.py delete mode 100644 src/auth0/management/types/connection_custom_headers_o_auth_2.py delete mode 100644 src/auth0/management/types/connection_custom_scripts.py delete mode 100644 src/auth0/management/types/connection_debug_saml.py delete mode 100644 src/auth0/management/types/connection_decryption_key_saml.py delete mode 100644 src/auth0/management/types/connection_decryption_key_saml_cert.py delete mode 100644 src/auth0/management/types/connection_destination_url_saml.py delete mode 100644 src/auth0/management/types/connection_digest_algorithm_enum_saml.py delete mode 100644 src/auth0/management/types/connection_digest_algorithm_saml.py delete mode 100644 src/auth0/management/types/connection_disable_self_service_change_password.py delete mode 100644 src/auth0/management/types/connection_disable_signup.py delete mode 100644 src/auth0/management/types/connection_disable_signup_sms.py delete mode 100644 src/auth0/management/types/connection_discovery_url.py delete mode 100644 src/auth0/management/types/connection_display_name.py delete mode 100644 src/auth0/management/types/connection_display_values_supported.py delete mode 100644 src/auth0/management/types/connection_domain_aliases.py delete mode 100644 src/auth0/management/types/connection_domain_aliases_ad.py delete mode 100644 src/auth0/management/types/connection_domain_aliases_azure_ad.py delete mode 100644 src/auth0/management/types/connection_domain_aliases_items_one.py delete mode 100644 src/auth0/management/types/connection_domain_aliases_saml.py delete mode 100644 src/auth0/management/types/connection_domain_google_apps.py delete mode 100644 src/auth0/management/types/connection_domain_okta.py delete mode 100644 src/auth0/management/types/connection_dpop_signing_alg_enum.py delete mode 100644 src/auth0/management/types/connection_dpop_signing_alg_values_supported.py delete mode 100644 src/auth0/management/types/connection_email_body_email.py delete mode 100644 src/auth0/management/types/connection_email_email.py delete mode 100644 src/auth0/management/types/connection_email_email_syntax.py delete mode 100644 src/auth0/management/types/connection_email_from_email.py delete mode 100644 src/auth0/management/types/connection_email_otp_authentication_method.py delete mode 100644 src/auth0/management/types/connection_email_subject_email.py delete mode 100644 src/auth0/management/types/connection_enable_pushed_authorization_requests.py delete mode 100644 src/auth0/management/types/connection_enable_script_context.py delete mode 100644 src/auth0/management/types/connection_enabled_client.py delete mode 100644 src/auth0/management/types/connection_enabled_clients.py delete mode 100644 src/auth0/management/types/connection_enabled_database_customization.py delete mode 100644 src/auth0/management/types/connection_end_session_endpoint.py delete mode 100644 src/auth0/management/types/connection_entity_id_saml.py delete mode 100644 src/auth0/management/types/connection_ext_admin.py delete mode 100644 src/auth0/management/types/connection_ext_agreed_terms.py delete mode 100644 src/auth0/management/types/connection_ext_agreed_terms_google_apps.py delete mode 100644 src/auth0/management/types/connection_ext_assigned_plans.py delete mode 100644 src/auth0/management/types/connection_ext_groups.py delete mode 100644 src/auth0/management/types/connection_ext_groups_azure_ad.py delete mode 100644 src/auth0/management/types/connection_ext_groups_google_apps.py delete mode 100644 src/auth0/management/types/connection_ext_is_admin_google_apps.py delete mode 100644 src/auth0/management/types/connection_ext_is_suspended.py delete mode 100644 src/auth0/management/types/connection_ext_is_suspended_google_apps.py delete mode 100644 src/auth0/management/types/connection_ext_profile.py delete mode 100644 src/auth0/management/types/connection_fields_map.py delete mode 100644 src/auth0/management/types/connection_fields_map_saml.py delete mode 100644 src/auth0/management/types/connection_fields_map_saml_value.py delete mode 100644 src/auth0/management/types/connection_for_list.py delete mode 100644 src/auth0/management/types/connection_for_organization.py delete mode 100644 src/auth0/management/types/connection_forward_req_info_sms.py delete mode 100644 src/auth0/management/types/connection_freeform_scopes_amazon.py delete mode 100644 src/auth0/management/types/connection_freeform_scopes_google_o_auth_2.py delete mode 100644 src/auth0/management/types/connection_freeform_scopes_linkedin.py delete mode 100644 src/auth0/management/types/connection_freeform_scopes_paypal.py delete mode 100644 src/auth0/management/types/connection_freeform_scopes_salesforce.py delete mode 100644 src/auth0/management/types/connection_freeform_scopes_windows_live.py delete mode 100644 src/auth0/management/types/connection_from_sms.py delete mode 100644 src/auth0/management/types/connection_gateway_authentication.py delete mode 100644 src/auth0/management/types/connection_gateway_authentication_audience_sms.py delete mode 100644 src/auth0/management/types/connection_gateway_authentication_method_sms.py delete mode 100644 src/auth0/management/types/connection_gateway_authentication_sms.py delete mode 100644 src/auth0/management/types/connection_gateway_authentication_subject_sms.py delete mode 100644 src/auth0/management/types/connection_gateway_url_sms.py delete mode 100644 src/auth0/management/types/connection_global_token_revocation_jwt_iss_saml.py delete mode 100644 src/auth0/management/types/connection_global_token_revocation_jwt_sub_saml.py delete mode 100644 src/auth0/management/types/connection_grant_types_supported.py delete mode 100644 src/auth0/management/types/connection_handle_login_from_social_google_apps.py delete mode 100644 src/auth0/management/types/connection_https_url_with_http_fallback.py delete mode 100644 src/auth0/management/types/connection_https_url_with_http_fallback_2048.py delete mode 100644 src/auth0/management/types/connection_https_url_with_http_fallback_255.py delete mode 100644 src/auth0/management/types/connection_icon_url.py delete mode 100644 src/auth0/management/types/connection_icon_url_adfs.py delete mode 100644 src/auth0/management/types/connection_icon_url_azure_ad.py delete mode 100644 src/auth0/management/types/connection_icon_url_google_apps.py delete mode 100644 src/auth0/management/types/connection_icon_url_google_o_auth_2.py delete mode 100644 src/auth0/management/types/connection_icon_url_saml.py delete mode 100644 src/auth0/management/types/connection_id.py delete mode 100644 src/auth0/management/types/connection_id_token_encryption_alg_values_supported.py delete mode 100644 src/auth0/management/types/connection_id_token_encryption_enc_values_supported.py delete mode 100644 src/auth0/management/types/connection_id_token_session_expiry_supported.py delete mode 100644 src/auth0/management/types/connection_id_token_signed_response_alg_enum.py delete mode 100644 src/auth0/management/types/connection_id_token_signed_response_algs.py delete mode 100644 src/auth0/management/types/connection_id_token_signing_alg_values_supported.py delete mode 100644 src/auth0/management/types/connection_identifier_precedence.py delete mode 100644 src/auth0/management/types/connection_identifier_precedence_enum.py delete mode 100644 src/auth0/management/types/connection_identity_api_azure_ad.py delete mode 100644 src/auth0/management/types/connection_identity_api_enum_azure_ad.py delete mode 100644 src/auth0/management/types/connection_identity_provider_enum.py delete mode 100644 src/auth0/management/types/connection_import_mode.py delete mode 100644 src/auth0/management/types/connection_ips_ad.py delete mode 100644 src/auth0/management/types/connection_is_domain_connection.py delete mode 100644 src/auth0/management/types/connection_issuer.py delete mode 100644 src/auth0/management/types/connection_jwks_uri.py delete mode 100644 src/auth0/management/types/connection_key.py delete mode 100644 src/auth0/management/types/connection_key_use_enum.py delete mode 100644 src/auth0/management/types/connection_mapping_mode_enum_oidc.py delete mode 100644 src/auth0/management/types/connection_mapping_mode_enum_okta.py delete mode 100644 src/auth0/management/types/connection_max_groups_to_retrieve.py delete mode 100644 src/auth0/management/types/connection_messaging_service_sid_sms.py delete mode 100644 src/auth0/management/types/connection_metadata_url_saml.py delete mode 100644 src/auth0/management/types/connection_metadata_xml.py delete mode 100644 src/auth0/management/types/connection_metadata_xml_adfs.py delete mode 100644 src/auth0/management/types/connection_metadata_xml_saml.py delete mode 100644 src/auth0/management/types/connection_mfa.py delete mode 100644 src/auth0/management/types/connection_name.py delete mode 100644 src/auth0/management/types/connection_name_prefix_template.py delete mode 100644 src/auth0/management/types/connection_non_persistent_attrs.py delete mode 100644 src/auth0/management/types/connection_op_policy_uri.py delete mode 100644 src/auth0/management/types/connection_op_tos_uri.py delete mode 100644 src/auth0/management/types/connection_options.py delete mode 100644 src/auth0/management/types/connection_options_ad.py delete mode 100644 src/auth0/management/types/connection_options_adfs.py delete mode 100644 src/auth0/management/types/connection_options_amazon.py delete mode 100644 src/auth0/management/types/connection_options_apple.py delete mode 100644 src/auth0/management/types/connection_options_auth_0.py delete mode 100644 src/auth0/management/types/connection_options_auth_0_oidc.py delete mode 100644 src/auth0/management/types/connection_options_azure_ad.py delete mode 100644 src/auth0/management/types/connection_options_baidu.py delete mode 100644 src/auth0/management/types/connection_options_bitbucket.py delete mode 100644 src/auth0/management/types/connection_options_bitly.py delete mode 100644 src/auth0/management/types/connection_options_box.py delete mode 100644 src/auth0/management/types/connection_options_client_id_github.py delete mode 100644 src/auth0/management/types/connection_options_client_id_twitter.py delete mode 100644 src/auth0/management/types/connection_options_client_secret_github.py delete mode 100644 src/auth0/management/types/connection_options_client_secret_twitter.py delete mode 100644 src/auth0/management/types/connection_options_common.py delete mode 100644 src/auth0/management/types/connection_options_common_oidc.py delete mode 100644 src/auth0/management/types/connection_options_common_saml.py delete mode 100644 src/auth0/management/types/connection_options_custom.py delete mode 100644 src/auth0/management/types/connection_options_daccount.py delete mode 100644 src/auth0/management/types/connection_options_deflate_saml.py delete mode 100644 src/auth0/management/types/connection_options_dropbox.py delete mode 100644 src/auth0/management/types/connection_options_dwolla.py delete mode 100644 src/auth0/management/types/connection_options_email.py delete mode 100644 src/auth0/management/types/connection_options_evernote.py delete mode 100644 src/auth0/management/types/connection_options_exact.py delete mode 100644 src/auth0/management/types/connection_options_facebook.py delete mode 100644 src/auth0/management/types/connection_options_fitbit.py delete mode 100644 src/auth0/management/types/connection_options_freeform_scopes_github.py delete mode 100644 src/auth0/management/types/connection_options_git_hub.py delete mode 100644 src/auth0/management/types/connection_options_google_apps.py delete mode 100644 src/auth0/management/types/connection_options_google_o_auth_2.py delete mode 100644 src/auth0/management/types/connection_options_idp_initiated_client_protocol_enum_saml.py delete mode 100644 src/auth0/management/types/connection_options_idpinitiated_saml.py delete mode 100644 src/auth0/management/types/connection_options_instagram.py delete mode 100644 src/auth0/management/types/connection_options_ip.py delete mode 100644 src/auth0/management/types/connection_options_line.py delete mode 100644 src/auth0/management/types/connection_options_linkedin.py delete mode 100644 src/auth0/management/types/connection_options_o_auth_1.py delete mode 100644 src/auth0/management/types/connection_options_o_auth_1_common.py delete mode 100644 src/auth0/management/types/connection_options_o_auth_2.py delete mode 100644 src/auth0/management/types/connection_options_o_auth_2_common.py delete mode 100644 src/auth0/management/types/connection_options_office_365.py delete mode 100644 src/auth0/management/types/connection_options_oidc.py delete mode 100644 src/auth0/management/types/connection_options_oidc_metadata.py delete mode 100644 src/auth0/management/types/connection_options_okta.py delete mode 100644 src/auth0/management/types/connection_options_paypal.py delete mode 100644 src/auth0/management/types/connection_options_ping_federate.py delete mode 100644 src/auth0/management/types/connection_options_planning_center.py delete mode 100644 src/auth0/management/types/connection_options_protocol_enum_twitter.py delete mode 100644 src/auth0/management/types/connection_options_salesforce.py delete mode 100644 src/auth0/management/types/connection_options_salesforce_community.py delete mode 100644 src/auth0/management/types/connection_options_saml.py delete mode 100644 src/auth0/management/types/connection_options_scope_github.py delete mode 100644 src/auth0/management/types/connection_options_scope_twitter.py delete mode 100644 src/auth0/management/types/connection_options_sharepoint.py delete mode 100644 src/auth0/management/types/connection_options_shop.py delete mode 100644 src/auth0/management/types/connection_options_shopify.py delete mode 100644 src/auth0/management/types/connection_options_sms.py delete mode 100644 src/auth0/management/types/connection_options_soundcloud.py delete mode 100644 src/auth0/management/types/connection_options_thirty_seven_signals.py delete mode 100644 src/auth0/management/types/connection_options_twitter.py delete mode 100644 src/auth0/management/types/connection_options_untappd.py delete mode 100644 src/auth0/management/types/connection_options_vkontakte.py delete mode 100644 src/auth0/management/types/connection_options_weibo.py delete mode 100644 src/auth0/management/types/connection_options_windows_live.py delete mode 100644 src/auth0/management/types/connection_options_wordpress.py delete mode 100644 src/auth0/management/types/connection_options_yahoo.py delete mode 100644 src/auth0/management/types/connection_options_yandex.py delete mode 100644 src/auth0/management/types/connection_otp_channel_settings.py delete mode 100644 src/auth0/management/types/connection_otp_settings.py delete mode 100644 src/auth0/management/types/connection_passkey_authentication_method.py delete mode 100644 src/auth0/management/types/connection_passkey_challenge_ui_enum.py delete mode 100644 src/auth0/management/types/connection_passkey_options.py delete mode 100644 src/auth0/management/types/connection_password_authentication_method.py delete mode 100644 src/auth0/management/types/connection_password_complexity_options.py delete mode 100644 src/auth0/management/types/connection_password_dictionary_options.py delete mode 100644 src/auth0/management/types/connection_password_history_options.py delete mode 100644 src/auth0/management/types/connection_password_no_personal_info_options.py delete mode 100644 src/auth0/management/types/connection_password_options.py delete mode 100644 src/auth0/management/types/connection_password_options_complexity.py delete mode 100644 src/auth0/management/types/connection_password_options_dictionary.py delete mode 100644 src/auth0/management/types/connection_password_options_history.py delete mode 100644 src/auth0/management/types/connection_password_options_profile_data.py delete mode 100644 src/auth0/management/types/connection_password_policy_enum.py delete mode 100644 src/auth0/management/types/connection_phone_otp_authentication_method.py delete mode 100644 src/auth0/management/types/connection_ping_federate_base_url.py delete mode 100644 src/auth0/management/types/connection_ping_federate_base_url_ping_federate.py delete mode 100644 src/auth0/management/types/connection_profile.py delete mode 100644 src/auth0/management/types/connection_profile_bitbucket.py delete mode 100644 src/auth0/management/types/connection_profile_config.py delete mode 100644 src/auth0/management/types/connection_profile_cross_app_access_resource_app.py delete mode 100644 src/auth0/management/types/connection_profile_cross_app_access_resource_app_status.py delete mode 100644 src/auth0/management/types/connection_profile_cross_app_access_resource_app_status_allowed_values_enum.py delete mode 100644 src/auth0/management/types/connection_profile_cross_app_access_resource_app_status_default_value_enum.py delete mode 100644 src/auth0/management/types/connection_profile_cross_app_access_resource_app_status_value_enum.py delete mode 100644 src/auth0/management/types/connection_profile_enabled_features.py delete mode 100644 src/auth0/management/types/connection_profile_id.py delete mode 100644 src/auth0/management/types/connection_profile_name.py delete mode 100644 src/auth0/management/types/connection_profile_organization.py delete mode 100644 src/auth0/management/types/connection_profile_organization_assign_membership_on_login_enum.py delete mode 100644 src/auth0/management/types/connection_profile_organization_show_as_button_enum.py delete mode 100644 src/auth0/management/types/connection_profile_provisioning.py delete mode 100644 src/auth0/management/types/connection_profile_provisioning_google_workspace.py delete mode 100644 src/auth0/management/types/connection_profile_provisioning_google_workspace_sync_users.py delete mode 100644 src/auth0/management/types/connection_profile_provisioning_scim.py delete mode 100644 src/auth0/management/types/connection_profile_provisioning_scim_token_default_expiry.py delete mode 100644 src/auth0/management/types/connection_profile_provisioning_scim_token_max_allowed_expiry.py delete mode 100644 src/auth0/management/types/connection_profile_provisioning_scim_token_scope_enum.py delete mode 100644 src/auth0/management/types/connection_profile_provisioning_scim_token_scopes.py delete mode 100644 src/auth0/management/types/connection_profile_provisioning_scim_tokens.py delete mode 100644 src/auth0/management/types/connection_profile_strategy_override.py delete mode 100644 src/auth0/management/types/connection_profile_strategy_overrides.py delete mode 100644 src/auth0/management/types/connection_profile_strategy_overrides_connection_config.py delete mode 100644 src/auth0/management/types/connection_profile_strategy_overrides_enabled_features.py delete mode 100644 src/auth0/management/types/connection_profile_strategy_overrides_provisioning.py delete mode 100644 src/auth0/management/types/connection_profile_template.py delete mode 100644 src/auth0/management/types/connection_profile_template_item.py delete mode 100644 src/auth0/management/types/connection_properties_options.py delete mode 100644 src/auth0/management/types/connection_protocol_binding_enum_saml.py delete mode 100644 src/auth0/management/types/connection_protocol_binding_saml.py delete mode 100644 src/auth0/management/types/connection_provider_enum_sms.py delete mode 100644 src/auth0/management/types/connection_provider_sms.py delete mode 100644 src/auth0/management/types/connection_provisioning_ticket_url.py delete mode 100644 src/auth0/management/types/connection_purposes.py delete mode 100644 src/auth0/management/types/connection_pushed_authorization_request_endpoint.py delete mode 100644 src/auth0/management/types/connection_realm_fallback.py delete mode 100644 src/auth0/management/types/connection_realms.py delete mode 100644 src/auth0/management/types/connection_recipient_url_saml.py delete mode 100644 src/auth0/management/types/connection_registration_endpoint.py delete mode 100644 src/auth0/management/types/connection_request_object_encryption_alg_values_supported.py delete mode 100644 src/auth0/management/types/connection_request_object_encryption_enc_values_supported.py delete mode 100644 src/auth0/management/types/connection_request_object_signing_alg_values_supported.py delete mode 100644 src/auth0/management/types/connection_request_parameter_supported.py delete mode 100644 src/auth0/management/types/connection_request_template_saml.py delete mode 100644 src/auth0/management/types/connection_request_token_urlo_auth_1.py delete mode 100644 src/auth0/management/types/connection_request_uri_parameter_supported.py delete mode 100644 src/auth0/management/types/connection_require_pushed_authorization_requests.py delete mode 100644 src/auth0/management/types/connection_require_request_uri_registration.py delete mode 100644 src/auth0/management/types/connection_requires_username.py delete mode 100644 src/auth0/management/types/connection_response_common.py delete mode 100644 src/auth0/management/types/connection_response_content_ad.py delete mode 100644 src/auth0/management/types/connection_response_content_ad_strategy.py delete mode 100644 src/auth0/management/types/connection_response_content_adfs.py delete mode 100644 src/auth0/management/types/connection_response_content_adfs_strategy.py delete mode 100644 src/auth0/management/types/connection_response_content_amazon.py delete mode 100644 src/auth0/management/types/connection_response_content_amazon_strategy.py delete mode 100644 src/auth0/management/types/connection_response_content_apple.py delete mode 100644 src/auth0/management/types/connection_response_content_apple_strategy.py delete mode 100644 src/auth0/management/types/connection_response_content_auth_0.py delete mode 100644 src/auth0/management/types/connection_response_content_auth_0_oidc.py delete mode 100644 src/auth0/management/types/connection_response_content_auth_0_oidc_strategy.py delete mode 100644 src/auth0/management/types/connection_response_content_auth_0_strategy.py delete mode 100644 src/auth0/management/types/connection_response_content_azure_ad.py delete mode 100644 src/auth0/management/types/connection_response_content_azure_ad_strategy.py delete mode 100644 src/auth0/management/types/connection_response_content_baidu.py delete mode 100644 src/auth0/management/types/connection_response_content_baidu_strategy.py delete mode 100644 src/auth0/management/types/connection_response_content_bitbucket.py delete mode 100644 src/auth0/management/types/connection_response_content_bitbucket_strategy.py delete mode 100644 src/auth0/management/types/connection_response_content_bitly.py delete mode 100644 src/auth0/management/types/connection_response_content_bitly_strategy.py delete mode 100644 src/auth0/management/types/connection_response_content_box.py delete mode 100644 src/auth0/management/types/connection_response_content_box_strategy.py delete mode 100644 src/auth0/management/types/connection_response_content_custom.py delete mode 100644 src/auth0/management/types/connection_response_content_custom_strategy.py delete mode 100644 src/auth0/management/types/connection_response_content_daccount.py delete mode 100644 src/auth0/management/types/connection_response_content_daccount_strategy.py delete mode 100644 src/auth0/management/types/connection_response_content_dropbox.py delete mode 100644 src/auth0/management/types/connection_response_content_dropbox_strategy.py delete mode 100644 src/auth0/management/types/connection_response_content_dwolla.py delete mode 100644 src/auth0/management/types/connection_response_content_dwolla_strategy.py delete mode 100644 src/auth0/management/types/connection_response_content_email.py delete mode 100644 src/auth0/management/types/connection_response_content_email_strategy.py delete mode 100644 src/auth0/management/types/connection_response_content_evernote.py delete mode 100644 src/auth0/management/types/connection_response_content_evernote_sandbox.py delete mode 100644 src/auth0/management/types/connection_response_content_evernote_sandbox_strategy.py delete mode 100644 src/auth0/management/types/connection_response_content_evernote_strategy.py delete mode 100644 src/auth0/management/types/connection_response_content_exact.py delete mode 100644 src/auth0/management/types/connection_response_content_exact_strategy.py delete mode 100644 src/auth0/management/types/connection_response_content_facebook.py delete mode 100644 src/auth0/management/types/connection_response_content_facebook_strategy.py delete mode 100644 src/auth0/management/types/connection_response_content_fitbit.py delete mode 100644 src/auth0/management/types/connection_response_content_fitbit_strategy.py delete mode 100644 src/auth0/management/types/connection_response_content_git_hub.py delete mode 100644 src/auth0/management/types/connection_response_content_git_hub_strategy.py delete mode 100644 src/auth0/management/types/connection_response_content_google_apps.py delete mode 100644 src/auth0/management/types/connection_response_content_google_apps_strategy.py delete mode 100644 src/auth0/management/types/connection_response_content_google_o_auth_2.py delete mode 100644 src/auth0/management/types/connection_response_content_google_o_auth_2_strategy.py delete mode 100644 src/auth0/management/types/connection_response_content_instagram.py delete mode 100644 src/auth0/management/types/connection_response_content_instagram_strategy.py delete mode 100644 src/auth0/management/types/connection_response_content_ip.py delete mode 100644 src/auth0/management/types/connection_response_content_ip_strategy.py delete mode 100644 src/auth0/management/types/connection_response_content_line.py delete mode 100644 src/auth0/management/types/connection_response_content_line_strategy.py delete mode 100644 src/auth0/management/types/connection_response_content_linkedin.py delete mode 100644 src/auth0/management/types/connection_response_content_linkedin_strategy.py delete mode 100644 src/auth0/management/types/connection_response_content_o_auth_1.py delete mode 100644 src/auth0/management/types/connection_response_content_o_auth_1_strategy.py delete mode 100644 src/auth0/management/types/connection_response_content_o_auth_2.py delete mode 100644 src/auth0/management/types/connection_response_content_o_auth_2_strategy.py delete mode 100644 src/auth0/management/types/connection_response_content_office_365.py delete mode 100644 src/auth0/management/types/connection_response_content_office_365_strategy.py delete mode 100644 src/auth0/management/types/connection_response_content_oidc.py delete mode 100644 src/auth0/management/types/connection_response_content_oidc_strategy.py delete mode 100644 src/auth0/management/types/connection_response_content_okta.py delete mode 100644 src/auth0/management/types/connection_response_content_okta_strategy.py delete mode 100644 src/auth0/management/types/connection_response_content_paypal.py delete mode 100644 src/auth0/management/types/connection_response_content_paypal_sandbox.py delete mode 100644 src/auth0/management/types/connection_response_content_paypal_sandbox_strategy.py delete mode 100644 src/auth0/management/types/connection_response_content_paypal_strategy.py delete mode 100644 src/auth0/management/types/connection_response_content_ping_federate.py delete mode 100644 src/auth0/management/types/connection_response_content_ping_federate_strategy.py delete mode 100644 src/auth0/management/types/connection_response_content_planning_center.py delete mode 100644 src/auth0/management/types/connection_response_content_planning_center_strategy.py delete mode 100644 src/auth0/management/types/connection_response_content_salesforce.py delete mode 100644 src/auth0/management/types/connection_response_content_salesforce_community.py delete mode 100644 src/auth0/management/types/connection_response_content_salesforce_community_strategy.py delete mode 100644 src/auth0/management/types/connection_response_content_salesforce_sandbox.py delete mode 100644 src/auth0/management/types/connection_response_content_salesforce_sandbox_strategy.py delete mode 100644 src/auth0/management/types/connection_response_content_salesforce_strategy.py delete mode 100644 src/auth0/management/types/connection_response_content_saml.py delete mode 100644 src/auth0/management/types/connection_response_content_saml_strategy.py delete mode 100644 src/auth0/management/types/connection_response_content_sharepoint.py delete mode 100644 src/auth0/management/types/connection_response_content_sharepoint_strategy.py delete mode 100644 src/auth0/management/types/connection_response_content_shop.py delete mode 100644 src/auth0/management/types/connection_response_content_shop_strategy.py delete mode 100644 src/auth0/management/types/connection_response_content_shopify.py delete mode 100644 src/auth0/management/types/connection_response_content_shopify_strategy.py delete mode 100644 src/auth0/management/types/connection_response_content_sms.py delete mode 100644 src/auth0/management/types/connection_response_content_sms_strategy.py delete mode 100644 src/auth0/management/types/connection_response_content_soundcloud.py delete mode 100644 src/auth0/management/types/connection_response_content_soundcloud_strategy.py delete mode 100644 src/auth0/management/types/connection_response_content_thirty_seven_signals.py delete mode 100644 src/auth0/management/types/connection_response_content_thirty_seven_signals_strategy.py delete mode 100644 src/auth0/management/types/connection_response_content_twitter.py delete mode 100644 src/auth0/management/types/connection_response_content_twitter_strategy.py delete mode 100644 src/auth0/management/types/connection_response_content_untappd.py delete mode 100644 src/auth0/management/types/connection_response_content_untappd_strategy.py delete mode 100644 src/auth0/management/types/connection_response_content_vkontakte.py delete mode 100644 src/auth0/management/types/connection_response_content_vkontakte_strategy.py delete mode 100644 src/auth0/management/types/connection_response_content_weibo.py delete mode 100644 src/auth0/management/types/connection_response_content_weibo_strategy.py delete mode 100644 src/auth0/management/types/connection_response_content_windows_live.py delete mode 100644 src/auth0/management/types/connection_response_content_windows_live_strategy.py delete mode 100644 src/auth0/management/types/connection_response_content_wordpress.py delete mode 100644 src/auth0/management/types/connection_response_content_wordpress_strategy.py delete mode 100644 src/auth0/management/types/connection_response_content_yahoo.py delete mode 100644 src/auth0/management/types/connection_response_content_yahoo_strategy.py delete mode 100644 src/auth0/management/types/connection_response_content_yandex.py delete mode 100644 src/auth0/management/types/connection_response_content_yandex_strategy.py delete mode 100644 src/auth0/management/types/connection_response_modes_supported.py delete mode 100644 src/auth0/management/types/connection_response_types_supported.py delete mode 100644 src/auth0/management/types/connection_scope_amazon.py delete mode 100644 src/auth0/management/types/connection_scope_array.py delete mode 100644 src/auth0/management/types/connection_scope_array_facebook.py delete mode 100644 src/auth0/management/types/connection_scope_array_windows_live.py delete mode 100644 src/auth0/management/types/connection_scope_azure_ad.py delete mode 100644 src/auth0/management/types/connection_scope_facebook.py delete mode 100644 src/auth0/management/types/connection_scope_google_apps.py delete mode 100644 src/auth0/management/types/connection_scope_google_o_auth_2.py delete mode 100644 src/auth0/management/types/connection_scope_item.py delete mode 100644 src/auth0/management/types/connection_scope_item_google_apps.py delete mode 100644 src/auth0/management/types/connection_scope_linkedin.py delete mode 100644 src/auth0/management/types/connection_scope_o_auth_2.py delete mode 100644 src/auth0/management/types/connection_scope_oidc.py delete mode 100644 src/auth0/management/types/connection_scope_paypal.py delete mode 100644 src/auth0/management/types/connection_scope_salesforce.py delete mode 100644 src/auth0/management/types/connection_scopes_supported.py delete mode 100644 src/auth0/management/types/connection_scripts_o_auth_1.py delete mode 100644 src/auth0/management/types/connection_scripts_o_auth_2.py delete mode 100644 src/auth0/management/types/connection_send_back_channel_nonce.py delete mode 100644 src/auth0/management/types/connection_service_documentation.py delete mode 100644 src/auth0/management/types/connection_set_user_root_attributes_enum.py delete mode 100644 src/auth0/management/types/connection_sha_1_thumbprint.py delete mode 100644 src/auth0/management/types/connection_should_trust_email_verified_connection_enum.py delete mode 100644 src/auth0/management/types/connection_show_as_button.py delete mode 100644 src/auth0/management/types/connection_sign_in_endpoint_ad.py delete mode 100644 src/auth0/management/types/connection_sign_in_endpoint_adfs.py delete mode 100644 src/auth0/management/types/connection_sign_in_endpoint_saml.py delete mode 100644 src/auth0/management/types/connection_sign_out_endpoint_saml.py delete mode 100644 src/auth0/management/types/connection_sign_saml_request_saml.py delete mode 100644 src/auth0/management/types/connection_signature_algorithm_enum_saml.py delete mode 100644 src/auth0/management/types/connection_signature_algorithm_saml.py delete mode 100644 src/auth0/management/types/connection_signature_method_o_auth_1.py delete mode 100644 src/auth0/management/types/connection_signing_cert_saml.py delete mode 100644 src/auth0/management/types/connection_signing_certificate_der_saml.py delete mode 100644 src/auth0/management/types/connection_signing_certificate_pem_ping_federate.py delete mode 100644 src/auth0/management/types/connection_signing_certificate_pem_saml.py delete mode 100644 src/auth0/management/types/connection_signing_key_saml.py delete mode 100644 src/auth0/management/types/connection_signup_behavior_enum.py delete mode 100644 src/auth0/management/types/connection_strategy_enum.py delete mode 100644 src/auth0/management/types/connection_strategy_version_enum_linkedin.py delete mode 100644 src/auth0/management/types/connection_strategy_version_enum_windows_live.py delete mode 100644 src/auth0/management/types/connection_subject_types_supported.py delete mode 100644 src/auth0/management/types/connection_template_sms.py delete mode 100644 src/auth0/management/types/connection_template_syntax_enum_sms.py delete mode 100644 src/auth0/management/types/connection_tenant_domain.py delete mode 100644 src/auth0/management/types/connection_tenant_domain_ad.py delete mode 100644 src/auth0/management/types/connection_tenant_domain_azure_ad_one.py delete mode 100644 src/auth0/management/types/connection_tenant_domain_google_apps.py delete mode 100644 src/auth0/management/types/connection_tenant_domain_saml.py delete mode 100644 src/auth0/management/types/connection_tenant_id_azure_ad.py delete mode 100644 src/auth0/management/types/connection_thumbprints.py delete mode 100644 src/auth0/management/types/connection_thumbprints_ad.py delete mode 100644 src/auth0/management/types/connection_thumbprints_saml.py delete mode 100644 src/auth0/management/types/connection_thumbprints_sha_384.py delete mode 100644 src/auth0/management/types/connection_thumbprints_sha_384_ad.py delete mode 100644 src/auth0/management/types/connection_thumbprints_sha_384_saml.py delete mode 100644 src/auth0/management/types/connection_token_endpoint.py delete mode 100644 src/auth0/management/types/connection_token_endpoint_auth_method_enum.py delete mode 100644 src/auth0/management/types/connection_token_endpoint_auth_methods_supported.py delete mode 100644 src/auth0/management/types/connection_token_endpoint_auth_signing_alg_enum.py delete mode 100644 src/auth0/management/types/connection_token_endpoint_auth_signing_alg_values_supported.py delete mode 100644 src/auth0/management/types/connection_token_endpoint_jwtca_aud_format_enum_oidc.py delete mode 100644 src/auth0/management/types/connection_totp_email.py delete mode 100644 src/auth0/management/types/connection_totp_length_email.py delete mode 100644 src/auth0/management/types/connection_totp_length_passwordless.py delete mode 100644 src/auth0/management/types/connection_totp_length_sms.py delete mode 100644 src/auth0/management/types/connection_totp_sms.py delete mode 100644 src/auth0/management/types/connection_totp_time_step_email.py delete mode 100644 src/auth0/management/types/connection_totp_time_step_passwordless.py delete mode 100644 src/auth0/management/types/connection_totp_time_step_sms.py delete mode 100644 src/auth0/management/types/connection_twilio_sid_sms.py delete mode 100644 src/auth0/management/types/connection_twilio_token_sms.py delete mode 100644 src/auth0/management/types/connection_type_enum_oidc.py delete mode 100644 src/auth0/management/types/connection_type_enum_okta.py delete mode 100644 src/auth0/management/types/connection_ui_locales_supported.py delete mode 100644 src/auth0/management/types/connection_upstream_additional_properties.py delete mode 100644 src/auth0/management/types/connection_upstream_alias.py delete mode 100644 src/auth0/management/types/connection_upstream_alias_enum.py delete mode 100644 src/auth0/management/types/connection_upstream_params.py delete mode 100644 src/auth0/management/types/connection_upstream_params_facebook.py delete mode 100644 src/auth0/management/types/connection_upstream_value.py delete mode 100644 src/auth0/management/types/connection_use_common_endpoint_azure_ad.py delete mode 100644 src/auth0/management/types/connection_use_oauth_spec_scope.py delete mode 100644 src/auth0/management/types/connection_user_authorization_urlo_auth_1.py delete mode 100644 src/auth0/management/types/connection_user_id_attribute_saml.py delete mode 100644 src/auth0/management/types/connection_userid_attribute_azure_ad.py delete mode 100644 src/auth0/management/types/connection_userid_attribute_enum_azure_ad.py delete mode 100644 src/auth0/management/types/connection_userinfo_encryption_alg_values_supported.py delete mode 100644 src/auth0/management/types/connection_userinfo_encryption_enc_values_supported.py delete mode 100644 src/auth0/management/types/connection_userinfo_endpoint.py delete mode 100644 src/auth0/management/types/connection_userinfo_signing_alg_values_supported.py delete mode 100644 src/auth0/management/types/connection_username_validation_options.py delete mode 100644 src/auth0/management/types/connection_validation_options.py delete mode 100644 src/auth0/management/types/connection_waad_protocol.py delete mode 100644 src/auth0/management/types/connection_waad_protocol_enum_azure_ad.py delete mode 100644 src/auth0/management/types/connections_discovery_url.py delete mode 100644 src/auth0/management/types/connections_metadata.py delete mode 100644 src/auth0/management/types/connections_oidc_metadata.py delete mode 100644 src/auth0/management/types/consent_signing_key.py delete mode 100644 src/auth0/management/types/content_security_policy_config.py delete mode 100644 src/auth0/management/types/create_action_module_response_content.py delete mode 100644 src/auth0/management/types/create_action_module_version_response_content.py delete mode 100644 src/auth0/management/types/create_action_response_content.py delete mode 100644 src/auth0/management/types/create_anonymous_sessions.py delete mode 100644 src/auth0/management/types/create_branding_phone_provider_response_content.py delete mode 100644 src/auth0/management/types/create_branding_theme_response_content.py delete mode 100644 src/auth0/management/types/create_client_authentication_method_self_signed_tls_client_auth.py delete mode 100644 src/auth0/management/types/create_client_authentication_method_self_signed_tls_client_auth_credentials.py delete mode 100644 src/auth0/management/types/create_client_grant_response_content.py delete mode 100644 src/auth0/management/types/create_client_response_content.py delete mode 100644 src/auth0/management/types/create_connection_common.py delete mode 100644 src/auth0/management/types/create_connection_profile_response_content.py delete mode 100644 src/auth0/management/types/create_connection_request_content_ad.py delete mode 100644 src/auth0/management/types/create_connection_request_content_ad_strategy.py delete mode 100644 src/auth0/management/types/create_connection_request_content_adfs.py delete mode 100644 src/auth0/management/types/create_connection_request_content_adfs_strategy.py delete mode 100644 src/auth0/management/types/create_connection_request_content_amazon.py delete mode 100644 src/auth0/management/types/create_connection_request_content_amazon_strategy.py delete mode 100644 src/auth0/management/types/create_connection_request_content_apple.py delete mode 100644 src/auth0/management/types/create_connection_request_content_apple_strategy.py delete mode 100644 src/auth0/management/types/create_connection_request_content_auth_0.py delete mode 100644 src/auth0/management/types/create_connection_request_content_auth_0_oidc.py delete mode 100644 src/auth0/management/types/create_connection_request_content_auth_0_oidc_strategy.py delete mode 100644 src/auth0/management/types/create_connection_request_content_auth_0_strategy.py delete mode 100644 src/auth0/management/types/create_connection_request_content_azure_ad.py delete mode 100644 src/auth0/management/types/create_connection_request_content_azure_ad_strategy.py delete mode 100644 src/auth0/management/types/create_connection_request_content_baidu.py delete mode 100644 src/auth0/management/types/create_connection_request_content_baidu_strategy.py delete mode 100644 src/auth0/management/types/create_connection_request_content_bitbucket.py delete mode 100644 src/auth0/management/types/create_connection_request_content_bitbucket_strategy.py delete mode 100644 src/auth0/management/types/create_connection_request_content_bitly.py delete mode 100644 src/auth0/management/types/create_connection_request_content_bitly_strategy.py delete mode 100644 src/auth0/management/types/create_connection_request_content_box.py delete mode 100644 src/auth0/management/types/create_connection_request_content_box_strategy.py delete mode 100644 src/auth0/management/types/create_connection_request_content_custom.py delete mode 100644 src/auth0/management/types/create_connection_request_content_custom_strategy.py delete mode 100644 src/auth0/management/types/create_connection_request_content_daccount.py delete mode 100644 src/auth0/management/types/create_connection_request_content_daccount_strategy.py delete mode 100644 src/auth0/management/types/create_connection_request_content_dropbox.py delete mode 100644 src/auth0/management/types/create_connection_request_content_dropbox_strategy.py delete mode 100644 src/auth0/management/types/create_connection_request_content_dwolla.py delete mode 100644 src/auth0/management/types/create_connection_request_content_dwolla_strategy.py delete mode 100644 src/auth0/management/types/create_connection_request_content_email.py delete mode 100644 src/auth0/management/types/create_connection_request_content_email_strategy.py delete mode 100644 src/auth0/management/types/create_connection_request_content_evernote.py delete mode 100644 src/auth0/management/types/create_connection_request_content_evernote_sandbox.py delete mode 100644 src/auth0/management/types/create_connection_request_content_evernote_sandbox_strategy.py delete mode 100644 src/auth0/management/types/create_connection_request_content_evernote_strategy.py delete mode 100644 src/auth0/management/types/create_connection_request_content_exact.py delete mode 100644 src/auth0/management/types/create_connection_request_content_exact_strategy.py delete mode 100644 src/auth0/management/types/create_connection_request_content_facebook.py delete mode 100644 src/auth0/management/types/create_connection_request_content_facebook_strategy.py delete mode 100644 src/auth0/management/types/create_connection_request_content_fitbit.py delete mode 100644 src/auth0/management/types/create_connection_request_content_fitbit_strategy.py delete mode 100644 src/auth0/management/types/create_connection_request_content_git_hub.py delete mode 100644 src/auth0/management/types/create_connection_request_content_git_hub_strategy.py delete mode 100644 src/auth0/management/types/create_connection_request_content_google_apps.py delete mode 100644 src/auth0/management/types/create_connection_request_content_google_apps_strategy.py delete mode 100644 src/auth0/management/types/create_connection_request_content_google_o_auth_2.py delete mode 100644 src/auth0/management/types/create_connection_request_content_google_o_auth_2_strategy.py delete mode 100644 src/auth0/management/types/create_connection_request_content_instagram.py delete mode 100644 src/auth0/management/types/create_connection_request_content_instagram_strategy.py delete mode 100644 src/auth0/management/types/create_connection_request_content_ip.py delete mode 100644 src/auth0/management/types/create_connection_request_content_ip_strategy.py delete mode 100644 src/auth0/management/types/create_connection_request_content_line.py delete mode 100644 src/auth0/management/types/create_connection_request_content_line_strategy.py delete mode 100644 src/auth0/management/types/create_connection_request_content_linkedin.py delete mode 100644 src/auth0/management/types/create_connection_request_content_linkedin_strategy.py delete mode 100644 src/auth0/management/types/create_connection_request_content_o_auth_1.py delete mode 100644 src/auth0/management/types/create_connection_request_content_o_auth_1_strategy.py delete mode 100644 src/auth0/management/types/create_connection_request_content_o_auth_2.py delete mode 100644 src/auth0/management/types/create_connection_request_content_o_auth_2_strategy.py delete mode 100644 src/auth0/management/types/create_connection_request_content_office_365.py delete mode 100644 src/auth0/management/types/create_connection_request_content_office_365_strategy.py delete mode 100644 src/auth0/management/types/create_connection_request_content_oidc.py delete mode 100644 src/auth0/management/types/create_connection_request_content_oidc_strategy.py delete mode 100644 src/auth0/management/types/create_connection_request_content_okta.py delete mode 100644 src/auth0/management/types/create_connection_request_content_okta_strategy.py delete mode 100644 src/auth0/management/types/create_connection_request_content_paypal.py delete mode 100644 src/auth0/management/types/create_connection_request_content_paypal_sandbox.py delete mode 100644 src/auth0/management/types/create_connection_request_content_paypal_sandbox_strategy.py delete mode 100644 src/auth0/management/types/create_connection_request_content_paypal_strategy.py delete mode 100644 src/auth0/management/types/create_connection_request_content_ping_federate.py delete mode 100644 src/auth0/management/types/create_connection_request_content_ping_federate_strategy.py delete mode 100644 src/auth0/management/types/create_connection_request_content_planning_center.py delete mode 100644 src/auth0/management/types/create_connection_request_content_planning_center_strategy.py delete mode 100644 src/auth0/management/types/create_connection_request_content_salesforce.py delete mode 100644 src/auth0/management/types/create_connection_request_content_salesforce_community.py delete mode 100644 src/auth0/management/types/create_connection_request_content_salesforce_community_strategy.py delete mode 100644 src/auth0/management/types/create_connection_request_content_salesforce_sandbox.py delete mode 100644 src/auth0/management/types/create_connection_request_content_salesforce_sandbox_strategy.py delete mode 100644 src/auth0/management/types/create_connection_request_content_salesforce_strategy.py delete mode 100644 src/auth0/management/types/create_connection_request_content_saml.py delete mode 100644 src/auth0/management/types/create_connection_request_content_saml_strategy.py delete mode 100644 src/auth0/management/types/create_connection_request_content_sharepoint.py delete mode 100644 src/auth0/management/types/create_connection_request_content_sharepoint_strategy.py delete mode 100644 src/auth0/management/types/create_connection_request_content_shop.py delete mode 100644 src/auth0/management/types/create_connection_request_content_shop_strategy.py delete mode 100644 src/auth0/management/types/create_connection_request_content_shopify.py delete mode 100644 src/auth0/management/types/create_connection_request_content_shopify_strategy.py delete mode 100644 src/auth0/management/types/create_connection_request_content_sms.py delete mode 100644 src/auth0/management/types/create_connection_request_content_sms_strategy.py delete mode 100644 src/auth0/management/types/create_connection_request_content_soundcloud.py delete mode 100644 src/auth0/management/types/create_connection_request_content_soundcloud_strategy.py delete mode 100644 src/auth0/management/types/create_connection_request_content_thirty_seven_signals.py delete mode 100644 src/auth0/management/types/create_connection_request_content_thirty_seven_signals_strategy.py delete mode 100644 src/auth0/management/types/create_connection_request_content_twitter.py delete mode 100644 src/auth0/management/types/create_connection_request_content_twitter_strategy.py delete mode 100644 src/auth0/management/types/create_connection_request_content_untappd.py delete mode 100644 src/auth0/management/types/create_connection_request_content_untappd_strategy.py delete mode 100644 src/auth0/management/types/create_connection_request_content_vkontakte.py delete mode 100644 src/auth0/management/types/create_connection_request_content_vkontakte_strategy.py delete mode 100644 src/auth0/management/types/create_connection_request_content_weibo.py delete mode 100644 src/auth0/management/types/create_connection_request_content_weibo_strategy.py delete mode 100644 src/auth0/management/types/create_connection_request_content_windows_live.py delete mode 100644 src/auth0/management/types/create_connection_request_content_windows_live_strategy.py delete mode 100644 src/auth0/management/types/create_connection_request_content_wordpress.py delete mode 100644 src/auth0/management/types/create_connection_request_content_wordpress_strategy.py delete mode 100644 src/auth0/management/types/create_connection_request_content_yahoo.py delete mode 100644 src/auth0/management/types/create_connection_request_content_yahoo_strategy.py delete mode 100644 src/auth0/management/types/create_connection_request_content_yandex.py delete mode 100644 src/auth0/management/types/create_connection_request_content_yandex_strategy.py delete mode 100644 src/auth0/management/types/create_connection_response_content.py delete mode 100644 src/auth0/management/types/create_cross_app_access_resource_app.py delete mode 100644 src/auth0/management/types/create_custom_domain_response_content.py delete mode 100644 src/auth0/management/types/create_directory_provisioning_request_content.py delete mode 100644 src/auth0/management/types/create_directory_provisioning_response_content.py delete mode 100644 src/auth0/management/types/create_directory_synchronization_response_content.py delete mode 100644 src/auth0/management/types/create_email_provider_response_content.py delete mode 100644 src/auth0/management/types/create_email_template_response_content.py delete mode 100644 src/auth0/management/types/create_encryption_key_public_wrapping_response_content.py delete mode 100644 src/auth0/management/types/create_encryption_key_response_content.py delete mode 100644 src/auth0/management/types/create_encryption_key_type.py delete mode 100644 src/auth0/management/types/create_event_stream_action_request_content.py delete mode 100644 src/auth0/management/types/create_event_stream_event_bridge_request_content.py delete mode 100644 src/auth0/management/types/create_event_stream_redelivery_response_content.py delete mode 100644 src/auth0/management/types/create_event_stream_response_content.py delete mode 100644 src/auth0/management/types/create_event_stream_test_event_response_content.py delete mode 100644 src/auth0/management/types/create_event_stream_web_hook_request_content.py delete mode 100644 src/auth0/management/types/create_experiment_response_content.py delete mode 100644 src/auth0/management/types/create_export_users_fields.py delete mode 100644 src/auth0/management/types/create_export_users_response_content.py delete mode 100644 src/auth0/management/types/create_feature_flag_parameters.py delete mode 100644 src/auth0/management/types/create_feature_flag_response_content.py delete mode 100644 src/auth0/management/types/create_flow_response_content.py delete mode 100644 src/auth0/management/types/create_flows_vault_connection_activecampaign.py delete mode 100644 src/auth0/management/types/create_flows_vault_connection_activecampaign_api_key.py delete mode 100644 src/auth0/management/types/create_flows_vault_connection_activecampaign_uninitialized.py delete mode 100644 src/auth0/management/types/create_flows_vault_connection_airtable.py delete mode 100644 src/auth0/management/types/create_flows_vault_connection_airtable_api_key.py delete mode 100644 src/auth0/management/types/create_flows_vault_connection_airtable_uninitialized.py delete mode 100644 src/auth0/management/types/create_flows_vault_connection_auth_0.py delete mode 100644 src/auth0/management/types/create_flows_vault_connection_auth_0_oauth_app.py delete mode 100644 src/auth0/management/types/create_flows_vault_connection_auth_0_uninitialized.py delete mode 100644 src/auth0/management/types/create_flows_vault_connection_bigquery.py delete mode 100644 src/auth0/management/types/create_flows_vault_connection_bigquery_jwt.py delete mode 100644 src/auth0/management/types/create_flows_vault_connection_bigquery_uninitialized.py delete mode 100644 src/auth0/management/types/create_flows_vault_connection_clearbit.py delete mode 100644 src/auth0/management/types/create_flows_vault_connection_clearbit_api_key.py delete mode 100644 src/auth0/management/types/create_flows_vault_connection_clearbit_uninitialized.py delete mode 100644 src/auth0/management/types/create_flows_vault_connection_docusign.py delete mode 100644 src/auth0/management/types/create_flows_vault_connection_docusign_oauth_code.py delete mode 100644 src/auth0/management/types/create_flows_vault_connection_docusign_uninitialized.py delete mode 100644 src/auth0/management/types/create_flows_vault_connection_google_sheets.py delete mode 100644 src/auth0/management/types/create_flows_vault_connection_google_sheets_oauth_code.py delete mode 100644 src/auth0/management/types/create_flows_vault_connection_google_sheets_uninitialized.py delete mode 100644 src/auth0/management/types/create_flows_vault_connection_http.py delete mode 100644 src/auth0/management/types/create_flows_vault_connection_http_api_key.py delete mode 100644 src/auth0/management/types/create_flows_vault_connection_http_basic_auth.py delete mode 100644 src/auth0/management/types/create_flows_vault_connection_http_bearer.py delete mode 100644 src/auth0/management/types/create_flows_vault_connection_http_oauth_client_credentials.py delete mode 100644 src/auth0/management/types/create_flows_vault_connection_http_uninitialized.py delete mode 100644 src/auth0/management/types/create_flows_vault_connection_hubspot.py delete mode 100644 src/auth0/management/types/create_flows_vault_connection_hubspot_api_key.py delete mode 100644 src/auth0/management/types/create_flows_vault_connection_hubspot_oauth_code.py delete mode 100644 src/auth0/management/types/create_flows_vault_connection_hubspot_uninitialized.py delete mode 100644 src/auth0/management/types/create_flows_vault_connection_jwt.py delete mode 100644 src/auth0/management/types/create_flows_vault_connection_jwt_jwt.py delete mode 100644 src/auth0/management/types/create_flows_vault_connection_jwt_uninitialized.py delete mode 100644 src/auth0/management/types/create_flows_vault_connection_mailchimp.py delete mode 100644 src/auth0/management/types/create_flows_vault_connection_mailchimp_api_key.py delete mode 100644 src/auth0/management/types/create_flows_vault_connection_mailchimp_oauth_code.py delete mode 100644 src/auth0/management/types/create_flows_vault_connection_mailchimp_uninitialized.py delete mode 100644 src/auth0/management/types/create_flows_vault_connection_mailjet.py delete mode 100644 src/auth0/management/types/create_flows_vault_connection_mailjet_api_key.py delete mode 100644 src/auth0/management/types/create_flows_vault_connection_mailjet_uninitialized.py delete mode 100644 src/auth0/management/types/create_flows_vault_connection_pipedrive.py delete mode 100644 src/auth0/management/types/create_flows_vault_connection_pipedrive_oauth_code.py delete mode 100644 src/auth0/management/types/create_flows_vault_connection_pipedrive_token.py delete mode 100644 src/auth0/management/types/create_flows_vault_connection_pipedrive_uninitialized.py delete mode 100644 src/auth0/management/types/create_flows_vault_connection_request_content.py delete mode 100644 src/auth0/management/types/create_flows_vault_connection_response_content.py delete mode 100644 src/auth0/management/types/create_flows_vault_connection_salesforce.py delete mode 100644 src/auth0/management/types/create_flows_vault_connection_salesforce_oauth_code.py delete mode 100644 src/auth0/management/types/create_flows_vault_connection_salesforce_uninitialized.py delete mode 100644 src/auth0/management/types/create_flows_vault_connection_sendgrid.py delete mode 100644 src/auth0/management/types/create_flows_vault_connection_sendgrid_api_key.py delete mode 100644 src/auth0/management/types/create_flows_vault_connection_sendgrid_uninitialized.py delete mode 100644 src/auth0/management/types/create_flows_vault_connection_slack.py delete mode 100644 src/auth0/management/types/create_flows_vault_connection_slack_oauth_code.py delete mode 100644 src/auth0/management/types/create_flows_vault_connection_slack_uninitialized.py delete mode 100644 src/auth0/management/types/create_flows_vault_connection_slack_webhook.py delete mode 100644 src/auth0/management/types/create_flows_vault_connection_stripe.py delete mode 100644 src/auth0/management/types/create_flows_vault_connection_stripe_key_pair.py delete mode 100644 src/auth0/management/types/create_flows_vault_connection_stripe_oauth_code.py delete mode 100644 src/auth0/management/types/create_flows_vault_connection_stripe_uninitialized.py delete mode 100644 src/auth0/management/types/create_flows_vault_connection_telegram.py delete mode 100644 src/auth0/management/types/create_flows_vault_connection_telegram_token.py delete mode 100644 src/auth0/management/types/create_flows_vault_connection_telegram_uninitialized.py delete mode 100644 src/auth0/management/types/create_flows_vault_connection_twilio.py delete mode 100644 src/auth0/management/types/create_flows_vault_connection_twilio_api_key.py delete mode 100644 src/auth0/management/types/create_flows_vault_connection_twilio_uninitialized.py delete mode 100644 src/auth0/management/types/create_flows_vault_connection_whatsapp.py delete mode 100644 src/auth0/management/types/create_flows_vault_connection_whatsapp_token.py delete mode 100644 src/auth0/management/types/create_flows_vault_connection_whatsapp_uninitialized.py delete mode 100644 src/auth0/management/types/create_flows_vault_connection_zapier.py delete mode 100644 src/auth0/management/types/create_flows_vault_connection_zapier_uninitialized.py delete mode 100644 src/auth0/management/types/create_flows_vault_connection_zapier_webhook.py delete mode 100644 src/auth0/management/types/create_form_response_content.py delete mode 100644 src/auth0/management/types/create_guardian_enrollment_ticket_response_content.py delete mode 100644 src/auth0/management/types/create_hook_response_content.py delete mode 100644 src/auth0/management/types/create_hook_secret_request_content.py delete mode 100644 src/auth0/management/types/create_identity_assertion_authorization_grant.py delete mode 100644 src/auth0/management/types/create_import_users_response_content.py delete mode 100644 src/auth0/management/types/create_keys_network_acls_response_content.py delete mode 100644 src/auth0/management/types/create_log_stream_datadog_request_body.py delete mode 100644 src/auth0/management/types/create_log_stream_event_bridge_request_body.py delete mode 100644 src/auth0/management/types/create_log_stream_event_grid_request_body.py delete mode 100644 src/auth0/management/types/create_log_stream_http_request_body.py delete mode 100644 src/auth0/management/types/create_log_stream_mixpanel_request_body.py delete mode 100644 src/auth0/management/types/create_log_stream_request_content.py delete mode 100644 src/auth0/management/types/create_log_stream_response_content.py delete mode 100644 src/auth0/management/types/create_log_stream_segment_request_body.py delete mode 100644 src/auth0/management/types/create_log_stream_splunk_request_body.py delete mode 100644 src/auth0/management/types/create_log_stream_sumo_request_body.py delete mode 100644 src/auth0/management/types/create_organization_all_connection_response_content.py delete mode 100644 src/auth0/management/types/create_organization_client_request_item.py delete mode 100644 src/auth0/management/types/create_organization_clients_response_content.py delete mode 100644 src/auth0/management/types/create_organization_discovery_domain_response_content.py delete mode 100644 src/auth0/management/types/create_organization_invitation_response_content.py delete mode 100644 src/auth0/management/types/create_organization_response_content.py delete mode 100644 src/auth0/management/types/create_phone_provider_send_test_response_content.py delete mode 100644 src/auth0/management/types/create_phone_template_response_content.py delete mode 100644 src/auth0/management/types/create_phone_template_test_notification_response_content.py delete mode 100644 src/auth0/management/types/create_public_key_device_credential_response_content.py delete mode 100644 src/auth0/management/types/create_rate_limit_policy_response_content.py delete mode 100644 src/auth0/management/types/create_resource_server_response_content.py delete mode 100644 src/auth0/management/types/create_role_response_content.py delete mode 100644 src/auth0/management/types/create_rule_response_content.py delete mode 100644 src/auth0/management/types/create_scim_configuration_request_content.py delete mode 100644 src/auth0/management/types/create_scim_configuration_response_content.py delete mode 100644 src/auth0/management/types/create_scim_token_response_content.py delete mode 100644 src/auth0/management/types/create_segment_response_content.py delete mode 100644 src/auth0/management/types/create_self_service_profile_response_content.py delete mode 100644 src/auth0/management/types/create_self_service_profile_sso_ticket_response_content.py delete mode 100644 src/auth0/management/types/create_token_exchange_profile_response_content.py delete mode 100644 src/auth0/management/types/create_token_quota.py delete mode 100644 src/auth0/management/types/create_user_attribute_profile_response_content.py delete mode 100644 src/auth0/management/types/create_user_authentication_method_response_content.py delete mode 100644 src/auth0/management/types/create_user_response_content.py delete mode 100644 src/auth0/management/types/create_variation_response_content.py delete mode 100644 src/auth0/management/types/create_verifiable_credential_template_response_content.py delete mode 100644 src/auth0/management/types/create_verification_email_response_content.py delete mode 100644 src/auth0/management/types/created_authentication_method_type_enum.py delete mode 100644 src/auth0/management/types/created_user_authentication_method_type_enum.py delete mode 100644 src/auth0/management/types/credential_device_type_enum.py delete mode 100644 src/auth0/management/types/credential_id.py delete mode 100644 src/auth0/management/types/cross_app_access_requesting_app.py delete mode 100644 src/auth0/management/types/cross_app_access_resource_app.py delete mode 100644 src/auth0/management/types/cross_app_access_resource_app_status_enum.py delete mode 100644 src/auth0/management/types/csp_directives.py delete mode 100644 src/auth0/management/types/csp_flag.py delete mode 100644 src/auth0/management/types/csp_flags.py delete mode 100644 src/auth0/management/types/csp_policies.py delete mode 100644 src/auth0/management/types/csp_policy.py delete mode 100644 src/auth0/management/types/csp_policy_mode.py delete mode 100644 src/auth0/management/types/csp_policy_reporting.py delete mode 100644 src/auth0/management/types/csp_report_to.py delete mode 100644 src/auth0/management/types/csp_report_to_endpoint.py delete mode 100644 src/auth0/management/types/csp_report_to_endpoints.py delete mode 100644 src/auth0/management/types/csp_reporting_endpoints.py delete mode 100644 src/auth0/management/types/csp_reporting_infrastructure.py delete mode 100644 src/auth0/management/types/custom_domain.py delete mode 100644 src/auth0/management/types/custom_domain_custom_client_ip_header.py delete mode 100644 src/auth0/management/types/custom_domain_custom_client_ip_header_enum.py delete mode 100644 src/auth0/management/types/custom_domain_provisioning_type_enum.py delete mode 100644 src/auth0/management/types/custom_domain_status_filter_enum.py delete mode 100644 src/auth0/management/types/custom_domain_tls_policy_enum.py delete mode 100644 src/auth0/management/types/custom_domain_type_enum.py delete mode 100644 src/auth0/management/types/custom_domain_verification_method_enum.py delete mode 100644 src/auth0/management/types/custom_provider_configuration.py delete mode 100644 src/auth0/management/types/custom_provider_delivery_method_enum.py delete mode 100644 src/auth0/management/types/custom_signing_key_algorithm_enum.py delete mode 100644 src/auth0/management/types/custom_signing_key_curve_enum.py delete mode 100644 src/auth0/management/types/custom_signing_key_jwk.py delete mode 100644 src/auth0/management/types/custom_signing_key_operation_enum.py delete mode 100644 src/auth0/management/types/custom_signing_key_type_enum.py delete mode 100644 src/auth0/management/types/custom_signing_key_use_enum.py delete mode 100644 src/auth0/management/types/daily_stats.py delete mode 100644 src/auth0/management/types/default_config_enum.py delete mode 100644 src/auth0/management/types/default_method_email_identifier_enum.py delete mode 100644 src/auth0/management/types/default_method_phone_number_identifier_enum.py delete mode 100644 src/auth0/management/types/default_token_quota.py delete mode 100644 src/auth0/management/types/delete_hook_secret_request_content.py delete mode 100644 src/auth0/management/types/delete_user_identity_response_content.py delete mode 100644 src/auth0/management/types/delete_user_identity_response_content_item.py delete mode 100644 src/auth0/management/types/deploy_action_response_content.py delete mode 100644 src/auth0/management/types/deploy_action_version_request_content.py delete mode 100644 src/auth0/management/types/deploy_action_version_response_content.py delete mode 100644 src/auth0/management/types/device_credential.py delete mode 100644 src/auth0/management/types/device_credential_public_key_type_enum.py delete mode 100644 src/auth0/management/types/device_credential_type_enum.py delete mode 100644 src/auth0/management/types/directory_provisioning.py delete mode 100644 src/auth0/management/types/directory_provisioning_mapping_item.py delete mode 100644 src/auth0/management/types/domain_certificate.py delete mode 100644 src/auth0/management/types/domain_certificate_authority_enum.py delete mode 100644 src/auth0/management/types/domain_certificate_status_enum.py delete mode 100644 src/auth0/management/types/domain_metadata.py delete mode 100644 src/auth0/management/types/domain_verification.py delete mode 100644 src/auth0/management/types/domain_verification_method.py delete mode 100644 src/auth0/management/types/domain_verification_method_name_enum.py delete mode 100644 src/auth0/management/types/domain_verification_status_enum.py delete mode 100644 src/auth0/management/types/email_attribute.py delete mode 100644 src/auth0/management/types/email_attribute_identifier.py delete mode 100644 src/auth0/management/types/email_mailgun_region_enum.py delete mode 100644 src/auth0/management/types/email_provider_credentials.py delete mode 100644 src/auth0/management/types/email_provider_credentials_schema.py delete mode 100644 src/auth0/management/types/email_provider_credentials_schema_access_key_id.py delete mode 100644 src/auth0/management/types/email_provider_credentials_schema_api_key.py delete mode 100644 src/auth0/management/types/email_provider_credentials_schema_client_id.py delete mode 100644 src/auth0/management/types/email_provider_credentials_schema_connection_string.py delete mode 100644 src/auth0/management/types/email_provider_credentials_schema_smtp_host.py delete mode 100644 src/auth0/management/types/email_provider_credentials_schema_three.py delete mode 100644 src/auth0/management/types/email_provider_credentials_schema_zero.py delete mode 100644 src/auth0/management/types/email_provider_name_enum.py delete mode 100644 src/auth0/management/types/email_provider_settings.py delete mode 100644 src/auth0/management/types/email_smtp_host.py delete mode 100644 src/auth0/management/types/email_spark_post_region_enum.py delete mode 100644 src/auth0/management/types/email_specific_provider_settings_with_additional_properties.py delete mode 100644 src/auth0/management/types/email_template_name_enum.py delete mode 100644 src/auth0/management/types/enabled_features_enum.py delete mode 100644 src/auth0/management/types/encryption_key.py delete mode 100644 src/auth0/management/types/encryption_key_public_wrapping_algorithm.py delete mode 100644 src/auth0/management/types/encryption_key_state.py delete mode 100644 src/auth0/management/types/encryption_key_type.py delete mode 100644 src/auth0/management/types/event_stream_action_configuration.py delete mode 100644 src/auth0/management/types/event_stream_action_destination.py delete mode 100644 src/auth0/management/types/event_stream_action_destination_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_action_response_content.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_a_0_purpose_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_cloud_event.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_cloud_event_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_data.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_0.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_authentication.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_connected_accounts.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_options.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_options_attribute_map.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_options_attribute_map_attributes.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_options_attribute_map_mapping_mode_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_options_connection_settings.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_options_connection_settings_pkce_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_options_dpop_signing_alg_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_options_federated_connections_access_tokens.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_options_id_token_signed_response_algs_item_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_options_oidc_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_options_schema_version_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_options_set_user_root_attributes_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_options_token_endpoint_auth_method_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_options_token_endpoint_auth_signing_alg_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_options_token_endpoint_jwtca_aud_format_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_options_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_options_upstream_params.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_strategy_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_1.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_authentication.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_connected_accounts.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_options.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_options_attribute_map.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_options_attribute_map_attributes.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_options_attribute_map_mapping_mode_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_options_connection_settings.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_options_connection_settings_pkce_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_options_dpop_signing_alg_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_options_federated_connections_access_tokens.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_options_id_token_signed_response_algs_item_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_options_oidc_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_options_schema_version_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_options_set_user_root_attributes_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_options_token_endpoint_auth_method_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_options_token_endpoint_auth_signing_alg_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_options_token_endpoint_jwtca_aud_format_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_options_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_options_upstream_params.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_strategy_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_2.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_2_authentication.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_2_connected_accounts.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_2_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_2_options.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_2_options_assertion_decryption_settings.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_2_options_assertion_decryption_settings_algorithm_profile_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_2_options_digest_algorithm_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_2_options_fields_map.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_2_options_idpinitiated.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_2_options_idpinitiated_client_protocol_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_2_options_oidc_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_2_options_protocol_binding_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_2_options_set_user_root_attributes_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_2_options_signature_algorithm_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_2_options_subject.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_2_options_upstream_params.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_2_strategy_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_3.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_3_authentication.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_3_connected_accounts.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_3_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_3_options.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_3_options_assertion_decryption_settings.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_3_options_assertion_decryption_settings_algorithm_profile_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_3_options_digest_algorithm_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_3_options_idpinitiated.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_3_options_idpinitiated_client_protocol_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_3_options_protocol_binding_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_3_options_set_user_root_attributes_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_3_options_signature_algorithm_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_3_options_subject.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_3_options_upstream_params.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_3_strategy_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_4.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_4_authentication.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_4_connected_accounts.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_4_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_4_options.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_4_options_set_user_root_attributes_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_4_options_should_trust_email_verified_connection_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_4_options_upstream_params.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_4_strategy_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_5.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_5_authentication.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_5_connected_accounts.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_5_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_5_options.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_5_options_set_user_root_attributes_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_5_options_upstream_params.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_5_strategy_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_6.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_6_authentication.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_6_connected_accounts.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_6_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_6_options.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_6_options_federated_connections_access_tokens.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_6_options_set_user_root_attributes_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_6_options_upstream_params.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_6_strategy_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_7.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_7_authentication.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_7_connected_accounts.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_7_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_7_options.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_7_options_federated_connections_access_tokens.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_7_options_identity_api_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_7_options_set_user_root_attributes_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_7_options_should_trust_email_verified_connection_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_7_options_tenant_domain_one.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_7_options_upstream_params.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_7_options_userid_attribute_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_7_options_waad_protocol_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_object_7_strategy_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_authentication.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_connected_accounts.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_options.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_options_attribute_map.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_options_attribute_map_attributes.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_options_attribute_map_mapping_mode_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_options_connection_settings.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_options_connection_settings_pkce_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_options_dpop_signing_alg_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_options_federated_connections_access_tokens.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_options_id_token_signed_response_algs_item_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_options_oidc_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_options_schema_version_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_options_set_user_root_attributes_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_options_token_endpoint_auth_method_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_options_token_endpoint_auth_signing_alg_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_options_token_endpoint_jwtca_aud_format_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_options_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_options_upstream_params.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_strategy_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_authentication.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_connected_accounts.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_options.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_options_attribute_map.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_options_attribute_map_attributes.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_options_attribute_map_mapping_mode_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_options_connection_settings.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_options_connection_settings_pkce_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_options_dpop_signing_alg_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_options_federated_connections_access_tokens.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_options_id_token_signed_response_algs_item_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_options_oidc_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_options_schema_version_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_options_set_user_root_attributes_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_options_token_endpoint_auth_method_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_options_token_endpoint_auth_signing_alg_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_options_token_endpoint_jwtca_aud_format_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_options_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_options_upstream_params.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_strategy_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_2.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_2_authentication.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_2_connected_accounts.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_2_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_2_options.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_2_options_assertion_decryption_settings.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_2_options_assertion_decryption_settings_algorithm_profile_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_2_options_digest_algorithm_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_2_options_fields_map.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_2_options_idpinitiated.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_2_options_idpinitiated_client_protocol_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_2_options_oidc_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_2_options_protocol_binding_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_2_options_set_user_root_attributes_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_2_options_signature_algorithm_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_2_options_subject.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_2_options_upstream_params.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_2_strategy_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_3.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_3_authentication.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_3_connected_accounts.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_3_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_3_options.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_3_options_assertion_decryption_settings.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_3_options_assertion_decryption_settings_algorithm_profile_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_3_options_digest_algorithm_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_3_options_idpinitiated.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_3_options_idpinitiated_client_protocol_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_3_options_protocol_binding_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_3_options_set_user_root_attributes_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_3_options_signature_algorithm_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_3_options_subject.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_3_options_upstream_params.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_3_strategy_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_4.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_4_authentication.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_4_connected_accounts.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_4_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_4_options.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_4_options_set_user_root_attributes_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_4_options_should_trust_email_verified_connection_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_4_options_upstream_params.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_4_strategy_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_5.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_5_authentication.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_5_connected_accounts.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_5_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_5_options.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_5_options_set_user_root_attributes_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_5_options_upstream_params.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_5_strategy_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_6.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_6_authentication.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_6_connected_accounts.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_6_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_6_options.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_6_options_federated_connections_access_tokens.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_6_options_set_user_root_attributes_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_6_options_upstream_params.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_6_strategy_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_7.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_7_authentication.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_7_connected_accounts.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_7_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_7_options.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_7_options_federated_connections_access_tokens.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_7_options_identity_api_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_7_options_set_user_root_attributes_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_7_options_should_trust_email_verified_connection_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_7_options_tenant_domain_one.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_7_options_upstream_params.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_7_options_userid_attribute_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_7_options_waad_protocol_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_7_strategy_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_created_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_cloud_event.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_cloud_event_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_data.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_authentication.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_connected_accounts.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_options.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_options_attribute_map.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_options_attribute_map_attributes.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_options_attribute_map_mapping_mode_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_options_connection_settings.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_options_connection_settings_pkce_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_options_dpop_signing_alg_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_options_federated_connections_access_tokens.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_options_id_token_signed_response_algs_item_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_options_oidc_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_options_schema_version_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_options_set_user_root_attributes_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_options_token_endpoint_auth_method_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_options_token_endpoint_auth_signing_alg_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_options_token_endpoint_jwtca_aud_format_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_options_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_options_upstream_params.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_strategy_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_authentication.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_connected_accounts.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_options.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_options_attribute_map.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_options_attribute_map_attributes.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_options_attribute_map_mapping_mode_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_options_connection_settings.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_options_connection_settings_pkce_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_options_dpop_signing_alg_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_options_federated_connections_access_tokens.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_options_id_token_signed_response_algs_item_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_options_oidc_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_options_schema_version_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_options_set_user_root_attributes_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_options_token_endpoint_auth_method_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_options_token_endpoint_auth_signing_alg_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_options_token_endpoint_jwtca_aud_format_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_options_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_options_upstream_params.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_strategy_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_2.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_2_authentication.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_2_connected_accounts.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_2_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_2_options.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_2_options_assertion_decryption_settings.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_2_options_assertion_decryption_settings_algorithm_profile_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_2_options_digest_algorithm_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_2_options_fields_map.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_2_options_idpinitiated.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_2_options_idpinitiated_client_protocol_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_2_options_oidc_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_2_options_protocol_binding_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_2_options_set_user_root_attributes_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_2_options_signature_algorithm_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_2_options_subject.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_2_options_upstream_params.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_2_strategy_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_3.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_3_authentication.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_3_connected_accounts.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_3_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_3_options.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_3_options_assertion_decryption_settings.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_3_options_assertion_decryption_settings_algorithm_profile_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_3_options_digest_algorithm_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_3_options_idpinitiated.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_3_options_idpinitiated_client_protocol_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_3_options_protocol_binding_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_3_options_set_user_root_attributes_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_3_options_signature_algorithm_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_3_options_subject.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_3_options_upstream_params.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_3_strategy_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_4.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_4_authentication.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_4_connected_accounts.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_4_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_4_options.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_4_options_set_user_root_attributes_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_4_options_should_trust_email_verified_connection_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_4_options_upstream_params.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_4_strategy_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_5.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_5_authentication.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_5_connected_accounts.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_5_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_5_options.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_5_options_set_user_root_attributes_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_5_options_upstream_params.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_5_strategy_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_6.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_6_authentication.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_6_connected_accounts.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_6_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_6_options.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_6_options_federated_connections_access_tokens.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_6_options_set_user_root_attributes_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_6_options_upstream_params.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_6_strategy_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_7.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_7_authentication.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_7_connected_accounts.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_7_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_7_options.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_7_options_federated_connections_access_tokens.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_7_options_identity_api_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_7_options_set_user_root_attributes_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_7_options_should_trust_email_verified_connection_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_7_options_tenant_domain_one.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_7_options_upstream_params.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_7_options_userid_attribute_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_7_options_waad_protocol_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_7_strategy_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_authentication.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_connected_accounts.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_options.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_options_attribute_map.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_options_attribute_map_attributes.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_options_attribute_map_mapping_mode_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_options_connection_settings.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_options_connection_settings_pkce_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_options_dpop_signing_alg_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_options_federated_connections_access_tokens.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_options_id_token_signed_response_algs_item_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_options_oidc_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_options_schema_version_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_options_set_user_root_attributes_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_options_token_endpoint_auth_method_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_options_token_endpoint_auth_signing_alg_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_options_token_endpoint_jwtca_aud_format_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_options_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_options_upstream_params.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_strategy_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_authentication.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_connected_accounts.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_options.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_options_attribute_map.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_options_attribute_map_attributes.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_options_attribute_map_mapping_mode_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_options_connection_settings.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_options_connection_settings_pkce_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_options_dpop_signing_alg_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_options_federated_connections_access_tokens.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_options_id_token_signed_response_algs_item_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_options_oidc_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_options_schema_version_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_options_set_user_root_attributes_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_options_token_endpoint_auth_method_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_options_token_endpoint_auth_signing_alg_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_options_token_endpoint_jwtca_aud_format_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_options_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_options_upstream_params.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_strategy_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_2.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_2_authentication.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_2_connected_accounts.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_2_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_2_options.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_2_options_assertion_decryption_settings.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_2_options_assertion_decryption_settings_algorithm_profile_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_2_options_digest_algorithm_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_2_options_fields_map.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_2_options_idpinitiated.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_2_options_idpinitiated_client_protocol_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_2_options_oidc_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_2_options_protocol_binding_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_2_options_set_user_root_attributes_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_2_options_signature_algorithm_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_2_options_subject.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_2_options_upstream_params.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_2_strategy_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_3.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_3_authentication.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_3_connected_accounts.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_3_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_3_options.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_3_options_assertion_decryption_settings.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_3_options_assertion_decryption_settings_algorithm_profile_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_3_options_digest_algorithm_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_3_options_idpinitiated.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_3_options_idpinitiated_client_protocol_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_3_options_protocol_binding_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_3_options_set_user_root_attributes_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_3_options_signature_algorithm_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_3_options_subject.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_3_options_upstream_params.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_3_strategy_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_4.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_4_authentication.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_4_connected_accounts.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_4_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_4_options.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_4_options_set_user_root_attributes_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_4_options_should_trust_email_verified_connection_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_4_options_upstream_params.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_4_strategy_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_5.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_5_authentication.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_5_connected_accounts.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_5_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_5_options.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_5_options_set_user_root_attributes_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_5_options_upstream_params.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_5_strategy_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_6.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_6_authentication.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_6_connected_accounts.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_6_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_6_options.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_6_options_federated_connections_access_tokens.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_6_options_set_user_root_attributes_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_6_options_upstream_params.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_6_strategy_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_7.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_7_authentication.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_7_connected_accounts.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_7_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_7_options.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_7_options_federated_connections_access_tokens.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_7_options_identity_api_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_7_options_set_user_root_attributes_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_7_options_should_trust_email_verified_connection_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_7_options_tenant_domain_one.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_7_options_upstream_params.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_7_options_userid_attribute_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_7_options_waad_protocol_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_7_strategy_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_deleted_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_cloud_event.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_cloud_event_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_data.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_authentication.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_connected_accounts.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_options.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_options_attribute_map.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_options_attribute_map_attributes.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_options_attribute_map_mapping_mode_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_options_connection_settings.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_options_connection_settings_pkce_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_options_dpop_signing_alg_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_options_federated_connections_access_tokens.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_options_id_token_signed_response_algs_item_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_options_oidc_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_options_schema_version_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_options_set_user_root_attributes_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_options_token_endpoint_auth_method_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_options_token_endpoint_auth_signing_alg_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_options_token_endpoint_jwtca_aud_format_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_options_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_options_upstream_params.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_strategy_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_authentication.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_connected_accounts.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_options.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_options_attribute_map.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_options_attribute_map_attributes.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_options_attribute_map_mapping_mode_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_options_connection_settings.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_options_connection_settings_pkce_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_options_dpop_signing_alg_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_options_federated_connections_access_tokens.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_options_id_token_signed_response_algs_item_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_options_oidc_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_options_schema_version_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_options_set_user_root_attributes_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_options_token_endpoint_auth_method_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_options_token_endpoint_auth_signing_alg_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_options_token_endpoint_jwtca_aud_format_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_options_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_options_upstream_params.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_strategy_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_2.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_2_authentication.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_2_connected_accounts.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_2_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_2_options.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_2_options_assertion_decryption_settings.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_2_options_assertion_decryption_settings_algorithm_profile_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_2_options_digest_algorithm_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_2_options_fields_map.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_2_options_idpinitiated.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_2_options_idpinitiated_client_protocol_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_2_options_oidc_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_2_options_protocol_binding_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_2_options_set_user_root_attributes_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_2_options_signature_algorithm_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_2_options_subject.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_2_options_upstream_params.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_2_strategy_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_3.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_3_authentication.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_3_connected_accounts.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_3_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_3_options.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_3_options_assertion_decryption_settings.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_3_options_assertion_decryption_settings_algorithm_profile_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_3_options_digest_algorithm_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_3_options_idpinitiated.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_3_options_idpinitiated_client_protocol_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_3_options_protocol_binding_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_3_options_set_user_root_attributes_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_3_options_signature_algorithm_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_3_options_subject.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_3_options_upstream_params.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_3_strategy_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_4.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_4_authentication.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_4_connected_accounts.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_4_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_4_options.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_4_options_set_user_root_attributes_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_4_options_should_trust_email_verified_connection_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_4_options_upstream_params.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_4_strategy_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_5.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_5_authentication.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_5_connected_accounts.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_5_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_5_options.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_5_options_set_user_root_attributes_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_5_options_upstream_params.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_5_strategy_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_6.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_6_authentication.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_6_connected_accounts.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_6_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_6_options.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_6_options_federated_connections_access_tokens.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_6_options_set_user_root_attributes_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_6_options_upstream_params.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_6_strategy_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_7.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_7_authentication.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_7_connected_accounts.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_7_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_7_options.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_7_options_federated_connections_access_tokens.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_7_options_identity_api_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_7_options_set_user_root_attributes_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_7_options_should_trust_email_verified_connection_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_7_options_tenant_domain_one.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_7_options_upstream_params.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_7_options_userid_attribute_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_7_options_waad_protocol_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_object_7_strategy_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_authentication.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_connected_accounts.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_options.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_options_attribute_map.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_options_attribute_map_attributes.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_options_attribute_map_mapping_mode_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_options_connection_settings.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_options_connection_settings_pkce_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_options_dpop_signing_alg_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_options_federated_connections_access_tokens.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_options_id_token_signed_response_algs_item_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_options_oidc_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_options_schema_version_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_options_set_user_root_attributes_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_options_token_endpoint_auth_method_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_options_token_endpoint_auth_signing_alg_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_options_token_endpoint_jwtca_aud_format_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_options_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_options_upstream_params.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_strategy_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_authentication.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_connected_accounts.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_options.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_options_attribute_map.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_options_attribute_map_attributes.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_options_attribute_map_mapping_mode_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_options_connection_settings.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_options_connection_settings_pkce_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_options_dpop_signing_alg_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_options_federated_connections_access_tokens.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_options_id_token_signed_response_algs_item_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_options_oidc_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_options_schema_version_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_options_set_user_root_attributes_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_options_token_endpoint_auth_method_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_options_token_endpoint_auth_signing_alg_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_options_token_endpoint_jwtca_aud_format_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_options_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_options_upstream_params.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_strategy_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_2.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_2_authentication.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_2_connected_accounts.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_2_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_2_options.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_2_options_assertion_decryption_settings.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_2_options_assertion_decryption_settings_algorithm_profile_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_2_options_digest_algorithm_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_2_options_fields_map.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_2_options_idpinitiated.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_2_options_idpinitiated_client_protocol_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_2_options_oidc_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_2_options_protocol_binding_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_2_options_set_user_root_attributes_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_2_options_signature_algorithm_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_2_options_subject.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_2_options_upstream_params.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_2_strategy_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_3.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_3_authentication.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_3_connected_accounts.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_3_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_3_options.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_3_options_assertion_decryption_settings.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_3_options_assertion_decryption_settings_algorithm_profile_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_3_options_digest_algorithm_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_3_options_idpinitiated.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_3_options_idpinitiated_client_protocol_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_3_options_protocol_binding_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_3_options_set_user_root_attributes_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_3_options_signature_algorithm_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_3_options_subject.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_3_options_upstream_params.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_3_strategy_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_4.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_4_authentication.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_4_connected_accounts.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_4_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_4_options.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_4_options_set_user_root_attributes_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_4_options_should_trust_email_verified_connection_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_4_options_upstream_params.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_4_strategy_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_5.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_5_authentication.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_5_connected_accounts.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_5_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_5_options.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_5_options_set_user_root_attributes_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_5_options_upstream_params.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_5_strategy_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_6.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_6_authentication.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_6_connected_accounts.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_6_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_6_options.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_6_options_federated_connections_access_tokens.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_6_options_set_user_root_attributes_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_6_options_upstream_params.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_6_strategy_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_7.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_7_authentication.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_7_connected_accounts.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_7_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_7_options.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_7_options_federated_connections_access_tokens.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_7_options_identity_api_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_7_options_set_user_root_attributes_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_7_options_should_trust_email_verified_connection_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_7_options_tenant_domain_one.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_7_options_upstream_params.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_7_options_userid_attribute_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_7_options_waad_protocol_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_7_strategy_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_connection_updated_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_context.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_context_client.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_context_client_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_context_connection.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_context_request.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_context_request_geo.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_context_tenant.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_context_transaction.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_context_transaction_protocol_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_context_transaction_response_mode_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_context_transaction_response_type_item_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_data.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_error_code_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_error_detail.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_error_message.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_error_message_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_created.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_created_cloud_event.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_created_cloud_event_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_created_data.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_created_object.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_created_object_0.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_created_object_0_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_created_object_1.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_created_object_1_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_created_object_2.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_created_object_2_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_created_previous_object.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_created_previous_object_0.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_created_previous_object_0_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_created_previous_object_1.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_created_previous_object_1_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_created_previous_object_2.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_created_previous_object_2_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_created_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_deleted.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_deleted_cloud_event.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_deleted_cloud_event_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_deleted_data.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_deleted_object.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_deleted_object_0.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_deleted_object_0_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_deleted_object_1.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_deleted_object_1_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_deleted_object_2.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_deleted_object_2_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_deleted_previous_object.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_deleted_previous_object_0.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_deleted_previous_object_0_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_deleted_previous_object_1.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_deleted_previous_object_1_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_deleted_previous_object_2.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_deleted_previous_object_2_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_deleted_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_member_added.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_member_added_cloud_event.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_member_added_cloud_event_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_member_added_data.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_member_added_object.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_member_added_object_group.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_member_added_object_group_0.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_member_added_object_group_0_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_member_added_object_group_1.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_member_added_object_group_1_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_member_added_object_group_2.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_member_added_object_group_2_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_member_added_object_member.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_member_added_object_member_0.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_member_added_object_member_0_member_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_member_added_object_member_1.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_member_added_object_member_1_member_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_member_added_previous_object.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_member_added_previous_object_group.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_member_added_previous_object_group_0.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_member_added_previous_object_group_0_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_member_added_previous_object_group_1.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_member_added_previous_object_group_1_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_member_added_previous_object_group_2.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_member_added_previous_object_group_2_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_member_added_previous_object_member.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_member_added_previous_object_member_0.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_member_added_previous_object_member_0_member_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_member_added_previous_object_member_1.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_member_added_previous_object_member_1_member_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_member_added_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_member_deleted.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_member_deleted_cloud_event.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_member_deleted_cloud_event_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_member_deleted_data.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_member_deleted_object.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_member_deleted_object_group.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_member_deleted_object_group_0.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_member_deleted_object_group_0_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_member_deleted_object_group_1.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_member_deleted_object_group_1_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_member_deleted_object_group_2.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_member_deleted_object_group_2_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_member_deleted_object_member.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_member_deleted_object_member_0.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_member_deleted_object_member_0_member_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_member_deleted_object_member_1.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_member_deleted_object_member_1_member_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_member_deleted_previous_object.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_member_deleted_previous_object_group.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_member_deleted_previous_object_group_0.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_member_deleted_previous_object_group_0_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_member_deleted_previous_object_group_1.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_member_deleted_previous_object_group_1_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_member_deleted_previous_object_group_2.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_member_deleted_previous_object_group_2_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_member_deleted_previous_object_member.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_member_deleted_previous_object_member_0.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_member_deleted_previous_object_member_0_member_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_member_deleted_previous_object_member_1.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_member_deleted_previous_object_member_1_member_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_member_deleted_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_role_assigned.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_role_assigned_cloud_event.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_role_assigned_cloud_event_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_role_assigned_data.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_role_assigned_object.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_role_assigned_object_group.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_role_assigned_object_group_0.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_role_assigned_object_group_0_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_role_assigned_object_group_1.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_role_assigned_object_group_1_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_role_assigned_object_group_2.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_role_assigned_object_group_2_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_role_assigned_object_role.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_role_assigned_previous_object.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_role_assigned_previous_object_group.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_role_assigned_previous_object_group_0.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_role_assigned_previous_object_group_0_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_role_assigned_previous_object_group_1.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_role_assigned_previous_object_group_1_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_role_assigned_previous_object_group_2.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_role_assigned_previous_object_group_2_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_role_assigned_previous_object_role.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_role_assigned_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_role_deleted.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_role_deleted_cloud_event.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_role_deleted_cloud_event_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_role_deleted_data.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_role_deleted_object.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_role_deleted_object_group.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_role_deleted_object_group_0.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_role_deleted_object_group_0_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_role_deleted_object_group_1.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_role_deleted_object_group_1_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_role_deleted_object_group_2.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_role_deleted_object_group_2_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_role_deleted_object_role.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_role_deleted_previous_object.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_role_deleted_previous_object_group.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_role_deleted_previous_object_group_0.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_role_deleted_previous_object_group_0_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_role_deleted_previous_object_group_1.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_role_deleted_previous_object_group_1_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_role_deleted_previous_object_group_2.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_role_deleted_previous_object_group_2_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_role_deleted_previous_object_role.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_role_deleted_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_updated.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_updated_cloud_event.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_updated_cloud_event_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_updated_data.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_updated_object.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_updated_object_0.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_updated_object_0_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_updated_object_1.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_updated_object_1_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_updated_object_2.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_updated_object_2_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_updated_previous_object.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_updated_previous_object_0.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_updated_previous_object_0_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_updated_previous_object_1.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_updated_previous_object_1_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_updated_previous_object_2.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_updated_previous_object_2_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_group_updated_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_offset_only_message.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_offset_only_message_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_connection_added.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_connection_added_cloud_event.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_connection_added_cloud_event_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_connection_added_data.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_connection_added_object.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_connection_added_object_connection.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_connection_added_object_organization.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_connection_added_object_organization_access_level.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_connection_added_object_organization_access_level_0_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_connection_added_object_organization_access_level_1_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_connection_added_object_organization_access_level_2_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_connection_added_object_organization_access_level_3_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_connection_added_object_organization_member_access_level.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_connection_added_object_organization_member_access_level_0_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_connection_added_object_organization_member_access_level_1_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_connection_added_object_organization_member_access_level_2_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_connection_added_object_organization_member_access_level_3_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_connection_added_previous_object.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_connection_added_previous_object_connection.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_connection_added_previous_object_organization.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_connection_added_previous_object_organization_access_level.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_connection_added_previous_object_organization_access_level_0_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_connection_added_previous_object_organization_access_level_1_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_connection_added_previous_object_organization_access_level_2_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_connection_added_previous_object_organization_access_level_3_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_connection_added_previous_object_organization_member_access_level.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_connection_added_previous_object_organization_member_access_level_0_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_connection_added_previous_object_organization_member_access_level_1_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_connection_added_previous_object_organization_member_access_level_2_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_connection_added_previous_object_organization_member_access_level_3_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_connection_added_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_connection_removed.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_connection_removed_cloud_event.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_connection_removed_cloud_event_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_connection_removed_data.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_connection_removed_object.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_connection_removed_object_connection.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_connection_removed_object_organization.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_connection_removed_previous_object.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_connection_removed_previous_object_connection.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_connection_removed_previous_object_organization.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_connection_removed_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_connection_updated.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_connection_updated_cloud_event.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_connection_updated_cloud_event_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_connection_updated_data.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_connection_updated_object.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_connection_updated_object_connection.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_connection_updated_object_organization.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_connection_updated_object_organization_access_level.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_connection_updated_object_organization_access_level_0_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_connection_updated_object_organization_access_level_1_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_connection_updated_object_organization_access_level_2_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_connection_updated_object_organization_access_level_3_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_connection_updated_object_organization_member_access_level.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_connection_updated_object_organization_member_access_level_0_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_connection_updated_object_organization_member_access_level_1_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_connection_updated_object_organization_member_access_level_2_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_connection_updated_object_organization_member_access_level_3_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_connection_updated_previous_object.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_connection_updated_previous_object_connection.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_connection_updated_previous_object_organization.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_connection_updated_previous_object_organization_access_level.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_connection_updated_previous_object_organization_access_level_0_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_connection_updated_previous_object_organization_access_level_1_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_connection_updated_previous_object_organization_access_level_2_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_connection_updated_previous_object_organization_access_level_3_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_connection_updated_previous_object_organization_member_access_level.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_connection_updated_previous_object_organization_member_access_level_0_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_connection_updated_previous_object_organization_member_access_level_1_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_connection_updated_previous_object_organization_member_access_level_2_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_connection_updated_previous_object_organization_member_access_level_3_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_connection_updated_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_created.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_created_cloud_event.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_created_cloud_event_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_created_data.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_created_object.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_created_object_branding.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_created_object_branding_colors.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_created_object_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_created_previous_object.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_created_previous_object_branding.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_created_previous_object_branding_colors.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_created_previous_object_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_created_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_deleted.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_deleted_cloud_event.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_deleted_cloud_event_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_deleted_data.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_deleted_object.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_deleted_object_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_deleted_previous_object.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_deleted_previous_object_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_deleted_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_cloud_event.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_cloud_event_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_data.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_object.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_object_group.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_object_group_0.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_object_group_0_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_object_group_1.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_object_group_1_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_object_group_2.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_object_group_2_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_object_organization.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_object_role.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_previous_object.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_previous_object_group.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_previous_object_group_0.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_previous_object_group_0_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_previous_object_group_1.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_previous_object_group_1_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_previous_object_group_2.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_previous_object_group_2_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_previous_object_organization.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_previous_object_role.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_cloud_event.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_cloud_event_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_data.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_object.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_object_group.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_object_group_0.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_object_group_0_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_object_group_1.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_object_group_1_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_object_group_2.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_object_group_2_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_object_organization.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_object_role.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_previous_object.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_previous_object_group.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_previous_object_group_0.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_previous_object_group_0_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_previous_object_group_1.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_previous_object_group_1_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_previous_object_group_2.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_previous_object_group_2_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_previous_object_organization.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_previous_object_role.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_member_added.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_member_added_cloud_event.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_member_added_cloud_event_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_member_added_data.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_member_added_object.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_member_added_object_organization.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_member_added_object_user.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_member_added_previous_object.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_member_added_previous_object_organization.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_member_added_previous_object_user.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_member_added_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_member_deleted.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_member_deleted_cloud_event.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_member_deleted_cloud_event_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_member_deleted_data.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_member_deleted_object.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_member_deleted_object_organization.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_member_deleted_object_user.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_member_deleted_previous_object.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_member_deleted_previous_object_organization.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_member_deleted_previous_object_user.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_member_deleted_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_member_role_assigned.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_member_role_assigned_cloud_event.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_member_role_assigned_cloud_event_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_member_role_assigned_data.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_member_role_assigned_object.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_member_role_assigned_object_organization.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_member_role_assigned_object_role.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_member_role_assigned_object_user.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_member_role_assigned_previous_object.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_member_role_assigned_previous_object_organization.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_member_role_assigned_previous_object_role.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_member_role_assigned_previous_object_user.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_member_role_assigned_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_member_role_deleted.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_member_role_deleted_cloud_event.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_member_role_deleted_cloud_event_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_member_role_deleted_data.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_member_role_deleted_object.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_member_role_deleted_object_organization.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_member_role_deleted_object_role.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_member_role_deleted_object_user.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_member_role_deleted_previous_object.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_member_role_deleted_previous_object_organization.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_member_role_deleted_previous_object_role.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_member_role_deleted_previous_object_user.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_member_role_deleted_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_updated.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_updated_cloud_event.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_updated_cloud_event_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_updated_data.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_updated_object.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_updated_object_branding.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_updated_object_branding_colors.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_updated_object_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_updated_previous_object.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_updated_previous_object_branding.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_updated_previous_object_branding_colors.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_updated_previous_object_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_org_updated_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_spec_version_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_created.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_created_cloud_event.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_created_cloud_event_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_created_data.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_created_object.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_created_object_app_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_custom.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_custom_is_social_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_custom_profile_data.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_custom_provider_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_custom_user_id.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_database.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_database_is_social_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_database_profile_data.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_database_provider_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_database_user_id.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_enterprise.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_enterprise_is_social_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_enterprise_profile_data.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_enterprise_provider_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_enterprise_user_id.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_passwordless.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_passwordless_is_social_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_passwordless_profile_data.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_passwordless_provider_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_passwordless_user_id.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_social.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_social_is_social_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_social_profile_data.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_social_provider_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_social_user_id.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_created_object_user_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_created_previous_object.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_app_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_custom.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_custom_is_social_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_custom_profile_data.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_custom_provider_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_custom_user_id.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_database.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_database_is_social_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_database_profile_data.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_database_provider_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_database_user_id.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_enterprise.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_enterprise_is_social_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_enterprise_profile_data.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_enterprise_provider_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_enterprise_user_id.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_passwordless.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_passwordless_is_social_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_passwordless_profile_data.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_passwordless_provider_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_passwordless_user_id.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_social.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_social_is_social_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_social_profile_data.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_social_provider_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_social_user_id.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_user_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_created_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_deleted.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_deleted_cloud_event.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_deleted_cloud_event_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_deleted_data.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_deleted_object.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_deleted_object_app_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_custom.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_custom_is_social_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_custom_profile_data.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_custom_provider_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_custom_user_id.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_database.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_database_is_social_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_database_profile_data.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_database_provider_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_database_user_id.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_enterprise.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_enterprise_is_social_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_enterprise_profile_data.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_enterprise_provider_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_enterprise_user_id.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_passwordless.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_passwordless_is_social_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_passwordless_profile_data.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_passwordless_provider_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_passwordless_user_id.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_social.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_social_is_social_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_social_profile_data.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_social_provider_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_social_user_id.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_deleted_object_user_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_app_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_custom.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_custom_is_social_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_custom_profile_data.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_custom_provider_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_custom_user_id.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_database.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_database_is_social_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_database_profile_data.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_database_provider_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_database_user_id.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_enterprise.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_enterprise_is_social_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_enterprise_profile_data.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_enterprise_provider_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_enterprise_user_id.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_passwordless.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_passwordless_is_social_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_passwordless_profile_data.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_passwordless_provider_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_passwordless_user_id.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_social.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_social_is_social_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_social_profile_data.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_social_provider_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_social_user_id.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_user_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_deleted_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_updated.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_updated_cloud_event.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_updated_cloud_event_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_updated_data.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_updated_object.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_updated_object_app_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_custom.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_custom_is_social_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_custom_profile_data.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_custom_provider_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_custom_user_id.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_database.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_database_is_social_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_database_profile_data.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_database_provider_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_database_user_id.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_enterprise.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_enterprise_is_social_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_enterprise_profile_data.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_enterprise_provider_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_enterprise_user_id.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_passwordless.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_passwordless_is_social_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_passwordless_profile_data.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_passwordless_provider_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_passwordless_user_id.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_social.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_social_is_social_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_social_profile_data.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_social_provider_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_social_user_id.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_updated_object_user_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_app_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_custom.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_custom_is_social_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_custom_profile_data.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_custom_provider_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_custom_user_id.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_database.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_database_is_social_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_database_profile_data.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_database_provider_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_database_user_id.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_enterprise.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_enterprise_is_social_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_enterprise_profile_data.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_enterprise_provider_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_enterprise_user_id.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_passwordless.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_passwordless_is_social_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_passwordless_profile_data.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_passwordless_provider_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_passwordless_user_id.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_social.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_social_is_social_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_social_profile_data.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_social_provider_enum.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_social_user_id.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_user_metadata.py delete mode 100644 src/auth0/management/types/event_stream_cloud_event_user_updated_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_delivery.py delete mode 100644 src/auth0/management/types/event_stream_delivery_attempt.py delete mode 100644 src/auth0/management/types/event_stream_delivery_event_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_delivery_status_enum.py delete mode 100644 src/auth0/management/types/event_stream_destination_patch.py delete mode 100644 src/auth0/management/types/event_stream_event_bridge_aws_region_enum.py delete mode 100644 src/auth0/management/types/event_stream_event_bridge_configuration.py delete mode 100644 src/auth0/management/types/event_stream_event_bridge_destination.py delete mode 100644 src/auth0/management/types/event_stream_event_bridge_destination_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_event_bridge_response_content.py delete mode 100644 src/auth0/management/types/event_stream_event_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_response_content.py delete mode 100644 src/auth0/management/types/event_stream_status_enum.py delete mode 100644 src/auth0/management/types/event_stream_subscribe_events_event_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_subscribe_events_event_type_param.py delete mode 100644 src/auth0/management/types/event_stream_subscribe_events_response_content.py delete mode 100644 src/auth0/management/types/event_stream_subscription.py delete mode 100644 src/auth0/management/types/event_stream_test_event_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_webhook_authorization_response.py delete mode 100644 src/auth0/management/types/event_stream_webhook_basic_auth.py delete mode 100644 src/auth0/management/types/event_stream_webhook_basic_auth_method_enum.py delete mode 100644 src/auth0/management/types/event_stream_webhook_bearer_auth.py delete mode 100644 src/auth0/management/types/event_stream_webhook_bearer_auth_method_enum.py delete mode 100644 src/auth0/management/types/event_stream_webhook_configuration.py delete mode 100644 src/auth0/management/types/event_stream_webhook_custom_header_auth.py delete mode 100644 src/auth0/management/types/event_stream_webhook_custom_header_auth_method_enum.py delete mode 100644 src/auth0/management/types/event_stream_webhook_destination.py delete mode 100644 src/auth0/management/types/event_stream_webhook_destination_type_enum.py delete mode 100644 src/auth0/management/types/event_stream_webhook_response_content.py delete mode 100644 src/auth0/management/types/experiment_list_item.py delete mode 100644 src/auth0/management/types/experiment_status_enum.py delete mode 100644 src/auth0/management/types/experiment_transition_status_enum.py delete mode 100644 src/auth0/management/types/experiment_validation_error.py delete mode 100644 src/auth0/management/types/express_configuration.py delete mode 100644 src/auth0/management/types/express_configuration_or_null.py delete mode 100644 src/auth0/management/types/feature_flag.py delete mode 100644 src/auth0/management/types/feature_flag_config_param.py delete mode 100644 src/auth0/management/types/feature_flag_config_param_type_enum.py delete mode 100644 src/auth0/management/types/feature_flag_config_params.py delete mode 100644 src/auth0/management/types/feature_flag_status_enum.py delete mode 100644 src/auth0/management/types/feature_flag_type_enum.py delete mode 100644 src/auth0/management/types/fed_cm_login.py delete mode 100644 src/auth0/management/types/fed_cm_login_google.py delete mode 100644 src/auth0/management/types/fed_cm_login_google_patch.py delete mode 100644 src/auth0/management/types/fed_cm_login_patch.py delete mode 100644 src/auth0/management/types/flow_action.py delete mode 100644 src/auth0/management/types/flow_action_activecampaign.py delete mode 100644 src/auth0/management/types/flow_action_activecampaign_list_contacts.py delete mode 100644 src/auth0/management/types/flow_action_activecampaign_list_contacts_action.py delete mode 100644 src/auth0/management/types/flow_action_activecampaign_list_contacts_type.py delete mode 100644 src/auth0/management/types/flow_action_activecampaign_upsert_contact.py delete mode 100644 src/auth0/management/types/flow_action_activecampaign_upsert_contact_action.py delete mode 100644 src/auth0/management/types/flow_action_activecampaign_upsert_contact_params.py delete mode 100644 src/auth0/management/types/flow_action_activecampaign_upsert_contact_params_custom_fields.py delete mode 100644 src/auth0/management/types/flow_action_activecampaign_upsert_contact_type.py delete mode 100644 src/auth0/management/types/flow_action_airtable.py delete mode 100644 src/auth0/management/types/flow_action_airtable_create_record.py delete mode 100644 src/auth0/management/types/flow_action_airtable_create_record_action.py delete mode 100644 src/auth0/management/types/flow_action_airtable_create_record_params.py delete mode 100644 src/auth0/management/types/flow_action_airtable_create_record_params_fields.py delete mode 100644 src/auth0/management/types/flow_action_airtable_create_record_type.py delete mode 100644 src/auth0/management/types/flow_action_airtable_list_records.py delete mode 100644 src/auth0/management/types/flow_action_airtable_list_records_action.py delete mode 100644 src/auth0/management/types/flow_action_airtable_list_records_params.py delete mode 100644 src/auth0/management/types/flow_action_airtable_list_records_type.py delete mode 100644 src/auth0/management/types/flow_action_airtable_update_record.py delete mode 100644 src/auth0/management/types/flow_action_airtable_update_record_action.py delete mode 100644 src/auth0/management/types/flow_action_airtable_update_record_params.py delete mode 100644 src/auth0/management/types/flow_action_airtable_update_record_params_fields.py delete mode 100644 src/auth0/management/types/flow_action_airtable_update_record_type.py delete mode 100644 src/auth0/management/types/flow_action_auth_0.py delete mode 100644 src/auth0/management/types/flow_action_auth_0_create_user.py delete mode 100644 src/auth0/management/types/flow_action_auth_0_create_user_action.py delete mode 100644 src/auth0/management/types/flow_action_auth_0_create_user_params.py delete mode 100644 src/auth0/management/types/flow_action_auth_0_create_user_params_payload.py delete mode 100644 src/auth0/management/types/flow_action_auth_0_create_user_type.py delete mode 100644 src/auth0/management/types/flow_action_auth_0_get_user.py delete mode 100644 src/auth0/management/types/flow_action_auth_0_get_user_action.py delete mode 100644 src/auth0/management/types/flow_action_auth_0_get_user_params.py delete mode 100644 src/auth0/management/types/flow_action_auth_0_get_user_type.py delete mode 100644 src/auth0/management/types/flow_action_auth_0_make_call.py delete mode 100644 src/auth0/management/types/flow_action_auth_0_make_call_action.py delete mode 100644 src/auth0/management/types/flow_action_auth_0_make_call_params.py delete mode 100644 src/auth0/management/types/flow_action_auth_0_make_call_params_custom_vars.py delete mode 100644 src/auth0/management/types/flow_action_auth_0_make_call_type.py delete mode 100644 src/auth0/management/types/flow_action_auth_0_send_email.py delete mode 100644 src/auth0/management/types/flow_action_auth_0_send_email_action.py delete mode 100644 src/auth0/management/types/flow_action_auth_0_send_email_params.py delete mode 100644 src/auth0/management/types/flow_action_auth_0_send_email_params_from.py delete mode 100644 src/auth0/management/types/flow_action_auth_0_send_email_params_from_email.py delete mode 100644 src/auth0/management/types/flow_action_auth_0_send_email_params_to.py delete mode 100644 src/auth0/management/types/flow_action_auth_0_send_email_type.py delete mode 100644 src/auth0/management/types/flow_action_auth_0_send_request.py delete mode 100644 src/auth0/management/types/flow_action_auth_0_send_request_action.py delete mode 100644 src/auth0/management/types/flow_action_auth_0_send_request_params.py delete mode 100644 src/auth0/management/types/flow_action_auth_0_send_request_params_custom_vars.py delete mode 100644 src/auth0/management/types/flow_action_auth_0_send_request_params_headers.py delete mode 100644 src/auth0/management/types/flow_action_auth_0_send_request_params_method.py delete mode 100644 src/auth0/management/types/flow_action_auth_0_send_request_params_payload.py delete mode 100644 src/auth0/management/types/flow_action_auth_0_send_request_params_payload_object.py delete mode 100644 src/auth0/management/types/flow_action_auth_0_send_request_params_query_params.py delete mode 100644 src/auth0/management/types/flow_action_auth_0_send_request_params_query_params_value.py delete mode 100644 src/auth0/management/types/flow_action_auth_0_send_request_type.py delete mode 100644 src/auth0/management/types/flow_action_auth_0_send_sms.py delete mode 100644 src/auth0/management/types/flow_action_auth_0_send_sms_action.py delete mode 100644 src/auth0/management/types/flow_action_auth_0_send_sms_params.py delete mode 100644 src/auth0/management/types/flow_action_auth_0_send_sms_params_custom_vars.py delete mode 100644 src/auth0/management/types/flow_action_auth_0_send_sms_type.py delete mode 100644 src/auth0/management/types/flow_action_auth_0_update_user.py delete mode 100644 src/auth0/management/types/flow_action_auth_0_update_user_action.py delete mode 100644 src/auth0/management/types/flow_action_auth_0_update_user_params.py delete mode 100644 src/auth0/management/types/flow_action_auth_0_update_user_params_changes.py delete mode 100644 src/auth0/management/types/flow_action_auth_0_update_user_type.py delete mode 100644 src/auth0/management/types/flow_action_bigquery.py delete mode 100644 src/auth0/management/types/flow_action_bigquery_insert_rows.py delete mode 100644 src/auth0/management/types/flow_action_bigquery_insert_rows_action.py delete mode 100644 src/auth0/management/types/flow_action_bigquery_insert_rows_params.py delete mode 100644 src/auth0/management/types/flow_action_bigquery_insert_rows_params_data.py delete mode 100644 src/auth0/management/types/flow_action_bigquery_insert_rows_type.py delete mode 100644 src/auth0/management/types/flow_action_clearbit.py delete mode 100644 src/auth0/management/types/flow_action_clearbit_find_company.py delete mode 100644 src/auth0/management/types/flow_action_clearbit_find_company_action.py delete mode 100644 src/auth0/management/types/flow_action_clearbit_find_company_params.py delete mode 100644 src/auth0/management/types/flow_action_clearbit_find_company_type.py delete mode 100644 src/auth0/management/types/flow_action_clearbit_find_person.py delete mode 100644 src/auth0/management/types/flow_action_clearbit_find_person_action.py delete mode 100644 src/auth0/management/types/flow_action_clearbit_find_person_params.py delete mode 100644 src/auth0/management/types/flow_action_clearbit_find_person_type.py delete mode 100644 src/auth0/management/types/flow_action_email.py delete mode 100644 src/auth0/management/types/flow_action_email_verify_email.py delete mode 100644 src/auth0/management/types/flow_action_email_verify_email_action.py delete mode 100644 src/auth0/management/types/flow_action_email_verify_email_params.py delete mode 100644 src/auth0/management/types/flow_action_email_verify_email_params_rules.py delete mode 100644 src/auth0/management/types/flow_action_email_verify_email_type.py delete mode 100644 src/auth0/management/types/flow_action_flow.py delete mode 100644 src/auth0/management/types/flow_action_flow_boolean_condition.py delete mode 100644 src/auth0/management/types/flow_action_flow_boolean_condition_action.py delete mode 100644 src/auth0/management/types/flow_action_flow_boolean_condition_params.py delete mode 100644 src/auth0/management/types/flow_action_flow_boolean_condition_type.py delete mode 100644 src/auth0/management/types/flow_action_flow_delay_flow.py delete mode 100644 src/auth0/management/types/flow_action_flow_delay_flow_action.py delete mode 100644 src/auth0/management/types/flow_action_flow_delay_flow_params.py delete mode 100644 src/auth0/management/types/flow_action_flow_delay_flow_params_number.py delete mode 100644 src/auth0/management/types/flow_action_flow_delay_flow_params_units.py delete mode 100644 src/auth0/management/types/flow_action_flow_delay_flow_type.py delete mode 100644 src/auth0/management/types/flow_action_flow_do_nothing.py delete mode 100644 src/auth0/management/types/flow_action_flow_do_nothing_action.py delete mode 100644 src/auth0/management/types/flow_action_flow_do_nothing_type.py delete mode 100644 src/auth0/management/types/flow_action_flow_error_message.py delete mode 100644 src/auth0/management/types/flow_action_flow_error_message_action.py delete mode 100644 src/auth0/management/types/flow_action_flow_error_message_params.py delete mode 100644 src/auth0/management/types/flow_action_flow_error_message_type.py delete mode 100644 src/auth0/management/types/flow_action_flow_map_value.py delete mode 100644 src/auth0/management/types/flow_action_flow_map_value_action.py delete mode 100644 src/auth0/management/types/flow_action_flow_map_value_params.py delete mode 100644 src/auth0/management/types/flow_action_flow_map_value_params_cases.py delete mode 100644 src/auth0/management/types/flow_action_flow_map_value_params_fallback.py delete mode 100644 src/auth0/management/types/flow_action_flow_map_value_params_fallback_object.py delete mode 100644 src/auth0/management/types/flow_action_flow_map_value_params_input.py delete mode 100644 src/auth0/management/types/flow_action_flow_return_json.py delete mode 100644 src/auth0/management/types/flow_action_flow_return_json_action.py delete mode 100644 src/auth0/management/types/flow_action_flow_return_json_params.py delete mode 100644 src/auth0/management/types/flow_action_flow_return_json_params_payload.py delete mode 100644 src/auth0/management/types/flow_action_flow_return_json_params_payload_object.py delete mode 100644 src/auth0/management/types/flow_action_flow_return_json_type.py delete mode 100644 src/auth0/management/types/flow_action_flow_store_vars.py delete mode 100644 src/auth0/management/types/flow_action_flow_store_vars_action.py delete mode 100644 src/auth0/management/types/flow_action_flow_store_vars_params.py delete mode 100644 src/auth0/management/types/flow_action_flow_store_vars_params_vars.py delete mode 100644 src/auth0/management/types/flow_action_flow_store_vars_type.py delete mode 100644 src/auth0/management/types/flow_action_google_sheets.py delete mode 100644 src/auth0/management/types/flow_action_google_sheets_add_row.py delete mode 100644 src/auth0/management/types/flow_action_google_sheets_add_row_action.py delete mode 100644 src/auth0/management/types/flow_action_google_sheets_add_row_params.py delete mode 100644 src/auth0/management/types/flow_action_google_sheets_add_row_params_sheet_id.py delete mode 100644 src/auth0/management/types/flow_action_google_sheets_add_row_params_values.py delete mode 100644 src/auth0/management/types/flow_action_google_sheets_add_row_type.py delete mode 100644 src/auth0/management/types/flow_action_http.py delete mode 100644 src/auth0/management/types/flow_action_http_send_request.py delete mode 100644 src/auth0/management/types/flow_action_http_send_request_action.py delete mode 100644 src/auth0/management/types/flow_action_http_send_request_params.py delete mode 100644 src/auth0/management/types/flow_action_http_send_request_params_basic_auth.py delete mode 100644 src/auth0/management/types/flow_action_http_send_request_params_content_type.py delete mode 100644 src/auth0/management/types/flow_action_http_send_request_params_headers.py delete mode 100644 src/auth0/management/types/flow_action_http_send_request_params_method.py delete mode 100644 src/auth0/management/types/flow_action_http_send_request_params_payload.py delete mode 100644 src/auth0/management/types/flow_action_http_send_request_params_query_params.py delete mode 100644 src/auth0/management/types/flow_action_http_send_request_params_query_params_value.py delete mode 100644 src/auth0/management/types/flow_action_http_send_request_type.py delete mode 100644 src/auth0/management/types/flow_action_hubspot.py delete mode 100644 src/auth0/management/types/flow_action_hubspot_enroll_contact.py delete mode 100644 src/auth0/management/types/flow_action_hubspot_enroll_contact_action.py delete mode 100644 src/auth0/management/types/flow_action_hubspot_enroll_contact_params.py delete mode 100644 src/auth0/management/types/flow_action_hubspot_enroll_contact_params_workflow_id.py delete mode 100644 src/auth0/management/types/flow_action_hubspot_enroll_contact_type.py delete mode 100644 src/auth0/management/types/flow_action_hubspot_get_contact.py delete mode 100644 src/auth0/management/types/flow_action_hubspot_get_contact_action.py delete mode 100644 src/auth0/management/types/flow_action_hubspot_get_contact_params.py delete mode 100644 src/auth0/management/types/flow_action_hubspot_get_contact_type.py delete mode 100644 src/auth0/management/types/flow_action_hubspot_upsert_contact.py delete mode 100644 src/auth0/management/types/flow_action_hubspot_upsert_contact_action.py delete mode 100644 src/auth0/management/types/flow_action_hubspot_upsert_contact_params.py delete mode 100644 src/auth0/management/types/flow_action_hubspot_upsert_contact_params_property.py delete mode 100644 src/auth0/management/types/flow_action_hubspot_upsert_contact_type.py delete mode 100644 src/auth0/management/types/flow_action_json.py delete mode 100644 src/auth0/management/types/flow_action_json_create_json.py delete mode 100644 src/auth0/management/types/flow_action_json_create_json_action.py delete mode 100644 src/auth0/management/types/flow_action_json_create_json_params.py delete mode 100644 src/auth0/management/types/flow_action_json_create_json_params_object.py delete mode 100644 src/auth0/management/types/flow_action_json_create_json_type.py delete mode 100644 src/auth0/management/types/flow_action_json_parse_json.py delete mode 100644 src/auth0/management/types/flow_action_json_parse_json_action.py delete mode 100644 src/auth0/management/types/flow_action_json_parse_json_params.py delete mode 100644 src/auth0/management/types/flow_action_json_parse_json_type.py delete mode 100644 src/auth0/management/types/flow_action_json_serialize_json.py delete mode 100644 src/auth0/management/types/flow_action_json_serialize_json_action.py delete mode 100644 src/auth0/management/types/flow_action_json_serialize_json_params.py delete mode 100644 src/auth0/management/types/flow_action_json_serialize_json_params_object.py delete mode 100644 src/auth0/management/types/flow_action_json_serialize_json_params_object_object.py delete mode 100644 src/auth0/management/types/flow_action_json_serialize_json_type.py delete mode 100644 src/auth0/management/types/flow_action_jwt.py delete mode 100644 src/auth0/management/types/flow_action_jwt_decode_jwt.py delete mode 100644 src/auth0/management/types/flow_action_jwt_decode_jwt_action.py delete mode 100644 src/auth0/management/types/flow_action_jwt_decode_jwt_params.py delete mode 100644 src/auth0/management/types/flow_action_jwt_decode_jwt_type.py delete mode 100644 src/auth0/management/types/flow_action_jwt_sign_jwt.py delete mode 100644 src/auth0/management/types/flow_action_jwt_sign_jwt_action.py delete mode 100644 src/auth0/management/types/flow_action_jwt_sign_jwt_params.py delete mode 100644 src/auth0/management/types/flow_action_jwt_sign_jwt_params_payload.py delete mode 100644 src/auth0/management/types/flow_action_jwt_sign_jwt_type.py delete mode 100644 src/auth0/management/types/flow_action_jwt_verify_jwt.py delete mode 100644 src/auth0/management/types/flow_action_jwt_verify_jwt_action.py delete mode 100644 src/auth0/management/types/flow_action_jwt_verify_jwt_params.py delete mode 100644 src/auth0/management/types/flow_action_jwt_verify_jwt_type.py delete mode 100644 src/auth0/management/types/flow_action_mailchimp.py delete mode 100644 src/auth0/management/types/flow_action_mailchimp_upsert_member.py delete mode 100644 src/auth0/management/types/flow_action_mailchimp_upsert_member_action.py delete mode 100644 src/auth0/management/types/flow_action_mailchimp_upsert_member_params.py delete mode 100644 src/auth0/management/types/flow_action_mailchimp_upsert_member_params_member.py delete mode 100644 src/auth0/management/types/flow_action_mailchimp_upsert_member_params_member_merge_fields.py delete mode 100644 src/auth0/management/types/flow_action_mailchimp_upsert_member_type.py delete mode 100644 src/auth0/management/types/flow_action_mailjet.py delete mode 100644 src/auth0/management/types/flow_action_mailjet_send_email.py delete mode 100644 src/auth0/management/types/flow_action_mailjet_send_email_action.py delete mode 100644 src/auth0/management/types/flow_action_mailjet_send_email_params.py delete mode 100644 src/auth0/management/types/flow_action_mailjet_send_email_params_content.py delete mode 100644 src/auth0/management/types/flow_action_mailjet_send_email_params_template_id.py delete mode 100644 src/auth0/management/types/flow_action_mailjet_send_email_type.py delete mode 100644 src/auth0/management/types/flow_action_otp.py delete mode 100644 src/auth0/management/types/flow_action_otp_generate_code.py delete mode 100644 src/auth0/management/types/flow_action_otp_generate_code_action.py delete mode 100644 src/auth0/management/types/flow_action_otp_generate_code_params.py delete mode 100644 src/auth0/management/types/flow_action_otp_generate_code_type.py delete mode 100644 src/auth0/management/types/flow_action_otp_verify_code.py delete mode 100644 src/auth0/management/types/flow_action_otp_verify_code_action.py delete mode 100644 src/auth0/management/types/flow_action_otp_verify_code_params.py delete mode 100644 src/auth0/management/types/flow_action_otp_verify_code_params_code.py delete mode 100644 src/auth0/management/types/flow_action_otp_verify_code_type.py delete mode 100644 src/auth0/management/types/flow_action_pipedrive.py delete mode 100644 src/auth0/management/types/flow_action_pipedrive_add_deal.py delete mode 100644 src/auth0/management/types/flow_action_pipedrive_add_deal_action.py delete mode 100644 src/auth0/management/types/flow_action_pipedrive_add_deal_params.py delete mode 100644 src/auth0/management/types/flow_action_pipedrive_add_deal_params_fields.py delete mode 100644 src/auth0/management/types/flow_action_pipedrive_add_deal_params_organization_id.py delete mode 100644 src/auth0/management/types/flow_action_pipedrive_add_deal_params_person_id.py delete mode 100644 src/auth0/management/types/flow_action_pipedrive_add_deal_params_stage_id.py delete mode 100644 src/auth0/management/types/flow_action_pipedrive_add_deal_params_user_id.py delete mode 100644 src/auth0/management/types/flow_action_pipedrive_add_deal_type.py delete mode 100644 src/auth0/management/types/flow_action_pipedrive_add_organization.py delete mode 100644 src/auth0/management/types/flow_action_pipedrive_add_organization_action.py delete mode 100644 src/auth0/management/types/flow_action_pipedrive_add_organization_params.py delete mode 100644 src/auth0/management/types/flow_action_pipedrive_add_organization_params_fields.py delete mode 100644 src/auth0/management/types/flow_action_pipedrive_add_organization_params_owner_id.py delete mode 100644 src/auth0/management/types/flow_action_pipedrive_add_organization_type.py delete mode 100644 src/auth0/management/types/flow_action_pipedrive_add_person.py delete mode 100644 src/auth0/management/types/flow_action_pipedrive_add_person_action.py delete mode 100644 src/auth0/management/types/flow_action_pipedrive_add_person_params.py delete mode 100644 src/auth0/management/types/flow_action_pipedrive_add_person_params_fields.py delete mode 100644 src/auth0/management/types/flow_action_pipedrive_add_person_params_organization_id.py delete mode 100644 src/auth0/management/types/flow_action_pipedrive_add_person_params_owner_id.py delete mode 100644 src/auth0/management/types/flow_action_pipedrive_add_person_type.py delete mode 100644 src/auth0/management/types/flow_action_salesforce.py delete mode 100644 src/auth0/management/types/flow_action_salesforce_create_lead.py delete mode 100644 src/auth0/management/types/flow_action_salesforce_create_lead_action.py delete mode 100644 src/auth0/management/types/flow_action_salesforce_create_lead_params.py delete mode 100644 src/auth0/management/types/flow_action_salesforce_create_lead_params_payload.py delete mode 100644 src/auth0/management/types/flow_action_salesforce_create_lead_type.py delete mode 100644 src/auth0/management/types/flow_action_salesforce_get_lead.py delete mode 100644 src/auth0/management/types/flow_action_salesforce_get_lead_action.py delete mode 100644 src/auth0/management/types/flow_action_salesforce_get_lead_params.py delete mode 100644 src/auth0/management/types/flow_action_salesforce_get_lead_type.py delete mode 100644 src/auth0/management/types/flow_action_salesforce_search_leads.py delete mode 100644 src/auth0/management/types/flow_action_salesforce_search_leads_action.py delete mode 100644 src/auth0/management/types/flow_action_salesforce_search_leads_params.py delete mode 100644 src/auth0/management/types/flow_action_salesforce_search_leads_params_search_field.py delete mode 100644 src/auth0/management/types/flow_action_salesforce_search_leads_type.py delete mode 100644 src/auth0/management/types/flow_action_salesforce_update_lead.py delete mode 100644 src/auth0/management/types/flow_action_salesforce_update_lead_action.py delete mode 100644 src/auth0/management/types/flow_action_salesforce_update_lead_params.py delete mode 100644 src/auth0/management/types/flow_action_salesforce_update_lead_params_payload.py delete mode 100644 src/auth0/management/types/flow_action_salesforce_update_lead_type.py delete mode 100644 src/auth0/management/types/flow_action_sendgrid.py delete mode 100644 src/auth0/management/types/flow_action_sendgrid_send_email.py delete mode 100644 src/auth0/management/types/flow_action_sendgrid_send_email_action.py delete mode 100644 src/auth0/management/types/flow_action_sendgrid_send_email_params.py delete mode 100644 src/auth0/management/types/flow_action_sendgrid_send_email_params_person.py delete mode 100644 src/auth0/management/types/flow_action_sendgrid_send_email_type.py delete mode 100644 src/auth0/management/types/flow_action_slack.py delete mode 100644 src/auth0/management/types/flow_action_slack_post_message.py delete mode 100644 src/auth0/management/types/flow_action_slack_post_message_action.py delete mode 100644 src/auth0/management/types/flow_action_slack_post_message_params.py delete mode 100644 src/auth0/management/types/flow_action_slack_post_message_params_attachment.py delete mode 100644 src/auth0/management/types/flow_action_slack_post_message_params_attachment_color.py delete mode 100644 src/auth0/management/types/flow_action_slack_post_message_params_attachment_field.py delete mode 100644 src/auth0/management/types/flow_action_slack_post_message_type.py delete mode 100644 src/auth0/management/types/flow_action_stripe.py delete mode 100644 src/auth0/management/types/flow_action_stripe_add_tax_id.py delete mode 100644 src/auth0/management/types/flow_action_stripe_add_tax_id_action.py delete mode 100644 src/auth0/management/types/flow_action_stripe_add_tax_id_params.py delete mode 100644 src/auth0/management/types/flow_action_stripe_add_tax_id_type.py delete mode 100644 src/auth0/management/types/flow_action_stripe_address.py delete mode 100644 src/auth0/management/types/flow_action_stripe_create_customer.py delete mode 100644 src/auth0/management/types/flow_action_stripe_create_customer_action.py delete mode 100644 src/auth0/management/types/flow_action_stripe_create_customer_params.py delete mode 100644 src/auth0/management/types/flow_action_stripe_create_customer_type.py delete mode 100644 src/auth0/management/types/flow_action_stripe_create_portal_session.py delete mode 100644 src/auth0/management/types/flow_action_stripe_create_portal_session_action.py delete mode 100644 src/auth0/management/types/flow_action_stripe_create_portal_session_params.py delete mode 100644 src/auth0/management/types/flow_action_stripe_create_portal_session_type.py delete mode 100644 src/auth0/management/types/flow_action_stripe_delete_tax_id.py delete mode 100644 src/auth0/management/types/flow_action_stripe_delete_tax_id_action.py delete mode 100644 src/auth0/management/types/flow_action_stripe_delete_tax_id_params.py delete mode 100644 src/auth0/management/types/flow_action_stripe_delete_tax_id_type.py delete mode 100644 src/auth0/management/types/flow_action_stripe_find_customers.py delete mode 100644 src/auth0/management/types/flow_action_stripe_find_customers_action.py delete mode 100644 src/auth0/management/types/flow_action_stripe_find_customers_params.py delete mode 100644 src/auth0/management/types/flow_action_stripe_find_customers_type.py delete mode 100644 src/auth0/management/types/flow_action_stripe_get_customer.py delete mode 100644 src/auth0/management/types/flow_action_stripe_get_customer_action.py delete mode 100644 src/auth0/management/types/flow_action_stripe_get_customer_params.py delete mode 100644 src/auth0/management/types/flow_action_stripe_get_customer_type.py delete mode 100644 src/auth0/management/types/flow_action_stripe_metadata.py delete mode 100644 src/auth0/management/types/flow_action_stripe_tax_id.py delete mode 100644 src/auth0/management/types/flow_action_stripe_update_customer.py delete mode 100644 src/auth0/management/types/flow_action_stripe_update_customer_action.py delete mode 100644 src/auth0/management/types/flow_action_stripe_update_customer_params.py delete mode 100644 src/auth0/management/types/flow_action_stripe_update_customer_type.py delete mode 100644 src/auth0/management/types/flow_action_telegram.py delete mode 100644 src/auth0/management/types/flow_action_telegram_send_message.py delete mode 100644 src/auth0/management/types/flow_action_telegram_send_message_action.py delete mode 100644 src/auth0/management/types/flow_action_telegram_send_message_params.py delete mode 100644 src/auth0/management/types/flow_action_telegram_send_message_type.py delete mode 100644 src/auth0/management/types/flow_action_twilio.py delete mode 100644 src/auth0/management/types/flow_action_twilio_make_call.py delete mode 100644 src/auth0/management/types/flow_action_twilio_make_call_action.py delete mode 100644 src/auth0/management/types/flow_action_twilio_make_call_params.py delete mode 100644 src/auth0/management/types/flow_action_twilio_make_call_type.py delete mode 100644 src/auth0/management/types/flow_action_twilio_send_sms.py delete mode 100644 src/auth0/management/types/flow_action_twilio_send_sms_action.py delete mode 100644 src/auth0/management/types/flow_action_twilio_send_sms_params.py delete mode 100644 src/auth0/management/types/flow_action_twilio_send_sms_type.py delete mode 100644 src/auth0/management/types/flow_action_whatsapp.py delete mode 100644 src/auth0/management/types/flow_action_whatsapp_send_message.py delete mode 100644 src/auth0/management/types/flow_action_whatsapp_send_message_action.py delete mode 100644 src/auth0/management/types/flow_action_whatsapp_send_message_params.py delete mode 100644 src/auth0/management/types/flow_action_whatsapp_send_message_params_payload.py delete mode 100644 src/auth0/management/types/flow_action_whatsapp_send_message_params_payload_object.py delete mode 100644 src/auth0/management/types/flow_action_whatsapp_send_message_params_type.py delete mode 100644 src/auth0/management/types/flow_action_whatsapp_send_message_type.py delete mode 100644 src/auth0/management/types/flow_action_xml.py delete mode 100644 src/auth0/management/types/flow_action_xml_parse_xml.py delete mode 100644 src/auth0/management/types/flow_action_xml_parse_xml_action.py delete mode 100644 src/auth0/management/types/flow_action_xml_parse_xml_params.py delete mode 100644 src/auth0/management/types/flow_action_xml_parse_xml_type.py delete mode 100644 src/auth0/management/types/flow_action_xml_serialize_xml.py delete mode 100644 src/auth0/management/types/flow_action_xml_serialize_xml_action.py delete mode 100644 src/auth0/management/types/flow_action_xml_serialize_xml_params.py delete mode 100644 src/auth0/management/types/flow_action_xml_serialize_xml_params_object.py delete mode 100644 src/auth0/management/types/flow_action_xml_serialize_xml_params_object_object.py delete mode 100644 src/auth0/management/types/flow_action_xml_serialize_xml_type.py delete mode 100644 src/auth0/management/types/flow_action_zapier.py delete mode 100644 src/auth0/management/types/flow_action_zapier_trigger_webhook.py delete mode 100644 src/auth0/management/types/flow_action_zapier_trigger_webhook_action.py delete mode 100644 src/auth0/management/types/flow_action_zapier_trigger_webhook_params.py delete mode 100644 src/auth0/management/types/flow_action_zapier_trigger_webhook_params_method.py delete mode 100644 src/auth0/management/types/flow_action_zapier_trigger_webhook_type.py delete mode 100644 src/auth0/management/types/flow_execution_debug.py delete mode 100644 src/auth0/management/types/flow_execution_summary.py delete mode 100644 src/auth0/management/types/flow_summary.py delete mode 100644 src/auth0/management/types/flows_vault_connectio_setup_api_key.py delete mode 100644 src/auth0/management/types/flows_vault_connectio_setup_api_key_with_base_url.py delete mode 100644 src/auth0/management/types/flows_vault_connectio_setup_bigquery_oauth_jwt.py delete mode 100644 src/auth0/management/types/flows_vault_connectio_setup_http_bearer.py delete mode 100644 src/auth0/management/types/flows_vault_connectio_setup_jwt.py delete mode 100644 src/auth0/management/types/flows_vault_connectio_setup_jwt_algorithm_enum.py delete mode 100644 src/auth0/management/types/flows_vault_connectio_setup_mailjet_api_key.py delete mode 100644 src/auth0/management/types/flows_vault_connectio_setup_oauth_app.py delete mode 100644 src/auth0/management/types/flows_vault_connectio_setup_oauth_code.py delete mode 100644 src/auth0/management/types/flows_vault_connectio_setup_secret_api_key.py delete mode 100644 src/auth0/management/types/flows_vault_connectio_setup_stripe_key_pair.py delete mode 100644 src/auth0/management/types/flows_vault_connectio_setup_token.py delete mode 100644 src/auth0/management/types/flows_vault_connectio_setup_twilio_api_key.py delete mode 100644 src/auth0/management/types/flows_vault_connectio_setup_type_api_key_enum.py delete mode 100644 src/auth0/management/types/flows_vault_connectio_setup_type_bearer_enum.py delete mode 100644 src/auth0/management/types/flows_vault_connectio_setup_type_jwt_enum.py delete mode 100644 src/auth0/management/types/flows_vault_connectio_setup_type_key_pair_enum.py delete mode 100644 src/auth0/management/types/flows_vault_connectio_setup_type_oauth_app_enum.py delete mode 100644 src/auth0/management/types/flows_vault_connectio_setup_type_oauth_code_enum.py delete mode 100644 src/auth0/management/types/flows_vault_connectio_setup_type_oauth_jwt_enum.py delete mode 100644 src/auth0/management/types/flows_vault_connectio_setup_type_token_enum.py delete mode 100644 src/auth0/management/types/flows_vault_connectio_setup_type_webhook_enum.py delete mode 100644 src/auth0/management/types/flows_vault_connectio_setup_webhook.py delete mode 100644 src/auth0/management/types/flows_vault_connection_app_id_activecampaign_enum.py delete mode 100644 src/auth0/management/types/flows_vault_connection_app_id_airtable_enum.py delete mode 100644 src/auth0/management/types/flows_vault_connection_app_id_auth_0_enum.py delete mode 100644 src/auth0/management/types/flows_vault_connection_app_id_bigquery_enum.py delete mode 100644 src/auth0/management/types/flows_vault_connection_app_id_clearbit_enum.py delete mode 100644 src/auth0/management/types/flows_vault_connection_app_id_docusign_enum.py delete mode 100644 src/auth0/management/types/flows_vault_connection_app_id_google_sheets_enum.py delete mode 100644 src/auth0/management/types/flows_vault_connection_app_id_http_enum.py delete mode 100644 src/auth0/management/types/flows_vault_connection_app_id_hubspot_enum.py delete mode 100644 src/auth0/management/types/flows_vault_connection_app_id_jwt_enum.py delete mode 100644 src/auth0/management/types/flows_vault_connection_app_id_mailchimp_enum.py delete mode 100644 src/auth0/management/types/flows_vault_connection_app_id_mailjet_enum.py delete mode 100644 src/auth0/management/types/flows_vault_connection_app_id_pipedrive_enum.py delete mode 100644 src/auth0/management/types/flows_vault_connection_app_id_salesforce_enum.py delete mode 100644 src/auth0/management/types/flows_vault_connection_app_id_sendgrid_enum.py delete mode 100644 src/auth0/management/types/flows_vault_connection_app_id_slack_enum.py delete mode 100644 src/auth0/management/types/flows_vault_connection_app_id_stripe_enum.py delete mode 100644 src/auth0/management/types/flows_vault_connection_app_id_telegram_enum.py delete mode 100644 src/auth0/management/types/flows_vault_connection_app_id_twilio_enum.py delete mode 100644 src/auth0/management/types/flows_vault_connection_app_id_whatsapp_enum.py delete mode 100644 src/auth0/management/types/flows_vault_connection_app_id_zapier_enum.py delete mode 100644 src/auth0/management/types/flows_vault_connection_http_api_key_setup.py delete mode 100644 src/auth0/management/types/flows_vault_connection_http_api_key_setup_in_enum.py delete mode 100644 src/auth0/management/types/flows_vault_connection_http_basic_auth_setup.py delete mode 100644 src/auth0/management/types/flows_vault_connection_http_oauth_client_credentials_setup.py delete mode 100644 src/auth0/management/types/flows_vault_connection_setup_type_api_key_enum.py delete mode 100644 src/auth0/management/types/flows_vault_connection_setup_type_basic_auth_enum.py delete mode 100644 src/auth0/management/types/flows_vault_connection_setup_type_oauth_client_credentials_enum.py delete mode 100644 src/auth0/management/types/flows_vault_connection_summary.py delete mode 100644 src/auth0/management/types/forbidden_schema.py delete mode 100644 src/auth0/management/types/forbidden_schema_error.py delete mode 100644 src/auth0/management/types/form_block.py delete mode 100644 src/auth0/management/types/form_block_divider.py delete mode 100644 src/auth0/management/types/form_block_divider_config.py delete mode 100644 src/auth0/management/types/form_block_html.py delete mode 100644 src/auth0/management/types/form_block_html_config.py delete mode 100644 src/auth0/management/types/form_block_image.py delete mode 100644 src/auth0/management/types/form_block_image_config.py delete mode 100644 src/auth0/management/types/form_block_image_config_position_enum.py delete mode 100644 src/auth0/management/types/form_block_jump_button.py delete mode 100644 src/auth0/management/types/form_block_jump_button_config.py delete mode 100644 src/auth0/management/types/form_block_jump_button_config_style.py delete mode 100644 src/auth0/management/types/form_block_next_button.py delete mode 100644 src/auth0/management/types/form_block_previous_button.py delete mode 100644 src/auth0/management/types/form_block_previous_button_config.py delete mode 100644 src/auth0/management/types/form_block_resend_button.py delete mode 100644 src/auth0/management/types/form_block_resend_button_config.py delete mode 100644 src/auth0/management/types/form_block_resend_button_config_text_alignment_enum.py delete mode 100644 src/auth0/management/types/form_block_rich_text.py delete mode 100644 src/auth0/management/types/form_block_rich_text_config.py delete mode 100644 src/auth0/management/types/form_block_type_divider_const.py delete mode 100644 src/auth0/management/types/form_block_type_html_const.py delete mode 100644 src/auth0/management/types/form_block_type_image_const.py delete mode 100644 src/auth0/management/types/form_block_type_jump_button_const.py delete mode 100644 src/auth0/management/types/form_block_type_next_button_const.py delete mode 100644 src/auth0/management/types/form_block_type_previous_button_const.py delete mode 100644 src/auth0/management/types/form_block_type_resend_button_const.py delete mode 100644 src/auth0/management/types/form_block_type_rich_text_const.py delete mode 100644 src/auth0/management/types/form_component.py delete mode 100644 src/auth0/management/types/form_component_category_block_const.py delete mode 100644 src/auth0/management/types/form_component_category_field_const.py delete mode 100644 src/auth0/management/types/form_component_category_widget_const.py delete mode 100644 src/auth0/management/types/form_ending_node.py delete mode 100644 src/auth0/management/types/form_ending_node_after_submit.py delete mode 100644 src/auth0/management/types/form_ending_node_id.py delete mode 100644 src/auth0/management/types/form_ending_node_nullable.py delete mode 100644 src/auth0/management/types/form_ending_node_redirection.py delete mode 100644 src/auth0/management/types/form_ending_node_resume_flow_true_const.py delete mode 100644 src/auth0/management/types/form_field.py delete mode 100644 src/auth0/management/types/form_field_boolean.py delete mode 100644 src/auth0/management/types/form_field_boolean_config.py delete mode 100644 src/auth0/management/types/form_field_boolean_config_options.py delete mode 100644 src/auth0/management/types/form_field_cards.py delete mode 100644 src/auth0/management/types/form_field_cards_config.py delete mode 100644 src/auth0/management/types/form_field_cards_config_option.py delete mode 100644 src/auth0/management/types/form_field_choice.py delete mode 100644 src/auth0/management/types/form_field_choice_config.py delete mode 100644 src/auth0/management/types/form_field_choice_config_allow_other.py delete mode 100644 src/auth0/management/types/form_field_choice_config_allow_other_enabled_true_enum.py delete mode 100644 src/auth0/management/types/form_field_choice_config_option.py delete mode 100644 src/auth0/management/types/form_field_custom.py delete mode 100644 src/auth0/management/types/form_field_custom_config.py delete mode 100644 src/auth0/management/types/form_field_custom_config_params.py delete mode 100644 src/auth0/management/types/form_field_custom_config_schema.py delete mode 100644 src/auth0/management/types/form_field_date.py delete mode 100644 src/auth0/management/types/form_field_date_config.py delete mode 100644 src/auth0/management/types/form_field_date_config_format_enum.py delete mode 100644 src/auth0/management/types/form_field_dropdown.py delete mode 100644 src/auth0/management/types/form_field_dropdown_config.py delete mode 100644 src/auth0/management/types/form_field_dropdown_config_option.py delete mode 100644 src/auth0/management/types/form_field_email.py delete mode 100644 src/auth0/management/types/form_field_email_config.py delete mode 100644 src/auth0/management/types/form_field_file.py delete mode 100644 src/auth0/management/types/form_field_file_config.py delete mode 100644 src/auth0/management/types/form_field_file_config_category_enum.py delete mode 100644 src/auth0/management/types/form_field_file_config_storage.py delete mode 100644 src/auth0/management/types/form_field_file_config_storage_type_enum.py delete mode 100644 src/auth0/management/types/form_field_legal.py delete mode 100644 src/auth0/management/types/form_field_legal_config.py delete mode 100644 src/auth0/management/types/form_field_number.py delete mode 100644 src/auth0/management/types/form_field_number_config.py delete mode 100644 src/auth0/management/types/form_field_password.py delete mode 100644 src/auth0/management/types/form_field_password_config.py delete mode 100644 src/auth0/management/types/form_field_password_config_hash_enum.py delete mode 100644 src/auth0/management/types/form_field_payment.py delete mode 100644 src/auth0/management/types/form_field_payment_config.py delete mode 100644 src/auth0/management/types/form_field_payment_config_charge.py delete mode 100644 src/auth0/management/types/form_field_payment_config_charge_one_off.py delete mode 100644 src/auth0/management/types/form_field_payment_config_charge_one_off_currency_enum.py delete mode 100644 src/auth0/management/types/form_field_payment_config_charge_one_off_one_off.py delete mode 100644 src/auth0/management/types/form_field_payment_config_charge_one_off_one_off_amount.py delete mode 100644 src/auth0/management/types/form_field_payment_config_charge_subscription.py delete mode 100644 src/auth0/management/types/form_field_payment_config_charge_type_one_off_const.py delete mode 100644 src/auth0/management/types/form_field_payment_config_charge_type_subscription_const.py delete mode 100644 src/auth0/management/types/form_field_payment_config_credentials.py delete mode 100644 src/auth0/management/types/form_field_payment_config_customer.py delete mode 100644 src/auth0/management/types/form_field_payment_config_field_properties.py delete mode 100644 src/auth0/management/types/form_field_payment_config_fields.py delete mode 100644 src/auth0/management/types/form_field_payment_config_provider_enum.py delete mode 100644 src/auth0/management/types/form_field_payment_config_subscription.py delete mode 100644 src/auth0/management/types/form_field_social.py delete mode 100644 src/auth0/management/types/form_field_social_config.py delete mode 100644 src/auth0/management/types/form_field_tel.py delete mode 100644 src/auth0/management/types/form_field_tel_config.py delete mode 100644 src/auth0/management/types/form_field_tel_config_strings.py delete mode 100644 src/auth0/management/types/form_field_text.py delete mode 100644 src/auth0/management/types/form_field_text_config.py delete mode 100644 src/auth0/management/types/form_field_type_boolean_const.py delete mode 100644 src/auth0/management/types/form_field_type_cards_const.py delete mode 100644 src/auth0/management/types/form_field_type_choice_const.py delete mode 100644 src/auth0/management/types/form_field_type_custom_const.py delete mode 100644 src/auth0/management/types/form_field_type_date_const.py delete mode 100644 src/auth0/management/types/form_field_type_dropdown_const.py delete mode 100644 src/auth0/management/types/form_field_type_email_const.py delete mode 100644 src/auth0/management/types/form_field_type_file_const.py delete mode 100644 src/auth0/management/types/form_field_type_legal_const.py delete mode 100644 src/auth0/management/types/form_field_type_number_const.py delete mode 100644 src/auth0/management/types/form_field_type_password_const.py delete mode 100644 src/auth0/management/types/form_field_type_payment_const.py delete mode 100644 src/auth0/management/types/form_field_type_social_const.py delete mode 100644 src/auth0/management/types/form_field_type_tel_const.py delete mode 100644 src/auth0/management/types/form_field_type_text_const.py delete mode 100644 src/auth0/management/types/form_field_type_url_const.py delete mode 100644 src/auth0/management/types/form_field_url.py delete mode 100644 src/auth0/management/types/form_field_url_config.py delete mode 100644 src/auth0/management/types/form_flow.py delete mode 100644 src/auth0/management/types/form_flow_config.py delete mode 100644 src/auth0/management/types/form_hidden_field.py delete mode 100644 src/auth0/management/types/form_languages.py delete mode 100644 src/auth0/management/types/form_languages_nullable.py delete mode 100644 src/auth0/management/types/form_messages.py delete mode 100644 src/auth0/management/types/form_messages_custom.py delete mode 100644 src/auth0/management/types/form_messages_error.py delete mode 100644 src/auth0/management/types/form_messages_nullable.py delete mode 100644 src/auth0/management/types/form_node.py delete mode 100644 src/auth0/management/types/form_node_coordinates.py delete mode 100644 src/auth0/management/types/form_node_list.py delete mode 100644 src/auth0/management/types/form_node_list_nullable.py delete mode 100644 src/auth0/management/types/form_node_pointer.py delete mode 100644 src/auth0/management/types/form_node_type_flow_const.py delete mode 100644 src/auth0/management/types/form_node_type_router_const.py delete mode 100644 src/auth0/management/types/form_node_type_step_const.py delete mode 100644 src/auth0/management/types/form_router.py delete mode 100644 src/auth0/management/types/form_router_config.py delete mode 100644 src/auth0/management/types/form_router_rule.py delete mode 100644 src/auth0/management/types/form_start_node.py delete mode 100644 src/auth0/management/types/form_start_node_nullable.py delete mode 100644 src/auth0/management/types/form_step.py delete mode 100644 src/auth0/management/types/form_step_component_list.py delete mode 100644 src/auth0/management/types/form_step_config.py delete mode 100644 src/auth0/management/types/form_style.py delete mode 100644 src/auth0/management/types/form_style_nullable.py delete mode 100644 src/auth0/management/types/form_summary.py delete mode 100644 src/auth0/management/types/form_translations.py delete mode 100644 src/auth0/management/types/form_translations_nullable.py delete mode 100644 src/auth0/management/types/form_widget.py delete mode 100644 src/auth0/management/types/form_widget_auth_0_verifiable_credentials.py delete mode 100644 src/auth0/management/types/form_widget_auth_0_verifiable_credentials_config.py delete mode 100644 src/auth0/management/types/form_widget_g_maps_address.py delete mode 100644 src/auth0/management/types/form_widget_g_maps_address_config.py delete mode 100644 src/auth0/management/types/form_widget_recaptcha.py delete mode 100644 src/auth0/management/types/form_widget_recaptcha_config.py delete mode 100644 src/auth0/management/types/form_widget_type_auth_0_verifiable_credentials_const.py delete mode 100644 src/auth0/management/types/form_widget_type_g_maps_address_const.py delete mode 100644 src/auth0/management/types/form_widget_type_recaptcha_const.py delete mode 100644 src/auth0/management/types/forms_request_parameters_hydrate_enum.py delete mode 100644 src/auth0/management/types/get_action_execution_response_content.py delete mode 100644 src/auth0/management/types/get_action_module_actions_response_content.py delete mode 100644 src/auth0/management/types/get_action_module_response_content.py delete mode 100644 src/auth0/management/types/get_action_module_version_response_content.py delete mode 100644 src/auth0/management/types/get_action_module_versions_response_content.py delete mode 100644 src/auth0/management/types/get_action_modules_response_content.py delete mode 100644 src/auth0/management/types/get_action_response_content.py delete mode 100644 src/auth0/management/types/get_action_version_response_content.py delete mode 100644 src/auth0/management/types/get_active_users_count_stats_response_content.py delete mode 100644 src/auth0/management/types/get_acul_response_content.py delete mode 100644 src/auth0/management/types/get_all_keys_network_acls_response_content.py delete mode 100644 src/auth0/management/types/get_attack_protection_captcha_response_content.py delete mode 100644 src/auth0/management/types/get_bot_detection_settings_response_content.py delete mode 100644 src/auth0/management/types/get_branding_default_theme_response_content.py delete mode 100644 src/auth0/management/types/get_branding_phone_provider_response_content.py delete mode 100644 src/auth0/management/types/get_branding_response_content.py delete mode 100644 src/auth0/management/types/get_branding_theme_response_content.py delete mode 100644 src/auth0/management/types/get_breached_password_detection_settings_response_content.py delete mode 100644 src/auth0/management/types/get_brute_force_settings_response_content.py delete mode 100644 src/auth0/management/types/get_client_credential_response_content.py delete mode 100644 src/auth0/management/types/get_client_grant_response_content.py delete mode 100644 src/auth0/management/types/get_client_response_content.py delete mode 100644 src/auth0/management/types/get_connection_enabled_clients_response_content.py delete mode 100644 src/auth0/management/types/get_connection_profile_response_content.py delete mode 100644 src/auth0/management/types/get_connection_profile_template_response_content.py delete mode 100644 src/auth0/management/types/get_connection_response_content.py delete mode 100644 src/auth0/management/types/get_custom_domain_response_content.py delete mode 100644 src/auth0/management/types/get_custom_signing_keys_response_content.py delete mode 100644 src/auth0/management/types/get_custom_texts_by_language_response_content.py delete mode 100644 src/auth0/management/types/get_default_canonical_domain_response_content.py delete mode 100644 src/auth0/management/types/get_default_custom_domain_response_content.py delete mode 100644 src/auth0/management/types/get_default_domain_response_content.py delete mode 100644 src/auth0/management/types/get_directory_provisioning_default_mapping_response_content.py delete mode 100644 src/auth0/management/types/get_directory_provisioning_response_content.py delete mode 100644 src/auth0/management/types/get_email_factor_settings_response_content.py delete mode 100644 src/auth0/management/types/get_email_provider_response_content.py delete mode 100644 src/auth0/management/types/get_email_template_response_content.py delete mode 100644 src/auth0/management/types/get_encryption_key_response_content.py delete mode 100644 src/auth0/management/types/get_event_stream_delivery_history_response_content.py delete mode 100644 src/auth0/management/types/get_event_stream_response_content.py delete mode 100644 src/auth0/management/types/get_experiment_response_content.py delete mode 100644 src/auth0/management/types/get_feature_flag_response_content.py delete mode 100644 src/auth0/management/types/get_flow_execution_request_parameters_hydrate_enum.py delete mode 100644 src/auth0/management/types/get_flow_execution_response_content.py delete mode 100644 src/auth0/management/types/get_flow_request_parameters_hydrate_enum.py delete mode 100644 src/auth0/management/types/get_flow_response_content.py delete mode 100644 src/auth0/management/types/get_flows_vault_connection_response_content.py delete mode 100644 src/auth0/management/types/get_form_response_content.py delete mode 100644 src/auth0/management/types/get_group_members_response_content.py delete mode 100644 src/auth0/management/types/get_group_response_content.py delete mode 100644 src/auth0/management/types/get_guardian_enrollment_response_content.py delete mode 100644 src/auth0/management/types/get_guardian_factor_duo_settings_response_content.py delete mode 100644 src/auth0/management/types/get_guardian_factor_phone_message_types_response_content.py delete mode 100644 src/auth0/management/types/get_guardian_factor_phone_templates_response_content.py delete mode 100644 src/auth0/management/types/get_guardian_factor_sms_templates_response_content.py delete mode 100644 src/auth0/management/types/get_guardian_factors_provider_apns_response_content.py delete mode 100644 src/auth0/management/types/get_guardian_factors_provider_phone_response_content.py delete mode 100644 src/auth0/management/types/get_guardian_factors_provider_phone_twilio_response_content.py delete mode 100644 src/auth0/management/types/get_guardian_factors_provider_push_notification_response_content.py delete mode 100644 src/auth0/management/types/get_guardian_factors_provider_sms_response_content.py delete mode 100644 src/auth0/management/types/get_guardian_factors_provider_sms_twilio_response_content.py delete mode 100644 src/auth0/management/types/get_guardian_factors_provider_sns_response_content.py delete mode 100644 src/auth0/management/types/get_guardian_settings_response_content.py delete mode 100644 src/auth0/management/types/get_hook_response_content.py delete mode 100644 src/auth0/management/types/get_hook_secret_response_content.py delete mode 100644 src/auth0/management/types/get_job_error_response_content.py delete mode 100644 src/auth0/management/types/get_job_generic_error_response_content.py delete mode 100644 src/auth0/management/types/get_job_import_user_error.py delete mode 100644 src/auth0/management/types/get_job_response_content.py delete mode 100644 src/auth0/management/types/get_job_summary.py delete mode 100644 src/auth0/management/types/get_job_user_error.py delete mode 100644 src/auth0/management/types/get_log_response_content.py delete mode 100644 src/auth0/management/types/get_log_stream_response_content.py delete mode 100644 src/auth0/management/types/get_network_acls_response_content.py delete mode 100644 src/auth0/management/types/get_organization_all_connection_response_content.py delete mode 100644 src/auth0/management/types/get_organization_by_name_response_content.py delete mode 100644 src/auth0/management/types/get_organization_client_response_content.py delete mode 100644 src/auth0/management/types/get_organization_connection_response_content.py delete mode 100644 src/auth0/management/types/get_organization_discovery_domain_by_name_response_content.py delete mode 100644 src/auth0/management/types/get_organization_discovery_domain_response_content.py delete mode 100644 src/auth0/management/types/get_organization_invitation_response_content.py delete mode 100644 src/auth0/management/types/get_organization_response_content.py delete mode 100644 src/auth0/management/types/get_partials_response_content.py delete mode 100644 src/auth0/management/types/get_phone_factor_settings_response_content.py delete mode 100644 src/auth0/management/types/get_phone_provider_protection_response_content.py delete mode 100644 src/auth0/management/types/get_phone_template_response_content.py delete mode 100644 src/auth0/management/types/get_rate_limit_policy_response_content.py delete mode 100644 src/auth0/management/types/get_refresh_token_response_content.py delete mode 100644 src/auth0/management/types/get_refresh_tokens_paginated_response_content.py delete mode 100644 src/auth0/management/types/get_resource_server_response_content.py delete mode 100644 src/auth0/management/types/get_risk_assessments_settings_new_device_response_content.py delete mode 100644 src/auth0/management/types/get_risk_assessments_settings_response_content.py delete mode 100644 src/auth0/management/types/get_role_response_content.py delete mode 100644 src/auth0/management/types/get_rule_response_content.py delete mode 100644 src/auth0/management/types/get_scim_configuration_default_mapping_response_content.py delete mode 100644 src/auth0/management/types/get_scim_configuration_response_content.py delete mode 100644 src/auth0/management/types/get_scim_tokens_response_content.py delete mode 100644 src/auth0/management/types/get_segment_response_content.py delete mode 100644 src/auth0/management/types/get_self_service_profile_response_content.py delete mode 100644 src/auth0/management/types/get_session_response_content.py delete mode 100644 src/auth0/management/types/get_settings_response_content.py delete mode 100644 src/auth0/management/types/get_signing_keys_response_content.py delete mode 100644 src/auth0/management/types/get_supplemental_signals_response_content.py delete mode 100644 src/auth0/management/types/get_suspicious_ip_throttling_settings_response_content.py delete mode 100644 src/auth0/management/types/get_tenant_settings_response_content.py delete mode 100644 src/auth0/management/types/get_token_exchange_profile_response_content.py delete mode 100644 src/auth0/management/types/get_universal_login_template.py delete mode 100644 src/auth0/management/types/get_universal_login_template_response_content.py delete mode 100644 src/auth0/management/types/get_user_attribute_profile_response_content.py delete mode 100644 src/auth0/management/types/get_user_attribute_profile_template_response_content.py delete mode 100644 src/auth0/management/types/get_user_authentication_method_response_content.py delete mode 100644 src/auth0/management/types/get_user_groups_paginated_response_content.py delete mode 100644 src/auth0/management/types/get_user_response_content.py delete mode 100644 src/auth0/management/types/get_variation_response_content.py delete mode 100644 src/auth0/management/types/get_verifiable_credential_template_response_content.py delete mode 100644 src/auth0/management/types/google_account_linking_configuration.py delete mode 100644 src/auth0/management/types/google_account_linking_configuration_create.py delete mode 100644 src/auth0/management/types/google_account_linking_configuration_or_null.py delete mode 100644 src/auth0/management/types/group.py delete mode 100644 src/auth0/management/types/group_member.py delete mode 100644 src/auth0/management/types/group_member_type_enum.py delete mode 100644 src/auth0/management/types/group_type_enum.py delete mode 100644 src/auth0/management/types/guardian_enrollment_date.py delete mode 100644 src/auth0/management/types/guardian_enrollment_factor_enum.py delete mode 100644 src/auth0/management/types/guardian_enrollment_status.py delete mode 100644 src/auth0/management/types/guardian_factor.py delete mode 100644 src/auth0/management/types/guardian_factor_name_enum.py delete mode 100644 src/auth0/management/types/guardian_factor_phone_factor_message_type_enum.py delete mode 100644 src/auth0/management/types/guardian_factor_settings.py delete mode 100644 src/auth0/management/types/guardian_factors_provider_push_notification_provider_data_enum.py delete mode 100644 src/auth0/management/types/guardian_factors_provider_sms_provider_enum.py delete mode 100644 src/auth0/management/types/hook.py delete mode 100644 src/auth0/management/types/hook_dependencies.py delete mode 100644 src/auth0/management/types/hook_trigger_id_enum.py delete mode 100644 src/auth0/management/types/http_custom_header.py delete mode 100644 src/auth0/management/types/identity.py delete mode 100644 src/auth0/management/types/identity_assertion_authorization_grant.py delete mode 100644 src/auth0/management/types/identity_provider_enum.py delete mode 100644 src/auth0/management/types/identity_provider_only_auth_0_enum.py delete mode 100644 src/auth0/management/types/import_encryption_key_response_content.py delete mode 100644 src/auth0/management/types/include_user_profile_size_header_enum.py delete mode 100644 src/auth0/management/types/integration.py delete mode 100644 src/auth0/management/types/integration_feature_type_enum.py delete mode 100644 src/auth0/management/types/integration_release.py delete mode 100644 src/auth0/management/types/integration_required_param.py delete mode 100644 src/auth0/management/types/integration_required_param_option.py delete mode 100644 src/auth0/management/types/integration_required_param_type_enum.py delete mode 100644 src/auth0/management/types/integration_sem_ver.py delete mode 100644 src/auth0/management/types/internal_server_error_body.py delete mode 100644 src/auth0/management/types/internal_server_error_body_error.py delete mode 100644 src/auth0/management/types/job_file_format_enum.py delete mode 100644 src/auth0/management/types/linked_client_configuration.py delete mode 100644 src/auth0/management/types/list_action_bindings_paginated_response_content.py delete mode 100644 src/auth0/management/types/list_action_triggers_response_content.py delete mode 100644 src/auth0/management/types/list_action_versions_paginated_response_content.py delete mode 100644 src/auth0/management/types/list_actions_paginated_response_content.py delete mode 100644 src/auth0/management/types/list_aculs_offset_paginated_response_content.py delete mode 100644 src/auth0/management/types/list_aculs_response_content_item.py delete mode 100644 src/auth0/management/types/list_agents_response_content.py delete mode 100644 src/auth0/management/types/list_branding_phone_providers_response_content.py delete mode 100644 src/auth0/management/types/list_client_connections_response_content.py delete mode 100644 src/auth0/management/types/list_client_grant_organizations_paginated_response_content.py delete mode 100644 src/auth0/management/types/list_client_grant_paginated_response_content.py delete mode 100644 src/auth0/management/types/list_client_profiles_paginated_response_content.py delete mode 100644 src/auth0/management/types/list_clients_offset_paginated_response_content.py delete mode 100644 src/auth0/management/types/list_connection_profile_template_response_content.py delete mode 100644 src/auth0/management/types/list_connection_profiles_paginated_response_content.py delete mode 100644 src/auth0/management/types/list_connections_checkpoint_paginated_response_content.py delete mode 100644 src/auth0/management/types/list_custom_domains_response_content.py delete mode 100644 src/auth0/management/types/list_device_credentials_offset_paginated_response_content.py delete mode 100644 src/auth0/management/types/list_directory_provisionings_response_content.py delete mode 100644 src/auth0/management/types/list_encryption_key_offset_paginated_response_content.py delete mode 100644 src/auth0/management/types/list_event_stream_deliveries_response_content.py delete mode 100644 src/auth0/management/types/list_event_streams_response_content.py delete mode 100644 src/auth0/management/types/list_experiments_response_content.py delete mode 100644 src/auth0/management/types/list_feature_flags_response_content.py delete mode 100644 src/auth0/management/types/list_flow_executions_paginated_response_content.py delete mode 100644 src/auth0/management/types/list_flows_offset_paginated_response_content.py delete mode 100644 src/auth0/management/types/list_flows_request_parameters_hydrate_enum.py delete mode 100644 src/auth0/management/types/list_flows_vault_connections_offset_paginated_response_content.py delete mode 100644 src/auth0/management/types/list_forms_offset_paginated_response_content.py delete mode 100644 src/auth0/management/types/list_group_roles_response_content.py delete mode 100644 src/auth0/management/types/list_groups_paginated_response_content.py delete mode 100644 src/auth0/management/types/list_guardian_policies_response_content.py delete mode 100644 src/auth0/management/types/list_hooks_offset_paginated_response_content.py delete mode 100644 src/auth0/management/types/list_log_offset_paginated_response_content.py delete mode 100644 src/auth0/management/types/list_network_acls_offset_paginated_response_content.py delete mode 100644 src/auth0/management/types/list_organization_all_connections_offset_paginated_response_content.py delete mode 100644 src/auth0/management/types/list_organization_client_grants_offset_paginated_response_content.py delete mode 100644 src/auth0/management/types/list_organization_clients_response_content.py delete mode 100644 src/auth0/management/types/list_organization_connections_offset_paginated_response_content.py delete mode 100644 src/auth0/management/types/list_organization_discovery_domains_response_content.py delete mode 100644 src/auth0/management/types/list_organization_group_roles_response_content.py delete mode 100644 src/auth0/management/types/list_organization_groups_response_content.py delete mode 100644 src/auth0/management/types/list_organization_invitations_offset_paginated_response_content.py delete mode 100644 src/auth0/management/types/list_organization_member_effective_roles_response_content.py delete mode 100644 src/auth0/management/types/list_organization_member_role_source_groups_response_content.py delete mode 100644 src/auth0/management/types/list_organization_member_roles_offset_paginated_response_content.py delete mode 100644 src/auth0/management/types/list_organization_members_paginated_response_content.py delete mode 100644 src/auth0/management/types/list_organization_role_groups_response_content.py delete mode 100644 src/auth0/management/types/list_organization_role_members_response_content.py delete mode 100644 src/auth0/management/types/list_organizations_paginated_response_content.py delete mode 100644 src/auth0/management/types/list_phone_templates_response_content.py delete mode 100644 src/auth0/management/types/list_portals_response_content.py delete mode 100644 src/auth0/management/types/list_rate_limit_policies_paginated_response_content.py delete mode 100644 src/auth0/management/types/list_refresh_tokens_paginated_response_content.py delete mode 100644 src/auth0/management/types/list_resource_server_offset_paginated_response_content.py delete mode 100644 src/auth0/management/types/list_role_groups_response_content.py delete mode 100644 src/auth0/management/types/list_role_permissions_offset_paginated_response_content.py delete mode 100644 src/auth0/management/types/list_role_users_paginated_response_content.py delete mode 100644 src/auth0/management/types/list_roles_offset_paginated_response_content.py delete mode 100644 src/auth0/management/types/list_rules_offset_paginated_response_content.py delete mode 100644 src/auth0/management/types/list_scim_configurations_response_content.py delete mode 100644 src/auth0/management/types/list_segments_response_content.py delete mode 100644 src/auth0/management/types/list_self_service_profile_custom_text_response_content.py delete mode 100644 src/auth0/management/types/list_self_service_profiles_paginated_response_content.py delete mode 100644 src/auth0/management/types/list_synchronized_groups_response_content.py delete mode 100644 src/auth0/management/types/list_token_exchange_profile_response_content.py delete mode 100644 src/auth0/management/types/list_user_attribute_profile_template_response_content.py delete mode 100644 src/auth0/management/types/list_user_attribute_profiles_paginated_response_content.py delete mode 100644 src/auth0/management/types/list_user_authentication_methods_offset_paginated_response_content.py delete mode 100644 src/auth0/management/types/list_user_blocks_by_identifier_response_content.py delete mode 100644 src/auth0/management/types/list_user_blocks_response_content.py delete mode 100644 src/auth0/management/types/list_user_connected_accounts_response_content.py delete mode 100644 src/auth0/management/types/list_user_consent_signing_keys_response_content.py delete mode 100644 src/auth0/management/types/list_user_effective_permission_role_sources_response_content.py delete mode 100644 src/auth0/management/types/list_user_effective_permissions_response_content.py delete mode 100644 src/auth0/management/types/list_user_effective_roles_response_content.py delete mode 100644 src/auth0/management/types/list_user_grants_offset_paginated_response_content.py delete mode 100644 src/auth0/management/types/list_user_organizations_offset_paginated_response_content.py delete mode 100644 src/auth0/management/types/list_user_permissions_offset_paginated_response_content.py delete mode 100644 src/auth0/management/types/list_user_role_source_groups_response_content.py delete mode 100644 src/auth0/management/types/list_user_roles_offset_paginated_response_content.py delete mode 100644 src/auth0/management/types/list_user_sessions_paginated_response_content.py delete mode 100644 src/auth0/management/types/list_users_offset_paginated_response_content.py delete mode 100644 src/auth0/management/types/list_variations_response_content.py delete mode 100644 src/auth0/management/types/list_verifiable_credential_templates_paginated_response_content.py delete mode 100644 src/auth0/management/types/log.py delete mode 100644 src/auth0/management/types/log_date.py delete mode 100644 src/auth0/management/types/log_date_object.py delete mode 100644 src/auth0/management/types/log_details.py delete mode 100644 src/auth0/management/types/log_location_info.py delete mode 100644 src/auth0/management/types/log_security_context.py delete mode 100644 src/auth0/management/types/log_stream_datadog_enum.py delete mode 100644 src/auth0/management/types/log_stream_datadog_region_enum.py delete mode 100644 src/auth0/management/types/log_stream_datadog_response_schema.py delete mode 100644 src/auth0/management/types/log_stream_datadog_sink.py delete mode 100644 src/auth0/management/types/log_stream_event_bridge_enum.py delete mode 100644 src/auth0/management/types/log_stream_event_bridge_response_schema.py delete mode 100644 src/auth0/management/types/log_stream_event_bridge_sink.py delete mode 100644 src/auth0/management/types/log_stream_event_bridge_sink_region_enum.py delete mode 100644 src/auth0/management/types/log_stream_event_grid_enum.py delete mode 100644 src/auth0/management/types/log_stream_event_grid_region_enum.py delete mode 100644 src/auth0/management/types/log_stream_event_grid_response_schema.py delete mode 100644 src/auth0/management/types/log_stream_event_grid_sink.py delete mode 100644 src/auth0/management/types/log_stream_filter.py delete mode 100644 src/auth0/management/types/log_stream_filter_group_name_enum.py delete mode 100644 src/auth0/management/types/log_stream_filter_type_enum.py delete mode 100644 src/auth0/management/types/log_stream_http_content_format_enum.py delete mode 100644 src/auth0/management/types/log_stream_http_enum.py delete mode 100644 src/auth0/management/types/log_stream_http_response_schema.py delete mode 100644 src/auth0/management/types/log_stream_http_sink.py delete mode 100644 src/auth0/management/types/log_stream_mixpanel_enum.py delete mode 100644 src/auth0/management/types/log_stream_mixpanel_region_enum.py delete mode 100644 src/auth0/management/types/log_stream_mixpanel_response_schema.py delete mode 100644 src/auth0/management/types/log_stream_mixpanel_sink.py delete mode 100644 src/auth0/management/types/log_stream_mixpanel_sink_patch.py delete mode 100644 src/auth0/management/types/log_stream_pii_algorithm_enum.py delete mode 100644 src/auth0/management/types/log_stream_pii_config.py delete mode 100644 src/auth0/management/types/log_stream_pii_log_fields_enum.py delete mode 100644 src/auth0/management/types/log_stream_pii_method_enum.py delete mode 100644 src/auth0/management/types/log_stream_response_schema.py delete mode 100644 src/auth0/management/types/log_stream_segment_enum.py delete mode 100644 src/auth0/management/types/log_stream_segment_response_schema.py delete mode 100644 src/auth0/management/types/log_stream_segment_sink.py delete mode 100644 src/auth0/management/types/log_stream_segment_sink_write_key.py delete mode 100644 src/auth0/management/types/log_stream_sink_patch.py delete mode 100644 src/auth0/management/types/log_stream_splunk_enum.py delete mode 100644 src/auth0/management/types/log_stream_splunk_response_schema.py delete mode 100644 src/auth0/management/types/log_stream_splunk_sink.py delete mode 100644 src/auth0/management/types/log_stream_status_enum.py delete mode 100644 src/auth0/management/types/log_stream_sumo_enum.py delete mode 100644 src/auth0/management/types/log_stream_sumo_response_schema.py delete mode 100644 src/auth0/management/types/log_stream_sumo_sink.py delete mode 100644 src/auth0/management/types/mdl_presentation_properties.py delete mode 100644 src/auth0/management/types/mdl_presentation_request.py delete mode 100644 src/auth0/management/types/mdl_presentation_request_properties.py delete mode 100644 src/auth0/management/types/mfa_policy_enum.py delete mode 100644 src/auth0/management/types/native_social_login.py delete mode 100644 src/auth0/management/types/native_social_login_apple.py delete mode 100644 src/auth0/management/types/native_social_login_apple_patch.py delete mode 100644 src/auth0/management/types/native_social_login_facebook.py delete mode 100644 src/auth0/management/types/native_social_login_facebook_patch.py delete mode 100644 src/auth0/management/types/native_social_login_google.py delete mode 100644 src/auth0/management/types/native_social_login_google_patch.py delete mode 100644 src/auth0/management/types/native_social_login_patch.py delete mode 100644 src/auth0/management/types/network_acl_action.py delete mode 100644 src/auth0/management/types/network_acl_action_allow_enum.py delete mode 100644 src/auth0/management/types/network_acl_action_block_enum.py delete mode 100644 src/auth0/management/types/network_acl_action_log_enum.py delete mode 100644 src/auth0/management/types/network_acl_action_redirect_enum.py delete mode 100644 src/auth0/management/types/network_acl_http_message_signature.py delete mode 100644 src/auth0/management/types/network_acl_http_message_signature_key.py delete mode 100644 src/auth0/management/types/network_acl_http_message_signature_keys.py delete mode 100644 src/auth0/management/types/network_acl_key.py delete mode 100644 src/auth0/management/types/network_acl_key_algorithm_enum.py delete mode 100644 src/auth0/management/types/network_acl_match.py delete mode 100644 src/auth0/management/types/network_acl_match_connecting_ipv_4_cidr.py delete mode 100644 src/auth0/management/types/network_acl_match_connecting_ipv_6_cidr.py delete mode 100644 src/auth0/management/types/network_acl_match_ipv_4_cidr.py delete mode 100644 src/auth0/management/types/network_acl_match_ipv_6_cidr.py delete mode 100644 src/auth0/management/types/network_acl_rule.py delete mode 100644 src/auth0/management/types/network_acl_rule_match_all_enum.py delete mode 100644 src/auth0/management/types/network_acl_rule_scope_enum.py delete mode 100644 src/auth0/management/types/network_acls_response_content.py delete mode 100644 src/auth0/management/types/not_found_error_body.py delete mode 100644 src/auth0/management/types/not_found_error_body_error.py delete mode 100644 src/auth0/management/types/not_found_schema.py delete mode 100644 src/auth0/management/types/not_found_schema_error.py delete mode 100644 src/auth0/management/types/oauth_scope.py delete mode 100644 src/auth0/management/types/organization.py delete mode 100644 src/auth0/management/types/organization_access_level_enum.py delete mode 100644 src/auth0/management/types/organization_access_level_enum_with_null.py delete mode 100644 src/auth0/management/types/organization_all_connection_post.py delete mode 100644 src/auth0/management/types/organization_branding.py delete mode 100644 src/auth0/management/types/organization_branding_colors.py delete mode 100644 src/auth0/management/types/organization_client.py delete mode 100644 src/auth0/management/types/organization_client_association.py delete mode 100644 src/auth0/management/types/organization_client_grant.py delete mode 100644 src/auth0/management/types/organization_client_metadata.py delete mode 100644 src/auth0/management/types/organization_client_metadata_organization_usage_enum.py delete mode 100644 src/auth0/management/types/organization_connection.py delete mode 100644 src/auth0/management/types/organization_connection_information.py delete mode 100644 src/auth0/management/types/organization_discovery_domain.py delete mode 100644 src/auth0/management/types/organization_discovery_domain_status.py delete mode 100644 src/auth0/management/types/organization_enabled_connection.py delete mode 100644 src/auth0/management/types/organization_invitation.py delete mode 100644 src/auth0/management/types/organization_invitation_invitee.py delete mode 100644 src/auth0/management/types/organization_invitation_inviter.py delete mode 100644 src/auth0/management/types/organization_member.py delete mode 100644 src/auth0/management/types/organization_member_access_level_enum.py delete mode 100644 src/auth0/management/types/organization_member_access_level_enum_with_null.py delete mode 100644 src/auth0/management/types/organization_member_effective_role.py delete mode 100644 src/auth0/management/types/organization_member_effective_role_source.py delete mode 100644 src/auth0/management/types/organization_member_role.py delete mode 100644 src/auth0/management/types/organization_metadata.py delete mode 100644 src/auth0/management/types/organization_sort_field_enum.py delete mode 100644 src/auth0/management/types/organization_third_party_client_access_enum.py delete mode 100644 src/auth0/management/types/organization_usage_enum.py delete mode 100644 src/auth0/management/types/page_component.py delete mode 100644 src/auth0/management/types/page_component_auth_0_form.py delete mode 100644 src/auth0/management/types/page_component_auth_0_form_config.py delete mode 100644 src/auth0/management/types/page_component_auth_0_media_image.py delete mode 100644 src/auth0/management/types/page_component_auth_0_media_image_config.py delete mode 100644 src/auth0/management/types/page_component_auth_0_my_account_mfa_management.py delete mode 100644 src/auth0/management/types/page_component_auth_0_my_account_mfa_management_config.py delete mode 100644 src/auth0/management/types/page_component_auth_0_my_account_passkey_management.py delete mode 100644 src/auth0/management/types/page_component_auth_0_my_account_passkey_management_config.py delete mode 100644 src/auth0/management/types/page_component_auth_0_my_organization_details_edit.py delete mode 100644 src/auth0/management/types/page_component_auth_0_my_organization_details_edit_config.py delete mode 100644 src/auth0/management/types/page_component_auth_0_my_organization_domain_table.py delete mode 100644 src/auth0/management/types/page_component_auth_0_my_organization_domain_table_config.py delete mode 100644 src/auth0/management/types/page_component_auth_0_my_organization_member_management.py delete mode 100644 src/auth0/management/types/page_component_auth_0_my_organization_member_management_config.py delete mode 100644 src/auth0/management/types/page_component_auth_0_structure_section.py delete mode 100644 src/auth0/management/types/page_component_auth_0_structure_section_config.py delete mode 100644 src/auth0/management/types/page_component_auth_0_structure_section_variant_enum.py delete mode 100644 src/auth0/management/types/page_component_auth_0_structure_separator.py delete mode 100644 src/auth0/management/types/page_component_auth_0_structure_separator_config.py delete mode 100644 src/auth0/management/types/page_component_auth_0_structure_separator_variant_enum.py delete mode 100644 src/auth0/management/types/page_component_auth_0_typography_heading.py delete mode 100644 src/auth0/management/types/page_component_auth_0_typography_heading_config.py delete mode 100644 src/auth0/management/types/page_component_auth_0_typography_rich_text.py delete mode 100644 src/auth0/management/types/page_component_auth_0_typography_rich_text_config.py delete mode 100644 src/auth0/management/types/page_component_no_children.py delete mode 100644 src/auth0/management/types/page_slug.py delete mode 100644 src/auth0/management/types/partial_groups_enum.py delete mode 100644 src/auth0/management/types/partial_phone_template_content.py delete mode 100644 src/auth0/management/types/password_character_type_enum.py delete mode 100644 src/auth0/management/types/password_character_type_rule_policy_enum.py delete mode 100644 src/auth0/management/types/password_default_dictionaries_enum.py delete mode 100644 src/auth0/management/types/password_dictionary_match_type_enum.py delete mode 100644 src/auth0/management/types/password_identical_characters_policy_enum.py delete mode 100644 src/auth0/management/types/password_max_length_exceeded_policy_enum.py delete mode 100644 src/auth0/management/types/password_sequential_characters_policy_enum.py delete mode 100644 src/auth0/management/types/patch_client_credential_response_content.py delete mode 100644 src/auth0/management/types/patch_phone_provider_protection_response_content.py delete mode 100644 src/auth0/management/types/patch_rate_limit_policy_configuration_request_content.py delete mode 100644 src/auth0/management/types/patch_rate_limit_policy_configuration_request_content_action.py delete mode 100644 src/auth0/management/types/patch_rate_limit_policy_configuration_request_content_action_action.py delete mode 100644 src/auth0/management/types/patch_rate_limit_policy_configuration_request_content_one.py delete mode 100644 src/auth0/management/types/patch_rate_limit_policy_configuration_request_content_one_action.py delete mode 100644 src/auth0/management/types/patch_rate_limit_policy_configuration_request_content_zero.py delete mode 100644 src/auth0/management/types/patch_rate_limit_policy_configuration_request_content_zero_action.py delete mode 100644 src/auth0/management/types/patch_supplemental_signals_response_content.py delete mode 100644 src/auth0/management/types/permission_request_payload.py delete mode 100644 src/auth0/management/types/permissions_response_payload.py delete mode 100644 src/auth0/management/types/phone_attribute.py delete mode 100644 src/auth0/management/types/phone_attribute_identifier.py delete mode 100644 src/auth0/management/types/phone_provider_channel_enum.py delete mode 100644 src/auth0/management/types/phone_provider_configuration.py delete mode 100644 src/auth0/management/types/phone_provider_credentials.py delete mode 100644 src/auth0/management/types/phone_provider_delivery_method_enum.py delete mode 100644 src/auth0/management/types/phone_provider_name_enum.py delete mode 100644 src/auth0/management/types/phone_provider_protection_backoff_strategy_enum.py delete mode 100644 src/auth0/management/types/phone_provider_schema_masked.py delete mode 100644 src/auth0/management/types/phone_template.py delete mode 100644 src/auth0/management/types/phone_template_body.py delete mode 100644 src/auth0/management/types/phone_template_content.py delete mode 100644 src/auth0/management/types/phone_template_notification_type_enum.py delete mode 100644 src/auth0/management/types/portal.py delete mode 100644 src/auth0/management/types/portal_client_secret_post.py delete mode 100644 src/auth0/management/types/portal_client_secret_post_request.py delete mode 100644 src/auth0/management/types/portal_client_secret_post_request_token_endpoint_auth_method.py delete mode 100644 src/auth0/management/types/portal_client_secret_post_token_endpoint_auth_method.py delete mode 100644 src/auth0/management/types/portal_custom_code.py delete mode 100644 src/auth0/management/types/portal_custom_code_nullable.py delete mode 100644 src/auth0/management/types/portal_date_time.py delete mode 100644 src/auth0/management/types/portal_id.py delete mode 100644 src/auth0/management/types/portal_name.py delete mode 100644 src/auth0/management/types/portal_navigation.py delete mode 100644 src/auth0/management/types/portal_navigation_nullable.py delete mode 100644 src/auth0/management/types/portal_page.py delete mode 100644 src/auth0/management/types/portal_pages_by_type.py delete mode 100644 src/auth0/management/types/portal_pages_by_type_nullable.py delete mode 100644 src/auth0/management/types/portal_slug.py delete mode 100644 src/auth0/management/types/portal_summary.py delete mode 100644 src/auth0/management/types/position.py delete mode 100644 src/auth0/management/types/post_client_credential_response_content.py delete mode 100644 src/auth0/management/types/post_connection_keys_alg_enum.py delete mode 100644 src/auth0/management/types/post_connection_keys_request_content.py delete mode 100644 src/auth0/management/types/post_connections_keys_response_content.py delete mode 100644 src/auth0/management/types/post_connections_keys_response_content_item.py delete mode 100644 src/auth0/management/types/preferred_authentication_method_enum.py delete mode 100644 src/auth0/management/types/preview_cimd_metadata_response_content.py delete mode 100644 src/auth0/management/types/prompt_group_name_enum.py delete mode 100644 src/auth0/management/types/prompt_language_enum.py delete mode 100644 src/auth0/management/types/public_key_credential.py delete mode 100644 src/auth0/management/types/public_key_credential_algorithm_enum.py delete mode 100644 src/auth0/management/types/public_key_credential_type_enum.py delete mode 100644 src/auth0/management/types/rate_limit_policy.py delete mode 100644 src/auth0/management/types/rate_limit_policy_configuration.py delete mode 100644 src/auth0/management/types/rate_limit_policy_configuration_action.py delete mode 100644 src/auth0/management/types/rate_limit_policy_configuration_action_action.py delete mode 100644 src/auth0/management/types/rate_limit_policy_configuration_one.py delete mode 100644 src/auth0/management/types/rate_limit_policy_configuration_one_action.py delete mode 100644 src/auth0/management/types/rate_limit_policy_configuration_zero.py delete mode 100644 src/auth0/management/types/rate_limit_policy_configuration_zero_action.py delete mode 100644 src/auth0/management/types/rate_limit_policy_consumer_enum.py delete mode 100644 src/auth0/management/types/rate_limit_policy_resource_enum.py delete mode 100644 src/auth0/management/types/refresh_token_date.py delete mode 100644 src/auth0/management/types/refresh_token_date_object.py delete mode 100644 src/auth0/management/types/refresh_token_device.py delete mode 100644 src/auth0/management/types/refresh_token_expiration_type_enum.py delete mode 100644 src/auth0/management/types/refresh_token_metadata.py delete mode 100644 src/auth0/management/types/refresh_token_resource_server.py delete mode 100644 src/auth0/management/types/refresh_token_response_content.py delete mode 100644 src/auth0/management/types/refresh_token_rotation_type_enum.py delete mode 100644 src/auth0/management/types/refresh_token_session_id.py delete mode 100644 src/auth0/management/types/regenerate_users_recovery_code_response_content.py delete mode 100644 src/auth0/management/types/register_cimd_client_response_content.py delete mode 100644 src/auth0/management/types/reset_phone_template_request_content.py delete mode 100644 src/auth0/management/types/reset_phone_template_response_content.py delete mode 100644 src/auth0/management/types/resource_server.py delete mode 100644 src/auth0/management/types/resource_server_access_token.py delete mode 100644 src/auth0/management/types/resource_server_access_token_claims_mapping.py delete mode 100644 src/auth0/management/types/resource_server_access_token_custom_claims_mapping.py delete mode 100644 src/auth0/management/types/resource_server_access_token_custom_claims_mapping_rule.py delete mode 100644 src/auth0/management/types/resource_server_agent_subject_claims_response_enum.py delete mode 100644 src/auth0/management/types/resource_server_agent_subject_claims_schema_enum.py delete mode 100644 src/auth0/management/types/resource_server_authorization_policy.py delete mode 100644 src/auth0/management/types/resource_server_consent_policy_enum.py delete mode 100644 src/auth0/management/types/resource_server_proof_of_possession.py delete mode 100644 src/auth0/management/types/resource_server_proof_of_possession_mechanism_enum.py delete mode 100644 src/auth0/management/types/resource_server_proof_of_possession_required_for_enum.py delete mode 100644 src/auth0/management/types/resource_server_scope.py delete mode 100644 src/auth0/management/types/resource_server_search_response.py delete mode 100644 src/auth0/management/types/resource_server_sort_field_enum.py delete mode 100644 src/auth0/management/types/resource_server_subject_type_authorization.py delete mode 100644 src/auth0/management/types/resource_server_subject_type_authorization_anonymous_user.py delete mode 100644 src/auth0/management/types/resource_server_subject_type_authorization_anonymous_user_policy_enum.py delete mode 100644 src/auth0/management/types/resource_server_subject_type_authorization_client.py delete mode 100644 src/auth0/management/types/resource_server_subject_type_authorization_client_policy_enum.py delete mode 100644 src/auth0/management/types/resource_server_subject_type_authorization_user.py delete mode 100644 src/auth0/management/types/resource_server_subject_type_authorization_user_policy_enum.py delete mode 100644 src/auth0/management/types/resource_server_token_dialect_response_enum.py delete mode 100644 src/auth0/management/types/resource_server_token_dialect_schema_enum.py delete mode 100644 src/auth0/management/types/resource_server_token_encryption.py delete mode 100644 src/auth0/management/types/resource_server_token_encryption_algorithm_enum.py delete mode 100644 src/auth0/management/types/resource_server_token_encryption_format_enum.py delete mode 100644 src/auth0/management/types/resource_server_token_encryption_key.py delete mode 100644 src/auth0/management/types/resource_server_type_enum.py delete mode 100644 src/auth0/management/types/resource_server_verification_key_pem_certificate.py delete mode 100644 src/auth0/management/types/revoked_signing_keys_response_content.py delete mode 100644 src/auth0/management/types/role.py delete mode 100644 src/auth0/management/types/role_group.py delete mode 100644 src/auth0/management/types/role_member.py delete mode 100644 src/auth0/management/types/role_owner_id.py delete mode 100644 src/auth0/management/types/role_owner_id_filter.py delete mode 100644 src/auth0/management/types/role_type_enum.py delete mode 100644 src/auth0/management/types/role_user.py delete mode 100644 src/auth0/management/types/rollback_action_module_response_content.py delete mode 100644 src/auth0/management/types/rotate_client_secret_response_content.py delete mode 100644 src/auth0/management/types/rotate_connection_keys_request_content.py delete mode 100644 src/auth0/management/types/rotate_connection_keys_signing_alg_enum.py delete mode 100644 src/auth0/management/types/rotate_connections_keys_response_content.py delete mode 100644 src/auth0/management/types/rotate_signing_keys_response_content.py delete mode 100644 src/auth0/management/types/rule.py delete mode 100644 src/auth0/management/types/rules_config.py delete mode 100644 src/auth0/management/types/scim_configuration.py delete mode 100644 src/auth0/management/types/scim_mapping_item.py delete mode 100644 src/auth0/management/types/scim_token_item.py delete mode 100644 src/auth0/management/types/screen_group_name_enum.py delete mode 100644 src/auth0/management/types/search_client_grants_response_content.py delete mode 100644 src/auth0/management/types/search_clients_response_content.py delete mode 100644 src/auth0/management/types/search_engine_versions_enum.py delete mode 100644 src/auth0/management/types/search_organization.py delete mode 100644 src/auth0/management/types/search_organizations_paginated_response_content.py delete mode 100644 src/auth0/management/types/search_parser_enum.py delete mode 100644 src/auth0/management/types/search_resource_servers_response_content.py delete mode 100644 src/auth0/management/types/segment.py delete mode 100644 src/auth0/management/types/segment_contains_expression.py delete mode 100644 src/auth0/management/types/segment_ends_with_expression.py delete mode 100644 src/auth0/management/types/segment_exists_expression.py delete mode 100644 src/auth0/management/types/segment_match_conditions.py delete mode 100644 src/auth0/management/types/segment_match_expression.py delete mode 100644 src/auth0/management/types/segment_not_match_conditions.py delete mode 100644 src/auth0/management/types/segment_rule.py delete mode 100644 src/auth0/management/types/segment_starts_with_expression.py delete mode 100644 src/auth0/management/types/segment_status_enum.py delete mode 100644 src/auth0/management/types/segment_type_enum.py delete mode 100644 src/auth0/management/types/segment_type_filter_enum.py delete mode 100644 src/auth0/management/types/self_service_profile.py delete mode 100644 src/auth0/management/types/self_service_profile_allowed_strategy_enum.py delete mode 100644 src/auth0/management/types/self_service_profile_branding.py delete mode 100644 src/auth0/management/types/self_service_profile_branding_colors.py delete mode 100644 src/auth0/management/types/self_service_profile_branding_properties.py delete mode 100644 src/auth0/management/types/self_service_profile_custom_text_language_enum.py delete mode 100644 src/auth0/management/types/self_service_profile_custom_text_page_enum.py delete mode 100644 src/auth0/management/types/self_service_profile_description.py delete mode 100644 src/auth0/management/types/self_service_profile_sso_ticket_connection_config.py delete mode 100644 src/auth0/management/types/self_service_profile_sso_ticket_connection_options.py delete mode 100644 src/auth0/management/types/self_service_profile_sso_ticket_domain_aliases_config.py delete mode 100644 src/auth0/management/types/self_service_profile_sso_ticket_domain_verification_enum.py delete mode 100644 src/auth0/management/types/self_service_profile_sso_ticket_enabled_features.py delete mode 100644 src/auth0/management/types/self_service_profile_sso_ticket_enabled_organization.py delete mode 100644 src/auth0/management/types/self_service_profile_sso_ticket_google_workspace_config.py delete mode 100644 src/auth0/management/types/self_service_profile_sso_ticket_idp_initiated_client_protocol_enum.py delete mode 100644 src/auth0/management/types/self_service_profile_sso_ticket_idp_initiated_options.py delete mode 100644 src/auth0/management/types/self_service_profile_sso_ticket_provisioning_config.py delete mode 100644 src/auth0/management/types/self_service_profile_sso_ticket_provisioning_scope_enum.py delete mode 100644 src/auth0/management/types/self_service_profile_sso_ticket_universal_logout_config.py delete mode 100644 src/auth0/management/types/self_service_profile_user_attribute.py delete mode 100644 src/auth0/management/types/self_service_profile_user_attributes.py rename src/auth0/management/types/{flow_action_activecampaign_list_contacts_params.py => send_base.py} (77%) rename src/auth0/management/types/{flow_action_http_send_request_params_payload_object.py => send_base_type.py} (58%) rename src/auth0/management/types/{custom_provider_credentials.py => send_by_content.py} (88%) rename src/auth0/management/types/{extensibility_email_provider_credentials.py => send_by_template.py} (87%) create mode 100644 src/auth0/management/types/send_params.py rename src/auth0/management/types/{flow_action_flow_do_nothing_params.py => send_params_content.py} (88%) rename src/auth0/management/types/{form_block_next_button_config.py => send_params_template_id.py} (87%) rename src/auth0/management/types/{flow_action_flow_map_value_type.py => send_params_type.py} (59%) delete mode 100644 src/auth0/management/types/session_actor_claim_value.py delete mode 100644 src/auth0/management/types/session_actor_metadata.py delete mode 100644 src/auth0/management/types/session_authentication_signal.py delete mode 100644 src/auth0/management/types/session_authentication_signals.py delete mode 100644 src/auth0/management/types/session_client_metadata.py delete mode 100644 src/auth0/management/types/session_cookie_metadata.py delete mode 100644 src/auth0/management/types/session_cookie_metadata_mode_enum.py delete mode 100644 src/auth0/management/types/session_cookie_mode_enum.py delete mode 100644 src/auth0/management/types/session_cookie_schema.py delete mode 100644 src/auth0/management/types/session_date.py delete mode 100644 src/auth0/management/types/session_device_metadata.py delete mode 100644 src/auth0/management/types/session_ip.py delete mode 100644 src/auth0/management/types/session_metadata.py delete mode 100644 src/auth0/management/types/session_response_content.py delete mode 100644 src/auth0/management/types/set_custom_signing_keys_response_content.py delete mode 100644 src/auth0/management/types/set_email_factor_settings_response_content.py delete mode 100644 src/auth0/management/types/set_email_template_response_content.py delete mode 100644 src/auth0/management/types/set_guardian_factor_duo_settings_response_content.py delete mode 100644 src/auth0/management/types/set_guardian_factor_phone_message_types_response_content.py delete mode 100644 src/auth0/management/types/set_guardian_factor_phone_templates_response_content.py delete mode 100644 src/auth0/management/types/set_guardian_factor_response_content.py delete mode 100644 src/auth0/management/types/set_guardian_factor_sms_templates_response_content.py delete mode 100644 src/auth0/management/types/set_guardian_factors_provider_phone_response_content.py delete mode 100644 src/auth0/management/types/set_guardian_factors_provider_phone_twilio_response_content.py delete mode 100644 src/auth0/management/types/set_guardian_factors_provider_push_notification_apns_response_content.py delete mode 100644 src/auth0/management/types/set_guardian_factors_provider_push_notification_fcm_response_content.py delete mode 100644 src/auth0/management/types/set_guardian_factors_provider_push_notification_fcmv_1_response_content.py delete mode 100644 src/auth0/management/types/set_guardian_factors_provider_push_notification_response_content.py delete mode 100644 src/auth0/management/types/set_guardian_factors_provider_push_notification_sns_response_content.py delete mode 100644 src/auth0/management/types/set_guardian_factors_provider_sms_response_content.py delete mode 100644 src/auth0/management/types/set_guardian_factors_provider_sms_twilio_response_content.py delete mode 100644 src/auth0/management/types/set_guardian_policies_request_content.py delete mode 100644 src/auth0/management/types/set_guardian_policies_response_content.py delete mode 100644 src/auth0/management/types/set_guardian_settings_response_content.py delete mode 100644 src/auth0/management/types/set_network_acls_response_content.py delete mode 100644 src/auth0/management/types/set_partials_request_content.py delete mode 100644 src/auth0/management/types/set_phone_factor_settings_response_content.py delete mode 100644 src/auth0/management/types/set_rules_config_response_content.py delete mode 100644 src/auth0/management/types/set_self_service_profile_custom_text_request_content.py delete mode 100644 src/auth0/management/types/set_self_service_profile_custom_text_response_content.py delete mode 100644 src/auth0/management/types/set_user_authentication_method_response_content.py delete mode 100644 src/auth0/management/types/set_user_authentication_methods.py delete mode 100644 src/auth0/management/types/set_user_authentication_methods_request_content.py delete mode 100644 src/auth0/management/types/sets_custom_texts_by_language_request_content.py delete mode 100644 src/auth0/management/types/sidebar.py delete mode 100644 src/auth0/management/types/sidebar_component.py delete mode 100644 src/auth0/management/types/sidebar_component_auth_0_external_link.py delete mode 100644 src/auth0/management/types/sidebar_component_auth_0_external_link_config.py delete mode 100644 src/auth0/management/types/sidebar_component_auth_0_external_link_v_2.py delete mode 100644 src/auth0/management/types/sidebar_component_auth_0_external_link_v_2_config.py delete mode 100644 src/auth0/management/types/sidebar_component_auth_0_internal_link.py delete mode 100644 src/auth0/management/types/sidebar_component_auth_0_internal_link_config.py delete mode 100644 src/auth0/management/types/sidebar_component_auth_0_internal_link_v_2.py delete mode 100644 src/auth0/management/types/sidebar_component_auth_0_internal_link_v_2_config.py delete mode 100644 src/auth0/management/types/signing_algorithm_enum.py delete mode 100644 src/auth0/management/types/signing_keys.py delete mode 100644 src/auth0/management/types/signing_keys_date.py delete mode 100644 src/auth0/management/types/signup_schema.py delete mode 100644 src/auth0/management/types/signup_status_enum.py delete mode 100644 src/auth0/management/types/signup_verification.py delete mode 100644 src/auth0/management/types/signup_verified.py delete mode 100644 src/auth0/management/types/supported_locales.py delete mode 100644 src/auth0/management/types/suspicious_ip_throttling_allowlist.py delete mode 100644 src/auth0/management/types/suspicious_ip_throttling_allowlist_item.py delete mode 100644 src/auth0/management/types/suspicious_ip_throttling_pre_custom_token_exchange_stage.py delete mode 100644 src/auth0/management/types/suspicious_ip_throttling_pre_login_stage.py delete mode 100644 src/auth0/management/types/suspicious_ip_throttling_pre_user_registration_stage.py delete mode 100644 src/auth0/management/types/suspicious_ip_throttling_shields_enum.py delete mode 100644 src/auth0/management/types/suspicious_ip_throttling_stage.py delete mode 100644 src/auth0/management/types/synchronize_groups_enum.py delete mode 100644 src/auth0/management/types/synchronized_group_payload.py delete mode 100644 src/auth0/management/types/synchronized_group_selection_id.py delete mode 100644 src/auth0/management/types/system_role_owner_id.py delete mode 100644 src/auth0/management/types/tenant_oidc_logout_settings.py delete mode 100644 src/auth0/management/types/tenant_settings_country_codes.py delete mode 100644 src/auth0/management/types/tenant_settings_country_codes_mode.py delete mode 100644 src/auth0/management/types/tenant_settings_country_codes_mode_response.py delete mode 100644 src/auth0/management/types/tenant_settings_country_codes_response.py delete mode 100644 src/auth0/management/types/tenant_settings_device_flow.py delete mode 100644 src/auth0/management/types/tenant_settings_device_flow_charset.py delete mode 100644 src/auth0/management/types/tenant_settings_dynamic_client_registration_security_mode.py delete mode 100644 src/auth0/management/types/tenant_settings_error_page.py delete mode 100644 src/auth0/management/types/tenant_settings_flags.py delete mode 100644 src/auth0/management/types/tenant_settings_guardian_page.py delete mode 100644 src/auth0/management/types/tenant_settings_mtls.py delete mode 100644 src/auth0/management/types/tenant_settings_nullable_security_headers.py delete mode 100644 src/auth0/management/types/tenant_settings_password_page.py delete mode 100644 src/auth0/management/types/tenant_settings_resource_parameter_profile.py delete mode 100644 src/auth0/management/types/tenant_settings_sessions.py delete mode 100644 src/auth0/management/types/tenant_settings_sessions_anonymous.py delete mode 100644 src/auth0/management/types/tenant_settings_supported_locales_enum.py delete mode 100644 src/auth0/management/types/test_action_payload.py delete mode 100644 src/auth0/management/types/test_action_response_content.py delete mode 100644 src/auth0/management/types/test_action_result_payload.py delete mode 100644 src/auth0/management/types/test_custom_domain_response_content.py delete mode 100644 src/auth0/management/types/test_event_data_content.py delete mode 100644 src/auth0/management/types/third_party_client_access_config.py delete mode 100644 src/auth0/management/types/token_exchange_profile_response_content.py delete mode 100644 src/auth0/management/types/token_exchange_profile_type_enum.py delete mode 100644 src/auth0/management/types/token_quota.py delete mode 100644 src/auth0/management/types/token_quota_client_credentials.py delete mode 100644 src/auth0/management/types/token_quota_configuration.py delete mode 100644 src/auth0/management/types/token_vault_privileged_access_grant.py delete mode 100644 src/auth0/management/types/token_vault_privileged_access_ip_allowlist_entry.py delete mode 100644 src/auth0/management/types/too_many_requests_error_body.py delete mode 100644 src/auth0/management/types/too_many_requests_error_body_error.py delete mode 100644 src/auth0/management/types/too_many_requests_schema.py delete mode 100644 src/auth0/management/types/too_many_requests_schema_error.py delete mode 100644 src/auth0/management/types/twilio_provider_configuration.py delete mode 100644 src/auth0/management/types/twilio_provider_credentials.py delete mode 100644 src/auth0/management/types/twilio_provider_delivery_method_enum.py delete mode 100644 src/auth0/management/types/unauthorized_schema.py delete mode 100644 src/auth0/management/types/unauthorized_schema_error.py delete mode 100644 src/auth0/management/types/universal_login_experience_enum.py delete mode 100644 src/auth0/management/types/update_action_bindings_response_content.py delete mode 100644 src/auth0/management/types/update_action_module_response_content.py delete mode 100644 src/auth0/management/types/update_action_response_content.py delete mode 100644 src/auth0/management/types/update_acul_response_content.py delete mode 100644 src/auth0/management/types/update_anonymous_sessions.py delete mode 100644 src/auth0/management/types/update_attack_protection_captcha_response_content.py delete mode 100644 src/auth0/management/types/update_bot_detection_settings_response_content.py delete mode 100644 src/auth0/management/types/update_branding_colors.py delete mode 100644 src/auth0/management/types/update_branding_font.py delete mode 100644 src/auth0/management/types/update_branding_page_background.py delete mode 100644 src/auth0/management/types/update_branding_phone_provider_response_content.py delete mode 100644 src/auth0/management/types/update_branding_response_content.py delete mode 100644 src/auth0/management/types/update_branding_theme_response_content.py delete mode 100644 src/auth0/management/types/update_breached_password_detection_settings_response_content.py delete mode 100644 src/auth0/management/types/update_brute_force_settings_response_content.py delete mode 100644 src/auth0/management/types/update_client_grant_response_content.py delete mode 100644 src/auth0/management/types/update_client_response_content.py delete mode 100644 src/auth0/management/types/update_connection_options.py delete mode 100644 src/auth0/management/types/update_connection_profile_response_content.py delete mode 100644 src/auth0/management/types/update_connection_request_content_ad.py delete mode 100644 src/auth0/management/types/update_connection_request_content_adfs.py delete mode 100644 src/auth0/management/types/update_connection_request_content_amazon.py delete mode 100644 src/auth0/management/types/update_connection_request_content_apple.py delete mode 100644 src/auth0/management/types/update_connection_request_content_auth_0.py delete mode 100644 src/auth0/management/types/update_connection_request_content_auth_0_oidc.py delete mode 100644 src/auth0/management/types/update_connection_request_content_azure_ad.py delete mode 100644 src/auth0/management/types/update_connection_request_content_baidu.py delete mode 100644 src/auth0/management/types/update_connection_request_content_bitbucket.py delete mode 100644 src/auth0/management/types/update_connection_request_content_bitly.py delete mode 100644 src/auth0/management/types/update_connection_request_content_box.py delete mode 100644 src/auth0/management/types/update_connection_request_content_custom.py delete mode 100644 src/auth0/management/types/update_connection_request_content_daccount.py delete mode 100644 src/auth0/management/types/update_connection_request_content_dropbox.py delete mode 100644 src/auth0/management/types/update_connection_request_content_dwolla.py delete mode 100644 src/auth0/management/types/update_connection_request_content_email.py delete mode 100644 src/auth0/management/types/update_connection_request_content_evernote.py delete mode 100644 src/auth0/management/types/update_connection_request_content_evernote_sandbox.py delete mode 100644 src/auth0/management/types/update_connection_request_content_exact.py delete mode 100644 src/auth0/management/types/update_connection_request_content_facebook.py delete mode 100644 src/auth0/management/types/update_connection_request_content_fitbit.py delete mode 100644 src/auth0/management/types/update_connection_request_content_git_hub.py delete mode 100644 src/auth0/management/types/update_connection_request_content_google_apps.py delete mode 100644 src/auth0/management/types/update_connection_request_content_google_o_auth_2.py delete mode 100644 src/auth0/management/types/update_connection_request_content_instagram.py delete mode 100644 src/auth0/management/types/update_connection_request_content_ip.py delete mode 100644 src/auth0/management/types/update_connection_request_content_line.py delete mode 100644 src/auth0/management/types/update_connection_request_content_linkedin.py delete mode 100644 src/auth0/management/types/update_connection_request_content_o_auth_1.py delete mode 100644 src/auth0/management/types/update_connection_request_content_o_auth_2.py delete mode 100644 src/auth0/management/types/update_connection_request_content_office_365.py delete mode 100644 src/auth0/management/types/update_connection_request_content_oidc.py delete mode 100644 src/auth0/management/types/update_connection_request_content_okta.py delete mode 100644 src/auth0/management/types/update_connection_request_content_paypal.py delete mode 100644 src/auth0/management/types/update_connection_request_content_paypal_sandbox.py delete mode 100644 src/auth0/management/types/update_connection_request_content_ping_federate.py delete mode 100644 src/auth0/management/types/update_connection_request_content_planning_center.py delete mode 100644 src/auth0/management/types/update_connection_request_content_salesforce.py delete mode 100644 src/auth0/management/types/update_connection_request_content_salesforce_community.py delete mode 100644 src/auth0/management/types/update_connection_request_content_salesforce_sandbox.py delete mode 100644 src/auth0/management/types/update_connection_request_content_saml.py delete mode 100644 src/auth0/management/types/update_connection_request_content_sharepoint.py delete mode 100644 src/auth0/management/types/update_connection_request_content_shop.py delete mode 100644 src/auth0/management/types/update_connection_request_content_shopify.py delete mode 100644 src/auth0/management/types/update_connection_request_content_sms.py delete mode 100644 src/auth0/management/types/update_connection_request_content_soundcloud.py delete mode 100644 src/auth0/management/types/update_connection_request_content_thirty_seven_signals.py delete mode 100644 src/auth0/management/types/update_connection_request_content_twitter.py delete mode 100644 src/auth0/management/types/update_connection_request_content_untappd.py delete mode 100644 src/auth0/management/types/update_connection_request_content_vkontakte.py delete mode 100644 src/auth0/management/types/update_connection_request_content_weibo.py delete mode 100644 src/auth0/management/types/update_connection_request_content_windows_live.py delete mode 100644 src/auth0/management/types/update_connection_request_content_wordpress.py delete mode 100644 src/auth0/management/types/update_connection_request_content_yahoo.py delete mode 100644 src/auth0/management/types/update_connection_request_content_yandex.py delete mode 100644 src/auth0/management/types/update_connection_response_content.py delete mode 100644 src/auth0/management/types/update_cross_app_access_resource_app.py delete mode 100644 src/auth0/management/types/update_custom_domain_response_content.py delete mode 100644 src/auth0/management/types/update_default_canonical_domain_response_content.py delete mode 100644 src/auth0/management/types/update_default_custom_domain_response_content.py delete mode 100644 src/auth0/management/types/update_default_domain_response_content.py delete mode 100644 src/auth0/management/types/update_directory_provisioning_request_content.py delete mode 100644 src/auth0/management/types/update_directory_provisioning_response_content.py delete mode 100644 src/auth0/management/types/update_email_provider_response_content.py delete mode 100644 src/auth0/management/types/update_email_template_response_content.py delete mode 100644 src/auth0/management/types/update_enabled_client_connections_request_content.py delete mode 100644 src/auth0/management/types/update_enabled_client_connections_request_content_item.py delete mode 100644 src/auth0/management/types/update_event_stream_response_content.py delete mode 100644 src/auth0/management/types/update_experiment_response_content.py delete mode 100644 src/auth0/management/types/update_feature_flag_parameters.py delete mode 100644 src/auth0/management/types/update_feature_flag_response_content.py delete mode 100644 src/auth0/management/types/update_flow_response_content.py delete mode 100644 src/auth0/management/types/update_flows_vault_connection_response_content.py delete mode 100644 src/auth0/management/types/update_flows_vault_connection_setup.py delete mode 100644 src/auth0/management/types/update_form_response_content.py delete mode 100644 src/auth0/management/types/update_guardian_factor_duo_settings_response_content.py delete mode 100644 src/auth0/management/types/update_guardian_factors_provider_push_notification_apns_response_content.py delete mode 100644 src/auth0/management/types/update_guardian_factors_provider_push_notification_fcm_response_content.py delete mode 100644 src/auth0/management/types/update_guardian_factors_provider_push_notification_fcmv_1_response_content.py delete mode 100644 src/auth0/management/types/update_guardian_factors_provider_push_notification_sns_response_content.py delete mode 100644 src/auth0/management/types/update_hook_response_content.py delete mode 100644 src/auth0/management/types/update_hook_secret_request_content.py delete mode 100644 src/auth0/management/types/update_identity_assertion_authorization_grant.py delete mode 100644 src/auth0/management/types/update_log_stream_response_content.py delete mode 100644 src/auth0/management/types/update_network_acl_response_content.py delete mode 100644 src/auth0/management/types/update_organization_all_connection_response_content.py delete mode 100644 src/auth0/management/types/update_organization_client_response_content.py delete mode 100644 src/auth0/management/types/update_organization_connection_response_content.py delete mode 100644 src/auth0/management/types/update_organization_discovery_domain_response_content.py delete mode 100644 src/auth0/management/types/update_organization_response_content.py delete mode 100644 src/auth0/management/types/update_phone_template_response_content.py delete mode 100644 src/auth0/management/types/update_rate_limit_policy_response_content.py delete mode 100644 src/auth0/management/types/update_refresh_token_response_content.py delete mode 100644 src/auth0/management/types/update_resource_server_response_content.py delete mode 100644 src/auth0/management/types/update_risk_assessments_settings_new_device_response_content.py delete mode 100644 src/auth0/management/types/update_risk_assessments_settings_response_content.py delete mode 100644 src/auth0/management/types/update_role_response_content.py delete mode 100644 src/auth0/management/types/update_rule_response_content.py delete mode 100644 src/auth0/management/types/update_scim_configuration_response_content.py delete mode 100644 src/auth0/management/types/update_segment_response_content.py delete mode 100644 src/auth0/management/types/update_self_service_profile_response_content.py delete mode 100644 src/auth0/management/types/update_session_response_content.py delete mode 100644 src/auth0/management/types/update_settings_response_content.py delete mode 100644 src/auth0/management/types/update_suspicious_ip_throttling_settings_response_content.py delete mode 100644 src/auth0/management/types/update_tenant_settings_response_content.py delete mode 100644 src/auth0/management/types/update_token_quota.py delete mode 100644 src/auth0/management/types/update_universal_login_template_request_content.py delete mode 100644 src/auth0/management/types/update_universal_login_template_request_content_template.py delete mode 100644 src/auth0/management/types/update_user_attribute_profile_response_content.py delete mode 100644 src/auth0/management/types/update_user_authentication_method_response_content.py delete mode 100644 src/auth0/management/types/update_user_response_content.py delete mode 100644 src/auth0/management/types/update_variation_overrides_map.py delete mode 100644 src/auth0/management/types/update_variation_response_content.py delete mode 100644 src/auth0/management/types/update_verifiable_credential_template_response_content.py delete mode 100644 src/auth0/management/types/user_app_metadata_schema.py delete mode 100644 src/auth0/management/types/user_attribute_profile.py delete mode 100644 src/auth0/management/types/user_attribute_profile_id.py delete mode 100644 src/auth0/management/types/user_attribute_profile_name.py delete mode 100644 src/auth0/management/types/user_attribute_profile_oidc_mapping.py delete mode 100644 src/auth0/management/types/user_attribute_profile_patch_user_id.py delete mode 100644 src/auth0/management/types/user_attribute_profile_saml_mapping.py delete mode 100644 src/auth0/management/types/user_attribute_profile_strategy_overrides.py delete mode 100644 src/auth0/management/types/user_attribute_profile_strategy_overrides_mapping.py delete mode 100644 src/auth0/management/types/user_attribute_profile_strategy_overrides_user_id.py delete mode 100644 src/auth0/management/types/user_attribute_profile_strategy_overrides_user_id_mapping.py delete mode 100644 src/auth0/management/types/user_attribute_profile_template.py delete mode 100644 src/auth0/management/types/user_attribute_profile_template_item.py delete mode 100644 src/auth0/management/types/user_attribute_profile_user_attribute_additional_properties.py delete mode 100644 src/auth0/management/types/user_attribute_profile_user_attributes.py delete mode 100644 src/auth0/management/types/user_attribute_profile_user_id.py delete mode 100644 src/auth0/management/types/user_attribute_profile_user_id_oidc_mapping_enum.py delete mode 100644 src/auth0/management/types/user_attribute_profile_user_id_oidc_strategy_override_mapping.py delete mode 100644 src/auth0/management/types/user_attribute_profile_user_id_saml_mapping.py delete mode 100644 src/auth0/management/types/user_authentication_method.py delete mode 100644 src/auth0/management/types/user_authentication_method_properties.py delete mode 100644 src/auth0/management/types/user_authentication_method_properties_enum.py delete mode 100644 src/auth0/management/types/user_block_identifier.py delete mode 100644 src/auth0/management/types/user_effective_permission_response_content.py delete mode 100644 src/auth0/management/types/user_effective_permission_role_source_enum.py delete mode 100644 src/auth0/management/types/user_effective_permission_role_source_response_content.py delete mode 100644 src/auth0/management/types/user_effective_permission_source_enum.py delete mode 100644 src/auth0/management/types/user_effective_role.py delete mode 100644 src/auth0/management/types/user_effective_role_source.py delete mode 100644 src/auth0/management/types/user_enrollment_auth_method_enum.py delete mode 100644 src/auth0/management/types/user_enrollment_status_enum.py delete mode 100644 src/auth0/management/types/user_grant.py delete mode 100644 src/auth0/management/types/user_groups_response_schema.py delete mode 100644 src/auth0/management/types/user_id.py delete mode 100644 src/auth0/management/types/user_identity.py delete mode 100644 src/auth0/management/types/user_identity_provider_enum.py delete mode 100644 src/auth0/management/types/user_identity_schema.py delete mode 100644 src/auth0/management/types/user_list_log_offset_paginated_response_content.py delete mode 100644 src/auth0/management/types/user_metadata.py delete mode 100644 src/auth0/management/types/user_metadata_schema.py delete mode 100644 src/auth0/management/types/user_multifactor_provider_enum.py delete mode 100644 src/auth0/management/types/user_permission_schema.py delete mode 100644 src/auth0/management/types/user_profile_data.py delete mode 100644 src/auth0/management/types/user_response_schema.py delete mode 100644 src/auth0/management/types/username_allowed_types.py delete mode 100644 src/auth0/management/types/username_attribute.py delete mode 100644 src/auth0/management/types/username_attribute_identifier.py delete mode 100644 src/auth0/management/types/username_validation.py delete mode 100644 src/auth0/management/types/users_enrollment.py delete mode 100644 src/auth0/management/types/validate_experiment_response_content.py delete mode 100644 src/auth0/management/types/variation.py delete mode 100644 src/auth0/management/types/variation_overrides_map.py delete mode 100644 src/auth0/management/types/verifiable_credential_template_response.py delete mode 100644 src/auth0/management/types/verification_method_enum.py delete mode 100644 src/auth0/management/types/verify_custom_domain_response_content.py delete mode 100644 src/auth0/management/types/verify_email_ticket_response_content.py delete mode 100644 src/auth0/management/types/x_509_certificate_credential.py delete mode 100644 src/auth0/management/types/x_509_certificate_credential_type_enum.py delete mode 100644 src/auth0/management/types/xss_protection_config.py delete mode 100644 src/auth0/management/types/xss_protection_mode.py delete mode 100644 src/auth0/management/user_attribute_profiles/__init__.py delete mode 100644 src/auth0/management/user_attribute_profiles/client.py delete mode 100644 src/auth0/management/user_attribute_profiles/raw_client.py delete mode 100644 src/auth0/management/user_blocks/__init__.py delete mode 100644 src/auth0/management/user_blocks/client.py delete mode 100644 src/auth0/management/user_blocks/raw_client.py delete mode 100644 src/auth0/management/user_grants/__init__.py delete mode 100644 src/auth0/management/user_grants/client.py delete mode 100644 src/auth0/management/user_grants/raw_client.py delete mode 100644 src/auth0/management/users/__init__.py delete mode 100644 src/auth0/management/users/authentication_methods/__init__.py delete mode 100644 src/auth0/management/users/authentication_methods/client.py delete mode 100644 src/auth0/management/users/authentication_methods/raw_client.py delete mode 100644 src/auth0/management/users/authenticators/__init__.py delete mode 100644 src/auth0/management/users/authenticators/client.py delete mode 100644 src/auth0/management/users/authenticators/raw_client.py delete mode 100644 src/auth0/management/users/client.py delete mode 100644 src/auth0/management/users/connected_accounts/__init__.py delete mode 100644 src/auth0/management/users/connected_accounts/client.py delete mode 100644 src/auth0/management/users/connected_accounts/raw_client.py delete mode 100644 src/auth0/management/users/effective_permissions/__init__.py delete mode 100644 src/auth0/management/users/effective_permissions/client.py delete mode 100644 src/auth0/management/users/effective_permissions/raw_client.py delete mode 100644 src/auth0/management/users/effective_permissions/sources/__init__.py delete mode 100644 src/auth0/management/users/effective_permissions/sources/client.py delete mode 100644 src/auth0/management/users/effective_permissions/sources/raw_client.py delete mode 100644 src/auth0/management/users/effective_permissions/sources/roles/__init__.py delete mode 100644 src/auth0/management/users/effective_permissions/sources/roles/client.py delete mode 100644 src/auth0/management/users/effective_permissions/sources/roles/raw_client.py delete mode 100644 src/auth0/management/users/effective_roles/__init__.py delete mode 100644 src/auth0/management/users/effective_roles/client.py delete mode 100644 src/auth0/management/users/effective_roles/raw_client.py delete mode 100644 src/auth0/management/users/effective_roles/sources/__init__.py delete mode 100644 src/auth0/management/users/effective_roles/sources/client.py delete mode 100644 src/auth0/management/users/effective_roles/sources/groups/__init__.py delete mode 100644 src/auth0/management/users/effective_roles/sources/groups/client.py delete mode 100644 src/auth0/management/users/effective_roles/sources/groups/raw_client.py delete mode 100644 src/auth0/management/users/effective_roles/sources/raw_client.py delete mode 100644 src/auth0/management/users/enrollments/__init__.py delete mode 100644 src/auth0/management/users/enrollments/client.py delete mode 100644 src/auth0/management/users/enrollments/raw_client.py delete mode 100644 src/auth0/management/users/groups/__init__.py delete mode 100644 src/auth0/management/users/groups/client.py delete mode 100644 src/auth0/management/users/groups/raw_client.py delete mode 100644 src/auth0/management/users/identities/__init__.py delete mode 100644 src/auth0/management/users/identities/client.py delete mode 100644 src/auth0/management/users/identities/raw_client.py delete mode 100644 src/auth0/management/users/logs/__init__.py delete mode 100644 src/auth0/management/users/logs/client.py delete mode 100644 src/auth0/management/users/logs/raw_client.py delete mode 100644 src/auth0/management/users/multifactor/__init__.py delete mode 100644 src/auth0/management/users/multifactor/client.py delete mode 100644 src/auth0/management/users/multifactor/raw_client.py delete mode 100644 src/auth0/management/users/organizations/__init__.py delete mode 100644 src/auth0/management/users/organizations/client.py delete mode 100644 src/auth0/management/users/organizations/raw_client.py delete mode 100644 src/auth0/management/users/permissions/__init__.py delete mode 100644 src/auth0/management/users/permissions/client.py delete mode 100644 src/auth0/management/users/permissions/raw_client.py delete mode 100644 src/auth0/management/users/raw_client.py delete mode 100644 src/auth0/management/users/refresh_token/__init__.py delete mode 100644 src/auth0/management/users/refresh_token/client.py delete mode 100644 src/auth0/management/users/refresh_token/raw_client.py delete mode 100644 src/auth0/management/users/risk_assessments/__init__.py delete mode 100644 src/auth0/management/users/risk_assessments/client.py delete mode 100644 src/auth0/management/users/risk_assessments/raw_client.py delete mode 100644 src/auth0/management/users/roles/__init__.py delete mode 100644 src/auth0/management/users/roles/client.py delete mode 100644 src/auth0/management/users/roles/raw_client.py delete mode 100644 src/auth0/management/users/sessions/__init__.py delete mode 100644 src/auth0/management/users/sessions/client.py delete mode 100644 src/auth0/management/users/sessions/raw_client.py delete mode 100644 src/auth0/management/verifiable_credentials/__init__.py delete mode 100644 src/auth0/management/verifiable_credentials/client.py delete mode 100644 src/auth0/management/verifiable_credentials/raw_client.py delete mode 100644 src/auth0/management/verifiable_credentials/verification/__init__.py delete mode 100644 src/auth0/management/verifiable_credentials/verification/client.py delete mode 100644 src/auth0/management/verifiable_credentials/verification/raw_client.py delete mode 100644 src/auth0/management/verifiable_credentials/verification/templates/__init__.py delete mode 100644 src/auth0/management/verifiable_credentials/verification/templates/client.py delete mode 100644 src/auth0/management/verifiable_credentials/verification/templates/raw_client.py create mode 100644 tests/wire/test_.py delete mode 100644 tests/wire/test_actions.py delete mode 100644 tests/wire/test_actions_executions.py delete mode 100644 tests/wire/test_actions_modules.py delete mode 100644 tests/wire/test_actions_modules_versions.py delete mode 100644 tests/wire/test_actions_triggers.py delete mode 100644 tests/wire/test_actions_triggers_bindings.py delete mode 100644 tests/wire/test_actions_versions.py delete mode 100644 tests/wire/test_agents.py delete mode 100644 tests/wire/test_anomaly_blocks.py delete mode 100644 tests/wire/test_attackProtection_botDetection.py delete mode 100644 tests/wire/test_attackProtection_breachedPasswordDetection.py delete mode 100644 tests/wire/test_attackProtection_bruteForceProtection.py delete mode 100644 tests/wire/test_attackProtection_captcha.py delete mode 100644 tests/wire/test_attackProtection_phoneProviderProtection.py delete mode 100644 tests/wire/test_attackProtection_suspiciousIpThrottling.py delete mode 100644 tests/wire/test_branding.py delete mode 100644 tests/wire/test_branding_phone_providers.py delete mode 100644 tests/wire/test_branding_phone_templates.py delete mode 100644 tests/wire/test_branding_templates.py delete mode 100644 tests/wire/test_branding_themes.py delete mode 100644 tests/wire/test_clientGrants.py delete mode 100644 tests/wire/test_clientGrants_organizations.py delete mode 100644 tests/wire/test_clientProfiles.py delete mode 100644 tests/wire/test_clients.py delete mode 100644 tests/wire/test_clients_connections.py delete mode 100644 tests/wire/test_clients_credentials.py delete mode 100644 tests/wire/test_connectionProfiles.py delete mode 100644 tests/wire/test_connections.py delete mode 100644 tests/wire/test_connections_clients.py delete mode 100644 tests/wire/test_connections_directoryProvisioning.py delete mode 100644 tests/wire/test_connections_directoryProvisioning_synchronizations.py delete mode 100644 tests/wire/test_connections_keys.py delete mode 100644 tests/wire/test_connections_scimConfiguration.py delete mode 100644 tests/wire/test_connections_scimConfiguration_tokens.py delete mode 100644 tests/wire/test_connections_users.py delete mode 100644 tests/wire/test_customDomains.py delete mode 100644 tests/wire/test_deviceCredentials.py delete mode 100644 tests/wire/test_emailTemplates.py delete mode 100644 tests/wire/test_emails_provider.py delete mode 100644 tests/wire/test_eventStreams.py delete mode 100644 tests/wire/test_eventStreams_deliveries.py delete mode 100644 tests/wire/test_eventStreams_redeliveries.py delete mode 100644 tests/wire/test_events.py delete mode 100644 tests/wire/test_experimentation_experiments.py delete mode 100644 tests/wire/test_experimentation_featureFlags.py delete mode 100644 tests/wire/test_experimentation_featureFlags_variations.py delete mode 100644 tests/wire/test_experimentation_segments.py delete mode 100644 tests/wire/test_flows.py delete mode 100644 tests/wire/test_flows_executions.py delete mode 100644 tests/wire/test_flows_vault_connections.py delete mode 100644 tests/wire/test_forms.py delete mode 100644 tests/wire/test_groups.py delete mode 100644 tests/wire/test_groups_members.py delete mode 100644 tests/wire/test_groups_roles.py delete mode 100644 tests/wire/test_guardian.py delete mode 100644 tests/wire/test_guardian_enrollments.py delete mode 100644 tests/wire/test_guardian_factors.py delete mode 100644 tests/wire/test_guardian_factors_duo_settings.py delete mode 100644 tests/wire/test_guardian_factors_email.py delete mode 100644 tests/wire/test_guardian_factors_phone.py delete mode 100644 tests/wire/test_guardian_factors_pushNotification.py delete mode 100644 tests/wire/test_guardian_factors_sms.py delete mode 100644 tests/wire/test_guardian_policies.py delete mode 100644 tests/wire/test_hooks.py delete mode 100644 tests/wire/test_hooks_secrets.py delete mode 100644 tests/wire/test_jobs.py delete mode 100644 tests/wire/test_jobs_errors.py delete mode 100644 tests/wire/test_jobs_usersExports.py delete mode 100644 tests/wire/test_jobs_usersImports.py delete mode 100644 tests/wire/test_jobs_verificationEmail.py delete mode 100644 tests/wire/test_keys_customSigning.py delete mode 100644 tests/wire/test_keys_encryption.py delete mode 100644 tests/wire/test_keys_networkAcls.py delete mode 100644 tests/wire/test_keys_signing.py delete mode 100644 tests/wire/test_logStreams.py delete mode 100644 tests/wire/test_logs.py delete mode 100644 tests/wire/test_networkAcls.py delete mode 100644 tests/wire/test_organizations.py delete mode 100644 tests/wire/test_organizations_clientGrants.py delete mode 100644 tests/wire/test_organizations_clients.py delete mode 100644 tests/wire/test_organizations_connections.py delete mode 100644 tests/wire/test_organizations_discoveryDomains.py delete mode 100644 tests/wire/test_organizations_enabledConnections.py delete mode 100644 tests/wire/test_organizations_groups.py delete mode 100644 tests/wire/test_organizations_groups_roles.py delete mode 100644 tests/wire/test_organizations_invitations.py delete mode 100644 tests/wire/test_organizations_members.py delete mode 100644 tests/wire/test_organizations_members_effectiveRoles.py delete mode 100644 tests/wire/test_organizations_members_effectiveRoles_sources_groups.py delete mode 100644 tests/wire/test_organizations_members_roles.py delete mode 100644 tests/wire/test_organizations_roles_groups.py delete mode 100644 tests/wire/test_organizations_roles_members.py delete mode 100644 tests/wire/test_portals.py delete mode 100644 tests/wire/test_prompts.py delete mode 100644 tests/wire/test_prompts_customText.py delete mode 100644 tests/wire/test_prompts_partials.py delete mode 100644 tests/wire/test_prompts_rendering.py delete mode 100644 tests/wire/test_rateLimitPolicies.py delete mode 100644 tests/wire/test_refreshTokens.py delete mode 100644 tests/wire/test_resourceServers.py delete mode 100644 tests/wire/test_riskAssessments_settings.py delete mode 100644 tests/wire/test_riskAssessments_settings_newDevice.py delete mode 100644 tests/wire/test_roles.py delete mode 100644 tests/wire/test_roles_groups.py delete mode 100644 tests/wire/test_roles_permissions.py delete mode 100644 tests/wire/test_roles_users.py delete mode 100644 tests/wire/test_rules.py delete mode 100644 tests/wire/test_rulesConfigs.py delete mode 100644 tests/wire/test_selfServiceProfiles.py delete mode 100644 tests/wire/test_selfServiceProfiles_customText.py delete mode 100644 tests/wire/test_selfServiceProfiles_ssoTicket.py delete mode 100644 tests/wire/test_sessions.py delete mode 100644 tests/wire/test_stats.py delete mode 100644 tests/wire/test_supplementalSignals.py delete mode 100644 tests/wire/test_tenants_settings.py delete mode 100644 tests/wire/test_tickets.py delete mode 100644 tests/wire/test_tokenExchangeProfiles.py delete mode 100644 tests/wire/test_userAttributeProfiles.py delete mode 100644 tests/wire/test_userBlocks.py delete mode 100644 tests/wire/test_userGrants.py delete mode 100644 tests/wire/test_users.py delete mode 100644 tests/wire/test_users_authenticationMethods.py delete mode 100644 tests/wire/test_users_authenticators.py delete mode 100644 tests/wire/test_users_connectedAccounts.py delete mode 100644 tests/wire/test_users_effectivePermissions.py delete mode 100644 tests/wire/test_users_effectivePermissions_sources_roles.py delete mode 100644 tests/wire/test_users_effectiveRoles.py delete mode 100644 tests/wire/test_users_effectiveRoles_sources_groups.py delete mode 100644 tests/wire/test_users_enrollments.py delete mode 100644 tests/wire/test_users_groups.py delete mode 100644 tests/wire/test_users_identities.py delete mode 100644 tests/wire/test_users_logs.py delete mode 100644 tests/wire/test_users_multifactor.py delete mode 100644 tests/wire/test_users_organizations.py delete mode 100644 tests/wire/test_users_permissions.py delete mode 100644 tests/wire/test_users_refreshToken.py delete mode 100644 tests/wire/test_users_riskAssessments.py delete mode 100644 tests/wire/test_users_roles.py delete mode 100644 tests/wire/test_users_sessions.py delete mode 100644 tests/wire/test_verifiableCredentials_verification_templates.py diff --git a/reference.md b/reference.md index 3b762e63..2d5d4f72 100644 --- a/reference.md +++ b/reference.md @@ -1,45573 +1,8 @@ # Reference -## Actions -
client.actions.list(...) -> ListActionsPaginatedResponseContent +
client.send(...)
-#### 📝 Description - -
-
- -
-
- -Retrieve all actions. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.actions.list( - trigger_id="post-login", - action_name="actionName", - deployed=True, - page=1, - per_page=1, - installed=True, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**trigger_id:** `typing.Optional[ActionTriggerTypeEnum]` — An actions extensibility point. - -
-
- -
-
- -**action_name:** `typing.Optional[str]` — The name of the action to retrieve. - -
-
- -
-
- -**deployed:** `typing.Optional[bool]` — Optional filter to only retrieve actions that are deployed. - -
-
- -
-
- -**page:** `typing.Optional[int]` — Use this field to request a specific page of the list results. - -
-
- -
-
- -**per_page:** `typing.Optional[int]` — The maximum number of results to be returned by the server in single response. 20 by default - -
-
- -
-
- -**installed:** `typing.Optional[bool]` — Optional. When true, return only installed actions. When false, return only custom actions. Returns all actions by default. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.actions.create(...) -> CreateActionResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Create an action. Once an action is created, it must be deployed, and then bound to a trigger before it will be executed as part of a flow. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0, ActionTrigger -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.actions.create( - name="name", - supported_triggers=[ - ActionTrigger( - id="post-login", - ) - ], -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**name:** `str` — The name of an action. - -
-
- -
-
- -**supported_triggers:** `typing.List[ActionTrigger]` — The list of triggers that this action supports. At this time, an action can only target a single trigger at a time. - -
-
- -
-
- -**code:** `typing.Optional[str]` — The source code of the action. - -
-
- -
-
- -**dependencies:** `typing.Optional[typing.List[ActionVersionDependency]]` — The list of third party npm modules, and their versions, that this action depends on. - -
-
- -
-
- -**runtime:** `typing.Optional[str]` — The Node runtime. For example: `node22`, defaults to `node22` - -
-
- -
-
- -**secrets:** `typing.Optional[typing.List[ActionSecretRequest]]` — The list of secrets that are included in an action or a version of an action. - -
-
- -
-
- -**modules:** `typing.Optional[typing.List[ActionModuleReference]]` — The list of action modules and their versions used by this action. - -
-
- -
-
- -**deploy:** `typing.Optional[bool]` — True if the action should be deployed after creation. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.actions.get(...) -> GetActionResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve an action by its ID. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.actions.get( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The ID of the action to retrieve. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.actions.delete(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Deletes an action and all of its associated versions. An action must be unbound from all triggers before it can be deleted. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.actions.delete( - id="id", - force=True, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The ID of the action to delete. - -
-
- -
-
- -**force:** `typing.Optional[bool]` — Force action deletion detaching bindings - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.actions.update(...) -> UpdateActionResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Update an existing action. If this action is currently bound to a trigger, updating it will **not** affect any user flows until the action is deployed. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.actions.update( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The id of the action to update. - -
-
- -
-
- -**name:** `typing.Optional[str]` — The name of an action. - -
-
- -
-
- -**supported_triggers:** `typing.Optional[typing.List[ActionTrigger]]` — The list of triggers that this action supports. At this time, an action can only target a single trigger at a time. - -
-
- -
-
- -**code:** `typing.Optional[str]` — The source code of the action. - -
-
- -
-
- -**dependencies:** `typing.Optional[typing.List[ActionVersionDependency]]` — The list of third party npm modules, and their versions, that this action depends on. - -
-
- -
-
- -**runtime:** `typing.Optional[str]` — The Node runtime. For example: `node22`, defaults to `node22` - -
-
- -
-
- -**secrets:** `typing.Optional[typing.List[ActionSecretRequest]]` — The list of secrets that are included in an action or a version of an action. - -
-
- -
-
- -**modules:** `typing.Optional[typing.List[ActionModuleReference]]` — The list of action modules and their versions used by this action. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.actions.deploy(...) -> DeployActionResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Deploy an action. Deploying an action will create a new immutable version of the action. If the action is currently bound to a trigger, then the system will begin executing the newly deployed version of the action immediately. Otherwise, the action will only be executed as a part of a flow once it is bound to that flow. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.actions.deploy( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The ID of an action. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.actions.test(...) -> TestActionResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Test an action. After updating an action, it can be tested prior to being deployed to ensure it behaves as expected. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.actions.test( - id="id", - payload={ - "key": "value" - }, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The id of the action to test. - -
-
- -
-
- -**payload:** `TestActionPayload` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Agents -
client.agents.list(...) -> ListAgentsResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Get agents -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.agents.list( - from_="from", - take=1, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**from:** `typing.Optional[str]` — Optional Id from which to start selection. - -
-
- -
-
- -**take:** `typing.Optional[int]` — Number of results per page. Defaults to 50. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.agents.create(...) -> AgentResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Create an agent -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.agents.create( - name="name", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**name:** `str` — The agent name. Cannot contain <, >, or null bytes. - -
-
- -
-
- -**client_id:** `typing.Optional[str]` — Optional client ID to associate with the agent - -
-
- -
-
- -**external_agent_id:** `typing.Optional[str]` — Optional external identifier for the agent. Immutable after creation. Must be unique within the tenant. - -
-
- -
-
- -**metadata:** `typing.Optional[AgentMetadata]` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.agents.read(...) -> AgentResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Get an agent -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.agents.read( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The agent ID - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.agents.delete(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Delete an agent -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.agents.delete( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The agent ID - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.agents.update(...) -> AgentResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Update an agent -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.agents.update( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The agent ID - -
-
- -
-
- -**name:** `typing.Optional[str]` — The agent name. Cannot contain <, >, or null bytes. - -
-
- -
-
- -**metadata:** `typing.Optional[typing.Dict[str, typing.Any]]` — Arbitrary key-value metadata for the agent. Pass null to clear all metadata. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Branding -
client.branding.get() -> GetBrandingResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve branding settings. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.branding.get() - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.branding.update(...) -> UpdateBrandingResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Update branding settings. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.branding.update() - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**colors:** `typing.Optional[UpdateBrandingColors]` - -
-
- -
-
- -**favicon_url:** `typing.Optional[str]` — URL for the favicon. Must use HTTPS. - -
-
- -
-
- -**logo_url:** `typing.Optional[str]` — URL for the logo. Must use HTTPS. - -
-
- -
-
- -**font:** `typing.Optional[UpdateBrandingFont]` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## ClientGrants -
client.client_grants.list(...) -> ListClientGrantPaginatedResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve a list of [client grants](https://auth0.com/docs/get-started/applications/application-access-to-apis-client-grants), including the scopes associated with the application/API pair. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.client_grants.list( - include_totals=True, - from_="from", - take=1, - audience="audience", - client_id="client_id", - allow_any_organization=True, - subject_type="client", - default_for="third_party_clients", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**include_totals:** `typing.Optional[bool]` — Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - -
-
- -
-
- -**from:** `typing.Optional[str]` — Optional Id from which to start selection. - -
-
- -
-
- -**take:** `typing.Optional[int]` — Number of results per page. Defaults to 50. - -
-
- -
-
- -**audience:** `typing.Optional[str]` — Optional filter on audience. - -
-
- -
-
- -**client_id:** `typing.Optional[str]` — Optional filter on client_id. - -
-
- -
-
- -**allow_any_organization:** `typing.Optional[ClientGrantAllowAnyOrganizationEnum]` — Optional filter on allow_any_organization. - -
-
- -
-
- -**subject_type:** `typing.Optional[ClientGrantSubjectTypeEnum]` — The type of application access the client grant allows. - -
-
- -
-
- -**default_for:** `typing.Optional[ClientGrantDefaultForEnum]` — Applies this client grant as the default for all clients in the specified group. The only accepted value is `third_party_clients`, which applies the grant to all third-party clients. Per-client grants for the same audience take precedence. Mutually exclusive with `client_id`. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.client_grants.create(...) -> CreateClientGrantResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Create a client grant for a machine-to-machine login flow. To learn more, read [Client Credential Flow](https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow). -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.client_grants.create( - audience="audience", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**audience:** `str` — The audience (API identifier) of this client grant - -
-
- -
-
- -**client_id:** `typing.Optional[str]` — ID of the client. - -
-
- -
-
- -**default_for:** `typing.Optional[ClientGrantDefaultForEnum]` - -
-
- -
-
- -**organization_usage:** `typing.Optional[ClientGrantOrganizationUsageEnum]` - -
-
- -
-
- -**allow_any_organization:** `typing.Optional[bool]` — If enabled, any organization can be used with this grant. If disabled (default), the grant must be explicitly assigned to the desired organizations. - -
-
- -
-
- -**scope:** `typing.Optional[typing.List[str]]` — Scopes allowed for this client grant. - -
-
- -
-
- -**subject_type:** `typing.Optional[ClientGrantSubjectTypeEnum]` - -
-
- -
-
- -**authorization_details_types:** `typing.Optional[typing.List[str]]` — Types of authorization_details allowed for this client grant. - -
-
- -
-
- -**allow_all_scopes:** `typing.Optional[bool]` — If enabled, all scopes configured on the resource server are allowed for this grant. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.client_grants.search(...) -> SearchClientGrantsResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Search client grants using SCIM or Lucene filter syntax with low-latency, eventually consistent results. Use the parser parameter to specify "scim" or "lucene" syntax (default: "lucene"). This endpoint provides an alternative to the standard GET /client-grants endpoint with better performance for complex queries. -Results may not reflect recent updates immediately. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.client_grants.search( - q="q", - parser="scim", - fields="fields", - include_fields=True, - take=1, - from_="from", - sort="audience", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**q:** `typing.Optional[str]` — Filter expression in SCIM or Lucene syntax (depending on parser parameter). SCIM examples: `audience eq "https://api.example.com"`, `client_id eq "cli_abc"`, `subject_type eq "client"`, `allow_any_organization eq true`, `default_for eq "third_party_clients"`, `audience co "example" and organization_id eq "org_123"`. SCIM operators: eq, ne, sw, ew, co, pr, gt, ge, lt, le, and, or.

Supported Fields:
  • audience - Filter by audience (eq, ne, sw, co, ew, pr)
  • client_id - Filter by client ID (eq, ne, sw, pr)
  • subject_type - Filter by subject type (eq, ne, sw, pr)
  • allow_any_organization - Filter by allow_any_organization (eq, ne, pr)
  • organization_id - Filter by organization ID (eq, ne, sw, pr)
  • updated_at - Filter by last update date (eq, ne, gt, ge, lt, le, pr)
  • default_for - Filter by default grant group (eq, ne, sw, pr)
Maximum 5 filter operations per query. Results are eventually consistent and may not reflect recent updates. - -
-
- -
-
- -**parser:** `typing.Optional[SearchParserEnum]` — Query parser to use for the filter expression. Use "scim" for SCIM filter syntax or "lucene" for Lucene query syntax (default). - -
-
- -
-
- -**fields:** `typing.Optional[str]` — Comma-separated list of fields to include or exclude in the response. Works with the include_fields parameter to control projection mode. - -
-
- -
-
- -**include_fields:** `typing.Optional[bool]` — Controls field projection mode. Set to true to include only fields specified in the fields parameter. Set to false to exclude fields specified in the fields parameter. Defaults to true if not specified. - -
-
- -
-
- -**take:** `typing.Optional[int]` — Maximum number of results to return per page (1-100). Defaults to 50. - -
-
- -
-
- -**from:** `typing.Optional[str]` — Cursor for the next page of results. Use the value from the next field in the previous response. - -
-
- -
-
- -**sort:** `typing.Optional[ClientGrantSortFieldEnum]` — Field name to sort results by in ascending order. Defaults to insertion order (oldest first) if not provided. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.client_grants.get(...) -> GetClientGrantResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve a single [client grant](https://auth0.com/docs/get-started/applications/application-access-to-apis-client-grants), including the -scopes associated with the application/API pair. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.client_grants.get( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The ID of the client grant to retrieve. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.client_grants.delete(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Delete the [Client Credential Flow](https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow) from your machine-to-machine application. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.client_grants.delete( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the client grant to delete. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.client_grants.update(...) -> UpdateClientGrantResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Update a client grant. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.client_grants.update( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the client grant to update. - -
-
- -
-
- -**scope:** `typing.Optional[typing.List[str]]` — Scopes allowed for this client grant. - -
-
- -
-
- -**organization_usage:** `typing.Optional[ClientGrantOrganizationNullableUsageEnum]` - -
-
- -
-
- -**allow_any_organization:** `typing.Optional[bool]` — Controls allowing any organization to be used with this grant - -
-
- -
-
- -**authorization_details_types:** `typing.Optional[typing.List[str]]` — Types of authorization_details allowed for this client grant. - -
-
- -
-
- -**allow_all_scopes:** `typing.Optional[bool]` — If enabled, all scopes configured on the resource server are allowed for this grant. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## ClientProfiles -
client.client_profiles.list(...) -> ListClientProfilesPaginatedResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve a paginated list of client profiles for the tenant. Uses checkpoint pagination: pass the next cursor from a previous response as the from query parameter to retrieve the following page. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.client_profiles.list( - from_="from", - take=1, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**from:** `typing.Optional[str]` — Optional Id from which to start selection. - -
-
- -
-
- -**take:** `typing.Optional[int]` — Number of results per page. Defaults to 50. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.client_profiles.create(...) -> ClientProfile -
-
- -#### 📝 Description - -
-
- -
-
- -Create a client profile. At most one profile is allowed per tenant in this release; attempting to create a second returns 409 Conflict. The profile governs Dynamic CIMD clients matched by its apply_policy at runtime. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0, ClientProfileClientConfiguration, ClientProfileApplyPolicy -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.client_profiles.create( - name="name", - client_configuration=ClientProfileClientConfiguration(), - apply_policy=ClientProfileApplyPolicy( - external_metadata_type="cimd", - external_metadata_created_by="client", - ), -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**name:** `ClientProfileName` - -
-
- -
-
- -**client_configuration:** `ClientProfileClientConfiguration` - -
-
- -
-
- -**apply_policy:** `ClientProfileApplyPolicy` - -
-
- -
-
- -**description:** `typing.Optional[ClientProfileDescription]` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.client_profiles.get(...) -> ClientProfile -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve a single client profile by its identifier. Returns 404 if no profile with the given ID exists for the tenant. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.client_profiles.get( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `ClientProfileId` — ID of the client profile. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.client_profiles.delete(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Delete a client profile. Idempotent: returns 204 No Content whether or not a profile with the given ID existed. Deleting the profile removes fleet governance for matched clients immediately. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.client_profiles.delete( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `ClientProfileId` — ID of the client profile. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.client_profiles.update(...) -> ClientProfile -
-
- -#### 📝 Description - -
-
- -
-
- -Update a client profile. Supports partial updates at the top level (JSON Merge Patch); omitted top-level fields remain unchanged. Nested objects such as client_configuration must be supplied in full. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.client_profiles.update( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `ClientProfileId` — ID of the client profile. - -
-
- -
-
- -**name:** `typing.Optional[ClientProfileName]` - -
-
- -
-
- -**description:** `typing.Optional[ClientProfileDescription]` - -
-
- -
-
- -**client_configuration:** `typing.Optional[ClientProfileClientConfiguration]` - -
-
- -
-
- -**apply_policy:** `typing.Optional[ClientProfileApplyPolicy]` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Clients -
client.clients.list(...) -> ListClientsOffsetPaginatedResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve clients (applications and SSO integrations) matching provided filters. A list of fields to include or exclude may also be specified. -For more information, read [Applications in Auth0](https://www.auth0.com/docs/get-started/applications) and [Single Sign-On](https://www.auth0.com/docs/authenticate/single-sign-on). - -- The following can be retrieved with any scope: - `client_id`, `app_type`, `name`, and `description`. -- The following properties can only be retrieved with the `read:clients` or - `read:client_keys` scope: - `callbacks`, `oidc_logout`, `allowed_origins`, - `web_origins`, `tenant`, `global`, `config_route`, - `callback_url_template`, `jwt_configuration`, - `jwt_configuration.lifetime_in_seconds`, `jwt_configuration.secret_encoded`, - `jwt_configuration.scopes`, `jwt_configuration.alg`, `api_type`, - `logo_uri`, `allowed_clients`, `owners`, `custom_login_page`, - `custom_login_page_on`, `sso`, `addons`, `form_template`, - `custom_login_page_codeview`, `resource_servers`, `client_metadata`, - `mobile`, `mobile.android`, `mobile.ios`, `allowed_logout_urls`, - `token_endpoint_auth_method`, `is_first_party`, `oidc_conformant`, - `is_token_endpoint_ip_header_trusted`, `initiate_login_uri`, `grant_types`, - `refresh_token`, `refresh_token.rotation_type`, `refresh_token.expiration_type`, - `refresh_token.leeway`, `refresh_token.token_lifetime`, `refresh_token.policies`, `organization_usage`, - `organization_require_behavior`. -- The following properties can only be retrieved with the - `read:client_keys` or `read:client_credentials` scope: - `encryption_key`, `encryption_key.pub`, `encryption_key.cert`, - `client_secret`, `client_authentication_methods` and `signing_key`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.clients.list( - fields="fields", - include_fields=True, - page=1, - per_page=1, - include_totals=True, - is_global=True, - is_first_party=True, - app_type="app_type", - external_client_id="external_client_id", - agent_id="agent_id", - q="q", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**fields:** `typing.Optional[str]` — Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - -
-
- -
-
- -**include_fields:** `typing.Optional[bool]` — Whether specified fields are to be included (true) or excluded (false). - -
-
- -
-
- -**page:** `typing.Optional[int]` — Page index of the results to return. First page is 0. - -
-
- -
-
- -**per_page:** `typing.Optional[int]` — Number of results per page. Default value is 50, maximum value is 100 - -
-
- -
-
- -**include_totals:** `typing.Optional[bool]` — Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - -
-
- -
-
- -**is_global:** `typing.Optional[bool]` — Optional filter on the global client parameter. - -
-
- -
-
- -**is_first_party:** `typing.Optional[bool]` — Optional filter on whether or not a client is a first-party client. - -
-
- -
-
- -**app_type:** `typing.Optional[str]` — Optional filter by a comma-separated list of application types. - -
-
- -
-
- -**external_client_id:** `typing.Optional[str]` — Optional filter by the Client ID Metadata Document URI for CIMD-registered clients. - -
-
- -
-
- -**agent_id:** `typing.Optional[str]` — Optional filter by the agent associated with the client.
Additional Restrictions:
  • Cannot be used in combination with other filters
  • Only fields, include_fields, page, per_page, and include_totals are supported alongside it
  • Checkpoint pagination (from, take) is not supported
- -
-
- -
-
- -**q:** `typing.Optional[str]` — Advanced Query in Lucene syntax.
Permitted Queries:
  • client_grant.organization_id:{organization_id}
  • client_grant.allow_any_organization:true
Additional Restrictions:
  • Cannot be used in combination with other filters
  • Requires use of the from and take paging parameters (checkpoint paginatinon)
  • Reduced rate limits apply. See Rate Limit Configurations
Note: Recent updates may not be immediately reflected in query results - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.clients.create(...) -> CreateClientResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Create a new client (application or SSO integration). For more information, read [Create Applications](https://www.auth0.com/docs/get-started/auth0-overview/create-applications) -[API Endpoints for Single Sign-On](https://www.auth0.com/docs/authenticate/single-sign-on/api-endpoints-for-single-sign-on). - -Notes: -- We recommend leaving the `client_secret` parameter unspecified to allow the generation of a safe secret. -- The `client_authentication_methods` and `token_endpoint_auth_method` properties are mutually exclusive. Use -`client_authentication_methods` to configure the client with Private Key JWT authentication method. Otherwise, use `token_endpoint_auth_method` -to configure the client with client secret (basic or post) or with no authentication method (none). -- When using `client_authentication_methods` to configure the client with Private Key JWT authentication method, specify fully defined credentials. -These credentials will be automatically enabled for Private Key JWT authentication on the client. -- To configure `client_authentication_methods`, the `create:client_credentials` scope is required. -- To configure `client_authentication_methods`, the property `jwt_configuration.alg` must be set to RS256. - -SSO Integrations created via this endpoint will accept login requests and share user profile information. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.clients.create( - name="name", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**name:** `str` — Name of this client (min length: 1 character, does not allow `<` or `>`). - -
-
- -
-
- -**description:** `typing.Optional[str]` — Free text description of this client (max length: 140 characters). - -
-
- -
-
- -**logo_uri:** `typing.Optional[str]` — URL of the logo to display for this client. Recommended size is 150x150 pixels. - -
-
- -
-
- -**callbacks:** `typing.Optional[typing.List[str]]` — Comma-separated list of URLs whitelisted for Auth0 to use as a callback to the client after authentication. - -
-
- -
-
- -**oidc_logout:** `typing.Optional[ClientOidcBackchannelLogoutSettings]` - -
-
- -
-
- -**oidc_backchannel_logout:** `typing.Optional[ClientOidcBackchannelLogoutSettings]` — Configuration for OIDC backchannel logout (deprecated, in favor of oidc_logout) - -
-
- -
-
- -**session_transfer:** `typing.Optional[ClientSessionTransferConfiguration]` - -
-
- -
-
- -**allowed_origins:** `typing.Optional[typing.List[str]]` — Comma-separated list of URLs allowed to make requests from JavaScript to Auth0 API (typically used with CORS). By default, all your callback URLs will be allowed. This field allows you to enter other origins if necessary. You can also use wildcards at the subdomain level (e.g., https://*.contoso.com). Query strings and hash information are not taken into account when validating these URLs. - -
-
- -
-
- -**web_origins:** `typing.Optional[typing.List[str]]` — Comma-separated list of allowed origins for use with Cross-Origin Authentication, Device Flow, and web message response mode. - -
-
- -
-
- -**client_aliases:** `typing.Optional[typing.List[str]]` — List of audiences/realms for SAML protocol. Used by the wsfed addon. - -
-
- -
-
- -**allowed_clients:** `typing.Optional[typing.List[str]]` — List of allow clients and API ids that are allowed to make delegation requests. Empty means all all your clients are allowed. - -
-
- -
-
- -**allowed_logout_urls:** `typing.Optional[typing.List[str]]` — Comma-separated list of URLs that are valid to redirect to after logout from Auth0. Wildcards are allowed for subdomains. - -
-
- -
-
- -**grant_types:** `typing.Optional[typing.List[str]]` — List of grant types supported for this application. Can include `authorization_code`, `implicit`, `refresh_token`, `client_credentials`, `password`, `http://auth0.com/oauth/grant-type/password-realm`, `http://auth0.com/oauth/grant-type/mfa-oob`, `http://auth0.com/oauth/grant-type/mfa-otp`, `http://auth0.com/oauth/grant-type/mfa-recovery-code`, `urn:openid:params:grant-type:ciba`, `urn:ietf:params:oauth:grant-type:device_code`, and `urn:auth0:params:oauth:grant-type:token-exchange:federated-connection-access-token`. - -
-
- -
-
- -**token_endpoint_auth_method:** `typing.Optional[ClientTokenEndpointAuthMethodEnum]` - -
-
- -
-
- -**is_token_endpoint_ip_header_trusted:** `typing.Optional[bool]` — If true, trust that the IP specified in the `auth0-forwarded-for` header is the end-user's IP for brute-force-protection on token endpoint. - -
-
- -
-
- -**app_type:** `typing.Optional[ClientAppTypeEnum]` - -
-
- -
-
- -**is_first_party:** `typing.Optional[bool]` — Whether this client a first party client or not - -
-
- -
-
- -**oidc_conformant:** `typing.Optional[bool]` — Whether this client conforms to strict OIDC specifications (true) or uses legacy features (false). - -
-
- -
-
- -**jwt_configuration:** `typing.Optional[ClientJwtConfiguration]` - -
-
- -
-
- -**encryption_key:** `typing.Optional[ClientEncryptionKey]` - -
-
- -
-
- -**sso:** `typing.Optional[bool]` — Applies only to SSO clients and determines whether Auth0 will handle Single Sign On (true) or whether the Identity Provider will (false). - -
-
- -
-
- -**cross_origin_authentication:** `typing.Optional[bool]` — Whether this client can be used to make cross-origin authentication requests (true) or it is not allowed to make such requests (false). - -
-
- -
-
- -**cross_origin_loc:** `typing.Optional[str]` — URL of the location in your site where the cross origin verification takes place for the cross-origin auth flow when performing Auth in your own domain instead of Auth0 hosted login page. - -
-
- -
-
- -**sso_disabled:** `typing.Optional[bool]` — true to disable Single Sign On, false otherwise (default: false) - -
-
- -
-
- -**custom_login_page_on:** `typing.Optional[bool]` — true if the custom login page is to be used, false otherwise. Defaults to true - -
-
- -
-
- -**custom_login_page:** `typing.Optional[str]` — The content (HTML, CSS, JS) of the custom login page. - -
-
- -
-
- -**custom_login_page_preview:** `typing.Optional[str]` — The content (HTML, CSS, JS) of the custom login page. (Used on Previews) - -
-
- -
-
- -**form_template:** `typing.Optional[str]` — HTML form template to be used for WS-Federation. - -
-
- -
-
- -**addons:** `typing.Optional[ClientAddons]` - -
-
- -
-
- -**client_metadata:** `typing.Optional[ClientMetadata]` - -
-
- -
-
- -**mobile:** `typing.Optional[ClientMobile]` - -
-
- -
-
- -**initiate_login_uri:** `typing.Optional[str]` — Initiate login uri, must be https - -
-
- -
-
- -**native_social_login:** `typing.Optional[NativeSocialLogin]` - -
-
- -
-
- -**fedcm_login:** `typing.Optional[FedCmLogin]` - -
-
- -
-
- -**refresh_token:** `typing.Optional[ClientRefreshTokenConfiguration]` - -
-
- -
-
- -**default_organization:** `typing.Optional[ClientDefaultOrganization]` - -
-
- -
-
- -**organization_usage:** `typing.Optional[ClientOrganizationUsageEnum]` - -
-
- -
-
- -**organization_require_behavior:** `typing.Optional[ClientOrganizationRequireBehaviorEnum]` - -
-
- -
-
- -**organization_discovery_methods:** `typing.Optional[typing.List[ClientOrganizationDiscoveryEnum]]` — Defines the available methods for organization discovery during the `pre_login_prompt`. Users can discover their organization either by `email`, `organization_name` or both. - -
-
- -
-
- -**client_authentication_methods:** `typing.Optional[ClientCreateAuthenticationMethod]` - -
-
- -
-
- -**require_pushed_authorization_requests:** `typing.Optional[bool]` — Makes the use of Pushed Authorization Requests mandatory for this client - -
-
- -
-
- -**require_proof_of_possession:** `typing.Optional[bool]` — Makes the use of Proof-of-Possession mandatory for this client - -
-
- -
-
- -**signed_request_object:** `typing.Optional[ClientSignedRequestObjectWithPublicKey]` - -
-
- -
-
- -**token_vault_privileged_access:** `typing.Optional[ClientTokenVaultPrivilegedAccessWithPublicKey]` - -
-
- -
-
- -**compliance_level:** `typing.Optional[ClientComplianceLevelEnum]` - -
-
- -
-
- -**skip_non_verifiable_callback_uri_confirmation_prompt:** `typing.Optional[bool]` - -Controls whether a confirmation prompt is shown during login flows when the redirect URI uses non-verifiable callback URIs (for example, a custom URI schema such as `myapp://`, or `localhost`). -If set to true, a confirmation prompt will not be shown. We recommend that this is set to false for improved protection from malicious apps. -See https://auth0.com/docs/secure/security-guidance/measures-against-app-impersonation for more information. - -
-
- -
-
- -**token_exchange:** `typing.Optional[ClientTokenExchangeConfiguration]` - -
-
- -
-
- -**par_request_expiry:** `typing.Optional[int]` — Specifies how long, in seconds, a Pushed Authorization Request URI remains valid - -
-
- -
-
- -**token_quota:** `typing.Optional[CreateTokenQuota]` - -
-
- -
-
- -**resource_server_identifier:** `typing.Optional[str]` — The identifier of the resource server that this client is linked to. - -
-
- -
-
- -**identity_assertion_authorization_grant:** `typing.Optional[CreateIdentityAssertionAuthorizationGrant]` - -
-
- -
-
- -**anonymous_sessions:** `typing.Optional[CreateAnonymousSessions]` - -
-
- -
-
- -**enforce_anon_session_transfer_network_binding:** `typing.Optional[ClientAnonymousSessionTransferNetworkBindingEnum]` - -
-
- -
-
- -**third_party_security_mode:** `typing.Optional[ClientThirdPartySecurityModeEnum]` - -
-
- -
-
- -**redirection_policy:** `typing.Optional[ClientRedirectionPolicyEnum]` - -
-
- -
-
- -**express_configuration:** `typing.Optional[ExpressConfiguration]` - -
-
- -
-
- -**b_2_b_integration_configuration:** `typing.Optional[B2BIntegrationConfiguration]` - -
-
- -
-
- -**my_organization_configuration:** `typing.Optional[ClientMyOrganizationPostConfiguration]` - -
-
- -
-
- -**google_account_linking:** `typing.Optional[GoogleAccountLinkingConfigurationCreate]` - -
-
- -
-
- -**async_approval_notification_channels:** `typing.Optional[ClientAsyncApprovalNotificationsChannelsApiPostConfiguration]` - -
-
- -
-
- -**agent_id:** `typing.Optional[str]` — ID of the agent to associate with this client. - -
-
- -
-
- -**oidc_support:** `typing.Optional[ClientOidcSupportPost]` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.clients.preview_cimd_metadata(...) -> PreviewCimdMetadataResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- - - Fetches and validates a Client ID Metadata Document without creating a client. - Returns the raw metadata and how it would be mapped to Auth0 client fields. - This endpoint is useful for testing metadata URIs before creating CIMD clients. - -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.clients.preview_cimd_metadata( - external_client_id="external_client_id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**external_client_id:** `str` — URL to the Client ID Metadata Document - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.clients.register_cimd_client(...) -> RegisterCimdClientResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Idempotent registration for Client ID Metadata Document (CIMD) clients. -Uses external_client_id as the unique identifier for upsert operations. - -**Create:** Returns 201 when a new client is created (requires `create:clients` scope). -**Update:** Returns 200 when an existing client is updated (requires `update:clients` scope). - -This endpoint automatically: -- Fetches and validates the metadata document -- Maps CIMD fields to Auth0 client configuration -- Creates/rotates credentials from the JWKS -- Enforces CIMD security policies (HTTPS-only, no shared secrets) -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.clients.register_cimd_client( - external_client_id="external_client_id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**external_client_id:** `str` — URL to the Client ID Metadata Document. Acts as the unique identifier for upsert operations. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.clients.search(...) -> SearchClientsResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Search clients using SCIM or Lucene filter syntax with low-latency, eventually consistent results. -Use the parser parameter to specify "scim" or "lucene" syntax (default: "lucene"). -This endpoint provides an alternative to the standard GET /clients endpoint with better performance -for complex queries. Results may not reflect recent updates immediately. - -- This endpoint only supports `read:clients` and `read:client_summary` scopes. The `read:client_keys` and `read:client_credentials` scopes are not supported. -- The following fields are never returned by this endpoint: - - `client_secret` - - `encryption_key` - - `signing_keys` - - `owners` - - `addons` -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.clients.search( - q="q", - parser="scim", - fields="fields", - include_fields=True, - take=1, - from_="from", - sort="name", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**q:** `typing.Optional[str]` — Filter expression in SCIM or Lucene syntax (depending on parser parameter). SCIM examples: `name eq "Auth0"`, `name sw "auth" and app_type eq "spa"`. SCIM operators: eq, ne, sw, ew, co, pr, gt, ge, lt, le, and, or.

Supported Fields:
  • client_id - Auth0 client ID (case-sensitive, exact match)
  • external_client_id - URL of the Client ID Metadata Document (CIMD); case-sensitive, exact match
  • name - Client name (supports contains, starts-with, ends-with operators; sortable)
  • app_type - Application type (e.g. "spa", "native", "non_interactive")
  • is_first_party - Whether the client is first-party (boolean)
  • updated_at - Last update timestamp (supports date range operators; sortable)
  • metadata.{key} - Filter by client metadata key-value pairs (max 2-level key depth, values indexed up to 64 characters)
  • client_grant.organization_id - Filter by associated organization ID
  • client_grant.allow_any_organization - Filter by allow any organization setting
Maximum 5 filter operations per query. Results are eventually consistent and may not reflect recent updates. - -
-
- -
-
- -**parser:** `typing.Optional[SearchParserEnum]` — Query parser to use for the filter expression. Use "scim" for SCIM filter syntax or "lucene" for Lucene query syntax (default). - -
-
- -
-
- -**fields:** `typing.Optional[str]` — Comma-separated list of fields to include or exclude in the response. Works with the include_fields parameter to control projection mode. Maximum 50 fields. - -
-
- -
-
- -**include_fields:** `typing.Optional[bool]` — Controls field projection mode. Set to true to include only fields specified in the fields parameter. Set to false to exclude fields specified in the fields parameter. Defaults to true if not specified. - -
-
- -
-
- -**take:** `typing.Optional[int]` — Maximum number of results to return per page (1-100). Defaults to 50. - -
-
- -
-
- -**from:** `typing.Optional[str]` — Cursor for the next page of results. Use the value from the next field in the previous response. - -
-
- -
-
- -**sort:** `typing.Optional[ClientSortFieldEnum]` — Field name to sort results by in ascending order. Defaults to insertion order (oldest first) if not provided. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.clients.get(...) -> GetClientResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve client details by ID. Clients are SSO connections or Applications linked with your Auth0 tenant. A list of fields to include or exclude may also be specified. -For more information, read [Applications in Auth0](https://www.auth0.com/docs/get-started/applications) and [Single Sign-On](https://www.auth0.com/docs/authenticate/single-sign-on). - -- The following properties can be retrieved with any of the scopes: - `client_id`, `app_type`, `name`, and `description`. -- The following properties can only be retrieved with the `read:clients` or - `read:client_keys` scopes: - `callbacks`, `oidc_logout`, `allowed_origins`, - `web_origins`, `tenant`, `global`, `config_route`, - `callback_url_template`, `jwt_configuration`, - `jwt_configuration.lifetime_in_seconds`, `jwt_configuration.secret_encoded`, - `jwt_configuration.scopes`, `jwt_configuration.alg`, `api_type`, - `logo_uri`, `allowed_clients`, `owners`, `custom_login_page`, - `custom_login_page_on`, `sso`, `addons`, `form_template`, - `custom_login_page_codeview`, `resource_servers`, `client_metadata`, - `mobile`, `mobile.android`, `mobile.ios`, `allowed_logout_urls`, - `token_endpoint_auth_method`, `is_first_party`, `oidc_conformant`, - `is_token_endpoint_ip_header_trusted`, `initiate_login_uri`, `grant_types`, - `refresh_token`, `refresh_token.rotation_type`, `refresh_token.expiration_type`, - `refresh_token.leeway`, `refresh_token.token_lifetime`, `refresh_token.policies`, `organization_usage`, - `organization_require_behavior`. -- The following properties can only be retrieved with the `read:client_keys` or `read:client_credentials` scopes: - `encryption_key`, `encryption_key.pub`, `encryption_key.cert`, - `client_secret`, `client_authentication_methods` and `signing_key`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.clients.get( - id="id", - fields="fields", - include_fields=True, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the client to retrieve. - -
-
- -
-
- -**fields:** `typing.Optional[str]` — Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - -
-
- -
-
- -**include_fields:** `typing.Optional[bool]` — Whether specified fields are to be included (true) or excluded (false). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.clients.delete(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Delete a client and related configuration (rules, connections, etc). -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.clients.delete( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the client to delete. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.clients.update(...) -> UpdateClientResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Updates a client's settings. For more information, read [Applications in Auth0](https://www.auth0.com/docs/get-started/applications) and [Single Sign-On](https://www.auth0.com/docs/authenticate/single-sign-on). - -Notes: -- The `client_secret` and `signing_key` attributes can only be updated with the `update:client_keys` scope. -- The `client_authentication_methods` and `token_endpoint_auth_method` properties are mutually exclusive. Use `client_authentication_methods` to configure the client with Private Key JWT authentication method. Otherwise, use `token_endpoint_auth_method` to configure the client with client secret (basic or post) or with no authentication method (none). -- When using `client_authentication_methods` to configure the client with Private Key JWT authentication method, only specify the credential IDs that were generated when creating the credentials on the client. -- To configure `client_authentication_methods`, the `update:client_credentials` scope is required. -- To configure `client_authentication_methods`, the property `jwt_configuration.alg` must be set to RS256. -- To change a client's `is_first_party` property to `false`, the `organization_usage` and `organization_require_behavior` properties must be unset. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.clients.update( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the client to update. - -
-
- -
-
- -**name:** `typing.Optional[str]` — The name of the client. Must contain at least one character. Does not allow '<' or '>'. - -
-
- -
-
- -**description:** `typing.Optional[str]` — Free text description of the purpose of the Client. (Max character length: 140) - -
-
- -
-
- -**client_secret:** `typing.Optional[str]` — The secret used to sign tokens for the client - -
-
- -
-
- -**logo_uri:** `typing.Optional[str]` — The URL of the client logo (recommended size: 150x150) - -
-
- -
-
- -**callbacks:** `typing.Optional[typing.List[str]]` — A set of URLs that are valid to call back from Auth0 when authenticating users - -
-
- -
-
- -**oidc_logout:** `typing.Optional[ClientOidcBackchannelLogoutSettings]` - -
-
- -
-
- -**oidc_backchannel_logout:** `typing.Optional[ClientOidcBackchannelLogoutSettings]` — Configuration for OIDC backchannel logout (deprecated, in favor of oidc_logout) - -
-
- -
-
- -**session_transfer:** `typing.Optional[ClientSessionTransferConfiguration]` - -
-
- -
-
- -**allowed_origins:** `typing.Optional[typing.List[str]]` — A set of URLs that represents valid origins for CORS - -
-
- -
-
- -**web_origins:** `typing.Optional[typing.List[str]]` — A set of URLs that represents valid web origins for use with web message response mode - -
-
- -
-
- -**grant_types:** `typing.Optional[typing.List[str]]` — A set of grant types that the client is authorized to use. Can include `authorization_code`, `implicit`, `refresh_token`, `client_credentials`, `password`, `http://auth0.com/oauth/grant-type/password-realm`, `http://auth0.com/oauth/grant-type/mfa-oob`, `http://auth0.com/oauth/grant-type/mfa-otp`, `http://auth0.com/oauth/grant-type/mfa-recovery-code`, `urn:openid:params:grant-type:ciba`, `urn:ietf:params:oauth:grant-type:device_code`, and `urn:auth0:params:oauth:grant-type:token-exchange:federated-connection-access-token`. - -
-
- -
-
- -**client_aliases:** `typing.Optional[typing.List[str]]` — List of audiences for SAML protocol - -
-
- -
-
- -**allowed_clients:** `typing.Optional[typing.List[str]]` — Ids of clients that will be allowed to perform delegation requests. Clients that will be allowed to make delegation request. By default, all your clients will be allowed. This field allows you to specify specific clients - -
-
- -
-
- -**allowed_logout_urls:** `typing.Optional[typing.List[str]]` — URLs that are valid to redirect to after logout from Auth0 - -
-
- -
-
- -**jwt_configuration:** `typing.Optional[ClientJwtConfiguration]` — An object that holds settings related to how JWTs are created - -
-
- -
-
- -**encryption_key:** `typing.Optional[ClientEncryptionKey]` — The client's encryption key - -
-
- -
-
- -**sso:** `typing.Optional[bool]` — true to use Auth0 instead of the IdP to do Single Sign On, false otherwise (default: false) - -
-
- -
-
- -**cross_origin_authentication:** `typing.Optional[bool]` — true if this client can be used to make cross-origin authentication requests, false otherwise if cross origin is disabled - -
-
- -
-
- -**cross_origin_loc:** `typing.Optional[str]` — URL for the location in your site where the cross origin verification takes place for the cross-origin auth flow when performing Auth in your own domain instead of Auth0 hosted login page. - -
-
- -
-
- -**sso_disabled:** `typing.Optional[bool]` — true to disable Single Sign On, false otherwise (default: false) - -
-
- -
-
- -**custom_login_page_on:** `typing.Optional[bool]` — true if the custom login page is to be used, false otherwise. - -
-
- -
-
- -**token_endpoint_auth_method:** `typing.Optional[ClientTokenEndpointAuthMethodOrNullEnum]` - -
-
- -
-
- -**is_token_endpoint_ip_header_trusted:** `typing.Optional[bool]` — If true, trust that the IP specified in the `auth0-forwarded-for` header is the end-user's IP for brute-force-protection on token endpoint. - -
-
- -
-
- -**app_type:** `typing.Optional[ClientAppTypeEnum]` - -
-
- -
-
- -**is_first_party:** `typing.Optional[bool]` — Whether this client a first party client or not - -
-
- -
-
- -**oidc_conformant:** `typing.Optional[bool]` — Whether this client will conform to strict OIDC specifications - -
-
- -
-
- -**custom_login_page:** `typing.Optional[str]` — The content (HTML, CSS, JS) of the custom login page - -
-
- -
-
- -**custom_login_page_preview:** `typing.Optional[str]` - -
-
- -
-
- -**token_quota:** `typing.Optional[UpdateTokenQuota]` - -
-
- -
-
- -**identity_assertion_authorization_grant:** `typing.Optional[UpdateIdentityAssertionAuthorizationGrant]` - -
-
- -
-
- -**anonymous_sessions:** `typing.Optional[UpdateAnonymousSessions]` - -
-
- -
-
- -**enforce_anon_session_transfer_network_binding:** `typing.Optional[ClientAnonymousSessionTransferNetworkBindingEnum]` - -
-
- -
-
- -**form_template:** `typing.Optional[str]` — Form template for WS-Federation protocol - -
-
- -
-
- -**addons:** `typing.Optional[ClientAddons]` - -
-
- -
-
- -**client_metadata:** `typing.Optional[ClientMetadata]` - -
-
- -
-
- -**mobile:** `typing.Optional[ClientMobile]` — Configuration related to native mobile apps - -
-
- -
-
- -**initiate_login_uri:** `typing.Optional[str]` — Initiate login uri, must be https - -
-
- -
-
- -**native_social_login:** `typing.Optional[NativeSocialLoginPatch]` - -
-
- -
-
- -**fedcm_login:** `typing.Optional[FedCmLoginPatch]` - -
-
- -
-
- -**refresh_token:** `typing.Optional[ClientRefreshTokenConfiguration]` - -
-
- -
-
- -**default_organization:** `typing.Optional[ClientDefaultOrganization]` - -
-
- -
-
- -**organization_usage:** `typing.Optional[ClientOrganizationUsagePatchEnum]` - -
-
- -
-
- -**organization_require_behavior:** `typing.Optional[ClientOrganizationRequireBehaviorPatchEnum]` - -
-
- -
-
- -**organization_discovery_methods:** `typing.Optional[typing.List[ClientOrganizationDiscoveryEnum]]` — Defines the available methods for organization discovery during the `pre_login_prompt`. Users can discover their organization either by `email`, `organization_name` or both. - -
-
- -
-
- -**client_authentication_methods:** `typing.Optional[ClientAuthenticationMethod]` - -
-
- -
-
- -**require_pushed_authorization_requests:** `typing.Optional[bool]` — Makes the use of Pushed Authorization Requests mandatory for this client - -
-
- -
-
- -**require_proof_of_possession:** `typing.Optional[bool]` — Makes the use of Proof-of-Possession mandatory for this client - -
-
- -
-
- -**signed_request_object:** `typing.Optional[ClientSignedRequestObjectWithCredentialId]` - -
-
- -
-
- -**token_vault_privileged_access:** `typing.Optional[ClientTokenVaultPrivilegedAccessWithCredentialId]` - -
-
- -
-
- -**compliance_level:** `typing.Optional[ClientComplianceLevelEnum]` - -
-
- -
-
- -**skip_non_verifiable_callback_uri_confirmation_prompt:** `typing.Optional[bool]` - -Controls whether a confirmation prompt is shown during login flows when the redirect URI uses non-verifiable callback URIs (for example, a custom URI schema such as `myapp://`, or `localhost`). -If set to true, a confirmation prompt will not be shown. We recommend that this is set to false for improved protection from malicious apps. -See https://auth0.com/docs/secure/security-guidance/measures-against-app-impersonation for more information. - -
-
- -
-
- -**token_exchange:** `typing.Optional[ClientTokenExchangeConfigurationOrNull]` - -
-
- -
-
- -**par_request_expiry:** `typing.Optional[int]` — Specifies how long, in seconds, a Pushed Authorization Request URI remains valid - -
-
- -
-
- -**express_configuration:** `typing.Optional[ExpressConfigurationOrNull]` - -
-
- -
-
- -**b_2_b_integration_configuration:** `typing.Optional[B2BIntegrationConfiguration]` - -
-
- -
-
- -**my_organization_configuration:** `typing.Optional[ClientMyOrganizationPatchConfiguration]` - -
-
- -
-
- -**google_account_linking:** `typing.Optional[GoogleAccountLinkingConfigurationOrNull]` - -
-
- -
-
- -**async_approval_notification_channels:** `typing.Optional[ClientAsyncApprovalNotificationsChannelsApiPatchConfiguration]` - -
-
- -
-
- -**third_party_security_mode:** `typing.Optional[ClientThirdPartySecurityModeEnum]` - -
-
- -
-
- -**redirection_policy:** `typing.Optional[ClientRedirectionPolicyEnum]` - -
-
- -
-
- -**agent_id:** `typing.Optional[str]` — ID of the agent to associate with this client, or null to remove the association. - -
-
- -
-
- -**oidc_support:** `typing.Optional[ClientOidcSupportPatch]` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.clients.rotate_secret(...) -> RotateClientSecretResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Rotate a client secret. - -This endpoint cannot be used with clients configured with Private Key JWT authentication method (client_authentication_methods configured with private_key_jwt). The generated secret is NOT base64 encoded. - -For more information, read [Rotate Client Secrets](https://www.auth0.com/docs/get-started/applications/rotate-client-secret). -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.clients.rotate_secret( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the client that will rotate secrets. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## ConnectionProfiles -
client.connection_profiles.list(...) -> ListConnectionProfilesPaginatedResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve a list of Connection Profiles. This endpoint supports Checkpoint pagination. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.connection_profiles.list( - from_="from", - take=1, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**from:** `typing.Optional[str]` — Optional Id from which to start selection. - -
-
- -
-
- -**take:** `typing.Optional[int]` — Number of results per page. Defaults to 5. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.connection_profiles.create(...) -> CreateConnectionProfileResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Create a Connection Profile. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.connection_profiles.create( - name="name", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**name:** `ConnectionProfileName` - -
-
- -
-
- -**organization:** `typing.Optional[ConnectionProfileOrganization]` - -
-
- -
-
- -**connection_name_prefix_template:** `typing.Optional[ConnectionNamePrefixTemplate]` - -
-
- -
-
- -**enabled_features:** `typing.Optional[ConnectionProfileEnabledFeatures]` - -
-
- -
-
- -**connection_config:** `typing.Optional[ConnectionProfileConfig]` - -
-
- -
-
- -**strategy_overrides:** `typing.Optional[ConnectionProfileStrategyOverrides]` - -
-
- -
-
- -**provisioning:** `typing.Optional[ConnectionProfileProvisioning]` - -
-
- -
-
- -**cross_app_access_resource_app:** `typing.Optional[ConnectionProfileCrossAppAccessResourceApp]` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.connection_profiles.list_templates() -> ListConnectionProfileTemplateResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve a list of Connection Profile Templates. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.connection_profiles.list_templates() - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.connection_profiles.get_template(...) -> GetConnectionProfileTemplateResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve a Connection Profile Template. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.connection_profiles.get_template( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the connection-profile-template to retrieve. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.connection_profiles.get(...) -> GetConnectionProfileResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve details about a single Connection Profile specified by ID. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.connection_profiles.get( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the connection-profile to retrieve. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.connection_profiles.delete(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Delete a single Connection Profile specified by ID. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.connection_profiles.delete( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the connection-profile to delete. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.connection_profiles.update(...) -> UpdateConnectionProfileResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Update the details of a specific Connection Profile. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.connection_profiles.update( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the connection profile to update. - -
-
- -
-
- -**name:** `typing.Optional[ConnectionProfileName]` - -
-
- -
-
- -**organization:** `typing.Optional[ConnectionProfileOrganization]` - -
-
- -
-
- -**connection_name_prefix_template:** `typing.Optional[ConnectionNamePrefixTemplate]` - -
-
- -
-
- -**enabled_features:** `typing.Optional[ConnectionProfileEnabledFeatures]` - -
-
- -
-
- -**connection_config:** `typing.Optional[ConnectionProfileConfig]` - -
-
- -
-
- -**strategy_overrides:** `typing.Optional[ConnectionProfileStrategyOverrides]` - -
-
- -
-
- -**provisioning:** `typing.Optional[ConnectionProfileProvisioning]` - -
-
- -
-
- -**cross_app_access_resource_app:** `typing.Optional[ConnectionProfileCrossAppAccessResourceApp]` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Connections -
client.connections.list(...) -> ListConnectionsCheckpointPaginatedResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieves detailed list of all [connections](https://auth0.com/docs/authenticate/identity-providers) that match the specified strategy. If no strategy is provided, all connections within your tenant are retrieved. This action can accept a list of fields to include or exclude from the resulting list of connections. - -This endpoint supports two types of pagination: - -- Offset pagination -- Checkpoint pagination - -Checkpoint pagination must be used if you need to retrieve more than 1000 connections. - -**Checkpoint Pagination** - -To search by checkpoint, use the following parameters: - -- `from`: Optional id from which to start selection. -- `take`: The total amount of entries to retrieve when using the from parameter. Defaults to 50. - -**Note**: The first time you call this endpoint using checkpoint pagination, omit the `from` parameter. If there are more results, a `next` value is included in the response. You can use this for subsequent API calls. When `next` is no longer included in the response, no pages are remaining. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.connections.list( - include_totals=True, - from_="from", - take=1, - strategy=[ - "ad" - ], - name="name", - fields="fields", - include_fields=True, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**include_totals:** `typing.Optional[bool]` — true if a query summary must be included in the result, false otherwise. Not returned when using checkpoint pagination. Default false. - -
-
- -
-
- -**from:** `typing.Optional[str]` — Optional Id from which to start selection. - -
-
- -
-
- -**take:** `typing.Optional[int]` — Number of results per page. Defaults to 50. - -
-
- -
-
- -**strategy:** `typing.Optional[typing.Union[typing.Optional[ConnectionStrategyEnum], typing.Sequence[typing.Optional[ConnectionStrategyEnum]]]]` — Provide strategies to only retrieve connections with such strategies - -
-
- -
-
- -**name:** `typing.Optional[str]` — Provide the name of the connection to retrieve - -
-
- -
-
- -**fields:** `typing.Optional[str]` — A comma separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields - -
-
- -
-
- -**include_fields:** `typing.Optional[bool]` — true if the fields specified are to be included in the result, false otherwise (defaults to true) - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.connections.create(...) -> CreateConnectionResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Creates a new connection according to the JSON object received in `body`. - -**Note:** If a connection with the same name was recently deleted and had a large number of associated users, the deletion may still be processing. Creating a new connection with that name before the deletion completes may fail or produce unexpected results. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.connections.create( - name="name", - strategy="ad", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**name:** `str` — The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 - -
-
- -
-
- -**strategy:** `ConnectionIdentityProviderEnum` - -
-
- -
-
- -**display_name:** `typing.Optional[str]` — Connection name used in the new universal login experience - -
-
- -
-
- -**options:** `typing.Optional[ConnectionPropertiesOptions]` - -
-
- -
-
- -**enabled_clients:** `typing.Optional[typing.List[str]]` — Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. - -
-
- -
-
- -**is_domain_connection:** `typing.Optional[bool]` — true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) - -
-
- -
-
- -**show_as_button:** `typing.Optional[bool]` — Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. (Defaults to false.) - -
-
- -
-
- -**realms:** `typing.Optional[typing.List[str]]` — Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. - -
-
- -
-
- -**metadata:** `typing.Optional[ConnectionsMetadata]` - -
-
- -
-
- -**authentication:** `typing.Optional[ConnectionAuthenticationPurpose]` - -
-
- -
-
- -**connected_accounts:** `typing.Optional[ConnectionConnectedAccountsPurpose]` - -
-
- -
-
- -**cross_app_access_requesting_app:** `typing.Optional[CrossAppAccessRequestingApp]` - -
-
- -
-
- -**cross_app_access_resource_app:** `typing.Optional[CreateCrossAppAccessResourceApp]` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.connections.get(...) -> GetConnectionResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve details for a specified [connection](https://auth0.com/docs/authenticate/identity-providers) along with options that can be used for identity provider configuration. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.connections.get( - id="id", - fields="fields", - include_fields=True, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The id of the connection to retrieve - -
-
- -
-
- -**fields:** `typing.Optional[str]` — A comma separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields - -
-
- -
-
- -**include_fields:** `typing.Optional[bool]` — true if the fields specified are to be included in the result, false otherwise (defaults to true) - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.connections.delete(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Removes a specific [connection](https://auth0.com/docs/authenticate/identity-providers) from your tenant. This action cannot be undone. Once removed, users can no longer use this connection to authenticate. - -**Note:** If your connection has a large amount of users associated with it, please be aware that this operation can be long running after the response is returned and may impact concurrent [create connection](https://auth0.com/docs/api/management/v2/connections/post-connections) requests, if they use an identical connection name. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.connections.delete( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The id of the connection to delete - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.connections.update(...) -> UpdateConnectionResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Update details for a specific [connection](https://auth0.com/docs/authenticate/identity-providers), including option properties for identity provider configuration. - -**Note**: If you use the `options` parameter, the entire `options` object is overridden. To avoid partial data or other issues, ensure all parameters are present when using this option. If any options are unspecified, the default will be used, even if it differs from the existing value. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.connections.update( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The id of the connection to update - -
-
- -
-
- -**display_name:** `typing.Optional[str]` — The connection name used in the new universal login experience. If display_name is not included in the request, the field will be overwritten with the name value. - -
-
- -
-
- -**options:** `typing.Optional[UpdateConnectionOptions]` - -
-
- -
-
- -**enabled_clients:** `typing.Optional[typing.List[str]]` — DEPRECATED property. Use the PATCH /v2/connections/{id}/clients endpoint to enable or disable the connection for any clients. - -
-
- -
-
- -**is_domain_connection:** `typing.Optional[bool]` — true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) - -
-
- -
-
- -**show_as_button:** `typing.Optional[bool]` — Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. (Defaults to false.) - -
-
- -
-
- -**realms:** `typing.Optional[typing.List[str]]` — Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. - -
-
- -
-
- -**metadata:** `typing.Optional[ConnectionsMetadata]` - -
-
- -
-
- -**authentication:** `typing.Optional[ConnectionAuthenticationPurpose]` - -
-
- -
-
- -**connected_accounts:** `typing.Optional[ConnectionConnectedAccountsPurpose]` - -
-
- -
-
- -**cross_app_access_requesting_app:** `typing.Optional[CrossAppAccessRequestingApp]` - -
-
- -
-
- -**cross_app_access_resource_app:** `typing.Optional[UpdateCrossAppAccessResourceApp]` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.connections.check_status(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieves the status of an ad/ldap connection referenced by its `ID`. `200 OK` http status code response is returned when the connection is online, otherwise a `404` status code is returned along with an error message -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.connections.check_status( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the connection to check - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## CustomDomains -
client.custom_domains.list(...) -> ListCustomDomainsResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve details on [custom domains](https://auth0.com/docs/custom-domains). -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.custom_domains.list( - q="q", - fields="fields", - include_fields=True, - sort="sort", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**q:** `typing.Optional[str]` — Query in Lucene query string syntax. - -
-
- -
-
- -**fields:** `typing.Optional[str]` — Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - -
-
- -
-
- -**include_fields:** `typing.Optional[bool]` — Whether specified fields are to be included (true) or excluded (false). - -
-
- -
-
- -**sort:** `typing.Optional[str]` — Field to sort by. Only domain:1 (ascending order by domain) is supported at this time. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.custom_domains.create(...) -> CreateCustomDomainResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Create a new custom domain. - -Note: The custom domain will need to be verified before it will accept -requests. - -Optional attributes that can be updated: - -- custom_client_ip_header -- tls_policy - -TLS Policies: - -- recommended - for modern usage this includes TLS 1.2 only -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.custom_domains.create( - domain="domain", - type="auth0_managed_certs", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**domain:** `str` — Domain name. - -
-
- -
-
- -**type:** `CustomDomainProvisioningTypeEnum` - -
-
- -
-
- -**verification_method:** `typing.Optional[CustomDomainVerificationMethodEnum]` - -
-
- -
-
- -**tls_policy:** `typing.Optional[CustomDomainTlsPolicyEnum]` - -
-
- -
-
- -**custom_client_ip_header:** `typing.Optional[CustomDomainCustomClientIpHeader]` - -
-
- -
-
- -**domain_metadata:** `typing.Optional[DomainMetadata]` - -
-
- -
-
- -**relying_party_identifier:** `typing.Optional[str]` — Relying Party ID (rpId) to be used for Passkeys on this custom domain. If not provided, the full domain will be used. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.custom_domains.get_default() -> GetDefaultDomainResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve the tenant's default domain. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.custom_domains.get_default() - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.custom_domains.set_default(...) -> UpdateDefaultDomainResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Set the default custom domain for the tenant. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.custom_domains.set_default( - domain="domain", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**domain:** `str` — The domain to set as the default custom domain. Must be a verified custom domain or the canonical domain. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.custom_domains.get(...) -> GetCustomDomainResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve a custom domain configuration and status. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.custom_domains.get( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the custom domain to retrieve. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.custom_domains.delete(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Delete a custom domain and stop serving requests for it. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.custom_domains.delete( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the custom domain to delete. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.custom_domains.update(...) -> UpdateCustomDomainResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Update a custom domain. - -These are the attributes that can be updated: - -- custom_client_ip_header -- tls_policy - -**Updating CUSTOM_CLIENT_IP_HEADER for a custom domain** - -To update the `custom_client_ip_header` for a domain, the body to -send should be: - -```json -{ "custom_client_ip_header": "cf-connecting-ip" } -``` - -**Updating TLS_POLICY for a custom domain** - -To update the `tls_policy` for a domain, the body to send should be: - -```json -{ "tls_policy": "recommended" } -``` - -TLS Policies: - -- recommended - for modern usage this includes TLS 1.2 only - -Some considerations: - -- The TLS ciphers and protocols available in each TLS policy follow industry recommendations, and may be updated occasionally. -- The `compatible` TLS policy is no longer supported. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.custom_domains.update( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The id of the custom domain to update - -
-
- -
-
- -**tls_policy:** `typing.Optional[CustomDomainTlsPolicyEnum]` — recommended includes TLS 1.2 - -
-
- -
-
- -**custom_client_ip_header:** `typing.Optional[CustomDomainCustomClientIpHeader]` - -
-
- -
-
- -**domain_metadata:** `typing.Optional[DomainMetadata]` - -
-
- -
-
- -**relying_party_identifier:** `typing.Optional[str]` — Relying Party ID (rpId) to be used for Passkeys on this custom domain. Set to null to remove the rpId and fall back to using the full domain. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.custom_domains.test(...) -> TestCustomDomainResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Run the test process on a custom domain. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.custom_domains.test( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the custom domain to test. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.custom_domains.verify(...) -> VerifyCustomDomainResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Run the verification process on a custom domain. - -Note: Check the `status` field to see its verification status. Once verification is complete, it may take up to 10 minutes before the custom domain can start accepting requests. - -For `self_managed_certs`, when the custom domain is verified for the first time, the response will also include the `cname_api_key` which you will need to configure your proxy. This key must be kept secret, and is used to validate the proxy requests. - -[Learn more](https://auth0.com/docs/custom-domains#step-2-verify-ownership) about verifying custom domains that use Auth0 Managed certificates. -[Learn more](https://auth0.com/docs/custom-domains/self-managed-certificates#step-2-verify-ownership) about verifying custom domains that use Self Managed certificates. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.custom_domains.verify( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the custom domain to verify. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## DeviceCredentials -
client.device_credentials.list(...) -> ListDeviceCredentialsOffsetPaginatedResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve device credential information (`public_key`, `refresh_token`, or `rotating_refresh_token`) associated with a specific user. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.device_credentials.list( - page=1, - per_page=1, - include_totals=True, - fields="fields", - include_fields=True, - user_id="user_id", - client_id="client_id", - type="public_key", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**page:** `typing.Optional[int]` — Page index of the results to return. First page is 0. - -
-
- -
-
- -**per_page:** `typing.Optional[int]` — Number of results per page. There is a maximum of 1000 results allowed from this endpoint. - -
-
- -
-
- -**include_totals:** `typing.Optional[bool]` — Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - -
-
- -
-
- -**fields:** `typing.Optional[str]` — Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - -
-
- -
-
- -**include_fields:** `typing.Optional[bool]` — Whether specified fields are to be included (true) or excluded (false). - -
-
- -
-
- -**user_id:** `typing.Optional[str]` — user_id of the devices to retrieve. - -
-
- -
-
- -**client_id:** `typing.Optional[str]` — client_id of the devices to retrieve. - -
-
- -
-
- -**type:** `typing.Optional[DeviceCredentialTypeEnum]` — Type of credentials to retrieve. Must be `public_key`, `refresh_token` or `rotating_refresh_token`. If none is provided a combined list of `refresh_tokens` and `public_keys` will be returned (and no `rotating_refresh_token`), in this case `page`, `per_page` and `include_totals` will be ignored. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.device_credentials.create_public_key(...) -> CreatePublicKeyDeviceCredentialResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Create a device credential public key to manage refresh token rotation for a given `user_id`. Device Credentials APIs are designed for ad-hoc administrative use only and paging is by default enabled for GET requests. - -When refresh token rotation is enabled, the endpoint becomes consistent. For more information, read [Signing Keys](https://auth0.com/docs/get-started/tenant-settings/signing-keys). -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.device_credentials.create_public_key( - device_name="device_name", - type="public_key", - value="value", - device_id="device_id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**device_name:** `str` — Name for this device easily recognized by owner. - -
-
- -
-
- -**type:** `DeviceCredentialPublicKeyTypeEnum` - -
-
- -
-
- -**value:** `str` — Base64 encoded string containing the credential. - -
-
- -
-
- -**device_id:** `str` — Unique identifier for the device. Recommend using Android_ID on Android and identifierForVendor. - -
-
- -
-
- -**client_id:** `typing.Optional[str]` — client_id of the client (application) this credential is for. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.device_credentials.delete(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Permanently delete a device credential (such as a refresh token or public key) with the given ID. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.device_credentials.delete( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the credential to delete. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## EmailTemplates -
client.email_templates.create(...) -> CreateEmailTemplateResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Create an email template. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.email_templates.create( - template="verify_email", - body=None, - from_=None, - subject=None, - syntax=None, - enabled=None, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**template:** `EmailTemplateNameEnum` - -
-
- -
-
- -**body:** `typing.Optional[str]` — Body of the email template. - -
-
- -
-
- -**from:** `typing.Optional[str]` — Senders `from` email address. - -
-
- -
-
- -**result_url:** `typing.Optional[str]` — URL to redirect the user to after a successful action. - -
-
- -
-
- -**subject:** `typing.Optional[str]` — Subject line of the email. - -
-
- -
-
- -**syntax:** `typing.Optional[str]` — Syntax of the template body. - -
-
- -
-
- -**url_lifetime_in_seconds:** `typing.Optional[float]` — Lifetime in seconds that the link within the email will be valid for. - -
-
- -
-
- -**include_email_in_redirect:** `typing.Optional[bool]` — Whether the `reset_email` and `verify_email` templates should include the user's email address as the `email` parameter in the returnUrl (true) or whether no email address should be included in the redirect (false). Defaults to true. - -
-
- -
-
- -**enabled:** `typing.Optional[bool]` — Whether the template is enabled (true) or disabled (false). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.email_templates.get(...) -> GetEmailTemplateResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve an email template by pre-defined name. These names are `verify_email`, `verify_email_by_code`, `auth_email_by_code`, `reset_email`, `reset_email_by_code`, `welcome_email`, `blocked_account`, `stolen_credentials`, `enrollment_email`, `mfa_oob_code`, `user_invitation`, and `async_approval`. The names `change_password`, and `password_reset` are also supported for legacy scenarios. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.email_templates.get( - template_name="verify_email", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**template_name:** `EmailTemplateNameEnum` — Template name. Can be `verify_email`, `verify_email_by_code`, `auth_email_by_code`, `reset_email`, `reset_email_by_code`, `welcome_email`, `blocked_account`, `stolen_credentials`, `enrollment_email`, `mfa_oob_code`, `user_invitation`, `async_approval`, `change_password` (legacy), or `password_reset` (legacy). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.email_templates.set(...) -> SetEmailTemplateResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Update an email template. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.email_templates.set( - template_name="verify_email", - template="verify_email", - body=None, - from_=None, - subject=None, - syntax=None, - enabled=None, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**template_name:** `EmailTemplateNameEnum` — Template name. Can be `verify_email`, `verify_email_by_code`, `auth_email_by_code`, `reset_email`, `reset_email_by_code`, `welcome_email`, `blocked_account`, `stolen_credentials`, `enrollment_email`, `mfa_oob_code`, `user_invitation`, `async_approval`, `change_password` (legacy), or `password_reset` (legacy). - -
-
- -
-
- -**template:** `EmailTemplateNameEnum` - -
-
- -
-
- -**body:** `typing.Optional[str]` — Body of the email template. - -
-
- -
-
- -**from:** `typing.Optional[str]` — Senders `from` email address. - -
-
- -
-
- -**result_url:** `typing.Optional[str]` — URL to redirect the user to after a successful action. - -
-
- -
-
- -**subject:** `typing.Optional[str]` — Subject line of the email. - -
-
- -
-
- -**syntax:** `typing.Optional[str]` — Syntax of the template body. - -
-
- -
-
- -**url_lifetime_in_seconds:** `typing.Optional[float]` — Lifetime in seconds that the link within the email will be valid for. - -
-
- -
-
- -**include_email_in_redirect:** `typing.Optional[bool]` — Whether the `reset_email` and `verify_email` templates should include the user's email address as the `email` parameter in the returnUrl (true) or whether no email address should be included in the redirect (false). Defaults to true. - -
-
- -
-
- -**enabled:** `typing.Optional[bool]` — Whether the template is enabled (true) or disabled (false). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.email_templates.update(...) -> UpdateEmailTemplateResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Modify an email template. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.email_templates.update( - template_name="verify_email", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**template_name:** `EmailTemplateNameEnum` — Template name. Can be `verify_email`, `verify_email_by_code`, `auth_email_by_code`, `reset_email`, `reset_email_by_code`, `welcome_email`, `blocked_account`, `stolen_credentials`, `enrollment_email`, `mfa_oob_code`, `user_invitation`, `async_approval`, `change_password` (legacy), or `password_reset` (legacy). - -
-
- -
-
- -**template:** `typing.Optional[EmailTemplateNameEnum]` - -
-
- -
-
- -**body:** `typing.Optional[str]` — Body of the email template. - -
-
- -
-
- -**from:** `typing.Optional[str]` — Senders `from` email address. - -
-
- -
-
- -**result_url:** `typing.Optional[str]` — URL to redirect the user to after a successful action. - -
-
- -
-
- -**subject:** `typing.Optional[str]` — Subject line of the email. - -
-
- -
-
- -**syntax:** `typing.Optional[str]` — Syntax of the template body. - -
-
- -
-
- -**url_lifetime_in_seconds:** `typing.Optional[float]` — Lifetime in seconds that the link within the email will be valid for. - -
-
- -
-
- -**include_email_in_redirect:** `typing.Optional[bool]` — Whether the `reset_email` and `verify_email` templates should include the user's email address as the `email` parameter in the returnUrl (true) or whether no email address should be included in the redirect (false). Defaults to true. - -
-
- -
-
- -**enabled:** `typing.Optional[bool]` — Whether the template is enabled (true) or disabled (false). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## EventStreams -
client.event_streams.list(...) -> ListEventStreamsResponseContent -
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.event_streams.list( - from_="from", - take=1, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**from:** `typing.Optional[str]` — Optional Id from which to start selection. - -
-
- -
-
- -**take:** `typing.Optional[int]` — Number of results per page. Defaults to 50. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.event_streams.create(...) -> CreateEventStreamResponseContent -
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0, CreateEventStreamWebHookRequestContent, EventStreamWebhookDestination, EventStreamWebhookConfiguration, EventStreamWebhookBasicAuth -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.event_streams.create( - request=CreateEventStreamWebHookRequestContent( - destination=EventStreamWebhookDestination( - type="webhook", - configuration=EventStreamWebhookConfiguration( - webhook_endpoint="webhook_endpoint", - webhook_authorization=EventStreamWebhookBasicAuth( - method="basic", - username="username", - ), - ), - ), - ), -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `EventStreamsCreateRequest` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.event_streams.get(...) -> GetEventStreamResponseContent -
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.event_streams.get( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — Unique identifier for the event stream. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.event_streams.delete(...) -
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.event_streams.delete( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — Unique identifier for the event stream. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.event_streams.update(...) -> UpdateEventStreamResponseContent -
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.event_streams.update( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — Unique identifier for the event stream. - -
-
- -
-
- -**name:** `typing.Optional[str]` — Name of the event stream. - -
-
- -
-
- -**subscriptions:** `typing.Optional[typing.List[EventStreamSubscription]]` — List of event types subscribed to in this stream. - -
-
- -
-
- -**destination:** `typing.Optional[EventStreamDestinationPatch]` - -
-
- -
-
- -**status:** `typing.Optional[EventStreamStatusEnum]` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.event_streams.test(...) -> CreateEventStreamTestEventResponseContent -
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.event_streams.test( - id="id", - event_type="connection.created", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — Unique identifier for the event stream. - -
-
- -
-
- -**event_type:** `EventStreamTestEventTypeEnum` - -
-
- -
-
- -**data:** `typing.Optional[TestEventDataContent]` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Events -
client.events.subscribe(...) -> typing.Iterator[bytes] -
-
- -#### 📝 Description - -
-
- -
-
- -Subscribe to events via Server-Sent Events (SSE) -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.events.subscribe( - from_="from", - from_timestamp="from_timestamp", - event_type=[ - "connection.created" - ], -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**from:** `typing.Optional[str]` — Opaque token representing position in the stream. If not provided, stream will start from the latest events. - -
-
- -
-
- -**from_timestamp:** `typing.Optional[str]` — RFC-3339 timestamp indicating where to start streaming events from. This should only be used on the initial query when a cursor may not be available. Subsequent requests should use the cursor (from) as it will be more accurate. - -
-
- -
-
- -**event_type:** `typing.Optional[typing.Union[typing.Optional[EventStreamSubscribeEventsEventTypeEnum], typing.Sequence[typing.Optional[EventStreamSubscribeEventsEventTypeEnum]]]]` — Event type(s) to listen for. Specify multiple times for multiple types (e.g., ?event_type=user.created&event_type=user.updated). If not provided, all event types will be streamed. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Flows -
client.flows.list(...) -> ListFlowsOffsetPaginatedResponseContent -
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.flows.list( - page=1, - per_page=1, - include_totals=True, - hydrate=[ - "form_count" - ], - synchronous=True, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**page:** `typing.Optional[int]` — Page index of the results to return. First page is 0. - -
-
- -
-
- -**per_page:** `typing.Optional[int]` — Number of results per page. Defaults to 50. - -
-
- -
-
- -**include_totals:** `typing.Optional[bool]` — Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - -
-
- -
-
- -**hydrate:** `typing.Optional[typing.Union[typing.Optional[ListFlowsRequestParametersHydrateEnum], typing.Sequence[typing.Optional[ListFlowsRequestParametersHydrateEnum]]]]` — hydration param - -
-
- -
-
- -**synchronous:** `typing.Optional[bool]` — flag to filter by sync/async flows - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.flows.create(...) -> CreateFlowResponseContent -
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.flows.create( - name="name", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**name:** `str` - -
-
- -
-
- -**actions:** `typing.Optional[typing.List[FlowAction]]` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.flows.get(...) -> GetFlowResponseContent -
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.flows.get( - id="id", - hydrate=[ - "form_count" - ], -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — Flow identifier - -
-
- -
-
- -**hydrate:** `typing.Optional[typing.Union[typing.Optional[GetFlowRequestParametersHydrateEnum], typing.Sequence[typing.Optional[GetFlowRequestParametersHydrateEnum]]]]` — hydration param - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.flows.delete(...) -
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.flows.delete( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — Flow id - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.flows.update(...) -> UpdateFlowResponseContent -
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.flows.update( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — Flow identifier - -
-
- -
-
- -**name:** `typing.Optional[str]` - -
-
- -
-
- -**actions:** `typing.Optional[typing.List[FlowAction]]` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Forms -
client.forms.list(...) -> ListFormsOffsetPaginatedResponseContent -
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.forms.list( - page=1, - per_page=1, - include_totals=True, - hydrate=[ - "flow_count" - ], -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**page:** `typing.Optional[int]` — Page index of the results to return. First page is 0. - -
-
- -
-
- -**per_page:** `typing.Optional[int]` — Number of results per page. Defaults to 50. - -
-
- -
-
- -**include_totals:** `typing.Optional[bool]` — Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - -
-
- -
-
- -**hydrate:** `typing.Optional[typing.Union[typing.Optional[FormsRequestParametersHydrateEnum], typing.Sequence[typing.Optional[FormsRequestParametersHydrateEnum]]]]` — Query parameter to hydrate the response with additional data - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.forms.create(...) -> CreateFormResponseContent -
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.forms.create( - name="name", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**name:** `str` - -
-
- -
-
- -**messages:** `typing.Optional[FormMessages]` - -
-
- -
-
- -**languages:** `typing.Optional[FormLanguages]` - -
-
- -
-
- -**translations:** `typing.Optional[FormTranslations]` - -
-
- -
-
- -**nodes:** `typing.Optional[FormNodeList]` - -
-
- -
-
- -**start:** `typing.Optional[FormStartNode]` - -
-
- -
-
- -**ending:** `typing.Optional[FormEndingNode]` - -
-
- -
-
- -**style:** `typing.Optional[FormStyle]` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.forms.get(...) -> GetFormResponseContent -
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.forms.get( - id="id", - hydrate=[ - "flow_count" - ], -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The ID of the form to retrieve. - -
-
- -
-
- -**hydrate:** `typing.Optional[typing.Union[typing.Optional[FormsRequestParametersHydrateEnum], typing.Sequence[typing.Optional[FormsRequestParametersHydrateEnum]]]]` — Query parameter to hydrate the response with additional data - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.forms.delete(...) -
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.forms.delete( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The ID of the form to delete. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.forms.update(...) -> UpdateFormResponseContent -
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.forms.update( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The ID of the form to update. - -
-
- -
-
- -**name:** `typing.Optional[str]` - -
-
- -
-
- -**messages:** `typing.Optional[FormMessagesNullable]` - -
-
- -
-
- -**languages:** `typing.Optional[FormLanguagesNullable]` - -
-
- -
-
- -**translations:** `typing.Optional[FormTranslationsNullable]` - -
-
- -
-
- -**nodes:** `typing.Optional[FormNodeListNullable]` - -
-
- -
-
- -**start:** `typing.Optional[FormStartNodeNullable]` - -
-
- -
-
- -**ending:** `typing.Optional[FormEndingNodeNullable]` - -
-
- -
-
- -**style:** `typing.Optional[FormStyleNullable]` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## UserGrants -
client.user_grants.list(...) -> ListUserGrantsOffsetPaginatedResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve the [grants](https://auth0.com/docs/api-auth/which-oauth-flow-to-use) associated with your account. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.user_grants.list( - per_page=1, - page=1, - include_totals=True, - user_id="user_id", - client_id="client_id", - audience="audience", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**per_page:** `typing.Optional[int]` — Number of results per page. - -
-
- -
-
- -**page:** `typing.Optional[int]` — Page index of the results to return. First page is 0. - -
-
- -
-
- -**include_totals:** `typing.Optional[bool]` — Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - -
-
- -
-
- -**user_id:** `typing.Optional[str]` — user_id of the grants to retrieve. - -
-
- -
-
- -**client_id:** `typing.Optional[str]` — client_id of the grants to retrieve. - -
-
- -
-
- -**audience:** `typing.Optional[str]` — audience of the grants to retrieve. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.user_grants.delete_by_user_id(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Delete a grant associated with your account. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.user_grants.delete_by_user_id( - user_id="user_id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**user_id:** `str` — user_id of the grant to delete. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.user_grants.delete(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Delete a grant associated with your account. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.user_grants.delete( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the grant to delete. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Groups -
client.groups.list(...) -> ListGroupsPaginatedResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -List all groups in your tenant. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.groups.list( - connection_id="connection_id", - name="name", - external_id="external_id", - search="search", - fields="fields", - include_fields=True, - include_totals=True, - from_="from", - take=1, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**connection_id:** `typing.Optional[str]` — Filter groups by connection ID. - -
-
- -
-
- -**name:** `typing.Optional[str]` — Filter groups by name. - -
-
- -
-
- -**external_id:** `typing.Optional[str]` — Filter groups by external ID. - -
-
- -
-
- -**search:** `typing.Optional[str]` — Search for groups by name or external ID. - -
-
- -
-
- -**fields:** `typing.Optional[str]` — A comma separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields - -
-
- -
-
- -**include_fields:** `typing.Optional[bool]` — Whether specified fields are to be included (true) or excluded (false). - -
-
- -
-
- -**include_totals:** `typing.Optional[bool]` — Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). The returned total reflects at most 1,000 results. - -
-
- -
-
- -**from:** `typing.Optional[str]` — Optional Id from which to start selection. - -
-
- -
-
- -**take:** `typing.Optional[int]` — Number of results per page. Defaults to 50. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.groups.get(...) -> GetGroupResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve a group by its ID. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.groups.get( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — Unique identifier for the group (service-generated). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.groups.delete(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Delete a group by its ID. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.groups.delete( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — Unique identifier for the group (service-generated). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Guardian -
client.guardian.get() -> GetGuardianSettingsResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -TODO: Link this endpoint to relevant documentation when available. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.guardian.get() - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.guardian.set(...) -> SetGuardianSettingsResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Update a tenant's guardian settings such as Remember Me -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.guardian.set( - display_remember_me_checkbox=True, - remember_me_default_value=True, - mfa_session_inactivity_timeout=1, - mfa_session_overall_timeout=1, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**display_remember_me_checkbox:** `bool` — Determines whether to display the "Remember Me" checkbox on the MFA prompt in Universal Login. - -
-
- -
-
- -**remember_me_default_value:** `bool` — Determines the default state of the "Remember Me" checkbox on the MFA prompt in Universal Login. - -
-
- -
-
- -**mfa_session_inactivity_timeout:** `int` — Duration of inactivity after which the user will be prompted for MFA. Represented as seconds. Minimum duration is 1 hour, maximum is 30 days, and cannot exceed the overall timeout. - -
-
- -
-
- -**mfa_session_overall_timeout:** `int` — Maximum duration after which the user will be prompted for MFA regardless of activity. Represented as seconds. Minimum duration is 1 hour, maximum is 90 days. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Hooks -
client.hooks.list(...) -> ListHooksOffsetPaginatedResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve all [hooks](https://auth0.com/docs/hooks). Accepts a list of fields to include or exclude in the result. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.hooks.list( - page=1, - per_page=1, - include_totals=True, - enabled=True, - fields="fields", - trigger_id="credentials-exchange", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**page:** `typing.Optional[int]` — Page index of the results to return. First page is 0. - -
-
- -
-
- -**per_page:** `typing.Optional[int]` — Number of results per page. - -
-
- -
-
- -**include_totals:** `typing.Optional[bool]` — Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - -
-
- -
-
- -**enabled:** `typing.Optional[bool]` — Optional filter on whether a hook is enabled (true) or disabled (false). - -
-
- -
-
- -**fields:** `typing.Optional[str]` — Comma-separated list of fields to include in the result. Leave empty to retrieve all fields. - -
-
- -
-
- -**trigger_id:** `typing.Optional[HookTriggerIdEnum]` — Retrieves hooks that match the trigger - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.hooks.create(...) -> CreateHookResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Create a new hook. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.hooks.create( - name="name", - script="script", - trigger_id="credentials-exchange", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**name:** `str` — Name of this hook. - -
-
- -
-
- -**script:** `str` — Code to be executed when this hook runs. - -
-
- -
-
- -**trigger_id:** `HookTriggerIdEnum` — Execution stage of this rule. Can be `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, or `send-phone-message`. - -
-
- -
-
- -**enabled:** `typing.Optional[bool]` — Whether this hook will be executed (true) or ignored (false). - -
-
- -
-
- -**dependencies:** `typing.Optional[HookDependencies]` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.hooks.get(...) -> GetHookResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve [a hook](https://auth0.com/docs/hooks) by its ID. Accepts a list of fields to include in the result. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.hooks.get( - id="id", - fields="fields", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the hook to retrieve. - -
-
- -
-
- -**fields:** `typing.Optional[str]` — Comma-separated list of fields to include in the result. Leave empty to retrieve all fields. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.hooks.delete(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Delete a hook. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.hooks.delete( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the hook to delete. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.hooks.update(...) -> UpdateHookResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Update an existing hook. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.hooks.update( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the hook to update. - -
-
- -
-
- -**name:** `typing.Optional[str]` — Name of this hook. - -
-
- -
-
- -**script:** `typing.Optional[str]` — Code to be executed when this hook runs. - -
-
- -
-
- -**enabled:** `typing.Optional[bool]` — Whether this hook will be executed (true) or ignored (false). - -
-
- -
-
- -**dependencies:** `typing.Optional[HookDependencies]` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Jobs -
client.jobs.get(...) -> GetJobResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieves a job. Useful to check its status. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.jobs.get( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the job. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## LogStreams -
client.log_streams.list() -> typing.List[LogStreamResponseSchema] -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve details on [log streams](https://auth0.com/docs/logs/streams). - -**Sample Response** - -```json -[{ - "id": "string", - "name": "string", - "type": "eventbridge", - "status": "active|paused|suspended", - "sink": { - "awsAccountId": "string", - "awsRegion": "string", - "awsPartnerEventSource": "string" - } -}, { - "id": "string", - "name": "string", - "type": "http", - "status": "active|paused|suspended", - "sink": { - "httpContentFormat": "JSONLINES|JSONARRAY", - "httpContentType": "string", - "httpEndpoint": "string", - "httpAuthorization": "string" - } -}, -{ - "id": "string", - "name": "string", - "type": "eventgrid", - "status": "active|paused|suspended", - "sink": { - "azureSubscriptionId": "string", - "azureResourceGroup": "string", - "azureRegion": "string", - "azurePartnerTopic": "string" - } -}, -{ - "id": "string", - "name": "string", - "type": "splunk", - "status": "active|paused|suspended", - "sink": { - "splunkDomain": "string", - "splunkToken": "string", - "splunkPort": "string", - "splunkSecure": "boolean" - } -}, -{ - "id": "string", - "name": "string", - "type": "sumo", - "status": "active|paused|suspended", - "sink": { - "sumoSourceAddress": "string" - } -}, -{ - "id": "string", - "name": "string", - "type": "datadog", - "status": "active|paused|suspended", - "sink": { - "datadogRegion": "string", - "datadogApiKey": "string" - } -}] -``` -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.log_streams.list() - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.log_streams.create(...) -> CreateLogStreamResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Create a log stream. - -**Log Stream Types** - -The `type` of log stream being created determines the properties required in the `sink` payload. - -**HTTP Stream** - -For an `http` Stream, the `sink` properties are listed in the payload below. - -**Request:** -```json -{ - "name": "string", - "type": "http", - "sink": { - "httpEndpoint": "string", - "httpContentType": "string", - "httpContentFormat": "JSONLINES|JSONARRAY", - "httpAuthorization": "string" - } -} -``` - -**Response:** -```json -{ - "id": "string", - "name": "string", - "type": "http", - "status": "active", - "sink": { - "httpEndpoint": "string", - "httpContentType": "string", - "httpContentFormat": "JSONLINES|JSONARRAY", - "httpAuthorization": "string" - } -} -``` - -**Amazon EventBridge Stream** - -For an `eventbridge` Stream, the `sink` properties are listed in the payload below. - -**Request:** -```json -{ - "name": "string", - "type": "eventbridge", - "sink": { - "awsRegion": "string", - "awsAccountId": "string" - } -} -``` - -The response will include an additional field `awsPartnerEventSource` in the `sink`: - -**Response:** -```json -{ - "id": "string", - "name": "string", - "type": "eventbridge", - "status": "active", - "sink": { - "awsAccountId": "string", - "awsRegion": "string", - "awsPartnerEventSource": "string" - } -} -``` - -**Azure Event Grid Stream** - -For an `Azure Event Grid` Stream, the `sink` properties are listed in the payload below. - -**Request:** -```json -{ - "name": "string", - "type": "eventgrid", - "sink": { - "azureSubscriptionId": "string", - "azureResourceGroup": "string", - "azureRegion": "string" - } -} -``` - -**Response:** -```json -{ - "id": "string", - "name": "string", - "type": "http", - "status": "active", - "sink": { - "azureSubscriptionId": "string", - "azureResourceGroup": "string", - "azureRegion": "string", - "azurePartnerTopic": "string" - } -} -``` - -**Datadog Stream** - -For a `Datadog` Stream, the `sink` properties are listed in the payload below. - -**Request:** -```json -{ - "name": "string", - "type": "datadog", - "sink": { - "datadogRegion": "string", - "datadogApiKey": "string" - } -} -``` - -**Response:** -```json -{ - "id": "string", - "name": "string", - "type": "datadog", - "status": "active", - "sink": { - "datadogRegion": "string", - "datadogApiKey": "string" - } -} -``` - -**Splunk Stream** - -For a `Splunk` Stream, the `sink` properties are listed in the payload below. - -**Request:** -```json -{ - "name": "string", - "type": "splunk", - "sink": { - "splunkDomain": "string", - "splunkToken": "string", - "splunkPort": "string", - "splunkSecure": "boolean" - } -} -``` - -**Response:** -```json -{ - "id": "string", - "name": "string", - "type": "splunk", - "status": "active", - "sink": { - "splunkDomain": "string", - "splunkToken": "string", - "splunkPort": "string", - "splunkSecure": "boolean" - } -} -``` - -**Sumo Logic Stream** - -For a `Sumo Logic` Stream, the `sink` properties are listed in the payload below. - -**Request:** -```json -{ - "name": "string", - "type": "sumo", - "sink": { - "sumoSourceAddress": "string" - } -} -``` - -**Response:** -```json -{ - "id": "string", - "name": "string", - "type": "sumo", - "status": "active", - "sink": { - "sumoSourceAddress": "string" - } -} -``` -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0, CreateLogStreamHttpRequestBody, LogStreamHttpSink -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.log_streams.create( - request=CreateLogStreamHttpRequestBody( - type="http", - sink=LogStreamHttpSink( - http_endpoint="httpEndpoint", - ), - ), -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `CreateLogStreamRequestContent` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.log_streams.get(...) -> GetLogStreamResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve a log stream configuration and status. - -**Sample responses** - -**Amazon EventBridge Log Stream** - -```json -{ - "id": "string", - "name": "string", - "type": "eventbridge", - "status": "active|paused|suspended", - "sink": { - "awsAccountId": "string", - "awsRegion": "string", - "awsPartnerEventSource": "string" - } -} -``` - -**HTTP Log Stream** - -```json -{ - "id": "string", - "name": "string", - "type": "http", - "status": "active|paused|suspended", - "sink": { - "httpContentFormat": "JSONLINES|JSONARRAY", - "httpContentType": "string", - "httpEndpoint": "string", - "httpAuthorization": "string" - } -} -``` - -**Datadog Log Stream** - -```json -{ - "id": "string", - "name": "string", - "type": "datadog", - "status": "active|paused|suspended", - "sink": { - "datadogRegion": "string", - "datadogApiKey": "string" - } -} -``` - -**Mixpanel** - -**Request:** - -```json -{ - "name": "string", - "type": "mixpanel", - "sink": { - "mixpanelRegion": "string", - "mixpanelProjectId": "string", - "mixpanelServiceAccountUsername": "string", - "mixpanelServiceAccountPassword": "string" - } -} -``` - -**Response:** - -```json -{ - "id": "string", - "name": "string", - "type": "mixpanel", - "status": "active", - "sink": { - "mixpanelRegion": "string", - "mixpanelProjectId": "string", - "mixpanelServiceAccountUsername": "string", - "mixpanelServiceAccountPassword": "string" - } -} -``` - -**Segment** - -**Request:** - -```json -{ - "name": "string", - "type": "segment", - "sink": { - "segmentWriteKey": "string" - } -} -``` - -**Response:** - -```json -{ - "id": "string", - "name": "string", - "type": "segment", - "status": "active", - "sink": { - "segmentWriteKey": "string" - } -} -``` - -**Splunk Log Stream** - -```json -{ - "id": "string", - "name": "string", - "type": "splunk", - "status": "active|paused|suspended", - "sink": { - "splunkDomain": "string", - "splunkToken": "string", - "splunkPort": "string", - "splunkSecure": "boolean" - } -} -``` - -**Sumo Logic Log Stream** - -```json -{ - "id": "string", - "name": "string", - "type": "sumo", - "status": "active|paused|suspended", - "sink": { - "sumoSourceAddress": "string" - } -} -``` - -**Status** - -The `status` of a log stream maybe any of the following: - -1. `active` - Stream is currently enabled. -2. `paused` - Stream is currently user disabled and will not attempt log delivery. -3. `suspended` - Stream is currently disabled because of errors and will not attempt log delivery. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.log_streams.get( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The id of the log stream to get - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.log_streams.delete(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Delete a log stream. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.log_streams.delete( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The id of the log stream to delete - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.log_streams.update(...) -> UpdateLogStreamResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Update a log stream. - -**Examples of how to use the PATCH endpoint.** - -The following fields may be updated in a PATCH operation: - -- name -- status -- sink - -Note: For log streams of type `eventbridge` and `eventgrid`, updating the `sink` is not permitted. - -**Update the status of a log stream** - -```json -{ - "status": "active|paused" -} -``` - -**Update the name of a log stream** - -```json -{ - "name": "string" -} -``` - -**Update the sink properties of a stream of type `http`** - -```json -{ - "sink": { - "httpEndpoint": "string", - "httpContentType": "string", - "httpContentFormat": "JSONARRAY|JSONLINES", - "httpAuthorization": "string" - } -} -``` - -**Update the sink properties of a stream of type `datadog`** - -```json -{ - "sink": { - "datadogRegion": "string", - "datadogApiKey": "string" - } -} -``` - -**Update the sink properties of a stream of type `splunk`** - -```json -{ - "sink": { - "splunkDomain": "string", - "splunkToken": "string", - "splunkPort": "string", - "splunkSecure": "boolean" - } -} -``` - -**Update the sink properties of a stream of type `sumo`** - -```json -{ - "sink": { - "sumoSourceAddress": "string" - } -} -``` -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.log_streams.update( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The id of the log stream to get - -
-
- -
-
- -**name:** `typing.Optional[str]` — log stream name - -
-
- -
-
- -**status:** `typing.Optional[LogStreamStatusEnum]` - -
-
- -
-
- -**is_priority:** `typing.Optional[bool]` — True for priority log streams, false for non-priority - -
-
- -
-
- -**filters:** `typing.Optional[typing.List[LogStreamFilter]]` — Only logs events matching these filters will be delivered by the stream. If omitted or empty, all events will be delivered. - -
-
- -
-
- -**pii_config:** `typing.Optional[LogStreamPiiConfig]` - -
-
- -
-
- -**sink:** `typing.Optional[LogStreamSinkPatch]` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Logs -
client.logs.list(...) -> ListLogOffsetPaginatedResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve log entries that match the specified search criteria (or all log entries if no criteria specified). - -Set custom search criteria using the `q` parameter, or search from a specific log ID (_"search from checkpoint"_). - -For more information on all possible event types, their respective acronyms, and descriptions, see [Log Event Type Codes](https://auth0.com/docs/logs/log-event-type-codes). - -**To set custom search criteria, use the following parameters:** - -- **q:** Search Criteria using [Query String Syntax](https://auth0.com/docs/logs/log-search-query-syntax) -- **page:** Page index of the results to return. First page is 0. -- **per_page:** Number of results per page. -- **sort:** Field to use for sorting appended with `:1` for ascending and `:-1` for descending. e.g. `date:-1` -- **fields:** Comma-separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields. -- **include_fields:** Whether specified fields are to be included (true) or excluded (false). -- **include_totals:** Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). **Deprecated:** this field is deprecated and should be removed from use. See [Search Engine V3 Breaking Changes](https://auth0.com/docs/product-lifecycle/deprecations-and-migrations/migrate-to-tenant-log-search-v3#pagination) - -For more information on the list of fields that can be used in `fields` and `sort`, see [Searchable Fields](https://auth0.com/docs/logs/log-search-query-syntax#searchable-fields). - -Auth0 [limits the number of logs](https://auth0.com/docs/logs/retrieve-log-events-using-mgmt-api#limitations) you can return by search criteria to 100 logs per request. Furthermore, you may paginate only through 1,000 search results. If you exceed this threshold, please redefine your search or use the [get logs by checkpoint method](https://auth0.com/docs/logs/retrieve-log-events-using-mgmt-api#retrieve-logs-by-checkpoint). - -**To search from a checkpoint log ID, use the following parameters:** - -- **from:** Log Event ID from which to start retrieving logs. You can limit the number of logs returned using the `take` parameter. If you use `from` at the same time as `q`, `from` takes precedence and `q` is ignored. -- **take:** Number of entries to retrieve when using the `from` parameter. - -**Important:** When fetching logs from a checkpoint log ID, any parameter other than `from` and `take` will be ignored, and date ordering is not guaranteed. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.logs.list( - page=1, - per_page=1, - sort="sort", - fields="fields", - include_fields=True, - include_totals=True, - search="search", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**page:** `typing.Optional[int]` — Page index of the results to return. First page is 0. - -
-
- -
-
- -**per_page:** `typing.Optional[int]` — Number of results per page. Paging is disabled if parameter not sent. Default: 50. Max value: 100 - -
-
- -
-
- -**sort:** `typing.Optional[str]` — Field to use for sorting appended with :1 for ascending and :-1 for descending. e.g. date:-1 - -
-
- -
-
- -**fields:** `typing.Optional[str]` — Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - -
-
- -
-
- -**include_fields:** `typing.Optional[bool]` — Whether specified fields are to be included (true) or excluded (false) - -
-
- -
-
- -**include_totals:** `typing.Optional[bool]` — Return results as an array when false (default). Return results inside an object that also contains a total result count when true. - -
-
- -
-
- -**search:** `typing.Optional[str]` - -Retrieves logs that match the specified search criteria. This parameter can be combined with all the others in the /api/logs endpoint but is specified separately for clarity. -If no fields are provided a case insensitive 'starts with' search is performed on all of the following fields: client_name, connection, user_name. Otherwise, you can specify multiple fields and specify the search using the %field%:%search%, for example: application:node user:"John@contoso.com". -Values specified without quotes are matched using a case insensitive 'starts with' search. If quotes are used a case insensitve exact search is used. If multiple fields are used, the AND operator is used to join the clauses. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.logs.get(...) -> GetLogResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve an individual log event. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.logs.get( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — log_id of the log to retrieve. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## NetworkAcls -
client.network_acls.list(...) -> ListNetworkAclsOffsetPaginatedResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Get all access control list entries for your client. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.network_acls.list( - page=1, - per_page=1, - include_totals=True, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**page:** `typing.Optional[int]` — Use this field to request a specific page of the list results. - -
-
- -
-
- -**per_page:** `typing.Optional[int]` — The amount of results per page. - -
-
- -
-
- -**include_totals:** `typing.Optional[bool]` — Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.network_acls.create(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Create a new access control list for your client. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0, NetworkAclRule, NetworkAclAction -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.network_acls.create( - description="description", - active=True, - rule=NetworkAclRule( - action=NetworkAclAction(), - scope="management", - ), -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**description:** `str` - -
-
- -
-
- -**active:** `bool` — Indicates whether or not this access control list is actively being used - -
-
- -
-
- -**rule:** `NetworkAclRule` - -
-
- -
-
- -**priority:** `typing.Optional[float]` — Indicates the order in which the ACL will be evaluated relative to other ACL rules. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.network_acls.get(...) -> GetNetworkAclsResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Get a specific access control list entry for your client. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.network_acls.get( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The id of the access control list to retrieve. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.network_acls.set(...) -> SetNetworkAclsResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Update existing access control list for your client. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0, NetworkAclRule, NetworkAclAction -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.network_acls.set( - id="id", - description="description", - active=True, - rule=NetworkAclRule( - action=NetworkAclAction(), - scope="management", - ), -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The id of the ACL to update. - -
-
- -
-
- -**description:** `str` - -
-
- -
-
- -**active:** `bool` — Indicates whether or not this access control list is actively being used - -
-
- -
-
- -**rule:** `NetworkAclRule` - -
-
- -
-
- -**priority:** `typing.Optional[float]` — Indicates the order in which the ACL will be evaluated relative to other ACL rules. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.network_acls.delete(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Delete existing access control list for your client. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.network_acls.delete( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The id of the ACL to delete - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.network_acls.update(...) -> UpdateNetworkAclResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Update existing access control list for your client. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.network_acls.update( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The id of the ACL to update. - -
-
- -
-
- -**description:** `typing.Optional[str]` - -
-
- -
-
- -**active:** `typing.Optional[bool]` — Indicates whether or not this access control list is actively being used - -
-
- -
-
- -**priority:** `typing.Optional[float]` — Indicates the order in which the ACL will be evaluated relative to other ACL rules. - -
-
- -
-
- -**rule:** `typing.Optional[NetworkAclRule]` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Organizations -
client.organizations.list(...) -> ListOrganizationsPaginatedResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve detailed list of all Organizations available in your tenant. For more information, see Auth0 Organizations. - -This endpoint supports two types of pagination: - -- Offset pagination -- Checkpoint pagination - -Checkpoint pagination must be used if you need to retrieve more than 1000 organizations. - -**Checkpoint Pagination** - -To search by checkpoint, use the following parameters: - -- `from`: Optional id from which to start selection. -- `take`: The total number of entries to retrieve when using the `from` parameter. Defaults to 50. - -**Note**: The first time you call this endpoint using checkpoint pagination, omit the `from` parameter. If there are more results, a `next` value is included in the response. You can use this for subsequent API calls. When `next` is no longer included in the response, no pages are remaining. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.organizations.list( - include_totals=True, - from_="from", - take=1, - sort="sort", - include_client_association_for="include_client_association_for", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**include_totals:** `typing.Optional[bool]` — Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - -
-
- -
-
- -**from:** `typing.Optional[str]` — Optional Id from which to start selection. - -
-
- -
-
- -**take:** `typing.Optional[int]` — Number of results per page. Defaults to 50. - -
-
- -
-
- -**sort:** `typing.Optional[str]` — Field to sort by. Use field:order where order is 1 for ascending and -1 for descending. e.g. created_at:1. We currently support sorting by the following fields: name, display_name and created_at. - -
-
- -
-
- -**include_client_association_for:** `typing.Optional[str]` — Client ID. When set, each returned organization that has an association with this client gains a client object describing it; organizations without one omit the field. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.organizations.create(...) -> CreateOrganizationResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Create a new Organization within your tenant. To learn more about Organization settings, behavior, and configuration options, review [Create Your First Organization](https://auth0.com/docs/manage-users/organizations/create-first-organization). -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.organizations.create( - name="name", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**name:** `str` — The name of this organization. - -
-
- -
-
- -**display_name:** `typing.Optional[str]` — Friendly name of this organization. - -
-
- -
-
- -**branding:** `typing.Optional[OrganizationBranding]` - -
-
- -
-
- -**metadata:** `typing.Optional[OrganizationMetadata]` - -
-
- -
-
- -**enabled_connections:** `typing.Optional[typing.List[ConnectionForOrganization]]` — Connections that will be enabled for this organization. See POST enabled_connections endpoint for the object format. (Max of 10 connections allowed) - -
-
- -
-
- -**token_quota:** `typing.Optional[CreateTokenQuota]` - -
-
- -
-
- -**third_party_client_access:** `typing.Optional[OrganizationThirdPartyClientAccessEnum]` - -
-
- -
-
- -**is_app_entitlement_active:** `typing.Optional[bool]` — Whether app entitlement is active for this organization. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.organizations.get_by_name(...) -> GetOrganizationByNameResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve details about a single Organization specified by name. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.organizations.get_by_name( - name="name", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**name:** `str` — name of the organization to retrieve. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.organizations.search(...) -> SearchOrganizationsPaginatedResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve details of organizations matching a search criteria. It is possible to: - -- Specify a search criteria for organizations -- Search via `name` -- Search via `display_name` -- Substring matching (`contains` and `ends-with`) requires at least 3 characters -- Use wildcards - -The `q` query parameter can be used to get organizations that match the specified criteria on `name` OR `display_name`. - -This endpoint supports SCIM or Lucene filter syntax with low-latency, cursor-based pagination. Use the `parser` parameter to specify "scim" or "lucene" syntax (default: "lucene"). - -Results are eventually consistent and may not reflect recent updates immediately. - -**Sortable fields:** `name`, `display_name`, `created_at` (ascending only). Defaults to insertion order (oldest first). -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.organizations.search( - q="q", - parser="scim", - take=1, - from_="from", - sort="name", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**q:** `typing.Optional[str]` — Filter expression in SCIM or Lucene syntax (depending on parser parameter, default: Lucene). Lucene examples: `name:acme*`, `display_name:*auth*`. SCIM examples: `name eq "Auth0"`, `display_name sw "auth" and created_at gt "2024-01-01"`. SCIM operators: eq, ne, sw, ew, co, pr, gt, ge, lt, le, and, or.

Supported Fields:
  • id - Organization ID (case-sensitive, exact match)
  • name - Organization name (supports contains, starts-with, ends-with operators; sortable)
  • display_name - Organization display name (supports contains, starts-with, ends-with operators; sortable)
  • created_at - Creation timestamp (supports date range operators; sortable)
  • metadata.{key} - Filter by organization metadata key-value pairs
Maximum 5 filter operations per query. Results are eventually consistent and may not reflect recent updates. - -
-
- -
-
- -**parser:** `typing.Optional[SearchParserEnum]` — Query parser to use for the filter expression. Use "scim" for SCIM filter syntax or "lucene" for Lucene query syntax (default). - -
-
- -
-
- -**take:** `typing.Optional[int]` — Maximum number of results to return per page (1-100). Defaults to 50. - -
-
- -
-
- -**from:** `typing.Optional[str]` — Cursor for the next page of results. Use the value from the next field in the previous response. - -
-
- -
-
- -**sort:** `typing.Optional[OrganizationSortFieldEnum]` — Field name to sort results by in ascending order only. Defaults to insertion order (oldest first) if not provided. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.organizations.get(...) -> GetOrganizationResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve details about a single Organization specified by ID. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.organizations.get( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the organization to retrieve. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.organizations.delete(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Remove an Organization from your tenant. This action cannot be undone. - -**Note**: Members are automatically disassociated from an Organization when it is deleted. However, this action does **not** delete these users from your tenant. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.organizations.delete( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — Organization identifier. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.organizations.update(...) -> UpdateOrganizationResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Update the details of a specific [Organization](https://auth0.com/docs/manage-users/organizations/configure-organizations/create-organizations), such as name and display name, branding options, and metadata. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.organizations.update( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the organization to update. - -
-
- -
-
- -**display_name:** `typing.Optional[str]` — Friendly name of this organization. - -
-
- -
-
- -**name:** `typing.Optional[str]` — The name of this organization. - -
-
- -
-
- -**branding:** `typing.Optional[OrganizationBranding]` - -
-
- -
-
- -**metadata:** `typing.Optional[OrganizationMetadata]` - -
-
- -
-
- -**token_quota:** `typing.Optional[UpdateTokenQuota]` - -
-
- -
-
- -**third_party_client_access:** `typing.Optional[OrganizationThirdPartyClientAccessEnum]` - -
-
- -
-
- -**is_app_entitlement_active:** `typing.Optional[bool]` — Whether app entitlement is active for this organization. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Portals -
client.portals.list() -> ListPortalsResponseContent -
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.portals.list() - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.portals.create(...) -> Portal -
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0, PortalClientSecretPostRequest -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.portals.create( - slug="slug", - name="name", - client=PortalClientSecretPostRequest( - token_endpoint_auth_method="client_secret_post", - client_id="client_id", - client_secret="client_secret", - ), -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**slug:** `PortalSlug` - -
-
- -
-
- -**name:** `PortalName` - -
-
- -
-
- -**client:** `PortalClientSecretPostRequest` - -
-
- -
-
- -**navigation:** `typing.Optional[PortalNavigation]` - -
-
- -
-
- -**pages:** `typing.Optional[PortalPagesByType]` - -
-
- -
-
- -**custom_code:** `typing.Optional[PortalCustomCode]` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.portals.get(...) -> Portal -
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.portals.get( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `PortalId` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.portals.delete(...) -
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.portals.delete( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `PortalId` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.portals.update(...) -> Portal -
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.portals.update( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `PortalId` - -
-
- -
-
- -**slug:** `typing.Optional[PortalSlug]` - -
-
- -
-
- -**name:** `typing.Optional[PortalName]` - -
-
- -
-
- -**client:** `typing.Optional[PortalClientSecretPostRequest]` - -
-
- -
-
- -**navigation:** `typing.Optional[PortalNavigationNullable]` - -
-
- -
-
- -**pages:** `typing.Optional[PortalPagesByTypeNullable]` - -
-
- -
-
- -**custom_code:** `typing.Optional[PortalCustomCodeNullable]` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Prompts -
client.prompts.get_settings() -> GetSettingsResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve details of the Universal Login configuration of your tenant. This includes the Identifier First Authentication and WebAuthn with Device Biometrics for MFA features. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.prompts.get_settings() - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.prompts.update_settings(...) -> UpdateSettingsResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Update the Universal Login configuration of your tenant. This includes the Identifier First Authentication and WebAuthn with Device Biometrics for MFA features. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.prompts.update_settings() - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**universal_login_experience:** `typing.Optional[UniversalLoginExperienceEnum]` - -
-
- -
-
- -**identifier_first:** `typing.Optional[bool]` — Whether identifier first is enabled or not - -
-
- -
-
- -**webauthn_platform_first_factor:** `typing.Optional[bool]` — Use WebAuthn with Device Biometrics as the first authentication factor - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## RateLimitPolicies -
client.rate_limit_policies.list(...) -> ListRateLimitPoliciesPaginatedResponseContent -
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.rate_limit_policies.list( - resource="oauth_authentication_api", - consumer="client", - consumer_selector="consumer_selector", - take=1, - from_="from", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**resource:** `typing.Optional[RateLimitPolicyResourceEnum]` — The API protected by the Rate Limit Policy. - -
-
- -
-
- -**consumer:** `typing.Optional[RateLimitPolicyConsumerEnum]` — The consumer to which the rate limit policy applies. - -
-
- -
-
- -**consumer_selector:** `typing.Optional[str]` — Identifier or category within the consumer to which the policy applies. Supported values: `client_id:` to target a specific client by ID, `client_id:` to target a CIMD client by URI, `cimd_clients` to target all CIMD clients, `third_party_clients` to target all third-party clients, or `default` to apply the policy to any consumer identifier not otherwise explicitly targeted. - -
-
- -
-
- -**take:** `typing.Optional[int]` — Number of results per page. Defaults to 50. - -
-
- -
-
- -**from:** `typing.Optional[str]` — Cursor for pagination. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.rate_limit_policies.create(...) -> CreateRateLimitPolicyResponseContent -
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0, RateLimitPolicyConfigurationZero -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.rate_limit_policies.create( - resource="oauth_authentication_api", - consumer="client", - consumer_selector="consumer_selector", - configuration=RateLimitPolicyConfigurationZero( - action="allow", - ), -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**resource:** `RateLimitPolicyResourceEnum` - -
-
- -
-
- -**consumer:** `RateLimitPolicyConsumerEnum` - -
-
- -
-
- -**consumer_selector:** `str` — Identifier or category within the consumer to which the policy applies. Supported values: `client_id:` to target a specific client by ID, `client_id:` to target a CIMD client by URI, `cimd_clients` to target all CIMD clients, `third_party_clients` to target all third-party clients, or `default` to apply the policy to any consumer identifier not otherwise explicitly targeted. - -
-
- -
-
- -**configuration:** `RateLimitPolicyConfiguration` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.rate_limit_policies.get(...) -> GetRateLimitPolicyResponseContent -
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.rate_limit_policies.get( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — Unique identifier for the Rate Limit Policy. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.rate_limit_policies.delete(...) -
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.rate_limit_policies.delete( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — Unique identifier for the Rate Limit Policy. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.rate_limit_policies.update(...) -> UpdateRateLimitPolicyResponseContent -
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0, PatchRateLimitPolicyConfigurationRequestContentZero -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.rate_limit_policies.update( - id="id", - configuration=PatchRateLimitPolicyConfigurationRequestContentZero( - action="allow", - ), -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — Unique identifier for the Rate Limit Policy. - -
-
- -
-
- -**configuration:** `PatchRateLimitPolicyConfigurationRequestContent` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## RefreshTokens -
client.refresh_tokens.list(...) -> GetRefreshTokensPaginatedResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve a paginated list of refresh tokens for a specific user, with optional filtering by client ID. Results are sorted by credential_id ascending. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.refresh_tokens.list( - user_id="user_id", - client_id="client_id", - from_="from", - take=1, - fields="fields", - include_fields=True, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**user_id:** `str` — ID of the user whose refresh tokens to retrieve. Required. - -
-
- -
-
- -**client_id:** `typing.Optional[str]` — Filter results by client ID. Only valid when user_id is provided. - -
-
- -
-
- -**from:** `typing.Optional[str]` — An opaque cursor from which to start the selection (exclusive). Expires after 24 hours. Obtained from the next property of a previous response. - -
-
- -
-
- -**take:** `typing.Optional[int]` — Number of results per page. Defaults to 50. - -
-
- -
-
- -**fields:** `typing.Optional[str]` — Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - -
-
- -
-
- -**include_fields:** `typing.Optional[bool]` — Whether specified fields are to be included (true) or excluded (false). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.refresh_tokens.revoke(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Revoke refresh tokens in bulk by ID list, user, user+client, or user+client+audience. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.refresh_tokens.revoke() - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**ids:** `typing.Optional[typing.List[str]]` — Array of refresh token IDs to revoke. Limited to 100 at a time. - -
-
- -
-
- -**user_id:** `typing.Optional[str]` — Revoke all refresh tokens for this user. - -
-
- -
-
- -**client_id:** `typing.Optional[str]` — Revoke refresh tokens for this client. Must be paired with `user_id`; optionally narrowed further with `audience`. - -
-
- -
-
- -**audience:** `typing.Optional[str]` — Resource server identifier (audience) to scope the revocation. Must be used with both `user_id` and `client_id`. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.refresh_tokens.get(...) -> GetRefreshTokenResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve refresh token information. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.refresh_tokens.get( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID refresh token to retrieve - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.refresh_tokens.delete(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Delete a refresh token by its ID. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.refresh_tokens.delete( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the refresh token to delete. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.refresh_tokens.update(...) -> UpdateRefreshTokenResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Update a refresh token by its ID. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.refresh_tokens.update( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the refresh token to update. - -
-
- -
-
- -**refresh_token_metadata:** `typing.Optional[RefreshTokenMetadata]` — Metadata associated with the refresh token. Pass null or {} to remove all metadata. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## ResourceServers -
client.resource_servers.list(...) -> ListResourceServerOffsetPaginatedResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve details of all APIs associated with your tenant. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.resource_servers.list( - identifiers=[ - "identifiers" - ], - page=1, - per_page=1, - include_totals=True, - include_fields=True, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**identifiers:** `typing.Optional[typing.Union[typing.Optional[str], typing.Sequence[typing.Optional[str]]]]` — An optional filter on the resource server identifier. Must be URL encoded and may be specified multiple times (max 10).
e.g. ../resource-servers?identifiers=id1&identifiers=id2 - -
-
- -
-
- -**page:** `typing.Optional[int]` — Page index of the results to return. First page is 0. - -
-
- -
-
- -**per_page:** `typing.Optional[int]` — Number of results per page. - -
-
- -
-
- -**include_totals:** `typing.Optional[bool]` — Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - -
-
- -
-
- -**include_fields:** `typing.Optional[bool]` — Whether specified fields are to be included (true) or excluded (false). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.resource_servers.create(...) -> CreateResourceServerResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Create a new API associated with your tenant. Note that all new APIs must be registered with Auth0. For more information, read APIs. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.resource_servers.create( - identifier="identifier", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**identifier:** `str` — Unique identifier for the API used as the audience parameter on authorization calls. Can not be changed once set. - -
-
- -
-
- -**name:** `typing.Optional[str]` — Friendly name for this resource server. Can not contain `<` or `>` characters. - -
-
- -
-
- -**scopes:** `typing.Optional[typing.List[ResourceServerScope]]` — List of permissions (scopes) that this API uses. - -
-
- -
-
- -**signing_alg:** `typing.Optional[SigningAlgorithmEnum]` - -
-
- -
-
- -**signing_secret:** `typing.Optional[str]` — Secret used to sign tokens when using symmetric algorithms (HS256). - -
-
- -
-
- -**allow_offline_access:** `typing.Optional[bool]` — Whether refresh tokens can be issued for this API (true) or not (false). - -
-
- -
-
- -**allow_online_access:** `typing.Optional[bool]` — Whether Online Refresh Tokens can be issued for this API (true) or not (false). - -
-
- -
-
- -**allow_online_access_with_ephemeral_sessions:** `typing.Optional[bool]` — Whether Online Refresh Tokens can be issued even when sessions are configured as ephemeral (true) or not (false). - -
-
- -
-
- -**token_lifetime:** `typing.Optional[int]` — Expiration value (in seconds) for access tokens issued for this API from the token endpoint. - -
-
- -
-
- -**token_lifetime_for_anonymous_access_tokens:** `typing.Optional[int]` — Expiration value (in seconds) for anonymous-session access tokens issued for this API. - -
-
- -
-
- -**token_dialect:** `typing.Optional[ResourceServerTokenDialectSchemaEnum]` - -
-
- -
-
- -**skip_consent_for_verifiable_first_party_clients:** `typing.Optional[bool]` — Whether to skip user consent for applications flagged as first party (true) or not (false). - -
-
- -
-
- -**enforce_policies:** `typing.Optional[bool]` — Whether to enforce authorization policies (true) or to ignore them (false). - -
-
- -
-
- -**access_token:** `typing.Optional[ResourceServerAccessToken]` - -
-
- -
-
- -**token_encryption:** `typing.Optional[ResourceServerTokenEncryption]` - -
-
- -
-
- -**consent_policy:** `typing.Optional[ResourceServerConsentPolicyEnum]` - -
-
- -
-
- -**require_consent_non_repudiation:** `typing.Optional[bool]` — When true, the resource server requires every consent approval to be digitally signed, so the approver cannot later deny a consent they granted. When false, consent decisions do not need a signature. Defaults to false. A configured value is still returned even after the related entitlement is disabled. - -
-
- -
-
- -**authorization_details:** `typing.Optional[typing.List[typing.Any]]` - -
-
- -
-
- -**proof_of_possession:** `typing.Optional[ResourceServerProofOfPossession]` - -
-
- -
-
- -**subject_type_authorization:** `typing.Optional[ResourceServerSubjectTypeAuthorization]` - -
-
- -
-
- -**authorization_policy:** `typing.Optional[ResourceServerAuthorizationPolicy]` - -
-
- -
-
- -**agent_subject_claims:** `typing.Optional[ResourceServerAgentSubjectClaimsSchemaEnum]` - -
-
- -
-
- -**type:** `typing.Optional[ResourceServerTypeEnum]` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.resource_servers.search(...) -> SearchResourceServersResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Search resource servers using SCIM or Lucene filter syntax with low-latency, eventually consistent results. Use the parser parameter to specify "scim" or "lucene" syntax (default: "lucene"). This endpoint provides an alternative to the standard GET /resource-servers endpoint with better performance for complex queries. -Results may not reflect recent updates immediately. - -The `signing_secret` field is not supported by this endpoint. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.resource_servers.search( - q="q", - parser="scim", - fields="fields", - include_fields=True, - take=1, - from_="from", - sort="identifier", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**q:** `typing.Optional[str]` — Filter expression in SCIM or Lucene syntax (depending on parser parameter). SCIM examples: `name eq "My API"`, `identifier sw "https://"`. SCIM operators: eq, ne, sw, ew, co, pr, gt, ge, lt, le, and, or.

Supported Fields:
  • id - Filter by resource server ID
  • identifier - Filter by resource server identifier
  • name - Filter by resource server name
  • updated_at - Filter by last update date
Maximum 5 filter operations per query. Results are eventually consistent and may not reflect recent updates. - -
-
- -
-
- -**parser:** `typing.Optional[SearchParserEnum]` — Query parser to use for the filter expression. Use "scim" for SCIM filter syntax or "lucene" for Lucene query syntax (default). - -
-
- -
-
- -**fields:** `typing.Optional[str]` — Comma-separated list of fields to include or exclude in the response. Works with the include_fields parameter to control projection mode. - -
-
- -
-
- -**include_fields:** `typing.Optional[bool]` — Controls field projection mode. Set to true to include only fields specified in the fields parameter. Set to false to exclude fields specified in the fields parameter. Defaults to true if not specified. - -
-
- -
-
- -**take:** `typing.Optional[int]` — Maximum number of results to return per page (1-100). Defaults to 50. - -
-
- -
-
- -**from:** `typing.Optional[str]` — Cursor for the next page of results. Use the value from the next field in the previous response. - -
-
- -
-
- -**sort:** `typing.Optional[ResourceServerSortFieldEnum]` — Field name to sort results by in ascending order only. Defaults to insertion order (oldest first) if not provided. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.resource_servers.get(...) -> GetResourceServerResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve API details with the given ID. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.resource_servers.get( - id="id", - include_fields=True, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID or audience of the resource server to retrieve. - -
-
- -
-
- -**include_fields:** `typing.Optional[bool]` — Whether specified fields are to be included (true) or excluded (false). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.resource_servers.delete(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Delete an existing API by ID. For more information, read API Settings. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.resource_servers.delete( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID or the audience of the resource server to delete. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.resource_servers.update(...) -> UpdateResourceServerResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Change an existing API setting by resource server ID. For more information, read API Settings. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.resource_servers.update( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID or audience of the resource server to update. - -
-
- -
-
- -**name:** `typing.Optional[str]` — Friendly name for this resource server. Can not contain `<` or `>` characters. - -
-
- -
-
- -**scopes:** `typing.Optional[typing.List[ResourceServerScope]]` — List of permissions (scopes) that this API uses. - -
-
- -
-
- -**signing_alg:** `typing.Optional[SigningAlgorithmEnum]` - -
-
- -
-
- -**signing_secret:** `typing.Optional[str]` — Secret used to sign tokens when using symmetric algorithms (HS256). - -
-
- -
-
- -**skip_consent_for_verifiable_first_party_clients:** `typing.Optional[bool]` — Whether to skip user consent for applications flagged as first party (true) or not (false). - -
-
- -
-
- -**allow_offline_access:** `typing.Optional[bool]` — Whether refresh tokens can be issued for this API (true) or not (false). - -
-
- -
-
- -**allow_online_access:** `typing.Optional[bool]` — Whether Online Refresh Tokens can be issued for this API (true) or not (false). - -
-
- -
-
- -**allow_online_access_with_ephemeral_sessions:** `typing.Optional[bool]` — Whether Online Refresh Tokens can be issued even when sessions are configured as ephemeral (true) or not (false). - -
-
- -
-
- -**token_lifetime:** `typing.Optional[int]` — Expiration value (in seconds) for access tokens issued for this API from the token endpoint. - -
-
- -
-
- -**token_lifetime_for_anonymous_access_tokens:** `typing.Optional[int]` — Expiration value (in seconds) for anonymous-session access tokens issued for this API. - -
-
- -
-
- -**token_dialect:** `typing.Optional[ResourceServerTokenDialectSchemaEnum]` - -
-
- -
-
- -**enforce_policies:** `typing.Optional[bool]` — Whether authorization policies are enforced (true) or not enforced (false). - -
-
- -
-
- -**access_token:** `typing.Optional[ResourceServerAccessToken]` - -
-
- -
-
- -**token_encryption:** `typing.Optional[ResourceServerTokenEncryption]` - -
-
- -
-
- -**consent_policy:** `typing.Optional[ResourceServerConsentPolicyEnum]` - -
-
- -
-
- -**require_consent_non_repudiation:** `typing.Optional[bool]` — When true, the resource server requires every consent approval to be digitally signed, so the approver cannot later deny a consent they granted. When false, consent decisions do not need a signature. Defaults to false. A configured value is still returned even after the related entitlement is disabled. - -
-
- -
-
- -**authorization_details:** `typing.Optional[typing.List[typing.Any]]` - -
-
- -
-
- -**proof_of_possession:** `typing.Optional[ResourceServerProofOfPossession]` - -
-
- -
-
- -**subject_type_authorization:** `typing.Optional[ResourceServerSubjectTypeAuthorization]` - -
-
- -
-
- -**authorization_policy:** `typing.Optional[ResourceServerAuthorizationPolicy]` - -
-
- -
-
- -**agent_subject_claims:** `typing.Optional[ResourceServerAgentSubjectClaimsSchemaEnum]` - -
-
- -
-
- -**type:** `typing.Optional[ResourceServerTypeEnum]` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Roles -
client.roles.list(...) -> ListRolesOffsetPaginatedResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve a list of roles. Includes roles created in your tenant and, when `owner_id=auth0` is supplied, Auth0-managed System Roles. - -**Note**: The returned list does not include standard roles available for tenant members, such as Admin or Support Access. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.roles.list( - per_page=1, - page=1, - include_totals=True, - name_filter="name_filter", - type="tenant", - owner_id="owner_id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**per_page:** `typing.Optional[int]` — Number of results per page. Defaults to 50. - -
-
- -
-
- -**page:** `typing.Optional[int]` — Page index of the results to return. First page is 0. - -
-
- -
-
- -**include_totals:** `typing.Optional[bool]` — Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - -
-
- -
-
- -**name_filter:** `typing.Optional[str]` — Optional filter on name (case-insensitive). - -
-
- -
-
- -**type:** `typing.Optional[RoleTypeEnum]` — Optional filter on the type of the role - -
-
- -
-
- -**owner_id:** `typing.Optional[RoleOwnerIdFilter]` — Filter organization-level roles by owner ID. Use an organization ID to filter that organization's roles, or "auth0" to retrieve Auth0-managed System Roles. Required when type is "organization". - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.roles.create(...) -> CreateRoleResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Create a user role for [Role-Based Access Control](https://auth0.com/docs/manage-users/access-control/rbac). - -**Note**: New roles are not associated with any permissions by default. To assign existing permissions to your role, review Associate Permissions with a Role. To create new permissions, review Add API Permissions. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.roles.create( - name="name", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**name:** `str` — Name of the role. - -
-
- -
-
- -**description:** `typing.Optional[str]` — Description of the role. - -
-
- -
-
- -**type:** `typing.Optional[RoleTypeEnum]` — The type of the role. Defaults to tenant. - -
-
- -
-
- -**owner_id:** `typing.Optional[str]` — The ID of the organization that owns this role. Required when type is "organization". - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.roles.get(...) -> GetRoleResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve details about a specific [user role](https://auth0.com/docs/manage-users/access-control/rbac) specified by ID. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.roles.get( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the role to retrieve. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.roles.delete(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Delete a specific [user role](https://auth0.com/docs/manage-users/access-control/rbac) from your tenant. Once deleted, it is removed from any user who was previously assigned that role. This action cannot be undone. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.roles.delete( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the role to delete. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.roles.update(...) -> UpdateRoleResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Modify the details of a specific [user role](https://auth0.com/docs/manage-users/access-control/rbac) specified by ID. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.roles.update( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the role to update. - -
-
- -
-
- -**name:** `typing.Optional[str]` — Name of this role. - -
-
- -
-
- -**description:** `typing.Optional[str]` — Description of this role. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Rules -
client.rules.list(...) -> ListRulesOffsetPaginatedResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve a filtered list of [rules](https://auth0.com/docs/rules). Accepts a list of fields to include or exclude. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.rules.list( - page=1, - per_page=1, - include_totals=True, - enabled=True, - fields="fields", - include_fields=True, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**page:** `typing.Optional[int]` — Page index of the results to return. First page is 0. - -
-
- -
-
- -**per_page:** `typing.Optional[int]` — Number of results per page. - -
-
- -
-
- -**include_totals:** `typing.Optional[bool]` — Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - -
-
- -
-
- -**enabled:** `typing.Optional[bool]` — Optional filter on whether a rule is enabled (true) or disabled (false). - -
-
- -
-
- -**fields:** `typing.Optional[str]` — Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - -
-
- -
-
- -**include_fields:** `typing.Optional[bool]` — Whether specified fields are to be included (true) or excluded (false). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.rules.create(...) -> CreateRuleResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Create a [new rule](https://auth0.com/docs/rules#create-a-new-rule-using-the-management-api). - -Note: Changing a rule's stage of execution from the default `login_success` can change the rule's function signature to have user omitted. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.rules.create( - name="name", - script="script", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**name:** `str` — Name of this rule. - -
-
- -
-
- -**script:** `str` — Code to be executed when this rule runs. - -
-
- -
-
- -**order:** `typing.Optional[float]` — Order that this rule should execute in relative to other rules. Lower-valued rules execute first. - -
-
- -
-
- -**enabled:** `typing.Optional[bool]` — Whether the rule is enabled (true), or disabled (false). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.rules.get(...) -> GetRuleResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve [rule](https://auth0.com/docs/rules) details. Accepts a list of fields to include or exclude in the result. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.rules.get( - id="id", - fields="fields", - include_fields=True, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the rule to retrieve. - -
-
- -
-
- -**fields:** `typing.Optional[str]` — Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - -
-
- -
-
- -**include_fields:** `typing.Optional[bool]` — Whether specified fields are to be included (true) or excluded (false). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.rules.delete(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Delete a rule. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.rules.delete( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the rule to delete. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.rules.update(...) -> UpdateRuleResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Update an existing rule. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.rules.update( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the rule to retrieve. - -
-
- -
-
- -**script:** `typing.Optional[str]` — Code to be executed when this rule runs. - -
-
- -
-
- -**name:** `typing.Optional[str]` — Name of this rule. - -
-
- -
-
- -**order:** `typing.Optional[float]` — Order that this rule should execute in relative to other rules. Lower-valued rules execute first. - -
-
- -
-
- -**enabled:** `typing.Optional[bool]` — Whether the rule is enabled (true), or disabled (false). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## RulesConfigs -
client.rules_configs.list() -> typing.List[RulesConfig] -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve rules config variable keys. - - Note: For security, config variable values cannot be retrieved outside rule execution. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.rules_configs.list() - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.rules_configs.set(...) -> SetRulesConfigResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Sets a rules config variable. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.rules_configs.set( - key="key", - value="value", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**key:** `str` — Key of the rules config variable to set (max length: 127 characters). - -
-
- -
-
- -**value:** `str` — Value for a rules config variable. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.rules_configs.delete(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Delete a rules config variable identified by its key. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.rules_configs.delete( - key="key", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**key:** `str` — Key of the rules config variable to delete. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## SelfServiceProfiles -
client.self_service_profiles.list(...) -> ListSelfServiceProfilesPaginatedResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieves self-service profiles. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.self_service_profiles.list( - page=1, - per_page=1, - include_totals=True, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**page:** `typing.Optional[int]` — Page index of the results to return. First page is 0. - -
-
- -
-
- -**per_page:** `typing.Optional[int]` — Number of results per page. Defaults to 50. - -
-
- -
-
- -**include_totals:** `typing.Optional[bool]` — Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.self_service_profiles.create(...) -> CreateSelfServiceProfileResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Creates a self-service profile. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.self_service_profiles.create( - name="name", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**name:** `str` — The name of the self-service Profile. - -
-
- -
-
- -**description:** `typing.Optional[str]` — The description of the self-service Profile. - -
-
- -
-
- -**branding:** `typing.Optional[SelfServiceProfileBrandingProperties]` - -
-
- -
-
- -**allowed_strategies:** `typing.Optional[typing.List[SelfServiceProfileAllowedStrategyEnum]]` — List of IdP strategies that will be shown to users during the Self-Service Enterprise Configuration flow. Possible values: [`oidc`, `samlp`, `waad`, `google-apps`, `adfs`, `okta`, `auth0-samlp`, `okta-samlp`, `keycloak-samlp`, `pingfederate`] - -
-
- -
-
- -**user_attributes:** `typing.Optional[typing.List[SelfServiceProfileUserAttribute]]` — List of attributes to be mapped that will be shown to the user during the Self-Service Enterprise Configuration flow. - -
-
- -
-
- -**user_attribute_profile_id:** `typing.Optional[str]` — ID of the user-attribute-profile to associate with this self-service profile. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.self_service_profiles.get(...) -> GetSelfServiceProfileResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieves a self-service profile by Id. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.self_service_profiles.get( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The id of the self-service profile to retrieve - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.self_service_profiles.delete(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Deletes a self-service profile by Id. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.self_service_profiles.delete( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The id of the self-service profile to delete - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.self_service_profiles.update(...) -> UpdateSelfServiceProfileResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Updates a self-service profile. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.self_service_profiles.update( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The id of the self-service profile to update - -
-
- -
-
- -**name:** `typing.Optional[str]` — The name of the self-service Profile. - -
-
- -
-
- -**description:** `typing.Optional[SelfServiceProfileDescription]` - -
-
- -
-
- -**branding:** `typing.Optional[SelfServiceProfileBranding]` - -
-
- -
-
- -**allowed_strategies:** `typing.Optional[typing.List[SelfServiceProfileAllowedStrategyEnum]]` — List of IdP strategies that will be shown to users during the Self-Service Enterprise Configuration flow. Possible values: [`oidc`, `samlp`, `waad`, `google-apps`, `adfs`, `okta`, `auth0-samlp`, `okta-samlp`, `keycloak-samlp`, `pingfederate`] - -
-
- -
-
- -**user_attributes:** `typing.Optional[SelfServiceProfileUserAttributes]` - -
-
- -
-
- -**user_attribute_profile_id:** `typing.Optional[str]` — ID of the user-attribute-profile to associate with this self-service profile. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Sessions -
client.sessions.get(...) -> GetSessionResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve session information. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.sessions.get( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of session to retrieve - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.sessions.delete(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Delete a session by ID. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.sessions.delete( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the session to delete. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.sessions.update(...) -> UpdateSessionResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Update session information. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.sessions.update( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the session to update. - -
-
- -
-
- -**session_metadata:** `typing.Optional[SessionMetadata]` — Metadata associated with the session. Pass null or {} to remove all session_metadata. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.sessions.revoke(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Revokes a session by ID and all associated refresh tokens. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.sessions.revoke( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the session to revoke. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Stats -
client.stats.get_active_users_count() -> GetActiveUsersCountStatsResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve the number of active users that logged in during the last 30 days. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.stats.get_active_users_count() - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.stats.get_daily(...) -> typing.List[DailyStats] -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve the number of logins, signups and breached-password detections (subscription required) that occurred each day within a specified date range. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.stats.get_daily( - from_="from", - to="to", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**from:** `typing.Optional[str]` — Optional first day of the date range (inclusive) in YYYYMMDD format. - -
-
- -
-
- -**to:** `typing.Optional[str]` — Optional last day of the date range (inclusive) in YYYYMMDD format. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## SupplementalSignals -
client.supplemental_signals.get() -> GetSupplementalSignalsResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Get the supplemental signals configuration for a tenant. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.supplemental_signals.get() - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.supplemental_signals.patch(...) -> PatchSupplementalSignalsResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Update the supplemental signals configuration for a tenant. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.supplemental_signals.patch( - akamai_enabled=True, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**akamai_enabled:** `bool` — Indicates if incoming Akamai Headers should be processed - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Tickets -
client.tickets.verify_email(...) -> VerifyEmailTicketResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Create an email verification ticket for a given user. An email verification ticket is a generated URL that the user can consume to verify their email address. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.tickets.verify_email( - user_id="user_id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**user_id:** `str` — user_id of for whom the ticket should be created. - -
-
- -
-
- -**result_url:** `typing.Optional[str]` — URL the user will be redirected to in the classic Universal Login experience once the ticket is used. Cannot be specified when using client_id or organization_id. - -
-
- -
-
- -**client_id:** `typing.Optional[str]` — ID of the client (application). If provided for tenants using the New Universal Login experience, the email template and UI displays application details, and the user is prompted to redirect to the application's default login route after the ticket is used. client_id is required to use the Password Reset Post Challenge trigger. - -
-
- -
-
- -**organization_id:** `typing.Optional[str]` — (Optional) Organization ID – the ID of the Organization. If provided, organization parameters will be made available to the email template and organization branding will be applied to the prompt. In addition, the redirect link in the prompt will include organization_id and organization_name query string parameters. - -
-
- -
-
- -**ttl_sec:** `typing.Optional[int]` — Number of seconds for which the ticket is valid before expiration. If unspecified or set to 0, this value defaults to 432000 seconds (5 days). - -
-
- -
-
- -**include_email_in_redirect:** `typing.Optional[bool]` — Whether to include the email address as part of the returnUrl in the reset_email (true), or not (false). - -
-
- -
-
- -**identity:** `typing.Optional[Identity]` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.tickets.change_password(...) -> ChangePasswordTicketResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Create a password change ticket for a given user. A password change ticket is a generated URL that the user can consume to start a reset password flow. - -Note: This endpoint does not verify the given user’s identity. If you call this endpoint within your application, you must design your application to verify the user’s identity. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.tickets.change_password() - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**result_url:** `typing.Optional[str]` — URL the user will be redirected to in the classic Universal Login experience once the ticket is used. Cannot be specified when using organization_id. May be specified together with client_id when the tenant has a custom password reset page enabled and a password-reset-post-challenge Action bound. - -
-
- -
-
- -**user_id:** `typing.Optional[str]` — user_id of for whom the ticket should be created. - -
-
- -
-
- -**client_id:** `typing.Optional[str]` — ID of the client (application). If provided for tenants using the New Universal Login experience, the email template and UI displays application details, and the user is prompted to redirect to the application's default login route after the ticket is used. client_id is required to use the Password Reset Post Challenge trigger. - -
-
- -
-
- -**organization_id:** `typing.Optional[str]` — (Optional) Organization ID – the ID of the Organization. If provided, organization parameters will be made available to the email template and organization branding will be applied to the prompt. In addition, the redirect link in the prompt will include organization_id and organization_name query string parameters. - -
-
- -
-
- -**connection_id:** `typing.Optional[str]` — ID of the connection. If provided, allows the user to be specified using email instead of user_id. If you set this value, you must also send the email parameter. You cannot send user_id when specifying a connection_id. - -
-
- -
-
- -**email:** `typing.Optional[str]` — Email address of the user for whom the tickets should be created. Requires the connection_id parameter. Cannot be specified when using user_id. - -
-
- -
-
- -**ttl_sec:** `typing.Optional[int]` — Number of seconds for which the ticket is valid before expiration. If unspecified or set to 0, this value defaults to 432000 seconds (5 days). - -
-
- -
-
- -**mark_email_as_verified:** `typing.Optional[bool]` — Whether to set the email_verified attribute to true (true) or whether it should not be updated (false). - -
-
- -
-
- -**include_email_in_redirect:** `typing.Optional[bool]` — Whether to include the email address as part of the returnUrl in the reset_email (true), or not (false). - -
-
- -
-
- -**identity:** `typing.Optional[ChangePasswordTicketIdentity]` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## TokenExchangeProfiles -
client.token_exchange_profiles.list(...) -> ListTokenExchangeProfileResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve a list of all Token Exchange Profiles available in your tenant. - -By using this feature, you agree to the applicable Free Trial terms in [Okta’s Master Subscription Agreement](https://www.okta.com/legal/). It is your responsibility to securely validate the user’s subject_token. See [User Guide](https://auth0.com/docs/authenticate/custom-token-exchange) for more details. - -This endpoint supports Checkpoint pagination. To search by checkpoint, use the following parameters: - -- `from`: Optional id from which to start selection. -- `take`: The total amount of entries to retrieve when using the from parameter. Defaults to 50. - -**Note**: The first time you call this endpoint using checkpoint pagination, omit the `from` parameter. If there are more results, a `next` value is included in the response. You can use this for subsequent API calls. When `next` is no longer included in the response, no pages are remaining. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.token_exchange_profiles.list( - from_="from", - take=1, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**from:** `typing.Optional[str]` — Optional Id from which to start selection. - -
-
- -
-
- -**take:** `typing.Optional[int]` — Number of results per page. Defaults to 50. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.token_exchange_profiles.create(...) -> CreateTokenExchangeProfileResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Create a new Token Exchange Profile within your tenant. - -By using this feature, you agree to the applicable Free Trial terms in [Okta’s Master Subscription Agreement](https://www.okta.com/legal/). It is your responsibility to securely validate the user’s subject_token. See [User Guide](https://auth0.com/docs/authenticate/custom-token-exchange) for more details. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.token_exchange_profiles.create( - name="name", - subject_token_type="subject_token_type", - action_id="action_id", - type="custom_authentication", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**name:** `str` — Friendly name of this profile. - -
-
- -
-
- -**subject_token_type:** `str` — Subject token type for this profile. When receiving a token exchange request on the Authentication API, the corresponding token exchange profile with a matching subject_token_type will be executed. This must be a URI. - -
-
- -
-
- -**action_id:** `str` — The ID of the Custom Token Exchange action to execute for this profile, in order to validate the subject_token. The action must use the custom-token-exchange trigger. - -
-
- -
-
- -**type:** `TokenExchangeProfileTypeEnum` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.token_exchange_profiles.get(...) -> GetTokenExchangeProfileResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve details about a single Token Exchange Profile specified by ID. - -By using this feature, you agree to the applicable Free Trial terms in [Okta’s Master Subscription Agreement](https://www.okta.com/legal/). It is your responsibility to securely validate the user’s subject_token. See [User Guide](https://auth0.com/docs/authenticate/custom-token-exchange) for more details. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.token_exchange_profiles.get( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the Token Exchange Profile to retrieve. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.token_exchange_profiles.delete(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Delete a Token Exchange Profile within your tenant. - -By using this feature, you agree to the applicable Free Trial terms in [Okta's Master Subscription Agreement](https://www.okta.com/legal/). It is your responsibility to securely validate the user's subject_token. See [User Guide](https://auth0.com/docs/authenticate/custom-token-exchange) for more details. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.token_exchange_profiles.delete( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the Token Exchange Profile to delete. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.token_exchange_profiles.update(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Update a Token Exchange Profile within your tenant. - -By using this feature, you agree to the applicable Free Trial terms in [Okta's Master Subscription Agreement](https://www.okta.com/legal/). It is your responsibility to securely validate the user's subject_token. See [User Guide](https://auth0.com/docs/authenticate/custom-token-exchange) for more details. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.token_exchange_profiles.update( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the Token Exchange Profile to update. - -
-
- -
-
- -**name:** `typing.Optional[str]` — Friendly name of this profile. - -
-
- -
-
- -**subject_token_type:** `typing.Optional[str]` — Subject token type for this profile. When receiving a token exchange request on the Authentication API, the corresponding token exchange profile with a matching subject_token_type will be executed. This must be a URI. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## UserAttributeProfiles -
client.user_attribute_profiles.list(...) -> ListUserAttributeProfilesPaginatedResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve a list of User Attribute Profiles. This endpoint supports Checkpoint pagination. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.user_attribute_profiles.list( - from_="from", - take=1, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**from:** `typing.Optional[str]` — Optional Id from which to start selection. - -
-
- -
-
- -**take:** `typing.Optional[int]` — Number of results per page. Defaults to 5. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.user_attribute_profiles.create(...) -> CreateUserAttributeProfileResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Create a User Attribute Profile. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0, UserAttributeProfileUserAttributeAdditionalProperties -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.user_attribute_profiles.create( - name="name", - user_attributes={ - "key": UserAttributeProfileUserAttributeAdditionalProperties( - description="description", - label="label", - profile_required=True, - auth_0_mapping="auth0_mapping", - ) - }, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**name:** `UserAttributeProfileName` - -
-
- -
-
- -**user_attributes:** `UserAttributeProfileUserAttributes` - -
-
- -
-
- -**user_id:** `typing.Optional[UserAttributeProfileUserId]` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.user_attribute_profiles.list_templates() -> ListUserAttributeProfileTemplateResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve a list of User Attribute Profile Templates. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.user_attribute_profiles.list_templates() - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.user_attribute_profiles.get_template(...) -> GetUserAttributeProfileTemplateResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve a User Attribute Profile Template. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.user_attribute_profiles.get_template( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the user-attribute-profile-template to retrieve. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.user_attribute_profiles.get(...) -> GetUserAttributeProfileResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve details about a single User Attribute Profile specified by ID. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.user_attribute_profiles.get( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the user-attribute-profile to retrieve. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.user_attribute_profiles.delete(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Delete a single User Attribute Profile specified by ID. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.user_attribute_profiles.delete( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the user-attribute-profile to delete. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.user_attribute_profiles.update(...) -> UpdateUserAttributeProfileResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Update the details of a specific User attribute profile, such as name, user_id and user_attributes. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.user_attribute_profiles.update( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the user attribute profile to update. - -
-
- -
-
- -**name:** `typing.Optional[UserAttributeProfileName]` - -
-
- -
-
- -**user_id:** `typing.Optional[UserAttributeProfilePatchUserId]` - -
-
- -
-
- -**user_attributes:** `typing.Optional[UserAttributeProfileUserAttributes]` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## UserBlocks -
client.user_blocks.list_by_identifier(...) -> ListUserBlocksByIdentifierResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve details of all [Brute-force Protection](https://auth0.com/docs/secure/attack-protection/brute-force-protection) blocks for a user with the given identifier (username, phone number, or email). -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.user_blocks.list_by_identifier( - identifier="identifier", - consider_brute_force_enablement=True, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**identifier:** `str` — Should be any of a username, phone number, or email. - -
-
- -
-
- -**consider_brute_force_enablement:** `typing.Optional[bool]` - - - If true, returns only blocks that are currently enforced (e.g. subject to protection status, IP allowlist, etc.). - If false or omitted, returns all blocks regardless of enforcement state. - - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.user_blocks.delete_by_identifier(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Remove all [Brute-force Protection](https://auth0.com/docs/secure/attack-protection/brute-force-protection) blocks for the user with the given identifier (username, phone number, or email). - -Note: This endpoint does not unblock users that were [blocked by a tenant administrator](https://auth0.com/docs/user-profile#block-and-unblock-a-user). -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.user_blocks.delete_by_identifier( - identifier="identifier", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**identifier:** `str` — Should be any of a username, phone number, or email. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.user_blocks.list(...) -> ListUserBlocksResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve details of all [Brute-force Protection](https://auth0.com/docs/secure/attack-protection/brute-force-protection) blocks for the user with the given ID. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.user_blocks.list( - id="id", - consider_brute_force_enablement=True, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — user_id of the user blocks to retrieve. - -
-
- -
-
- -**consider_brute_force_enablement:** `typing.Optional[bool]` - - - If true, returns only blocks that are currently enforced (e.g. subject to protection status, IP allowlist, etc.). - If false or omitted, returns all blocks regardless of enforcement state. - - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.user_blocks.delete(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Remove all [Brute-force Protection](https://auth0.com/docs/secure/attack-protection/brute-force-protection) blocks for the user with the given ID. - -Note: This endpoint does not unblock users that were [blocked by a tenant administrator](https://auth0.com/docs/user-profile#block-and-unblock-a-user). -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.user_blocks.delete( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The user_id of the user to update. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Users -
client.users.list(...) -> ListUsersOffsetPaginatedResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -This endpoint retrieves details of users. It's best suited to interactive, best-effort search and lookups where slightly stale results are acceptable. With it, you can: - -- Specify search criteria for users -- Sort the users to be returned -- Select the fields to be returned -- Specify the number of users to retrieve per page and the page index - -This endpoint is **not suited for use in critical paths**. It is eventually consistent and runs under a short (~2 second) query time limit, so results can be stale and heavy queries can return a 503. - -- Do not use this endpoint for authentication, account linking, or logic inside login-flow Actions. Instead, [look users up directly by ID or email](https://auth0.com/docs/manage-users/user-search/get-users-by-id-or-email#management-api) to get their current state. -- Do not use this endpoint to keep an external system in sync with user data. Instead, subscribe to [Event Streams](https://auth0.com/docs/customize/events/sync-data-across-systems) to receive every change as it happens. -- Do not use this endpoint to enumerate or export your entire user base. Instead, run a [bulk user export](https://auth0.com/docs/manage-users/user-migration/bulk-user-exports) to retrieve the full set. - -Use the `q` query parameter to match users with [query string syntax](https://auth0.com/docs/manage-users/user-search/user-search-query-syntax). For full instructions and guidance, see [How to List and Search Users](https://auth0.com/docs/manage-users/user-search/list-and-search-users). - -For efficient queries, prefer indexed top-level fields and exact matches. Certain kinds of queries can be slow and may time out, such as filtering on freeform or multi-value fields (like user-defined attributes in `app_metadata` or `user_metadata`) or using leading wildcards. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.users.list( - page=1, - per_page=1, - include_totals=True, - sort="sort", - connection="connection", - fields="fields", - include_fields=True, - q="q", - search_engine="v1", - primary_order=True, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**page:** `typing.Optional[int]` — Page index of the results to return. First page is 0. - -
-
- -
-
- -**per_page:** `typing.Optional[int]` — Number of results per page. - -
-
- -
-
- -**include_totals:** `typing.Optional[bool]` — Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - -
-
- -
-
- -**sort:** `typing.Optional[str]` — Field to sort by. Use field:order where order is 1 for ascending and -1 for descending. e.g. created_at:1 - -
-
- -
-
- -**connection:** `typing.Optional[str]` — Connection filter. Only applies when using search_engine=v1. To filter by connection with search_engine=v2|v3, use q=identities.connection:"connection_name" - -
-
- -
-
- -**fields:** `typing.Optional[str]` — Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - -
-
- -
-
- -**include_fields:** `typing.Optional[bool]` — Whether specified fields are to be included (true) or excluded (false). - -
-
- -
-
- -**q:** `typing.Optional[str]` — Query in Lucene query string syntax. Some query types cannot be used on metadata fields, for details see Searchable Fields. - -
-
- -
-
- -**search_engine:** `typing.Optional[SearchEngineVersionsEnum]` — The version of the search engine - -
-
- -
-
- -**primary_order:** `typing.Optional[bool]` — If true (default), results are returned in a deterministic order. If false, results may be returned in a non-deterministic order, which can enhance performance for complex queries targeting a small number of users. Set to false only when consistent ordering and pagination is not required. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.users.create(...) -> CreateUserResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Create a new user for a given [database](https://auth0.com/docs/connections/database) or [passwordless](https://auth0.com/docs/connections/passwordless) connection. - -Note: `connection` is required but other parameters such as `email` and `password` are dependent upon the type of connection. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.users.create( - connection="connection", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**connection:** `str` — Name of the connection this user should be created in. - -
-
- -
-
- -**email:** `typing.Optional[str]` — The user's email. - -
-
- -
-
- -**phone_number:** `typing.Optional[str]` — The user's phone number (following the E.164 recommendation). - -
-
- -
-
- -**user_metadata:** `typing.Optional[UserMetadata]` - -
-
- -
-
- -**blocked:** `typing.Optional[bool]` — Whether this user was blocked by an administrator (true) or not (false). - -
-
- -
-
- -**email_verified:** `typing.Optional[bool]` — Whether this email address is verified (true) or unverified (false). User will receive a verification email after creation if `email_verified` is false or not specified - -
-
- -
-
- -**phone_verified:** `typing.Optional[bool]` — Whether this phone number has been verified (true) or not (false). - -
-
- -
-
- -**app_metadata:** `typing.Optional[AppMetadata]` - -
-
- -
-
- -**given_name:** `typing.Optional[str]` — The user's given name(s). - -
-
- -
-
- -**family_name:** `typing.Optional[str]` — The user's family name(s). - -
-
- -
-
- -**name:** `typing.Optional[str]` — The user's full name. - -
-
- -
-
- -**nickname:** `typing.Optional[str]` — The user's nickname. - -
-
- -
-
- -**picture:** `typing.Optional[str]` — A URI pointing to the user's picture. - -
-
- -
-
- -**user_id:** `typing.Optional[str]` — The external user's id provided by the identity provider. - -
-
- -
-
- -**password:** `typing.Optional[str]` — Initial password for this user. Only valid for auth0 connection strategy. - -
-
- -
-
- -**verify_email:** `typing.Optional[bool]` — Whether the user will receive a verification email after creation (true) or no email (false). Overrides behavior of `email_verified` parameter. - -
-
- -
-
- -**username:** `typing.Optional[str]` — The user's username. Only valid if the connection requires a username. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.users.list_users_by_email(...) -> typing.List[UserResponseSchema] -
-
- -#### 📝 Description - -
-
- -
-
- -Find users by email. If Auth0 is the identity provider (idP), the email address associated with a user is saved in lower case, regardless of how you initially provided it. - -For example, if you register a user as JohnSmith@example.com, Auth0 saves the user's email as johnsmith@example.com. - -Therefore, when using this endpoint, make sure that you are searching for users via email addresses using the correct case. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.users.list_users_by_email( - fields="fields", - include_fields=True, - email="email", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**email:** `str` — Email address to search for (case-sensitive). - -
-
- -
-
- -**fields:** `typing.Optional[str]` — Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - -
-
- -
-
- -**include_fields:** `typing.Optional[bool]` — Whether specified fields are to be included (true) or excluded (false). Defaults to true. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.users.get(...) -> GetUserResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve user details. A list of fields to include or exclude may also be specified. For more information, see [Retrieve Users with the Get Users Endpoint](https://auth0.com/docs/manage-users/user-search/retrieve-users-with-get-users-endpoint). -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.users.get( - id="id", - fields="fields", - include_fields=True, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the user to retrieve. - -
-
- -
-
- -**fields:** `typing.Optional[str]` — Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - -
-
- -
-
- -**include_fields:** `typing.Optional[bool]` — Whether specified fields are to be included (true) or excluded (false). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.users.delete(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Delete a user by user ID. This action cannot be undone. For Auth0 Dashboard instructions, see [Delete Users](https://auth0.com/docs/manage-users/user-accounts/delete-users). -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.users.delete( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the user to delete. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.users.update(...) -> UpdateUserResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Update a user. - -These are the attributes that can be updated at the root level: - -- app_metadata -- blocked -- email -- email_verified -- family_name -- given_name -- name -- nickname -- password -- phone_number -- phone_verified -- picture -- username -- user_metadata -- verify_email - -Some considerations: - -- The properties of the new object will replace the old ones. -- The metadata fields are an exception to this rule (`user_metadata` and `app_metadata`). These properties are merged instead of being replaced but be careful, the merge only occurs on the first level. -- If you are updating `email`, `email_verified`, `phone_number`, `phone_verified`, `username` or `password` of a secondary identity, you need to specify the `connection` property too. -- If you are updating `email` or `phone_number` you can specify, optionally, the `client_id` property. -- Updating `email_verified` is not supported for enterprise and passwordless sms connections. -- Updating the `blocked` to `false` does not affect the user's blocked state from an excessive amount of incorrectly provided credentials. Use the "Unblock a user" endpoint from the "User Blocks" API to change the user's state. -- Supported attributes can be unset by supplying `null` as the value. - -**Updating a field (non-metadata property)** - -To mark the email address of a user as verified, the body to send should be: - -```json -{ "email_verified": true } -``` - -**Updating a user metadata root property** - -Let's assume that our test user has the following `user_metadata`: - -```json -{ "user_metadata" : { "profileCode": 1479 } } -``` - -To add the field `addresses` the body to send should be: - -```json -{ "user_metadata" : { "addresses": {"work_address": "100 Industrial Way"} }} -``` - -The modified object ends up with the following `user_metadata` property: - -```json -{ - "user_metadata": { - "profileCode": 1479, - "addresses": { "work_address": "100 Industrial Way" } - } -} -``` - -**Updating an inner user metadata property** - -If there's existing user metadata to which we want to add `"home_address": "742 Evergreen Terrace"` (using the `addresses` property) we should send the whole `addresses` object. Since this is a first-level object, the object will be merged in, but its own properties will not be. The body to send should be: - -```json -{ - "user_metadata": { - "addresses": { - "work_address": "100 Industrial Way", - "home_address": "742 Evergreen Terrace" - } - } -} -``` - -The modified object ends up with the following `user_metadata` property: - -```json -{ - "user_metadata": { - "profileCode": 1479, - "addresses": { - "work_address": "100 Industrial Way", - "home_address": "742 Evergreen Terrace" - } - } -} -``` -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.users.update( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the user to update. - -
-
- -
-
- -**blocked:** `typing.Optional[bool]` — Whether this user was blocked by an administrator (true) or not (false). - -
-
- -
-
- -**email_verified:** `typing.Optional[bool]` — Whether this email address is verified (true) or unverified (false). If set to false the user will not receive a verification email unless `verify_email` is set to true. - -
-
- -
-
- -**email:** `typing.Optional[str]` — Email address of this user. - -
-
- -
-
- -**phone_number:** `typing.Optional[str]` — The user's phone number (following the E.164 recommendation). - -
-
- -
-
- -**phone_verified:** `typing.Optional[bool]` — Whether this phone number has been verified (true) or not (false). - -
-
- -
-
- -**user_metadata:** `typing.Optional[UserMetadata]` — User metadata to which this user has read/write access. - -
-
- -
-
- -**app_metadata:** `typing.Optional[AppMetadata]` — User metadata to which this user has read-only access. - -
-
- -
-
- -**given_name:** `typing.Optional[str]` — Given name/first name/forename of this user. - -
-
- -
-
- -**family_name:** `typing.Optional[str]` — Family name/last name/surname of this user. - -
-
- -
-
- -**name:** `typing.Optional[str]` — Name of this user. - -
-
- -
-
- -**nickname:** `typing.Optional[str]` — Preferred nickname or alias of this user. - -
-
- -
-
- -**picture:** `typing.Optional[str]` — URL to picture, photo, or avatar of this user. - -
-
- -
-
- -**verify_email:** `typing.Optional[bool]` — Whether this user will receive a verification email after creation (true) or no email (false). Overrides behavior of `email_verified` parameter. - -
-
- -
-
- -**verify_phone_number:** `typing.Optional[bool]` — Whether this user will receive a text after changing the phone number (true) or no text (false). Only valid when changing phone number for SMS connections. - -
-
- -
-
- -**password:** `typing.Optional[str]` — New password for this user. Only valid for database connections. - -
-
- -
-
- -**connection:** `typing.Optional[str]` — Name of the connection to target for this user update. - -
-
- -
-
- -**client_id:** `typing.Optional[str]` — Auth0 client ID. Only valid when updating email address. - -
-
- -
-
- -**username:** `typing.Optional[str]` — The user's username. Only valid if the connection requires a username. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.users.list_consent_signing_keys(...) -> ListUserConsentSigningKeysResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve all consent signing keys registered for a user. Returns an empty `keys` array when the user has no keys registered. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.users.list_consent_signing_keys( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The ID of the user. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.users.get_consent_signing_key(...) -> ConsentSigningKey -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve a single consent signing key for a user by its key identifier (kid). Returns 404 if the key does not exist. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.users.get_consent_signing_key( - id="id", - kid="kid", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The ID of the user. - -
-
- -
-
- -**kid:** `str` — The key identifier of the consent signing key. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.users.delete_consent_signing_key(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Remove a single consent signing key for a user by its key identifier (kid). The operation is idempotent and returns 204 whether or not the key existed. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.users.delete_consent_signing_key( - id="id", - kid="kid", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The ID of the user. - -
-
- -
-
- -**kid:** `str` — The key identifier of the consent signing key. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.users.regenerate_recovery_code(...) -> RegenerateUsersRecoveryCodeResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Remove an existing multi-factor authentication (MFA) [recovery code](https://auth0.com/docs/secure/multi-factor-authentication/reset-user-mfa) and generate a new one. If a user cannot access the original device or account used for MFA enrollment, they can use a recovery code to authenticate. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.users.regenerate_recovery_code( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the user to regenerate a multi-factor authentication recovery code for. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.users.revoke_access(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Revokes selected resources related to a user (sessions, refresh tokens, ...). -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.users.revoke_access( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the user. - -
-
- -
-
- -**session_id:** `typing.Optional[str]` — ID of the session to revoke. - -
-
- -
-
- -**preserve_refresh_tokens:** `typing.Optional[bool]` — Whether to preserve the refresh tokens associated with the session. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Actions Versions -
client.actions.versions.list(...) -> ListActionVersionsPaginatedResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve all of an action's versions. An action version is created whenever an action is deployed. An action version is immutable, once created. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.actions.versions.list( - action_id="actionId", - page=1, - per_page=1, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**action_id:** `str` — The ID of the action. - -
-
- -
-
- -**page:** `typing.Optional[int]` — Use this field to request a specific page of the list results. - -
-
- -
-
- -**per_page:** `typing.Optional[int]` — This field specify the maximum number of results to be returned by the server. 20 by default - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.actions.versions.get(...) -> GetActionVersionResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve a specific version of an action. An action version is created whenever an action is deployed. An action version is immutable, once created. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.actions.versions.get( - action_id="actionId", - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**action_id:** `str` — The ID of the action. - -
-
- -
-
- -**id:** `str` — The ID of the action version. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.actions.versions.deploy(...) -> DeployActionVersionResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Performs the equivalent of a roll-back of an action to an earlier, specified version. Creates a new, deployed action version that is identical to the specified version. If this action is currently bound to a trigger, the system will begin executing the newly-created version immediately. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0, DeployActionVersionRequestContent -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.actions.versions.deploy( - action_id="actionId", - id="id", - request=DeployActionVersionRequestContent(), -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**action_id:** `str` — The ID of an action. - -
-
- -
-
- -**id:** `str` — The ID of an action version. - -
-
- -
-
- -**request:** `typing.Optional[DeployActionVersionRequestContent]` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Actions Executions -
client.actions.executions.get(...) -> GetActionExecutionResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve information about a specific execution of a trigger. Relevant execution IDs will be included in tenant logs generated as part of that authentication flow. Executions will only be stored for 10 days after their creation. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.actions.executions.get( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The ID of the execution to retrieve. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Actions Modules -
client.actions.modules.list(...) -> GetActionModulesResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve a paginated list of all Actions Modules with optional filtering and totals. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.actions.modules.list( - page=1, - per_page=1, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**page:** `typing.Optional[int]` — Page index of the results to return. First page is 0. - -
-
- -
-
- -**per_page:** `typing.Optional[int]` — Number of results per page. Paging is disabled if parameter not sent. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.actions.modules.create(...) -> CreateActionModuleResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Create a new Actions Module for reusable code across actions. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.actions.modules.create( - name="name", - code="code", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**name:** `str` — The name of the action module. - -
-
- -
-
- -**code:** `str` — The source code of the action module. - -
-
- -
-
- -**secrets:** `typing.Optional[typing.List[ActionModuleSecretRequest]]` — The secrets to associate with the action module. - -
-
- -
-
- -**dependencies:** `typing.Optional[typing.List[ActionModuleDependencyRequest]]` — The npm dependencies of the action module. - -
-
- -
-
- -**api_version:** `typing.Optional[str]` — The API version of the module. - -
-
- -
-
- -**publish:** `typing.Optional[bool]` — Whether to publish the module immediately after creation. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.actions.modules.get(...) -> GetActionModuleResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve details of a specific Actions Module by its unique identifier. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.actions.modules.get( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The ID of the action module to retrieve. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.actions.modules.delete(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Permanently delete an Actions Module. This will fail if the module is still in use by any actions. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.actions.modules.delete( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The ID of the Actions Module to delete. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.actions.modules.update(...) -> UpdateActionModuleResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Update properties of an existing Actions Module, such as code, dependencies, or secrets. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.actions.modules.update( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The ID of the action module to update. - -
-
- -
-
- -**code:** `typing.Optional[str]` — The source code of the action module. - -
-
- -
-
- -**secrets:** `typing.Optional[typing.List[ActionModuleSecretRequest]]` — The secrets to associate with the action module. - -
-
- -
-
- -**dependencies:** `typing.Optional[typing.List[ActionModuleDependencyRequest]]` — The npm dependencies of the action module. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.actions.modules.list_actions(...) -> GetActionModuleActionsResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Lists all actions that are using a specific Actions Module, showing which deployed action versions reference this Actions Module. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.actions.modules.list_actions( - id="id", - page=1, - per_page=1, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The unique ID of the module. - -
-
- -
-
- -**page:** `typing.Optional[int]` — Page index of the results to return. First page is 0. - -
-
- -
-
- -**per_page:** `typing.Optional[int]` — Number of results per page. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.actions.modules.rollback(...) -> RollbackActionModuleResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Rolls back an Actions Module's draft to a previously created version. This action copies the code, dependencies, and secrets from the specified version into the current draft. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.actions.modules.rollback( - id="id", - module_version_id="module_version_id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The unique ID of the module to roll back. - -
-
- -
-
- -**module_version_id:** `str` — The unique ID of the module version to roll back to. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Actions Triggers -
client.actions.triggers.list() -> ListActionTriggersResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve the set of triggers currently available within actions. A trigger is an extensibility point to which actions can be bound. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.actions.triggers.list() - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Actions Modules Versions -
client.actions.modules.versions.list(...) -> GetActionModuleVersionsResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -List all published versions of a specific Actions Module. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.actions.modules.versions.list( - id="id", - page=1, - per_page=1, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The unique ID of the module. - -
-
- -
-
- -**page:** `typing.Optional[int]` — Use this field to request a specific page of the list results. - -
-
- -
-
- -**per_page:** `typing.Optional[int]` — The maximum number of results to be returned by the server in a single response. 20 by default. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.actions.modules.versions.create(...) -> CreateActionModuleVersionResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Creates a new immutable version of an Actions Module from the current draft version. This publishes the draft as a new version that can be referenced by actions, while maintaining the existing draft for continued development. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.actions.modules.versions.create( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The ID of the action module to create a version for. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.actions.modules.versions.get(...) -> GetActionModuleVersionResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve the details of a specific, immutable version of an Actions Module. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.actions.modules.versions.get( - id="id", - version_id="versionId", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The unique ID of the module. - -
-
- -
-
- -**version_id:** `str` — The unique ID of the module version to retrieve. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Actions Triggers Bindings -
client.actions.triggers.bindings.list(...) -> ListActionBindingsPaginatedResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve the actions that are bound to a trigger. Once an action is created and deployed, it must be attached (i.e. bound) to a trigger so that it will be executed as part of a flow. The list of actions returned reflects the order in which they will be executed during the appropriate flow. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.actions.triggers.bindings.list( - trigger_id="post-login", - page=1, - per_page=1, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**trigger_id:** `ActionTriggerTypeEnum` — An actions extensibility point. - -
-
- -
-
- -**page:** `typing.Optional[int]` — Use this field to request a specific page of the list results. - -
-
- -
-
- -**per_page:** `typing.Optional[int]` — The maximum number of results to be returned in a single request. 20 by default - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.actions.triggers.bindings.update_many(...) -> UpdateActionBindingsResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Update the actions that are bound (i.e. attached) to a trigger. Once an action is created and deployed, it must be attached (i.e. bound) to a trigger so that it will be executed as part of a flow. The order in which the actions are provided will determine the order in which they are executed. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.actions.triggers.bindings.update_many( - trigger_id="post-login", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**trigger_id:** `ActionTriggerTypeEnum` — An actions extensibility point. - -
-
- -
-
- -**bindings:** `typing.Optional[typing.List[ActionBindingWithRef]]` — The actions that will be bound to this trigger. The order in which they are included will be the order in which they are executed. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Anomaly Blocks -
client.anomaly.blocks.check_ip(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Check if the given IP address is blocked via the Suspicious IP Throttling due to multiple suspicious attempts. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.anomaly.blocks.check_ip( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `AnomalyIpFormat` — IP address to check. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.anomaly.blocks.unblock_ip(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Remove a block imposed by Suspicious IP Throttling for the given IP address. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.anomaly.blocks.unblock_ip( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `AnomalyIpFormat` — IP address to unblock. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## AttackProtection BotDetection -
client.attack_protection.bot_detection.get() -> GetBotDetectionSettingsResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Get the Bot Detection configuration of your tenant. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.attack_protection.bot_detection.get() - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.attack_protection.bot_detection.update(...) -> UpdateBotDetectionSettingsResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Update the Bot Detection configuration of your tenant. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.attack_protection.bot_detection.update() - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**bot_detection_level:** `typing.Optional[BotDetectionLevelEnum]` - -
-
- -
-
- -**challenge_password_policy:** `typing.Optional[BotDetectionChallengePolicyPasswordFlowEnum]` - -
-
- -
-
- -**challenge_passwordless_policy:** `typing.Optional[BotDetectionChallengePolicyPasswordlessFlowEnum]` - -
-
- -
-
- -**challenge_password_reset_policy:** `typing.Optional[BotDetectionChallengePolicyPasswordResetFlowEnum]` - -
-
- -
-
- -**allowlist:** `typing.Optional[BotDetectionAllowlist]` - -
-
- -
-
- -**monitoring_mode_enabled:** `typing.Optional[BotDetectionMonitoringModeEnabled]` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## AttackProtection BreachedPasswordDetection -
client.attack_protection.breached_password_detection.get() -> GetBreachedPasswordDetectionSettingsResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve details of the Breached Password Detection configuration of your tenant. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.attack_protection.breached_password_detection.get() - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.attack_protection.breached_password_detection.update(...) -> UpdateBreachedPasswordDetectionSettingsResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Update details of the Breached Password Detection configuration of your tenant. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.attack_protection.breached_password_detection.update() - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**enabled:** `typing.Optional[bool]` — Whether or not breached password detection is active. - -
-
- -
-
- -**shields:** `typing.Optional[typing.List[BreachedPasswordDetectionShieldsEnum]]` - -Action to take when a breached password is detected during a login. - Possible values: block, user_notification, admin_notification. - -
-
- -
-
- -**admin_notification_frequency:** `typing.Optional[typing.List[BreachedPasswordDetectionAdminNotificationFrequencyEnum]]` - -When "admin_notification" is enabled, determines how often email notifications are sent. - Possible values: immediately, daily, weekly, monthly. - -
-
- -
-
- -**method:** `typing.Optional[BreachedPasswordDetectionMethodEnum]` - -
-
- -
-
- -**stage:** `typing.Optional[BreachedPasswordDetectionStage]` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## AttackProtection BruteForceProtection -
client.attack_protection.brute_force_protection.get() -> GetBruteForceSettingsResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve details of the Brute-force Protection configuration of your tenant. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.attack_protection.brute_force_protection.get() - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.attack_protection.brute_force_protection.update(...) -> UpdateBruteForceSettingsResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Update the Brute-force Protection configuration of your tenant. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.attack_protection.brute_force_protection.update() - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**enabled:** `typing.Optional[bool]` — Whether or not brute force attack protections are active. - -
-
- -
-
- -**shields:** `typing.Optional[typing.List[BruteForceProtectionShieldsEnum]]` - -Action to take when a brute force protection threshold is violated. - Possible values: block, user_notification. - -
-
- -
-
- -**allowlist:** `typing.Optional[typing.List[str]]` — List of trusted IP addresses that will not have attack protection enforced against them. - -
-
- -
-
- -**mode:** `typing.Optional[BruteForceProtectionModeEnum]` - -
-
- -
-
- -**form_submission_mode:** `typing.Optional[BruteForceProtectionFormSubmissionModeEnum]` - -
-
- -
-
- -**max_attempts:** `typing.Optional[int]` — Maximum number of unsuccessful attempts. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## AttackProtection Captcha -
client.attack_protection.captcha.get() -> GetAttackProtectionCaptchaResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Get the CAPTCHA configuration for your client. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.attack_protection.captcha.get() - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.attack_protection.captcha.update(...) -> UpdateAttackProtectionCaptchaResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Update existing CAPTCHA configuration for your client. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.attack_protection.captcha.update() - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**active_provider_id:** `typing.Optional[AttackProtectionCaptchaProviderId]` - -
-
- -
-
- -**arkose:** `typing.Optional[AttackProtectionUpdateCaptchaArkose]` - -
-
- -
-
- -**auth_challenge:** `typing.Optional[AttackProtectionCaptchaAuthChallengeRequest]` - -
-
- -
-
- -**hcaptcha:** `typing.Optional[AttackProtectionUpdateCaptchaHcaptcha]` - -
-
- -
-
- -**friendly_captcha:** `typing.Optional[AttackProtectionUpdateCaptchaFriendlyCaptcha]` - -
-
- -
-
- -**recaptcha_enterprise:** `typing.Optional[AttackProtectionUpdateCaptchaRecaptchaEnterprise]` - -
-
- -
-
- -**recaptcha_v_2:** `typing.Optional[AttackProtectionUpdateCaptchaRecaptchaV2]` - -
-
- -
-
- -**simple_captcha:** `typing.Optional[AttackProtectionCaptchaSimpleCaptchaResponseContent]` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## AttackProtection PhoneProviderProtection -
client.attack_protection.phone_provider_protection.get() -> GetPhoneProviderProtectionResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Get the phone provider protection configuration for a tenant. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.attack_protection.phone_provider_protection.get() - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.attack_protection.phone_provider_protection.patch(...) -> PatchPhoneProviderProtectionResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Update the phone provider protection configuration for a tenant. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.attack_protection.phone_provider_protection.patch( - type="exponential", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**type:** `PhoneProviderProtectionBackoffStrategyEnum` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## AttackProtection SuspiciousIpThrottling -
client.attack_protection.suspicious_ip_throttling.get() -> GetSuspiciousIpThrottlingSettingsResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve details of the Suspicious IP Throttling configuration of your tenant. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.attack_protection.suspicious_ip_throttling.get() - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.attack_protection.suspicious_ip_throttling.update(...) -> UpdateSuspiciousIpThrottlingSettingsResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Update the details of the Suspicious IP Throttling configuration of your tenant. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.attack_protection.suspicious_ip_throttling.update() - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**enabled:** `typing.Optional[bool]` — Whether or not suspicious IP throttling attack protections are active. - -
-
- -
-
- -**shields:** `typing.Optional[typing.List[SuspiciousIpThrottlingShieldsEnum]]` - -Action to take when a suspicious IP throttling threshold is violated. - Possible values: block, admin_notification. - -
-
- -
-
- -**allowlist:** `typing.Optional[SuspiciousIpThrottlingAllowlist]` - -
-
- -
-
- -**stage:** `typing.Optional[SuspiciousIpThrottlingStage]` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Branding Templates -
client.branding.templates.get_universal_login() -> GetUniversalLoginTemplateResponseContent -
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.branding.templates.get_universal_login() - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.branding.templates.update_universal_login(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Update the Universal Login branding template. - -When `content-type` header is set to `application/json`: - -```json -{ - "template": "{% assign resolved_dir = dir | default: \"auto\" %}{%- auth0:head -%}{%- auth0:widget -%}" -} -``` - -When `content-type` header is set to `text/html`: - -```html - -{% assign resolved_dir = dir | default: "auto" %} - - - {%- auth0:head -%} - - - {%- auth0:widget -%} - - -``` -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.branding.templates.update_universal_login( - request="string", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `UpdateUniversalLoginTemplateRequestContent` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.branding.templates.delete_universal_login() -
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.branding.templates.delete_universal_login() - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Branding Themes -
client.branding.themes.create(...) -> CreateBrandingThemeResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Create branding theme. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0, BrandingThemeBorders, BrandingThemeColors, BrandingThemeFonts, BrandingThemeFontBodyText, BrandingThemeFontButtonsText, BrandingThemeFontInputLabels, BrandingThemeFontLinks, BrandingThemeFontSubtitle, BrandingThemeFontTitle, BrandingThemePageBackground, BrandingThemeWidget -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.branding.themes.create( - borders=BrandingThemeBorders( - button_border_radius=1.1, - button_border_weight=1.1, - buttons_style="pill", - input_border_radius=1.1, - input_border_weight=1.1, - inputs_style="pill", - show_widget_shadow=True, - widget_border_weight=1.1, - widget_corner_radius=1.1, - ), - colors=BrandingThemeColors( - body_text="body_text", - error="error", - header="header", - icons="icons", - input_background="input_background", - input_border="input_border", - input_filled_text="input_filled_text", - input_labels_placeholders="input_labels_placeholders", - links_focused_components="links_focused_components", - primary_button="primary_button", - primary_button_label="primary_button_label", - secondary_button_border="secondary_button_border", - secondary_button_label="secondary_button_label", - success="success", - widget_background="widget_background", - widget_border="widget_border", - ), - fonts=BrandingThemeFonts( - body_text=BrandingThemeFontBodyText( - bold=True, - size=1.1, - ), - buttons_text=BrandingThemeFontButtonsText( - bold=True, - size=1.1, - ), - font_url="font_url", - input_labels=BrandingThemeFontInputLabels( - bold=True, - size=1.1, - ), - links=BrandingThemeFontLinks( - bold=True, - size=1.1, - ), - links_style="normal", - reference_text_size=1.1, - subtitle=BrandingThemeFontSubtitle( - bold=True, - size=1.1, - ), - title=BrandingThemeFontTitle( - bold=True, - size=1.1, - ), - ), - page_background=BrandingThemePageBackground( - background_color="background_color", - background_image_url="background_image_url", - page_layout="center", - ), - widget=BrandingThemeWidget( - header_text_alignment="center", - logo_height=1.1, - logo_position="center", - logo_url="logo_url", - social_buttons_layout="bottom", - ), -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**borders:** `BrandingThemeBorders` - -
-
- -
-
- -**colors:** `BrandingThemeColors` - -
-
- -
-
- -**fonts:** `BrandingThemeFonts` - -
-
- -
-
- -**page_background:** `BrandingThemePageBackground` - -
-
- -
-
- -**widget:** `BrandingThemeWidget` - -
-
- -
-
- -**display_name:** `typing.Optional[str]` — Display Name - -
-
- -
-
- -**identifiers:** `typing.Optional[BrandingThemeIdentifiers]` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.branding.themes.get_default() -> GetBrandingDefaultThemeResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve default branding theme. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.branding.themes.get_default() - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.branding.themes.get(...) -> GetBrandingThemeResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve branding theme. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.branding.themes.get( - theme_id="themeId", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**theme_id:** `str` — The ID of the theme - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.branding.themes.delete(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Delete branding theme. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.branding.themes.delete( - theme_id="themeId", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**theme_id:** `str` — The ID of the theme - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.branding.themes.update(...) -> UpdateBrandingThemeResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Update branding theme. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0, BrandingThemeBorders, BrandingThemeColors, BrandingThemeFonts, BrandingThemeFontBodyText, BrandingThemeFontButtonsText, BrandingThemeFontInputLabels, BrandingThemeFontLinks, BrandingThemeFontSubtitle, BrandingThemeFontTitle, BrandingThemePageBackground, BrandingThemeWidget -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.branding.themes.update( - theme_id="themeId", - borders=BrandingThemeBorders( - button_border_radius=1.1, - button_border_weight=1.1, - buttons_style="pill", - input_border_radius=1.1, - input_border_weight=1.1, - inputs_style="pill", - show_widget_shadow=True, - widget_border_weight=1.1, - widget_corner_radius=1.1, - ), - colors=BrandingThemeColors( - body_text="body_text", - error="error", - header="header", - icons="icons", - input_background="input_background", - input_border="input_border", - input_filled_text="input_filled_text", - input_labels_placeholders="input_labels_placeholders", - links_focused_components="links_focused_components", - primary_button="primary_button", - primary_button_label="primary_button_label", - secondary_button_border="secondary_button_border", - secondary_button_label="secondary_button_label", - success="success", - widget_background="widget_background", - widget_border="widget_border", - ), - fonts=BrandingThemeFonts( - body_text=BrandingThemeFontBodyText( - bold=True, - size=1.1, - ), - buttons_text=BrandingThemeFontButtonsText( - bold=True, - size=1.1, - ), - font_url="font_url", - input_labels=BrandingThemeFontInputLabels( - bold=True, - size=1.1, - ), - links=BrandingThemeFontLinks( - bold=True, - size=1.1, - ), - links_style="normal", - reference_text_size=1.1, - subtitle=BrandingThemeFontSubtitle( - bold=True, - size=1.1, - ), - title=BrandingThemeFontTitle( - bold=True, - size=1.1, - ), - ), - page_background=BrandingThemePageBackground( - background_color="background_color", - background_image_url="background_image_url", - page_layout="center", - ), - widget=BrandingThemeWidget( - header_text_alignment="center", - logo_height=1.1, - logo_position="center", - logo_url="logo_url", - social_buttons_layout="bottom", - ), -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**theme_id:** `str` — The ID of the theme - -
-
- -
-
- -**borders:** `BrandingThemeBorders` - -
-
- -
-
- -**colors:** `BrandingThemeColors` - -
-
- -
-
- -**fonts:** `BrandingThemeFonts` - -
-
- -
-
- -**page_background:** `BrandingThemePageBackground` - -
-
- -
-
- -**widget:** `BrandingThemeWidget` - -
-
- -
-
- -**display_name:** `typing.Optional[str]` — Display Name - -
-
- -
-
- -**identifiers:** `typing.Optional[BrandingThemeIdentifiers]` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Branding Phone Providers -
client.branding.phone.providers.list(...) -> ListBrandingPhoneProvidersResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve a list of [phone providers](https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers) details set for a Tenant. A list of fields to include or exclude may also be specified. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.branding.phone.providers.list( - disabled=True, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**disabled:** `typing.Optional[bool]` — Whether the provider is enabled (false) or disabled (true). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.branding.phone.providers.create(...) -> CreateBrandingPhoneProviderResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Create a [phone provider](https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers). -The `credentials` object requires different properties depending on the phone provider (which is specified using the `name` property). -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0, TwilioProviderCredentials -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.branding.phone.providers.create( - name="twilio", - credentials=TwilioProviderCredentials( - auth_token="auth_token", - ), -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**name:** `PhoneProviderNameEnum` - -
-
- -
-
- -**credentials:** `PhoneProviderCredentials` - -
-
- -
-
- -**disabled:** `typing.Optional[bool]` — Whether the provider is enabled (false) or disabled (true). - -
-
- -
-
- -**configuration:** `typing.Optional[PhoneProviderConfiguration]` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.branding.phone.providers.get(...) -> GetBrandingPhoneProviderResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve [phone provider](https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers) details. A list of fields to include or exclude may also be specified. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.branding.phone.providers.get( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.branding.phone.providers.delete(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Delete the configured phone provider. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.branding.phone.providers.delete( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.branding.phone.providers.update(...) -> UpdateBrandingPhoneProviderResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Update a [phone provider](https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers). -The `credentials` object requires different properties depending on the phone provider (which is specified using the `name` property). -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.branding.phone.providers.update( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**name:** `typing.Optional[PhoneProviderNameEnum]` - -
-
- -
-
- -**disabled:** `typing.Optional[bool]` — Whether the provider is enabled (false) or disabled (true). - -
-
- -
-
- -**credentials:** `typing.Optional[PhoneProviderCredentials]` - -
-
- -
-
- -**configuration:** `typing.Optional[PhoneProviderConfiguration]` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.branding.phone.providers.test(...) -> CreatePhoneProviderSendTestResponseContent -
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.branding.phone.providers.test( - id="id", - to="to", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**to:** `str` — The recipient phone number to receive a given notification. - -
-
- -
-
- -**delivery_method:** `typing.Optional[PhoneProviderDeliveryMethodEnum]` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Branding Phone Templates -
client.branding.phone.templates.list(...) -> ListPhoneTemplatesResponseContent -
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.branding.phone.templates.list( - disabled=True, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**disabled:** `typing.Optional[bool]` — Whether the template is enabled (false) or disabled (true). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.branding.phone.templates.create(...) -> CreatePhoneTemplateResponseContent -
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.branding.phone.templates.create() - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**type:** `typing.Optional[PhoneTemplateNotificationTypeEnum]` - -
-
- -
-
- -**disabled:** `typing.Optional[bool]` — Whether the template is enabled (false) or disabled (true). - -
-
- -
-
- -**content:** `typing.Optional[PhoneTemplateContent]` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.branding.phone.templates.get(...) -> GetPhoneTemplateResponseContent -
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.branding.phone.templates.get( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.branding.phone.templates.delete(...) -
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.branding.phone.templates.delete( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.branding.phone.templates.update(...) -> UpdatePhoneTemplateResponseContent -
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.branding.phone.templates.update( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**content:** `typing.Optional[PartialPhoneTemplateContent]` - -
-
- -
-
- -**disabled:** `typing.Optional[bool]` — Whether the template is enabled (false) or disabled (true). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.branding.phone.templates.reset(...) -> ResetPhoneTemplateResponseContent -
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.branding.phone.templates.reset( - id="id", - request={"key": "value"}, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**request:** `ResetPhoneTemplateRequestContent` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.branding.phone.templates.test(...) -> CreatePhoneTemplateTestNotificationResponseContent -
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.branding.phone.templates.test( - id="id", - to="to", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**to:** `str` — Destination of the testing phone notification - -
-
- -
-
- -**delivery_method:** `typing.Optional[PhoneProviderDeliveryMethodEnum]` — Medium to use to send the notification - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## ClientGrants Organizations -
client.client_grants.organizations.list(...) -> ListClientGrantOrganizationsPaginatedResponseContent -
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.client_grants.organizations.list( - id="id", - include_totals=True, - from_="from", - take=1, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the client grant - -
-
- -
-
- -**include_totals:** `typing.Optional[bool]` — Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - -
-
- -
-
- -**from:** `typing.Optional[str]` — Optional Id from which to start selection. - -
-
- -
-
- -**take:** `typing.Optional[int]` — Number of results per page. Defaults to 50. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Clients Credentials -
client.clients.credentials.list(...) -> typing.List[ClientCredential] -
-
- -#### 📝 Description - -
-
- -
-
- -Get the details of a client credential. - -**Important**: To enable credentials to be used for a client authentication method, set the `client_authentication_methods` property on the client. To enable credentials to be used for JWT-Secured Authorization requests set the `signed_request_object` property on the client. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.clients.credentials.list( - client_id="client_id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**client_id:** `str` — ID of the client. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.clients.credentials.create(...) -> PostClientCredentialResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Create a client credential associated to your application. Credentials can be used to configure Private Key JWT and mTLS authentication methods, as well as for JWT-secured Authorization requests. - -**Public Key** - -Public Key credentials can be used to set up Private Key JWT client authentication and JWT-secured Authorization requests. - -Sample: - -```json -{ - "credential_type": "public_key", - "name": "string", - "pem": "string", - "alg": "RS256", - "parse_expiry_from_cert": false, - "expires_at": "2022-12-31T23:59:59Z" -} -``` - -**Certificate (CA-signed & self-signed)** - -Certificate credentials can be used to set up mTLS client authentication. CA-signed certificates can be configured either with a signed certificate or with just the certificate Subject DN. - -CA-signed Certificate Sample (pem): - -```json -{ - "credential_type": "x509_cert", - "name": "string", - "pem": "string" -} -``` - -CA-signed Certificate Sample (subject_dn): - -```json -{ - "credential_type": "cert_subject_dn", - "name": "string", - "subject_dn": "string" -} -``` - -Self-signed Certificate Sample: - -```json -{ - "credential_type": "cert_subject_dn", - "name": "string", - "pem": "string" -} -``` - -The credential will be created but not yet enabled for use until you set the corresponding properties in the client: - -- To enable the credential for Private Key JWT or mTLS authentication methods, set the `client_authentication_methods` property on the client. For more information, read [Configure Private Key JWT Authentication](https://auth0.com/docs/get-started/applications/configure-private-key-jwt) and [Configure mTLS Authentication](https://auth0.com/docs/get-started/applications/configure-mtls) -- To enable the credential for JWT-secured Authorization requests, set the `signed_request_object`property on the client. For more information, read [Configure JWT-secured Authorization Requests (JAR)](https://auth0.com/docs/get-started/applications/configure-jar) -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.clients.credentials.create( - client_id="client_id", - credential_type="public_key", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**client_id:** `str` — ID of the client. - -
-
- -
-
- -**credential_type:** `ClientCredentialTypeEnum` - -
-
- -
-
- -**name:** `typing.Optional[str]` — Friendly name for a credential. - -
-
- -
-
- -**subject_dn:** `typing.Optional[str]` — Subject Distinguished Name. Mutually exclusive with `pem` property. Applies to `cert_subject_dn` credential type. - -
-
- -
-
- -**pem:** `typing.Optional[str]` — PEM-formatted public key (SPKI and PKCS1) or X509 certificate. Must be JSON escaped. - -
-
- -
-
- -**alg:** `typing.Optional[PublicKeyCredentialAlgorithmEnum]` - -
-
- -
-
- -**parse_expiry_from_cert:** `typing.Optional[bool]` — Parse expiry from x509 certificate. If true, attempts to parse the expiry date from the provided PEM. Applies to `public_key` credential type. - -
-
- -
-
- -**expires_at:** `typing.Optional[datetime.datetime]` — The ISO 8601 formatted date representing the expiration of the credential. If not specified (not recommended), the credential never expires. Applies to `public_key` credential type. - -
-
- -
-
- -**kid:** `typing.Optional[str]` — Optional kid (Key ID), used to uniquely identify the credential. If not specified, a kid value will be auto-generated. The kid header parameter in JWTs sent by your client should match this value. Valid format is [0-9a-zA-Z-_]{10,64} - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.clients.credentials.get(...) -> GetClientCredentialResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Get the details of a client credential. - -**Important**: To enable credentials to be used for a client authentication method, set the `client_authentication_methods` property on the client. To enable credentials to be used for JWT-Secured Authorization requests set the `signed_request_object` property on the client. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.clients.credentials.get( - client_id="client_id", - credential_id="credential_id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**client_id:** `str` — ID of the client. - -
-
- -
-
- -**credential_id:** `str` — ID of the credential. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.clients.credentials.delete(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Delete a client credential you previously created. May be enabled or disabled. For more information, read Client Credential Flow. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.clients.credentials.delete( - client_id="client_id", - credential_id="credential_id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**client_id:** `str` — ID of the client. - -
-
- -
-
- -**credential_id:** `str` — ID of the credential to delete. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.clients.credentials.update(...) -> PatchClientCredentialResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Change a client credential you previously created. May be enabled or disabled. For more information, read Client Credential Flow. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.clients.credentials.update( - client_id="client_id", - credential_id="credential_id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**client_id:** `str` — ID of the client. - -
-
- -
-
- -**credential_id:** `str` — ID of the credential. - -
-
- -
-
- -**expires_at:** `typing.Optional[datetime.datetime]` — The ISO 8601 formatted date representing the expiration of the credential. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Clients Connections -
client.clients.connections.get(...) -> ListClientConnectionsResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve all connections that are enabled for the specified [Application](https://www.auth0.com/docs/get-started/applications), using checkpoint pagination. A list of fields to include or exclude for each connection may also be specified. - -- This endpoint requires the `read:connections` scope and any one of `read:clients` or `read:client_summary`. -- **Note**: The first time you call this endpoint, omit the `from` parameter. If there are more results, a `next` value is included in the response. You can use this for subsequent API calls. When `next` is no longer included in the response, no further results are remaining. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.clients.connections.get( - id="id", - strategy=[ - "ad" - ], - from_="from", - take=1, - fields="fields", - include_fields=True, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the client for which to retrieve enabled connections. - -
-
- -
-
- -**strategy:** `typing.Optional[typing.Union[typing.Optional[ConnectionStrategyEnum], typing.Sequence[typing.Optional[ConnectionStrategyEnum]]]]` — Provide strategies to only retrieve connections with such strategies - -
-
- -
-
- -**from:** `typing.Optional[str]` — Optional Id from which to start selection. - -
-
- -
-
- -**take:** `typing.Optional[int]` — Number of results per page. Defaults to 50. - -
-
- -
-
- -**fields:** `typing.Optional[str]` — A comma separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields - -
-
- -
-
- -**include_fields:** `typing.Optional[bool]` — true if the fields specified are to be included in the result, false otherwise (defaults to true) - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Connections DirectoryProvisioning -
client.connections.directory_provisioning.list(...) -> ListDirectoryProvisioningsResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve a list of directory provisioning configurations of a tenant. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.connections.directory_provisioning.list( - from_="from", - take=1, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**from:** `typing.Optional[str]` — Optional Id from which to start selection. - -
-
- -
-
- -**take:** `typing.Optional[int]` — Number of results per page. Defaults to 50. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.connections.directory_provisioning.get(...) -> GetDirectoryProvisioningResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve the directory provisioning configuration of a connection. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.connections.directory_provisioning.get( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The id of the connection to retrieve its directory provisioning configuration - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.connections.directory_provisioning.create(...) -> CreateDirectoryProvisioningResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Create a directory provisioning configuration for a connection. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0, CreateDirectoryProvisioningRequestContent -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.connections.directory_provisioning.create( - id="id", - request=CreateDirectoryProvisioningRequestContent(), -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The id of the connection to create its directory provisioning configuration - -
-
- -
-
- -**request:** `typing.Optional[CreateDirectoryProvisioningRequestContent]` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.connections.directory_provisioning.delete(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Delete the directory provisioning configuration of a connection. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.connections.directory_provisioning.delete( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The id of the connection to delete its directory provisioning configuration - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.connections.directory_provisioning.update(...) -> UpdateDirectoryProvisioningResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Update the directory provisioning configuration of a connection. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0, UpdateDirectoryProvisioningRequestContent -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.connections.directory_provisioning.update( - id="id", - request=UpdateDirectoryProvisioningRequestContent(), -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The id of the connection to create its directory provisioning configuration - -
-
- -
-
- -**request:** `typing.Optional[UpdateDirectoryProvisioningRequestContent]` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.connections.directory_provisioning.get_default_mapping(...) -> GetDirectoryProvisioningDefaultMappingResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve the directory provisioning default attribute mapping of a connection. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.connections.directory_provisioning.get_default_mapping( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The id of the connection to retrieve its directory provisioning configuration - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.connections.directory_provisioning.list_synchronized_groups(...) -> ListSynchronizedGroupsResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve the configured synchronized groups for a connection directory provisioning configuration. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.connections.directory_provisioning.list_synchronized_groups( - id="id", - from_="from", - take=1, - q="q", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The id of the connection to list synchronized groups for. - -
-
- -
-
- -**from:** `typing.Optional[str]` — Optional Id from which to start selection. - -
-
- -
-
- -**take:** `typing.Optional[int]` — Number of results per page. Defaults to 50. - -
-
- -
-
- -**q:** `typing.Optional[str]` — Query in Lucene query string syntax. Only prefix search on "name" or "email" fields are allowed, with a single wildcard suffix. Operators, modifiers, and groupings are not allowed. Terms are treated as case-insensitive. Example query: "name:engineering*". - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.connections.directory_provisioning.add_synchronized_group_selections(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Add synchronized group selections to a directory provisioning configuration. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0, SynchronizedGroupPayload -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.connections.directory_provisioning.add_synchronized_group_selections( - id="id", - groups=[ - SynchronizedGroupPayload( - id="id", - ) - ], -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The id of the connection to add synchronized groups to - -
-
- -
-
- -**groups:** `typing.List[SynchronizedGroupPayload]` — Array of Google Workspace Directory group objects to synchronize. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.connections.directory_provisioning.set(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Create or replace the selected groups for a connection directory provisioning configuration. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0, SynchronizedGroupPayload -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.connections.directory_provisioning.set( - id="id", - groups=[ - SynchronizedGroupPayload( - id="id", - ) - ], -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The id of the connection to create or replace synchronized groups for - -
-
- -
-
- -**groups:** `typing.List[SynchronizedGroupPayload]` — Array of Google Workspace Directory group objects to synchronize. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.connections.directory_provisioning.delete_synchronized_group_selections(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Delete synchronized group selections for a directory provisioning configuration -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0, SynchronizedGroupSelectionId -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.connections.directory_provisioning.delete_synchronized_group_selections( - id="id", - groups=[ - SynchronizedGroupSelectionId( - id="id", - ) - ], -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The id of the connection to delete synchronized group selections for - -
-
- -
-
- -**groups:** `typing.List[SynchronizedGroupSelectionId]` — Array of groups to remove from the selection set. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Connections ScimConfiguration -
client.connections.scim_configuration.list(...) -> ListScimConfigurationsResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve a list of SCIM configurations of a tenant. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.connections.scim_configuration.list( - from_="from", - take=1, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**from:** `typing.Optional[str]` — Optional Id from which to start selection. - -
-
- -
-
- -**take:** `typing.Optional[int]` — Number of results per page. Defaults to 50. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.connections.scim_configuration.get(...) -> GetScimConfigurationResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieves a scim configuration by its `connectionId`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.connections.scim_configuration.get( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The id of the connection to retrieve its SCIM configuration - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.connections.scim_configuration.create(...) -> CreateScimConfigurationResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Create a scim configuration for a connection. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0, CreateScimConfigurationRequestContent -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.connections.scim_configuration.create( - id="id", - request=CreateScimConfigurationRequestContent(), -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The id of the connection to create its SCIM configuration - -
-
- -
-
- -**request:** `typing.Optional[CreateScimConfigurationRequestContent]` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.connections.scim_configuration.delete(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Deletes a scim configuration by its `connectionId`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.connections.scim_configuration.delete( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The id of the connection to delete its SCIM configuration - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.connections.scim_configuration.update(...) -> UpdateScimConfigurationResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Update a scim configuration by its `connectionId`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0, ScimMappingItem -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.connections.scim_configuration.update( - id="id", - user_id_attribute="user_id_attribute", - mapping=[ - ScimMappingItem() - ], -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The id of the connection to update its SCIM configuration - -
-
- -
-
- -**user_id_attribute:** `str` — User ID attribute for generating unique user ids - -
-
- -
-
- -**mapping:** `typing.List[ScimMappingItem]` — The mapping between auth0 and SCIM - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.connections.scim_configuration.get_default_mapping(...) -> GetScimConfigurationDefaultMappingResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieves a scim configuration's default mapping by its `connectionId`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.connections.scim_configuration.get_default_mapping( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The id of the connection to retrieve its default SCIM mapping - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Connections Clients -
client.connections.clients.get(...) -> GetConnectionEnabledClientsResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve all clients that have the specified [connection](https://auth0.com/docs/authenticate/identity-providers) enabled. - -**Note**: The first time you call this endpoint, omit the `from` parameter. If there are more results, a `next` value is included in the response. You can use this for subsequent API calls. When `next` is no longer included in the response, no further results are remaining. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.connections.clients.get( - id="id", - take=1, - from_="from", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The id of the connection for which enabled clients are to be retrieved - -
-
- -
-
- -**take:** `typing.Optional[int]` — Number of results per page. Defaults to 50. - -
-
- -
-
- -**from:** `typing.Optional[str]` — Optional Id from which to start selection. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.connections.clients.update(...) -
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0, UpdateEnabledClientConnectionsRequestContentItem -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.connections.clients.update( - id="id", - request=[ - UpdateEnabledClientConnectionsRequestContentItem( - client_id="client_id", - status=True, - ) - ], -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The id of the connection to modify - -
-
- -
-
- -**request:** `UpdateEnabledClientConnectionsRequestContent` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Connections Keys -
client.connections.keys.get(...) -> typing.List[ConnectionKey] -
-
- -#### 📝 Description - -
-
- -
-
- -Gets the connection keys for the Okta, OIDC, or SAML (samlp) connection strategy. The response includes both signing keys and encryption keys, told apart by `key_use`. Encryption keys apply only to OIDC and Okta connections. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.connections.keys.get( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the connection - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.connections.keys.create(...) -> PostConnectionsKeysResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Provision initial connection keys for Okta, OIDC, or SAML (samlp) connection strategies. This endpoint allows you to create keys before configuring the connection to use Private Key JWT authentication or encrypted ID tokens, enabling zero-downtime transitions. - -Set `key_use` to `signing` (default) to provision signing keys, optionally choosing `signing_alg`, or to `encryption` to provision encryption keys, optionally choosing `encryption_alg`. `signing_alg` and `encryption_alg` each apply only to their own key use. Encryption keys and encrypted ID tokens apply only to OIDC and Okta connections. The response lists all of the connection's keys. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0, PostConnectionKeysRequestContent -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.connections.keys.create( - id="id", - request=PostConnectionKeysRequestContent(), -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the connection - -
-
- -
-
- -**request:** `typing.Optional[PostConnectionKeysRequestContent]` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.connections.keys.rotate(...) -> RotateConnectionsKeysResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Rotates the connection keys for the Okta, OIDC, or SAML (samlp) connection strategies. - -Set `key_use` to `signing` (default) to rotate the signing key, optionally choosing `signing_alg`, or to `encryption` to rotate the encryption key, optionally choosing `encryption_alg`. Rotating signing keys requires the connection to be configured to use JWT Client Authentication. Rotating encryption keys requires the connection to be configured to use encrypted ID tokens (`id_token_encrypted_response_alg` set), which applies only to OIDC and Okta connections. When `encryption_alg` is omitted, the new encryption key uses `id_token_encrypted_response_alg`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0, RotateConnectionKeysRequestContent -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.connections.keys.rotate( - id="id", - request=RotateConnectionKeysRequestContent(), -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the connection - -
-
- -
-
- -**request:** `typing.Optional[RotateConnectionKeysRequestContent]` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Connections Users -
client.connections.users.delete_by_email(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Deletes a specified connection user by its email (you cannot delete all users from specific connection). Currently, only Database Connections are supported. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.connections.users.delete_by_email( - id="id", - email="email", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The id of the connection (currently only database connections are supported) - -
-
- -
-
- -**email:** `str` — The email of the user to delete - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Connections DirectoryProvisioning Synchronizations -
client.connections.directory_provisioning.synchronizations.create(...) -> CreateDirectorySynchronizationResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Request an on-demand synchronization of the directory. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.connections.directory_provisioning.synchronizations.create( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The id of the connection to trigger synchronization for - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Connections ScimConfiguration Tokens -
client.connections.scim_configuration.tokens.get(...) -> GetScimTokensResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieves all scim tokens by its connection `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.connections.scim_configuration.tokens.get( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The id of the connection to retrieve its SCIM configuration - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.connections.scim_configuration.tokens.create(...) -> CreateScimTokenResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Create a scim token for a scim client. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.connections.scim_configuration.tokens.create( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The id of the connection to create its SCIM token - -
-
- -
-
- -**scopes:** `typing.Optional[typing.List[str]]` — The scopes of the scim token - -
-
- -
-
- -**token_lifetime:** `typing.Optional[int]` — Lifetime of the token in seconds. Must be greater than 900 - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.connections.scim_configuration.tokens.delete(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Deletes a scim token by its connection `id` and `tokenId`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.connections.scim_configuration.tokens.delete( - id="id", - token_id="tokenId", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The connection id that owns the SCIM token to delete - -
-
- -
-
- -**token_id:** `str` — The id of the scim token to delete - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Emails Provider -
client.emails.provider.get(...) -> GetEmailProviderResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve details of the [email provider configuration](https://auth0.com/docs/customize/email/smtp-email-providers) in your tenant. A list of fields to include or exclude may also be specified. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.emails.provider.get( - fields="fields", - include_fields=True, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**fields:** `typing.Optional[str]` — Comma-separated list of fields to include or exclude (dependent upon include_fields) from the result. Leave empty to retrieve `name` and `enabled`. Additional fields available include `credentials`, `default_from_address`, and `settings`. - -
-
- -
-
- -**include_fields:** `typing.Optional[bool]` — Whether specified fields are to be included (true) or excluded (false). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.emails.provider.create(...) -> CreateEmailProviderResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Create an [email provider](https://auth0.com/docs/email/providers). The `credentials` object -requires different properties depending on the email provider (which is specified using the `name` property): - -- `mandrill` requires `api_key` -- `sendgrid` requires `api_key` -- `sparkpost` requires `api_key`. Optionally, set `region` to `eu` to use - the SparkPost service hosted in Western Europe; set to `null` to use the SparkPost service hosted in - North America. `eu` or `null` are the only valid values for `region`. -- `mailgun` requires `api_key` and `domain`. Optionally, set `region` to - `eu` to use the Mailgun service hosted in Europe; set to `null` otherwise. `eu` or - `null` are the only valid values for `region`. -- `ses` requires `accessKeyId`, `secretAccessKey`, and `region` -- `smtp` requires `smtp_host`, `smtp_port`, `smtp_user`, and - `smtp_pass` - -Depending on the type of provider it is possible to specify `settings` object with different configuration -options, which will be used when sending an email: - -- `smtp` provider, `settings` may contain `headers` object. - - When using AWS SES SMTP host, you may provide a name of configuration set in - `X-SES-Configuration-Set` header. Value must be a string. - - When using Sparkpost host, you may provide value for - `X-MSYS_API` header. Value must be an object. -- For `ses` provider, `settings` may contain `message` object, where you can provide - a name of configuration set in `configuration_set_name` property. Value must be a string. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.emails.provider.create( - name="mailgun", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**name:** `EmailProviderNameEnum` - -
-
- -
-
- -**enabled:** `typing.Optional[bool]` — Whether the provider is enabled (true) or disabled (false). - -
-
- -
-
- -**default_from_address:** `typing.Optional[str]` — Email address to use as "from" when no other address specified. - -
-
- -
-
- -**credentials:** `typing.Optional[EmailProviderCredentialsSchema]` - -
-
- -
-
- -**settings:** `typing.Optional[EmailSpecificProviderSettingsWithAdditionalProperties]` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.emails.provider.delete() -
-
- -#### 📝 Description - -
-
- -
-
- -Delete the email provider. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.emails.provider.delete() - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.emails.provider.update(...) -> UpdateEmailProviderResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Update an [email provider](https://auth0.com/docs/email/providers). The `credentials` object -requires different properties depending on the email provider (which is specified using the `name` property): - -- `mandrill` requires `api_key` -- `sendgrid` requires `api_key` -- `sparkpost` requires `api_key`. Optionally, set `region` to `eu` to use - the SparkPost service hosted in Western Europe; set to `null` to use the SparkPost service hosted in - North America. `eu` or `null` are the only valid values for `region`. -- `mailgun` requires `api_key` and `domain`. Optionally, set `region` to - `eu` to use the Mailgun service hosted in Europe; set to `null` otherwise. `eu` or - `null` are the only valid values for `region`. -- `ses` requires `accessKeyId`, `secretAccessKey`, and `region` -- `smtp` requires `smtp_host`, `smtp_port`, `smtp_user`, and - `smtp_pass` - -Depending on the type of provider it is possible to specify `settings` object with different configuration -options, which will be used when sending an email: - -- `smtp` provider, `settings` may contain `headers` object. - - When using AWS SES SMTP host, you may provide a name of configuration set in - `X-SES-Configuration-Set` header. Value must be a string. - - When using Sparkpost host, you may provide value for - `X-MSYS_API` header. Value must be an object. - - For `ses` provider, `settings` may contain `message` object, where you can provide - a name of configuration set in `configuration_set_name` property. Value must be a string. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.emails.provider.update() - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**name:** `typing.Optional[EmailProviderNameEnum]` - -
-
- -
-
- -**enabled:** `typing.Optional[bool]` — Whether the provider is enabled (true) or disabled (false). - -
-
- -
-
- -**default_from_address:** `typing.Optional[str]` — Email address to use as "from" when no other address specified. - -
-
- -
-
- -**credentials:** `typing.Optional[EmailProviderCredentialsSchema]` - -
-
- -
-
- -**settings:** `typing.Optional[EmailSpecificProviderSettingsWithAdditionalProperties]` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## EventStreams Deliveries -
client.event_streams.deliveries.list(...) -> ListEventStreamDeliveriesResponseContent -
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.event_streams.deliveries.list( - id="id", - statuses="statuses", - event_types="event_types", - date_from="date_from", - date_to="date_to", - from_="from", - take=1, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — Unique identifier for the event stream. - -
-
- -
-
- -**statuses:** `typing.Optional[str]` — Comma-separated list of statuses by which to filter - -
-
- -
-
- -**event_types:** `typing.Optional[str]` — Comma-separated list of event types by which to filter - -
-
- -
-
- -**date_from:** `typing.Optional[str]` — An RFC-3339 date-time for redelivery start, inclusive. Does not allow sub-second precision. - -
-
- -
-
- -**date_to:** `typing.Optional[str]` — An RFC-3339 date-time for redelivery end, exclusive. Does not allow sub-second precision. - -
-
- -
-
- -**from:** `typing.Optional[str]` — Optional Id from which to start selection. - -
-
- -
-
- -**take:** `typing.Optional[int]` — Number of results per page. Defaults to 50. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.event_streams.deliveries.get_history(...) -> GetEventStreamDeliveryHistoryResponseContent -
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.event_streams.deliveries.get_history( - id="id", - event_id="event_id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — Unique identifier for the event stream. - -
-
- -
-
- -**event_id:** `str` — Unique identifier for the event - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## EventStreams Redeliveries -
client.event_streams.redeliveries.create(...) -> CreateEventStreamRedeliveryResponseContent -
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.event_streams.redeliveries.create( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — Unique identifier for the event stream. - -
-
- -
-
- -**date_from:** `typing.Optional[datetime.datetime]` — An RFC-3339 date-time for redelivery start, inclusive. Does not allow sub-second precision. - -
-
- -
-
- -**date_to:** `typing.Optional[datetime.datetime]` — An RFC-3339 date-time for redelivery end, exclusive. Does not allow sub-second precision. - -
-
- -
-
- -**statuses:** `typing.Optional[typing.List[EventStreamDeliveryStatusEnum]]` — Filter by status - -
-
- -
-
- -**event_types:** `typing.Optional[typing.List[EventStreamEventTypeEnum]]` — Filter by event type - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.event_streams.redeliveries.create_by_id(...) -
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.event_streams.redeliveries.create_by_id( - id="id", - event_id="event_id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — Unique identifier for the event stream. - -
-
- -
-
- -**event_id:** `str` — Unique identifier for the event - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Experimentation Experiments -
client.experimentation.experiments.list(...) -> ListExperimentsResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve a paginated list of experiments for the tenant, with optional filters. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.experimentation.experiments.list( - from_="from", - take=1, - status="draft", - authentication_flow="authentication_flow", - feature_flag_id="feature_flag_id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**from:** `typing.Optional[str]` — Optional Id from which to start selection. - -
-
- -
-
- -**take:** `typing.Optional[int]` — Number of experiments to return per page. Defaults to 25, maximum 50. - -
-
- -
-
- -**status:** `typing.Optional[ExperimentStatusEnum]` — Filter by status. Exact match. - -
-
- -
-
- -**authentication_flow:** `typing.Optional[str]` — Filter by authentication flow. Exact match. - -
-
- -
-
- -**feature_flag_id:** `typing.Optional[str]` — Filter by feature flag ID. Exact match. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.experimentation.experiments.create(...) -> CreateExperimentResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Create a new experiment for A/B testing. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.experimentation.experiments.create( - name="name", - feature_flag_id="feature_flag_id", - authentication_flow="authentication", - allocation_strategy="percentage", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**name:** `str` — A human-readable name for the experiment - -
-
- -
-
- -**feature_flag_id:** `str` — The ID of the feature flag this experiment is based on - -
-
- -
-
- -**authentication_flow:** `AuthenticationFlowEnum` - -
-
- -
-
- -**allocation_strategy:** `AllocationStrategyEnum` — The traffic allocation strategy for this experiment - -
-
- -
-
- -**description:** `typing.Optional[str]` — A description of the experiment - -
-
- -
-
- -**default_config:** `typing.Optional[DefaultConfigEnum]` — Applies only to Auth0-managed flags. Controls where non-overridden config keys resolve from: 'tenant' inherits the tenant's live config so the experiment overlays only its changes, 'flag' uses the flag's frozen defaults for a complete config. Optional; defaults to 'tenant' when omitted. Rejected for customer-defined flags. - -
-
- -
-
- -**allocations:** `typing.Optional[typing.List[AllocationRequestItem]]` — Traffic allocations mapping variations to weights or segments - -
-
- -
-
- -**levels:** `typing.Optional[typing.List[int]]` — Ramp experiment levels configuration. A strictly-increasing sequence of exposure percentages, each an integer in [0, 100]. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.experimentation.experiments.get(...) -> GetExperimentResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve a single experiment with its allocations by ID. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.experimentation.experiments.get( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The ID of the experiment to retrieve. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.experimentation.experiments.delete(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Permanently delete an experiment and its allocations by ID. Active experiments cannot be deleted; pause or complete first. Idempotent: returns 204 even if the experiment does not exist. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.experimentation.experiments.delete( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The ID of the experiment to delete. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.experimentation.experiments.update(...) -> UpdateExperimentResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Partially update an experiment by ID. Only provided fields are updated. Providing allocations replaces the entire allocations set. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.experimentation.experiments.update( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The ID of the experiment to update. - -
-
- -
-
- -**name:** `typing.Optional[str]` — A human-readable name for the experiment - -
-
- -
-
- -**description:** `typing.Optional[str]` — A description of the experiment - -
-
- -
-
- -**authentication_flow:** `typing.Optional[AuthenticationFlowEnum]` — Specifies the target authentication flow for this experiment. This field can only be modified on draft experiments. Must be one of: authentication, mfa_enrollment, mfa_challenge, password_reset, passkey_enrollment, or all. Note that the all value targets every flow at once, but requires that this is the only active experiment. - -
-
- -
-
- -**allocations:** `typing.Optional[typing.List[AllocationRequestItem]]` — Replaces all traffic allocations. Cannot be modified while the experiment is active. - -
-
- -
-
- -**default_config:** `typing.Optional[DefaultConfigEnum]` — Applies only to Auth0-managed flags. Controls where non-overridden config keys resolve from: 'tenant' inherits the tenant's live config, 'flag' uses the flag's frozen defaults. Can only be modified on draft experiments. Rejected for customer-defined flags. - -
-
- -
-
- -**levels:** `typing.Optional[typing.List[int]]` — Ramp experiment levels configuration. A strictly-increasing sequence of exposure percentages, each an integer in [0, 100]. Can only be modified on draft experiments. - -
-
- -
-
- -**status:** `typing.Optional[ExperimentTransitionStatusEnum]` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.experimentation.experiments.advance_ramp(...) -> AdvanceRampResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Increments the current ramp index to the requested target level. Up-only: the target must be the immediate next level in the schedule. Idempotent: calling with the current level returns success without writing anything. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.experimentation.experiments.advance_ramp( - id="id", - target_level=1, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The ID of the experiment to advance. - -
-
- -
-
- -**target_level:** `int` — The target percentage level from the experiment schedule. Must be the immediate next level. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.experimentation.experiments.validate(...) -> ValidateExperimentResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Checks whether an experiment is ready to be activated. Returns is_valid boolean and an errors array describing any blockers. Read-only; no state is modified. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.experimentation.experiments.validate( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The ID of the experiment to validate. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Experimentation FeatureFlags -
client.experimentation.feature_flags.list(...) -> ListFeatureFlagsResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve a paginated list of feature flags for the tenant. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.experimentation.feature_flags.list( - from_="from", - take=1, - type="auth0", - status="draft", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**from:** `typing.Optional[str]` — Optional Id from which to start selection. - -
-
- -
-
- -**take:** `typing.Optional[int]` — Number of feature flags to return per page. Defaults to 25, maximum 50. - -
-
- -
-
- -**type:** `typing.Optional[FeatureFlagTypeEnum]` — Filter by type. Exact match. - -
-
- -
-
- -**status:** `typing.Optional[FeatureFlagStatusEnum]` — Filter by status. Exact match. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.experimentation.feature_flags.create(...) -> CreateFeatureFlagResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Create a new feature flag with parameters for use in experiments. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.experimentation.feature_flags.create( - name="name", - parameters={}, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**name:** `str` — A human-readable name for the feature flag - -
-
- -
-
- -**parameters:** `CreateFeatureFlagParameters` - -
-
- -
-
- -**description:** `typing.Optional[str]` — A description of what this feature flag controls - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.experimentation.feature_flags.get(...) -> GetFeatureFlagResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve a single feature flag by its ID. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.experimentation.feature_flags.get( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The ID of the feature flag to retrieve. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.experimentation.feature_flags.delete(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Delete a feature flag by ID. Idempotent: returns 204 even if flag does not exist. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.experimentation.feature_flags.delete( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The ID of the feature flag to delete. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.experimentation.feature_flags.update(...) -> UpdateFeatureFlagResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Partially update a feature flag by ID. Only provided fields are updated. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.experimentation.feature_flags.update( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The ID of the feature flag to update. - -
-
- -
-
- -**name:** `typing.Optional[str]` — A human-readable name for the feature flag - -
-
- -
-
- -**description:** `typing.Optional[str]` — A description of what this feature flag controls - -
-
- -
-
- -**parameters:** `typing.Optional[UpdateFeatureFlagParameters]` - -
-
- -
-
- -**status:** `typing.Optional[FeatureFlagStatusEnum]` — Target lifecycle status (draft → active, draft → archived, active → archived). Activating a flag requires at least 2 variations. When combined with field edits, the edits and the transition are applied together; if the transition is rejected, no edits are applied. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Experimentation Segments -
client.experimentation.segments.list(...) -> ListSegmentsResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve a paginated list of segments for the tenant. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.experimentation.segments.list( - from_="from", - take=1, - type="auth0", - status="active", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**from:** `typing.Optional[str]` — Optional Id from which to start selection. - -
-
- -
-
- -**take:** `typing.Optional[int]` — Number of segments to return per page. Defaults to 25, maximum 50. - -
-
- -
-
- -**type:** `typing.Optional[SegmentTypeFilterEnum]` — Filter by type. Exact match. - -
-
- -
-
- -**status:** `typing.Optional[SegmentStatusEnum]` — Filter by status. Exact match. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.experimentation.segments.create(...) -> CreateSegmentResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Create a new segment with rule-based membership criteria for use in experiments. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0, SegmentRule -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.experimentation.segments.create( - name="name", - rules=[ - SegmentRule() - ], -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**name:** `str` — A human-readable name for the segment - -
-
- -
-
- -**rules:** `typing.List[SegmentRule]` — An ordered list of rules. A segment matches if any rule matches. Each rule is limited to 4KB and the whole segment to 10KB (serialized). - -
-
- -
-
- -**description:** `typing.Optional[str]` — A description of the segment - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.experimentation.segments.get(...) -> GetSegmentResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve a single segment by its ID. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.experimentation.segments.get( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The ID of the segment to retrieve. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.experimentation.segments.delete(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Delete a segment by ID. Idempotent: returns 204 even if segment does not exist. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.experimentation.segments.delete( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The ID of the segment to delete. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.experimentation.segments.update(...) -> UpdateSegmentResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Partially update a segment by ID. Only provided fields are updated. Sending rules replaces the entire rules array. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.experimentation.segments.update( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The ID of the segment to update. - -
-
- -
-
- -**name:** `typing.Optional[str]` — A human-readable name for the segment - -
-
- -
-
- -**description:** `typing.Optional[str]` — A description of the segment - -
-
- -
-
- -**rules:** `typing.Optional[typing.List[SegmentRule]]` — Replaces the entire rules array. Each rule is limited to 4KB and the whole segment to 10KB (serialized). - -
-
- -
-
- -**status:** `typing.Optional[SegmentStatusEnum]` — Target lifecycle status. Archiving removes the segment from the active pool and is terminal (an archived segment cannot return to active). When combined with field edits, the edits apply first and the transition follows. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Experimentation FeatureFlags Variations -
client.experimentation.feature_flags.variations.list(...) -> ListVariationsResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve all variations defined for a specific feature flag. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.experimentation.feature_flags.variations.list( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The ID of the parent feature flag. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.experimentation.feature_flags.variations.create(...) -> CreateVariationResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Create a new variation with parameter overrides for a specific feature flag. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.experimentation.feature_flags.variations.create( - id="id", - name="name", - overrides={ - "key": "value" - }, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The ID of the parent feature flag. - -
-
- -
-
- -**name:** `str` — A human-readable name for the variation - -
-
- -
-
- -**overrides:** `VariationOverridesMap` — Configuration overrides for this variation; keys must exist in the parent flag parameters. Empty {} is the baseline (control) variation that overrides nothing. - -
-
- -
-
- -**description:** `typing.Optional[str]` — A description of what this variation controls - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.experimentation.feature_flags.variations.get(...) -> GetVariationResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve a single variation by its ID. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.experimentation.feature_flags.variations.get( - id="id", - vid="vid", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The ID of the parent feature flag. - -
-
- -
-
- -**vid:** `str` — The ID of the variation to retrieve. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.experimentation.feature_flags.variations.delete(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Delete a variation by ID. Returns 204 if the variation does not exist. Returns 404 if the parent feature flag does not exist. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.experimentation.feature_flags.variations.delete( - id="id", - vid="vid", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The ID of the parent feature flag. - -
-
- -
-
- -**vid:** `str` — The ID of the variation to delete. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.experimentation.feature_flags.variations.update(...) -> UpdateVariationResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Partially update a variation by ID. Only provided fields are updated. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.experimentation.feature_flags.variations.update( - id="id", - vid="vid", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The ID of the parent feature flag. - -
-
- -
-
- -**vid:** `str` — The ID of the variation to update. - -
-
- -
-
- -**name:** `typing.Optional[str]` — A human-readable name for the variation - -
-
- -
-
- -**description:** `typing.Optional[str]` — A description of what this variation controls - -
-
- -
-
- -**overrides:** `typing.Optional[UpdateVariationOverridesMap]` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Flows Executions -
client.flows.executions.list(...) -> ListFlowExecutionsPaginatedResponseContent -
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.flows.executions.list( - flow_id="flow_id", - include_totals=True, - from_="from", - take=1, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**flow_id:** `str` — Flow id - -
-
- -
-
- -**include_totals:** `typing.Optional[bool]` — Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - -
-
- -
-
- -**from:** `typing.Optional[str]` — Optional Id from which to start selection. - -
-
- -
-
- -**take:** `typing.Optional[int]` — Number of results per page. Defaults to 50. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.flows.executions.get(...) -> GetFlowExecutionResponseContent -
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.flows.executions.get( - flow_id="flow_id", - execution_id="execution_id", - hydrate=[ - "debug" - ], -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**flow_id:** `str` — Flow id - -
-
- -
-
- -**execution_id:** `str` — Flow execution id - -
-
- -
-
- -**hydrate:** `typing.Optional[typing.Union[typing.Optional[GetFlowExecutionRequestParametersHydrateEnum], typing.Sequence[typing.Optional[GetFlowExecutionRequestParametersHydrateEnum]]]]` — Hydration param - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.flows.executions.delete(...) -
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.flows.executions.delete( - flow_id="flow_id", - execution_id="execution_id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**flow_id:** `str` — Flows id - -
-
- -
-
- -**execution_id:** `str` — Flow execution identifier - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Flows Vault Connections -
client.flows.vault.connections.list(...) -> ListFlowsVaultConnectionsOffsetPaginatedResponseContent -
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.flows.vault.connections.list( - page=1, - per_page=1, - include_totals=True, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**page:** `typing.Optional[int]` — Page index of the results to return. First page is 0. - -
-
- -
-
- -**per_page:** `typing.Optional[int]` — Number of results per page. Defaults to 50. - -
-
- -
-
- -**include_totals:** `typing.Optional[bool]` — Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.flows.vault.connections.create(...) -> CreateFlowsVaultConnectionResponseContent -
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0, CreateFlowsVaultConnectionActivecampaignApiKey, FlowsVaultConnectioSetupApiKeyWithBaseUrl -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.flows.vault.connections.create( - request=CreateFlowsVaultConnectionActivecampaignApiKey( - name="name", - app_id="ACTIVECAMPAIGN", - setup=FlowsVaultConnectioSetupApiKeyWithBaseUrl( - type="API_KEY", - api_key="api_key", - base_url="base_url", - ), - ), -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `CreateFlowsVaultConnectionRequestContent` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.flows.vault.connections.get(...) -> GetFlowsVaultConnectionResponseContent -
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.flows.vault.connections.get( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — Flows Vault connection ID - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.flows.vault.connections.delete(...) -
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.flows.vault.connections.delete( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — Vault connection id - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.flows.vault.connections.update(...) -> UpdateFlowsVaultConnectionResponseContent -
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.flows.vault.connections.update( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — Flows Vault connection ID - -
-
- -
-
- -**name:** `typing.Optional[str]` — Flows Vault Connection name. - -
-
- -
-
- -**setup:** `typing.Optional[UpdateFlowsVaultConnectionSetup]` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Groups Members -
client.groups.members.get(...) -> GetGroupMembersResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -List all users that are a member of this group. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.groups.members.get( - id="id", - fields="fields", - include_fields=True, - from_="from", - take=1, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — Unique identifier for the group (service-generated). - -
-
- -
-
- -**fields:** `typing.Optional[str]` — A comma separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields - -
-
- -
-
- -**include_fields:** `typing.Optional[bool]` — Whether specified fields are to be included (true) or excluded (false). - -
-
- -
-
- -**from:** `typing.Optional[str]` — Optional Id from which to start selection. - -
-
- -
-
- -**take:** `typing.Optional[int]` — Number of results per page. Defaults to 50. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Groups Roles -
client.groups.roles.list(...) -> ListGroupRolesResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Lists the [roles](https://auth0.com/docs/manage-users/access-control/rbac) assigned to a group. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.groups.roles.list( - id="id", - from_="from", - take=1, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — Unique identifier for the group (service-generated). - -
-
- -
-
- -**from:** `typing.Optional[str]` — Optional Id from which to start selection. - -
-
- -
-
- -**take:** `typing.Optional[int]` — Number of results per page. Defaults to 50. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.groups.roles.create(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Assign one or more [roles](https://auth0.com/docs/manage-users/access-control/rbac) to a specified group. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.groups.roles.create( - id="id", - roles=[ - "roles" - ], -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — Unique identifier for the group (service-generated). - -
-
- -
-
- -**roles:** `typing.List[str]` — Array of role IDs to assign to the group. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.groups.roles.delete(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Unassign one or more [roles](https://auth0.com/docs/manage-users/access-control/rbac) from a specified group. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.groups.roles.delete( - id="id", - roles=[ - "roles" - ], -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — Unique identifier for the group (service-generated). - -
-
- -
-
- -**roles:** `typing.List[str]` — Array of role IDs to remove from the group. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Guardian Enrollments -
client.guardian.enrollments.create_ticket(...) -> CreateGuardianEnrollmentTicketResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Create a [multi-factor authentication (MFA) enrollment ticket](https://auth0.com/docs/secure/multi-factor-authentication/auth0-guardian/create-custom-enrollment-tickets), and optionally send an email with the created ticket to a given user. Enrollment tickets can specify which factor users must enroll with or allow existing MFA users to enroll in additional factors. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.guardian.enrollments.create_ticket( - user_id="user_id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**user_id:** `str` — user_id for the enrollment ticket - -
-
- -
-
- -**email:** `typing.Optional[str]` — alternate email to which the enrollment email will be sent. Optional - by default, the email will be sent to the user's default address - -
-
- -
-
- -**send_mail:** `typing.Optional[bool]` — Send an email to the user to start the enrollment - -
-
- -
-
- -**email_locale:** `typing.Optional[str]` — Optional. Specify the locale of the enrollment email. Used with send_email. - -
-
- -
-
- -**factor:** `typing.Optional[GuardianEnrollmentFactorEnum]` - -
-
- -
-
- -**allow_multiple_enrollments:** `typing.Optional[bool]` — Optional. Allows a user who has previously enrolled in MFA to enroll with additional factors.
Note: Parameter can only be used with Universal Login; it cannot be used with Classic Login or custom MFA pages. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.guardian.enrollments.get(...) -> GetGuardianEnrollmentResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve details, such as status and type, for a specific multi-factor authentication enrollment registered to a user account. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.guardian.enrollments.get( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the enrollment to be retrieve. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.guardian.enrollments.delete(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Remove a specific multi-factor authentication (MFA) enrollment from a user's account. This allows the user to re-enroll with MFA. For more information, review [Reset User Multi-Factor Authentication and Recovery Codes](https://auth0.com/docs/secure/multi-factor-authentication/reset-user-mfa). -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.guardian.enrollments.delete( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the enrollment to be deleted. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Guardian Factors -
client.guardian.factors.list() -> typing.List[GuardianFactor] -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve details of all multi-factor authentication factors associated with your tenant. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.guardian.factors.list() - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.guardian.factors.set(...) -> SetGuardianFactorResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Update the status (i.e., enabled or disabled) of a specific multi-factor authentication factor. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.guardian.factors.set( - name="push-notification", - enabled=True, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**name:** `GuardianFactorNameEnum` — Factor name. Can be `sms`, `push-notification`, `email`, `duo`, `otp`, `webauthn-roaming`, `webauthn-platform`, `recovery-code`, or `passkey`. - -
-
- -
-
- -**enabled:** `bool` — Whether this factor is enabled (true) or disabled (false). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Guardian Policies -
client.guardian.policies.list() -> ListGuardianPoliciesResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve the [multi-factor authentication (MFA) policies](https://auth0.com/docs/secure/multi-factor-authentication/enable-mfa) configured for your tenant. - -The following policies are supported: - -- `all-applications` policy prompts with MFA for all logins. -- `confidence-score` policy prompts with MFA only for low confidence logins. - -**Note**: The `confidence-score` policy is part of the [Adaptive MFA feature](https://auth0.com/docs/secure/multi-factor-authentication/adaptive-mfa). Adaptive MFA requires an add-on for the Enterprise plan; review [Auth0 Pricing](https://auth0.com/pricing) for more details. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.guardian.policies.list() - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.guardian.policies.set(...) -> SetGuardianPoliciesResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Set [multi-factor authentication (MFA) policies](https://auth0.com/docs/secure/multi-factor-authentication/enable-mfa) for your tenant. - -The following policies are supported: - -- `all-applications` policy prompts with MFA for all logins. -- `confidence-score` policy prompts with MFA only for low confidence logins. - -**Note**: The `confidence-score` policy is part of the [Adaptive MFA feature](https://auth0.com/docs/secure/multi-factor-authentication/adaptive-mfa). Adaptive MFA requires an add-on for the Enterprise plan; review [Auth0 Pricing](https://auth0.com/pricing) for more details. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.guardian.policies.set( - request=[ - "all-applications" - ], -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `SetGuardianPoliciesRequestContent` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Guardian Factors Email -
client.guardian.factors.email.get() -> GetEmailFactorSettingsResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -TODO: Link this endpoint to relevant documentation when available. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.guardian.factors.email.get() - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.guardian.factors.email.set(...) -> SetEmailFactorSettingsResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -TODO: Link this endpoint to relevant documentation when available. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.guardian.factors.email.set( - otp_length=1, - otp_expiration_time=1, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**otp_length:** `int` — The length of the OTP code. - -
-
- -
-
- -**otp_expiration_time:** `int` — The OTP expiration time in seconds. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Guardian Factors Phone -
client.guardian.factors.phone.get_message_types() -> GetGuardianFactorPhoneMessageTypesResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve list of phone-type MFA factors (i.e., sms and voice) that are enabled for your tenant. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.guardian.factors.phone.get_message_types() - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.guardian.factors.phone.set_message_types(...) -> SetGuardianFactorPhoneMessageTypesResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Replace the list of phone-type MFA factors (i.e., sms and voice) that are enabled for your tenant. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.guardian.factors.phone.set_message_types( - message_types=[ - "sms" - ], -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**message_types:** `typing.List[GuardianFactorPhoneFactorMessageTypeEnum]` — The list of phone factors to enable on the tenant. Can include `sms` and `voice`. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.guardian.factors.phone.get_twilio_provider() -> GetGuardianFactorsProviderPhoneTwilioResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve configuration details for a Twilio phone provider that has been set up in your tenant. To learn more, review Configure SMS and Voice Notifications for MFA. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.guardian.factors.phone.get_twilio_provider() - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.guardian.factors.phone.set_twilio_provider(...) -> SetGuardianFactorsProviderPhoneTwilioResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Update the configuration of a Twilio phone provider that has been set up in your tenant. To learn more, review Configure SMS and Voice Notifications for MFA. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.guardian.factors.phone.set_twilio_provider() - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**from:** `typing.Optional[str]` — From number - -
-
- -
-
- -**messaging_service_sid:** `typing.Optional[str]` — Copilot SID - -
-
- -
-
- -**auth_token:** `typing.Optional[str]` — Twilio Authentication token - -
-
- -
-
- -**sid:** `typing.Optional[str]` — Twilio SID - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.guardian.factors.phone.get_selected_provider() -> GetGuardianFactorsProviderPhoneResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve details of the multi-factor authentication phone provider configured for your tenant. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.guardian.factors.phone.get_selected_provider() - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.guardian.factors.phone.set_provider(...) -> SetGuardianFactorsProviderPhoneResponseContent -
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.guardian.factors.phone.set_provider( - provider="auth0", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**provider:** `GuardianFactorsProviderSmsProviderEnum` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.guardian.factors.phone.get() -> GetPhoneFactorSettingsResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -TODO: Link this endpoint to relevant documentation when available. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.guardian.factors.phone.get() - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.guardian.factors.phone.set(...) -> SetPhoneFactorSettingsResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -TODO: Link this endpoint to relevant documentation when available. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.guardian.factors.phone.set( - otp_length=1, - otp_expiration_time=1, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**otp_length:** `int` — The length of the OTP code. - -
-
- -
-
- -**otp_expiration_time:** `int` — The OTP expiration time in seconds. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.guardian.factors.phone.get_templates() -> GetGuardianFactorPhoneTemplatesResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve details of the multi-factor authentication enrollment and verification templates for phone-type factors available in your tenant. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.guardian.factors.phone.get_templates() - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.guardian.factors.phone.set_templates(...) -> SetGuardianFactorPhoneTemplatesResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Customize the messages sent to complete phone enrollment and verification (subscription required). -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.guardian.factors.phone.set_templates( - enrollment_message="enrollment_message", - verification_message="verification_message", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**enrollment_message:** `str` — Message sent to the user when they are invited to enroll with a phone number. - -
-
- -
-
- -**verification_message:** `str` — Message sent to the user when they are prompted to verify their account. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Guardian Factors PushNotification -
client.guardian.factors.push_notification.get_apns_provider() -> GetGuardianFactorsProviderApnsResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve configuration details for the multi-factor authentication APNS provider associated with your tenant. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.guardian.factors.push_notification.get_apns_provider() - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.guardian.factors.push_notification.set_apns_provider(...) -> SetGuardianFactorsProviderPushNotificationApnsResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Overwrite all configuration details of the multi-factor authentication APNS provider associated with your tenant. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.guardian.factors.push_notification.set_apns_provider() - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**sandbox:** `typing.Optional[bool]` - -
-
- -
-
- -**bundle_id:** `typing.Optional[str]` - -
-
- -
-
- -**p_12:** `typing.Optional[str]` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.guardian.factors.push_notification.update_apns_provider(...) -> UpdateGuardianFactorsProviderPushNotificationApnsResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Modify configuration details of the multi-factor authentication APNS provider associated with your tenant. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.guardian.factors.push_notification.update_apns_provider() - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**sandbox:** `typing.Optional[bool]` - -
-
- -
-
- -**bundle_id:** `typing.Optional[str]` - -
-
- -
-
- -**p_12:** `typing.Optional[str]` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.guardian.factors.push_notification.set_fcm_provider(...) -> SetGuardianFactorsProviderPushNotificationFcmResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Overwrite all configuration details of the multi-factor authentication FCM provider associated with your tenant. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.guardian.factors.push_notification.set_fcm_provider() - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**server_key:** `typing.Optional[str]` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.guardian.factors.push_notification.update_fcm_provider(...) -> UpdateGuardianFactorsProviderPushNotificationFcmResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Modify configuration details of the multi-factor authentication FCM provider associated with your tenant. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.guardian.factors.push_notification.update_fcm_provider() - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**server_key:** `typing.Optional[str]` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.guardian.factors.push_notification.set_fcmv_1_provider(...) -> SetGuardianFactorsProviderPushNotificationFcmv1ResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Overwrite all configuration details of the multi-factor authentication FCMV1 provider associated with your tenant. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.guardian.factors.push_notification.set_fcmv_1_provider() - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**server_credentials:** `typing.Optional[str]` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.guardian.factors.push_notification.update_fcmv_1_provider(...) -> UpdateGuardianFactorsProviderPushNotificationFcmv1ResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Modify configuration details of the multi-factor authentication FCMV1 provider associated with your tenant. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.guardian.factors.push_notification.update_fcmv_1_provider() - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**server_credentials:** `typing.Optional[str]` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.guardian.factors.push_notification.get_sns_provider() -> GetGuardianFactorsProviderSnsResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve configuration details for an AWS SNS push notification provider that has been enabled for MFA. To learn more, review [Configure Push Notifications for MFA](https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-push-notifications-for-mfa). -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.guardian.factors.push_notification.get_sns_provider() - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.guardian.factors.push_notification.set_sns_provider(...) -> SetGuardianFactorsProviderPushNotificationSnsResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Configure the [AWS SNS push notification provider configuration](https://auth0.com/docs/multifactor-authentication/developer/sns-configuration) (subscription required). -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.guardian.factors.push_notification.set_sns_provider() - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**aws_access_key_id:** `typing.Optional[str]` - -
-
- -
-
- -**aws_secret_access_key:** `typing.Optional[str]` - -
-
- -
-
- -**aws_region:** `typing.Optional[str]` - -
-
- -
-
- -**sns_apns_platform_application_arn:** `typing.Optional[str]` - -
-
- -
-
- -**sns_gcm_platform_application_arn:** `typing.Optional[str]` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.guardian.factors.push_notification.update_sns_provider(...) -> UpdateGuardianFactorsProviderPushNotificationSnsResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Configure the [AWS SNS push notification provider configuration](https://auth0.com/docs/multifactor-authentication/developer/sns-configuration) (subscription required). -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.guardian.factors.push_notification.update_sns_provider() - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**aws_access_key_id:** `typing.Optional[str]` - -
-
- -
-
- -**aws_secret_access_key:** `typing.Optional[str]` - -
-
- -
-
- -**aws_region:** `typing.Optional[str]` - -
-
- -
-
- -**sns_apns_platform_application_arn:** `typing.Optional[str]` - -
-
- -
-
- -**sns_gcm_platform_application_arn:** `typing.Optional[str]` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.guardian.factors.push_notification.get_selected_provider() -> GetGuardianFactorsProviderPushNotificationResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Modify the push notification provider configured for your tenant. For more information, review Configure Push Notifications for MFA. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.guardian.factors.push_notification.get_selected_provider() - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.guardian.factors.push_notification.set_provider(...) -> SetGuardianFactorsProviderPushNotificationResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Modify the push notification provider configured for your tenant. For more information, review Configure Push Notifications for MFA. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.guardian.factors.push_notification.set_provider( - provider="guardian", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**provider:** `GuardianFactorsProviderPushNotificationProviderDataEnum` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Guardian Factors Sms -
client.guardian.factors.sms.get_twilio_provider() -> GetGuardianFactorsProviderSmsTwilioResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve the Twilio SMS provider configuration (subscription required). - - A new endpoint is available to retrieve the Twilio configuration related to phone factors (phone Twilio configuration). It has the same payload as this one. Please use it instead. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.guardian.factors.sms.get_twilio_provider() - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.guardian.factors.sms.set_twilio_provider(...) -> SetGuardianFactorsProviderSmsTwilioResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -This endpoint has been deprecated. To complete this action, use the Update Twilio phone configuration endpoint. - - Previous functionality: Update the Twilio SMS provider configuration. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.guardian.factors.sms.set_twilio_provider() - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**from:** `typing.Optional[str]` — From number - -
-
- -
-
- -**messaging_service_sid:** `typing.Optional[str]` — Copilot SID - -
-
- -
-
- -**auth_token:** `typing.Optional[str]` — Twilio Authentication token - -
-
- -
-
- -**sid:** `typing.Optional[str]` — Twilio SID - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.guardian.factors.sms.get_selected_provider() -> GetGuardianFactorsProviderSmsResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -This endpoint has been deprecated. To complete this action, use the Retrieve phone configuration endpoint instead. - - Previous functionality: Retrieve details for the multi-factor authentication SMS provider configured for your tenant. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.guardian.factors.sms.get_selected_provider() - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.guardian.factors.sms.set_provider(...) -> SetGuardianFactorsProviderSmsResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -This endpoint has been deprecated. To complete this action, use the Update phone configuration endpoint instead. - - Previous functionality: Update the multi-factor authentication SMS provider configuration in your tenant. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.guardian.factors.sms.set_provider( - provider="auth0", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**provider:** `GuardianFactorsProviderSmsProviderEnum` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.guardian.factors.sms.get_templates() -> typing.Optional[GetGuardianFactorSmsTemplatesResponseContent] -
-
- -#### 📝 Description - -
-
- -
-
- -This endpoint has been deprecated. To complete this action, use the Retrieve enrollment and verification phone templates endpoint instead. - - Previous function: Retrieve details of SMS enrollment and verification templates configured for your tenant. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.guardian.factors.sms.get_templates() - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.guardian.factors.sms.set_templates(...) -> SetGuardianFactorSmsTemplatesResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -This endpoint has been deprecated. To complete this action, use the Update enrollment and verification phone templates endpoint instead. - - Previous functionality: Customize the messages sent to complete SMS enrollment and verification. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.guardian.factors.sms.set_templates( - enrollment_message="enrollment_message", - verification_message="verification_message", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**enrollment_message:** `str` — Message sent to the user when they are invited to enroll with a phone number. - -
-
- -
-
- -**verification_message:** `str` — Message sent to the user when they are prompted to verify their account. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Guardian Factors Duo Settings -
client.guardian.factors.duo.settings.get() -> GetGuardianFactorDuoSettingsResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieves the DUO account and factor configuration. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.guardian.factors.duo.settings.get() - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.guardian.factors.duo.settings.set(...) -> SetGuardianFactorDuoSettingsResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Set the DUO account configuration and other properties specific to this factor. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.guardian.factors.duo.settings.set() - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**ikey:** `typing.Optional[str]` - -
-
- -
-
- -**skey:** `typing.Optional[str]` - -
-
- -
-
- -**host:** `typing.Optional[str]` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.guardian.factors.duo.settings.update(...) -> UpdateGuardianFactorDuoSettingsResponseContent -
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.guardian.factors.duo.settings.update() - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**ikey:** `typing.Optional[str]` - -
-
- -
-
- -**skey:** `typing.Optional[str]` - -
-
- -
-
- -**host:** `typing.Optional[str]` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Hooks Secrets -
client.hooks.secrets.get(...) -> GetHookSecretResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve a hook's secrets by the ID of the hook. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.hooks.secrets.get( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the hook to retrieve secrets from. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.hooks.secrets.create(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Add one or more secrets to an existing hook. Accepts an object of key-value pairs, where the key is the name of the secret. A hook can have a maximum of 20 secrets. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.hooks.secrets.create( - id="id", - request={ - "key": "value" - }, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The id of the hook to retrieve - -
-
- -
-
- -**request:** `CreateHookSecretRequestContent` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.hooks.secrets.delete(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Delete one or more existing secrets for a given hook. Accepts an array of secret names to delete. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.hooks.secrets.delete( - id="id", - request=[ - "string" - ], -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the hook whose secrets to delete. - -
-
- -
-
- -**request:** `DeleteHookSecretRequestContent` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.hooks.secrets.update(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Update one or more existing secrets for an existing hook. Accepts an object of key-value pairs, where the key is the name of the existing secret. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.hooks.secrets.update( - id="id", - request={ - "key": "value" - }, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the hook whose secrets to update. - -
-
- -
-
- -**request:** `UpdateHookSecretRequestContent` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Jobs UsersExports -
client.jobs.users_exports.create(...) -> CreateExportUsersResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Export all users to a file via a long-running job. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.jobs.users_exports.create() - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**connection_id:** `typing.Optional[str]` — connection_id of the connection from which users will be exported. - -
-
- -
-
- -**format:** `typing.Optional[JobFileFormatEnum]` - -
-
- -
-
- -**limit:** `typing.Optional[int]` — Limit the number of records. - -
-
- -
-
- -**fields:** `typing.Optional[typing.List[CreateExportUsersFields]]` — List of fields to be included in the CSV. Defaults to a predefined set of fields. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Jobs UsersImports -
client.jobs.users_imports.create(...) -> CreateImportUsersResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Import users from a formatted file into a connection via a long-running job. When importing users, with or without upsert, the `email_verified` is set to `false` when the email address is added or updated. Users must verify their email address. To avoid this behavior, set `email_verified` to `true` in the imported data. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.jobs.users_imports.create( - users="example_users", - connection_id="connection_id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**users:** `core.File` - -
-
- -
-
- -**connection_id:** `str` — connection_id of the connection to which users will be imported. - -
-
- -
-
- -**upsert:** `typing.Optional[bool]` — Whether to update users if they already exist (true) or to ignore them (false). - -
-
- -
-
- -**external_id:** `typing.Optional[str]` — Customer-defined ID. - -
-
- -
-
- -**send_completion_email:** `typing.Optional[bool]` — Whether to send a completion email to all tenant owners when the job is finished (true) or not (false). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Jobs VerificationEmail -
client.jobs.verification_email.create(...) -> CreateVerificationEmailResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Send an email to the specified user that asks them to click a link to [verify their email address](https://auth0.com/docs/email/custom#verification-email). - -Note: You must have the `Status` toggle enabled for the verification email template for the email to be sent. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.jobs.verification_email.create( - user_id="user_id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**user_id:** `str` — user_id of the user to send the verification email to. - -
-
- -
-
- -**client_id:** `typing.Optional[str]` — client_id of the client (application). If no value provided, the global Client ID will be used. - -
-
- -
-
- -**identity:** `typing.Optional[Identity]` - -
-
- -
-
- -**organization_id:** `typing.Optional[str]` — (Optional) Organization ID – the ID of the Organization. If provided, organization parameters will be made available to the email template and organization branding will be applied to the prompt. In addition, the redirect link in the prompt will include organization_id and organization_name query string parameters. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Jobs Errors -
client.jobs.errors.get(...) -> typing.Optional[ErrorsGetResponse] -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve error details of a failed job. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.jobs.errors.get( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the job. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Keys CustomSigning -
client.keys.custom_signing.get() -> GetCustomSigningKeysResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Get entire jwks representation of custom signing keys. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.keys.custom_signing.get() - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.keys.custom_signing.set(...) -> SetCustomSigningKeysResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Create or replace entire jwks representation of custom signing keys. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0, CustomSigningKeyJwk -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.keys.custom_signing.set( - keys=[ - CustomSigningKeyJwk( - kty="EC", - ) - ], -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**keys:** `typing.List[CustomSigningKeyJwk]` — An array of custom public signing keys. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.keys.custom_signing.delete() -
-
- -#### 📝 Description - -
-
- -
-
- -Delete entire jwks representation of custom signing keys. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.keys.custom_signing.delete() - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Keys Encryption -
client.keys.encryption.list(...) -> ListEncryptionKeyOffsetPaginatedResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve details of all the encryption keys associated with your tenant. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.keys.encryption.list( - page=1, - per_page=1, - include_totals=True, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**page:** `typing.Optional[int]` — Page index of the results to return. First page is 0. - -
-
- -
-
- -**per_page:** `typing.Optional[int]` — Number of results per page. Default value is 50, maximum value is 100. - -
-
- -
-
- -**include_totals:** `typing.Optional[bool]` — Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.keys.encryption.create(...) -> CreateEncryptionKeyResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Create the new, pre-activated encryption key, without the key material. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.keys.encryption.create( - type="customer-provided-root-key", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**type:** `CreateEncryptionKeyType` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.keys.encryption.rekey() -
-
- -#### 📝 Description - -
-
- -
-
- -Perform rekeying operation on the key hierarchy. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.keys.encryption.rekey() - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.keys.encryption.get(...) -> GetEncryptionKeyResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve details of the encryption key with the given ID. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.keys.encryption.get( - kid="kid", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**kid:** `str` — Encryption key ID - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.keys.encryption.import(...) -> ImportEncryptionKeyResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Import wrapped key material and activate encryption key. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.keys.encryption.import_( - kid="kid", - wrapped_key="wrapped_key", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**kid:** `str` — Encryption key ID - -
-
- -
-
- -**wrapped_key:** `str` — Base64 encoded ciphertext of key material wrapped by public wrapping key. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.keys.encryption.delete(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Delete the custom provided encryption key with the given ID and move back to using native encryption key. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.keys.encryption.delete( - kid="kid", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**kid:** `str` — Encryption key ID - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.keys.encryption.create_public_wrapping_key(...) -> CreateEncryptionKeyPublicWrappingResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Create the public wrapping key to wrap your own encryption key material. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.keys.encryption.create_public_wrapping_key( - kid="kid", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**kid:** `str` — Encryption key ID - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Keys NetworkAcls -
client.keys.network_acls.list() -> GetAllKeysNetworkAclsResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve all keys used to verify HTTP Message Signatures on Network ACL rules, ordered by creation time descending. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.keys.network_acls.list() - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.keys.network_acls.create(...) -> CreateKeysNetworkAclsResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Create a new key used to verify HTTP Message Signatures on Network ACL rules. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.keys.network_acls.create( - name="name", - alg="hmac-sha256", - value="value", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**name:** `str` — Customer-supplied label with no cryptographic meaning. Must be unique across all Network ACL keys for the tenant. - -
-
- -
-
- -**alg:** `NetworkAclKeyAlgorithmEnum` - -
-
- -
-
- -**value:** `str` — Base64-encoded raw key material. Constraints on the decoded value depend on the algorithm specified. Currently only HMAC-SHA256 is supported. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.keys.network_acls.get(...) -> NetworkAclKey -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve a specific key used to verify HTTP Message Signatures on Network ACL rules. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.keys.network_acls.get( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the Network ACL Key to retrieve. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.keys.network_acls.delete(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Delete a key used to verify HTTP Message Signatures on Network ACL rules -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.keys.network_acls.delete( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the Network ACL Key to delete. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Keys Signing -
client.keys.signing.list() -> typing.List[SigningKeys] -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve details of all the application signing keys associated with your tenant. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.keys.signing.list() - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.keys.signing.rotate() -> RotateSigningKeysResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Rotate the application signing key of your tenant. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.keys.signing.rotate() - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.keys.signing.get(...) -> GetSigningKeysResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve details of the application signing key with the given ID. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.keys.signing.get( - kid="kid", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**kid:** `str` — Key id of the key to retrieve - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.keys.signing.revoke(...) -> RevokedSigningKeysResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Revoke the application signing key with the given ID. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.keys.signing.revoke( - kid="kid", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**kid:** `str` — Key id of the key to revoke - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Organizations ClientGrants -
client.organizations.client_grants.list(...) -> ListOrganizationClientGrantsOffsetPaginatedResponseContent -
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.organizations.client_grants.list( - id="id", - audience="audience", - client_id="client_id", - grant_ids=[ - "grant_ids" - ], - page=1, - per_page=1, - include_totals=True, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — Organization identifier. - -
-
- -
-
- -**audience:** `typing.Optional[str]` — Optional filter on audience of the client grant. - -
-
- -
-
- -**client_id:** `typing.Optional[str]` — Optional filter on client_id of the client grant. - -
-
- -
-
- -**grant_ids:** `typing.Optional[typing.Union[typing.Optional[str], typing.Sequence[typing.Optional[str]]]]` — Optional filter on the ID of the client grant. Must be URL encoded and may be specified multiple times (max 10).
e.g. ../client-grants?grant_ids=id1&grant_ids=id2 - -
-
- -
-
- -**page:** `typing.Optional[int]` — Page index of the results to return. First page is 0. - -
-
- -
-
- -**per_page:** `typing.Optional[int]` — Number of results per page. Defaults to 50. - -
-
- -
-
- -**include_totals:** `typing.Optional[bool]` — Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.organizations.client_grants.create(...) -> AssociateOrganizationClientGrantResponseContent -
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.organizations.client_grants.create( - id="id", - grant_id="grant_id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — Organization identifier. - -
-
- -
-
- -**grant_id:** `str` — A Client Grant ID to add to the organization. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.organizations.client_grants.delete(...) -
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.organizations.client_grants.delete( - id="id", - grant_id="grant_id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — Organization identifier. - -
-
- -
-
- -**grant_id:** `str` — The Client Grant ID to remove from the organization - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Organizations Clients -
client.organizations.clients.list(...) -> ListOrganizationClientsResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -List all clients associated with an organization, using checkpoint pagination. -
    -
  • - Note: The first time you call this endpoint, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no further results are remaining. -
  • -
-
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.organizations.clients.list( - id="id", - from_="from", - take=1, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the organization. - -
-
- -
-
- -**from:** `typing.Optional[str]` — Optional Id from which to start selection. - -
-
- -
-
- -**take:** `typing.Optional[int]` — Number of results per page. Defaults to 50. Values greater than the maximum of 100 are capped at 100. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.organizations.clients.create(...) -> CreateOrganizationClientsResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Associate one or more clients with an organization. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0, CreateOrganizationClientRequestItem -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.organizations.clients.create( - id="id", - clients=[ - CreateOrganizationClientRequestItem( - client_id="client_id", - use_for_member_access=True, - ) - ], -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the organization. - -
-
- -
-
- -**clients:** `typing.List[CreateOrganizationClientRequestItem]` — List of clients to associate with the organization. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.organizations.clients.delete(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Remove one or more client associations from an organization. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.organizations.clients.delete( - id="id", - clients=[ - "clients" - ], -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the organization. - -
-
- -
-
- -**clients:** `typing.List[str]` — List of client IDs to disassociate from the organization. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.organizations.clients.get(...) -> GetOrganizationClientResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Get a specific client association for an organization. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.organizations.clients.get( - id="id", - client_id="client_id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the organization. - -
-
- -
-
- -**client_id:** `str` — ID of the client association to retrieve. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.organizations.clients.update(...) -> UpdateOrganizationClientResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Update an organization client association. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.organizations.clients.update( - id="id", - client_id="client_id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the organization. - -
-
- -
-
- -**client_id:** `str` — ID of the client association to update. - -
-
- -
-
- -**use_for_member_access:** `typing.Optional[bool]` — Whether this client is used for member access to the organization. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Organizations Connections -
client.organizations.connections.list(...) -> ListOrganizationAllConnectionsOffsetPaginatedResponseContent -
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.organizations.connections.list( - id="id", - page=1, - per_page=1, - include_totals=True, - is_enabled=True, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — Organization identifier. - -
-
- -
-
- -**page:** `typing.Optional[int]` — Page index of the results to return. First page is 0. - -
-
- -
-
- -**per_page:** `typing.Optional[int]` — Number of results per page. Defaults to 50. - -
-
- -
-
- -**include_totals:** `typing.Optional[bool]` — Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - -
-
- -
-
- -**is_enabled:** `typing.Optional[bool]` — Filter connections by enabled status. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.organizations.connections.create(...) -> CreateOrganizationAllConnectionResponseContent -
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.organizations.connections.create( - id="id", - connection_id="connection_id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — Organization identifier. - -
-
- -
-
- -**connection_id:** `str` — Connection identifier. - -
-
- -
-
- -**organization_connection_name:** `typing.Optional[str]` — Name of the connection in the scope of this organization. - -
-
- -
-
- -**assign_membership_on_login:** `typing.Optional[bool]` — When true, all users that log in with this connection will be automatically granted membership in the organization. When false, users must be granted membership in the organization before logging in with this connection. - -
-
- -
-
- -**show_as_button:** `typing.Optional[bool]` — Determines whether a connection should be displayed on this organization’s login prompt. Only applicable for enterprise connections. Default: true. - -
-
- -
-
- -**is_signup_enabled:** `typing.Optional[bool]` — Determines whether organization signup should be enabled for this organization connection. Only applicable for database connections. Default: false. - -
-
- -
-
- -**organization_access_level:** `typing.Optional[OrganizationAccessLevelEnum]` - -
-
- -
-
- -**organization_member_access_level:** `typing.Optional[OrganizationMemberAccessLevelEnum]` - -
-
- -
-
- -**is_enabled:** `typing.Optional[bool]` — Whether the connection is enabled for the organization. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.organizations.connections.get(...) -> GetOrganizationAllConnectionResponseContent -
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.organizations.connections.get( - id="id", - connection_id="connection_id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — Organization identifier. - -
-
- -
-
- -**connection_id:** `str` — Connection identifier. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.organizations.connections.delete(...) -
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.organizations.connections.delete( - id="id", - connection_id="connection_id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — Organization identifier. - -
-
- -
-
- -**connection_id:** `str` — Connection identifier. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.organizations.connections.update(...) -> UpdateOrganizationAllConnectionResponseContent -
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.organizations.connections.update( - id="id", - connection_id="connection_id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — Organization identifier. - -
-
- -
-
- -**connection_id:** `str` — Connection identifier. - -
-
- -
-
- -**organization_connection_name:** `typing.Optional[str]` — Name of the connection in the scope of this organization. - -
-
- -
-
- -**assign_membership_on_login:** `typing.Optional[bool]` — When true, all users that log in with this connection will be automatically granted membership in the organization. When false, users must be granted membership in the organization before logging in with this connection. - -
-
- -
-
- -**show_as_button:** `typing.Optional[bool]` — Determines whether a connection should be displayed on this organization’s login prompt. Only applicable for enterprise connections. Default: true. - -
-
- -
-
- -**is_signup_enabled:** `typing.Optional[bool]` — Determines whether organization signup should be enabled for this organization connection. Only applicable for database connections. Default: false. - -
-
- -
-
- -**organization_access_level:** `typing.Optional[OrganizationAccessLevelEnumWithNull]` - -
-
- -
-
- -**organization_member_access_level:** `typing.Optional[OrganizationMemberAccessLevelEnumWithNull]` - -
-
- -
-
- -**is_enabled:** `typing.Optional[bool]` — Whether the connection is enabled for the organization. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Organizations DiscoveryDomains -
client.organizations.discovery_domains.list(...) -> ListOrganizationDiscoveryDomainsResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve list of all organization discovery domains associated with the specified organization. -This endpoint is subject to eventual consistency; newly created, updated, or deleted discovery domains may not immediately appear in the response. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.organizations.discovery_domains.list( - id="id", - from_="from", - take=1, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the organization. - -
-
- -
-
- -**from:** `typing.Optional[str]` — Optional Id from which to start selection. - -
-
- -
-
- -**take:** `typing.Optional[int]` — Number of results per page. Defaults to 50. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.organizations.discovery_domains.create(...) -> CreateOrganizationDiscoveryDomainResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Create a new discovery domain for an organization. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.organizations.discovery_domains.create( - id="id", - domain="domain", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the organization. - -
-
- -
-
- -**domain:** `str` — The domain name to associate with the organization e.g. acme.com. - -
-
- -
-
- -**status:** `typing.Optional[OrganizationDiscoveryDomainStatus]` - -
-
- -
-
- -**use_for_organization_discovery:** `typing.Optional[bool]` — Indicates whether this domain should be used for organization discovery. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.organizations.discovery_domains.get_by_name(...) -> GetOrganizationDiscoveryDomainByNameResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve details about a single organization discovery domain specified by domain name. -This endpoint is subject to eventual consistency; newly created, updated, or deleted discovery domains may not immediately appear in the response. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.organizations.discovery_domains.get_by_name( - id="id", - discovery_domain="discovery_domain", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the organization. - -
-
- -
-
- -**discovery_domain:** `str` — Domain name of the discovery domain. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.organizations.discovery_domains.get(...) -> GetOrganizationDiscoveryDomainResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve details about a single organization discovery domain specified by ID. -This endpoint is subject to eventual consistency; newly created, updated, or deleted discovery domains may not immediately appear in the response. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.organizations.discovery_domains.get( - id="id", - discovery_domain_id="discovery_domain_id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the organization. - -
-
- -
-
- -**discovery_domain_id:** `str` — ID of the discovery domain. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.organizations.discovery_domains.delete(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Remove a discovery domain from an organization. This action cannot be undone. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.organizations.discovery_domains.delete( - id="id", - discovery_domain_id="discovery_domain_id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the organization. - -
-
- -
-
- -**discovery_domain_id:** `str` — ID of the discovery domain. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.organizations.discovery_domains.update(...) -> UpdateOrganizationDiscoveryDomainResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Update the verification status and/or use_for_organization_discovery for an organization discovery domain. The `status` field must be either `pending` or `verified`. The `use_for_organization_discovery` field can be `true` or `false` (default: `true`). -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.organizations.discovery_domains.update( - id="id", - discovery_domain_id="discovery_domain_id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the organization. - -
-
- -
-
- -**discovery_domain_id:** `str` — ID of the discovery domain to update. - -
-
- -
-
- -**status:** `typing.Optional[OrganizationDiscoveryDomainStatus]` - -
-
- -
-
- -**use_for_organization_discovery:** `typing.Optional[bool]` — Indicates whether this domain should be used for organization discovery. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Organizations EnabledConnections -
client.organizations.enabled_connections.list(...) -> ListOrganizationConnectionsOffsetPaginatedResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve details about a specific connection currently enabled for an Organization. Information returned includes details such as connection ID, name, strategy, and whether the connection automatically grants membership upon login. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.organizations.enabled_connections.list( - id="id", - page=1, - per_page=1, - include_totals=True, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — Organization identifier. - -
-
- -
-
- -**page:** `typing.Optional[int]` — Page index of the results to return. First page is 0. - -
-
- -
-
- -**per_page:** `typing.Optional[int]` — Number of results per page. Defaults to 50. - -
-
- -
-
- -**include_totals:** `typing.Optional[bool]` — Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.organizations.enabled_connections.add(...) -> AddOrganizationConnectionResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Enable a specific connection for a given Organization. To enable a connection, it must already exist within your tenant; connections cannot be created through this action. - -[Connections](https://auth0.com/docs/authenticate/identity-providers) represent the relationship between Auth0 and a source of users. Available types of connections include database, enterprise, and social. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.organizations.enabled_connections.add( - id="id", - connection_id="connection_id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — Organization identifier. - -
-
- -
-
- -**connection_id:** `str` — Single connection ID to add to the organization. - -
-
- -
-
- -**assign_membership_on_login:** `typing.Optional[bool]` — When true, all users that log in with this connection will be automatically granted membership in the organization. When false, users must be granted membership in the organization before logging in with this connection. - -
-
- -
-
- -**is_signup_enabled:** `typing.Optional[bool]` — Determines whether organization signup should be enabled for this organization connection. Only applicable for database connections. Default: false. - -
-
- -
-
- -**show_as_button:** `typing.Optional[bool]` — Determines whether a connection should be displayed on this organization’s login prompt. Only applicable for enterprise connections. Default: true. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.organizations.enabled_connections.get(...) -> GetOrganizationConnectionResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve details about a specific connection currently enabled for an Organization. Information returned includes details such as connection ID, name, strategy, and whether the connection automatically grants membership upon login. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.organizations.enabled_connections.get( - id="id", - connection_id="connectionId", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — Organization identifier. - -
-
- -
-
- -**connection_id:** `str` — Connection identifier. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.organizations.enabled_connections.delete(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Disable a specific connection for an Organization. Once disabled, Organization members can no longer use that connection to authenticate. - -**Note**: This action does not remove the connection from your tenant. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.organizations.enabled_connections.delete( - id="id", - connection_id="connectionId", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — Organization identifier. - -
-
- -
-
- -**connection_id:** `str` — Connection identifier. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.organizations.enabled_connections.update(...) -> UpdateOrganizationConnectionResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Modify the details of a specific connection currently enabled for an Organization. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.organizations.enabled_connections.update( - id="id", - connection_id="connectionId", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — Organization identifier. - -
-
- -
-
- -**connection_id:** `str` — Connection identifier. - -
-
- -
-
- -**assign_membership_on_login:** `typing.Optional[bool]` — When true, all users that log in with this connection will be automatically granted membership in the organization. When false, users must be granted membership in the organization before logging in with this connection. - -
-
- -
-
- -**is_signup_enabled:** `typing.Optional[bool]` — Determines whether organization signup should be enabled for this organization connection. Only applicable for database connections. Default: false. - -
-
- -
-
- -**show_as_button:** `typing.Optional[bool]` — Determines whether a connection should be displayed on this organization’s login prompt. Only applicable for enterprise connections. Default: true. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Organizations Invitations -
client.organizations.invitations.list(...) -> ListOrganizationInvitationsOffsetPaginatedResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve a detailed list of invitations sent to users for a specific Organization. The list includes details such as inviter and invitee information, invitation URLs, and dates of creation and expiration. To learn more about Organization invitations, review [Invite Organization Members](https://auth0.com/docs/manage-users/organizations/configure-organizations/invite-members). -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.organizations.invitations.list( - id="id", - page=1, - per_page=1, - include_totals=True, - fields="fields", - include_fields=True, - sort="sort", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — Organization identifier. - -
-
- -
-
- -**page:** `typing.Optional[int]` — Page index of the results to return. First page is 0. - -
-
- -
-
- -**per_page:** `typing.Optional[int]` — Number of results per page. Defaults to 50. - -
-
- -
-
- -**include_totals:** `typing.Optional[bool]` — When true, return results inside an object that also contains the start and limit. When false (default), a direct array of results is returned. We do not yet support returning the total invitations count. - -
-
- -
-
- -**fields:** `typing.Optional[str]` — Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - -
-
- -
-
- -**include_fields:** `typing.Optional[bool]` — Whether specified fields are to be included (true) or excluded (false). Defaults to true. - -
-
- -
-
- -**sort:** `typing.Optional[str]` — Field to sort by. Use field:order where order is 1 for ascending and -1 for descending Defaults to created_at:-1. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.organizations.invitations.create(...) -> CreateOrganizationInvitationResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Create a user invitation for a specific Organization. Upon creation, the listed user receives an email inviting them to join the Organization. To learn more about Organization invitations, review [Invite Organization Members](https://auth0.com/docs/manage-users/organizations/configure-organizations/invite-members). -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0, OrganizationInvitationInviter, OrganizationInvitationInvitee -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.organizations.invitations.create( - id="id", - inviter=OrganizationInvitationInviter( - name="name", - ), - invitee=OrganizationInvitationInvitee( - email="email", - ), - client_id="client_id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — Organization identifier. - -
-
- -
-
- -**inviter:** `OrganizationInvitationInviter` - -
-
- -
-
- -**invitee:** `OrganizationInvitationInvitee` - -
-
- -
-
- -**client_id:** `str` — Auth0 client ID. Used to resolve the application's login initiation endpoint. - -
-
- -
-
- -**connection_id:** `typing.Optional[str]` — The id of the connection to force invitee to authenticate with. - -
-
- -
-
- -**app_metadata:** `typing.Optional[AppMetadata]` - -
-
- -
-
- -**user_metadata:** `typing.Optional[UserMetadata]` - -
-
- -
-
- -**ttl_sec:** `typing.Optional[int]` — Number of seconds for which the invitation is valid before expiration. If unspecified or set to 0, this value defaults to 604800 seconds (7 days). Max value: 2592000 seconds (30 days). - -
-
- -
-
- -**roles:** `typing.Optional[typing.List[str]]` — List of roles IDs to associated with the user. - -
-
- -
-
- -**send_invitation_email:** `typing.Optional[bool]` — Whether the user will receive an invitation email (true) or no email (false), true by default - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.organizations.invitations.get(...) -> GetOrganizationInvitationResponseContent -
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.organizations.invitations.get( - id="id", - invitation_id="invitation_id", - fields="fields", - include_fields=True, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — Organization identifier. - -
-
- -
-
- -**invitation_id:** `str` — The id of the user invitation. - -
-
- -
-
- -**fields:** `typing.Optional[str]` — Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - -
-
- -
-
- -**include_fields:** `typing.Optional[bool]` — Whether specified fields are to be included (true) or excluded (false). Defaults to true. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.organizations.invitations.delete(...) -
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.organizations.invitations.delete( - id="id", - invitation_id="invitation_id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — Organization identifier. - -
-
- -
-
- -**invitation_id:** `str` — The id of the user invitation. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Organizations Members -
client.organizations.members.list(...) -> ListOrganizationMembersPaginatedResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -List organization members. -This endpoint is subject to eventual consistency. New users may not be immediately included in the response and deleted users may not be immediately removed from it. - -- Use the `fields` parameter to optionally define the specific member details retrieved. If `fields` is left blank, all fields (except roles) are returned. -- Member roles are not sent by default. Use `fields=roles` to retrieve the roles assigned to each listed member. To use this parameter, you must include the `read:organization_member_roles` scope in the token. Only directly assigned roles are returned. To also include group-based role assignments, use `GET /api/v2/organizations/{id}/members/{user_id}/effective-roles`. - -This endpoint supports two types of pagination: - -- Offset pagination -- Checkpoint pagination - -Checkpoint pagination must be used if you need to retrieve more than 1000 organization members. - -**Checkpoint Pagination** - -To search by checkpoint, use the following parameters: - from: Optional id from which to start selection. - take: The total amount of entries to retrieve when using the from parameter. Defaults to 50. Note: The first time you call this endpoint using Checkpoint Pagination, you should omit the `from` parameter. If there are more results, a `next` value will be included in the response. You can use this for subsequent API calls. When `next` is no longer included in the response, this indicates there are no more pages remaining. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.organizations.members.list( - id="id", - include_totals=True, - from_="from", - take=1, - fields="fields", - include_fields=True, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — Organization identifier. - -
-
- -
-
- -**include_totals:** `typing.Optional[bool]` — Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - -
-
- -
-
- -**from:** `typing.Optional[str]` — Optional Id from which to start selection. - -
-
- -
-
- -**take:** `typing.Optional[int]` — Number of results per page. Defaults to 50. - -
-
- -
-
- -**fields:** `typing.Optional[str]` — Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - -
-
- -
-
- -**include_fields:** `typing.Optional[bool]` — Whether specified fields are to be included (true) or excluded (false). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.organizations.members.create(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Set one or more existing users as members of a specific [Organization](https://auth0.com/docs/manage-users/organizations). - -To add a user to an Organization through this action, the user must already exist in your tenant. If a user does not yet exist, you can [invite them to create an account](https://auth0.com/docs/manage-users/organizations/configure-organizations/invite-members), manually create them through the Auth0 Dashboard, or use the Management API. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.organizations.members.create( - id="id", - members=[ - "members" - ], -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — Organization identifier. - -
-
- -
-
- -**members:** `typing.List[str]` — List of user IDs to add to the organization as members. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.organizations.members.delete(...) -
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.organizations.members.delete( - id="id", - members=[ - "members" - ], -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — Organization identifier. - -
-
- -
-
- -**members:** `typing.List[str]` — List of user IDs to remove from the organization. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Organizations Groups -
client.organizations.groups.list(...) -> ListOrganizationGroupsResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Lists the groups that are assigned to the specified organization. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.organizations.groups.list( - organization_id="organization_id", - from_="from", - take=1, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**organization_id:** `str` — ID of the organization - -
-
- -
-
- -**from:** `typing.Optional[str]` — Optional Id from which to start selection. - -
-
- -
-
- -**take:** `typing.Optional[int]` — Number of results per page. Defaults to 50. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Organizations Groups Roles -
client.organizations.groups.roles.list(...) -> ListOrganizationGroupRolesResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Lists the roles assigned to the specified group in the context of an organization. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.organizations.groups.roles.list( - organization_id="organization_id", - group_id="group_id", - from_="from", - take=1, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**organization_id:** `str` — ID of the organization - -
-
- -
-
- -**group_id:** `str` — ID of the group - -
-
- -
-
- -**from:** `typing.Optional[str]` — Optional Id from which to start selection. - -
-
- -
-
- -**take:** `typing.Optional[int]` — Number of results per page. Defaults to 50. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.organizations.groups.roles.create(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Assign one or more roles to a specified group in the context of an organization. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.organizations.groups.roles.create( - organization_id="organization_id", - group_id="group_id", - roles=[ - "roles" - ], -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**organization_id:** `str` — ID of the organization - -
-
- -
-
- -**group_id:** `str` — ID of the group - -
-
- -
-
- -**roles:** `typing.List[str]` — Array of role IDs to assign to organization group. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.organizations.groups.roles.delete(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Unassign one or more roles from a specified group in the context of an organization. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.organizations.groups.roles.delete( - organization_id="organization_id", - group_id="group_id", - roles=[ - "roles" - ], -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**organization_id:** `str` — ID of the organization - -
-
- -
-
- -**group_id:** `str` — ID of the group - -
-
- -
-
- -**roles:** `typing.List[str]` — Array of role IDs to delete from organization group. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Organizations Members EffectiveRoles -
client.organizations.members.effective_roles.list(...) -> ListOrganizationMemberEffectiveRolesResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Lists the roles assigned to an organization member directly or through group membership. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.organizations.members.effective_roles.list( - id="id", - user_id="user_id", - from_="from", - take=1, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — Organization identifier. - -
-
- -
-
- -**user_id:** `str` — ID of the user to list effective roles for. - -
-
- -
-
- -**from:** `typing.Optional[str]` — Optional Id from which to start selection. - -
-
- -
-
- -**take:** `typing.Optional[int]` — Number of results per page. Defaults to 50. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Organizations Members Roles -
client.organizations.members.roles.list(...) -> ListOrganizationMemberRolesOffsetPaginatedResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve detailed list of roles assigned to a given user within the context of a specific Organization. - -Users can be members of multiple Organizations with unique roles assigned for each membership. This action only returns the roles associated with the specified Organization; any roles assigned to the user within other Organizations are not included. - -**Note**: Returns only direct role assignments for this member. To also include group-based role assignments, use `GET /api/v2/organizations/{id}/members/{user_id}/effective-roles`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.organizations.members.roles.list( - id="id", - user_id="user_id", - page=1, - per_page=1, - include_totals=True, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — Organization identifier. - -
-
- -
-
- -**user_id:** `str` — ID of the user to associate roles with. - -
-
- -
-
- -**page:** `typing.Optional[int]` — Page index of the results to return. First page is 0. - -
-
- -
-
- -**per_page:** `typing.Optional[int]` — Number of results per page. Defaults to 50. - -
-
- -
-
- -**include_totals:** `typing.Optional[bool]` — Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.organizations.members.roles.assign(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Assign one or more [roles](https://auth0.com/docs/manage-users/access-control/rbac) to a user to determine their access for a specific Organization. - -Users can be members of multiple Organizations with unique roles assigned for each membership. This action assigns roles to a user only for the specified Organization. Roles cannot be assigned to a user across multiple Organizations in the same call. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.organizations.members.roles.assign( - id="id", - user_id="user_id", - roles=[ - "roles" - ], -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — Organization identifier. - -
-
- -
-
- -**user_id:** `str` — ID of the user to associate roles with. - -
-
- -
-
- -**roles:** `typing.List[str]` — List of roles IDs to associated with the user. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.organizations.members.roles.delete(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Remove one or more Organization-specific [roles](https://auth0.com/docs/manage-users/access-control/rbac) from a given user. - -Users can be members of multiple Organizations with unique roles assigned for each membership. This action removes roles from a user in relation to the specified Organization. Roles assigned to the user within a different Organization cannot be managed in the same call. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.organizations.members.roles.delete( - id="id", - user_id="user_id", - roles=[ - "roles" - ], -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — Organization identifier. - -
-
- -
-
- -**user_id:** `str` — User ID of the organization member to remove roles from. - -
-
- -
-
- -**roles:** `typing.List[str]` — List of roles IDs associated with the organization member to remove. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Organizations Members EffectiveRoles Sources Groups -
client.organizations.members.effective_roles.sources.groups.list(...) -> ListOrganizationMemberRoleSourceGroupsResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Lists the groups which grant the org member a given role. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.organizations.members.effective_roles.sources.groups.list( - id="id", - user_id="user_id", - from_="from", - take=1, - role_id="role_id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — Organization identifier. - -
-
- -
-
- -**user_id:** `str` — ID of the user to list role source groups for. - -
-
- -
-
- -**role_id:** `str` — The role ID to get group sources for. - -
-
- -
-
- -**from:** `typing.Optional[str]` — Optional Id from which to start selection. - -
-
- -
-
- -**take:** `typing.Optional[int]` — Number of results per page. Defaults to 50. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Organizations Roles Members -
client.organizations.roles.members.list(...) -> ListOrganizationRoleMembersResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -List the organization members assigned a specific role within the context of an organization. -
    -
  • - Note: Returns only members with direct role assignments. For groups assigned to this role within the organization, use GET /api/v2/organizations/{organization_id}/roles/{role_id}/groups. -
  • -
-
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.organizations.roles.members.list( - id="id", - role_id="role_id", - from_="from", - take=1, - fields="fields", - include_fields=True, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the organization. - -
-
- -
-
- -**role_id:** `str` — ID of the role to retrieve the assigned members for. - -
-
- -
-
- -**from:** `typing.Optional[str]` — Optional Id from which to start selection. - -
-
- -
-
- -**take:** `typing.Optional[int]` — Number of results per page. Defaults to 50. Values above the maximum permitted size are capped. - -
-
- -
-
- -**fields:** `typing.Optional[str]` — Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - -
-
- -
-
- -**include_fields:** `typing.Optional[bool]` — Whether specified fields are to be included (true) or excluded (false). Defaults to true. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Organizations Roles Groups -
client.organizations.roles.groups.list(...) -> ListOrganizationRoleGroupsResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve the list of groups assigned to a role in the context of an organization. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.organizations.roles.groups.list( - organization_id="organization_id", - role_id="role_id", - from_="from", - take=1, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**organization_id:** `str` — ID of the organization. - -
-
- -
-
- -**role_id:** `str` — ID of the role. - -
-
- -
-
- -**from:** `typing.Optional[str]` — Optional Id from which to start selection. - -
-
- -
-
- -**take:** `typing.Optional[int]` — Number of results per page. Defaults to 50. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Prompts Rendering -
client.prompts.rendering.list(...) -> ListAculsOffsetPaginatedResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Get render setting configurations for all screens. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.prompts.rendering.list( - fields="fields", - include_fields=True, - page=1, - per_page=1, - include_totals=True, - prompt="prompt", - screen="screen", - rendering_mode="advanced", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**fields:** `typing.Optional[str]` — Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - -
-
- -
-
- -**include_fields:** `typing.Optional[bool]` — Whether specified fields are to be included (default: true) or excluded (false). - -
-
- -
-
- -**page:** `typing.Optional[int]` — Page index of the results to return. First page is 0. - -
-
- -
-
- -**per_page:** `typing.Optional[int]` — Number of results per page. Maximum value is 100, default value is 50. - -
-
- -
-
- -**include_totals:** `typing.Optional[bool]` — Return results inside an object that contains the total configuration count (true) or as a direct array of results (false, default). - -
-
- -
-
- -**prompt:** `typing.Optional[str]` — Name of the prompt to filter by - -
-
- -
-
- -**screen:** `typing.Optional[str]` — Name of the screen to filter by - -
-
- -
-
- -**rendering_mode:** `typing.Optional[AculRenderingModeEnum]` — Rendering mode to filter by - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.prompts.rendering.bulk_update(...) -> BulkUpdateAculResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Learn more about [configuring render settings](https://auth0.com/docs/customize/login-pages/advanced-customizations/getting-started/configure-acul-screens) for advanced customization. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0, AculConfigsItem -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.prompts.rendering.bulk_update( - configs=[ - AculConfigsItem( - prompt="login", - screen="login", - ) - ], -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**configs:** `AculConfigs` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.prompts.rendering.get(...) -> GetAculResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Get render settings for a screen. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.prompts.rendering.get( - prompt="login", - screen="login", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**prompt:** `PromptGroupNameEnum` — Name of the prompt - -
-
- -
-
- -**screen:** `ScreenGroupNameEnum` — Name of the screen - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.prompts.rendering.update(...) -> UpdateAculResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Learn more about [configuring render settings](https://auth0.com/docs/customize/login-pages/advanced-customizations/getting-started/configure-acul-screens) for advanced customization. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.prompts.rendering.update( - prompt="login", - screen="login", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**prompt:** `PromptGroupNameEnum` — Name of the prompt - -
-
- -
-
- -**screen:** `ScreenGroupNameEnum` — Name of the screen - -
-
- -
-
- -**rendering_mode:** `typing.Optional[AculRenderingModeEnum]` — Rendering mode - -
-
- -
-
- -**context_configuration:** `typing.Optional[AculContextConfiguration]` - -
-
- -
-
- -**default_head_tags_disabled:** `typing.Optional[bool]` — Override Universal Login default head tags - -
-
- -
-
- -**use_page_template:** `typing.Optional[bool]` — Use page template with ACUL - -
-
- -
-
- -**head_tags:** `typing.Optional[typing.List[AculHeadTag]]` — An array of head tags - -
-
- -
-
- -**filters:** `typing.Optional[AculFilters]` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Prompts CustomText -
client.prompts.custom_text.get(...) -> GetCustomTextsByLanguageResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve custom text for a specific prompt and language. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.prompts.custom_text.get( - prompt="login", - language="am", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**prompt:** `PromptGroupNameEnum` — Name of the prompt. - -
-
- -
-
- -**language:** `PromptLanguageEnum` — Language to update. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.prompts.custom_text.set(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Set custom text for a specific prompt. Existing texts will be overwritten. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.prompts.custom_text.set( - prompt="login", - language="am", - request={ - "key": "value" - }, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**prompt:** `PromptGroupNameEnum` — Name of the prompt. - -
-
- -
-
- -**language:** `PromptLanguageEnum` — Language to update. - -
-
- -
-
- -**request:** `SetsCustomTextsByLanguageRequestContent` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Prompts Partials -
client.prompts.partials.get(...) -> GetPartialsResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Get template partials for a prompt -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.prompts.partials.get( - prompt="login", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**prompt:** `PartialGroupsEnum` — Name of the prompt. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.prompts.partials.set(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Set template partials for a prompt -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.prompts.partials.set( - prompt="login", - request={ - "key": "value" - }, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**prompt:** `PartialGroupsEnum` — Name of the prompt. - -
-
- -
-
- -**request:** `SetPartialsRequestContent` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## RiskAssessments Settings -
client.risk_assessments.settings.get() -> GetRiskAssessmentsSettingsResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Gets the tenant settings for risk assessments -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.risk_assessments.settings.get() - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.risk_assessments.settings.update(...) -> UpdateRiskAssessmentsSettingsResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Updates the tenant settings for risk assessments -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.risk_assessments.settings.update( - enabled=True, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**enabled:** `bool` — Whether or not risk assessment is enabled. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## RiskAssessments Settings NewDevice -
client.risk_assessments.settings.new_device.get() -> GetRiskAssessmentsSettingsNewDeviceResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Gets the risk assessment settings for the new device assessor -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.risk_assessments.settings.new_device.get() - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.risk_assessments.settings.new_device.update(...) -> UpdateRiskAssessmentsSettingsNewDeviceResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Updates the risk assessment settings for the new device assessor -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.risk_assessments.settings.new_device.update( - remember_for=1, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**remember_for:** `int` — Length of time to remember devices for, in days. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Roles Groups -
client.roles.groups.get(...) -> ListRoleGroupsResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Lists the groups to which the specified role is assigned. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.roles.groups.get( - id="id", - from_="from", - take=1, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — Unique identifier for the role (service-generated). - -
-
- -
-
- -**from:** `typing.Optional[str]` — Optional Id from which to start selection. - -
-
- -
-
- -**take:** `typing.Optional[int]` — Number of results per page. Defaults to 50. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.roles.groups.create(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Assign one or more groups to a specified role. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.roles.groups.create( - id="id", - groups=[ - "groups" - ], -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — Unique identifier for the role (service-generated). - -
-
- -
-
- -**groups:** `typing.List[str]` — Array of group IDs to assign to the role. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.roles.groups.delete(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Unassign one or more groups from a specified role. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.roles.groups.delete( - id="id", - groups=[ - "groups" - ], -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — Unique identifier for the role (service-generated). - -
-
- -
-
- -**groups:** `typing.List[str]` — Array of group IDs to remove from the role. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Roles Permissions -
client.roles.permissions.list(...) -> ListRolePermissionsOffsetPaginatedResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve detailed list (name, description, resource server) of permissions granted by a specified user role. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.roles.permissions.list( - id="id", - per_page=1, - page=1, - include_totals=True, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the role to list granted permissions. - -
-
- -
-
- -**per_page:** `typing.Optional[int]` — Number of results per page. Defaults to 50. - -
-
- -
-
- -**page:** `typing.Optional[int]` — Page index of the results to return. First page is 0. - -
-
- -
-
- -**include_totals:** `typing.Optional[bool]` — Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.roles.permissions.add(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Add one or more [permissions](https://auth0.com/docs/manage-users/access-control/configure-core-rbac/manage-permissions) to a specified user role. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0, PermissionRequestPayload -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.roles.permissions.add( - id="id", - permissions=[ - PermissionRequestPayload( - resource_server_identifier="resource_server_identifier", - permission_name="permission_name", - ) - ], -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the role to add permissions to. - -
-
- -
-
- -**permissions:** `typing.List[PermissionRequestPayload]` — array of resource_server_identifier, permission_name pairs. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.roles.permissions.delete(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Remove one or more [permissions](https://auth0.com/docs/manage-users/access-control/configure-core-rbac/manage-permissions) from a specified user role. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0, PermissionRequestPayload -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.roles.permissions.delete( - id="id", - permissions=[ - PermissionRequestPayload( - resource_server_identifier="resource_server_identifier", - permission_name="permission_name", - ) - ], -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the role to remove permissions from. - -
-
- -
-
- -**permissions:** `typing.List[PermissionRequestPayload]` — array of resource_server_identifier, permission_name pairs. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Roles Users -
client.roles.users.list(...) -> ListRoleUsersPaginatedResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve list of users associated with a specific role. For Dashboard instructions, review [View Users Assigned to Roles](https://auth0.com/docs/manage-users/access-control/configure-core-rbac/roles/view-users-assigned-to-roles). - -**Note**: Returns only users with direct role assignments. For groups assigned to this role, use `GET /api/v2/roles/{id}/groups`. - -This endpoint supports two types of pagination: - -- Offset pagination -- Checkpoint pagination - -Checkpoint pagination must be used if you need to retrieve more than 1000 organization members. - -**Checkpoint Pagination** - -To search by checkpoint, use the following parameters: - -- `from`: Optional id from which to start selection. -- `take`: The total amount of entries to retrieve when using the from parameter. Defaults to 50. - -**Note**: The first time you call this endpoint using checkpoint pagination, omit the `from` parameter. If there are more results, a `next` value is included in the response. You can use this for subsequent API calls. When `next` is no longer included in the response, no pages are remaining. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.roles.users.list( - id="id", - include_totals=True, - from_="from", - take=1, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the role to retrieve a list of users associated with. - -
-
- -
-
- -**include_totals:** `typing.Optional[bool]` — Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - -
-
- -
-
- -**from:** `typing.Optional[str]` — Optional Id from which to start selection. - -
-
- -
-
- -**take:** `typing.Optional[int]` — Number of results per page. Defaults to 50. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.roles.users.assign(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Assign one or more users to an existing user role. To learn more, review [Role-Based Access Control](https://auth0.com/docs/manage-users/access-control/rbac). - -**Note**: New roles cannot be created through this action. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.roles.users.assign( - id="id", - users=[ - "users" - ], -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the role to assign users to. - -
-
- -
-
- -**users:** `typing.List[str]` — user_id's of the users to assign the role to. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## SelfServiceProfiles CustomText -
client.self_service_profiles.custom_text.list(...) -> ListSelfServiceProfileCustomTextResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieves text customizations for a given self-service profile, language and Self-Service Enterprise Configuration flow page. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.self_service_profiles.custom_text.list( - id="id", - language="en", - page="get-started", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The id of the self-service profile. - -
-
- -
-
- -**language:** `SelfServiceProfileCustomTextLanguageEnum` — The language of the custom text. - -
-
- -
-
- -**page:** `SelfServiceProfileCustomTextPageEnum` — The page where the custom text is shown. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.self_service_profiles.custom_text.set(...) -> SetSelfServiceProfileCustomTextResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Updates text customizations for a given self-service profile, language and Self-Service Enterprise Configuration flow page. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.self_service_profiles.custom_text.set( - id="id", - language="en", - page="get-started", - request={ - "key": "value" - }, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The id of the self-service profile. - -
-
- -
-
- -**language:** `SelfServiceProfileCustomTextLanguageEnum` — The language of the custom text. - -
-
- -
-
- -**page:** `SelfServiceProfileCustomTextPageEnum` — The page where the custom text is shown. - -
-
- -
-
- -**request:** `SetSelfServiceProfileCustomTextRequestContent` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## SelfServiceProfiles SsoTicket -
client.self_service_profiles.sso_ticket.create(...) -> CreateSelfServiceProfileSsoTicketResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Creates an access ticket to initiate the Self-Service Enterprise Configuration flow using a self-service profile. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.self_service_profiles.sso_ticket.create( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The id of the self-service profile to retrieve - -
-
- -
-
- -**connection_id:** `typing.Optional[str]` — If provided, this will allow editing of the provided connection during the Self-Service Enterprise Configuration flow - -
-
- -
-
- -**connection_config:** `typing.Optional[SelfServiceProfileSsoTicketConnectionConfig]` - -
-
- -
-
- -**enabled_clients:** `typing.Optional[typing.List[str]]` — List of client_ids that the connection will be enabled for. - -
-
- -
-
- -**enabled_organizations:** `typing.Optional[typing.List[SelfServiceProfileSsoTicketEnabledOrganization]]` — List of organizations that the connection will be enabled for. - -
-
- -
-
- -**ttl_sec:** `typing.Optional[int]` — Number of seconds for which the ticket is valid before expiration. If unspecified or set to 0, this value defaults to 432000 seconds (5 days). - -
-
- -
-
- -**domain_aliases_config:** `typing.Optional[SelfServiceProfileSsoTicketDomainAliasesConfig]` - -
-
- -
-
- -**provisioning_config:** `typing.Optional[SelfServiceProfileSsoTicketProvisioningConfig]` - -
-
- -
-
- -**use_for_organization_discovery:** `typing.Optional[bool]` — Indicates whether a verified domain should be used for organization discovery during authentication. - -
-
- -
-
- -**third_party_client_access_config:** `typing.Optional[ThirdPartyClientAccessConfig]` - -
-
- -
-
- -**universal_logout_config:** `typing.Optional[SelfServiceProfileSsoTicketUniversalLogoutConfig]` - -
-
- -
-
- -**enabled_features:** `typing.Optional[SelfServiceProfileSsoTicketEnabledFeatures]` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.self_service_profiles.sso_ticket.revoke(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Revokes a Self-Service Enterprise Configuration access ticket and invalidates associated sessions. The ticket will no longer be accepted to initiate a Self-Service Enterprise Configuration session. If any users have already started a session through this ticket, their session will be terminated. Clients should expect a `202 Accepted` response upon successful processing, indicating that the request has been acknowledged and that the revocation is underway but may not be fully completed at the time of response. If the specified ticket does not exist, a `202 Accepted` response is also returned, signaling that no further action is required. -Clients should treat these `202` responses as an acknowledgment that the request has been accepted and is in progress, even if the ticket was not found. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.self_service_profiles.sso_ticket.revoke( - profile_id="profileId", - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**profile_id:** `str` — The id of the self-service profile - -
-
- -
-
- -**id:** `str` — The id of the ticket to revoke - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Tenants Settings -
client.tenants.settings.get(...) -> GetTenantSettingsResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve tenant settings. A list of fields to include or exclude may also be specified. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.tenants.settings.get( - fields="fields", - include_fields=True, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**fields:** `typing.Optional[str]` — Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - -
-
- -
-
- -**include_fields:** `typing.Optional[bool]` — Whether specified fields are to be included (true) or excluded (false). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.tenants.settings.update(...) -> UpdateTenantSettingsResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Update settings for a tenant. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.tenants.settings.update() - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**change_password:** `typing.Optional[TenantSettingsPasswordPage]` - -
-
- -
-
- -**device_flow:** `typing.Optional[TenantSettingsDeviceFlow]` — Device Flow configuration. - -
-
- -
-
- -**guardian_mfa_page:** `typing.Optional[TenantSettingsGuardianPage]` - -
-
- -
-
- -**default_audience:** `typing.Optional[str]` — Default audience for API Authorization. - -
-
- -
-
- -**default_directory:** `typing.Optional[str]` — Name of connection used for password grants at the `/token` endpoint. The following connection types are supported: LDAP, AD, Database Connections, Passwordless, Windows Azure Active Directory, ADFS. - -
-
- -
-
- -**error_page:** `typing.Optional[TenantSettingsErrorPage]` - -
-
- -
-
- -**default_token_quota:** `typing.Optional[DefaultTokenQuota]` - -
-
- -
-
- -**flags:** `typing.Optional[TenantSettingsFlags]` - -
-
- -
-
- -**friendly_name:** `typing.Optional[str]` — Friendly name for this tenant. - -
-
- -
-
- -**picture_url:** `typing.Optional[str]` — URL of logo to be shown for this tenant (recommended size: 150x150) - -
-
- -
-
- -**support_email:** `typing.Optional[str]` — End-user support email. - -
-
- -
-
- -**support_url:** `typing.Optional[str]` — End-user support url. - -
-
- -
-
- -**allowed_logout_urls:** `typing.Optional[typing.List[str]]` — URLs that are valid to redirect to after logout from Auth0. - -
-
- -
-
- -**session_lifetime:** `typing.Optional[int]` — Number of hours a session will stay valid. - -
-
- -
-
- -**session_lifetime_in_minutes:** `typing.Optional[int]` — Number of minutes a session will stay valid. Cannot be specified together with `session_lifetime`. - -
-
- -
-
- -**idle_session_lifetime:** `typing.Optional[int]` — Number of hours for which a session can be inactive before the user must log in again. - -
-
- -
-
- -**idle_session_lifetime_in_minutes:** `typing.Optional[int]` — Number of minutes a session can be inactive before the user must log in again. Cannot be specified together with `idle_session_lifetime`. - -
-
- -
-
- -**ephemeral_session_lifetime:** `typing.Optional[int]` — Number of hours an ephemeral (non-persistent) session will stay valid. - -
-
- -
-
- -**idle_ephemeral_session_lifetime:** `typing.Optional[int]` — Number of hours for which an ephemeral (non-persistent) session can be inactive before the user must log in again. - -
-
- -
-
- -**ephemeral_session_lifetime_in_minutes:** `typing.Optional[int]` — Number of minutes an ephemeral (non-persistent) session will stay valid. Cannot be specified together with `ephemeral_session_lifetime`. - -
-
- -
-
- -**idle_ephemeral_session_lifetime_in_minutes:** `typing.Optional[int]` — Number of minutes an ephemeral (non-persistent) session can be inactive before the user must log in again. Cannot be specified together with `idle_ephemeral_session_lifetime`. - -
-
- -
-
- -**sandbox_version:** `typing.Optional[str]` — Selected sandbox version for the extensibility environment - -
-
- -
-
- -**legacy_sandbox_version:** `typing.Optional[str]` — Selected legacy sandbox version for the extensibility environment - -
-
- -
-
- -**default_redirection_uri:** `typing.Optional[str]` — The default absolute redirection uri, must be https - -
-
- -
-
- -**enabled_locales:** `typing.Optional[typing.List[TenantSettingsSupportedLocalesEnum]]` — Supported locales for the user interface - -
-
- -
-
- -**access_token:** `typing.Optional[ResourceServerAccessToken]` - -
-
- -
-
- -**security_headers:** `typing.Optional[TenantSettingsNullableSecurityHeaders]` - -
-
- -
-
- -**session_cookie:** `typing.Optional[SessionCookieSchema]` - -
-
- -
-
- -**sessions:** `typing.Optional[TenantSettingsSessions]` - -
-
- -
-
- -**oidc_logout:** `typing.Optional[TenantOidcLogoutSettings]` - -
-
- -
-
- -**customize_mfa_in_postlogin_action:** `typing.Optional[bool]` — Whether to enable flexible factors for MFA in the PostLogin action - -
-
- -
-
- -**allow_organization_name_in_authentication_api:** `typing.Optional[bool]` — Whether to accept an organization name instead of an ID on auth endpoints - -
-
- -
-
- -**acr_values_supported:** `typing.Optional[typing.List[str]]` — Supported ACR values - -
-
- -
-
- -**mtls:** `typing.Optional[TenantSettingsMtls]` - -
-
- -
-
- -**pushed_authorization_requests_supported:** `typing.Optional[bool]` — Enables the use of Pushed Authorization Requests - -
-
- -
-
- -**authorization_response_iss_parameter_supported:** `typing.Optional[bool]` — Supports iss parameter in authorization responses - -
-
- -
-
- -**dpop_strict_refresh_token_binding:** `typing.Optional[bool]` — Enables strict DPoP refresh token binding per RFC 9449: all refresh tokens issued to public clients that present a DPoP proof are bound to the sender's key, and the binding is validated on every subsequent exchange. When disabled, DPoP refresh token binding may still apply for specific audiences for backwards compatibility. - -
-
- -
-
- -**skip_non_verifiable_callback_uri_confirmation_prompt:** `typing.Optional[bool]` - -Controls whether a confirmation prompt is shown during login flows when the redirect URI uses non-verifiable callback URIs (for example, a custom URI schema such as `myapp://`, or `localhost`). -If set to true, a confirmation prompt will not be shown. We recommend that this is set to false for improved protection from malicious apps. -See https://auth0.com/docs/secure/security-guidance/measures-against-app-impersonation for more information. - -
-
- -
-
- -**resource_parameter_profile:** `typing.Optional[TenantSettingsResourceParameterProfile]` - -
-
- -
-
- -**client_id_metadata_document_supported:** `typing.Optional[bool]` — Whether the authorization server supports retrieving client metadata from a client_id URL. - -
-
- -
-
- -**client_id_metadata_document_dynamic_registration_supported:** `typing.Optional[bool]` — Whether the authorization server supports registering clients dynamically from a client_id URL. Requires client_id_metadata_document_supported to be enabled. - -
-
- -
-
- -**enable_ai_guide:** `typing.Optional[bool]` — Whether Auth0 Guide (AI-powered assistance) is enabled for this tenant. - -
-
- -
-
- -**phone_consolidated_experience:** `typing.Optional[bool]` — Whether Phone Consolidated Experience is enabled for this tenant. - -
-
- -
-
- -**include_session_metadata_in_tenant_logs:** `typing.Optional[bool]` — Whether session metadata is included in specific tenant logs (slo, oidc_backchannel_logout_failed, oidc_backchannel_logout_succeeded). - -
-
- -
-
- -**dynamic_client_registration_security_mode:** `typing.Optional[TenantSettingsDynamicClientRegistrationSecurityMode]` - -
-
- -
-
- -**country_codes:** `typing.Optional[TenantSettingsCountryCodes]` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Users AuthenticationMethods -
client.users.authentication_methods.list(...) -> ListUserAuthenticationMethodsOffsetPaginatedResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve detailed list of authentication methods associated with a specified user. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.users.authentication_methods.list( - id="id", - page=1, - per_page=1, - include_totals=True, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The ID of the user in question. - -
-
- -
-
- -**page:** `typing.Optional[int]` — Page index of the results to return. First page is 0. Default is 0. - -
-
- -
-
- -**per_page:** `typing.Optional[int]` — Number of results per page. Default is 50. - -
-
- -
-
- -**include_totals:** `typing.Optional[bool]` — Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.users.authentication_methods.create(...) -> CreateUserAuthenticationMethodResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Create an authentication method. Authentication methods created via this endpoint will be auto confirmed and should already have verification completed. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.users.authentication_methods.create( - id="id", - type="phone", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The ID of the user to whom the new authentication method will be assigned. - -
-
- -
-
- -**type:** `CreatedUserAuthenticationMethodTypeEnum` - -
-
- -
-
- -**name:** `typing.Optional[str]` — A human-readable label to identify the authentication method. - -
-
- -
-
- -**totp_secret:** `typing.Optional[str]` — Base32 encoded secret for TOTP generation. - -
-
- -
-
- -**phone_number:** `typing.Optional[str]` — Applies to phone authentication methods only. The destination phone number used to send verification codes via text and voice. - -
-
- -
-
- -**email:** `typing.Optional[str]` — Applies to email authentication methods only. The email address used to send verification messages. - -
-
- -
-
- -**preferred_authentication_method:** `typing.Optional[PreferredAuthenticationMethodEnum]` - -
-
- -
-
- -**key_id:** `typing.Optional[str]` — Applies to webauthn/passkey authentication methods only. The id of the credential. - -
-
- -
-
- -**public_key:** `typing.Optional[str]` — Applies to webauthn/passkey authentication methods only. The public key, which is encoded as base64. - -
-
- -
-
- -**aaguid:** `typing.Optional[str]` — Applies to passkeys only. Authenticator Attestation Globally Unique Identifier - -
-
- -
-
- -**relying_party_identifier:** `typing.Optional[str]` — Applies to webauthn authentication methods only. The relying party identifier. - -
-
- -
-
- -**credential_device_type:** `typing.Optional[CredentialDeviceTypeEnum]` - -
-
- -
-
- -**credential_backed_up:** `typing.Optional[bool]` — Applies to passkeys only. Whether the credential was backed up. - -
-
- -
-
- -**identity_user_id:** `typing.Optional[str]` — Applies to passkeys only. The ID of the user identity linked with the authentication method. - -
-
- -
-
- -**user_agent:** `typing.Optional[str]` — Applies to passkeys only. The user-agent of the browser used to create the passkey. - -
-
- -
-
- -**user_handle:** `typing.Optional[str]` — Applies to passkeys only. The user handle of the user identity. - -
-
- -
-
- -**transports:** `typing.Optional[typing.List[str]]` — Applies to passkeys only. The transports used by clients to communicate with the authenticator. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.users.authentication_methods.set(...) -> typing.List[SetUserAuthenticationMethodResponseContent] -
-
- -#### 📝 Description - -
-
- -
-
- -Replace the specified user authentication methods with supplied values. - - Note: Authentication methods supplied through this action do not iterate on existing methods. Instead, any methods passed will overwrite the user’s existing settings. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0, SetUserAuthenticationMethods -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.users.authentication_methods.set( - id="id", - request=[ - SetUserAuthenticationMethods( - type="phone", - ) - ], -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The ID of the user in question. - -
-
- -
-
- -**request:** `SetUserAuthenticationMethodsRequestContent` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.users.authentication_methods.delete_all(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Remove all authentication methods (i.e., enrolled MFA factors) from the specified user account. This action cannot be undone. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.users.authentication_methods.delete_all( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The ID of the user in question. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.users.authentication_methods.get(...) -> GetUserAuthenticationMethodResponseContent -
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.users.authentication_methods.get( - id="id", - authentication_method_id="authentication_method_id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The ID of the user in question. - -
-
- -
-
- -**authentication_method_id:** `str` — The ID of the authentication methods in question. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.users.authentication_methods.delete(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Remove the authentication method with the given ID from the specified user. For more information, review Manage Authentication Methods with Management API. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.users.authentication_methods.delete( - id="id", - authentication_method_id="authentication_method_id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The ID of the user in question. - -
-
- -
-
- -**authentication_method_id:** `str` — The ID of the authentication method to delete. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.users.authentication_methods.update(...) -> UpdateUserAuthenticationMethodResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Modify the authentication method with the given ID from the specified user. For more information, review Manage Authentication Methods with Management API. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.users.authentication_methods.update( - id="id", - authentication_method_id="authentication_method_id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — The ID of the user in question. - -
-
- -
-
- -**authentication_method_id:** `str` — The ID of the authentication method to update. - -
-
- -
-
- -**name:** `typing.Optional[str]` — A human-readable label to identify the authentication method. - -
-
- -
-
- -**preferred_authentication_method:** `typing.Optional[PreferredAuthenticationMethodEnum]` — Preferred phone authentication method - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Users Authenticators -
client.users.authenticators.delete_all(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Remove all authenticators registered to a given user ID, such as OTP, email, phone, and push-notification. This action cannot be undone. For more information, review [Manage Authentication Methods with Management API](https://auth0.com/docs/secure/multi-factor-authentication/manage-mfa-auth0-apis/manage-authentication-methods-with-management-api). -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.users.authenticators.delete_all( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the user to delete. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Users ConnectedAccounts -
client.users.connected_accounts.list(...) -> ListUserConnectedAccountsResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve all connected accounts associated with the user. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.users.connected_accounts.list( - id="id", - from_="from", - take=1, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the user to list connected accounts for. - -
-
- -
-
- -**from:** `typing.Optional[str]` — Optional Id from which to start selection. - -
-
- -
-
- -**take:** `typing.Optional[int]` — Number of results to return. Defaults to 10 with a maximum of 20 - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Users EffectivePermissions -
client.users.effective_permissions.list(...) -> ListUserEffectivePermissionsResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Returns the list of effective permissions for a user, taking into account permissions granted directly to the user, as well as those inherited through roles and group memberships. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.users.effective_permissions.list( - id="id", - from_="from", - take=1, - resource_server_identifier="resource_server_identifier", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the user to retrieve the permissions for. - -
-
- -
-
- -**resource_server_identifier:** `str` — The identifier of the resource server for which to calculate user permissions. - -
-
- -
-
- -**from:** `typing.Optional[str]` — Optional Id from which to start selection. - -
-
- -
-
- -**take:** `typing.Optional[int]` — Number of results per page. Defaults to 50. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Users EffectiveRoles -
client.users.effective_roles.list(...) -> ListUserEffectiveRolesResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve detailed list of effective roles for a user, including roles assigned directly and through group memberships. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.users.effective_roles.list( - id="id", - from_="from", - take=1, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the user to list effective roles for. - -
-
- -
-
- -**from:** `typing.Optional[str]` — Optional Id from which to start selection. - -
-
- -
-
- -**take:** `typing.Optional[int]` — Number of results per page. Defaults to 50. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Users Enrollments -
client.users.enrollments.get(...) -> typing.List[UsersEnrollment] -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve the first [multi-factor authentication](https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors) enrollment that a specific user has confirmed. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.users.enrollments.get( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the user to list enrollments for. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Users Groups -
client.users.groups.get(...) -> GetUserGroupsPaginatedResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -List all groups to which this user belongs. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.users.groups.get( - id="id", - fields="fields", - include_fields=True, - include_totals=True, - from_="from", - take=1, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the user to list groups for. - -
-
- -
-
- -**fields:** `typing.Optional[str]` — A comma separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields - -
-
- -
-
- -**include_fields:** `typing.Optional[bool]` — Whether specified fields are to be included (true) or excluded (false). - -
-
- -
-
- -**include_totals:** `typing.Optional[bool]` — Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). The returned total reflects at most 1,000 results. - -
-
- -
-
- -**from:** `typing.Optional[str]` — Optional Id from which to start selection. - -
-
- -
-
- -**take:** `typing.Optional[int]` — Number of results per page. Defaults to 50. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Users Identities -
client.users.identities.link(...) -> typing.List[UserIdentity] -
-
- -#### 📝 Description - -
-
- -
-
- -Link two user accounts together forming a primary and secondary relationship. On successful linking, the endpoint returns the new array of the primary account identities. - -Note: There are two ways of invoking the endpoint: - -- With the authenticated primary account's JWT in the Authorization header, which has the `update:current_user_identities` scope: - - ```http - POST /api/v2/users/PRIMARY_ACCOUNT_USER_ID/identities - Authorization: "Bearer PRIMARY_ACCOUNT_JWT" - { - "link_with": "SECONDARY_ACCOUNT_JWT" - } - ``` - - In this case, only the `link_with` param is required in the body, which also contains the JWT obtained upon the secondary account's authentication. - -- With a token generated by the API V2 containing the `update:users` scope: - - ```http - POST /api/v2/users/PRIMARY_ACCOUNT_USER_ID/identities - Authorization: "Bearer YOUR_API_V2_TOKEN" - { - "provider": "SECONDARY_ACCOUNT_PROVIDER", - "connection_id": "SECONDARY_ACCOUNT_CONNECTION_ID(OPTIONAL)", - "user_id": "SECONDARY_ACCOUNT_USER_ID" - } - ``` - - In this case you need to send `provider` and `user_id` in the body. Optionally you can also send the `connection_id` param which is suitable for identifying a particular database connection for the 'auth0' provider. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.users.identities.link( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the primary user account to link a second user account to. - -
-
- -
-
- -**provider:** `typing.Optional[UserIdentityProviderEnum]` — Identity provider of the secondary user account being linked. - -
-
- -
-
- -**connection_id:** `typing.Optional[str]` — connection_id of the secondary user account being linked when more than one `auth0` database provider exists. - -
-
- -
-
- -**user_id:** `typing.Optional[UserId]` — user_id of the secondary user account being linked. - -
-
- -
-
- -**link_with:** `typing.Optional[str]` — JWT for the secondary account being linked. If sending this parameter, `provider`, `user_id`, and `connection_id` must not be sent. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.users.identities.delete(...) -> DeleteUserIdentityResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Unlink a specific secondary account from a target user. This action requires the ID of both the target user and the secondary account. - -Unlinking the secondary account removes it from the identities array of the target user and creates a new standalone profile for the secondary account. To learn more, review [Unlink User Accounts](https://auth0.com/docs/manage-users/user-accounts/user-account-linking/unlink-user-accounts). -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.users.identities.delete( - id="id", - provider="ad", - user_id="user_id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the primary user account. - -
-
- -
-
- -**provider:** `UserIdentityProviderEnum` — Identity provider name of the secondary linked account (e.g. `google-oauth2`). - -
-
- -
-
- -**user_id:** `str` — ID of the secondary linked account (e.g. `123456789081523216417` part after the `|` in `google-oauth2|123456789081523216417`). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Users Logs -
client.users.logs.list(...) -> UserListLogOffsetPaginatedResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve log events for a specific user. - -Note: For more information on all possible event types, their respective acronyms and descriptions, see Log Event Type Codes. - -For more information on the list of fields that can be used in `sort`, see Searchable Fields. - -Auth0 limits the number of logs you can return by search criteria to 100 logs per request. Furthermore, you may only paginate through up to 1,000 search results. If you exceed this threshold, please redefine your search. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.users.logs.list( - id="id", - page=1, - per_page=1, - sort="sort", - include_totals=True, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the user of the logs to retrieve - -
-
- -
-
- -**page:** `typing.Optional[int]` — Page index of the results to return. First page is 0. - -
-
- -
-
- -**per_page:** `typing.Optional[int]` — Number of results per page. Paging is disabled if parameter not sent. - -
-
- -
-
- -**sort:** `typing.Optional[str]` — Field to sort by. Use `fieldname:1` for ascending order and `fieldname:-1` for descending. - -
-
- -
-
- -**include_totals:** `typing.Optional[bool]` — Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Users Multifactor -
client.users.multifactor.invalidate_remember_browser(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Invalidate all remembered browsers across all [authentication factors](https://auth0.com/docs/multifactor-authentication) for a user. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.users.multifactor.invalidate_remember_browser( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the user to invalidate all remembered browsers and authentication factors for. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.users.multifactor.delete_provider(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Remove a [multifactor](https://auth0.com/docs/multifactor-authentication) authentication configuration from a user's account. This forces the user to manually reconfigure the multi-factor provider. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.users.multifactor.delete_provider( - id="id", - provider="duo", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the user to remove a multifactor configuration from. - -
-
- -
-
- -**provider:** `UserMultifactorProviderEnum` — The multi-factor provider. Supported values 'duo' or 'google-authenticator' - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Users Organizations -
client.users.organizations.list(...) -> ListUserOrganizationsOffsetPaginatedResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve list of the specified user's current Organization memberships. User must be specified by user ID. For more information, review [Auth0 Organizations](https://auth0.com/docs/manage-users/organizations). - -This endpoint supports two types of pagination: - -- Offset pagination -- Checkpoint pagination - -Checkpoint pagination must be used if you need to retrieve more than 1000 organizations. - -**Checkpoint Pagination** - -To search by checkpoint, use the following parameters: - -- `from`: Optional id from which to start selection. -- `take`: The total number of entries to retrieve when using the `from` parameter. Defaults to 50. - -**Note**: The first time you call this endpoint using checkpoint pagination, omit the `from` parameter. If there are more results, a `next` value is included in the response. You can use this for subsequent API calls. When `next` is no longer included in the response, no pages are remaining. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.users.organizations.list( - id="id", - page=1, - per_page=1, - include_totals=True, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the user to retrieve the organizations for. - -
-
- -
-
- -**page:** `typing.Optional[int]` — Page index of the results to return. First page is 0. - -
-
- -
-
- -**per_page:** `typing.Optional[int]` — Number of results per page. Defaults to 50. - -
-
- -
-
- -**include_totals:** `typing.Optional[bool]` — Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Users Permissions -
client.users.permissions.list(...) -> ListUserPermissionsOffsetPaginatedResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve all permissions associated with the user. - -**Note**: Returns only permissions from direct assignments and directly assigned roles. For permissions a user has via group-based role assignments, use `GET /api/v2/users/{id}/effective-permissions`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.users.permissions.list( - id="id", - per_page=1, - page=1, - include_totals=True, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the user to retrieve the permissions for. - -
-
- -
-
- -**per_page:** `typing.Optional[int]` — Number of results per page. - -
-
- -
-
- -**page:** `typing.Optional[int]` — Page index of the results to return. First page is 0. - -
-
- -
-
- -**include_totals:** `typing.Optional[bool]` — Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.users.permissions.create(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Assign permissions to a user. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0, PermissionRequestPayload -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.users.permissions.create( - id="id", - permissions=[ - PermissionRequestPayload( - resource_server_identifier="resource_server_identifier", - permission_name="permission_name", - ) - ], -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the user to assign permissions to. - -
-
- -
-
- -**permissions:** `typing.List[PermissionRequestPayload]` — List of permissions to add to this user. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.users.permissions.delete(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Remove permissions from a user. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0, PermissionRequestPayload -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.users.permissions.delete( - id="id", - permissions=[ - PermissionRequestPayload( - resource_server_identifier="resource_server_identifier", - permission_name="permission_name", - ) - ], -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the user to remove permissions from. - -
-
- -
-
- -**permissions:** `typing.List[PermissionRequestPayload]` — List of permissions to remove from this user. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Users RiskAssessments -
client.users.risk_assessments.clear(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Clear risk assessment assessors for a specific user -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.users.risk_assessments.clear( - id="id", - connection="connection", - assessors=[ - "new-device" - ], -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the user to clear assessors for. - -
-
- -
-
- -**connection:** `str` — The name of the connection containing the user whose assessors should be cleared. - -
-
- -
-
- -**assessors:** `typing.List[AssessorsTypeEnum]` — List of assessors to clear. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Users Roles -
client.users.roles.list(...) -> ListUserRolesOffsetPaginatedResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve detailed list of all user roles currently assigned to a user. - -**Note**: This action retrieves all roles assigned to a user in the context of your whole tenant. To retrieve Organization-specific roles, use the following endpoint: [Get user roles assigned to an Organization member](https://auth0.com/docs/api/management/v2/organizations/get-organization-member-roles). - -**Note**: Returns only direct role assignments. To also include group-based role assignments, use `GET /api/v2/users/{id}/effective-roles`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.users.roles.list( - id="id", - per_page=1, - page=1, - include_totals=True, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the user to list roles for. - -
-
- -
-
- -**per_page:** `typing.Optional[int]` — Number of results per page. - -
-
- -
-
- -**page:** `typing.Optional[int]` — Page index of the results to return. First page is 0. - -
-
- -
-
- -**include_totals:** `typing.Optional[bool]` — Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.users.roles.assign(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Assign one or more existing user roles to a user. For more information, review [Role-Based Access Control](https://auth0.com/docs/manage-users/access-control/rbac). - -**Note**: New roles cannot be created through this action. Additionally, this action is used to assign roles to a user in the context of your whole tenant. To assign roles in the context of a specific Organization, use the following endpoint: [Assign user roles to an Organization member](https://auth0.com/docs/api/management/v2/organizations/post-organization-member-roles). -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.users.roles.assign( - id="id", - roles=[ - "roles" - ], -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the user to associate roles with. - -
-
- -
-
- -**roles:** `typing.List[str]` — List of roles IDs to associated with the user. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.users.roles.delete(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Remove one or more specified user roles assigned to a user. - -**Note**: This action removes a role from a user in the context of your whole tenant. If you want to unassign a role from a user in the context of a specific Organization, use the following endpoint: [Delete user roles from an Organization member](https://auth0.com/docs/api/management/v2/organizations/delete-organization-member-roles). -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.users.roles.delete( - id="id", - roles=[ - "roles" - ], -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the user to remove roles from. - -
-
- -
-
- -**roles:** `typing.List[str]` — List of roles IDs to remove from the user. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Users RefreshToken -
client.users.refresh_token.list(...) -> ListRefreshTokensPaginatedResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve details for a user's refresh tokens. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.users.refresh_token.list( - user_id="user_id", - include_totals=True, - from_="from", - take=1, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**user_id:** `str` — ID of the user to get refresh tokens for - -
-
- -
-
- -**include_totals:** `typing.Optional[bool]` — Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - -
-
- -
-
- -**from:** `typing.Optional[str]` — An optional cursor from which to start the selection (exclusive). - -
-
- -
-
- -**take:** `typing.Optional[int]` — Number of results per page. Defaults to 50. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.users.refresh_token.delete(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Delete all refresh tokens for a user. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.users.refresh_token.delete( - user_id="user_id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**user_id:** `str` — ID of the user to get remove refresh tokens for - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Users Sessions -
client.users.sessions.list(...) -> ListUserSessionsPaginatedResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve details for a user's sessions. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.users.sessions.list( - user_id="user_id", - include_totals=True, - from_="from", - take=1, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**user_id:** `str` — ID of the user to get sessions for - -
-
- -
-
- -**include_totals:** `typing.Optional[bool]` — Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - -
-
- -
-
- -**from:** `typing.Optional[str]` — An optional cursor from which to start the selection (exclusive). - -
-
- -
-
- -**take:** `typing.Optional[int]` — Number of results per page. Defaults to 50. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.users.sessions.delete(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Delete all sessions for a user. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.users.sessions.delete( - user_id="user_id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**user_id:** `str` — ID of the user to get sessions for - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Users EffectivePermissions Sources Roles -
client.users.effective_permissions.sources.roles.list(...) -> ListUserEffectivePermissionRoleSourcesResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Lists the roles which grant the user a given permission, including roles assigned directly to the user and those inherited through group memberships. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.users.effective_permissions.sources.roles.list( - id="id", - from_="from", - take=1, - resource_server_identifier="resource_server_identifier", - permission_name="permission_name", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the user to retrieve the permissions for. - -
-
- -
-
- -**resource_server_identifier:** `str` — The identifier of the resource server for which to calculate user permissions. - -
-
- -
-
- -**permission_name:** `str` — Name of this permission - -
-
- -
-
- -**from:** `typing.Optional[str]` — Optional Id from which to start selection. - -
-
- -
-
- -**take:** `typing.Optional[int]` — Number of results per page. Defaults to 50. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Users EffectiveRoles Sources Groups -
client.users.effective_roles.sources.groups.list(...) -> ListUserRoleSourceGroupsResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Lists the groups that grant a user a specific role. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.users.effective_roles.sources.groups.list( - id="id", - role_id="role_id", - from_="from", - take=1, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the user to list role source groups for. - -
-
- -
-
- -**role_id:** `str` — ID of the role to get source groups for. - -
-
- -
-
- -**from:** `typing.Optional[str]` — Optional Id from which to start selection. - -
-
- -
-
- -**take:** `typing.Optional[int]` — Number of results per page. Defaults to 50. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## VerifiableCredentials Verification Templates -
client.verifiable_credentials.verification.templates.list(...) -> ListVerifiableCredentialTemplatesPaginatedResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -List verifiable credential templates. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.verifiable_credentials.verification.templates.list( - from_="from", - take=1, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**from:** `typing.Optional[str]` — Optional Id from which to start selection. - -
-
- -
-
- -**take:** `typing.Optional[int]` — Number of results per page. Defaults to 50. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.verifiable_credentials.verification.templates.create(...) -> CreateVerifiableCredentialTemplateResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Create a verifiable credential template. -
-
-
-
- #### 🔌 Usage
@@ -45577,210 +12,16 @@ Create a verifiable credential template.
```python -from auth0.management import Auth0, MdlPresentationRequest, MdlPresentationRequestProperties, MdlPresentationProperties -from auth0.management.environment import Auth0Environment +from auth0.management import Auth0, SendParamsContent client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, + base_url="https://yourhost.com/path/to/api", ) -client.verifiable_credentials.verification.templates.create( - name="name", - type="type", - dialect="dialect", - presentation=MdlPresentationRequest( - org_iso_18013_5_1_m_dl=MdlPresentationRequestProperties( - org_iso_18013_5_1=MdlPresentationProperties(), - ), +client.send( + request=SendParamsContent( + content="content", ), - well_known_trusted_issuers="well_known_trusted_issuers", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**name:** `str` - -
-
- -
-
- -**type:** `str` - -
-
- -
-
- -**dialect:** `str` - -
-
- -
-
- -**presentation:** `MdlPresentationRequest` - -
-
- -
-
- -**well_known_trusted_issuers:** `str` - -
-
- -
-
- -**custom_certificate_authority:** `typing.Optional[str]` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - - - -
- -
client.verifiable_credentials.verification.templates.get(...) -> GetVerifiableCredentialTemplateResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Get a verifiable credential template. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.verifiable_credentials.verification.templates.get( - id="id", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `str` — ID of the template to retrieve. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.verifiable_credentials.verification.templates.delete(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Delete a verifiable credential template. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment - -client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, -) - -client.verifiable_credentials.verification.templates.delete( - id="id", ) ``` @@ -45797,7 +38,7 @@ client.verifiable_credentials.verification.templates.delete(
-**id:** `str` — ID of the template to retrieve. +**request:** `SendParams`
@@ -45817,24 +58,10 @@ client.verifiable_credentials.verification.templates.delete(
-
client.verifiable_credentials.verification.templates.update(...) -> UpdateVerifiableCredentialTemplateResponseContent -
-
- -#### 📝 Description - -
-
- +
client.send_all_of(...)
-Update a verifiable credential template. -
-
-
-
- #### 🔌 Usage
@@ -45845,15 +72,14 @@ Update a verifiable credential template. ```python from auth0.management import Auth0 -from auth0.management.environment import Auth0Environment client = Auth0( - token="", - environment=Auth0Environment.DEFAULT, + base_url="https://yourhost.com/path/to/api", ) -client.verifiable_credentials.verification.templates.update( - id="id", +client.send_all_of( + connection_id="connection_id", + type="HTML", ) ``` @@ -45870,23 +96,7 @@ client.verifiable_credentials.verification.templates.update(
-**id:** `str` — ID of the template to retrieve. - -
-
- -
-
- -**name:** `typing.Optional[str]` - -
-
- -
-
- -**type:** `typing.Optional[str]` +**connection_id:** `str`
@@ -45894,7 +104,7 @@ client.verifiable_credentials.verification.templates.update(
-**dialect:** `typing.Optional[str]` +**type:** `SendBaseType`
@@ -45902,7 +112,7 @@ client.verifiable_credentials.verification.templates.update(
-**presentation:** `typing.Optional[MdlPresentationRequest]` +**subject:** `typing.Optional[str]`
@@ -45910,7 +120,7 @@ client.verifiable_credentials.verification.templates.update(
-**well_known_trusted_issuers:** `typing.Optional[str]` +**content:** `typing.Optional[str]`
@@ -45918,7 +128,7 @@ client.verifiable_credentials.verification.templates.update(
-**version:** `typing.Optional[float]` +**template_id:** `typing.Optional[int]`
diff --git a/src/auth0/management/__init__.py b/src/auth0/management/__init__.py index 181237c9..ce900947 100644 --- a/src/auth0/management/__init__.py +++ b/src/auth0/management/__init__.py @@ -7,8183 +7,39 @@ if typing.TYPE_CHECKING: from .types import ( - Action, - ActionBase, - ActionBinding, - ActionBindingRef, - ActionBindingRefTypeEnum, - ActionBindingTypeEnum, - ActionBindingWithRef, - ActionBuildStatusEnum, - ActionDeployedVersion, - ActionError, - ActionExecutionResult, - ActionExecutionStatusEnum, - ActionModuleAction, - ActionModuleDependency, - ActionModuleDependencyRequest, - ActionModuleListItem, - ActionModuleReference, - ActionModuleSecret, - ActionModuleSecretRequest, - ActionModuleVersion, - ActionModuleVersionReference, - ActionSecretRequest, - ActionSecretResponse, - ActionTrigger, - ActionTriggerCompatibleTrigger, - ActionTriggerTypeEnum, - ActionVersion, - ActionVersionBuildStatusEnum, - ActionVersionDependency, - AculClientFilter, - AculClientFilterById, - AculClientFilterByMetadata, - AculClientMetadata, - AculConfigs, - AculConfigsItem, - AculContextConfiguration, - AculContextConfigurationItem, - AculContextEnum, - AculDomainFilter, - AculDomainFilterById, - AculDomainFilterByMetadata, - AculDomainMetadata, - AculFilters, - AculHeadTag, - AculHeadTagAttributes, - AculHeadTagContent, - AculMatchTypeEnum, - AculOrganizationFilter, - AculOrganizationFilterById, - AculOrganizationFilterByMetadata, - AculOrganizationMetadata, - AculRenderingModeEnum, - AddOrganizationConnectionResponseContent, - AdvanceRampResponseContent, - AgentMetadata, - AgentResponseContent, - AllocationItem, - AllocationRequestItem, - AllocationStrategyEnum, - AnomalyIpFormat, - AnonymousSessions, - AppMetadata, - AssessorsTypeEnum, - AssociateOrganizationClientGrantResponseContent, - AsyncApprovalNotificationsChannelsEnum, - AttackProtectionCaptchaArkoseResponseContent, - AttackProtectionCaptchaAuthChallengeRequest, - AttackProtectionCaptchaAuthChallengeResponseContent, - AttackProtectionCaptchaFriendlyCaptchaResponseContent, - AttackProtectionCaptchaHcaptchaResponseContent, - AttackProtectionCaptchaProviderId, - AttackProtectionCaptchaRecaptchaEnterpriseResponseContent, - AttackProtectionCaptchaRecaptchaV2ResponseContent, - AttackProtectionCaptchaSimpleCaptchaResponseContent, - AttackProtectionUpdateCaptchaArkose, - AttackProtectionUpdateCaptchaFriendlyCaptcha, - AttackProtectionUpdateCaptchaHcaptcha, - AttackProtectionUpdateCaptchaRecaptchaEnterprise, - AttackProtectionUpdateCaptchaRecaptchaV2, - AuthenticationFlowEnum, - AuthenticationMethodTypeEnum, - AuthenticationTypeEnum, - B2BIntegrationConfiguration, - B2BIntegrationConfigurationIntegrationTypeEnum, - BadRequestSchema, - BadRequestSchemaError, - BotDetectionAllowlist, - BotDetectionChallengePolicyPasswordFlowEnum, - BotDetectionChallengePolicyPasswordResetFlowEnum, - BotDetectionChallengePolicyPasswordlessFlowEnum, - BotDetectionCidrBlock, - BotDetectionIPv4, - BotDetectionIPv6, - BotDetectionIPv6CidrBlock, - BotDetectionIpAddressOrCidrBlock, - BotDetectionLevelEnum, - BotDetectionMonitoringModeEnabled, - BrandingColors, - BrandingFont, - BrandingPageBackground, - BrandingThemeBorders, - BrandingThemeBordersButtonsStyleEnum, - BrandingThemeBordersInputsStyleEnum, - BrandingThemeColors, - BrandingThemeColorsCaptchaWidgetThemeEnum, - BrandingThemeFontBodyText, - BrandingThemeFontButtonsText, - BrandingThemeFontInputLabels, - BrandingThemeFontLinks, - BrandingThemeFontLinksStyleEnum, - BrandingThemeFontSubtitle, - BrandingThemeFontTitle, - BrandingThemeFonts, - BrandingThemeIdentifiers, - BrandingThemeIdentifiersLoginDisplayEnum, - BrandingThemeIdentifiersPhoneDisplay, - BrandingThemeIdentifiersPhoneDisplayFormattingEnum, - BrandingThemeIdentifiersPhoneDisplayMaskingEnum, - BrandingThemePageBackground, - BrandingThemePageBackgroundPageLayoutEnum, - BrandingThemeWidget, - BrandingThemeWidgetHeaderTextAlignmentEnum, - BrandingThemeWidgetLogoPositionEnum, - BrandingThemeWidgetSocialButtonsLayoutEnum, - BreachedPasswordDetectionAdminNotificationFrequencyEnum, - BreachedPasswordDetectionMethodEnum, - BreachedPasswordDetectionPreChangePasswordShieldsEnum, - BreachedPasswordDetectionPreChangePasswordStage, - BreachedPasswordDetectionPreUserRegistrationShieldsEnum, - BreachedPasswordDetectionPreUserRegistrationStage, - BreachedPasswordDetectionShieldsEnum, - BreachedPasswordDetectionStage, - BruteForceProtectionFormSubmissionModeEnum, - BruteForceProtectionModeEnum, - BruteForceProtectionShieldsEnum, - BulkUpdateAculResponseContent, - CertificateSubjectDnCredential, - CertificateSubjectDnCredentialTypeEnum, - ChangePasswordTicketIdentity, - ChangePasswordTicketResponseContent, - CimdExternalMetadataCreatedByEnum, - CimdMappedClientAuthenticationMethods, - CimdMappedClientAuthenticationMethodsPrivateKeyJwt, - CimdMappedClientFields, - CimdMappedPrivateKeyJwtCredential, - CimdValidationResult, - Client, - ClientAddonAws, - ClientAddonAzureBlob, - ClientAddonAzureSb, - ClientAddonBox, - ClientAddonCloudBees, - ClientAddonConcur, - ClientAddonDropbox, - ClientAddonEchoSign, - ClientAddonEgnyte, - ClientAddonFirebase, - ClientAddonLayer, - ClientAddonMscrm, - ClientAddonNewRelic, - ClientAddonOag, - ClientAddonOffice365, - ClientAddonRms, - ClientAddonSalesforce, - ClientAddonSalesforceApi, - ClientAddonSalesforceSandboxApi, - ClientAddonSaml, - ClientAddonSamlMapping, - ClientAddonSapapi, - ClientAddonSentry, - ClientAddonSharePoint, - ClientAddonSharePointExternalUrl, - ClientAddonSlack, - ClientAddonSpringCm, - ClientAddonSsoIntegration, - ClientAddonWams, - ClientAddonWsFed, - ClientAddonZendesk, - ClientAddonZoom, - ClientAddons, - ClientAnonymousSessionTransferNetworkBindingEnum, - ClientAppTypeEnum, - ClientAsyncApprovalNotificationsChannelsApiPatchConfiguration, - ClientAsyncApprovalNotificationsChannelsApiPostConfiguration, - ClientAuthenticationMethod, - ClientAuthenticationMethodPrivateKeyJwt, - ClientAuthenticationMethodPrivateKeyJwtCredentials, - ClientAuthenticationMethodSelfSignedTlsClientAuth, - ClientAuthenticationMethodSelfSignedTlsClientAuthCredentials, - ClientAuthenticationMethodTlsClientAuth, - ClientAuthenticationMethodTlsClientAuthCredentials, - ClientComplianceLevelEnum, - ClientCreateAuthenticationMethod, - ClientCreateAuthenticationMethodPrivateKeyJwt, - ClientCreateAuthenticationMethodPrivateKeyJwtCredentials, - ClientCreateAuthenticationMethodTlsClientAuth, - ClientCreateAuthenticationMethodTlsClientAuthCredentials, - ClientCredential, - ClientCredentialAlgorithmEnum, - ClientCredentialTypeEnum, - ClientDefaultOrganization, - ClientDefaultOrganizationFlowsEnum, - ClientEncryptionKey, - ClientExternalMetadataCreatedByEnum, - ClientExternalMetadataStatusEnum, - ClientExternalMetadataTypeEnum, - ClientGrantAllowAnyOrganizationEnum, - ClientGrantDefaultForEnum, - ClientGrantOrganizationNullableUsageEnum, - ClientGrantOrganizationUsageEnum, - ClientGrantResponseContent, - ClientGrantSortFieldEnum, - ClientGrantSubjectTypeEnum, - ClientJwtConfiguration, - ClientJwtConfigurationScopes, - ClientMetadata, - ClientMobile, - ClientMobileAndroid, - ClientMobileiOs, - ClientMyOrganizationConfigurationAllowedStrategiesEnum, - ClientMyOrganizationConfigurationThirdPartyClientAccessAllowedValuesEnum, - ClientMyOrganizationConfigurationThirdPartyClientAccessDefaultValueEnum, - ClientMyOrganizationDeletionBehaviorEnum, - ClientMyOrganizationPatchConfiguration, - ClientMyOrganizationPostConfiguration, - ClientMyOrganizationResponseConfiguration, - ClientMyOrganizationThirdPartyClientAccessConfiguration, - ClientOidcBackchannelLogoutInitiators, - ClientOidcBackchannelLogoutInitiatorsEnum, - ClientOidcBackchannelLogoutInitiatorsModeEnum, - ClientOidcBackchannelLogoutSessionMetadata, - ClientOidcBackchannelLogoutSettings, - ClientOidcSupport, - ClientOidcSupportAllowedScopesEnum, - ClientOidcSupportPatch, - ClientOidcSupportPost, - ClientOrganizationDiscoveryEnum, - ClientOrganizationRequireBehaviorEnum, - ClientOrganizationRequireBehaviorPatchEnum, - ClientOrganizationUsageEnum, - ClientOrganizationUsagePatchEnum, - ClientProfile, - ClientProfileApplyPolicy, - ClientProfileApplyPolicyExternalMetadataCreatedByEnum, - ClientProfileApplyPolicyExternalMetadataTypeEnum, - ClientProfileClientConfiguration, - ClientProfileClientConfigurationOidcSupport, - ClientProfileClientConfigurationOidcSupportAllowedScopesEnum, - ClientProfileClientConfigurationOidcSupportDefaultValue, - ClientProfileClientConfigurationOrganizationDiscoveryMethodEnum, - ClientProfileClientConfigurationOrganizationDiscoveryMethods, - ClientProfileClientConfigurationOrganizationRequireBehavior, - ClientProfileClientConfigurationOrganizationRequireBehaviorEnum, - ClientProfileClientConfigurationOrganizationUsage, - ClientProfileClientConfigurationOrganizationUsageEnum, - ClientProfileClientConfigurationRefreshToken, - ClientProfileClientConfigurationRequireProofOfPossession, - ClientProfileDescription, - ClientProfileId, - ClientProfileName, - ClientProfileRefreshTokenIdleTokenLifetime, - ClientProfileRefreshTokenLeeway, - ClientProfileRefreshTokenTokenLifetime, - ClientRedirectionPolicyEnum, - ClientRefreshTokenConfiguration, - ClientRefreshTokenPolicy, - ClientSearchResponse, - ClientSessionTransferAllowedAuthenticationMethodsEnum, - ClientSessionTransferConfiguration, - ClientSessionTransferDelegationConfiguration, - ClientSessionTransferDelegationDeviceBindingEnum, - ClientSessionTransferDeviceBindingEnum, - ClientSignedRequestObjectWithCredentialId, - ClientSignedRequestObjectWithPublicKey, - ClientSigningKey, - ClientSigningKeys, - ClientSortFieldEnum, - ClientThirdPartySecurityModeEnum, - ClientTokenEndpointAuthMethodEnum, - ClientTokenEndpointAuthMethodOrNullEnum, - ClientTokenExchangeConfiguration, - ClientTokenExchangeConfigurationOrNull, - ClientTokenExchangeTypeEnum, - ClientTokenVaultPrivilegedAccessWithCredentialId, - ClientTokenVaultPrivilegedAccessWithPublicKey, - ConflictSchema, - ConflictSchemaError, - ConnectedAccount, - ConnectedAccountAccessTypeEnum, - ConnectionAccessTokenUrloAuth1, - ConnectionAcrValuesSupported, - ConnectionAdminAccessTokenExpiresInGoogleApps, - ConnectionAdminAccessTokenGoogleApps, - ConnectionAdminRefreshTokenGoogleApps, - ConnectionAgentIpad, - ConnectionAgentModeAd, - ConnectionAgentVersionAd, - ConnectionAllowedAudiencesGoogleOAuth2, - ConnectionApiBehaviorEnum, - ConnectionApiEnableGroups, - ConnectionApiEnableGroupsGoogleApps, - ConnectionApiEnableUsers, - ConnectionApiEnableUsersGoogleApps, - ConnectionAppDomainAzureAd, - ConnectionAssertionDecryptionAlgorithmProfileEnum, - ConnectionAssertionDecryptionSettings, - ConnectionAttributeMapAttributes, - ConnectionAttributeMapOidc, - ConnectionAttributeMapOkta, - ConnectionAttributeMapUserinfoScope, - ConnectionAttributes, - ConnectionAuthParamsAdditionalPropertiesOAuth2, - ConnectionAuthParamsEmail, - ConnectionAuthParamsMap, - ConnectionAuthParamsOAuth2, - ConnectionAuthenticationMethods, - ConnectionAuthenticationPurpose, - ConnectionAuthorizationEndpoint, - ConnectionBaseUrlExact, - ConnectionBruteForceProtection, - ConnectionCalculatedThumbprintSaml, - ConnectionCertsAd, - ConnectionClaimTypesSupported, - ConnectionClaimsLocalesSupported, - ConnectionClaimsParameterSupported, - ConnectionClaimsSupported, - ConnectionClientId, - ConnectionClientIdAmazon, - ConnectionClientIdAzureAd, - ConnectionClientIdBitbucket, - ConnectionClientIdExact, - ConnectionClientIdFacebook, - ConnectionClientIdGoogleApps, - ConnectionClientIdGoogleOAuth2, - ConnectionClientIdLine, - ConnectionClientIdLinkedin, - ConnectionClientIdOAuth1, - ConnectionClientIdOAuth2, - ConnectionClientIdOidc, - ConnectionClientIdPaypal, - ConnectionClientIdSalesforce, - ConnectionClientIdSamlxaaRequestingApp, - ConnectionClientIdWindowsLive, - ConnectionClientProtocolSaml, - ConnectionClientSecret, - ConnectionClientSecretAmazon, - ConnectionClientSecretAzureAd, - ConnectionClientSecretBitbucket, - ConnectionClientSecretExact, - ConnectionClientSecretFacebook, - ConnectionClientSecretGoogleApps, - ConnectionClientSecretGoogleOAuth2, - ConnectionClientSecretLine, - ConnectionClientSecretLinkedin, - ConnectionClientSecretOAuth1, - ConnectionClientSecretOAuth2, - ConnectionClientSecretOidc, - ConnectionClientSecretPaypal, - ConnectionClientSecretSalesforce, - ConnectionClientSecretSamlxaaRequestingApp, - ConnectionClientSecretWindowsLive, - ConnectionCommon, - ConnectionCommunityBaseUrlSalesforce, - ConnectionConfiguration, - ConnectionConnectedAccountsPurpose, - ConnectionConnectedAccountsPurposeXaa, - ConnectionConnectionSettings, - ConnectionConnectionSettingsPkceEnum, - ConnectionCrossAppAccessResourceApp, - ConnectionCrossAppAccessResourceAppStatusEnum, - ConnectionCustomHeadersOAuth2, - ConnectionCustomScripts, - ConnectionDebugSaml, - ConnectionDecryptionKeySaml, - ConnectionDecryptionKeySamlCert, - ConnectionDestinationUrlSaml, - ConnectionDigestAlgorithmEnumSaml, - ConnectionDigestAlgorithmSaml, - ConnectionDisableSelfServiceChangePassword, - ConnectionDisableSignup, - ConnectionDisableSignupSms, - ConnectionDiscoveryUrl, - ConnectionDisplayName, - ConnectionDisplayValuesSupported, - ConnectionDomainAliases, - ConnectionDomainAliasesAd, - ConnectionDomainAliasesAzureAd, - ConnectionDomainAliasesItemsOne, - ConnectionDomainAliasesSaml, - ConnectionDomainGoogleApps, - ConnectionDomainOkta, - ConnectionDpopSigningAlgEnum, - ConnectionDpopSigningAlgValuesSupported, - ConnectionEmailBodyEmail, - ConnectionEmailEmail, - ConnectionEmailEmailSyntax, - ConnectionEmailFromEmail, - ConnectionEmailOtpAuthenticationMethod, - ConnectionEmailSubjectEmail, - ConnectionEnablePushedAuthorizationRequests, - ConnectionEnableScriptContext, - ConnectionEnabledClient, - ConnectionEnabledClients, - ConnectionEnabledDatabaseCustomization, - ConnectionEndSessionEndpoint, - ConnectionEntityIdSaml, - ConnectionExtAdmin, - ConnectionExtAgreedTerms, - ConnectionExtAgreedTermsGoogleApps, - ConnectionExtAssignedPlans, - ConnectionExtGroups, - ConnectionExtGroupsAzureAd, - ConnectionExtGroupsGoogleApps, - ConnectionExtIsAdminGoogleApps, - ConnectionExtIsSuspended, - ConnectionExtIsSuspendedGoogleApps, - ConnectionExtProfile, - ConnectionFieldsMap, - ConnectionFieldsMapSaml, - ConnectionFieldsMapSamlValue, - ConnectionForList, - ConnectionForOrganization, - ConnectionForwardReqInfoSms, - ConnectionFreeformScopesAmazon, - ConnectionFreeformScopesGoogleOAuth2, - ConnectionFreeformScopesLinkedin, - ConnectionFreeformScopesPaypal, - ConnectionFreeformScopesSalesforce, - ConnectionFreeformScopesWindowsLive, - ConnectionFromSms, - ConnectionGatewayAuthentication, - ConnectionGatewayAuthenticationAudienceSms, - ConnectionGatewayAuthenticationMethodSms, - ConnectionGatewayAuthenticationSms, - ConnectionGatewayAuthenticationSubjectSms, - ConnectionGatewayUrlSms, - ConnectionGlobalTokenRevocationJwtIssSaml, - ConnectionGlobalTokenRevocationJwtSubSaml, - ConnectionGrantTypesSupported, - ConnectionHandleLoginFromSocialGoogleApps, - ConnectionHttpsUrlWithHttpFallback, - ConnectionHttpsUrlWithHttpFallback2048, - ConnectionHttpsUrlWithHttpFallback255, - ConnectionIconUrl, - ConnectionIconUrlAdfs, - ConnectionIconUrlAzureAd, - ConnectionIconUrlGoogleApps, - ConnectionIconUrlGoogleOAuth2, - ConnectionIconUrlSaml, - ConnectionId, - ConnectionIdTokenEncryptionAlgValuesSupported, - ConnectionIdTokenEncryptionEncValuesSupported, - ConnectionIdTokenSessionExpirySupported, - ConnectionIdTokenSignedResponseAlgEnum, - ConnectionIdTokenSignedResponseAlgs, - ConnectionIdTokenSigningAlgValuesSupported, - ConnectionIdentifierPrecedence, - ConnectionIdentifierPrecedenceEnum, - ConnectionIdentityApiAzureAd, - ConnectionIdentityApiEnumAzureAd, - ConnectionIdentityProviderEnum, - ConnectionImportMode, - ConnectionIpsAd, - ConnectionIsDomainConnection, - ConnectionIssuer, - ConnectionJwksUri, - ConnectionKey, - ConnectionKeyUseEnum, - ConnectionMappingModeEnumOidc, - ConnectionMappingModeEnumOkta, - ConnectionMaxGroupsToRetrieve, - ConnectionMessagingServiceSidSms, - ConnectionMetadataUrlSaml, - ConnectionMetadataXml, - ConnectionMetadataXmlAdfs, - ConnectionMetadataXmlSaml, - ConnectionMfa, - ConnectionName, - ConnectionNamePrefixTemplate, - ConnectionNonPersistentAttrs, - ConnectionOpPolicyUri, - ConnectionOpTosUri, - ConnectionOptions, - ConnectionOptionsAd, - ConnectionOptionsAdfs, - ConnectionOptionsAmazon, - ConnectionOptionsApple, - ConnectionOptionsAuth0, - ConnectionOptionsAuth0Oidc, - ConnectionOptionsAzureAd, - ConnectionOptionsBaidu, - ConnectionOptionsBitbucket, - ConnectionOptionsBitly, - ConnectionOptionsBox, - ConnectionOptionsClientIdGithub, - ConnectionOptionsClientIdTwitter, - ConnectionOptionsClientSecretGithub, - ConnectionOptionsClientSecretTwitter, - ConnectionOptionsCommon, - ConnectionOptionsCommonOidc, - ConnectionOptionsCommonSaml, - ConnectionOptionsCustom, - ConnectionOptionsDaccount, - ConnectionOptionsDeflateSaml, - ConnectionOptionsDropbox, - ConnectionOptionsDwolla, - ConnectionOptionsEmail, - ConnectionOptionsEvernote, - ConnectionOptionsExact, - ConnectionOptionsFacebook, - ConnectionOptionsFitbit, - ConnectionOptionsFreeformScopesGithub, - ConnectionOptionsGitHub, - ConnectionOptionsGoogleApps, - ConnectionOptionsGoogleOAuth2, - ConnectionOptionsIdpInitiatedClientProtocolEnumSaml, - ConnectionOptionsIdpinitiatedSaml, - ConnectionOptionsInstagram, - ConnectionOptionsIp, - ConnectionOptionsLine, - ConnectionOptionsLinkedin, - ConnectionOptionsOAuth1, - ConnectionOptionsOAuth1Common, - ConnectionOptionsOAuth2, - ConnectionOptionsOAuth2Common, - ConnectionOptionsOffice365, - ConnectionOptionsOidc, - ConnectionOptionsOidcMetadata, - ConnectionOptionsOkta, - ConnectionOptionsPaypal, - ConnectionOptionsPingFederate, - ConnectionOptionsPlanningCenter, - ConnectionOptionsProtocolEnumTwitter, - ConnectionOptionsSalesforce, - ConnectionOptionsSalesforceCommunity, - ConnectionOptionsSaml, - ConnectionOptionsScopeGithub, - ConnectionOptionsScopeTwitter, - ConnectionOptionsSharepoint, - ConnectionOptionsShop, - ConnectionOptionsShopify, - ConnectionOptionsSms, - ConnectionOptionsSoundcloud, - ConnectionOptionsThirtySevenSignals, - ConnectionOptionsTwitter, - ConnectionOptionsUntappd, - ConnectionOptionsVkontakte, - ConnectionOptionsWeibo, - ConnectionOptionsWindowsLive, - ConnectionOptionsWordpress, - ConnectionOptionsYahoo, - ConnectionOptionsYandex, - ConnectionOtpChannelSettings, - ConnectionOtpSettings, - ConnectionPasskeyAuthenticationMethod, - ConnectionPasskeyChallengeUiEnum, - ConnectionPasskeyOptions, - ConnectionPasswordAuthenticationMethod, - ConnectionPasswordComplexityOptions, - ConnectionPasswordDictionaryOptions, - ConnectionPasswordHistoryOptions, - ConnectionPasswordNoPersonalInfoOptions, - ConnectionPasswordOptions, - ConnectionPasswordOptionsComplexity, - ConnectionPasswordOptionsDictionary, - ConnectionPasswordOptionsHistory, - ConnectionPasswordOptionsProfileData, - ConnectionPasswordPolicyEnum, - ConnectionPhoneOtpAuthenticationMethod, - ConnectionPingFederateBaseUrl, - ConnectionPingFederateBaseUrlPingFederate, - ConnectionProfile, - ConnectionProfileBitbucket, - ConnectionProfileConfig, - ConnectionProfileCrossAppAccessResourceApp, - ConnectionProfileCrossAppAccessResourceAppStatus, - ConnectionProfileCrossAppAccessResourceAppStatusAllowedValuesEnum, - ConnectionProfileCrossAppAccessResourceAppStatusDefaultValueEnum, - ConnectionProfileCrossAppAccessResourceAppStatusValueEnum, - ConnectionProfileEnabledFeatures, - ConnectionProfileId, - ConnectionProfileName, - ConnectionProfileOrganization, - ConnectionProfileOrganizationAssignMembershipOnLoginEnum, - ConnectionProfileOrganizationShowAsButtonEnum, - ConnectionProfileProvisioning, - ConnectionProfileProvisioningGoogleWorkspace, - ConnectionProfileProvisioningGoogleWorkspaceSyncUsers, - ConnectionProfileProvisioningScim, - ConnectionProfileProvisioningScimTokenDefaultExpiry, - ConnectionProfileProvisioningScimTokenMaxAllowedExpiry, - ConnectionProfileProvisioningScimTokenScopeEnum, - ConnectionProfileProvisioningScimTokenScopes, - ConnectionProfileProvisioningScimTokens, - ConnectionProfileStrategyOverride, - ConnectionProfileStrategyOverrides, - ConnectionProfileStrategyOverridesConnectionConfig, - ConnectionProfileStrategyOverridesEnabledFeatures, - ConnectionProfileStrategyOverridesProvisioning, - ConnectionProfileTemplate, - ConnectionProfileTemplateItem, - ConnectionPropertiesOptions, - ConnectionProtocolBindingEnumSaml, - ConnectionProtocolBindingSaml, - ConnectionProviderEnumSms, - ConnectionProviderSms, - ConnectionProvisioningTicketUrl, - ConnectionPurposes, - ConnectionPushedAuthorizationRequestEndpoint, - ConnectionRealmFallback, - ConnectionRealms, - ConnectionRecipientUrlSaml, - ConnectionRegistrationEndpoint, - ConnectionRequestObjectEncryptionAlgValuesSupported, - ConnectionRequestObjectEncryptionEncValuesSupported, - ConnectionRequestObjectSigningAlgValuesSupported, - ConnectionRequestParameterSupported, - ConnectionRequestTemplateSaml, - ConnectionRequestTokenUrloAuth1, - ConnectionRequestUriParameterSupported, - ConnectionRequirePushedAuthorizationRequests, - ConnectionRequireRequestUriRegistration, - ConnectionRequiresUsername, - ConnectionResponseCommon, - ConnectionResponseContentAd, - ConnectionResponseContentAdStrategy, - ConnectionResponseContentAdfs, - ConnectionResponseContentAdfsStrategy, - ConnectionResponseContentAmazon, - ConnectionResponseContentAmazonStrategy, - ConnectionResponseContentApple, - ConnectionResponseContentAppleStrategy, - ConnectionResponseContentAuth0, - ConnectionResponseContentAuth0Oidc, - ConnectionResponseContentAuth0OidcStrategy, - ConnectionResponseContentAuth0Strategy, - ConnectionResponseContentAzureAd, - ConnectionResponseContentAzureAdStrategy, - ConnectionResponseContentBaidu, - ConnectionResponseContentBaiduStrategy, - ConnectionResponseContentBitbucket, - ConnectionResponseContentBitbucketStrategy, - ConnectionResponseContentBitly, - ConnectionResponseContentBitlyStrategy, - ConnectionResponseContentBox, - ConnectionResponseContentBoxStrategy, - ConnectionResponseContentCustom, - ConnectionResponseContentCustomStrategy, - ConnectionResponseContentDaccount, - ConnectionResponseContentDaccountStrategy, - ConnectionResponseContentDropbox, - ConnectionResponseContentDropboxStrategy, - ConnectionResponseContentDwolla, - ConnectionResponseContentDwollaStrategy, - ConnectionResponseContentEmail, - ConnectionResponseContentEmailStrategy, - ConnectionResponseContentEvernote, - ConnectionResponseContentEvernoteSandbox, - ConnectionResponseContentEvernoteSandboxStrategy, - ConnectionResponseContentEvernoteStrategy, - ConnectionResponseContentExact, - ConnectionResponseContentExactStrategy, - ConnectionResponseContentFacebook, - ConnectionResponseContentFacebookStrategy, - ConnectionResponseContentFitbit, - ConnectionResponseContentFitbitStrategy, - ConnectionResponseContentGitHub, - ConnectionResponseContentGitHubStrategy, - ConnectionResponseContentGoogleApps, - ConnectionResponseContentGoogleAppsStrategy, - ConnectionResponseContentGoogleOAuth2, - ConnectionResponseContentGoogleOAuth2Strategy, - ConnectionResponseContentInstagram, - ConnectionResponseContentInstagramStrategy, - ConnectionResponseContentIp, - ConnectionResponseContentIpStrategy, - ConnectionResponseContentLine, - ConnectionResponseContentLineStrategy, - ConnectionResponseContentLinkedin, - ConnectionResponseContentLinkedinStrategy, - ConnectionResponseContentOAuth1, - ConnectionResponseContentOAuth1Strategy, - ConnectionResponseContentOAuth2, - ConnectionResponseContentOAuth2Strategy, - ConnectionResponseContentOffice365, - ConnectionResponseContentOffice365Strategy, - ConnectionResponseContentOidc, - ConnectionResponseContentOidcStrategy, - ConnectionResponseContentOkta, - ConnectionResponseContentOktaStrategy, - ConnectionResponseContentPaypal, - ConnectionResponseContentPaypalSandbox, - ConnectionResponseContentPaypalSandboxStrategy, - ConnectionResponseContentPaypalStrategy, - ConnectionResponseContentPingFederate, - ConnectionResponseContentPingFederateStrategy, - ConnectionResponseContentPlanningCenter, - ConnectionResponseContentPlanningCenterStrategy, - ConnectionResponseContentSalesforce, - ConnectionResponseContentSalesforceCommunity, - ConnectionResponseContentSalesforceCommunityStrategy, - ConnectionResponseContentSalesforceSandbox, - ConnectionResponseContentSalesforceSandboxStrategy, - ConnectionResponseContentSalesforceStrategy, - ConnectionResponseContentSaml, - ConnectionResponseContentSamlStrategy, - ConnectionResponseContentSharepoint, - ConnectionResponseContentSharepointStrategy, - ConnectionResponseContentShop, - ConnectionResponseContentShopStrategy, - ConnectionResponseContentShopify, - ConnectionResponseContentShopifyStrategy, - ConnectionResponseContentSms, - ConnectionResponseContentSmsStrategy, - ConnectionResponseContentSoundcloud, - ConnectionResponseContentSoundcloudStrategy, - ConnectionResponseContentThirtySevenSignals, - ConnectionResponseContentThirtySevenSignalsStrategy, - ConnectionResponseContentTwitter, - ConnectionResponseContentTwitterStrategy, - ConnectionResponseContentUntappd, - ConnectionResponseContentUntappdStrategy, - ConnectionResponseContentVkontakte, - ConnectionResponseContentVkontakteStrategy, - ConnectionResponseContentWeibo, - ConnectionResponseContentWeiboStrategy, - ConnectionResponseContentWindowsLive, - ConnectionResponseContentWindowsLiveStrategy, - ConnectionResponseContentWordpress, - ConnectionResponseContentWordpressStrategy, - ConnectionResponseContentYahoo, - ConnectionResponseContentYahooStrategy, - ConnectionResponseContentYandex, - ConnectionResponseContentYandexStrategy, - ConnectionResponseModesSupported, - ConnectionResponseTypesSupported, - ConnectionScopeAmazon, - ConnectionScopeArray, - ConnectionScopeArrayFacebook, - ConnectionScopeArrayWindowsLive, - ConnectionScopeAzureAd, - ConnectionScopeFacebook, - ConnectionScopeGoogleApps, - ConnectionScopeGoogleOAuth2, - ConnectionScopeItem, - ConnectionScopeItemGoogleApps, - ConnectionScopeLinkedin, - ConnectionScopeOAuth2, - ConnectionScopeOidc, - ConnectionScopePaypal, - ConnectionScopeSalesforce, - ConnectionScopesSupported, - ConnectionScriptsOAuth1, - ConnectionScriptsOAuth2, - ConnectionSendBackChannelNonce, - ConnectionServiceDocumentation, - ConnectionSetUserRootAttributesEnum, - ConnectionSha1Thumbprint, - ConnectionShouldTrustEmailVerifiedConnectionEnum, - ConnectionShowAsButton, - ConnectionSignInEndpointAd, - ConnectionSignInEndpointAdfs, - ConnectionSignInEndpointSaml, - ConnectionSignOutEndpointSaml, - ConnectionSignSamlRequestSaml, - ConnectionSignatureAlgorithmEnumSaml, - ConnectionSignatureAlgorithmSaml, - ConnectionSignatureMethodOAuth1, - ConnectionSigningCertSaml, - ConnectionSigningCertificateDerSaml, - ConnectionSigningCertificatePemPingFederate, - ConnectionSigningCertificatePemSaml, - ConnectionSigningKeySaml, - ConnectionSignupBehaviorEnum, - ConnectionStrategyEnum, - ConnectionStrategyVersionEnumLinkedin, - ConnectionStrategyVersionEnumWindowsLive, - ConnectionSubjectTypesSupported, - ConnectionTemplateSms, - ConnectionTemplateSyntaxEnumSms, - ConnectionTenantDomain, - ConnectionTenantDomainAd, - ConnectionTenantDomainAzureAdOne, - ConnectionTenantDomainGoogleApps, - ConnectionTenantDomainSaml, - ConnectionTenantIdAzureAd, - ConnectionThumbprints, - ConnectionThumbprintsAd, - ConnectionThumbprintsSaml, - ConnectionThumbprintsSha384, - ConnectionThumbprintsSha384Ad, - ConnectionThumbprintsSha384Saml, - ConnectionTokenEndpoint, - ConnectionTokenEndpointAuthMethodEnum, - ConnectionTokenEndpointAuthMethodsSupported, - ConnectionTokenEndpointAuthSigningAlgEnum, - ConnectionTokenEndpointAuthSigningAlgValuesSupported, - ConnectionTokenEndpointJwtcaAudFormatEnumOidc, - ConnectionTotpEmail, - ConnectionTotpLengthEmail, - ConnectionTotpLengthPasswordless, - ConnectionTotpLengthSms, - ConnectionTotpSms, - ConnectionTotpTimeStepEmail, - ConnectionTotpTimeStepPasswordless, - ConnectionTotpTimeStepSms, - ConnectionTwilioSidSms, - ConnectionTwilioTokenSms, - ConnectionTypeEnumOidc, - ConnectionTypeEnumOkta, - ConnectionUiLocalesSupported, - ConnectionUpstreamAdditionalProperties, - ConnectionUpstreamAlias, - ConnectionUpstreamAliasEnum, - ConnectionUpstreamParams, - ConnectionUpstreamParamsFacebook, - ConnectionUpstreamValue, - ConnectionUseCommonEndpointAzureAd, - ConnectionUseOauthSpecScope, - ConnectionUserAuthorizationUrloAuth1, - ConnectionUserIdAttributeSaml, - ConnectionUseridAttributeAzureAd, - ConnectionUseridAttributeEnumAzureAd, - ConnectionUserinfoEncryptionAlgValuesSupported, - ConnectionUserinfoEncryptionEncValuesSupported, - ConnectionUserinfoEndpoint, - ConnectionUserinfoSigningAlgValuesSupported, - ConnectionUsernameValidationOptions, - ConnectionValidationOptions, - ConnectionWaadProtocol, - ConnectionWaadProtocolEnumAzureAd, - ConnectionsDiscoveryUrl, - ConnectionsMetadata, - ConnectionsOidcMetadata, - ConsentSigningKey, - ContentSecurityPolicyConfig, - CreateActionModuleResponseContent, - CreateActionModuleVersionResponseContent, - CreateActionResponseContent, - CreateAnonymousSessions, - CreateBrandingPhoneProviderResponseContent, - CreateBrandingThemeResponseContent, - CreateClientAuthenticationMethodSelfSignedTlsClientAuth, - CreateClientAuthenticationMethodSelfSignedTlsClientAuthCredentials, - CreateClientGrantResponseContent, - CreateClientResponseContent, - CreateConnectionCommon, - CreateConnectionProfileResponseContent, - CreateConnectionRequestContentAd, - CreateConnectionRequestContentAdStrategy, - CreateConnectionRequestContentAdfs, - CreateConnectionRequestContentAdfsStrategy, - CreateConnectionRequestContentAmazon, - CreateConnectionRequestContentAmazonStrategy, - CreateConnectionRequestContentApple, - CreateConnectionRequestContentAppleStrategy, - CreateConnectionRequestContentAuth0, - CreateConnectionRequestContentAuth0Oidc, - CreateConnectionRequestContentAuth0OidcStrategy, - CreateConnectionRequestContentAuth0Strategy, - CreateConnectionRequestContentAzureAd, - CreateConnectionRequestContentAzureAdStrategy, - CreateConnectionRequestContentBaidu, - CreateConnectionRequestContentBaiduStrategy, - CreateConnectionRequestContentBitbucket, - CreateConnectionRequestContentBitbucketStrategy, - CreateConnectionRequestContentBitly, - CreateConnectionRequestContentBitlyStrategy, - CreateConnectionRequestContentBox, - CreateConnectionRequestContentBoxStrategy, - CreateConnectionRequestContentCustom, - CreateConnectionRequestContentCustomStrategy, - CreateConnectionRequestContentDaccount, - CreateConnectionRequestContentDaccountStrategy, - CreateConnectionRequestContentDropbox, - CreateConnectionRequestContentDropboxStrategy, - CreateConnectionRequestContentDwolla, - CreateConnectionRequestContentDwollaStrategy, - CreateConnectionRequestContentEmail, - CreateConnectionRequestContentEmailStrategy, - CreateConnectionRequestContentEvernote, - CreateConnectionRequestContentEvernoteSandbox, - CreateConnectionRequestContentEvernoteSandboxStrategy, - CreateConnectionRequestContentEvernoteStrategy, - CreateConnectionRequestContentExact, - CreateConnectionRequestContentExactStrategy, - CreateConnectionRequestContentFacebook, - CreateConnectionRequestContentFacebookStrategy, - CreateConnectionRequestContentFitbit, - CreateConnectionRequestContentFitbitStrategy, - CreateConnectionRequestContentGitHub, - CreateConnectionRequestContentGitHubStrategy, - CreateConnectionRequestContentGoogleApps, - CreateConnectionRequestContentGoogleAppsStrategy, - CreateConnectionRequestContentGoogleOAuth2, - CreateConnectionRequestContentGoogleOAuth2Strategy, - CreateConnectionRequestContentInstagram, - CreateConnectionRequestContentInstagramStrategy, - CreateConnectionRequestContentIp, - CreateConnectionRequestContentIpStrategy, - CreateConnectionRequestContentLine, - CreateConnectionRequestContentLineStrategy, - CreateConnectionRequestContentLinkedin, - CreateConnectionRequestContentLinkedinStrategy, - CreateConnectionRequestContentOAuth1, - CreateConnectionRequestContentOAuth1Strategy, - CreateConnectionRequestContentOAuth2, - CreateConnectionRequestContentOAuth2Strategy, - CreateConnectionRequestContentOffice365, - CreateConnectionRequestContentOffice365Strategy, - CreateConnectionRequestContentOidc, - CreateConnectionRequestContentOidcStrategy, - CreateConnectionRequestContentOkta, - CreateConnectionRequestContentOktaStrategy, - CreateConnectionRequestContentPaypal, - CreateConnectionRequestContentPaypalSandbox, - CreateConnectionRequestContentPaypalSandboxStrategy, - CreateConnectionRequestContentPaypalStrategy, - CreateConnectionRequestContentPingFederate, - CreateConnectionRequestContentPingFederateStrategy, - CreateConnectionRequestContentPlanningCenter, - CreateConnectionRequestContentPlanningCenterStrategy, - CreateConnectionRequestContentSalesforce, - CreateConnectionRequestContentSalesforceCommunity, - CreateConnectionRequestContentSalesforceCommunityStrategy, - CreateConnectionRequestContentSalesforceSandbox, - CreateConnectionRequestContentSalesforceSandboxStrategy, - CreateConnectionRequestContentSalesforceStrategy, - CreateConnectionRequestContentSaml, - CreateConnectionRequestContentSamlStrategy, - CreateConnectionRequestContentSharepoint, - CreateConnectionRequestContentSharepointStrategy, - CreateConnectionRequestContentShop, - CreateConnectionRequestContentShopStrategy, - CreateConnectionRequestContentShopify, - CreateConnectionRequestContentShopifyStrategy, - CreateConnectionRequestContentSms, - CreateConnectionRequestContentSmsStrategy, - CreateConnectionRequestContentSoundcloud, - CreateConnectionRequestContentSoundcloudStrategy, - CreateConnectionRequestContentThirtySevenSignals, - CreateConnectionRequestContentThirtySevenSignalsStrategy, - CreateConnectionRequestContentTwitter, - CreateConnectionRequestContentTwitterStrategy, - CreateConnectionRequestContentUntappd, - CreateConnectionRequestContentUntappdStrategy, - CreateConnectionRequestContentVkontakte, - CreateConnectionRequestContentVkontakteStrategy, - CreateConnectionRequestContentWeibo, - CreateConnectionRequestContentWeiboStrategy, - CreateConnectionRequestContentWindowsLive, - CreateConnectionRequestContentWindowsLiveStrategy, - CreateConnectionRequestContentWordpress, - CreateConnectionRequestContentWordpressStrategy, - CreateConnectionRequestContentYahoo, - CreateConnectionRequestContentYahooStrategy, - CreateConnectionRequestContentYandex, - CreateConnectionRequestContentYandexStrategy, - CreateConnectionResponseContent, - CreateCrossAppAccessResourceApp, - CreateCustomDomainResponseContent, - CreateDirectoryProvisioningRequestContent, - CreateDirectoryProvisioningResponseContent, - CreateDirectorySynchronizationResponseContent, - CreateEmailProviderResponseContent, - CreateEmailTemplateResponseContent, - CreateEncryptionKeyPublicWrappingResponseContent, - CreateEncryptionKeyResponseContent, - CreateEncryptionKeyType, - CreateEventStreamActionRequestContent, - CreateEventStreamEventBridgeRequestContent, - CreateEventStreamRedeliveryResponseContent, - CreateEventStreamResponseContent, - CreateEventStreamTestEventResponseContent, - CreateEventStreamWebHookRequestContent, - CreateExperimentResponseContent, - CreateExportUsersFields, - CreateExportUsersResponseContent, - CreateFeatureFlagParameters, - CreateFeatureFlagResponseContent, - CreateFlowResponseContent, - CreateFlowsVaultConnectionActivecampaign, - CreateFlowsVaultConnectionActivecampaignApiKey, - CreateFlowsVaultConnectionActivecampaignUninitialized, - CreateFlowsVaultConnectionAirtable, - CreateFlowsVaultConnectionAirtableApiKey, - CreateFlowsVaultConnectionAirtableUninitialized, - CreateFlowsVaultConnectionAuth0, - CreateFlowsVaultConnectionAuth0OauthApp, - CreateFlowsVaultConnectionAuth0Uninitialized, - CreateFlowsVaultConnectionBigquery, - CreateFlowsVaultConnectionBigqueryJwt, - CreateFlowsVaultConnectionBigqueryUninitialized, - CreateFlowsVaultConnectionClearbit, - CreateFlowsVaultConnectionClearbitApiKey, - CreateFlowsVaultConnectionClearbitUninitialized, - CreateFlowsVaultConnectionDocusign, - CreateFlowsVaultConnectionDocusignOauthCode, - CreateFlowsVaultConnectionDocusignUninitialized, - CreateFlowsVaultConnectionGoogleSheets, - CreateFlowsVaultConnectionGoogleSheetsOauthCode, - CreateFlowsVaultConnectionGoogleSheetsUninitialized, - CreateFlowsVaultConnectionHttp, - CreateFlowsVaultConnectionHttpApiKey, - CreateFlowsVaultConnectionHttpBasicAuth, - CreateFlowsVaultConnectionHttpBearer, - CreateFlowsVaultConnectionHttpOauthClientCredentials, - CreateFlowsVaultConnectionHttpUninitialized, - CreateFlowsVaultConnectionHubspot, - CreateFlowsVaultConnectionHubspotApiKey, - CreateFlowsVaultConnectionHubspotOauthCode, - CreateFlowsVaultConnectionHubspotUninitialized, - CreateFlowsVaultConnectionJwt, - CreateFlowsVaultConnectionJwtJwt, - CreateFlowsVaultConnectionJwtUninitialized, - CreateFlowsVaultConnectionMailchimp, - CreateFlowsVaultConnectionMailchimpApiKey, - CreateFlowsVaultConnectionMailchimpOauthCode, - CreateFlowsVaultConnectionMailchimpUninitialized, - CreateFlowsVaultConnectionMailjet, - CreateFlowsVaultConnectionMailjetApiKey, - CreateFlowsVaultConnectionMailjetUninitialized, - CreateFlowsVaultConnectionPipedrive, - CreateFlowsVaultConnectionPipedriveOauthCode, - CreateFlowsVaultConnectionPipedriveToken, - CreateFlowsVaultConnectionPipedriveUninitialized, - CreateFlowsVaultConnectionRequestContent, - CreateFlowsVaultConnectionResponseContent, - CreateFlowsVaultConnectionSalesforce, - CreateFlowsVaultConnectionSalesforceOauthCode, - CreateFlowsVaultConnectionSalesforceUninitialized, - CreateFlowsVaultConnectionSendgrid, - CreateFlowsVaultConnectionSendgridApiKey, - CreateFlowsVaultConnectionSendgridUninitialized, - CreateFlowsVaultConnectionSlack, - CreateFlowsVaultConnectionSlackOauthCode, - CreateFlowsVaultConnectionSlackUninitialized, - CreateFlowsVaultConnectionSlackWebhook, - CreateFlowsVaultConnectionStripe, - CreateFlowsVaultConnectionStripeKeyPair, - CreateFlowsVaultConnectionStripeOauthCode, - CreateFlowsVaultConnectionStripeUninitialized, - CreateFlowsVaultConnectionTelegram, - CreateFlowsVaultConnectionTelegramToken, - CreateFlowsVaultConnectionTelegramUninitialized, - CreateFlowsVaultConnectionTwilio, - CreateFlowsVaultConnectionTwilioApiKey, - CreateFlowsVaultConnectionTwilioUninitialized, - CreateFlowsVaultConnectionWhatsapp, - CreateFlowsVaultConnectionWhatsappToken, - CreateFlowsVaultConnectionWhatsappUninitialized, - CreateFlowsVaultConnectionZapier, - CreateFlowsVaultConnectionZapierUninitialized, - CreateFlowsVaultConnectionZapierWebhook, - CreateFormResponseContent, - CreateGuardianEnrollmentTicketResponseContent, - CreateHookResponseContent, - CreateHookSecretRequestContent, - CreateIdentityAssertionAuthorizationGrant, - CreateImportUsersResponseContent, - CreateKeysNetworkAclsResponseContent, - CreateLogStreamDatadogRequestBody, - CreateLogStreamEventBridgeRequestBody, - CreateLogStreamEventGridRequestBody, - CreateLogStreamHttpRequestBody, - CreateLogStreamMixpanelRequestBody, - CreateLogStreamRequestContent, - CreateLogStreamResponseContent, - CreateLogStreamSegmentRequestBody, - CreateLogStreamSplunkRequestBody, - CreateLogStreamSumoRequestBody, - CreateOrganizationAllConnectionResponseContent, - CreateOrganizationClientRequestItem, - CreateOrganizationClientsResponseContent, - CreateOrganizationDiscoveryDomainResponseContent, - CreateOrganizationInvitationResponseContent, - CreateOrganizationResponseContent, - CreatePhoneProviderSendTestResponseContent, - CreatePhoneTemplateResponseContent, - CreatePhoneTemplateTestNotificationResponseContent, - CreatePublicKeyDeviceCredentialResponseContent, - CreateRateLimitPolicyResponseContent, - CreateResourceServerResponseContent, - CreateRoleResponseContent, - CreateRuleResponseContent, - CreateScimConfigurationRequestContent, - CreateScimConfigurationResponseContent, - CreateScimTokenResponseContent, - CreateSegmentResponseContent, - CreateSelfServiceProfileResponseContent, - CreateSelfServiceProfileSsoTicketResponseContent, - CreateTokenExchangeProfileResponseContent, - CreateTokenQuota, - CreateUserAttributeProfileResponseContent, - CreateUserAuthenticationMethodResponseContent, - CreateUserResponseContent, - CreateVariationResponseContent, - CreateVerifiableCredentialTemplateResponseContent, - CreateVerificationEmailResponseContent, - CreatedAuthenticationMethodTypeEnum, - CreatedUserAuthenticationMethodTypeEnum, - CredentialDeviceTypeEnum, - CredentialId, - CrossAppAccessRequestingApp, - CrossAppAccessResourceApp, - CrossAppAccessResourceAppStatusEnum, - CspDirectives, - CspFlag, - CspFlags, - CspPolicies, - CspPolicy, - CspPolicyMode, - CspPolicyReporting, - CspReportTo, - CspReportToEndpoint, - CspReportToEndpoints, - CspReportingEndpoints, - CspReportingInfrastructure, - CustomDomain, - CustomDomainCustomClientIpHeader, - CustomDomainCustomClientIpHeaderEnum, - CustomDomainProvisioningTypeEnum, - CustomDomainStatusFilterEnum, - CustomDomainTlsPolicyEnum, - CustomDomainTypeEnum, - CustomDomainVerificationMethodEnum, - CustomProviderConfiguration, - CustomProviderCredentials, - CustomProviderDeliveryMethodEnum, - CustomSigningKeyAlgorithmEnum, - CustomSigningKeyCurveEnum, - CustomSigningKeyJwk, - CustomSigningKeyOperationEnum, - CustomSigningKeyTypeEnum, - CustomSigningKeyUseEnum, - DailyStats, - DefaultConfigEnum, - DefaultMethodEmailIdentifierEnum, - DefaultMethodPhoneNumberIdentifierEnum, - DefaultTokenQuota, - DeleteHookSecretRequestContent, - DeleteUserIdentityResponseContent, - DeleteUserIdentityResponseContentItem, - DeployActionResponseContent, - DeployActionVersionRequestContent, - DeployActionVersionResponseContent, - DeviceCredential, - DeviceCredentialPublicKeyTypeEnum, - DeviceCredentialTypeEnum, - DirectoryProvisioning, - DirectoryProvisioningMappingItem, - DomainCertificate, - DomainCertificateAuthorityEnum, - DomainCertificateStatusEnum, - DomainMetadata, - DomainVerification, - DomainVerificationMethod, - DomainVerificationMethodNameEnum, - DomainVerificationStatusEnum, - EmailAttribute, - EmailAttributeIdentifier, - EmailMailgunRegionEnum, - EmailProviderCredentials, - EmailProviderCredentialsSchema, - EmailProviderCredentialsSchemaAccessKeyId, - EmailProviderCredentialsSchemaApiKey, - EmailProviderCredentialsSchemaClientId, - EmailProviderCredentialsSchemaConnectionString, - EmailProviderCredentialsSchemaSmtpHost, - EmailProviderCredentialsSchemaThree, - EmailProviderCredentialsSchemaZero, - EmailProviderNameEnum, - EmailProviderSettings, - EmailSmtpHost, - EmailSparkPostRegionEnum, - EmailSpecificProviderSettingsWithAdditionalProperties, - EmailTemplateNameEnum, - EnabledFeaturesEnum, - EncryptionKey, - EncryptionKeyPublicWrappingAlgorithm, - EncryptionKeyState, - EncryptionKeyType, - EventStreamActionConfiguration, - EventStreamActionDestination, - EventStreamActionDestinationTypeEnum, - EventStreamActionResponseContent, - EventStreamCloudEvent, - EventStreamCloudEventA0PurposeEnum, - EventStreamCloudEventConnectionCreated, - EventStreamCloudEventConnectionCreatedCloudEvent, - EventStreamCloudEventConnectionCreatedCloudEventTypeEnum, - EventStreamCloudEventConnectionCreatedData, - EventStreamCloudEventConnectionCreatedObject, - EventStreamCloudEventConnectionCreatedObject0, - EventStreamCloudEventConnectionCreatedObject0Authentication, - EventStreamCloudEventConnectionCreatedObject0ConnectedAccounts, - EventStreamCloudEventConnectionCreatedObject0Metadata, - EventStreamCloudEventConnectionCreatedObject0Options, - EventStreamCloudEventConnectionCreatedObject0OptionsAttributeMap, - EventStreamCloudEventConnectionCreatedObject0OptionsAttributeMapAttributes, - EventStreamCloudEventConnectionCreatedObject0OptionsAttributeMapMappingModeEnum, - EventStreamCloudEventConnectionCreatedObject0OptionsConnectionSettings, - EventStreamCloudEventConnectionCreatedObject0OptionsConnectionSettingsPkceEnum, - EventStreamCloudEventConnectionCreatedObject0OptionsDpopSigningAlgEnum, - EventStreamCloudEventConnectionCreatedObject0OptionsFederatedConnectionsAccessTokens, - EventStreamCloudEventConnectionCreatedObject0OptionsIdTokenSignedResponseAlgsItemEnum, - EventStreamCloudEventConnectionCreatedObject0OptionsOidcMetadata, - EventStreamCloudEventConnectionCreatedObject0OptionsSchemaVersionEnum, - EventStreamCloudEventConnectionCreatedObject0OptionsSetUserRootAttributesEnum, - EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointAuthMethodEnum, - EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointAuthSigningAlgEnum, - EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointJwtcaAudFormatEnum, - EventStreamCloudEventConnectionCreatedObject0OptionsTypeEnum, - EventStreamCloudEventConnectionCreatedObject0OptionsUpstreamParams, - EventStreamCloudEventConnectionCreatedObject0StrategyEnum, - EventStreamCloudEventConnectionCreatedObject1, - EventStreamCloudEventConnectionCreatedObject1Authentication, - EventStreamCloudEventConnectionCreatedObject1ConnectedAccounts, - EventStreamCloudEventConnectionCreatedObject1Metadata, - EventStreamCloudEventConnectionCreatedObject1Options, - EventStreamCloudEventConnectionCreatedObject1OptionsAttributeMap, - EventStreamCloudEventConnectionCreatedObject1OptionsAttributeMapAttributes, - EventStreamCloudEventConnectionCreatedObject1OptionsAttributeMapMappingModeEnum, - EventStreamCloudEventConnectionCreatedObject1OptionsConnectionSettings, - EventStreamCloudEventConnectionCreatedObject1OptionsConnectionSettingsPkceEnum, - EventStreamCloudEventConnectionCreatedObject1OptionsDpopSigningAlgEnum, - EventStreamCloudEventConnectionCreatedObject1OptionsFederatedConnectionsAccessTokens, - EventStreamCloudEventConnectionCreatedObject1OptionsIdTokenSignedResponseAlgsItemEnum, - EventStreamCloudEventConnectionCreatedObject1OptionsOidcMetadata, - EventStreamCloudEventConnectionCreatedObject1OptionsSchemaVersionEnum, - EventStreamCloudEventConnectionCreatedObject1OptionsSetUserRootAttributesEnum, - EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointAuthMethodEnum, - EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointAuthSigningAlgEnum, - EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointJwtcaAudFormatEnum, - EventStreamCloudEventConnectionCreatedObject1OptionsTypeEnum, - EventStreamCloudEventConnectionCreatedObject1OptionsUpstreamParams, - EventStreamCloudEventConnectionCreatedObject1StrategyEnum, - EventStreamCloudEventConnectionCreatedObject2, - EventStreamCloudEventConnectionCreatedObject2Authentication, - EventStreamCloudEventConnectionCreatedObject2ConnectedAccounts, - EventStreamCloudEventConnectionCreatedObject2Metadata, - EventStreamCloudEventConnectionCreatedObject2Options, - EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettings, - EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum, - EventStreamCloudEventConnectionCreatedObject2OptionsDigestAlgorithmEnum, - EventStreamCloudEventConnectionCreatedObject2OptionsFieldsMap, - EventStreamCloudEventConnectionCreatedObject2OptionsIdpinitiated, - EventStreamCloudEventConnectionCreatedObject2OptionsIdpinitiatedClientProtocolEnum, - EventStreamCloudEventConnectionCreatedObject2OptionsOidcMetadata, - EventStreamCloudEventConnectionCreatedObject2OptionsProtocolBindingEnum, - EventStreamCloudEventConnectionCreatedObject2OptionsSetUserRootAttributesEnum, - EventStreamCloudEventConnectionCreatedObject2OptionsSignatureAlgorithmEnum, - EventStreamCloudEventConnectionCreatedObject2OptionsSubject, - EventStreamCloudEventConnectionCreatedObject2OptionsUpstreamParams, - EventStreamCloudEventConnectionCreatedObject2StrategyEnum, - EventStreamCloudEventConnectionCreatedObject3, - EventStreamCloudEventConnectionCreatedObject3Authentication, - EventStreamCloudEventConnectionCreatedObject3ConnectedAccounts, - EventStreamCloudEventConnectionCreatedObject3Metadata, - EventStreamCloudEventConnectionCreatedObject3Options, - EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettings, - EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum, - EventStreamCloudEventConnectionCreatedObject3OptionsDigestAlgorithmEnum, - EventStreamCloudEventConnectionCreatedObject3OptionsIdpinitiated, - EventStreamCloudEventConnectionCreatedObject3OptionsIdpinitiatedClientProtocolEnum, - EventStreamCloudEventConnectionCreatedObject3OptionsProtocolBindingEnum, - EventStreamCloudEventConnectionCreatedObject3OptionsSetUserRootAttributesEnum, - EventStreamCloudEventConnectionCreatedObject3OptionsSignatureAlgorithmEnum, - EventStreamCloudEventConnectionCreatedObject3OptionsSubject, - EventStreamCloudEventConnectionCreatedObject3OptionsUpstreamParams, - EventStreamCloudEventConnectionCreatedObject3StrategyEnum, - EventStreamCloudEventConnectionCreatedObject4, - EventStreamCloudEventConnectionCreatedObject4Authentication, - EventStreamCloudEventConnectionCreatedObject4ConnectedAccounts, - EventStreamCloudEventConnectionCreatedObject4Metadata, - EventStreamCloudEventConnectionCreatedObject4Options, - EventStreamCloudEventConnectionCreatedObject4OptionsSetUserRootAttributesEnum, - EventStreamCloudEventConnectionCreatedObject4OptionsShouldTrustEmailVerifiedConnectionEnum, - EventStreamCloudEventConnectionCreatedObject4OptionsUpstreamParams, - EventStreamCloudEventConnectionCreatedObject4StrategyEnum, - EventStreamCloudEventConnectionCreatedObject5, - EventStreamCloudEventConnectionCreatedObject5Authentication, - EventStreamCloudEventConnectionCreatedObject5ConnectedAccounts, - EventStreamCloudEventConnectionCreatedObject5Metadata, - EventStreamCloudEventConnectionCreatedObject5Options, - EventStreamCloudEventConnectionCreatedObject5OptionsSetUserRootAttributesEnum, - EventStreamCloudEventConnectionCreatedObject5OptionsUpstreamParams, - EventStreamCloudEventConnectionCreatedObject5StrategyEnum, - EventStreamCloudEventConnectionCreatedObject6, - EventStreamCloudEventConnectionCreatedObject6Authentication, - EventStreamCloudEventConnectionCreatedObject6ConnectedAccounts, - EventStreamCloudEventConnectionCreatedObject6Metadata, - EventStreamCloudEventConnectionCreatedObject6Options, - EventStreamCloudEventConnectionCreatedObject6OptionsFederatedConnectionsAccessTokens, - EventStreamCloudEventConnectionCreatedObject6OptionsSetUserRootAttributesEnum, - EventStreamCloudEventConnectionCreatedObject6OptionsUpstreamParams, - EventStreamCloudEventConnectionCreatedObject6StrategyEnum, - EventStreamCloudEventConnectionCreatedObject7, - EventStreamCloudEventConnectionCreatedObject7Authentication, - EventStreamCloudEventConnectionCreatedObject7ConnectedAccounts, - EventStreamCloudEventConnectionCreatedObject7Metadata, - EventStreamCloudEventConnectionCreatedObject7Options, - EventStreamCloudEventConnectionCreatedObject7OptionsFederatedConnectionsAccessTokens, - EventStreamCloudEventConnectionCreatedObject7OptionsIdentityApiEnum, - EventStreamCloudEventConnectionCreatedObject7OptionsSetUserRootAttributesEnum, - EventStreamCloudEventConnectionCreatedObject7OptionsShouldTrustEmailVerifiedConnectionEnum, - EventStreamCloudEventConnectionCreatedObject7OptionsTenantDomainOne, - EventStreamCloudEventConnectionCreatedObject7OptionsUpstreamParams, - EventStreamCloudEventConnectionCreatedObject7OptionsUseridAttributeEnum, - EventStreamCloudEventConnectionCreatedObject7OptionsWaadProtocolEnum, - EventStreamCloudEventConnectionCreatedObject7StrategyEnum, - EventStreamCloudEventConnectionCreatedPreviousObject, - EventStreamCloudEventConnectionCreatedPreviousObject0, - EventStreamCloudEventConnectionCreatedPreviousObject0Authentication, - EventStreamCloudEventConnectionCreatedPreviousObject0ConnectedAccounts, - EventStreamCloudEventConnectionCreatedPreviousObject0Metadata, - EventStreamCloudEventConnectionCreatedPreviousObject0Options, - EventStreamCloudEventConnectionCreatedPreviousObject0OptionsAttributeMap, - EventStreamCloudEventConnectionCreatedPreviousObject0OptionsAttributeMapAttributes, - EventStreamCloudEventConnectionCreatedPreviousObject0OptionsAttributeMapMappingModeEnum, - EventStreamCloudEventConnectionCreatedPreviousObject0OptionsConnectionSettings, - EventStreamCloudEventConnectionCreatedPreviousObject0OptionsConnectionSettingsPkceEnum, - EventStreamCloudEventConnectionCreatedPreviousObject0OptionsDpopSigningAlgEnum, - EventStreamCloudEventConnectionCreatedPreviousObject0OptionsFederatedConnectionsAccessTokens, - EventStreamCloudEventConnectionCreatedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum, - EventStreamCloudEventConnectionCreatedPreviousObject0OptionsOidcMetadata, - EventStreamCloudEventConnectionCreatedPreviousObject0OptionsSchemaVersionEnum, - EventStreamCloudEventConnectionCreatedPreviousObject0OptionsSetUserRootAttributesEnum, - EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTokenEndpointAuthMethodEnum, - EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum, - EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTokenEndpointJwtcaAudFormatEnum, - EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTypeEnum, - EventStreamCloudEventConnectionCreatedPreviousObject0OptionsUpstreamParams, - EventStreamCloudEventConnectionCreatedPreviousObject0StrategyEnum, - EventStreamCloudEventConnectionCreatedPreviousObject1, - EventStreamCloudEventConnectionCreatedPreviousObject1Authentication, - EventStreamCloudEventConnectionCreatedPreviousObject1ConnectedAccounts, - EventStreamCloudEventConnectionCreatedPreviousObject1Metadata, - EventStreamCloudEventConnectionCreatedPreviousObject1Options, - EventStreamCloudEventConnectionCreatedPreviousObject1OptionsAttributeMap, - EventStreamCloudEventConnectionCreatedPreviousObject1OptionsAttributeMapAttributes, - EventStreamCloudEventConnectionCreatedPreviousObject1OptionsAttributeMapMappingModeEnum, - EventStreamCloudEventConnectionCreatedPreviousObject1OptionsConnectionSettings, - EventStreamCloudEventConnectionCreatedPreviousObject1OptionsConnectionSettingsPkceEnum, - EventStreamCloudEventConnectionCreatedPreviousObject1OptionsDpopSigningAlgEnum, - EventStreamCloudEventConnectionCreatedPreviousObject1OptionsFederatedConnectionsAccessTokens, - EventStreamCloudEventConnectionCreatedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum, - EventStreamCloudEventConnectionCreatedPreviousObject1OptionsOidcMetadata, - EventStreamCloudEventConnectionCreatedPreviousObject1OptionsSchemaVersionEnum, - EventStreamCloudEventConnectionCreatedPreviousObject1OptionsSetUserRootAttributesEnum, - EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTokenEndpointAuthMethodEnum, - EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum, - EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTokenEndpointJwtcaAudFormatEnum, - EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTypeEnum, - EventStreamCloudEventConnectionCreatedPreviousObject1OptionsUpstreamParams, - EventStreamCloudEventConnectionCreatedPreviousObject1StrategyEnum, - EventStreamCloudEventConnectionCreatedPreviousObject2, - EventStreamCloudEventConnectionCreatedPreviousObject2Authentication, - EventStreamCloudEventConnectionCreatedPreviousObject2ConnectedAccounts, - EventStreamCloudEventConnectionCreatedPreviousObject2Metadata, - EventStreamCloudEventConnectionCreatedPreviousObject2Options, - EventStreamCloudEventConnectionCreatedPreviousObject2OptionsAssertionDecryptionSettings, - EventStreamCloudEventConnectionCreatedPreviousObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum, - EventStreamCloudEventConnectionCreatedPreviousObject2OptionsDigestAlgorithmEnum, - EventStreamCloudEventConnectionCreatedPreviousObject2OptionsFieldsMap, - EventStreamCloudEventConnectionCreatedPreviousObject2OptionsIdpinitiated, - EventStreamCloudEventConnectionCreatedPreviousObject2OptionsIdpinitiatedClientProtocolEnum, - EventStreamCloudEventConnectionCreatedPreviousObject2OptionsOidcMetadata, - EventStreamCloudEventConnectionCreatedPreviousObject2OptionsProtocolBindingEnum, - EventStreamCloudEventConnectionCreatedPreviousObject2OptionsSetUserRootAttributesEnum, - EventStreamCloudEventConnectionCreatedPreviousObject2OptionsSignatureAlgorithmEnum, - EventStreamCloudEventConnectionCreatedPreviousObject2OptionsSubject, - EventStreamCloudEventConnectionCreatedPreviousObject2OptionsUpstreamParams, - EventStreamCloudEventConnectionCreatedPreviousObject2StrategyEnum, - EventStreamCloudEventConnectionCreatedPreviousObject3, - EventStreamCloudEventConnectionCreatedPreviousObject3Authentication, - EventStreamCloudEventConnectionCreatedPreviousObject3ConnectedAccounts, - EventStreamCloudEventConnectionCreatedPreviousObject3Metadata, - EventStreamCloudEventConnectionCreatedPreviousObject3Options, - EventStreamCloudEventConnectionCreatedPreviousObject3OptionsAssertionDecryptionSettings, - EventStreamCloudEventConnectionCreatedPreviousObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum, - EventStreamCloudEventConnectionCreatedPreviousObject3OptionsDigestAlgorithmEnum, - EventStreamCloudEventConnectionCreatedPreviousObject3OptionsIdpinitiated, - EventStreamCloudEventConnectionCreatedPreviousObject3OptionsIdpinitiatedClientProtocolEnum, - EventStreamCloudEventConnectionCreatedPreviousObject3OptionsProtocolBindingEnum, - EventStreamCloudEventConnectionCreatedPreviousObject3OptionsSetUserRootAttributesEnum, - EventStreamCloudEventConnectionCreatedPreviousObject3OptionsSignatureAlgorithmEnum, - EventStreamCloudEventConnectionCreatedPreviousObject3OptionsSubject, - EventStreamCloudEventConnectionCreatedPreviousObject3OptionsUpstreamParams, - EventStreamCloudEventConnectionCreatedPreviousObject3StrategyEnum, - EventStreamCloudEventConnectionCreatedPreviousObject4, - EventStreamCloudEventConnectionCreatedPreviousObject4Authentication, - EventStreamCloudEventConnectionCreatedPreviousObject4ConnectedAccounts, - EventStreamCloudEventConnectionCreatedPreviousObject4Metadata, - EventStreamCloudEventConnectionCreatedPreviousObject4Options, - EventStreamCloudEventConnectionCreatedPreviousObject4OptionsSetUserRootAttributesEnum, - EventStreamCloudEventConnectionCreatedPreviousObject4OptionsShouldTrustEmailVerifiedConnectionEnum, - EventStreamCloudEventConnectionCreatedPreviousObject4OptionsUpstreamParams, - EventStreamCloudEventConnectionCreatedPreviousObject4StrategyEnum, - EventStreamCloudEventConnectionCreatedPreviousObject5, - EventStreamCloudEventConnectionCreatedPreviousObject5Authentication, - EventStreamCloudEventConnectionCreatedPreviousObject5ConnectedAccounts, - EventStreamCloudEventConnectionCreatedPreviousObject5Metadata, - EventStreamCloudEventConnectionCreatedPreviousObject5Options, - EventStreamCloudEventConnectionCreatedPreviousObject5OptionsSetUserRootAttributesEnum, - EventStreamCloudEventConnectionCreatedPreviousObject5OptionsUpstreamParams, - EventStreamCloudEventConnectionCreatedPreviousObject5StrategyEnum, - EventStreamCloudEventConnectionCreatedPreviousObject6, - EventStreamCloudEventConnectionCreatedPreviousObject6Authentication, - EventStreamCloudEventConnectionCreatedPreviousObject6ConnectedAccounts, - EventStreamCloudEventConnectionCreatedPreviousObject6Metadata, - EventStreamCloudEventConnectionCreatedPreviousObject6Options, - EventStreamCloudEventConnectionCreatedPreviousObject6OptionsFederatedConnectionsAccessTokens, - EventStreamCloudEventConnectionCreatedPreviousObject6OptionsSetUserRootAttributesEnum, - EventStreamCloudEventConnectionCreatedPreviousObject6OptionsUpstreamParams, - EventStreamCloudEventConnectionCreatedPreviousObject6StrategyEnum, - EventStreamCloudEventConnectionCreatedPreviousObject7, - EventStreamCloudEventConnectionCreatedPreviousObject7Authentication, - EventStreamCloudEventConnectionCreatedPreviousObject7ConnectedAccounts, - EventStreamCloudEventConnectionCreatedPreviousObject7Metadata, - EventStreamCloudEventConnectionCreatedPreviousObject7Options, - EventStreamCloudEventConnectionCreatedPreviousObject7OptionsFederatedConnectionsAccessTokens, - EventStreamCloudEventConnectionCreatedPreviousObject7OptionsIdentityApiEnum, - EventStreamCloudEventConnectionCreatedPreviousObject7OptionsSetUserRootAttributesEnum, - EventStreamCloudEventConnectionCreatedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum, - EventStreamCloudEventConnectionCreatedPreviousObject7OptionsTenantDomainOne, - EventStreamCloudEventConnectionCreatedPreviousObject7OptionsUpstreamParams, - EventStreamCloudEventConnectionCreatedPreviousObject7OptionsUseridAttributeEnum, - EventStreamCloudEventConnectionCreatedPreviousObject7OptionsWaadProtocolEnum, - EventStreamCloudEventConnectionCreatedPreviousObject7StrategyEnum, - EventStreamCloudEventConnectionCreatedTypeEnum, - EventStreamCloudEventConnectionDeleted, - EventStreamCloudEventConnectionDeletedCloudEvent, - EventStreamCloudEventConnectionDeletedCloudEventTypeEnum, - EventStreamCloudEventConnectionDeletedData, - EventStreamCloudEventConnectionDeletedObject, - EventStreamCloudEventConnectionDeletedObject0, - EventStreamCloudEventConnectionDeletedObject0Authentication, - EventStreamCloudEventConnectionDeletedObject0ConnectedAccounts, - EventStreamCloudEventConnectionDeletedObject0Metadata, - EventStreamCloudEventConnectionDeletedObject0Options, - EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMap, - EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMapAttributes, - EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMapMappingModeEnum, - EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettings, - EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettingsPkceEnum, - EventStreamCloudEventConnectionDeletedObject0OptionsDpopSigningAlgEnum, - EventStreamCloudEventConnectionDeletedObject0OptionsFederatedConnectionsAccessTokens, - EventStreamCloudEventConnectionDeletedObject0OptionsIdTokenSignedResponseAlgsItemEnum, - EventStreamCloudEventConnectionDeletedObject0OptionsOidcMetadata, - EventStreamCloudEventConnectionDeletedObject0OptionsSchemaVersionEnum, - EventStreamCloudEventConnectionDeletedObject0OptionsSetUserRootAttributesEnum, - EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthMethodEnum, - EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthSigningAlgEnum, - EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointJwtcaAudFormatEnum, - EventStreamCloudEventConnectionDeletedObject0OptionsTypeEnum, - EventStreamCloudEventConnectionDeletedObject0OptionsUpstreamParams, - EventStreamCloudEventConnectionDeletedObject0StrategyEnum, - EventStreamCloudEventConnectionDeletedObject1, - EventStreamCloudEventConnectionDeletedObject1Authentication, - EventStreamCloudEventConnectionDeletedObject1ConnectedAccounts, - EventStreamCloudEventConnectionDeletedObject1Metadata, - EventStreamCloudEventConnectionDeletedObject1Options, - EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMap, - EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMapAttributes, - EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMapMappingModeEnum, - EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettings, - EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettingsPkceEnum, - EventStreamCloudEventConnectionDeletedObject1OptionsDpopSigningAlgEnum, - EventStreamCloudEventConnectionDeletedObject1OptionsFederatedConnectionsAccessTokens, - EventStreamCloudEventConnectionDeletedObject1OptionsIdTokenSignedResponseAlgsItemEnum, - EventStreamCloudEventConnectionDeletedObject1OptionsOidcMetadata, - EventStreamCloudEventConnectionDeletedObject1OptionsSchemaVersionEnum, - EventStreamCloudEventConnectionDeletedObject1OptionsSetUserRootAttributesEnum, - EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthMethodEnum, - EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthSigningAlgEnum, - EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointJwtcaAudFormatEnum, - EventStreamCloudEventConnectionDeletedObject1OptionsTypeEnum, - EventStreamCloudEventConnectionDeletedObject1OptionsUpstreamParams, - EventStreamCloudEventConnectionDeletedObject1StrategyEnum, - EventStreamCloudEventConnectionDeletedObject2, - EventStreamCloudEventConnectionDeletedObject2Authentication, - EventStreamCloudEventConnectionDeletedObject2ConnectedAccounts, - EventStreamCloudEventConnectionDeletedObject2Metadata, - EventStreamCloudEventConnectionDeletedObject2Options, - EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettings, - EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum, - EventStreamCloudEventConnectionDeletedObject2OptionsDigestAlgorithmEnum, - EventStreamCloudEventConnectionDeletedObject2OptionsFieldsMap, - EventStreamCloudEventConnectionDeletedObject2OptionsIdpinitiated, - EventStreamCloudEventConnectionDeletedObject2OptionsIdpinitiatedClientProtocolEnum, - EventStreamCloudEventConnectionDeletedObject2OptionsOidcMetadata, - EventStreamCloudEventConnectionDeletedObject2OptionsProtocolBindingEnum, - EventStreamCloudEventConnectionDeletedObject2OptionsSetUserRootAttributesEnum, - EventStreamCloudEventConnectionDeletedObject2OptionsSignatureAlgorithmEnum, - EventStreamCloudEventConnectionDeletedObject2OptionsSubject, - EventStreamCloudEventConnectionDeletedObject2OptionsUpstreamParams, - EventStreamCloudEventConnectionDeletedObject2StrategyEnum, - EventStreamCloudEventConnectionDeletedObject3, - EventStreamCloudEventConnectionDeletedObject3Authentication, - EventStreamCloudEventConnectionDeletedObject3ConnectedAccounts, - EventStreamCloudEventConnectionDeletedObject3Metadata, - EventStreamCloudEventConnectionDeletedObject3Options, - EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettings, - EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum, - EventStreamCloudEventConnectionDeletedObject3OptionsDigestAlgorithmEnum, - EventStreamCloudEventConnectionDeletedObject3OptionsIdpinitiated, - EventStreamCloudEventConnectionDeletedObject3OptionsIdpinitiatedClientProtocolEnum, - EventStreamCloudEventConnectionDeletedObject3OptionsProtocolBindingEnum, - EventStreamCloudEventConnectionDeletedObject3OptionsSetUserRootAttributesEnum, - EventStreamCloudEventConnectionDeletedObject3OptionsSignatureAlgorithmEnum, - EventStreamCloudEventConnectionDeletedObject3OptionsSubject, - EventStreamCloudEventConnectionDeletedObject3OptionsUpstreamParams, - EventStreamCloudEventConnectionDeletedObject3StrategyEnum, - EventStreamCloudEventConnectionDeletedObject4, - EventStreamCloudEventConnectionDeletedObject4Authentication, - EventStreamCloudEventConnectionDeletedObject4ConnectedAccounts, - EventStreamCloudEventConnectionDeletedObject4Metadata, - EventStreamCloudEventConnectionDeletedObject4Options, - EventStreamCloudEventConnectionDeletedObject4OptionsSetUserRootAttributesEnum, - EventStreamCloudEventConnectionDeletedObject4OptionsShouldTrustEmailVerifiedConnectionEnum, - EventStreamCloudEventConnectionDeletedObject4OptionsUpstreamParams, - EventStreamCloudEventConnectionDeletedObject4StrategyEnum, - EventStreamCloudEventConnectionDeletedObject5, - EventStreamCloudEventConnectionDeletedObject5Authentication, - EventStreamCloudEventConnectionDeletedObject5ConnectedAccounts, - EventStreamCloudEventConnectionDeletedObject5Metadata, - EventStreamCloudEventConnectionDeletedObject5Options, - EventStreamCloudEventConnectionDeletedObject5OptionsSetUserRootAttributesEnum, - EventStreamCloudEventConnectionDeletedObject5OptionsUpstreamParams, - EventStreamCloudEventConnectionDeletedObject5StrategyEnum, - EventStreamCloudEventConnectionDeletedObject6, - EventStreamCloudEventConnectionDeletedObject6Authentication, - EventStreamCloudEventConnectionDeletedObject6ConnectedAccounts, - EventStreamCloudEventConnectionDeletedObject6Metadata, - EventStreamCloudEventConnectionDeletedObject6Options, - EventStreamCloudEventConnectionDeletedObject6OptionsFederatedConnectionsAccessTokens, - EventStreamCloudEventConnectionDeletedObject6OptionsSetUserRootAttributesEnum, - EventStreamCloudEventConnectionDeletedObject6OptionsUpstreamParams, - EventStreamCloudEventConnectionDeletedObject6StrategyEnum, - EventStreamCloudEventConnectionDeletedObject7, - EventStreamCloudEventConnectionDeletedObject7Authentication, - EventStreamCloudEventConnectionDeletedObject7ConnectedAccounts, - EventStreamCloudEventConnectionDeletedObject7Metadata, - EventStreamCloudEventConnectionDeletedObject7Options, - EventStreamCloudEventConnectionDeletedObject7OptionsFederatedConnectionsAccessTokens, - EventStreamCloudEventConnectionDeletedObject7OptionsIdentityApiEnum, - EventStreamCloudEventConnectionDeletedObject7OptionsSetUserRootAttributesEnum, - EventStreamCloudEventConnectionDeletedObject7OptionsShouldTrustEmailVerifiedConnectionEnum, - EventStreamCloudEventConnectionDeletedObject7OptionsTenantDomainOne, - EventStreamCloudEventConnectionDeletedObject7OptionsUpstreamParams, - EventStreamCloudEventConnectionDeletedObject7OptionsUseridAttributeEnum, - EventStreamCloudEventConnectionDeletedObject7OptionsWaadProtocolEnum, - EventStreamCloudEventConnectionDeletedObject7StrategyEnum, - EventStreamCloudEventConnectionDeletedPreviousObject, - EventStreamCloudEventConnectionDeletedPreviousObject0, - EventStreamCloudEventConnectionDeletedPreviousObject0Authentication, - EventStreamCloudEventConnectionDeletedPreviousObject0ConnectedAccounts, - EventStreamCloudEventConnectionDeletedPreviousObject0Metadata, - EventStreamCloudEventConnectionDeletedPreviousObject0Options, - EventStreamCloudEventConnectionDeletedPreviousObject0OptionsAttributeMap, - EventStreamCloudEventConnectionDeletedPreviousObject0OptionsAttributeMapAttributes, - EventStreamCloudEventConnectionDeletedPreviousObject0OptionsAttributeMapMappingModeEnum, - EventStreamCloudEventConnectionDeletedPreviousObject0OptionsConnectionSettings, - EventStreamCloudEventConnectionDeletedPreviousObject0OptionsConnectionSettingsPkceEnum, - EventStreamCloudEventConnectionDeletedPreviousObject0OptionsDpopSigningAlgEnum, - EventStreamCloudEventConnectionDeletedPreviousObject0OptionsFederatedConnectionsAccessTokens, - EventStreamCloudEventConnectionDeletedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum, - EventStreamCloudEventConnectionDeletedPreviousObject0OptionsOidcMetadata, - EventStreamCloudEventConnectionDeletedPreviousObject0OptionsSchemaVersionEnum, - EventStreamCloudEventConnectionDeletedPreviousObject0OptionsSetUserRootAttributesEnum, - EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTokenEndpointAuthMethodEnum, - EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum, - EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTokenEndpointJwtcaAudFormatEnum, - EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTypeEnum, - EventStreamCloudEventConnectionDeletedPreviousObject0OptionsUpstreamParams, - EventStreamCloudEventConnectionDeletedPreviousObject0StrategyEnum, - EventStreamCloudEventConnectionDeletedPreviousObject1, - EventStreamCloudEventConnectionDeletedPreviousObject1Authentication, - EventStreamCloudEventConnectionDeletedPreviousObject1ConnectedAccounts, - EventStreamCloudEventConnectionDeletedPreviousObject1Metadata, - EventStreamCloudEventConnectionDeletedPreviousObject1Options, - EventStreamCloudEventConnectionDeletedPreviousObject1OptionsAttributeMap, - EventStreamCloudEventConnectionDeletedPreviousObject1OptionsAttributeMapAttributes, - EventStreamCloudEventConnectionDeletedPreviousObject1OptionsAttributeMapMappingModeEnum, - EventStreamCloudEventConnectionDeletedPreviousObject1OptionsConnectionSettings, - EventStreamCloudEventConnectionDeletedPreviousObject1OptionsConnectionSettingsPkceEnum, - EventStreamCloudEventConnectionDeletedPreviousObject1OptionsDpopSigningAlgEnum, - EventStreamCloudEventConnectionDeletedPreviousObject1OptionsFederatedConnectionsAccessTokens, - EventStreamCloudEventConnectionDeletedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum, - EventStreamCloudEventConnectionDeletedPreviousObject1OptionsOidcMetadata, - EventStreamCloudEventConnectionDeletedPreviousObject1OptionsSchemaVersionEnum, - EventStreamCloudEventConnectionDeletedPreviousObject1OptionsSetUserRootAttributesEnum, - EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTokenEndpointAuthMethodEnum, - EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum, - EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTokenEndpointJwtcaAudFormatEnum, - EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTypeEnum, - EventStreamCloudEventConnectionDeletedPreviousObject1OptionsUpstreamParams, - EventStreamCloudEventConnectionDeletedPreviousObject1StrategyEnum, - EventStreamCloudEventConnectionDeletedPreviousObject2, - EventStreamCloudEventConnectionDeletedPreviousObject2Authentication, - EventStreamCloudEventConnectionDeletedPreviousObject2ConnectedAccounts, - EventStreamCloudEventConnectionDeletedPreviousObject2Metadata, - EventStreamCloudEventConnectionDeletedPreviousObject2Options, - EventStreamCloudEventConnectionDeletedPreviousObject2OptionsAssertionDecryptionSettings, - EventStreamCloudEventConnectionDeletedPreviousObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum, - EventStreamCloudEventConnectionDeletedPreviousObject2OptionsDigestAlgorithmEnum, - EventStreamCloudEventConnectionDeletedPreviousObject2OptionsFieldsMap, - EventStreamCloudEventConnectionDeletedPreviousObject2OptionsIdpinitiated, - EventStreamCloudEventConnectionDeletedPreviousObject2OptionsIdpinitiatedClientProtocolEnum, - EventStreamCloudEventConnectionDeletedPreviousObject2OptionsOidcMetadata, - EventStreamCloudEventConnectionDeletedPreviousObject2OptionsProtocolBindingEnum, - EventStreamCloudEventConnectionDeletedPreviousObject2OptionsSetUserRootAttributesEnum, - EventStreamCloudEventConnectionDeletedPreviousObject2OptionsSignatureAlgorithmEnum, - EventStreamCloudEventConnectionDeletedPreviousObject2OptionsSubject, - EventStreamCloudEventConnectionDeletedPreviousObject2OptionsUpstreamParams, - EventStreamCloudEventConnectionDeletedPreviousObject2StrategyEnum, - EventStreamCloudEventConnectionDeletedPreviousObject3, - EventStreamCloudEventConnectionDeletedPreviousObject3Authentication, - EventStreamCloudEventConnectionDeletedPreviousObject3ConnectedAccounts, - EventStreamCloudEventConnectionDeletedPreviousObject3Metadata, - EventStreamCloudEventConnectionDeletedPreviousObject3Options, - EventStreamCloudEventConnectionDeletedPreviousObject3OptionsAssertionDecryptionSettings, - EventStreamCloudEventConnectionDeletedPreviousObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum, - EventStreamCloudEventConnectionDeletedPreviousObject3OptionsDigestAlgorithmEnum, - EventStreamCloudEventConnectionDeletedPreviousObject3OptionsIdpinitiated, - EventStreamCloudEventConnectionDeletedPreviousObject3OptionsIdpinitiatedClientProtocolEnum, - EventStreamCloudEventConnectionDeletedPreviousObject3OptionsProtocolBindingEnum, - EventStreamCloudEventConnectionDeletedPreviousObject3OptionsSetUserRootAttributesEnum, - EventStreamCloudEventConnectionDeletedPreviousObject3OptionsSignatureAlgorithmEnum, - EventStreamCloudEventConnectionDeletedPreviousObject3OptionsSubject, - EventStreamCloudEventConnectionDeletedPreviousObject3OptionsUpstreamParams, - EventStreamCloudEventConnectionDeletedPreviousObject3StrategyEnum, - EventStreamCloudEventConnectionDeletedPreviousObject4, - EventStreamCloudEventConnectionDeletedPreviousObject4Authentication, - EventStreamCloudEventConnectionDeletedPreviousObject4ConnectedAccounts, - EventStreamCloudEventConnectionDeletedPreviousObject4Metadata, - EventStreamCloudEventConnectionDeletedPreviousObject4Options, - EventStreamCloudEventConnectionDeletedPreviousObject4OptionsSetUserRootAttributesEnum, - EventStreamCloudEventConnectionDeletedPreviousObject4OptionsShouldTrustEmailVerifiedConnectionEnum, - EventStreamCloudEventConnectionDeletedPreviousObject4OptionsUpstreamParams, - EventStreamCloudEventConnectionDeletedPreviousObject4StrategyEnum, - EventStreamCloudEventConnectionDeletedPreviousObject5, - EventStreamCloudEventConnectionDeletedPreviousObject5Authentication, - EventStreamCloudEventConnectionDeletedPreviousObject5ConnectedAccounts, - EventStreamCloudEventConnectionDeletedPreviousObject5Metadata, - EventStreamCloudEventConnectionDeletedPreviousObject5Options, - EventStreamCloudEventConnectionDeletedPreviousObject5OptionsSetUserRootAttributesEnum, - EventStreamCloudEventConnectionDeletedPreviousObject5OptionsUpstreamParams, - EventStreamCloudEventConnectionDeletedPreviousObject5StrategyEnum, - EventStreamCloudEventConnectionDeletedPreviousObject6, - EventStreamCloudEventConnectionDeletedPreviousObject6Authentication, - EventStreamCloudEventConnectionDeletedPreviousObject6ConnectedAccounts, - EventStreamCloudEventConnectionDeletedPreviousObject6Metadata, - EventStreamCloudEventConnectionDeletedPreviousObject6Options, - EventStreamCloudEventConnectionDeletedPreviousObject6OptionsFederatedConnectionsAccessTokens, - EventStreamCloudEventConnectionDeletedPreviousObject6OptionsSetUserRootAttributesEnum, - EventStreamCloudEventConnectionDeletedPreviousObject6OptionsUpstreamParams, - EventStreamCloudEventConnectionDeletedPreviousObject6StrategyEnum, - EventStreamCloudEventConnectionDeletedPreviousObject7, - EventStreamCloudEventConnectionDeletedPreviousObject7Authentication, - EventStreamCloudEventConnectionDeletedPreviousObject7ConnectedAccounts, - EventStreamCloudEventConnectionDeletedPreviousObject7Metadata, - EventStreamCloudEventConnectionDeletedPreviousObject7Options, - EventStreamCloudEventConnectionDeletedPreviousObject7OptionsFederatedConnectionsAccessTokens, - EventStreamCloudEventConnectionDeletedPreviousObject7OptionsIdentityApiEnum, - EventStreamCloudEventConnectionDeletedPreviousObject7OptionsSetUserRootAttributesEnum, - EventStreamCloudEventConnectionDeletedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum, - EventStreamCloudEventConnectionDeletedPreviousObject7OptionsTenantDomainOne, - EventStreamCloudEventConnectionDeletedPreviousObject7OptionsUpstreamParams, - EventStreamCloudEventConnectionDeletedPreviousObject7OptionsUseridAttributeEnum, - EventStreamCloudEventConnectionDeletedPreviousObject7OptionsWaadProtocolEnum, - EventStreamCloudEventConnectionDeletedPreviousObject7StrategyEnum, - EventStreamCloudEventConnectionDeletedTypeEnum, - EventStreamCloudEventConnectionUpdated, - EventStreamCloudEventConnectionUpdatedCloudEvent, - EventStreamCloudEventConnectionUpdatedCloudEventTypeEnum, - EventStreamCloudEventConnectionUpdatedData, - EventStreamCloudEventConnectionUpdatedObject, - EventStreamCloudEventConnectionUpdatedObject0, - EventStreamCloudEventConnectionUpdatedObject0Authentication, - EventStreamCloudEventConnectionUpdatedObject0ConnectedAccounts, - EventStreamCloudEventConnectionUpdatedObject0Metadata, - EventStreamCloudEventConnectionUpdatedObject0Options, - EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMap, - EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMapAttributes, - EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMapMappingModeEnum, - EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettings, - EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettingsPkceEnum, - EventStreamCloudEventConnectionUpdatedObject0OptionsDpopSigningAlgEnum, - EventStreamCloudEventConnectionUpdatedObject0OptionsFederatedConnectionsAccessTokens, - EventStreamCloudEventConnectionUpdatedObject0OptionsIdTokenSignedResponseAlgsItemEnum, - EventStreamCloudEventConnectionUpdatedObject0OptionsOidcMetadata, - EventStreamCloudEventConnectionUpdatedObject0OptionsSchemaVersionEnum, - EventStreamCloudEventConnectionUpdatedObject0OptionsSetUserRootAttributesEnum, - EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthMethodEnum, - EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthSigningAlgEnum, - EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointJwtcaAudFormatEnum, - EventStreamCloudEventConnectionUpdatedObject0OptionsTypeEnum, - EventStreamCloudEventConnectionUpdatedObject0OptionsUpstreamParams, - EventStreamCloudEventConnectionUpdatedObject0StrategyEnum, - EventStreamCloudEventConnectionUpdatedObject1, - EventStreamCloudEventConnectionUpdatedObject1Authentication, - EventStreamCloudEventConnectionUpdatedObject1ConnectedAccounts, - EventStreamCloudEventConnectionUpdatedObject1Metadata, - EventStreamCloudEventConnectionUpdatedObject1Options, - EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMap, - EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMapAttributes, - EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMapMappingModeEnum, - EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettings, - EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettingsPkceEnum, - EventStreamCloudEventConnectionUpdatedObject1OptionsDpopSigningAlgEnum, - EventStreamCloudEventConnectionUpdatedObject1OptionsFederatedConnectionsAccessTokens, - EventStreamCloudEventConnectionUpdatedObject1OptionsIdTokenSignedResponseAlgsItemEnum, - EventStreamCloudEventConnectionUpdatedObject1OptionsOidcMetadata, - EventStreamCloudEventConnectionUpdatedObject1OptionsSchemaVersionEnum, - EventStreamCloudEventConnectionUpdatedObject1OptionsSetUserRootAttributesEnum, - EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthMethodEnum, - EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthSigningAlgEnum, - EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointJwtcaAudFormatEnum, - EventStreamCloudEventConnectionUpdatedObject1OptionsTypeEnum, - EventStreamCloudEventConnectionUpdatedObject1OptionsUpstreamParams, - EventStreamCloudEventConnectionUpdatedObject1StrategyEnum, - EventStreamCloudEventConnectionUpdatedObject2, - EventStreamCloudEventConnectionUpdatedObject2Authentication, - EventStreamCloudEventConnectionUpdatedObject2ConnectedAccounts, - EventStreamCloudEventConnectionUpdatedObject2Metadata, - EventStreamCloudEventConnectionUpdatedObject2Options, - EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettings, - EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum, - EventStreamCloudEventConnectionUpdatedObject2OptionsDigestAlgorithmEnum, - EventStreamCloudEventConnectionUpdatedObject2OptionsFieldsMap, - EventStreamCloudEventConnectionUpdatedObject2OptionsIdpinitiated, - EventStreamCloudEventConnectionUpdatedObject2OptionsIdpinitiatedClientProtocolEnum, - EventStreamCloudEventConnectionUpdatedObject2OptionsOidcMetadata, - EventStreamCloudEventConnectionUpdatedObject2OptionsProtocolBindingEnum, - EventStreamCloudEventConnectionUpdatedObject2OptionsSetUserRootAttributesEnum, - EventStreamCloudEventConnectionUpdatedObject2OptionsSignatureAlgorithmEnum, - EventStreamCloudEventConnectionUpdatedObject2OptionsSubject, - EventStreamCloudEventConnectionUpdatedObject2OptionsUpstreamParams, - EventStreamCloudEventConnectionUpdatedObject2StrategyEnum, - EventStreamCloudEventConnectionUpdatedObject3, - EventStreamCloudEventConnectionUpdatedObject3Authentication, - EventStreamCloudEventConnectionUpdatedObject3ConnectedAccounts, - EventStreamCloudEventConnectionUpdatedObject3Metadata, - EventStreamCloudEventConnectionUpdatedObject3Options, - EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettings, - EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum, - EventStreamCloudEventConnectionUpdatedObject3OptionsDigestAlgorithmEnum, - EventStreamCloudEventConnectionUpdatedObject3OptionsIdpinitiated, - EventStreamCloudEventConnectionUpdatedObject3OptionsIdpinitiatedClientProtocolEnum, - EventStreamCloudEventConnectionUpdatedObject3OptionsProtocolBindingEnum, - EventStreamCloudEventConnectionUpdatedObject3OptionsSetUserRootAttributesEnum, - EventStreamCloudEventConnectionUpdatedObject3OptionsSignatureAlgorithmEnum, - EventStreamCloudEventConnectionUpdatedObject3OptionsSubject, - EventStreamCloudEventConnectionUpdatedObject3OptionsUpstreamParams, - EventStreamCloudEventConnectionUpdatedObject3StrategyEnum, - EventStreamCloudEventConnectionUpdatedObject4, - EventStreamCloudEventConnectionUpdatedObject4Authentication, - EventStreamCloudEventConnectionUpdatedObject4ConnectedAccounts, - EventStreamCloudEventConnectionUpdatedObject4Metadata, - EventStreamCloudEventConnectionUpdatedObject4Options, - EventStreamCloudEventConnectionUpdatedObject4OptionsSetUserRootAttributesEnum, - EventStreamCloudEventConnectionUpdatedObject4OptionsShouldTrustEmailVerifiedConnectionEnum, - EventStreamCloudEventConnectionUpdatedObject4OptionsUpstreamParams, - EventStreamCloudEventConnectionUpdatedObject4StrategyEnum, - EventStreamCloudEventConnectionUpdatedObject5, - EventStreamCloudEventConnectionUpdatedObject5Authentication, - EventStreamCloudEventConnectionUpdatedObject5ConnectedAccounts, - EventStreamCloudEventConnectionUpdatedObject5Metadata, - EventStreamCloudEventConnectionUpdatedObject5Options, - EventStreamCloudEventConnectionUpdatedObject5OptionsSetUserRootAttributesEnum, - EventStreamCloudEventConnectionUpdatedObject5OptionsUpstreamParams, - EventStreamCloudEventConnectionUpdatedObject5StrategyEnum, - EventStreamCloudEventConnectionUpdatedObject6, - EventStreamCloudEventConnectionUpdatedObject6Authentication, - EventStreamCloudEventConnectionUpdatedObject6ConnectedAccounts, - EventStreamCloudEventConnectionUpdatedObject6Metadata, - EventStreamCloudEventConnectionUpdatedObject6Options, - EventStreamCloudEventConnectionUpdatedObject6OptionsFederatedConnectionsAccessTokens, - EventStreamCloudEventConnectionUpdatedObject6OptionsSetUserRootAttributesEnum, - EventStreamCloudEventConnectionUpdatedObject6OptionsUpstreamParams, - EventStreamCloudEventConnectionUpdatedObject6StrategyEnum, - EventStreamCloudEventConnectionUpdatedObject7, - EventStreamCloudEventConnectionUpdatedObject7Authentication, - EventStreamCloudEventConnectionUpdatedObject7ConnectedAccounts, - EventStreamCloudEventConnectionUpdatedObject7Metadata, - EventStreamCloudEventConnectionUpdatedObject7Options, - EventStreamCloudEventConnectionUpdatedObject7OptionsFederatedConnectionsAccessTokens, - EventStreamCloudEventConnectionUpdatedObject7OptionsIdentityApiEnum, - EventStreamCloudEventConnectionUpdatedObject7OptionsSetUserRootAttributesEnum, - EventStreamCloudEventConnectionUpdatedObject7OptionsShouldTrustEmailVerifiedConnectionEnum, - EventStreamCloudEventConnectionUpdatedObject7OptionsTenantDomainOne, - EventStreamCloudEventConnectionUpdatedObject7OptionsUpstreamParams, - EventStreamCloudEventConnectionUpdatedObject7OptionsUseridAttributeEnum, - EventStreamCloudEventConnectionUpdatedObject7OptionsWaadProtocolEnum, - EventStreamCloudEventConnectionUpdatedObject7StrategyEnum, - EventStreamCloudEventConnectionUpdatedPreviousObject, - EventStreamCloudEventConnectionUpdatedPreviousObject0, - EventStreamCloudEventConnectionUpdatedPreviousObject0Authentication, - EventStreamCloudEventConnectionUpdatedPreviousObject0ConnectedAccounts, - EventStreamCloudEventConnectionUpdatedPreviousObject0Metadata, - EventStreamCloudEventConnectionUpdatedPreviousObject0Options, - EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsAttributeMap, - EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsAttributeMapAttributes, - EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsAttributeMapMappingModeEnum, - EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsConnectionSettings, - EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsConnectionSettingsPkceEnum, - EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsDpopSigningAlgEnum, - EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsFederatedConnectionsAccessTokens, - EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum, - EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsOidcMetadata, - EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsSchemaVersionEnum, - EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsSetUserRootAttributesEnum, - EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTokenEndpointAuthMethodEnum, - EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum, - EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTokenEndpointJwtcaAudFormatEnum, - EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTypeEnum, - EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsUpstreamParams, - EventStreamCloudEventConnectionUpdatedPreviousObject0StrategyEnum, - EventStreamCloudEventConnectionUpdatedPreviousObject1, - EventStreamCloudEventConnectionUpdatedPreviousObject1Authentication, - EventStreamCloudEventConnectionUpdatedPreviousObject1ConnectedAccounts, - EventStreamCloudEventConnectionUpdatedPreviousObject1Metadata, - EventStreamCloudEventConnectionUpdatedPreviousObject1Options, - EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsAttributeMap, - EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsAttributeMapAttributes, - EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsAttributeMapMappingModeEnum, - EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsConnectionSettings, - EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsConnectionSettingsPkceEnum, - EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsDpopSigningAlgEnum, - EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsFederatedConnectionsAccessTokens, - EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum, - EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsOidcMetadata, - EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsSchemaVersionEnum, - EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsSetUserRootAttributesEnum, - EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTokenEndpointAuthMethodEnum, - EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum, - EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTokenEndpointJwtcaAudFormatEnum, - EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTypeEnum, - EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsUpstreamParams, - EventStreamCloudEventConnectionUpdatedPreviousObject1StrategyEnum, - EventStreamCloudEventConnectionUpdatedPreviousObject2, - EventStreamCloudEventConnectionUpdatedPreviousObject2Authentication, - EventStreamCloudEventConnectionUpdatedPreviousObject2ConnectedAccounts, - EventStreamCloudEventConnectionUpdatedPreviousObject2Metadata, - EventStreamCloudEventConnectionUpdatedPreviousObject2Options, - EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsAssertionDecryptionSettings, - EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum, - EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsDigestAlgorithmEnum, - EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsFieldsMap, - EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsIdpinitiated, - EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsIdpinitiatedClientProtocolEnum, - EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsOidcMetadata, - EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsProtocolBindingEnum, - EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsSetUserRootAttributesEnum, - EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsSignatureAlgorithmEnum, - EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsSubject, - EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsUpstreamParams, - EventStreamCloudEventConnectionUpdatedPreviousObject2StrategyEnum, - EventStreamCloudEventConnectionUpdatedPreviousObject3, - EventStreamCloudEventConnectionUpdatedPreviousObject3Authentication, - EventStreamCloudEventConnectionUpdatedPreviousObject3ConnectedAccounts, - EventStreamCloudEventConnectionUpdatedPreviousObject3Metadata, - EventStreamCloudEventConnectionUpdatedPreviousObject3Options, - EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsAssertionDecryptionSettings, - EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum, - EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsDigestAlgorithmEnum, - EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsIdpinitiated, - EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsIdpinitiatedClientProtocolEnum, - EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsProtocolBindingEnum, - EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsSetUserRootAttributesEnum, - EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsSignatureAlgorithmEnum, - EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsSubject, - EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsUpstreamParams, - EventStreamCloudEventConnectionUpdatedPreviousObject3StrategyEnum, - EventStreamCloudEventConnectionUpdatedPreviousObject4, - EventStreamCloudEventConnectionUpdatedPreviousObject4Authentication, - EventStreamCloudEventConnectionUpdatedPreviousObject4ConnectedAccounts, - EventStreamCloudEventConnectionUpdatedPreviousObject4Metadata, - EventStreamCloudEventConnectionUpdatedPreviousObject4Options, - EventStreamCloudEventConnectionUpdatedPreviousObject4OptionsSetUserRootAttributesEnum, - EventStreamCloudEventConnectionUpdatedPreviousObject4OptionsShouldTrustEmailVerifiedConnectionEnum, - EventStreamCloudEventConnectionUpdatedPreviousObject4OptionsUpstreamParams, - EventStreamCloudEventConnectionUpdatedPreviousObject4StrategyEnum, - EventStreamCloudEventConnectionUpdatedPreviousObject5, - EventStreamCloudEventConnectionUpdatedPreviousObject5Authentication, - EventStreamCloudEventConnectionUpdatedPreviousObject5ConnectedAccounts, - EventStreamCloudEventConnectionUpdatedPreviousObject5Metadata, - EventStreamCloudEventConnectionUpdatedPreviousObject5Options, - EventStreamCloudEventConnectionUpdatedPreviousObject5OptionsSetUserRootAttributesEnum, - EventStreamCloudEventConnectionUpdatedPreviousObject5OptionsUpstreamParams, - EventStreamCloudEventConnectionUpdatedPreviousObject5StrategyEnum, - EventStreamCloudEventConnectionUpdatedPreviousObject6, - EventStreamCloudEventConnectionUpdatedPreviousObject6Authentication, - EventStreamCloudEventConnectionUpdatedPreviousObject6ConnectedAccounts, - EventStreamCloudEventConnectionUpdatedPreviousObject6Metadata, - EventStreamCloudEventConnectionUpdatedPreviousObject6Options, - EventStreamCloudEventConnectionUpdatedPreviousObject6OptionsFederatedConnectionsAccessTokens, - EventStreamCloudEventConnectionUpdatedPreviousObject6OptionsSetUserRootAttributesEnum, - EventStreamCloudEventConnectionUpdatedPreviousObject6OptionsUpstreamParams, - EventStreamCloudEventConnectionUpdatedPreviousObject6StrategyEnum, - EventStreamCloudEventConnectionUpdatedPreviousObject7, - EventStreamCloudEventConnectionUpdatedPreviousObject7Authentication, - EventStreamCloudEventConnectionUpdatedPreviousObject7ConnectedAccounts, - EventStreamCloudEventConnectionUpdatedPreviousObject7Metadata, - EventStreamCloudEventConnectionUpdatedPreviousObject7Options, - EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsFederatedConnectionsAccessTokens, - EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsIdentityApiEnum, - EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsSetUserRootAttributesEnum, - EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum, - EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsTenantDomainOne, - EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsUpstreamParams, - EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsUseridAttributeEnum, - EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsWaadProtocolEnum, - EventStreamCloudEventConnectionUpdatedPreviousObject7StrategyEnum, - EventStreamCloudEventConnectionUpdatedTypeEnum, - EventStreamCloudEventContext, - EventStreamCloudEventContextClient, - EventStreamCloudEventContextClientMetadata, - EventStreamCloudEventContextConnection, - EventStreamCloudEventContextRequest, - EventStreamCloudEventContextRequestGeo, - EventStreamCloudEventContextTenant, - EventStreamCloudEventContextTransaction, - EventStreamCloudEventContextTransactionProtocolEnum, - EventStreamCloudEventContextTransactionResponseModeEnum, - EventStreamCloudEventContextTransactionResponseTypeItemEnum, - EventStreamCloudEventData, - EventStreamCloudEventErrorCodeEnum, - EventStreamCloudEventErrorDetail, - EventStreamCloudEventErrorMessage, - EventStreamCloudEventErrorMessageTypeEnum, - EventStreamCloudEventGroupCreated, - EventStreamCloudEventGroupCreatedCloudEvent, - EventStreamCloudEventGroupCreatedCloudEventTypeEnum, - EventStreamCloudEventGroupCreatedData, - EventStreamCloudEventGroupCreatedObject, - EventStreamCloudEventGroupCreatedObject0, - EventStreamCloudEventGroupCreatedObject0TypeEnum, - EventStreamCloudEventGroupCreatedObject1, - EventStreamCloudEventGroupCreatedObject1TypeEnum, - EventStreamCloudEventGroupCreatedObject2, - EventStreamCloudEventGroupCreatedObject2TypeEnum, - EventStreamCloudEventGroupCreatedPreviousObject, - EventStreamCloudEventGroupCreatedPreviousObject0, - EventStreamCloudEventGroupCreatedPreviousObject0TypeEnum, - EventStreamCloudEventGroupCreatedPreviousObject1, - EventStreamCloudEventGroupCreatedPreviousObject1TypeEnum, - EventStreamCloudEventGroupCreatedPreviousObject2, - EventStreamCloudEventGroupCreatedPreviousObject2TypeEnum, - EventStreamCloudEventGroupCreatedTypeEnum, - EventStreamCloudEventGroupDeleted, - EventStreamCloudEventGroupDeletedCloudEvent, - EventStreamCloudEventGroupDeletedCloudEventTypeEnum, - EventStreamCloudEventGroupDeletedData, - EventStreamCloudEventGroupDeletedObject, - EventStreamCloudEventGroupDeletedObject0, - EventStreamCloudEventGroupDeletedObject0TypeEnum, - EventStreamCloudEventGroupDeletedObject1, - EventStreamCloudEventGroupDeletedObject1TypeEnum, - EventStreamCloudEventGroupDeletedObject2, - EventStreamCloudEventGroupDeletedObject2TypeEnum, - EventStreamCloudEventGroupDeletedPreviousObject, - EventStreamCloudEventGroupDeletedPreviousObject0, - EventStreamCloudEventGroupDeletedPreviousObject0TypeEnum, - EventStreamCloudEventGroupDeletedPreviousObject1, - EventStreamCloudEventGroupDeletedPreviousObject1TypeEnum, - EventStreamCloudEventGroupDeletedPreviousObject2, - EventStreamCloudEventGroupDeletedPreviousObject2TypeEnum, - EventStreamCloudEventGroupDeletedTypeEnum, - EventStreamCloudEventGroupMemberAdded, - EventStreamCloudEventGroupMemberAddedCloudEvent, - EventStreamCloudEventGroupMemberAddedCloudEventTypeEnum, - EventStreamCloudEventGroupMemberAddedData, - EventStreamCloudEventGroupMemberAddedObject, - EventStreamCloudEventGroupMemberAddedObjectGroup, - EventStreamCloudEventGroupMemberAddedObjectGroup0, - EventStreamCloudEventGroupMemberAddedObjectGroup0TypeEnum, - EventStreamCloudEventGroupMemberAddedObjectGroup1, - EventStreamCloudEventGroupMemberAddedObjectGroup1TypeEnum, - EventStreamCloudEventGroupMemberAddedObjectGroup2, - EventStreamCloudEventGroupMemberAddedObjectGroup2TypeEnum, - EventStreamCloudEventGroupMemberAddedObjectMember, - EventStreamCloudEventGroupMemberAddedObjectMember0, - EventStreamCloudEventGroupMemberAddedObjectMember0MemberTypeEnum, - EventStreamCloudEventGroupMemberAddedObjectMember1, - EventStreamCloudEventGroupMemberAddedObjectMember1MemberTypeEnum, - EventStreamCloudEventGroupMemberAddedPreviousObject, - EventStreamCloudEventGroupMemberAddedPreviousObjectGroup, - EventStreamCloudEventGroupMemberAddedPreviousObjectGroup0, - EventStreamCloudEventGroupMemberAddedPreviousObjectGroup0TypeEnum, - EventStreamCloudEventGroupMemberAddedPreviousObjectGroup1, - EventStreamCloudEventGroupMemberAddedPreviousObjectGroup1TypeEnum, - EventStreamCloudEventGroupMemberAddedPreviousObjectGroup2, - EventStreamCloudEventGroupMemberAddedPreviousObjectGroup2TypeEnum, - EventStreamCloudEventGroupMemberAddedPreviousObjectMember, - EventStreamCloudEventGroupMemberAddedPreviousObjectMember0, - EventStreamCloudEventGroupMemberAddedPreviousObjectMember0MemberTypeEnum, - EventStreamCloudEventGroupMemberAddedPreviousObjectMember1, - EventStreamCloudEventGroupMemberAddedPreviousObjectMember1MemberTypeEnum, - EventStreamCloudEventGroupMemberAddedTypeEnum, - EventStreamCloudEventGroupMemberDeleted, - EventStreamCloudEventGroupMemberDeletedCloudEvent, - EventStreamCloudEventGroupMemberDeletedCloudEventTypeEnum, - EventStreamCloudEventGroupMemberDeletedData, - EventStreamCloudEventGroupMemberDeletedObject, - EventStreamCloudEventGroupMemberDeletedObjectGroup, - EventStreamCloudEventGroupMemberDeletedObjectGroup0, - EventStreamCloudEventGroupMemberDeletedObjectGroup0TypeEnum, - EventStreamCloudEventGroupMemberDeletedObjectGroup1, - EventStreamCloudEventGroupMemberDeletedObjectGroup1TypeEnum, - EventStreamCloudEventGroupMemberDeletedObjectGroup2, - EventStreamCloudEventGroupMemberDeletedObjectGroup2TypeEnum, - EventStreamCloudEventGroupMemberDeletedObjectMember, - EventStreamCloudEventGroupMemberDeletedObjectMember0, - EventStreamCloudEventGroupMemberDeletedObjectMember0MemberTypeEnum, - EventStreamCloudEventGroupMemberDeletedObjectMember1, - EventStreamCloudEventGroupMemberDeletedObjectMember1MemberTypeEnum, - EventStreamCloudEventGroupMemberDeletedPreviousObject, - EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup, - EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup0, - EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup0TypeEnum, - EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup1, - EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup1TypeEnum, - EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup2, - EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup2TypeEnum, - EventStreamCloudEventGroupMemberDeletedPreviousObjectMember, - EventStreamCloudEventGroupMemberDeletedPreviousObjectMember0, - EventStreamCloudEventGroupMemberDeletedPreviousObjectMember0MemberTypeEnum, - EventStreamCloudEventGroupMemberDeletedPreviousObjectMember1, - EventStreamCloudEventGroupMemberDeletedPreviousObjectMember1MemberTypeEnum, - EventStreamCloudEventGroupMemberDeletedTypeEnum, - EventStreamCloudEventGroupRoleAssigned, - EventStreamCloudEventGroupRoleAssignedCloudEvent, - EventStreamCloudEventGroupRoleAssignedCloudEventTypeEnum, - EventStreamCloudEventGroupRoleAssignedData, - EventStreamCloudEventGroupRoleAssignedObject, - EventStreamCloudEventGroupRoleAssignedObjectGroup, - EventStreamCloudEventGroupRoleAssignedObjectGroup0, - EventStreamCloudEventGroupRoleAssignedObjectGroup0TypeEnum, - EventStreamCloudEventGroupRoleAssignedObjectGroup1, - EventStreamCloudEventGroupRoleAssignedObjectGroup1TypeEnum, - EventStreamCloudEventGroupRoleAssignedObjectGroup2, - EventStreamCloudEventGroupRoleAssignedObjectGroup2TypeEnum, - EventStreamCloudEventGroupRoleAssignedObjectRole, - EventStreamCloudEventGroupRoleAssignedPreviousObject, - EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup, - EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup0, - EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup0TypeEnum, - EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup1, - EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup1TypeEnum, - EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup2, - EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup2TypeEnum, - EventStreamCloudEventGroupRoleAssignedPreviousObjectRole, - EventStreamCloudEventGroupRoleAssignedTypeEnum, - EventStreamCloudEventGroupRoleDeleted, - EventStreamCloudEventGroupRoleDeletedCloudEvent, - EventStreamCloudEventGroupRoleDeletedCloudEventTypeEnum, - EventStreamCloudEventGroupRoleDeletedData, - EventStreamCloudEventGroupRoleDeletedObject, - EventStreamCloudEventGroupRoleDeletedObjectGroup, - EventStreamCloudEventGroupRoleDeletedObjectGroup0, - EventStreamCloudEventGroupRoleDeletedObjectGroup0TypeEnum, - EventStreamCloudEventGroupRoleDeletedObjectGroup1, - EventStreamCloudEventGroupRoleDeletedObjectGroup1TypeEnum, - EventStreamCloudEventGroupRoleDeletedObjectGroup2, - EventStreamCloudEventGroupRoleDeletedObjectGroup2TypeEnum, - EventStreamCloudEventGroupRoleDeletedObjectRole, - EventStreamCloudEventGroupRoleDeletedPreviousObject, - EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup, - EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup0, - EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup0TypeEnum, - EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup1, - EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup1TypeEnum, - EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup2, - EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup2TypeEnum, - EventStreamCloudEventGroupRoleDeletedPreviousObjectRole, - EventStreamCloudEventGroupRoleDeletedTypeEnum, - EventStreamCloudEventGroupUpdated, - EventStreamCloudEventGroupUpdatedCloudEvent, - EventStreamCloudEventGroupUpdatedCloudEventTypeEnum, - EventStreamCloudEventGroupUpdatedData, - EventStreamCloudEventGroupUpdatedObject, - EventStreamCloudEventGroupUpdatedObject0, - EventStreamCloudEventGroupUpdatedObject0TypeEnum, - EventStreamCloudEventGroupUpdatedObject1, - EventStreamCloudEventGroupUpdatedObject1TypeEnum, - EventStreamCloudEventGroupUpdatedObject2, - EventStreamCloudEventGroupUpdatedObject2TypeEnum, - EventStreamCloudEventGroupUpdatedPreviousObject, - EventStreamCloudEventGroupUpdatedPreviousObject0, - EventStreamCloudEventGroupUpdatedPreviousObject0TypeEnum, - EventStreamCloudEventGroupUpdatedPreviousObject1, - EventStreamCloudEventGroupUpdatedPreviousObject1TypeEnum, - EventStreamCloudEventGroupUpdatedPreviousObject2, - EventStreamCloudEventGroupUpdatedPreviousObject2TypeEnum, - EventStreamCloudEventGroupUpdatedTypeEnum, - EventStreamCloudEventOffsetOnlyMessage, - EventStreamCloudEventOffsetOnlyMessageTypeEnum, - EventStreamCloudEventOrgConnectionAdded, - EventStreamCloudEventOrgConnectionAddedCloudEvent, - EventStreamCloudEventOrgConnectionAddedCloudEventTypeEnum, - EventStreamCloudEventOrgConnectionAddedData, - EventStreamCloudEventOrgConnectionAddedObject, - EventStreamCloudEventOrgConnectionAddedObjectConnection, - EventStreamCloudEventOrgConnectionAddedObjectOrganization, - EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel, - EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel0Enum, - EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel1Enum, - EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel2Enum, - EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel3Enum, - EventStreamCloudEventOrgConnectionAddedObjectOrganizationMemberAccessLevel, - EventStreamCloudEventOrgConnectionAddedObjectOrganizationMemberAccessLevel0Enum, - EventStreamCloudEventOrgConnectionAddedObjectOrganizationMemberAccessLevel1Enum, - EventStreamCloudEventOrgConnectionAddedObjectOrganizationMemberAccessLevel2Enum, - EventStreamCloudEventOrgConnectionAddedObjectOrganizationMemberAccessLevel3Enum, - EventStreamCloudEventOrgConnectionAddedPreviousObject, - EventStreamCloudEventOrgConnectionAddedPreviousObjectConnection, - EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganization, - EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel, - EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel0Enum, - EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel1Enum, - EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel2Enum, - EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel3Enum, - EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationMemberAccessLevel, - EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationMemberAccessLevel0Enum, - EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationMemberAccessLevel1Enum, - EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationMemberAccessLevel2Enum, - EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationMemberAccessLevel3Enum, - EventStreamCloudEventOrgConnectionAddedTypeEnum, - EventStreamCloudEventOrgConnectionRemoved, - EventStreamCloudEventOrgConnectionRemovedCloudEvent, - EventStreamCloudEventOrgConnectionRemovedCloudEventTypeEnum, - EventStreamCloudEventOrgConnectionRemovedData, - EventStreamCloudEventOrgConnectionRemovedObject, - EventStreamCloudEventOrgConnectionRemovedObjectConnection, - EventStreamCloudEventOrgConnectionRemovedObjectOrganization, - EventStreamCloudEventOrgConnectionRemovedPreviousObject, - EventStreamCloudEventOrgConnectionRemovedPreviousObjectConnection, - EventStreamCloudEventOrgConnectionRemovedPreviousObjectOrganization, - EventStreamCloudEventOrgConnectionRemovedTypeEnum, - EventStreamCloudEventOrgConnectionUpdated, - EventStreamCloudEventOrgConnectionUpdatedCloudEvent, - EventStreamCloudEventOrgConnectionUpdatedCloudEventTypeEnum, - EventStreamCloudEventOrgConnectionUpdatedData, - EventStreamCloudEventOrgConnectionUpdatedObject, - EventStreamCloudEventOrgConnectionUpdatedObjectConnection, - EventStreamCloudEventOrgConnectionUpdatedObjectOrganization, - EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel, - EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel0Enum, - EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel1Enum, - EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel2Enum, - EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel3Enum, - EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationMemberAccessLevel, - EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationMemberAccessLevel0Enum, - EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationMemberAccessLevel1Enum, - EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationMemberAccessLevel2Enum, - EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationMemberAccessLevel3Enum, - EventStreamCloudEventOrgConnectionUpdatedPreviousObject, - EventStreamCloudEventOrgConnectionUpdatedPreviousObjectConnection, - EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganization, - EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel, - EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel0Enum, - EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel1Enum, - EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel2Enum, - EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel3Enum, - EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationMemberAccessLevel, - EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationMemberAccessLevel0Enum, - EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationMemberAccessLevel1Enum, - EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationMemberAccessLevel2Enum, - EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationMemberAccessLevel3Enum, - EventStreamCloudEventOrgConnectionUpdatedTypeEnum, - EventStreamCloudEventOrgCreated, - EventStreamCloudEventOrgCreatedCloudEvent, - EventStreamCloudEventOrgCreatedCloudEventTypeEnum, - EventStreamCloudEventOrgCreatedData, - EventStreamCloudEventOrgCreatedObject, - EventStreamCloudEventOrgCreatedObjectBranding, - EventStreamCloudEventOrgCreatedObjectBrandingColors, - EventStreamCloudEventOrgCreatedObjectMetadata, - EventStreamCloudEventOrgCreatedPreviousObject, - EventStreamCloudEventOrgCreatedPreviousObjectBranding, - EventStreamCloudEventOrgCreatedPreviousObjectBrandingColors, - EventStreamCloudEventOrgCreatedPreviousObjectMetadata, - EventStreamCloudEventOrgCreatedTypeEnum, - EventStreamCloudEventOrgDeleted, - EventStreamCloudEventOrgDeletedCloudEvent, - EventStreamCloudEventOrgDeletedCloudEventTypeEnum, - EventStreamCloudEventOrgDeletedData, - EventStreamCloudEventOrgDeletedObject, - EventStreamCloudEventOrgDeletedObjectMetadata, - EventStreamCloudEventOrgDeletedPreviousObject, - EventStreamCloudEventOrgDeletedPreviousObjectMetadata, - EventStreamCloudEventOrgDeletedTypeEnum, - EventStreamCloudEventOrgGroupRoleAssigned, - EventStreamCloudEventOrgGroupRoleAssignedCloudEvent, - EventStreamCloudEventOrgGroupRoleAssignedCloudEventTypeEnum, - EventStreamCloudEventOrgGroupRoleAssignedData, - EventStreamCloudEventOrgGroupRoleAssignedObject, - EventStreamCloudEventOrgGroupRoleAssignedObjectGroup, - EventStreamCloudEventOrgGroupRoleAssignedObjectGroup0, - EventStreamCloudEventOrgGroupRoleAssignedObjectGroup0TypeEnum, - EventStreamCloudEventOrgGroupRoleAssignedObjectGroup1, - EventStreamCloudEventOrgGroupRoleAssignedObjectGroup1TypeEnum, - EventStreamCloudEventOrgGroupRoleAssignedObjectGroup2, - EventStreamCloudEventOrgGroupRoleAssignedObjectGroup2TypeEnum, - EventStreamCloudEventOrgGroupRoleAssignedObjectOrganization, - EventStreamCloudEventOrgGroupRoleAssignedObjectRole, - EventStreamCloudEventOrgGroupRoleAssignedPreviousObject, - EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup, - EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup0, - EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup0TypeEnum, - EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup1, - EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup1TypeEnum, - EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup2, - EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup2TypeEnum, - EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectOrganization, - EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectRole, - EventStreamCloudEventOrgGroupRoleAssignedTypeEnum, - EventStreamCloudEventOrgGroupRoleDeleted, - EventStreamCloudEventOrgGroupRoleDeletedCloudEvent, - EventStreamCloudEventOrgGroupRoleDeletedCloudEventTypeEnum, - EventStreamCloudEventOrgGroupRoleDeletedData, - EventStreamCloudEventOrgGroupRoleDeletedObject, - EventStreamCloudEventOrgGroupRoleDeletedObjectGroup, - EventStreamCloudEventOrgGroupRoleDeletedObjectGroup0, - EventStreamCloudEventOrgGroupRoleDeletedObjectGroup0TypeEnum, - EventStreamCloudEventOrgGroupRoleDeletedObjectGroup1, - EventStreamCloudEventOrgGroupRoleDeletedObjectGroup1TypeEnum, - EventStreamCloudEventOrgGroupRoleDeletedObjectGroup2, - EventStreamCloudEventOrgGroupRoleDeletedObjectGroup2TypeEnum, - EventStreamCloudEventOrgGroupRoleDeletedObjectOrganization, - EventStreamCloudEventOrgGroupRoleDeletedObjectRole, - EventStreamCloudEventOrgGroupRoleDeletedPreviousObject, - EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup, - EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup0, - EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup0TypeEnum, - EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup1, - EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup1TypeEnum, - EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup2, - EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup2TypeEnum, - EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectOrganization, - EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectRole, - EventStreamCloudEventOrgGroupRoleDeletedTypeEnum, - EventStreamCloudEventOrgMemberAdded, - EventStreamCloudEventOrgMemberAddedCloudEvent, - EventStreamCloudEventOrgMemberAddedCloudEventTypeEnum, - EventStreamCloudEventOrgMemberAddedData, - EventStreamCloudEventOrgMemberAddedObject, - EventStreamCloudEventOrgMemberAddedObjectOrganization, - EventStreamCloudEventOrgMemberAddedObjectUser, - EventStreamCloudEventOrgMemberAddedPreviousObject, - EventStreamCloudEventOrgMemberAddedPreviousObjectOrganization, - EventStreamCloudEventOrgMemberAddedPreviousObjectUser, - EventStreamCloudEventOrgMemberAddedTypeEnum, - EventStreamCloudEventOrgMemberDeleted, - EventStreamCloudEventOrgMemberDeletedCloudEvent, - EventStreamCloudEventOrgMemberDeletedCloudEventTypeEnum, - EventStreamCloudEventOrgMemberDeletedData, - EventStreamCloudEventOrgMemberDeletedObject, - EventStreamCloudEventOrgMemberDeletedObjectOrganization, - EventStreamCloudEventOrgMemberDeletedObjectUser, - EventStreamCloudEventOrgMemberDeletedPreviousObject, - EventStreamCloudEventOrgMemberDeletedPreviousObjectOrganization, - EventStreamCloudEventOrgMemberDeletedPreviousObjectUser, - EventStreamCloudEventOrgMemberDeletedTypeEnum, - EventStreamCloudEventOrgMemberRoleAssigned, - EventStreamCloudEventOrgMemberRoleAssignedCloudEvent, - EventStreamCloudEventOrgMemberRoleAssignedCloudEventTypeEnum, - EventStreamCloudEventOrgMemberRoleAssignedData, - EventStreamCloudEventOrgMemberRoleAssignedObject, - EventStreamCloudEventOrgMemberRoleAssignedObjectOrganization, - EventStreamCloudEventOrgMemberRoleAssignedObjectRole, - EventStreamCloudEventOrgMemberRoleAssignedObjectUser, - EventStreamCloudEventOrgMemberRoleAssignedPreviousObject, - EventStreamCloudEventOrgMemberRoleAssignedPreviousObjectOrganization, - EventStreamCloudEventOrgMemberRoleAssignedPreviousObjectRole, - EventStreamCloudEventOrgMemberRoleAssignedPreviousObjectUser, - EventStreamCloudEventOrgMemberRoleAssignedTypeEnum, - EventStreamCloudEventOrgMemberRoleDeleted, - EventStreamCloudEventOrgMemberRoleDeletedCloudEvent, - EventStreamCloudEventOrgMemberRoleDeletedCloudEventTypeEnum, - EventStreamCloudEventOrgMemberRoleDeletedData, - EventStreamCloudEventOrgMemberRoleDeletedObject, - EventStreamCloudEventOrgMemberRoleDeletedObjectOrganization, - EventStreamCloudEventOrgMemberRoleDeletedObjectRole, - EventStreamCloudEventOrgMemberRoleDeletedObjectUser, - EventStreamCloudEventOrgMemberRoleDeletedPreviousObject, - EventStreamCloudEventOrgMemberRoleDeletedPreviousObjectOrganization, - EventStreamCloudEventOrgMemberRoleDeletedPreviousObjectRole, - EventStreamCloudEventOrgMemberRoleDeletedPreviousObjectUser, - EventStreamCloudEventOrgMemberRoleDeletedTypeEnum, - EventStreamCloudEventOrgUpdated, - EventStreamCloudEventOrgUpdatedCloudEvent, - EventStreamCloudEventOrgUpdatedCloudEventTypeEnum, - EventStreamCloudEventOrgUpdatedData, - EventStreamCloudEventOrgUpdatedObject, - EventStreamCloudEventOrgUpdatedObjectBranding, - EventStreamCloudEventOrgUpdatedObjectBrandingColors, - EventStreamCloudEventOrgUpdatedObjectMetadata, - EventStreamCloudEventOrgUpdatedPreviousObject, - EventStreamCloudEventOrgUpdatedPreviousObjectBranding, - EventStreamCloudEventOrgUpdatedPreviousObjectBrandingColors, - EventStreamCloudEventOrgUpdatedPreviousObjectMetadata, - EventStreamCloudEventOrgUpdatedTypeEnum, - EventStreamCloudEventSpecVersionEnum, - EventStreamCloudEventUserCreated, - EventStreamCloudEventUserCreatedCloudEvent, - EventStreamCloudEventUserCreatedCloudEventTypeEnum, - EventStreamCloudEventUserCreatedData, - EventStreamCloudEventUserCreatedObject, - EventStreamCloudEventUserCreatedObjectAppMetadata, - EventStreamCloudEventUserCreatedObjectIdentitiesItem, - EventStreamCloudEventUserCreatedObjectIdentitiesItemCustom, - EventStreamCloudEventUserCreatedObjectIdentitiesItemCustomIsSocialEnum, - EventStreamCloudEventUserCreatedObjectIdentitiesItemCustomProfileData, - EventStreamCloudEventUserCreatedObjectIdentitiesItemCustomProviderEnum, - EventStreamCloudEventUserCreatedObjectIdentitiesItemCustomUserId, - EventStreamCloudEventUserCreatedObjectIdentitiesItemDatabase, - EventStreamCloudEventUserCreatedObjectIdentitiesItemDatabaseIsSocialEnum, - EventStreamCloudEventUserCreatedObjectIdentitiesItemDatabaseProfileData, - EventStreamCloudEventUserCreatedObjectIdentitiesItemDatabaseProviderEnum, - EventStreamCloudEventUserCreatedObjectIdentitiesItemDatabaseUserId, - EventStreamCloudEventUserCreatedObjectIdentitiesItemEnterprise, - EventStreamCloudEventUserCreatedObjectIdentitiesItemEnterpriseIsSocialEnum, - EventStreamCloudEventUserCreatedObjectIdentitiesItemEnterpriseProfileData, - EventStreamCloudEventUserCreatedObjectIdentitiesItemEnterpriseProviderEnum, - EventStreamCloudEventUserCreatedObjectIdentitiesItemEnterpriseUserId, - EventStreamCloudEventUserCreatedObjectIdentitiesItemPasswordless, - EventStreamCloudEventUserCreatedObjectIdentitiesItemPasswordlessIsSocialEnum, - EventStreamCloudEventUserCreatedObjectIdentitiesItemPasswordlessProfileData, - EventStreamCloudEventUserCreatedObjectIdentitiesItemPasswordlessProviderEnum, - EventStreamCloudEventUserCreatedObjectIdentitiesItemPasswordlessUserId, - EventStreamCloudEventUserCreatedObjectIdentitiesItemSocial, - EventStreamCloudEventUserCreatedObjectIdentitiesItemSocialIsSocialEnum, - EventStreamCloudEventUserCreatedObjectIdentitiesItemSocialProfileData, - EventStreamCloudEventUserCreatedObjectIdentitiesItemSocialProviderEnum, - EventStreamCloudEventUserCreatedObjectIdentitiesItemSocialUserId, - EventStreamCloudEventUserCreatedObjectUserMetadata, - EventStreamCloudEventUserCreatedPreviousObject, - EventStreamCloudEventUserCreatedPreviousObjectAppMetadata, - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItem, - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustom, - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomIsSocialEnum, - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomProfileData, - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomProviderEnum, - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomUserId, - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabase, - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseIsSocialEnum, - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseProfileData, - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseProviderEnum, - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseUserId, - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterprise, - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseIsSocialEnum, - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseProfileData, - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseProviderEnum, - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseUserId, - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordless, - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessIsSocialEnum, - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessProfileData, - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessProviderEnum, - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessUserId, - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocial, - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialIsSocialEnum, - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProfileData, - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum, - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialUserId, - EventStreamCloudEventUserCreatedPreviousObjectUserMetadata, - EventStreamCloudEventUserCreatedTypeEnum, - EventStreamCloudEventUserDeleted, - EventStreamCloudEventUserDeletedCloudEvent, - EventStreamCloudEventUserDeletedCloudEventTypeEnum, - EventStreamCloudEventUserDeletedData, - EventStreamCloudEventUserDeletedObject, - EventStreamCloudEventUserDeletedObjectAppMetadata, - EventStreamCloudEventUserDeletedObjectIdentitiesItem, - EventStreamCloudEventUserDeletedObjectIdentitiesItemCustom, - EventStreamCloudEventUserDeletedObjectIdentitiesItemCustomIsSocialEnum, - EventStreamCloudEventUserDeletedObjectIdentitiesItemCustomProfileData, - EventStreamCloudEventUserDeletedObjectIdentitiesItemCustomProviderEnum, - EventStreamCloudEventUserDeletedObjectIdentitiesItemCustomUserId, - EventStreamCloudEventUserDeletedObjectIdentitiesItemDatabase, - EventStreamCloudEventUserDeletedObjectIdentitiesItemDatabaseIsSocialEnum, - EventStreamCloudEventUserDeletedObjectIdentitiesItemDatabaseProfileData, - EventStreamCloudEventUserDeletedObjectIdentitiesItemDatabaseProviderEnum, - EventStreamCloudEventUserDeletedObjectIdentitiesItemDatabaseUserId, - EventStreamCloudEventUserDeletedObjectIdentitiesItemEnterprise, - EventStreamCloudEventUserDeletedObjectIdentitiesItemEnterpriseIsSocialEnum, - EventStreamCloudEventUserDeletedObjectIdentitiesItemEnterpriseProfileData, - EventStreamCloudEventUserDeletedObjectIdentitiesItemEnterpriseProviderEnum, - EventStreamCloudEventUserDeletedObjectIdentitiesItemEnterpriseUserId, - EventStreamCloudEventUserDeletedObjectIdentitiesItemPasswordless, - EventStreamCloudEventUserDeletedObjectIdentitiesItemPasswordlessIsSocialEnum, - EventStreamCloudEventUserDeletedObjectIdentitiesItemPasswordlessProfileData, - EventStreamCloudEventUserDeletedObjectIdentitiesItemPasswordlessProviderEnum, - EventStreamCloudEventUserDeletedObjectIdentitiesItemPasswordlessUserId, - EventStreamCloudEventUserDeletedObjectIdentitiesItemSocial, - EventStreamCloudEventUserDeletedObjectIdentitiesItemSocialIsSocialEnum, - EventStreamCloudEventUserDeletedObjectIdentitiesItemSocialProfileData, - EventStreamCloudEventUserDeletedObjectIdentitiesItemSocialProviderEnum, - EventStreamCloudEventUserDeletedObjectIdentitiesItemSocialUserId, - EventStreamCloudEventUserDeletedObjectUserMetadata, - EventStreamCloudEventUserDeletedPreviousObject, - EventStreamCloudEventUserDeletedPreviousObjectAppMetadata, - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItem, - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustom, - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomIsSocialEnum, - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomProfileData, - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomProviderEnum, - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomUserId, - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabase, - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseIsSocialEnum, - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseProfileData, - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseProviderEnum, - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseUserId, - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterprise, - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseIsSocialEnum, - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseProfileData, - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseProviderEnum, - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseUserId, - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordless, - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessIsSocialEnum, - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessProfileData, - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessProviderEnum, - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessUserId, - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocial, - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialIsSocialEnum, - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProfileData, - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum, - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialUserId, - EventStreamCloudEventUserDeletedPreviousObjectUserMetadata, - EventStreamCloudEventUserDeletedTypeEnum, - EventStreamCloudEventUserUpdated, - EventStreamCloudEventUserUpdatedCloudEvent, - EventStreamCloudEventUserUpdatedCloudEventTypeEnum, - EventStreamCloudEventUserUpdatedData, - EventStreamCloudEventUserUpdatedObject, - EventStreamCloudEventUserUpdatedObjectAppMetadata, - EventStreamCloudEventUserUpdatedObjectIdentitiesItem, - EventStreamCloudEventUserUpdatedObjectIdentitiesItemCustom, - EventStreamCloudEventUserUpdatedObjectIdentitiesItemCustomIsSocialEnum, - EventStreamCloudEventUserUpdatedObjectIdentitiesItemCustomProfileData, - EventStreamCloudEventUserUpdatedObjectIdentitiesItemCustomProviderEnum, - EventStreamCloudEventUserUpdatedObjectIdentitiesItemCustomUserId, - EventStreamCloudEventUserUpdatedObjectIdentitiesItemDatabase, - EventStreamCloudEventUserUpdatedObjectIdentitiesItemDatabaseIsSocialEnum, - EventStreamCloudEventUserUpdatedObjectIdentitiesItemDatabaseProfileData, - EventStreamCloudEventUserUpdatedObjectIdentitiesItemDatabaseProviderEnum, - EventStreamCloudEventUserUpdatedObjectIdentitiesItemDatabaseUserId, - EventStreamCloudEventUserUpdatedObjectIdentitiesItemEnterprise, - EventStreamCloudEventUserUpdatedObjectIdentitiesItemEnterpriseIsSocialEnum, - EventStreamCloudEventUserUpdatedObjectIdentitiesItemEnterpriseProfileData, - EventStreamCloudEventUserUpdatedObjectIdentitiesItemEnterpriseProviderEnum, - EventStreamCloudEventUserUpdatedObjectIdentitiesItemEnterpriseUserId, - EventStreamCloudEventUserUpdatedObjectIdentitiesItemPasswordless, - EventStreamCloudEventUserUpdatedObjectIdentitiesItemPasswordlessIsSocialEnum, - EventStreamCloudEventUserUpdatedObjectIdentitiesItemPasswordlessProfileData, - EventStreamCloudEventUserUpdatedObjectIdentitiesItemPasswordlessProviderEnum, - EventStreamCloudEventUserUpdatedObjectIdentitiesItemPasswordlessUserId, - EventStreamCloudEventUserUpdatedObjectIdentitiesItemSocial, - EventStreamCloudEventUserUpdatedObjectIdentitiesItemSocialIsSocialEnum, - EventStreamCloudEventUserUpdatedObjectIdentitiesItemSocialProfileData, - EventStreamCloudEventUserUpdatedObjectIdentitiesItemSocialProviderEnum, - EventStreamCloudEventUserUpdatedObjectIdentitiesItemSocialUserId, - EventStreamCloudEventUserUpdatedObjectUserMetadata, - EventStreamCloudEventUserUpdatedPreviousObject, - EventStreamCloudEventUserUpdatedPreviousObjectAppMetadata, - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItem, - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustom, - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomIsSocialEnum, - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomProfileData, - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomProviderEnum, - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomUserId, - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabase, - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseIsSocialEnum, - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseProfileData, - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseProviderEnum, - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseUserId, - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterprise, - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseIsSocialEnum, - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseProfileData, - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseProviderEnum, - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseUserId, - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordless, - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessIsSocialEnum, - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessProfileData, - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessProviderEnum, - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessUserId, - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocial, - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialIsSocialEnum, - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProfileData, - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum, - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialUserId, - EventStreamCloudEventUserUpdatedPreviousObjectUserMetadata, - EventStreamCloudEventUserUpdatedTypeEnum, - EventStreamDelivery, - EventStreamDeliveryAttempt, - EventStreamDeliveryEventTypeEnum, - EventStreamDeliveryStatusEnum, - EventStreamDestinationPatch, - EventStreamEventBridgeAwsRegionEnum, - EventStreamEventBridgeConfiguration, - EventStreamEventBridgeDestination, - EventStreamEventBridgeDestinationTypeEnum, - EventStreamEventBridgeResponseContent, - EventStreamEventTypeEnum, - EventStreamResponseContent, - EventStreamStatusEnum, - EventStreamSubscribeEventsEventTypeEnum, - EventStreamSubscribeEventsEventTypeParam, - EventStreamSubscribeEventsResponseContent, - EventStreamSubscribeEventsResponseContent_ConnectionCreated, - EventStreamSubscribeEventsResponseContent_ConnectionDeleted, - EventStreamSubscribeEventsResponseContent_ConnectionUpdated, - EventStreamSubscribeEventsResponseContent_Error, - EventStreamSubscribeEventsResponseContent_GroupCreated, - EventStreamSubscribeEventsResponseContent_GroupDeleted, - EventStreamSubscribeEventsResponseContent_GroupMemberAdded, - EventStreamSubscribeEventsResponseContent_GroupMemberDeleted, - EventStreamSubscribeEventsResponseContent_GroupRoleAssigned, - EventStreamSubscribeEventsResponseContent_GroupRoleDeleted, - EventStreamSubscribeEventsResponseContent_GroupUpdated, - EventStreamSubscribeEventsResponseContent_OffsetOnly, - EventStreamSubscribeEventsResponseContent_OrganizationConnectionAdded, - EventStreamSubscribeEventsResponseContent_OrganizationConnectionRemoved, - EventStreamSubscribeEventsResponseContent_OrganizationConnectionUpdated, - EventStreamSubscribeEventsResponseContent_OrganizationCreated, - EventStreamSubscribeEventsResponseContent_OrganizationDeleted, - EventStreamSubscribeEventsResponseContent_OrganizationGroupRoleAssigned, - EventStreamSubscribeEventsResponseContent_OrganizationGroupRoleDeleted, - EventStreamSubscribeEventsResponseContent_OrganizationMemberAdded, - EventStreamSubscribeEventsResponseContent_OrganizationMemberDeleted, - EventStreamSubscribeEventsResponseContent_OrganizationMemberRoleAssigned, - EventStreamSubscribeEventsResponseContent_OrganizationMemberRoleDeleted, - EventStreamSubscribeEventsResponseContent_OrganizationUpdated, - EventStreamSubscribeEventsResponseContent_UserCreated, - EventStreamSubscribeEventsResponseContent_UserDeleted, - EventStreamSubscribeEventsResponseContent_UserUpdated, - EventStreamSubscription, - EventStreamTestEventTypeEnum, - EventStreamWebhookAuthorizationResponse, - EventStreamWebhookBasicAuth, - EventStreamWebhookBasicAuthMethodEnum, - EventStreamWebhookBearerAuth, - EventStreamWebhookBearerAuthMethodEnum, - EventStreamWebhookConfiguration, - EventStreamWebhookCustomHeaderAuth, - EventStreamWebhookCustomHeaderAuthMethodEnum, - EventStreamWebhookDestination, - EventStreamWebhookDestinationTypeEnum, - EventStreamWebhookResponseContent, - ExperimentListItem, - ExperimentStatusEnum, - ExperimentTransitionStatusEnum, - ExperimentValidationError, - ExpressConfiguration, - ExpressConfigurationOrNull, - ExtensibilityEmailProviderCredentials, - FeatureFlag, - FeatureFlagConfigParam, - FeatureFlagConfigParamTypeEnum, - FeatureFlagConfigParams, - FeatureFlagStatusEnum, - FeatureFlagTypeEnum, - FedCmLogin, - FedCmLoginGoogle, - FedCmLoginGooglePatch, - FedCmLoginPatch, - FlowAction, - FlowActionActivecampaign, - FlowActionActivecampaignListContacts, - FlowActionActivecampaignListContactsAction, - FlowActionActivecampaignListContactsParams, - FlowActionActivecampaignListContactsType, - FlowActionActivecampaignUpsertContact, - FlowActionActivecampaignUpsertContactAction, - FlowActionActivecampaignUpsertContactParams, - FlowActionActivecampaignUpsertContactParamsCustomFields, - FlowActionActivecampaignUpsertContactType, - FlowActionAirtable, - FlowActionAirtableCreateRecord, - FlowActionAirtableCreateRecordAction, - FlowActionAirtableCreateRecordParams, - FlowActionAirtableCreateRecordParamsFields, - FlowActionAirtableCreateRecordType, - FlowActionAirtableListRecords, - FlowActionAirtableListRecordsAction, - FlowActionAirtableListRecordsParams, - FlowActionAirtableListRecordsType, - FlowActionAirtableUpdateRecord, - FlowActionAirtableUpdateRecordAction, - FlowActionAirtableUpdateRecordParams, - FlowActionAirtableUpdateRecordParamsFields, - FlowActionAirtableUpdateRecordType, - FlowActionAuth0, - FlowActionAuth0CreateUser, - FlowActionAuth0CreateUserAction, - FlowActionAuth0CreateUserParams, - FlowActionAuth0CreateUserParamsPayload, - FlowActionAuth0CreateUserType, - FlowActionAuth0GetUser, - FlowActionAuth0GetUserAction, - FlowActionAuth0GetUserParams, - FlowActionAuth0GetUserType, - FlowActionAuth0MakeCall, - FlowActionAuth0MakeCallAction, - FlowActionAuth0MakeCallParams, - FlowActionAuth0MakeCallParamsCustomVars, - FlowActionAuth0MakeCallType, - FlowActionAuth0SendEmail, - FlowActionAuth0SendEmailAction, - FlowActionAuth0SendEmailParams, - FlowActionAuth0SendEmailParamsFrom, - FlowActionAuth0SendEmailParamsFromEmail, - FlowActionAuth0SendEmailParamsTo, - FlowActionAuth0SendEmailType, - FlowActionAuth0SendRequest, - FlowActionAuth0SendRequestAction, - FlowActionAuth0SendRequestParams, - FlowActionAuth0SendRequestParamsCustomVars, - FlowActionAuth0SendRequestParamsHeaders, - FlowActionAuth0SendRequestParamsMethod, - FlowActionAuth0SendRequestParamsPayload, - FlowActionAuth0SendRequestParamsPayloadObject, - FlowActionAuth0SendRequestParamsQueryParams, - FlowActionAuth0SendRequestParamsQueryParamsValue, - FlowActionAuth0SendRequestType, - FlowActionAuth0SendSms, - FlowActionAuth0SendSmsAction, - FlowActionAuth0SendSmsParams, - FlowActionAuth0SendSmsParamsCustomVars, - FlowActionAuth0SendSmsType, - FlowActionAuth0UpdateUser, - FlowActionAuth0UpdateUserAction, - FlowActionAuth0UpdateUserParams, - FlowActionAuth0UpdateUserParamsChanges, - FlowActionAuth0UpdateUserType, - FlowActionBigquery, - FlowActionBigqueryInsertRows, - FlowActionBigqueryInsertRowsAction, - FlowActionBigqueryInsertRowsParams, - FlowActionBigqueryInsertRowsParamsData, - FlowActionBigqueryInsertRowsType, - FlowActionClearbit, - FlowActionClearbitFindCompany, - FlowActionClearbitFindCompanyAction, - FlowActionClearbitFindCompanyParams, - FlowActionClearbitFindCompanyType, - FlowActionClearbitFindPerson, - FlowActionClearbitFindPersonAction, - FlowActionClearbitFindPersonParams, - FlowActionClearbitFindPersonType, - FlowActionEmail, - FlowActionEmailVerifyEmail, - FlowActionEmailVerifyEmailAction, - FlowActionEmailVerifyEmailParams, - FlowActionEmailVerifyEmailParamsRules, - FlowActionEmailVerifyEmailType, - FlowActionFlow, - FlowActionFlowBooleanCondition, - FlowActionFlowBooleanConditionAction, - FlowActionFlowBooleanConditionParams, - FlowActionFlowBooleanConditionType, - FlowActionFlowDelayFlow, - FlowActionFlowDelayFlowAction, - FlowActionFlowDelayFlowParams, - FlowActionFlowDelayFlowParamsNumber, - FlowActionFlowDelayFlowParamsUnits, - FlowActionFlowDelayFlowType, - FlowActionFlowDoNothing, - FlowActionFlowDoNothingAction, - FlowActionFlowDoNothingParams, - FlowActionFlowDoNothingType, - FlowActionFlowErrorMessage, - FlowActionFlowErrorMessageAction, - FlowActionFlowErrorMessageParams, - FlowActionFlowErrorMessageType, - FlowActionFlowMapValue, - FlowActionFlowMapValueAction, - FlowActionFlowMapValueParams, - FlowActionFlowMapValueParamsCases, - FlowActionFlowMapValueParamsFallback, - FlowActionFlowMapValueParamsFallbackObject, - FlowActionFlowMapValueParamsInput, - FlowActionFlowMapValueType, - FlowActionFlowReturnJson, - FlowActionFlowReturnJsonAction, - FlowActionFlowReturnJsonParams, - FlowActionFlowReturnJsonParamsPayload, - FlowActionFlowReturnJsonParamsPayloadObject, - FlowActionFlowReturnJsonType, - FlowActionFlowStoreVars, - FlowActionFlowStoreVarsAction, - FlowActionFlowStoreVarsParams, - FlowActionFlowStoreVarsParamsVars, - FlowActionFlowStoreVarsType, - FlowActionGoogleSheets, - FlowActionGoogleSheetsAddRow, - FlowActionGoogleSheetsAddRowAction, - FlowActionGoogleSheetsAddRowParams, - FlowActionGoogleSheetsAddRowParamsSheetId, - FlowActionGoogleSheetsAddRowParamsValues, - FlowActionGoogleSheetsAddRowType, - FlowActionHttp, - FlowActionHttpSendRequest, - FlowActionHttpSendRequestAction, - FlowActionHttpSendRequestParams, - FlowActionHttpSendRequestParamsBasicAuth, - FlowActionHttpSendRequestParamsContentType, - FlowActionHttpSendRequestParamsHeaders, - FlowActionHttpSendRequestParamsMethod, - FlowActionHttpSendRequestParamsPayload, - FlowActionHttpSendRequestParamsPayloadObject, - FlowActionHttpSendRequestParamsQueryParams, - FlowActionHttpSendRequestParamsQueryParamsValue, - FlowActionHttpSendRequestType, - FlowActionHubspot, - FlowActionHubspotEnrollContact, - FlowActionHubspotEnrollContactAction, - FlowActionHubspotEnrollContactParams, - FlowActionHubspotEnrollContactParamsWorkflowId, - FlowActionHubspotEnrollContactType, - FlowActionHubspotGetContact, - FlowActionHubspotGetContactAction, - FlowActionHubspotGetContactParams, - FlowActionHubspotGetContactType, - FlowActionHubspotUpsertContact, - FlowActionHubspotUpsertContactAction, - FlowActionHubspotUpsertContactParams, - FlowActionHubspotUpsertContactParamsProperty, - FlowActionHubspotUpsertContactType, - FlowActionJson, - FlowActionJsonCreateJson, - FlowActionJsonCreateJsonAction, - FlowActionJsonCreateJsonParams, - FlowActionJsonCreateJsonParamsObject, - FlowActionJsonCreateJsonType, - FlowActionJsonParseJson, - FlowActionJsonParseJsonAction, - FlowActionJsonParseJsonParams, - FlowActionJsonParseJsonType, - FlowActionJsonSerializeJson, - FlowActionJsonSerializeJsonAction, - FlowActionJsonSerializeJsonParams, - FlowActionJsonSerializeJsonParamsObject, - FlowActionJsonSerializeJsonParamsObjectObject, - FlowActionJsonSerializeJsonType, - FlowActionJwt, - FlowActionJwtDecodeJwt, - FlowActionJwtDecodeJwtAction, - FlowActionJwtDecodeJwtParams, - FlowActionJwtDecodeJwtType, - FlowActionJwtSignJwt, - FlowActionJwtSignJwtAction, - FlowActionJwtSignJwtParams, - FlowActionJwtSignJwtParamsPayload, - FlowActionJwtSignJwtType, - FlowActionJwtVerifyJwt, - FlowActionJwtVerifyJwtAction, - FlowActionJwtVerifyJwtParams, - FlowActionJwtVerifyJwtType, - FlowActionMailchimp, - FlowActionMailchimpUpsertMember, - FlowActionMailchimpUpsertMemberAction, - FlowActionMailchimpUpsertMemberParams, - FlowActionMailchimpUpsertMemberParamsMember, - FlowActionMailchimpUpsertMemberParamsMemberMergeFields, - FlowActionMailchimpUpsertMemberType, - FlowActionMailjet, - FlowActionMailjetSendEmail, - FlowActionMailjetSendEmailAction, - FlowActionMailjetSendEmailParams, - FlowActionMailjetSendEmailParamsContent, - FlowActionMailjetSendEmailParamsTemplateId, - FlowActionMailjetSendEmailType, - FlowActionOtp, - FlowActionOtpGenerateCode, - FlowActionOtpGenerateCodeAction, - FlowActionOtpGenerateCodeParams, - FlowActionOtpGenerateCodeType, - FlowActionOtpVerifyCode, - FlowActionOtpVerifyCodeAction, - FlowActionOtpVerifyCodeParams, - FlowActionOtpVerifyCodeParamsCode, - FlowActionOtpVerifyCodeType, - FlowActionPipedrive, - FlowActionPipedriveAddDeal, - FlowActionPipedriveAddDealAction, - FlowActionPipedriveAddDealParams, - FlowActionPipedriveAddDealParamsFields, - FlowActionPipedriveAddDealParamsOrganizationId, - FlowActionPipedriveAddDealParamsPersonId, - FlowActionPipedriveAddDealParamsStageId, - FlowActionPipedriveAddDealParamsUserId, - FlowActionPipedriveAddDealType, - FlowActionPipedriveAddOrganization, - FlowActionPipedriveAddOrganizationAction, - FlowActionPipedriveAddOrganizationParams, - FlowActionPipedriveAddOrganizationParamsFields, - FlowActionPipedriveAddOrganizationParamsOwnerId, - FlowActionPipedriveAddOrganizationType, - FlowActionPipedriveAddPerson, - FlowActionPipedriveAddPersonAction, - FlowActionPipedriveAddPersonParams, - FlowActionPipedriveAddPersonParamsFields, - FlowActionPipedriveAddPersonParamsOrganizationId, - FlowActionPipedriveAddPersonParamsOwnerId, - FlowActionPipedriveAddPersonType, - FlowActionSalesforce, - FlowActionSalesforceCreateLead, - FlowActionSalesforceCreateLeadAction, - FlowActionSalesforceCreateLeadParams, - FlowActionSalesforceCreateLeadParamsPayload, - FlowActionSalesforceCreateLeadType, - FlowActionSalesforceGetLead, - FlowActionSalesforceGetLeadAction, - FlowActionSalesforceGetLeadParams, - FlowActionSalesforceGetLeadType, - FlowActionSalesforceSearchLeads, - FlowActionSalesforceSearchLeadsAction, - FlowActionSalesforceSearchLeadsParams, - FlowActionSalesforceSearchLeadsParamsSearchField, - FlowActionSalesforceSearchLeadsType, - FlowActionSalesforceUpdateLead, - FlowActionSalesforceUpdateLeadAction, - FlowActionSalesforceUpdateLeadParams, - FlowActionSalesforceUpdateLeadParamsPayload, - FlowActionSalesforceUpdateLeadType, - FlowActionSendgrid, - FlowActionSendgridSendEmail, - FlowActionSendgridSendEmailAction, - FlowActionSendgridSendEmailParams, - FlowActionSendgridSendEmailParamsPerson, - FlowActionSendgridSendEmailType, - FlowActionSlack, - FlowActionSlackPostMessage, - FlowActionSlackPostMessageAction, - FlowActionSlackPostMessageParams, - FlowActionSlackPostMessageParamsAttachment, - FlowActionSlackPostMessageParamsAttachmentColor, - FlowActionSlackPostMessageParamsAttachmentField, - FlowActionSlackPostMessageType, - FlowActionStripe, - FlowActionStripeAddTaxId, - FlowActionStripeAddTaxIdAction, - FlowActionStripeAddTaxIdParams, - FlowActionStripeAddTaxIdType, - FlowActionStripeAddress, - FlowActionStripeCreateCustomer, - FlowActionStripeCreateCustomerAction, - FlowActionStripeCreateCustomerParams, - FlowActionStripeCreateCustomerType, - FlowActionStripeCreatePortalSession, - FlowActionStripeCreatePortalSessionAction, - FlowActionStripeCreatePortalSessionParams, - FlowActionStripeCreatePortalSessionType, - FlowActionStripeDeleteTaxId, - FlowActionStripeDeleteTaxIdAction, - FlowActionStripeDeleteTaxIdParams, - FlowActionStripeDeleteTaxIdType, - FlowActionStripeFindCustomers, - FlowActionStripeFindCustomersAction, - FlowActionStripeFindCustomersParams, - FlowActionStripeFindCustomersType, - FlowActionStripeGetCustomer, - FlowActionStripeGetCustomerAction, - FlowActionStripeGetCustomerParams, - FlowActionStripeGetCustomerType, - FlowActionStripeMetadata, - FlowActionStripeTaxId, - FlowActionStripeUpdateCustomer, - FlowActionStripeUpdateCustomerAction, - FlowActionStripeUpdateCustomerParams, - FlowActionStripeUpdateCustomerType, - FlowActionTelegram, - FlowActionTelegramSendMessage, - FlowActionTelegramSendMessageAction, - FlowActionTelegramSendMessageParams, - FlowActionTelegramSendMessageType, - FlowActionTwilio, - FlowActionTwilioMakeCall, - FlowActionTwilioMakeCallAction, - FlowActionTwilioMakeCallParams, - FlowActionTwilioMakeCallType, - FlowActionTwilioSendSms, - FlowActionTwilioSendSmsAction, - FlowActionTwilioSendSmsParams, - FlowActionTwilioSendSmsType, - FlowActionWhatsapp, - FlowActionWhatsappSendMessage, - FlowActionWhatsappSendMessageAction, - FlowActionWhatsappSendMessageParams, - FlowActionWhatsappSendMessageParamsPayload, - FlowActionWhatsappSendMessageParamsPayloadObject, - FlowActionWhatsappSendMessageParamsType, - FlowActionWhatsappSendMessageType, - FlowActionXml, - FlowActionXmlParseXml, - FlowActionXmlParseXmlAction, - FlowActionXmlParseXmlParams, - FlowActionXmlParseXmlType, - FlowActionXmlSerializeXml, - FlowActionXmlSerializeXmlAction, - FlowActionXmlSerializeXmlParams, - FlowActionXmlSerializeXmlParamsObject, - FlowActionXmlSerializeXmlParamsObjectObject, - FlowActionXmlSerializeXmlType, - FlowActionZapier, - FlowActionZapierTriggerWebhook, - FlowActionZapierTriggerWebhookAction, - FlowActionZapierTriggerWebhookParams, - FlowActionZapierTriggerWebhookParamsMethod, - FlowActionZapierTriggerWebhookType, - FlowExecutionDebug, - FlowExecutionSummary, - FlowSummary, - FlowsVaultConnectioSetupApiKey, - FlowsVaultConnectioSetupApiKeyWithBaseUrl, - FlowsVaultConnectioSetupBigqueryOauthJwt, - FlowsVaultConnectioSetupHttpBearer, - FlowsVaultConnectioSetupJwt, - FlowsVaultConnectioSetupJwtAlgorithmEnum, - FlowsVaultConnectioSetupMailjetApiKey, - FlowsVaultConnectioSetupOauthApp, - FlowsVaultConnectioSetupOauthCode, - FlowsVaultConnectioSetupSecretApiKey, - FlowsVaultConnectioSetupStripeKeyPair, - FlowsVaultConnectioSetupToken, - FlowsVaultConnectioSetupTwilioApiKey, - FlowsVaultConnectioSetupTypeApiKeyEnum, - FlowsVaultConnectioSetupTypeBearerEnum, - FlowsVaultConnectioSetupTypeJwtEnum, - FlowsVaultConnectioSetupTypeKeyPairEnum, - FlowsVaultConnectioSetupTypeOauthAppEnum, - FlowsVaultConnectioSetupTypeOauthCodeEnum, - FlowsVaultConnectioSetupTypeOauthJwtEnum, - FlowsVaultConnectioSetupTypeTokenEnum, - FlowsVaultConnectioSetupTypeWebhookEnum, - FlowsVaultConnectioSetupWebhook, - FlowsVaultConnectionAppIdActivecampaignEnum, - FlowsVaultConnectionAppIdAirtableEnum, - FlowsVaultConnectionAppIdAuth0Enum, - FlowsVaultConnectionAppIdBigqueryEnum, - FlowsVaultConnectionAppIdClearbitEnum, - FlowsVaultConnectionAppIdDocusignEnum, - FlowsVaultConnectionAppIdGoogleSheetsEnum, - FlowsVaultConnectionAppIdHttpEnum, - FlowsVaultConnectionAppIdHubspotEnum, - FlowsVaultConnectionAppIdJwtEnum, - FlowsVaultConnectionAppIdMailchimpEnum, - FlowsVaultConnectionAppIdMailjetEnum, - FlowsVaultConnectionAppIdPipedriveEnum, - FlowsVaultConnectionAppIdSalesforceEnum, - FlowsVaultConnectionAppIdSendgridEnum, - FlowsVaultConnectionAppIdSlackEnum, - FlowsVaultConnectionAppIdStripeEnum, - FlowsVaultConnectionAppIdTelegramEnum, - FlowsVaultConnectionAppIdTwilioEnum, - FlowsVaultConnectionAppIdWhatsappEnum, - FlowsVaultConnectionAppIdZapierEnum, - FlowsVaultConnectionHttpApiKeySetup, - FlowsVaultConnectionHttpApiKeySetupInEnum, - FlowsVaultConnectionHttpBasicAuthSetup, - FlowsVaultConnectionHttpOauthClientCredentialsSetup, - FlowsVaultConnectionSetupTypeApiKeyEnum, - FlowsVaultConnectionSetupTypeBasicAuthEnum, - FlowsVaultConnectionSetupTypeOauthClientCredentialsEnum, - FlowsVaultConnectionSummary, - ForbiddenSchema, - ForbiddenSchemaError, - FormBlock, - FormBlockDivider, - FormBlockDividerConfig, - FormBlockHtml, - FormBlockHtmlConfig, - FormBlockImage, - FormBlockImageConfig, - FormBlockImageConfigPositionEnum, - FormBlockJumpButton, - FormBlockJumpButtonConfig, - FormBlockJumpButtonConfigStyle, - FormBlockNextButton, - FormBlockNextButtonConfig, - FormBlockPreviousButton, - FormBlockPreviousButtonConfig, - FormBlockResendButton, - FormBlockResendButtonConfig, - FormBlockResendButtonConfigTextAlignmentEnum, - FormBlockRichText, - FormBlockRichTextConfig, - FormBlockTypeDividerConst, - FormBlockTypeHtmlConst, - FormBlockTypeImageConst, - FormBlockTypeJumpButtonConst, - FormBlockTypeNextButtonConst, - FormBlockTypePreviousButtonConst, - FormBlockTypeResendButtonConst, - FormBlockTypeRichTextConst, - FormComponent, - FormComponentCategoryBlockConst, - FormComponentCategoryFieldConst, - FormComponentCategoryWidgetConst, - FormEndingNode, - FormEndingNodeAfterSubmit, - FormEndingNodeId, - FormEndingNodeNullable, - FormEndingNodeRedirection, - FormEndingNodeResumeFlowTrueConst, - FormField, - FormFieldBoolean, - FormFieldBooleanConfig, - FormFieldBooleanConfigOptions, - FormFieldCards, - FormFieldCardsConfig, - FormFieldCardsConfigOption, - FormFieldChoice, - FormFieldChoiceConfig, - FormFieldChoiceConfigAllowOther, - FormFieldChoiceConfigAllowOtherEnabledTrueEnum, - FormFieldChoiceConfigOption, - FormFieldCustom, - FormFieldCustomConfig, - FormFieldCustomConfigParams, - FormFieldCustomConfigSchema, - FormFieldDate, - FormFieldDateConfig, - FormFieldDateConfigFormatEnum, - FormFieldDropdown, - FormFieldDropdownConfig, - FormFieldDropdownConfigOption, - FormFieldEmail, - FormFieldEmailConfig, - FormFieldFile, - FormFieldFileConfig, - FormFieldFileConfigCategoryEnum, - FormFieldFileConfigStorage, - FormFieldFileConfigStorageTypeEnum, - FormFieldLegal, - FormFieldLegalConfig, - FormFieldNumber, - FormFieldNumberConfig, - FormFieldPassword, - FormFieldPasswordConfig, - FormFieldPasswordConfigHashEnum, - FormFieldPayment, - FormFieldPaymentConfig, - FormFieldPaymentConfigCharge, - FormFieldPaymentConfigChargeOneOff, - FormFieldPaymentConfigChargeOneOffCurrencyEnum, - FormFieldPaymentConfigChargeOneOffOneOff, - FormFieldPaymentConfigChargeOneOffOneOffAmount, - FormFieldPaymentConfigChargeSubscription, - FormFieldPaymentConfigChargeTypeOneOffConst, - FormFieldPaymentConfigChargeTypeSubscriptionConst, - FormFieldPaymentConfigCredentials, - FormFieldPaymentConfigCustomer, - FormFieldPaymentConfigFieldProperties, - FormFieldPaymentConfigFields, - FormFieldPaymentConfigProviderEnum, - FormFieldPaymentConfigSubscription, - FormFieldSocial, - FormFieldSocialConfig, - FormFieldTel, - FormFieldTelConfig, - FormFieldTelConfigStrings, - FormFieldText, - FormFieldTextConfig, - FormFieldTypeBooleanConst, - FormFieldTypeCardsConst, - FormFieldTypeChoiceConst, - FormFieldTypeCustomConst, - FormFieldTypeDateConst, - FormFieldTypeDropdownConst, - FormFieldTypeEmailConst, - FormFieldTypeFileConst, - FormFieldTypeLegalConst, - FormFieldTypeNumberConst, - FormFieldTypePasswordConst, - FormFieldTypePaymentConst, - FormFieldTypeSocialConst, - FormFieldTypeTelConst, - FormFieldTypeTextConst, - FormFieldTypeUrlConst, - FormFieldUrl, - FormFieldUrlConfig, - FormFlow, - FormFlowConfig, - FormHiddenField, - FormLanguages, - FormLanguagesNullable, - FormMessages, - FormMessagesCustom, - FormMessagesError, - FormMessagesNullable, - FormNode, - FormNodeCoordinates, - FormNodeList, - FormNodeListNullable, - FormNodePointer, - FormNodeTypeFlowConst, - FormNodeTypeRouterConst, - FormNodeTypeStepConst, - FormRouter, - FormRouterConfig, - FormRouterRule, - FormStartNode, - FormStartNodeNullable, - FormStep, - FormStepComponentList, - FormStepConfig, - FormStyle, - FormStyleNullable, - FormSummary, - FormTranslations, - FormTranslationsNullable, - FormWidget, - FormWidgetAuth0VerifiableCredentials, - FormWidgetAuth0VerifiableCredentialsConfig, - FormWidgetGMapsAddress, - FormWidgetGMapsAddressConfig, - FormWidgetRecaptcha, - FormWidgetRecaptchaConfig, - FormWidgetTypeAuth0VerifiableCredentialsConst, - FormWidgetTypeGMapsAddressConst, - FormWidgetTypeRecaptchaConst, - FormsRequestParametersHydrateEnum, - GetActionExecutionResponseContent, - GetActionModuleActionsResponseContent, - GetActionModuleResponseContent, - GetActionModuleVersionResponseContent, - GetActionModuleVersionsResponseContent, - GetActionModulesResponseContent, - GetActionResponseContent, - GetActionVersionResponseContent, - GetActiveUsersCountStatsResponseContent, - GetAculResponseContent, - GetAllKeysNetworkAclsResponseContent, - GetAttackProtectionCaptchaResponseContent, - GetBotDetectionSettingsResponseContent, - GetBrandingDefaultThemeResponseContent, - GetBrandingPhoneProviderResponseContent, - GetBrandingResponseContent, - GetBrandingThemeResponseContent, - GetBreachedPasswordDetectionSettingsResponseContent, - GetBruteForceSettingsResponseContent, - GetClientCredentialResponseContent, - GetClientGrantResponseContent, - GetClientResponseContent, - GetConnectionEnabledClientsResponseContent, - GetConnectionProfileResponseContent, - GetConnectionProfileTemplateResponseContent, - GetConnectionResponseContent, - GetCustomDomainResponseContent, - GetCustomSigningKeysResponseContent, - GetCustomTextsByLanguageResponseContent, - GetDefaultCanonicalDomainResponseContent, - GetDefaultCustomDomainResponseContent, - GetDefaultDomainResponseContent, - GetDirectoryProvisioningDefaultMappingResponseContent, - GetDirectoryProvisioningResponseContent, - GetEmailFactorSettingsResponseContent, - GetEmailProviderResponseContent, - GetEmailTemplateResponseContent, - GetEncryptionKeyResponseContent, - GetEventStreamDeliveryHistoryResponseContent, - GetEventStreamResponseContent, - GetExperimentResponseContent, - GetFeatureFlagResponseContent, - GetFlowExecutionRequestParametersHydrateEnum, - GetFlowExecutionResponseContent, - GetFlowRequestParametersHydrateEnum, - GetFlowResponseContent, - GetFlowsVaultConnectionResponseContent, - GetFormResponseContent, - GetGroupMembersResponseContent, - GetGroupResponseContent, - GetGuardianEnrollmentResponseContent, - GetGuardianFactorDuoSettingsResponseContent, - GetGuardianFactorPhoneMessageTypesResponseContent, - GetGuardianFactorPhoneTemplatesResponseContent, - GetGuardianFactorSmsTemplatesResponseContent, - GetGuardianFactorsProviderApnsResponseContent, - GetGuardianFactorsProviderPhoneResponseContent, - GetGuardianFactorsProviderPhoneTwilioResponseContent, - GetGuardianFactorsProviderPushNotificationResponseContent, - GetGuardianFactorsProviderSmsResponseContent, - GetGuardianFactorsProviderSmsTwilioResponseContent, - GetGuardianFactorsProviderSnsResponseContent, - GetGuardianSettingsResponseContent, - GetHookResponseContent, - GetHookSecretResponseContent, - GetJobErrorResponseContent, - GetJobGenericErrorResponseContent, - GetJobImportUserError, - GetJobResponseContent, - GetJobSummary, - GetJobUserError, - GetLogResponseContent, - GetLogStreamResponseContent, - GetNetworkAclsResponseContent, - GetOrganizationAllConnectionResponseContent, - GetOrganizationByNameResponseContent, - GetOrganizationClientResponseContent, - GetOrganizationConnectionResponseContent, - GetOrganizationDiscoveryDomainByNameResponseContent, - GetOrganizationDiscoveryDomainResponseContent, - GetOrganizationInvitationResponseContent, - GetOrganizationResponseContent, - GetPartialsResponseContent, - GetPhoneFactorSettingsResponseContent, - GetPhoneProviderProtectionResponseContent, - GetPhoneTemplateResponseContent, - GetRateLimitPolicyResponseContent, - GetRefreshTokenResponseContent, - GetRefreshTokensPaginatedResponseContent, - GetResourceServerResponseContent, - GetRiskAssessmentsSettingsNewDeviceResponseContent, - GetRiskAssessmentsSettingsResponseContent, - GetRoleResponseContent, - GetRuleResponseContent, - GetScimConfigurationDefaultMappingResponseContent, - GetScimConfigurationResponseContent, - GetScimTokensResponseContent, - GetSegmentResponseContent, - GetSelfServiceProfileResponseContent, - GetSessionResponseContent, - GetSettingsResponseContent, - GetSigningKeysResponseContent, - GetSupplementalSignalsResponseContent, - GetSuspiciousIpThrottlingSettingsResponseContent, - GetTenantSettingsResponseContent, - GetTokenExchangeProfileResponseContent, - GetUniversalLoginTemplate, - GetUniversalLoginTemplateResponseContent, - GetUserAttributeProfileResponseContent, - GetUserAttributeProfileTemplateResponseContent, - GetUserAuthenticationMethodResponseContent, - GetUserGroupsPaginatedResponseContent, - GetUserResponseContent, - GetVariationResponseContent, - GetVerifiableCredentialTemplateResponseContent, - GoogleAccountLinkingConfiguration, - GoogleAccountLinkingConfigurationCreate, - GoogleAccountLinkingConfigurationOrNull, - Group, - GroupMember, - GroupMemberTypeEnum, - GroupTypeEnum, - GuardianEnrollmentDate, - GuardianEnrollmentFactorEnum, - GuardianEnrollmentStatus, - GuardianFactor, - GuardianFactorNameEnum, - GuardianFactorPhoneFactorMessageTypeEnum, - GuardianFactorSettings, - GuardianFactorsProviderPushNotificationProviderDataEnum, - GuardianFactorsProviderSmsProviderEnum, - Hook, - HookDependencies, - HookTriggerIdEnum, - HttpCustomHeader, - Identity, - IdentityAssertionAuthorizationGrant, - IdentityProviderEnum, - IdentityProviderOnlyAuth0Enum, - ImportEncryptionKeyResponseContent, - IncludeUserProfileSizeHeaderEnum, - Integration, - IntegrationFeatureTypeEnum, - IntegrationRelease, - IntegrationRequiredParam, - IntegrationRequiredParamOption, - IntegrationRequiredParamTypeEnum, - IntegrationSemVer, - InternalServerErrorBody, - InternalServerErrorBodyError, - JobFileFormatEnum, - LinkedClientConfiguration, - ListActionBindingsPaginatedResponseContent, - ListActionTriggersResponseContent, - ListActionVersionsPaginatedResponseContent, - ListActionsPaginatedResponseContent, - ListAculsOffsetPaginatedResponseContent, - ListAculsResponseContentItem, - ListAgentsResponseContent, - ListBrandingPhoneProvidersResponseContent, - ListClientConnectionsResponseContent, - ListClientGrantOrganizationsPaginatedResponseContent, - ListClientGrantPaginatedResponseContent, - ListClientProfilesPaginatedResponseContent, - ListClientsOffsetPaginatedResponseContent, - ListConnectionProfileTemplateResponseContent, - ListConnectionProfilesPaginatedResponseContent, - ListConnectionsCheckpointPaginatedResponseContent, - ListCustomDomainsResponseContent, - ListDeviceCredentialsOffsetPaginatedResponseContent, - ListDirectoryProvisioningsResponseContent, - ListEncryptionKeyOffsetPaginatedResponseContent, - ListEventStreamDeliveriesResponseContent, - ListEventStreamsResponseContent, - ListExperimentsResponseContent, - ListFeatureFlagsResponseContent, - ListFlowExecutionsPaginatedResponseContent, - ListFlowsOffsetPaginatedResponseContent, - ListFlowsRequestParametersHydrateEnum, - ListFlowsVaultConnectionsOffsetPaginatedResponseContent, - ListFormsOffsetPaginatedResponseContent, - ListGroupRolesResponseContent, - ListGroupsPaginatedResponseContent, - ListGuardianPoliciesResponseContent, - ListHooksOffsetPaginatedResponseContent, - ListLogOffsetPaginatedResponseContent, - ListNetworkAclsOffsetPaginatedResponseContent, - ListOrganizationAllConnectionsOffsetPaginatedResponseContent, - ListOrganizationClientGrantsOffsetPaginatedResponseContent, - ListOrganizationClientsResponseContent, - ListOrganizationConnectionsOffsetPaginatedResponseContent, - ListOrganizationDiscoveryDomainsResponseContent, - ListOrganizationGroupRolesResponseContent, - ListOrganizationGroupsResponseContent, - ListOrganizationInvitationsOffsetPaginatedResponseContent, - ListOrganizationMemberEffectiveRolesResponseContent, - ListOrganizationMemberRoleSourceGroupsResponseContent, - ListOrganizationMemberRolesOffsetPaginatedResponseContent, - ListOrganizationMembersPaginatedResponseContent, - ListOrganizationRoleGroupsResponseContent, - ListOrganizationRoleMembersResponseContent, - ListOrganizationsPaginatedResponseContent, - ListPhoneTemplatesResponseContent, - ListPortalsResponseContent, - ListRateLimitPoliciesPaginatedResponseContent, - ListRefreshTokensPaginatedResponseContent, - ListResourceServerOffsetPaginatedResponseContent, - ListRoleGroupsResponseContent, - ListRolePermissionsOffsetPaginatedResponseContent, - ListRoleUsersPaginatedResponseContent, - ListRolesOffsetPaginatedResponseContent, - ListRulesOffsetPaginatedResponseContent, - ListScimConfigurationsResponseContent, - ListSegmentsResponseContent, - ListSelfServiceProfileCustomTextResponseContent, - ListSelfServiceProfilesPaginatedResponseContent, - ListSynchronizedGroupsResponseContent, - ListTokenExchangeProfileResponseContent, - ListUserAttributeProfileTemplateResponseContent, - ListUserAttributeProfilesPaginatedResponseContent, - ListUserAuthenticationMethodsOffsetPaginatedResponseContent, - ListUserBlocksByIdentifierResponseContent, - ListUserBlocksResponseContent, - ListUserConnectedAccountsResponseContent, - ListUserConsentSigningKeysResponseContent, - ListUserEffectivePermissionRoleSourcesResponseContent, - ListUserEffectivePermissionsResponseContent, - ListUserEffectiveRolesResponseContent, - ListUserGrantsOffsetPaginatedResponseContent, - ListUserOrganizationsOffsetPaginatedResponseContent, - ListUserPermissionsOffsetPaginatedResponseContent, - ListUserRoleSourceGroupsResponseContent, - ListUserRolesOffsetPaginatedResponseContent, - ListUserSessionsPaginatedResponseContent, - ListUsersOffsetPaginatedResponseContent, - ListVariationsResponseContent, - ListVerifiableCredentialTemplatesPaginatedResponseContent, - Log, - LogDate, - LogDateObject, - LogDetails, - LogLocationInfo, - LogSecurityContext, - LogStreamDatadogEnum, - LogStreamDatadogRegionEnum, - LogStreamDatadogResponseSchema, - LogStreamDatadogSink, - LogStreamEventBridgeEnum, - LogStreamEventBridgeResponseSchema, - LogStreamEventBridgeSink, - LogStreamEventBridgeSinkRegionEnum, - LogStreamEventGridEnum, - LogStreamEventGridRegionEnum, - LogStreamEventGridResponseSchema, - LogStreamEventGridSink, - LogStreamFilter, - LogStreamFilterGroupNameEnum, - LogStreamFilterTypeEnum, - LogStreamHttpContentFormatEnum, - LogStreamHttpEnum, - LogStreamHttpResponseSchema, - LogStreamHttpSink, - LogStreamMixpanelEnum, - LogStreamMixpanelRegionEnum, - LogStreamMixpanelResponseSchema, - LogStreamMixpanelSink, - LogStreamMixpanelSinkPatch, - LogStreamPiiAlgorithmEnum, - LogStreamPiiConfig, - LogStreamPiiLogFieldsEnum, - LogStreamPiiMethodEnum, - LogStreamResponseSchema, - LogStreamSegmentEnum, - LogStreamSegmentResponseSchema, - LogStreamSegmentSink, - LogStreamSegmentSinkWriteKey, - LogStreamSinkPatch, - LogStreamSplunkEnum, - LogStreamSplunkResponseSchema, - LogStreamSplunkSink, - LogStreamStatusEnum, - LogStreamSumoEnum, - LogStreamSumoResponseSchema, - LogStreamSumoSink, - MdlPresentationProperties, - MdlPresentationRequest, - MdlPresentationRequestProperties, - MfaPolicyEnum, - NativeSocialLogin, - NativeSocialLoginApple, - NativeSocialLoginApplePatch, - NativeSocialLoginFacebook, - NativeSocialLoginFacebookPatch, - NativeSocialLoginGoogle, - NativeSocialLoginGooglePatch, - NativeSocialLoginPatch, - NetworkAclAction, - NetworkAclActionAllowEnum, - NetworkAclActionBlockEnum, - NetworkAclActionLogEnum, - NetworkAclActionRedirectEnum, - NetworkAclHttpMessageSignature, - NetworkAclHttpMessageSignatureKey, - NetworkAclHttpMessageSignatureKeys, - NetworkAclKey, - NetworkAclKeyAlgorithmEnum, - NetworkAclMatch, - NetworkAclMatchConnectingIpv4Cidr, - NetworkAclMatchConnectingIpv6Cidr, - NetworkAclMatchIpv4Cidr, - NetworkAclMatchIpv6Cidr, - NetworkAclRule, - NetworkAclRuleMatchAllEnum, - NetworkAclRuleScopeEnum, - NetworkAclsResponseContent, - NotFoundErrorBody, - NotFoundErrorBodyError, - NotFoundSchema, - NotFoundSchemaError, - OauthScope, - Organization, - OrganizationAccessLevelEnum, - OrganizationAccessLevelEnumWithNull, - OrganizationAllConnectionPost, - OrganizationBranding, - OrganizationBrandingColors, - OrganizationClient, - OrganizationClientAssociation, - OrganizationClientGrant, - OrganizationClientMetadata, - OrganizationClientMetadataOrganizationUsageEnum, - OrganizationConnection, - OrganizationConnectionInformation, - OrganizationDiscoveryDomain, - OrganizationDiscoveryDomainStatus, - OrganizationEnabledConnection, - OrganizationInvitation, - OrganizationInvitationInvitee, - OrganizationInvitationInviter, - OrganizationMember, - OrganizationMemberAccessLevelEnum, - OrganizationMemberAccessLevelEnumWithNull, - OrganizationMemberEffectiveRole, - OrganizationMemberEffectiveRoleSource, - OrganizationMemberRole, - OrganizationMetadata, - OrganizationSortFieldEnum, - OrganizationThirdPartyClientAccessEnum, - OrganizationUsageEnum, - PageComponent, - PageComponentAuth0Form, - PageComponentAuth0FormConfig, - PageComponentAuth0MediaImage, - PageComponentAuth0MediaImageConfig, - PageComponentAuth0MyAccountMfaManagement, - PageComponentAuth0MyAccountMfaManagementConfig, - PageComponentAuth0MyAccountPasskeyManagement, - PageComponentAuth0MyAccountPasskeyManagementConfig, - PageComponentAuth0MyOrganizationDetailsEdit, - PageComponentAuth0MyOrganizationDetailsEditConfig, - PageComponentAuth0MyOrganizationDomainTable, - PageComponentAuth0MyOrganizationDomainTableConfig, - PageComponentAuth0MyOrganizationMemberManagement, - PageComponentAuth0MyOrganizationMemberManagementConfig, - PageComponentAuth0StructureSection, - PageComponentAuth0StructureSectionConfig, - PageComponentAuth0StructureSectionVariantEnum, - PageComponentAuth0StructureSeparator, - PageComponentAuth0StructureSeparatorConfig, - PageComponentAuth0StructureSeparatorVariantEnum, - PageComponentAuth0TypographyHeading, - PageComponentAuth0TypographyHeadingConfig, - PageComponentAuth0TypographyRichText, - PageComponentAuth0TypographyRichTextConfig, - PageComponentNoChildren, - PageComponentNoChildren_PageComponentAuth0Form, - PageComponentNoChildren_PageComponentAuth0MediaImage, - PageComponentNoChildren_PageComponentAuth0MyAccountMfaManagement, - PageComponentNoChildren_PageComponentAuth0MyAccountPasskeyManagement, - PageComponentNoChildren_PageComponentAuth0MyOrganizationDetailsEdit, - PageComponentNoChildren_PageComponentAuth0MyOrganizationDomainTable, - PageComponentNoChildren_PageComponentAuth0MyOrganizationMemberManagement, - PageComponentNoChildren_PageComponentAuth0StructureSeparator, - PageComponentNoChildren_PageComponentAuth0TypographyHeading, - PageComponentNoChildren_PageComponentAuth0TypographyRichText, - PageComponent_PageComponentAuth0Form, - PageComponent_PageComponentAuth0MediaImage, - PageComponent_PageComponentAuth0MyAccountMfaManagement, - PageComponent_PageComponentAuth0MyAccountPasskeyManagement, - PageComponent_PageComponentAuth0MyOrganizationDetailsEdit, - PageComponent_PageComponentAuth0MyOrganizationDomainTable, - PageComponent_PageComponentAuth0MyOrganizationMemberManagement, - PageComponent_PageComponentAuth0StructureSection, - PageComponent_PageComponentAuth0StructureSeparator, - PageComponent_PageComponentAuth0TypographyHeading, - PageComponent_PageComponentAuth0TypographyRichText, - PageSlug, - PartialGroupsEnum, - PartialPhoneTemplateContent, - PasswordCharacterTypeEnum, - PasswordCharacterTypeRulePolicyEnum, - PasswordDefaultDictionariesEnum, - PasswordDictionaryMatchTypeEnum, - PasswordIdenticalCharactersPolicyEnum, - PasswordMaxLengthExceededPolicyEnum, - PasswordSequentialCharactersPolicyEnum, - PatchClientCredentialResponseContent, - PatchPhoneProviderProtectionResponseContent, - PatchRateLimitPolicyConfigurationRequestContent, - PatchRateLimitPolicyConfigurationRequestContentAction, - PatchRateLimitPolicyConfigurationRequestContentActionAction, - PatchRateLimitPolicyConfigurationRequestContentOne, - PatchRateLimitPolicyConfigurationRequestContentOneAction, - PatchRateLimitPolicyConfigurationRequestContentZero, - PatchRateLimitPolicyConfigurationRequestContentZeroAction, - PatchSupplementalSignalsResponseContent, - PermissionRequestPayload, - PermissionsResponsePayload, - PhoneAttribute, - PhoneAttributeIdentifier, - PhoneProviderChannelEnum, - PhoneProviderConfiguration, - PhoneProviderCredentials, - PhoneProviderDeliveryMethodEnum, - PhoneProviderNameEnum, - PhoneProviderProtectionBackoffStrategyEnum, - PhoneProviderSchemaMasked, - PhoneTemplate, - PhoneTemplateBody, - PhoneTemplateContent, - PhoneTemplateNotificationTypeEnum, - Portal, - PortalClientSecretPost, - PortalClientSecretPostRequest, - PortalClientSecretPostRequestTokenEndpointAuthMethod, - PortalClientSecretPostTokenEndpointAuthMethod, - PortalCustomCode, - PortalCustomCodeNullable, - PortalDateTime, - PortalId, - PortalName, - PortalNavigation, - PortalNavigationNullable, - PortalPage, - PortalPagesByType, - PortalPagesByTypeNullable, - PortalSlug, - PortalSummary, - Position, - PostClientCredentialResponseContent, - PostConnectionKeysAlgEnum, - PostConnectionKeysRequestContent, - PostConnectionsKeysResponseContent, - PostConnectionsKeysResponseContentItem, - PreferredAuthenticationMethodEnum, - PreviewCimdMetadataResponseContent, - PromptGroupNameEnum, - PromptLanguageEnum, - PublicKeyCredential, - PublicKeyCredentialAlgorithmEnum, - PublicKeyCredentialTypeEnum, - RateLimitPolicy, - RateLimitPolicyConfiguration, - RateLimitPolicyConfigurationAction, - RateLimitPolicyConfigurationActionAction, - RateLimitPolicyConfigurationOne, - RateLimitPolicyConfigurationOneAction, - RateLimitPolicyConfigurationZero, - RateLimitPolicyConfigurationZeroAction, - RateLimitPolicyConsumerEnum, - RateLimitPolicyResourceEnum, - RefreshTokenDate, - RefreshTokenDateObject, - RefreshTokenDevice, - RefreshTokenExpirationTypeEnum, - RefreshTokenMetadata, - RefreshTokenResourceServer, - RefreshTokenResponseContent, - RefreshTokenRotationTypeEnum, - RefreshTokenSessionId, - RegenerateUsersRecoveryCodeResponseContent, - RegisterCimdClientResponseContent, - ResetPhoneTemplateRequestContent, - ResetPhoneTemplateResponseContent, - ResourceServer, - ResourceServerAccessToken, - ResourceServerAccessTokenClaimsMapping, - ResourceServerAccessTokenCustomClaimsMapping, - ResourceServerAccessTokenCustomClaimsMappingRule, - ResourceServerAgentSubjectClaimsResponseEnum, - ResourceServerAgentSubjectClaimsSchemaEnum, - ResourceServerAuthorizationPolicy, - ResourceServerConsentPolicyEnum, - ResourceServerProofOfPossession, - ResourceServerProofOfPossessionMechanismEnum, - ResourceServerProofOfPossessionRequiredForEnum, - ResourceServerScope, - ResourceServerSearchResponse, - ResourceServerSortFieldEnum, - ResourceServerSubjectTypeAuthorization, - ResourceServerSubjectTypeAuthorizationAnonymousUser, - ResourceServerSubjectTypeAuthorizationAnonymousUserPolicyEnum, - ResourceServerSubjectTypeAuthorizationClient, - ResourceServerSubjectTypeAuthorizationClientPolicyEnum, - ResourceServerSubjectTypeAuthorizationUser, - ResourceServerSubjectTypeAuthorizationUserPolicyEnum, - ResourceServerTokenDialectResponseEnum, - ResourceServerTokenDialectSchemaEnum, - ResourceServerTokenEncryption, - ResourceServerTokenEncryptionAlgorithmEnum, - ResourceServerTokenEncryptionFormatEnum, - ResourceServerTokenEncryptionKey, - ResourceServerTypeEnum, - ResourceServerVerificationKeyPemCertificate, - RevokedSigningKeysResponseContent, - Role, - RoleGroup, - RoleMember, - RoleOwnerId, - RoleOwnerIdFilter, - RoleTypeEnum, - RoleUser, - RollbackActionModuleResponseContent, - RotateClientSecretResponseContent, - RotateConnectionKeysRequestContent, - RotateConnectionKeysSigningAlgEnum, - RotateConnectionsKeysResponseContent, - RotateSigningKeysResponseContent, - Rule, - RulesConfig, - ScimConfiguration, - ScimMappingItem, - ScimTokenItem, - ScreenGroupNameEnum, - SearchClientGrantsResponseContent, - SearchClientsResponseContent, - SearchEngineVersionsEnum, - SearchOrganization, - SearchOrganizationsPaginatedResponseContent, - SearchParserEnum, - SearchResourceServersResponseContent, - Segment, - SegmentContainsExpression, - SegmentEndsWithExpression, - SegmentExistsExpression, - SegmentMatchConditions, - SegmentMatchExpression, - SegmentNotMatchConditions, - SegmentRule, - SegmentStartsWithExpression, - SegmentStatusEnum, - SegmentTypeEnum, - SegmentTypeFilterEnum, - SelfServiceProfile, - SelfServiceProfileAllowedStrategyEnum, - SelfServiceProfileBranding, - SelfServiceProfileBrandingColors, - SelfServiceProfileBrandingProperties, - SelfServiceProfileCustomTextLanguageEnum, - SelfServiceProfileCustomTextPageEnum, - SelfServiceProfileDescription, - SelfServiceProfileSsoTicketConnectionConfig, - SelfServiceProfileSsoTicketConnectionOptions, - SelfServiceProfileSsoTicketDomainAliasesConfig, - SelfServiceProfileSsoTicketDomainVerificationEnum, - SelfServiceProfileSsoTicketEnabledFeatures, - SelfServiceProfileSsoTicketEnabledOrganization, - SelfServiceProfileSsoTicketGoogleWorkspaceConfig, - SelfServiceProfileSsoTicketIdpInitiatedClientProtocolEnum, - SelfServiceProfileSsoTicketIdpInitiatedOptions, - SelfServiceProfileSsoTicketProvisioningConfig, - SelfServiceProfileSsoTicketProvisioningScopeEnum, - SelfServiceProfileSsoTicketUniversalLogoutConfig, - SelfServiceProfileUserAttribute, - SelfServiceProfileUserAttributes, - SessionActorClaimValue, - SessionActorMetadata, - SessionAuthenticationSignal, - SessionAuthenticationSignals, - SessionClientMetadata, - SessionCookieMetadata, - SessionCookieMetadataModeEnum, - SessionCookieModeEnum, - SessionCookieSchema, - SessionDate, - SessionDeviceMetadata, - SessionIp, - SessionMetadata, - SessionResponseContent, - SetCustomSigningKeysResponseContent, - SetEmailFactorSettingsResponseContent, - SetEmailTemplateResponseContent, - SetGuardianFactorDuoSettingsResponseContent, - SetGuardianFactorPhoneMessageTypesResponseContent, - SetGuardianFactorPhoneTemplatesResponseContent, - SetGuardianFactorResponseContent, - SetGuardianFactorSmsTemplatesResponseContent, - SetGuardianFactorsProviderPhoneResponseContent, - SetGuardianFactorsProviderPhoneTwilioResponseContent, - SetGuardianFactorsProviderPushNotificationApnsResponseContent, - SetGuardianFactorsProviderPushNotificationFcmResponseContent, - SetGuardianFactorsProviderPushNotificationFcmv1ResponseContent, - SetGuardianFactorsProviderPushNotificationResponseContent, - SetGuardianFactorsProviderPushNotificationSnsResponseContent, - SetGuardianFactorsProviderSmsResponseContent, - SetGuardianFactorsProviderSmsTwilioResponseContent, - SetGuardianPoliciesRequestContent, - SetGuardianPoliciesResponseContent, - SetGuardianSettingsResponseContent, - SetNetworkAclsResponseContent, - SetPartialsRequestContent, - SetPhoneFactorSettingsResponseContent, - SetRulesConfigResponseContent, - SetSelfServiceProfileCustomTextRequestContent, - SetSelfServiceProfileCustomTextResponseContent, - SetUserAuthenticationMethodResponseContent, - SetUserAuthenticationMethods, - SetUserAuthenticationMethodsRequestContent, - SetsCustomTextsByLanguageRequestContent, - Sidebar, - SidebarComponent, - SidebarComponentAuth0ExternalLink, - SidebarComponentAuth0ExternalLinkConfig, - SidebarComponentAuth0ExternalLinkV2, - SidebarComponentAuth0ExternalLinkV2Config, - SidebarComponentAuth0InternalLink, - SidebarComponentAuth0InternalLinkConfig, - SidebarComponentAuth0InternalLinkV2, - SidebarComponentAuth0InternalLinkV2Config, - SidebarComponent_SidebarComponentAuth0ExternalLink, - SidebarComponent_SidebarComponentAuth0ExternalLinkV2, - SidebarComponent_SidebarComponentAuth0InternalLink, - SidebarComponent_SidebarComponentAuth0InternalLinkV2, - SigningAlgorithmEnum, - SigningKeys, - SigningKeysDate, - SignupSchema, - SignupStatusEnum, - SignupVerification, - SignupVerified, - SupportedLocales, - SuspiciousIpThrottlingAllowlist, - SuspiciousIpThrottlingAllowlistItem, - SuspiciousIpThrottlingPreCustomTokenExchangeStage, - SuspiciousIpThrottlingPreLoginStage, - SuspiciousIpThrottlingPreUserRegistrationStage, - SuspiciousIpThrottlingShieldsEnum, - SuspiciousIpThrottlingStage, - SynchronizeGroupsEnum, - SynchronizedGroupPayload, - SynchronizedGroupSelectionId, - SystemRoleOwnerId, - TenantOidcLogoutSettings, - TenantSettingsCountryCodes, - TenantSettingsCountryCodesMode, - TenantSettingsCountryCodesModeResponse, - TenantSettingsCountryCodesResponse, - TenantSettingsDeviceFlow, - TenantSettingsDeviceFlowCharset, - TenantSettingsDynamicClientRegistrationSecurityMode, - TenantSettingsErrorPage, - TenantSettingsFlags, - TenantSettingsGuardianPage, - TenantSettingsMtls, - TenantSettingsNullableSecurityHeaders, - TenantSettingsPasswordPage, - TenantSettingsResourceParameterProfile, - TenantSettingsSessions, - TenantSettingsSessionsAnonymous, - TenantSettingsSupportedLocalesEnum, - TestActionPayload, - TestActionResponseContent, - TestActionResultPayload, - TestCustomDomainResponseContent, - TestEventDataContent, - ThirdPartyClientAccessConfig, - TokenExchangeProfileResponseContent, - TokenExchangeProfileTypeEnum, - TokenQuota, - TokenQuotaClientCredentials, - TokenQuotaConfiguration, - TokenVaultPrivilegedAccessGrant, - TokenVaultPrivilegedAccessIpAllowlistEntry, - TooManyRequestsErrorBody, - TooManyRequestsErrorBodyError, - TooManyRequestsSchema, - TooManyRequestsSchemaError, - TwilioProviderConfiguration, - TwilioProviderCredentials, - TwilioProviderDeliveryMethodEnum, - UnauthorizedSchema, - UnauthorizedSchemaError, - UniversalLoginExperienceEnum, - UpdateActionBindingsResponseContent, - UpdateActionModuleResponseContent, - UpdateActionResponseContent, - UpdateAculResponseContent, - UpdateAnonymousSessions, - UpdateAttackProtectionCaptchaResponseContent, - UpdateBotDetectionSettingsResponseContent, - UpdateBrandingColors, - UpdateBrandingFont, - UpdateBrandingPageBackground, - UpdateBrandingPhoneProviderResponseContent, - UpdateBrandingResponseContent, - UpdateBrandingThemeResponseContent, - UpdateBreachedPasswordDetectionSettingsResponseContent, - UpdateBruteForceSettingsResponseContent, - UpdateClientGrantResponseContent, - UpdateClientResponseContent, - UpdateConnectionOptions, - UpdateConnectionProfileResponseContent, - UpdateConnectionRequestContentAd, - UpdateConnectionRequestContentAdfs, - UpdateConnectionRequestContentAmazon, - UpdateConnectionRequestContentApple, - UpdateConnectionRequestContentAuth0, - UpdateConnectionRequestContentAuth0Oidc, - UpdateConnectionRequestContentAzureAd, - UpdateConnectionRequestContentBaidu, - UpdateConnectionRequestContentBitbucket, - UpdateConnectionRequestContentBitly, - UpdateConnectionRequestContentBox, - UpdateConnectionRequestContentCustom, - UpdateConnectionRequestContentDaccount, - UpdateConnectionRequestContentDropbox, - UpdateConnectionRequestContentDwolla, - UpdateConnectionRequestContentEmail, - UpdateConnectionRequestContentEvernote, - UpdateConnectionRequestContentEvernoteSandbox, - UpdateConnectionRequestContentExact, - UpdateConnectionRequestContentFacebook, - UpdateConnectionRequestContentFitbit, - UpdateConnectionRequestContentGitHub, - UpdateConnectionRequestContentGoogleApps, - UpdateConnectionRequestContentGoogleOAuth2, - UpdateConnectionRequestContentInstagram, - UpdateConnectionRequestContentIp, - UpdateConnectionRequestContentLine, - UpdateConnectionRequestContentLinkedin, - UpdateConnectionRequestContentOAuth1, - UpdateConnectionRequestContentOAuth2, - UpdateConnectionRequestContentOffice365, - UpdateConnectionRequestContentOidc, - UpdateConnectionRequestContentOkta, - UpdateConnectionRequestContentPaypal, - UpdateConnectionRequestContentPaypalSandbox, - UpdateConnectionRequestContentPingFederate, - UpdateConnectionRequestContentPlanningCenter, - UpdateConnectionRequestContentSalesforce, - UpdateConnectionRequestContentSalesforceCommunity, - UpdateConnectionRequestContentSalesforceSandbox, - UpdateConnectionRequestContentSaml, - UpdateConnectionRequestContentSharepoint, - UpdateConnectionRequestContentShop, - UpdateConnectionRequestContentShopify, - UpdateConnectionRequestContentSms, - UpdateConnectionRequestContentSoundcloud, - UpdateConnectionRequestContentThirtySevenSignals, - UpdateConnectionRequestContentTwitter, - UpdateConnectionRequestContentUntappd, - UpdateConnectionRequestContentVkontakte, - UpdateConnectionRequestContentWeibo, - UpdateConnectionRequestContentWindowsLive, - UpdateConnectionRequestContentWordpress, - UpdateConnectionRequestContentYahoo, - UpdateConnectionRequestContentYandex, - UpdateConnectionResponseContent, - UpdateCrossAppAccessResourceApp, - UpdateCustomDomainResponseContent, - UpdateDefaultCanonicalDomainResponseContent, - UpdateDefaultCustomDomainResponseContent, - UpdateDefaultDomainResponseContent, - UpdateDirectoryProvisioningRequestContent, - UpdateDirectoryProvisioningResponseContent, - UpdateEmailProviderResponseContent, - UpdateEmailTemplateResponseContent, - UpdateEnabledClientConnectionsRequestContent, - UpdateEnabledClientConnectionsRequestContentItem, - UpdateEventStreamResponseContent, - UpdateExperimentResponseContent, - UpdateFeatureFlagParameters, - UpdateFeatureFlagResponseContent, - UpdateFlowResponseContent, - UpdateFlowsVaultConnectionResponseContent, - UpdateFlowsVaultConnectionSetup, - UpdateFormResponseContent, - UpdateGuardianFactorDuoSettingsResponseContent, - UpdateGuardianFactorsProviderPushNotificationApnsResponseContent, - UpdateGuardianFactorsProviderPushNotificationFcmResponseContent, - UpdateGuardianFactorsProviderPushNotificationFcmv1ResponseContent, - UpdateGuardianFactorsProviderPushNotificationSnsResponseContent, - UpdateHookResponseContent, - UpdateHookSecretRequestContent, - UpdateIdentityAssertionAuthorizationGrant, - UpdateLogStreamResponseContent, - UpdateNetworkAclResponseContent, - UpdateOrganizationAllConnectionResponseContent, - UpdateOrganizationClientResponseContent, - UpdateOrganizationConnectionResponseContent, - UpdateOrganizationDiscoveryDomainResponseContent, - UpdateOrganizationResponseContent, - UpdatePhoneTemplateResponseContent, - UpdateRateLimitPolicyResponseContent, - UpdateRefreshTokenResponseContent, - UpdateResourceServerResponseContent, - UpdateRiskAssessmentsSettingsNewDeviceResponseContent, - UpdateRiskAssessmentsSettingsResponseContent, - UpdateRoleResponseContent, - UpdateRuleResponseContent, - UpdateScimConfigurationResponseContent, - UpdateSegmentResponseContent, - UpdateSelfServiceProfileResponseContent, - UpdateSessionResponseContent, - UpdateSettingsResponseContent, - UpdateSuspiciousIpThrottlingSettingsResponseContent, - UpdateTenantSettingsResponseContent, - UpdateTokenQuota, - UpdateUniversalLoginTemplateRequestContent, - UpdateUniversalLoginTemplateRequestContentTemplate, - UpdateUserAttributeProfileResponseContent, - UpdateUserAuthenticationMethodResponseContent, - UpdateUserResponseContent, - UpdateVariationOverridesMap, - UpdateVariationResponseContent, - UpdateVerifiableCredentialTemplateResponseContent, - UserAppMetadataSchema, - UserAttributeProfile, - UserAttributeProfileId, - UserAttributeProfileName, - UserAttributeProfileOidcMapping, - UserAttributeProfilePatchUserId, - UserAttributeProfileSamlMapping, - UserAttributeProfileStrategyOverrides, - UserAttributeProfileStrategyOverridesMapping, - UserAttributeProfileStrategyOverridesUserId, - UserAttributeProfileStrategyOverridesUserIdMapping, - UserAttributeProfileTemplate, - UserAttributeProfileTemplateItem, - UserAttributeProfileUserAttributeAdditionalProperties, - UserAttributeProfileUserAttributes, - UserAttributeProfileUserId, - UserAttributeProfileUserIdOidcMappingEnum, - UserAttributeProfileUserIdOidcStrategyOverrideMapping, - UserAttributeProfileUserIdSamlMapping, - UserAuthenticationMethod, - UserAuthenticationMethodProperties, - UserAuthenticationMethodPropertiesEnum, - UserBlockIdentifier, - UserEffectivePermissionResponseContent, - UserEffectivePermissionRoleSourceEnum, - UserEffectivePermissionRoleSourceResponseContent, - UserEffectivePermissionSourceEnum, - UserEffectiveRole, - UserEffectiveRoleSource, - UserEnrollmentAuthMethodEnum, - UserEnrollmentStatusEnum, - UserGrant, - UserGroupsResponseSchema, - UserId, - UserIdentity, - UserIdentityProviderEnum, - UserIdentitySchema, - UserListLogOffsetPaginatedResponseContent, - UserMetadata, - UserMetadataSchema, - UserMultifactorProviderEnum, - UserPermissionSchema, - UserProfileData, - UserResponseSchema, - UsernameAllowedTypes, - UsernameAttribute, - UsernameAttributeIdentifier, - UsernameValidation, - UsersEnrollment, - ValidateExperimentResponseContent, - Variation, - VariationOverridesMap, - VerifiableCredentialTemplateResponse, - VerificationMethodEnum, - VerifyCustomDomainResponseContent, - VerifyEmailTicketResponseContent, - X509CertificateCredential, - X509CertificateCredentialTypeEnum, - XssProtectionConfig, - XssProtectionMode, - ) - from .errors import ( - BadRequestError, - ConflictError, - ContentTooLargeError, - ForbiddenError, - GatewayTimeoutError, - GoneError, - InternalServerError, - NotFoundError, - PaymentRequiredError, - PreconditionFailedError, - ServiceUnavailableError, - TooManyRequestsError, - UnauthorizedError, - UnprocessableEntityError, - ) - from . import ( - actions, - agents, - anomaly, - attack_protection, - branding, - client_grants, - client_profiles, - clients, - connection_profiles, - connections, - custom_domains, - device_credentials, - email_templates, - emails, - event_streams, - events, - experimentation, - flows, - forms, - groups, - guardian, - hooks, - jobs, - keys, - log_streams, - logs, - network_acls, - organizations, - portals, - prompts, - rate_limit_policies, - refresh_tokens, - resource_servers, - risk_assessments, - roles, - rules, - rules_configs, - self_service_profiles, - sessions, - stats, - supplemental_signals, - tenants, - tickets, - token_exchange_profiles, - user_attribute_profiles, - user_blocks, - user_grants, - users, - verifiable_credentials, + SendBase, + SendBaseType, + SendByContent, + SendByTemplate, + SendParams, + SendParamsContent, + SendParamsTemplateId, + SendParamsType, ) from ._default_clients import DefaultAioHttpClient, DefaultAsyncHttpxClient from .client import AsyncAuth0, Auth0 - from .environment import Auth0Environment - from .event_streams import EventStreamsCreateRequest from .management_client import AsyncManagementClient, CustomDomainHeader, ManagementClient from .token_provider import AsyncTokenProvider, TokenProvider from .version import __version__ _dynamic_imports: typing.Dict[str, str] = { - "Action": ".types", - "ActionBase": ".types", - "ActionBinding": ".types", - "ActionBindingRef": ".types", - "ActionBindingRefTypeEnum": ".types", - "ActionBindingTypeEnum": ".types", - "ActionBindingWithRef": ".types", - "ActionBuildStatusEnum": ".types", - "ActionDeployedVersion": ".types", - "ActionError": ".types", - "ActionExecutionResult": ".types", - "ActionExecutionStatusEnum": ".types", - "ActionModuleAction": ".types", - "ActionModuleDependency": ".types", - "ActionModuleDependencyRequest": ".types", - "ActionModuleListItem": ".types", - "ActionModuleReference": ".types", - "ActionModuleSecret": ".types", - "ActionModuleSecretRequest": ".types", - "ActionModuleVersion": ".types", - "ActionModuleVersionReference": ".types", - "ActionSecretRequest": ".types", - "ActionSecretResponse": ".types", - "ActionTrigger": ".types", - "ActionTriggerCompatibleTrigger": ".types", - "ActionTriggerTypeEnum": ".types", - "ActionVersion": ".types", - "ActionVersionBuildStatusEnum": ".types", - "ActionVersionDependency": ".types", - "AculClientFilter": ".types", - "AculClientFilterById": ".types", - "AculClientFilterByMetadata": ".types", - "AculClientMetadata": ".types", - "AculConfigs": ".types", - "AculConfigsItem": ".types", - "AculContextConfiguration": ".types", - "AculContextConfigurationItem": ".types", - "AculContextEnum": ".types", - "AculDomainFilter": ".types", - "AculDomainFilterById": ".types", - "AculDomainFilterByMetadata": ".types", - "AculDomainMetadata": ".types", - "AculFilters": ".types", - "AculHeadTag": ".types", - "AculHeadTagAttributes": ".types", - "AculHeadTagContent": ".types", - "AculMatchTypeEnum": ".types", - "AculOrganizationFilter": ".types", - "AculOrganizationFilterById": ".types", - "AculOrganizationFilterByMetadata": ".types", - "AculOrganizationMetadata": ".types", - "AculRenderingModeEnum": ".types", - "AddOrganizationConnectionResponseContent": ".types", - "AdvanceRampResponseContent": ".types", - "AgentMetadata": ".types", - "AgentResponseContent": ".types", - "AllocationItem": ".types", - "AllocationRequestItem": ".types", - "AllocationStrategyEnum": ".types", - "AnomalyIpFormat": ".types", - "AnonymousSessions": ".types", - "AppMetadata": ".types", - "AssessorsTypeEnum": ".types", - "AssociateOrganizationClientGrantResponseContent": ".types", - "AsyncApprovalNotificationsChannelsEnum": ".types", "AsyncAuth0": ".client", "AsyncManagementClient": ".management_client", "AsyncTokenProvider": ".token_provider", - "AttackProtectionCaptchaArkoseResponseContent": ".types", - "AttackProtectionCaptchaAuthChallengeRequest": ".types", - "AttackProtectionCaptchaAuthChallengeResponseContent": ".types", - "AttackProtectionCaptchaFriendlyCaptchaResponseContent": ".types", - "AttackProtectionCaptchaHcaptchaResponseContent": ".types", - "AttackProtectionCaptchaProviderId": ".types", - "AttackProtectionCaptchaRecaptchaEnterpriseResponseContent": ".types", - "AttackProtectionCaptchaRecaptchaV2ResponseContent": ".types", - "AttackProtectionCaptchaSimpleCaptchaResponseContent": ".types", - "AttackProtectionUpdateCaptchaArkose": ".types", - "AttackProtectionUpdateCaptchaFriendlyCaptcha": ".types", - "AttackProtectionUpdateCaptchaHcaptcha": ".types", - "AttackProtectionUpdateCaptchaRecaptchaEnterprise": ".types", - "AttackProtectionUpdateCaptchaRecaptchaV2": ".types", "Auth0": ".client", - "Auth0Environment": ".environment", - "AuthenticationFlowEnum": ".types", - "AuthenticationMethodTypeEnum": ".types", - "AuthenticationTypeEnum": ".types", - "B2BIntegrationConfiguration": ".types", - "B2BIntegrationConfigurationIntegrationTypeEnum": ".types", - "BadRequestError": ".errors", - "BadRequestSchema": ".types", - "BadRequestSchemaError": ".types", - "BotDetectionAllowlist": ".types", - "BotDetectionChallengePolicyPasswordFlowEnum": ".types", - "BotDetectionChallengePolicyPasswordResetFlowEnum": ".types", - "BotDetectionChallengePolicyPasswordlessFlowEnum": ".types", - "BotDetectionCidrBlock": ".types", - "BotDetectionIPv4": ".types", - "BotDetectionIPv6": ".types", - "BotDetectionIPv6CidrBlock": ".types", - "BotDetectionIpAddressOrCidrBlock": ".types", - "BotDetectionLevelEnum": ".types", - "BotDetectionMonitoringModeEnabled": ".types", - "BrandingColors": ".types", - "BrandingFont": ".types", - "BrandingPageBackground": ".types", - "BrandingThemeBorders": ".types", - "BrandingThemeBordersButtonsStyleEnum": ".types", - "BrandingThemeBordersInputsStyleEnum": ".types", - "BrandingThemeColors": ".types", - "BrandingThemeColorsCaptchaWidgetThemeEnum": ".types", - "BrandingThemeFontBodyText": ".types", - "BrandingThemeFontButtonsText": ".types", - "BrandingThemeFontInputLabels": ".types", - "BrandingThemeFontLinks": ".types", - "BrandingThemeFontLinksStyleEnum": ".types", - "BrandingThemeFontSubtitle": ".types", - "BrandingThemeFontTitle": ".types", - "BrandingThemeFonts": ".types", - "BrandingThemeIdentifiers": ".types", - "BrandingThemeIdentifiersLoginDisplayEnum": ".types", - "BrandingThemeIdentifiersPhoneDisplay": ".types", - "BrandingThemeIdentifiersPhoneDisplayFormattingEnum": ".types", - "BrandingThemeIdentifiersPhoneDisplayMaskingEnum": ".types", - "BrandingThemePageBackground": ".types", - "BrandingThemePageBackgroundPageLayoutEnum": ".types", - "BrandingThemeWidget": ".types", - "BrandingThemeWidgetHeaderTextAlignmentEnum": ".types", - "BrandingThemeWidgetLogoPositionEnum": ".types", - "BrandingThemeWidgetSocialButtonsLayoutEnum": ".types", - "BreachedPasswordDetectionAdminNotificationFrequencyEnum": ".types", - "BreachedPasswordDetectionMethodEnum": ".types", - "BreachedPasswordDetectionPreChangePasswordShieldsEnum": ".types", - "BreachedPasswordDetectionPreChangePasswordStage": ".types", - "BreachedPasswordDetectionPreUserRegistrationShieldsEnum": ".types", - "BreachedPasswordDetectionPreUserRegistrationStage": ".types", - "BreachedPasswordDetectionShieldsEnum": ".types", - "BreachedPasswordDetectionStage": ".types", - "BruteForceProtectionFormSubmissionModeEnum": ".types", - "BruteForceProtectionModeEnum": ".types", - "BruteForceProtectionShieldsEnum": ".types", - "BulkUpdateAculResponseContent": ".types", - "CertificateSubjectDnCredential": ".types", - "CertificateSubjectDnCredentialTypeEnum": ".types", - "ChangePasswordTicketIdentity": ".types", - "ChangePasswordTicketResponseContent": ".types", - "CimdExternalMetadataCreatedByEnum": ".types", - "CimdMappedClientAuthenticationMethods": ".types", - "CimdMappedClientAuthenticationMethodsPrivateKeyJwt": ".types", - "CimdMappedClientFields": ".types", - "CimdMappedPrivateKeyJwtCredential": ".types", - "CimdValidationResult": ".types", - "Client": ".types", - "ClientAddonAws": ".types", - "ClientAddonAzureBlob": ".types", - "ClientAddonAzureSb": ".types", - "ClientAddonBox": ".types", - "ClientAddonCloudBees": ".types", - "ClientAddonConcur": ".types", - "ClientAddonDropbox": ".types", - "ClientAddonEchoSign": ".types", - "ClientAddonEgnyte": ".types", - "ClientAddonFirebase": ".types", - "ClientAddonLayer": ".types", - "ClientAddonMscrm": ".types", - "ClientAddonNewRelic": ".types", - "ClientAddonOag": ".types", - "ClientAddonOffice365": ".types", - "ClientAddonRms": ".types", - "ClientAddonSalesforce": ".types", - "ClientAddonSalesforceApi": ".types", - "ClientAddonSalesforceSandboxApi": ".types", - "ClientAddonSaml": ".types", - "ClientAddonSamlMapping": ".types", - "ClientAddonSapapi": ".types", - "ClientAddonSentry": ".types", - "ClientAddonSharePoint": ".types", - "ClientAddonSharePointExternalUrl": ".types", - "ClientAddonSlack": ".types", - "ClientAddonSpringCm": ".types", - "ClientAddonSsoIntegration": ".types", - "ClientAddonWams": ".types", - "ClientAddonWsFed": ".types", - "ClientAddonZendesk": ".types", - "ClientAddonZoom": ".types", - "ClientAddons": ".types", - "ClientAnonymousSessionTransferNetworkBindingEnum": ".types", - "ClientAppTypeEnum": ".types", - "ClientAsyncApprovalNotificationsChannelsApiPatchConfiguration": ".types", - "ClientAsyncApprovalNotificationsChannelsApiPostConfiguration": ".types", - "ClientAuthenticationMethod": ".types", - "ClientAuthenticationMethodPrivateKeyJwt": ".types", - "ClientAuthenticationMethodPrivateKeyJwtCredentials": ".types", - "ClientAuthenticationMethodSelfSignedTlsClientAuth": ".types", - "ClientAuthenticationMethodSelfSignedTlsClientAuthCredentials": ".types", - "ClientAuthenticationMethodTlsClientAuth": ".types", - "ClientAuthenticationMethodTlsClientAuthCredentials": ".types", - "ClientComplianceLevelEnum": ".types", - "ClientCreateAuthenticationMethod": ".types", - "ClientCreateAuthenticationMethodPrivateKeyJwt": ".types", - "ClientCreateAuthenticationMethodPrivateKeyJwtCredentials": ".types", - "ClientCreateAuthenticationMethodTlsClientAuth": ".types", - "ClientCreateAuthenticationMethodTlsClientAuthCredentials": ".types", - "ClientCredential": ".types", - "ClientCredentialAlgorithmEnum": ".types", - "ClientCredentialTypeEnum": ".types", - "ClientDefaultOrganization": ".types", - "ClientDefaultOrganizationFlowsEnum": ".types", - "ClientEncryptionKey": ".types", - "ClientExternalMetadataCreatedByEnum": ".types", - "ClientExternalMetadataStatusEnum": ".types", - "ClientExternalMetadataTypeEnum": ".types", - "ClientGrantAllowAnyOrganizationEnum": ".types", - "ClientGrantDefaultForEnum": ".types", - "ClientGrantOrganizationNullableUsageEnum": ".types", - "ClientGrantOrganizationUsageEnum": ".types", - "ClientGrantResponseContent": ".types", - "ClientGrantSortFieldEnum": ".types", - "ClientGrantSubjectTypeEnum": ".types", - "ClientJwtConfiguration": ".types", - "ClientJwtConfigurationScopes": ".types", - "ClientMetadata": ".types", - "ClientMobile": ".types", - "ClientMobileAndroid": ".types", - "ClientMobileiOs": ".types", - "ClientMyOrganizationConfigurationAllowedStrategiesEnum": ".types", - "ClientMyOrganizationConfigurationThirdPartyClientAccessAllowedValuesEnum": ".types", - "ClientMyOrganizationConfigurationThirdPartyClientAccessDefaultValueEnum": ".types", - "ClientMyOrganizationDeletionBehaviorEnum": ".types", - "ClientMyOrganizationPatchConfiguration": ".types", - "ClientMyOrganizationPostConfiguration": ".types", - "ClientMyOrganizationResponseConfiguration": ".types", - "ClientMyOrganizationThirdPartyClientAccessConfiguration": ".types", - "ClientOidcBackchannelLogoutInitiators": ".types", - "ClientOidcBackchannelLogoutInitiatorsEnum": ".types", - "ClientOidcBackchannelLogoutInitiatorsModeEnum": ".types", - "ClientOidcBackchannelLogoutSessionMetadata": ".types", - "ClientOidcBackchannelLogoutSettings": ".types", - "ClientOidcSupport": ".types", - "ClientOidcSupportAllowedScopesEnum": ".types", - "ClientOidcSupportPatch": ".types", - "ClientOidcSupportPost": ".types", - "ClientOrganizationDiscoveryEnum": ".types", - "ClientOrganizationRequireBehaviorEnum": ".types", - "ClientOrganizationRequireBehaviorPatchEnum": ".types", - "ClientOrganizationUsageEnum": ".types", - "ClientOrganizationUsagePatchEnum": ".types", - "ClientProfile": ".types", - "ClientProfileApplyPolicy": ".types", - "ClientProfileApplyPolicyExternalMetadataCreatedByEnum": ".types", - "ClientProfileApplyPolicyExternalMetadataTypeEnum": ".types", - "ClientProfileClientConfiguration": ".types", - "ClientProfileClientConfigurationOidcSupport": ".types", - "ClientProfileClientConfigurationOidcSupportAllowedScopesEnum": ".types", - "ClientProfileClientConfigurationOidcSupportDefaultValue": ".types", - "ClientProfileClientConfigurationOrganizationDiscoveryMethodEnum": ".types", - "ClientProfileClientConfigurationOrganizationDiscoveryMethods": ".types", - "ClientProfileClientConfigurationOrganizationRequireBehavior": ".types", - "ClientProfileClientConfigurationOrganizationRequireBehaviorEnum": ".types", - "ClientProfileClientConfigurationOrganizationUsage": ".types", - "ClientProfileClientConfigurationOrganizationUsageEnum": ".types", - "ClientProfileClientConfigurationRefreshToken": ".types", - "ClientProfileClientConfigurationRequireProofOfPossession": ".types", - "ClientProfileDescription": ".types", - "ClientProfileId": ".types", - "ClientProfileName": ".types", - "ClientProfileRefreshTokenIdleTokenLifetime": ".types", - "ClientProfileRefreshTokenLeeway": ".types", - "ClientProfileRefreshTokenTokenLifetime": ".types", - "ClientRedirectionPolicyEnum": ".types", - "ClientRefreshTokenConfiguration": ".types", - "ClientRefreshTokenPolicy": ".types", - "ClientSearchResponse": ".types", - "ClientSessionTransferAllowedAuthenticationMethodsEnum": ".types", - "ClientSessionTransferConfiguration": ".types", - "ClientSessionTransferDelegationConfiguration": ".types", - "ClientSessionTransferDelegationDeviceBindingEnum": ".types", - "ClientSessionTransferDeviceBindingEnum": ".types", - "ClientSignedRequestObjectWithCredentialId": ".types", - "ClientSignedRequestObjectWithPublicKey": ".types", - "ClientSigningKey": ".types", - "ClientSigningKeys": ".types", - "ClientSortFieldEnum": ".types", - "ClientThirdPartySecurityModeEnum": ".types", - "ClientTokenEndpointAuthMethodEnum": ".types", - "ClientTokenEndpointAuthMethodOrNullEnum": ".types", - "ClientTokenExchangeConfiguration": ".types", - "ClientTokenExchangeConfigurationOrNull": ".types", - "ClientTokenExchangeTypeEnum": ".types", - "ClientTokenVaultPrivilegedAccessWithCredentialId": ".types", - "ClientTokenVaultPrivilegedAccessWithPublicKey": ".types", - "ConflictError": ".errors", - "ConflictSchema": ".types", - "ConflictSchemaError": ".types", - "ConnectedAccount": ".types", - "ConnectedAccountAccessTypeEnum": ".types", - "ConnectionAccessTokenUrloAuth1": ".types", - "ConnectionAcrValuesSupported": ".types", - "ConnectionAdminAccessTokenExpiresInGoogleApps": ".types", - "ConnectionAdminAccessTokenGoogleApps": ".types", - "ConnectionAdminRefreshTokenGoogleApps": ".types", - "ConnectionAgentIpad": ".types", - "ConnectionAgentModeAd": ".types", - "ConnectionAgentVersionAd": ".types", - "ConnectionAllowedAudiencesGoogleOAuth2": ".types", - "ConnectionApiBehaviorEnum": ".types", - "ConnectionApiEnableGroups": ".types", - "ConnectionApiEnableGroupsGoogleApps": ".types", - "ConnectionApiEnableUsers": ".types", - "ConnectionApiEnableUsersGoogleApps": ".types", - "ConnectionAppDomainAzureAd": ".types", - "ConnectionAssertionDecryptionAlgorithmProfileEnum": ".types", - "ConnectionAssertionDecryptionSettings": ".types", - "ConnectionAttributeMapAttributes": ".types", - "ConnectionAttributeMapOidc": ".types", - "ConnectionAttributeMapOkta": ".types", - "ConnectionAttributeMapUserinfoScope": ".types", - "ConnectionAttributes": ".types", - "ConnectionAuthParamsAdditionalPropertiesOAuth2": ".types", - "ConnectionAuthParamsEmail": ".types", - "ConnectionAuthParamsMap": ".types", - "ConnectionAuthParamsOAuth2": ".types", - "ConnectionAuthenticationMethods": ".types", - "ConnectionAuthenticationPurpose": ".types", - "ConnectionAuthorizationEndpoint": ".types", - "ConnectionBaseUrlExact": ".types", - "ConnectionBruteForceProtection": ".types", - "ConnectionCalculatedThumbprintSaml": ".types", - "ConnectionCertsAd": ".types", - "ConnectionClaimTypesSupported": ".types", - "ConnectionClaimsLocalesSupported": ".types", - "ConnectionClaimsParameterSupported": ".types", - "ConnectionClaimsSupported": ".types", - "ConnectionClientId": ".types", - "ConnectionClientIdAmazon": ".types", - "ConnectionClientIdAzureAd": ".types", - "ConnectionClientIdBitbucket": ".types", - "ConnectionClientIdExact": ".types", - "ConnectionClientIdFacebook": ".types", - "ConnectionClientIdGoogleApps": ".types", - "ConnectionClientIdGoogleOAuth2": ".types", - "ConnectionClientIdLine": ".types", - "ConnectionClientIdLinkedin": ".types", - "ConnectionClientIdOAuth1": ".types", - "ConnectionClientIdOAuth2": ".types", - "ConnectionClientIdOidc": ".types", - "ConnectionClientIdPaypal": ".types", - "ConnectionClientIdSalesforce": ".types", - "ConnectionClientIdSamlxaaRequestingApp": ".types", - "ConnectionClientIdWindowsLive": ".types", - "ConnectionClientProtocolSaml": ".types", - "ConnectionClientSecret": ".types", - "ConnectionClientSecretAmazon": ".types", - "ConnectionClientSecretAzureAd": ".types", - "ConnectionClientSecretBitbucket": ".types", - "ConnectionClientSecretExact": ".types", - "ConnectionClientSecretFacebook": ".types", - "ConnectionClientSecretGoogleApps": ".types", - "ConnectionClientSecretGoogleOAuth2": ".types", - "ConnectionClientSecretLine": ".types", - "ConnectionClientSecretLinkedin": ".types", - "ConnectionClientSecretOAuth1": ".types", - "ConnectionClientSecretOAuth2": ".types", - "ConnectionClientSecretOidc": ".types", - "ConnectionClientSecretPaypal": ".types", - "ConnectionClientSecretSalesforce": ".types", - "ConnectionClientSecretSamlxaaRequestingApp": ".types", - "ConnectionClientSecretWindowsLive": ".types", - "ConnectionCommon": ".types", - "ConnectionCommunityBaseUrlSalesforce": ".types", - "ConnectionConfiguration": ".types", - "ConnectionConnectedAccountsPurpose": ".types", - "ConnectionConnectedAccountsPurposeXaa": ".types", - "ConnectionConnectionSettings": ".types", - "ConnectionConnectionSettingsPkceEnum": ".types", - "ConnectionCrossAppAccessResourceApp": ".types", - "ConnectionCrossAppAccessResourceAppStatusEnum": ".types", - "ConnectionCustomHeadersOAuth2": ".types", - "ConnectionCustomScripts": ".types", - "ConnectionDebugSaml": ".types", - "ConnectionDecryptionKeySaml": ".types", - "ConnectionDecryptionKeySamlCert": ".types", - "ConnectionDestinationUrlSaml": ".types", - "ConnectionDigestAlgorithmEnumSaml": ".types", - "ConnectionDigestAlgorithmSaml": ".types", - "ConnectionDisableSelfServiceChangePassword": ".types", - "ConnectionDisableSignup": ".types", - "ConnectionDisableSignupSms": ".types", - "ConnectionDiscoveryUrl": ".types", - "ConnectionDisplayName": ".types", - "ConnectionDisplayValuesSupported": ".types", - "ConnectionDomainAliases": ".types", - "ConnectionDomainAliasesAd": ".types", - "ConnectionDomainAliasesAzureAd": ".types", - "ConnectionDomainAliasesItemsOne": ".types", - "ConnectionDomainAliasesSaml": ".types", - "ConnectionDomainGoogleApps": ".types", - "ConnectionDomainOkta": ".types", - "ConnectionDpopSigningAlgEnum": ".types", - "ConnectionDpopSigningAlgValuesSupported": ".types", - "ConnectionEmailBodyEmail": ".types", - "ConnectionEmailEmail": ".types", - "ConnectionEmailEmailSyntax": ".types", - "ConnectionEmailFromEmail": ".types", - "ConnectionEmailOtpAuthenticationMethod": ".types", - "ConnectionEmailSubjectEmail": ".types", - "ConnectionEnablePushedAuthorizationRequests": ".types", - "ConnectionEnableScriptContext": ".types", - "ConnectionEnabledClient": ".types", - "ConnectionEnabledClients": ".types", - "ConnectionEnabledDatabaseCustomization": ".types", - "ConnectionEndSessionEndpoint": ".types", - "ConnectionEntityIdSaml": ".types", - "ConnectionExtAdmin": ".types", - "ConnectionExtAgreedTerms": ".types", - "ConnectionExtAgreedTermsGoogleApps": ".types", - "ConnectionExtAssignedPlans": ".types", - "ConnectionExtGroups": ".types", - "ConnectionExtGroupsAzureAd": ".types", - "ConnectionExtGroupsGoogleApps": ".types", - "ConnectionExtIsAdminGoogleApps": ".types", - "ConnectionExtIsSuspended": ".types", - "ConnectionExtIsSuspendedGoogleApps": ".types", - "ConnectionExtProfile": ".types", - "ConnectionFieldsMap": ".types", - "ConnectionFieldsMapSaml": ".types", - "ConnectionFieldsMapSamlValue": ".types", - "ConnectionForList": ".types", - "ConnectionForOrganization": ".types", - "ConnectionForwardReqInfoSms": ".types", - "ConnectionFreeformScopesAmazon": ".types", - "ConnectionFreeformScopesGoogleOAuth2": ".types", - "ConnectionFreeformScopesLinkedin": ".types", - "ConnectionFreeformScopesPaypal": ".types", - "ConnectionFreeformScopesSalesforce": ".types", - "ConnectionFreeformScopesWindowsLive": ".types", - "ConnectionFromSms": ".types", - "ConnectionGatewayAuthentication": ".types", - "ConnectionGatewayAuthenticationAudienceSms": ".types", - "ConnectionGatewayAuthenticationMethodSms": ".types", - "ConnectionGatewayAuthenticationSms": ".types", - "ConnectionGatewayAuthenticationSubjectSms": ".types", - "ConnectionGatewayUrlSms": ".types", - "ConnectionGlobalTokenRevocationJwtIssSaml": ".types", - "ConnectionGlobalTokenRevocationJwtSubSaml": ".types", - "ConnectionGrantTypesSupported": ".types", - "ConnectionHandleLoginFromSocialGoogleApps": ".types", - "ConnectionHttpsUrlWithHttpFallback": ".types", - "ConnectionHttpsUrlWithHttpFallback2048": ".types", - "ConnectionHttpsUrlWithHttpFallback255": ".types", - "ConnectionIconUrl": ".types", - "ConnectionIconUrlAdfs": ".types", - "ConnectionIconUrlAzureAd": ".types", - "ConnectionIconUrlGoogleApps": ".types", - "ConnectionIconUrlGoogleOAuth2": ".types", - "ConnectionIconUrlSaml": ".types", - "ConnectionId": ".types", - "ConnectionIdTokenEncryptionAlgValuesSupported": ".types", - "ConnectionIdTokenEncryptionEncValuesSupported": ".types", - "ConnectionIdTokenSessionExpirySupported": ".types", - "ConnectionIdTokenSignedResponseAlgEnum": ".types", - "ConnectionIdTokenSignedResponseAlgs": ".types", - "ConnectionIdTokenSigningAlgValuesSupported": ".types", - "ConnectionIdentifierPrecedence": ".types", - "ConnectionIdentifierPrecedenceEnum": ".types", - "ConnectionIdentityApiAzureAd": ".types", - "ConnectionIdentityApiEnumAzureAd": ".types", - "ConnectionIdentityProviderEnum": ".types", - "ConnectionImportMode": ".types", - "ConnectionIpsAd": ".types", - "ConnectionIsDomainConnection": ".types", - "ConnectionIssuer": ".types", - "ConnectionJwksUri": ".types", - "ConnectionKey": ".types", - "ConnectionKeyUseEnum": ".types", - "ConnectionMappingModeEnumOidc": ".types", - "ConnectionMappingModeEnumOkta": ".types", - "ConnectionMaxGroupsToRetrieve": ".types", - "ConnectionMessagingServiceSidSms": ".types", - "ConnectionMetadataUrlSaml": ".types", - "ConnectionMetadataXml": ".types", - "ConnectionMetadataXmlAdfs": ".types", - "ConnectionMetadataXmlSaml": ".types", - "ConnectionMfa": ".types", - "ConnectionName": ".types", - "ConnectionNamePrefixTemplate": ".types", - "ConnectionNonPersistentAttrs": ".types", - "ConnectionOpPolicyUri": ".types", - "ConnectionOpTosUri": ".types", - "ConnectionOptions": ".types", - "ConnectionOptionsAd": ".types", - "ConnectionOptionsAdfs": ".types", - "ConnectionOptionsAmazon": ".types", - "ConnectionOptionsApple": ".types", - "ConnectionOptionsAuth0": ".types", - "ConnectionOptionsAuth0Oidc": ".types", - "ConnectionOptionsAzureAd": ".types", - "ConnectionOptionsBaidu": ".types", - "ConnectionOptionsBitbucket": ".types", - "ConnectionOptionsBitly": ".types", - "ConnectionOptionsBox": ".types", - "ConnectionOptionsClientIdGithub": ".types", - "ConnectionOptionsClientIdTwitter": ".types", - "ConnectionOptionsClientSecretGithub": ".types", - "ConnectionOptionsClientSecretTwitter": ".types", - "ConnectionOptionsCommon": ".types", - "ConnectionOptionsCommonOidc": ".types", - "ConnectionOptionsCommonSaml": ".types", - "ConnectionOptionsCustom": ".types", - "ConnectionOptionsDaccount": ".types", - "ConnectionOptionsDeflateSaml": ".types", - "ConnectionOptionsDropbox": ".types", - "ConnectionOptionsDwolla": ".types", - "ConnectionOptionsEmail": ".types", - "ConnectionOptionsEvernote": ".types", - "ConnectionOptionsExact": ".types", - "ConnectionOptionsFacebook": ".types", - "ConnectionOptionsFitbit": ".types", - "ConnectionOptionsFreeformScopesGithub": ".types", - "ConnectionOptionsGitHub": ".types", - "ConnectionOptionsGoogleApps": ".types", - "ConnectionOptionsGoogleOAuth2": ".types", - "ConnectionOptionsIdpInitiatedClientProtocolEnumSaml": ".types", - "ConnectionOptionsIdpinitiatedSaml": ".types", - "ConnectionOptionsInstagram": ".types", - "ConnectionOptionsIp": ".types", - "ConnectionOptionsLine": ".types", - "ConnectionOptionsLinkedin": ".types", - "ConnectionOptionsOAuth1": ".types", - "ConnectionOptionsOAuth1Common": ".types", - "ConnectionOptionsOAuth2": ".types", - "ConnectionOptionsOAuth2Common": ".types", - "ConnectionOptionsOffice365": ".types", - "ConnectionOptionsOidc": ".types", - "ConnectionOptionsOidcMetadata": ".types", - "ConnectionOptionsOkta": ".types", - "ConnectionOptionsPaypal": ".types", - "ConnectionOptionsPingFederate": ".types", - "ConnectionOptionsPlanningCenter": ".types", - "ConnectionOptionsProtocolEnumTwitter": ".types", - "ConnectionOptionsSalesforce": ".types", - "ConnectionOptionsSalesforceCommunity": ".types", - "ConnectionOptionsSaml": ".types", - "ConnectionOptionsScopeGithub": ".types", - "ConnectionOptionsScopeTwitter": ".types", - "ConnectionOptionsSharepoint": ".types", - "ConnectionOptionsShop": ".types", - "ConnectionOptionsShopify": ".types", - "ConnectionOptionsSms": ".types", - "ConnectionOptionsSoundcloud": ".types", - "ConnectionOptionsThirtySevenSignals": ".types", - "ConnectionOptionsTwitter": ".types", - "ConnectionOptionsUntappd": ".types", - "ConnectionOptionsVkontakte": ".types", - "ConnectionOptionsWeibo": ".types", - "ConnectionOptionsWindowsLive": ".types", - "ConnectionOptionsWordpress": ".types", - "ConnectionOptionsYahoo": ".types", - "ConnectionOptionsYandex": ".types", - "ConnectionOtpChannelSettings": ".types", - "ConnectionOtpSettings": ".types", - "ConnectionPasskeyAuthenticationMethod": ".types", - "ConnectionPasskeyChallengeUiEnum": ".types", - "ConnectionPasskeyOptions": ".types", - "ConnectionPasswordAuthenticationMethod": ".types", - "ConnectionPasswordComplexityOptions": ".types", - "ConnectionPasswordDictionaryOptions": ".types", - "ConnectionPasswordHistoryOptions": ".types", - "ConnectionPasswordNoPersonalInfoOptions": ".types", - "ConnectionPasswordOptions": ".types", - "ConnectionPasswordOptionsComplexity": ".types", - "ConnectionPasswordOptionsDictionary": ".types", - "ConnectionPasswordOptionsHistory": ".types", - "ConnectionPasswordOptionsProfileData": ".types", - "ConnectionPasswordPolicyEnum": ".types", - "ConnectionPhoneOtpAuthenticationMethod": ".types", - "ConnectionPingFederateBaseUrl": ".types", - "ConnectionPingFederateBaseUrlPingFederate": ".types", - "ConnectionProfile": ".types", - "ConnectionProfileBitbucket": ".types", - "ConnectionProfileConfig": ".types", - "ConnectionProfileCrossAppAccessResourceApp": ".types", - "ConnectionProfileCrossAppAccessResourceAppStatus": ".types", - "ConnectionProfileCrossAppAccessResourceAppStatusAllowedValuesEnum": ".types", - "ConnectionProfileCrossAppAccessResourceAppStatusDefaultValueEnum": ".types", - "ConnectionProfileCrossAppAccessResourceAppStatusValueEnum": ".types", - "ConnectionProfileEnabledFeatures": ".types", - "ConnectionProfileId": ".types", - "ConnectionProfileName": ".types", - "ConnectionProfileOrganization": ".types", - "ConnectionProfileOrganizationAssignMembershipOnLoginEnum": ".types", - "ConnectionProfileOrganizationShowAsButtonEnum": ".types", - "ConnectionProfileProvisioning": ".types", - "ConnectionProfileProvisioningGoogleWorkspace": ".types", - "ConnectionProfileProvisioningGoogleWorkspaceSyncUsers": ".types", - "ConnectionProfileProvisioningScim": ".types", - "ConnectionProfileProvisioningScimTokenDefaultExpiry": ".types", - "ConnectionProfileProvisioningScimTokenMaxAllowedExpiry": ".types", - "ConnectionProfileProvisioningScimTokenScopeEnum": ".types", - "ConnectionProfileProvisioningScimTokenScopes": ".types", - "ConnectionProfileProvisioningScimTokens": ".types", - "ConnectionProfileStrategyOverride": ".types", - "ConnectionProfileStrategyOverrides": ".types", - "ConnectionProfileStrategyOverridesConnectionConfig": ".types", - "ConnectionProfileStrategyOverridesEnabledFeatures": ".types", - "ConnectionProfileStrategyOverridesProvisioning": ".types", - "ConnectionProfileTemplate": ".types", - "ConnectionProfileTemplateItem": ".types", - "ConnectionPropertiesOptions": ".types", - "ConnectionProtocolBindingEnumSaml": ".types", - "ConnectionProtocolBindingSaml": ".types", - "ConnectionProviderEnumSms": ".types", - "ConnectionProviderSms": ".types", - "ConnectionProvisioningTicketUrl": ".types", - "ConnectionPurposes": ".types", - "ConnectionPushedAuthorizationRequestEndpoint": ".types", - "ConnectionRealmFallback": ".types", - "ConnectionRealms": ".types", - "ConnectionRecipientUrlSaml": ".types", - "ConnectionRegistrationEndpoint": ".types", - "ConnectionRequestObjectEncryptionAlgValuesSupported": ".types", - "ConnectionRequestObjectEncryptionEncValuesSupported": ".types", - "ConnectionRequestObjectSigningAlgValuesSupported": ".types", - "ConnectionRequestParameterSupported": ".types", - "ConnectionRequestTemplateSaml": ".types", - "ConnectionRequestTokenUrloAuth1": ".types", - "ConnectionRequestUriParameterSupported": ".types", - "ConnectionRequirePushedAuthorizationRequests": ".types", - "ConnectionRequireRequestUriRegistration": ".types", - "ConnectionRequiresUsername": ".types", - "ConnectionResponseCommon": ".types", - "ConnectionResponseContentAd": ".types", - "ConnectionResponseContentAdStrategy": ".types", - "ConnectionResponseContentAdfs": ".types", - "ConnectionResponseContentAdfsStrategy": ".types", - "ConnectionResponseContentAmazon": ".types", - "ConnectionResponseContentAmazonStrategy": ".types", - "ConnectionResponseContentApple": ".types", - "ConnectionResponseContentAppleStrategy": ".types", - "ConnectionResponseContentAuth0": ".types", - "ConnectionResponseContentAuth0Oidc": ".types", - "ConnectionResponseContentAuth0OidcStrategy": ".types", - "ConnectionResponseContentAuth0Strategy": ".types", - "ConnectionResponseContentAzureAd": ".types", - "ConnectionResponseContentAzureAdStrategy": ".types", - "ConnectionResponseContentBaidu": ".types", - "ConnectionResponseContentBaiduStrategy": ".types", - "ConnectionResponseContentBitbucket": ".types", - "ConnectionResponseContentBitbucketStrategy": ".types", - "ConnectionResponseContentBitly": ".types", - "ConnectionResponseContentBitlyStrategy": ".types", - "ConnectionResponseContentBox": ".types", - "ConnectionResponseContentBoxStrategy": ".types", - "ConnectionResponseContentCustom": ".types", - "ConnectionResponseContentCustomStrategy": ".types", - "ConnectionResponseContentDaccount": ".types", - "ConnectionResponseContentDaccountStrategy": ".types", - "ConnectionResponseContentDropbox": ".types", - "ConnectionResponseContentDropboxStrategy": ".types", - "ConnectionResponseContentDwolla": ".types", - "ConnectionResponseContentDwollaStrategy": ".types", - "ConnectionResponseContentEmail": ".types", - "ConnectionResponseContentEmailStrategy": ".types", - "ConnectionResponseContentEvernote": ".types", - "ConnectionResponseContentEvernoteSandbox": ".types", - "ConnectionResponseContentEvernoteSandboxStrategy": ".types", - "ConnectionResponseContentEvernoteStrategy": ".types", - "ConnectionResponseContentExact": ".types", - "ConnectionResponseContentExactStrategy": ".types", - "ConnectionResponseContentFacebook": ".types", - "ConnectionResponseContentFacebookStrategy": ".types", - "ConnectionResponseContentFitbit": ".types", - "ConnectionResponseContentFitbitStrategy": ".types", - "ConnectionResponseContentGitHub": ".types", - "ConnectionResponseContentGitHubStrategy": ".types", - "ConnectionResponseContentGoogleApps": ".types", - "ConnectionResponseContentGoogleAppsStrategy": ".types", - "ConnectionResponseContentGoogleOAuth2": ".types", - "ConnectionResponseContentGoogleOAuth2Strategy": ".types", - "ConnectionResponseContentInstagram": ".types", - "ConnectionResponseContentInstagramStrategy": ".types", - "ConnectionResponseContentIp": ".types", - "ConnectionResponseContentIpStrategy": ".types", - "ConnectionResponseContentLine": ".types", - "ConnectionResponseContentLineStrategy": ".types", - "ConnectionResponseContentLinkedin": ".types", - "ConnectionResponseContentLinkedinStrategy": ".types", - "ConnectionResponseContentOAuth1": ".types", - "ConnectionResponseContentOAuth1Strategy": ".types", - "ConnectionResponseContentOAuth2": ".types", - "ConnectionResponseContentOAuth2Strategy": ".types", - "ConnectionResponseContentOffice365": ".types", - "ConnectionResponseContentOffice365Strategy": ".types", - "ConnectionResponseContentOidc": ".types", - "ConnectionResponseContentOidcStrategy": ".types", - "ConnectionResponseContentOkta": ".types", - "ConnectionResponseContentOktaStrategy": ".types", - "ConnectionResponseContentPaypal": ".types", - "ConnectionResponseContentPaypalSandbox": ".types", - "ConnectionResponseContentPaypalSandboxStrategy": ".types", - "ConnectionResponseContentPaypalStrategy": ".types", - "ConnectionResponseContentPingFederate": ".types", - "ConnectionResponseContentPingFederateStrategy": ".types", - "ConnectionResponseContentPlanningCenter": ".types", - "ConnectionResponseContentPlanningCenterStrategy": ".types", - "ConnectionResponseContentSalesforce": ".types", - "ConnectionResponseContentSalesforceCommunity": ".types", - "ConnectionResponseContentSalesforceCommunityStrategy": ".types", - "ConnectionResponseContentSalesforceSandbox": ".types", - "ConnectionResponseContentSalesforceSandboxStrategy": ".types", - "ConnectionResponseContentSalesforceStrategy": ".types", - "ConnectionResponseContentSaml": ".types", - "ConnectionResponseContentSamlStrategy": ".types", - "ConnectionResponseContentSharepoint": ".types", - "ConnectionResponseContentSharepointStrategy": ".types", - "ConnectionResponseContentShop": ".types", - "ConnectionResponseContentShopStrategy": ".types", - "ConnectionResponseContentShopify": ".types", - "ConnectionResponseContentShopifyStrategy": ".types", - "ConnectionResponseContentSms": ".types", - "ConnectionResponseContentSmsStrategy": ".types", - "ConnectionResponseContentSoundcloud": ".types", - "ConnectionResponseContentSoundcloudStrategy": ".types", - "ConnectionResponseContentThirtySevenSignals": ".types", - "ConnectionResponseContentThirtySevenSignalsStrategy": ".types", - "ConnectionResponseContentTwitter": ".types", - "ConnectionResponseContentTwitterStrategy": ".types", - "ConnectionResponseContentUntappd": ".types", - "ConnectionResponseContentUntappdStrategy": ".types", - "ConnectionResponseContentVkontakte": ".types", - "ConnectionResponseContentVkontakteStrategy": ".types", - "ConnectionResponseContentWeibo": ".types", - "ConnectionResponseContentWeiboStrategy": ".types", - "ConnectionResponseContentWindowsLive": ".types", - "ConnectionResponseContentWindowsLiveStrategy": ".types", - "ConnectionResponseContentWordpress": ".types", - "ConnectionResponseContentWordpressStrategy": ".types", - "ConnectionResponseContentYahoo": ".types", - "ConnectionResponseContentYahooStrategy": ".types", - "ConnectionResponseContentYandex": ".types", - "ConnectionResponseContentYandexStrategy": ".types", - "ConnectionResponseModesSupported": ".types", - "ConnectionResponseTypesSupported": ".types", - "ConnectionScopeAmazon": ".types", - "ConnectionScopeArray": ".types", - "ConnectionScopeArrayFacebook": ".types", - "ConnectionScopeArrayWindowsLive": ".types", - "ConnectionScopeAzureAd": ".types", - "ConnectionScopeFacebook": ".types", - "ConnectionScopeGoogleApps": ".types", - "ConnectionScopeGoogleOAuth2": ".types", - "ConnectionScopeItem": ".types", - "ConnectionScopeItemGoogleApps": ".types", - "ConnectionScopeLinkedin": ".types", - "ConnectionScopeOAuth2": ".types", - "ConnectionScopeOidc": ".types", - "ConnectionScopePaypal": ".types", - "ConnectionScopeSalesforce": ".types", - "ConnectionScopesSupported": ".types", - "ConnectionScriptsOAuth1": ".types", - "ConnectionScriptsOAuth2": ".types", - "ConnectionSendBackChannelNonce": ".types", - "ConnectionServiceDocumentation": ".types", - "ConnectionSetUserRootAttributesEnum": ".types", - "ConnectionSha1Thumbprint": ".types", - "ConnectionShouldTrustEmailVerifiedConnectionEnum": ".types", - "ConnectionShowAsButton": ".types", - "ConnectionSignInEndpointAd": ".types", - "ConnectionSignInEndpointAdfs": ".types", - "ConnectionSignInEndpointSaml": ".types", - "ConnectionSignOutEndpointSaml": ".types", - "ConnectionSignSamlRequestSaml": ".types", - "ConnectionSignatureAlgorithmEnumSaml": ".types", - "ConnectionSignatureAlgorithmSaml": ".types", - "ConnectionSignatureMethodOAuth1": ".types", - "ConnectionSigningCertSaml": ".types", - "ConnectionSigningCertificateDerSaml": ".types", - "ConnectionSigningCertificatePemPingFederate": ".types", - "ConnectionSigningCertificatePemSaml": ".types", - "ConnectionSigningKeySaml": ".types", - "ConnectionSignupBehaviorEnum": ".types", - "ConnectionStrategyEnum": ".types", - "ConnectionStrategyVersionEnumLinkedin": ".types", - "ConnectionStrategyVersionEnumWindowsLive": ".types", - "ConnectionSubjectTypesSupported": ".types", - "ConnectionTemplateSms": ".types", - "ConnectionTemplateSyntaxEnumSms": ".types", - "ConnectionTenantDomain": ".types", - "ConnectionTenantDomainAd": ".types", - "ConnectionTenantDomainAzureAdOne": ".types", - "ConnectionTenantDomainGoogleApps": ".types", - "ConnectionTenantDomainSaml": ".types", - "ConnectionTenantIdAzureAd": ".types", - "ConnectionThumbprints": ".types", - "ConnectionThumbprintsAd": ".types", - "ConnectionThumbprintsSaml": ".types", - "ConnectionThumbprintsSha384": ".types", - "ConnectionThumbprintsSha384Ad": ".types", - "ConnectionThumbprintsSha384Saml": ".types", - "ConnectionTokenEndpoint": ".types", - "ConnectionTokenEndpointAuthMethodEnum": ".types", - "ConnectionTokenEndpointAuthMethodsSupported": ".types", - "ConnectionTokenEndpointAuthSigningAlgEnum": ".types", - "ConnectionTokenEndpointAuthSigningAlgValuesSupported": ".types", - "ConnectionTokenEndpointJwtcaAudFormatEnumOidc": ".types", - "ConnectionTotpEmail": ".types", - "ConnectionTotpLengthEmail": ".types", - "ConnectionTotpLengthPasswordless": ".types", - "ConnectionTotpLengthSms": ".types", - "ConnectionTotpSms": ".types", - "ConnectionTotpTimeStepEmail": ".types", - "ConnectionTotpTimeStepPasswordless": ".types", - "ConnectionTotpTimeStepSms": ".types", - "ConnectionTwilioSidSms": ".types", - "ConnectionTwilioTokenSms": ".types", - "ConnectionTypeEnumOidc": ".types", - "ConnectionTypeEnumOkta": ".types", - "ConnectionUiLocalesSupported": ".types", - "ConnectionUpstreamAdditionalProperties": ".types", - "ConnectionUpstreamAlias": ".types", - "ConnectionUpstreamAliasEnum": ".types", - "ConnectionUpstreamParams": ".types", - "ConnectionUpstreamParamsFacebook": ".types", - "ConnectionUpstreamValue": ".types", - "ConnectionUseCommonEndpointAzureAd": ".types", - "ConnectionUseOauthSpecScope": ".types", - "ConnectionUserAuthorizationUrloAuth1": ".types", - "ConnectionUserIdAttributeSaml": ".types", - "ConnectionUseridAttributeAzureAd": ".types", - "ConnectionUseridAttributeEnumAzureAd": ".types", - "ConnectionUserinfoEncryptionAlgValuesSupported": ".types", - "ConnectionUserinfoEncryptionEncValuesSupported": ".types", - "ConnectionUserinfoEndpoint": ".types", - "ConnectionUserinfoSigningAlgValuesSupported": ".types", - "ConnectionUsernameValidationOptions": ".types", - "ConnectionValidationOptions": ".types", - "ConnectionWaadProtocol": ".types", - "ConnectionWaadProtocolEnumAzureAd": ".types", - "ConnectionsDiscoveryUrl": ".types", - "ConnectionsMetadata": ".types", - "ConnectionsOidcMetadata": ".types", - "ConsentSigningKey": ".types", - "ContentSecurityPolicyConfig": ".types", - "ContentTooLargeError": ".errors", - "CreateActionModuleResponseContent": ".types", - "CreateActionModuleVersionResponseContent": ".types", - "CreateActionResponseContent": ".types", - "CreateAnonymousSessions": ".types", - "CreateBrandingPhoneProviderResponseContent": ".types", - "CreateBrandingThemeResponseContent": ".types", - "CreateClientAuthenticationMethodSelfSignedTlsClientAuth": ".types", - "CreateClientAuthenticationMethodSelfSignedTlsClientAuthCredentials": ".types", - "CreateClientGrantResponseContent": ".types", - "CreateClientResponseContent": ".types", - "CreateConnectionCommon": ".types", - "CreateConnectionProfileResponseContent": ".types", - "CreateConnectionRequestContentAd": ".types", - "CreateConnectionRequestContentAdStrategy": ".types", - "CreateConnectionRequestContentAdfs": ".types", - "CreateConnectionRequestContentAdfsStrategy": ".types", - "CreateConnectionRequestContentAmazon": ".types", - "CreateConnectionRequestContentAmazonStrategy": ".types", - "CreateConnectionRequestContentApple": ".types", - "CreateConnectionRequestContentAppleStrategy": ".types", - "CreateConnectionRequestContentAuth0": ".types", - "CreateConnectionRequestContentAuth0Oidc": ".types", - "CreateConnectionRequestContentAuth0OidcStrategy": ".types", - "CreateConnectionRequestContentAuth0Strategy": ".types", - "CreateConnectionRequestContentAzureAd": ".types", - "CreateConnectionRequestContentAzureAdStrategy": ".types", - "CreateConnectionRequestContentBaidu": ".types", - "CreateConnectionRequestContentBaiduStrategy": ".types", - "CreateConnectionRequestContentBitbucket": ".types", - "CreateConnectionRequestContentBitbucketStrategy": ".types", - "CreateConnectionRequestContentBitly": ".types", - "CreateConnectionRequestContentBitlyStrategy": ".types", - "CreateConnectionRequestContentBox": ".types", - "CreateConnectionRequestContentBoxStrategy": ".types", - "CreateConnectionRequestContentCustom": ".types", - "CreateConnectionRequestContentCustomStrategy": ".types", - "CreateConnectionRequestContentDaccount": ".types", - "CreateConnectionRequestContentDaccountStrategy": ".types", - "CreateConnectionRequestContentDropbox": ".types", - "CreateConnectionRequestContentDropboxStrategy": ".types", - "CreateConnectionRequestContentDwolla": ".types", - "CreateConnectionRequestContentDwollaStrategy": ".types", - "CreateConnectionRequestContentEmail": ".types", - "CreateConnectionRequestContentEmailStrategy": ".types", - "CreateConnectionRequestContentEvernote": ".types", - "CreateConnectionRequestContentEvernoteSandbox": ".types", - "CreateConnectionRequestContentEvernoteSandboxStrategy": ".types", - "CreateConnectionRequestContentEvernoteStrategy": ".types", - "CreateConnectionRequestContentExact": ".types", - "CreateConnectionRequestContentExactStrategy": ".types", - "CreateConnectionRequestContentFacebook": ".types", - "CreateConnectionRequestContentFacebookStrategy": ".types", - "CreateConnectionRequestContentFitbit": ".types", - "CreateConnectionRequestContentFitbitStrategy": ".types", - "CreateConnectionRequestContentGitHub": ".types", - "CreateConnectionRequestContentGitHubStrategy": ".types", - "CreateConnectionRequestContentGoogleApps": ".types", - "CreateConnectionRequestContentGoogleAppsStrategy": ".types", - "CreateConnectionRequestContentGoogleOAuth2": ".types", - "CreateConnectionRequestContentGoogleOAuth2Strategy": ".types", - "CreateConnectionRequestContentInstagram": ".types", - "CreateConnectionRequestContentInstagramStrategy": ".types", - "CreateConnectionRequestContentIp": ".types", - "CreateConnectionRequestContentIpStrategy": ".types", - "CreateConnectionRequestContentLine": ".types", - "CreateConnectionRequestContentLineStrategy": ".types", - "CreateConnectionRequestContentLinkedin": ".types", - "CreateConnectionRequestContentLinkedinStrategy": ".types", - "CreateConnectionRequestContentOAuth1": ".types", - "CreateConnectionRequestContentOAuth1Strategy": ".types", - "CreateConnectionRequestContentOAuth2": ".types", - "CreateConnectionRequestContentOAuth2Strategy": ".types", - "CreateConnectionRequestContentOffice365": ".types", - "CreateConnectionRequestContentOffice365Strategy": ".types", - "CreateConnectionRequestContentOidc": ".types", - "CreateConnectionRequestContentOidcStrategy": ".types", - "CreateConnectionRequestContentOkta": ".types", - "CreateConnectionRequestContentOktaStrategy": ".types", - "CreateConnectionRequestContentPaypal": ".types", - "CreateConnectionRequestContentPaypalSandbox": ".types", - "CreateConnectionRequestContentPaypalSandboxStrategy": ".types", - "CreateConnectionRequestContentPaypalStrategy": ".types", - "CreateConnectionRequestContentPingFederate": ".types", - "CreateConnectionRequestContentPingFederateStrategy": ".types", - "CreateConnectionRequestContentPlanningCenter": ".types", - "CreateConnectionRequestContentPlanningCenterStrategy": ".types", - "CreateConnectionRequestContentSalesforce": ".types", - "CreateConnectionRequestContentSalesforceCommunity": ".types", - "CreateConnectionRequestContentSalesforceCommunityStrategy": ".types", - "CreateConnectionRequestContentSalesforceSandbox": ".types", - "CreateConnectionRequestContentSalesforceSandboxStrategy": ".types", - "CreateConnectionRequestContentSalesforceStrategy": ".types", - "CreateConnectionRequestContentSaml": ".types", - "CreateConnectionRequestContentSamlStrategy": ".types", - "CreateConnectionRequestContentSharepoint": ".types", - "CreateConnectionRequestContentSharepointStrategy": ".types", - "CreateConnectionRequestContentShop": ".types", - "CreateConnectionRequestContentShopStrategy": ".types", - "CreateConnectionRequestContentShopify": ".types", - "CreateConnectionRequestContentShopifyStrategy": ".types", - "CreateConnectionRequestContentSms": ".types", - "CreateConnectionRequestContentSmsStrategy": ".types", - "CreateConnectionRequestContentSoundcloud": ".types", - "CreateConnectionRequestContentSoundcloudStrategy": ".types", - "CreateConnectionRequestContentThirtySevenSignals": ".types", - "CreateConnectionRequestContentThirtySevenSignalsStrategy": ".types", - "CreateConnectionRequestContentTwitter": ".types", - "CreateConnectionRequestContentTwitterStrategy": ".types", - "CreateConnectionRequestContentUntappd": ".types", - "CreateConnectionRequestContentUntappdStrategy": ".types", - "CreateConnectionRequestContentVkontakte": ".types", - "CreateConnectionRequestContentVkontakteStrategy": ".types", - "CreateConnectionRequestContentWeibo": ".types", - "CreateConnectionRequestContentWeiboStrategy": ".types", - "CreateConnectionRequestContentWindowsLive": ".types", - "CreateConnectionRequestContentWindowsLiveStrategy": ".types", - "CreateConnectionRequestContentWordpress": ".types", - "CreateConnectionRequestContentWordpressStrategy": ".types", - "CreateConnectionRequestContentYahoo": ".types", - "CreateConnectionRequestContentYahooStrategy": ".types", - "CreateConnectionRequestContentYandex": ".types", - "CreateConnectionRequestContentYandexStrategy": ".types", - "CreateConnectionResponseContent": ".types", - "CreateCrossAppAccessResourceApp": ".types", - "CreateCustomDomainResponseContent": ".types", - "CreateDirectoryProvisioningRequestContent": ".types", - "CreateDirectoryProvisioningResponseContent": ".types", - "CreateDirectorySynchronizationResponseContent": ".types", - "CreateEmailProviderResponseContent": ".types", - "CreateEmailTemplateResponseContent": ".types", - "CreateEncryptionKeyPublicWrappingResponseContent": ".types", - "CreateEncryptionKeyResponseContent": ".types", - "CreateEncryptionKeyType": ".types", - "CreateEventStreamActionRequestContent": ".types", - "CreateEventStreamEventBridgeRequestContent": ".types", - "CreateEventStreamRedeliveryResponseContent": ".types", - "CreateEventStreamResponseContent": ".types", - "CreateEventStreamTestEventResponseContent": ".types", - "CreateEventStreamWebHookRequestContent": ".types", - "CreateExperimentResponseContent": ".types", - "CreateExportUsersFields": ".types", - "CreateExportUsersResponseContent": ".types", - "CreateFeatureFlagParameters": ".types", - "CreateFeatureFlagResponseContent": ".types", - "CreateFlowResponseContent": ".types", - "CreateFlowsVaultConnectionActivecampaign": ".types", - "CreateFlowsVaultConnectionActivecampaignApiKey": ".types", - "CreateFlowsVaultConnectionActivecampaignUninitialized": ".types", - "CreateFlowsVaultConnectionAirtable": ".types", - "CreateFlowsVaultConnectionAirtableApiKey": ".types", - "CreateFlowsVaultConnectionAirtableUninitialized": ".types", - "CreateFlowsVaultConnectionAuth0": ".types", - "CreateFlowsVaultConnectionAuth0OauthApp": ".types", - "CreateFlowsVaultConnectionAuth0Uninitialized": ".types", - "CreateFlowsVaultConnectionBigquery": ".types", - "CreateFlowsVaultConnectionBigqueryJwt": ".types", - "CreateFlowsVaultConnectionBigqueryUninitialized": ".types", - "CreateFlowsVaultConnectionClearbit": ".types", - "CreateFlowsVaultConnectionClearbitApiKey": ".types", - "CreateFlowsVaultConnectionClearbitUninitialized": ".types", - "CreateFlowsVaultConnectionDocusign": ".types", - "CreateFlowsVaultConnectionDocusignOauthCode": ".types", - "CreateFlowsVaultConnectionDocusignUninitialized": ".types", - "CreateFlowsVaultConnectionGoogleSheets": ".types", - "CreateFlowsVaultConnectionGoogleSheetsOauthCode": ".types", - "CreateFlowsVaultConnectionGoogleSheetsUninitialized": ".types", - "CreateFlowsVaultConnectionHttp": ".types", - "CreateFlowsVaultConnectionHttpApiKey": ".types", - "CreateFlowsVaultConnectionHttpBasicAuth": ".types", - "CreateFlowsVaultConnectionHttpBearer": ".types", - "CreateFlowsVaultConnectionHttpOauthClientCredentials": ".types", - "CreateFlowsVaultConnectionHttpUninitialized": ".types", - "CreateFlowsVaultConnectionHubspot": ".types", - "CreateFlowsVaultConnectionHubspotApiKey": ".types", - "CreateFlowsVaultConnectionHubspotOauthCode": ".types", - "CreateFlowsVaultConnectionHubspotUninitialized": ".types", - "CreateFlowsVaultConnectionJwt": ".types", - "CreateFlowsVaultConnectionJwtJwt": ".types", - "CreateFlowsVaultConnectionJwtUninitialized": ".types", - "CreateFlowsVaultConnectionMailchimp": ".types", - "CreateFlowsVaultConnectionMailchimpApiKey": ".types", - "CreateFlowsVaultConnectionMailchimpOauthCode": ".types", - "CreateFlowsVaultConnectionMailchimpUninitialized": ".types", - "CreateFlowsVaultConnectionMailjet": ".types", - "CreateFlowsVaultConnectionMailjetApiKey": ".types", - "CreateFlowsVaultConnectionMailjetUninitialized": ".types", - "CreateFlowsVaultConnectionPipedrive": ".types", - "CreateFlowsVaultConnectionPipedriveOauthCode": ".types", - "CreateFlowsVaultConnectionPipedriveToken": ".types", - "CreateFlowsVaultConnectionPipedriveUninitialized": ".types", - "CreateFlowsVaultConnectionRequestContent": ".types", - "CreateFlowsVaultConnectionResponseContent": ".types", - "CreateFlowsVaultConnectionSalesforce": ".types", - "CreateFlowsVaultConnectionSalesforceOauthCode": ".types", - "CreateFlowsVaultConnectionSalesforceUninitialized": ".types", - "CreateFlowsVaultConnectionSendgrid": ".types", - "CreateFlowsVaultConnectionSendgridApiKey": ".types", - "CreateFlowsVaultConnectionSendgridUninitialized": ".types", - "CreateFlowsVaultConnectionSlack": ".types", - "CreateFlowsVaultConnectionSlackOauthCode": ".types", - "CreateFlowsVaultConnectionSlackUninitialized": ".types", - "CreateFlowsVaultConnectionSlackWebhook": ".types", - "CreateFlowsVaultConnectionStripe": ".types", - "CreateFlowsVaultConnectionStripeKeyPair": ".types", - "CreateFlowsVaultConnectionStripeOauthCode": ".types", - "CreateFlowsVaultConnectionStripeUninitialized": ".types", - "CreateFlowsVaultConnectionTelegram": ".types", - "CreateFlowsVaultConnectionTelegramToken": ".types", - "CreateFlowsVaultConnectionTelegramUninitialized": ".types", - "CreateFlowsVaultConnectionTwilio": ".types", - "CreateFlowsVaultConnectionTwilioApiKey": ".types", - "CreateFlowsVaultConnectionTwilioUninitialized": ".types", - "CreateFlowsVaultConnectionWhatsapp": ".types", - "CreateFlowsVaultConnectionWhatsappToken": ".types", - "CreateFlowsVaultConnectionWhatsappUninitialized": ".types", - "CreateFlowsVaultConnectionZapier": ".types", - "CreateFlowsVaultConnectionZapierUninitialized": ".types", - "CreateFlowsVaultConnectionZapierWebhook": ".types", - "CreateFormResponseContent": ".types", - "CreateGuardianEnrollmentTicketResponseContent": ".types", - "CreateHookResponseContent": ".types", - "CreateHookSecretRequestContent": ".types", - "CreateIdentityAssertionAuthorizationGrant": ".types", - "CreateImportUsersResponseContent": ".types", - "CreateKeysNetworkAclsResponseContent": ".types", - "CreateLogStreamDatadogRequestBody": ".types", - "CreateLogStreamEventBridgeRequestBody": ".types", - "CreateLogStreamEventGridRequestBody": ".types", - "CreateLogStreamHttpRequestBody": ".types", - "CreateLogStreamMixpanelRequestBody": ".types", - "CreateLogStreamRequestContent": ".types", - "CreateLogStreamResponseContent": ".types", - "CreateLogStreamSegmentRequestBody": ".types", - "CreateLogStreamSplunkRequestBody": ".types", - "CreateLogStreamSumoRequestBody": ".types", - "CreateOrganizationAllConnectionResponseContent": ".types", - "CreateOrganizationClientRequestItem": ".types", - "CreateOrganizationClientsResponseContent": ".types", - "CreateOrganizationDiscoveryDomainResponseContent": ".types", - "CreateOrganizationInvitationResponseContent": ".types", - "CreateOrganizationResponseContent": ".types", - "CreatePhoneProviderSendTestResponseContent": ".types", - "CreatePhoneTemplateResponseContent": ".types", - "CreatePhoneTemplateTestNotificationResponseContent": ".types", - "CreatePublicKeyDeviceCredentialResponseContent": ".types", - "CreateRateLimitPolicyResponseContent": ".types", - "CreateResourceServerResponseContent": ".types", - "CreateRoleResponseContent": ".types", - "CreateRuleResponseContent": ".types", - "CreateScimConfigurationRequestContent": ".types", - "CreateScimConfigurationResponseContent": ".types", - "CreateScimTokenResponseContent": ".types", - "CreateSegmentResponseContent": ".types", - "CreateSelfServiceProfileResponseContent": ".types", - "CreateSelfServiceProfileSsoTicketResponseContent": ".types", - "CreateTokenExchangeProfileResponseContent": ".types", - "CreateTokenQuota": ".types", - "CreateUserAttributeProfileResponseContent": ".types", - "CreateUserAuthenticationMethodResponseContent": ".types", - "CreateUserResponseContent": ".types", - "CreateVariationResponseContent": ".types", - "CreateVerifiableCredentialTemplateResponseContent": ".types", - "CreateVerificationEmailResponseContent": ".types", - "CreatedAuthenticationMethodTypeEnum": ".types", - "CreatedUserAuthenticationMethodTypeEnum": ".types", - "CredentialDeviceTypeEnum": ".types", - "CredentialId": ".types", - "CrossAppAccessRequestingApp": ".types", - "CrossAppAccessResourceApp": ".types", - "CrossAppAccessResourceAppStatusEnum": ".types", - "CspDirectives": ".types", - "CspFlag": ".types", - "CspFlags": ".types", - "CspPolicies": ".types", - "CspPolicy": ".types", - "CspPolicyMode": ".types", - "CspPolicyReporting": ".types", - "CspReportTo": ".types", - "CspReportToEndpoint": ".types", - "CspReportToEndpoints": ".types", - "CspReportingEndpoints": ".types", - "CspReportingInfrastructure": ".types", - "CustomDomain": ".types", - "CustomDomainCustomClientIpHeader": ".types", - "CustomDomainCustomClientIpHeaderEnum": ".types", "CustomDomainHeader": ".management_client", - "CustomDomainProvisioningTypeEnum": ".types", - "CustomDomainStatusFilterEnum": ".types", - "CustomDomainTlsPolicyEnum": ".types", - "CustomDomainTypeEnum": ".types", - "CustomDomainVerificationMethodEnum": ".types", - "CustomProviderConfiguration": ".types", - "CustomProviderCredentials": ".types", - "CustomProviderDeliveryMethodEnum": ".types", - "CustomSigningKeyAlgorithmEnum": ".types", - "CustomSigningKeyCurveEnum": ".types", - "CustomSigningKeyJwk": ".types", - "CustomSigningKeyOperationEnum": ".types", - "CustomSigningKeyTypeEnum": ".types", - "CustomSigningKeyUseEnum": ".types", - "DailyStats": ".types", "DefaultAioHttpClient": "._default_clients", "DefaultAsyncHttpxClient": "._default_clients", - "DefaultConfigEnum": ".types", - "DefaultMethodEmailIdentifierEnum": ".types", - "DefaultMethodPhoneNumberIdentifierEnum": ".types", - "DefaultTokenQuota": ".types", - "DeleteHookSecretRequestContent": ".types", - "DeleteUserIdentityResponseContent": ".types", - "DeleteUserIdentityResponseContentItem": ".types", - "DeployActionResponseContent": ".types", - "DeployActionVersionRequestContent": ".types", - "DeployActionVersionResponseContent": ".types", - "DeviceCredential": ".types", - "DeviceCredentialPublicKeyTypeEnum": ".types", - "DeviceCredentialTypeEnum": ".types", - "DirectoryProvisioning": ".types", - "DirectoryProvisioningMappingItem": ".types", - "DomainCertificate": ".types", - "DomainCertificateAuthorityEnum": ".types", - "DomainCertificateStatusEnum": ".types", - "DomainMetadata": ".types", - "DomainVerification": ".types", - "DomainVerificationMethod": ".types", - "DomainVerificationMethodNameEnum": ".types", - "DomainVerificationStatusEnum": ".types", - "EmailAttribute": ".types", - "EmailAttributeIdentifier": ".types", - "EmailMailgunRegionEnum": ".types", - "EmailProviderCredentials": ".types", - "EmailProviderCredentialsSchema": ".types", - "EmailProviderCredentialsSchemaAccessKeyId": ".types", - "EmailProviderCredentialsSchemaApiKey": ".types", - "EmailProviderCredentialsSchemaClientId": ".types", - "EmailProviderCredentialsSchemaConnectionString": ".types", - "EmailProviderCredentialsSchemaSmtpHost": ".types", - "EmailProviderCredentialsSchemaThree": ".types", - "EmailProviderCredentialsSchemaZero": ".types", - "EmailProviderNameEnum": ".types", - "EmailProviderSettings": ".types", - "EmailSmtpHost": ".types", - "EmailSparkPostRegionEnum": ".types", - "EmailSpecificProviderSettingsWithAdditionalProperties": ".types", - "EmailTemplateNameEnum": ".types", - "EnabledFeaturesEnum": ".types", - "EncryptionKey": ".types", - "EncryptionKeyPublicWrappingAlgorithm": ".types", - "EncryptionKeyState": ".types", - "EncryptionKeyType": ".types", - "EventStreamActionConfiguration": ".types", - "EventStreamActionDestination": ".types", - "EventStreamActionDestinationTypeEnum": ".types", - "EventStreamActionResponseContent": ".types", - "EventStreamCloudEvent": ".types", - "EventStreamCloudEventA0PurposeEnum": ".types", - "EventStreamCloudEventConnectionCreated": ".types", - "EventStreamCloudEventConnectionCreatedCloudEvent": ".types", - "EventStreamCloudEventConnectionCreatedCloudEventTypeEnum": ".types", - "EventStreamCloudEventConnectionCreatedData": ".types", - "EventStreamCloudEventConnectionCreatedObject": ".types", - "EventStreamCloudEventConnectionCreatedObject0": ".types", - "EventStreamCloudEventConnectionCreatedObject0Authentication": ".types", - "EventStreamCloudEventConnectionCreatedObject0ConnectedAccounts": ".types", - "EventStreamCloudEventConnectionCreatedObject0Metadata": ".types", - "EventStreamCloudEventConnectionCreatedObject0Options": ".types", - "EventStreamCloudEventConnectionCreatedObject0OptionsAttributeMap": ".types", - "EventStreamCloudEventConnectionCreatedObject0OptionsAttributeMapAttributes": ".types", - "EventStreamCloudEventConnectionCreatedObject0OptionsAttributeMapMappingModeEnum": ".types", - "EventStreamCloudEventConnectionCreatedObject0OptionsConnectionSettings": ".types", - "EventStreamCloudEventConnectionCreatedObject0OptionsConnectionSettingsPkceEnum": ".types", - "EventStreamCloudEventConnectionCreatedObject0OptionsDpopSigningAlgEnum": ".types", - "EventStreamCloudEventConnectionCreatedObject0OptionsFederatedConnectionsAccessTokens": ".types", - "EventStreamCloudEventConnectionCreatedObject0OptionsIdTokenSignedResponseAlgsItemEnum": ".types", - "EventStreamCloudEventConnectionCreatedObject0OptionsOidcMetadata": ".types", - "EventStreamCloudEventConnectionCreatedObject0OptionsSchemaVersionEnum": ".types", - "EventStreamCloudEventConnectionCreatedObject0OptionsSetUserRootAttributesEnum": ".types", - "EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointAuthMethodEnum": ".types", - "EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointAuthSigningAlgEnum": ".types", - "EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointJwtcaAudFormatEnum": ".types", - "EventStreamCloudEventConnectionCreatedObject0OptionsTypeEnum": ".types", - "EventStreamCloudEventConnectionCreatedObject0OptionsUpstreamParams": ".types", - "EventStreamCloudEventConnectionCreatedObject0StrategyEnum": ".types", - "EventStreamCloudEventConnectionCreatedObject1": ".types", - "EventStreamCloudEventConnectionCreatedObject1Authentication": ".types", - "EventStreamCloudEventConnectionCreatedObject1ConnectedAccounts": ".types", - "EventStreamCloudEventConnectionCreatedObject1Metadata": ".types", - "EventStreamCloudEventConnectionCreatedObject1Options": ".types", - "EventStreamCloudEventConnectionCreatedObject1OptionsAttributeMap": ".types", - "EventStreamCloudEventConnectionCreatedObject1OptionsAttributeMapAttributes": ".types", - "EventStreamCloudEventConnectionCreatedObject1OptionsAttributeMapMappingModeEnum": ".types", - "EventStreamCloudEventConnectionCreatedObject1OptionsConnectionSettings": ".types", - "EventStreamCloudEventConnectionCreatedObject1OptionsConnectionSettingsPkceEnum": ".types", - "EventStreamCloudEventConnectionCreatedObject1OptionsDpopSigningAlgEnum": ".types", - "EventStreamCloudEventConnectionCreatedObject1OptionsFederatedConnectionsAccessTokens": ".types", - "EventStreamCloudEventConnectionCreatedObject1OptionsIdTokenSignedResponseAlgsItemEnum": ".types", - "EventStreamCloudEventConnectionCreatedObject1OptionsOidcMetadata": ".types", - "EventStreamCloudEventConnectionCreatedObject1OptionsSchemaVersionEnum": ".types", - "EventStreamCloudEventConnectionCreatedObject1OptionsSetUserRootAttributesEnum": ".types", - "EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointAuthMethodEnum": ".types", - "EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointAuthSigningAlgEnum": ".types", - "EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointJwtcaAudFormatEnum": ".types", - "EventStreamCloudEventConnectionCreatedObject1OptionsTypeEnum": ".types", - "EventStreamCloudEventConnectionCreatedObject1OptionsUpstreamParams": ".types", - "EventStreamCloudEventConnectionCreatedObject1StrategyEnum": ".types", - "EventStreamCloudEventConnectionCreatedObject2": ".types", - "EventStreamCloudEventConnectionCreatedObject2Authentication": ".types", - "EventStreamCloudEventConnectionCreatedObject2ConnectedAccounts": ".types", - "EventStreamCloudEventConnectionCreatedObject2Metadata": ".types", - "EventStreamCloudEventConnectionCreatedObject2Options": ".types", - "EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettings": ".types", - "EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum": ".types", - "EventStreamCloudEventConnectionCreatedObject2OptionsDigestAlgorithmEnum": ".types", - "EventStreamCloudEventConnectionCreatedObject2OptionsFieldsMap": ".types", - "EventStreamCloudEventConnectionCreatedObject2OptionsIdpinitiated": ".types", - "EventStreamCloudEventConnectionCreatedObject2OptionsIdpinitiatedClientProtocolEnum": ".types", - "EventStreamCloudEventConnectionCreatedObject2OptionsOidcMetadata": ".types", - "EventStreamCloudEventConnectionCreatedObject2OptionsProtocolBindingEnum": ".types", - "EventStreamCloudEventConnectionCreatedObject2OptionsSetUserRootAttributesEnum": ".types", - "EventStreamCloudEventConnectionCreatedObject2OptionsSignatureAlgorithmEnum": ".types", - "EventStreamCloudEventConnectionCreatedObject2OptionsSubject": ".types", - "EventStreamCloudEventConnectionCreatedObject2OptionsUpstreamParams": ".types", - "EventStreamCloudEventConnectionCreatedObject2StrategyEnum": ".types", - "EventStreamCloudEventConnectionCreatedObject3": ".types", - "EventStreamCloudEventConnectionCreatedObject3Authentication": ".types", - "EventStreamCloudEventConnectionCreatedObject3ConnectedAccounts": ".types", - "EventStreamCloudEventConnectionCreatedObject3Metadata": ".types", - "EventStreamCloudEventConnectionCreatedObject3Options": ".types", - "EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettings": ".types", - "EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum": ".types", - "EventStreamCloudEventConnectionCreatedObject3OptionsDigestAlgorithmEnum": ".types", - "EventStreamCloudEventConnectionCreatedObject3OptionsIdpinitiated": ".types", - "EventStreamCloudEventConnectionCreatedObject3OptionsIdpinitiatedClientProtocolEnum": ".types", - "EventStreamCloudEventConnectionCreatedObject3OptionsProtocolBindingEnum": ".types", - "EventStreamCloudEventConnectionCreatedObject3OptionsSetUserRootAttributesEnum": ".types", - "EventStreamCloudEventConnectionCreatedObject3OptionsSignatureAlgorithmEnum": ".types", - "EventStreamCloudEventConnectionCreatedObject3OptionsSubject": ".types", - "EventStreamCloudEventConnectionCreatedObject3OptionsUpstreamParams": ".types", - "EventStreamCloudEventConnectionCreatedObject3StrategyEnum": ".types", - "EventStreamCloudEventConnectionCreatedObject4": ".types", - "EventStreamCloudEventConnectionCreatedObject4Authentication": ".types", - "EventStreamCloudEventConnectionCreatedObject4ConnectedAccounts": ".types", - "EventStreamCloudEventConnectionCreatedObject4Metadata": ".types", - "EventStreamCloudEventConnectionCreatedObject4Options": ".types", - "EventStreamCloudEventConnectionCreatedObject4OptionsSetUserRootAttributesEnum": ".types", - "EventStreamCloudEventConnectionCreatedObject4OptionsShouldTrustEmailVerifiedConnectionEnum": ".types", - "EventStreamCloudEventConnectionCreatedObject4OptionsUpstreamParams": ".types", - "EventStreamCloudEventConnectionCreatedObject4StrategyEnum": ".types", - "EventStreamCloudEventConnectionCreatedObject5": ".types", - "EventStreamCloudEventConnectionCreatedObject5Authentication": ".types", - "EventStreamCloudEventConnectionCreatedObject5ConnectedAccounts": ".types", - "EventStreamCloudEventConnectionCreatedObject5Metadata": ".types", - "EventStreamCloudEventConnectionCreatedObject5Options": ".types", - "EventStreamCloudEventConnectionCreatedObject5OptionsSetUserRootAttributesEnum": ".types", - "EventStreamCloudEventConnectionCreatedObject5OptionsUpstreamParams": ".types", - "EventStreamCloudEventConnectionCreatedObject5StrategyEnum": ".types", - "EventStreamCloudEventConnectionCreatedObject6": ".types", - "EventStreamCloudEventConnectionCreatedObject6Authentication": ".types", - "EventStreamCloudEventConnectionCreatedObject6ConnectedAccounts": ".types", - "EventStreamCloudEventConnectionCreatedObject6Metadata": ".types", - "EventStreamCloudEventConnectionCreatedObject6Options": ".types", - "EventStreamCloudEventConnectionCreatedObject6OptionsFederatedConnectionsAccessTokens": ".types", - "EventStreamCloudEventConnectionCreatedObject6OptionsSetUserRootAttributesEnum": ".types", - "EventStreamCloudEventConnectionCreatedObject6OptionsUpstreamParams": ".types", - "EventStreamCloudEventConnectionCreatedObject6StrategyEnum": ".types", - "EventStreamCloudEventConnectionCreatedObject7": ".types", - "EventStreamCloudEventConnectionCreatedObject7Authentication": ".types", - "EventStreamCloudEventConnectionCreatedObject7ConnectedAccounts": ".types", - "EventStreamCloudEventConnectionCreatedObject7Metadata": ".types", - "EventStreamCloudEventConnectionCreatedObject7Options": ".types", - "EventStreamCloudEventConnectionCreatedObject7OptionsFederatedConnectionsAccessTokens": ".types", - "EventStreamCloudEventConnectionCreatedObject7OptionsIdentityApiEnum": ".types", - "EventStreamCloudEventConnectionCreatedObject7OptionsSetUserRootAttributesEnum": ".types", - "EventStreamCloudEventConnectionCreatedObject7OptionsShouldTrustEmailVerifiedConnectionEnum": ".types", - "EventStreamCloudEventConnectionCreatedObject7OptionsTenantDomainOne": ".types", - "EventStreamCloudEventConnectionCreatedObject7OptionsUpstreamParams": ".types", - "EventStreamCloudEventConnectionCreatedObject7OptionsUseridAttributeEnum": ".types", - "EventStreamCloudEventConnectionCreatedObject7OptionsWaadProtocolEnum": ".types", - "EventStreamCloudEventConnectionCreatedObject7StrategyEnum": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject0": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject0Authentication": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject0ConnectedAccounts": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject0Metadata": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject0Options": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject0OptionsAttributeMap": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject0OptionsAttributeMapAttributes": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject0OptionsAttributeMapMappingModeEnum": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject0OptionsConnectionSettings": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject0OptionsConnectionSettingsPkceEnum": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject0OptionsDpopSigningAlgEnum": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject0OptionsFederatedConnectionsAccessTokens": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject0OptionsOidcMetadata": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject0OptionsSchemaVersionEnum": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject0OptionsSetUserRootAttributesEnum": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTokenEndpointAuthMethodEnum": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTokenEndpointJwtcaAudFormatEnum": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTypeEnum": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject0OptionsUpstreamParams": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject0StrategyEnum": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject1": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject1Authentication": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject1ConnectedAccounts": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject1Metadata": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject1Options": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject1OptionsAttributeMap": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject1OptionsAttributeMapAttributes": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject1OptionsAttributeMapMappingModeEnum": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject1OptionsConnectionSettings": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject1OptionsConnectionSettingsPkceEnum": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject1OptionsDpopSigningAlgEnum": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject1OptionsFederatedConnectionsAccessTokens": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject1OptionsOidcMetadata": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject1OptionsSchemaVersionEnum": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject1OptionsSetUserRootAttributesEnum": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTokenEndpointAuthMethodEnum": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTokenEndpointJwtcaAudFormatEnum": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTypeEnum": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject1OptionsUpstreamParams": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject1StrategyEnum": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject2": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject2Authentication": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject2ConnectedAccounts": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject2Metadata": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject2Options": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject2OptionsAssertionDecryptionSettings": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject2OptionsDigestAlgorithmEnum": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject2OptionsFieldsMap": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject2OptionsIdpinitiated": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject2OptionsIdpinitiatedClientProtocolEnum": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject2OptionsOidcMetadata": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject2OptionsProtocolBindingEnum": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject2OptionsSetUserRootAttributesEnum": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject2OptionsSignatureAlgorithmEnum": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject2OptionsSubject": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject2OptionsUpstreamParams": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject2StrategyEnum": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject3": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject3Authentication": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject3ConnectedAccounts": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject3Metadata": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject3Options": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject3OptionsAssertionDecryptionSettings": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject3OptionsDigestAlgorithmEnum": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject3OptionsIdpinitiated": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject3OptionsIdpinitiatedClientProtocolEnum": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject3OptionsProtocolBindingEnum": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject3OptionsSetUserRootAttributesEnum": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject3OptionsSignatureAlgorithmEnum": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject3OptionsSubject": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject3OptionsUpstreamParams": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject3StrategyEnum": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject4": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject4Authentication": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject4ConnectedAccounts": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject4Metadata": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject4Options": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject4OptionsSetUserRootAttributesEnum": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject4OptionsShouldTrustEmailVerifiedConnectionEnum": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject4OptionsUpstreamParams": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject4StrategyEnum": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject5": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject5Authentication": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject5ConnectedAccounts": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject5Metadata": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject5Options": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject5OptionsSetUserRootAttributesEnum": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject5OptionsUpstreamParams": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject5StrategyEnum": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject6": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject6Authentication": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject6ConnectedAccounts": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject6Metadata": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject6Options": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject6OptionsFederatedConnectionsAccessTokens": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject6OptionsSetUserRootAttributesEnum": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject6OptionsUpstreamParams": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject6StrategyEnum": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject7": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject7Authentication": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject7ConnectedAccounts": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject7Metadata": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject7Options": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject7OptionsFederatedConnectionsAccessTokens": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject7OptionsIdentityApiEnum": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject7OptionsSetUserRootAttributesEnum": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject7OptionsTenantDomainOne": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject7OptionsUpstreamParams": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject7OptionsUseridAttributeEnum": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject7OptionsWaadProtocolEnum": ".types", - "EventStreamCloudEventConnectionCreatedPreviousObject7StrategyEnum": ".types", - "EventStreamCloudEventConnectionCreatedTypeEnum": ".types", - "EventStreamCloudEventConnectionDeleted": ".types", - "EventStreamCloudEventConnectionDeletedCloudEvent": ".types", - "EventStreamCloudEventConnectionDeletedCloudEventTypeEnum": ".types", - "EventStreamCloudEventConnectionDeletedData": ".types", - "EventStreamCloudEventConnectionDeletedObject": ".types", - "EventStreamCloudEventConnectionDeletedObject0": ".types", - "EventStreamCloudEventConnectionDeletedObject0Authentication": ".types", - "EventStreamCloudEventConnectionDeletedObject0ConnectedAccounts": ".types", - "EventStreamCloudEventConnectionDeletedObject0Metadata": ".types", - "EventStreamCloudEventConnectionDeletedObject0Options": ".types", - "EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMap": ".types", - "EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMapAttributes": ".types", - "EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMapMappingModeEnum": ".types", - "EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettings": ".types", - "EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettingsPkceEnum": ".types", - "EventStreamCloudEventConnectionDeletedObject0OptionsDpopSigningAlgEnum": ".types", - "EventStreamCloudEventConnectionDeletedObject0OptionsFederatedConnectionsAccessTokens": ".types", - "EventStreamCloudEventConnectionDeletedObject0OptionsIdTokenSignedResponseAlgsItemEnum": ".types", - "EventStreamCloudEventConnectionDeletedObject0OptionsOidcMetadata": ".types", - "EventStreamCloudEventConnectionDeletedObject0OptionsSchemaVersionEnum": ".types", - "EventStreamCloudEventConnectionDeletedObject0OptionsSetUserRootAttributesEnum": ".types", - "EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthMethodEnum": ".types", - "EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthSigningAlgEnum": ".types", - "EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointJwtcaAudFormatEnum": ".types", - "EventStreamCloudEventConnectionDeletedObject0OptionsTypeEnum": ".types", - "EventStreamCloudEventConnectionDeletedObject0OptionsUpstreamParams": ".types", - "EventStreamCloudEventConnectionDeletedObject0StrategyEnum": ".types", - "EventStreamCloudEventConnectionDeletedObject1": ".types", - "EventStreamCloudEventConnectionDeletedObject1Authentication": ".types", - "EventStreamCloudEventConnectionDeletedObject1ConnectedAccounts": ".types", - "EventStreamCloudEventConnectionDeletedObject1Metadata": ".types", - "EventStreamCloudEventConnectionDeletedObject1Options": ".types", - "EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMap": ".types", - "EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMapAttributes": ".types", - "EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMapMappingModeEnum": ".types", - "EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettings": ".types", - "EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettingsPkceEnum": ".types", - "EventStreamCloudEventConnectionDeletedObject1OptionsDpopSigningAlgEnum": ".types", - "EventStreamCloudEventConnectionDeletedObject1OptionsFederatedConnectionsAccessTokens": ".types", - "EventStreamCloudEventConnectionDeletedObject1OptionsIdTokenSignedResponseAlgsItemEnum": ".types", - "EventStreamCloudEventConnectionDeletedObject1OptionsOidcMetadata": ".types", - "EventStreamCloudEventConnectionDeletedObject1OptionsSchemaVersionEnum": ".types", - "EventStreamCloudEventConnectionDeletedObject1OptionsSetUserRootAttributesEnum": ".types", - "EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthMethodEnum": ".types", - "EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthSigningAlgEnum": ".types", - "EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointJwtcaAudFormatEnum": ".types", - "EventStreamCloudEventConnectionDeletedObject1OptionsTypeEnum": ".types", - "EventStreamCloudEventConnectionDeletedObject1OptionsUpstreamParams": ".types", - "EventStreamCloudEventConnectionDeletedObject1StrategyEnum": ".types", - "EventStreamCloudEventConnectionDeletedObject2": ".types", - "EventStreamCloudEventConnectionDeletedObject2Authentication": ".types", - "EventStreamCloudEventConnectionDeletedObject2ConnectedAccounts": ".types", - "EventStreamCloudEventConnectionDeletedObject2Metadata": ".types", - "EventStreamCloudEventConnectionDeletedObject2Options": ".types", - "EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettings": ".types", - "EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum": ".types", - "EventStreamCloudEventConnectionDeletedObject2OptionsDigestAlgorithmEnum": ".types", - "EventStreamCloudEventConnectionDeletedObject2OptionsFieldsMap": ".types", - "EventStreamCloudEventConnectionDeletedObject2OptionsIdpinitiated": ".types", - "EventStreamCloudEventConnectionDeletedObject2OptionsIdpinitiatedClientProtocolEnum": ".types", - "EventStreamCloudEventConnectionDeletedObject2OptionsOidcMetadata": ".types", - "EventStreamCloudEventConnectionDeletedObject2OptionsProtocolBindingEnum": ".types", - "EventStreamCloudEventConnectionDeletedObject2OptionsSetUserRootAttributesEnum": ".types", - "EventStreamCloudEventConnectionDeletedObject2OptionsSignatureAlgorithmEnum": ".types", - "EventStreamCloudEventConnectionDeletedObject2OptionsSubject": ".types", - "EventStreamCloudEventConnectionDeletedObject2OptionsUpstreamParams": ".types", - "EventStreamCloudEventConnectionDeletedObject2StrategyEnum": ".types", - "EventStreamCloudEventConnectionDeletedObject3": ".types", - "EventStreamCloudEventConnectionDeletedObject3Authentication": ".types", - "EventStreamCloudEventConnectionDeletedObject3ConnectedAccounts": ".types", - "EventStreamCloudEventConnectionDeletedObject3Metadata": ".types", - "EventStreamCloudEventConnectionDeletedObject3Options": ".types", - "EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettings": ".types", - "EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum": ".types", - "EventStreamCloudEventConnectionDeletedObject3OptionsDigestAlgorithmEnum": ".types", - "EventStreamCloudEventConnectionDeletedObject3OptionsIdpinitiated": ".types", - "EventStreamCloudEventConnectionDeletedObject3OptionsIdpinitiatedClientProtocolEnum": ".types", - "EventStreamCloudEventConnectionDeletedObject3OptionsProtocolBindingEnum": ".types", - "EventStreamCloudEventConnectionDeletedObject3OptionsSetUserRootAttributesEnum": ".types", - "EventStreamCloudEventConnectionDeletedObject3OptionsSignatureAlgorithmEnum": ".types", - "EventStreamCloudEventConnectionDeletedObject3OptionsSubject": ".types", - "EventStreamCloudEventConnectionDeletedObject3OptionsUpstreamParams": ".types", - "EventStreamCloudEventConnectionDeletedObject3StrategyEnum": ".types", - "EventStreamCloudEventConnectionDeletedObject4": ".types", - "EventStreamCloudEventConnectionDeletedObject4Authentication": ".types", - "EventStreamCloudEventConnectionDeletedObject4ConnectedAccounts": ".types", - "EventStreamCloudEventConnectionDeletedObject4Metadata": ".types", - "EventStreamCloudEventConnectionDeletedObject4Options": ".types", - "EventStreamCloudEventConnectionDeletedObject4OptionsSetUserRootAttributesEnum": ".types", - "EventStreamCloudEventConnectionDeletedObject4OptionsShouldTrustEmailVerifiedConnectionEnum": ".types", - "EventStreamCloudEventConnectionDeletedObject4OptionsUpstreamParams": ".types", - "EventStreamCloudEventConnectionDeletedObject4StrategyEnum": ".types", - "EventStreamCloudEventConnectionDeletedObject5": ".types", - "EventStreamCloudEventConnectionDeletedObject5Authentication": ".types", - "EventStreamCloudEventConnectionDeletedObject5ConnectedAccounts": ".types", - "EventStreamCloudEventConnectionDeletedObject5Metadata": ".types", - "EventStreamCloudEventConnectionDeletedObject5Options": ".types", - "EventStreamCloudEventConnectionDeletedObject5OptionsSetUserRootAttributesEnum": ".types", - "EventStreamCloudEventConnectionDeletedObject5OptionsUpstreamParams": ".types", - "EventStreamCloudEventConnectionDeletedObject5StrategyEnum": ".types", - "EventStreamCloudEventConnectionDeletedObject6": ".types", - "EventStreamCloudEventConnectionDeletedObject6Authentication": ".types", - "EventStreamCloudEventConnectionDeletedObject6ConnectedAccounts": ".types", - "EventStreamCloudEventConnectionDeletedObject6Metadata": ".types", - "EventStreamCloudEventConnectionDeletedObject6Options": ".types", - "EventStreamCloudEventConnectionDeletedObject6OptionsFederatedConnectionsAccessTokens": ".types", - "EventStreamCloudEventConnectionDeletedObject6OptionsSetUserRootAttributesEnum": ".types", - "EventStreamCloudEventConnectionDeletedObject6OptionsUpstreamParams": ".types", - "EventStreamCloudEventConnectionDeletedObject6StrategyEnum": ".types", - "EventStreamCloudEventConnectionDeletedObject7": ".types", - "EventStreamCloudEventConnectionDeletedObject7Authentication": ".types", - "EventStreamCloudEventConnectionDeletedObject7ConnectedAccounts": ".types", - "EventStreamCloudEventConnectionDeletedObject7Metadata": ".types", - "EventStreamCloudEventConnectionDeletedObject7Options": ".types", - "EventStreamCloudEventConnectionDeletedObject7OptionsFederatedConnectionsAccessTokens": ".types", - "EventStreamCloudEventConnectionDeletedObject7OptionsIdentityApiEnum": ".types", - "EventStreamCloudEventConnectionDeletedObject7OptionsSetUserRootAttributesEnum": ".types", - "EventStreamCloudEventConnectionDeletedObject7OptionsShouldTrustEmailVerifiedConnectionEnum": ".types", - "EventStreamCloudEventConnectionDeletedObject7OptionsTenantDomainOne": ".types", - "EventStreamCloudEventConnectionDeletedObject7OptionsUpstreamParams": ".types", - "EventStreamCloudEventConnectionDeletedObject7OptionsUseridAttributeEnum": ".types", - "EventStreamCloudEventConnectionDeletedObject7OptionsWaadProtocolEnum": ".types", - "EventStreamCloudEventConnectionDeletedObject7StrategyEnum": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject0": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject0Authentication": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject0ConnectedAccounts": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject0Metadata": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject0Options": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject0OptionsAttributeMap": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject0OptionsAttributeMapAttributes": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject0OptionsAttributeMapMappingModeEnum": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject0OptionsConnectionSettings": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject0OptionsConnectionSettingsPkceEnum": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject0OptionsDpopSigningAlgEnum": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject0OptionsFederatedConnectionsAccessTokens": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject0OptionsOidcMetadata": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject0OptionsSchemaVersionEnum": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject0OptionsSetUserRootAttributesEnum": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTokenEndpointAuthMethodEnum": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTokenEndpointJwtcaAudFormatEnum": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTypeEnum": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject0OptionsUpstreamParams": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject0StrategyEnum": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject1": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject1Authentication": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject1ConnectedAccounts": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject1Metadata": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject1Options": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject1OptionsAttributeMap": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject1OptionsAttributeMapAttributes": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject1OptionsAttributeMapMappingModeEnum": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject1OptionsConnectionSettings": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject1OptionsConnectionSettingsPkceEnum": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject1OptionsDpopSigningAlgEnum": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject1OptionsFederatedConnectionsAccessTokens": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject1OptionsOidcMetadata": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject1OptionsSchemaVersionEnum": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject1OptionsSetUserRootAttributesEnum": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTokenEndpointAuthMethodEnum": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTokenEndpointJwtcaAudFormatEnum": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTypeEnum": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject1OptionsUpstreamParams": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject1StrategyEnum": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject2": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject2Authentication": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject2ConnectedAccounts": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject2Metadata": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject2Options": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject2OptionsAssertionDecryptionSettings": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject2OptionsDigestAlgorithmEnum": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject2OptionsFieldsMap": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject2OptionsIdpinitiated": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject2OptionsIdpinitiatedClientProtocolEnum": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject2OptionsOidcMetadata": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject2OptionsProtocolBindingEnum": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject2OptionsSetUserRootAttributesEnum": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject2OptionsSignatureAlgorithmEnum": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject2OptionsSubject": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject2OptionsUpstreamParams": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject2StrategyEnum": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject3": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject3Authentication": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject3ConnectedAccounts": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject3Metadata": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject3Options": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject3OptionsAssertionDecryptionSettings": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject3OptionsDigestAlgorithmEnum": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject3OptionsIdpinitiated": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject3OptionsIdpinitiatedClientProtocolEnum": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject3OptionsProtocolBindingEnum": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject3OptionsSetUserRootAttributesEnum": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject3OptionsSignatureAlgorithmEnum": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject3OptionsSubject": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject3OptionsUpstreamParams": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject3StrategyEnum": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject4": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject4Authentication": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject4ConnectedAccounts": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject4Metadata": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject4Options": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject4OptionsSetUserRootAttributesEnum": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject4OptionsShouldTrustEmailVerifiedConnectionEnum": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject4OptionsUpstreamParams": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject4StrategyEnum": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject5": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject5Authentication": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject5ConnectedAccounts": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject5Metadata": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject5Options": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject5OptionsSetUserRootAttributesEnum": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject5OptionsUpstreamParams": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject5StrategyEnum": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject6": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject6Authentication": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject6ConnectedAccounts": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject6Metadata": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject6Options": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject6OptionsFederatedConnectionsAccessTokens": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject6OptionsSetUserRootAttributesEnum": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject6OptionsUpstreamParams": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject6StrategyEnum": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject7": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject7Authentication": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject7ConnectedAccounts": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject7Metadata": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject7Options": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject7OptionsFederatedConnectionsAccessTokens": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject7OptionsIdentityApiEnum": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject7OptionsSetUserRootAttributesEnum": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject7OptionsTenantDomainOne": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject7OptionsUpstreamParams": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject7OptionsUseridAttributeEnum": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject7OptionsWaadProtocolEnum": ".types", - "EventStreamCloudEventConnectionDeletedPreviousObject7StrategyEnum": ".types", - "EventStreamCloudEventConnectionDeletedTypeEnum": ".types", - "EventStreamCloudEventConnectionUpdated": ".types", - "EventStreamCloudEventConnectionUpdatedCloudEvent": ".types", - "EventStreamCloudEventConnectionUpdatedCloudEventTypeEnum": ".types", - "EventStreamCloudEventConnectionUpdatedData": ".types", - "EventStreamCloudEventConnectionUpdatedObject": ".types", - "EventStreamCloudEventConnectionUpdatedObject0": ".types", - "EventStreamCloudEventConnectionUpdatedObject0Authentication": ".types", - "EventStreamCloudEventConnectionUpdatedObject0ConnectedAccounts": ".types", - "EventStreamCloudEventConnectionUpdatedObject0Metadata": ".types", - "EventStreamCloudEventConnectionUpdatedObject0Options": ".types", - "EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMap": ".types", - "EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMapAttributes": ".types", - "EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMapMappingModeEnum": ".types", - "EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettings": ".types", - "EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettingsPkceEnum": ".types", - "EventStreamCloudEventConnectionUpdatedObject0OptionsDpopSigningAlgEnum": ".types", - "EventStreamCloudEventConnectionUpdatedObject0OptionsFederatedConnectionsAccessTokens": ".types", - "EventStreamCloudEventConnectionUpdatedObject0OptionsIdTokenSignedResponseAlgsItemEnum": ".types", - "EventStreamCloudEventConnectionUpdatedObject0OptionsOidcMetadata": ".types", - "EventStreamCloudEventConnectionUpdatedObject0OptionsSchemaVersionEnum": ".types", - "EventStreamCloudEventConnectionUpdatedObject0OptionsSetUserRootAttributesEnum": ".types", - "EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthMethodEnum": ".types", - "EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthSigningAlgEnum": ".types", - "EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointJwtcaAudFormatEnum": ".types", - "EventStreamCloudEventConnectionUpdatedObject0OptionsTypeEnum": ".types", - "EventStreamCloudEventConnectionUpdatedObject0OptionsUpstreamParams": ".types", - "EventStreamCloudEventConnectionUpdatedObject0StrategyEnum": ".types", - "EventStreamCloudEventConnectionUpdatedObject1": ".types", - "EventStreamCloudEventConnectionUpdatedObject1Authentication": ".types", - "EventStreamCloudEventConnectionUpdatedObject1ConnectedAccounts": ".types", - "EventStreamCloudEventConnectionUpdatedObject1Metadata": ".types", - "EventStreamCloudEventConnectionUpdatedObject1Options": ".types", - "EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMap": ".types", - "EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMapAttributes": ".types", - "EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMapMappingModeEnum": ".types", - "EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettings": ".types", - "EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettingsPkceEnum": ".types", - "EventStreamCloudEventConnectionUpdatedObject1OptionsDpopSigningAlgEnum": ".types", - "EventStreamCloudEventConnectionUpdatedObject1OptionsFederatedConnectionsAccessTokens": ".types", - "EventStreamCloudEventConnectionUpdatedObject1OptionsIdTokenSignedResponseAlgsItemEnum": ".types", - "EventStreamCloudEventConnectionUpdatedObject1OptionsOidcMetadata": ".types", - "EventStreamCloudEventConnectionUpdatedObject1OptionsSchemaVersionEnum": ".types", - "EventStreamCloudEventConnectionUpdatedObject1OptionsSetUserRootAttributesEnum": ".types", - "EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthMethodEnum": ".types", - "EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthSigningAlgEnum": ".types", - "EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointJwtcaAudFormatEnum": ".types", - "EventStreamCloudEventConnectionUpdatedObject1OptionsTypeEnum": ".types", - "EventStreamCloudEventConnectionUpdatedObject1OptionsUpstreamParams": ".types", - "EventStreamCloudEventConnectionUpdatedObject1StrategyEnum": ".types", - "EventStreamCloudEventConnectionUpdatedObject2": ".types", - "EventStreamCloudEventConnectionUpdatedObject2Authentication": ".types", - "EventStreamCloudEventConnectionUpdatedObject2ConnectedAccounts": ".types", - "EventStreamCloudEventConnectionUpdatedObject2Metadata": ".types", - "EventStreamCloudEventConnectionUpdatedObject2Options": ".types", - "EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettings": ".types", - "EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum": ".types", - "EventStreamCloudEventConnectionUpdatedObject2OptionsDigestAlgorithmEnum": ".types", - "EventStreamCloudEventConnectionUpdatedObject2OptionsFieldsMap": ".types", - "EventStreamCloudEventConnectionUpdatedObject2OptionsIdpinitiated": ".types", - "EventStreamCloudEventConnectionUpdatedObject2OptionsIdpinitiatedClientProtocolEnum": ".types", - "EventStreamCloudEventConnectionUpdatedObject2OptionsOidcMetadata": ".types", - "EventStreamCloudEventConnectionUpdatedObject2OptionsProtocolBindingEnum": ".types", - "EventStreamCloudEventConnectionUpdatedObject2OptionsSetUserRootAttributesEnum": ".types", - "EventStreamCloudEventConnectionUpdatedObject2OptionsSignatureAlgorithmEnum": ".types", - "EventStreamCloudEventConnectionUpdatedObject2OptionsSubject": ".types", - "EventStreamCloudEventConnectionUpdatedObject2OptionsUpstreamParams": ".types", - "EventStreamCloudEventConnectionUpdatedObject2StrategyEnum": ".types", - "EventStreamCloudEventConnectionUpdatedObject3": ".types", - "EventStreamCloudEventConnectionUpdatedObject3Authentication": ".types", - "EventStreamCloudEventConnectionUpdatedObject3ConnectedAccounts": ".types", - "EventStreamCloudEventConnectionUpdatedObject3Metadata": ".types", - "EventStreamCloudEventConnectionUpdatedObject3Options": ".types", - "EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettings": ".types", - "EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum": ".types", - "EventStreamCloudEventConnectionUpdatedObject3OptionsDigestAlgorithmEnum": ".types", - "EventStreamCloudEventConnectionUpdatedObject3OptionsIdpinitiated": ".types", - "EventStreamCloudEventConnectionUpdatedObject3OptionsIdpinitiatedClientProtocolEnum": ".types", - "EventStreamCloudEventConnectionUpdatedObject3OptionsProtocolBindingEnum": ".types", - "EventStreamCloudEventConnectionUpdatedObject3OptionsSetUserRootAttributesEnum": ".types", - "EventStreamCloudEventConnectionUpdatedObject3OptionsSignatureAlgorithmEnum": ".types", - "EventStreamCloudEventConnectionUpdatedObject3OptionsSubject": ".types", - "EventStreamCloudEventConnectionUpdatedObject3OptionsUpstreamParams": ".types", - "EventStreamCloudEventConnectionUpdatedObject3StrategyEnum": ".types", - "EventStreamCloudEventConnectionUpdatedObject4": ".types", - "EventStreamCloudEventConnectionUpdatedObject4Authentication": ".types", - "EventStreamCloudEventConnectionUpdatedObject4ConnectedAccounts": ".types", - "EventStreamCloudEventConnectionUpdatedObject4Metadata": ".types", - "EventStreamCloudEventConnectionUpdatedObject4Options": ".types", - "EventStreamCloudEventConnectionUpdatedObject4OptionsSetUserRootAttributesEnum": ".types", - "EventStreamCloudEventConnectionUpdatedObject4OptionsShouldTrustEmailVerifiedConnectionEnum": ".types", - "EventStreamCloudEventConnectionUpdatedObject4OptionsUpstreamParams": ".types", - "EventStreamCloudEventConnectionUpdatedObject4StrategyEnum": ".types", - "EventStreamCloudEventConnectionUpdatedObject5": ".types", - "EventStreamCloudEventConnectionUpdatedObject5Authentication": ".types", - "EventStreamCloudEventConnectionUpdatedObject5ConnectedAccounts": ".types", - "EventStreamCloudEventConnectionUpdatedObject5Metadata": ".types", - "EventStreamCloudEventConnectionUpdatedObject5Options": ".types", - "EventStreamCloudEventConnectionUpdatedObject5OptionsSetUserRootAttributesEnum": ".types", - "EventStreamCloudEventConnectionUpdatedObject5OptionsUpstreamParams": ".types", - "EventStreamCloudEventConnectionUpdatedObject5StrategyEnum": ".types", - "EventStreamCloudEventConnectionUpdatedObject6": ".types", - "EventStreamCloudEventConnectionUpdatedObject6Authentication": ".types", - "EventStreamCloudEventConnectionUpdatedObject6ConnectedAccounts": ".types", - "EventStreamCloudEventConnectionUpdatedObject6Metadata": ".types", - "EventStreamCloudEventConnectionUpdatedObject6Options": ".types", - "EventStreamCloudEventConnectionUpdatedObject6OptionsFederatedConnectionsAccessTokens": ".types", - "EventStreamCloudEventConnectionUpdatedObject6OptionsSetUserRootAttributesEnum": ".types", - "EventStreamCloudEventConnectionUpdatedObject6OptionsUpstreamParams": ".types", - "EventStreamCloudEventConnectionUpdatedObject6StrategyEnum": ".types", - "EventStreamCloudEventConnectionUpdatedObject7": ".types", - "EventStreamCloudEventConnectionUpdatedObject7Authentication": ".types", - "EventStreamCloudEventConnectionUpdatedObject7ConnectedAccounts": ".types", - "EventStreamCloudEventConnectionUpdatedObject7Metadata": ".types", - "EventStreamCloudEventConnectionUpdatedObject7Options": ".types", - "EventStreamCloudEventConnectionUpdatedObject7OptionsFederatedConnectionsAccessTokens": ".types", - "EventStreamCloudEventConnectionUpdatedObject7OptionsIdentityApiEnum": ".types", - "EventStreamCloudEventConnectionUpdatedObject7OptionsSetUserRootAttributesEnum": ".types", - "EventStreamCloudEventConnectionUpdatedObject7OptionsShouldTrustEmailVerifiedConnectionEnum": ".types", - "EventStreamCloudEventConnectionUpdatedObject7OptionsTenantDomainOne": ".types", - "EventStreamCloudEventConnectionUpdatedObject7OptionsUpstreamParams": ".types", - "EventStreamCloudEventConnectionUpdatedObject7OptionsUseridAttributeEnum": ".types", - "EventStreamCloudEventConnectionUpdatedObject7OptionsWaadProtocolEnum": ".types", - "EventStreamCloudEventConnectionUpdatedObject7StrategyEnum": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject0": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject0Authentication": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject0ConnectedAccounts": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject0Metadata": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject0Options": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsAttributeMap": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsAttributeMapAttributes": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsAttributeMapMappingModeEnum": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsConnectionSettings": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsConnectionSettingsPkceEnum": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsDpopSigningAlgEnum": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsFederatedConnectionsAccessTokens": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsOidcMetadata": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsSchemaVersionEnum": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsSetUserRootAttributesEnum": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTokenEndpointAuthMethodEnum": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTokenEndpointJwtcaAudFormatEnum": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTypeEnum": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsUpstreamParams": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject0StrategyEnum": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject1": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject1Authentication": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject1ConnectedAccounts": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject1Metadata": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject1Options": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsAttributeMap": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsAttributeMapAttributes": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsAttributeMapMappingModeEnum": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsConnectionSettings": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsConnectionSettingsPkceEnum": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsDpopSigningAlgEnum": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsFederatedConnectionsAccessTokens": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsOidcMetadata": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsSchemaVersionEnum": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsSetUserRootAttributesEnum": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTokenEndpointAuthMethodEnum": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTokenEndpointJwtcaAudFormatEnum": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTypeEnum": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsUpstreamParams": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject1StrategyEnum": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject2": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject2Authentication": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject2ConnectedAccounts": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject2Metadata": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject2Options": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsAssertionDecryptionSettings": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsDigestAlgorithmEnum": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsFieldsMap": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsIdpinitiated": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsIdpinitiatedClientProtocolEnum": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsOidcMetadata": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsProtocolBindingEnum": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsSetUserRootAttributesEnum": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsSignatureAlgorithmEnum": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsSubject": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsUpstreamParams": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject2StrategyEnum": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject3": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject3Authentication": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject3ConnectedAccounts": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject3Metadata": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject3Options": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsAssertionDecryptionSettings": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsDigestAlgorithmEnum": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsIdpinitiated": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsIdpinitiatedClientProtocolEnum": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsProtocolBindingEnum": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsSetUserRootAttributesEnum": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsSignatureAlgorithmEnum": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsSubject": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsUpstreamParams": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject3StrategyEnum": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject4": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject4Authentication": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject4ConnectedAccounts": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject4Metadata": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject4Options": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject4OptionsSetUserRootAttributesEnum": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject4OptionsShouldTrustEmailVerifiedConnectionEnum": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject4OptionsUpstreamParams": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject4StrategyEnum": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject5": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject5Authentication": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject5ConnectedAccounts": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject5Metadata": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject5Options": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject5OptionsSetUserRootAttributesEnum": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject5OptionsUpstreamParams": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject5StrategyEnum": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject6": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject6Authentication": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject6ConnectedAccounts": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject6Metadata": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject6Options": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject6OptionsFederatedConnectionsAccessTokens": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject6OptionsSetUserRootAttributesEnum": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject6OptionsUpstreamParams": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject6StrategyEnum": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject7": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject7Authentication": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject7ConnectedAccounts": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject7Metadata": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject7Options": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsFederatedConnectionsAccessTokens": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsIdentityApiEnum": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsSetUserRootAttributesEnum": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsTenantDomainOne": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsUpstreamParams": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsUseridAttributeEnum": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsWaadProtocolEnum": ".types", - "EventStreamCloudEventConnectionUpdatedPreviousObject7StrategyEnum": ".types", - "EventStreamCloudEventConnectionUpdatedTypeEnum": ".types", - "EventStreamCloudEventContext": ".types", - "EventStreamCloudEventContextClient": ".types", - "EventStreamCloudEventContextClientMetadata": ".types", - "EventStreamCloudEventContextConnection": ".types", - "EventStreamCloudEventContextRequest": ".types", - "EventStreamCloudEventContextRequestGeo": ".types", - "EventStreamCloudEventContextTenant": ".types", - "EventStreamCloudEventContextTransaction": ".types", - "EventStreamCloudEventContextTransactionProtocolEnum": ".types", - "EventStreamCloudEventContextTransactionResponseModeEnum": ".types", - "EventStreamCloudEventContextTransactionResponseTypeItemEnum": ".types", - "EventStreamCloudEventData": ".types", - "EventStreamCloudEventErrorCodeEnum": ".types", - "EventStreamCloudEventErrorDetail": ".types", - "EventStreamCloudEventErrorMessage": ".types", - "EventStreamCloudEventErrorMessageTypeEnum": ".types", - "EventStreamCloudEventGroupCreated": ".types", - "EventStreamCloudEventGroupCreatedCloudEvent": ".types", - "EventStreamCloudEventGroupCreatedCloudEventTypeEnum": ".types", - "EventStreamCloudEventGroupCreatedData": ".types", - "EventStreamCloudEventGroupCreatedObject": ".types", - "EventStreamCloudEventGroupCreatedObject0": ".types", - "EventStreamCloudEventGroupCreatedObject0TypeEnum": ".types", - "EventStreamCloudEventGroupCreatedObject1": ".types", - "EventStreamCloudEventGroupCreatedObject1TypeEnum": ".types", - "EventStreamCloudEventGroupCreatedObject2": ".types", - "EventStreamCloudEventGroupCreatedObject2TypeEnum": ".types", - "EventStreamCloudEventGroupCreatedPreviousObject": ".types", - "EventStreamCloudEventGroupCreatedPreviousObject0": ".types", - "EventStreamCloudEventGroupCreatedPreviousObject0TypeEnum": ".types", - "EventStreamCloudEventGroupCreatedPreviousObject1": ".types", - "EventStreamCloudEventGroupCreatedPreviousObject1TypeEnum": ".types", - "EventStreamCloudEventGroupCreatedPreviousObject2": ".types", - "EventStreamCloudEventGroupCreatedPreviousObject2TypeEnum": ".types", - "EventStreamCloudEventGroupCreatedTypeEnum": ".types", - "EventStreamCloudEventGroupDeleted": ".types", - "EventStreamCloudEventGroupDeletedCloudEvent": ".types", - "EventStreamCloudEventGroupDeletedCloudEventTypeEnum": ".types", - "EventStreamCloudEventGroupDeletedData": ".types", - "EventStreamCloudEventGroupDeletedObject": ".types", - "EventStreamCloudEventGroupDeletedObject0": ".types", - "EventStreamCloudEventGroupDeletedObject0TypeEnum": ".types", - "EventStreamCloudEventGroupDeletedObject1": ".types", - "EventStreamCloudEventGroupDeletedObject1TypeEnum": ".types", - "EventStreamCloudEventGroupDeletedObject2": ".types", - "EventStreamCloudEventGroupDeletedObject2TypeEnum": ".types", - "EventStreamCloudEventGroupDeletedPreviousObject": ".types", - "EventStreamCloudEventGroupDeletedPreviousObject0": ".types", - "EventStreamCloudEventGroupDeletedPreviousObject0TypeEnum": ".types", - "EventStreamCloudEventGroupDeletedPreviousObject1": ".types", - "EventStreamCloudEventGroupDeletedPreviousObject1TypeEnum": ".types", - "EventStreamCloudEventGroupDeletedPreviousObject2": ".types", - "EventStreamCloudEventGroupDeletedPreviousObject2TypeEnum": ".types", - "EventStreamCloudEventGroupDeletedTypeEnum": ".types", - "EventStreamCloudEventGroupMemberAdded": ".types", - "EventStreamCloudEventGroupMemberAddedCloudEvent": ".types", - "EventStreamCloudEventGroupMemberAddedCloudEventTypeEnum": ".types", - "EventStreamCloudEventGroupMemberAddedData": ".types", - "EventStreamCloudEventGroupMemberAddedObject": ".types", - "EventStreamCloudEventGroupMemberAddedObjectGroup": ".types", - "EventStreamCloudEventGroupMemberAddedObjectGroup0": ".types", - "EventStreamCloudEventGroupMemberAddedObjectGroup0TypeEnum": ".types", - "EventStreamCloudEventGroupMemberAddedObjectGroup1": ".types", - "EventStreamCloudEventGroupMemberAddedObjectGroup1TypeEnum": ".types", - "EventStreamCloudEventGroupMemberAddedObjectGroup2": ".types", - "EventStreamCloudEventGroupMemberAddedObjectGroup2TypeEnum": ".types", - "EventStreamCloudEventGroupMemberAddedObjectMember": ".types", - "EventStreamCloudEventGroupMemberAddedObjectMember0": ".types", - "EventStreamCloudEventGroupMemberAddedObjectMember0MemberTypeEnum": ".types", - "EventStreamCloudEventGroupMemberAddedObjectMember1": ".types", - "EventStreamCloudEventGroupMemberAddedObjectMember1MemberTypeEnum": ".types", - "EventStreamCloudEventGroupMemberAddedPreviousObject": ".types", - "EventStreamCloudEventGroupMemberAddedPreviousObjectGroup": ".types", - "EventStreamCloudEventGroupMemberAddedPreviousObjectGroup0": ".types", - "EventStreamCloudEventGroupMemberAddedPreviousObjectGroup0TypeEnum": ".types", - "EventStreamCloudEventGroupMemberAddedPreviousObjectGroup1": ".types", - "EventStreamCloudEventGroupMemberAddedPreviousObjectGroup1TypeEnum": ".types", - "EventStreamCloudEventGroupMemberAddedPreviousObjectGroup2": ".types", - "EventStreamCloudEventGroupMemberAddedPreviousObjectGroup2TypeEnum": ".types", - "EventStreamCloudEventGroupMemberAddedPreviousObjectMember": ".types", - "EventStreamCloudEventGroupMemberAddedPreviousObjectMember0": ".types", - "EventStreamCloudEventGroupMemberAddedPreviousObjectMember0MemberTypeEnum": ".types", - "EventStreamCloudEventGroupMemberAddedPreviousObjectMember1": ".types", - "EventStreamCloudEventGroupMemberAddedPreviousObjectMember1MemberTypeEnum": ".types", - "EventStreamCloudEventGroupMemberAddedTypeEnum": ".types", - "EventStreamCloudEventGroupMemberDeleted": ".types", - "EventStreamCloudEventGroupMemberDeletedCloudEvent": ".types", - "EventStreamCloudEventGroupMemberDeletedCloudEventTypeEnum": ".types", - "EventStreamCloudEventGroupMemberDeletedData": ".types", - "EventStreamCloudEventGroupMemberDeletedObject": ".types", - "EventStreamCloudEventGroupMemberDeletedObjectGroup": ".types", - "EventStreamCloudEventGroupMemberDeletedObjectGroup0": ".types", - "EventStreamCloudEventGroupMemberDeletedObjectGroup0TypeEnum": ".types", - "EventStreamCloudEventGroupMemberDeletedObjectGroup1": ".types", - "EventStreamCloudEventGroupMemberDeletedObjectGroup1TypeEnum": ".types", - "EventStreamCloudEventGroupMemberDeletedObjectGroup2": ".types", - "EventStreamCloudEventGroupMemberDeletedObjectGroup2TypeEnum": ".types", - "EventStreamCloudEventGroupMemberDeletedObjectMember": ".types", - "EventStreamCloudEventGroupMemberDeletedObjectMember0": ".types", - "EventStreamCloudEventGroupMemberDeletedObjectMember0MemberTypeEnum": ".types", - "EventStreamCloudEventGroupMemberDeletedObjectMember1": ".types", - "EventStreamCloudEventGroupMemberDeletedObjectMember1MemberTypeEnum": ".types", - "EventStreamCloudEventGroupMemberDeletedPreviousObject": ".types", - "EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup": ".types", - "EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup0": ".types", - "EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup0TypeEnum": ".types", - "EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup1": ".types", - "EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup1TypeEnum": ".types", - "EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup2": ".types", - "EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup2TypeEnum": ".types", - "EventStreamCloudEventGroupMemberDeletedPreviousObjectMember": ".types", - "EventStreamCloudEventGroupMemberDeletedPreviousObjectMember0": ".types", - "EventStreamCloudEventGroupMemberDeletedPreviousObjectMember0MemberTypeEnum": ".types", - "EventStreamCloudEventGroupMemberDeletedPreviousObjectMember1": ".types", - "EventStreamCloudEventGroupMemberDeletedPreviousObjectMember1MemberTypeEnum": ".types", - "EventStreamCloudEventGroupMemberDeletedTypeEnum": ".types", - "EventStreamCloudEventGroupRoleAssigned": ".types", - "EventStreamCloudEventGroupRoleAssignedCloudEvent": ".types", - "EventStreamCloudEventGroupRoleAssignedCloudEventTypeEnum": ".types", - "EventStreamCloudEventGroupRoleAssignedData": ".types", - "EventStreamCloudEventGroupRoleAssignedObject": ".types", - "EventStreamCloudEventGroupRoleAssignedObjectGroup": ".types", - "EventStreamCloudEventGroupRoleAssignedObjectGroup0": ".types", - "EventStreamCloudEventGroupRoleAssignedObjectGroup0TypeEnum": ".types", - "EventStreamCloudEventGroupRoleAssignedObjectGroup1": ".types", - "EventStreamCloudEventGroupRoleAssignedObjectGroup1TypeEnum": ".types", - "EventStreamCloudEventGroupRoleAssignedObjectGroup2": ".types", - "EventStreamCloudEventGroupRoleAssignedObjectGroup2TypeEnum": ".types", - "EventStreamCloudEventGroupRoleAssignedObjectRole": ".types", - "EventStreamCloudEventGroupRoleAssignedPreviousObject": ".types", - "EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup": ".types", - "EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup0": ".types", - "EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup0TypeEnum": ".types", - "EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup1": ".types", - "EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup1TypeEnum": ".types", - "EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup2": ".types", - "EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup2TypeEnum": ".types", - "EventStreamCloudEventGroupRoleAssignedPreviousObjectRole": ".types", - "EventStreamCloudEventGroupRoleAssignedTypeEnum": ".types", - "EventStreamCloudEventGroupRoleDeleted": ".types", - "EventStreamCloudEventGroupRoleDeletedCloudEvent": ".types", - "EventStreamCloudEventGroupRoleDeletedCloudEventTypeEnum": ".types", - "EventStreamCloudEventGroupRoleDeletedData": ".types", - "EventStreamCloudEventGroupRoleDeletedObject": ".types", - "EventStreamCloudEventGroupRoleDeletedObjectGroup": ".types", - "EventStreamCloudEventGroupRoleDeletedObjectGroup0": ".types", - "EventStreamCloudEventGroupRoleDeletedObjectGroup0TypeEnum": ".types", - "EventStreamCloudEventGroupRoleDeletedObjectGroup1": ".types", - "EventStreamCloudEventGroupRoleDeletedObjectGroup1TypeEnum": ".types", - "EventStreamCloudEventGroupRoleDeletedObjectGroup2": ".types", - "EventStreamCloudEventGroupRoleDeletedObjectGroup2TypeEnum": ".types", - "EventStreamCloudEventGroupRoleDeletedObjectRole": ".types", - "EventStreamCloudEventGroupRoleDeletedPreviousObject": ".types", - "EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup": ".types", - "EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup0": ".types", - "EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup0TypeEnum": ".types", - "EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup1": ".types", - "EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup1TypeEnum": ".types", - "EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup2": ".types", - "EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup2TypeEnum": ".types", - "EventStreamCloudEventGroupRoleDeletedPreviousObjectRole": ".types", - "EventStreamCloudEventGroupRoleDeletedTypeEnum": ".types", - "EventStreamCloudEventGroupUpdated": ".types", - "EventStreamCloudEventGroupUpdatedCloudEvent": ".types", - "EventStreamCloudEventGroupUpdatedCloudEventTypeEnum": ".types", - "EventStreamCloudEventGroupUpdatedData": ".types", - "EventStreamCloudEventGroupUpdatedObject": ".types", - "EventStreamCloudEventGroupUpdatedObject0": ".types", - "EventStreamCloudEventGroupUpdatedObject0TypeEnum": ".types", - "EventStreamCloudEventGroupUpdatedObject1": ".types", - "EventStreamCloudEventGroupUpdatedObject1TypeEnum": ".types", - "EventStreamCloudEventGroupUpdatedObject2": ".types", - "EventStreamCloudEventGroupUpdatedObject2TypeEnum": ".types", - "EventStreamCloudEventGroupUpdatedPreviousObject": ".types", - "EventStreamCloudEventGroupUpdatedPreviousObject0": ".types", - "EventStreamCloudEventGroupUpdatedPreviousObject0TypeEnum": ".types", - "EventStreamCloudEventGroupUpdatedPreviousObject1": ".types", - "EventStreamCloudEventGroupUpdatedPreviousObject1TypeEnum": ".types", - "EventStreamCloudEventGroupUpdatedPreviousObject2": ".types", - "EventStreamCloudEventGroupUpdatedPreviousObject2TypeEnum": ".types", - "EventStreamCloudEventGroupUpdatedTypeEnum": ".types", - "EventStreamCloudEventOffsetOnlyMessage": ".types", - "EventStreamCloudEventOffsetOnlyMessageTypeEnum": ".types", - "EventStreamCloudEventOrgConnectionAdded": ".types", - "EventStreamCloudEventOrgConnectionAddedCloudEvent": ".types", - "EventStreamCloudEventOrgConnectionAddedCloudEventTypeEnum": ".types", - "EventStreamCloudEventOrgConnectionAddedData": ".types", - "EventStreamCloudEventOrgConnectionAddedObject": ".types", - "EventStreamCloudEventOrgConnectionAddedObjectConnection": ".types", - "EventStreamCloudEventOrgConnectionAddedObjectOrganization": ".types", - "EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel": ".types", - "EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel0Enum": ".types", - "EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel1Enum": ".types", - "EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel2Enum": ".types", - "EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel3Enum": ".types", - "EventStreamCloudEventOrgConnectionAddedObjectOrganizationMemberAccessLevel": ".types", - "EventStreamCloudEventOrgConnectionAddedObjectOrganizationMemberAccessLevel0Enum": ".types", - "EventStreamCloudEventOrgConnectionAddedObjectOrganizationMemberAccessLevel1Enum": ".types", - "EventStreamCloudEventOrgConnectionAddedObjectOrganizationMemberAccessLevel2Enum": ".types", - "EventStreamCloudEventOrgConnectionAddedObjectOrganizationMemberAccessLevel3Enum": ".types", - "EventStreamCloudEventOrgConnectionAddedPreviousObject": ".types", - "EventStreamCloudEventOrgConnectionAddedPreviousObjectConnection": ".types", - "EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganization": ".types", - "EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel": ".types", - "EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel0Enum": ".types", - "EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel1Enum": ".types", - "EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel2Enum": ".types", - "EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel3Enum": ".types", - "EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationMemberAccessLevel": ".types", - "EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationMemberAccessLevel0Enum": ".types", - "EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationMemberAccessLevel1Enum": ".types", - "EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationMemberAccessLevel2Enum": ".types", - "EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationMemberAccessLevel3Enum": ".types", - "EventStreamCloudEventOrgConnectionAddedTypeEnum": ".types", - "EventStreamCloudEventOrgConnectionRemoved": ".types", - "EventStreamCloudEventOrgConnectionRemovedCloudEvent": ".types", - "EventStreamCloudEventOrgConnectionRemovedCloudEventTypeEnum": ".types", - "EventStreamCloudEventOrgConnectionRemovedData": ".types", - "EventStreamCloudEventOrgConnectionRemovedObject": ".types", - "EventStreamCloudEventOrgConnectionRemovedObjectConnection": ".types", - "EventStreamCloudEventOrgConnectionRemovedObjectOrganization": ".types", - "EventStreamCloudEventOrgConnectionRemovedPreviousObject": ".types", - "EventStreamCloudEventOrgConnectionRemovedPreviousObjectConnection": ".types", - "EventStreamCloudEventOrgConnectionRemovedPreviousObjectOrganization": ".types", - "EventStreamCloudEventOrgConnectionRemovedTypeEnum": ".types", - "EventStreamCloudEventOrgConnectionUpdated": ".types", - "EventStreamCloudEventOrgConnectionUpdatedCloudEvent": ".types", - "EventStreamCloudEventOrgConnectionUpdatedCloudEventTypeEnum": ".types", - "EventStreamCloudEventOrgConnectionUpdatedData": ".types", - "EventStreamCloudEventOrgConnectionUpdatedObject": ".types", - "EventStreamCloudEventOrgConnectionUpdatedObjectConnection": ".types", - "EventStreamCloudEventOrgConnectionUpdatedObjectOrganization": ".types", - "EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel": ".types", - "EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel0Enum": ".types", - "EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel1Enum": ".types", - "EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel2Enum": ".types", - "EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel3Enum": ".types", - "EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationMemberAccessLevel": ".types", - "EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationMemberAccessLevel0Enum": ".types", - "EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationMemberAccessLevel1Enum": ".types", - "EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationMemberAccessLevel2Enum": ".types", - "EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationMemberAccessLevel3Enum": ".types", - "EventStreamCloudEventOrgConnectionUpdatedPreviousObject": ".types", - "EventStreamCloudEventOrgConnectionUpdatedPreviousObjectConnection": ".types", - "EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganization": ".types", - "EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel": ".types", - "EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel0Enum": ".types", - "EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel1Enum": ".types", - "EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel2Enum": ".types", - "EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel3Enum": ".types", - "EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationMemberAccessLevel": ".types", - "EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationMemberAccessLevel0Enum": ".types", - "EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationMemberAccessLevel1Enum": ".types", - "EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationMemberAccessLevel2Enum": ".types", - "EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationMemberAccessLevel3Enum": ".types", - "EventStreamCloudEventOrgConnectionUpdatedTypeEnum": ".types", - "EventStreamCloudEventOrgCreated": ".types", - "EventStreamCloudEventOrgCreatedCloudEvent": ".types", - "EventStreamCloudEventOrgCreatedCloudEventTypeEnum": ".types", - "EventStreamCloudEventOrgCreatedData": ".types", - "EventStreamCloudEventOrgCreatedObject": ".types", - "EventStreamCloudEventOrgCreatedObjectBranding": ".types", - "EventStreamCloudEventOrgCreatedObjectBrandingColors": ".types", - "EventStreamCloudEventOrgCreatedObjectMetadata": ".types", - "EventStreamCloudEventOrgCreatedPreviousObject": ".types", - "EventStreamCloudEventOrgCreatedPreviousObjectBranding": ".types", - "EventStreamCloudEventOrgCreatedPreviousObjectBrandingColors": ".types", - "EventStreamCloudEventOrgCreatedPreviousObjectMetadata": ".types", - "EventStreamCloudEventOrgCreatedTypeEnum": ".types", - "EventStreamCloudEventOrgDeleted": ".types", - "EventStreamCloudEventOrgDeletedCloudEvent": ".types", - "EventStreamCloudEventOrgDeletedCloudEventTypeEnum": ".types", - "EventStreamCloudEventOrgDeletedData": ".types", - "EventStreamCloudEventOrgDeletedObject": ".types", - "EventStreamCloudEventOrgDeletedObjectMetadata": ".types", - "EventStreamCloudEventOrgDeletedPreviousObject": ".types", - "EventStreamCloudEventOrgDeletedPreviousObjectMetadata": ".types", - "EventStreamCloudEventOrgDeletedTypeEnum": ".types", - "EventStreamCloudEventOrgGroupRoleAssigned": ".types", - "EventStreamCloudEventOrgGroupRoleAssignedCloudEvent": ".types", - "EventStreamCloudEventOrgGroupRoleAssignedCloudEventTypeEnum": ".types", - "EventStreamCloudEventOrgGroupRoleAssignedData": ".types", - "EventStreamCloudEventOrgGroupRoleAssignedObject": ".types", - "EventStreamCloudEventOrgGroupRoleAssignedObjectGroup": ".types", - "EventStreamCloudEventOrgGroupRoleAssignedObjectGroup0": ".types", - "EventStreamCloudEventOrgGroupRoleAssignedObjectGroup0TypeEnum": ".types", - "EventStreamCloudEventOrgGroupRoleAssignedObjectGroup1": ".types", - "EventStreamCloudEventOrgGroupRoleAssignedObjectGroup1TypeEnum": ".types", - "EventStreamCloudEventOrgGroupRoleAssignedObjectGroup2": ".types", - "EventStreamCloudEventOrgGroupRoleAssignedObjectGroup2TypeEnum": ".types", - "EventStreamCloudEventOrgGroupRoleAssignedObjectOrganization": ".types", - "EventStreamCloudEventOrgGroupRoleAssignedObjectRole": ".types", - "EventStreamCloudEventOrgGroupRoleAssignedPreviousObject": ".types", - "EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup": ".types", - "EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup0": ".types", - "EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup0TypeEnum": ".types", - "EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup1": ".types", - "EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup1TypeEnum": ".types", - "EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup2": ".types", - "EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup2TypeEnum": ".types", - "EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectOrganization": ".types", - "EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectRole": ".types", - "EventStreamCloudEventOrgGroupRoleAssignedTypeEnum": ".types", - "EventStreamCloudEventOrgGroupRoleDeleted": ".types", - "EventStreamCloudEventOrgGroupRoleDeletedCloudEvent": ".types", - "EventStreamCloudEventOrgGroupRoleDeletedCloudEventTypeEnum": ".types", - "EventStreamCloudEventOrgGroupRoleDeletedData": ".types", - "EventStreamCloudEventOrgGroupRoleDeletedObject": ".types", - "EventStreamCloudEventOrgGroupRoleDeletedObjectGroup": ".types", - "EventStreamCloudEventOrgGroupRoleDeletedObjectGroup0": ".types", - "EventStreamCloudEventOrgGroupRoleDeletedObjectGroup0TypeEnum": ".types", - "EventStreamCloudEventOrgGroupRoleDeletedObjectGroup1": ".types", - "EventStreamCloudEventOrgGroupRoleDeletedObjectGroup1TypeEnum": ".types", - "EventStreamCloudEventOrgGroupRoleDeletedObjectGroup2": ".types", - "EventStreamCloudEventOrgGroupRoleDeletedObjectGroup2TypeEnum": ".types", - "EventStreamCloudEventOrgGroupRoleDeletedObjectOrganization": ".types", - "EventStreamCloudEventOrgGroupRoleDeletedObjectRole": ".types", - "EventStreamCloudEventOrgGroupRoleDeletedPreviousObject": ".types", - "EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup": ".types", - "EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup0": ".types", - "EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup0TypeEnum": ".types", - "EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup1": ".types", - "EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup1TypeEnum": ".types", - "EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup2": ".types", - "EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup2TypeEnum": ".types", - "EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectOrganization": ".types", - "EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectRole": ".types", - "EventStreamCloudEventOrgGroupRoleDeletedTypeEnum": ".types", - "EventStreamCloudEventOrgMemberAdded": ".types", - "EventStreamCloudEventOrgMemberAddedCloudEvent": ".types", - "EventStreamCloudEventOrgMemberAddedCloudEventTypeEnum": ".types", - "EventStreamCloudEventOrgMemberAddedData": ".types", - "EventStreamCloudEventOrgMemberAddedObject": ".types", - "EventStreamCloudEventOrgMemberAddedObjectOrganization": ".types", - "EventStreamCloudEventOrgMemberAddedObjectUser": ".types", - "EventStreamCloudEventOrgMemberAddedPreviousObject": ".types", - "EventStreamCloudEventOrgMemberAddedPreviousObjectOrganization": ".types", - "EventStreamCloudEventOrgMemberAddedPreviousObjectUser": ".types", - "EventStreamCloudEventOrgMemberAddedTypeEnum": ".types", - "EventStreamCloudEventOrgMemberDeleted": ".types", - "EventStreamCloudEventOrgMemberDeletedCloudEvent": ".types", - "EventStreamCloudEventOrgMemberDeletedCloudEventTypeEnum": ".types", - "EventStreamCloudEventOrgMemberDeletedData": ".types", - "EventStreamCloudEventOrgMemberDeletedObject": ".types", - "EventStreamCloudEventOrgMemberDeletedObjectOrganization": ".types", - "EventStreamCloudEventOrgMemberDeletedObjectUser": ".types", - "EventStreamCloudEventOrgMemberDeletedPreviousObject": ".types", - "EventStreamCloudEventOrgMemberDeletedPreviousObjectOrganization": ".types", - "EventStreamCloudEventOrgMemberDeletedPreviousObjectUser": ".types", - "EventStreamCloudEventOrgMemberDeletedTypeEnum": ".types", - "EventStreamCloudEventOrgMemberRoleAssigned": ".types", - "EventStreamCloudEventOrgMemberRoleAssignedCloudEvent": ".types", - "EventStreamCloudEventOrgMemberRoleAssignedCloudEventTypeEnum": ".types", - "EventStreamCloudEventOrgMemberRoleAssignedData": ".types", - "EventStreamCloudEventOrgMemberRoleAssignedObject": ".types", - "EventStreamCloudEventOrgMemberRoleAssignedObjectOrganization": ".types", - "EventStreamCloudEventOrgMemberRoleAssignedObjectRole": ".types", - "EventStreamCloudEventOrgMemberRoleAssignedObjectUser": ".types", - "EventStreamCloudEventOrgMemberRoleAssignedPreviousObject": ".types", - "EventStreamCloudEventOrgMemberRoleAssignedPreviousObjectOrganization": ".types", - "EventStreamCloudEventOrgMemberRoleAssignedPreviousObjectRole": ".types", - "EventStreamCloudEventOrgMemberRoleAssignedPreviousObjectUser": ".types", - "EventStreamCloudEventOrgMemberRoleAssignedTypeEnum": ".types", - "EventStreamCloudEventOrgMemberRoleDeleted": ".types", - "EventStreamCloudEventOrgMemberRoleDeletedCloudEvent": ".types", - "EventStreamCloudEventOrgMemberRoleDeletedCloudEventTypeEnum": ".types", - "EventStreamCloudEventOrgMemberRoleDeletedData": ".types", - "EventStreamCloudEventOrgMemberRoleDeletedObject": ".types", - "EventStreamCloudEventOrgMemberRoleDeletedObjectOrganization": ".types", - "EventStreamCloudEventOrgMemberRoleDeletedObjectRole": ".types", - "EventStreamCloudEventOrgMemberRoleDeletedObjectUser": ".types", - "EventStreamCloudEventOrgMemberRoleDeletedPreviousObject": ".types", - "EventStreamCloudEventOrgMemberRoleDeletedPreviousObjectOrganization": ".types", - "EventStreamCloudEventOrgMemberRoleDeletedPreviousObjectRole": ".types", - "EventStreamCloudEventOrgMemberRoleDeletedPreviousObjectUser": ".types", - "EventStreamCloudEventOrgMemberRoleDeletedTypeEnum": ".types", - "EventStreamCloudEventOrgUpdated": ".types", - "EventStreamCloudEventOrgUpdatedCloudEvent": ".types", - "EventStreamCloudEventOrgUpdatedCloudEventTypeEnum": ".types", - "EventStreamCloudEventOrgUpdatedData": ".types", - "EventStreamCloudEventOrgUpdatedObject": ".types", - "EventStreamCloudEventOrgUpdatedObjectBranding": ".types", - "EventStreamCloudEventOrgUpdatedObjectBrandingColors": ".types", - "EventStreamCloudEventOrgUpdatedObjectMetadata": ".types", - "EventStreamCloudEventOrgUpdatedPreviousObject": ".types", - "EventStreamCloudEventOrgUpdatedPreviousObjectBranding": ".types", - "EventStreamCloudEventOrgUpdatedPreviousObjectBrandingColors": ".types", - "EventStreamCloudEventOrgUpdatedPreviousObjectMetadata": ".types", - "EventStreamCloudEventOrgUpdatedTypeEnum": ".types", - "EventStreamCloudEventSpecVersionEnum": ".types", - "EventStreamCloudEventUserCreated": ".types", - "EventStreamCloudEventUserCreatedCloudEvent": ".types", - "EventStreamCloudEventUserCreatedCloudEventTypeEnum": ".types", - "EventStreamCloudEventUserCreatedData": ".types", - "EventStreamCloudEventUserCreatedObject": ".types", - "EventStreamCloudEventUserCreatedObjectAppMetadata": ".types", - "EventStreamCloudEventUserCreatedObjectIdentitiesItem": ".types", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemCustom": ".types", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemCustomIsSocialEnum": ".types", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemCustomProfileData": ".types", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemCustomProviderEnum": ".types", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemCustomUserId": ".types", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemDatabase": ".types", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemDatabaseIsSocialEnum": ".types", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemDatabaseProfileData": ".types", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemDatabaseProviderEnum": ".types", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemDatabaseUserId": ".types", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemEnterprise": ".types", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemEnterpriseIsSocialEnum": ".types", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemEnterpriseProfileData": ".types", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemEnterpriseProviderEnum": ".types", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemEnterpriseUserId": ".types", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemPasswordless": ".types", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemPasswordlessIsSocialEnum": ".types", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemPasswordlessProfileData": ".types", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemPasswordlessProviderEnum": ".types", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemPasswordlessUserId": ".types", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemSocial": ".types", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemSocialIsSocialEnum": ".types", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemSocialProfileData": ".types", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemSocialProviderEnum": ".types", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemSocialUserId": ".types", - "EventStreamCloudEventUserCreatedObjectUserMetadata": ".types", - "EventStreamCloudEventUserCreatedPreviousObject": ".types", - "EventStreamCloudEventUserCreatedPreviousObjectAppMetadata": ".types", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItem": ".types", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustom": ".types", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomIsSocialEnum": ".types", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomProfileData": ".types", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomProviderEnum": ".types", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomUserId": ".types", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabase": ".types", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseIsSocialEnum": ".types", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseProfileData": ".types", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseProviderEnum": ".types", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseUserId": ".types", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterprise": ".types", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseIsSocialEnum": ".types", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseProfileData": ".types", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseProviderEnum": ".types", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseUserId": ".types", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordless": ".types", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessIsSocialEnum": ".types", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessProfileData": ".types", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessProviderEnum": ".types", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessUserId": ".types", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocial": ".types", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialIsSocialEnum": ".types", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProfileData": ".types", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum": ".types", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialUserId": ".types", - "EventStreamCloudEventUserCreatedPreviousObjectUserMetadata": ".types", - "EventStreamCloudEventUserCreatedTypeEnum": ".types", - "EventStreamCloudEventUserDeleted": ".types", - "EventStreamCloudEventUserDeletedCloudEvent": ".types", - "EventStreamCloudEventUserDeletedCloudEventTypeEnum": ".types", - "EventStreamCloudEventUserDeletedData": ".types", - "EventStreamCloudEventUserDeletedObject": ".types", - "EventStreamCloudEventUserDeletedObjectAppMetadata": ".types", - "EventStreamCloudEventUserDeletedObjectIdentitiesItem": ".types", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemCustom": ".types", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemCustomIsSocialEnum": ".types", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemCustomProfileData": ".types", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemCustomProviderEnum": ".types", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemCustomUserId": ".types", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemDatabase": ".types", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemDatabaseIsSocialEnum": ".types", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemDatabaseProfileData": ".types", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemDatabaseProviderEnum": ".types", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemDatabaseUserId": ".types", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemEnterprise": ".types", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemEnterpriseIsSocialEnum": ".types", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemEnterpriseProfileData": ".types", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemEnterpriseProviderEnum": ".types", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemEnterpriseUserId": ".types", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemPasswordless": ".types", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemPasswordlessIsSocialEnum": ".types", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemPasswordlessProfileData": ".types", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemPasswordlessProviderEnum": ".types", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemPasswordlessUserId": ".types", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemSocial": ".types", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemSocialIsSocialEnum": ".types", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemSocialProfileData": ".types", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemSocialProviderEnum": ".types", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemSocialUserId": ".types", - "EventStreamCloudEventUserDeletedObjectUserMetadata": ".types", - "EventStreamCloudEventUserDeletedPreviousObject": ".types", - "EventStreamCloudEventUserDeletedPreviousObjectAppMetadata": ".types", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItem": ".types", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustom": ".types", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomIsSocialEnum": ".types", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomProfileData": ".types", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomProviderEnum": ".types", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomUserId": ".types", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabase": ".types", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseIsSocialEnum": ".types", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseProfileData": ".types", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseProviderEnum": ".types", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseUserId": ".types", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterprise": ".types", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseIsSocialEnum": ".types", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseProfileData": ".types", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseProviderEnum": ".types", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseUserId": ".types", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordless": ".types", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessIsSocialEnum": ".types", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessProfileData": ".types", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessProviderEnum": ".types", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessUserId": ".types", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocial": ".types", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialIsSocialEnum": ".types", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProfileData": ".types", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum": ".types", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialUserId": ".types", - "EventStreamCloudEventUserDeletedPreviousObjectUserMetadata": ".types", - "EventStreamCloudEventUserDeletedTypeEnum": ".types", - "EventStreamCloudEventUserUpdated": ".types", - "EventStreamCloudEventUserUpdatedCloudEvent": ".types", - "EventStreamCloudEventUserUpdatedCloudEventTypeEnum": ".types", - "EventStreamCloudEventUserUpdatedData": ".types", - "EventStreamCloudEventUserUpdatedObject": ".types", - "EventStreamCloudEventUserUpdatedObjectAppMetadata": ".types", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItem": ".types", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemCustom": ".types", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemCustomIsSocialEnum": ".types", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemCustomProfileData": ".types", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemCustomProviderEnum": ".types", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemCustomUserId": ".types", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemDatabase": ".types", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemDatabaseIsSocialEnum": ".types", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemDatabaseProfileData": ".types", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemDatabaseProviderEnum": ".types", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemDatabaseUserId": ".types", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemEnterprise": ".types", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemEnterpriseIsSocialEnum": ".types", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemEnterpriseProfileData": ".types", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemEnterpriseProviderEnum": ".types", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemEnterpriseUserId": ".types", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemPasswordless": ".types", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemPasswordlessIsSocialEnum": ".types", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemPasswordlessProfileData": ".types", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemPasswordlessProviderEnum": ".types", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemPasswordlessUserId": ".types", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemSocial": ".types", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemSocialIsSocialEnum": ".types", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemSocialProfileData": ".types", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemSocialProviderEnum": ".types", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemSocialUserId": ".types", - "EventStreamCloudEventUserUpdatedObjectUserMetadata": ".types", - "EventStreamCloudEventUserUpdatedPreviousObject": ".types", - "EventStreamCloudEventUserUpdatedPreviousObjectAppMetadata": ".types", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItem": ".types", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustom": ".types", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomIsSocialEnum": ".types", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomProfileData": ".types", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomProviderEnum": ".types", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomUserId": ".types", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabase": ".types", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseIsSocialEnum": ".types", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseProfileData": ".types", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseProviderEnum": ".types", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseUserId": ".types", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterprise": ".types", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseIsSocialEnum": ".types", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseProfileData": ".types", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseProviderEnum": ".types", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseUserId": ".types", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordless": ".types", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessIsSocialEnum": ".types", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessProfileData": ".types", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessProviderEnum": ".types", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessUserId": ".types", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocial": ".types", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialIsSocialEnum": ".types", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProfileData": ".types", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum": ".types", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialUserId": ".types", - "EventStreamCloudEventUserUpdatedPreviousObjectUserMetadata": ".types", - "EventStreamCloudEventUserUpdatedTypeEnum": ".types", - "EventStreamDelivery": ".types", - "EventStreamDeliveryAttempt": ".types", - "EventStreamDeliveryEventTypeEnum": ".types", - "EventStreamDeliveryStatusEnum": ".types", - "EventStreamDestinationPatch": ".types", - "EventStreamEventBridgeAwsRegionEnum": ".types", - "EventStreamEventBridgeConfiguration": ".types", - "EventStreamEventBridgeDestination": ".types", - "EventStreamEventBridgeDestinationTypeEnum": ".types", - "EventStreamEventBridgeResponseContent": ".types", - "EventStreamEventTypeEnum": ".types", - "EventStreamResponseContent": ".types", - "EventStreamStatusEnum": ".types", - "EventStreamSubscribeEventsEventTypeEnum": ".types", - "EventStreamSubscribeEventsEventTypeParam": ".types", - "EventStreamSubscribeEventsResponseContent": ".types", - "EventStreamSubscribeEventsResponseContent_ConnectionCreated": ".types", - "EventStreamSubscribeEventsResponseContent_ConnectionDeleted": ".types", - "EventStreamSubscribeEventsResponseContent_ConnectionUpdated": ".types", - "EventStreamSubscribeEventsResponseContent_Error": ".types", - "EventStreamSubscribeEventsResponseContent_GroupCreated": ".types", - "EventStreamSubscribeEventsResponseContent_GroupDeleted": ".types", - "EventStreamSubscribeEventsResponseContent_GroupMemberAdded": ".types", - "EventStreamSubscribeEventsResponseContent_GroupMemberDeleted": ".types", - "EventStreamSubscribeEventsResponseContent_GroupRoleAssigned": ".types", - "EventStreamSubscribeEventsResponseContent_GroupRoleDeleted": ".types", - "EventStreamSubscribeEventsResponseContent_GroupUpdated": ".types", - "EventStreamSubscribeEventsResponseContent_OffsetOnly": ".types", - "EventStreamSubscribeEventsResponseContent_OrganizationConnectionAdded": ".types", - "EventStreamSubscribeEventsResponseContent_OrganizationConnectionRemoved": ".types", - "EventStreamSubscribeEventsResponseContent_OrganizationConnectionUpdated": ".types", - "EventStreamSubscribeEventsResponseContent_OrganizationCreated": ".types", - "EventStreamSubscribeEventsResponseContent_OrganizationDeleted": ".types", - "EventStreamSubscribeEventsResponseContent_OrganizationGroupRoleAssigned": ".types", - "EventStreamSubscribeEventsResponseContent_OrganizationGroupRoleDeleted": ".types", - "EventStreamSubscribeEventsResponseContent_OrganizationMemberAdded": ".types", - "EventStreamSubscribeEventsResponseContent_OrganizationMemberDeleted": ".types", - "EventStreamSubscribeEventsResponseContent_OrganizationMemberRoleAssigned": ".types", - "EventStreamSubscribeEventsResponseContent_OrganizationMemberRoleDeleted": ".types", - "EventStreamSubscribeEventsResponseContent_OrganizationUpdated": ".types", - "EventStreamSubscribeEventsResponseContent_UserCreated": ".types", - "EventStreamSubscribeEventsResponseContent_UserDeleted": ".types", - "EventStreamSubscribeEventsResponseContent_UserUpdated": ".types", - "EventStreamSubscription": ".types", - "EventStreamTestEventTypeEnum": ".types", - "EventStreamWebhookAuthorizationResponse": ".types", - "EventStreamWebhookBasicAuth": ".types", - "EventStreamWebhookBasicAuthMethodEnum": ".types", - "EventStreamWebhookBearerAuth": ".types", - "EventStreamWebhookBearerAuthMethodEnum": ".types", - "EventStreamWebhookConfiguration": ".types", - "EventStreamWebhookCustomHeaderAuth": ".types", - "EventStreamWebhookCustomHeaderAuthMethodEnum": ".types", - "EventStreamWebhookDestination": ".types", - "EventStreamWebhookDestinationTypeEnum": ".types", - "EventStreamWebhookResponseContent": ".types", - "EventStreamsCreateRequest": ".event_streams", - "ExperimentListItem": ".types", - "ExperimentStatusEnum": ".types", - "ExperimentTransitionStatusEnum": ".types", - "ExperimentValidationError": ".types", - "ExpressConfiguration": ".types", - "ExpressConfigurationOrNull": ".types", - "ExtensibilityEmailProviderCredentials": ".types", - "FeatureFlag": ".types", - "FeatureFlagConfigParam": ".types", - "FeatureFlagConfigParamTypeEnum": ".types", - "FeatureFlagConfigParams": ".types", - "FeatureFlagStatusEnum": ".types", - "FeatureFlagTypeEnum": ".types", - "FedCmLogin": ".types", - "FedCmLoginGoogle": ".types", - "FedCmLoginGooglePatch": ".types", - "FedCmLoginPatch": ".types", - "FlowAction": ".types", - "FlowActionActivecampaign": ".types", - "FlowActionActivecampaignListContacts": ".types", - "FlowActionActivecampaignListContactsAction": ".types", - "FlowActionActivecampaignListContactsParams": ".types", - "FlowActionActivecampaignListContactsType": ".types", - "FlowActionActivecampaignUpsertContact": ".types", - "FlowActionActivecampaignUpsertContactAction": ".types", - "FlowActionActivecampaignUpsertContactParams": ".types", - "FlowActionActivecampaignUpsertContactParamsCustomFields": ".types", - "FlowActionActivecampaignUpsertContactType": ".types", - "FlowActionAirtable": ".types", - "FlowActionAirtableCreateRecord": ".types", - "FlowActionAirtableCreateRecordAction": ".types", - "FlowActionAirtableCreateRecordParams": ".types", - "FlowActionAirtableCreateRecordParamsFields": ".types", - "FlowActionAirtableCreateRecordType": ".types", - "FlowActionAirtableListRecords": ".types", - "FlowActionAirtableListRecordsAction": ".types", - "FlowActionAirtableListRecordsParams": ".types", - "FlowActionAirtableListRecordsType": ".types", - "FlowActionAirtableUpdateRecord": ".types", - "FlowActionAirtableUpdateRecordAction": ".types", - "FlowActionAirtableUpdateRecordParams": ".types", - "FlowActionAirtableUpdateRecordParamsFields": ".types", - "FlowActionAirtableUpdateRecordType": ".types", - "FlowActionAuth0": ".types", - "FlowActionAuth0CreateUser": ".types", - "FlowActionAuth0CreateUserAction": ".types", - "FlowActionAuth0CreateUserParams": ".types", - "FlowActionAuth0CreateUserParamsPayload": ".types", - "FlowActionAuth0CreateUserType": ".types", - "FlowActionAuth0GetUser": ".types", - "FlowActionAuth0GetUserAction": ".types", - "FlowActionAuth0GetUserParams": ".types", - "FlowActionAuth0GetUserType": ".types", - "FlowActionAuth0MakeCall": ".types", - "FlowActionAuth0MakeCallAction": ".types", - "FlowActionAuth0MakeCallParams": ".types", - "FlowActionAuth0MakeCallParamsCustomVars": ".types", - "FlowActionAuth0MakeCallType": ".types", - "FlowActionAuth0SendEmail": ".types", - "FlowActionAuth0SendEmailAction": ".types", - "FlowActionAuth0SendEmailParams": ".types", - "FlowActionAuth0SendEmailParamsFrom": ".types", - "FlowActionAuth0SendEmailParamsFromEmail": ".types", - "FlowActionAuth0SendEmailParamsTo": ".types", - "FlowActionAuth0SendEmailType": ".types", - "FlowActionAuth0SendRequest": ".types", - "FlowActionAuth0SendRequestAction": ".types", - "FlowActionAuth0SendRequestParams": ".types", - "FlowActionAuth0SendRequestParamsCustomVars": ".types", - "FlowActionAuth0SendRequestParamsHeaders": ".types", - "FlowActionAuth0SendRequestParamsMethod": ".types", - "FlowActionAuth0SendRequestParamsPayload": ".types", - "FlowActionAuth0SendRequestParamsPayloadObject": ".types", - "FlowActionAuth0SendRequestParamsQueryParams": ".types", - "FlowActionAuth0SendRequestParamsQueryParamsValue": ".types", - "FlowActionAuth0SendRequestType": ".types", - "FlowActionAuth0SendSms": ".types", - "FlowActionAuth0SendSmsAction": ".types", - "FlowActionAuth0SendSmsParams": ".types", - "FlowActionAuth0SendSmsParamsCustomVars": ".types", - "FlowActionAuth0SendSmsType": ".types", - "FlowActionAuth0UpdateUser": ".types", - "FlowActionAuth0UpdateUserAction": ".types", - "FlowActionAuth0UpdateUserParams": ".types", - "FlowActionAuth0UpdateUserParamsChanges": ".types", - "FlowActionAuth0UpdateUserType": ".types", - "FlowActionBigquery": ".types", - "FlowActionBigqueryInsertRows": ".types", - "FlowActionBigqueryInsertRowsAction": ".types", - "FlowActionBigqueryInsertRowsParams": ".types", - "FlowActionBigqueryInsertRowsParamsData": ".types", - "FlowActionBigqueryInsertRowsType": ".types", - "FlowActionClearbit": ".types", - "FlowActionClearbitFindCompany": ".types", - "FlowActionClearbitFindCompanyAction": ".types", - "FlowActionClearbitFindCompanyParams": ".types", - "FlowActionClearbitFindCompanyType": ".types", - "FlowActionClearbitFindPerson": ".types", - "FlowActionClearbitFindPersonAction": ".types", - "FlowActionClearbitFindPersonParams": ".types", - "FlowActionClearbitFindPersonType": ".types", - "FlowActionEmail": ".types", - "FlowActionEmailVerifyEmail": ".types", - "FlowActionEmailVerifyEmailAction": ".types", - "FlowActionEmailVerifyEmailParams": ".types", - "FlowActionEmailVerifyEmailParamsRules": ".types", - "FlowActionEmailVerifyEmailType": ".types", - "FlowActionFlow": ".types", - "FlowActionFlowBooleanCondition": ".types", - "FlowActionFlowBooleanConditionAction": ".types", - "FlowActionFlowBooleanConditionParams": ".types", - "FlowActionFlowBooleanConditionType": ".types", - "FlowActionFlowDelayFlow": ".types", - "FlowActionFlowDelayFlowAction": ".types", - "FlowActionFlowDelayFlowParams": ".types", - "FlowActionFlowDelayFlowParamsNumber": ".types", - "FlowActionFlowDelayFlowParamsUnits": ".types", - "FlowActionFlowDelayFlowType": ".types", - "FlowActionFlowDoNothing": ".types", - "FlowActionFlowDoNothingAction": ".types", - "FlowActionFlowDoNothingParams": ".types", - "FlowActionFlowDoNothingType": ".types", - "FlowActionFlowErrorMessage": ".types", - "FlowActionFlowErrorMessageAction": ".types", - "FlowActionFlowErrorMessageParams": ".types", - "FlowActionFlowErrorMessageType": ".types", - "FlowActionFlowMapValue": ".types", - "FlowActionFlowMapValueAction": ".types", - "FlowActionFlowMapValueParams": ".types", - "FlowActionFlowMapValueParamsCases": ".types", - "FlowActionFlowMapValueParamsFallback": ".types", - "FlowActionFlowMapValueParamsFallbackObject": ".types", - "FlowActionFlowMapValueParamsInput": ".types", - "FlowActionFlowMapValueType": ".types", - "FlowActionFlowReturnJson": ".types", - "FlowActionFlowReturnJsonAction": ".types", - "FlowActionFlowReturnJsonParams": ".types", - "FlowActionFlowReturnJsonParamsPayload": ".types", - "FlowActionFlowReturnJsonParamsPayloadObject": ".types", - "FlowActionFlowReturnJsonType": ".types", - "FlowActionFlowStoreVars": ".types", - "FlowActionFlowStoreVarsAction": ".types", - "FlowActionFlowStoreVarsParams": ".types", - "FlowActionFlowStoreVarsParamsVars": ".types", - "FlowActionFlowStoreVarsType": ".types", - "FlowActionGoogleSheets": ".types", - "FlowActionGoogleSheetsAddRow": ".types", - "FlowActionGoogleSheetsAddRowAction": ".types", - "FlowActionGoogleSheetsAddRowParams": ".types", - "FlowActionGoogleSheetsAddRowParamsSheetId": ".types", - "FlowActionGoogleSheetsAddRowParamsValues": ".types", - "FlowActionGoogleSheetsAddRowType": ".types", - "FlowActionHttp": ".types", - "FlowActionHttpSendRequest": ".types", - "FlowActionHttpSendRequestAction": ".types", - "FlowActionHttpSendRequestParams": ".types", - "FlowActionHttpSendRequestParamsBasicAuth": ".types", - "FlowActionHttpSendRequestParamsContentType": ".types", - "FlowActionHttpSendRequestParamsHeaders": ".types", - "FlowActionHttpSendRequestParamsMethod": ".types", - "FlowActionHttpSendRequestParamsPayload": ".types", - "FlowActionHttpSendRequestParamsPayloadObject": ".types", - "FlowActionHttpSendRequestParamsQueryParams": ".types", - "FlowActionHttpSendRequestParamsQueryParamsValue": ".types", - "FlowActionHttpSendRequestType": ".types", - "FlowActionHubspot": ".types", - "FlowActionHubspotEnrollContact": ".types", - "FlowActionHubspotEnrollContactAction": ".types", - "FlowActionHubspotEnrollContactParams": ".types", - "FlowActionHubspotEnrollContactParamsWorkflowId": ".types", - "FlowActionHubspotEnrollContactType": ".types", - "FlowActionHubspotGetContact": ".types", - "FlowActionHubspotGetContactAction": ".types", - "FlowActionHubspotGetContactParams": ".types", - "FlowActionHubspotGetContactType": ".types", - "FlowActionHubspotUpsertContact": ".types", - "FlowActionHubspotUpsertContactAction": ".types", - "FlowActionHubspotUpsertContactParams": ".types", - "FlowActionHubspotUpsertContactParamsProperty": ".types", - "FlowActionHubspotUpsertContactType": ".types", - "FlowActionJson": ".types", - "FlowActionJsonCreateJson": ".types", - "FlowActionJsonCreateJsonAction": ".types", - "FlowActionJsonCreateJsonParams": ".types", - "FlowActionJsonCreateJsonParamsObject": ".types", - "FlowActionJsonCreateJsonType": ".types", - "FlowActionJsonParseJson": ".types", - "FlowActionJsonParseJsonAction": ".types", - "FlowActionJsonParseJsonParams": ".types", - "FlowActionJsonParseJsonType": ".types", - "FlowActionJsonSerializeJson": ".types", - "FlowActionJsonSerializeJsonAction": ".types", - "FlowActionJsonSerializeJsonParams": ".types", - "FlowActionJsonSerializeJsonParamsObject": ".types", - "FlowActionJsonSerializeJsonParamsObjectObject": ".types", - "FlowActionJsonSerializeJsonType": ".types", - "FlowActionJwt": ".types", - "FlowActionJwtDecodeJwt": ".types", - "FlowActionJwtDecodeJwtAction": ".types", - "FlowActionJwtDecodeJwtParams": ".types", - "FlowActionJwtDecodeJwtType": ".types", - "FlowActionJwtSignJwt": ".types", - "FlowActionJwtSignJwtAction": ".types", - "FlowActionJwtSignJwtParams": ".types", - "FlowActionJwtSignJwtParamsPayload": ".types", - "FlowActionJwtSignJwtType": ".types", - "FlowActionJwtVerifyJwt": ".types", - "FlowActionJwtVerifyJwtAction": ".types", - "FlowActionJwtVerifyJwtParams": ".types", - "FlowActionJwtVerifyJwtType": ".types", - "FlowActionMailchimp": ".types", - "FlowActionMailchimpUpsertMember": ".types", - "FlowActionMailchimpUpsertMemberAction": ".types", - "FlowActionMailchimpUpsertMemberParams": ".types", - "FlowActionMailchimpUpsertMemberParamsMember": ".types", - "FlowActionMailchimpUpsertMemberParamsMemberMergeFields": ".types", - "FlowActionMailchimpUpsertMemberType": ".types", - "FlowActionMailjet": ".types", - "FlowActionMailjetSendEmail": ".types", - "FlowActionMailjetSendEmailAction": ".types", - "FlowActionMailjetSendEmailParams": ".types", - "FlowActionMailjetSendEmailParamsContent": ".types", - "FlowActionMailjetSendEmailParamsTemplateId": ".types", - "FlowActionMailjetSendEmailType": ".types", - "FlowActionOtp": ".types", - "FlowActionOtpGenerateCode": ".types", - "FlowActionOtpGenerateCodeAction": ".types", - "FlowActionOtpGenerateCodeParams": ".types", - "FlowActionOtpGenerateCodeType": ".types", - "FlowActionOtpVerifyCode": ".types", - "FlowActionOtpVerifyCodeAction": ".types", - "FlowActionOtpVerifyCodeParams": ".types", - "FlowActionOtpVerifyCodeParamsCode": ".types", - "FlowActionOtpVerifyCodeType": ".types", - "FlowActionPipedrive": ".types", - "FlowActionPipedriveAddDeal": ".types", - "FlowActionPipedriveAddDealAction": ".types", - "FlowActionPipedriveAddDealParams": ".types", - "FlowActionPipedriveAddDealParamsFields": ".types", - "FlowActionPipedriveAddDealParamsOrganizationId": ".types", - "FlowActionPipedriveAddDealParamsPersonId": ".types", - "FlowActionPipedriveAddDealParamsStageId": ".types", - "FlowActionPipedriveAddDealParamsUserId": ".types", - "FlowActionPipedriveAddDealType": ".types", - "FlowActionPipedriveAddOrganization": ".types", - "FlowActionPipedriveAddOrganizationAction": ".types", - "FlowActionPipedriveAddOrganizationParams": ".types", - "FlowActionPipedriveAddOrganizationParamsFields": ".types", - "FlowActionPipedriveAddOrganizationParamsOwnerId": ".types", - "FlowActionPipedriveAddOrganizationType": ".types", - "FlowActionPipedriveAddPerson": ".types", - "FlowActionPipedriveAddPersonAction": ".types", - "FlowActionPipedriveAddPersonParams": ".types", - "FlowActionPipedriveAddPersonParamsFields": ".types", - "FlowActionPipedriveAddPersonParamsOrganizationId": ".types", - "FlowActionPipedriveAddPersonParamsOwnerId": ".types", - "FlowActionPipedriveAddPersonType": ".types", - "FlowActionSalesforce": ".types", - "FlowActionSalesforceCreateLead": ".types", - "FlowActionSalesforceCreateLeadAction": ".types", - "FlowActionSalesforceCreateLeadParams": ".types", - "FlowActionSalesforceCreateLeadParamsPayload": ".types", - "FlowActionSalesforceCreateLeadType": ".types", - "FlowActionSalesforceGetLead": ".types", - "FlowActionSalesforceGetLeadAction": ".types", - "FlowActionSalesforceGetLeadParams": ".types", - "FlowActionSalesforceGetLeadType": ".types", - "FlowActionSalesforceSearchLeads": ".types", - "FlowActionSalesforceSearchLeadsAction": ".types", - "FlowActionSalesforceSearchLeadsParams": ".types", - "FlowActionSalesforceSearchLeadsParamsSearchField": ".types", - "FlowActionSalesforceSearchLeadsType": ".types", - "FlowActionSalesforceUpdateLead": ".types", - "FlowActionSalesforceUpdateLeadAction": ".types", - "FlowActionSalesforceUpdateLeadParams": ".types", - "FlowActionSalesforceUpdateLeadParamsPayload": ".types", - "FlowActionSalesforceUpdateLeadType": ".types", - "FlowActionSendgrid": ".types", - "FlowActionSendgridSendEmail": ".types", - "FlowActionSendgridSendEmailAction": ".types", - "FlowActionSendgridSendEmailParams": ".types", - "FlowActionSendgridSendEmailParamsPerson": ".types", - "FlowActionSendgridSendEmailType": ".types", - "FlowActionSlack": ".types", - "FlowActionSlackPostMessage": ".types", - "FlowActionSlackPostMessageAction": ".types", - "FlowActionSlackPostMessageParams": ".types", - "FlowActionSlackPostMessageParamsAttachment": ".types", - "FlowActionSlackPostMessageParamsAttachmentColor": ".types", - "FlowActionSlackPostMessageParamsAttachmentField": ".types", - "FlowActionSlackPostMessageType": ".types", - "FlowActionStripe": ".types", - "FlowActionStripeAddTaxId": ".types", - "FlowActionStripeAddTaxIdAction": ".types", - "FlowActionStripeAddTaxIdParams": ".types", - "FlowActionStripeAddTaxIdType": ".types", - "FlowActionStripeAddress": ".types", - "FlowActionStripeCreateCustomer": ".types", - "FlowActionStripeCreateCustomerAction": ".types", - "FlowActionStripeCreateCustomerParams": ".types", - "FlowActionStripeCreateCustomerType": ".types", - "FlowActionStripeCreatePortalSession": ".types", - "FlowActionStripeCreatePortalSessionAction": ".types", - "FlowActionStripeCreatePortalSessionParams": ".types", - "FlowActionStripeCreatePortalSessionType": ".types", - "FlowActionStripeDeleteTaxId": ".types", - "FlowActionStripeDeleteTaxIdAction": ".types", - "FlowActionStripeDeleteTaxIdParams": ".types", - "FlowActionStripeDeleteTaxIdType": ".types", - "FlowActionStripeFindCustomers": ".types", - "FlowActionStripeFindCustomersAction": ".types", - "FlowActionStripeFindCustomersParams": ".types", - "FlowActionStripeFindCustomersType": ".types", - "FlowActionStripeGetCustomer": ".types", - "FlowActionStripeGetCustomerAction": ".types", - "FlowActionStripeGetCustomerParams": ".types", - "FlowActionStripeGetCustomerType": ".types", - "FlowActionStripeMetadata": ".types", - "FlowActionStripeTaxId": ".types", - "FlowActionStripeUpdateCustomer": ".types", - "FlowActionStripeUpdateCustomerAction": ".types", - "FlowActionStripeUpdateCustomerParams": ".types", - "FlowActionStripeUpdateCustomerType": ".types", - "FlowActionTelegram": ".types", - "FlowActionTelegramSendMessage": ".types", - "FlowActionTelegramSendMessageAction": ".types", - "FlowActionTelegramSendMessageParams": ".types", - "FlowActionTelegramSendMessageType": ".types", - "FlowActionTwilio": ".types", - "FlowActionTwilioMakeCall": ".types", - "FlowActionTwilioMakeCallAction": ".types", - "FlowActionTwilioMakeCallParams": ".types", - "FlowActionTwilioMakeCallType": ".types", - "FlowActionTwilioSendSms": ".types", - "FlowActionTwilioSendSmsAction": ".types", - "FlowActionTwilioSendSmsParams": ".types", - "FlowActionTwilioSendSmsType": ".types", - "FlowActionWhatsapp": ".types", - "FlowActionWhatsappSendMessage": ".types", - "FlowActionWhatsappSendMessageAction": ".types", - "FlowActionWhatsappSendMessageParams": ".types", - "FlowActionWhatsappSendMessageParamsPayload": ".types", - "FlowActionWhatsappSendMessageParamsPayloadObject": ".types", - "FlowActionWhatsappSendMessageParamsType": ".types", - "FlowActionWhatsappSendMessageType": ".types", - "FlowActionXml": ".types", - "FlowActionXmlParseXml": ".types", - "FlowActionXmlParseXmlAction": ".types", - "FlowActionXmlParseXmlParams": ".types", - "FlowActionXmlParseXmlType": ".types", - "FlowActionXmlSerializeXml": ".types", - "FlowActionXmlSerializeXmlAction": ".types", - "FlowActionXmlSerializeXmlParams": ".types", - "FlowActionXmlSerializeXmlParamsObject": ".types", - "FlowActionXmlSerializeXmlParamsObjectObject": ".types", - "FlowActionXmlSerializeXmlType": ".types", - "FlowActionZapier": ".types", - "FlowActionZapierTriggerWebhook": ".types", - "FlowActionZapierTriggerWebhookAction": ".types", - "FlowActionZapierTriggerWebhookParams": ".types", - "FlowActionZapierTriggerWebhookParamsMethod": ".types", - "FlowActionZapierTriggerWebhookType": ".types", - "FlowExecutionDebug": ".types", - "FlowExecutionSummary": ".types", - "FlowSummary": ".types", - "FlowsVaultConnectioSetupApiKey": ".types", - "FlowsVaultConnectioSetupApiKeyWithBaseUrl": ".types", - "FlowsVaultConnectioSetupBigqueryOauthJwt": ".types", - "FlowsVaultConnectioSetupHttpBearer": ".types", - "FlowsVaultConnectioSetupJwt": ".types", - "FlowsVaultConnectioSetupJwtAlgorithmEnum": ".types", - "FlowsVaultConnectioSetupMailjetApiKey": ".types", - "FlowsVaultConnectioSetupOauthApp": ".types", - "FlowsVaultConnectioSetupOauthCode": ".types", - "FlowsVaultConnectioSetupSecretApiKey": ".types", - "FlowsVaultConnectioSetupStripeKeyPair": ".types", - "FlowsVaultConnectioSetupToken": ".types", - "FlowsVaultConnectioSetupTwilioApiKey": ".types", - "FlowsVaultConnectioSetupTypeApiKeyEnum": ".types", - "FlowsVaultConnectioSetupTypeBearerEnum": ".types", - "FlowsVaultConnectioSetupTypeJwtEnum": ".types", - "FlowsVaultConnectioSetupTypeKeyPairEnum": ".types", - "FlowsVaultConnectioSetupTypeOauthAppEnum": ".types", - "FlowsVaultConnectioSetupTypeOauthCodeEnum": ".types", - "FlowsVaultConnectioSetupTypeOauthJwtEnum": ".types", - "FlowsVaultConnectioSetupTypeTokenEnum": ".types", - "FlowsVaultConnectioSetupTypeWebhookEnum": ".types", - "FlowsVaultConnectioSetupWebhook": ".types", - "FlowsVaultConnectionAppIdActivecampaignEnum": ".types", - "FlowsVaultConnectionAppIdAirtableEnum": ".types", - "FlowsVaultConnectionAppIdAuth0Enum": ".types", - "FlowsVaultConnectionAppIdBigqueryEnum": ".types", - "FlowsVaultConnectionAppIdClearbitEnum": ".types", - "FlowsVaultConnectionAppIdDocusignEnum": ".types", - "FlowsVaultConnectionAppIdGoogleSheetsEnum": ".types", - "FlowsVaultConnectionAppIdHttpEnum": ".types", - "FlowsVaultConnectionAppIdHubspotEnum": ".types", - "FlowsVaultConnectionAppIdJwtEnum": ".types", - "FlowsVaultConnectionAppIdMailchimpEnum": ".types", - "FlowsVaultConnectionAppIdMailjetEnum": ".types", - "FlowsVaultConnectionAppIdPipedriveEnum": ".types", - "FlowsVaultConnectionAppIdSalesforceEnum": ".types", - "FlowsVaultConnectionAppIdSendgridEnum": ".types", - "FlowsVaultConnectionAppIdSlackEnum": ".types", - "FlowsVaultConnectionAppIdStripeEnum": ".types", - "FlowsVaultConnectionAppIdTelegramEnum": ".types", - "FlowsVaultConnectionAppIdTwilioEnum": ".types", - "FlowsVaultConnectionAppIdWhatsappEnum": ".types", - "FlowsVaultConnectionAppIdZapierEnum": ".types", - "FlowsVaultConnectionHttpApiKeySetup": ".types", - "FlowsVaultConnectionHttpApiKeySetupInEnum": ".types", - "FlowsVaultConnectionHttpBasicAuthSetup": ".types", - "FlowsVaultConnectionHttpOauthClientCredentialsSetup": ".types", - "FlowsVaultConnectionSetupTypeApiKeyEnum": ".types", - "FlowsVaultConnectionSetupTypeBasicAuthEnum": ".types", - "FlowsVaultConnectionSetupTypeOauthClientCredentialsEnum": ".types", - "FlowsVaultConnectionSummary": ".types", - "ForbiddenError": ".errors", - "ForbiddenSchema": ".types", - "ForbiddenSchemaError": ".types", - "FormBlock": ".types", - "FormBlockDivider": ".types", - "FormBlockDividerConfig": ".types", - "FormBlockHtml": ".types", - "FormBlockHtmlConfig": ".types", - "FormBlockImage": ".types", - "FormBlockImageConfig": ".types", - "FormBlockImageConfigPositionEnum": ".types", - "FormBlockJumpButton": ".types", - "FormBlockJumpButtonConfig": ".types", - "FormBlockJumpButtonConfigStyle": ".types", - "FormBlockNextButton": ".types", - "FormBlockNextButtonConfig": ".types", - "FormBlockPreviousButton": ".types", - "FormBlockPreviousButtonConfig": ".types", - "FormBlockResendButton": ".types", - "FormBlockResendButtonConfig": ".types", - "FormBlockResendButtonConfigTextAlignmentEnum": ".types", - "FormBlockRichText": ".types", - "FormBlockRichTextConfig": ".types", - "FormBlockTypeDividerConst": ".types", - "FormBlockTypeHtmlConst": ".types", - "FormBlockTypeImageConst": ".types", - "FormBlockTypeJumpButtonConst": ".types", - "FormBlockTypeNextButtonConst": ".types", - "FormBlockTypePreviousButtonConst": ".types", - "FormBlockTypeResendButtonConst": ".types", - "FormBlockTypeRichTextConst": ".types", - "FormComponent": ".types", - "FormComponentCategoryBlockConst": ".types", - "FormComponentCategoryFieldConst": ".types", - "FormComponentCategoryWidgetConst": ".types", - "FormEndingNode": ".types", - "FormEndingNodeAfterSubmit": ".types", - "FormEndingNodeId": ".types", - "FormEndingNodeNullable": ".types", - "FormEndingNodeRedirection": ".types", - "FormEndingNodeResumeFlowTrueConst": ".types", - "FormField": ".types", - "FormFieldBoolean": ".types", - "FormFieldBooleanConfig": ".types", - "FormFieldBooleanConfigOptions": ".types", - "FormFieldCards": ".types", - "FormFieldCardsConfig": ".types", - "FormFieldCardsConfigOption": ".types", - "FormFieldChoice": ".types", - "FormFieldChoiceConfig": ".types", - "FormFieldChoiceConfigAllowOther": ".types", - "FormFieldChoiceConfigAllowOtherEnabledTrueEnum": ".types", - "FormFieldChoiceConfigOption": ".types", - "FormFieldCustom": ".types", - "FormFieldCustomConfig": ".types", - "FormFieldCustomConfigParams": ".types", - "FormFieldCustomConfigSchema": ".types", - "FormFieldDate": ".types", - "FormFieldDateConfig": ".types", - "FormFieldDateConfigFormatEnum": ".types", - "FormFieldDropdown": ".types", - "FormFieldDropdownConfig": ".types", - "FormFieldDropdownConfigOption": ".types", - "FormFieldEmail": ".types", - "FormFieldEmailConfig": ".types", - "FormFieldFile": ".types", - "FormFieldFileConfig": ".types", - "FormFieldFileConfigCategoryEnum": ".types", - "FormFieldFileConfigStorage": ".types", - "FormFieldFileConfigStorageTypeEnum": ".types", - "FormFieldLegal": ".types", - "FormFieldLegalConfig": ".types", - "FormFieldNumber": ".types", - "FormFieldNumberConfig": ".types", - "FormFieldPassword": ".types", - "FormFieldPasswordConfig": ".types", - "FormFieldPasswordConfigHashEnum": ".types", - "FormFieldPayment": ".types", - "FormFieldPaymentConfig": ".types", - "FormFieldPaymentConfigCharge": ".types", - "FormFieldPaymentConfigChargeOneOff": ".types", - "FormFieldPaymentConfigChargeOneOffCurrencyEnum": ".types", - "FormFieldPaymentConfigChargeOneOffOneOff": ".types", - "FormFieldPaymentConfigChargeOneOffOneOffAmount": ".types", - "FormFieldPaymentConfigChargeSubscription": ".types", - "FormFieldPaymentConfigChargeTypeOneOffConst": ".types", - "FormFieldPaymentConfigChargeTypeSubscriptionConst": ".types", - "FormFieldPaymentConfigCredentials": ".types", - "FormFieldPaymentConfigCustomer": ".types", - "FormFieldPaymentConfigFieldProperties": ".types", - "FormFieldPaymentConfigFields": ".types", - "FormFieldPaymentConfigProviderEnum": ".types", - "FormFieldPaymentConfigSubscription": ".types", - "FormFieldSocial": ".types", - "FormFieldSocialConfig": ".types", - "FormFieldTel": ".types", - "FormFieldTelConfig": ".types", - "FormFieldTelConfigStrings": ".types", - "FormFieldText": ".types", - "FormFieldTextConfig": ".types", - "FormFieldTypeBooleanConst": ".types", - "FormFieldTypeCardsConst": ".types", - "FormFieldTypeChoiceConst": ".types", - "FormFieldTypeCustomConst": ".types", - "FormFieldTypeDateConst": ".types", - "FormFieldTypeDropdownConst": ".types", - "FormFieldTypeEmailConst": ".types", - "FormFieldTypeFileConst": ".types", - "FormFieldTypeLegalConst": ".types", - "FormFieldTypeNumberConst": ".types", - "FormFieldTypePasswordConst": ".types", - "FormFieldTypePaymentConst": ".types", - "FormFieldTypeSocialConst": ".types", - "FormFieldTypeTelConst": ".types", - "FormFieldTypeTextConst": ".types", - "FormFieldTypeUrlConst": ".types", - "FormFieldUrl": ".types", - "FormFieldUrlConfig": ".types", - "FormFlow": ".types", - "FormFlowConfig": ".types", - "FormHiddenField": ".types", - "FormLanguages": ".types", - "FormLanguagesNullable": ".types", - "FormMessages": ".types", - "FormMessagesCustom": ".types", - "FormMessagesError": ".types", - "FormMessagesNullable": ".types", - "FormNode": ".types", - "FormNodeCoordinates": ".types", - "FormNodeList": ".types", - "FormNodeListNullable": ".types", - "FormNodePointer": ".types", - "FormNodeTypeFlowConst": ".types", - "FormNodeTypeRouterConst": ".types", - "FormNodeTypeStepConst": ".types", - "FormRouter": ".types", - "FormRouterConfig": ".types", - "FormRouterRule": ".types", - "FormStartNode": ".types", - "FormStartNodeNullable": ".types", - "FormStep": ".types", - "FormStepComponentList": ".types", - "FormStepConfig": ".types", - "FormStyle": ".types", - "FormStyleNullable": ".types", - "FormSummary": ".types", - "FormTranslations": ".types", - "FormTranslationsNullable": ".types", - "FormWidget": ".types", - "FormWidgetAuth0VerifiableCredentials": ".types", - "FormWidgetAuth0VerifiableCredentialsConfig": ".types", - "FormWidgetGMapsAddress": ".types", - "FormWidgetGMapsAddressConfig": ".types", - "FormWidgetRecaptcha": ".types", - "FormWidgetRecaptchaConfig": ".types", - "FormWidgetTypeAuth0VerifiableCredentialsConst": ".types", - "FormWidgetTypeGMapsAddressConst": ".types", - "FormWidgetTypeRecaptchaConst": ".types", - "FormsRequestParametersHydrateEnum": ".types", - "GatewayTimeoutError": ".errors", - "GetActionExecutionResponseContent": ".types", - "GetActionModuleActionsResponseContent": ".types", - "GetActionModuleResponseContent": ".types", - "GetActionModuleVersionResponseContent": ".types", - "GetActionModuleVersionsResponseContent": ".types", - "GetActionModulesResponseContent": ".types", - "GetActionResponseContent": ".types", - "GetActionVersionResponseContent": ".types", - "GetActiveUsersCountStatsResponseContent": ".types", - "GetAculResponseContent": ".types", - "GetAllKeysNetworkAclsResponseContent": ".types", - "GetAttackProtectionCaptchaResponseContent": ".types", - "GetBotDetectionSettingsResponseContent": ".types", - "GetBrandingDefaultThemeResponseContent": ".types", - "GetBrandingPhoneProviderResponseContent": ".types", - "GetBrandingResponseContent": ".types", - "GetBrandingThemeResponseContent": ".types", - "GetBreachedPasswordDetectionSettingsResponseContent": ".types", - "GetBruteForceSettingsResponseContent": ".types", - "GetClientCredentialResponseContent": ".types", - "GetClientGrantResponseContent": ".types", - "GetClientResponseContent": ".types", - "GetConnectionEnabledClientsResponseContent": ".types", - "GetConnectionProfileResponseContent": ".types", - "GetConnectionProfileTemplateResponseContent": ".types", - "GetConnectionResponseContent": ".types", - "GetCustomDomainResponseContent": ".types", - "GetCustomSigningKeysResponseContent": ".types", - "GetCustomTextsByLanguageResponseContent": ".types", - "GetDefaultCanonicalDomainResponseContent": ".types", - "GetDefaultCustomDomainResponseContent": ".types", - "GetDefaultDomainResponseContent": ".types", - "GetDirectoryProvisioningDefaultMappingResponseContent": ".types", - "GetDirectoryProvisioningResponseContent": ".types", - "GetEmailFactorSettingsResponseContent": ".types", - "GetEmailProviderResponseContent": ".types", - "GetEmailTemplateResponseContent": ".types", - "GetEncryptionKeyResponseContent": ".types", - "GetEventStreamDeliveryHistoryResponseContent": ".types", - "GetEventStreamResponseContent": ".types", - "GetExperimentResponseContent": ".types", - "GetFeatureFlagResponseContent": ".types", - "GetFlowExecutionRequestParametersHydrateEnum": ".types", - "GetFlowExecutionResponseContent": ".types", - "GetFlowRequestParametersHydrateEnum": ".types", - "GetFlowResponseContent": ".types", - "GetFlowsVaultConnectionResponseContent": ".types", - "GetFormResponseContent": ".types", - "GetGroupMembersResponseContent": ".types", - "GetGroupResponseContent": ".types", - "GetGuardianEnrollmentResponseContent": ".types", - "GetGuardianFactorDuoSettingsResponseContent": ".types", - "GetGuardianFactorPhoneMessageTypesResponseContent": ".types", - "GetGuardianFactorPhoneTemplatesResponseContent": ".types", - "GetGuardianFactorSmsTemplatesResponseContent": ".types", - "GetGuardianFactorsProviderApnsResponseContent": ".types", - "GetGuardianFactorsProviderPhoneResponseContent": ".types", - "GetGuardianFactorsProviderPhoneTwilioResponseContent": ".types", - "GetGuardianFactorsProviderPushNotificationResponseContent": ".types", - "GetGuardianFactorsProviderSmsResponseContent": ".types", - "GetGuardianFactorsProviderSmsTwilioResponseContent": ".types", - "GetGuardianFactorsProviderSnsResponseContent": ".types", - "GetGuardianSettingsResponseContent": ".types", - "GetHookResponseContent": ".types", - "GetHookSecretResponseContent": ".types", - "GetJobErrorResponseContent": ".types", - "GetJobGenericErrorResponseContent": ".types", - "GetJobImportUserError": ".types", - "GetJobResponseContent": ".types", - "GetJobSummary": ".types", - "GetJobUserError": ".types", - "GetLogResponseContent": ".types", - "GetLogStreamResponseContent": ".types", - "GetNetworkAclsResponseContent": ".types", - "GetOrganizationAllConnectionResponseContent": ".types", - "GetOrganizationByNameResponseContent": ".types", - "GetOrganizationClientResponseContent": ".types", - "GetOrganizationConnectionResponseContent": ".types", - "GetOrganizationDiscoveryDomainByNameResponseContent": ".types", - "GetOrganizationDiscoveryDomainResponseContent": ".types", - "GetOrganizationInvitationResponseContent": ".types", - "GetOrganizationResponseContent": ".types", - "GetPartialsResponseContent": ".types", - "GetPhoneFactorSettingsResponseContent": ".types", - "GetPhoneProviderProtectionResponseContent": ".types", - "GetPhoneTemplateResponseContent": ".types", - "GetRateLimitPolicyResponseContent": ".types", - "GetRefreshTokenResponseContent": ".types", - "GetRefreshTokensPaginatedResponseContent": ".types", - "GetResourceServerResponseContent": ".types", - "GetRiskAssessmentsSettingsNewDeviceResponseContent": ".types", - "GetRiskAssessmentsSettingsResponseContent": ".types", - "GetRoleResponseContent": ".types", - "GetRuleResponseContent": ".types", - "GetScimConfigurationDefaultMappingResponseContent": ".types", - "GetScimConfigurationResponseContent": ".types", - "GetScimTokensResponseContent": ".types", - "GetSegmentResponseContent": ".types", - "GetSelfServiceProfileResponseContent": ".types", - "GetSessionResponseContent": ".types", - "GetSettingsResponseContent": ".types", - "GetSigningKeysResponseContent": ".types", - "GetSupplementalSignalsResponseContent": ".types", - "GetSuspiciousIpThrottlingSettingsResponseContent": ".types", - "GetTenantSettingsResponseContent": ".types", - "GetTokenExchangeProfileResponseContent": ".types", - "GetUniversalLoginTemplate": ".types", - "GetUniversalLoginTemplateResponseContent": ".types", - "GetUserAttributeProfileResponseContent": ".types", - "GetUserAttributeProfileTemplateResponseContent": ".types", - "GetUserAuthenticationMethodResponseContent": ".types", - "GetUserGroupsPaginatedResponseContent": ".types", - "GetUserResponseContent": ".types", - "GetVariationResponseContent": ".types", - "GetVerifiableCredentialTemplateResponseContent": ".types", - "GoneError": ".errors", - "GoogleAccountLinkingConfiguration": ".types", - "GoogleAccountLinkingConfigurationCreate": ".types", - "GoogleAccountLinkingConfigurationOrNull": ".types", - "Group": ".types", - "GroupMember": ".types", - "GroupMemberTypeEnum": ".types", - "GroupTypeEnum": ".types", - "GuardianEnrollmentDate": ".types", - "GuardianEnrollmentFactorEnum": ".types", - "GuardianEnrollmentStatus": ".types", - "GuardianFactor": ".types", - "GuardianFactorNameEnum": ".types", - "GuardianFactorPhoneFactorMessageTypeEnum": ".types", - "GuardianFactorSettings": ".types", - "GuardianFactorsProviderPushNotificationProviderDataEnum": ".types", - "GuardianFactorsProviderSmsProviderEnum": ".types", - "Hook": ".types", - "HookDependencies": ".types", - "HookTriggerIdEnum": ".types", - "HttpCustomHeader": ".types", - "Identity": ".types", - "IdentityAssertionAuthorizationGrant": ".types", - "IdentityProviderEnum": ".types", - "IdentityProviderOnlyAuth0Enum": ".types", - "ImportEncryptionKeyResponseContent": ".types", - "IncludeUserProfileSizeHeaderEnum": ".types", - "Integration": ".types", - "IntegrationFeatureTypeEnum": ".types", - "IntegrationRelease": ".types", - "IntegrationRequiredParam": ".types", - "IntegrationRequiredParamOption": ".types", - "IntegrationRequiredParamTypeEnum": ".types", - "IntegrationSemVer": ".types", - "InternalServerError": ".errors", - "InternalServerErrorBody": ".types", - "InternalServerErrorBodyError": ".types", - "JobFileFormatEnum": ".types", - "LinkedClientConfiguration": ".types", - "ListActionBindingsPaginatedResponseContent": ".types", - "ListActionTriggersResponseContent": ".types", - "ListActionVersionsPaginatedResponseContent": ".types", - "ListActionsPaginatedResponseContent": ".types", - "ListAculsOffsetPaginatedResponseContent": ".types", - "ListAculsResponseContentItem": ".types", - "ListAgentsResponseContent": ".types", - "ListBrandingPhoneProvidersResponseContent": ".types", - "ListClientConnectionsResponseContent": ".types", - "ListClientGrantOrganizationsPaginatedResponseContent": ".types", - "ListClientGrantPaginatedResponseContent": ".types", - "ListClientProfilesPaginatedResponseContent": ".types", - "ListClientsOffsetPaginatedResponseContent": ".types", - "ListConnectionProfileTemplateResponseContent": ".types", - "ListConnectionProfilesPaginatedResponseContent": ".types", - "ListConnectionsCheckpointPaginatedResponseContent": ".types", - "ListCustomDomainsResponseContent": ".types", - "ListDeviceCredentialsOffsetPaginatedResponseContent": ".types", - "ListDirectoryProvisioningsResponseContent": ".types", - "ListEncryptionKeyOffsetPaginatedResponseContent": ".types", - "ListEventStreamDeliveriesResponseContent": ".types", - "ListEventStreamsResponseContent": ".types", - "ListExperimentsResponseContent": ".types", - "ListFeatureFlagsResponseContent": ".types", - "ListFlowExecutionsPaginatedResponseContent": ".types", - "ListFlowsOffsetPaginatedResponseContent": ".types", - "ListFlowsRequestParametersHydrateEnum": ".types", - "ListFlowsVaultConnectionsOffsetPaginatedResponseContent": ".types", - "ListFormsOffsetPaginatedResponseContent": ".types", - "ListGroupRolesResponseContent": ".types", - "ListGroupsPaginatedResponseContent": ".types", - "ListGuardianPoliciesResponseContent": ".types", - "ListHooksOffsetPaginatedResponseContent": ".types", - "ListLogOffsetPaginatedResponseContent": ".types", - "ListNetworkAclsOffsetPaginatedResponseContent": ".types", - "ListOrganizationAllConnectionsOffsetPaginatedResponseContent": ".types", - "ListOrganizationClientGrantsOffsetPaginatedResponseContent": ".types", - "ListOrganizationClientsResponseContent": ".types", - "ListOrganizationConnectionsOffsetPaginatedResponseContent": ".types", - "ListOrganizationDiscoveryDomainsResponseContent": ".types", - "ListOrganizationGroupRolesResponseContent": ".types", - "ListOrganizationGroupsResponseContent": ".types", - "ListOrganizationInvitationsOffsetPaginatedResponseContent": ".types", - "ListOrganizationMemberEffectiveRolesResponseContent": ".types", - "ListOrganizationMemberRoleSourceGroupsResponseContent": ".types", - "ListOrganizationMemberRolesOffsetPaginatedResponseContent": ".types", - "ListOrganizationMembersPaginatedResponseContent": ".types", - "ListOrganizationRoleGroupsResponseContent": ".types", - "ListOrganizationRoleMembersResponseContent": ".types", - "ListOrganizationsPaginatedResponseContent": ".types", - "ListPhoneTemplatesResponseContent": ".types", - "ListPortalsResponseContent": ".types", - "ListRateLimitPoliciesPaginatedResponseContent": ".types", - "ListRefreshTokensPaginatedResponseContent": ".types", - "ListResourceServerOffsetPaginatedResponseContent": ".types", - "ListRoleGroupsResponseContent": ".types", - "ListRolePermissionsOffsetPaginatedResponseContent": ".types", - "ListRoleUsersPaginatedResponseContent": ".types", - "ListRolesOffsetPaginatedResponseContent": ".types", - "ListRulesOffsetPaginatedResponseContent": ".types", - "ListScimConfigurationsResponseContent": ".types", - "ListSegmentsResponseContent": ".types", - "ListSelfServiceProfileCustomTextResponseContent": ".types", - "ListSelfServiceProfilesPaginatedResponseContent": ".types", - "ListSynchronizedGroupsResponseContent": ".types", - "ListTokenExchangeProfileResponseContent": ".types", - "ListUserAttributeProfileTemplateResponseContent": ".types", - "ListUserAttributeProfilesPaginatedResponseContent": ".types", - "ListUserAuthenticationMethodsOffsetPaginatedResponseContent": ".types", - "ListUserBlocksByIdentifierResponseContent": ".types", - "ListUserBlocksResponseContent": ".types", - "ListUserConnectedAccountsResponseContent": ".types", - "ListUserConsentSigningKeysResponseContent": ".types", - "ListUserEffectivePermissionRoleSourcesResponseContent": ".types", - "ListUserEffectivePermissionsResponseContent": ".types", - "ListUserEffectiveRolesResponseContent": ".types", - "ListUserGrantsOffsetPaginatedResponseContent": ".types", - "ListUserOrganizationsOffsetPaginatedResponseContent": ".types", - "ListUserPermissionsOffsetPaginatedResponseContent": ".types", - "ListUserRoleSourceGroupsResponseContent": ".types", - "ListUserRolesOffsetPaginatedResponseContent": ".types", - "ListUserSessionsPaginatedResponseContent": ".types", - "ListUsersOffsetPaginatedResponseContent": ".types", - "ListVariationsResponseContent": ".types", - "ListVerifiableCredentialTemplatesPaginatedResponseContent": ".types", - "Log": ".types", - "LogDate": ".types", - "LogDateObject": ".types", - "LogDetails": ".types", - "LogLocationInfo": ".types", - "LogSecurityContext": ".types", - "LogStreamDatadogEnum": ".types", - "LogStreamDatadogRegionEnum": ".types", - "LogStreamDatadogResponseSchema": ".types", - "LogStreamDatadogSink": ".types", - "LogStreamEventBridgeEnum": ".types", - "LogStreamEventBridgeResponseSchema": ".types", - "LogStreamEventBridgeSink": ".types", - "LogStreamEventBridgeSinkRegionEnum": ".types", - "LogStreamEventGridEnum": ".types", - "LogStreamEventGridRegionEnum": ".types", - "LogStreamEventGridResponseSchema": ".types", - "LogStreamEventGridSink": ".types", - "LogStreamFilter": ".types", - "LogStreamFilterGroupNameEnum": ".types", - "LogStreamFilterTypeEnum": ".types", - "LogStreamHttpContentFormatEnum": ".types", - "LogStreamHttpEnum": ".types", - "LogStreamHttpResponseSchema": ".types", - "LogStreamHttpSink": ".types", - "LogStreamMixpanelEnum": ".types", - "LogStreamMixpanelRegionEnum": ".types", - "LogStreamMixpanelResponseSchema": ".types", - "LogStreamMixpanelSink": ".types", - "LogStreamMixpanelSinkPatch": ".types", - "LogStreamPiiAlgorithmEnum": ".types", - "LogStreamPiiConfig": ".types", - "LogStreamPiiLogFieldsEnum": ".types", - "LogStreamPiiMethodEnum": ".types", - "LogStreamResponseSchema": ".types", - "LogStreamSegmentEnum": ".types", - "LogStreamSegmentResponseSchema": ".types", - "LogStreamSegmentSink": ".types", - "LogStreamSegmentSinkWriteKey": ".types", - "LogStreamSinkPatch": ".types", - "LogStreamSplunkEnum": ".types", - "LogStreamSplunkResponseSchema": ".types", - "LogStreamSplunkSink": ".types", - "LogStreamStatusEnum": ".types", - "LogStreamSumoEnum": ".types", - "LogStreamSumoResponseSchema": ".types", - "LogStreamSumoSink": ".types", "ManagementClient": ".management_client", - "MdlPresentationProperties": ".types", - "MdlPresentationRequest": ".types", - "MdlPresentationRequestProperties": ".types", - "MfaPolicyEnum": ".types", - "NativeSocialLogin": ".types", - "NativeSocialLoginApple": ".types", - "NativeSocialLoginApplePatch": ".types", - "NativeSocialLoginFacebook": ".types", - "NativeSocialLoginFacebookPatch": ".types", - "NativeSocialLoginGoogle": ".types", - "NativeSocialLoginGooglePatch": ".types", - "NativeSocialLoginPatch": ".types", - "NetworkAclAction": ".types", - "NetworkAclActionAllowEnum": ".types", - "NetworkAclActionBlockEnum": ".types", - "NetworkAclActionLogEnum": ".types", - "NetworkAclActionRedirectEnum": ".types", - "NetworkAclHttpMessageSignature": ".types", - "NetworkAclHttpMessageSignatureKey": ".types", - "NetworkAclHttpMessageSignatureKeys": ".types", - "NetworkAclKey": ".types", - "NetworkAclKeyAlgorithmEnum": ".types", - "NetworkAclMatch": ".types", - "NetworkAclMatchConnectingIpv4Cidr": ".types", - "NetworkAclMatchConnectingIpv6Cidr": ".types", - "NetworkAclMatchIpv4Cidr": ".types", - "NetworkAclMatchIpv6Cidr": ".types", - "NetworkAclRule": ".types", - "NetworkAclRuleMatchAllEnum": ".types", - "NetworkAclRuleScopeEnum": ".types", - "NetworkAclsResponseContent": ".types", - "NotFoundError": ".errors", - "NotFoundErrorBody": ".types", - "NotFoundErrorBodyError": ".types", - "NotFoundSchema": ".types", - "NotFoundSchemaError": ".types", - "OauthScope": ".types", - "Organization": ".types", - "OrganizationAccessLevelEnum": ".types", - "OrganizationAccessLevelEnumWithNull": ".types", - "OrganizationAllConnectionPost": ".types", - "OrganizationBranding": ".types", - "OrganizationBrandingColors": ".types", - "OrganizationClient": ".types", - "OrganizationClientAssociation": ".types", - "OrganizationClientGrant": ".types", - "OrganizationClientMetadata": ".types", - "OrganizationClientMetadataOrganizationUsageEnum": ".types", - "OrganizationConnection": ".types", - "OrganizationConnectionInformation": ".types", - "OrganizationDiscoveryDomain": ".types", - "OrganizationDiscoveryDomainStatus": ".types", - "OrganizationEnabledConnection": ".types", - "OrganizationInvitation": ".types", - "OrganizationInvitationInvitee": ".types", - "OrganizationInvitationInviter": ".types", - "OrganizationMember": ".types", - "OrganizationMemberAccessLevelEnum": ".types", - "OrganizationMemberAccessLevelEnumWithNull": ".types", - "OrganizationMemberEffectiveRole": ".types", - "OrganizationMemberEffectiveRoleSource": ".types", - "OrganizationMemberRole": ".types", - "OrganizationMetadata": ".types", - "OrganizationSortFieldEnum": ".types", - "OrganizationThirdPartyClientAccessEnum": ".types", - "OrganizationUsageEnum": ".types", - "PageComponent": ".types", - "PageComponentAuth0Form": ".types", - "PageComponentAuth0FormConfig": ".types", - "PageComponentAuth0MediaImage": ".types", - "PageComponentAuth0MediaImageConfig": ".types", - "PageComponentAuth0MyAccountMfaManagement": ".types", - "PageComponentAuth0MyAccountMfaManagementConfig": ".types", - "PageComponentAuth0MyAccountPasskeyManagement": ".types", - "PageComponentAuth0MyAccountPasskeyManagementConfig": ".types", - "PageComponentAuth0MyOrganizationDetailsEdit": ".types", - "PageComponentAuth0MyOrganizationDetailsEditConfig": ".types", - "PageComponentAuth0MyOrganizationDomainTable": ".types", - "PageComponentAuth0MyOrganizationDomainTableConfig": ".types", - "PageComponentAuth0MyOrganizationMemberManagement": ".types", - "PageComponentAuth0MyOrganizationMemberManagementConfig": ".types", - "PageComponentAuth0StructureSection": ".types", - "PageComponentAuth0StructureSectionConfig": ".types", - "PageComponentAuth0StructureSectionVariantEnum": ".types", - "PageComponentAuth0StructureSeparator": ".types", - "PageComponentAuth0StructureSeparatorConfig": ".types", - "PageComponentAuth0StructureSeparatorVariantEnum": ".types", - "PageComponentAuth0TypographyHeading": ".types", - "PageComponentAuth0TypographyHeadingConfig": ".types", - "PageComponentAuth0TypographyRichText": ".types", - "PageComponentAuth0TypographyRichTextConfig": ".types", - "PageComponentNoChildren": ".types", - "PageComponentNoChildren_PageComponentAuth0Form": ".types", - "PageComponentNoChildren_PageComponentAuth0MediaImage": ".types", - "PageComponentNoChildren_PageComponentAuth0MyAccountMfaManagement": ".types", - "PageComponentNoChildren_PageComponentAuth0MyAccountPasskeyManagement": ".types", - "PageComponentNoChildren_PageComponentAuth0MyOrganizationDetailsEdit": ".types", - "PageComponentNoChildren_PageComponentAuth0MyOrganizationDomainTable": ".types", - "PageComponentNoChildren_PageComponentAuth0MyOrganizationMemberManagement": ".types", - "PageComponentNoChildren_PageComponentAuth0StructureSeparator": ".types", - "PageComponentNoChildren_PageComponentAuth0TypographyHeading": ".types", - "PageComponentNoChildren_PageComponentAuth0TypographyRichText": ".types", - "PageComponent_PageComponentAuth0Form": ".types", - "PageComponent_PageComponentAuth0MediaImage": ".types", - "PageComponent_PageComponentAuth0MyAccountMfaManagement": ".types", - "PageComponent_PageComponentAuth0MyAccountPasskeyManagement": ".types", - "PageComponent_PageComponentAuth0MyOrganizationDetailsEdit": ".types", - "PageComponent_PageComponentAuth0MyOrganizationDomainTable": ".types", - "PageComponent_PageComponentAuth0MyOrganizationMemberManagement": ".types", - "PageComponent_PageComponentAuth0StructureSection": ".types", - "PageComponent_PageComponentAuth0StructureSeparator": ".types", - "PageComponent_PageComponentAuth0TypographyHeading": ".types", - "PageComponent_PageComponentAuth0TypographyRichText": ".types", - "PageSlug": ".types", - "PartialGroupsEnum": ".types", - "PartialPhoneTemplateContent": ".types", - "PasswordCharacterTypeEnum": ".types", - "PasswordCharacterTypeRulePolicyEnum": ".types", - "PasswordDefaultDictionariesEnum": ".types", - "PasswordDictionaryMatchTypeEnum": ".types", - "PasswordIdenticalCharactersPolicyEnum": ".types", - "PasswordMaxLengthExceededPolicyEnum": ".types", - "PasswordSequentialCharactersPolicyEnum": ".types", - "PatchClientCredentialResponseContent": ".types", - "PatchPhoneProviderProtectionResponseContent": ".types", - "PatchRateLimitPolicyConfigurationRequestContent": ".types", - "PatchRateLimitPolicyConfigurationRequestContentAction": ".types", - "PatchRateLimitPolicyConfigurationRequestContentActionAction": ".types", - "PatchRateLimitPolicyConfigurationRequestContentOne": ".types", - "PatchRateLimitPolicyConfigurationRequestContentOneAction": ".types", - "PatchRateLimitPolicyConfigurationRequestContentZero": ".types", - "PatchRateLimitPolicyConfigurationRequestContentZeroAction": ".types", - "PatchSupplementalSignalsResponseContent": ".types", - "PaymentRequiredError": ".errors", - "PermissionRequestPayload": ".types", - "PermissionsResponsePayload": ".types", - "PhoneAttribute": ".types", - "PhoneAttributeIdentifier": ".types", - "PhoneProviderChannelEnum": ".types", - "PhoneProviderConfiguration": ".types", - "PhoneProviderCredentials": ".types", - "PhoneProviderDeliveryMethodEnum": ".types", - "PhoneProviderNameEnum": ".types", - "PhoneProviderProtectionBackoffStrategyEnum": ".types", - "PhoneProviderSchemaMasked": ".types", - "PhoneTemplate": ".types", - "PhoneTemplateBody": ".types", - "PhoneTemplateContent": ".types", - "PhoneTemplateNotificationTypeEnum": ".types", - "Portal": ".types", - "PortalClientSecretPost": ".types", - "PortalClientSecretPostRequest": ".types", - "PortalClientSecretPostRequestTokenEndpointAuthMethod": ".types", - "PortalClientSecretPostTokenEndpointAuthMethod": ".types", - "PortalCustomCode": ".types", - "PortalCustomCodeNullable": ".types", - "PortalDateTime": ".types", - "PortalId": ".types", - "PortalName": ".types", - "PortalNavigation": ".types", - "PortalNavigationNullable": ".types", - "PortalPage": ".types", - "PortalPagesByType": ".types", - "PortalPagesByTypeNullable": ".types", - "PortalSlug": ".types", - "PortalSummary": ".types", - "Position": ".types", - "PostClientCredentialResponseContent": ".types", - "PostConnectionKeysAlgEnum": ".types", - "PostConnectionKeysRequestContent": ".types", - "PostConnectionsKeysResponseContent": ".types", - "PostConnectionsKeysResponseContentItem": ".types", - "PreconditionFailedError": ".errors", - "PreferredAuthenticationMethodEnum": ".types", - "PreviewCimdMetadataResponseContent": ".types", - "PromptGroupNameEnum": ".types", - "PromptLanguageEnum": ".types", - "PublicKeyCredential": ".types", - "PublicKeyCredentialAlgorithmEnum": ".types", - "PublicKeyCredentialTypeEnum": ".types", - "RateLimitPolicy": ".types", - "RateLimitPolicyConfiguration": ".types", - "RateLimitPolicyConfigurationAction": ".types", - "RateLimitPolicyConfigurationActionAction": ".types", - "RateLimitPolicyConfigurationOne": ".types", - "RateLimitPolicyConfigurationOneAction": ".types", - "RateLimitPolicyConfigurationZero": ".types", - "RateLimitPolicyConfigurationZeroAction": ".types", - "RateLimitPolicyConsumerEnum": ".types", - "RateLimitPolicyResourceEnum": ".types", - "RefreshTokenDate": ".types", - "RefreshTokenDateObject": ".types", - "RefreshTokenDevice": ".types", - "RefreshTokenExpirationTypeEnum": ".types", - "RefreshTokenMetadata": ".types", - "RefreshTokenResourceServer": ".types", - "RefreshTokenResponseContent": ".types", - "RefreshTokenRotationTypeEnum": ".types", - "RefreshTokenSessionId": ".types", - "RegenerateUsersRecoveryCodeResponseContent": ".types", - "RegisterCimdClientResponseContent": ".types", - "ResetPhoneTemplateRequestContent": ".types", - "ResetPhoneTemplateResponseContent": ".types", - "ResourceServer": ".types", - "ResourceServerAccessToken": ".types", - "ResourceServerAccessTokenClaimsMapping": ".types", - "ResourceServerAccessTokenCustomClaimsMapping": ".types", - "ResourceServerAccessTokenCustomClaimsMappingRule": ".types", - "ResourceServerAgentSubjectClaimsResponseEnum": ".types", - "ResourceServerAgentSubjectClaimsSchemaEnum": ".types", - "ResourceServerAuthorizationPolicy": ".types", - "ResourceServerConsentPolicyEnum": ".types", - "ResourceServerProofOfPossession": ".types", - "ResourceServerProofOfPossessionMechanismEnum": ".types", - "ResourceServerProofOfPossessionRequiredForEnum": ".types", - "ResourceServerScope": ".types", - "ResourceServerSearchResponse": ".types", - "ResourceServerSortFieldEnum": ".types", - "ResourceServerSubjectTypeAuthorization": ".types", - "ResourceServerSubjectTypeAuthorizationAnonymousUser": ".types", - "ResourceServerSubjectTypeAuthorizationAnonymousUserPolicyEnum": ".types", - "ResourceServerSubjectTypeAuthorizationClient": ".types", - "ResourceServerSubjectTypeAuthorizationClientPolicyEnum": ".types", - "ResourceServerSubjectTypeAuthorizationUser": ".types", - "ResourceServerSubjectTypeAuthorizationUserPolicyEnum": ".types", - "ResourceServerTokenDialectResponseEnum": ".types", - "ResourceServerTokenDialectSchemaEnum": ".types", - "ResourceServerTokenEncryption": ".types", - "ResourceServerTokenEncryptionAlgorithmEnum": ".types", - "ResourceServerTokenEncryptionFormatEnum": ".types", - "ResourceServerTokenEncryptionKey": ".types", - "ResourceServerTypeEnum": ".types", - "ResourceServerVerificationKeyPemCertificate": ".types", - "RevokedSigningKeysResponseContent": ".types", - "Role": ".types", - "RoleGroup": ".types", - "RoleMember": ".types", - "RoleOwnerId": ".types", - "RoleOwnerIdFilter": ".types", - "RoleTypeEnum": ".types", - "RoleUser": ".types", - "RollbackActionModuleResponseContent": ".types", - "RotateClientSecretResponseContent": ".types", - "RotateConnectionKeysRequestContent": ".types", - "RotateConnectionKeysSigningAlgEnum": ".types", - "RotateConnectionsKeysResponseContent": ".types", - "RotateSigningKeysResponseContent": ".types", - "Rule": ".types", - "RulesConfig": ".types", - "ScimConfiguration": ".types", - "ScimMappingItem": ".types", - "ScimTokenItem": ".types", - "ScreenGroupNameEnum": ".types", - "SearchClientGrantsResponseContent": ".types", - "SearchClientsResponseContent": ".types", - "SearchEngineVersionsEnum": ".types", - "SearchOrganization": ".types", - "SearchOrganizationsPaginatedResponseContent": ".types", - "SearchParserEnum": ".types", - "SearchResourceServersResponseContent": ".types", - "Segment": ".types", - "SegmentContainsExpression": ".types", - "SegmentEndsWithExpression": ".types", - "SegmentExistsExpression": ".types", - "SegmentMatchConditions": ".types", - "SegmentMatchExpression": ".types", - "SegmentNotMatchConditions": ".types", - "SegmentRule": ".types", - "SegmentStartsWithExpression": ".types", - "SegmentStatusEnum": ".types", - "SegmentTypeEnum": ".types", - "SegmentTypeFilterEnum": ".types", - "SelfServiceProfile": ".types", - "SelfServiceProfileAllowedStrategyEnum": ".types", - "SelfServiceProfileBranding": ".types", - "SelfServiceProfileBrandingColors": ".types", - "SelfServiceProfileBrandingProperties": ".types", - "SelfServiceProfileCustomTextLanguageEnum": ".types", - "SelfServiceProfileCustomTextPageEnum": ".types", - "SelfServiceProfileDescription": ".types", - "SelfServiceProfileSsoTicketConnectionConfig": ".types", - "SelfServiceProfileSsoTicketConnectionOptions": ".types", - "SelfServiceProfileSsoTicketDomainAliasesConfig": ".types", - "SelfServiceProfileSsoTicketDomainVerificationEnum": ".types", - "SelfServiceProfileSsoTicketEnabledFeatures": ".types", - "SelfServiceProfileSsoTicketEnabledOrganization": ".types", - "SelfServiceProfileSsoTicketGoogleWorkspaceConfig": ".types", - "SelfServiceProfileSsoTicketIdpInitiatedClientProtocolEnum": ".types", - "SelfServiceProfileSsoTicketIdpInitiatedOptions": ".types", - "SelfServiceProfileSsoTicketProvisioningConfig": ".types", - "SelfServiceProfileSsoTicketProvisioningScopeEnum": ".types", - "SelfServiceProfileSsoTicketUniversalLogoutConfig": ".types", - "SelfServiceProfileUserAttribute": ".types", - "SelfServiceProfileUserAttributes": ".types", - "ServiceUnavailableError": ".errors", - "SessionActorClaimValue": ".types", - "SessionActorMetadata": ".types", - "SessionAuthenticationSignal": ".types", - "SessionAuthenticationSignals": ".types", - "SessionClientMetadata": ".types", - "SessionCookieMetadata": ".types", - "SessionCookieMetadataModeEnum": ".types", - "SessionCookieModeEnum": ".types", - "SessionCookieSchema": ".types", - "SessionDate": ".types", - "SessionDeviceMetadata": ".types", - "SessionIp": ".types", - "SessionMetadata": ".types", - "SessionResponseContent": ".types", - "SetCustomSigningKeysResponseContent": ".types", - "SetEmailFactorSettingsResponseContent": ".types", - "SetEmailTemplateResponseContent": ".types", - "SetGuardianFactorDuoSettingsResponseContent": ".types", - "SetGuardianFactorPhoneMessageTypesResponseContent": ".types", - "SetGuardianFactorPhoneTemplatesResponseContent": ".types", - "SetGuardianFactorResponseContent": ".types", - "SetGuardianFactorSmsTemplatesResponseContent": ".types", - "SetGuardianFactorsProviderPhoneResponseContent": ".types", - "SetGuardianFactorsProviderPhoneTwilioResponseContent": ".types", - "SetGuardianFactorsProviderPushNotificationApnsResponseContent": ".types", - "SetGuardianFactorsProviderPushNotificationFcmResponseContent": ".types", - "SetGuardianFactorsProviderPushNotificationFcmv1ResponseContent": ".types", - "SetGuardianFactorsProviderPushNotificationResponseContent": ".types", - "SetGuardianFactorsProviderPushNotificationSnsResponseContent": ".types", - "SetGuardianFactorsProviderSmsResponseContent": ".types", - "SetGuardianFactorsProviderSmsTwilioResponseContent": ".types", - "SetGuardianPoliciesRequestContent": ".types", - "SetGuardianPoliciesResponseContent": ".types", - "SetGuardianSettingsResponseContent": ".types", - "SetNetworkAclsResponseContent": ".types", - "SetPartialsRequestContent": ".types", - "SetPhoneFactorSettingsResponseContent": ".types", - "SetRulesConfigResponseContent": ".types", - "SetSelfServiceProfileCustomTextRequestContent": ".types", - "SetSelfServiceProfileCustomTextResponseContent": ".types", - "SetUserAuthenticationMethodResponseContent": ".types", - "SetUserAuthenticationMethods": ".types", - "SetUserAuthenticationMethodsRequestContent": ".types", - "SetsCustomTextsByLanguageRequestContent": ".types", - "Sidebar": ".types", - "SidebarComponent": ".types", - "SidebarComponentAuth0ExternalLink": ".types", - "SidebarComponentAuth0ExternalLinkConfig": ".types", - "SidebarComponentAuth0ExternalLinkV2": ".types", - "SidebarComponentAuth0ExternalLinkV2Config": ".types", - "SidebarComponentAuth0InternalLink": ".types", - "SidebarComponentAuth0InternalLinkConfig": ".types", - "SidebarComponentAuth0InternalLinkV2": ".types", - "SidebarComponentAuth0InternalLinkV2Config": ".types", - "SidebarComponent_SidebarComponentAuth0ExternalLink": ".types", - "SidebarComponent_SidebarComponentAuth0ExternalLinkV2": ".types", - "SidebarComponent_SidebarComponentAuth0InternalLink": ".types", - "SidebarComponent_SidebarComponentAuth0InternalLinkV2": ".types", - "SigningAlgorithmEnum": ".types", - "SigningKeys": ".types", - "SigningKeysDate": ".types", - "SignupSchema": ".types", - "SignupStatusEnum": ".types", - "SignupVerification": ".types", - "SignupVerified": ".types", - "SupportedLocales": ".types", - "SuspiciousIpThrottlingAllowlist": ".types", - "SuspiciousIpThrottlingAllowlistItem": ".types", - "SuspiciousIpThrottlingPreCustomTokenExchangeStage": ".types", - "SuspiciousIpThrottlingPreLoginStage": ".types", - "SuspiciousIpThrottlingPreUserRegistrationStage": ".types", - "SuspiciousIpThrottlingShieldsEnum": ".types", - "SuspiciousIpThrottlingStage": ".types", - "SynchronizeGroupsEnum": ".types", - "SynchronizedGroupPayload": ".types", - "SynchronizedGroupSelectionId": ".types", - "SystemRoleOwnerId": ".types", - "TenantOidcLogoutSettings": ".types", - "TenantSettingsCountryCodes": ".types", - "TenantSettingsCountryCodesMode": ".types", - "TenantSettingsCountryCodesModeResponse": ".types", - "TenantSettingsCountryCodesResponse": ".types", - "TenantSettingsDeviceFlow": ".types", - "TenantSettingsDeviceFlowCharset": ".types", - "TenantSettingsDynamicClientRegistrationSecurityMode": ".types", - "TenantSettingsErrorPage": ".types", - "TenantSettingsFlags": ".types", - "TenantSettingsGuardianPage": ".types", - "TenantSettingsMtls": ".types", - "TenantSettingsNullableSecurityHeaders": ".types", - "TenantSettingsPasswordPage": ".types", - "TenantSettingsResourceParameterProfile": ".types", - "TenantSettingsSessions": ".types", - "TenantSettingsSessionsAnonymous": ".types", - "TenantSettingsSupportedLocalesEnum": ".types", - "TestActionPayload": ".types", - "TestActionResponseContent": ".types", - "TestActionResultPayload": ".types", - "TestCustomDomainResponseContent": ".types", - "TestEventDataContent": ".types", - "ThirdPartyClientAccessConfig": ".types", - "TokenExchangeProfileResponseContent": ".types", - "TokenExchangeProfileTypeEnum": ".types", + "SendBase": ".types", + "SendBaseType": ".types", + "SendByContent": ".types", + "SendByTemplate": ".types", + "SendParams": ".types", + "SendParamsContent": ".types", + "SendParamsTemplateId": ".types", + "SendParamsType": ".types", "TokenProvider": ".token_provider", - "TokenQuota": ".types", - "TokenQuotaClientCredentials": ".types", - "TokenQuotaConfiguration": ".types", - "TokenVaultPrivilegedAccessGrant": ".types", - "TokenVaultPrivilegedAccessIpAllowlistEntry": ".types", - "TooManyRequestsError": ".errors", - "TooManyRequestsErrorBody": ".types", - "TooManyRequestsErrorBodyError": ".types", - "TooManyRequestsSchema": ".types", - "TooManyRequestsSchemaError": ".types", - "TwilioProviderConfiguration": ".types", - "TwilioProviderCredentials": ".types", - "TwilioProviderDeliveryMethodEnum": ".types", - "UnauthorizedError": ".errors", - "UnauthorizedSchema": ".types", - "UnauthorizedSchemaError": ".types", - "UniversalLoginExperienceEnum": ".types", - "UnprocessableEntityError": ".errors", - "UpdateActionBindingsResponseContent": ".types", - "UpdateActionModuleResponseContent": ".types", - "UpdateActionResponseContent": ".types", - "UpdateAculResponseContent": ".types", - "UpdateAnonymousSessions": ".types", - "UpdateAttackProtectionCaptchaResponseContent": ".types", - "UpdateBotDetectionSettingsResponseContent": ".types", - "UpdateBrandingColors": ".types", - "UpdateBrandingFont": ".types", - "UpdateBrandingPageBackground": ".types", - "UpdateBrandingPhoneProviderResponseContent": ".types", - "UpdateBrandingResponseContent": ".types", - "UpdateBrandingThemeResponseContent": ".types", - "UpdateBreachedPasswordDetectionSettingsResponseContent": ".types", - "UpdateBruteForceSettingsResponseContent": ".types", - "UpdateClientGrantResponseContent": ".types", - "UpdateClientResponseContent": ".types", - "UpdateConnectionOptions": ".types", - "UpdateConnectionProfileResponseContent": ".types", - "UpdateConnectionRequestContentAd": ".types", - "UpdateConnectionRequestContentAdfs": ".types", - "UpdateConnectionRequestContentAmazon": ".types", - "UpdateConnectionRequestContentApple": ".types", - "UpdateConnectionRequestContentAuth0": ".types", - "UpdateConnectionRequestContentAuth0Oidc": ".types", - "UpdateConnectionRequestContentAzureAd": ".types", - "UpdateConnectionRequestContentBaidu": ".types", - "UpdateConnectionRequestContentBitbucket": ".types", - "UpdateConnectionRequestContentBitly": ".types", - "UpdateConnectionRequestContentBox": ".types", - "UpdateConnectionRequestContentCustom": ".types", - "UpdateConnectionRequestContentDaccount": ".types", - "UpdateConnectionRequestContentDropbox": ".types", - "UpdateConnectionRequestContentDwolla": ".types", - "UpdateConnectionRequestContentEmail": ".types", - "UpdateConnectionRequestContentEvernote": ".types", - "UpdateConnectionRequestContentEvernoteSandbox": ".types", - "UpdateConnectionRequestContentExact": ".types", - "UpdateConnectionRequestContentFacebook": ".types", - "UpdateConnectionRequestContentFitbit": ".types", - "UpdateConnectionRequestContentGitHub": ".types", - "UpdateConnectionRequestContentGoogleApps": ".types", - "UpdateConnectionRequestContentGoogleOAuth2": ".types", - "UpdateConnectionRequestContentInstagram": ".types", - "UpdateConnectionRequestContentIp": ".types", - "UpdateConnectionRequestContentLine": ".types", - "UpdateConnectionRequestContentLinkedin": ".types", - "UpdateConnectionRequestContentOAuth1": ".types", - "UpdateConnectionRequestContentOAuth2": ".types", - "UpdateConnectionRequestContentOffice365": ".types", - "UpdateConnectionRequestContentOidc": ".types", - "UpdateConnectionRequestContentOkta": ".types", - "UpdateConnectionRequestContentPaypal": ".types", - "UpdateConnectionRequestContentPaypalSandbox": ".types", - "UpdateConnectionRequestContentPingFederate": ".types", - "UpdateConnectionRequestContentPlanningCenter": ".types", - "UpdateConnectionRequestContentSalesforce": ".types", - "UpdateConnectionRequestContentSalesforceCommunity": ".types", - "UpdateConnectionRequestContentSalesforceSandbox": ".types", - "UpdateConnectionRequestContentSaml": ".types", - "UpdateConnectionRequestContentSharepoint": ".types", - "UpdateConnectionRequestContentShop": ".types", - "UpdateConnectionRequestContentShopify": ".types", - "UpdateConnectionRequestContentSms": ".types", - "UpdateConnectionRequestContentSoundcloud": ".types", - "UpdateConnectionRequestContentThirtySevenSignals": ".types", - "UpdateConnectionRequestContentTwitter": ".types", - "UpdateConnectionRequestContentUntappd": ".types", - "UpdateConnectionRequestContentVkontakte": ".types", - "UpdateConnectionRequestContentWeibo": ".types", - "UpdateConnectionRequestContentWindowsLive": ".types", - "UpdateConnectionRequestContentWordpress": ".types", - "UpdateConnectionRequestContentYahoo": ".types", - "UpdateConnectionRequestContentYandex": ".types", - "UpdateConnectionResponseContent": ".types", - "UpdateCrossAppAccessResourceApp": ".types", - "UpdateCustomDomainResponseContent": ".types", - "UpdateDefaultCanonicalDomainResponseContent": ".types", - "UpdateDefaultCustomDomainResponseContent": ".types", - "UpdateDefaultDomainResponseContent": ".types", - "UpdateDirectoryProvisioningRequestContent": ".types", - "UpdateDirectoryProvisioningResponseContent": ".types", - "UpdateEmailProviderResponseContent": ".types", - "UpdateEmailTemplateResponseContent": ".types", - "UpdateEnabledClientConnectionsRequestContent": ".types", - "UpdateEnabledClientConnectionsRequestContentItem": ".types", - "UpdateEventStreamResponseContent": ".types", - "UpdateExperimentResponseContent": ".types", - "UpdateFeatureFlagParameters": ".types", - "UpdateFeatureFlagResponseContent": ".types", - "UpdateFlowResponseContent": ".types", - "UpdateFlowsVaultConnectionResponseContent": ".types", - "UpdateFlowsVaultConnectionSetup": ".types", - "UpdateFormResponseContent": ".types", - "UpdateGuardianFactorDuoSettingsResponseContent": ".types", - "UpdateGuardianFactorsProviderPushNotificationApnsResponseContent": ".types", - "UpdateGuardianFactorsProviderPushNotificationFcmResponseContent": ".types", - "UpdateGuardianFactorsProviderPushNotificationFcmv1ResponseContent": ".types", - "UpdateGuardianFactorsProviderPushNotificationSnsResponseContent": ".types", - "UpdateHookResponseContent": ".types", - "UpdateHookSecretRequestContent": ".types", - "UpdateIdentityAssertionAuthorizationGrant": ".types", - "UpdateLogStreamResponseContent": ".types", - "UpdateNetworkAclResponseContent": ".types", - "UpdateOrganizationAllConnectionResponseContent": ".types", - "UpdateOrganizationClientResponseContent": ".types", - "UpdateOrganizationConnectionResponseContent": ".types", - "UpdateOrganizationDiscoveryDomainResponseContent": ".types", - "UpdateOrganizationResponseContent": ".types", - "UpdatePhoneTemplateResponseContent": ".types", - "UpdateRateLimitPolicyResponseContent": ".types", - "UpdateRefreshTokenResponseContent": ".types", - "UpdateResourceServerResponseContent": ".types", - "UpdateRiskAssessmentsSettingsNewDeviceResponseContent": ".types", - "UpdateRiskAssessmentsSettingsResponseContent": ".types", - "UpdateRoleResponseContent": ".types", - "UpdateRuleResponseContent": ".types", - "UpdateScimConfigurationResponseContent": ".types", - "UpdateSegmentResponseContent": ".types", - "UpdateSelfServiceProfileResponseContent": ".types", - "UpdateSessionResponseContent": ".types", - "UpdateSettingsResponseContent": ".types", - "UpdateSuspiciousIpThrottlingSettingsResponseContent": ".types", - "UpdateTenantSettingsResponseContent": ".types", - "UpdateTokenQuota": ".types", - "UpdateUniversalLoginTemplateRequestContent": ".types", - "UpdateUniversalLoginTemplateRequestContentTemplate": ".types", - "UpdateUserAttributeProfileResponseContent": ".types", - "UpdateUserAuthenticationMethodResponseContent": ".types", - "UpdateUserResponseContent": ".types", - "UpdateVariationOverridesMap": ".types", - "UpdateVariationResponseContent": ".types", - "UpdateVerifiableCredentialTemplateResponseContent": ".types", - "UserAppMetadataSchema": ".types", - "UserAttributeProfile": ".types", - "UserAttributeProfileId": ".types", - "UserAttributeProfileName": ".types", - "UserAttributeProfileOidcMapping": ".types", - "UserAttributeProfilePatchUserId": ".types", - "UserAttributeProfileSamlMapping": ".types", - "UserAttributeProfileStrategyOverrides": ".types", - "UserAttributeProfileStrategyOverridesMapping": ".types", - "UserAttributeProfileStrategyOverridesUserId": ".types", - "UserAttributeProfileStrategyOverridesUserIdMapping": ".types", - "UserAttributeProfileTemplate": ".types", - "UserAttributeProfileTemplateItem": ".types", - "UserAttributeProfileUserAttributeAdditionalProperties": ".types", - "UserAttributeProfileUserAttributes": ".types", - "UserAttributeProfileUserId": ".types", - "UserAttributeProfileUserIdOidcMappingEnum": ".types", - "UserAttributeProfileUserIdOidcStrategyOverrideMapping": ".types", - "UserAttributeProfileUserIdSamlMapping": ".types", - "UserAuthenticationMethod": ".types", - "UserAuthenticationMethodProperties": ".types", - "UserAuthenticationMethodPropertiesEnum": ".types", - "UserBlockIdentifier": ".types", - "UserEffectivePermissionResponseContent": ".types", - "UserEffectivePermissionRoleSourceEnum": ".types", - "UserEffectivePermissionRoleSourceResponseContent": ".types", - "UserEffectivePermissionSourceEnum": ".types", - "UserEffectiveRole": ".types", - "UserEffectiveRoleSource": ".types", - "UserEnrollmentAuthMethodEnum": ".types", - "UserEnrollmentStatusEnum": ".types", - "UserGrant": ".types", - "UserGroupsResponseSchema": ".types", - "UserId": ".types", - "UserIdentity": ".types", - "UserIdentityProviderEnum": ".types", - "UserIdentitySchema": ".types", - "UserListLogOffsetPaginatedResponseContent": ".types", - "UserMetadata": ".types", - "UserMetadataSchema": ".types", - "UserMultifactorProviderEnum": ".types", - "UserPermissionSchema": ".types", - "UserProfileData": ".types", - "UserResponseSchema": ".types", - "UsernameAllowedTypes": ".types", - "UsernameAttribute": ".types", - "UsernameAttributeIdentifier": ".types", - "UsernameValidation": ".types", - "UsersEnrollment": ".types", - "ValidateExperimentResponseContent": ".types", - "Variation": ".types", - "VariationOverridesMap": ".types", - "VerifiableCredentialTemplateResponse": ".types", - "VerificationMethodEnum": ".types", - "VerifyCustomDomainResponseContent": ".types", - "VerifyEmailTicketResponseContent": ".types", - "X509CertificateCredential": ".types", - "X509CertificateCredentialTypeEnum": ".types", - "XssProtectionConfig": ".types", - "XssProtectionMode": ".types", "__version__": ".version", - "actions": ".actions", - "agents": ".agents", - "anomaly": ".anomaly", - "attack_protection": ".attack_protection", - "branding": ".branding", - "client_grants": ".client_grants", - "client_profiles": ".client_profiles", - "clients": ".clients", - "connection_profiles": ".connection_profiles", - "connections": ".connections", - "custom_domains": ".custom_domains", - "device_credentials": ".device_credentials", - "email_templates": ".email_templates", - "emails": ".emails", - "event_streams": ".event_streams", - "events": ".events", - "experimentation": ".experimentation", - "flows": ".flows", - "forms": ".forms", - "groups": ".groups", - "guardian": ".guardian", - "hooks": ".hooks", - "jobs": ".jobs", - "keys": ".keys", - "log_streams": ".log_streams", - "logs": ".logs", - "network_acls": ".network_acls", - "organizations": ".organizations", - "portals": ".portals", - "prompts": ".prompts", - "rate_limit_policies": ".rate_limit_policies", - "refresh_tokens": ".refresh_tokens", - "resource_servers": ".resource_servers", - "risk_assessments": ".risk_assessments", - "roles": ".roles", - "rules": ".rules", - "rules_configs": ".rules_configs", - "self_service_profiles": ".self_service_profiles", - "sessions": ".sessions", - "stats": ".stats", - "supplemental_signals": ".supplemental_signals", - "tenants": ".tenants", - "tickets": ".tickets", - "token_exchange_profiles": ".token_exchange_profiles", - "user_attribute_profiles": ".user_attribute_profiles", - "user_blocks": ".user_blocks", - "user_grants": ".user_grants", - "users": ".users", - "verifiable_credentials": ".verifiable_credentials", } @@ -8209,4092 +65,22 @@ def __dir__(): __all__ = [ - "Action", - "ActionBase", - "ActionBinding", - "ActionBindingRef", - "ActionBindingRefTypeEnum", - "ActionBindingTypeEnum", - "ActionBindingWithRef", - "ActionBuildStatusEnum", - "ActionDeployedVersion", - "ActionError", - "ActionExecutionResult", - "ActionExecutionStatusEnum", - "ActionModuleAction", - "ActionModuleDependency", - "ActionModuleDependencyRequest", - "ActionModuleListItem", - "ActionModuleReference", - "ActionModuleSecret", - "ActionModuleSecretRequest", - "ActionModuleVersion", - "ActionModuleVersionReference", - "ActionSecretRequest", - "ActionSecretResponse", - "ActionTrigger", - "ActionTriggerCompatibleTrigger", - "ActionTriggerTypeEnum", - "ActionVersion", - "ActionVersionBuildStatusEnum", - "ActionVersionDependency", - "AculClientFilter", - "AculClientFilterById", - "AculClientFilterByMetadata", - "AculClientMetadata", - "AculConfigs", - "AculConfigsItem", - "AculContextConfiguration", - "AculContextConfigurationItem", - "AculContextEnum", - "AculDomainFilter", - "AculDomainFilterById", - "AculDomainFilterByMetadata", - "AculDomainMetadata", - "AculFilters", - "AculHeadTag", - "AculHeadTagAttributes", - "AculHeadTagContent", - "AculMatchTypeEnum", - "AculOrganizationFilter", - "AculOrganizationFilterById", - "AculOrganizationFilterByMetadata", - "AculOrganizationMetadata", - "AculRenderingModeEnum", - "AddOrganizationConnectionResponseContent", - "AdvanceRampResponseContent", - "AgentMetadata", - "AgentResponseContent", - "AllocationItem", - "AllocationRequestItem", - "AllocationStrategyEnum", - "AnomalyIpFormat", - "AnonymousSessions", - "AppMetadata", - "AssessorsTypeEnum", - "AssociateOrganizationClientGrantResponseContent", - "AsyncApprovalNotificationsChannelsEnum", "AsyncAuth0", "AsyncManagementClient", "AsyncTokenProvider", - "AttackProtectionCaptchaArkoseResponseContent", - "AttackProtectionCaptchaAuthChallengeRequest", - "AttackProtectionCaptchaAuthChallengeResponseContent", - "AttackProtectionCaptchaFriendlyCaptchaResponseContent", - "AttackProtectionCaptchaHcaptchaResponseContent", - "AttackProtectionCaptchaProviderId", - "AttackProtectionCaptchaRecaptchaEnterpriseResponseContent", - "AttackProtectionCaptchaRecaptchaV2ResponseContent", - "AttackProtectionCaptchaSimpleCaptchaResponseContent", - "AttackProtectionUpdateCaptchaArkose", - "AttackProtectionUpdateCaptchaFriendlyCaptcha", - "AttackProtectionUpdateCaptchaHcaptcha", - "AttackProtectionUpdateCaptchaRecaptchaEnterprise", - "AttackProtectionUpdateCaptchaRecaptchaV2", "Auth0", - "Auth0Environment", - "AuthenticationFlowEnum", - "AuthenticationMethodTypeEnum", - "AuthenticationTypeEnum", - "B2BIntegrationConfiguration", - "B2BIntegrationConfigurationIntegrationTypeEnum", - "BadRequestError", - "BadRequestSchema", - "BadRequestSchemaError", - "BotDetectionAllowlist", - "BotDetectionChallengePolicyPasswordFlowEnum", - "BotDetectionChallengePolicyPasswordResetFlowEnum", - "BotDetectionChallengePolicyPasswordlessFlowEnum", - "BotDetectionCidrBlock", - "BotDetectionIPv4", - "BotDetectionIPv6", - "BotDetectionIPv6CidrBlock", - "BotDetectionIpAddressOrCidrBlock", - "BotDetectionLevelEnum", - "BotDetectionMonitoringModeEnabled", - "BrandingColors", - "BrandingFont", - "BrandingPageBackground", - "BrandingThemeBorders", - "BrandingThemeBordersButtonsStyleEnum", - "BrandingThemeBordersInputsStyleEnum", - "BrandingThemeColors", - "BrandingThemeColorsCaptchaWidgetThemeEnum", - "BrandingThemeFontBodyText", - "BrandingThemeFontButtonsText", - "BrandingThemeFontInputLabels", - "BrandingThemeFontLinks", - "BrandingThemeFontLinksStyleEnum", - "BrandingThemeFontSubtitle", - "BrandingThemeFontTitle", - "BrandingThemeFonts", - "BrandingThemeIdentifiers", - "BrandingThemeIdentifiersLoginDisplayEnum", - "BrandingThemeIdentifiersPhoneDisplay", - "BrandingThemeIdentifiersPhoneDisplayFormattingEnum", - "BrandingThemeIdentifiersPhoneDisplayMaskingEnum", - "BrandingThemePageBackground", - "BrandingThemePageBackgroundPageLayoutEnum", - "BrandingThemeWidget", - "BrandingThemeWidgetHeaderTextAlignmentEnum", - "BrandingThemeWidgetLogoPositionEnum", - "BrandingThemeWidgetSocialButtonsLayoutEnum", - "BreachedPasswordDetectionAdminNotificationFrequencyEnum", - "BreachedPasswordDetectionMethodEnum", - "BreachedPasswordDetectionPreChangePasswordShieldsEnum", - "BreachedPasswordDetectionPreChangePasswordStage", - "BreachedPasswordDetectionPreUserRegistrationShieldsEnum", - "BreachedPasswordDetectionPreUserRegistrationStage", - "BreachedPasswordDetectionShieldsEnum", - "BreachedPasswordDetectionStage", - "BruteForceProtectionFormSubmissionModeEnum", - "BruteForceProtectionModeEnum", - "BruteForceProtectionShieldsEnum", - "BulkUpdateAculResponseContent", - "CertificateSubjectDnCredential", - "CertificateSubjectDnCredentialTypeEnum", - "ChangePasswordTicketIdentity", - "ChangePasswordTicketResponseContent", - "CimdExternalMetadataCreatedByEnum", - "CimdMappedClientAuthenticationMethods", - "CimdMappedClientAuthenticationMethodsPrivateKeyJwt", - "CimdMappedClientFields", - "CimdMappedPrivateKeyJwtCredential", - "CimdValidationResult", - "Client", - "ClientAddonAws", - "ClientAddonAzureBlob", - "ClientAddonAzureSb", - "ClientAddonBox", - "ClientAddonCloudBees", - "ClientAddonConcur", - "ClientAddonDropbox", - "ClientAddonEchoSign", - "ClientAddonEgnyte", - "ClientAddonFirebase", - "ClientAddonLayer", - "ClientAddonMscrm", - "ClientAddonNewRelic", - "ClientAddonOag", - "ClientAddonOffice365", - "ClientAddonRms", - "ClientAddonSalesforce", - "ClientAddonSalesforceApi", - "ClientAddonSalesforceSandboxApi", - "ClientAddonSaml", - "ClientAddonSamlMapping", - "ClientAddonSapapi", - "ClientAddonSentry", - "ClientAddonSharePoint", - "ClientAddonSharePointExternalUrl", - "ClientAddonSlack", - "ClientAddonSpringCm", - "ClientAddonSsoIntegration", - "ClientAddonWams", - "ClientAddonWsFed", - "ClientAddonZendesk", - "ClientAddonZoom", - "ClientAddons", - "ClientAnonymousSessionTransferNetworkBindingEnum", - "ClientAppTypeEnum", - "ClientAsyncApprovalNotificationsChannelsApiPatchConfiguration", - "ClientAsyncApprovalNotificationsChannelsApiPostConfiguration", - "ClientAuthenticationMethod", - "ClientAuthenticationMethodPrivateKeyJwt", - "ClientAuthenticationMethodPrivateKeyJwtCredentials", - "ClientAuthenticationMethodSelfSignedTlsClientAuth", - "ClientAuthenticationMethodSelfSignedTlsClientAuthCredentials", - "ClientAuthenticationMethodTlsClientAuth", - "ClientAuthenticationMethodTlsClientAuthCredentials", - "ClientComplianceLevelEnum", - "ClientCreateAuthenticationMethod", - "ClientCreateAuthenticationMethodPrivateKeyJwt", - "ClientCreateAuthenticationMethodPrivateKeyJwtCredentials", - "ClientCreateAuthenticationMethodTlsClientAuth", - "ClientCreateAuthenticationMethodTlsClientAuthCredentials", - "ClientCredential", - "ClientCredentialAlgorithmEnum", - "ClientCredentialTypeEnum", - "ClientDefaultOrganization", - "ClientDefaultOrganizationFlowsEnum", - "ClientEncryptionKey", - "ClientExternalMetadataCreatedByEnum", - "ClientExternalMetadataStatusEnum", - "ClientExternalMetadataTypeEnum", - "ClientGrantAllowAnyOrganizationEnum", - "ClientGrantDefaultForEnum", - "ClientGrantOrganizationNullableUsageEnum", - "ClientGrantOrganizationUsageEnum", - "ClientGrantResponseContent", - "ClientGrantSortFieldEnum", - "ClientGrantSubjectTypeEnum", - "ClientJwtConfiguration", - "ClientJwtConfigurationScopes", - "ClientMetadata", - "ClientMobile", - "ClientMobileAndroid", - "ClientMobileiOs", - "ClientMyOrganizationConfigurationAllowedStrategiesEnum", - "ClientMyOrganizationConfigurationThirdPartyClientAccessAllowedValuesEnum", - "ClientMyOrganizationConfigurationThirdPartyClientAccessDefaultValueEnum", - "ClientMyOrganizationDeletionBehaviorEnum", - "ClientMyOrganizationPatchConfiguration", - "ClientMyOrganizationPostConfiguration", - "ClientMyOrganizationResponseConfiguration", - "ClientMyOrganizationThirdPartyClientAccessConfiguration", - "ClientOidcBackchannelLogoutInitiators", - "ClientOidcBackchannelLogoutInitiatorsEnum", - "ClientOidcBackchannelLogoutInitiatorsModeEnum", - "ClientOidcBackchannelLogoutSessionMetadata", - "ClientOidcBackchannelLogoutSettings", - "ClientOidcSupport", - "ClientOidcSupportAllowedScopesEnum", - "ClientOidcSupportPatch", - "ClientOidcSupportPost", - "ClientOrganizationDiscoveryEnum", - "ClientOrganizationRequireBehaviorEnum", - "ClientOrganizationRequireBehaviorPatchEnum", - "ClientOrganizationUsageEnum", - "ClientOrganizationUsagePatchEnum", - "ClientProfile", - "ClientProfileApplyPolicy", - "ClientProfileApplyPolicyExternalMetadataCreatedByEnum", - "ClientProfileApplyPolicyExternalMetadataTypeEnum", - "ClientProfileClientConfiguration", - "ClientProfileClientConfigurationOidcSupport", - "ClientProfileClientConfigurationOidcSupportAllowedScopesEnum", - "ClientProfileClientConfigurationOidcSupportDefaultValue", - "ClientProfileClientConfigurationOrganizationDiscoveryMethodEnum", - "ClientProfileClientConfigurationOrganizationDiscoveryMethods", - "ClientProfileClientConfigurationOrganizationRequireBehavior", - "ClientProfileClientConfigurationOrganizationRequireBehaviorEnum", - "ClientProfileClientConfigurationOrganizationUsage", - "ClientProfileClientConfigurationOrganizationUsageEnum", - "ClientProfileClientConfigurationRefreshToken", - "ClientProfileClientConfigurationRequireProofOfPossession", - "ClientProfileDescription", - "ClientProfileId", - "ClientProfileName", - "ClientProfileRefreshTokenIdleTokenLifetime", - "ClientProfileRefreshTokenLeeway", - "ClientProfileRefreshTokenTokenLifetime", - "ClientRedirectionPolicyEnum", - "ClientRefreshTokenConfiguration", - "ClientRefreshTokenPolicy", - "ClientSearchResponse", - "ClientSessionTransferAllowedAuthenticationMethodsEnum", - "ClientSessionTransferConfiguration", - "ClientSessionTransferDelegationConfiguration", - "ClientSessionTransferDelegationDeviceBindingEnum", - "ClientSessionTransferDeviceBindingEnum", - "ClientSignedRequestObjectWithCredentialId", - "ClientSignedRequestObjectWithPublicKey", - "ClientSigningKey", - "ClientSigningKeys", - "ClientSortFieldEnum", - "ClientThirdPartySecurityModeEnum", - "ClientTokenEndpointAuthMethodEnum", - "ClientTokenEndpointAuthMethodOrNullEnum", - "ClientTokenExchangeConfiguration", - "ClientTokenExchangeConfigurationOrNull", - "ClientTokenExchangeTypeEnum", - "ClientTokenVaultPrivilegedAccessWithCredentialId", - "ClientTokenVaultPrivilegedAccessWithPublicKey", - "ConflictError", - "ConflictSchema", - "ConflictSchemaError", - "ConnectedAccount", - "ConnectedAccountAccessTypeEnum", - "ConnectionAccessTokenUrloAuth1", - "ConnectionAcrValuesSupported", - "ConnectionAdminAccessTokenExpiresInGoogleApps", - "ConnectionAdminAccessTokenGoogleApps", - "ConnectionAdminRefreshTokenGoogleApps", - "ConnectionAgentIpad", - "ConnectionAgentModeAd", - "ConnectionAgentVersionAd", - "ConnectionAllowedAudiencesGoogleOAuth2", - "ConnectionApiBehaviorEnum", - "ConnectionApiEnableGroups", - "ConnectionApiEnableGroupsGoogleApps", - "ConnectionApiEnableUsers", - "ConnectionApiEnableUsersGoogleApps", - "ConnectionAppDomainAzureAd", - "ConnectionAssertionDecryptionAlgorithmProfileEnum", - "ConnectionAssertionDecryptionSettings", - "ConnectionAttributeMapAttributes", - "ConnectionAttributeMapOidc", - "ConnectionAttributeMapOkta", - "ConnectionAttributeMapUserinfoScope", - "ConnectionAttributes", - "ConnectionAuthParamsAdditionalPropertiesOAuth2", - "ConnectionAuthParamsEmail", - "ConnectionAuthParamsMap", - "ConnectionAuthParamsOAuth2", - "ConnectionAuthenticationMethods", - "ConnectionAuthenticationPurpose", - "ConnectionAuthorizationEndpoint", - "ConnectionBaseUrlExact", - "ConnectionBruteForceProtection", - "ConnectionCalculatedThumbprintSaml", - "ConnectionCertsAd", - "ConnectionClaimTypesSupported", - "ConnectionClaimsLocalesSupported", - "ConnectionClaimsParameterSupported", - "ConnectionClaimsSupported", - "ConnectionClientId", - "ConnectionClientIdAmazon", - "ConnectionClientIdAzureAd", - "ConnectionClientIdBitbucket", - "ConnectionClientIdExact", - "ConnectionClientIdFacebook", - "ConnectionClientIdGoogleApps", - "ConnectionClientIdGoogleOAuth2", - "ConnectionClientIdLine", - "ConnectionClientIdLinkedin", - "ConnectionClientIdOAuth1", - "ConnectionClientIdOAuth2", - "ConnectionClientIdOidc", - "ConnectionClientIdPaypal", - "ConnectionClientIdSalesforce", - "ConnectionClientIdSamlxaaRequestingApp", - "ConnectionClientIdWindowsLive", - "ConnectionClientProtocolSaml", - "ConnectionClientSecret", - "ConnectionClientSecretAmazon", - "ConnectionClientSecretAzureAd", - "ConnectionClientSecretBitbucket", - "ConnectionClientSecretExact", - "ConnectionClientSecretFacebook", - "ConnectionClientSecretGoogleApps", - "ConnectionClientSecretGoogleOAuth2", - "ConnectionClientSecretLine", - "ConnectionClientSecretLinkedin", - "ConnectionClientSecretOAuth1", - "ConnectionClientSecretOAuth2", - "ConnectionClientSecretOidc", - "ConnectionClientSecretPaypal", - "ConnectionClientSecretSalesforce", - "ConnectionClientSecretSamlxaaRequestingApp", - "ConnectionClientSecretWindowsLive", - "ConnectionCommon", - "ConnectionCommunityBaseUrlSalesforce", - "ConnectionConfiguration", - "ConnectionConnectedAccountsPurpose", - "ConnectionConnectedAccountsPurposeXaa", - "ConnectionConnectionSettings", - "ConnectionConnectionSettingsPkceEnum", - "ConnectionCrossAppAccessResourceApp", - "ConnectionCrossAppAccessResourceAppStatusEnum", - "ConnectionCustomHeadersOAuth2", - "ConnectionCustomScripts", - "ConnectionDebugSaml", - "ConnectionDecryptionKeySaml", - "ConnectionDecryptionKeySamlCert", - "ConnectionDestinationUrlSaml", - "ConnectionDigestAlgorithmEnumSaml", - "ConnectionDigestAlgorithmSaml", - "ConnectionDisableSelfServiceChangePassword", - "ConnectionDisableSignup", - "ConnectionDisableSignupSms", - "ConnectionDiscoveryUrl", - "ConnectionDisplayName", - "ConnectionDisplayValuesSupported", - "ConnectionDomainAliases", - "ConnectionDomainAliasesAd", - "ConnectionDomainAliasesAzureAd", - "ConnectionDomainAliasesItemsOne", - "ConnectionDomainAliasesSaml", - "ConnectionDomainGoogleApps", - "ConnectionDomainOkta", - "ConnectionDpopSigningAlgEnum", - "ConnectionDpopSigningAlgValuesSupported", - "ConnectionEmailBodyEmail", - "ConnectionEmailEmail", - "ConnectionEmailEmailSyntax", - "ConnectionEmailFromEmail", - "ConnectionEmailOtpAuthenticationMethod", - "ConnectionEmailSubjectEmail", - "ConnectionEnablePushedAuthorizationRequests", - "ConnectionEnableScriptContext", - "ConnectionEnabledClient", - "ConnectionEnabledClients", - "ConnectionEnabledDatabaseCustomization", - "ConnectionEndSessionEndpoint", - "ConnectionEntityIdSaml", - "ConnectionExtAdmin", - "ConnectionExtAgreedTerms", - "ConnectionExtAgreedTermsGoogleApps", - "ConnectionExtAssignedPlans", - "ConnectionExtGroups", - "ConnectionExtGroupsAzureAd", - "ConnectionExtGroupsGoogleApps", - "ConnectionExtIsAdminGoogleApps", - "ConnectionExtIsSuspended", - "ConnectionExtIsSuspendedGoogleApps", - "ConnectionExtProfile", - "ConnectionFieldsMap", - "ConnectionFieldsMapSaml", - "ConnectionFieldsMapSamlValue", - "ConnectionForList", - "ConnectionForOrganization", - "ConnectionForwardReqInfoSms", - "ConnectionFreeformScopesAmazon", - "ConnectionFreeformScopesGoogleOAuth2", - "ConnectionFreeformScopesLinkedin", - "ConnectionFreeformScopesPaypal", - "ConnectionFreeformScopesSalesforce", - "ConnectionFreeformScopesWindowsLive", - "ConnectionFromSms", - "ConnectionGatewayAuthentication", - "ConnectionGatewayAuthenticationAudienceSms", - "ConnectionGatewayAuthenticationMethodSms", - "ConnectionGatewayAuthenticationSms", - "ConnectionGatewayAuthenticationSubjectSms", - "ConnectionGatewayUrlSms", - "ConnectionGlobalTokenRevocationJwtIssSaml", - "ConnectionGlobalTokenRevocationJwtSubSaml", - "ConnectionGrantTypesSupported", - "ConnectionHandleLoginFromSocialGoogleApps", - "ConnectionHttpsUrlWithHttpFallback", - "ConnectionHttpsUrlWithHttpFallback2048", - "ConnectionHttpsUrlWithHttpFallback255", - "ConnectionIconUrl", - "ConnectionIconUrlAdfs", - "ConnectionIconUrlAzureAd", - "ConnectionIconUrlGoogleApps", - "ConnectionIconUrlGoogleOAuth2", - "ConnectionIconUrlSaml", - "ConnectionId", - "ConnectionIdTokenEncryptionAlgValuesSupported", - "ConnectionIdTokenEncryptionEncValuesSupported", - "ConnectionIdTokenSessionExpirySupported", - "ConnectionIdTokenSignedResponseAlgEnum", - "ConnectionIdTokenSignedResponseAlgs", - "ConnectionIdTokenSigningAlgValuesSupported", - "ConnectionIdentifierPrecedence", - "ConnectionIdentifierPrecedenceEnum", - "ConnectionIdentityApiAzureAd", - "ConnectionIdentityApiEnumAzureAd", - "ConnectionIdentityProviderEnum", - "ConnectionImportMode", - "ConnectionIpsAd", - "ConnectionIsDomainConnection", - "ConnectionIssuer", - "ConnectionJwksUri", - "ConnectionKey", - "ConnectionKeyUseEnum", - "ConnectionMappingModeEnumOidc", - "ConnectionMappingModeEnumOkta", - "ConnectionMaxGroupsToRetrieve", - "ConnectionMessagingServiceSidSms", - "ConnectionMetadataUrlSaml", - "ConnectionMetadataXml", - "ConnectionMetadataXmlAdfs", - "ConnectionMetadataXmlSaml", - "ConnectionMfa", - "ConnectionName", - "ConnectionNamePrefixTemplate", - "ConnectionNonPersistentAttrs", - "ConnectionOpPolicyUri", - "ConnectionOpTosUri", - "ConnectionOptions", - "ConnectionOptionsAd", - "ConnectionOptionsAdfs", - "ConnectionOptionsAmazon", - "ConnectionOptionsApple", - "ConnectionOptionsAuth0", - "ConnectionOptionsAuth0Oidc", - "ConnectionOptionsAzureAd", - "ConnectionOptionsBaidu", - "ConnectionOptionsBitbucket", - "ConnectionOptionsBitly", - "ConnectionOptionsBox", - "ConnectionOptionsClientIdGithub", - "ConnectionOptionsClientIdTwitter", - "ConnectionOptionsClientSecretGithub", - "ConnectionOptionsClientSecretTwitter", - "ConnectionOptionsCommon", - "ConnectionOptionsCommonOidc", - "ConnectionOptionsCommonSaml", - "ConnectionOptionsCustom", - "ConnectionOptionsDaccount", - "ConnectionOptionsDeflateSaml", - "ConnectionOptionsDropbox", - "ConnectionOptionsDwolla", - "ConnectionOptionsEmail", - "ConnectionOptionsEvernote", - "ConnectionOptionsExact", - "ConnectionOptionsFacebook", - "ConnectionOptionsFitbit", - "ConnectionOptionsFreeformScopesGithub", - "ConnectionOptionsGitHub", - "ConnectionOptionsGoogleApps", - "ConnectionOptionsGoogleOAuth2", - "ConnectionOptionsIdpInitiatedClientProtocolEnumSaml", - "ConnectionOptionsIdpinitiatedSaml", - "ConnectionOptionsInstagram", - "ConnectionOptionsIp", - "ConnectionOptionsLine", - "ConnectionOptionsLinkedin", - "ConnectionOptionsOAuth1", - "ConnectionOptionsOAuth1Common", - "ConnectionOptionsOAuth2", - "ConnectionOptionsOAuth2Common", - "ConnectionOptionsOffice365", - "ConnectionOptionsOidc", - "ConnectionOptionsOidcMetadata", - "ConnectionOptionsOkta", - "ConnectionOptionsPaypal", - "ConnectionOptionsPingFederate", - "ConnectionOptionsPlanningCenter", - "ConnectionOptionsProtocolEnumTwitter", - "ConnectionOptionsSalesforce", - "ConnectionOptionsSalesforceCommunity", - "ConnectionOptionsSaml", - "ConnectionOptionsScopeGithub", - "ConnectionOptionsScopeTwitter", - "ConnectionOptionsSharepoint", - "ConnectionOptionsShop", - "ConnectionOptionsShopify", - "ConnectionOptionsSms", - "ConnectionOptionsSoundcloud", - "ConnectionOptionsThirtySevenSignals", - "ConnectionOptionsTwitter", - "ConnectionOptionsUntappd", - "ConnectionOptionsVkontakte", - "ConnectionOptionsWeibo", - "ConnectionOptionsWindowsLive", - "ConnectionOptionsWordpress", - "ConnectionOptionsYahoo", - "ConnectionOptionsYandex", - "ConnectionOtpChannelSettings", - "ConnectionOtpSettings", - "ConnectionPasskeyAuthenticationMethod", - "ConnectionPasskeyChallengeUiEnum", - "ConnectionPasskeyOptions", - "ConnectionPasswordAuthenticationMethod", - "ConnectionPasswordComplexityOptions", - "ConnectionPasswordDictionaryOptions", - "ConnectionPasswordHistoryOptions", - "ConnectionPasswordNoPersonalInfoOptions", - "ConnectionPasswordOptions", - "ConnectionPasswordOptionsComplexity", - "ConnectionPasswordOptionsDictionary", - "ConnectionPasswordOptionsHistory", - "ConnectionPasswordOptionsProfileData", - "ConnectionPasswordPolicyEnum", - "ConnectionPhoneOtpAuthenticationMethod", - "ConnectionPingFederateBaseUrl", - "ConnectionPingFederateBaseUrlPingFederate", - "ConnectionProfile", - "ConnectionProfileBitbucket", - "ConnectionProfileConfig", - "ConnectionProfileCrossAppAccessResourceApp", - "ConnectionProfileCrossAppAccessResourceAppStatus", - "ConnectionProfileCrossAppAccessResourceAppStatusAllowedValuesEnum", - "ConnectionProfileCrossAppAccessResourceAppStatusDefaultValueEnum", - "ConnectionProfileCrossAppAccessResourceAppStatusValueEnum", - "ConnectionProfileEnabledFeatures", - "ConnectionProfileId", - "ConnectionProfileName", - "ConnectionProfileOrganization", - "ConnectionProfileOrganizationAssignMembershipOnLoginEnum", - "ConnectionProfileOrganizationShowAsButtonEnum", - "ConnectionProfileProvisioning", - "ConnectionProfileProvisioningGoogleWorkspace", - "ConnectionProfileProvisioningGoogleWorkspaceSyncUsers", - "ConnectionProfileProvisioningScim", - "ConnectionProfileProvisioningScimTokenDefaultExpiry", - "ConnectionProfileProvisioningScimTokenMaxAllowedExpiry", - "ConnectionProfileProvisioningScimTokenScopeEnum", - "ConnectionProfileProvisioningScimTokenScopes", - "ConnectionProfileProvisioningScimTokens", - "ConnectionProfileStrategyOverride", - "ConnectionProfileStrategyOverrides", - "ConnectionProfileStrategyOverridesConnectionConfig", - "ConnectionProfileStrategyOverridesEnabledFeatures", - "ConnectionProfileStrategyOverridesProvisioning", - "ConnectionProfileTemplate", - "ConnectionProfileTemplateItem", - "ConnectionPropertiesOptions", - "ConnectionProtocolBindingEnumSaml", - "ConnectionProtocolBindingSaml", - "ConnectionProviderEnumSms", - "ConnectionProviderSms", - "ConnectionProvisioningTicketUrl", - "ConnectionPurposes", - "ConnectionPushedAuthorizationRequestEndpoint", - "ConnectionRealmFallback", - "ConnectionRealms", - "ConnectionRecipientUrlSaml", - "ConnectionRegistrationEndpoint", - "ConnectionRequestObjectEncryptionAlgValuesSupported", - "ConnectionRequestObjectEncryptionEncValuesSupported", - "ConnectionRequestObjectSigningAlgValuesSupported", - "ConnectionRequestParameterSupported", - "ConnectionRequestTemplateSaml", - "ConnectionRequestTokenUrloAuth1", - "ConnectionRequestUriParameterSupported", - "ConnectionRequirePushedAuthorizationRequests", - "ConnectionRequireRequestUriRegistration", - "ConnectionRequiresUsername", - "ConnectionResponseCommon", - "ConnectionResponseContentAd", - "ConnectionResponseContentAdStrategy", - "ConnectionResponseContentAdfs", - "ConnectionResponseContentAdfsStrategy", - "ConnectionResponseContentAmazon", - "ConnectionResponseContentAmazonStrategy", - "ConnectionResponseContentApple", - "ConnectionResponseContentAppleStrategy", - "ConnectionResponseContentAuth0", - "ConnectionResponseContentAuth0Oidc", - "ConnectionResponseContentAuth0OidcStrategy", - "ConnectionResponseContentAuth0Strategy", - "ConnectionResponseContentAzureAd", - "ConnectionResponseContentAzureAdStrategy", - "ConnectionResponseContentBaidu", - "ConnectionResponseContentBaiduStrategy", - "ConnectionResponseContentBitbucket", - "ConnectionResponseContentBitbucketStrategy", - "ConnectionResponseContentBitly", - "ConnectionResponseContentBitlyStrategy", - "ConnectionResponseContentBox", - "ConnectionResponseContentBoxStrategy", - "ConnectionResponseContentCustom", - "ConnectionResponseContentCustomStrategy", - "ConnectionResponseContentDaccount", - "ConnectionResponseContentDaccountStrategy", - "ConnectionResponseContentDropbox", - "ConnectionResponseContentDropboxStrategy", - "ConnectionResponseContentDwolla", - "ConnectionResponseContentDwollaStrategy", - "ConnectionResponseContentEmail", - "ConnectionResponseContentEmailStrategy", - "ConnectionResponseContentEvernote", - "ConnectionResponseContentEvernoteSandbox", - "ConnectionResponseContentEvernoteSandboxStrategy", - "ConnectionResponseContentEvernoteStrategy", - "ConnectionResponseContentExact", - "ConnectionResponseContentExactStrategy", - "ConnectionResponseContentFacebook", - "ConnectionResponseContentFacebookStrategy", - "ConnectionResponseContentFitbit", - "ConnectionResponseContentFitbitStrategy", - "ConnectionResponseContentGitHub", - "ConnectionResponseContentGitHubStrategy", - "ConnectionResponseContentGoogleApps", - "ConnectionResponseContentGoogleAppsStrategy", - "ConnectionResponseContentGoogleOAuth2", - "ConnectionResponseContentGoogleOAuth2Strategy", - "ConnectionResponseContentInstagram", - "ConnectionResponseContentInstagramStrategy", - "ConnectionResponseContentIp", - "ConnectionResponseContentIpStrategy", - "ConnectionResponseContentLine", - "ConnectionResponseContentLineStrategy", - "ConnectionResponseContentLinkedin", - "ConnectionResponseContentLinkedinStrategy", - "ConnectionResponseContentOAuth1", - "ConnectionResponseContentOAuth1Strategy", - "ConnectionResponseContentOAuth2", - "ConnectionResponseContentOAuth2Strategy", - "ConnectionResponseContentOffice365", - "ConnectionResponseContentOffice365Strategy", - "ConnectionResponseContentOidc", - "ConnectionResponseContentOidcStrategy", - "ConnectionResponseContentOkta", - "ConnectionResponseContentOktaStrategy", - "ConnectionResponseContentPaypal", - "ConnectionResponseContentPaypalSandbox", - "ConnectionResponseContentPaypalSandboxStrategy", - "ConnectionResponseContentPaypalStrategy", - "ConnectionResponseContentPingFederate", - "ConnectionResponseContentPingFederateStrategy", - "ConnectionResponseContentPlanningCenter", - "ConnectionResponseContentPlanningCenterStrategy", - "ConnectionResponseContentSalesforce", - "ConnectionResponseContentSalesforceCommunity", - "ConnectionResponseContentSalesforceCommunityStrategy", - "ConnectionResponseContentSalesforceSandbox", - "ConnectionResponseContentSalesforceSandboxStrategy", - "ConnectionResponseContentSalesforceStrategy", - "ConnectionResponseContentSaml", - "ConnectionResponseContentSamlStrategy", - "ConnectionResponseContentSharepoint", - "ConnectionResponseContentSharepointStrategy", - "ConnectionResponseContentShop", - "ConnectionResponseContentShopStrategy", - "ConnectionResponseContentShopify", - "ConnectionResponseContentShopifyStrategy", - "ConnectionResponseContentSms", - "ConnectionResponseContentSmsStrategy", - "ConnectionResponseContentSoundcloud", - "ConnectionResponseContentSoundcloudStrategy", - "ConnectionResponseContentThirtySevenSignals", - "ConnectionResponseContentThirtySevenSignalsStrategy", - "ConnectionResponseContentTwitter", - "ConnectionResponseContentTwitterStrategy", - "ConnectionResponseContentUntappd", - "ConnectionResponseContentUntappdStrategy", - "ConnectionResponseContentVkontakte", - "ConnectionResponseContentVkontakteStrategy", - "ConnectionResponseContentWeibo", - "ConnectionResponseContentWeiboStrategy", - "ConnectionResponseContentWindowsLive", - "ConnectionResponseContentWindowsLiveStrategy", - "ConnectionResponseContentWordpress", - "ConnectionResponseContentWordpressStrategy", - "ConnectionResponseContentYahoo", - "ConnectionResponseContentYahooStrategy", - "ConnectionResponseContentYandex", - "ConnectionResponseContentYandexStrategy", - "ConnectionResponseModesSupported", - "ConnectionResponseTypesSupported", - "ConnectionScopeAmazon", - "ConnectionScopeArray", - "ConnectionScopeArrayFacebook", - "ConnectionScopeArrayWindowsLive", - "ConnectionScopeAzureAd", - "ConnectionScopeFacebook", - "ConnectionScopeGoogleApps", - "ConnectionScopeGoogleOAuth2", - "ConnectionScopeItem", - "ConnectionScopeItemGoogleApps", - "ConnectionScopeLinkedin", - "ConnectionScopeOAuth2", - "ConnectionScopeOidc", - "ConnectionScopePaypal", - "ConnectionScopeSalesforce", - "ConnectionScopesSupported", - "ConnectionScriptsOAuth1", - "ConnectionScriptsOAuth2", - "ConnectionSendBackChannelNonce", - "ConnectionServiceDocumentation", - "ConnectionSetUserRootAttributesEnum", - "ConnectionSha1Thumbprint", - "ConnectionShouldTrustEmailVerifiedConnectionEnum", - "ConnectionShowAsButton", - "ConnectionSignInEndpointAd", - "ConnectionSignInEndpointAdfs", - "ConnectionSignInEndpointSaml", - "ConnectionSignOutEndpointSaml", - "ConnectionSignSamlRequestSaml", - "ConnectionSignatureAlgorithmEnumSaml", - "ConnectionSignatureAlgorithmSaml", - "ConnectionSignatureMethodOAuth1", - "ConnectionSigningCertSaml", - "ConnectionSigningCertificateDerSaml", - "ConnectionSigningCertificatePemPingFederate", - "ConnectionSigningCertificatePemSaml", - "ConnectionSigningKeySaml", - "ConnectionSignupBehaviorEnum", - "ConnectionStrategyEnum", - "ConnectionStrategyVersionEnumLinkedin", - "ConnectionStrategyVersionEnumWindowsLive", - "ConnectionSubjectTypesSupported", - "ConnectionTemplateSms", - "ConnectionTemplateSyntaxEnumSms", - "ConnectionTenantDomain", - "ConnectionTenantDomainAd", - "ConnectionTenantDomainAzureAdOne", - "ConnectionTenantDomainGoogleApps", - "ConnectionTenantDomainSaml", - "ConnectionTenantIdAzureAd", - "ConnectionThumbprints", - "ConnectionThumbprintsAd", - "ConnectionThumbprintsSaml", - "ConnectionThumbprintsSha384", - "ConnectionThumbprintsSha384Ad", - "ConnectionThumbprintsSha384Saml", - "ConnectionTokenEndpoint", - "ConnectionTokenEndpointAuthMethodEnum", - "ConnectionTokenEndpointAuthMethodsSupported", - "ConnectionTokenEndpointAuthSigningAlgEnum", - "ConnectionTokenEndpointAuthSigningAlgValuesSupported", - "ConnectionTokenEndpointJwtcaAudFormatEnumOidc", - "ConnectionTotpEmail", - "ConnectionTotpLengthEmail", - "ConnectionTotpLengthPasswordless", - "ConnectionTotpLengthSms", - "ConnectionTotpSms", - "ConnectionTotpTimeStepEmail", - "ConnectionTotpTimeStepPasswordless", - "ConnectionTotpTimeStepSms", - "ConnectionTwilioSidSms", - "ConnectionTwilioTokenSms", - "ConnectionTypeEnumOidc", - "ConnectionTypeEnumOkta", - "ConnectionUiLocalesSupported", - "ConnectionUpstreamAdditionalProperties", - "ConnectionUpstreamAlias", - "ConnectionUpstreamAliasEnum", - "ConnectionUpstreamParams", - "ConnectionUpstreamParamsFacebook", - "ConnectionUpstreamValue", - "ConnectionUseCommonEndpointAzureAd", - "ConnectionUseOauthSpecScope", - "ConnectionUserAuthorizationUrloAuth1", - "ConnectionUserIdAttributeSaml", - "ConnectionUseridAttributeAzureAd", - "ConnectionUseridAttributeEnumAzureAd", - "ConnectionUserinfoEncryptionAlgValuesSupported", - "ConnectionUserinfoEncryptionEncValuesSupported", - "ConnectionUserinfoEndpoint", - "ConnectionUserinfoSigningAlgValuesSupported", - "ConnectionUsernameValidationOptions", - "ConnectionValidationOptions", - "ConnectionWaadProtocol", - "ConnectionWaadProtocolEnumAzureAd", - "ConnectionsDiscoveryUrl", - "ConnectionsMetadata", - "ConnectionsOidcMetadata", - "ConsentSigningKey", - "ContentSecurityPolicyConfig", - "ContentTooLargeError", - "CreateActionModuleResponseContent", - "CreateActionModuleVersionResponseContent", - "CreateActionResponseContent", - "CreateAnonymousSessions", - "CreateBrandingPhoneProviderResponseContent", - "CreateBrandingThemeResponseContent", - "CreateClientAuthenticationMethodSelfSignedTlsClientAuth", - "CreateClientAuthenticationMethodSelfSignedTlsClientAuthCredentials", - "CreateClientGrantResponseContent", - "CreateClientResponseContent", - "CreateConnectionCommon", - "CreateConnectionProfileResponseContent", - "CreateConnectionRequestContentAd", - "CreateConnectionRequestContentAdStrategy", - "CreateConnectionRequestContentAdfs", - "CreateConnectionRequestContentAdfsStrategy", - "CreateConnectionRequestContentAmazon", - "CreateConnectionRequestContentAmazonStrategy", - "CreateConnectionRequestContentApple", - "CreateConnectionRequestContentAppleStrategy", - "CreateConnectionRequestContentAuth0", - "CreateConnectionRequestContentAuth0Oidc", - "CreateConnectionRequestContentAuth0OidcStrategy", - "CreateConnectionRequestContentAuth0Strategy", - "CreateConnectionRequestContentAzureAd", - "CreateConnectionRequestContentAzureAdStrategy", - "CreateConnectionRequestContentBaidu", - "CreateConnectionRequestContentBaiduStrategy", - "CreateConnectionRequestContentBitbucket", - "CreateConnectionRequestContentBitbucketStrategy", - "CreateConnectionRequestContentBitly", - "CreateConnectionRequestContentBitlyStrategy", - "CreateConnectionRequestContentBox", - "CreateConnectionRequestContentBoxStrategy", - "CreateConnectionRequestContentCustom", - "CreateConnectionRequestContentCustomStrategy", - "CreateConnectionRequestContentDaccount", - "CreateConnectionRequestContentDaccountStrategy", - "CreateConnectionRequestContentDropbox", - "CreateConnectionRequestContentDropboxStrategy", - "CreateConnectionRequestContentDwolla", - "CreateConnectionRequestContentDwollaStrategy", - "CreateConnectionRequestContentEmail", - "CreateConnectionRequestContentEmailStrategy", - "CreateConnectionRequestContentEvernote", - "CreateConnectionRequestContentEvernoteSandbox", - "CreateConnectionRequestContentEvernoteSandboxStrategy", - "CreateConnectionRequestContentEvernoteStrategy", - "CreateConnectionRequestContentExact", - "CreateConnectionRequestContentExactStrategy", - "CreateConnectionRequestContentFacebook", - "CreateConnectionRequestContentFacebookStrategy", - "CreateConnectionRequestContentFitbit", - "CreateConnectionRequestContentFitbitStrategy", - "CreateConnectionRequestContentGitHub", - "CreateConnectionRequestContentGitHubStrategy", - "CreateConnectionRequestContentGoogleApps", - "CreateConnectionRequestContentGoogleAppsStrategy", - "CreateConnectionRequestContentGoogleOAuth2", - "CreateConnectionRequestContentGoogleOAuth2Strategy", - "CreateConnectionRequestContentInstagram", - "CreateConnectionRequestContentInstagramStrategy", - "CreateConnectionRequestContentIp", - "CreateConnectionRequestContentIpStrategy", - "CreateConnectionRequestContentLine", - "CreateConnectionRequestContentLineStrategy", - "CreateConnectionRequestContentLinkedin", - "CreateConnectionRequestContentLinkedinStrategy", - "CreateConnectionRequestContentOAuth1", - "CreateConnectionRequestContentOAuth1Strategy", - "CreateConnectionRequestContentOAuth2", - "CreateConnectionRequestContentOAuth2Strategy", - "CreateConnectionRequestContentOffice365", - "CreateConnectionRequestContentOffice365Strategy", - "CreateConnectionRequestContentOidc", - "CreateConnectionRequestContentOidcStrategy", - "CreateConnectionRequestContentOkta", - "CreateConnectionRequestContentOktaStrategy", - "CreateConnectionRequestContentPaypal", - "CreateConnectionRequestContentPaypalSandbox", - "CreateConnectionRequestContentPaypalSandboxStrategy", - "CreateConnectionRequestContentPaypalStrategy", - "CreateConnectionRequestContentPingFederate", - "CreateConnectionRequestContentPingFederateStrategy", - "CreateConnectionRequestContentPlanningCenter", - "CreateConnectionRequestContentPlanningCenterStrategy", - "CreateConnectionRequestContentSalesforce", - "CreateConnectionRequestContentSalesforceCommunity", - "CreateConnectionRequestContentSalesforceCommunityStrategy", - "CreateConnectionRequestContentSalesforceSandbox", - "CreateConnectionRequestContentSalesforceSandboxStrategy", - "CreateConnectionRequestContentSalesforceStrategy", - "CreateConnectionRequestContentSaml", - "CreateConnectionRequestContentSamlStrategy", - "CreateConnectionRequestContentSharepoint", - "CreateConnectionRequestContentSharepointStrategy", - "CreateConnectionRequestContentShop", - "CreateConnectionRequestContentShopStrategy", - "CreateConnectionRequestContentShopify", - "CreateConnectionRequestContentShopifyStrategy", - "CreateConnectionRequestContentSms", - "CreateConnectionRequestContentSmsStrategy", - "CreateConnectionRequestContentSoundcloud", - "CreateConnectionRequestContentSoundcloudStrategy", - "CreateConnectionRequestContentThirtySevenSignals", - "CreateConnectionRequestContentThirtySevenSignalsStrategy", - "CreateConnectionRequestContentTwitter", - "CreateConnectionRequestContentTwitterStrategy", - "CreateConnectionRequestContentUntappd", - "CreateConnectionRequestContentUntappdStrategy", - "CreateConnectionRequestContentVkontakte", - "CreateConnectionRequestContentVkontakteStrategy", - "CreateConnectionRequestContentWeibo", - "CreateConnectionRequestContentWeiboStrategy", - "CreateConnectionRequestContentWindowsLive", - "CreateConnectionRequestContentWindowsLiveStrategy", - "CreateConnectionRequestContentWordpress", - "CreateConnectionRequestContentWordpressStrategy", - "CreateConnectionRequestContentYahoo", - "CreateConnectionRequestContentYahooStrategy", - "CreateConnectionRequestContentYandex", - "CreateConnectionRequestContentYandexStrategy", - "CreateConnectionResponseContent", - "CreateCrossAppAccessResourceApp", - "CreateCustomDomainResponseContent", - "CreateDirectoryProvisioningRequestContent", - "CreateDirectoryProvisioningResponseContent", - "CreateDirectorySynchronizationResponseContent", - "CreateEmailProviderResponseContent", - "CreateEmailTemplateResponseContent", - "CreateEncryptionKeyPublicWrappingResponseContent", - "CreateEncryptionKeyResponseContent", - "CreateEncryptionKeyType", - "CreateEventStreamActionRequestContent", - "CreateEventStreamEventBridgeRequestContent", - "CreateEventStreamRedeliveryResponseContent", - "CreateEventStreamResponseContent", - "CreateEventStreamTestEventResponseContent", - "CreateEventStreamWebHookRequestContent", - "CreateExperimentResponseContent", - "CreateExportUsersFields", - "CreateExportUsersResponseContent", - "CreateFeatureFlagParameters", - "CreateFeatureFlagResponseContent", - "CreateFlowResponseContent", - "CreateFlowsVaultConnectionActivecampaign", - "CreateFlowsVaultConnectionActivecampaignApiKey", - "CreateFlowsVaultConnectionActivecampaignUninitialized", - "CreateFlowsVaultConnectionAirtable", - "CreateFlowsVaultConnectionAirtableApiKey", - "CreateFlowsVaultConnectionAirtableUninitialized", - "CreateFlowsVaultConnectionAuth0", - "CreateFlowsVaultConnectionAuth0OauthApp", - "CreateFlowsVaultConnectionAuth0Uninitialized", - "CreateFlowsVaultConnectionBigquery", - "CreateFlowsVaultConnectionBigqueryJwt", - "CreateFlowsVaultConnectionBigqueryUninitialized", - "CreateFlowsVaultConnectionClearbit", - "CreateFlowsVaultConnectionClearbitApiKey", - "CreateFlowsVaultConnectionClearbitUninitialized", - "CreateFlowsVaultConnectionDocusign", - "CreateFlowsVaultConnectionDocusignOauthCode", - "CreateFlowsVaultConnectionDocusignUninitialized", - "CreateFlowsVaultConnectionGoogleSheets", - "CreateFlowsVaultConnectionGoogleSheetsOauthCode", - "CreateFlowsVaultConnectionGoogleSheetsUninitialized", - "CreateFlowsVaultConnectionHttp", - "CreateFlowsVaultConnectionHttpApiKey", - "CreateFlowsVaultConnectionHttpBasicAuth", - "CreateFlowsVaultConnectionHttpBearer", - "CreateFlowsVaultConnectionHttpOauthClientCredentials", - "CreateFlowsVaultConnectionHttpUninitialized", - "CreateFlowsVaultConnectionHubspot", - "CreateFlowsVaultConnectionHubspotApiKey", - "CreateFlowsVaultConnectionHubspotOauthCode", - "CreateFlowsVaultConnectionHubspotUninitialized", - "CreateFlowsVaultConnectionJwt", - "CreateFlowsVaultConnectionJwtJwt", - "CreateFlowsVaultConnectionJwtUninitialized", - "CreateFlowsVaultConnectionMailchimp", - "CreateFlowsVaultConnectionMailchimpApiKey", - "CreateFlowsVaultConnectionMailchimpOauthCode", - "CreateFlowsVaultConnectionMailchimpUninitialized", - "CreateFlowsVaultConnectionMailjet", - "CreateFlowsVaultConnectionMailjetApiKey", - "CreateFlowsVaultConnectionMailjetUninitialized", - "CreateFlowsVaultConnectionPipedrive", - "CreateFlowsVaultConnectionPipedriveOauthCode", - "CreateFlowsVaultConnectionPipedriveToken", - "CreateFlowsVaultConnectionPipedriveUninitialized", - "CreateFlowsVaultConnectionRequestContent", - "CreateFlowsVaultConnectionResponseContent", - "CreateFlowsVaultConnectionSalesforce", - "CreateFlowsVaultConnectionSalesforceOauthCode", - "CreateFlowsVaultConnectionSalesforceUninitialized", - "CreateFlowsVaultConnectionSendgrid", - "CreateFlowsVaultConnectionSendgridApiKey", - "CreateFlowsVaultConnectionSendgridUninitialized", - "CreateFlowsVaultConnectionSlack", - "CreateFlowsVaultConnectionSlackOauthCode", - "CreateFlowsVaultConnectionSlackUninitialized", - "CreateFlowsVaultConnectionSlackWebhook", - "CreateFlowsVaultConnectionStripe", - "CreateFlowsVaultConnectionStripeKeyPair", - "CreateFlowsVaultConnectionStripeOauthCode", - "CreateFlowsVaultConnectionStripeUninitialized", - "CreateFlowsVaultConnectionTelegram", - "CreateFlowsVaultConnectionTelegramToken", - "CreateFlowsVaultConnectionTelegramUninitialized", - "CreateFlowsVaultConnectionTwilio", - "CreateFlowsVaultConnectionTwilioApiKey", - "CreateFlowsVaultConnectionTwilioUninitialized", - "CreateFlowsVaultConnectionWhatsapp", - "CreateFlowsVaultConnectionWhatsappToken", - "CreateFlowsVaultConnectionWhatsappUninitialized", - "CreateFlowsVaultConnectionZapier", - "CreateFlowsVaultConnectionZapierUninitialized", - "CreateFlowsVaultConnectionZapierWebhook", - "CreateFormResponseContent", - "CreateGuardianEnrollmentTicketResponseContent", - "CreateHookResponseContent", - "CreateHookSecretRequestContent", - "CreateIdentityAssertionAuthorizationGrant", - "CreateImportUsersResponseContent", - "CreateKeysNetworkAclsResponseContent", - "CreateLogStreamDatadogRequestBody", - "CreateLogStreamEventBridgeRequestBody", - "CreateLogStreamEventGridRequestBody", - "CreateLogStreamHttpRequestBody", - "CreateLogStreamMixpanelRequestBody", - "CreateLogStreamRequestContent", - "CreateLogStreamResponseContent", - "CreateLogStreamSegmentRequestBody", - "CreateLogStreamSplunkRequestBody", - "CreateLogStreamSumoRequestBody", - "CreateOrganizationAllConnectionResponseContent", - "CreateOrganizationClientRequestItem", - "CreateOrganizationClientsResponseContent", - "CreateOrganizationDiscoveryDomainResponseContent", - "CreateOrganizationInvitationResponseContent", - "CreateOrganizationResponseContent", - "CreatePhoneProviderSendTestResponseContent", - "CreatePhoneTemplateResponseContent", - "CreatePhoneTemplateTestNotificationResponseContent", - "CreatePublicKeyDeviceCredentialResponseContent", - "CreateRateLimitPolicyResponseContent", - "CreateResourceServerResponseContent", - "CreateRoleResponseContent", - "CreateRuleResponseContent", - "CreateScimConfigurationRequestContent", - "CreateScimConfigurationResponseContent", - "CreateScimTokenResponseContent", - "CreateSegmentResponseContent", - "CreateSelfServiceProfileResponseContent", - "CreateSelfServiceProfileSsoTicketResponseContent", - "CreateTokenExchangeProfileResponseContent", - "CreateTokenQuota", - "CreateUserAttributeProfileResponseContent", - "CreateUserAuthenticationMethodResponseContent", - "CreateUserResponseContent", - "CreateVariationResponseContent", - "CreateVerifiableCredentialTemplateResponseContent", - "CreateVerificationEmailResponseContent", - "CreatedAuthenticationMethodTypeEnum", - "CreatedUserAuthenticationMethodTypeEnum", - "CredentialDeviceTypeEnum", - "CredentialId", - "CrossAppAccessRequestingApp", - "CrossAppAccessResourceApp", - "CrossAppAccessResourceAppStatusEnum", - "CspDirectives", - "CspFlag", - "CspFlags", - "CspPolicies", - "CspPolicy", - "CspPolicyMode", - "CspPolicyReporting", - "CspReportTo", - "CspReportToEndpoint", - "CspReportToEndpoints", - "CspReportingEndpoints", - "CspReportingInfrastructure", - "CustomDomain", - "CustomDomainCustomClientIpHeader", - "CustomDomainCustomClientIpHeaderEnum", "CustomDomainHeader", - "CustomDomainProvisioningTypeEnum", - "CustomDomainStatusFilterEnum", - "CustomDomainTlsPolicyEnum", - "CustomDomainTypeEnum", - "CustomDomainVerificationMethodEnum", - "CustomProviderConfiguration", - "CustomProviderCredentials", - "CustomProviderDeliveryMethodEnum", - "CustomSigningKeyAlgorithmEnum", - "CustomSigningKeyCurveEnum", - "CustomSigningKeyJwk", - "CustomSigningKeyOperationEnum", - "CustomSigningKeyTypeEnum", - "CustomSigningKeyUseEnum", - "DailyStats", "DefaultAioHttpClient", "DefaultAsyncHttpxClient", - "DefaultConfigEnum", - "DefaultMethodEmailIdentifierEnum", - "DefaultMethodPhoneNumberIdentifierEnum", - "DefaultTokenQuota", - "DeleteHookSecretRequestContent", - "DeleteUserIdentityResponseContent", - "DeleteUserIdentityResponseContentItem", - "DeployActionResponseContent", - "DeployActionVersionRequestContent", - "DeployActionVersionResponseContent", - "DeviceCredential", - "DeviceCredentialPublicKeyTypeEnum", - "DeviceCredentialTypeEnum", - "DirectoryProvisioning", - "DirectoryProvisioningMappingItem", - "DomainCertificate", - "DomainCertificateAuthorityEnum", - "DomainCertificateStatusEnum", - "DomainMetadata", - "DomainVerification", - "DomainVerificationMethod", - "DomainVerificationMethodNameEnum", - "DomainVerificationStatusEnum", - "EmailAttribute", - "EmailAttributeIdentifier", - "EmailMailgunRegionEnum", - "EmailProviderCredentials", - "EmailProviderCredentialsSchema", - "EmailProviderCredentialsSchemaAccessKeyId", - "EmailProviderCredentialsSchemaApiKey", - "EmailProviderCredentialsSchemaClientId", - "EmailProviderCredentialsSchemaConnectionString", - "EmailProviderCredentialsSchemaSmtpHost", - "EmailProviderCredentialsSchemaThree", - "EmailProviderCredentialsSchemaZero", - "EmailProviderNameEnum", - "EmailProviderSettings", - "EmailSmtpHost", - "EmailSparkPostRegionEnum", - "EmailSpecificProviderSettingsWithAdditionalProperties", - "EmailTemplateNameEnum", - "EnabledFeaturesEnum", - "EncryptionKey", - "EncryptionKeyPublicWrappingAlgorithm", - "EncryptionKeyState", - "EncryptionKeyType", - "EventStreamActionConfiguration", - "EventStreamActionDestination", - "EventStreamActionDestinationTypeEnum", - "EventStreamActionResponseContent", - "EventStreamCloudEvent", - "EventStreamCloudEventA0PurposeEnum", - "EventStreamCloudEventConnectionCreated", - "EventStreamCloudEventConnectionCreatedCloudEvent", - "EventStreamCloudEventConnectionCreatedCloudEventTypeEnum", - "EventStreamCloudEventConnectionCreatedData", - "EventStreamCloudEventConnectionCreatedObject", - "EventStreamCloudEventConnectionCreatedObject0", - "EventStreamCloudEventConnectionCreatedObject0Authentication", - "EventStreamCloudEventConnectionCreatedObject0ConnectedAccounts", - "EventStreamCloudEventConnectionCreatedObject0Metadata", - "EventStreamCloudEventConnectionCreatedObject0Options", - "EventStreamCloudEventConnectionCreatedObject0OptionsAttributeMap", - "EventStreamCloudEventConnectionCreatedObject0OptionsAttributeMapAttributes", - "EventStreamCloudEventConnectionCreatedObject0OptionsAttributeMapMappingModeEnum", - "EventStreamCloudEventConnectionCreatedObject0OptionsConnectionSettings", - "EventStreamCloudEventConnectionCreatedObject0OptionsConnectionSettingsPkceEnum", - "EventStreamCloudEventConnectionCreatedObject0OptionsDpopSigningAlgEnum", - "EventStreamCloudEventConnectionCreatedObject0OptionsFederatedConnectionsAccessTokens", - "EventStreamCloudEventConnectionCreatedObject0OptionsIdTokenSignedResponseAlgsItemEnum", - "EventStreamCloudEventConnectionCreatedObject0OptionsOidcMetadata", - "EventStreamCloudEventConnectionCreatedObject0OptionsSchemaVersionEnum", - "EventStreamCloudEventConnectionCreatedObject0OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointAuthMethodEnum", - "EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointAuthSigningAlgEnum", - "EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointJwtcaAudFormatEnum", - "EventStreamCloudEventConnectionCreatedObject0OptionsTypeEnum", - "EventStreamCloudEventConnectionCreatedObject0OptionsUpstreamParams", - "EventStreamCloudEventConnectionCreatedObject0StrategyEnum", - "EventStreamCloudEventConnectionCreatedObject1", - "EventStreamCloudEventConnectionCreatedObject1Authentication", - "EventStreamCloudEventConnectionCreatedObject1ConnectedAccounts", - "EventStreamCloudEventConnectionCreatedObject1Metadata", - "EventStreamCloudEventConnectionCreatedObject1Options", - "EventStreamCloudEventConnectionCreatedObject1OptionsAttributeMap", - "EventStreamCloudEventConnectionCreatedObject1OptionsAttributeMapAttributes", - "EventStreamCloudEventConnectionCreatedObject1OptionsAttributeMapMappingModeEnum", - "EventStreamCloudEventConnectionCreatedObject1OptionsConnectionSettings", - "EventStreamCloudEventConnectionCreatedObject1OptionsConnectionSettingsPkceEnum", - "EventStreamCloudEventConnectionCreatedObject1OptionsDpopSigningAlgEnum", - "EventStreamCloudEventConnectionCreatedObject1OptionsFederatedConnectionsAccessTokens", - "EventStreamCloudEventConnectionCreatedObject1OptionsIdTokenSignedResponseAlgsItemEnum", - "EventStreamCloudEventConnectionCreatedObject1OptionsOidcMetadata", - "EventStreamCloudEventConnectionCreatedObject1OptionsSchemaVersionEnum", - "EventStreamCloudEventConnectionCreatedObject1OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointAuthMethodEnum", - "EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointAuthSigningAlgEnum", - "EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointJwtcaAudFormatEnum", - "EventStreamCloudEventConnectionCreatedObject1OptionsTypeEnum", - "EventStreamCloudEventConnectionCreatedObject1OptionsUpstreamParams", - "EventStreamCloudEventConnectionCreatedObject1StrategyEnum", - "EventStreamCloudEventConnectionCreatedObject2", - "EventStreamCloudEventConnectionCreatedObject2Authentication", - "EventStreamCloudEventConnectionCreatedObject2ConnectedAccounts", - "EventStreamCloudEventConnectionCreatedObject2Metadata", - "EventStreamCloudEventConnectionCreatedObject2Options", - "EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettings", - "EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum", - "EventStreamCloudEventConnectionCreatedObject2OptionsDigestAlgorithmEnum", - "EventStreamCloudEventConnectionCreatedObject2OptionsFieldsMap", - "EventStreamCloudEventConnectionCreatedObject2OptionsIdpinitiated", - "EventStreamCloudEventConnectionCreatedObject2OptionsIdpinitiatedClientProtocolEnum", - "EventStreamCloudEventConnectionCreatedObject2OptionsOidcMetadata", - "EventStreamCloudEventConnectionCreatedObject2OptionsProtocolBindingEnum", - "EventStreamCloudEventConnectionCreatedObject2OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionCreatedObject2OptionsSignatureAlgorithmEnum", - "EventStreamCloudEventConnectionCreatedObject2OptionsSubject", - "EventStreamCloudEventConnectionCreatedObject2OptionsUpstreamParams", - "EventStreamCloudEventConnectionCreatedObject2StrategyEnum", - "EventStreamCloudEventConnectionCreatedObject3", - "EventStreamCloudEventConnectionCreatedObject3Authentication", - "EventStreamCloudEventConnectionCreatedObject3ConnectedAccounts", - "EventStreamCloudEventConnectionCreatedObject3Metadata", - "EventStreamCloudEventConnectionCreatedObject3Options", - "EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettings", - "EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum", - "EventStreamCloudEventConnectionCreatedObject3OptionsDigestAlgorithmEnum", - "EventStreamCloudEventConnectionCreatedObject3OptionsIdpinitiated", - "EventStreamCloudEventConnectionCreatedObject3OptionsIdpinitiatedClientProtocolEnum", - "EventStreamCloudEventConnectionCreatedObject3OptionsProtocolBindingEnum", - "EventStreamCloudEventConnectionCreatedObject3OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionCreatedObject3OptionsSignatureAlgorithmEnum", - "EventStreamCloudEventConnectionCreatedObject3OptionsSubject", - "EventStreamCloudEventConnectionCreatedObject3OptionsUpstreamParams", - "EventStreamCloudEventConnectionCreatedObject3StrategyEnum", - "EventStreamCloudEventConnectionCreatedObject4", - "EventStreamCloudEventConnectionCreatedObject4Authentication", - "EventStreamCloudEventConnectionCreatedObject4ConnectedAccounts", - "EventStreamCloudEventConnectionCreatedObject4Metadata", - "EventStreamCloudEventConnectionCreatedObject4Options", - "EventStreamCloudEventConnectionCreatedObject4OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionCreatedObject4OptionsShouldTrustEmailVerifiedConnectionEnum", - "EventStreamCloudEventConnectionCreatedObject4OptionsUpstreamParams", - "EventStreamCloudEventConnectionCreatedObject4StrategyEnum", - "EventStreamCloudEventConnectionCreatedObject5", - "EventStreamCloudEventConnectionCreatedObject5Authentication", - "EventStreamCloudEventConnectionCreatedObject5ConnectedAccounts", - "EventStreamCloudEventConnectionCreatedObject5Metadata", - "EventStreamCloudEventConnectionCreatedObject5Options", - "EventStreamCloudEventConnectionCreatedObject5OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionCreatedObject5OptionsUpstreamParams", - "EventStreamCloudEventConnectionCreatedObject5StrategyEnum", - "EventStreamCloudEventConnectionCreatedObject6", - "EventStreamCloudEventConnectionCreatedObject6Authentication", - "EventStreamCloudEventConnectionCreatedObject6ConnectedAccounts", - "EventStreamCloudEventConnectionCreatedObject6Metadata", - "EventStreamCloudEventConnectionCreatedObject6Options", - "EventStreamCloudEventConnectionCreatedObject6OptionsFederatedConnectionsAccessTokens", - "EventStreamCloudEventConnectionCreatedObject6OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionCreatedObject6OptionsUpstreamParams", - "EventStreamCloudEventConnectionCreatedObject6StrategyEnum", - "EventStreamCloudEventConnectionCreatedObject7", - "EventStreamCloudEventConnectionCreatedObject7Authentication", - "EventStreamCloudEventConnectionCreatedObject7ConnectedAccounts", - "EventStreamCloudEventConnectionCreatedObject7Metadata", - "EventStreamCloudEventConnectionCreatedObject7Options", - "EventStreamCloudEventConnectionCreatedObject7OptionsFederatedConnectionsAccessTokens", - "EventStreamCloudEventConnectionCreatedObject7OptionsIdentityApiEnum", - "EventStreamCloudEventConnectionCreatedObject7OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionCreatedObject7OptionsShouldTrustEmailVerifiedConnectionEnum", - "EventStreamCloudEventConnectionCreatedObject7OptionsTenantDomainOne", - "EventStreamCloudEventConnectionCreatedObject7OptionsUpstreamParams", - "EventStreamCloudEventConnectionCreatedObject7OptionsUseridAttributeEnum", - "EventStreamCloudEventConnectionCreatedObject7OptionsWaadProtocolEnum", - "EventStreamCloudEventConnectionCreatedObject7StrategyEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject", - "EventStreamCloudEventConnectionCreatedPreviousObject0", - "EventStreamCloudEventConnectionCreatedPreviousObject0Authentication", - "EventStreamCloudEventConnectionCreatedPreviousObject0ConnectedAccounts", - "EventStreamCloudEventConnectionCreatedPreviousObject0Metadata", - "EventStreamCloudEventConnectionCreatedPreviousObject0Options", - "EventStreamCloudEventConnectionCreatedPreviousObject0OptionsAttributeMap", - "EventStreamCloudEventConnectionCreatedPreviousObject0OptionsAttributeMapAttributes", - "EventStreamCloudEventConnectionCreatedPreviousObject0OptionsAttributeMapMappingModeEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject0OptionsConnectionSettings", - "EventStreamCloudEventConnectionCreatedPreviousObject0OptionsConnectionSettingsPkceEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject0OptionsDpopSigningAlgEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject0OptionsFederatedConnectionsAccessTokens", - "EventStreamCloudEventConnectionCreatedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject0OptionsOidcMetadata", - "EventStreamCloudEventConnectionCreatedPreviousObject0OptionsSchemaVersionEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject0OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTokenEndpointAuthMethodEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTokenEndpointJwtcaAudFormatEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTypeEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject0OptionsUpstreamParams", - "EventStreamCloudEventConnectionCreatedPreviousObject0StrategyEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject1", - "EventStreamCloudEventConnectionCreatedPreviousObject1Authentication", - "EventStreamCloudEventConnectionCreatedPreviousObject1ConnectedAccounts", - "EventStreamCloudEventConnectionCreatedPreviousObject1Metadata", - "EventStreamCloudEventConnectionCreatedPreviousObject1Options", - "EventStreamCloudEventConnectionCreatedPreviousObject1OptionsAttributeMap", - "EventStreamCloudEventConnectionCreatedPreviousObject1OptionsAttributeMapAttributes", - "EventStreamCloudEventConnectionCreatedPreviousObject1OptionsAttributeMapMappingModeEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject1OptionsConnectionSettings", - "EventStreamCloudEventConnectionCreatedPreviousObject1OptionsConnectionSettingsPkceEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject1OptionsDpopSigningAlgEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject1OptionsFederatedConnectionsAccessTokens", - "EventStreamCloudEventConnectionCreatedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject1OptionsOidcMetadata", - "EventStreamCloudEventConnectionCreatedPreviousObject1OptionsSchemaVersionEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject1OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTokenEndpointAuthMethodEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTokenEndpointJwtcaAudFormatEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTypeEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject1OptionsUpstreamParams", - "EventStreamCloudEventConnectionCreatedPreviousObject1StrategyEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject2", - "EventStreamCloudEventConnectionCreatedPreviousObject2Authentication", - "EventStreamCloudEventConnectionCreatedPreviousObject2ConnectedAccounts", - "EventStreamCloudEventConnectionCreatedPreviousObject2Metadata", - "EventStreamCloudEventConnectionCreatedPreviousObject2Options", - "EventStreamCloudEventConnectionCreatedPreviousObject2OptionsAssertionDecryptionSettings", - "EventStreamCloudEventConnectionCreatedPreviousObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject2OptionsDigestAlgorithmEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject2OptionsFieldsMap", - "EventStreamCloudEventConnectionCreatedPreviousObject2OptionsIdpinitiated", - "EventStreamCloudEventConnectionCreatedPreviousObject2OptionsIdpinitiatedClientProtocolEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject2OptionsOidcMetadata", - "EventStreamCloudEventConnectionCreatedPreviousObject2OptionsProtocolBindingEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject2OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject2OptionsSignatureAlgorithmEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject2OptionsSubject", - "EventStreamCloudEventConnectionCreatedPreviousObject2OptionsUpstreamParams", - "EventStreamCloudEventConnectionCreatedPreviousObject2StrategyEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject3", - "EventStreamCloudEventConnectionCreatedPreviousObject3Authentication", - "EventStreamCloudEventConnectionCreatedPreviousObject3ConnectedAccounts", - "EventStreamCloudEventConnectionCreatedPreviousObject3Metadata", - "EventStreamCloudEventConnectionCreatedPreviousObject3Options", - "EventStreamCloudEventConnectionCreatedPreviousObject3OptionsAssertionDecryptionSettings", - "EventStreamCloudEventConnectionCreatedPreviousObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject3OptionsDigestAlgorithmEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject3OptionsIdpinitiated", - "EventStreamCloudEventConnectionCreatedPreviousObject3OptionsIdpinitiatedClientProtocolEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject3OptionsProtocolBindingEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject3OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject3OptionsSignatureAlgorithmEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject3OptionsSubject", - "EventStreamCloudEventConnectionCreatedPreviousObject3OptionsUpstreamParams", - "EventStreamCloudEventConnectionCreatedPreviousObject3StrategyEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject4", - "EventStreamCloudEventConnectionCreatedPreviousObject4Authentication", - "EventStreamCloudEventConnectionCreatedPreviousObject4ConnectedAccounts", - "EventStreamCloudEventConnectionCreatedPreviousObject4Metadata", - "EventStreamCloudEventConnectionCreatedPreviousObject4Options", - "EventStreamCloudEventConnectionCreatedPreviousObject4OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject4OptionsShouldTrustEmailVerifiedConnectionEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject4OptionsUpstreamParams", - "EventStreamCloudEventConnectionCreatedPreviousObject4StrategyEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject5", - "EventStreamCloudEventConnectionCreatedPreviousObject5Authentication", - "EventStreamCloudEventConnectionCreatedPreviousObject5ConnectedAccounts", - "EventStreamCloudEventConnectionCreatedPreviousObject5Metadata", - "EventStreamCloudEventConnectionCreatedPreviousObject5Options", - "EventStreamCloudEventConnectionCreatedPreviousObject5OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject5OptionsUpstreamParams", - "EventStreamCloudEventConnectionCreatedPreviousObject5StrategyEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject6", - "EventStreamCloudEventConnectionCreatedPreviousObject6Authentication", - "EventStreamCloudEventConnectionCreatedPreviousObject6ConnectedAccounts", - "EventStreamCloudEventConnectionCreatedPreviousObject6Metadata", - "EventStreamCloudEventConnectionCreatedPreviousObject6Options", - "EventStreamCloudEventConnectionCreatedPreviousObject6OptionsFederatedConnectionsAccessTokens", - "EventStreamCloudEventConnectionCreatedPreviousObject6OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject6OptionsUpstreamParams", - "EventStreamCloudEventConnectionCreatedPreviousObject6StrategyEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject7", - "EventStreamCloudEventConnectionCreatedPreviousObject7Authentication", - "EventStreamCloudEventConnectionCreatedPreviousObject7ConnectedAccounts", - "EventStreamCloudEventConnectionCreatedPreviousObject7Metadata", - "EventStreamCloudEventConnectionCreatedPreviousObject7Options", - "EventStreamCloudEventConnectionCreatedPreviousObject7OptionsFederatedConnectionsAccessTokens", - "EventStreamCloudEventConnectionCreatedPreviousObject7OptionsIdentityApiEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject7OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject7OptionsTenantDomainOne", - "EventStreamCloudEventConnectionCreatedPreviousObject7OptionsUpstreamParams", - "EventStreamCloudEventConnectionCreatedPreviousObject7OptionsUseridAttributeEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject7OptionsWaadProtocolEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject7StrategyEnum", - "EventStreamCloudEventConnectionCreatedTypeEnum", - "EventStreamCloudEventConnectionDeleted", - "EventStreamCloudEventConnectionDeletedCloudEvent", - "EventStreamCloudEventConnectionDeletedCloudEventTypeEnum", - "EventStreamCloudEventConnectionDeletedData", - "EventStreamCloudEventConnectionDeletedObject", - "EventStreamCloudEventConnectionDeletedObject0", - "EventStreamCloudEventConnectionDeletedObject0Authentication", - "EventStreamCloudEventConnectionDeletedObject0ConnectedAccounts", - "EventStreamCloudEventConnectionDeletedObject0Metadata", - "EventStreamCloudEventConnectionDeletedObject0Options", - "EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMap", - "EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMapAttributes", - "EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMapMappingModeEnum", - "EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettings", - "EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettingsPkceEnum", - "EventStreamCloudEventConnectionDeletedObject0OptionsDpopSigningAlgEnum", - "EventStreamCloudEventConnectionDeletedObject0OptionsFederatedConnectionsAccessTokens", - "EventStreamCloudEventConnectionDeletedObject0OptionsIdTokenSignedResponseAlgsItemEnum", - "EventStreamCloudEventConnectionDeletedObject0OptionsOidcMetadata", - "EventStreamCloudEventConnectionDeletedObject0OptionsSchemaVersionEnum", - "EventStreamCloudEventConnectionDeletedObject0OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthMethodEnum", - "EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthSigningAlgEnum", - "EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointJwtcaAudFormatEnum", - "EventStreamCloudEventConnectionDeletedObject0OptionsTypeEnum", - "EventStreamCloudEventConnectionDeletedObject0OptionsUpstreamParams", - "EventStreamCloudEventConnectionDeletedObject0StrategyEnum", - "EventStreamCloudEventConnectionDeletedObject1", - "EventStreamCloudEventConnectionDeletedObject1Authentication", - "EventStreamCloudEventConnectionDeletedObject1ConnectedAccounts", - "EventStreamCloudEventConnectionDeletedObject1Metadata", - "EventStreamCloudEventConnectionDeletedObject1Options", - "EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMap", - "EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMapAttributes", - "EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMapMappingModeEnum", - "EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettings", - "EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettingsPkceEnum", - "EventStreamCloudEventConnectionDeletedObject1OptionsDpopSigningAlgEnum", - "EventStreamCloudEventConnectionDeletedObject1OptionsFederatedConnectionsAccessTokens", - "EventStreamCloudEventConnectionDeletedObject1OptionsIdTokenSignedResponseAlgsItemEnum", - "EventStreamCloudEventConnectionDeletedObject1OptionsOidcMetadata", - "EventStreamCloudEventConnectionDeletedObject1OptionsSchemaVersionEnum", - "EventStreamCloudEventConnectionDeletedObject1OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthMethodEnum", - "EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthSigningAlgEnum", - "EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointJwtcaAudFormatEnum", - "EventStreamCloudEventConnectionDeletedObject1OptionsTypeEnum", - "EventStreamCloudEventConnectionDeletedObject1OptionsUpstreamParams", - "EventStreamCloudEventConnectionDeletedObject1StrategyEnum", - "EventStreamCloudEventConnectionDeletedObject2", - "EventStreamCloudEventConnectionDeletedObject2Authentication", - "EventStreamCloudEventConnectionDeletedObject2ConnectedAccounts", - "EventStreamCloudEventConnectionDeletedObject2Metadata", - "EventStreamCloudEventConnectionDeletedObject2Options", - "EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettings", - "EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum", - "EventStreamCloudEventConnectionDeletedObject2OptionsDigestAlgorithmEnum", - "EventStreamCloudEventConnectionDeletedObject2OptionsFieldsMap", - "EventStreamCloudEventConnectionDeletedObject2OptionsIdpinitiated", - "EventStreamCloudEventConnectionDeletedObject2OptionsIdpinitiatedClientProtocolEnum", - "EventStreamCloudEventConnectionDeletedObject2OptionsOidcMetadata", - "EventStreamCloudEventConnectionDeletedObject2OptionsProtocolBindingEnum", - "EventStreamCloudEventConnectionDeletedObject2OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionDeletedObject2OptionsSignatureAlgorithmEnum", - "EventStreamCloudEventConnectionDeletedObject2OptionsSubject", - "EventStreamCloudEventConnectionDeletedObject2OptionsUpstreamParams", - "EventStreamCloudEventConnectionDeletedObject2StrategyEnum", - "EventStreamCloudEventConnectionDeletedObject3", - "EventStreamCloudEventConnectionDeletedObject3Authentication", - "EventStreamCloudEventConnectionDeletedObject3ConnectedAccounts", - "EventStreamCloudEventConnectionDeletedObject3Metadata", - "EventStreamCloudEventConnectionDeletedObject3Options", - "EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettings", - "EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum", - "EventStreamCloudEventConnectionDeletedObject3OptionsDigestAlgorithmEnum", - "EventStreamCloudEventConnectionDeletedObject3OptionsIdpinitiated", - "EventStreamCloudEventConnectionDeletedObject3OptionsIdpinitiatedClientProtocolEnum", - "EventStreamCloudEventConnectionDeletedObject3OptionsProtocolBindingEnum", - "EventStreamCloudEventConnectionDeletedObject3OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionDeletedObject3OptionsSignatureAlgorithmEnum", - "EventStreamCloudEventConnectionDeletedObject3OptionsSubject", - "EventStreamCloudEventConnectionDeletedObject3OptionsUpstreamParams", - "EventStreamCloudEventConnectionDeletedObject3StrategyEnum", - "EventStreamCloudEventConnectionDeletedObject4", - "EventStreamCloudEventConnectionDeletedObject4Authentication", - "EventStreamCloudEventConnectionDeletedObject4ConnectedAccounts", - "EventStreamCloudEventConnectionDeletedObject4Metadata", - "EventStreamCloudEventConnectionDeletedObject4Options", - "EventStreamCloudEventConnectionDeletedObject4OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionDeletedObject4OptionsShouldTrustEmailVerifiedConnectionEnum", - "EventStreamCloudEventConnectionDeletedObject4OptionsUpstreamParams", - "EventStreamCloudEventConnectionDeletedObject4StrategyEnum", - "EventStreamCloudEventConnectionDeletedObject5", - "EventStreamCloudEventConnectionDeletedObject5Authentication", - "EventStreamCloudEventConnectionDeletedObject5ConnectedAccounts", - "EventStreamCloudEventConnectionDeletedObject5Metadata", - "EventStreamCloudEventConnectionDeletedObject5Options", - "EventStreamCloudEventConnectionDeletedObject5OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionDeletedObject5OptionsUpstreamParams", - "EventStreamCloudEventConnectionDeletedObject5StrategyEnum", - "EventStreamCloudEventConnectionDeletedObject6", - "EventStreamCloudEventConnectionDeletedObject6Authentication", - "EventStreamCloudEventConnectionDeletedObject6ConnectedAccounts", - "EventStreamCloudEventConnectionDeletedObject6Metadata", - "EventStreamCloudEventConnectionDeletedObject6Options", - "EventStreamCloudEventConnectionDeletedObject6OptionsFederatedConnectionsAccessTokens", - "EventStreamCloudEventConnectionDeletedObject6OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionDeletedObject6OptionsUpstreamParams", - "EventStreamCloudEventConnectionDeletedObject6StrategyEnum", - "EventStreamCloudEventConnectionDeletedObject7", - "EventStreamCloudEventConnectionDeletedObject7Authentication", - "EventStreamCloudEventConnectionDeletedObject7ConnectedAccounts", - "EventStreamCloudEventConnectionDeletedObject7Metadata", - "EventStreamCloudEventConnectionDeletedObject7Options", - "EventStreamCloudEventConnectionDeletedObject7OptionsFederatedConnectionsAccessTokens", - "EventStreamCloudEventConnectionDeletedObject7OptionsIdentityApiEnum", - "EventStreamCloudEventConnectionDeletedObject7OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionDeletedObject7OptionsShouldTrustEmailVerifiedConnectionEnum", - "EventStreamCloudEventConnectionDeletedObject7OptionsTenantDomainOne", - "EventStreamCloudEventConnectionDeletedObject7OptionsUpstreamParams", - "EventStreamCloudEventConnectionDeletedObject7OptionsUseridAttributeEnum", - "EventStreamCloudEventConnectionDeletedObject7OptionsWaadProtocolEnum", - "EventStreamCloudEventConnectionDeletedObject7StrategyEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject", - "EventStreamCloudEventConnectionDeletedPreviousObject0", - "EventStreamCloudEventConnectionDeletedPreviousObject0Authentication", - "EventStreamCloudEventConnectionDeletedPreviousObject0ConnectedAccounts", - "EventStreamCloudEventConnectionDeletedPreviousObject0Metadata", - "EventStreamCloudEventConnectionDeletedPreviousObject0Options", - "EventStreamCloudEventConnectionDeletedPreviousObject0OptionsAttributeMap", - "EventStreamCloudEventConnectionDeletedPreviousObject0OptionsAttributeMapAttributes", - "EventStreamCloudEventConnectionDeletedPreviousObject0OptionsAttributeMapMappingModeEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject0OptionsConnectionSettings", - "EventStreamCloudEventConnectionDeletedPreviousObject0OptionsConnectionSettingsPkceEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject0OptionsDpopSigningAlgEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject0OptionsFederatedConnectionsAccessTokens", - "EventStreamCloudEventConnectionDeletedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject0OptionsOidcMetadata", - "EventStreamCloudEventConnectionDeletedPreviousObject0OptionsSchemaVersionEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject0OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTokenEndpointAuthMethodEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTokenEndpointJwtcaAudFormatEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTypeEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject0OptionsUpstreamParams", - "EventStreamCloudEventConnectionDeletedPreviousObject0StrategyEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject1", - "EventStreamCloudEventConnectionDeletedPreviousObject1Authentication", - "EventStreamCloudEventConnectionDeletedPreviousObject1ConnectedAccounts", - "EventStreamCloudEventConnectionDeletedPreviousObject1Metadata", - "EventStreamCloudEventConnectionDeletedPreviousObject1Options", - "EventStreamCloudEventConnectionDeletedPreviousObject1OptionsAttributeMap", - "EventStreamCloudEventConnectionDeletedPreviousObject1OptionsAttributeMapAttributes", - "EventStreamCloudEventConnectionDeletedPreviousObject1OptionsAttributeMapMappingModeEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject1OptionsConnectionSettings", - "EventStreamCloudEventConnectionDeletedPreviousObject1OptionsConnectionSettingsPkceEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject1OptionsDpopSigningAlgEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject1OptionsFederatedConnectionsAccessTokens", - "EventStreamCloudEventConnectionDeletedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject1OptionsOidcMetadata", - "EventStreamCloudEventConnectionDeletedPreviousObject1OptionsSchemaVersionEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject1OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTokenEndpointAuthMethodEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTokenEndpointJwtcaAudFormatEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTypeEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject1OptionsUpstreamParams", - "EventStreamCloudEventConnectionDeletedPreviousObject1StrategyEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject2", - "EventStreamCloudEventConnectionDeletedPreviousObject2Authentication", - "EventStreamCloudEventConnectionDeletedPreviousObject2ConnectedAccounts", - "EventStreamCloudEventConnectionDeletedPreviousObject2Metadata", - "EventStreamCloudEventConnectionDeletedPreviousObject2Options", - "EventStreamCloudEventConnectionDeletedPreviousObject2OptionsAssertionDecryptionSettings", - "EventStreamCloudEventConnectionDeletedPreviousObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject2OptionsDigestAlgorithmEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject2OptionsFieldsMap", - "EventStreamCloudEventConnectionDeletedPreviousObject2OptionsIdpinitiated", - "EventStreamCloudEventConnectionDeletedPreviousObject2OptionsIdpinitiatedClientProtocolEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject2OptionsOidcMetadata", - "EventStreamCloudEventConnectionDeletedPreviousObject2OptionsProtocolBindingEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject2OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject2OptionsSignatureAlgorithmEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject2OptionsSubject", - "EventStreamCloudEventConnectionDeletedPreviousObject2OptionsUpstreamParams", - "EventStreamCloudEventConnectionDeletedPreviousObject2StrategyEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject3", - "EventStreamCloudEventConnectionDeletedPreviousObject3Authentication", - "EventStreamCloudEventConnectionDeletedPreviousObject3ConnectedAccounts", - "EventStreamCloudEventConnectionDeletedPreviousObject3Metadata", - "EventStreamCloudEventConnectionDeletedPreviousObject3Options", - "EventStreamCloudEventConnectionDeletedPreviousObject3OptionsAssertionDecryptionSettings", - "EventStreamCloudEventConnectionDeletedPreviousObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject3OptionsDigestAlgorithmEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject3OptionsIdpinitiated", - "EventStreamCloudEventConnectionDeletedPreviousObject3OptionsIdpinitiatedClientProtocolEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject3OptionsProtocolBindingEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject3OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject3OptionsSignatureAlgorithmEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject3OptionsSubject", - "EventStreamCloudEventConnectionDeletedPreviousObject3OptionsUpstreamParams", - "EventStreamCloudEventConnectionDeletedPreviousObject3StrategyEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject4", - "EventStreamCloudEventConnectionDeletedPreviousObject4Authentication", - "EventStreamCloudEventConnectionDeletedPreviousObject4ConnectedAccounts", - "EventStreamCloudEventConnectionDeletedPreviousObject4Metadata", - "EventStreamCloudEventConnectionDeletedPreviousObject4Options", - "EventStreamCloudEventConnectionDeletedPreviousObject4OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject4OptionsShouldTrustEmailVerifiedConnectionEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject4OptionsUpstreamParams", - "EventStreamCloudEventConnectionDeletedPreviousObject4StrategyEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject5", - "EventStreamCloudEventConnectionDeletedPreviousObject5Authentication", - "EventStreamCloudEventConnectionDeletedPreviousObject5ConnectedAccounts", - "EventStreamCloudEventConnectionDeletedPreviousObject5Metadata", - "EventStreamCloudEventConnectionDeletedPreviousObject5Options", - "EventStreamCloudEventConnectionDeletedPreviousObject5OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject5OptionsUpstreamParams", - "EventStreamCloudEventConnectionDeletedPreviousObject5StrategyEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject6", - "EventStreamCloudEventConnectionDeletedPreviousObject6Authentication", - "EventStreamCloudEventConnectionDeletedPreviousObject6ConnectedAccounts", - "EventStreamCloudEventConnectionDeletedPreviousObject6Metadata", - "EventStreamCloudEventConnectionDeletedPreviousObject6Options", - "EventStreamCloudEventConnectionDeletedPreviousObject6OptionsFederatedConnectionsAccessTokens", - "EventStreamCloudEventConnectionDeletedPreviousObject6OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject6OptionsUpstreamParams", - "EventStreamCloudEventConnectionDeletedPreviousObject6StrategyEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject7", - "EventStreamCloudEventConnectionDeletedPreviousObject7Authentication", - "EventStreamCloudEventConnectionDeletedPreviousObject7ConnectedAccounts", - "EventStreamCloudEventConnectionDeletedPreviousObject7Metadata", - "EventStreamCloudEventConnectionDeletedPreviousObject7Options", - "EventStreamCloudEventConnectionDeletedPreviousObject7OptionsFederatedConnectionsAccessTokens", - "EventStreamCloudEventConnectionDeletedPreviousObject7OptionsIdentityApiEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject7OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject7OptionsTenantDomainOne", - "EventStreamCloudEventConnectionDeletedPreviousObject7OptionsUpstreamParams", - "EventStreamCloudEventConnectionDeletedPreviousObject7OptionsUseridAttributeEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject7OptionsWaadProtocolEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject7StrategyEnum", - "EventStreamCloudEventConnectionDeletedTypeEnum", - "EventStreamCloudEventConnectionUpdated", - "EventStreamCloudEventConnectionUpdatedCloudEvent", - "EventStreamCloudEventConnectionUpdatedCloudEventTypeEnum", - "EventStreamCloudEventConnectionUpdatedData", - "EventStreamCloudEventConnectionUpdatedObject", - "EventStreamCloudEventConnectionUpdatedObject0", - "EventStreamCloudEventConnectionUpdatedObject0Authentication", - "EventStreamCloudEventConnectionUpdatedObject0ConnectedAccounts", - "EventStreamCloudEventConnectionUpdatedObject0Metadata", - "EventStreamCloudEventConnectionUpdatedObject0Options", - "EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMap", - "EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMapAttributes", - "EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMapMappingModeEnum", - "EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettings", - "EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettingsPkceEnum", - "EventStreamCloudEventConnectionUpdatedObject0OptionsDpopSigningAlgEnum", - "EventStreamCloudEventConnectionUpdatedObject0OptionsFederatedConnectionsAccessTokens", - "EventStreamCloudEventConnectionUpdatedObject0OptionsIdTokenSignedResponseAlgsItemEnum", - "EventStreamCloudEventConnectionUpdatedObject0OptionsOidcMetadata", - "EventStreamCloudEventConnectionUpdatedObject0OptionsSchemaVersionEnum", - "EventStreamCloudEventConnectionUpdatedObject0OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthMethodEnum", - "EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthSigningAlgEnum", - "EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointJwtcaAudFormatEnum", - "EventStreamCloudEventConnectionUpdatedObject0OptionsTypeEnum", - "EventStreamCloudEventConnectionUpdatedObject0OptionsUpstreamParams", - "EventStreamCloudEventConnectionUpdatedObject0StrategyEnum", - "EventStreamCloudEventConnectionUpdatedObject1", - "EventStreamCloudEventConnectionUpdatedObject1Authentication", - "EventStreamCloudEventConnectionUpdatedObject1ConnectedAccounts", - "EventStreamCloudEventConnectionUpdatedObject1Metadata", - "EventStreamCloudEventConnectionUpdatedObject1Options", - "EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMap", - "EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMapAttributes", - "EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMapMappingModeEnum", - "EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettings", - "EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettingsPkceEnum", - "EventStreamCloudEventConnectionUpdatedObject1OptionsDpopSigningAlgEnum", - "EventStreamCloudEventConnectionUpdatedObject1OptionsFederatedConnectionsAccessTokens", - "EventStreamCloudEventConnectionUpdatedObject1OptionsIdTokenSignedResponseAlgsItemEnum", - "EventStreamCloudEventConnectionUpdatedObject1OptionsOidcMetadata", - "EventStreamCloudEventConnectionUpdatedObject1OptionsSchemaVersionEnum", - "EventStreamCloudEventConnectionUpdatedObject1OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthMethodEnum", - "EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthSigningAlgEnum", - "EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointJwtcaAudFormatEnum", - "EventStreamCloudEventConnectionUpdatedObject1OptionsTypeEnum", - "EventStreamCloudEventConnectionUpdatedObject1OptionsUpstreamParams", - "EventStreamCloudEventConnectionUpdatedObject1StrategyEnum", - "EventStreamCloudEventConnectionUpdatedObject2", - "EventStreamCloudEventConnectionUpdatedObject2Authentication", - "EventStreamCloudEventConnectionUpdatedObject2ConnectedAccounts", - "EventStreamCloudEventConnectionUpdatedObject2Metadata", - "EventStreamCloudEventConnectionUpdatedObject2Options", - "EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettings", - "EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum", - "EventStreamCloudEventConnectionUpdatedObject2OptionsDigestAlgorithmEnum", - "EventStreamCloudEventConnectionUpdatedObject2OptionsFieldsMap", - "EventStreamCloudEventConnectionUpdatedObject2OptionsIdpinitiated", - "EventStreamCloudEventConnectionUpdatedObject2OptionsIdpinitiatedClientProtocolEnum", - "EventStreamCloudEventConnectionUpdatedObject2OptionsOidcMetadata", - "EventStreamCloudEventConnectionUpdatedObject2OptionsProtocolBindingEnum", - "EventStreamCloudEventConnectionUpdatedObject2OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionUpdatedObject2OptionsSignatureAlgorithmEnum", - "EventStreamCloudEventConnectionUpdatedObject2OptionsSubject", - "EventStreamCloudEventConnectionUpdatedObject2OptionsUpstreamParams", - "EventStreamCloudEventConnectionUpdatedObject2StrategyEnum", - "EventStreamCloudEventConnectionUpdatedObject3", - "EventStreamCloudEventConnectionUpdatedObject3Authentication", - "EventStreamCloudEventConnectionUpdatedObject3ConnectedAccounts", - "EventStreamCloudEventConnectionUpdatedObject3Metadata", - "EventStreamCloudEventConnectionUpdatedObject3Options", - "EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettings", - "EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum", - "EventStreamCloudEventConnectionUpdatedObject3OptionsDigestAlgorithmEnum", - "EventStreamCloudEventConnectionUpdatedObject3OptionsIdpinitiated", - "EventStreamCloudEventConnectionUpdatedObject3OptionsIdpinitiatedClientProtocolEnum", - "EventStreamCloudEventConnectionUpdatedObject3OptionsProtocolBindingEnum", - "EventStreamCloudEventConnectionUpdatedObject3OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionUpdatedObject3OptionsSignatureAlgorithmEnum", - "EventStreamCloudEventConnectionUpdatedObject3OptionsSubject", - "EventStreamCloudEventConnectionUpdatedObject3OptionsUpstreamParams", - "EventStreamCloudEventConnectionUpdatedObject3StrategyEnum", - "EventStreamCloudEventConnectionUpdatedObject4", - "EventStreamCloudEventConnectionUpdatedObject4Authentication", - "EventStreamCloudEventConnectionUpdatedObject4ConnectedAccounts", - "EventStreamCloudEventConnectionUpdatedObject4Metadata", - "EventStreamCloudEventConnectionUpdatedObject4Options", - "EventStreamCloudEventConnectionUpdatedObject4OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionUpdatedObject4OptionsShouldTrustEmailVerifiedConnectionEnum", - "EventStreamCloudEventConnectionUpdatedObject4OptionsUpstreamParams", - "EventStreamCloudEventConnectionUpdatedObject4StrategyEnum", - "EventStreamCloudEventConnectionUpdatedObject5", - "EventStreamCloudEventConnectionUpdatedObject5Authentication", - "EventStreamCloudEventConnectionUpdatedObject5ConnectedAccounts", - "EventStreamCloudEventConnectionUpdatedObject5Metadata", - "EventStreamCloudEventConnectionUpdatedObject5Options", - "EventStreamCloudEventConnectionUpdatedObject5OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionUpdatedObject5OptionsUpstreamParams", - "EventStreamCloudEventConnectionUpdatedObject5StrategyEnum", - "EventStreamCloudEventConnectionUpdatedObject6", - "EventStreamCloudEventConnectionUpdatedObject6Authentication", - "EventStreamCloudEventConnectionUpdatedObject6ConnectedAccounts", - "EventStreamCloudEventConnectionUpdatedObject6Metadata", - "EventStreamCloudEventConnectionUpdatedObject6Options", - "EventStreamCloudEventConnectionUpdatedObject6OptionsFederatedConnectionsAccessTokens", - "EventStreamCloudEventConnectionUpdatedObject6OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionUpdatedObject6OptionsUpstreamParams", - "EventStreamCloudEventConnectionUpdatedObject6StrategyEnum", - "EventStreamCloudEventConnectionUpdatedObject7", - "EventStreamCloudEventConnectionUpdatedObject7Authentication", - "EventStreamCloudEventConnectionUpdatedObject7ConnectedAccounts", - "EventStreamCloudEventConnectionUpdatedObject7Metadata", - "EventStreamCloudEventConnectionUpdatedObject7Options", - "EventStreamCloudEventConnectionUpdatedObject7OptionsFederatedConnectionsAccessTokens", - "EventStreamCloudEventConnectionUpdatedObject7OptionsIdentityApiEnum", - "EventStreamCloudEventConnectionUpdatedObject7OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionUpdatedObject7OptionsShouldTrustEmailVerifiedConnectionEnum", - "EventStreamCloudEventConnectionUpdatedObject7OptionsTenantDomainOne", - "EventStreamCloudEventConnectionUpdatedObject7OptionsUpstreamParams", - "EventStreamCloudEventConnectionUpdatedObject7OptionsUseridAttributeEnum", - "EventStreamCloudEventConnectionUpdatedObject7OptionsWaadProtocolEnum", - "EventStreamCloudEventConnectionUpdatedObject7StrategyEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject", - "EventStreamCloudEventConnectionUpdatedPreviousObject0", - "EventStreamCloudEventConnectionUpdatedPreviousObject0Authentication", - "EventStreamCloudEventConnectionUpdatedPreviousObject0ConnectedAccounts", - "EventStreamCloudEventConnectionUpdatedPreviousObject0Metadata", - "EventStreamCloudEventConnectionUpdatedPreviousObject0Options", - "EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsAttributeMap", - "EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsAttributeMapAttributes", - "EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsAttributeMapMappingModeEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsConnectionSettings", - "EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsConnectionSettingsPkceEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsDpopSigningAlgEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsFederatedConnectionsAccessTokens", - "EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsOidcMetadata", - "EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsSchemaVersionEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTokenEndpointAuthMethodEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTokenEndpointJwtcaAudFormatEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTypeEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsUpstreamParams", - "EventStreamCloudEventConnectionUpdatedPreviousObject0StrategyEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject1", - "EventStreamCloudEventConnectionUpdatedPreviousObject1Authentication", - "EventStreamCloudEventConnectionUpdatedPreviousObject1ConnectedAccounts", - "EventStreamCloudEventConnectionUpdatedPreviousObject1Metadata", - "EventStreamCloudEventConnectionUpdatedPreviousObject1Options", - "EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsAttributeMap", - "EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsAttributeMapAttributes", - "EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsAttributeMapMappingModeEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsConnectionSettings", - "EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsConnectionSettingsPkceEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsDpopSigningAlgEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsFederatedConnectionsAccessTokens", - "EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsOidcMetadata", - "EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsSchemaVersionEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTokenEndpointAuthMethodEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTokenEndpointJwtcaAudFormatEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTypeEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsUpstreamParams", - "EventStreamCloudEventConnectionUpdatedPreviousObject1StrategyEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject2", - "EventStreamCloudEventConnectionUpdatedPreviousObject2Authentication", - "EventStreamCloudEventConnectionUpdatedPreviousObject2ConnectedAccounts", - "EventStreamCloudEventConnectionUpdatedPreviousObject2Metadata", - "EventStreamCloudEventConnectionUpdatedPreviousObject2Options", - "EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsAssertionDecryptionSettings", - "EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsDigestAlgorithmEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsFieldsMap", - "EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsIdpinitiated", - "EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsIdpinitiatedClientProtocolEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsOidcMetadata", - "EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsProtocolBindingEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsSignatureAlgorithmEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsSubject", - "EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsUpstreamParams", - "EventStreamCloudEventConnectionUpdatedPreviousObject2StrategyEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject3", - "EventStreamCloudEventConnectionUpdatedPreviousObject3Authentication", - "EventStreamCloudEventConnectionUpdatedPreviousObject3ConnectedAccounts", - "EventStreamCloudEventConnectionUpdatedPreviousObject3Metadata", - "EventStreamCloudEventConnectionUpdatedPreviousObject3Options", - "EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsAssertionDecryptionSettings", - "EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsDigestAlgorithmEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsIdpinitiated", - "EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsIdpinitiatedClientProtocolEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsProtocolBindingEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsSignatureAlgorithmEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsSubject", - "EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsUpstreamParams", - "EventStreamCloudEventConnectionUpdatedPreviousObject3StrategyEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject4", - "EventStreamCloudEventConnectionUpdatedPreviousObject4Authentication", - "EventStreamCloudEventConnectionUpdatedPreviousObject4ConnectedAccounts", - "EventStreamCloudEventConnectionUpdatedPreviousObject4Metadata", - "EventStreamCloudEventConnectionUpdatedPreviousObject4Options", - "EventStreamCloudEventConnectionUpdatedPreviousObject4OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject4OptionsShouldTrustEmailVerifiedConnectionEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject4OptionsUpstreamParams", - "EventStreamCloudEventConnectionUpdatedPreviousObject4StrategyEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject5", - "EventStreamCloudEventConnectionUpdatedPreviousObject5Authentication", - "EventStreamCloudEventConnectionUpdatedPreviousObject5ConnectedAccounts", - "EventStreamCloudEventConnectionUpdatedPreviousObject5Metadata", - "EventStreamCloudEventConnectionUpdatedPreviousObject5Options", - "EventStreamCloudEventConnectionUpdatedPreviousObject5OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject5OptionsUpstreamParams", - "EventStreamCloudEventConnectionUpdatedPreviousObject5StrategyEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject6", - "EventStreamCloudEventConnectionUpdatedPreviousObject6Authentication", - "EventStreamCloudEventConnectionUpdatedPreviousObject6ConnectedAccounts", - "EventStreamCloudEventConnectionUpdatedPreviousObject6Metadata", - "EventStreamCloudEventConnectionUpdatedPreviousObject6Options", - "EventStreamCloudEventConnectionUpdatedPreviousObject6OptionsFederatedConnectionsAccessTokens", - "EventStreamCloudEventConnectionUpdatedPreviousObject6OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject6OptionsUpstreamParams", - "EventStreamCloudEventConnectionUpdatedPreviousObject6StrategyEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject7", - "EventStreamCloudEventConnectionUpdatedPreviousObject7Authentication", - "EventStreamCloudEventConnectionUpdatedPreviousObject7ConnectedAccounts", - "EventStreamCloudEventConnectionUpdatedPreviousObject7Metadata", - "EventStreamCloudEventConnectionUpdatedPreviousObject7Options", - "EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsFederatedConnectionsAccessTokens", - "EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsIdentityApiEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsTenantDomainOne", - "EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsUpstreamParams", - "EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsUseridAttributeEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsWaadProtocolEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject7StrategyEnum", - "EventStreamCloudEventConnectionUpdatedTypeEnum", - "EventStreamCloudEventContext", - "EventStreamCloudEventContextClient", - "EventStreamCloudEventContextClientMetadata", - "EventStreamCloudEventContextConnection", - "EventStreamCloudEventContextRequest", - "EventStreamCloudEventContextRequestGeo", - "EventStreamCloudEventContextTenant", - "EventStreamCloudEventContextTransaction", - "EventStreamCloudEventContextTransactionProtocolEnum", - "EventStreamCloudEventContextTransactionResponseModeEnum", - "EventStreamCloudEventContextTransactionResponseTypeItemEnum", - "EventStreamCloudEventData", - "EventStreamCloudEventErrorCodeEnum", - "EventStreamCloudEventErrorDetail", - "EventStreamCloudEventErrorMessage", - "EventStreamCloudEventErrorMessageTypeEnum", - "EventStreamCloudEventGroupCreated", - "EventStreamCloudEventGroupCreatedCloudEvent", - "EventStreamCloudEventGroupCreatedCloudEventTypeEnum", - "EventStreamCloudEventGroupCreatedData", - "EventStreamCloudEventGroupCreatedObject", - "EventStreamCloudEventGroupCreatedObject0", - "EventStreamCloudEventGroupCreatedObject0TypeEnum", - "EventStreamCloudEventGroupCreatedObject1", - "EventStreamCloudEventGroupCreatedObject1TypeEnum", - "EventStreamCloudEventGroupCreatedObject2", - "EventStreamCloudEventGroupCreatedObject2TypeEnum", - "EventStreamCloudEventGroupCreatedPreviousObject", - "EventStreamCloudEventGroupCreatedPreviousObject0", - "EventStreamCloudEventGroupCreatedPreviousObject0TypeEnum", - "EventStreamCloudEventGroupCreatedPreviousObject1", - "EventStreamCloudEventGroupCreatedPreviousObject1TypeEnum", - "EventStreamCloudEventGroupCreatedPreviousObject2", - "EventStreamCloudEventGroupCreatedPreviousObject2TypeEnum", - "EventStreamCloudEventGroupCreatedTypeEnum", - "EventStreamCloudEventGroupDeleted", - "EventStreamCloudEventGroupDeletedCloudEvent", - "EventStreamCloudEventGroupDeletedCloudEventTypeEnum", - "EventStreamCloudEventGroupDeletedData", - "EventStreamCloudEventGroupDeletedObject", - "EventStreamCloudEventGroupDeletedObject0", - "EventStreamCloudEventGroupDeletedObject0TypeEnum", - "EventStreamCloudEventGroupDeletedObject1", - "EventStreamCloudEventGroupDeletedObject1TypeEnum", - "EventStreamCloudEventGroupDeletedObject2", - "EventStreamCloudEventGroupDeletedObject2TypeEnum", - "EventStreamCloudEventGroupDeletedPreviousObject", - "EventStreamCloudEventGroupDeletedPreviousObject0", - "EventStreamCloudEventGroupDeletedPreviousObject0TypeEnum", - "EventStreamCloudEventGroupDeletedPreviousObject1", - "EventStreamCloudEventGroupDeletedPreviousObject1TypeEnum", - "EventStreamCloudEventGroupDeletedPreviousObject2", - "EventStreamCloudEventGroupDeletedPreviousObject2TypeEnum", - "EventStreamCloudEventGroupDeletedTypeEnum", - "EventStreamCloudEventGroupMemberAdded", - "EventStreamCloudEventGroupMemberAddedCloudEvent", - "EventStreamCloudEventGroupMemberAddedCloudEventTypeEnum", - "EventStreamCloudEventGroupMemberAddedData", - "EventStreamCloudEventGroupMemberAddedObject", - "EventStreamCloudEventGroupMemberAddedObjectGroup", - "EventStreamCloudEventGroupMemberAddedObjectGroup0", - "EventStreamCloudEventGroupMemberAddedObjectGroup0TypeEnum", - "EventStreamCloudEventGroupMemberAddedObjectGroup1", - "EventStreamCloudEventGroupMemberAddedObjectGroup1TypeEnum", - "EventStreamCloudEventGroupMemberAddedObjectGroup2", - "EventStreamCloudEventGroupMemberAddedObjectGroup2TypeEnum", - "EventStreamCloudEventGroupMemberAddedObjectMember", - "EventStreamCloudEventGroupMemberAddedObjectMember0", - "EventStreamCloudEventGroupMemberAddedObjectMember0MemberTypeEnum", - "EventStreamCloudEventGroupMemberAddedObjectMember1", - "EventStreamCloudEventGroupMemberAddedObjectMember1MemberTypeEnum", - "EventStreamCloudEventGroupMemberAddedPreviousObject", - "EventStreamCloudEventGroupMemberAddedPreviousObjectGroup", - "EventStreamCloudEventGroupMemberAddedPreviousObjectGroup0", - "EventStreamCloudEventGroupMemberAddedPreviousObjectGroup0TypeEnum", - "EventStreamCloudEventGroupMemberAddedPreviousObjectGroup1", - "EventStreamCloudEventGroupMemberAddedPreviousObjectGroup1TypeEnum", - "EventStreamCloudEventGroupMemberAddedPreviousObjectGroup2", - "EventStreamCloudEventGroupMemberAddedPreviousObjectGroup2TypeEnum", - "EventStreamCloudEventGroupMemberAddedPreviousObjectMember", - "EventStreamCloudEventGroupMemberAddedPreviousObjectMember0", - "EventStreamCloudEventGroupMemberAddedPreviousObjectMember0MemberTypeEnum", - "EventStreamCloudEventGroupMemberAddedPreviousObjectMember1", - "EventStreamCloudEventGroupMemberAddedPreviousObjectMember1MemberTypeEnum", - "EventStreamCloudEventGroupMemberAddedTypeEnum", - "EventStreamCloudEventGroupMemberDeleted", - "EventStreamCloudEventGroupMemberDeletedCloudEvent", - "EventStreamCloudEventGroupMemberDeletedCloudEventTypeEnum", - "EventStreamCloudEventGroupMemberDeletedData", - "EventStreamCloudEventGroupMemberDeletedObject", - "EventStreamCloudEventGroupMemberDeletedObjectGroup", - "EventStreamCloudEventGroupMemberDeletedObjectGroup0", - "EventStreamCloudEventGroupMemberDeletedObjectGroup0TypeEnum", - "EventStreamCloudEventGroupMemberDeletedObjectGroup1", - "EventStreamCloudEventGroupMemberDeletedObjectGroup1TypeEnum", - "EventStreamCloudEventGroupMemberDeletedObjectGroup2", - "EventStreamCloudEventGroupMemberDeletedObjectGroup2TypeEnum", - "EventStreamCloudEventGroupMemberDeletedObjectMember", - "EventStreamCloudEventGroupMemberDeletedObjectMember0", - "EventStreamCloudEventGroupMemberDeletedObjectMember0MemberTypeEnum", - "EventStreamCloudEventGroupMemberDeletedObjectMember1", - "EventStreamCloudEventGroupMemberDeletedObjectMember1MemberTypeEnum", - "EventStreamCloudEventGroupMemberDeletedPreviousObject", - "EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup", - "EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup0", - "EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup0TypeEnum", - "EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup1", - "EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup1TypeEnum", - "EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup2", - "EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup2TypeEnum", - "EventStreamCloudEventGroupMemberDeletedPreviousObjectMember", - "EventStreamCloudEventGroupMemberDeletedPreviousObjectMember0", - "EventStreamCloudEventGroupMemberDeletedPreviousObjectMember0MemberTypeEnum", - "EventStreamCloudEventGroupMemberDeletedPreviousObjectMember1", - "EventStreamCloudEventGroupMemberDeletedPreviousObjectMember1MemberTypeEnum", - "EventStreamCloudEventGroupMemberDeletedTypeEnum", - "EventStreamCloudEventGroupRoleAssigned", - "EventStreamCloudEventGroupRoleAssignedCloudEvent", - "EventStreamCloudEventGroupRoleAssignedCloudEventTypeEnum", - "EventStreamCloudEventGroupRoleAssignedData", - "EventStreamCloudEventGroupRoleAssignedObject", - "EventStreamCloudEventGroupRoleAssignedObjectGroup", - "EventStreamCloudEventGroupRoleAssignedObjectGroup0", - "EventStreamCloudEventGroupRoleAssignedObjectGroup0TypeEnum", - "EventStreamCloudEventGroupRoleAssignedObjectGroup1", - "EventStreamCloudEventGroupRoleAssignedObjectGroup1TypeEnum", - "EventStreamCloudEventGroupRoleAssignedObjectGroup2", - "EventStreamCloudEventGroupRoleAssignedObjectGroup2TypeEnum", - "EventStreamCloudEventGroupRoleAssignedObjectRole", - "EventStreamCloudEventGroupRoleAssignedPreviousObject", - "EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup", - "EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup0", - "EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup0TypeEnum", - "EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup1", - "EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup1TypeEnum", - "EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup2", - "EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup2TypeEnum", - "EventStreamCloudEventGroupRoleAssignedPreviousObjectRole", - "EventStreamCloudEventGroupRoleAssignedTypeEnum", - "EventStreamCloudEventGroupRoleDeleted", - "EventStreamCloudEventGroupRoleDeletedCloudEvent", - "EventStreamCloudEventGroupRoleDeletedCloudEventTypeEnum", - "EventStreamCloudEventGroupRoleDeletedData", - "EventStreamCloudEventGroupRoleDeletedObject", - "EventStreamCloudEventGroupRoleDeletedObjectGroup", - "EventStreamCloudEventGroupRoleDeletedObjectGroup0", - "EventStreamCloudEventGroupRoleDeletedObjectGroup0TypeEnum", - "EventStreamCloudEventGroupRoleDeletedObjectGroup1", - "EventStreamCloudEventGroupRoleDeletedObjectGroup1TypeEnum", - "EventStreamCloudEventGroupRoleDeletedObjectGroup2", - "EventStreamCloudEventGroupRoleDeletedObjectGroup2TypeEnum", - "EventStreamCloudEventGroupRoleDeletedObjectRole", - "EventStreamCloudEventGroupRoleDeletedPreviousObject", - "EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup", - "EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup0", - "EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup0TypeEnum", - "EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup1", - "EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup1TypeEnum", - "EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup2", - "EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup2TypeEnum", - "EventStreamCloudEventGroupRoleDeletedPreviousObjectRole", - "EventStreamCloudEventGroupRoleDeletedTypeEnum", - "EventStreamCloudEventGroupUpdated", - "EventStreamCloudEventGroupUpdatedCloudEvent", - "EventStreamCloudEventGroupUpdatedCloudEventTypeEnum", - "EventStreamCloudEventGroupUpdatedData", - "EventStreamCloudEventGroupUpdatedObject", - "EventStreamCloudEventGroupUpdatedObject0", - "EventStreamCloudEventGroupUpdatedObject0TypeEnum", - "EventStreamCloudEventGroupUpdatedObject1", - "EventStreamCloudEventGroupUpdatedObject1TypeEnum", - "EventStreamCloudEventGroupUpdatedObject2", - "EventStreamCloudEventGroupUpdatedObject2TypeEnum", - "EventStreamCloudEventGroupUpdatedPreviousObject", - "EventStreamCloudEventGroupUpdatedPreviousObject0", - "EventStreamCloudEventGroupUpdatedPreviousObject0TypeEnum", - "EventStreamCloudEventGroupUpdatedPreviousObject1", - "EventStreamCloudEventGroupUpdatedPreviousObject1TypeEnum", - "EventStreamCloudEventGroupUpdatedPreviousObject2", - "EventStreamCloudEventGroupUpdatedPreviousObject2TypeEnum", - "EventStreamCloudEventGroupUpdatedTypeEnum", - "EventStreamCloudEventOffsetOnlyMessage", - "EventStreamCloudEventOffsetOnlyMessageTypeEnum", - "EventStreamCloudEventOrgConnectionAdded", - "EventStreamCloudEventOrgConnectionAddedCloudEvent", - "EventStreamCloudEventOrgConnectionAddedCloudEventTypeEnum", - "EventStreamCloudEventOrgConnectionAddedData", - "EventStreamCloudEventOrgConnectionAddedObject", - "EventStreamCloudEventOrgConnectionAddedObjectConnection", - "EventStreamCloudEventOrgConnectionAddedObjectOrganization", - "EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel", - "EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel0Enum", - "EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel1Enum", - "EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel2Enum", - "EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel3Enum", - "EventStreamCloudEventOrgConnectionAddedObjectOrganizationMemberAccessLevel", - "EventStreamCloudEventOrgConnectionAddedObjectOrganizationMemberAccessLevel0Enum", - "EventStreamCloudEventOrgConnectionAddedObjectOrganizationMemberAccessLevel1Enum", - "EventStreamCloudEventOrgConnectionAddedObjectOrganizationMemberAccessLevel2Enum", - "EventStreamCloudEventOrgConnectionAddedObjectOrganizationMemberAccessLevel3Enum", - "EventStreamCloudEventOrgConnectionAddedPreviousObject", - "EventStreamCloudEventOrgConnectionAddedPreviousObjectConnection", - "EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganization", - "EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel", - "EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel0Enum", - "EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel1Enum", - "EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel2Enum", - "EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel3Enum", - "EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationMemberAccessLevel", - "EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationMemberAccessLevel0Enum", - "EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationMemberAccessLevel1Enum", - "EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationMemberAccessLevel2Enum", - "EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationMemberAccessLevel3Enum", - "EventStreamCloudEventOrgConnectionAddedTypeEnum", - "EventStreamCloudEventOrgConnectionRemoved", - "EventStreamCloudEventOrgConnectionRemovedCloudEvent", - "EventStreamCloudEventOrgConnectionRemovedCloudEventTypeEnum", - "EventStreamCloudEventOrgConnectionRemovedData", - "EventStreamCloudEventOrgConnectionRemovedObject", - "EventStreamCloudEventOrgConnectionRemovedObjectConnection", - "EventStreamCloudEventOrgConnectionRemovedObjectOrganization", - "EventStreamCloudEventOrgConnectionRemovedPreviousObject", - "EventStreamCloudEventOrgConnectionRemovedPreviousObjectConnection", - "EventStreamCloudEventOrgConnectionRemovedPreviousObjectOrganization", - "EventStreamCloudEventOrgConnectionRemovedTypeEnum", - "EventStreamCloudEventOrgConnectionUpdated", - "EventStreamCloudEventOrgConnectionUpdatedCloudEvent", - "EventStreamCloudEventOrgConnectionUpdatedCloudEventTypeEnum", - "EventStreamCloudEventOrgConnectionUpdatedData", - "EventStreamCloudEventOrgConnectionUpdatedObject", - "EventStreamCloudEventOrgConnectionUpdatedObjectConnection", - "EventStreamCloudEventOrgConnectionUpdatedObjectOrganization", - "EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel", - "EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel0Enum", - "EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel1Enum", - "EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel2Enum", - "EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel3Enum", - "EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationMemberAccessLevel", - "EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationMemberAccessLevel0Enum", - "EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationMemberAccessLevel1Enum", - "EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationMemberAccessLevel2Enum", - "EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationMemberAccessLevel3Enum", - "EventStreamCloudEventOrgConnectionUpdatedPreviousObject", - "EventStreamCloudEventOrgConnectionUpdatedPreviousObjectConnection", - "EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganization", - "EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel", - "EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel0Enum", - "EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel1Enum", - "EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel2Enum", - "EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel3Enum", - "EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationMemberAccessLevel", - "EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationMemberAccessLevel0Enum", - "EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationMemberAccessLevel1Enum", - "EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationMemberAccessLevel2Enum", - "EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationMemberAccessLevel3Enum", - "EventStreamCloudEventOrgConnectionUpdatedTypeEnum", - "EventStreamCloudEventOrgCreated", - "EventStreamCloudEventOrgCreatedCloudEvent", - "EventStreamCloudEventOrgCreatedCloudEventTypeEnum", - "EventStreamCloudEventOrgCreatedData", - "EventStreamCloudEventOrgCreatedObject", - "EventStreamCloudEventOrgCreatedObjectBranding", - "EventStreamCloudEventOrgCreatedObjectBrandingColors", - "EventStreamCloudEventOrgCreatedObjectMetadata", - "EventStreamCloudEventOrgCreatedPreviousObject", - "EventStreamCloudEventOrgCreatedPreviousObjectBranding", - "EventStreamCloudEventOrgCreatedPreviousObjectBrandingColors", - "EventStreamCloudEventOrgCreatedPreviousObjectMetadata", - "EventStreamCloudEventOrgCreatedTypeEnum", - "EventStreamCloudEventOrgDeleted", - "EventStreamCloudEventOrgDeletedCloudEvent", - "EventStreamCloudEventOrgDeletedCloudEventTypeEnum", - "EventStreamCloudEventOrgDeletedData", - "EventStreamCloudEventOrgDeletedObject", - "EventStreamCloudEventOrgDeletedObjectMetadata", - "EventStreamCloudEventOrgDeletedPreviousObject", - "EventStreamCloudEventOrgDeletedPreviousObjectMetadata", - "EventStreamCloudEventOrgDeletedTypeEnum", - "EventStreamCloudEventOrgGroupRoleAssigned", - "EventStreamCloudEventOrgGroupRoleAssignedCloudEvent", - "EventStreamCloudEventOrgGroupRoleAssignedCloudEventTypeEnum", - "EventStreamCloudEventOrgGroupRoleAssignedData", - "EventStreamCloudEventOrgGroupRoleAssignedObject", - "EventStreamCloudEventOrgGroupRoleAssignedObjectGroup", - "EventStreamCloudEventOrgGroupRoleAssignedObjectGroup0", - "EventStreamCloudEventOrgGroupRoleAssignedObjectGroup0TypeEnum", - "EventStreamCloudEventOrgGroupRoleAssignedObjectGroup1", - "EventStreamCloudEventOrgGroupRoleAssignedObjectGroup1TypeEnum", - "EventStreamCloudEventOrgGroupRoleAssignedObjectGroup2", - "EventStreamCloudEventOrgGroupRoleAssignedObjectGroup2TypeEnum", - "EventStreamCloudEventOrgGroupRoleAssignedObjectOrganization", - "EventStreamCloudEventOrgGroupRoleAssignedObjectRole", - "EventStreamCloudEventOrgGroupRoleAssignedPreviousObject", - "EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup", - "EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup0", - "EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup0TypeEnum", - "EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup1", - "EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup1TypeEnum", - "EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup2", - "EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup2TypeEnum", - "EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectOrganization", - "EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectRole", - "EventStreamCloudEventOrgGroupRoleAssignedTypeEnum", - "EventStreamCloudEventOrgGroupRoleDeleted", - "EventStreamCloudEventOrgGroupRoleDeletedCloudEvent", - "EventStreamCloudEventOrgGroupRoleDeletedCloudEventTypeEnum", - "EventStreamCloudEventOrgGroupRoleDeletedData", - "EventStreamCloudEventOrgGroupRoleDeletedObject", - "EventStreamCloudEventOrgGroupRoleDeletedObjectGroup", - "EventStreamCloudEventOrgGroupRoleDeletedObjectGroup0", - "EventStreamCloudEventOrgGroupRoleDeletedObjectGroup0TypeEnum", - "EventStreamCloudEventOrgGroupRoleDeletedObjectGroup1", - "EventStreamCloudEventOrgGroupRoleDeletedObjectGroup1TypeEnum", - "EventStreamCloudEventOrgGroupRoleDeletedObjectGroup2", - "EventStreamCloudEventOrgGroupRoleDeletedObjectGroup2TypeEnum", - "EventStreamCloudEventOrgGroupRoleDeletedObjectOrganization", - "EventStreamCloudEventOrgGroupRoleDeletedObjectRole", - "EventStreamCloudEventOrgGroupRoleDeletedPreviousObject", - "EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup", - "EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup0", - "EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup0TypeEnum", - "EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup1", - "EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup1TypeEnum", - "EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup2", - "EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup2TypeEnum", - "EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectOrganization", - "EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectRole", - "EventStreamCloudEventOrgGroupRoleDeletedTypeEnum", - "EventStreamCloudEventOrgMemberAdded", - "EventStreamCloudEventOrgMemberAddedCloudEvent", - "EventStreamCloudEventOrgMemberAddedCloudEventTypeEnum", - "EventStreamCloudEventOrgMemberAddedData", - "EventStreamCloudEventOrgMemberAddedObject", - "EventStreamCloudEventOrgMemberAddedObjectOrganization", - "EventStreamCloudEventOrgMemberAddedObjectUser", - "EventStreamCloudEventOrgMemberAddedPreviousObject", - "EventStreamCloudEventOrgMemberAddedPreviousObjectOrganization", - "EventStreamCloudEventOrgMemberAddedPreviousObjectUser", - "EventStreamCloudEventOrgMemberAddedTypeEnum", - "EventStreamCloudEventOrgMemberDeleted", - "EventStreamCloudEventOrgMemberDeletedCloudEvent", - "EventStreamCloudEventOrgMemberDeletedCloudEventTypeEnum", - "EventStreamCloudEventOrgMemberDeletedData", - "EventStreamCloudEventOrgMemberDeletedObject", - "EventStreamCloudEventOrgMemberDeletedObjectOrganization", - "EventStreamCloudEventOrgMemberDeletedObjectUser", - "EventStreamCloudEventOrgMemberDeletedPreviousObject", - "EventStreamCloudEventOrgMemberDeletedPreviousObjectOrganization", - "EventStreamCloudEventOrgMemberDeletedPreviousObjectUser", - "EventStreamCloudEventOrgMemberDeletedTypeEnum", - "EventStreamCloudEventOrgMemberRoleAssigned", - "EventStreamCloudEventOrgMemberRoleAssignedCloudEvent", - "EventStreamCloudEventOrgMemberRoleAssignedCloudEventTypeEnum", - "EventStreamCloudEventOrgMemberRoleAssignedData", - "EventStreamCloudEventOrgMemberRoleAssignedObject", - "EventStreamCloudEventOrgMemberRoleAssignedObjectOrganization", - "EventStreamCloudEventOrgMemberRoleAssignedObjectRole", - "EventStreamCloudEventOrgMemberRoleAssignedObjectUser", - "EventStreamCloudEventOrgMemberRoleAssignedPreviousObject", - "EventStreamCloudEventOrgMemberRoleAssignedPreviousObjectOrganization", - "EventStreamCloudEventOrgMemberRoleAssignedPreviousObjectRole", - "EventStreamCloudEventOrgMemberRoleAssignedPreviousObjectUser", - "EventStreamCloudEventOrgMemberRoleAssignedTypeEnum", - "EventStreamCloudEventOrgMemberRoleDeleted", - "EventStreamCloudEventOrgMemberRoleDeletedCloudEvent", - "EventStreamCloudEventOrgMemberRoleDeletedCloudEventTypeEnum", - "EventStreamCloudEventOrgMemberRoleDeletedData", - "EventStreamCloudEventOrgMemberRoleDeletedObject", - "EventStreamCloudEventOrgMemberRoleDeletedObjectOrganization", - "EventStreamCloudEventOrgMemberRoleDeletedObjectRole", - "EventStreamCloudEventOrgMemberRoleDeletedObjectUser", - "EventStreamCloudEventOrgMemberRoleDeletedPreviousObject", - "EventStreamCloudEventOrgMemberRoleDeletedPreviousObjectOrganization", - "EventStreamCloudEventOrgMemberRoleDeletedPreviousObjectRole", - "EventStreamCloudEventOrgMemberRoleDeletedPreviousObjectUser", - "EventStreamCloudEventOrgMemberRoleDeletedTypeEnum", - "EventStreamCloudEventOrgUpdated", - "EventStreamCloudEventOrgUpdatedCloudEvent", - "EventStreamCloudEventOrgUpdatedCloudEventTypeEnum", - "EventStreamCloudEventOrgUpdatedData", - "EventStreamCloudEventOrgUpdatedObject", - "EventStreamCloudEventOrgUpdatedObjectBranding", - "EventStreamCloudEventOrgUpdatedObjectBrandingColors", - "EventStreamCloudEventOrgUpdatedObjectMetadata", - "EventStreamCloudEventOrgUpdatedPreviousObject", - "EventStreamCloudEventOrgUpdatedPreviousObjectBranding", - "EventStreamCloudEventOrgUpdatedPreviousObjectBrandingColors", - "EventStreamCloudEventOrgUpdatedPreviousObjectMetadata", - "EventStreamCloudEventOrgUpdatedTypeEnum", - "EventStreamCloudEventSpecVersionEnum", - "EventStreamCloudEventUserCreated", - "EventStreamCloudEventUserCreatedCloudEvent", - "EventStreamCloudEventUserCreatedCloudEventTypeEnum", - "EventStreamCloudEventUserCreatedData", - "EventStreamCloudEventUserCreatedObject", - "EventStreamCloudEventUserCreatedObjectAppMetadata", - "EventStreamCloudEventUserCreatedObjectIdentitiesItem", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemCustom", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemCustomIsSocialEnum", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemCustomProfileData", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemCustomProviderEnum", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemCustomUserId", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemDatabase", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemDatabaseIsSocialEnum", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemDatabaseProfileData", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemDatabaseProviderEnum", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemDatabaseUserId", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemEnterprise", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemEnterpriseIsSocialEnum", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemEnterpriseProfileData", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemEnterpriseProviderEnum", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemEnterpriseUserId", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemPasswordless", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemPasswordlessIsSocialEnum", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemPasswordlessProfileData", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemPasswordlessProviderEnum", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemPasswordlessUserId", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemSocial", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemSocialIsSocialEnum", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemSocialProfileData", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemSocialProviderEnum", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemSocialUserId", - "EventStreamCloudEventUserCreatedObjectUserMetadata", - "EventStreamCloudEventUserCreatedPreviousObject", - "EventStreamCloudEventUserCreatedPreviousObjectAppMetadata", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItem", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustom", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomIsSocialEnum", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomProfileData", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomProviderEnum", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomUserId", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabase", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseIsSocialEnum", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseProfileData", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseProviderEnum", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseUserId", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterprise", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseIsSocialEnum", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseProfileData", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseProviderEnum", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseUserId", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordless", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessIsSocialEnum", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessProfileData", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessProviderEnum", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessUserId", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocial", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialIsSocialEnum", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProfileData", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialUserId", - "EventStreamCloudEventUserCreatedPreviousObjectUserMetadata", - "EventStreamCloudEventUserCreatedTypeEnum", - "EventStreamCloudEventUserDeleted", - "EventStreamCloudEventUserDeletedCloudEvent", - "EventStreamCloudEventUserDeletedCloudEventTypeEnum", - "EventStreamCloudEventUserDeletedData", - "EventStreamCloudEventUserDeletedObject", - "EventStreamCloudEventUserDeletedObjectAppMetadata", - "EventStreamCloudEventUserDeletedObjectIdentitiesItem", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemCustom", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemCustomIsSocialEnum", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemCustomProfileData", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemCustomProviderEnum", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemCustomUserId", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemDatabase", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemDatabaseIsSocialEnum", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemDatabaseProfileData", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemDatabaseProviderEnum", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemDatabaseUserId", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemEnterprise", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemEnterpriseIsSocialEnum", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemEnterpriseProfileData", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemEnterpriseProviderEnum", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemEnterpriseUserId", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemPasswordless", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemPasswordlessIsSocialEnum", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemPasswordlessProfileData", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemPasswordlessProviderEnum", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemPasswordlessUserId", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemSocial", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemSocialIsSocialEnum", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemSocialProfileData", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemSocialProviderEnum", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemSocialUserId", - "EventStreamCloudEventUserDeletedObjectUserMetadata", - "EventStreamCloudEventUserDeletedPreviousObject", - "EventStreamCloudEventUserDeletedPreviousObjectAppMetadata", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItem", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustom", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomIsSocialEnum", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomProfileData", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomProviderEnum", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomUserId", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabase", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseIsSocialEnum", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseProfileData", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseProviderEnum", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseUserId", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterprise", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseIsSocialEnum", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseProfileData", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseProviderEnum", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseUserId", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordless", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessIsSocialEnum", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessProfileData", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessProviderEnum", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessUserId", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocial", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialIsSocialEnum", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProfileData", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialUserId", - "EventStreamCloudEventUserDeletedPreviousObjectUserMetadata", - "EventStreamCloudEventUserDeletedTypeEnum", - "EventStreamCloudEventUserUpdated", - "EventStreamCloudEventUserUpdatedCloudEvent", - "EventStreamCloudEventUserUpdatedCloudEventTypeEnum", - "EventStreamCloudEventUserUpdatedData", - "EventStreamCloudEventUserUpdatedObject", - "EventStreamCloudEventUserUpdatedObjectAppMetadata", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItem", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemCustom", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemCustomIsSocialEnum", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemCustomProfileData", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemCustomProviderEnum", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemCustomUserId", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemDatabase", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemDatabaseIsSocialEnum", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemDatabaseProfileData", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemDatabaseProviderEnum", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemDatabaseUserId", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemEnterprise", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemEnterpriseIsSocialEnum", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemEnterpriseProfileData", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemEnterpriseProviderEnum", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemEnterpriseUserId", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemPasswordless", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemPasswordlessIsSocialEnum", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemPasswordlessProfileData", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemPasswordlessProviderEnum", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemPasswordlessUserId", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemSocial", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemSocialIsSocialEnum", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemSocialProfileData", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemSocialProviderEnum", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemSocialUserId", - "EventStreamCloudEventUserUpdatedObjectUserMetadata", - "EventStreamCloudEventUserUpdatedPreviousObject", - "EventStreamCloudEventUserUpdatedPreviousObjectAppMetadata", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItem", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustom", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomIsSocialEnum", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomProfileData", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomProviderEnum", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomUserId", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabase", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseIsSocialEnum", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseProfileData", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseProviderEnum", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseUserId", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterprise", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseIsSocialEnum", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseProfileData", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseProviderEnum", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseUserId", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordless", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessIsSocialEnum", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessProfileData", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessProviderEnum", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessUserId", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocial", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialIsSocialEnum", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProfileData", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialUserId", - "EventStreamCloudEventUserUpdatedPreviousObjectUserMetadata", - "EventStreamCloudEventUserUpdatedTypeEnum", - "EventStreamDelivery", - "EventStreamDeliveryAttempt", - "EventStreamDeliveryEventTypeEnum", - "EventStreamDeliveryStatusEnum", - "EventStreamDestinationPatch", - "EventStreamEventBridgeAwsRegionEnum", - "EventStreamEventBridgeConfiguration", - "EventStreamEventBridgeDestination", - "EventStreamEventBridgeDestinationTypeEnum", - "EventStreamEventBridgeResponseContent", - "EventStreamEventTypeEnum", - "EventStreamResponseContent", - "EventStreamStatusEnum", - "EventStreamSubscribeEventsEventTypeEnum", - "EventStreamSubscribeEventsEventTypeParam", - "EventStreamSubscribeEventsResponseContent", - "EventStreamSubscribeEventsResponseContent_ConnectionCreated", - "EventStreamSubscribeEventsResponseContent_ConnectionDeleted", - "EventStreamSubscribeEventsResponseContent_ConnectionUpdated", - "EventStreamSubscribeEventsResponseContent_Error", - "EventStreamSubscribeEventsResponseContent_GroupCreated", - "EventStreamSubscribeEventsResponseContent_GroupDeleted", - "EventStreamSubscribeEventsResponseContent_GroupMemberAdded", - "EventStreamSubscribeEventsResponseContent_GroupMemberDeleted", - "EventStreamSubscribeEventsResponseContent_GroupRoleAssigned", - "EventStreamSubscribeEventsResponseContent_GroupRoleDeleted", - "EventStreamSubscribeEventsResponseContent_GroupUpdated", - "EventStreamSubscribeEventsResponseContent_OffsetOnly", - "EventStreamSubscribeEventsResponseContent_OrganizationConnectionAdded", - "EventStreamSubscribeEventsResponseContent_OrganizationConnectionRemoved", - "EventStreamSubscribeEventsResponseContent_OrganizationConnectionUpdated", - "EventStreamSubscribeEventsResponseContent_OrganizationCreated", - "EventStreamSubscribeEventsResponseContent_OrganizationDeleted", - "EventStreamSubscribeEventsResponseContent_OrganizationGroupRoleAssigned", - "EventStreamSubscribeEventsResponseContent_OrganizationGroupRoleDeleted", - "EventStreamSubscribeEventsResponseContent_OrganizationMemberAdded", - "EventStreamSubscribeEventsResponseContent_OrganizationMemberDeleted", - "EventStreamSubscribeEventsResponseContent_OrganizationMemberRoleAssigned", - "EventStreamSubscribeEventsResponseContent_OrganizationMemberRoleDeleted", - "EventStreamSubscribeEventsResponseContent_OrganizationUpdated", - "EventStreamSubscribeEventsResponseContent_UserCreated", - "EventStreamSubscribeEventsResponseContent_UserDeleted", - "EventStreamSubscribeEventsResponseContent_UserUpdated", - "EventStreamSubscription", - "EventStreamTestEventTypeEnum", - "EventStreamWebhookAuthorizationResponse", - "EventStreamWebhookBasicAuth", - "EventStreamWebhookBasicAuthMethodEnum", - "EventStreamWebhookBearerAuth", - "EventStreamWebhookBearerAuthMethodEnum", - "EventStreamWebhookConfiguration", - "EventStreamWebhookCustomHeaderAuth", - "EventStreamWebhookCustomHeaderAuthMethodEnum", - "EventStreamWebhookDestination", - "EventStreamWebhookDestinationTypeEnum", - "EventStreamWebhookResponseContent", - "EventStreamsCreateRequest", - "ExperimentListItem", - "ExperimentStatusEnum", - "ExperimentTransitionStatusEnum", - "ExperimentValidationError", - "ExpressConfiguration", - "ExpressConfigurationOrNull", - "ExtensibilityEmailProviderCredentials", - "FeatureFlag", - "FeatureFlagConfigParam", - "FeatureFlagConfigParamTypeEnum", - "FeatureFlagConfigParams", - "FeatureFlagStatusEnum", - "FeatureFlagTypeEnum", - "FedCmLogin", - "FedCmLoginGoogle", - "FedCmLoginGooglePatch", - "FedCmLoginPatch", - "FlowAction", - "FlowActionActivecampaign", - "FlowActionActivecampaignListContacts", - "FlowActionActivecampaignListContactsAction", - "FlowActionActivecampaignListContactsParams", - "FlowActionActivecampaignListContactsType", - "FlowActionActivecampaignUpsertContact", - "FlowActionActivecampaignUpsertContactAction", - "FlowActionActivecampaignUpsertContactParams", - "FlowActionActivecampaignUpsertContactParamsCustomFields", - "FlowActionActivecampaignUpsertContactType", - "FlowActionAirtable", - "FlowActionAirtableCreateRecord", - "FlowActionAirtableCreateRecordAction", - "FlowActionAirtableCreateRecordParams", - "FlowActionAirtableCreateRecordParamsFields", - "FlowActionAirtableCreateRecordType", - "FlowActionAirtableListRecords", - "FlowActionAirtableListRecordsAction", - "FlowActionAirtableListRecordsParams", - "FlowActionAirtableListRecordsType", - "FlowActionAirtableUpdateRecord", - "FlowActionAirtableUpdateRecordAction", - "FlowActionAirtableUpdateRecordParams", - "FlowActionAirtableUpdateRecordParamsFields", - "FlowActionAirtableUpdateRecordType", - "FlowActionAuth0", - "FlowActionAuth0CreateUser", - "FlowActionAuth0CreateUserAction", - "FlowActionAuth0CreateUserParams", - "FlowActionAuth0CreateUserParamsPayload", - "FlowActionAuth0CreateUserType", - "FlowActionAuth0GetUser", - "FlowActionAuth0GetUserAction", - "FlowActionAuth0GetUserParams", - "FlowActionAuth0GetUserType", - "FlowActionAuth0MakeCall", - "FlowActionAuth0MakeCallAction", - "FlowActionAuth0MakeCallParams", - "FlowActionAuth0MakeCallParamsCustomVars", - "FlowActionAuth0MakeCallType", - "FlowActionAuth0SendEmail", - "FlowActionAuth0SendEmailAction", - "FlowActionAuth0SendEmailParams", - "FlowActionAuth0SendEmailParamsFrom", - "FlowActionAuth0SendEmailParamsFromEmail", - "FlowActionAuth0SendEmailParamsTo", - "FlowActionAuth0SendEmailType", - "FlowActionAuth0SendRequest", - "FlowActionAuth0SendRequestAction", - "FlowActionAuth0SendRequestParams", - "FlowActionAuth0SendRequestParamsCustomVars", - "FlowActionAuth0SendRequestParamsHeaders", - "FlowActionAuth0SendRequestParamsMethod", - "FlowActionAuth0SendRequestParamsPayload", - "FlowActionAuth0SendRequestParamsPayloadObject", - "FlowActionAuth0SendRequestParamsQueryParams", - "FlowActionAuth0SendRequestParamsQueryParamsValue", - "FlowActionAuth0SendRequestType", - "FlowActionAuth0SendSms", - "FlowActionAuth0SendSmsAction", - "FlowActionAuth0SendSmsParams", - "FlowActionAuth0SendSmsParamsCustomVars", - "FlowActionAuth0SendSmsType", - "FlowActionAuth0UpdateUser", - "FlowActionAuth0UpdateUserAction", - "FlowActionAuth0UpdateUserParams", - "FlowActionAuth0UpdateUserParamsChanges", - "FlowActionAuth0UpdateUserType", - "FlowActionBigquery", - "FlowActionBigqueryInsertRows", - "FlowActionBigqueryInsertRowsAction", - "FlowActionBigqueryInsertRowsParams", - "FlowActionBigqueryInsertRowsParamsData", - "FlowActionBigqueryInsertRowsType", - "FlowActionClearbit", - "FlowActionClearbitFindCompany", - "FlowActionClearbitFindCompanyAction", - "FlowActionClearbitFindCompanyParams", - "FlowActionClearbitFindCompanyType", - "FlowActionClearbitFindPerson", - "FlowActionClearbitFindPersonAction", - "FlowActionClearbitFindPersonParams", - "FlowActionClearbitFindPersonType", - "FlowActionEmail", - "FlowActionEmailVerifyEmail", - "FlowActionEmailVerifyEmailAction", - "FlowActionEmailVerifyEmailParams", - "FlowActionEmailVerifyEmailParamsRules", - "FlowActionEmailVerifyEmailType", - "FlowActionFlow", - "FlowActionFlowBooleanCondition", - "FlowActionFlowBooleanConditionAction", - "FlowActionFlowBooleanConditionParams", - "FlowActionFlowBooleanConditionType", - "FlowActionFlowDelayFlow", - "FlowActionFlowDelayFlowAction", - "FlowActionFlowDelayFlowParams", - "FlowActionFlowDelayFlowParamsNumber", - "FlowActionFlowDelayFlowParamsUnits", - "FlowActionFlowDelayFlowType", - "FlowActionFlowDoNothing", - "FlowActionFlowDoNothingAction", - "FlowActionFlowDoNothingParams", - "FlowActionFlowDoNothingType", - "FlowActionFlowErrorMessage", - "FlowActionFlowErrorMessageAction", - "FlowActionFlowErrorMessageParams", - "FlowActionFlowErrorMessageType", - "FlowActionFlowMapValue", - "FlowActionFlowMapValueAction", - "FlowActionFlowMapValueParams", - "FlowActionFlowMapValueParamsCases", - "FlowActionFlowMapValueParamsFallback", - "FlowActionFlowMapValueParamsFallbackObject", - "FlowActionFlowMapValueParamsInput", - "FlowActionFlowMapValueType", - "FlowActionFlowReturnJson", - "FlowActionFlowReturnJsonAction", - "FlowActionFlowReturnJsonParams", - "FlowActionFlowReturnJsonParamsPayload", - "FlowActionFlowReturnJsonParamsPayloadObject", - "FlowActionFlowReturnJsonType", - "FlowActionFlowStoreVars", - "FlowActionFlowStoreVarsAction", - "FlowActionFlowStoreVarsParams", - "FlowActionFlowStoreVarsParamsVars", - "FlowActionFlowStoreVarsType", - "FlowActionGoogleSheets", - "FlowActionGoogleSheetsAddRow", - "FlowActionGoogleSheetsAddRowAction", - "FlowActionGoogleSheetsAddRowParams", - "FlowActionGoogleSheetsAddRowParamsSheetId", - "FlowActionGoogleSheetsAddRowParamsValues", - "FlowActionGoogleSheetsAddRowType", - "FlowActionHttp", - "FlowActionHttpSendRequest", - "FlowActionHttpSendRequestAction", - "FlowActionHttpSendRequestParams", - "FlowActionHttpSendRequestParamsBasicAuth", - "FlowActionHttpSendRequestParamsContentType", - "FlowActionHttpSendRequestParamsHeaders", - "FlowActionHttpSendRequestParamsMethod", - "FlowActionHttpSendRequestParamsPayload", - "FlowActionHttpSendRequestParamsPayloadObject", - "FlowActionHttpSendRequestParamsQueryParams", - "FlowActionHttpSendRequestParamsQueryParamsValue", - "FlowActionHttpSendRequestType", - "FlowActionHubspot", - "FlowActionHubspotEnrollContact", - "FlowActionHubspotEnrollContactAction", - "FlowActionHubspotEnrollContactParams", - "FlowActionHubspotEnrollContactParamsWorkflowId", - "FlowActionHubspotEnrollContactType", - "FlowActionHubspotGetContact", - "FlowActionHubspotGetContactAction", - "FlowActionHubspotGetContactParams", - "FlowActionHubspotGetContactType", - "FlowActionHubspotUpsertContact", - "FlowActionHubspotUpsertContactAction", - "FlowActionHubspotUpsertContactParams", - "FlowActionHubspotUpsertContactParamsProperty", - "FlowActionHubspotUpsertContactType", - "FlowActionJson", - "FlowActionJsonCreateJson", - "FlowActionJsonCreateJsonAction", - "FlowActionJsonCreateJsonParams", - "FlowActionJsonCreateJsonParamsObject", - "FlowActionJsonCreateJsonType", - "FlowActionJsonParseJson", - "FlowActionJsonParseJsonAction", - "FlowActionJsonParseJsonParams", - "FlowActionJsonParseJsonType", - "FlowActionJsonSerializeJson", - "FlowActionJsonSerializeJsonAction", - "FlowActionJsonSerializeJsonParams", - "FlowActionJsonSerializeJsonParamsObject", - "FlowActionJsonSerializeJsonParamsObjectObject", - "FlowActionJsonSerializeJsonType", - "FlowActionJwt", - "FlowActionJwtDecodeJwt", - "FlowActionJwtDecodeJwtAction", - "FlowActionJwtDecodeJwtParams", - "FlowActionJwtDecodeJwtType", - "FlowActionJwtSignJwt", - "FlowActionJwtSignJwtAction", - "FlowActionJwtSignJwtParams", - "FlowActionJwtSignJwtParamsPayload", - "FlowActionJwtSignJwtType", - "FlowActionJwtVerifyJwt", - "FlowActionJwtVerifyJwtAction", - "FlowActionJwtVerifyJwtParams", - "FlowActionJwtVerifyJwtType", - "FlowActionMailchimp", - "FlowActionMailchimpUpsertMember", - "FlowActionMailchimpUpsertMemberAction", - "FlowActionMailchimpUpsertMemberParams", - "FlowActionMailchimpUpsertMemberParamsMember", - "FlowActionMailchimpUpsertMemberParamsMemberMergeFields", - "FlowActionMailchimpUpsertMemberType", - "FlowActionMailjet", - "FlowActionMailjetSendEmail", - "FlowActionMailjetSendEmailAction", - "FlowActionMailjetSendEmailParams", - "FlowActionMailjetSendEmailParamsContent", - "FlowActionMailjetSendEmailParamsTemplateId", - "FlowActionMailjetSendEmailType", - "FlowActionOtp", - "FlowActionOtpGenerateCode", - "FlowActionOtpGenerateCodeAction", - "FlowActionOtpGenerateCodeParams", - "FlowActionOtpGenerateCodeType", - "FlowActionOtpVerifyCode", - "FlowActionOtpVerifyCodeAction", - "FlowActionOtpVerifyCodeParams", - "FlowActionOtpVerifyCodeParamsCode", - "FlowActionOtpVerifyCodeType", - "FlowActionPipedrive", - "FlowActionPipedriveAddDeal", - "FlowActionPipedriveAddDealAction", - "FlowActionPipedriveAddDealParams", - "FlowActionPipedriveAddDealParamsFields", - "FlowActionPipedriveAddDealParamsOrganizationId", - "FlowActionPipedriveAddDealParamsPersonId", - "FlowActionPipedriveAddDealParamsStageId", - "FlowActionPipedriveAddDealParamsUserId", - "FlowActionPipedriveAddDealType", - "FlowActionPipedriveAddOrganization", - "FlowActionPipedriveAddOrganizationAction", - "FlowActionPipedriveAddOrganizationParams", - "FlowActionPipedriveAddOrganizationParamsFields", - "FlowActionPipedriveAddOrganizationParamsOwnerId", - "FlowActionPipedriveAddOrganizationType", - "FlowActionPipedriveAddPerson", - "FlowActionPipedriveAddPersonAction", - "FlowActionPipedriveAddPersonParams", - "FlowActionPipedriveAddPersonParamsFields", - "FlowActionPipedriveAddPersonParamsOrganizationId", - "FlowActionPipedriveAddPersonParamsOwnerId", - "FlowActionPipedriveAddPersonType", - "FlowActionSalesforce", - "FlowActionSalesforceCreateLead", - "FlowActionSalesforceCreateLeadAction", - "FlowActionSalesforceCreateLeadParams", - "FlowActionSalesforceCreateLeadParamsPayload", - "FlowActionSalesforceCreateLeadType", - "FlowActionSalesforceGetLead", - "FlowActionSalesforceGetLeadAction", - "FlowActionSalesforceGetLeadParams", - "FlowActionSalesforceGetLeadType", - "FlowActionSalesforceSearchLeads", - "FlowActionSalesforceSearchLeadsAction", - "FlowActionSalesforceSearchLeadsParams", - "FlowActionSalesforceSearchLeadsParamsSearchField", - "FlowActionSalesforceSearchLeadsType", - "FlowActionSalesforceUpdateLead", - "FlowActionSalesforceUpdateLeadAction", - "FlowActionSalesforceUpdateLeadParams", - "FlowActionSalesforceUpdateLeadParamsPayload", - "FlowActionSalesforceUpdateLeadType", - "FlowActionSendgrid", - "FlowActionSendgridSendEmail", - "FlowActionSendgridSendEmailAction", - "FlowActionSendgridSendEmailParams", - "FlowActionSendgridSendEmailParamsPerson", - "FlowActionSendgridSendEmailType", - "FlowActionSlack", - "FlowActionSlackPostMessage", - "FlowActionSlackPostMessageAction", - "FlowActionSlackPostMessageParams", - "FlowActionSlackPostMessageParamsAttachment", - "FlowActionSlackPostMessageParamsAttachmentColor", - "FlowActionSlackPostMessageParamsAttachmentField", - "FlowActionSlackPostMessageType", - "FlowActionStripe", - "FlowActionStripeAddTaxId", - "FlowActionStripeAddTaxIdAction", - "FlowActionStripeAddTaxIdParams", - "FlowActionStripeAddTaxIdType", - "FlowActionStripeAddress", - "FlowActionStripeCreateCustomer", - "FlowActionStripeCreateCustomerAction", - "FlowActionStripeCreateCustomerParams", - "FlowActionStripeCreateCustomerType", - "FlowActionStripeCreatePortalSession", - "FlowActionStripeCreatePortalSessionAction", - "FlowActionStripeCreatePortalSessionParams", - "FlowActionStripeCreatePortalSessionType", - "FlowActionStripeDeleteTaxId", - "FlowActionStripeDeleteTaxIdAction", - "FlowActionStripeDeleteTaxIdParams", - "FlowActionStripeDeleteTaxIdType", - "FlowActionStripeFindCustomers", - "FlowActionStripeFindCustomersAction", - "FlowActionStripeFindCustomersParams", - "FlowActionStripeFindCustomersType", - "FlowActionStripeGetCustomer", - "FlowActionStripeGetCustomerAction", - "FlowActionStripeGetCustomerParams", - "FlowActionStripeGetCustomerType", - "FlowActionStripeMetadata", - "FlowActionStripeTaxId", - "FlowActionStripeUpdateCustomer", - "FlowActionStripeUpdateCustomerAction", - "FlowActionStripeUpdateCustomerParams", - "FlowActionStripeUpdateCustomerType", - "FlowActionTelegram", - "FlowActionTelegramSendMessage", - "FlowActionTelegramSendMessageAction", - "FlowActionTelegramSendMessageParams", - "FlowActionTelegramSendMessageType", - "FlowActionTwilio", - "FlowActionTwilioMakeCall", - "FlowActionTwilioMakeCallAction", - "FlowActionTwilioMakeCallParams", - "FlowActionTwilioMakeCallType", - "FlowActionTwilioSendSms", - "FlowActionTwilioSendSmsAction", - "FlowActionTwilioSendSmsParams", - "FlowActionTwilioSendSmsType", - "FlowActionWhatsapp", - "FlowActionWhatsappSendMessage", - "FlowActionWhatsappSendMessageAction", - "FlowActionWhatsappSendMessageParams", - "FlowActionWhatsappSendMessageParamsPayload", - "FlowActionWhatsappSendMessageParamsPayloadObject", - "FlowActionWhatsappSendMessageParamsType", - "FlowActionWhatsappSendMessageType", - "FlowActionXml", - "FlowActionXmlParseXml", - "FlowActionXmlParseXmlAction", - "FlowActionXmlParseXmlParams", - "FlowActionXmlParseXmlType", - "FlowActionXmlSerializeXml", - "FlowActionXmlSerializeXmlAction", - "FlowActionXmlSerializeXmlParams", - "FlowActionXmlSerializeXmlParamsObject", - "FlowActionXmlSerializeXmlParamsObjectObject", - "FlowActionXmlSerializeXmlType", - "FlowActionZapier", - "FlowActionZapierTriggerWebhook", - "FlowActionZapierTriggerWebhookAction", - "FlowActionZapierTriggerWebhookParams", - "FlowActionZapierTriggerWebhookParamsMethod", - "FlowActionZapierTriggerWebhookType", - "FlowExecutionDebug", - "FlowExecutionSummary", - "FlowSummary", - "FlowsVaultConnectioSetupApiKey", - "FlowsVaultConnectioSetupApiKeyWithBaseUrl", - "FlowsVaultConnectioSetupBigqueryOauthJwt", - "FlowsVaultConnectioSetupHttpBearer", - "FlowsVaultConnectioSetupJwt", - "FlowsVaultConnectioSetupJwtAlgorithmEnum", - "FlowsVaultConnectioSetupMailjetApiKey", - "FlowsVaultConnectioSetupOauthApp", - "FlowsVaultConnectioSetupOauthCode", - "FlowsVaultConnectioSetupSecretApiKey", - "FlowsVaultConnectioSetupStripeKeyPair", - "FlowsVaultConnectioSetupToken", - "FlowsVaultConnectioSetupTwilioApiKey", - "FlowsVaultConnectioSetupTypeApiKeyEnum", - "FlowsVaultConnectioSetupTypeBearerEnum", - "FlowsVaultConnectioSetupTypeJwtEnum", - "FlowsVaultConnectioSetupTypeKeyPairEnum", - "FlowsVaultConnectioSetupTypeOauthAppEnum", - "FlowsVaultConnectioSetupTypeOauthCodeEnum", - "FlowsVaultConnectioSetupTypeOauthJwtEnum", - "FlowsVaultConnectioSetupTypeTokenEnum", - "FlowsVaultConnectioSetupTypeWebhookEnum", - "FlowsVaultConnectioSetupWebhook", - "FlowsVaultConnectionAppIdActivecampaignEnum", - "FlowsVaultConnectionAppIdAirtableEnum", - "FlowsVaultConnectionAppIdAuth0Enum", - "FlowsVaultConnectionAppIdBigqueryEnum", - "FlowsVaultConnectionAppIdClearbitEnum", - "FlowsVaultConnectionAppIdDocusignEnum", - "FlowsVaultConnectionAppIdGoogleSheetsEnum", - "FlowsVaultConnectionAppIdHttpEnum", - "FlowsVaultConnectionAppIdHubspotEnum", - "FlowsVaultConnectionAppIdJwtEnum", - "FlowsVaultConnectionAppIdMailchimpEnum", - "FlowsVaultConnectionAppIdMailjetEnum", - "FlowsVaultConnectionAppIdPipedriveEnum", - "FlowsVaultConnectionAppIdSalesforceEnum", - "FlowsVaultConnectionAppIdSendgridEnum", - "FlowsVaultConnectionAppIdSlackEnum", - "FlowsVaultConnectionAppIdStripeEnum", - "FlowsVaultConnectionAppIdTelegramEnum", - "FlowsVaultConnectionAppIdTwilioEnum", - "FlowsVaultConnectionAppIdWhatsappEnum", - "FlowsVaultConnectionAppIdZapierEnum", - "FlowsVaultConnectionHttpApiKeySetup", - "FlowsVaultConnectionHttpApiKeySetupInEnum", - "FlowsVaultConnectionHttpBasicAuthSetup", - "FlowsVaultConnectionHttpOauthClientCredentialsSetup", - "FlowsVaultConnectionSetupTypeApiKeyEnum", - "FlowsVaultConnectionSetupTypeBasicAuthEnum", - "FlowsVaultConnectionSetupTypeOauthClientCredentialsEnum", - "FlowsVaultConnectionSummary", - "ForbiddenError", - "ForbiddenSchema", - "ForbiddenSchemaError", - "FormBlock", - "FormBlockDivider", - "FormBlockDividerConfig", - "FormBlockHtml", - "FormBlockHtmlConfig", - "FormBlockImage", - "FormBlockImageConfig", - "FormBlockImageConfigPositionEnum", - "FormBlockJumpButton", - "FormBlockJumpButtonConfig", - "FormBlockJumpButtonConfigStyle", - "FormBlockNextButton", - "FormBlockNextButtonConfig", - "FormBlockPreviousButton", - "FormBlockPreviousButtonConfig", - "FormBlockResendButton", - "FormBlockResendButtonConfig", - "FormBlockResendButtonConfigTextAlignmentEnum", - "FormBlockRichText", - "FormBlockRichTextConfig", - "FormBlockTypeDividerConst", - "FormBlockTypeHtmlConst", - "FormBlockTypeImageConst", - "FormBlockTypeJumpButtonConst", - "FormBlockTypeNextButtonConst", - "FormBlockTypePreviousButtonConst", - "FormBlockTypeResendButtonConst", - "FormBlockTypeRichTextConst", - "FormComponent", - "FormComponentCategoryBlockConst", - "FormComponentCategoryFieldConst", - "FormComponentCategoryWidgetConst", - "FormEndingNode", - "FormEndingNodeAfterSubmit", - "FormEndingNodeId", - "FormEndingNodeNullable", - "FormEndingNodeRedirection", - "FormEndingNodeResumeFlowTrueConst", - "FormField", - "FormFieldBoolean", - "FormFieldBooleanConfig", - "FormFieldBooleanConfigOptions", - "FormFieldCards", - "FormFieldCardsConfig", - "FormFieldCardsConfigOption", - "FormFieldChoice", - "FormFieldChoiceConfig", - "FormFieldChoiceConfigAllowOther", - "FormFieldChoiceConfigAllowOtherEnabledTrueEnum", - "FormFieldChoiceConfigOption", - "FormFieldCustom", - "FormFieldCustomConfig", - "FormFieldCustomConfigParams", - "FormFieldCustomConfigSchema", - "FormFieldDate", - "FormFieldDateConfig", - "FormFieldDateConfigFormatEnum", - "FormFieldDropdown", - "FormFieldDropdownConfig", - "FormFieldDropdownConfigOption", - "FormFieldEmail", - "FormFieldEmailConfig", - "FormFieldFile", - "FormFieldFileConfig", - "FormFieldFileConfigCategoryEnum", - "FormFieldFileConfigStorage", - "FormFieldFileConfigStorageTypeEnum", - "FormFieldLegal", - "FormFieldLegalConfig", - "FormFieldNumber", - "FormFieldNumberConfig", - "FormFieldPassword", - "FormFieldPasswordConfig", - "FormFieldPasswordConfigHashEnum", - "FormFieldPayment", - "FormFieldPaymentConfig", - "FormFieldPaymentConfigCharge", - "FormFieldPaymentConfigChargeOneOff", - "FormFieldPaymentConfigChargeOneOffCurrencyEnum", - "FormFieldPaymentConfigChargeOneOffOneOff", - "FormFieldPaymentConfigChargeOneOffOneOffAmount", - "FormFieldPaymentConfigChargeSubscription", - "FormFieldPaymentConfigChargeTypeOneOffConst", - "FormFieldPaymentConfigChargeTypeSubscriptionConst", - "FormFieldPaymentConfigCredentials", - "FormFieldPaymentConfigCustomer", - "FormFieldPaymentConfigFieldProperties", - "FormFieldPaymentConfigFields", - "FormFieldPaymentConfigProviderEnum", - "FormFieldPaymentConfigSubscription", - "FormFieldSocial", - "FormFieldSocialConfig", - "FormFieldTel", - "FormFieldTelConfig", - "FormFieldTelConfigStrings", - "FormFieldText", - "FormFieldTextConfig", - "FormFieldTypeBooleanConst", - "FormFieldTypeCardsConst", - "FormFieldTypeChoiceConst", - "FormFieldTypeCustomConst", - "FormFieldTypeDateConst", - "FormFieldTypeDropdownConst", - "FormFieldTypeEmailConst", - "FormFieldTypeFileConst", - "FormFieldTypeLegalConst", - "FormFieldTypeNumberConst", - "FormFieldTypePasswordConst", - "FormFieldTypePaymentConst", - "FormFieldTypeSocialConst", - "FormFieldTypeTelConst", - "FormFieldTypeTextConst", - "FormFieldTypeUrlConst", - "FormFieldUrl", - "FormFieldUrlConfig", - "FormFlow", - "FormFlowConfig", - "FormHiddenField", - "FormLanguages", - "FormLanguagesNullable", - "FormMessages", - "FormMessagesCustom", - "FormMessagesError", - "FormMessagesNullable", - "FormNode", - "FormNodeCoordinates", - "FormNodeList", - "FormNodeListNullable", - "FormNodePointer", - "FormNodeTypeFlowConst", - "FormNodeTypeRouterConst", - "FormNodeTypeStepConst", - "FormRouter", - "FormRouterConfig", - "FormRouterRule", - "FormStartNode", - "FormStartNodeNullable", - "FormStep", - "FormStepComponentList", - "FormStepConfig", - "FormStyle", - "FormStyleNullable", - "FormSummary", - "FormTranslations", - "FormTranslationsNullable", - "FormWidget", - "FormWidgetAuth0VerifiableCredentials", - "FormWidgetAuth0VerifiableCredentialsConfig", - "FormWidgetGMapsAddress", - "FormWidgetGMapsAddressConfig", - "FormWidgetRecaptcha", - "FormWidgetRecaptchaConfig", - "FormWidgetTypeAuth0VerifiableCredentialsConst", - "FormWidgetTypeGMapsAddressConst", - "FormWidgetTypeRecaptchaConst", - "FormsRequestParametersHydrateEnum", - "GatewayTimeoutError", - "GetActionExecutionResponseContent", - "GetActionModuleActionsResponseContent", - "GetActionModuleResponseContent", - "GetActionModuleVersionResponseContent", - "GetActionModuleVersionsResponseContent", - "GetActionModulesResponseContent", - "GetActionResponseContent", - "GetActionVersionResponseContent", - "GetActiveUsersCountStatsResponseContent", - "GetAculResponseContent", - "GetAllKeysNetworkAclsResponseContent", - "GetAttackProtectionCaptchaResponseContent", - "GetBotDetectionSettingsResponseContent", - "GetBrandingDefaultThemeResponseContent", - "GetBrandingPhoneProviderResponseContent", - "GetBrandingResponseContent", - "GetBrandingThemeResponseContent", - "GetBreachedPasswordDetectionSettingsResponseContent", - "GetBruteForceSettingsResponseContent", - "GetClientCredentialResponseContent", - "GetClientGrantResponseContent", - "GetClientResponseContent", - "GetConnectionEnabledClientsResponseContent", - "GetConnectionProfileResponseContent", - "GetConnectionProfileTemplateResponseContent", - "GetConnectionResponseContent", - "GetCustomDomainResponseContent", - "GetCustomSigningKeysResponseContent", - "GetCustomTextsByLanguageResponseContent", - "GetDefaultCanonicalDomainResponseContent", - "GetDefaultCustomDomainResponseContent", - "GetDefaultDomainResponseContent", - "GetDirectoryProvisioningDefaultMappingResponseContent", - "GetDirectoryProvisioningResponseContent", - "GetEmailFactorSettingsResponseContent", - "GetEmailProviderResponseContent", - "GetEmailTemplateResponseContent", - "GetEncryptionKeyResponseContent", - "GetEventStreamDeliveryHistoryResponseContent", - "GetEventStreamResponseContent", - "GetExperimentResponseContent", - "GetFeatureFlagResponseContent", - "GetFlowExecutionRequestParametersHydrateEnum", - "GetFlowExecutionResponseContent", - "GetFlowRequestParametersHydrateEnum", - "GetFlowResponseContent", - "GetFlowsVaultConnectionResponseContent", - "GetFormResponseContent", - "GetGroupMembersResponseContent", - "GetGroupResponseContent", - "GetGuardianEnrollmentResponseContent", - "GetGuardianFactorDuoSettingsResponseContent", - "GetGuardianFactorPhoneMessageTypesResponseContent", - "GetGuardianFactorPhoneTemplatesResponseContent", - "GetGuardianFactorSmsTemplatesResponseContent", - "GetGuardianFactorsProviderApnsResponseContent", - "GetGuardianFactorsProviderPhoneResponseContent", - "GetGuardianFactorsProviderPhoneTwilioResponseContent", - "GetGuardianFactorsProviderPushNotificationResponseContent", - "GetGuardianFactorsProviderSmsResponseContent", - "GetGuardianFactorsProviderSmsTwilioResponseContent", - "GetGuardianFactorsProviderSnsResponseContent", - "GetGuardianSettingsResponseContent", - "GetHookResponseContent", - "GetHookSecretResponseContent", - "GetJobErrorResponseContent", - "GetJobGenericErrorResponseContent", - "GetJobImportUserError", - "GetJobResponseContent", - "GetJobSummary", - "GetJobUserError", - "GetLogResponseContent", - "GetLogStreamResponseContent", - "GetNetworkAclsResponseContent", - "GetOrganizationAllConnectionResponseContent", - "GetOrganizationByNameResponseContent", - "GetOrganizationClientResponseContent", - "GetOrganizationConnectionResponseContent", - "GetOrganizationDiscoveryDomainByNameResponseContent", - "GetOrganizationDiscoveryDomainResponseContent", - "GetOrganizationInvitationResponseContent", - "GetOrganizationResponseContent", - "GetPartialsResponseContent", - "GetPhoneFactorSettingsResponseContent", - "GetPhoneProviderProtectionResponseContent", - "GetPhoneTemplateResponseContent", - "GetRateLimitPolicyResponseContent", - "GetRefreshTokenResponseContent", - "GetRefreshTokensPaginatedResponseContent", - "GetResourceServerResponseContent", - "GetRiskAssessmentsSettingsNewDeviceResponseContent", - "GetRiskAssessmentsSettingsResponseContent", - "GetRoleResponseContent", - "GetRuleResponseContent", - "GetScimConfigurationDefaultMappingResponseContent", - "GetScimConfigurationResponseContent", - "GetScimTokensResponseContent", - "GetSegmentResponseContent", - "GetSelfServiceProfileResponseContent", - "GetSessionResponseContent", - "GetSettingsResponseContent", - "GetSigningKeysResponseContent", - "GetSupplementalSignalsResponseContent", - "GetSuspiciousIpThrottlingSettingsResponseContent", - "GetTenantSettingsResponseContent", - "GetTokenExchangeProfileResponseContent", - "GetUniversalLoginTemplate", - "GetUniversalLoginTemplateResponseContent", - "GetUserAttributeProfileResponseContent", - "GetUserAttributeProfileTemplateResponseContent", - "GetUserAuthenticationMethodResponseContent", - "GetUserGroupsPaginatedResponseContent", - "GetUserResponseContent", - "GetVariationResponseContent", - "GetVerifiableCredentialTemplateResponseContent", - "GoneError", - "GoogleAccountLinkingConfiguration", - "GoogleAccountLinkingConfigurationCreate", - "GoogleAccountLinkingConfigurationOrNull", - "Group", - "GroupMember", - "GroupMemberTypeEnum", - "GroupTypeEnum", - "GuardianEnrollmentDate", - "GuardianEnrollmentFactorEnum", - "GuardianEnrollmentStatus", - "GuardianFactor", - "GuardianFactorNameEnum", - "GuardianFactorPhoneFactorMessageTypeEnum", - "GuardianFactorSettings", - "GuardianFactorsProviderPushNotificationProviderDataEnum", - "GuardianFactorsProviderSmsProviderEnum", - "Hook", - "HookDependencies", - "HookTriggerIdEnum", - "HttpCustomHeader", - "Identity", - "IdentityAssertionAuthorizationGrant", - "IdentityProviderEnum", - "IdentityProviderOnlyAuth0Enum", - "ImportEncryptionKeyResponseContent", - "IncludeUserProfileSizeHeaderEnum", - "Integration", - "IntegrationFeatureTypeEnum", - "IntegrationRelease", - "IntegrationRequiredParam", - "IntegrationRequiredParamOption", - "IntegrationRequiredParamTypeEnum", - "IntegrationSemVer", - "InternalServerError", - "InternalServerErrorBody", - "InternalServerErrorBodyError", - "JobFileFormatEnum", - "LinkedClientConfiguration", - "ListActionBindingsPaginatedResponseContent", - "ListActionTriggersResponseContent", - "ListActionVersionsPaginatedResponseContent", - "ListActionsPaginatedResponseContent", - "ListAculsOffsetPaginatedResponseContent", - "ListAculsResponseContentItem", - "ListAgentsResponseContent", - "ListBrandingPhoneProvidersResponseContent", - "ListClientConnectionsResponseContent", - "ListClientGrantOrganizationsPaginatedResponseContent", - "ListClientGrantPaginatedResponseContent", - "ListClientProfilesPaginatedResponseContent", - "ListClientsOffsetPaginatedResponseContent", - "ListConnectionProfileTemplateResponseContent", - "ListConnectionProfilesPaginatedResponseContent", - "ListConnectionsCheckpointPaginatedResponseContent", - "ListCustomDomainsResponseContent", - "ListDeviceCredentialsOffsetPaginatedResponseContent", - "ListDirectoryProvisioningsResponseContent", - "ListEncryptionKeyOffsetPaginatedResponseContent", - "ListEventStreamDeliveriesResponseContent", - "ListEventStreamsResponseContent", - "ListExperimentsResponseContent", - "ListFeatureFlagsResponseContent", - "ListFlowExecutionsPaginatedResponseContent", - "ListFlowsOffsetPaginatedResponseContent", - "ListFlowsRequestParametersHydrateEnum", - "ListFlowsVaultConnectionsOffsetPaginatedResponseContent", - "ListFormsOffsetPaginatedResponseContent", - "ListGroupRolesResponseContent", - "ListGroupsPaginatedResponseContent", - "ListGuardianPoliciesResponseContent", - "ListHooksOffsetPaginatedResponseContent", - "ListLogOffsetPaginatedResponseContent", - "ListNetworkAclsOffsetPaginatedResponseContent", - "ListOrganizationAllConnectionsOffsetPaginatedResponseContent", - "ListOrganizationClientGrantsOffsetPaginatedResponseContent", - "ListOrganizationClientsResponseContent", - "ListOrganizationConnectionsOffsetPaginatedResponseContent", - "ListOrganizationDiscoveryDomainsResponseContent", - "ListOrganizationGroupRolesResponseContent", - "ListOrganizationGroupsResponseContent", - "ListOrganizationInvitationsOffsetPaginatedResponseContent", - "ListOrganizationMemberEffectiveRolesResponseContent", - "ListOrganizationMemberRoleSourceGroupsResponseContent", - "ListOrganizationMemberRolesOffsetPaginatedResponseContent", - "ListOrganizationMembersPaginatedResponseContent", - "ListOrganizationRoleGroupsResponseContent", - "ListOrganizationRoleMembersResponseContent", - "ListOrganizationsPaginatedResponseContent", - "ListPhoneTemplatesResponseContent", - "ListPortalsResponseContent", - "ListRateLimitPoliciesPaginatedResponseContent", - "ListRefreshTokensPaginatedResponseContent", - "ListResourceServerOffsetPaginatedResponseContent", - "ListRoleGroupsResponseContent", - "ListRolePermissionsOffsetPaginatedResponseContent", - "ListRoleUsersPaginatedResponseContent", - "ListRolesOffsetPaginatedResponseContent", - "ListRulesOffsetPaginatedResponseContent", - "ListScimConfigurationsResponseContent", - "ListSegmentsResponseContent", - "ListSelfServiceProfileCustomTextResponseContent", - "ListSelfServiceProfilesPaginatedResponseContent", - "ListSynchronizedGroupsResponseContent", - "ListTokenExchangeProfileResponseContent", - "ListUserAttributeProfileTemplateResponseContent", - "ListUserAttributeProfilesPaginatedResponseContent", - "ListUserAuthenticationMethodsOffsetPaginatedResponseContent", - "ListUserBlocksByIdentifierResponseContent", - "ListUserBlocksResponseContent", - "ListUserConnectedAccountsResponseContent", - "ListUserConsentSigningKeysResponseContent", - "ListUserEffectivePermissionRoleSourcesResponseContent", - "ListUserEffectivePermissionsResponseContent", - "ListUserEffectiveRolesResponseContent", - "ListUserGrantsOffsetPaginatedResponseContent", - "ListUserOrganizationsOffsetPaginatedResponseContent", - "ListUserPermissionsOffsetPaginatedResponseContent", - "ListUserRoleSourceGroupsResponseContent", - "ListUserRolesOffsetPaginatedResponseContent", - "ListUserSessionsPaginatedResponseContent", - "ListUsersOffsetPaginatedResponseContent", - "ListVariationsResponseContent", - "ListVerifiableCredentialTemplatesPaginatedResponseContent", - "Log", - "LogDate", - "LogDateObject", - "LogDetails", - "LogLocationInfo", - "LogSecurityContext", - "LogStreamDatadogEnum", - "LogStreamDatadogRegionEnum", - "LogStreamDatadogResponseSchema", - "LogStreamDatadogSink", - "LogStreamEventBridgeEnum", - "LogStreamEventBridgeResponseSchema", - "LogStreamEventBridgeSink", - "LogStreamEventBridgeSinkRegionEnum", - "LogStreamEventGridEnum", - "LogStreamEventGridRegionEnum", - "LogStreamEventGridResponseSchema", - "LogStreamEventGridSink", - "LogStreamFilter", - "LogStreamFilterGroupNameEnum", - "LogStreamFilterTypeEnum", - "LogStreamHttpContentFormatEnum", - "LogStreamHttpEnum", - "LogStreamHttpResponseSchema", - "LogStreamHttpSink", - "LogStreamMixpanelEnum", - "LogStreamMixpanelRegionEnum", - "LogStreamMixpanelResponseSchema", - "LogStreamMixpanelSink", - "LogStreamMixpanelSinkPatch", - "LogStreamPiiAlgorithmEnum", - "LogStreamPiiConfig", - "LogStreamPiiLogFieldsEnum", - "LogStreamPiiMethodEnum", - "LogStreamResponseSchema", - "LogStreamSegmentEnum", - "LogStreamSegmentResponseSchema", - "LogStreamSegmentSink", - "LogStreamSegmentSinkWriteKey", - "LogStreamSinkPatch", - "LogStreamSplunkEnum", - "LogStreamSplunkResponseSchema", - "LogStreamSplunkSink", - "LogStreamStatusEnum", - "LogStreamSumoEnum", - "LogStreamSumoResponseSchema", - "LogStreamSumoSink", "ManagementClient", - "MdlPresentationProperties", - "MdlPresentationRequest", - "MdlPresentationRequestProperties", - "MfaPolicyEnum", - "NativeSocialLogin", - "NativeSocialLoginApple", - "NativeSocialLoginApplePatch", - "NativeSocialLoginFacebook", - "NativeSocialLoginFacebookPatch", - "NativeSocialLoginGoogle", - "NativeSocialLoginGooglePatch", - "NativeSocialLoginPatch", - "NetworkAclAction", - "NetworkAclActionAllowEnum", - "NetworkAclActionBlockEnum", - "NetworkAclActionLogEnum", - "NetworkAclActionRedirectEnum", - "NetworkAclHttpMessageSignature", - "NetworkAclHttpMessageSignatureKey", - "NetworkAclHttpMessageSignatureKeys", - "NetworkAclKey", - "NetworkAclKeyAlgorithmEnum", - "NetworkAclMatch", - "NetworkAclMatchConnectingIpv4Cidr", - "NetworkAclMatchConnectingIpv6Cidr", - "NetworkAclMatchIpv4Cidr", - "NetworkAclMatchIpv6Cidr", - "NetworkAclRule", - "NetworkAclRuleMatchAllEnum", - "NetworkAclRuleScopeEnum", - "NetworkAclsResponseContent", - "NotFoundError", - "NotFoundErrorBody", - "NotFoundErrorBodyError", - "NotFoundSchema", - "NotFoundSchemaError", - "OauthScope", - "Organization", - "OrganizationAccessLevelEnum", - "OrganizationAccessLevelEnumWithNull", - "OrganizationAllConnectionPost", - "OrganizationBranding", - "OrganizationBrandingColors", - "OrganizationClient", - "OrganizationClientAssociation", - "OrganizationClientGrant", - "OrganizationClientMetadata", - "OrganizationClientMetadataOrganizationUsageEnum", - "OrganizationConnection", - "OrganizationConnectionInformation", - "OrganizationDiscoveryDomain", - "OrganizationDiscoveryDomainStatus", - "OrganizationEnabledConnection", - "OrganizationInvitation", - "OrganizationInvitationInvitee", - "OrganizationInvitationInviter", - "OrganizationMember", - "OrganizationMemberAccessLevelEnum", - "OrganizationMemberAccessLevelEnumWithNull", - "OrganizationMemberEffectiveRole", - "OrganizationMemberEffectiveRoleSource", - "OrganizationMemberRole", - "OrganizationMetadata", - "OrganizationSortFieldEnum", - "OrganizationThirdPartyClientAccessEnum", - "OrganizationUsageEnum", - "PageComponent", - "PageComponentAuth0Form", - "PageComponentAuth0FormConfig", - "PageComponentAuth0MediaImage", - "PageComponentAuth0MediaImageConfig", - "PageComponentAuth0MyAccountMfaManagement", - "PageComponentAuth0MyAccountMfaManagementConfig", - "PageComponentAuth0MyAccountPasskeyManagement", - "PageComponentAuth0MyAccountPasskeyManagementConfig", - "PageComponentAuth0MyOrganizationDetailsEdit", - "PageComponentAuth0MyOrganizationDetailsEditConfig", - "PageComponentAuth0MyOrganizationDomainTable", - "PageComponentAuth0MyOrganizationDomainTableConfig", - "PageComponentAuth0MyOrganizationMemberManagement", - "PageComponentAuth0MyOrganizationMemberManagementConfig", - "PageComponentAuth0StructureSection", - "PageComponentAuth0StructureSectionConfig", - "PageComponentAuth0StructureSectionVariantEnum", - "PageComponentAuth0StructureSeparator", - "PageComponentAuth0StructureSeparatorConfig", - "PageComponentAuth0StructureSeparatorVariantEnum", - "PageComponentAuth0TypographyHeading", - "PageComponentAuth0TypographyHeadingConfig", - "PageComponentAuth0TypographyRichText", - "PageComponentAuth0TypographyRichTextConfig", - "PageComponentNoChildren", - "PageComponentNoChildren_PageComponentAuth0Form", - "PageComponentNoChildren_PageComponentAuth0MediaImage", - "PageComponentNoChildren_PageComponentAuth0MyAccountMfaManagement", - "PageComponentNoChildren_PageComponentAuth0MyAccountPasskeyManagement", - "PageComponentNoChildren_PageComponentAuth0MyOrganizationDetailsEdit", - "PageComponentNoChildren_PageComponentAuth0MyOrganizationDomainTable", - "PageComponentNoChildren_PageComponentAuth0MyOrganizationMemberManagement", - "PageComponentNoChildren_PageComponentAuth0StructureSeparator", - "PageComponentNoChildren_PageComponentAuth0TypographyHeading", - "PageComponentNoChildren_PageComponentAuth0TypographyRichText", - "PageComponent_PageComponentAuth0Form", - "PageComponent_PageComponentAuth0MediaImage", - "PageComponent_PageComponentAuth0MyAccountMfaManagement", - "PageComponent_PageComponentAuth0MyAccountPasskeyManagement", - "PageComponent_PageComponentAuth0MyOrganizationDetailsEdit", - "PageComponent_PageComponentAuth0MyOrganizationDomainTable", - "PageComponent_PageComponentAuth0MyOrganizationMemberManagement", - "PageComponent_PageComponentAuth0StructureSection", - "PageComponent_PageComponentAuth0StructureSeparator", - "PageComponent_PageComponentAuth0TypographyHeading", - "PageComponent_PageComponentAuth0TypographyRichText", - "PageSlug", - "PartialGroupsEnum", - "PartialPhoneTemplateContent", - "PasswordCharacterTypeEnum", - "PasswordCharacterTypeRulePolicyEnum", - "PasswordDefaultDictionariesEnum", - "PasswordDictionaryMatchTypeEnum", - "PasswordIdenticalCharactersPolicyEnum", - "PasswordMaxLengthExceededPolicyEnum", - "PasswordSequentialCharactersPolicyEnum", - "PatchClientCredentialResponseContent", - "PatchPhoneProviderProtectionResponseContent", - "PatchRateLimitPolicyConfigurationRequestContent", - "PatchRateLimitPolicyConfigurationRequestContentAction", - "PatchRateLimitPolicyConfigurationRequestContentActionAction", - "PatchRateLimitPolicyConfigurationRequestContentOne", - "PatchRateLimitPolicyConfigurationRequestContentOneAction", - "PatchRateLimitPolicyConfigurationRequestContentZero", - "PatchRateLimitPolicyConfigurationRequestContentZeroAction", - "PatchSupplementalSignalsResponseContent", - "PaymentRequiredError", - "PermissionRequestPayload", - "PermissionsResponsePayload", - "PhoneAttribute", - "PhoneAttributeIdentifier", - "PhoneProviderChannelEnum", - "PhoneProviderConfiguration", - "PhoneProviderCredentials", - "PhoneProviderDeliveryMethodEnum", - "PhoneProviderNameEnum", - "PhoneProviderProtectionBackoffStrategyEnum", - "PhoneProviderSchemaMasked", - "PhoneTemplate", - "PhoneTemplateBody", - "PhoneTemplateContent", - "PhoneTemplateNotificationTypeEnum", - "Portal", - "PortalClientSecretPost", - "PortalClientSecretPostRequest", - "PortalClientSecretPostRequestTokenEndpointAuthMethod", - "PortalClientSecretPostTokenEndpointAuthMethod", - "PortalCustomCode", - "PortalCustomCodeNullable", - "PortalDateTime", - "PortalId", - "PortalName", - "PortalNavigation", - "PortalNavigationNullable", - "PortalPage", - "PortalPagesByType", - "PortalPagesByTypeNullable", - "PortalSlug", - "PortalSummary", - "Position", - "PostClientCredentialResponseContent", - "PostConnectionKeysAlgEnum", - "PostConnectionKeysRequestContent", - "PostConnectionsKeysResponseContent", - "PostConnectionsKeysResponseContentItem", - "PreconditionFailedError", - "PreferredAuthenticationMethodEnum", - "PreviewCimdMetadataResponseContent", - "PromptGroupNameEnum", - "PromptLanguageEnum", - "PublicKeyCredential", - "PublicKeyCredentialAlgorithmEnum", - "PublicKeyCredentialTypeEnum", - "RateLimitPolicy", - "RateLimitPolicyConfiguration", - "RateLimitPolicyConfigurationAction", - "RateLimitPolicyConfigurationActionAction", - "RateLimitPolicyConfigurationOne", - "RateLimitPolicyConfigurationOneAction", - "RateLimitPolicyConfigurationZero", - "RateLimitPolicyConfigurationZeroAction", - "RateLimitPolicyConsumerEnum", - "RateLimitPolicyResourceEnum", - "RefreshTokenDate", - "RefreshTokenDateObject", - "RefreshTokenDevice", - "RefreshTokenExpirationTypeEnum", - "RefreshTokenMetadata", - "RefreshTokenResourceServer", - "RefreshTokenResponseContent", - "RefreshTokenRotationTypeEnum", - "RefreshTokenSessionId", - "RegenerateUsersRecoveryCodeResponseContent", - "RegisterCimdClientResponseContent", - "ResetPhoneTemplateRequestContent", - "ResetPhoneTemplateResponseContent", - "ResourceServer", - "ResourceServerAccessToken", - "ResourceServerAccessTokenClaimsMapping", - "ResourceServerAccessTokenCustomClaimsMapping", - "ResourceServerAccessTokenCustomClaimsMappingRule", - "ResourceServerAgentSubjectClaimsResponseEnum", - "ResourceServerAgentSubjectClaimsSchemaEnum", - "ResourceServerAuthorizationPolicy", - "ResourceServerConsentPolicyEnum", - "ResourceServerProofOfPossession", - "ResourceServerProofOfPossessionMechanismEnum", - "ResourceServerProofOfPossessionRequiredForEnum", - "ResourceServerScope", - "ResourceServerSearchResponse", - "ResourceServerSortFieldEnum", - "ResourceServerSubjectTypeAuthorization", - "ResourceServerSubjectTypeAuthorizationAnonymousUser", - "ResourceServerSubjectTypeAuthorizationAnonymousUserPolicyEnum", - "ResourceServerSubjectTypeAuthorizationClient", - "ResourceServerSubjectTypeAuthorizationClientPolicyEnum", - "ResourceServerSubjectTypeAuthorizationUser", - "ResourceServerSubjectTypeAuthorizationUserPolicyEnum", - "ResourceServerTokenDialectResponseEnum", - "ResourceServerTokenDialectSchemaEnum", - "ResourceServerTokenEncryption", - "ResourceServerTokenEncryptionAlgorithmEnum", - "ResourceServerTokenEncryptionFormatEnum", - "ResourceServerTokenEncryptionKey", - "ResourceServerTypeEnum", - "ResourceServerVerificationKeyPemCertificate", - "RevokedSigningKeysResponseContent", - "Role", - "RoleGroup", - "RoleMember", - "RoleOwnerId", - "RoleOwnerIdFilter", - "RoleTypeEnum", - "RoleUser", - "RollbackActionModuleResponseContent", - "RotateClientSecretResponseContent", - "RotateConnectionKeysRequestContent", - "RotateConnectionKeysSigningAlgEnum", - "RotateConnectionsKeysResponseContent", - "RotateSigningKeysResponseContent", - "Rule", - "RulesConfig", - "ScimConfiguration", - "ScimMappingItem", - "ScimTokenItem", - "ScreenGroupNameEnum", - "SearchClientGrantsResponseContent", - "SearchClientsResponseContent", - "SearchEngineVersionsEnum", - "SearchOrganization", - "SearchOrganizationsPaginatedResponseContent", - "SearchParserEnum", - "SearchResourceServersResponseContent", - "Segment", - "SegmentContainsExpression", - "SegmentEndsWithExpression", - "SegmentExistsExpression", - "SegmentMatchConditions", - "SegmentMatchExpression", - "SegmentNotMatchConditions", - "SegmentRule", - "SegmentStartsWithExpression", - "SegmentStatusEnum", - "SegmentTypeEnum", - "SegmentTypeFilterEnum", - "SelfServiceProfile", - "SelfServiceProfileAllowedStrategyEnum", - "SelfServiceProfileBranding", - "SelfServiceProfileBrandingColors", - "SelfServiceProfileBrandingProperties", - "SelfServiceProfileCustomTextLanguageEnum", - "SelfServiceProfileCustomTextPageEnum", - "SelfServiceProfileDescription", - "SelfServiceProfileSsoTicketConnectionConfig", - "SelfServiceProfileSsoTicketConnectionOptions", - "SelfServiceProfileSsoTicketDomainAliasesConfig", - "SelfServiceProfileSsoTicketDomainVerificationEnum", - "SelfServiceProfileSsoTicketEnabledFeatures", - "SelfServiceProfileSsoTicketEnabledOrganization", - "SelfServiceProfileSsoTicketGoogleWorkspaceConfig", - "SelfServiceProfileSsoTicketIdpInitiatedClientProtocolEnum", - "SelfServiceProfileSsoTicketIdpInitiatedOptions", - "SelfServiceProfileSsoTicketProvisioningConfig", - "SelfServiceProfileSsoTicketProvisioningScopeEnum", - "SelfServiceProfileSsoTicketUniversalLogoutConfig", - "SelfServiceProfileUserAttribute", - "SelfServiceProfileUserAttributes", - "ServiceUnavailableError", - "SessionActorClaimValue", - "SessionActorMetadata", - "SessionAuthenticationSignal", - "SessionAuthenticationSignals", - "SessionClientMetadata", - "SessionCookieMetadata", - "SessionCookieMetadataModeEnum", - "SessionCookieModeEnum", - "SessionCookieSchema", - "SessionDate", - "SessionDeviceMetadata", - "SessionIp", - "SessionMetadata", - "SessionResponseContent", - "SetCustomSigningKeysResponseContent", - "SetEmailFactorSettingsResponseContent", - "SetEmailTemplateResponseContent", - "SetGuardianFactorDuoSettingsResponseContent", - "SetGuardianFactorPhoneMessageTypesResponseContent", - "SetGuardianFactorPhoneTemplatesResponseContent", - "SetGuardianFactorResponseContent", - "SetGuardianFactorSmsTemplatesResponseContent", - "SetGuardianFactorsProviderPhoneResponseContent", - "SetGuardianFactorsProviderPhoneTwilioResponseContent", - "SetGuardianFactorsProviderPushNotificationApnsResponseContent", - "SetGuardianFactorsProviderPushNotificationFcmResponseContent", - "SetGuardianFactorsProviderPushNotificationFcmv1ResponseContent", - "SetGuardianFactorsProviderPushNotificationResponseContent", - "SetGuardianFactorsProviderPushNotificationSnsResponseContent", - "SetGuardianFactorsProviderSmsResponseContent", - "SetGuardianFactorsProviderSmsTwilioResponseContent", - "SetGuardianPoliciesRequestContent", - "SetGuardianPoliciesResponseContent", - "SetGuardianSettingsResponseContent", - "SetNetworkAclsResponseContent", - "SetPartialsRequestContent", - "SetPhoneFactorSettingsResponseContent", - "SetRulesConfigResponseContent", - "SetSelfServiceProfileCustomTextRequestContent", - "SetSelfServiceProfileCustomTextResponseContent", - "SetUserAuthenticationMethodResponseContent", - "SetUserAuthenticationMethods", - "SetUserAuthenticationMethodsRequestContent", - "SetsCustomTextsByLanguageRequestContent", - "Sidebar", - "SidebarComponent", - "SidebarComponentAuth0ExternalLink", - "SidebarComponentAuth0ExternalLinkConfig", - "SidebarComponentAuth0ExternalLinkV2", - "SidebarComponentAuth0ExternalLinkV2Config", - "SidebarComponentAuth0InternalLink", - "SidebarComponentAuth0InternalLinkConfig", - "SidebarComponentAuth0InternalLinkV2", - "SidebarComponentAuth0InternalLinkV2Config", - "SidebarComponent_SidebarComponentAuth0ExternalLink", - "SidebarComponent_SidebarComponentAuth0ExternalLinkV2", - "SidebarComponent_SidebarComponentAuth0InternalLink", - "SidebarComponent_SidebarComponentAuth0InternalLinkV2", - "SigningAlgorithmEnum", - "SigningKeys", - "SigningKeysDate", - "SignupSchema", - "SignupStatusEnum", - "SignupVerification", - "SignupVerified", - "SupportedLocales", - "SuspiciousIpThrottlingAllowlist", - "SuspiciousIpThrottlingAllowlistItem", - "SuspiciousIpThrottlingPreCustomTokenExchangeStage", - "SuspiciousIpThrottlingPreLoginStage", - "SuspiciousIpThrottlingPreUserRegistrationStage", - "SuspiciousIpThrottlingShieldsEnum", - "SuspiciousIpThrottlingStage", - "SynchronizeGroupsEnum", - "SynchronizedGroupPayload", - "SynchronizedGroupSelectionId", - "SystemRoleOwnerId", - "TenantOidcLogoutSettings", - "TenantSettingsCountryCodes", - "TenantSettingsCountryCodesMode", - "TenantSettingsCountryCodesModeResponse", - "TenantSettingsCountryCodesResponse", - "TenantSettingsDeviceFlow", - "TenantSettingsDeviceFlowCharset", - "TenantSettingsDynamicClientRegistrationSecurityMode", - "TenantSettingsErrorPage", - "TenantSettingsFlags", - "TenantSettingsGuardianPage", - "TenantSettingsMtls", - "TenantSettingsNullableSecurityHeaders", - "TenantSettingsPasswordPage", - "TenantSettingsResourceParameterProfile", - "TenantSettingsSessions", - "TenantSettingsSessionsAnonymous", - "TenantSettingsSupportedLocalesEnum", - "TestActionPayload", - "TestActionResponseContent", - "TestActionResultPayload", - "TestCustomDomainResponseContent", - "TestEventDataContent", - "ThirdPartyClientAccessConfig", - "TokenExchangeProfileResponseContent", - "TokenExchangeProfileTypeEnum", + "SendBase", + "SendBaseType", + "SendByContent", + "SendByTemplate", + "SendParams", + "SendParamsContent", + "SendParamsTemplateId", + "SendParamsType", "TokenProvider", - "TokenQuota", - "TokenQuotaClientCredentials", - "TokenQuotaConfiguration", - "TokenVaultPrivilegedAccessGrant", - "TokenVaultPrivilegedAccessIpAllowlistEntry", - "TooManyRequestsError", - "TooManyRequestsErrorBody", - "TooManyRequestsErrorBodyError", - "TooManyRequestsSchema", - "TooManyRequestsSchemaError", - "TwilioProviderConfiguration", - "TwilioProviderCredentials", - "TwilioProviderDeliveryMethodEnum", - "UnauthorizedError", - "UnauthorizedSchema", - "UnauthorizedSchemaError", - "UniversalLoginExperienceEnum", - "UnprocessableEntityError", - "UpdateActionBindingsResponseContent", - "UpdateActionModuleResponseContent", - "UpdateActionResponseContent", - "UpdateAculResponseContent", - "UpdateAnonymousSessions", - "UpdateAttackProtectionCaptchaResponseContent", - "UpdateBotDetectionSettingsResponseContent", - "UpdateBrandingColors", - "UpdateBrandingFont", - "UpdateBrandingPageBackground", - "UpdateBrandingPhoneProviderResponseContent", - "UpdateBrandingResponseContent", - "UpdateBrandingThemeResponseContent", - "UpdateBreachedPasswordDetectionSettingsResponseContent", - "UpdateBruteForceSettingsResponseContent", - "UpdateClientGrantResponseContent", - "UpdateClientResponseContent", - "UpdateConnectionOptions", - "UpdateConnectionProfileResponseContent", - "UpdateConnectionRequestContentAd", - "UpdateConnectionRequestContentAdfs", - "UpdateConnectionRequestContentAmazon", - "UpdateConnectionRequestContentApple", - "UpdateConnectionRequestContentAuth0", - "UpdateConnectionRequestContentAuth0Oidc", - "UpdateConnectionRequestContentAzureAd", - "UpdateConnectionRequestContentBaidu", - "UpdateConnectionRequestContentBitbucket", - "UpdateConnectionRequestContentBitly", - "UpdateConnectionRequestContentBox", - "UpdateConnectionRequestContentCustom", - "UpdateConnectionRequestContentDaccount", - "UpdateConnectionRequestContentDropbox", - "UpdateConnectionRequestContentDwolla", - "UpdateConnectionRequestContentEmail", - "UpdateConnectionRequestContentEvernote", - "UpdateConnectionRequestContentEvernoteSandbox", - "UpdateConnectionRequestContentExact", - "UpdateConnectionRequestContentFacebook", - "UpdateConnectionRequestContentFitbit", - "UpdateConnectionRequestContentGitHub", - "UpdateConnectionRequestContentGoogleApps", - "UpdateConnectionRequestContentGoogleOAuth2", - "UpdateConnectionRequestContentInstagram", - "UpdateConnectionRequestContentIp", - "UpdateConnectionRequestContentLine", - "UpdateConnectionRequestContentLinkedin", - "UpdateConnectionRequestContentOAuth1", - "UpdateConnectionRequestContentOAuth2", - "UpdateConnectionRequestContentOffice365", - "UpdateConnectionRequestContentOidc", - "UpdateConnectionRequestContentOkta", - "UpdateConnectionRequestContentPaypal", - "UpdateConnectionRequestContentPaypalSandbox", - "UpdateConnectionRequestContentPingFederate", - "UpdateConnectionRequestContentPlanningCenter", - "UpdateConnectionRequestContentSalesforce", - "UpdateConnectionRequestContentSalesforceCommunity", - "UpdateConnectionRequestContentSalesforceSandbox", - "UpdateConnectionRequestContentSaml", - "UpdateConnectionRequestContentSharepoint", - "UpdateConnectionRequestContentShop", - "UpdateConnectionRequestContentShopify", - "UpdateConnectionRequestContentSms", - "UpdateConnectionRequestContentSoundcloud", - "UpdateConnectionRequestContentThirtySevenSignals", - "UpdateConnectionRequestContentTwitter", - "UpdateConnectionRequestContentUntappd", - "UpdateConnectionRequestContentVkontakte", - "UpdateConnectionRequestContentWeibo", - "UpdateConnectionRequestContentWindowsLive", - "UpdateConnectionRequestContentWordpress", - "UpdateConnectionRequestContentYahoo", - "UpdateConnectionRequestContentYandex", - "UpdateConnectionResponseContent", - "UpdateCrossAppAccessResourceApp", - "UpdateCustomDomainResponseContent", - "UpdateDefaultCanonicalDomainResponseContent", - "UpdateDefaultCustomDomainResponseContent", - "UpdateDefaultDomainResponseContent", - "UpdateDirectoryProvisioningRequestContent", - "UpdateDirectoryProvisioningResponseContent", - "UpdateEmailProviderResponseContent", - "UpdateEmailTemplateResponseContent", - "UpdateEnabledClientConnectionsRequestContent", - "UpdateEnabledClientConnectionsRequestContentItem", - "UpdateEventStreamResponseContent", - "UpdateExperimentResponseContent", - "UpdateFeatureFlagParameters", - "UpdateFeatureFlagResponseContent", - "UpdateFlowResponseContent", - "UpdateFlowsVaultConnectionResponseContent", - "UpdateFlowsVaultConnectionSetup", - "UpdateFormResponseContent", - "UpdateGuardianFactorDuoSettingsResponseContent", - "UpdateGuardianFactorsProviderPushNotificationApnsResponseContent", - "UpdateGuardianFactorsProviderPushNotificationFcmResponseContent", - "UpdateGuardianFactorsProviderPushNotificationFcmv1ResponseContent", - "UpdateGuardianFactorsProviderPushNotificationSnsResponseContent", - "UpdateHookResponseContent", - "UpdateHookSecretRequestContent", - "UpdateIdentityAssertionAuthorizationGrant", - "UpdateLogStreamResponseContent", - "UpdateNetworkAclResponseContent", - "UpdateOrganizationAllConnectionResponseContent", - "UpdateOrganizationClientResponseContent", - "UpdateOrganizationConnectionResponseContent", - "UpdateOrganizationDiscoveryDomainResponseContent", - "UpdateOrganizationResponseContent", - "UpdatePhoneTemplateResponseContent", - "UpdateRateLimitPolicyResponseContent", - "UpdateRefreshTokenResponseContent", - "UpdateResourceServerResponseContent", - "UpdateRiskAssessmentsSettingsNewDeviceResponseContent", - "UpdateRiskAssessmentsSettingsResponseContent", - "UpdateRoleResponseContent", - "UpdateRuleResponseContent", - "UpdateScimConfigurationResponseContent", - "UpdateSegmentResponseContent", - "UpdateSelfServiceProfileResponseContent", - "UpdateSessionResponseContent", - "UpdateSettingsResponseContent", - "UpdateSuspiciousIpThrottlingSettingsResponseContent", - "UpdateTenantSettingsResponseContent", - "UpdateTokenQuota", - "UpdateUniversalLoginTemplateRequestContent", - "UpdateUniversalLoginTemplateRequestContentTemplate", - "UpdateUserAttributeProfileResponseContent", - "UpdateUserAuthenticationMethodResponseContent", - "UpdateUserResponseContent", - "UpdateVariationOverridesMap", - "UpdateVariationResponseContent", - "UpdateVerifiableCredentialTemplateResponseContent", - "UserAppMetadataSchema", - "UserAttributeProfile", - "UserAttributeProfileId", - "UserAttributeProfileName", - "UserAttributeProfileOidcMapping", - "UserAttributeProfilePatchUserId", - "UserAttributeProfileSamlMapping", - "UserAttributeProfileStrategyOverrides", - "UserAttributeProfileStrategyOverridesMapping", - "UserAttributeProfileStrategyOverridesUserId", - "UserAttributeProfileStrategyOverridesUserIdMapping", - "UserAttributeProfileTemplate", - "UserAttributeProfileTemplateItem", - "UserAttributeProfileUserAttributeAdditionalProperties", - "UserAttributeProfileUserAttributes", - "UserAttributeProfileUserId", - "UserAttributeProfileUserIdOidcMappingEnum", - "UserAttributeProfileUserIdOidcStrategyOverrideMapping", - "UserAttributeProfileUserIdSamlMapping", - "UserAuthenticationMethod", - "UserAuthenticationMethodProperties", - "UserAuthenticationMethodPropertiesEnum", - "UserBlockIdentifier", - "UserEffectivePermissionResponseContent", - "UserEffectivePermissionRoleSourceEnum", - "UserEffectivePermissionRoleSourceResponseContent", - "UserEffectivePermissionSourceEnum", - "UserEffectiveRole", - "UserEffectiveRoleSource", - "UserEnrollmentAuthMethodEnum", - "UserEnrollmentStatusEnum", - "UserGrant", - "UserGroupsResponseSchema", - "UserId", - "UserIdentity", - "UserIdentityProviderEnum", - "UserIdentitySchema", - "UserListLogOffsetPaginatedResponseContent", - "UserMetadata", - "UserMetadataSchema", - "UserMultifactorProviderEnum", - "UserPermissionSchema", - "UserProfileData", - "UserResponseSchema", - "UsernameAllowedTypes", - "UsernameAttribute", - "UsernameAttributeIdentifier", - "UsernameValidation", - "UsersEnrollment", - "ValidateExperimentResponseContent", - "Variation", - "VariationOverridesMap", - "VerifiableCredentialTemplateResponse", - "VerificationMethodEnum", - "VerifyCustomDomainResponseContent", - "VerifyEmailTicketResponseContent", - "X509CertificateCredential", - "X509CertificateCredentialTypeEnum", - "XssProtectionConfig", - "XssProtectionMode", "__version__", - "actions", - "agents", - "anomaly", - "attack_protection", - "branding", - "client_grants", - "client_profiles", - "clients", - "connection_profiles", - "connections", - "custom_domains", - "device_credentials", - "email_templates", - "emails", - "event_streams", - "events", - "experimentation", - "flows", - "forms", - "groups", - "guardian", - "hooks", - "jobs", - "keys", - "log_streams", - "logs", - "network_acls", - "organizations", - "portals", - "prompts", - "rate_limit_policies", - "refresh_tokens", - "resource_servers", - "risk_assessments", - "roles", - "rules", - "rules_configs", - "self_service_profiles", - "sessions", - "stats", - "supplemental_signals", - "tenants", - "tickets", - "token_exchange_profiles", - "user_attribute_profiles", - "user_blocks", - "user_grants", - "users", - "verifiable_credentials", ] diff --git a/src/auth0/management/actions/__init__.py b/src/auth0/management/actions/__init__.py deleted file mode 100644 index c35f6171..00000000 --- a/src/auth0/management/actions/__init__.py +++ /dev/null @@ -1,39 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from . import executions, modules, triggers, versions -_dynamic_imports: typing.Dict[str, str] = { - "executions": ".executions", - "modules": ".modules", - "triggers": ".triggers", - "versions": ".versions", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - if module_name == f".{attr_name}": - return module - else: - return getattr(module, attr_name) - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["executions", "modules", "triggers", "versions"] diff --git a/src/auth0/management/actions/client.py b/src/auth0/management/actions/client.py deleted file mode 100644 index e29c621a..00000000 --- a/src/auth0/management/actions/client.py +++ /dev/null @@ -1,920 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.pagination import AsyncPager, SyncPager -from ..core.request_options import RequestOptions -from ..types.action import Action -from ..types.action_module_reference import ActionModuleReference -from ..types.action_secret_request import ActionSecretRequest -from ..types.action_trigger import ActionTrigger -from ..types.action_trigger_type_enum import ActionTriggerTypeEnum -from ..types.action_version_dependency import ActionVersionDependency -from ..types.create_action_response_content import CreateActionResponseContent -from ..types.deploy_action_response_content import DeployActionResponseContent -from ..types.get_action_response_content import GetActionResponseContent -from ..types.list_actions_paginated_response_content import ListActionsPaginatedResponseContent -from ..types.test_action_payload import TestActionPayload -from ..types.test_action_response_content import TestActionResponseContent -from ..types.update_action_response_content import UpdateActionResponseContent -from .raw_client import AsyncRawActionsClient, RawActionsClient - -if typing.TYPE_CHECKING: - from .executions.client import AsyncExecutionsClient, ExecutionsClient - from .modules.client import AsyncModulesClient, ModulesClient - from .triggers.client import AsyncTriggersClient, TriggersClient - from .versions.client import AsyncVersionsClient, VersionsClient -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class ActionsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawActionsClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._versions: typing.Optional[VersionsClient] = None - self._executions: typing.Optional[ExecutionsClient] = None - self._modules: typing.Optional[ModulesClient] = None - self._triggers: typing.Optional[TriggersClient] = None - - @property - def with_raw_response(self) -> RawActionsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawActionsClient - """ - return self._raw_client - - def list( - self, - *, - trigger_id: typing.Optional[ActionTriggerTypeEnum] = None, - action_name: typing.Optional[str] = None, - deployed: typing.Optional[bool] = None, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - installed: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[Action, ListActionsPaginatedResponseContent]: - """ - Retrieve all actions. - - Parameters - ---------- - trigger_id : typing.Optional[ActionTriggerTypeEnum] - An actions extensibility point. - - action_name : typing.Optional[str] - The name of the action to retrieve. - - deployed : typing.Optional[bool] - Optional filter to only retrieve actions that are deployed. - - page : typing.Optional[int] - Use this field to request a specific page of the list results. - - per_page : typing.Optional[int] - The maximum number of results to be returned by the server in single response. 20 by default - - installed : typing.Optional[bool] - Optional. When true, return only installed actions. When false, return only custom actions. Returns all actions by default. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[Action, ListActionsPaginatedResponseContent] - The actions were retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.actions.list( - trigger_id="post-login", - action_name="actionName", - deployed=True, - page=1, - per_page=1, - installed=True, - ) - for item in response: - yield item - # alternatively, you can paginate page-by-page - for page in response.iter_pages(): - yield page - """ - return self._raw_client.list( - trigger_id=trigger_id, - action_name=action_name, - deployed=deployed, - page=page, - per_page=per_page, - installed=installed, - request_options=request_options, - ) - - def create( - self, - *, - name: str, - supported_triggers: typing.Sequence[ActionTrigger], - code: typing.Optional[str] = OMIT, - dependencies: typing.Optional[typing.Sequence[ActionVersionDependency]] = OMIT, - runtime: typing.Optional[str] = OMIT, - secrets: typing.Optional[typing.Sequence[ActionSecretRequest]] = OMIT, - modules: typing.Optional[typing.Sequence[ActionModuleReference]] = OMIT, - deploy: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateActionResponseContent: - """ - Create an action. Once an action is created, it must be deployed, and then bound to a trigger before it will be executed as part of a flow. - - Parameters - ---------- - name : str - The name of an action. - - supported_triggers : typing.Sequence[ActionTrigger] - The list of triggers that this action supports. At this time, an action can only target a single trigger at a time. - - code : typing.Optional[str] - The source code of the action. - - dependencies : typing.Optional[typing.Sequence[ActionVersionDependency]] - The list of third party npm modules, and their versions, that this action depends on. - - runtime : typing.Optional[str] - The Node runtime. For example: `node22`, defaults to `node22` - - secrets : typing.Optional[typing.Sequence[ActionSecretRequest]] - The list of secrets that are included in an action or a version of an action. - - modules : typing.Optional[typing.Sequence[ActionModuleReference]] - The list of action modules and their versions used by this action. - - deploy : typing.Optional[bool] - True if the action should be deployed after creation. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateActionResponseContent - Action successfully created. - - Examples - -------- - from auth0 import ActionTrigger, Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.actions.create( - name="name", - supported_triggers=[ - ActionTrigger( - id="post-login", - ) - ], - ) - """ - _response = self._raw_client.create( - name=name, - supported_triggers=supported_triggers, - code=code, - dependencies=dependencies, - runtime=runtime, - secrets=secrets, - modules=modules, - deploy=deploy, - request_options=request_options, - ) - return _response.data - - def get(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> GetActionResponseContent: - """ - Retrieve an action by its ID. - - Parameters - ---------- - id : str - The ID of the action to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetActionResponseContent - The action was retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.actions.get( - id="id", - ) - """ - _response = self._raw_client.get(id, request_options=request_options) - return _response.data - - def delete( - self, id: str, *, force: typing.Optional[bool] = None, request_options: typing.Optional[RequestOptions] = None - ) -> None: - """ - Deletes an action and all of its associated versions. An action must be unbound from all triggers before it can be deleted. - - Parameters - ---------- - id : str - The ID of the action to delete. - - force : typing.Optional[bool] - Force action deletion detaching bindings - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.actions.delete( - id="id", - force=True, - ) - """ - _response = self._raw_client.delete(id, force=force, request_options=request_options) - return _response.data - - def update( - self, - id: str, - *, - name: typing.Optional[str] = OMIT, - supported_triggers: typing.Optional[typing.Sequence[ActionTrigger]] = OMIT, - code: typing.Optional[str] = OMIT, - dependencies: typing.Optional[typing.Sequence[ActionVersionDependency]] = OMIT, - runtime: typing.Optional[str] = OMIT, - secrets: typing.Optional[typing.Sequence[ActionSecretRequest]] = OMIT, - modules: typing.Optional[typing.Sequence[ActionModuleReference]] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateActionResponseContent: - """ - Update an existing action. If this action is currently bound to a trigger, updating it will **not** affect any user flows until the action is deployed. - - Parameters - ---------- - id : str - The id of the action to update. - - name : typing.Optional[str] - The name of an action. - - supported_triggers : typing.Optional[typing.Sequence[ActionTrigger]] - The list of triggers that this action supports. At this time, an action can only target a single trigger at a time. - - code : typing.Optional[str] - The source code of the action. - - dependencies : typing.Optional[typing.Sequence[ActionVersionDependency]] - The list of third party npm modules, and their versions, that this action depends on. - - runtime : typing.Optional[str] - The Node runtime. For example: `node22`, defaults to `node22` - - secrets : typing.Optional[typing.Sequence[ActionSecretRequest]] - The list of secrets that are included in an action or a version of an action. - - modules : typing.Optional[typing.Sequence[ActionModuleReference]] - The list of action modules and their versions used by this action. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateActionResponseContent - Action successfully updated. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.actions.update( - id="id", - ) - """ - _response = self._raw_client.update( - id, - name=name, - supported_triggers=supported_triggers, - code=code, - dependencies=dependencies, - runtime=runtime, - secrets=secrets, - modules=modules, - request_options=request_options, - ) - return _response.data - - def deploy( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> DeployActionResponseContent: - """ - Deploy an action. Deploying an action will create a new immutable version of the action. If the action is currently bound to a trigger, then the system will begin executing the newly deployed version of the action immediately. Otherwise, the action will only be executed as a part of a flow once it is bound to that flow. - - Parameters - ---------- - id : str - The ID of an action. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - DeployActionResponseContent - Request to create action version was accepted. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.actions.deploy( - id="id", - ) - """ - _response = self._raw_client.deploy(id, request_options=request_options) - return _response.data - - def test( - self, id: str, *, payload: TestActionPayload, request_options: typing.Optional[RequestOptions] = None - ) -> TestActionResponseContent: - """ - Test an action. After updating an action, it can be tested prior to being deployed to ensure it behaves as expected. - - Parameters - ---------- - id : str - The id of the action to test. - - payload : TestActionPayload - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - TestActionResponseContent - Test action version successfully created. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.actions.test( - id="id", - payload={"key": "value"}, - ) - """ - _response = self._raw_client.test(id, payload=payload, request_options=request_options) - return _response.data - - @property - def versions(self): - if self._versions is None: - from .versions.client import VersionsClient # noqa: E402 - - self._versions = VersionsClient(client_wrapper=self._client_wrapper) - return self._versions - - @property - def executions(self): - if self._executions is None: - from .executions.client import ExecutionsClient # noqa: E402 - - self._executions = ExecutionsClient(client_wrapper=self._client_wrapper) - return self._executions - - @property - def modules(self): - if self._modules is None: - from .modules.client import ModulesClient # noqa: E402 - - self._modules = ModulesClient(client_wrapper=self._client_wrapper) - return self._modules - - @property - def triggers(self): - if self._triggers is None: - from .triggers.client import TriggersClient # noqa: E402 - - self._triggers = TriggersClient(client_wrapper=self._client_wrapper) - return self._triggers - - -class AsyncActionsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawActionsClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._versions: typing.Optional[AsyncVersionsClient] = None - self._executions: typing.Optional[AsyncExecutionsClient] = None - self._modules: typing.Optional[AsyncModulesClient] = None - self._triggers: typing.Optional[AsyncTriggersClient] = None - - @property - def with_raw_response(self) -> AsyncRawActionsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawActionsClient - """ - return self._raw_client - - async def list( - self, - *, - trigger_id: typing.Optional[ActionTriggerTypeEnum] = None, - action_name: typing.Optional[str] = None, - deployed: typing.Optional[bool] = None, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - installed: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[Action, ListActionsPaginatedResponseContent]: - """ - Retrieve all actions. - - Parameters - ---------- - trigger_id : typing.Optional[ActionTriggerTypeEnum] - An actions extensibility point. - - action_name : typing.Optional[str] - The name of the action to retrieve. - - deployed : typing.Optional[bool] - Optional filter to only retrieve actions that are deployed. - - page : typing.Optional[int] - Use this field to request a specific page of the list results. - - per_page : typing.Optional[int] - The maximum number of results to be returned by the server in single response. 20 by default - - installed : typing.Optional[bool] - Optional. When true, return only installed actions. When false, return only custom actions. Returns all actions by default. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[Action, ListActionsPaginatedResponseContent] - The actions were retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.actions.list( - trigger_id="post-login", - action_name="actionName", - deployed=True, - page=1, - per_page=1, - installed=True, - ) - async for item in response: - yield item - - # alternatively, you can paginate page-by-page - async for page in response.iter_pages(): - yield page - - - asyncio.run(main()) - """ - return await self._raw_client.list( - trigger_id=trigger_id, - action_name=action_name, - deployed=deployed, - page=page, - per_page=per_page, - installed=installed, - request_options=request_options, - ) - - async def create( - self, - *, - name: str, - supported_triggers: typing.Sequence[ActionTrigger], - code: typing.Optional[str] = OMIT, - dependencies: typing.Optional[typing.Sequence[ActionVersionDependency]] = OMIT, - runtime: typing.Optional[str] = OMIT, - secrets: typing.Optional[typing.Sequence[ActionSecretRequest]] = OMIT, - modules: typing.Optional[typing.Sequence[ActionModuleReference]] = OMIT, - deploy: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateActionResponseContent: - """ - Create an action. Once an action is created, it must be deployed, and then bound to a trigger before it will be executed as part of a flow. - - Parameters - ---------- - name : str - The name of an action. - - supported_triggers : typing.Sequence[ActionTrigger] - The list of triggers that this action supports. At this time, an action can only target a single trigger at a time. - - code : typing.Optional[str] - The source code of the action. - - dependencies : typing.Optional[typing.Sequence[ActionVersionDependency]] - The list of third party npm modules, and their versions, that this action depends on. - - runtime : typing.Optional[str] - The Node runtime. For example: `node22`, defaults to `node22` - - secrets : typing.Optional[typing.Sequence[ActionSecretRequest]] - The list of secrets that are included in an action or a version of an action. - - modules : typing.Optional[typing.Sequence[ActionModuleReference]] - The list of action modules and their versions used by this action. - - deploy : typing.Optional[bool] - True if the action should be deployed after creation. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateActionResponseContent - Action successfully created. - - Examples - -------- - import asyncio - - from auth0 import ActionTrigger, AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.actions.create( - name="name", - supported_triggers=[ - ActionTrigger( - id="post-login", - ) - ], - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - name=name, - supported_triggers=supported_triggers, - code=code, - dependencies=dependencies, - runtime=runtime, - secrets=secrets, - modules=modules, - deploy=deploy, - request_options=request_options, - ) - return _response.data - - async def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetActionResponseContent: - """ - Retrieve an action by its ID. - - Parameters - ---------- - id : str - The ID of the action to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetActionResponseContent - The action was retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.actions.get( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.get(id, request_options=request_options) - return _response.data - - async def delete( - self, id: str, *, force: typing.Optional[bool] = None, request_options: typing.Optional[RequestOptions] = None - ) -> None: - """ - Deletes an action and all of its associated versions. An action must be unbound from all triggers before it can be deleted. - - Parameters - ---------- - id : str - The ID of the action to delete. - - force : typing.Optional[bool] - Force action deletion detaching bindings - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.actions.delete( - id="id", - force=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete(id, force=force, request_options=request_options) - return _response.data - - async def update( - self, - id: str, - *, - name: typing.Optional[str] = OMIT, - supported_triggers: typing.Optional[typing.Sequence[ActionTrigger]] = OMIT, - code: typing.Optional[str] = OMIT, - dependencies: typing.Optional[typing.Sequence[ActionVersionDependency]] = OMIT, - runtime: typing.Optional[str] = OMIT, - secrets: typing.Optional[typing.Sequence[ActionSecretRequest]] = OMIT, - modules: typing.Optional[typing.Sequence[ActionModuleReference]] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateActionResponseContent: - """ - Update an existing action. If this action is currently bound to a trigger, updating it will **not** affect any user flows until the action is deployed. - - Parameters - ---------- - id : str - The id of the action to update. - - name : typing.Optional[str] - The name of an action. - - supported_triggers : typing.Optional[typing.Sequence[ActionTrigger]] - The list of triggers that this action supports. At this time, an action can only target a single trigger at a time. - - code : typing.Optional[str] - The source code of the action. - - dependencies : typing.Optional[typing.Sequence[ActionVersionDependency]] - The list of third party npm modules, and their versions, that this action depends on. - - runtime : typing.Optional[str] - The Node runtime. For example: `node22`, defaults to `node22` - - secrets : typing.Optional[typing.Sequence[ActionSecretRequest]] - The list of secrets that are included in an action or a version of an action. - - modules : typing.Optional[typing.Sequence[ActionModuleReference]] - The list of action modules and their versions used by this action. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateActionResponseContent - Action successfully updated. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.actions.update( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.update( - id, - name=name, - supported_triggers=supported_triggers, - code=code, - dependencies=dependencies, - runtime=runtime, - secrets=secrets, - modules=modules, - request_options=request_options, - ) - return _response.data - - async def deploy( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> DeployActionResponseContent: - """ - Deploy an action. Deploying an action will create a new immutable version of the action. If the action is currently bound to a trigger, then the system will begin executing the newly deployed version of the action immediately. Otherwise, the action will only be executed as a part of a flow once it is bound to that flow. - - Parameters - ---------- - id : str - The ID of an action. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - DeployActionResponseContent - Request to create action version was accepted. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.actions.deploy( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.deploy(id, request_options=request_options) - return _response.data - - async def test( - self, id: str, *, payload: TestActionPayload, request_options: typing.Optional[RequestOptions] = None - ) -> TestActionResponseContent: - """ - Test an action. After updating an action, it can be tested prior to being deployed to ensure it behaves as expected. - - Parameters - ---------- - id : str - The id of the action to test. - - payload : TestActionPayload - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - TestActionResponseContent - Test action version successfully created. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.actions.test( - id="id", - payload={"key": "value"}, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.test(id, payload=payload, request_options=request_options) - return _response.data - - @property - def versions(self): - if self._versions is None: - from .versions.client import AsyncVersionsClient # noqa: E402 - - self._versions = AsyncVersionsClient(client_wrapper=self._client_wrapper) - return self._versions - - @property - def executions(self): - if self._executions is None: - from .executions.client import AsyncExecutionsClient # noqa: E402 - - self._executions = AsyncExecutionsClient(client_wrapper=self._client_wrapper) - return self._executions - - @property - def modules(self): - if self._modules is None: - from .modules.client import AsyncModulesClient # noqa: E402 - - self._modules = AsyncModulesClient(client_wrapper=self._client_wrapper) - return self._modules - - @property - def triggers(self): - if self._triggers is None: - from .triggers.client import AsyncTriggersClient # noqa: E402 - - self._triggers = AsyncTriggersClient(client_wrapper=self._client_wrapper) - return self._triggers diff --git a/src/auth0/management/actions/executions/__init__.py b/src/auth0/management/actions/executions/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/actions/executions/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/actions/executions/client.py b/src/auth0/management/actions/executions/client.py deleted file mode 100644 index ec45384a..00000000 --- a/src/auth0/management/actions/executions/client.py +++ /dev/null @@ -1,114 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.request_options import RequestOptions -from ...types.get_action_execution_response_content import GetActionExecutionResponseContent -from .raw_client import AsyncRawExecutionsClient, RawExecutionsClient - - -class ExecutionsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawExecutionsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawExecutionsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawExecutionsClient - """ - return self._raw_client - - def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetActionExecutionResponseContent: - """ - Retrieve information about a specific execution of a trigger. Relevant execution IDs will be included in tenant logs generated as part of that authentication flow. Executions will only be stored for 10 days after their creation. - - Parameters - ---------- - id : str - The ID of the execution to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetActionExecutionResponseContent - The execution was retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.actions.executions.get( - id="id", - ) - """ - _response = self._raw_client.get(id, request_options=request_options) - return _response.data - - -class AsyncExecutionsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawExecutionsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawExecutionsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawExecutionsClient - """ - return self._raw_client - - async def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetActionExecutionResponseContent: - """ - Retrieve information about a specific execution of a trigger. Relevant execution IDs will be included in tenant logs generated as part of that authentication flow. Executions will only be stored for 10 days after their creation. - - Parameters - ---------- - id : str - The ID of the execution to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetActionExecutionResponseContent - The execution was retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.actions.executions.get( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.get(id, request_options=request_options) - return _response.data diff --git a/src/auth0/management/actions/executions/raw_client.py b/src/auth0/management/actions/executions/raw_client.py deleted file mode 100644 index 477a0029..00000000 --- a/src/auth0/management/actions/executions/raw_client.py +++ /dev/null @@ -1,225 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ...core.api_error import ApiError -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.http_response import AsyncHttpResponse, HttpResponse -from ...core.jsonable_encoder import quote_path_param -from ...core.parse_error import ParsingError -from ...core.pydantic_utilities import parse_obj_as -from ...core.request_options import RequestOptions -from ...errors.bad_request_error import BadRequestError -from ...errors.forbidden_error import ForbiddenError -from ...errors.not_found_error import NotFoundError -from ...errors.too_many_requests_error import TooManyRequestsError -from ...errors.unauthorized_error import UnauthorizedError -from ...types.get_action_execution_response_content import GetActionExecutionResponseContent -from pydantic import ValidationError - - -class RawExecutionsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetActionExecutionResponseContent]: - """ - Retrieve information about a specific execution of a trigger. Relevant execution IDs will be included in tenant logs generated as part of that authentication flow. Executions will only be stored for 10 days after their creation. - - Parameters - ---------- - id : str - The ID of the execution to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetActionExecutionResponseContent] - The execution was retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - f"actions/executions/{quote_path_param(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetActionExecutionResponseContent, - parse_obj_as( - type_=GetActionExecutionResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawExecutionsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetActionExecutionResponseContent]: - """ - Retrieve information about a specific execution of a trigger. Relevant execution IDs will be included in tenant logs generated as part of that authentication flow. Executions will only be stored for 10 days after their creation. - - Parameters - ---------- - id : str - The ID of the execution to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetActionExecutionResponseContent] - The execution was retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - f"actions/executions/{quote_path_param(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetActionExecutionResponseContent, - parse_obj_as( - type_=GetActionExecutionResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/actions/modules/__init__.py b/src/auth0/management/actions/modules/__init__.py deleted file mode 100644 index 781d00f0..00000000 --- a/src/auth0/management/actions/modules/__init__.py +++ /dev/null @@ -1,34 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from . import versions -_dynamic_imports: typing.Dict[str, str] = {"versions": ".versions"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - if module_name == f".{attr_name}": - return module - else: - return getattr(module, attr_name) - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["versions"] diff --git a/src/auth0/management/actions/modules/client.py b/src/auth0/management/actions/modules/client.py deleted file mode 100644 index 8b2dcc41..00000000 --- a/src/auth0/management/actions/modules/client.py +++ /dev/null @@ -1,757 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.pagination import AsyncPager, SyncPager -from ...core.request_options import RequestOptions -from ...types.action_module_action import ActionModuleAction -from ...types.action_module_dependency_request import ActionModuleDependencyRequest -from ...types.action_module_list_item import ActionModuleListItem -from ...types.action_module_secret_request import ActionModuleSecretRequest -from ...types.create_action_module_response_content import CreateActionModuleResponseContent -from ...types.get_action_module_actions_response_content import GetActionModuleActionsResponseContent -from ...types.get_action_module_response_content import GetActionModuleResponseContent -from ...types.get_action_modules_response_content import GetActionModulesResponseContent -from ...types.rollback_action_module_response_content import RollbackActionModuleResponseContent -from ...types.update_action_module_response_content import UpdateActionModuleResponseContent -from .raw_client import AsyncRawModulesClient, RawModulesClient - -if typing.TYPE_CHECKING: - from .versions.client import AsyncVersionsClient, VersionsClient -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class ModulesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawModulesClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._versions: typing.Optional[VersionsClient] = None - - @property - def with_raw_response(self) -> RawModulesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawModulesClient - """ - return self._raw_client - - def list( - self, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[ActionModuleListItem, GetActionModulesResponseContent]: - """ - Retrieve a paginated list of all Actions Modules with optional filtering and totals. - - Parameters - ---------- - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. Paging is disabled if parameter not sent. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[ActionModuleListItem, GetActionModulesResponseContent] - The action modules were retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.actions.modules.list( - page=1, - per_page=1, - ) - for item in response: - yield item - # alternatively, you can paginate page-by-page - for page in response.iter_pages(): - yield page - """ - return self._raw_client.list(page=page, per_page=per_page, request_options=request_options) - - def create( - self, - *, - name: str, - code: str, - secrets: typing.Optional[typing.Sequence[ActionModuleSecretRequest]] = OMIT, - dependencies: typing.Optional[typing.Sequence[ActionModuleDependencyRequest]] = OMIT, - api_version: typing.Optional[str] = OMIT, - publish: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateActionModuleResponseContent: - """ - Create a new Actions Module for reusable code across actions. - - Parameters - ---------- - name : str - The name of the action module. - - code : str - The source code of the action module. - - secrets : typing.Optional[typing.Sequence[ActionModuleSecretRequest]] - The secrets to associate with the action module. - - dependencies : typing.Optional[typing.Sequence[ActionModuleDependencyRequest]] - The npm dependencies of the action module. - - api_version : typing.Optional[str] - The API version of the module. - - publish : typing.Optional[bool] - Whether to publish the module immediately after creation. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateActionModuleResponseContent - The action module was created. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.actions.modules.create( - name="name", - code="code", - ) - """ - _response = self._raw_client.create( - name=name, - code=code, - secrets=secrets, - dependencies=dependencies, - api_version=api_version, - publish=publish, - request_options=request_options, - ) - return _response.data - - def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetActionModuleResponseContent: - """ - Retrieve details of a specific Actions Module by its unique identifier. - - Parameters - ---------- - id : str - The ID of the action module to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetActionModuleResponseContent - The action module was retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.actions.modules.get( - id="id", - ) - """ - _response = self._raw_client.get(id, request_options=request_options) - return _response.data - - def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Permanently delete an Actions Module. This will fail if the module is still in use by any actions. - - Parameters - ---------- - id : str - The ID of the Actions Module to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.actions.modules.delete( - id="id", - ) - """ - _response = self._raw_client.delete(id, request_options=request_options) - return _response.data - - def update( - self, - id: str, - *, - code: typing.Optional[str] = OMIT, - secrets: typing.Optional[typing.Sequence[ActionModuleSecretRequest]] = OMIT, - dependencies: typing.Optional[typing.Sequence[ActionModuleDependencyRequest]] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateActionModuleResponseContent: - """ - Update properties of an existing Actions Module, such as code, dependencies, or secrets. - - Parameters - ---------- - id : str - The ID of the action module to update. - - code : typing.Optional[str] - The source code of the action module. - - secrets : typing.Optional[typing.Sequence[ActionModuleSecretRequest]] - The secrets to associate with the action module. - - dependencies : typing.Optional[typing.Sequence[ActionModuleDependencyRequest]] - The npm dependencies of the action module. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateActionModuleResponseContent - The action module was updated. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.actions.modules.update( - id="id", - ) - """ - _response = self._raw_client.update( - id, code=code, secrets=secrets, dependencies=dependencies, request_options=request_options - ) - return _response.data - - def list_actions( - self, - id: str, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[ActionModuleAction, GetActionModuleActionsResponseContent]: - """ - Lists all actions that are using a specific Actions Module, showing which deployed action versions reference this Actions Module. - - Parameters - ---------- - id : str - The unique ID of the module. - - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[ActionModuleAction, GetActionModuleActionsResponseContent] - The actions were retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.actions.modules.list_actions( - id="id", - page=1, - per_page=1, - ) - for item in response: - yield item - # alternatively, you can paginate page-by-page - for page in response.iter_pages(): - yield page - """ - return self._raw_client.list_actions(id, page=page, per_page=per_page, request_options=request_options) - - def rollback( - self, id: str, *, module_version_id: str, request_options: typing.Optional[RequestOptions] = None - ) -> RollbackActionModuleResponseContent: - """ - Rolls back an Actions Module's draft to a previously created version. This action copies the code, dependencies, and secrets from the specified version into the current draft. - - Parameters - ---------- - id : str - The unique ID of the module to roll back. - - module_version_id : str - The unique ID of the module version to roll back to. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - RollbackActionModuleResponseContent - The rollback was successful. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.actions.modules.rollback( - id="id", - module_version_id="module_version_id", - ) - """ - _response = self._raw_client.rollback(id, module_version_id=module_version_id, request_options=request_options) - return _response.data - - @property - def versions(self): - if self._versions is None: - from .versions.client import VersionsClient # noqa: E402 - - self._versions = VersionsClient(client_wrapper=self._client_wrapper) - return self._versions - - -class AsyncModulesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawModulesClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._versions: typing.Optional[AsyncVersionsClient] = None - - @property - def with_raw_response(self) -> AsyncRawModulesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawModulesClient - """ - return self._raw_client - - async def list( - self, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[ActionModuleListItem, GetActionModulesResponseContent]: - """ - Retrieve a paginated list of all Actions Modules with optional filtering and totals. - - Parameters - ---------- - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. Paging is disabled if parameter not sent. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[ActionModuleListItem, GetActionModulesResponseContent] - The action modules were retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.actions.modules.list( - page=1, - per_page=1, - ) - async for item in response: - yield item - - # alternatively, you can paginate page-by-page - async for page in response.iter_pages(): - yield page - - - asyncio.run(main()) - """ - return await self._raw_client.list(page=page, per_page=per_page, request_options=request_options) - - async def create( - self, - *, - name: str, - code: str, - secrets: typing.Optional[typing.Sequence[ActionModuleSecretRequest]] = OMIT, - dependencies: typing.Optional[typing.Sequence[ActionModuleDependencyRequest]] = OMIT, - api_version: typing.Optional[str] = OMIT, - publish: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateActionModuleResponseContent: - """ - Create a new Actions Module for reusable code across actions. - - Parameters - ---------- - name : str - The name of the action module. - - code : str - The source code of the action module. - - secrets : typing.Optional[typing.Sequence[ActionModuleSecretRequest]] - The secrets to associate with the action module. - - dependencies : typing.Optional[typing.Sequence[ActionModuleDependencyRequest]] - The npm dependencies of the action module. - - api_version : typing.Optional[str] - The API version of the module. - - publish : typing.Optional[bool] - Whether to publish the module immediately after creation. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateActionModuleResponseContent - The action module was created. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.actions.modules.create( - name="name", - code="code", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - name=name, - code=code, - secrets=secrets, - dependencies=dependencies, - api_version=api_version, - publish=publish, - request_options=request_options, - ) - return _response.data - - async def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetActionModuleResponseContent: - """ - Retrieve details of a specific Actions Module by its unique identifier. - - Parameters - ---------- - id : str - The ID of the action module to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetActionModuleResponseContent - The action module was retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.actions.modules.get( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.get(id, request_options=request_options) - return _response.data - - async def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Permanently delete an Actions Module. This will fail if the module is still in use by any actions. - - Parameters - ---------- - id : str - The ID of the Actions Module to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.actions.modules.delete( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete(id, request_options=request_options) - return _response.data - - async def update( - self, - id: str, - *, - code: typing.Optional[str] = OMIT, - secrets: typing.Optional[typing.Sequence[ActionModuleSecretRequest]] = OMIT, - dependencies: typing.Optional[typing.Sequence[ActionModuleDependencyRequest]] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateActionModuleResponseContent: - """ - Update properties of an existing Actions Module, such as code, dependencies, or secrets. - - Parameters - ---------- - id : str - The ID of the action module to update. - - code : typing.Optional[str] - The source code of the action module. - - secrets : typing.Optional[typing.Sequence[ActionModuleSecretRequest]] - The secrets to associate with the action module. - - dependencies : typing.Optional[typing.Sequence[ActionModuleDependencyRequest]] - The npm dependencies of the action module. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateActionModuleResponseContent - The action module was updated. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.actions.modules.update( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.update( - id, code=code, secrets=secrets, dependencies=dependencies, request_options=request_options - ) - return _response.data - - async def list_actions( - self, - id: str, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[ActionModuleAction, GetActionModuleActionsResponseContent]: - """ - Lists all actions that are using a specific Actions Module, showing which deployed action versions reference this Actions Module. - - Parameters - ---------- - id : str - The unique ID of the module. - - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[ActionModuleAction, GetActionModuleActionsResponseContent] - The actions were retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.actions.modules.list_actions( - id="id", - page=1, - per_page=1, - ) - async for item in response: - yield item - - # alternatively, you can paginate page-by-page - async for page in response.iter_pages(): - yield page - - - asyncio.run(main()) - """ - return await self._raw_client.list_actions(id, page=page, per_page=per_page, request_options=request_options) - - async def rollback( - self, id: str, *, module_version_id: str, request_options: typing.Optional[RequestOptions] = None - ) -> RollbackActionModuleResponseContent: - """ - Rolls back an Actions Module's draft to a previously created version. This action copies the code, dependencies, and secrets from the specified version into the current draft. - - Parameters - ---------- - id : str - The unique ID of the module to roll back. - - module_version_id : str - The unique ID of the module version to roll back to. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - RollbackActionModuleResponseContent - The rollback was successful. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.actions.modules.rollback( - id="id", - module_version_id="module_version_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.rollback( - id, module_version_id=module_version_id, request_options=request_options - ) - return _response.data - - @property - def versions(self): - if self._versions is None: - from .versions.client import AsyncVersionsClient # noqa: E402 - - self._versions = AsyncVersionsClient(client_wrapper=self._client_wrapper) - return self._versions diff --git a/src/auth0/management/actions/modules/raw_client.py b/src/auth0/management/actions/modules/raw_client.py deleted file mode 100644 index 19e32303..00000000 --- a/src/auth0/management/actions/modules/raw_client.py +++ /dev/null @@ -1,1693 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ...core.api_error import ApiError -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.http_response import AsyncHttpResponse, HttpResponse -from ...core.jsonable_encoder import quote_path_param -from ...core.pagination import AsyncPager, SyncPager -from ...core.parse_error import ParsingError -from ...core.pydantic_utilities import parse_obj_as -from ...core.request_options import RequestOptions -from ...core.serialization import convert_and_respect_annotation_metadata -from ...errors.bad_request_error import BadRequestError -from ...errors.conflict_error import ConflictError -from ...errors.forbidden_error import ForbiddenError -from ...errors.not_found_error import NotFoundError -from ...errors.precondition_failed_error import PreconditionFailedError -from ...errors.too_many_requests_error import TooManyRequestsError -from ...errors.unauthorized_error import UnauthorizedError -from ...types.action_module_action import ActionModuleAction -from ...types.action_module_dependency_request import ActionModuleDependencyRequest -from ...types.action_module_list_item import ActionModuleListItem -from ...types.action_module_secret_request import ActionModuleSecretRequest -from ...types.create_action_module_response_content import CreateActionModuleResponseContent -from ...types.get_action_module_actions_response_content import GetActionModuleActionsResponseContent -from ...types.get_action_module_response_content import GetActionModuleResponseContent -from ...types.get_action_modules_response_content import GetActionModulesResponseContent -from ...types.rollback_action_module_response_content import RollbackActionModuleResponseContent -from ...types.update_action_module_response_content import UpdateActionModuleResponseContent -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawModulesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[ActionModuleListItem, GetActionModulesResponseContent]: - """ - Retrieve a paginated list of all Actions Modules with optional filtering and totals. - - Parameters - ---------- - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. Paging is disabled if parameter not sent. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[ActionModuleListItem, GetActionModulesResponseContent] - The action modules were retrieved. - """ - page = page if page is not None else 0 - - _response = self._client_wrapper.httpx_client.request( - "actions/modules", - method="GET", - params={ - "page": page, - "per_page": per_page, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - GetActionModulesResponseContent, - parse_obj_as( - type_=GetActionModulesResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.modules - _has_next = len(_items or []) > 0 - _get_next = lambda: self.list( - page=page + 1, - per_page=per_page, - request_options=request_options, - ) - return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - *, - name: str, - code: str, - secrets: typing.Optional[typing.Sequence[ActionModuleSecretRequest]] = OMIT, - dependencies: typing.Optional[typing.Sequence[ActionModuleDependencyRequest]] = OMIT, - api_version: typing.Optional[str] = OMIT, - publish: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[CreateActionModuleResponseContent]: - """ - Create a new Actions Module for reusable code across actions. - - Parameters - ---------- - name : str - The name of the action module. - - code : str - The source code of the action module. - - secrets : typing.Optional[typing.Sequence[ActionModuleSecretRequest]] - The secrets to associate with the action module. - - dependencies : typing.Optional[typing.Sequence[ActionModuleDependencyRequest]] - The npm dependencies of the action module. - - api_version : typing.Optional[str] - The API version of the module. - - publish : typing.Optional[bool] - Whether to publish the module immediately after creation. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CreateActionModuleResponseContent] - The action module was created. - """ - _response = self._client_wrapper.httpx_client.request( - "actions/modules", - method="POST", - json={ - "name": name, - "code": code, - "secrets": convert_and_respect_annotation_metadata( - object_=secrets, annotation=typing.Sequence[ActionModuleSecretRequest], direction="write" - ), - "dependencies": convert_and_respect_annotation_metadata( - object_=dependencies, annotation=typing.Sequence[ActionModuleDependencyRequest], direction="write" - ), - "api_version": api_version, - "publish": publish, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateActionModuleResponseContent, - parse_obj_as( - type_=CreateActionModuleResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetActionModuleResponseContent]: - """ - Retrieve details of a specific Actions Module by its unique identifier. - - Parameters - ---------- - id : str - The ID of the action module to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetActionModuleResponseContent] - The action module was retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - f"actions/modules/{quote_path_param(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetActionModuleResponseContent, - parse_obj_as( - type_=GetActionModuleResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[None]: - """ - Permanently delete an Actions Module. This will fail if the module is still in use by any actions. - - Parameters - ---------- - id : str - The ID of the Actions Module to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"actions/modules/{quote_path_param(id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 412: - raise PreconditionFailedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def update( - self, - id: str, - *, - code: typing.Optional[str] = OMIT, - secrets: typing.Optional[typing.Sequence[ActionModuleSecretRequest]] = OMIT, - dependencies: typing.Optional[typing.Sequence[ActionModuleDependencyRequest]] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[UpdateActionModuleResponseContent]: - """ - Update properties of an existing Actions Module, such as code, dependencies, or secrets. - - Parameters - ---------- - id : str - The ID of the action module to update. - - code : typing.Optional[str] - The source code of the action module. - - secrets : typing.Optional[typing.Sequence[ActionModuleSecretRequest]] - The secrets to associate with the action module. - - dependencies : typing.Optional[typing.Sequence[ActionModuleDependencyRequest]] - The npm dependencies of the action module. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[UpdateActionModuleResponseContent] - The action module was updated. - """ - _response = self._client_wrapper.httpx_client.request( - f"actions/modules/{quote_path_param(id)}", - method="PATCH", - json={ - "code": code, - "secrets": convert_and_respect_annotation_metadata( - object_=secrets, annotation=typing.Sequence[ActionModuleSecretRequest], direction="write" - ), - "dependencies": convert_and_respect_annotation_metadata( - object_=dependencies, annotation=typing.Sequence[ActionModuleDependencyRequest], direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateActionModuleResponseContent, - parse_obj_as( - type_=UpdateActionModuleResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def list_actions( - self, - id: str, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[ActionModuleAction, GetActionModuleActionsResponseContent]: - """ - Lists all actions that are using a specific Actions Module, showing which deployed action versions reference this Actions Module. - - Parameters - ---------- - id : str - The unique ID of the module. - - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[ActionModuleAction, GetActionModuleActionsResponseContent] - The actions were retrieved. - """ - page = page if page is not None else 0 - - _response = self._client_wrapper.httpx_client.request( - f"actions/modules/{quote_path_param(id)}/actions", - method="GET", - params={ - "page": page, - "per_page": per_page, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - GetActionModuleActionsResponseContent, - parse_obj_as( - type_=GetActionModuleActionsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.actions - _has_next = len(_items or []) > 0 - _get_next = lambda: self.list_actions( - id, - page=page + 1, - per_page=per_page, - request_options=request_options, - ) - return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def rollback( - self, id: str, *, module_version_id: str, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[RollbackActionModuleResponseContent]: - """ - Rolls back an Actions Module's draft to a previously created version. This action copies the code, dependencies, and secrets from the specified version into the current draft. - - Parameters - ---------- - id : str - The unique ID of the module to roll back. - - module_version_id : str - The unique ID of the module version to roll back to. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[RollbackActionModuleResponseContent] - The rollback was successful. - """ - _response = self._client_wrapper.httpx_client.request( - f"actions/modules/{quote_path_param(id)}/rollback", - method="POST", - json={ - "module_version_id": module_version_id, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - RollbackActionModuleResponseContent, - parse_obj_as( - type_=RollbackActionModuleResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawModulesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[ActionModuleListItem, GetActionModulesResponseContent]: - """ - Retrieve a paginated list of all Actions Modules with optional filtering and totals. - - Parameters - ---------- - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. Paging is disabled if parameter not sent. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[ActionModuleListItem, GetActionModulesResponseContent] - The action modules were retrieved. - """ - page = page if page is not None else 0 - - _response = await self._client_wrapper.httpx_client.request( - "actions/modules", - method="GET", - params={ - "page": page, - "per_page": per_page, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - GetActionModulesResponseContent, - parse_obj_as( - type_=GetActionModulesResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.modules - _has_next = len(_items or []) > 0 - - async def _get_next(): - return await self.list( - page=page + 1, - per_page=per_page, - request_options=request_options, - ) - - return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - *, - name: str, - code: str, - secrets: typing.Optional[typing.Sequence[ActionModuleSecretRequest]] = OMIT, - dependencies: typing.Optional[typing.Sequence[ActionModuleDependencyRequest]] = OMIT, - api_version: typing.Optional[str] = OMIT, - publish: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[CreateActionModuleResponseContent]: - """ - Create a new Actions Module for reusable code across actions. - - Parameters - ---------- - name : str - The name of the action module. - - code : str - The source code of the action module. - - secrets : typing.Optional[typing.Sequence[ActionModuleSecretRequest]] - The secrets to associate with the action module. - - dependencies : typing.Optional[typing.Sequence[ActionModuleDependencyRequest]] - The npm dependencies of the action module. - - api_version : typing.Optional[str] - The API version of the module. - - publish : typing.Optional[bool] - Whether to publish the module immediately after creation. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CreateActionModuleResponseContent] - The action module was created. - """ - _response = await self._client_wrapper.httpx_client.request( - "actions/modules", - method="POST", - json={ - "name": name, - "code": code, - "secrets": convert_and_respect_annotation_metadata( - object_=secrets, annotation=typing.Sequence[ActionModuleSecretRequest], direction="write" - ), - "dependencies": convert_and_respect_annotation_metadata( - object_=dependencies, annotation=typing.Sequence[ActionModuleDependencyRequest], direction="write" - ), - "api_version": api_version, - "publish": publish, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateActionModuleResponseContent, - parse_obj_as( - type_=CreateActionModuleResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetActionModuleResponseContent]: - """ - Retrieve details of a specific Actions Module by its unique identifier. - - Parameters - ---------- - id : str - The ID of the action module to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetActionModuleResponseContent] - The action module was retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - f"actions/modules/{quote_path_param(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetActionModuleResponseContent, - parse_obj_as( - type_=GetActionModuleResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def delete( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Permanently delete an Actions Module. This will fail if the module is still in use by any actions. - - Parameters - ---------- - id : str - The ID of the Actions Module to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"actions/modules/{quote_path_param(id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 412: - raise PreconditionFailedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def update( - self, - id: str, - *, - code: typing.Optional[str] = OMIT, - secrets: typing.Optional[typing.Sequence[ActionModuleSecretRequest]] = OMIT, - dependencies: typing.Optional[typing.Sequence[ActionModuleDependencyRequest]] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[UpdateActionModuleResponseContent]: - """ - Update properties of an existing Actions Module, such as code, dependencies, or secrets. - - Parameters - ---------- - id : str - The ID of the action module to update. - - code : typing.Optional[str] - The source code of the action module. - - secrets : typing.Optional[typing.Sequence[ActionModuleSecretRequest]] - The secrets to associate with the action module. - - dependencies : typing.Optional[typing.Sequence[ActionModuleDependencyRequest]] - The npm dependencies of the action module. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[UpdateActionModuleResponseContent] - The action module was updated. - """ - _response = await self._client_wrapper.httpx_client.request( - f"actions/modules/{quote_path_param(id)}", - method="PATCH", - json={ - "code": code, - "secrets": convert_and_respect_annotation_metadata( - object_=secrets, annotation=typing.Sequence[ActionModuleSecretRequest], direction="write" - ), - "dependencies": convert_and_respect_annotation_metadata( - object_=dependencies, annotation=typing.Sequence[ActionModuleDependencyRequest], direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateActionModuleResponseContent, - parse_obj_as( - type_=UpdateActionModuleResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def list_actions( - self, - id: str, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[ActionModuleAction, GetActionModuleActionsResponseContent]: - """ - Lists all actions that are using a specific Actions Module, showing which deployed action versions reference this Actions Module. - - Parameters - ---------- - id : str - The unique ID of the module. - - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[ActionModuleAction, GetActionModuleActionsResponseContent] - The actions were retrieved. - """ - page = page if page is not None else 0 - - _response = await self._client_wrapper.httpx_client.request( - f"actions/modules/{quote_path_param(id)}/actions", - method="GET", - params={ - "page": page, - "per_page": per_page, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - GetActionModuleActionsResponseContent, - parse_obj_as( - type_=GetActionModuleActionsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.actions - _has_next = len(_items or []) > 0 - - async def _get_next(): - return await self.list_actions( - id, - page=page + 1, - per_page=per_page, - request_options=request_options, - ) - - return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def rollback( - self, id: str, *, module_version_id: str, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[RollbackActionModuleResponseContent]: - """ - Rolls back an Actions Module's draft to a previously created version. This action copies the code, dependencies, and secrets from the specified version into the current draft. - - Parameters - ---------- - id : str - The unique ID of the module to roll back. - - module_version_id : str - The unique ID of the module version to roll back to. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[RollbackActionModuleResponseContent] - The rollback was successful. - """ - _response = await self._client_wrapper.httpx_client.request( - f"actions/modules/{quote_path_param(id)}/rollback", - method="POST", - json={ - "module_version_id": module_version_id, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - RollbackActionModuleResponseContent, - parse_obj_as( - type_=RollbackActionModuleResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/actions/modules/versions/__init__.py b/src/auth0/management/actions/modules/versions/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/actions/modules/versions/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/actions/modules/versions/client.py b/src/auth0/management/actions/modules/versions/client.py deleted file mode 100644 index a6baf2e8..00000000 --- a/src/auth0/management/actions/modules/versions/client.py +++ /dev/null @@ -1,309 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ....core.pagination import AsyncPager, SyncPager -from ....core.request_options import RequestOptions -from ....types.action_module_version import ActionModuleVersion -from ....types.create_action_module_version_response_content import CreateActionModuleVersionResponseContent -from ....types.get_action_module_version_response_content import GetActionModuleVersionResponseContent -from ....types.get_action_module_versions_response_content import GetActionModuleVersionsResponseContent -from .raw_client import AsyncRawVersionsClient, RawVersionsClient - - -class VersionsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawVersionsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawVersionsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawVersionsClient - """ - return self._raw_client - - def list( - self, - id: str, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[ActionModuleVersion, GetActionModuleVersionsResponseContent]: - """ - List all published versions of a specific Actions Module. - - Parameters - ---------- - id : str - The unique ID of the module. - - page : typing.Optional[int] - Use this field to request a specific page of the list results. - - per_page : typing.Optional[int] - The maximum number of results to be returned by the server in a single response. 20 by default. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[ActionModuleVersion, GetActionModuleVersionsResponseContent] - The module versions were retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.actions.modules.versions.list( - id="id", - page=1, - per_page=1, - ) - for item in response: - yield item - # alternatively, you can paginate page-by-page - for page in response.iter_pages(): - yield page - """ - return self._raw_client.list(id, page=page, per_page=per_page, request_options=request_options) - - def create( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> CreateActionModuleVersionResponseContent: - """ - Creates a new immutable version of an Actions Module from the current draft version. This publishes the draft as a new version that can be referenced by actions, while maintaining the existing draft for continued development. - - Parameters - ---------- - id : str - The ID of the action module to create a version for. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateActionModuleVersionResponseContent - The action module version was created. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.actions.modules.versions.create( - id="id", - ) - """ - _response = self._raw_client.create(id, request_options=request_options) - return _response.data - - def get( - self, id: str, version_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetActionModuleVersionResponseContent: - """ - Retrieve the details of a specific, immutable version of an Actions Module. - - Parameters - ---------- - id : str - The unique ID of the module. - - version_id : str - The unique ID of the module version to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetActionModuleVersionResponseContent - The module version was retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.actions.modules.versions.get( - id="id", - version_id="versionId", - ) - """ - _response = self._raw_client.get(id, version_id, request_options=request_options) - return _response.data - - -class AsyncVersionsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawVersionsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawVersionsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawVersionsClient - """ - return self._raw_client - - async def list( - self, - id: str, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[ActionModuleVersion, GetActionModuleVersionsResponseContent]: - """ - List all published versions of a specific Actions Module. - - Parameters - ---------- - id : str - The unique ID of the module. - - page : typing.Optional[int] - Use this field to request a specific page of the list results. - - per_page : typing.Optional[int] - The maximum number of results to be returned by the server in a single response. 20 by default. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[ActionModuleVersion, GetActionModuleVersionsResponseContent] - The module versions were retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.actions.modules.versions.list( - id="id", - page=1, - per_page=1, - ) - async for item in response: - yield item - - # alternatively, you can paginate page-by-page - async for page in response.iter_pages(): - yield page - - - asyncio.run(main()) - """ - return await self._raw_client.list(id, page=page, per_page=per_page, request_options=request_options) - - async def create( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> CreateActionModuleVersionResponseContent: - """ - Creates a new immutable version of an Actions Module from the current draft version. This publishes the draft as a new version that can be referenced by actions, while maintaining the existing draft for continued development. - - Parameters - ---------- - id : str - The ID of the action module to create a version for. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateActionModuleVersionResponseContent - The action module version was created. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.actions.modules.versions.create( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create(id, request_options=request_options) - return _response.data - - async def get( - self, id: str, version_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetActionModuleVersionResponseContent: - """ - Retrieve the details of a specific, immutable version of an Actions Module. - - Parameters - ---------- - id : str - The unique ID of the module. - - version_id : str - The unique ID of the module version to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetActionModuleVersionResponseContent - The module version was retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.actions.modules.versions.get( - id="id", - version_id="versionId", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.get(id, version_id, request_options=request_options) - return _response.data diff --git a/src/auth0/management/actions/modules/versions/raw_client.py b/src/auth0/management/actions/modules/versions/raw_client.py deleted file mode 100644 index 824f8aa3..00000000 --- a/src/auth0/management/actions/modules/versions/raw_client.py +++ /dev/null @@ -1,704 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ....core.api_error import ApiError -from ....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ....core.http_response import AsyncHttpResponse, HttpResponse -from ....core.jsonable_encoder import quote_path_param -from ....core.pagination import AsyncPager, SyncPager -from ....core.parse_error import ParsingError -from ....core.pydantic_utilities import parse_obj_as -from ....core.request_options import RequestOptions -from ....errors.bad_request_error import BadRequestError -from ....errors.conflict_error import ConflictError -from ....errors.forbidden_error import ForbiddenError -from ....errors.not_found_error import NotFoundError -from ....errors.precondition_failed_error import PreconditionFailedError -from ....errors.too_many_requests_error import TooManyRequestsError -from ....errors.unauthorized_error import UnauthorizedError -from ....types.action_module_version import ActionModuleVersion -from ....types.create_action_module_version_response_content import CreateActionModuleVersionResponseContent -from ....types.get_action_module_version_response_content import GetActionModuleVersionResponseContent -from ....types.get_action_module_versions_response_content import GetActionModuleVersionsResponseContent -from pydantic import ValidationError - - -class RawVersionsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - id: str, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[ActionModuleVersion, GetActionModuleVersionsResponseContent]: - """ - List all published versions of a specific Actions Module. - - Parameters - ---------- - id : str - The unique ID of the module. - - page : typing.Optional[int] - Use this field to request a specific page of the list results. - - per_page : typing.Optional[int] - The maximum number of results to be returned by the server in a single response. 20 by default. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[ActionModuleVersion, GetActionModuleVersionsResponseContent] - The module versions were retrieved. - """ - page = page if page is not None else 0 - - _response = self._client_wrapper.httpx_client.request( - f"actions/modules/{quote_path_param(id)}/versions", - method="GET", - params={ - "page": page, - "per_page": per_page, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - GetActionModuleVersionsResponseContent, - parse_obj_as( - type_=GetActionModuleVersionsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.versions - _has_next = len(_items or []) > 0 - _get_next = lambda: self.list( - id, - page=page + 1, - per_page=per_page, - request_options=request_options, - ) - return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[CreateActionModuleVersionResponseContent]: - """ - Creates a new immutable version of an Actions Module from the current draft version. This publishes the draft as a new version that can be referenced by actions, while maintaining the existing draft for continued development. - - Parameters - ---------- - id : str - The ID of the action module to create a version for. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CreateActionModuleVersionResponseContent] - The action module version was created. - """ - _response = self._client_wrapper.httpx_client.request( - f"actions/modules/{quote_path_param(id)}/versions", - method="POST", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateActionModuleVersionResponseContent, - parse_obj_as( - type_=CreateActionModuleVersionResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 412: - raise PreconditionFailedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def get( - self, id: str, version_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetActionModuleVersionResponseContent]: - """ - Retrieve the details of a specific, immutable version of an Actions Module. - - Parameters - ---------- - id : str - The unique ID of the module. - - version_id : str - The unique ID of the module version to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetActionModuleVersionResponseContent] - The module version was retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - f"actions/modules/{quote_path_param(id)}/versions/{quote_path_param(version_id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetActionModuleVersionResponseContent, - parse_obj_as( - type_=GetActionModuleVersionResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawVersionsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - id: str, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[ActionModuleVersion, GetActionModuleVersionsResponseContent]: - """ - List all published versions of a specific Actions Module. - - Parameters - ---------- - id : str - The unique ID of the module. - - page : typing.Optional[int] - Use this field to request a specific page of the list results. - - per_page : typing.Optional[int] - The maximum number of results to be returned by the server in a single response. 20 by default. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[ActionModuleVersion, GetActionModuleVersionsResponseContent] - The module versions were retrieved. - """ - page = page if page is not None else 0 - - _response = await self._client_wrapper.httpx_client.request( - f"actions/modules/{quote_path_param(id)}/versions", - method="GET", - params={ - "page": page, - "per_page": per_page, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - GetActionModuleVersionsResponseContent, - parse_obj_as( - type_=GetActionModuleVersionsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.versions - _has_next = len(_items or []) > 0 - - async def _get_next(): - return await self.list( - id, - page=page + 1, - per_page=per_page, - request_options=request_options, - ) - - return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[CreateActionModuleVersionResponseContent]: - """ - Creates a new immutable version of an Actions Module from the current draft version. This publishes the draft as a new version that can be referenced by actions, while maintaining the existing draft for continued development. - - Parameters - ---------- - id : str - The ID of the action module to create a version for. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CreateActionModuleVersionResponseContent] - The action module version was created. - """ - _response = await self._client_wrapper.httpx_client.request( - f"actions/modules/{quote_path_param(id)}/versions", - method="POST", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateActionModuleVersionResponseContent, - parse_obj_as( - type_=CreateActionModuleVersionResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 412: - raise PreconditionFailedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def get( - self, id: str, version_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetActionModuleVersionResponseContent]: - """ - Retrieve the details of a specific, immutable version of an Actions Module. - - Parameters - ---------- - id : str - The unique ID of the module. - - version_id : str - The unique ID of the module version to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetActionModuleVersionResponseContent] - The module version was retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - f"actions/modules/{quote_path_param(id)}/versions/{quote_path_param(version_id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetActionModuleVersionResponseContent, - parse_obj_as( - type_=GetActionModuleVersionResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/actions/raw_client.py b/src/auth0/management/actions/raw_client.py deleted file mode 100644 index 0264259d..00000000 --- a/src/auth0/management/actions/raw_client.py +++ /dev/null @@ -1,1645 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ..core.api_error import ApiError -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.http_response import AsyncHttpResponse, HttpResponse -from ..core.jsonable_encoder import quote_path_param -from ..core.pagination import AsyncPager, SyncPager -from ..core.parse_error import ParsingError -from ..core.pydantic_utilities import parse_obj_as -from ..core.request_options import RequestOptions -from ..core.serialization import convert_and_respect_annotation_metadata -from ..errors.bad_request_error import BadRequestError -from ..errors.forbidden_error import ForbiddenError -from ..errors.not_found_error import NotFoundError -from ..errors.too_many_requests_error import TooManyRequestsError -from ..errors.unauthorized_error import UnauthorizedError -from ..types.action import Action -from ..types.action_module_reference import ActionModuleReference -from ..types.action_secret_request import ActionSecretRequest -from ..types.action_trigger import ActionTrigger -from ..types.action_trigger_type_enum import ActionTriggerTypeEnum -from ..types.action_version_dependency import ActionVersionDependency -from ..types.create_action_response_content import CreateActionResponseContent -from ..types.deploy_action_response_content import DeployActionResponseContent -from ..types.get_action_response_content import GetActionResponseContent -from ..types.list_actions_paginated_response_content import ListActionsPaginatedResponseContent -from ..types.test_action_payload import TestActionPayload -from ..types.test_action_response_content import TestActionResponseContent -from ..types.update_action_response_content import UpdateActionResponseContent -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawActionsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - trigger_id: typing.Optional[ActionTriggerTypeEnum] = None, - action_name: typing.Optional[str] = None, - deployed: typing.Optional[bool] = None, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - installed: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[Action, ListActionsPaginatedResponseContent]: - """ - Retrieve all actions. - - Parameters - ---------- - trigger_id : typing.Optional[ActionTriggerTypeEnum] - An actions extensibility point. - - action_name : typing.Optional[str] - The name of the action to retrieve. - - deployed : typing.Optional[bool] - Optional filter to only retrieve actions that are deployed. - - page : typing.Optional[int] - Use this field to request a specific page of the list results. - - per_page : typing.Optional[int] - The maximum number of results to be returned by the server in single response. 20 by default - - installed : typing.Optional[bool] - Optional. When true, return only installed actions. When false, return only custom actions. Returns all actions by default. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[Action, ListActionsPaginatedResponseContent] - The actions were retrieved. - """ - page = page if page is not None else 0 - - _response = self._client_wrapper.httpx_client.request( - "actions/actions", - method="GET", - params={ - "triggerId": trigger_id, - "actionName": action_name, - "deployed": deployed, - "page": page, - "per_page": per_page, - "installed": installed, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListActionsPaginatedResponseContent, - parse_obj_as( - type_=ListActionsPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.actions - _has_next = len(_items or []) > 0 - _get_next = lambda: self.list( - trigger_id=trigger_id, - action_name=action_name, - deployed=deployed, - page=page + 1, - per_page=per_page, - installed=installed, - request_options=request_options, - ) - return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - *, - name: str, - supported_triggers: typing.Sequence[ActionTrigger], - code: typing.Optional[str] = OMIT, - dependencies: typing.Optional[typing.Sequence[ActionVersionDependency]] = OMIT, - runtime: typing.Optional[str] = OMIT, - secrets: typing.Optional[typing.Sequence[ActionSecretRequest]] = OMIT, - modules: typing.Optional[typing.Sequence[ActionModuleReference]] = OMIT, - deploy: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[CreateActionResponseContent]: - """ - Create an action. Once an action is created, it must be deployed, and then bound to a trigger before it will be executed as part of a flow. - - Parameters - ---------- - name : str - The name of an action. - - supported_triggers : typing.Sequence[ActionTrigger] - The list of triggers that this action supports. At this time, an action can only target a single trigger at a time. - - code : typing.Optional[str] - The source code of the action. - - dependencies : typing.Optional[typing.Sequence[ActionVersionDependency]] - The list of third party npm modules, and their versions, that this action depends on. - - runtime : typing.Optional[str] - The Node runtime. For example: `node22`, defaults to `node22` - - secrets : typing.Optional[typing.Sequence[ActionSecretRequest]] - The list of secrets that are included in an action or a version of an action. - - modules : typing.Optional[typing.Sequence[ActionModuleReference]] - The list of action modules and their versions used by this action. - - deploy : typing.Optional[bool] - True if the action should be deployed after creation. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CreateActionResponseContent] - Action successfully created. - """ - _response = self._client_wrapper.httpx_client.request( - "actions/actions", - method="POST", - json={ - "name": name, - "supported_triggers": convert_and_respect_annotation_metadata( - object_=supported_triggers, annotation=typing.Sequence[ActionTrigger], direction="write" - ), - "code": code, - "dependencies": convert_and_respect_annotation_metadata( - object_=dependencies, annotation=typing.Sequence[ActionVersionDependency], direction="write" - ), - "runtime": runtime, - "secrets": convert_and_respect_annotation_metadata( - object_=secrets, annotation=typing.Sequence[ActionSecretRequest], direction="write" - ), - "modules": convert_and_respect_annotation_metadata( - object_=modules, annotation=typing.Sequence[ActionModuleReference], direction="write" - ), - "deploy": deploy, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateActionResponseContent, - parse_obj_as( - type_=CreateActionResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetActionResponseContent]: - """ - Retrieve an action by its ID. - - Parameters - ---------- - id : str - The ID of the action to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetActionResponseContent] - The action was retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - f"actions/actions/{quote_path_param(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetActionResponseContent, - parse_obj_as( - type_=GetActionResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def delete( - self, id: str, *, force: typing.Optional[bool] = None, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[None]: - """ - Deletes an action and all of its associated versions. An action must be unbound from all triggers before it can be deleted. - - Parameters - ---------- - id : str - The ID of the action to delete. - - force : typing.Optional[bool] - Force action deletion detaching bindings - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"actions/actions/{quote_path_param(id)}", - method="DELETE", - params={ - "force": force, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def update( - self, - id: str, - *, - name: typing.Optional[str] = OMIT, - supported_triggers: typing.Optional[typing.Sequence[ActionTrigger]] = OMIT, - code: typing.Optional[str] = OMIT, - dependencies: typing.Optional[typing.Sequence[ActionVersionDependency]] = OMIT, - runtime: typing.Optional[str] = OMIT, - secrets: typing.Optional[typing.Sequence[ActionSecretRequest]] = OMIT, - modules: typing.Optional[typing.Sequence[ActionModuleReference]] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[UpdateActionResponseContent]: - """ - Update an existing action. If this action is currently bound to a trigger, updating it will **not** affect any user flows until the action is deployed. - - Parameters - ---------- - id : str - The id of the action to update. - - name : typing.Optional[str] - The name of an action. - - supported_triggers : typing.Optional[typing.Sequence[ActionTrigger]] - The list of triggers that this action supports. At this time, an action can only target a single trigger at a time. - - code : typing.Optional[str] - The source code of the action. - - dependencies : typing.Optional[typing.Sequence[ActionVersionDependency]] - The list of third party npm modules, and their versions, that this action depends on. - - runtime : typing.Optional[str] - The Node runtime. For example: `node22`, defaults to `node22` - - secrets : typing.Optional[typing.Sequence[ActionSecretRequest]] - The list of secrets that are included in an action or a version of an action. - - modules : typing.Optional[typing.Sequence[ActionModuleReference]] - The list of action modules and their versions used by this action. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[UpdateActionResponseContent] - Action successfully updated. - """ - _response = self._client_wrapper.httpx_client.request( - f"actions/actions/{quote_path_param(id)}", - method="PATCH", - json={ - "name": name, - "supported_triggers": convert_and_respect_annotation_metadata( - object_=supported_triggers, annotation=typing.Sequence[ActionTrigger], direction="write" - ), - "code": code, - "dependencies": convert_and_respect_annotation_metadata( - object_=dependencies, annotation=typing.Sequence[ActionVersionDependency], direction="write" - ), - "runtime": runtime, - "secrets": convert_and_respect_annotation_metadata( - object_=secrets, annotation=typing.Sequence[ActionSecretRequest], direction="write" - ), - "modules": convert_and_respect_annotation_metadata( - object_=modules, annotation=typing.Sequence[ActionModuleReference], direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateActionResponseContent, - parse_obj_as( - type_=UpdateActionResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def deploy( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[DeployActionResponseContent]: - """ - Deploy an action. Deploying an action will create a new immutable version of the action. If the action is currently bound to a trigger, then the system will begin executing the newly deployed version of the action immediately. Otherwise, the action will only be executed as a part of a flow once it is bound to that flow. - - Parameters - ---------- - id : str - The ID of an action. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[DeployActionResponseContent] - Request to create action version was accepted. - """ - _response = self._client_wrapper.httpx_client.request( - f"actions/actions/{quote_path_param(id)}/deploy", - method="POST", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - DeployActionResponseContent, - parse_obj_as( - type_=DeployActionResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def test( - self, id: str, *, payload: TestActionPayload, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[TestActionResponseContent]: - """ - Test an action. After updating an action, it can be tested prior to being deployed to ensure it behaves as expected. - - Parameters - ---------- - id : str - The id of the action to test. - - payload : TestActionPayload - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[TestActionResponseContent] - Test action version successfully created. - """ - _response = self._client_wrapper.httpx_client.request( - f"actions/actions/{quote_path_param(id)}/test", - method="POST", - json={ - "payload": payload, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - TestActionResponseContent, - parse_obj_as( - type_=TestActionResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawActionsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - trigger_id: typing.Optional[ActionTriggerTypeEnum] = None, - action_name: typing.Optional[str] = None, - deployed: typing.Optional[bool] = None, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - installed: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[Action, ListActionsPaginatedResponseContent]: - """ - Retrieve all actions. - - Parameters - ---------- - trigger_id : typing.Optional[ActionTriggerTypeEnum] - An actions extensibility point. - - action_name : typing.Optional[str] - The name of the action to retrieve. - - deployed : typing.Optional[bool] - Optional filter to only retrieve actions that are deployed. - - page : typing.Optional[int] - Use this field to request a specific page of the list results. - - per_page : typing.Optional[int] - The maximum number of results to be returned by the server in single response. 20 by default - - installed : typing.Optional[bool] - Optional. When true, return only installed actions. When false, return only custom actions. Returns all actions by default. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[Action, ListActionsPaginatedResponseContent] - The actions were retrieved. - """ - page = page if page is not None else 0 - - _response = await self._client_wrapper.httpx_client.request( - "actions/actions", - method="GET", - params={ - "triggerId": trigger_id, - "actionName": action_name, - "deployed": deployed, - "page": page, - "per_page": per_page, - "installed": installed, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListActionsPaginatedResponseContent, - parse_obj_as( - type_=ListActionsPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.actions - _has_next = len(_items or []) > 0 - - async def _get_next(): - return await self.list( - trigger_id=trigger_id, - action_name=action_name, - deployed=deployed, - page=page + 1, - per_page=per_page, - installed=installed, - request_options=request_options, - ) - - return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - *, - name: str, - supported_triggers: typing.Sequence[ActionTrigger], - code: typing.Optional[str] = OMIT, - dependencies: typing.Optional[typing.Sequence[ActionVersionDependency]] = OMIT, - runtime: typing.Optional[str] = OMIT, - secrets: typing.Optional[typing.Sequence[ActionSecretRequest]] = OMIT, - modules: typing.Optional[typing.Sequence[ActionModuleReference]] = OMIT, - deploy: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[CreateActionResponseContent]: - """ - Create an action. Once an action is created, it must be deployed, and then bound to a trigger before it will be executed as part of a flow. - - Parameters - ---------- - name : str - The name of an action. - - supported_triggers : typing.Sequence[ActionTrigger] - The list of triggers that this action supports. At this time, an action can only target a single trigger at a time. - - code : typing.Optional[str] - The source code of the action. - - dependencies : typing.Optional[typing.Sequence[ActionVersionDependency]] - The list of third party npm modules, and their versions, that this action depends on. - - runtime : typing.Optional[str] - The Node runtime. For example: `node22`, defaults to `node22` - - secrets : typing.Optional[typing.Sequence[ActionSecretRequest]] - The list of secrets that are included in an action or a version of an action. - - modules : typing.Optional[typing.Sequence[ActionModuleReference]] - The list of action modules and their versions used by this action. - - deploy : typing.Optional[bool] - True if the action should be deployed after creation. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CreateActionResponseContent] - Action successfully created. - """ - _response = await self._client_wrapper.httpx_client.request( - "actions/actions", - method="POST", - json={ - "name": name, - "supported_triggers": convert_and_respect_annotation_metadata( - object_=supported_triggers, annotation=typing.Sequence[ActionTrigger], direction="write" - ), - "code": code, - "dependencies": convert_and_respect_annotation_metadata( - object_=dependencies, annotation=typing.Sequence[ActionVersionDependency], direction="write" - ), - "runtime": runtime, - "secrets": convert_and_respect_annotation_metadata( - object_=secrets, annotation=typing.Sequence[ActionSecretRequest], direction="write" - ), - "modules": convert_and_respect_annotation_metadata( - object_=modules, annotation=typing.Sequence[ActionModuleReference], direction="write" - ), - "deploy": deploy, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateActionResponseContent, - parse_obj_as( - type_=CreateActionResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetActionResponseContent]: - """ - Retrieve an action by its ID. - - Parameters - ---------- - id : str - The ID of the action to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetActionResponseContent] - The action was retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - f"actions/actions/{quote_path_param(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetActionResponseContent, - parse_obj_as( - type_=GetActionResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def delete( - self, id: str, *, force: typing.Optional[bool] = None, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Deletes an action and all of its associated versions. An action must be unbound from all triggers before it can be deleted. - - Parameters - ---------- - id : str - The ID of the action to delete. - - force : typing.Optional[bool] - Force action deletion detaching bindings - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"actions/actions/{quote_path_param(id)}", - method="DELETE", - params={ - "force": force, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def update( - self, - id: str, - *, - name: typing.Optional[str] = OMIT, - supported_triggers: typing.Optional[typing.Sequence[ActionTrigger]] = OMIT, - code: typing.Optional[str] = OMIT, - dependencies: typing.Optional[typing.Sequence[ActionVersionDependency]] = OMIT, - runtime: typing.Optional[str] = OMIT, - secrets: typing.Optional[typing.Sequence[ActionSecretRequest]] = OMIT, - modules: typing.Optional[typing.Sequence[ActionModuleReference]] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[UpdateActionResponseContent]: - """ - Update an existing action. If this action is currently bound to a trigger, updating it will **not** affect any user flows until the action is deployed. - - Parameters - ---------- - id : str - The id of the action to update. - - name : typing.Optional[str] - The name of an action. - - supported_triggers : typing.Optional[typing.Sequence[ActionTrigger]] - The list of triggers that this action supports. At this time, an action can only target a single trigger at a time. - - code : typing.Optional[str] - The source code of the action. - - dependencies : typing.Optional[typing.Sequence[ActionVersionDependency]] - The list of third party npm modules, and their versions, that this action depends on. - - runtime : typing.Optional[str] - The Node runtime. For example: `node22`, defaults to `node22` - - secrets : typing.Optional[typing.Sequence[ActionSecretRequest]] - The list of secrets that are included in an action or a version of an action. - - modules : typing.Optional[typing.Sequence[ActionModuleReference]] - The list of action modules and their versions used by this action. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[UpdateActionResponseContent] - Action successfully updated. - """ - _response = await self._client_wrapper.httpx_client.request( - f"actions/actions/{quote_path_param(id)}", - method="PATCH", - json={ - "name": name, - "supported_triggers": convert_and_respect_annotation_metadata( - object_=supported_triggers, annotation=typing.Sequence[ActionTrigger], direction="write" - ), - "code": code, - "dependencies": convert_and_respect_annotation_metadata( - object_=dependencies, annotation=typing.Sequence[ActionVersionDependency], direction="write" - ), - "runtime": runtime, - "secrets": convert_and_respect_annotation_metadata( - object_=secrets, annotation=typing.Sequence[ActionSecretRequest], direction="write" - ), - "modules": convert_and_respect_annotation_metadata( - object_=modules, annotation=typing.Sequence[ActionModuleReference], direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateActionResponseContent, - parse_obj_as( - type_=UpdateActionResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def deploy( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[DeployActionResponseContent]: - """ - Deploy an action. Deploying an action will create a new immutable version of the action. If the action is currently bound to a trigger, then the system will begin executing the newly deployed version of the action immediately. Otherwise, the action will only be executed as a part of a flow once it is bound to that flow. - - Parameters - ---------- - id : str - The ID of an action. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[DeployActionResponseContent] - Request to create action version was accepted. - """ - _response = await self._client_wrapper.httpx_client.request( - f"actions/actions/{quote_path_param(id)}/deploy", - method="POST", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - DeployActionResponseContent, - parse_obj_as( - type_=DeployActionResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def test( - self, id: str, *, payload: TestActionPayload, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[TestActionResponseContent]: - """ - Test an action. After updating an action, it can be tested prior to being deployed to ensure it behaves as expected. - - Parameters - ---------- - id : str - The id of the action to test. - - payload : TestActionPayload - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[TestActionResponseContent] - Test action version successfully created. - """ - _response = await self._client_wrapper.httpx_client.request( - f"actions/actions/{quote_path_param(id)}/test", - method="POST", - json={ - "payload": payload, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - TestActionResponseContent, - parse_obj_as( - type_=TestActionResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/actions/triggers/__init__.py b/src/auth0/management/actions/triggers/__init__.py deleted file mode 100644 index 1b330a7b..00000000 --- a/src/auth0/management/actions/triggers/__init__.py +++ /dev/null @@ -1,34 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from . import bindings -_dynamic_imports: typing.Dict[str, str] = {"bindings": ".bindings"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - if module_name == f".{attr_name}": - return module - else: - return getattr(module, attr_name) - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["bindings"] diff --git a/src/auth0/management/actions/triggers/bindings/__init__.py b/src/auth0/management/actions/triggers/bindings/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/actions/triggers/bindings/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/actions/triggers/bindings/client.py b/src/auth0/management/actions/triggers/bindings/client.py deleted file mode 100644 index 634753ca..00000000 --- a/src/auth0/management/actions/triggers/bindings/client.py +++ /dev/null @@ -1,245 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ....core.pagination import AsyncPager, SyncPager -from ....core.request_options import RequestOptions -from ....types.action_binding import ActionBinding -from ....types.action_binding_with_ref import ActionBindingWithRef -from ....types.action_trigger_type_enum import ActionTriggerTypeEnum -from ....types.list_action_bindings_paginated_response_content import ListActionBindingsPaginatedResponseContent -from ....types.update_action_bindings_response_content import UpdateActionBindingsResponseContent -from .raw_client import AsyncRawBindingsClient, RawBindingsClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class BindingsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawBindingsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawBindingsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawBindingsClient - """ - return self._raw_client - - def list( - self, - trigger_id: ActionTriggerTypeEnum, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[ActionBinding, ListActionBindingsPaginatedResponseContent]: - """ - Retrieve the actions that are bound to a trigger. Once an action is created and deployed, it must be attached (i.e. bound) to a trigger so that it will be executed as part of a flow. The list of actions returned reflects the order in which they will be executed during the appropriate flow. - - Parameters - ---------- - trigger_id : ActionTriggerTypeEnum - An actions extensibility point. - - page : typing.Optional[int] - Use this field to request a specific page of the list results. - - per_page : typing.Optional[int] - The maximum number of results to be returned in a single request. 20 by default - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[ActionBinding, ListActionBindingsPaginatedResponseContent] - The bindings were retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.actions.triggers.bindings.list( - trigger_id="post-login", - page=1, - per_page=1, - ) - for item in response: - yield item - # alternatively, you can paginate page-by-page - for page in response.iter_pages(): - yield page - """ - return self._raw_client.list(trigger_id, page=page, per_page=per_page, request_options=request_options) - - def update_many( - self, - trigger_id: ActionTriggerTypeEnum, - *, - bindings: typing.Optional[typing.Sequence[ActionBindingWithRef]] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateActionBindingsResponseContent: - """ - Update the actions that are bound (i.e. attached) to a trigger. Once an action is created and deployed, it must be attached (i.e. bound) to a trigger so that it will be executed as part of a flow. The order in which the actions are provided will determine the order in which they are executed. - - Parameters - ---------- - trigger_id : ActionTriggerTypeEnum - An actions extensibility point. - - bindings : typing.Optional[typing.Sequence[ActionBindingWithRef]] - The actions that will be bound to this trigger. The order in which they are included will be the order in which they are executed. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateActionBindingsResponseContent - The bindings were updated. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.actions.triggers.bindings.update_many( - trigger_id="post-login", - ) - """ - _response = self._raw_client.update_many(trigger_id, bindings=bindings, request_options=request_options) - return _response.data - - -class AsyncBindingsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawBindingsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawBindingsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawBindingsClient - """ - return self._raw_client - - async def list( - self, - trigger_id: ActionTriggerTypeEnum, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[ActionBinding, ListActionBindingsPaginatedResponseContent]: - """ - Retrieve the actions that are bound to a trigger. Once an action is created and deployed, it must be attached (i.e. bound) to a trigger so that it will be executed as part of a flow. The list of actions returned reflects the order in which they will be executed during the appropriate flow. - - Parameters - ---------- - trigger_id : ActionTriggerTypeEnum - An actions extensibility point. - - page : typing.Optional[int] - Use this field to request a specific page of the list results. - - per_page : typing.Optional[int] - The maximum number of results to be returned in a single request. 20 by default - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[ActionBinding, ListActionBindingsPaginatedResponseContent] - The bindings were retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.actions.triggers.bindings.list( - trigger_id="post-login", - page=1, - per_page=1, - ) - async for item in response: - yield item - - # alternatively, you can paginate page-by-page - async for page in response.iter_pages(): - yield page - - - asyncio.run(main()) - """ - return await self._raw_client.list(trigger_id, page=page, per_page=per_page, request_options=request_options) - - async def update_many( - self, - trigger_id: ActionTriggerTypeEnum, - *, - bindings: typing.Optional[typing.Sequence[ActionBindingWithRef]] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateActionBindingsResponseContent: - """ - Update the actions that are bound (i.e. attached) to a trigger. Once an action is created and deployed, it must be attached (i.e. bound) to a trigger so that it will be executed as part of a flow. The order in which the actions are provided will determine the order in which they are executed. - - Parameters - ---------- - trigger_id : ActionTriggerTypeEnum - An actions extensibility point. - - bindings : typing.Optional[typing.Sequence[ActionBindingWithRef]] - The actions that will be bound to this trigger. The order in which they are included will be the order in which they are executed. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateActionBindingsResponseContent - The bindings were updated. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.actions.triggers.bindings.update_many( - trigger_id="post-login", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.update_many(trigger_id, bindings=bindings, request_options=request_options) - return _response.data diff --git a/src/auth0/management/actions/triggers/bindings/raw_client.py b/src/auth0/management/actions/triggers/bindings/raw_client.py deleted file mode 100644 index c02b193f..00000000 --- a/src/auth0/management/actions/triggers/bindings/raw_client.py +++ /dev/null @@ -1,470 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ....core.api_error import ApiError -from ....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ....core.http_response import AsyncHttpResponse, HttpResponse -from ....core.jsonable_encoder import quote_path_param -from ....core.pagination import AsyncPager, SyncPager -from ....core.parse_error import ParsingError -from ....core.pydantic_utilities import parse_obj_as -from ....core.request_options import RequestOptions -from ....core.serialization import convert_and_respect_annotation_metadata -from ....errors.bad_request_error import BadRequestError -from ....errors.forbidden_error import ForbiddenError -from ....errors.too_many_requests_error import TooManyRequestsError -from ....errors.unauthorized_error import UnauthorizedError -from ....types.action_binding import ActionBinding -from ....types.action_binding_with_ref import ActionBindingWithRef -from ....types.action_trigger_type_enum import ActionTriggerTypeEnum -from ....types.list_action_bindings_paginated_response_content import ListActionBindingsPaginatedResponseContent -from ....types.update_action_bindings_response_content import UpdateActionBindingsResponseContent -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawBindingsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - trigger_id: ActionTriggerTypeEnum, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[ActionBinding, ListActionBindingsPaginatedResponseContent]: - """ - Retrieve the actions that are bound to a trigger. Once an action is created and deployed, it must be attached (i.e. bound) to a trigger so that it will be executed as part of a flow. The list of actions returned reflects the order in which they will be executed during the appropriate flow. - - Parameters - ---------- - trigger_id : ActionTriggerTypeEnum - An actions extensibility point. - - page : typing.Optional[int] - Use this field to request a specific page of the list results. - - per_page : typing.Optional[int] - The maximum number of results to be returned in a single request. 20 by default - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[ActionBinding, ListActionBindingsPaginatedResponseContent] - The bindings were retrieved. - """ - page = page if page is not None else 0 - - _response = self._client_wrapper.httpx_client.request( - f"actions/triggers/{quote_path_param(trigger_id)}/bindings", - method="GET", - params={ - "page": page, - "per_page": per_page, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListActionBindingsPaginatedResponseContent, - parse_obj_as( - type_=ListActionBindingsPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.bindings - _has_next = len(_items or []) > 0 - _get_next = lambda: self.list( - trigger_id, - page=page + 1, - per_page=per_page, - request_options=request_options, - ) - return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def update_many( - self, - trigger_id: ActionTriggerTypeEnum, - *, - bindings: typing.Optional[typing.Sequence[ActionBindingWithRef]] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[UpdateActionBindingsResponseContent]: - """ - Update the actions that are bound (i.e. attached) to a trigger. Once an action is created and deployed, it must be attached (i.e. bound) to a trigger so that it will be executed as part of a flow. The order in which the actions are provided will determine the order in which they are executed. - - Parameters - ---------- - trigger_id : ActionTriggerTypeEnum - An actions extensibility point. - - bindings : typing.Optional[typing.Sequence[ActionBindingWithRef]] - The actions that will be bound to this trigger. The order in which they are included will be the order in which they are executed. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[UpdateActionBindingsResponseContent] - The bindings were updated. - """ - _response = self._client_wrapper.httpx_client.request( - f"actions/triggers/{quote_path_param(trigger_id)}/bindings", - method="PATCH", - json={ - "bindings": convert_and_respect_annotation_metadata( - object_=bindings, annotation=typing.Sequence[ActionBindingWithRef], direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateActionBindingsResponseContent, - parse_obj_as( - type_=UpdateActionBindingsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawBindingsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - trigger_id: ActionTriggerTypeEnum, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[ActionBinding, ListActionBindingsPaginatedResponseContent]: - """ - Retrieve the actions that are bound to a trigger. Once an action is created and deployed, it must be attached (i.e. bound) to a trigger so that it will be executed as part of a flow. The list of actions returned reflects the order in which they will be executed during the appropriate flow. - - Parameters - ---------- - trigger_id : ActionTriggerTypeEnum - An actions extensibility point. - - page : typing.Optional[int] - Use this field to request a specific page of the list results. - - per_page : typing.Optional[int] - The maximum number of results to be returned in a single request. 20 by default - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[ActionBinding, ListActionBindingsPaginatedResponseContent] - The bindings were retrieved. - """ - page = page if page is not None else 0 - - _response = await self._client_wrapper.httpx_client.request( - f"actions/triggers/{quote_path_param(trigger_id)}/bindings", - method="GET", - params={ - "page": page, - "per_page": per_page, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListActionBindingsPaginatedResponseContent, - parse_obj_as( - type_=ListActionBindingsPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.bindings - _has_next = len(_items or []) > 0 - - async def _get_next(): - return await self.list( - trigger_id, - page=page + 1, - per_page=per_page, - request_options=request_options, - ) - - return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def update_many( - self, - trigger_id: ActionTriggerTypeEnum, - *, - bindings: typing.Optional[typing.Sequence[ActionBindingWithRef]] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[UpdateActionBindingsResponseContent]: - """ - Update the actions that are bound (i.e. attached) to a trigger. Once an action is created and deployed, it must be attached (i.e. bound) to a trigger so that it will be executed as part of a flow. The order in which the actions are provided will determine the order in which they are executed. - - Parameters - ---------- - trigger_id : ActionTriggerTypeEnum - An actions extensibility point. - - bindings : typing.Optional[typing.Sequence[ActionBindingWithRef]] - The actions that will be bound to this trigger. The order in which they are included will be the order in which they are executed. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[UpdateActionBindingsResponseContent] - The bindings were updated. - """ - _response = await self._client_wrapper.httpx_client.request( - f"actions/triggers/{quote_path_param(trigger_id)}/bindings", - method="PATCH", - json={ - "bindings": convert_and_respect_annotation_metadata( - object_=bindings, annotation=typing.Sequence[ActionBindingWithRef], direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateActionBindingsResponseContent, - parse_obj_as( - type_=UpdateActionBindingsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/actions/triggers/client.py b/src/auth0/management/actions/triggers/client.py deleted file mode 100644 index cfc7cb62..00000000 --- a/src/auth0/management/actions/triggers/client.py +++ /dev/null @@ -1,127 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.request_options import RequestOptions -from ...types.list_action_triggers_response_content import ListActionTriggersResponseContent -from .raw_client import AsyncRawTriggersClient, RawTriggersClient - -if typing.TYPE_CHECKING: - from .bindings.client import AsyncBindingsClient, BindingsClient - - -class TriggersClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawTriggersClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._bindings: typing.Optional[BindingsClient] = None - - @property - def with_raw_response(self) -> RawTriggersClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawTriggersClient - """ - return self._raw_client - - def list(self, *, request_options: typing.Optional[RequestOptions] = None) -> ListActionTriggersResponseContent: - """ - Retrieve the set of triggers currently available within actions. A trigger is an extensibility point to which actions can be bound. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - ListActionTriggersResponseContent - The triggers were retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.actions.triggers.list() - """ - _response = self._raw_client.list(request_options=request_options) - return _response.data - - @property - def bindings(self): - if self._bindings is None: - from .bindings.client import BindingsClient # noqa: E402 - - self._bindings = BindingsClient(client_wrapper=self._client_wrapper) - return self._bindings - - -class AsyncTriggersClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawTriggersClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._bindings: typing.Optional[AsyncBindingsClient] = None - - @property - def with_raw_response(self) -> AsyncRawTriggersClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawTriggersClient - """ - return self._raw_client - - async def list( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> ListActionTriggersResponseContent: - """ - Retrieve the set of triggers currently available within actions. A trigger is an extensibility point to which actions can be bound. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - ListActionTriggersResponseContent - The triggers were retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.actions.triggers.list() - - - asyncio.run(main()) - """ - _response = await self._raw_client.list(request_options=request_options) - return _response.data - - @property - def bindings(self): - if self._bindings is None: - from .bindings.client import AsyncBindingsClient # noqa: E402 - - self._bindings = AsyncBindingsClient(client_wrapper=self._client_wrapper) - return self._bindings diff --git a/src/auth0/management/actions/triggers/raw_client.py b/src/auth0/management/actions/triggers/raw_client.py deleted file mode 100644 index 9726738d..00000000 --- a/src/auth0/management/actions/triggers/raw_client.py +++ /dev/null @@ -1,195 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ...core.api_error import ApiError -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.http_response import AsyncHttpResponse, HttpResponse -from ...core.parse_error import ParsingError -from ...core.pydantic_utilities import parse_obj_as -from ...core.request_options import RequestOptions -from ...errors.bad_request_error import BadRequestError -from ...errors.forbidden_error import ForbiddenError -from ...errors.too_many_requests_error import TooManyRequestsError -from ...errors.unauthorized_error import UnauthorizedError -from ...types.list_action_triggers_response_content import ListActionTriggersResponseContent -from pydantic import ValidationError - - -class RawTriggersClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[ListActionTriggersResponseContent]: - """ - Retrieve the set of triggers currently available within actions. A trigger is an extensibility point to which actions can be bound. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[ListActionTriggersResponseContent] - The triggers were retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - "actions/triggers", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - ListActionTriggersResponseContent, - parse_obj_as( - type_=ListActionTriggersResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawTriggersClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[ListActionTriggersResponseContent]: - """ - Retrieve the set of triggers currently available within actions. A trigger is an extensibility point to which actions can be bound. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[ListActionTriggersResponseContent] - The triggers were retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - "actions/triggers", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - ListActionTriggersResponseContent, - parse_obj_as( - type_=ListActionTriggersResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/actions/versions/__init__.py b/src/auth0/management/actions/versions/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/actions/versions/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/actions/versions/client.py b/src/auth0/management/actions/versions/client.py deleted file mode 100644 index eaf37dfd..00000000 --- a/src/auth0/management/actions/versions/client.py +++ /dev/null @@ -1,337 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.pagination import AsyncPager, SyncPager -from ...core.request_options import RequestOptions -from ...types.action_version import ActionVersion -from ...types.deploy_action_version_request_content import DeployActionVersionRequestContent -from ...types.deploy_action_version_response_content import DeployActionVersionResponseContent -from ...types.get_action_version_response_content import GetActionVersionResponseContent -from ...types.list_action_versions_paginated_response_content import ListActionVersionsPaginatedResponseContent -from .raw_client import AsyncRawVersionsClient, RawVersionsClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class VersionsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawVersionsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawVersionsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawVersionsClient - """ - return self._raw_client - - def list( - self, - action_id: str, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[ActionVersion, ListActionVersionsPaginatedResponseContent]: - """ - Retrieve all of an action's versions. An action version is created whenever an action is deployed. An action version is immutable, once created. - - Parameters - ---------- - action_id : str - The ID of the action. - - page : typing.Optional[int] - Use this field to request a specific page of the list results. - - per_page : typing.Optional[int] - This field specify the maximum number of results to be returned by the server. 20 by default - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[ActionVersion, ListActionVersionsPaginatedResponseContent] - The action versions were retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.actions.versions.list( - action_id="actionId", - page=1, - per_page=1, - ) - for item in response: - yield item - # alternatively, you can paginate page-by-page - for page in response.iter_pages(): - yield page - """ - return self._raw_client.list(action_id, page=page, per_page=per_page, request_options=request_options) - - def get( - self, action_id: str, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetActionVersionResponseContent: - """ - Retrieve a specific version of an action. An action version is created whenever an action is deployed. An action version is immutable, once created. - - Parameters - ---------- - action_id : str - The ID of the action. - - id : str - The ID of the action version. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetActionVersionResponseContent - The action version was retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.actions.versions.get( - action_id="actionId", - id="id", - ) - """ - _response = self._raw_client.get(action_id, id, request_options=request_options) - return _response.data - - def deploy( - self, - action_id: str, - id: str, - *, - request: typing.Optional[DeployActionVersionRequestContent] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> DeployActionVersionResponseContent: - """ - Performs the equivalent of a roll-back of an action to an earlier, specified version. Creates a new, deployed action version that is identical to the specified version. If this action is currently bound to a trigger, the system will begin executing the newly-created version immediately. - - Parameters - ---------- - action_id : str - The ID of an action. - - id : str - The ID of an action version. - - request : typing.Optional[DeployActionVersionRequestContent] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - DeployActionVersionResponseContent - Request to create action version was accepted. - - Examples - -------- - from auth0 import Auth0, DeployActionVersionRequestContent - - client = Auth0( - token="YOUR_TOKEN", - ) - client.actions.versions.deploy( - action_id="actionId", - id="id", - request=DeployActionVersionRequestContent(), - ) - """ - _response = self._raw_client.deploy(action_id, id, request=request, request_options=request_options) - return _response.data - - -class AsyncVersionsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawVersionsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawVersionsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawVersionsClient - """ - return self._raw_client - - async def list( - self, - action_id: str, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[ActionVersion, ListActionVersionsPaginatedResponseContent]: - """ - Retrieve all of an action's versions. An action version is created whenever an action is deployed. An action version is immutable, once created. - - Parameters - ---------- - action_id : str - The ID of the action. - - page : typing.Optional[int] - Use this field to request a specific page of the list results. - - per_page : typing.Optional[int] - This field specify the maximum number of results to be returned by the server. 20 by default - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[ActionVersion, ListActionVersionsPaginatedResponseContent] - The action versions were retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.actions.versions.list( - action_id="actionId", - page=1, - per_page=1, - ) - async for item in response: - yield item - - # alternatively, you can paginate page-by-page - async for page in response.iter_pages(): - yield page - - - asyncio.run(main()) - """ - return await self._raw_client.list(action_id, page=page, per_page=per_page, request_options=request_options) - - async def get( - self, action_id: str, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetActionVersionResponseContent: - """ - Retrieve a specific version of an action. An action version is created whenever an action is deployed. An action version is immutable, once created. - - Parameters - ---------- - action_id : str - The ID of the action. - - id : str - The ID of the action version. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetActionVersionResponseContent - The action version was retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.actions.versions.get( - action_id="actionId", - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.get(action_id, id, request_options=request_options) - return _response.data - - async def deploy( - self, - action_id: str, - id: str, - *, - request: typing.Optional[DeployActionVersionRequestContent] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> DeployActionVersionResponseContent: - """ - Performs the equivalent of a roll-back of an action to an earlier, specified version. Creates a new, deployed action version that is identical to the specified version. If this action is currently bound to a trigger, the system will begin executing the newly-created version immediately. - - Parameters - ---------- - action_id : str - The ID of an action. - - id : str - The ID of an action version. - - request : typing.Optional[DeployActionVersionRequestContent] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - DeployActionVersionResponseContent - Request to create action version was accepted. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0, DeployActionVersionRequestContent - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.actions.versions.deploy( - action_id="actionId", - id="id", - request=DeployActionVersionRequestContent(), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.deploy(action_id, id, request=request, request_options=request_options) - return _response.data diff --git a/src/auth0/management/actions/versions/raw_client.py b/src/auth0/management/actions/versions/raw_client.py deleted file mode 100644 index b3fe0859..00000000 --- a/src/auth0/management/actions/versions/raw_client.py +++ /dev/null @@ -1,669 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ...core.api_error import ApiError -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.http_response import AsyncHttpResponse, HttpResponse -from ...core.jsonable_encoder import quote_path_param -from ...core.pagination import AsyncPager, SyncPager -from ...core.parse_error import ParsingError -from ...core.pydantic_utilities import parse_obj_as -from ...core.request_options import RequestOptions -from ...core.serialization import convert_and_respect_annotation_metadata -from ...errors.bad_request_error import BadRequestError -from ...errors.forbidden_error import ForbiddenError -from ...errors.not_found_error import NotFoundError -from ...errors.too_many_requests_error import TooManyRequestsError -from ...errors.unauthorized_error import UnauthorizedError -from ...types.action_version import ActionVersion -from ...types.deploy_action_version_request_content import DeployActionVersionRequestContent -from ...types.deploy_action_version_response_content import DeployActionVersionResponseContent -from ...types.get_action_version_response_content import GetActionVersionResponseContent -from ...types.list_action_versions_paginated_response_content import ListActionVersionsPaginatedResponseContent -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawVersionsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - action_id: str, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[ActionVersion, ListActionVersionsPaginatedResponseContent]: - """ - Retrieve all of an action's versions. An action version is created whenever an action is deployed. An action version is immutable, once created. - - Parameters - ---------- - action_id : str - The ID of the action. - - page : typing.Optional[int] - Use this field to request a specific page of the list results. - - per_page : typing.Optional[int] - This field specify the maximum number of results to be returned by the server. 20 by default - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[ActionVersion, ListActionVersionsPaginatedResponseContent] - The action versions were retrieved. - """ - page = page if page is not None else 0 - - _response = self._client_wrapper.httpx_client.request( - f"actions/actions/{quote_path_param(action_id)}/versions", - method="GET", - params={ - "page": page, - "per_page": per_page, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListActionVersionsPaginatedResponseContent, - parse_obj_as( - type_=ListActionVersionsPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.versions - _has_next = len(_items or []) > 0 - _get_next = lambda: self.list( - action_id, - page=page + 1, - per_page=per_page, - request_options=request_options, - ) - return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def get( - self, action_id: str, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetActionVersionResponseContent]: - """ - Retrieve a specific version of an action. An action version is created whenever an action is deployed. An action version is immutable, once created. - - Parameters - ---------- - action_id : str - The ID of the action. - - id : str - The ID of the action version. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetActionVersionResponseContent] - The action version was retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - f"actions/actions/{quote_path_param(action_id)}/versions/{quote_path_param(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetActionVersionResponseContent, - parse_obj_as( - type_=GetActionVersionResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def deploy( - self, - action_id: str, - id: str, - *, - request: typing.Optional[DeployActionVersionRequestContent] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[DeployActionVersionResponseContent]: - """ - Performs the equivalent of a roll-back of an action to an earlier, specified version. Creates a new, deployed action version that is identical to the specified version. If this action is currently bound to a trigger, the system will begin executing the newly-created version immediately. - - Parameters - ---------- - action_id : str - The ID of an action. - - id : str - The ID of an action version. - - request : typing.Optional[DeployActionVersionRequestContent] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[DeployActionVersionResponseContent] - Request to create action version was accepted. - """ - _response = self._client_wrapper.httpx_client.request( - f"actions/actions/{quote_path_param(action_id)}/versions/{quote_path_param(id)}/deploy", - method="POST", - json=convert_and_respect_annotation_metadata( - object_=request, annotation=typing.Optional[DeployActionVersionRequestContent], direction="write" - ), - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - DeployActionVersionResponseContent, - parse_obj_as( - type_=DeployActionVersionResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawVersionsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - action_id: str, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[ActionVersion, ListActionVersionsPaginatedResponseContent]: - """ - Retrieve all of an action's versions. An action version is created whenever an action is deployed. An action version is immutable, once created. - - Parameters - ---------- - action_id : str - The ID of the action. - - page : typing.Optional[int] - Use this field to request a specific page of the list results. - - per_page : typing.Optional[int] - This field specify the maximum number of results to be returned by the server. 20 by default - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[ActionVersion, ListActionVersionsPaginatedResponseContent] - The action versions were retrieved. - """ - page = page if page is not None else 0 - - _response = await self._client_wrapper.httpx_client.request( - f"actions/actions/{quote_path_param(action_id)}/versions", - method="GET", - params={ - "page": page, - "per_page": per_page, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListActionVersionsPaginatedResponseContent, - parse_obj_as( - type_=ListActionVersionsPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.versions - _has_next = len(_items or []) > 0 - - async def _get_next(): - return await self.list( - action_id, - page=page + 1, - per_page=per_page, - request_options=request_options, - ) - - return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def get( - self, action_id: str, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetActionVersionResponseContent]: - """ - Retrieve a specific version of an action. An action version is created whenever an action is deployed. An action version is immutable, once created. - - Parameters - ---------- - action_id : str - The ID of the action. - - id : str - The ID of the action version. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetActionVersionResponseContent] - The action version was retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - f"actions/actions/{quote_path_param(action_id)}/versions/{quote_path_param(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetActionVersionResponseContent, - parse_obj_as( - type_=GetActionVersionResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def deploy( - self, - action_id: str, - id: str, - *, - request: typing.Optional[DeployActionVersionRequestContent] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[DeployActionVersionResponseContent]: - """ - Performs the equivalent of a roll-back of an action to an earlier, specified version. Creates a new, deployed action version that is identical to the specified version. If this action is currently bound to a trigger, the system will begin executing the newly-created version immediately. - - Parameters - ---------- - action_id : str - The ID of an action. - - id : str - The ID of an action version. - - request : typing.Optional[DeployActionVersionRequestContent] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[DeployActionVersionResponseContent] - Request to create action version was accepted. - """ - _response = await self._client_wrapper.httpx_client.request( - f"actions/actions/{quote_path_param(action_id)}/versions/{quote_path_param(id)}/deploy", - method="POST", - json=convert_and_respect_annotation_metadata( - object_=request, annotation=typing.Optional[DeployActionVersionRequestContent], direction="write" - ), - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - DeployActionVersionResponseContent, - parse_obj_as( - type_=DeployActionVersionResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/agents/__init__.py b/src/auth0/management/agents/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/agents/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/agents/client.py b/src/auth0/management/agents/client.py deleted file mode 100644 index 9b444742..00000000 --- a/src/auth0/management/agents/client.py +++ /dev/null @@ -1,493 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.pagination import AsyncPager, SyncPager -from ..core.request_options import RequestOptions -from ..types.agent_metadata import AgentMetadata -from ..types.agent_response_content import AgentResponseContent -from ..types.list_agents_response_content import ListAgentsResponseContent -from .raw_client import AsyncRawAgentsClient, RawAgentsClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class AgentsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawAgentsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawAgentsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawAgentsClient - """ - return self._raw_client - - def list( - self, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[AgentResponseContent, ListAgentsResponseContent]: - """ - Get agents - - Parameters - ---------- - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[AgentResponseContent, ListAgentsResponseContent] - Agents successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.agents.list( - from_="from", - take=1, - ) - for item in response: - yield item - # alternatively, you can paginate page-by-page - for page in response.iter_pages(): - yield page - """ - return self._raw_client.list(from_=from_, take=take, request_options=request_options) - - def create( - self, - *, - name: str, - client_id: typing.Optional[str] = OMIT, - external_agent_id: typing.Optional[str] = OMIT, - metadata: typing.Optional[AgentMetadata] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AgentResponseContent: - """ - Create an agent - - Parameters - ---------- - name : str - The agent name. Cannot contain <, >, or null bytes. - - client_id : typing.Optional[str] - Optional client ID to associate with the agent - - external_agent_id : typing.Optional[str] - Optional external identifier for the agent. Immutable after creation. Must be unique within the tenant. - - metadata : typing.Optional[AgentMetadata] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AgentResponseContent - Agent successfully created. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.agents.create( - name="name", - ) - """ - _response = self._raw_client.create( - name=name, - client_id=client_id, - external_agent_id=external_agent_id, - metadata=metadata, - request_options=request_options, - ) - return _response.data - - def read(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> AgentResponseContent: - """ - Get an agent - - Parameters - ---------- - id : str - The agent ID - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AgentResponseContent - Agent successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.agents.read( - id="id", - ) - """ - _response = self._raw_client.read(id, request_options=request_options) - return _response.data - - def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete an agent - - Parameters - ---------- - id : str - The agent ID - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.agents.delete( - id="id", - ) - """ - _response = self._raw_client.delete(id, request_options=request_options) - return _response.data - - def update( - self, - id: str, - *, - name: typing.Optional[str] = OMIT, - metadata: typing.Optional[typing.Dict[str, typing.Any]] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AgentResponseContent: - """ - Update an agent - - Parameters - ---------- - id : str - The agent ID - - name : typing.Optional[str] - The agent name. Cannot contain <, >, or null bytes. - - metadata : typing.Optional[typing.Dict[str, typing.Any]] - Arbitrary key-value metadata for the agent. Pass null to clear all metadata. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AgentResponseContent - Agent successfully updated. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.agents.update( - id="id", - ) - """ - _response = self._raw_client.update(id, name=name, metadata=metadata, request_options=request_options) - return _response.data - - -class AsyncAgentsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawAgentsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawAgentsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawAgentsClient - """ - return self._raw_client - - async def list( - self, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[AgentResponseContent, ListAgentsResponseContent]: - """ - Get agents - - Parameters - ---------- - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[AgentResponseContent, ListAgentsResponseContent] - Agents successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.agents.list( - from_="from", - take=1, - ) - async for item in response: - yield item - - # alternatively, you can paginate page-by-page - async for page in response.iter_pages(): - yield page - - - asyncio.run(main()) - """ - return await self._raw_client.list(from_=from_, take=take, request_options=request_options) - - async def create( - self, - *, - name: str, - client_id: typing.Optional[str] = OMIT, - external_agent_id: typing.Optional[str] = OMIT, - metadata: typing.Optional[AgentMetadata] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AgentResponseContent: - """ - Create an agent - - Parameters - ---------- - name : str - The agent name. Cannot contain <, >, or null bytes. - - client_id : typing.Optional[str] - Optional client ID to associate with the agent - - external_agent_id : typing.Optional[str] - Optional external identifier for the agent. Immutable after creation. Must be unique within the tenant. - - metadata : typing.Optional[AgentMetadata] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AgentResponseContent - Agent successfully created. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.agents.create( - name="name", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - name=name, - client_id=client_id, - external_agent_id=external_agent_id, - metadata=metadata, - request_options=request_options, - ) - return _response.data - - async def read(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> AgentResponseContent: - """ - Get an agent - - Parameters - ---------- - id : str - The agent ID - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AgentResponseContent - Agent successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.agents.read( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.read(id, request_options=request_options) - return _response.data - - async def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete an agent - - Parameters - ---------- - id : str - The agent ID - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.agents.delete( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete(id, request_options=request_options) - return _response.data - - async def update( - self, - id: str, - *, - name: typing.Optional[str] = OMIT, - metadata: typing.Optional[typing.Dict[str, typing.Any]] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AgentResponseContent: - """ - Update an agent - - Parameters - ---------- - id : str - The agent ID - - name : typing.Optional[str] - The agent name. Cannot contain <, >, or null bytes. - - metadata : typing.Optional[typing.Dict[str, typing.Any]] - Arbitrary key-value metadata for the agent. Pass null to clear all metadata. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AgentResponseContent - Agent successfully updated. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.agents.update( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.update(id, name=name, metadata=metadata, request_options=request_options) - return _response.data diff --git a/src/auth0/management/agents/raw_client.py b/src/auth0/management/agents/raw_client.py deleted file mode 100644 index 40b8abd5..00000000 --- a/src/auth0/management/agents/raw_client.py +++ /dev/null @@ -1,1059 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ..core.api_error import ApiError -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.http_response import AsyncHttpResponse, HttpResponse -from ..core.jsonable_encoder import quote_path_param -from ..core.pagination import AsyncPager, SyncPager -from ..core.parse_error import ParsingError -from ..core.pydantic_utilities import parse_obj_as -from ..core.request_options import RequestOptions -from ..errors.bad_request_error import BadRequestError -from ..errors.conflict_error import ConflictError -from ..errors.forbidden_error import ForbiddenError -from ..errors.not_found_error import NotFoundError -from ..errors.too_many_requests_error import TooManyRequestsError -from ..errors.unauthorized_error import UnauthorizedError -from ..types.agent_metadata import AgentMetadata -from ..types.agent_response_content import AgentResponseContent -from ..types.list_agents_response_content import ListAgentsResponseContent -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawAgentsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[AgentResponseContent, ListAgentsResponseContent]: - """ - Get agents - - Parameters - ---------- - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[AgentResponseContent, ListAgentsResponseContent] - Agents successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - "agents", - method="GET", - params={ - "from": from_, - "take": take, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListAgentsResponseContent, - parse_obj_as( - type_=ListAgentsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.agents - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - _get_next = lambda: self.list( - from_=_parsed_next, - take=take, - request_options=request_options, - ) - return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - *, - name: str, - client_id: typing.Optional[str] = OMIT, - external_agent_id: typing.Optional[str] = OMIT, - metadata: typing.Optional[AgentMetadata] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[AgentResponseContent]: - """ - Create an agent - - Parameters - ---------- - name : str - The agent name. Cannot contain <, >, or null bytes. - - client_id : typing.Optional[str] - Optional client ID to associate with the agent - - external_agent_id : typing.Optional[str] - Optional external identifier for the agent. Immutable after creation. Must be unique within the tenant. - - metadata : typing.Optional[AgentMetadata] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[AgentResponseContent] - Agent successfully created. - """ - _response = self._client_wrapper.httpx_client.request( - "agents", - method="POST", - json={ - "name": name, - "client_id": client_id, - "external_agent_id": external_agent_id, - "metadata": metadata, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AgentResponseContent, - parse_obj_as( - type_=AgentResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def read( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[AgentResponseContent]: - """ - Get an agent - - Parameters - ---------- - id : str - The agent ID - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[AgentResponseContent] - Agent successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - f"agents/{quote_path_param(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AgentResponseContent, - parse_obj_as( - type_=AgentResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[None]: - """ - Delete an agent - - Parameters - ---------- - id : str - The agent ID - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"agents/{quote_path_param(id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def update( - self, - id: str, - *, - name: typing.Optional[str] = OMIT, - metadata: typing.Optional[typing.Dict[str, typing.Any]] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[AgentResponseContent]: - """ - Update an agent - - Parameters - ---------- - id : str - The agent ID - - name : typing.Optional[str] - The agent name. Cannot contain <, >, or null bytes. - - metadata : typing.Optional[typing.Dict[str, typing.Any]] - Arbitrary key-value metadata for the agent. Pass null to clear all metadata. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[AgentResponseContent] - Agent successfully updated. - """ - _response = self._client_wrapper.httpx_client.request( - f"agents/{quote_path_param(id)}", - method="PATCH", - json={ - "name": name, - "metadata": metadata, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AgentResponseContent, - parse_obj_as( - type_=AgentResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawAgentsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[AgentResponseContent, ListAgentsResponseContent]: - """ - Get agents - - Parameters - ---------- - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[AgentResponseContent, ListAgentsResponseContent] - Agents successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - "agents", - method="GET", - params={ - "from": from_, - "take": take, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListAgentsResponseContent, - parse_obj_as( - type_=ListAgentsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.agents - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - - async def _get_next(): - return await self.list( - from_=_parsed_next, - take=take, - request_options=request_options, - ) - - return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - *, - name: str, - client_id: typing.Optional[str] = OMIT, - external_agent_id: typing.Optional[str] = OMIT, - metadata: typing.Optional[AgentMetadata] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[AgentResponseContent]: - """ - Create an agent - - Parameters - ---------- - name : str - The agent name. Cannot contain <, >, or null bytes. - - client_id : typing.Optional[str] - Optional client ID to associate with the agent - - external_agent_id : typing.Optional[str] - Optional external identifier for the agent. Immutable after creation. Must be unique within the tenant. - - metadata : typing.Optional[AgentMetadata] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[AgentResponseContent] - Agent successfully created. - """ - _response = await self._client_wrapper.httpx_client.request( - "agents", - method="POST", - json={ - "name": name, - "client_id": client_id, - "external_agent_id": external_agent_id, - "metadata": metadata, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AgentResponseContent, - parse_obj_as( - type_=AgentResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def read( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[AgentResponseContent]: - """ - Get an agent - - Parameters - ---------- - id : str - The agent ID - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[AgentResponseContent] - Agent successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - f"agents/{quote_path_param(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AgentResponseContent, - parse_obj_as( - type_=AgentResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def delete( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Delete an agent - - Parameters - ---------- - id : str - The agent ID - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"agents/{quote_path_param(id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def update( - self, - id: str, - *, - name: typing.Optional[str] = OMIT, - metadata: typing.Optional[typing.Dict[str, typing.Any]] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[AgentResponseContent]: - """ - Update an agent - - Parameters - ---------- - id : str - The agent ID - - name : typing.Optional[str] - The agent name. Cannot contain <, >, or null bytes. - - metadata : typing.Optional[typing.Dict[str, typing.Any]] - Arbitrary key-value metadata for the agent. Pass null to clear all metadata. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[AgentResponseContent] - Agent successfully updated. - """ - _response = await self._client_wrapper.httpx_client.request( - f"agents/{quote_path_param(id)}", - method="PATCH", - json={ - "name": name, - "metadata": metadata, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AgentResponseContent, - parse_obj_as( - type_=AgentResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/anomaly/__init__.py b/src/auth0/management/anomaly/__init__.py deleted file mode 100644 index 0149576b..00000000 --- a/src/auth0/management/anomaly/__init__.py +++ /dev/null @@ -1,34 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from . import blocks -_dynamic_imports: typing.Dict[str, str] = {"blocks": ".blocks"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - if module_name == f".{attr_name}": - return module - else: - return getattr(module, attr_name) - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["blocks"] diff --git a/src/auth0/management/anomaly/blocks/__init__.py b/src/auth0/management/anomaly/blocks/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/anomaly/blocks/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/anomaly/blocks/client.py b/src/auth0/management/anomaly/blocks/client.py deleted file mode 100644 index 1f9c487d..00000000 --- a/src/auth0/management/anomaly/blocks/client.py +++ /dev/null @@ -1,176 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.request_options import RequestOptions -from ...types.anomaly_ip_format import AnomalyIpFormat -from .raw_client import AsyncRawBlocksClient, RawBlocksClient - - -class BlocksClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawBlocksClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawBlocksClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawBlocksClient - """ - return self._raw_client - - def check_ip(self, id: AnomalyIpFormat, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Check if the given IP address is blocked via the Suspicious IP Throttling due to multiple suspicious attempts. - - Parameters - ---------- - id : AnomalyIpFormat - IP address to check. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.anomaly.blocks.check_ip( - id="id", - ) - """ - _response = self._raw_client.check_ip(id, request_options=request_options) - return _response.data - - def unblock_ip(self, id: AnomalyIpFormat, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Remove a block imposed by Suspicious IP Throttling for the given IP address. - - Parameters - ---------- - id : AnomalyIpFormat - IP address to unblock. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.anomaly.blocks.unblock_ip( - id="id", - ) - """ - _response = self._raw_client.unblock_ip(id, request_options=request_options) - return _response.data - - -class AsyncBlocksClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawBlocksClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawBlocksClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawBlocksClient - """ - return self._raw_client - - async def check_ip(self, id: AnomalyIpFormat, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Check if the given IP address is blocked via the Suspicious IP Throttling due to multiple suspicious attempts. - - Parameters - ---------- - id : AnomalyIpFormat - IP address to check. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.anomaly.blocks.check_ip( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.check_ip(id, request_options=request_options) - return _response.data - - async def unblock_ip(self, id: AnomalyIpFormat, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Remove a block imposed by Suspicious IP Throttling for the given IP address. - - Parameters - ---------- - id : AnomalyIpFormat - IP address to unblock. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.anomaly.blocks.unblock_ip( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.unblock_ip(id, request_options=request_options) - return _response.data diff --git a/src/auth0/management/anomaly/blocks/raw_client.py b/src/auth0/management/anomaly/blocks/raw_client.py deleted file mode 100644 index 6bda16a6..00000000 --- a/src/auth0/management/anomaly/blocks/raw_client.py +++ /dev/null @@ -1,367 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ...core.api_error import ApiError -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.http_response import AsyncHttpResponse, HttpResponse -from ...core.jsonable_encoder import quote_path_param -from ...core.parse_error import ParsingError -from ...core.pydantic_utilities import parse_obj_as -from ...core.request_options import RequestOptions -from ...errors.bad_request_error import BadRequestError -from ...errors.forbidden_error import ForbiddenError -from ...errors.not_found_error import NotFoundError -from ...errors.too_many_requests_error import TooManyRequestsError -from ...errors.unauthorized_error import UnauthorizedError -from ...types.anomaly_ip_format import AnomalyIpFormat -from pydantic import ValidationError - - -class RawBlocksClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def check_ip( - self, id: AnomalyIpFormat, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[None]: - """ - Check if the given IP address is blocked via the Suspicious IP Throttling due to multiple suspicious attempts. - - Parameters - ---------- - id : AnomalyIpFormat - IP address to check. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"anomaly/blocks/ips/{quote_path_param(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def unblock_ip( - self, id: AnomalyIpFormat, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[None]: - """ - Remove a block imposed by Suspicious IP Throttling for the given IP address. - - Parameters - ---------- - id : AnomalyIpFormat - IP address to unblock. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"anomaly/blocks/ips/{quote_path_param(id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawBlocksClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def check_ip( - self, id: AnomalyIpFormat, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Check if the given IP address is blocked via the Suspicious IP Throttling due to multiple suspicious attempts. - - Parameters - ---------- - id : AnomalyIpFormat - IP address to check. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"anomaly/blocks/ips/{quote_path_param(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def unblock_ip( - self, id: AnomalyIpFormat, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Remove a block imposed by Suspicious IP Throttling for the given IP address. - - Parameters - ---------- - id : AnomalyIpFormat - IP address to unblock. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"anomaly/blocks/ips/{quote_path_param(id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/anomaly/client.py b/src/auth0/management/anomaly/client.py deleted file mode 100644 index bfd1640c..00000000 --- a/src/auth0/management/anomaly/client.py +++ /dev/null @@ -1,63 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .raw_client import AsyncRawAnomalyClient, RawAnomalyClient - -if typing.TYPE_CHECKING: - from .blocks.client import AsyncBlocksClient, BlocksClient - - -class AnomalyClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawAnomalyClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._blocks: typing.Optional[BlocksClient] = None - - @property - def with_raw_response(self) -> RawAnomalyClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawAnomalyClient - """ - return self._raw_client - - @property - def blocks(self): - if self._blocks is None: - from .blocks.client import BlocksClient # noqa: E402 - - self._blocks = BlocksClient(client_wrapper=self._client_wrapper) - return self._blocks - - -class AsyncAnomalyClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawAnomalyClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._blocks: typing.Optional[AsyncBlocksClient] = None - - @property - def with_raw_response(self) -> AsyncRawAnomalyClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawAnomalyClient - """ - return self._raw_client - - @property - def blocks(self): - if self._blocks is None: - from .blocks.client import AsyncBlocksClient # noqa: E402 - - self._blocks = AsyncBlocksClient(client_wrapper=self._client_wrapper) - return self._blocks diff --git a/src/auth0/management/anomaly/raw_client.py b/src/auth0/management/anomaly/raw_client.py deleted file mode 100644 index 60f97e8d..00000000 --- a/src/auth0/management/anomaly/raw_client.py +++ /dev/null @@ -1,13 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper - - -class RawAnomalyClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - -class AsyncRawAnomalyClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper diff --git a/src/auth0/management/attack_protection/__init__.py b/src/auth0/management/attack_protection/__init__.py deleted file mode 100644 index 0a209309..00000000 --- a/src/auth0/management/attack_protection/__init__.py +++ /dev/null @@ -1,55 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from . import ( - bot_detection, - breached_password_detection, - brute_force_protection, - captcha, - phone_provider_protection, - suspicious_ip_throttling, - ) -_dynamic_imports: typing.Dict[str, str] = { - "bot_detection": ".bot_detection", - "breached_password_detection": ".breached_password_detection", - "brute_force_protection": ".brute_force_protection", - "captcha": ".captcha", - "phone_provider_protection": ".phone_provider_protection", - "suspicious_ip_throttling": ".suspicious_ip_throttling", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - if module_name == f".{attr_name}": - return module - else: - return getattr(module, attr_name) - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = [ - "bot_detection", - "breached_password_detection", - "brute_force_protection", - "captcha", - "phone_provider_protection", - "suspicious_ip_throttling", -] diff --git a/src/auth0/management/attack_protection/bot_detection/__init__.py b/src/auth0/management/attack_protection/bot_detection/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/attack_protection/bot_detection/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/attack_protection/bot_detection/client.py b/src/auth0/management/attack_protection/bot_detection/client.py deleted file mode 100644 index 71a1b9a4..00000000 --- a/src/auth0/management/attack_protection/bot_detection/client.py +++ /dev/null @@ -1,236 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.request_options import RequestOptions -from ...types.bot_detection_allowlist import BotDetectionAllowlist -from ...types.bot_detection_challenge_policy_password_flow_enum import BotDetectionChallengePolicyPasswordFlowEnum -from ...types.bot_detection_challenge_policy_password_reset_flow_enum import ( - BotDetectionChallengePolicyPasswordResetFlowEnum, -) -from ...types.bot_detection_challenge_policy_passwordless_flow_enum import ( - BotDetectionChallengePolicyPasswordlessFlowEnum, -) -from ...types.bot_detection_level_enum import BotDetectionLevelEnum -from ...types.bot_detection_monitoring_mode_enabled import BotDetectionMonitoringModeEnabled -from ...types.get_bot_detection_settings_response_content import GetBotDetectionSettingsResponseContent -from ...types.update_bot_detection_settings_response_content import UpdateBotDetectionSettingsResponseContent -from .raw_client import AsyncRawBotDetectionClient, RawBotDetectionClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class BotDetectionClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawBotDetectionClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawBotDetectionClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawBotDetectionClient - """ - return self._raw_client - - def get(self, *, request_options: typing.Optional[RequestOptions] = None) -> GetBotDetectionSettingsResponseContent: - """ - Get the Bot Detection configuration of your tenant. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetBotDetectionSettingsResponseContent - Bot detection configuration retrieved successfully. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.attack_protection.bot_detection.get() - """ - _response = self._raw_client.get(request_options=request_options) - return _response.data - - def update( - self, - *, - bot_detection_level: typing.Optional[BotDetectionLevelEnum] = OMIT, - challenge_password_policy: typing.Optional[BotDetectionChallengePolicyPasswordFlowEnum] = OMIT, - challenge_passwordless_policy: typing.Optional[BotDetectionChallengePolicyPasswordlessFlowEnum] = OMIT, - challenge_password_reset_policy: typing.Optional[BotDetectionChallengePolicyPasswordResetFlowEnum] = OMIT, - allowlist: typing.Optional[BotDetectionAllowlist] = OMIT, - monitoring_mode_enabled: typing.Optional[BotDetectionMonitoringModeEnabled] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateBotDetectionSettingsResponseContent: - """ - Update the Bot Detection configuration of your tenant. - - Parameters - ---------- - bot_detection_level : typing.Optional[BotDetectionLevelEnum] - - challenge_password_policy : typing.Optional[BotDetectionChallengePolicyPasswordFlowEnum] - - challenge_passwordless_policy : typing.Optional[BotDetectionChallengePolicyPasswordlessFlowEnum] - - challenge_password_reset_policy : typing.Optional[BotDetectionChallengePolicyPasswordResetFlowEnum] - - allowlist : typing.Optional[BotDetectionAllowlist] - - monitoring_mode_enabled : typing.Optional[BotDetectionMonitoringModeEnabled] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateBotDetectionSettingsResponseContent - Bot detection configuration successfully updated. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.attack_protection.bot_detection.update() - """ - _response = self._raw_client.update( - bot_detection_level=bot_detection_level, - challenge_password_policy=challenge_password_policy, - challenge_passwordless_policy=challenge_passwordless_policy, - challenge_password_reset_policy=challenge_password_reset_policy, - allowlist=allowlist, - monitoring_mode_enabled=monitoring_mode_enabled, - request_options=request_options, - ) - return _response.data - - -class AsyncBotDetectionClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawBotDetectionClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawBotDetectionClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawBotDetectionClient - """ - return self._raw_client - - async def get( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetBotDetectionSettingsResponseContent: - """ - Get the Bot Detection configuration of your tenant. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetBotDetectionSettingsResponseContent - Bot detection configuration retrieved successfully. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.attack_protection.bot_detection.get() - - - asyncio.run(main()) - """ - _response = await self._raw_client.get(request_options=request_options) - return _response.data - - async def update( - self, - *, - bot_detection_level: typing.Optional[BotDetectionLevelEnum] = OMIT, - challenge_password_policy: typing.Optional[BotDetectionChallengePolicyPasswordFlowEnum] = OMIT, - challenge_passwordless_policy: typing.Optional[BotDetectionChallengePolicyPasswordlessFlowEnum] = OMIT, - challenge_password_reset_policy: typing.Optional[BotDetectionChallengePolicyPasswordResetFlowEnum] = OMIT, - allowlist: typing.Optional[BotDetectionAllowlist] = OMIT, - monitoring_mode_enabled: typing.Optional[BotDetectionMonitoringModeEnabled] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateBotDetectionSettingsResponseContent: - """ - Update the Bot Detection configuration of your tenant. - - Parameters - ---------- - bot_detection_level : typing.Optional[BotDetectionLevelEnum] - - challenge_password_policy : typing.Optional[BotDetectionChallengePolicyPasswordFlowEnum] - - challenge_passwordless_policy : typing.Optional[BotDetectionChallengePolicyPasswordlessFlowEnum] - - challenge_password_reset_policy : typing.Optional[BotDetectionChallengePolicyPasswordResetFlowEnum] - - allowlist : typing.Optional[BotDetectionAllowlist] - - monitoring_mode_enabled : typing.Optional[BotDetectionMonitoringModeEnabled] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateBotDetectionSettingsResponseContent - Bot detection configuration successfully updated. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.attack_protection.bot_detection.update() - - - asyncio.run(main()) - """ - _response = await self._raw_client.update( - bot_detection_level=bot_detection_level, - challenge_password_policy=challenge_password_policy, - challenge_passwordless_policy=challenge_passwordless_policy, - challenge_password_reset_policy=challenge_password_reset_policy, - allowlist=allowlist, - monitoring_mode_enabled=monitoring_mode_enabled, - request_options=request_options, - ) - return _response.data diff --git a/src/auth0/management/attack_protection/bot_detection/raw_client.py b/src/auth0/management/attack_protection/bot_detection/raw_client.py deleted file mode 100644 index d5a20d6a..00000000 --- a/src/auth0/management/attack_protection/bot_detection/raw_client.py +++ /dev/null @@ -1,464 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ...core.api_error import ApiError -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.http_response import AsyncHttpResponse, HttpResponse -from ...core.parse_error import ParsingError -from ...core.pydantic_utilities import parse_obj_as -from ...core.request_options import RequestOptions -from ...errors.bad_request_error import BadRequestError -from ...errors.forbidden_error import ForbiddenError -from ...errors.not_found_error import NotFoundError -from ...errors.too_many_requests_error import TooManyRequestsError -from ...errors.unauthorized_error import UnauthorizedError -from ...types.bot_detection_allowlist import BotDetectionAllowlist -from ...types.bot_detection_challenge_policy_password_flow_enum import BotDetectionChallengePolicyPasswordFlowEnum -from ...types.bot_detection_challenge_policy_password_reset_flow_enum import ( - BotDetectionChallengePolicyPasswordResetFlowEnum, -) -from ...types.bot_detection_challenge_policy_passwordless_flow_enum import ( - BotDetectionChallengePolicyPasswordlessFlowEnum, -) -from ...types.bot_detection_level_enum import BotDetectionLevelEnum -from ...types.bot_detection_monitoring_mode_enabled import BotDetectionMonitoringModeEnabled -from ...types.get_bot_detection_settings_response_content import GetBotDetectionSettingsResponseContent -from ...types.update_bot_detection_settings_response_content import UpdateBotDetectionSettingsResponseContent -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawBotDetectionClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def get( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetBotDetectionSettingsResponseContent]: - """ - Get the Bot Detection configuration of your tenant. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetBotDetectionSettingsResponseContent] - Bot detection configuration retrieved successfully. - """ - _response = self._client_wrapper.httpx_client.request( - "attack-protection/bot-detection", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetBotDetectionSettingsResponseContent, - parse_obj_as( - type_=GetBotDetectionSettingsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def update( - self, - *, - bot_detection_level: typing.Optional[BotDetectionLevelEnum] = OMIT, - challenge_password_policy: typing.Optional[BotDetectionChallengePolicyPasswordFlowEnum] = OMIT, - challenge_passwordless_policy: typing.Optional[BotDetectionChallengePolicyPasswordlessFlowEnum] = OMIT, - challenge_password_reset_policy: typing.Optional[BotDetectionChallengePolicyPasswordResetFlowEnum] = OMIT, - allowlist: typing.Optional[BotDetectionAllowlist] = OMIT, - monitoring_mode_enabled: typing.Optional[BotDetectionMonitoringModeEnabled] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[UpdateBotDetectionSettingsResponseContent]: - """ - Update the Bot Detection configuration of your tenant. - - Parameters - ---------- - bot_detection_level : typing.Optional[BotDetectionLevelEnum] - - challenge_password_policy : typing.Optional[BotDetectionChallengePolicyPasswordFlowEnum] - - challenge_passwordless_policy : typing.Optional[BotDetectionChallengePolicyPasswordlessFlowEnum] - - challenge_password_reset_policy : typing.Optional[BotDetectionChallengePolicyPasswordResetFlowEnum] - - allowlist : typing.Optional[BotDetectionAllowlist] - - monitoring_mode_enabled : typing.Optional[BotDetectionMonitoringModeEnabled] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[UpdateBotDetectionSettingsResponseContent] - Bot detection configuration successfully updated. - """ - _response = self._client_wrapper.httpx_client.request( - "attack-protection/bot-detection", - method="PATCH", - json={ - "bot_detection_level": bot_detection_level, - "challenge_password_policy": challenge_password_policy, - "challenge_passwordless_policy": challenge_passwordless_policy, - "challenge_password_reset_policy": challenge_password_reset_policy, - "allowlist": allowlist, - "monitoring_mode_enabled": monitoring_mode_enabled, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateBotDetectionSettingsResponseContent, - parse_obj_as( - type_=UpdateBotDetectionSettingsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawBotDetectionClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def get( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetBotDetectionSettingsResponseContent]: - """ - Get the Bot Detection configuration of your tenant. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetBotDetectionSettingsResponseContent] - Bot detection configuration retrieved successfully. - """ - _response = await self._client_wrapper.httpx_client.request( - "attack-protection/bot-detection", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetBotDetectionSettingsResponseContent, - parse_obj_as( - type_=GetBotDetectionSettingsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def update( - self, - *, - bot_detection_level: typing.Optional[BotDetectionLevelEnum] = OMIT, - challenge_password_policy: typing.Optional[BotDetectionChallengePolicyPasswordFlowEnum] = OMIT, - challenge_passwordless_policy: typing.Optional[BotDetectionChallengePolicyPasswordlessFlowEnum] = OMIT, - challenge_password_reset_policy: typing.Optional[BotDetectionChallengePolicyPasswordResetFlowEnum] = OMIT, - allowlist: typing.Optional[BotDetectionAllowlist] = OMIT, - monitoring_mode_enabled: typing.Optional[BotDetectionMonitoringModeEnabled] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[UpdateBotDetectionSettingsResponseContent]: - """ - Update the Bot Detection configuration of your tenant. - - Parameters - ---------- - bot_detection_level : typing.Optional[BotDetectionLevelEnum] - - challenge_password_policy : typing.Optional[BotDetectionChallengePolicyPasswordFlowEnum] - - challenge_passwordless_policy : typing.Optional[BotDetectionChallengePolicyPasswordlessFlowEnum] - - challenge_password_reset_policy : typing.Optional[BotDetectionChallengePolicyPasswordResetFlowEnum] - - allowlist : typing.Optional[BotDetectionAllowlist] - - monitoring_mode_enabled : typing.Optional[BotDetectionMonitoringModeEnabled] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[UpdateBotDetectionSettingsResponseContent] - Bot detection configuration successfully updated. - """ - _response = await self._client_wrapper.httpx_client.request( - "attack-protection/bot-detection", - method="PATCH", - json={ - "bot_detection_level": bot_detection_level, - "challenge_password_policy": challenge_password_policy, - "challenge_passwordless_policy": challenge_passwordless_policy, - "challenge_password_reset_policy": challenge_password_reset_policy, - "allowlist": allowlist, - "monitoring_mode_enabled": monitoring_mode_enabled, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateBotDetectionSettingsResponseContent, - parse_obj_as( - type_=UpdateBotDetectionSettingsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/attack_protection/breached_password_detection/__init__.py b/src/auth0/management/attack_protection/breached_password_detection/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/attack_protection/breached_password_detection/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/attack_protection/breached_password_detection/client.py b/src/auth0/management/attack_protection/breached_password_detection/client.py deleted file mode 100644 index 24fb9fcf..00000000 --- a/src/auth0/management/attack_protection/breached_password_detection/client.py +++ /dev/null @@ -1,244 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.request_options import RequestOptions -from ...types.breached_password_detection_admin_notification_frequency_enum import ( - BreachedPasswordDetectionAdminNotificationFrequencyEnum, -) -from ...types.breached_password_detection_method_enum import BreachedPasswordDetectionMethodEnum -from ...types.breached_password_detection_shields_enum import BreachedPasswordDetectionShieldsEnum -from ...types.breached_password_detection_stage import BreachedPasswordDetectionStage -from ...types.get_breached_password_detection_settings_response_content import ( - GetBreachedPasswordDetectionSettingsResponseContent, -) -from ...types.update_breached_password_detection_settings_response_content import ( - UpdateBreachedPasswordDetectionSettingsResponseContent, -) -from .raw_client import AsyncRawBreachedPasswordDetectionClient, RawBreachedPasswordDetectionClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class BreachedPasswordDetectionClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawBreachedPasswordDetectionClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawBreachedPasswordDetectionClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawBreachedPasswordDetectionClient - """ - return self._raw_client - - def get( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetBreachedPasswordDetectionSettingsResponseContent: - """ - Retrieve details of the Breached Password Detection configuration of your tenant. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetBreachedPasswordDetectionSettingsResponseContent - Breached password detection settings successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.attack_protection.breached_password_detection.get() - """ - _response = self._raw_client.get(request_options=request_options) - return _response.data - - def update( - self, - *, - enabled: typing.Optional[bool] = OMIT, - shields: typing.Optional[typing.Sequence[BreachedPasswordDetectionShieldsEnum]] = OMIT, - admin_notification_frequency: typing.Optional[ - typing.Sequence[BreachedPasswordDetectionAdminNotificationFrequencyEnum] - ] = OMIT, - method: typing.Optional[BreachedPasswordDetectionMethodEnum] = OMIT, - stage: typing.Optional[BreachedPasswordDetectionStage] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateBreachedPasswordDetectionSettingsResponseContent: - """ - Update details of the Breached Password Detection configuration of your tenant. - - Parameters - ---------- - enabled : typing.Optional[bool] - Whether or not breached password detection is active. - - shields : typing.Optional[typing.Sequence[BreachedPasswordDetectionShieldsEnum]] - Action to take when a breached password is detected during a login. - Possible values: block, user_notification, admin_notification. - - admin_notification_frequency : typing.Optional[typing.Sequence[BreachedPasswordDetectionAdminNotificationFrequencyEnum]] - When "admin_notification" is enabled, determines how often email notifications are sent. - Possible values: immediately, daily, weekly, monthly. - - method : typing.Optional[BreachedPasswordDetectionMethodEnum] - - stage : typing.Optional[BreachedPasswordDetectionStage] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateBreachedPasswordDetectionSettingsResponseContent - Breached password detection settings successfully updated. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.attack_protection.breached_password_detection.update() - """ - _response = self._raw_client.update( - enabled=enabled, - shields=shields, - admin_notification_frequency=admin_notification_frequency, - method=method, - stage=stage, - request_options=request_options, - ) - return _response.data - - -class AsyncBreachedPasswordDetectionClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawBreachedPasswordDetectionClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawBreachedPasswordDetectionClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawBreachedPasswordDetectionClient - """ - return self._raw_client - - async def get( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetBreachedPasswordDetectionSettingsResponseContent: - """ - Retrieve details of the Breached Password Detection configuration of your tenant. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetBreachedPasswordDetectionSettingsResponseContent - Breached password detection settings successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.attack_protection.breached_password_detection.get() - - - asyncio.run(main()) - """ - _response = await self._raw_client.get(request_options=request_options) - return _response.data - - async def update( - self, - *, - enabled: typing.Optional[bool] = OMIT, - shields: typing.Optional[typing.Sequence[BreachedPasswordDetectionShieldsEnum]] = OMIT, - admin_notification_frequency: typing.Optional[ - typing.Sequence[BreachedPasswordDetectionAdminNotificationFrequencyEnum] - ] = OMIT, - method: typing.Optional[BreachedPasswordDetectionMethodEnum] = OMIT, - stage: typing.Optional[BreachedPasswordDetectionStage] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateBreachedPasswordDetectionSettingsResponseContent: - """ - Update details of the Breached Password Detection configuration of your tenant. - - Parameters - ---------- - enabled : typing.Optional[bool] - Whether or not breached password detection is active. - - shields : typing.Optional[typing.Sequence[BreachedPasswordDetectionShieldsEnum]] - Action to take when a breached password is detected during a login. - Possible values: block, user_notification, admin_notification. - - admin_notification_frequency : typing.Optional[typing.Sequence[BreachedPasswordDetectionAdminNotificationFrequencyEnum]] - When "admin_notification" is enabled, determines how often email notifications are sent. - Possible values: immediately, daily, weekly, monthly. - - method : typing.Optional[BreachedPasswordDetectionMethodEnum] - - stage : typing.Optional[BreachedPasswordDetectionStage] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateBreachedPasswordDetectionSettingsResponseContent - Breached password detection settings successfully updated. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.attack_protection.breached_password_detection.update() - - - asyncio.run(main()) - """ - _response = await self._raw_client.update( - enabled=enabled, - shields=shields, - admin_notification_frequency=admin_notification_frequency, - method=method, - stage=stage, - request_options=request_options, - ) - return _response.data diff --git a/src/auth0/management/attack_protection/breached_password_detection/raw_client.py b/src/auth0/management/attack_protection/breached_password_detection/raw_client.py deleted file mode 100644 index a4a98701..00000000 --- a/src/auth0/management/attack_protection/breached_password_detection/raw_client.py +++ /dev/null @@ -1,430 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ...core.api_error import ApiError -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.http_response import AsyncHttpResponse, HttpResponse -from ...core.parse_error import ParsingError -from ...core.pydantic_utilities import parse_obj_as -from ...core.request_options import RequestOptions -from ...core.serialization import convert_and_respect_annotation_metadata -from ...errors.bad_request_error import BadRequestError -from ...errors.forbidden_error import ForbiddenError -from ...errors.too_many_requests_error import TooManyRequestsError -from ...errors.unauthorized_error import UnauthorizedError -from ...types.breached_password_detection_admin_notification_frequency_enum import ( - BreachedPasswordDetectionAdminNotificationFrequencyEnum, -) -from ...types.breached_password_detection_method_enum import BreachedPasswordDetectionMethodEnum -from ...types.breached_password_detection_shields_enum import BreachedPasswordDetectionShieldsEnum -from ...types.breached_password_detection_stage import BreachedPasswordDetectionStage -from ...types.get_breached_password_detection_settings_response_content import ( - GetBreachedPasswordDetectionSettingsResponseContent, -) -from ...types.update_breached_password_detection_settings_response_content import ( - UpdateBreachedPasswordDetectionSettingsResponseContent, -) -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawBreachedPasswordDetectionClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def get( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetBreachedPasswordDetectionSettingsResponseContent]: - """ - Retrieve details of the Breached Password Detection configuration of your tenant. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetBreachedPasswordDetectionSettingsResponseContent] - Breached password detection settings successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - "attack-protection/breached-password-detection", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetBreachedPasswordDetectionSettingsResponseContent, - parse_obj_as( - type_=GetBreachedPasswordDetectionSettingsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def update( - self, - *, - enabled: typing.Optional[bool] = OMIT, - shields: typing.Optional[typing.Sequence[BreachedPasswordDetectionShieldsEnum]] = OMIT, - admin_notification_frequency: typing.Optional[ - typing.Sequence[BreachedPasswordDetectionAdminNotificationFrequencyEnum] - ] = OMIT, - method: typing.Optional[BreachedPasswordDetectionMethodEnum] = OMIT, - stage: typing.Optional[BreachedPasswordDetectionStage] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[UpdateBreachedPasswordDetectionSettingsResponseContent]: - """ - Update details of the Breached Password Detection configuration of your tenant. - - Parameters - ---------- - enabled : typing.Optional[bool] - Whether or not breached password detection is active. - - shields : typing.Optional[typing.Sequence[BreachedPasswordDetectionShieldsEnum]] - Action to take when a breached password is detected during a login. - Possible values: block, user_notification, admin_notification. - - admin_notification_frequency : typing.Optional[typing.Sequence[BreachedPasswordDetectionAdminNotificationFrequencyEnum]] - When "admin_notification" is enabled, determines how often email notifications are sent. - Possible values: immediately, daily, weekly, monthly. - - method : typing.Optional[BreachedPasswordDetectionMethodEnum] - - stage : typing.Optional[BreachedPasswordDetectionStage] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[UpdateBreachedPasswordDetectionSettingsResponseContent] - Breached password detection settings successfully updated. - """ - _response = self._client_wrapper.httpx_client.request( - "attack-protection/breached-password-detection", - method="PATCH", - json={ - "enabled": enabled, - "shields": shields, - "admin_notification_frequency": admin_notification_frequency, - "method": method, - "stage": convert_and_respect_annotation_metadata( - object_=stage, annotation=BreachedPasswordDetectionStage, direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateBreachedPasswordDetectionSettingsResponseContent, - parse_obj_as( - type_=UpdateBreachedPasswordDetectionSettingsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawBreachedPasswordDetectionClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def get( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetBreachedPasswordDetectionSettingsResponseContent]: - """ - Retrieve details of the Breached Password Detection configuration of your tenant. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetBreachedPasswordDetectionSettingsResponseContent] - Breached password detection settings successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - "attack-protection/breached-password-detection", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetBreachedPasswordDetectionSettingsResponseContent, - parse_obj_as( - type_=GetBreachedPasswordDetectionSettingsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def update( - self, - *, - enabled: typing.Optional[bool] = OMIT, - shields: typing.Optional[typing.Sequence[BreachedPasswordDetectionShieldsEnum]] = OMIT, - admin_notification_frequency: typing.Optional[ - typing.Sequence[BreachedPasswordDetectionAdminNotificationFrequencyEnum] - ] = OMIT, - method: typing.Optional[BreachedPasswordDetectionMethodEnum] = OMIT, - stage: typing.Optional[BreachedPasswordDetectionStage] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[UpdateBreachedPasswordDetectionSettingsResponseContent]: - """ - Update details of the Breached Password Detection configuration of your tenant. - - Parameters - ---------- - enabled : typing.Optional[bool] - Whether or not breached password detection is active. - - shields : typing.Optional[typing.Sequence[BreachedPasswordDetectionShieldsEnum]] - Action to take when a breached password is detected during a login. - Possible values: block, user_notification, admin_notification. - - admin_notification_frequency : typing.Optional[typing.Sequence[BreachedPasswordDetectionAdminNotificationFrequencyEnum]] - When "admin_notification" is enabled, determines how often email notifications are sent. - Possible values: immediately, daily, weekly, monthly. - - method : typing.Optional[BreachedPasswordDetectionMethodEnum] - - stage : typing.Optional[BreachedPasswordDetectionStage] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[UpdateBreachedPasswordDetectionSettingsResponseContent] - Breached password detection settings successfully updated. - """ - _response = await self._client_wrapper.httpx_client.request( - "attack-protection/breached-password-detection", - method="PATCH", - json={ - "enabled": enabled, - "shields": shields, - "admin_notification_frequency": admin_notification_frequency, - "method": method, - "stage": convert_and_respect_annotation_metadata( - object_=stage, annotation=BreachedPasswordDetectionStage, direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateBreachedPasswordDetectionSettingsResponseContent, - parse_obj_as( - type_=UpdateBreachedPasswordDetectionSettingsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/attack_protection/brute_force_protection/__init__.py b/src/auth0/management/attack_protection/brute_force_protection/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/attack_protection/brute_force_protection/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/attack_protection/brute_force_protection/client.py b/src/auth0/management/attack_protection/brute_force_protection/client.py deleted file mode 100644 index a23617d3..00000000 --- a/src/auth0/management/attack_protection/brute_force_protection/client.py +++ /dev/null @@ -1,239 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.request_options import RequestOptions -from ...types.brute_force_protection_form_submission_mode_enum import BruteForceProtectionFormSubmissionModeEnum -from ...types.brute_force_protection_mode_enum import BruteForceProtectionModeEnum -from ...types.brute_force_protection_shields_enum import BruteForceProtectionShieldsEnum -from ...types.get_brute_force_settings_response_content import GetBruteForceSettingsResponseContent -from ...types.update_brute_force_settings_response_content import UpdateBruteForceSettingsResponseContent -from .raw_client import AsyncRawBruteForceProtectionClient, RawBruteForceProtectionClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class BruteForceProtectionClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawBruteForceProtectionClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawBruteForceProtectionClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawBruteForceProtectionClient - """ - return self._raw_client - - def get(self, *, request_options: typing.Optional[RequestOptions] = None) -> GetBruteForceSettingsResponseContent: - """ - Retrieve details of the Brute-force Protection configuration of your tenant. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetBruteForceSettingsResponseContent - Brute force configuration successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.attack_protection.brute_force_protection.get() - """ - _response = self._raw_client.get(request_options=request_options) - return _response.data - - def update( - self, - *, - enabled: typing.Optional[bool] = OMIT, - shields: typing.Optional[typing.Sequence[BruteForceProtectionShieldsEnum]] = OMIT, - allowlist: typing.Optional[typing.Sequence[str]] = OMIT, - mode: typing.Optional[BruteForceProtectionModeEnum] = OMIT, - form_submission_mode: typing.Optional[BruteForceProtectionFormSubmissionModeEnum] = OMIT, - max_attempts: typing.Optional[int] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateBruteForceSettingsResponseContent: - """ - Update the Brute-force Protection configuration of your tenant. - - Parameters - ---------- - enabled : typing.Optional[bool] - Whether or not brute force attack protections are active. - - shields : typing.Optional[typing.Sequence[BruteForceProtectionShieldsEnum]] - Action to take when a brute force protection threshold is violated. - Possible values: block, user_notification. - - allowlist : typing.Optional[typing.Sequence[str]] - List of trusted IP addresses that will not have attack protection enforced against them. - - mode : typing.Optional[BruteForceProtectionModeEnum] - - form_submission_mode : typing.Optional[BruteForceProtectionFormSubmissionModeEnum] - - max_attempts : typing.Optional[int] - Maximum number of unsuccessful attempts. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateBruteForceSettingsResponseContent - Brute force configuration successfully updated. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.attack_protection.brute_force_protection.update() - """ - _response = self._raw_client.update( - enabled=enabled, - shields=shields, - allowlist=allowlist, - mode=mode, - form_submission_mode=form_submission_mode, - max_attempts=max_attempts, - request_options=request_options, - ) - return _response.data - - -class AsyncBruteForceProtectionClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawBruteForceProtectionClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawBruteForceProtectionClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawBruteForceProtectionClient - """ - return self._raw_client - - async def get( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetBruteForceSettingsResponseContent: - """ - Retrieve details of the Brute-force Protection configuration of your tenant. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetBruteForceSettingsResponseContent - Brute force configuration successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.attack_protection.brute_force_protection.get() - - - asyncio.run(main()) - """ - _response = await self._raw_client.get(request_options=request_options) - return _response.data - - async def update( - self, - *, - enabled: typing.Optional[bool] = OMIT, - shields: typing.Optional[typing.Sequence[BruteForceProtectionShieldsEnum]] = OMIT, - allowlist: typing.Optional[typing.Sequence[str]] = OMIT, - mode: typing.Optional[BruteForceProtectionModeEnum] = OMIT, - form_submission_mode: typing.Optional[BruteForceProtectionFormSubmissionModeEnum] = OMIT, - max_attempts: typing.Optional[int] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateBruteForceSettingsResponseContent: - """ - Update the Brute-force Protection configuration of your tenant. - - Parameters - ---------- - enabled : typing.Optional[bool] - Whether or not brute force attack protections are active. - - shields : typing.Optional[typing.Sequence[BruteForceProtectionShieldsEnum]] - Action to take when a brute force protection threshold is violated. - Possible values: block, user_notification. - - allowlist : typing.Optional[typing.Sequence[str]] - List of trusted IP addresses that will not have attack protection enforced against them. - - mode : typing.Optional[BruteForceProtectionModeEnum] - - form_submission_mode : typing.Optional[BruteForceProtectionFormSubmissionModeEnum] - - max_attempts : typing.Optional[int] - Maximum number of unsuccessful attempts. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateBruteForceSettingsResponseContent - Brute force configuration successfully updated. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.attack_protection.brute_force_protection.update() - - - asyncio.run(main()) - """ - _response = await self._raw_client.update( - enabled=enabled, - shields=shields, - allowlist=allowlist, - mode=mode, - form_submission_mode=form_submission_mode, - max_attempts=max_attempts, - request_options=request_options, - ) - return _response.data diff --git a/src/auth0/management/attack_protection/brute_force_protection/raw_client.py b/src/auth0/management/attack_protection/brute_force_protection/raw_client.py deleted file mode 100644 index a3c074b4..00000000 --- a/src/auth0/management/attack_protection/brute_force_protection/raw_client.py +++ /dev/null @@ -1,422 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ...core.api_error import ApiError -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.http_response import AsyncHttpResponse, HttpResponse -from ...core.parse_error import ParsingError -from ...core.pydantic_utilities import parse_obj_as -from ...core.request_options import RequestOptions -from ...errors.bad_request_error import BadRequestError -from ...errors.forbidden_error import ForbiddenError -from ...errors.too_many_requests_error import TooManyRequestsError -from ...errors.unauthorized_error import UnauthorizedError -from ...types.brute_force_protection_form_submission_mode_enum import BruteForceProtectionFormSubmissionModeEnum -from ...types.brute_force_protection_mode_enum import BruteForceProtectionModeEnum -from ...types.brute_force_protection_shields_enum import BruteForceProtectionShieldsEnum -from ...types.get_brute_force_settings_response_content import GetBruteForceSettingsResponseContent -from ...types.update_brute_force_settings_response_content import UpdateBruteForceSettingsResponseContent -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawBruteForceProtectionClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def get( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetBruteForceSettingsResponseContent]: - """ - Retrieve details of the Brute-force Protection configuration of your tenant. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetBruteForceSettingsResponseContent] - Brute force configuration successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - "attack-protection/brute-force-protection", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetBruteForceSettingsResponseContent, - parse_obj_as( - type_=GetBruteForceSettingsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def update( - self, - *, - enabled: typing.Optional[bool] = OMIT, - shields: typing.Optional[typing.Sequence[BruteForceProtectionShieldsEnum]] = OMIT, - allowlist: typing.Optional[typing.Sequence[str]] = OMIT, - mode: typing.Optional[BruteForceProtectionModeEnum] = OMIT, - form_submission_mode: typing.Optional[BruteForceProtectionFormSubmissionModeEnum] = OMIT, - max_attempts: typing.Optional[int] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[UpdateBruteForceSettingsResponseContent]: - """ - Update the Brute-force Protection configuration of your tenant. - - Parameters - ---------- - enabled : typing.Optional[bool] - Whether or not brute force attack protections are active. - - shields : typing.Optional[typing.Sequence[BruteForceProtectionShieldsEnum]] - Action to take when a brute force protection threshold is violated. - Possible values: block, user_notification. - - allowlist : typing.Optional[typing.Sequence[str]] - List of trusted IP addresses that will not have attack protection enforced against them. - - mode : typing.Optional[BruteForceProtectionModeEnum] - - form_submission_mode : typing.Optional[BruteForceProtectionFormSubmissionModeEnum] - - max_attempts : typing.Optional[int] - Maximum number of unsuccessful attempts. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[UpdateBruteForceSettingsResponseContent] - Brute force configuration successfully updated. - """ - _response = self._client_wrapper.httpx_client.request( - "attack-protection/brute-force-protection", - method="PATCH", - json={ - "enabled": enabled, - "shields": shields, - "allowlist": allowlist, - "mode": mode, - "form_submission_mode": form_submission_mode, - "max_attempts": max_attempts, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateBruteForceSettingsResponseContent, - parse_obj_as( - type_=UpdateBruteForceSettingsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawBruteForceProtectionClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def get( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetBruteForceSettingsResponseContent]: - """ - Retrieve details of the Brute-force Protection configuration of your tenant. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetBruteForceSettingsResponseContent] - Brute force configuration successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - "attack-protection/brute-force-protection", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetBruteForceSettingsResponseContent, - parse_obj_as( - type_=GetBruteForceSettingsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def update( - self, - *, - enabled: typing.Optional[bool] = OMIT, - shields: typing.Optional[typing.Sequence[BruteForceProtectionShieldsEnum]] = OMIT, - allowlist: typing.Optional[typing.Sequence[str]] = OMIT, - mode: typing.Optional[BruteForceProtectionModeEnum] = OMIT, - form_submission_mode: typing.Optional[BruteForceProtectionFormSubmissionModeEnum] = OMIT, - max_attempts: typing.Optional[int] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[UpdateBruteForceSettingsResponseContent]: - """ - Update the Brute-force Protection configuration of your tenant. - - Parameters - ---------- - enabled : typing.Optional[bool] - Whether or not brute force attack protections are active. - - shields : typing.Optional[typing.Sequence[BruteForceProtectionShieldsEnum]] - Action to take when a brute force protection threshold is violated. - Possible values: block, user_notification. - - allowlist : typing.Optional[typing.Sequence[str]] - List of trusted IP addresses that will not have attack protection enforced against them. - - mode : typing.Optional[BruteForceProtectionModeEnum] - - form_submission_mode : typing.Optional[BruteForceProtectionFormSubmissionModeEnum] - - max_attempts : typing.Optional[int] - Maximum number of unsuccessful attempts. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[UpdateBruteForceSettingsResponseContent] - Brute force configuration successfully updated. - """ - _response = await self._client_wrapper.httpx_client.request( - "attack-protection/brute-force-protection", - method="PATCH", - json={ - "enabled": enabled, - "shields": shields, - "allowlist": allowlist, - "mode": mode, - "form_submission_mode": form_submission_mode, - "max_attempts": max_attempts, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateBruteForceSettingsResponseContent, - parse_obj_as( - type_=UpdateBruteForceSettingsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/attack_protection/captcha/__init__.py b/src/auth0/management/attack_protection/captcha/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/attack_protection/captcha/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/attack_protection/captcha/client.py b/src/auth0/management/attack_protection/captcha/client.py deleted file mode 100644 index 1080994b..00000000 --- a/src/auth0/management/attack_protection/captcha/client.py +++ /dev/null @@ -1,256 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.request_options import RequestOptions -from ...types.attack_protection_captcha_auth_challenge_request import AttackProtectionCaptchaAuthChallengeRequest -from ...types.attack_protection_captcha_provider_id import AttackProtectionCaptchaProviderId -from ...types.attack_protection_captcha_simple_captcha_response_content import ( - AttackProtectionCaptchaSimpleCaptchaResponseContent, -) -from ...types.attack_protection_update_captcha_arkose import AttackProtectionUpdateCaptchaArkose -from ...types.attack_protection_update_captcha_friendly_captcha import AttackProtectionUpdateCaptchaFriendlyCaptcha -from ...types.attack_protection_update_captcha_hcaptcha import AttackProtectionUpdateCaptchaHcaptcha -from ...types.attack_protection_update_captcha_recaptcha_enterprise import ( - AttackProtectionUpdateCaptchaRecaptchaEnterprise, -) -from ...types.attack_protection_update_captcha_recaptcha_v_2 import AttackProtectionUpdateCaptchaRecaptchaV2 -from ...types.get_attack_protection_captcha_response_content import GetAttackProtectionCaptchaResponseContent -from ...types.update_attack_protection_captcha_response_content import UpdateAttackProtectionCaptchaResponseContent -from .raw_client import AsyncRawCaptchaClient, RawCaptchaClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class CaptchaClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawCaptchaClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawCaptchaClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawCaptchaClient - """ - return self._raw_client - - def get( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetAttackProtectionCaptchaResponseContent: - """ - Get the CAPTCHA configuration for your client. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetAttackProtectionCaptchaResponseContent - Captcha configuration successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.attack_protection.captcha.get() - """ - _response = self._raw_client.get(request_options=request_options) - return _response.data - - def update( - self, - *, - active_provider_id: typing.Optional[AttackProtectionCaptchaProviderId] = OMIT, - arkose: typing.Optional[AttackProtectionUpdateCaptchaArkose] = OMIT, - auth_challenge: typing.Optional[AttackProtectionCaptchaAuthChallengeRequest] = OMIT, - hcaptcha: typing.Optional[AttackProtectionUpdateCaptchaHcaptcha] = OMIT, - friendly_captcha: typing.Optional[AttackProtectionUpdateCaptchaFriendlyCaptcha] = OMIT, - recaptcha_enterprise: typing.Optional[AttackProtectionUpdateCaptchaRecaptchaEnterprise] = OMIT, - recaptcha_v_2: typing.Optional[AttackProtectionUpdateCaptchaRecaptchaV2] = OMIT, - simple_captcha: typing.Optional[AttackProtectionCaptchaSimpleCaptchaResponseContent] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateAttackProtectionCaptchaResponseContent: - """ - Update existing CAPTCHA configuration for your client. - - Parameters - ---------- - active_provider_id : typing.Optional[AttackProtectionCaptchaProviderId] - - arkose : typing.Optional[AttackProtectionUpdateCaptchaArkose] - - auth_challenge : typing.Optional[AttackProtectionCaptchaAuthChallengeRequest] - - hcaptcha : typing.Optional[AttackProtectionUpdateCaptchaHcaptcha] - - friendly_captcha : typing.Optional[AttackProtectionUpdateCaptchaFriendlyCaptcha] - - recaptcha_enterprise : typing.Optional[AttackProtectionUpdateCaptchaRecaptchaEnterprise] - - recaptcha_v_2 : typing.Optional[AttackProtectionUpdateCaptchaRecaptchaV2] - - simple_captcha : typing.Optional[AttackProtectionCaptchaSimpleCaptchaResponseContent] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateAttackProtectionCaptchaResponseContent - Captcha configuration successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.attack_protection.captcha.update() - """ - _response = self._raw_client.update( - active_provider_id=active_provider_id, - arkose=arkose, - auth_challenge=auth_challenge, - hcaptcha=hcaptcha, - friendly_captcha=friendly_captcha, - recaptcha_enterprise=recaptcha_enterprise, - recaptcha_v_2=recaptcha_v_2, - simple_captcha=simple_captcha, - request_options=request_options, - ) - return _response.data - - -class AsyncCaptchaClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawCaptchaClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawCaptchaClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawCaptchaClient - """ - return self._raw_client - - async def get( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetAttackProtectionCaptchaResponseContent: - """ - Get the CAPTCHA configuration for your client. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetAttackProtectionCaptchaResponseContent - Captcha configuration successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.attack_protection.captcha.get() - - - asyncio.run(main()) - """ - _response = await self._raw_client.get(request_options=request_options) - return _response.data - - async def update( - self, - *, - active_provider_id: typing.Optional[AttackProtectionCaptchaProviderId] = OMIT, - arkose: typing.Optional[AttackProtectionUpdateCaptchaArkose] = OMIT, - auth_challenge: typing.Optional[AttackProtectionCaptchaAuthChallengeRequest] = OMIT, - hcaptcha: typing.Optional[AttackProtectionUpdateCaptchaHcaptcha] = OMIT, - friendly_captcha: typing.Optional[AttackProtectionUpdateCaptchaFriendlyCaptcha] = OMIT, - recaptcha_enterprise: typing.Optional[AttackProtectionUpdateCaptchaRecaptchaEnterprise] = OMIT, - recaptcha_v_2: typing.Optional[AttackProtectionUpdateCaptchaRecaptchaV2] = OMIT, - simple_captcha: typing.Optional[AttackProtectionCaptchaSimpleCaptchaResponseContent] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateAttackProtectionCaptchaResponseContent: - """ - Update existing CAPTCHA configuration for your client. - - Parameters - ---------- - active_provider_id : typing.Optional[AttackProtectionCaptchaProviderId] - - arkose : typing.Optional[AttackProtectionUpdateCaptchaArkose] - - auth_challenge : typing.Optional[AttackProtectionCaptchaAuthChallengeRequest] - - hcaptcha : typing.Optional[AttackProtectionUpdateCaptchaHcaptcha] - - friendly_captcha : typing.Optional[AttackProtectionUpdateCaptchaFriendlyCaptcha] - - recaptcha_enterprise : typing.Optional[AttackProtectionUpdateCaptchaRecaptchaEnterprise] - - recaptcha_v_2 : typing.Optional[AttackProtectionUpdateCaptchaRecaptchaV2] - - simple_captcha : typing.Optional[AttackProtectionCaptchaSimpleCaptchaResponseContent] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateAttackProtectionCaptchaResponseContent - Captcha configuration successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.attack_protection.captcha.update() - - - asyncio.run(main()) - """ - _response = await self._raw_client.update( - active_provider_id=active_provider_id, - arkose=arkose, - auth_challenge=auth_challenge, - hcaptcha=hcaptcha, - friendly_captcha=friendly_captcha, - recaptcha_enterprise=recaptcha_enterprise, - recaptcha_v_2=recaptcha_v_2, - simple_captcha=simple_captcha, - request_options=request_options, - ) - return _response.data diff --git a/src/auth0/management/attack_protection/captcha/raw_client.py b/src/auth0/management/attack_protection/captcha/raw_client.py deleted file mode 100644 index 5b599b4e..00000000 --- a/src/auth0/management/attack_protection/captcha/raw_client.py +++ /dev/null @@ -1,488 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ...core.api_error import ApiError -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.http_response import AsyncHttpResponse, HttpResponse -from ...core.parse_error import ParsingError -from ...core.pydantic_utilities import parse_obj_as -from ...core.request_options import RequestOptions -from ...core.serialization import convert_and_respect_annotation_metadata -from ...errors.forbidden_error import ForbiddenError -from ...errors.not_found_error import NotFoundError -from ...errors.too_many_requests_error import TooManyRequestsError -from ...errors.unauthorized_error import UnauthorizedError -from ...types.attack_protection_captcha_auth_challenge_request import AttackProtectionCaptchaAuthChallengeRequest -from ...types.attack_protection_captcha_provider_id import AttackProtectionCaptchaProviderId -from ...types.attack_protection_captcha_simple_captcha_response_content import ( - AttackProtectionCaptchaSimpleCaptchaResponseContent, -) -from ...types.attack_protection_update_captcha_arkose import AttackProtectionUpdateCaptchaArkose -from ...types.attack_protection_update_captcha_friendly_captcha import AttackProtectionUpdateCaptchaFriendlyCaptcha -from ...types.attack_protection_update_captcha_hcaptcha import AttackProtectionUpdateCaptchaHcaptcha -from ...types.attack_protection_update_captcha_recaptcha_enterprise import ( - AttackProtectionUpdateCaptchaRecaptchaEnterprise, -) -from ...types.attack_protection_update_captcha_recaptcha_v_2 import AttackProtectionUpdateCaptchaRecaptchaV2 -from ...types.get_attack_protection_captcha_response_content import GetAttackProtectionCaptchaResponseContent -from ...types.update_attack_protection_captcha_response_content import UpdateAttackProtectionCaptchaResponseContent -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawCaptchaClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def get( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetAttackProtectionCaptchaResponseContent]: - """ - Get the CAPTCHA configuration for your client. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetAttackProtectionCaptchaResponseContent] - Captcha configuration successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - "attack-protection/captcha", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetAttackProtectionCaptchaResponseContent, - parse_obj_as( - type_=GetAttackProtectionCaptchaResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def update( - self, - *, - active_provider_id: typing.Optional[AttackProtectionCaptchaProviderId] = OMIT, - arkose: typing.Optional[AttackProtectionUpdateCaptchaArkose] = OMIT, - auth_challenge: typing.Optional[AttackProtectionCaptchaAuthChallengeRequest] = OMIT, - hcaptcha: typing.Optional[AttackProtectionUpdateCaptchaHcaptcha] = OMIT, - friendly_captcha: typing.Optional[AttackProtectionUpdateCaptchaFriendlyCaptcha] = OMIT, - recaptcha_enterprise: typing.Optional[AttackProtectionUpdateCaptchaRecaptchaEnterprise] = OMIT, - recaptcha_v_2: typing.Optional[AttackProtectionUpdateCaptchaRecaptchaV2] = OMIT, - simple_captcha: typing.Optional[AttackProtectionCaptchaSimpleCaptchaResponseContent] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[UpdateAttackProtectionCaptchaResponseContent]: - """ - Update existing CAPTCHA configuration for your client. - - Parameters - ---------- - active_provider_id : typing.Optional[AttackProtectionCaptchaProviderId] - - arkose : typing.Optional[AttackProtectionUpdateCaptchaArkose] - - auth_challenge : typing.Optional[AttackProtectionCaptchaAuthChallengeRequest] - - hcaptcha : typing.Optional[AttackProtectionUpdateCaptchaHcaptcha] - - friendly_captcha : typing.Optional[AttackProtectionUpdateCaptchaFriendlyCaptcha] - - recaptcha_enterprise : typing.Optional[AttackProtectionUpdateCaptchaRecaptchaEnterprise] - - recaptcha_v_2 : typing.Optional[AttackProtectionUpdateCaptchaRecaptchaV2] - - simple_captcha : typing.Optional[AttackProtectionCaptchaSimpleCaptchaResponseContent] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[UpdateAttackProtectionCaptchaResponseContent] - Captcha configuration successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - "attack-protection/captcha", - method="PATCH", - json={ - "active_provider_id": active_provider_id, - "arkose": convert_and_respect_annotation_metadata( - object_=arkose, annotation=AttackProtectionUpdateCaptchaArkose, direction="write" - ), - "auth_challenge": convert_and_respect_annotation_metadata( - object_=auth_challenge, annotation=AttackProtectionCaptchaAuthChallengeRequest, direction="write" - ), - "hcaptcha": convert_and_respect_annotation_metadata( - object_=hcaptcha, annotation=AttackProtectionUpdateCaptchaHcaptcha, direction="write" - ), - "friendly_captcha": convert_and_respect_annotation_metadata( - object_=friendly_captcha, annotation=AttackProtectionUpdateCaptchaFriendlyCaptcha, direction="write" - ), - "recaptcha_enterprise": convert_and_respect_annotation_metadata( - object_=recaptcha_enterprise, - annotation=AttackProtectionUpdateCaptchaRecaptchaEnterprise, - direction="write", - ), - "recaptcha_v2": convert_and_respect_annotation_metadata( - object_=recaptcha_v_2, annotation=AttackProtectionUpdateCaptchaRecaptchaV2, direction="write" - ), - "simple_captcha": simple_captcha, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateAttackProtectionCaptchaResponseContent, - parse_obj_as( - type_=UpdateAttackProtectionCaptchaResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawCaptchaClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def get( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetAttackProtectionCaptchaResponseContent]: - """ - Get the CAPTCHA configuration for your client. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetAttackProtectionCaptchaResponseContent] - Captcha configuration successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - "attack-protection/captcha", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetAttackProtectionCaptchaResponseContent, - parse_obj_as( - type_=GetAttackProtectionCaptchaResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def update( - self, - *, - active_provider_id: typing.Optional[AttackProtectionCaptchaProviderId] = OMIT, - arkose: typing.Optional[AttackProtectionUpdateCaptchaArkose] = OMIT, - auth_challenge: typing.Optional[AttackProtectionCaptchaAuthChallengeRequest] = OMIT, - hcaptcha: typing.Optional[AttackProtectionUpdateCaptchaHcaptcha] = OMIT, - friendly_captcha: typing.Optional[AttackProtectionUpdateCaptchaFriendlyCaptcha] = OMIT, - recaptcha_enterprise: typing.Optional[AttackProtectionUpdateCaptchaRecaptchaEnterprise] = OMIT, - recaptcha_v_2: typing.Optional[AttackProtectionUpdateCaptchaRecaptchaV2] = OMIT, - simple_captcha: typing.Optional[AttackProtectionCaptchaSimpleCaptchaResponseContent] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[UpdateAttackProtectionCaptchaResponseContent]: - """ - Update existing CAPTCHA configuration for your client. - - Parameters - ---------- - active_provider_id : typing.Optional[AttackProtectionCaptchaProviderId] - - arkose : typing.Optional[AttackProtectionUpdateCaptchaArkose] - - auth_challenge : typing.Optional[AttackProtectionCaptchaAuthChallengeRequest] - - hcaptcha : typing.Optional[AttackProtectionUpdateCaptchaHcaptcha] - - friendly_captcha : typing.Optional[AttackProtectionUpdateCaptchaFriendlyCaptcha] - - recaptcha_enterprise : typing.Optional[AttackProtectionUpdateCaptchaRecaptchaEnterprise] - - recaptcha_v_2 : typing.Optional[AttackProtectionUpdateCaptchaRecaptchaV2] - - simple_captcha : typing.Optional[AttackProtectionCaptchaSimpleCaptchaResponseContent] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[UpdateAttackProtectionCaptchaResponseContent] - Captcha configuration successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - "attack-protection/captcha", - method="PATCH", - json={ - "active_provider_id": active_provider_id, - "arkose": convert_and_respect_annotation_metadata( - object_=arkose, annotation=AttackProtectionUpdateCaptchaArkose, direction="write" - ), - "auth_challenge": convert_and_respect_annotation_metadata( - object_=auth_challenge, annotation=AttackProtectionCaptchaAuthChallengeRequest, direction="write" - ), - "hcaptcha": convert_and_respect_annotation_metadata( - object_=hcaptcha, annotation=AttackProtectionUpdateCaptchaHcaptcha, direction="write" - ), - "friendly_captcha": convert_and_respect_annotation_metadata( - object_=friendly_captcha, annotation=AttackProtectionUpdateCaptchaFriendlyCaptcha, direction="write" - ), - "recaptcha_enterprise": convert_and_respect_annotation_metadata( - object_=recaptcha_enterprise, - annotation=AttackProtectionUpdateCaptchaRecaptchaEnterprise, - direction="write", - ), - "recaptcha_v2": convert_and_respect_annotation_metadata( - object_=recaptcha_v_2, annotation=AttackProtectionUpdateCaptchaRecaptchaV2, direction="write" - ), - "simple_captcha": simple_captcha, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateAttackProtectionCaptchaResponseContent, - parse_obj_as( - type_=UpdateAttackProtectionCaptchaResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/attack_protection/client.py b/src/auth0/management/attack_protection/client.py deleted file mode 100644 index a2f3cc95..00000000 --- a/src/auth0/management/attack_protection/client.py +++ /dev/null @@ -1,163 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .raw_client import AsyncRawAttackProtectionClient, RawAttackProtectionClient - -if typing.TYPE_CHECKING: - from .bot_detection.client import AsyncBotDetectionClient, BotDetectionClient - from .breached_password_detection.client import ( - AsyncBreachedPasswordDetectionClient, - BreachedPasswordDetectionClient, - ) - from .brute_force_protection.client import AsyncBruteForceProtectionClient, BruteForceProtectionClient - from .captcha.client import AsyncCaptchaClient, CaptchaClient - from .phone_provider_protection.client import AsyncPhoneProviderProtectionClient, PhoneProviderProtectionClient - from .suspicious_ip_throttling.client import AsyncSuspiciousIpThrottlingClient, SuspiciousIpThrottlingClient - - -class AttackProtectionClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawAttackProtectionClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._bot_detection: typing.Optional[BotDetectionClient] = None - self._breached_password_detection: typing.Optional[BreachedPasswordDetectionClient] = None - self._brute_force_protection: typing.Optional[BruteForceProtectionClient] = None - self._captcha: typing.Optional[CaptchaClient] = None - self._phone_provider_protection: typing.Optional[PhoneProviderProtectionClient] = None - self._suspicious_ip_throttling: typing.Optional[SuspiciousIpThrottlingClient] = None - - @property - def with_raw_response(self) -> RawAttackProtectionClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawAttackProtectionClient - """ - return self._raw_client - - @property - def bot_detection(self): - if self._bot_detection is None: - from .bot_detection.client import BotDetectionClient # noqa: E402 - - self._bot_detection = BotDetectionClient(client_wrapper=self._client_wrapper) - return self._bot_detection - - @property - def breached_password_detection(self): - if self._breached_password_detection is None: - from .breached_password_detection.client import BreachedPasswordDetectionClient # noqa: E402 - - self._breached_password_detection = BreachedPasswordDetectionClient(client_wrapper=self._client_wrapper) - return self._breached_password_detection - - @property - def brute_force_protection(self): - if self._brute_force_protection is None: - from .brute_force_protection.client import BruteForceProtectionClient # noqa: E402 - - self._brute_force_protection = BruteForceProtectionClient(client_wrapper=self._client_wrapper) - return self._brute_force_protection - - @property - def captcha(self): - if self._captcha is None: - from .captcha.client import CaptchaClient # noqa: E402 - - self._captcha = CaptchaClient(client_wrapper=self._client_wrapper) - return self._captcha - - @property - def phone_provider_protection(self): - if self._phone_provider_protection is None: - from .phone_provider_protection.client import PhoneProviderProtectionClient # noqa: E402 - - self._phone_provider_protection = PhoneProviderProtectionClient(client_wrapper=self._client_wrapper) - return self._phone_provider_protection - - @property - def suspicious_ip_throttling(self): - if self._suspicious_ip_throttling is None: - from .suspicious_ip_throttling.client import SuspiciousIpThrottlingClient # noqa: E402 - - self._suspicious_ip_throttling = SuspiciousIpThrottlingClient(client_wrapper=self._client_wrapper) - return self._suspicious_ip_throttling - - -class AsyncAttackProtectionClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawAttackProtectionClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._bot_detection: typing.Optional[AsyncBotDetectionClient] = None - self._breached_password_detection: typing.Optional[AsyncBreachedPasswordDetectionClient] = None - self._brute_force_protection: typing.Optional[AsyncBruteForceProtectionClient] = None - self._captcha: typing.Optional[AsyncCaptchaClient] = None - self._phone_provider_protection: typing.Optional[AsyncPhoneProviderProtectionClient] = None - self._suspicious_ip_throttling: typing.Optional[AsyncSuspiciousIpThrottlingClient] = None - - @property - def with_raw_response(self) -> AsyncRawAttackProtectionClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawAttackProtectionClient - """ - return self._raw_client - - @property - def bot_detection(self): - if self._bot_detection is None: - from .bot_detection.client import AsyncBotDetectionClient # noqa: E402 - - self._bot_detection = AsyncBotDetectionClient(client_wrapper=self._client_wrapper) - return self._bot_detection - - @property - def breached_password_detection(self): - if self._breached_password_detection is None: - from .breached_password_detection.client import AsyncBreachedPasswordDetectionClient # noqa: E402 - - self._breached_password_detection = AsyncBreachedPasswordDetectionClient( - client_wrapper=self._client_wrapper - ) - return self._breached_password_detection - - @property - def brute_force_protection(self): - if self._brute_force_protection is None: - from .brute_force_protection.client import AsyncBruteForceProtectionClient # noqa: E402 - - self._brute_force_protection = AsyncBruteForceProtectionClient(client_wrapper=self._client_wrapper) - return self._brute_force_protection - - @property - def captcha(self): - if self._captcha is None: - from .captcha.client import AsyncCaptchaClient # noqa: E402 - - self._captcha = AsyncCaptchaClient(client_wrapper=self._client_wrapper) - return self._captcha - - @property - def phone_provider_protection(self): - if self._phone_provider_protection is None: - from .phone_provider_protection.client import AsyncPhoneProviderProtectionClient # noqa: E402 - - self._phone_provider_protection = AsyncPhoneProviderProtectionClient(client_wrapper=self._client_wrapper) - return self._phone_provider_protection - - @property - def suspicious_ip_throttling(self): - if self._suspicious_ip_throttling is None: - from .suspicious_ip_throttling.client import AsyncSuspiciousIpThrottlingClient # noqa: E402 - - self._suspicious_ip_throttling = AsyncSuspiciousIpThrottlingClient(client_wrapper=self._client_wrapper) - return self._suspicious_ip_throttling diff --git a/src/auth0/management/attack_protection/phone_provider_protection/__init__.py b/src/auth0/management/attack_protection/phone_provider_protection/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/attack_protection/phone_provider_protection/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/attack_protection/phone_provider_protection/client.py b/src/auth0/management/attack_protection/phone_provider_protection/client.py deleted file mode 100644 index e986a922..00000000 --- a/src/auth0/management/attack_protection/phone_provider_protection/client.py +++ /dev/null @@ -1,187 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.request_options import RequestOptions -from ...types.get_phone_provider_protection_response_content import GetPhoneProviderProtectionResponseContent -from ...types.patch_phone_provider_protection_response_content import PatchPhoneProviderProtectionResponseContent -from ...types.phone_provider_protection_backoff_strategy_enum import PhoneProviderProtectionBackoffStrategyEnum -from .raw_client import AsyncRawPhoneProviderProtectionClient, RawPhoneProviderProtectionClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class PhoneProviderProtectionClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawPhoneProviderProtectionClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawPhoneProviderProtectionClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawPhoneProviderProtectionClient - """ - return self._raw_client - - def get( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetPhoneProviderProtectionResponseContent: - """ - Get the phone provider protection configuration for a tenant. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetPhoneProviderProtectionResponseContent - Phone provider protection configuration successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.attack_protection.phone_provider_protection.get() - """ - _response = self._raw_client.get(request_options=request_options) - return _response.data - - def patch( - self, - *, - type: PhoneProviderProtectionBackoffStrategyEnum, - request_options: typing.Optional[RequestOptions] = None, - ) -> PatchPhoneProviderProtectionResponseContent: - """ - Update the phone provider protection configuration for a tenant. - - Parameters - ---------- - type : PhoneProviderProtectionBackoffStrategyEnum - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PatchPhoneProviderProtectionResponseContent - Phone provider protection configuration successfully updated. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.attack_protection.phone_provider_protection.patch( - type="exponential", - ) - """ - _response = self._raw_client.patch(type=type, request_options=request_options) - return _response.data - - -class AsyncPhoneProviderProtectionClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawPhoneProviderProtectionClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawPhoneProviderProtectionClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawPhoneProviderProtectionClient - """ - return self._raw_client - - async def get( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetPhoneProviderProtectionResponseContent: - """ - Get the phone provider protection configuration for a tenant. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetPhoneProviderProtectionResponseContent - Phone provider protection configuration successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.attack_protection.phone_provider_protection.get() - - - asyncio.run(main()) - """ - _response = await self._raw_client.get(request_options=request_options) - return _response.data - - async def patch( - self, - *, - type: PhoneProviderProtectionBackoffStrategyEnum, - request_options: typing.Optional[RequestOptions] = None, - ) -> PatchPhoneProviderProtectionResponseContent: - """ - Update the phone provider protection configuration for a tenant. - - Parameters - ---------- - type : PhoneProviderProtectionBackoffStrategyEnum - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PatchPhoneProviderProtectionResponseContent - Phone provider protection configuration successfully updated. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.attack_protection.phone_provider_protection.patch( - type="exponential", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.patch(type=type, request_options=request_options) - return _response.data diff --git a/src/auth0/management/attack_protection/phone_provider_protection/raw_client.py b/src/auth0/management/attack_protection/phone_provider_protection/raw_client.py deleted file mode 100644 index afadc7ad..00000000 --- a/src/auth0/management/attack_protection/phone_provider_protection/raw_client.py +++ /dev/null @@ -1,370 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ...core.api_error import ApiError -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.http_response import AsyncHttpResponse, HttpResponse -from ...core.parse_error import ParsingError -from ...core.pydantic_utilities import parse_obj_as -from ...core.request_options import RequestOptions -from ...errors.forbidden_error import ForbiddenError -from ...errors.not_found_error import NotFoundError -from ...errors.too_many_requests_error import TooManyRequestsError -from ...errors.unauthorized_error import UnauthorizedError -from ...types.get_phone_provider_protection_response_content import GetPhoneProviderProtectionResponseContent -from ...types.patch_phone_provider_protection_response_content import PatchPhoneProviderProtectionResponseContent -from ...types.phone_provider_protection_backoff_strategy_enum import PhoneProviderProtectionBackoffStrategyEnum -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawPhoneProviderProtectionClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def get( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetPhoneProviderProtectionResponseContent]: - """ - Get the phone provider protection configuration for a tenant. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetPhoneProviderProtectionResponseContent] - Phone provider protection configuration successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - "attack-protection/phone-provider-protection", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetPhoneProviderProtectionResponseContent, - parse_obj_as( - type_=GetPhoneProviderProtectionResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def patch( - self, - *, - type: PhoneProviderProtectionBackoffStrategyEnum, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PatchPhoneProviderProtectionResponseContent]: - """ - Update the phone provider protection configuration for a tenant. - - Parameters - ---------- - type : PhoneProviderProtectionBackoffStrategyEnum - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PatchPhoneProviderProtectionResponseContent] - Phone provider protection configuration successfully updated. - """ - _response = self._client_wrapper.httpx_client.request( - "attack-protection/phone-provider-protection", - method="PATCH", - json={ - "type": type, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PatchPhoneProviderProtectionResponseContent, - parse_obj_as( - type_=PatchPhoneProviderProtectionResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawPhoneProviderProtectionClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def get( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetPhoneProviderProtectionResponseContent]: - """ - Get the phone provider protection configuration for a tenant. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetPhoneProviderProtectionResponseContent] - Phone provider protection configuration successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - "attack-protection/phone-provider-protection", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetPhoneProviderProtectionResponseContent, - parse_obj_as( - type_=GetPhoneProviderProtectionResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def patch( - self, - *, - type: PhoneProviderProtectionBackoffStrategyEnum, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PatchPhoneProviderProtectionResponseContent]: - """ - Update the phone provider protection configuration for a tenant. - - Parameters - ---------- - type : PhoneProviderProtectionBackoffStrategyEnum - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PatchPhoneProviderProtectionResponseContent] - Phone provider protection configuration successfully updated. - """ - _response = await self._client_wrapper.httpx_client.request( - "attack-protection/phone-provider-protection", - method="PATCH", - json={ - "type": type, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PatchPhoneProviderProtectionResponseContent, - parse_obj_as( - type_=PatchPhoneProviderProtectionResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/attack_protection/raw_client.py b/src/auth0/management/attack_protection/raw_client.py deleted file mode 100644 index e354a62f..00000000 --- a/src/auth0/management/attack_protection/raw_client.py +++ /dev/null @@ -1,13 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper - - -class RawAttackProtectionClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - -class AsyncRawAttackProtectionClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper diff --git a/src/auth0/management/attack_protection/suspicious_ip_throttling/__init__.py b/src/auth0/management/attack_protection/suspicious_ip_throttling/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/attack_protection/suspicious_ip_throttling/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/attack_protection/suspicious_ip_throttling/client.py b/src/auth0/management/attack_protection/suspicious_ip_throttling/client.py deleted file mode 100644 index 54583e68..00000000 --- a/src/auth0/management/attack_protection/suspicious_ip_throttling/client.py +++ /dev/null @@ -1,217 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.request_options import RequestOptions -from ...types.get_suspicious_ip_throttling_settings_response_content import ( - GetSuspiciousIpThrottlingSettingsResponseContent, -) -from ...types.suspicious_ip_throttling_allowlist import SuspiciousIpThrottlingAllowlist -from ...types.suspicious_ip_throttling_shields_enum import SuspiciousIpThrottlingShieldsEnum -from ...types.suspicious_ip_throttling_stage import SuspiciousIpThrottlingStage -from ...types.update_suspicious_ip_throttling_settings_response_content import ( - UpdateSuspiciousIpThrottlingSettingsResponseContent, -) -from .raw_client import AsyncRawSuspiciousIpThrottlingClient, RawSuspiciousIpThrottlingClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class SuspiciousIpThrottlingClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawSuspiciousIpThrottlingClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawSuspiciousIpThrottlingClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawSuspiciousIpThrottlingClient - """ - return self._raw_client - - def get( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetSuspiciousIpThrottlingSettingsResponseContent: - """ - Retrieve details of the Suspicious IP Throttling configuration of your tenant. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetSuspiciousIpThrottlingSettingsResponseContent - Suspicious IP throttling configuration successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.attack_protection.suspicious_ip_throttling.get() - """ - _response = self._raw_client.get(request_options=request_options) - return _response.data - - def update( - self, - *, - enabled: typing.Optional[bool] = OMIT, - shields: typing.Optional[typing.Sequence[SuspiciousIpThrottlingShieldsEnum]] = OMIT, - allowlist: typing.Optional[SuspiciousIpThrottlingAllowlist] = OMIT, - stage: typing.Optional[SuspiciousIpThrottlingStage] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateSuspiciousIpThrottlingSettingsResponseContent: - """ - Update the details of the Suspicious IP Throttling configuration of your tenant. - - Parameters - ---------- - enabled : typing.Optional[bool] - Whether or not suspicious IP throttling attack protections are active. - - shields : typing.Optional[typing.Sequence[SuspiciousIpThrottlingShieldsEnum]] - Action to take when a suspicious IP throttling threshold is violated. - Possible values: block, admin_notification. - - allowlist : typing.Optional[SuspiciousIpThrottlingAllowlist] - - stage : typing.Optional[SuspiciousIpThrottlingStage] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateSuspiciousIpThrottlingSettingsResponseContent - Suspicious IP throttling configuration successfully updated. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.attack_protection.suspicious_ip_throttling.update() - """ - _response = self._raw_client.update( - enabled=enabled, shields=shields, allowlist=allowlist, stage=stage, request_options=request_options - ) - return _response.data - - -class AsyncSuspiciousIpThrottlingClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawSuspiciousIpThrottlingClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawSuspiciousIpThrottlingClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawSuspiciousIpThrottlingClient - """ - return self._raw_client - - async def get( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetSuspiciousIpThrottlingSettingsResponseContent: - """ - Retrieve details of the Suspicious IP Throttling configuration of your tenant. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetSuspiciousIpThrottlingSettingsResponseContent - Suspicious IP throttling configuration successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.attack_protection.suspicious_ip_throttling.get() - - - asyncio.run(main()) - """ - _response = await self._raw_client.get(request_options=request_options) - return _response.data - - async def update( - self, - *, - enabled: typing.Optional[bool] = OMIT, - shields: typing.Optional[typing.Sequence[SuspiciousIpThrottlingShieldsEnum]] = OMIT, - allowlist: typing.Optional[SuspiciousIpThrottlingAllowlist] = OMIT, - stage: typing.Optional[SuspiciousIpThrottlingStage] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateSuspiciousIpThrottlingSettingsResponseContent: - """ - Update the details of the Suspicious IP Throttling configuration of your tenant. - - Parameters - ---------- - enabled : typing.Optional[bool] - Whether or not suspicious IP throttling attack protections are active. - - shields : typing.Optional[typing.Sequence[SuspiciousIpThrottlingShieldsEnum]] - Action to take when a suspicious IP throttling threshold is violated. - Possible values: block, admin_notification. - - allowlist : typing.Optional[SuspiciousIpThrottlingAllowlist] - - stage : typing.Optional[SuspiciousIpThrottlingStage] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateSuspiciousIpThrottlingSettingsResponseContent - Suspicious IP throttling configuration successfully updated. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.attack_protection.suspicious_ip_throttling.update() - - - asyncio.run(main()) - """ - _response = await self._raw_client.update( - enabled=enabled, shields=shields, allowlist=allowlist, stage=stage, request_options=request_options - ) - return _response.data diff --git a/src/auth0/management/attack_protection/suspicious_ip_throttling/raw_client.py b/src/auth0/management/attack_protection/suspicious_ip_throttling/raw_client.py deleted file mode 100644 index b57078d0..00000000 --- a/src/auth0/management/attack_protection/suspicious_ip_throttling/raw_client.py +++ /dev/null @@ -1,411 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ...core.api_error import ApiError -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.http_response import AsyncHttpResponse, HttpResponse -from ...core.parse_error import ParsingError -from ...core.pydantic_utilities import parse_obj_as -from ...core.request_options import RequestOptions -from ...core.serialization import convert_and_respect_annotation_metadata -from ...errors.bad_request_error import BadRequestError -from ...errors.forbidden_error import ForbiddenError -from ...errors.too_many_requests_error import TooManyRequestsError -from ...errors.unauthorized_error import UnauthorizedError -from ...types.get_suspicious_ip_throttling_settings_response_content import ( - GetSuspiciousIpThrottlingSettingsResponseContent, -) -from ...types.suspicious_ip_throttling_allowlist import SuspiciousIpThrottlingAllowlist -from ...types.suspicious_ip_throttling_shields_enum import SuspiciousIpThrottlingShieldsEnum -from ...types.suspicious_ip_throttling_stage import SuspiciousIpThrottlingStage -from ...types.update_suspicious_ip_throttling_settings_response_content import ( - UpdateSuspiciousIpThrottlingSettingsResponseContent, -) -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawSuspiciousIpThrottlingClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def get( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetSuspiciousIpThrottlingSettingsResponseContent]: - """ - Retrieve details of the Suspicious IP Throttling configuration of your tenant. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetSuspiciousIpThrottlingSettingsResponseContent] - Suspicious IP throttling configuration successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - "attack-protection/suspicious-ip-throttling", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetSuspiciousIpThrottlingSettingsResponseContent, - parse_obj_as( - type_=GetSuspiciousIpThrottlingSettingsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def update( - self, - *, - enabled: typing.Optional[bool] = OMIT, - shields: typing.Optional[typing.Sequence[SuspiciousIpThrottlingShieldsEnum]] = OMIT, - allowlist: typing.Optional[SuspiciousIpThrottlingAllowlist] = OMIT, - stage: typing.Optional[SuspiciousIpThrottlingStage] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[UpdateSuspiciousIpThrottlingSettingsResponseContent]: - """ - Update the details of the Suspicious IP Throttling configuration of your tenant. - - Parameters - ---------- - enabled : typing.Optional[bool] - Whether or not suspicious IP throttling attack protections are active. - - shields : typing.Optional[typing.Sequence[SuspiciousIpThrottlingShieldsEnum]] - Action to take when a suspicious IP throttling threshold is violated. - Possible values: block, admin_notification. - - allowlist : typing.Optional[SuspiciousIpThrottlingAllowlist] - - stage : typing.Optional[SuspiciousIpThrottlingStage] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[UpdateSuspiciousIpThrottlingSettingsResponseContent] - Suspicious IP throttling configuration successfully updated. - """ - _response = self._client_wrapper.httpx_client.request( - "attack-protection/suspicious-ip-throttling", - method="PATCH", - json={ - "enabled": enabled, - "shields": shields, - "allowlist": allowlist, - "stage": convert_and_respect_annotation_metadata( - object_=stage, annotation=SuspiciousIpThrottlingStage, direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateSuspiciousIpThrottlingSettingsResponseContent, - parse_obj_as( - type_=UpdateSuspiciousIpThrottlingSettingsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawSuspiciousIpThrottlingClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def get( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetSuspiciousIpThrottlingSettingsResponseContent]: - """ - Retrieve details of the Suspicious IP Throttling configuration of your tenant. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetSuspiciousIpThrottlingSettingsResponseContent] - Suspicious IP throttling configuration successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - "attack-protection/suspicious-ip-throttling", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetSuspiciousIpThrottlingSettingsResponseContent, - parse_obj_as( - type_=GetSuspiciousIpThrottlingSettingsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def update( - self, - *, - enabled: typing.Optional[bool] = OMIT, - shields: typing.Optional[typing.Sequence[SuspiciousIpThrottlingShieldsEnum]] = OMIT, - allowlist: typing.Optional[SuspiciousIpThrottlingAllowlist] = OMIT, - stage: typing.Optional[SuspiciousIpThrottlingStage] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[UpdateSuspiciousIpThrottlingSettingsResponseContent]: - """ - Update the details of the Suspicious IP Throttling configuration of your tenant. - - Parameters - ---------- - enabled : typing.Optional[bool] - Whether or not suspicious IP throttling attack protections are active. - - shields : typing.Optional[typing.Sequence[SuspiciousIpThrottlingShieldsEnum]] - Action to take when a suspicious IP throttling threshold is violated. - Possible values: block, admin_notification. - - allowlist : typing.Optional[SuspiciousIpThrottlingAllowlist] - - stage : typing.Optional[SuspiciousIpThrottlingStage] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[UpdateSuspiciousIpThrottlingSettingsResponseContent] - Suspicious IP throttling configuration successfully updated. - """ - _response = await self._client_wrapper.httpx_client.request( - "attack-protection/suspicious-ip-throttling", - method="PATCH", - json={ - "enabled": enabled, - "shields": shields, - "allowlist": allowlist, - "stage": convert_and_respect_annotation_metadata( - object_=stage, annotation=SuspiciousIpThrottlingStage, direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateSuspiciousIpThrottlingSettingsResponseContent, - parse_obj_as( - type_=UpdateSuspiciousIpThrottlingSettingsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/branding/__init__.py b/src/auth0/management/branding/__init__.py deleted file mode 100644 index b0ebd90b..00000000 --- a/src/auth0/management/branding/__init__.py +++ /dev/null @@ -1,34 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from . import phone, templates, themes -_dynamic_imports: typing.Dict[str, str] = {"phone": ".phone", "templates": ".templates", "themes": ".themes"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - if module_name == f".{attr_name}": - return module - else: - return getattr(module, attr_name) - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["phone", "templates", "themes"] diff --git a/src/auth0/management/branding/client.py b/src/auth0/management/branding/client.py deleted file mode 100644 index e1f5fd04..00000000 --- a/src/auth0/management/branding/client.py +++ /dev/null @@ -1,268 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.request_options import RequestOptions -from ..types.get_branding_response_content import GetBrandingResponseContent -from ..types.update_branding_colors import UpdateBrandingColors -from ..types.update_branding_font import UpdateBrandingFont -from ..types.update_branding_response_content import UpdateBrandingResponseContent -from .raw_client import AsyncRawBrandingClient, RawBrandingClient - -if typing.TYPE_CHECKING: - from .phone.client import AsyncPhoneClient, PhoneClient - from .templates.client import AsyncTemplatesClient, TemplatesClient - from .themes.client import AsyncThemesClient, ThemesClient -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class BrandingClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawBrandingClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._templates: typing.Optional[TemplatesClient] = None - self._themes: typing.Optional[ThemesClient] = None - self._phone: typing.Optional[PhoneClient] = None - - @property - def with_raw_response(self) -> RawBrandingClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawBrandingClient - """ - return self._raw_client - - def get(self, *, request_options: typing.Optional[RequestOptions] = None) -> GetBrandingResponseContent: - """ - Retrieve branding settings. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetBrandingResponseContent - Branding settings successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.branding.get() - """ - _response = self._raw_client.get(request_options=request_options) - return _response.data - - def update( - self, - *, - colors: typing.Optional[UpdateBrandingColors] = OMIT, - favicon_url: typing.Optional[str] = OMIT, - logo_url: typing.Optional[str] = OMIT, - font: typing.Optional[UpdateBrandingFont] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateBrandingResponseContent: - """ - Update branding settings. - - Parameters - ---------- - colors : typing.Optional[UpdateBrandingColors] - - favicon_url : typing.Optional[str] - URL for the favicon. Must use HTTPS. - - logo_url : typing.Optional[str] - URL for the logo. Must use HTTPS. - - font : typing.Optional[UpdateBrandingFont] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateBrandingResponseContent - Branding settings successfully updated. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.branding.update() - """ - _response = self._raw_client.update( - colors=colors, favicon_url=favicon_url, logo_url=logo_url, font=font, request_options=request_options - ) - return _response.data - - @property - def templates(self): - if self._templates is None: - from .templates.client import TemplatesClient # noqa: E402 - - self._templates = TemplatesClient(client_wrapper=self._client_wrapper) - return self._templates - - @property - def themes(self): - if self._themes is None: - from .themes.client import ThemesClient # noqa: E402 - - self._themes = ThemesClient(client_wrapper=self._client_wrapper) - return self._themes - - @property - def phone(self): - if self._phone is None: - from .phone.client import PhoneClient # noqa: E402 - - self._phone = PhoneClient(client_wrapper=self._client_wrapper) - return self._phone - - -class AsyncBrandingClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawBrandingClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._templates: typing.Optional[AsyncTemplatesClient] = None - self._themes: typing.Optional[AsyncThemesClient] = None - self._phone: typing.Optional[AsyncPhoneClient] = None - - @property - def with_raw_response(self) -> AsyncRawBrandingClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawBrandingClient - """ - return self._raw_client - - async def get(self, *, request_options: typing.Optional[RequestOptions] = None) -> GetBrandingResponseContent: - """ - Retrieve branding settings. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetBrandingResponseContent - Branding settings successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.branding.get() - - - asyncio.run(main()) - """ - _response = await self._raw_client.get(request_options=request_options) - return _response.data - - async def update( - self, - *, - colors: typing.Optional[UpdateBrandingColors] = OMIT, - favicon_url: typing.Optional[str] = OMIT, - logo_url: typing.Optional[str] = OMIT, - font: typing.Optional[UpdateBrandingFont] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateBrandingResponseContent: - """ - Update branding settings. - - Parameters - ---------- - colors : typing.Optional[UpdateBrandingColors] - - favicon_url : typing.Optional[str] - URL for the favicon. Must use HTTPS. - - logo_url : typing.Optional[str] - URL for the logo. Must use HTTPS. - - font : typing.Optional[UpdateBrandingFont] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateBrandingResponseContent - Branding settings successfully updated. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.branding.update() - - - asyncio.run(main()) - """ - _response = await self._raw_client.update( - colors=colors, favicon_url=favicon_url, logo_url=logo_url, font=font, request_options=request_options - ) - return _response.data - - @property - def templates(self): - if self._templates is None: - from .templates.client import AsyncTemplatesClient # noqa: E402 - - self._templates = AsyncTemplatesClient(client_wrapper=self._client_wrapper) - return self._templates - - @property - def themes(self): - if self._themes is None: - from .themes.client import AsyncThemesClient # noqa: E402 - - self._themes = AsyncThemesClient(client_wrapper=self._client_wrapper) - return self._themes - - @property - def phone(self): - if self._phone is None: - from .phone.client import AsyncPhoneClient # noqa: E402 - - self._phone = AsyncPhoneClient(client_wrapper=self._client_wrapper) - return self._phone diff --git a/src/auth0/management/branding/phone/__init__.py b/src/auth0/management/branding/phone/__init__.py deleted file mode 100644 index a26e474f..00000000 --- a/src/auth0/management/branding/phone/__init__.py +++ /dev/null @@ -1,34 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from . import providers, templates -_dynamic_imports: typing.Dict[str, str] = {"providers": ".providers", "templates": ".templates"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - if module_name == f".{attr_name}": - return module - else: - return getattr(module, attr_name) - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["providers", "templates"] diff --git a/src/auth0/management/branding/phone/client.py b/src/auth0/management/branding/phone/client.py deleted file mode 100644 index b6933d1c..00000000 --- a/src/auth0/management/branding/phone/client.py +++ /dev/null @@ -1,82 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .raw_client import AsyncRawPhoneClient, RawPhoneClient - -if typing.TYPE_CHECKING: - from .providers.client import AsyncProvidersClient, ProvidersClient - from .templates.client import AsyncTemplatesClient, TemplatesClient - - -class PhoneClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawPhoneClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._providers: typing.Optional[ProvidersClient] = None - self._templates: typing.Optional[TemplatesClient] = None - - @property - def with_raw_response(self) -> RawPhoneClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawPhoneClient - """ - return self._raw_client - - @property - def providers(self): - if self._providers is None: - from .providers.client import ProvidersClient # noqa: E402 - - self._providers = ProvidersClient(client_wrapper=self._client_wrapper) - return self._providers - - @property - def templates(self): - if self._templates is None: - from .templates.client import TemplatesClient # noqa: E402 - - self._templates = TemplatesClient(client_wrapper=self._client_wrapper) - return self._templates - - -class AsyncPhoneClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawPhoneClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._providers: typing.Optional[AsyncProvidersClient] = None - self._templates: typing.Optional[AsyncTemplatesClient] = None - - @property - def with_raw_response(self) -> AsyncRawPhoneClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawPhoneClient - """ - return self._raw_client - - @property - def providers(self): - if self._providers is None: - from .providers.client import AsyncProvidersClient # noqa: E402 - - self._providers = AsyncProvidersClient(client_wrapper=self._client_wrapper) - return self._providers - - @property - def templates(self): - if self._templates is None: - from .templates.client import AsyncTemplatesClient # noqa: E402 - - self._templates = AsyncTemplatesClient(client_wrapper=self._client_wrapper) - return self._templates diff --git a/src/auth0/management/branding/phone/providers/__init__.py b/src/auth0/management/branding/phone/providers/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/branding/phone/providers/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/branding/phone/providers/client.py b/src/auth0/management/branding/phone/providers/client.py deleted file mode 100644 index 57d85aac..00000000 --- a/src/auth0/management/branding/phone/providers/client.py +++ /dev/null @@ -1,593 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ....core.request_options import RequestOptions -from ....types.create_branding_phone_provider_response_content import CreateBrandingPhoneProviderResponseContent -from ....types.create_phone_provider_send_test_response_content import CreatePhoneProviderSendTestResponseContent -from ....types.get_branding_phone_provider_response_content import GetBrandingPhoneProviderResponseContent -from ....types.list_branding_phone_providers_response_content import ListBrandingPhoneProvidersResponseContent -from ....types.phone_provider_configuration import PhoneProviderConfiguration -from ....types.phone_provider_credentials import PhoneProviderCredentials -from ....types.phone_provider_delivery_method_enum import PhoneProviderDeliveryMethodEnum -from ....types.phone_provider_name_enum import PhoneProviderNameEnum -from ....types.update_branding_phone_provider_response_content import UpdateBrandingPhoneProviderResponseContent -from .raw_client import AsyncRawProvidersClient, RawProvidersClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class ProvidersClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawProvidersClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawProvidersClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawProvidersClient - """ - return self._raw_client - - def list( - self, *, disabled: typing.Optional[bool] = None, request_options: typing.Optional[RequestOptions] = None - ) -> ListBrandingPhoneProvidersResponseContent: - """ - Retrieve a list of [phone providers](https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers) details set for a Tenant. A list of fields to include or exclude may also be specified. - - Parameters - ---------- - disabled : typing.Optional[bool] - Whether the provider is enabled (false) or disabled (true). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - ListBrandingPhoneProvidersResponseContent - Phone providers have been successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.branding.phone.providers.list( - disabled=True, - ) - """ - _response = self._raw_client.list(disabled=disabled, request_options=request_options) - return _response.data - - def create( - self, - *, - name: PhoneProviderNameEnum, - credentials: PhoneProviderCredentials, - disabled: typing.Optional[bool] = OMIT, - configuration: typing.Optional[PhoneProviderConfiguration] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateBrandingPhoneProviderResponseContent: - """ - Create a [phone provider](https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers). - The `credentials` object requires different properties depending on the phone provider (which is specified using the `name` property). - - Parameters - ---------- - name : PhoneProviderNameEnum - - credentials : PhoneProviderCredentials - - disabled : typing.Optional[bool] - Whether the provider is enabled (false) or disabled (true). - - configuration : typing.Optional[PhoneProviderConfiguration] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateBrandingPhoneProviderResponseContent - Phone notification provider successfully created. - - Examples - -------- - from auth0 import Auth0, TwilioProviderCredentials - - client = Auth0( - token="YOUR_TOKEN", - ) - client.branding.phone.providers.create( - name="twilio", - credentials=TwilioProviderCredentials( - auth_token="auth_token", - ), - ) - """ - _response = self._raw_client.create( - name=name, - credentials=credentials, - disabled=disabled, - configuration=configuration, - request_options=request_options, - ) - return _response.data - - def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetBrandingPhoneProviderResponseContent: - """ - Retrieve [phone provider](https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers) details. A list of fields to include or exclude may also be specified. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetBrandingPhoneProviderResponseContent - Phone provider successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.branding.phone.providers.get( - id="id", - ) - """ - _response = self._raw_client.get(id, request_options=request_options) - return _response.data - - def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete the configured phone provider. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.branding.phone.providers.delete( - id="id", - ) - """ - _response = self._raw_client.delete(id, request_options=request_options) - return _response.data - - def update( - self, - id: str, - *, - name: typing.Optional[PhoneProviderNameEnum] = OMIT, - disabled: typing.Optional[bool] = OMIT, - credentials: typing.Optional[PhoneProviderCredentials] = OMIT, - configuration: typing.Optional[PhoneProviderConfiguration] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateBrandingPhoneProviderResponseContent: - """ - Update a [phone provider](https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers). - The `credentials` object requires different properties depending on the phone provider (which is specified using the `name` property). - - Parameters - ---------- - id : str - - name : typing.Optional[PhoneProviderNameEnum] - - disabled : typing.Optional[bool] - Whether the provider is enabled (false) or disabled (true). - - credentials : typing.Optional[PhoneProviderCredentials] - - configuration : typing.Optional[PhoneProviderConfiguration] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateBrandingPhoneProviderResponseContent - Phone provider successfully updated. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.branding.phone.providers.update( - id="id", - ) - """ - _response = self._raw_client.update( - id, - name=name, - disabled=disabled, - credentials=credentials, - configuration=configuration, - request_options=request_options, - ) - return _response.data - - def test( - self, - id: str, - *, - to: str, - delivery_method: typing.Optional[PhoneProviderDeliveryMethodEnum] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreatePhoneProviderSendTestResponseContent: - """ - Parameters - ---------- - id : str - - to : str - The recipient phone number to receive a given notification. - - delivery_method : typing.Optional[PhoneProviderDeliveryMethodEnum] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreatePhoneProviderSendTestResponseContent - Phone notification sent. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.branding.phone.providers.test( - id="id", - to="to", - ) - """ - _response = self._raw_client.test(id, to=to, delivery_method=delivery_method, request_options=request_options) - return _response.data - - -class AsyncProvidersClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawProvidersClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawProvidersClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawProvidersClient - """ - return self._raw_client - - async def list( - self, *, disabled: typing.Optional[bool] = None, request_options: typing.Optional[RequestOptions] = None - ) -> ListBrandingPhoneProvidersResponseContent: - """ - Retrieve a list of [phone providers](https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers) details set for a Tenant. A list of fields to include or exclude may also be specified. - - Parameters - ---------- - disabled : typing.Optional[bool] - Whether the provider is enabled (false) or disabled (true). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - ListBrandingPhoneProvidersResponseContent - Phone providers have been successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.branding.phone.providers.list( - disabled=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list(disabled=disabled, request_options=request_options) - return _response.data - - async def create( - self, - *, - name: PhoneProviderNameEnum, - credentials: PhoneProviderCredentials, - disabled: typing.Optional[bool] = OMIT, - configuration: typing.Optional[PhoneProviderConfiguration] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateBrandingPhoneProviderResponseContent: - """ - Create a [phone provider](https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers). - The `credentials` object requires different properties depending on the phone provider (which is specified using the `name` property). - - Parameters - ---------- - name : PhoneProviderNameEnum - - credentials : PhoneProviderCredentials - - disabled : typing.Optional[bool] - Whether the provider is enabled (false) or disabled (true). - - configuration : typing.Optional[PhoneProviderConfiguration] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateBrandingPhoneProviderResponseContent - Phone notification provider successfully created. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0, TwilioProviderCredentials - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.branding.phone.providers.create( - name="twilio", - credentials=TwilioProviderCredentials( - auth_token="auth_token", - ), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - name=name, - credentials=credentials, - disabled=disabled, - configuration=configuration, - request_options=request_options, - ) - return _response.data - - async def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetBrandingPhoneProviderResponseContent: - """ - Retrieve [phone provider](https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers) details. A list of fields to include or exclude may also be specified. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetBrandingPhoneProviderResponseContent - Phone provider successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.branding.phone.providers.get( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.get(id, request_options=request_options) - return _response.data - - async def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete the configured phone provider. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.branding.phone.providers.delete( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete(id, request_options=request_options) - return _response.data - - async def update( - self, - id: str, - *, - name: typing.Optional[PhoneProviderNameEnum] = OMIT, - disabled: typing.Optional[bool] = OMIT, - credentials: typing.Optional[PhoneProviderCredentials] = OMIT, - configuration: typing.Optional[PhoneProviderConfiguration] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateBrandingPhoneProviderResponseContent: - """ - Update a [phone provider](https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers). - The `credentials` object requires different properties depending on the phone provider (which is specified using the `name` property). - - Parameters - ---------- - id : str - - name : typing.Optional[PhoneProviderNameEnum] - - disabled : typing.Optional[bool] - Whether the provider is enabled (false) or disabled (true). - - credentials : typing.Optional[PhoneProviderCredentials] - - configuration : typing.Optional[PhoneProviderConfiguration] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateBrandingPhoneProviderResponseContent - Phone provider successfully updated. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.branding.phone.providers.update( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.update( - id, - name=name, - disabled=disabled, - credentials=credentials, - configuration=configuration, - request_options=request_options, - ) - return _response.data - - async def test( - self, - id: str, - *, - to: str, - delivery_method: typing.Optional[PhoneProviderDeliveryMethodEnum] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreatePhoneProviderSendTestResponseContent: - """ - Parameters - ---------- - id : str - - to : str - The recipient phone number to receive a given notification. - - delivery_method : typing.Optional[PhoneProviderDeliveryMethodEnum] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreatePhoneProviderSendTestResponseContent - Phone notification sent. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.branding.phone.providers.test( - id="id", - to="to", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.test( - id, to=to, delivery_method=delivery_method, request_options=request_options - ) - return _response.data diff --git a/src/auth0/management/branding/phone/providers/raw_client.py b/src/auth0/management/branding/phone/providers/raw_client.py deleted file mode 100644 index 1fbde63b..00000000 --- a/src/auth0/management/branding/phone/providers/raw_client.py +++ /dev/null @@ -1,1346 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ....core.api_error import ApiError -from ....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ....core.http_response import AsyncHttpResponse, HttpResponse -from ....core.jsonable_encoder import quote_path_param -from ....core.parse_error import ParsingError -from ....core.pydantic_utilities import parse_obj_as -from ....core.request_options import RequestOptions -from ....core.serialization import convert_and_respect_annotation_metadata -from ....errors.bad_request_error import BadRequestError -from ....errors.conflict_error import ConflictError -from ....errors.forbidden_error import ForbiddenError -from ....errors.not_found_error import NotFoundError -from ....errors.too_many_requests_error import TooManyRequestsError -from ....errors.unauthorized_error import UnauthorizedError -from ....types.create_branding_phone_provider_response_content import CreateBrandingPhoneProviderResponseContent -from ....types.create_phone_provider_send_test_response_content import CreatePhoneProviderSendTestResponseContent -from ....types.get_branding_phone_provider_response_content import GetBrandingPhoneProviderResponseContent -from ....types.list_branding_phone_providers_response_content import ListBrandingPhoneProvidersResponseContent -from ....types.phone_provider_configuration import PhoneProviderConfiguration -from ....types.phone_provider_credentials import PhoneProviderCredentials -from ....types.phone_provider_delivery_method_enum import PhoneProviderDeliveryMethodEnum -from ....types.phone_provider_name_enum import PhoneProviderNameEnum -from ....types.update_branding_phone_provider_response_content import UpdateBrandingPhoneProviderResponseContent -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawProvidersClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, *, disabled: typing.Optional[bool] = None, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[ListBrandingPhoneProvidersResponseContent]: - """ - Retrieve a list of [phone providers](https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers) details set for a Tenant. A list of fields to include or exclude may also be specified. - - Parameters - ---------- - disabled : typing.Optional[bool] - Whether the provider is enabled (false) or disabled (true). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[ListBrandingPhoneProvidersResponseContent] - Phone providers have been successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - "branding/phone/providers", - method="GET", - params={ - "disabled": disabled, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - ListBrandingPhoneProvidersResponseContent, - parse_obj_as( - type_=ListBrandingPhoneProvidersResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - *, - name: PhoneProviderNameEnum, - credentials: PhoneProviderCredentials, - disabled: typing.Optional[bool] = OMIT, - configuration: typing.Optional[PhoneProviderConfiguration] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[CreateBrandingPhoneProviderResponseContent]: - """ - Create a [phone provider](https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers). - The `credentials` object requires different properties depending on the phone provider (which is specified using the `name` property). - - Parameters - ---------- - name : PhoneProviderNameEnum - - credentials : PhoneProviderCredentials - - disabled : typing.Optional[bool] - Whether the provider is enabled (false) or disabled (true). - - configuration : typing.Optional[PhoneProviderConfiguration] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CreateBrandingPhoneProviderResponseContent] - Phone notification provider successfully created. - """ - _response = self._client_wrapper.httpx_client.request( - "branding/phone/providers", - method="POST", - json={ - "name": name, - "disabled": disabled, - "configuration": convert_and_respect_annotation_metadata( - object_=configuration, annotation=PhoneProviderConfiguration, direction="write" - ), - "credentials": convert_and_respect_annotation_metadata( - object_=credentials, annotation=PhoneProviderCredentials, direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateBrandingPhoneProviderResponseContent, - parse_obj_as( - type_=CreateBrandingPhoneProviderResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetBrandingPhoneProviderResponseContent]: - """ - Retrieve [phone provider](https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers) details. A list of fields to include or exclude may also be specified. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetBrandingPhoneProviderResponseContent] - Phone provider successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - f"branding/phone/providers/{quote_path_param(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetBrandingPhoneProviderResponseContent, - parse_obj_as( - type_=GetBrandingPhoneProviderResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[None]: - """ - Delete the configured phone provider. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"branding/phone/providers/{quote_path_param(id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def update( - self, - id: str, - *, - name: typing.Optional[PhoneProviderNameEnum] = OMIT, - disabled: typing.Optional[bool] = OMIT, - credentials: typing.Optional[PhoneProviderCredentials] = OMIT, - configuration: typing.Optional[PhoneProviderConfiguration] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[UpdateBrandingPhoneProviderResponseContent]: - """ - Update a [phone provider](https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers). - The `credentials` object requires different properties depending on the phone provider (which is specified using the `name` property). - - Parameters - ---------- - id : str - - name : typing.Optional[PhoneProviderNameEnum] - - disabled : typing.Optional[bool] - Whether the provider is enabled (false) or disabled (true). - - credentials : typing.Optional[PhoneProviderCredentials] - - configuration : typing.Optional[PhoneProviderConfiguration] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[UpdateBrandingPhoneProviderResponseContent] - Phone provider successfully updated. - """ - _response = self._client_wrapper.httpx_client.request( - f"branding/phone/providers/{quote_path_param(id)}", - method="PATCH", - json={ - "name": name, - "disabled": disabled, - "credentials": convert_and_respect_annotation_metadata( - object_=credentials, annotation=PhoneProviderCredentials, direction="write" - ), - "configuration": convert_and_respect_annotation_metadata( - object_=configuration, annotation=PhoneProviderConfiguration, direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateBrandingPhoneProviderResponseContent, - parse_obj_as( - type_=UpdateBrandingPhoneProviderResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def test( - self, - id: str, - *, - to: str, - delivery_method: typing.Optional[PhoneProviderDeliveryMethodEnum] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[CreatePhoneProviderSendTestResponseContent]: - """ - Parameters - ---------- - id : str - - to : str - The recipient phone number to receive a given notification. - - delivery_method : typing.Optional[PhoneProviderDeliveryMethodEnum] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CreatePhoneProviderSendTestResponseContent] - Phone notification sent. - """ - _response = self._client_wrapper.httpx_client.request( - f"branding/phone/providers/{quote_path_param(id)}/try", - method="POST", - json={ - "to": to, - "delivery_method": delivery_method, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreatePhoneProviderSendTestResponseContent, - parse_obj_as( - type_=CreatePhoneProviderSendTestResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawProvidersClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, *, disabled: typing.Optional[bool] = None, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[ListBrandingPhoneProvidersResponseContent]: - """ - Retrieve a list of [phone providers](https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers) details set for a Tenant. A list of fields to include or exclude may also be specified. - - Parameters - ---------- - disabled : typing.Optional[bool] - Whether the provider is enabled (false) or disabled (true). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[ListBrandingPhoneProvidersResponseContent] - Phone providers have been successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - "branding/phone/providers", - method="GET", - params={ - "disabled": disabled, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - ListBrandingPhoneProvidersResponseContent, - parse_obj_as( - type_=ListBrandingPhoneProvidersResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - *, - name: PhoneProviderNameEnum, - credentials: PhoneProviderCredentials, - disabled: typing.Optional[bool] = OMIT, - configuration: typing.Optional[PhoneProviderConfiguration] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[CreateBrandingPhoneProviderResponseContent]: - """ - Create a [phone provider](https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers). - The `credentials` object requires different properties depending on the phone provider (which is specified using the `name` property). - - Parameters - ---------- - name : PhoneProviderNameEnum - - credentials : PhoneProviderCredentials - - disabled : typing.Optional[bool] - Whether the provider is enabled (false) or disabled (true). - - configuration : typing.Optional[PhoneProviderConfiguration] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CreateBrandingPhoneProviderResponseContent] - Phone notification provider successfully created. - """ - _response = await self._client_wrapper.httpx_client.request( - "branding/phone/providers", - method="POST", - json={ - "name": name, - "disabled": disabled, - "configuration": convert_and_respect_annotation_metadata( - object_=configuration, annotation=PhoneProviderConfiguration, direction="write" - ), - "credentials": convert_and_respect_annotation_metadata( - object_=credentials, annotation=PhoneProviderCredentials, direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateBrandingPhoneProviderResponseContent, - parse_obj_as( - type_=CreateBrandingPhoneProviderResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetBrandingPhoneProviderResponseContent]: - """ - Retrieve [phone provider](https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers) details. A list of fields to include or exclude may also be specified. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetBrandingPhoneProviderResponseContent] - Phone provider successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - f"branding/phone/providers/{quote_path_param(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetBrandingPhoneProviderResponseContent, - parse_obj_as( - type_=GetBrandingPhoneProviderResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def delete( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Delete the configured phone provider. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"branding/phone/providers/{quote_path_param(id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def update( - self, - id: str, - *, - name: typing.Optional[PhoneProviderNameEnum] = OMIT, - disabled: typing.Optional[bool] = OMIT, - credentials: typing.Optional[PhoneProviderCredentials] = OMIT, - configuration: typing.Optional[PhoneProviderConfiguration] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[UpdateBrandingPhoneProviderResponseContent]: - """ - Update a [phone provider](https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers). - The `credentials` object requires different properties depending on the phone provider (which is specified using the `name` property). - - Parameters - ---------- - id : str - - name : typing.Optional[PhoneProviderNameEnum] - - disabled : typing.Optional[bool] - Whether the provider is enabled (false) or disabled (true). - - credentials : typing.Optional[PhoneProviderCredentials] - - configuration : typing.Optional[PhoneProviderConfiguration] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[UpdateBrandingPhoneProviderResponseContent] - Phone provider successfully updated. - """ - _response = await self._client_wrapper.httpx_client.request( - f"branding/phone/providers/{quote_path_param(id)}", - method="PATCH", - json={ - "name": name, - "disabled": disabled, - "credentials": convert_and_respect_annotation_metadata( - object_=credentials, annotation=PhoneProviderCredentials, direction="write" - ), - "configuration": convert_and_respect_annotation_metadata( - object_=configuration, annotation=PhoneProviderConfiguration, direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateBrandingPhoneProviderResponseContent, - parse_obj_as( - type_=UpdateBrandingPhoneProviderResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def test( - self, - id: str, - *, - to: str, - delivery_method: typing.Optional[PhoneProviderDeliveryMethodEnum] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[CreatePhoneProviderSendTestResponseContent]: - """ - Parameters - ---------- - id : str - - to : str - The recipient phone number to receive a given notification. - - delivery_method : typing.Optional[PhoneProviderDeliveryMethodEnum] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CreatePhoneProviderSendTestResponseContent] - Phone notification sent. - """ - _response = await self._client_wrapper.httpx_client.request( - f"branding/phone/providers/{quote_path_param(id)}/try", - method="POST", - json={ - "to": to, - "delivery_method": delivery_method, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreatePhoneProviderSendTestResponseContent, - parse_obj_as( - type_=CreatePhoneProviderSendTestResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/branding/phone/raw_client.py b/src/auth0/management/branding/phone/raw_client.py deleted file mode 100644 index ec04dfbb..00000000 --- a/src/auth0/management/branding/phone/raw_client.py +++ /dev/null @@ -1,13 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper - - -class RawPhoneClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - -class AsyncRawPhoneClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper diff --git a/src/auth0/management/branding/phone/templates/__init__.py b/src/auth0/management/branding/phone/templates/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/branding/phone/templates/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/branding/phone/templates/client.py b/src/auth0/management/branding/phone/templates/client.py deleted file mode 100644 index 46453c45..00000000 --- a/src/auth0/management/branding/phone/templates/client.py +++ /dev/null @@ -1,609 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ....core.request_options import RequestOptions -from ....types.create_phone_template_response_content import CreatePhoneTemplateResponseContent -from ....types.create_phone_template_test_notification_response_content import ( - CreatePhoneTemplateTestNotificationResponseContent, -) -from ....types.get_phone_template_response_content import GetPhoneTemplateResponseContent -from ....types.list_phone_templates_response_content import ListPhoneTemplatesResponseContent -from ....types.partial_phone_template_content import PartialPhoneTemplateContent -from ....types.phone_provider_delivery_method_enum import PhoneProviderDeliveryMethodEnum -from ....types.phone_template_content import PhoneTemplateContent -from ....types.phone_template_notification_type_enum import PhoneTemplateNotificationTypeEnum -from ....types.reset_phone_template_request_content import ResetPhoneTemplateRequestContent -from ....types.reset_phone_template_response_content import ResetPhoneTemplateResponseContent -from ....types.update_phone_template_response_content import UpdatePhoneTemplateResponseContent -from .raw_client import AsyncRawTemplatesClient, RawTemplatesClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class TemplatesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawTemplatesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawTemplatesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawTemplatesClient - """ - return self._raw_client - - def list( - self, *, disabled: typing.Optional[bool] = None, request_options: typing.Optional[RequestOptions] = None - ) -> ListPhoneTemplatesResponseContent: - """ - Parameters - ---------- - disabled : typing.Optional[bool] - Whether the template is enabled (false) or disabled (true). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - ListPhoneTemplatesResponseContent - The phone notification templates were retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.branding.phone.templates.list( - disabled=True, - ) - """ - _response = self._raw_client.list(disabled=disabled, request_options=request_options) - return _response.data - - def create( - self, - *, - type: typing.Optional[PhoneTemplateNotificationTypeEnum] = OMIT, - disabled: typing.Optional[bool] = OMIT, - content: typing.Optional[PhoneTemplateContent] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreatePhoneTemplateResponseContent: - """ - Parameters - ---------- - type : typing.Optional[PhoneTemplateNotificationTypeEnum] - - disabled : typing.Optional[bool] - Whether the template is enabled (false) or disabled (true). - - content : typing.Optional[PhoneTemplateContent] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreatePhoneTemplateResponseContent - The phone notification template was created. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.branding.phone.templates.create() - """ - _response = self._raw_client.create( - type=type, disabled=disabled, content=content, request_options=request_options - ) - return _response.data - - def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetPhoneTemplateResponseContent: - """ - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetPhoneTemplateResponseContent - The phone notification template were retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.branding.phone.templates.get( - id="id", - ) - """ - _response = self._raw_client.get(id, request_options=request_options) - return _response.data - - def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.branding.phone.templates.delete( - id="id", - ) - """ - _response = self._raw_client.delete(id, request_options=request_options) - return _response.data - - def update( - self, - id: str, - *, - content: typing.Optional[PartialPhoneTemplateContent] = OMIT, - disabled: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdatePhoneTemplateResponseContent: - """ - Parameters - ---------- - id : str - - content : typing.Optional[PartialPhoneTemplateContent] - - disabled : typing.Optional[bool] - Whether the template is enabled (false) or disabled (true). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdatePhoneTemplateResponseContent - The phone notification template was updated. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.branding.phone.templates.update( - id="id", - ) - """ - _response = self._raw_client.update(id, content=content, disabled=disabled, request_options=request_options) - return _response.data - - def reset( - self, - id: str, - *, - request: ResetPhoneTemplateRequestContent, - request_options: typing.Optional[RequestOptions] = None, - ) -> ResetPhoneTemplateResponseContent: - """ - Parameters - ---------- - id : str - - request : ResetPhoneTemplateRequestContent - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - ResetPhoneTemplateResponseContent - The phone notification template was reset. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.branding.phone.templates.reset( - id="id", - request={"key": "value"}, - ) - """ - _response = self._raw_client.reset(id, request=request, request_options=request_options) - return _response.data - - def test( - self, - id: str, - *, - to: str, - delivery_method: typing.Optional[PhoneProviderDeliveryMethodEnum] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreatePhoneTemplateTestNotificationResponseContent: - """ - Parameters - ---------- - id : str - - to : str - Destination of the testing phone notification - - delivery_method : typing.Optional[PhoneProviderDeliveryMethodEnum] - Medium to use to send the notification - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreatePhoneTemplateTestNotificationResponseContent - The phone testing notification for the template was sent - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.branding.phone.templates.test( - id="id", - to="to", - ) - """ - _response = self._raw_client.test(id, to=to, delivery_method=delivery_method, request_options=request_options) - return _response.data - - -class AsyncTemplatesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawTemplatesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawTemplatesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawTemplatesClient - """ - return self._raw_client - - async def list( - self, *, disabled: typing.Optional[bool] = None, request_options: typing.Optional[RequestOptions] = None - ) -> ListPhoneTemplatesResponseContent: - """ - Parameters - ---------- - disabled : typing.Optional[bool] - Whether the template is enabled (false) or disabled (true). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - ListPhoneTemplatesResponseContent - The phone notification templates were retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.branding.phone.templates.list( - disabled=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list(disabled=disabled, request_options=request_options) - return _response.data - - async def create( - self, - *, - type: typing.Optional[PhoneTemplateNotificationTypeEnum] = OMIT, - disabled: typing.Optional[bool] = OMIT, - content: typing.Optional[PhoneTemplateContent] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreatePhoneTemplateResponseContent: - """ - Parameters - ---------- - type : typing.Optional[PhoneTemplateNotificationTypeEnum] - - disabled : typing.Optional[bool] - Whether the template is enabled (false) or disabled (true). - - content : typing.Optional[PhoneTemplateContent] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreatePhoneTemplateResponseContent - The phone notification template was created. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.branding.phone.templates.create() - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - type=type, disabled=disabled, content=content, request_options=request_options - ) - return _response.data - - async def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetPhoneTemplateResponseContent: - """ - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetPhoneTemplateResponseContent - The phone notification template were retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.branding.phone.templates.get( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.get(id, request_options=request_options) - return _response.data - - async def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.branding.phone.templates.delete( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete(id, request_options=request_options) - return _response.data - - async def update( - self, - id: str, - *, - content: typing.Optional[PartialPhoneTemplateContent] = OMIT, - disabled: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdatePhoneTemplateResponseContent: - """ - Parameters - ---------- - id : str - - content : typing.Optional[PartialPhoneTemplateContent] - - disabled : typing.Optional[bool] - Whether the template is enabled (false) or disabled (true). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdatePhoneTemplateResponseContent - The phone notification template was updated. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.branding.phone.templates.update( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.update( - id, content=content, disabled=disabled, request_options=request_options - ) - return _response.data - - async def reset( - self, - id: str, - *, - request: ResetPhoneTemplateRequestContent, - request_options: typing.Optional[RequestOptions] = None, - ) -> ResetPhoneTemplateResponseContent: - """ - Parameters - ---------- - id : str - - request : ResetPhoneTemplateRequestContent - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - ResetPhoneTemplateResponseContent - The phone notification template was reset. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.branding.phone.templates.reset( - id="id", - request={"key": "value"}, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.reset(id, request=request, request_options=request_options) - return _response.data - - async def test( - self, - id: str, - *, - to: str, - delivery_method: typing.Optional[PhoneProviderDeliveryMethodEnum] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreatePhoneTemplateTestNotificationResponseContent: - """ - Parameters - ---------- - id : str - - to : str - Destination of the testing phone notification - - delivery_method : typing.Optional[PhoneProviderDeliveryMethodEnum] - Medium to use to send the notification - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreatePhoneTemplateTestNotificationResponseContent - The phone testing notification for the template was sent - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.branding.phone.templates.test( - id="id", - to="to", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.test( - id, to=to, delivery_method=delivery_method, request_options=request_options - ) - return _response.data diff --git a/src/auth0/management/branding/phone/templates/raw_client.py b/src/auth0/management/branding/phone/templates/raw_client.py deleted file mode 100644 index a676cfd1..00000000 --- a/src/auth0/management/branding/phone/templates/raw_client.py +++ /dev/null @@ -1,1458 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ....core.api_error import ApiError -from ....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ....core.http_response import AsyncHttpResponse, HttpResponse -from ....core.jsonable_encoder import quote_path_param -from ....core.parse_error import ParsingError -from ....core.pydantic_utilities import parse_obj_as -from ....core.request_options import RequestOptions -from ....core.serialization import convert_and_respect_annotation_metadata -from ....errors.bad_request_error import BadRequestError -from ....errors.conflict_error import ConflictError -from ....errors.forbidden_error import ForbiddenError -from ....errors.not_found_error import NotFoundError -from ....errors.too_many_requests_error import TooManyRequestsError -from ....errors.unauthorized_error import UnauthorizedError -from ....types.create_phone_template_response_content import CreatePhoneTemplateResponseContent -from ....types.create_phone_template_test_notification_response_content import ( - CreatePhoneTemplateTestNotificationResponseContent, -) -from ....types.get_phone_template_response_content import GetPhoneTemplateResponseContent -from ....types.list_phone_templates_response_content import ListPhoneTemplatesResponseContent -from ....types.partial_phone_template_content import PartialPhoneTemplateContent -from ....types.phone_provider_delivery_method_enum import PhoneProviderDeliveryMethodEnum -from ....types.phone_template_content import PhoneTemplateContent -from ....types.phone_template_notification_type_enum import PhoneTemplateNotificationTypeEnum -from ....types.reset_phone_template_request_content import ResetPhoneTemplateRequestContent -from ....types.reset_phone_template_response_content import ResetPhoneTemplateResponseContent -from ....types.update_phone_template_response_content import UpdatePhoneTemplateResponseContent -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawTemplatesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, *, disabled: typing.Optional[bool] = None, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[ListPhoneTemplatesResponseContent]: - """ - Parameters - ---------- - disabled : typing.Optional[bool] - Whether the template is enabled (false) or disabled (true). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[ListPhoneTemplatesResponseContent] - The phone notification templates were retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - "branding/phone/templates", - method="GET", - params={ - "disabled": disabled, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - ListPhoneTemplatesResponseContent, - parse_obj_as( - type_=ListPhoneTemplatesResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - *, - type: typing.Optional[PhoneTemplateNotificationTypeEnum] = OMIT, - disabled: typing.Optional[bool] = OMIT, - content: typing.Optional[PhoneTemplateContent] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[CreatePhoneTemplateResponseContent]: - """ - Parameters - ---------- - type : typing.Optional[PhoneTemplateNotificationTypeEnum] - - disabled : typing.Optional[bool] - Whether the template is enabled (false) or disabled (true). - - content : typing.Optional[PhoneTemplateContent] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CreatePhoneTemplateResponseContent] - The phone notification template was created. - """ - _response = self._client_wrapper.httpx_client.request( - "branding/phone/templates", - method="POST", - json={ - "type": type, - "disabled": disabled, - "content": convert_and_respect_annotation_metadata( - object_=content, annotation=PhoneTemplateContent, direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreatePhoneTemplateResponseContent, - parse_obj_as( - type_=CreatePhoneTemplateResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetPhoneTemplateResponseContent]: - """ - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetPhoneTemplateResponseContent] - The phone notification template were retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - f"branding/phone/templates/{quote_path_param(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetPhoneTemplateResponseContent, - parse_obj_as( - type_=GetPhoneTemplateResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[None]: - """ - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"branding/phone/templates/{quote_path_param(id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def update( - self, - id: str, - *, - content: typing.Optional[PartialPhoneTemplateContent] = OMIT, - disabled: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[UpdatePhoneTemplateResponseContent]: - """ - Parameters - ---------- - id : str - - content : typing.Optional[PartialPhoneTemplateContent] - - disabled : typing.Optional[bool] - Whether the template is enabled (false) or disabled (true). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[UpdatePhoneTemplateResponseContent] - The phone notification template was updated. - """ - _response = self._client_wrapper.httpx_client.request( - f"branding/phone/templates/{quote_path_param(id)}", - method="PATCH", - json={ - "content": convert_and_respect_annotation_metadata( - object_=content, annotation=PartialPhoneTemplateContent, direction="write" - ), - "disabled": disabled, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdatePhoneTemplateResponseContent, - parse_obj_as( - type_=UpdatePhoneTemplateResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def reset( - self, - id: str, - *, - request: ResetPhoneTemplateRequestContent, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[ResetPhoneTemplateResponseContent]: - """ - Parameters - ---------- - id : str - - request : ResetPhoneTemplateRequestContent - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[ResetPhoneTemplateResponseContent] - The phone notification template was reset. - """ - _response = self._client_wrapper.httpx_client.request( - f"branding/phone/templates/{quote_path_param(id)}/reset", - method="PATCH", - json=request, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - ResetPhoneTemplateResponseContent, - parse_obj_as( - type_=ResetPhoneTemplateResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def test( - self, - id: str, - *, - to: str, - delivery_method: typing.Optional[PhoneProviderDeliveryMethodEnum] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[CreatePhoneTemplateTestNotificationResponseContent]: - """ - Parameters - ---------- - id : str - - to : str - Destination of the testing phone notification - - delivery_method : typing.Optional[PhoneProviderDeliveryMethodEnum] - Medium to use to send the notification - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CreatePhoneTemplateTestNotificationResponseContent] - The phone testing notification for the template was sent - """ - _response = self._client_wrapper.httpx_client.request( - f"branding/phone/templates/{quote_path_param(id)}/try", - method="POST", - json={ - "to": to, - "delivery_method": delivery_method, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreatePhoneTemplateTestNotificationResponseContent, - parse_obj_as( - type_=CreatePhoneTemplateTestNotificationResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawTemplatesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, *, disabled: typing.Optional[bool] = None, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[ListPhoneTemplatesResponseContent]: - """ - Parameters - ---------- - disabled : typing.Optional[bool] - Whether the template is enabled (false) or disabled (true). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[ListPhoneTemplatesResponseContent] - The phone notification templates were retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - "branding/phone/templates", - method="GET", - params={ - "disabled": disabled, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - ListPhoneTemplatesResponseContent, - parse_obj_as( - type_=ListPhoneTemplatesResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - *, - type: typing.Optional[PhoneTemplateNotificationTypeEnum] = OMIT, - disabled: typing.Optional[bool] = OMIT, - content: typing.Optional[PhoneTemplateContent] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[CreatePhoneTemplateResponseContent]: - """ - Parameters - ---------- - type : typing.Optional[PhoneTemplateNotificationTypeEnum] - - disabled : typing.Optional[bool] - Whether the template is enabled (false) or disabled (true). - - content : typing.Optional[PhoneTemplateContent] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CreatePhoneTemplateResponseContent] - The phone notification template was created. - """ - _response = await self._client_wrapper.httpx_client.request( - "branding/phone/templates", - method="POST", - json={ - "type": type, - "disabled": disabled, - "content": convert_and_respect_annotation_metadata( - object_=content, annotation=PhoneTemplateContent, direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreatePhoneTemplateResponseContent, - parse_obj_as( - type_=CreatePhoneTemplateResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetPhoneTemplateResponseContent]: - """ - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetPhoneTemplateResponseContent] - The phone notification template were retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - f"branding/phone/templates/{quote_path_param(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetPhoneTemplateResponseContent, - parse_obj_as( - type_=GetPhoneTemplateResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def delete( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"branding/phone/templates/{quote_path_param(id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def update( - self, - id: str, - *, - content: typing.Optional[PartialPhoneTemplateContent] = OMIT, - disabled: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[UpdatePhoneTemplateResponseContent]: - """ - Parameters - ---------- - id : str - - content : typing.Optional[PartialPhoneTemplateContent] - - disabled : typing.Optional[bool] - Whether the template is enabled (false) or disabled (true). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[UpdatePhoneTemplateResponseContent] - The phone notification template was updated. - """ - _response = await self._client_wrapper.httpx_client.request( - f"branding/phone/templates/{quote_path_param(id)}", - method="PATCH", - json={ - "content": convert_and_respect_annotation_metadata( - object_=content, annotation=PartialPhoneTemplateContent, direction="write" - ), - "disabled": disabled, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdatePhoneTemplateResponseContent, - parse_obj_as( - type_=UpdatePhoneTemplateResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def reset( - self, - id: str, - *, - request: ResetPhoneTemplateRequestContent, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[ResetPhoneTemplateResponseContent]: - """ - Parameters - ---------- - id : str - - request : ResetPhoneTemplateRequestContent - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[ResetPhoneTemplateResponseContent] - The phone notification template was reset. - """ - _response = await self._client_wrapper.httpx_client.request( - f"branding/phone/templates/{quote_path_param(id)}/reset", - method="PATCH", - json=request, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - ResetPhoneTemplateResponseContent, - parse_obj_as( - type_=ResetPhoneTemplateResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def test( - self, - id: str, - *, - to: str, - delivery_method: typing.Optional[PhoneProviderDeliveryMethodEnum] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[CreatePhoneTemplateTestNotificationResponseContent]: - """ - Parameters - ---------- - id : str - - to : str - Destination of the testing phone notification - - delivery_method : typing.Optional[PhoneProviderDeliveryMethodEnum] - Medium to use to send the notification - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CreatePhoneTemplateTestNotificationResponseContent] - The phone testing notification for the template was sent - """ - _response = await self._client_wrapper.httpx_client.request( - f"branding/phone/templates/{quote_path_param(id)}/try", - method="POST", - json={ - "to": to, - "delivery_method": delivery_method, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreatePhoneTemplateTestNotificationResponseContent, - parse_obj_as( - type_=CreatePhoneTemplateTestNotificationResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/branding/raw_client.py b/src/auth0/management/branding/raw_client.py deleted file mode 100644 index 1e650c65..00000000 --- a/src/auth0/management/branding/raw_client.py +++ /dev/null @@ -1,408 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ..core.api_error import ApiError -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.http_response import AsyncHttpResponse, HttpResponse -from ..core.parse_error import ParsingError -from ..core.pydantic_utilities import parse_obj_as -from ..core.request_options import RequestOptions -from ..core.serialization import convert_and_respect_annotation_metadata -from ..errors.bad_request_error import BadRequestError -from ..errors.forbidden_error import ForbiddenError -from ..errors.too_many_requests_error import TooManyRequestsError -from ..errors.unauthorized_error import UnauthorizedError -from ..types.get_branding_response_content import GetBrandingResponseContent -from ..types.update_branding_colors import UpdateBrandingColors -from ..types.update_branding_font import UpdateBrandingFont -from ..types.update_branding_response_content import UpdateBrandingResponseContent -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawBrandingClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def get( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetBrandingResponseContent]: - """ - Retrieve branding settings. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetBrandingResponseContent] - Branding settings successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - "branding", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetBrandingResponseContent, - parse_obj_as( - type_=GetBrandingResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def update( - self, - *, - colors: typing.Optional[UpdateBrandingColors] = OMIT, - favicon_url: typing.Optional[str] = OMIT, - logo_url: typing.Optional[str] = OMIT, - font: typing.Optional[UpdateBrandingFont] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[UpdateBrandingResponseContent]: - """ - Update branding settings. - - Parameters - ---------- - colors : typing.Optional[UpdateBrandingColors] - - favicon_url : typing.Optional[str] - URL for the favicon. Must use HTTPS. - - logo_url : typing.Optional[str] - URL for the logo. Must use HTTPS. - - font : typing.Optional[UpdateBrandingFont] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[UpdateBrandingResponseContent] - Branding settings successfully updated. - """ - _response = self._client_wrapper.httpx_client.request( - "branding", - method="PATCH", - json={ - "colors": convert_and_respect_annotation_metadata( - object_=colors, annotation=typing.Optional[UpdateBrandingColors], direction="write" - ), - "favicon_url": favicon_url, - "logo_url": logo_url, - "font": convert_and_respect_annotation_metadata( - object_=font, annotation=typing.Optional[UpdateBrandingFont], direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateBrandingResponseContent, - parse_obj_as( - type_=UpdateBrandingResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawBrandingClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def get( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetBrandingResponseContent]: - """ - Retrieve branding settings. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetBrandingResponseContent] - Branding settings successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - "branding", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetBrandingResponseContent, - parse_obj_as( - type_=GetBrandingResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def update( - self, - *, - colors: typing.Optional[UpdateBrandingColors] = OMIT, - favicon_url: typing.Optional[str] = OMIT, - logo_url: typing.Optional[str] = OMIT, - font: typing.Optional[UpdateBrandingFont] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[UpdateBrandingResponseContent]: - """ - Update branding settings. - - Parameters - ---------- - colors : typing.Optional[UpdateBrandingColors] - - favicon_url : typing.Optional[str] - URL for the favicon. Must use HTTPS. - - logo_url : typing.Optional[str] - URL for the logo. Must use HTTPS. - - font : typing.Optional[UpdateBrandingFont] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[UpdateBrandingResponseContent] - Branding settings successfully updated. - """ - _response = await self._client_wrapper.httpx_client.request( - "branding", - method="PATCH", - json={ - "colors": convert_and_respect_annotation_metadata( - object_=colors, annotation=typing.Optional[UpdateBrandingColors], direction="write" - ), - "favicon_url": favicon_url, - "logo_url": logo_url, - "font": convert_and_respect_annotation_metadata( - object_=font, annotation=typing.Optional[UpdateBrandingFont], direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateBrandingResponseContent, - parse_obj_as( - type_=UpdateBrandingResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/branding/templates/__init__.py b/src/auth0/management/branding/templates/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/branding/templates/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/branding/templates/client.py b/src/auth0/management/branding/templates/client.py deleted file mode 100644 index 2559261d..00000000 --- a/src/auth0/management/branding/templates/client.py +++ /dev/null @@ -1,280 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.request_options import RequestOptions -from ...types.get_universal_login_template_response_content import GetUniversalLoginTemplateResponseContent -from ...types.update_universal_login_template_request_content import UpdateUniversalLoginTemplateRequestContent -from .raw_client import AsyncRawTemplatesClient, RawTemplatesClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class TemplatesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawTemplatesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawTemplatesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawTemplatesClient - """ - return self._raw_client - - def get_universal_login( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetUniversalLoginTemplateResponseContent: - """ - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetUniversalLoginTemplateResponseContent - Template successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.branding.templates.get_universal_login() - """ - _response = self._raw_client.get_universal_login(request_options=request_options) - return _response.data - - def update_universal_login( - self, - *, - request: UpdateUniversalLoginTemplateRequestContent, - request_options: typing.Optional[RequestOptions] = None, - ) -> None: - """ - Update the Universal Login branding template. - - When `content-type` header is set to `application/json`: - - ```json - { - "template": "{% assign resolved_dir = dir | default: \\"auto\\" %}{%- auth0:head -%}{%- auth0:widget -%}" - } - ``` - - When `content-type` header is set to `text/html`: - - ```html - - {% assign resolved_dir = dir | default: "auto" %} - - - {%- auth0:head -%} - - - {%- auth0:widget -%} - - - ``` - - Parameters - ---------- - request : UpdateUniversalLoginTemplateRequestContent - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.branding.templates.update_universal_login( - request="string", - ) - """ - _response = self._raw_client.update_universal_login(request=request, request_options=request_options) - return _response.data - - def delete_universal_login(self, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.branding.templates.delete_universal_login() - """ - _response = self._raw_client.delete_universal_login(request_options=request_options) - return _response.data - - -class AsyncTemplatesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawTemplatesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawTemplatesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawTemplatesClient - """ - return self._raw_client - - async def get_universal_login( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetUniversalLoginTemplateResponseContent: - """ - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetUniversalLoginTemplateResponseContent - Template successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.branding.templates.get_universal_login() - - - asyncio.run(main()) - """ - _response = await self._raw_client.get_universal_login(request_options=request_options) - return _response.data - - async def update_universal_login( - self, - *, - request: UpdateUniversalLoginTemplateRequestContent, - request_options: typing.Optional[RequestOptions] = None, - ) -> None: - """ - Update the Universal Login branding template. - - When `content-type` header is set to `application/json`: - - ```json - { - "template": "{% assign resolved_dir = dir | default: \\"auto\\" %}{%- auth0:head -%}{%- auth0:widget -%}" - } - ``` - - When `content-type` header is set to `text/html`: - - ```html - - {% assign resolved_dir = dir | default: "auto" %} - - - {%- auth0:head -%} - - - {%- auth0:widget -%} - - - ``` - - Parameters - ---------- - request : UpdateUniversalLoginTemplateRequestContent - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.branding.templates.update_universal_login( - request="string", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.update_universal_login(request=request, request_options=request_options) - return _response.data - - async def delete_universal_login(self, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.branding.templates.delete_universal_login() - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete_universal_login(request_options=request_options) - return _response.data diff --git a/src/auth0/management/branding/templates/raw_client.py b/src/auth0/management/branding/templates/raw_client.py deleted file mode 100644 index f98c5c2b..00000000 --- a/src/auth0/management/branding/templates/raw_client.py +++ /dev/null @@ -1,627 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ...core.api_error import ApiError -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.http_response import AsyncHttpResponse, HttpResponse -from ...core.parse_error import ParsingError -from ...core.pydantic_utilities import parse_obj_as -from ...core.request_options import RequestOptions -from ...core.serialization import convert_and_respect_annotation_metadata -from ...errors.bad_request_error import BadRequestError -from ...errors.conflict_error import ConflictError -from ...errors.forbidden_error import ForbiddenError -from ...errors.not_found_error import NotFoundError -from ...errors.payment_required_error import PaymentRequiredError -from ...errors.too_many_requests_error import TooManyRequestsError -from ...errors.unauthorized_error import UnauthorizedError -from ...types.get_universal_login_template_response_content import GetUniversalLoginTemplateResponseContent -from ...types.update_universal_login_template_request_content import UpdateUniversalLoginTemplateRequestContent -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawTemplatesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def get_universal_login( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetUniversalLoginTemplateResponseContent]: - """ - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetUniversalLoginTemplateResponseContent] - Template successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - "branding/templates/universal-login", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetUniversalLoginTemplateResponseContent, - parse_obj_as( - type_=GetUniversalLoginTemplateResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 402: - raise PaymentRequiredError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def update_universal_login( - self, - *, - request: UpdateUniversalLoginTemplateRequestContent, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[None]: - """ - Update the Universal Login branding template. - - When `content-type` header is set to `application/json`: - - ```json - { - "template": "{% assign resolved_dir = dir | default: \\"auto\\" %}{%- auth0:head -%}{%- auth0:widget -%}" - } - ``` - - When `content-type` header is set to `text/html`: - - ```html - - {% assign resolved_dir = dir | default: "auto" %} - - - {%- auth0:head -%} - - - {%- auth0:widget -%} - - - ``` - - Parameters - ---------- - request : UpdateUniversalLoginTemplateRequestContent - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - "branding/templates/universal-login", - method="PUT", - json=convert_and_respect_annotation_metadata( - object_=request, annotation=UpdateUniversalLoginTemplateRequestContent, direction="write" - ), - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 402: - raise PaymentRequiredError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def delete_universal_login(self, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[None]: - """ - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - "branding/templates/universal-login", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 402: - raise PaymentRequiredError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawTemplatesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def get_universal_login( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetUniversalLoginTemplateResponseContent]: - """ - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetUniversalLoginTemplateResponseContent] - Template successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - "branding/templates/universal-login", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetUniversalLoginTemplateResponseContent, - parse_obj_as( - type_=GetUniversalLoginTemplateResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 402: - raise PaymentRequiredError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def update_universal_login( - self, - *, - request: UpdateUniversalLoginTemplateRequestContent, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[None]: - """ - Update the Universal Login branding template. - - When `content-type` header is set to `application/json`: - - ```json - { - "template": "{% assign resolved_dir = dir | default: \\"auto\\" %}{%- auth0:head -%}{%- auth0:widget -%}" - } - ``` - - When `content-type` header is set to `text/html`: - - ```html - - {% assign resolved_dir = dir | default: "auto" %} - - - {%- auth0:head -%} - - - {%- auth0:widget -%} - - - ``` - - Parameters - ---------- - request : UpdateUniversalLoginTemplateRequestContent - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - "branding/templates/universal-login", - method="PUT", - json=convert_and_respect_annotation_metadata( - object_=request, annotation=UpdateUniversalLoginTemplateRequestContent, direction="write" - ), - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 402: - raise PaymentRequiredError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def delete_universal_login( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - "branding/templates/universal-login", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 402: - raise PaymentRequiredError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/branding/themes/__init__.py b/src/auth0/management/branding/themes/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/branding/themes/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/branding/themes/client.py b/src/auth0/management/branding/themes/client.py deleted file mode 100644 index 6cac9674..00000000 --- a/src/auth0/management/branding/themes/client.py +++ /dev/null @@ -1,866 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.request_options import RequestOptions -from ...types.branding_theme_borders import BrandingThemeBorders -from ...types.branding_theme_colors import BrandingThemeColors -from ...types.branding_theme_fonts import BrandingThemeFonts -from ...types.branding_theme_identifiers import BrandingThemeIdentifiers -from ...types.branding_theme_page_background import BrandingThemePageBackground -from ...types.branding_theme_widget import BrandingThemeWidget -from ...types.create_branding_theme_response_content import CreateBrandingThemeResponseContent -from ...types.get_branding_default_theme_response_content import GetBrandingDefaultThemeResponseContent -from ...types.get_branding_theme_response_content import GetBrandingThemeResponseContent -from ...types.update_branding_theme_response_content import UpdateBrandingThemeResponseContent -from .raw_client import AsyncRawThemesClient, RawThemesClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class ThemesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawThemesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawThemesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawThemesClient - """ - return self._raw_client - - def create( - self, - *, - borders: BrandingThemeBorders, - colors: BrandingThemeColors, - fonts: BrandingThemeFonts, - page_background: BrandingThemePageBackground, - widget: BrandingThemeWidget, - display_name: typing.Optional[str] = OMIT, - identifiers: typing.Optional[BrandingThemeIdentifiers] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateBrandingThemeResponseContent: - """ - Create branding theme. - - Parameters - ---------- - borders : BrandingThemeBorders - - colors : BrandingThemeColors - - fonts : BrandingThemeFonts - - page_background : BrandingThemePageBackground - - widget : BrandingThemeWidget - - display_name : typing.Optional[str] - Display Name - - identifiers : typing.Optional[BrandingThemeIdentifiers] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateBrandingThemeResponseContent - Branding settings successfully updated. - - Examples - -------- - from auth0 import ( - Auth0, - BrandingThemeBorders, - BrandingThemeColors, - BrandingThemeFontBodyText, - BrandingThemeFontButtonsText, - BrandingThemeFontInputLabels, - BrandingThemeFontLinks, - BrandingThemeFonts, - BrandingThemeFontSubtitle, - BrandingThemeFontTitle, - BrandingThemePageBackground, - BrandingThemeWidget, - ) - - client = Auth0( - token="YOUR_TOKEN", - ) - client.branding.themes.create( - borders=BrandingThemeBorders( - button_border_radius=1.1, - button_border_weight=1.1, - buttons_style="pill", - input_border_radius=1.1, - input_border_weight=1.1, - inputs_style="pill", - show_widget_shadow=True, - widget_border_weight=1.1, - widget_corner_radius=1.1, - ), - colors=BrandingThemeColors( - body_text="body_text", - error="error", - header="header", - icons="icons", - input_background="input_background", - input_border="input_border", - input_filled_text="input_filled_text", - input_labels_placeholders="input_labels_placeholders", - links_focused_components="links_focused_components", - primary_button="primary_button", - primary_button_label="primary_button_label", - secondary_button_border="secondary_button_border", - secondary_button_label="secondary_button_label", - success="success", - widget_background="widget_background", - widget_border="widget_border", - ), - fonts=BrandingThemeFonts( - body_text=BrandingThemeFontBodyText( - bold=True, - size=1.1, - ), - buttons_text=BrandingThemeFontButtonsText( - bold=True, - size=1.1, - ), - font_url="font_url", - input_labels=BrandingThemeFontInputLabels( - bold=True, - size=1.1, - ), - links=BrandingThemeFontLinks( - bold=True, - size=1.1, - ), - links_style="normal", - reference_text_size=1.1, - subtitle=BrandingThemeFontSubtitle( - bold=True, - size=1.1, - ), - title=BrandingThemeFontTitle( - bold=True, - size=1.1, - ), - ), - page_background=BrandingThemePageBackground( - background_color="background_color", - background_image_url="background_image_url", - page_layout="center", - ), - widget=BrandingThemeWidget( - header_text_alignment="center", - logo_height=1.1, - logo_position="center", - logo_url="logo_url", - social_buttons_layout="bottom", - ), - ) - """ - _response = self._raw_client.create( - borders=borders, - colors=colors, - fonts=fonts, - page_background=page_background, - widget=widget, - display_name=display_name, - identifiers=identifiers, - request_options=request_options, - ) - return _response.data - - def get_default( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetBrandingDefaultThemeResponseContent: - """ - Retrieve default branding theme. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetBrandingDefaultThemeResponseContent - Branding theme successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.branding.themes.get_default() - """ - _response = self._raw_client.get_default(request_options=request_options) - return _response.data - - def get( - self, theme_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetBrandingThemeResponseContent: - """ - Retrieve branding theme. - - Parameters - ---------- - theme_id : str - The ID of the theme - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetBrandingThemeResponseContent - Branding theme successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.branding.themes.get( - theme_id="themeId", - ) - """ - _response = self._raw_client.get(theme_id, request_options=request_options) - return _response.data - - def delete(self, theme_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete branding theme. - - Parameters - ---------- - theme_id : str - The ID of the theme - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.branding.themes.delete( - theme_id="themeId", - ) - """ - _response = self._raw_client.delete(theme_id, request_options=request_options) - return _response.data - - def update( - self, - theme_id: str, - *, - borders: BrandingThemeBorders, - colors: BrandingThemeColors, - fonts: BrandingThemeFonts, - page_background: BrandingThemePageBackground, - widget: BrandingThemeWidget, - display_name: typing.Optional[str] = OMIT, - identifiers: typing.Optional[BrandingThemeIdentifiers] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateBrandingThemeResponseContent: - """ - Update branding theme. - - Parameters - ---------- - theme_id : str - The ID of the theme - - borders : BrandingThemeBorders - - colors : BrandingThemeColors - - fonts : BrandingThemeFonts - - page_background : BrandingThemePageBackground - - widget : BrandingThemeWidget - - display_name : typing.Optional[str] - Display Name - - identifiers : typing.Optional[BrandingThemeIdentifiers] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateBrandingThemeResponseContent - Branding settings successfully updated. - - Examples - -------- - from auth0 import ( - Auth0, - BrandingThemeBorders, - BrandingThemeColors, - BrandingThemeFontBodyText, - BrandingThemeFontButtonsText, - BrandingThemeFontInputLabels, - BrandingThemeFontLinks, - BrandingThemeFonts, - BrandingThemeFontSubtitle, - BrandingThemeFontTitle, - BrandingThemePageBackground, - BrandingThemeWidget, - ) - - client = Auth0( - token="YOUR_TOKEN", - ) - client.branding.themes.update( - theme_id="themeId", - borders=BrandingThemeBorders( - button_border_radius=1.1, - button_border_weight=1.1, - buttons_style="pill", - input_border_radius=1.1, - input_border_weight=1.1, - inputs_style="pill", - show_widget_shadow=True, - widget_border_weight=1.1, - widget_corner_radius=1.1, - ), - colors=BrandingThemeColors( - body_text="body_text", - error="error", - header="header", - icons="icons", - input_background="input_background", - input_border="input_border", - input_filled_text="input_filled_text", - input_labels_placeholders="input_labels_placeholders", - links_focused_components="links_focused_components", - primary_button="primary_button", - primary_button_label="primary_button_label", - secondary_button_border="secondary_button_border", - secondary_button_label="secondary_button_label", - success="success", - widget_background="widget_background", - widget_border="widget_border", - ), - fonts=BrandingThemeFonts( - body_text=BrandingThemeFontBodyText( - bold=True, - size=1.1, - ), - buttons_text=BrandingThemeFontButtonsText( - bold=True, - size=1.1, - ), - font_url="font_url", - input_labels=BrandingThemeFontInputLabels( - bold=True, - size=1.1, - ), - links=BrandingThemeFontLinks( - bold=True, - size=1.1, - ), - links_style="normal", - reference_text_size=1.1, - subtitle=BrandingThemeFontSubtitle( - bold=True, - size=1.1, - ), - title=BrandingThemeFontTitle( - bold=True, - size=1.1, - ), - ), - page_background=BrandingThemePageBackground( - background_color="background_color", - background_image_url="background_image_url", - page_layout="center", - ), - widget=BrandingThemeWidget( - header_text_alignment="center", - logo_height=1.1, - logo_position="center", - logo_url="logo_url", - social_buttons_layout="bottom", - ), - ) - """ - _response = self._raw_client.update( - theme_id, - borders=borders, - colors=colors, - fonts=fonts, - page_background=page_background, - widget=widget, - display_name=display_name, - identifiers=identifiers, - request_options=request_options, - ) - return _response.data - - -class AsyncThemesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawThemesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawThemesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawThemesClient - """ - return self._raw_client - - async def create( - self, - *, - borders: BrandingThemeBorders, - colors: BrandingThemeColors, - fonts: BrandingThemeFonts, - page_background: BrandingThemePageBackground, - widget: BrandingThemeWidget, - display_name: typing.Optional[str] = OMIT, - identifiers: typing.Optional[BrandingThemeIdentifiers] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateBrandingThemeResponseContent: - """ - Create branding theme. - - Parameters - ---------- - borders : BrandingThemeBorders - - colors : BrandingThemeColors - - fonts : BrandingThemeFonts - - page_background : BrandingThemePageBackground - - widget : BrandingThemeWidget - - display_name : typing.Optional[str] - Display Name - - identifiers : typing.Optional[BrandingThemeIdentifiers] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateBrandingThemeResponseContent - Branding settings successfully updated. - - Examples - -------- - import asyncio - - from auth0 import ( - AsyncAuth0, - BrandingThemeBorders, - BrandingThemeColors, - BrandingThemeFontBodyText, - BrandingThemeFontButtonsText, - BrandingThemeFontInputLabels, - BrandingThemeFontLinks, - BrandingThemeFonts, - BrandingThemeFontSubtitle, - BrandingThemeFontTitle, - BrandingThemePageBackground, - BrandingThemeWidget, - ) - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.branding.themes.create( - borders=BrandingThemeBorders( - button_border_radius=1.1, - button_border_weight=1.1, - buttons_style="pill", - input_border_radius=1.1, - input_border_weight=1.1, - inputs_style="pill", - show_widget_shadow=True, - widget_border_weight=1.1, - widget_corner_radius=1.1, - ), - colors=BrandingThemeColors( - body_text="body_text", - error="error", - header="header", - icons="icons", - input_background="input_background", - input_border="input_border", - input_filled_text="input_filled_text", - input_labels_placeholders="input_labels_placeholders", - links_focused_components="links_focused_components", - primary_button="primary_button", - primary_button_label="primary_button_label", - secondary_button_border="secondary_button_border", - secondary_button_label="secondary_button_label", - success="success", - widget_background="widget_background", - widget_border="widget_border", - ), - fonts=BrandingThemeFonts( - body_text=BrandingThemeFontBodyText( - bold=True, - size=1.1, - ), - buttons_text=BrandingThemeFontButtonsText( - bold=True, - size=1.1, - ), - font_url="font_url", - input_labels=BrandingThemeFontInputLabels( - bold=True, - size=1.1, - ), - links=BrandingThemeFontLinks( - bold=True, - size=1.1, - ), - links_style="normal", - reference_text_size=1.1, - subtitle=BrandingThemeFontSubtitle( - bold=True, - size=1.1, - ), - title=BrandingThemeFontTitle( - bold=True, - size=1.1, - ), - ), - page_background=BrandingThemePageBackground( - background_color="background_color", - background_image_url="background_image_url", - page_layout="center", - ), - widget=BrandingThemeWidget( - header_text_alignment="center", - logo_height=1.1, - logo_position="center", - logo_url="logo_url", - social_buttons_layout="bottom", - ), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - borders=borders, - colors=colors, - fonts=fonts, - page_background=page_background, - widget=widget, - display_name=display_name, - identifiers=identifiers, - request_options=request_options, - ) - return _response.data - - async def get_default( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetBrandingDefaultThemeResponseContent: - """ - Retrieve default branding theme. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetBrandingDefaultThemeResponseContent - Branding theme successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.branding.themes.get_default() - - - asyncio.run(main()) - """ - _response = await self._raw_client.get_default(request_options=request_options) - return _response.data - - async def get( - self, theme_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetBrandingThemeResponseContent: - """ - Retrieve branding theme. - - Parameters - ---------- - theme_id : str - The ID of the theme - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetBrandingThemeResponseContent - Branding theme successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.branding.themes.get( - theme_id="themeId", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.get(theme_id, request_options=request_options) - return _response.data - - async def delete(self, theme_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete branding theme. - - Parameters - ---------- - theme_id : str - The ID of the theme - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.branding.themes.delete( - theme_id="themeId", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete(theme_id, request_options=request_options) - return _response.data - - async def update( - self, - theme_id: str, - *, - borders: BrandingThemeBorders, - colors: BrandingThemeColors, - fonts: BrandingThemeFonts, - page_background: BrandingThemePageBackground, - widget: BrandingThemeWidget, - display_name: typing.Optional[str] = OMIT, - identifiers: typing.Optional[BrandingThemeIdentifiers] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateBrandingThemeResponseContent: - """ - Update branding theme. - - Parameters - ---------- - theme_id : str - The ID of the theme - - borders : BrandingThemeBorders - - colors : BrandingThemeColors - - fonts : BrandingThemeFonts - - page_background : BrandingThemePageBackground - - widget : BrandingThemeWidget - - display_name : typing.Optional[str] - Display Name - - identifiers : typing.Optional[BrandingThemeIdentifiers] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateBrandingThemeResponseContent - Branding settings successfully updated. - - Examples - -------- - import asyncio - - from auth0 import ( - AsyncAuth0, - BrandingThemeBorders, - BrandingThemeColors, - BrandingThemeFontBodyText, - BrandingThemeFontButtonsText, - BrandingThemeFontInputLabels, - BrandingThemeFontLinks, - BrandingThemeFonts, - BrandingThemeFontSubtitle, - BrandingThemeFontTitle, - BrandingThemePageBackground, - BrandingThemeWidget, - ) - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.branding.themes.update( - theme_id="themeId", - borders=BrandingThemeBorders( - button_border_radius=1.1, - button_border_weight=1.1, - buttons_style="pill", - input_border_radius=1.1, - input_border_weight=1.1, - inputs_style="pill", - show_widget_shadow=True, - widget_border_weight=1.1, - widget_corner_radius=1.1, - ), - colors=BrandingThemeColors( - body_text="body_text", - error="error", - header="header", - icons="icons", - input_background="input_background", - input_border="input_border", - input_filled_text="input_filled_text", - input_labels_placeholders="input_labels_placeholders", - links_focused_components="links_focused_components", - primary_button="primary_button", - primary_button_label="primary_button_label", - secondary_button_border="secondary_button_border", - secondary_button_label="secondary_button_label", - success="success", - widget_background="widget_background", - widget_border="widget_border", - ), - fonts=BrandingThemeFonts( - body_text=BrandingThemeFontBodyText( - bold=True, - size=1.1, - ), - buttons_text=BrandingThemeFontButtonsText( - bold=True, - size=1.1, - ), - font_url="font_url", - input_labels=BrandingThemeFontInputLabels( - bold=True, - size=1.1, - ), - links=BrandingThemeFontLinks( - bold=True, - size=1.1, - ), - links_style="normal", - reference_text_size=1.1, - subtitle=BrandingThemeFontSubtitle( - bold=True, - size=1.1, - ), - title=BrandingThemeFontTitle( - bold=True, - size=1.1, - ), - ), - page_background=BrandingThemePageBackground( - background_color="background_color", - background_image_url="background_image_url", - page_layout="center", - ), - widget=BrandingThemeWidget( - header_text_alignment="center", - logo_height=1.1, - logo_position="center", - logo_url="logo_url", - social_buttons_layout="bottom", - ), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.update( - theme_id, - borders=borders, - colors=colors, - fonts=fonts, - page_background=page_background, - widget=widget, - display_name=display_name, - identifiers=identifiers, - request_options=request_options, - ) - return _response.data diff --git a/src/auth0/management/branding/themes/raw_client.py b/src/auth0/management/branding/themes/raw_client.py deleted file mode 100644 index 068fa138..00000000 --- a/src/auth0/management/branding/themes/raw_client.py +++ /dev/null @@ -1,1125 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ...core.api_error import ApiError -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.http_response import AsyncHttpResponse, HttpResponse -from ...core.jsonable_encoder import quote_path_param -from ...core.parse_error import ParsingError -from ...core.pydantic_utilities import parse_obj_as -from ...core.request_options import RequestOptions -from ...core.serialization import convert_and_respect_annotation_metadata -from ...errors.bad_request_error import BadRequestError -from ...errors.conflict_error import ConflictError -from ...errors.forbidden_error import ForbiddenError -from ...errors.not_found_error import NotFoundError -from ...errors.too_many_requests_error import TooManyRequestsError -from ...errors.unauthorized_error import UnauthorizedError -from ...types.branding_theme_borders import BrandingThemeBorders -from ...types.branding_theme_colors import BrandingThemeColors -from ...types.branding_theme_fonts import BrandingThemeFonts -from ...types.branding_theme_identifiers import BrandingThemeIdentifiers -from ...types.branding_theme_page_background import BrandingThemePageBackground -from ...types.branding_theme_widget import BrandingThemeWidget -from ...types.create_branding_theme_response_content import CreateBrandingThemeResponseContent -from ...types.get_branding_default_theme_response_content import GetBrandingDefaultThemeResponseContent -from ...types.get_branding_theme_response_content import GetBrandingThemeResponseContent -from ...types.update_branding_theme_response_content import UpdateBrandingThemeResponseContent -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawThemesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def create( - self, - *, - borders: BrandingThemeBorders, - colors: BrandingThemeColors, - fonts: BrandingThemeFonts, - page_background: BrandingThemePageBackground, - widget: BrandingThemeWidget, - display_name: typing.Optional[str] = OMIT, - identifiers: typing.Optional[BrandingThemeIdentifiers] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[CreateBrandingThemeResponseContent]: - """ - Create branding theme. - - Parameters - ---------- - borders : BrandingThemeBorders - - colors : BrandingThemeColors - - fonts : BrandingThemeFonts - - page_background : BrandingThemePageBackground - - widget : BrandingThemeWidget - - display_name : typing.Optional[str] - Display Name - - identifiers : typing.Optional[BrandingThemeIdentifiers] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CreateBrandingThemeResponseContent] - Branding settings successfully updated. - """ - _response = self._client_wrapper.httpx_client.request( - "branding/themes", - method="POST", - json={ - "borders": convert_and_respect_annotation_metadata( - object_=borders, annotation=BrandingThemeBorders, direction="write" - ), - "colors": convert_and_respect_annotation_metadata( - object_=colors, annotation=BrandingThemeColors, direction="write" - ), - "displayName": display_name, - "fonts": convert_and_respect_annotation_metadata( - object_=fonts, annotation=BrandingThemeFonts, direction="write" - ), - "identifiers": convert_and_respect_annotation_metadata( - object_=identifiers, annotation=BrandingThemeIdentifiers, direction="write" - ), - "page_background": convert_and_respect_annotation_metadata( - object_=page_background, annotation=BrandingThemePageBackground, direction="write" - ), - "widget": convert_and_respect_annotation_metadata( - object_=widget, annotation=BrandingThemeWidget, direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateBrandingThemeResponseContent, - parse_obj_as( - type_=CreateBrandingThemeResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def get_default( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetBrandingDefaultThemeResponseContent]: - """ - Retrieve default branding theme. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetBrandingDefaultThemeResponseContent] - Branding theme successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - "branding/themes/default", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetBrandingDefaultThemeResponseContent, - parse_obj_as( - type_=GetBrandingDefaultThemeResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def get( - self, theme_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetBrandingThemeResponseContent]: - """ - Retrieve branding theme. - - Parameters - ---------- - theme_id : str - The ID of the theme - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetBrandingThemeResponseContent] - Branding theme successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - f"branding/themes/{quote_path_param(theme_id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetBrandingThemeResponseContent, - parse_obj_as( - type_=GetBrandingThemeResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def delete(self, theme_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[None]: - """ - Delete branding theme. - - Parameters - ---------- - theme_id : str - The ID of the theme - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"branding/themes/{quote_path_param(theme_id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def update( - self, - theme_id: str, - *, - borders: BrandingThemeBorders, - colors: BrandingThemeColors, - fonts: BrandingThemeFonts, - page_background: BrandingThemePageBackground, - widget: BrandingThemeWidget, - display_name: typing.Optional[str] = OMIT, - identifiers: typing.Optional[BrandingThemeIdentifiers] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[UpdateBrandingThemeResponseContent]: - """ - Update branding theme. - - Parameters - ---------- - theme_id : str - The ID of the theme - - borders : BrandingThemeBorders - - colors : BrandingThemeColors - - fonts : BrandingThemeFonts - - page_background : BrandingThemePageBackground - - widget : BrandingThemeWidget - - display_name : typing.Optional[str] - Display Name - - identifiers : typing.Optional[BrandingThemeIdentifiers] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[UpdateBrandingThemeResponseContent] - Branding settings successfully updated. - """ - _response = self._client_wrapper.httpx_client.request( - f"branding/themes/{quote_path_param(theme_id)}", - method="PATCH", - json={ - "borders": convert_and_respect_annotation_metadata( - object_=borders, annotation=BrandingThemeBorders, direction="write" - ), - "colors": convert_and_respect_annotation_metadata( - object_=colors, annotation=BrandingThemeColors, direction="write" - ), - "displayName": display_name, - "fonts": convert_and_respect_annotation_metadata( - object_=fonts, annotation=BrandingThemeFonts, direction="write" - ), - "identifiers": convert_and_respect_annotation_metadata( - object_=identifiers, annotation=BrandingThemeIdentifiers, direction="write" - ), - "page_background": convert_and_respect_annotation_metadata( - object_=page_background, annotation=BrandingThemePageBackground, direction="write" - ), - "widget": convert_and_respect_annotation_metadata( - object_=widget, annotation=BrandingThemeWidget, direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateBrandingThemeResponseContent, - parse_obj_as( - type_=UpdateBrandingThemeResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawThemesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def create( - self, - *, - borders: BrandingThemeBorders, - colors: BrandingThemeColors, - fonts: BrandingThemeFonts, - page_background: BrandingThemePageBackground, - widget: BrandingThemeWidget, - display_name: typing.Optional[str] = OMIT, - identifiers: typing.Optional[BrandingThemeIdentifiers] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[CreateBrandingThemeResponseContent]: - """ - Create branding theme. - - Parameters - ---------- - borders : BrandingThemeBorders - - colors : BrandingThemeColors - - fonts : BrandingThemeFonts - - page_background : BrandingThemePageBackground - - widget : BrandingThemeWidget - - display_name : typing.Optional[str] - Display Name - - identifiers : typing.Optional[BrandingThemeIdentifiers] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CreateBrandingThemeResponseContent] - Branding settings successfully updated. - """ - _response = await self._client_wrapper.httpx_client.request( - "branding/themes", - method="POST", - json={ - "borders": convert_and_respect_annotation_metadata( - object_=borders, annotation=BrandingThemeBorders, direction="write" - ), - "colors": convert_and_respect_annotation_metadata( - object_=colors, annotation=BrandingThemeColors, direction="write" - ), - "displayName": display_name, - "fonts": convert_and_respect_annotation_metadata( - object_=fonts, annotation=BrandingThemeFonts, direction="write" - ), - "identifiers": convert_and_respect_annotation_metadata( - object_=identifiers, annotation=BrandingThemeIdentifiers, direction="write" - ), - "page_background": convert_and_respect_annotation_metadata( - object_=page_background, annotation=BrandingThemePageBackground, direction="write" - ), - "widget": convert_and_respect_annotation_metadata( - object_=widget, annotation=BrandingThemeWidget, direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateBrandingThemeResponseContent, - parse_obj_as( - type_=CreateBrandingThemeResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def get_default( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetBrandingDefaultThemeResponseContent]: - """ - Retrieve default branding theme. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetBrandingDefaultThemeResponseContent] - Branding theme successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - "branding/themes/default", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetBrandingDefaultThemeResponseContent, - parse_obj_as( - type_=GetBrandingDefaultThemeResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def get( - self, theme_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetBrandingThemeResponseContent]: - """ - Retrieve branding theme. - - Parameters - ---------- - theme_id : str - The ID of the theme - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetBrandingThemeResponseContent] - Branding theme successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - f"branding/themes/{quote_path_param(theme_id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetBrandingThemeResponseContent, - parse_obj_as( - type_=GetBrandingThemeResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def delete( - self, theme_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Delete branding theme. - - Parameters - ---------- - theme_id : str - The ID of the theme - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"branding/themes/{quote_path_param(theme_id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def update( - self, - theme_id: str, - *, - borders: BrandingThemeBorders, - colors: BrandingThemeColors, - fonts: BrandingThemeFonts, - page_background: BrandingThemePageBackground, - widget: BrandingThemeWidget, - display_name: typing.Optional[str] = OMIT, - identifiers: typing.Optional[BrandingThemeIdentifiers] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[UpdateBrandingThemeResponseContent]: - """ - Update branding theme. - - Parameters - ---------- - theme_id : str - The ID of the theme - - borders : BrandingThemeBorders - - colors : BrandingThemeColors - - fonts : BrandingThemeFonts - - page_background : BrandingThemePageBackground - - widget : BrandingThemeWidget - - display_name : typing.Optional[str] - Display Name - - identifiers : typing.Optional[BrandingThemeIdentifiers] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[UpdateBrandingThemeResponseContent] - Branding settings successfully updated. - """ - _response = await self._client_wrapper.httpx_client.request( - f"branding/themes/{quote_path_param(theme_id)}", - method="PATCH", - json={ - "borders": convert_and_respect_annotation_metadata( - object_=borders, annotation=BrandingThemeBorders, direction="write" - ), - "colors": convert_and_respect_annotation_metadata( - object_=colors, annotation=BrandingThemeColors, direction="write" - ), - "displayName": display_name, - "fonts": convert_and_respect_annotation_metadata( - object_=fonts, annotation=BrandingThemeFonts, direction="write" - ), - "identifiers": convert_and_respect_annotation_metadata( - object_=identifiers, annotation=BrandingThemeIdentifiers, direction="write" - ), - "page_background": convert_and_respect_annotation_metadata( - object_=page_background, annotation=BrandingThemePageBackground, direction="write" - ), - "widget": convert_and_respect_annotation_metadata( - object_=widget, annotation=BrandingThemeWidget, direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateBrandingThemeResponseContent, - parse_obj_as( - type_=UpdateBrandingThemeResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/client.py b/src/auth0/management/client.py index f8ac86aa..90d1d487 100644 --- a/src/auth0/management/client.py +++ b/src/auth0/management/client.py @@ -1,64 +1,17 @@ # This file was auto-generated by Fern from our API Definition. -from __future__ import annotations - import typing import httpx from .core.client_wrapper import AsyncClientWrapper, SyncClientWrapper from .core.logging import LogConfig, Logger -from .environment import Auth0Environment - -if typing.TYPE_CHECKING: - from .actions.client import ActionsClient, AsyncActionsClient - from .agents.client import AgentsClient, AsyncAgentsClient - from .anomaly.client import AnomalyClient, AsyncAnomalyClient - from .attack_protection.client import AsyncAttackProtectionClient, AttackProtectionClient - from .branding.client import AsyncBrandingClient, BrandingClient - from .client_grants.client import AsyncClientGrantsClient, ClientGrantsClient - from .client_profiles.client import AsyncClientProfilesClient, ClientProfilesClient - from .clients.client import AsyncClientsClient, ClientsClient - from .connection_profiles.client import AsyncConnectionProfilesClient, ConnectionProfilesClient - from .connections.client import AsyncConnectionsClient, ConnectionsClient - from .custom_domains.client import AsyncCustomDomainsClient, CustomDomainsClient - from .device_credentials.client import AsyncDeviceCredentialsClient, DeviceCredentialsClient - from .email_templates.client import AsyncEmailTemplatesClient, EmailTemplatesClient - from .emails.client import AsyncEmailsClient, EmailsClient - from .event_streams.client import AsyncEventStreamsClient, EventStreamsClient - from .events.client import AsyncEventsClient, EventsClient - from .experimentation.client import AsyncExperimentationClient, ExperimentationClient - from .flows.client import AsyncFlowsClient, FlowsClient - from .forms.client import AsyncFormsClient, FormsClient - from .groups.client import AsyncGroupsClient, GroupsClient - from .guardian.client import AsyncGuardianClient, GuardianClient - from .hooks.client import AsyncHooksClient, HooksClient - from .jobs.client import AsyncJobsClient, JobsClient - from .keys.client import AsyncKeysClient, KeysClient - from .log_streams.client import AsyncLogStreamsClient, LogStreamsClient - from .logs.client import AsyncLogsClient, LogsClient - from .network_acls.client import AsyncNetworkAclsClient, NetworkAclsClient - from .organizations.client import AsyncOrganizationsClient, OrganizationsClient - from .portals.client import AsyncPortalsClient, PortalsClient - from .prompts.client import AsyncPromptsClient, PromptsClient - from .rate_limit_policies.client import AsyncRateLimitPoliciesClient, RateLimitPoliciesClient - from .refresh_tokens.client import AsyncRefreshTokensClient, RefreshTokensClient - from .resource_servers.client import AsyncResourceServersClient, ResourceServersClient - from .risk_assessments.client import AsyncRiskAssessmentsClient, RiskAssessmentsClient - from .roles.client import AsyncRolesClient, RolesClient - from .rules.client import AsyncRulesClient, RulesClient - from .rules_configs.client import AsyncRulesConfigsClient, RulesConfigsClient - from .self_service_profiles.client import AsyncSelfServiceProfilesClient, SelfServiceProfilesClient - from .sessions.client import AsyncSessionsClient, SessionsClient - from .stats.client import AsyncStatsClient, StatsClient - from .supplemental_signals.client import AsyncSupplementalSignalsClient, SupplementalSignalsClient - from .tenants.client import AsyncTenantsClient, TenantsClient - from .tickets.client import AsyncTicketsClient, TicketsClient - from .token_exchange_profiles.client import AsyncTokenExchangeProfilesClient, TokenExchangeProfilesClient - from .user_attribute_profiles.client import AsyncUserAttributeProfilesClient, UserAttributeProfilesClient - from .user_blocks.client import AsyncUserBlocksClient, UserBlocksClient - from .user_grants.client import AsyncUserGrantsClient, UserGrantsClient - from .users.client import AsyncUsersClient, UsersClient - from .verifiable_credentials.client import AsyncVerifiableCredentialsClient, VerifiableCredentialsClient +from .core.request_options import RequestOptions +from .raw_client import AsyncRawAuth0, RawAuth0 +from .types.send_base_type import SendBaseType +from .types.send_params import SendParams + +# this is used as the default value for optional parameters +OMIT = typing.cast(typing.Any, ...) class Auth0: @@ -67,22 +20,9 @@ class Auth0: Parameters ---------- - base_url : typing.Optional[str] + base_url : str The base url to use for requests from the client. - environment : Auth0Environment - The environment to use for requests from the client. from .environment import Auth0Environment - - - - Defaults to Auth0Environment.DEFAULT - - - - tenant_domain : typing.Optional[str] - Server URL variable for 'tenantDomain'. Defaults to '{TENANT}.auth0.com'. - - token : typing.Union[str, typing.Callable[[], str]] headers : typing.Optional[typing.Dict[str, str]] Additional headers to send with every request. @@ -112,17 +52,14 @@ class Auth0: from auth0 import Auth0 client = Auth0( - token="YOUR_TOKEN", + base_url="https://yourhost.com/path/to/api", ) """ def __init__( self, *, - base_url: typing.Optional[str] = None, - environment: Auth0Environment = Auth0Environment.DEFAULT, - tenant_domain: typing.Optional[str] = None, - token: typing.Union[str, typing.Callable[[], str]], + base_url: str, headers: typing.Optional[typing.Dict[str, str]] = None, timeout: typing.Optional[float] = None, max_retries: typing.Optional[int] = None, @@ -134,17 +71,8 @@ def __init__( ): _defaulted_timeout = timeout if timeout is not None else 60 if httpx_client is None else None _defaulted_max_retries = max_retries if max_retries is not None else 2 - if tenant_domain is not None: - _tenant_domain = tenant_domain if tenant_domain is not None else "{TENANT}.auth0.com" - _environment_url_templates = { - Auth0Environment.DEFAULT: "https://{tenantDomain}/api/v2", - } - _url_template = _environment_url_templates.get(environment, "https://{tenantDomain}/api/v2") - if base_url is None: - base_url = _url_template.format(tenantDomain=_tenant_domain) self._client_wrapper = SyncClientWrapper( - base_url=_get_base_url(base_url=base_url, environment=environment), - token=token, + base_url=base_url, headers=headers, httpx_client=httpx_client if httpx_client is not None @@ -157,447 +85,99 @@ def __init__( max_stream_reconnection_attempts=max_stream_reconnection_attempts, logging=logging, ) - self._actions: typing.Optional[ActionsClient] = None - self._agents: typing.Optional[AgentsClient] = None - self._branding: typing.Optional[BrandingClient] = None - self._client_grants: typing.Optional[ClientGrantsClient] = None - self._client_profiles: typing.Optional[ClientProfilesClient] = None - self._clients: typing.Optional[ClientsClient] = None - self._connection_profiles: typing.Optional[ConnectionProfilesClient] = None - self._connections: typing.Optional[ConnectionsClient] = None - self._custom_domains: typing.Optional[CustomDomainsClient] = None - self._device_credentials: typing.Optional[DeviceCredentialsClient] = None - self._email_templates: typing.Optional[EmailTemplatesClient] = None - self._event_streams: typing.Optional[EventStreamsClient] = None - self._events: typing.Optional[EventsClient] = None - self._flows: typing.Optional[FlowsClient] = None - self._forms: typing.Optional[FormsClient] = None - self._user_grants: typing.Optional[UserGrantsClient] = None - self._groups: typing.Optional[GroupsClient] = None - self._guardian: typing.Optional[GuardianClient] = None - self._hooks: typing.Optional[HooksClient] = None - self._jobs: typing.Optional[JobsClient] = None - self._log_streams: typing.Optional[LogStreamsClient] = None - self._logs: typing.Optional[LogsClient] = None - self._network_acls: typing.Optional[NetworkAclsClient] = None - self._organizations: typing.Optional[OrganizationsClient] = None - self._portals: typing.Optional[PortalsClient] = None - self._prompts: typing.Optional[PromptsClient] = None - self._rate_limit_policies: typing.Optional[RateLimitPoliciesClient] = None - self._refresh_tokens: typing.Optional[RefreshTokensClient] = None - self._resource_servers: typing.Optional[ResourceServersClient] = None - self._roles: typing.Optional[RolesClient] = None - self._rules: typing.Optional[RulesClient] = None - self._rules_configs: typing.Optional[RulesConfigsClient] = None - self._self_service_profiles: typing.Optional[SelfServiceProfilesClient] = None - self._sessions: typing.Optional[SessionsClient] = None - self._stats: typing.Optional[StatsClient] = None - self._supplemental_signals: typing.Optional[SupplementalSignalsClient] = None - self._tickets: typing.Optional[TicketsClient] = None - self._token_exchange_profiles: typing.Optional[TokenExchangeProfilesClient] = None - self._user_attribute_profiles: typing.Optional[UserAttributeProfilesClient] = None - self._user_blocks: typing.Optional[UserBlocksClient] = None - self._users: typing.Optional[UsersClient] = None - self._anomaly: typing.Optional[AnomalyClient] = None - self._attack_protection: typing.Optional[AttackProtectionClient] = None - self._emails: typing.Optional[EmailsClient] = None - self._experimentation: typing.Optional[ExperimentationClient] = None - self._keys: typing.Optional[KeysClient] = None - self._risk_assessments: typing.Optional[RiskAssessmentsClient] = None - self._tenants: typing.Optional[TenantsClient] = None - self._verifiable_credentials: typing.Optional[VerifiableCredentialsClient] = None - - @property - def actions(self): - if self._actions is None: - from .actions.client import ActionsClient # noqa: E402 - - self._actions = ActionsClient(client_wrapper=self._client_wrapper) - return self._actions - - @property - def agents(self): - if self._agents is None: - from .agents.client import AgentsClient # noqa: E402 - - self._agents = AgentsClient(client_wrapper=self._client_wrapper) - return self._agents - - @property - def branding(self): - if self._branding is None: - from .branding.client import BrandingClient # noqa: E402 - - self._branding = BrandingClient(client_wrapper=self._client_wrapper) - return self._branding + self._raw_client = RawAuth0(client_wrapper=self._client_wrapper) @property - def client_grants(self): - if self._client_grants is None: - from .client_grants.client import ClientGrantsClient # noqa: E402 + def with_raw_response(self) -> RawAuth0: + """ + Retrieves a raw implementation of this client that returns raw responses. - self._client_grants = ClientGrantsClient(client_wrapper=self._client_wrapper) - return self._client_grants + Returns + ------- + RawAuth0 + """ + return self._raw_client - @property - def client_profiles(self): - if self._client_profiles is None: - from .client_profiles.client import ClientProfilesClient # noqa: E402 - - self._client_profiles = ClientProfilesClient(client_wrapper=self._client_wrapper) - return self._client_profiles - - @property - def clients(self): - if self._clients is None: - from .clients.client import ClientsClient # noqa: E402 - - self._clients = ClientsClient(client_wrapper=self._client_wrapper) - return self._clients - - @property - def connection_profiles(self): - if self._connection_profiles is None: - from .connection_profiles.client import ConnectionProfilesClient # noqa: E402 - - self._connection_profiles = ConnectionProfilesClient(client_wrapper=self._client_wrapper) - return self._connection_profiles - - @property - def connections(self): - if self._connections is None: - from .connections.client import ConnectionsClient # noqa: E402 - - self._connections = ConnectionsClient(client_wrapper=self._client_wrapper) - return self._connections - - @property - def custom_domains(self): - if self._custom_domains is None: - from .custom_domains.client import CustomDomainsClient # noqa: E402 - - self._custom_domains = CustomDomainsClient(client_wrapper=self._client_wrapper) - return self._custom_domains + def send(self, *, request: SendParams, request_options: typing.Optional[RequestOptions] = None) -> None: + """ + Parameters + ---------- + request : SendParams - @property - def device_credentials(self): - if self._device_credentials is None: - from .device_credentials.client import DeviceCredentialsClient # noqa: E402 - - self._device_credentials = DeviceCredentialsClient(client_wrapper=self._client_wrapper) - return self._device_credentials - - @property - def email_templates(self): - if self._email_templates is None: - from .email_templates.client import EmailTemplatesClient # noqa: E402 + request_options : typing.Optional[RequestOptions] + Request-specific configuration. - self._email_templates = EmailTemplatesClient(client_wrapper=self._client_wrapper) - return self._email_templates - - @property - def event_streams(self): - if self._event_streams is None: - from .event_streams.client import EventStreamsClient # noqa: E402 - - self._event_streams = EventStreamsClient(client_wrapper=self._client_wrapper) - return self._event_streams - - @property - def events(self): - if self._events is None: - from .events.client import EventsClient # noqa: E402 - - self._events = EventsClient(client_wrapper=self._client_wrapper) - return self._events - - @property - def flows(self): - if self._flows is None: - from .flows.client import FlowsClient # noqa: E402 - - self._flows = FlowsClient(client_wrapper=self._client_wrapper) - return self._flows - - @property - def forms(self): - if self._forms is None: - from .forms.client import FormsClient # noqa: E402 - - self._forms = FormsClient(client_wrapper=self._client_wrapper) - return self._forms - - @property - def user_grants(self): - if self._user_grants is None: - from .user_grants.client import UserGrantsClient # noqa: E402 - - self._user_grants = UserGrantsClient(client_wrapper=self._client_wrapper) - return self._user_grants - - @property - def groups(self): - if self._groups is None: - from .groups.client import GroupsClient # noqa: E402 - - self._groups = GroupsClient(client_wrapper=self._client_wrapper) - return self._groups - - @property - def guardian(self): - if self._guardian is None: - from .guardian.client import GuardianClient # noqa: E402 - - self._guardian = GuardianClient(client_wrapper=self._client_wrapper) - return self._guardian - - @property - def hooks(self): - if self._hooks is None: - from .hooks.client import HooksClient # noqa: E402 - - self._hooks = HooksClient(client_wrapper=self._client_wrapper) - return self._hooks - - @property - def jobs(self): - if self._jobs is None: - from .jobs.client import JobsClient # noqa: E402 - - self._jobs = JobsClient(client_wrapper=self._client_wrapper) - return self._jobs - - @property - def log_streams(self): - if self._log_streams is None: - from .log_streams.client import LogStreamsClient # noqa: E402 - - self._log_streams = LogStreamsClient(client_wrapper=self._client_wrapper) - return self._log_streams - - @property - def logs(self): - if self._logs is None: - from .logs.client import LogsClient # noqa: E402 - - self._logs = LogsClient(client_wrapper=self._client_wrapper) - return self._logs - - @property - def network_acls(self): - if self._network_acls is None: - from .network_acls.client import NetworkAclsClient # noqa: E402 + Returns + ------- + None - self._network_acls = NetworkAclsClient(client_wrapper=self._client_wrapper) - return self._network_acls + Examples + -------- + from auth0 import Auth0, SendParamsContent - @property - def organizations(self): - if self._organizations is None: - from .organizations.client import OrganizationsClient # noqa: E402 - - self._organizations = OrganizationsClient(client_wrapper=self._client_wrapper) - return self._organizations - - @property - def portals(self): - if self._portals is None: - from .portals.client import PortalsClient # noqa: E402 - - self._portals = PortalsClient(client_wrapper=self._client_wrapper) - return self._portals - - @property - def prompts(self): - if self._prompts is None: - from .prompts.client import PromptsClient # noqa: E402 - - self._prompts = PromptsClient(client_wrapper=self._client_wrapper) - return self._prompts - - @property - def rate_limit_policies(self): - if self._rate_limit_policies is None: - from .rate_limit_policies.client import RateLimitPoliciesClient # noqa: E402 - - self._rate_limit_policies = RateLimitPoliciesClient(client_wrapper=self._client_wrapper) - return self._rate_limit_policies - - @property - def refresh_tokens(self): - if self._refresh_tokens is None: - from .refresh_tokens.client import RefreshTokensClient # noqa: E402 - - self._refresh_tokens = RefreshTokensClient(client_wrapper=self._client_wrapper) - return self._refresh_tokens - - @property - def resource_servers(self): - if self._resource_servers is None: - from .resource_servers.client import ResourceServersClient # noqa: E402 - - self._resource_servers = ResourceServersClient(client_wrapper=self._client_wrapper) - return self._resource_servers - - @property - def roles(self): - if self._roles is None: - from .roles.client import RolesClient # noqa: E402 - - self._roles = RolesClient(client_wrapper=self._client_wrapper) - return self._roles - - @property - def rules(self): - if self._rules is None: - from .rules.client import RulesClient # noqa: E402 - - self._rules = RulesClient(client_wrapper=self._client_wrapper) - return self._rules - - @property - def rules_configs(self): - if self._rules_configs is None: - from .rules_configs.client import RulesConfigsClient # noqa: E402 - - self._rules_configs = RulesConfigsClient(client_wrapper=self._client_wrapper) - return self._rules_configs - - @property - def self_service_profiles(self): - if self._self_service_profiles is None: - from .self_service_profiles.client import SelfServiceProfilesClient # noqa: E402 - - self._self_service_profiles = SelfServiceProfilesClient(client_wrapper=self._client_wrapper) - return self._self_service_profiles - - @property - def sessions(self): - if self._sessions is None: - from .sessions.client import SessionsClient # noqa: E402 - - self._sessions = SessionsClient(client_wrapper=self._client_wrapper) - return self._sessions - - @property - def stats(self): - if self._stats is None: - from .stats.client import StatsClient # noqa: E402 - - self._stats = StatsClient(client_wrapper=self._client_wrapper) - return self._stats - - @property - def supplemental_signals(self): - if self._supplemental_signals is None: - from .supplemental_signals.client import SupplementalSignalsClient # noqa: E402 - - self._supplemental_signals = SupplementalSignalsClient(client_wrapper=self._client_wrapper) - return self._supplemental_signals - - @property - def tickets(self): - if self._tickets is None: - from .tickets.client import TicketsClient # noqa: E402 - - self._tickets = TicketsClient(client_wrapper=self._client_wrapper) - return self._tickets - - @property - def token_exchange_profiles(self): - if self._token_exchange_profiles is None: - from .token_exchange_profiles.client import TokenExchangeProfilesClient # noqa: E402 - - self._token_exchange_profiles = TokenExchangeProfilesClient(client_wrapper=self._client_wrapper) - return self._token_exchange_profiles - - @property - def user_attribute_profiles(self): - if self._user_attribute_profiles is None: - from .user_attribute_profiles.client import UserAttributeProfilesClient # noqa: E402 - - self._user_attribute_profiles = UserAttributeProfilesClient(client_wrapper=self._client_wrapper) - return self._user_attribute_profiles - - @property - def user_blocks(self): - if self._user_blocks is None: - from .user_blocks.client import UserBlocksClient # noqa: E402 - - self._user_blocks = UserBlocksClient(client_wrapper=self._client_wrapper) - return self._user_blocks - - @property - def users(self): - if self._users is None: - from .users.client import UsersClient # noqa: E402 - - self._users = UsersClient(client_wrapper=self._client_wrapper) - return self._users - - @property - def anomaly(self): - if self._anomaly is None: - from .anomaly.client import AnomalyClient # noqa: E402 - - self._anomaly = AnomalyClient(client_wrapper=self._client_wrapper) - return self._anomaly - - @property - def attack_protection(self): - if self._attack_protection is None: - from .attack_protection.client import AttackProtectionClient # noqa: E402 - - self._attack_protection = AttackProtectionClient(client_wrapper=self._client_wrapper) - return self._attack_protection - - @property - def emails(self): - if self._emails is None: - from .emails.client import EmailsClient # noqa: E402 - - self._emails = EmailsClient(client_wrapper=self._client_wrapper) - return self._emails - - @property - def experimentation(self): - if self._experimentation is None: - from .experimentation.client import ExperimentationClient # noqa: E402 + client = Auth0( + base_url="https://yourhost.com/path/to/api", + ) + client.send( + request=SendParamsContent( + content="content", + ), + ) + """ + _response = self._raw_client.send(request=request, request_options=request_options) + return _response.data - self._experimentation = ExperimentationClient(client_wrapper=self._client_wrapper) - return self._experimentation + def send_all_of( + self, + *, + connection_id: str, + type: SendBaseType, + content: typing.Optional[str] = OMIT, + template_id: typing.Optional[int] = OMIT, + subject: typing.Optional[str] = OMIT, + request_options: typing.Optional[RequestOptions] = None, + ) -> None: + """ + Parameters + ---------- + connection_id : str - @property - def keys(self): - if self._keys is None: - from .keys.client import KeysClient # noqa: E402 + type : SendBaseType - self._keys = KeysClient(client_wrapper=self._client_wrapper) - return self._keys + content : typing.Optional[str] - @property - def risk_assessments(self): - if self._risk_assessments is None: - from .risk_assessments.client import RiskAssessmentsClient # noqa: E402 + template_id : typing.Optional[int] - self._risk_assessments = RiskAssessmentsClient(client_wrapper=self._client_wrapper) - return self._risk_assessments + subject : typing.Optional[str] - @property - def tenants(self): - if self._tenants is None: - from .tenants.client import TenantsClient # noqa: E402 + request_options : typing.Optional[RequestOptions] + Request-specific configuration. - self._tenants = TenantsClient(client_wrapper=self._client_wrapper) - return self._tenants + Returns + ------- + None - @property - def verifiable_credentials(self): - if self._verifiable_credentials is None: - from .verifiable_credentials.client import VerifiableCredentialsClient # noqa: E402 + Examples + -------- + from auth0 import Auth0 - self._verifiable_credentials = VerifiableCredentialsClient(client_wrapper=self._client_wrapper) - return self._verifiable_credentials + client = Auth0( + base_url="https://yourhost.com/path/to/api", + ) + client.send_all_of( + connection_id="connection_id", + type="HTML", + ) + """ + _response = self._raw_client.send_all_of( + connection_id=connection_id, + type=type, + content=content, + template_id=template_id, + subject=subject, + request_options=request_options, + ) + return _response.data def _make_default_async_client( @@ -624,28 +204,12 @@ class AsyncAuth0: Parameters ---------- - base_url : typing.Optional[str] + base_url : str The base url to use for requests from the client. - environment : Auth0Environment - The environment to use for requests from the client. from .environment import Auth0Environment - - - - Defaults to Auth0Environment.DEFAULT - - - - tenant_domain : typing.Optional[str] - Server URL variable for 'tenantDomain'. Defaults to '{TENANT}.auth0.com'. - - token : typing.Union[str, typing.Callable[[], str]] headers : typing.Optional[typing.Dict[str, str]] Additional headers to send with every request. - async_token : typing.Optional[typing.Callable[[], typing.Awaitable[str]]] - An async callable that returns a bearer token. Use this when token acquisition involves async I/O (e.g., refreshing tokens via an async HTTP client). When provided, this is used instead of the synchronous token for async requests. - timeout : typing.Optional[float] The timeout to be used, in seconds, for requests. By default the timeout is 60 seconds, unless a custom httpx client is used, in which case this default is not enforced. @@ -672,19 +236,15 @@ class AsyncAuth0: from auth0 import AsyncAuth0 client = AsyncAuth0( - token="YOUR_TOKEN", + base_url="https://yourhost.com/path/to/api", ) """ def __init__( self, *, - base_url: typing.Optional[str] = None, - environment: Auth0Environment = Auth0Environment.DEFAULT, - tenant_domain: typing.Optional[str] = None, - token: typing.Union[str, typing.Callable[[], str]], + base_url: str, headers: typing.Optional[typing.Dict[str, str]] = None, - async_token: typing.Optional[typing.Callable[[], typing.Awaitable[str]]] = None, timeout: typing.Optional[float] = None, max_retries: typing.Optional[int] = None, stream_reconnection_enabled: typing.Optional[bool] = None, @@ -695,19 +255,9 @@ def __init__( ): _defaulted_timeout = timeout if timeout is not None else 60 if httpx_client is None else None _defaulted_max_retries = max_retries if max_retries is not None else 2 - if tenant_domain is not None: - _tenant_domain = tenant_domain if tenant_domain is not None else "{TENANT}.auth0.com" - _environment_url_templates = { - Auth0Environment.DEFAULT: "https://{tenantDomain}/api/v2", - } - _url_template = _environment_url_templates.get(environment, "https://{tenantDomain}/api/v2") - if base_url is None: - base_url = _url_template.format(tenantDomain=_tenant_domain) self._client_wrapper = AsyncClientWrapper( - base_url=_get_base_url(base_url=base_url, environment=environment), - token=token, + base_url=base_url, headers=headers, - async_token=async_token, httpx_client=httpx_client if httpx_client is not None else _make_default_async_client(timeout=_defaulted_timeout, follow_redirects=follow_redirects), @@ -717,453 +267,112 @@ def __init__( max_stream_reconnection_attempts=max_stream_reconnection_attempts, logging=logging, ) - self._actions: typing.Optional[AsyncActionsClient] = None - self._agents: typing.Optional[AsyncAgentsClient] = None - self._branding: typing.Optional[AsyncBrandingClient] = None - self._client_grants: typing.Optional[AsyncClientGrantsClient] = None - self._client_profiles: typing.Optional[AsyncClientProfilesClient] = None - self._clients: typing.Optional[AsyncClientsClient] = None - self._connection_profiles: typing.Optional[AsyncConnectionProfilesClient] = None - self._connections: typing.Optional[AsyncConnectionsClient] = None - self._custom_domains: typing.Optional[AsyncCustomDomainsClient] = None - self._device_credentials: typing.Optional[AsyncDeviceCredentialsClient] = None - self._email_templates: typing.Optional[AsyncEmailTemplatesClient] = None - self._event_streams: typing.Optional[AsyncEventStreamsClient] = None - self._events: typing.Optional[AsyncEventsClient] = None - self._flows: typing.Optional[AsyncFlowsClient] = None - self._forms: typing.Optional[AsyncFormsClient] = None - self._user_grants: typing.Optional[AsyncUserGrantsClient] = None - self._groups: typing.Optional[AsyncGroupsClient] = None - self._guardian: typing.Optional[AsyncGuardianClient] = None - self._hooks: typing.Optional[AsyncHooksClient] = None - self._jobs: typing.Optional[AsyncJobsClient] = None - self._log_streams: typing.Optional[AsyncLogStreamsClient] = None - self._logs: typing.Optional[AsyncLogsClient] = None - self._network_acls: typing.Optional[AsyncNetworkAclsClient] = None - self._organizations: typing.Optional[AsyncOrganizationsClient] = None - self._portals: typing.Optional[AsyncPortalsClient] = None - self._prompts: typing.Optional[AsyncPromptsClient] = None - self._rate_limit_policies: typing.Optional[AsyncRateLimitPoliciesClient] = None - self._refresh_tokens: typing.Optional[AsyncRefreshTokensClient] = None - self._resource_servers: typing.Optional[AsyncResourceServersClient] = None - self._roles: typing.Optional[AsyncRolesClient] = None - self._rules: typing.Optional[AsyncRulesClient] = None - self._rules_configs: typing.Optional[AsyncRulesConfigsClient] = None - self._self_service_profiles: typing.Optional[AsyncSelfServiceProfilesClient] = None - self._sessions: typing.Optional[AsyncSessionsClient] = None - self._stats: typing.Optional[AsyncStatsClient] = None - self._supplemental_signals: typing.Optional[AsyncSupplementalSignalsClient] = None - self._tickets: typing.Optional[AsyncTicketsClient] = None - self._token_exchange_profiles: typing.Optional[AsyncTokenExchangeProfilesClient] = None - self._user_attribute_profiles: typing.Optional[AsyncUserAttributeProfilesClient] = None - self._user_blocks: typing.Optional[AsyncUserBlocksClient] = None - self._users: typing.Optional[AsyncUsersClient] = None - self._anomaly: typing.Optional[AsyncAnomalyClient] = None - self._attack_protection: typing.Optional[AsyncAttackProtectionClient] = None - self._emails: typing.Optional[AsyncEmailsClient] = None - self._experimentation: typing.Optional[AsyncExperimentationClient] = None - self._keys: typing.Optional[AsyncKeysClient] = None - self._risk_assessments: typing.Optional[AsyncRiskAssessmentsClient] = None - self._tenants: typing.Optional[AsyncTenantsClient] = None - self._verifiable_credentials: typing.Optional[AsyncVerifiableCredentialsClient] = None - - @property - def actions(self): - if self._actions is None: - from .actions.client import AsyncActionsClient # noqa: E402 - - self._actions = AsyncActionsClient(client_wrapper=self._client_wrapper) - return self._actions - - @property - def agents(self): - if self._agents is None: - from .agents.client import AsyncAgentsClient # noqa: E402 - - self._agents = AsyncAgentsClient(client_wrapper=self._client_wrapper) - return self._agents - - @property - def branding(self): - if self._branding is None: - from .branding.client import AsyncBrandingClient # noqa: E402 - - self._branding = AsyncBrandingClient(client_wrapper=self._client_wrapper) - return self._branding - - @property - def client_grants(self): - if self._client_grants is None: - from .client_grants.client import AsyncClientGrantsClient # noqa: E402 - - self._client_grants = AsyncClientGrantsClient(client_wrapper=self._client_wrapper) - return self._client_grants - - @property - def client_profiles(self): - if self._client_profiles is None: - from .client_profiles.client import AsyncClientProfilesClient # noqa: E402 - - self._client_profiles = AsyncClientProfilesClient(client_wrapper=self._client_wrapper) - return self._client_profiles + self._raw_client = AsyncRawAuth0(client_wrapper=self._client_wrapper) @property - def clients(self): - if self._clients is None: - from .clients.client import AsyncClientsClient # noqa: E402 - - self._clients = AsyncClientsClient(client_wrapper=self._client_wrapper) - return self._clients + def with_raw_response(self) -> AsyncRawAuth0: + """ + Retrieves a raw implementation of this client that returns raw responses. - @property - def connection_profiles(self): - if self._connection_profiles is None: - from .connection_profiles.client import AsyncConnectionProfilesClient # noqa: E402 + Returns + ------- + AsyncRawAuth0 + """ + return self._raw_client - self._connection_profiles = AsyncConnectionProfilesClient(client_wrapper=self._client_wrapper) - return self._connection_profiles - - @property - def connections(self): - if self._connections is None: - from .connections.client import AsyncConnectionsClient # noqa: E402 + async def send(self, *, request: SendParams, request_options: typing.Optional[RequestOptions] = None) -> None: + """ + Parameters + ---------- + request : SendParams - self._connections = AsyncConnectionsClient(client_wrapper=self._client_wrapper) - return self._connections + request_options : typing.Optional[RequestOptions] + Request-specific configuration. - @property - def custom_domains(self): - if self._custom_domains is None: - from .custom_domains.client import AsyncCustomDomainsClient # noqa: E402 - - self._custom_domains = AsyncCustomDomainsClient(client_wrapper=self._client_wrapper) - return self._custom_domains - - @property - def device_credentials(self): - if self._device_credentials is None: - from .device_credentials.client import AsyncDeviceCredentialsClient # noqa: E402 + Returns + ------- + None - self._device_credentials = AsyncDeviceCredentialsClient(client_wrapper=self._client_wrapper) - return self._device_credentials - - @property - def email_templates(self): - if self._email_templates is None: - from .email_templates.client import AsyncEmailTemplatesClient # noqa: E402 - - self._email_templates = AsyncEmailTemplatesClient(client_wrapper=self._client_wrapper) - return self._email_templates - - @property - def event_streams(self): - if self._event_streams is None: - from .event_streams.client import AsyncEventStreamsClient # noqa: E402 - - self._event_streams = AsyncEventStreamsClient(client_wrapper=self._client_wrapper) - return self._event_streams - - @property - def events(self): - if self._events is None: - from .events.client import AsyncEventsClient # noqa: E402 - - self._events = AsyncEventsClient(client_wrapper=self._client_wrapper) - return self._events - - @property - def flows(self): - if self._flows is None: - from .flows.client import AsyncFlowsClient # noqa: E402 - - self._flows = AsyncFlowsClient(client_wrapper=self._client_wrapper) - return self._flows - - @property - def forms(self): - if self._forms is None: - from .forms.client import AsyncFormsClient # noqa: E402 - - self._forms = AsyncFormsClient(client_wrapper=self._client_wrapper) - return self._forms - - @property - def user_grants(self): - if self._user_grants is None: - from .user_grants.client import AsyncUserGrantsClient # noqa: E402 - - self._user_grants = AsyncUserGrantsClient(client_wrapper=self._client_wrapper) - return self._user_grants - - @property - def groups(self): - if self._groups is None: - from .groups.client import AsyncGroupsClient # noqa: E402 - - self._groups = AsyncGroupsClient(client_wrapper=self._client_wrapper) - return self._groups - - @property - def guardian(self): - if self._guardian is None: - from .guardian.client import AsyncGuardianClient # noqa: E402 - - self._guardian = AsyncGuardianClient(client_wrapper=self._client_wrapper) - return self._guardian - - @property - def hooks(self): - if self._hooks is None: - from .hooks.client import AsyncHooksClient # noqa: E402 - - self._hooks = AsyncHooksClient(client_wrapper=self._client_wrapper) - return self._hooks - - @property - def jobs(self): - if self._jobs is None: - from .jobs.client import AsyncJobsClient # noqa: E402 - - self._jobs = AsyncJobsClient(client_wrapper=self._client_wrapper) - return self._jobs - - @property - def log_streams(self): - if self._log_streams is None: - from .log_streams.client import AsyncLogStreamsClient # noqa: E402 - - self._log_streams = AsyncLogStreamsClient(client_wrapper=self._client_wrapper) - return self._log_streams - - @property - def logs(self): - if self._logs is None: - from .logs.client import AsyncLogsClient # noqa: E402 + Examples + -------- + import asyncio - self._logs = AsyncLogsClient(client_wrapper=self._client_wrapper) - return self._logs + from auth0 import AsyncAuth0, SendParamsContent - @property - def network_acls(self): - if self._network_acls is None: - from .network_acls.client import AsyncNetworkAclsClient # noqa: E402 - - self._network_acls = AsyncNetworkAclsClient(client_wrapper=self._client_wrapper) - return self._network_acls - - @property - def organizations(self): - if self._organizations is None: - from .organizations.client import AsyncOrganizationsClient # noqa: E402 - - self._organizations = AsyncOrganizationsClient(client_wrapper=self._client_wrapper) - return self._organizations - - @property - def portals(self): - if self._portals is None: - from .portals.client import AsyncPortalsClient # noqa: E402 - - self._portals = AsyncPortalsClient(client_wrapper=self._client_wrapper) - return self._portals - - @property - def prompts(self): - if self._prompts is None: - from .prompts.client import AsyncPromptsClient # noqa: E402 - - self._prompts = AsyncPromptsClient(client_wrapper=self._client_wrapper) - return self._prompts - - @property - def rate_limit_policies(self): - if self._rate_limit_policies is None: - from .rate_limit_policies.client import AsyncRateLimitPoliciesClient # noqa: E402 - - self._rate_limit_policies = AsyncRateLimitPoliciesClient(client_wrapper=self._client_wrapper) - return self._rate_limit_policies - - @property - def refresh_tokens(self): - if self._refresh_tokens is None: - from .refresh_tokens.client import AsyncRefreshTokensClient # noqa: E402 - - self._refresh_tokens = AsyncRefreshTokensClient(client_wrapper=self._client_wrapper) - return self._refresh_tokens - - @property - def resource_servers(self): - if self._resource_servers is None: - from .resource_servers.client import AsyncResourceServersClient # noqa: E402 - - self._resource_servers = AsyncResourceServersClient(client_wrapper=self._client_wrapper) - return self._resource_servers - - @property - def roles(self): - if self._roles is None: - from .roles.client import AsyncRolesClient # noqa: E402 - - self._roles = AsyncRolesClient(client_wrapper=self._client_wrapper) - return self._roles - - @property - def rules(self): - if self._rules is None: - from .rules.client import AsyncRulesClient # noqa: E402 - - self._rules = AsyncRulesClient(client_wrapper=self._client_wrapper) - return self._rules - - @property - def rules_configs(self): - if self._rules_configs is None: - from .rules_configs.client import AsyncRulesConfigsClient # noqa: E402 - - self._rules_configs = AsyncRulesConfigsClient(client_wrapper=self._client_wrapper) - return self._rules_configs - - @property - def self_service_profiles(self): - if self._self_service_profiles is None: - from .self_service_profiles.client import AsyncSelfServiceProfilesClient # noqa: E402 - - self._self_service_profiles = AsyncSelfServiceProfilesClient(client_wrapper=self._client_wrapper) - return self._self_service_profiles - - @property - def sessions(self): - if self._sessions is None: - from .sessions.client import AsyncSessionsClient # noqa: E402 - - self._sessions = AsyncSessionsClient(client_wrapper=self._client_wrapper) - return self._sessions - - @property - def stats(self): - if self._stats is None: - from .stats.client import AsyncStatsClient # noqa: E402 - - self._stats = AsyncStatsClient(client_wrapper=self._client_wrapper) - return self._stats - - @property - def supplemental_signals(self): - if self._supplemental_signals is None: - from .supplemental_signals.client import AsyncSupplementalSignalsClient # noqa: E402 - - self._supplemental_signals = AsyncSupplementalSignalsClient(client_wrapper=self._client_wrapper) - return self._supplemental_signals - - @property - def tickets(self): - if self._tickets is None: - from .tickets.client import AsyncTicketsClient # noqa: E402 - - self._tickets = AsyncTicketsClient(client_wrapper=self._client_wrapper) - return self._tickets - - @property - def token_exchange_profiles(self): - if self._token_exchange_profiles is None: - from .token_exchange_profiles.client import AsyncTokenExchangeProfilesClient # noqa: E402 - - self._token_exchange_profiles = AsyncTokenExchangeProfilesClient(client_wrapper=self._client_wrapper) - return self._token_exchange_profiles - - @property - def user_attribute_profiles(self): - if self._user_attribute_profiles is None: - from .user_attribute_profiles.client import AsyncUserAttributeProfilesClient # noqa: E402 - - self._user_attribute_profiles = AsyncUserAttributeProfilesClient(client_wrapper=self._client_wrapper) - return self._user_attribute_profiles - - @property - def user_blocks(self): - if self._user_blocks is None: - from .user_blocks.client import AsyncUserBlocksClient # noqa: E402 - - self._user_blocks = AsyncUserBlocksClient(client_wrapper=self._client_wrapper) - return self._user_blocks + client = AsyncAuth0( + base_url="https://yourhost.com/path/to/api", + ) - @property - def users(self): - if self._users is None: - from .users.client import AsyncUsersClient # noqa: E402 - self._users = AsyncUsersClient(client_wrapper=self._client_wrapper) - return self._users + async def main() -> None: + await client.send( + request=SendParamsContent( + content="content", + ), + ) - @property - def anomaly(self): - if self._anomaly is None: - from .anomaly.client import AsyncAnomalyClient # noqa: E402 - self._anomaly = AsyncAnomalyClient(client_wrapper=self._client_wrapper) - return self._anomaly + asyncio.run(main()) + """ + _response = await self._raw_client.send(request=request, request_options=request_options) + return _response.data - @property - def attack_protection(self): - if self._attack_protection is None: - from .attack_protection.client import AsyncAttackProtectionClient # noqa: E402 + async def send_all_of( + self, + *, + connection_id: str, + type: SendBaseType, + content: typing.Optional[str] = OMIT, + template_id: typing.Optional[int] = OMIT, + subject: typing.Optional[str] = OMIT, + request_options: typing.Optional[RequestOptions] = None, + ) -> None: + """ + Parameters + ---------- + connection_id : str - self._attack_protection = AsyncAttackProtectionClient(client_wrapper=self._client_wrapper) - return self._attack_protection + type : SendBaseType - @property - def emails(self): - if self._emails is None: - from .emails.client import AsyncEmailsClient # noqa: E402 + content : typing.Optional[str] - self._emails = AsyncEmailsClient(client_wrapper=self._client_wrapper) - return self._emails + template_id : typing.Optional[int] - @property - def experimentation(self): - if self._experimentation is None: - from .experimentation.client import AsyncExperimentationClient # noqa: E402 + subject : typing.Optional[str] - self._experimentation = AsyncExperimentationClient(client_wrapper=self._client_wrapper) - return self._experimentation + request_options : typing.Optional[RequestOptions] + Request-specific configuration. - @property - def keys(self): - if self._keys is None: - from .keys.client import AsyncKeysClient # noqa: E402 + Returns + ------- + None - self._keys = AsyncKeysClient(client_wrapper=self._client_wrapper) - return self._keys + Examples + -------- + import asyncio - @property - def risk_assessments(self): - if self._risk_assessments is None: - from .risk_assessments.client import AsyncRiskAssessmentsClient # noqa: E402 - - self._risk_assessments = AsyncRiskAssessmentsClient(client_wrapper=self._client_wrapper) - return self._risk_assessments - - @property - def tenants(self): - if self._tenants is None: - from .tenants.client import AsyncTenantsClient # noqa: E402 + from auth0 import AsyncAuth0 - self._tenants = AsyncTenantsClient(client_wrapper=self._client_wrapper) - return self._tenants + client = AsyncAuth0( + base_url="https://yourhost.com/path/to/api", + ) - @property - def verifiable_credentials(self): - if self._verifiable_credentials is None: - from .verifiable_credentials.client import AsyncVerifiableCredentialsClient # noqa: E402 - self._verifiable_credentials = AsyncVerifiableCredentialsClient(client_wrapper=self._client_wrapper) - return self._verifiable_credentials + async def main() -> None: + await client.send_all_of( + connection_id="connection_id", + type="HTML", + ) -def _get_base_url(*, base_url: typing.Optional[str] = None, environment: Auth0Environment) -> str: - if base_url is not None: - return base_url - elif environment is not None: - return environment.value - else: - raise Exception("Please pass in either base_url or environment to construct the client") + asyncio.run(main()) + """ + _response = await self._raw_client.send_all_of( + connection_id=connection_id, + type=type, + content=content, + template_id=template_id, + subject=subject, + request_options=request_options, + ) + return _response.data diff --git a/src/auth0/management/client_grants/__init__.py b/src/auth0/management/client_grants/__init__.py deleted file mode 100644 index f90987ed..00000000 --- a/src/auth0/management/client_grants/__init__.py +++ /dev/null @@ -1,34 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from . import organizations -_dynamic_imports: typing.Dict[str, str] = {"organizations": ".organizations"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - if module_name == f".{attr_name}": - return module - else: - return getattr(module, attr_name) - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["organizations"] diff --git a/src/auth0/management/client_grants/client.py b/src/auth0/management/client_grants/client.py deleted file mode 100644 index bfe3e8a4..00000000 --- a/src/auth0/management/client_grants/client.py +++ /dev/null @@ -1,864 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.pagination import AsyncPager, SyncPager -from ..core.request_options import RequestOptions -from ..types.client_grant_allow_any_organization_enum import ClientGrantAllowAnyOrganizationEnum -from ..types.client_grant_default_for_enum import ClientGrantDefaultForEnum -from ..types.client_grant_organization_nullable_usage_enum import ClientGrantOrganizationNullableUsageEnum -from ..types.client_grant_organization_usage_enum import ClientGrantOrganizationUsageEnum -from ..types.client_grant_response_content import ClientGrantResponseContent -from ..types.client_grant_sort_field_enum import ClientGrantSortFieldEnum -from ..types.client_grant_subject_type_enum import ClientGrantSubjectTypeEnum -from ..types.create_client_grant_response_content import CreateClientGrantResponseContent -from ..types.get_client_grant_response_content import GetClientGrantResponseContent -from ..types.list_client_grant_paginated_response_content import ListClientGrantPaginatedResponseContent -from ..types.search_client_grants_response_content import SearchClientGrantsResponseContent -from ..types.search_parser_enum import SearchParserEnum -from ..types.update_client_grant_response_content import UpdateClientGrantResponseContent -from .raw_client import AsyncRawClientGrantsClient, RawClientGrantsClient - -if typing.TYPE_CHECKING: - from .organizations.client import AsyncOrganizationsClient, OrganizationsClient -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class ClientGrantsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawClientGrantsClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._organizations: typing.Optional[OrganizationsClient] = None - - @property - def with_raw_response(self) -> RawClientGrantsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawClientGrantsClient - """ - return self._raw_client - - def list( - self, - *, - include_totals: typing.Optional[bool] = True, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - audience: typing.Optional[str] = None, - client_id: typing.Optional[str] = None, - allow_any_organization: typing.Optional[ClientGrantAllowAnyOrganizationEnum] = None, - subject_type: typing.Optional[ClientGrantSubjectTypeEnum] = None, - default_for: typing.Optional[ClientGrantDefaultForEnum] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[ClientGrantResponseContent, ListClientGrantPaginatedResponseContent]: - """ - Retrieve a list of [client grants](https://auth0.com/docs/get-started/applications/application-access-to-apis-client-grants), including the scopes associated with the application/API pair. - - Parameters - ---------- - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - audience : typing.Optional[str] - Optional filter on audience. - - client_id : typing.Optional[str] - Optional filter on client_id. - - allow_any_organization : typing.Optional[ClientGrantAllowAnyOrganizationEnum] - Optional filter on allow_any_organization. - - subject_type : typing.Optional[ClientGrantSubjectTypeEnum] - The type of application access the client grant allows. - - default_for : typing.Optional[ClientGrantDefaultForEnum] - Applies this client grant as the default for all clients in the specified group. The only accepted value is `third_party_clients`, which applies the grant to all third-party clients. Per-client grants for the same audience take precedence. Mutually exclusive with `client_id`. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[ClientGrantResponseContent, ListClientGrantPaginatedResponseContent] - Client grants successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.client_grants.list( - include_totals=True, - from_="from", - take=1, - audience="audience", - client_id="client_id", - allow_any_organization=True, - subject_type="client", - default_for="third_party_clients", - ) - for item in response: - yield item - # alternatively, you can paginate page-by-page - for page in response.iter_pages(): - yield page - """ - return self._raw_client.list( - include_totals=include_totals, - from_=from_, - take=take, - audience=audience, - client_id=client_id, - allow_any_organization=allow_any_organization, - subject_type=subject_type, - default_for=default_for, - request_options=request_options, - ) - - def create( - self, - *, - audience: str, - client_id: typing.Optional[str] = OMIT, - default_for: typing.Optional[ClientGrantDefaultForEnum] = OMIT, - organization_usage: typing.Optional[ClientGrantOrganizationUsageEnum] = OMIT, - allow_any_organization: typing.Optional[bool] = OMIT, - scope: typing.Optional[typing.Sequence[str]] = OMIT, - subject_type: typing.Optional[ClientGrantSubjectTypeEnum] = OMIT, - authorization_details_types: typing.Optional[typing.Sequence[str]] = OMIT, - allow_all_scopes: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateClientGrantResponseContent: - """ - Create a client grant for a machine-to-machine login flow. To learn more, read [Client Credential Flow](https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow). - - Parameters - ---------- - audience : str - The audience (API identifier) of this client grant - - client_id : typing.Optional[str] - ID of the client. - - default_for : typing.Optional[ClientGrantDefaultForEnum] - - organization_usage : typing.Optional[ClientGrantOrganizationUsageEnum] - - allow_any_organization : typing.Optional[bool] - If enabled, any organization can be used with this grant. If disabled (default), the grant must be explicitly assigned to the desired organizations. - - scope : typing.Optional[typing.Sequence[str]] - Scopes allowed for this client grant. - - subject_type : typing.Optional[ClientGrantSubjectTypeEnum] - - authorization_details_types : typing.Optional[typing.Sequence[str]] - Types of authorization_details allowed for this client grant. - - allow_all_scopes : typing.Optional[bool] - If enabled, all scopes configured on the resource server are allowed for this grant. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateClientGrantResponseContent - Client grant successfully created. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.client_grants.create( - audience="audience", - ) - """ - _response = self._raw_client.create( - audience=audience, - client_id=client_id, - default_for=default_for, - organization_usage=organization_usage, - allow_any_organization=allow_any_organization, - scope=scope, - subject_type=subject_type, - authorization_details_types=authorization_details_types, - allow_all_scopes=allow_all_scopes, - request_options=request_options, - ) - return _response.data - - def search( - self, - *, - q: typing.Optional[str] = None, - parser: typing.Optional[SearchParserEnum] = None, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - take: typing.Optional[int] = 50, - from_: typing.Optional[str] = None, - sort: typing.Optional[ClientGrantSortFieldEnum] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[ClientGrantResponseContent, SearchClientGrantsResponseContent]: - """ - Search client grants using SCIM or Lucene filter syntax with low-latency, eventually consistent results. Use the parser parameter to specify "scim" or "lucene" syntax (default: "lucene"). This endpoint provides an alternative to the standard GET /client-grants endpoint with better performance for complex queries. - Results may not reflect recent updates immediately. - - Parameters - ---------- - q : typing.Optional[str] - Filter expression in SCIM or Lucene syntax (depending on parser parameter). SCIM examples: `audience eq "https://api.example.com"`, `client_id eq "cli_abc"`, `subject_type eq "client"`, `allow_any_organization eq true`, `default_for eq "third_party_clients"`, `audience co "example" and organization_id eq "org_123"`. SCIM operators: eq, ne, sw, ew, co, pr, gt, ge, lt, le, and, or.

Supported Fields:
  • audience - Filter by audience (eq, ne, sw, co, ew, pr)
  • client_id - Filter by client ID (eq, ne, sw, pr)
  • subject_type - Filter by subject type (eq, ne, sw, pr)
  • allow_any_organization - Filter by allow_any_organization (eq, ne, pr)
  • organization_id - Filter by organization ID (eq, ne, sw, pr)
  • updated_at - Filter by last update date (eq, ne, gt, ge, lt, le, pr)
  • default_for - Filter by default grant group (eq, ne, sw, pr)
Maximum 5 filter operations per query. Results are eventually consistent and may not reflect recent updates. - - parser : typing.Optional[SearchParserEnum] - Query parser to use for the filter expression. Use "scim" for SCIM filter syntax or "lucene" for Lucene query syntax (default). - - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude in the response. Works with the include_fields parameter to control projection mode. - - include_fields : typing.Optional[bool] - Controls field projection mode. Set to true to include only fields specified in the fields parameter. Set to false to exclude fields specified in the fields parameter. Defaults to true if not specified. - - take : typing.Optional[int] - Maximum number of results to return per page (1-100). Defaults to 50. - - from_ : typing.Optional[str] - Cursor for the next page of results. Use the value from the next field in the previous response. - - sort : typing.Optional[ClientGrantSortFieldEnum] - Field name to sort results by in ascending order. Defaults to insertion order (oldest first) if not provided. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[ClientGrantResponseContent, SearchClientGrantsResponseContent] - Client grants successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.client_grants.search( - q="q", - parser="scim", - fields="fields", - include_fields=True, - take=1, - from_="from", - sort="audience", - ) - for item in response: - yield item - # alternatively, you can paginate page-by-page - for page in response.iter_pages(): - yield page - """ - return self._raw_client.search( - q=q, - parser=parser, - fields=fields, - include_fields=include_fields, - take=take, - from_=from_, - sort=sort, - request_options=request_options, - ) - - def get(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> GetClientGrantResponseContent: - """ - Retrieve a single [client grant](https://auth0.com/docs/get-started/applications/application-access-to-apis-client-grants), including the - scopes associated with the application/API pair. - - Parameters - ---------- - id : str - The ID of the client grant to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetClientGrantResponseContent - Client grant successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.client_grants.get( - id="id", - ) - """ - _response = self._raw_client.get(id, request_options=request_options) - return _response.data - - def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete the [Client Credential Flow](https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow) from your machine-to-machine application. - - Parameters - ---------- - id : str - ID of the client grant to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.client_grants.delete( - id="id", - ) - """ - _response = self._raw_client.delete(id, request_options=request_options) - return _response.data - - def update( - self, - id: str, - *, - scope: typing.Optional[typing.Sequence[str]] = OMIT, - organization_usage: typing.Optional[ClientGrantOrganizationNullableUsageEnum] = OMIT, - allow_any_organization: typing.Optional[bool] = OMIT, - authorization_details_types: typing.Optional[typing.Sequence[str]] = OMIT, - allow_all_scopes: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateClientGrantResponseContent: - """ - Update a client grant. - - Parameters - ---------- - id : str - ID of the client grant to update. - - scope : typing.Optional[typing.Sequence[str]] - Scopes allowed for this client grant. - - organization_usage : typing.Optional[ClientGrantOrganizationNullableUsageEnum] - - allow_any_organization : typing.Optional[bool] - Controls allowing any organization to be used with this grant - - authorization_details_types : typing.Optional[typing.Sequence[str]] - Types of authorization_details allowed for this client grant. - - allow_all_scopes : typing.Optional[bool] - If enabled, all scopes configured on the resource server are allowed for this grant. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateClientGrantResponseContent - Client grant successfully updated. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.client_grants.update( - id="id", - ) - """ - _response = self._raw_client.update( - id, - scope=scope, - organization_usage=organization_usage, - allow_any_organization=allow_any_organization, - authorization_details_types=authorization_details_types, - allow_all_scopes=allow_all_scopes, - request_options=request_options, - ) - return _response.data - - @property - def organizations(self): - if self._organizations is None: - from .organizations.client import OrganizationsClient # noqa: E402 - - self._organizations = OrganizationsClient(client_wrapper=self._client_wrapper) - return self._organizations - - -class AsyncClientGrantsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawClientGrantsClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._organizations: typing.Optional[AsyncOrganizationsClient] = None - - @property - def with_raw_response(self) -> AsyncRawClientGrantsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawClientGrantsClient - """ - return self._raw_client - - async def list( - self, - *, - include_totals: typing.Optional[bool] = True, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - audience: typing.Optional[str] = None, - client_id: typing.Optional[str] = None, - allow_any_organization: typing.Optional[ClientGrantAllowAnyOrganizationEnum] = None, - subject_type: typing.Optional[ClientGrantSubjectTypeEnum] = None, - default_for: typing.Optional[ClientGrantDefaultForEnum] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[ClientGrantResponseContent, ListClientGrantPaginatedResponseContent]: - """ - Retrieve a list of [client grants](https://auth0.com/docs/get-started/applications/application-access-to-apis-client-grants), including the scopes associated with the application/API pair. - - Parameters - ---------- - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - audience : typing.Optional[str] - Optional filter on audience. - - client_id : typing.Optional[str] - Optional filter on client_id. - - allow_any_organization : typing.Optional[ClientGrantAllowAnyOrganizationEnum] - Optional filter on allow_any_organization. - - subject_type : typing.Optional[ClientGrantSubjectTypeEnum] - The type of application access the client grant allows. - - default_for : typing.Optional[ClientGrantDefaultForEnum] - Applies this client grant as the default for all clients in the specified group. The only accepted value is `third_party_clients`, which applies the grant to all third-party clients. Per-client grants for the same audience take precedence. Mutually exclusive with `client_id`. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[ClientGrantResponseContent, ListClientGrantPaginatedResponseContent] - Client grants successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.client_grants.list( - include_totals=True, - from_="from", - take=1, - audience="audience", - client_id="client_id", - allow_any_organization=True, - subject_type="client", - default_for="third_party_clients", - ) - async for item in response: - yield item - - # alternatively, you can paginate page-by-page - async for page in response.iter_pages(): - yield page - - - asyncio.run(main()) - """ - return await self._raw_client.list( - include_totals=include_totals, - from_=from_, - take=take, - audience=audience, - client_id=client_id, - allow_any_organization=allow_any_organization, - subject_type=subject_type, - default_for=default_for, - request_options=request_options, - ) - - async def create( - self, - *, - audience: str, - client_id: typing.Optional[str] = OMIT, - default_for: typing.Optional[ClientGrantDefaultForEnum] = OMIT, - organization_usage: typing.Optional[ClientGrantOrganizationUsageEnum] = OMIT, - allow_any_organization: typing.Optional[bool] = OMIT, - scope: typing.Optional[typing.Sequence[str]] = OMIT, - subject_type: typing.Optional[ClientGrantSubjectTypeEnum] = OMIT, - authorization_details_types: typing.Optional[typing.Sequence[str]] = OMIT, - allow_all_scopes: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateClientGrantResponseContent: - """ - Create a client grant for a machine-to-machine login flow. To learn more, read [Client Credential Flow](https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow). - - Parameters - ---------- - audience : str - The audience (API identifier) of this client grant - - client_id : typing.Optional[str] - ID of the client. - - default_for : typing.Optional[ClientGrantDefaultForEnum] - - organization_usage : typing.Optional[ClientGrantOrganizationUsageEnum] - - allow_any_organization : typing.Optional[bool] - If enabled, any organization can be used with this grant. If disabled (default), the grant must be explicitly assigned to the desired organizations. - - scope : typing.Optional[typing.Sequence[str]] - Scopes allowed for this client grant. - - subject_type : typing.Optional[ClientGrantSubjectTypeEnum] - - authorization_details_types : typing.Optional[typing.Sequence[str]] - Types of authorization_details allowed for this client grant. - - allow_all_scopes : typing.Optional[bool] - If enabled, all scopes configured on the resource server are allowed for this grant. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateClientGrantResponseContent - Client grant successfully created. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.client_grants.create( - audience="audience", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - audience=audience, - client_id=client_id, - default_for=default_for, - organization_usage=organization_usage, - allow_any_organization=allow_any_organization, - scope=scope, - subject_type=subject_type, - authorization_details_types=authorization_details_types, - allow_all_scopes=allow_all_scopes, - request_options=request_options, - ) - return _response.data - - async def search( - self, - *, - q: typing.Optional[str] = None, - parser: typing.Optional[SearchParserEnum] = None, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - take: typing.Optional[int] = 50, - from_: typing.Optional[str] = None, - sort: typing.Optional[ClientGrantSortFieldEnum] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[ClientGrantResponseContent, SearchClientGrantsResponseContent]: - """ - Search client grants using SCIM or Lucene filter syntax with low-latency, eventually consistent results. Use the parser parameter to specify "scim" or "lucene" syntax (default: "lucene"). This endpoint provides an alternative to the standard GET /client-grants endpoint with better performance for complex queries. - Results may not reflect recent updates immediately. - - Parameters - ---------- - q : typing.Optional[str] - Filter expression in SCIM or Lucene syntax (depending on parser parameter). SCIM examples: `audience eq "https://api.example.com"`, `client_id eq "cli_abc"`, `subject_type eq "client"`, `allow_any_organization eq true`, `default_for eq "third_party_clients"`, `audience co "example" and organization_id eq "org_123"`. SCIM operators: eq, ne, sw, ew, co, pr, gt, ge, lt, le, and, or.

Supported Fields:
  • audience - Filter by audience (eq, ne, sw, co, ew, pr)
  • client_id - Filter by client ID (eq, ne, sw, pr)
  • subject_type - Filter by subject type (eq, ne, sw, pr)
  • allow_any_organization - Filter by allow_any_organization (eq, ne, pr)
  • organization_id - Filter by organization ID (eq, ne, sw, pr)
  • updated_at - Filter by last update date (eq, ne, gt, ge, lt, le, pr)
  • default_for - Filter by default grant group (eq, ne, sw, pr)
Maximum 5 filter operations per query. Results are eventually consistent and may not reflect recent updates. - - parser : typing.Optional[SearchParserEnum] - Query parser to use for the filter expression. Use "scim" for SCIM filter syntax or "lucene" for Lucene query syntax (default). - - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude in the response. Works with the include_fields parameter to control projection mode. - - include_fields : typing.Optional[bool] - Controls field projection mode. Set to true to include only fields specified in the fields parameter. Set to false to exclude fields specified in the fields parameter. Defaults to true if not specified. - - take : typing.Optional[int] - Maximum number of results to return per page (1-100). Defaults to 50. - - from_ : typing.Optional[str] - Cursor for the next page of results. Use the value from the next field in the previous response. - - sort : typing.Optional[ClientGrantSortFieldEnum] - Field name to sort results by in ascending order. Defaults to insertion order (oldest first) if not provided. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[ClientGrantResponseContent, SearchClientGrantsResponseContent] - Client grants successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.client_grants.search( - q="q", - parser="scim", - fields="fields", - include_fields=True, - take=1, - from_="from", - sort="audience", - ) - async for item in response: - yield item - - # alternatively, you can paginate page-by-page - async for page in response.iter_pages(): - yield page - - - asyncio.run(main()) - """ - return await self._raw_client.search( - q=q, - parser=parser, - fields=fields, - include_fields=include_fields, - take=take, - from_=from_, - sort=sort, - request_options=request_options, - ) - - async def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetClientGrantResponseContent: - """ - Retrieve a single [client grant](https://auth0.com/docs/get-started/applications/application-access-to-apis-client-grants), including the - scopes associated with the application/API pair. - - Parameters - ---------- - id : str - The ID of the client grant to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetClientGrantResponseContent - Client grant successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.client_grants.get( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.get(id, request_options=request_options) - return _response.data - - async def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete the [Client Credential Flow](https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow) from your machine-to-machine application. - - Parameters - ---------- - id : str - ID of the client grant to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.client_grants.delete( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete(id, request_options=request_options) - return _response.data - - async def update( - self, - id: str, - *, - scope: typing.Optional[typing.Sequence[str]] = OMIT, - organization_usage: typing.Optional[ClientGrantOrganizationNullableUsageEnum] = OMIT, - allow_any_organization: typing.Optional[bool] = OMIT, - authorization_details_types: typing.Optional[typing.Sequence[str]] = OMIT, - allow_all_scopes: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateClientGrantResponseContent: - """ - Update a client grant. - - Parameters - ---------- - id : str - ID of the client grant to update. - - scope : typing.Optional[typing.Sequence[str]] - Scopes allowed for this client grant. - - organization_usage : typing.Optional[ClientGrantOrganizationNullableUsageEnum] - - allow_any_organization : typing.Optional[bool] - Controls allowing any organization to be used with this grant - - authorization_details_types : typing.Optional[typing.Sequence[str]] - Types of authorization_details allowed for this client grant. - - allow_all_scopes : typing.Optional[bool] - If enabled, all scopes configured on the resource server are allowed for this grant. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateClientGrantResponseContent - Client grant successfully updated. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.client_grants.update( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.update( - id, - scope=scope, - organization_usage=organization_usage, - allow_any_organization=allow_any_organization, - authorization_details_types=authorization_details_types, - allow_all_scopes=allow_all_scopes, - request_options=request_options, - ) - return _response.data - - @property - def organizations(self): - if self._organizations is None: - from .organizations.client import AsyncOrganizationsClient # noqa: E402 - - self._organizations = AsyncOrganizationsClient(client_wrapper=self._client_wrapper) - return self._organizations diff --git a/src/auth0/management/client_grants/organizations/__init__.py b/src/auth0/management/client_grants/organizations/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/client_grants/organizations/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/client_grants/organizations/client.py b/src/auth0/management/client_grants/organizations/client.py deleted file mode 100644 index a5ca5bd9..00000000 --- a/src/auth0/management/client_grants/organizations/client.py +++ /dev/null @@ -1,163 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.pagination import AsyncPager, SyncPager -from ...core.request_options import RequestOptions -from ...types.list_client_grant_organizations_paginated_response_content import ( - ListClientGrantOrganizationsPaginatedResponseContent, -) -from ...types.organization import Organization -from .raw_client import AsyncRawOrganizationsClient, RawOrganizationsClient - - -class OrganizationsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawOrganizationsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawOrganizationsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawOrganizationsClient - """ - return self._raw_client - - def list( - self, - id: str, - *, - include_totals: typing.Optional[bool] = True, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[Organization, ListClientGrantOrganizationsPaginatedResponseContent]: - """ - Parameters - ---------- - id : str - ID of the client grant - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[Organization, ListClientGrantOrganizationsPaginatedResponseContent] - Organizations successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.client_grants.organizations.list( - id="id", - include_totals=True, - from_="from", - take=1, - ) - for item in response: - yield item - # alternatively, you can paginate page-by-page - for page in response.iter_pages(): - yield page - """ - return self._raw_client.list( - id, include_totals=include_totals, from_=from_, take=take, request_options=request_options - ) - - -class AsyncOrganizationsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawOrganizationsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawOrganizationsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawOrganizationsClient - """ - return self._raw_client - - async def list( - self, - id: str, - *, - include_totals: typing.Optional[bool] = True, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[Organization, ListClientGrantOrganizationsPaginatedResponseContent]: - """ - Parameters - ---------- - id : str - ID of the client grant - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[Organization, ListClientGrantOrganizationsPaginatedResponseContent] - Organizations successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.client_grants.organizations.list( - id="id", - include_totals=True, - from_="from", - take=1, - ) - async for item in response: - yield item - - # alternatively, you can paginate page-by-page - async for page in response.iter_pages(): - yield page - - - asyncio.run(main()) - """ - return await self._raw_client.list( - id, include_totals=include_totals, from_=from_, take=take, request_options=request_options - ) diff --git a/src/auth0/management/client_grants/organizations/raw_client.py b/src/auth0/management/client_grants/organizations/raw_client.py deleted file mode 100644 index 42412267..00000000 --- a/src/auth0/management/client_grants/organizations/raw_client.py +++ /dev/null @@ -1,287 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ...core.api_error import ApiError -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.jsonable_encoder import quote_path_param -from ...core.pagination import AsyncPager, SyncPager -from ...core.parse_error import ParsingError -from ...core.pydantic_utilities import parse_obj_as -from ...core.request_options import RequestOptions -from ...errors.bad_request_error import BadRequestError -from ...errors.forbidden_error import ForbiddenError -from ...errors.not_found_error import NotFoundError -from ...errors.too_many_requests_error import TooManyRequestsError -from ...errors.unauthorized_error import UnauthorizedError -from ...types.list_client_grant_organizations_paginated_response_content import ( - ListClientGrantOrganizationsPaginatedResponseContent, -) -from ...types.organization import Organization -from pydantic import ValidationError - - -class RawOrganizationsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - id: str, - *, - include_totals: typing.Optional[bool] = True, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[Organization, ListClientGrantOrganizationsPaginatedResponseContent]: - """ - Parameters - ---------- - id : str - ID of the client grant - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[Organization, ListClientGrantOrganizationsPaginatedResponseContent] - Organizations successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - f"client-grants/{quote_path_param(id)}/organizations", - method="GET", - params={ - "include_totals": include_totals, - "from": from_, - "take": take, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListClientGrantOrganizationsPaginatedResponseContent, - parse_obj_as( - type_=ListClientGrantOrganizationsPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.organizations - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - _get_next = lambda: self.list( - id, - include_totals=include_totals, - from_=_parsed_next, - take=take, - request_options=request_options, - ) - return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawOrganizationsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - id: str, - *, - include_totals: typing.Optional[bool] = True, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[Organization, ListClientGrantOrganizationsPaginatedResponseContent]: - """ - Parameters - ---------- - id : str - ID of the client grant - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[Organization, ListClientGrantOrganizationsPaginatedResponseContent] - Organizations successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - f"client-grants/{quote_path_param(id)}/organizations", - method="GET", - params={ - "include_totals": include_totals, - "from": from_, - "take": take, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListClientGrantOrganizationsPaginatedResponseContent, - parse_obj_as( - type_=ListClientGrantOrganizationsPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.organizations - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - - async def _get_next(): - return await self.list( - id, - include_totals=include_totals, - from_=_parsed_next, - take=take, - request_options=request_options, - ) - - return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/client_grants/raw_client.py b/src/auth0/management/client_grants/raw_client.py deleted file mode 100644 index 8966dd87..00000000 --- a/src/auth0/management/client_grants/raw_client.py +++ /dev/null @@ -1,1562 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ..core.api_error import ApiError -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.http_response import AsyncHttpResponse, HttpResponse -from ..core.jsonable_encoder import quote_path_param -from ..core.pagination import AsyncPager, SyncPager -from ..core.parse_error import ParsingError -from ..core.pydantic_utilities import parse_obj_as -from ..core.request_options import RequestOptions -from ..errors.bad_request_error import BadRequestError -from ..errors.conflict_error import ConflictError -from ..errors.forbidden_error import ForbiddenError -from ..errors.gateway_timeout_error import GatewayTimeoutError -from ..errors.internal_server_error import InternalServerError -from ..errors.not_found_error import NotFoundError -from ..errors.too_many_requests_error import TooManyRequestsError -from ..errors.unauthorized_error import UnauthorizedError -from ..types.client_grant_allow_any_organization_enum import ClientGrantAllowAnyOrganizationEnum -from ..types.client_grant_default_for_enum import ClientGrantDefaultForEnum -from ..types.client_grant_organization_nullable_usage_enum import ClientGrantOrganizationNullableUsageEnum -from ..types.client_grant_organization_usage_enum import ClientGrantOrganizationUsageEnum -from ..types.client_grant_response_content import ClientGrantResponseContent -from ..types.client_grant_sort_field_enum import ClientGrantSortFieldEnum -from ..types.client_grant_subject_type_enum import ClientGrantSubjectTypeEnum -from ..types.create_client_grant_response_content import CreateClientGrantResponseContent -from ..types.get_client_grant_response_content import GetClientGrantResponseContent -from ..types.list_client_grant_paginated_response_content import ListClientGrantPaginatedResponseContent -from ..types.search_client_grants_response_content import SearchClientGrantsResponseContent -from ..types.search_parser_enum import SearchParserEnum -from ..types.update_client_grant_response_content import UpdateClientGrantResponseContent -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawClientGrantsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - include_totals: typing.Optional[bool] = True, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - audience: typing.Optional[str] = None, - client_id: typing.Optional[str] = None, - allow_any_organization: typing.Optional[ClientGrantAllowAnyOrganizationEnum] = None, - subject_type: typing.Optional[ClientGrantSubjectTypeEnum] = None, - default_for: typing.Optional[ClientGrantDefaultForEnum] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[ClientGrantResponseContent, ListClientGrantPaginatedResponseContent]: - """ - Retrieve a list of [client grants](https://auth0.com/docs/get-started/applications/application-access-to-apis-client-grants), including the scopes associated with the application/API pair. - - Parameters - ---------- - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - audience : typing.Optional[str] - Optional filter on audience. - - client_id : typing.Optional[str] - Optional filter on client_id. - - allow_any_organization : typing.Optional[ClientGrantAllowAnyOrganizationEnum] - Optional filter on allow_any_organization. - - subject_type : typing.Optional[ClientGrantSubjectTypeEnum] - The type of application access the client grant allows. - - default_for : typing.Optional[ClientGrantDefaultForEnum] - Applies this client grant as the default for all clients in the specified group. The only accepted value is `third_party_clients`, which applies the grant to all third-party clients. Per-client grants for the same audience take precedence. Mutually exclusive with `client_id`. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[ClientGrantResponseContent, ListClientGrantPaginatedResponseContent] - Client grants successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - "client-grants", - method="GET", - params={ - "include_totals": include_totals, - "from": from_, - "take": take, - "audience": audience, - "client_id": client_id, - "allow_any_organization": allow_any_organization, - "subject_type": subject_type, - "default_for": default_for, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListClientGrantPaginatedResponseContent, - parse_obj_as( - type_=ListClientGrantPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.client_grants - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - _get_next = lambda: self.list( - include_totals=include_totals, - from_=_parsed_next, - take=take, - audience=audience, - client_id=client_id, - allow_any_organization=allow_any_organization, - subject_type=subject_type, - default_for=default_for, - request_options=request_options, - ) - return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - *, - audience: str, - client_id: typing.Optional[str] = OMIT, - default_for: typing.Optional[ClientGrantDefaultForEnum] = OMIT, - organization_usage: typing.Optional[ClientGrantOrganizationUsageEnum] = OMIT, - allow_any_organization: typing.Optional[bool] = OMIT, - scope: typing.Optional[typing.Sequence[str]] = OMIT, - subject_type: typing.Optional[ClientGrantSubjectTypeEnum] = OMIT, - authorization_details_types: typing.Optional[typing.Sequence[str]] = OMIT, - allow_all_scopes: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[CreateClientGrantResponseContent]: - """ - Create a client grant for a machine-to-machine login flow. To learn more, read [Client Credential Flow](https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow). - - Parameters - ---------- - audience : str - The audience (API identifier) of this client grant - - client_id : typing.Optional[str] - ID of the client. - - default_for : typing.Optional[ClientGrantDefaultForEnum] - - organization_usage : typing.Optional[ClientGrantOrganizationUsageEnum] - - allow_any_organization : typing.Optional[bool] - If enabled, any organization can be used with this grant. If disabled (default), the grant must be explicitly assigned to the desired organizations. - - scope : typing.Optional[typing.Sequence[str]] - Scopes allowed for this client grant. - - subject_type : typing.Optional[ClientGrantSubjectTypeEnum] - - authorization_details_types : typing.Optional[typing.Sequence[str]] - Types of authorization_details allowed for this client grant. - - allow_all_scopes : typing.Optional[bool] - If enabled, all scopes configured on the resource server are allowed for this grant. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CreateClientGrantResponseContent] - Client grant successfully created. - """ - _response = self._client_wrapper.httpx_client.request( - "client-grants", - method="POST", - json={ - "client_id": client_id, - "audience": audience, - "default_for": default_for, - "organization_usage": organization_usage, - "allow_any_organization": allow_any_organization, - "scope": scope, - "subject_type": subject_type, - "authorization_details_types": authorization_details_types, - "allow_all_scopes": allow_all_scopes, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateClientGrantResponseContent, - parse_obj_as( - type_=CreateClientGrantResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def search( - self, - *, - q: typing.Optional[str] = None, - parser: typing.Optional[SearchParserEnum] = None, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - take: typing.Optional[int] = 50, - from_: typing.Optional[str] = None, - sort: typing.Optional[ClientGrantSortFieldEnum] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[ClientGrantResponseContent, SearchClientGrantsResponseContent]: - """ - Search client grants using SCIM or Lucene filter syntax with low-latency, eventually consistent results. Use the parser parameter to specify "scim" or "lucene" syntax (default: "lucene"). This endpoint provides an alternative to the standard GET /client-grants endpoint with better performance for complex queries. - Results may not reflect recent updates immediately. - - Parameters - ---------- - q : typing.Optional[str] - Filter expression in SCIM or Lucene syntax (depending on parser parameter). SCIM examples: `audience eq "https://api.example.com"`, `client_id eq "cli_abc"`, `subject_type eq "client"`, `allow_any_organization eq true`, `default_for eq "third_party_clients"`, `audience co "example" and organization_id eq "org_123"`. SCIM operators: eq, ne, sw, ew, co, pr, gt, ge, lt, le, and, or.

Supported Fields:
  • audience - Filter by audience (eq, ne, sw, co, ew, pr)
  • client_id - Filter by client ID (eq, ne, sw, pr)
  • subject_type - Filter by subject type (eq, ne, sw, pr)
  • allow_any_organization - Filter by allow_any_organization (eq, ne, pr)
  • organization_id - Filter by organization ID (eq, ne, sw, pr)
  • updated_at - Filter by last update date (eq, ne, gt, ge, lt, le, pr)
  • default_for - Filter by default grant group (eq, ne, sw, pr)
Maximum 5 filter operations per query. Results are eventually consistent and may not reflect recent updates. - - parser : typing.Optional[SearchParserEnum] - Query parser to use for the filter expression. Use "scim" for SCIM filter syntax or "lucene" for Lucene query syntax (default). - - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude in the response. Works with the include_fields parameter to control projection mode. - - include_fields : typing.Optional[bool] - Controls field projection mode. Set to true to include only fields specified in the fields parameter. Set to false to exclude fields specified in the fields parameter. Defaults to true if not specified. - - take : typing.Optional[int] - Maximum number of results to return per page (1-100). Defaults to 50. - - from_ : typing.Optional[str] - Cursor for the next page of results. Use the value from the next field in the previous response. - - sort : typing.Optional[ClientGrantSortFieldEnum] - Field name to sort results by in ascending order. Defaults to insertion order (oldest first) if not provided. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[ClientGrantResponseContent, SearchClientGrantsResponseContent] - Client grants successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - "client-grants/search", - method="GET", - params={ - "q": q, - "parser": parser, - "fields": fields, - "include_fields": include_fields, - "take": take, - "from": from_, - "sort": sort, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - SearchClientGrantsResponseContent, - parse_obj_as( - type_=SearchClientGrantsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.client_grants - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - _get_next = lambda: self.search( - q=q, - parser=parser, - fields=fields, - include_fields=include_fields, - take=take, - from_=_parsed_next, - sort=sort, - request_options=request_options, - ) - return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 500: - raise InternalServerError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 504: - raise GatewayTimeoutError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetClientGrantResponseContent]: - """ - Retrieve a single [client grant](https://auth0.com/docs/get-started/applications/application-access-to-apis-client-grants), including the - scopes associated with the application/API pair. - - Parameters - ---------- - id : str - The ID of the client grant to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetClientGrantResponseContent] - Client grant successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - f"client-grants/{quote_path_param(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetClientGrantResponseContent, - parse_obj_as( - type_=GetClientGrantResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[None]: - """ - Delete the [Client Credential Flow](https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow) from your machine-to-machine application. - - Parameters - ---------- - id : str - ID of the client grant to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"client-grants/{quote_path_param(id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def update( - self, - id: str, - *, - scope: typing.Optional[typing.Sequence[str]] = OMIT, - organization_usage: typing.Optional[ClientGrantOrganizationNullableUsageEnum] = OMIT, - allow_any_organization: typing.Optional[bool] = OMIT, - authorization_details_types: typing.Optional[typing.Sequence[str]] = OMIT, - allow_all_scopes: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[UpdateClientGrantResponseContent]: - """ - Update a client grant. - - Parameters - ---------- - id : str - ID of the client grant to update. - - scope : typing.Optional[typing.Sequence[str]] - Scopes allowed for this client grant. - - organization_usage : typing.Optional[ClientGrantOrganizationNullableUsageEnum] - - allow_any_organization : typing.Optional[bool] - Controls allowing any organization to be used with this grant - - authorization_details_types : typing.Optional[typing.Sequence[str]] - Types of authorization_details allowed for this client grant. - - allow_all_scopes : typing.Optional[bool] - If enabled, all scopes configured on the resource server are allowed for this grant. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[UpdateClientGrantResponseContent] - Client grant successfully updated. - """ - _response = self._client_wrapper.httpx_client.request( - f"client-grants/{quote_path_param(id)}", - method="PATCH", - json={ - "scope": scope, - "organization_usage": organization_usage, - "allow_any_organization": allow_any_organization, - "authorization_details_types": authorization_details_types, - "allow_all_scopes": allow_all_scopes, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateClientGrantResponseContent, - parse_obj_as( - type_=UpdateClientGrantResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawClientGrantsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - include_totals: typing.Optional[bool] = True, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - audience: typing.Optional[str] = None, - client_id: typing.Optional[str] = None, - allow_any_organization: typing.Optional[ClientGrantAllowAnyOrganizationEnum] = None, - subject_type: typing.Optional[ClientGrantSubjectTypeEnum] = None, - default_for: typing.Optional[ClientGrantDefaultForEnum] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[ClientGrantResponseContent, ListClientGrantPaginatedResponseContent]: - """ - Retrieve a list of [client grants](https://auth0.com/docs/get-started/applications/application-access-to-apis-client-grants), including the scopes associated with the application/API pair. - - Parameters - ---------- - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - audience : typing.Optional[str] - Optional filter on audience. - - client_id : typing.Optional[str] - Optional filter on client_id. - - allow_any_organization : typing.Optional[ClientGrantAllowAnyOrganizationEnum] - Optional filter on allow_any_organization. - - subject_type : typing.Optional[ClientGrantSubjectTypeEnum] - The type of application access the client grant allows. - - default_for : typing.Optional[ClientGrantDefaultForEnum] - Applies this client grant as the default for all clients in the specified group. The only accepted value is `third_party_clients`, which applies the grant to all third-party clients. Per-client grants for the same audience take precedence. Mutually exclusive with `client_id`. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[ClientGrantResponseContent, ListClientGrantPaginatedResponseContent] - Client grants successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - "client-grants", - method="GET", - params={ - "include_totals": include_totals, - "from": from_, - "take": take, - "audience": audience, - "client_id": client_id, - "allow_any_organization": allow_any_organization, - "subject_type": subject_type, - "default_for": default_for, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListClientGrantPaginatedResponseContent, - parse_obj_as( - type_=ListClientGrantPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.client_grants - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - - async def _get_next(): - return await self.list( - include_totals=include_totals, - from_=_parsed_next, - take=take, - audience=audience, - client_id=client_id, - allow_any_organization=allow_any_organization, - subject_type=subject_type, - default_for=default_for, - request_options=request_options, - ) - - return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - *, - audience: str, - client_id: typing.Optional[str] = OMIT, - default_for: typing.Optional[ClientGrantDefaultForEnum] = OMIT, - organization_usage: typing.Optional[ClientGrantOrganizationUsageEnum] = OMIT, - allow_any_organization: typing.Optional[bool] = OMIT, - scope: typing.Optional[typing.Sequence[str]] = OMIT, - subject_type: typing.Optional[ClientGrantSubjectTypeEnum] = OMIT, - authorization_details_types: typing.Optional[typing.Sequence[str]] = OMIT, - allow_all_scopes: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[CreateClientGrantResponseContent]: - """ - Create a client grant for a machine-to-machine login flow. To learn more, read [Client Credential Flow](https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow). - - Parameters - ---------- - audience : str - The audience (API identifier) of this client grant - - client_id : typing.Optional[str] - ID of the client. - - default_for : typing.Optional[ClientGrantDefaultForEnum] - - organization_usage : typing.Optional[ClientGrantOrganizationUsageEnum] - - allow_any_organization : typing.Optional[bool] - If enabled, any organization can be used with this grant. If disabled (default), the grant must be explicitly assigned to the desired organizations. - - scope : typing.Optional[typing.Sequence[str]] - Scopes allowed for this client grant. - - subject_type : typing.Optional[ClientGrantSubjectTypeEnum] - - authorization_details_types : typing.Optional[typing.Sequence[str]] - Types of authorization_details allowed for this client grant. - - allow_all_scopes : typing.Optional[bool] - If enabled, all scopes configured on the resource server are allowed for this grant. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CreateClientGrantResponseContent] - Client grant successfully created. - """ - _response = await self._client_wrapper.httpx_client.request( - "client-grants", - method="POST", - json={ - "client_id": client_id, - "audience": audience, - "default_for": default_for, - "organization_usage": organization_usage, - "allow_any_organization": allow_any_organization, - "scope": scope, - "subject_type": subject_type, - "authorization_details_types": authorization_details_types, - "allow_all_scopes": allow_all_scopes, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateClientGrantResponseContent, - parse_obj_as( - type_=CreateClientGrantResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def search( - self, - *, - q: typing.Optional[str] = None, - parser: typing.Optional[SearchParserEnum] = None, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - take: typing.Optional[int] = 50, - from_: typing.Optional[str] = None, - sort: typing.Optional[ClientGrantSortFieldEnum] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[ClientGrantResponseContent, SearchClientGrantsResponseContent]: - """ - Search client grants using SCIM or Lucene filter syntax with low-latency, eventually consistent results. Use the parser parameter to specify "scim" or "lucene" syntax (default: "lucene"). This endpoint provides an alternative to the standard GET /client-grants endpoint with better performance for complex queries. - Results may not reflect recent updates immediately. - - Parameters - ---------- - q : typing.Optional[str] - Filter expression in SCIM or Lucene syntax (depending on parser parameter). SCIM examples: `audience eq "https://api.example.com"`, `client_id eq "cli_abc"`, `subject_type eq "client"`, `allow_any_organization eq true`, `default_for eq "third_party_clients"`, `audience co "example" and organization_id eq "org_123"`. SCIM operators: eq, ne, sw, ew, co, pr, gt, ge, lt, le, and, or.

Supported Fields:
  • audience - Filter by audience (eq, ne, sw, co, ew, pr)
  • client_id - Filter by client ID (eq, ne, sw, pr)
  • subject_type - Filter by subject type (eq, ne, sw, pr)
  • allow_any_organization - Filter by allow_any_organization (eq, ne, pr)
  • organization_id - Filter by organization ID (eq, ne, sw, pr)
  • updated_at - Filter by last update date (eq, ne, gt, ge, lt, le, pr)
  • default_for - Filter by default grant group (eq, ne, sw, pr)
Maximum 5 filter operations per query. Results are eventually consistent and may not reflect recent updates. - - parser : typing.Optional[SearchParserEnum] - Query parser to use for the filter expression. Use "scim" for SCIM filter syntax or "lucene" for Lucene query syntax (default). - - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude in the response. Works with the include_fields parameter to control projection mode. - - include_fields : typing.Optional[bool] - Controls field projection mode. Set to true to include only fields specified in the fields parameter. Set to false to exclude fields specified in the fields parameter. Defaults to true if not specified. - - take : typing.Optional[int] - Maximum number of results to return per page (1-100). Defaults to 50. - - from_ : typing.Optional[str] - Cursor for the next page of results. Use the value from the next field in the previous response. - - sort : typing.Optional[ClientGrantSortFieldEnum] - Field name to sort results by in ascending order. Defaults to insertion order (oldest first) if not provided. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[ClientGrantResponseContent, SearchClientGrantsResponseContent] - Client grants successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - "client-grants/search", - method="GET", - params={ - "q": q, - "parser": parser, - "fields": fields, - "include_fields": include_fields, - "take": take, - "from": from_, - "sort": sort, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - SearchClientGrantsResponseContent, - parse_obj_as( - type_=SearchClientGrantsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.client_grants - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - - async def _get_next(): - return await self.search( - q=q, - parser=parser, - fields=fields, - include_fields=include_fields, - take=take, - from_=_parsed_next, - sort=sort, - request_options=request_options, - ) - - return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 500: - raise InternalServerError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 504: - raise GatewayTimeoutError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetClientGrantResponseContent]: - """ - Retrieve a single [client grant](https://auth0.com/docs/get-started/applications/application-access-to-apis-client-grants), including the - scopes associated with the application/API pair. - - Parameters - ---------- - id : str - The ID of the client grant to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetClientGrantResponseContent] - Client grant successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - f"client-grants/{quote_path_param(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetClientGrantResponseContent, - parse_obj_as( - type_=GetClientGrantResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def delete( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Delete the [Client Credential Flow](https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow) from your machine-to-machine application. - - Parameters - ---------- - id : str - ID of the client grant to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"client-grants/{quote_path_param(id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def update( - self, - id: str, - *, - scope: typing.Optional[typing.Sequence[str]] = OMIT, - organization_usage: typing.Optional[ClientGrantOrganizationNullableUsageEnum] = OMIT, - allow_any_organization: typing.Optional[bool] = OMIT, - authorization_details_types: typing.Optional[typing.Sequence[str]] = OMIT, - allow_all_scopes: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[UpdateClientGrantResponseContent]: - """ - Update a client grant. - - Parameters - ---------- - id : str - ID of the client grant to update. - - scope : typing.Optional[typing.Sequence[str]] - Scopes allowed for this client grant. - - organization_usage : typing.Optional[ClientGrantOrganizationNullableUsageEnum] - - allow_any_organization : typing.Optional[bool] - Controls allowing any organization to be used with this grant - - authorization_details_types : typing.Optional[typing.Sequence[str]] - Types of authorization_details allowed for this client grant. - - allow_all_scopes : typing.Optional[bool] - If enabled, all scopes configured on the resource server are allowed for this grant. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[UpdateClientGrantResponseContent] - Client grant successfully updated. - """ - _response = await self._client_wrapper.httpx_client.request( - f"client-grants/{quote_path_param(id)}", - method="PATCH", - json={ - "scope": scope, - "organization_usage": organization_usage, - "allow_any_organization": allow_any_organization, - "authorization_details_types": authorization_details_types, - "allow_all_scopes": allow_all_scopes, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateClientGrantResponseContent, - parse_obj_as( - type_=UpdateClientGrantResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/client_profiles/__init__.py b/src/auth0/management/client_profiles/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/client_profiles/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/client_profiles/client.py b/src/auth0/management/client_profiles/client.py deleted file mode 100644 index b9bb08ea..00000000 --- a/src/auth0/management/client_profiles/client.py +++ /dev/null @@ -1,533 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.pagination import AsyncPager, SyncPager -from ..core.request_options import RequestOptions -from ..types.client_profile import ClientProfile -from ..types.client_profile_apply_policy import ClientProfileApplyPolicy -from ..types.client_profile_client_configuration import ClientProfileClientConfiguration -from ..types.client_profile_description import ClientProfileDescription -from ..types.client_profile_id import ClientProfileId -from ..types.client_profile_name import ClientProfileName -from ..types.list_client_profiles_paginated_response_content import ListClientProfilesPaginatedResponseContent -from .raw_client import AsyncRawClientProfilesClient, RawClientProfilesClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class ClientProfilesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawClientProfilesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawClientProfilesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawClientProfilesClient - """ - return self._raw_client - - def list( - self, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[ClientProfile, ListClientProfilesPaginatedResponseContent]: - """ - Retrieve a paginated list of client profiles for the tenant. Uses checkpoint pagination: pass the next cursor from a previous response as the from query parameter to retrieve the following page. - - Parameters - ---------- - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[ClientProfile, ListClientProfilesPaginatedResponseContent] - Client profiles successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.client_profiles.list( - from_="from", - take=1, - ) - for item in response: - yield item - # alternatively, you can paginate page-by-page - for page in response.iter_pages(): - yield page - """ - return self._raw_client.list(from_=from_, take=take, request_options=request_options) - - def create( - self, - *, - name: ClientProfileName, - client_configuration: ClientProfileClientConfiguration, - apply_policy: ClientProfileApplyPolicy, - description: typing.Optional[ClientProfileDescription] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> ClientProfile: - """ - Create a client profile. At most one profile is allowed per tenant in this release; attempting to create a second returns 409 Conflict. The profile governs Dynamic CIMD clients matched by its apply_policy at runtime. - - Parameters - ---------- - name : ClientProfileName - - client_configuration : ClientProfileClientConfiguration - - apply_policy : ClientProfileApplyPolicy - - description : typing.Optional[ClientProfileDescription] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - ClientProfile - Client profile successfully created. - - Examples - -------- - from auth0 import ( - Auth0, - ClientProfileApplyPolicy, - ClientProfileClientConfiguration, - ) - - client = Auth0( - token="YOUR_TOKEN", - ) - client.client_profiles.create( - name="name", - client_configuration=ClientProfileClientConfiguration(), - apply_policy=ClientProfileApplyPolicy( - external_metadata_type="cimd", - external_metadata_created_by="client", - ), - ) - """ - _response = self._raw_client.create( - name=name, - client_configuration=client_configuration, - apply_policy=apply_policy, - description=description, - request_options=request_options, - ) - return _response.data - - def get(self, id: ClientProfileId, *, request_options: typing.Optional[RequestOptions] = None) -> ClientProfile: - """ - Retrieve a single client profile by its identifier. Returns 404 if no profile with the given ID exists for the tenant. - - Parameters - ---------- - id : ClientProfileId - ID of the client profile. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - ClientProfile - Record for existing client profile. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.client_profiles.get( - id="id", - ) - """ - _response = self._raw_client.get(id, request_options=request_options) - return _response.data - - def delete(self, id: ClientProfileId, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete a client profile. Idempotent: returns 204 No Content whether or not a profile with the given ID existed. Deleting the profile removes fleet governance for matched clients immediately. - - Parameters - ---------- - id : ClientProfileId - ID of the client profile. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.client_profiles.delete( - id="id", - ) - """ - _response = self._raw_client.delete(id, request_options=request_options) - return _response.data - - def update( - self, - id: ClientProfileId, - *, - name: typing.Optional[ClientProfileName] = OMIT, - description: typing.Optional[ClientProfileDescription] = OMIT, - client_configuration: typing.Optional[ClientProfileClientConfiguration] = OMIT, - apply_policy: typing.Optional[ClientProfileApplyPolicy] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> ClientProfile: - """ - Update a client profile. Supports partial updates at the top level (JSON Merge Patch); omitted top-level fields remain unchanged. Nested objects such as client_configuration must be supplied in full. - - Parameters - ---------- - id : ClientProfileId - ID of the client profile. - - name : typing.Optional[ClientProfileName] - - description : typing.Optional[ClientProfileDescription] - - client_configuration : typing.Optional[ClientProfileClientConfiguration] - - apply_policy : typing.Optional[ClientProfileApplyPolicy] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - ClientProfile - Client profile successfully updated. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.client_profiles.update( - id="id", - ) - """ - _response = self._raw_client.update( - id, - name=name, - description=description, - client_configuration=client_configuration, - apply_policy=apply_policy, - request_options=request_options, - ) - return _response.data - - -class AsyncClientProfilesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawClientProfilesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawClientProfilesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawClientProfilesClient - """ - return self._raw_client - - async def list( - self, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[ClientProfile, ListClientProfilesPaginatedResponseContent]: - """ - Retrieve a paginated list of client profiles for the tenant. Uses checkpoint pagination: pass the next cursor from a previous response as the from query parameter to retrieve the following page. - - Parameters - ---------- - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[ClientProfile, ListClientProfilesPaginatedResponseContent] - Client profiles successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.client_profiles.list( - from_="from", - take=1, - ) - async for item in response: - yield item - - # alternatively, you can paginate page-by-page - async for page in response.iter_pages(): - yield page - - - asyncio.run(main()) - """ - return await self._raw_client.list(from_=from_, take=take, request_options=request_options) - - async def create( - self, - *, - name: ClientProfileName, - client_configuration: ClientProfileClientConfiguration, - apply_policy: ClientProfileApplyPolicy, - description: typing.Optional[ClientProfileDescription] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> ClientProfile: - """ - Create a client profile. At most one profile is allowed per tenant in this release; attempting to create a second returns 409 Conflict. The profile governs Dynamic CIMD clients matched by its apply_policy at runtime. - - Parameters - ---------- - name : ClientProfileName - - client_configuration : ClientProfileClientConfiguration - - apply_policy : ClientProfileApplyPolicy - - description : typing.Optional[ClientProfileDescription] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - ClientProfile - Client profile successfully created. - - Examples - -------- - import asyncio - - from auth0 import ( - AsyncAuth0, - ClientProfileApplyPolicy, - ClientProfileClientConfiguration, - ) - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.client_profiles.create( - name="name", - client_configuration=ClientProfileClientConfiguration(), - apply_policy=ClientProfileApplyPolicy( - external_metadata_type="cimd", - external_metadata_created_by="client", - ), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - name=name, - client_configuration=client_configuration, - apply_policy=apply_policy, - description=description, - request_options=request_options, - ) - return _response.data - - async def get( - self, id: ClientProfileId, *, request_options: typing.Optional[RequestOptions] = None - ) -> ClientProfile: - """ - Retrieve a single client profile by its identifier. Returns 404 if no profile with the given ID exists for the tenant. - - Parameters - ---------- - id : ClientProfileId - ID of the client profile. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - ClientProfile - Record for existing client profile. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.client_profiles.get( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.get(id, request_options=request_options) - return _response.data - - async def delete(self, id: ClientProfileId, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete a client profile. Idempotent: returns 204 No Content whether or not a profile with the given ID existed. Deleting the profile removes fleet governance for matched clients immediately. - - Parameters - ---------- - id : ClientProfileId - ID of the client profile. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.client_profiles.delete( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete(id, request_options=request_options) - return _response.data - - async def update( - self, - id: ClientProfileId, - *, - name: typing.Optional[ClientProfileName] = OMIT, - description: typing.Optional[ClientProfileDescription] = OMIT, - client_configuration: typing.Optional[ClientProfileClientConfiguration] = OMIT, - apply_policy: typing.Optional[ClientProfileApplyPolicy] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> ClientProfile: - """ - Update a client profile. Supports partial updates at the top level (JSON Merge Patch); omitted top-level fields remain unchanged. Nested objects such as client_configuration must be supplied in full. - - Parameters - ---------- - id : ClientProfileId - ID of the client profile. - - name : typing.Optional[ClientProfileName] - - description : typing.Optional[ClientProfileDescription] - - client_configuration : typing.Optional[ClientProfileClientConfiguration] - - apply_policy : typing.Optional[ClientProfileApplyPolicy] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - ClientProfile - Client profile successfully updated. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.client_profiles.update( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.update( - id, - name=name, - description=description, - client_configuration=client_configuration, - apply_policy=apply_policy, - request_options=request_options, - ) - return _response.data diff --git a/src/auth0/management/client_profiles/raw_client.py b/src/auth0/management/client_profiles/raw_client.py deleted file mode 100644 index e8a484f5..00000000 --- a/src/auth0/management/client_profiles/raw_client.py +++ /dev/null @@ -1,1110 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ..core.api_error import ApiError -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.http_response import AsyncHttpResponse, HttpResponse -from ..core.jsonable_encoder import quote_path_param -from ..core.pagination import AsyncPager, SyncPager -from ..core.parse_error import ParsingError -from ..core.pydantic_utilities import parse_obj_as -from ..core.request_options import RequestOptions -from ..core.serialization import convert_and_respect_annotation_metadata -from ..errors.bad_request_error import BadRequestError -from ..errors.conflict_error import ConflictError -from ..errors.forbidden_error import ForbiddenError -from ..errors.not_found_error import NotFoundError -from ..errors.too_many_requests_error import TooManyRequestsError -from ..errors.unauthorized_error import UnauthorizedError -from ..types.client_profile import ClientProfile -from ..types.client_profile_apply_policy import ClientProfileApplyPolicy -from ..types.client_profile_client_configuration import ClientProfileClientConfiguration -from ..types.client_profile_description import ClientProfileDescription -from ..types.client_profile_id import ClientProfileId -from ..types.client_profile_name import ClientProfileName -from ..types.list_client_profiles_paginated_response_content import ListClientProfilesPaginatedResponseContent -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawClientProfilesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[ClientProfile, ListClientProfilesPaginatedResponseContent]: - """ - Retrieve a paginated list of client profiles for the tenant. Uses checkpoint pagination: pass the next cursor from a previous response as the from query parameter to retrieve the following page. - - Parameters - ---------- - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[ClientProfile, ListClientProfilesPaginatedResponseContent] - Client profiles successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - "client-profiles", - method="GET", - params={ - "from": from_, - "take": take, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListClientProfilesPaginatedResponseContent, - parse_obj_as( - type_=ListClientProfilesPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.client_profiles - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - _get_next = lambda: self.list( - from_=_parsed_next, - take=take, - request_options=request_options, - ) - return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - *, - name: ClientProfileName, - client_configuration: ClientProfileClientConfiguration, - apply_policy: ClientProfileApplyPolicy, - description: typing.Optional[ClientProfileDescription] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[ClientProfile]: - """ - Create a client profile. At most one profile is allowed per tenant in this release; attempting to create a second returns 409 Conflict. The profile governs Dynamic CIMD clients matched by its apply_policy at runtime. - - Parameters - ---------- - name : ClientProfileName - - client_configuration : ClientProfileClientConfiguration - - apply_policy : ClientProfileApplyPolicy - - description : typing.Optional[ClientProfileDescription] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[ClientProfile] - Client profile successfully created. - """ - _response = self._client_wrapper.httpx_client.request( - "client-profiles", - method="POST", - json={ - "name": name, - "description": description, - "client_configuration": convert_and_respect_annotation_metadata( - object_=client_configuration, annotation=ClientProfileClientConfiguration, direction="write" - ), - "apply_policy": convert_and_respect_annotation_metadata( - object_=apply_policy, annotation=ClientProfileApplyPolicy, direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - ClientProfile, - parse_obj_as( - type_=ClientProfile, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def get( - self, id: ClientProfileId, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[ClientProfile]: - """ - Retrieve a single client profile by its identifier. Returns 404 if no profile with the given ID exists for the tenant. - - Parameters - ---------- - id : ClientProfileId - ID of the client profile. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[ClientProfile] - Record for existing client profile. - """ - _response = self._client_wrapper.httpx_client.request( - f"client-profiles/{quote_path_param(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - ClientProfile, - parse_obj_as( - type_=ClientProfile, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def delete( - self, id: ClientProfileId, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[None]: - """ - Delete a client profile. Idempotent: returns 204 No Content whether or not a profile with the given ID existed. Deleting the profile removes fleet governance for matched clients immediately. - - Parameters - ---------- - id : ClientProfileId - ID of the client profile. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"client-profiles/{quote_path_param(id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def update( - self, - id: ClientProfileId, - *, - name: typing.Optional[ClientProfileName] = OMIT, - description: typing.Optional[ClientProfileDescription] = OMIT, - client_configuration: typing.Optional[ClientProfileClientConfiguration] = OMIT, - apply_policy: typing.Optional[ClientProfileApplyPolicy] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[ClientProfile]: - """ - Update a client profile. Supports partial updates at the top level (JSON Merge Patch); omitted top-level fields remain unchanged. Nested objects such as client_configuration must be supplied in full. - - Parameters - ---------- - id : ClientProfileId - ID of the client profile. - - name : typing.Optional[ClientProfileName] - - description : typing.Optional[ClientProfileDescription] - - client_configuration : typing.Optional[ClientProfileClientConfiguration] - - apply_policy : typing.Optional[ClientProfileApplyPolicy] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[ClientProfile] - Client profile successfully updated. - """ - _response = self._client_wrapper.httpx_client.request( - f"client-profiles/{quote_path_param(id)}", - method="PATCH", - json={ - "name": name, - "description": description, - "client_configuration": convert_and_respect_annotation_metadata( - object_=client_configuration, annotation=ClientProfileClientConfiguration, direction="write" - ), - "apply_policy": convert_and_respect_annotation_metadata( - object_=apply_policy, annotation=ClientProfileApplyPolicy, direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - ClientProfile, - parse_obj_as( - type_=ClientProfile, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawClientProfilesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[ClientProfile, ListClientProfilesPaginatedResponseContent]: - """ - Retrieve a paginated list of client profiles for the tenant. Uses checkpoint pagination: pass the next cursor from a previous response as the from query parameter to retrieve the following page. - - Parameters - ---------- - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[ClientProfile, ListClientProfilesPaginatedResponseContent] - Client profiles successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - "client-profiles", - method="GET", - params={ - "from": from_, - "take": take, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListClientProfilesPaginatedResponseContent, - parse_obj_as( - type_=ListClientProfilesPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.client_profiles - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - - async def _get_next(): - return await self.list( - from_=_parsed_next, - take=take, - request_options=request_options, - ) - - return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - *, - name: ClientProfileName, - client_configuration: ClientProfileClientConfiguration, - apply_policy: ClientProfileApplyPolicy, - description: typing.Optional[ClientProfileDescription] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[ClientProfile]: - """ - Create a client profile. At most one profile is allowed per tenant in this release; attempting to create a second returns 409 Conflict. The profile governs Dynamic CIMD clients matched by its apply_policy at runtime. - - Parameters - ---------- - name : ClientProfileName - - client_configuration : ClientProfileClientConfiguration - - apply_policy : ClientProfileApplyPolicy - - description : typing.Optional[ClientProfileDescription] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[ClientProfile] - Client profile successfully created. - """ - _response = await self._client_wrapper.httpx_client.request( - "client-profiles", - method="POST", - json={ - "name": name, - "description": description, - "client_configuration": convert_and_respect_annotation_metadata( - object_=client_configuration, annotation=ClientProfileClientConfiguration, direction="write" - ), - "apply_policy": convert_and_respect_annotation_metadata( - object_=apply_policy, annotation=ClientProfileApplyPolicy, direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - ClientProfile, - parse_obj_as( - type_=ClientProfile, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def get( - self, id: ClientProfileId, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[ClientProfile]: - """ - Retrieve a single client profile by its identifier. Returns 404 if no profile with the given ID exists for the tenant. - - Parameters - ---------- - id : ClientProfileId - ID of the client profile. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[ClientProfile] - Record for existing client profile. - """ - _response = await self._client_wrapper.httpx_client.request( - f"client-profiles/{quote_path_param(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - ClientProfile, - parse_obj_as( - type_=ClientProfile, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def delete( - self, id: ClientProfileId, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Delete a client profile. Idempotent: returns 204 No Content whether or not a profile with the given ID existed. Deleting the profile removes fleet governance for matched clients immediately. - - Parameters - ---------- - id : ClientProfileId - ID of the client profile. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"client-profiles/{quote_path_param(id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def update( - self, - id: ClientProfileId, - *, - name: typing.Optional[ClientProfileName] = OMIT, - description: typing.Optional[ClientProfileDescription] = OMIT, - client_configuration: typing.Optional[ClientProfileClientConfiguration] = OMIT, - apply_policy: typing.Optional[ClientProfileApplyPolicy] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[ClientProfile]: - """ - Update a client profile. Supports partial updates at the top level (JSON Merge Patch); omitted top-level fields remain unchanged. Nested objects such as client_configuration must be supplied in full. - - Parameters - ---------- - id : ClientProfileId - ID of the client profile. - - name : typing.Optional[ClientProfileName] - - description : typing.Optional[ClientProfileDescription] - - client_configuration : typing.Optional[ClientProfileClientConfiguration] - - apply_policy : typing.Optional[ClientProfileApplyPolicy] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[ClientProfile] - Client profile successfully updated. - """ - _response = await self._client_wrapper.httpx_client.request( - f"client-profiles/{quote_path_param(id)}", - method="PATCH", - json={ - "name": name, - "description": description, - "client_configuration": convert_and_respect_annotation_metadata( - object_=client_configuration, annotation=ClientProfileClientConfiguration, direction="write" - ), - "apply_policy": convert_and_respect_annotation_metadata( - object_=apply_policy, annotation=ClientProfileApplyPolicy, direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - ClientProfile, - parse_obj_as( - type_=ClientProfile, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/clients/__init__.py b/src/auth0/management/clients/__init__.py deleted file mode 100644 index 0207f98c..00000000 --- a/src/auth0/management/clients/__init__.py +++ /dev/null @@ -1,34 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from . import connections, credentials -_dynamic_imports: typing.Dict[str, str] = {"connections": ".connections", "credentials": ".credentials"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - if module_name == f".{attr_name}": - return module - else: - return getattr(module, attr_name) - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["connections", "credentials"] diff --git a/src/auth0/management/clients/client.py b/src/auth0/management/clients/client.py deleted file mode 100644 index c1d0b5bd..00000000 --- a/src/auth0/management/clients/client.py +++ /dev/null @@ -1,2436 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.pagination import AsyncPager, SyncPager -from ..core.request_options import RequestOptions -from ..types.b_2_b_integration_configuration import B2BIntegrationConfiguration -from ..types.client import Client -from ..types.client_addons import ClientAddons -from ..types.client_anonymous_session_transfer_network_binding_enum import ( - ClientAnonymousSessionTransferNetworkBindingEnum, -) -from ..types.client_app_type_enum import ClientAppTypeEnum -from ..types.client_async_approval_notifications_channels_api_patch_configuration import ( - ClientAsyncApprovalNotificationsChannelsApiPatchConfiguration, -) -from ..types.client_async_approval_notifications_channels_api_post_configuration import ( - ClientAsyncApprovalNotificationsChannelsApiPostConfiguration, -) -from ..types.client_authentication_method import ClientAuthenticationMethod -from ..types.client_compliance_level_enum import ClientComplianceLevelEnum -from ..types.client_create_authentication_method import ClientCreateAuthenticationMethod -from ..types.client_default_organization import ClientDefaultOrganization -from ..types.client_encryption_key import ClientEncryptionKey -from ..types.client_jwt_configuration import ClientJwtConfiguration -from ..types.client_metadata import ClientMetadata -from ..types.client_mobile import ClientMobile -from ..types.client_my_organization_patch_configuration import ClientMyOrganizationPatchConfiguration -from ..types.client_my_organization_post_configuration import ClientMyOrganizationPostConfiguration -from ..types.client_oidc_backchannel_logout_settings import ClientOidcBackchannelLogoutSettings -from ..types.client_oidc_support_patch import ClientOidcSupportPatch -from ..types.client_oidc_support_post import ClientOidcSupportPost -from ..types.client_organization_discovery_enum import ClientOrganizationDiscoveryEnum -from ..types.client_organization_require_behavior_enum import ClientOrganizationRequireBehaviorEnum -from ..types.client_organization_require_behavior_patch_enum import ClientOrganizationRequireBehaviorPatchEnum -from ..types.client_organization_usage_enum import ClientOrganizationUsageEnum -from ..types.client_organization_usage_patch_enum import ClientOrganizationUsagePatchEnum -from ..types.client_redirection_policy_enum import ClientRedirectionPolicyEnum -from ..types.client_refresh_token_configuration import ClientRefreshTokenConfiguration -from ..types.client_search_response import ClientSearchResponse -from ..types.client_session_transfer_configuration import ClientSessionTransferConfiguration -from ..types.client_signed_request_object_with_credential_id import ClientSignedRequestObjectWithCredentialId -from ..types.client_signed_request_object_with_public_key import ClientSignedRequestObjectWithPublicKey -from ..types.client_sort_field_enum import ClientSortFieldEnum -from ..types.client_third_party_security_mode_enum import ClientThirdPartySecurityModeEnum -from ..types.client_token_endpoint_auth_method_enum import ClientTokenEndpointAuthMethodEnum -from ..types.client_token_endpoint_auth_method_or_null_enum import ClientTokenEndpointAuthMethodOrNullEnum -from ..types.client_token_exchange_configuration import ClientTokenExchangeConfiguration -from ..types.client_token_exchange_configuration_or_null import ClientTokenExchangeConfigurationOrNull -from ..types.client_token_vault_privileged_access_with_credential_id import ( - ClientTokenVaultPrivilegedAccessWithCredentialId, -) -from ..types.client_token_vault_privileged_access_with_public_key import ClientTokenVaultPrivilegedAccessWithPublicKey -from ..types.create_anonymous_sessions import CreateAnonymousSessions -from ..types.create_client_response_content import CreateClientResponseContent -from ..types.create_identity_assertion_authorization_grant import CreateIdentityAssertionAuthorizationGrant -from ..types.create_token_quota import CreateTokenQuota -from ..types.express_configuration import ExpressConfiguration -from ..types.express_configuration_or_null import ExpressConfigurationOrNull -from ..types.fed_cm_login import FedCmLogin -from ..types.fed_cm_login_patch import FedCmLoginPatch -from ..types.get_client_response_content import GetClientResponseContent -from ..types.google_account_linking_configuration_create import GoogleAccountLinkingConfigurationCreate -from ..types.google_account_linking_configuration_or_null import GoogleAccountLinkingConfigurationOrNull -from ..types.list_clients_offset_paginated_response_content import ListClientsOffsetPaginatedResponseContent -from ..types.native_social_login import NativeSocialLogin -from ..types.native_social_login_patch import NativeSocialLoginPatch -from ..types.preview_cimd_metadata_response_content import PreviewCimdMetadataResponseContent -from ..types.register_cimd_client_response_content import RegisterCimdClientResponseContent -from ..types.rotate_client_secret_response_content import RotateClientSecretResponseContent -from ..types.search_clients_response_content import SearchClientsResponseContent -from ..types.search_parser_enum import SearchParserEnum -from ..types.update_anonymous_sessions import UpdateAnonymousSessions -from ..types.update_client_response_content import UpdateClientResponseContent -from ..types.update_identity_assertion_authorization_grant import UpdateIdentityAssertionAuthorizationGrant -from ..types.update_token_quota import UpdateTokenQuota -from .raw_client import AsyncRawClientsClient, RawClientsClient - -if typing.TYPE_CHECKING: - from .connections.client import AsyncConnectionsClient, ConnectionsClient - from .credentials.client import AsyncCredentialsClient, CredentialsClient -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class ClientsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawClientsClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._credentials: typing.Optional[CredentialsClient] = None - self._connections: typing.Optional[ConnectionsClient] = None - - @property - def with_raw_response(self) -> RawClientsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawClientsClient - """ - return self._raw_client - - def list( - self, - *, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - include_totals: typing.Optional[bool] = True, - is_global: typing.Optional[bool] = None, - is_first_party: typing.Optional[bool] = None, - app_type: typing.Optional[str] = None, - external_client_id: typing.Optional[str] = None, - agent_id: typing.Optional[str] = None, - q: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[Client, ListClientsOffsetPaginatedResponseContent]: - """ - Retrieve clients (applications and SSO integrations) matching provided filters. A list of fields to include or exclude may also be specified. - For more information, read [Applications in Auth0](https://www.auth0.com/docs/get-started/applications) and [Single Sign-On](https://www.auth0.com/docs/authenticate/single-sign-on). - - - The following can be retrieved with any scope: - `client_id`, `app_type`, `name`, and `description`. - - The following properties can only be retrieved with the `read:clients` or - `read:client_keys` scope: - `callbacks`, `oidc_logout`, `allowed_origins`, - `web_origins`, `tenant`, `global`, `config_route`, - `callback_url_template`, `jwt_configuration`, - `jwt_configuration.lifetime_in_seconds`, `jwt_configuration.secret_encoded`, - `jwt_configuration.scopes`, `jwt_configuration.alg`, `api_type`, - `logo_uri`, `allowed_clients`, `owners`, `custom_login_page`, - `custom_login_page_on`, `sso`, `addons`, `form_template`, - `custom_login_page_codeview`, `resource_servers`, `client_metadata`, - `mobile`, `mobile.android`, `mobile.ios`, `allowed_logout_urls`, - `token_endpoint_auth_method`, `is_first_party`, `oidc_conformant`, - `is_token_endpoint_ip_header_trusted`, `initiate_login_uri`, `grant_types`, - `refresh_token`, `refresh_token.rotation_type`, `refresh_token.expiration_type`, - `refresh_token.leeway`, `refresh_token.token_lifetime`, `refresh_token.policies`, `organization_usage`, - `organization_require_behavior`. - - The following properties can only be retrieved with the - `read:client_keys` or `read:client_credentials` scope: - `encryption_key`, `encryption_key.pub`, `encryption_key.cert`, - `client_secret`, `client_authentication_methods` and `signing_key`. - - Parameters - ---------- - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). - - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. Default value is 50, maximum value is 100 - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - is_global : typing.Optional[bool] - Optional filter on the global client parameter. - - is_first_party : typing.Optional[bool] - Optional filter on whether or not a client is a first-party client. - - app_type : typing.Optional[str] - Optional filter by a comma-separated list of application types. - - external_client_id : typing.Optional[str] - Optional filter by the Client ID Metadata Document URI for CIMD-registered clients. - - agent_id : typing.Optional[str] - Optional filter by the agent associated with the client.
Additional Restrictions:
  • Cannot be used in combination with other filters
  • Only fields, include_fields, page, per_page, and include_totals are supported alongside it
  • Checkpoint pagination (from, take) is not supported
- - q : typing.Optional[str] - Advanced Query in Lucene syntax.
Permitted Queries:
  • client_grant.organization_id:{organization_id}
  • client_grant.allow_any_organization:true
Additional Restrictions:
  • Cannot be used in combination with other filters
  • Requires use of the from and take paging parameters (checkpoint paginatinon)
  • Reduced rate limits apply. See Rate Limit Configurations
Note: Recent updates may not be immediately reflected in query results - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[Client, ListClientsOffsetPaginatedResponseContent] - Clients successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.clients.list( - fields="fields", - include_fields=True, - page=1, - per_page=1, - include_totals=True, - is_global=True, - is_first_party=True, - app_type="app_type", - external_client_id="external_client_id", - agent_id="agent_id", - q="q", - ) - for item in response: - yield item - # alternatively, you can paginate page-by-page - for page in response.iter_pages(): - yield page - """ - return self._raw_client.list( - fields=fields, - include_fields=include_fields, - page=page, - per_page=per_page, - include_totals=include_totals, - is_global=is_global, - is_first_party=is_first_party, - app_type=app_type, - external_client_id=external_client_id, - agent_id=agent_id, - q=q, - request_options=request_options, - ) - - def create( - self, - *, - name: str, - description: typing.Optional[str] = OMIT, - logo_uri: typing.Optional[str] = OMIT, - callbacks: typing.Optional[typing.Sequence[str]] = OMIT, - oidc_logout: typing.Optional[ClientOidcBackchannelLogoutSettings] = OMIT, - oidc_backchannel_logout: typing.Optional[ClientOidcBackchannelLogoutSettings] = OMIT, - session_transfer: typing.Optional[ClientSessionTransferConfiguration] = OMIT, - allowed_origins: typing.Optional[typing.Sequence[str]] = OMIT, - web_origins: typing.Optional[typing.Sequence[str]] = OMIT, - client_aliases: typing.Optional[typing.Sequence[str]] = OMIT, - allowed_clients: typing.Optional[typing.Sequence[str]] = OMIT, - allowed_logout_urls: typing.Optional[typing.Sequence[str]] = OMIT, - grant_types: typing.Optional[typing.Sequence[str]] = OMIT, - token_endpoint_auth_method: typing.Optional[ClientTokenEndpointAuthMethodEnum] = OMIT, - is_token_endpoint_ip_header_trusted: typing.Optional[bool] = OMIT, - app_type: typing.Optional[ClientAppTypeEnum] = OMIT, - is_first_party: typing.Optional[bool] = OMIT, - oidc_conformant: typing.Optional[bool] = OMIT, - jwt_configuration: typing.Optional[ClientJwtConfiguration] = OMIT, - encryption_key: typing.Optional[ClientEncryptionKey] = OMIT, - sso: typing.Optional[bool] = OMIT, - cross_origin_authentication: typing.Optional[bool] = OMIT, - cross_origin_loc: typing.Optional[str] = OMIT, - sso_disabled: typing.Optional[bool] = OMIT, - custom_login_page_on: typing.Optional[bool] = OMIT, - custom_login_page: typing.Optional[str] = OMIT, - custom_login_page_preview: typing.Optional[str] = OMIT, - form_template: typing.Optional[str] = OMIT, - addons: typing.Optional[ClientAddons] = OMIT, - client_metadata: typing.Optional[ClientMetadata] = OMIT, - mobile: typing.Optional[ClientMobile] = OMIT, - initiate_login_uri: typing.Optional[str] = OMIT, - native_social_login: typing.Optional[NativeSocialLogin] = OMIT, - fedcm_login: typing.Optional[FedCmLogin] = OMIT, - refresh_token: typing.Optional[ClientRefreshTokenConfiguration] = OMIT, - default_organization: typing.Optional[ClientDefaultOrganization] = OMIT, - organization_usage: typing.Optional[ClientOrganizationUsageEnum] = OMIT, - organization_require_behavior: typing.Optional[ClientOrganizationRequireBehaviorEnum] = OMIT, - organization_discovery_methods: typing.Optional[typing.Sequence[ClientOrganizationDiscoveryEnum]] = OMIT, - client_authentication_methods: typing.Optional[ClientCreateAuthenticationMethod] = OMIT, - require_pushed_authorization_requests: typing.Optional[bool] = OMIT, - require_proof_of_possession: typing.Optional[bool] = OMIT, - signed_request_object: typing.Optional[ClientSignedRequestObjectWithPublicKey] = OMIT, - token_vault_privileged_access: typing.Optional[ClientTokenVaultPrivilegedAccessWithPublicKey] = OMIT, - compliance_level: typing.Optional[ClientComplianceLevelEnum] = OMIT, - skip_non_verifiable_callback_uri_confirmation_prompt: typing.Optional[bool] = OMIT, - token_exchange: typing.Optional[ClientTokenExchangeConfiguration] = OMIT, - par_request_expiry: typing.Optional[int] = OMIT, - token_quota: typing.Optional[CreateTokenQuota] = OMIT, - resource_server_identifier: typing.Optional[str] = OMIT, - identity_assertion_authorization_grant: typing.Optional[CreateIdentityAssertionAuthorizationGrant] = OMIT, - anonymous_sessions: typing.Optional[CreateAnonymousSessions] = OMIT, - enforce_anon_session_transfer_network_binding: typing.Optional[ - ClientAnonymousSessionTransferNetworkBindingEnum - ] = OMIT, - third_party_security_mode: typing.Optional[ClientThirdPartySecurityModeEnum] = OMIT, - redirection_policy: typing.Optional[ClientRedirectionPolicyEnum] = OMIT, - express_configuration: typing.Optional[ExpressConfiguration] = OMIT, - b_2_b_integration_configuration: typing.Optional[B2BIntegrationConfiguration] = OMIT, - my_organization_configuration: typing.Optional[ClientMyOrganizationPostConfiguration] = OMIT, - google_account_linking: typing.Optional[GoogleAccountLinkingConfigurationCreate] = OMIT, - async_approval_notification_channels: typing.Optional[ - ClientAsyncApprovalNotificationsChannelsApiPostConfiguration - ] = OMIT, - agent_id: typing.Optional[str] = OMIT, - oidc_support: typing.Optional[ClientOidcSupportPost] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateClientResponseContent: - """ - Create a new client (application or SSO integration). For more information, read [Create Applications](https://www.auth0.com/docs/get-started/auth0-overview/create-applications) - [API Endpoints for Single Sign-On](https://www.auth0.com/docs/authenticate/single-sign-on/api-endpoints-for-single-sign-on). - - Notes: - - We recommend leaving the `client_secret` parameter unspecified to allow the generation of a safe secret. - - The `client_authentication_methods` and `token_endpoint_auth_method` properties are mutually exclusive. Use - `client_authentication_methods` to configure the client with Private Key JWT authentication method. Otherwise, use `token_endpoint_auth_method` - to configure the client with client secret (basic or post) or with no authentication method (none). - - When using `client_authentication_methods` to configure the client with Private Key JWT authentication method, specify fully defined credentials. - These credentials will be automatically enabled for Private Key JWT authentication on the client. - - To configure `client_authentication_methods`, the `create:client_credentials` scope is required. - - To configure `client_authentication_methods`, the property `jwt_configuration.alg` must be set to RS256. - - SSO Integrations created via this endpoint will accept login requests and share user profile information. - - Parameters - ---------- - name : str - Name of this client (min length: 1 character, does not allow `<` or `>`). - - description : typing.Optional[str] - Free text description of this client (max length: 140 characters). - - logo_uri : typing.Optional[str] - URL of the logo to display for this client. Recommended size is 150x150 pixels. - - callbacks : typing.Optional[typing.Sequence[str]] - Comma-separated list of URLs whitelisted for Auth0 to use as a callback to the client after authentication. - - oidc_logout : typing.Optional[ClientOidcBackchannelLogoutSettings] - - oidc_backchannel_logout : typing.Optional[ClientOidcBackchannelLogoutSettings] - Configuration for OIDC backchannel logout (deprecated, in favor of oidc_logout) - - session_transfer : typing.Optional[ClientSessionTransferConfiguration] - - allowed_origins : typing.Optional[typing.Sequence[str]] - Comma-separated list of URLs allowed to make requests from JavaScript to Auth0 API (typically used with CORS). By default, all your callback URLs will be allowed. This field allows you to enter other origins if necessary. You can also use wildcards at the subdomain level (e.g., https://*.contoso.com). Query strings and hash information are not taken into account when validating these URLs. - - web_origins : typing.Optional[typing.Sequence[str]] - Comma-separated list of allowed origins for use with Cross-Origin Authentication, Device Flow, and web message response mode. - - client_aliases : typing.Optional[typing.Sequence[str]] - List of audiences/realms for SAML protocol. Used by the wsfed addon. - - allowed_clients : typing.Optional[typing.Sequence[str]] - List of allow clients and API ids that are allowed to make delegation requests. Empty means all all your clients are allowed. - - allowed_logout_urls : typing.Optional[typing.Sequence[str]] - Comma-separated list of URLs that are valid to redirect to after logout from Auth0. Wildcards are allowed for subdomains. - - grant_types : typing.Optional[typing.Sequence[str]] - List of grant types supported for this application. Can include `authorization_code`, `implicit`, `refresh_token`, `client_credentials`, `password`, `http://auth0.com/oauth/grant-type/password-realm`, `http://auth0.com/oauth/grant-type/mfa-oob`, `http://auth0.com/oauth/grant-type/mfa-otp`, `http://auth0.com/oauth/grant-type/mfa-recovery-code`, `urn:openid:params:grant-type:ciba`, `urn:ietf:params:oauth:grant-type:device_code`, and `urn:auth0:params:oauth:grant-type:token-exchange:federated-connection-access-token`. - - token_endpoint_auth_method : typing.Optional[ClientTokenEndpointAuthMethodEnum] - - is_token_endpoint_ip_header_trusted : typing.Optional[bool] - If true, trust that the IP specified in the `auth0-forwarded-for` header is the end-user's IP for brute-force-protection on token endpoint. - - app_type : typing.Optional[ClientAppTypeEnum] - - is_first_party : typing.Optional[bool] - Whether this client a first party client or not - - oidc_conformant : typing.Optional[bool] - Whether this client conforms to strict OIDC specifications (true) or uses legacy features (false). - - jwt_configuration : typing.Optional[ClientJwtConfiguration] - - encryption_key : typing.Optional[ClientEncryptionKey] - - sso : typing.Optional[bool] - Applies only to SSO clients and determines whether Auth0 will handle Single Sign On (true) or whether the Identity Provider will (false). - - cross_origin_authentication : typing.Optional[bool] - Whether this client can be used to make cross-origin authentication requests (true) or it is not allowed to make such requests (false). - - cross_origin_loc : typing.Optional[str] - URL of the location in your site where the cross origin verification takes place for the cross-origin auth flow when performing Auth in your own domain instead of Auth0 hosted login page. - - sso_disabled : typing.Optional[bool] - true to disable Single Sign On, false otherwise (default: false) - - custom_login_page_on : typing.Optional[bool] - true if the custom login page is to be used, false otherwise. Defaults to true - - custom_login_page : typing.Optional[str] - The content (HTML, CSS, JS) of the custom login page. - - custom_login_page_preview : typing.Optional[str] - The content (HTML, CSS, JS) of the custom login page. (Used on Previews) - - form_template : typing.Optional[str] - HTML form template to be used for WS-Federation. - - addons : typing.Optional[ClientAddons] - - client_metadata : typing.Optional[ClientMetadata] - - mobile : typing.Optional[ClientMobile] - - initiate_login_uri : typing.Optional[str] - Initiate login uri, must be https - - native_social_login : typing.Optional[NativeSocialLogin] - - fedcm_login : typing.Optional[FedCmLogin] - - refresh_token : typing.Optional[ClientRefreshTokenConfiguration] - - default_organization : typing.Optional[ClientDefaultOrganization] - - organization_usage : typing.Optional[ClientOrganizationUsageEnum] - - organization_require_behavior : typing.Optional[ClientOrganizationRequireBehaviorEnum] - - organization_discovery_methods : typing.Optional[typing.Sequence[ClientOrganizationDiscoveryEnum]] - Defines the available methods for organization discovery during the `pre_login_prompt`. Users can discover their organization either by `email`, `organization_name` or both. - - client_authentication_methods : typing.Optional[ClientCreateAuthenticationMethod] - - require_pushed_authorization_requests : typing.Optional[bool] - Makes the use of Pushed Authorization Requests mandatory for this client - - require_proof_of_possession : typing.Optional[bool] - Makes the use of Proof-of-Possession mandatory for this client - - signed_request_object : typing.Optional[ClientSignedRequestObjectWithPublicKey] - - token_vault_privileged_access : typing.Optional[ClientTokenVaultPrivilegedAccessWithPublicKey] - - compliance_level : typing.Optional[ClientComplianceLevelEnum] - - skip_non_verifiable_callback_uri_confirmation_prompt : typing.Optional[bool] - Controls whether a confirmation prompt is shown during login flows when the redirect URI uses non-verifiable callback URIs (for example, a custom URI schema such as `myapp://`, or `localhost`). - If set to true, a confirmation prompt will not be shown. We recommend that this is set to false for improved protection from malicious apps. - See https://auth0.com/docs/secure/security-guidance/measures-against-app-impersonation for more information. - - token_exchange : typing.Optional[ClientTokenExchangeConfiguration] - - par_request_expiry : typing.Optional[int] - Specifies how long, in seconds, a Pushed Authorization Request URI remains valid - - token_quota : typing.Optional[CreateTokenQuota] - - resource_server_identifier : typing.Optional[str] - The identifier of the resource server that this client is linked to. - - identity_assertion_authorization_grant : typing.Optional[CreateIdentityAssertionAuthorizationGrant] - - anonymous_sessions : typing.Optional[CreateAnonymousSessions] - - enforce_anon_session_transfer_network_binding : typing.Optional[ClientAnonymousSessionTransferNetworkBindingEnum] - - third_party_security_mode : typing.Optional[ClientThirdPartySecurityModeEnum] - - redirection_policy : typing.Optional[ClientRedirectionPolicyEnum] - - express_configuration : typing.Optional[ExpressConfiguration] - - b_2_b_integration_configuration : typing.Optional[B2BIntegrationConfiguration] - - my_organization_configuration : typing.Optional[ClientMyOrganizationPostConfiguration] - - google_account_linking : typing.Optional[GoogleAccountLinkingConfigurationCreate] - - async_approval_notification_channels : typing.Optional[ClientAsyncApprovalNotificationsChannelsApiPostConfiguration] - - agent_id : typing.Optional[str] - ID of the agent to associate with this client. - - oidc_support : typing.Optional[ClientOidcSupportPost] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateClientResponseContent - Client successfully created. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.clients.create( - name="name", - ) - """ - _response = self._raw_client.create( - name=name, - description=description, - logo_uri=logo_uri, - callbacks=callbacks, - oidc_logout=oidc_logout, - oidc_backchannel_logout=oidc_backchannel_logout, - session_transfer=session_transfer, - allowed_origins=allowed_origins, - web_origins=web_origins, - client_aliases=client_aliases, - allowed_clients=allowed_clients, - allowed_logout_urls=allowed_logout_urls, - grant_types=grant_types, - token_endpoint_auth_method=token_endpoint_auth_method, - is_token_endpoint_ip_header_trusted=is_token_endpoint_ip_header_trusted, - app_type=app_type, - is_first_party=is_first_party, - oidc_conformant=oidc_conformant, - jwt_configuration=jwt_configuration, - encryption_key=encryption_key, - sso=sso, - cross_origin_authentication=cross_origin_authentication, - cross_origin_loc=cross_origin_loc, - sso_disabled=sso_disabled, - custom_login_page_on=custom_login_page_on, - custom_login_page=custom_login_page, - custom_login_page_preview=custom_login_page_preview, - form_template=form_template, - addons=addons, - client_metadata=client_metadata, - mobile=mobile, - initiate_login_uri=initiate_login_uri, - native_social_login=native_social_login, - fedcm_login=fedcm_login, - refresh_token=refresh_token, - default_organization=default_organization, - organization_usage=organization_usage, - organization_require_behavior=organization_require_behavior, - organization_discovery_methods=organization_discovery_methods, - client_authentication_methods=client_authentication_methods, - require_pushed_authorization_requests=require_pushed_authorization_requests, - require_proof_of_possession=require_proof_of_possession, - signed_request_object=signed_request_object, - token_vault_privileged_access=token_vault_privileged_access, - compliance_level=compliance_level, - skip_non_verifiable_callback_uri_confirmation_prompt=skip_non_verifiable_callback_uri_confirmation_prompt, - token_exchange=token_exchange, - par_request_expiry=par_request_expiry, - token_quota=token_quota, - resource_server_identifier=resource_server_identifier, - identity_assertion_authorization_grant=identity_assertion_authorization_grant, - anonymous_sessions=anonymous_sessions, - enforce_anon_session_transfer_network_binding=enforce_anon_session_transfer_network_binding, - third_party_security_mode=third_party_security_mode, - redirection_policy=redirection_policy, - express_configuration=express_configuration, - b_2_b_integration_configuration=b_2_b_integration_configuration, - my_organization_configuration=my_organization_configuration, - google_account_linking=google_account_linking, - async_approval_notification_channels=async_approval_notification_channels, - agent_id=agent_id, - oidc_support=oidc_support, - request_options=request_options, - ) - return _response.data - - def preview_cimd_metadata( - self, *, external_client_id: str, request_options: typing.Optional[RequestOptions] = None - ) -> PreviewCimdMetadataResponseContent: - """ - - Fetches and validates a Client ID Metadata Document without creating a client. - Returns the raw metadata and how it would be mapped to Auth0 client fields. - This endpoint is useful for testing metadata URIs before creating CIMD clients. - - - Parameters - ---------- - external_client_id : str - URL to the Client ID Metadata Document - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PreviewCimdMetadataResponseContent - Metadata successfully fetched and validated, or retrieval error returned with errors array. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.clients.preview_cimd_metadata( - external_client_id="external_client_id", - ) - """ - _response = self._raw_client.preview_cimd_metadata( - external_client_id=external_client_id, request_options=request_options - ) - return _response.data - - def register_cimd_client( - self, *, external_client_id: str, request_options: typing.Optional[RequestOptions] = None - ) -> RegisterCimdClientResponseContent: - """ - Idempotent registration for Client ID Metadata Document (CIMD) clients. - Uses external_client_id as the unique identifier for upsert operations. - - **Create:** Returns 201 when a new client is created (requires `create:clients` scope). - **Update:** Returns 200 when an existing client is updated (requires `update:clients` scope). - - This endpoint automatically: - - Fetches and validates the metadata document - - Maps CIMD fields to Auth0 client configuration - - Creates/rotates credentials from the JWKS - - Enforces CIMD security policies (HTTPS-only, no shared secrets) - - Parameters - ---------- - external_client_id : str - URL to the Client ID Metadata Document. Acts as the unique identifier for upsert operations. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - RegisterCimdClientResponseContent - CIMD client successfully updated (idempotent). - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.clients.register_cimd_client( - external_client_id="external_client_id", - ) - """ - _response = self._raw_client.register_cimd_client( - external_client_id=external_client_id, request_options=request_options - ) - return _response.data - - def search( - self, - *, - q: typing.Optional[str] = None, - parser: typing.Optional[SearchParserEnum] = None, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - take: typing.Optional[int] = 50, - from_: typing.Optional[str] = None, - sort: typing.Optional[ClientSortFieldEnum] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[ClientSearchResponse, SearchClientsResponseContent]: - """ - Search clients using SCIM or Lucene filter syntax with low-latency, eventually consistent results. - Use the parser parameter to specify "scim" or "lucene" syntax (default: "lucene"). - This endpoint provides an alternative to the standard GET /clients endpoint with better performance - for complex queries. Results may not reflect recent updates immediately. - - - This endpoint only supports `read:clients` and `read:client_summary` scopes. The `read:client_keys` and `read:client_credentials` scopes are not supported. - - The following fields are never returned by this endpoint: - - `client_secret` - - `encryption_key` - - `signing_keys` - - `owners` - - `addons` - - Parameters - ---------- - q : typing.Optional[str] - Filter expression in SCIM or Lucene syntax (depending on parser parameter). SCIM examples: `name eq "Auth0"`, `name sw "auth" and app_type eq "spa"`. SCIM operators: eq, ne, sw, ew, co, pr, gt, ge, lt, le, and, or.

Supported Fields:
  • client_id - Auth0 client ID (case-sensitive, exact match)
  • external_client_id - URL of the Client ID Metadata Document (CIMD); case-sensitive, exact match
  • name - Client name (supports contains, starts-with, ends-with operators; sortable)
  • app_type - Application type (e.g. "spa", "native", "non_interactive")
  • is_first_party - Whether the client is first-party (boolean)
  • updated_at - Last update timestamp (supports date range operators; sortable)
  • metadata.{key} - Filter by client metadata key-value pairs (max 2-level key depth, values indexed up to 64 characters)
  • client_grant.organization_id - Filter by associated organization ID
  • client_grant.allow_any_organization - Filter by allow any organization setting
Maximum 5 filter operations per query. Results are eventually consistent and may not reflect recent updates. - - parser : typing.Optional[SearchParserEnum] - Query parser to use for the filter expression. Use "scim" for SCIM filter syntax or "lucene" for Lucene query syntax (default). - - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude in the response. Works with the include_fields parameter to control projection mode. Maximum 50 fields. - - include_fields : typing.Optional[bool] - Controls field projection mode. Set to true to include only fields specified in the fields parameter. Set to false to exclude fields specified in the fields parameter. Defaults to true if not specified. - - take : typing.Optional[int] - Maximum number of results to return per page (1-100). Defaults to 50. - - from_ : typing.Optional[str] - Cursor for the next page of results. Use the value from the next field in the previous response. - - sort : typing.Optional[ClientSortFieldEnum] - Field name to sort results by in ascending order. Defaults to insertion order (oldest first) if not provided. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[ClientSearchResponse, SearchClientsResponseContent] - Clients successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.clients.search( - q="q", - parser="scim", - fields="fields", - include_fields=True, - take=1, - from_="from", - sort="name", - ) - for item in response: - yield item - # alternatively, you can paginate page-by-page - for page in response.iter_pages(): - yield page - """ - return self._raw_client.search( - q=q, - parser=parser, - fields=fields, - include_fields=include_fields, - take=take, - from_=from_, - sort=sort, - request_options=request_options, - ) - - def get( - self, - id: str, - *, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> GetClientResponseContent: - """ - Retrieve client details by ID. Clients are SSO connections or Applications linked with your Auth0 tenant. A list of fields to include or exclude may also be specified. - For more information, read [Applications in Auth0](https://www.auth0.com/docs/get-started/applications) and [Single Sign-On](https://www.auth0.com/docs/authenticate/single-sign-on). - - - The following properties can be retrieved with any of the scopes: - `client_id`, `app_type`, `name`, and `description`. - - The following properties can only be retrieved with the `read:clients` or - `read:client_keys` scopes: - `callbacks`, `oidc_logout`, `allowed_origins`, - `web_origins`, `tenant`, `global`, `config_route`, - `callback_url_template`, `jwt_configuration`, - `jwt_configuration.lifetime_in_seconds`, `jwt_configuration.secret_encoded`, - `jwt_configuration.scopes`, `jwt_configuration.alg`, `api_type`, - `logo_uri`, `allowed_clients`, `owners`, `custom_login_page`, - `custom_login_page_on`, `sso`, `addons`, `form_template`, - `custom_login_page_codeview`, `resource_servers`, `client_metadata`, - `mobile`, `mobile.android`, `mobile.ios`, `allowed_logout_urls`, - `token_endpoint_auth_method`, `is_first_party`, `oidc_conformant`, - `is_token_endpoint_ip_header_trusted`, `initiate_login_uri`, `grant_types`, - `refresh_token`, `refresh_token.rotation_type`, `refresh_token.expiration_type`, - `refresh_token.leeway`, `refresh_token.token_lifetime`, `refresh_token.policies`, `organization_usage`, - `organization_require_behavior`. - - The following properties can only be retrieved with the `read:client_keys` or `read:client_credentials` scopes: - `encryption_key`, `encryption_key.pub`, `encryption_key.cert`, - `client_secret`, `client_authentication_methods` and `signing_key`. - - Parameters - ---------- - id : str - ID of the client to retrieve. - - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetClientResponseContent - Client successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.clients.get( - id="id", - fields="fields", - include_fields=True, - ) - """ - _response = self._raw_client.get( - id, fields=fields, include_fields=include_fields, request_options=request_options - ) - return _response.data - - def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete a client and related configuration (rules, connections, etc). - - Parameters - ---------- - id : str - ID of the client to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.clients.delete( - id="id", - ) - """ - _response = self._raw_client.delete(id, request_options=request_options) - return _response.data - - def update( - self, - id: str, - *, - name: typing.Optional[str] = OMIT, - description: typing.Optional[str] = OMIT, - client_secret: typing.Optional[str] = OMIT, - logo_uri: typing.Optional[str] = OMIT, - callbacks: typing.Optional[typing.Sequence[str]] = OMIT, - oidc_logout: typing.Optional[ClientOidcBackchannelLogoutSettings] = OMIT, - oidc_backchannel_logout: typing.Optional[ClientOidcBackchannelLogoutSettings] = OMIT, - session_transfer: typing.Optional[ClientSessionTransferConfiguration] = OMIT, - allowed_origins: typing.Optional[typing.Sequence[str]] = OMIT, - web_origins: typing.Optional[typing.Sequence[str]] = OMIT, - grant_types: typing.Optional[typing.Sequence[str]] = OMIT, - client_aliases: typing.Optional[typing.Sequence[str]] = OMIT, - allowed_clients: typing.Optional[typing.Sequence[str]] = OMIT, - allowed_logout_urls: typing.Optional[typing.Sequence[str]] = OMIT, - jwt_configuration: typing.Optional[ClientJwtConfiguration] = OMIT, - encryption_key: typing.Optional[ClientEncryptionKey] = OMIT, - sso: typing.Optional[bool] = OMIT, - cross_origin_authentication: typing.Optional[bool] = OMIT, - cross_origin_loc: typing.Optional[str] = OMIT, - sso_disabled: typing.Optional[bool] = OMIT, - custom_login_page_on: typing.Optional[bool] = OMIT, - token_endpoint_auth_method: typing.Optional[ClientTokenEndpointAuthMethodOrNullEnum] = OMIT, - is_token_endpoint_ip_header_trusted: typing.Optional[bool] = OMIT, - app_type: typing.Optional[ClientAppTypeEnum] = OMIT, - is_first_party: typing.Optional[bool] = OMIT, - oidc_conformant: typing.Optional[bool] = OMIT, - custom_login_page: typing.Optional[str] = OMIT, - custom_login_page_preview: typing.Optional[str] = OMIT, - token_quota: typing.Optional[UpdateTokenQuota] = OMIT, - identity_assertion_authorization_grant: typing.Optional[UpdateIdentityAssertionAuthorizationGrant] = OMIT, - anonymous_sessions: typing.Optional[UpdateAnonymousSessions] = OMIT, - enforce_anon_session_transfer_network_binding: typing.Optional[ - ClientAnonymousSessionTransferNetworkBindingEnum - ] = OMIT, - form_template: typing.Optional[str] = OMIT, - addons: typing.Optional[ClientAddons] = OMIT, - client_metadata: typing.Optional[ClientMetadata] = OMIT, - mobile: typing.Optional[ClientMobile] = OMIT, - initiate_login_uri: typing.Optional[str] = OMIT, - native_social_login: typing.Optional[NativeSocialLoginPatch] = OMIT, - fedcm_login: typing.Optional[FedCmLoginPatch] = OMIT, - refresh_token: typing.Optional[ClientRefreshTokenConfiguration] = OMIT, - default_organization: typing.Optional[ClientDefaultOrganization] = OMIT, - organization_usage: typing.Optional[ClientOrganizationUsagePatchEnum] = OMIT, - organization_require_behavior: typing.Optional[ClientOrganizationRequireBehaviorPatchEnum] = OMIT, - organization_discovery_methods: typing.Optional[typing.Sequence[ClientOrganizationDiscoveryEnum]] = OMIT, - client_authentication_methods: typing.Optional[ClientAuthenticationMethod] = OMIT, - require_pushed_authorization_requests: typing.Optional[bool] = OMIT, - require_proof_of_possession: typing.Optional[bool] = OMIT, - signed_request_object: typing.Optional[ClientSignedRequestObjectWithCredentialId] = OMIT, - token_vault_privileged_access: typing.Optional[ClientTokenVaultPrivilegedAccessWithCredentialId] = OMIT, - compliance_level: typing.Optional[ClientComplianceLevelEnum] = OMIT, - skip_non_verifiable_callback_uri_confirmation_prompt: typing.Optional[bool] = OMIT, - token_exchange: typing.Optional[ClientTokenExchangeConfigurationOrNull] = OMIT, - par_request_expiry: typing.Optional[int] = OMIT, - express_configuration: typing.Optional[ExpressConfigurationOrNull] = OMIT, - b_2_b_integration_configuration: typing.Optional[B2BIntegrationConfiguration] = OMIT, - my_organization_configuration: typing.Optional[ClientMyOrganizationPatchConfiguration] = OMIT, - google_account_linking: typing.Optional[GoogleAccountLinkingConfigurationOrNull] = OMIT, - async_approval_notification_channels: typing.Optional[ - ClientAsyncApprovalNotificationsChannelsApiPatchConfiguration - ] = OMIT, - third_party_security_mode: typing.Optional[ClientThirdPartySecurityModeEnum] = OMIT, - redirection_policy: typing.Optional[ClientRedirectionPolicyEnum] = OMIT, - agent_id: typing.Optional[str] = OMIT, - oidc_support: typing.Optional[ClientOidcSupportPatch] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateClientResponseContent: - """ - Updates a client's settings. For more information, read [Applications in Auth0](https://www.auth0.com/docs/get-started/applications) and [Single Sign-On](https://www.auth0.com/docs/authenticate/single-sign-on). - - Notes: - - The `client_secret` and `signing_key` attributes can only be updated with the `update:client_keys` scope. - - The `client_authentication_methods` and `token_endpoint_auth_method` properties are mutually exclusive. Use `client_authentication_methods` to configure the client with Private Key JWT authentication method. Otherwise, use `token_endpoint_auth_method` to configure the client with client secret (basic or post) or with no authentication method (none). - - When using `client_authentication_methods` to configure the client with Private Key JWT authentication method, only specify the credential IDs that were generated when creating the credentials on the client. - - To configure `client_authentication_methods`, the `update:client_credentials` scope is required. - - To configure `client_authentication_methods`, the property `jwt_configuration.alg` must be set to RS256. - - To change a client's `is_first_party` property to `false`, the `organization_usage` and `organization_require_behavior` properties must be unset. - - Parameters - ---------- - id : str - ID of the client to update. - - name : typing.Optional[str] - The name of the client. Must contain at least one character. Does not allow '<' or '>'. - - description : typing.Optional[str] - Free text description of the purpose of the Client. (Max character length: 140) - - client_secret : typing.Optional[str] - The secret used to sign tokens for the client - - logo_uri : typing.Optional[str] - The URL of the client logo (recommended size: 150x150) - - callbacks : typing.Optional[typing.Sequence[str]] - A set of URLs that are valid to call back from Auth0 when authenticating users - - oidc_logout : typing.Optional[ClientOidcBackchannelLogoutSettings] - - oidc_backchannel_logout : typing.Optional[ClientOidcBackchannelLogoutSettings] - Configuration for OIDC backchannel logout (deprecated, in favor of oidc_logout) - - session_transfer : typing.Optional[ClientSessionTransferConfiguration] - - allowed_origins : typing.Optional[typing.Sequence[str]] - A set of URLs that represents valid origins for CORS - - web_origins : typing.Optional[typing.Sequence[str]] - A set of URLs that represents valid web origins for use with web message response mode - - grant_types : typing.Optional[typing.Sequence[str]] - A set of grant types that the client is authorized to use. Can include `authorization_code`, `implicit`, `refresh_token`, `client_credentials`, `password`, `http://auth0.com/oauth/grant-type/password-realm`, `http://auth0.com/oauth/grant-type/mfa-oob`, `http://auth0.com/oauth/grant-type/mfa-otp`, `http://auth0.com/oauth/grant-type/mfa-recovery-code`, `urn:openid:params:grant-type:ciba`, `urn:ietf:params:oauth:grant-type:device_code`, and `urn:auth0:params:oauth:grant-type:token-exchange:federated-connection-access-token`. - - client_aliases : typing.Optional[typing.Sequence[str]] - List of audiences for SAML protocol - - allowed_clients : typing.Optional[typing.Sequence[str]] - Ids of clients that will be allowed to perform delegation requests. Clients that will be allowed to make delegation request. By default, all your clients will be allowed. This field allows you to specify specific clients - - allowed_logout_urls : typing.Optional[typing.Sequence[str]] - URLs that are valid to redirect to after logout from Auth0 - - jwt_configuration : typing.Optional[ClientJwtConfiguration] - An object that holds settings related to how JWTs are created - - encryption_key : typing.Optional[ClientEncryptionKey] - The client's encryption key - - sso : typing.Optional[bool] - true to use Auth0 instead of the IdP to do Single Sign On, false otherwise (default: false) - - cross_origin_authentication : typing.Optional[bool] - true if this client can be used to make cross-origin authentication requests, false otherwise if cross origin is disabled - - cross_origin_loc : typing.Optional[str] - URL for the location in your site where the cross origin verification takes place for the cross-origin auth flow when performing Auth in your own domain instead of Auth0 hosted login page. - - sso_disabled : typing.Optional[bool] - true to disable Single Sign On, false otherwise (default: false) - - custom_login_page_on : typing.Optional[bool] - true if the custom login page is to be used, false otherwise. - - token_endpoint_auth_method : typing.Optional[ClientTokenEndpointAuthMethodOrNullEnum] - - is_token_endpoint_ip_header_trusted : typing.Optional[bool] - If true, trust that the IP specified in the `auth0-forwarded-for` header is the end-user's IP for brute-force-protection on token endpoint. - - app_type : typing.Optional[ClientAppTypeEnum] - - is_first_party : typing.Optional[bool] - Whether this client a first party client or not - - oidc_conformant : typing.Optional[bool] - Whether this client will conform to strict OIDC specifications - - custom_login_page : typing.Optional[str] - The content (HTML, CSS, JS) of the custom login page - - custom_login_page_preview : typing.Optional[str] - - token_quota : typing.Optional[UpdateTokenQuota] - - identity_assertion_authorization_grant : typing.Optional[UpdateIdentityAssertionAuthorizationGrant] - - anonymous_sessions : typing.Optional[UpdateAnonymousSessions] - - enforce_anon_session_transfer_network_binding : typing.Optional[ClientAnonymousSessionTransferNetworkBindingEnum] - - form_template : typing.Optional[str] - Form template for WS-Federation protocol - - addons : typing.Optional[ClientAddons] - - client_metadata : typing.Optional[ClientMetadata] - - mobile : typing.Optional[ClientMobile] - Configuration related to native mobile apps - - initiate_login_uri : typing.Optional[str] - Initiate login uri, must be https - - native_social_login : typing.Optional[NativeSocialLoginPatch] - - fedcm_login : typing.Optional[FedCmLoginPatch] - - refresh_token : typing.Optional[ClientRefreshTokenConfiguration] - - default_organization : typing.Optional[ClientDefaultOrganization] - - organization_usage : typing.Optional[ClientOrganizationUsagePatchEnum] - - organization_require_behavior : typing.Optional[ClientOrganizationRequireBehaviorPatchEnum] - - organization_discovery_methods : typing.Optional[typing.Sequence[ClientOrganizationDiscoveryEnum]] - Defines the available methods for organization discovery during the `pre_login_prompt`. Users can discover their organization either by `email`, `organization_name` or both. - - client_authentication_methods : typing.Optional[ClientAuthenticationMethod] - - require_pushed_authorization_requests : typing.Optional[bool] - Makes the use of Pushed Authorization Requests mandatory for this client - - require_proof_of_possession : typing.Optional[bool] - Makes the use of Proof-of-Possession mandatory for this client - - signed_request_object : typing.Optional[ClientSignedRequestObjectWithCredentialId] - - token_vault_privileged_access : typing.Optional[ClientTokenVaultPrivilegedAccessWithCredentialId] - - compliance_level : typing.Optional[ClientComplianceLevelEnum] - - skip_non_verifiable_callback_uri_confirmation_prompt : typing.Optional[bool] - Controls whether a confirmation prompt is shown during login flows when the redirect URI uses non-verifiable callback URIs (for example, a custom URI schema such as `myapp://`, or `localhost`). - If set to true, a confirmation prompt will not be shown. We recommend that this is set to false for improved protection from malicious apps. - See https://auth0.com/docs/secure/security-guidance/measures-against-app-impersonation for more information. - - token_exchange : typing.Optional[ClientTokenExchangeConfigurationOrNull] - - par_request_expiry : typing.Optional[int] - Specifies how long, in seconds, a Pushed Authorization Request URI remains valid - - express_configuration : typing.Optional[ExpressConfigurationOrNull] - - b_2_b_integration_configuration : typing.Optional[B2BIntegrationConfiguration] - - my_organization_configuration : typing.Optional[ClientMyOrganizationPatchConfiguration] - - google_account_linking : typing.Optional[GoogleAccountLinkingConfigurationOrNull] - - async_approval_notification_channels : typing.Optional[ClientAsyncApprovalNotificationsChannelsApiPatchConfiguration] - - third_party_security_mode : typing.Optional[ClientThirdPartySecurityModeEnum] - - redirection_policy : typing.Optional[ClientRedirectionPolicyEnum] - - agent_id : typing.Optional[str] - ID of the agent to associate with this client, or null to remove the association. - - oidc_support : typing.Optional[ClientOidcSupportPatch] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateClientResponseContent - Client successfully updated. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.clients.update( - id="id", - ) - """ - _response = self._raw_client.update( - id, - name=name, - description=description, - client_secret=client_secret, - logo_uri=logo_uri, - callbacks=callbacks, - oidc_logout=oidc_logout, - oidc_backchannel_logout=oidc_backchannel_logout, - session_transfer=session_transfer, - allowed_origins=allowed_origins, - web_origins=web_origins, - grant_types=grant_types, - client_aliases=client_aliases, - allowed_clients=allowed_clients, - allowed_logout_urls=allowed_logout_urls, - jwt_configuration=jwt_configuration, - encryption_key=encryption_key, - sso=sso, - cross_origin_authentication=cross_origin_authentication, - cross_origin_loc=cross_origin_loc, - sso_disabled=sso_disabled, - custom_login_page_on=custom_login_page_on, - token_endpoint_auth_method=token_endpoint_auth_method, - is_token_endpoint_ip_header_trusted=is_token_endpoint_ip_header_trusted, - app_type=app_type, - is_first_party=is_first_party, - oidc_conformant=oidc_conformant, - custom_login_page=custom_login_page, - custom_login_page_preview=custom_login_page_preview, - token_quota=token_quota, - identity_assertion_authorization_grant=identity_assertion_authorization_grant, - anonymous_sessions=anonymous_sessions, - enforce_anon_session_transfer_network_binding=enforce_anon_session_transfer_network_binding, - form_template=form_template, - addons=addons, - client_metadata=client_metadata, - mobile=mobile, - initiate_login_uri=initiate_login_uri, - native_social_login=native_social_login, - fedcm_login=fedcm_login, - refresh_token=refresh_token, - default_organization=default_organization, - organization_usage=organization_usage, - organization_require_behavior=organization_require_behavior, - organization_discovery_methods=organization_discovery_methods, - client_authentication_methods=client_authentication_methods, - require_pushed_authorization_requests=require_pushed_authorization_requests, - require_proof_of_possession=require_proof_of_possession, - signed_request_object=signed_request_object, - token_vault_privileged_access=token_vault_privileged_access, - compliance_level=compliance_level, - skip_non_verifiable_callback_uri_confirmation_prompt=skip_non_verifiable_callback_uri_confirmation_prompt, - token_exchange=token_exchange, - par_request_expiry=par_request_expiry, - express_configuration=express_configuration, - b_2_b_integration_configuration=b_2_b_integration_configuration, - my_organization_configuration=my_organization_configuration, - google_account_linking=google_account_linking, - async_approval_notification_channels=async_approval_notification_channels, - third_party_security_mode=third_party_security_mode, - redirection_policy=redirection_policy, - agent_id=agent_id, - oidc_support=oidc_support, - request_options=request_options, - ) - return _response.data - - def rotate_secret( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> RotateClientSecretResponseContent: - """ - Rotate a client secret. - - This endpoint cannot be used with clients configured with Private Key JWT authentication method (client_authentication_methods configured with private_key_jwt). The generated secret is NOT base64 encoded. - - For more information, read [Rotate Client Secrets](https://www.auth0.com/docs/get-started/applications/rotate-client-secret). - - Parameters - ---------- - id : str - ID of the client that will rotate secrets. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - RotateClientSecretResponseContent - Secret successfully rotated. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.clients.rotate_secret( - id="id", - ) - """ - _response = self._raw_client.rotate_secret(id, request_options=request_options) - return _response.data - - @property - def credentials(self): - if self._credentials is None: - from .credentials.client import CredentialsClient # noqa: E402 - - self._credentials = CredentialsClient(client_wrapper=self._client_wrapper) - return self._credentials - - @property - def connections(self): - if self._connections is None: - from .connections.client import ConnectionsClient # noqa: E402 - - self._connections = ConnectionsClient(client_wrapper=self._client_wrapper) - return self._connections - - -class AsyncClientsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawClientsClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._credentials: typing.Optional[AsyncCredentialsClient] = None - self._connections: typing.Optional[AsyncConnectionsClient] = None - - @property - def with_raw_response(self) -> AsyncRawClientsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawClientsClient - """ - return self._raw_client - - async def list( - self, - *, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - include_totals: typing.Optional[bool] = True, - is_global: typing.Optional[bool] = None, - is_first_party: typing.Optional[bool] = None, - app_type: typing.Optional[str] = None, - external_client_id: typing.Optional[str] = None, - agent_id: typing.Optional[str] = None, - q: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[Client, ListClientsOffsetPaginatedResponseContent]: - """ - Retrieve clients (applications and SSO integrations) matching provided filters. A list of fields to include or exclude may also be specified. - For more information, read [Applications in Auth0](https://www.auth0.com/docs/get-started/applications) and [Single Sign-On](https://www.auth0.com/docs/authenticate/single-sign-on). - - - The following can be retrieved with any scope: - `client_id`, `app_type`, `name`, and `description`. - - The following properties can only be retrieved with the `read:clients` or - `read:client_keys` scope: - `callbacks`, `oidc_logout`, `allowed_origins`, - `web_origins`, `tenant`, `global`, `config_route`, - `callback_url_template`, `jwt_configuration`, - `jwt_configuration.lifetime_in_seconds`, `jwt_configuration.secret_encoded`, - `jwt_configuration.scopes`, `jwt_configuration.alg`, `api_type`, - `logo_uri`, `allowed_clients`, `owners`, `custom_login_page`, - `custom_login_page_on`, `sso`, `addons`, `form_template`, - `custom_login_page_codeview`, `resource_servers`, `client_metadata`, - `mobile`, `mobile.android`, `mobile.ios`, `allowed_logout_urls`, - `token_endpoint_auth_method`, `is_first_party`, `oidc_conformant`, - `is_token_endpoint_ip_header_trusted`, `initiate_login_uri`, `grant_types`, - `refresh_token`, `refresh_token.rotation_type`, `refresh_token.expiration_type`, - `refresh_token.leeway`, `refresh_token.token_lifetime`, `refresh_token.policies`, `organization_usage`, - `organization_require_behavior`. - - The following properties can only be retrieved with the - `read:client_keys` or `read:client_credentials` scope: - `encryption_key`, `encryption_key.pub`, `encryption_key.cert`, - `client_secret`, `client_authentication_methods` and `signing_key`. - - Parameters - ---------- - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). - - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. Default value is 50, maximum value is 100 - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - is_global : typing.Optional[bool] - Optional filter on the global client parameter. - - is_first_party : typing.Optional[bool] - Optional filter on whether or not a client is a first-party client. - - app_type : typing.Optional[str] - Optional filter by a comma-separated list of application types. - - external_client_id : typing.Optional[str] - Optional filter by the Client ID Metadata Document URI for CIMD-registered clients. - - agent_id : typing.Optional[str] - Optional filter by the agent associated with the client.
Additional Restrictions:
  • Cannot be used in combination with other filters
  • Only fields, include_fields, page, per_page, and include_totals are supported alongside it
  • Checkpoint pagination (from, take) is not supported
- - q : typing.Optional[str] - Advanced Query in Lucene syntax.
Permitted Queries:
  • client_grant.organization_id:{organization_id}
  • client_grant.allow_any_organization:true
Additional Restrictions:
  • Cannot be used in combination with other filters
  • Requires use of the from and take paging parameters (checkpoint paginatinon)
  • Reduced rate limits apply. See Rate Limit Configurations
Note: Recent updates may not be immediately reflected in query results - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[Client, ListClientsOffsetPaginatedResponseContent] - Clients successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.clients.list( - fields="fields", - include_fields=True, - page=1, - per_page=1, - include_totals=True, - is_global=True, - is_first_party=True, - app_type="app_type", - external_client_id="external_client_id", - agent_id="agent_id", - q="q", - ) - async for item in response: - yield item - - # alternatively, you can paginate page-by-page - async for page in response.iter_pages(): - yield page - - - asyncio.run(main()) - """ - return await self._raw_client.list( - fields=fields, - include_fields=include_fields, - page=page, - per_page=per_page, - include_totals=include_totals, - is_global=is_global, - is_first_party=is_first_party, - app_type=app_type, - external_client_id=external_client_id, - agent_id=agent_id, - q=q, - request_options=request_options, - ) - - async def create( - self, - *, - name: str, - description: typing.Optional[str] = OMIT, - logo_uri: typing.Optional[str] = OMIT, - callbacks: typing.Optional[typing.Sequence[str]] = OMIT, - oidc_logout: typing.Optional[ClientOidcBackchannelLogoutSettings] = OMIT, - oidc_backchannel_logout: typing.Optional[ClientOidcBackchannelLogoutSettings] = OMIT, - session_transfer: typing.Optional[ClientSessionTransferConfiguration] = OMIT, - allowed_origins: typing.Optional[typing.Sequence[str]] = OMIT, - web_origins: typing.Optional[typing.Sequence[str]] = OMIT, - client_aliases: typing.Optional[typing.Sequence[str]] = OMIT, - allowed_clients: typing.Optional[typing.Sequence[str]] = OMIT, - allowed_logout_urls: typing.Optional[typing.Sequence[str]] = OMIT, - grant_types: typing.Optional[typing.Sequence[str]] = OMIT, - token_endpoint_auth_method: typing.Optional[ClientTokenEndpointAuthMethodEnum] = OMIT, - is_token_endpoint_ip_header_trusted: typing.Optional[bool] = OMIT, - app_type: typing.Optional[ClientAppTypeEnum] = OMIT, - is_first_party: typing.Optional[bool] = OMIT, - oidc_conformant: typing.Optional[bool] = OMIT, - jwt_configuration: typing.Optional[ClientJwtConfiguration] = OMIT, - encryption_key: typing.Optional[ClientEncryptionKey] = OMIT, - sso: typing.Optional[bool] = OMIT, - cross_origin_authentication: typing.Optional[bool] = OMIT, - cross_origin_loc: typing.Optional[str] = OMIT, - sso_disabled: typing.Optional[bool] = OMIT, - custom_login_page_on: typing.Optional[bool] = OMIT, - custom_login_page: typing.Optional[str] = OMIT, - custom_login_page_preview: typing.Optional[str] = OMIT, - form_template: typing.Optional[str] = OMIT, - addons: typing.Optional[ClientAddons] = OMIT, - client_metadata: typing.Optional[ClientMetadata] = OMIT, - mobile: typing.Optional[ClientMobile] = OMIT, - initiate_login_uri: typing.Optional[str] = OMIT, - native_social_login: typing.Optional[NativeSocialLogin] = OMIT, - fedcm_login: typing.Optional[FedCmLogin] = OMIT, - refresh_token: typing.Optional[ClientRefreshTokenConfiguration] = OMIT, - default_organization: typing.Optional[ClientDefaultOrganization] = OMIT, - organization_usage: typing.Optional[ClientOrganizationUsageEnum] = OMIT, - organization_require_behavior: typing.Optional[ClientOrganizationRequireBehaviorEnum] = OMIT, - organization_discovery_methods: typing.Optional[typing.Sequence[ClientOrganizationDiscoveryEnum]] = OMIT, - client_authentication_methods: typing.Optional[ClientCreateAuthenticationMethod] = OMIT, - require_pushed_authorization_requests: typing.Optional[bool] = OMIT, - require_proof_of_possession: typing.Optional[bool] = OMIT, - signed_request_object: typing.Optional[ClientSignedRequestObjectWithPublicKey] = OMIT, - token_vault_privileged_access: typing.Optional[ClientTokenVaultPrivilegedAccessWithPublicKey] = OMIT, - compliance_level: typing.Optional[ClientComplianceLevelEnum] = OMIT, - skip_non_verifiable_callback_uri_confirmation_prompt: typing.Optional[bool] = OMIT, - token_exchange: typing.Optional[ClientTokenExchangeConfiguration] = OMIT, - par_request_expiry: typing.Optional[int] = OMIT, - token_quota: typing.Optional[CreateTokenQuota] = OMIT, - resource_server_identifier: typing.Optional[str] = OMIT, - identity_assertion_authorization_grant: typing.Optional[CreateIdentityAssertionAuthorizationGrant] = OMIT, - anonymous_sessions: typing.Optional[CreateAnonymousSessions] = OMIT, - enforce_anon_session_transfer_network_binding: typing.Optional[ - ClientAnonymousSessionTransferNetworkBindingEnum - ] = OMIT, - third_party_security_mode: typing.Optional[ClientThirdPartySecurityModeEnum] = OMIT, - redirection_policy: typing.Optional[ClientRedirectionPolicyEnum] = OMIT, - express_configuration: typing.Optional[ExpressConfiguration] = OMIT, - b_2_b_integration_configuration: typing.Optional[B2BIntegrationConfiguration] = OMIT, - my_organization_configuration: typing.Optional[ClientMyOrganizationPostConfiguration] = OMIT, - google_account_linking: typing.Optional[GoogleAccountLinkingConfigurationCreate] = OMIT, - async_approval_notification_channels: typing.Optional[ - ClientAsyncApprovalNotificationsChannelsApiPostConfiguration - ] = OMIT, - agent_id: typing.Optional[str] = OMIT, - oidc_support: typing.Optional[ClientOidcSupportPost] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateClientResponseContent: - """ - Create a new client (application or SSO integration). For more information, read [Create Applications](https://www.auth0.com/docs/get-started/auth0-overview/create-applications) - [API Endpoints for Single Sign-On](https://www.auth0.com/docs/authenticate/single-sign-on/api-endpoints-for-single-sign-on). - - Notes: - - We recommend leaving the `client_secret` parameter unspecified to allow the generation of a safe secret. - - The `client_authentication_methods` and `token_endpoint_auth_method` properties are mutually exclusive. Use - `client_authentication_methods` to configure the client with Private Key JWT authentication method. Otherwise, use `token_endpoint_auth_method` - to configure the client with client secret (basic or post) or with no authentication method (none). - - When using `client_authentication_methods` to configure the client with Private Key JWT authentication method, specify fully defined credentials. - These credentials will be automatically enabled for Private Key JWT authentication on the client. - - To configure `client_authentication_methods`, the `create:client_credentials` scope is required. - - To configure `client_authentication_methods`, the property `jwt_configuration.alg` must be set to RS256. - - SSO Integrations created via this endpoint will accept login requests and share user profile information. - - Parameters - ---------- - name : str - Name of this client (min length: 1 character, does not allow `<` or `>`). - - description : typing.Optional[str] - Free text description of this client (max length: 140 characters). - - logo_uri : typing.Optional[str] - URL of the logo to display for this client. Recommended size is 150x150 pixels. - - callbacks : typing.Optional[typing.Sequence[str]] - Comma-separated list of URLs whitelisted for Auth0 to use as a callback to the client after authentication. - - oidc_logout : typing.Optional[ClientOidcBackchannelLogoutSettings] - - oidc_backchannel_logout : typing.Optional[ClientOidcBackchannelLogoutSettings] - Configuration for OIDC backchannel logout (deprecated, in favor of oidc_logout) - - session_transfer : typing.Optional[ClientSessionTransferConfiguration] - - allowed_origins : typing.Optional[typing.Sequence[str]] - Comma-separated list of URLs allowed to make requests from JavaScript to Auth0 API (typically used with CORS). By default, all your callback URLs will be allowed. This field allows you to enter other origins if necessary. You can also use wildcards at the subdomain level (e.g., https://*.contoso.com). Query strings and hash information are not taken into account when validating these URLs. - - web_origins : typing.Optional[typing.Sequence[str]] - Comma-separated list of allowed origins for use with Cross-Origin Authentication, Device Flow, and web message response mode. - - client_aliases : typing.Optional[typing.Sequence[str]] - List of audiences/realms for SAML protocol. Used by the wsfed addon. - - allowed_clients : typing.Optional[typing.Sequence[str]] - List of allow clients and API ids that are allowed to make delegation requests. Empty means all all your clients are allowed. - - allowed_logout_urls : typing.Optional[typing.Sequence[str]] - Comma-separated list of URLs that are valid to redirect to after logout from Auth0. Wildcards are allowed for subdomains. - - grant_types : typing.Optional[typing.Sequence[str]] - List of grant types supported for this application. Can include `authorization_code`, `implicit`, `refresh_token`, `client_credentials`, `password`, `http://auth0.com/oauth/grant-type/password-realm`, `http://auth0.com/oauth/grant-type/mfa-oob`, `http://auth0.com/oauth/grant-type/mfa-otp`, `http://auth0.com/oauth/grant-type/mfa-recovery-code`, `urn:openid:params:grant-type:ciba`, `urn:ietf:params:oauth:grant-type:device_code`, and `urn:auth0:params:oauth:grant-type:token-exchange:federated-connection-access-token`. - - token_endpoint_auth_method : typing.Optional[ClientTokenEndpointAuthMethodEnum] - - is_token_endpoint_ip_header_trusted : typing.Optional[bool] - If true, trust that the IP specified in the `auth0-forwarded-for` header is the end-user's IP for brute-force-protection on token endpoint. - - app_type : typing.Optional[ClientAppTypeEnum] - - is_first_party : typing.Optional[bool] - Whether this client a first party client or not - - oidc_conformant : typing.Optional[bool] - Whether this client conforms to strict OIDC specifications (true) or uses legacy features (false). - - jwt_configuration : typing.Optional[ClientJwtConfiguration] - - encryption_key : typing.Optional[ClientEncryptionKey] - - sso : typing.Optional[bool] - Applies only to SSO clients and determines whether Auth0 will handle Single Sign On (true) or whether the Identity Provider will (false). - - cross_origin_authentication : typing.Optional[bool] - Whether this client can be used to make cross-origin authentication requests (true) or it is not allowed to make such requests (false). - - cross_origin_loc : typing.Optional[str] - URL of the location in your site where the cross origin verification takes place for the cross-origin auth flow when performing Auth in your own domain instead of Auth0 hosted login page. - - sso_disabled : typing.Optional[bool] - true to disable Single Sign On, false otherwise (default: false) - - custom_login_page_on : typing.Optional[bool] - true if the custom login page is to be used, false otherwise. Defaults to true - - custom_login_page : typing.Optional[str] - The content (HTML, CSS, JS) of the custom login page. - - custom_login_page_preview : typing.Optional[str] - The content (HTML, CSS, JS) of the custom login page. (Used on Previews) - - form_template : typing.Optional[str] - HTML form template to be used for WS-Federation. - - addons : typing.Optional[ClientAddons] - - client_metadata : typing.Optional[ClientMetadata] - - mobile : typing.Optional[ClientMobile] - - initiate_login_uri : typing.Optional[str] - Initiate login uri, must be https - - native_social_login : typing.Optional[NativeSocialLogin] - - fedcm_login : typing.Optional[FedCmLogin] - - refresh_token : typing.Optional[ClientRefreshTokenConfiguration] - - default_organization : typing.Optional[ClientDefaultOrganization] - - organization_usage : typing.Optional[ClientOrganizationUsageEnum] - - organization_require_behavior : typing.Optional[ClientOrganizationRequireBehaviorEnum] - - organization_discovery_methods : typing.Optional[typing.Sequence[ClientOrganizationDiscoveryEnum]] - Defines the available methods for organization discovery during the `pre_login_prompt`. Users can discover their organization either by `email`, `organization_name` or both. - - client_authentication_methods : typing.Optional[ClientCreateAuthenticationMethod] - - require_pushed_authorization_requests : typing.Optional[bool] - Makes the use of Pushed Authorization Requests mandatory for this client - - require_proof_of_possession : typing.Optional[bool] - Makes the use of Proof-of-Possession mandatory for this client - - signed_request_object : typing.Optional[ClientSignedRequestObjectWithPublicKey] - - token_vault_privileged_access : typing.Optional[ClientTokenVaultPrivilegedAccessWithPublicKey] - - compliance_level : typing.Optional[ClientComplianceLevelEnum] - - skip_non_verifiable_callback_uri_confirmation_prompt : typing.Optional[bool] - Controls whether a confirmation prompt is shown during login flows when the redirect URI uses non-verifiable callback URIs (for example, a custom URI schema such as `myapp://`, or `localhost`). - If set to true, a confirmation prompt will not be shown. We recommend that this is set to false for improved protection from malicious apps. - See https://auth0.com/docs/secure/security-guidance/measures-against-app-impersonation for more information. - - token_exchange : typing.Optional[ClientTokenExchangeConfiguration] - - par_request_expiry : typing.Optional[int] - Specifies how long, in seconds, a Pushed Authorization Request URI remains valid - - token_quota : typing.Optional[CreateTokenQuota] - - resource_server_identifier : typing.Optional[str] - The identifier of the resource server that this client is linked to. - - identity_assertion_authorization_grant : typing.Optional[CreateIdentityAssertionAuthorizationGrant] - - anonymous_sessions : typing.Optional[CreateAnonymousSessions] - - enforce_anon_session_transfer_network_binding : typing.Optional[ClientAnonymousSessionTransferNetworkBindingEnum] - - third_party_security_mode : typing.Optional[ClientThirdPartySecurityModeEnum] - - redirection_policy : typing.Optional[ClientRedirectionPolicyEnum] - - express_configuration : typing.Optional[ExpressConfiguration] - - b_2_b_integration_configuration : typing.Optional[B2BIntegrationConfiguration] - - my_organization_configuration : typing.Optional[ClientMyOrganizationPostConfiguration] - - google_account_linking : typing.Optional[GoogleAccountLinkingConfigurationCreate] - - async_approval_notification_channels : typing.Optional[ClientAsyncApprovalNotificationsChannelsApiPostConfiguration] - - agent_id : typing.Optional[str] - ID of the agent to associate with this client. - - oidc_support : typing.Optional[ClientOidcSupportPost] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateClientResponseContent - Client successfully created. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.clients.create( - name="name", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - name=name, - description=description, - logo_uri=logo_uri, - callbacks=callbacks, - oidc_logout=oidc_logout, - oidc_backchannel_logout=oidc_backchannel_logout, - session_transfer=session_transfer, - allowed_origins=allowed_origins, - web_origins=web_origins, - client_aliases=client_aliases, - allowed_clients=allowed_clients, - allowed_logout_urls=allowed_logout_urls, - grant_types=grant_types, - token_endpoint_auth_method=token_endpoint_auth_method, - is_token_endpoint_ip_header_trusted=is_token_endpoint_ip_header_trusted, - app_type=app_type, - is_first_party=is_first_party, - oidc_conformant=oidc_conformant, - jwt_configuration=jwt_configuration, - encryption_key=encryption_key, - sso=sso, - cross_origin_authentication=cross_origin_authentication, - cross_origin_loc=cross_origin_loc, - sso_disabled=sso_disabled, - custom_login_page_on=custom_login_page_on, - custom_login_page=custom_login_page, - custom_login_page_preview=custom_login_page_preview, - form_template=form_template, - addons=addons, - client_metadata=client_metadata, - mobile=mobile, - initiate_login_uri=initiate_login_uri, - native_social_login=native_social_login, - fedcm_login=fedcm_login, - refresh_token=refresh_token, - default_organization=default_organization, - organization_usage=organization_usage, - organization_require_behavior=organization_require_behavior, - organization_discovery_methods=organization_discovery_methods, - client_authentication_methods=client_authentication_methods, - require_pushed_authorization_requests=require_pushed_authorization_requests, - require_proof_of_possession=require_proof_of_possession, - signed_request_object=signed_request_object, - token_vault_privileged_access=token_vault_privileged_access, - compliance_level=compliance_level, - skip_non_verifiable_callback_uri_confirmation_prompt=skip_non_verifiable_callback_uri_confirmation_prompt, - token_exchange=token_exchange, - par_request_expiry=par_request_expiry, - token_quota=token_quota, - resource_server_identifier=resource_server_identifier, - identity_assertion_authorization_grant=identity_assertion_authorization_grant, - anonymous_sessions=anonymous_sessions, - enforce_anon_session_transfer_network_binding=enforce_anon_session_transfer_network_binding, - third_party_security_mode=third_party_security_mode, - redirection_policy=redirection_policy, - express_configuration=express_configuration, - b_2_b_integration_configuration=b_2_b_integration_configuration, - my_organization_configuration=my_organization_configuration, - google_account_linking=google_account_linking, - async_approval_notification_channels=async_approval_notification_channels, - agent_id=agent_id, - oidc_support=oidc_support, - request_options=request_options, - ) - return _response.data - - async def preview_cimd_metadata( - self, *, external_client_id: str, request_options: typing.Optional[RequestOptions] = None - ) -> PreviewCimdMetadataResponseContent: - """ - - Fetches and validates a Client ID Metadata Document without creating a client. - Returns the raw metadata and how it would be mapped to Auth0 client fields. - This endpoint is useful for testing metadata URIs before creating CIMD clients. - - - Parameters - ---------- - external_client_id : str - URL to the Client ID Metadata Document - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PreviewCimdMetadataResponseContent - Metadata successfully fetched and validated, or retrieval error returned with errors array. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.clients.preview_cimd_metadata( - external_client_id="external_client_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.preview_cimd_metadata( - external_client_id=external_client_id, request_options=request_options - ) - return _response.data - - async def register_cimd_client( - self, *, external_client_id: str, request_options: typing.Optional[RequestOptions] = None - ) -> RegisterCimdClientResponseContent: - """ - Idempotent registration for Client ID Metadata Document (CIMD) clients. - Uses external_client_id as the unique identifier for upsert operations. - - **Create:** Returns 201 when a new client is created (requires `create:clients` scope). - **Update:** Returns 200 when an existing client is updated (requires `update:clients` scope). - - This endpoint automatically: - - Fetches and validates the metadata document - - Maps CIMD fields to Auth0 client configuration - - Creates/rotates credentials from the JWKS - - Enforces CIMD security policies (HTTPS-only, no shared secrets) - - Parameters - ---------- - external_client_id : str - URL to the Client ID Metadata Document. Acts as the unique identifier for upsert operations. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - RegisterCimdClientResponseContent - CIMD client successfully updated (idempotent). - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.clients.register_cimd_client( - external_client_id="external_client_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.register_cimd_client( - external_client_id=external_client_id, request_options=request_options - ) - return _response.data - - async def search( - self, - *, - q: typing.Optional[str] = None, - parser: typing.Optional[SearchParserEnum] = None, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - take: typing.Optional[int] = 50, - from_: typing.Optional[str] = None, - sort: typing.Optional[ClientSortFieldEnum] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[ClientSearchResponse, SearchClientsResponseContent]: - """ - Search clients using SCIM or Lucene filter syntax with low-latency, eventually consistent results. - Use the parser parameter to specify "scim" or "lucene" syntax (default: "lucene"). - This endpoint provides an alternative to the standard GET /clients endpoint with better performance - for complex queries. Results may not reflect recent updates immediately. - - - This endpoint only supports `read:clients` and `read:client_summary` scopes. The `read:client_keys` and `read:client_credentials` scopes are not supported. - - The following fields are never returned by this endpoint: - - `client_secret` - - `encryption_key` - - `signing_keys` - - `owners` - - `addons` - - Parameters - ---------- - q : typing.Optional[str] - Filter expression in SCIM or Lucene syntax (depending on parser parameter). SCIM examples: `name eq "Auth0"`, `name sw "auth" and app_type eq "spa"`. SCIM operators: eq, ne, sw, ew, co, pr, gt, ge, lt, le, and, or.

Supported Fields:
  • client_id - Auth0 client ID (case-sensitive, exact match)
  • external_client_id - URL of the Client ID Metadata Document (CIMD); case-sensitive, exact match
  • name - Client name (supports contains, starts-with, ends-with operators; sortable)
  • app_type - Application type (e.g. "spa", "native", "non_interactive")
  • is_first_party - Whether the client is first-party (boolean)
  • updated_at - Last update timestamp (supports date range operators; sortable)
  • metadata.{key} - Filter by client metadata key-value pairs (max 2-level key depth, values indexed up to 64 characters)
  • client_grant.organization_id - Filter by associated organization ID
  • client_grant.allow_any_organization - Filter by allow any organization setting
Maximum 5 filter operations per query. Results are eventually consistent and may not reflect recent updates. - - parser : typing.Optional[SearchParserEnum] - Query parser to use for the filter expression. Use "scim" for SCIM filter syntax or "lucene" for Lucene query syntax (default). - - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude in the response. Works with the include_fields parameter to control projection mode. Maximum 50 fields. - - include_fields : typing.Optional[bool] - Controls field projection mode. Set to true to include only fields specified in the fields parameter. Set to false to exclude fields specified in the fields parameter. Defaults to true if not specified. - - take : typing.Optional[int] - Maximum number of results to return per page (1-100). Defaults to 50. - - from_ : typing.Optional[str] - Cursor for the next page of results. Use the value from the next field in the previous response. - - sort : typing.Optional[ClientSortFieldEnum] - Field name to sort results by in ascending order. Defaults to insertion order (oldest first) if not provided. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[ClientSearchResponse, SearchClientsResponseContent] - Clients successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.clients.search( - q="q", - parser="scim", - fields="fields", - include_fields=True, - take=1, - from_="from", - sort="name", - ) - async for item in response: - yield item - - # alternatively, you can paginate page-by-page - async for page in response.iter_pages(): - yield page - - - asyncio.run(main()) - """ - return await self._raw_client.search( - q=q, - parser=parser, - fields=fields, - include_fields=include_fields, - take=take, - from_=from_, - sort=sort, - request_options=request_options, - ) - - async def get( - self, - id: str, - *, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> GetClientResponseContent: - """ - Retrieve client details by ID. Clients are SSO connections or Applications linked with your Auth0 tenant. A list of fields to include or exclude may also be specified. - For more information, read [Applications in Auth0](https://www.auth0.com/docs/get-started/applications) and [Single Sign-On](https://www.auth0.com/docs/authenticate/single-sign-on). - - - The following properties can be retrieved with any of the scopes: - `client_id`, `app_type`, `name`, and `description`. - - The following properties can only be retrieved with the `read:clients` or - `read:client_keys` scopes: - `callbacks`, `oidc_logout`, `allowed_origins`, - `web_origins`, `tenant`, `global`, `config_route`, - `callback_url_template`, `jwt_configuration`, - `jwt_configuration.lifetime_in_seconds`, `jwt_configuration.secret_encoded`, - `jwt_configuration.scopes`, `jwt_configuration.alg`, `api_type`, - `logo_uri`, `allowed_clients`, `owners`, `custom_login_page`, - `custom_login_page_on`, `sso`, `addons`, `form_template`, - `custom_login_page_codeview`, `resource_servers`, `client_metadata`, - `mobile`, `mobile.android`, `mobile.ios`, `allowed_logout_urls`, - `token_endpoint_auth_method`, `is_first_party`, `oidc_conformant`, - `is_token_endpoint_ip_header_trusted`, `initiate_login_uri`, `grant_types`, - `refresh_token`, `refresh_token.rotation_type`, `refresh_token.expiration_type`, - `refresh_token.leeway`, `refresh_token.token_lifetime`, `refresh_token.policies`, `organization_usage`, - `organization_require_behavior`. - - The following properties can only be retrieved with the `read:client_keys` or `read:client_credentials` scopes: - `encryption_key`, `encryption_key.pub`, `encryption_key.cert`, - `client_secret`, `client_authentication_methods` and `signing_key`. - - Parameters - ---------- - id : str - ID of the client to retrieve. - - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetClientResponseContent - Client successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.clients.get( - id="id", - fields="fields", - include_fields=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.get( - id, fields=fields, include_fields=include_fields, request_options=request_options - ) - return _response.data - - async def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete a client and related configuration (rules, connections, etc). - - Parameters - ---------- - id : str - ID of the client to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.clients.delete( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete(id, request_options=request_options) - return _response.data - - async def update( - self, - id: str, - *, - name: typing.Optional[str] = OMIT, - description: typing.Optional[str] = OMIT, - client_secret: typing.Optional[str] = OMIT, - logo_uri: typing.Optional[str] = OMIT, - callbacks: typing.Optional[typing.Sequence[str]] = OMIT, - oidc_logout: typing.Optional[ClientOidcBackchannelLogoutSettings] = OMIT, - oidc_backchannel_logout: typing.Optional[ClientOidcBackchannelLogoutSettings] = OMIT, - session_transfer: typing.Optional[ClientSessionTransferConfiguration] = OMIT, - allowed_origins: typing.Optional[typing.Sequence[str]] = OMIT, - web_origins: typing.Optional[typing.Sequence[str]] = OMIT, - grant_types: typing.Optional[typing.Sequence[str]] = OMIT, - client_aliases: typing.Optional[typing.Sequence[str]] = OMIT, - allowed_clients: typing.Optional[typing.Sequence[str]] = OMIT, - allowed_logout_urls: typing.Optional[typing.Sequence[str]] = OMIT, - jwt_configuration: typing.Optional[ClientJwtConfiguration] = OMIT, - encryption_key: typing.Optional[ClientEncryptionKey] = OMIT, - sso: typing.Optional[bool] = OMIT, - cross_origin_authentication: typing.Optional[bool] = OMIT, - cross_origin_loc: typing.Optional[str] = OMIT, - sso_disabled: typing.Optional[bool] = OMIT, - custom_login_page_on: typing.Optional[bool] = OMIT, - token_endpoint_auth_method: typing.Optional[ClientTokenEndpointAuthMethodOrNullEnum] = OMIT, - is_token_endpoint_ip_header_trusted: typing.Optional[bool] = OMIT, - app_type: typing.Optional[ClientAppTypeEnum] = OMIT, - is_first_party: typing.Optional[bool] = OMIT, - oidc_conformant: typing.Optional[bool] = OMIT, - custom_login_page: typing.Optional[str] = OMIT, - custom_login_page_preview: typing.Optional[str] = OMIT, - token_quota: typing.Optional[UpdateTokenQuota] = OMIT, - identity_assertion_authorization_grant: typing.Optional[UpdateIdentityAssertionAuthorizationGrant] = OMIT, - anonymous_sessions: typing.Optional[UpdateAnonymousSessions] = OMIT, - enforce_anon_session_transfer_network_binding: typing.Optional[ - ClientAnonymousSessionTransferNetworkBindingEnum - ] = OMIT, - form_template: typing.Optional[str] = OMIT, - addons: typing.Optional[ClientAddons] = OMIT, - client_metadata: typing.Optional[ClientMetadata] = OMIT, - mobile: typing.Optional[ClientMobile] = OMIT, - initiate_login_uri: typing.Optional[str] = OMIT, - native_social_login: typing.Optional[NativeSocialLoginPatch] = OMIT, - fedcm_login: typing.Optional[FedCmLoginPatch] = OMIT, - refresh_token: typing.Optional[ClientRefreshTokenConfiguration] = OMIT, - default_organization: typing.Optional[ClientDefaultOrganization] = OMIT, - organization_usage: typing.Optional[ClientOrganizationUsagePatchEnum] = OMIT, - organization_require_behavior: typing.Optional[ClientOrganizationRequireBehaviorPatchEnum] = OMIT, - organization_discovery_methods: typing.Optional[typing.Sequence[ClientOrganizationDiscoveryEnum]] = OMIT, - client_authentication_methods: typing.Optional[ClientAuthenticationMethod] = OMIT, - require_pushed_authorization_requests: typing.Optional[bool] = OMIT, - require_proof_of_possession: typing.Optional[bool] = OMIT, - signed_request_object: typing.Optional[ClientSignedRequestObjectWithCredentialId] = OMIT, - token_vault_privileged_access: typing.Optional[ClientTokenVaultPrivilegedAccessWithCredentialId] = OMIT, - compliance_level: typing.Optional[ClientComplianceLevelEnum] = OMIT, - skip_non_verifiable_callback_uri_confirmation_prompt: typing.Optional[bool] = OMIT, - token_exchange: typing.Optional[ClientTokenExchangeConfigurationOrNull] = OMIT, - par_request_expiry: typing.Optional[int] = OMIT, - express_configuration: typing.Optional[ExpressConfigurationOrNull] = OMIT, - b_2_b_integration_configuration: typing.Optional[B2BIntegrationConfiguration] = OMIT, - my_organization_configuration: typing.Optional[ClientMyOrganizationPatchConfiguration] = OMIT, - google_account_linking: typing.Optional[GoogleAccountLinkingConfigurationOrNull] = OMIT, - async_approval_notification_channels: typing.Optional[ - ClientAsyncApprovalNotificationsChannelsApiPatchConfiguration - ] = OMIT, - third_party_security_mode: typing.Optional[ClientThirdPartySecurityModeEnum] = OMIT, - redirection_policy: typing.Optional[ClientRedirectionPolicyEnum] = OMIT, - agent_id: typing.Optional[str] = OMIT, - oidc_support: typing.Optional[ClientOidcSupportPatch] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateClientResponseContent: - """ - Updates a client's settings. For more information, read [Applications in Auth0](https://www.auth0.com/docs/get-started/applications) and [Single Sign-On](https://www.auth0.com/docs/authenticate/single-sign-on). - - Notes: - - The `client_secret` and `signing_key` attributes can only be updated with the `update:client_keys` scope. - - The `client_authentication_methods` and `token_endpoint_auth_method` properties are mutually exclusive. Use `client_authentication_methods` to configure the client with Private Key JWT authentication method. Otherwise, use `token_endpoint_auth_method` to configure the client with client secret (basic or post) or with no authentication method (none). - - When using `client_authentication_methods` to configure the client with Private Key JWT authentication method, only specify the credential IDs that were generated when creating the credentials on the client. - - To configure `client_authentication_methods`, the `update:client_credentials` scope is required. - - To configure `client_authentication_methods`, the property `jwt_configuration.alg` must be set to RS256. - - To change a client's `is_first_party` property to `false`, the `organization_usage` and `organization_require_behavior` properties must be unset. - - Parameters - ---------- - id : str - ID of the client to update. - - name : typing.Optional[str] - The name of the client. Must contain at least one character. Does not allow '<' or '>'. - - description : typing.Optional[str] - Free text description of the purpose of the Client. (Max character length: 140) - - client_secret : typing.Optional[str] - The secret used to sign tokens for the client - - logo_uri : typing.Optional[str] - The URL of the client logo (recommended size: 150x150) - - callbacks : typing.Optional[typing.Sequence[str]] - A set of URLs that are valid to call back from Auth0 when authenticating users - - oidc_logout : typing.Optional[ClientOidcBackchannelLogoutSettings] - - oidc_backchannel_logout : typing.Optional[ClientOidcBackchannelLogoutSettings] - Configuration for OIDC backchannel logout (deprecated, in favor of oidc_logout) - - session_transfer : typing.Optional[ClientSessionTransferConfiguration] - - allowed_origins : typing.Optional[typing.Sequence[str]] - A set of URLs that represents valid origins for CORS - - web_origins : typing.Optional[typing.Sequence[str]] - A set of URLs that represents valid web origins for use with web message response mode - - grant_types : typing.Optional[typing.Sequence[str]] - A set of grant types that the client is authorized to use. Can include `authorization_code`, `implicit`, `refresh_token`, `client_credentials`, `password`, `http://auth0.com/oauth/grant-type/password-realm`, `http://auth0.com/oauth/grant-type/mfa-oob`, `http://auth0.com/oauth/grant-type/mfa-otp`, `http://auth0.com/oauth/grant-type/mfa-recovery-code`, `urn:openid:params:grant-type:ciba`, `urn:ietf:params:oauth:grant-type:device_code`, and `urn:auth0:params:oauth:grant-type:token-exchange:federated-connection-access-token`. - - client_aliases : typing.Optional[typing.Sequence[str]] - List of audiences for SAML protocol - - allowed_clients : typing.Optional[typing.Sequence[str]] - Ids of clients that will be allowed to perform delegation requests. Clients that will be allowed to make delegation request. By default, all your clients will be allowed. This field allows you to specify specific clients - - allowed_logout_urls : typing.Optional[typing.Sequence[str]] - URLs that are valid to redirect to after logout from Auth0 - - jwt_configuration : typing.Optional[ClientJwtConfiguration] - An object that holds settings related to how JWTs are created - - encryption_key : typing.Optional[ClientEncryptionKey] - The client's encryption key - - sso : typing.Optional[bool] - true to use Auth0 instead of the IdP to do Single Sign On, false otherwise (default: false) - - cross_origin_authentication : typing.Optional[bool] - true if this client can be used to make cross-origin authentication requests, false otherwise if cross origin is disabled - - cross_origin_loc : typing.Optional[str] - URL for the location in your site where the cross origin verification takes place for the cross-origin auth flow when performing Auth in your own domain instead of Auth0 hosted login page. - - sso_disabled : typing.Optional[bool] - true to disable Single Sign On, false otherwise (default: false) - - custom_login_page_on : typing.Optional[bool] - true if the custom login page is to be used, false otherwise. - - token_endpoint_auth_method : typing.Optional[ClientTokenEndpointAuthMethodOrNullEnum] - - is_token_endpoint_ip_header_trusted : typing.Optional[bool] - If true, trust that the IP specified in the `auth0-forwarded-for` header is the end-user's IP for brute-force-protection on token endpoint. - - app_type : typing.Optional[ClientAppTypeEnum] - - is_first_party : typing.Optional[bool] - Whether this client a first party client or not - - oidc_conformant : typing.Optional[bool] - Whether this client will conform to strict OIDC specifications - - custom_login_page : typing.Optional[str] - The content (HTML, CSS, JS) of the custom login page - - custom_login_page_preview : typing.Optional[str] - - token_quota : typing.Optional[UpdateTokenQuota] - - identity_assertion_authorization_grant : typing.Optional[UpdateIdentityAssertionAuthorizationGrant] - - anonymous_sessions : typing.Optional[UpdateAnonymousSessions] - - enforce_anon_session_transfer_network_binding : typing.Optional[ClientAnonymousSessionTransferNetworkBindingEnum] - - form_template : typing.Optional[str] - Form template for WS-Federation protocol - - addons : typing.Optional[ClientAddons] - - client_metadata : typing.Optional[ClientMetadata] - - mobile : typing.Optional[ClientMobile] - Configuration related to native mobile apps - - initiate_login_uri : typing.Optional[str] - Initiate login uri, must be https - - native_social_login : typing.Optional[NativeSocialLoginPatch] - - fedcm_login : typing.Optional[FedCmLoginPatch] - - refresh_token : typing.Optional[ClientRefreshTokenConfiguration] - - default_organization : typing.Optional[ClientDefaultOrganization] - - organization_usage : typing.Optional[ClientOrganizationUsagePatchEnum] - - organization_require_behavior : typing.Optional[ClientOrganizationRequireBehaviorPatchEnum] - - organization_discovery_methods : typing.Optional[typing.Sequence[ClientOrganizationDiscoveryEnum]] - Defines the available methods for organization discovery during the `pre_login_prompt`. Users can discover their organization either by `email`, `organization_name` or both. - - client_authentication_methods : typing.Optional[ClientAuthenticationMethod] - - require_pushed_authorization_requests : typing.Optional[bool] - Makes the use of Pushed Authorization Requests mandatory for this client - - require_proof_of_possession : typing.Optional[bool] - Makes the use of Proof-of-Possession mandatory for this client - - signed_request_object : typing.Optional[ClientSignedRequestObjectWithCredentialId] - - token_vault_privileged_access : typing.Optional[ClientTokenVaultPrivilegedAccessWithCredentialId] - - compliance_level : typing.Optional[ClientComplianceLevelEnum] - - skip_non_verifiable_callback_uri_confirmation_prompt : typing.Optional[bool] - Controls whether a confirmation prompt is shown during login flows when the redirect URI uses non-verifiable callback URIs (for example, a custom URI schema such as `myapp://`, or `localhost`). - If set to true, a confirmation prompt will not be shown. We recommend that this is set to false for improved protection from malicious apps. - See https://auth0.com/docs/secure/security-guidance/measures-against-app-impersonation for more information. - - token_exchange : typing.Optional[ClientTokenExchangeConfigurationOrNull] - - par_request_expiry : typing.Optional[int] - Specifies how long, in seconds, a Pushed Authorization Request URI remains valid - - express_configuration : typing.Optional[ExpressConfigurationOrNull] - - b_2_b_integration_configuration : typing.Optional[B2BIntegrationConfiguration] - - my_organization_configuration : typing.Optional[ClientMyOrganizationPatchConfiguration] - - google_account_linking : typing.Optional[GoogleAccountLinkingConfigurationOrNull] - - async_approval_notification_channels : typing.Optional[ClientAsyncApprovalNotificationsChannelsApiPatchConfiguration] - - third_party_security_mode : typing.Optional[ClientThirdPartySecurityModeEnum] - - redirection_policy : typing.Optional[ClientRedirectionPolicyEnum] - - agent_id : typing.Optional[str] - ID of the agent to associate with this client, or null to remove the association. - - oidc_support : typing.Optional[ClientOidcSupportPatch] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateClientResponseContent - Client successfully updated. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.clients.update( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.update( - id, - name=name, - description=description, - client_secret=client_secret, - logo_uri=logo_uri, - callbacks=callbacks, - oidc_logout=oidc_logout, - oidc_backchannel_logout=oidc_backchannel_logout, - session_transfer=session_transfer, - allowed_origins=allowed_origins, - web_origins=web_origins, - grant_types=grant_types, - client_aliases=client_aliases, - allowed_clients=allowed_clients, - allowed_logout_urls=allowed_logout_urls, - jwt_configuration=jwt_configuration, - encryption_key=encryption_key, - sso=sso, - cross_origin_authentication=cross_origin_authentication, - cross_origin_loc=cross_origin_loc, - sso_disabled=sso_disabled, - custom_login_page_on=custom_login_page_on, - token_endpoint_auth_method=token_endpoint_auth_method, - is_token_endpoint_ip_header_trusted=is_token_endpoint_ip_header_trusted, - app_type=app_type, - is_first_party=is_first_party, - oidc_conformant=oidc_conformant, - custom_login_page=custom_login_page, - custom_login_page_preview=custom_login_page_preview, - token_quota=token_quota, - identity_assertion_authorization_grant=identity_assertion_authorization_grant, - anonymous_sessions=anonymous_sessions, - enforce_anon_session_transfer_network_binding=enforce_anon_session_transfer_network_binding, - form_template=form_template, - addons=addons, - client_metadata=client_metadata, - mobile=mobile, - initiate_login_uri=initiate_login_uri, - native_social_login=native_social_login, - fedcm_login=fedcm_login, - refresh_token=refresh_token, - default_organization=default_organization, - organization_usage=organization_usage, - organization_require_behavior=organization_require_behavior, - organization_discovery_methods=organization_discovery_methods, - client_authentication_methods=client_authentication_methods, - require_pushed_authorization_requests=require_pushed_authorization_requests, - require_proof_of_possession=require_proof_of_possession, - signed_request_object=signed_request_object, - token_vault_privileged_access=token_vault_privileged_access, - compliance_level=compliance_level, - skip_non_verifiable_callback_uri_confirmation_prompt=skip_non_verifiable_callback_uri_confirmation_prompt, - token_exchange=token_exchange, - par_request_expiry=par_request_expiry, - express_configuration=express_configuration, - b_2_b_integration_configuration=b_2_b_integration_configuration, - my_organization_configuration=my_organization_configuration, - google_account_linking=google_account_linking, - async_approval_notification_channels=async_approval_notification_channels, - third_party_security_mode=third_party_security_mode, - redirection_policy=redirection_policy, - agent_id=agent_id, - oidc_support=oidc_support, - request_options=request_options, - ) - return _response.data - - async def rotate_secret( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> RotateClientSecretResponseContent: - """ - Rotate a client secret. - - This endpoint cannot be used with clients configured with Private Key JWT authentication method (client_authentication_methods configured with private_key_jwt). The generated secret is NOT base64 encoded. - - For more information, read [Rotate Client Secrets](https://www.auth0.com/docs/get-started/applications/rotate-client-secret). - - Parameters - ---------- - id : str - ID of the client that will rotate secrets. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - RotateClientSecretResponseContent - Secret successfully rotated. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.clients.rotate_secret( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.rotate_secret(id, request_options=request_options) - return _response.data - - @property - def credentials(self): - if self._credentials is None: - from .credentials.client import AsyncCredentialsClient # noqa: E402 - - self._credentials = AsyncCredentialsClient(client_wrapper=self._client_wrapper) - return self._credentials - - @property - def connections(self): - if self._connections is None: - from .connections.client import AsyncConnectionsClient # noqa: E402 - - self._connections = AsyncConnectionsClient(client_wrapper=self._client_wrapper) - return self._connections diff --git a/src/auth0/management/clients/connections/__init__.py b/src/auth0/management/clients/connections/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/clients/connections/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/clients/connections/client.py b/src/auth0/management/clients/connections/client.py deleted file mode 100644 index 580abf11..00000000 --- a/src/auth0/management/clients/connections/client.py +++ /dev/null @@ -1,204 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.pagination import AsyncPager, SyncPager -from ...core.request_options import RequestOptions -from ...types.connection_for_list import ConnectionForList -from ...types.connection_strategy_enum import ConnectionStrategyEnum -from ...types.list_client_connections_response_content import ListClientConnectionsResponseContent -from .raw_client import AsyncRawConnectionsClient, RawConnectionsClient - - -class ConnectionsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawConnectionsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawConnectionsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawConnectionsClient - """ - return self._raw_client - - def get( - self, - id: str, - *, - strategy: typing.Optional[typing.Union[ConnectionStrategyEnum, typing.Sequence[ConnectionStrategyEnum]]] = None, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[ConnectionForList, ListClientConnectionsResponseContent]: - """ - Retrieve all connections that are enabled for the specified [Application](https://www.auth0.com/docs/get-started/applications), using checkpoint pagination. A list of fields to include or exclude for each connection may also be specified. - - - This endpoint requires the `read:connections` scope and any one of `read:clients` or `read:client_summary`. - - **Note**: The first time you call this endpoint, omit the `from` parameter. If there are more results, a `next` value is included in the response. You can use this for subsequent API calls. When `next` is no longer included in the response, no further results are remaining. - - Parameters - ---------- - id : str - ID of the client for which to retrieve enabled connections. - - strategy : typing.Optional[typing.Union[ConnectionStrategyEnum, typing.Sequence[ConnectionStrategyEnum]]] - Provide strategies to only retrieve connections with such strategies - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - fields : typing.Optional[str] - A comma separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields - - include_fields : typing.Optional[bool] - true if the fields specified are to be included in the result, false otherwise (defaults to true) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[ConnectionForList, ListClientConnectionsResponseContent] - Success - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.clients.connections.get( - id="id", - strategy=["ad"], - from_="from", - take=1, - fields="fields", - include_fields=True, - ) - for item in response: - yield item - # alternatively, you can paginate page-by-page - for page in response.iter_pages(): - yield page - """ - return self._raw_client.get( - id, - strategy=strategy, - from_=from_, - take=take, - fields=fields, - include_fields=include_fields, - request_options=request_options, - ) - - -class AsyncConnectionsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawConnectionsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawConnectionsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawConnectionsClient - """ - return self._raw_client - - async def get( - self, - id: str, - *, - strategy: typing.Optional[typing.Union[ConnectionStrategyEnum, typing.Sequence[ConnectionStrategyEnum]]] = None, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[ConnectionForList, ListClientConnectionsResponseContent]: - """ - Retrieve all connections that are enabled for the specified [Application](https://www.auth0.com/docs/get-started/applications), using checkpoint pagination. A list of fields to include or exclude for each connection may also be specified. - - - This endpoint requires the `read:connections` scope and any one of `read:clients` or `read:client_summary`. - - **Note**: The first time you call this endpoint, omit the `from` parameter. If there are more results, a `next` value is included in the response. You can use this for subsequent API calls. When `next` is no longer included in the response, no further results are remaining. - - Parameters - ---------- - id : str - ID of the client for which to retrieve enabled connections. - - strategy : typing.Optional[typing.Union[ConnectionStrategyEnum, typing.Sequence[ConnectionStrategyEnum]]] - Provide strategies to only retrieve connections with such strategies - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - fields : typing.Optional[str] - A comma separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields - - include_fields : typing.Optional[bool] - true if the fields specified are to be included in the result, false otherwise (defaults to true) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[ConnectionForList, ListClientConnectionsResponseContent] - Success - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.clients.connections.get( - id="id", - strategy=["ad"], - from_="from", - take=1, - fields="fields", - include_fields=True, - ) - async for item in response: - yield item - - # alternatively, you can paginate page-by-page - async for page in response.iter_pages(): - yield page - - - asyncio.run(main()) - """ - return await self._raw_client.get( - id, - strategy=strategy, - from_=from_, - take=take, - fields=fields, - include_fields=include_fields, - request_options=request_options, - ) diff --git a/src/auth0/management/clients/connections/raw_client.py b/src/auth0/management/clients/connections/raw_client.py deleted file mode 100644 index f74240e8..00000000 --- a/src/auth0/management/clients/connections/raw_client.py +++ /dev/null @@ -1,320 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ...core.api_error import ApiError -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.jsonable_encoder import quote_path_param -from ...core.pagination import AsyncPager, SyncPager -from ...core.parse_error import ParsingError -from ...core.pydantic_utilities import parse_obj_as -from ...core.request_options import RequestOptions -from ...errors.bad_request_error import BadRequestError -from ...errors.forbidden_error import ForbiddenError -from ...errors.not_found_error import NotFoundError -from ...errors.too_many_requests_error import TooManyRequestsError -from ...errors.unauthorized_error import UnauthorizedError -from ...types.connection_for_list import ConnectionForList -from ...types.connection_strategy_enum import ConnectionStrategyEnum -from ...types.list_client_connections_response_content import ListClientConnectionsResponseContent -from pydantic import ValidationError - - -class RawConnectionsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def get( - self, - id: str, - *, - strategy: typing.Optional[typing.Union[ConnectionStrategyEnum, typing.Sequence[ConnectionStrategyEnum]]] = None, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[ConnectionForList, ListClientConnectionsResponseContent]: - """ - Retrieve all connections that are enabled for the specified [Application](https://www.auth0.com/docs/get-started/applications), using checkpoint pagination. A list of fields to include or exclude for each connection may also be specified. - - - This endpoint requires the `read:connections` scope and any one of `read:clients` or `read:client_summary`. - - **Note**: The first time you call this endpoint, omit the `from` parameter. If there are more results, a `next` value is included in the response. You can use this for subsequent API calls. When `next` is no longer included in the response, no further results are remaining. - - Parameters - ---------- - id : str - ID of the client for which to retrieve enabled connections. - - strategy : typing.Optional[typing.Union[ConnectionStrategyEnum, typing.Sequence[ConnectionStrategyEnum]]] - Provide strategies to only retrieve connections with such strategies - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - fields : typing.Optional[str] - A comma separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields - - include_fields : typing.Optional[bool] - true if the fields specified are to be included in the result, false otherwise (defaults to true) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[ConnectionForList, ListClientConnectionsResponseContent] - Success - """ - _response = self._client_wrapper.httpx_client.request( - f"clients/{quote_path_param(id)}/connections", - method="GET", - params={ - "strategy": strategy, - "from": from_, - "take": take, - "fields": fields, - "include_fields": include_fields, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListClientConnectionsResponseContent, - parse_obj_as( - type_=ListClientConnectionsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.connections - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - _get_next = lambda: self.get( - id, - strategy=strategy, - from_=_parsed_next, - take=take, - fields=fields, - include_fields=include_fields, - request_options=request_options, - ) - return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawConnectionsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def get( - self, - id: str, - *, - strategy: typing.Optional[typing.Union[ConnectionStrategyEnum, typing.Sequence[ConnectionStrategyEnum]]] = None, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[ConnectionForList, ListClientConnectionsResponseContent]: - """ - Retrieve all connections that are enabled for the specified [Application](https://www.auth0.com/docs/get-started/applications), using checkpoint pagination. A list of fields to include or exclude for each connection may also be specified. - - - This endpoint requires the `read:connections` scope and any one of `read:clients` or `read:client_summary`. - - **Note**: The first time you call this endpoint, omit the `from` parameter. If there are more results, a `next` value is included in the response. You can use this for subsequent API calls. When `next` is no longer included in the response, no further results are remaining. - - Parameters - ---------- - id : str - ID of the client for which to retrieve enabled connections. - - strategy : typing.Optional[typing.Union[ConnectionStrategyEnum, typing.Sequence[ConnectionStrategyEnum]]] - Provide strategies to only retrieve connections with such strategies - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - fields : typing.Optional[str] - A comma separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields - - include_fields : typing.Optional[bool] - true if the fields specified are to be included in the result, false otherwise (defaults to true) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[ConnectionForList, ListClientConnectionsResponseContent] - Success - """ - _response = await self._client_wrapper.httpx_client.request( - f"clients/{quote_path_param(id)}/connections", - method="GET", - params={ - "strategy": strategy, - "from": from_, - "take": take, - "fields": fields, - "include_fields": include_fields, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListClientConnectionsResponseContent, - parse_obj_as( - type_=ListClientConnectionsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.connections - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - - async def _get_next(): - return await self.get( - id, - strategy=strategy, - from_=_parsed_next, - take=take, - fields=fields, - include_fields=include_fields, - request_options=request_options, - ) - - return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/clients/credentials/__init__.py b/src/auth0/management/clients/credentials/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/clients/credentials/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/clients/credentials/client.py b/src/auth0/management/clients/credentials/client.py deleted file mode 100644 index 9eb77c32..00000000 --- a/src/auth0/management/clients/credentials/client.py +++ /dev/null @@ -1,671 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.request_options import RequestOptions -from ...types.client_credential import ClientCredential -from ...types.client_credential_type_enum import ClientCredentialTypeEnum -from ...types.get_client_credential_response_content import GetClientCredentialResponseContent -from ...types.patch_client_credential_response_content import PatchClientCredentialResponseContent -from ...types.post_client_credential_response_content import PostClientCredentialResponseContent -from ...types.public_key_credential_algorithm_enum import PublicKeyCredentialAlgorithmEnum -from .raw_client import AsyncRawCredentialsClient, RawCredentialsClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class CredentialsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawCredentialsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawCredentialsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawCredentialsClient - """ - return self._raw_client - - def list( - self, client_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> typing.List[ClientCredential]: - """ - Get the details of a client credential. - - **Important**: To enable credentials to be used for a client authentication method, set the `client_authentication_methods` property on the client. To enable credentials to be used for JWT-Secured Authorization requests set the `signed_request_object` property on the client. - - Parameters - ---------- - client_id : str - ID of the client. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - typing.List[ClientCredential] - Credentials successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.clients.credentials.list( - client_id="client_id", - ) - """ - _response = self._raw_client.list(client_id, request_options=request_options) - return _response.data - - def create( - self, - client_id: str, - *, - credential_type: ClientCredentialTypeEnum, - name: typing.Optional[str] = OMIT, - subject_dn: typing.Optional[str] = OMIT, - pem: typing.Optional[str] = OMIT, - alg: typing.Optional[PublicKeyCredentialAlgorithmEnum] = OMIT, - parse_expiry_from_cert: typing.Optional[bool] = OMIT, - expires_at: typing.Optional[dt.datetime] = OMIT, - kid: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> PostClientCredentialResponseContent: - """ - Create a client credential associated to your application. Credentials can be used to configure Private Key JWT and mTLS authentication methods, as well as for JWT-secured Authorization requests. - - **Public Key** - - Public Key credentials can be used to set up Private Key JWT client authentication and JWT-secured Authorization requests. - - Sample: - - ```json - { - "credential_type": "public_key", - "name": "string", - "pem": "string", - "alg": "RS256", - "parse_expiry_from_cert": false, - "expires_at": "2022-12-31T23:59:59Z" - } - ``` - - **Certificate (CA-signed & self-signed)** - - Certificate credentials can be used to set up mTLS client authentication. CA-signed certificates can be configured either with a signed certificate or with just the certificate Subject DN. - - CA-signed Certificate Sample (pem): - - ```json - { - "credential_type": "x509_cert", - "name": "string", - "pem": "string" - } - ``` - - CA-signed Certificate Sample (subject_dn): - - ```json - { - "credential_type": "cert_subject_dn", - "name": "string", - "subject_dn": "string" - } - ``` - - Self-signed Certificate Sample: - - ```json - { - "credential_type": "cert_subject_dn", - "name": "string", - "pem": "string" - } - ``` - - The credential will be created but not yet enabled for use until you set the corresponding properties in the client: - - - To enable the credential for Private Key JWT or mTLS authentication methods, set the `client_authentication_methods` property on the client. For more information, read [Configure Private Key JWT Authentication](https://auth0.com/docs/get-started/applications/configure-private-key-jwt) and [Configure mTLS Authentication](https://auth0.com/docs/get-started/applications/configure-mtls) - - To enable the credential for JWT-secured Authorization requests, set the `signed_request_object`property on the client. For more information, read [Configure JWT-secured Authorization Requests (JAR)](https://auth0.com/docs/get-started/applications/configure-jar) - - Parameters - ---------- - client_id : str - ID of the client. - - credential_type : ClientCredentialTypeEnum - - name : typing.Optional[str] - Friendly name for a credential. - - subject_dn : typing.Optional[str] - Subject Distinguished Name. Mutually exclusive with `pem` property. Applies to `cert_subject_dn` credential type. - - pem : typing.Optional[str] - PEM-formatted public key (SPKI and PKCS1) or X509 certificate. Must be JSON escaped. - - alg : typing.Optional[PublicKeyCredentialAlgorithmEnum] - - parse_expiry_from_cert : typing.Optional[bool] - Parse expiry from x509 certificate. If true, attempts to parse the expiry date from the provided PEM. Applies to `public_key` credential type. - - expires_at : typing.Optional[dt.datetime] - The ISO 8601 formatted date representing the expiration of the credential. If not specified (not recommended), the credential never expires. Applies to `public_key` credential type. - - kid : typing.Optional[str] - Optional kid (Key ID), used to uniquely identify the credential. If not specified, a kid value will be auto-generated. The kid header parameter in JWTs sent by your client should match this value. Valid format is [0-9a-zA-Z-_]{10,64} - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PostClientCredentialResponseContent - Credential successfully created. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.clients.credentials.create( - client_id="client_id", - credential_type="public_key", - ) - """ - _response = self._raw_client.create( - client_id, - credential_type=credential_type, - name=name, - subject_dn=subject_dn, - pem=pem, - alg=alg, - parse_expiry_from_cert=parse_expiry_from_cert, - expires_at=expires_at, - kid=kid, - request_options=request_options, - ) - return _response.data - - def get( - self, client_id: str, credential_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetClientCredentialResponseContent: - """ - Get the details of a client credential. - - **Important**: To enable credentials to be used for a client authentication method, set the `client_authentication_methods` property on the client. To enable credentials to be used for JWT-Secured Authorization requests set the `signed_request_object` property on the client. - - Parameters - ---------- - client_id : str - ID of the client. - - credential_id : str - ID of the credential. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetClientCredentialResponseContent - Credential successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.clients.credentials.get( - client_id="client_id", - credential_id="credential_id", - ) - """ - _response = self._raw_client.get(client_id, credential_id, request_options=request_options) - return _response.data - - def delete( - self, client_id: str, credential_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> None: - """ - Delete a client credential you previously created. May be enabled or disabled. For more information, read Client Credential Flow. - - Parameters - ---------- - client_id : str - ID of the client. - - credential_id : str - ID of the credential to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.clients.credentials.delete( - client_id="client_id", - credential_id="credential_id", - ) - """ - _response = self._raw_client.delete(client_id, credential_id, request_options=request_options) - return _response.data - - def update( - self, - client_id: str, - credential_id: str, - *, - expires_at: typing.Optional[dt.datetime] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> PatchClientCredentialResponseContent: - """ - Change a client credential you previously created. May be enabled or disabled. For more information, read Client Credential Flow. - - Parameters - ---------- - client_id : str - ID of the client. - - credential_id : str - ID of the credential. - - expires_at : typing.Optional[dt.datetime] - The ISO 8601 formatted date representing the expiration of the credential. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PatchClientCredentialResponseContent - Credential successfully updated. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.clients.credentials.update( - client_id="client_id", - credential_id="credential_id", - ) - """ - _response = self._raw_client.update( - client_id, credential_id, expires_at=expires_at, request_options=request_options - ) - return _response.data - - -class AsyncCredentialsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawCredentialsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawCredentialsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawCredentialsClient - """ - return self._raw_client - - async def list( - self, client_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> typing.List[ClientCredential]: - """ - Get the details of a client credential. - - **Important**: To enable credentials to be used for a client authentication method, set the `client_authentication_methods` property on the client. To enable credentials to be used for JWT-Secured Authorization requests set the `signed_request_object` property on the client. - - Parameters - ---------- - client_id : str - ID of the client. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - typing.List[ClientCredential] - Credentials successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.clients.credentials.list( - client_id="client_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list(client_id, request_options=request_options) - return _response.data - - async def create( - self, - client_id: str, - *, - credential_type: ClientCredentialTypeEnum, - name: typing.Optional[str] = OMIT, - subject_dn: typing.Optional[str] = OMIT, - pem: typing.Optional[str] = OMIT, - alg: typing.Optional[PublicKeyCredentialAlgorithmEnum] = OMIT, - parse_expiry_from_cert: typing.Optional[bool] = OMIT, - expires_at: typing.Optional[dt.datetime] = OMIT, - kid: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> PostClientCredentialResponseContent: - """ - Create a client credential associated to your application. Credentials can be used to configure Private Key JWT and mTLS authentication methods, as well as for JWT-secured Authorization requests. - - **Public Key** - - Public Key credentials can be used to set up Private Key JWT client authentication and JWT-secured Authorization requests. - - Sample: - - ```json - { - "credential_type": "public_key", - "name": "string", - "pem": "string", - "alg": "RS256", - "parse_expiry_from_cert": false, - "expires_at": "2022-12-31T23:59:59Z" - } - ``` - - **Certificate (CA-signed & self-signed)** - - Certificate credentials can be used to set up mTLS client authentication. CA-signed certificates can be configured either with a signed certificate or with just the certificate Subject DN. - - CA-signed Certificate Sample (pem): - - ```json - { - "credential_type": "x509_cert", - "name": "string", - "pem": "string" - } - ``` - - CA-signed Certificate Sample (subject_dn): - - ```json - { - "credential_type": "cert_subject_dn", - "name": "string", - "subject_dn": "string" - } - ``` - - Self-signed Certificate Sample: - - ```json - { - "credential_type": "cert_subject_dn", - "name": "string", - "pem": "string" - } - ``` - - The credential will be created but not yet enabled for use until you set the corresponding properties in the client: - - - To enable the credential for Private Key JWT or mTLS authentication methods, set the `client_authentication_methods` property on the client. For more information, read [Configure Private Key JWT Authentication](https://auth0.com/docs/get-started/applications/configure-private-key-jwt) and [Configure mTLS Authentication](https://auth0.com/docs/get-started/applications/configure-mtls) - - To enable the credential for JWT-secured Authorization requests, set the `signed_request_object`property on the client. For more information, read [Configure JWT-secured Authorization Requests (JAR)](https://auth0.com/docs/get-started/applications/configure-jar) - - Parameters - ---------- - client_id : str - ID of the client. - - credential_type : ClientCredentialTypeEnum - - name : typing.Optional[str] - Friendly name for a credential. - - subject_dn : typing.Optional[str] - Subject Distinguished Name. Mutually exclusive with `pem` property. Applies to `cert_subject_dn` credential type. - - pem : typing.Optional[str] - PEM-formatted public key (SPKI and PKCS1) or X509 certificate. Must be JSON escaped. - - alg : typing.Optional[PublicKeyCredentialAlgorithmEnum] - - parse_expiry_from_cert : typing.Optional[bool] - Parse expiry from x509 certificate. If true, attempts to parse the expiry date from the provided PEM. Applies to `public_key` credential type. - - expires_at : typing.Optional[dt.datetime] - The ISO 8601 formatted date representing the expiration of the credential. If not specified (not recommended), the credential never expires. Applies to `public_key` credential type. - - kid : typing.Optional[str] - Optional kid (Key ID), used to uniquely identify the credential. If not specified, a kid value will be auto-generated. The kid header parameter in JWTs sent by your client should match this value. Valid format is [0-9a-zA-Z-_]{10,64} - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PostClientCredentialResponseContent - Credential successfully created. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.clients.credentials.create( - client_id="client_id", - credential_type="public_key", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - client_id, - credential_type=credential_type, - name=name, - subject_dn=subject_dn, - pem=pem, - alg=alg, - parse_expiry_from_cert=parse_expiry_from_cert, - expires_at=expires_at, - kid=kid, - request_options=request_options, - ) - return _response.data - - async def get( - self, client_id: str, credential_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetClientCredentialResponseContent: - """ - Get the details of a client credential. - - **Important**: To enable credentials to be used for a client authentication method, set the `client_authentication_methods` property on the client. To enable credentials to be used for JWT-Secured Authorization requests set the `signed_request_object` property on the client. - - Parameters - ---------- - client_id : str - ID of the client. - - credential_id : str - ID of the credential. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetClientCredentialResponseContent - Credential successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.clients.credentials.get( - client_id="client_id", - credential_id="credential_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.get(client_id, credential_id, request_options=request_options) - return _response.data - - async def delete( - self, client_id: str, credential_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> None: - """ - Delete a client credential you previously created. May be enabled or disabled. For more information, read Client Credential Flow. - - Parameters - ---------- - client_id : str - ID of the client. - - credential_id : str - ID of the credential to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.clients.credentials.delete( - client_id="client_id", - credential_id="credential_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete(client_id, credential_id, request_options=request_options) - return _response.data - - async def update( - self, - client_id: str, - credential_id: str, - *, - expires_at: typing.Optional[dt.datetime] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> PatchClientCredentialResponseContent: - """ - Change a client credential you previously created. May be enabled or disabled. For more information, read Client Credential Flow. - - Parameters - ---------- - client_id : str - ID of the client. - - credential_id : str - ID of the credential. - - expires_at : typing.Optional[dt.datetime] - The ISO 8601 formatted date representing the expiration of the credential. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PatchClientCredentialResponseContent - Credential successfully updated. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.clients.credentials.update( - client_id="client_id", - credential_id="credential_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.update( - client_id, credential_id, expires_at=expires_at, request_options=request_options - ) - return _response.data diff --git a/src/auth0/management/clients/credentials/raw_client.py b/src/auth0/management/clients/credentials/raw_client.py deleted file mode 100644 index bc41108b..00000000 --- a/src/auth0/management/clients/credentials/raw_client.py +++ /dev/null @@ -1,1198 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from ...core.api_error import ApiError -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.http_response import AsyncHttpResponse, HttpResponse -from ...core.jsonable_encoder import quote_path_param -from ...core.parse_error import ParsingError -from ...core.pydantic_utilities import parse_obj_as -from ...core.request_options import RequestOptions -from ...errors.bad_request_error import BadRequestError -from ...errors.forbidden_error import ForbiddenError -from ...errors.not_found_error import NotFoundError -from ...errors.too_many_requests_error import TooManyRequestsError -from ...errors.unauthorized_error import UnauthorizedError -from ...types.client_credential import ClientCredential -from ...types.client_credential_type_enum import ClientCredentialTypeEnum -from ...types.get_client_credential_response_content import GetClientCredentialResponseContent -from ...types.patch_client_credential_response_content import PatchClientCredentialResponseContent -from ...types.post_client_credential_response_content import PostClientCredentialResponseContent -from ...types.public_key_credential_algorithm_enum import PublicKeyCredentialAlgorithmEnum -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawCredentialsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, client_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[typing.List[ClientCredential]]: - """ - Get the details of a client credential. - - **Important**: To enable credentials to be used for a client authentication method, set the `client_authentication_methods` property on the client. To enable credentials to be used for JWT-Secured Authorization requests set the `signed_request_object` property on the client. - - Parameters - ---------- - client_id : str - ID of the client. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[typing.List[ClientCredential]] - Credentials successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - f"clients/{quote_path_param(client_id)}/credentials", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - typing.List[ClientCredential], - parse_obj_as( - type_=typing.List[ClientCredential], # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - client_id: str, - *, - credential_type: ClientCredentialTypeEnum, - name: typing.Optional[str] = OMIT, - subject_dn: typing.Optional[str] = OMIT, - pem: typing.Optional[str] = OMIT, - alg: typing.Optional[PublicKeyCredentialAlgorithmEnum] = OMIT, - parse_expiry_from_cert: typing.Optional[bool] = OMIT, - expires_at: typing.Optional[dt.datetime] = OMIT, - kid: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PostClientCredentialResponseContent]: - """ - Create a client credential associated to your application. Credentials can be used to configure Private Key JWT and mTLS authentication methods, as well as for JWT-secured Authorization requests. - - **Public Key** - - Public Key credentials can be used to set up Private Key JWT client authentication and JWT-secured Authorization requests. - - Sample: - - ```json - { - "credential_type": "public_key", - "name": "string", - "pem": "string", - "alg": "RS256", - "parse_expiry_from_cert": false, - "expires_at": "2022-12-31T23:59:59Z" - } - ``` - - **Certificate (CA-signed & self-signed)** - - Certificate credentials can be used to set up mTLS client authentication. CA-signed certificates can be configured either with a signed certificate or with just the certificate Subject DN. - - CA-signed Certificate Sample (pem): - - ```json - { - "credential_type": "x509_cert", - "name": "string", - "pem": "string" - } - ``` - - CA-signed Certificate Sample (subject_dn): - - ```json - { - "credential_type": "cert_subject_dn", - "name": "string", - "subject_dn": "string" - } - ``` - - Self-signed Certificate Sample: - - ```json - { - "credential_type": "cert_subject_dn", - "name": "string", - "pem": "string" - } - ``` - - The credential will be created but not yet enabled for use until you set the corresponding properties in the client: - - - To enable the credential for Private Key JWT or mTLS authentication methods, set the `client_authentication_methods` property on the client. For more information, read [Configure Private Key JWT Authentication](https://auth0.com/docs/get-started/applications/configure-private-key-jwt) and [Configure mTLS Authentication](https://auth0.com/docs/get-started/applications/configure-mtls) - - To enable the credential for JWT-secured Authorization requests, set the `signed_request_object`property on the client. For more information, read [Configure JWT-secured Authorization Requests (JAR)](https://auth0.com/docs/get-started/applications/configure-jar) - - Parameters - ---------- - client_id : str - ID of the client. - - credential_type : ClientCredentialTypeEnum - - name : typing.Optional[str] - Friendly name for a credential. - - subject_dn : typing.Optional[str] - Subject Distinguished Name. Mutually exclusive with `pem` property. Applies to `cert_subject_dn` credential type. - - pem : typing.Optional[str] - PEM-formatted public key (SPKI and PKCS1) or X509 certificate. Must be JSON escaped. - - alg : typing.Optional[PublicKeyCredentialAlgorithmEnum] - - parse_expiry_from_cert : typing.Optional[bool] - Parse expiry from x509 certificate. If true, attempts to parse the expiry date from the provided PEM. Applies to `public_key` credential type. - - expires_at : typing.Optional[dt.datetime] - The ISO 8601 formatted date representing the expiration of the credential. If not specified (not recommended), the credential never expires. Applies to `public_key` credential type. - - kid : typing.Optional[str] - Optional kid (Key ID), used to uniquely identify the credential. If not specified, a kid value will be auto-generated. The kid header parameter in JWTs sent by your client should match this value. Valid format is [0-9a-zA-Z-_]{10,64} - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PostClientCredentialResponseContent] - Credential successfully created. - """ - _response = self._client_wrapper.httpx_client.request( - f"clients/{quote_path_param(client_id)}/credentials", - method="POST", - json={ - "credential_type": credential_type, - "name": name, - "subject_dn": subject_dn, - "pem": pem, - "alg": alg, - "parse_expiry_from_cert": parse_expiry_from_cert, - "expires_at": expires_at, - "kid": kid, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PostClientCredentialResponseContent, - parse_obj_as( - type_=PostClientCredentialResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def get( - self, client_id: str, credential_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetClientCredentialResponseContent]: - """ - Get the details of a client credential. - - **Important**: To enable credentials to be used for a client authentication method, set the `client_authentication_methods` property on the client. To enable credentials to be used for JWT-Secured Authorization requests set the `signed_request_object` property on the client. - - Parameters - ---------- - client_id : str - ID of the client. - - credential_id : str - ID of the credential. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetClientCredentialResponseContent] - Credential successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - f"clients/{quote_path_param(client_id)}/credentials/{quote_path_param(credential_id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetClientCredentialResponseContent, - parse_obj_as( - type_=GetClientCredentialResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def delete( - self, client_id: str, credential_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[None]: - """ - Delete a client credential you previously created. May be enabled or disabled. For more information, read Client Credential Flow. - - Parameters - ---------- - client_id : str - ID of the client. - - credential_id : str - ID of the credential to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"clients/{quote_path_param(client_id)}/credentials/{quote_path_param(credential_id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def update( - self, - client_id: str, - credential_id: str, - *, - expires_at: typing.Optional[dt.datetime] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PatchClientCredentialResponseContent]: - """ - Change a client credential you previously created. May be enabled or disabled. For more information, read Client Credential Flow. - - Parameters - ---------- - client_id : str - ID of the client. - - credential_id : str - ID of the credential. - - expires_at : typing.Optional[dt.datetime] - The ISO 8601 formatted date representing the expiration of the credential. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PatchClientCredentialResponseContent] - Credential successfully updated. - """ - _response = self._client_wrapper.httpx_client.request( - f"clients/{quote_path_param(client_id)}/credentials/{quote_path_param(credential_id)}", - method="PATCH", - json={ - "expires_at": expires_at, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PatchClientCredentialResponseContent, - parse_obj_as( - type_=PatchClientCredentialResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawCredentialsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, client_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[typing.List[ClientCredential]]: - """ - Get the details of a client credential. - - **Important**: To enable credentials to be used for a client authentication method, set the `client_authentication_methods` property on the client. To enable credentials to be used for JWT-Secured Authorization requests set the `signed_request_object` property on the client. - - Parameters - ---------- - client_id : str - ID of the client. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[typing.List[ClientCredential]] - Credentials successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - f"clients/{quote_path_param(client_id)}/credentials", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - typing.List[ClientCredential], - parse_obj_as( - type_=typing.List[ClientCredential], # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - client_id: str, - *, - credential_type: ClientCredentialTypeEnum, - name: typing.Optional[str] = OMIT, - subject_dn: typing.Optional[str] = OMIT, - pem: typing.Optional[str] = OMIT, - alg: typing.Optional[PublicKeyCredentialAlgorithmEnum] = OMIT, - parse_expiry_from_cert: typing.Optional[bool] = OMIT, - expires_at: typing.Optional[dt.datetime] = OMIT, - kid: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PostClientCredentialResponseContent]: - """ - Create a client credential associated to your application. Credentials can be used to configure Private Key JWT and mTLS authentication methods, as well as for JWT-secured Authorization requests. - - **Public Key** - - Public Key credentials can be used to set up Private Key JWT client authentication and JWT-secured Authorization requests. - - Sample: - - ```json - { - "credential_type": "public_key", - "name": "string", - "pem": "string", - "alg": "RS256", - "parse_expiry_from_cert": false, - "expires_at": "2022-12-31T23:59:59Z" - } - ``` - - **Certificate (CA-signed & self-signed)** - - Certificate credentials can be used to set up mTLS client authentication. CA-signed certificates can be configured either with a signed certificate or with just the certificate Subject DN. - - CA-signed Certificate Sample (pem): - - ```json - { - "credential_type": "x509_cert", - "name": "string", - "pem": "string" - } - ``` - - CA-signed Certificate Sample (subject_dn): - - ```json - { - "credential_type": "cert_subject_dn", - "name": "string", - "subject_dn": "string" - } - ``` - - Self-signed Certificate Sample: - - ```json - { - "credential_type": "cert_subject_dn", - "name": "string", - "pem": "string" - } - ``` - - The credential will be created but not yet enabled for use until you set the corresponding properties in the client: - - - To enable the credential for Private Key JWT or mTLS authentication methods, set the `client_authentication_methods` property on the client. For more information, read [Configure Private Key JWT Authentication](https://auth0.com/docs/get-started/applications/configure-private-key-jwt) and [Configure mTLS Authentication](https://auth0.com/docs/get-started/applications/configure-mtls) - - To enable the credential for JWT-secured Authorization requests, set the `signed_request_object`property on the client. For more information, read [Configure JWT-secured Authorization Requests (JAR)](https://auth0.com/docs/get-started/applications/configure-jar) - - Parameters - ---------- - client_id : str - ID of the client. - - credential_type : ClientCredentialTypeEnum - - name : typing.Optional[str] - Friendly name for a credential. - - subject_dn : typing.Optional[str] - Subject Distinguished Name. Mutually exclusive with `pem` property. Applies to `cert_subject_dn` credential type. - - pem : typing.Optional[str] - PEM-formatted public key (SPKI and PKCS1) or X509 certificate. Must be JSON escaped. - - alg : typing.Optional[PublicKeyCredentialAlgorithmEnum] - - parse_expiry_from_cert : typing.Optional[bool] - Parse expiry from x509 certificate. If true, attempts to parse the expiry date from the provided PEM. Applies to `public_key` credential type. - - expires_at : typing.Optional[dt.datetime] - The ISO 8601 formatted date representing the expiration of the credential. If not specified (not recommended), the credential never expires. Applies to `public_key` credential type. - - kid : typing.Optional[str] - Optional kid (Key ID), used to uniquely identify the credential. If not specified, a kid value will be auto-generated. The kid header parameter in JWTs sent by your client should match this value. Valid format is [0-9a-zA-Z-_]{10,64} - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PostClientCredentialResponseContent] - Credential successfully created. - """ - _response = await self._client_wrapper.httpx_client.request( - f"clients/{quote_path_param(client_id)}/credentials", - method="POST", - json={ - "credential_type": credential_type, - "name": name, - "subject_dn": subject_dn, - "pem": pem, - "alg": alg, - "parse_expiry_from_cert": parse_expiry_from_cert, - "expires_at": expires_at, - "kid": kid, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PostClientCredentialResponseContent, - parse_obj_as( - type_=PostClientCredentialResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def get( - self, client_id: str, credential_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetClientCredentialResponseContent]: - """ - Get the details of a client credential. - - **Important**: To enable credentials to be used for a client authentication method, set the `client_authentication_methods` property on the client. To enable credentials to be used for JWT-Secured Authorization requests set the `signed_request_object` property on the client. - - Parameters - ---------- - client_id : str - ID of the client. - - credential_id : str - ID of the credential. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetClientCredentialResponseContent] - Credential successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - f"clients/{quote_path_param(client_id)}/credentials/{quote_path_param(credential_id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetClientCredentialResponseContent, - parse_obj_as( - type_=GetClientCredentialResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def delete( - self, client_id: str, credential_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Delete a client credential you previously created. May be enabled or disabled. For more information, read Client Credential Flow. - - Parameters - ---------- - client_id : str - ID of the client. - - credential_id : str - ID of the credential to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"clients/{quote_path_param(client_id)}/credentials/{quote_path_param(credential_id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def update( - self, - client_id: str, - credential_id: str, - *, - expires_at: typing.Optional[dt.datetime] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PatchClientCredentialResponseContent]: - """ - Change a client credential you previously created. May be enabled or disabled. For more information, read Client Credential Flow. - - Parameters - ---------- - client_id : str - ID of the client. - - credential_id : str - ID of the credential. - - expires_at : typing.Optional[dt.datetime] - The ISO 8601 formatted date representing the expiration of the credential. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PatchClientCredentialResponseContent] - Credential successfully updated. - """ - _response = await self._client_wrapper.httpx_client.request( - f"clients/{quote_path_param(client_id)}/credentials/{quote_path_param(credential_id)}", - method="PATCH", - json={ - "expires_at": expires_at, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PatchClientCredentialResponseContent, - parse_obj_as( - type_=PatchClientCredentialResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/clients/raw_client.py b/src/auth0/management/clients/raw_client.py deleted file mode 100644 index 218baffc..00000000 --- a/src/auth0/management/clients/raw_client.py +++ /dev/null @@ -1,3828 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ..core.api_error import ApiError -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.http_response import AsyncHttpResponse, HttpResponse -from ..core.jsonable_encoder import quote_path_param -from ..core.pagination import AsyncPager, SyncPager -from ..core.parse_error import ParsingError -from ..core.pydantic_utilities import parse_obj_as -from ..core.request_options import RequestOptions -from ..core.serialization import convert_and_respect_annotation_metadata -from ..errors.bad_request_error import BadRequestError -from ..errors.conflict_error import ConflictError -from ..errors.forbidden_error import ForbiddenError -from ..errors.gateway_timeout_error import GatewayTimeoutError -from ..errors.internal_server_error import InternalServerError -from ..errors.not_found_error import NotFoundError -from ..errors.too_many_requests_error import TooManyRequestsError -from ..errors.unauthorized_error import UnauthorizedError -from ..types.b_2_b_integration_configuration import B2BIntegrationConfiguration -from ..types.client import Client -from ..types.client_addons import ClientAddons -from ..types.client_anonymous_session_transfer_network_binding_enum import ( - ClientAnonymousSessionTransferNetworkBindingEnum, -) -from ..types.client_app_type_enum import ClientAppTypeEnum -from ..types.client_async_approval_notifications_channels_api_patch_configuration import ( - ClientAsyncApprovalNotificationsChannelsApiPatchConfiguration, -) -from ..types.client_async_approval_notifications_channels_api_post_configuration import ( - ClientAsyncApprovalNotificationsChannelsApiPostConfiguration, -) -from ..types.client_authentication_method import ClientAuthenticationMethod -from ..types.client_compliance_level_enum import ClientComplianceLevelEnum -from ..types.client_create_authentication_method import ClientCreateAuthenticationMethod -from ..types.client_default_organization import ClientDefaultOrganization -from ..types.client_encryption_key import ClientEncryptionKey -from ..types.client_jwt_configuration import ClientJwtConfiguration -from ..types.client_metadata import ClientMetadata -from ..types.client_mobile import ClientMobile -from ..types.client_my_organization_patch_configuration import ClientMyOrganizationPatchConfiguration -from ..types.client_my_organization_post_configuration import ClientMyOrganizationPostConfiguration -from ..types.client_oidc_backchannel_logout_settings import ClientOidcBackchannelLogoutSettings -from ..types.client_oidc_support_patch import ClientOidcSupportPatch -from ..types.client_oidc_support_post import ClientOidcSupportPost -from ..types.client_organization_discovery_enum import ClientOrganizationDiscoveryEnum -from ..types.client_organization_require_behavior_enum import ClientOrganizationRequireBehaviorEnum -from ..types.client_organization_require_behavior_patch_enum import ClientOrganizationRequireBehaviorPatchEnum -from ..types.client_organization_usage_enum import ClientOrganizationUsageEnum -from ..types.client_organization_usage_patch_enum import ClientOrganizationUsagePatchEnum -from ..types.client_redirection_policy_enum import ClientRedirectionPolicyEnum -from ..types.client_refresh_token_configuration import ClientRefreshTokenConfiguration -from ..types.client_search_response import ClientSearchResponse -from ..types.client_session_transfer_configuration import ClientSessionTransferConfiguration -from ..types.client_signed_request_object_with_credential_id import ClientSignedRequestObjectWithCredentialId -from ..types.client_signed_request_object_with_public_key import ClientSignedRequestObjectWithPublicKey -from ..types.client_sort_field_enum import ClientSortFieldEnum -from ..types.client_third_party_security_mode_enum import ClientThirdPartySecurityModeEnum -from ..types.client_token_endpoint_auth_method_enum import ClientTokenEndpointAuthMethodEnum -from ..types.client_token_endpoint_auth_method_or_null_enum import ClientTokenEndpointAuthMethodOrNullEnum -from ..types.client_token_exchange_configuration import ClientTokenExchangeConfiguration -from ..types.client_token_exchange_configuration_or_null import ClientTokenExchangeConfigurationOrNull -from ..types.client_token_vault_privileged_access_with_credential_id import ( - ClientTokenVaultPrivilegedAccessWithCredentialId, -) -from ..types.client_token_vault_privileged_access_with_public_key import ClientTokenVaultPrivilegedAccessWithPublicKey -from ..types.create_anonymous_sessions import CreateAnonymousSessions -from ..types.create_client_response_content import CreateClientResponseContent -from ..types.create_identity_assertion_authorization_grant import CreateIdentityAssertionAuthorizationGrant -from ..types.create_token_quota import CreateTokenQuota -from ..types.express_configuration import ExpressConfiguration -from ..types.express_configuration_or_null import ExpressConfigurationOrNull -from ..types.fed_cm_login import FedCmLogin -from ..types.fed_cm_login_patch import FedCmLoginPatch -from ..types.get_client_response_content import GetClientResponseContent -from ..types.google_account_linking_configuration_create import GoogleAccountLinkingConfigurationCreate -from ..types.google_account_linking_configuration_or_null import GoogleAccountLinkingConfigurationOrNull -from ..types.list_clients_offset_paginated_response_content import ListClientsOffsetPaginatedResponseContent -from ..types.native_social_login import NativeSocialLogin -from ..types.native_social_login_patch import NativeSocialLoginPatch -from ..types.preview_cimd_metadata_response_content import PreviewCimdMetadataResponseContent -from ..types.register_cimd_client_response_content import RegisterCimdClientResponseContent -from ..types.rotate_client_secret_response_content import RotateClientSecretResponseContent -from ..types.search_clients_response_content import SearchClientsResponseContent -from ..types.search_parser_enum import SearchParserEnum -from ..types.update_anonymous_sessions import UpdateAnonymousSessions -from ..types.update_client_response_content import UpdateClientResponseContent -from ..types.update_identity_assertion_authorization_grant import UpdateIdentityAssertionAuthorizationGrant -from ..types.update_token_quota import UpdateTokenQuota -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawClientsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - include_totals: typing.Optional[bool] = True, - is_global: typing.Optional[bool] = None, - is_first_party: typing.Optional[bool] = None, - app_type: typing.Optional[str] = None, - external_client_id: typing.Optional[str] = None, - agent_id: typing.Optional[str] = None, - q: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[Client, ListClientsOffsetPaginatedResponseContent]: - """ - Retrieve clients (applications and SSO integrations) matching provided filters. A list of fields to include or exclude may also be specified. - For more information, read [Applications in Auth0](https://www.auth0.com/docs/get-started/applications) and [Single Sign-On](https://www.auth0.com/docs/authenticate/single-sign-on). - - - The following can be retrieved with any scope: - `client_id`, `app_type`, `name`, and `description`. - - The following properties can only be retrieved with the `read:clients` or - `read:client_keys` scope: - `callbacks`, `oidc_logout`, `allowed_origins`, - `web_origins`, `tenant`, `global`, `config_route`, - `callback_url_template`, `jwt_configuration`, - `jwt_configuration.lifetime_in_seconds`, `jwt_configuration.secret_encoded`, - `jwt_configuration.scopes`, `jwt_configuration.alg`, `api_type`, - `logo_uri`, `allowed_clients`, `owners`, `custom_login_page`, - `custom_login_page_on`, `sso`, `addons`, `form_template`, - `custom_login_page_codeview`, `resource_servers`, `client_metadata`, - `mobile`, `mobile.android`, `mobile.ios`, `allowed_logout_urls`, - `token_endpoint_auth_method`, `is_first_party`, `oidc_conformant`, - `is_token_endpoint_ip_header_trusted`, `initiate_login_uri`, `grant_types`, - `refresh_token`, `refresh_token.rotation_type`, `refresh_token.expiration_type`, - `refresh_token.leeway`, `refresh_token.token_lifetime`, `refresh_token.policies`, `organization_usage`, - `organization_require_behavior`. - - The following properties can only be retrieved with the - `read:client_keys` or `read:client_credentials` scope: - `encryption_key`, `encryption_key.pub`, `encryption_key.cert`, - `client_secret`, `client_authentication_methods` and `signing_key`. - - Parameters - ---------- - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). - - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. Default value is 50, maximum value is 100 - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - is_global : typing.Optional[bool] - Optional filter on the global client parameter. - - is_first_party : typing.Optional[bool] - Optional filter on whether or not a client is a first-party client. - - app_type : typing.Optional[str] - Optional filter by a comma-separated list of application types. - - external_client_id : typing.Optional[str] - Optional filter by the Client ID Metadata Document URI for CIMD-registered clients. - - agent_id : typing.Optional[str] - Optional filter by the agent associated with the client.
Additional Restrictions:
  • Cannot be used in combination with other filters
  • Only fields, include_fields, page, per_page, and include_totals are supported alongside it
  • Checkpoint pagination (from, take) is not supported
- - q : typing.Optional[str] - Advanced Query in Lucene syntax.
Permitted Queries:
  • client_grant.organization_id:{organization_id}
  • client_grant.allow_any_organization:true
Additional Restrictions:
  • Cannot be used in combination with other filters
  • Requires use of the from and take paging parameters (checkpoint paginatinon)
  • Reduced rate limits apply. See Rate Limit Configurations
Note: Recent updates may not be immediately reflected in query results - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[Client, ListClientsOffsetPaginatedResponseContent] - Clients successfully retrieved. - """ - page = page if page is not None else 0 - - _response = self._client_wrapper.httpx_client.request( - "clients", - method="GET", - params={ - "fields": fields, - "include_fields": include_fields, - "page": page, - "per_page": per_page, - "include_totals": include_totals, - "is_global": is_global, - "is_first_party": is_first_party, - "app_type": app_type, - "external_client_id": external_client_id, - "agent_id": agent_id, - "q": q, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListClientsOffsetPaginatedResponseContent, - parse_obj_as( - type_=ListClientsOffsetPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.clients - _has_next = len(_items or []) > 0 - _get_next = lambda: self.list( - fields=fields, - include_fields=include_fields, - page=page + 1, - per_page=per_page, - include_totals=include_totals, - is_global=is_global, - is_first_party=is_first_party, - app_type=app_type, - external_client_id=external_client_id, - agent_id=agent_id, - q=q, - request_options=request_options, - ) - return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - *, - name: str, - description: typing.Optional[str] = OMIT, - logo_uri: typing.Optional[str] = OMIT, - callbacks: typing.Optional[typing.Sequence[str]] = OMIT, - oidc_logout: typing.Optional[ClientOidcBackchannelLogoutSettings] = OMIT, - oidc_backchannel_logout: typing.Optional[ClientOidcBackchannelLogoutSettings] = OMIT, - session_transfer: typing.Optional[ClientSessionTransferConfiguration] = OMIT, - allowed_origins: typing.Optional[typing.Sequence[str]] = OMIT, - web_origins: typing.Optional[typing.Sequence[str]] = OMIT, - client_aliases: typing.Optional[typing.Sequence[str]] = OMIT, - allowed_clients: typing.Optional[typing.Sequence[str]] = OMIT, - allowed_logout_urls: typing.Optional[typing.Sequence[str]] = OMIT, - grant_types: typing.Optional[typing.Sequence[str]] = OMIT, - token_endpoint_auth_method: typing.Optional[ClientTokenEndpointAuthMethodEnum] = OMIT, - is_token_endpoint_ip_header_trusted: typing.Optional[bool] = OMIT, - app_type: typing.Optional[ClientAppTypeEnum] = OMIT, - is_first_party: typing.Optional[bool] = OMIT, - oidc_conformant: typing.Optional[bool] = OMIT, - jwt_configuration: typing.Optional[ClientJwtConfiguration] = OMIT, - encryption_key: typing.Optional[ClientEncryptionKey] = OMIT, - sso: typing.Optional[bool] = OMIT, - cross_origin_authentication: typing.Optional[bool] = OMIT, - cross_origin_loc: typing.Optional[str] = OMIT, - sso_disabled: typing.Optional[bool] = OMIT, - custom_login_page_on: typing.Optional[bool] = OMIT, - custom_login_page: typing.Optional[str] = OMIT, - custom_login_page_preview: typing.Optional[str] = OMIT, - form_template: typing.Optional[str] = OMIT, - addons: typing.Optional[ClientAddons] = OMIT, - client_metadata: typing.Optional[ClientMetadata] = OMIT, - mobile: typing.Optional[ClientMobile] = OMIT, - initiate_login_uri: typing.Optional[str] = OMIT, - native_social_login: typing.Optional[NativeSocialLogin] = OMIT, - fedcm_login: typing.Optional[FedCmLogin] = OMIT, - refresh_token: typing.Optional[ClientRefreshTokenConfiguration] = OMIT, - default_organization: typing.Optional[ClientDefaultOrganization] = OMIT, - organization_usage: typing.Optional[ClientOrganizationUsageEnum] = OMIT, - organization_require_behavior: typing.Optional[ClientOrganizationRequireBehaviorEnum] = OMIT, - organization_discovery_methods: typing.Optional[typing.Sequence[ClientOrganizationDiscoveryEnum]] = OMIT, - client_authentication_methods: typing.Optional[ClientCreateAuthenticationMethod] = OMIT, - require_pushed_authorization_requests: typing.Optional[bool] = OMIT, - require_proof_of_possession: typing.Optional[bool] = OMIT, - signed_request_object: typing.Optional[ClientSignedRequestObjectWithPublicKey] = OMIT, - token_vault_privileged_access: typing.Optional[ClientTokenVaultPrivilegedAccessWithPublicKey] = OMIT, - compliance_level: typing.Optional[ClientComplianceLevelEnum] = OMIT, - skip_non_verifiable_callback_uri_confirmation_prompt: typing.Optional[bool] = OMIT, - token_exchange: typing.Optional[ClientTokenExchangeConfiguration] = OMIT, - par_request_expiry: typing.Optional[int] = OMIT, - token_quota: typing.Optional[CreateTokenQuota] = OMIT, - resource_server_identifier: typing.Optional[str] = OMIT, - identity_assertion_authorization_grant: typing.Optional[CreateIdentityAssertionAuthorizationGrant] = OMIT, - anonymous_sessions: typing.Optional[CreateAnonymousSessions] = OMIT, - enforce_anon_session_transfer_network_binding: typing.Optional[ - ClientAnonymousSessionTransferNetworkBindingEnum - ] = OMIT, - third_party_security_mode: typing.Optional[ClientThirdPartySecurityModeEnum] = OMIT, - redirection_policy: typing.Optional[ClientRedirectionPolicyEnum] = OMIT, - express_configuration: typing.Optional[ExpressConfiguration] = OMIT, - b_2_b_integration_configuration: typing.Optional[B2BIntegrationConfiguration] = OMIT, - my_organization_configuration: typing.Optional[ClientMyOrganizationPostConfiguration] = OMIT, - google_account_linking: typing.Optional[GoogleAccountLinkingConfigurationCreate] = OMIT, - async_approval_notification_channels: typing.Optional[ - ClientAsyncApprovalNotificationsChannelsApiPostConfiguration - ] = OMIT, - agent_id: typing.Optional[str] = OMIT, - oidc_support: typing.Optional[ClientOidcSupportPost] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[CreateClientResponseContent]: - """ - Create a new client (application or SSO integration). For more information, read [Create Applications](https://www.auth0.com/docs/get-started/auth0-overview/create-applications) - [API Endpoints for Single Sign-On](https://www.auth0.com/docs/authenticate/single-sign-on/api-endpoints-for-single-sign-on). - - Notes: - - We recommend leaving the `client_secret` parameter unspecified to allow the generation of a safe secret. - - The `client_authentication_methods` and `token_endpoint_auth_method` properties are mutually exclusive. Use - `client_authentication_methods` to configure the client with Private Key JWT authentication method. Otherwise, use `token_endpoint_auth_method` - to configure the client with client secret (basic or post) or with no authentication method (none). - - When using `client_authentication_methods` to configure the client with Private Key JWT authentication method, specify fully defined credentials. - These credentials will be automatically enabled for Private Key JWT authentication on the client. - - To configure `client_authentication_methods`, the `create:client_credentials` scope is required. - - To configure `client_authentication_methods`, the property `jwt_configuration.alg` must be set to RS256. - - SSO Integrations created via this endpoint will accept login requests and share user profile information. - - Parameters - ---------- - name : str - Name of this client (min length: 1 character, does not allow `<` or `>`). - - description : typing.Optional[str] - Free text description of this client (max length: 140 characters). - - logo_uri : typing.Optional[str] - URL of the logo to display for this client. Recommended size is 150x150 pixels. - - callbacks : typing.Optional[typing.Sequence[str]] - Comma-separated list of URLs whitelisted for Auth0 to use as a callback to the client after authentication. - - oidc_logout : typing.Optional[ClientOidcBackchannelLogoutSettings] - - oidc_backchannel_logout : typing.Optional[ClientOidcBackchannelLogoutSettings] - Configuration for OIDC backchannel logout (deprecated, in favor of oidc_logout) - - session_transfer : typing.Optional[ClientSessionTransferConfiguration] - - allowed_origins : typing.Optional[typing.Sequence[str]] - Comma-separated list of URLs allowed to make requests from JavaScript to Auth0 API (typically used with CORS). By default, all your callback URLs will be allowed. This field allows you to enter other origins if necessary. You can also use wildcards at the subdomain level (e.g., https://*.contoso.com). Query strings and hash information are not taken into account when validating these URLs. - - web_origins : typing.Optional[typing.Sequence[str]] - Comma-separated list of allowed origins for use with Cross-Origin Authentication, Device Flow, and web message response mode. - - client_aliases : typing.Optional[typing.Sequence[str]] - List of audiences/realms for SAML protocol. Used by the wsfed addon. - - allowed_clients : typing.Optional[typing.Sequence[str]] - List of allow clients and API ids that are allowed to make delegation requests. Empty means all all your clients are allowed. - - allowed_logout_urls : typing.Optional[typing.Sequence[str]] - Comma-separated list of URLs that are valid to redirect to after logout from Auth0. Wildcards are allowed for subdomains. - - grant_types : typing.Optional[typing.Sequence[str]] - List of grant types supported for this application. Can include `authorization_code`, `implicit`, `refresh_token`, `client_credentials`, `password`, `http://auth0.com/oauth/grant-type/password-realm`, `http://auth0.com/oauth/grant-type/mfa-oob`, `http://auth0.com/oauth/grant-type/mfa-otp`, `http://auth0.com/oauth/grant-type/mfa-recovery-code`, `urn:openid:params:grant-type:ciba`, `urn:ietf:params:oauth:grant-type:device_code`, and `urn:auth0:params:oauth:grant-type:token-exchange:federated-connection-access-token`. - - token_endpoint_auth_method : typing.Optional[ClientTokenEndpointAuthMethodEnum] - - is_token_endpoint_ip_header_trusted : typing.Optional[bool] - If true, trust that the IP specified in the `auth0-forwarded-for` header is the end-user's IP for brute-force-protection on token endpoint. - - app_type : typing.Optional[ClientAppTypeEnum] - - is_first_party : typing.Optional[bool] - Whether this client a first party client or not - - oidc_conformant : typing.Optional[bool] - Whether this client conforms to strict OIDC specifications (true) or uses legacy features (false). - - jwt_configuration : typing.Optional[ClientJwtConfiguration] - - encryption_key : typing.Optional[ClientEncryptionKey] - - sso : typing.Optional[bool] - Applies only to SSO clients and determines whether Auth0 will handle Single Sign On (true) or whether the Identity Provider will (false). - - cross_origin_authentication : typing.Optional[bool] - Whether this client can be used to make cross-origin authentication requests (true) or it is not allowed to make such requests (false). - - cross_origin_loc : typing.Optional[str] - URL of the location in your site where the cross origin verification takes place for the cross-origin auth flow when performing Auth in your own domain instead of Auth0 hosted login page. - - sso_disabled : typing.Optional[bool] - true to disable Single Sign On, false otherwise (default: false) - - custom_login_page_on : typing.Optional[bool] - true if the custom login page is to be used, false otherwise. Defaults to true - - custom_login_page : typing.Optional[str] - The content (HTML, CSS, JS) of the custom login page. - - custom_login_page_preview : typing.Optional[str] - The content (HTML, CSS, JS) of the custom login page. (Used on Previews) - - form_template : typing.Optional[str] - HTML form template to be used for WS-Federation. - - addons : typing.Optional[ClientAddons] - - client_metadata : typing.Optional[ClientMetadata] - - mobile : typing.Optional[ClientMobile] - - initiate_login_uri : typing.Optional[str] - Initiate login uri, must be https - - native_social_login : typing.Optional[NativeSocialLogin] - - fedcm_login : typing.Optional[FedCmLogin] - - refresh_token : typing.Optional[ClientRefreshTokenConfiguration] - - default_organization : typing.Optional[ClientDefaultOrganization] - - organization_usage : typing.Optional[ClientOrganizationUsageEnum] - - organization_require_behavior : typing.Optional[ClientOrganizationRequireBehaviorEnum] - - organization_discovery_methods : typing.Optional[typing.Sequence[ClientOrganizationDiscoveryEnum]] - Defines the available methods for organization discovery during the `pre_login_prompt`. Users can discover their organization either by `email`, `organization_name` or both. - - client_authentication_methods : typing.Optional[ClientCreateAuthenticationMethod] - - require_pushed_authorization_requests : typing.Optional[bool] - Makes the use of Pushed Authorization Requests mandatory for this client - - require_proof_of_possession : typing.Optional[bool] - Makes the use of Proof-of-Possession mandatory for this client - - signed_request_object : typing.Optional[ClientSignedRequestObjectWithPublicKey] - - token_vault_privileged_access : typing.Optional[ClientTokenVaultPrivilegedAccessWithPublicKey] - - compliance_level : typing.Optional[ClientComplianceLevelEnum] - - skip_non_verifiable_callback_uri_confirmation_prompt : typing.Optional[bool] - Controls whether a confirmation prompt is shown during login flows when the redirect URI uses non-verifiable callback URIs (for example, a custom URI schema such as `myapp://`, or `localhost`). - If set to true, a confirmation prompt will not be shown. We recommend that this is set to false for improved protection from malicious apps. - See https://auth0.com/docs/secure/security-guidance/measures-against-app-impersonation for more information. - - token_exchange : typing.Optional[ClientTokenExchangeConfiguration] - - par_request_expiry : typing.Optional[int] - Specifies how long, in seconds, a Pushed Authorization Request URI remains valid - - token_quota : typing.Optional[CreateTokenQuota] - - resource_server_identifier : typing.Optional[str] - The identifier of the resource server that this client is linked to. - - identity_assertion_authorization_grant : typing.Optional[CreateIdentityAssertionAuthorizationGrant] - - anonymous_sessions : typing.Optional[CreateAnonymousSessions] - - enforce_anon_session_transfer_network_binding : typing.Optional[ClientAnonymousSessionTransferNetworkBindingEnum] - - third_party_security_mode : typing.Optional[ClientThirdPartySecurityModeEnum] - - redirection_policy : typing.Optional[ClientRedirectionPolicyEnum] - - express_configuration : typing.Optional[ExpressConfiguration] - - b_2_b_integration_configuration : typing.Optional[B2BIntegrationConfiguration] - - my_organization_configuration : typing.Optional[ClientMyOrganizationPostConfiguration] - - google_account_linking : typing.Optional[GoogleAccountLinkingConfigurationCreate] - - async_approval_notification_channels : typing.Optional[ClientAsyncApprovalNotificationsChannelsApiPostConfiguration] - - agent_id : typing.Optional[str] - ID of the agent to associate with this client. - - oidc_support : typing.Optional[ClientOidcSupportPost] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CreateClientResponseContent] - Client successfully created. - """ - _response = self._client_wrapper.httpx_client.request( - "clients", - method="POST", - json={ - "name": name, - "description": description, - "logo_uri": logo_uri, - "callbacks": callbacks, - "oidc_logout": convert_and_respect_annotation_metadata( - object_=oidc_logout, annotation=ClientOidcBackchannelLogoutSettings, direction="write" - ), - "oidc_backchannel_logout": convert_and_respect_annotation_metadata( - object_=oidc_backchannel_logout, annotation=ClientOidcBackchannelLogoutSettings, direction="write" - ), - "session_transfer": convert_and_respect_annotation_metadata( - object_=session_transfer, - annotation=typing.Optional[ClientSessionTransferConfiguration], - direction="write", - ), - "allowed_origins": allowed_origins, - "web_origins": web_origins, - "client_aliases": client_aliases, - "allowed_clients": allowed_clients, - "allowed_logout_urls": allowed_logout_urls, - "grant_types": grant_types, - "token_endpoint_auth_method": token_endpoint_auth_method, - "is_token_endpoint_ip_header_trusted": is_token_endpoint_ip_header_trusted, - "app_type": app_type, - "is_first_party": is_first_party, - "oidc_conformant": oidc_conformant, - "jwt_configuration": convert_and_respect_annotation_metadata( - object_=jwt_configuration, annotation=ClientJwtConfiguration, direction="write" - ), - "encryption_key": convert_and_respect_annotation_metadata( - object_=encryption_key, annotation=typing.Optional[ClientEncryptionKey], direction="write" - ), - "sso": sso, - "cross_origin_authentication": cross_origin_authentication, - "cross_origin_loc": cross_origin_loc, - "sso_disabled": sso_disabled, - "custom_login_page_on": custom_login_page_on, - "custom_login_page": custom_login_page, - "custom_login_page_preview": custom_login_page_preview, - "form_template": form_template, - "addons": convert_and_respect_annotation_metadata( - object_=addons, annotation=ClientAddons, direction="write" - ), - "client_metadata": client_metadata, - "mobile": convert_and_respect_annotation_metadata( - object_=mobile, annotation=ClientMobile, direction="write" - ), - "initiate_login_uri": initiate_login_uri, - "native_social_login": convert_and_respect_annotation_metadata( - object_=native_social_login, annotation=NativeSocialLogin, direction="write" - ), - "fedcm_login": convert_and_respect_annotation_metadata( - object_=fedcm_login, annotation=FedCmLogin, direction="write" - ), - "refresh_token": convert_and_respect_annotation_metadata( - object_=refresh_token, - annotation=typing.Optional[ClientRefreshTokenConfiguration], - direction="write", - ), - "default_organization": convert_and_respect_annotation_metadata( - object_=default_organization, - annotation=typing.Optional[ClientDefaultOrganization], - direction="write", - ), - "organization_usage": organization_usage, - "organization_require_behavior": organization_require_behavior, - "organization_discovery_methods": organization_discovery_methods, - "client_authentication_methods": convert_and_respect_annotation_metadata( - object_=client_authentication_methods, - annotation=ClientCreateAuthenticationMethod, - direction="write", - ), - "require_pushed_authorization_requests": require_pushed_authorization_requests, - "require_proof_of_possession": require_proof_of_possession, - "signed_request_object": convert_and_respect_annotation_metadata( - object_=signed_request_object, annotation=ClientSignedRequestObjectWithPublicKey, direction="write" - ), - "token_vault_privileged_access": convert_and_respect_annotation_metadata( - object_=token_vault_privileged_access, - annotation=ClientTokenVaultPrivilegedAccessWithPublicKey, - direction="write", - ), - "compliance_level": compliance_level, - "skip_non_verifiable_callback_uri_confirmation_prompt": skip_non_verifiable_callback_uri_confirmation_prompt, - "token_exchange": convert_and_respect_annotation_metadata( - object_=token_exchange, annotation=ClientTokenExchangeConfiguration, direction="write" - ), - "par_request_expiry": par_request_expiry, - "token_quota": convert_and_respect_annotation_metadata( - object_=token_quota, annotation=CreateTokenQuota, direction="write" - ), - "resource_server_identifier": resource_server_identifier, - "identity_assertion_authorization_grant": convert_and_respect_annotation_metadata( - object_=identity_assertion_authorization_grant, - annotation=CreateIdentityAssertionAuthorizationGrant, - direction="write", - ), - "anonymous_sessions": convert_and_respect_annotation_metadata( - object_=anonymous_sessions, annotation=CreateAnonymousSessions, direction="write" - ), - "enforce_anon_session_transfer_network_binding": enforce_anon_session_transfer_network_binding, - "third_party_security_mode": third_party_security_mode, - "redirection_policy": redirection_policy, - "express_configuration": convert_and_respect_annotation_metadata( - object_=express_configuration, annotation=ExpressConfiguration, direction="write" - ), - "b2b_integration_configuration": convert_and_respect_annotation_metadata( - object_=b_2_b_integration_configuration, annotation=B2BIntegrationConfiguration, direction="write" - ), - "my_organization_configuration": convert_and_respect_annotation_metadata( - object_=my_organization_configuration, - annotation=ClientMyOrganizationPostConfiguration, - direction="write", - ), - "google_account_linking": convert_and_respect_annotation_metadata( - object_=google_account_linking, - annotation=GoogleAccountLinkingConfigurationCreate, - direction="write", - ), - "async_approval_notification_channels": async_approval_notification_channels, - "agent_id": agent_id, - "oidc_support": convert_and_respect_annotation_metadata( - object_=oidc_support, annotation=ClientOidcSupportPost, direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateClientResponseContent, - parse_obj_as( - type_=CreateClientResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def preview_cimd_metadata( - self, *, external_client_id: str, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[PreviewCimdMetadataResponseContent]: - """ - - Fetches and validates a Client ID Metadata Document without creating a client. - Returns the raw metadata and how it would be mapped to Auth0 client fields. - This endpoint is useful for testing metadata URIs before creating CIMD clients. - - - Parameters - ---------- - external_client_id : str - URL to the Client ID Metadata Document - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PreviewCimdMetadataResponseContent] - Metadata successfully fetched and validated, or retrieval error returned with errors array. - """ - _response = self._client_wrapper.httpx_client.request( - "clients/cimd/preview", - method="POST", - json={ - "external_client_id": external_client_id, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PreviewCimdMetadataResponseContent, - parse_obj_as( - type_=PreviewCimdMetadataResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 500: - raise InternalServerError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def register_cimd_client( - self, *, external_client_id: str, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[RegisterCimdClientResponseContent]: - """ - Idempotent registration for Client ID Metadata Document (CIMD) clients. - Uses external_client_id as the unique identifier for upsert operations. - - **Create:** Returns 201 when a new client is created (requires `create:clients` scope). - **Update:** Returns 200 when an existing client is updated (requires `update:clients` scope). - - This endpoint automatically: - - Fetches and validates the metadata document - - Maps CIMD fields to Auth0 client configuration - - Creates/rotates credentials from the JWKS - - Enforces CIMD security policies (HTTPS-only, no shared secrets) - - Parameters - ---------- - external_client_id : str - URL to the Client ID Metadata Document. Acts as the unique identifier for upsert operations. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[RegisterCimdClientResponseContent] - CIMD client successfully updated (idempotent). - """ - _response = self._client_wrapper.httpx_client.request( - "clients/cimd/register", - method="POST", - json={ - "external_client_id": external_client_id, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - RegisterCimdClientResponseContent, - parse_obj_as( - type_=RegisterCimdClientResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 500: - raise InternalServerError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def search( - self, - *, - q: typing.Optional[str] = None, - parser: typing.Optional[SearchParserEnum] = None, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - take: typing.Optional[int] = 50, - from_: typing.Optional[str] = None, - sort: typing.Optional[ClientSortFieldEnum] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[ClientSearchResponse, SearchClientsResponseContent]: - """ - Search clients using SCIM or Lucene filter syntax with low-latency, eventually consistent results. - Use the parser parameter to specify "scim" or "lucene" syntax (default: "lucene"). - This endpoint provides an alternative to the standard GET /clients endpoint with better performance - for complex queries. Results may not reflect recent updates immediately. - - - This endpoint only supports `read:clients` and `read:client_summary` scopes. The `read:client_keys` and `read:client_credentials` scopes are not supported. - - The following fields are never returned by this endpoint: - - `client_secret` - - `encryption_key` - - `signing_keys` - - `owners` - - `addons` - - Parameters - ---------- - q : typing.Optional[str] - Filter expression in SCIM or Lucene syntax (depending on parser parameter). SCIM examples: `name eq "Auth0"`, `name sw "auth" and app_type eq "spa"`. SCIM operators: eq, ne, sw, ew, co, pr, gt, ge, lt, le, and, or.

Supported Fields:
  • client_id - Auth0 client ID (case-sensitive, exact match)
  • external_client_id - URL of the Client ID Metadata Document (CIMD); case-sensitive, exact match
  • name - Client name (supports contains, starts-with, ends-with operators; sortable)
  • app_type - Application type (e.g. "spa", "native", "non_interactive")
  • is_first_party - Whether the client is first-party (boolean)
  • updated_at - Last update timestamp (supports date range operators; sortable)
  • metadata.{key} - Filter by client metadata key-value pairs (max 2-level key depth, values indexed up to 64 characters)
  • client_grant.organization_id - Filter by associated organization ID
  • client_grant.allow_any_organization - Filter by allow any organization setting
Maximum 5 filter operations per query. Results are eventually consistent and may not reflect recent updates. - - parser : typing.Optional[SearchParserEnum] - Query parser to use for the filter expression. Use "scim" for SCIM filter syntax or "lucene" for Lucene query syntax (default). - - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude in the response. Works with the include_fields parameter to control projection mode. Maximum 50 fields. - - include_fields : typing.Optional[bool] - Controls field projection mode. Set to true to include only fields specified in the fields parameter. Set to false to exclude fields specified in the fields parameter. Defaults to true if not specified. - - take : typing.Optional[int] - Maximum number of results to return per page (1-100). Defaults to 50. - - from_ : typing.Optional[str] - Cursor for the next page of results. Use the value from the next field in the previous response. - - sort : typing.Optional[ClientSortFieldEnum] - Field name to sort results by in ascending order. Defaults to insertion order (oldest first) if not provided. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[ClientSearchResponse, SearchClientsResponseContent] - Clients successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - "clients/search", - method="GET", - params={ - "q": q, - "parser": parser, - "fields": fields, - "include_fields": include_fields, - "take": take, - "from": from_, - "sort": sort, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - SearchClientsResponseContent, - parse_obj_as( - type_=SearchClientsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.clients - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - _get_next = lambda: self.search( - q=q, - parser=parser, - fields=fields, - include_fields=include_fields, - take=take, - from_=_parsed_next, - sort=sort, - request_options=request_options, - ) - return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 500: - raise InternalServerError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 504: - raise GatewayTimeoutError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def get( - self, - id: str, - *, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[GetClientResponseContent]: - """ - Retrieve client details by ID. Clients are SSO connections or Applications linked with your Auth0 tenant. A list of fields to include or exclude may also be specified. - For more information, read [Applications in Auth0](https://www.auth0.com/docs/get-started/applications) and [Single Sign-On](https://www.auth0.com/docs/authenticate/single-sign-on). - - - The following properties can be retrieved with any of the scopes: - `client_id`, `app_type`, `name`, and `description`. - - The following properties can only be retrieved with the `read:clients` or - `read:client_keys` scopes: - `callbacks`, `oidc_logout`, `allowed_origins`, - `web_origins`, `tenant`, `global`, `config_route`, - `callback_url_template`, `jwt_configuration`, - `jwt_configuration.lifetime_in_seconds`, `jwt_configuration.secret_encoded`, - `jwt_configuration.scopes`, `jwt_configuration.alg`, `api_type`, - `logo_uri`, `allowed_clients`, `owners`, `custom_login_page`, - `custom_login_page_on`, `sso`, `addons`, `form_template`, - `custom_login_page_codeview`, `resource_servers`, `client_metadata`, - `mobile`, `mobile.android`, `mobile.ios`, `allowed_logout_urls`, - `token_endpoint_auth_method`, `is_first_party`, `oidc_conformant`, - `is_token_endpoint_ip_header_trusted`, `initiate_login_uri`, `grant_types`, - `refresh_token`, `refresh_token.rotation_type`, `refresh_token.expiration_type`, - `refresh_token.leeway`, `refresh_token.token_lifetime`, `refresh_token.policies`, `organization_usage`, - `organization_require_behavior`. - - The following properties can only be retrieved with the `read:client_keys` or `read:client_credentials` scopes: - `encryption_key`, `encryption_key.pub`, `encryption_key.cert`, - `client_secret`, `client_authentication_methods` and `signing_key`. - - Parameters - ---------- - id : str - ID of the client to retrieve. - - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetClientResponseContent] - Client successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - f"clients/{quote_path_param(id)}", - method="GET", - params={ - "fields": fields, - "include_fields": include_fields, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetClientResponseContent, - parse_obj_as( - type_=GetClientResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[None]: - """ - Delete a client and related configuration (rules, connections, etc). - - Parameters - ---------- - id : str - ID of the client to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"clients/{quote_path_param(id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def update( - self, - id: str, - *, - name: typing.Optional[str] = OMIT, - description: typing.Optional[str] = OMIT, - client_secret: typing.Optional[str] = OMIT, - logo_uri: typing.Optional[str] = OMIT, - callbacks: typing.Optional[typing.Sequence[str]] = OMIT, - oidc_logout: typing.Optional[ClientOidcBackchannelLogoutSettings] = OMIT, - oidc_backchannel_logout: typing.Optional[ClientOidcBackchannelLogoutSettings] = OMIT, - session_transfer: typing.Optional[ClientSessionTransferConfiguration] = OMIT, - allowed_origins: typing.Optional[typing.Sequence[str]] = OMIT, - web_origins: typing.Optional[typing.Sequence[str]] = OMIT, - grant_types: typing.Optional[typing.Sequence[str]] = OMIT, - client_aliases: typing.Optional[typing.Sequence[str]] = OMIT, - allowed_clients: typing.Optional[typing.Sequence[str]] = OMIT, - allowed_logout_urls: typing.Optional[typing.Sequence[str]] = OMIT, - jwt_configuration: typing.Optional[ClientJwtConfiguration] = OMIT, - encryption_key: typing.Optional[ClientEncryptionKey] = OMIT, - sso: typing.Optional[bool] = OMIT, - cross_origin_authentication: typing.Optional[bool] = OMIT, - cross_origin_loc: typing.Optional[str] = OMIT, - sso_disabled: typing.Optional[bool] = OMIT, - custom_login_page_on: typing.Optional[bool] = OMIT, - token_endpoint_auth_method: typing.Optional[ClientTokenEndpointAuthMethodOrNullEnum] = OMIT, - is_token_endpoint_ip_header_trusted: typing.Optional[bool] = OMIT, - app_type: typing.Optional[ClientAppTypeEnum] = OMIT, - is_first_party: typing.Optional[bool] = OMIT, - oidc_conformant: typing.Optional[bool] = OMIT, - custom_login_page: typing.Optional[str] = OMIT, - custom_login_page_preview: typing.Optional[str] = OMIT, - token_quota: typing.Optional[UpdateTokenQuota] = OMIT, - identity_assertion_authorization_grant: typing.Optional[UpdateIdentityAssertionAuthorizationGrant] = OMIT, - anonymous_sessions: typing.Optional[UpdateAnonymousSessions] = OMIT, - enforce_anon_session_transfer_network_binding: typing.Optional[ - ClientAnonymousSessionTransferNetworkBindingEnum - ] = OMIT, - form_template: typing.Optional[str] = OMIT, - addons: typing.Optional[ClientAddons] = OMIT, - client_metadata: typing.Optional[ClientMetadata] = OMIT, - mobile: typing.Optional[ClientMobile] = OMIT, - initiate_login_uri: typing.Optional[str] = OMIT, - native_social_login: typing.Optional[NativeSocialLoginPatch] = OMIT, - fedcm_login: typing.Optional[FedCmLoginPatch] = OMIT, - refresh_token: typing.Optional[ClientRefreshTokenConfiguration] = OMIT, - default_organization: typing.Optional[ClientDefaultOrganization] = OMIT, - organization_usage: typing.Optional[ClientOrganizationUsagePatchEnum] = OMIT, - organization_require_behavior: typing.Optional[ClientOrganizationRequireBehaviorPatchEnum] = OMIT, - organization_discovery_methods: typing.Optional[typing.Sequence[ClientOrganizationDiscoveryEnum]] = OMIT, - client_authentication_methods: typing.Optional[ClientAuthenticationMethod] = OMIT, - require_pushed_authorization_requests: typing.Optional[bool] = OMIT, - require_proof_of_possession: typing.Optional[bool] = OMIT, - signed_request_object: typing.Optional[ClientSignedRequestObjectWithCredentialId] = OMIT, - token_vault_privileged_access: typing.Optional[ClientTokenVaultPrivilegedAccessWithCredentialId] = OMIT, - compliance_level: typing.Optional[ClientComplianceLevelEnum] = OMIT, - skip_non_verifiable_callback_uri_confirmation_prompt: typing.Optional[bool] = OMIT, - token_exchange: typing.Optional[ClientTokenExchangeConfigurationOrNull] = OMIT, - par_request_expiry: typing.Optional[int] = OMIT, - express_configuration: typing.Optional[ExpressConfigurationOrNull] = OMIT, - b_2_b_integration_configuration: typing.Optional[B2BIntegrationConfiguration] = OMIT, - my_organization_configuration: typing.Optional[ClientMyOrganizationPatchConfiguration] = OMIT, - google_account_linking: typing.Optional[GoogleAccountLinkingConfigurationOrNull] = OMIT, - async_approval_notification_channels: typing.Optional[ - ClientAsyncApprovalNotificationsChannelsApiPatchConfiguration - ] = OMIT, - third_party_security_mode: typing.Optional[ClientThirdPartySecurityModeEnum] = OMIT, - redirection_policy: typing.Optional[ClientRedirectionPolicyEnum] = OMIT, - agent_id: typing.Optional[str] = OMIT, - oidc_support: typing.Optional[ClientOidcSupportPatch] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[UpdateClientResponseContent]: - """ - Updates a client's settings. For more information, read [Applications in Auth0](https://www.auth0.com/docs/get-started/applications) and [Single Sign-On](https://www.auth0.com/docs/authenticate/single-sign-on). - - Notes: - - The `client_secret` and `signing_key` attributes can only be updated with the `update:client_keys` scope. - - The `client_authentication_methods` and `token_endpoint_auth_method` properties are mutually exclusive. Use `client_authentication_methods` to configure the client with Private Key JWT authentication method. Otherwise, use `token_endpoint_auth_method` to configure the client with client secret (basic or post) or with no authentication method (none). - - When using `client_authentication_methods` to configure the client with Private Key JWT authentication method, only specify the credential IDs that were generated when creating the credentials on the client. - - To configure `client_authentication_methods`, the `update:client_credentials` scope is required. - - To configure `client_authentication_methods`, the property `jwt_configuration.alg` must be set to RS256. - - To change a client's `is_first_party` property to `false`, the `organization_usage` and `organization_require_behavior` properties must be unset. - - Parameters - ---------- - id : str - ID of the client to update. - - name : typing.Optional[str] - The name of the client. Must contain at least one character. Does not allow '<' or '>'. - - description : typing.Optional[str] - Free text description of the purpose of the Client. (Max character length: 140) - - client_secret : typing.Optional[str] - The secret used to sign tokens for the client - - logo_uri : typing.Optional[str] - The URL of the client logo (recommended size: 150x150) - - callbacks : typing.Optional[typing.Sequence[str]] - A set of URLs that are valid to call back from Auth0 when authenticating users - - oidc_logout : typing.Optional[ClientOidcBackchannelLogoutSettings] - - oidc_backchannel_logout : typing.Optional[ClientOidcBackchannelLogoutSettings] - Configuration for OIDC backchannel logout (deprecated, in favor of oidc_logout) - - session_transfer : typing.Optional[ClientSessionTransferConfiguration] - - allowed_origins : typing.Optional[typing.Sequence[str]] - A set of URLs that represents valid origins for CORS - - web_origins : typing.Optional[typing.Sequence[str]] - A set of URLs that represents valid web origins for use with web message response mode - - grant_types : typing.Optional[typing.Sequence[str]] - A set of grant types that the client is authorized to use. Can include `authorization_code`, `implicit`, `refresh_token`, `client_credentials`, `password`, `http://auth0.com/oauth/grant-type/password-realm`, `http://auth0.com/oauth/grant-type/mfa-oob`, `http://auth0.com/oauth/grant-type/mfa-otp`, `http://auth0.com/oauth/grant-type/mfa-recovery-code`, `urn:openid:params:grant-type:ciba`, `urn:ietf:params:oauth:grant-type:device_code`, and `urn:auth0:params:oauth:grant-type:token-exchange:federated-connection-access-token`. - - client_aliases : typing.Optional[typing.Sequence[str]] - List of audiences for SAML protocol - - allowed_clients : typing.Optional[typing.Sequence[str]] - Ids of clients that will be allowed to perform delegation requests. Clients that will be allowed to make delegation request. By default, all your clients will be allowed. This field allows you to specify specific clients - - allowed_logout_urls : typing.Optional[typing.Sequence[str]] - URLs that are valid to redirect to after logout from Auth0 - - jwt_configuration : typing.Optional[ClientJwtConfiguration] - An object that holds settings related to how JWTs are created - - encryption_key : typing.Optional[ClientEncryptionKey] - The client's encryption key - - sso : typing.Optional[bool] - true to use Auth0 instead of the IdP to do Single Sign On, false otherwise (default: false) - - cross_origin_authentication : typing.Optional[bool] - true if this client can be used to make cross-origin authentication requests, false otherwise if cross origin is disabled - - cross_origin_loc : typing.Optional[str] - URL for the location in your site where the cross origin verification takes place for the cross-origin auth flow when performing Auth in your own domain instead of Auth0 hosted login page. - - sso_disabled : typing.Optional[bool] - true to disable Single Sign On, false otherwise (default: false) - - custom_login_page_on : typing.Optional[bool] - true if the custom login page is to be used, false otherwise. - - token_endpoint_auth_method : typing.Optional[ClientTokenEndpointAuthMethodOrNullEnum] - - is_token_endpoint_ip_header_trusted : typing.Optional[bool] - If true, trust that the IP specified in the `auth0-forwarded-for` header is the end-user's IP for brute-force-protection on token endpoint. - - app_type : typing.Optional[ClientAppTypeEnum] - - is_first_party : typing.Optional[bool] - Whether this client a first party client or not - - oidc_conformant : typing.Optional[bool] - Whether this client will conform to strict OIDC specifications - - custom_login_page : typing.Optional[str] - The content (HTML, CSS, JS) of the custom login page - - custom_login_page_preview : typing.Optional[str] - - token_quota : typing.Optional[UpdateTokenQuota] - - identity_assertion_authorization_grant : typing.Optional[UpdateIdentityAssertionAuthorizationGrant] - - anonymous_sessions : typing.Optional[UpdateAnonymousSessions] - - enforce_anon_session_transfer_network_binding : typing.Optional[ClientAnonymousSessionTransferNetworkBindingEnum] - - form_template : typing.Optional[str] - Form template for WS-Federation protocol - - addons : typing.Optional[ClientAddons] - - client_metadata : typing.Optional[ClientMetadata] - - mobile : typing.Optional[ClientMobile] - Configuration related to native mobile apps - - initiate_login_uri : typing.Optional[str] - Initiate login uri, must be https - - native_social_login : typing.Optional[NativeSocialLoginPatch] - - fedcm_login : typing.Optional[FedCmLoginPatch] - - refresh_token : typing.Optional[ClientRefreshTokenConfiguration] - - default_organization : typing.Optional[ClientDefaultOrganization] - - organization_usage : typing.Optional[ClientOrganizationUsagePatchEnum] - - organization_require_behavior : typing.Optional[ClientOrganizationRequireBehaviorPatchEnum] - - organization_discovery_methods : typing.Optional[typing.Sequence[ClientOrganizationDiscoveryEnum]] - Defines the available methods for organization discovery during the `pre_login_prompt`. Users can discover their organization either by `email`, `organization_name` or both. - - client_authentication_methods : typing.Optional[ClientAuthenticationMethod] - - require_pushed_authorization_requests : typing.Optional[bool] - Makes the use of Pushed Authorization Requests mandatory for this client - - require_proof_of_possession : typing.Optional[bool] - Makes the use of Proof-of-Possession mandatory for this client - - signed_request_object : typing.Optional[ClientSignedRequestObjectWithCredentialId] - - token_vault_privileged_access : typing.Optional[ClientTokenVaultPrivilegedAccessWithCredentialId] - - compliance_level : typing.Optional[ClientComplianceLevelEnum] - - skip_non_verifiable_callback_uri_confirmation_prompt : typing.Optional[bool] - Controls whether a confirmation prompt is shown during login flows when the redirect URI uses non-verifiable callback URIs (for example, a custom URI schema such as `myapp://`, or `localhost`). - If set to true, a confirmation prompt will not be shown. We recommend that this is set to false for improved protection from malicious apps. - See https://auth0.com/docs/secure/security-guidance/measures-against-app-impersonation for more information. - - token_exchange : typing.Optional[ClientTokenExchangeConfigurationOrNull] - - par_request_expiry : typing.Optional[int] - Specifies how long, in seconds, a Pushed Authorization Request URI remains valid - - express_configuration : typing.Optional[ExpressConfigurationOrNull] - - b_2_b_integration_configuration : typing.Optional[B2BIntegrationConfiguration] - - my_organization_configuration : typing.Optional[ClientMyOrganizationPatchConfiguration] - - google_account_linking : typing.Optional[GoogleAccountLinkingConfigurationOrNull] - - async_approval_notification_channels : typing.Optional[ClientAsyncApprovalNotificationsChannelsApiPatchConfiguration] - - third_party_security_mode : typing.Optional[ClientThirdPartySecurityModeEnum] - - redirection_policy : typing.Optional[ClientRedirectionPolicyEnum] - - agent_id : typing.Optional[str] - ID of the agent to associate with this client, or null to remove the association. - - oidc_support : typing.Optional[ClientOidcSupportPatch] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[UpdateClientResponseContent] - Client successfully updated. - """ - _response = self._client_wrapper.httpx_client.request( - f"clients/{quote_path_param(id)}", - method="PATCH", - json={ - "name": name, - "description": description, - "client_secret": client_secret, - "logo_uri": logo_uri, - "callbacks": callbacks, - "oidc_logout": convert_and_respect_annotation_metadata( - object_=oidc_logout, annotation=ClientOidcBackchannelLogoutSettings, direction="write" - ), - "oidc_backchannel_logout": convert_and_respect_annotation_metadata( - object_=oidc_backchannel_logout, annotation=ClientOidcBackchannelLogoutSettings, direction="write" - ), - "session_transfer": convert_and_respect_annotation_metadata( - object_=session_transfer, - annotation=typing.Optional[ClientSessionTransferConfiguration], - direction="write", - ), - "allowed_origins": allowed_origins, - "web_origins": web_origins, - "grant_types": grant_types, - "client_aliases": client_aliases, - "allowed_clients": allowed_clients, - "allowed_logout_urls": allowed_logout_urls, - "jwt_configuration": convert_and_respect_annotation_metadata( - object_=jwt_configuration, annotation=ClientJwtConfiguration, direction="write" - ), - "encryption_key": convert_and_respect_annotation_metadata( - object_=encryption_key, annotation=typing.Optional[ClientEncryptionKey], direction="write" - ), - "sso": sso, - "cross_origin_authentication": cross_origin_authentication, - "cross_origin_loc": cross_origin_loc, - "sso_disabled": sso_disabled, - "custom_login_page_on": custom_login_page_on, - "token_endpoint_auth_method": token_endpoint_auth_method, - "is_token_endpoint_ip_header_trusted": is_token_endpoint_ip_header_trusted, - "app_type": app_type, - "is_first_party": is_first_party, - "oidc_conformant": oidc_conformant, - "custom_login_page": custom_login_page, - "custom_login_page_preview": custom_login_page_preview, - "token_quota": convert_and_respect_annotation_metadata( - object_=token_quota, annotation=typing.Optional[UpdateTokenQuota], direction="write" - ), - "identity_assertion_authorization_grant": convert_and_respect_annotation_metadata( - object_=identity_assertion_authorization_grant, - annotation=typing.Optional[UpdateIdentityAssertionAuthorizationGrant], - direction="write", - ), - "anonymous_sessions": convert_and_respect_annotation_metadata( - object_=anonymous_sessions, annotation=typing.Optional[UpdateAnonymousSessions], direction="write" - ), - "enforce_anon_session_transfer_network_binding": enforce_anon_session_transfer_network_binding, - "form_template": form_template, - "addons": convert_and_respect_annotation_metadata( - object_=addons, annotation=ClientAddons, direction="write" - ), - "client_metadata": client_metadata, - "mobile": convert_and_respect_annotation_metadata( - object_=mobile, annotation=ClientMobile, direction="write" - ), - "initiate_login_uri": initiate_login_uri, - "native_social_login": convert_and_respect_annotation_metadata( - object_=native_social_login, annotation=typing.Optional[NativeSocialLoginPatch], direction="write" - ), - "fedcm_login": convert_and_respect_annotation_metadata( - object_=fedcm_login, annotation=typing.Optional[FedCmLoginPatch], direction="write" - ), - "refresh_token": convert_and_respect_annotation_metadata( - object_=refresh_token, - annotation=typing.Optional[ClientRefreshTokenConfiguration], - direction="write", - ), - "default_organization": convert_and_respect_annotation_metadata( - object_=default_organization, - annotation=typing.Optional[ClientDefaultOrganization], - direction="write", - ), - "organization_usage": organization_usage, - "organization_require_behavior": organization_require_behavior, - "organization_discovery_methods": organization_discovery_methods, - "client_authentication_methods": convert_and_respect_annotation_metadata( - object_=client_authentication_methods, - annotation=typing.Optional[ClientAuthenticationMethod], - direction="write", - ), - "require_pushed_authorization_requests": require_pushed_authorization_requests, - "require_proof_of_possession": require_proof_of_possession, - "signed_request_object": convert_and_respect_annotation_metadata( - object_=signed_request_object, - annotation=ClientSignedRequestObjectWithCredentialId, - direction="write", - ), - "token_vault_privileged_access": convert_and_respect_annotation_metadata( - object_=token_vault_privileged_access, - annotation=ClientTokenVaultPrivilegedAccessWithCredentialId, - direction="write", - ), - "compliance_level": compliance_level, - "skip_non_verifiable_callback_uri_confirmation_prompt": skip_non_verifiable_callback_uri_confirmation_prompt, - "token_exchange": convert_and_respect_annotation_metadata( - object_=token_exchange, - annotation=typing.Optional[ClientTokenExchangeConfigurationOrNull], - direction="write", - ), - "par_request_expiry": par_request_expiry, - "express_configuration": convert_and_respect_annotation_metadata( - object_=express_configuration, - annotation=typing.Optional[ExpressConfigurationOrNull], - direction="write", - ), - "b2b_integration_configuration": convert_and_respect_annotation_metadata( - object_=b_2_b_integration_configuration, annotation=B2BIntegrationConfiguration, direction="write" - ), - "my_organization_configuration": convert_and_respect_annotation_metadata( - object_=my_organization_configuration, - annotation=typing.Optional[ClientMyOrganizationPatchConfiguration], - direction="write", - ), - "google_account_linking": convert_and_respect_annotation_metadata( - object_=google_account_linking, - annotation=typing.Optional[GoogleAccountLinkingConfigurationOrNull], - direction="write", - ), - "async_approval_notification_channels": async_approval_notification_channels, - "third_party_security_mode": third_party_security_mode, - "redirection_policy": redirection_policy, - "agent_id": agent_id, - "oidc_support": convert_and_respect_annotation_metadata( - object_=oidc_support, annotation=typing.Optional[ClientOidcSupportPatch], direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateClientResponseContent, - parse_obj_as( - type_=UpdateClientResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def rotate_secret( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[RotateClientSecretResponseContent]: - """ - Rotate a client secret. - - This endpoint cannot be used with clients configured with Private Key JWT authentication method (client_authentication_methods configured with private_key_jwt). The generated secret is NOT base64 encoded. - - For more information, read [Rotate Client Secrets](https://www.auth0.com/docs/get-started/applications/rotate-client-secret). - - Parameters - ---------- - id : str - ID of the client that will rotate secrets. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[RotateClientSecretResponseContent] - Secret successfully rotated. - """ - _response = self._client_wrapper.httpx_client.request( - f"clients/{quote_path_param(id)}/rotate-secret", - method="POST", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - RotateClientSecretResponseContent, - parse_obj_as( - type_=RotateClientSecretResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawClientsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - include_totals: typing.Optional[bool] = True, - is_global: typing.Optional[bool] = None, - is_first_party: typing.Optional[bool] = None, - app_type: typing.Optional[str] = None, - external_client_id: typing.Optional[str] = None, - agent_id: typing.Optional[str] = None, - q: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[Client, ListClientsOffsetPaginatedResponseContent]: - """ - Retrieve clients (applications and SSO integrations) matching provided filters. A list of fields to include or exclude may also be specified. - For more information, read [Applications in Auth0](https://www.auth0.com/docs/get-started/applications) and [Single Sign-On](https://www.auth0.com/docs/authenticate/single-sign-on). - - - The following can be retrieved with any scope: - `client_id`, `app_type`, `name`, and `description`. - - The following properties can only be retrieved with the `read:clients` or - `read:client_keys` scope: - `callbacks`, `oidc_logout`, `allowed_origins`, - `web_origins`, `tenant`, `global`, `config_route`, - `callback_url_template`, `jwt_configuration`, - `jwt_configuration.lifetime_in_seconds`, `jwt_configuration.secret_encoded`, - `jwt_configuration.scopes`, `jwt_configuration.alg`, `api_type`, - `logo_uri`, `allowed_clients`, `owners`, `custom_login_page`, - `custom_login_page_on`, `sso`, `addons`, `form_template`, - `custom_login_page_codeview`, `resource_servers`, `client_metadata`, - `mobile`, `mobile.android`, `mobile.ios`, `allowed_logout_urls`, - `token_endpoint_auth_method`, `is_first_party`, `oidc_conformant`, - `is_token_endpoint_ip_header_trusted`, `initiate_login_uri`, `grant_types`, - `refresh_token`, `refresh_token.rotation_type`, `refresh_token.expiration_type`, - `refresh_token.leeway`, `refresh_token.token_lifetime`, `refresh_token.policies`, `organization_usage`, - `organization_require_behavior`. - - The following properties can only be retrieved with the - `read:client_keys` or `read:client_credentials` scope: - `encryption_key`, `encryption_key.pub`, `encryption_key.cert`, - `client_secret`, `client_authentication_methods` and `signing_key`. - - Parameters - ---------- - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). - - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. Default value is 50, maximum value is 100 - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - is_global : typing.Optional[bool] - Optional filter on the global client parameter. - - is_first_party : typing.Optional[bool] - Optional filter on whether or not a client is a first-party client. - - app_type : typing.Optional[str] - Optional filter by a comma-separated list of application types. - - external_client_id : typing.Optional[str] - Optional filter by the Client ID Metadata Document URI for CIMD-registered clients. - - agent_id : typing.Optional[str] - Optional filter by the agent associated with the client.
Additional Restrictions:
  • Cannot be used in combination with other filters
  • Only fields, include_fields, page, per_page, and include_totals are supported alongside it
  • Checkpoint pagination (from, take) is not supported
- - q : typing.Optional[str] - Advanced Query in Lucene syntax.
Permitted Queries:
  • client_grant.organization_id:{organization_id}
  • client_grant.allow_any_organization:true
Additional Restrictions:
  • Cannot be used in combination with other filters
  • Requires use of the from and take paging parameters (checkpoint paginatinon)
  • Reduced rate limits apply. See Rate Limit Configurations
Note: Recent updates may not be immediately reflected in query results - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[Client, ListClientsOffsetPaginatedResponseContent] - Clients successfully retrieved. - """ - page = page if page is not None else 0 - - _response = await self._client_wrapper.httpx_client.request( - "clients", - method="GET", - params={ - "fields": fields, - "include_fields": include_fields, - "page": page, - "per_page": per_page, - "include_totals": include_totals, - "is_global": is_global, - "is_first_party": is_first_party, - "app_type": app_type, - "external_client_id": external_client_id, - "agent_id": agent_id, - "q": q, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListClientsOffsetPaginatedResponseContent, - parse_obj_as( - type_=ListClientsOffsetPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.clients - _has_next = len(_items or []) > 0 - - async def _get_next(): - return await self.list( - fields=fields, - include_fields=include_fields, - page=page + 1, - per_page=per_page, - include_totals=include_totals, - is_global=is_global, - is_first_party=is_first_party, - app_type=app_type, - external_client_id=external_client_id, - agent_id=agent_id, - q=q, - request_options=request_options, - ) - - return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - *, - name: str, - description: typing.Optional[str] = OMIT, - logo_uri: typing.Optional[str] = OMIT, - callbacks: typing.Optional[typing.Sequence[str]] = OMIT, - oidc_logout: typing.Optional[ClientOidcBackchannelLogoutSettings] = OMIT, - oidc_backchannel_logout: typing.Optional[ClientOidcBackchannelLogoutSettings] = OMIT, - session_transfer: typing.Optional[ClientSessionTransferConfiguration] = OMIT, - allowed_origins: typing.Optional[typing.Sequence[str]] = OMIT, - web_origins: typing.Optional[typing.Sequence[str]] = OMIT, - client_aliases: typing.Optional[typing.Sequence[str]] = OMIT, - allowed_clients: typing.Optional[typing.Sequence[str]] = OMIT, - allowed_logout_urls: typing.Optional[typing.Sequence[str]] = OMIT, - grant_types: typing.Optional[typing.Sequence[str]] = OMIT, - token_endpoint_auth_method: typing.Optional[ClientTokenEndpointAuthMethodEnum] = OMIT, - is_token_endpoint_ip_header_trusted: typing.Optional[bool] = OMIT, - app_type: typing.Optional[ClientAppTypeEnum] = OMIT, - is_first_party: typing.Optional[bool] = OMIT, - oidc_conformant: typing.Optional[bool] = OMIT, - jwt_configuration: typing.Optional[ClientJwtConfiguration] = OMIT, - encryption_key: typing.Optional[ClientEncryptionKey] = OMIT, - sso: typing.Optional[bool] = OMIT, - cross_origin_authentication: typing.Optional[bool] = OMIT, - cross_origin_loc: typing.Optional[str] = OMIT, - sso_disabled: typing.Optional[bool] = OMIT, - custom_login_page_on: typing.Optional[bool] = OMIT, - custom_login_page: typing.Optional[str] = OMIT, - custom_login_page_preview: typing.Optional[str] = OMIT, - form_template: typing.Optional[str] = OMIT, - addons: typing.Optional[ClientAddons] = OMIT, - client_metadata: typing.Optional[ClientMetadata] = OMIT, - mobile: typing.Optional[ClientMobile] = OMIT, - initiate_login_uri: typing.Optional[str] = OMIT, - native_social_login: typing.Optional[NativeSocialLogin] = OMIT, - fedcm_login: typing.Optional[FedCmLogin] = OMIT, - refresh_token: typing.Optional[ClientRefreshTokenConfiguration] = OMIT, - default_organization: typing.Optional[ClientDefaultOrganization] = OMIT, - organization_usage: typing.Optional[ClientOrganizationUsageEnum] = OMIT, - organization_require_behavior: typing.Optional[ClientOrganizationRequireBehaviorEnum] = OMIT, - organization_discovery_methods: typing.Optional[typing.Sequence[ClientOrganizationDiscoveryEnum]] = OMIT, - client_authentication_methods: typing.Optional[ClientCreateAuthenticationMethod] = OMIT, - require_pushed_authorization_requests: typing.Optional[bool] = OMIT, - require_proof_of_possession: typing.Optional[bool] = OMIT, - signed_request_object: typing.Optional[ClientSignedRequestObjectWithPublicKey] = OMIT, - token_vault_privileged_access: typing.Optional[ClientTokenVaultPrivilegedAccessWithPublicKey] = OMIT, - compliance_level: typing.Optional[ClientComplianceLevelEnum] = OMIT, - skip_non_verifiable_callback_uri_confirmation_prompt: typing.Optional[bool] = OMIT, - token_exchange: typing.Optional[ClientTokenExchangeConfiguration] = OMIT, - par_request_expiry: typing.Optional[int] = OMIT, - token_quota: typing.Optional[CreateTokenQuota] = OMIT, - resource_server_identifier: typing.Optional[str] = OMIT, - identity_assertion_authorization_grant: typing.Optional[CreateIdentityAssertionAuthorizationGrant] = OMIT, - anonymous_sessions: typing.Optional[CreateAnonymousSessions] = OMIT, - enforce_anon_session_transfer_network_binding: typing.Optional[ - ClientAnonymousSessionTransferNetworkBindingEnum - ] = OMIT, - third_party_security_mode: typing.Optional[ClientThirdPartySecurityModeEnum] = OMIT, - redirection_policy: typing.Optional[ClientRedirectionPolicyEnum] = OMIT, - express_configuration: typing.Optional[ExpressConfiguration] = OMIT, - b_2_b_integration_configuration: typing.Optional[B2BIntegrationConfiguration] = OMIT, - my_organization_configuration: typing.Optional[ClientMyOrganizationPostConfiguration] = OMIT, - google_account_linking: typing.Optional[GoogleAccountLinkingConfigurationCreate] = OMIT, - async_approval_notification_channels: typing.Optional[ - ClientAsyncApprovalNotificationsChannelsApiPostConfiguration - ] = OMIT, - agent_id: typing.Optional[str] = OMIT, - oidc_support: typing.Optional[ClientOidcSupportPost] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[CreateClientResponseContent]: - """ - Create a new client (application or SSO integration). For more information, read [Create Applications](https://www.auth0.com/docs/get-started/auth0-overview/create-applications) - [API Endpoints for Single Sign-On](https://www.auth0.com/docs/authenticate/single-sign-on/api-endpoints-for-single-sign-on). - - Notes: - - We recommend leaving the `client_secret` parameter unspecified to allow the generation of a safe secret. - - The `client_authentication_methods` and `token_endpoint_auth_method` properties are mutually exclusive. Use - `client_authentication_methods` to configure the client with Private Key JWT authentication method. Otherwise, use `token_endpoint_auth_method` - to configure the client with client secret (basic or post) or with no authentication method (none). - - When using `client_authentication_methods` to configure the client with Private Key JWT authentication method, specify fully defined credentials. - These credentials will be automatically enabled for Private Key JWT authentication on the client. - - To configure `client_authentication_methods`, the `create:client_credentials` scope is required. - - To configure `client_authentication_methods`, the property `jwt_configuration.alg` must be set to RS256. - - SSO Integrations created via this endpoint will accept login requests and share user profile information. - - Parameters - ---------- - name : str - Name of this client (min length: 1 character, does not allow `<` or `>`). - - description : typing.Optional[str] - Free text description of this client (max length: 140 characters). - - logo_uri : typing.Optional[str] - URL of the logo to display for this client. Recommended size is 150x150 pixels. - - callbacks : typing.Optional[typing.Sequence[str]] - Comma-separated list of URLs whitelisted for Auth0 to use as a callback to the client after authentication. - - oidc_logout : typing.Optional[ClientOidcBackchannelLogoutSettings] - - oidc_backchannel_logout : typing.Optional[ClientOidcBackchannelLogoutSettings] - Configuration for OIDC backchannel logout (deprecated, in favor of oidc_logout) - - session_transfer : typing.Optional[ClientSessionTransferConfiguration] - - allowed_origins : typing.Optional[typing.Sequence[str]] - Comma-separated list of URLs allowed to make requests from JavaScript to Auth0 API (typically used with CORS). By default, all your callback URLs will be allowed. This field allows you to enter other origins if necessary. You can also use wildcards at the subdomain level (e.g., https://*.contoso.com). Query strings and hash information are not taken into account when validating these URLs. - - web_origins : typing.Optional[typing.Sequence[str]] - Comma-separated list of allowed origins for use with Cross-Origin Authentication, Device Flow, and web message response mode. - - client_aliases : typing.Optional[typing.Sequence[str]] - List of audiences/realms for SAML protocol. Used by the wsfed addon. - - allowed_clients : typing.Optional[typing.Sequence[str]] - List of allow clients and API ids that are allowed to make delegation requests. Empty means all all your clients are allowed. - - allowed_logout_urls : typing.Optional[typing.Sequence[str]] - Comma-separated list of URLs that are valid to redirect to after logout from Auth0. Wildcards are allowed for subdomains. - - grant_types : typing.Optional[typing.Sequence[str]] - List of grant types supported for this application. Can include `authorization_code`, `implicit`, `refresh_token`, `client_credentials`, `password`, `http://auth0.com/oauth/grant-type/password-realm`, `http://auth0.com/oauth/grant-type/mfa-oob`, `http://auth0.com/oauth/grant-type/mfa-otp`, `http://auth0.com/oauth/grant-type/mfa-recovery-code`, `urn:openid:params:grant-type:ciba`, `urn:ietf:params:oauth:grant-type:device_code`, and `urn:auth0:params:oauth:grant-type:token-exchange:federated-connection-access-token`. - - token_endpoint_auth_method : typing.Optional[ClientTokenEndpointAuthMethodEnum] - - is_token_endpoint_ip_header_trusted : typing.Optional[bool] - If true, trust that the IP specified in the `auth0-forwarded-for` header is the end-user's IP for brute-force-protection on token endpoint. - - app_type : typing.Optional[ClientAppTypeEnum] - - is_first_party : typing.Optional[bool] - Whether this client a first party client or not - - oidc_conformant : typing.Optional[bool] - Whether this client conforms to strict OIDC specifications (true) or uses legacy features (false). - - jwt_configuration : typing.Optional[ClientJwtConfiguration] - - encryption_key : typing.Optional[ClientEncryptionKey] - - sso : typing.Optional[bool] - Applies only to SSO clients and determines whether Auth0 will handle Single Sign On (true) or whether the Identity Provider will (false). - - cross_origin_authentication : typing.Optional[bool] - Whether this client can be used to make cross-origin authentication requests (true) or it is not allowed to make such requests (false). - - cross_origin_loc : typing.Optional[str] - URL of the location in your site where the cross origin verification takes place for the cross-origin auth flow when performing Auth in your own domain instead of Auth0 hosted login page. - - sso_disabled : typing.Optional[bool] - true to disable Single Sign On, false otherwise (default: false) - - custom_login_page_on : typing.Optional[bool] - true if the custom login page is to be used, false otherwise. Defaults to true - - custom_login_page : typing.Optional[str] - The content (HTML, CSS, JS) of the custom login page. - - custom_login_page_preview : typing.Optional[str] - The content (HTML, CSS, JS) of the custom login page. (Used on Previews) - - form_template : typing.Optional[str] - HTML form template to be used for WS-Federation. - - addons : typing.Optional[ClientAddons] - - client_metadata : typing.Optional[ClientMetadata] - - mobile : typing.Optional[ClientMobile] - - initiate_login_uri : typing.Optional[str] - Initiate login uri, must be https - - native_social_login : typing.Optional[NativeSocialLogin] - - fedcm_login : typing.Optional[FedCmLogin] - - refresh_token : typing.Optional[ClientRefreshTokenConfiguration] - - default_organization : typing.Optional[ClientDefaultOrganization] - - organization_usage : typing.Optional[ClientOrganizationUsageEnum] - - organization_require_behavior : typing.Optional[ClientOrganizationRequireBehaviorEnum] - - organization_discovery_methods : typing.Optional[typing.Sequence[ClientOrganizationDiscoveryEnum]] - Defines the available methods for organization discovery during the `pre_login_prompt`. Users can discover their organization either by `email`, `organization_name` or both. - - client_authentication_methods : typing.Optional[ClientCreateAuthenticationMethod] - - require_pushed_authorization_requests : typing.Optional[bool] - Makes the use of Pushed Authorization Requests mandatory for this client - - require_proof_of_possession : typing.Optional[bool] - Makes the use of Proof-of-Possession mandatory for this client - - signed_request_object : typing.Optional[ClientSignedRequestObjectWithPublicKey] - - token_vault_privileged_access : typing.Optional[ClientTokenVaultPrivilegedAccessWithPublicKey] - - compliance_level : typing.Optional[ClientComplianceLevelEnum] - - skip_non_verifiable_callback_uri_confirmation_prompt : typing.Optional[bool] - Controls whether a confirmation prompt is shown during login flows when the redirect URI uses non-verifiable callback URIs (for example, a custom URI schema such as `myapp://`, or `localhost`). - If set to true, a confirmation prompt will not be shown. We recommend that this is set to false for improved protection from malicious apps. - See https://auth0.com/docs/secure/security-guidance/measures-against-app-impersonation for more information. - - token_exchange : typing.Optional[ClientTokenExchangeConfiguration] - - par_request_expiry : typing.Optional[int] - Specifies how long, in seconds, a Pushed Authorization Request URI remains valid - - token_quota : typing.Optional[CreateTokenQuota] - - resource_server_identifier : typing.Optional[str] - The identifier of the resource server that this client is linked to. - - identity_assertion_authorization_grant : typing.Optional[CreateIdentityAssertionAuthorizationGrant] - - anonymous_sessions : typing.Optional[CreateAnonymousSessions] - - enforce_anon_session_transfer_network_binding : typing.Optional[ClientAnonymousSessionTransferNetworkBindingEnum] - - third_party_security_mode : typing.Optional[ClientThirdPartySecurityModeEnum] - - redirection_policy : typing.Optional[ClientRedirectionPolicyEnum] - - express_configuration : typing.Optional[ExpressConfiguration] - - b_2_b_integration_configuration : typing.Optional[B2BIntegrationConfiguration] - - my_organization_configuration : typing.Optional[ClientMyOrganizationPostConfiguration] - - google_account_linking : typing.Optional[GoogleAccountLinkingConfigurationCreate] - - async_approval_notification_channels : typing.Optional[ClientAsyncApprovalNotificationsChannelsApiPostConfiguration] - - agent_id : typing.Optional[str] - ID of the agent to associate with this client. - - oidc_support : typing.Optional[ClientOidcSupportPost] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CreateClientResponseContent] - Client successfully created. - """ - _response = await self._client_wrapper.httpx_client.request( - "clients", - method="POST", - json={ - "name": name, - "description": description, - "logo_uri": logo_uri, - "callbacks": callbacks, - "oidc_logout": convert_and_respect_annotation_metadata( - object_=oidc_logout, annotation=ClientOidcBackchannelLogoutSettings, direction="write" - ), - "oidc_backchannel_logout": convert_and_respect_annotation_metadata( - object_=oidc_backchannel_logout, annotation=ClientOidcBackchannelLogoutSettings, direction="write" - ), - "session_transfer": convert_and_respect_annotation_metadata( - object_=session_transfer, - annotation=typing.Optional[ClientSessionTransferConfiguration], - direction="write", - ), - "allowed_origins": allowed_origins, - "web_origins": web_origins, - "client_aliases": client_aliases, - "allowed_clients": allowed_clients, - "allowed_logout_urls": allowed_logout_urls, - "grant_types": grant_types, - "token_endpoint_auth_method": token_endpoint_auth_method, - "is_token_endpoint_ip_header_trusted": is_token_endpoint_ip_header_trusted, - "app_type": app_type, - "is_first_party": is_first_party, - "oidc_conformant": oidc_conformant, - "jwt_configuration": convert_and_respect_annotation_metadata( - object_=jwt_configuration, annotation=ClientJwtConfiguration, direction="write" - ), - "encryption_key": convert_and_respect_annotation_metadata( - object_=encryption_key, annotation=typing.Optional[ClientEncryptionKey], direction="write" - ), - "sso": sso, - "cross_origin_authentication": cross_origin_authentication, - "cross_origin_loc": cross_origin_loc, - "sso_disabled": sso_disabled, - "custom_login_page_on": custom_login_page_on, - "custom_login_page": custom_login_page, - "custom_login_page_preview": custom_login_page_preview, - "form_template": form_template, - "addons": convert_and_respect_annotation_metadata( - object_=addons, annotation=ClientAddons, direction="write" - ), - "client_metadata": client_metadata, - "mobile": convert_and_respect_annotation_metadata( - object_=mobile, annotation=ClientMobile, direction="write" - ), - "initiate_login_uri": initiate_login_uri, - "native_social_login": convert_and_respect_annotation_metadata( - object_=native_social_login, annotation=NativeSocialLogin, direction="write" - ), - "fedcm_login": convert_and_respect_annotation_metadata( - object_=fedcm_login, annotation=FedCmLogin, direction="write" - ), - "refresh_token": convert_and_respect_annotation_metadata( - object_=refresh_token, - annotation=typing.Optional[ClientRefreshTokenConfiguration], - direction="write", - ), - "default_organization": convert_and_respect_annotation_metadata( - object_=default_organization, - annotation=typing.Optional[ClientDefaultOrganization], - direction="write", - ), - "organization_usage": organization_usage, - "organization_require_behavior": organization_require_behavior, - "organization_discovery_methods": organization_discovery_methods, - "client_authentication_methods": convert_and_respect_annotation_metadata( - object_=client_authentication_methods, - annotation=ClientCreateAuthenticationMethod, - direction="write", - ), - "require_pushed_authorization_requests": require_pushed_authorization_requests, - "require_proof_of_possession": require_proof_of_possession, - "signed_request_object": convert_and_respect_annotation_metadata( - object_=signed_request_object, annotation=ClientSignedRequestObjectWithPublicKey, direction="write" - ), - "token_vault_privileged_access": convert_and_respect_annotation_metadata( - object_=token_vault_privileged_access, - annotation=ClientTokenVaultPrivilegedAccessWithPublicKey, - direction="write", - ), - "compliance_level": compliance_level, - "skip_non_verifiable_callback_uri_confirmation_prompt": skip_non_verifiable_callback_uri_confirmation_prompt, - "token_exchange": convert_and_respect_annotation_metadata( - object_=token_exchange, annotation=ClientTokenExchangeConfiguration, direction="write" - ), - "par_request_expiry": par_request_expiry, - "token_quota": convert_and_respect_annotation_metadata( - object_=token_quota, annotation=CreateTokenQuota, direction="write" - ), - "resource_server_identifier": resource_server_identifier, - "identity_assertion_authorization_grant": convert_and_respect_annotation_metadata( - object_=identity_assertion_authorization_grant, - annotation=CreateIdentityAssertionAuthorizationGrant, - direction="write", - ), - "anonymous_sessions": convert_and_respect_annotation_metadata( - object_=anonymous_sessions, annotation=CreateAnonymousSessions, direction="write" - ), - "enforce_anon_session_transfer_network_binding": enforce_anon_session_transfer_network_binding, - "third_party_security_mode": third_party_security_mode, - "redirection_policy": redirection_policy, - "express_configuration": convert_and_respect_annotation_metadata( - object_=express_configuration, annotation=ExpressConfiguration, direction="write" - ), - "b2b_integration_configuration": convert_and_respect_annotation_metadata( - object_=b_2_b_integration_configuration, annotation=B2BIntegrationConfiguration, direction="write" - ), - "my_organization_configuration": convert_and_respect_annotation_metadata( - object_=my_organization_configuration, - annotation=ClientMyOrganizationPostConfiguration, - direction="write", - ), - "google_account_linking": convert_and_respect_annotation_metadata( - object_=google_account_linking, - annotation=GoogleAccountLinkingConfigurationCreate, - direction="write", - ), - "async_approval_notification_channels": async_approval_notification_channels, - "agent_id": agent_id, - "oidc_support": convert_and_respect_annotation_metadata( - object_=oidc_support, annotation=ClientOidcSupportPost, direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateClientResponseContent, - parse_obj_as( - type_=CreateClientResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def preview_cimd_metadata( - self, *, external_client_id: str, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[PreviewCimdMetadataResponseContent]: - """ - - Fetches and validates a Client ID Metadata Document without creating a client. - Returns the raw metadata and how it would be mapped to Auth0 client fields. - This endpoint is useful for testing metadata URIs before creating CIMD clients. - - - Parameters - ---------- - external_client_id : str - URL to the Client ID Metadata Document - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PreviewCimdMetadataResponseContent] - Metadata successfully fetched and validated, or retrieval error returned with errors array. - """ - _response = await self._client_wrapper.httpx_client.request( - "clients/cimd/preview", - method="POST", - json={ - "external_client_id": external_client_id, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PreviewCimdMetadataResponseContent, - parse_obj_as( - type_=PreviewCimdMetadataResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 500: - raise InternalServerError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def register_cimd_client( - self, *, external_client_id: str, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[RegisterCimdClientResponseContent]: - """ - Idempotent registration for Client ID Metadata Document (CIMD) clients. - Uses external_client_id as the unique identifier for upsert operations. - - **Create:** Returns 201 when a new client is created (requires `create:clients` scope). - **Update:** Returns 200 when an existing client is updated (requires `update:clients` scope). - - This endpoint automatically: - - Fetches and validates the metadata document - - Maps CIMD fields to Auth0 client configuration - - Creates/rotates credentials from the JWKS - - Enforces CIMD security policies (HTTPS-only, no shared secrets) - - Parameters - ---------- - external_client_id : str - URL to the Client ID Metadata Document. Acts as the unique identifier for upsert operations. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[RegisterCimdClientResponseContent] - CIMD client successfully updated (idempotent). - """ - _response = await self._client_wrapper.httpx_client.request( - "clients/cimd/register", - method="POST", - json={ - "external_client_id": external_client_id, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - RegisterCimdClientResponseContent, - parse_obj_as( - type_=RegisterCimdClientResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 500: - raise InternalServerError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def search( - self, - *, - q: typing.Optional[str] = None, - parser: typing.Optional[SearchParserEnum] = None, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - take: typing.Optional[int] = 50, - from_: typing.Optional[str] = None, - sort: typing.Optional[ClientSortFieldEnum] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[ClientSearchResponse, SearchClientsResponseContent]: - """ - Search clients using SCIM or Lucene filter syntax with low-latency, eventually consistent results. - Use the parser parameter to specify "scim" or "lucene" syntax (default: "lucene"). - This endpoint provides an alternative to the standard GET /clients endpoint with better performance - for complex queries. Results may not reflect recent updates immediately. - - - This endpoint only supports `read:clients` and `read:client_summary` scopes. The `read:client_keys` and `read:client_credentials` scopes are not supported. - - The following fields are never returned by this endpoint: - - `client_secret` - - `encryption_key` - - `signing_keys` - - `owners` - - `addons` - - Parameters - ---------- - q : typing.Optional[str] - Filter expression in SCIM or Lucene syntax (depending on parser parameter). SCIM examples: `name eq "Auth0"`, `name sw "auth" and app_type eq "spa"`. SCIM operators: eq, ne, sw, ew, co, pr, gt, ge, lt, le, and, or.

Supported Fields:
  • client_id - Auth0 client ID (case-sensitive, exact match)
  • external_client_id - URL of the Client ID Metadata Document (CIMD); case-sensitive, exact match
  • name - Client name (supports contains, starts-with, ends-with operators; sortable)
  • app_type - Application type (e.g. "spa", "native", "non_interactive")
  • is_first_party - Whether the client is first-party (boolean)
  • updated_at - Last update timestamp (supports date range operators; sortable)
  • metadata.{key} - Filter by client metadata key-value pairs (max 2-level key depth, values indexed up to 64 characters)
  • client_grant.organization_id - Filter by associated organization ID
  • client_grant.allow_any_organization - Filter by allow any organization setting
Maximum 5 filter operations per query. Results are eventually consistent and may not reflect recent updates. - - parser : typing.Optional[SearchParserEnum] - Query parser to use for the filter expression. Use "scim" for SCIM filter syntax or "lucene" for Lucene query syntax (default). - - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude in the response. Works with the include_fields parameter to control projection mode. Maximum 50 fields. - - include_fields : typing.Optional[bool] - Controls field projection mode. Set to true to include only fields specified in the fields parameter. Set to false to exclude fields specified in the fields parameter. Defaults to true if not specified. - - take : typing.Optional[int] - Maximum number of results to return per page (1-100). Defaults to 50. - - from_ : typing.Optional[str] - Cursor for the next page of results. Use the value from the next field in the previous response. - - sort : typing.Optional[ClientSortFieldEnum] - Field name to sort results by in ascending order. Defaults to insertion order (oldest first) if not provided. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[ClientSearchResponse, SearchClientsResponseContent] - Clients successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - "clients/search", - method="GET", - params={ - "q": q, - "parser": parser, - "fields": fields, - "include_fields": include_fields, - "take": take, - "from": from_, - "sort": sort, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - SearchClientsResponseContent, - parse_obj_as( - type_=SearchClientsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.clients - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - - async def _get_next(): - return await self.search( - q=q, - parser=parser, - fields=fields, - include_fields=include_fields, - take=take, - from_=_parsed_next, - sort=sort, - request_options=request_options, - ) - - return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 500: - raise InternalServerError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 504: - raise GatewayTimeoutError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def get( - self, - id: str, - *, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[GetClientResponseContent]: - """ - Retrieve client details by ID. Clients are SSO connections or Applications linked with your Auth0 tenant. A list of fields to include or exclude may also be specified. - For more information, read [Applications in Auth0](https://www.auth0.com/docs/get-started/applications) and [Single Sign-On](https://www.auth0.com/docs/authenticate/single-sign-on). - - - The following properties can be retrieved with any of the scopes: - `client_id`, `app_type`, `name`, and `description`. - - The following properties can only be retrieved with the `read:clients` or - `read:client_keys` scopes: - `callbacks`, `oidc_logout`, `allowed_origins`, - `web_origins`, `tenant`, `global`, `config_route`, - `callback_url_template`, `jwt_configuration`, - `jwt_configuration.lifetime_in_seconds`, `jwt_configuration.secret_encoded`, - `jwt_configuration.scopes`, `jwt_configuration.alg`, `api_type`, - `logo_uri`, `allowed_clients`, `owners`, `custom_login_page`, - `custom_login_page_on`, `sso`, `addons`, `form_template`, - `custom_login_page_codeview`, `resource_servers`, `client_metadata`, - `mobile`, `mobile.android`, `mobile.ios`, `allowed_logout_urls`, - `token_endpoint_auth_method`, `is_first_party`, `oidc_conformant`, - `is_token_endpoint_ip_header_trusted`, `initiate_login_uri`, `grant_types`, - `refresh_token`, `refresh_token.rotation_type`, `refresh_token.expiration_type`, - `refresh_token.leeway`, `refresh_token.token_lifetime`, `refresh_token.policies`, `organization_usage`, - `organization_require_behavior`. - - The following properties can only be retrieved with the `read:client_keys` or `read:client_credentials` scopes: - `encryption_key`, `encryption_key.pub`, `encryption_key.cert`, - `client_secret`, `client_authentication_methods` and `signing_key`. - - Parameters - ---------- - id : str - ID of the client to retrieve. - - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetClientResponseContent] - Client successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - f"clients/{quote_path_param(id)}", - method="GET", - params={ - "fields": fields, - "include_fields": include_fields, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetClientResponseContent, - parse_obj_as( - type_=GetClientResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def delete( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Delete a client and related configuration (rules, connections, etc). - - Parameters - ---------- - id : str - ID of the client to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"clients/{quote_path_param(id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def update( - self, - id: str, - *, - name: typing.Optional[str] = OMIT, - description: typing.Optional[str] = OMIT, - client_secret: typing.Optional[str] = OMIT, - logo_uri: typing.Optional[str] = OMIT, - callbacks: typing.Optional[typing.Sequence[str]] = OMIT, - oidc_logout: typing.Optional[ClientOidcBackchannelLogoutSettings] = OMIT, - oidc_backchannel_logout: typing.Optional[ClientOidcBackchannelLogoutSettings] = OMIT, - session_transfer: typing.Optional[ClientSessionTransferConfiguration] = OMIT, - allowed_origins: typing.Optional[typing.Sequence[str]] = OMIT, - web_origins: typing.Optional[typing.Sequence[str]] = OMIT, - grant_types: typing.Optional[typing.Sequence[str]] = OMIT, - client_aliases: typing.Optional[typing.Sequence[str]] = OMIT, - allowed_clients: typing.Optional[typing.Sequence[str]] = OMIT, - allowed_logout_urls: typing.Optional[typing.Sequence[str]] = OMIT, - jwt_configuration: typing.Optional[ClientJwtConfiguration] = OMIT, - encryption_key: typing.Optional[ClientEncryptionKey] = OMIT, - sso: typing.Optional[bool] = OMIT, - cross_origin_authentication: typing.Optional[bool] = OMIT, - cross_origin_loc: typing.Optional[str] = OMIT, - sso_disabled: typing.Optional[bool] = OMIT, - custom_login_page_on: typing.Optional[bool] = OMIT, - token_endpoint_auth_method: typing.Optional[ClientTokenEndpointAuthMethodOrNullEnum] = OMIT, - is_token_endpoint_ip_header_trusted: typing.Optional[bool] = OMIT, - app_type: typing.Optional[ClientAppTypeEnum] = OMIT, - is_first_party: typing.Optional[bool] = OMIT, - oidc_conformant: typing.Optional[bool] = OMIT, - custom_login_page: typing.Optional[str] = OMIT, - custom_login_page_preview: typing.Optional[str] = OMIT, - token_quota: typing.Optional[UpdateTokenQuota] = OMIT, - identity_assertion_authorization_grant: typing.Optional[UpdateIdentityAssertionAuthorizationGrant] = OMIT, - anonymous_sessions: typing.Optional[UpdateAnonymousSessions] = OMIT, - enforce_anon_session_transfer_network_binding: typing.Optional[ - ClientAnonymousSessionTransferNetworkBindingEnum - ] = OMIT, - form_template: typing.Optional[str] = OMIT, - addons: typing.Optional[ClientAddons] = OMIT, - client_metadata: typing.Optional[ClientMetadata] = OMIT, - mobile: typing.Optional[ClientMobile] = OMIT, - initiate_login_uri: typing.Optional[str] = OMIT, - native_social_login: typing.Optional[NativeSocialLoginPatch] = OMIT, - fedcm_login: typing.Optional[FedCmLoginPatch] = OMIT, - refresh_token: typing.Optional[ClientRefreshTokenConfiguration] = OMIT, - default_organization: typing.Optional[ClientDefaultOrganization] = OMIT, - organization_usage: typing.Optional[ClientOrganizationUsagePatchEnum] = OMIT, - organization_require_behavior: typing.Optional[ClientOrganizationRequireBehaviorPatchEnum] = OMIT, - organization_discovery_methods: typing.Optional[typing.Sequence[ClientOrganizationDiscoveryEnum]] = OMIT, - client_authentication_methods: typing.Optional[ClientAuthenticationMethod] = OMIT, - require_pushed_authorization_requests: typing.Optional[bool] = OMIT, - require_proof_of_possession: typing.Optional[bool] = OMIT, - signed_request_object: typing.Optional[ClientSignedRequestObjectWithCredentialId] = OMIT, - token_vault_privileged_access: typing.Optional[ClientTokenVaultPrivilegedAccessWithCredentialId] = OMIT, - compliance_level: typing.Optional[ClientComplianceLevelEnum] = OMIT, - skip_non_verifiable_callback_uri_confirmation_prompt: typing.Optional[bool] = OMIT, - token_exchange: typing.Optional[ClientTokenExchangeConfigurationOrNull] = OMIT, - par_request_expiry: typing.Optional[int] = OMIT, - express_configuration: typing.Optional[ExpressConfigurationOrNull] = OMIT, - b_2_b_integration_configuration: typing.Optional[B2BIntegrationConfiguration] = OMIT, - my_organization_configuration: typing.Optional[ClientMyOrganizationPatchConfiguration] = OMIT, - google_account_linking: typing.Optional[GoogleAccountLinkingConfigurationOrNull] = OMIT, - async_approval_notification_channels: typing.Optional[ - ClientAsyncApprovalNotificationsChannelsApiPatchConfiguration - ] = OMIT, - third_party_security_mode: typing.Optional[ClientThirdPartySecurityModeEnum] = OMIT, - redirection_policy: typing.Optional[ClientRedirectionPolicyEnum] = OMIT, - agent_id: typing.Optional[str] = OMIT, - oidc_support: typing.Optional[ClientOidcSupportPatch] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[UpdateClientResponseContent]: - """ - Updates a client's settings. For more information, read [Applications in Auth0](https://www.auth0.com/docs/get-started/applications) and [Single Sign-On](https://www.auth0.com/docs/authenticate/single-sign-on). - - Notes: - - The `client_secret` and `signing_key` attributes can only be updated with the `update:client_keys` scope. - - The `client_authentication_methods` and `token_endpoint_auth_method` properties are mutually exclusive. Use `client_authentication_methods` to configure the client with Private Key JWT authentication method. Otherwise, use `token_endpoint_auth_method` to configure the client with client secret (basic or post) or with no authentication method (none). - - When using `client_authentication_methods` to configure the client with Private Key JWT authentication method, only specify the credential IDs that were generated when creating the credentials on the client. - - To configure `client_authentication_methods`, the `update:client_credentials` scope is required. - - To configure `client_authentication_methods`, the property `jwt_configuration.alg` must be set to RS256. - - To change a client's `is_first_party` property to `false`, the `organization_usage` and `organization_require_behavior` properties must be unset. - - Parameters - ---------- - id : str - ID of the client to update. - - name : typing.Optional[str] - The name of the client. Must contain at least one character. Does not allow '<' or '>'. - - description : typing.Optional[str] - Free text description of the purpose of the Client. (Max character length: 140) - - client_secret : typing.Optional[str] - The secret used to sign tokens for the client - - logo_uri : typing.Optional[str] - The URL of the client logo (recommended size: 150x150) - - callbacks : typing.Optional[typing.Sequence[str]] - A set of URLs that are valid to call back from Auth0 when authenticating users - - oidc_logout : typing.Optional[ClientOidcBackchannelLogoutSettings] - - oidc_backchannel_logout : typing.Optional[ClientOidcBackchannelLogoutSettings] - Configuration for OIDC backchannel logout (deprecated, in favor of oidc_logout) - - session_transfer : typing.Optional[ClientSessionTransferConfiguration] - - allowed_origins : typing.Optional[typing.Sequence[str]] - A set of URLs that represents valid origins for CORS - - web_origins : typing.Optional[typing.Sequence[str]] - A set of URLs that represents valid web origins for use with web message response mode - - grant_types : typing.Optional[typing.Sequence[str]] - A set of grant types that the client is authorized to use. Can include `authorization_code`, `implicit`, `refresh_token`, `client_credentials`, `password`, `http://auth0.com/oauth/grant-type/password-realm`, `http://auth0.com/oauth/grant-type/mfa-oob`, `http://auth0.com/oauth/grant-type/mfa-otp`, `http://auth0.com/oauth/grant-type/mfa-recovery-code`, `urn:openid:params:grant-type:ciba`, `urn:ietf:params:oauth:grant-type:device_code`, and `urn:auth0:params:oauth:grant-type:token-exchange:federated-connection-access-token`. - - client_aliases : typing.Optional[typing.Sequence[str]] - List of audiences for SAML protocol - - allowed_clients : typing.Optional[typing.Sequence[str]] - Ids of clients that will be allowed to perform delegation requests. Clients that will be allowed to make delegation request. By default, all your clients will be allowed. This field allows you to specify specific clients - - allowed_logout_urls : typing.Optional[typing.Sequence[str]] - URLs that are valid to redirect to after logout from Auth0 - - jwt_configuration : typing.Optional[ClientJwtConfiguration] - An object that holds settings related to how JWTs are created - - encryption_key : typing.Optional[ClientEncryptionKey] - The client's encryption key - - sso : typing.Optional[bool] - true to use Auth0 instead of the IdP to do Single Sign On, false otherwise (default: false) - - cross_origin_authentication : typing.Optional[bool] - true if this client can be used to make cross-origin authentication requests, false otherwise if cross origin is disabled - - cross_origin_loc : typing.Optional[str] - URL for the location in your site where the cross origin verification takes place for the cross-origin auth flow when performing Auth in your own domain instead of Auth0 hosted login page. - - sso_disabled : typing.Optional[bool] - true to disable Single Sign On, false otherwise (default: false) - - custom_login_page_on : typing.Optional[bool] - true if the custom login page is to be used, false otherwise. - - token_endpoint_auth_method : typing.Optional[ClientTokenEndpointAuthMethodOrNullEnum] - - is_token_endpoint_ip_header_trusted : typing.Optional[bool] - If true, trust that the IP specified in the `auth0-forwarded-for` header is the end-user's IP for brute-force-protection on token endpoint. - - app_type : typing.Optional[ClientAppTypeEnum] - - is_first_party : typing.Optional[bool] - Whether this client a first party client or not - - oidc_conformant : typing.Optional[bool] - Whether this client will conform to strict OIDC specifications - - custom_login_page : typing.Optional[str] - The content (HTML, CSS, JS) of the custom login page - - custom_login_page_preview : typing.Optional[str] - - token_quota : typing.Optional[UpdateTokenQuota] - - identity_assertion_authorization_grant : typing.Optional[UpdateIdentityAssertionAuthorizationGrant] - - anonymous_sessions : typing.Optional[UpdateAnonymousSessions] - - enforce_anon_session_transfer_network_binding : typing.Optional[ClientAnonymousSessionTransferNetworkBindingEnum] - - form_template : typing.Optional[str] - Form template for WS-Federation protocol - - addons : typing.Optional[ClientAddons] - - client_metadata : typing.Optional[ClientMetadata] - - mobile : typing.Optional[ClientMobile] - Configuration related to native mobile apps - - initiate_login_uri : typing.Optional[str] - Initiate login uri, must be https - - native_social_login : typing.Optional[NativeSocialLoginPatch] - - fedcm_login : typing.Optional[FedCmLoginPatch] - - refresh_token : typing.Optional[ClientRefreshTokenConfiguration] - - default_organization : typing.Optional[ClientDefaultOrganization] - - organization_usage : typing.Optional[ClientOrganizationUsagePatchEnum] - - organization_require_behavior : typing.Optional[ClientOrganizationRequireBehaviorPatchEnum] - - organization_discovery_methods : typing.Optional[typing.Sequence[ClientOrganizationDiscoveryEnum]] - Defines the available methods for organization discovery during the `pre_login_prompt`. Users can discover their organization either by `email`, `organization_name` or both. - - client_authentication_methods : typing.Optional[ClientAuthenticationMethod] - - require_pushed_authorization_requests : typing.Optional[bool] - Makes the use of Pushed Authorization Requests mandatory for this client - - require_proof_of_possession : typing.Optional[bool] - Makes the use of Proof-of-Possession mandatory for this client - - signed_request_object : typing.Optional[ClientSignedRequestObjectWithCredentialId] - - token_vault_privileged_access : typing.Optional[ClientTokenVaultPrivilegedAccessWithCredentialId] - - compliance_level : typing.Optional[ClientComplianceLevelEnum] - - skip_non_verifiable_callback_uri_confirmation_prompt : typing.Optional[bool] - Controls whether a confirmation prompt is shown during login flows when the redirect URI uses non-verifiable callback URIs (for example, a custom URI schema such as `myapp://`, or `localhost`). - If set to true, a confirmation prompt will not be shown. We recommend that this is set to false for improved protection from malicious apps. - See https://auth0.com/docs/secure/security-guidance/measures-against-app-impersonation for more information. - - token_exchange : typing.Optional[ClientTokenExchangeConfigurationOrNull] - - par_request_expiry : typing.Optional[int] - Specifies how long, in seconds, a Pushed Authorization Request URI remains valid - - express_configuration : typing.Optional[ExpressConfigurationOrNull] - - b_2_b_integration_configuration : typing.Optional[B2BIntegrationConfiguration] - - my_organization_configuration : typing.Optional[ClientMyOrganizationPatchConfiguration] - - google_account_linking : typing.Optional[GoogleAccountLinkingConfigurationOrNull] - - async_approval_notification_channels : typing.Optional[ClientAsyncApprovalNotificationsChannelsApiPatchConfiguration] - - third_party_security_mode : typing.Optional[ClientThirdPartySecurityModeEnum] - - redirection_policy : typing.Optional[ClientRedirectionPolicyEnum] - - agent_id : typing.Optional[str] - ID of the agent to associate with this client, or null to remove the association. - - oidc_support : typing.Optional[ClientOidcSupportPatch] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[UpdateClientResponseContent] - Client successfully updated. - """ - _response = await self._client_wrapper.httpx_client.request( - f"clients/{quote_path_param(id)}", - method="PATCH", - json={ - "name": name, - "description": description, - "client_secret": client_secret, - "logo_uri": logo_uri, - "callbacks": callbacks, - "oidc_logout": convert_and_respect_annotation_metadata( - object_=oidc_logout, annotation=ClientOidcBackchannelLogoutSettings, direction="write" - ), - "oidc_backchannel_logout": convert_and_respect_annotation_metadata( - object_=oidc_backchannel_logout, annotation=ClientOidcBackchannelLogoutSettings, direction="write" - ), - "session_transfer": convert_and_respect_annotation_metadata( - object_=session_transfer, - annotation=typing.Optional[ClientSessionTransferConfiguration], - direction="write", - ), - "allowed_origins": allowed_origins, - "web_origins": web_origins, - "grant_types": grant_types, - "client_aliases": client_aliases, - "allowed_clients": allowed_clients, - "allowed_logout_urls": allowed_logout_urls, - "jwt_configuration": convert_and_respect_annotation_metadata( - object_=jwt_configuration, annotation=ClientJwtConfiguration, direction="write" - ), - "encryption_key": convert_and_respect_annotation_metadata( - object_=encryption_key, annotation=typing.Optional[ClientEncryptionKey], direction="write" - ), - "sso": sso, - "cross_origin_authentication": cross_origin_authentication, - "cross_origin_loc": cross_origin_loc, - "sso_disabled": sso_disabled, - "custom_login_page_on": custom_login_page_on, - "token_endpoint_auth_method": token_endpoint_auth_method, - "is_token_endpoint_ip_header_trusted": is_token_endpoint_ip_header_trusted, - "app_type": app_type, - "is_first_party": is_first_party, - "oidc_conformant": oidc_conformant, - "custom_login_page": custom_login_page, - "custom_login_page_preview": custom_login_page_preview, - "token_quota": convert_and_respect_annotation_metadata( - object_=token_quota, annotation=typing.Optional[UpdateTokenQuota], direction="write" - ), - "identity_assertion_authorization_grant": convert_and_respect_annotation_metadata( - object_=identity_assertion_authorization_grant, - annotation=typing.Optional[UpdateIdentityAssertionAuthorizationGrant], - direction="write", - ), - "anonymous_sessions": convert_and_respect_annotation_metadata( - object_=anonymous_sessions, annotation=typing.Optional[UpdateAnonymousSessions], direction="write" - ), - "enforce_anon_session_transfer_network_binding": enforce_anon_session_transfer_network_binding, - "form_template": form_template, - "addons": convert_and_respect_annotation_metadata( - object_=addons, annotation=ClientAddons, direction="write" - ), - "client_metadata": client_metadata, - "mobile": convert_and_respect_annotation_metadata( - object_=mobile, annotation=ClientMobile, direction="write" - ), - "initiate_login_uri": initiate_login_uri, - "native_social_login": convert_and_respect_annotation_metadata( - object_=native_social_login, annotation=typing.Optional[NativeSocialLoginPatch], direction="write" - ), - "fedcm_login": convert_and_respect_annotation_metadata( - object_=fedcm_login, annotation=typing.Optional[FedCmLoginPatch], direction="write" - ), - "refresh_token": convert_and_respect_annotation_metadata( - object_=refresh_token, - annotation=typing.Optional[ClientRefreshTokenConfiguration], - direction="write", - ), - "default_organization": convert_and_respect_annotation_metadata( - object_=default_organization, - annotation=typing.Optional[ClientDefaultOrganization], - direction="write", - ), - "organization_usage": organization_usage, - "organization_require_behavior": organization_require_behavior, - "organization_discovery_methods": organization_discovery_methods, - "client_authentication_methods": convert_and_respect_annotation_metadata( - object_=client_authentication_methods, - annotation=typing.Optional[ClientAuthenticationMethod], - direction="write", - ), - "require_pushed_authorization_requests": require_pushed_authorization_requests, - "require_proof_of_possession": require_proof_of_possession, - "signed_request_object": convert_and_respect_annotation_metadata( - object_=signed_request_object, - annotation=ClientSignedRequestObjectWithCredentialId, - direction="write", - ), - "token_vault_privileged_access": convert_and_respect_annotation_metadata( - object_=token_vault_privileged_access, - annotation=ClientTokenVaultPrivilegedAccessWithCredentialId, - direction="write", - ), - "compliance_level": compliance_level, - "skip_non_verifiable_callback_uri_confirmation_prompt": skip_non_verifiable_callback_uri_confirmation_prompt, - "token_exchange": convert_and_respect_annotation_metadata( - object_=token_exchange, - annotation=typing.Optional[ClientTokenExchangeConfigurationOrNull], - direction="write", - ), - "par_request_expiry": par_request_expiry, - "express_configuration": convert_and_respect_annotation_metadata( - object_=express_configuration, - annotation=typing.Optional[ExpressConfigurationOrNull], - direction="write", - ), - "b2b_integration_configuration": convert_and_respect_annotation_metadata( - object_=b_2_b_integration_configuration, annotation=B2BIntegrationConfiguration, direction="write" - ), - "my_organization_configuration": convert_and_respect_annotation_metadata( - object_=my_organization_configuration, - annotation=typing.Optional[ClientMyOrganizationPatchConfiguration], - direction="write", - ), - "google_account_linking": convert_and_respect_annotation_metadata( - object_=google_account_linking, - annotation=typing.Optional[GoogleAccountLinkingConfigurationOrNull], - direction="write", - ), - "async_approval_notification_channels": async_approval_notification_channels, - "third_party_security_mode": third_party_security_mode, - "redirection_policy": redirection_policy, - "agent_id": agent_id, - "oidc_support": convert_and_respect_annotation_metadata( - object_=oidc_support, annotation=typing.Optional[ClientOidcSupportPatch], direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateClientResponseContent, - parse_obj_as( - type_=UpdateClientResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def rotate_secret( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[RotateClientSecretResponseContent]: - """ - Rotate a client secret. - - This endpoint cannot be used with clients configured with Private Key JWT authentication method (client_authentication_methods configured with private_key_jwt). The generated secret is NOT base64 encoded. - - For more information, read [Rotate Client Secrets](https://www.auth0.com/docs/get-started/applications/rotate-client-secret). - - Parameters - ---------- - id : str - ID of the client that will rotate secrets. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[RotateClientSecretResponseContent] - Secret successfully rotated. - """ - _response = await self._client_wrapper.httpx_client.request( - f"clients/{quote_path_param(id)}/rotate-secret", - method="POST", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - RotateClientSecretResponseContent, - parse_obj_as( - type_=RotateClientSecretResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/connection_profiles/__init__.py b/src/auth0/management/connection_profiles/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/connection_profiles/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/connection_profiles/client.py b/src/auth0/management/connection_profiles/client.py deleted file mode 100644 index b18679ff..00000000 --- a/src/auth0/management/connection_profiles/client.py +++ /dev/null @@ -1,727 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.pagination import AsyncPager, SyncPager -from ..core.request_options import RequestOptions -from ..types.connection_name_prefix_template import ConnectionNamePrefixTemplate -from ..types.connection_profile import ConnectionProfile -from ..types.connection_profile_config import ConnectionProfileConfig -from ..types.connection_profile_cross_app_access_resource_app import ConnectionProfileCrossAppAccessResourceApp -from ..types.connection_profile_enabled_features import ConnectionProfileEnabledFeatures -from ..types.connection_profile_name import ConnectionProfileName -from ..types.connection_profile_organization import ConnectionProfileOrganization -from ..types.connection_profile_provisioning import ConnectionProfileProvisioning -from ..types.connection_profile_strategy_overrides import ConnectionProfileStrategyOverrides -from ..types.create_connection_profile_response_content import CreateConnectionProfileResponseContent -from ..types.get_connection_profile_response_content import GetConnectionProfileResponseContent -from ..types.get_connection_profile_template_response_content import GetConnectionProfileTemplateResponseContent -from ..types.list_connection_profile_template_response_content import ListConnectionProfileTemplateResponseContent -from ..types.list_connection_profiles_paginated_response_content import ListConnectionProfilesPaginatedResponseContent -from ..types.update_connection_profile_response_content import UpdateConnectionProfileResponseContent -from .raw_client import AsyncRawConnectionProfilesClient, RawConnectionProfilesClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class ConnectionProfilesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawConnectionProfilesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawConnectionProfilesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawConnectionProfilesClient - """ - return self._raw_client - - def list( - self, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[ConnectionProfile, ListConnectionProfilesPaginatedResponseContent]: - """ - Retrieve a list of Connection Profiles. This endpoint supports Checkpoint pagination. - - Parameters - ---------- - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 5. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[ConnectionProfile, ListConnectionProfilesPaginatedResponseContent] - Connection Profiles successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.connection_profiles.list( - from_="from", - take=1, - ) - for item in response: - yield item - # alternatively, you can paginate page-by-page - for page in response.iter_pages(): - yield page - """ - return self._raw_client.list(from_=from_, take=take, request_options=request_options) - - def create( - self, - *, - name: ConnectionProfileName, - organization: typing.Optional[ConnectionProfileOrganization] = OMIT, - connection_name_prefix_template: typing.Optional[ConnectionNamePrefixTemplate] = OMIT, - enabled_features: typing.Optional[ConnectionProfileEnabledFeatures] = OMIT, - connection_config: typing.Optional[ConnectionProfileConfig] = OMIT, - strategy_overrides: typing.Optional[ConnectionProfileStrategyOverrides] = OMIT, - provisioning: typing.Optional[ConnectionProfileProvisioning] = OMIT, - cross_app_access_resource_app: typing.Optional[ConnectionProfileCrossAppAccessResourceApp] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateConnectionProfileResponseContent: - """ - Create a Connection Profile. - - Parameters - ---------- - name : ConnectionProfileName - - organization : typing.Optional[ConnectionProfileOrganization] - - connection_name_prefix_template : typing.Optional[ConnectionNamePrefixTemplate] - - enabled_features : typing.Optional[ConnectionProfileEnabledFeatures] - - connection_config : typing.Optional[ConnectionProfileConfig] - - strategy_overrides : typing.Optional[ConnectionProfileStrategyOverrides] - - provisioning : typing.Optional[ConnectionProfileProvisioning] - - cross_app_access_resource_app : typing.Optional[ConnectionProfileCrossAppAccessResourceApp] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateConnectionProfileResponseContent - Connection profile successfully created. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.connection_profiles.create( - name="name", - ) - """ - _response = self._raw_client.create( - name=name, - organization=organization, - connection_name_prefix_template=connection_name_prefix_template, - enabled_features=enabled_features, - connection_config=connection_config, - strategy_overrides=strategy_overrides, - provisioning=provisioning, - cross_app_access_resource_app=cross_app_access_resource_app, - request_options=request_options, - ) - return _response.data - - def list_templates( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> ListConnectionProfileTemplateResponseContent: - """ - Retrieve a list of Connection Profile Templates. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - ListConnectionProfileTemplateResponseContent - Connection Profile Templates successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.connection_profiles.list_templates() - """ - _response = self._raw_client.list_templates(request_options=request_options) - return _response.data - - def get_template( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetConnectionProfileTemplateResponseContent: - """ - Retrieve a Connection Profile Template. - - Parameters - ---------- - id : str - ID of the connection-profile-template to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetConnectionProfileTemplateResponseContent - Connection Profile Template successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.connection_profiles.get_template( - id="id", - ) - """ - _response = self._raw_client.get_template(id, request_options=request_options) - return _response.data - - def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetConnectionProfileResponseContent: - """ - Retrieve details about a single Connection Profile specified by ID. - - Parameters - ---------- - id : str - ID of the connection-profile to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetConnectionProfileResponseContent - Record for existing connection profile. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.connection_profiles.get( - id="id", - ) - """ - _response = self._raw_client.get(id, request_options=request_options) - return _response.data - - def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete a single Connection Profile specified by ID. - - Parameters - ---------- - id : str - ID of the connection-profile to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.connection_profiles.delete( - id="id", - ) - """ - _response = self._raw_client.delete(id, request_options=request_options) - return _response.data - - def update( - self, - id: str, - *, - name: typing.Optional[ConnectionProfileName] = OMIT, - organization: typing.Optional[ConnectionProfileOrganization] = OMIT, - connection_name_prefix_template: typing.Optional[ConnectionNamePrefixTemplate] = OMIT, - enabled_features: typing.Optional[ConnectionProfileEnabledFeatures] = OMIT, - connection_config: typing.Optional[ConnectionProfileConfig] = OMIT, - strategy_overrides: typing.Optional[ConnectionProfileStrategyOverrides] = OMIT, - provisioning: typing.Optional[ConnectionProfileProvisioning] = OMIT, - cross_app_access_resource_app: typing.Optional[ConnectionProfileCrossAppAccessResourceApp] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateConnectionProfileResponseContent: - """ - Update the details of a specific Connection Profile. - - Parameters - ---------- - id : str - ID of the connection profile to update. - - name : typing.Optional[ConnectionProfileName] - - organization : typing.Optional[ConnectionProfileOrganization] - - connection_name_prefix_template : typing.Optional[ConnectionNamePrefixTemplate] - - enabled_features : typing.Optional[ConnectionProfileEnabledFeatures] - - connection_config : typing.Optional[ConnectionProfileConfig] - - strategy_overrides : typing.Optional[ConnectionProfileStrategyOverrides] - - provisioning : typing.Optional[ConnectionProfileProvisioning] - - cross_app_access_resource_app : typing.Optional[ConnectionProfileCrossAppAccessResourceApp] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateConnectionProfileResponseContent - Connection profile successfully updated. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.connection_profiles.update( - id="id", - ) - """ - _response = self._raw_client.update( - id, - name=name, - organization=organization, - connection_name_prefix_template=connection_name_prefix_template, - enabled_features=enabled_features, - connection_config=connection_config, - strategy_overrides=strategy_overrides, - provisioning=provisioning, - cross_app_access_resource_app=cross_app_access_resource_app, - request_options=request_options, - ) - return _response.data - - -class AsyncConnectionProfilesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawConnectionProfilesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawConnectionProfilesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawConnectionProfilesClient - """ - return self._raw_client - - async def list( - self, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[ConnectionProfile, ListConnectionProfilesPaginatedResponseContent]: - """ - Retrieve a list of Connection Profiles. This endpoint supports Checkpoint pagination. - - Parameters - ---------- - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 5. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[ConnectionProfile, ListConnectionProfilesPaginatedResponseContent] - Connection Profiles successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.connection_profiles.list( - from_="from", - take=1, - ) - async for item in response: - yield item - - # alternatively, you can paginate page-by-page - async for page in response.iter_pages(): - yield page - - - asyncio.run(main()) - """ - return await self._raw_client.list(from_=from_, take=take, request_options=request_options) - - async def create( - self, - *, - name: ConnectionProfileName, - organization: typing.Optional[ConnectionProfileOrganization] = OMIT, - connection_name_prefix_template: typing.Optional[ConnectionNamePrefixTemplate] = OMIT, - enabled_features: typing.Optional[ConnectionProfileEnabledFeatures] = OMIT, - connection_config: typing.Optional[ConnectionProfileConfig] = OMIT, - strategy_overrides: typing.Optional[ConnectionProfileStrategyOverrides] = OMIT, - provisioning: typing.Optional[ConnectionProfileProvisioning] = OMIT, - cross_app_access_resource_app: typing.Optional[ConnectionProfileCrossAppAccessResourceApp] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateConnectionProfileResponseContent: - """ - Create a Connection Profile. - - Parameters - ---------- - name : ConnectionProfileName - - organization : typing.Optional[ConnectionProfileOrganization] - - connection_name_prefix_template : typing.Optional[ConnectionNamePrefixTemplate] - - enabled_features : typing.Optional[ConnectionProfileEnabledFeatures] - - connection_config : typing.Optional[ConnectionProfileConfig] - - strategy_overrides : typing.Optional[ConnectionProfileStrategyOverrides] - - provisioning : typing.Optional[ConnectionProfileProvisioning] - - cross_app_access_resource_app : typing.Optional[ConnectionProfileCrossAppAccessResourceApp] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateConnectionProfileResponseContent - Connection profile successfully created. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.connection_profiles.create( - name="name", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - name=name, - organization=organization, - connection_name_prefix_template=connection_name_prefix_template, - enabled_features=enabled_features, - connection_config=connection_config, - strategy_overrides=strategy_overrides, - provisioning=provisioning, - cross_app_access_resource_app=cross_app_access_resource_app, - request_options=request_options, - ) - return _response.data - - async def list_templates( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> ListConnectionProfileTemplateResponseContent: - """ - Retrieve a list of Connection Profile Templates. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - ListConnectionProfileTemplateResponseContent - Connection Profile Templates successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.connection_profiles.list_templates() - - - asyncio.run(main()) - """ - _response = await self._raw_client.list_templates(request_options=request_options) - return _response.data - - async def get_template( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetConnectionProfileTemplateResponseContent: - """ - Retrieve a Connection Profile Template. - - Parameters - ---------- - id : str - ID of the connection-profile-template to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetConnectionProfileTemplateResponseContent - Connection Profile Template successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.connection_profiles.get_template( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.get_template(id, request_options=request_options) - return _response.data - - async def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetConnectionProfileResponseContent: - """ - Retrieve details about a single Connection Profile specified by ID. - - Parameters - ---------- - id : str - ID of the connection-profile to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetConnectionProfileResponseContent - Record for existing connection profile. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.connection_profiles.get( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.get(id, request_options=request_options) - return _response.data - - async def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete a single Connection Profile specified by ID. - - Parameters - ---------- - id : str - ID of the connection-profile to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.connection_profiles.delete( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete(id, request_options=request_options) - return _response.data - - async def update( - self, - id: str, - *, - name: typing.Optional[ConnectionProfileName] = OMIT, - organization: typing.Optional[ConnectionProfileOrganization] = OMIT, - connection_name_prefix_template: typing.Optional[ConnectionNamePrefixTemplate] = OMIT, - enabled_features: typing.Optional[ConnectionProfileEnabledFeatures] = OMIT, - connection_config: typing.Optional[ConnectionProfileConfig] = OMIT, - strategy_overrides: typing.Optional[ConnectionProfileStrategyOverrides] = OMIT, - provisioning: typing.Optional[ConnectionProfileProvisioning] = OMIT, - cross_app_access_resource_app: typing.Optional[ConnectionProfileCrossAppAccessResourceApp] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateConnectionProfileResponseContent: - """ - Update the details of a specific Connection Profile. - - Parameters - ---------- - id : str - ID of the connection profile to update. - - name : typing.Optional[ConnectionProfileName] - - organization : typing.Optional[ConnectionProfileOrganization] - - connection_name_prefix_template : typing.Optional[ConnectionNamePrefixTemplate] - - enabled_features : typing.Optional[ConnectionProfileEnabledFeatures] - - connection_config : typing.Optional[ConnectionProfileConfig] - - strategy_overrides : typing.Optional[ConnectionProfileStrategyOverrides] - - provisioning : typing.Optional[ConnectionProfileProvisioning] - - cross_app_access_resource_app : typing.Optional[ConnectionProfileCrossAppAccessResourceApp] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateConnectionProfileResponseContent - Connection profile successfully updated. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.connection_profiles.update( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.update( - id, - name=name, - organization=organization, - connection_name_prefix_template=connection_name_prefix_template, - enabled_features=enabled_features, - connection_config=connection_config, - strategy_overrides=strategy_overrides, - provisioning=provisioning, - cross_app_access_resource_app=cross_app_access_resource_app, - request_options=request_options, - ) - return _response.data diff --git a/src/auth0/management/connection_profiles/raw_client.py b/src/auth0/management/connection_profiles/raw_client.py deleted file mode 100644 index 4c0e2313..00000000 --- a/src/auth0/management/connection_profiles/raw_client.py +++ /dev/null @@ -1,1488 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ..core.api_error import ApiError -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.http_response import AsyncHttpResponse, HttpResponse -from ..core.jsonable_encoder import quote_path_param -from ..core.pagination import AsyncPager, SyncPager -from ..core.parse_error import ParsingError -from ..core.pydantic_utilities import parse_obj_as -from ..core.request_options import RequestOptions -from ..core.serialization import convert_and_respect_annotation_metadata -from ..errors.bad_request_error import BadRequestError -from ..errors.conflict_error import ConflictError -from ..errors.forbidden_error import ForbiddenError -from ..errors.not_found_error import NotFoundError -from ..errors.too_many_requests_error import TooManyRequestsError -from ..errors.unauthorized_error import UnauthorizedError -from ..types.connection_name_prefix_template import ConnectionNamePrefixTemplate -from ..types.connection_profile import ConnectionProfile -from ..types.connection_profile_config import ConnectionProfileConfig -from ..types.connection_profile_cross_app_access_resource_app import ConnectionProfileCrossAppAccessResourceApp -from ..types.connection_profile_enabled_features import ConnectionProfileEnabledFeatures -from ..types.connection_profile_name import ConnectionProfileName -from ..types.connection_profile_organization import ConnectionProfileOrganization -from ..types.connection_profile_provisioning import ConnectionProfileProvisioning -from ..types.connection_profile_strategy_overrides import ConnectionProfileStrategyOverrides -from ..types.create_connection_profile_response_content import CreateConnectionProfileResponseContent -from ..types.get_connection_profile_response_content import GetConnectionProfileResponseContent -from ..types.get_connection_profile_template_response_content import GetConnectionProfileTemplateResponseContent -from ..types.list_connection_profile_template_response_content import ListConnectionProfileTemplateResponseContent -from ..types.list_connection_profiles_paginated_response_content import ListConnectionProfilesPaginatedResponseContent -from ..types.update_connection_profile_response_content import UpdateConnectionProfileResponseContent -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawConnectionProfilesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[ConnectionProfile, ListConnectionProfilesPaginatedResponseContent]: - """ - Retrieve a list of Connection Profiles. This endpoint supports Checkpoint pagination. - - Parameters - ---------- - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 5. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[ConnectionProfile, ListConnectionProfilesPaginatedResponseContent] - Connection Profiles successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - "connection-profiles", - method="GET", - params={ - "from": from_, - "take": take, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListConnectionProfilesPaginatedResponseContent, - parse_obj_as( - type_=ListConnectionProfilesPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.connection_profiles - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - _get_next = lambda: self.list( - from_=_parsed_next, - take=take, - request_options=request_options, - ) - return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - *, - name: ConnectionProfileName, - organization: typing.Optional[ConnectionProfileOrganization] = OMIT, - connection_name_prefix_template: typing.Optional[ConnectionNamePrefixTemplate] = OMIT, - enabled_features: typing.Optional[ConnectionProfileEnabledFeatures] = OMIT, - connection_config: typing.Optional[ConnectionProfileConfig] = OMIT, - strategy_overrides: typing.Optional[ConnectionProfileStrategyOverrides] = OMIT, - provisioning: typing.Optional[ConnectionProfileProvisioning] = OMIT, - cross_app_access_resource_app: typing.Optional[ConnectionProfileCrossAppAccessResourceApp] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[CreateConnectionProfileResponseContent]: - """ - Create a Connection Profile. - - Parameters - ---------- - name : ConnectionProfileName - - organization : typing.Optional[ConnectionProfileOrganization] - - connection_name_prefix_template : typing.Optional[ConnectionNamePrefixTemplate] - - enabled_features : typing.Optional[ConnectionProfileEnabledFeatures] - - connection_config : typing.Optional[ConnectionProfileConfig] - - strategy_overrides : typing.Optional[ConnectionProfileStrategyOverrides] - - provisioning : typing.Optional[ConnectionProfileProvisioning] - - cross_app_access_resource_app : typing.Optional[ConnectionProfileCrossAppAccessResourceApp] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CreateConnectionProfileResponseContent] - Connection profile successfully created. - """ - _response = self._client_wrapper.httpx_client.request( - "connection-profiles", - method="POST", - json={ - "name": name, - "organization": convert_and_respect_annotation_metadata( - object_=organization, annotation=ConnectionProfileOrganization, direction="write" - ), - "connection_name_prefix_template": connection_name_prefix_template, - "enabled_features": enabled_features, - "connection_config": convert_and_respect_annotation_metadata( - object_=connection_config, annotation=ConnectionProfileConfig, direction="write" - ), - "strategy_overrides": convert_and_respect_annotation_metadata( - object_=strategy_overrides, annotation=ConnectionProfileStrategyOverrides, direction="write" - ), - "provisioning": convert_and_respect_annotation_metadata( - object_=provisioning, annotation=ConnectionProfileProvisioning, direction="write" - ), - "cross_app_access_resource_app": convert_and_respect_annotation_metadata( - object_=cross_app_access_resource_app, - annotation=ConnectionProfileCrossAppAccessResourceApp, - direction="write", - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateConnectionProfileResponseContent, - parse_obj_as( - type_=CreateConnectionProfileResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def list_templates( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[ListConnectionProfileTemplateResponseContent]: - """ - Retrieve a list of Connection Profile Templates. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[ListConnectionProfileTemplateResponseContent] - Connection Profile Templates successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - "connection-profiles/templates", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - ListConnectionProfileTemplateResponseContent, - parse_obj_as( - type_=ListConnectionProfileTemplateResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def get_template( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetConnectionProfileTemplateResponseContent]: - """ - Retrieve a Connection Profile Template. - - Parameters - ---------- - id : str - ID of the connection-profile-template to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetConnectionProfileTemplateResponseContent] - Connection Profile Template successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - f"connection-profiles/templates/{quote_path_param(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetConnectionProfileTemplateResponseContent, - parse_obj_as( - type_=GetConnectionProfileTemplateResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetConnectionProfileResponseContent]: - """ - Retrieve details about a single Connection Profile specified by ID. - - Parameters - ---------- - id : str - ID of the connection-profile to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetConnectionProfileResponseContent] - Record for existing connection profile. - """ - _response = self._client_wrapper.httpx_client.request( - f"connection-profiles/{quote_path_param(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetConnectionProfileResponseContent, - parse_obj_as( - type_=GetConnectionProfileResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[None]: - """ - Delete a single Connection Profile specified by ID. - - Parameters - ---------- - id : str - ID of the connection-profile to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"connection-profiles/{quote_path_param(id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def update( - self, - id: str, - *, - name: typing.Optional[ConnectionProfileName] = OMIT, - organization: typing.Optional[ConnectionProfileOrganization] = OMIT, - connection_name_prefix_template: typing.Optional[ConnectionNamePrefixTemplate] = OMIT, - enabled_features: typing.Optional[ConnectionProfileEnabledFeatures] = OMIT, - connection_config: typing.Optional[ConnectionProfileConfig] = OMIT, - strategy_overrides: typing.Optional[ConnectionProfileStrategyOverrides] = OMIT, - provisioning: typing.Optional[ConnectionProfileProvisioning] = OMIT, - cross_app_access_resource_app: typing.Optional[ConnectionProfileCrossAppAccessResourceApp] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[UpdateConnectionProfileResponseContent]: - """ - Update the details of a specific Connection Profile. - - Parameters - ---------- - id : str - ID of the connection profile to update. - - name : typing.Optional[ConnectionProfileName] - - organization : typing.Optional[ConnectionProfileOrganization] - - connection_name_prefix_template : typing.Optional[ConnectionNamePrefixTemplate] - - enabled_features : typing.Optional[ConnectionProfileEnabledFeatures] - - connection_config : typing.Optional[ConnectionProfileConfig] - - strategy_overrides : typing.Optional[ConnectionProfileStrategyOverrides] - - provisioning : typing.Optional[ConnectionProfileProvisioning] - - cross_app_access_resource_app : typing.Optional[ConnectionProfileCrossAppAccessResourceApp] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[UpdateConnectionProfileResponseContent] - Connection profile successfully updated. - """ - _response = self._client_wrapper.httpx_client.request( - f"connection-profiles/{quote_path_param(id)}", - method="PATCH", - json={ - "name": name, - "organization": convert_and_respect_annotation_metadata( - object_=organization, annotation=ConnectionProfileOrganization, direction="write" - ), - "connection_name_prefix_template": connection_name_prefix_template, - "enabled_features": enabled_features, - "connection_config": convert_and_respect_annotation_metadata( - object_=connection_config, annotation=ConnectionProfileConfig, direction="write" - ), - "strategy_overrides": convert_and_respect_annotation_metadata( - object_=strategy_overrides, annotation=ConnectionProfileStrategyOverrides, direction="write" - ), - "provisioning": convert_and_respect_annotation_metadata( - object_=provisioning, annotation=ConnectionProfileProvisioning, direction="write" - ), - "cross_app_access_resource_app": convert_and_respect_annotation_metadata( - object_=cross_app_access_resource_app, - annotation=ConnectionProfileCrossAppAccessResourceApp, - direction="write", - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateConnectionProfileResponseContent, - parse_obj_as( - type_=UpdateConnectionProfileResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawConnectionProfilesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[ConnectionProfile, ListConnectionProfilesPaginatedResponseContent]: - """ - Retrieve a list of Connection Profiles. This endpoint supports Checkpoint pagination. - - Parameters - ---------- - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 5. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[ConnectionProfile, ListConnectionProfilesPaginatedResponseContent] - Connection Profiles successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - "connection-profiles", - method="GET", - params={ - "from": from_, - "take": take, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListConnectionProfilesPaginatedResponseContent, - parse_obj_as( - type_=ListConnectionProfilesPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.connection_profiles - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - - async def _get_next(): - return await self.list( - from_=_parsed_next, - take=take, - request_options=request_options, - ) - - return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - *, - name: ConnectionProfileName, - organization: typing.Optional[ConnectionProfileOrganization] = OMIT, - connection_name_prefix_template: typing.Optional[ConnectionNamePrefixTemplate] = OMIT, - enabled_features: typing.Optional[ConnectionProfileEnabledFeatures] = OMIT, - connection_config: typing.Optional[ConnectionProfileConfig] = OMIT, - strategy_overrides: typing.Optional[ConnectionProfileStrategyOverrides] = OMIT, - provisioning: typing.Optional[ConnectionProfileProvisioning] = OMIT, - cross_app_access_resource_app: typing.Optional[ConnectionProfileCrossAppAccessResourceApp] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[CreateConnectionProfileResponseContent]: - """ - Create a Connection Profile. - - Parameters - ---------- - name : ConnectionProfileName - - organization : typing.Optional[ConnectionProfileOrganization] - - connection_name_prefix_template : typing.Optional[ConnectionNamePrefixTemplate] - - enabled_features : typing.Optional[ConnectionProfileEnabledFeatures] - - connection_config : typing.Optional[ConnectionProfileConfig] - - strategy_overrides : typing.Optional[ConnectionProfileStrategyOverrides] - - provisioning : typing.Optional[ConnectionProfileProvisioning] - - cross_app_access_resource_app : typing.Optional[ConnectionProfileCrossAppAccessResourceApp] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CreateConnectionProfileResponseContent] - Connection profile successfully created. - """ - _response = await self._client_wrapper.httpx_client.request( - "connection-profiles", - method="POST", - json={ - "name": name, - "organization": convert_and_respect_annotation_metadata( - object_=organization, annotation=ConnectionProfileOrganization, direction="write" - ), - "connection_name_prefix_template": connection_name_prefix_template, - "enabled_features": enabled_features, - "connection_config": convert_and_respect_annotation_metadata( - object_=connection_config, annotation=ConnectionProfileConfig, direction="write" - ), - "strategy_overrides": convert_and_respect_annotation_metadata( - object_=strategy_overrides, annotation=ConnectionProfileStrategyOverrides, direction="write" - ), - "provisioning": convert_and_respect_annotation_metadata( - object_=provisioning, annotation=ConnectionProfileProvisioning, direction="write" - ), - "cross_app_access_resource_app": convert_and_respect_annotation_metadata( - object_=cross_app_access_resource_app, - annotation=ConnectionProfileCrossAppAccessResourceApp, - direction="write", - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateConnectionProfileResponseContent, - parse_obj_as( - type_=CreateConnectionProfileResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def list_templates( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[ListConnectionProfileTemplateResponseContent]: - """ - Retrieve a list of Connection Profile Templates. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[ListConnectionProfileTemplateResponseContent] - Connection Profile Templates successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - "connection-profiles/templates", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - ListConnectionProfileTemplateResponseContent, - parse_obj_as( - type_=ListConnectionProfileTemplateResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def get_template( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetConnectionProfileTemplateResponseContent]: - """ - Retrieve a Connection Profile Template. - - Parameters - ---------- - id : str - ID of the connection-profile-template to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetConnectionProfileTemplateResponseContent] - Connection Profile Template successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - f"connection-profiles/templates/{quote_path_param(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetConnectionProfileTemplateResponseContent, - parse_obj_as( - type_=GetConnectionProfileTemplateResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetConnectionProfileResponseContent]: - """ - Retrieve details about a single Connection Profile specified by ID. - - Parameters - ---------- - id : str - ID of the connection-profile to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetConnectionProfileResponseContent] - Record for existing connection profile. - """ - _response = await self._client_wrapper.httpx_client.request( - f"connection-profiles/{quote_path_param(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetConnectionProfileResponseContent, - parse_obj_as( - type_=GetConnectionProfileResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def delete( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Delete a single Connection Profile specified by ID. - - Parameters - ---------- - id : str - ID of the connection-profile to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"connection-profiles/{quote_path_param(id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def update( - self, - id: str, - *, - name: typing.Optional[ConnectionProfileName] = OMIT, - organization: typing.Optional[ConnectionProfileOrganization] = OMIT, - connection_name_prefix_template: typing.Optional[ConnectionNamePrefixTemplate] = OMIT, - enabled_features: typing.Optional[ConnectionProfileEnabledFeatures] = OMIT, - connection_config: typing.Optional[ConnectionProfileConfig] = OMIT, - strategy_overrides: typing.Optional[ConnectionProfileStrategyOverrides] = OMIT, - provisioning: typing.Optional[ConnectionProfileProvisioning] = OMIT, - cross_app_access_resource_app: typing.Optional[ConnectionProfileCrossAppAccessResourceApp] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[UpdateConnectionProfileResponseContent]: - """ - Update the details of a specific Connection Profile. - - Parameters - ---------- - id : str - ID of the connection profile to update. - - name : typing.Optional[ConnectionProfileName] - - organization : typing.Optional[ConnectionProfileOrganization] - - connection_name_prefix_template : typing.Optional[ConnectionNamePrefixTemplate] - - enabled_features : typing.Optional[ConnectionProfileEnabledFeatures] - - connection_config : typing.Optional[ConnectionProfileConfig] - - strategy_overrides : typing.Optional[ConnectionProfileStrategyOverrides] - - provisioning : typing.Optional[ConnectionProfileProvisioning] - - cross_app_access_resource_app : typing.Optional[ConnectionProfileCrossAppAccessResourceApp] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[UpdateConnectionProfileResponseContent] - Connection profile successfully updated. - """ - _response = await self._client_wrapper.httpx_client.request( - f"connection-profiles/{quote_path_param(id)}", - method="PATCH", - json={ - "name": name, - "organization": convert_and_respect_annotation_metadata( - object_=organization, annotation=ConnectionProfileOrganization, direction="write" - ), - "connection_name_prefix_template": connection_name_prefix_template, - "enabled_features": enabled_features, - "connection_config": convert_and_respect_annotation_metadata( - object_=connection_config, annotation=ConnectionProfileConfig, direction="write" - ), - "strategy_overrides": convert_and_respect_annotation_metadata( - object_=strategy_overrides, annotation=ConnectionProfileStrategyOverrides, direction="write" - ), - "provisioning": convert_and_respect_annotation_metadata( - object_=provisioning, annotation=ConnectionProfileProvisioning, direction="write" - ), - "cross_app_access_resource_app": convert_and_respect_annotation_metadata( - object_=cross_app_access_resource_app, - annotation=ConnectionProfileCrossAppAccessResourceApp, - direction="write", - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateConnectionProfileResponseContent, - parse_obj_as( - type_=UpdateConnectionProfileResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/connections/__init__.py b/src/auth0/management/connections/__init__.py deleted file mode 100644 index 208e86a8..00000000 --- a/src/auth0/management/connections/__init__.py +++ /dev/null @@ -1,40 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from . import clients, directory_provisioning, keys, scim_configuration, users -_dynamic_imports: typing.Dict[str, str] = { - "clients": ".clients", - "directory_provisioning": ".directory_provisioning", - "keys": ".keys", - "scim_configuration": ".scim_configuration", - "users": ".users", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - if module_name == f".{attr_name}": - return module - else: - return getattr(module, attr_name) - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["clients", "directory_provisioning", "keys", "scim_configuration", "users"] diff --git a/src/auth0/management/connections/client.py b/src/auth0/management/connections/client.py deleted file mode 100644 index 99eb98fe..00000000 --- a/src/auth0/management/connections/client.py +++ /dev/null @@ -1,989 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.pagination import AsyncPager, SyncPager -from ..core.request_options import RequestOptions -from ..types.connection_authentication_purpose import ConnectionAuthenticationPurpose -from ..types.connection_connected_accounts_purpose import ConnectionConnectedAccountsPurpose -from ..types.connection_for_list import ConnectionForList -from ..types.connection_identity_provider_enum import ConnectionIdentityProviderEnum -from ..types.connection_properties_options import ConnectionPropertiesOptions -from ..types.connection_strategy_enum import ConnectionStrategyEnum -from ..types.connections_metadata import ConnectionsMetadata -from ..types.create_connection_response_content import CreateConnectionResponseContent -from ..types.create_cross_app_access_resource_app import CreateCrossAppAccessResourceApp -from ..types.cross_app_access_requesting_app import CrossAppAccessRequestingApp -from ..types.get_connection_response_content import GetConnectionResponseContent -from ..types.list_connections_checkpoint_paginated_response_content import ( - ListConnectionsCheckpointPaginatedResponseContent, -) -from ..types.update_connection_options import UpdateConnectionOptions -from ..types.update_connection_response_content import UpdateConnectionResponseContent -from ..types.update_cross_app_access_resource_app import UpdateCrossAppAccessResourceApp -from .raw_client import AsyncRawConnectionsClient, RawConnectionsClient - -if typing.TYPE_CHECKING: - from .clients.client import AsyncClientsClient, ClientsClient - from .directory_provisioning.client import AsyncDirectoryProvisioningClient, DirectoryProvisioningClient - from .keys.client import AsyncKeysClient, KeysClient - from .scim_configuration.client import AsyncScimConfigurationClient, ScimConfigurationClient - from .users.client import AsyncUsersClient, UsersClient -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class ConnectionsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawConnectionsClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._directory_provisioning: typing.Optional[DirectoryProvisioningClient] = None - self._scim_configuration: typing.Optional[ScimConfigurationClient] = None - self._clients: typing.Optional[ClientsClient] = None - self._keys: typing.Optional[KeysClient] = None - self._users: typing.Optional[UsersClient] = None - - @property - def with_raw_response(self) -> RawConnectionsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawConnectionsClient - """ - return self._raw_client - - def list( - self, - *, - include_totals: typing.Optional[bool] = True, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - strategy: typing.Optional[typing.Union[ConnectionStrategyEnum, typing.Sequence[ConnectionStrategyEnum]]] = None, - name: typing.Optional[str] = None, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[ConnectionForList, ListConnectionsCheckpointPaginatedResponseContent]: - """ - Retrieves detailed list of all [connections](https://auth0.com/docs/authenticate/identity-providers) that match the specified strategy. If no strategy is provided, all connections within your tenant are retrieved. This action can accept a list of fields to include or exclude from the resulting list of connections. - - This endpoint supports two types of pagination: - - - Offset pagination - - Checkpoint pagination - - Checkpoint pagination must be used if you need to retrieve more than 1000 connections. - - **Checkpoint Pagination** - - To search by checkpoint, use the following parameters: - - - `from`: Optional id from which to start selection. - - `take`: The total amount of entries to retrieve when using the from parameter. Defaults to 50. - - **Note**: The first time you call this endpoint using checkpoint pagination, omit the `from` parameter. If there are more results, a `next` value is included in the response. You can use this for subsequent API calls. When `next` is no longer included in the response, no pages are remaining. - - Parameters - ---------- - include_totals : typing.Optional[bool] - true if a query summary must be included in the result, false otherwise. Not returned when using checkpoint pagination. Default false. - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - strategy : typing.Optional[typing.Union[ConnectionStrategyEnum, typing.Sequence[ConnectionStrategyEnum]]] - Provide strategies to only retrieve connections with such strategies - - name : typing.Optional[str] - Provide the name of the connection to retrieve - - fields : typing.Optional[str] - A comma separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields - - include_fields : typing.Optional[bool] - true if the fields specified are to be included in the result, false otherwise (defaults to true) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[ConnectionForList, ListConnectionsCheckpointPaginatedResponseContent] - The connections were retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.connections.list( - include_totals=True, - from_="from", - take=1, - strategy=["ad"], - name="name", - fields="fields", - include_fields=True, - ) - for item in response: - yield item - # alternatively, you can paginate page-by-page - for page in response.iter_pages(): - yield page - """ - return self._raw_client.list( - include_totals=include_totals, - from_=from_, - take=take, - strategy=strategy, - name=name, - fields=fields, - include_fields=include_fields, - request_options=request_options, - ) - - def create( - self, - *, - name: str, - strategy: ConnectionIdentityProviderEnum, - display_name: typing.Optional[str] = OMIT, - options: typing.Optional[ConnectionPropertiesOptions] = OMIT, - enabled_clients: typing.Optional[typing.Sequence[str]] = OMIT, - is_domain_connection: typing.Optional[bool] = OMIT, - show_as_button: typing.Optional[bool] = OMIT, - realms: typing.Optional[typing.Sequence[str]] = OMIT, - metadata: typing.Optional[ConnectionsMetadata] = OMIT, - authentication: typing.Optional[ConnectionAuthenticationPurpose] = OMIT, - connected_accounts: typing.Optional[ConnectionConnectedAccountsPurpose] = OMIT, - cross_app_access_requesting_app: typing.Optional[CrossAppAccessRequestingApp] = OMIT, - cross_app_access_resource_app: typing.Optional[CreateCrossAppAccessResourceApp] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateConnectionResponseContent: - """ - Creates a new connection according to the JSON object received in `body`. - - **Note:** If a connection with the same name was recently deleted and had a large number of associated users, the deletion may still be processing. Creating a new connection with that name before the deletion completes may fail or produce unexpected results. - - Parameters - ---------- - name : str - The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 - - strategy : ConnectionIdentityProviderEnum - - display_name : typing.Optional[str] - Connection name used in the new universal login experience - - options : typing.Optional[ConnectionPropertiesOptions] - - enabled_clients : typing.Optional[typing.Sequence[str]] - Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. - - is_domain_connection : typing.Optional[bool] - true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) - - show_as_button : typing.Optional[bool] - Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. (Defaults to false.) - - realms : typing.Optional[typing.Sequence[str]] - Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. - - metadata : typing.Optional[ConnectionsMetadata] - - authentication : typing.Optional[ConnectionAuthenticationPurpose] - - connected_accounts : typing.Optional[ConnectionConnectedAccountsPurpose] - - cross_app_access_requesting_app : typing.Optional[CrossAppAccessRequestingApp] - - cross_app_access_resource_app : typing.Optional[CreateCrossAppAccessResourceApp] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateConnectionResponseContent - The connection was created. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.connections.create( - name="name", - strategy="ad", - ) - """ - _response = self._raw_client.create( - name=name, - strategy=strategy, - display_name=display_name, - options=options, - enabled_clients=enabled_clients, - is_domain_connection=is_domain_connection, - show_as_button=show_as_button, - realms=realms, - metadata=metadata, - authentication=authentication, - connected_accounts=connected_accounts, - cross_app_access_requesting_app=cross_app_access_requesting_app, - cross_app_access_resource_app=cross_app_access_resource_app, - request_options=request_options, - ) - return _response.data - - def get( - self, - id: str, - *, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> GetConnectionResponseContent: - """ - Retrieve details for a specified [connection](https://auth0.com/docs/authenticate/identity-providers) along with options that can be used for identity provider configuration. - - Parameters - ---------- - id : str - The id of the connection to retrieve - - fields : typing.Optional[str] - A comma separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields - - include_fields : typing.Optional[bool] - true if the fields specified are to be included in the result, false otherwise (defaults to true) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetConnectionResponseContent - The connection was retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.connections.get( - id="id", - fields="fields", - include_fields=True, - ) - """ - _response = self._raw_client.get( - id, fields=fields, include_fields=include_fields, request_options=request_options - ) - return _response.data - - def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Removes a specific [connection](https://auth0.com/docs/authenticate/identity-providers) from your tenant. This action cannot be undone. Once removed, users can no longer use this connection to authenticate. - - **Note:** If your connection has a large amount of users associated with it, please be aware that this operation can be long running after the response is returned and may impact concurrent [create connection](https://auth0.com/docs/api/management/v2/connections/post-connections) requests, if they use an identical connection name. - - Parameters - ---------- - id : str - The id of the connection to delete - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.connections.delete( - id="id", - ) - """ - _response = self._raw_client.delete(id, request_options=request_options) - return _response.data - - def update( - self, - id: str, - *, - display_name: typing.Optional[str] = OMIT, - options: typing.Optional[UpdateConnectionOptions] = OMIT, - enabled_clients: typing.Optional[typing.Sequence[str]] = OMIT, - is_domain_connection: typing.Optional[bool] = OMIT, - show_as_button: typing.Optional[bool] = OMIT, - realms: typing.Optional[typing.Sequence[str]] = OMIT, - metadata: typing.Optional[ConnectionsMetadata] = OMIT, - authentication: typing.Optional[ConnectionAuthenticationPurpose] = OMIT, - connected_accounts: typing.Optional[ConnectionConnectedAccountsPurpose] = OMIT, - cross_app_access_requesting_app: typing.Optional[CrossAppAccessRequestingApp] = OMIT, - cross_app_access_resource_app: typing.Optional[UpdateCrossAppAccessResourceApp] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateConnectionResponseContent: - """ - Update details for a specific [connection](https://auth0.com/docs/authenticate/identity-providers), including option properties for identity provider configuration. - - **Note**: If you use the `options` parameter, the entire `options` object is overridden. To avoid partial data or other issues, ensure all parameters are present when using this option. If any options are unspecified, the default will be used, even if it differs from the existing value. - - Parameters - ---------- - id : str - The id of the connection to update - - display_name : typing.Optional[str] - The connection name used in the new universal login experience. If display_name is not included in the request, the field will be overwritten with the name value. - - options : typing.Optional[UpdateConnectionOptions] - - enabled_clients : typing.Optional[typing.Sequence[str]] - DEPRECATED property. Use the PATCH /v2/connections/{id}/clients endpoint to enable or disable the connection for any clients. - - is_domain_connection : typing.Optional[bool] - true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) - - show_as_button : typing.Optional[bool] - Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. (Defaults to false.) - - realms : typing.Optional[typing.Sequence[str]] - Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. - - metadata : typing.Optional[ConnectionsMetadata] - - authentication : typing.Optional[ConnectionAuthenticationPurpose] - - connected_accounts : typing.Optional[ConnectionConnectedAccountsPurpose] - - cross_app_access_requesting_app : typing.Optional[CrossAppAccessRequestingApp] - - cross_app_access_resource_app : typing.Optional[UpdateCrossAppAccessResourceApp] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateConnectionResponseContent - The connection was updated. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.connections.update( - id="id", - ) - """ - _response = self._raw_client.update( - id, - display_name=display_name, - options=options, - enabled_clients=enabled_clients, - is_domain_connection=is_domain_connection, - show_as_button=show_as_button, - realms=realms, - metadata=metadata, - authentication=authentication, - connected_accounts=connected_accounts, - cross_app_access_requesting_app=cross_app_access_requesting_app, - cross_app_access_resource_app=cross_app_access_resource_app, - request_options=request_options, - ) - return _response.data - - def check_status(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Retrieves the status of an ad/ldap connection referenced by its `ID`. `200 OK` http status code response is returned when the connection is online, otherwise a `404` status code is returned along with an error message - - Parameters - ---------- - id : str - ID of the connection to check - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.connections.check_status( - id="id", - ) - """ - _response = self._raw_client.check_status(id, request_options=request_options) - return _response.data - - @property - def directory_provisioning(self): - if self._directory_provisioning is None: - from .directory_provisioning.client import DirectoryProvisioningClient # noqa: E402 - - self._directory_provisioning = DirectoryProvisioningClient(client_wrapper=self._client_wrapper) - return self._directory_provisioning - - @property - def scim_configuration(self): - if self._scim_configuration is None: - from .scim_configuration.client import ScimConfigurationClient # noqa: E402 - - self._scim_configuration = ScimConfigurationClient(client_wrapper=self._client_wrapper) - return self._scim_configuration - - @property - def clients(self): - if self._clients is None: - from .clients.client import ClientsClient # noqa: E402 - - self._clients = ClientsClient(client_wrapper=self._client_wrapper) - return self._clients - - @property - def keys(self): - if self._keys is None: - from .keys.client import KeysClient # noqa: E402 - - self._keys = KeysClient(client_wrapper=self._client_wrapper) - return self._keys - - @property - def users(self): - if self._users is None: - from .users.client import UsersClient # noqa: E402 - - self._users = UsersClient(client_wrapper=self._client_wrapper) - return self._users - - -class AsyncConnectionsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawConnectionsClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._directory_provisioning: typing.Optional[AsyncDirectoryProvisioningClient] = None - self._scim_configuration: typing.Optional[AsyncScimConfigurationClient] = None - self._clients: typing.Optional[AsyncClientsClient] = None - self._keys: typing.Optional[AsyncKeysClient] = None - self._users: typing.Optional[AsyncUsersClient] = None - - @property - def with_raw_response(self) -> AsyncRawConnectionsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawConnectionsClient - """ - return self._raw_client - - async def list( - self, - *, - include_totals: typing.Optional[bool] = True, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - strategy: typing.Optional[typing.Union[ConnectionStrategyEnum, typing.Sequence[ConnectionStrategyEnum]]] = None, - name: typing.Optional[str] = None, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[ConnectionForList, ListConnectionsCheckpointPaginatedResponseContent]: - """ - Retrieves detailed list of all [connections](https://auth0.com/docs/authenticate/identity-providers) that match the specified strategy. If no strategy is provided, all connections within your tenant are retrieved. This action can accept a list of fields to include or exclude from the resulting list of connections. - - This endpoint supports two types of pagination: - - - Offset pagination - - Checkpoint pagination - - Checkpoint pagination must be used if you need to retrieve more than 1000 connections. - - **Checkpoint Pagination** - - To search by checkpoint, use the following parameters: - - - `from`: Optional id from which to start selection. - - `take`: The total amount of entries to retrieve when using the from parameter. Defaults to 50. - - **Note**: The first time you call this endpoint using checkpoint pagination, omit the `from` parameter. If there are more results, a `next` value is included in the response. You can use this for subsequent API calls. When `next` is no longer included in the response, no pages are remaining. - - Parameters - ---------- - include_totals : typing.Optional[bool] - true if a query summary must be included in the result, false otherwise. Not returned when using checkpoint pagination. Default false. - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - strategy : typing.Optional[typing.Union[ConnectionStrategyEnum, typing.Sequence[ConnectionStrategyEnum]]] - Provide strategies to only retrieve connections with such strategies - - name : typing.Optional[str] - Provide the name of the connection to retrieve - - fields : typing.Optional[str] - A comma separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields - - include_fields : typing.Optional[bool] - true if the fields specified are to be included in the result, false otherwise (defaults to true) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[ConnectionForList, ListConnectionsCheckpointPaginatedResponseContent] - The connections were retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.connections.list( - include_totals=True, - from_="from", - take=1, - strategy=["ad"], - name="name", - fields="fields", - include_fields=True, - ) - async for item in response: - yield item - - # alternatively, you can paginate page-by-page - async for page in response.iter_pages(): - yield page - - - asyncio.run(main()) - """ - return await self._raw_client.list( - include_totals=include_totals, - from_=from_, - take=take, - strategy=strategy, - name=name, - fields=fields, - include_fields=include_fields, - request_options=request_options, - ) - - async def create( - self, - *, - name: str, - strategy: ConnectionIdentityProviderEnum, - display_name: typing.Optional[str] = OMIT, - options: typing.Optional[ConnectionPropertiesOptions] = OMIT, - enabled_clients: typing.Optional[typing.Sequence[str]] = OMIT, - is_domain_connection: typing.Optional[bool] = OMIT, - show_as_button: typing.Optional[bool] = OMIT, - realms: typing.Optional[typing.Sequence[str]] = OMIT, - metadata: typing.Optional[ConnectionsMetadata] = OMIT, - authentication: typing.Optional[ConnectionAuthenticationPurpose] = OMIT, - connected_accounts: typing.Optional[ConnectionConnectedAccountsPurpose] = OMIT, - cross_app_access_requesting_app: typing.Optional[CrossAppAccessRequestingApp] = OMIT, - cross_app_access_resource_app: typing.Optional[CreateCrossAppAccessResourceApp] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateConnectionResponseContent: - """ - Creates a new connection according to the JSON object received in `body`. - - **Note:** If a connection with the same name was recently deleted and had a large number of associated users, the deletion may still be processing. Creating a new connection with that name before the deletion completes may fail or produce unexpected results. - - Parameters - ---------- - name : str - The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 - - strategy : ConnectionIdentityProviderEnum - - display_name : typing.Optional[str] - Connection name used in the new universal login experience - - options : typing.Optional[ConnectionPropertiesOptions] - - enabled_clients : typing.Optional[typing.Sequence[str]] - Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. - - is_domain_connection : typing.Optional[bool] - true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) - - show_as_button : typing.Optional[bool] - Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. (Defaults to false.) - - realms : typing.Optional[typing.Sequence[str]] - Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. - - metadata : typing.Optional[ConnectionsMetadata] - - authentication : typing.Optional[ConnectionAuthenticationPurpose] - - connected_accounts : typing.Optional[ConnectionConnectedAccountsPurpose] - - cross_app_access_requesting_app : typing.Optional[CrossAppAccessRequestingApp] - - cross_app_access_resource_app : typing.Optional[CreateCrossAppAccessResourceApp] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateConnectionResponseContent - The connection was created. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.connections.create( - name="name", - strategy="ad", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - name=name, - strategy=strategy, - display_name=display_name, - options=options, - enabled_clients=enabled_clients, - is_domain_connection=is_domain_connection, - show_as_button=show_as_button, - realms=realms, - metadata=metadata, - authentication=authentication, - connected_accounts=connected_accounts, - cross_app_access_requesting_app=cross_app_access_requesting_app, - cross_app_access_resource_app=cross_app_access_resource_app, - request_options=request_options, - ) - return _response.data - - async def get( - self, - id: str, - *, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> GetConnectionResponseContent: - """ - Retrieve details for a specified [connection](https://auth0.com/docs/authenticate/identity-providers) along with options that can be used for identity provider configuration. - - Parameters - ---------- - id : str - The id of the connection to retrieve - - fields : typing.Optional[str] - A comma separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields - - include_fields : typing.Optional[bool] - true if the fields specified are to be included in the result, false otherwise (defaults to true) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetConnectionResponseContent - The connection was retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.connections.get( - id="id", - fields="fields", - include_fields=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.get( - id, fields=fields, include_fields=include_fields, request_options=request_options - ) - return _response.data - - async def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Removes a specific [connection](https://auth0.com/docs/authenticate/identity-providers) from your tenant. This action cannot be undone. Once removed, users can no longer use this connection to authenticate. - - **Note:** If your connection has a large amount of users associated with it, please be aware that this operation can be long running after the response is returned and may impact concurrent [create connection](https://auth0.com/docs/api/management/v2/connections/post-connections) requests, if they use an identical connection name. - - Parameters - ---------- - id : str - The id of the connection to delete - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.connections.delete( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete(id, request_options=request_options) - return _response.data - - async def update( - self, - id: str, - *, - display_name: typing.Optional[str] = OMIT, - options: typing.Optional[UpdateConnectionOptions] = OMIT, - enabled_clients: typing.Optional[typing.Sequence[str]] = OMIT, - is_domain_connection: typing.Optional[bool] = OMIT, - show_as_button: typing.Optional[bool] = OMIT, - realms: typing.Optional[typing.Sequence[str]] = OMIT, - metadata: typing.Optional[ConnectionsMetadata] = OMIT, - authentication: typing.Optional[ConnectionAuthenticationPurpose] = OMIT, - connected_accounts: typing.Optional[ConnectionConnectedAccountsPurpose] = OMIT, - cross_app_access_requesting_app: typing.Optional[CrossAppAccessRequestingApp] = OMIT, - cross_app_access_resource_app: typing.Optional[UpdateCrossAppAccessResourceApp] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateConnectionResponseContent: - """ - Update details for a specific [connection](https://auth0.com/docs/authenticate/identity-providers), including option properties for identity provider configuration. - - **Note**: If you use the `options` parameter, the entire `options` object is overridden. To avoid partial data or other issues, ensure all parameters are present when using this option. If any options are unspecified, the default will be used, even if it differs from the existing value. - - Parameters - ---------- - id : str - The id of the connection to update - - display_name : typing.Optional[str] - The connection name used in the new universal login experience. If display_name is not included in the request, the field will be overwritten with the name value. - - options : typing.Optional[UpdateConnectionOptions] - - enabled_clients : typing.Optional[typing.Sequence[str]] - DEPRECATED property. Use the PATCH /v2/connections/{id}/clients endpoint to enable or disable the connection for any clients. - - is_domain_connection : typing.Optional[bool] - true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) - - show_as_button : typing.Optional[bool] - Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. (Defaults to false.) - - realms : typing.Optional[typing.Sequence[str]] - Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. - - metadata : typing.Optional[ConnectionsMetadata] - - authentication : typing.Optional[ConnectionAuthenticationPurpose] - - connected_accounts : typing.Optional[ConnectionConnectedAccountsPurpose] - - cross_app_access_requesting_app : typing.Optional[CrossAppAccessRequestingApp] - - cross_app_access_resource_app : typing.Optional[UpdateCrossAppAccessResourceApp] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateConnectionResponseContent - The connection was updated. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.connections.update( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.update( - id, - display_name=display_name, - options=options, - enabled_clients=enabled_clients, - is_domain_connection=is_domain_connection, - show_as_button=show_as_button, - realms=realms, - metadata=metadata, - authentication=authentication, - connected_accounts=connected_accounts, - cross_app_access_requesting_app=cross_app_access_requesting_app, - cross_app_access_resource_app=cross_app_access_resource_app, - request_options=request_options, - ) - return _response.data - - async def check_status(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Retrieves the status of an ad/ldap connection referenced by its `ID`. `200 OK` http status code response is returned when the connection is online, otherwise a `404` status code is returned along with an error message - - Parameters - ---------- - id : str - ID of the connection to check - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.connections.check_status( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.check_status(id, request_options=request_options) - return _response.data - - @property - def directory_provisioning(self): - if self._directory_provisioning is None: - from .directory_provisioning.client import AsyncDirectoryProvisioningClient # noqa: E402 - - self._directory_provisioning = AsyncDirectoryProvisioningClient(client_wrapper=self._client_wrapper) - return self._directory_provisioning - - @property - def scim_configuration(self): - if self._scim_configuration is None: - from .scim_configuration.client import AsyncScimConfigurationClient # noqa: E402 - - self._scim_configuration = AsyncScimConfigurationClient(client_wrapper=self._client_wrapper) - return self._scim_configuration - - @property - def clients(self): - if self._clients is None: - from .clients.client import AsyncClientsClient # noqa: E402 - - self._clients = AsyncClientsClient(client_wrapper=self._client_wrapper) - return self._clients - - @property - def keys(self): - if self._keys is None: - from .keys.client import AsyncKeysClient # noqa: E402 - - self._keys = AsyncKeysClient(client_wrapper=self._client_wrapper) - return self._keys - - @property - def users(self): - if self._users is None: - from .users.client import AsyncUsersClient # noqa: E402 - - self._users = AsyncUsersClient(client_wrapper=self._client_wrapper) - return self._users diff --git a/src/auth0/management/connections/clients/__init__.py b/src/auth0/management/connections/clients/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/connections/clients/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/connections/clients/client.py b/src/auth0/management/connections/clients/client.py deleted file mode 100644 index 7d28300c..00000000 --- a/src/auth0/management/connections/clients/client.py +++ /dev/null @@ -1,251 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.pagination import AsyncPager, SyncPager -from ...core.request_options import RequestOptions -from ...types.connection_enabled_client import ConnectionEnabledClient -from ...types.get_connection_enabled_clients_response_content import GetConnectionEnabledClientsResponseContent -from ...types.update_enabled_client_connections_request_content import UpdateEnabledClientConnectionsRequestContent -from .raw_client import AsyncRawClientsClient, RawClientsClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class ClientsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawClientsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawClientsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawClientsClient - """ - return self._raw_client - - def get( - self, - id: str, - *, - take: typing.Optional[int] = 50, - from_: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[ConnectionEnabledClient, GetConnectionEnabledClientsResponseContent]: - """ - Retrieve all clients that have the specified [connection](https://auth0.com/docs/authenticate/identity-providers) enabled. - - **Note**: The first time you call this endpoint, omit the `from` parameter. If there are more results, a `next` value is included in the response. You can use this for subsequent API calls. When `next` is no longer included in the response, no further results are remaining. - - Parameters - ---------- - id : str - The id of the connection for which enabled clients are to be retrieved - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[ConnectionEnabledClient, GetConnectionEnabledClientsResponseContent] - Success - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.connections.clients.get( - id="id", - take=1, - from_="from", - ) - for item in response: - yield item - # alternatively, you can paginate page-by-page - for page in response.iter_pages(): - yield page - """ - return self._raw_client.get(id, take=take, from_=from_, request_options=request_options) - - def update( - self, - id: str, - *, - request: UpdateEnabledClientConnectionsRequestContent, - request_options: typing.Optional[RequestOptions] = None, - ) -> None: - """ - Parameters - ---------- - id : str - The id of the connection to modify - - request : UpdateEnabledClientConnectionsRequestContent - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0, UpdateEnabledClientConnectionsRequestContentItem - - client = Auth0( - token="YOUR_TOKEN", - ) - client.connections.clients.update( - id="id", - request=[ - UpdateEnabledClientConnectionsRequestContentItem( - client_id="client_id", - status=True, - ) - ], - ) - """ - _response = self._raw_client.update(id, request=request, request_options=request_options) - return _response.data - - -class AsyncClientsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawClientsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawClientsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawClientsClient - """ - return self._raw_client - - async def get( - self, - id: str, - *, - take: typing.Optional[int] = 50, - from_: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[ConnectionEnabledClient, GetConnectionEnabledClientsResponseContent]: - """ - Retrieve all clients that have the specified [connection](https://auth0.com/docs/authenticate/identity-providers) enabled. - - **Note**: The first time you call this endpoint, omit the `from` parameter. If there are more results, a `next` value is included in the response. You can use this for subsequent API calls. When `next` is no longer included in the response, no further results are remaining. - - Parameters - ---------- - id : str - The id of the connection for which enabled clients are to be retrieved - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[ConnectionEnabledClient, GetConnectionEnabledClientsResponseContent] - Success - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.connections.clients.get( - id="id", - take=1, - from_="from", - ) - async for item in response: - yield item - - # alternatively, you can paginate page-by-page - async for page in response.iter_pages(): - yield page - - - asyncio.run(main()) - """ - return await self._raw_client.get(id, take=take, from_=from_, request_options=request_options) - - async def update( - self, - id: str, - *, - request: UpdateEnabledClientConnectionsRequestContent, - request_options: typing.Optional[RequestOptions] = None, - ) -> None: - """ - Parameters - ---------- - id : str - The id of the connection to modify - - request : UpdateEnabledClientConnectionsRequestContent - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0, UpdateEnabledClientConnectionsRequestContentItem - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.connections.clients.update( - id="id", - request=[ - UpdateEnabledClientConnectionsRequestContentItem( - client_id="client_id", - status=True, - ) - ], - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.update(id, request=request, request_options=request_options) - return _response.data diff --git a/src/auth0/management/connections/clients/raw_client.py b/src/auth0/management/connections/clients/raw_client.py deleted file mode 100644 index ab48082a..00000000 --- a/src/auth0/management/connections/clients/raw_client.py +++ /dev/null @@ -1,483 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ...core.api_error import ApiError -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.http_response import AsyncHttpResponse, HttpResponse -from ...core.jsonable_encoder import quote_path_param -from ...core.pagination import AsyncPager, SyncPager -from ...core.parse_error import ParsingError -from ...core.pydantic_utilities import parse_obj_as -from ...core.request_options import RequestOptions -from ...core.serialization import convert_and_respect_annotation_metadata -from ...errors.bad_request_error import BadRequestError -from ...errors.forbidden_error import ForbiddenError -from ...errors.not_found_error import NotFoundError -from ...errors.too_many_requests_error import TooManyRequestsError -from ...errors.unauthorized_error import UnauthorizedError -from ...types.connection_enabled_client import ConnectionEnabledClient -from ...types.get_connection_enabled_clients_response_content import GetConnectionEnabledClientsResponseContent -from ...types.update_enabled_client_connections_request_content import UpdateEnabledClientConnectionsRequestContent -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawClientsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def get( - self, - id: str, - *, - take: typing.Optional[int] = 50, - from_: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[ConnectionEnabledClient, GetConnectionEnabledClientsResponseContent]: - """ - Retrieve all clients that have the specified [connection](https://auth0.com/docs/authenticate/identity-providers) enabled. - - **Note**: The first time you call this endpoint, omit the `from` parameter. If there are more results, a `next` value is included in the response. You can use this for subsequent API calls. When `next` is no longer included in the response, no further results are remaining. - - Parameters - ---------- - id : str - The id of the connection for which enabled clients are to be retrieved - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[ConnectionEnabledClient, GetConnectionEnabledClientsResponseContent] - Success - """ - _response = self._client_wrapper.httpx_client.request( - f"connections/{quote_path_param(id)}/clients", - method="GET", - params={ - "take": take, - "from": from_, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - GetConnectionEnabledClientsResponseContent, - parse_obj_as( - type_=GetConnectionEnabledClientsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.clients - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - _get_next = lambda: self.get( - id, - take=take, - from_=_parsed_next, - request_options=request_options, - ) - return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def update( - self, - id: str, - *, - request: UpdateEnabledClientConnectionsRequestContent, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[None]: - """ - Parameters - ---------- - id : str - The id of the connection to modify - - request : UpdateEnabledClientConnectionsRequestContent - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"connections/{quote_path_param(id)}/clients", - method="PATCH", - json=convert_and_respect_annotation_metadata( - object_=request, annotation=UpdateEnabledClientConnectionsRequestContent, direction="write" - ), - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawClientsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def get( - self, - id: str, - *, - take: typing.Optional[int] = 50, - from_: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[ConnectionEnabledClient, GetConnectionEnabledClientsResponseContent]: - """ - Retrieve all clients that have the specified [connection](https://auth0.com/docs/authenticate/identity-providers) enabled. - - **Note**: The first time you call this endpoint, omit the `from` parameter. If there are more results, a `next` value is included in the response. You can use this for subsequent API calls. When `next` is no longer included in the response, no further results are remaining. - - Parameters - ---------- - id : str - The id of the connection for which enabled clients are to be retrieved - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[ConnectionEnabledClient, GetConnectionEnabledClientsResponseContent] - Success - """ - _response = await self._client_wrapper.httpx_client.request( - f"connections/{quote_path_param(id)}/clients", - method="GET", - params={ - "take": take, - "from": from_, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - GetConnectionEnabledClientsResponseContent, - parse_obj_as( - type_=GetConnectionEnabledClientsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.clients - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - - async def _get_next(): - return await self.get( - id, - take=take, - from_=_parsed_next, - request_options=request_options, - ) - - return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def update( - self, - id: str, - *, - request: UpdateEnabledClientConnectionsRequestContent, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[None]: - """ - Parameters - ---------- - id : str - The id of the connection to modify - - request : UpdateEnabledClientConnectionsRequestContent - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"connections/{quote_path_param(id)}/clients", - method="PATCH", - json=convert_and_respect_annotation_metadata( - object_=request, annotation=UpdateEnabledClientConnectionsRequestContent, direction="write" - ), - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/connections/directory_provisioning/__init__.py b/src/auth0/management/connections/directory_provisioning/__init__.py deleted file mode 100644 index 7cda7981..00000000 --- a/src/auth0/management/connections/directory_provisioning/__init__.py +++ /dev/null @@ -1,34 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from . import synchronizations -_dynamic_imports: typing.Dict[str, str] = {"synchronizations": ".synchronizations"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - if module_name == f".{attr_name}": - return module - else: - return getattr(module, attr_name) - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["synchronizations"] diff --git a/src/auth0/management/connections/directory_provisioning/client.py b/src/auth0/management/connections/directory_provisioning/client.py deleted file mode 100644 index 21472ff1..00000000 --- a/src/auth0/management/connections/directory_provisioning/client.py +++ /dev/null @@ -1,990 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.pagination import AsyncPager, SyncPager -from ...core.request_options import RequestOptions -from ...types.create_directory_provisioning_request_content import CreateDirectoryProvisioningRequestContent -from ...types.create_directory_provisioning_response_content import CreateDirectoryProvisioningResponseContent -from ...types.directory_provisioning import DirectoryProvisioning -from ...types.get_directory_provisioning_default_mapping_response_content import ( - GetDirectoryProvisioningDefaultMappingResponseContent, -) -from ...types.get_directory_provisioning_response_content import GetDirectoryProvisioningResponseContent -from ...types.list_directory_provisionings_response_content import ListDirectoryProvisioningsResponseContent -from ...types.list_synchronized_groups_response_content import ListSynchronizedGroupsResponseContent -from ...types.synchronized_group_payload import SynchronizedGroupPayload -from ...types.synchronized_group_selection_id import SynchronizedGroupSelectionId -from ...types.update_directory_provisioning_request_content import UpdateDirectoryProvisioningRequestContent -from ...types.update_directory_provisioning_response_content import UpdateDirectoryProvisioningResponseContent -from .raw_client import AsyncRawDirectoryProvisioningClient, RawDirectoryProvisioningClient - -if typing.TYPE_CHECKING: - from .synchronizations.client import AsyncSynchronizationsClient, SynchronizationsClient -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class DirectoryProvisioningClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawDirectoryProvisioningClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._synchronizations: typing.Optional[SynchronizationsClient] = None - - @property - def with_raw_response(self) -> RawDirectoryProvisioningClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawDirectoryProvisioningClient - """ - return self._raw_client - - def list( - self, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[DirectoryProvisioning, ListDirectoryProvisioningsResponseContent]: - """ - Retrieve a list of directory provisioning configurations of a tenant. - - Parameters - ---------- - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[DirectoryProvisioning, ListDirectoryProvisioningsResponseContent] - The tenant's directory provisioning configuration. See Response Schemas for schema. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.connections.directory_provisioning.list( - from_="from", - take=1, - ) - for item in response: - yield item - # alternatively, you can paginate page-by-page - for page in response.iter_pages(): - yield page - """ - return self._raw_client.list(from_=from_, take=take, request_options=request_options) - - def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetDirectoryProvisioningResponseContent: - """ - Retrieve the directory provisioning configuration of a connection. - - Parameters - ---------- - id : str - The id of the connection to retrieve its directory provisioning configuration - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetDirectoryProvisioningResponseContent - The connection's directory provisioning configuration. See Response Schemas for schema. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.connections.directory_provisioning.get( - id="id", - ) - """ - _response = self._raw_client.get(id, request_options=request_options) - return _response.data - - def create( - self, - id: str, - *, - request: typing.Optional[CreateDirectoryProvisioningRequestContent] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateDirectoryProvisioningResponseContent: - """ - Create a directory provisioning configuration for a connection. - - Parameters - ---------- - id : str - The id of the connection to create its directory provisioning configuration - - request : typing.Optional[CreateDirectoryProvisioningRequestContent] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateDirectoryProvisioningResponseContent - The connection's directory provisioning configuration was created. See Response Schemas for schema. - - Examples - -------- - from auth0 import Auth0, CreateDirectoryProvisioningRequestContent - - client = Auth0( - token="YOUR_TOKEN", - ) - client.connections.directory_provisioning.create( - id="id", - request=CreateDirectoryProvisioningRequestContent(), - ) - """ - _response = self._raw_client.create(id, request=request, request_options=request_options) - return _response.data - - def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete the directory provisioning configuration of a connection. - - Parameters - ---------- - id : str - The id of the connection to delete its directory provisioning configuration - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.connections.directory_provisioning.delete( - id="id", - ) - """ - _response = self._raw_client.delete(id, request_options=request_options) - return _response.data - - def update( - self, - id: str, - *, - request: typing.Optional[UpdateDirectoryProvisioningRequestContent] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateDirectoryProvisioningResponseContent: - """ - Update the directory provisioning configuration of a connection. - - Parameters - ---------- - id : str - The id of the connection to create its directory provisioning configuration - - request : typing.Optional[UpdateDirectoryProvisioningRequestContent] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateDirectoryProvisioningResponseContent - The connection's directory provisioning configuration was updated. See Response Schemas for schema. - - Examples - -------- - from auth0 import Auth0, UpdateDirectoryProvisioningRequestContent - - client = Auth0( - token="YOUR_TOKEN", - ) - client.connections.directory_provisioning.update( - id="id", - request=UpdateDirectoryProvisioningRequestContent(), - ) - """ - _response = self._raw_client.update(id, request=request, request_options=request_options) - return _response.data - - def get_default_mapping( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetDirectoryProvisioningDefaultMappingResponseContent: - """ - Retrieve the directory provisioning default attribute mapping of a connection. - - Parameters - ---------- - id : str - The id of the connection to retrieve its directory provisioning configuration - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetDirectoryProvisioningDefaultMappingResponseContent - The connection's directory provisioning default mapping. See Response Schemas for schema. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.connections.directory_provisioning.get_default_mapping( - id="id", - ) - """ - _response = self._raw_client.get_default_mapping(id, request_options=request_options) - return _response.data - - def list_synchronized_groups( - self, - id: str, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - q: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[SynchronizedGroupPayload, ListSynchronizedGroupsResponseContent]: - """ - Retrieve the configured synchronized groups for a connection directory provisioning configuration. - - Parameters - ---------- - id : str - The id of the connection to list synchronized groups for. - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - q : typing.Optional[str] - Query in Lucene query string syntax. Only prefix search on "name" or "email" fields are allowed, with a single wildcard suffix. Operators, modifiers, and groupings are not allowed. Terms are treated as case-insensitive. Example query: "name:engineering*". - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[SynchronizedGroupPayload, ListSynchronizedGroupsResponseContent] - The connection's synchronized groups. See Response Schemas for schema. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.connections.directory_provisioning.list_synchronized_groups( - id="id", - from_="from", - take=1, - q="q", - ) - for item in response: - yield item - # alternatively, you can paginate page-by-page - for page in response.iter_pages(): - yield page - """ - return self._raw_client.list_synchronized_groups( - id, from_=from_, take=take, q=q, request_options=request_options - ) - - def add_synchronized_group_selections( - self, - id: str, - *, - groups: typing.Sequence[SynchronizedGroupPayload], - request_options: typing.Optional[RequestOptions] = None, - ) -> None: - """ - Add synchronized group selections to a directory provisioning configuration. - - Parameters - ---------- - id : str - The id of the connection to add synchronized groups to - - groups : typing.Sequence[SynchronizedGroupPayload] - Array of Google Workspace Directory group objects to synchronize. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0, SynchronizedGroupPayload - - client = Auth0( - token="YOUR_TOKEN", - ) - client.connections.directory_provisioning.add_synchronized_group_selections( - id="id", - groups=[ - SynchronizedGroupPayload( - id="id", - ) - ], - ) - """ - _response = self._raw_client.add_synchronized_group_selections( - id, groups=groups, request_options=request_options - ) - return _response.data - - def set( - self, - id: str, - *, - groups: typing.Sequence[SynchronizedGroupPayload], - request_options: typing.Optional[RequestOptions] = None, - ) -> None: - """ - Create or replace the selected groups for a connection directory provisioning configuration. - - Parameters - ---------- - id : str - The id of the connection to create or replace synchronized groups for - - groups : typing.Sequence[SynchronizedGroupPayload] - Array of Google Workspace Directory group objects to synchronize. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0, SynchronizedGroupPayload - - client = Auth0( - token="YOUR_TOKEN", - ) - client.connections.directory_provisioning.set( - id="id", - groups=[ - SynchronizedGroupPayload( - id="id", - ) - ], - ) - """ - _response = self._raw_client.set(id, groups=groups, request_options=request_options) - return _response.data - - def delete_synchronized_group_selections( - self, - id: str, - *, - groups: typing.Sequence[SynchronizedGroupSelectionId], - request_options: typing.Optional[RequestOptions] = None, - ) -> None: - """ - Delete synchronized group selections for a directory provisioning configuration - - Parameters - ---------- - id : str - The id of the connection to delete synchronized group selections for - - groups : typing.Sequence[SynchronizedGroupSelectionId] - Array of groups to remove from the selection set. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0, SynchronizedGroupSelectionId - - client = Auth0( - token="YOUR_TOKEN", - ) - client.connections.directory_provisioning.delete_synchronized_group_selections( - id="id", - groups=[ - SynchronizedGroupSelectionId( - id="id", - ) - ], - ) - """ - _response = self._raw_client.delete_synchronized_group_selections( - id, groups=groups, request_options=request_options - ) - return _response.data - - @property - def synchronizations(self): - if self._synchronizations is None: - from .synchronizations.client import SynchronizationsClient # noqa: E402 - - self._synchronizations = SynchronizationsClient(client_wrapper=self._client_wrapper) - return self._synchronizations - - -class AsyncDirectoryProvisioningClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawDirectoryProvisioningClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._synchronizations: typing.Optional[AsyncSynchronizationsClient] = None - - @property - def with_raw_response(self) -> AsyncRawDirectoryProvisioningClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawDirectoryProvisioningClient - """ - return self._raw_client - - async def list( - self, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[DirectoryProvisioning, ListDirectoryProvisioningsResponseContent]: - """ - Retrieve a list of directory provisioning configurations of a tenant. - - Parameters - ---------- - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[DirectoryProvisioning, ListDirectoryProvisioningsResponseContent] - The tenant's directory provisioning configuration. See Response Schemas for schema. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.connections.directory_provisioning.list( - from_="from", - take=1, - ) - async for item in response: - yield item - - # alternatively, you can paginate page-by-page - async for page in response.iter_pages(): - yield page - - - asyncio.run(main()) - """ - return await self._raw_client.list(from_=from_, take=take, request_options=request_options) - - async def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetDirectoryProvisioningResponseContent: - """ - Retrieve the directory provisioning configuration of a connection. - - Parameters - ---------- - id : str - The id of the connection to retrieve its directory provisioning configuration - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetDirectoryProvisioningResponseContent - The connection's directory provisioning configuration. See Response Schemas for schema. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.connections.directory_provisioning.get( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.get(id, request_options=request_options) - return _response.data - - async def create( - self, - id: str, - *, - request: typing.Optional[CreateDirectoryProvisioningRequestContent] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateDirectoryProvisioningResponseContent: - """ - Create a directory provisioning configuration for a connection. - - Parameters - ---------- - id : str - The id of the connection to create its directory provisioning configuration - - request : typing.Optional[CreateDirectoryProvisioningRequestContent] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateDirectoryProvisioningResponseContent - The connection's directory provisioning configuration was created. See Response Schemas for schema. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0, CreateDirectoryProvisioningRequestContent - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.connections.directory_provisioning.create( - id="id", - request=CreateDirectoryProvisioningRequestContent(), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create(id, request=request, request_options=request_options) - return _response.data - - async def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete the directory provisioning configuration of a connection. - - Parameters - ---------- - id : str - The id of the connection to delete its directory provisioning configuration - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.connections.directory_provisioning.delete( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete(id, request_options=request_options) - return _response.data - - async def update( - self, - id: str, - *, - request: typing.Optional[UpdateDirectoryProvisioningRequestContent] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateDirectoryProvisioningResponseContent: - """ - Update the directory provisioning configuration of a connection. - - Parameters - ---------- - id : str - The id of the connection to create its directory provisioning configuration - - request : typing.Optional[UpdateDirectoryProvisioningRequestContent] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateDirectoryProvisioningResponseContent - The connection's directory provisioning configuration was updated. See Response Schemas for schema. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0, UpdateDirectoryProvisioningRequestContent - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.connections.directory_provisioning.update( - id="id", - request=UpdateDirectoryProvisioningRequestContent(), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.update(id, request=request, request_options=request_options) - return _response.data - - async def get_default_mapping( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetDirectoryProvisioningDefaultMappingResponseContent: - """ - Retrieve the directory provisioning default attribute mapping of a connection. - - Parameters - ---------- - id : str - The id of the connection to retrieve its directory provisioning configuration - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetDirectoryProvisioningDefaultMappingResponseContent - The connection's directory provisioning default mapping. See Response Schemas for schema. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.connections.directory_provisioning.get_default_mapping( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.get_default_mapping(id, request_options=request_options) - return _response.data - - async def list_synchronized_groups( - self, - id: str, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - q: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[SynchronizedGroupPayload, ListSynchronizedGroupsResponseContent]: - """ - Retrieve the configured synchronized groups for a connection directory provisioning configuration. - - Parameters - ---------- - id : str - The id of the connection to list synchronized groups for. - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - q : typing.Optional[str] - Query in Lucene query string syntax. Only prefix search on "name" or "email" fields are allowed, with a single wildcard suffix. Operators, modifiers, and groupings are not allowed. Terms are treated as case-insensitive. Example query: "name:engineering*". - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[SynchronizedGroupPayload, ListSynchronizedGroupsResponseContent] - The connection's synchronized groups. See Response Schemas for schema. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.connections.directory_provisioning.list_synchronized_groups( - id="id", - from_="from", - take=1, - q="q", - ) - async for item in response: - yield item - - # alternatively, you can paginate page-by-page - async for page in response.iter_pages(): - yield page - - - asyncio.run(main()) - """ - return await self._raw_client.list_synchronized_groups( - id, from_=from_, take=take, q=q, request_options=request_options - ) - - async def add_synchronized_group_selections( - self, - id: str, - *, - groups: typing.Sequence[SynchronizedGroupPayload], - request_options: typing.Optional[RequestOptions] = None, - ) -> None: - """ - Add synchronized group selections to a directory provisioning configuration. - - Parameters - ---------- - id : str - The id of the connection to add synchronized groups to - - groups : typing.Sequence[SynchronizedGroupPayload] - Array of Google Workspace Directory group objects to synchronize. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0, SynchronizedGroupPayload - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.connections.directory_provisioning.add_synchronized_group_selections( - id="id", - groups=[ - SynchronizedGroupPayload( - id="id", - ) - ], - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.add_synchronized_group_selections( - id, groups=groups, request_options=request_options - ) - return _response.data - - async def set( - self, - id: str, - *, - groups: typing.Sequence[SynchronizedGroupPayload], - request_options: typing.Optional[RequestOptions] = None, - ) -> None: - """ - Create or replace the selected groups for a connection directory provisioning configuration. - - Parameters - ---------- - id : str - The id of the connection to create or replace synchronized groups for - - groups : typing.Sequence[SynchronizedGroupPayload] - Array of Google Workspace Directory group objects to synchronize. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0, SynchronizedGroupPayload - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.connections.directory_provisioning.set( - id="id", - groups=[ - SynchronizedGroupPayload( - id="id", - ) - ], - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.set(id, groups=groups, request_options=request_options) - return _response.data - - async def delete_synchronized_group_selections( - self, - id: str, - *, - groups: typing.Sequence[SynchronizedGroupSelectionId], - request_options: typing.Optional[RequestOptions] = None, - ) -> None: - """ - Delete synchronized group selections for a directory provisioning configuration - - Parameters - ---------- - id : str - The id of the connection to delete synchronized group selections for - - groups : typing.Sequence[SynchronizedGroupSelectionId] - Array of groups to remove from the selection set. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0, SynchronizedGroupSelectionId - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.connections.directory_provisioning.delete_synchronized_group_selections( - id="id", - groups=[ - SynchronizedGroupSelectionId( - id="id", - ) - ], - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete_synchronized_group_selections( - id, groups=groups, request_options=request_options - ) - return _response.data - - @property - def synchronizations(self): - if self._synchronizations is None: - from .synchronizations.client import AsyncSynchronizationsClient # noqa: E402 - - self._synchronizations = AsyncSynchronizationsClient(client_wrapper=self._client_wrapper) - return self._synchronizations diff --git a/src/auth0/management/connections/directory_provisioning/raw_client.py b/src/auth0/management/connections/directory_provisioning/raw_client.py deleted file mode 100644 index 0525737e..00000000 --- a/src/auth0/management/connections/directory_provisioning/raw_client.py +++ /dev/null @@ -1,2211 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ...core.api_error import ApiError -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.http_response import AsyncHttpResponse, HttpResponse -from ...core.jsonable_encoder import quote_path_param -from ...core.pagination import AsyncPager, SyncPager -from ...core.parse_error import ParsingError -from ...core.pydantic_utilities import parse_obj_as -from ...core.request_options import RequestOptions -from ...core.serialization import convert_and_respect_annotation_metadata -from ...errors.bad_request_error import BadRequestError -from ...errors.conflict_error import ConflictError -from ...errors.forbidden_error import ForbiddenError -from ...errors.not_found_error import NotFoundError -from ...errors.too_many_requests_error import TooManyRequestsError -from ...errors.unauthorized_error import UnauthorizedError -from ...types.create_directory_provisioning_request_content import CreateDirectoryProvisioningRequestContent -from ...types.create_directory_provisioning_response_content import CreateDirectoryProvisioningResponseContent -from ...types.directory_provisioning import DirectoryProvisioning -from ...types.get_directory_provisioning_default_mapping_response_content import ( - GetDirectoryProvisioningDefaultMappingResponseContent, -) -from ...types.get_directory_provisioning_response_content import GetDirectoryProvisioningResponseContent -from ...types.list_directory_provisionings_response_content import ListDirectoryProvisioningsResponseContent -from ...types.list_synchronized_groups_response_content import ListSynchronizedGroupsResponseContent -from ...types.synchronized_group_payload import SynchronizedGroupPayload -from ...types.synchronized_group_selection_id import SynchronizedGroupSelectionId -from ...types.update_directory_provisioning_request_content import UpdateDirectoryProvisioningRequestContent -from ...types.update_directory_provisioning_response_content import UpdateDirectoryProvisioningResponseContent -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawDirectoryProvisioningClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[DirectoryProvisioning, ListDirectoryProvisioningsResponseContent]: - """ - Retrieve a list of directory provisioning configurations of a tenant. - - Parameters - ---------- - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[DirectoryProvisioning, ListDirectoryProvisioningsResponseContent] - The tenant's directory provisioning configuration. See Response Schemas for schema. - """ - _response = self._client_wrapper.httpx_client.request( - "connections-directory-provisionings", - method="GET", - params={ - "from": from_, - "take": take, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListDirectoryProvisioningsResponseContent, - parse_obj_as( - type_=ListDirectoryProvisioningsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.directory_provisionings - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - _get_next = lambda: self.list( - from_=_parsed_next, - take=take, - request_options=request_options, - ) - return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetDirectoryProvisioningResponseContent]: - """ - Retrieve the directory provisioning configuration of a connection. - - Parameters - ---------- - id : str - The id of the connection to retrieve its directory provisioning configuration - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetDirectoryProvisioningResponseContent] - The connection's directory provisioning configuration. See Response Schemas for schema. - """ - _response = self._client_wrapper.httpx_client.request( - f"connections/{quote_path_param(id)}/directory-provisioning", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetDirectoryProvisioningResponseContent, - parse_obj_as( - type_=GetDirectoryProvisioningResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - id: str, - *, - request: typing.Optional[CreateDirectoryProvisioningRequestContent] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[CreateDirectoryProvisioningResponseContent]: - """ - Create a directory provisioning configuration for a connection. - - Parameters - ---------- - id : str - The id of the connection to create its directory provisioning configuration - - request : typing.Optional[CreateDirectoryProvisioningRequestContent] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CreateDirectoryProvisioningResponseContent] - The connection's directory provisioning configuration was created. See Response Schemas for schema. - """ - _response = self._client_wrapper.httpx_client.request( - f"connections/{quote_path_param(id)}/directory-provisioning", - method="POST", - json=convert_and_respect_annotation_metadata( - object_=request, - annotation=typing.Optional[CreateDirectoryProvisioningRequestContent], - direction="write", - ), - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateDirectoryProvisioningResponseContent, - parse_obj_as( - type_=CreateDirectoryProvisioningResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[None]: - """ - Delete the directory provisioning configuration of a connection. - - Parameters - ---------- - id : str - The id of the connection to delete its directory provisioning configuration - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"connections/{quote_path_param(id)}/directory-provisioning", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def update( - self, - id: str, - *, - request: typing.Optional[UpdateDirectoryProvisioningRequestContent] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[UpdateDirectoryProvisioningResponseContent]: - """ - Update the directory provisioning configuration of a connection. - - Parameters - ---------- - id : str - The id of the connection to create its directory provisioning configuration - - request : typing.Optional[UpdateDirectoryProvisioningRequestContent] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[UpdateDirectoryProvisioningResponseContent] - The connection's directory provisioning configuration was updated. See Response Schemas for schema. - """ - _response = self._client_wrapper.httpx_client.request( - f"connections/{quote_path_param(id)}/directory-provisioning", - method="PATCH", - json=convert_and_respect_annotation_metadata( - object_=request, - annotation=typing.Optional[UpdateDirectoryProvisioningRequestContent], - direction="write", - ), - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateDirectoryProvisioningResponseContent, - parse_obj_as( - type_=UpdateDirectoryProvisioningResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def get_default_mapping( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetDirectoryProvisioningDefaultMappingResponseContent]: - """ - Retrieve the directory provisioning default attribute mapping of a connection. - - Parameters - ---------- - id : str - The id of the connection to retrieve its directory provisioning configuration - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetDirectoryProvisioningDefaultMappingResponseContent] - The connection's directory provisioning default mapping. See Response Schemas for schema. - """ - _response = self._client_wrapper.httpx_client.request( - f"connections/{quote_path_param(id)}/directory-provisioning/default-mapping", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetDirectoryProvisioningDefaultMappingResponseContent, - parse_obj_as( - type_=GetDirectoryProvisioningDefaultMappingResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def list_synchronized_groups( - self, - id: str, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - q: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[SynchronizedGroupPayload, ListSynchronizedGroupsResponseContent]: - """ - Retrieve the configured synchronized groups for a connection directory provisioning configuration. - - Parameters - ---------- - id : str - The id of the connection to list synchronized groups for. - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - q : typing.Optional[str] - Query in Lucene query string syntax. Only prefix search on "name" or "email" fields are allowed, with a single wildcard suffix. Operators, modifiers, and groupings are not allowed. Terms are treated as case-insensitive. Example query: "name:engineering*". - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[SynchronizedGroupPayload, ListSynchronizedGroupsResponseContent] - The connection's synchronized groups. See Response Schemas for schema. - """ - _response = self._client_wrapper.httpx_client.request( - f"connections/{quote_path_param(id)}/directory-provisioning/synchronized-groups", - method="GET", - params={ - "from": from_, - "take": take, - "q": q, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListSynchronizedGroupsResponseContent, - parse_obj_as( - type_=ListSynchronizedGroupsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.groups - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - _get_next = lambda: self.list_synchronized_groups( - id, - from_=_parsed_next, - take=take, - q=q, - request_options=request_options, - ) - return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def add_synchronized_group_selections( - self, - id: str, - *, - groups: typing.Sequence[SynchronizedGroupPayload], - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[None]: - """ - Add synchronized group selections to a directory provisioning configuration. - - Parameters - ---------- - id : str - The id of the connection to add synchronized groups to - - groups : typing.Sequence[SynchronizedGroupPayload] - Array of Google Workspace Directory group objects to synchronize. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"connections/{quote_path_param(id)}/directory-provisioning/synchronized-groups", - method="POST", - json={ - "groups": convert_and_respect_annotation_metadata( - object_=groups, annotation=typing.Sequence[SynchronizedGroupPayload], direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def set( - self, - id: str, - *, - groups: typing.Sequence[SynchronizedGroupPayload], - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[None]: - """ - Create or replace the selected groups for a connection directory provisioning configuration. - - Parameters - ---------- - id : str - The id of the connection to create or replace synchronized groups for - - groups : typing.Sequence[SynchronizedGroupPayload] - Array of Google Workspace Directory group objects to synchronize. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"connections/{quote_path_param(id)}/directory-provisioning/synchronized-groups", - method="PUT", - json={ - "groups": convert_and_respect_annotation_metadata( - object_=groups, annotation=typing.Sequence[SynchronizedGroupPayload], direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def delete_synchronized_group_selections( - self, - id: str, - *, - groups: typing.Sequence[SynchronizedGroupSelectionId], - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[None]: - """ - Delete synchronized group selections for a directory provisioning configuration - - Parameters - ---------- - id : str - The id of the connection to delete synchronized group selections for - - groups : typing.Sequence[SynchronizedGroupSelectionId] - Array of groups to remove from the selection set. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"connections/{quote_path_param(id)}/directory-provisioning/synchronized-groups", - method="DELETE", - json={ - "groups": convert_and_respect_annotation_metadata( - object_=groups, annotation=typing.Sequence[SynchronizedGroupSelectionId], direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawDirectoryProvisioningClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[DirectoryProvisioning, ListDirectoryProvisioningsResponseContent]: - """ - Retrieve a list of directory provisioning configurations of a tenant. - - Parameters - ---------- - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[DirectoryProvisioning, ListDirectoryProvisioningsResponseContent] - The tenant's directory provisioning configuration. See Response Schemas for schema. - """ - _response = await self._client_wrapper.httpx_client.request( - "connections-directory-provisionings", - method="GET", - params={ - "from": from_, - "take": take, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListDirectoryProvisioningsResponseContent, - parse_obj_as( - type_=ListDirectoryProvisioningsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.directory_provisionings - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - - async def _get_next(): - return await self.list( - from_=_parsed_next, - take=take, - request_options=request_options, - ) - - return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetDirectoryProvisioningResponseContent]: - """ - Retrieve the directory provisioning configuration of a connection. - - Parameters - ---------- - id : str - The id of the connection to retrieve its directory provisioning configuration - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetDirectoryProvisioningResponseContent] - The connection's directory provisioning configuration. See Response Schemas for schema. - """ - _response = await self._client_wrapper.httpx_client.request( - f"connections/{quote_path_param(id)}/directory-provisioning", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetDirectoryProvisioningResponseContent, - parse_obj_as( - type_=GetDirectoryProvisioningResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - id: str, - *, - request: typing.Optional[CreateDirectoryProvisioningRequestContent] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[CreateDirectoryProvisioningResponseContent]: - """ - Create a directory provisioning configuration for a connection. - - Parameters - ---------- - id : str - The id of the connection to create its directory provisioning configuration - - request : typing.Optional[CreateDirectoryProvisioningRequestContent] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CreateDirectoryProvisioningResponseContent] - The connection's directory provisioning configuration was created. See Response Schemas for schema. - """ - _response = await self._client_wrapper.httpx_client.request( - f"connections/{quote_path_param(id)}/directory-provisioning", - method="POST", - json=convert_and_respect_annotation_metadata( - object_=request, - annotation=typing.Optional[CreateDirectoryProvisioningRequestContent], - direction="write", - ), - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateDirectoryProvisioningResponseContent, - parse_obj_as( - type_=CreateDirectoryProvisioningResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def delete( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Delete the directory provisioning configuration of a connection. - - Parameters - ---------- - id : str - The id of the connection to delete its directory provisioning configuration - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"connections/{quote_path_param(id)}/directory-provisioning", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def update( - self, - id: str, - *, - request: typing.Optional[UpdateDirectoryProvisioningRequestContent] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[UpdateDirectoryProvisioningResponseContent]: - """ - Update the directory provisioning configuration of a connection. - - Parameters - ---------- - id : str - The id of the connection to create its directory provisioning configuration - - request : typing.Optional[UpdateDirectoryProvisioningRequestContent] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[UpdateDirectoryProvisioningResponseContent] - The connection's directory provisioning configuration was updated. See Response Schemas for schema. - """ - _response = await self._client_wrapper.httpx_client.request( - f"connections/{quote_path_param(id)}/directory-provisioning", - method="PATCH", - json=convert_and_respect_annotation_metadata( - object_=request, - annotation=typing.Optional[UpdateDirectoryProvisioningRequestContent], - direction="write", - ), - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateDirectoryProvisioningResponseContent, - parse_obj_as( - type_=UpdateDirectoryProvisioningResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def get_default_mapping( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetDirectoryProvisioningDefaultMappingResponseContent]: - """ - Retrieve the directory provisioning default attribute mapping of a connection. - - Parameters - ---------- - id : str - The id of the connection to retrieve its directory provisioning configuration - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetDirectoryProvisioningDefaultMappingResponseContent] - The connection's directory provisioning default mapping. See Response Schemas for schema. - """ - _response = await self._client_wrapper.httpx_client.request( - f"connections/{quote_path_param(id)}/directory-provisioning/default-mapping", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetDirectoryProvisioningDefaultMappingResponseContent, - parse_obj_as( - type_=GetDirectoryProvisioningDefaultMappingResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def list_synchronized_groups( - self, - id: str, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - q: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[SynchronizedGroupPayload, ListSynchronizedGroupsResponseContent]: - """ - Retrieve the configured synchronized groups for a connection directory provisioning configuration. - - Parameters - ---------- - id : str - The id of the connection to list synchronized groups for. - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - q : typing.Optional[str] - Query in Lucene query string syntax. Only prefix search on "name" or "email" fields are allowed, with a single wildcard suffix. Operators, modifiers, and groupings are not allowed. Terms are treated as case-insensitive. Example query: "name:engineering*". - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[SynchronizedGroupPayload, ListSynchronizedGroupsResponseContent] - The connection's synchronized groups. See Response Schemas for schema. - """ - _response = await self._client_wrapper.httpx_client.request( - f"connections/{quote_path_param(id)}/directory-provisioning/synchronized-groups", - method="GET", - params={ - "from": from_, - "take": take, - "q": q, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListSynchronizedGroupsResponseContent, - parse_obj_as( - type_=ListSynchronizedGroupsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.groups - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - - async def _get_next(): - return await self.list_synchronized_groups( - id, - from_=_parsed_next, - take=take, - q=q, - request_options=request_options, - ) - - return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def add_synchronized_group_selections( - self, - id: str, - *, - groups: typing.Sequence[SynchronizedGroupPayload], - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[None]: - """ - Add synchronized group selections to a directory provisioning configuration. - - Parameters - ---------- - id : str - The id of the connection to add synchronized groups to - - groups : typing.Sequence[SynchronizedGroupPayload] - Array of Google Workspace Directory group objects to synchronize. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"connections/{quote_path_param(id)}/directory-provisioning/synchronized-groups", - method="POST", - json={ - "groups": convert_and_respect_annotation_metadata( - object_=groups, annotation=typing.Sequence[SynchronizedGroupPayload], direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def set( - self, - id: str, - *, - groups: typing.Sequence[SynchronizedGroupPayload], - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[None]: - """ - Create or replace the selected groups for a connection directory provisioning configuration. - - Parameters - ---------- - id : str - The id of the connection to create or replace synchronized groups for - - groups : typing.Sequence[SynchronizedGroupPayload] - Array of Google Workspace Directory group objects to synchronize. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"connections/{quote_path_param(id)}/directory-provisioning/synchronized-groups", - method="PUT", - json={ - "groups": convert_and_respect_annotation_metadata( - object_=groups, annotation=typing.Sequence[SynchronizedGroupPayload], direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def delete_synchronized_group_selections( - self, - id: str, - *, - groups: typing.Sequence[SynchronizedGroupSelectionId], - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[None]: - """ - Delete synchronized group selections for a directory provisioning configuration - - Parameters - ---------- - id : str - The id of the connection to delete synchronized group selections for - - groups : typing.Sequence[SynchronizedGroupSelectionId] - Array of groups to remove from the selection set. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"connections/{quote_path_param(id)}/directory-provisioning/synchronized-groups", - method="DELETE", - json={ - "groups": convert_and_respect_annotation_metadata( - object_=groups, annotation=typing.Sequence[SynchronizedGroupSelectionId], direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/connections/directory_provisioning/synchronizations/__init__.py b/src/auth0/management/connections/directory_provisioning/synchronizations/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/connections/directory_provisioning/synchronizations/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/connections/directory_provisioning/synchronizations/client.py b/src/auth0/management/connections/directory_provisioning/synchronizations/client.py deleted file mode 100644 index 23b2a953..00000000 --- a/src/auth0/management/connections/directory_provisioning/synchronizations/client.py +++ /dev/null @@ -1,114 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ....core.request_options import RequestOptions -from ....types.create_directory_synchronization_response_content import CreateDirectorySynchronizationResponseContent -from .raw_client import AsyncRawSynchronizationsClient, RawSynchronizationsClient - - -class SynchronizationsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawSynchronizationsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawSynchronizationsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawSynchronizationsClient - """ - return self._raw_client - - def create( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> CreateDirectorySynchronizationResponseContent: - """ - Request an on-demand synchronization of the directory. - - Parameters - ---------- - id : str - The id of the connection to trigger synchronization for - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateDirectorySynchronizationResponseContent - The directory synchronization was triggered. See Response Schemas for schema. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.connections.directory_provisioning.synchronizations.create( - id="id", - ) - """ - _response = self._raw_client.create(id, request_options=request_options) - return _response.data - - -class AsyncSynchronizationsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawSynchronizationsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawSynchronizationsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawSynchronizationsClient - """ - return self._raw_client - - async def create( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> CreateDirectorySynchronizationResponseContent: - """ - Request an on-demand synchronization of the directory. - - Parameters - ---------- - id : str - The id of the connection to trigger synchronization for - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateDirectorySynchronizationResponseContent - The directory synchronization was triggered. See Response Schemas for schema. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.connections.directory_provisioning.synchronizations.create( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create(id, request_options=request_options) - return _response.data diff --git a/src/auth0/management/connections/directory_provisioning/synchronizations/raw_client.py b/src/auth0/management/connections/directory_provisioning/synchronizations/raw_client.py deleted file mode 100644 index f688d127..00000000 --- a/src/auth0/management/connections/directory_provisioning/synchronizations/raw_client.py +++ /dev/null @@ -1,248 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ....core.api_error import ApiError -from ....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ....core.http_response import AsyncHttpResponse, HttpResponse -from ....core.jsonable_encoder import quote_path_param -from ....core.parse_error import ParsingError -from ....core.pydantic_utilities import parse_obj_as -from ....core.request_options import RequestOptions -from ....errors.bad_request_error import BadRequestError -from ....errors.conflict_error import ConflictError -from ....errors.forbidden_error import ForbiddenError -from ....errors.not_found_error import NotFoundError -from ....errors.too_many_requests_error import TooManyRequestsError -from ....errors.unauthorized_error import UnauthorizedError -from ....types.create_directory_synchronization_response_content import CreateDirectorySynchronizationResponseContent -from pydantic import ValidationError - - -class RawSynchronizationsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def create( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[CreateDirectorySynchronizationResponseContent]: - """ - Request an on-demand synchronization of the directory. - - Parameters - ---------- - id : str - The id of the connection to trigger synchronization for - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CreateDirectorySynchronizationResponseContent] - The directory synchronization was triggered. See Response Schemas for schema. - """ - _response = self._client_wrapper.httpx_client.request( - f"connections/{quote_path_param(id)}/directory-provisioning/synchronizations", - method="POST", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateDirectorySynchronizationResponseContent, - parse_obj_as( - type_=CreateDirectorySynchronizationResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawSynchronizationsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def create( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[CreateDirectorySynchronizationResponseContent]: - """ - Request an on-demand synchronization of the directory. - - Parameters - ---------- - id : str - The id of the connection to trigger synchronization for - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CreateDirectorySynchronizationResponseContent] - The directory synchronization was triggered. See Response Schemas for schema. - """ - _response = await self._client_wrapper.httpx_client.request( - f"connections/{quote_path_param(id)}/directory-provisioning/synchronizations", - method="POST", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateDirectorySynchronizationResponseContent, - parse_obj_as( - type_=CreateDirectorySynchronizationResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/connections/keys/__init__.py b/src/auth0/management/connections/keys/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/connections/keys/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/connections/keys/client.py b/src/auth0/management/connections/keys/client.py deleted file mode 100644 index f22c5f2a..00000000 --- a/src/auth0/management/connections/keys/client.py +++ /dev/null @@ -1,303 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.request_options import RequestOptions -from ...types.connection_key import ConnectionKey -from ...types.post_connection_keys_request_content import PostConnectionKeysRequestContent -from ...types.post_connections_keys_response_content import PostConnectionsKeysResponseContent -from ...types.rotate_connection_keys_request_content import RotateConnectionKeysRequestContent -from ...types.rotate_connections_keys_response_content import RotateConnectionsKeysResponseContent -from .raw_client import AsyncRawKeysClient, RawKeysClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class KeysClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawKeysClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawKeysClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawKeysClient - """ - return self._raw_client - - def get(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> typing.List[ConnectionKey]: - """ - Gets the connection keys for the Okta, OIDC, or SAML (samlp) connection strategy. The response includes both signing keys and encryption keys, told apart by `key_use`. Encryption keys apply only to OIDC and Okta connections. - - Parameters - ---------- - id : str - ID of the connection - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - typing.List[ConnectionKey] - Connection keys successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.connections.keys.get( - id="id", - ) - """ - _response = self._raw_client.get(id, request_options=request_options) - return _response.data - - def create( - self, - id: str, - *, - request: typing.Optional[PostConnectionKeysRequestContent] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PostConnectionsKeysResponseContent: - """ - Provision initial connection keys for Okta, OIDC, or SAML (samlp) connection strategies. This endpoint allows you to create keys before configuring the connection to use Private Key JWT authentication or encrypted ID tokens, enabling zero-downtime transitions. - - Set `key_use` to `signing` (default) to provision signing keys, optionally choosing `signing_alg`, or to `encryption` to provision encryption keys, optionally choosing `encryption_alg`. `signing_alg` and `encryption_alg` each apply only to their own key use. Encryption keys and encrypted ID tokens apply only to OIDC and Okta connections. The response lists all of the connection's keys. - - Parameters - ---------- - id : str - ID of the connection - - request : typing.Optional[PostConnectionKeysRequestContent] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PostConnectionsKeysResponseContent - Connection keys successfully created. - - Examples - -------- - from auth0 import Auth0, PostConnectionKeysRequestContent - - client = Auth0( - token="YOUR_TOKEN", - ) - client.connections.keys.create( - id="id", - request=PostConnectionKeysRequestContent(), - ) - """ - _response = self._raw_client.create(id, request=request, request_options=request_options) - return _response.data - - def rotate( - self, - id: str, - *, - request: typing.Optional[RotateConnectionKeysRequestContent] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> RotateConnectionsKeysResponseContent: - """ - Rotates the connection keys for the Okta, OIDC, or SAML (samlp) connection strategies. - - Set `key_use` to `signing` (default) to rotate the signing key, optionally choosing `signing_alg`, or to `encryption` to rotate the encryption key, optionally choosing `encryption_alg`. Rotating signing keys requires the connection to be configured to use JWT Client Authentication. Rotating encryption keys requires the connection to be configured to use encrypted ID tokens (`id_token_encrypted_response_alg` set), which applies only to OIDC and Okta connections. When `encryption_alg` is omitted, the new encryption key uses `id_token_encrypted_response_alg`. - - Parameters - ---------- - id : str - ID of the connection - - request : typing.Optional[RotateConnectionKeysRequestContent] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - RotateConnectionsKeysResponseContent - Connection keys successfully rotated. - - Examples - -------- - from auth0 import Auth0, RotateConnectionKeysRequestContent - - client = Auth0( - token="YOUR_TOKEN", - ) - client.connections.keys.rotate( - id="id", - request=RotateConnectionKeysRequestContent(), - ) - """ - _response = self._raw_client.rotate(id, request=request, request_options=request_options) - return _response.data - - -class AsyncKeysClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawKeysClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawKeysClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawKeysClient - """ - return self._raw_client - - async def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> typing.List[ConnectionKey]: - """ - Gets the connection keys for the Okta, OIDC, or SAML (samlp) connection strategy. The response includes both signing keys and encryption keys, told apart by `key_use`. Encryption keys apply only to OIDC and Okta connections. - - Parameters - ---------- - id : str - ID of the connection - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - typing.List[ConnectionKey] - Connection keys successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.connections.keys.get( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.get(id, request_options=request_options) - return _response.data - - async def create( - self, - id: str, - *, - request: typing.Optional[PostConnectionKeysRequestContent] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PostConnectionsKeysResponseContent: - """ - Provision initial connection keys for Okta, OIDC, or SAML (samlp) connection strategies. This endpoint allows you to create keys before configuring the connection to use Private Key JWT authentication or encrypted ID tokens, enabling zero-downtime transitions. - - Set `key_use` to `signing` (default) to provision signing keys, optionally choosing `signing_alg`, or to `encryption` to provision encryption keys, optionally choosing `encryption_alg`. `signing_alg` and `encryption_alg` each apply only to their own key use. Encryption keys and encrypted ID tokens apply only to OIDC and Okta connections. The response lists all of the connection's keys. - - Parameters - ---------- - id : str - ID of the connection - - request : typing.Optional[PostConnectionKeysRequestContent] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PostConnectionsKeysResponseContent - Connection keys successfully created. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0, PostConnectionKeysRequestContent - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.connections.keys.create( - id="id", - request=PostConnectionKeysRequestContent(), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create(id, request=request, request_options=request_options) - return _response.data - - async def rotate( - self, - id: str, - *, - request: typing.Optional[RotateConnectionKeysRequestContent] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> RotateConnectionsKeysResponseContent: - """ - Rotates the connection keys for the Okta, OIDC, or SAML (samlp) connection strategies. - - Set `key_use` to `signing` (default) to rotate the signing key, optionally choosing `signing_alg`, or to `encryption` to rotate the encryption key, optionally choosing `encryption_alg`. Rotating signing keys requires the connection to be configured to use JWT Client Authentication. Rotating encryption keys requires the connection to be configured to use encrypted ID tokens (`id_token_encrypted_response_alg` set), which applies only to OIDC and Okta connections. When `encryption_alg` is omitted, the new encryption key uses `id_token_encrypted_response_alg`. - - Parameters - ---------- - id : str - ID of the connection - - request : typing.Optional[RotateConnectionKeysRequestContent] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - RotateConnectionsKeysResponseContent - Connection keys successfully rotated. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0, RotateConnectionKeysRequestContent - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.connections.keys.rotate( - id="id", - request=RotateConnectionKeysRequestContent(), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.rotate(id, request=request, request_options=request_options) - return _response.data diff --git a/src/auth0/management/connections/keys/raw_client.py b/src/auth0/management/connections/keys/raw_client.py deleted file mode 100644 index 8383974e..00000000 --- a/src/auth0/management/connections/keys/raw_client.py +++ /dev/null @@ -1,696 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ...core.api_error import ApiError -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.http_response import AsyncHttpResponse, HttpResponse -from ...core.jsonable_encoder import quote_path_param -from ...core.parse_error import ParsingError -from ...core.pydantic_utilities import parse_obj_as -from ...core.request_options import RequestOptions -from ...core.serialization import convert_and_respect_annotation_metadata -from ...errors.bad_request_error import BadRequestError -from ...errors.conflict_error import ConflictError -from ...errors.forbidden_error import ForbiddenError -from ...errors.not_found_error import NotFoundError -from ...errors.too_many_requests_error import TooManyRequestsError -from ...errors.unauthorized_error import UnauthorizedError -from ...types.connection_key import ConnectionKey -from ...types.post_connection_keys_request_content import PostConnectionKeysRequestContent -from ...types.post_connections_keys_response_content import PostConnectionsKeysResponseContent -from ...types.rotate_connection_keys_request_content import RotateConnectionKeysRequestContent -from ...types.rotate_connections_keys_response_content import RotateConnectionsKeysResponseContent -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawKeysClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[typing.List[ConnectionKey]]: - """ - Gets the connection keys for the Okta, OIDC, or SAML (samlp) connection strategy. The response includes both signing keys and encryption keys, told apart by `key_use`. Encryption keys apply only to OIDC and Okta connections. - - Parameters - ---------- - id : str - ID of the connection - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[typing.List[ConnectionKey]] - Connection keys successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - f"connections/{quote_path_param(id)}/keys", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - typing.List[ConnectionKey], - parse_obj_as( - type_=typing.List[ConnectionKey], # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - id: str, - *, - request: typing.Optional[PostConnectionKeysRequestContent] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PostConnectionsKeysResponseContent]: - """ - Provision initial connection keys for Okta, OIDC, or SAML (samlp) connection strategies. This endpoint allows you to create keys before configuring the connection to use Private Key JWT authentication or encrypted ID tokens, enabling zero-downtime transitions. - - Set `key_use` to `signing` (default) to provision signing keys, optionally choosing `signing_alg`, or to `encryption` to provision encryption keys, optionally choosing `encryption_alg`. `signing_alg` and `encryption_alg` each apply only to their own key use. Encryption keys and encrypted ID tokens apply only to OIDC and Okta connections. The response lists all of the connection's keys. - - Parameters - ---------- - id : str - ID of the connection - - request : typing.Optional[PostConnectionKeysRequestContent] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PostConnectionsKeysResponseContent] - Connection keys successfully created. - """ - _response = self._client_wrapper.httpx_client.request( - f"connections/{quote_path_param(id)}/keys", - method="POST", - json=convert_and_respect_annotation_metadata( - object_=request, annotation=typing.Optional[PostConnectionKeysRequestContent], direction="write" - ), - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PostConnectionsKeysResponseContent, - parse_obj_as( - type_=PostConnectionsKeysResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def rotate( - self, - id: str, - *, - request: typing.Optional[RotateConnectionKeysRequestContent] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[RotateConnectionsKeysResponseContent]: - """ - Rotates the connection keys for the Okta, OIDC, or SAML (samlp) connection strategies. - - Set `key_use` to `signing` (default) to rotate the signing key, optionally choosing `signing_alg`, or to `encryption` to rotate the encryption key, optionally choosing `encryption_alg`. Rotating signing keys requires the connection to be configured to use JWT Client Authentication. Rotating encryption keys requires the connection to be configured to use encrypted ID tokens (`id_token_encrypted_response_alg` set), which applies only to OIDC and Okta connections. When `encryption_alg` is omitted, the new encryption key uses `id_token_encrypted_response_alg`. - - Parameters - ---------- - id : str - ID of the connection - - request : typing.Optional[RotateConnectionKeysRequestContent] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[RotateConnectionsKeysResponseContent] - Connection keys successfully rotated. - """ - _response = self._client_wrapper.httpx_client.request( - f"connections/{quote_path_param(id)}/keys/rotate", - method="POST", - json=convert_and_respect_annotation_metadata( - object_=request, annotation=typing.Optional[RotateConnectionKeysRequestContent], direction="write" - ), - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - RotateConnectionsKeysResponseContent, - parse_obj_as( - type_=RotateConnectionsKeysResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawKeysClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[typing.List[ConnectionKey]]: - """ - Gets the connection keys for the Okta, OIDC, or SAML (samlp) connection strategy. The response includes both signing keys and encryption keys, told apart by `key_use`. Encryption keys apply only to OIDC and Okta connections. - - Parameters - ---------- - id : str - ID of the connection - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[typing.List[ConnectionKey]] - Connection keys successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - f"connections/{quote_path_param(id)}/keys", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - typing.List[ConnectionKey], - parse_obj_as( - type_=typing.List[ConnectionKey], # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - id: str, - *, - request: typing.Optional[PostConnectionKeysRequestContent] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PostConnectionsKeysResponseContent]: - """ - Provision initial connection keys for Okta, OIDC, or SAML (samlp) connection strategies. This endpoint allows you to create keys before configuring the connection to use Private Key JWT authentication or encrypted ID tokens, enabling zero-downtime transitions. - - Set `key_use` to `signing` (default) to provision signing keys, optionally choosing `signing_alg`, or to `encryption` to provision encryption keys, optionally choosing `encryption_alg`. `signing_alg` and `encryption_alg` each apply only to their own key use. Encryption keys and encrypted ID tokens apply only to OIDC and Okta connections. The response lists all of the connection's keys. - - Parameters - ---------- - id : str - ID of the connection - - request : typing.Optional[PostConnectionKeysRequestContent] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PostConnectionsKeysResponseContent] - Connection keys successfully created. - """ - _response = await self._client_wrapper.httpx_client.request( - f"connections/{quote_path_param(id)}/keys", - method="POST", - json=convert_and_respect_annotation_metadata( - object_=request, annotation=typing.Optional[PostConnectionKeysRequestContent], direction="write" - ), - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PostConnectionsKeysResponseContent, - parse_obj_as( - type_=PostConnectionsKeysResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def rotate( - self, - id: str, - *, - request: typing.Optional[RotateConnectionKeysRequestContent] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[RotateConnectionsKeysResponseContent]: - """ - Rotates the connection keys for the Okta, OIDC, or SAML (samlp) connection strategies. - - Set `key_use` to `signing` (default) to rotate the signing key, optionally choosing `signing_alg`, or to `encryption` to rotate the encryption key, optionally choosing `encryption_alg`. Rotating signing keys requires the connection to be configured to use JWT Client Authentication. Rotating encryption keys requires the connection to be configured to use encrypted ID tokens (`id_token_encrypted_response_alg` set), which applies only to OIDC and Okta connections. When `encryption_alg` is omitted, the new encryption key uses `id_token_encrypted_response_alg`. - - Parameters - ---------- - id : str - ID of the connection - - request : typing.Optional[RotateConnectionKeysRequestContent] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[RotateConnectionsKeysResponseContent] - Connection keys successfully rotated. - """ - _response = await self._client_wrapper.httpx_client.request( - f"connections/{quote_path_param(id)}/keys/rotate", - method="POST", - json=convert_and_respect_annotation_metadata( - object_=request, annotation=typing.Optional[RotateConnectionKeysRequestContent], direction="write" - ), - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - RotateConnectionsKeysResponseContent, - parse_obj_as( - type_=RotateConnectionsKeysResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/connections/raw_client.py b/src/auth0/management/connections/raw_client.py deleted file mode 100644 index 26632440..00000000 --- a/src/auth0/management/connections/raw_client.py +++ /dev/null @@ -1,1675 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ..core.api_error import ApiError -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.http_response import AsyncHttpResponse, HttpResponse -from ..core.jsonable_encoder import quote_path_param -from ..core.pagination import AsyncPager, SyncPager -from ..core.parse_error import ParsingError -from ..core.pydantic_utilities import parse_obj_as -from ..core.request_options import RequestOptions -from ..core.serialization import convert_and_respect_annotation_metadata -from ..errors.bad_request_error import BadRequestError -from ..errors.conflict_error import ConflictError -from ..errors.forbidden_error import ForbiddenError -from ..errors.not_found_error import NotFoundError -from ..errors.too_many_requests_error import TooManyRequestsError -from ..errors.unauthorized_error import UnauthorizedError -from ..errors.unprocessable_entity_error import UnprocessableEntityError -from ..types.connection_authentication_purpose import ConnectionAuthenticationPurpose -from ..types.connection_connected_accounts_purpose import ConnectionConnectedAccountsPurpose -from ..types.connection_for_list import ConnectionForList -from ..types.connection_identity_provider_enum import ConnectionIdentityProviderEnum -from ..types.connection_properties_options import ConnectionPropertiesOptions -from ..types.connection_strategy_enum import ConnectionStrategyEnum -from ..types.connections_metadata import ConnectionsMetadata -from ..types.create_connection_response_content import CreateConnectionResponseContent -from ..types.create_cross_app_access_resource_app import CreateCrossAppAccessResourceApp -from ..types.cross_app_access_requesting_app import CrossAppAccessRequestingApp -from ..types.get_connection_response_content import GetConnectionResponseContent -from ..types.list_connections_checkpoint_paginated_response_content import ( - ListConnectionsCheckpointPaginatedResponseContent, -) -from ..types.update_connection_options import UpdateConnectionOptions -from ..types.update_connection_response_content import UpdateConnectionResponseContent -from ..types.update_cross_app_access_resource_app import UpdateCrossAppAccessResourceApp -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawConnectionsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - include_totals: typing.Optional[bool] = True, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - strategy: typing.Optional[typing.Union[ConnectionStrategyEnum, typing.Sequence[ConnectionStrategyEnum]]] = None, - name: typing.Optional[str] = None, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[ConnectionForList, ListConnectionsCheckpointPaginatedResponseContent]: - """ - Retrieves detailed list of all [connections](https://auth0.com/docs/authenticate/identity-providers) that match the specified strategy. If no strategy is provided, all connections within your tenant are retrieved. This action can accept a list of fields to include or exclude from the resulting list of connections. - - This endpoint supports two types of pagination: - - - Offset pagination - - Checkpoint pagination - - Checkpoint pagination must be used if you need to retrieve more than 1000 connections. - - **Checkpoint Pagination** - - To search by checkpoint, use the following parameters: - - - `from`: Optional id from which to start selection. - - `take`: The total amount of entries to retrieve when using the from parameter. Defaults to 50. - - **Note**: The first time you call this endpoint using checkpoint pagination, omit the `from` parameter. If there are more results, a `next` value is included in the response. You can use this for subsequent API calls. When `next` is no longer included in the response, no pages are remaining. - - Parameters - ---------- - include_totals : typing.Optional[bool] - true if a query summary must be included in the result, false otherwise. Not returned when using checkpoint pagination. Default false. - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - strategy : typing.Optional[typing.Union[ConnectionStrategyEnum, typing.Sequence[ConnectionStrategyEnum]]] - Provide strategies to only retrieve connections with such strategies - - name : typing.Optional[str] - Provide the name of the connection to retrieve - - fields : typing.Optional[str] - A comma separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields - - include_fields : typing.Optional[bool] - true if the fields specified are to be included in the result, false otherwise (defaults to true) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[ConnectionForList, ListConnectionsCheckpointPaginatedResponseContent] - The connections were retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - "connections", - method="GET", - params={ - "include_totals": include_totals, - "from": from_, - "take": take, - "strategy": strategy, - "name": name, - "fields": fields, - "include_fields": include_fields, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListConnectionsCheckpointPaginatedResponseContent, - parse_obj_as( - type_=ListConnectionsCheckpointPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.connections - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - _get_next = lambda: self.list( - include_totals=include_totals, - from_=_parsed_next, - take=take, - strategy=strategy, - name=name, - fields=fields, - include_fields=include_fields, - request_options=request_options, - ) - return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - *, - name: str, - strategy: ConnectionIdentityProviderEnum, - display_name: typing.Optional[str] = OMIT, - options: typing.Optional[ConnectionPropertiesOptions] = OMIT, - enabled_clients: typing.Optional[typing.Sequence[str]] = OMIT, - is_domain_connection: typing.Optional[bool] = OMIT, - show_as_button: typing.Optional[bool] = OMIT, - realms: typing.Optional[typing.Sequence[str]] = OMIT, - metadata: typing.Optional[ConnectionsMetadata] = OMIT, - authentication: typing.Optional[ConnectionAuthenticationPurpose] = OMIT, - connected_accounts: typing.Optional[ConnectionConnectedAccountsPurpose] = OMIT, - cross_app_access_requesting_app: typing.Optional[CrossAppAccessRequestingApp] = OMIT, - cross_app_access_resource_app: typing.Optional[CreateCrossAppAccessResourceApp] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[CreateConnectionResponseContent]: - """ - Creates a new connection according to the JSON object received in `body`. - - **Note:** If a connection with the same name was recently deleted and had a large number of associated users, the deletion may still be processing. Creating a new connection with that name before the deletion completes may fail or produce unexpected results. - - Parameters - ---------- - name : str - The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 - - strategy : ConnectionIdentityProviderEnum - - display_name : typing.Optional[str] - Connection name used in the new universal login experience - - options : typing.Optional[ConnectionPropertiesOptions] - - enabled_clients : typing.Optional[typing.Sequence[str]] - Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. - - is_domain_connection : typing.Optional[bool] - true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) - - show_as_button : typing.Optional[bool] - Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. (Defaults to false.) - - realms : typing.Optional[typing.Sequence[str]] - Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. - - metadata : typing.Optional[ConnectionsMetadata] - - authentication : typing.Optional[ConnectionAuthenticationPurpose] - - connected_accounts : typing.Optional[ConnectionConnectedAccountsPurpose] - - cross_app_access_requesting_app : typing.Optional[CrossAppAccessRequestingApp] - - cross_app_access_resource_app : typing.Optional[CreateCrossAppAccessResourceApp] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CreateConnectionResponseContent] - The connection was created. - """ - _response = self._client_wrapper.httpx_client.request( - "connections", - method="POST", - json={ - "name": name, - "display_name": display_name, - "strategy": strategy, - "options": convert_and_respect_annotation_metadata( - object_=options, annotation=ConnectionPropertiesOptions, direction="write" - ), - "enabled_clients": enabled_clients, - "is_domain_connection": is_domain_connection, - "show_as_button": show_as_button, - "realms": realms, - "metadata": metadata, - "authentication": convert_and_respect_annotation_metadata( - object_=authentication, annotation=ConnectionAuthenticationPurpose, direction="write" - ), - "connected_accounts": convert_and_respect_annotation_metadata( - object_=connected_accounts, annotation=ConnectionConnectedAccountsPurpose, direction="write" - ), - "cross_app_access_requesting_app": convert_and_respect_annotation_metadata( - object_=cross_app_access_requesting_app, annotation=CrossAppAccessRequestingApp, direction="write" - ), - "cross_app_access_resource_app": convert_and_respect_annotation_metadata( - object_=cross_app_access_resource_app, annotation=CreateCrossAppAccessResourceApp, direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateConnectionResponseContent, - parse_obj_as( - type_=CreateConnectionResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 422: - raise UnprocessableEntityError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def get( - self, - id: str, - *, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[GetConnectionResponseContent]: - """ - Retrieve details for a specified [connection](https://auth0.com/docs/authenticate/identity-providers) along with options that can be used for identity provider configuration. - - Parameters - ---------- - id : str - The id of the connection to retrieve - - fields : typing.Optional[str] - A comma separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields - - include_fields : typing.Optional[bool] - true if the fields specified are to be included in the result, false otherwise (defaults to true) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetConnectionResponseContent] - The connection was retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - f"connections/{quote_path_param(id)}", - method="GET", - params={ - "fields": fields, - "include_fields": include_fields, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetConnectionResponseContent, - parse_obj_as( - type_=GetConnectionResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[None]: - """ - Removes a specific [connection](https://auth0.com/docs/authenticate/identity-providers) from your tenant. This action cannot be undone. Once removed, users can no longer use this connection to authenticate. - - **Note:** If your connection has a large amount of users associated with it, please be aware that this operation can be long running after the response is returned and may impact concurrent [create connection](https://auth0.com/docs/api/management/v2/connections/post-connections) requests, if they use an identical connection name. - - Parameters - ---------- - id : str - The id of the connection to delete - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"connections/{quote_path_param(id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def update( - self, - id: str, - *, - display_name: typing.Optional[str] = OMIT, - options: typing.Optional[UpdateConnectionOptions] = OMIT, - enabled_clients: typing.Optional[typing.Sequence[str]] = OMIT, - is_domain_connection: typing.Optional[bool] = OMIT, - show_as_button: typing.Optional[bool] = OMIT, - realms: typing.Optional[typing.Sequence[str]] = OMIT, - metadata: typing.Optional[ConnectionsMetadata] = OMIT, - authentication: typing.Optional[ConnectionAuthenticationPurpose] = OMIT, - connected_accounts: typing.Optional[ConnectionConnectedAccountsPurpose] = OMIT, - cross_app_access_requesting_app: typing.Optional[CrossAppAccessRequestingApp] = OMIT, - cross_app_access_resource_app: typing.Optional[UpdateCrossAppAccessResourceApp] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[UpdateConnectionResponseContent]: - """ - Update details for a specific [connection](https://auth0.com/docs/authenticate/identity-providers), including option properties for identity provider configuration. - - **Note**: If you use the `options` parameter, the entire `options` object is overridden. To avoid partial data or other issues, ensure all parameters are present when using this option. If any options are unspecified, the default will be used, even if it differs from the existing value. - - Parameters - ---------- - id : str - The id of the connection to update - - display_name : typing.Optional[str] - The connection name used in the new universal login experience. If display_name is not included in the request, the field will be overwritten with the name value. - - options : typing.Optional[UpdateConnectionOptions] - - enabled_clients : typing.Optional[typing.Sequence[str]] - DEPRECATED property. Use the PATCH /v2/connections/{id}/clients endpoint to enable or disable the connection for any clients. - - is_domain_connection : typing.Optional[bool] - true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) - - show_as_button : typing.Optional[bool] - Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. (Defaults to false.) - - realms : typing.Optional[typing.Sequence[str]] - Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. - - metadata : typing.Optional[ConnectionsMetadata] - - authentication : typing.Optional[ConnectionAuthenticationPurpose] - - connected_accounts : typing.Optional[ConnectionConnectedAccountsPurpose] - - cross_app_access_requesting_app : typing.Optional[CrossAppAccessRequestingApp] - - cross_app_access_resource_app : typing.Optional[UpdateCrossAppAccessResourceApp] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[UpdateConnectionResponseContent] - The connection was updated. - """ - _response = self._client_wrapper.httpx_client.request( - f"connections/{quote_path_param(id)}", - method="PATCH", - json={ - "display_name": display_name, - "options": convert_and_respect_annotation_metadata( - object_=options, annotation=typing.Optional[UpdateConnectionOptions], direction="write" - ), - "enabled_clients": enabled_clients, - "is_domain_connection": is_domain_connection, - "show_as_button": show_as_button, - "realms": realms, - "metadata": metadata, - "authentication": convert_and_respect_annotation_metadata( - object_=authentication, annotation=ConnectionAuthenticationPurpose, direction="write" - ), - "connected_accounts": convert_and_respect_annotation_metadata( - object_=connected_accounts, annotation=ConnectionConnectedAccountsPurpose, direction="write" - ), - "cross_app_access_requesting_app": convert_and_respect_annotation_metadata( - object_=cross_app_access_requesting_app, annotation=CrossAppAccessRequestingApp, direction="write" - ), - "cross_app_access_resource_app": convert_and_respect_annotation_metadata( - object_=cross_app_access_resource_app, - annotation=typing.Optional[UpdateCrossAppAccessResourceApp], - direction="write", - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateConnectionResponseContent, - parse_obj_as( - type_=UpdateConnectionResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 422: - raise UnprocessableEntityError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def check_status(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[None]: - """ - Retrieves the status of an ad/ldap connection referenced by its `ID`. `200 OK` http status code response is returned when the connection is online, otherwise a `404` status code is returned along with an error message - - Parameters - ---------- - id : str - ID of the connection to check - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"connections/{quote_path_param(id)}/status", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawConnectionsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - include_totals: typing.Optional[bool] = True, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - strategy: typing.Optional[typing.Union[ConnectionStrategyEnum, typing.Sequence[ConnectionStrategyEnum]]] = None, - name: typing.Optional[str] = None, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[ConnectionForList, ListConnectionsCheckpointPaginatedResponseContent]: - """ - Retrieves detailed list of all [connections](https://auth0.com/docs/authenticate/identity-providers) that match the specified strategy. If no strategy is provided, all connections within your tenant are retrieved. This action can accept a list of fields to include or exclude from the resulting list of connections. - - This endpoint supports two types of pagination: - - - Offset pagination - - Checkpoint pagination - - Checkpoint pagination must be used if you need to retrieve more than 1000 connections. - - **Checkpoint Pagination** - - To search by checkpoint, use the following parameters: - - - `from`: Optional id from which to start selection. - - `take`: The total amount of entries to retrieve when using the from parameter. Defaults to 50. - - **Note**: The first time you call this endpoint using checkpoint pagination, omit the `from` parameter. If there are more results, a `next` value is included in the response. You can use this for subsequent API calls. When `next` is no longer included in the response, no pages are remaining. - - Parameters - ---------- - include_totals : typing.Optional[bool] - true if a query summary must be included in the result, false otherwise. Not returned when using checkpoint pagination. Default false. - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - strategy : typing.Optional[typing.Union[ConnectionStrategyEnum, typing.Sequence[ConnectionStrategyEnum]]] - Provide strategies to only retrieve connections with such strategies - - name : typing.Optional[str] - Provide the name of the connection to retrieve - - fields : typing.Optional[str] - A comma separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields - - include_fields : typing.Optional[bool] - true if the fields specified are to be included in the result, false otherwise (defaults to true) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[ConnectionForList, ListConnectionsCheckpointPaginatedResponseContent] - The connections were retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - "connections", - method="GET", - params={ - "include_totals": include_totals, - "from": from_, - "take": take, - "strategy": strategy, - "name": name, - "fields": fields, - "include_fields": include_fields, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListConnectionsCheckpointPaginatedResponseContent, - parse_obj_as( - type_=ListConnectionsCheckpointPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.connections - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - - async def _get_next(): - return await self.list( - include_totals=include_totals, - from_=_parsed_next, - take=take, - strategy=strategy, - name=name, - fields=fields, - include_fields=include_fields, - request_options=request_options, - ) - - return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - *, - name: str, - strategy: ConnectionIdentityProviderEnum, - display_name: typing.Optional[str] = OMIT, - options: typing.Optional[ConnectionPropertiesOptions] = OMIT, - enabled_clients: typing.Optional[typing.Sequence[str]] = OMIT, - is_domain_connection: typing.Optional[bool] = OMIT, - show_as_button: typing.Optional[bool] = OMIT, - realms: typing.Optional[typing.Sequence[str]] = OMIT, - metadata: typing.Optional[ConnectionsMetadata] = OMIT, - authentication: typing.Optional[ConnectionAuthenticationPurpose] = OMIT, - connected_accounts: typing.Optional[ConnectionConnectedAccountsPurpose] = OMIT, - cross_app_access_requesting_app: typing.Optional[CrossAppAccessRequestingApp] = OMIT, - cross_app_access_resource_app: typing.Optional[CreateCrossAppAccessResourceApp] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[CreateConnectionResponseContent]: - """ - Creates a new connection according to the JSON object received in `body`. - - **Note:** If a connection with the same name was recently deleted and had a large number of associated users, the deletion may still be processing. Creating a new connection with that name before the deletion completes may fail or produce unexpected results. - - Parameters - ---------- - name : str - The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 - - strategy : ConnectionIdentityProviderEnum - - display_name : typing.Optional[str] - Connection name used in the new universal login experience - - options : typing.Optional[ConnectionPropertiesOptions] - - enabled_clients : typing.Optional[typing.Sequence[str]] - Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. - - is_domain_connection : typing.Optional[bool] - true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) - - show_as_button : typing.Optional[bool] - Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. (Defaults to false.) - - realms : typing.Optional[typing.Sequence[str]] - Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. - - metadata : typing.Optional[ConnectionsMetadata] - - authentication : typing.Optional[ConnectionAuthenticationPurpose] - - connected_accounts : typing.Optional[ConnectionConnectedAccountsPurpose] - - cross_app_access_requesting_app : typing.Optional[CrossAppAccessRequestingApp] - - cross_app_access_resource_app : typing.Optional[CreateCrossAppAccessResourceApp] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CreateConnectionResponseContent] - The connection was created. - """ - _response = await self._client_wrapper.httpx_client.request( - "connections", - method="POST", - json={ - "name": name, - "display_name": display_name, - "strategy": strategy, - "options": convert_and_respect_annotation_metadata( - object_=options, annotation=ConnectionPropertiesOptions, direction="write" - ), - "enabled_clients": enabled_clients, - "is_domain_connection": is_domain_connection, - "show_as_button": show_as_button, - "realms": realms, - "metadata": metadata, - "authentication": convert_and_respect_annotation_metadata( - object_=authentication, annotation=ConnectionAuthenticationPurpose, direction="write" - ), - "connected_accounts": convert_and_respect_annotation_metadata( - object_=connected_accounts, annotation=ConnectionConnectedAccountsPurpose, direction="write" - ), - "cross_app_access_requesting_app": convert_and_respect_annotation_metadata( - object_=cross_app_access_requesting_app, annotation=CrossAppAccessRequestingApp, direction="write" - ), - "cross_app_access_resource_app": convert_and_respect_annotation_metadata( - object_=cross_app_access_resource_app, annotation=CreateCrossAppAccessResourceApp, direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateConnectionResponseContent, - parse_obj_as( - type_=CreateConnectionResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 422: - raise UnprocessableEntityError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def get( - self, - id: str, - *, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[GetConnectionResponseContent]: - """ - Retrieve details for a specified [connection](https://auth0.com/docs/authenticate/identity-providers) along with options that can be used for identity provider configuration. - - Parameters - ---------- - id : str - The id of the connection to retrieve - - fields : typing.Optional[str] - A comma separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields - - include_fields : typing.Optional[bool] - true if the fields specified are to be included in the result, false otherwise (defaults to true) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetConnectionResponseContent] - The connection was retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - f"connections/{quote_path_param(id)}", - method="GET", - params={ - "fields": fields, - "include_fields": include_fields, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetConnectionResponseContent, - parse_obj_as( - type_=GetConnectionResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def delete( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Removes a specific [connection](https://auth0.com/docs/authenticate/identity-providers) from your tenant. This action cannot be undone. Once removed, users can no longer use this connection to authenticate. - - **Note:** If your connection has a large amount of users associated with it, please be aware that this operation can be long running after the response is returned and may impact concurrent [create connection](https://auth0.com/docs/api/management/v2/connections/post-connections) requests, if they use an identical connection name. - - Parameters - ---------- - id : str - The id of the connection to delete - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"connections/{quote_path_param(id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def update( - self, - id: str, - *, - display_name: typing.Optional[str] = OMIT, - options: typing.Optional[UpdateConnectionOptions] = OMIT, - enabled_clients: typing.Optional[typing.Sequence[str]] = OMIT, - is_domain_connection: typing.Optional[bool] = OMIT, - show_as_button: typing.Optional[bool] = OMIT, - realms: typing.Optional[typing.Sequence[str]] = OMIT, - metadata: typing.Optional[ConnectionsMetadata] = OMIT, - authentication: typing.Optional[ConnectionAuthenticationPurpose] = OMIT, - connected_accounts: typing.Optional[ConnectionConnectedAccountsPurpose] = OMIT, - cross_app_access_requesting_app: typing.Optional[CrossAppAccessRequestingApp] = OMIT, - cross_app_access_resource_app: typing.Optional[UpdateCrossAppAccessResourceApp] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[UpdateConnectionResponseContent]: - """ - Update details for a specific [connection](https://auth0.com/docs/authenticate/identity-providers), including option properties for identity provider configuration. - - **Note**: If you use the `options` parameter, the entire `options` object is overridden. To avoid partial data or other issues, ensure all parameters are present when using this option. If any options are unspecified, the default will be used, even if it differs from the existing value. - - Parameters - ---------- - id : str - The id of the connection to update - - display_name : typing.Optional[str] - The connection name used in the new universal login experience. If display_name is not included in the request, the field will be overwritten with the name value. - - options : typing.Optional[UpdateConnectionOptions] - - enabled_clients : typing.Optional[typing.Sequence[str]] - DEPRECATED property. Use the PATCH /v2/connections/{id}/clients endpoint to enable or disable the connection for any clients. - - is_domain_connection : typing.Optional[bool] - true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) - - show_as_button : typing.Optional[bool] - Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. (Defaults to false.) - - realms : typing.Optional[typing.Sequence[str]] - Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. - - metadata : typing.Optional[ConnectionsMetadata] - - authentication : typing.Optional[ConnectionAuthenticationPurpose] - - connected_accounts : typing.Optional[ConnectionConnectedAccountsPurpose] - - cross_app_access_requesting_app : typing.Optional[CrossAppAccessRequestingApp] - - cross_app_access_resource_app : typing.Optional[UpdateCrossAppAccessResourceApp] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[UpdateConnectionResponseContent] - The connection was updated. - """ - _response = await self._client_wrapper.httpx_client.request( - f"connections/{quote_path_param(id)}", - method="PATCH", - json={ - "display_name": display_name, - "options": convert_and_respect_annotation_metadata( - object_=options, annotation=typing.Optional[UpdateConnectionOptions], direction="write" - ), - "enabled_clients": enabled_clients, - "is_domain_connection": is_domain_connection, - "show_as_button": show_as_button, - "realms": realms, - "metadata": metadata, - "authentication": convert_and_respect_annotation_metadata( - object_=authentication, annotation=ConnectionAuthenticationPurpose, direction="write" - ), - "connected_accounts": convert_and_respect_annotation_metadata( - object_=connected_accounts, annotation=ConnectionConnectedAccountsPurpose, direction="write" - ), - "cross_app_access_requesting_app": convert_and_respect_annotation_metadata( - object_=cross_app_access_requesting_app, annotation=CrossAppAccessRequestingApp, direction="write" - ), - "cross_app_access_resource_app": convert_and_respect_annotation_metadata( - object_=cross_app_access_resource_app, - annotation=typing.Optional[UpdateCrossAppAccessResourceApp], - direction="write", - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateConnectionResponseContent, - parse_obj_as( - type_=UpdateConnectionResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 422: - raise UnprocessableEntityError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def check_status( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Retrieves the status of an ad/ldap connection referenced by its `ID`. `200 OK` http status code response is returned when the connection is online, otherwise a `404` status code is returned along with an error message - - Parameters - ---------- - id : str - ID of the connection to check - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"connections/{quote_path_param(id)}/status", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/connections/scim_configuration/__init__.py b/src/auth0/management/connections/scim_configuration/__init__.py deleted file mode 100644 index d3f2a03f..00000000 --- a/src/auth0/management/connections/scim_configuration/__init__.py +++ /dev/null @@ -1,34 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from . import tokens -_dynamic_imports: typing.Dict[str, str] = {"tokens": ".tokens"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - if module_name == f".{attr_name}": - return module - else: - return getattr(module, attr_name) - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["tokens"] diff --git a/src/auth0/management/connections/scim_configuration/client.py b/src/auth0/management/connections/scim_configuration/client.py deleted file mode 100644 index a21dfa05..00000000 --- a/src/auth0/management/connections/scim_configuration/client.py +++ /dev/null @@ -1,584 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.pagination import AsyncPager, SyncPager -from ...core.request_options import RequestOptions -from ...types.create_scim_configuration_request_content import CreateScimConfigurationRequestContent -from ...types.create_scim_configuration_response_content import CreateScimConfigurationResponseContent -from ...types.get_scim_configuration_default_mapping_response_content import ( - GetScimConfigurationDefaultMappingResponseContent, -) -from ...types.get_scim_configuration_response_content import GetScimConfigurationResponseContent -from ...types.list_scim_configurations_response_content import ListScimConfigurationsResponseContent -from ...types.scim_configuration import ScimConfiguration -from ...types.scim_mapping_item import ScimMappingItem -from ...types.update_scim_configuration_response_content import UpdateScimConfigurationResponseContent -from .raw_client import AsyncRawScimConfigurationClient, RawScimConfigurationClient - -if typing.TYPE_CHECKING: - from .tokens.client import AsyncTokensClient, TokensClient -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class ScimConfigurationClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawScimConfigurationClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._tokens: typing.Optional[TokensClient] = None - - @property - def with_raw_response(self) -> RawScimConfigurationClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawScimConfigurationClient - """ - return self._raw_client - - def list( - self, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[ScimConfiguration, ListScimConfigurationsResponseContent]: - """ - Retrieve a list of SCIM configurations of a tenant. - - Parameters - ---------- - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[ScimConfiguration, ListScimConfigurationsResponseContent] - The tenant's SCIM configurations. See Response Schema for schema. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.connections.scim_configuration.list( - from_="from", - take=1, - ) - for item in response: - yield item - # alternatively, you can paginate page-by-page - for page in response.iter_pages(): - yield page - """ - return self._raw_client.list(from_=from_, take=take, request_options=request_options) - - def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetScimConfigurationResponseContent: - """ - Retrieves a scim configuration by its `connectionId`. - - Parameters - ---------- - id : str - The id of the connection to retrieve its SCIM configuration - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetScimConfigurationResponseContent - The connection's SCIM configuration was retrieved. See Response Schemas for schema. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.connections.scim_configuration.get( - id="id", - ) - """ - _response = self._raw_client.get(id, request_options=request_options) - return _response.data - - def create( - self, - id: str, - *, - request: typing.Optional[CreateScimConfigurationRequestContent] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateScimConfigurationResponseContent: - """ - Create a scim configuration for a connection. - - Parameters - ---------- - id : str - The id of the connection to create its SCIM configuration - - request : typing.Optional[CreateScimConfigurationRequestContent] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateScimConfigurationResponseContent - The connection's SCIM configuration was created. See Response Schemas for schema. - - Examples - -------- - from auth0 import Auth0, CreateScimConfigurationRequestContent - - client = Auth0( - token="YOUR_TOKEN", - ) - client.connections.scim_configuration.create( - id="id", - request=CreateScimConfigurationRequestContent(), - ) - """ - _response = self._raw_client.create(id, request=request, request_options=request_options) - return _response.data - - def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Deletes a scim configuration by its `connectionId`. - - Parameters - ---------- - id : str - The id of the connection to delete its SCIM configuration - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.connections.scim_configuration.delete( - id="id", - ) - """ - _response = self._raw_client.delete(id, request_options=request_options) - return _response.data - - def update( - self, - id: str, - *, - user_id_attribute: str, - mapping: typing.Sequence[ScimMappingItem], - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateScimConfigurationResponseContent: - """ - Update a scim configuration by its `connectionId`. - - Parameters - ---------- - id : str - The id of the connection to update its SCIM configuration - - user_id_attribute : str - User ID attribute for generating unique user ids - - mapping : typing.Sequence[ScimMappingItem] - The mapping between auth0 and SCIM - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateScimConfigurationResponseContent - The connection's SCIM configuration was updated. See Response Schemas for schema. - - Examples - -------- - from auth0 import Auth0, ScimMappingItem - - client = Auth0( - token="YOUR_TOKEN", - ) - client.connections.scim_configuration.update( - id="id", - user_id_attribute="user_id_attribute", - mapping=[ScimMappingItem()], - ) - """ - _response = self._raw_client.update( - id, user_id_attribute=user_id_attribute, mapping=mapping, request_options=request_options - ) - return _response.data - - def get_default_mapping( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetScimConfigurationDefaultMappingResponseContent: - """ - Retrieves a scim configuration's default mapping by its `connectionId`. - - Parameters - ---------- - id : str - The id of the connection to retrieve its default SCIM mapping - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetScimConfigurationDefaultMappingResponseContent - The connection's default SCIM mapping was retrieved. See Response Schemas for schema. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.connections.scim_configuration.get_default_mapping( - id="id", - ) - """ - _response = self._raw_client.get_default_mapping(id, request_options=request_options) - return _response.data - - @property - def tokens(self): - if self._tokens is None: - from .tokens.client import TokensClient # noqa: E402 - - self._tokens = TokensClient(client_wrapper=self._client_wrapper) - return self._tokens - - -class AsyncScimConfigurationClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawScimConfigurationClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._tokens: typing.Optional[AsyncTokensClient] = None - - @property - def with_raw_response(self) -> AsyncRawScimConfigurationClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawScimConfigurationClient - """ - return self._raw_client - - async def list( - self, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[ScimConfiguration, ListScimConfigurationsResponseContent]: - """ - Retrieve a list of SCIM configurations of a tenant. - - Parameters - ---------- - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[ScimConfiguration, ListScimConfigurationsResponseContent] - The tenant's SCIM configurations. See Response Schema for schema. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.connections.scim_configuration.list( - from_="from", - take=1, - ) - async for item in response: - yield item - - # alternatively, you can paginate page-by-page - async for page in response.iter_pages(): - yield page - - - asyncio.run(main()) - """ - return await self._raw_client.list(from_=from_, take=take, request_options=request_options) - - async def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetScimConfigurationResponseContent: - """ - Retrieves a scim configuration by its `connectionId`. - - Parameters - ---------- - id : str - The id of the connection to retrieve its SCIM configuration - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetScimConfigurationResponseContent - The connection's SCIM configuration was retrieved. See Response Schemas for schema. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.connections.scim_configuration.get( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.get(id, request_options=request_options) - return _response.data - - async def create( - self, - id: str, - *, - request: typing.Optional[CreateScimConfigurationRequestContent] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateScimConfigurationResponseContent: - """ - Create a scim configuration for a connection. - - Parameters - ---------- - id : str - The id of the connection to create its SCIM configuration - - request : typing.Optional[CreateScimConfigurationRequestContent] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateScimConfigurationResponseContent - The connection's SCIM configuration was created. See Response Schemas for schema. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0, CreateScimConfigurationRequestContent - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.connections.scim_configuration.create( - id="id", - request=CreateScimConfigurationRequestContent(), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create(id, request=request, request_options=request_options) - return _response.data - - async def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Deletes a scim configuration by its `connectionId`. - - Parameters - ---------- - id : str - The id of the connection to delete its SCIM configuration - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.connections.scim_configuration.delete( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete(id, request_options=request_options) - return _response.data - - async def update( - self, - id: str, - *, - user_id_attribute: str, - mapping: typing.Sequence[ScimMappingItem], - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateScimConfigurationResponseContent: - """ - Update a scim configuration by its `connectionId`. - - Parameters - ---------- - id : str - The id of the connection to update its SCIM configuration - - user_id_attribute : str - User ID attribute for generating unique user ids - - mapping : typing.Sequence[ScimMappingItem] - The mapping between auth0 and SCIM - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateScimConfigurationResponseContent - The connection's SCIM configuration was updated. See Response Schemas for schema. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0, ScimMappingItem - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.connections.scim_configuration.update( - id="id", - user_id_attribute="user_id_attribute", - mapping=[ScimMappingItem()], - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.update( - id, user_id_attribute=user_id_attribute, mapping=mapping, request_options=request_options - ) - return _response.data - - async def get_default_mapping( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetScimConfigurationDefaultMappingResponseContent: - """ - Retrieves a scim configuration's default mapping by its `connectionId`. - - Parameters - ---------- - id : str - The id of the connection to retrieve its default SCIM mapping - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetScimConfigurationDefaultMappingResponseContent - The connection's default SCIM mapping was retrieved. See Response Schemas for schema. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.connections.scim_configuration.get_default_mapping( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.get_default_mapping(id, request_options=request_options) - return _response.data - - @property - def tokens(self): - if self._tokens is None: - from .tokens.client import AsyncTokensClient # noqa: E402 - - self._tokens = AsyncTokensClient(client_wrapper=self._client_wrapper) - return self._tokens diff --git a/src/auth0/management/connections/scim_configuration/raw_client.py b/src/auth0/management/connections/scim_configuration/raw_client.py deleted file mode 100644 index a22e1baa..00000000 --- a/src/auth0/management/connections/scim_configuration/raw_client.py +++ /dev/null @@ -1,975 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ...core.api_error import ApiError -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.http_response import AsyncHttpResponse, HttpResponse -from ...core.jsonable_encoder import quote_path_param -from ...core.pagination import AsyncPager, SyncPager -from ...core.parse_error import ParsingError -from ...core.pydantic_utilities import parse_obj_as -from ...core.request_options import RequestOptions -from ...core.serialization import convert_and_respect_annotation_metadata -from ...errors.bad_request_error import BadRequestError -from ...errors.conflict_error import ConflictError -from ...errors.forbidden_error import ForbiddenError -from ...errors.not_found_error import NotFoundError -from ...errors.too_many_requests_error import TooManyRequestsError -from ...errors.unauthorized_error import UnauthorizedError -from ...types.create_scim_configuration_request_content import CreateScimConfigurationRequestContent -from ...types.create_scim_configuration_response_content import CreateScimConfigurationResponseContent -from ...types.get_scim_configuration_default_mapping_response_content import ( - GetScimConfigurationDefaultMappingResponseContent, -) -from ...types.get_scim_configuration_response_content import GetScimConfigurationResponseContent -from ...types.list_scim_configurations_response_content import ListScimConfigurationsResponseContent -from ...types.scim_configuration import ScimConfiguration -from ...types.scim_mapping_item import ScimMappingItem -from ...types.update_scim_configuration_response_content import UpdateScimConfigurationResponseContent -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawScimConfigurationClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[ScimConfiguration, ListScimConfigurationsResponseContent]: - """ - Retrieve a list of SCIM configurations of a tenant. - - Parameters - ---------- - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[ScimConfiguration, ListScimConfigurationsResponseContent] - The tenant's SCIM configurations. See Response Schema for schema. - """ - _response = self._client_wrapper.httpx_client.request( - "connections-scim-configurations", - method="GET", - params={ - "from": from_, - "take": take, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListScimConfigurationsResponseContent, - parse_obj_as( - type_=ListScimConfigurationsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.scim_configurations - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - _get_next = lambda: self.list( - from_=_parsed_next, - take=take, - request_options=request_options, - ) - return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetScimConfigurationResponseContent]: - """ - Retrieves a scim configuration by its `connectionId`. - - Parameters - ---------- - id : str - The id of the connection to retrieve its SCIM configuration - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetScimConfigurationResponseContent] - The connection's SCIM configuration was retrieved. See Response Schemas for schema. - """ - _response = self._client_wrapper.httpx_client.request( - f"connections/{quote_path_param(id)}/scim-configuration", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetScimConfigurationResponseContent, - parse_obj_as( - type_=GetScimConfigurationResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - id: str, - *, - request: typing.Optional[CreateScimConfigurationRequestContent] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[CreateScimConfigurationResponseContent]: - """ - Create a scim configuration for a connection. - - Parameters - ---------- - id : str - The id of the connection to create its SCIM configuration - - request : typing.Optional[CreateScimConfigurationRequestContent] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CreateScimConfigurationResponseContent] - The connection's SCIM configuration was created. See Response Schemas for schema. - """ - _response = self._client_wrapper.httpx_client.request( - f"connections/{quote_path_param(id)}/scim-configuration", - method="POST", - json=convert_and_respect_annotation_metadata( - object_=request, annotation=typing.Optional[CreateScimConfigurationRequestContent], direction="write" - ), - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateScimConfigurationResponseContent, - parse_obj_as( - type_=CreateScimConfigurationResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[None]: - """ - Deletes a scim configuration by its `connectionId`. - - Parameters - ---------- - id : str - The id of the connection to delete its SCIM configuration - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"connections/{quote_path_param(id)}/scim-configuration", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def update( - self, - id: str, - *, - user_id_attribute: str, - mapping: typing.Sequence[ScimMappingItem], - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[UpdateScimConfigurationResponseContent]: - """ - Update a scim configuration by its `connectionId`. - - Parameters - ---------- - id : str - The id of the connection to update its SCIM configuration - - user_id_attribute : str - User ID attribute for generating unique user ids - - mapping : typing.Sequence[ScimMappingItem] - The mapping between auth0 and SCIM - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[UpdateScimConfigurationResponseContent] - The connection's SCIM configuration was updated. See Response Schemas for schema. - """ - _response = self._client_wrapper.httpx_client.request( - f"connections/{quote_path_param(id)}/scim-configuration", - method="PATCH", - json={ - "user_id_attribute": user_id_attribute, - "mapping": convert_and_respect_annotation_metadata( - object_=mapping, annotation=typing.Sequence[ScimMappingItem], direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateScimConfigurationResponseContent, - parse_obj_as( - type_=UpdateScimConfigurationResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def get_default_mapping( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetScimConfigurationDefaultMappingResponseContent]: - """ - Retrieves a scim configuration's default mapping by its `connectionId`. - - Parameters - ---------- - id : str - The id of the connection to retrieve its default SCIM mapping - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetScimConfigurationDefaultMappingResponseContent] - The connection's default SCIM mapping was retrieved. See Response Schemas for schema. - """ - _response = self._client_wrapper.httpx_client.request( - f"connections/{quote_path_param(id)}/scim-configuration/default-mapping", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetScimConfigurationDefaultMappingResponseContent, - parse_obj_as( - type_=GetScimConfigurationDefaultMappingResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawScimConfigurationClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[ScimConfiguration, ListScimConfigurationsResponseContent]: - """ - Retrieve a list of SCIM configurations of a tenant. - - Parameters - ---------- - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[ScimConfiguration, ListScimConfigurationsResponseContent] - The tenant's SCIM configurations. See Response Schema for schema. - """ - _response = await self._client_wrapper.httpx_client.request( - "connections-scim-configurations", - method="GET", - params={ - "from": from_, - "take": take, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListScimConfigurationsResponseContent, - parse_obj_as( - type_=ListScimConfigurationsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.scim_configurations - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - - async def _get_next(): - return await self.list( - from_=_parsed_next, - take=take, - request_options=request_options, - ) - - return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetScimConfigurationResponseContent]: - """ - Retrieves a scim configuration by its `connectionId`. - - Parameters - ---------- - id : str - The id of the connection to retrieve its SCIM configuration - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetScimConfigurationResponseContent] - The connection's SCIM configuration was retrieved. See Response Schemas for schema. - """ - _response = await self._client_wrapper.httpx_client.request( - f"connections/{quote_path_param(id)}/scim-configuration", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetScimConfigurationResponseContent, - parse_obj_as( - type_=GetScimConfigurationResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - id: str, - *, - request: typing.Optional[CreateScimConfigurationRequestContent] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[CreateScimConfigurationResponseContent]: - """ - Create a scim configuration for a connection. - - Parameters - ---------- - id : str - The id of the connection to create its SCIM configuration - - request : typing.Optional[CreateScimConfigurationRequestContent] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CreateScimConfigurationResponseContent] - The connection's SCIM configuration was created. See Response Schemas for schema. - """ - _response = await self._client_wrapper.httpx_client.request( - f"connections/{quote_path_param(id)}/scim-configuration", - method="POST", - json=convert_and_respect_annotation_metadata( - object_=request, annotation=typing.Optional[CreateScimConfigurationRequestContent], direction="write" - ), - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateScimConfigurationResponseContent, - parse_obj_as( - type_=CreateScimConfigurationResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def delete( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Deletes a scim configuration by its `connectionId`. - - Parameters - ---------- - id : str - The id of the connection to delete its SCIM configuration - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"connections/{quote_path_param(id)}/scim-configuration", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def update( - self, - id: str, - *, - user_id_attribute: str, - mapping: typing.Sequence[ScimMappingItem], - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[UpdateScimConfigurationResponseContent]: - """ - Update a scim configuration by its `connectionId`. - - Parameters - ---------- - id : str - The id of the connection to update its SCIM configuration - - user_id_attribute : str - User ID attribute for generating unique user ids - - mapping : typing.Sequence[ScimMappingItem] - The mapping between auth0 and SCIM - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[UpdateScimConfigurationResponseContent] - The connection's SCIM configuration was updated. See Response Schemas for schema. - """ - _response = await self._client_wrapper.httpx_client.request( - f"connections/{quote_path_param(id)}/scim-configuration", - method="PATCH", - json={ - "user_id_attribute": user_id_attribute, - "mapping": convert_and_respect_annotation_metadata( - object_=mapping, annotation=typing.Sequence[ScimMappingItem], direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateScimConfigurationResponseContent, - parse_obj_as( - type_=UpdateScimConfigurationResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def get_default_mapping( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetScimConfigurationDefaultMappingResponseContent]: - """ - Retrieves a scim configuration's default mapping by its `connectionId`. - - Parameters - ---------- - id : str - The id of the connection to retrieve its default SCIM mapping - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetScimConfigurationDefaultMappingResponseContent] - The connection's default SCIM mapping was retrieved. See Response Schemas for schema. - """ - _response = await self._client_wrapper.httpx_client.request( - f"connections/{quote_path_param(id)}/scim-configuration/default-mapping", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetScimConfigurationDefaultMappingResponseContent, - parse_obj_as( - type_=GetScimConfigurationDefaultMappingResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/connections/scim_configuration/tokens/__init__.py b/src/auth0/management/connections/scim_configuration/tokens/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/connections/scim_configuration/tokens/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/connections/scim_configuration/tokens/client.py b/src/auth0/management/connections/scim_configuration/tokens/client.py deleted file mode 100644 index 39e6ec5f..00000000 --- a/src/auth0/management/connections/scim_configuration/tokens/client.py +++ /dev/null @@ -1,292 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ....core.request_options import RequestOptions -from ....types.create_scim_token_response_content import CreateScimTokenResponseContent -from ....types.get_scim_tokens_response_content import GetScimTokensResponseContent -from .raw_client import AsyncRawTokensClient, RawTokensClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class TokensClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawTokensClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawTokensClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawTokensClient - """ - return self._raw_client - - def get(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> GetScimTokensResponseContent: - """ - Retrieves all scim tokens by its connection `id`. - - Parameters - ---------- - id : str - The id of the connection to retrieve its SCIM configuration - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetScimTokensResponseContent - The connection's SCIM tokens were retrieved. See Response Schemas for schema. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.connections.scim_configuration.tokens.get( - id="id", - ) - """ - _response = self._raw_client.get(id, request_options=request_options) - return _response.data - - def create( - self, - id: str, - *, - scopes: typing.Optional[typing.Sequence[str]] = OMIT, - token_lifetime: typing.Optional[int] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateScimTokenResponseContent: - """ - Create a scim token for a scim client. - - Parameters - ---------- - id : str - The id of the connection to create its SCIM token - - scopes : typing.Optional[typing.Sequence[str]] - The scopes of the scim token - - token_lifetime : typing.Optional[int] - Lifetime of the token in seconds. Must be greater than 900 - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateScimTokenResponseContent - The connection's SCIM token was created. See Response Schemas for schema. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.connections.scim_configuration.tokens.create( - id="id", - ) - """ - _response = self._raw_client.create( - id, scopes=scopes, token_lifetime=token_lifetime, request_options=request_options - ) - return _response.data - - def delete(self, id: str, token_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Deletes a scim token by its connection `id` and `tokenId`. - - Parameters - ---------- - id : str - The connection id that owns the SCIM token to delete - - token_id : str - The id of the scim token to delete - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.connections.scim_configuration.tokens.delete( - id="id", - token_id="tokenId", - ) - """ - _response = self._raw_client.delete(id, token_id, request_options=request_options) - return _response.data - - -class AsyncTokensClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawTokensClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawTokensClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawTokensClient - """ - return self._raw_client - - async def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetScimTokensResponseContent: - """ - Retrieves all scim tokens by its connection `id`. - - Parameters - ---------- - id : str - The id of the connection to retrieve its SCIM configuration - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetScimTokensResponseContent - The connection's SCIM tokens were retrieved. See Response Schemas for schema. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.connections.scim_configuration.tokens.get( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.get(id, request_options=request_options) - return _response.data - - async def create( - self, - id: str, - *, - scopes: typing.Optional[typing.Sequence[str]] = OMIT, - token_lifetime: typing.Optional[int] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateScimTokenResponseContent: - """ - Create a scim token for a scim client. - - Parameters - ---------- - id : str - The id of the connection to create its SCIM token - - scopes : typing.Optional[typing.Sequence[str]] - The scopes of the scim token - - token_lifetime : typing.Optional[int] - Lifetime of the token in seconds. Must be greater than 900 - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateScimTokenResponseContent - The connection's SCIM token was created. See Response Schemas for schema. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.connections.scim_configuration.tokens.create( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - id, scopes=scopes, token_lifetime=token_lifetime, request_options=request_options - ) - return _response.data - - async def delete(self, id: str, token_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Deletes a scim token by its connection `id` and `tokenId`. - - Parameters - ---------- - id : str - The connection id that owns the SCIM token to delete - - token_id : str - The id of the scim token to delete - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.connections.scim_configuration.tokens.delete( - id="id", - token_id="tokenId", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete(id, token_id, request_options=request_options) - return _response.data diff --git a/src/auth0/management/connections/scim_configuration/tokens/raw_client.py b/src/auth0/management/connections/scim_configuration/tokens/raw_client.py deleted file mode 100644 index cc16b815..00000000 --- a/src/auth0/management/connections/scim_configuration/tokens/raw_client.py +++ /dev/null @@ -1,471 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ....core.api_error import ApiError -from ....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ....core.http_response import AsyncHttpResponse, HttpResponse -from ....core.jsonable_encoder import quote_path_param -from ....core.parse_error import ParsingError -from ....core.pydantic_utilities import parse_obj_as -from ....core.request_options import RequestOptions -from ....errors.bad_request_error import BadRequestError -from ....errors.conflict_error import ConflictError -from ....errors.not_found_error import NotFoundError -from ....types.create_scim_token_response_content import CreateScimTokenResponseContent -from ....types.get_scim_tokens_response_content import GetScimTokensResponseContent -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawTokensClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetScimTokensResponseContent]: - """ - Retrieves all scim tokens by its connection `id`. - - Parameters - ---------- - id : str - The id of the connection to retrieve its SCIM configuration - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetScimTokensResponseContent] - The connection's SCIM tokens were retrieved. See Response Schemas for schema. - """ - _response = self._client_wrapper.httpx_client.request( - f"connections/{quote_path_param(id)}/scim-configuration/tokens", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetScimTokensResponseContent, - parse_obj_as( - type_=GetScimTokensResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - id: str, - *, - scopes: typing.Optional[typing.Sequence[str]] = OMIT, - token_lifetime: typing.Optional[int] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[CreateScimTokenResponseContent]: - """ - Create a scim token for a scim client. - - Parameters - ---------- - id : str - The id of the connection to create its SCIM token - - scopes : typing.Optional[typing.Sequence[str]] - The scopes of the scim token - - token_lifetime : typing.Optional[int] - Lifetime of the token in seconds. Must be greater than 900 - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CreateScimTokenResponseContent] - The connection's SCIM token was created. See Response Schemas for schema. - """ - _response = self._client_wrapper.httpx_client.request( - f"connections/{quote_path_param(id)}/scim-configuration/tokens", - method="POST", - json={ - "scopes": scopes, - "token_lifetime": token_lifetime, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateScimTokenResponseContent, - parse_obj_as( - type_=CreateScimTokenResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def delete( - self, id: str, token_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[None]: - """ - Deletes a scim token by its connection `id` and `tokenId`. - - Parameters - ---------- - id : str - The connection id that owns the SCIM token to delete - - token_id : str - The id of the scim token to delete - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"connections/{quote_path_param(id)}/scim-configuration/tokens/{quote_path_param(token_id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawTokensClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetScimTokensResponseContent]: - """ - Retrieves all scim tokens by its connection `id`. - - Parameters - ---------- - id : str - The id of the connection to retrieve its SCIM configuration - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetScimTokensResponseContent] - The connection's SCIM tokens were retrieved. See Response Schemas for schema. - """ - _response = await self._client_wrapper.httpx_client.request( - f"connections/{quote_path_param(id)}/scim-configuration/tokens", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetScimTokensResponseContent, - parse_obj_as( - type_=GetScimTokensResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - id: str, - *, - scopes: typing.Optional[typing.Sequence[str]] = OMIT, - token_lifetime: typing.Optional[int] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[CreateScimTokenResponseContent]: - """ - Create a scim token for a scim client. - - Parameters - ---------- - id : str - The id of the connection to create its SCIM token - - scopes : typing.Optional[typing.Sequence[str]] - The scopes of the scim token - - token_lifetime : typing.Optional[int] - Lifetime of the token in seconds. Must be greater than 900 - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CreateScimTokenResponseContent] - The connection's SCIM token was created. See Response Schemas for schema. - """ - _response = await self._client_wrapper.httpx_client.request( - f"connections/{quote_path_param(id)}/scim-configuration/tokens", - method="POST", - json={ - "scopes": scopes, - "token_lifetime": token_lifetime, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateScimTokenResponseContent, - parse_obj_as( - type_=CreateScimTokenResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def delete( - self, id: str, token_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Deletes a scim token by its connection `id` and `tokenId`. - - Parameters - ---------- - id : str - The connection id that owns the SCIM token to delete - - token_id : str - The id of the scim token to delete - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"connections/{quote_path_param(id)}/scim-configuration/tokens/{quote_path_param(token_id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/connections/users/__init__.py b/src/auth0/management/connections/users/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/connections/users/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/connections/users/client.py b/src/auth0/management/connections/users/client.py deleted file mode 100644 index a508e711..00000000 --- a/src/auth0/management/connections/users/client.py +++ /dev/null @@ -1,117 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.request_options import RequestOptions -from .raw_client import AsyncRawUsersClient, RawUsersClient - - -class UsersClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawUsersClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawUsersClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawUsersClient - """ - return self._raw_client - - def delete_by_email(self, id: str, *, email: str, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Deletes a specified connection user by its email (you cannot delete all users from specific connection). Currently, only Database Connections are supported. - - Parameters - ---------- - id : str - The id of the connection (currently only database connections are supported) - - email : str - The email of the user to delete - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.connections.users.delete_by_email( - id="id", - email="email", - ) - """ - _response = self._raw_client.delete_by_email(id, email=email, request_options=request_options) - return _response.data - - -class AsyncUsersClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawUsersClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawUsersClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawUsersClient - """ - return self._raw_client - - async def delete_by_email( - self, id: str, *, email: str, request_options: typing.Optional[RequestOptions] = None - ) -> None: - """ - Deletes a specified connection user by its email (you cannot delete all users from specific connection). Currently, only Database Connections are supported. - - Parameters - ---------- - id : str - The id of the connection (currently only database connections are supported) - - email : str - The email of the user to delete - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.connections.users.delete_by_email( - id="id", - email="email", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete_by_email(id, email=email, request_options=request_options) - return _response.data diff --git a/src/auth0/management/connections/users/raw_client.py b/src/auth0/management/connections/users/raw_client.py deleted file mode 100644 index c48fa8e6..00000000 --- a/src/auth0/management/connections/users/raw_client.py +++ /dev/null @@ -1,220 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ...core.api_error import ApiError -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.http_response import AsyncHttpResponse, HttpResponse -from ...core.jsonable_encoder import quote_path_param -from ...core.parse_error import ParsingError -from ...core.pydantic_utilities import parse_obj_as -from ...core.request_options import RequestOptions -from ...errors.bad_request_error import BadRequestError -from ...errors.forbidden_error import ForbiddenError -from ...errors.not_found_error import NotFoundError -from ...errors.too_many_requests_error import TooManyRequestsError -from ...errors.unauthorized_error import UnauthorizedError -from pydantic import ValidationError - - -class RawUsersClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def delete_by_email( - self, id: str, *, email: str, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[None]: - """ - Deletes a specified connection user by its email (you cannot delete all users from specific connection). Currently, only Database Connections are supported. - - Parameters - ---------- - id : str - The id of the connection (currently only database connections are supported) - - email : str - The email of the user to delete - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"connections/{quote_path_param(id)}/users", - method="DELETE", - params={ - "email": email, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawUsersClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def delete_by_email( - self, id: str, *, email: str, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Deletes a specified connection user by its email (you cannot delete all users from specific connection). Currently, only Database Connections are supported. - - Parameters - ---------- - id : str - The id of the connection (currently only database connections are supported) - - email : str - The email of the user to delete - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"connections/{quote_path_param(id)}/users", - method="DELETE", - params={ - "email": email, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/core/__init__.py b/src/auth0/management/core/__init__.py index e2be580f..5bc159a1 100644 --- a/src/auth0/management/core/__init__.py +++ b/src/auth0/management/core/__init__.py @@ -14,7 +14,6 @@ from .http_response import AsyncHttpResponse, HttpResponse from .jsonable_encoder import encode_path_param, jsonable_encoder from .logging import ConsoleLogger, ILogger, LogConfig, LogLevel, Logger, create_logger - from .pagination import AsyncPager, SyncPager from .parse_error import ParsingError from .pydantic_utilities import ( IS_PYDANTIC_V2, @@ -34,7 +33,6 @@ "AsyncClientWrapper": ".client_wrapper", "AsyncHttpClient": ".http_client", "AsyncHttpResponse": ".http_response", - "AsyncPager": ".pagination", "BaseClientWrapper": ".client_wrapper", "ConsoleLogger": ".logging", "FieldMetadata": ".serialization", @@ -50,7 +48,6 @@ "RequestOptions": ".request_options", "Rfc2822DateTime": ".datetime_utils", "SyncClientWrapper": ".client_wrapper", - "SyncPager": ".pagination", "UniversalBaseModel": ".pydantic_utilities", "UniversalRootModel": ".pydantic_utilities", "convert_and_respect_annotation_metadata": ".serialization", @@ -96,7 +93,6 @@ def __dir__(): "AsyncClientWrapper", "AsyncHttpClient", "AsyncHttpResponse", - "AsyncPager", "BaseClientWrapper", "ConsoleLogger", "FieldMetadata", @@ -112,7 +108,6 @@ def __dir__(): "RequestOptions", "Rfc2822DateTime", "SyncClientWrapper", - "SyncPager", "UniversalBaseModel", "UniversalRootModel", "convert_and_respect_annotation_metadata", diff --git a/src/auth0/management/core/client_wrapper.py b/src/auth0/management/core/client_wrapper.py index fd991f52..88629824 100644 --- a/src/auth0/management/core/client_wrapper.py +++ b/src/auth0/management/core/client_wrapper.py @@ -1,11 +1,6 @@ # This file was auto-generated by Fern from our API Definition. -# Modified by Auth0 to use Auth0 telemetry format with dynamic versioning -import base64 -import platform -import sys import typing -from json import dumps import httpx from .http_client import AsyncHttpClient, HttpClient @@ -16,7 +11,6 @@ class BaseClientWrapper: def __init__( self, *, - token: typing.Union[str, typing.Callable[[], str]], headers: typing.Optional[typing.Dict[str, str]] = None, base_url: str, timeout: typing.Optional[float] = None, @@ -25,7 +19,6 @@ def __init__( max_stream_reconnection_attempts: typing.Optional[int] = None, logging: typing.Optional[typing.Union[LogConfig, Logger]] = None, ): - self._token = token self._headers = headers self._base_url = base_url self._timeout = timeout @@ -35,29 +28,11 @@ def __init__( self._logging = logging def get_headers(self) -> typing.Dict[str, str]: - py_version = platform.python_version() - version = sys.modules["auth0"].__version__ - - auth0_client = dumps({ - "name": "auth0-python", - "version": version, - "env": {"python": py_version} - }).encode("utf-8") - headers: typing.Dict[str, str] = { - "User-Agent": f"Python/{py_version}", - "Auth0-Client": base64.b64encode(auth0_client).decode(), **(self.get_custom_headers() or {}), } - headers["Authorization"] = f"Bearer {self._get_token()}" return headers - def _get_token(self) -> str: - if isinstance(self._token, str): - return self._token - else: - return self._token() - def get_custom_headers(self) -> typing.Optional[typing.Dict[str, str]]: return self._headers @@ -81,7 +56,6 @@ class SyncClientWrapper(BaseClientWrapper): def __init__( self, *, - token: typing.Union[str, typing.Callable[[], str]], headers: typing.Optional[typing.Dict[str, str]] = None, base_url: str, timeout: typing.Optional[float] = None, @@ -92,7 +66,6 @@ def __init__( httpx_client: httpx.Client, ): super().__init__( - token=token, headers=headers, base_url=base_url, timeout=timeout, @@ -115,7 +88,6 @@ class AsyncClientWrapper(BaseClientWrapper): def __init__( self, *, - token: typing.Union[str, typing.Callable[[], str]], headers: typing.Optional[typing.Dict[str, str]] = None, base_url: str, timeout: typing.Optional[float] = None, @@ -127,7 +99,6 @@ def __init__( httpx_client: httpx.AsyncClient, ): super().__init__( - token=token, headers=headers, base_url=base_url, timeout=timeout, diff --git a/src/auth0/management/core/pagination.py b/src/auth0/management/core/pagination.py deleted file mode 100644 index 760b0899..00000000 --- a/src/auth0/management/core/pagination.py +++ /dev/null @@ -1,82 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -from dataclasses import dataclass -from typing import AsyncIterator, Awaitable, Callable, Generic, Iterator, List, Optional, TypeVar - -# Generic to represent the underlying type of the results within a page -T = TypeVar("T") -# Generic to represent the type of the API response -R = TypeVar("R") - - -# SDKs implement a Page ABC per-pagination request, the endpoint then returns a pager that wraps this type -# for example, an endpoint will return SyncPager[UserPage] where UserPage implements the Page ABC. ex: -# -# SyncPager( -# has_next=response.list_metadata.after is not None, -# items=response.data, -# # This should be the outer function that returns the SyncPager again -# get_next=lambda: list(..., cursor: response.cursor) (or list(..., offset: offset + 1)) -# ) - - -@dataclass(frozen=True) -class SyncPager(Generic[T, R]): - get_next: Optional[Callable[[], Optional[SyncPager[T, R]]]] - has_next: bool - items: Optional[List[T]] - response: R - - # Here we type ignore the iterator to avoid a mypy error - # caused by the type conflict with Pydanitc's __iter__ method - # brought in by extending the base model - def __iter__(self) -> Iterator[T]: # type: ignore[override] - for page in self.iter_pages(): - if page.items is not None: - yield from page.items - - def iter_pages(self) -> Iterator[SyncPager[T, R]]: - page: Optional[SyncPager[T, R]] = self - while page is not None: - yield page - - if not page.has_next or page.get_next is None: - return - - page = page.get_next() - if page is None or page.items is None or len(page.items) == 0: - return - - def next_page(self) -> Optional[SyncPager[T, R]]: - return self.get_next() if self.get_next is not None else None - - -@dataclass(frozen=True) -class AsyncPager(Generic[T, R]): - get_next: Optional[Callable[[], Awaitable[Optional[AsyncPager[T, R]]]]] - has_next: bool - items: Optional[List[T]] - response: R - - async def __aiter__(self) -> AsyncIterator[T]: - async for page in self.iter_pages(): - if page.items is not None: - for item in page.items: - yield item - - async def iter_pages(self) -> AsyncIterator[AsyncPager[T, R]]: - page: Optional[AsyncPager[T, R]] = self - while page is not None: - yield page - - if not page.has_next or page.get_next is None: - return - - page = await page.get_next() - if page is None or page.items is None or len(page.items) == 0: - return - - async def next_page(self) -> Optional[AsyncPager[T, R]]: - return await self.get_next() if self.get_next is not None else None diff --git a/src/auth0/management/custom_domains/__init__.py b/src/auth0/management/custom_domains/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/custom_domains/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/custom_domains/client.py b/src/auth0/management/custom_domains/client.py deleted file mode 100644 index a38090d0..00000000 --- a/src/auth0/management/custom_domains/client.py +++ /dev/null @@ -1,957 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.request_options import RequestOptions -from ..types.create_custom_domain_response_content import CreateCustomDomainResponseContent -from ..types.custom_domain_custom_client_ip_header import CustomDomainCustomClientIpHeader -from ..types.custom_domain_provisioning_type_enum import CustomDomainProvisioningTypeEnum -from ..types.custom_domain_tls_policy_enum import CustomDomainTlsPolicyEnum -from ..types.custom_domain_verification_method_enum import CustomDomainVerificationMethodEnum -from ..types.domain_metadata import DomainMetadata -from ..types.get_custom_domain_response_content import GetCustomDomainResponseContent -from ..types.get_default_domain_response_content import GetDefaultDomainResponseContent -from ..types.list_custom_domains_response_content import ListCustomDomainsResponseContent -from ..types.test_custom_domain_response_content import TestCustomDomainResponseContent -from ..types.update_custom_domain_response_content import UpdateCustomDomainResponseContent -from ..types.update_default_domain_response_content import UpdateDefaultDomainResponseContent -from ..types.verify_custom_domain_response_content import VerifyCustomDomainResponseContent -from .raw_client import AsyncRawCustomDomainsClient, RawCustomDomainsClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class CustomDomainsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawCustomDomainsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawCustomDomainsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawCustomDomainsClient - """ - return self._raw_client - - def list( - self, - *, - q: typing.Optional[str] = None, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - sort: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> ListCustomDomainsResponseContent: - """ - Retrieve details on [custom domains](https://auth0.com/docs/custom-domains). - - Parameters - ---------- - q : typing.Optional[str] - Query in Lucene query string syntax. - - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). - - sort : typing.Optional[str] - Field to sort by. Only domain:1 (ascending order by domain) is supported at this time. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - ListCustomDomainsResponseContent - Custom domains successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.custom_domains.list( - q="q", - fields="fields", - include_fields=True, - sort="sort", - ) - """ - _response = self._raw_client.list( - q=q, fields=fields, include_fields=include_fields, sort=sort, request_options=request_options - ) - return _response.data - - def create( - self, - *, - domain: str, - type: CustomDomainProvisioningTypeEnum, - verification_method: typing.Optional[CustomDomainVerificationMethodEnum] = OMIT, - tls_policy: typing.Optional[CustomDomainTlsPolicyEnum] = OMIT, - custom_client_ip_header: typing.Optional[CustomDomainCustomClientIpHeader] = OMIT, - domain_metadata: typing.Optional[DomainMetadata] = OMIT, - relying_party_identifier: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateCustomDomainResponseContent: - """ - Create a new custom domain. - - Note: The custom domain will need to be verified before it will accept - requests. - - Optional attributes that can be updated: - - - custom_client_ip_header - - tls_policy - - TLS Policies: - - - recommended - for modern usage this includes TLS 1.2 only - - Parameters - ---------- - domain : str - Domain name. - - type : CustomDomainProvisioningTypeEnum - - verification_method : typing.Optional[CustomDomainVerificationMethodEnum] - - tls_policy : typing.Optional[CustomDomainTlsPolicyEnum] - - custom_client_ip_header : typing.Optional[CustomDomainCustomClientIpHeader] - - domain_metadata : typing.Optional[DomainMetadata] - - relying_party_identifier : typing.Optional[str] - Relying Party ID (rpId) to be used for Passkeys on this custom domain. If not provided, the full domain will be used. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateCustomDomainResponseContent - Custom domain successfully created (verification is pending). - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.custom_domains.create( - domain="domain", - type="auth0_managed_certs", - ) - """ - _response = self._raw_client.create( - domain=domain, - type=type, - verification_method=verification_method, - tls_policy=tls_policy, - custom_client_ip_header=custom_client_ip_header, - domain_metadata=domain_metadata, - relying_party_identifier=relying_party_identifier, - request_options=request_options, - ) - return _response.data - - def get_default( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetDefaultDomainResponseContent: - """ - Retrieve the tenant's default domain. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetDefaultDomainResponseContent - Default domain successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.custom_domains.get_default() - """ - _response = self._raw_client.get_default(request_options=request_options) - return _response.data - - def set_default( - self, *, domain: str, request_options: typing.Optional[RequestOptions] = None - ) -> UpdateDefaultDomainResponseContent: - """ - Set the default custom domain for the tenant. - - Parameters - ---------- - domain : str - The domain to set as the default custom domain. Must be a verified custom domain or the canonical domain. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateDefaultDomainResponseContent - Default custom domain set successfully. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.custom_domains.set_default( - domain="domain", - ) - """ - _response = self._raw_client.set_default(domain=domain, request_options=request_options) - return _response.data - - def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetCustomDomainResponseContent: - """ - Retrieve a custom domain configuration and status. - - Parameters - ---------- - id : str - ID of the custom domain to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetCustomDomainResponseContent - Custom domain successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.custom_domains.get( - id="id", - ) - """ - _response = self._raw_client.get(id, request_options=request_options) - return _response.data - - def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete a custom domain and stop serving requests for it. - - Parameters - ---------- - id : str - ID of the custom domain to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.custom_domains.delete( - id="id", - ) - """ - _response = self._raw_client.delete(id, request_options=request_options) - return _response.data - - def update( - self, - id: str, - *, - tls_policy: typing.Optional[CustomDomainTlsPolicyEnum] = OMIT, - custom_client_ip_header: typing.Optional[CustomDomainCustomClientIpHeader] = OMIT, - domain_metadata: typing.Optional[DomainMetadata] = OMIT, - relying_party_identifier: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateCustomDomainResponseContent: - """ - Update a custom domain. - - These are the attributes that can be updated: - - - custom_client_ip_header - - tls_policy - - **Updating CUSTOM_CLIENT_IP_HEADER for a custom domain** - - To update the `custom_client_ip_header` for a domain, the body to - send should be: - - ```json - { "custom_client_ip_header": "cf-connecting-ip" } - ``` - - **Updating TLS_POLICY for a custom domain** - - To update the `tls_policy` for a domain, the body to send should be: - - ```json - { "tls_policy": "recommended" } - ``` - - TLS Policies: - - - recommended - for modern usage this includes TLS 1.2 only - - Some considerations: - - - The TLS ciphers and protocols available in each TLS policy follow industry recommendations, and may be updated occasionally. - - The `compatible` TLS policy is no longer supported. - - Parameters - ---------- - id : str - The id of the custom domain to update - - tls_policy : typing.Optional[CustomDomainTlsPolicyEnum] - recommended includes TLS 1.2 - - custom_client_ip_header : typing.Optional[CustomDomainCustomClientIpHeader] - - domain_metadata : typing.Optional[DomainMetadata] - - relying_party_identifier : typing.Optional[str] - Relying Party ID (rpId) to be used for Passkeys on this custom domain. Set to null to remove the rpId and fall back to using the full domain. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateCustomDomainResponseContent - Custom domain updated. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.custom_domains.update( - id="id", - ) - """ - _response = self._raw_client.update( - id, - tls_policy=tls_policy, - custom_client_ip_header=custom_client_ip_header, - domain_metadata=domain_metadata, - relying_party_identifier=relying_party_identifier, - request_options=request_options, - ) - return _response.data - - def test( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> TestCustomDomainResponseContent: - """ - Run the test process on a custom domain. - - Parameters - ---------- - id : str - ID of the custom domain to test. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - TestCustomDomainResponseContent - Custom domain test successfully completed. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.custom_domains.test( - id="id", - ) - """ - _response = self._raw_client.test(id, request_options=request_options) - return _response.data - - def verify( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> VerifyCustomDomainResponseContent: - """ - Run the verification process on a custom domain. - - Note: Check the `status` field to see its verification status. Once verification is complete, it may take up to 10 minutes before the custom domain can start accepting requests. - - For `self_managed_certs`, when the custom domain is verified for the first time, the response will also include the `cname_api_key` which you will need to configure your proxy. This key must be kept secret, and is used to validate the proxy requests. - - [Learn more](https://auth0.com/docs/custom-domains#step-2-verify-ownership) about verifying custom domains that use Auth0 Managed certificates. - [Learn more](https://auth0.com/docs/custom-domains/self-managed-certificates#step-2-verify-ownership) about verifying custom domains that use Self Managed certificates. - - Parameters - ---------- - id : str - ID of the custom domain to verify. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - VerifyCustomDomainResponseContent - Custom domain successfully verified. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.custom_domains.verify( - id="id", - ) - """ - _response = self._raw_client.verify(id, request_options=request_options) - return _response.data - - -class AsyncCustomDomainsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawCustomDomainsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawCustomDomainsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawCustomDomainsClient - """ - return self._raw_client - - async def list( - self, - *, - q: typing.Optional[str] = None, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - sort: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> ListCustomDomainsResponseContent: - """ - Retrieve details on [custom domains](https://auth0.com/docs/custom-domains). - - Parameters - ---------- - q : typing.Optional[str] - Query in Lucene query string syntax. - - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). - - sort : typing.Optional[str] - Field to sort by. Only domain:1 (ascending order by domain) is supported at this time. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - ListCustomDomainsResponseContent - Custom domains successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.custom_domains.list( - q="q", - fields="fields", - include_fields=True, - sort="sort", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - q=q, fields=fields, include_fields=include_fields, sort=sort, request_options=request_options - ) - return _response.data - - async def create( - self, - *, - domain: str, - type: CustomDomainProvisioningTypeEnum, - verification_method: typing.Optional[CustomDomainVerificationMethodEnum] = OMIT, - tls_policy: typing.Optional[CustomDomainTlsPolicyEnum] = OMIT, - custom_client_ip_header: typing.Optional[CustomDomainCustomClientIpHeader] = OMIT, - domain_metadata: typing.Optional[DomainMetadata] = OMIT, - relying_party_identifier: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateCustomDomainResponseContent: - """ - Create a new custom domain. - - Note: The custom domain will need to be verified before it will accept - requests. - - Optional attributes that can be updated: - - - custom_client_ip_header - - tls_policy - - TLS Policies: - - - recommended - for modern usage this includes TLS 1.2 only - - Parameters - ---------- - domain : str - Domain name. - - type : CustomDomainProvisioningTypeEnum - - verification_method : typing.Optional[CustomDomainVerificationMethodEnum] - - tls_policy : typing.Optional[CustomDomainTlsPolicyEnum] - - custom_client_ip_header : typing.Optional[CustomDomainCustomClientIpHeader] - - domain_metadata : typing.Optional[DomainMetadata] - - relying_party_identifier : typing.Optional[str] - Relying Party ID (rpId) to be used for Passkeys on this custom domain. If not provided, the full domain will be used. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateCustomDomainResponseContent - Custom domain successfully created (verification is pending). - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.custom_domains.create( - domain="domain", - type="auth0_managed_certs", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - domain=domain, - type=type, - verification_method=verification_method, - tls_policy=tls_policy, - custom_client_ip_header=custom_client_ip_header, - domain_metadata=domain_metadata, - relying_party_identifier=relying_party_identifier, - request_options=request_options, - ) - return _response.data - - async def get_default( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetDefaultDomainResponseContent: - """ - Retrieve the tenant's default domain. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetDefaultDomainResponseContent - Default domain successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.custom_domains.get_default() - - - asyncio.run(main()) - """ - _response = await self._raw_client.get_default(request_options=request_options) - return _response.data - - async def set_default( - self, *, domain: str, request_options: typing.Optional[RequestOptions] = None - ) -> UpdateDefaultDomainResponseContent: - """ - Set the default custom domain for the tenant. - - Parameters - ---------- - domain : str - The domain to set as the default custom domain. Must be a verified custom domain or the canonical domain. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateDefaultDomainResponseContent - Default custom domain set successfully. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.custom_domains.set_default( - domain="domain", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.set_default(domain=domain, request_options=request_options) - return _response.data - - async def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetCustomDomainResponseContent: - """ - Retrieve a custom domain configuration and status. - - Parameters - ---------- - id : str - ID of the custom domain to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetCustomDomainResponseContent - Custom domain successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.custom_domains.get( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.get(id, request_options=request_options) - return _response.data - - async def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete a custom domain and stop serving requests for it. - - Parameters - ---------- - id : str - ID of the custom domain to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.custom_domains.delete( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete(id, request_options=request_options) - return _response.data - - async def update( - self, - id: str, - *, - tls_policy: typing.Optional[CustomDomainTlsPolicyEnum] = OMIT, - custom_client_ip_header: typing.Optional[CustomDomainCustomClientIpHeader] = OMIT, - domain_metadata: typing.Optional[DomainMetadata] = OMIT, - relying_party_identifier: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateCustomDomainResponseContent: - """ - Update a custom domain. - - These are the attributes that can be updated: - - - custom_client_ip_header - - tls_policy - - **Updating CUSTOM_CLIENT_IP_HEADER for a custom domain** - - To update the `custom_client_ip_header` for a domain, the body to - send should be: - - ```json - { "custom_client_ip_header": "cf-connecting-ip" } - ``` - - **Updating TLS_POLICY for a custom domain** - - To update the `tls_policy` for a domain, the body to send should be: - - ```json - { "tls_policy": "recommended" } - ``` - - TLS Policies: - - - recommended - for modern usage this includes TLS 1.2 only - - Some considerations: - - - The TLS ciphers and protocols available in each TLS policy follow industry recommendations, and may be updated occasionally. - - The `compatible` TLS policy is no longer supported. - - Parameters - ---------- - id : str - The id of the custom domain to update - - tls_policy : typing.Optional[CustomDomainTlsPolicyEnum] - recommended includes TLS 1.2 - - custom_client_ip_header : typing.Optional[CustomDomainCustomClientIpHeader] - - domain_metadata : typing.Optional[DomainMetadata] - - relying_party_identifier : typing.Optional[str] - Relying Party ID (rpId) to be used for Passkeys on this custom domain. Set to null to remove the rpId and fall back to using the full domain. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateCustomDomainResponseContent - Custom domain updated. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.custom_domains.update( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.update( - id, - tls_policy=tls_policy, - custom_client_ip_header=custom_client_ip_header, - domain_metadata=domain_metadata, - relying_party_identifier=relying_party_identifier, - request_options=request_options, - ) - return _response.data - - async def test( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> TestCustomDomainResponseContent: - """ - Run the test process on a custom domain. - - Parameters - ---------- - id : str - ID of the custom domain to test. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - TestCustomDomainResponseContent - Custom domain test successfully completed. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.custom_domains.test( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.test(id, request_options=request_options) - return _response.data - - async def verify( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> VerifyCustomDomainResponseContent: - """ - Run the verification process on a custom domain. - - Note: Check the `status` field to see its verification status. Once verification is complete, it may take up to 10 minutes before the custom domain can start accepting requests. - - For `self_managed_certs`, when the custom domain is verified for the first time, the response will also include the `cname_api_key` which you will need to configure your proxy. This key must be kept secret, and is used to validate the proxy requests. - - [Learn more](https://auth0.com/docs/custom-domains#step-2-verify-ownership) about verifying custom domains that use Auth0 Managed certificates. - [Learn more](https://auth0.com/docs/custom-domains/self-managed-certificates#step-2-verify-ownership) about verifying custom domains that use Self Managed certificates. - - Parameters - ---------- - id : str - ID of the custom domain to verify. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - VerifyCustomDomainResponseContent - Custom domain successfully verified. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.custom_domains.verify( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.verify(id, request_options=request_options) - return _response.data diff --git a/src/auth0/management/custom_domains/raw_client.py b/src/auth0/management/custom_domains/raw_client.py deleted file mode 100644 index 05b4c3c8..00000000 --- a/src/auth0/management/custom_domains/raw_client.py +++ /dev/null @@ -1,1889 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ..core.api_error import ApiError -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.http_response import AsyncHttpResponse, HttpResponse -from ..core.jsonable_encoder import quote_path_param -from ..core.parse_error import ParsingError -from ..core.pydantic_utilities import parse_obj_as -from ..core.request_options import RequestOptions -from ..errors.bad_request_error import BadRequestError -from ..errors.conflict_error import ConflictError -from ..errors.forbidden_error import ForbiddenError -from ..errors.not_found_error import NotFoundError -from ..errors.too_many_requests_error import TooManyRequestsError -from ..errors.unauthorized_error import UnauthorizedError -from ..types.create_custom_domain_response_content import CreateCustomDomainResponseContent -from ..types.custom_domain_custom_client_ip_header import CustomDomainCustomClientIpHeader -from ..types.custom_domain_provisioning_type_enum import CustomDomainProvisioningTypeEnum -from ..types.custom_domain_tls_policy_enum import CustomDomainTlsPolicyEnum -from ..types.custom_domain_verification_method_enum import CustomDomainVerificationMethodEnum -from ..types.domain_metadata import DomainMetadata -from ..types.get_custom_domain_response_content import GetCustomDomainResponseContent -from ..types.get_default_domain_response_content import GetDefaultDomainResponseContent -from ..types.list_custom_domains_response_content import ListCustomDomainsResponseContent -from ..types.test_custom_domain_response_content import TestCustomDomainResponseContent -from ..types.update_custom_domain_response_content import UpdateCustomDomainResponseContent -from ..types.update_default_domain_response_content import UpdateDefaultDomainResponseContent -from ..types.verify_custom_domain_response_content import VerifyCustomDomainResponseContent -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawCustomDomainsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - q: typing.Optional[str] = None, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - sort: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[ListCustomDomainsResponseContent]: - """ - Retrieve details on [custom domains](https://auth0.com/docs/custom-domains). - - Parameters - ---------- - q : typing.Optional[str] - Query in Lucene query string syntax. - - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). - - sort : typing.Optional[str] - Field to sort by. Only domain:1 (ascending order by domain) is supported at this time. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[ListCustomDomainsResponseContent] - Custom domains successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - "custom-domains", - method="GET", - params={ - "q": q, - "fields": fields, - "include_fields": include_fields, - "sort": sort, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - ListCustomDomainsResponseContent, - parse_obj_as( - type_=ListCustomDomainsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - *, - domain: str, - type: CustomDomainProvisioningTypeEnum, - verification_method: typing.Optional[CustomDomainVerificationMethodEnum] = OMIT, - tls_policy: typing.Optional[CustomDomainTlsPolicyEnum] = OMIT, - custom_client_ip_header: typing.Optional[CustomDomainCustomClientIpHeader] = OMIT, - domain_metadata: typing.Optional[DomainMetadata] = OMIT, - relying_party_identifier: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[CreateCustomDomainResponseContent]: - """ - Create a new custom domain. - - Note: The custom domain will need to be verified before it will accept - requests. - - Optional attributes that can be updated: - - - custom_client_ip_header - - tls_policy - - TLS Policies: - - - recommended - for modern usage this includes TLS 1.2 only - - Parameters - ---------- - domain : str - Domain name. - - type : CustomDomainProvisioningTypeEnum - - verification_method : typing.Optional[CustomDomainVerificationMethodEnum] - - tls_policy : typing.Optional[CustomDomainTlsPolicyEnum] - - custom_client_ip_header : typing.Optional[CustomDomainCustomClientIpHeader] - - domain_metadata : typing.Optional[DomainMetadata] - - relying_party_identifier : typing.Optional[str] - Relying Party ID (rpId) to be used for Passkeys on this custom domain. If not provided, the full domain will be used. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CreateCustomDomainResponseContent] - Custom domain successfully created (verification is pending). - """ - _response = self._client_wrapper.httpx_client.request( - "custom-domains", - method="POST", - json={ - "domain": domain, - "type": type, - "verification_method": verification_method, - "tls_policy": tls_policy, - "custom_client_ip_header": custom_client_ip_header, - "domain_metadata": domain_metadata, - "relying_party_identifier": relying_party_identifier, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateCustomDomainResponseContent, - parse_obj_as( - type_=CreateCustomDomainResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def get_default( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetDefaultDomainResponseContent]: - """ - Retrieve the tenant's default domain. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetDefaultDomainResponseContent] - Default domain successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - "custom-domains/default", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetDefaultDomainResponseContent, - parse_obj_as( - type_=GetDefaultDomainResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def set_default( - self, *, domain: str, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[UpdateDefaultDomainResponseContent]: - """ - Set the default custom domain for the tenant. - - Parameters - ---------- - domain : str - The domain to set as the default custom domain. Must be a verified custom domain or the canonical domain. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[UpdateDefaultDomainResponseContent] - Default custom domain set successfully. - """ - _response = self._client_wrapper.httpx_client.request( - "custom-domains/default", - method="PATCH", - json={ - "domain": domain, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateDefaultDomainResponseContent, - parse_obj_as( - type_=UpdateDefaultDomainResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetCustomDomainResponseContent]: - """ - Retrieve a custom domain configuration and status. - - Parameters - ---------- - id : str - ID of the custom domain to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetCustomDomainResponseContent] - Custom domain successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - f"custom-domains/{quote_path_param(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetCustomDomainResponseContent, - parse_obj_as( - type_=GetCustomDomainResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[None]: - """ - Delete a custom domain and stop serving requests for it. - - Parameters - ---------- - id : str - ID of the custom domain to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"custom-domains/{quote_path_param(id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def update( - self, - id: str, - *, - tls_policy: typing.Optional[CustomDomainTlsPolicyEnum] = OMIT, - custom_client_ip_header: typing.Optional[CustomDomainCustomClientIpHeader] = OMIT, - domain_metadata: typing.Optional[DomainMetadata] = OMIT, - relying_party_identifier: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[UpdateCustomDomainResponseContent]: - """ - Update a custom domain. - - These are the attributes that can be updated: - - - custom_client_ip_header - - tls_policy - - **Updating CUSTOM_CLIENT_IP_HEADER for a custom domain** - - To update the `custom_client_ip_header` for a domain, the body to - send should be: - - ```json - { "custom_client_ip_header": "cf-connecting-ip" } - ``` - - **Updating TLS_POLICY for a custom domain** - - To update the `tls_policy` for a domain, the body to send should be: - - ```json - { "tls_policy": "recommended" } - ``` - - TLS Policies: - - - recommended - for modern usage this includes TLS 1.2 only - - Some considerations: - - - The TLS ciphers and protocols available in each TLS policy follow industry recommendations, and may be updated occasionally. - - The `compatible` TLS policy is no longer supported. - - Parameters - ---------- - id : str - The id of the custom domain to update - - tls_policy : typing.Optional[CustomDomainTlsPolicyEnum] - recommended includes TLS 1.2 - - custom_client_ip_header : typing.Optional[CustomDomainCustomClientIpHeader] - - domain_metadata : typing.Optional[DomainMetadata] - - relying_party_identifier : typing.Optional[str] - Relying Party ID (rpId) to be used for Passkeys on this custom domain. Set to null to remove the rpId and fall back to using the full domain. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[UpdateCustomDomainResponseContent] - Custom domain updated. - """ - _response = self._client_wrapper.httpx_client.request( - f"custom-domains/{quote_path_param(id)}", - method="PATCH", - json={ - "tls_policy": tls_policy, - "custom_client_ip_header": custom_client_ip_header, - "domain_metadata": domain_metadata, - "relying_party_identifier": relying_party_identifier, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateCustomDomainResponseContent, - parse_obj_as( - type_=UpdateCustomDomainResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def test( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[TestCustomDomainResponseContent]: - """ - Run the test process on a custom domain. - - Parameters - ---------- - id : str - ID of the custom domain to test. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[TestCustomDomainResponseContent] - Custom domain test successfully completed. - """ - _response = self._client_wrapper.httpx_client.request( - f"custom-domains/{quote_path_param(id)}/test", - method="POST", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - TestCustomDomainResponseContent, - parse_obj_as( - type_=TestCustomDomainResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def verify( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[VerifyCustomDomainResponseContent]: - """ - Run the verification process on a custom domain. - - Note: Check the `status` field to see its verification status. Once verification is complete, it may take up to 10 minutes before the custom domain can start accepting requests. - - For `self_managed_certs`, when the custom domain is verified for the first time, the response will also include the `cname_api_key` which you will need to configure your proxy. This key must be kept secret, and is used to validate the proxy requests. - - [Learn more](https://auth0.com/docs/custom-domains#step-2-verify-ownership) about verifying custom domains that use Auth0 Managed certificates. - [Learn more](https://auth0.com/docs/custom-domains/self-managed-certificates#step-2-verify-ownership) about verifying custom domains that use Self Managed certificates. - - Parameters - ---------- - id : str - ID of the custom domain to verify. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[VerifyCustomDomainResponseContent] - Custom domain successfully verified. - """ - _response = self._client_wrapper.httpx_client.request( - f"custom-domains/{quote_path_param(id)}/verify", - method="POST", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - VerifyCustomDomainResponseContent, - parse_obj_as( - type_=VerifyCustomDomainResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawCustomDomainsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - q: typing.Optional[str] = None, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - sort: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[ListCustomDomainsResponseContent]: - """ - Retrieve details on [custom domains](https://auth0.com/docs/custom-domains). - - Parameters - ---------- - q : typing.Optional[str] - Query in Lucene query string syntax. - - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). - - sort : typing.Optional[str] - Field to sort by. Only domain:1 (ascending order by domain) is supported at this time. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[ListCustomDomainsResponseContent] - Custom domains successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - "custom-domains", - method="GET", - params={ - "q": q, - "fields": fields, - "include_fields": include_fields, - "sort": sort, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - ListCustomDomainsResponseContent, - parse_obj_as( - type_=ListCustomDomainsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - *, - domain: str, - type: CustomDomainProvisioningTypeEnum, - verification_method: typing.Optional[CustomDomainVerificationMethodEnum] = OMIT, - tls_policy: typing.Optional[CustomDomainTlsPolicyEnum] = OMIT, - custom_client_ip_header: typing.Optional[CustomDomainCustomClientIpHeader] = OMIT, - domain_metadata: typing.Optional[DomainMetadata] = OMIT, - relying_party_identifier: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[CreateCustomDomainResponseContent]: - """ - Create a new custom domain. - - Note: The custom domain will need to be verified before it will accept - requests. - - Optional attributes that can be updated: - - - custom_client_ip_header - - tls_policy - - TLS Policies: - - - recommended - for modern usage this includes TLS 1.2 only - - Parameters - ---------- - domain : str - Domain name. - - type : CustomDomainProvisioningTypeEnum - - verification_method : typing.Optional[CustomDomainVerificationMethodEnum] - - tls_policy : typing.Optional[CustomDomainTlsPolicyEnum] - - custom_client_ip_header : typing.Optional[CustomDomainCustomClientIpHeader] - - domain_metadata : typing.Optional[DomainMetadata] - - relying_party_identifier : typing.Optional[str] - Relying Party ID (rpId) to be used for Passkeys on this custom domain. If not provided, the full domain will be used. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CreateCustomDomainResponseContent] - Custom domain successfully created (verification is pending). - """ - _response = await self._client_wrapper.httpx_client.request( - "custom-domains", - method="POST", - json={ - "domain": domain, - "type": type, - "verification_method": verification_method, - "tls_policy": tls_policy, - "custom_client_ip_header": custom_client_ip_header, - "domain_metadata": domain_metadata, - "relying_party_identifier": relying_party_identifier, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateCustomDomainResponseContent, - parse_obj_as( - type_=CreateCustomDomainResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def get_default( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetDefaultDomainResponseContent]: - """ - Retrieve the tenant's default domain. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetDefaultDomainResponseContent] - Default domain successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - "custom-domains/default", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetDefaultDomainResponseContent, - parse_obj_as( - type_=GetDefaultDomainResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def set_default( - self, *, domain: str, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[UpdateDefaultDomainResponseContent]: - """ - Set the default custom domain for the tenant. - - Parameters - ---------- - domain : str - The domain to set as the default custom domain. Must be a verified custom domain or the canonical domain. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[UpdateDefaultDomainResponseContent] - Default custom domain set successfully. - """ - _response = await self._client_wrapper.httpx_client.request( - "custom-domains/default", - method="PATCH", - json={ - "domain": domain, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateDefaultDomainResponseContent, - parse_obj_as( - type_=UpdateDefaultDomainResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetCustomDomainResponseContent]: - """ - Retrieve a custom domain configuration and status. - - Parameters - ---------- - id : str - ID of the custom domain to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetCustomDomainResponseContent] - Custom domain successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - f"custom-domains/{quote_path_param(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetCustomDomainResponseContent, - parse_obj_as( - type_=GetCustomDomainResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def delete( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Delete a custom domain and stop serving requests for it. - - Parameters - ---------- - id : str - ID of the custom domain to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"custom-domains/{quote_path_param(id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def update( - self, - id: str, - *, - tls_policy: typing.Optional[CustomDomainTlsPolicyEnum] = OMIT, - custom_client_ip_header: typing.Optional[CustomDomainCustomClientIpHeader] = OMIT, - domain_metadata: typing.Optional[DomainMetadata] = OMIT, - relying_party_identifier: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[UpdateCustomDomainResponseContent]: - """ - Update a custom domain. - - These are the attributes that can be updated: - - - custom_client_ip_header - - tls_policy - - **Updating CUSTOM_CLIENT_IP_HEADER for a custom domain** - - To update the `custom_client_ip_header` for a domain, the body to - send should be: - - ```json - { "custom_client_ip_header": "cf-connecting-ip" } - ``` - - **Updating TLS_POLICY for a custom domain** - - To update the `tls_policy` for a domain, the body to send should be: - - ```json - { "tls_policy": "recommended" } - ``` - - TLS Policies: - - - recommended - for modern usage this includes TLS 1.2 only - - Some considerations: - - - The TLS ciphers and protocols available in each TLS policy follow industry recommendations, and may be updated occasionally. - - The `compatible` TLS policy is no longer supported. - - Parameters - ---------- - id : str - The id of the custom domain to update - - tls_policy : typing.Optional[CustomDomainTlsPolicyEnum] - recommended includes TLS 1.2 - - custom_client_ip_header : typing.Optional[CustomDomainCustomClientIpHeader] - - domain_metadata : typing.Optional[DomainMetadata] - - relying_party_identifier : typing.Optional[str] - Relying Party ID (rpId) to be used for Passkeys on this custom domain. Set to null to remove the rpId and fall back to using the full domain. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[UpdateCustomDomainResponseContent] - Custom domain updated. - """ - _response = await self._client_wrapper.httpx_client.request( - f"custom-domains/{quote_path_param(id)}", - method="PATCH", - json={ - "tls_policy": tls_policy, - "custom_client_ip_header": custom_client_ip_header, - "domain_metadata": domain_metadata, - "relying_party_identifier": relying_party_identifier, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateCustomDomainResponseContent, - parse_obj_as( - type_=UpdateCustomDomainResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def test( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[TestCustomDomainResponseContent]: - """ - Run the test process on a custom domain. - - Parameters - ---------- - id : str - ID of the custom domain to test. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[TestCustomDomainResponseContent] - Custom domain test successfully completed. - """ - _response = await self._client_wrapper.httpx_client.request( - f"custom-domains/{quote_path_param(id)}/test", - method="POST", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - TestCustomDomainResponseContent, - parse_obj_as( - type_=TestCustomDomainResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def verify( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[VerifyCustomDomainResponseContent]: - """ - Run the verification process on a custom domain. - - Note: Check the `status` field to see its verification status. Once verification is complete, it may take up to 10 minutes before the custom domain can start accepting requests. - - For `self_managed_certs`, when the custom domain is verified for the first time, the response will also include the `cname_api_key` which you will need to configure your proxy. This key must be kept secret, and is used to validate the proxy requests. - - [Learn more](https://auth0.com/docs/custom-domains#step-2-verify-ownership) about verifying custom domains that use Auth0 Managed certificates. - [Learn more](https://auth0.com/docs/custom-domains/self-managed-certificates#step-2-verify-ownership) about verifying custom domains that use Self Managed certificates. - - Parameters - ---------- - id : str - ID of the custom domain to verify. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[VerifyCustomDomainResponseContent] - Custom domain successfully verified. - """ - _response = await self._client_wrapper.httpx_client.request( - f"custom-domains/{quote_path_param(id)}/verify", - method="POST", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - VerifyCustomDomainResponseContent, - parse_obj_as( - type_=VerifyCustomDomainResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/device_credentials/__init__.py b/src/auth0/management/device_credentials/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/device_credentials/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/device_credentials/client.py b/src/auth0/management/device_credentials/client.py deleted file mode 100644 index f5ebdc82..00000000 --- a/src/auth0/management/device_credentials/client.py +++ /dev/null @@ -1,431 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.pagination import AsyncPager, SyncPager -from ..core.request_options import RequestOptions -from ..types.create_public_key_device_credential_response_content import CreatePublicKeyDeviceCredentialResponseContent -from ..types.device_credential import DeviceCredential -from ..types.device_credential_public_key_type_enum import DeviceCredentialPublicKeyTypeEnum -from ..types.device_credential_type_enum import DeviceCredentialTypeEnum -from ..types.list_device_credentials_offset_paginated_response_content import ( - ListDeviceCredentialsOffsetPaginatedResponseContent, -) -from .raw_client import AsyncRawDeviceCredentialsClient, RawDeviceCredentialsClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class DeviceCredentialsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawDeviceCredentialsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawDeviceCredentialsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawDeviceCredentialsClient - """ - return self._raw_client - - def list( - self, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - include_totals: typing.Optional[bool] = True, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - user_id: typing.Optional[str] = None, - client_id: typing.Optional[str] = None, - type: typing.Optional[DeviceCredentialTypeEnum] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[DeviceCredential, ListDeviceCredentialsOffsetPaginatedResponseContent]: - """ - Retrieve device credential information (`public_key`, `refresh_token`, or `rotating_refresh_token`) associated with a specific user. - - Parameters - ---------- - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. There is a maximum of 1000 results allowed from this endpoint. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). - - user_id : typing.Optional[str] - user_id of the devices to retrieve. - - client_id : typing.Optional[str] - client_id of the devices to retrieve. - - type : typing.Optional[DeviceCredentialTypeEnum] - Type of credentials to retrieve. Must be `public_key`, `refresh_token` or `rotating_refresh_token`. If none is provided a combined list of `refresh_tokens` and `public_keys` will be returned (and no `rotating_refresh_token`), in this case `page`, `per_page` and `include_totals` will be ignored. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[DeviceCredential, ListDeviceCredentialsOffsetPaginatedResponseContent] - Device credentials successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.device_credentials.list( - page=1, - per_page=1, - include_totals=True, - fields="fields", - include_fields=True, - user_id="user_id", - client_id="client_id", - type="public_key", - ) - for item in response: - yield item - # alternatively, you can paginate page-by-page - for page in response.iter_pages(): - yield page - """ - return self._raw_client.list( - page=page, - per_page=per_page, - include_totals=include_totals, - fields=fields, - include_fields=include_fields, - user_id=user_id, - client_id=client_id, - type=type, - request_options=request_options, - ) - - def create_public_key( - self, - *, - device_name: str, - type: DeviceCredentialPublicKeyTypeEnum, - value: str, - device_id: str, - client_id: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreatePublicKeyDeviceCredentialResponseContent: - """ - Create a device credential public key to manage refresh token rotation for a given `user_id`. Device Credentials APIs are designed for ad-hoc administrative use only and paging is by default enabled for GET requests. - - When refresh token rotation is enabled, the endpoint becomes consistent. For more information, read [Signing Keys](https://auth0.com/docs/get-started/tenant-settings/signing-keys). - - Parameters - ---------- - device_name : str - Name for this device easily recognized by owner. - - type : DeviceCredentialPublicKeyTypeEnum - - value : str - Base64 encoded string containing the credential. - - device_id : str - Unique identifier for the device. Recommend using Android_ID on Android and identifierForVendor. - - client_id : typing.Optional[str] - client_id of the client (application) this credential is for. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreatePublicKeyDeviceCredentialResponseContent - Device credentials successfully created. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.device_credentials.create_public_key( - device_name="device_name", - type="public_key", - value="value", - device_id="device_id", - ) - """ - _response = self._raw_client.create_public_key( - device_name=device_name, - type=type, - value=value, - device_id=device_id, - client_id=client_id, - request_options=request_options, - ) - return _response.data - - def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Permanently delete a device credential (such as a refresh token or public key) with the given ID. - - Parameters - ---------- - id : str - ID of the credential to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.device_credentials.delete( - id="id", - ) - """ - _response = self._raw_client.delete(id, request_options=request_options) - return _response.data - - -class AsyncDeviceCredentialsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawDeviceCredentialsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawDeviceCredentialsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawDeviceCredentialsClient - """ - return self._raw_client - - async def list( - self, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - include_totals: typing.Optional[bool] = True, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - user_id: typing.Optional[str] = None, - client_id: typing.Optional[str] = None, - type: typing.Optional[DeviceCredentialTypeEnum] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[DeviceCredential, ListDeviceCredentialsOffsetPaginatedResponseContent]: - """ - Retrieve device credential information (`public_key`, `refresh_token`, or `rotating_refresh_token`) associated with a specific user. - - Parameters - ---------- - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. There is a maximum of 1000 results allowed from this endpoint. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). - - user_id : typing.Optional[str] - user_id of the devices to retrieve. - - client_id : typing.Optional[str] - client_id of the devices to retrieve. - - type : typing.Optional[DeviceCredentialTypeEnum] - Type of credentials to retrieve. Must be `public_key`, `refresh_token` or `rotating_refresh_token`. If none is provided a combined list of `refresh_tokens` and `public_keys` will be returned (and no `rotating_refresh_token`), in this case `page`, `per_page` and `include_totals` will be ignored. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[DeviceCredential, ListDeviceCredentialsOffsetPaginatedResponseContent] - Device credentials successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.device_credentials.list( - page=1, - per_page=1, - include_totals=True, - fields="fields", - include_fields=True, - user_id="user_id", - client_id="client_id", - type="public_key", - ) - async for item in response: - yield item - - # alternatively, you can paginate page-by-page - async for page in response.iter_pages(): - yield page - - - asyncio.run(main()) - """ - return await self._raw_client.list( - page=page, - per_page=per_page, - include_totals=include_totals, - fields=fields, - include_fields=include_fields, - user_id=user_id, - client_id=client_id, - type=type, - request_options=request_options, - ) - - async def create_public_key( - self, - *, - device_name: str, - type: DeviceCredentialPublicKeyTypeEnum, - value: str, - device_id: str, - client_id: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreatePublicKeyDeviceCredentialResponseContent: - """ - Create a device credential public key to manage refresh token rotation for a given `user_id`. Device Credentials APIs are designed for ad-hoc administrative use only and paging is by default enabled for GET requests. - - When refresh token rotation is enabled, the endpoint becomes consistent. For more information, read [Signing Keys](https://auth0.com/docs/get-started/tenant-settings/signing-keys). - - Parameters - ---------- - device_name : str - Name for this device easily recognized by owner. - - type : DeviceCredentialPublicKeyTypeEnum - - value : str - Base64 encoded string containing the credential. - - device_id : str - Unique identifier for the device. Recommend using Android_ID on Android and identifierForVendor. - - client_id : typing.Optional[str] - client_id of the client (application) this credential is for. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreatePublicKeyDeviceCredentialResponseContent - Device credentials successfully created. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.device_credentials.create_public_key( - device_name="device_name", - type="public_key", - value="value", - device_id="device_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create_public_key( - device_name=device_name, - type=type, - value=value, - device_id=device_id, - client_id=client_id, - request_options=request_options, - ) - return _response.data - - async def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Permanently delete a device credential (such as a refresh token or public key) with the given ID. - - Parameters - ---------- - id : str - ID of the credential to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.device_credentials.delete( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete(id, request_options=request_options) - return _response.data diff --git a/src/auth0/management/device_credentials/raw_client.py b/src/auth0/management/device_credentials/raw_client.py deleted file mode 100644 index 8a8d025d..00000000 --- a/src/auth0/management/device_credentials/raw_client.py +++ /dev/null @@ -1,742 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ..core.api_error import ApiError -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.http_response import AsyncHttpResponse, HttpResponse -from ..core.jsonable_encoder import quote_path_param -from ..core.pagination import AsyncPager, SyncPager -from ..core.parse_error import ParsingError -from ..core.pydantic_utilities import parse_obj_as -from ..core.request_options import RequestOptions -from ..errors.bad_request_error import BadRequestError -from ..errors.conflict_error import ConflictError -from ..errors.forbidden_error import ForbiddenError -from ..errors.too_many_requests_error import TooManyRequestsError -from ..errors.unauthorized_error import UnauthorizedError -from ..types.create_public_key_device_credential_response_content import CreatePublicKeyDeviceCredentialResponseContent -from ..types.device_credential import DeviceCredential -from ..types.device_credential_public_key_type_enum import DeviceCredentialPublicKeyTypeEnum -from ..types.device_credential_type_enum import DeviceCredentialTypeEnum -from ..types.list_device_credentials_offset_paginated_response_content import ( - ListDeviceCredentialsOffsetPaginatedResponseContent, -) -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawDeviceCredentialsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - include_totals: typing.Optional[bool] = True, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - user_id: typing.Optional[str] = None, - client_id: typing.Optional[str] = None, - type: typing.Optional[DeviceCredentialTypeEnum] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[DeviceCredential, ListDeviceCredentialsOffsetPaginatedResponseContent]: - """ - Retrieve device credential information (`public_key`, `refresh_token`, or `rotating_refresh_token`) associated with a specific user. - - Parameters - ---------- - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. There is a maximum of 1000 results allowed from this endpoint. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). - - user_id : typing.Optional[str] - user_id of the devices to retrieve. - - client_id : typing.Optional[str] - client_id of the devices to retrieve. - - type : typing.Optional[DeviceCredentialTypeEnum] - Type of credentials to retrieve. Must be `public_key`, `refresh_token` or `rotating_refresh_token`. If none is provided a combined list of `refresh_tokens` and `public_keys` will be returned (and no `rotating_refresh_token`), in this case `page`, `per_page` and `include_totals` will be ignored. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[DeviceCredential, ListDeviceCredentialsOffsetPaginatedResponseContent] - Device credentials successfully retrieved. - """ - page = page if page is not None else 0 - - _response = self._client_wrapper.httpx_client.request( - "device-credentials", - method="GET", - params={ - "page": page, - "per_page": per_page, - "include_totals": include_totals, - "fields": fields, - "include_fields": include_fields, - "user_id": user_id, - "client_id": client_id, - "type": type, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListDeviceCredentialsOffsetPaginatedResponseContent, - parse_obj_as( - type_=ListDeviceCredentialsOffsetPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.device_credentials - _has_next = len(_items or []) > 0 - _get_next = lambda: self.list( - page=page + 1, - per_page=per_page, - include_totals=include_totals, - fields=fields, - include_fields=include_fields, - user_id=user_id, - client_id=client_id, - type=type, - request_options=request_options, - ) - return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create_public_key( - self, - *, - device_name: str, - type: DeviceCredentialPublicKeyTypeEnum, - value: str, - device_id: str, - client_id: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[CreatePublicKeyDeviceCredentialResponseContent]: - """ - Create a device credential public key to manage refresh token rotation for a given `user_id`. Device Credentials APIs are designed for ad-hoc administrative use only and paging is by default enabled for GET requests. - - When refresh token rotation is enabled, the endpoint becomes consistent. For more information, read [Signing Keys](https://auth0.com/docs/get-started/tenant-settings/signing-keys). - - Parameters - ---------- - device_name : str - Name for this device easily recognized by owner. - - type : DeviceCredentialPublicKeyTypeEnum - - value : str - Base64 encoded string containing the credential. - - device_id : str - Unique identifier for the device. Recommend using Android_ID on Android and identifierForVendor. - - client_id : typing.Optional[str] - client_id of the client (application) this credential is for. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CreatePublicKeyDeviceCredentialResponseContent] - Device credentials successfully created. - """ - _response = self._client_wrapper.httpx_client.request( - "device-credentials", - method="POST", - json={ - "device_name": device_name, - "type": type, - "value": value, - "device_id": device_id, - "client_id": client_id, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreatePublicKeyDeviceCredentialResponseContent, - parse_obj_as( - type_=CreatePublicKeyDeviceCredentialResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[None]: - """ - Permanently delete a device credential (such as a refresh token or public key) with the given ID. - - Parameters - ---------- - id : str - ID of the credential to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"device-credentials/{quote_path_param(id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawDeviceCredentialsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - include_totals: typing.Optional[bool] = True, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - user_id: typing.Optional[str] = None, - client_id: typing.Optional[str] = None, - type: typing.Optional[DeviceCredentialTypeEnum] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[DeviceCredential, ListDeviceCredentialsOffsetPaginatedResponseContent]: - """ - Retrieve device credential information (`public_key`, `refresh_token`, or `rotating_refresh_token`) associated with a specific user. - - Parameters - ---------- - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. There is a maximum of 1000 results allowed from this endpoint. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). - - user_id : typing.Optional[str] - user_id of the devices to retrieve. - - client_id : typing.Optional[str] - client_id of the devices to retrieve. - - type : typing.Optional[DeviceCredentialTypeEnum] - Type of credentials to retrieve. Must be `public_key`, `refresh_token` or `rotating_refresh_token`. If none is provided a combined list of `refresh_tokens` and `public_keys` will be returned (and no `rotating_refresh_token`), in this case `page`, `per_page` and `include_totals` will be ignored. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[DeviceCredential, ListDeviceCredentialsOffsetPaginatedResponseContent] - Device credentials successfully retrieved. - """ - page = page if page is not None else 0 - - _response = await self._client_wrapper.httpx_client.request( - "device-credentials", - method="GET", - params={ - "page": page, - "per_page": per_page, - "include_totals": include_totals, - "fields": fields, - "include_fields": include_fields, - "user_id": user_id, - "client_id": client_id, - "type": type, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListDeviceCredentialsOffsetPaginatedResponseContent, - parse_obj_as( - type_=ListDeviceCredentialsOffsetPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.device_credentials - _has_next = len(_items or []) > 0 - - async def _get_next(): - return await self.list( - page=page + 1, - per_page=per_page, - include_totals=include_totals, - fields=fields, - include_fields=include_fields, - user_id=user_id, - client_id=client_id, - type=type, - request_options=request_options, - ) - - return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create_public_key( - self, - *, - device_name: str, - type: DeviceCredentialPublicKeyTypeEnum, - value: str, - device_id: str, - client_id: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[CreatePublicKeyDeviceCredentialResponseContent]: - """ - Create a device credential public key to manage refresh token rotation for a given `user_id`. Device Credentials APIs are designed for ad-hoc administrative use only and paging is by default enabled for GET requests. - - When refresh token rotation is enabled, the endpoint becomes consistent. For more information, read [Signing Keys](https://auth0.com/docs/get-started/tenant-settings/signing-keys). - - Parameters - ---------- - device_name : str - Name for this device easily recognized by owner. - - type : DeviceCredentialPublicKeyTypeEnum - - value : str - Base64 encoded string containing the credential. - - device_id : str - Unique identifier for the device. Recommend using Android_ID on Android and identifierForVendor. - - client_id : typing.Optional[str] - client_id of the client (application) this credential is for. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CreatePublicKeyDeviceCredentialResponseContent] - Device credentials successfully created. - """ - _response = await self._client_wrapper.httpx_client.request( - "device-credentials", - method="POST", - json={ - "device_name": device_name, - "type": type, - "value": value, - "device_id": device_id, - "client_id": client_id, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreatePublicKeyDeviceCredentialResponseContent, - parse_obj_as( - type_=CreatePublicKeyDeviceCredentialResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def delete( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Permanently delete a device credential (such as a refresh token or public key) with the given ID. - - Parameters - ---------- - id : str - ID of the credential to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"device-credentials/{quote_path_param(id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/email_templates/__init__.py b/src/auth0/management/email_templates/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/email_templates/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/email_templates/client.py b/src/auth0/management/email_templates/client.py deleted file mode 100644 index 4f8cccf6..00000000 --- a/src/auth0/management/email_templates/client.py +++ /dev/null @@ -1,635 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.request_options import RequestOptions -from ..types.create_email_template_response_content import CreateEmailTemplateResponseContent -from ..types.email_template_name_enum import EmailTemplateNameEnum -from ..types.get_email_template_response_content import GetEmailTemplateResponseContent -from ..types.set_email_template_response_content import SetEmailTemplateResponseContent -from ..types.update_email_template_response_content import UpdateEmailTemplateResponseContent -from .raw_client import AsyncRawEmailTemplatesClient, RawEmailTemplatesClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class EmailTemplatesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawEmailTemplatesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawEmailTemplatesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawEmailTemplatesClient - """ - return self._raw_client - - def create( - self, - *, - template: EmailTemplateNameEnum, - body: typing.Optional[str] = OMIT, - from_: typing.Optional[str] = OMIT, - result_url: typing.Optional[str] = OMIT, - subject: typing.Optional[str] = OMIT, - syntax: typing.Optional[str] = OMIT, - url_lifetime_in_seconds: typing.Optional[float] = OMIT, - include_email_in_redirect: typing.Optional[bool] = OMIT, - enabled: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateEmailTemplateResponseContent: - """ - Create an email template. - - Parameters - ---------- - template : EmailTemplateNameEnum - - body : typing.Optional[str] - Body of the email template. - - from_ : typing.Optional[str] - Senders `from` email address. - - result_url : typing.Optional[str] - URL to redirect the user to after a successful action. - - subject : typing.Optional[str] - Subject line of the email. - - syntax : typing.Optional[str] - Syntax of the template body. - - url_lifetime_in_seconds : typing.Optional[float] - Lifetime in seconds that the link within the email will be valid for. - - include_email_in_redirect : typing.Optional[bool] - Whether the `reset_email` and `verify_email` templates should include the user's email address as the `email` parameter in the returnUrl (true) or whether no email address should be included in the redirect (false). Defaults to true. - - enabled : typing.Optional[bool] - Whether the template is enabled (true) or disabled (false). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateEmailTemplateResponseContent - Template successfully created. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.email_templates.create( - template="verify_email", - ) - """ - _response = self._raw_client.create( - template=template, - body=body, - from_=from_, - result_url=result_url, - subject=subject, - syntax=syntax, - url_lifetime_in_seconds=url_lifetime_in_seconds, - include_email_in_redirect=include_email_in_redirect, - enabled=enabled, - request_options=request_options, - ) - return _response.data - - def get( - self, template_name: EmailTemplateNameEnum, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetEmailTemplateResponseContent: - """ - Retrieve an email template by pre-defined name. These names are `verify_email`, `verify_email_by_code`, `auth_email_by_code`, `reset_email`, `reset_email_by_code`, `welcome_email`, `blocked_account`, `stolen_credentials`, `enrollment_email`, `mfa_oob_code`, `user_invitation`, and `async_approval`. The names `change_password`, and `password_reset` are also supported for legacy scenarios. - - Parameters - ---------- - template_name : EmailTemplateNameEnum - Template name. Can be `verify_email`, `verify_email_by_code`, `auth_email_by_code`, `reset_email`, `reset_email_by_code`, `welcome_email`, `blocked_account`, `stolen_credentials`, `enrollment_email`, `mfa_oob_code`, `user_invitation`, `async_approval`, `change_password` (legacy), or `password_reset` (legacy). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetEmailTemplateResponseContent - Template successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.email_templates.get( - template_name="verify_email", - ) - """ - _response = self._raw_client.get(template_name, request_options=request_options) - return _response.data - - def set( - self, - template_name: EmailTemplateNameEnum, - *, - template: EmailTemplateNameEnum, - body: typing.Optional[str] = OMIT, - from_: typing.Optional[str] = OMIT, - result_url: typing.Optional[str] = OMIT, - subject: typing.Optional[str] = OMIT, - syntax: typing.Optional[str] = OMIT, - url_lifetime_in_seconds: typing.Optional[float] = OMIT, - include_email_in_redirect: typing.Optional[bool] = OMIT, - enabled: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> SetEmailTemplateResponseContent: - """ - Update an email template. - - Parameters - ---------- - template_name : EmailTemplateNameEnum - Template name. Can be `verify_email`, `verify_email_by_code`, `auth_email_by_code`, `reset_email`, `reset_email_by_code`, `welcome_email`, `blocked_account`, `stolen_credentials`, `enrollment_email`, `mfa_oob_code`, `user_invitation`, `async_approval`, `change_password` (legacy), or `password_reset` (legacy). - - template : EmailTemplateNameEnum - - body : typing.Optional[str] - Body of the email template. - - from_ : typing.Optional[str] - Senders `from` email address. - - result_url : typing.Optional[str] - URL to redirect the user to after a successful action. - - subject : typing.Optional[str] - Subject line of the email. - - syntax : typing.Optional[str] - Syntax of the template body. - - url_lifetime_in_seconds : typing.Optional[float] - Lifetime in seconds that the link within the email will be valid for. - - include_email_in_redirect : typing.Optional[bool] - Whether the `reset_email` and `verify_email` templates should include the user's email address as the `email` parameter in the returnUrl (true) or whether no email address should be included in the redirect (false). Defaults to true. - - enabled : typing.Optional[bool] - Whether the template is enabled (true) or disabled (false). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SetEmailTemplateResponseContent - Template successfully updated. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.email_templates.set( - template_name="verify_email", - template="verify_email", - ) - """ - _response = self._raw_client.set( - template_name, - template=template, - body=body, - from_=from_, - result_url=result_url, - subject=subject, - syntax=syntax, - url_lifetime_in_seconds=url_lifetime_in_seconds, - include_email_in_redirect=include_email_in_redirect, - enabled=enabled, - request_options=request_options, - ) - return _response.data - - def update( - self, - template_name: EmailTemplateNameEnum, - *, - template: typing.Optional[EmailTemplateNameEnum] = OMIT, - body: typing.Optional[str] = OMIT, - from_: typing.Optional[str] = OMIT, - result_url: typing.Optional[str] = OMIT, - subject: typing.Optional[str] = OMIT, - syntax: typing.Optional[str] = OMIT, - url_lifetime_in_seconds: typing.Optional[float] = OMIT, - include_email_in_redirect: typing.Optional[bool] = OMIT, - enabled: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateEmailTemplateResponseContent: - """ - Modify an email template. - - Parameters - ---------- - template_name : EmailTemplateNameEnum - Template name. Can be `verify_email`, `verify_email_by_code`, `auth_email_by_code`, `reset_email`, `reset_email_by_code`, `welcome_email`, `blocked_account`, `stolen_credentials`, `enrollment_email`, `mfa_oob_code`, `user_invitation`, `async_approval`, `change_password` (legacy), or `password_reset` (legacy). - - template : typing.Optional[EmailTemplateNameEnum] - - body : typing.Optional[str] - Body of the email template. - - from_ : typing.Optional[str] - Senders `from` email address. - - result_url : typing.Optional[str] - URL to redirect the user to after a successful action. - - subject : typing.Optional[str] - Subject line of the email. - - syntax : typing.Optional[str] - Syntax of the template body. - - url_lifetime_in_seconds : typing.Optional[float] - Lifetime in seconds that the link within the email will be valid for. - - include_email_in_redirect : typing.Optional[bool] - Whether the `reset_email` and `verify_email` templates should include the user's email address as the `email` parameter in the returnUrl (true) or whether no email address should be included in the redirect (false). Defaults to true. - - enabled : typing.Optional[bool] - Whether the template is enabled (true) or disabled (false). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateEmailTemplateResponseContent - Template successfully updated. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.email_templates.update( - template_name="verify_email", - ) - """ - _response = self._raw_client.update( - template_name, - template=template, - body=body, - from_=from_, - result_url=result_url, - subject=subject, - syntax=syntax, - url_lifetime_in_seconds=url_lifetime_in_seconds, - include_email_in_redirect=include_email_in_redirect, - enabled=enabled, - request_options=request_options, - ) - return _response.data - - -class AsyncEmailTemplatesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawEmailTemplatesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawEmailTemplatesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawEmailTemplatesClient - """ - return self._raw_client - - async def create( - self, - *, - template: EmailTemplateNameEnum, - body: typing.Optional[str] = OMIT, - from_: typing.Optional[str] = OMIT, - result_url: typing.Optional[str] = OMIT, - subject: typing.Optional[str] = OMIT, - syntax: typing.Optional[str] = OMIT, - url_lifetime_in_seconds: typing.Optional[float] = OMIT, - include_email_in_redirect: typing.Optional[bool] = OMIT, - enabled: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateEmailTemplateResponseContent: - """ - Create an email template. - - Parameters - ---------- - template : EmailTemplateNameEnum - - body : typing.Optional[str] - Body of the email template. - - from_ : typing.Optional[str] - Senders `from` email address. - - result_url : typing.Optional[str] - URL to redirect the user to after a successful action. - - subject : typing.Optional[str] - Subject line of the email. - - syntax : typing.Optional[str] - Syntax of the template body. - - url_lifetime_in_seconds : typing.Optional[float] - Lifetime in seconds that the link within the email will be valid for. - - include_email_in_redirect : typing.Optional[bool] - Whether the `reset_email` and `verify_email` templates should include the user's email address as the `email` parameter in the returnUrl (true) or whether no email address should be included in the redirect (false). Defaults to true. - - enabled : typing.Optional[bool] - Whether the template is enabled (true) or disabled (false). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateEmailTemplateResponseContent - Template successfully created. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.email_templates.create( - template="verify_email", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - template=template, - body=body, - from_=from_, - result_url=result_url, - subject=subject, - syntax=syntax, - url_lifetime_in_seconds=url_lifetime_in_seconds, - include_email_in_redirect=include_email_in_redirect, - enabled=enabled, - request_options=request_options, - ) - return _response.data - - async def get( - self, template_name: EmailTemplateNameEnum, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetEmailTemplateResponseContent: - """ - Retrieve an email template by pre-defined name. These names are `verify_email`, `verify_email_by_code`, `auth_email_by_code`, `reset_email`, `reset_email_by_code`, `welcome_email`, `blocked_account`, `stolen_credentials`, `enrollment_email`, `mfa_oob_code`, `user_invitation`, and `async_approval`. The names `change_password`, and `password_reset` are also supported for legacy scenarios. - - Parameters - ---------- - template_name : EmailTemplateNameEnum - Template name. Can be `verify_email`, `verify_email_by_code`, `auth_email_by_code`, `reset_email`, `reset_email_by_code`, `welcome_email`, `blocked_account`, `stolen_credentials`, `enrollment_email`, `mfa_oob_code`, `user_invitation`, `async_approval`, `change_password` (legacy), or `password_reset` (legacy). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetEmailTemplateResponseContent - Template successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.email_templates.get( - template_name="verify_email", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.get(template_name, request_options=request_options) - return _response.data - - async def set( - self, - template_name: EmailTemplateNameEnum, - *, - template: EmailTemplateNameEnum, - body: typing.Optional[str] = OMIT, - from_: typing.Optional[str] = OMIT, - result_url: typing.Optional[str] = OMIT, - subject: typing.Optional[str] = OMIT, - syntax: typing.Optional[str] = OMIT, - url_lifetime_in_seconds: typing.Optional[float] = OMIT, - include_email_in_redirect: typing.Optional[bool] = OMIT, - enabled: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> SetEmailTemplateResponseContent: - """ - Update an email template. - - Parameters - ---------- - template_name : EmailTemplateNameEnum - Template name. Can be `verify_email`, `verify_email_by_code`, `auth_email_by_code`, `reset_email`, `reset_email_by_code`, `welcome_email`, `blocked_account`, `stolen_credentials`, `enrollment_email`, `mfa_oob_code`, `user_invitation`, `async_approval`, `change_password` (legacy), or `password_reset` (legacy). - - template : EmailTemplateNameEnum - - body : typing.Optional[str] - Body of the email template. - - from_ : typing.Optional[str] - Senders `from` email address. - - result_url : typing.Optional[str] - URL to redirect the user to after a successful action. - - subject : typing.Optional[str] - Subject line of the email. - - syntax : typing.Optional[str] - Syntax of the template body. - - url_lifetime_in_seconds : typing.Optional[float] - Lifetime in seconds that the link within the email will be valid for. - - include_email_in_redirect : typing.Optional[bool] - Whether the `reset_email` and `verify_email` templates should include the user's email address as the `email` parameter in the returnUrl (true) or whether no email address should be included in the redirect (false). Defaults to true. - - enabled : typing.Optional[bool] - Whether the template is enabled (true) or disabled (false). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SetEmailTemplateResponseContent - Template successfully updated. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.email_templates.set( - template_name="verify_email", - template="verify_email", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.set( - template_name, - template=template, - body=body, - from_=from_, - result_url=result_url, - subject=subject, - syntax=syntax, - url_lifetime_in_seconds=url_lifetime_in_seconds, - include_email_in_redirect=include_email_in_redirect, - enabled=enabled, - request_options=request_options, - ) - return _response.data - - async def update( - self, - template_name: EmailTemplateNameEnum, - *, - template: typing.Optional[EmailTemplateNameEnum] = OMIT, - body: typing.Optional[str] = OMIT, - from_: typing.Optional[str] = OMIT, - result_url: typing.Optional[str] = OMIT, - subject: typing.Optional[str] = OMIT, - syntax: typing.Optional[str] = OMIT, - url_lifetime_in_seconds: typing.Optional[float] = OMIT, - include_email_in_redirect: typing.Optional[bool] = OMIT, - enabled: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateEmailTemplateResponseContent: - """ - Modify an email template. - - Parameters - ---------- - template_name : EmailTemplateNameEnum - Template name. Can be `verify_email`, `verify_email_by_code`, `auth_email_by_code`, `reset_email`, `reset_email_by_code`, `welcome_email`, `blocked_account`, `stolen_credentials`, `enrollment_email`, `mfa_oob_code`, `user_invitation`, `async_approval`, `change_password` (legacy), or `password_reset` (legacy). - - template : typing.Optional[EmailTemplateNameEnum] - - body : typing.Optional[str] - Body of the email template. - - from_ : typing.Optional[str] - Senders `from` email address. - - result_url : typing.Optional[str] - URL to redirect the user to after a successful action. - - subject : typing.Optional[str] - Subject line of the email. - - syntax : typing.Optional[str] - Syntax of the template body. - - url_lifetime_in_seconds : typing.Optional[float] - Lifetime in seconds that the link within the email will be valid for. - - include_email_in_redirect : typing.Optional[bool] - Whether the `reset_email` and `verify_email` templates should include the user's email address as the `email` parameter in the returnUrl (true) or whether no email address should be included in the redirect (false). Defaults to true. - - enabled : typing.Optional[bool] - Whether the template is enabled (true) or disabled (false). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateEmailTemplateResponseContent - Template successfully updated. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.email_templates.update( - template_name="verify_email", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.update( - template_name, - template=template, - body=body, - from_=from_, - result_url=result_url, - subject=subject, - syntax=syntax, - url_lifetime_in_seconds=url_lifetime_in_seconds, - include_email_in_redirect=include_email_in_redirect, - enabled=enabled, - request_options=request_options, - ) - return _response.data diff --git a/src/auth0/management/email_templates/raw_client.py b/src/auth0/management/email_templates/raw_client.py deleted file mode 100644 index f7d53650..00000000 --- a/src/auth0/management/email_templates/raw_client.py +++ /dev/null @@ -1,1109 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ..core.api_error import ApiError -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.http_response import AsyncHttpResponse, HttpResponse -from ..core.jsonable_encoder import quote_path_param -from ..core.parse_error import ParsingError -from ..core.pydantic_utilities import parse_obj_as -from ..core.request_options import RequestOptions -from ..errors.bad_request_error import BadRequestError -from ..errors.conflict_error import ConflictError -from ..errors.forbidden_error import ForbiddenError -from ..errors.not_found_error import NotFoundError -from ..errors.too_many_requests_error import TooManyRequestsError -from ..errors.unauthorized_error import UnauthorizedError -from ..types.create_email_template_response_content import CreateEmailTemplateResponseContent -from ..types.email_template_name_enum import EmailTemplateNameEnum -from ..types.get_email_template_response_content import GetEmailTemplateResponseContent -from ..types.set_email_template_response_content import SetEmailTemplateResponseContent -from ..types.update_email_template_response_content import UpdateEmailTemplateResponseContent -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawEmailTemplatesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def create( - self, - *, - template: EmailTemplateNameEnum, - body: typing.Optional[str] = OMIT, - from_: typing.Optional[str] = OMIT, - result_url: typing.Optional[str] = OMIT, - subject: typing.Optional[str] = OMIT, - syntax: typing.Optional[str] = OMIT, - url_lifetime_in_seconds: typing.Optional[float] = OMIT, - include_email_in_redirect: typing.Optional[bool] = OMIT, - enabled: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[CreateEmailTemplateResponseContent]: - """ - Create an email template. - - Parameters - ---------- - template : EmailTemplateNameEnum - - body : typing.Optional[str] - Body of the email template. - - from_ : typing.Optional[str] - Senders `from` email address. - - result_url : typing.Optional[str] - URL to redirect the user to after a successful action. - - subject : typing.Optional[str] - Subject line of the email. - - syntax : typing.Optional[str] - Syntax of the template body. - - url_lifetime_in_seconds : typing.Optional[float] - Lifetime in seconds that the link within the email will be valid for. - - include_email_in_redirect : typing.Optional[bool] - Whether the `reset_email` and `verify_email` templates should include the user's email address as the `email` parameter in the returnUrl (true) or whether no email address should be included in the redirect (false). Defaults to true. - - enabled : typing.Optional[bool] - Whether the template is enabled (true) or disabled (false). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CreateEmailTemplateResponseContent] - Template successfully created. - """ - _response = self._client_wrapper.httpx_client.request( - "email-templates", - method="POST", - json={ - "template": template, - "body": body, - "from": from_, - "resultUrl": result_url, - "subject": subject, - "syntax": syntax, - "urlLifetimeInSeconds": url_lifetime_in_seconds, - "includeEmailInRedirect": include_email_in_redirect, - "enabled": enabled, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateEmailTemplateResponseContent, - parse_obj_as( - type_=CreateEmailTemplateResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def get( - self, template_name: EmailTemplateNameEnum, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetEmailTemplateResponseContent]: - """ - Retrieve an email template by pre-defined name. These names are `verify_email`, `verify_email_by_code`, `auth_email_by_code`, `reset_email`, `reset_email_by_code`, `welcome_email`, `blocked_account`, `stolen_credentials`, `enrollment_email`, `mfa_oob_code`, `user_invitation`, and `async_approval`. The names `change_password`, and `password_reset` are also supported for legacy scenarios. - - Parameters - ---------- - template_name : EmailTemplateNameEnum - Template name. Can be `verify_email`, `verify_email_by_code`, `auth_email_by_code`, `reset_email`, `reset_email_by_code`, `welcome_email`, `blocked_account`, `stolen_credentials`, `enrollment_email`, `mfa_oob_code`, `user_invitation`, `async_approval`, `change_password` (legacy), or `password_reset` (legacy). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetEmailTemplateResponseContent] - Template successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - f"email-templates/{quote_path_param(template_name)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetEmailTemplateResponseContent, - parse_obj_as( - type_=GetEmailTemplateResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def set( - self, - template_name: EmailTemplateNameEnum, - *, - template: EmailTemplateNameEnum, - body: typing.Optional[str] = OMIT, - from_: typing.Optional[str] = OMIT, - result_url: typing.Optional[str] = OMIT, - subject: typing.Optional[str] = OMIT, - syntax: typing.Optional[str] = OMIT, - url_lifetime_in_seconds: typing.Optional[float] = OMIT, - include_email_in_redirect: typing.Optional[bool] = OMIT, - enabled: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[SetEmailTemplateResponseContent]: - """ - Update an email template. - - Parameters - ---------- - template_name : EmailTemplateNameEnum - Template name. Can be `verify_email`, `verify_email_by_code`, `auth_email_by_code`, `reset_email`, `reset_email_by_code`, `welcome_email`, `blocked_account`, `stolen_credentials`, `enrollment_email`, `mfa_oob_code`, `user_invitation`, `async_approval`, `change_password` (legacy), or `password_reset` (legacy). - - template : EmailTemplateNameEnum - - body : typing.Optional[str] - Body of the email template. - - from_ : typing.Optional[str] - Senders `from` email address. - - result_url : typing.Optional[str] - URL to redirect the user to after a successful action. - - subject : typing.Optional[str] - Subject line of the email. - - syntax : typing.Optional[str] - Syntax of the template body. - - url_lifetime_in_seconds : typing.Optional[float] - Lifetime in seconds that the link within the email will be valid for. - - include_email_in_redirect : typing.Optional[bool] - Whether the `reset_email` and `verify_email` templates should include the user's email address as the `email` parameter in the returnUrl (true) or whether no email address should be included in the redirect (false). Defaults to true. - - enabled : typing.Optional[bool] - Whether the template is enabled (true) or disabled (false). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[SetEmailTemplateResponseContent] - Template successfully updated. - """ - _response = self._client_wrapper.httpx_client.request( - f"email-templates/{quote_path_param(template_name)}", - method="PUT", - json={ - "template": template, - "body": body, - "from": from_, - "resultUrl": result_url, - "subject": subject, - "syntax": syntax, - "urlLifetimeInSeconds": url_lifetime_in_seconds, - "includeEmailInRedirect": include_email_in_redirect, - "enabled": enabled, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - SetEmailTemplateResponseContent, - parse_obj_as( - type_=SetEmailTemplateResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def update( - self, - template_name: EmailTemplateNameEnum, - *, - template: typing.Optional[EmailTemplateNameEnum] = OMIT, - body: typing.Optional[str] = OMIT, - from_: typing.Optional[str] = OMIT, - result_url: typing.Optional[str] = OMIT, - subject: typing.Optional[str] = OMIT, - syntax: typing.Optional[str] = OMIT, - url_lifetime_in_seconds: typing.Optional[float] = OMIT, - include_email_in_redirect: typing.Optional[bool] = OMIT, - enabled: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[UpdateEmailTemplateResponseContent]: - """ - Modify an email template. - - Parameters - ---------- - template_name : EmailTemplateNameEnum - Template name. Can be `verify_email`, `verify_email_by_code`, `auth_email_by_code`, `reset_email`, `reset_email_by_code`, `welcome_email`, `blocked_account`, `stolen_credentials`, `enrollment_email`, `mfa_oob_code`, `user_invitation`, `async_approval`, `change_password` (legacy), or `password_reset` (legacy). - - template : typing.Optional[EmailTemplateNameEnum] - - body : typing.Optional[str] - Body of the email template. - - from_ : typing.Optional[str] - Senders `from` email address. - - result_url : typing.Optional[str] - URL to redirect the user to after a successful action. - - subject : typing.Optional[str] - Subject line of the email. - - syntax : typing.Optional[str] - Syntax of the template body. - - url_lifetime_in_seconds : typing.Optional[float] - Lifetime in seconds that the link within the email will be valid for. - - include_email_in_redirect : typing.Optional[bool] - Whether the `reset_email` and `verify_email` templates should include the user's email address as the `email` parameter in the returnUrl (true) or whether no email address should be included in the redirect (false). Defaults to true. - - enabled : typing.Optional[bool] - Whether the template is enabled (true) or disabled (false). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[UpdateEmailTemplateResponseContent] - Template successfully updated. - """ - _response = self._client_wrapper.httpx_client.request( - f"email-templates/{quote_path_param(template_name)}", - method="PATCH", - json={ - "template": template, - "body": body, - "from": from_, - "resultUrl": result_url, - "subject": subject, - "syntax": syntax, - "urlLifetimeInSeconds": url_lifetime_in_seconds, - "includeEmailInRedirect": include_email_in_redirect, - "enabled": enabled, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateEmailTemplateResponseContent, - parse_obj_as( - type_=UpdateEmailTemplateResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawEmailTemplatesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def create( - self, - *, - template: EmailTemplateNameEnum, - body: typing.Optional[str] = OMIT, - from_: typing.Optional[str] = OMIT, - result_url: typing.Optional[str] = OMIT, - subject: typing.Optional[str] = OMIT, - syntax: typing.Optional[str] = OMIT, - url_lifetime_in_seconds: typing.Optional[float] = OMIT, - include_email_in_redirect: typing.Optional[bool] = OMIT, - enabled: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[CreateEmailTemplateResponseContent]: - """ - Create an email template. - - Parameters - ---------- - template : EmailTemplateNameEnum - - body : typing.Optional[str] - Body of the email template. - - from_ : typing.Optional[str] - Senders `from` email address. - - result_url : typing.Optional[str] - URL to redirect the user to after a successful action. - - subject : typing.Optional[str] - Subject line of the email. - - syntax : typing.Optional[str] - Syntax of the template body. - - url_lifetime_in_seconds : typing.Optional[float] - Lifetime in seconds that the link within the email will be valid for. - - include_email_in_redirect : typing.Optional[bool] - Whether the `reset_email` and `verify_email` templates should include the user's email address as the `email` parameter in the returnUrl (true) or whether no email address should be included in the redirect (false). Defaults to true. - - enabled : typing.Optional[bool] - Whether the template is enabled (true) or disabled (false). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CreateEmailTemplateResponseContent] - Template successfully created. - """ - _response = await self._client_wrapper.httpx_client.request( - "email-templates", - method="POST", - json={ - "template": template, - "body": body, - "from": from_, - "resultUrl": result_url, - "subject": subject, - "syntax": syntax, - "urlLifetimeInSeconds": url_lifetime_in_seconds, - "includeEmailInRedirect": include_email_in_redirect, - "enabled": enabled, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateEmailTemplateResponseContent, - parse_obj_as( - type_=CreateEmailTemplateResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def get( - self, template_name: EmailTemplateNameEnum, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetEmailTemplateResponseContent]: - """ - Retrieve an email template by pre-defined name. These names are `verify_email`, `verify_email_by_code`, `auth_email_by_code`, `reset_email`, `reset_email_by_code`, `welcome_email`, `blocked_account`, `stolen_credentials`, `enrollment_email`, `mfa_oob_code`, `user_invitation`, and `async_approval`. The names `change_password`, and `password_reset` are also supported for legacy scenarios. - - Parameters - ---------- - template_name : EmailTemplateNameEnum - Template name. Can be `verify_email`, `verify_email_by_code`, `auth_email_by_code`, `reset_email`, `reset_email_by_code`, `welcome_email`, `blocked_account`, `stolen_credentials`, `enrollment_email`, `mfa_oob_code`, `user_invitation`, `async_approval`, `change_password` (legacy), or `password_reset` (legacy). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetEmailTemplateResponseContent] - Template successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - f"email-templates/{quote_path_param(template_name)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetEmailTemplateResponseContent, - parse_obj_as( - type_=GetEmailTemplateResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def set( - self, - template_name: EmailTemplateNameEnum, - *, - template: EmailTemplateNameEnum, - body: typing.Optional[str] = OMIT, - from_: typing.Optional[str] = OMIT, - result_url: typing.Optional[str] = OMIT, - subject: typing.Optional[str] = OMIT, - syntax: typing.Optional[str] = OMIT, - url_lifetime_in_seconds: typing.Optional[float] = OMIT, - include_email_in_redirect: typing.Optional[bool] = OMIT, - enabled: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[SetEmailTemplateResponseContent]: - """ - Update an email template. - - Parameters - ---------- - template_name : EmailTemplateNameEnum - Template name. Can be `verify_email`, `verify_email_by_code`, `auth_email_by_code`, `reset_email`, `reset_email_by_code`, `welcome_email`, `blocked_account`, `stolen_credentials`, `enrollment_email`, `mfa_oob_code`, `user_invitation`, `async_approval`, `change_password` (legacy), or `password_reset` (legacy). - - template : EmailTemplateNameEnum - - body : typing.Optional[str] - Body of the email template. - - from_ : typing.Optional[str] - Senders `from` email address. - - result_url : typing.Optional[str] - URL to redirect the user to after a successful action. - - subject : typing.Optional[str] - Subject line of the email. - - syntax : typing.Optional[str] - Syntax of the template body. - - url_lifetime_in_seconds : typing.Optional[float] - Lifetime in seconds that the link within the email will be valid for. - - include_email_in_redirect : typing.Optional[bool] - Whether the `reset_email` and `verify_email` templates should include the user's email address as the `email` parameter in the returnUrl (true) or whether no email address should be included in the redirect (false). Defaults to true. - - enabled : typing.Optional[bool] - Whether the template is enabled (true) or disabled (false). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[SetEmailTemplateResponseContent] - Template successfully updated. - """ - _response = await self._client_wrapper.httpx_client.request( - f"email-templates/{quote_path_param(template_name)}", - method="PUT", - json={ - "template": template, - "body": body, - "from": from_, - "resultUrl": result_url, - "subject": subject, - "syntax": syntax, - "urlLifetimeInSeconds": url_lifetime_in_seconds, - "includeEmailInRedirect": include_email_in_redirect, - "enabled": enabled, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - SetEmailTemplateResponseContent, - parse_obj_as( - type_=SetEmailTemplateResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def update( - self, - template_name: EmailTemplateNameEnum, - *, - template: typing.Optional[EmailTemplateNameEnum] = OMIT, - body: typing.Optional[str] = OMIT, - from_: typing.Optional[str] = OMIT, - result_url: typing.Optional[str] = OMIT, - subject: typing.Optional[str] = OMIT, - syntax: typing.Optional[str] = OMIT, - url_lifetime_in_seconds: typing.Optional[float] = OMIT, - include_email_in_redirect: typing.Optional[bool] = OMIT, - enabled: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[UpdateEmailTemplateResponseContent]: - """ - Modify an email template. - - Parameters - ---------- - template_name : EmailTemplateNameEnum - Template name. Can be `verify_email`, `verify_email_by_code`, `auth_email_by_code`, `reset_email`, `reset_email_by_code`, `welcome_email`, `blocked_account`, `stolen_credentials`, `enrollment_email`, `mfa_oob_code`, `user_invitation`, `async_approval`, `change_password` (legacy), or `password_reset` (legacy). - - template : typing.Optional[EmailTemplateNameEnum] - - body : typing.Optional[str] - Body of the email template. - - from_ : typing.Optional[str] - Senders `from` email address. - - result_url : typing.Optional[str] - URL to redirect the user to after a successful action. - - subject : typing.Optional[str] - Subject line of the email. - - syntax : typing.Optional[str] - Syntax of the template body. - - url_lifetime_in_seconds : typing.Optional[float] - Lifetime in seconds that the link within the email will be valid for. - - include_email_in_redirect : typing.Optional[bool] - Whether the `reset_email` and `verify_email` templates should include the user's email address as the `email` parameter in the returnUrl (true) or whether no email address should be included in the redirect (false). Defaults to true. - - enabled : typing.Optional[bool] - Whether the template is enabled (true) or disabled (false). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[UpdateEmailTemplateResponseContent] - Template successfully updated. - """ - _response = await self._client_wrapper.httpx_client.request( - f"email-templates/{quote_path_param(template_name)}", - method="PATCH", - json={ - "template": template, - "body": body, - "from": from_, - "resultUrl": result_url, - "subject": subject, - "syntax": syntax, - "urlLifetimeInSeconds": url_lifetime_in_seconds, - "includeEmailInRedirect": include_email_in_redirect, - "enabled": enabled, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateEmailTemplateResponseContent, - parse_obj_as( - type_=UpdateEmailTemplateResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/emails/__init__.py b/src/auth0/management/emails/__init__.py deleted file mode 100644 index 97e7e3bd..00000000 --- a/src/auth0/management/emails/__init__.py +++ /dev/null @@ -1,34 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from . import provider -_dynamic_imports: typing.Dict[str, str] = {"provider": ".provider"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - if module_name == f".{attr_name}": - return module - else: - return getattr(module, attr_name) - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["provider"] diff --git a/src/auth0/management/emails/client.py b/src/auth0/management/emails/client.py deleted file mode 100644 index 25ec6425..00000000 --- a/src/auth0/management/emails/client.py +++ /dev/null @@ -1,63 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .raw_client import AsyncRawEmailsClient, RawEmailsClient - -if typing.TYPE_CHECKING: - from .provider.client import AsyncProviderClient, ProviderClient - - -class EmailsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawEmailsClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._provider: typing.Optional[ProviderClient] = None - - @property - def with_raw_response(self) -> RawEmailsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawEmailsClient - """ - return self._raw_client - - @property - def provider(self): - if self._provider is None: - from .provider.client import ProviderClient # noqa: E402 - - self._provider = ProviderClient(client_wrapper=self._client_wrapper) - return self._provider - - -class AsyncEmailsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawEmailsClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._provider: typing.Optional[AsyncProviderClient] = None - - @property - def with_raw_response(self) -> AsyncRawEmailsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawEmailsClient - """ - return self._raw_client - - @property - def provider(self): - if self._provider is None: - from .provider.client import AsyncProviderClient # noqa: E402 - - self._provider = AsyncProviderClient(client_wrapper=self._client_wrapper) - return self._provider diff --git a/src/auth0/management/emails/provider/__init__.py b/src/auth0/management/emails/provider/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/emails/provider/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/emails/provider/client.py b/src/auth0/management/emails/provider/client.py deleted file mode 100644 index 1b7784d6..00000000 --- a/src/auth0/management/emails/provider/client.py +++ /dev/null @@ -1,534 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.request_options import RequestOptions -from ...types.create_email_provider_response_content import CreateEmailProviderResponseContent -from ...types.email_provider_credentials_schema import EmailProviderCredentialsSchema -from ...types.email_provider_name_enum import EmailProviderNameEnum -from ...types.email_specific_provider_settings_with_additional_properties import ( - EmailSpecificProviderSettingsWithAdditionalProperties, -) -from ...types.get_email_provider_response_content import GetEmailProviderResponseContent -from ...types.update_email_provider_response_content import UpdateEmailProviderResponseContent -from .raw_client import AsyncRawProviderClient, RawProviderClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class ProviderClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawProviderClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawProviderClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawProviderClient - """ - return self._raw_client - - def get( - self, - *, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> GetEmailProviderResponseContent: - """ - Retrieve details of the [email provider configuration](https://auth0.com/docs/customize/email/smtp-email-providers) in your tenant. A list of fields to include or exclude may also be specified. - - Parameters - ---------- - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude (dependent upon include_fields) from the result. Leave empty to retrieve `name` and `enabled`. Additional fields available include `credentials`, `default_from_address`, and `settings`. - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetEmailProviderResponseContent - Email provider successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.emails.provider.get( - fields="fields", - include_fields=True, - ) - """ - _response = self._raw_client.get(fields=fields, include_fields=include_fields, request_options=request_options) - return _response.data - - def create( - self, - *, - name: EmailProviderNameEnum, - enabled: typing.Optional[bool] = OMIT, - default_from_address: typing.Optional[str] = OMIT, - credentials: typing.Optional[EmailProviderCredentialsSchema] = OMIT, - settings: typing.Optional[EmailSpecificProviderSettingsWithAdditionalProperties] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateEmailProviderResponseContent: - """ - Create an [email provider](https://auth0.com/docs/email/providers). The `credentials` object - requires different properties depending on the email provider (which is specified using the `name` property): - - - `mandrill` requires `api_key` - - `sendgrid` requires `api_key` - - `sparkpost` requires `api_key`. Optionally, set `region` to `eu` to use - the SparkPost service hosted in Western Europe; set to `null` to use the SparkPost service hosted in - North America. `eu` or `null` are the only valid values for `region`. - - `mailgun` requires `api_key` and `domain`. Optionally, set `region` to - `eu` to use the Mailgun service hosted in Europe; set to `null` otherwise. `eu` or - `null` are the only valid values for `region`. - - `ses` requires `accessKeyId`, `secretAccessKey`, and `region` - - `smtp` requires `smtp_host`, `smtp_port`, `smtp_user`, and - `smtp_pass` - - Depending on the type of provider it is possible to specify `settings` object with different configuration - options, which will be used when sending an email: - - - `smtp` provider, `settings` may contain `headers` object. - - When using AWS SES SMTP host, you may provide a name of configuration set in - `X-SES-Configuration-Set` header. Value must be a string. - - When using Sparkpost host, you may provide value for - `X-MSYS_API` header. Value must be an object. - - For `ses` provider, `settings` may contain `message` object, where you can provide - a name of configuration set in `configuration_set_name` property. Value must be a string. - - Parameters - ---------- - name : EmailProviderNameEnum - - enabled : typing.Optional[bool] - Whether the provider is enabled (true) or disabled (false). - - default_from_address : typing.Optional[str] - Email address to use as "from" when no other address specified. - - credentials : typing.Optional[EmailProviderCredentialsSchema] - - settings : typing.Optional[EmailSpecificProviderSettingsWithAdditionalProperties] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateEmailProviderResponseContent - Email provider successfully created. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.emails.provider.create( - name="mailgun", - ) - """ - _response = self._raw_client.create( - name=name, - enabled=enabled, - default_from_address=default_from_address, - credentials=credentials, - settings=settings, - request_options=request_options, - ) - return _response.data - - def delete(self, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete the email provider. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.emails.provider.delete() - """ - _response = self._raw_client.delete(request_options=request_options) - return _response.data - - def update( - self, - *, - name: typing.Optional[EmailProviderNameEnum] = OMIT, - enabled: typing.Optional[bool] = OMIT, - default_from_address: typing.Optional[str] = OMIT, - credentials: typing.Optional[EmailProviderCredentialsSchema] = OMIT, - settings: typing.Optional[EmailSpecificProviderSettingsWithAdditionalProperties] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateEmailProviderResponseContent: - """ - Update an [email provider](https://auth0.com/docs/email/providers). The `credentials` object - requires different properties depending on the email provider (which is specified using the `name` property): - - - `mandrill` requires `api_key` - - `sendgrid` requires `api_key` - - `sparkpost` requires `api_key`. Optionally, set `region` to `eu` to use - the SparkPost service hosted in Western Europe; set to `null` to use the SparkPost service hosted in - North America. `eu` or `null` are the only valid values for `region`. - - `mailgun` requires `api_key` and `domain`. Optionally, set `region` to - `eu` to use the Mailgun service hosted in Europe; set to `null` otherwise. `eu` or - `null` are the only valid values for `region`. - - `ses` requires `accessKeyId`, `secretAccessKey`, and `region` - - `smtp` requires `smtp_host`, `smtp_port`, `smtp_user`, and - `smtp_pass` - - Depending on the type of provider it is possible to specify `settings` object with different configuration - options, which will be used when sending an email: - - - `smtp` provider, `settings` may contain `headers` object. - - When using AWS SES SMTP host, you may provide a name of configuration set in - `X-SES-Configuration-Set` header. Value must be a string. - - When using Sparkpost host, you may provide value for - `X-MSYS_API` header. Value must be an object. - - For `ses` provider, `settings` may contain `message` object, where you can provide - a name of configuration set in `configuration_set_name` property. Value must be a string. - - Parameters - ---------- - name : typing.Optional[EmailProviderNameEnum] - - enabled : typing.Optional[bool] - Whether the provider is enabled (true) or disabled (false). - - default_from_address : typing.Optional[str] - Email address to use as "from" when no other address specified. - - credentials : typing.Optional[EmailProviderCredentialsSchema] - - settings : typing.Optional[EmailSpecificProviderSettingsWithAdditionalProperties] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateEmailProviderResponseContent - Email provider successfully updated. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.emails.provider.update() - """ - _response = self._raw_client.update( - name=name, - enabled=enabled, - default_from_address=default_from_address, - credentials=credentials, - settings=settings, - request_options=request_options, - ) - return _response.data - - -class AsyncProviderClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawProviderClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawProviderClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawProviderClient - """ - return self._raw_client - - async def get( - self, - *, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> GetEmailProviderResponseContent: - """ - Retrieve details of the [email provider configuration](https://auth0.com/docs/customize/email/smtp-email-providers) in your tenant. A list of fields to include or exclude may also be specified. - - Parameters - ---------- - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude (dependent upon include_fields) from the result. Leave empty to retrieve `name` and `enabled`. Additional fields available include `credentials`, `default_from_address`, and `settings`. - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetEmailProviderResponseContent - Email provider successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.emails.provider.get( - fields="fields", - include_fields=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.get( - fields=fields, include_fields=include_fields, request_options=request_options - ) - return _response.data - - async def create( - self, - *, - name: EmailProviderNameEnum, - enabled: typing.Optional[bool] = OMIT, - default_from_address: typing.Optional[str] = OMIT, - credentials: typing.Optional[EmailProviderCredentialsSchema] = OMIT, - settings: typing.Optional[EmailSpecificProviderSettingsWithAdditionalProperties] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateEmailProviderResponseContent: - """ - Create an [email provider](https://auth0.com/docs/email/providers). The `credentials` object - requires different properties depending on the email provider (which is specified using the `name` property): - - - `mandrill` requires `api_key` - - `sendgrid` requires `api_key` - - `sparkpost` requires `api_key`. Optionally, set `region` to `eu` to use - the SparkPost service hosted in Western Europe; set to `null` to use the SparkPost service hosted in - North America. `eu` or `null` are the only valid values for `region`. - - `mailgun` requires `api_key` and `domain`. Optionally, set `region` to - `eu` to use the Mailgun service hosted in Europe; set to `null` otherwise. `eu` or - `null` are the only valid values for `region`. - - `ses` requires `accessKeyId`, `secretAccessKey`, and `region` - - `smtp` requires `smtp_host`, `smtp_port`, `smtp_user`, and - `smtp_pass` - - Depending on the type of provider it is possible to specify `settings` object with different configuration - options, which will be used when sending an email: - - - `smtp` provider, `settings` may contain `headers` object. - - When using AWS SES SMTP host, you may provide a name of configuration set in - `X-SES-Configuration-Set` header. Value must be a string. - - When using Sparkpost host, you may provide value for - `X-MSYS_API` header. Value must be an object. - - For `ses` provider, `settings` may contain `message` object, where you can provide - a name of configuration set in `configuration_set_name` property. Value must be a string. - - Parameters - ---------- - name : EmailProviderNameEnum - - enabled : typing.Optional[bool] - Whether the provider is enabled (true) or disabled (false). - - default_from_address : typing.Optional[str] - Email address to use as "from" when no other address specified. - - credentials : typing.Optional[EmailProviderCredentialsSchema] - - settings : typing.Optional[EmailSpecificProviderSettingsWithAdditionalProperties] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateEmailProviderResponseContent - Email provider successfully created. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.emails.provider.create( - name="mailgun", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - name=name, - enabled=enabled, - default_from_address=default_from_address, - credentials=credentials, - settings=settings, - request_options=request_options, - ) - return _response.data - - async def delete(self, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete the email provider. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.emails.provider.delete() - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete(request_options=request_options) - return _response.data - - async def update( - self, - *, - name: typing.Optional[EmailProviderNameEnum] = OMIT, - enabled: typing.Optional[bool] = OMIT, - default_from_address: typing.Optional[str] = OMIT, - credentials: typing.Optional[EmailProviderCredentialsSchema] = OMIT, - settings: typing.Optional[EmailSpecificProviderSettingsWithAdditionalProperties] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateEmailProviderResponseContent: - """ - Update an [email provider](https://auth0.com/docs/email/providers). The `credentials` object - requires different properties depending on the email provider (which is specified using the `name` property): - - - `mandrill` requires `api_key` - - `sendgrid` requires `api_key` - - `sparkpost` requires `api_key`. Optionally, set `region` to `eu` to use - the SparkPost service hosted in Western Europe; set to `null` to use the SparkPost service hosted in - North America. `eu` or `null` are the only valid values for `region`. - - `mailgun` requires `api_key` and `domain`. Optionally, set `region` to - `eu` to use the Mailgun service hosted in Europe; set to `null` otherwise. `eu` or - `null` are the only valid values for `region`. - - `ses` requires `accessKeyId`, `secretAccessKey`, and `region` - - `smtp` requires `smtp_host`, `smtp_port`, `smtp_user`, and - `smtp_pass` - - Depending on the type of provider it is possible to specify `settings` object with different configuration - options, which will be used when sending an email: - - - `smtp` provider, `settings` may contain `headers` object. - - When using AWS SES SMTP host, you may provide a name of configuration set in - `X-SES-Configuration-Set` header. Value must be a string. - - When using Sparkpost host, you may provide value for - `X-MSYS_API` header. Value must be an object. - - For `ses` provider, `settings` may contain `message` object, where you can provide - a name of configuration set in `configuration_set_name` property. Value must be a string. - - Parameters - ---------- - name : typing.Optional[EmailProviderNameEnum] - - enabled : typing.Optional[bool] - Whether the provider is enabled (true) or disabled (false). - - default_from_address : typing.Optional[str] - Email address to use as "from" when no other address specified. - - credentials : typing.Optional[EmailProviderCredentialsSchema] - - settings : typing.Optional[EmailSpecificProviderSettingsWithAdditionalProperties] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateEmailProviderResponseContent - Email provider successfully updated. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.emails.provider.update() - - - asyncio.run(main()) - """ - _response = await self._raw_client.update( - name=name, - enabled=enabled, - default_from_address=default_from_address, - credentials=credentials, - settings=settings, - request_options=request_options, - ) - return _response.data diff --git a/src/auth0/management/emails/provider/raw_client.py b/src/auth0/management/emails/provider/raw_client.py deleted file mode 100644 index 5434452e..00000000 --- a/src/auth0/management/emails/provider/raw_client.py +++ /dev/null @@ -1,1056 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ...core.api_error import ApiError -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.http_response import AsyncHttpResponse, HttpResponse -from ...core.parse_error import ParsingError -from ...core.pydantic_utilities import parse_obj_as -from ...core.request_options import RequestOptions -from ...core.serialization import convert_and_respect_annotation_metadata -from ...errors.bad_request_error import BadRequestError -from ...errors.conflict_error import ConflictError -from ...errors.forbidden_error import ForbiddenError -from ...errors.not_found_error import NotFoundError -from ...errors.too_many_requests_error import TooManyRequestsError -from ...errors.unauthorized_error import UnauthorizedError -from ...types.create_email_provider_response_content import CreateEmailProviderResponseContent -from ...types.email_provider_credentials_schema import EmailProviderCredentialsSchema -from ...types.email_provider_name_enum import EmailProviderNameEnum -from ...types.email_specific_provider_settings_with_additional_properties import ( - EmailSpecificProviderSettingsWithAdditionalProperties, -) -from ...types.get_email_provider_response_content import GetEmailProviderResponseContent -from ...types.update_email_provider_response_content import UpdateEmailProviderResponseContent -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawProviderClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def get( - self, - *, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[GetEmailProviderResponseContent]: - """ - Retrieve details of the [email provider configuration](https://auth0.com/docs/customize/email/smtp-email-providers) in your tenant. A list of fields to include or exclude may also be specified. - - Parameters - ---------- - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude (dependent upon include_fields) from the result. Leave empty to retrieve `name` and `enabled`. Additional fields available include `credentials`, `default_from_address`, and `settings`. - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetEmailProviderResponseContent] - Email provider successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - "emails/provider", - method="GET", - params={ - "fields": fields, - "include_fields": include_fields, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetEmailProviderResponseContent, - parse_obj_as( - type_=GetEmailProviderResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - *, - name: EmailProviderNameEnum, - enabled: typing.Optional[bool] = OMIT, - default_from_address: typing.Optional[str] = OMIT, - credentials: typing.Optional[EmailProviderCredentialsSchema] = OMIT, - settings: typing.Optional[EmailSpecificProviderSettingsWithAdditionalProperties] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[CreateEmailProviderResponseContent]: - """ - Create an [email provider](https://auth0.com/docs/email/providers). The `credentials` object - requires different properties depending on the email provider (which is specified using the `name` property): - - - `mandrill` requires `api_key` - - `sendgrid` requires `api_key` - - `sparkpost` requires `api_key`. Optionally, set `region` to `eu` to use - the SparkPost service hosted in Western Europe; set to `null` to use the SparkPost service hosted in - North America. `eu` or `null` are the only valid values for `region`. - - `mailgun` requires `api_key` and `domain`. Optionally, set `region` to - `eu` to use the Mailgun service hosted in Europe; set to `null` otherwise. `eu` or - `null` are the only valid values for `region`. - - `ses` requires `accessKeyId`, `secretAccessKey`, and `region` - - `smtp` requires `smtp_host`, `smtp_port`, `smtp_user`, and - `smtp_pass` - - Depending on the type of provider it is possible to specify `settings` object with different configuration - options, which will be used when sending an email: - - - `smtp` provider, `settings` may contain `headers` object. - - When using AWS SES SMTP host, you may provide a name of configuration set in - `X-SES-Configuration-Set` header. Value must be a string. - - When using Sparkpost host, you may provide value for - `X-MSYS_API` header. Value must be an object. - - For `ses` provider, `settings` may contain `message` object, where you can provide - a name of configuration set in `configuration_set_name` property. Value must be a string. - - Parameters - ---------- - name : EmailProviderNameEnum - - enabled : typing.Optional[bool] - Whether the provider is enabled (true) or disabled (false). - - default_from_address : typing.Optional[str] - Email address to use as "from" when no other address specified. - - credentials : typing.Optional[EmailProviderCredentialsSchema] - - settings : typing.Optional[EmailSpecificProviderSettingsWithAdditionalProperties] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CreateEmailProviderResponseContent] - Email provider successfully created. - """ - _response = self._client_wrapper.httpx_client.request( - "emails/provider", - method="POST", - json={ - "name": name, - "enabled": enabled, - "default_from_address": default_from_address, - "credentials": convert_and_respect_annotation_metadata( - object_=credentials, annotation=EmailProviderCredentialsSchema, direction="write" - ), - "settings": settings, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateEmailProviderResponseContent, - parse_obj_as( - type_=CreateEmailProviderResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def delete(self, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[None]: - """ - Delete the email provider. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - "emails/provider", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def update( - self, - *, - name: typing.Optional[EmailProviderNameEnum] = OMIT, - enabled: typing.Optional[bool] = OMIT, - default_from_address: typing.Optional[str] = OMIT, - credentials: typing.Optional[EmailProviderCredentialsSchema] = OMIT, - settings: typing.Optional[EmailSpecificProviderSettingsWithAdditionalProperties] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[UpdateEmailProviderResponseContent]: - """ - Update an [email provider](https://auth0.com/docs/email/providers). The `credentials` object - requires different properties depending on the email provider (which is specified using the `name` property): - - - `mandrill` requires `api_key` - - `sendgrid` requires `api_key` - - `sparkpost` requires `api_key`. Optionally, set `region` to `eu` to use - the SparkPost service hosted in Western Europe; set to `null` to use the SparkPost service hosted in - North America. `eu` or `null` are the only valid values for `region`. - - `mailgun` requires `api_key` and `domain`. Optionally, set `region` to - `eu` to use the Mailgun service hosted in Europe; set to `null` otherwise. `eu` or - `null` are the only valid values for `region`. - - `ses` requires `accessKeyId`, `secretAccessKey`, and `region` - - `smtp` requires `smtp_host`, `smtp_port`, `smtp_user`, and - `smtp_pass` - - Depending on the type of provider it is possible to specify `settings` object with different configuration - options, which will be used when sending an email: - - - `smtp` provider, `settings` may contain `headers` object. - - When using AWS SES SMTP host, you may provide a name of configuration set in - `X-SES-Configuration-Set` header. Value must be a string. - - When using Sparkpost host, you may provide value for - `X-MSYS_API` header. Value must be an object. - - For `ses` provider, `settings` may contain `message` object, where you can provide - a name of configuration set in `configuration_set_name` property. Value must be a string. - - Parameters - ---------- - name : typing.Optional[EmailProviderNameEnum] - - enabled : typing.Optional[bool] - Whether the provider is enabled (true) or disabled (false). - - default_from_address : typing.Optional[str] - Email address to use as "from" when no other address specified. - - credentials : typing.Optional[EmailProviderCredentialsSchema] - - settings : typing.Optional[EmailSpecificProviderSettingsWithAdditionalProperties] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[UpdateEmailProviderResponseContent] - Email provider successfully updated. - """ - _response = self._client_wrapper.httpx_client.request( - "emails/provider", - method="PATCH", - json={ - "name": name, - "enabled": enabled, - "default_from_address": default_from_address, - "credentials": convert_and_respect_annotation_metadata( - object_=credentials, annotation=EmailProviderCredentialsSchema, direction="write" - ), - "settings": settings, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateEmailProviderResponseContent, - parse_obj_as( - type_=UpdateEmailProviderResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawProviderClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def get( - self, - *, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[GetEmailProviderResponseContent]: - """ - Retrieve details of the [email provider configuration](https://auth0.com/docs/customize/email/smtp-email-providers) in your tenant. A list of fields to include or exclude may also be specified. - - Parameters - ---------- - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude (dependent upon include_fields) from the result. Leave empty to retrieve `name` and `enabled`. Additional fields available include `credentials`, `default_from_address`, and `settings`. - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetEmailProviderResponseContent] - Email provider successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - "emails/provider", - method="GET", - params={ - "fields": fields, - "include_fields": include_fields, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetEmailProviderResponseContent, - parse_obj_as( - type_=GetEmailProviderResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - *, - name: EmailProviderNameEnum, - enabled: typing.Optional[bool] = OMIT, - default_from_address: typing.Optional[str] = OMIT, - credentials: typing.Optional[EmailProviderCredentialsSchema] = OMIT, - settings: typing.Optional[EmailSpecificProviderSettingsWithAdditionalProperties] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[CreateEmailProviderResponseContent]: - """ - Create an [email provider](https://auth0.com/docs/email/providers). The `credentials` object - requires different properties depending on the email provider (which is specified using the `name` property): - - - `mandrill` requires `api_key` - - `sendgrid` requires `api_key` - - `sparkpost` requires `api_key`. Optionally, set `region` to `eu` to use - the SparkPost service hosted in Western Europe; set to `null` to use the SparkPost service hosted in - North America. `eu` or `null` are the only valid values for `region`. - - `mailgun` requires `api_key` and `domain`. Optionally, set `region` to - `eu` to use the Mailgun service hosted in Europe; set to `null` otherwise. `eu` or - `null` are the only valid values for `region`. - - `ses` requires `accessKeyId`, `secretAccessKey`, and `region` - - `smtp` requires `smtp_host`, `smtp_port`, `smtp_user`, and - `smtp_pass` - - Depending on the type of provider it is possible to specify `settings` object with different configuration - options, which will be used when sending an email: - - - `smtp` provider, `settings` may contain `headers` object. - - When using AWS SES SMTP host, you may provide a name of configuration set in - `X-SES-Configuration-Set` header. Value must be a string. - - When using Sparkpost host, you may provide value for - `X-MSYS_API` header. Value must be an object. - - For `ses` provider, `settings` may contain `message` object, where you can provide - a name of configuration set in `configuration_set_name` property. Value must be a string. - - Parameters - ---------- - name : EmailProviderNameEnum - - enabled : typing.Optional[bool] - Whether the provider is enabled (true) or disabled (false). - - default_from_address : typing.Optional[str] - Email address to use as "from" when no other address specified. - - credentials : typing.Optional[EmailProviderCredentialsSchema] - - settings : typing.Optional[EmailSpecificProviderSettingsWithAdditionalProperties] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CreateEmailProviderResponseContent] - Email provider successfully created. - """ - _response = await self._client_wrapper.httpx_client.request( - "emails/provider", - method="POST", - json={ - "name": name, - "enabled": enabled, - "default_from_address": default_from_address, - "credentials": convert_and_respect_annotation_metadata( - object_=credentials, annotation=EmailProviderCredentialsSchema, direction="write" - ), - "settings": settings, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateEmailProviderResponseContent, - parse_obj_as( - type_=CreateEmailProviderResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def delete(self, *, request_options: typing.Optional[RequestOptions] = None) -> AsyncHttpResponse[None]: - """ - Delete the email provider. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - "emails/provider", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def update( - self, - *, - name: typing.Optional[EmailProviderNameEnum] = OMIT, - enabled: typing.Optional[bool] = OMIT, - default_from_address: typing.Optional[str] = OMIT, - credentials: typing.Optional[EmailProviderCredentialsSchema] = OMIT, - settings: typing.Optional[EmailSpecificProviderSettingsWithAdditionalProperties] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[UpdateEmailProviderResponseContent]: - """ - Update an [email provider](https://auth0.com/docs/email/providers). The `credentials` object - requires different properties depending on the email provider (which is specified using the `name` property): - - - `mandrill` requires `api_key` - - `sendgrid` requires `api_key` - - `sparkpost` requires `api_key`. Optionally, set `region` to `eu` to use - the SparkPost service hosted in Western Europe; set to `null` to use the SparkPost service hosted in - North America. `eu` or `null` are the only valid values for `region`. - - `mailgun` requires `api_key` and `domain`. Optionally, set `region` to - `eu` to use the Mailgun service hosted in Europe; set to `null` otherwise. `eu` or - `null` are the only valid values for `region`. - - `ses` requires `accessKeyId`, `secretAccessKey`, and `region` - - `smtp` requires `smtp_host`, `smtp_port`, `smtp_user`, and - `smtp_pass` - - Depending on the type of provider it is possible to specify `settings` object with different configuration - options, which will be used when sending an email: - - - `smtp` provider, `settings` may contain `headers` object. - - When using AWS SES SMTP host, you may provide a name of configuration set in - `X-SES-Configuration-Set` header. Value must be a string. - - When using Sparkpost host, you may provide value for - `X-MSYS_API` header. Value must be an object. - - For `ses` provider, `settings` may contain `message` object, where you can provide - a name of configuration set in `configuration_set_name` property. Value must be a string. - - Parameters - ---------- - name : typing.Optional[EmailProviderNameEnum] - - enabled : typing.Optional[bool] - Whether the provider is enabled (true) or disabled (false). - - default_from_address : typing.Optional[str] - Email address to use as "from" when no other address specified. - - credentials : typing.Optional[EmailProviderCredentialsSchema] - - settings : typing.Optional[EmailSpecificProviderSettingsWithAdditionalProperties] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[UpdateEmailProviderResponseContent] - Email provider successfully updated. - """ - _response = await self._client_wrapper.httpx_client.request( - "emails/provider", - method="PATCH", - json={ - "name": name, - "enabled": enabled, - "default_from_address": default_from_address, - "credentials": convert_and_respect_annotation_metadata( - object_=credentials, annotation=EmailProviderCredentialsSchema, direction="write" - ), - "settings": settings, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateEmailProviderResponseContent, - parse_obj_as( - type_=UpdateEmailProviderResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/emails/raw_client.py b/src/auth0/management/emails/raw_client.py deleted file mode 100644 index 8627d289..00000000 --- a/src/auth0/management/emails/raw_client.py +++ /dev/null @@ -1,13 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper - - -class RawEmailsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - -class AsyncRawEmailsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper diff --git a/src/auth0/management/environment.py b/src/auth0/management/environment.py deleted file mode 100644 index 42ade918..00000000 --- a/src/auth0/management/environment.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum - - -class Auth0Environment(enum.Enum): - DEFAULT = "https://%7BTENANT%7D.auth0.com/api/v2" diff --git a/src/auth0/management/errors/__init__.py b/src/auth0/management/errors/__init__.py deleted file mode 100644 index 11a6e4ce..00000000 --- a/src/auth0/management/errors/__init__.py +++ /dev/null @@ -1,77 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .bad_request_error import BadRequestError - from .conflict_error import ConflictError - from .content_too_large_error import ContentTooLargeError - from .forbidden_error import ForbiddenError - from .gateway_timeout_error import GatewayTimeoutError - from .gone_error import GoneError - from .internal_server_error import InternalServerError - from .not_found_error import NotFoundError - from .payment_required_error import PaymentRequiredError - from .precondition_failed_error import PreconditionFailedError - from .service_unavailable_error import ServiceUnavailableError - from .too_many_requests_error import TooManyRequestsError - from .unauthorized_error import UnauthorizedError - from .unprocessable_entity_error import UnprocessableEntityError -_dynamic_imports: typing.Dict[str, str] = { - "BadRequestError": ".bad_request_error", - "ConflictError": ".conflict_error", - "ContentTooLargeError": ".content_too_large_error", - "ForbiddenError": ".forbidden_error", - "GatewayTimeoutError": ".gateway_timeout_error", - "GoneError": ".gone_error", - "InternalServerError": ".internal_server_error", - "NotFoundError": ".not_found_error", - "PaymentRequiredError": ".payment_required_error", - "PreconditionFailedError": ".precondition_failed_error", - "ServiceUnavailableError": ".service_unavailable_error", - "TooManyRequestsError": ".too_many_requests_error", - "UnauthorizedError": ".unauthorized_error", - "UnprocessableEntityError": ".unprocessable_entity_error", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - if module_name == f".{attr_name}": - return module - else: - return getattr(module, attr_name) - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = [ - "BadRequestError", - "ConflictError", - "ContentTooLargeError", - "ForbiddenError", - "GatewayTimeoutError", - "GoneError", - "InternalServerError", - "NotFoundError", - "PaymentRequiredError", - "PreconditionFailedError", - "ServiceUnavailableError", - "TooManyRequestsError", - "UnauthorizedError", - "UnprocessableEntityError", -] diff --git a/src/auth0/management/errors/bad_request_error.py b/src/auth0/management/errors/bad_request_error.py deleted file mode 100644 index ec78e269..00000000 --- a/src/auth0/management/errors/bad_request_error.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ..core.api_error import ApiError - - -class BadRequestError(ApiError): - def __init__(self, body: typing.Any, headers: typing.Optional[typing.Dict[str, str]] = None): - super().__init__(status_code=400, headers=headers, body=body) diff --git a/src/auth0/management/errors/conflict_error.py b/src/auth0/management/errors/conflict_error.py deleted file mode 100644 index be04e01a..00000000 --- a/src/auth0/management/errors/conflict_error.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ..core.api_error import ApiError - - -class ConflictError(ApiError): - def __init__(self, body: typing.Any, headers: typing.Optional[typing.Dict[str, str]] = None): - super().__init__(status_code=409, headers=headers, body=body) diff --git a/src/auth0/management/errors/content_too_large_error.py b/src/auth0/management/errors/content_too_large_error.py deleted file mode 100644 index 28d4f481..00000000 --- a/src/auth0/management/errors/content_too_large_error.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ..core.api_error import ApiError - - -class ContentTooLargeError(ApiError): - def __init__(self, body: typing.Any, headers: typing.Optional[typing.Dict[str, str]] = None): - super().__init__(status_code=413, headers=headers, body=body) diff --git a/src/auth0/management/errors/forbidden_error.py b/src/auth0/management/errors/forbidden_error.py deleted file mode 100644 index 07d7e45b..00000000 --- a/src/auth0/management/errors/forbidden_error.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ..core.api_error import ApiError - - -class ForbiddenError(ApiError): - def __init__(self, body: typing.Any, headers: typing.Optional[typing.Dict[str, str]] = None): - super().__init__(status_code=403, headers=headers, body=body) diff --git a/src/auth0/management/errors/gateway_timeout_error.py b/src/auth0/management/errors/gateway_timeout_error.py deleted file mode 100644 index b4a41342..00000000 --- a/src/auth0/management/errors/gateway_timeout_error.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ..core.api_error import ApiError - - -class GatewayTimeoutError(ApiError): - def __init__(self, body: typing.Any, headers: typing.Optional[typing.Dict[str, str]] = None): - super().__init__(status_code=504, headers=headers, body=body) diff --git a/src/auth0/management/errors/gone_error.py b/src/auth0/management/errors/gone_error.py deleted file mode 100644 index 19f220ab..00000000 --- a/src/auth0/management/errors/gone_error.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ..core.api_error import ApiError - - -class GoneError(ApiError): - def __init__(self, body: typing.Any, headers: typing.Optional[typing.Dict[str, str]] = None): - super().__init__(status_code=410, headers=headers, body=body) diff --git a/src/auth0/management/errors/internal_server_error.py b/src/auth0/management/errors/internal_server_error.py deleted file mode 100644 index fabcc45c..00000000 --- a/src/auth0/management/errors/internal_server_error.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ..core.api_error import ApiError - - -class InternalServerError(ApiError): - def __init__(self, body: typing.Any, headers: typing.Optional[typing.Dict[str, str]] = None): - super().__init__(status_code=500, headers=headers, body=body) diff --git a/src/auth0/management/errors/not_found_error.py b/src/auth0/management/errors/not_found_error.py deleted file mode 100644 index 75f557df..00000000 --- a/src/auth0/management/errors/not_found_error.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ..core.api_error import ApiError - - -class NotFoundError(ApiError): - def __init__(self, body: typing.Any, headers: typing.Optional[typing.Dict[str, str]] = None): - super().__init__(status_code=404, headers=headers, body=body) diff --git a/src/auth0/management/errors/payment_required_error.py b/src/auth0/management/errors/payment_required_error.py deleted file mode 100644 index 3b7fb507..00000000 --- a/src/auth0/management/errors/payment_required_error.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ..core.api_error import ApiError - - -class PaymentRequiredError(ApiError): - def __init__(self, body: typing.Any, headers: typing.Optional[typing.Dict[str, str]] = None): - super().__init__(status_code=402, headers=headers, body=body) diff --git a/src/auth0/management/errors/precondition_failed_error.py b/src/auth0/management/errors/precondition_failed_error.py deleted file mode 100644 index 1a576b21..00000000 --- a/src/auth0/management/errors/precondition_failed_error.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ..core.api_error import ApiError - - -class PreconditionFailedError(ApiError): - def __init__(self, body: typing.Any, headers: typing.Optional[typing.Dict[str, str]] = None): - super().__init__(status_code=412, headers=headers, body=body) diff --git a/src/auth0/management/errors/service_unavailable_error.py b/src/auth0/management/errors/service_unavailable_error.py deleted file mode 100644 index 950c4740..00000000 --- a/src/auth0/management/errors/service_unavailable_error.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ..core.api_error import ApiError - - -class ServiceUnavailableError(ApiError): - def __init__(self, body: typing.Any, headers: typing.Optional[typing.Dict[str, str]] = None): - super().__init__(status_code=503, headers=headers, body=body) diff --git a/src/auth0/management/errors/too_many_requests_error.py b/src/auth0/management/errors/too_many_requests_error.py deleted file mode 100644 index 705d6f1b..00000000 --- a/src/auth0/management/errors/too_many_requests_error.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ..core.api_error import ApiError - - -class TooManyRequestsError(ApiError): - def __init__(self, body: typing.Any, headers: typing.Optional[typing.Dict[str, str]] = None): - super().__init__(status_code=429, headers=headers, body=body) diff --git a/src/auth0/management/errors/unauthorized_error.py b/src/auth0/management/errors/unauthorized_error.py deleted file mode 100644 index 7e48bb6f..00000000 --- a/src/auth0/management/errors/unauthorized_error.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ..core.api_error import ApiError - - -class UnauthorizedError(ApiError): - def __init__(self, body: typing.Any, headers: typing.Optional[typing.Dict[str, str]] = None): - super().__init__(status_code=401, headers=headers, body=body) diff --git a/src/auth0/management/errors/unprocessable_entity_error.py b/src/auth0/management/errors/unprocessable_entity_error.py deleted file mode 100644 index 1c801a4b..00000000 --- a/src/auth0/management/errors/unprocessable_entity_error.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ..core.api_error import ApiError - - -class UnprocessableEntityError(ApiError): - def __init__(self, body: typing.Any, headers: typing.Optional[typing.Dict[str, str]] = None): - super().__init__(status_code=422, headers=headers, body=body) diff --git a/src/auth0/management/event_streams/__init__.py b/src/auth0/management/event_streams/__init__.py deleted file mode 100644 index 8a4db96e..00000000 --- a/src/auth0/management/event_streams/__init__.py +++ /dev/null @@ -1,39 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import EventStreamsCreateRequest - from . import deliveries, redeliveries -_dynamic_imports: typing.Dict[str, str] = { - "EventStreamsCreateRequest": ".types", - "deliveries": ".deliveries", - "redeliveries": ".redeliveries", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - if module_name == f".{attr_name}": - return module - else: - return getattr(module, attr_name) - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["EventStreamsCreateRequest", "deliveries", "redeliveries"] diff --git a/src/auth0/management/event_streams/client.py b/src/auth0/management/event_streams/client.py deleted file mode 100644 index f146337b..00000000 --- a/src/auth0/management/event_streams/client.py +++ /dev/null @@ -1,635 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.pagination import AsyncPager, SyncPager -from ..core.request_options import RequestOptions -from ..types.create_event_stream_response_content import CreateEventStreamResponseContent -from ..types.create_event_stream_test_event_response_content import CreateEventStreamTestEventResponseContent -from ..types.event_stream_destination_patch import EventStreamDestinationPatch -from ..types.event_stream_response_content import EventStreamResponseContent -from ..types.event_stream_status_enum import EventStreamStatusEnum -from ..types.event_stream_subscription import EventStreamSubscription -from ..types.event_stream_test_event_type_enum import EventStreamTestEventTypeEnum -from ..types.get_event_stream_response_content import GetEventStreamResponseContent -from ..types.list_event_streams_response_content import ListEventStreamsResponseContent -from ..types.test_event_data_content import TestEventDataContent -from ..types.update_event_stream_response_content import UpdateEventStreamResponseContent -from .raw_client import AsyncRawEventStreamsClient, RawEventStreamsClient -from .types.event_streams_create_request import EventStreamsCreateRequest - -if typing.TYPE_CHECKING: - from .deliveries.client import AsyncDeliveriesClient, DeliveriesClient - from .redeliveries.client import AsyncRedeliveriesClient, RedeliveriesClient -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class EventStreamsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawEventStreamsClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._deliveries: typing.Optional[DeliveriesClient] = None - self._redeliveries: typing.Optional[RedeliveriesClient] = None - - @property - def with_raw_response(self) -> RawEventStreamsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawEventStreamsClient - """ - return self._raw_client - - def list( - self, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[EventStreamResponseContent, ListEventStreamsResponseContent]: - """ - Parameters - ---------- - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[EventStreamResponseContent, ListEventStreamsResponseContent] - Event streams successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.event_streams.list( - from_="from", - take=1, - ) - for item in response: - yield item - # alternatively, you can paginate page-by-page - for page in response.iter_pages(): - yield page - """ - return self._raw_client.list(from_=from_, take=take, request_options=request_options) - - def create( - self, *, request: EventStreamsCreateRequest, request_options: typing.Optional[RequestOptions] = None - ) -> CreateEventStreamResponseContent: - """ - Parameters - ---------- - request : EventStreamsCreateRequest - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateEventStreamResponseContent - Event Stream stream created successfully. - - Examples - -------- - from auth0 import ( - Auth0, - CreateEventStreamWebHookRequestContent, - EventStreamWebhookBasicAuth, - EventStreamWebhookConfiguration, - EventStreamWebhookDestination, - ) - - client = Auth0( - token="YOUR_TOKEN", - ) - client.event_streams.create( - request=CreateEventStreamWebHookRequestContent( - destination=EventStreamWebhookDestination( - type="webhook", - configuration=EventStreamWebhookConfiguration( - webhook_endpoint="webhook_endpoint", - webhook_authorization=EventStreamWebhookBasicAuth( - method="basic", - username="username", - ), - ), - ), - ), - ) - """ - _response = self._raw_client.create(request=request, request_options=request_options) - return _response.data - - def get(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> GetEventStreamResponseContent: - """ - Parameters - ---------- - id : str - Unique identifier for the event stream. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetEventStreamResponseContent - Event stream successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.event_streams.get( - id="id", - ) - """ - _response = self._raw_client.get(id, request_options=request_options) - return _response.data - - def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Parameters - ---------- - id : str - Unique identifier for the event stream. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.event_streams.delete( - id="id", - ) - """ - _response = self._raw_client.delete(id, request_options=request_options) - return _response.data - - def update( - self, - id: str, - *, - name: typing.Optional[str] = OMIT, - subscriptions: typing.Optional[typing.Sequence[EventStreamSubscription]] = OMIT, - destination: typing.Optional[EventStreamDestinationPatch] = OMIT, - status: typing.Optional[EventStreamStatusEnum] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateEventStreamResponseContent: - """ - Parameters - ---------- - id : str - Unique identifier for the event stream. - - name : typing.Optional[str] - Name of the event stream. - - subscriptions : typing.Optional[typing.Sequence[EventStreamSubscription]] - List of event types subscribed to in this stream. - - destination : typing.Optional[EventStreamDestinationPatch] - - status : typing.Optional[EventStreamStatusEnum] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateEventStreamResponseContent - Event stream successfully updated. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.event_streams.update( - id="id", - ) - """ - _response = self._raw_client.update( - id, - name=name, - subscriptions=subscriptions, - destination=destination, - status=status, - request_options=request_options, - ) - return _response.data - - def test( - self, - id: str, - *, - event_type: EventStreamTestEventTypeEnum, - data: typing.Optional[TestEventDataContent] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateEventStreamTestEventResponseContent: - """ - Parameters - ---------- - id : str - Unique identifier for the event stream. - - event_type : EventStreamTestEventTypeEnum - - data : typing.Optional[TestEventDataContent] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateEventStreamTestEventResponseContent - Test event successfully submitted. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.event_streams.test( - id="id", - event_type="connection.created", - ) - """ - _response = self._raw_client.test(id, event_type=event_type, data=data, request_options=request_options) - return _response.data - - @property - def deliveries(self): - if self._deliveries is None: - from .deliveries.client import DeliveriesClient # noqa: E402 - - self._deliveries = DeliveriesClient(client_wrapper=self._client_wrapper) - return self._deliveries - - @property - def redeliveries(self): - if self._redeliveries is None: - from .redeliveries.client import RedeliveriesClient # noqa: E402 - - self._redeliveries = RedeliveriesClient(client_wrapper=self._client_wrapper) - return self._redeliveries - - -class AsyncEventStreamsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawEventStreamsClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._deliveries: typing.Optional[AsyncDeliveriesClient] = None - self._redeliveries: typing.Optional[AsyncRedeliveriesClient] = None - - @property - def with_raw_response(self) -> AsyncRawEventStreamsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawEventStreamsClient - """ - return self._raw_client - - async def list( - self, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[EventStreamResponseContent, ListEventStreamsResponseContent]: - """ - Parameters - ---------- - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[EventStreamResponseContent, ListEventStreamsResponseContent] - Event streams successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.event_streams.list( - from_="from", - take=1, - ) - async for item in response: - yield item - - # alternatively, you can paginate page-by-page - async for page in response.iter_pages(): - yield page - - - asyncio.run(main()) - """ - return await self._raw_client.list(from_=from_, take=take, request_options=request_options) - - async def create( - self, *, request: EventStreamsCreateRequest, request_options: typing.Optional[RequestOptions] = None - ) -> CreateEventStreamResponseContent: - """ - Parameters - ---------- - request : EventStreamsCreateRequest - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateEventStreamResponseContent - Event Stream stream created successfully. - - Examples - -------- - import asyncio - - from auth0 import ( - AsyncAuth0, - CreateEventStreamWebHookRequestContent, - EventStreamWebhookBasicAuth, - EventStreamWebhookConfiguration, - EventStreamWebhookDestination, - ) - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.event_streams.create( - request=CreateEventStreamWebHookRequestContent( - destination=EventStreamWebhookDestination( - type="webhook", - configuration=EventStreamWebhookConfiguration( - webhook_endpoint="webhook_endpoint", - webhook_authorization=EventStreamWebhookBasicAuth( - method="basic", - username="username", - ), - ), - ), - ), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create(request=request, request_options=request_options) - return _response.data - - async def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetEventStreamResponseContent: - """ - Parameters - ---------- - id : str - Unique identifier for the event stream. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetEventStreamResponseContent - Event stream successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.event_streams.get( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.get(id, request_options=request_options) - return _response.data - - async def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Parameters - ---------- - id : str - Unique identifier for the event stream. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.event_streams.delete( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete(id, request_options=request_options) - return _response.data - - async def update( - self, - id: str, - *, - name: typing.Optional[str] = OMIT, - subscriptions: typing.Optional[typing.Sequence[EventStreamSubscription]] = OMIT, - destination: typing.Optional[EventStreamDestinationPatch] = OMIT, - status: typing.Optional[EventStreamStatusEnum] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateEventStreamResponseContent: - """ - Parameters - ---------- - id : str - Unique identifier for the event stream. - - name : typing.Optional[str] - Name of the event stream. - - subscriptions : typing.Optional[typing.Sequence[EventStreamSubscription]] - List of event types subscribed to in this stream. - - destination : typing.Optional[EventStreamDestinationPatch] - - status : typing.Optional[EventStreamStatusEnum] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateEventStreamResponseContent - Event stream successfully updated. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.event_streams.update( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.update( - id, - name=name, - subscriptions=subscriptions, - destination=destination, - status=status, - request_options=request_options, - ) - return _response.data - - async def test( - self, - id: str, - *, - event_type: EventStreamTestEventTypeEnum, - data: typing.Optional[TestEventDataContent] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateEventStreamTestEventResponseContent: - """ - Parameters - ---------- - id : str - Unique identifier for the event stream. - - event_type : EventStreamTestEventTypeEnum - - data : typing.Optional[TestEventDataContent] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateEventStreamTestEventResponseContent - Test event successfully submitted. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.event_streams.test( - id="id", - event_type="connection.created", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.test(id, event_type=event_type, data=data, request_options=request_options) - return _response.data - - @property - def deliveries(self): - if self._deliveries is None: - from .deliveries.client import AsyncDeliveriesClient # noqa: E402 - - self._deliveries = AsyncDeliveriesClient(client_wrapper=self._client_wrapper) - return self._deliveries - - @property - def redeliveries(self): - if self._redeliveries is None: - from .redeliveries.client import AsyncRedeliveriesClient # noqa: E402 - - self._redeliveries = AsyncRedeliveriesClient(client_wrapper=self._client_wrapper) - return self._redeliveries diff --git a/src/auth0/management/event_streams/deliveries/__init__.py b/src/auth0/management/event_streams/deliveries/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/event_streams/deliveries/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/event_streams/deliveries/client.py b/src/auth0/management/event_streams/deliveries/client.py deleted file mode 100644 index 72699bc6..00000000 --- a/src/auth0/management/event_streams/deliveries/client.py +++ /dev/null @@ -1,284 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.pagination import AsyncPager, SyncPager -from ...core.request_options import RequestOptions -from ...types.event_stream_delivery import EventStreamDelivery -from ...types.get_event_stream_delivery_history_response_content import GetEventStreamDeliveryHistoryResponseContent -from ...types.list_event_stream_deliveries_response_content import ListEventStreamDeliveriesResponseContent -from .raw_client import AsyncRawDeliveriesClient, RawDeliveriesClient - - -class DeliveriesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawDeliveriesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawDeliveriesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawDeliveriesClient - """ - return self._raw_client - - def list( - self, - id: str, - *, - statuses: typing.Optional[str] = None, - event_types: typing.Optional[str] = None, - date_from: typing.Optional[str] = None, - date_to: typing.Optional[str] = None, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[EventStreamDelivery, ListEventStreamDeliveriesResponseContent]: - """ - Parameters - ---------- - id : str - Unique identifier for the event stream. - - statuses : typing.Optional[str] - Comma-separated list of statuses by which to filter - - event_types : typing.Optional[str] - Comma-separated list of event types by which to filter - - date_from : typing.Optional[str] - An RFC-3339 date-time for redelivery start, inclusive. Does not allow sub-second precision. - - date_to : typing.Optional[str] - An RFC-3339 date-time for redelivery end, exclusive. Does not allow sub-second precision. - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[EventStreamDelivery, ListEventStreamDeliveriesResponseContent] - Event stream deliveries successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.event_streams.deliveries.list( - id="id", - statuses="statuses", - event_types="event_types", - date_from="date_from", - date_to="date_to", - from_="from", - take=1, - ) - for item in response: - yield item - # alternatively, you can paginate page-by-page - for page in response.iter_pages(): - yield page - """ - return self._raw_client.list( - id, - statuses=statuses, - event_types=event_types, - date_from=date_from, - date_to=date_to, - from_=from_, - take=take, - request_options=request_options, - ) - - def get_history( - self, id: str, event_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetEventStreamDeliveryHistoryResponseContent: - """ - Parameters - ---------- - id : str - Unique identifier for the event stream. - - event_id : str - Unique identifier for the event - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetEventStreamDeliveryHistoryResponseContent - Delivery history for event successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.event_streams.deliveries.get_history( - id="id", - event_id="event_id", - ) - """ - _response = self._raw_client.get_history(id, event_id, request_options=request_options) - return _response.data - - -class AsyncDeliveriesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawDeliveriesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawDeliveriesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawDeliveriesClient - """ - return self._raw_client - - async def list( - self, - id: str, - *, - statuses: typing.Optional[str] = None, - event_types: typing.Optional[str] = None, - date_from: typing.Optional[str] = None, - date_to: typing.Optional[str] = None, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[EventStreamDelivery, ListEventStreamDeliveriesResponseContent]: - """ - Parameters - ---------- - id : str - Unique identifier for the event stream. - - statuses : typing.Optional[str] - Comma-separated list of statuses by which to filter - - event_types : typing.Optional[str] - Comma-separated list of event types by which to filter - - date_from : typing.Optional[str] - An RFC-3339 date-time for redelivery start, inclusive. Does not allow sub-second precision. - - date_to : typing.Optional[str] - An RFC-3339 date-time for redelivery end, exclusive. Does not allow sub-second precision. - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[EventStreamDelivery, ListEventStreamDeliveriesResponseContent] - Event stream deliveries successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.event_streams.deliveries.list( - id="id", - statuses="statuses", - event_types="event_types", - date_from="date_from", - date_to="date_to", - from_="from", - take=1, - ) - async for item in response: - yield item - - # alternatively, you can paginate page-by-page - async for page in response.iter_pages(): - yield page - - - asyncio.run(main()) - """ - return await self._raw_client.list( - id, - statuses=statuses, - event_types=event_types, - date_from=date_from, - date_to=date_to, - from_=from_, - take=take, - request_options=request_options, - ) - - async def get_history( - self, id: str, event_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetEventStreamDeliveryHistoryResponseContent: - """ - Parameters - ---------- - id : str - Unique identifier for the event stream. - - event_id : str - Unique identifier for the event - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetEventStreamDeliveryHistoryResponseContent - Delivery history for event successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.event_streams.deliveries.get_history( - id="id", - event_id="event_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.get_history(id, event_id, request_options=request_options) - return _response.data diff --git a/src/auth0/management/event_streams/deliveries/raw_client.py b/src/auth0/management/event_streams/deliveries/raw_client.py deleted file mode 100644 index 8eb2642f..00000000 --- a/src/auth0/management/event_streams/deliveries/raw_client.py +++ /dev/null @@ -1,499 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ...core.api_error import ApiError -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.http_response import AsyncHttpResponse, HttpResponse -from ...core.jsonable_encoder import quote_path_param -from ...core.pagination import AsyncPager, SyncPager -from ...core.parse_error import ParsingError -from ...core.pydantic_utilities import parse_obj_as -from ...core.request_options import RequestOptions -from ...errors.bad_request_error import BadRequestError -from ...errors.forbidden_error import ForbiddenError -from ...errors.not_found_error import NotFoundError -from ...errors.too_many_requests_error import TooManyRequestsError -from ...errors.unauthorized_error import UnauthorizedError -from ...types.event_stream_delivery import EventStreamDelivery -from ...types.get_event_stream_delivery_history_response_content import GetEventStreamDeliveryHistoryResponseContent -from ...types.list_event_stream_deliveries_response_content import ListEventStreamDeliveriesResponseContent -from pydantic import ValidationError - - -class RawDeliveriesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - id: str, - *, - statuses: typing.Optional[str] = None, - event_types: typing.Optional[str] = None, - date_from: typing.Optional[str] = None, - date_to: typing.Optional[str] = None, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[EventStreamDelivery, ListEventStreamDeliveriesResponseContent]: - """ - Parameters - ---------- - id : str - Unique identifier for the event stream. - - statuses : typing.Optional[str] - Comma-separated list of statuses by which to filter - - event_types : typing.Optional[str] - Comma-separated list of event types by which to filter - - date_from : typing.Optional[str] - An RFC-3339 date-time for redelivery start, inclusive. Does not allow sub-second precision. - - date_to : typing.Optional[str] - An RFC-3339 date-time for redelivery end, exclusive. Does not allow sub-second precision. - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[EventStreamDelivery, ListEventStreamDeliveriesResponseContent] - Event stream deliveries successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - f"event-streams/{quote_path_param(id)}/deliveries", - method="GET", - params={ - "statuses": statuses, - "event_types": event_types, - "date_from": date_from, - "date_to": date_to, - "from": from_, - "take": take, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListEventStreamDeliveriesResponseContent, - parse_obj_as( - type_=ListEventStreamDeliveriesResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.deliveries - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - _get_next = lambda: self.list( - id, - statuses=statuses, - event_types=event_types, - date_from=date_from, - date_to=date_to, - from_=_parsed_next, - take=take, - request_options=request_options, - ) - return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def get_history( - self, id: str, event_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetEventStreamDeliveryHistoryResponseContent]: - """ - Parameters - ---------- - id : str - Unique identifier for the event stream. - - event_id : str - Unique identifier for the event - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetEventStreamDeliveryHistoryResponseContent] - Delivery history for event successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - f"event-streams/{quote_path_param(id)}/deliveries/{quote_path_param(event_id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetEventStreamDeliveryHistoryResponseContent, - parse_obj_as( - type_=GetEventStreamDeliveryHistoryResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawDeliveriesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - id: str, - *, - statuses: typing.Optional[str] = None, - event_types: typing.Optional[str] = None, - date_from: typing.Optional[str] = None, - date_to: typing.Optional[str] = None, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[EventStreamDelivery, ListEventStreamDeliveriesResponseContent]: - """ - Parameters - ---------- - id : str - Unique identifier for the event stream. - - statuses : typing.Optional[str] - Comma-separated list of statuses by which to filter - - event_types : typing.Optional[str] - Comma-separated list of event types by which to filter - - date_from : typing.Optional[str] - An RFC-3339 date-time for redelivery start, inclusive. Does not allow sub-second precision. - - date_to : typing.Optional[str] - An RFC-3339 date-time for redelivery end, exclusive. Does not allow sub-second precision. - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[EventStreamDelivery, ListEventStreamDeliveriesResponseContent] - Event stream deliveries successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - f"event-streams/{quote_path_param(id)}/deliveries", - method="GET", - params={ - "statuses": statuses, - "event_types": event_types, - "date_from": date_from, - "date_to": date_to, - "from": from_, - "take": take, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListEventStreamDeliveriesResponseContent, - parse_obj_as( - type_=ListEventStreamDeliveriesResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.deliveries - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - - async def _get_next(): - return await self.list( - id, - statuses=statuses, - event_types=event_types, - date_from=date_from, - date_to=date_to, - from_=_parsed_next, - take=take, - request_options=request_options, - ) - - return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def get_history( - self, id: str, event_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetEventStreamDeliveryHistoryResponseContent]: - """ - Parameters - ---------- - id : str - Unique identifier for the event stream. - - event_id : str - Unique identifier for the event - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetEventStreamDeliveryHistoryResponseContent] - Delivery history for event successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - f"event-streams/{quote_path_param(id)}/deliveries/{quote_path_param(event_id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetEventStreamDeliveryHistoryResponseContent, - parse_obj_as( - type_=GetEventStreamDeliveryHistoryResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/event_streams/raw_client.py b/src/auth0/management/event_streams/raw_client.py deleted file mode 100644 index 85f8c441..00000000 --- a/src/auth0/management/event_streams/raw_client.py +++ /dev/null @@ -1,1191 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ..core.api_error import ApiError -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.http_response import AsyncHttpResponse, HttpResponse -from ..core.jsonable_encoder import quote_path_param -from ..core.pagination import AsyncPager, SyncPager -from ..core.parse_error import ParsingError -from ..core.pydantic_utilities import parse_obj_as -from ..core.request_options import RequestOptions -from ..core.serialization import convert_and_respect_annotation_metadata -from ..errors.bad_request_error import BadRequestError -from ..errors.conflict_error import ConflictError -from ..errors.forbidden_error import ForbiddenError -from ..errors.not_found_error import NotFoundError -from ..errors.too_many_requests_error import TooManyRequestsError -from ..errors.unauthorized_error import UnauthorizedError -from ..types.create_event_stream_response_content import CreateEventStreamResponseContent -from ..types.create_event_stream_test_event_response_content import CreateEventStreamTestEventResponseContent -from ..types.event_stream_destination_patch import EventStreamDestinationPatch -from ..types.event_stream_response_content import EventStreamResponseContent -from ..types.event_stream_status_enum import EventStreamStatusEnum -from ..types.event_stream_subscription import EventStreamSubscription -from ..types.event_stream_test_event_type_enum import EventStreamTestEventTypeEnum -from ..types.get_event_stream_response_content import GetEventStreamResponseContent -from ..types.list_event_streams_response_content import ListEventStreamsResponseContent -from ..types.test_event_data_content import TestEventDataContent -from ..types.update_event_stream_response_content import UpdateEventStreamResponseContent -from .types.event_streams_create_request import EventStreamsCreateRequest -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawEventStreamsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[EventStreamResponseContent, ListEventStreamsResponseContent]: - """ - Parameters - ---------- - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[EventStreamResponseContent, ListEventStreamsResponseContent] - Event streams successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - "event-streams", - method="GET", - params={ - "from": from_, - "take": take, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListEventStreamsResponseContent, - parse_obj_as( - type_=ListEventStreamsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.event_streams - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - _get_next = lambda: self.list( - from_=_parsed_next, - take=take, - request_options=request_options, - ) - return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, *, request: EventStreamsCreateRequest, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[CreateEventStreamResponseContent]: - """ - Parameters - ---------- - request : EventStreamsCreateRequest - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CreateEventStreamResponseContent] - Event Stream stream created successfully. - """ - _response = self._client_wrapper.httpx_client.request( - "event-streams", - method="POST", - json=convert_and_respect_annotation_metadata( - object_=request, annotation=EventStreamsCreateRequest, direction="write" - ), - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateEventStreamResponseContent, - parse_obj_as( - type_=CreateEventStreamResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetEventStreamResponseContent]: - """ - Parameters - ---------- - id : str - Unique identifier for the event stream. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetEventStreamResponseContent] - Event stream successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - f"event-streams/{quote_path_param(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetEventStreamResponseContent, - parse_obj_as( - type_=GetEventStreamResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[None]: - """ - Parameters - ---------- - id : str - Unique identifier for the event stream. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"event-streams/{quote_path_param(id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def update( - self, - id: str, - *, - name: typing.Optional[str] = OMIT, - subscriptions: typing.Optional[typing.Sequence[EventStreamSubscription]] = OMIT, - destination: typing.Optional[EventStreamDestinationPatch] = OMIT, - status: typing.Optional[EventStreamStatusEnum] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[UpdateEventStreamResponseContent]: - """ - Parameters - ---------- - id : str - Unique identifier for the event stream. - - name : typing.Optional[str] - Name of the event stream. - - subscriptions : typing.Optional[typing.Sequence[EventStreamSubscription]] - List of event types subscribed to in this stream. - - destination : typing.Optional[EventStreamDestinationPatch] - - status : typing.Optional[EventStreamStatusEnum] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[UpdateEventStreamResponseContent] - Event stream successfully updated. - """ - _response = self._client_wrapper.httpx_client.request( - f"event-streams/{quote_path_param(id)}", - method="PATCH", - json={ - "name": name, - "subscriptions": convert_and_respect_annotation_metadata( - object_=subscriptions, annotation=typing.Sequence[EventStreamSubscription], direction="write" - ), - "destination": convert_and_respect_annotation_metadata( - object_=destination, annotation=EventStreamDestinationPatch, direction="write" - ), - "status": status, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateEventStreamResponseContent, - parse_obj_as( - type_=UpdateEventStreamResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def test( - self, - id: str, - *, - event_type: EventStreamTestEventTypeEnum, - data: typing.Optional[TestEventDataContent] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[CreateEventStreamTestEventResponseContent]: - """ - Parameters - ---------- - id : str - Unique identifier for the event stream. - - event_type : EventStreamTestEventTypeEnum - - data : typing.Optional[TestEventDataContent] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CreateEventStreamTestEventResponseContent] - Test event successfully submitted. - """ - _response = self._client_wrapper.httpx_client.request( - f"event-streams/{quote_path_param(id)}/test", - method="POST", - json={ - "event_type": event_type, - "data": data, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateEventStreamTestEventResponseContent, - parse_obj_as( - type_=CreateEventStreamTestEventResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawEventStreamsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[EventStreamResponseContent, ListEventStreamsResponseContent]: - """ - Parameters - ---------- - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[EventStreamResponseContent, ListEventStreamsResponseContent] - Event streams successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - "event-streams", - method="GET", - params={ - "from": from_, - "take": take, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListEventStreamsResponseContent, - parse_obj_as( - type_=ListEventStreamsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.event_streams - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - - async def _get_next(): - return await self.list( - from_=_parsed_next, - take=take, - request_options=request_options, - ) - - return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, *, request: EventStreamsCreateRequest, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[CreateEventStreamResponseContent]: - """ - Parameters - ---------- - request : EventStreamsCreateRequest - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CreateEventStreamResponseContent] - Event Stream stream created successfully. - """ - _response = await self._client_wrapper.httpx_client.request( - "event-streams", - method="POST", - json=convert_and_respect_annotation_metadata( - object_=request, annotation=EventStreamsCreateRequest, direction="write" - ), - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateEventStreamResponseContent, - parse_obj_as( - type_=CreateEventStreamResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetEventStreamResponseContent]: - """ - Parameters - ---------- - id : str - Unique identifier for the event stream. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetEventStreamResponseContent] - Event stream successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - f"event-streams/{quote_path_param(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetEventStreamResponseContent, - parse_obj_as( - type_=GetEventStreamResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def delete( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Parameters - ---------- - id : str - Unique identifier for the event stream. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"event-streams/{quote_path_param(id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def update( - self, - id: str, - *, - name: typing.Optional[str] = OMIT, - subscriptions: typing.Optional[typing.Sequence[EventStreamSubscription]] = OMIT, - destination: typing.Optional[EventStreamDestinationPatch] = OMIT, - status: typing.Optional[EventStreamStatusEnum] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[UpdateEventStreamResponseContent]: - """ - Parameters - ---------- - id : str - Unique identifier for the event stream. - - name : typing.Optional[str] - Name of the event stream. - - subscriptions : typing.Optional[typing.Sequence[EventStreamSubscription]] - List of event types subscribed to in this stream. - - destination : typing.Optional[EventStreamDestinationPatch] - - status : typing.Optional[EventStreamStatusEnum] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[UpdateEventStreamResponseContent] - Event stream successfully updated. - """ - _response = await self._client_wrapper.httpx_client.request( - f"event-streams/{quote_path_param(id)}", - method="PATCH", - json={ - "name": name, - "subscriptions": convert_and_respect_annotation_metadata( - object_=subscriptions, annotation=typing.Sequence[EventStreamSubscription], direction="write" - ), - "destination": convert_and_respect_annotation_metadata( - object_=destination, annotation=EventStreamDestinationPatch, direction="write" - ), - "status": status, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateEventStreamResponseContent, - parse_obj_as( - type_=UpdateEventStreamResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def test( - self, - id: str, - *, - event_type: EventStreamTestEventTypeEnum, - data: typing.Optional[TestEventDataContent] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[CreateEventStreamTestEventResponseContent]: - """ - Parameters - ---------- - id : str - Unique identifier for the event stream. - - event_type : EventStreamTestEventTypeEnum - - data : typing.Optional[TestEventDataContent] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CreateEventStreamTestEventResponseContent] - Test event successfully submitted. - """ - _response = await self._client_wrapper.httpx_client.request( - f"event-streams/{quote_path_param(id)}/test", - method="POST", - json={ - "event_type": event_type, - "data": data, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateEventStreamTestEventResponseContent, - parse_obj_as( - type_=CreateEventStreamTestEventResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/event_streams/redeliveries/__init__.py b/src/auth0/management/event_streams/redeliveries/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/event_streams/redeliveries/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/event_streams/redeliveries/client.py b/src/auth0/management/event_streams/redeliveries/client.py deleted file mode 100644 index 0b8a4817..00000000 --- a/src/auth0/management/event_streams/redeliveries/client.py +++ /dev/null @@ -1,242 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.request_options import RequestOptions -from ...types.create_event_stream_redelivery_response_content import CreateEventStreamRedeliveryResponseContent -from ...types.event_stream_delivery_status_enum import EventStreamDeliveryStatusEnum -from ...types.event_stream_event_type_enum import EventStreamEventTypeEnum -from .raw_client import AsyncRawRedeliveriesClient, RawRedeliveriesClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RedeliveriesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawRedeliveriesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawRedeliveriesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawRedeliveriesClient - """ - return self._raw_client - - def create( - self, - id: str, - *, - date_from: typing.Optional[dt.datetime] = OMIT, - date_to: typing.Optional[dt.datetime] = OMIT, - statuses: typing.Optional[typing.Sequence[EventStreamDeliveryStatusEnum]] = OMIT, - event_types: typing.Optional[typing.Sequence[EventStreamEventTypeEnum]] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateEventStreamRedeliveryResponseContent: - """ - Parameters - ---------- - id : str - Unique identifier for the event stream. - - date_from : typing.Optional[dt.datetime] - An RFC-3339 date-time for redelivery start, inclusive. Does not allow sub-second precision. - - date_to : typing.Optional[dt.datetime] - An RFC-3339 date-time for redelivery end, exclusive. Does not allow sub-second precision. - - statuses : typing.Optional[typing.Sequence[EventStreamDeliveryStatusEnum]] - Filter by status - - event_types : typing.Optional[typing.Sequence[EventStreamEventTypeEnum]] - Filter by event type - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateEventStreamRedeliveryResponseContent - Redelivery request accepted. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.event_streams.redeliveries.create( - id="id", - ) - """ - _response = self._raw_client.create( - id, - date_from=date_from, - date_to=date_to, - statuses=statuses, - event_types=event_types, - request_options=request_options, - ) - return _response.data - - def create_by_id(self, id: str, event_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Parameters - ---------- - id : str - Unique identifier for the event stream. - - event_id : str - Unique identifier for the event - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.event_streams.redeliveries.create_by_id( - id="id", - event_id="event_id", - ) - """ - _response = self._raw_client.create_by_id(id, event_id, request_options=request_options) - return _response.data - - -class AsyncRedeliveriesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawRedeliveriesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawRedeliveriesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawRedeliveriesClient - """ - return self._raw_client - - async def create( - self, - id: str, - *, - date_from: typing.Optional[dt.datetime] = OMIT, - date_to: typing.Optional[dt.datetime] = OMIT, - statuses: typing.Optional[typing.Sequence[EventStreamDeliveryStatusEnum]] = OMIT, - event_types: typing.Optional[typing.Sequence[EventStreamEventTypeEnum]] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateEventStreamRedeliveryResponseContent: - """ - Parameters - ---------- - id : str - Unique identifier for the event stream. - - date_from : typing.Optional[dt.datetime] - An RFC-3339 date-time for redelivery start, inclusive. Does not allow sub-second precision. - - date_to : typing.Optional[dt.datetime] - An RFC-3339 date-time for redelivery end, exclusive. Does not allow sub-second precision. - - statuses : typing.Optional[typing.Sequence[EventStreamDeliveryStatusEnum]] - Filter by status - - event_types : typing.Optional[typing.Sequence[EventStreamEventTypeEnum]] - Filter by event type - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateEventStreamRedeliveryResponseContent - Redelivery request accepted. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.event_streams.redeliveries.create( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - id, - date_from=date_from, - date_to=date_to, - statuses=statuses, - event_types=event_types, - request_options=request_options, - ) - return _response.data - - async def create_by_id( - self, id: str, event_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> None: - """ - Parameters - ---------- - id : str - Unique identifier for the event stream. - - event_id : str - Unique identifier for the event - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.event_streams.redeliveries.create_by_id( - id="id", - event_id="event_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create_by_id(id, event_id, request_options=request_options) - return _response.data diff --git a/src/auth0/management/event_streams/redeliveries/raw_client.py b/src/auth0/management/event_streams/redeliveries/raw_client.py deleted file mode 100644 index 4083b1f7..00000000 --- a/src/auth0/management/event_streams/redeliveries/raw_client.py +++ /dev/null @@ -1,467 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from ...core.api_error import ApiError -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.http_response import AsyncHttpResponse, HttpResponse -from ...core.jsonable_encoder import quote_path_param -from ...core.parse_error import ParsingError -from ...core.pydantic_utilities import parse_obj_as -from ...core.request_options import RequestOptions -from ...errors.conflict_error import ConflictError -from ...errors.forbidden_error import ForbiddenError -from ...errors.not_found_error import NotFoundError -from ...errors.too_many_requests_error import TooManyRequestsError -from ...errors.unauthorized_error import UnauthorizedError -from ...types.create_event_stream_redelivery_response_content import CreateEventStreamRedeliveryResponseContent -from ...types.event_stream_delivery_status_enum import EventStreamDeliveryStatusEnum -from ...types.event_stream_event_type_enum import EventStreamEventTypeEnum -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawRedeliveriesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def create( - self, - id: str, - *, - date_from: typing.Optional[dt.datetime] = OMIT, - date_to: typing.Optional[dt.datetime] = OMIT, - statuses: typing.Optional[typing.Sequence[EventStreamDeliveryStatusEnum]] = OMIT, - event_types: typing.Optional[typing.Sequence[EventStreamEventTypeEnum]] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[CreateEventStreamRedeliveryResponseContent]: - """ - Parameters - ---------- - id : str - Unique identifier for the event stream. - - date_from : typing.Optional[dt.datetime] - An RFC-3339 date-time for redelivery start, inclusive. Does not allow sub-second precision. - - date_to : typing.Optional[dt.datetime] - An RFC-3339 date-time for redelivery end, exclusive. Does not allow sub-second precision. - - statuses : typing.Optional[typing.Sequence[EventStreamDeliveryStatusEnum]] - Filter by status - - event_types : typing.Optional[typing.Sequence[EventStreamEventTypeEnum]] - Filter by event type - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CreateEventStreamRedeliveryResponseContent] - Redelivery request accepted. - """ - _response = self._client_wrapper.httpx_client.request( - f"event-streams/{quote_path_param(id)}/redeliver", - method="POST", - json={ - "date_from": date_from, - "date_to": date_to, - "statuses": statuses, - "event_types": event_types, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateEventStreamRedeliveryResponseContent, - parse_obj_as( - type_=CreateEventStreamRedeliveryResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create_by_id( - self, id: str, event_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[None]: - """ - Parameters - ---------- - id : str - Unique identifier for the event stream. - - event_id : str - Unique identifier for the event - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"event-streams/{quote_path_param(id)}/redeliver/{quote_path_param(event_id)}", - method="POST", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawRedeliveriesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def create( - self, - id: str, - *, - date_from: typing.Optional[dt.datetime] = OMIT, - date_to: typing.Optional[dt.datetime] = OMIT, - statuses: typing.Optional[typing.Sequence[EventStreamDeliveryStatusEnum]] = OMIT, - event_types: typing.Optional[typing.Sequence[EventStreamEventTypeEnum]] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[CreateEventStreamRedeliveryResponseContent]: - """ - Parameters - ---------- - id : str - Unique identifier for the event stream. - - date_from : typing.Optional[dt.datetime] - An RFC-3339 date-time for redelivery start, inclusive. Does not allow sub-second precision. - - date_to : typing.Optional[dt.datetime] - An RFC-3339 date-time for redelivery end, exclusive. Does not allow sub-second precision. - - statuses : typing.Optional[typing.Sequence[EventStreamDeliveryStatusEnum]] - Filter by status - - event_types : typing.Optional[typing.Sequence[EventStreamEventTypeEnum]] - Filter by event type - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CreateEventStreamRedeliveryResponseContent] - Redelivery request accepted. - """ - _response = await self._client_wrapper.httpx_client.request( - f"event-streams/{quote_path_param(id)}/redeliver", - method="POST", - json={ - "date_from": date_from, - "date_to": date_to, - "statuses": statuses, - "event_types": event_types, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateEventStreamRedeliveryResponseContent, - parse_obj_as( - type_=CreateEventStreamRedeliveryResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create_by_id( - self, id: str, event_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Parameters - ---------- - id : str - Unique identifier for the event stream. - - event_id : str - Unique identifier for the event - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"event-streams/{quote_path_param(id)}/redeliver/{quote_path_param(event_id)}", - method="POST", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/event_streams/types/__init__.py b/src/auth0/management/event_streams/types/__init__.py deleted file mode 100644 index 5c38f468..00000000 --- a/src/auth0/management/event_streams/types/__init__.py +++ /dev/null @@ -1,34 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .event_streams_create_request import EventStreamsCreateRequest -_dynamic_imports: typing.Dict[str, str] = {"EventStreamsCreateRequest": ".event_streams_create_request"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - if module_name == f".{attr_name}": - return module - else: - return getattr(module, attr_name) - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["EventStreamsCreateRequest"] diff --git a/src/auth0/management/event_streams/types/event_streams_create_request.py b/src/auth0/management/event_streams/types/event_streams_create_request.py deleted file mode 100644 index a09fb712..00000000 --- a/src/auth0/management/event_streams/types/event_streams_create_request.py +++ /dev/null @@ -1,13 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ...types.create_event_stream_action_request_content import CreateEventStreamActionRequestContent -from ...types.create_event_stream_event_bridge_request_content import CreateEventStreamEventBridgeRequestContent -from ...types.create_event_stream_web_hook_request_content import CreateEventStreamWebHookRequestContent - -EventStreamsCreateRequest = typing.Union[ - CreateEventStreamWebHookRequestContent, - CreateEventStreamEventBridgeRequestContent, - CreateEventStreamActionRequestContent, -] diff --git a/src/auth0/management/events/__init__.py b/src/auth0/management/events/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/events/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/events/client.py b/src/auth0/management/events/client.py deleted file mode 100644 index 8e7f372f..00000000 --- a/src/auth0/management/events/client.py +++ /dev/null @@ -1,158 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.request_options import RequestOptions -from ..types.event_stream_subscribe_events_event_type_enum import EventStreamSubscribeEventsEventTypeEnum -from ..types.event_stream_subscribe_events_response_content import EventStreamSubscribeEventsResponseContent -from .raw_client import AsyncRawEventsClient, RawEventsClient - - -class EventsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawEventsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawEventsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawEventsClient - """ - return self._raw_client - - def subscribe( - self, - *, - from_: typing.Optional[str] = None, - from_timestamp: typing.Optional[str] = None, - event_type: typing.Optional[ - typing.Union[ - EventStreamSubscribeEventsEventTypeEnum, typing.Sequence[EventStreamSubscribeEventsEventTypeEnum] - ] - ] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> typing.Iterator[EventStreamSubscribeEventsResponseContent]: - """ - Subscribe to events via Server-Sent Events (SSE) - - Parameters - ---------- - from_ : typing.Optional[str] - Opaque token representing position in the stream. If not provided, stream will start from the latest events. - - from_timestamp : typing.Optional[str] - RFC-3339 timestamp indicating where to start streaming events from. This should only be used on the initial query when a cursor may not be available. Subsequent requests should use the cursor (from) as it will be more accurate. - - event_type : typing.Optional[typing.Union[EventStreamSubscribeEventsEventTypeEnum, typing.Sequence[EventStreamSubscribeEventsEventTypeEnum]]] - Event type(s) to listen for. Specify multiple times for multiple types (e.g., ?event_type=user.created&event_type=user.updated). If not provided, all event types will be streamed. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Yields - ------ - typing.Iterator[EventStreamSubscribeEventsResponseContent] - Event stream successfully established. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.events.subscribe( - from_="from", - from_timestamp="from_timestamp", - event_type=["connection.created"], - ) - for chunk in response: - yield chunk - """ - with self._raw_client.subscribe( - from_=from_, from_timestamp=from_timestamp, event_type=event_type, request_options=request_options - ) as r: - yield from r.data - - -class AsyncEventsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawEventsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawEventsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawEventsClient - """ - return self._raw_client - - async def subscribe( - self, - *, - from_: typing.Optional[str] = None, - from_timestamp: typing.Optional[str] = None, - event_type: typing.Optional[ - typing.Union[ - EventStreamSubscribeEventsEventTypeEnum, typing.Sequence[EventStreamSubscribeEventsEventTypeEnum] - ] - ] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> typing.AsyncIterator[EventStreamSubscribeEventsResponseContent]: - """ - Subscribe to events via Server-Sent Events (SSE) - - Parameters - ---------- - from_ : typing.Optional[str] - Opaque token representing position in the stream. If not provided, stream will start from the latest events. - - from_timestamp : typing.Optional[str] - RFC-3339 timestamp indicating where to start streaming events from. This should only be used on the initial query when a cursor may not be available. Subsequent requests should use the cursor (from) as it will be more accurate. - - event_type : typing.Optional[typing.Union[EventStreamSubscribeEventsEventTypeEnum, typing.Sequence[EventStreamSubscribeEventsEventTypeEnum]]] - Event type(s) to listen for. Specify multiple times for multiple types (e.g., ?event_type=user.created&event_type=user.updated). If not provided, all event types will be streamed. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Yields - ------ - typing.AsyncIterator[EventStreamSubscribeEventsResponseContent] - Event stream successfully established. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.events.subscribe( - from_="from", - from_timestamp="from_timestamp", - event_type=["connection.created"], - ) - async for chunk in response: - yield chunk - - - asyncio.run(main()) - """ - async with self._raw_client.subscribe( - from_=from_, from_timestamp=from_timestamp, event_type=event_type, request_options=request_options - ) as r: - async for _chunk in r.data: - yield _chunk diff --git a/src/auth0/management/events/raw_client.py b/src/auth0/management/events/raw_client.py deleted file mode 100644 index 097fe28d..00000000 --- a/src/auth0/management/events/raw_client.py +++ /dev/null @@ -1,973 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import contextlib -import json -import typing -from json.decoder import JSONDecodeError -from logging import warning - -from ..core.api_error import ApiError -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.http_response import AsyncHttpResponse, HttpResponse -from ..core.http_sse._api import EventSource -from ..core.parse_error import ParsingError -from ..core.pydantic_utilities import parse_obj_as -from ..core.request_options import RequestOptions -from ..errors.bad_request_error import BadRequestError -from ..errors.forbidden_error import ForbiddenError -from ..errors.gone_error import GoneError -from ..errors.not_found_error import NotFoundError -from ..errors.too_many_requests_error import TooManyRequestsError -from ..errors.unauthorized_error import UnauthorizedError -from ..types.event_stream_cloud_event_connection_created import EventStreamCloudEventConnectionCreated -from ..types.event_stream_cloud_event_connection_deleted import EventStreamCloudEventConnectionDeleted -from ..types.event_stream_cloud_event_connection_updated import EventStreamCloudEventConnectionUpdated -from ..types.event_stream_cloud_event_error_message import EventStreamCloudEventErrorMessage -from ..types.event_stream_cloud_event_group_created import EventStreamCloudEventGroupCreated -from ..types.event_stream_cloud_event_group_deleted import EventStreamCloudEventGroupDeleted -from ..types.event_stream_cloud_event_group_member_added import EventStreamCloudEventGroupMemberAdded -from ..types.event_stream_cloud_event_group_member_deleted import EventStreamCloudEventGroupMemberDeleted -from ..types.event_stream_cloud_event_group_role_assigned import EventStreamCloudEventGroupRoleAssigned -from ..types.event_stream_cloud_event_group_role_deleted import EventStreamCloudEventGroupRoleDeleted -from ..types.event_stream_cloud_event_group_updated import EventStreamCloudEventGroupUpdated -from ..types.event_stream_cloud_event_offset_only_message import EventStreamCloudEventOffsetOnlyMessage -from ..types.event_stream_cloud_event_org_connection_added import EventStreamCloudEventOrgConnectionAdded -from ..types.event_stream_cloud_event_org_connection_removed import EventStreamCloudEventOrgConnectionRemoved -from ..types.event_stream_cloud_event_org_connection_updated import EventStreamCloudEventOrgConnectionUpdated -from ..types.event_stream_cloud_event_org_created import EventStreamCloudEventOrgCreated -from ..types.event_stream_cloud_event_org_deleted import EventStreamCloudEventOrgDeleted -from ..types.event_stream_cloud_event_org_group_role_assigned import EventStreamCloudEventOrgGroupRoleAssigned -from ..types.event_stream_cloud_event_org_group_role_deleted import EventStreamCloudEventOrgGroupRoleDeleted -from ..types.event_stream_cloud_event_org_member_added import EventStreamCloudEventOrgMemberAdded -from ..types.event_stream_cloud_event_org_member_deleted import EventStreamCloudEventOrgMemberDeleted -from ..types.event_stream_cloud_event_org_member_role_assigned import EventStreamCloudEventOrgMemberRoleAssigned -from ..types.event_stream_cloud_event_org_member_role_deleted import EventStreamCloudEventOrgMemberRoleDeleted -from ..types.event_stream_cloud_event_org_updated import EventStreamCloudEventOrgUpdated -from ..types.event_stream_cloud_event_user_created import EventStreamCloudEventUserCreated -from ..types.event_stream_cloud_event_user_deleted import EventStreamCloudEventUserDeleted -from ..types.event_stream_cloud_event_user_updated import EventStreamCloudEventUserUpdated -from ..types.event_stream_subscribe_events_event_type_enum import EventStreamSubscribeEventsEventTypeEnum -from ..types.event_stream_subscribe_events_response_content import EventStreamSubscribeEventsResponseContent -from pydantic import ValidationError - - -class RawEventsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - @contextlib.contextmanager - def subscribe( - self, - *, - from_: typing.Optional[str] = None, - from_timestamp: typing.Optional[str] = None, - event_type: typing.Optional[ - typing.Union[ - EventStreamSubscribeEventsEventTypeEnum, typing.Sequence[EventStreamSubscribeEventsEventTypeEnum] - ] - ] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> typing.Iterator[HttpResponse[typing.Iterator[EventStreamSubscribeEventsResponseContent]]]: - """ - Subscribe to events via Server-Sent Events (SSE) - - Parameters - ---------- - from_ : typing.Optional[str] - Opaque token representing position in the stream. If not provided, stream will start from the latest events. - - from_timestamp : typing.Optional[str] - RFC-3339 timestamp indicating where to start streaming events from. This should only be used on the initial query when a cursor may not be available. Subsequent requests should use the cursor (from) as it will be more accurate. - - event_type : typing.Optional[typing.Union[EventStreamSubscribeEventsEventTypeEnum, typing.Sequence[EventStreamSubscribeEventsEventTypeEnum]]] - Event type(s) to listen for. Specify multiple times for multiple types (e.g., ?event_type=user.created&event_type=user.updated). If not provided, all event types will be streamed. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Yields - ------ - typing.Iterator[HttpResponse[typing.Iterator[EventStreamSubscribeEventsResponseContent]]] - Event stream successfully established. - """ - with self._client_wrapper.httpx_client.stream( - "events", - method="GET", - params={ - "from": from_, - "from_timestamp": from_timestamp, - "event_type": event_type, - }, - request_options=request_options, - ) as _response: - - def _stream() -> HttpResponse[typing.Iterator[EventStreamSubscribeEventsResponseContent]]: - try: - if 200 <= _response.status_code < 300: - - def _iter(): - _event_source = EventSource(_response) - for _sse in _event_source.iter_sse(): - if _sse.data == None: - return - if _sse.event == "connection.created": - try: - yield typing.cast( - EventStreamCloudEventConnectionCreated, - parse_obj_as( - type_=EventStreamCloudEventConnectionCreated, # type: ignore - object_=json.loads(_sse.data), - ), - ) - except Exception as e: - warning(f"Failed to parse SSE event 'connection.created': {e}, sse: {_sse!r}") - elif _sse.event == "connection.deleted": - try: - yield typing.cast( - EventStreamCloudEventConnectionDeleted, - parse_obj_as( - type_=EventStreamCloudEventConnectionDeleted, # type: ignore - object_=json.loads(_sse.data), - ), - ) - except Exception as e: - warning(f"Failed to parse SSE event 'connection.deleted': {e}, sse: {_sse!r}") - elif _sse.event == "connection.updated": - try: - yield typing.cast( - EventStreamCloudEventConnectionUpdated, - parse_obj_as( - type_=EventStreamCloudEventConnectionUpdated, # type: ignore - object_=json.loads(_sse.data), - ), - ) - except Exception as e: - warning(f"Failed to parse SSE event 'connection.updated': {e}, sse: {_sse!r}") - elif _sse.event == "group.created": - try: - yield typing.cast( - EventStreamCloudEventGroupCreated, - parse_obj_as( - type_=EventStreamCloudEventGroupCreated, # type: ignore - object_=json.loads(_sse.data), - ), - ) - except Exception as e: - warning(f"Failed to parse SSE event 'group.created': {e}, sse: {_sse!r}") - elif _sse.event == "group.deleted": - try: - yield typing.cast( - EventStreamCloudEventGroupDeleted, - parse_obj_as( - type_=EventStreamCloudEventGroupDeleted, # type: ignore - object_=json.loads(_sse.data), - ), - ) - except Exception as e: - warning(f"Failed to parse SSE event 'group.deleted': {e}, sse: {_sse!r}") - elif _sse.event == "group.member.added": - try: - yield typing.cast( - EventStreamCloudEventGroupMemberAdded, - parse_obj_as( - type_=EventStreamCloudEventGroupMemberAdded, # type: ignore - object_=json.loads(_sse.data), - ), - ) - except Exception as e: - warning(f"Failed to parse SSE event 'group.member.added': {e}, sse: {_sse!r}") - elif _sse.event == "group.member.deleted": - try: - yield typing.cast( - EventStreamCloudEventGroupMemberDeleted, - parse_obj_as( - type_=EventStreamCloudEventGroupMemberDeleted, # type: ignore - object_=json.loads(_sse.data), - ), - ) - except Exception as e: - warning(f"Failed to parse SSE event 'group.member.deleted': {e}, sse: {_sse!r}") - elif _sse.event == "group.role.assigned": - try: - yield typing.cast( - EventStreamCloudEventGroupRoleAssigned, - parse_obj_as( - type_=EventStreamCloudEventGroupRoleAssigned, # type: ignore - object_=json.loads(_sse.data), - ), - ) - except Exception as e: - warning(f"Failed to parse SSE event 'group.role.assigned': {e}, sse: {_sse!r}") - elif _sse.event == "group.role.deleted": - try: - yield typing.cast( - EventStreamCloudEventGroupRoleDeleted, - parse_obj_as( - type_=EventStreamCloudEventGroupRoleDeleted, # type: ignore - object_=json.loads(_sse.data), - ), - ) - except Exception as e: - warning(f"Failed to parse SSE event 'group.role.deleted': {e}, sse: {_sse!r}") - elif _sse.event == "group.updated": - try: - yield typing.cast( - EventStreamCloudEventGroupUpdated, - parse_obj_as( - type_=EventStreamCloudEventGroupUpdated, # type: ignore - object_=json.loads(_sse.data), - ), - ) - except Exception as e: - warning(f"Failed to parse SSE event 'group.updated': {e}, sse: {_sse!r}") - elif _sse.event == "organization.connection.added": - try: - yield typing.cast( - EventStreamCloudEventOrgConnectionAdded, - parse_obj_as( - type_=EventStreamCloudEventOrgConnectionAdded, # type: ignore - object_=json.loads(_sse.data), - ), - ) - except Exception as e: - warning( - f"Failed to parse SSE event 'organization.connection.added': {e}, sse: {_sse!r}" - ) - elif _sse.event == "organization.connection.removed": - try: - yield typing.cast( - EventStreamCloudEventOrgConnectionRemoved, - parse_obj_as( - type_=EventStreamCloudEventOrgConnectionRemoved, # type: ignore - object_=json.loads(_sse.data), - ), - ) - except Exception as e: - warning( - f"Failed to parse SSE event 'organization.connection.removed': {e}, sse: {_sse!r}" - ) - elif _sse.event == "organization.connection.updated": - try: - yield typing.cast( - EventStreamCloudEventOrgConnectionUpdated, - parse_obj_as( - type_=EventStreamCloudEventOrgConnectionUpdated, # type: ignore - object_=json.loads(_sse.data), - ), - ) - except Exception as e: - warning( - f"Failed to parse SSE event 'organization.connection.updated': {e}, sse: {_sse!r}" - ) - elif _sse.event == "organization.created": - try: - yield typing.cast( - EventStreamCloudEventOrgCreated, - parse_obj_as( - type_=EventStreamCloudEventOrgCreated, # type: ignore - object_=json.loads(_sse.data), - ), - ) - except Exception as e: - warning(f"Failed to parse SSE event 'organization.created': {e}, sse: {_sse!r}") - elif _sse.event == "organization.deleted": - try: - yield typing.cast( - EventStreamCloudEventOrgDeleted, - parse_obj_as( - type_=EventStreamCloudEventOrgDeleted, # type: ignore - object_=json.loads(_sse.data), - ), - ) - except Exception as e: - warning(f"Failed to parse SSE event 'organization.deleted': {e}, sse: {_sse!r}") - elif _sse.event == "organization.group.role.assigned": - try: - yield typing.cast( - EventStreamCloudEventOrgGroupRoleAssigned, - parse_obj_as( - type_=EventStreamCloudEventOrgGroupRoleAssigned, # type: ignore - object_=json.loads(_sse.data), - ), - ) - except Exception as e: - warning( - f"Failed to parse SSE event 'organization.group.role.assigned': {e}, sse: {_sse!r}" - ) - elif _sse.event == "organization.group.role.deleted": - try: - yield typing.cast( - EventStreamCloudEventOrgGroupRoleDeleted, - parse_obj_as( - type_=EventStreamCloudEventOrgGroupRoleDeleted, # type: ignore - object_=json.loads(_sse.data), - ), - ) - except Exception as e: - warning( - f"Failed to parse SSE event 'organization.group.role.deleted': {e}, sse: {_sse!r}" - ) - elif _sse.event == "organization.member.added": - try: - yield typing.cast( - EventStreamCloudEventOrgMemberAdded, - parse_obj_as( - type_=EventStreamCloudEventOrgMemberAdded, # type: ignore - object_=json.loads(_sse.data), - ), - ) - except Exception as e: - warning( - f"Failed to parse SSE event 'organization.member.added': {e}, sse: {_sse!r}" - ) - elif _sse.event == "organization.member.deleted": - try: - yield typing.cast( - EventStreamCloudEventOrgMemberDeleted, - parse_obj_as( - type_=EventStreamCloudEventOrgMemberDeleted, # type: ignore - object_=json.loads(_sse.data), - ), - ) - except Exception as e: - warning( - f"Failed to parse SSE event 'organization.member.deleted': {e}, sse: {_sse!r}" - ) - elif _sse.event == "organization.member.role.assigned": - try: - yield typing.cast( - EventStreamCloudEventOrgMemberRoleAssigned, - parse_obj_as( - type_=EventStreamCloudEventOrgMemberRoleAssigned, # type: ignore - object_=json.loads(_sse.data), - ), - ) - except Exception as e: - warning( - f"Failed to parse SSE event 'organization.member.role.assigned': {e}, sse: {_sse!r}" - ) - elif _sse.event == "organization.member.role.deleted": - try: - yield typing.cast( - EventStreamCloudEventOrgMemberRoleDeleted, - parse_obj_as( - type_=EventStreamCloudEventOrgMemberRoleDeleted, # type: ignore - object_=json.loads(_sse.data), - ), - ) - except Exception as e: - warning( - f"Failed to parse SSE event 'organization.member.role.deleted': {e}, sse: {_sse!r}" - ) - elif _sse.event == "organization.updated": - try: - yield typing.cast( - EventStreamCloudEventOrgUpdated, - parse_obj_as( - type_=EventStreamCloudEventOrgUpdated, # type: ignore - object_=json.loads(_sse.data), - ), - ) - except Exception as e: - warning(f"Failed to parse SSE event 'organization.updated': {e}, sse: {_sse!r}") - elif _sse.event == "user.created": - try: - yield typing.cast( - EventStreamCloudEventUserCreated, - parse_obj_as( - type_=EventStreamCloudEventUserCreated, # type: ignore - object_=json.loads(_sse.data), - ), - ) - except Exception as e: - warning(f"Failed to parse SSE event 'user.created': {e}, sse: {_sse!r}") - elif _sse.event == "user.deleted": - try: - yield typing.cast( - EventStreamCloudEventUserDeleted, - parse_obj_as( - type_=EventStreamCloudEventUserDeleted, # type: ignore - object_=json.loads(_sse.data), - ), - ) - except Exception as e: - warning(f"Failed to parse SSE event 'user.deleted': {e}, sse: {_sse!r}") - elif _sse.event == "user.updated": - try: - yield typing.cast( - EventStreamCloudEventUserUpdated, - parse_obj_as( - type_=EventStreamCloudEventUserUpdated, # type: ignore - object_=json.loads(_sse.data), - ), - ) - except Exception as e: - warning(f"Failed to parse SSE event 'user.updated': {e}, sse: {_sse!r}") - elif _sse.event == "error": - try: - yield typing.cast( - EventStreamCloudEventErrorMessage, - parse_obj_as( - type_=EventStreamCloudEventErrorMessage, # type: ignore - object_=json.loads(_sse.data), - ), - ) - except Exception as e: - warning(f"Failed to parse SSE event 'error': {e}, sse: {_sse!r}") - elif _sse.event == "offset-only": - try: - yield typing.cast( - EventStreamCloudEventOffsetOnlyMessage, - parse_obj_as( - type_=EventStreamCloudEventOffsetOnlyMessage, # type: ignore - object_=json.loads(_sse.data), - ), - ) - except Exception as e: - warning(f"Failed to parse SSE event 'offset-only': {e}, sse: {_sse!r}") - return - - return HttpResponse(response=_response, data=_iter()) - _response.read() - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 410: - raise GoneError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.text - ) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, - headers=dict(_response.headers), - body=_response.json(), - cause=e, - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - yield _stream() - - -class AsyncRawEventsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - @contextlib.asynccontextmanager - async def subscribe( - self, - *, - from_: typing.Optional[str] = None, - from_timestamp: typing.Optional[str] = None, - event_type: typing.Optional[ - typing.Union[ - EventStreamSubscribeEventsEventTypeEnum, typing.Sequence[EventStreamSubscribeEventsEventTypeEnum] - ] - ] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> typing.AsyncIterator[AsyncHttpResponse[typing.AsyncIterator[EventStreamSubscribeEventsResponseContent]]]: - """ - Subscribe to events via Server-Sent Events (SSE) - - Parameters - ---------- - from_ : typing.Optional[str] - Opaque token representing position in the stream. If not provided, stream will start from the latest events. - - from_timestamp : typing.Optional[str] - RFC-3339 timestamp indicating where to start streaming events from. This should only be used on the initial query when a cursor may not be available. Subsequent requests should use the cursor (from) as it will be more accurate. - - event_type : typing.Optional[typing.Union[EventStreamSubscribeEventsEventTypeEnum, typing.Sequence[EventStreamSubscribeEventsEventTypeEnum]]] - Event type(s) to listen for. Specify multiple times for multiple types (e.g., ?event_type=user.created&event_type=user.updated). If not provided, all event types will be streamed. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Yields - ------ - typing.AsyncIterator[AsyncHttpResponse[typing.AsyncIterator[EventStreamSubscribeEventsResponseContent]]] - Event stream successfully established. - """ - async with self._client_wrapper.httpx_client.stream( - "events", - method="GET", - params={ - "from": from_, - "from_timestamp": from_timestamp, - "event_type": event_type, - }, - request_options=request_options, - ) as _response: - - async def _stream() -> AsyncHttpResponse[typing.AsyncIterator[EventStreamSubscribeEventsResponseContent]]: - try: - if 200 <= _response.status_code < 300: - - async def _iter(): - _event_source = EventSource(_response) - async for _sse in _event_source.aiter_sse(): - if _sse.data == None: - return - if _sse.event == "connection.created": - try: - yield typing.cast( - EventStreamCloudEventConnectionCreated, - parse_obj_as( - type_=EventStreamCloudEventConnectionCreated, # type: ignore - object_=json.loads(_sse.data), - ), - ) - except Exception as e: - warning(f"Failed to parse SSE event 'connection.created': {e}, sse: {_sse!r}") - elif _sse.event == "connection.deleted": - try: - yield typing.cast( - EventStreamCloudEventConnectionDeleted, - parse_obj_as( - type_=EventStreamCloudEventConnectionDeleted, # type: ignore - object_=json.loads(_sse.data), - ), - ) - except Exception as e: - warning(f"Failed to parse SSE event 'connection.deleted': {e}, sse: {_sse!r}") - elif _sse.event == "connection.updated": - try: - yield typing.cast( - EventStreamCloudEventConnectionUpdated, - parse_obj_as( - type_=EventStreamCloudEventConnectionUpdated, # type: ignore - object_=json.loads(_sse.data), - ), - ) - except Exception as e: - warning(f"Failed to parse SSE event 'connection.updated': {e}, sse: {_sse!r}") - elif _sse.event == "group.created": - try: - yield typing.cast( - EventStreamCloudEventGroupCreated, - parse_obj_as( - type_=EventStreamCloudEventGroupCreated, # type: ignore - object_=json.loads(_sse.data), - ), - ) - except Exception as e: - warning(f"Failed to parse SSE event 'group.created': {e}, sse: {_sse!r}") - elif _sse.event == "group.deleted": - try: - yield typing.cast( - EventStreamCloudEventGroupDeleted, - parse_obj_as( - type_=EventStreamCloudEventGroupDeleted, # type: ignore - object_=json.loads(_sse.data), - ), - ) - except Exception as e: - warning(f"Failed to parse SSE event 'group.deleted': {e}, sse: {_sse!r}") - elif _sse.event == "group.member.added": - try: - yield typing.cast( - EventStreamCloudEventGroupMemberAdded, - parse_obj_as( - type_=EventStreamCloudEventGroupMemberAdded, # type: ignore - object_=json.loads(_sse.data), - ), - ) - except Exception as e: - warning(f"Failed to parse SSE event 'group.member.added': {e}, sse: {_sse!r}") - elif _sse.event == "group.member.deleted": - try: - yield typing.cast( - EventStreamCloudEventGroupMemberDeleted, - parse_obj_as( - type_=EventStreamCloudEventGroupMemberDeleted, # type: ignore - object_=json.loads(_sse.data), - ), - ) - except Exception as e: - warning(f"Failed to parse SSE event 'group.member.deleted': {e}, sse: {_sse!r}") - elif _sse.event == "group.role.assigned": - try: - yield typing.cast( - EventStreamCloudEventGroupRoleAssigned, - parse_obj_as( - type_=EventStreamCloudEventGroupRoleAssigned, # type: ignore - object_=json.loads(_sse.data), - ), - ) - except Exception as e: - warning(f"Failed to parse SSE event 'group.role.assigned': {e}, sse: {_sse!r}") - elif _sse.event == "group.role.deleted": - try: - yield typing.cast( - EventStreamCloudEventGroupRoleDeleted, - parse_obj_as( - type_=EventStreamCloudEventGroupRoleDeleted, # type: ignore - object_=json.loads(_sse.data), - ), - ) - except Exception as e: - warning(f"Failed to parse SSE event 'group.role.deleted': {e}, sse: {_sse!r}") - elif _sse.event == "group.updated": - try: - yield typing.cast( - EventStreamCloudEventGroupUpdated, - parse_obj_as( - type_=EventStreamCloudEventGroupUpdated, # type: ignore - object_=json.loads(_sse.data), - ), - ) - except Exception as e: - warning(f"Failed to parse SSE event 'group.updated': {e}, sse: {_sse!r}") - elif _sse.event == "organization.connection.added": - try: - yield typing.cast( - EventStreamCloudEventOrgConnectionAdded, - parse_obj_as( - type_=EventStreamCloudEventOrgConnectionAdded, # type: ignore - object_=json.loads(_sse.data), - ), - ) - except Exception as e: - warning( - f"Failed to parse SSE event 'organization.connection.added': {e}, sse: {_sse!r}" - ) - elif _sse.event == "organization.connection.removed": - try: - yield typing.cast( - EventStreamCloudEventOrgConnectionRemoved, - parse_obj_as( - type_=EventStreamCloudEventOrgConnectionRemoved, # type: ignore - object_=json.loads(_sse.data), - ), - ) - except Exception as e: - warning( - f"Failed to parse SSE event 'organization.connection.removed': {e}, sse: {_sse!r}" - ) - elif _sse.event == "organization.connection.updated": - try: - yield typing.cast( - EventStreamCloudEventOrgConnectionUpdated, - parse_obj_as( - type_=EventStreamCloudEventOrgConnectionUpdated, # type: ignore - object_=json.loads(_sse.data), - ), - ) - except Exception as e: - warning( - f"Failed to parse SSE event 'organization.connection.updated': {e}, sse: {_sse!r}" - ) - elif _sse.event == "organization.created": - try: - yield typing.cast( - EventStreamCloudEventOrgCreated, - parse_obj_as( - type_=EventStreamCloudEventOrgCreated, # type: ignore - object_=json.loads(_sse.data), - ), - ) - except Exception as e: - warning(f"Failed to parse SSE event 'organization.created': {e}, sse: {_sse!r}") - elif _sse.event == "organization.deleted": - try: - yield typing.cast( - EventStreamCloudEventOrgDeleted, - parse_obj_as( - type_=EventStreamCloudEventOrgDeleted, # type: ignore - object_=json.loads(_sse.data), - ), - ) - except Exception as e: - warning(f"Failed to parse SSE event 'organization.deleted': {e}, sse: {_sse!r}") - elif _sse.event == "organization.group.role.assigned": - try: - yield typing.cast( - EventStreamCloudEventOrgGroupRoleAssigned, - parse_obj_as( - type_=EventStreamCloudEventOrgGroupRoleAssigned, # type: ignore - object_=json.loads(_sse.data), - ), - ) - except Exception as e: - warning( - f"Failed to parse SSE event 'organization.group.role.assigned': {e}, sse: {_sse!r}" - ) - elif _sse.event == "organization.group.role.deleted": - try: - yield typing.cast( - EventStreamCloudEventOrgGroupRoleDeleted, - parse_obj_as( - type_=EventStreamCloudEventOrgGroupRoleDeleted, # type: ignore - object_=json.loads(_sse.data), - ), - ) - except Exception as e: - warning( - f"Failed to parse SSE event 'organization.group.role.deleted': {e}, sse: {_sse!r}" - ) - elif _sse.event == "organization.member.added": - try: - yield typing.cast( - EventStreamCloudEventOrgMemberAdded, - parse_obj_as( - type_=EventStreamCloudEventOrgMemberAdded, # type: ignore - object_=json.loads(_sse.data), - ), - ) - except Exception as e: - warning( - f"Failed to parse SSE event 'organization.member.added': {e}, sse: {_sse!r}" - ) - elif _sse.event == "organization.member.deleted": - try: - yield typing.cast( - EventStreamCloudEventOrgMemberDeleted, - parse_obj_as( - type_=EventStreamCloudEventOrgMemberDeleted, # type: ignore - object_=json.loads(_sse.data), - ), - ) - except Exception as e: - warning( - f"Failed to parse SSE event 'organization.member.deleted': {e}, sse: {_sse!r}" - ) - elif _sse.event == "organization.member.role.assigned": - try: - yield typing.cast( - EventStreamCloudEventOrgMemberRoleAssigned, - parse_obj_as( - type_=EventStreamCloudEventOrgMemberRoleAssigned, # type: ignore - object_=json.loads(_sse.data), - ), - ) - except Exception as e: - warning( - f"Failed to parse SSE event 'organization.member.role.assigned': {e}, sse: {_sse!r}" - ) - elif _sse.event == "organization.member.role.deleted": - try: - yield typing.cast( - EventStreamCloudEventOrgMemberRoleDeleted, - parse_obj_as( - type_=EventStreamCloudEventOrgMemberRoleDeleted, # type: ignore - object_=json.loads(_sse.data), - ), - ) - except Exception as e: - warning( - f"Failed to parse SSE event 'organization.member.role.deleted': {e}, sse: {_sse!r}" - ) - elif _sse.event == "organization.updated": - try: - yield typing.cast( - EventStreamCloudEventOrgUpdated, - parse_obj_as( - type_=EventStreamCloudEventOrgUpdated, # type: ignore - object_=json.loads(_sse.data), - ), - ) - except Exception as e: - warning(f"Failed to parse SSE event 'organization.updated': {e}, sse: {_sse!r}") - elif _sse.event == "user.created": - try: - yield typing.cast( - EventStreamCloudEventUserCreated, - parse_obj_as( - type_=EventStreamCloudEventUserCreated, # type: ignore - object_=json.loads(_sse.data), - ), - ) - except Exception as e: - warning(f"Failed to parse SSE event 'user.created': {e}, sse: {_sse!r}") - elif _sse.event == "user.deleted": - try: - yield typing.cast( - EventStreamCloudEventUserDeleted, - parse_obj_as( - type_=EventStreamCloudEventUserDeleted, # type: ignore - object_=json.loads(_sse.data), - ), - ) - except Exception as e: - warning(f"Failed to parse SSE event 'user.deleted': {e}, sse: {_sse!r}") - elif _sse.event == "user.updated": - try: - yield typing.cast( - EventStreamCloudEventUserUpdated, - parse_obj_as( - type_=EventStreamCloudEventUserUpdated, # type: ignore - object_=json.loads(_sse.data), - ), - ) - except Exception as e: - warning(f"Failed to parse SSE event 'user.updated': {e}, sse: {_sse!r}") - elif _sse.event == "error": - try: - yield typing.cast( - EventStreamCloudEventErrorMessage, - parse_obj_as( - type_=EventStreamCloudEventErrorMessage, # type: ignore - object_=json.loads(_sse.data), - ), - ) - except Exception as e: - warning(f"Failed to parse SSE event 'error': {e}, sse: {_sse!r}") - elif _sse.event == "offset-only": - try: - yield typing.cast( - EventStreamCloudEventOffsetOnlyMessage, - parse_obj_as( - type_=EventStreamCloudEventOffsetOnlyMessage, # type: ignore - object_=json.loads(_sse.data), - ), - ) - except Exception as e: - warning(f"Failed to parse SSE event 'offset-only': {e}, sse: {_sse!r}") - return - - return AsyncHttpResponse(response=_response, data=_iter()) - await _response.aread() - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 410: - raise GoneError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.text - ) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, - headers=dict(_response.headers), - body=_response.json(), - cause=e, - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - yield await _stream() diff --git a/src/auth0/management/experimentation/__init__.py b/src/auth0/management/experimentation/__init__.py deleted file mode 100644 index 1e498c78..00000000 --- a/src/auth0/management/experimentation/__init__.py +++ /dev/null @@ -1,38 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from . import experiments, feature_flags, segments -_dynamic_imports: typing.Dict[str, str] = { - "experiments": ".experiments", - "feature_flags": ".feature_flags", - "segments": ".segments", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - if module_name == f".{attr_name}": - return module - else: - return getattr(module, attr_name) - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["experiments", "feature_flags", "segments"] diff --git a/src/auth0/management/experimentation/client.py b/src/auth0/management/experimentation/client.py deleted file mode 100644 index 48fc1407..00000000 --- a/src/auth0/management/experimentation/client.py +++ /dev/null @@ -1,101 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .raw_client import AsyncRawExperimentationClient, RawExperimentationClient - -if typing.TYPE_CHECKING: - from .experiments.client import AsyncExperimentsClient, ExperimentsClient - from .feature_flags.client import AsyncFeatureFlagsClient, FeatureFlagsClient - from .segments.client import AsyncSegmentsClient, SegmentsClient - - -class ExperimentationClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawExperimentationClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._experiments: typing.Optional[ExperimentsClient] = None - self._feature_flags: typing.Optional[FeatureFlagsClient] = None - self._segments: typing.Optional[SegmentsClient] = None - - @property - def with_raw_response(self) -> RawExperimentationClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawExperimentationClient - """ - return self._raw_client - - @property - def experiments(self): - if self._experiments is None: - from .experiments.client import ExperimentsClient # noqa: E402 - - self._experiments = ExperimentsClient(client_wrapper=self._client_wrapper) - return self._experiments - - @property - def feature_flags(self): - if self._feature_flags is None: - from .feature_flags.client import FeatureFlagsClient # noqa: E402 - - self._feature_flags = FeatureFlagsClient(client_wrapper=self._client_wrapper) - return self._feature_flags - - @property - def segments(self): - if self._segments is None: - from .segments.client import SegmentsClient # noqa: E402 - - self._segments = SegmentsClient(client_wrapper=self._client_wrapper) - return self._segments - - -class AsyncExperimentationClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawExperimentationClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._experiments: typing.Optional[AsyncExperimentsClient] = None - self._feature_flags: typing.Optional[AsyncFeatureFlagsClient] = None - self._segments: typing.Optional[AsyncSegmentsClient] = None - - @property - def with_raw_response(self) -> AsyncRawExperimentationClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawExperimentationClient - """ - return self._raw_client - - @property - def experiments(self): - if self._experiments is None: - from .experiments.client import AsyncExperimentsClient # noqa: E402 - - self._experiments = AsyncExperimentsClient(client_wrapper=self._client_wrapper) - return self._experiments - - @property - def feature_flags(self): - if self._feature_flags is None: - from .feature_flags.client import AsyncFeatureFlagsClient # noqa: E402 - - self._feature_flags = AsyncFeatureFlagsClient(client_wrapper=self._client_wrapper) - return self._feature_flags - - @property - def segments(self): - if self._segments is None: - from .segments.client import AsyncSegmentsClient # noqa: E402 - - self._segments = AsyncSegmentsClient(client_wrapper=self._client_wrapper) - return self._segments diff --git a/src/auth0/management/experimentation/experiments/__init__.py b/src/auth0/management/experimentation/experiments/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/experimentation/experiments/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/experimentation/experiments/client.py b/src/auth0/management/experimentation/experiments/client.py deleted file mode 100644 index a4c44ccf..00000000 --- a/src/auth0/management/experimentation/experiments/client.py +++ /dev/null @@ -1,809 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.pagination import AsyncPager, SyncPager -from ...core.request_options import RequestOptions -from ...types.advance_ramp_response_content import AdvanceRampResponseContent -from ...types.allocation_request_item import AllocationRequestItem -from ...types.allocation_strategy_enum import AllocationStrategyEnum -from ...types.authentication_flow_enum import AuthenticationFlowEnum -from ...types.create_experiment_response_content import CreateExperimentResponseContent -from ...types.default_config_enum import DefaultConfigEnum -from ...types.experiment_list_item import ExperimentListItem -from ...types.experiment_status_enum import ExperimentStatusEnum -from ...types.experiment_transition_status_enum import ExperimentTransitionStatusEnum -from ...types.get_experiment_response_content import GetExperimentResponseContent -from ...types.list_experiments_response_content import ListExperimentsResponseContent -from ...types.update_experiment_response_content import UpdateExperimentResponseContent -from ...types.validate_experiment_response_content import ValidateExperimentResponseContent -from .raw_client import AsyncRawExperimentsClient, RawExperimentsClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class ExperimentsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawExperimentsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawExperimentsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawExperimentsClient - """ - return self._raw_client - - def list( - self, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - status: typing.Optional[ExperimentStatusEnum] = None, - authentication_flow: typing.Optional[str] = None, - feature_flag_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[ExperimentListItem, ListExperimentsResponseContent]: - """ - Retrieve a paginated list of experiments for the tenant, with optional filters. - - Parameters - ---------- - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of experiments to return per page. Defaults to 25, maximum 50. - - status : typing.Optional[ExperimentStatusEnum] - Filter by status. Exact match. - - authentication_flow : typing.Optional[str] - Filter by authentication flow. Exact match. - - feature_flag_id : typing.Optional[str] - Filter by feature flag ID. Exact match. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[ExperimentListItem, ListExperimentsResponseContent] - Experiments successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.experimentation.experiments.list( - from_="from", - take=1, - status="draft", - authentication_flow="authentication_flow", - feature_flag_id="feature_flag_id", - ) - for item in response: - yield item - # alternatively, you can paginate page-by-page - for page in response.iter_pages(): - yield page - """ - return self._raw_client.list( - from_=from_, - take=take, - status=status, - authentication_flow=authentication_flow, - feature_flag_id=feature_flag_id, - request_options=request_options, - ) - - def create( - self, - *, - name: str, - feature_flag_id: str, - authentication_flow: AuthenticationFlowEnum, - allocation_strategy: AllocationStrategyEnum, - description: typing.Optional[str] = OMIT, - default_config: typing.Optional[DefaultConfigEnum] = OMIT, - allocations: typing.Optional[typing.Sequence[AllocationRequestItem]] = OMIT, - levels: typing.Optional[typing.Sequence[int]] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateExperimentResponseContent: - """ - Create a new experiment for A/B testing. - - Parameters - ---------- - name : str - A human-readable name for the experiment - - feature_flag_id : str - The ID of the feature flag this experiment is based on - - authentication_flow : AuthenticationFlowEnum - - allocation_strategy : AllocationStrategyEnum - The traffic allocation strategy for this experiment - - description : typing.Optional[str] - A description of the experiment - - default_config : typing.Optional[DefaultConfigEnum] - Applies only to Auth0-managed flags. Controls where non-overridden config keys resolve from: 'tenant' inherits the tenant's live config so the experiment overlays only its changes, 'flag' uses the flag's frozen defaults for a complete config. Optional; defaults to 'tenant' when omitted. Rejected for customer-defined flags. - - allocations : typing.Optional[typing.Sequence[AllocationRequestItem]] - Traffic allocations mapping variations to weights or segments - - levels : typing.Optional[typing.Sequence[int]] - Ramp experiment levels configuration. A strictly-increasing sequence of exposure percentages, each an integer in [0, 100]. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateExperimentResponseContent - Experiment successfully created. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.experimentation.experiments.create( - name="name", - feature_flag_id="feature_flag_id", - authentication_flow="authentication", - allocation_strategy="percentage", - ) - """ - _response = self._raw_client.create( - name=name, - feature_flag_id=feature_flag_id, - authentication_flow=authentication_flow, - allocation_strategy=allocation_strategy, - description=description, - default_config=default_config, - allocations=allocations, - levels=levels, - request_options=request_options, - ) - return _response.data - - def get(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> GetExperimentResponseContent: - """ - Retrieve a single experiment with its allocations by ID. - - Parameters - ---------- - id : str - The ID of the experiment to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetExperimentResponseContent - Experiment successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.experimentation.experiments.get( - id="id", - ) - """ - _response = self._raw_client.get(id, request_options=request_options) - return _response.data - - def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Permanently delete an experiment and its allocations by ID. Active experiments cannot be deleted; pause or complete first. Idempotent: returns 204 even if the experiment does not exist. - - Parameters - ---------- - id : str - The ID of the experiment to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.experimentation.experiments.delete( - id="id", - ) - """ - _response = self._raw_client.delete(id, request_options=request_options) - return _response.data - - def update( - self, - id: str, - *, - name: typing.Optional[str] = OMIT, - description: typing.Optional[str] = OMIT, - authentication_flow: typing.Optional[AuthenticationFlowEnum] = OMIT, - allocations: typing.Optional[typing.Sequence[AllocationRequestItem]] = OMIT, - default_config: typing.Optional[DefaultConfigEnum] = OMIT, - levels: typing.Optional[typing.Sequence[int]] = OMIT, - status: typing.Optional[ExperimentTransitionStatusEnum] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateExperimentResponseContent: - """ - Partially update an experiment by ID. Only provided fields are updated. Providing allocations replaces the entire allocations set. - - Parameters - ---------- - id : str - The ID of the experiment to update. - - name : typing.Optional[str] - A human-readable name for the experiment - - description : typing.Optional[str] - A description of the experiment - - authentication_flow : typing.Optional[AuthenticationFlowEnum] - Specifies the target authentication flow for this experiment. This field can only be modified on draft experiments. Must be one of: authentication, mfa_enrollment, mfa_challenge, password_reset, passkey_enrollment, or all. Note that the all value targets every flow at once, but requires that this is the only active experiment. - - allocations : typing.Optional[typing.Sequence[AllocationRequestItem]] - Replaces all traffic allocations. Cannot be modified while the experiment is active. - - default_config : typing.Optional[DefaultConfigEnum] - Applies only to Auth0-managed flags. Controls where non-overridden config keys resolve from: 'tenant' inherits the tenant's live config, 'flag' uses the flag's frozen defaults. Can only be modified on draft experiments. Rejected for customer-defined flags. - - levels : typing.Optional[typing.Sequence[int]] - Ramp experiment levels configuration. A strictly-increasing sequence of exposure percentages, each an integer in [0, 100]. Can only be modified on draft experiments. - - status : typing.Optional[ExperimentTransitionStatusEnum] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateExperimentResponseContent - Experiment successfully updated. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.experimentation.experiments.update( - id="id", - ) - """ - _response = self._raw_client.update( - id, - name=name, - description=description, - authentication_flow=authentication_flow, - allocations=allocations, - default_config=default_config, - levels=levels, - status=status, - request_options=request_options, - ) - return _response.data - - def advance_ramp( - self, id: str, *, target_level: int, request_options: typing.Optional[RequestOptions] = None - ) -> AdvanceRampResponseContent: - """ - Increments the current ramp index to the requested target level. Up-only: the target must be the immediate next level in the schedule. Idempotent: calling with the current level returns success without writing anything. - - Parameters - ---------- - id : str - The ID of the experiment to advance. - - target_level : int - The target percentage level from the experiment schedule. Must be the immediate next level. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AdvanceRampResponseContent - Ramp advanced successfully. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.experimentation.experiments.advance_ramp( - id="id", - target_level=1, - ) - """ - _response = self._raw_client.advance_ramp(id, target_level=target_level, request_options=request_options) - return _response.data - - def validate( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> ValidateExperimentResponseContent: - """ - Checks whether an experiment is ready to be activated. Returns is_valid boolean and an errors array describing any blockers. Read-only; no state is modified. - - Parameters - ---------- - id : str - The ID of the experiment to validate. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - ValidateExperimentResponseContent - Experiment validation result returned. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.experimentation.experiments.validate( - id="id", - ) - """ - _response = self._raw_client.validate(id, request_options=request_options) - return _response.data - - -class AsyncExperimentsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawExperimentsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawExperimentsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawExperimentsClient - """ - return self._raw_client - - async def list( - self, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - status: typing.Optional[ExperimentStatusEnum] = None, - authentication_flow: typing.Optional[str] = None, - feature_flag_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[ExperimentListItem, ListExperimentsResponseContent]: - """ - Retrieve a paginated list of experiments for the tenant, with optional filters. - - Parameters - ---------- - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of experiments to return per page. Defaults to 25, maximum 50. - - status : typing.Optional[ExperimentStatusEnum] - Filter by status. Exact match. - - authentication_flow : typing.Optional[str] - Filter by authentication flow. Exact match. - - feature_flag_id : typing.Optional[str] - Filter by feature flag ID. Exact match. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[ExperimentListItem, ListExperimentsResponseContent] - Experiments successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.experimentation.experiments.list( - from_="from", - take=1, - status="draft", - authentication_flow="authentication_flow", - feature_flag_id="feature_flag_id", - ) - async for item in response: - yield item - - # alternatively, you can paginate page-by-page - async for page in response.iter_pages(): - yield page - - - asyncio.run(main()) - """ - return await self._raw_client.list( - from_=from_, - take=take, - status=status, - authentication_flow=authentication_flow, - feature_flag_id=feature_flag_id, - request_options=request_options, - ) - - async def create( - self, - *, - name: str, - feature_flag_id: str, - authentication_flow: AuthenticationFlowEnum, - allocation_strategy: AllocationStrategyEnum, - description: typing.Optional[str] = OMIT, - default_config: typing.Optional[DefaultConfigEnum] = OMIT, - allocations: typing.Optional[typing.Sequence[AllocationRequestItem]] = OMIT, - levels: typing.Optional[typing.Sequence[int]] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateExperimentResponseContent: - """ - Create a new experiment for A/B testing. - - Parameters - ---------- - name : str - A human-readable name for the experiment - - feature_flag_id : str - The ID of the feature flag this experiment is based on - - authentication_flow : AuthenticationFlowEnum - - allocation_strategy : AllocationStrategyEnum - The traffic allocation strategy for this experiment - - description : typing.Optional[str] - A description of the experiment - - default_config : typing.Optional[DefaultConfigEnum] - Applies only to Auth0-managed flags. Controls where non-overridden config keys resolve from: 'tenant' inherits the tenant's live config so the experiment overlays only its changes, 'flag' uses the flag's frozen defaults for a complete config. Optional; defaults to 'tenant' when omitted. Rejected for customer-defined flags. - - allocations : typing.Optional[typing.Sequence[AllocationRequestItem]] - Traffic allocations mapping variations to weights or segments - - levels : typing.Optional[typing.Sequence[int]] - Ramp experiment levels configuration. A strictly-increasing sequence of exposure percentages, each an integer in [0, 100]. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateExperimentResponseContent - Experiment successfully created. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.experimentation.experiments.create( - name="name", - feature_flag_id="feature_flag_id", - authentication_flow="authentication", - allocation_strategy="percentage", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - name=name, - feature_flag_id=feature_flag_id, - authentication_flow=authentication_flow, - allocation_strategy=allocation_strategy, - description=description, - default_config=default_config, - allocations=allocations, - levels=levels, - request_options=request_options, - ) - return _response.data - - async def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetExperimentResponseContent: - """ - Retrieve a single experiment with its allocations by ID. - - Parameters - ---------- - id : str - The ID of the experiment to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetExperimentResponseContent - Experiment successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.experimentation.experiments.get( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.get(id, request_options=request_options) - return _response.data - - async def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Permanently delete an experiment and its allocations by ID. Active experiments cannot be deleted; pause or complete first. Idempotent: returns 204 even if the experiment does not exist. - - Parameters - ---------- - id : str - The ID of the experiment to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.experimentation.experiments.delete( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete(id, request_options=request_options) - return _response.data - - async def update( - self, - id: str, - *, - name: typing.Optional[str] = OMIT, - description: typing.Optional[str] = OMIT, - authentication_flow: typing.Optional[AuthenticationFlowEnum] = OMIT, - allocations: typing.Optional[typing.Sequence[AllocationRequestItem]] = OMIT, - default_config: typing.Optional[DefaultConfigEnum] = OMIT, - levels: typing.Optional[typing.Sequence[int]] = OMIT, - status: typing.Optional[ExperimentTransitionStatusEnum] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateExperimentResponseContent: - """ - Partially update an experiment by ID. Only provided fields are updated. Providing allocations replaces the entire allocations set. - - Parameters - ---------- - id : str - The ID of the experiment to update. - - name : typing.Optional[str] - A human-readable name for the experiment - - description : typing.Optional[str] - A description of the experiment - - authentication_flow : typing.Optional[AuthenticationFlowEnum] - Specifies the target authentication flow for this experiment. This field can only be modified on draft experiments. Must be one of: authentication, mfa_enrollment, mfa_challenge, password_reset, passkey_enrollment, or all. Note that the all value targets every flow at once, but requires that this is the only active experiment. - - allocations : typing.Optional[typing.Sequence[AllocationRequestItem]] - Replaces all traffic allocations. Cannot be modified while the experiment is active. - - default_config : typing.Optional[DefaultConfigEnum] - Applies only to Auth0-managed flags. Controls where non-overridden config keys resolve from: 'tenant' inherits the tenant's live config, 'flag' uses the flag's frozen defaults. Can only be modified on draft experiments. Rejected for customer-defined flags. - - levels : typing.Optional[typing.Sequence[int]] - Ramp experiment levels configuration. A strictly-increasing sequence of exposure percentages, each an integer in [0, 100]. Can only be modified on draft experiments. - - status : typing.Optional[ExperimentTransitionStatusEnum] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateExperimentResponseContent - Experiment successfully updated. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.experimentation.experiments.update( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.update( - id, - name=name, - description=description, - authentication_flow=authentication_flow, - allocations=allocations, - default_config=default_config, - levels=levels, - status=status, - request_options=request_options, - ) - return _response.data - - async def advance_ramp( - self, id: str, *, target_level: int, request_options: typing.Optional[RequestOptions] = None - ) -> AdvanceRampResponseContent: - """ - Increments the current ramp index to the requested target level. Up-only: the target must be the immediate next level in the schedule. Idempotent: calling with the current level returns success without writing anything. - - Parameters - ---------- - id : str - The ID of the experiment to advance. - - target_level : int - The target percentage level from the experiment schedule. Must be the immediate next level. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AdvanceRampResponseContent - Ramp advanced successfully. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.experimentation.experiments.advance_ramp( - id="id", - target_level=1, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.advance_ramp(id, target_level=target_level, request_options=request_options) - return _response.data - - async def validate( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> ValidateExperimentResponseContent: - """ - Checks whether an experiment is ready to be activated. Returns is_valid boolean and an errors array describing any blockers. Read-only; no state is modified. - - Parameters - ---------- - id : str - The ID of the experiment to validate. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - ValidateExperimentResponseContent - Experiment validation result returned. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.experimentation.experiments.validate( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.validate(id, request_options=request_options) - return _response.data diff --git a/src/auth0/management/experimentation/experiments/raw_client.py b/src/auth0/management/experimentation/experiments/raw_client.py deleted file mode 100644 index 69bc5ed5..00000000 --- a/src/auth0/management/experimentation/experiments/raw_client.py +++ /dev/null @@ -1,1681 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ...core.api_error import ApiError -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.http_response import AsyncHttpResponse, HttpResponse -from ...core.jsonable_encoder import quote_path_param -from ...core.pagination import AsyncPager, SyncPager -from ...core.parse_error import ParsingError -from ...core.pydantic_utilities import parse_obj_as -from ...core.request_options import RequestOptions -from ...core.serialization import convert_and_respect_annotation_metadata -from ...errors.bad_request_error import BadRequestError -from ...errors.conflict_error import ConflictError -from ...errors.forbidden_error import ForbiddenError -from ...errors.not_found_error import NotFoundError -from ...errors.too_many_requests_error import TooManyRequestsError -from ...errors.unauthorized_error import UnauthorizedError -from ...errors.unprocessable_entity_error import UnprocessableEntityError -from ...types.advance_ramp_response_content import AdvanceRampResponseContent -from ...types.allocation_request_item import AllocationRequestItem -from ...types.allocation_strategy_enum import AllocationStrategyEnum -from ...types.authentication_flow_enum import AuthenticationFlowEnum -from ...types.create_experiment_response_content import CreateExperimentResponseContent -from ...types.default_config_enum import DefaultConfigEnum -from ...types.experiment_list_item import ExperimentListItem -from ...types.experiment_status_enum import ExperimentStatusEnum -from ...types.experiment_transition_status_enum import ExperimentTransitionStatusEnum -from ...types.get_experiment_response_content import GetExperimentResponseContent -from ...types.list_experiments_response_content import ListExperimentsResponseContent -from ...types.update_experiment_response_content import UpdateExperimentResponseContent -from ...types.validate_experiment_response_content import ValidateExperimentResponseContent -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawExperimentsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - status: typing.Optional[ExperimentStatusEnum] = None, - authentication_flow: typing.Optional[str] = None, - feature_flag_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[ExperimentListItem, ListExperimentsResponseContent]: - """ - Retrieve a paginated list of experiments for the tenant, with optional filters. - - Parameters - ---------- - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of experiments to return per page. Defaults to 25, maximum 50. - - status : typing.Optional[ExperimentStatusEnum] - Filter by status. Exact match. - - authentication_flow : typing.Optional[str] - Filter by authentication flow. Exact match. - - feature_flag_id : typing.Optional[str] - Filter by feature flag ID. Exact match. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[ExperimentListItem, ListExperimentsResponseContent] - Experiments successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - "experimentation/experiments", - method="GET", - params={ - "from": from_, - "take": take, - "status": status, - "authentication_flow": authentication_flow, - "feature_flag_id": feature_flag_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListExperimentsResponseContent, - parse_obj_as( - type_=ListExperimentsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.experiments - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - _get_next = lambda: self.list( - from_=_parsed_next, - take=take, - status=status, - authentication_flow=authentication_flow, - feature_flag_id=feature_flag_id, - request_options=request_options, - ) - return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - *, - name: str, - feature_flag_id: str, - authentication_flow: AuthenticationFlowEnum, - allocation_strategy: AllocationStrategyEnum, - description: typing.Optional[str] = OMIT, - default_config: typing.Optional[DefaultConfigEnum] = OMIT, - allocations: typing.Optional[typing.Sequence[AllocationRequestItem]] = OMIT, - levels: typing.Optional[typing.Sequence[int]] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[CreateExperimentResponseContent]: - """ - Create a new experiment for A/B testing. - - Parameters - ---------- - name : str - A human-readable name for the experiment - - feature_flag_id : str - The ID of the feature flag this experiment is based on - - authentication_flow : AuthenticationFlowEnum - - allocation_strategy : AllocationStrategyEnum - The traffic allocation strategy for this experiment - - description : typing.Optional[str] - A description of the experiment - - default_config : typing.Optional[DefaultConfigEnum] - Applies only to Auth0-managed flags. Controls where non-overridden config keys resolve from: 'tenant' inherits the tenant's live config so the experiment overlays only its changes, 'flag' uses the flag's frozen defaults for a complete config. Optional; defaults to 'tenant' when omitted. Rejected for customer-defined flags. - - allocations : typing.Optional[typing.Sequence[AllocationRequestItem]] - Traffic allocations mapping variations to weights or segments - - levels : typing.Optional[typing.Sequence[int]] - Ramp experiment levels configuration. A strictly-increasing sequence of exposure percentages, each an integer in [0, 100]. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CreateExperimentResponseContent] - Experiment successfully created. - """ - _response = self._client_wrapper.httpx_client.request( - "experimentation/experiments", - method="POST", - json={ - "name": name, - "description": description, - "feature_flag_id": feature_flag_id, - "authentication_flow": authentication_flow, - "default_config": default_config, - "allocation_strategy": allocation_strategy, - "allocations": convert_and_respect_annotation_metadata( - object_=allocations, annotation=typing.Sequence[AllocationRequestItem], direction="write" - ), - "levels": levels, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateExperimentResponseContent, - parse_obj_as( - type_=CreateExperimentResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 422: - raise UnprocessableEntityError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetExperimentResponseContent]: - """ - Retrieve a single experiment with its allocations by ID. - - Parameters - ---------- - id : str - The ID of the experiment to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetExperimentResponseContent] - Experiment successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - f"experimentation/experiments/{quote_path_param(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetExperimentResponseContent, - parse_obj_as( - type_=GetExperimentResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[None]: - """ - Permanently delete an experiment and its allocations by ID. Active experiments cannot be deleted; pause or complete first. Idempotent: returns 204 even if the experiment does not exist. - - Parameters - ---------- - id : str - The ID of the experiment to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"experimentation/experiments/{quote_path_param(id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def update( - self, - id: str, - *, - name: typing.Optional[str] = OMIT, - description: typing.Optional[str] = OMIT, - authentication_flow: typing.Optional[AuthenticationFlowEnum] = OMIT, - allocations: typing.Optional[typing.Sequence[AllocationRequestItem]] = OMIT, - default_config: typing.Optional[DefaultConfigEnum] = OMIT, - levels: typing.Optional[typing.Sequence[int]] = OMIT, - status: typing.Optional[ExperimentTransitionStatusEnum] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[UpdateExperimentResponseContent]: - """ - Partially update an experiment by ID. Only provided fields are updated. Providing allocations replaces the entire allocations set. - - Parameters - ---------- - id : str - The ID of the experiment to update. - - name : typing.Optional[str] - A human-readable name for the experiment - - description : typing.Optional[str] - A description of the experiment - - authentication_flow : typing.Optional[AuthenticationFlowEnum] - Specifies the target authentication flow for this experiment. This field can only be modified on draft experiments. Must be one of: authentication, mfa_enrollment, mfa_challenge, password_reset, passkey_enrollment, or all. Note that the all value targets every flow at once, but requires that this is the only active experiment. - - allocations : typing.Optional[typing.Sequence[AllocationRequestItem]] - Replaces all traffic allocations. Cannot be modified while the experiment is active. - - default_config : typing.Optional[DefaultConfigEnum] - Applies only to Auth0-managed flags. Controls where non-overridden config keys resolve from: 'tenant' inherits the tenant's live config, 'flag' uses the flag's frozen defaults. Can only be modified on draft experiments. Rejected for customer-defined flags. - - levels : typing.Optional[typing.Sequence[int]] - Ramp experiment levels configuration. A strictly-increasing sequence of exposure percentages, each an integer in [0, 100]. Can only be modified on draft experiments. - - status : typing.Optional[ExperimentTransitionStatusEnum] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[UpdateExperimentResponseContent] - Experiment successfully updated. - """ - _response = self._client_wrapper.httpx_client.request( - f"experimentation/experiments/{quote_path_param(id)}", - method="PATCH", - json={ - "name": name, - "description": description, - "authentication_flow": authentication_flow, - "allocations": convert_and_respect_annotation_metadata( - object_=allocations, annotation=typing.Sequence[AllocationRequestItem], direction="write" - ), - "default_config": default_config, - "levels": levels, - "status": status, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateExperimentResponseContent, - parse_obj_as( - type_=UpdateExperimentResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 422: - raise UnprocessableEntityError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def advance_ramp( - self, id: str, *, target_level: int, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[AdvanceRampResponseContent]: - """ - Increments the current ramp index to the requested target level. Up-only: the target must be the immediate next level in the schedule. Idempotent: calling with the current level returns success without writing anything. - - Parameters - ---------- - id : str - The ID of the experiment to advance. - - target_level : int - The target percentage level from the experiment schedule. Must be the immediate next level. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[AdvanceRampResponseContent] - Ramp advanced successfully. - """ - _response = self._client_wrapper.httpx_client.request( - f"experimentation/experiments/{quote_path_param(id)}/advance-ramp", - method="POST", - json={ - "target_level": target_level, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AdvanceRampResponseContent, - parse_obj_as( - type_=AdvanceRampResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def validate( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[ValidateExperimentResponseContent]: - """ - Checks whether an experiment is ready to be activated. Returns is_valid boolean and an errors array describing any blockers. Read-only; no state is modified. - - Parameters - ---------- - id : str - The ID of the experiment to validate. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[ValidateExperimentResponseContent] - Experiment validation result returned. - """ - _response = self._client_wrapper.httpx_client.request( - f"experimentation/experiments/{quote_path_param(id)}/validate", - method="POST", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - ValidateExperimentResponseContent, - parse_obj_as( - type_=ValidateExperimentResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawExperimentsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - status: typing.Optional[ExperimentStatusEnum] = None, - authentication_flow: typing.Optional[str] = None, - feature_flag_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[ExperimentListItem, ListExperimentsResponseContent]: - """ - Retrieve a paginated list of experiments for the tenant, with optional filters. - - Parameters - ---------- - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of experiments to return per page. Defaults to 25, maximum 50. - - status : typing.Optional[ExperimentStatusEnum] - Filter by status. Exact match. - - authentication_flow : typing.Optional[str] - Filter by authentication flow. Exact match. - - feature_flag_id : typing.Optional[str] - Filter by feature flag ID. Exact match. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[ExperimentListItem, ListExperimentsResponseContent] - Experiments successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - "experimentation/experiments", - method="GET", - params={ - "from": from_, - "take": take, - "status": status, - "authentication_flow": authentication_flow, - "feature_flag_id": feature_flag_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListExperimentsResponseContent, - parse_obj_as( - type_=ListExperimentsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.experiments - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - - async def _get_next(): - return await self.list( - from_=_parsed_next, - take=take, - status=status, - authentication_flow=authentication_flow, - feature_flag_id=feature_flag_id, - request_options=request_options, - ) - - return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - *, - name: str, - feature_flag_id: str, - authentication_flow: AuthenticationFlowEnum, - allocation_strategy: AllocationStrategyEnum, - description: typing.Optional[str] = OMIT, - default_config: typing.Optional[DefaultConfigEnum] = OMIT, - allocations: typing.Optional[typing.Sequence[AllocationRequestItem]] = OMIT, - levels: typing.Optional[typing.Sequence[int]] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[CreateExperimentResponseContent]: - """ - Create a new experiment for A/B testing. - - Parameters - ---------- - name : str - A human-readable name for the experiment - - feature_flag_id : str - The ID of the feature flag this experiment is based on - - authentication_flow : AuthenticationFlowEnum - - allocation_strategy : AllocationStrategyEnum - The traffic allocation strategy for this experiment - - description : typing.Optional[str] - A description of the experiment - - default_config : typing.Optional[DefaultConfigEnum] - Applies only to Auth0-managed flags. Controls where non-overridden config keys resolve from: 'tenant' inherits the tenant's live config so the experiment overlays only its changes, 'flag' uses the flag's frozen defaults for a complete config. Optional; defaults to 'tenant' when omitted. Rejected for customer-defined flags. - - allocations : typing.Optional[typing.Sequence[AllocationRequestItem]] - Traffic allocations mapping variations to weights or segments - - levels : typing.Optional[typing.Sequence[int]] - Ramp experiment levels configuration. A strictly-increasing sequence of exposure percentages, each an integer in [0, 100]. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CreateExperimentResponseContent] - Experiment successfully created. - """ - _response = await self._client_wrapper.httpx_client.request( - "experimentation/experiments", - method="POST", - json={ - "name": name, - "description": description, - "feature_flag_id": feature_flag_id, - "authentication_flow": authentication_flow, - "default_config": default_config, - "allocation_strategy": allocation_strategy, - "allocations": convert_and_respect_annotation_metadata( - object_=allocations, annotation=typing.Sequence[AllocationRequestItem], direction="write" - ), - "levels": levels, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateExperimentResponseContent, - parse_obj_as( - type_=CreateExperimentResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 422: - raise UnprocessableEntityError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetExperimentResponseContent]: - """ - Retrieve a single experiment with its allocations by ID. - - Parameters - ---------- - id : str - The ID of the experiment to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetExperimentResponseContent] - Experiment successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - f"experimentation/experiments/{quote_path_param(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetExperimentResponseContent, - parse_obj_as( - type_=GetExperimentResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def delete( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Permanently delete an experiment and its allocations by ID. Active experiments cannot be deleted; pause or complete first. Idempotent: returns 204 even if the experiment does not exist. - - Parameters - ---------- - id : str - The ID of the experiment to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"experimentation/experiments/{quote_path_param(id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def update( - self, - id: str, - *, - name: typing.Optional[str] = OMIT, - description: typing.Optional[str] = OMIT, - authentication_flow: typing.Optional[AuthenticationFlowEnum] = OMIT, - allocations: typing.Optional[typing.Sequence[AllocationRequestItem]] = OMIT, - default_config: typing.Optional[DefaultConfigEnum] = OMIT, - levels: typing.Optional[typing.Sequence[int]] = OMIT, - status: typing.Optional[ExperimentTransitionStatusEnum] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[UpdateExperimentResponseContent]: - """ - Partially update an experiment by ID. Only provided fields are updated. Providing allocations replaces the entire allocations set. - - Parameters - ---------- - id : str - The ID of the experiment to update. - - name : typing.Optional[str] - A human-readable name for the experiment - - description : typing.Optional[str] - A description of the experiment - - authentication_flow : typing.Optional[AuthenticationFlowEnum] - Specifies the target authentication flow for this experiment. This field can only be modified on draft experiments. Must be one of: authentication, mfa_enrollment, mfa_challenge, password_reset, passkey_enrollment, or all. Note that the all value targets every flow at once, but requires that this is the only active experiment. - - allocations : typing.Optional[typing.Sequence[AllocationRequestItem]] - Replaces all traffic allocations. Cannot be modified while the experiment is active. - - default_config : typing.Optional[DefaultConfigEnum] - Applies only to Auth0-managed flags. Controls where non-overridden config keys resolve from: 'tenant' inherits the tenant's live config, 'flag' uses the flag's frozen defaults. Can only be modified on draft experiments. Rejected for customer-defined flags. - - levels : typing.Optional[typing.Sequence[int]] - Ramp experiment levels configuration. A strictly-increasing sequence of exposure percentages, each an integer in [0, 100]. Can only be modified on draft experiments. - - status : typing.Optional[ExperimentTransitionStatusEnum] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[UpdateExperimentResponseContent] - Experiment successfully updated. - """ - _response = await self._client_wrapper.httpx_client.request( - f"experimentation/experiments/{quote_path_param(id)}", - method="PATCH", - json={ - "name": name, - "description": description, - "authentication_flow": authentication_flow, - "allocations": convert_and_respect_annotation_metadata( - object_=allocations, annotation=typing.Sequence[AllocationRequestItem], direction="write" - ), - "default_config": default_config, - "levels": levels, - "status": status, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateExperimentResponseContent, - parse_obj_as( - type_=UpdateExperimentResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 422: - raise UnprocessableEntityError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def advance_ramp( - self, id: str, *, target_level: int, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[AdvanceRampResponseContent]: - """ - Increments the current ramp index to the requested target level. Up-only: the target must be the immediate next level in the schedule. Idempotent: calling with the current level returns success without writing anything. - - Parameters - ---------- - id : str - The ID of the experiment to advance. - - target_level : int - The target percentage level from the experiment schedule. Must be the immediate next level. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[AdvanceRampResponseContent] - Ramp advanced successfully. - """ - _response = await self._client_wrapper.httpx_client.request( - f"experimentation/experiments/{quote_path_param(id)}/advance-ramp", - method="POST", - json={ - "target_level": target_level, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AdvanceRampResponseContent, - parse_obj_as( - type_=AdvanceRampResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def validate( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[ValidateExperimentResponseContent]: - """ - Checks whether an experiment is ready to be activated. Returns is_valid boolean and an errors array describing any blockers. Read-only; no state is modified. - - Parameters - ---------- - id : str - The ID of the experiment to validate. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[ValidateExperimentResponseContent] - Experiment validation result returned. - """ - _response = await self._client_wrapper.httpx_client.request( - f"experimentation/experiments/{quote_path_param(id)}/validate", - method="POST", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - ValidateExperimentResponseContent, - parse_obj_as( - type_=ValidateExperimentResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/experimentation/feature_flags/__init__.py b/src/auth0/management/experimentation/feature_flags/__init__.py deleted file mode 100644 index 8b4c9653..00000000 --- a/src/auth0/management/experimentation/feature_flags/__init__.py +++ /dev/null @@ -1,34 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from . import variations -_dynamic_imports: typing.Dict[str, str] = {"variations": ".variations"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - if module_name == f".{attr_name}": - return module - else: - return getattr(module, attr_name) - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["variations"] diff --git a/src/auth0/management/experimentation/feature_flags/client.py b/src/auth0/management/experimentation/feature_flags/client.py deleted file mode 100644 index c4594f82..00000000 --- a/src/auth0/management/experimentation/feature_flags/client.py +++ /dev/null @@ -1,561 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.pagination import AsyncPager, SyncPager -from ...core.request_options import RequestOptions -from ...types.create_feature_flag_parameters import CreateFeatureFlagParameters -from ...types.create_feature_flag_response_content import CreateFeatureFlagResponseContent -from ...types.feature_flag import FeatureFlag -from ...types.feature_flag_status_enum import FeatureFlagStatusEnum -from ...types.feature_flag_type_enum import FeatureFlagTypeEnum -from ...types.get_feature_flag_response_content import GetFeatureFlagResponseContent -from ...types.list_feature_flags_response_content import ListFeatureFlagsResponseContent -from ...types.update_feature_flag_parameters import UpdateFeatureFlagParameters -from ...types.update_feature_flag_response_content import UpdateFeatureFlagResponseContent -from .raw_client import AsyncRawFeatureFlagsClient, RawFeatureFlagsClient - -if typing.TYPE_CHECKING: - from .variations.client import AsyncVariationsClient, VariationsClient -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class FeatureFlagsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawFeatureFlagsClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._variations: typing.Optional[VariationsClient] = None - - @property - def with_raw_response(self) -> RawFeatureFlagsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawFeatureFlagsClient - """ - return self._raw_client - - def list( - self, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - type: typing.Optional[FeatureFlagTypeEnum] = None, - status: typing.Optional[FeatureFlagStatusEnum] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[FeatureFlag, ListFeatureFlagsResponseContent]: - """ - Retrieve a paginated list of feature flags for the tenant. - - Parameters - ---------- - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of feature flags to return per page. Defaults to 25, maximum 50. - - type : typing.Optional[FeatureFlagTypeEnum] - Filter by type. Exact match. - - status : typing.Optional[FeatureFlagStatusEnum] - Filter by status. Exact match. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[FeatureFlag, ListFeatureFlagsResponseContent] - Feature flags successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.experimentation.feature_flags.list( - from_="from", - take=1, - type="auth0", - status="draft", - ) - for item in response: - yield item - # alternatively, you can paginate page-by-page - for page in response.iter_pages(): - yield page - """ - return self._raw_client.list(from_=from_, take=take, type=type, status=status, request_options=request_options) - - def create( - self, - *, - name: str, - parameters: CreateFeatureFlagParameters, - description: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateFeatureFlagResponseContent: - """ - Create a new feature flag with parameters for use in experiments. - - Parameters - ---------- - name : str - A human-readable name for the feature flag - - parameters : CreateFeatureFlagParameters - - description : typing.Optional[str] - A description of what this feature flag controls - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateFeatureFlagResponseContent - Feature flag successfully created. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.experimentation.feature_flags.create( - name="name", - parameters={}, - ) - """ - _response = self._raw_client.create( - name=name, parameters=parameters, description=description, request_options=request_options - ) - return _response.data - - def get(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> GetFeatureFlagResponseContent: - """ - Retrieve a single feature flag by its ID. - - Parameters - ---------- - id : str - The ID of the feature flag to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetFeatureFlagResponseContent - Feature flag successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.experimentation.feature_flags.get( - id="id", - ) - """ - _response = self._raw_client.get(id, request_options=request_options) - return _response.data - - def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete a feature flag by ID. Idempotent: returns 204 even if flag does not exist. - - Parameters - ---------- - id : str - The ID of the feature flag to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.experimentation.feature_flags.delete( - id="id", - ) - """ - _response = self._raw_client.delete(id, request_options=request_options) - return _response.data - - def update( - self, - id: str, - *, - name: typing.Optional[str] = OMIT, - description: typing.Optional[str] = OMIT, - parameters: typing.Optional[UpdateFeatureFlagParameters] = OMIT, - status: typing.Optional[FeatureFlagStatusEnum] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateFeatureFlagResponseContent: - """ - Partially update a feature flag by ID. Only provided fields are updated. - - Parameters - ---------- - id : str - The ID of the feature flag to update. - - name : typing.Optional[str] - A human-readable name for the feature flag - - description : typing.Optional[str] - A description of what this feature flag controls - - parameters : typing.Optional[UpdateFeatureFlagParameters] - - status : typing.Optional[FeatureFlagStatusEnum] - Target lifecycle status (draft → active, draft → archived, active → archived). Activating a flag requires at least 2 variations. When combined with field edits, the edits and the transition are applied together; if the transition is rejected, no edits are applied. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateFeatureFlagResponseContent - Feature flag successfully updated. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.experimentation.feature_flags.update( - id="id", - ) - """ - _response = self._raw_client.update( - id, - name=name, - description=description, - parameters=parameters, - status=status, - request_options=request_options, - ) - return _response.data - - @property - def variations(self): - if self._variations is None: - from .variations.client import VariationsClient # noqa: E402 - - self._variations = VariationsClient(client_wrapper=self._client_wrapper) - return self._variations - - -class AsyncFeatureFlagsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawFeatureFlagsClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._variations: typing.Optional[AsyncVariationsClient] = None - - @property - def with_raw_response(self) -> AsyncRawFeatureFlagsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawFeatureFlagsClient - """ - return self._raw_client - - async def list( - self, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - type: typing.Optional[FeatureFlagTypeEnum] = None, - status: typing.Optional[FeatureFlagStatusEnum] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[FeatureFlag, ListFeatureFlagsResponseContent]: - """ - Retrieve a paginated list of feature flags for the tenant. - - Parameters - ---------- - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of feature flags to return per page. Defaults to 25, maximum 50. - - type : typing.Optional[FeatureFlagTypeEnum] - Filter by type. Exact match. - - status : typing.Optional[FeatureFlagStatusEnum] - Filter by status. Exact match. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[FeatureFlag, ListFeatureFlagsResponseContent] - Feature flags successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.experimentation.feature_flags.list( - from_="from", - take=1, - type="auth0", - status="draft", - ) - async for item in response: - yield item - - # alternatively, you can paginate page-by-page - async for page in response.iter_pages(): - yield page - - - asyncio.run(main()) - """ - return await self._raw_client.list( - from_=from_, take=take, type=type, status=status, request_options=request_options - ) - - async def create( - self, - *, - name: str, - parameters: CreateFeatureFlagParameters, - description: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateFeatureFlagResponseContent: - """ - Create a new feature flag with parameters for use in experiments. - - Parameters - ---------- - name : str - A human-readable name for the feature flag - - parameters : CreateFeatureFlagParameters - - description : typing.Optional[str] - A description of what this feature flag controls - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateFeatureFlagResponseContent - Feature flag successfully created. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.experimentation.feature_flags.create( - name="name", - parameters={}, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - name=name, parameters=parameters, description=description, request_options=request_options - ) - return _response.data - - async def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetFeatureFlagResponseContent: - """ - Retrieve a single feature flag by its ID. - - Parameters - ---------- - id : str - The ID of the feature flag to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetFeatureFlagResponseContent - Feature flag successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.experimentation.feature_flags.get( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.get(id, request_options=request_options) - return _response.data - - async def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete a feature flag by ID. Idempotent: returns 204 even if flag does not exist. - - Parameters - ---------- - id : str - The ID of the feature flag to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.experimentation.feature_flags.delete( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete(id, request_options=request_options) - return _response.data - - async def update( - self, - id: str, - *, - name: typing.Optional[str] = OMIT, - description: typing.Optional[str] = OMIT, - parameters: typing.Optional[UpdateFeatureFlagParameters] = OMIT, - status: typing.Optional[FeatureFlagStatusEnum] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateFeatureFlagResponseContent: - """ - Partially update a feature flag by ID. Only provided fields are updated. - - Parameters - ---------- - id : str - The ID of the feature flag to update. - - name : typing.Optional[str] - A human-readable name for the feature flag - - description : typing.Optional[str] - A description of what this feature flag controls - - parameters : typing.Optional[UpdateFeatureFlagParameters] - - status : typing.Optional[FeatureFlagStatusEnum] - Target lifecycle status (draft → active, draft → archived, active → archived). Activating a flag requires at least 2 variations. When combined with field edits, the edits and the transition are applied together; if the transition is rejected, no edits are applied. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateFeatureFlagResponseContent - Feature flag successfully updated. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.experimentation.feature_flags.update( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.update( - id, - name=name, - description=description, - parameters=parameters, - status=status, - request_options=request_options, - ) - return _response.data - - @property - def variations(self): - if self._variations is None: - from .variations.client import AsyncVariationsClient # noqa: E402 - - self._variations = AsyncVariationsClient(client_wrapper=self._client_wrapper) - return self._variations diff --git a/src/auth0/management/experimentation/feature_flags/raw_client.py b/src/auth0/management/experimentation/feature_flags/raw_client.py deleted file mode 100644 index 07984c69..00000000 --- a/src/auth0/management/experimentation/feature_flags/raw_client.py +++ /dev/null @@ -1,1106 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ...core.api_error import ApiError -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.http_response import AsyncHttpResponse, HttpResponse -from ...core.jsonable_encoder import quote_path_param -from ...core.pagination import AsyncPager, SyncPager -from ...core.parse_error import ParsingError -from ...core.pydantic_utilities import parse_obj_as -from ...core.request_options import RequestOptions -from ...core.serialization import convert_and_respect_annotation_metadata -from ...errors.bad_request_error import BadRequestError -from ...errors.conflict_error import ConflictError -from ...errors.forbidden_error import ForbiddenError -from ...errors.not_found_error import NotFoundError -from ...errors.too_many_requests_error import TooManyRequestsError -from ...errors.unauthorized_error import UnauthorizedError -from ...types.create_feature_flag_parameters import CreateFeatureFlagParameters -from ...types.create_feature_flag_response_content import CreateFeatureFlagResponseContent -from ...types.feature_flag import FeatureFlag -from ...types.feature_flag_status_enum import FeatureFlagStatusEnum -from ...types.feature_flag_type_enum import FeatureFlagTypeEnum -from ...types.get_feature_flag_response_content import GetFeatureFlagResponseContent -from ...types.list_feature_flags_response_content import ListFeatureFlagsResponseContent -from ...types.update_feature_flag_parameters import UpdateFeatureFlagParameters -from ...types.update_feature_flag_response_content import UpdateFeatureFlagResponseContent -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawFeatureFlagsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - type: typing.Optional[FeatureFlagTypeEnum] = None, - status: typing.Optional[FeatureFlagStatusEnum] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[FeatureFlag, ListFeatureFlagsResponseContent]: - """ - Retrieve a paginated list of feature flags for the tenant. - - Parameters - ---------- - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of feature flags to return per page. Defaults to 25, maximum 50. - - type : typing.Optional[FeatureFlagTypeEnum] - Filter by type. Exact match. - - status : typing.Optional[FeatureFlagStatusEnum] - Filter by status. Exact match. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[FeatureFlag, ListFeatureFlagsResponseContent] - Feature flags successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - "experimentation/feature-flags", - method="GET", - params={ - "from": from_, - "take": take, - "type": type, - "status": status, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListFeatureFlagsResponseContent, - parse_obj_as( - type_=ListFeatureFlagsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.feature_flags - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - _get_next = lambda: self.list( - from_=_parsed_next, - take=take, - type=type, - status=status, - request_options=request_options, - ) - return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - *, - name: str, - parameters: CreateFeatureFlagParameters, - description: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[CreateFeatureFlagResponseContent]: - """ - Create a new feature flag with parameters for use in experiments. - - Parameters - ---------- - name : str - A human-readable name for the feature flag - - parameters : CreateFeatureFlagParameters - - description : typing.Optional[str] - A description of what this feature flag controls - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CreateFeatureFlagResponseContent] - Feature flag successfully created. - """ - _response = self._client_wrapper.httpx_client.request( - "experimentation/feature-flags", - method="POST", - json={ - "name": name, - "description": description, - "parameters": convert_and_respect_annotation_metadata( - object_=parameters, annotation=CreateFeatureFlagParameters, direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateFeatureFlagResponseContent, - parse_obj_as( - type_=CreateFeatureFlagResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetFeatureFlagResponseContent]: - """ - Retrieve a single feature flag by its ID. - - Parameters - ---------- - id : str - The ID of the feature flag to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetFeatureFlagResponseContent] - Feature flag successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - f"experimentation/feature-flags/{quote_path_param(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetFeatureFlagResponseContent, - parse_obj_as( - type_=GetFeatureFlagResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[None]: - """ - Delete a feature flag by ID. Idempotent: returns 204 even if flag does not exist. - - Parameters - ---------- - id : str - The ID of the feature flag to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"experimentation/feature-flags/{quote_path_param(id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def update( - self, - id: str, - *, - name: typing.Optional[str] = OMIT, - description: typing.Optional[str] = OMIT, - parameters: typing.Optional[UpdateFeatureFlagParameters] = OMIT, - status: typing.Optional[FeatureFlagStatusEnum] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[UpdateFeatureFlagResponseContent]: - """ - Partially update a feature flag by ID. Only provided fields are updated. - - Parameters - ---------- - id : str - The ID of the feature flag to update. - - name : typing.Optional[str] - A human-readable name for the feature flag - - description : typing.Optional[str] - A description of what this feature flag controls - - parameters : typing.Optional[UpdateFeatureFlagParameters] - - status : typing.Optional[FeatureFlagStatusEnum] - Target lifecycle status (draft → active, draft → archived, active → archived). Activating a flag requires at least 2 variations. When combined with field edits, the edits and the transition are applied together; if the transition is rejected, no edits are applied. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[UpdateFeatureFlagResponseContent] - Feature flag successfully updated. - """ - _response = self._client_wrapper.httpx_client.request( - f"experimentation/feature-flags/{quote_path_param(id)}", - method="PATCH", - json={ - "name": name, - "description": description, - "parameters": convert_and_respect_annotation_metadata( - object_=parameters, annotation=UpdateFeatureFlagParameters, direction="write" - ), - "status": status, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateFeatureFlagResponseContent, - parse_obj_as( - type_=UpdateFeatureFlagResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawFeatureFlagsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - type: typing.Optional[FeatureFlagTypeEnum] = None, - status: typing.Optional[FeatureFlagStatusEnum] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[FeatureFlag, ListFeatureFlagsResponseContent]: - """ - Retrieve a paginated list of feature flags for the tenant. - - Parameters - ---------- - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of feature flags to return per page. Defaults to 25, maximum 50. - - type : typing.Optional[FeatureFlagTypeEnum] - Filter by type. Exact match. - - status : typing.Optional[FeatureFlagStatusEnum] - Filter by status. Exact match. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[FeatureFlag, ListFeatureFlagsResponseContent] - Feature flags successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - "experimentation/feature-flags", - method="GET", - params={ - "from": from_, - "take": take, - "type": type, - "status": status, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListFeatureFlagsResponseContent, - parse_obj_as( - type_=ListFeatureFlagsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.feature_flags - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - - async def _get_next(): - return await self.list( - from_=_parsed_next, - take=take, - type=type, - status=status, - request_options=request_options, - ) - - return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - *, - name: str, - parameters: CreateFeatureFlagParameters, - description: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[CreateFeatureFlagResponseContent]: - """ - Create a new feature flag with parameters for use in experiments. - - Parameters - ---------- - name : str - A human-readable name for the feature flag - - parameters : CreateFeatureFlagParameters - - description : typing.Optional[str] - A description of what this feature flag controls - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CreateFeatureFlagResponseContent] - Feature flag successfully created. - """ - _response = await self._client_wrapper.httpx_client.request( - "experimentation/feature-flags", - method="POST", - json={ - "name": name, - "description": description, - "parameters": convert_and_respect_annotation_metadata( - object_=parameters, annotation=CreateFeatureFlagParameters, direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateFeatureFlagResponseContent, - parse_obj_as( - type_=CreateFeatureFlagResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetFeatureFlagResponseContent]: - """ - Retrieve a single feature flag by its ID. - - Parameters - ---------- - id : str - The ID of the feature flag to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetFeatureFlagResponseContent] - Feature flag successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - f"experimentation/feature-flags/{quote_path_param(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetFeatureFlagResponseContent, - parse_obj_as( - type_=GetFeatureFlagResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def delete( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Delete a feature flag by ID. Idempotent: returns 204 even if flag does not exist. - - Parameters - ---------- - id : str - The ID of the feature flag to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"experimentation/feature-flags/{quote_path_param(id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def update( - self, - id: str, - *, - name: typing.Optional[str] = OMIT, - description: typing.Optional[str] = OMIT, - parameters: typing.Optional[UpdateFeatureFlagParameters] = OMIT, - status: typing.Optional[FeatureFlagStatusEnum] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[UpdateFeatureFlagResponseContent]: - """ - Partially update a feature flag by ID. Only provided fields are updated. - - Parameters - ---------- - id : str - The ID of the feature flag to update. - - name : typing.Optional[str] - A human-readable name for the feature flag - - description : typing.Optional[str] - A description of what this feature flag controls - - parameters : typing.Optional[UpdateFeatureFlagParameters] - - status : typing.Optional[FeatureFlagStatusEnum] - Target lifecycle status (draft → active, draft → archived, active → archived). Activating a flag requires at least 2 variations. When combined with field edits, the edits and the transition are applied together; if the transition is rejected, no edits are applied. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[UpdateFeatureFlagResponseContent] - Feature flag successfully updated. - """ - _response = await self._client_wrapper.httpx_client.request( - f"experimentation/feature-flags/{quote_path_param(id)}", - method="PATCH", - json={ - "name": name, - "description": description, - "parameters": convert_and_respect_annotation_metadata( - object_=parameters, annotation=UpdateFeatureFlagParameters, direction="write" - ), - "status": status, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateFeatureFlagResponseContent, - parse_obj_as( - type_=UpdateFeatureFlagResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/experimentation/feature_flags/variations/__init__.py b/src/auth0/management/experimentation/feature_flags/variations/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/experimentation/feature_flags/variations/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/experimentation/feature_flags/variations/client.py b/src/auth0/management/experimentation/feature_flags/variations/client.py deleted file mode 100644 index 3ca63b80..00000000 --- a/src/auth0/management/experimentation/feature_flags/variations/client.py +++ /dev/null @@ -1,508 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ....core.request_options import RequestOptions -from ....types.create_variation_response_content import CreateVariationResponseContent -from ....types.get_variation_response_content import GetVariationResponseContent -from ....types.list_variations_response_content import ListVariationsResponseContent -from ....types.update_variation_overrides_map import UpdateVariationOverridesMap -from ....types.update_variation_response_content import UpdateVariationResponseContent -from ....types.variation_overrides_map import VariationOverridesMap -from .raw_client import AsyncRawVariationsClient, RawVariationsClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class VariationsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawVariationsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawVariationsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawVariationsClient - """ - return self._raw_client - - def list( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> ListVariationsResponseContent: - """ - Retrieve all variations defined for a specific feature flag. - - Parameters - ---------- - id : str - The ID of the parent feature flag. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - ListVariationsResponseContent - Variations successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.experimentation.feature_flags.variations.list( - id="id", - ) - """ - _response = self._raw_client.list(id, request_options=request_options) - return _response.data - - def create( - self, - id: str, - *, - name: str, - overrides: VariationOverridesMap, - description: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateVariationResponseContent: - """ - Create a new variation with parameter overrides for a specific feature flag. - - Parameters - ---------- - id : str - The ID of the parent feature flag. - - name : str - A human-readable name for the variation - - overrides : VariationOverridesMap - Configuration overrides for this variation; keys must exist in the parent flag parameters. Empty {} is the baseline (control) variation that overrides nothing. - - description : typing.Optional[str] - A description of what this variation controls - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateVariationResponseContent - Variation successfully created. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.experimentation.feature_flags.variations.create( - id="id", - name="name", - overrides={"key": "value"}, - ) - """ - _response = self._raw_client.create( - id, name=name, overrides=overrides, description=description, request_options=request_options - ) - return _response.data - - def get( - self, id: str, vid: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetVariationResponseContent: - """ - Retrieve a single variation by its ID. - - Parameters - ---------- - id : str - The ID of the parent feature flag. - - vid : str - The ID of the variation to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetVariationResponseContent - Variation successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.experimentation.feature_flags.variations.get( - id="id", - vid="vid", - ) - """ - _response = self._raw_client.get(id, vid, request_options=request_options) - return _response.data - - def delete(self, id: str, vid: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete a variation by ID. Returns 204 if the variation does not exist. Returns 404 if the parent feature flag does not exist. - - Parameters - ---------- - id : str - The ID of the parent feature flag. - - vid : str - The ID of the variation to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.experimentation.feature_flags.variations.delete( - id="id", - vid="vid", - ) - """ - _response = self._raw_client.delete(id, vid, request_options=request_options) - return _response.data - - def update( - self, - id: str, - vid: str, - *, - name: typing.Optional[str] = OMIT, - description: typing.Optional[str] = OMIT, - overrides: typing.Optional[UpdateVariationOverridesMap] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateVariationResponseContent: - """ - Partially update a variation by ID. Only provided fields are updated. - - Parameters - ---------- - id : str - The ID of the parent feature flag. - - vid : str - The ID of the variation to update. - - name : typing.Optional[str] - A human-readable name for the variation - - description : typing.Optional[str] - A description of what this variation controls - - overrides : typing.Optional[UpdateVariationOverridesMap] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateVariationResponseContent - Variation successfully updated. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.experimentation.feature_flags.variations.update( - id="id", - vid="vid", - ) - """ - _response = self._raw_client.update( - id, vid, name=name, description=description, overrides=overrides, request_options=request_options - ) - return _response.data - - -class AsyncVariationsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawVariationsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawVariationsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawVariationsClient - """ - return self._raw_client - - async def list( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> ListVariationsResponseContent: - """ - Retrieve all variations defined for a specific feature flag. - - Parameters - ---------- - id : str - The ID of the parent feature flag. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - ListVariationsResponseContent - Variations successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.experimentation.feature_flags.variations.list( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list(id, request_options=request_options) - return _response.data - - async def create( - self, - id: str, - *, - name: str, - overrides: VariationOverridesMap, - description: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateVariationResponseContent: - """ - Create a new variation with parameter overrides for a specific feature flag. - - Parameters - ---------- - id : str - The ID of the parent feature flag. - - name : str - A human-readable name for the variation - - overrides : VariationOverridesMap - Configuration overrides for this variation; keys must exist in the parent flag parameters. Empty {} is the baseline (control) variation that overrides nothing. - - description : typing.Optional[str] - A description of what this variation controls - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateVariationResponseContent - Variation successfully created. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.experimentation.feature_flags.variations.create( - id="id", - name="name", - overrides={"key": "value"}, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - id, name=name, overrides=overrides, description=description, request_options=request_options - ) - return _response.data - - async def get( - self, id: str, vid: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetVariationResponseContent: - """ - Retrieve a single variation by its ID. - - Parameters - ---------- - id : str - The ID of the parent feature flag. - - vid : str - The ID of the variation to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetVariationResponseContent - Variation successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.experimentation.feature_flags.variations.get( - id="id", - vid="vid", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.get(id, vid, request_options=request_options) - return _response.data - - async def delete(self, id: str, vid: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete a variation by ID. Returns 204 if the variation does not exist. Returns 404 if the parent feature flag does not exist. - - Parameters - ---------- - id : str - The ID of the parent feature flag. - - vid : str - The ID of the variation to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.experimentation.feature_flags.variations.delete( - id="id", - vid="vid", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete(id, vid, request_options=request_options) - return _response.data - - async def update( - self, - id: str, - vid: str, - *, - name: typing.Optional[str] = OMIT, - description: typing.Optional[str] = OMIT, - overrides: typing.Optional[UpdateVariationOverridesMap] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateVariationResponseContent: - """ - Partially update a variation by ID. Only provided fields are updated. - - Parameters - ---------- - id : str - The ID of the parent feature flag. - - vid : str - The ID of the variation to update. - - name : typing.Optional[str] - A human-readable name for the variation - - description : typing.Optional[str] - A description of what this variation controls - - overrides : typing.Optional[UpdateVariationOverridesMap] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateVariationResponseContent - Variation successfully updated. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.experimentation.feature_flags.variations.update( - id="id", - vid="vid", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.update( - id, vid, name=name, description=description, overrides=overrides, request_options=request_options - ) - return _response.data diff --git a/src/auth0/management/experimentation/feature_flags/variations/raw_client.py b/src/auth0/management/experimentation/feature_flags/variations/raw_client.py deleted file mode 100644 index 8c181537..00000000 --- a/src/auth0/management/experimentation/feature_flags/variations/raw_client.py +++ /dev/null @@ -1,1116 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ....core.api_error import ApiError -from ....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ....core.http_response import AsyncHttpResponse, HttpResponse -from ....core.jsonable_encoder import quote_path_param -from ....core.parse_error import ParsingError -from ....core.pydantic_utilities import parse_obj_as -from ....core.request_options import RequestOptions -from ....errors.bad_request_error import BadRequestError -from ....errors.conflict_error import ConflictError -from ....errors.forbidden_error import ForbiddenError -from ....errors.not_found_error import NotFoundError -from ....errors.too_many_requests_error import TooManyRequestsError -from ....errors.unauthorized_error import UnauthorizedError -from ....types.create_variation_response_content import CreateVariationResponseContent -from ....types.get_variation_response_content import GetVariationResponseContent -from ....types.list_variations_response_content import ListVariationsResponseContent -from ....types.update_variation_overrides_map import UpdateVariationOverridesMap -from ....types.update_variation_response_content import UpdateVariationResponseContent -from ....types.variation_overrides_map import VariationOverridesMap -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawVariationsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[ListVariationsResponseContent]: - """ - Retrieve all variations defined for a specific feature flag. - - Parameters - ---------- - id : str - The ID of the parent feature flag. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[ListVariationsResponseContent] - Variations successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - f"experimentation/feature-flags/{quote_path_param(id)}/variations", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - ListVariationsResponseContent, - parse_obj_as( - type_=ListVariationsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - id: str, - *, - name: str, - overrides: VariationOverridesMap, - description: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[CreateVariationResponseContent]: - """ - Create a new variation with parameter overrides for a specific feature flag. - - Parameters - ---------- - id : str - The ID of the parent feature flag. - - name : str - A human-readable name for the variation - - overrides : VariationOverridesMap - Configuration overrides for this variation; keys must exist in the parent flag parameters. Empty {} is the baseline (control) variation that overrides nothing. - - description : typing.Optional[str] - A description of what this variation controls - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CreateVariationResponseContent] - Variation successfully created. - """ - _response = self._client_wrapper.httpx_client.request( - f"experimentation/feature-flags/{quote_path_param(id)}/variations", - method="POST", - json={ - "name": name, - "description": description, - "overrides": overrides, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateVariationResponseContent, - parse_obj_as( - type_=CreateVariationResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def get( - self, id: str, vid: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetVariationResponseContent]: - """ - Retrieve a single variation by its ID. - - Parameters - ---------- - id : str - The ID of the parent feature flag. - - vid : str - The ID of the variation to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetVariationResponseContent] - Variation successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - f"experimentation/feature-flags/{quote_path_param(id)}/variations/{quote_path_param(vid)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetVariationResponseContent, - parse_obj_as( - type_=GetVariationResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def delete( - self, id: str, vid: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[None]: - """ - Delete a variation by ID. Returns 204 if the variation does not exist. Returns 404 if the parent feature flag does not exist. - - Parameters - ---------- - id : str - The ID of the parent feature flag. - - vid : str - The ID of the variation to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"experimentation/feature-flags/{quote_path_param(id)}/variations/{quote_path_param(vid)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def update( - self, - id: str, - vid: str, - *, - name: typing.Optional[str] = OMIT, - description: typing.Optional[str] = OMIT, - overrides: typing.Optional[UpdateVariationOverridesMap] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[UpdateVariationResponseContent]: - """ - Partially update a variation by ID. Only provided fields are updated. - - Parameters - ---------- - id : str - The ID of the parent feature flag. - - vid : str - The ID of the variation to update. - - name : typing.Optional[str] - A human-readable name for the variation - - description : typing.Optional[str] - A description of what this variation controls - - overrides : typing.Optional[UpdateVariationOverridesMap] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[UpdateVariationResponseContent] - Variation successfully updated. - """ - _response = self._client_wrapper.httpx_client.request( - f"experimentation/feature-flags/{quote_path_param(id)}/variations/{quote_path_param(vid)}", - method="PATCH", - json={ - "name": name, - "description": description, - "overrides": overrides, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateVariationResponseContent, - parse_obj_as( - type_=UpdateVariationResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawVariationsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[ListVariationsResponseContent]: - """ - Retrieve all variations defined for a specific feature flag. - - Parameters - ---------- - id : str - The ID of the parent feature flag. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[ListVariationsResponseContent] - Variations successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - f"experimentation/feature-flags/{quote_path_param(id)}/variations", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - ListVariationsResponseContent, - parse_obj_as( - type_=ListVariationsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - id: str, - *, - name: str, - overrides: VariationOverridesMap, - description: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[CreateVariationResponseContent]: - """ - Create a new variation with parameter overrides for a specific feature flag. - - Parameters - ---------- - id : str - The ID of the parent feature flag. - - name : str - A human-readable name for the variation - - overrides : VariationOverridesMap - Configuration overrides for this variation; keys must exist in the parent flag parameters. Empty {} is the baseline (control) variation that overrides nothing. - - description : typing.Optional[str] - A description of what this variation controls - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CreateVariationResponseContent] - Variation successfully created. - """ - _response = await self._client_wrapper.httpx_client.request( - f"experimentation/feature-flags/{quote_path_param(id)}/variations", - method="POST", - json={ - "name": name, - "description": description, - "overrides": overrides, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateVariationResponseContent, - parse_obj_as( - type_=CreateVariationResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def get( - self, id: str, vid: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetVariationResponseContent]: - """ - Retrieve a single variation by its ID. - - Parameters - ---------- - id : str - The ID of the parent feature flag. - - vid : str - The ID of the variation to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetVariationResponseContent] - Variation successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - f"experimentation/feature-flags/{quote_path_param(id)}/variations/{quote_path_param(vid)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetVariationResponseContent, - parse_obj_as( - type_=GetVariationResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def delete( - self, id: str, vid: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Delete a variation by ID. Returns 204 if the variation does not exist. Returns 404 if the parent feature flag does not exist. - - Parameters - ---------- - id : str - The ID of the parent feature flag. - - vid : str - The ID of the variation to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"experimentation/feature-flags/{quote_path_param(id)}/variations/{quote_path_param(vid)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def update( - self, - id: str, - vid: str, - *, - name: typing.Optional[str] = OMIT, - description: typing.Optional[str] = OMIT, - overrides: typing.Optional[UpdateVariationOverridesMap] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[UpdateVariationResponseContent]: - """ - Partially update a variation by ID. Only provided fields are updated. - - Parameters - ---------- - id : str - The ID of the parent feature flag. - - vid : str - The ID of the variation to update. - - name : typing.Optional[str] - A human-readable name for the variation - - description : typing.Optional[str] - A description of what this variation controls - - overrides : typing.Optional[UpdateVariationOverridesMap] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[UpdateVariationResponseContent] - Variation successfully updated. - """ - _response = await self._client_wrapper.httpx_client.request( - f"experimentation/feature-flags/{quote_path_param(id)}/variations/{quote_path_param(vid)}", - method="PATCH", - json={ - "name": name, - "description": description, - "overrides": overrides, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateVariationResponseContent, - parse_obj_as( - type_=UpdateVariationResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/experimentation/raw_client.py b/src/auth0/management/experimentation/raw_client.py deleted file mode 100644 index 0364beba..00000000 --- a/src/auth0/management/experimentation/raw_client.py +++ /dev/null @@ -1,13 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper - - -class RawExperimentationClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - -class AsyncRawExperimentationClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper diff --git a/src/auth0/management/experimentation/segments/__init__.py b/src/auth0/management/experimentation/segments/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/experimentation/segments/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/experimentation/segments/client.py b/src/auth0/management/experimentation/segments/client.py deleted file mode 100644 index f6c0322f..00000000 --- a/src/auth0/management/experimentation/segments/client.py +++ /dev/null @@ -1,530 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.pagination import AsyncPager, SyncPager -from ...core.request_options import RequestOptions -from ...types.create_segment_response_content import CreateSegmentResponseContent -from ...types.get_segment_response_content import GetSegmentResponseContent -from ...types.list_segments_response_content import ListSegmentsResponseContent -from ...types.segment import Segment -from ...types.segment_rule import SegmentRule -from ...types.segment_status_enum import SegmentStatusEnum -from ...types.segment_type_filter_enum import SegmentTypeFilterEnum -from ...types.update_segment_response_content import UpdateSegmentResponseContent -from .raw_client import AsyncRawSegmentsClient, RawSegmentsClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class SegmentsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawSegmentsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawSegmentsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawSegmentsClient - """ - return self._raw_client - - def list( - self, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - type: typing.Optional[SegmentTypeFilterEnum] = None, - status: typing.Optional[SegmentStatusEnum] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[Segment, ListSegmentsResponseContent]: - """ - Retrieve a paginated list of segments for the tenant. - - Parameters - ---------- - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of segments to return per page. Defaults to 25, maximum 50. - - type : typing.Optional[SegmentTypeFilterEnum] - Filter by type. Exact match. - - status : typing.Optional[SegmentStatusEnum] - Filter by status. Exact match. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[Segment, ListSegmentsResponseContent] - Segments successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.experimentation.segments.list( - from_="from", - take=1, - type="auth0", - status="active", - ) - for item in response: - yield item - # alternatively, you can paginate page-by-page - for page in response.iter_pages(): - yield page - """ - return self._raw_client.list(from_=from_, take=take, type=type, status=status, request_options=request_options) - - def create( - self, - *, - name: str, - rules: typing.Sequence[SegmentRule], - description: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateSegmentResponseContent: - """ - Create a new segment with rule-based membership criteria for use in experiments. - - Parameters - ---------- - name : str - A human-readable name for the segment - - rules : typing.Sequence[SegmentRule] - An ordered list of rules. A segment matches if any rule matches. Each rule is limited to 4KB and the whole segment to 10KB (serialized). - - description : typing.Optional[str] - A description of the segment - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateSegmentResponseContent - Segment successfully created. - - Examples - -------- - from auth0 import Auth0, SegmentRule - - client = Auth0( - token="YOUR_TOKEN", - ) - client.experimentation.segments.create( - name="name", - rules=[SegmentRule()], - ) - """ - _response = self._raw_client.create( - name=name, rules=rules, description=description, request_options=request_options - ) - return _response.data - - def get(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> GetSegmentResponseContent: - """ - Retrieve a single segment by its ID. - - Parameters - ---------- - id : str - The ID of the segment to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetSegmentResponseContent - Segment successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.experimentation.segments.get( - id="id", - ) - """ - _response = self._raw_client.get(id, request_options=request_options) - return _response.data - - def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete a segment by ID. Idempotent: returns 204 even if segment does not exist. - - Parameters - ---------- - id : str - The ID of the segment to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.experimentation.segments.delete( - id="id", - ) - """ - _response = self._raw_client.delete(id, request_options=request_options) - return _response.data - - def update( - self, - id: str, - *, - name: typing.Optional[str] = OMIT, - description: typing.Optional[str] = OMIT, - rules: typing.Optional[typing.Sequence[SegmentRule]] = OMIT, - status: typing.Optional[SegmentStatusEnum] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateSegmentResponseContent: - """ - Partially update a segment by ID. Only provided fields are updated. Sending rules replaces the entire rules array. - - Parameters - ---------- - id : str - The ID of the segment to update. - - name : typing.Optional[str] - A human-readable name for the segment - - description : typing.Optional[str] - A description of the segment - - rules : typing.Optional[typing.Sequence[SegmentRule]] - Replaces the entire rules array. Each rule is limited to 4KB and the whole segment to 10KB (serialized). - - status : typing.Optional[SegmentStatusEnum] - Target lifecycle status. Archiving removes the segment from the active pool and is terminal (an archived segment cannot return to active). When combined with field edits, the edits apply first and the transition follows. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateSegmentResponseContent - Segment successfully updated. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.experimentation.segments.update( - id="id", - ) - """ - _response = self._raw_client.update( - id, name=name, description=description, rules=rules, status=status, request_options=request_options - ) - return _response.data - - -class AsyncSegmentsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawSegmentsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawSegmentsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawSegmentsClient - """ - return self._raw_client - - async def list( - self, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - type: typing.Optional[SegmentTypeFilterEnum] = None, - status: typing.Optional[SegmentStatusEnum] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[Segment, ListSegmentsResponseContent]: - """ - Retrieve a paginated list of segments for the tenant. - - Parameters - ---------- - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of segments to return per page. Defaults to 25, maximum 50. - - type : typing.Optional[SegmentTypeFilterEnum] - Filter by type. Exact match. - - status : typing.Optional[SegmentStatusEnum] - Filter by status. Exact match. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[Segment, ListSegmentsResponseContent] - Segments successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.experimentation.segments.list( - from_="from", - take=1, - type="auth0", - status="active", - ) - async for item in response: - yield item - - # alternatively, you can paginate page-by-page - async for page in response.iter_pages(): - yield page - - - asyncio.run(main()) - """ - return await self._raw_client.list( - from_=from_, take=take, type=type, status=status, request_options=request_options - ) - - async def create( - self, - *, - name: str, - rules: typing.Sequence[SegmentRule], - description: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateSegmentResponseContent: - """ - Create a new segment with rule-based membership criteria for use in experiments. - - Parameters - ---------- - name : str - A human-readable name for the segment - - rules : typing.Sequence[SegmentRule] - An ordered list of rules. A segment matches if any rule matches. Each rule is limited to 4KB and the whole segment to 10KB (serialized). - - description : typing.Optional[str] - A description of the segment - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateSegmentResponseContent - Segment successfully created. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0, SegmentRule - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.experimentation.segments.create( - name="name", - rules=[SegmentRule()], - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - name=name, rules=rules, description=description, request_options=request_options - ) - return _response.data - - async def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetSegmentResponseContent: - """ - Retrieve a single segment by its ID. - - Parameters - ---------- - id : str - The ID of the segment to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetSegmentResponseContent - Segment successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.experimentation.segments.get( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.get(id, request_options=request_options) - return _response.data - - async def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete a segment by ID. Idempotent: returns 204 even if segment does not exist. - - Parameters - ---------- - id : str - The ID of the segment to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.experimentation.segments.delete( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete(id, request_options=request_options) - return _response.data - - async def update( - self, - id: str, - *, - name: typing.Optional[str] = OMIT, - description: typing.Optional[str] = OMIT, - rules: typing.Optional[typing.Sequence[SegmentRule]] = OMIT, - status: typing.Optional[SegmentStatusEnum] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateSegmentResponseContent: - """ - Partially update a segment by ID. Only provided fields are updated. Sending rules replaces the entire rules array. - - Parameters - ---------- - id : str - The ID of the segment to update. - - name : typing.Optional[str] - A human-readable name for the segment - - description : typing.Optional[str] - A description of the segment - - rules : typing.Optional[typing.Sequence[SegmentRule]] - Replaces the entire rules array. Each rule is limited to 4KB and the whole segment to 10KB (serialized). - - status : typing.Optional[SegmentStatusEnum] - Target lifecycle status. Archiving removes the segment from the active pool and is terminal (an archived segment cannot return to active). When combined with field edits, the edits apply first and the transition follows. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateSegmentResponseContent - Segment successfully updated. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.experimentation.segments.update( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.update( - id, name=name, description=description, rules=rules, status=status, request_options=request_options - ) - return _response.data diff --git a/src/auth0/management/experimentation/segments/raw_client.py b/src/auth0/management/experimentation/segments/raw_client.py deleted file mode 100644 index de00a841..00000000 --- a/src/auth0/management/experimentation/segments/raw_client.py +++ /dev/null @@ -1,1154 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ...core.api_error import ApiError -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.http_response import AsyncHttpResponse, HttpResponse -from ...core.jsonable_encoder import quote_path_param -from ...core.pagination import AsyncPager, SyncPager -from ...core.parse_error import ParsingError -from ...core.pydantic_utilities import parse_obj_as -from ...core.request_options import RequestOptions -from ...core.serialization import convert_and_respect_annotation_metadata -from ...errors.bad_request_error import BadRequestError -from ...errors.conflict_error import ConflictError -from ...errors.forbidden_error import ForbiddenError -from ...errors.not_found_error import NotFoundError -from ...errors.too_many_requests_error import TooManyRequestsError -from ...errors.unauthorized_error import UnauthorizedError -from ...errors.unprocessable_entity_error import UnprocessableEntityError -from ...types.create_segment_response_content import CreateSegmentResponseContent -from ...types.get_segment_response_content import GetSegmentResponseContent -from ...types.list_segments_response_content import ListSegmentsResponseContent -from ...types.segment import Segment -from ...types.segment_rule import SegmentRule -from ...types.segment_status_enum import SegmentStatusEnum -from ...types.segment_type_filter_enum import SegmentTypeFilterEnum -from ...types.update_segment_response_content import UpdateSegmentResponseContent -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawSegmentsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - type: typing.Optional[SegmentTypeFilterEnum] = None, - status: typing.Optional[SegmentStatusEnum] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[Segment, ListSegmentsResponseContent]: - """ - Retrieve a paginated list of segments for the tenant. - - Parameters - ---------- - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of segments to return per page. Defaults to 25, maximum 50. - - type : typing.Optional[SegmentTypeFilterEnum] - Filter by type. Exact match. - - status : typing.Optional[SegmentStatusEnum] - Filter by status. Exact match. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[Segment, ListSegmentsResponseContent] - Segments successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - "experimentation/segments", - method="GET", - params={ - "from": from_, - "take": take, - "type": type, - "status": status, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListSegmentsResponseContent, - parse_obj_as( - type_=ListSegmentsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.segments - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - _get_next = lambda: self.list( - from_=_parsed_next, - take=take, - type=type, - status=status, - request_options=request_options, - ) - return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - *, - name: str, - rules: typing.Sequence[SegmentRule], - description: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[CreateSegmentResponseContent]: - """ - Create a new segment with rule-based membership criteria for use in experiments. - - Parameters - ---------- - name : str - A human-readable name for the segment - - rules : typing.Sequence[SegmentRule] - An ordered list of rules. A segment matches if any rule matches. Each rule is limited to 4KB and the whole segment to 10KB (serialized). - - description : typing.Optional[str] - A description of the segment - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CreateSegmentResponseContent] - Segment successfully created. - """ - _response = self._client_wrapper.httpx_client.request( - "experimentation/segments", - method="POST", - json={ - "name": name, - "description": description, - "rules": convert_and_respect_annotation_metadata( - object_=rules, annotation=typing.Sequence[SegmentRule], direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateSegmentResponseContent, - parse_obj_as( - type_=CreateSegmentResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 422: - raise UnprocessableEntityError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetSegmentResponseContent]: - """ - Retrieve a single segment by its ID. - - Parameters - ---------- - id : str - The ID of the segment to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetSegmentResponseContent] - Segment successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - f"experimentation/segments/{quote_path_param(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetSegmentResponseContent, - parse_obj_as( - type_=GetSegmentResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[None]: - """ - Delete a segment by ID. Idempotent: returns 204 even if segment does not exist. - - Parameters - ---------- - id : str - The ID of the segment to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"experimentation/segments/{quote_path_param(id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def update( - self, - id: str, - *, - name: typing.Optional[str] = OMIT, - description: typing.Optional[str] = OMIT, - rules: typing.Optional[typing.Sequence[SegmentRule]] = OMIT, - status: typing.Optional[SegmentStatusEnum] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[UpdateSegmentResponseContent]: - """ - Partially update a segment by ID. Only provided fields are updated. Sending rules replaces the entire rules array. - - Parameters - ---------- - id : str - The ID of the segment to update. - - name : typing.Optional[str] - A human-readable name for the segment - - description : typing.Optional[str] - A description of the segment - - rules : typing.Optional[typing.Sequence[SegmentRule]] - Replaces the entire rules array. Each rule is limited to 4KB and the whole segment to 10KB (serialized). - - status : typing.Optional[SegmentStatusEnum] - Target lifecycle status. Archiving removes the segment from the active pool and is terminal (an archived segment cannot return to active). When combined with field edits, the edits apply first and the transition follows. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[UpdateSegmentResponseContent] - Segment successfully updated. - """ - _response = self._client_wrapper.httpx_client.request( - f"experimentation/segments/{quote_path_param(id)}", - method="PATCH", - json={ - "name": name, - "description": description, - "rules": convert_and_respect_annotation_metadata( - object_=rules, annotation=typing.Sequence[SegmentRule], direction="write" - ), - "status": status, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateSegmentResponseContent, - parse_obj_as( - type_=UpdateSegmentResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 422: - raise UnprocessableEntityError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawSegmentsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - type: typing.Optional[SegmentTypeFilterEnum] = None, - status: typing.Optional[SegmentStatusEnum] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[Segment, ListSegmentsResponseContent]: - """ - Retrieve a paginated list of segments for the tenant. - - Parameters - ---------- - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of segments to return per page. Defaults to 25, maximum 50. - - type : typing.Optional[SegmentTypeFilterEnum] - Filter by type. Exact match. - - status : typing.Optional[SegmentStatusEnum] - Filter by status. Exact match. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[Segment, ListSegmentsResponseContent] - Segments successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - "experimentation/segments", - method="GET", - params={ - "from": from_, - "take": take, - "type": type, - "status": status, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListSegmentsResponseContent, - parse_obj_as( - type_=ListSegmentsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.segments - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - - async def _get_next(): - return await self.list( - from_=_parsed_next, - take=take, - type=type, - status=status, - request_options=request_options, - ) - - return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - *, - name: str, - rules: typing.Sequence[SegmentRule], - description: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[CreateSegmentResponseContent]: - """ - Create a new segment with rule-based membership criteria for use in experiments. - - Parameters - ---------- - name : str - A human-readable name for the segment - - rules : typing.Sequence[SegmentRule] - An ordered list of rules. A segment matches if any rule matches. Each rule is limited to 4KB and the whole segment to 10KB (serialized). - - description : typing.Optional[str] - A description of the segment - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CreateSegmentResponseContent] - Segment successfully created. - """ - _response = await self._client_wrapper.httpx_client.request( - "experimentation/segments", - method="POST", - json={ - "name": name, - "description": description, - "rules": convert_and_respect_annotation_metadata( - object_=rules, annotation=typing.Sequence[SegmentRule], direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateSegmentResponseContent, - parse_obj_as( - type_=CreateSegmentResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 422: - raise UnprocessableEntityError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetSegmentResponseContent]: - """ - Retrieve a single segment by its ID. - - Parameters - ---------- - id : str - The ID of the segment to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetSegmentResponseContent] - Segment successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - f"experimentation/segments/{quote_path_param(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetSegmentResponseContent, - parse_obj_as( - type_=GetSegmentResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def delete( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Delete a segment by ID. Idempotent: returns 204 even if segment does not exist. - - Parameters - ---------- - id : str - The ID of the segment to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"experimentation/segments/{quote_path_param(id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def update( - self, - id: str, - *, - name: typing.Optional[str] = OMIT, - description: typing.Optional[str] = OMIT, - rules: typing.Optional[typing.Sequence[SegmentRule]] = OMIT, - status: typing.Optional[SegmentStatusEnum] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[UpdateSegmentResponseContent]: - """ - Partially update a segment by ID. Only provided fields are updated. Sending rules replaces the entire rules array. - - Parameters - ---------- - id : str - The ID of the segment to update. - - name : typing.Optional[str] - A human-readable name for the segment - - description : typing.Optional[str] - A description of the segment - - rules : typing.Optional[typing.Sequence[SegmentRule]] - Replaces the entire rules array. Each rule is limited to 4KB and the whole segment to 10KB (serialized). - - status : typing.Optional[SegmentStatusEnum] - Target lifecycle status. Archiving removes the segment from the active pool and is terminal (an archived segment cannot return to active). When combined with field edits, the edits apply first and the transition follows. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[UpdateSegmentResponseContent] - Segment successfully updated. - """ - _response = await self._client_wrapper.httpx_client.request( - f"experimentation/segments/{quote_path_param(id)}", - method="PATCH", - json={ - "name": name, - "description": description, - "rules": convert_and_respect_annotation_metadata( - object_=rules, annotation=typing.Sequence[SegmentRule], direction="write" - ), - "status": status, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateSegmentResponseContent, - parse_obj_as( - type_=UpdateSegmentResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 422: - raise UnprocessableEntityError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/flows/__init__.py b/src/auth0/management/flows/__init__.py deleted file mode 100644 index 271eb0de..00000000 --- a/src/auth0/management/flows/__init__.py +++ /dev/null @@ -1,34 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from . import executions, vault -_dynamic_imports: typing.Dict[str, str] = {"executions": ".executions", "vault": ".vault"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - if module_name == f".{attr_name}": - return module - else: - return getattr(module, attr_name) - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["executions", "vault"] diff --git a/src/auth0/management/flows/client.py b/src/auth0/management/flows/client.py deleted file mode 100644 index 328e1466..00000000 --- a/src/auth0/management/flows/client.py +++ /dev/null @@ -1,559 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.pagination import AsyncPager, SyncPager -from ..core.request_options import RequestOptions -from ..types.create_flow_response_content import CreateFlowResponseContent -from ..types.flow_action import FlowAction -from ..types.flow_summary import FlowSummary -from ..types.get_flow_request_parameters_hydrate_enum import GetFlowRequestParametersHydrateEnum -from ..types.get_flow_response_content import GetFlowResponseContent -from ..types.list_flows_offset_paginated_response_content import ListFlowsOffsetPaginatedResponseContent -from ..types.list_flows_request_parameters_hydrate_enum import ListFlowsRequestParametersHydrateEnum -from ..types.update_flow_response_content import UpdateFlowResponseContent -from .raw_client import AsyncRawFlowsClient, RawFlowsClient - -if typing.TYPE_CHECKING: - from .executions.client import AsyncExecutionsClient, ExecutionsClient - from .vault.client import AsyncVaultClient, VaultClient -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class FlowsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawFlowsClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._executions: typing.Optional[ExecutionsClient] = None - self._vault: typing.Optional[VaultClient] = None - - @property - def with_raw_response(self) -> RawFlowsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawFlowsClient - """ - return self._raw_client - - def list( - self, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - include_totals: typing.Optional[bool] = True, - hydrate: typing.Optional[ - typing.Union[ListFlowsRequestParametersHydrateEnum, typing.Sequence[ListFlowsRequestParametersHydrateEnum]] - ] = None, - synchronous: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[FlowSummary, ListFlowsOffsetPaginatedResponseContent]: - """ - Parameters - ---------- - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. Defaults to 50. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - hydrate : typing.Optional[typing.Union[ListFlowsRequestParametersHydrateEnum, typing.Sequence[ListFlowsRequestParametersHydrateEnum]]] - hydration param - - synchronous : typing.Optional[bool] - flag to filter by sync/async flows - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[FlowSummary, ListFlowsOffsetPaginatedResponseContent] - Flows successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.flows.list( - page=1, - per_page=1, - include_totals=True, - hydrate=["form_count"], - synchronous=True, - ) - for item in response: - yield item - # alternatively, you can paginate page-by-page - for page in response.iter_pages(): - yield page - """ - return self._raw_client.list( - page=page, - per_page=per_page, - include_totals=include_totals, - hydrate=hydrate, - synchronous=synchronous, - request_options=request_options, - ) - - def create( - self, - *, - name: str, - actions: typing.Optional[typing.Sequence[FlowAction]] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateFlowResponseContent: - """ - Parameters - ---------- - name : str - - actions : typing.Optional[typing.Sequence[FlowAction]] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateFlowResponseContent - Flow successfully created. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.flows.create( - name="name", - ) - """ - _response = self._raw_client.create(name=name, actions=actions, request_options=request_options) - return _response.data - - def get( - self, - id: str, - *, - hydrate: typing.Optional[ - typing.Union[GetFlowRequestParametersHydrateEnum, typing.Sequence[GetFlowRequestParametersHydrateEnum]] - ] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> GetFlowResponseContent: - """ - Parameters - ---------- - id : str - Flow identifier - - hydrate : typing.Optional[typing.Union[GetFlowRequestParametersHydrateEnum, typing.Sequence[GetFlowRequestParametersHydrateEnum]]] - hydration param - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetFlowResponseContent - Flow successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.flows.get( - id="id", - hydrate=["form_count"], - ) - """ - _response = self._raw_client.get(id, hydrate=hydrate, request_options=request_options) - return _response.data - - def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Parameters - ---------- - id : str - Flow id - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.flows.delete( - id="id", - ) - """ - _response = self._raw_client.delete(id, request_options=request_options) - return _response.data - - def update( - self, - id: str, - *, - name: typing.Optional[str] = OMIT, - actions: typing.Optional[typing.Sequence[FlowAction]] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateFlowResponseContent: - """ - Parameters - ---------- - id : str - Flow identifier - - name : typing.Optional[str] - - actions : typing.Optional[typing.Sequence[FlowAction]] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateFlowResponseContent - Flow successfully updated. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.flows.update( - id="id", - ) - """ - _response = self._raw_client.update(id, name=name, actions=actions, request_options=request_options) - return _response.data - - @property - def executions(self): - if self._executions is None: - from .executions.client import ExecutionsClient # noqa: E402 - - self._executions = ExecutionsClient(client_wrapper=self._client_wrapper) - return self._executions - - @property - def vault(self): - if self._vault is None: - from .vault.client import VaultClient # noqa: E402 - - self._vault = VaultClient(client_wrapper=self._client_wrapper) - return self._vault - - -class AsyncFlowsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawFlowsClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._executions: typing.Optional[AsyncExecutionsClient] = None - self._vault: typing.Optional[AsyncVaultClient] = None - - @property - def with_raw_response(self) -> AsyncRawFlowsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawFlowsClient - """ - return self._raw_client - - async def list( - self, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - include_totals: typing.Optional[bool] = True, - hydrate: typing.Optional[ - typing.Union[ListFlowsRequestParametersHydrateEnum, typing.Sequence[ListFlowsRequestParametersHydrateEnum]] - ] = None, - synchronous: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[FlowSummary, ListFlowsOffsetPaginatedResponseContent]: - """ - Parameters - ---------- - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. Defaults to 50. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - hydrate : typing.Optional[typing.Union[ListFlowsRequestParametersHydrateEnum, typing.Sequence[ListFlowsRequestParametersHydrateEnum]]] - hydration param - - synchronous : typing.Optional[bool] - flag to filter by sync/async flows - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[FlowSummary, ListFlowsOffsetPaginatedResponseContent] - Flows successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.flows.list( - page=1, - per_page=1, - include_totals=True, - hydrate=["form_count"], - synchronous=True, - ) - async for item in response: - yield item - - # alternatively, you can paginate page-by-page - async for page in response.iter_pages(): - yield page - - - asyncio.run(main()) - """ - return await self._raw_client.list( - page=page, - per_page=per_page, - include_totals=include_totals, - hydrate=hydrate, - synchronous=synchronous, - request_options=request_options, - ) - - async def create( - self, - *, - name: str, - actions: typing.Optional[typing.Sequence[FlowAction]] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateFlowResponseContent: - """ - Parameters - ---------- - name : str - - actions : typing.Optional[typing.Sequence[FlowAction]] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateFlowResponseContent - Flow successfully created. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.flows.create( - name="name", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create(name=name, actions=actions, request_options=request_options) - return _response.data - - async def get( - self, - id: str, - *, - hydrate: typing.Optional[ - typing.Union[GetFlowRequestParametersHydrateEnum, typing.Sequence[GetFlowRequestParametersHydrateEnum]] - ] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> GetFlowResponseContent: - """ - Parameters - ---------- - id : str - Flow identifier - - hydrate : typing.Optional[typing.Union[GetFlowRequestParametersHydrateEnum, typing.Sequence[GetFlowRequestParametersHydrateEnum]]] - hydration param - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetFlowResponseContent - Flow successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.flows.get( - id="id", - hydrate=["form_count"], - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.get(id, hydrate=hydrate, request_options=request_options) - return _response.data - - async def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Parameters - ---------- - id : str - Flow id - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.flows.delete( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete(id, request_options=request_options) - return _response.data - - async def update( - self, - id: str, - *, - name: typing.Optional[str] = OMIT, - actions: typing.Optional[typing.Sequence[FlowAction]] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateFlowResponseContent: - """ - Parameters - ---------- - id : str - Flow identifier - - name : typing.Optional[str] - - actions : typing.Optional[typing.Sequence[FlowAction]] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateFlowResponseContent - Flow successfully updated. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.flows.update( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.update(id, name=name, actions=actions, request_options=request_options) - return _response.data - - @property - def executions(self): - if self._executions is None: - from .executions.client import AsyncExecutionsClient # noqa: E402 - - self._executions = AsyncExecutionsClient(client_wrapper=self._client_wrapper) - return self._executions - - @property - def vault(self): - if self._vault is None: - from .vault.client import AsyncVaultClient # noqa: E402 - - self._vault = AsyncVaultClient(client_wrapper=self._client_wrapper) - return self._vault diff --git a/src/auth0/management/flows/executions/__init__.py b/src/auth0/management/flows/executions/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/flows/executions/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/flows/executions/client.py b/src/auth0/management/flows/executions/client.py deleted file mode 100644 index 1d66ae46..00000000 --- a/src/auth0/management/flows/executions/client.py +++ /dev/null @@ -1,345 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.pagination import AsyncPager, SyncPager -from ...core.request_options import RequestOptions -from ...types.flow_execution_summary import FlowExecutionSummary -from ...types.get_flow_execution_request_parameters_hydrate_enum import GetFlowExecutionRequestParametersHydrateEnum -from ...types.get_flow_execution_response_content import GetFlowExecutionResponseContent -from ...types.list_flow_executions_paginated_response_content import ListFlowExecutionsPaginatedResponseContent -from .raw_client import AsyncRawExecutionsClient, RawExecutionsClient - - -class ExecutionsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawExecutionsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawExecutionsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawExecutionsClient - """ - return self._raw_client - - def list( - self, - flow_id: str, - *, - include_totals: typing.Optional[bool] = True, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[FlowExecutionSummary, ListFlowExecutionsPaginatedResponseContent]: - """ - Parameters - ---------- - flow_id : str - Flow id - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[FlowExecutionSummary, ListFlowExecutionsPaginatedResponseContent] - Flow executions successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.flows.executions.list( - flow_id="flow_id", - include_totals=True, - from_="from", - take=1, - ) - for item in response: - yield item - # alternatively, you can paginate page-by-page - for page in response.iter_pages(): - yield page - """ - return self._raw_client.list( - flow_id, include_totals=include_totals, from_=from_, take=take, request_options=request_options - ) - - def get( - self, - flow_id: str, - execution_id: str, - *, - hydrate: typing.Optional[ - typing.Union[ - GetFlowExecutionRequestParametersHydrateEnum, - typing.Sequence[GetFlowExecutionRequestParametersHydrateEnum], - ] - ] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> GetFlowExecutionResponseContent: - """ - Parameters - ---------- - flow_id : str - Flow id - - execution_id : str - Flow execution id - - hydrate : typing.Optional[typing.Union[GetFlowExecutionRequestParametersHydrateEnum, typing.Sequence[GetFlowExecutionRequestParametersHydrateEnum]]] - Hydration param - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetFlowExecutionResponseContent - Flow execution successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.flows.executions.get( - flow_id="flow_id", - execution_id="execution_id", - hydrate=["debug"], - ) - """ - _response = self._raw_client.get(flow_id, execution_id, hydrate=hydrate, request_options=request_options) - return _response.data - - def delete( - self, flow_id: str, execution_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> None: - """ - Parameters - ---------- - flow_id : str - Flows id - - execution_id : str - Flow execution identifier - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.flows.executions.delete( - flow_id="flow_id", - execution_id="execution_id", - ) - """ - _response = self._raw_client.delete(flow_id, execution_id, request_options=request_options) - return _response.data - - -class AsyncExecutionsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawExecutionsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawExecutionsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawExecutionsClient - """ - return self._raw_client - - async def list( - self, - flow_id: str, - *, - include_totals: typing.Optional[bool] = True, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[FlowExecutionSummary, ListFlowExecutionsPaginatedResponseContent]: - """ - Parameters - ---------- - flow_id : str - Flow id - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[FlowExecutionSummary, ListFlowExecutionsPaginatedResponseContent] - Flow executions successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.flows.executions.list( - flow_id="flow_id", - include_totals=True, - from_="from", - take=1, - ) - async for item in response: - yield item - - # alternatively, you can paginate page-by-page - async for page in response.iter_pages(): - yield page - - - asyncio.run(main()) - """ - return await self._raw_client.list( - flow_id, include_totals=include_totals, from_=from_, take=take, request_options=request_options - ) - - async def get( - self, - flow_id: str, - execution_id: str, - *, - hydrate: typing.Optional[ - typing.Union[ - GetFlowExecutionRequestParametersHydrateEnum, - typing.Sequence[GetFlowExecutionRequestParametersHydrateEnum], - ] - ] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> GetFlowExecutionResponseContent: - """ - Parameters - ---------- - flow_id : str - Flow id - - execution_id : str - Flow execution id - - hydrate : typing.Optional[typing.Union[GetFlowExecutionRequestParametersHydrateEnum, typing.Sequence[GetFlowExecutionRequestParametersHydrateEnum]]] - Hydration param - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetFlowExecutionResponseContent - Flow execution successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.flows.executions.get( - flow_id="flow_id", - execution_id="execution_id", - hydrate=["debug"], - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.get(flow_id, execution_id, hydrate=hydrate, request_options=request_options) - return _response.data - - async def delete( - self, flow_id: str, execution_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> None: - """ - Parameters - ---------- - flow_id : str - Flows id - - execution_id : str - Flow execution identifier - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.flows.executions.delete( - flow_id="flow_id", - execution_id="execution_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete(flow_id, execution_id, request_options=request_options) - return _response.data diff --git a/src/auth0/management/flows/executions/raw_client.py b/src/auth0/management/flows/executions/raw_client.py deleted file mode 100644 index 8aa9c071..00000000 --- a/src/auth0/management/flows/executions/raw_client.py +++ /dev/null @@ -1,678 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ...core.api_error import ApiError -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.http_response import AsyncHttpResponse, HttpResponse -from ...core.jsonable_encoder import quote_path_param -from ...core.pagination import AsyncPager, SyncPager -from ...core.parse_error import ParsingError -from ...core.pydantic_utilities import parse_obj_as -from ...core.request_options import RequestOptions -from ...errors.bad_request_error import BadRequestError -from ...errors.forbidden_error import ForbiddenError -from ...errors.not_found_error import NotFoundError -from ...errors.too_many_requests_error import TooManyRequestsError -from ...errors.unauthorized_error import UnauthorizedError -from ...types.flow_execution_summary import FlowExecutionSummary -from ...types.get_flow_execution_request_parameters_hydrate_enum import GetFlowExecutionRequestParametersHydrateEnum -from ...types.get_flow_execution_response_content import GetFlowExecutionResponseContent -from ...types.list_flow_executions_paginated_response_content import ListFlowExecutionsPaginatedResponseContent -from pydantic import ValidationError - - -class RawExecutionsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - flow_id: str, - *, - include_totals: typing.Optional[bool] = True, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[FlowExecutionSummary, ListFlowExecutionsPaginatedResponseContent]: - """ - Parameters - ---------- - flow_id : str - Flow id - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[FlowExecutionSummary, ListFlowExecutionsPaginatedResponseContent] - Flow executions successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - f"flows/{quote_path_param(flow_id)}/executions", - method="GET", - params={ - "include_totals": include_totals, - "from": from_, - "take": take, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListFlowExecutionsPaginatedResponseContent, - parse_obj_as( - type_=ListFlowExecutionsPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.executions - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - _get_next = lambda: self.list( - flow_id, - include_totals=include_totals, - from_=_parsed_next, - take=take, - request_options=request_options, - ) - return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def get( - self, - flow_id: str, - execution_id: str, - *, - hydrate: typing.Optional[ - typing.Union[ - GetFlowExecutionRequestParametersHydrateEnum, - typing.Sequence[GetFlowExecutionRequestParametersHydrateEnum], - ] - ] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[GetFlowExecutionResponseContent]: - """ - Parameters - ---------- - flow_id : str - Flow id - - execution_id : str - Flow execution id - - hydrate : typing.Optional[typing.Union[GetFlowExecutionRequestParametersHydrateEnum, typing.Sequence[GetFlowExecutionRequestParametersHydrateEnum]]] - Hydration param - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetFlowExecutionResponseContent] - Flow execution successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - f"flows/{quote_path_param(flow_id)}/executions/{quote_path_param(execution_id)}", - method="GET", - params={ - "hydrate": hydrate, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetFlowExecutionResponseContent, - parse_obj_as( - type_=GetFlowExecutionResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def delete( - self, flow_id: str, execution_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[None]: - """ - Parameters - ---------- - flow_id : str - Flows id - - execution_id : str - Flow execution identifier - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"flows/{quote_path_param(flow_id)}/executions/{quote_path_param(execution_id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawExecutionsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - flow_id: str, - *, - include_totals: typing.Optional[bool] = True, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[FlowExecutionSummary, ListFlowExecutionsPaginatedResponseContent]: - """ - Parameters - ---------- - flow_id : str - Flow id - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[FlowExecutionSummary, ListFlowExecutionsPaginatedResponseContent] - Flow executions successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - f"flows/{quote_path_param(flow_id)}/executions", - method="GET", - params={ - "include_totals": include_totals, - "from": from_, - "take": take, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListFlowExecutionsPaginatedResponseContent, - parse_obj_as( - type_=ListFlowExecutionsPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.executions - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - - async def _get_next(): - return await self.list( - flow_id, - include_totals=include_totals, - from_=_parsed_next, - take=take, - request_options=request_options, - ) - - return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def get( - self, - flow_id: str, - execution_id: str, - *, - hydrate: typing.Optional[ - typing.Union[ - GetFlowExecutionRequestParametersHydrateEnum, - typing.Sequence[GetFlowExecutionRequestParametersHydrateEnum], - ] - ] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[GetFlowExecutionResponseContent]: - """ - Parameters - ---------- - flow_id : str - Flow id - - execution_id : str - Flow execution id - - hydrate : typing.Optional[typing.Union[GetFlowExecutionRequestParametersHydrateEnum, typing.Sequence[GetFlowExecutionRequestParametersHydrateEnum]]] - Hydration param - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetFlowExecutionResponseContent] - Flow execution successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - f"flows/{quote_path_param(flow_id)}/executions/{quote_path_param(execution_id)}", - method="GET", - params={ - "hydrate": hydrate, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetFlowExecutionResponseContent, - parse_obj_as( - type_=GetFlowExecutionResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def delete( - self, flow_id: str, execution_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Parameters - ---------- - flow_id : str - Flows id - - execution_id : str - Flow execution identifier - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"flows/{quote_path_param(flow_id)}/executions/{quote_path_param(execution_id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/flows/raw_client.py b/src/auth0/management/flows/raw_client.py deleted file mode 100644 index a854aeb6..00000000 --- a/src/auth0/management/flows/raw_client.py +++ /dev/null @@ -1,1137 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ..core.api_error import ApiError -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.http_response import AsyncHttpResponse, HttpResponse -from ..core.jsonable_encoder import quote_path_param -from ..core.pagination import AsyncPager, SyncPager -from ..core.parse_error import ParsingError -from ..core.pydantic_utilities import parse_obj_as -from ..core.request_options import RequestOptions -from ..core.serialization import convert_and_respect_annotation_metadata -from ..errors.bad_request_error import BadRequestError -from ..errors.conflict_error import ConflictError -from ..errors.forbidden_error import ForbiddenError -from ..errors.not_found_error import NotFoundError -from ..errors.too_many_requests_error import TooManyRequestsError -from ..errors.unauthorized_error import UnauthorizedError -from ..types.create_flow_response_content import CreateFlowResponseContent -from ..types.flow_action import FlowAction -from ..types.flow_summary import FlowSummary -from ..types.get_flow_request_parameters_hydrate_enum import GetFlowRequestParametersHydrateEnum -from ..types.get_flow_response_content import GetFlowResponseContent -from ..types.list_flows_offset_paginated_response_content import ListFlowsOffsetPaginatedResponseContent -from ..types.list_flows_request_parameters_hydrate_enum import ListFlowsRequestParametersHydrateEnum -from ..types.update_flow_response_content import UpdateFlowResponseContent -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawFlowsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - include_totals: typing.Optional[bool] = True, - hydrate: typing.Optional[ - typing.Union[ListFlowsRequestParametersHydrateEnum, typing.Sequence[ListFlowsRequestParametersHydrateEnum]] - ] = None, - synchronous: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[FlowSummary, ListFlowsOffsetPaginatedResponseContent]: - """ - Parameters - ---------- - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. Defaults to 50. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - hydrate : typing.Optional[typing.Union[ListFlowsRequestParametersHydrateEnum, typing.Sequence[ListFlowsRequestParametersHydrateEnum]]] - hydration param - - synchronous : typing.Optional[bool] - flag to filter by sync/async flows - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[FlowSummary, ListFlowsOffsetPaginatedResponseContent] - Flows successfully retrieved. - """ - page = page if page is not None else 0 - - _response = self._client_wrapper.httpx_client.request( - "flows", - method="GET", - params={ - "page": page, - "per_page": per_page, - "include_totals": include_totals, - "hydrate": hydrate, - "synchronous": synchronous, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListFlowsOffsetPaginatedResponseContent, - parse_obj_as( - type_=ListFlowsOffsetPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.flows - _has_next = len(_items or []) > 0 - _get_next = lambda: self.list( - page=page + 1, - per_page=per_page, - include_totals=include_totals, - hydrate=hydrate, - synchronous=synchronous, - request_options=request_options, - ) - return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - *, - name: str, - actions: typing.Optional[typing.Sequence[FlowAction]] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[CreateFlowResponseContent]: - """ - Parameters - ---------- - name : str - - actions : typing.Optional[typing.Sequence[FlowAction]] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CreateFlowResponseContent] - Flow successfully created. - """ - _response = self._client_wrapper.httpx_client.request( - "flows", - method="POST", - json={ - "name": name, - "actions": convert_and_respect_annotation_metadata( - object_=actions, annotation=typing.Sequence[FlowAction], direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateFlowResponseContent, - parse_obj_as( - type_=CreateFlowResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def get( - self, - id: str, - *, - hydrate: typing.Optional[ - typing.Union[GetFlowRequestParametersHydrateEnum, typing.Sequence[GetFlowRequestParametersHydrateEnum]] - ] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[GetFlowResponseContent]: - """ - Parameters - ---------- - id : str - Flow identifier - - hydrate : typing.Optional[typing.Union[GetFlowRequestParametersHydrateEnum, typing.Sequence[GetFlowRequestParametersHydrateEnum]]] - hydration param - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetFlowResponseContent] - Flow successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - f"flows/{quote_path_param(id)}", - method="GET", - params={ - "hydrate": hydrate, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetFlowResponseContent, - parse_obj_as( - type_=GetFlowResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[None]: - """ - Parameters - ---------- - id : str - Flow id - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"flows/{quote_path_param(id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def update( - self, - id: str, - *, - name: typing.Optional[str] = OMIT, - actions: typing.Optional[typing.Sequence[FlowAction]] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[UpdateFlowResponseContent]: - """ - Parameters - ---------- - id : str - Flow identifier - - name : typing.Optional[str] - - actions : typing.Optional[typing.Sequence[FlowAction]] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[UpdateFlowResponseContent] - Flow successfully updated. - """ - _response = self._client_wrapper.httpx_client.request( - f"flows/{quote_path_param(id)}", - method="PATCH", - json={ - "name": name, - "actions": convert_and_respect_annotation_metadata( - object_=actions, annotation=typing.Optional[typing.Sequence[FlowAction]], direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateFlowResponseContent, - parse_obj_as( - type_=UpdateFlowResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawFlowsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - include_totals: typing.Optional[bool] = True, - hydrate: typing.Optional[ - typing.Union[ListFlowsRequestParametersHydrateEnum, typing.Sequence[ListFlowsRequestParametersHydrateEnum]] - ] = None, - synchronous: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[FlowSummary, ListFlowsOffsetPaginatedResponseContent]: - """ - Parameters - ---------- - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. Defaults to 50. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - hydrate : typing.Optional[typing.Union[ListFlowsRequestParametersHydrateEnum, typing.Sequence[ListFlowsRequestParametersHydrateEnum]]] - hydration param - - synchronous : typing.Optional[bool] - flag to filter by sync/async flows - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[FlowSummary, ListFlowsOffsetPaginatedResponseContent] - Flows successfully retrieved. - """ - page = page if page is not None else 0 - - _response = await self._client_wrapper.httpx_client.request( - "flows", - method="GET", - params={ - "page": page, - "per_page": per_page, - "include_totals": include_totals, - "hydrate": hydrate, - "synchronous": synchronous, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListFlowsOffsetPaginatedResponseContent, - parse_obj_as( - type_=ListFlowsOffsetPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.flows - _has_next = len(_items or []) > 0 - - async def _get_next(): - return await self.list( - page=page + 1, - per_page=per_page, - include_totals=include_totals, - hydrate=hydrate, - synchronous=synchronous, - request_options=request_options, - ) - - return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - *, - name: str, - actions: typing.Optional[typing.Sequence[FlowAction]] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[CreateFlowResponseContent]: - """ - Parameters - ---------- - name : str - - actions : typing.Optional[typing.Sequence[FlowAction]] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CreateFlowResponseContent] - Flow successfully created. - """ - _response = await self._client_wrapper.httpx_client.request( - "flows", - method="POST", - json={ - "name": name, - "actions": convert_and_respect_annotation_metadata( - object_=actions, annotation=typing.Sequence[FlowAction], direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateFlowResponseContent, - parse_obj_as( - type_=CreateFlowResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def get( - self, - id: str, - *, - hydrate: typing.Optional[ - typing.Union[GetFlowRequestParametersHydrateEnum, typing.Sequence[GetFlowRequestParametersHydrateEnum]] - ] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[GetFlowResponseContent]: - """ - Parameters - ---------- - id : str - Flow identifier - - hydrate : typing.Optional[typing.Union[GetFlowRequestParametersHydrateEnum, typing.Sequence[GetFlowRequestParametersHydrateEnum]]] - hydration param - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetFlowResponseContent] - Flow successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - f"flows/{quote_path_param(id)}", - method="GET", - params={ - "hydrate": hydrate, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetFlowResponseContent, - parse_obj_as( - type_=GetFlowResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def delete( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Parameters - ---------- - id : str - Flow id - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"flows/{quote_path_param(id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def update( - self, - id: str, - *, - name: typing.Optional[str] = OMIT, - actions: typing.Optional[typing.Sequence[FlowAction]] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[UpdateFlowResponseContent]: - """ - Parameters - ---------- - id : str - Flow identifier - - name : typing.Optional[str] - - actions : typing.Optional[typing.Sequence[FlowAction]] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[UpdateFlowResponseContent] - Flow successfully updated. - """ - _response = await self._client_wrapper.httpx_client.request( - f"flows/{quote_path_param(id)}", - method="PATCH", - json={ - "name": name, - "actions": convert_and_respect_annotation_metadata( - object_=actions, annotation=typing.Optional[typing.Sequence[FlowAction]], direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateFlowResponseContent, - parse_obj_as( - type_=UpdateFlowResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/flows/vault/__init__.py b/src/auth0/management/flows/vault/__init__.py deleted file mode 100644 index 02809ca5..00000000 --- a/src/auth0/management/flows/vault/__init__.py +++ /dev/null @@ -1,34 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from . import connections -_dynamic_imports: typing.Dict[str, str] = {"connections": ".connections"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - if module_name == f".{attr_name}": - return module - else: - return getattr(module, attr_name) - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["connections"] diff --git a/src/auth0/management/flows/vault/client.py b/src/auth0/management/flows/vault/client.py deleted file mode 100644 index 5385fa92..00000000 --- a/src/auth0/management/flows/vault/client.py +++ /dev/null @@ -1,63 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .raw_client import AsyncRawVaultClient, RawVaultClient - -if typing.TYPE_CHECKING: - from .connections.client import AsyncConnectionsClient, ConnectionsClient - - -class VaultClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawVaultClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._connections: typing.Optional[ConnectionsClient] = None - - @property - def with_raw_response(self) -> RawVaultClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawVaultClient - """ - return self._raw_client - - @property - def connections(self): - if self._connections is None: - from .connections.client import ConnectionsClient # noqa: E402 - - self._connections = ConnectionsClient(client_wrapper=self._client_wrapper) - return self._connections - - -class AsyncVaultClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawVaultClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._connections: typing.Optional[AsyncConnectionsClient] = None - - @property - def with_raw_response(self) -> AsyncRawVaultClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawVaultClient - """ - return self._raw_client - - @property - def connections(self): - if self._connections is None: - from .connections.client import AsyncConnectionsClient # noqa: E402 - - self._connections = AsyncConnectionsClient(client_wrapper=self._client_wrapper) - return self._connections diff --git a/src/auth0/management/flows/vault/connections/__init__.py b/src/auth0/management/flows/vault/connections/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/flows/vault/connections/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/flows/vault/connections/client.py b/src/auth0/management/flows/vault/connections/client.py deleted file mode 100644 index 2f984068..00000000 --- a/src/auth0/management/flows/vault/connections/client.py +++ /dev/null @@ -1,483 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ....core.pagination import AsyncPager, SyncPager -from ....core.request_options import RequestOptions -from ....types.create_flows_vault_connection_request_content import CreateFlowsVaultConnectionRequestContent -from ....types.create_flows_vault_connection_response_content import CreateFlowsVaultConnectionResponseContent -from ....types.flows_vault_connection_summary import FlowsVaultConnectionSummary -from ....types.get_flows_vault_connection_response_content import GetFlowsVaultConnectionResponseContent -from ....types.list_flows_vault_connections_offset_paginated_response_content import ( - ListFlowsVaultConnectionsOffsetPaginatedResponseContent, -) -from ....types.update_flows_vault_connection_response_content import UpdateFlowsVaultConnectionResponseContent -from ....types.update_flows_vault_connection_setup import UpdateFlowsVaultConnectionSetup -from .raw_client import AsyncRawConnectionsClient, RawConnectionsClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class ConnectionsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawConnectionsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawConnectionsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawConnectionsClient - """ - return self._raw_client - - def list( - self, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - include_totals: typing.Optional[bool] = True, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[FlowsVaultConnectionSummary, ListFlowsVaultConnectionsOffsetPaginatedResponseContent]: - """ - Parameters - ---------- - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. Defaults to 50. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[FlowsVaultConnectionSummary, ListFlowsVaultConnectionsOffsetPaginatedResponseContent] - Vault connections successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.flows.vault.connections.list( - page=1, - per_page=1, - include_totals=True, - ) - for item in response: - yield item - # alternatively, you can paginate page-by-page - for page in response.iter_pages(): - yield page - """ - return self._raw_client.list( - page=page, per_page=per_page, include_totals=include_totals, request_options=request_options - ) - - def create( - self, - *, - request: CreateFlowsVaultConnectionRequestContent, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateFlowsVaultConnectionResponseContent: - """ - Parameters - ---------- - request : CreateFlowsVaultConnectionRequestContent - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateFlowsVaultConnectionResponseContent - Connection successfully created. - - Examples - -------- - from auth0 import ( - Auth0, - CreateFlowsVaultConnectionActivecampaignApiKey, - FlowsVaultConnectioSetupApiKeyWithBaseUrl, - ) - - client = Auth0( - token="YOUR_TOKEN", - ) - client.flows.vault.connections.create( - request=CreateFlowsVaultConnectionActivecampaignApiKey( - name="name", - app_id="ACTIVECAMPAIGN", - setup=FlowsVaultConnectioSetupApiKeyWithBaseUrl( - type="API_KEY", - api_key="api_key", - base_url="base_url", - ), - ), - ) - """ - _response = self._raw_client.create(request=request, request_options=request_options) - return _response.data - - def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetFlowsVaultConnectionResponseContent: - """ - Parameters - ---------- - id : str - Flows Vault connection ID - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetFlowsVaultConnectionResponseContent - Flow vault connection successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.flows.vault.connections.get( - id="id", - ) - """ - _response = self._raw_client.get(id, request_options=request_options) - return _response.data - - def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Parameters - ---------- - id : str - Vault connection id - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.flows.vault.connections.delete( - id="id", - ) - """ - _response = self._raw_client.delete(id, request_options=request_options) - return _response.data - - def update( - self, - id: str, - *, - name: typing.Optional[str] = OMIT, - setup: typing.Optional[UpdateFlowsVaultConnectionSetup] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateFlowsVaultConnectionResponseContent: - """ - Parameters - ---------- - id : str - Flows Vault connection ID - - name : typing.Optional[str] - Flows Vault Connection name. - - setup : typing.Optional[UpdateFlowsVaultConnectionSetup] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateFlowsVaultConnectionResponseContent - Flow vault connection successfully updated. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.flows.vault.connections.update( - id="id", - ) - """ - _response = self._raw_client.update(id, name=name, setup=setup, request_options=request_options) - return _response.data - - -class AsyncConnectionsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawConnectionsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawConnectionsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawConnectionsClient - """ - return self._raw_client - - async def list( - self, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - include_totals: typing.Optional[bool] = True, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[FlowsVaultConnectionSummary, ListFlowsVaultConnectionsOffsetPaginatedResponseContent]: - """ - Parameters - ---------- - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. Defaults to 50. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[FlowsVaultConnectionSummary, ListFlowsVaultConnectionsOffsetPaginatedResponseContent] - Vault connections successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.flows.vault.connections.list( - page=1, - per_page=1, - include_totals=True, - ) - async for item in response: - yield item - - # alternatively, you can paginate page-by-page - async for page in response.iter_pages(): - yield page - - - asyncio.run(main()) - """ - return await self._raw_client.list( - page=page, per_page=per_page, include_totals=include_totals, request_options=request_options - ) - - async def create( - self, - *, - request: CreateFlowsVaultConnectionRequestContent, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateFlowsVaultConnectionResponseContent: - """ - Parameters - ---------- - request : CreateFlowsVaultConnectionRequestContent - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateFlowsVaultConnectionResponseContent - Connection successfully created. - - Examples - -------- - import asyncio - - from auth0 import ( - AsyncAuth0, - CreateFlowsVaultConnectionActivecampaignApiKey, - FlowsVaultConnectioSetupApiKeyWithBaseUrl, - ) - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.flows.vault.connections.create( - request=CreateFlowsVaultConnectionActivecampaignApiKey( - name="name", - app_id="ACTIVECAMPAIGN", - setup=FlowsVaultConnectioSetupApiKeyWithBaseUrl( - type="API_KEY", - api_key="api_key", - base_url="base_url", - ), - ), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create(request=request, request_options=request_options) - return _response.data - - async def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetFlowsVaultConnectionResponseContent: - """ - Parameters - ---------- - id : str - Flows Vault connection ID - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetFlowsVaultConnectionResponseContent - Flow vault connection successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.flows.vault.connections.get( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.get(id, request_options=request_options) - return _response.data - - async def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Parameters - ---------- - id : str - Vault connection id - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.flows.vault.connections.delete( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete(id, request_options=request_options) - return _response.data - - async def update( - self, - id: str, - *, - name: typing.Optional[str] = OMIT, - setup: typing.Optional[UpdateFlowsVaultConnectionSetup] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateFlowsVaultConnectionResponseContent: - """ - Parameters - ---------- - id : str - Flows Vault connection ID - - name : typing.Optional[str] - Flows Vault Connection name. - - setup : typing.Optional[UpdateFlowsVaultConnectionSetup] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateFlowsVaultConnectionResponseContent - Flow vault connection successfully updated. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.flows.vault.connections.update( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.update(id, name=name, setup=setup, request_options=request_options) - return _response.data diff --git a/src/auth0/management/flows/vault/connections/raw_client.py b/src/auth0/management/flows/vault/connections/raw_client.py deleted file mode 100644 index 697d071c..00000000 --- a/src/auth0/management/flows/vault/connections/raw_client.py +++ /dev/null @@ -1,1025 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ....core.api_error import ApiError -from ....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ....core.http_response import AsyncHttpResponse, HttpResponse -from ....core.jsonable_encoder import quote_path_param -from ....core.pagination import AsyncPager, SyncPager -from ....core.parse_error import ParsingError -from ....core.pydantic_utilities import parse_obj_as -from ....core.request_options import RequestOptions -from ....core.serialization import convert_and_respect_annotation_metadata -from ....errors.bad_request_error import BadRequestError -from ....errors.forbidden_error import ForbiddenError -from ....errors.not_found_error import NotFoundError -from ....errors.too_many_requests_error import TooManyRequestsError -from ....errors.unauthorized_error import UnauthorizedError -from ....types.create_flows_vault_connection_request_content import CreateFlowsVaultConnectionRequestContent -from ....types.create_flows_vault_connection_response_content import CreateFlowsVaultConnectionResponseContent -from ....types.flows_vault_connection_summary import FlowsVaultConnectionSummary -from ....types.get_flows_vault_connection_response_content import GetFlowsVaultConnectionResponseContent -from ....types.list_flows_vault_connections_offset_paginated_response_content import ( - ListFlowsVaultConnectionsOffsetPaginatedResponseContent, -) -from ....types.update_flows_vault_connection_response_content import UpdateFlowsVaultConnectionResponseContent -from ....types.update_flows_vault_connection_setup import UpdateFlowsVaultConnectionSetup -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawConnectionsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - include_totals: typing.Optional[bool] = True, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[FlowsVaultConnectionSummary, ListFlowsVaultConnectionsOffsetPaginatedResponseContent]: - """ - Parameters - ---------- - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. Defaults to 50. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[FlowsVaultConnectionSummary, ListFlowsVaultConnectionsOffsetPaginatedResponseContent] - Vault connections successfully retrieved. - """ - page = page if page is not None else 0 - - _response = self._client_wrapper.httpx_client.request( - "flows/vault/connections", - method="GET", - params={ - "page": page, - "per_page": per_page, - "include_totals": include_totals, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListFlowsVaultConnectionsOffsetPaginatedResponseContent, - parse_obj_as( - type_=ListFlowsVaultConnectionsOffsetPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.connections - _has_next = len(_items or []) > 0 - _get_next = lambda: self.list( - page=page + 1, - per_page=per_page, - include_totals=include_totals, - request_options=request_options, - ) - return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - *, - request: CreateFlowsVaultConnectionRequestContent, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[CreateFlowsVaultConnectionResponseContent]: - """ - Parameters - ---------- - request : CreateFlowsVaultConnectionRequestContent - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CreateFlowsVaultConnectionResponseContent] - Connection successfully created. - """ - _response = self._client_wrapper.httpx_client.request( - "flows/vault/connections", - method="POST", - json=convert_and_respect_annotation_metadata( - object_=request, annotation=CreateFlowsVaultConnectionRequestContent, direction="write" - ), - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateFlowsVaultConnectionResponseContent, - parse_obj_as( - type_=CreateFlowsVaultConnectionResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetFlowsVaultConnectionResponseContent]: - """ - Parameters - ---------- - id : str - Flows Vault connection ID - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetFlowsVaultConnectionResponseContent] - Flow vault connection successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - f"flows/vault/connections/{quote_path_param(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetFlowsVaultConnectionResponseContent, - parse_obj_as( - type_=GetFlowsVaultConnectionResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[None]: - """ - Parameters - ---------- - id : str - Vault connection id - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"flows/vault/connections/{quote_path_param(id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def update( - self, - id: str, - *, - name: typing.Optional[str] = OMIT, - setup: typing.Optional[UpdateFlowsVaultConnectionSetup] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[UpdateFlowsVaultConnectionResponseContent]: - """ - Parameters - ---------- - id : str - Flows Vault connection ID - - name : typing.Optional[str] - Flows Vault Connection name. - - setup : typing.Optional[UpdateFlowsVaultConnectionSetup] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[UpdateFlowsVaultConnectionResponseContent] - Flow vault connection successfully updated. - """ - _response = self._client_wrapper.httpx_client.request( - f"flows/vault/connections/{quote_path_param(id)}", - method="PATCH", - json={ - "name": name, - "setup": convert_and_respect_annotation_metadata( - object_=setup, annotation=UpdateFlowsVaultConnectionSetup, direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateFlowsVaultConnectionResponseContent, - parse_obj_as( - type_=UpdateFlowsVaultConnectionResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawConnectionsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - include_totals: typing.Optional[bool] = True, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[FlowsVaultConnectionSummary, ListFlowsVaultConnectionsOffsetPaginatedResponseContent]: - """ - Parameters - ---------- - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. Defaults to 50. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[FlowsVaultConnectionSummary, ListFlowsVaultConnectionsOffsetPaginatedResponseContent] - Vault connections successfully retrieved. - """ - page = page if page is not None else 0 - - _response = await self._client_wrapper.httpx_client.request( - "flows/vault/connections", - method="GET", - params={ - "page": page, - "per_page": per_page, - "include_totals": include_totals, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListFlowsVaultConnectionsOffsetPaginatedResponseContent, - parse_obj_as( - type_=ListFlowsVaultConnectionsOffsetPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.connections - _has_next = len(_items or []) > 0 - - async def _get_next(): - return await self.list( - page=page + 1, - per_page=per_page, - include_totals=include_totals, - request_options=request_options, - ) - - return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - *, - request: CreateFlowsVaultConnectionRequestContent, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[CreateFlowsVaultConnectionResponseContent]: - """ - Parameters - ---------- - request : CreateFlowsVaultConnectionRequestContent - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CreateFlowsVaultConnectionResponseContent] - Connection successfully created. - """ - _response = await self._client_wrapper.httpx_client.request( - "flows/vault/connections", - method="POST", - json=convert_and_respect_annotation_metadata( - object_=request, annotation=CreateFlowsVaultConnectionRequestContent, direction="write" - ), - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateFlowsVaultConnectionResponseContent, - parse_obj_as( - type_=CreateFlowsVaultConnectionResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetFlowsVaultConnectionResponseContent]: - """ - Parameters - ---------- - id : str - Flows Vault connection ID - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetFlowsVaultConnectionResponseContent] - Flow vault connection successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - f"flows/vault/connections/{quote_path_param(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetFlowsVaultConnectionResponseContent, - parse_obj_as( - type_=GetFlowsVaultConnectionResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def delete( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Parameters - ---------- - id : str - Vault connection id - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"flows/vault/connections/{quote_path_param(id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def update( - self, - id: str, - *, - name: typing.Optional[str] = OMIT, - setup: typing.Optional[UpdateFlowsVaultConnectionSetup] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[UpdateFlowsVaultConnectionResponseContent]: - """ - Parameters - ---------- - id : str - Flows Vault connection ID - - name : typing.Optional[str] - Flows Vault Connection name. - - setup : typing.Optional[UpdateFlowsVaultConnectionSetup] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[UpdateFlowsVaultConnectionResponseContent] - Flow vault connection successfully updated. - """ - _response = await self._client_wrapper.httpx_client.request( - f"flows/vault/connections/{quote_path_param(id)}", - method="PATCH", - json={ - "name": name, - "setup": convert_and_respect_annotation_metadata( - object_=setup, annotation=UpdateFlowsVaultConnectionSetup, direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateFlowsVaultConnectionResponseContent, - parse_obj_as( - type_=UpdateFlowsVaultConnectionResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/flows/vault/raw_client.py b/src/auth0/management/flows/vault/raw_client.py deleted file mode 100644 index 4d53f77a..00000000 --- a/src/auth0/management/flows/vault/raw_client.py +++ /dev/null @@ -1,13 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper - - -class RawVaultClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - -class AsyncRawVaultClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper diff --git a/src/auth0/management/forms/__init__.py b/src/auth0/management/forms/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/forms/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/forms/client.py b/src/auth0/management/forms/client.py deleted file mode 100644 index 5bb96ef4..00000000 --- a/src/auth0/management/forms/client.py +++ /dev/null @@ -1,630 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.pagination import AsyncPager, SyncPager -from ..core.request_options import RequestOptions -from ..types.create_form_response_content import CreateFormResponseContent -from ..types.form_ending_node import FormEndingNode -from ..types.form_ending_node_nullable import FormEndingNodeNullable -from ..types.form_languages import FormLanguages -from ..types.form_languages_nullable import FormLanguagesNullable -from ..types.form_messages import FormMessages -from ..types.form_messages_nullable import FormMessagesNullable -from ..types.form_node_list import FormNodeList -from ..types.form_node_list_nullable import FormNodeListNullable -from ..types.form_start_node import FormStartNode -from ..types.form_start_node_nullable import FormStartNodeNullable -from ..types.form_style import FormStyle -from ..types.form_style_nullable import FormStyleNullable -from ..types.form_summary import FormSummary -from ..types.form_translations import FormTranslations -from ..types.form_translations_nullable import FormTranslationsNullable -from ..types.forms_request_parameters_hydrate_enum import FormsRequestParametersHydrateEnum -from ..types.get_form_response_content import GetFormResponseContent -from ..types.list_forms_offset_paginated_response_content import ListFormsOffsetPaginatedResponseContent -from ..types.update_form_response_content import UpdateFormResponseContent -from .raw_client import AsyncRawFormsClient, RawFormsClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class FormsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawFormsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawFormsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawFormsClient - """ - return self._raw_client - - def list( - self, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - include_totals: typing.Optional[bool] = True, - hydrate: typing.Optional[ - typing.Union[FormsRequestParametersHydrateEnum, typing.Sequence[FormsRequestParametersHydrateEnum]] - ] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[FormSummary, ListFormsOffsetPaginatedResponseContent]: - """ - Parameters - ---------- - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. Defaults to 50. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - hydrate : typing.Optional[typing.Union[FormsRequestParametersHydrateEnum, typing.Sequence[FormsRequestParametersHydrateEnum]]] - Query parameter to hydrate the response with additional data - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[FormSummary, ListFormsOffsetPaginatedResponseContent] - Forms successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.forms.list( - page=1, - per_page=1, - include_totals=True, - hydrate=["flow_count"], - ) - for item in response: - yield item - # alternatively, you can paginate page-by-page - for page in response.iter_pages(): - yield page - """ - return self._raw_client.list( - page=page, - per_page=per_page, - include_totals=include_totals, - hydrate=hydrate, - request_options=request_options, - ) - - def create( - self, - *, - name: str, - messages: typing.Optional[FormMessages] = OMIT, - languages: typing.Optional[FormLanguages] = OMIT, - translations: typing.Optional[FormTranslations] = OMIT, - nodes: typing.Optional[FormNodeList] = OMIT, - start: typing.Optional[FormStartNode] = OMIT, - ending: typing.Optional[FormEndingNode] = OMIT, - style: typing.Optional[FormStyle] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateFormResponseContent: - """ - Parameters - ---------- - name : str - - messages : typing.Optional[FormMessages] - - languages : typing.Optional[FormLanguages] - - translations : typing.Optional[FormTranslations] - - nodes : typing.Optional[FormNodeList] - - start : typing.Optional[FormStartNode] - - ending : typing.Optional[FormEndingNode] - - style : typing.Optional[FormStyle] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateFormResponseContent - Form successfully created. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.forms.create( - name="name", - ) - """ - _response = self._raw_client.create( - name=name, - messages=messages, - languages=languages, - translations=translations, - nodes=nodes, - start=start, - ending=ending, - style=style, - request_options=request_options, - ) - return _response.data - - def get( - self, - id: str, - *, - hydrate: typing.Optional[ - typing.Union[FormsRequestParametersHydrateEnum, typing.Sequence[FormsRequestParametersHydrateEnum]] - ] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> GetFormResponseContent: - """ - Parameters - ---------- - id : str - The ID of the form to retrieve. - - hydrate : typing.Optional[typing.Union[FormsRequestParametersHydrateEnum, typing.Sequence[FormsRequestParametersHydrateEnum]]] - Query parameter to hydrate the response with additional data - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetFormResponseContent - Form successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.forms.get( - id="id", - hydrate=["flow_count"], - ) - """ - _response = self._raw_client.get(id, hydrate=hydrate, request_options=request_options) - return _response.data - - def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Parameters - ---------- - id : str - The ID of the form to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.forms.delete( - id="id", - ) - """ - _response = self._raw_client.delete(id, request_options=request_options) - return _response.data - - def update( - self, - id: str, - *, - name: typing.Optional[str] = OMIT, - messages: typing.Optional[FormMessagesNullable] = OMIT, - languages: typing.Optional[FormLanguagesNullable] = OMIT, - translations: typing.Optional[FormTranslationsNullable] = OMIT, - nodes: typing.Optional[FormNodeListNullable] = OMIT, - start: typing.Optional[FormStartNodeNullable] = OMIT, - ending: typing.Optional[FormEndingNodeNullable] = OMIT, - style: typing.Optional[FormStyleNullable] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateFormResponseContent: - """ - Parameters - ---------- - id : str - The ID of the form to update. - - name : typing.Optional[str] - - messages : typing.Optional[FormMessagesNullable] - - languages : typing.Optional[FormLanguagesNullable] - - translations : typing.Optional[FormTranslationsNullable] - - nodes : typing.Optional[FormNodeListNullable] - - start : typing.Optional[FormStartNodeNullable] - - ending : typing.Optional[FormEndingNodeNullable] - - style : typing.Optional[FormStyleNullable] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateFormResponseContent - Form successfully updated. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.forms.update( - id="id", - ) - """ - _response = self._raw_client.update( - id, - name=name, - messages=messages, - languages=languages, - translations=translations, - nodes=nodes, - start=start, - ending=ending, - style=style, - request_options=request_options, - ) - return _response.data - - -class AsyncFormsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawFormsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawFormsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawFormsClient - """ - return self._raw_client - - async def list( - self, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - include_totals: typing.Optional[bool] = True, - hydrate: typing.Optional[ - typing.Union[FormsRequestParametersHydrateEnum, typing.Sequence[FormsRequestParametersHydrateEnum]] - ] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[FormSummary, ListFormsOffsetPaginatedResponseContent]: - """ - Parameters - ---------- - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. Defaults to 50. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - hydrate : typing.Optional[typing.Union[FormsRequestParametersHydrateEnum, typing.Sequence[FormsRequestParametersHydrateEnum]]] - Query parameter to hydrate the response with additional data - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[FormSummary, ListFormsOffsetPaginatedResponseContent] - Forms successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.forms.list( - page=1, - per_page=1, - include_totals=True, - hydrate=["flow_count"], - ) - async for item in response: - yield item - - # alternatively, you can paginate page-by-page - async for page in response.iter_pages(): - yield page - - - asyncio.run(main()) - """ - return await self._raw_client.list( - page=page, - per_page=per_page, - include_totals=include_totals, - hydrate=hydrate, - request_options=request_options, - ) - - async def create( - self, - *, - name: str, - messages: typing.Optional[FormMessages] = OMIT, - languages: typing.Optional[FormLanguages] = OMIT, - translations: typing.Optional[FormTranslations] = OMIT, - nodes: typing.Optional[FormNodeList] = OMIT, - start: typing.Optional[FormStartNode] = OMIT, - ending: typing.Optional[FormEndingNode] = OMIT, - style: typing.Optional[FormStyle] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateFormResponseContent: - """ - Parameters - ---------- - name : str - - messages : typing.Optional[FormMessages] - - languages : typing.Optional[FormLanguages] - - translations : typing.Optional[FormTranslations] - - nodes : typing.Optional[FormNodeList] - - start : typing.Optional[FormStartNode] - - ending : typing.Optional[FormEndingNode] - - style : typing.Optional[FormStyle] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateFormResponseContent - Form successfully created. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.forms.create( - name="name", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - name=name, - messages=messages, - languages=languages, - translations=translations, - nodes=nodes, - start=start, - ending=ending, - style=style, - request_options=request_options, - ) - return _response.data - - async def get( - self, - id: str, - *, - hydrate: typing.Optional[ - typing.Union[FormsRequestParametersHydrateEnum, typing.Sequence[FormsRequestParametersHydrateEnum]] - ] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> GetFormResponseContent: - """ - Parameters - ---------- - id : str - The ID of the form to retrieve. - - hydrate : typing.Optional[typing.Union[FormsRequestParametersHydrateEnum, typing.Sequence[FormsRequestParametersHydrateEnum]]] - Query parameter to hydrate the response with additional data - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetFormResponseContent - Form successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.forms.get( - id="id", - hydrate=["flow_count"], - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.get(id, hydrate=hydrate, request_options=request_options) - return _response.data - - async def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Parameters - ---------- - id : str - The ID of the form to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.forms.delete( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete(id, request_options=request_options) - return _response.data - - async def update( - self, - id: str, - *, - name: typing.Optional[str] = OMIT, - messages: typing.Optional[FormMessagesNullable] = OMIT, - languages: typing.Optional[FormLanguagesNullable] = OMIT, - translations: typing.Optional[FormTranslationsNullable] = OMIT, - nodes: typing.Optional[FormNodeListNullable] = OMIT, - start: typing.Optional[FormStartNodeNullable] = OMIT, - ending: typing.Optional[FormEndingNodeNullable] = OMIT, - style: typing.Optional[FormStyleNullable] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateFormResponseContent: - """ - Parameters - ---------- - id : str - The ID of the form to update. - - name : typing.Optional[str] - - messages : typing.Optional[FormMessagesNullable] - - languages : typing.Optional[FormLanguagesNullable] - - translations : typing.Optional[FormTranslationsNullable] - - nodes : typing.Optional[FormNodeListNullable] - - start : typing.Optional[FormStartNodeNullable] - - ending : typing.Optional[FormEndingNodeNullable] - - style : typing.Optional[FormStyleNullable] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateFormResponseContent - Form successfully updated. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.forms.update( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.update( - id, - name=name, - messages=messages, - languages=languages, - translations=translations, - nodes=nodes, - start=start, - ending=ending, - style=style, - request_options=request_options, - ) - return _response.data diff --git a/src/auth0/management/forms/raw_client.py b/src/auth0/management/forms/raw_client.py deleted file mode 100644 index cc0e24ee..00000000 --- a/src/auth0/management/forms/raw_client.py +++ /dev/null @@ -1,1228 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ..core.api_error import ApiError -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.http_response import AsyncHttpResponse, HttpResponse -from ..core.jsonable_encoder import quote_path_param -from ..core.pagination import AsyncPager, SyncPager -from ..core.parse_error import ParsingError -from ..core.pydantic_utilities import parse_obj_as -from ..core.request_options import RequestOptions -from ..core.serialization import convert_and_respect_annotation_metadata -from ..errors.bad_request_error import BadRequestError -from ..errors.forbidden_error import ForbiddenError -from ..errors.not_found_error import NotFoundError -from ..errors.too_many_requests_error import TooManyRequestsError -from ..errors.unauthorized_error import UnauthorizedError -from ..types.create_form_response_content import CreateFormResponseContent -from ..types.form_ending_node import FormEndingNode -from ..types.form_ending_node_nullable import FormEndingNodeNullable -from ..types.form_languages import FormLanguages -from ..types.form_languages_nullable import FormLanguagesNullable -from ..types.form_messages import FormMessages -from ..types.form_messages_nullable import FormMessagesNullable -from ..types.form_node_list import FormNodeList -from ..types.form_node_list_nullable import FormNodeListNullable -from ..types.form_start_node import FormStartNode -from ..types.form_start_node_nullable import FormStartNodeNullable -from ..types.form_style import FormStyle -from ..types.form_style_nullable import FormStyleNullable -from ..types.form_summary import FormSummary -from ..types.form_translations import FormTranslations -from ..types.form_translations_nullable import FormTranslationsNullable -from ..types.forms_request_parameters_hydrate_enum import FormsRequestParametersHydrateEnum -from ..types.get_form_response_content import GetFormResponseContent -from ..types.list_forms_offset_paginated_response_content import ListFormsOffsetPaginatedResponseContent -from ..types.update_form_response_content import UpdateFormResponseContent -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawFormsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - include_totals: typing.Optional[bool] = True, - hydrate: typing.Optional[ - typing.Union[FormsRequestParametersHydrateEnum, typing.Sequence[FormsRequestParametersHydrateEnum]] - ] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[FormSummary, ListFormsOffsetPaginatedResponseContent]: - """ - Parameters - ---------- - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. Defaults to 50. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - hydrate : typing.Optional[typing.Union[FormsRequestParametersHydrateEnum, typing.Sequence[FormsRequestParametersHydrateEnum]]] - Query parameter to hydrate the response with additional data - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[FormSummary, ListFormsOffsetPaginatedResponseContent] - Forms successfully retrieved. - """ - page = page if page is not None else 0 - - _response = self._client_wrapper.httpx_client.request( - "forms", - method="GET", - params={ - "page": page, - "per_page": per_page, - "include_totals": include_totals, - "hydrate": hydrate, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListFormsOffsetPaginatedResponseContent, - parse_obj_as( - type_=ListFormsOffsetPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.forms - _has_next = len(_items or []) > 0 - _get_next = lambda: self.list( - page=page + 1, - per_page=per_page, - include_totals=include_totals, - hydrate=hydrate, - request_options=request_options, - ) - return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - *, - name: str, - messages: typing.Optional[FormMessages] = OMIT, - languages: typing.Optional[FormLanguages] = OMIT, - translations: typing.Optional[FormTranslations] = OMIT, - nodes: typing.Optional[FormNodeList] = OMIT, - start: typing.Optional[FormStartNode] = OMIT, - ending: typing.Optional[FormEndingNode] = OMIT, - style: typing.Optional[FormStyle] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[CreateFormResponseContent]: - """ - Parameters - ---------- - name : str - - messages : typing.Optional[FormMessages] - - languages : typing.Optional[FormLanguages] - - translations : typing.Optional[FormTranslations] - - nodes : typing.Optional[FormNodeList] - - start : typing.Optional[FormStartNode] - - ending : typing.Optional[FormEndingNode] - - style : typing.Optional[FormStyle] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CreateFormResponseContent] - Form successfully created. - """ - _response = self._client_wrapper.httpx_client.request( - "forms", - method="POST", - json={ - "name": name, - "messages": convert_and_respect_annotation_metadata( - object_=messages, annotation=FormMessages, direction="write" - ), - "languages": convert_and_respect_annotation_metadata( - object_=languages, annotation=FormLanguages, direction="write" - ), - "translations": translations, - "nodes": convert_and_respect_annotation_metadata( - object_=nodes, annotation=FormNodeList, direction="write" - ), - "start": convert_and_respect_annotation_metadata( - object_=start, annotation=FormStartNode, direction="write" - ), - "ending": convert_and_respect_annotation_metadata( - object_=ending, annotation=FormEndingNode, direction="write" - ), - "style": convert_and_respect_annotation_metadata( - object_=style, annotation=FormStyle, direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateFormResponseContent, - parse_obj_as( - type_=CreateFormResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def get( - self, - id: str, - *, - hydrate: typing.Optional[ - typing.Union[FormsRequestParametersHydrateEnum, typing.Sequence[FormsRequestParametersHydrateEnum]] - ] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[GetFormResponseContent]: - """ - Parameters - ---------- - id : str - The ID of the form to retrieve. - - hydrate : typing.Optional[typing.Union[FormsRequestParametersHydrateEnum, typing.Sequence[FormsRequestParametersHydrateEnum]]] - Query parameter to hydrate the response with additional data - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetFormResponseContent] - Form successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - f"forms/{quote_path_param(id)}", - method="GET", - params={ - "hydrate": hydrate, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetFormResponseContent, - parse_obj_as( - type_=GetFormResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[None]: - """ - Parameters - ---------- - id : str - The ID of the form to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"forms/{quote_path_param(id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def update( - self, - id: str, - *, - name: typing.Optional[str] = OMIT, - messages: typing.Optional[FormMessagesNullable] = OMIT, - languages: typing.Optional[FormLanguagesNullable] = OMIT, - translations: typing.Optional[FormTranslationsNullable] = OMIT, - nodes: typing.Optional[FormNodeListNullable] = OMIT, - start: typing.Optional[FormStartNodeNullable] = OMIT, - ending: typing.Optional[FormEndingNodeNullable] = OMIT, - style: typing.Optional[FormStyleNullable] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[UpdateFormResponseContent]: - """ - Parameters - ---------- - id : str - The ID of the form to update. - - name : typing.Optional[str] - - messages : typing.Optional[FormMessagesNullable] - - languages : typing.Optional[FormLanguagesNullable] - - translations : typing.Optional[FormTranslationsNullable] - - nodes : typing.Optional[FormNodeListNullable] - - start : typing.Optional[FormStartNodeNullable] - - ending : typing.Optional[FormEndingNodeNullable] - - style : typing.Optional[FormStyleNullable] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[UpdateFormResponseContent] - Form successfully updated. - """ - _response = self._client_wrapper.httpx_client.request( - f"forms/{quote_path_param(id)}", - method="PATCH", - json={ - "name": name, - "messages": convert_and_respect_annotation_metadata( - object_=messages, annotation=typing.Optional[FormMessagesNullable], direction="write" - ), - "languages": convert_and_respect_annotation_metadata( - object_=languages, annotation=typing.Optional[FormLanguagesNullable], direction="write" - ), - "translations": translations, - "nodes": convert_and_respect_annotation_metadata( - object_=nodes, annotation=typing.Optional[FormNodeListNullable], direction="write" - ), - "start": convert_and_respect_annotation_metadata( - object_=start, annotation=typing.Optional[FormStartNodeNullable], direction="write" - ), - "ending": convert_and_respect_annotation_metadata( - object_=ending, annotation=typing.Optional[FormEndingNodeNullable], direction="write" - ), - "style": convert_and_respect_annotation_metadata( - object_=style, annotation=typing.Optional[FormStyleNullable], direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateFormResponseContent, - parse_obj_as( - type_=UpdateFormResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawFormsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - include_totals: typing.Optional[bool] = True, - hydrate: typing.Optional[ - typing.Union[FormsRequestParametersHydrateEnum, typing.Sequence[FormsRequestParametersHydrateEnum]] - ] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[FormSummary, ListFormsOffsetPaginatedResponseContent]: - """ - Parameters - ---------- - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. Defaults to 50. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - hydrate : typing.Optional[typing.Union[FormsRequestParametersHydrateEnum, typing.Sequence[FormsRequestParametersHydrateEnum]]] - Query parameter to hydrate the response with additional data - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[FormSummary, ListFormsOffsetPaginatedResponseContent] - Forms successfully retrieved. - """ - page = page if page is not None else 0 - - _response = await self._client_wrapper.httpx_client.request( - "forms", - method="GET", - params={ - "page": page, - "per_page": per_page, - "include_totals": include_totals, - "hydrate": hydrate, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListFormsOffsetPaginatedResponseContent, - parse_obj_as( - type_=ListFormsOffsetPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.forms - _has_next = len(_items or []) > 0 - - async def _get_next(): - return await self.list( - page=page + 1, - per_page=per_page, - include_totals=include_totals, - hydrate=hydrate, - request_options=request_options, - ) - - return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - *, - name: str, - messages: typing.Optional[FormMessages] = OMIT, - languages: typing.Optional[FormLanguages] = OMIT, - translations: typing.Optional[FormTranslations] = OMIT, - nodes: typing.Optional[FormNodeList] = OMIT, - start: typing.Optional[FormStartNode] = OMIT, - ending: typing.Optional[FormEndingNode] = OMIT, - style: typing.Optional[FormStyle] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[CreateFormResponseContent]: - """ - Parameters - ---------- - name : str - - messages : typing.Optional[FormMessages] - - languages : typing.Optional[FormLanguages] - - translations : typing.Optional[FormTranslations] - - nodes : typing.Optional[FormNodeList] - - start : typing.Optional[FormStartNode] - - ending : typing.Optional[FormEndingNode] - - style : typing.Optional[FormStyle] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CreateFormResponseContent] - Form successfully created. - """ - _response = await self._client_wrapper.httpx_client.request( - "forms", - method="POST", - json={ - "name": name, - "messages": convert_and_respect_annotation_metadata( - object_=messages, annotation=FormMessages, direction="write" - ), - "languages": convert_and_respect_annotation_metadata( - object_=languages, annotation=FormLanguages, direction="write" - ), - "translations": translations, - "nodes": convert_and_respect_annotation_metadata( - object_=nodes, annotation=FormNodeList, direction="write" - ), - "start": convert_and_respect_annotation_metadata( - object_=start, annotation=FormStartNode, direction="write" - ), - "ending": convert_and_respect_annotation_metadata( - object_=ending, annotation=FormEndingNode, direction="write" - ), - "style": convert_and_respect_annotation_metadata( - object_=style, annotation=FormStyle, direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateFormResponseContent, - parse_obj_as( - type_=CreateFormResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def get( - self, - id: str, - *, - hydrate: typing.Optional[ - typing.Union[FormsRequestParametersHydrateEnum, typing.Sequence[FormsRequestParametersHydrateEnum]] - ] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[GetFormResponseContent]: - """ - Parameters - ---------- - id : str - The ID of the form to retrieve. - - hydrate : typing.Optional[typing.Union[FormsRequestParametersHydrateEnum, typing.Sequence[FormsRequestParametersHydrateEnum]]] - Query parameter to hydrate the response with additional data - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetFormResponseContent] - Form successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - f"forms/{quote_path_param(id)}", - method="GET", - params={ - "hydrate": hydrate, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetFormResponseContent, - parse_obj_as( - type_=GetFormResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def delete( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Parameters - ---------- - id : str - The ID of the form to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"forms/{quote_path_param(id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def update( - self, - id: str, - *, - name: typing.Optional[str] = OMIT, - messages: typing.Optional[FormMessagesNullable] = OMIT, - languages: typing.Optional[FormLanguagesNullable] = OMIT, - translations: typing.Optional[FormTranslationsNullable] = OMIT, - nodes: typing.Optional[FormNodeListNullable] = OMIT, - start: typing.Optional[FormStartNodeNullable] = OMIT, - ending: typing.Optional[FormEndingNodeNullable] = OMIT, - style: typing.Optional[FormStyleNullable] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[UpdateFormResponseContent]: - """ - Parameters - ---------- - id : str - The ID of the form to update. - - name : typing.Optional[str] - - messages : typing.Optional[FormMessagesNullable] - - languages : typing.Optional[FormLanguagesNullable] - - translations : typing.Optional[FormTranslationsNullable] - - nodes : typing.Optional[FormNodeListNullable] - - start : typing.Optional[FormStartNodeNullable] - - ending : typing.Optional[FormEndingNodeNullable] - - style : typing.Optional[FormStyleNullable] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[UpdateFormResponseContent] - Form successfully updated. - """ - _response = await self._client_wrapper.httpx_client.request( - f"forms/{quote_path_param(id)}", - method="PATCH", - json={ - "name": name, - "messages": convert_and_respect_annotation_metadata( - object_=messages, annotation=typing.Optional[FormMessagesNullable], direction="write" - ), - "languages": convert_and_respect_annotation_metadata( - object_=languages, annotation=typing.Optional[FormLanguagesNullable], direction="write" - ), - "translations": translations, - "nodes": convert_and_respect_annotation_metadata( - object_=nodes, annotation=typing.Optional[FormNodeListNullable], direction="write" - ), - "start": convert_and_respect_annotation_metadata( - object_=start, annotation=typing.Optional[FormStartNodeNullable], direction="write" - ), - "ending": convert_and_respect_annotation_metadata( - object_=ending, annotation=typing.Optional[FormEndingNodeNullable], direction="write" - ), - "style": convert_and_respect_annotation_metadata( - object_=style, annotation=typing.Optional[FormStyleNullable], direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateFormResponseContent, - parse_obj_as( - type_=UpdateFormResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/groups/__init__.py b/src/auth0/management/groups/__init__.py deleted file mode 100644 index 6969bd19..00000000 --- a/src/auth0/management/groups/__init__.py +++ /dev/null @@ -1,34 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from . import members, roles -_dynamic_imports: typing.Dict[str, str] = {"members": ".members", "roles": ".roles"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - if module_name == f".{attr_name}": - return module - else: - return getattr(module, attr_name) - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["members", "roles"] diff --git a/src/auth0/management/groups/client.py b/src/auth0/management/groups/client.py deleted file mode 100644 index b2a0f456..00000000 --- a/src/auth0/management/groups/client.py +++ /dev/null @@ -1,416 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.pagination import AsyncPager, SyncPager -from ..core.request_options import RequestOptions -from ..types.get_group_response_content import GetGroupResponseContent -from ..types.group import Group -from ..types.list_groups_paginated_response_content import ListGroupsPaginatedResponseContent -from .raw_client import AsyncRawGroupsClient, RawGroupsClient - -if typing.TYPE_CHECKING: - from .members.client import AsyncMembersClient, MembersClient - from .roles.client import AsyncRolesClient, RolesClient - - -class GroupsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawGroupsClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._members: typing.Optional[MembersClient] = None - self._roles: typing.Optional[RolesClient] = None - - @property - def with_raw_response(self) -> RawGroupsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawGroupsClient - """ - return self._raw_client - - def list( - self, - *, - connection_id: typing.Optional[str] = None, - name: typing.Optional[str] = None, - external_id: typing.Optional[str] = None, - search: typing.Optional[str] = None, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - include_totals: typing.Optional[bool] = True, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[Group, ListGroupsPaginatedResponseContent]: - """ - List all groups in your tenant. - - Parameters - ---------- - connection_id : typing.Optional[str] - Filter groups by connection ID. - - name : typing.Optional[str] - Filter groups by name. - - external_id : typing.Optional[str] - Filter groups by external ID. - - search : typing.Optional[str] - Search for groups by name or external ID. - - fields : typing.Optional[str] - A comma separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). The returned total reflects at most 1,000 results. - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[Group, ListGroupsPaginatedResponseContent] - Groups successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.groups.list( - connection_id="connection_id", - name="name", - external_id="external_id", - search="search", - fields="fields", - include_fields=True, - include_totals=True, - from_="from", - take=1, - ) - for item in response: - yield item - # alternatively, you can paginate page-by-page - for page in response.iter_pages(): - yield page - """ - return self._raw_client.list( - connection_id=connection_id, - name=name, - external_id=external_id, - search=search, - fields=fields, - include_fields=include_fields, - include_totals=include_totals, - from_=from_, - take=take, - request_options=request_options, - ) - - def get(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> GetGroupResponseContent: - """ - Retrieve a group by its ID. - - Parameters - ---------- - id : str - Unique identifier for the group (service-generated). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetGroupResponseContent - Group successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.groups.get( - id="id", - ) - """ - _response = self._raw_client.get(id, request_options=request_options) - return _response.data - - def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete a group by its ID. - - Parameters - ---------- - id : str - Unique identifier for the group (service-generated). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.groups.delete( - id="id", - ) - """ - _response = self._raw_client.delete(id, request_options=request_options) - return _response.data - - @property - def members(self): - if self._members is None: - from .members.client import MembersClient # noqa: E402 - - self._members = MembersClient(client_wrapper=self._client_wrapper) - return self._members - - @property - def roles(self): - if self._roles is None: - from .roles.client import RolesClient # noqa: E402 - - self._roles = RolesClient(client_wrapper=self._client_wrapper) - return self._roles - - -class AsyncGroupsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawGroupsClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._members: typing.Optional[AsyncMembersClient] = None - self._roles: typing.Optional[AsyncRolesClient] = None - - @property - def with_raw_response(self) -> AsyncRawGroupsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawGroupsClient - """ - return self._raw_client - - async def list( - self, - *, - connection_id: typing.Optional[str] = None, - name: typing.Optional[str] = None, - external_id: typing.Optional[str] = None, - search: typing.Optional[str] = None, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - include_totals: typing.Optional[bool] = True, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[Group, ListGroupsPaginatedResponseContent]: - """ - List all groups in your tenant. - - Parameters - ---------- - connection_id : typing.Optional[str] - Filter groups by connection ID. - - name : typing.Optional[str] - Filter groups by name. - - external_id : typing.Optional[str] - Filter groups by external ID. - - search : typing.Optional[str] - Search for groups by name or external ID. - - fields : typing.Optional[str] - A comma separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). The returned total reflects at most 1,000 results. - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[Group, ListGroupsPaginatedResponseContent] - Groups successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.groups.list( - connection_id="connection_id", - name="name", - external_id="external_id", - search="search", - fields="fields", - include_fields=True, - include_totals=True, - from_="from", - take=1, - ) - async for item in response: - yield item - - # alternatively, you can paginate page-by-page - async for page in response.iter_pages(): - yield page - - - asyncio.run(main()) - """ - return await self._raw_client.list( - connection_id=connection_id, - name=name, - external_id=external_id, - search=search, - fields=fields, - include_fields=include_fields, - include_totals=include_totals, - from_=from_, - take=take, - request_options=request_options, - ) - - async def get(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> GetGroupResponseContent: - """ - Retrieve a group by its ID. - - Parameters - ---------- - id : str - Unique identifier for the group (service-generated). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetGroupResponseContent - Group successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.groups.get( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.get(id, request_options=request_options) - return _response.data - - async def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete a group by its ID. - - Parameters - ---------- - id : str - Unique identifier for the group (service-generated). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.groups.delete( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete(id, request_options=request_options) - return _response.data - - @property - def members(self): - if self._members is None: - from .members.client import AsyncMembersClient # noqa: E402 - - self._members = AsyncMembersClient(client_wrapper=self._client_wrapper) - return self._members - - @property - def roles(self): - if self._roles is None: - from .roles.client import AsyncRolesClient # noqa: E402 - - self._roles = AsyncRolesClient(client_wrapper=self._client_wrapper) - return self._roles diff --git a/src/auth0/management/groups/members/__init__.py b/src/auth0/management/groups/members/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/groups/members/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/groups/members/client.py b/src/auth0/management/groups/members/client.py deleted file mode 100644 index f5919cb6..00000000 --- a/src/auth0/management/groups/members/client.py +++ /dev/null @@ -1,175 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.pagination import AsyncPager, SyncPager -from ...core.request_options import RequestOptions -from ...types.get_group_members_response_content import GetGroupMembersResponseContent -from ...types.group_member import GroupMember -from .raw_client import AsyncRawMembersClient, RawMembersClient - - -class MembersClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawMembersClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawMembersClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawMembersClient - """ - return self._raw_client - - def get( - self, - id: str, - *, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[GroupMember, GetGroupMembersResponseContent]: - """ - List all users that are a member of this group. - - Parameters - ---------- - id : str - Unique identifier for the group (service-generated). - - fields : typing.Optional[str] - A comma separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[GroupMember, GetGroupMembersResponseContent] - Group members successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.groups.members.get( - id="id", - fields="fields", - include_fields=True, - from_="from", - take=1, - ) - for item in response: - yield item - # alternatively, you can paginate page-by-page - for page in response.iter_pages(): - yield page - """ - return self._raw_client.get( - id, fields=fields, include_fields=include_fields, from_=from_, take=take, request_options=request_options - ) - - -class AsyncMembersClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawMembersClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawMembersClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawMembersClient - """ - return self._raw_client - - async def get( - self, - id: str, - *, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[GroupMember, GetGroupMembersResponseContent]: - """ - List all users that are a member of this group. - - Parameters - ---------- - id : str - Unique identifier for the group (service-generated). - - fields : typing.Optional[str] - A comma separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[GroupMember, GetGroupMembersResponseContent] - Group members successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.groups.members.get( - id="id", - fields="fields", - include_fields=True, - from_="from", - take=1, - ) - async for item in response: - yield item - - # alternatively, you can paginate page-by-page - async for page in response.iter_pages(): - yield page - - - asyncio.run(main()) - """ - return await self._raw_client.get( - id, fields=fields, include_fields=include_fields, from_=from_, take=take, request_options=request_options - ) diff --git a/src/auth0/management/groups/members/raw_client.py b/src/auth0/management/groups/members/raw_client.py deleted file mode 100644 index ec627883..00000000 --- a/src/auth0/management/groups/members/raw_client.py +++ /dev/null @@ -1,301 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ...core.api_error import ApiError -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.jsonable_encoder import quote_path_param -from ...core.pagination import AsyncPager, SyncPager -from ...core.parse_error import ParsingError -from ...core.pydantic_utilities import parse_obj_as -from ...core.request_options import RequestOptions -from ...errors.bad_request_error import BadRequestError -from ...errors.forbidden_error import ForbiddenError -from ...errors.not_found_error import NotFoundError -from ...errors.too_many_requests_error import TooManyRequestsError -from ...errors.unauthorized_error import UnauthorizedError -from ...types.get_group_members_response_content import GetGroupMembersResponseContent -from ...types.group_member import GroupMember -from pydantic import ValidationError - - -class RawMembersClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def get( - self, - id: str, - *, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[GroupMember, GetGroupMembersResponseContent]: - """ - List all users that are a member of this group. - - Parameters - ---------- - id : str - Unique identifier for the group (service-generated). - - fields : typing.Optional[str] - A comma separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[GroupMember, GetGroupMembersResponseContent] - Group members successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - f"groups/{quote_path_param(id)}/members", - method="GET", - params={ - "fields": fields, - "include_fields": include_fields, - "from": from_, - "take": take, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - GetGroupMembersResponseContent, - parse_obj_as( - type_=GetGroupMembersResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.members - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - _get_next = lambda: self.get( - id, - fields=fields, - include_fields=include_fields, - from_=_parsed_next, - take=take, - request_options=request_options, - ) - return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawMembersClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def get( - self, - id: str, - *, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[GroupMember, GetGroupMembersResponseContent]: - """ - List all users that are a member of this group. - - Parameters - ---------- - id : str - Unique identifier for the group (service-generated). - - fields : typing.Optional[str] - A comma separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[GroupMember, GetGroupMembersResponseContent] - Group members successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - f"groups/{quote_path_param(id)}/members", - method="GET", - params={ - "fields": fields, - "include_fields": include_fields, - "from": from_, - "take": take, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - GetGroupMembersResponseContent, - parse_obj_as( - type_=GetGroupMembersResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.members - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - - async def _get_next(): - return await self.get( - id, - fields=fields, - include_fields=include_fields, - from_=_parsed_next, - take=take, - request_options=request_options, - ) - - return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/groups/raw_client.py b/src/auth0/management/groups/raw_client.py deleted file mode 100644 index 1ad7dfb1..00000000 --- a/src/auth0/management/groups/raw_client.py +++ /dev/null @@ -1,683 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ..core.api_error import ApiError -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.http_response import AsyncHttpResponse, HttpResponse -from ..core.jsonable_encoder import quote_path_param -from ..core.pagination import AsyncPager, SyncPager -from ..core.parse_error import ParsingError -from ..core.pydantic_utilities import parse_obj_as -from ..core.request_options import RequestOptions -from ..errors.bad_request_error import BadRequestError -from ..errors.forbidden_error import ForbiddenError -from ..errors.not_found_error import NotFoundError -from ..errors.too_many_requests_error import TooManyRequestsError -from ..errors.unauthorized_error import UnauthorizedError -from ..types.get_group_response_content import GetGroupResponseContent -from ..types.group import Group -from ..types.list_groups_paginated_response_content import ListGroupsPaginatedResponseContent -from pydantic import ValidationError - - -class RawGroupsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - connection_id: typing.Optional[str] = None, - name: typing.Optional[str] = None, - external_id: typing.Optional[str] = None, - search: typing.Optional[str] = None, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - include_totals: typing.Optional[bool] = True, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[Group, ListGroupsPaginatedResponseContent]: - """ - List all groups in your tenant. - - Parameters - ---------- - connection_id : typing.Optional[str] - Filter groups by connection ID. - - name : typing.Optional[str] - Filter groups by name. - - external_id : typing.Optional[str] - Filter groups by external ID. - - search : typing.Optional[str] - Search for groups by name or external ID. - - fields : typing.Optional[str] - A comma separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). The returned total reflects at most 1,000 results. - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[Group, ListGroupsPaginatedResponseContent] - Groups successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - "groups", - method="GET", - params={ - "connection_id": connection_id, - "name": name, - "external_id": external_id, - "search": search, - "fields": fields, - "include_fields": include_fields, - "include_totals": include_totals, - "from": from_, - "take": take, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListGroupsPaginatedResponseContent, - parse_obj_as( - type_=ListGroupsPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.groups - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - _get_next = lambda: self.list( - connection_id=connection_id, - name=name, - external_id=external_id, - search=search, - fields=fields, - include_fields=include_fields, - include_totals=include_totals, - from_=_parsed_next, - take=take, - request_options=request_options, - ) - return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetGroupResponseContent]: - """ - Retrieve a group by its ID. - - Parameters - ---------- - id : str - Unique identifier for the group (service-generated). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetGroupResponseContent] - Group successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - f"groups/{quote_path_param(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetGroupResponseContent, - parse_obj_as( - type_=GetGroupResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[None]: - """ - Delete a group by its ID. - - Parameters - ---------- - id : str - Unique identifier for the group (service-generated). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"groups/{quote_path_param(id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawGroupsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - connection_id: typing.Optional[str] = None, - name: typing.Optional[str] = None, - external_id: typing.Optional[str] = None, - search: typing.Optional[str] = None, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - include_totals: typing.Optional[bool] = True, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[Group, ListGroupsPaginatedResponseContent]: - """ - List all groups in your tenant. - - Parameters - ---------- - connection_id : typing.Optional[str] - Filter groups by connection ID. - - name : typing.Optional[str] - Filter groups by name. - - external_id : typing.Optional[str] - Filter groups by external ID. - - search : typing.Optional[str] - Search for groups by name or external ID. - - fields : typing.Optional[str] - A comma separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). The returned total reflects at most 1,000 results. - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[Group, ListGroupsPaginatedResponseContent] - Groups successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - "groups", - method="GET", - params={ - "connection_id": connection_id, - "name": name, - "external_id": external_id, - "search": search, - "fields": fields, - "include_fields": include_fields, - "include_totals": include_totals, - "from": from_, - "take": take, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListGroupsPaginatedResponseContent, - parse_obj_as( - type_=ListGroupsPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.groups - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - - async def _get_next(): - return await self.list( - connection_id=connection_id, - name=name, - external_id=external_id, - search=search, - fields=fields, - include_fields=include_fields, - include_totals=include_totals, - from_=_parsed_next, - take=take, - request_options=request_options, - ) - - return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetGroupResponseContent]: - """ - Retrieve a group by its ID. - - Parameters - ---------- - id : str - Unique identifier for the group (service-generated). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetGroupResponseContent] - Group successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - f"groups/{quote_path_param(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetGroupResponseContent, - parse_obj_as( - type_=GetGroupResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def delete( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Delete a group by its ID. - - Parameters - ---------- - id : str - Unique identifier for the group (service-generated). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"groups/{quote_path_param(id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/groups/roles/__init__.py b/src/auth0/management/groups/roles/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/groups/roles/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/groups/roles/client.py b/src/auth0/management/groups/roles/client.py deleted file mode 100644 index 9f4a516d..00000000 --- a/src/auth0/management/groups/roles/client.py +++ /dev/null @@ -1,314 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.pagination import AsyncPager, SyncPager -from ...core.request_options import RequestOptions -from ...types.list_group_roles_response_content import ListGroupRolesResponseContent -from ...types.role import Role -from .raw_client import AsyncRawRolesClient, RawRolesClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RolesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawRolesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawRolesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawRolesClient - """ - return self._raw_client - - def list( - self, - id: str, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[Role, ListGroupRolesResponseContent]: - """ - Lists the [roles](https://auth0.com/docs/manage-users/access-control/rbac) assigned to a group. - - Parameters - ---------- - id : str - Unique identifier for the group (service-generated). - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[Role, ListGroupRolesResponseContent] - Group's roles successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.groups.roles.list( - id="id", - from_="from", - take=1, - ) - for item in response: - yield item - # alternatively, you can paginate page-by-page - for page in response.iter_pages(): - yield page - """ - return self._raw_client.list(id, from_=from_, take=take, request_options=request_options) - - def create( - self, id: str, *, roles: typing.Sequence[str], request_options: typing.Optional[RequestOptions] = None - ) -> None: - """ - Assign one or more [roles](https://auth0.com/docs/manage-users/access-control/rbac) to a specified group. - - Parameters - ---------- - id : str - Unique identifier for the group (service-generated). - - roles : typing.Sequence[str] - Array of role IDs to assign to the group. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.groups.roles.create( - id="id", - roles=["roles"], - ) - """ - _response = self._raw_client.create(id, roles=roles, request_options=request_options) - return _response.data - - def delete( - self, id: str, *, roles: typing.Sequence[str], request_options: typing.Optional[RequestOptions] = None - ) -> None: - """ - Unassign one or more [roles](https://auth0.com/docs/manage-users/access-control/rbac) from a specified group. - - Parameters - ---------- - id : str - Unique identifier for the group (service-generated). - - roles : typing.Sequence[str] - Array of role IDs to remove from the group. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.groups.roles.delete( - id="id", - roles=["roles"], - ) - """ - _response = self._raw_client.delete(id, roles=roles, request_options=request_options) - return _response.data - - -class AsyncRolesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawRolesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawRolesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawRolesClient - """ - return self._raw_client - - async def list( - self, - id: str, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[Role, ListGroupRolesResponseContent]: - """ - Lists the [roles](https://auth0.com/docs/manage-users/access-control/rbac) assigned to a group. - - Parameters - ---------- - id : str - Unique identifier for the group (service-generated). - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[Role, ListGroupRolesResponseContent] - Group's roles successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.groups.roles.list( - id="id", - from_="from", - take=1, - ) - async for item in response: - yield item - - # alternatively, you can paginate page-by-page - async for page in response.iter_pages(): - yield page - - - asyncio.run(main()) - """ - return await self._raw_client.list(id, from_=from_, take=take, request_options=request_options) - - async def create( - self, id: str, *, roles: typing.Sequence[str], request_options: typing.Optional[RequestOptions] = None - ) -> None: - """ - Assign one or more [roles](https://auth0.com/docs/manage-users/access-control/rbac) to a specified group. - - Parameters - ---------- - id : str - Unique identifier for the group (service-generated). - - roles : typing.Sequence[str] - Array of role IDs to assign to the group. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.groups.roles.create( - id="id", - roles=["roles"], - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create(id, roles=roles, request_options=request_options) - return _response.data - - async def delete( - self, id: str, *, roles: typing.Sequence[str], request_options: typing.Optional[RequestOptions] = None - ) -> None: - """ - Unassign one or more [roles](https://auth0.com/docs/manage-users/access-control/rbac) from a specified group. - - Parameters - ---------- - id : str - Unique identifier for the group (service-generated). - - roles : typing.Sequence[str] - Array of role IDs to remove from the group. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.groups.roles.delete( - id="id", - roles=["roles"], - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete(id, roles=roles, request_options=request_options) - return _response.data diff --git a/src/auth0/management/groups/roles/raw_client.py b/src/auth0/management/groups/roles/raw_client.py deleted file mode 100644 index f19bb424..00000000 --- a/src/auth0/management/groups/roles/raw_client.py +++ /dev/null @@ -1,681 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ...core.api_error import ApiError -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.http_response import AsyncHttpResponse, HttpResponse -from ...core.jsonable_encoder import quote_path_param -from ...core.pagination import AsyncPager, SyncPager -from ...core.parse_error import ParsingError -from ...core.pydantic_utilities import parse_obj_as -from ...core.request_options import RequestOptions -from ...errors.bad_request_error import BadRequestError -from ...errors.forbidden_error import ForbiddenError -from ...errors.not_found_error import NotFoundError -from ...errors.too_many_requests_error import TooManyRequestsError -from ...errors.unauthorized_error import UnauthorizedError -from ...types.list_group_roles_response_content import ListGroupRolesResponseContent -from ...types.role import Role -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawRolesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - id: str, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[Role, ListGroupRolesResponseContent]: - """ - Lists the [roles](https://auth0.com/docs/manage-users/access-control/rbac) assigned to a group. - - Parameters - ---------- - id : str - Unique identifier for the group (service-generated). - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[Role, ListGroupRolesResponseContent] - Group's roles successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - f"groups/{quote_path_param(id)}/roles", - method="GET", - params={ - "from": from_, - "take": take, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListGroupRolesResponseContent, - parse_obj_as( - type_=ListGroupRolesResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.roles - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - _get_next = lambda: self.list( - id, - from_=_parsed_next, - take=take, - request_options=request_options, - ) - return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, id: str, *, roles: typing.Sequence[str], request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[None]: - """ - Assign one or more [roles](https://auth0.com/docs/manage-users/access-control/rbac) to a specified group. - - Parameters - ---------- - id : str - Unique identifier for the group (service-generated). - - roles : typing.Sequence[str] - Array of role IDs to assign to the group. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"groups/{quote_path_param(id)}/roles", - method="POST", - json={ - "roles": roles, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def delete( - self, id: str, *, roles: typing.Sequence[str], request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[None]: - """ - Unassign one or more [roles](https://auth0.com/docs/manage-users/access-control/rbac) from a specified group. - - Parameters - ---------- - id : str - Unique identifier for the group (service-generated). - - roles : typing.Sequence[str] - Array of role IDs to remove from the group. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"groups/{quote_path_param(id)}/roles", - method="DELETE", - json={ - "roles": roles, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawRolesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - id: str, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[Role, ListGroupRolesResponseContent]: - """ - Lists the [roles](https://auth0.com/docs/manage-users/access-control/rbac) assigned to a group. - - Parameters - ---------- - id : str - Unique identifier for the group (service-generated). - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[Role, ListGroupRolesResponseContent] - Group's roles successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - f"groups/{quote_path_param(id)}/roles", - method="GET", - params={ - "from": from_, - "take": take, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListGroupRolesResponseContent, - parse_obj_as( - type_=ListGroupRolesResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.roles - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - - async def _get_next(): - return await self.list( - id, - from_=_parsed_next, - take=take, - request_options=request_options, - ) - - return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, id: str, *, roles: typing.Sequence[str], request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Assign one or more [roles](https://auth0.com/docs/manage-users/access-control/rbac) to a specified group. - - Parameters - ---------- - id : str - Unique identifier for the group (service-generated). - - roles : typing.Sequence[str] - Array of role IDs to assign to the group. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"groups/{quote_path_param(id)}/roles", - method="POST", - json={ - "roles": roles, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def delete( - self, id: str, *, roles: typing.Sequence[str], request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Unassign one or more [roles](https://auth0.com/docs/manage-users/access-control/rbac) from a specified group. - - Parameters - ---------- - id : str - Unique identifier for the group (service-generated). - - roles : typing.Sequence[str] - Array of role IDs to remove from the group. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"groups/{quote_path_param(id)}/roles", - method="DELETE", - json={ - "roles": roles, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/guardian/__init__.py b/src/auth0/management/guardian/__init__.py deleted file mode 100644 index 81c61596..00000000 --- a/src/auth0/management/guardian/__init__.py +++ /dev/null @@ -1,38 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from . import enrollments, factors, policies -_dynamic_imports: typing.Dict[str, str] = { - "enrollments": ".enrollments", - "factors": ".factors", - "policies": ".policies", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - if module_name == f".{attr_name}": - return module - else: - return getattr(module, attr_name) - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["enrollments", "factors", "policies"] diff --git a/src/auth0/management/guardian/client.py b/src/auth0/management/guardian/client.py deleted file mode 100644 index 6cb2053a..00000000 --- a/src/auth0/management/guardian/client.py +++ /dev/null @@ -1,290 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.request_options import RequestOptions -from ..types.get_guardian_settings_response_content import GetGuardianSettingsResponseContent -from ..types.set_guardian_settings_response_content import SetGuardianSettingsResponseContent -from .raw_client import AsyncRawGuardianClient, RawGuardianClient - -if typing.TYPE_CHECKING: - from .enrollments.client import AsyncEnrollmentsClient, EnrollmentsClient - from .factors.client import AsyncFactorsClient, FactorsClient - from .policies.client import AsyncPoliciesClient, PoliciesClient -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class GuardianClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawGuardianClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._enrollments: typing.Optional[EnrollmentsClient] = None - self._factors: typing.Optional[FactorsClient] = None - self._policies: typing.Optional[PoliciesClient] = None - - @property - def with_raw_response(self) -> RawGuardianClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawGuardianClient - """ - return self._raw_client - - def get(self, *, request_options: typing.Optional[RequestOptions] = None) -> GetGuardianSettingsResponseContent: - """ - TODO: Link this endpoint to relevant documentation when available. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetGuardianSettingsResponseContent - Returns the Guardian settings. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.guardian.get() - """ - _response = self._raw_client.get(request_options=request_options) - return _response.data - - def set( - self, - *, - display_remember_me_checkbox: bool, - remember_me_default_value: bool, - mfa_session_inactivity_timeout: int, - mfa_session_overall_timeout: int, - request_options: typing.Optional[RequestOptions] = None, - ) -> SetGuardianSettingsResponseContent: - """ - Update a tenant's guardian settings such as Remember Me - - Parameters - ---------- - display_remember_me_checkbox : bool - Determines whether to display the "Remember Me" checkbox on the MFA prompt in Universal Login. - - remember_me_default_value : bool - Determines the default state of the "Remember Me" checkbox on the MFA prompt in Universal Login. - - mfa_session_inactivity_timeout : int - Duration of inactivity after which the user will be prompted for MFA. Represented as seconds. Minimum duration is 1 hour, maximum is 30 days, and cannot exceed the overall timeout. - - mfa_session_overall_timeout : int - Maximum duration after which the user will be prompted for MFA regardless of activity. Represented as seconds. Minimum duration is 1 hour, maximum is 90 days. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SetGuardianSettingsResponseContent - The Guardian settings have been successfully set. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.guardian.set( - display_remember_me_checkbox=True, - remember_me_default_value=True, - mfa_session_inactivity_timeout=1, - mfa_session_overall_timeout=1, - ) - """ - _response = self._raw_client.set( - display_remember_me_checkbox=display_remember_me_checkbox, - remember_me_default_value=remember_me_default_value, - mfa_session_inactivity_timeout=mfa_session_inactivity_timeout, - mfa_session_overall_timeout=mfa_session_overall_timeout, - request_options=request_options, - ) - return _response.data - - @property - def enrollments(self): - if self._enrollments is None: - from .enrollments.client import EnrollmentsClient # noqa: E402 - - self._enrollments = EnrollmentsClient(client_wrapper=self._client_wrapper) - return self._enrollments - - @property - def factors(self): - if self._factors is None: - from .factors.client import FactorsClient # noqa: E402 - - self._factors = FactorsClient(client_wrapper=self._client_wrapper) - return self._factors - - @property - def policies(self): - if self._policies is None: - from .policies.client import PoliciesClient # noqa: E402 - - self._policies = PoliciesClient(client_wrapper=self._client_wrapper) - return self._policies - - -class AsyncGuardianClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawGuardianClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._enrollments: typing.Optional[AsyncEnrollmentsClient] = None - self._factors: typing.Optional[AsyncFactorsClient] = None - self._policies: typing.Optional[AsyncPoliciesClient] = None - - @property - def with_raw_response(self) -> AsyncRawGuardianClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawGuardianClient - """ - return self._raw_client - - async def get( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetGuardianSettingsResponseContent: - """ - TODO: Link this endpoint to relevant documentation when available. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetGuardianSettingsResponseContent - Returns the Guardian settings. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.guardian.get() - - - asyncio.run(main()) - """ - _response = await self._raw_client.get(request_options=request_options) - return _response.data - - async def set( - self, - *, - display_remember_me_checkbox: bool, - remember_me_default_value: bool, - mfa_session_inactivity_timeout: int, - mfa_session_overall_timeout: int, - request_options: typing.Optional[RequestOptions] = None, - ) -> SetGuardianSettingsResponseContent: - """ - Update a tenant's guardian settings such as Remember Me - - Parameters - ---------- - display_remember_me_checkbox : bool - Determines whether to display the "Remember Me" checkbox on the MFA prompt in Universal Login. - - remember_me_default_value : bool - Determines the default state of the "Remember Me" checkbox on the MFA prompt in Universal Login. - - mfa_session_inactivity_timeout : int - Duration of inactivity after which the user will be prompted for MFA. Represented as seconds. Minimum duration is 1 hour, maximum is 30 days, and cannot exceed the overall timeout. - - mfa_session_overall_timeout : int - Maximum duration after which the user will be prompted for MFA regardless of activity. Represented as seconds. Minimum duration is 1 hour, maximum is 90 days. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SetGuardianSettingsResponseContent - The Guardian settings have been successfully set. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.guardian.set( - display_remember_me_checkbox=True, - remember_me_default_value=True, - mfa_session_inactivity_timeout=1, - mfa_session_overall_timeout=1, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.set( - display_remember_me_checkbox=display_remember_me_checkbox, - remember_me_default_value=remember_me_default_value, - mfa_session_inactivity_timeout=mfa_session_inactivity_timeout, - mfa_session_overall_timeout=mfa_session_overall_timeout, - request_options=request_options, - ) - return _response.data - - @property - def enrollments(self): - if self._enrollments is None: - from .enrollments.client import AsyncEnrollmentsClient # noqa: E402 - - self._enrollments = AsyncEnrollmentsClient(client_wrapper=self._client_wrapper) - return self._enrollments - - @property - def factors(self): - if self._factors is None: - from .factors.client import AsyncFactorsClient # noqa: E402 - - self._factors = AsyncFactorsClient(client_wrapper=self._client_wrapper) - return self._factors - - @property - def policies(self): - if self._policies is None: - from .policies.client import AsyncPoliciesClient # noqa: E402 - - self._policies = AsyncPoliciesClient(client_wrapper=self._client_wrapper) - return self._policies diff --git a/src/auth0/management/guardian/enrollments/__init__.py b/src/auth0/management/guardian/enrollments/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/guardian/enrollments/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/guardian/enrollments/client.py b/src/auth0/management/guardian/enrollments/client.py deleted file mode 100644 index 648234ab..00000000 --- a/src/auth0/management/guardian/enrollments/client.py +++ /dev/null @@ -1,321 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.request_options import RequestOptions -from ...types.create_guardian_enrollment_ticket_response_content import CreateGuardianEnrollmentTicketResponseContent -from ...types.get_guardian_enrollment_response_content import GetGuardianEnrollmentResponseContent -from ...types.guardian_enrollment_factor_enum import GuardianEnrollmentFactorEnum -from .raw_client import AsyncRawEnrollmentsClient, RawEnrollmentsClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class EnrollmentsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawEnrollmentsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawEnrollmentsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawEnrollmentsClient - """ - return self._raw_client - - def create_ticket( - self, - *, - user_id: str, - email: typing.Optional[str] = OMIT, - send_mail: typing.Optional[bool] = OMIT, - email_locale: typing.Optional[str] = OMIT, - factor: typing.Optional[GuardianEnrollmentFactorEnum] = OMIT, - allow_multiple_enrollments: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateGuardianEnrollmentTicketResponseContent: - """ - Create a [multi-factor authentication (MFA) enrollment ticket](https://auth0.com/docs/secure/multi-factor-authentication/auth0-guardian/create-custom-enrollment-tickets), and optionally send an email with the created ticket to a given user. Enrollment tickets can specify which factor users must enroll with or allow existing MFA users to enroll in additional factors. - - Parameters - ---------- - user_id : str - user_id for the enrollment ticket - - email : typing.Optional[str] - alternate email to which the enrollment email will be sent. Optional - by default, the email will be sent to the user's default address - - send_mail : typing.Optional[bool] - Send an email to the user to start the enrollment - - email_locale : typing.Optional[str] - Optional. Specify the locale of the enrollment email. Used with send_email. - - factor : typing.Optional[GuardianEnrollmentFactorEnum] - - allow_multiple_enrollments : typing.Optional[bool] - Optional. Allows a user who has previously enrolled in MFA to enroll with additional factors.
Note: Parameter can only be used with Universal Login; it cannot be used with Classic Login or custom MFA pages. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateGuardianEnrollmentTicketResponseContent - Enrollment ticket successfully created. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.guardian.enrollments.create_ticket( - user_id="user_id", - ) - """ - _response = self._raw_client.create_ticket( - user_id=user_id, - email=email, - send_mail=send_mail, - email_locale=email_locale, - factor=factor, - allow_multiple_enrollments=allow_multiple_enrollments, - request_options=request_options, - ) - return _response.data - - def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetGuardianEnrollmentResponseContent: - """ - Retrieve details, such as status and type, for a specific multi-factor authentication enrollment registered to a user account. - - Parameters - ---------- - id : str - ID of the enrollment to be retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetGuardianEnrollmentResponseContent - Enrollment successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.guardian.enrollments.get( - id="id", - ) - """ - _response = self._raw_client.get(id, request_options=request_options) - return _response.data - - def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Remove a specific multi-factor authentication (MFA) enrollment from a user's account. This allows the user to re-enroll with MFA. For more information, review [Reset User Multi-Factor Authentication and Recovery Codes](https://auth0.com/docs/secure/multi-factor-authentication/reset-user-mfa). - - Parameters - ---------- - id : str - ID of the enrollment to be deleted. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.guardian.enrollments.delete( - id="id", - ) - """ - _response = self._raw_client.delete(id, request_options=request_options) - return _response.data - - -class AsyncEnrollmentsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawEnrollmentsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawEnrollmentsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawEnrollmentsClient - """ - return self._raw_client - - async def create_ticket( - self, - *, - user_id: str, - email: typing.Optional[str] = OMIT, - send_mail: typing.Optional[bool] = OMIT, - email_locale: typing.Optional[str] = OMIT, - factor: typing.Optional[GuardianEnrollmentFactorEnum] = OMIT, - allow_multiple_enrollments: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateGuardianEnrollmentTicketResponseContent: - """ - Create a [multi-factor authentication (MFA) enrollment ticket](https://auth0.com/docs/secure/multi-factor-authentication/auth0-guardian/create-custom-enrollment-tickets), and optionally send an email with the created ticket to a given user. Enrollment tickets can specify which factor users must enroll with or allow existing MFA users to enroll in additional factors. - - Parameters - ---------- - user_id : str - user_id for the enrollment ticket - - email : typing.Optional[str] - alternate email to which the enrollment email will be sent. Optional - by default, the email will be sent to the user's default address - - send_mail : typing.Optional[bool] - Send an email to the user to start the enrollment - - email_locale : typing.Optional[str] - Optional. Specify the locale of the enrollment email. Used with send_email. - - factor : typing.Optional[GuardianEnrollmentFactorEnum] - - allow_multiple_enrollments : typing.Optional[bool] - Optional. Allows a user who has previously enrolled in MFA to enroll with additional factors.
Note: Parameter can only be used with Universal Login; it cannot be used with Classic Login or custom MFA pages. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateGuardianEnrollmentTicketResponseContent - Enrollment ticket successfully created. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.guardian.enrollments.create_ticket( - user_id="user_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create_ticket( - user_id=user_id, - email=email, - send_mail=send_mail, - email_locale=email_locale, - factor=factor, - allow_multiple_enrollments=allow_multiple_enrollments, - request_options=request_options, - ) - return _response.data - - async def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetGuardianEnrollmentResponseContent: - """ - Retrieve details, such as status and type, for a specific multi-factor authentication enrollment registered to a user account. - - Parameters - ---------- - id : str - ID of the enrollment to be retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetGuardianEnrollmentResponseContent - Enrollment successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.guardian.enrollments.get( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.get(id, request_options=request_options) - return _response.data - - async def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Remove a specific multi-factor authentication (MFA) enrollment from a user's account. This allows the user to re-enroll with MFA. For more information, review [Reset User Multi-Factor Authentication and Recovery Codes](https://auth0.com/docs/secure/multi-factor-authentication/reset-user-mfa). - - Parameters - ---------- - id : str - ID of the enrollment to be deleted. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.guardian.enrollments.delete( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete(id, request_options=request_options) - return _response.data diff --git a/src/auth0/management/guardian/enrollments/raw_client.py b/src/auth0/management/guardian/enrollments/raw_client.py deleted file mode 100644 index c5cb5eb2..00000000 --- a/src/auth0/management/guardian/enrollments/raw_client.py +++ /dev/null @@ -1,561 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ...core.api_error import ApiError -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.http_response import AsyncHttpResponse, HttpResponse -from ...core.jsonable_encoder import quote_path_param -from ...core.parse_error import ParsingError -from ...core.pydantic_utilities import parse_obj_as -from ...core.request_options import RequestOptions -from ...errors.bad_request_error import BadRequestError -from ...errors.forbidden_error import ForbiddenError -from ...errors.not_found_error import NotFoundError -from ...errors.unauthorized_error import UnauthorizedError -from ...types.create_guardian_enrollment_ticket_response_content import CreateGuardianEnrollmentTicketResponseContent -from ...types.get_guardian_enrollment_response_content import GetGuardianEnrollmentResponseContent -from ...types.guardian_enrollment_factor_enum import GuardianEnrollmentFactorEnum -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawEnrollmentsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def create_ticket( - self, - *, - user_id: str, - email: typing.Optional[str] = OMIT, - send_mail: typing.Optional[bool] = OMIT, - email_locale: typing.Optional[str] = OMIT, - factor: typing.Optional[GuardianEnrollmentFactorEnum] = OMIT, - allow_multiple_enrollments: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[CreateGuardianEnrollmentTicketResponseContent]: - """ - Create a [multi-factor authentication (MFA) enrollment ticket](https://auth0.com/docs/secure/multi-factor-authentication/auth0-guardian/create-custom-enrollment-tickets), and optionally send an email with the created ticket to a given user. Enrollment tickets can specify which factor users must enroll with or allow existing MFA users to enroll in additional factors. - - Parameters - ---------- - user_id : str - user_id for the enrollment ticket - - email : typing.Optional[str] - alternate email to which the enrollment email will be sent. Optional - by default, the email will be sent to the user's default address - - send_mail : typing.Optional[bool] - Send an email to the user to start the enrollment - - email_locale : typing.Optional[str] - Optional. Specify the locale of the enrollment email. Used with send_email. - - factor : typing.Optional[GuardianEnrollmentFactorEnum] - - allow_multiple_enrollments : typing.Optional[bool] - Optional. Allows a user who has previously enrolled in MFA to enroll with additional factors.
Note: Parameter can only be used with Universal Login; it cannot be used with Classic Login or custom MFA pages. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CreateGuardianEnrollmentTicketResponseContent] - Enrollment ticket successfully created. - """ - _response = self._client_wrapper.httpx_client.request( - "guardian/enrollments/ticket", - method="POST", - json={ - "user_id": user_id, - "email": email, - "send_mail": send_mail, - "email_locale": email_locale, - "factor": factor, - "allow_multiple_enrollments": allow_multiple_enrollments, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateGuardianEnrollmentTicketResponseContent, - parse_obj_as( - type_=CreateGuardianEnrollmentTicketResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetGuardianEnrollmentResponseContent]: - """ - Retrieve details, such as status and type, for a specific multi-factor authentication enrollment registered to a user account. - - Parameters - ---------- - id : str - ID of the enrollment to be retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetGuardianEnrollmentResponseContent] - Enrollment successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - f"guardian/enrollments/{quote_path_param(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetGuardianEnrollmentResponseContent, - parse_obj_as( - type_=GetGuardianEnrollmentResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[None]: - """ - Remove a specific multi-factor authentication (MFA) enrollment from a user's account. This allows the user to re-enroll with MFA. For more information, review [Reset User Multi-Factor Authentication and Recovery Codes](https://auth0.com/docs/secure/multi-factor-authentication/reset-user-mfa). - - Parameters - ---------- - id : str - ID of the enrollment to be deleted. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"guardian/enrollments/{quote_path_param(id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawEnrollmentsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def create_ticket( - self, - *, - user_id: str, - email: typing.Optional[str] = OMIT, - send_mail: typing.Optional[bool] = OMIT, - email_locale: typing.Optional[str] = OMIT, - factor: typing.Optional[GuardianEnrollmentFactorEnum] = OMIT, - allow_multiple_enrollments: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[CreateGuardianEnrollmentTicketResponseContent]: - """ - Create a [multi-factor authentication (MFA) enrollment ticket](https://auth0.com/docs/secure/multi-factor-authentication/auth0-guardian/create-custom-enrollment-tickets), and optionally send an email with the created ticket to a given user. Enrollment tickets can specify which factor users must enroll with or allow existing MFA users to enroll in additional factors. - - Parameters - ---------- - user_id : str - user_id for the enrollment ticket - - email : typing.Optional[str] - alternate email to which the enrollment email will be sent. Optional - by default, the email will be sent to the user's default address - - send_mail : typing.Optional[bool] - Send an email to the user to start the enrollment - - email_locale : typing.Optional[str] - Optional. Specify the locale of the enrollment email. Used with send_email. - - factor : typing.Optional[GuardianEnrollmentFactorEnum] - - allow_multiple_enrollments : typing.Optional[bool] - Optional. Allows a user who has previously enrolled in MFA to enroll with additional factors.
Note: Parameter can only be used with Universal Login; it cannot be used with Classic Login or custom MFA pages. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CreateGuardianEnrollmentTicketResponseContent] - Enrollment ticket successfully created. - """ - _response = await self._client_wrapper.httpx_client.request( - "guardian/enrollments/ticket", - method="POST", - json={ - "user_id": user_id, - "email": email, - "send_mail": send_mail, - "email_locale": email_locale, - "factor": factor, - "allow_multiple_enrollments": allow_multiple_enrollments, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateGuardianEnrollmentTicketResponseContent, - parse_obj_as( - type_=CreateGuardianEnrollmentTicketResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetGuardianEnrollmentResponseContent]: - """ - Retrieve details, such as status and type, for a specific multi-factor authentication enrollment registered to a user account. - - Parameters - ---------- - id : str - ID of the enrollment to be retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetGuardianEnrollmentResponseContent] - Enrollment successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - f"guardian/enrollments/{quote_path_param(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetGuardianEnrollmentResponseContent, - parse_obj_as( - type_=GetGuardianEnrollmentResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def delete( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Remove a specific multi-factor authentication (MFA) enrollment from a user's account. This allows the user to re-enroll with MFA. For more information, review [Reset User Multi-Factor Authentication and Recovery Codes](https://auth0.com/docs/secure/multi-factor-authentication/reset-user-mfa). - - Parameters - ---------- - id : str - ID of the enrollment to be deleted. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"guardian/enrollments/{quote_path_param(id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/guardian/factors/__init__.py b/src/auth0/management/guardian/factors/__init__.py deleted file mode 100644 index e8abbe21..00000000 --- a/src/auth0/management/guardian/factors/__init__.py +++ /dev/null @@ -1,40 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from . import duo, email, phone, push_notification, sms -_dynamic_imports: typing.Dict[str, str] = { - "duo": ".duo", - "email": ".email", - "phone": ".phone", - "push_notification": ".push_notification", - "sms": ".sms", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - if module_name == f".{attr_name}": - return module - else: - return getattr(module, attr_name) - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["duo", "email", "phone", "push_notification", "sms"] diff --git a/src/auth0/management/guardian/factors/client.py b/src/auth0/management/guardian/factors/client.py deleted file mode 100644 index 339ccfda..00000000 --- a/src/auth0/management/guardian/factors/client.py +++ /dev/null @@ -1,287 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.request_options import RequestOptions -from ...types.guardian_factor import GuardianFactor -from ...types.guardian_factor_name_enum import GuardianFactorNameEnum -from ...types.set_guardian_factor_response_content import SetGuardianFactorResponseContent -from .raw_client import AsyncRawFactorsClient, RawFactorsClient - -if typing.TYPE_CHECKING: - from .duo.client import AsyncDuoClient, DuoClient - from .email.client import AsyncEmailClient, EmailClient - from .phone.client import AsyncPhoneClient, PhoneClient - from .push_notification.client import AsyncPushNotificationClient, PushNotificationClient - from .sms.client import AsyncSmsClient, SmsClient -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class FactorsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawFactorsClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._email: typing.Optional[EmailClient] = None - self._phone: typing.Optional[PhoneClient] = None - self._push_notification: typing.Optional[PushNotificationClient] = None - self._sms: typing.Optional[SmsClient] = None - self._duo: typing.Optional[DuoClient] = None - - @property - def with_raw_response(self) -> RawFactorsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawFactorsClient - """ - return self._raw_client - - def list(self, *, request_options: typing.Optional[RequestOptions] = None) -> typing.List[GuardianFactor]: - """ - Retrieve details of all multi-factor authentication factors associated with your tenant. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - typing.List[GuardianFactor] - Factors successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.guardian.factors.list() - """ - _response = self._raw_client.list(request_options=request_options) - return _response.data - - def set( - self, name: GuardianFactorNameEnum, *, enabled: bool, request_options: typing.Optional[RequestOptions] = None - ) -> SetGuardianFactorResponseContent: - """ - Update the status (i.e., enabled or disabled) of a specific multi-factor authentication factor. - - Parameters - ---------- - name : GuardianFactorNameEnum - Factor name. Can be `sms`, `push-notification`, `email`, `duo`, `otp`, `webauthn-roaming`, `webauthn-platform`, `recovery-code`, or `passkey`. - - enabled : bool - Whether this factor is enabled (true) or disabled (false). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SetGuardianFactorResponseContent - Factor updated successfully. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.guardian.factors.set( - name="push-notification", - enabled=True, - ) - """ - _response = self._raw_client.set(name, enabled=enabled, request_options=request_options) - return _response.data - - @property - def email(self): - if self._email is None: - from .email.client import EmailClient # noqa: E402 - - self._email = EmailClient(client_wrapper=self._client_wrapper) - return self._email - - @property - def phone(self): - if self._phone is None: - from .phone.client import PhoneClient # noqa: E402 - - self._phone = PhoneClient(client_wrapper=self._client_wrapper) - return self._phone - - @property - def push_notification(self): - if self._push_notification is None: - from .push_notification.client import PushNotificationClient # noqa: E402 - - self._push_notification = PushNotificationClient(client_wrapper=self._client_wrapper) - return self._push_notification - - @property - def sms(self): - if self._sms is None: - from .sms.client import SmsClient # noqa: E402 - - self._sms = SmsClient(client_wrapper=self._client_wrapper) - return self._sms - - @property - def duo(self): - if self._duo is None: - from .duo.client import DuoClient # noqa: E402 - - self._duo = DuoClient(client_wrapper=self._client_wrapper) - return self._duo - - -class AsyncFactorsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawFactorsClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._email: typing.Optional[AsyncEmailClient] = None - self._phone: typing.Optional[AsyncPhoneClient] = None - self._push_notification: typing.Optional[AsyncPushNotificationClient] = None - self._sms: typing.Optional[AsyncSmsClient] = None - self._duo: typing.Optional[AsyncDuoClient] = None - - @property - def with_raw_response(self) -> AsyncRawFactorsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawFactorsClient - """ - return self._raw_client - - async def list(self, *, request_options: typing.Optional[RequestOptions] = None) -> typing.List[GuardianFactor]: - """ - Retrieve details of all multi-factor authentication factors associated with your tenant. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - typing.List[GuardianFactor] - Factors successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.guardian.factors.list() - - - asyncio.run(main()) - """ - _response = await self._raw_client.list(request_options=request_options) - return _response.data - - async def set( - self, name: GuardianFactorNameEnum, *, enabled: bool, request_options: typing.Optional[RequestOptions] = None - ) -> SetGuardianFactorResponseContent: - """ - Update the status (i.e., enabled or disabled) of a specific multi-factor authentication factor. - - Parameters - ---------- - name : GuardianFactorNameEnum - Factor name. Can be `sms`, `push-notification`, `email`, `duo`, `otp`, `webauthn-roaming`, `webauthn-platform`, `recovery-code`, or `passkey`. - - enabled : bool - Whether this factor is enabled (true) or disabled (false). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SetGuardianFactorResponseContent - Factor updated successfully. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.guardian.factors.set( - name="push-notification", - enabled=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.set(name, enabled=enabled, request_options=request_options) - return _response.data - - @property - def email(self): - if self._email is None: - from .email.client import AsyncEmailClient # noqa: E402 - - self._email = AsyncEmailClient(client_wrapper=self._client_wrapper) - return self._email - - @property - def phone(self): - if self._phone is None: - from .phone.client import AsyncPhoneClient # noqa: E402 - - self._phone = AsyncPhoneClient(client_wrapper=self._client_wrapper) - return self._phone - - @property - def push_notification(self): - if self._push_notification is None: - from .push_notification.client import AsyncPushNotificationClient # noqa: E402 - - self._push_notification = AsyncPushNotificationClient(client_wrapper=self._client_wrapper) - return self._push_notification - - @property - def sms(self): - if self._sms is None: - from .sms.client import AsyncSmsClient # noqa: E402 - - self._sms = AsyncSmsClient(client_wrapper=self._client_wrapper) - return self._sms - - @property - def duo(self): - if self._duo is None: - from .duo.client import AsyncDuoClient # noqa: E402 - - self._duo = AsyncDuoClient(client_wrapper=self._client_wrapper) - return self._duo diff --git a/src/auth0/management/guardian/factors/duo/__init__.py b/src/auth0/management/guardian/factors/duo/__init__.py deleted file mode 100644 index 31fcb147..00000000 --- a/src/auth0/management/guardian/factors/duo/__init__.py +++ /dev/null @@ -1,34 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from . import settings -_dynamic_imports: typing.Dict[str, str] = {"settings": ".settings"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - if module_name == f".{attr_name}": - return module - else: - return getattr(module, attr_name) - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["settings"] diff --git a/src/auth0/management/guardian/factors/duo/client.py b/src/auth0/management/guardian/factors/duo/client.py deleted file mode 100644 index f8178b56..00000000 --- a/src/auth0/management/guardian/factors/duo/client.py +++ /dev/null @@ -1,63 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -from ....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .raw_client import AsyncRawDuoClient, RawDuoClient - -if typing.TYPE_CHECKING: - from .settings.client import AsyncSettingsClient, SettingsClient - - -class DuoClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawDuoClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._settings: typing.Optional[SettingsClient] = None - - @property - def with_raw_response(self) -> RawDuoClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawDuoClient - """ - return self._raw_client - - @property - def settings(self): - if self._settings is None: - from .settings.client import SettingsClient # noqa: E402 - - self._settings = SettingsClient(client_wrapper=self._client_wrapper) - return self._settings - - -class AsyncDuoClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawDuoClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._settings: typing.Optional[AsyncSettingsClient] = None - - @property - def with_raw_response(self) -> AsyncRawDuoClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawDuoClient - """ - return self._raw_client - - @property - def settings(self): - if self._settings is None: - from .settings.client import AsyncSettingsClient # noqa: E402 - - self._settings = AsyncSettingsClient(client_wrapper=self._client_wrapper) - return self._settings diff --git a/src/auth0/management/guardian/factors/duo/raw_client.py b/src/auth0/management/guardian/factors/duo/raw_client.py deleted file mode 100644 index 3bcc8e93..00000000 --- a/src/auth0/management/guardian/factors/duo/raw_client.py +++ /dev/null @@ -1,13 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from ....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper - - -class RawDuoClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - -class AsyncRawDuoClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper diff --git a/src/auth0/management/guardian/factors/duo/settings/__init__.py b/src/auth0/management/guardian/factors/duo/settings/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/guardian/factors/duo/settings/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/guardian/factors/duo/settings/client.py b/src/auth0/management/guardian/factors/duo/settings/client.py deleted file mode 100644 index 00416a11..00000000 --- a/src/auth0/management/guardian/factors/duo/settings/client.py +++ /dev/null @@ -1,279 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from .....types.get_guardian_factor_duo_settings_response_content import GetGuardianFactorDuoSettingsResponseContent -from .....types.set_guardian_factor_duo_settings_response_content import SetGuardianFactorDuoSettingsResponseContent -from .....types.update_guardian_factor_duo_settings_response_content import ( - UpdateGuardianFactorDuoSettingsResponseContent, -) -from .raw_client import AsyncRawSettingsClient, RawSettingsClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class SettingsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawSettingsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawSettingsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawSettingsClient - """ - return self._raw_client - - def get( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetGuardianFactorDuoSettingsResponseContent: - """ - Retrieves the DUO account and factor configuration. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetGuardianFactorDuoSettingsResponseContent - DUO settings successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.guardian.factors.duo.settings.get() - """ - _response = self._raw_client.get(request_options=request_options) - return _response.data - - def set( - self, - *, - ikey: typing.Optional[str] = OMIT, - skey: typing.Optional[str] = OMIT, - host: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> SetGuardianFactorDuoSettingsResponseContent: - """ - Set the DUO account configuration and other properties specific to this factor. - - Parameters - ---------- - ikey : typing.Optional[str] - - skey : typing.Optional[str] - - host : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SetGuardianFactorDuoSettingsResponseContent - DUO settings successfully updated. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.guardian.factors.duo.settings.set() - """ - _response = self._raw_client.set(ikey=ikey, skey=skey, host=host, request_options=request_options) - return _response.data - - def update( - self, - *, - ikey: typing.Optional[str] = OMIT, - skey: typing.Optional[str] = OMIT, - host: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateGuardianFactorDuoSettingsResponseContent: - """ - Parameters - ---------- - ikey : typing.Optional[str] - - skey : typing.Optional[str] - - host : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateGuardianFactorDuoSettingsResponseContent - DUO settings successfully updated. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.guardian.factors.duo.settings.update() - """ - _response = self._raw_client.update(ikey=ikey, skey=skey, host=host, request_options=request_options) - return _response.data - - -class AsyncSettingsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawSettingsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawSettingsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawSettingsClient - """ - return self._raw_client - - async def get( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetGuardianFactorDuoSettingsResponseContent: - """ - Retrieves the DUO account and factor configuration. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetGuardianFactorDuoSettingsResponseContent - DUO settings successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.guardian.factors.duo.settings.get() - - - asyncio.run(main()) - """ - _response = await self._raw_client.get(request_options=request_options) - return _response.data - - async def set( - self, - *, - ikey: typing.Optional[str] = OMIT, - skey: typing.Optional[str] = OMIT, - host: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> SetGuardianFactorDuoSettingsResponseContent: - """ - Set the DUO account configuration and other properties specific to this factor. - - Parameters - ---------- - ikey : typing.Optional[str] - - skey : typing.Optional[str] - - host : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SetGuardianFactorDuoSettingsResponseContent - DUO settings successfully updated. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.guardian.factors.duo.settings.set() - - - asyncio.run(main()) - """ - _response = await self._raw_client.set(ikey=ikey, skey=skey, host=host, request_options=request_options) - return _response.data - - async def update( - self, - *, - ikey: typing.Optional[str] = OMIT, - skey: typing.Optional[str] = OMIT, - host: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateGuardianFactorDuoSettingsResponseContent: - """ - Parameters - ---------- - ikey : typing.Optional[str] - - skey : typing.Optional[str] - - host : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateGuardianFactorDuoSettingsResponseContent - DUO settings successfully updated. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.guardian.factors.duo.settings.update() - - - asyncio.run(main()) - """ - _response = await self._raw_client.update(ikey=ikey, skey=skey, host=host, request_options=request_options) - return _response.data diff --git a/src/auth0/management/guardian/factors/duo/settings/raw_client.py b/src/auth0/management/guardian/factors/duo/settings/raw_client.py deleted file mode 100644 index 3a27164d..00000000 --- a/src/auth0/management/guardian/factors/duo/settings/raw_client.py +++ /dev/null @@ -1,547 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.parse_error import ParsingError -from .....core.pydantic_utilities import parse_obj_as -from .....core.request_options import RequestOptions -from .....errors.bad_request_error import BadRequestError -from .....errors.forbidden_error import ForbiddenError -from .....errors.unauthorized_error import UnauthorizedError -from .....types.get_guardian_factor_duo_settings_response_content import GetGuardianFactorDuoSettingsResponseContent -from .....types.set_guardian_factor_duo_settings_response_content import SetGuardianFactorDuoSettingsResponseContent -from .....types.update_guardian_factor_duo_settings_response_content import ( - UpdateGuardianFactorDuoSettingsResponseContent, -) -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawSettingsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def get( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetGuardianFactorDuoSettingsResponseContent]: - """ - Retrieves the DUO account and factor configuration. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetGuardianFactorDuoSettingsResponseContent] - DUO settings successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - "guardian/factors/duo/settings", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetGuardianFactorDuoSettingsResponseContent, - parse_obj_as( - type_=GetGuardianFactorDuoSettingsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def set( - self, - *, - ikey: typing.Optional[str] = OMIT, - skey: typing.Optional[str] = OMIT, - host: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[SetGuardianFactorDuoSettingsResponseContent]: - """ - Set the DUO account configuration and other properties specific to this factor. - - Parameters - ---------- - ikey : typing.Optional[str] - - skey : typing.Optional[str] - - host : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[SetGuardianFactorDuoSettingsResponseContent] - DUO settings successfully updated. - """ - _response = self._client_wrapper.httpx_client.request( - "guardian/factors/duo/settings", - method="PUT", - json={ - "ikey": ikey, - "skey": skey, - "host": host, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - SetGuardianFactorDuoSettingsResponseContent, - parse_obj_as( - type_=SetGuardianFactorDuoSettingsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def update( - self, - *, - ikey: typing.Optional[str] = OMIT, - skey: typing.Optional[str] = OMIT, - host: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[UpdateGuardianFactorDuoSettingsResponseContent]: - """ - Parameters - ---------- - ikey : typing.Optional[str] - - skey : typing.Optional[str] - - host : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[UpdateGuardianFactorDuoSettingsResponseContent] - DUO settings successfully updated. - """ - _response = self._client_wrapper.httpx_client.request( - "guardian/factors/duo/settings", - method="PATCH", - json={ - "ikey": ikey, - "skey": skey, - "host": host, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateGuardianFactorDuoSettingsResponseContent, - parse_obj_as( - type_=UpdateGuardianFactorDuoSettingsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawSettingsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def get( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetGuardianFactorDuoSettingsResponseContent]: - """ - Retrieves the DUO account and factor configuration. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetGuardianFactorDuoSettingsResponseContent] - DUO settings successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - "guardian/factors/duo/settings", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetGuardianFactorDuoSettingsResponseContent, - parse_obj_as( - type_=GetGuardianFactorDuoSettingsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def set( - self, - *, - ikey: typing.Optional[str] = OMIT, - skey: typing.Optional[str] = OMIT, - host: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[SetGuardianFactorDuoSettingsResponseContent]: - """ - Set the DUO account configuration and other properties specific to this factor. - - Parameters - ---------- - ikey : typing.Optional[str] - - skey : typing.Optional[str] - - host : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[SetGuardianFactorDuoSettingsResponseContent] - DUO settings successfully updated. - """ - _response = await self._client_wrapper.httpx_client.request( - "guardian/factors/duo/settings", - method="PUT", - json={ - "ikey": ikey, - "skey": skey, - "host": host, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - SetGuardianFactorDuoSettingsResponseContent, - parse_obj_as( - type_=SetGuardianFactorDuoSettingsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def update( - self, - *, - ikey: typing.Optional[str] = OMIT, - skey: typing.Optional[str] = OMIT, - host: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[UpdateGuardianFactorDuoSettingsResponseContent]: - """ - Parameters - ---------- - ikey : typing.Optional[str] - - skey : typing.Optional[str] - - host : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[UpdateGuardianFactorDuoSettingsResponseContent] - DUO settings successfully updated. - """ - _response = await self._client_wrapper.httpx_client.request( - "guardian/factors/duo/settings", - method="PATCH", - json={ - "ikey": ikey, - "skey": skey, - "host": host, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateGuardianFactorDuoSettingsResponseContent, - parse_obj_as( - type_=UpdateGuardianFactorDuoSettingsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/guardian/factors/email/__init__.py b/src/auth0/management/guardian/factors/email/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/guardian/factors/email/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/guardian/factors/email/client.py b/src/auth0/management/guardian/factors/email/client.py deleted file mode 100644 index 15166abe..00000000 --- a/src/auth0/management/guardian/factors/email/client.py +++ /dev/null @@ -1,192 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ....core.request_options import RequestOptions -from ....types.get_email_factor_settings_response_content import GetEmailFactorSettingsResponseContent -from ....types.set_email_factor_settings_response_content import SetEmailFactorSettingsResponseContent -from .raw_client import AsyncRawEmailClient, RawEmailClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class EmailClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawEmailClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawEmailClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawEmailClient - """ - return self._raw_client - - def get(self, *, request_options: typing.Optional[RequestOptions] = None) -> GetEmailFactorSettingsResponseContent: - """ - TODO: Link this endpoint to relevant documentation when available. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetEmailFactorSettingsResponseContent - Returns the email factor settings. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.guardian.factors.email.get() - """ - _response = self._raw_client.get(request_options=request_options) - return _response.data - - def set( - self, *, otp_length: int, otp_expiration_time: int, request_options: typing.Optional[RequestOptions] = None - ) -> SetEmailFactorSettingsResponseContent: - """ - TODO: Link this endpoint to relevant documentation when available. - - Parameters - ---------- - otp_length : int - The length of the OTP code. - - otp_expiration_time : int - The OTP expiration time in seconds. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SetEmailFactorSettingsResponseContent - The email factor settings have been successfully set. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.guardian.factors.email.set( - otp_length=1, - otp_expiration_time=1, - ) - """ - _response = self._raw_client.set( - otp_length=otp_length, otp_expiration_time=otp_expiration_time, request_options=request_options - ) - return _response.data - - -class AsyncEmailClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawEmailClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawEmailClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawEmailClient - """ - return self._raw_client - - async def get( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetEmailFactorSettingsResponseContent: - """ - TODO: Link this endpoint to relevant documentation when available. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetEmailFactorSettingsResponseContent - Returns the email factor settings. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.guardian.factors.email.get() - - - asyncio.run(main()) - """ - _response = await self._raw_client.get(request_options=request_options) - return _response.data - - async def set( - self, *, otp_length: int, otp_expiration_time: int, request_options: typing.Optional[RequestOptions] = None - ) -> SetEmailFactorSettingsResponseContent: - """ - TODO: Link this endpoint to relevant documentation when available. - - Parameters - ---------- - otp_length : int - The length of the OTP code. - - otp_expiration_time : int - The OTP expiration time in seconds. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SetEmailFactorSettingsResponseContent - The email factor settings have been successfully set. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.guardian.factors.email.set( - otp_length=1, - otp_expiration_time=1, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.set( - otp_length=otp_length, otp_expiration_time=otp_expiration_time, request_options=request_options - ) - return _response.data diff --git a/src/auth0/management/guardian/factors/email/raw_client.py b/src/auth0/management/guardian/factors/email/raw_client.py deleted file mode 100644 index 7c31a38b..00000000 --- a/src/auth0/management/guardian/factors/email/raw_client.py +++ /dev/null @@ -1,373 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ....core.api_error import ApiError -from ....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ....core.http_response import AsyncHttpResponse, HttpResponse -from ....core.parse_error import ParsingError -from ....core.pydantic_utilities import parse_obj_as -from ....core.request_options import RequestOptions -from ....errors.bad_request_error import BadRequestError -from ....errors.forbidden_error import ForbiddenError -from ....errors.too_many_requests_error import TooManyRequestsError -from ....errors.unauthorized_error import UnauthorizedError -from ....types.get_email_factor_settings_response_content import GetEmailFactorSettingsResponseContent -from ....types.set_email_factor_settings_response_content import SetEmailFactorSettingsResponseContent -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawEmailClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def get( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetEmailFactorSettingsResponseContent]: - """ - TODO: Link this endpoint to relevant documentation when available. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetEmailFactorSettingsResponseContent] - Returns the email factor settings. - """ - _response = self._client_wrapper.httpx_client.request( - "guardian/factors/email/settings", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetEmailFactorSettingsResponseContent, - parse_obj_as( - type_=GetEmailFactorSettingsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def set( - self, *, otp_length: int, otp_expiration_time: int, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[SetEmailFactorSettingsResponseContent]: - """ - TODO: Link this endpoint to relevant documentation when available. - - Parameters - ---------- - otp_length : int - The length of the OTP code. - - otp_expiration_time : int - The OTP expiration time in seconds. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[SetEmailFactorSettingsResponseContent] - The email factor settings have been successfully set. - """ - _response = self._client_wrapper.httpx_client.request( - "guardian/factors/email/settings", - method="PUT", - json={ - "otp_length": otp_length, - "otp_expiration_time": otp_expiration_time, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - SetEmailFactorSettingsResponseContent, - parse_obj_as( - type_=SetEmailFactorSettingsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawEmailClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def get( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetEmailFactorSettingsResponseContent]: - """ - TODO: Link this endpoint to relevant documentation when available. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetEmailFactorSettingsResponseContent] - Returns the email factor settings. - """ - _response = await self._client_wrapper.httpx_client.request( - "guardian/factors/email/settings", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetEmailFactorSettingsResponseContent, - parse_obj_as( - type_=GetEmailFactorSettingsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def set( - self, *, otp_length: int, otp_expiration_time: int, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[SetEmailFactorSettingsResponseContent]: - """ - TODO: Link this endpoint to relevant documentation when available. - - Parameters - ---------- - otp_length : int - The length of the OTP code. - - otp_expiration_time : int - The OTP expiration time in seconds. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[SetEmailFactorSettingsResponseContent] - The email factor settings have been successfully set. - """ - _response = await self._client_wrapper.httpx_client.request( - "guardian/factors/email/settings", - method="PUT", - json={ - "otp_length": otp_length, - "otp_expiration_time": otp_expiration_time, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - SetEmailFactorSettingsResponseContent, - parse_obj_as( - type_=SetEmailFactorSettingsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/guardian/factors/phone/__init__.py b/src/auth0/management/guardian/factors/phone/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/guardian/factors/phone/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/guardian/factors/phone/client.py b/src/auth0/management/guardian/factors/phone/client.py deleted file mode 100644 index b2efa9ae..00000000 --- a/src/auth0/management/guardian/factors/phone/client.py +++ /dev/null @@ -1,840 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ....core.request_options import RequestOptions -from ....types.get_guardian_factor_phone_message_types_response_content import ( - GetGuardianFactorPhoneMessageTypesResponseContent, -) -from ....types.get_guardian_factor_phone_templates_response_content import ( - GetGuardianFactorPhoneTemplatesResponseContent, -) -from ....types.get_guardian_factors_provider_phone_response_content import ( - GetGuardianFactorsProviderPhoneResponseContent, -) -from ....types.get_guardian_factors_provider_phone_twilio_response_content import ( - GetGuardianFactorsProviderPhoneTwilioResponseContent, -) -from ....types.get_phone_factor_settings_response_content import GetPhoneFactorSettingsResponseContent -from ....types.guardian_factor_phone_factor_message_type_enum import GuardianFactorPhoneFactorMessageTypeEnum -from ....types.guardian_factors_provider_sms_provider_enum import GuardianFactorsProviderSmsProviderEnum -from ....types.set_guardian_factor_phone_message_types_response_content import ( - SetGuardianFactorPhoneMessageTypesResponseContent, -) -from ....types.set_guardian_factor_phone_templates_response_content import ( - SetGuardianFactorPhoneTemplatesResponseContent, -) -from ....types.set_guardian_factors_provider_phone_response_content import ( - SetGuardianFactorsProviderPhoneResponseContent, -) -from ....types.set_guardian_factors_provider_phone_twilio_response_content import ( - SetGuardianFactorsProviderPhoneTwilioResponseContent, -) -from ....types.set_phone_factor_settings_response_content import SetPhoneFactorSettingsResponseContent -from .raw_client import AsyncRawPhoneClient, RawPhoneClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class PhoneClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawPhoneClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawPhoneClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawPhoneClient - """ - return self._raw_client - - def get_message_types( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetGuardianFactorPhoneMessageTypesResponseContent: - """ - Retrieve list of phone-type MFA factors (i.e., sms and voice) that are enabled for your tenant. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetGuardianFactorPhoneMessageTypesResponseContent - Returns the enabled phone factors - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.guardian.factors.phone.get_message_types() - """ - _response = self._raw_client.get_message_types(request_options=request_options) - return _response.data - - def set_message_types( - self, - *, - message_types: typing.Sequence[GuardianFactorPhoneFactorMessageTypeEnum], - request_options: typing.Optional[RequestOptions] = None, - ) -> SetGuardianFactorPhoneMessageTypesResponseContent: - """ - Replace the list of phone-type MFA factors (i.e., sms and voice) that are enabled for your tenant. - - Parameters - ---------- - message_types : typing.Sequence[GuardianFactorPhoneFactorMessageTypeEnum] - The list of phone factors to enable on the tenant. Can include `sms` and `voice`. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SetGuardianFactorPhoneMessageTypesResponseContent - Returns selected SMS provider configuration - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.guardian.factors.phone.set_message_types( - message_types=["sms"], - ) - """ - _response = self._raw_client.set_message_types(message_types=message_types, request_options=request_options) - return _response.data - - def get_twilio_provider( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetGuardianFactorsProviderPhoneTwilioResponseContent: - """ - Retrieve configuration details for a Twilio phone provider that has been set up in your tenant. To learn more, review Configure SMS and Voice Notifications for MFA. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetGuardianFactorsProviderPhoneTwilioResponseContent - Twilio Phone configuration successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.guardian.factors.phone.get_twilio_provider() - """ - _response = self._raw_client.get_twilio_provider(request_options=request_options) - return _response.data - - def set_twilio_provider( - self, - *, - from_: typing.Optional[str] = OMIT, - messaging_service_sid: typing.Optional[str] = OMIT, - auth_token: typing.Optional[str] = OMIT, - sid: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> SetGuardianFactorsProviderPhoneTwilioResponseContent: - """ - Update the configuration of a Twilio phone provider that has been set up in your tenant. To learn more, review Configure SMS and Voice Notifications for MFA. - - Parameters - ---------- - from_ : typing.Optional[str] - From number - - messaging_service_sid : typing.Optional[str] - Copilot SID - - auth_token : typing.Optional[str] - Twilio Authentication token - - sid : typing.Optional[str] - Twilio SID - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SetGuardianFactorsProviderPhoneTwilioResponseContent - Twilio Phone configuration successfully updated. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.guardian.factors.phone.set_twilio_provider() - """ - _response = self._raw_client.set_twilio_provider( - from_=from_, - messaging_service_sid=messaging_service_sid, - auth_token=auth_token, - sid=sid, - request_options=request_options, - ) - return _response.data - - def get_selected_provider( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetGuardianFactorsProviderPhoneResponseContent: - """ - Retrieve details of the multi-factor authentication phone provider configured for your tenant. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetGuardianFactorsProviderPhoneResponseContent - Returns selected Phone provider configuration - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.guardian.factors.phone.get_selected_provider() - """ - _response = self._raw_client.get_selected_provider(request_options=request_options) - return _response.data - - def set_provider( - self, - *, - provider: GuardianFactorsProviderSmsProviderEnum, - request_options: typing.Optional[RequestOptions] = None, - ) -> SetGuardianFactorsProviderPhoneResponseContent: - """ - Parameters - ---------- - provider : GuardianFactorsProviderSmsProviderEnum - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SetGuardianFactorsProviderPhoneResponseContent - Returns selected Phone provider configuration - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.guardian.factors.phone.set_provider( - provider="auth0", - ) - """ - _response = self._raw_client.set_provider(provider=provider, request_options=request_options) - return _response.data - - def get(self, *, request_options: typing.Optional[RequestOptions] = None) -> GetPhoneFactorSettingsResponseContent: - """ - TODO: Link this endpoint to relevant documentation when available. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetPhoneFactorSettingsResponseContent - Returns the phone factor settings. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.guardian.factors.phone.get() - """ - _response = self._raw_client.get(request_options=request_options) - return _response.data - - def set( - self, *, otp_length: int, otp_expiration_time: int, request_options: typing.Optional[RequestOptions] = None - ) -> SetPhoneFactorSettingsResponseContent: - """ - TODO: Link this endpoint to relevant documentation when available. - - Parameters - ---------- - otp_length : int - The length of the OTP code. - - otp_expiration_time : int - The OTP expiration time in seconds. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SetPhoneFactorSettingsResponseContent - The phone factor settings have been successfully set. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.guardian.factors.phone.set( - otp_length=1, - otp_expiration_time=1, - ) - """ - _response = self._raw_client.set( - otp_length=otp_length, otp_expiration_time=otp_expiration_time, request_options=request_options - ) - return _response.data - - def get_templates( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetGuardianFactorPhoneTemplatesResponseContent: - """ - Retrieve details of the multi-factor authentication enrollment and verification templates for phone-type factors available in your tenant. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetGuardianFactorPhoneTemplatesResponseContent - Phone enrollment and verification templates successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.guardian.factors.phone.get_templates() - """ - _response = self._raw_client.get_templates(request_options=request_options) - return _response.data - - def set_templates( - self, - *, - enrollment_message: str, - verification_message: str, - request_options: typing.Optional[RequestOptions] = None, - ) -> SetGuardianFactorPhoneTemplatesResponseContent: - """ - Customize the messages sent to complete phone enrollment and verification (subscription required). - - Parameters - ---------- - enrollment_message : str - Message sent to the user when they are invited to enroll with a phone number. - - verification_message : str - Message sent to the user when they are prompted to verify their account. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SetGuardianFactorPhoneTemplatesResponseContent - Phone enrollment and verification templates successfully updated. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.guardian.factors.phone.set_templates( - enrollment_message="enrollment_message", - verification_message="verification_message", - ) - """ - _response = self._raw_client.set_templates( - enrollment_message=enrollment_message, - verification_message=verification_message, - request_options=request_options, - ) - return _response.data - - -class AsyncPhoneClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawPhoneClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawPhoneClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawPhoneClient - """ - return self._raw_client - - async def get_message_types( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetGuardianFactorPhoneMessageTypesResponseContent: - """ - Retrieve list of phone-type MFA factors (i.e., sms and voice) that are enabled for your tenant. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetGuardianFactorPhoneMessageTypesResponseContent - Returns the enabled phone factors - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.guardian.factors.phone.get_message_types() - - - asyncio.run(main()) - """ - _response = await self._raw_client.get_message_types(request_options=request_options) - return _response.data - - async def set_message_types( - self, - *, - message_types: typing.Sequence[GuardianFactorPhoneFactorMessageTypeEnum], - request_options: typing.Optional[RequestOptions] = None, - ) -> SetGuardianFactorPhoneMessageTypesResponseContent: - """ - Replace the list of phone-type MFA factors (i.e., sms and voice) that are enabled for your tenant. - - Parameters - ---------- - message_types : typing.Sequence[GuardianFactorPhoneFactorMessageTypeEnum] - The list of phone factors to enable on the tenant. Can include `sms` and `voice`. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SetGuardianFactorPhoneMessageTypesResponseContent - Returns selected SMS provider configuration - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.guardian.factors.phone.set_message_types( - message_types=["sms"], - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.set_message_types( - message_types=message_types, request_options=request_options - ) - return _response.data - - async def get_twilio_provider( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetGuardianFactorsProviderPhoneTwilioResponseContent: - """ - Retrieve configuration details for a Twilio phone provider that has been set up in your tenant. To learn more, review Configure SMS and Voice Notifications for MFA. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetGuardianFactorsProviderPhoneTwilioResponseContent - Twilio Phone configuration successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.guardian.factors.phone.get_twilio_provider() - - - asyncio.run(main()) - """ - _response = await self._raw_client.get_twilio_provider(request_options=request_options) - return _response.data - - async def set_twilio_provider( - self, - *, - from_: typing.Optional[str] = OMIT, - messaging_service_sid: typing.Optional[str] = OMIT, - auth_token: typing.Optional[str] = OMIT, - sid: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> SetGuardianFactorsProviderPhoneTwilioResponseContent: - """ - Update the configuration of a Twilio phone provider that has been set up in your tenant. To learn more, review Configure SMS and Voice Notifications for MFA. - - Parameters - ---------- - from_ : typing.Optional[str] - From number - - messaging_service_sid : typing.Optional[str] - Copilot SID - - auth_token : typing.Optional[str] - Twilio Authentication token - - sid : typing.Optional[str] - Twilio SID - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SetGuardianFactorsProviderPhoneTwilioResponseContent - Twilio Phone configuration successfully updated. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.guardian.factors.phone.set_twilio_provider() - - - asyncio.run(main()) - """ - _response = await self._raw_client.set_twilio_provider( - from_=from_, - messaging_service_sid=messaging_service_sid, - auth_token=auth_token, - sid=sid, - request_options=request_options, - ) - return _response.data - - async def get_selected_provider( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetGuardianFactorsProviderPhoneResponseContent: - """ - Retrieve details of the multi-factor authentication phone provider configured for your tenant. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetGuardianFactorsProviderPhoneResponseContent - Returns selected Phone provider configuration - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.guardian.factors.phone.get_selected_provider() - - - asyncio.run(main()) - """ - _response = await self._raw_client.get_selected_provider(request_options=request_options) - return _response.data - - async def set_provider( - self, - *, - provider: GuardianFactorsProviderSmsProviderEnum, - request_options: typing.Optional[RequestOptions] = None, - ) -> SetGuardianFactorsProviderPhoneResponseContent: - """ - Parameters - ---------- - provider : GuardianFactorsProviderSmsProviderEnum - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SetGuardianFactorsProviderPhoneResponseContent - Returns selected Phone provider configuration - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.guardian.factors.phone.set_provider( - provider="auth0", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.set_provider(provider=provider, request_options=request_options) - return _response.data - - async def get( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetPhoneFactorSettingsResponseContent: - """ - TODO: Link this endpoint to relevant documentation when available. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetPhoneFactorSettingsResponseContent - Returns the phone factor settings. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.guardian.factors.phone.get() - - - asyncio.run(main()) - """ - _response = await self._raw_client.get(request_options=request_options) - return _response.data - - async def set( - self, *, otp_length: int, otp_expiration_time: int, request_options: typing.Optional[RequestOptions] = None - ) -> SetPhoneFactorSettingsResponseContent: - """ - TODO: Link this endpoint to relevant documentation when available. - - Parameters - ---------- - otp_length : int - The length of the OTP code. - - otp_expiration_time : int - The OTP expiration time in seconds. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SetPhoneFactorSettingsResponseContent - The phone factor settings have been successfully set. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.guardian.factors.phone.set( - otp_length=1, - otp_expiration_time=1, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.set( - otp_length=otp_length, otp_expiration_time=otp_expiration_time, request_options=request_options - ) - return _response.data - - async def get_templates( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetGuardianFactorPhoneTemplatesResponseContent: - """ - Retrieve details of the multi-factor authentication enrollment and verification templates for phone-type factors available in your tenant. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetGuardianFactorPhoneTemplatesResponseContent - Phone enrollment and verification templates successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.guardian.factors.phone.get_templates() - - - asyncio.run(main()) - """ - _response = await self._raw_client.get_templates(request_options=request_options) - return _response.data - - async def set_templates( - self, - *, - enrollment_message: str, - verification_message: str, - request_options: typing.Optional[RequestOptions] = None, - ) -> SetGuardianFactorPhoneTemplatesResponseContent: - """ - Customize the messages sent to complete phone enrollment and verification (subscription required). - - Parameters - ---------- - enrollment_message : str - Message sent to the user when they are invited to enroll with a phone number. - - verification_message : str - Message sent to the user when they are prompted to verify their account. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SetGuardianFactorPhoneTemplatesResponseContent - Phone enrollment and verification templates successfully updated. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.guardian.factors.phone.set_templates( - enrollment_message="enrollment_message", - verification_message="verification_message", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.set_templates( - enrollment_message=enrollment_message, - verification_message=verification_message, - request_options=request_options, - ) - return _response.data diff --git a/src/auth0/management/guardian/factors/phone/raw_client.py b/src/auth0/management/guardian/factors/phone/raw_client.py deleted file mode 100644 index 1cdb74cb..00000000 --- a/src/auth0/management/guardian/factors/phone/raw_client.py +++ /dev/null @@ -1,1728 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ....core.api_error import ApiError -from ....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ....core.http_response import AsyncHttpResponse, HttpResponse -from ....core.parse_error import ParsingError -from ....core.pydantic_utilities import parse_obj_as -from ....core.request_options import RequestOptions -from ....errors.bad_request_error import BadRequestError -from ....errors.forbidden_error import ForbiddenError -from ....errors.not_found_error import NotFoundError -from ....errors.too_many_requests_error import TooManyRequestsError -from ....errors.unauthorized_error import UnauthorizedError -from ....types.get_guardian_factor_phone_message_types_response_content import ( - GetGuardianFactorPhoneMessageTypesResponseContent, -) -from ....types.get_guardian_factor_phone_templates_response_content import ( - GetGuardianFactorPhoneTemplatesResponseContent, -) -from ....types.get_guardian_factors_provider_phone_response_content import ( - GetGuardianFactorsProviderPhoneResponseContent, -) -from ....types.get_guardian_factors_provider_phone_twilio_response_content import ( - GetGuardianFactorsProviderPhoneTwilioResponseContent, -) -from ....types.get_phone_factor_settings_response_content import GetPhoneFactorSettingsResponseContent -from ....types.guardian_factor_phone_factor_message_type_enum import GuardianFactorPhoneFactorMessageTypeEnum -from ....types.guardian_factors_provider_sms_provider_enum import GuardianFactorsProviderSmsProviderEnum -from ....types.set_guardian_factor_phone_message_types_response_content import ( - SetGuardianFactorPhoneMessageTypesResponseContent, -) -from ....types.set_guardian_factor_phone_templates_response_content import ( - SetGuardianFactorPhoneTemplatesResponseContent, -) -from ....types.set_guardian_factors_provider_phone_response_content import ( - SetGuardianFactorsProviderPhoneResponseContent, -) -from ....types.set_guardian_factors_provider_phone_twilio_response_content import ( - SetGuardianFactorsProviderPhoneTwilioResponseContent, -) -from ....types.set_phone_factor_settings_response_content import SetPhoneFactorSettingsResponseContent -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawPhoneClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def get_message_types( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetGuardianFactorPhoneMessageTypesResponseContent]: - """ - Retrieve list of phone-type MFA factors (i.e., sms and voice) that are enabled for your tenant. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetGuardianFactorPhoneMessageTypesResponseContent] - Returns the enabled phone factors - """ - _response = self._client_wrapper.httpx_client.request( - "guardian/factors/phone/message-types", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetGuardianFactorPhoneMessageTypesResponseContent, - parse_obj_as( - type_=GetGuardianFactorPhoneMessageTypesResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def set_message_types( - self, - *, - message_types: typing.Sequence[GuardianFactorPhoneFactorMessageTypeEnum], - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[SetGuardianFactorPhoneMessageTypesResponseContent]: - """ - Replace the list of phone-type MFA factors (i.e., sms and voice) that are enabled for your tenant. - - Parameters - ---------- - message_types : typing.Sequence[GuardianFactorPhoneFactorMessageTypeEnum] - The list of phone factors to enable on the tenant. Can include `sms` and `voice`. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[SetGuardianFactorPhoneMessageTypesResponseContent] - Returns selected SMS provider configuration - """ - _response = self._client_wrapper.httpx_client.request( - "guardian/factors/phone/message-types", - method="PUT", - json={ - "message_types": message_types, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - SetGuardianFactorPhoneMessageTypesResponseContent, - parse_obj_as( - type_=SetGuardianFactorPhoneMessageTypesResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def get_twilio_provider( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetGuardianFactorsProviderPhoneTwilioResponseContent]: - """ - Retrieve configuration details for a Twilio phone provider that has been set up in your tenant. To learn more, review Configure SMS and Voice Notifications for MFA. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetGuardianFactorsProviderPhoneTwilioResponseContent] - Twilio Phone configuration successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - "guardian/factors/phone/providers/twilio", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetGuardianFactorsProviderPhoneTwilioResponseContent, - parse_obj_as( - type_=GetGuardianFactorsProviderPhoneTwilioResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def set_twilio_provider( - self, - *, - from_: typing.Optional[str] = OMIT, - messaging_service_sid: typing.Optional[str] = OMIT, - auth_token: typing.Optional[str] = OMIT, - sid: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[SetGuardianFactorsProviderPhoneTwilioResponseContent]: - """ - Update the configuration of a Twilio phone provider that has been set up in your tenant. To learn more, review Configure SMS and Voice Notifications for MFA. - - Parameters - ---------- - from_ : typing.Optional[str] - From number - - messaging_service_sid : typing.Optional[str] - Copilot SID - - auth_token : typing.Optional[str] - Twilio Authentication token - - sid : typing.Optional[str] - Twilio SID - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[SetGuardianFactorsProviderPhoneTwilioResponseContent] - Twilio Phone configuration successfully updated. - """ - _response = self._client_wrapper.httpx_client.request( - "guardian/factors/phone/providers/twilio", - method="PUT", - json={ - "from": from_, - "messaging_service_sid": messaging_service_sid, - "auth_token": auth_token, - "sid": sid, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - SetGuardianFactorsProviderPhoneTwilioResponseContent, - parse_obj_as( - type_=SetGuardianFactorsProviderPhoneTwilioResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def get_selected_provider( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetGuardianFactorsProviderPhoneResponseContent]: - """ - Retrieve details of the multi-factor authentication phone provider configured for your tenant. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetGuardianFactorsProviderPhoneResponseContent] - Returns selected Phone provider configuration - """ - _response = self._client_wrapper.httpx_client.request( - "guardian/factors/phone/selected-provider", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetGuardianFactorsProviderPhoneResponseContent, - parse_obj_as( - type_=GetGuardianFactorsProviderPhoneResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def set_provider( - self, - *, - provider: GuardianFactorsProviderSmsProviderEnum, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[SetGuardianFactorsProviderPhoneResponseContent]: - """ - Parameters - ---------- - provider : GuardianFactorsProviderSmsProviderEnum - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[SetGuardianFactorsProviderPhoneResponseContent] - Returns selected Phone provider configuration - """ - _response = self._client_wrapper.httpx_client.request( - "guardian/factors/phone/selected-provider", - method="PUT", - json={ - "provider": provider, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - SetGuardianFactorsProviderPhoneResponseContent, - parse_obj_as( - type_=SetGuardianFactorsProviderPhoneResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def get( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetPhoneFactorSettingsResponseContent]: - """ - TODO: Link this endpoint to relevant documentation when available. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetPhoneFactorSettingsResponseContent] - Returns the phone factor settings. - """ - _response = self._client_wrapper.httpx_client.request( - "guardian/factors/phone/settings", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetPhoneFactorSettingsResponseContent, - parse_obj_as( - type_=GetPhoneFactorSettingsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def set( - self, *, otp_length: int, otp_expiration_time: int, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[SetPhoneFactorSettingsResponseContent]: - """ - TODO: Link this endpoint to relevant documentation when available. - - Parameters - ---------- - otp_length : int - The length of the OTP code. - - otp_expiration_time : int - The OTP expiration time in seconds. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[SetPhoneFactorSettingsResponseContent] - The phone factor settings have been successfully set. - """ - _response = self._client_wrapper.httpx_client.request( - "guardian/factors/phone/settings", - method="PUT", - json={ - "otp_length": otp_length, - "otp_expiration_time": otp_expiration_time, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - SetPhoneFactorSettingsResponseContent, - parse_obj_as( - type_=SetPhoneFactorSettingsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def get_templates( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetGuardianFactorPhoneTemplatesResponseContent]: - """ - Retrieve details of the multi-factor authentication enrollment and verification templates for phone-type factors available in your tenant. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetGuardianFactorPhoneTemplatesResponseContent] - Phone enrollment and verification templates successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - "guardian/factors/phone/templates", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetGuardianFactorPhoneTemplatesResponseContent, - parse_obj_as( - type_=GetGuardianFactorPhoneTemplatesResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def set_templates( - self, - *, - enrollment_message: str, - verification_message: str, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[SetGuardianFactorPhoneTemplatesResponseContent]: - """ - Customize the messages sent to complete phone enrollment and verification (subscription required). - - Parameters - ---------- - enrollment_message : str - Message sent to the user when they are invited to enroll with a phone number. - - verification_message : str - Message sent to the user when they are prompted to verify their account. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[SetGuardianFactorPhoneTemplatesResponseContent] - Phone enrollment and verification templates successfully updated. - """ - _response = self._client_wrapper.httpx_client.request( - "guardian/factors/phone/templates", - method="PUT", - json={ - "enrollment_message": enrollment_message, - "verification_message": verification_message, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - SetGuardianFactorPhoneTemplatesResponseContent, - parse_obj_as( - type_=SetGuardianFactorPhoneTemplatesResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawPhoneClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def get_message_types( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetGuardianFactorPhoneMessageTypesResponseContent]: - """ - Retrieve list of phone-type MFA factors (i.e., sms and voice) that are enabled for your tenant. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetGuardianFactorPhoneMessageTypesResponseContent] - Returns the enabled phone factors - """ - _response = await self._client_wrapper.httpx_client.request( - "guardian/factors/phone/message-types", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetGuardianFactorPhoneMessageTypesResponseContent, - parse_obj_as( - type_=GetGuardianFactorPhoneMessageTypesResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def set_message_types( - self, - *, - message_types: typing.Sequence[GuardianFactorPhoneFactorMessageTypeEnum], - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[SetGuardianFactorPhoneMessageTypesResponseContent]: - """ - Replace the list of phone-type MFA factors (i.e., sms and voice) that are enabled for your tenant. - - Parameters - ---------- - message_types : typing.Sequence[GuardianFactorPhoneFactorMessageTypeEnum] - The list of phone factors to enable on the tenant. Can include `sms` and `voice`. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[SetGuardianFactorPhoneMessageTypesResponseContent] - Returns selected SMS provider configuration - """ - _response = await self._client_wrapper.httpx_client.request( - "guardian/factors/phone/message-types", - method="PUT", - json={ - "message_types": message_types, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - SetGuardianFactorPhoneMessageTypesResponseContent, - parse_obj_as( - type_=SetGuardianFactorPhoneMessageTypesResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def get_twilio_provider( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetGuardianFactorsProviderPhoneTwilioResponseContent]: - """ - Retrieve configuration details for a Twilio phone provider that has been set up in your tenant. To learn more, review Configure SMS and Voice Notifications for MFA. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetGuardianFactorsProviderPhoneTwilioResponseContent] - Twilio Phone configuration successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - "guardian/factors/phone/providers/twilio", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetGuardianFactorsProviderPhoneTwilioResponseContent, - parse_obj_as( - type_=GetGuardianFactorsProviderPhoneTwilioResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def set_twilio_provider( - self, - *, - from_: typing.Optional[str] = OMIT, - messaging_service_sid: typing.Optional[str] = OMIT, - auth_token: typing.Optional[str] = OMIT, - sid: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[SetGuardianFactorsProviderPhoneTwilioResponseContent]: - """ - Update the configuration of a Twilio phone provider that has been set up in your tenant. To learn more, review Configure SMS and Voice Notifications for MFA. - - Parameters - ---------- - from_ : typing.Optional[str] - From number - - messaging_service_sid : typing.Optional[str] - Copilot SID - - auth_token : typing.Optional[str] - Twilio Authentication token - - sid : typing.Optional[str] - Twilio SID - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[SetGuardianFactorsProviderPhoneTwilioResponseContent] - Twilio Phone configuration successfully updated. - """ - _response = await self._client_wrapper.httpx_client.request( - "guardian/factors/phone/providers/twilio", - method="PUT", - json={ - "from": from_, - "messaging_service_sid": messaging_service_sid, - "auth_token": auth_token, - "sid": sid, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - SetGuardianFactorsProviderPhoneTwilioResponseContent, - parse_obj_as( - type_=SetGuardianFactorsProviderPhoneTwilioResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def get_selected_provider( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetGuardianFactorsProviderPhoneResponseContent]: - """ - Retrieve details of the multi-factor authentication phone provider configured for your tenant. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetGuardianFactorsProviderPhoneResponseContent] - Returns selected Phone provider configuration - """ - _response = await self._client_wrapper.httpx_client.request( - "guardian/factors/phone/selected-provider", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetGuardianFactorsProviderPhoneResponseContent, - parse_obj_as( - type_=GetGuardianFactorsProviderPhoneResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def set_provider( - self, - *, - provider: GuardianFactorsProviderSmsProviderEnum, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[SetGuardianFactorsProviderPhoneResponseContent]: - """ - Parameters - ---------- - provider : GuardianFactorsProviderSmsProviderEnum - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[SetGuardianFactorsProviderPhoneResponseContent] - Returns selected Phone provider configuration - """ - _response = await self._client_wrapper.httpx_client.request( - "guardian/factors/phone/selected-provider", - method="PUT", - json={ - "provider": provider, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - SetGuardianFactorsProviderPhoneResponseContent, - parse_obj_as( - type_=SetGuardianFactorsProviderPhoneResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def get( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetPhoneFactorSettingsResponseContent]: - """ - TODO: Link this endpoint to relevant documentation when available. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetPhoneFactorSettingsResponseContent] - Returns the phone factor settings. - """ - _response = await self._client_wrapper.httpx_client.request( - "guardian/factors/phone/settings", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetPhoneFactorSettingsResponseContent, - parse_obj_as( - type_=GetPhoneFactorSettingsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def set( - self, *, otp_length: int, otp_expiration_time: int, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[SetPhoneFactorSettingsResponseContent]: - """ - TODO: Link this endpoint to relevant documentation when available. - - Parameters - ---------- - otp_length : int - The length of the OTP code. - - otp_expiration_time : int - The OTP expiration time in seconds. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[SetPhoneFactorSettingsResponseContent] - The phone factor settings have been successfully set. - """ - _response = await self._client_wrapper.httpx_client.request( - "guardian/factors/phone/settings", - method="PUT", - json={ - "otp_length": otp_length, - "otp_expiration_time": otp_expiration_time, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - SetPhoneFactorSettingsResponseContent, - parse_obj_as( - type_=SetPhoneFactorSettingsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def get_templates( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetGuardianFactorPhoneTemplatesResponseContent]: - """ - Retrieve details of the multi-factor authentication enrollment and verification templates for phone-type factors available in your tenant. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetGuardianFactorPhoneTemplatesResponseContent] - Phone enrollment and verification templates successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - "guardian/factors/phone/templates", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetGuardianFactorPhoneTemplatesResponseContent, - parse_obj_as( - type_=GetGuardianFactorPhoneTemplatesResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def set_templates( - self, - *, - enrollment_message: str, - verification_message: str, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[SetGuardianFactorPhoneTemplatesResponseContent]: - """ - Customize the messages sent to complete phone enrollment and verification (subscription required). - - Parameters - ---------- - enrollment_message : str - Message sent to the user when they are invited to enroll with a phone number. - - verification_message : str - Message sent to the user when they are prompted to verify their account. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[SetGuardianFactorPhoneTemplatesResponseContent] - Phone enrollment and verification templates successfully updated. - """ - _response = await self._client_wrapper.httpx_client.request( - "guardian/factors/phone/templates", - method="PUT", - json={ - "enrollment_message": enrollment_message, - "verification_message": verification_message, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - SetGuardianFactorPhoneTemplatesResponseContent, - parse_obj_as( - type_=SetGuardianFactorPhoneTemplatesResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/guardian/factors/push_notification/__init__.py b/src/auth0/management/guardian/factors/push_notification/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/guardian/factors/push_notification/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/guardian/factors/push_notification/client.py b/src/auth0/management/guardian/factors/push_notification/client.py deleted file mode 100644 index dfce5d9a..00000000 --- a/src/auth0/management/guardian/factors/push_notification/client.py +++ /dev/null @@ -1,1043 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ....core.request_options import RequestOptions -from ....types.get_guardian_factors_provider_apns_response_content import GetGuardianFactorsProviderApnsResponseContent -from ....types.get_guardian_factors_provider_push_notification_response_content import ( - GetGuardianFactorsProviderPushNotificationResponseContent, -) -from ....types.get_guardian_factors_provider_sns_response_content import GetGuardianFactorsProviderSnsResponseContent -from ....types.guardian_factors_provider_push_notification_provider_data_enum import ( - GuardianFactorsProviderPushNotificationProviderDataEnum, -) -from ....types.set_guardian_factors_provider_push_notification_apns_response_content import ( - SetGuardianFactorsProviderPushNotificationApnsResponseContent, -) -from ....types.set_guardian_factors_provider_push_notification_fcm_response_content import ( - SetGuardianFactorsProviderPushNotificationFcmResponseContent, -) -from ....types.set_guardian_factors_provider_push_notification_fcmv_1_response_content import ( - SetGuardianFactorsProviderPushNotificationFcmv1ResponseContent, -) -from ....types.set_guardian_factors_provider_push_notification_response_content import ( - SetGuardianFactorsProviderPushNotificationResponseContent, -) -from ....types.set_guardian_factors_provider_push_notification_sns_response_content import ( - SetGuardianFactorsProviderPushNotificationSnsResponseContent, -) -from ....types.update_guardian_factors_provider_push_notification_apns_response_content import ( - UpdateGuardianFactorsProviderPushNotificationApnsResponseContent, -) -from ....types.update_guardian_factors_provider_push_notification_fcm_response_content import ( - UpdateGuardianFactorsProviderPushNotificationFcmResponseContent, -) -from ....types.update_guardian_factors_provider_push_notification_fcmv_1_response_content import ( - UpdateGuardianFactorsProviderPushNotificationFcmv1ResponseContent, -) -from ....types.update_guardian_factors_provider_push_notification_sns_response_content import ( - UpdateGuardianFactorsProviderPushNotificationSnsResponseContent, -) -from .raw_client import AsyncRawPushNotificationClient, RawPushNotificationClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class PushNotificationClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawPushNotificationClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawPushNotificationClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawPushNotificationClient - """ - return self._raw_client - - def get_apns_provider( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetGuardianFactorsProviderApnsResponseContent: - """ - Retrieve configuration details for the multi-factor authentication APNS provider associated with your tenant. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetGuardianFactorsProviderApnsResponseContent - APNS configuration successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.guardian.factors.push_notification.get_apns_provider() - """ - _response = self._raw_client.get_apns_provider(request_options=request_options) - return _response.data - - def set_apns_provider( - self, - *, - sandbox: typing.Optional[bool] = OMIT, - bundle_id: typing.Optional[str] = OMIT, - p_12: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> SetGuardianFactorsProviderPushNotificationApnsResponseContent: - """ - Overwrite all configuration details of the multi-factor authentication APNS provider associated with your tenant. - - Parameters - ---------- - sandbox : typing.Optional[bool] - - bundle_id : typing.Optional[str] - - p_12 : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SetGuardianFactorsProviderPushNotificationApnsResponseContent - APNS configuration successfully updated. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.guardian.factors.push_notification.set_apns_provider() - """ - _response = self._raw_client.set_apns_provider( - sandbox=sandbox, bundle_id=bundle_id, p_12=p_12, request_options=request_options - ) - return _response.data - - def update_apns_provider( - self, - *, - sandbox: typing.Optional[bool] = OMIT, - bundle_id: typing.Optional[str] = OMIT, - p_12: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateGuardianFactorsProviderPushNotificationApnsResponseContent: - """ - Modify configuration details of the multi-factor authentication APNS provider associated with your tenant. - - Parameters - ---------- - sandbox : typing.Optional[bool] - - bundle_id : typing.Optional[str] - - p_12 : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateGuardianFactorsProviderPushNotificationApnsResponseContent - APNS configuration successfully updated. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.guardian.factors.push_notification.update_apns_provider() - """ - _response = self._raw_client.update_apns_provider( - sandbox=sandbox, bundle_id=bundle_id, p_12=p_12, request_options=request_options - ) - return _response.data - - def set_fcm_provider( - self, *, server_key: typing.Optional[str] = OMIT, request_options: typing.Optional[RequestOptions] = None - ) -> SetGuardianFactorsProviderPushNotificationFcmResponseContent: - """ - Overwrite all configuration details of the multi-factor authentication FCM provider associated with your tenant. - - Parameters - ---------- - server_key : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SetGuardianFactorsProviderPushNotificationFcmResponseContent - FCM configuration updated - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.guardian.factors.push_notification.set_fcm_provider() - """ - _response = self._raw_client.set_fcm_provider(server_key=server_key, request_options=request_options) - return _response.data - - def update_fcm_provider( - self, *, server_key: typing.Optional[str] = OMIT, request_options: typing.Optional[RequestOptions] = None - ) -> UpdateGuardianFactorsProviderPushNotificationFcmResponseContent: - """ - Modify configuration details of the multi-factor authentication FCM provider associated with your tenant. - - Parameters - ---------- - server_key : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateGuardianFactorsProviderPushNotificationFcmResponseContent - FCM configuration updated - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.guardian.factors.push_notification.update_fcm_provider() - """ - _response = self._raw_client.update_fcm_provider(server_key=server_key, request_options=request_options) - return _response.data - - def set_fcmv_1_provider( - self, - *, - server_credentials: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> SetGuardianFactorsProviderPushNotificationFcmv1ResponseContent: - """ - Overwrite all configuration details of the multi-factor authentication FCMV1 provider associated with your tenant. - - Parameters - ---------- - server_credentials : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SetGuardianFactorsProviderPushNotificationFcmv1ResponseContent - FCMV1 configuration updated - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.guardian.factors.push_notification.set_fcmv_1_provider() - """ - _response = self._raw_client.set_fcmv_1_provider( - server_credentials=server_credentials, request_options=request_options - ) - return _response.data - - def update_fcmv_1_provider( - self, - *, - server_credentials: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateGuardianFactorsProviderPushNotificationFcmv1ResponseContent: - """ - Modify configuration details of the multi-factor authentication FCMV1 provider associated with your tenant. - - Parameters - ---------- - server_credentials : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateGuardianFactorsProviderPushNotificationFcmv1ResponseContent - FCMV1 configuration updated - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.guardian.factors.push_notification.update_fcmv_1_provider() - """ - _response = self._raw_client.update_fcmv_1_provider( - server_credentials=server_credentials, request_options=request_options - ) - return _response.data - - def get_sns_provider( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetGuardianFactorsProviderSnsResponseContent: - """ - Retrieve configuration details for an AWS SNS push notification provider that has been enabled for MFA. To learn more, review [Configure Push Notifications for MFA](https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-push-notifications-for-mfa). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetGuardianFactorsProviderSnsResponseContent - AWS SNS configuration successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.guardian.factors.push_notification.get_sns_provider() - """ - _response = self._raw_client.get_sns_provider(request_options=request_options) - return _response.data - - def set_sns_provider( - self, - *, - aws_access_key_id: typing.Optional[str] = OMIT, - aws_secret_access_key: typing.Optional[str] = OMIT, - aws_region: typing.Optional[str] = OMIT, - sns_apns_platform_application_arn: typing.Optional[str] = OMIT, - sns_gcm_platform_application_arn: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> SetGuardianFactorsProviderPushNotificationSnsResponseContent: - """ - Configure the [AWS SNS push notification provider configuration](https://auth0.com/docs/multifactor-authentication/developer/sns-configuration) (subscription required). - - Parameters - ---------- - aws_access_key_id : typing.Optional[str] - - aws_secret_access_key : typing.Optional[str] - - aws_region : typing.Optional[str] - - sns_apns_platform_application_arn : typing.Optional[str] - - sns_gcm_platform_application_arn : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SetGuardianFactorsProviderPushNotificationSnsResponseContent - AWS SNS configuration successfully updated. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.guardian.factors.push_notification.set_sns_provider() - """ - _response = self._raw_client.set_sns_provider( - aws_access_key_id=aws_access_key_id, - aws_secret_access_key=aws_secret_access_key, - aws_region=aws_region, - sns_apns_platform_application_arn=sns_apns_platform_application_arn, - sns_gcm_platform_application_arn=sns_gcm_platform_application_arn, - request_options=request_options, - ) - return _response.data - - def update_sns_provider( - self, - *, - aws_access_key_id: typing.Optional[str] = OMIT, - aws_secret_access_key: typing.Optional[str] = OMIT, - aws_region: typing.Optional[str] = OMIT, - sns_apns_platform_application_arn: typing.Optional[str] = OMIT, - sns_gcm_platform_application_arn: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateGuardianFactorsProviderPushNotificationSnsResponseContent: - """ - Configure the [AWS SNS push notification provider configuration](https://auth0.com/docs/multifactor-authentication/developer/sns-configuration) (subscription required). - - Parameters - ---------- - aws_access_key_id : typing.Optional[str] - - aws_secret_access_key : typing.Optional[str] - - aws_region : typing.Optional[str] - - sns_apns_platform_application_arn : typing.Optional[str] - - sns_gcm_platform_application_arn : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateGuardianFactorsProviderPushNotificationSnsResponseContent - AWS SNS configuration successfully updated. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.guardian.factors.push_notification.update_sns_provider() - """ - _response = self._raw_client.update_sns_provider( - aws_access_key_id=aws_access_key_id, - aws_secret_access_key=aws_secret_access_key, - aws_region=aws_region, - sns_apns_platform_application_arn=sns_apns_platform_application_arn, - sns_gcm_platform_application_arn=sns_gcm_platform_application_arn, - request_options=request_options, - ) - return _response.data - - def get_selected_provider( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetGuardianFactorsProviderPushNotificationResponseContent: - """ - Modify the push notification provider configured for your tenant. For more information, review Configure Push Notifications for MFA. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetGuardianFactorsProviderPushNotificationResponseContent - Returns selected push notification provider - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.guardian.factors.push_notification.get_selected_provider() - """ - _response = self._raw_client.get_selected_provider(request_options=request_options) - return _response.data - - def set_provider( - self, - *, - provider: GuardianFactorsProviderPushNotificationProviderDataEnum, - request_options: typing.Optional[RequestOptions] = None, - ) -> SetGuardianFactorsProviderPushNotificationResponseContent: - """ - Modify the push notification provider configured for your tenant. For more information, review Configure Push Notifications for MFA. - - Parameters - ---------- - provider : GuardianFactorsProviderPushNotificationProviderDataEnum - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SetGuardianFactorsProviderPushNotificationResponseContent - Returns selected push notification provider configuration - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.guardian.factors.push_notification.set_provider( - provider="guardian", - ) - """ - _response = self._raw_client.set_provider(provider=provider, request_options=request_options) - return _response.data - - -class AsyncPushNotificationClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawPushNotificationClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawPushNotificationClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawPushNotificationClient - """ - return self._raw_client - - async def get_apns_provider( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetGuardianFactorsProviderApnsResponseContent: - """ - Retrieve configuration details for the multi-factor authentication APNS provider associated with your tenant. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetGuardianFactorsProviderApnsResponseContent - APNS configuration successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.guardian.factors.push_notification.get_apns_provider() - - - asyncio.run(main()) - """ - _response = await self._raw_client.get_apns_provider(request_options=request_options) - return _response.data - - async def set_apns_provider( - self, - *, - sandbox: typing.Optional[bool] = OMIT, - bundle_id: typing.Optional[str] = OMIT, - p_12: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> SetGuardianFactorsProviderPushNotificationApnsResponseContent: - """ - Overwrite all configuration details of the multi-factor authentication APNS provider associated with your tenant. - - Parameters - ---------- - sandbox : typing.Optional[bool] - - bundle_id : typing.Optional[str] - - p_12 : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SetGuardianFactorsProviderPushNotificationApnsResponseContent - APNS configuration successfully updated. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.guardian.factors.push_notification.set_apns_provider() - - - asyncio.run(main()) - """ - _response = await self._raw_client.set_apns_provider( - sandbox=sandbox, bundle_id=bundle_id, p_12=p_12, request_options=request_options - ) - return _response.data - - async def update_apns_provider( - self, - *, - sandbox: typing.Optional[bool] = OMIT, - bundle_id: typing.Optional[str] = OMIT, - p_12: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateGuardianFactorsProviderPushNotificationApnsResponseContent: - """ - Modify configuration details of the multi-factor authentication APNS provider associated with your tenant. - - Parameters - ---------- - sandbox : typing.Optional[bool] - - bundle_id : typing.Optional[str] - - p_12 : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateGuardianFactorsProviderPushNotificationApnsResponseContent - APNS configuration successfully updated. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.guardian.factors.push_notification.update_apns_provider() - - - asyncio.run(main()) - """ - _response = await self._raw_client.update_apns_provider( - sandbox=sandbox, bundle_id=bundle_id, p_12=p_12, request_options=request_options - ) - return _response.data - - async def set_fcm_provider( - self, *, server_key: typing.Optional[str] = OMIT, request_options: typing.Optional[RequestOptions] = None - ) -> SetGuardianFactorsProviderPushNotificationFcmResponseContent: - """ - Overwrite all configuration details of the multi-factor authentication FCM provider associated with your tenant. - - Parameters - ---------- - server_key : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SetGuardianFactorsProviderPushNotificationFcmResponseContent - FCM configuration updated - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.guardian.factors.push_notification.set_fcm_provider() - - - asyncio.run(main()) - """ - _response = await self._raw_client.set_fcm_provider(server_key=server_key, request_options=request_options) - return _response.data - - async def update_fcm_provider( - self, *, server_key: typing.Optional[str] = OMIT, request_options: typing.Optional[RequestOptions] = None - ) -> UpdateGuardianFactorsProviderPushNotificationFcmResponseContent: - """ - Modify configuration details of the multi-factor authentication FCM provider associated with your tenant. - - Parameters - ---------- - server_key : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateGuardianFactorsProviderPushNotificationFcmResponseContent - FCM configuration updated - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.guardian.factors.push_notification.update_fcm_provider() - - - asyncio.run(main()) - """ - _response = await self._raw_client.update_fcm_provider(server_key=server_key, request_options=request_options) - return _response.data - - async def set_fcmv_1_provider( - self, - *, - server_credentials: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> SetGuardianFactorsProviderPushNotificationFcmv1ResponseContent: - """ - Overwrite all configuration details of the multi-factor authentication FCMV1 provider associated with your tenant. - - Parameters - ---------- - server_credentials : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SetGuardianFactorsProviderPushNotificationFcmv1ResponseContent - FCMV1 configuration updated - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.guardian.factors.push_notification.set_fcmv_1_provider() - - - asyncio.run(main()) - """ - _response = await self._raw_client.set_fcmv_1_provider( - server_credentials=server_credentials, request_options=request_options - ) - return _response.data - - async def update_fcmv_1_provider( - self, - *, - server_credentials: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateGuardianFactorsProviderPushNotificationFcmv1ResponseContent: - """ - Modify configuration details of the multi-factor authentication FCMV1 provider associated with your tenant. - - Parameters - ---------- - server_credentials : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateGuardianFactorsProviderPushNotificationFcmv1ResponseContent - FCMV1 configuration updated - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.guardian.factors.push_notification.update_fcmv_1_provider() - - - asyncio.run(main()) - """ - _response = await self._raw_client.update_fcmv_1_provider( - server_credentials=server_credentials, request_options=request_options - ) - return _response.data - - async def get_sns_provider( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetGuardianFactorsProviderSnsResponseContent: - """ - Retrieve configuration details for an AWS SNS push notification provider that has been enabled for MFA. To learn more, review [Configure Push Notifications for MFA](https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-push-notifications-for-mfa). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetGuardianFactorsProviderSnsResponseContent - AWS SNS configuration successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.guardian.factors.push_notification.get_sns_provider() - - - asyncio.run(main()) - """ - _response = await self._raw_client.get_sns_provider(request_options=request_options) - return _response.data - - async def set_sns_provider( - self, - *, - aws_access_key_id: typing.Optional[str] = OMIT, - aws_secret_access_key: typing.Optional[str] = OMIT, - aws_region: typing.Optional[str] = OMIT, - sns_apns_platform_application_arn: typing.Optional[str] = OMIT, - sns_gcm_platform_application_arn: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> SetGuardianFactorsProviderPushNotificationSnsResponseContent: - """ - Configure the [AWS SNS push notification provider configuration](https://auth0.com/docs/multifactor-authentication/developer/sns-configuration) (subscription required). - - Parameters - ---------- - aws_access_key_id : typing.Optional[str] - - aws_secret_access_key : typing.Optional[str] - - aws_region : typing.Optional[str] - - sns_apns_platform_application_arn : typing.Optional[str] - - sns_gcm_platform_application_arn : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SetGuardianFactorsProviderPushNotificationSnsResponseContent - AWS SNS configuration successfully updated. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.guardian.factors.push_notification.set_sns_provider() - - - asyncio.run(main()) - """ - _response = await self._raw_client.set_sns_provider( - aws_access_key_id=aws_access_key_id, - aws_secret_access_key=aws_secret_access_key, - aws_region=aws_region, - sns_apns_platform_application_arn=sns_apns_platform_application_arn, - sns_gcm_platform_application_arn=sns_gcm_platform_application_arn, - request_options=request_options, - ) - return _response.data - - async def update_sns_provider( - self, - *, - aws_access_key_id: typing.Optional[str] = OMIT, - aws_secret_access_key: typing.Optional[str] = OMIT, - aws_region: typing.Optional[str] = OMIT, - sns_apns_platform_application_arn: typing.Optional[str] = OMIT, - sns_gcm_platform_application_arn: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateGuardianFactorsProviderPushNotificationSnsResponseContent: - """ - Configure the [AWS SNS push notification provider configuration](https://auth0.com/docs/multifactor-authentication/developer/sns-configuration) (subscription required). - - Parameters - ---------- - aws_access_key_id : typing.Optional[str] - - aws_secret_access_key : typing.Optional[str] - - aws_region : typing.Optional[str] - - sns_apns_platform_application_arn : typing.Optional[str] - - sns_gcm_platform_application_arn : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateGuardianFactorsProviderPushNotificationSnsResponseContent - AWS SNS configuration successfully updated. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.guardian.factors.push_notification.update_sns_provider() - - - asyncio.run(main()) - """ - _response = await self._raw_client.update_sns_provider( - aws_access_key_id=aws_access_key_id, - aws_secret_access_key=aws_secret_access_key, - aws_region=aws_region, - sns_apns_platform_application_arn=sns_apns_platform_application_arn, - sns_gcm_platform_application_arn=sns_gcm_platform_application_arn, - request_options=request_options, - ) - return _response.data - - async def get_selected_provider( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetGuardianFactorsProviderPushNotificationResponseContent: - """ - Modify the push notification provider configured for your tenant. For more information, review Configure Push Notifications for MFA. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetGuardianFactorsProviderPushNotificationResponseContent - Returns selected push notification provider - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.guardian.factors.push_notification.get_selected_provider() - - - asyncio.run(main()) - """ - _response = await self._raw_client.get_selected_provider(request_options=request_options) - return _response.data - - async def set_provider( - self, - *, - provider: GuardianFactorsProviderPushNotificationProviderDataEnum, - request_options: typing.Optional[RequestOptions] = None, - ) -> SetGuardianFactorsProviderPushNotificationResponseContent: - """ - Modify the push notification provider configured for your tenant. For more information, review Configure Push Notifications for MFA. - - Parameters - ---------- - provider : GuardianFactorsProviderPushNotificationProviderDataEnum - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SetGuardianFactorsProviderPushNotificationResponseContent - Returns selected push notification provider configuration - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.guardian.factors.push_notification.set_provider( - provider="guardian", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.set_provider(provider=provider, request_options=request_options) - return _response.data diff --git a/src/auth0/management/guardian/factors/push_notification/raw_client.py b/src/auth0/management/guardian/factors/push_notification/raw_client.py deleted file mode 100644 index 7cd5bfd2..00000000 --- a/src/auth0/management/guardian/factors/push_notification/raw_client.py +++ /dev/null @@ -1,2115 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ....core.api_error import ApiError -from ....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ....core.http_response import AsyncHttpResponse, HttpResponse -from ....core.parse_error import ParsingError -from ....core.pydantic_utilities import parse_obj_as -from ....core.request_options import RequestOptions -from ....errors.bad_request_error import BadRequestError -from ....errors.forbidden_error import ForbiddenError -from ....errors.unauthorized_error import UnauthorizedError -from ....types.get_guardian_factors_provider_apns_response_content import GetGuardianFactorsProviderApnsResponseContent -from ....types.get_guardian_factors_provider_push_notification_response_content import ( - GetGuardianFactorsProviderPushNotificationResponseContent, -) -from ....types.get_guardian_factors_provider_sns_response_content import GetGuardianFactorsProviderSnsResponseContent -from ....types.guardian_factors_provider_push_notification_provider_data_enum import ( - GuardianFactorsProviderPushNotificationProviderDataEnum, -) -from ....types.set_guardian_factors_provider_push_notification_apns_response_content import ( - SetGuardianFactorsProviderPushNotificationApnsResponseContent, -) -from ....types.set_guardian_factors_provider_push_notification_fcm_response_content import ( - SetGuardianFactorsProviderPushNotificationFcmResponseContent, -) -from ....types.set_guardian_factors_provider_push_notification_fcmv_1_response_content import ( - SetGuardianFactorsProviderPushNotificationFcmv1ResponseContent, -) -from ....types.set_guardian_factors_provider_push_notification_response_content import ( - SetGuardianFactorsProviderPushNotificationResponseContent, -) -from ....types.set_guardian_factors_provider_push_notification_sns_response_content import ( - SetGuardianFactorsProviderPushNotificationSnsResponseContent, -) -from ....types.update_guardian_factors_provider_push_notification_apns_response_content import ( - UpdateGuardianFactorsProviderPushNotificationApnsResponseContent, -) -from ....types.update_guardian_factors_provider_push_notification_fcm_response_content import ( - UpdateGuardianFactorsProviderPushNotificationFcmResponseContent, -) -from ....types.update_guardian_factors_provider_push_notification_fcmv_1_response_content import ( - UpdateGuardianFactorsProviderPushNotificationFcmv1ResponseContent, -) -from ....types.update_guardian_factors_provider_push_notification_sns_response_content import ( - UpdateGuardianFactorsProviderPushNotificationSnsResponseContent, -) -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawPushNotificationClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def get_apns_provider( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetGuardianFactorsProviderApnsResponseContent]: - """ - Retrieve configuration details for the multi-factor authentication APNS provider associated with your tenant. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetGuardianFactorsProviderApnsResponseContent] - APNS configuration successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - "guardian/factors/push-notification/providers/apns", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetGuardianFactorsProviderApnsResponseContent, - parse_obj_as( - type_=GetGuardianFactorsProviderApnsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def set_apns_provider( - self, - *, - sandbox: typing.Optional[bool] = OMIT, - bundle_id: typing.Optional[str] = OMIT, - p_12: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[SetGuardianFactorsProviderPushNotificationApnsResponseContent]: - """ - Overwrite all configuration details of the multi-factor authentication APNS provider associated with your tenant. - - Parameters - ---------- - sandbox : typing.Optional[bool] - - bundle_id : typing.Optional[str] - - p_12 : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[SetGuardianFactorsProviderPushNotificationApnsResponseContent] - APNS configuration successfully updated. - """ - _response = self._client_wrapper.httpx_client.request( - "guardian/factors/push-notification/providers/apns", - method="PUT", - json={ - "sandbox": sandbox, - "bundle_id": bundle_id, - "p12": p_12, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - SetGuardianFactorsProviderPushNotificationApnsResponseContent, - parse_obj_as( - type_=SetGuardianFactorsProviderPushNotificationApnsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def update_apns_provider( - self, - *, - sandbox: typing.Optional[bool] = OMIT, - bundle_id: typing.Optional[str] = OMIT, - p_12: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[UpdateGuardianFactorsProviderPushNotificationApnsResponseContent]: - """ - Modify configuration details of the multi-factor authentication APNS provider associated with your tenant. - - Parameters - ---------- - sandbox : typing.Optional[bool] - - bundle_id : typing.Optional[str] - - p_12 : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[UpdateGuardianFactorsProviderPushNotificationApnsResponseContent] - APNS configuration successfully updated. - """ - _response = self._client_wrapper.httpx_client.request( - "guardian/factors/push-notification/providers/apns", - method="PATCH", - json={ - "sandbox": sandbox, - "bundle_id": bundle_id, - "p12": p_12, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateGuardianFactorsProviderPushNotificationApnsResponseContent, - parse_obj_as( - type_=UpdateGuardianFactorsProviderPushNotificationApnsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def set_fcm_provider( - self, *, server_key: typing.Optional[str] = OMIT, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[SetGuardianFactorsProviderPushNotificationFcmResponseContent]: - """ - Overwrite all configuration details of the multi-factor authentication FCM provider associated with your tenant. - - Parameters - ---------- - server_key : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[SetGuardianFactorsProviderPushNotificationFcmResponseContent] - FCM configuration updated - """ - _response = self._client_wrapper.httpx_client.request( - "guardian/factors/push-notification/providers/fcm", - method="PUT", - json={ - "server_key": server_key, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - SetGuardianFactorsProviderPushNotificationFcmResponseContent, - parse_obj_as( - type_=SetGuardianFactorsProviderPushNotificationFcmResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def update_fcm_provider( - self, *, server_key: typing.Optional[str] = OMIT, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[UpdateGuardianFactorsProviderPushNotificationFcmResponseContent]: - """ - Modify configuration details of the multi-factor authentication FCM provider associated with your tenant. - - Parameters - ---------- - server_key : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[UpdateGuardianFactorsProviderPushNotificationFcmResponseContent] - FCM configuration updated - """ - _response = self._client_wrapper.httpx_client.request( - "guardian/factors/push-notification/providers/fcm", - method="PATCH", - json={ - "server_key": server_key, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateGuardianFactorsProviderPushNotificationFcmResponseContent, - parse_obj_as( - type_=UpdateGuardianFactorsProviderPushNotificationFcmResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def set_fcmv_1_provider( - self, - *, - server_credentials: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[SetGuardianFactorsProviderPushNotificationFcmv1ResponseContent]: - """ - Overwrite all configuration details of the multi-factor authentication FCMV1 provider associated with your tenant. - - Parameters - ---------- - server_credentials : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[SetGuardianFactorsProviderPushNotificationFcmv1ResponseContent] - FCMV1 configuration updated - """ - _response = self._client_wrapper.httpx_client.request( - "guardian/factors/push-notification/providers/fcmv1", - method="PUT", - json={ - "server_credentials": server_credentials, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - SetGuardianFactorsProviderPushNotificationFcmv1ResponseContent, - parse_obj_as( - type_=SetGuardianFactorsProviderPushNotificationFcmv1ResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def update_fcmv_1_provider( - self, - *, - server_credentials: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[UpdateGuardianFactorsProviderPushNotificationFcmv1ResponseContent]: - """ - Modify configuration details of the multi-factor authentication FCMV1 provider associated with your tenant. - - Parameters - ---------- - server_credentials : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[UpdateGuardianFactorsProviderPushNotificationFcmv1ResponseContent] - FCMV1 configuration updated - """ - _response = self._client_wrapper.httpx_client.request( - "guardian/factors/push-notification/providers/fcmv1", - method="PATCH", - json={ - "server_credentials": server_credentials, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateGuardianFactorsProviderPushNotificationFcmv1ResponseContent, - parse_obj_as( - type_=UpdateGuardianFactorsProviderPushNotificationFcmv1ResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def get_sns_provider( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetGuardianFactorsProviderSnsResponseContent]: - """ - Retrieve configuration details for an AWS SNS push notification provider that has been enabled for MFA. To learn more, review [Configure Push Notifications for MFA](https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-push-notifications-for-mfa). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetGuardianFactorsProviderSnsResponseContent] - AWS SNS configuration successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - "guardian/factors/push-notification/providers/sns", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetGuardianFactorsProviderSnsResponseContent, - parse_obj_as( - type_=GetGuardianFactorsProviderSnsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def set_sns_provider( - self, - *, - aws_access_key_id: typing.Optional[str] = OMIT, - aws_secret_access_key: typing.Optional[str] = OMIT, - aws_region: typing.Optional[str] = OMIT, - sns_apns_platform_application_arn: typing.Optional[str] = OMIT, - sns_gcm_platform_application_arn: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[SetGuardianFactorsProviderPushNotificationSnsResponseContent]: - """ - Configure the [AWS SNS push notification provider configuration](https://auth0.com/docs/multifactor-authentication/developer/sns-configuration) (subscription required). - - Parameters - ---------- - aws_access_key_id : typing.Optional[str] - - aws_secret_access_key : typing.Optional[str] - - aws_region : typing.Optional[str] - - sns_apns_platform_application_arn : typing.Optional[str] - - sns_gcm_platform_application_arn : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[SetGuardianFactorsProviderPushNotificationSnsResponseContent] - AWS SNS configuration successfully updated. - """ - _response = self._client_wrapper.httpx_client.request( - "guardian/factors/push-notification/providers/sns", - method="PUT", - json={ - "aws_access_key_id": aws_access_key_id, - "aws_secret_access_key": aws_secret_access_key, - "aws_region": aws_region, - "sns_apns_platform_application_arn": sns_apns_platform_application_arn, - "sns_gcm_platform_application_arn": sns_gcm_platform_application_arn, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - SetGuardianFactorsProviderPushNotificationSnsResponseContent, - parse_obj_as( - type_=SetGuardianFactorsProviderPushNotificationSnsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def update_sns_provider( - self, - *, - aws_access_key_id: typing.Optional[str] = OMIT, - aws_secret_access_key: typing.Optional[str] = OMIT, - aws_region: typing.Optional[str] = OMIT, - sns_apns_platform_application_arn: typing.Optional[str] = OMIT, - sns_gcm_platform_application_arn: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[UpdateGuardianFactorsProviderPushNotificationSnsResponseContent]: - """ - Configure the [AWS SNS push notification provider configuration](https://auth0.com/docs/multifactor-authentication/developer/sns-configuration) (subscription required). - - Parameters - ---------- - aws_access_key_id : typing.Optional[str] - - aws_secret_access_key : typing.Optional[str] - - aws_region : typing.Optional[str] - - sns_apns_platform_application_arn : typing.Optional[str] - - sns_gcm_platform_application_arn : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[UpdateGuardianFactorsProviderPushNotificationSnsResponseContent] - AWS SNS configuration successfully updated. - """ - _response = self._client_wrapper.httpx_client.request( - "guardian/factors/push-notification/providers/sns", - method="PATCH", - json={ - "aws_access_key_id": aws_access_key_id, - "aws_secret_access_key": aws_secret_access_key, - "aws_region": aws_region, - "sns_apns_platform_application_arn": sns_apns_platform_application_arn, - "sns_gcm_platform_application_arn": sns_gcm_platform_application_arn, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateGuardianFactorsProviderPushNotificationSnsResponseContent, - parse_obj_as( - type_=UpdateGuardianFactorsProviderPushNotificationSnsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def get_selected_provider( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetGuardianFactorsProviderPushNotificationResponseContent]: - """ - Modify the push notification provider configured for your tenant. For more information, review Configure Push Notifications for MFA. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetGuardianFactorsProviderPushNotificationResponseContent] - Returns selected push notification provider - """ - _response = self._client_wrapper.httpx_client.request( - "guardian/factors/push-notification/selected-provider", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetGuardianFactorsProviderPushNotificationResponseContent, - parse_obj_as( - type_=GetGuardianFactorsProviderPushNotificationResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def set_provider( - self, - *, - provider: GuardianFactorsProviderPushNotificationProviderDataEnum, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[SetGuardianFactorsProviderPushNotificationResponseContent]: - """ - Modify the push notification provider configured for your tenant. For more information, review Configure Push Notifications for MFA. - - Parameters - ---------- - provider : GuardianFactorsProviderPushNotificationProviderDataEnum - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[SetGuardianFactorsProviderPushNotificationResponseContent] - Returns selected push notification provider configuration - """ - _response = self._client_wrapper.httpx_client.request( - "guardian/factors/push-notification/selected-provider", - method="PUT", - json={ - "provider": provider, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - SetGuardianFactorsProviderPushNotificationResponseContent, - parse_obj_as( - type_=SetGuardianFactorsProviderPushNotificationResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawPushNotificationClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def get_apns_provider( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetGuardianFactorsProviderApnsResponseContent]: - """ - Retrieve configuration details for the multi-factor authentication APNS provider associated with your tenant. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetGuardianFactorsProviderApnsResponseContent] - APNS configuration successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - "guardian/factors/push-notification/providers/apns", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetGuardianFactorsProviderApnsResponseContent, - parse_obj_as( - type_=GetGuardianFactorsProviderApnsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def set_apns_provider( - self, - *, - sandbox: typing.Optional[bool] = OMIT, - bundle_id: typing.Optional[str] = OMIT, - p_12: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[SetGuardianFactorsProviderPushNotificationApnsResponseContent]: - """ - Overwrite all configuration details of the multi-factor authentication APNS provider associated with your tenant. - - Parameters - ---------- - sandbox : typing.Optional[bool] - - bundle_id : typing.Optional[str] - - p_12 : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[SetGuardianFactorsProviderPushNotificationApnsResponseContent] - APNS configuration successfully updated. - """ - _response = await self._client_wrapper.httpx_client.request( - "guardian/factors/push-notification/providers/apns", - method="PUT", - json={ - "sandbox": sandbox, - "bundle_id": bundle_id, - "p12": p_12, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - SetGuardianFactorsProviderPushNotificationApnsResponseContent, - parse_obj_as( - type_=SetGuardianFactorsProviderPushNotificationApnsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def update_apns_provider( - self, - *, - sandbox: typing.Optional[bool] = OMIT, - bundle_id: typing.Optional[str] = OMIT, - p_12: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[UpdateGuardianFactorsProviderPushNotificationApnsResponseContent]: - """ - Modify configuration details of the multi-factor authentication APNS provider associated with your tenant. - - Parameters - ---------- - sandbox : typing.Optional[bool] - - bundle_id : typing.Optional[str] - - p_12 : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[UpdateGuardianFactorsProviderPushNotificationApnsResponseContent] - APNS configuration successfully updated. - """ - _response = await self._client_wrapper.httpx_client.request( - "guardian/factors/push-notification/providers/apns", - method="PATCH", - json={ - "sandbox": sandbox, - "bundle_id": bundle_id, - "p12": p_12, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateGuardianFactorsProviderPushNotificationApnsResponseContent, - parse_obj_as( - type_=UpdateGuardianFactorsProviderPushNotificationApnsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def set_fcm_provider( - self, *, server_key: typing.Optional[str] = OMIT, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[SetGuardianFactorsProviderPushNotificationFcmResponseContent]: - """ - Overwrite all configuration details of the multi-factor authentication FCM provider associated with your tenant. - - Parameters - ---------- - server_key : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[SetGuardianFactorsProviderPushNotificationFcmResponseContent] - FCM configuration updated - """ - _response = await self._client_wrapper.httpx_client.request( - "guardian/factors/push-notification/providers/fcm", - method="PUT", - json={ - "server_key": server_key, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - SetGuardianFactorsProviderPushNotificationFcmResponseContent, - parse_obj_as( - type_=SetGuardianFactorsProviderPushNotificationFcmResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def update_fcm_provider( - self, *, server_key: typing.Optional[str] = OMIT, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[UpdateGuardianFactorsProviderPushNotificationFcmResponseContent]: - """ - Modify configuration details of the multi-factor authentication FCM provider associated with your tenant. - - Parameters - ---------- - server_key : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[UpdateGuardianFactorsProviderPushNotificationFcmResponseContent] - FCM configuration updated - """ - _response = await self._client_wrapper.httpx_client.request( - "guardian/factors/push-notification/providers/fcm", - method="PATCH", - json={ - "server_key": server_key, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateGuardianFactorsProviderPushNotificationFcmResponseContent, - parse_obj_as( - type_=UpdateGuardianFactorsProviderPushNotificationFcmResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def set_fcmv_1_provider( - self, - *, - server_credentials: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[SetGuardianFactorsProviderPushNotificationFcmv1ResponseContent]: - """ - Overwrite all configuration details of the multi-factor authentication FCMV1 provider associated with your tenant. - - Parameters - ---------- - server_credentials : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[SetGuardianFactorsProviderPushNotificationFcmv1ResponseContent] - FCMV1 configuration updated - """ - _response = await self._client_wrapper.httpx_client.request( - "guardian/factors/push-notification/providers/fcmv1", - method="PUT", - json={ - "server_credentials": server_credentials, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - SetGuardianFactorsProviderPushNotificationFcmv1ResponseContent, - parse_obj_as( - type_=SetGuardianFactorsProviderPushNotificationFcmv1ResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def update_fcmv_1_provider( - self, - *, - server_credentials: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[UpdateGuardianFactorsProviderPushNotificationFcmv1ResponseContent]: - """ - Modify configuration details of the multi-factor authentication FCMV1 provider associated with your tenant. - - Parameters - ---------- - server_credentials : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[UpdateGuardianFactorsProviderPushNotificationFcmv1ResponseContent] - FCMV1 configuration updated - """ - _response = await self._client_wrapper.httpx_client.request( - "guardian/factors/push-notification/providers/fcmv1", - method="PATCH", - json={ - "server_credentials": server_credentials, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateGuardianFactorsProviderPushNotificationFcmv1ResponseContent, - parse_obj_as( - type_=UpdateGuardianFactorsProviderPushNotificationFcmv1ResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def get_sns_provider( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetGuardianFactorsProviderSnsResponseContent]: - """ - Retrieve configuration details for an AWS SNS push notification provider that has been enabled for MFA. To learn more, review [Configure Push Notifications for MFA](https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-push-notifications-for-mfa). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetGuardianFactorsProviderSnsResponseContent] - AWS SNS configuration successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - "guardian/factors/push-notification/providers/sns", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetGuardianFactorsProviderSnsResponseContent, - parse_obj_as( - type_=GetGuardianFactorsProviderSnsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def set_sns_provider( - self, - *, - aws_access_key_id: typing.Optional[str] = OMIT, - aws_secret_access_key: typing.Optional[str] = OMIT, - aws_region: typing.Optional[str] = OMIT, - sns_apns_platform_application_arn: typing.Optional[str] = OMIT, - sns_gcm_platform_application_arn: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[SetGuardianFactorsProviderPushNotificationSnsResponseContent]: - """ - Configure the [AWS SNS push notification provider configuration](https://auth0.com/docs/multifactor-authentication/developer/sns-configuration) (subscription required). - - Parameters - ---------- - aws_access_key_id : typing.Optional[str] - - aws_secret_access_key : typing.Optional[str] - - aws_region : typing.Optional[str] - - sns_apns_platform_application_arn : typing.Optional[str] - - sns_gcm_platform_application_arn : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[SetGuardianFactorsProviderPushNotificationSnsResponseContent] - AWS SNS configuration successfully updated. - """ - _response = await self._client_wrapper.httpx_client.request( - "guardian/factors/push-notification/providers/sns", - method="PUT", - json={ - "aws_access_key_id": aws_access_key_id, - "aws_secret_access_key": aws_secret_access_key, - "aws_region": aws_region, - "sns_apns_platform_application_arn": sns_apns_platform_application_arn, - "sns_gcm_platform_application_arn": sns_gcm_platform_application_arn, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - SetGuardianFactorsProviderPushNotificationSnsResponseContent, - parse_obj_as( - type_=SetGuardianFactorsProviderPushNotificationSnsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def update_sns_provider( - self, - *, - aws_access_key_id: typing.Optional[str] = OMIT, - aws_secret_access_key: typing.Optional[str] = OMIT, - aws_region: typing.Optional[str] = OMIT, - sns_apns_platform_application_arn: typing.Optional[str] = OMIT, - sns_gcm_platform_application_arn: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[UpdateGuardianFactorsProviderPushNotificationSnsResponseContent]: - """ - Configure the [AWS SNS push notification provider configuration](https://auth0.com/docs/multifactor-authentication/developer/sns-configuration) (subscription required). - - Parameters - ---------- - aws_access_key_id : typing.Optional[str] - - aws_secret_access_key : typing.Optional[str] - - aws_region : typing.Optional[str] - - sns_apns_platform_application_arn : typing.Optional[str] - - sns_gcm_platform_application_arn : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[UpdateGuardianFactorsProviderPushNotificationSnsResponseContent] - AWS SNS configuration successfully updated. - """ - _response = await self._client_wrapper.httpx_client.request( - "guardian/factors/push-notification/providers/sns", - method="PATCH", - json={ - "aws_access_key_id": aws_access_key_id, - "aws_secret_access_key": aws_secret_access_key, - "aws_region": aws_region, - "sns_apns_platform_application_arn": sns_apns_platform_application_arn, - "sns_gcm_platform_application_arn": sns_gcm_platform_application_arn, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateGuardianFactorsProviderPushNotificationSnsResponseContent, - parse_obj_as( - type_=UpdateGuardianFactorsProviderPushNotificationSnsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def get_selected_provider( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetGuardianFactorsProviderPushNotificationResponseContent]: - """ - Modify the push notification provider configured for your tenant. For more information, review Configure Push Notifications for MFA. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetGuardianFactorsProviderPushNotificationResponseContent] - Returns selected push notification provider - """ - _response = await self._client_wrapper.httpx_client.request( - "guardian/factors/push-notification/selected-provider", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetGuardianFactorsProviderPushNotificationResponseContent, - parse_obj_as( - type_=GetGuardianFactorsProviderPushNotificationResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def set_provider( - self, - *, - provider: GuardianFactorsProviderPushNotificationProviderDataEnum, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[SetGuardianFactorsProviderPushNotificationResponseContent]: - """ - Modify the push notification provider configured for your tenant. For more information, review Configure Push Notifications for MFA. - - Parameters - ---------- - provider : GuardianFactorsProviderPushNotificationProviderDataEnum - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[SetGuardianFactorsProviderPushNotificationResponseContent] - Returns selected push notification provider configuration - """ - _response = await self._client_wrapper.httpx_client.request( - "guardian/factors/push-notification/selected-provider", - method="PUT", - json={ - "provider": provider, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - SetGuardianFactorsProviderPushNotificationResponseContent, - parse_obj_as( - type_=SetGuardianFactorsProviderPushNotificationResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/guardian/factors/raw_client.py b/src/auth0/management/guardian/factors/raw_client.py deleted file mode 100644 index df8567e5..00000000 --- a/src/auth0/management/guardian/factors/raw_client.py +++ /dev/null @@ -1,350 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ...core.api_error import ApiError -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.http_response import AsyncHttpResponse, HttpResponse -from ...core.jsonable_encoder import quote_path_param -from ...core.parse_error import ParsingError -from ...core.pydantic_utilities import parse_obj_as -from ...core.request_options import RequestOptions -from ...errors.bad_request_error import BadRequestError -from ...errors.forbidden_error import ForbiddenError -from ...errors.unauthorized_error import UnauthorizedError -from ...types.guardian_factor import GuardianFactor -from ...types.guardian_factor_name_enum import GuardianFactorNameEnum -from ...types.set_guardian_factor_response_content import SetGuardianFactorResponseContent -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawFactorsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[typing.List[GuardianFactor]]: - """ - Retrieve details of all multi-factor authentication factors associated with your tenant. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[typing.List[GuardianFactor]] - Factors successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - "guardian/factors", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - typing.List[GuardianFactor], - parse_obj_as( - type_=typing.List[GuardianFactor], # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def set( - self, name: GuardianFactorNameEnum, *, enabled: bool, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[SetGuardianFactorResponseContent]: - """ - Update the status (i.e., enabled or disabled) of a specific multi-factor authentication factor. - - Parameters - ---------- - name : GuardianFactorNameEnum - Factor name. Can be `sms`, `push-notification`, `email`, `duo`, `otp`, `webauthn-roaming`, `webauthn-platform`, `recovery-code`, or `passkey`. - - enabled : bool - Whether this factor is enabled (true) or disabled (false). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[SetGuardianFactorResponseContent] - Factor updated successfully. - """ - _response = self._client_wrapper.httpx_client.request( - f"guardian/factors/{quote_path_param(name)}", - method="PUT", - json={ - "enabled": enabled, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - SetGuardianFactorResponseContent, - parse_obj_as( - type_=SetGuardianFactorResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawFactorsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[typing.List[GuardianFactor]]: - """ - Retrieve details of all multi-factor authentication factors associated with your tenant. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[typing.List[GuardianFactor]] - Factors successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - "guardian/factors", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - typing.List[GuardianFactor], - parse_obj_as( - type_=typing.List[GuardianFactor], # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def set( - self, name: GuardianFactorNameEnum, *, enabled: bool, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[SetGuardianFactorResponseContent]: - """ - Update the status (i.e., enabled or disabled) of a specific multi-factor authentication factor. - - Parameters - ---------- - name : GuardianFactorNameEnum - Factor name. Can be `sms`, `push-notification`, `email`, `duo`, `otp`, `webauthn-roaming`, `webauthn-platform`, `recovery-code`, or `passkey`. - - enabled : bool - Whether this factor is enabled (true) or disabled (false). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[SetGuardianFactorResponseContent] - Factor updated successfully. - """ - _response = await self._client_wrapper.httpx_client.request( - f"guardian/factors/{quote_path_param(name)}", - method="PUT", - json={ - "enabled": enabled, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - SetGuardianFactorResponseContent, - parse_obj_as( - type_=SetGuardianFactorResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/guardian/factors/sms/__init__.py b/src/auth0/management/guardian/factors/sms/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/guardian/factors/sms/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/guardian/factors/sms/client.py b/src/auth0/management/guardian/factors/sms/client.py deleted file mode 100644 index 833ad9f8..00000000 --- a/src/auth0/management/guardian/factors/sms/client.py +++ /dev/null @@ -1,557 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ....core.request_options import RequestOptions -from ....types.get_guardian_factor_sms_templates_response_content import GetGuardianFactorSmsTemplatesResponseContent -from ....types.get_guardian_factors_provider_sms_response_content import GetGuardianFactorsProviderSmsResponseContent -from ....types.get_guardian_factors_provider_sms_twilio_response_content import ( - GetGuardianFactorsProviderSmsTwilioResponseContent, -) -from ....types.guardian_factors_provider_sms_provider_enum import GuardianFactorsProviderSmsProviderEnum -from ....types.set_guardian_factor_sms_templates_response_content import SetGuardianFactorSmsTemplatesResponseContent -from ....types.set_guardian_factors_provider_sms_response_content import SetGuardianFactorsProviderSmsResponseContent -from ....types.set_guardian_factors_provider_sms_twilio_response_content import ( - SetGuardianFactorsProviderSmsTwilioResponseContent, -) -from .raw_client import AsyncRawSmsClient, RawSmsClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class SmsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawSmsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawSmsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawSmsClient - """ - return self._raw_client - - def get_twilio_provider( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetGuardianFactorsProviderSmsTwilioResponseContent: - """ - Retrieve the Twilio SMS provider configuration (subscription required). - - A new endpoint is available to retrieve the Twilio configuration related to phone factors (phone Twilio configuration). It has the same payload as this one. Please use it instead. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetGuardianFactorsProviderSmsTwilioResponseContent - Twilio SMS configuration successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.guardian.factors.sms.get_twilio_provider() - """ - _response = self._raw_client.get_twilio_provider(request_options=request_options) - return _response.data - - def set_twilio_provider( - self, - *, - from_: typing.Optional[str] = OMIT, - messaging_service_sid: typing.Optional[str] = OMIT, - auth_token: typing.Optional[str] = OMIT, - sid: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> SetGuardianFactorsProviderSmsTwilioResponseContent: - """ - This endpoint has been deprecated. To complete this action, use the Update Twilio phone configuration endpoint. - - Previous functionality: Update the Twilio SMS provider configuration. - - Parameters - ---------- - from_ : typing.Optional[str] - From number - - messaging_service_sid : typing.Optional[str] - Copilot SID - - auth_token : typing.Optional[str] - Twilio Authentication token - - sid : typing.Optional[str] - Twilio SID - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SetGuardianFactorsProviderSmsTwilioResponseContent - Twilio SMS configuration successfully updated. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.guardian.factors.sms.set_twilio_provider() - """ - _response = self._raw_client.set_twilio_provider( - from_=from_, - messaging_service_sid=messaging_service_sid, - auth_token=auth_token, - sid=sid, - request_options=request_options, - ) - return _response.data - - def get_selected_provider( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetGuardianFactorsProviderSmsResponseContent: - """ - This endpoint has been deprecated. To complete this action, use the Retrieve phone configuration endpoint instead. - - Previous functionality: Retrieve details for the multi-factor authentication SMS provider configured for your tenant. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetGuardianFactorsProviderSmsResponseContent - Returns selected SMS provider configuration - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.guardian.factors.sms.get_selected_provider() - """ - _response = self._raw_client.get_selected_provider(request_options=request_options) - return _response.data - - def set_provider( - self, - *, - provider: GuardianFactorsProviderSmsProviderEnum, - request_options: typing.Optional[RequestOptions] = None, - ) -> SetGuardianFactorsProviderSmsResponseContent: - """ - This endpoint has been deprecated. To complete this action, use the Update phone configuration endpoint instead. - - Previous functionality: Update the multi-factor authentication SMS provider configuration in your tenant. - - Parameters - ---------- - provider : GuardianFactorsProviderSmsProviderEnum - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SetGuardianFactorsProviderSmsResponseContent - Returns selected SMS provider configuration - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.guardian.factors.sms.set_provider( - provider="auth0", - ) - """ - _response = self._raw_client.set_provider(provider=provider, request_options=request_options) - return _response.data - - def get_templates( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> typing.Optional[GetGuardianFactorSmsTemplatesResponseContent]: - """ - This endpoint has been deprecated. To complete this action, use the Retrieve enrollment and verification phone templates endpoint instead. - - Previous function: Retrieve details of SMS enrollment and verification templates configured for your tenant. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - typing.Optional[GetGuardianFactorSmsTemplatesResponseContent] - SMS enrollment and verification templates successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.guardian.factors.sms.get_templates() - """ - _response = self._raw_client.get_templates(request_options=request_options) - return _response.data - - def set_templates( - self, - *, - enrollment_message: str, - verification_message: str, - request_options: typing.Optional[RequestOptions] = None, - ) -> SetGuardianFactorSmsTemplatesResponseContent: - """ - This endpoint has been deprecated. To complete this action, use the Update enrollment and verification phone templates endpoint instead. - - Previous functionality: Customize the messages sent to complete SMS enrollment and verification. - - Parameters - ---------- - enrollment_message : str - Message sent to the user when they are invited to enroll with a phone number. - - verification_message : str - Message sent to the user when they are prompted to verify their account. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SetGuardianFactorSmsTemplatesResponseContent - SMS enrollment and verification templates successfully updated. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.guardian.factors.sms.set_templates( - enrollment_message="enrollment_message", - verification_message="verification_message", - ) - """ - _response = self._raw_client.set_templates( - enrollment_message=enrollment_message, - verification_message=verification_message, - request_options=request_options, - ) - return _response.data - - -class AsyncSmsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawSmsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawSmsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawSmsClient - """ - return self._raw_client - - async def get_twilio_provider( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetGuardianFactorsProviderSmsTwilioResponseContent: - """ - Retrieve the Twilio SMS provider configuration (subscription required). - - A new endpoint is available to retrieve the Twilio configuration related to phone factors (phone Twilio configuration). It has the same payload as this one. Please use it instead. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetGuardianFactorsProviderSmsTwilioResponseContent - Twilio SMS configuration successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.guardian.factors.sms.get_twilio_provider() - - - asyncio.run(main()) - """ - _response = await self._raw_client.get_twilio_provider(request_options=request_options) - return _response.data - - async def set_twilio_provider( - self, - *, - from_: typing.Optional[str] = OMIT, - messaging_service_sid: typing.Optional[str] = OMIT, - auth_token: typing.Optional[str] = OMIT, - sid: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> SetGuardianFactorsProviderSmsTwilioResponseContent: - """ - This endpoint has been deprecated. To complete this action, use the Update Twilio phone configuration endpoint. - - Previous functionality: Update the Twilio SMS provider configuration. - - Parameters - ---------- - from_ : typing.Optional[str] - From number - - messaging_service_sid : typing.Optional[str] - Copilot SID - - auth_token : typing.Optional[str] - Twilio Authentication token - - sid : typing.Optional[str] - Twilio SID - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SetGuardianFactorsProviderSmsTwilioResponseContent - Twilio SMS configuration successfully updated. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.guardian.factors.sms.set_twilio_provider() - - - asyncio.run(main()) - """ - _response = await self._raw_client.set_twilio_provider( - from_=from_, - messaging_service_sid=messaging_service_sid, - auth_token=auth_token, - sid=sid, - request_options=request_options, - ) - return _response.data - - async def get_selected_provider( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetGuardianFactorsProviderSmsResponseContent: - """ - This endpoint has been deprecated. To complete this action, use the Retrieve phone configuration endpoint instead. - - Previous functionality: Retrieve details for the multi-factor authentication SMS provider configured for your tenant. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetGuardianFactorsProviderSmsResponseContent - Returns selected SMS provider configuration - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.guardian.factors.sms.get_selected_provider() - - - asyncio.run(main()) - """ - _response = await self._raw_client.get_selected_provider(request_options=request_options) - return _response.data - - async def set_provider( - self, - *, - provider: GuardianFactorsProviderSmsProviderEnum, - request_options: typing.Optional[RequestOptions] = None, - ) -> SetGuardianFactorsProviderSmsResponseContent: - """ - This endpoint has been deprecated. To complete this action, use the Update phone configuration endpoint instead. - - Previous functionality: Update the multi-factor authentication SMS provider configuration in your tenant. - - Parameters - ---------- - provider : GuardianFactorsProviderSmsProviderEnum - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SetGuardianFactorsProviderSmsResponseContent - Returns selected SMS provider configuration - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.guardian.factors.sms.set_provider( - provider="auth0", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.set_provider(provider=provider, request_options=request_options) - return _response.data - - async def get_templates( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> typing.Optional[GetGuardianFactorSmsTemplatesResponseContent]: - """ - This endpoint has been deprecated. To complete this action, use the Retrieve enrollment and verification phone templates endpoint instead. - - Previous function: Retrieve details of SMS enrollment and verification templates configured for your tenant. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - typing.Optional[GetGuardianFactorSmsTemplatesResponseContent] - SMS enrollment and verification templates successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.guardian.factors.sms.get_templates() - - - asyncio.run(main()) - """ - _response = await self._raw_client.get_templates(request_options=request_options) - return _response.data - - async def set_templates( - self, - *, - enrollment_message: str, - verification_message: str, - request_options: typing.Optional[RequestOptions] = None, - ) -> SetGuardianFactorSmsTemplatesResponseContent: - """ - This endpoint has been deprecated. To complete this action, use the Update enrollment and verification phone templates endpoint instead. - - Previous functionality: Customize the messages sent to complete SMS enrollment and verification. - - Parameters - ---------- - enrollment_message : str - Message sent to the user when they are invited to enroll with a phone number. - - verification_message : str - Message sent to the user when they are prompted to verify their account. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SetGuardianFactorSmsTemplatesResponseContent - SMS enrollment and verification templates successfully updated. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.guardian.factors.sms.set_templates( - enrollment_message="enrollment_message", - verification_message="verification_message", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.set_templates( - enrollment_message=enrollment_message, - verification_message=verification_message, - request_options=request_options, - ) - return _response.data diff --git a/src/auth0/management/guardian/factors/sms/raw_client.py b/src/auth0/management/guardian/factors/sms/raw_client.py deleted file mode 100644 index 11687e16..00000000 --- a/src/auth0/management/guardian/factors/sms/raw_client.py +++ /dev/null @@ -1,1059 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ....core.api_error import ApiError -from ....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ....core.http_response import AsyncHttpResponse, HttpResponse -from ....core.parse_error import ParsingError -from ....core.pydantic_utilities import parse_obj_as -from ....core.request_options import RequestOptions -from ....errors.bad_request_error import BadRequestError -from ....errors.forbidden_error import ForbiddenError -from ....errors.unauthorized_error import UnauthorizedError -from ....types.get_guardian_factor_sms_templates_response_content import GetGuardianFactorSmsTemplatesResponseContent -from ....types.get_guardian_factors_provider_sms_response_content import GetGuardianFactorsProviderSmsResponseContent -from ....types.get_guardian_factors_provider_sms_twilio_response_content import ( - GetGuardianFactorsProviderSmsTwilioResponseContent, -) -from ....types.guardian_factors_provider_sms_provider_enum import GuardianFactorsProviderSmsProviderEnum -from ....types.set_guardian_factor_sms_templates_response_content import SetGuardianFactorSmsTemplatesResponseContent -from ....types.set_guardian_factors_provider_sms_response_content import SetGuardianFactorsProviderSmsResponseContent -from ....types.set_guardian_factors_provider_sms_twilio_response_content import ( - SetGuardianFactorsProviderSmsTwilioResponseContent, -) -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawSmsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def get_twilio_provider( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetGuardianFactorsProviderSmsTwilioResponseContent]: - """ - Retrieve the Twilio SMS provider configuration (subscription required). - - A new endpoint is available to retrieve the Twilio configuration related to phone factors (phone Twilio configuration). It has the same payload as this one. Please use it instead. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetGuardianFactorsProviderSmsTwilioResponseContent] - Twilio SMS configuration successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - "guardian/factors/sms/providers/twilio", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetGuardianFactorsProviderSmsTwilioResponseContent, - parse_obj_as( - type_=GetGuardianFactorsProviderSmsTwilioResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def set_twilio_provider( - self, - *, - from_: typing.Optional[str] = OMIT, - messaging_service_sid: typing.Optional[str] = OMIT, - auth_token: typing.Optional[str] = OMIT, - sid: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[SetGuardianFactorsProviderSmsTwilioResponseContent]: - """ - This endpoint has been deprecated. To complete this action, use the Update Twilio phone configuration endpoint. - - Previous functionality: Update the Twilio SMS provider configuration. - - Parameters - ---------- - from_ : typing.Optional[str] - From number - - messaging_service_sid : typing.Optional[str] - Copilot SID - - auth_token : typing.Optional[str] - Twilio Authentication token - - sid : typing.Optional[str] - Twilio SID - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[SetGuardianFactorsProviderSmsTwilioResponseContent] - Twilio SMS configuration successfully updated. - """ - _response = self._client_wrapper.httpx_client.request( - "guardian/factors/sms/providers/twilio", - method="PUT", - json={ - "from": from_, - "messaging_service_sid": messaging_service_sid, - "auth_token": auth_token, - "sid": sid, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - SetGuardianFactorsProviderSmsTwilioResponseContent, - parse_obj_as( - type_=SetGuardianFactorsProviderSmsTwilioResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def get_selected_provider( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetGuardianFactorsProviderSmsResponseContent]: - """ - This endpoint has been deprecated. To complete this action, use the Retrieve phone configuration endpoint instead. - - Previous functionality: Retrieve details for the multi-factor authentication SMS provider configured for your tenant. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetGuardianFactorsProviderSmsResponseContent] - Returns selected SMS provider configuration - """ - _response = self._client_wrapper.httpx_client.request( - "guardian/factors/sms/selected-provider", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetGuardianFactorsProviderSmsResponseContent, - parse_obj_as( - type_=GetGuardianFactorsProviderSmsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def set_provider( - self, - *, - provider: GuardianFactorsProviderSmsProviderEnum, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[SetGuardianFactorsProviderSmsResponseContent]: - """ - This endpoint has been deprecated. To complete this action, use the Update phone configuration endpoint instead. - - Previous functionality: Update the multi-factor authentication SMS provider configuration in your tenant. - - Parameters - ---------- - provider : GuardianFactorsProviderSmsProviderEnum - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[SetGuardianFactorsProviderSmsResponseContent] - Returns selected SMS provider configuration - """ - _response = self._client_wrapper.httpx_client.request( - "guardian/factors/sms/selected-provider", - method="PUT", - json={ - "provider": provider, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - SetGuardianFactorsProviderSmsResponseContent, - parse_obj_as( - type_=SetGuardianFactorsProviderSmsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def get_templates( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[typing.Optional[GetGuardianFactorSmsTemplatesResponseContent]]: - """ - This endpoint has been deprecated. To complete this action, use the Retrieve enrollment and verification phone templates endpoint instead. - - Previous function: Retrieve details of SMS enrollment and verification templates configured for your tenant. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[typing.Optional[GetGuardianFactorSmsTemplatesResponseContent]] - SMS enrollment and verification templates successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - "guardian/factors/sms/templates", - method="GET", - request_options=request_options, - ) - try: - if _response is None or not _response.text.strip(): - return HttpResponse(response=_response, data=None) - if 200 <= _response.status_code < 300: - _data = typing.cast( - typing.Optional[GetGuardianFactorSmsTemplatesResponseContent], - parse_obj_as( - type_=typing.Optional[GetGuardianFactorSmsTemplatesResponseContent], # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def set_templates( - self, - *, - enrollment_message: str, - verification_message: str, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[SetGuardianFactorSmsTemplatesResponseContent]: - """ - This endpoint has been deprecated. To complete this action, use the Update enrollment and verification phone templates endpoint instead. - - Previous functionality: Customize the messages sent to complete SMS enrollment and verification. - - Parameters - ---------- - enrollment_message : str - Message sent to the user when they are invited to enroll with a phone number. - - verification_message : str - Message sent to the user when they are prompted to verify their account. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[SetGuardianFactorSmsTemplatesResponseContent] - SMS enrollment and verification templates successfully updated. - """ - _response = self._client_wrapper.httpx_client.request( - "guardian/factors/sms/templates", - method="PUT", - json={ - "enrollment_message": enrollment_message, - "verification_message": verification_message, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - SetGuardianFactorSmsTemplatesResponseContent, - parse_obj_as( - type_=SetGuardianFactorSmsTemplatesResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawSmsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def get_twilio_provider( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetGuardianFactorsProviderSmsTwilioResponseContent]: - """ - Retrieve the Twilio SMS provider configuration (subscription required). - - A new endpoint is available to retrieve the Twilio configuration related to phone factors (phone Twilio configuration). It has the same payload as this one. Please use it instead. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetGuardianFactorsProviderSmsTwilioResponseContent] - Twilio SMS configuration successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - "guardian/factors/sms/providers/twilio", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetGuardianFactorsProviderSmsTwilioResponseContent, - parse_obj_as( - type_=GetGuardianFactorsProviderSmsTwilioResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def set_twilio_provider( - self, - *, - from_: typing.Optional[str] = OMIT, - messaging_service_sid: typing.Optional[str] = OMIT, - auth_token: typing.Optional[str] = OMIT, - sid: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[SetGuardianFactorsProviderSmsTwilioResponseContent]: - """ - This endpoint has been deprecated. To complete this action, use the Update Twilio phone configuration endpoint. - - Previous functionality: Update the Twilio SMS provider configuration. - - Parameters - ---------- - from_ : typing.Optional[str] - From number - - messaging_service_sid : typing.Optional[str] - Copilot SID - - auth_token : typing.Optional[str] - Twilio Authentication token - - sid : typing.Optional[str] - Twilio SID - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[SetGuardianFactorsProviderSmsTwilioResponseContent] - Twilio SMS configuration successfully updated. - """ - _response = await self._client_wrapper.httpx_client.request( - "guardian/factors/sms/providers/twilio", - method="PUT", - json={ - "from": from_, - "messaging_service_sid": messaging_service_sid, - "auth_token": auth_token, - "sid": sid, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - SetGuardianFactorsProviderSmsTwilioResponseContent, - parse_obj_as( - type_=SetGuardianFactorsProviderSmsTwilioResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def get_selected_provider( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetGuardianFactorsProviderSmsResponseContent]: - """ - This endpoint has been deprecated. To complete this action, use the Retrieve phone configuration endpoint instead. - - Previous functionality: Retrieve details for the multi-factor authentication SMS provider configured for your tenant. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetGuardianFactorsProviderSmsResponseContent] - Returns selected SMS provider configuration - """ - _response = await self._client_wrapper.httpx_client.request( - "guardian/factors/sms/selected-provider", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetGuardianFactorsProviderSmsResponseContent, - parse_obj_as( - type_=GetGuardianFactorsProviderSmsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def set_provider( - self, - *, - provider: GuardianFactorsProviderSmsProviderEnum, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[SetGuardianFactorsProviderSmsResponseContent]: - """ - This endpoint has been deprecated. To complete this action, use the Update phone configuration endpoint instead. - - Previous functionality: Update the multi-factor authentication SMS provider configuration in your tenant. - - Parameters - ---------- - provider : GuardianFactorsProviderSmsProviderEnum - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[SetGuardianFactorsProviderSmsResponseContent] - Returns selected SMS provider configuration - """ - _response = await self._client_wrapper.httpx_client.request( - "guardian/factors/sms/selected-provider", - method="PUT", - json={ - "provider": provider, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - SetGuardianFactorsProviderSmsResponseContent, - parse_obj_as( - type_=SetGuardianFactorsProviderSmsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def get_templates( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[typing.Optional[GetGuardianFactorSmsTemplatesResponseContent]]: - """ - This endpoint has been deprecated. To complete this action, use the Retrieve enrollment and verification phone templates endpoint instead. - - Previous function: Retrieve details of SMS enrollment and verification templates configured for your tenant. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[typing.Optional[GetGuardianFactorSmsTemplatesResponseContent]] - SMS enrollment and verification templates successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - "guardian/factors/sms/templates", - method="GET", - request_options=request_options, - ) - try: - if _response is None or not _response.text.strip(): - return AsyncHttpResponse(response=_response, data=None) - if 200 <= _response.status_code < 300: - _data = typing.cast( - typing.Optional[GetGuardianFactorSmsTemplatesResponseContent], - parse_obj_as( - type_=typing.Optional[GetGuardianFactorSmsTemplatesResponseContent], # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def set_templates( - self, - *, - enrollment_message: str, - verification_message: str, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[SetGuardianFactorSmsTemplatesResponseContent]: - """ - This endpoint has been deprecated. To complete this action, use the Update enrollment and verification phone templates endpoint instead. - - Previous functionality: Customize the messages sent to complete SMS enrollment and verification. - - Parameters - ---------- - enrollment_message : str - Message sent to the user when they are invited to enroll with a phone number. - - verification_message : str - Message sent to the user when they are prompted to verify their account. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[SetGuardianFactorSmsTemplatesResponseContent] - SMS enrollment and verification templates successfully updated. - """ - _response = await self._client_wrapper.httpx_client.request( - "guardian/factors/sms/templates", - method="PUT", - json={ - "enrollment_message": enrollment_message, - "verification_message": verification_message, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - SetGuardianFactorSmsTemplatesResponseContent, - parse_obj_as( - type_=SetGuardianFactorSmsTemplatesResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/guardian/policies/__init__.py b/src/auth0/management/guardian/policies/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/guardian/policies/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/guardian/policies/client.py b/src/auth0/management/guardian/policies/client.py deleted file mode 100644 index d49870cc..00000000 --- a/src/auth0/management/guardian/policies/client.py +++ /dev/null @@ -1,207 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.request_options import RequestOptions -from ...types.list_guardian_policies_response_content import ListGuardianPoliciesResponseContent -from ...types.set_guardian_policies_request_content import SetGuardianPoliciesRequestContent -from ...types.set_guardian_policies_response_content import SetGuardianPoliciesResponseContent -from .raw_client import AsyncRawPoliciesClient, RawPoliciesClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class PoliciesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawPoliciesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawPoliciesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawPoliciesClient - """ - return self._raw_client - - def list(self, *, request_options: typing.Optional[RequestOptions] = None) -> ListGuardianPoliciesResponseContent: - """ - Retrieve the [multi-factor authentication (MFA) policies](https://auth0.com/docs/secure/multi-factor-authentication/enable-mfa) configured for your tenant. - - The following policies are supported: - - - `all-applications` policy prompts with MFA for all logins. - - `confidence-score` policy prompts with MFA only for low confidence logins. - - **Note**: The `confidence-score` policy is part of the [Adaptive MFA feature](https://auth0.com/docs/secure/multi-factor-authentication/adaptive-mfa). Adaptive MFA requires an add-on for the Enterprise plan; review [Auth0 Pricing](https://auth0.com/pricing) for more details. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - ListGuardianPoliciesResponseContent - Success - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.guardian.policies.list() - """ - _response = self._raw_client.list(request_options=request_options) - return _response.data - - def set( - self, *, request: SetGuardianPoliciesRequestContent, request_options: typing.Optional[RequestOptions] = None - ) -> SetGuardianPoliciesResponseContent: - """ - Set [multi-factor authentication (MFA) policies](https://auth0.com/docs/secure/multi-factor-authentication/enable-mfa) for your tenant. - - The following policies are supported: - - - `all-applications` policy prompts with MFA for all logins. - - `confidence-score` policy prompts with MFA only for low confidence logins. - - **Note**: The `confidence-score` policy is part of the [Adaptive MFA feature](https://auth0.com/docs/secure/multi-factor-authentication/adaptive-mfa). Adaptive MFA requires an add-on for the Enterprise plan; review [Auth0 Pricing](https://auth0.com/pricing) for more details. - - Parameters - ---------- - request : SetGuardianPoliciesRequestContent - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SetGuardianPoliciesResponseContent - Policies updated - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.guardian.policies.set( - request=["all-applications"], - ) - """ - _response = self._raw_client.set(request=request, request_options=request_options) - return _response.data - - -class AsyncPoliciesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawPoliciesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawPoliciesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawPoliciesClient - """ - return self._raw_client - - async def list( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> ListGuardianPoliciesResponseContent: - """ - Retrieve the [multi-factor authentication (MFA) policies](https://auth0.com/docs/secure/multi-factor-authentication/enable-mfa) configured for your tenant. - - The following policies are supported: - - - `all-applications` policy prompts with MFA for all logins. - - `confidence-score` policy prompts with MFA only for low confidence logins. - - **Note**: The `confidence-score` policy is part of the [Adaptive MFA feature](https://auth0.com/docs/secure/multi-factor-authentication/adaptive-mfa). Adaptive MFA requires an add-on for the Enterprise plan; review [Auth0 Pricing](https://auth0.com/pricing) for more details. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - ListGuardianPoliciesResponseContent - Success - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.guardian.policies.list() - - - asyncio.run(main()) - """ - _response = await self._raw_client.list(request_options=request_options) - return _response.data - - async def set( - self, *, request: SetGuardianPoliciesRequestContent, request_options: typing.Optional[RequestOptions] = None - ) -> SetGuardianPoliciesResponseContent: - """ - Set [multi-factor authentication (MFA) policies](https://auth0.com/docs/secure/multi-factor-authentication/enable-mfa) for your tenant. - - The following policies are supported: - - - `all-applications` policy prompts with MFA for all logins. - - `confidence-score` policy prompts with MFA only for low confidence logins. - - **Note**: The `confidence-score` policy is part of the [Adaptive MFA feature](https://auth0.com/docs/secure/multi-factor-authentication/adaptive-mfa). Adaptive MFA requires an add-on for the Enterprise plan; review [Auth0 Pricing](https://auth0.com/pricing) for more details. - - Parameters - ---------- - request : SetGuardianPoliciesRequestContent - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SetGuardianPoliciesResponseContent - Policies updated - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.guardian.policies.set( - request=["all-applications"], - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.set(request=request, request_options=request_options) - return _response.data diff --git a/src/auth0/management/guardian/policies/raw_client.py b/src/auth0/management/guardian/policies/raw_client.py deleted file mode 100644 index e442df46..00000000 --- a/src/auth0/management/guardian/policies/raw_client.py +++ /dev/null @@ -1,359 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ...core.api_error import ApiError -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.http_response import AsyncHttpResponse, HttpResponse -from ...core.parse_error import ParsingError -from ...core.pydantic_utilities import parse_obj_as -from ...core.request_options import RequestOptions -from ...errors.bad_request_error import BadRequestError -from ...errors.forbidden_error import ForbiddenError -from ...errors.unauthorized_error import UnauthorizedError -from ...types.list_guardian_policies_response_content import ListGuardianPoliciesResponseContent -from ...types.set_guardian_policies_request_content import SetGuardianPoliciesRequestContent -from ...types.set_guardian_policies_response_content import SetGuardianPoliciesResponseContent -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawPoliciesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[ListGuardianPoliciesResponseContent]: - """ - Retrieve the [multi-factor authentication (MFA) policies](https://auth0.com/docs/secure/multi-factor-authentication/enable-mfa) configured for your tenant. - - The following policies are supported: - - - `all-applications` policy prompts with MFA for all logins. - - `confidence-score` policy prompts with MFA only for low confidence logins. - - **Note**: The `confidence-score` policy is part of the [Adaptive MFA feature](https://auth0.com/docs/secure/multi-factor-authentication/adaptive-mfa). Adaptive MFA requires an add-on for the Enterprise plan; review [Auth0 Pricing](https://auth0.com/pricing) for more details. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[ListGuardianPoliciesResponseContent] - Success - """ - _response = self._client_wrapper.httpx_client.request( - "guardian/policies", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - ListGuardianPoliciesResponseContent, - parse_obj_as( - type_=ListGuardianPoliciesResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def set( - self, *, request: SetGuardianPoliciesRequestContent, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[SetGuardianPoliciesResponseContent]: - """ - Set [multi-factor authentication (MFA) policies](https://auth0.com/docs/secure/multi-factor-authentication/enable-mfa) for your tenant. - - The following policies are supported: - - - `all-applications` policy prompts with MFA for all logins. - - `confidence-score` policy prompts with MFA only for low confidence logins. - - **Note**: The `confidence-score` policy is part of the [Adaptive MFA feature](https://auth0.com/docs/secure/multi-factor-authentication/adaptive-mfa). Adaptive MFA requires an add-on for the Enterprise plan; review [Auth0 Pricing](https://auth0.com/pricing) for more details. - - Parameters - ---------- - request : SetGuardianPoliciesRequestContent - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[SetGuardianPoliciesResponseContent] - Policies updated - """ - _response = self._client_wrapper.httpx_client.request( - "guardian/policies", - method="PUT", - json=request, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - SetGuardianPoliciesResponseContent, - parse_obj_as( - type_=SetGuardianPoliciesResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawPoliciesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[ListGuardianPoliciesResponseContent]: - """ - Retrieve the [multi-factor authentication (MFA) policies](https://auth0.com/docs/secure/multi-factor-authentication/enable-mfa) configured for your tenant. - - The following policies are supported: - - - `all-applications` policy prompts with MFA for all logins. - - `confidence-score` policy prompts with MFA only for low confidence logins. - - **Note**: The `confidence-score` policy is part of the [Adaptive MFA feature](https://auth0.com/docs/secure/multi-factor-authentication/adaptive-mfa). Adaptive MFA requires an add-on for the Enterprise plan; review [Auth0 Pricing](https://auth0.com/pricing) for more details. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[ListGuardianPoliciesResponseContent] - Success - """ - _response = await self._client_wrapper.httpx_client.request( - "guardian/policies", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - ListGuardianPoliciesResponseContent, - parse_obj_as( - type_=ListGuardianPoliciesResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def set( - self, *, request: SetGuardianPoliciesRequestContent, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[SetGuardianPoliciesResponseContent]: - """ - Set [multi-factor authentication (MFA) policies](https://auth0.com/docs/secure/multi-factor-authentication/enable-mfa) for your tenant. - - The following policies are supported: - - - `all-applications` policy prompts with MFA for all logins. - - `confidence-score` policy prompts with MFA only for low confidence logins. - - **Note**: The `confidence-score` policy is part of the [Adaptive MFA feature](https://auth0.com/docs/secure/multi-factor-authentication/adaptive-mfa). Adaptive MFA requires an add-on for the Enterprise plan; review [Auth0 Pricing](https://auth0.com/pricing) for more details. - - Parameters - ---------- - request : SetGuardianPoliciesRequestContent - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[SetGuardianPoliciesResponseContent] - Policies updated - """ - _response = await self._client_wrapper.httpx_client.request( - "guardian/policies", - method="PUT", - json=request, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - SetGuardianPoliciesResponseContent, - parse_obj_as( - type_=SetGuardianPoliciesResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/guardian/raw_client.py b/src/auth0/management/guardian/raw_client.py deleted file mode 100644 index c3ff6067..00000000 --- a/src/auth0/management/guardian/raw_client.py +++ /dev/null @@ -1,401 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ..core.api_error import ApiError -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.http_response import AsyncHttpResponse, HttpResponse -from ..core.parse_error import ParsingError -from ..core.pydantic_utilities import parse_obj_as -from ..core.request_options import RequestOptions -from ..errors.bad_request_error import BadRequestError -from ..errors.forbidden_error import ForbiddenError -from ..errors.too_many_requests_error import TooManyRequestsError -from ..errors.unauthorized_error import UnauthorizedError -from ..types.get_guardian_settings_response_content import GetGuardianSettingsResponseContent -from ..types.set_guardian_settings_response_content import SetGuardianSettingsResponseContent -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawGuardianClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def get( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetGuardianSettingsResponseContent]: - """ - TODO: Link this endpoint to relevant documentation when available. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetGuardianSettingsResponseContent] - Returns the Guardian settings. - """ - _response = self._client_wrapper.httpx_client.request( - "guardian/settings", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetGuardianSettingsResponseContent, - parse_obj_as( - type_=GetGuardianSettingsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def set( - self, - *, - display_remember_me_checkbox: bool, - remember_me_default_value: bool, - mfa_session_inactivity_timeout: int, - mfa_session_overall_timeout: int, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[SetGuardianSettingsResponseContent]: - """ - Update a tenant's guardian settings such as Remember Me - - Parameters - ---------- - display_remember_me_checkbox : bool - Determines whether to display the "Remember Me" checkbox on the MFA prompt in Universal Login. - - remember_me_default_value : bool - Determines the default state of the "Remember Me" checkbox on the MFA prompt in Universal Login. - - mfa_session_inactivity_timeout : int - Duration of inactivity after which the user will be prompted for MFA. Represented as seconds. Minimum duration is 1 hour, maximum is 30 days, and cannot exceed the overall timeout. - - mfa_session_overall_timeout : int - Maximum duration after which the user will be prompted for MFA regardless of activity. Represented as seconds. Minimum duration is 1 hour, maximum is 90 days. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[SetGuardianSettingsResponseContent] - The Guardian settings have been successfully set. - """ - _response = self._client_wrapper.httpx_client.request( - "guardian/settings", - method="PUT", - json={ - "display_remember_me_checkbox": display_remember_me_checkbox, - "remember_me_default_value": remember_me_default_value, - "mfa_session_inactivity_timeout": mfa_session_inactivity_timeout, - "mfa_session_overall_timeout": mfa_session_overall_timeout, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - SetGuardianSettingsResponseContent, - parse_obj_as( - type_=SetGuardianSettingsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawGuardianClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def get( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetGuardianSettingsResponseContent]: - """ - TODO: Link this endpoint to relevant documentation when available. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetGuardianSettingsResponseContent] - Returns the Guardian settings. - """ - _response = await self._client_wrapper.httpx_client.request( - "guardian/settings", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetGuardianSettingsResponseContent, - parse_obj_as( - type_=GetGuardianSettingsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def set( - self, - *, - display_remember_me_checkbox: bool, - remember_me_default_value: bool, - mfa_session_inactivity_timeout: int, - mfa_session_overall_timeout: int, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[SetGuardianSettingsResponseContent]: - """ - Update a tenant's guardian settings such as Remember Me - - Parameters - ---------- - display_remember_me_checkbox : bool - Determines whether to display the "Remember Me" checkbox on the MFA prompt in Universal Login. - - remember_me_default_value : bool - Determines the default state of the "Remember Me" checkbox on the MFA prompt in Universal Login. - - mfa_session_inactivity_timeout : int - Duration of inactivity after which the user will be prompted for MFA. Represented as seconds. Minimum duration is 1 hour, maximum is 30 days, and cannot exceed the overall timeout. - - mfa_session_overall_timeout : int - Maximum duration after which the user will be prompted for MFA regardless of activity. Represented as seconds. Minimum duration is 1 hour, maximum is 90 days. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[SetGuardianSettingsResponseContent] - The Guardian settings have been successfully set. - """ - _response = await self._client_wrapper.httpx_client.request( - "guardian/settings", - method="PUT", - json={ - "display_remember_me_checkbox": display_remember_me_checkbox, - "remember_me_default_value": remember_me_default_value, - "mfa_session_inactivity_timeout": mfa_session_inactivity_timeout, - "mfa_session_overall_timeout": mfa_session_overall_timeout, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - SetGuardianSettingsResponseContent, - parse_obj_as( - type_=SetGuardianSettingsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/hooks/__init__.py b/src/auth0/management/hooks/__init__.py deleted file mode 100644 index a205c50b..00000000 --- a/src/auth0/management/hooks/__init__.py +++ /dev/null @@ -1,34 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from . import secrets -_dynamic_imports: typing.Dict[str, str] = {"secrets": ".secrets"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - if module_name == f".{attr_name}": - return module - else: - return getattr(module, attr_name) - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["secrets"] diff --git a/src/auth0/management/hooks/client.py b/src/auth0/management/hooks/client.py deleted file mode 100644 index 0ccf416d..00000000 --- a/src/auth0/management/hooks/client.py +++ /dev/null @@ -1,621 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.pagination import AsyncPager, SyncPager -from ..core.request_options import RequestOptions -from ..types.create_hook_response_content import CreateHookResponseContent -from ..types.get_hook_response_content import GetHookResponseContent -from ..types.hook import Hook -from ..types.hook_dependencies import HookDependencies -from ..types.hook_trigger_id_enum import HookTriggerIdEnum -from ..types.list_hooks_offset_paginated_response_content import ListHooksOffsetPaginatedResponseContent -from ..types.update_hook_response_content import UpdateHookResponseContent -from .raw_client import AsyncRawHooksClient, RawHooksClient - -if typing.TYPE_CHECKING: - from .secrets.client import AsyncSecretsClient, SecretsClient -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class HooksClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawHooksClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._secrets: typing.Optional[SecretsClient] = None - - @property - def with_raw_response(self) -> RawHooksClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawHooksClient - """ - return self._raw_client - - def list( - self, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - include_totals: typing.Optional[bool] = True, - enabled: typing.Optional[bool] = None, - fields: typing.Optional[str] = None, - trigger_id: typing.Optional[HookTriggerIdEnum] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[Hook, ListHooksOffsetPaginatedResponseContent]: - """ - Retrieve all [hooks](https://auth0.com/docs/hooks). Accepts a list of fields to include or exclude in the result. - - Parameters - ---------- - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - enabled : typing.Optional[bool] - Optional filter on whether a hook is enabled (true) or disabled (false). - - fields : typing.Optional[str] - Comma-separated list of fields to include in the result. Leave empty to retrieve all fields. - - trigger_id : typing.Optional[HookTriggerIdEnum] - Retrieves hooks that match the trigger - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[Hook, ListHooksOffsetPaginatedResponseContent] - Hooks successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.hooks.list( - page=1, - per_page=1, - include_totals=True, - enabled=True, - fields="fields", - trigger_id="credentials-exchange", - ) - for item in response: - yield item - # alternatively, you can paginate page-by-page - for page in response.iter_pages(): - yield page - """ - return self._raw_client.list( - page=page, - per_page=per_page, - include_totals=include_totals, - enabled=enabled, - fields=fields, - trigger_id=trigger_id, - request_options=request_options, - ) - - def create( - self, - *, - name: str, - script: str, - trigger_id: HookTriggerIdEnum, - enabled: typing.Optional[bool] = OMIT, - dependencies: typing.Optional[HookDependencies] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateHookResponseContent: - """ - Create a new hook. - - Parameters - ---------- - name : str - Name of this hook. - - script : str - Code to be executed when this hook runs. - - trigger_id : HookTriggerIdEnum - Execution stage of this rule. Can be `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, or `send-phone-message`. - - enabled : typing.Optional[bool] - Whether this hook will be executed (true) or ignored (false). - - dependencies : typing.Optional[HookDependencies] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateHookResponseContent - Hook successfully created. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.hooks.create( - name="name", - script="script", - trigger_id="credentials-exchange", - ) - """ - _response = self._raw_client.create( - name=name, - script=script, - trigger_id=trigger_id, - enabled=enabled, - dependencies=dependencies, - request_options=request_options, - ) - return _response.data - - def get( - self, id: str, *, fields: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None - ) -> GetHookResponseContent: - """ - Retrieve [a hook](https://auth0.com/docs/hooks) by its ID. Accepts a list of fields to include in the result. - - Parameters - ---------- - id : str - ID of the hook to retrieve. - - fields : typing.Optional[str] - Comma-separated list of fields to include in the result. Leave empty to retrieve all fields. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetHookResponseContent - Hook successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.hooks.get( - id="id", - fields="fields", - ) - """ - _response = self._raw_client.get(id, fields=fields, request_options=request_options) - return _response.data - - def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete a hook. - - Parameters - ---------- - id : str - ID of the hook to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.hooks.delete( - id="id", - ) - """ - _response = self._raw_client.delete(id, request_options=request_options) - return _response.data - - def update( - self, - id: str, - *, - name: typing.Optional[str] = OMIT, - script: typing.Optional[str] = OMIT, - enabled: typing.Optional[bool] = OMIT, - dependencies: typing.Optional[HookDependencies] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateHookResponseContent: - """ - Update an existing hook. - - Parameters - ---------- - id : str - ID of the hook to update. - - name : typing.Optional[str] - Name of this hook. - - script : typing.Optional[str] - Code to be executed when this hook runs. - - enabled : typing.Optional[bool] - Whether this hook will be executed (true) or ignored (false). - - dependencies : typing.Optional[HookDependencies] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateHookResponseContent - Hook successfully created. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.hooks.update( - id="id", - ) - """ - _response = self._raw_client.update( - id, name=name, script=script, enabled=enabled, dependencies=dependencies, request_options=request_options - ) - return _response.data - - @property - def secrets(self): - if self._secrets is None: - from .secrets.client import SecretsClient # noqa: E402 - - self._secrets = SecretsClient(client_wrapper=self._client_wrapper) - return self._secrets - - -class AsyncHooksClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawHooksClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._secrets: typing.Optional[AsyncSecretsClient] = None - - @property - def with_raw_response(self) -> AsyncRawHooksClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawHooksClient - """ - return self._raw_client - - async def list( - self, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - include_totals: typing.Optional[bool] = True, - enabled: typing.Optional[bool] = None, - fields: typing.Optional[str] = None, - trigger_id: typing.Optional[HookTriggerIdEnum] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[Hook, ListHooksOffsetPaginatedResponseContent]: - """ - Retrieve all [hooks](https://auth0.com/docs/hooks). Accepts a list of fields to include or exclude in the result. - - Parameters - ---------- - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - enabled : typing.Optional[bool] - Optional filter on whether a hook is enabled (true) or disabled (false). - - fields : typing.Optional[str] - Comma-separated list of fields to include in the result. Leave empty to retrieve all fields. - - trigger_id : typing.Optional[HookTriggerIdEnum] - Retrieves hooks that match the trigger - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[Hook, ListHooksOffsetPaginatedResponseContent] - Hooks successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.hooks.list( - page=1, - per_page=1, - include_totals=True, - enabled=True, - fields="fields", - trigger_id="credentials-exchange", - ) - async for item in response: - yield item - - # alternatively, you can paginate page-by-page - async for page in response.iter_pages(): - yield page - - - asyncio.run(main()) - """ - return await self._raw_client.list( - page=page, - per_page=per_page, - include_totals=include_totals, - enabled=enabled, - fields=fields, - trigger_id=trigger_id, - request_options=request_options, - ) - - async def create( - self, - *, - name: str, - script: str, - trigger_id: HookTriggerIdEnum, - enabled: typing.Optional[bool] = OMIT, - dependencies: typing.Optional[HookDependencies] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateHookResponseContent: - """ - Create a new hook. - - Parameters - ---------- - name : str - Name of this hook. - - script : str - Code to be executed when this hook runs. - - trigger_id : HookTriggerIdEnum - Execution stage of this rule. Can be `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, or `send-phone-message`. - - enabled : typing.Optional[bool] - Whether this hook will be executed (true) or ignored (false). - - dependencies : typing.Optional[HookDependencies] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateHookResponseContent - Hook successfully created. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.hooks.create( - name="name", - script="script", - trigger_id="credentials-exchange", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - name=name, - script=script, - trigger_id=trigger_id, - enabled=enabled, - dependencies=dependencies, - request_options=request_options, - ) - return _response.data - - async def get( - self, id: str, *, fields: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None - ) -> GetHookResponseContent: - """ - Retrieve [a hook](https://auth0.com/docs/hooks) by its ID. Accepts a list of fields to include in the result. - - Parameters - ---------- - id : str - ID of the hook to retrieve. - - fields : typing.Optional[str] - Comma-separated list of fields to include in the result. Leave empty to retrieve all fields. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetHookResponseContent - Hook successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.hooks.get( - id="id", - fields="fields", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.get(id, fields=fields, request_options=request_options) - return _response.data - - async def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete a hook. - - Parameters - ---------- - id : str - ID of the hook to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.hooks.delete( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete(id, request_options=request_options) - return _response.data - - async def update( - self, - id: str, - *, - name: typing.Optional[str] = OMIT, - script: typing.Optional[str] = OMIT, - enabled: typing.Optional[bool] = OMIT, - dependencies: typing.Optional[HookDependencies] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateHookResponseContent: - """ - Update an existing hook. - - Parameters - ---------- - id : str - ID of the hook to update. - - name : typing.Optional[str] - Name of this hook. - - script : typing.Optional[str] - Code to be executed when this hook runs. - - enabled : typing.Optional[bool] - Whether this hook will be executed (true) or ignored (false). - - dependencies : typing.Optional[HookDependencies] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateHookResponseContent - Hook successfully created. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.hooks.update( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.update( - id, name=name, script=script, enabled=enabled, dependencies=dependencies, request_options=request_options - ) - return _response.data - - @property - def secrets(self): - if self._secrets is None: - from .secrets.client import AsyncSecretsClient # noqa: E402 - - self._secrets = AsyncSecretsClient(client_wrapper=self._client_wrapper) - return self._secrets diff --git a/src/auth0/management/hooks/raw_client.py b/src/auth0/management/hooks/raw_client.py deleted file mode 100644 index 0fe4afab..00000000 --- a/src/auth0/management/hooks/raw_client.py +++ /dev/null @@ -1,1219 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ..core.api_error import ApiError -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.http_response import AsyncHttpResponse, HttpResponse -from ..core.jsonable_encoder import quote_path_param -from ..core.pagination import AsyncPager, SyncPager -from ..core.parse_error import ParsingError -from ..core.pydantic_utilities import parse_obj_as -from ..core.request_options import RequestOptions -from ..errors.bad_request_error import BadRequestError -from ..errors.conflict_error import ConflictError -from ..errors.forbidden_error import ForbiddenError -from ..errors.not_found_error import NotFoundError -from ..errors.too_many_requests_error import TooManyRequestsError -from ..errors.unauthorized_error import UnauthorizedError -from ..types.create_hook_response_content import CreateHookResponseContent -from ..types.get_hook_response_content import GetHookResponseContent -from ..types.hook import Hook -from ..types.hook_dependencies import HookDependencies -from ..types.hook_trigger_id_enum import HookTriggerIdEnum -from ..types.list_hooks_offset_paginated_response_content import ListHooksOffsetPaginatedResponseContent -from ..types.update_hook_response_content import UpdateHookResponseContent -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawHooksClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - include_totals: typing.Optional[bool] = True, - enabled: typing.Optional[bool] = None, - fields: typing.Optional[str] = None, - trigger_id: typing.Optional[HookTriggerIdEnum] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[Hook, ListHooksOffsetPaginatedResponseContent]: - """ - Retrieve all [hooks](https://auth0.com/docs/hooks). Accepts a list of fields to include or exclude in the result. - - Parameters - ---------- - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - enabled : typing.Optional[bool] - Optional filter on whether a hook is enabled (true) or disabled (false). - - fields : typing.Optional[str] - Comma-separated list of fields to include in the result. Leave empty to retrieve all fields. - - trigger_id : typing.Optional[HookTriggerIdEnum] - Retrieves hooks that match the trigger - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[Hook, ListHooksOffsetPaginatedResponseContent] - Hooks successfully retrieved. - """ - page = page if page is not None else 0 - - _response = self._client_wrapper.httpx_client.request( - "hooks", - method="GET", - params={ - "page": page, - "per_page": per_page, - "include_totals": include_totals, - "enabled": enabled, - "fields": fields, - "triggerId": trigger_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListHooksOffsetPaginatedResponseContent, - parse_obj_as( - type_=ListHooksOffsetPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.hooks - _has_next = len(_items or []) > 0 - _get_next = lambda: self.list( - page=page + 1, - per_page=per_page, - include_totals=include_totals, - enabled=enabled, - fields=fields, - trigger_id=trigger_id, - request_options=request_options, - ) - return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - *, - name: str, - script: str, - trigger_id: HookTriggerIdEnum, - enabled: typing.Optional[bool] = OMIT, - dependencies: typing.Optional[HookDependencies] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[CreateHookResponseContent]: - """ - Create a new hook. - - Parameters - ---------- - name : str - Name of this hook. - - script : str - Code to be executed when this hook runs. - - trigger_id : HookTriggerIdEnum - Execution stage of this rule. Can be `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, or `send-phone-message`. - - enabled : typing.Optional[bool] - Whether this hook will be executed (true) or ignored (false). - - dependencies : typing.Optional[HookDependencies] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CreateHookResponseContent] - Hook successfully created. - """ - _response = self._client_wrapper.httpx_client.request( - "hooks", - method="POST", - json={ - "name": name, - "script": script, - "enabled": enabled, - "dependencies": dependencies, - "triggerId": trigger_id, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateHookResponseContent, - parse_obj_as( - type_=CreateHookResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def get( - self, id: str, *, fields: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetHookResponseContent]: - """ - Retrieve [a hook](https://auth0.com/docs/hooks) by its ID. Accepts a list of fields to include in the result. - - Parameters - ---------- - id : str - ID of the hook to retrieve. - - fields : typing.Optional[str] - Comma-separated list of fields to include in the result. Leave empty to retrieve all fields. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetHookResponseContent] - Hook successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - f"hooks/{quote_path_param(id)}", - method="GET", - params={ - "fields": fields, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetHookResponseContent, - parse_obj_as( - type_=GetHookResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[None]: - """ - Delete a hook. - - Parameters - ---------- - id : str - ID of the hook to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"hooks/{quote_path_param(id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def update( - self, - id: str, - *, - name: typing.Optional[str] = OMIT, - script: typing.Optional[str] = OMIT, - enabled: typing.Optional[bool] = OMIT, - dependencies: typing.Optional[HookDependencies] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[UpdateHookResponseContent]: - """ - Update an existing hook. - - Parameters - ---------- - id : str - ID of the hook to update. - - name : typing.Optional[str] - Name of this hook. - - script : typing.Optional[str] - Code to be executed when this hook runs. - - enabled : typing.Optional[bool] - Whether this hook will be executed (true) or ignored (false). - - dependencies : typing.Optional[HookDependencies] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[UpdateHookResponseContent] - Hook successfully created. - """ - _response = self._client_wrapper.httpx_client.request( - f"hooks/{quote_path_param(id)}", - method="PATCH", - json={ - "name": name, - "script": script, - "enabled": enabled, - "dependencies": dependencies, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateHookResponseContent, - parse_obj_as( - type_=UpdateHookResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawHooksClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - include_totals: typing.Optional[bool] = True, - enabled: typing.Optional[bool] = None, - fields: typing.Optional[str] = None, - trigger_id: typing.Optional[HookTriggerIdEnum] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[Hook, ListHooksOffsetPaginatedResponseContent]: - """ - Retrieve all [hooks](https://auth0.com/docs/hooks). Accepts a list of fields to include or exclude in the result. - - Parameters - ---------- - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - enabled : typing.Optional[bool] - Optional filter on whether a hook is enabled (true) or disabled (false). - - fields : typing.Optional[str] - Comma-separated list of fields to include in the result. Leave empty to retrieve all fields. - - trigger_id : typing.Optional[HookTriggerIdEnum] - Retrieves hooks that match the trigger - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[Hook, ListHooksOffsetPaginatedResponseContent] - Hooks successfully retrieved. - """ - page = page if page is not None else 0 - - _response = await self._client_wrapper.httpx_client.request( - "hooks", - method="GET", - params={ - "page": page, - "per_page": per_page, - "include_totals": include_totals, - "enabled": enabled, - "fields": fields, - "triggerId": trigger_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListHooksOffsetPaginatedResponseContent, - parse_obj_as( - type_=ListHooksOffsetPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.hooks - _has_next = len(_items or []) > 0 - - async def _get_next(): - return await self.list( - page=page + 1, - per_page=per_page, - include_totals=include_totals, - enabled=enabled, - fields=fields, - trigger_id=trigger_id, - request_options=request_options, - ) - - return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - *, - name: str, - script: str, - trigger_id: HookTriggerIdEnum, - enabled: typing.Optional[bool] = OMIT, - dependencies: typing.Optional[HookDependencies] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[CreateHookResponseContent]: - """ - Create a new hook. - - Parameters - ---------- - name : str - Name of this hook. - - script : str - Code to be executed when this hook runs. - - trigger_id : HookTriggerIdEnum - Execution stage of this rule. Can be `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, or `send-phone-message`. - - enabled : typing.Optional[bool] - Whether this hook will be executed (true) or ignored (false). - - dependencies : typing.Optional[HookDependencies] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CreateHookResponseContent] - Hook successfully created. - """ - _response = await self._client_wrapper.httpx_client.request( - "hooks", - method="POST", - json={ - "name": name, - "script": script, - "enabled": enabled, - "dependencies": dependencies, - "triggerId": trigger_id, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateHookResponseContent, - parse_obj_as( - type_=CreateHookResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def get( - self, id: str, *, fields: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetHookResponseContent]: - """ - Retrieve [a hook](https://auth0.com/docs/hooks) by its ID. Accepts a list of fields to include in the result. - - Parameters - ---------- - id : str - ID of the hook to retrieve. - - fields : typing.Optional[str] - Comma-separated list of fields to include in the result. Leave empty to retrieve all fields. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetHookResponseContent] - Hook successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - f"hooks/{quote_path_param(id)}", - method="GET", - params={ - "fields": fields, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetHookResponseContent, - parse_obj_as( - type_=GetHookResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def delete( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Delete a hook. - - Parameters - ---------- - id : str - ID of the hook to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"hooks/{quote_path_param(id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def update( - self, - id: str, - *, - name: typing.Optional[str] = OMIT, - script: typing.Optional[str] = OMIT, - enabled: typing.Optional[bool] = OMIT, - dependencies: typing.Optional[HookDependencies] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[UpdateHookResponseContent]: - """ - Update an existing hook. - - Parameters - ---------- - id : str - ID of the hook to update. - - name : typing.Optional[str] - Name of this hook. - - script : typing.Optional[str] - Code to be executed when this hook runs. - - enabled : typing.Optional[bool] - Whether this hook will be executed (true) or ignored (false). - - dependencies : typing.Optional[HookDependencies] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[UpdateHookResponseContent] - Hook successfully created. - """ - _response = await self._client_wrapper.httpx_client.request( - f"hooks/{quote_path_param(id)}", - method="PATCH", - json={ - "name": name, - "script": script, - "enabled": enabled, - "dependencies": dependencies, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateHookResponseContent, - parse_obj_as( - type_=UpdateHookResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/hooks/secrets/__init__.py b/src/auth0/management/hooks/secrets/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/hooks/secrets/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/hooks/secrets/client.py b/src/auth0/management/hooks/secrets/client.py deleted file mode 100644 index 810c69d7..00000000 --- a/src/auth0/management/hooks/secrets/client.py +++ /dev/null @@ -1,376 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.request_options import RequestOptions -from ...types.create_hook_secret_request_content import CreateHookSecretRequestContent -from ...types.delete_hook_secret_request_content import DeleteHookSecretRequestContent -from ...types.get_hook_secret_response_content import GetHookSecretResponseContent -from ...types.update_hook_secret_request_content import UpdateHookSecretRequestContent -from .raw_client import AsyncRawSecretsClient, RawSecretsClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class SecretsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawSecretsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawSecretsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawSecretsClient - """ - return self._raw_client - - def get(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> GetHookSecretResponseContent: - """ - Retrieve a hook's secrets by the ID of the hook. - - Parameters - ---------- - id : str - ID of the hook to retrieve secrets from. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetHookSecretResponseContent - Hook secrets successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.hooks.secrets.get( - id="id", - ) - """ - _response = self._raw_client.get(id, request_options=request_options) - return _response.data - - def create( - self, - id: str, - *, - request: CreateHookSecretRequestContent, - request_options: typing.Optional[RequestOptions] = None, - ) -> None: - """ - Add one or more secrets to an existing hook. Accepts an object of key-value pairs, where the key is the name of the secret. A hook can have a maximum of 20 secrets. - - Parameters - ---------- - id : str - The id of the hook to retrieve - - request : CreateHookSecretRequestContent - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.hooks.secrets.create( - id="id", - request={"key": "value"}, - ) - """ - _response = self._raw_client.create(id, request=request, request_options=request_options) - return _response.data - - def delete( - self, - id: str, - *, - request: DeleteHookSecretRequestContent, - request_options: typing.Optional[RequestOptions] = None, - ) -> None: - """ - Delete one or more existing secrets for a given hook. Accepts an array of secret names to delete. - - Parameters - ---------- - id : str - ID of the hook whose secrets to delete. - - request : DeleteHookSecretRequestContent - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.hooks.secrets.delete( - id="id", - request=["string"], - ) - """ - _response = self._raw_client.delete(id, request=request, request_options=request_options) - return _response.data - - def update( - self, - id: str, - *, - request: UpdateHookSecretRequestContent, - request_options: typing.Optional[RequestOptions] = None, - ) -> None: - """ - Update one or more existing secrets for an existing hook. Accepts an object of key-value pairs, where the key is the name of the existing secret. - - Parameters - ---------- - id : str - ID of the hook whose secrets to update. - - request : UpdateHookSecretRequestContent - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.hooks.secrets.update( - id="id", - request={"key": "value"}, - ) - """ - _response = self._raw_client.update(id, request=request, request_options=request_options) - return _response.data - - -class AsyncSecretsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawSecretsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawSecretsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawSecretsClient - """ - return self._raw_client - - async def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetHookSecretResponseContent: - """ - Retrieve a hook's secrets by the ID of the hook. - - Parameters - ---------- - id : str - ID of the hook to retrieve secrets from. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetHookSecretResponseContent - Hook secrets successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.hooks.secrets.get( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.get(id, request_options=request_options) - return _response.data - - async def create( - self, - id: str, - *, - request: CreateHookSecretRequestContent, - request_options: typing.Optional[RequestOptions] = None, - ) -> None: - """ - Add one or more secrets to an existing hook. Accepts an object of key-value pairs, where the key is the name of the secret. A hook can have a maximum of 20 secrets. - - Parameters - ---------- - id : str - The id of the hook to retrieve - - request : CreateHookSecretRequestContent - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.hooks.secrets.create( - id="id", - request={"key": "value"}, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create(id, request=request, request_options=request_options) - return _response.data - - async def delete( - self, - id: str, - *, - request: DeleteHookSecretRequestContent, - request_options: typing.Optional[RequestOptions] = None, - ) -> None: - """ - Delete one or more existing secrets for a given hook. Accepts an array of secret names to delete. - - Parameters - ---------- - id : str - ID of the hook whose secrets to delete. - - request : DeleteHookSecretRequestContent - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.hooks.secrets.delete( - id="id", - request=["string"], - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete(id, request=request, request_options=request_options) - return _response.data - - async def update( - self, - id: str, - *, - request: UpdateHookSecretRequestContent, - request_options: typing.Optional[RequestOptions] = None, - ) -> None: - """ - Update one or more existing secrets for an existing hook. Accepts an object of key-value pairs, where the key is the name of the existing secret. - - Parameters - ---------- - id : str - ID of the hook whose secrets to update. - - request : UpdateHookSecretRequestContent - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.hooks.secrets.update( - id="id", - request={"key": "value"}, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.update(id, request=request, request_options=request_options) - return _response.data diff --git a/src/auth0/management/hooks/secrets/raw_client.py b/src/auth0/management/hooks/secrets/raw_client.py deleted file mode 100644 index ea9e38ff..00000000 --- a/src/auth0/management/hooks/secrets/raw_client.py +++ /dev/null @@ -1,820 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ...core.api_error import ApiError -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.http_response import AsyncHttpResponse, HttpResponse -from ...core.jsonable_encoder import quote_path_param -from ...core.parse_error import ParsingError -from ...core.pydantic_utilities import parse_obj_as -from ...core.request_options import RequestOptions -from ...errors.bad_request_error import BadRequestError -from ...errors.conflict_error import ConflictError -from ...errors.forbidden_error import ForbiddenError -from ...errors.not_found_error import NotFoundError -from ...errors.too_many_requests_error import TooManyRequestsError -from ...errors.unauthorized_error import UnauthorizedError -from ...types.create_hook_secret_request_content import CreateHookSecretRequestContent -from ...types.delete_hook_secret_request_content import DeleteHookSecretRequestContent -from ...types.get_hook_secret_response_content import GetHookSecretResponseContent -from ...types.update_hook_secret_request_content import UpdateHookSecretRequestContent -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawSecretsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetHookSecretResponseContent]: - """ - Retrieve a hook's secrets by the ID of the hook. - - Parameters - ---------- - id : str - ID of the hook to retrieve secrets from. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetHookSecretResponseContent] - Hook secrets successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - f"hooks/{quote_path_param(id)}/secrets", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetHookSecretResponseContent, - parse_obj_as( - type_=GetHookSecretResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - id: str, - *, - request: CreateHookSecretRequestContent, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[None]: - """ - Add one or more secrets to an existing hook. Accepts an object of key-value pairs, where the key is the name of the secret. A hook can have a maximum of 20 secrets. - - Parameters - ---------- - id : str - The id of the hook to retrieve - - request : CreateHookSecretRequestContent - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"hooks/{quote_path_param(id)}/secrets", - method="POST", - json=request, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def delete( - self, - id: str, - *, - request: DeleteHookSecretRequestContent, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[None]: - """ - Delete one or more existing secrets for a given hook. Accepts an array of secret names to delete. - - Parameters - ---------- - id : str - ID of the hook whose secrets to delete. - - request : DeleteHookSecretRequestContent - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"hooks/{quote_path_param(id)}/secrets", - method="DELETE", - json=request, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def update( - self, - id: str, - *, - request: UpdateHookSecretRequestContent, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[None]: - """ - Update one or more existing secrets for an existing hook. Accepts an object of key-value pairs, where the key is the name of the existing secret. - - Parameters - ---------- - id : str - ID of the hook whose secrets to update. - - request : UpdateHookSecretRequestContent - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"hooks/{quote_path_param(id)}/secrets", - method="PATCH", - json=request, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawSecretsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetHookSecretResponseContent]: - """ - Retrieve a hook's secrets by the ID of the hook. - - Parameters - ---------- - id : str - ID of the hook to retrieve secrets from. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetHookSecretResponseContent] - Hook secrets successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - f"hooks/{quote_path_param(id)}/secrets", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetHookSecretResponseContent, - parse_obj_as( - type_=GetHookSecretResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - id: str, - *, - request: CreateHookSecretRequestContent, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[None]: - """ - Add one or more secrets to an existing hook. Accepts an object of key-value pairs, where the key is the name of the secret. A hook can have a maximum of 20 secrets. - - Parameters - ---------- - id : str - The id of the hook to retrieve - - request : CreateHookSecretRequestContent - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"hooks/{quote_path_param(id)}/secrets", - method="POST", - json=request, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def delete( - self, - id: str, - *, - request: DeleteHookSecretRequestContent, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[None]: - """ - Delete one or more existing secrets for a given hook. Accepts an array of secret names to delete. - - Parameters - ---------- - id : str - ID of the hook whose secrets to delete. - - request : DeleteHookSecretRequestContent - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"hooks/{quote_path_param(id)}/secrets", - method="DELETE", - json=request, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def update( - self, - id: str, - *, - request: UpdateHookSecretRequestContent, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[None]: - """ - Update one or more existing secrets for an existing hook. Accepts an object of key-value pairs, where the key is the name of the existing secret. - - Parameters - ---------- - id : str - ID of the hook whose secrets to update. - - request : UpdateHookSecretRequestContent - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"hooks/{quote_path_param(id)}/secrets", - method="PATCH", - json=request, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/jobs/__init__.py b/src/auth0/management/jobs/__init__.py deleted file mode 100644 index 0e33e75d..00000000 --- a/src/auth0/management/jobs/__init__.py +++ /dev/null @@ -1,41 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .errors import ErrorsGetResponse - from . import errors, users_exports, users_imports, verification_email -_dynamic_imports: typing.Dict[str, str] = { - "ErrorsGetResponse": ".errors", - "errors": ".errors", - "users_exports": ".users_exports", - "users_imports": ".users_imports", - "verification_email": ".verification_email", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - if module_name == f".{attr_name}": - return module - else: - return getattr(module, attr_name) - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["ErrorsGetResponse", "errors", "users_exports", "users_imports", "verification_email"] diff --git a/src/auth0/management/jobs/client.py b/src/auth0/management/jobs/client.py deleted file mode 100644 index fd033c88..00000000 --- a/src/auth0/management/jobs/client.py +++ /dev/null @@ -1,192 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.request_options import RequestOptions -from ..types.get_job_response_content import GetJobResponseContent -from .raw_client import AsyncRawJobsClient, RawJobsClient - -if typing.TYPE_CHECKING: - from .errors.client import AsyncErrorsClient, ErrorsClient - from .users_exports.client import AsyncUsersExportsClient, UsersExportsClient - from .users_imports.client import AsyncUsersImportsClient, UsersImportsClient - from .verification_email.client import AsyncVerificationEmailClient, VerificationEmailClient - - -class JobsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawJobsClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._users_exports: typing.Optional[UsersExportsClient] = None - self._users_imports: typing.Optional[UsersImportsClient] = None - self._verification_email: typing.Optional[VerificationEmailClient] = None - self._errors: typing.Optional[ErrorsClient] = None - - @property - def with_raw_response(self) -> RawJobsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawJobsClient - """ - return self._raw_client - - def get(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> GetJobResponseContent: - """ - Retrieves a job. Useful to check its status. - - Parameters - ---------- - id : str - ID of the job. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetJobResponseContent - Job retrieved successfully. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.jobs.get( - id="id", - ) - """ - _response = self._raw_client.get(id, request_options=request_options) - return _response.data - - @property - def users_exports(self): - if self._users_exports is None: - from .users_exports.client import UsersExportsClient # noqa: E402 - - self._users_exports = UsersExportsClient(client_wrapper=self._client_wrapper) - return self._users_exports - - @property - def users_imports(self): - if self._users_imports is None: - from .users_imports.client import UsersImportsClient # noqa: E402 - - self._users_imports = UsersImportsClient(client_wrapper=self._client_wrapper) - return self._users_imports - - @property - def verification_email(self): - if self._verification_email is None: - from .verification_email.client import VerificationEmailClient # noqa: E402 - - self._verification_email = VerificationEmailClient(client_wrapper=self._client_wrapper) - return self._verification_email - - @property - def errors(self): - if self._errors is None: - from .errors.client import ErrorsClient # noqa: E402 - - self._errors = ErrorsClient(client_wrapper=self._client_wrapper) - return self._errors - - -class AsyncJobsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawJobsClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._users_exports: typing.Optional[AsyncUsersExportsClient] = None - self._users_imports: typing.Optional[AsyncUsersImportsClient] = None - self._verification_email: typing.Optional[AsyncVerificationEmailClient] = None - self._errors: typing.Optional[AsyncErrorsClient] = None - - @property - def with_raw_response(self) -> AsyncRawJobsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawJobsClient - """ - return self._raw_client - - async def get(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> GetJobResponseContent: - """ - Retrieves a job. Useful to check its status. - - Parameters - ---------- - id : str - ID of the job. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetJobResponseContent - Job retrieved successfully. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.jobs.get( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.get(id, request_options=request_options) - return _response.data - - @property - def users_exports(self): - if self._users_exports is None: - from .users_exports.client import AsyncUsersExportsClient # noqa: E402 - - self._users_exports = AsyncUsersExportsClient(client_wrapper=self._client_wrapper) - return self._users_exports - - @property - def users_imports(self): - if self._users_imports is None: - from .users_imports.client import AsyncUsersImportsClient # noqa: E402 - - self._users_imports = AsyncUsersImportsClient(client_wrapper=self._client_wrapper) - return self._users_imports - - @property - def verification_email(self): - if self._verification_email is None: - from .verification_email.client import AsyncVerificationEmailClient # noqa: E402 - - self._verification_email = AsyncVerificationEmailClient(client_wrapper=self._client_wrapper) - return self._verification_email - - @property - def errors(self): - if self._errors is None: - from .errors.client import AsyncErrorsClient # noqa: E402 - - self._errors = AsyncErrorsClient(client_wrapper=self._client_wrapper) - return self._errors diff --git a/src/auth0/management/jobs/errors/__init__.py b/src/auth0/management/jobs/errors/__init__.py deleted file mode 100644 index 56245657..00000000 --- a/src/auth0/management/jobs/errors/__init__.py +++ /dev/null @@ -1,34 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import ErrorsGetResponse -_dynamic_imports: typing.Dict[str, str] = {"ErrorsGetResponse": ".types"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - if module_name == f".{attr_name}": - return module - else: - return getattr(module, attr_name) - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["ErrorsGetResponse"] diff --git a/src/auth0/management/jobs/errors/client.py b/src/auth0/management/jobs/errors/client.py deleted file mode 100644 index ea8169e3..00000000 --- a/src/auth0/management/jobs/errors/client.py +++ /dev/null @@ -1,114 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.request_options import RequestOptions -from .raw_client import AsyncRawErrorsClient, RawErrorsClient -from .types.errors_get_response import ErrorsGetResponse - - -class ErrorsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawErrorsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawErrorsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawErrorsClient - """ - return self._raw_client - - def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> typing.Optional[ErrorsGetResponse]: - """ - Retrieve error details of a failed job. - - Parameters - ---------- - id : str - ID of the job. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - typing.Optional[ErrorsGetResponse] - Job successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.jobs.errors.get( - id="id", - ) - """ - _response = self._raw_client.get(id, request_options=request_options) - return _response.data - - -class AsyncErrorsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawErrorsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawErrorsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawErrorsClient - """ - return self._raw_client - - async def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> typing.Optional[ErrorsGetResponse]: - """ - Retrieve error details of a failed job. - - Parameters - ---------- - id : str - ID of the job. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - typing.Optional[ErrorsGetResponse] - Job successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.jobs.errors.get( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.get(id, request_options=request_options) - return _response.data diff --git a/src/auth0/management/jobs/errors/raw_client.py b/src/auth0/management/jobs/errors/raw_client.py deleted file mode 100644 index 2599c58d..00000000 --- a/src/auth0/management/jobs/errors/raw_client.py +++ /dev/null @@ -1,229 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ...core.api_error import ApiError -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.http_response import AsyncHttpResponse, HttpResponse -from ...core.jsonable_encoder import quote_path_param -from ...core.parse_error import ParsingError -from ...core.pydantic_utilities import parse_obj_as -from ...core.request_options import RequestOptions -from ...errors.bad_request_error import BadRequestError -from ...errors.forbidden_error import ForbiddenError -from ...errors.not_found_error import NotFoundError -from ...errors.too_many_requests_error import TooManyRequestsError -from ...errors.unauthorized_error import UnauthorizedError -from .types.errors_get_response import ErrorsGetResponse -from pydantic import ValidationError - - -class RawErrorsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[typing.Optional[ErrorsGetResponse]]: - """ - Retrieve error details of a failed job. - - Parameters - ---------- - id : str - ID of the job. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[typing.Optional[ErrorsGetResponse]] - Job successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - f"jobs/{quote_path_param(id)}/errors", - method="GET", - request_options=request_options, - ) - try: - if _response is None or not _response.text.strip(): - return HttpResponse(response=_response, data=None) - if 200 <= _response.status_code < 300: - _data = typing.cast( - typing.Optional[ErrorsGetResponse], - parse_obj_as( - type_=typing.Optional[ErrorsGetResponse], # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawErrorsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[typing.Optional[ErrorsGetResponse]]: - """ - Retrieve error details of a failed job. - - Parameters - ---------- - id : str - ID of the job. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[typing.Optional[ErrorsGetResponse]] - Job successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - f"jobs/{quote_path_param(id)}/errors", - method="GET", - request_options=request_options, - ) - try: - if _response is None or not _response.text.strip(): - return AsyncHttpResponse(response=_response, data=None) - if 200 <= _response.status_code < 300: - _data = typing.cast( - typing.Optional[ErrorsGetResponse], - parse_obj_as( - type_=typing.Optional[ErrorsGetResponse], # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/jobs/errors/types/__init__.py b/src/auth0/management/jobs/errors/types/__init__.py deleted file mode 100644 index b9689eec..00000000 --- a/src/auth0/management/jobs/errors/types/__init__.py +++ /dev/null @@ -1,34 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .errors_get_response import ErrorsGetResponse -_dynamic_imports: typing.Dict[str, str] = {"ErrorsGetResponse": ".errors_get_response"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - if module_name == f".{attr_name}": - return module - else: - return getattr(module, attr_name) - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["ErrorsGetResponse"] diff --git a/src/auth0/management/jobs/errors/types/errors_get_response.py b/src/auth0/management/jobs/errors/types/errors_get_response.py deleted file mode 100644 index 37e603f7..00000000 --- a/src/auth0/management/jobs/errors/types/errors_get_response.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ....types.get_job_error_response_content import GetJobErrorResponseContent -from ....types.get_job_generic_error_response_content import GetJobGenericErrorResponseContent - -ErrorsGetResponse = typing.Union[typing.List[GetJobErrorResponseContent], GetJobGenericErrorResponseContent] diff --git a/src/auth0/management/jobs/raw_client.py b/src/auth0/management/jobs/raw_client.py deleted file mode 100644 index f79eb1c6..00000000 --- a/src/auth0/management/jobs/raw_client.py +++ /dev/null @@ -1,225 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ..core.api_error import ApiError -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.http_response import AsyncHttpResponse, HttpResponse -from ..core.jsonable_encoder import quote_path_param -from ..core.parse_error import ParsingError -from ..core.pydantic_utilities import parse_obj_as -from ..core.request_options import RequestOptions -from ..errors.bad_request_error import BadRequestError -from ..errors.forbidden_error import ForbiddenError -from ..errors.not_found_error import NotFoundError -from ..errors.too_many_requests_error import TooManyRequestsError -from ..errors.unauthorized_error import UnauthorizedError -from ..types.get_job_response_content import GetJobResponseContent -from pydantic import ValidationError - - -class RawJobsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetJobResponseContent]: - """ - Retrieves a job. Useful to check its status. - - Parameters - ---------- - id : str - ID of the job. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetJobResponseContent] - Job retrieved successfully. - """ - _response = self._client_wrapper.httpx_client.request( - f"jobs/{quote_path_param(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetJobResponseContent, - parse_obj_as( - type_=GetJobResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawJobsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetJobResponseContent]: - """ - Retrieves a job. Useful to check its status. - - Parameters - ---------- - id : str - ID of the job. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetJobResponseContent] - Job retrieved successfully. - """ - _response = await self._client_wrapper.httpx_client.request( - f"jobs/{quote_path_param(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetJobResponseContent, - parse_obj_as( - type_=GetJobResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/jobs/users_exports/__init__.py b/src/auth0/management/jobs/users_exports/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/jobs/users_exports/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/jobs/users_exports/client.py b/src/auth0/management/jobs/users_exports/client.py deleted file mode 100644 index 36aff63f..00000000 --- a/src/auth0/management/jobs/users_exports/client.py +++ /dev/null @@ -1,147 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.request_options import RequestOptions -from ...types.create_export_users_fields import CreateExportUsersFields -from ...types.create_export_users_response_content import CreateExportUsersResponseContent -from ...types.job_file_format_enum import JobFileFormatEnum -from .raw_client import AsyncRawUsersExportsClient, RawUsersExportsClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class UsersExportsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawUsersExportsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawUsersExportsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawUsersExportsClient - """ - return self._raw_client - - def create( - self, - *, - connection_id: typing.Optional[str] = OMIT, - format: typing.Optional[JobFileFormatEnum] = OMIT, - limit: typing.Optional[int] = OMIT, - fields: typing.Optional[typing.Sequence[CreateExportUsersFields]] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateExportUsersResponseContent: - """ - Export all users to a file via a long-running job. - - Parameters - ---------- - connection_id : typing.Optional[str] - connection_id of the connection from which users will be exported. - - format : typing.Optional[JobFileFormatEnum] - - limit : typing.Optional[int] - Limit the number of records. - - fields : typing.Optional[typing.Sequence[CreateExportUsersFields]] - List of fields to be included in the CSV. Defaults to a predefined set of fields. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateExportUsersResponseContent - Job created successfully. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.jobs.users_exports.create() - """ - _response = self._raw_client.create( - connection_id=connection_id, format=format, limit=limit, fields=fields, request_options=request_options - ) - return _response.data - - -class AsyncUsersExportsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawUsersExportsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawUsersExportsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawUsersExportsClient - """ - return self._raw_client - - async def create( - self, - *, - connection_id: typing.Optional[str] = OMIT, - format: typing.Optional[JobFileFormatEnum] = OMIT, - limit: typing.Optional[int] = OMIT, - fields: typing.Optional[typing.Sequence[CreateExportUsersFields]] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateExportUsersResponseContent: - """ - Export all users to a file via a long-running job. - - Parameters - ---------- - connection_id : typing.Optional[str] - connection_id of the connection from which users will be exported. - - format : typing.Optional[JobFileFormatEnum] - - limit : typing.Optional[int] - Limit the number of records. - - fields : typing.Optional[typing.Sequence[CreateExportUsersFields]] - List of fields to be included in the CSV. Defaults to a predefined set of fields. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateExportUsersResponseContent - Job created successfully. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.jobs.users_exports.create() - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - connection_id=connection_id, format=format, limit=limit, fields=fields, request_options=request_options - ) - return _response.data diff --git a/src/auth0/management/jobs/users_exports/raw_client.py b/src/auth0/management/jobs/users_exports/raw_client.py deleted file mode 100644 index 0c184255..00000000 --- a/src/auth0/management/jobs/users_exports/raw_client.py +++ /dev/null @@ -1,259 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ...core.api_error import ApiError -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.http_response import AsyncHttpResponse, HttpResponse -from ...core.parse_error import ParsingError -from ...core.pydantic_utilities import parse_obj_as -from ...core.request_options import RequestOptions -from ...core.serialization import convert_and_respect_annotation_metadata -from ...errors.bad_request_error import BadRequestError -from ...errors.forbidden_error import ForbiddenError -from ...errors.too_many_requests_error import TooManyRequestsError -from ...errors.unauthorized_error import UnauthorizedError -from ...types.create_export_users_fields import CreateExportUsersFields -from ...types.create_export_users_response_content import CreateExportUsersResponseContent -from ...types.job_file_format_enum import JobFileFormatEnum -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawUsersExportsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def create( - self, - *, - connection_id: typing.Optional[str] = OMIT, - format: typing.Optional[JobFileFormatEnum] = OMIT, - limit: typing.Optional[int] = OMIT, - fields: typing.Optional[typing.Sequence[CreateExportUsersFields]] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[CreateExportUsersResponseContent]: - """ - Export all users to a file via a long-running job. - - Parameters - ---------- - connection_id : typing.Optional[str] - connection_id of the connection from which users will be exported. - - format : typing.Optional[JobFileFormatEnum] - - limit : typing.Optional[int] - Limit the number of records. - - fields : typing.Optional[typing.Sequence[CreateExportUsersFields]] - List of fields to be included in the CSV. Defaults to a predefined set of fields. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CreateExportUsersResponseContent] - Job created successfully. - """ - _response = self._client_wrapper.httpx_client.request( - "jobs/users-exports", - method="POST", - json={ - "connection_id": connection_id, - "format": format, - "limit": limit, - "fields": convert_and_respect_annotation_metadata( - object_=fields, annotation=typing.Sequence[CreateExportUsersFields], direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateExportUsersResponseContent, - parse_obj_as( - type_=CreateExportUsersResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawUsersExportsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def create( - self, - *, - connection_id: typing.Optional[str] = OMIT, - format: typing.Optional[JobFileFormatEnum] = OMIT, - limit: typing.Optional[int] = OMIT, - fields: typing.Optional[typing.Sequence[CreateExportUsersFields]] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[CreateExportUsersResponseContent]: - """ - Export all users to a file via a long-running job. - - Parameters - ---------- - connection_id : typing.Optional[str] - connection_id of the connection from which users will be exported. - - format : typing.Optional[JobFileFormatEnum] - - limit : typing.Optional[int] - Limit the number of records. - - fields : typing.Optional[typing.Sequence[CreateExportUsersFields]] - List of fields to be included in the CSV. Defaults to a predefined set of fields. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CreateExportUsersResponseContent] - Job created successfully. - """ - _response = await self._client_wrapper.httpx_client.request( - "jobs/users-exports", - method="POST", - json={ - "connection_id": connection_id, - "format": format, - "limit": limit, - "fields": convert_and_respect_annotation_metadata( - object_=fields, annotation=typing.Sequence[CreateExportUsersFields], direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateExportUsersResponseContent, - parse_obj_as( - type_=CreateExportUsersResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/jobs/users_imports/__init__.py b/src/auth0/management/jobs/users_imports/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/jobs/users_imports/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/jobs/users_imports/client.py b/src/auth0/management/jobs/users_imports/client.py deleted file mode 100644 index 7decdc49..00000000 --- a/src/auth0/management/jobs/users_imports/client.py +++ /dev/null @@ -1,170 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ... import core -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.request_options import RequestOptions -from ...types.create_import_users_response_content import CreateImportUsersResponseContent -from .raw_client import AsyncRawUsersImportsClient, RawUsersImportsClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class UsersImportsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawUsersImportsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawUsersImportsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawUsersImportsClient - """ - return self._raw_client - - def create( - self, - *, - users: core.File, - connection_id: str, - upsert: typing.Optional[bool] = OMIT, - external_id: typing.Optional[str] = OMIT, - send_completion_email: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateImportUsersResponseContent: - """ - Import users from a formatted file into a connection via a long-running job. When importing users, with or without upsert, the `email_verified` is set to `false` when the email address is added or updated. Users must verify their email address. To avoid this behavior, set `email_verified` to `true` in the imported data. - - Parameters - ---------- - users : core.File - See core.File for more documentation - - connection_id : str - connection_id of the connection to which users will be imported. - - upsert : typing.Optional[bool] - Whether to update users if they already exist (true) or to ignore them (false). - - external_id : typing.Optional[str] - Customer-defined ID. - - send_completion_email : typing.Optional[bool] - Whether to send a completion email to all tenant owners when the job is finished (true) or not (false). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateImportUsersResponseContent - Job successfully created. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.jobs.users_imports.create( - connection_id="connection_id", - ) - """ - _response = self._raw_client.create( - users=users, - connection_id=connection_id, - upsert=upsert, - external_id=external_id, - send_completion_email=send_completion_email, - request_options=request_options, - ) - return _response.data - - -class AsyncUsersImportsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawUsersImportsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawUsersImportsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawUsersImportsClient - """ - return self._raw_client - - async def create( - self, - *, - users: core.File, - connection_id: str, - upsert: typing.Optional[bool] = OMIT, - external_id: typing.Optional[str] = OMIT, - send_completion_email: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateImportUsersResponseContent: - """ - Import users from a formatted file into a connection via a long-running job. When importing users, with or without upsert, the `email_verified` is set to `false` when the email address is added or updated. Users must verify their email address. To avoid this behavior, set `email_verified` to `true` in the imported data. - - Parameters - ---------- - users : core.File - See core.File for more documentation - - connection_id : str - connection_id of the connection to which users will be imported. - - upsert : typing.Optional[bool] - Whether to update users if they already exist (true) or to ignore them (false). - - external_id : typing.Optional[str] - Customer-defined ID. - - send_completion_email : typing.Optional[bool] - Whether to send a completion email to all tenant owners when the job is finished (true) or not (false). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateImportUsersResponseContent - Job successfully created. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.jobs.users_imports.create( - connection_id="connection_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - users=users, - connection_id=connection_id, - upsert=upsert, - external_id=external_id, - send_completion_email=send_completion_email, - request_options=request_options, - ) - return _response.data diff --git a/src/auth0/management/jobs/users_imports/raw_client.py b/src/auth0/management/jobs/users_imports/raw_client.py deleted file mode 100644 index db8a1a3e..00000000 --- a/src/auth0/management/jobs/users_imports/raw_client.py +++ /dev/null @@ -1,311 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ... import core -from ...core.api_error import ApiError -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.http_response import AsyncHttpResponse, HttpResponse -from ...core.parse_error import ParsingError -from ...core.pydantic_utilities import parse_obj_as -from ...core.request_options import RequestOptions -from ...errors.bad_request_error import BadRequestError -from ...errors.content_too_large_error import ContentTooLargeError -from ...errors.forbidden_error import ForbiddenError -from ...errors.internal_server_error import InternalServerError -from ...errors.too_many_requests_error import TooManyRequestsError -from ...errors.unauthorized_error import UnauthorizedError -from ...types.create_import_users_response_content import CreateImportUsersResponseContent -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawUsersImportsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def create( - self, - *, - users: core.File, - connection_id: str, - upsert: typing.Optional[bool] = OMIT, - external_id: typing.Optional[str] = OMIT, - send_completion_email: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[CreateImportUsersResponseContent]: - """ - Import users from a formatted file into a connection via a long-running job. When importing users, with or without upsert, the `email_verified` is set to `false` when the email address is added or updated. Users must verify their email address. To avoid this behavior, set `email_verified` to `true` in the imported data. - - Parameters - ---------- - users : core.File - See core.File for more documentation - - connection_id : str - connection_id of the connection to which users will be imported. - - upsert : typing.Optional[bool] - Whether to update users if they already exist (true) or to ignore them (false). - - external_id : typing.Optional[str] - Customer-defined ID. - - send_completion_email : typing.Optional[bool] - Whether to send a completion email to all tenant owners when the job is finished (true) or not (false). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CreateImportUsersResponseContent] - Job successfully created. - """ - _response = self._client_wrapper.httpx_client.request( - "jobs/users-imports", - method="POST", - data={ - "connection_id": connection_id, - "upsert": upsert, - "external_id": external_id, - "send_completion_email": send_completion_email, - }, - files={ - "users": users, - }, - request_options=request_options, - omit=OMIT, - force_multipart=True, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateImportUsersResponseContent, - parse_obj_as( - type_=CreateImportUsersResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 413: - raise ContentTooLargeError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 500: - raise InternalServerError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawUsersImportsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def create( - self, - *, - users: core.File, - connection_id: str, - upsert: typing.Optional[bool] = OMIT, - external_id: typing.Optional[str] = OMIT, - send_completion_email: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[CreateImportUsersResponseContent]: - """ - Import users from a formatted file into a connection via a long-running job. When importing users, with or without upsert, the `email_verified` is set to `false` when the email address is added or updated. Users must verify their email address. To avoid this behavior, set `email_verified` to `true` in the imported data. - - Parameters - ---------- - users : core.File - See core.File for more documentation - - connection_id : str - connection_id of the connection to which users will be imported. - - upsert : typing.Optional[bool] - Whether to update users if they already exist (true) or to ignore them (false). - - external_id : typing.Optional[str] - Customer-defined ID. - - send_completion_email : typing.Optional[bool] - Whether to send a completion email to all tenant owners when the job is finished (true) or not (false). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CreateImportUsersResponseContent] - Job successfully created. - """ - _response = await self._client_wrapper.httpx_client.request( - "jobs/users-imports", - method="POST", - data={ - "connection_id": connection_id, - "upsert": upsert, - "external_id": external_id, - "send_completion_email": send_completion_email, - }, - files={ - "users": users, - }, - request_options=request_options, - omit=OMIT, - force_multipart=True, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateImportUsersResponseContent, - parse_obj_as( - type_=CreateImportUsersResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 413: - raise ContentTooLargeError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 500: - raise InternalServerError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/jobs/verification_email/__init__.py b/src/auth0/management/jobs/verification_email/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/jobs/verification_email/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/jobs/verification_email/client.py b/src/auth0/management/jobs/verification_email/client.py deleted file mode 100644 index cc61de0c..00000000 --- a/src/auth0/management/jobs/verification_email/client.py +++ /dev/null @@ -1,162 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.request_options import RequestOptions -from ...types.create_verification_email_response_content import CreateVerificationEmailResponseContent -from ...types.identity import Identity -from .raw_client import AsyncRawVerificationEmailClient, RawVerificationEmailClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class VerificationEmailClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawVerificationEmailClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawVerificationEmailClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawVerificationEmailClient - """ - return self._raw_client - - def create( - self, - *, - user_id: str, - client_id: typing.Optional[str] = OMIT, - identity: typing.Optional[Identity] = OMIT, - organization_id: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateVerificationEmailResponseContent: - """ - Send an email to the specified user that asks them to click a link to [verify their email address](https://auth0.com/docs/email/custom#verification-email). - - Note: You must have the `Status` toggle enabled for the verification email template for the email to be sent. - - Parameters - ---------- - user_id : str - user_id of the user to send the verification email to. - - client_id : typing.Optional[str] - client_id of the client (application). If no value provided, the global Client ID will be used. - - identity : typing.Optional[Identity] - - organization_id : typing.Optional[str] - (Optional) Organization ID – the ID of the Organization. If provided, organization parameters will be made available to the email template and organization branding will be applied to the prompt. In addition, the redirect link in the prompt will include organization_id and organization_name query string parameters. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateVerificationEmailResponseContent - Job successfully created. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.jobs.verification_email.create( - user_id="user_id", - ) - """ - _response = self._raw_client.create( - user_id=user_id, - client_id=client_id, - identity=identity, - organization_id=organization_id, - request_options=request_options, - ) - return _response.data - - -class AsyncVerificationEmailClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawVerificationEmailClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawVerificationEmailClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawVerificationEmailClient - """ - return self._raw_client - - async def create( - self, - *, - user_id: str, - client_id: typing.Optional[str] = OMIT, - identity: typing.Optional[Identity] = OMIT, - organization_id: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateVerificationEmailResponseContent: - """ - Send an email to the specified user that asks them to click a link to [verify their email address](https://auth0.com/docs/email/custom#verification-email). - - Note: You must have the `Status` toggle enabled for the verification email template for the email to be sent. - - Parameters - ---------- - user_id : str - user_id of the user to send the verification email to. - - client_id : typing.Optional[str] - client_id of the client (application). If no value provided, the global Client ID will be used. - - identity : typing.Optional[Identity] - - organization_id : typing.Optional[str] - (Optional) Organization ID – the ID of the Organization. If provided, organization parameters will be made available to the email template and organization branding will be applied to the prompt. In addition, the redirect link in the prompt will include organization_id and organization_name query string parameters. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateVerificationEmailResponseContent - Job successfully created. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.jobs.verification_email.create( - user_id="user_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - user_id=user_id, - client_id=client_id, - identity=identity, - organization_id=organization_id, - request_options=request_options, - ) - return _response.data diff --git a/src/auth0/management/jobs/verification_email/raw_client.py b/src/auth0/management/jobs/verification_email/raw_client.py deleted file mode 100644 index c999a168..00000000 --- a/src/auth0/management/jobs/verification_email/raw_client.py +++ /dev/null @@ -1,262 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ...core.api_error import ApiError -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.http_response import AsyncHttpResponse, HttpResponse -from ...core.parse_error import ParsingError -from ...core.pydantic_utilities import parse_obj_as -from ...core.request_options import RequestOptions -from ...core.serialization import convert_and_respect_annotation_metadata -from ...errors.bad_request_error import BadRequestError -from ...errors.forbidden_error import ForbiddenError -from ...errors.too_many_requests_error import TooManyRequestsError -from ...errors.unauthorized_error import UnauthorizedError -from ...types.create_verification_email_response_content import CreateVerificationEmailResponseContent -from ...types.identity import Identity -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawVerificationEmailClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def create( - self, - *, - user_id: str, - client_id: typing.Optional[str] = OMIT, - identity: typing.Optional[Identity] = OMIT, - organization_id: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[CreateVerificationEmailResponseContent]: - """ - Send an email to the specified user that asks them to click a link to [verify their email address](https://auth0.com/docs/email/custom#verification-email). - - Note: You must have the `Status` toggle enabled for the verification email template for the email to be sent. - - Parameters - ---------- - user_id : str - user_id of the user to send the verification email to. - - client_id : typing.Optional[str] - client_id of the client (application). If no value provided, the global Client ID will be used. - - identity : typing.Optional[Identity] - - organization_id : typing.Optional[str] - (Optional) Organization ID – the ID of the Organization. If provided, organization parameters will be made available to the email template and organization branding will be applied to the prompt. In addition, the redirect link in the prompt will include organization_id and organization_name query string parameters. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CreateVerificationEmailResponseContent] - Job successfully created. - """ - _response = self._client_wrapper.httpx_client.request( - "jobs/verification-email", - method="POST", - json={ - "user_id": user_id, - "client_id": client_id, - "identity": convert_and_respect_annotation_metadata( - object_=identity, annotation=Identity, direction="write" - ), - "organization_id": organization_id, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateVerificationEmailResponseContent, - parse_obj_as( - type_=CreateVerificationEmailResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawVerificationEmailClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def create( - self, - *, - user_id: str, - client_id: typing.Optional[str] = OMIT, - identity: typing.Optional[Identity] = OMIT, - organization_id: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[CreateVerificationEmailResponseContent]: - """ - Send an email to the specified user that asks them to click a link to [verify their email address](https://auth0.com/docs/email/custom#verification-email). - - Note: You must have the `Status` toggle enabled for the verification email template for the email to be sent. - - Parameters - ---------- - user_id : str - user_id of the user to send the verification email to. - - client_id : typing.Optional[str] - client_id of the client (application). If no value provided, the global Client ID will be used. - - identity : typing.Optional[Identity] - - organization_id : typing.Optional[str] - (Optional) Organization ID – the ID of the Organization. If provided, organization parameters will be made available to the email template and organization branding will be applied to the prompt. In addition, the redirect link in the prompt will include organization_id and organization_name query string parameters. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CreateVerificationEmailResponseContent] - Job successfully created. - """ - _response = await self._client_wrapper.httpx_client.request( - "jobs/verification-email", - method="POST", - json={ - "user_id": user_id, - "client_id": client_id, - "identity": convert_and_respect_annotation_metadata( - object_=identity, annotation=Identity, direction="write" - ), - "organization_id": organization_id, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateVerificationEmailResponseContent, - parse_obj_as( - type_=CreateVerificationEmailResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/keys/__init__.py b/src/auth0/management/keys/__init__.py deleted file mode 100644 index ac98e268..00000000 --- a/src/auth0/management/keys/__init__.py +++ /dev/null @@ -1,39 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from . import custom_signing, encryption, network_acls, signing -_dynamic_imports: typing.Dict[str, str] = { - "custom_signing": ".custom_signing", - "encryption": ".encryption", - "network_acls": ".network_acls", - "signing": ".signing", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - if module_name == f".{attr_name}": - return module - else: - return getattr(module, attr_name) - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["custom_signing", "encryption", "network_acls", "signing"] diff --git a/src/auth0/management/keys/client.py b/src/auth0/management/keys/client.py deleted file mode 100644 index 08daa895..00000000 --- a/src/auth0/management/keys/client.py +++ /dev/null @@ -1,120 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .raw_client import AsyncRawKeysClient, RawKeysClient - -if typing.TYPE_CHECKING: - from .custom_signing.client import AsyncCustomSigningClient, CustomSigningClient - from .encryption.client import AsyncEncryptionClient, EncryptionClient - from .network_acls.client import AsyncNetworkAclsClient, NetworkAclsClient - from .signing.client import AsyncSigningClient, SigningClient - - -class KeysClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawKeysClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._custom_signing: typing.Optional[CustomSigningClient] = None - self._encryption: typing.Optional[EncryptionClient] = None - self._network_acls: typing.Optional[NetworkAclsClient] = None - self._signing: typing.Optional[SigningClient] = None - - @property - def with_raw_response(self) -> RawKeysClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawKeysClient - """ - return self._raw_client - - @property - def custom_signing(self): - if self._custom_signing is None: - from .custom_signing.client import CustomSigningClient # noqa: E402 - - self._custom_signing = CustomSigningClient(client_wrapper=self._client_wrapper) - return self._custom_signing - - @property - def encryption(self): - if self._encryption is None: - from .encryption.client import EncryptionClient # noqa: E402 - - self._encryption = EncryptionClient(client_wrapper=self._client_wrapper) - return self._encryption - - @property - def network_acls(self): - if self._network_acls is None: - from .network_acls.client import NetworkAclsClient # noqa: E402 - - self._network_acls = NetworkAclsClient(client_wrapper=self._client_wrapper) - return self._network_acls - - @property - def signing(self): - if self._signing is None: - from .signing.client import SigningClient # noqa: E402 - - self._signing = SigningClient(client_wrapper=self._client_wrapper) - return self._signing - - -class AsyncKeysClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawKeysClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._custom_signing: typing.Optional[AsyncCustomSigningClient] = None - self._encryption: typing.Optional[AsyncEncryptionClient] = None - self._network_acls: typing.Optional[AsyncNetworkAclsClient] = None - self._signing: typing.Optional[AsyncSigningClient] = None - - @property - def with_raw_response(self) -> AsyncRawKeysClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawKeysClient - """ - return self._raw_client - - @property - def custom_signing(self): - if self._custom_signing is None: - from .custom_signing.client import AsyncCustomSigningClient # noqa: E402 - - self._custom_signing = AsyncCustomSigningClient(client_wrapper=self._client_wrapper) - return self._custom_signing - - @property - def encryption(self): - if self._encryption is None: - from .encryption.client import AsyncEncryptionClient # noqa: E402 - - self._encryption = AsyncEncryptionClient(client_wrapper=self._client_wrapper) - return self._encryption - - @property - def network_acls(self): - if self._network_acls is None: - from .network_acls.client import AsyncNetworkAclsClient # noqa: E402 - - self._network_acls = AsyncNetworkAclsClient(client_wrapper=self._client_wrapper) - return self._network_acls - - @property - def signing(self): - if self._signing is None: - from .signing.client import AsyncSigningClient # noqa: E402 - - self._signing = AsyncSigningClient(client_wrapper=self._client_wrapper) - return self._signing diff --git a/src/auth0/management/keys/custom_signing/__init__.py b/src/auth0/management/keys/custom_signing/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/keys/custom_signing/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/keys/custom_signing/client.py b/src/auth0/management/keys/custom_signing/client.py deleted file mode 100644 index 478de550..00000000 --- a/src/auth0/management/keys/custom_signing/client.py +++ /dev/null @@ -1,247 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.request_options import RequestOptions -from ...types.custom_signing_key_jwk import CustomSigningKeyJwk -from ...types.get_custom_signing_keys_response_content import GetCustomSigningKeysResponseContent -from ...types.set_custom_signing_keys_response_content import SetCustomSigningKeysResponseContent -from .raw_client import AsyncRawCustomSigningClient, RawCustomSigningClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class CustomSigningClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawCustomSigningClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawCustomSigningClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawCustomSigningClient - """ - return self._raw_client - - def get(self, *, request_options: typing.Optional[RequestOptions] = None) -> GetCustomSigningKeysResponseContent: - """ - Get entire jwks representation of custom signing keys. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetCustomSigningKeysResponseContent - Custom signing keys were successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.keys.custom_signing.get() - """ - _response = self._raw_client.get(request_options=request_options) - return _response.data - - def set( - self, *, keys: typing.Sequence[CustomSigningKeyJwk], request_options: typing.Optional[RequestOptions] = None - ) -> SetCustomSigningKeysResponseContent: - """ - Create or replace entire jwks representation of custom signing keys. - - Parameters - ---------- - keys : typing.Sequence[CustomSigningKeyJwk] - An array of custom public signing keys. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SetCustomSigningKeysResponseContent - Custom signing keys were successfully created or replaced. - - Examples - -------- - from auth0 import Auth0, CustomSigningKeyJwk - - client = Auth0( - token="YOUR_TOKEN", - ) - client.keys.custom_signing.set( - keys=[ - CustomSigningKeyJwk( - kty="EC", - ) - ], - ) - """ - _response = self._raw_client.set(keys=keys, request_options=request_options) - return _response.data - - def delete(self, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete entire jwks representation of custom signing keys. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.keys.custom_signing.delete() - """ - _response = self._raw_client.delete(request_options=request_options) - return _response.data - - -class AsyncCustomSigningClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawCustomSigningClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawCustomSigningClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawCustomSigningClient - """ - return self._raw_client - - async def get( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetCustomSigningKeysResponseContent: - """ - Get entire jwks representation of custom signing keys. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetCustomSigningKeysResponseContent - Custom signing keys were successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.keys.custom_signing.get() - - - asyncio.run(main()) - """ - _response = await self._raw_client.get(request_options=request_options) - return _response.data - - async def set( - self, *, keys: typing.Sequence[CustomSigningKeyJwk], request_options: typing.Optional[RequestOptions] = None - ) -> SetCustomSigningKeysResponseContent: - """ - Create or replace entire jwks representation of custom signing keys. - - Parameters - ---------- - keys : typing.Sequence[CustomSigningKeyJwk] - An array of custom public signing keys. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SetCustomSigningKeysResponseContent - Custom signing keys were successfully created or replaced. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0, CustomSigningKeyJwk - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.keys.custom_signing.set( - keys=[ - CustomSigningKeyJwk( - kty="EC", - ) - ], - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.set(keys=keys, request_options=request_options) - return _response.data - - async def delete(self, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete entire jwks representation of custom signing keys. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.keys.custom_signing.delete() - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete(request_options=request_options) - return _response.data diff --git a/src/auth0/management/keys/custom_signing/raw_client.py b/src/auth0/management/keys/custom_signing/raw_client.py deleted file mode 100644 index 66a5554c..00000000 --- a/src/auth0/management/keys/custom_signing/raw_client.py +++ /dev/null @@ -1,520 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ...core.api_error import ApiError -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.http_response import AsyncHttpResponse, HttpResponse -from ...core.parse_error import ParsingError -from ...core.pydantic_utilities import parse_obj_as -from ...core.request_options import RequestOptions -from ...core.serialization import convert_and_respect_annotation_metadata -from ...errors.bad_request_error import BadRequestError -from ...errors.forbidden_error import ForbiddenError -from ...errors.not_found_error import NotFoundError -from ...errors.too_many_requests_error import TooManyRequestsError -from ...errors.unauthorized_error import UnauthorizedError -from ...types.custom_signing_key_jwk import CustomSigningKeyJwk -from ...types.get_custom_signing_keys_response_content import GetCustomSigningKeysResponseContent -from ...types.set_custom_signing_keys_response_content import SetCustomSigningKeysResponseContent -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawCustomSigningClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def get( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetCustomSigningKeysResponseContent]: - """ - Get entire jwks representation of custom signing keys. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetCustomSigningKeysResponseContent] - Custom signing keys were successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - "keys/custom-signing", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetCustomSigningKeysResponseContent, - parse_obj_as( - type_=GetCustomSigningKeysResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def set( - self, *, keys: typing.Sequence[CustomSigningKeyJwk], request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[SetCustomSigningKeysResponseContent]: - """ - Create or replace entire jwks representation of custom signing keys. - - Parameters - ---------- - keys : typing.Sequence[CustomSigningKeyJwk] - An array of custom public signing keys. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[SetCustomSigningKeysResponseContent] - Custom signing keys were successfully created or replaced. - """ - _response = self._client_wrapper.httpx_client.request( - "keys/custom-signing", - method="PUT", - json={ - "keys": convert_and_respect_annotation_metadata( - object_=keys, annotation=typing.Sequence[CustomSigningKeyJwk], direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - SetCustomSigningKeysResponseContent, - parse_obj_as( - type_=SetCustomSigningKeysResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def delete(self, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[None]: - """ - Delete entire jwks representation of custom signing keys. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - "keys/custom-signing", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawCustomSigningClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def get( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetCustomSigningKeysResponseContent]: - """ - Get entire jwks representation of custom signing keys. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetCustomSigningKeysResponseContent] - Custom signing keys were successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - "keys/custom-signing", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetCustomSigningKeysResponseContent, - parse_obj_as( - type_=GetCustomSigningKeysResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def set( - self, *, keys: typing.Sequence[CustomSigningKeyJwk], request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[SetCustomSigningKeysResponseContent]: - """ - Create or replace entire jwks representation of custom signing keys. - - Parameters - ---------- - keys : typing.Sequence[CustomSigningKeyJwk] - An array of custom public signing keys. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[SetCustomSigningKeysResponseContent] - Custom signing keys were successfully created or replaced. - """ - _response = await self._client_wrapper.httpx_client.request( - "keys/custom-signing", - method="PUT", - json={ - "keys": convert_and_respect_annotation_metadata( - object_=keys, annotation=typing.Sequence[CustomSigningKeyJwk], direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - SetCustomSigningKeysResponseContent, - parse_obj_as( - type_=SetCustomSigningKeysResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def delete(self, *, request_options: typing.Optional[RequestOptions] = None) -> AsyncHttpResponse[None]: - """ - Delete entire jwks representation of custom signing keys. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - "keys/custom-signing", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/keys/encryption/__init__.py b/src/auth0/management/keys/encryption/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/keys/encryption/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/keys/encryption/client.py b/src/auth0/management/keys/encryption/client.py deleted file mode 100644 index 318f8c9b..00000000 --- a/src/auth0/management/keys/encryption/client.py +++ /dev/null @@ -1,595 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.pagination import AsyncPager, SyncPager -from ...core.request_options import RequestOptions -from ...types.create_encryption_key_public_wrapping_response_content import ( - CreateEncryptionKeyPublicWrappingResponseContent, -) -from ...types.create_encryption_key_response_content import CreateEncryptionKeyResponseContent -from ...types.create_encryption_key_type import CreateEncryptionKeyType -from ...types.encryption_key import EncryptionKey -from ...types.get_encryption_key_response_content import GetEncryptionKeyResponseContent -from ...types.import_encryption_key_response_content import ImportEncryptionKeyResponseContent -from ...types.list_encryption_key_offset_paginated_response_content import ( - ListEncryptionKeyOffsetPaginatedResponseContent, -) -from .raw_client import AsyncRawEncryptionClient, RawEncryptionClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class EncryptionClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawEncryptionClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawEncryptionClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawEncryptionClient - """ - return self._raw_client - - def list( - self, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - include_totals: typing.Optional[bool] = True, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[EncryptionKey, ListEncryptionKeyOffsetPaginatedResponseContent]: - """ - Retrieve details of all the encryption keys associated with your tenant. - - Parameters - ---------- - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. Default value is 50, maximum value is 100. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[EncryptionKey, ListEncryptionKeyOffsetPaginatedResponseContent] - The keys were successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.keys.encryption.list( - page=1, - per_page=1, - include_totals=True, - ) - for item in response: - yield item - # alternatively, you can paginate page-by-page - for page in response.iter_pages(): - yield page - """ - return self._raw_client.list( - page=page, per_page=per_page, include_totals=include_totals, request_options=request_options - ) - - def create( - self, *, type: CreateEncryptionKeyType, request_options: typing.Optional[RequestOptions] = None - ) -> CreateEncryptionKeyResponseContent: - """ - Create the new, pre-activated encryption key, without the key material. - - Parameters - ---------- - type : CreateEncryptionKeyType - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateEncryptionKeyResponseContent - The key was successfully created. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.keys.encryption.create( - type="customer-provided-root-key", - ) - """ - _response = self._raw_client.create(type=type, request_options=request_options) - return _response.data - - def rekey(self, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Perform rekeying operation on the key hierarchy. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.keys.encryption.rekey() - """ - _response = self._raw_client.rekey(request_options=request_options) - return _response.data - - def get( - self, kid: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetEncryptionKeyResponseContent: - """ - Retrieve details of the encryption key with the given ID. - - Parameters - ---------- - kid : str - Encryption key ID - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetEncryptionKeyResponseContent - The key was successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.keys.encryption.get( - kid="kid", - ) - """ - _response = self._raw_client.get(kid, request_options=request_options) - return _response.data - - def import_( - self, kid: str, *, wrapped_key: str, request_options: typing.Optional[RequestOptions] = None - ) -> ImportEncryptionKeyResponseContent: - """ - Import wrapped key material and activate encryption key. - - Parameters - ---------- - kid : str - Encryption key ID - - wrapped_key : str - Base64 encoded ciphertext of key material wrapped by public wrapping key. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - ImportEncryptionKeyResponseContent - The key was successfully imported. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.keys.encryption.import_( - kid="kid", - wrapped_key="wrapped_key", - ) - """ - _response = self._raw_client.import_(kid, wrapped_key=wrapped_key, request_options=request_options) - return _response.data - - def delete(self, kid: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete the custom provided encryption key with the given ID and move back to using native encryption key. - - Parameters - ---------- - kid : str - Encryption key ID - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.keys.encryption.delete( - kid="kid", - ) - """ - _response = self._raw_client.delete(kid, request_options=request_options) - return _response.data - - def create_public_wrapping_key( - self, kid: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> CreateEncryptionKeyPublicWrappingResponseContent: - """ - Create the public wrapping key to wrap your own encryption key material. - - Parameters - ---------- - kid : str - Encryption key ID - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateEncryptionKeyPublicWrappingResponseContent - The public wrapping key was successfully created. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.keys.encryption.create_public_wrapping_key( - kid="kid", - ) - """ - _response = self._raw_client.create_public_wrapping_key(kid, request_options=request_options) - return _response.data - - -class AsyncEncryptionClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawEncryptionClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawEncryptionClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawEncryptionClient - """ - return self._raw_client - - async def list( - self, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - include_totals: typing.Optional[bool] = True, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[EncryptionKey, ListEncryptionKeyOffsetPaginatedResponseContent]: - """ - Retrieve details of all the encryption keys associated with your tenant. - - Parameters - ---------- - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. Default value is 50, maximum value is 100. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[EncryptionKey, ListEncryptionKeyOffsetPaginatedResponseContent] - The keys were successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.keys.encryption.list( - page=1, - per_page=1, - include_totals=True, - ) - async for item in response: - yield item - - # alternatively, you can paginate page-by-page - async for page in response.iter_pages(): - yield page - - - asyncio.run(main()) - """ - return await self._raw_client.list( - page=page, per_page=per_page, include_totals=include_totals, request_options=request_options - ) - - async def create( - self, *, type: CreateEncryptionKeyType, request_options: typing.Optional[RequestOptions] = None - ) -> CreateEncryptionKeyResponseContent: - """ - Create the new, pre-activated encryption key, without the key material. - - Parameters - ---------- - type : CreateEncryptionKeyType - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateEncryptionKeyResponseContent - The key was successfully created. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.keys.encryption.create( - type="customer-provided-root-key", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create(type=type, request_options=request_options) - return _response.data - - async def rekey(self, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Perform rekeying operation on the key hierarchy. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.keys.encryption.rekey() - - - asyncio.run(main()) - """ - _response = await self._raw_client.rekey(request_options=request_options) - return _response.data - - async def get( - self, kid: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetEncryptionKeyResponseContent: - """ - Retrieve details of the encryption key with the given ID. - - Parameters - ---------- - kid : str - Encryption key ID - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetEncryptionKeyResponseContent - The key was successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.keys.encryption.get( - kid="kid", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.get(kid, request_options=request_options) - return _response.data - - async def import_( - self, kid: str, *, wrapped_key: str, request_options: typing.Optional[RequestOptions] = None - ) -> ImportEncryptionKeyResponseContent: - """ - Import wrapped key material and activate encryption key. - - Parameters - ---------- - kid : str - Encryption key ID - - wrapped_key : str - Base64 encoded ciphertext of key material wrapped by public wrapping key. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - ImportEncryptionKeyResponseContent - The key was successfully imported. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.keys.encryption.import_( - kid="kid", - wrapped_key="wrapped_key", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.import_(kid, wrapped_key=wrapped_key, request_options=request_options) - return _response.data - - async def delete(self, kid: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete the custom provided encryption key with the given ID and move back to using native encryption key. - - Parameters - ---------- - kid : str - Encryption key ID - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.keys.encryption.delete( - kid="kid", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete(kid, request_options=request_options) - return _response.data - - async def create_public_wrapping_key( - self, kid: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> CreateEncryptionKeyPublicWrappingResponseContent: - """ - Create the public wrapping key to wrap your own encryption key material. - - Parameters - ---------- - kid : str - Encryption key ID - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateEncryptionKeyPublicWrappingResponseContent - The public wrapping key was successfully created. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.keys.encryption.create_public_wrapping_key( - kid="kid", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create_public_wrapping_key(kid, request_options=request_options) - return _response.data diff --git a/src/auth0/management/keys/encryption/raw_client.py b/src/auth0/management/keys/encryption/raw_client.py deleted file mode 100644 index f113dae0..00000000 --- a/src/auth0/management/keys/encryption/raw_client.py +++ /dev/null @@ -1,1371 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ...core.api_error import ApiError -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.http_response import AsyncHttpResponse, HttpResponse -from ...core.jsonable_encoder import quote_path_param -from ...core.pagination import AsyncPager, SyncPager -from ...core.parse_error import ParsingError -from ...core.pydantic_utilities import parse_obj_as -from ...core.request_options import RequestOptions -from ...errors.bad_request_error import BadRequestError -from ...errors.conflict_error import ConflictError -from ...errors.forbidden_error import ForbiddenError -from ...errors.not_found_error import NotFoundError -from ...errors.too_many_requests_error import TooManyRequestsError -from ...errors.unauthorized_error import UnauthorizedError -from ...types.create_encryption_key_public_wrapping_response_content import ( - CreateEncryptionKeyPublicWrappingResponseContent, -) -from ...types.create_encryption_key_response_content import CreateEncryptionKeyResponseContent -from ...types.create_encryption_key_type import CreateEncryptionKeyType -from ...types.encryption_key import EncryptionKey -from ...types.get_encryption_key_response_content import GetEncryptionKeyResponseContent -from ...types.import_encryption_key_response_content import ImportEncryptionKeyResponseContent -from ...types.list_encryption_key_offset_paginated_response_content import ( - ListEncryptionKeyOffsetPaginatedResponseContent, -) -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawEncryptionClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - include_totals: typing.Optional[bool] = True, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[EncryptionKey, ListEncryptionKeyOffsetPaginatedResponseContent]: - """ - Retrieve details of all the encryption keys associated with your tenant. - - Parameters - ---------- - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. Default value is 50, maximum value is 100. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[EncryptionKey, ListEncryptionKeyOffsetPaginatedResponseContent] - The keys were successfully retrieved. - """ - page = page if page is not None else 0 - - _response = self._client_wrapper.httpx_client.request( - "keys/encryption", - method="GET", - params={ - "page": page, - "per_page": per_page, - "include_totals": include_totals, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListEncryptionKeyOffsetPaginatedResponseContent, - parse_obj_as( - type_=ListEncryptionKeyOffsetPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.keys - _has_next = len(_items or []) > 0 - _get_next = lambda: self.list( - page=page + 1, - per_page=per_page, - include_totals=include_totals, - request_options=request_options, - ) - return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, *, type: CreateEncryptionKeyType, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[CreateEncryptionKeyResponseContent]: - """ - Create the new, pre-activated encryption key, without the key material. - - Parameters - ---------- - type : CreateEncryptionKeyType - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CreateEncryptionKeyResponseContent] - The key was successfully created. - """ - _response = self._client_wrapper.httpx_client.request( - "keys/encryption", - method="POST", - json={ - "type": type, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateEncryptionKeyResponseContent, - parse_obj_as( - type_=CreateEncryptionKeyResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def rekey(self, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[None]: - """ - Perform rekeying operation on the key hierarchy. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - "keys/encryption/rekey", - method="POST", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def get( - self, kid: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetEncryptionKeyResponseContent]: - """ - Retrieve details of the encryption key with the given ID. - - Parameters - ---------- - kid : str - Encryption key ID - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetEncryptionKeyResponseContent] - The key was successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - f"keys/encryption/{quote_path_param(kid)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetEncryptionKeyResponseContent, - parse_obj_as( - type_=GetEncryptionKeyResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def import_( - self, kid: str, *, wrapped_key: str, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[ImportEncryptionKeyResponseContent]: - """ - Import wrapped key material and activate encryption key. - - Parameters - ---------- - kid : str - Encryption key ID - - wrapped_key : str - Base64 encoded ciphertext of key material wrapped by public wrapping key. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[ImportEncryptionKeyResponseContent] - The key was successfully imported. - """ - _response = self._client_wrapper.httpx_client.request( - f"keys/encryption/{quote_path_param(kid)}", - method="POST", - json={ - "wrapped_key": wrapped_key, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - ImportEncryptionKeyResponseContent, - parse_obj_as( - type_=ImportEncryptionKeyResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def delete(self, kid: str, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[None]: - """ - Delete the custom provided encryption key with the given ID and move back to using native encryption key. - - Parameters - ---------- - kid : str - Encryption key ID - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"keys/encryption/{quote_path_param(kid)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create_public_wrapping_key( - self, kid: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[CreateEncryptionKeyPublicWrappingResponseContent]: - """ - Create the public wrapping key to wrap your own encryption key material. - - Parameters - ---------- - kid : str - Encryption key ID - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CreateEncryptionKeyPublicWrappingResponseContent] - The public wrapping key was successfully created. - """ - _response = self._client_wrapper.httpx_client.request( - f"keys/encryption/{quote_path_param(kid)}/wrapping-key", - method="POST", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateEncryptionKeyPublicWrappingResponseContent, - parse_obj_as( - type_=CreateEncryptionKeyPublicWrappingResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawEncryptionClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - include_totals: typing.Optional[bool] = True, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[EncryptionKey, ListEncryptionKeyOffsetPaginatedResponseContent]: - """ - Retrieve details of all the encryption keys associated with your tenant. - - Parameters - ---------- - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. Default value is 50, maximum value is 100. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[EncryptionKey, ListEncryptionKeyOffsetPaginatedResponseContent] - The keys were successfully retrieved. - """ - page = page if page is not None else 0 - - _response = await self._client_wrapper.httpx_client.request( - "keys/encryption", - method="GET", - params={ - "page": page, - "per_page": per_page, - "include_totals": include_totals, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListEncryptionKeyOffsetPaginatedResponseContent, - parse_obj_as( - type_=ListEncryptionKeyOffsetPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.keys - _has_next = len(_items or []) > 0 - - async def _get_next(): - return await self.list( - page=page + 1, - per_page=per_page, - include_totals=include_totals, - request_options=request_options, - ) - - return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, *, type: CreateEncryptionKeyType, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[CreateEncryptionKeyResponseContent]: - """ - Create the new, pre-activated encryption key, without the key material. - - Parameters - ---------- - type : CreateEncryptionKeyType - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CreateEncryptionKeyResponseContent] - The key was successfully created. - """ - _response = await self._client_wrapper.httpx_client.request( - "keys/encryption", - method="POST", - json={ - "type": type, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateEncryptionKeyResponseContent, - parse_obj_as( - type_=CreateEncryptionKeyResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def rekey(self, *, request_options: typing.Optional[RequestOptions] = None) -> AsyncHttpResponse[None]: - """ - Perform rekeying operation on the key hierarchy. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - "keys/encryption/rekey", - method="POST", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def get( - self, kid: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetEncryptionKeyResponseContent]: - """ - Retrieve details of the encryption key with the given ID. - - Parameters - ---------- - kid : str - Encryption key ID - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetEncryptionKeyResponseContent] - The key was successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - f"keys/encryption/{quote_path_param(kid)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetEncryptionKeyResponseContent, - parse_obj_as( - type_=GetEncryptionKeyResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def import_( - self, kid: str, *, wrapped_key: str, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[ImportEncryptionKeyResponseContent]: - """ - Import wrapped key material and activate encryption key. - - Parameters - ---------- - kid : str - Encryption key ID - - wrapped_key : str - Base64 encoded ciphertext of key material wrapped by public wrapping key. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[ImportEncryptionKeyResponseContent] - The key was successfully imported. - """ - _response = await self._client_wrapper.httpx_client.request( - f"keys/encryption/{quote_path_param(kid)}", - method="POST", - json={ - "wrapped_key": wrapped_key, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - ImportEncryptionKeyResponseContent, - parse_obj_as( - type_=ImportEncryptionKeyResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def delete( - self, kid: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Delete the custom provided encryption key with the given ID and move back to using native encryption key. - - Parameters - ---------- - kid : str - Encryption key ID - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"keys/encryption/{quote_path_param(kid)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create_public_wrapping_key( - self, kid: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[CreateEncryptionKeyPublicWrappingResponseContent]: - """ - Create the public wrapping key to wrap your own encryption key material. - - Parameters - ---------- - kid : str - Encryption key ID - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CreateEncryptionKeyPublicWrappingResponseContent] - The public wrapping key was successfully created. - """ - _response = await self._client_wrapper.httpx_client.request( - f"keys/encryption/{quote_path_param(kid)}/wrapping-key", - method="POST", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateEncryptionKeyPublicWrappingResponseContent, - parse_obj_as( - type_=CreateEncryptionKeyPublicWrappingResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/keys/network_acls/__init__.py b/src/auth0/management/keys/network_acls/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/keys/network_acls/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/keys/network_acls/client.py b/src/auth0/management/keys/network_acls/client.py deleted file mode 100644 index 0e17bee5..00000000 --- a/src/auth0/management/keys/network_acls/client.py +++ /dev/null @@ -1,344 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.request_options import RequestOptions -from ...types.create_keys_network_acls_response_content import CreateKeysNetworkAclsResponseContent -from ...types.get_all_keys_network_acls_response_content import GetAllKeysNetworkAclsResponseContent -from ...types.network_acl_key import NetworkAclKey -from ...types.network_acl_key_algorithm_enum import NetworkAclKeyAlgorithmEnum -from .raw_client import AsyncRawNetworkAclsClient, RawNetworkAclsClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class NetworkAclsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawNetworkAclsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawNetworkAclsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawNetworkAclsClient - """ - return self._raw_client - - def list(self, *, request_options: typing.Optional[RequestOptions] = None) -> GetAllKeysNetworkAclsResponseContent: - """ - Retrieve all keys used to verify HTTP Message Signatures on Network ACL rules, ordered by creation time descending. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetAllKeysNetworkAclsResponseContent - The tenant's Network ACL Keys were successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.keys.network_acls.list() - """ - _response = self._raw_client.list(request_options=request_options) - return _response.data - - def create( - self, - *, - name: str, - alg: NetworkAclKeyAlgorithmEnum, - value: str, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateKeysNetworkAclsResponseContent: - """ - Create a new key used to verify HTTP Message Signatures on Network ACL rules. - - Parameters - ---------- - name : str - Customer-supplied label with no cryptographic meaning. Must be unique across all Network ACL keys for the tenant. - - alg : NetworkAclKeyAlgorithmEnum - - value : str - Base64-encoded raw key material. Constraints on the decoded value depend on the algorithm specified. Currently only HMAC-SHA256 is supported. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateKeysNetworkAclsResponseContent - The Network ACL key was created. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.keys.network_acls.create( - name="name", - alg="hmac-sha256", - value="value", - ) - """ - _response = self._raw_client.create(name=name, alg=alg, value=value, request_options=request_options) - return _response.data - - def get(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> NetworkAclKey: - """ - Retrieve a specific key used to verify HTTP Message Signatures on Network ACL rules. - - Parameters - ---------- - id : str - ID of the Network ACL Key to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - NetworkAclKey - The Network ACL key was successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.keys.network_acls.get( - id="id", - ) - """ - _response = self._raw_client.get(id, request_options=request_options) - return _response.data - - def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete a key used to verify HTTP Message Signatures on Network ACL rules - - Parameters - ---------- - id : str - ID of the Network ACL Key to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.keys.network_acls.delete( - id="id", - ) - """ - _response = self._raw_client.delete(id, request_options=request_options) - return _response.data - - -class AsyncNetworkAclsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawNetworkAclsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawNetworkAclsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawNetworkAclsClient - """ - return self._raw_client - - async def list( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetAllKeysNetworkAclsResponseContent: - """ - Retrieve all keys used to verify HTTP Message Signatures on Network ACL rules, ordered by creation time descending. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetAllKeysNetworkAclsResponseContent - The tenant's Network ACL Keys were successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.keys.network_acls.list() - - - asyncio.run(main()) - """ - _response = await self._raw_client.list(request_options=request_options) - return _response.data - - async def create( - self, - *, - name: str, - alg: NetworkAclKeyAlgorithmEnum, - value: str, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateKeysNetworkAclsResponseContent: - """ - Create a new key used to verify HTTP Message Signatures on Network ACL rules. - - Parameters - ---------- - name : str - Customer-supplied label with no cryptographic meaning. Must be unique across all Network ACL keys for the tenant. - - alg : NetworkAclKeyAlgorithmEnum - - value : str - Base64-encoded raw key material. Constraints on the decoded value depend on the algorithm specified. Currently only HMAC-SHA256 is supported. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateKeysNetworkAclsResponseContent - The Network ACL key was created. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.keys.network_acls.create( - name="name", - alg="hmac-sha256", - value="value", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create(name=name, alg=alg, value=value, request_options=request_options) - return _response.data - - async def get(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> NetworkAclKey: - """ - Retrieve a specific key used to verify HTTP Message Signatures on Network ACL rules. - - Parameters - ---------- - id : str - ID of the Network ACL Key to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - NetworkAclKey - The Network ACL key was successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.keys.network_acls.get( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.get(id, request_options=request_options) - return _response.data - - async def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete a key used to verify HTTP Message Signatures on Network ACL rules - - Parameters - ---------- - id : str - ID of the Network ACL Key to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.keys.network_acls.delete( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete(id, request_options=request_options) - return _response.data diff --git a/src/auth0/management/keys/network_acls/raw_client.py b/src/auth0/management/keys/network_acls/raw_client.py deleted file mode 100644 index 535c6d03..00000000 --- a/src/auth0/management/keys/network_acls/raw_client.py +++ /dev/null @@ -1,832 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ...core.api_error import ApiError -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.http_response import AsyncHttpResponse, HttpResponse -from ...core.jsonable_encoder import quote_path_param -from ...core.parse_error import ParsingError -from ...core.pydantic_utilities import parse_obj_as -from ...core.request_options import RequestOptions -from ...errors.bad_request_error import BadRequestError -from ...errors.conflict_error import ConflictError -from ...errors.forbidden_error import ForbiddenError -from ...errors.not_found_error import NotFoundError -from ...errors.too_many_requests_error import TooManyRequestsError -from ...errors.unauthorized_error import UnauthorizedError -from ...types.create_keys_network_acls_response_content import CreateKeysNetworkAclsResponseContent -from ...types.get_all_keys_network_acls_response_content import GetAllKeysNetworkAclsResponseContent -from ...types.network_acl_key import NetworkAclKey -from ...types.network_acl_key_algorithm_enum import NetworkAclKeyAlgorithmEnum -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawNetworkAclsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetAllKeysNetworkAclsResponseContent]: - """ - Retrieve all keys used to verify HTTP Message Signatures on Network ACL rules, ordered by creation time descending. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetAllKeysNetworkAclsResponseContent] - The tenant's Network ACL Keys were successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - "keys/network-acls", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetAllKeysNetworkAclsResponseContent, - parse_obj_as( - type_=GetAllKeysNetworkAclsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - *, - name: str, - alg: NetworkAclKeyAlgorithmEnum, - value: str, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[CreateKeysNetworkAclsResponseContent]: - """ - Create a new key used to verify HTTP Message Signatures on Network ACL rules. - - Parameters - ---------- - name : str - Customer-supplied label with no cryptographic meaning. Must be unique across all Network ACL keys for the tenant. - - alg : NetworkAclKeyAlgorithmEnum - - value : str - Base64-encoded raw key material. Constraints on the decoded value depend on the algorithm specified. Currently only HMAC-SHA256 is supported. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CreateKeysNetworkAclsResponseContent] - The Network ACL key was created. - """ - _response = self._client_wrapper.httpx_client.request( - "keys/network-acls", - method="POST", - json={ - "name": name, - "alg": alg, - "value": value, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateKeysNetworkAclsResponseContent, - parse_obj_as( - type_=CreateKeysNetworkAclsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def get(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[NetworkAclKey]: - """ - Retrieve a specific key used to verify HTTP Message Signatures on Network ACL rules. - - Parameters - ---------- - id : str - ID of the Network ACL Key to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[NetworkAclKey] - The Network ACL key was successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - f"keys/network-acls/{quote_path_param(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - NetworkAclKey, - parse_obj_as( - type_=NetworkAclKey, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[None]: - """ - Delete a key used to verify HTTP Message Signatures on Network ACL rules - - Parameters - ---------- - id : str - ID of the Network ACL Key to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"keys/network-acls/{quote_path_param(id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawNetworkAclsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetAllKeysNetworkAclsResponseContent]: - """ - Retrieve all keys used to verify HTTP Message Signatures on Network ACL rules, ordered by creation time descending. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetAllKeysNetworkAclsResponseContent] - The tenant's Network ACL Keys were successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - "keys/network-acls", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetAllKeysNetworkAclsResponseContent, - parse_obj_as( - type_=GetAllKeysNetworkAclsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - *, - name: str, - alg: NetworkAclKeyAlgorithmEnum, - value: str, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[CreateKeysNetworkAclsResponseContent]: - """ - Create a new key used to verify HTTP Message Signatures on Network ACL rules. - - Parameters - ---------- - name : str - Customer-supplied label with no cryptographic meaning. Must be unique across all Network ACL keys for the tenant. - - alg : NetworkAclKeyAlgorithmEnum - - value : str - Base64-encoded raw key material. Constraints on the decoded value depend on the algorithm specified. Currently only HMAC-SHA256 is supported. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CreateKeysNetworkAclsResponseContent] - The Network ACL key was created. - """ - _response = await self._client_wrapper.httpx_client.request( - "keys/network-acls", - method="POST", - json={ - "name": name, - "alg": alg, - "value": value, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateKeysNetworkAclsResponseContent, - parse_obj_as( - type_=CreateKeysNetworkAclsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[NetworkAclKey]: - """ - Retrieve a specific key used to verify HTTP Message Signatures on Network ACL rules. - - Parameters - ---------- - id : str - ID of the Network ACL Key to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[NetworkAclKey] - The Network ACL key was successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - f"keys/network-acls/{quote_path_param(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - NetworkAclKey, - parse_obj_as( - type_=NetworkAclKey, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def delete( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Delete a key used to verify HTTP Message Signatures on Network ACL rules - - Parameters - ---------- - id : str - ID of the Network ACL Key to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"keys/network-acls/{quote_path_param(id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/keys/raw_client.py b/src/auth0/management/keys/raw_client.py deleted file mode 100644 index 1c849cd2..00000000 --- a/src/auth0/management/keys/raw_client.py +++ /dev/null @@ -1,13 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper - - -class RawKeysClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - -class AsyncRawKeysClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper diff --git a/src/auth0/management/keys/signing/__init__.py b/src/auth0/management/keys/signing/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/keys/signing/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/keys/signing/client.py b/src/auth0/management/keys/signing/client.py deleted file mode 100644 index b11fe785..00000000 --- a/src/auth0/management/keys/signing/client.py +++ /dev/null @@ -1,313 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.request_options import RequestOptions -from ...types.get_signing_keys_response_content import GetSigningKeysResponseContent -from ...types.revoked_signing_keys_response_content import RevokedSigningKeysResponseContent -from ...types.rotate_signing_keys_response_content import RotateSigningKeysResponseContent -from ...types.signing_keys import SigningKeys -from .raw_client import AsyncRawSigningClient, RawSigningClient - - -class SigningClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawSigningClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawSigningClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawSigningClient - """ - return self._raw_client - - def list(self, *, request_options: typing.Optional[RequestOptions] = None) -> typing.List[SigningKeys]: - """ - Retrieve details of all the application signing keys associated with your tenant. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - typing.List[SigningKeys] - The signing keys were retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.keys.signing.list() - """ - _response = self._raw_client.list(request_options=request_options) - return _response.data - - def rotate(self, *, request_options: typing.Optional[RequestOptions] = None) -> RotateSigningKeysResponseContent: - """ - Rotate the application signing key of your tenant. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - RotateSigningKeysResponseContent - Signing key rotated successfully. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.keys.signing.rotate() - """ - _response = self._raw_client.rotate(request_options=request_options) - return _response.data - - def get( - self, kid: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetSigningKeysResponseContent: - """ - Retrieve details of the application signing key with the given ID. - - Parameters - ---------- - kid : str - Key id of the key to retrieve - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetSigningKeysResponseContent - The signing keys were retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.keys.signing.get( - kid="kid", - ) - """ - _response = self._raw_client.get(kid, request_options=request_options) - return _response.data - - def revoke( - self, kid: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> RevokedSigningKeysResponseContent: - """ - Revoke the application signing key with the given ID. - - Parameters - ---------- - kid : str - Key id of the key to revoke - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - RevokedSigningKeysResponseContent - Signing key revoked successfully. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.keys.signing.revoke( - kid="kid", - ) - """ - _response = self._raw_client.revoke(kid, request_options=request_options) - return _response.data - - -class AsyncSigningClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawSigningClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawSigningClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawSigningClient - """ - return self._raw_client - - async def list(self, *, request_options: typing.Optional[RequestOptions] = None) -> typing.List[SigningKeys]: - """ - Retrieve details of all the application signing keys associated with your tenant. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - typing.List[SigningKeys] - The signing keys were retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.keys.signing.list() - - - asyncio.run(main()) - """ - _response = await self._raw_client.list(request_options=request_options) - return _response.data - - async def rotate( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> RotateSigningKeysResponseContent: - """ - Rotate the application signing key of your tenant. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - RotateSigningKeysResponseContent - Signing key rotated successfully. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.keys.signing.rotate() - - - asyncio.run(main()) - """ - _response = await self._raw_client.rotate(request_options=request_options) - return _response.data - - async def get( - self, kid: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetSigningKeysResponseContent: - """ - Retrieve details of the application signing key with the given ID. - - Parameters - ---------- - kid : str - Key id of the key to retrieve - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetSigningKeysResponseContent - The signing keys were retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.keys.signing.get( - kid="kid", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.get(kid, request_options=request_options) - return _response.data - - async def revoke( - self, kid: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> RevokedSigningKeysResponseContent: - """ - Revoke the application signing key with the given ID. - - Parameters - ---------- - kid : str - Key id of the key to revoke - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - RevokedSigningKeysResponseContent - Signing key revoked successfully. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.keys.signing.revoke( - kid="kid", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.revoke(kid, request_options=request_options) - return _response.data diff --git a/src/auth0/management/keys/signing/raw_client.py b/src/auth0/management/keys/signing/raw_client.py deleted file mode 100644 index 302efcf3..00000000 --- a/src/auth0/management/keys/signing/raw_client.py +++ /dev/null @@ -1,716 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ...core.api_error import ApiError -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.http_response import AsyncHttpResponse, HttpResponse -from ...core.jsonable_encoder import quote_path_param -from ...core.parse_error import ParsingError -from ...core.pydantic_utilities import parse_obj_as -from ...core.request_options import RequestOptions -from ...errors.bad_request_error import BadRequestError -from ...errors.forbidden_error import ForbiddenError -from ...errors.not_found_error import NotFoundError -from ...errors.too_many_requests_error import TooManyRequestsError -from ...errors.unauthorized_error import UnauthorizedError -from ...types.get_signing_keys_response_content import GetSigningKeysResponseContent -from ...types.revoked_signing_keys_response_content import RevokedSigningKeysResponseContent -from ...types.rotate_signing_keys_response_content import RotateSigningKeysResponseContent -from ...types.signing_keys import SigningKeys -from pydantic import ValidationError - - -class RawSigningClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[typing.List[SigningKeys]]: - """ - Retrieve details of all the application signing keys associated with your tenant. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[typing.List[SigningKeys]] - The signing keys were retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - "keys/signing", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - typing.List[SigningKeys], - parse_obj_as( - type_=typing.List[SigningKeys], # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def rotate( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[RotateSigningKeysResponseContent]: - """ - Rotate the application signing key of your tenant. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[RotateSigningKeysResponseContent] - Signing key rotated successfully. - """ - _response = self._client_wrapper.httpx_client.request( - "keys/signing/rotate", - method="POST", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - RotateSigningKeysResponseContent, - parse_obj_as( - type_=RotateSigningKeysResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def get( - self, kid: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetSigningKeysResponseContent]: - """ - Retrieve details of the application signing key with the given ID. - - Parameters - ---------- - kid : str - Key id of the key to retrieve - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetSigningKeysResponseContent] - The signing keys were retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - f"keys/signing/{quote_path_param(kid)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetSigningKeysResponseContent, - parse_obj_as( - type_=GetSigningKeysResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def revoke( - self, kid: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[RevokedSigningKeysResponseContent]: - """ - Revoke the application signing key with the given ID. - - Parameters - ---------- - kid : str - Key id of the key to revoke - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[RevokedSigningKeysResponseContent] - Signing key revoked successfully. - """ - _response = self._client_wrapper.httpx_client.request( - f"keys/signing/{quote_path_param(kid)}/revoke", - method="PUT", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - RevokedSigningKeysResponseContent, - parse_obj_as( - type_=RevokedSigningKeysResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawSigningClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[typing.List[SigningKeys]]: - """ - Retrieve details of all the application signing keys associated with your tenant. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[typing.List[SigningKeys]] - The signing keys were retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - "keys/signing", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - typing.List[SigningKeys], - parse_obj_as( - type_=typing.List[SigningKeys], # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def rotate( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[RotateSigningKeysResponseContent]: - """ - Rotate the application signing key of your tenant. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[RotateSigningKeysResponseContent] - Signing key rotated successfully. - """ - _response = await self._client_wrapper.httpx_client.request( - "keys/signing/rotate", - method="POST", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - RotateSigningKeysResponseContent, - parse_obj_as( - type_=RotateSigningKeysResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def get( - self, kid: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetSigningKeysResponseContent]: - """ - Retrieve details of the application signing key with the given ID. - - Parameters - ---------- - kid : str - Key id of the key to retrieve - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetSigningKeysResponseContent] - The signing keys were retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - f"keys/signing/{quote_path_param(kid)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetSigningKeysResponseContent, - parse_obj_as( - type_=GetSigningKeysResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def revoke( - self, kid: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[RevokedSigningKeysResponseContent]: - """ - Revoke the application signing key with the given ID. - - Parameters - ---------- - kid : str - Key id of the key to revoke - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[RevokedSigningKeysResponseContent] - Signing key revoked successfully. - """ - _response = await self._client_wrapper.httpx_client.request( - f"keys/signing/{quote_path_param(kid)}/revoke", - method="PUT", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - RevokedSigningKeysResponseContent, - parse_obj_as( - type_=RevokedSigningKeysResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/log_streams/__init__.py b/src/auth0/management/log_streams/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/log_streams/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/log_streams/client.py b/src/auth0/management/log_streams/client.py deleted file mode 100644 index 831016dd..00000000 --- a/src/auth0/management/log_streams/client.py +++ /dev/null @@ -1,1455 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.request_options import RequestOptions -from ..types.create_log_stream_request_content import CreateLogStreamRequestContent -from ..types.create_log_stream_response_content import CreateLogStreamResponseContent -from ..types.get_log_stream_response_content import GetLogStreamResponseContent -from ..types.log_stream_filter import LogStreamFilter -from ..types.log_stream_pii_config import LogStreamPiiConfig -from ..types.log_stream_response_schema import LogStreamResponseSchema -from ..types.log_stream_sink_patch import LogStreamSinkPatch -from ..types.log_stream_status_enum import LogStreamStatusEnum -from ..types.update_log_stream_response_content import UpdateLogStreamResponseContent -from .raw_client import AsyncRawLogStreamsClient, RawLogStreamsClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class LogStreamsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawLogStreamsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawLogStreamsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawLogStreamsClient - """ - return self._raw_client - - def list(self, *, request_options: typing.Optional[RequestOptions] = None) -> typing.List[LogStreamResponseSchema]: - """ - Retrieve details on [log streams](https://auth0.com/docs/logs/streams). - - **Sample Response** - - ```json - [{ - "id": "string", - "name": "string", - "type": "eventbridge", - "status": "active|paused|suspended", - "sink": { - "awsAccountId": "string", - "awsRegion": "string", - "awsPartnerEventSource": "string" - } - }, { - "id": "string", - "name": "string", - "type": "http", - "status": "active|paused|suspended", - "sink": { - "httpContentFormat": "JSONLINES|JSONARRAY", - "httpContentType": "string", - "httpEndpoint": "string", - "httpAuthorization": "string" - } - }, - { - "id": "string", - "name": "string", - "type": "eventgrid", - "status": "active|paused|suspended", - "sink": { - "azureSubscriptionId": "string", - "azureResourceGroup": "string", - "azureRegion": "string", - "azurePartnerTopic": "string" - } - }, - { - "id": "string", - "name": "string", - "type": "splunk", - "status": "active|paused|suspended", - "sink": { - "splunkDomain": "string", - "splunkToken": "string", - "splunkPort": "string", - "splunkSecure": "boolean" - } - }, - { - "id": "string", - "name": "string", - "type": "sumo", - "status": "active|paused|suspended", - "sink": { - "sumoSourceAddress": "string" - } - }, - { - "id": "string", - "name": "string", - "type": "datadog", - "status": "active|paused|suspended", - "sink": { - "datadogRegion": "string", - "datadogApiKey": "string" - } - }] - ``` - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - typing.List[LogStreamResponseSchema] - Returning log streams - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.log_streams.list() - """ - _response = self._raw_client.list(request_options=request_options) - return _response.data - - def create( - self, *, request: CreateLogStreamRequestContent, request_options: typing.Optional[RequestOptions] = None - ) -> CreateLogStreamResponseContent: - """ - Create a log stream. - - **Log Stream Types** - - The `type` of log stream being created determines the properties required in the `sink` payload. - - **HTTP Stream** - - For an `http` Stream, the `sink` properties are listed in the payload below. - - **Request:** - ```json - { - "name": "string", - "type": "http", - "sink": { - "httpEndpoint": "string", - "httpContentType": "string", - "httpContentFormat": "JSONLINES|JSONARRAY", - "httpAuthorization": "string" - } - } - ``` - - **Response:** - ```json - { - "id": "string", - "name": "string", - "type": "http", - "status": "active", - "sink": { - "httpEndpoint": "string", - "httpContentType": "string", - "httpContentFormat": "JSONLINES|JSONARRAY", - "httpAuthorization": "string" - } - } - ``` - - **Amazon EventBridge Stream** - - For an `eventbridge` Stream, the `sink` properties are listed in the payload below. - - **Request:** - ```json - { - "name": "string", - "type": "eventbridge", - "sink": { - "awsRegion": "string", - "awsAccountId": "string" - } - } - ``` - - The response will include an additional field `awsPartnerEventSource` in the `sink`: - - **Response:** - ```json - { - "id": "string", - "name": "string", - "type": "eventbridge", - "status": "active", - "sink": { - "awsAccountId": "string", - "awsRegion": "string", - "awsPartnerEventSource": "string" - } - } - ``` - - **Azure Event Grid Stream** - - For an `Azure Event Grid` Stream, the `sink` properties are listed in the payload below. - - **Request:** - ```json - { - "name": "string", - "type": "eventgrid", - "sink": { - "azureSubscriptionId": "string", - "azureResourceGroup": "string", - "azureRegion": "string" - } - } - ``` - - **Response:** - ```json - { - "id": "string", - "name": "string", - "type": "http", - "status": "active", - "sink": { - "azureSubscriptionId": "string", - "azureResourceGroup": "string", - "azureRegion": "string", - "azurePartnerTopic": "string" - } - } - ``` - - **Datadog Stream** - - For a `Datadog` Stream, the `sink` properties are listed in the payload below. - - **Request:** - ```json - { - "name": "string", - "type": "datadog", - "sink": { - "datadogRegion": "string", - "datadogApiKey": "string" - } - } - ``` - - **Response:** - ```json - { - "id": "string", - "name": "string", - "type": "datadog", - "status": "active", - "sink": { - "datadogRegion": "string", - "datadogApiKey": "string" - } - } - ``` - - **Splunk Stream** - - For a `Splunk` Stream, the `sink` properties are listed in the payload below. - - **Request:** - ```json - { - "name": "string", - "type": "splunk", - "sink": { - "splunkDomain": "string", - "splunkToken": "string", - "splunkPort": "string", - "splunkSecure": "boolean" - } - } - ``` - - **Response:** - ```json - { - "id": "string", - "name": "string", - "type": "splunk", - "status": "active", - "sink": { - "splunkDomain": "string", - "splunkToken": "string", - "splunkPort": "string", - "splunkSecure": "boolean" - } - } - ``` - - **Sumo Logic Stream** - - For a `Sumo Logic` Stream, the `sink` properties are listed in the payload below. - - **Request:** - ```json - { - "name": "string", - "type": "sumo", - "sink": { - "sumoSourceAddress": "string" - } - } - ``` - - **Response:** - ```json - { - "id": "string", - "name": "string", - "type": "sumo", - "status": "active", - "sink": { - "sumoSourceAddress": "string" - } - } - ``` - - Parameters - ---------- - request : CreateLogStreamRequestContent - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateLogStreamResponseContent - Log stream created - - Examples - -------- - from auth0 import Auth0, CreateLogStreamHttpRequestBody, LogStreamHttpSink - - client = Auth0( - token="YOUR_TOKEN", - ) - client.log_streams.create( - request=CreateLogStreamHttpRequestBody( - type="http", - sink=LogStreamHttpSink( - http_endpoint="httpEndpoint", - ), - ), - ) - """ - _response = self._raw_client.create(request=request, request_options=request_options) - return _response.data - - def get(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> GetLogStreamResponseContent: - """ - Retrieve a log stream configuration and status. - - **Sample responses** - - **Amazon EventBridge Log Stream** - - ```json - { - "id": "string", - "name": "string", - "type": "eventbridge", - "status": "active|paused|suspended", - "sink": { - "awsAccountId": "string", - "awsRegion": "string", - "awsPartnerEventSource": "string" - } - } - ``` - - **HTTP Log Stream** - - ```json - { - "id": "string", - "name": "string", - "type": "http", - "status": "active|paused|suspended", - "sink": { - "httpContentFormat": "JSONLINES|JSONARRAY", - "httpContentType": "string", - "httpEndpoint": "string", - "httpAuthorization": "string" - } - } - ``` - - **Datadog Log Stream** - - ```json - { - "id": "string", - "name": "string", - "type": "datadog", - "status": "active|paused|suspended", - "sink": { - "datadogRegion": "string", - "datadogApiKey": "string" - } - } - ``` - - **Mixpanel** - - **Request:** - - ```json - { - "name": "string", - "type": "mixpanel", - "sink": { - "mixpanelRegion": "string", - "mixpanelProjectId": "string", - "mixpanelServiceAccountUsername": "string", - "mixpanelServiceAccountPassword": "string" - } - } - ``` - - **Response:** - - ```json - { - "id": "string", - "name": "string", - "type": "mixpanel", - "status": "active", - "sink": { - "mixpanelRegion": "string", - "mixpanelProjectId": "string", - "mixpanelServiceAccountUsername": "string", - "mixpanelServiceAccountPassword": "string" - } - } - ``` - - **Segment** - - **Request:** - - ```json - { - "name": "string", - "type": "segment", - "sink": { - "segmentWriteKey": "string" - } - } - ``` - - **Response:** - - ```json - { - "id": "string", - "name": "string", - "type": "segment", - "status": "active", - "sink": { - "segmentWriteKey": "string" - } - } - ``` - - **Splunk Log Stream** - - ```json - { - "id": "string", - "name": "string", - "type": "splunk", - "status": "active|paused|suspended", - "sink": { - "splunkDomain": "string", - "splunkToken": "string", - "splunkPort": "string", - "splunkSecure": "boolean" - } - } - ``` - - **Sumo Logic Log Stream** - - ```json - { - "id": "string", - "name": "string", - "type": "sumo", - "status": "active|paused|suspended", - "sink": { - "sumoSourceAddress": "string" - } - } - ``` - - **Status** - - The `status` of a log stream maybe any of the following: - - 1. `active` - Stream is currently enabled. - 2. `paused` - Stream is currently user disabled and will not attempt log delivery. - 3. `suspended` - Stream is currently disabled because of errors and will not attempt log delivery. - - Parameters - ---------- - id : str - The id of the log stream to get - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetLogStreamResponseContent - Returning log stream. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.log_streams.get( - id="id", - ) - """ - _response = self._raw_client.get(id, request_options=request_options) - return _response.data - - def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete a log stream. - - Parameters - ---------- - id : str - The id of the log stream to delete - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.log_streams.delete( - id="id", - ) - """ - _response = self._raw_client.delete(id, request_options=request_options) - return _response.data - - def update( - self, - id: str, - *, - name: typing.Optional[str] = OMIT, - status: typing.Optional[LogStreamStatusEnum] = OMIT, - is_priority: typing.Optional[bool] = OMIT, - filters: typing.Optional[typing.Sequence[LogStreamFilter]] = OMIT, - pii_config: typing.Optional[LogStreamPiiConfig] = OMIT, - sink: typing.Optional[LogStreamSinkPatch] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateLogStreamResponseContent: - """ - Update a log stream. - - **Examples of how to use the PATCH endpoint.** - - The following fields may be updated in a PATCH operation: - - - name - - status - - sink - - Note: For log streams of type `eventbridge` and `eventgrid`, updating the `sink` is not permitted. - - **Update the status of a log stream** - - ```json - { - "status": "active|paused" - } - ``` - - **Update the name of a log stream** - - ```json - { - "name": "string" - } - ``` - - **Update the sink properties of a stream of type `http`** - - ```json - { - "sink": { - "httpEndpoint": "string", - "httpContentType": "string", - "httpContentFormat": "JSONARRAY|JSONLINES", - "httpAuthorization": "string" - } - } - ``` - - **Update the sink properties of a stream of type `datadog`** - - ```json - { - "sink": { - "datadogRegion": "string", - "datadogApiKey": "string" - } - } - ``` - - **Update the sink properties of a stream of type `splunk`** - - ```json - { - "sink": { - "splunkDomain": "string", - "splunkToken": "string", - "splunkPort": "string", - "splunkSecure": "boolean" - } - } - ``` - - **Update the sink properties of a stream of type `sumo`** - - ```json - { - "sink": { - "sumoSourceAddress": "string" - } - } - ``` - - Parameters - ---------- - id : str - The id of the log stream to get - - name : typing.Optional[str] - log stream name - - status : typing.Optional[LogStreamStatusEnum] - - is_priority : typing.Optional[bool] - True for priority log streams, false for non-priority - - filters : typing.Optional[typing.Sequence[LogStreamFilter]] - Only logs events matching these filters will be delivered by the stream. If omitted or empty, all events will be delivered. - - pii_config : typing.Optional[LogStreamPiiConfig] - - sink : typing.Optional[LogStreamSinkPatch] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateLogStreamResponseContent - Log stream updated - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.log_streams.update( - id="id", - ) - """ - _response = self._raw_client.update( - id, - name=name, - status=status, - is_priority=is_priority, - filters=filters, - pii_config=pii_config, - sink=sink, - request_options=request_options, - ) - return _response.data - - -class AsyncLogStreamsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawLogStreamsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawLogStreamsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawLogStreamsClient - """ - return self._raw_client - - async def list( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> typing.List[LogStreamResponseSchema]: - """ - Retrieve details on [log streams](https://auth0.com/docs/logs/streams). - - **Sample Response** - - ```json - [{ - "id": "string", - "name": "string", - "type": "eventbridge", - "status": "active|paused|suspended", - "sink": { - "awsAccountId": "string", - "awsRegion": "string", - "awsPartnerEventSource": "string" - } - }, { - "id": "string", - "name": "string", - "type": "http", - "status": "active|paused|suspended", - "sink": { - "httpContentFormat": "JSONLINES|JSONARRAY", - "httpContentType": "string", - "httpEndpoint": "string", - "httpAuthorization": "string" - } - }, - { - "id": "string", - "name": "string", - "type": "eventgrid", - "status": "active|paused|suspended", - "sink": { - "azureSubscriptionId": "string", - "azureResourceGroup": "string", - "azureRegion": "string", - "azurePartnerTopic": "string" - } - }, - { - "id": "string", - "name": "string", - "type": "splunk", - "status": "active|paused|suspended", - "sink": { - "splunkDomain": "string", - "splunkToken": "string", - "splunkPort": "string", - "splunkSecure": "boolean" - } - }, - { - "id": "string", - "name": "string", - "type": "sumo", - "status": "active|paused|suspended", - "sink": { - "sumoSourceAddress": "string" - } - }, - { - "id": "string", - "name": "string", - "type": "datadog", - "status": "active|paused|suspended", - "sink": { - "datadogRegion": "string", - "datadogApiKey": "string" - } - }] - ``` - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - typing.List[LogStreamResponseSchema] - Returning log streams - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.log_streams.list() - - - asyncio.run(main()) - """ - _response = await self._raw_client.list(request_options=request_options) - return _response.data - - async def create( - self, *, request: CreateLogStreamRequestContent, request_options: typing.Optional[RequestOptions] = None - ) -> CreateLogStreamResponseContent: - """ - Create a log stream. - - **Log Stream Types** - - The `type` of log stream being created determines the properties required in the `sink` payload. - - **HTTP Stream** - - For an `http` Stream, the `sink` properties are listed in the payload below. - - **Request:** - ```json - { - "name": "string", - "type": "http", - "sink": { - "httpEndpoint": "string", - "httpContentType": "string", - "httpContentFormat": "JSONLINES|JSONARRAY", - "httpAuthorization": "string" - } - } - ``` - - **Response:** - ```json - { - "id": "string", - "name": "string", - "type": "http", - "status": "active", - "sink": { - "httpEndpoint": "string", - "httpContentType": "string", - "httpContentFormat": "JSONLINES|JSONARRAY", - "httpAuthorization": "string" - } - } - ``` - - **Amazon EventBridge Stream** - - For an `eventbridge` Stream, the `sink` properties are listed in the payload below. - - **Request:** - ```json - { - "name": "string", - "type": "eventbridge", - "sink": { - "awsRegion": "string", - "awsAccountId": "string" - } - } - ``` - - The response will include an additional field `awsPartnerEventSource` in the `sink`: - - **Response:** - ```json - { - "id": "string", - "name": "string", - "type": "eventbridge", - "status": "active", - "sink": { - "awsAccountId": "string", - "awsRegion": "string", - "awsPartnerEventSource": "string" - } - } - ``` - - **Azure Event Grid Stream** - - For an `Azure Event Grid` Stream, the `sink` properties are listed in the payload below. - - **Request:** - ```json - { - "name": "string", - "type": "eventgrid", - "sink": { - "azureSubscriptionId": "string", - "azureResourceGroup": "string", - "azureRegion": "string" - } - } - ``` - - **Response:** - ```json - { - "id": "string", - "name": "string", - "type": "http", - "status": "active", - "sink": { - "azureSubscriptionId": "string", - "azureResourceGroup": "string", - "azureRegion": "string", - "azurePartnerTopic": "string" - } - } - ``` - - **Datadog Stream** - - For a `Datadog` Stream, the `sink` properties are listed in the payload below. - - **Request:** - ```json - { - "name": "string", - "type": "datadog", - "sink": { - "datadogRegion": "string", - "datadogApiKey": "string" - } - } - ``` - - **Response:** - ```json - { - "id": "string", - "name": "string", - "type": "datadog", - "status": "active", - "sink": { - "datadogRegion": "string", - "datadogApiKey": "string" - } - } - ``` - - **Splunk Stream** - - For a `Splunk` Stream, the `sink` properties are listed in the payload below. - - **Request:** - ```json - { - "name": "string", - "type": "splunk", - "sink": { - "splunkDomain": "string", - "splunkToken": "string", - "splunkPort": "string", - "splunkSecure": "boolean" - } - } - ``` - - **Response:** - ```json - { - "id": "string", - "name": "string", - "type": "splunk", - "status": "active", - "sink": { - "splunkDomain": "string", - "splunkToken": "string", - "splunkPort": "string", - "splunkSecure": "boolean" - } - } - ``` - - **Sumo Logic Stream** - - For a `Sumo Logic` Stream, the `sink` properties are listed in the payload below. - - **Request:** - ```json - { - "name": "string", - "type": "sumo", - "sink": { - "sumoSourceAddress": "string" - } - } - ``` - - **Response:** - ```json - { - "id": "string", - "name": "string", - "type": "sumo", - "status": "active", - "sink": { - "sumoSourceAddress": "string" - } - } - ``` - - Parameters - ---------- - request : CreateLogStreamRequestContent - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateLogStreamResponseContent - Log stream created - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0, CreateLogStreamHttpRequestBody, LogStreamHttpSink - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.log_streams.create( - request=CreateLogStreamHttpRequestBody( - type="http", - sink=LogStreamHttpSink( - http_endpoint="httpEndpoint", - ), - ), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create(request=request, request_options=request_options) - return _response.data - - async def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetLogStreamResponseContent: - """ - Retrieve a log stream configuration and status. - - **Sample responses** - - **Amazon EventBridge Log Stream** - - ```json - { - "id": "string", - "name": "string", - "type": "eventbridge", - "status": "active|paused|suspended", - "sink": { - "awsAccountId": "string", - "awsRegion": "string", - "awsPartnerEventSource": "string" - } - } - ``` - - **HTTP Log Stream** - - ```json - { - "id": "string", - "name": "string", - "type": "http", - "status": "active|paused|suspended", - "sink": { - "httpContentFormat": "JSONLINES|JSONARRAY", - "httpContentType": "string", - "httpEndpoint": "string", - "httpAuthorization": "string" - } - } - ``` - - **Datadog Log Stream** - - ```json - { - "id": "string", - "name": "string", - "type": "datadog", - "status": "active|paused|suspended", - "sink": { - "datadogRegion": "string", - "datadogApiKey": "string" - } - } - ``` - - **Mixpanel** - - **Request:** - - ```json - { - "name": "string", - "type": "mixpanel", - "sink": { - "mixpanelRegion": "string", - "mixpanelProjectId": "string", - "mixpanelServiceAccountUsername": "string", - "mixpanelServiceAccountPassword": "string" - } - } - ``` - - **Response:** - - ```json - { - "id": "string", - "name": "string", - "type": "mixpanel", - "status": "active", - "sink": { - "mixpanelRegion": "string", - "mixpanelProjectId": "string", - "mixpanelServiceAccountUsername": "string", - "mixpanelServiceAccountPassword": "string" - } - } - ``` - - **Segment** - - **Request:** - - ```json - { - "name": "string", - "type": "segment", - "sink": { - "segmentWriteKey": "string" - } - } - ``` - - **Response:** - - ```json - { - "id": "string", - "name": "string", - "type": "segment", - "status": "active", - "sink": { - "segmentWriteKey": "string" - } - } - ``` - - **Splunk Log Stream** - - ```json - { - "id": "string", - "name": "string", - "type": "splunk", - "status": "active|paused|suspended", - "sink": { - "splunkDomain": "string", - "splunkToken": "string", - "splunkPort": "string", - "splunkSecure": "boolean" - } - } - ``` - - **Sumo Logic Log Stream** - - ```json - { - "id": "string", - "name": "string", - "type": "sumo", - "status": "active|paused|suspended", - "sink": { - "sumoSourceAddress": "string" - } - } - ``` - - **Status** - - The `status` of a log stream maybe any of the following: - - 1. `active` - Stream is currently enabled. - 2. `paused` - Stream is currently user disabled and will not attempt log delivery. - 3. `suspended` - Stream is currently disabled because of errors and will not attempt log delivery. - - Parameters - ---------- - id : str - The id of the log stream to get - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetLogStreamResponseContent - Returning log stream. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.log_streams.get( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.get(id, request_options=request_options) - return _response.data - - async def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete a log stream. - - Parameters - ---------- - id : str - The id of the log stream to delete - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.log_streams.delete( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete(id, request_options=request_options) - return _response.data - - async def update( - self, - id: str, - *, - name: typing.Optional[str] = OMIT, - status: typing.Optional[LogStreamStatusEnum] = OMIT, - is_priority: typing.Optional[bool] = OMIT, - filters: typing.Optional[typing.Sequence[LogStreamFilter]] = OMIT, - pii_config: typing.Optional[LogStreamPiiConfig] = OMIT, - sink: typing.Optional[LogStreamSinkPatch] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateLogStreamResponseContent: - """ - Update a log stream. - - **Examples of how to use the PATCH endpoint.** - - The following fields may be updated in a PATCH operation: - - - name - - status - - sink - - Note: For log streams of type `eventbridge` and `eventgrid`, updating the `sink` is not permitted. - - **Update the status of a log stream** - - ```json - { - "status": "active|paused" - } - ``` - - **Update the name of a log stream** - - ```json - { - "name": "string" - } - ``` - - **Update the sink properties of a stream of type `http`** - - ```json - { - "sink": { - "httpEndpoint": "string", - "httpContentType": "string", - "httpContentFormat": "JSONARRAY|JSONLINES", - "httpAuthorization": "string" - } - } - ``` - - **Update the sink properties of a stream of type `datadog`** - - ```json - { - "sink": { - "datadogRegion": "string", - "datadogApiKey": "string" - } - } - ``` - - **Update the sink properties of a stream of type `splunk`** - - ```json - { - "sink": { - "splunkDomain": "string", - "splunkToken": "string", - "splunkPort": "string", - "splunkSecure": "boolean" - } - } - ``` - - **Update the sink properties of a stream of type `sumo`** - - ```json - { - "sink": { - "sumoSourceAddress": "string" - } - } - ``` - - Parameters - ---------- - id : str - The id of the log stream to get - - name : typing.Optional[str] - log stream name - - status : typing.Optional[LogStreamStatusEnum] - - is_priority : typing.Optional[bool] - True for priority log streams, false for non-priority - - filters : typing.Optional[typing.Sequence[LogStreamFilter]] - Only logs events matching these filters will be delivered by the stream. If omitted or empty, all events will be delivered. - - pii_config : typing.Optional[LogStreamPiiConfig] - - sink : typing.Optional[LogStreamSinkPatch] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateLogStreamResponseContent - Log stream updated - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.log_streams.update( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.update( - id, - name=name, - status=status, - is_priority=is_priority, - filters=filters, - pii_config=pii_config, - sink=sink, - request_options=request_options, - ) - return _response.data diff --git a/src/auth0/management/log_streams/raw_client.py b/src/auth0/management/log_streams/raw_client.py deleted file mode 100644 index 15244352..00000000 --- a/src/auth0/management/log_streams/raw_client.py +++ /dev/null @@ -1,2002 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ..core.api_error import ApiError -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.http_response import AsyncHttpResponse, HttpResponse -from ..core.jsonable_encoder import quote_path_param -from ..core.parse_error import ParsingError -from ..core.pydantic_utilities import parse_obj_as -from ..core.request_options import RequestOptions -from ..core.serialization import convert_and_respect_annotation_metadata -from ..errors.bad_request_error import BadRequestError -from ..errors.conflict_error import ConflictError -from ..errors.forbidden_error import ForbiddenError -from ..errors.not_found_error import NotFoundError -from ..errors.too_many_requests_error import TooManyRequestsError -from ..errors.unauthorized_error import UnauthorizedError -from ..types.create_log_stream_request_content import CreateLogStreamRequestContent -from ..types.create_log_stream_response_content import CreateLogStreamResponseContent -from ..types.get_log_stream_response_content import GetLogStreamResponseContent -from ..types.log_stream_filter import LogStreamFilter -from ..types.log_stream_pii_config import LogStreamPiiConfig -from ..types.log_stream_response_schema import LogStreamResponseSchema -from ..types.log_stream_sink_patch import LogStreamSinkPatch -from ..types.log_stream_status_enum import LogStreamStatusEnum -from ..types.update_log_stream_response_content import UpdateLogStreamResponseContent -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawLogStreamsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[typing.List[LogStreamResponseSchema]]: - """ - Retrieve details on [log streams](https://auth0.com/docs/logs/streams). - - **Sample Response** - - ```json - [{ - "id": "string", - "name": "string", - "type": "eventbridge", - "status": "active|paused|suspended", - "sink": { - "awsAccountId": "string", - "awsRegion": "string", - "awsPartnerEventSource": "string" - } - }, { - "id": "string", - "name": "string", - "type": "http", - "status": "active|paused|suspended", - "sink": { - "httpContentFormat": "JSONLINES|JSONARRAY", - "httpContentType": "string", - "httpEndpoint": "string", - "httpAuthorization": "string" - } - }, - { - "id": "string", - "name": "string", - "type": "eventgrid", - "status": "active|paused|suspended", - "sink": { - "azureSubscriptionId": "string", - "azureResourceGroup": "string", - "azureRegion": "string", - "azurePartnerTopic": "string" - } - }, - { - "id": "string", - "name": "string", - "type": "splunk", - "status": "active|paused|suspended", - "sink": { - "splunkDomain": "string", - "splunkToken": "string", - "splunkPort": "string", - "splunkSecure": "boolean" - } - }, - { - "id": "string", - "name": "string", - "type": "sumo", - "status": "active|paused|suspended", - "sink": { - "sumoSourceAddress": "string" - } - }, - { - "id": "string", - "name": "string", - "type": "datadog", - "status": "active|paused|suspended", - "sink": { - "datadogRegion": "string", - "datadogApiKey": "string" - } - }] - ``` - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[typing.List[LogStreamResponseSchema]] - Returning log streams - """ - _response = self._client_wrapper.httpx_client.request( - "log-streams", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - typing.List[LogStreamResponseSchema], - parse_obj_as( - type_=typing.List[LogStreamResponseSchema], # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, *, request: CreateLogStreamRequestContent, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[CreateLogStreamResponseContent]: - """ - Create a log stream. - - **Log Stream Types** - - The `type` of log stream being created determines the properties required in the `sink` payload. - - **HTTP Stream** - - For an `http` Stream, the `sink` properties are listed in the payload below. - - **Request:** - ```json - { - "name": "string", - "type": "http", - "sink": { - "httpEndpoint": "string", - "httpContentType": "string", - "httpContentFormat": "JSONLINES|JSONARRAY", - "httpAuthorization": "string" - } - } - ``` - - **Response:** - ```json - { - "id": "string", - "name": "string", - "type": "http", - "status": "active", - "sink": { - "httpEndpoint": "string", - "httpContentType": "string", - "httpContentFormat": "JSONLINES|JSONARRAY", - "httpAuthorization": "string" - } - } - ``` - - **Amazon EventBridge Stream** - - For an `eventbridge` Stream, the `sink` properties are listed in the payload below. - - **Request:** - ```json - { - "name": "string", - "type": "eventbridge", - "sink": { - "awsRegion": "string", - "awsAccountId": "string" - } - } - ``` - - The response will include an additional field `awsPartnerEventSource` in the `sink`: - - **Response:** - ```json - { - "id": "string", - "name": "string", - "type": "eventbridge", - "status": "active", - "sink": { - "awsAccountId": "string", - "awsRegion": "string", - "awsPartnerEventSource": "string" - } - } - ``` - - **Azure Event Grid Stream** - - For an `Azure Event Grid` Stream, the `sink` properties are listed in the payload below. - - **Request:** - ```json - { - "name": "string", - "type": "eventgrid", - "sink": { - "azureSubscriptionId": "string", - "azureResourceGroup": "string", - "azureRegion": "string" - } - } - ``` - - **Response:** - ```json - { - "id": "string", - "name": "string", - "type": "http", - "status": "active", - "sink": { - "azureSubscriptionId": "string", - "azureResourceGroup": "string", - "azureRegion": "string", - "azurePartnerTopic": "string" - } - } - ``` - - **Datadog Stream** - - For a `Datadog` Stream, the `sink` properties are listed in the payload below. - - **Request:** - ```json - { - "name": "string", - "type": "datadog", - "sink": { - "datadogRegion": "string", - "datadogApiKey": "string" - } - } - ``` - - **Response:** - ```json - { - "id": "string", - "name": "string", - "type": "datadog", - "status": "active", - "sink": { - "datadogRegion": "string", - "datadogApiKey": "string" - } - } - ``` - - **Splunk Stream** - - For a `Splunk` Stream, the `sink` properties are listed in the payload below. - - **Request:** - ```json - { - "name": "string", - "type": "splunk", - "sink": { - "splunkDomain": "string", - "splunkToken": "string", - "splunkPort": "string", - "splunkSecure": "boolean" - } - } - ``` - - **Response:** - ```json - { - "id": "string", - "name": "string", - "type": "splunk", - "status": "active", - "sink": { - "splunkDomain": "string", - "splunkToken": "string", - "splunkPort": "string", - "splunkSecure": "boolean" - } - } - ``` - - **Sumo Logic Stream** - - For a `Sumo Logic` Stream, the `sink` properties are listed in the payload below. - - **Request:** - ```json - { - "name": "string", - "type": "sumo", - "sink": { - "sumoSourceAddress": "string" - } - } - ``` - - **Response:** - ```json - { - "id": "string", - "name": "string", - "type": "sumo", - "status": "active", - "sink": { - "sumoSourceAddress": "string" - } - } - ``` - - Parameters - ---------- - request : CreateLogStreamRequestContent - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CreateLogStreamResponseContent] - Log stream created - """ - _response = self._client_wrapper.httpx_client.request( - "log-streams", - method="POST", - json=convert_and_respect_annotation_metadata( - object_=request, annotation=CreateLogStreamRequestContent, direction="write" - ), - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateLogStreamResponseContent, - parse_obj_as( - type_=CreateLogStreamResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetLogStreamResponseContent]: - """ - Retrieve a log stream configuration and status. - - **Sample responses** - - **Amazon EventBridge Log Stream** - - ```json - { - "id": "string", - "name": "string", - "type": "eventbridge", - "status": "active|paused|suspended", - "sink": { - "awsAccountId": "string", - "awsRegion": "string", - "awsPartnerEventSource": "string" - } - } - ``` - - **HTTP Log Stream** - - ```json - { - "id": "string", - "name": "string", - "type": "http", - "status": "active|paused|suspended", - "sink": { - "httpContentFormat": "JSONLINES|JSONARRAY", - "httpContentType": "string", - "httpEndpoint": "string", - "httpAuthorization": "string" - } - } - ``` - - **Datadog Log Stream** - - ```json - { - "id": "string", - "name": "string", - "type": "datadog", - "status": "active|paused|suspended", - "sink": { - "datadogRegion": "string", - "datadogApiKey": "string" - } - } - ``` - - **Mixpanel** - - **Request:** - - ```json - { - "name": "string", - "type": "mixpanel", - "sink": { - "mixpanelRegion": "string", - "mixpanelProjectId": "string", - "mixpanelServiceAccountUsername": "string", - "mixpanelServiceAccountPassword": "string" - } - } - ``` - - **Response:** - - ```json - { - "id": "string", - "name": "string", - "type": "mixpanel", - "status": "active", - "sink": { - "mixpanelRegion": "string", - "mixpanelProjectId": "string", - "mixpanelServiceAccountUsername": "string", - "mixpanelServiceAccountPassword": "string" - } - } - ``` - - **Segment** - - **Request:** - - ```json - { - "name": "string", - "type": "segment", - "sink": { - "segmentWriteKey": "string" - } - } - ``` - - **Response:** - - ```json - { - "id": "string", - "name": "string", - "type": "segment", - "status": "active", - "sink": { - "segmentWriteKey": "string" - } - } - ``` - - **Splunk Log Stream** - - ```json - { - "id": "string", - "name": "string", - "type": "splunk", - "status": "active|paused|suspended", - "sink": { - "splunkDomain": "string", - "splunkToken": "string", - "splunkPort": "string", - "splunkSecure": "boolean" - } - } - ``` - - **Sumo Logic Log Stream** - - ```json - { - "id": "string", - "name": "string", - "type": "sumo", - "status": "active|paused|suspended", - "sink": { - "sumoSourceAddress": "string" - } - } - ``` - - **Status** - - The `status` of a log stream maybe any of the following: - - 1. `active` - Stream is currently enabled. - 2. `paused` - Stream is currently user disabled and will not attempt log delivery. - 3. `suspended` - Stream is currently disabled because of errors and will not attempt log delivery. - - Parameters - ---------- - id : str - The id of the log stream to get - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetLogStreamResponseContent] - Returning log stream. - """ - _response = self._client_wrapper.httpx_client.request( - f"log-streams/{quote_path_param(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetLogStreamResponseContent, - parse_obj_as( - type_=GetLogStreamResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[None]: - """ - Delete a log stream. - - Parameters - ---------- - id : str - The id of the log stream to delete - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"log-streams/{quote_path_param(id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def update( - self, - id: str, - *, - name: typing.Optional[str] = OMIT, - status: typing.Optional[LogStreamStatusEnum] = OMIT, - is_priority: typing.Optional[bool] = OMIT, - filters: typing.Optional[typing.Sequence[LogStreamFilter]] = OMIT, - pii_config: typing.Optional[LogStreamPiiConfig] = OMIT, - sink: typing.Optional[LogStreamSinkPatch] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[UpdateLogStreamResponseContent]: - """ - Update a log stream. - - **Examples of how to use the PATCH endpoint.** - - The following fields may be updated in a PATCH operation: - - - name - - status - - sink - - Note: For log streams of type `eventbridge` and `eventgrid`, updating the `sink` is not permitted. - - **Update the status of a log stream** - - ```json - { - "status": "active|paused" - } - ``` - - **Update the name of a log stream** - - ```json - { - "name": "string" - } - ``` - - **Update the sink properties of a stream of type `http`** - - ```json - { - "sink": { - "httpEndpoint": "string", - "httpContentType": "string", - "httpContentFormat": "JSONARRAY|JSONLINES", - "httpAuthorization": "string" - } - } - ``` - - **Update the sink properties of a stream of type `datadog`** - - ```json - { - "sink": { - "datadogRegion": "string", - "datadogApiKey": "string" - } - } - ``` - - **Update the sink properties of a stream of type `splunk`** - - ```json - { - "sink": { - "splunkDomain": "string", - "splunkToken": "string", - "splunkPort": "string", - "splunkSecure": "boolean" - } - } - ``` - - **Update the sink properties of a stream of type `sumo`** - - ```json - { - "sink": { - "sumoSourceAddress": "string" - } - } - ``` - - Parameters - ---------- - id : str - The id of the log stream to get - - name : typing.Optional[str] - log stream name - - status : typing.Optional[LogStreamStatusEnum] - - is_priority : typing.Optional[bool] - True for priority log streams, false for non-priority - - filters : typing.Optional[typing.Sequence[LogStreamFilter]] - Only logs events matching these filters will be delivered by the stream. If omitted or empty, all events will be delivered. - - pii_config : typing.Optional[LogStreamPiiConfig] - - sink : typing.Optional[LogStreamSinkPatch] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[UpdateLogStreamResponseContent] - Log stream updated - """ - _response = self._client_wrapper.httpx_client.request( - f"log-streams/{quote_path_param(id)}", - method="PATCH", - json={ - "name": name, - "status": status, - "isPriority": is_priority, - "filters": convert_and_respect_annotation_metadata( - object_=filters, annotation=typing.Sequence[LogStreamFilter], direction="write" - ), - "pii_config": convert_and_respect_annotation_metadata( - object_=pii_config, annotation=LogStreamPiiConfig, direction="write" - ), - "sink": convert_and_respect_annotation_metadata( - object_=sink, annotation=LogStreamSinkPatch, direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateLogStreamResponseContent, - parse_obj_as( - type_=UpdateLogStreamResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawLogStreamsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[typing.List[LogStreamResponseSchema]]: - """ - Retrieve details on [log streams](https://auth0.com/docs/logs/streams). - - **Sample Response** - - ```json - [{ - "id": "string", - "name": "string", - "type": "eventbridge", - "status": "active|paused|suspended", - "sink": { - "awsAccountId": "string", - "awsRegion": "string", - "awsPartnerEventSource": "string" - } - }, { - "id": "string", - "name": "string", - "type": "http", - "status": "active|paused|suspended", - "sink": { - "httpContentFormat": "JSONLINES|JSONARRAY", - "httpContentType": "string", - "httpEndpoint": "string", - "httpAuthorization": "string" - } - }, - { - "id": "string", - "name": "string", - "type": "eventgrid", - "status": "active|paused|suspended", - "sink": { - "azureSubscriptionId": "string", - "azureResourceGroup": "string", - "azureRegion": "string", - "azurePartnerTopic": "string" - } - }, - { - "id": "string", - "name": "string", - "type": "splunk", - "status": "active|paused|suspended", - "sink": { - "splunkDomain": "string", - "splunkToken": "string", - "splunkPort": "string", - "splunkSecure": "boolean" - } - }, - { - "id": "string", - "name": "string", - "type": "sumo", - "status": "active|paused|suspended", - "sink": { - "sumoSourceAddress": "string" - } - }, - { - "id": "string", - "name": "string", - "type": "datadog", - "status": "active|paused|suspended", - "sink": { - "datadogRegion": "string", - "datadogApiKey": "string" - } - }] - ``` - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[typing.List[LogStreamResponseSchema]] - Returning log streams - """ - _response = await self._client_wrapper.httpx_client.request( - "log-streams", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - typing.List[LogStreamResponseSchema], - parse_obj_as( - type_=typing.List[LogStreamResponseSchema], # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, *, request: CreateLogStreamRequestContent, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[CreateLogStreamResponseContent]: - """ - Create a log stream. - - **Log Stream Types** - - The `type` of log stream being created determines the properties required in the `sink` payload. - - **HTTP Stream** - - For an `http` Stream, the `sink` properties are listed in the payload below. - - **Request:** - ```json - { - "name": "string", - "type": "http", - "sink": { - "httpEndpoint": "string", - "httpContentType": "string", - "httpContentFormat": "JSONLINES|JSONARRAY", - "httpAuthorization": "string" - } - } - ``` - - **Response:** - ```json - { - "id": "string", - "name": "string", - "type": "http", - "status": "active", - "sink": { - "httpEndpoint": "string", - "httpContentType": "string", - "httpContentFormat": "JSONLINES|JSONARRAY", - "httpAuthorization": "string" - } - } - ``` - - **Amazon EventBridge Stream** - - For an `eventbridge` Stream, the `sink` properties are listed in the payload below. - - **Request:** - ```json - { - "name": "string", - "type": "eventbridge", - "sink": { - "awsRegion": "string", - "awsAccountId": "string" - } - } - ``` - - The response will include an additional field `awsPartnerEventSource` in the `sink`: - - **Response:** - ```json - { - "id": "string", - "name": "string", - "type": "eventbridge", - "status": "active", - "sink": { - "awsAccountId": "string", - "awsRegion": "string", - "awsPartnerEventSource": "string" - } - } - ``` - - **Azure Event Grid Stream** - - For an `Azure Event Grid` Stream, the `sink` properties are listed in the payload below. - - **Request:** - ```json - { - "name": "string", - "type": "eventgrid", - "sink": { - "azureSubscriptionId": "string", - "azureResourceGroup": "string", - "azureRegion": "string" - } - } - ``` - - **Response:** - ```json - { - "id": "string", - "name": "string", - "type": "http", - "status": "active", - "sink": { - "azureSubscriptionId": "string", - "azureResourceGroup": "string", - "azureRegion": "string", - "azurePartnerTopic": "string" - } - } - ``` - - **Datadog Stream** - - For a `Datadog` Stream, the `sink` properties are listed in the payload below. - - **Request:** - ```json - { - "name": "string", - "type": "datadog", - "sink": { - "datadogRegion": "string", - "datadogApiKey": "string" - } - } - ``` - - **Response:** - ```json - { - "id": "string", - "name": "string", - "type": "datadog", - "status": "active", - "sink": { - "datadogRegion": "string", - "datadogApiKey": "string" - } - } - ``` - - **Splunk Stream** - - For a `Splunk` Stream, the `sink` properties are listed in the payload below. - - **Request:** - ```json - { - "name": "string", - "type": "splunk", - "sink": { - "splunkDomain": "string", - "splunkToken": "string", - "splunkPort": "string", - "splunkSecure": "boolean" - } - } - ``` - - **Response:** - ```json - { - "id": "string", - "name": "string", - "type": "splunk", - "status": "active", - "sink": { - "splunkDomain": "string", - "splunkToken": "string", - "splunkPort": "string", - "splunkSecure": "boolean" - } - } - ``` - - **Sumo Logic Stream** - - For a `Sumo Logic` Stream, the `sink` properties are listed in the payload below. - - **Request:** - ```json - { - "name": "string", - "type": "sumo", - "sink": { - "sumoSourceAddress": "string" - } - } - ``` - - **Response:** - ```json - { - "id": "string", - "name": "string", - "type": "sumo", - "status": "active", - "sink": { - "sumoSourceAddress": "string" - } - } - ``` - - Parameters - ---------- - request : CreateLogStreamRequestContent - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CreateLogStreamResponseContent] - Log stream created - """ - _response = await self._client_wrapper.httpx_client.request( - "log-streams", - method="POST", - json=convert_and_respect_annotation_metadata( - object_=request, annotation=CreateLogStreamRequestContent, direction="write" - ), - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateLogStreamResponseContent, - parse_obj_as( - type_=CreateLogStreamResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetLogStreamResponseContent]: - """ - Retrieve a log stream configuration and status. - - **Sample responses** - - **Amazon EventBridge Log Stream** - - ```json - { - "id": "string", - "name": "string", - "type": "eventbridge", - "status": "active|paused|suspended", - "sink": { - "awsAccountId": "string", - "awsRegion": "string", - "awsPartnerEventSource": "string" - } - } - ``` - - **HTTP Log Stream** - - ```json - { - "id": "string", - "name": "string", - "type": "http", - "status": "active|paused|suspended", - "sink": { - "httpContentFormat": "JSONLINES|JSONARRAY", - "httpContentType": "string", - "httpEndpoint": "string", - "httpAuthorization": "string" - } - } - ``` - - **Datadog Log Stream** - - ```json - { - "id": "string", - "name": "string", - "type": "datadog", - "status": "active|paused|suspended", - "sink": { - "datadogRegion": "string", - "datadogApiKey": "string" - } - } - ``` - - **Mixpanel** - - **Request:** - - ```json - { - "name": "string", - "type": "mixpanel", - "sink": { - "mixpanelRegion": "string", - "mixpanelProjectId": "string", - "mixpanelServiceAccountUsername": "string", - "mixpanelServiceAccountPassword": "string" - } - } - ``` - - **Response:** - - ```json - { - "id": "string", - "name": "string", - "type": "mixpanel", - "status": "active", - "sink": { - "mixpanelRegion": "string", - "mixpanelProjectId": "string", - "mixpanelServiceAccountUsername": "string", - "mixpanelServiceAccountPassword": "string" - } - } - ``` - - **Segment** - - **Request:** - - ```json - { - "name": "string", - "type": "segment", - "sink": { - "segmentWriteKey": "string" - } - } - ``` - - **Response:** - - ```json - { - "id": "string", - "name": "string", - "type": "segment", - "status": "active", - "sink": { - "segmentWriteKey": "string" - } - } - ``` - - **Splunk Log Stream** - - ```json - { - "id": "string", - "name": "string", - "type": "splunk", - "status": "active|paused|suspended", - "sink": { - "splunkDomain": "string", - "splunkToken": "string", - "splunkPort": "string", - "splunkSecure": "boolean" - } - } - ``` - - **Sumo Logic Log Stream** - - ```json - { - "id": "string", - "name": "string", - "type": "sumo", - "status": "active|paused|suspended", - "sink": { - "sumoSourceAddress": "string" - } - } - ``` - - **Status** - - The `status` of a log stream maybe any of the following: - - 1. `active` - Stream is currently enabled. - 2. `paused` - Stream is currently user disabled and will not attempt log delivery. - 3. `suspended` - Stream is currently disabled because of errors and will not attempt log delivery. - - Parameters - ---------- - id : str - The id of the log stream to get - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetLogStreamResponseContent] - Returning log stream. - """ - _response = await self._client_wrapper.httpx_client.request( - f"log-streams/{quote_path_param(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetLogStreamResponseContent, - parse_obj_as( - type_=GetLogStreamResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def delete( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Delete a log stream. - - Parameters - ---------- - id : str - The id of the log stream to delete - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"log-streams/{quote_path_param(id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def update( - self, - id: str, - *, - name: typing.Optional[str] = OMIT, - status: typing.Optional[LogStreamStatusEnum] = OMIT, - is_priority: typing.Optional[bool] = OMIT, - filters: typing.Optional[typing.Sequence[LogStreamFilter]] = OMIT, - pii_config: typing.Optional[LogStreamPiiConfig] = OMIT, - sink: typing.Optional[LogStreamSinkPatch] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[UpdateLogStreamResponseContent]: - """ - Update a log stream. - - **Examples of how to use the PATCH endpoint.** - - The following fields may be updated in a PATCH operation: - - - name - - status - - sink - - Note: For log streams of type `eventbridge` and `eventgrid`, updating the `sink` is not permitted. - - **Update the status of a log stream** - - ```json - { - "status": "active|paused" - } - ``` - - **Update the name of a log stream** - - ```json - { - "name": "string" - } - ``` - - **Update the sink properties of a stream of type `http`** - - ```json - { - "sink": { - "httpEndpoint": "string", - "httpContentType": "string", - "httpContentFormat": "JSONARRAY|JSONLINES", - "httpAuthorization": "string" - } - } - ``` - - **Update the sink properties of a stream of type `datadog`** - - ```json - { - "sink": { - "datadogRegion": "string", - "datadogApiKey": "string" - } - } - ``` - - **Update the sink properties of a stream of type `splunk`** - - ```json - { - "sink": { - "splunkDomain": "string", - "splunkToken": "string", - "splunkPort": "string", - "splunkSecure": "boolean" - } - } - ``` - - **Update the sink properties of a stream of type `sumo`** - - ```json - { - "sink": { - "sumoSourceAddress": "string" - } - } - ``` - - Parameters - ---------- - id : str - The id of the log stream to get - - name : typing.Optional[str] - log stream name - - status : typing.Optional[LogStreamStatusEnum] - - is_priority : typing.Optional[bool] - True for priority log streams, false for non-priority - - filters : typing.Optional[typing.Sequence[LogStreamFilter]] - Only logs events matching these filters will be delivered by the stream. If omitted or empty, all events will be delivered. - - pii_config : typing.Optional[LogStreamPiiConfig] - - sink : typing.Optional[LogStreamSinkPatch] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[UpdateLogStreamResponseContent] - Log stream updated - """ - _response = await self._client_wrapper.httpx_client.request( - f"log-streams/{quote_path_param(id)}", - method="PATCH", - json={ - "name": name, - "status": status, - "isPriority": is_priority, - "filters": convert_and_respect_annotation_metadata( - object_=filters, annotation=typing.Sequence[LogStreamFilter], direction="write" - ), - "pii_config": convert_and_respect_annotation_metadata( - object_=pii_config, annotation=LogStreamPiiConfig, direction="write" - ), - "sink": convert_and_respect_annotation_metadata( - object_=sink, annotation=LogStreamSinkPatch, direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateLogStreamResponseContent, - parse_obj_as( - type_=UpdateLogStreamResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/logs/__init__.py b/src/auth0/management/logs/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/logs/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/logs/client.py b/src/auth0/management/logs/client.py deleted file mode 100644 index 1a4be76e..00000000 --- a/src/auth0/management/logs/client.py +++ /dev/null @@ -1,334 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.pagination import AsyncPager, SyncPager -from ..core.request_options import RequestOptions -from ..types.get_log_response_content import GetLogResponseContent -from ..types.list_log_offset_paginated_response_content import ListLogOffsetPaginatedResponseContent -from ..types.log import Log -from .raw_client import AsyncRawLogsClient, RawLogsClient - - -class LogsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawLogsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawLogsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawLogsClient - """ - return self._raw_client - - def list( - self, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - sort: typing.Optional[str] = None, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - include_totals: typing.Optional[bool] = True, - search: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[Log, ListLogOffsetPaginatedResponseContent]: - """ - Retrieve log entries that match the specified search criteria (or all log entries if no criteria specified). - - Set custom search criteria using the `q` parameter, or search from a specific log ID (_"search from checkpoint"_). - - For more information on all possible event types, their respective acronyms, and descriptions, see [Log Event Type Codes](https://auth0.com/docs/logs/log-event-type-codes). - - **To set custom search criteria, use the following parameters:** - - - **q:** Search Criteria using [Query String Syntax](https://auth0.com/docs/logs/log-search-query-syntax) - - **page:** Page index of the results to return. First page is 0. - - **per_page:** Number of results per page. - - **sort:** Field to use for sorting appended with `:1` for ascending and `:-1` for descending. e.g. `date:-1` - - **fields:** Comma-separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields. - - **include_fields:** Whether specified fields are to be included (true) or excluded (false). - - **include_totals:** Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). **Deprecated:** this field is deprecated and should be removed from use. See [Search Engine V3 Breaking Changes](https://auth0.com/docs/product-lifecycle/deprecations-and-migrations/migrate-to-tenant-log-search-v3#pagination) - - For more information on the list of fields that can be used in `fields` and `sort`, see [Searchable Fields](https://auth0.com/docs/logs/log-search-query-syntax#searchable-fields). - - Auth0 [limits the number of logs](https://auth0.com/docs/logs/retrieve-log-events-using-mgmt-api#limitations) you can return by search criteria to 100 logs per request. Furthermore, you may paginate only through 1,000 search results. If you exceed this threshold, please redefine your search or use the [get logs by checkpoint method](https://auth0.com/docs/logs/retrieve-log-events-using-mgmt-api#retrieve-logs-by-checkpoint). - - **To search from a checkpoint log ID, use the following parameters:** - - - **from:** Log Event ID from which to start retrieving logs. You can limit the number of logs returned using the `take` parameter. If you use `from` at the same time as `q`, `from` takes precedence and `q` is ignored. - - **take:** Number of entries to retrieve when using the `from` parameter. - - **Important:** When fetching logs from a checkpoint log ID, any parameter other than `from` and `take` will be ignored, and date ordering is not guaranteed. - - Parameters - ---------- - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. Paging is disabled if parameter not sent. Default: 50. Max value: 100 - - sort : typing.Optional[str] - Field to use for sorting appended with :1 for ascending and :-1 for descending. e.g. date:-1 - - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false) - - include_totals : typing.Optional[bool] - Return results as an array when false (default). Return results inside an object that also contains a total result count when true. - - search : typing.Optional[str] - Retrieves logs that match the specified search criteria. This parameter can be combined with all the others in the /api/logs endpoint but is specified separately for clarity. - If no fields are provided a case insensitive 'starts with' search is performed on all of the following fields: client_name, connection, user_name. Otherwise, you can specify multiple fields and specify the search using the %field%:%search%, for example: application:node user:"John@contoso.com". - Values specified without quotes are matched using a case insensitive 'starts with' search. If quotes are used a case insensitve exact search is used. If multiple fields are used, the AND operator is used to join the clauses. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[Log, ListLogOffsetPaginatedResponseContent] - Logs successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.logs.list( - page=1, - per_page=1, - sort="sort", - fields="fields", - include_fields=True, - include_totals=True, - search="search", - ) - for item in response: - yield item - # alternatively, you can paginate page-by-page - for page in response.iter_pages(): - yield page - """ - return self._raw_client.list( - page=page, - per_page=per_page, - sort=sort, - fields=fields, - include_fields=include_fields, - include_totals=include_totals, - search=search, - request_options=request_options, - ) - - def get(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> GetLogResponseContent: - """ - Retrieve an individual log event. - - Parameters - ---------- - id : str - log_id of the log to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetLogResponseContent - Log successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.logs.get( - id="id", - ) - """ - _response = self._raw_client.get(id, request_options=request_options) - return _response.data - - -class AsyncLogsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawLogsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawLogsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawLogsClient - """ - return self._raw_client - - async def list( - self, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - sort: typing.Optional[str] = None, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - include_totals: typing.Optional[bool] = True, - search: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[Log, ListLogOffsetPaginatedResponseContent]: - """ - Retrieve log entries that match the specified search criteria (or all log entries if no criteria specified). - - Set custom search criteria using the `q` parameter, or search from a specific log ID (_"search from checkpoint"_). - - For more information on all possible event types, their respective acronyms, and descriptions, see [Log Event Type Codes](https://auth0.com/docs/logs/log-event-type-codes). - - **To set custom search criteria, use the following parameters:** - - - **q:** Search Criteria using [Query String Syntax](https://auth0.com/docs/logs/log-search-query-syntax) - - **page:** Page index of the results to return. First page is 0. - - **per_page:** Number of results per page. - - **sort:** Field to use for sorting appended with `:1` for ascending and `:-1` for descending. e.g. `date:-1` - - **fields:** Comma-separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields. - - **include_fields:** Whether specified fields are to be included (true) or excluded (false). - - **include_totals:** Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). **Deprecated:** this field is deprecated and should be removed from use. See [Search Engine V3 Breaking Changes](https://auth0.com/docs/product-lifecycle/deprecations-and-migrations/migrate-to-tenant-log-search-v3#pagination) - - For more information on the list of fields that can be used in `fields` and `sort`, see [Searchable Fields](https://auth0.com/docs/logs/log-search-query-syntax#searchable-fields). - - Auth0 [limits the number of logs](https://auth0.com/docs/logs/retrieve-log-events-using-mgmt-api#limitations) you can return by search criteria to 100 logs per request. Furthermore, you may paginate only through 1,000 search results. If you exceed this threshold, please redefine your search or use the [get logs by checkpoint method](https://auth0.com/docs/logs/retrieve-log-events-using-mgmt-api#retrieve-logs-by-checkpoint). - - **To search from a checkpoint log ID, use the following parameters:** - - - **from:** Log Event ID from which to start retrieving logs. You can limit the number of logs returned using the `take` parameter. If you use `from` at the same time as `q`, `from` takes precedence and `q` is ignored. - - **take:** Number of entries to retrieve when using the `from` parameter. - - **Important:** When fetching logs from a checkpoint log ID, any parameter other than `from` and `take` will be ignored, and date ordering is not guaranteed. - - Parameters - ---------- - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. Paging is disabled if parameter not sent. Default: 50. Max value: 100 - - sort : typing.Optional[str] - Field to use for sorting appended with :1 for ascending and :-1 for descending. e.g. date:-1 - - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false) - - include_totals : typing.Optional[bool] - Return results as an array when false (default). Return results inside an object that also contains a total result count when true. - - search : typing.Optional[str] - Retrieves logs that match the specified search criteria. This parameter can be combined with all the others in the /api/logs endpoint but is specified separately for clarity. - If no fields are provided a case insensitive 'starts with' search is performed on all of the following fields: client_name, connection, user_name. Otherwise, you can specify multiple fields and specify the search using the %field%:%search%, for example: application:node user:"John@contoso.com". - Values specified without quotes are matched using a case insensitive 'starts with' search. If quotes are used a case insensitve exact search is used. If multiple fields are used, the AND operator is used to join the clauses. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[Log, ListLogOffsetPaginatedResponseContent] - Logs successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.logs.list( - page=1, - per_page=1, - sort="sort", - fields="fields", - include_fields=True, - include_totals=True, - search="search", - ) - async for item in response: - yield item - - # alternatively, you can paginate page-by-page - async for page in response.iter_pages(): - yield page - - - asyncio.run(main()) - """ - return await self._raw_client.list( - page=page, - per_page=per_page, - sort=sort, - fields=fields, - include_fields=include_fields, - include_totals=include_totals, - search=search, - request_options=request_options, - ) - - async def get(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> GetLogResponseContent: - """ - Retrieve an individual log event. - - Parameters - ---------- - id : str - log_id of the log to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetLogResponseContent - Log successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.logs.get( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.get(id, request_options=request_options) - return _response.data diff --git a/src/auth0/management/logs/raw_client.py b/src/auth0/management/logs/raw_client.py deleted file mode 100644 index ab880f6f..00000000 --- a/src/auth0/management/logs/raw_client.py +++ /dev/null @@ -1,559 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ..core.api_error import ApiError -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.http_response import AsyncHttpResponse, HttpResponse -from ..core.jsonable_encoder import quote_path_param -from ..core.pagination import AsyncPager, SyncPager -from ..core.parse_error import ParsingError -from ..core.pydantic_utilities import parse_obj_as -from ..core.request_options import RequestOptions -from ..errors.bad_request_error import BadRequestError -from ..errors.forbidden_error import ForbiddenError -from ..errors.not_found_error import NotFoundError -from ..errors.too_many_requests_error import TooManyRequestsError -from ..errors.unauthorized_error import UnauthorizedError -from ..types.get_log_response_content import GetLogResponseContent -from ..types.list_log_offset_paginated_response_content import ListLogOffsetPaginatedResponseContent -from ..types.log import Log -from pydantic import ValidationError - - -class RawLogsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - sort: typing.Optional[str] = None, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - include_totals: typing.Optional[bool] = True, - search: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[Log, ListLogOffsetPaginatedResponseContent]: - """ - Retrieve log entries that match the specified search criteria (or all log entries if no criteria specified). - - Set custom search criteria using the `q` parameter, or search from a specific log ID (_"search from checkpoint"_). - - For more information on all possible event types, their respective acronyms, and descriptions, see [Log Event Type Codes](https://auth0.com/docs/logs/log-event-type-codes). - - **To set custom search criteria, use the following parameters:** - - - **q:** Search Criteria using [Query String Syntax](https://auth0.com/docs/logs/log-search-query-syntax) - - **page:** Page index of the results to return. First page is 0. - - **per_page:** Number of results per page. - - **sort:** Field to use for sorting appended with `:1` for ascending and `:-1` for descending. e.g. `date:-1` - - **fields:** Comma-separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields. - - **include_fields:** Whether specified fields are to be included (true) or excluded (false). - - **include_totals:** Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). **Deprecated:** this field is deprecated and should be removed from use. See [Search Engine V3 Breaking Changes](https://auth0.com/docs/product-lifecycle/deprecations-and-migrations/migrate-to-tenant-log-search-v3#pagination) - - For more information on the list of fields that can be used in `fields` and `sort`, see [Searchable Fields](https://auth0.com/docs/logs/log-search-query-syntax#searchable-fields). - - Auth0 [limits the number of logs](https://auth0.com/docs/logs/retrieve-log-events-using-mgmt-api#limitations) you can return by search criteria to 100 logs per request. Furthermore, you may paginate only through 1,000 search results. If you exceed this threshold, please redefine your search or use the [get logs by checkpoint method](https://auth0.com/docs/logs/retrieve-log-events-using-mgmt-api#retrieve-logs-by-checkpoint). - - **To search from a checkpoint log ID, use the following parameters:** - - - **from:** Log Event ID from which to start retrieving logs. You can limit the number of logs returned using the `take` parameter. If you use `from` at the same time as `q`, `from` takes precedence and `q` is ignored. - - **take:** Number of entries to retrieve when using the `from` parameter. - - **Important:** When fetching logs from a checkpoint log ID, any parameter other than `from` and `take` will be ignored, and date ordering is not guaranteed. - - Parameters - ---------- - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. Paging is disabled if parameter not sent. Default: 50. Max value: 100 - - sort : typing.Optional[str] - Field to use for sorting appended with :1 for ascending and :-1 for descending. e.g. date:-1 - - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false) - - include_totals : typing.Optional[bool] - Return results as an array when false (default). Return results inside an object that also contains a total result count when true. - - search : typing.Optional[str] - Retrieves logs that match the specified search criteria. This parameter can be combined with all the others in the /api/logs endpoint but is specified separately for clarity. - If no fields are provided a case insensitive 'starts with' search is performed on all of the following fields: client_name, connection, user_name. Otherwise, you can specify multiple fields and specify the search using the %field%:%search%, for example: application:node user:"John@contoso.com". - Values specified without quotes are matched using a case insensitive 'starts with' search. If quotes are used a case insensitve exact search is used. If multiple fields are used, the AND operator is used to join the clauses. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[Log, ListLogOffsetPaginatedResponseContent] - Logs successfully retrieved. - """ - page = page if page is not None else 0 - - _response = self._client_wrapper.httpx_client.request( - "logs", - method="GET", - params={ - "page": page, - "per_page": per_page, - "sort": sort, - "fields": fields, - "include_fields": include_fields, - "include_totals": include_totals, - "search": search, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListLogOffsetPaginatedResponseContent, - parse_obj_as( - type_=ListLogOffsetPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.logs - _has_next = len(_items or []) > 0 - _get_next = lambda: self.list( - page=page + 1, - per_page=per_page, - sort=sort, - fields=fields, - include_fields=include_fields, - include_totals=include_totals, - search=search, - request_options=request_options, - ) - return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetLogResponseContent]: - """ - Retrieve an individual log event. - - Parameters - ---------- - id : str - log_id of the log to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetLogResponseContent] - Log successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - f"logs/{quote_path_param(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetLogResponseContent, - parse_obj_as( - type_=GetLogResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawLogsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - sort: typing.Optional[str] = None, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - include_totals: typing.Optional[bool] = True, - search: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[Log, ListLogOffsetPaginatedResponseContent]: - """ - Retrieve log entries that match the specified search criteria (or all log entries if no criteria specified). - - Set custom search criteria using the `q` parameter, or search from a specific log ID (_"search from checkpoint"_). - - For more information on all possible event types, their respective acronyms, and descriptions, see [Log Event Type Codes](https://auth0.com/docs/logs/log-event-type-codes). - - **To set custom search criteria, use the following parameters:** - - - **q:** Search Criteria using [Query String Syntax](https://auth0.com/docs/logs/log-search-query-syntax) - - **page:** Page index of the results to return. First page is 0. - - **per_page:** Number of results per page. - - **sort:** Field to use for sorting appended with `:1` for ascending and `:-1` for descending. e.g. `date:-1` - - **fields:** Comma-separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields. - - **include_fields:** Whether specified fields are to be included (true) or excluded (false). - - **include_totals:** Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). **Deprecated:** this field is deprecated and should be removed from use. See [Search Engine V3 Breaking Changes](https://auth0.com/docs/product-lifecycle/deprecations-and-migrations/migrate-to-tenant-log-search-v3#pagination) - - For more information on the list of fields that can be used in `fields` and `sort`, see [Searchable Fields](https://auth0.com/docs/logs/log-search-query-syntax#searchable-fields). - - Auth0 [limits the number of logs](https://auth0.com/docs/logs/retrieve-log-events-using-mgmt-api#limitations) you can return by search criteria to 100 logs per request. Furthermore, you may paginate only through 1,000 search results. If you exceed this threshold, please redefine your search or use the [get logs by checkpoint method](https://auth0.com/docs/logs/retrieve-log-events-using-mgmt-api#retrieve-logs-by-checkpoint). - - **To search from a checkpoint log ID, use the following parameters:** - - - **from:** Log Event ID from which to start retrieving logs. You can limit the number of logs returned using the `take` parameter. If you use `from` at the same time as `q`, `from` takes precedence and `q` is ignored. - - **take:** Number of entries to retrieve when using the `from` parameter. - - **Important:** When fetching logs from a checkpoint log ID, any parameter other than `from` and `take` will be ignored, and date ordering is not guaranteed. - - Parameters - ---------- - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. Paging is disabled if parameter not sent. Default: 50. Max value: 100 - - sort : typing.Optional[str] - Field to use for sorting appended with :1 for ascending and :-1 for descending. e.g. date:-1 - - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false) - - include_totals : typing.Optional[bool] - Return results as an array when false (default). Return results inside an object that also contains a total result count when true. - - search : typing.Optional[str] - Retrieves logs that match the specified search criteria. This parameter can be combined with all the others in the /api/logs endpoint but is specified separately for clarity. - If no fields are provided a case insensitive 'starts with' search is performed on all of the following fields: client_name, connection, user_name. Otherwise, you can specify multiple fields and specify the search using the %field%:%search%, for example: application:node user:"John@contoso.com". - Values specified without quotes are matched using a case insensitive 'starts with' search. If quotes are used a case insensitve exact search is used. If multiple fields are used, the AND operator is used to join the clauses. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[Log, ListLogOffsetPaginatedResponseContent] - Logs successfully retrieved. - """ - page = page if page is not None else 0 - - _response = await self._client_wrapper.httpx_client.request( - "logs", - method="GET", - params={ - "page": page, - "per_page": per_page, - "sort": sort, - "fields": fields, - "include_fields": include_fields, - "include_totals": include_totals, - "search": search, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListLogOffsetPaginatedResponseContent, - parse_obj_as( - type_=ListLogOffsetPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.logs - _has_next = len(_items or []) > 0 - - async def _get_next(): - return await self.list( - page=page + 1, - per_page=per_page, - sort=sort, - fields=fields, - include_fields=include_fields, - include_totals=include_totals, - search=search, - request_options=request_options, - ) - - return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetLogResponseContent]: - """ - Retrieve an individual log event. - - Parameters - ---------- - id : str - log_id of the log to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetLogResponseContent] - Log successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - f"logs/{quote_path_param(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetLogResponseContent, - parse_obj_as( - type_=GetLogResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/network_acls/__init__.py b/src/auth0/management/network_acls/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/network_acls/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/network_acls/client.py b/src/auth0/management/network_acls/client.py deleted file mode 100644 index d4ae5c2a..00000000 --- a/src/auth0/management/network_acls/client.py +++ /dev/null @@ -1,650 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.pagination import AsyncPager, SyncPager -from ..core.request_options import RequestOptions -from ..types.get_network_acls_response_content import GetNetworkAclsResponseContent -from ..types.list_network_acls_offset_paginated_response_content import ListNetworkAclsOffsetPaginatedResponseContent -from ..types.network_acl_rule import NetworkAclRule -from ..types.network_acls_response_content import NetworkAclsResponseContent -from ..types.set_network_acls_response_content import SetNetworkAclsResponseContent -from ..types.update_network_acl_response_content import UpdateNetworkAclResponseContent -from .raw_client import AsyncRawNetworkAclsClient, RawNetworkAclsClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class NetworkAclsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawNetworkAclsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawNetworkAclsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawNetworkAclsClient - """ - return self._raw_client - - def list( - self, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - include_totals: typing.Optional[bool] = True, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[NetworkAclsResponseContent, ListNetworkAclsOffsetPaginatedResponseContent]: - """ - Get all access control list entries for your client. - - Parameters - ---------- - page : typing.Optional[int] - Use this field to request a specific page of the list results. - - per_page : typing.Optional[int] - The amount of results per page. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[NetworkAclsResponseContent, ListNetworkAclsOffsetPaginatedResponseContent] - Network access control list successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.network_acls.list( - page=1, - per_page=1, - include_totals=True, - ) - for item in response: - yield item - # alternatively, you can paginate page-by-page - for page in response.iter_pages(): - yield page - """ - return self._raw_client.list( - page=page, per_page=per_page, include_totals=include_totals, request_options=request_options - ) - - def create( - self, - *, - description: str, - active: bool, - rule: NetworkAclRule, - priority: typing.Optional[float] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> None: - """ - Create a new access control list for your client. - - Parameters - ---------- - description : str - - active : bool - Indicates whether or not this access control list is actively being used - - rule : NetworkAclRule - - priority : typing.Optional[float] - Indicates the order in which the ACL will be evaluated relative to other ACL rules. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0, NetworkAclAction, NetworkAclRule - - client = Auth0( - token="YOUR_TOKEN", - ) - client.network_acls.create( - description="description", - active=True, - rule=NetworkAclRule( - action=NetworkAclAction(), - scope="management", - ), - ) - """ - _response = self._raw_client.create( - description=description, active=active, rule=rule, priority=priority, request_options=request_options - ) - return _response.data - - def get(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> GetNetworkAclsResponseContent: - """ - Get a specific access control list entry for your client. - - Parameters - ---------- - id : str - The id of the access control list to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetNetworkAclsResponseContent - Network access control list successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.network_acls.get( - id="id", - ) - """ - _response = self._raw_client.get(id, request_options=request_options) - return _response.data - - def set( - self, - id: str, - *, - description: str, - active: bool, - rule: NetworkAclRule, - priority: typing.Optional[float] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> SetNetworkAclsResponseContent: - """ - Update existing access control list for your client. - - Parameters - ---------- - id : str - The id of the ACL to update. - - description : str - - active : bool - Indicates whether or not this access control list is actively being used - - rule : NetworkAclRule - - priority : typing.Optional[float] - Indicates the order in which the ACL will be evaluated relative to other ACL rules. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SetNetworkAclsResponseContent - Network ACL properties successfully updated - - Examples - -------- - from auth0 import Auth0, NetworkAclAction, NetworkAclRule - - client = Auth0( - token="YOUR_TOKEN", - ) - client.network_acls.set( - id="id", - description="description", - active=True, - rule=NetworkAclRule( - action=NetworkAclAction(), - scope="management", - ), - ) - """ - _response = self._raw_client.set( - id, description=description, active=active, rule=rule, priority=priority, request_options=request_options - ) - return _response.data - - def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete existing access control list for your client. - - Parameters - ---------- - id : str - The id of the ACL to delete - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.network_acls.delete( - id="id", - ) - """ - _response = self._raw_client.delete(id, request_options=request_options) - return _response.data - - def update( - self, - id: str, - *, - description: typing.Optional[str] = OMIT, - active: typing.Optional[bool] = OMIT, - priority: typing.Optional[float] = OMIT, - rule: typing.Optional[NetworkAclRule] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateNetworkAclResponseContent: - """ - Update existing access control list for your client. - - Parameters - ---------- - id : str - The id of the ACL to update. - - description : typing.Optional[str] - - active : typing.Optional[bool] - Indicates whether or not this access control list is actively being used - - priority : typing.Optional[float] - Indicates the order in which the ACL will be evaluated relative to other ACL rules. - - rule : typing.Optional[NetworkAclRule] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateNetworkAclResponseContent - Network ACL properties successfully updated - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.network_acls.update( - id="id", - ) - """ - _response = self._raw_client.update( - id, description=description, active=active, priority=priority, rule=rule, request_options=request_options - ) - return _response.data - - -class AsyncNetworkAclsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawNetworkAclsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawNetworkAclsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawNetworkAclsClient - """ - return self._raw_client - - async def list( - self, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - include_totals: typing.Optional[bool] = True, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[NetworkAclsResponseContent, ListNetworkAclsOffsetPaginatedResponseContent]: - """ - Get all access control list entries for your client. - - Parameters - ---------- - page : typing.Optional[int] - Use this field to request a specific page of the list results. - - per_page : typing.Optional[int] - The amount of results per page. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[NetworkAclsResponseContent, ListNetworkAclsOffsetPaginatedResponseContent] - Network access control list successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.network_acls.list( - page=1, - per_page=1, - include_totals=True, - ) - async for item in response: - yield item - - # alternatively, you can paginate page-by-page - async for page in response.iter_pages(): - yield page - - - asyncio.run(main()) - """ - return await self._raw_client.list( - page=page, per_page=per_page, include_totals=include_totals, request_options=request_options - ) - - async def create( - self, - *, - description: str, - active: bool, - rule: NetworkAclRule, - priority: typing.Optional[float] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> None: - """ - Create a new access control list for your client. - - Parameters - ---------- - description : str - - active : bool - Indicates whether or not this access control list is actively being used - - rule : NetworkAclRule - - priority : typing.Optional[float] - Indicates the order in which the ACL will be evaluated relative to other ACL rules. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0, NetworkAclAction, NetworkAclRule - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.network_acls.create( - description="description", - active=True, - rule=NetworkAclRule( - action=NetworkAclAction(), - scope="management", - ), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - description=description, active=active, rule=rule, priority=priority, request_options=request_options - ) - return _response.data - - async def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetNetworkAclsResponseContent: - """ - Get a specific access control list entry for your client. - - Parameters - ---------- - id : str - The id of the access control list to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetNetworkAclsResponseContent - Network access control list successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.network_acls.get( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.get(id, request_options=request_options) - return _response.data - - async def set( - self, - id: str, - *, - description: str, - active: bool, - rule: NetworkAclRule, - priority: typing.Optional[float] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> SetNetworkAclsResponseContent: - """ - Update existing access control list for your client. - - Parameters - ---------- - id : str - The id of the ACL to update. - - description : str - - active : bool - Indicates whether or not this access control list is actively being used - - rule : NetworkAclRule - - priority : typing.Optional[float] - Indicates the order in which the ACL will be evaluated relative to other ACL rules. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SetNetworkAclsResponseContent - Network ACL properties successfully updated - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0, NetworkAclAction, NetworkAclRule - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.network_acls.set( - id="id", - description="description", - active=True, - rule=NetworkAclRule( - action=NetworkAclAction(), - scope="management", - ), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.set( - id, description=description, active=active, rule=rule, priority=priority, request_options=request_options - ) - return _response.data - - async def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete existing access control list for your client. - - Parameters - ---------- - id : str - The id of the ACL to delete - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.network_acls.delete( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete(id, request_options=request_options) - return _response.data - - async def update( - self, - id: str, - *, - description: typing.Optional[str] = OMIT, - active: typing.Optional[bool] = OMIT, - priority: typing.Optional[float] = OMIT, - rule: typing.Optional[NetworkAclRule] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateNetworkAclResponseContent: - """ - Update existing access control list for your client. - - Parameters - ---------- - id : str - The id of the ACL to update. - - description : typing.Optional[str] - - active : typing.Optional[bool] - Indicates whether or not this access control list is actively being used - - priority : typing.Optional[float] - Indicates the order in which the ACL will be evaluated relative to other ACL rules. - - rule : typing.Optional[NetworkAclRule] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateNetworkAclResponseContent - Network ACL properties successfully updated - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.network_acls.update( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.update( - id, description=description, active=active, priority=priority, rule=rule, request_options=request_options - ) - return _response.data diff --git a/src/auth0/management/network_acls/raw_client.py b/src/auth0/management/network_acls/raw_client.py deleted file mode 100644 index 1f597e0a..00000000 --- a/src/auth0/management/network_acls/raw_client.py +++ /dev/null @@ -1,1382 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ..core.api_error import ApiError -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.http_response import AsyncHttpResponse, HttpResponse -from ..core.jsonable_encoder import quote_path_param -from ..core.pagination import AsyncPager, SyncPager -from ..core.parse_error import ParsingError -from ..core.pydantic_utilities import parse_obj_as -from ..core.request_options import RequestOptions -from ..core.serialization import convert_and_respect_annotation_metadata -from ..errors.bad_request_error import BadRequestError -from ..errors.conflict_error import ConflictError -from ..errors.forbidden_error import ForbiddenError -from ..errors.internal_server_error import InternalServerError -from ..errors.not_found_error import NotFoundError -from ..errors.too_many_requests_error import TooManyRequestsError -from ..errors.unauthorized_error import UnauthorizedError -from ..types.get_network_acls_response_content import GetNetworkAclsResponseContent -from ..types.list_network_acls_offset_paginated_response_content import ListNetworkAclsOffsetPaginatedResponseContent -from ..types.network_acl_rule import NetworkAclRule -from ..types.network_acls_response_content import NetworkAclsResponseContent -from ..types.set_network_acls_response_content import SetNetworkAclsResponseContent -from ..types.update_network_acl_response_content import UpdateNetworkAclResponseContent -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawNetworkAclsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - include_totals: typing.Optional[bool] = True, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[NetworkAclsResponseContent, ListNetworkAclsOffsetPaginatedResponseContent]: - """ - Get all access control list entries for your client. - - Parameters - ---------- - page : typing.Optional[int] - Use this field to request a specific page of the list results. - - per_page : typing.Optional[int] - The amount of results per page. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[NetworkAclsResponseContent, ListNetworkAclsOffsetPaginatedResponseContent] - Network access control list successfully retrieved. - """ - page = page if page is not None else 0 - - _response = self._client_wrapper.httpx_client.request( - "network-acls", - method="GET", - params={ - "page": page, - "per_page": per_page, - "include_totals": include_totals, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListNetworkAclsOffsetPaginatedResponseContent, - parse_obj_as( - type_=ListNetworkAclsOffsetPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.network_acls - _has_next = len(_items or []) > 0 - _get_next = lambda: self.list( - page=page + 1, - per_page=per_page, - include_totals=include_totals, - request_options=request_options, - ) - return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - *, - description: str, - active: bool, - rule: NetworkAclRule, - priority: typing.Optional[float] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[None]: - """ - Create a new access control list for your client. - - Parameters - ---------- - description : str - - active : bool - Indicates whether or not this access control list is actively being used - - rule : NetworkAclRule - - priority : typing.Optional[float] - Indicates the order in which the ACL will be evaluated relative to other ACL rules. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - "network-acls", - method="POST", - json={ - "description": description, - "active": active, - "priority": priority, - "rule": convert_and_respect_annotation_metadata( - object_=rule, annotation=NetworkAclRule, direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 500: - raise InternalServerError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetNetworkAclsResponseContent]: - """ - Get a specific access control list entry for your client. - - Parameters - ---------- - id : str - The id of the access control list to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetNetworkAclsResponseContent] - Network access control list successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - f"network-acls/{quote_path_param(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetNetworkAclsResponseContent, - parse_obj_as( - type_=GetNetworkAclsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def set( - self, - id: str, - *, - description: str, - active: bool, - rule: NetworkAclRule, - priority: typing.Optional[float] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[SetNetworkAclsResponseContent]: - """ - Update existing access control list for your client. - - Parameters - ---------- - id : str - The id of the ACL to update. - - description : str - - active : bool - Indicates whether or not this access control list is actively being used - - rule : NetworkAclRule - - priority : typing.Optional[float] - Indicates the order in which the ACL will be evaluated relative to other ACL rules. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[SetNetworkAclsResponseContent] - Network ACL properties successfully updated - """ - _response = self._client_wrapper.httpx_client.request( - f"network-acls/{quote_path_param(id)}", - method="PUT", - json={ - "description": description, - "active": active, - "priority": priority, - "rule": convert_and_respect_annotation_metadata( - object_=rule, annotation=NetworkAclRule, direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - SetNetworkAclsResponseContent, - parse_obj_as( - type_=SetNetworkAclsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[None]: - """ - Delete existing access control list for your client. - - Parameters - ---------- - id : str - The id of the ACL to delete - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"network-acls/{quote_path_param(id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def update( - self, - id: str, - *, - description: typing.Optional[str] = OMIT, - active: typing.Optional[bool] = OMIT, - priority: typing.Optional[float] = OMIT, - rule: typing.Optional[NetworkAclRule] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[UpdateNetworkAclResponseContent]: - """ - Update existing access control list for your client. - - Parameters - ---------- - id : str - The id of the ACL to update. - - description : typing.Optional[str] - - active : typing.Optional[bool] - Indicates whether or not this access control list is actively being used - - priority : typing.Optional[float] - Indicates the order in which the ACL will be evaluated relative to other ACL rules. - - rule : typing.Optional[NetworkAclRule] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[UpdateNetworkAclResponseContent] - Network ACL properties successfully updated - """ - _response = self._client_wrapper.httpx_client.request( - f"network-acls/{quote_path_param(id)}", - method="PATCH", - json={ - "description": description, - "active": active, - "priority": priority, - "rule": convert_and_respect_annotation_metadata( - object_=rule, annotation=NetworkAclRule, direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateNetworkAclResponseContent, - parse_obj_as( - type_=UpdateNetworkAclResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawNetworkAclsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - include_totals: typing.Optional[bool] = True, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[NetworkAclsResponseContent, ListNetworkAclsOffsetPaginatedResponseContent]: - """ - Get all access control list entries for your client. - - Parameters - ---------- - page : typing.Optional[int] - Use this field to request a specific page of the list results. - - per_page : typing.Optional[int] - The amount of results per page. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[NetworkAclsResponseContent, ListNetworkAclsOffsetPaginatedResponseContent] - Network access control list successfully retrieved. - """ - page = page if page is not None else 0 - - _response = await self._client_wrapper.httpx_client.request( - "network-acls", - method="GET", - params={ - "page": page, - "per_page": per_page, - "include_totals": include_totals, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListNetworkAclsOffsetPaginatedResponseContent, - parse_obj_as( - type_=ListNetworkAclsOffsetPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.network_acls - _has_next = len(_items or []) > 0 - - async def _get_next(): - return await self.list( - page=page + 1, - per_page=per_page, - include_totals=include_totals, - request_options=request_options, - ) - - return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - *, - description: str, - active: bool, - rule: NetworkAclRule, - priority: typing.Optional[float] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[None]: - """ - Create a new access control list for your client. - - Parameters - ---------- - description : str - - active : bool - Indicates whether or not this access control list is actively being used - - rule : NetworkAclRule - - priority : typing.Optional[float] - Indicates the order in which the ACL will be evaluated relative to other ACL rules. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - "network-acls", - method="POST", - json={ - "description": description, - "active": active, - "priority": priority, - "rule": convert_and_respect_annotation_metadata( - object_=rule, annotation=NetworkAclRule, direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 500: - raise InternalServerError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetNetworkAclsResponseContent]: - """ - Get a specific access control list entry for your client. - - Parameters - ---------- - id : str - The id of the access control list to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetNetworkAclsResponseContent] - Network access control list successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - f"network-acls/{quote_path_param(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetNetworkAclsResponseContent, - parse_obj_as( - type_=GetNetworkAclsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def set( - self, - id: str, - *, - description: str, - active: bool, - rule: NetworkAclRule, - priority: typing.Optional[float] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[SetNetworkAclsResponseContent]: - """ - Update existing access control list for your client. - - Parameters - ---------- - id : str - The id of the ACL to update. - - description : str - - active : bool - Indicates whether or not this access control list is actively being used - - rule : NetworkAclRule - - priority : typing.Optional[float] - Indicates the order in which the ACL will be evaluated relative to other ACL rules. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[SetNetworkAclsResponseContent] - Network ACL properties successfully updated - """ - _response = await self._client_wrapper.httpx_client.request( - f"network-acls/{quote_path_param(id)}", - method="PUT", - json={ - "description": description, - "active": active, - "priority": priority, - "rule": convert_and_respect_annotation_metadata( - object_=rule, annotation=NetworkAclRule, direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - SetNetworkAclsResponseContent, - parse_obj_as( - type_=SetNetworkAclsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def delete( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Delete existing access control list for your client. - - Parameters - ---------- - id : str - The id of the ACL to delete - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"network-acls/{quote_path_param(id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def update( - self, - id: str, - *, - description: typing.Optional[str] = OMIT, - active: typing.Optional[bool] = OMIT, - priority: typing.Optional[float] = OMIT, - rule: typing.Optional[NetworkAclRule] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[UpdateNetworkAclResponseContent]: - """ - Update existing access control list for your client. - - Parameters - ---------- - id : str - The id of the ACL to update. - - description : typing.Optional[str] - - active : typing.Optional[bool] - Indicates whether or not this access control list is actively being used - - priority : typing.Optional[float] - Indicates the order in which the ACL will be evaluated relative to other ACL rules. - - rule : typing.Optional[NetworkAclRule] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[UpdateNetworkAclResponseContent] - Network ACL properties successfully updated - """ - _response = await self._client_wrapper.httpx_client.request( - f"network-acls/{quote_path_param(id)}", - method="PATCH", - json={ - "description": description, - "active": active, - "priority": priority, - "rule": convert_and_respect_annotation_metadata( - object_=rule, annotation=NetworkAclRule, direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateNetworkAclResponseContent, - parse_obj_as( - type_=UpdateNetworkAclResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/organizations/__init__.py b/src/auth0/management/organizations/__init__.py deleted file mode 100644 index 079f5c6d..00000000 --- a/src/auth0/management/organizations/__init__.py +++ /dev/null @@ -1,64 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from . import ( - client_grants, - clients, - connections, - discovery_domains, - enabled_connections, - groups, - invitations, - members, - roles, - ) -_dynamic_imports: typing.Dict[str, str] = { - "client_grants": ".client_grants", - "clients": ".clients", - "connections": ".connections", - "discovery_domains": ".discovery_domains", - "enabled_connections": ".enabled_connections", - "groups": ".groups", - "invitations": ".invitations", - "members": ".members", - "roles": ".roles", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - if module_name == f".{attr_name}": - return module - else: - return getattr(module, attr_name) - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = [ - "client_grants", - "clients", - "connections", - "discovery_domains", - "enabled_connections", - "groups", - "invitations", - "members", - "roles", -] diff --git a/src/auth0/management/organizations/client.py b/src/auth0/management/organizations/client.py deleted file mode 100644 index ea655744..00000000 --- a/src/auth0/management/organizations/client.py +++ /dev/null @@ -1,1087 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.pagination import AsyncPager, SyncPager -from ..core.request_options import RequestOptions -from ..types.connection_for_organization import ConnectionForOrganization -from ..types.create_organization_response_content import CreateOrganizationResponseContent -from ..types.create_token_quota import CreateTokenQuota -from ..types.get_organization_by_name_response_content import GetOrganizationByNameResponseContent -from ..types.get_organization_response_content import GetOrganizationResponseContent -from ..types.list_organizations_paginated_response_content import ListOrganizationsPaginatedResponseContent -from ..types.organization import Organization -from ..types.organization_branding import OrganizationBranding -from ..types.organization_metadata import OrganizationMetadata -from ..types.organization_sort_field_enum import OrganizationSortFieldEnum -from ..types.organization_third_party_client_access_enum import OrganizationThirdPartyClientAccessEnum -from ..types.search_organization import SearchOrganization -from ..types.search_organizations_paginated_response_content import SearchOrganizationsPaginatedResponseContent -from ..types.search_parser_enum import SearchParserEnum -from ..types.update_organization_response_content import UpdateOrganizationResponseContent -from ..types.update_token_quota import UpdateTokenQuota -from .raw_client import AsyncRawOrganizationsClient, RawOrganizationsClient - -if typing.TYPE_CHECKING: - from .client_grants.client import AsyncClientGrantsClient, ClientGrantsClient - from .clients.client import AsyncClientsClient, ClientsClient - from .connections.client import AsyncConnectionsClient, ConnectionsClient - from .discovery_domains.client import AsyncDiscoveryDomainsClient, DiscoveryDomainsClient - from .enabled_connections.client import AsyncEnabledConnectionsClient, EnabledConnectionsClient - from .groups.client import AsyncGroupsClient, GroupsClient - from .invitations.client import AsyncInvitationsClient, InvitationsClient - from .members.client import AsyncMembersClient, MembersClient - from .roles.client import AsyncRolesClient, RolesClient -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class OrganizationsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawOrganizationsClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._client_grants: typing.Optional[ClientGrantsClient] = None - self._clients: typing.Optional[ClientsClient] = None - self._connections: typing.Optional[ConnectionsClient] = None - self._discovery_domains: typing.Optional[DiscoveryDomainsClient] = None - self._enabled_connections: typing.Optional[EnabledConnectionsClient] = None - self._invitations: typing.Optional[InvitationsClient] = None - self._members: typing.Optional[MembersClient] = None - self._groups: typing.Optional[GroupsClient] = None - self._roles: typing.Optional[RolesClient] = None - - @property - def with_raw_response(self) -> RawOrganizationsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawOrganizationsClient - """ - return self._raw_client - - def list( - self, - *, - include_totals: typing.Optional[bool] = True, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - sort: typing.Optional[str] = None, - include_client_association_for: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[Organization, ListOrganizationsPaginatedResponseContent]: - """ - Retrieve detailed list of all Organizations available in your tenant. For more information, see Auth0 Organizations. - - This endpoint supports two types of pagination: - - - Offset pagination - - Checkpoint pagination - - Checkpoint pagination must be used if you need to retrieve more than 1000 organizations. - - **Checkpoint Pagination** - - To search by checkpoint, use the following parameters: - - - `from`: Optional id from which to start selection. - - `take`: The total number of entries to retrieve when using the `from` parameter. Defaults to 50. - - **Note**: The first time you call this endpoint using checkpoint pagination, omit the `from` parameter. If there are more results, a `next` value is included in the response. You can use this for subsequent API calls. When `next` is no longer included in the response, no pages are remaining. - - Parameters - ---------- - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - sort : typing.Optional[str] - Field to sort by. Use field:order where order is 1 for ascending and -1 for descending. e.g. created_at:1. We currently support sorting by the following fields: name, display_name and created_at. - - include_client_association_for : typing.Optional[str] - Client ID. When set, each returned organization that has an association with this client gains a client object describing it; organizations without one omit the field. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[Organization, ListOrganizationsPaginatedResponseContent] - Organizations successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.organizations.list( - include_totals=True, - from_="from", - take=1, - sort="sort", - include_client_association_for="include_client_association_for", - ) - for item in response: - yield item - # alternatively, you can paginate page-by-page - for page in response.iter_pages(): - yield page - """ - return self._raw_client.list( - include_totals=include_totals, - from_=from_, - take=take, - sort=sort, - include_client_association_for=include_client_association_for, - request_options=request_options, - ) - - def create( - self, - *, - name: str, - display_name: typing.Optional[str] = OMIT, - branding: typing.Optional[OrganizationBranding] = OMIT, - metadata: typing.Optional[OrganizationMetadata] = OMIT, - enabled_connections: typing.Optional[typing.Sequence[ConnectionForOrganization]] = OMIT, - token_quota: typing.Optional[CreateTokenQuota] = OMIT, - third_party_client_access: typing.Optional[OrganizationThirdPartyClientAccessEnum] = OMIT, - is_app_entitlement_active: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateOrganizationResponseContent: - """ - Create a new Organization within your tenant. To learn more about Organization settings, behavior, and configuration options, review [Create Your First Organization](https://auth0.com/docs/manage-users/organizations/create-first-organization). - - Parameters - ---------- - name : str - The name of this organization. - - display_name : typing.Optional[str] - Friendly name of this organization. - - branding : typing.Optional[OrganizationBranding] - - metadata : typing.Optional[OrganizationMetadata] - - enabled_connections : typing.Optional[typing.Sequence[ConnectionForOrganization]] - Connections that will be enabled for this organization. See POST enabled_connections endpoint for the object format. (Max of 10 connections allowed) - - token_quota : typing.Optional[CreateTokenQuota] - - third_party_client_access : typing.Optional[OrganizationThirdPartyClientAccessEnum] - - is_app_entitlement_active : typing.Optional[bool] - Whether app entitlement is active for this organization. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateOrganizationResponseContent - Organization successfully created. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.organizations.create( - name="name", - ) - """ - _response = self._raw_client.create( - name=name, - display_name=display_name, - branding=branding, - metadata=metadata, - enabled_connections=enabled_connections, - token_quota=token_quota, - third_party_client_access=third_party_client_access, - is_app_entitlement_active=is_app_entitlement_active, - request_options=request_options, - ) - return _response.data - - def get_by_name( - self, name: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetOrganizationByNameResponseContent: - """ - Retrieve details about a single Organization specified by name. - - Parameters - ---------- - name : str - name of the organization to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetOrganizationByNameResponseContent - Organization successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.organizations.get_by_name( - name="name", - ) - """ - _response = self._raw_client.get_by_name(name, request_options=request_options) - return _response.data - - def search( - self, - *, - q: typing.Optional[str] = None, - parser: typing.Optional[SearchParserEnum] = None, - take: typing.Optional[int] = 50, - from_: typing.Optional[str] = None, - sort: typing.Optional[OrganizationSortFieldEnum] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[SearchOrganization, SearchOrganizationsPaginatedResponseContent]: - """ - Retrieve details of organizations matching a search criteria. It is possible to: - - - Specify a search criteria for organizations - - Search via `name` - - Search via `display_name` - - Substring matching (`contains` and `ends-with`) requires at least 3 characters - - Use wildcards - - The `q` query parameter can be used to get organizations that match the specified criteria on `name` OR `display_name`. - - This endpoint supports SCIM or Lucene filter syntax with low-latency, cursor-based pagination. Use the `parser` parameter to specify "scim" or "lucene" syntax (default: "lucene"). - - Results are eventually consistent and may not reflect recent updates immediately. - - **Sortable fields:** `name`, `display_name`, `created_at` (ascending only). Defaults to insertion order (oldest first). - - Parameters - ---------- - q : typing.Optional[str] - Filter expression in SCIM or Lucene syntax (depending on parser parameter, default: Lucene). Lucene examples: `name:acme*`, `display_name:*auth*`. SCIM examples: `name eq "Auth0"`, `display_name sw "auth" and created_at gt "2024-01-01"`. SCIM operators: eq, ne, sw, ew, co, pr, gt, ge, lt, le, and, or.

Supported Fields:
  • id - Organization ID (case-sensitive, exact match)
  • name - Organization name (supports contains, starts-with, ends-with operators; sortable)
  • display_name - Organization display name (supports contains, starts-with, ends-with operators; sortable)
  • created_at - Creation timestamp (supports date range operators; sortable)
  • metadata.{key} - Filter by organization metadata key-value pairs
Maximum 5 filter operations per query. Results are eventually consistent and may not reflect recent updates. - - parser : typing.Optional[SearchParserEnum] - Query parser to use for the filter expression. Use "scim" for SCIM filter syntax or "lucene" for Lucene query syntax (default). - - take : typing.Optional[int] - Maximum number of results to return per page (1-100). Defaults to 50. - - from_ : typing.Optional[str] - Cursor for the next page of results. Use the value from the next field in the previous response. - - sort : typing.Optional[OrganizationSortFieldEnum] - Field name to sort results by in ascending order only. Defaults to insertion order (oldest first) if not provided. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[SearchOrganization, SearchOrganizationsPaginatedResponseContent] - Organizations successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.organizations.search( - q="q", - parser="scim", - take=1, - from_="from", - sort="name", - ) - for item in response: - yield item - # alternatively, you can paginate page-by-page - for page in response.iter_pages(): - yield page - """ - return self._raw_client.search( - q=q, parser=parser, take=take, from_=from_, sort=sort, request_options=request_options - ) - - def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetOrganizationResponseContent: - """ - Retrieve details about a single Organization specified by ID. - - Parameters - ---------- - id : str - ID of the organization to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetOrganizationResponseContent - Organization successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.organizations.get( - id="id", - ) - """ - _response = self._raw_client.get(id, request_options=request_options) - return _response.data - - def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Remove an Organization from your tenant. This action cannot be undone. - - **Note**: Members are automatically disassociated from an Organization when it is deleted. However, this action does **not** delete these users from your tenant. - - Parameters - ---------- - id : str - Organization identifier. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.organizations.delete( - id="id", - ) - """ - _response = self._raw_client.delete(id, request_options=request_options) - return _response.data - - def update( - self, - id: str, - *, - display_name: typing.Optional[str] = OMIT, - name: typing.Optional[str] = OMIT, - branding: typing.Optional[OrganizationBranding] = OMIT, - metadata: typing.Optional[OrganizationMetadata] = OMIT, - token_quota: typing.Optional[UpdateTokenQuota] = OMIT, - third_party_client_access: typing.Optional[OrganizationThirdPartyClientAccessEnum] = OMIT, - is_app_entitlement_active: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateOrganizationResponseContent: - """ - Update the details of a specific [Organization](https://auth0.com/docs/manage-users/organizations/configure-organizations/create-organizations), such as name and display name, branding options, and metadata. - - Parameters - ---------- - id : str - ID of the organization to update. - - display_name : typing.Optional[str] - Friendly name of this organization. - - name : typing.Optional[str] - The name of this organization. - - branding : typing.Optional[OrganizationBranding] - - metadata : typing.Optional[OrganizationMetadata] - - token_quota : typing.Optional[UpdateTokenQuota] - - third_party_client_access : typing.Optional[OrganizationThirdPartyClientAccessEnum] - - is_app_entitlement_active : typing.Optional[bool] - Whether app entitlement is active for this organization. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateOrganizationResponseContent - Organization successfully updated. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.organizations.update( - id="id", - ) - """ - _response = self._raw_client.update( - id, - display_name=display_name, - name=name, - branding=branding, - metadata=metadata, - token_quota=token_quota, - third_party_client_access=third_party_client_access, - is_app_entitlement_active=is_app_entitlement_active, - request_options=request_options, - ) - return _response.data - - @property - def client_grants(self): - if self._client_grants is None: - from .client_grants.client import ClientGrantsClient # noqa: E402 - - self._client_grants = ClientGrantsClient(client_wrapper=self._client_wrapper) - return self._client_grants - - @property - def clients(self): - if self._clients is None: - from .clients.client import ClientsClient # noqa: E402 - - self._clients = ClientsClient(client_wrapper=self._client_wrapper) - return self._clients - - @property - def connections(self): - if self._connections is None: - from .connections.client import ConnectionsClient # noqa: E402 - - self._connections = ConnectionsClient(client_wrapper=self._client_wrapper) - return self._connections - - @property - def discovery_domains(self): - if self._discovery_domains is None: - from .discovery_domains.client import DiscoveryDomainsClient # noqa: E402 - - self._discovery_domains = DiscoveryDomainsClient(client_wrapper=self._client_wrapper) - return self._discovery_domains - - @property - def enabled_connections(self): - if self._enabled_connections is None: - from .enabled_connections.client import EnabledConnectionsClient # noqa: E402 - - self._enabled_connections = EnabledConnectionsClient(client_wrapper=self._client_wrapper) - return self._enabled_connections - - @property - def invitations(self): - if self._invitations is None: - from .invitations.client import InvitationsClient # noqa: E402 - - self._invitations = InvitationsClient(client_wrapper=self._client_wrapper) - return self._invitations - - @property - def members(self): - if self._members is None: - from .members.client import MembersClient # noqa: E402 - - self._members = MembersClient(client_wrapper=self._client_wrapper) - return self._members - - @property - def groups(self): - if self._groups is None: - from .groups.client import GroupsClient # noqa: E402 - - self._groups = GroupsClient(client_wrapper=self._client_wrapper) - return self._groups - - @property - def roles(self): - if self._roles is None: - from .roles.client import RolesClient # noqa: E402 - - self._roles = RolesClient(client_wrapper=self._client_wrapper) - return self._roles - - -class AsyncOrganizationsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawOrganizationsClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._client_grants: typing.Optional[AsyncClientGrantsClient] = None - self._clients: typing.Optional[AsyncClientsClient] = None - self._connections: typing.Optional[AsyncConnectionsClient] = None - self._discovery_domains: typing.Optional[AsyncDiscoveryDomainsClient] = None - self._enabled_connections: typing.Optional[AsyncEnabledConnectionsClient] = None - self._invitations: typing.Optional[AsyncInvitationsClient] = None - self._members: typing.Optional[AsyncMembersClient] = None - self._groups: typing.Optional[AsyncGroupsClient] = None - self._roles: typing.Optional[AsyncRolesClient] = None - - @property - def with_raw_response(self) -> AsyncRawOrganizationsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawOrganizationsClient - """ - return self._raw_client - - async def list( - self, - *, - include_totals: typing.Optional[bool] = True, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - sort: typing.Optional[str] = None, - include_client_association_for: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[Organization, ListOrganizationsPaginatedResponseContent]: - """ - Retrieve detailed list of all Organizations available in your tenant. For more information, see Auth0 Organizations. - - This endpoint supports two types of pagination: - - - Offset pagination - - Checkpoint pagination - - Checkpoint pagination must be used if you need to retrieve more than 1000 organizations. - - **Checkpoint Pagination** - - To search by checkpoint, use the following parameters: - - - `from`: Optional id from which to start selection. - - `take`: The total number of entries to retrieve when using the `from` parameter. Defaults to 50. - - **Note**: The first time you call this endpoint using checkpoint pagination, omit the `from` parameter. If there are more results, a `next` value is included in the response. You can use this for subsequent API calls. When `next` is no longer included in the response, no pages are remaining. - - Parameters - ---------- - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - sort : typing.Optional[str] - Field to sort by. Use field:order where order is 1 for ascending and -1 for descending. e.g. created_at:1. We currently support sorting by the following fields: name, display_name and created_at. - - include_client_association_for : typing.Optional[str] - Client ID. When set, each returned organization that has an association with this client gains a client object describing it; organizations without one omit the field. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[Organization, ListOrganizationsPaginatedResponseContent] - Organizations successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.organizations.list( - include_totals=True, - from_="from", - take=1, - sort="sort", - include_client_association_for="include_client_association_for", - ) - async for item in response: - yield item - - # alternatively, you can paginate page-by-page - async for page in response.iter_pages(): - yield page - - - asyncio.run(main()) - """ - return await self._raw_client.list( - include_totals=include_totals, - from_=from_, - take=take, - sort=sort, - include_client_association_for=include_client_association_for, - request_options=request_options, - ) - - async def create( - self, - *, - name: str, - display_name: typing.Optional[str] = OMIT, - branding: typing.Optional[OrganizationBranding] = OMIT, - metadata: typing.Optional[OrganizationMetadata] = OMIT, - enabled_connections: typing.Optional[typing.Sequence[ConnectionForOrganization]] = OMIT, - token_quota: typing.Optional[CreateTokenQuota] = OMIT, - third_party_client_access: typing.Optional[OrganizationThirdPartyClientAccessEnum] = OMIT, - is_app_entitlement_active: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateOrganizationResponseContent: - """ - Create a new Organization within your tenant. To learn more about Organization settings, behavior, and configuration options, review [Create Your First Organization](https://auth0.com/docs/manage-users/organizations/create-first-organization). - - Parameters - ---------- - name : str - The name of this organization. - - display_name : typing.Optional[str] - Friendly name of this organization. - - branding : typing.Optional[OrganizationBranding] - - metadata : typing.Optional[OrganizationMetadata] - - enabled_connections : typing.Optional[typing.Sequence[ConnectionForOrganization]] - Connections that will be enabled for this organization. See POST enabled_connections endpoint for the object format. (Max of 10 connections allowed) - - token_quota : typing.Optional[CreateTokenQuota] - - third_party_client_access : typing.Optional[OrganizationThirdPartyClientAccessEnum] - - is_app_entitlement_active : typing.Optional[bool] - Whether app entitlement is active for this organization. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateOrganizationResponseContent - Organization successfully created. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.organizations.create( - name="name", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - name=name, - display_name=display_name, - branding=branding, - metadata=metadata, - enabled_connections=enabled_connections, - token_quota=token_quota, - third_party_client_access=third_party_client_access, - is_app_entitlement_active=is_app_entitlement_active, - request_options=request_options, - ) - return _response.data - - async def get_by_name( - self, name: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetOrganizationByNameResponseContent: - """ - Retrieve details about a single Organization specified by name. - - Parameters - ---------- - name : str - name of the organization to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetOrganizationByNameResponseContent - Organization successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.organizations.get_by_name( - name="name", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.get_by_name(name, request_options=request_options) - return _response.data - - async def search( - self, - *, - q: typing.Optional[str] = None, - parser: typing.Optional[SearchParserEnum] = None, - take: typing.Optional[int] = 50, - from_: typing.Optional[str] = None, - sort: typing.Optional[OrganizationSortFieldEnum] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[SearchOrganization, SearchOrganizationsPaginatedResponseContent]: - """ - Retrieve details of organizations matching a search criteria. It is possible to: - - - Specify a search criteria for organizations - - Search via `name` - - Search via `display_name` - - Substring matching (`contains` and `ends-with`) requires at least 3 characters - - Use wildcards - - The `q` query parameter can be used to get organizations that match the specified criteria on `name` OR `display_name`. - - This endpoint supports SCIM or Lucene filter syntax with low-latency, cursor-based pagination. Use the `parser` parameter to specify "scim" or "lucene" syntax (default: "lucene"). - - Results are eventually consistent and may not reflect recent updates immediately. - - **Sortable fields:** `name`, `display_name`, `created_at` (ascending only). Defaults to insertion order (oldest first). - - Parameters - ---------- - q : typing.Optional[str] - Filter expression in SCIM or Lucene syntax (depending on parser parameter, default: Lucene). Lucene examples: `name:acme*`, `display_name:*auth*`. SCIM examples: `name eq "Auth0"`, `display_name sw "auth" and created_at gt "2024-01-01"`. SCIM operators: eq, ne, sw, ew, co, pr, gt, ge, lt, le, and, or.

Supported Fields:
  • id - Organization ID (case-sensitive, exact match)
  • name - Organization name (supports contains, starts-with, ends-with operators; sortable)
  • display_name - Organization display name (supports contains, starts-with, ends-with operators; sortable)
  • created_at - Creation timestamp (supports date range operators; sortable)
  • metadata.{key} - Filter by organization metadata key-value pairs
Maximum 5 filter operations per query. Results are eventually consistent and may not reflect recent updates. - - parser : typing.Optional[SearchParserEnum] - Query parser to use for the filter expression. Use "scim" for SCIM filter syntax or "lucene" for Lucene query syntax (default). - - take : typing.Optional[int] - Maximum number of results to return per page (1-100). Defaults to 50. - - from_ : typing.Optional[str] - Cursor for the next page of results. Use the value from the next field in the previous response. - - sort : typing.Optional[OrganizationSortFieldEnum] - Field name to sort results by in ascending order only. Defaults to insertion order (oldest first) if not provided. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[SearchOrganization, SearchOrganizationsPaginatedResponseContent] - Organizations successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.organizations.search( - q="q", - parser="scim", - take=1, - from_="from", - sort="name", - ) - async for item in response: - yield item - - # alternatively, you can paginate page-by-page - async for page in response.iter_pages(): - yield page - - - asyncio.run(main()) - """ - return await self._raw_client.search( - q=q, parser=parser, take=take, from_=from_, sort=sort, request_options=request_options - ) - - async def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetOrganizationResponseContent: - """ - Retrieve details about a single Organization specified by ID. - - Parameters - ---------- - id : str - ID of the organization to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetOrganizationResponseContent - Organization successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.organizations.get( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.get(id, request_options=request_options) - return _response.data - - async def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Remove an Organization from your tenant. This action cannot be undone. - - **Note**: Members are automatically disassociated from an Organization when it is deleted. However, this action does **not** delete these users from your tenant. - - Parameters - ---------- - id : str - Organization identifier. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.organizations.delete( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete(id, request_options=request_options) - return _response.data - - async def update( - self, - id: str, - *, - display_name: typing.Optional[str] = OMIT, - name: typing.Optional[str] = OMIT, - branding: typing.Optional[OrganizationBranding] = OMIT, - metadata: typing.Optional[OrganizationMetadata] = OMIT, - token_quota: typing.Optional[UpdateTokenQuota] = OMIT, - third_party_client_access: typing.Optional[OrganizationThirdPartyClientAccessEnum] = OMIT, - is_app_entitlement_active: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateOrganizationResponseContent: - """ - Update the details of a specific [Organization](https://auth0.com/docs/manage-users/organizations/configure-organizations/create-organizations), such as name and display name, branding options, and metadata. - - Parameters - ---------- - id : str - ID of the organization to update. - - display_name : typing.Optional[str] - Friendly name of this organization. - - name : typing.Optional[str] - The name of this organization. - - branding : typing.Optional[OrganizationBranding] - - metadata : typing.Optional[OrganizationMetadata] - - token_quota : typing.Optional[UpdateTokenQuota] - - third_party_client_access : typing.Optional[OrganizationThirdPartyClientAccessEnum] - - is_app_entitlement_active : typing.Optional[bool] - Whether app entitlement is active for this organization. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateOrganizationResponseContent - Organization successfully updated. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.organizations.update( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.update( - id, - display_name=display_name, - name=name, - branding=branding, - metadata=metadata, - token_quota=token_quota, - third_party_client_access=third_party_client_access, - is_app_entitlement_active=is_app_entitlement_active, - request_options=request_options, - ) - return _response.data - - @property - def client_grants(self): - if self._client_grants is None: - from .client_grants.client import AsyncClientGrantsClient # noqa: E402 - - self._client_grants = AsyncClientGrantsClient(client_wrapper=self._client_wrapper) - return self._client_grants - - @property - def clients(self): - if self._clients is None: - from .clients.client import AsyncClientsClient # noqa: E402 - - self._clients = AsyncClientsClient(client_wrapper=self._client_wrapper) - return self._clients - - @property - def connections(self): - if self._connections is None: - from .connections.client import AsyncConnectionsClient # noqa: E402 - - self._connections = AsyncConnectionsClient(client_wrapper=self._client_wrapper) - return self._connections - - @property - def discovery_domains(self): - if self._discovery_domains is None: - from .discovery_domains.client import AsyncDiscoveryDomainsClient # noqa: E402 - - self._discovery_domains = AsyncDiscoveryDomainsClient(client_wrapper=self._client_wrapper) - return self._discovery_domains - - @property - def enabled_connections(self): - if self._enabled_connections is None: - from .enabled_connections.client import AsyncEnabledConnectionsClient # noqa: E402 - - self._enabled_connections = AsyncEnabledConnectionsClient(client_wrapper=self._client_wrapper) - return self._enabled_connections - - @property - def invitations(self): - if self._invitations is None: - from .invitations.client import AsyncInvitationsClient # noqa: E402 - - self._invitations = AsyncInvitationsClient(client_wrapper=self._client_wrapper) - return self._invitations - - @property - def members(self): - if self._members is None: - from .members.client import AsyncMembersClient # noqa: E402 - - self._members = AsyncMembersClient(client_wrapper=self._client_wrapper) - return self._members - - @property - def groups(self): - if self._groups is None: - from .groups.client import AsyncGroupsClient # noqa: E402 - - self._groups = AsyncGroupsClient(client_wrapper=self._client_wrapper) - return self._groups - - @property - def roles(self): - if self._roles is None: - from .roles.client import AsyncRolesClient # noqa: E402 - - self._roles = AsyncRolesClient(client_wrapper=self._client_wrapper) - return self._roles diff --git a/src/auth0/management/organizations/client_grants/__init__.py b/src/auth0/management/organizations/client_grants/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/organizations/client_grants/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/organizations/client_grants/client.py b/src/auth0/management/organizations/client_grants/client.py deleted file mode 100644 index 71b8e406..00000000 --- a/src/auth0/management/organizations/client_grants/client.py +++ /dev/null @@ -1,363 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.pagination import AsyncPager, SyncPager -from ...core.request_options import RequestOptions -from ...types.associate_organization_client_grant_response_content import ( - AssociateOrganizationClientGrantResponseContent, -) -from ...types.list_organization_client_grants_offset_paginated_response_content import ( - ListOrganizationClientGrantsOffsetPaginatedResponseContent, -) -from ...types.organization_client_grant import OrganizationClientGrant -from .raw_client import AsyncRawClientGrantsClient, RawClientGrantsClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class ClientGrantsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawClientGrantsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawClientGrantsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawClientGrantsClient - """ - return self._raw_client - - def list( - self, - id: str, - *, - audience: typing.Optional[str] = None, - client_id: typing.Optional[str] = None, - grant_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - include_totals: typing.Optional[bool] = True, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[OrganizationClientGrant, ListOrganizationClientGrantsOffsetPaginatedResponseContent]: - """ - Parameters - ---------- - id : str - Organization identifier. - - audience : typing.Optional[str] - Optional filter on audience of the client grant. - - client_id : typing.Optional[str] - Optional filter on client_id of the client grant. - - grant_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]] - Optional filter on the ID of the client grant. Must be URL encoded and may be specified multiple times (max 10).
e.g. ../client-grants?grant_ids=id1&grant_ids=id2 - - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. Defaults to 50. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[OrganizationClientGrant, ListOrganizationClientGrantsOffsetPaginatedResponseContent] - Client grants successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.organizations.client_grants.list( - id="id", - audience="audience", - client_id="client_id", - grant_ids=["grant_ids"], - page=1, - per_page=1, - include_totals=True, - ) - for item in response: - yield item - # alternatively, you can paginate page-by-page - for page in response.iter_pages(): - yield page - """ - return self._raw_client.list( - id, - audience=audience, - client_id=client_id, - grant_ids=grant_ids, - page=page, - per_page=per_page, - include_totals=include_totals, - request_options=request_options, - ) - - def create( - self, id: str, *, grant_id: str, request_options: typing.Optional[RequestOptions] = None - ) -> AssociateOrganizationClientGrantResponseContent: - """ - Parameters - ---------- - id : str - Organization identifier. - - grant_id : str - A Client Grant ID to add to the organization. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AssociateOrganizationClientGrantResponseContent - Client Grant successfully associated with Organization. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.organizations.client_grants.create( - id="id", - grant_id="grant_id", - ) - """ - _response = self._raw_client.create(id, grant_id=grant_id, request_options=request_options) - return _response.data - - def delete(self, id: str, grant_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Parameters - ---------- - id : str - Organization identifier. - - grant_id : str - The Client Grant ID to remove from the organization - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.organizations.client_grants.delete( - id="id", - grant_id="grant_id", - ) - """ - _response = self._raw_client.delete(id, grant_id, request_options=request_options) - return _response.data - - -class AsyncClientGrantsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawClientGrantsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawClientGrantsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawClientGrantsClient - """ - return self._raw_client - - async def list( - self, - id: str, - *, - audience: typing.Optional[str] = None, - client_id: typing.Optional[str] = None, - grant_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - include_totals: typing.Optional[bool] = True, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[OrganizationClientGrant, ListOrganizationClientGrantsOffsetPaginatedResponseContent]: - """ - Parameters - ---------- - id : str - Organization identifier. - - audience : typing.Optional[str] - Optional filter on audience of the client grant. - - client_id : typing.Optional[str] - Optional filter on client_id of the client grant. - - grant_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]] - Optional filter on the ID of the client grant. Must be URL encoded and may be specified multiple times (max 10).
e.g. ../client-grants?grant_ids=id1&grant_ids=id2 - - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. Defaults to 50. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[OrganizationClientGrant, ListOrganizationClientGrantsOffsetPaginatedResponseContent] - Client grants successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.organizations.client_grants.list( - id="id", - audience="audience", - client_id="client_id", - grant_ids=["grant_ids"], - page=1, - per_page=1, - include_totals=True, - ) - async for item in response: - yield item - - # alternatively, you can paginate page-by-page - async for page in response.iter_pages(): - yield page - - - asyncio.run(main()) - """ - return await self._raw_client.list( - id, - audience=audience, - client_id=client_id, - grant_ids=grant_ids, - page=page, - per_page=per_page, - include_totals=include_totals, - request_options=request_options, - ) - - async def create( - self, id: str, *, grant_id: str, request_options: typing.Optional[RequestOptions] = None - ) -> AssociateOrganizationClientGrantResponseContent: - """ - Parameters - ---------- - id : str - Organization identifier. - - grant_id : str - A Client Grant ID to add to the organization. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AssociateOrganizationClientGrantResponseContent - Client Grant successfully associated with Organization. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.organizations.client_grants.create( - id="id", - grant_id="grant_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create(id, grant_id=grant_id, request_options=request_options) - return _response.data - - async def delete(self, id: str, grant_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Parameters - ---------- - id : str - Organization identifier. - - grant_id : str - The Client Grant ID to remove from the organization - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.organizations.client_grants.delete( - id="id", - grant_id="grant_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete(id, grant_id, request_options=request_options) - return _response.data diff --git a/src/auth0/management/organizations/client_grants/raw_client.py b/src/auth0/management/organizations/client_grants/raw_client.py deleted file mode 100644 index 148b45c8..00000000 --- a/src/auth0/management/organizations/client_grants/raw_client.py +++ /dev/null @@ -1,727 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ...core.api_error import ApiError -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.http_response import AsyncHttpResponse, HttpResponse -from ...core.jsonable_encoder import quote_path_param -from ...core.pagination import AsyncPager, SyncPager -from ...core.parse_error import ParsingError -from ...core.pydantic_utilities import parse_obj_as -from ...core.request_options import RequestOptions -from ...errors.bad_request_error import BadRequestError -from ...errors.conflict_error import ConflictError -from ...errors.forbidden_error import ForbiddenError -from ...errors.not_found_error import NotFoundError -from ...errors.too_many_requests_error import TooManyRequestsError -from ...errors.unauthorized_error import UnauthorizedError -from ...types.associate_organization_client_grant_response_content import ( - AssociateOrganizationClientGrantResponseContent, -) -from ...types.list_organization_client_grants_offset_paginated_response_content import ( - ListOrganizationClientGrantsOffsetPaginatedResponseContent, -) -from ...types.organization_client_grant import OrganizationClientGrant -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawClientGrantsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - id: str, - *, - audience: typing.Optional[str] = None, - client_id: typing.Optional[str] = None, - grant_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - include_totals: typing.Optional[bool] = True, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[OrganizationClientGrant, ListOrganizationClientGrantsOffsetPaginatedResponseContent]: - """ - Parameters - ---------- - id : str - Organization identifier. - - audience : typing.Optional[str] - Optional filter on audience of the client grant. - - client_id : typing.Optional[str] - Optional filter on client_id of the client grant. - - grant_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]] - Optional filter on the ID of the client grant. Must be URL encoded and may be specified multiple times (max 10).
e.g. ../client-grants?grant_ids=id1&grant_ids=id2 - - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. Defaults to 50. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[OrganizationClientGrant, ListOrganizationClientGrantsOffsetPaginatedResponseContent] - Client grants successfully retrieved. - """ - page = page if page is not None else 0 - - _response = self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(id)}/client-grants", - method="GET", - params={ - "audience": audience, - "client_id": client_id, - "grant_ids": grant_ids, - "page": page, - "per_page": per_page, - "include_totals": include_totals, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListOrganizationClientGrantsOffsetPaginatedResponseContent, - parse_obj_as( - type_=ListOrganizationClientGrantsOffsetPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.client_grants - _has_next = len(_items or []) > 0 - _get_next = lambda: self.list( - id, - audience=audience, - client_id=client_id, - grant_ids=grant_ids, - page=page + 1, - per_page=per_page, - include_totals=include_totals, - request_options=request_options, - ) - return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, id: str, *, grant_id: str, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[AssociateOrganizationClientGrantResponseContent]: - """ - Parameters - ---------- - id : str - Organization identifier. - - grant_id : str - A Client Grant ID to add to the organization. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[AssociateOrganizationClientGrantResponseContent] - Client Grant successfully associated with Organization. - """ - _response = self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(id)}/client-grants", - method="POST", - json={ - "grant_id": grant_id, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AssociateOrganizationClientGrantResponseContent, - parse_obj_as( - type_=AssociateOrganizationClientGrantResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def delete( - self, id: str, grant_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[None]: - """ - Parameters - ---------- - id : str - Organization identifier. - - grant_id : str - The Client Grant ID to remove from the organization - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(id)}/client-grants/{quote_path_param(grant_id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawClientGrantsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - id: str, - *, - audience: typing.Optional[str] = None, - client_id: typing.Optional[str] = None, - grant_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - include_totals: typing.Optional[bool] = True, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[OrganizationClientGrant, ListOrganizationClientGrantsOffsetPaginatedResponseContent]: - """ - Parameters - ---------- - id : str - Organization identifier. - - audience : typing.Optional[str] - Optional filter on audience of the client grant. - - client_id : typing.Optional[str] - Optional filter on client_id of the client grant. - - grant_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]] - Optional filter on the ID of the client grant. Must be URL encoded and may be specified multiple times (max 10).
e.g. ../client-grants?grant_ids=id1&grant_ids=id2 - - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. Defaults to 50. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[OrganizationClientGrant, ListOrganizationClientGrantsOffsetPaginatedResponseContent] - Client grants successfully retrieved. - """ - page = page if page is not None else 0 - - _response = await self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(id)}/client-grants", - method="GET", - params={ - "audience": audience, - "client_id": client_id, - "grant_ids": grant_ids, - "page": page, - "per_page": per_page, - "include_totals": include_totals, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListOrganizationClientGrantsOffsetPaginatedResponseContent, - parse_obj_as( - type_=ListOrganizationClientGrantsOffsetPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.client_grants - _has_next = len(_items or []) > 0 - - async def _get_next(): - return await self.list( - id, - audience=audience, - client_id=client_id, - grant_ids=grant_ids, - page=page + 1, - per_page=per_page, - include_totals=include_totals, - request_options=request_options, - ) - - return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, id: str, *, grant_id: str, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[AssociateOrganizationClientGrantResponseContent]: - """ - Parameters - ---------- - id : str - Organization identifier. - - grant_id : str - A Client Grant ID to add to the organization. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[AssociateOrganizationClientGrantResponseContent] - Client Grant successfully associated with Organization. - """ - _response = await self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(id)}/client-grants", - method="POST", - json={ - "grant_id": grant_id, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AssociateOrganizationClientGrantResponseContent, - parse_obj_as( - type_=AssociateOrganizationClientGrantResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def delete( - self, id: str, grant_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Parameters - ---------- - id : str - Organization identifier. - - grant_id : str - The Client Grant ID to remove from the organization - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(id)}/client-grants/{quote_path_param(grant_id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/organizations/clients/__init__.py b/src/auth0/management/organizations/clients/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/organizations/clients/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/organizations/clients/client.py b/src/auth0/management/organizations/clients/client.py deleted file mode 100644 index c96c79e0..00000000 --- a/src/auth0/management/organizations/clients/client.py +++ /dev/null @@ -1,532 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.pagination import AsyncPager, SyncPager -from ...core.request_options import RequestOptions -from ...types.create_organization_client_request_item import CreateOrganizationClientRequestItem -from ...types.create_organization_clients_response_content import CreateOrganizationClientsResponseContent -from ...types.get_organization_client_response_content import GetOrganizationClientResponseContent -from ...types.list_organization_clients_response_content import ListOrganizationClientsResponseContent -from ...types.organization_client import OrganizationClient -from ...types.update_organization_client_response_content import UpdateOrganizationClientResponseContent -from .raw_client import AsyncRawClientsClient, RawClientsClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class ClientsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawClientsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawClientsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawClientsClient - """ - return self._raw_client - - def list( - self, - id: str, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[OrganizationClient, ListOrganizationClientsResponseContent]: - """ - List all clients associated with an organization, using checkpoint pagination. -
    -
  • - Note: The first time you call this endpoint, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no further results are remaining. -
  • -
- - Parameters - ---------- - id : str - ID of the organization. - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. Values greater than the maximum of 100 are capped at 100. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[OrganizationClient, ListOrganizationClientsResponseContent] - Organization clients successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.organizations.clients.list( - id="id", - from_="from", - take=1, - ) - for item in response: - yield item - # alternatively, you can paginate page-by-page - for page in response.iter_pages(): - yield page - """ - return self._raw_client.list(id, from_=from_, take=take, request_options=request_options) - - def create( - self, - id: str, - *, - clients: typing.Sequence[CreateOrganizationClientRequestItem], - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateOrganizationClientsResponseContent: - """ - Associate one or more clients with an organization. - - Parameters - ---------- - id : str - ID of the organization. - - clients : typing.Sequence[CreateOrganizationClientRequestItem] - List of clients to associate with the organization. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateOrganizationClientsResponseContent - Organization clients successfully associated. - - Examples - -------- - from auth0 import Auth0, CreateOrganizationClientRequestItem - - client = Auth0( - token="YOUR_TOKEN", - ) - client.organizations.clients.create( - id="id", - clients=[ - CreateOrganizationClientRequestItem( - client_id="client_id", - use_for_member_access=True, - ) - ], - ) - """ - _response = self._raw_client.create(id, clients=clients, request_options=request_options) - return _response.data - - def delete( - self, id: str, *, clients: typing.Sequence[str], request_options: typing.Optional[RequestOptions] = None - ) -> None: - """ - Remove one or more client associations from an organization. - - Parameters - ---------- - id : str - ID of the organization. - - clients : typing.Sequence[str] - List of client IDs to disassociate from the organization. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.organizations.clients.delete( - id="id", - clients=["clients"], - ) - """ - _response = self._raw_client.delete(id, clients=clients, request_options=request_options) - return _response.data - - def get( - self, id: str, client_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetOrganizationClientResponseContent: - """ - Get a specific client association for an organization. - - Parameters - ---------- - id : str - ID of the organization. - - client_id : str - ID of the client association to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetOrganizationClientResponseContent - Organization client association successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.organizations.clients.get( - id="id", - client_id="client_id", - ) - """ - _response = self._raw_client.get(id, client_id, request_options=request_options) - return _response.data - - def update( - self, - id: str, - client_id: str, - *, - use_for_member_access: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateOrganizationClientResponseContent: - """ - Update an organization client association. - - Parameters - ---------- - id : str - ID of the organization. - - client_id : str - ID of the client association to update. - - use_for_member_access : typing.Optional[bool] - Whether this client is used for member access to the organization. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateOrganizationClientResponseContent - Organization client successfully updated. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.organizations.clients.update( - id="id", - client_id="client_id", - ) - """ - _response = self._raw_client.update( - id, client_id, use_for_member_access=use_for_member_access, request_options=request_options - ) - return _response.data - - -class AsyncClientsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawClientsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawClientsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawClientsClient - """ - return self._raw_client - - async def list( - self, - id: str, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[OrganizationClient, ListOrganizationClientsResponseContent]: - """ - List all clients associated with an organization, using checkpoint pagination. -
    -
  • - Note: The first time you call this endpoint, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no further results are remaining. -
  • -
- - Parameters - ---------- - id : str - ID of the organization. - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. Values greater than the maximum of 100 are capped at 100. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[OrganizationClient, ListOrganizationClientsResponseContent] - Organization clients successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.organizations.clients.list( - id="id", - from_="from", - take=1, - ) - async for item in response: - yield item - - # alternatively, you can paginate page-by-page - async for page in response.iter_pages(): - yield page - - - asyncio.run(main()) - """ - return await self._raw_client.list(id, from_=from_, take=take, request_options=request_options) - - async def create( - self, - id: str, - *, - clients: typing.Sequence[CreateOrganizationClientRequestItem], - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateOrganizationClientsResponseContent: - """ - Associate one or more clients with an organization. - - Parameters - ---------- - id : str - ID of the organization. - - clients : typing.Sequence[CreateOrganizationClientRequestItem] - List of clients to associate with the organization. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateOrganizationClientsResponseContent - Organization clients successfully associated. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0, CreateOrganizationClientRequestItem - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.organizations.clients.create( - id="id", - clients=[ - CreateOrganizationClientRequestItem( - client_id="client_id", - use_for_member_access=True, - ) - ], - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create(id, clients=clients, request_options=request_options) - return _response.data - - async def delete( - self, id: str, *, clients: typing.Sequence[str], request_options: typing.Optional[RequestOptions] = None - ) -> None: - """ - Remove one or more client associations from an organization. - - Parameters - ---------- - id : str - ID of the organization. - - clients : typing.Sequence[str] - List of client IDs to disassociate from the organization. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.organizations.clients.delete( - id="id", - clients=["clients"], - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete(id, clients=clients, request_options=request_options) - return _response.data - - async def get( - self, id: str, client_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetOrganizationClientResponseContent: - """ - Get a specific client association for an organization. - - Parameters - ---------- - id : str - ID of the organization. - - client_id : str - ID of the client association to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetOrganizationClientResponseContent - Organization client association successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.organizations.clients.get( - id="id", - client_id="client_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.get(id, client_id, request_options=request_options) - return _response.data - - async def update( - self, - id: str, - client_id: str, - *, - use_for_member_access: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateOrganizationClientResponseContent: - """ - Update an organization client association. - - Parameters - ---------- - id : str - ID of the organization. - - client_id : str - ID of the client association to update. - - use_for_member_access : typing.Optional[bool] - Whether this client is used for member access to the organization. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateOrganizationClientResponseContent - Organization client successfully updated. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.organizations.clients.update( - id="id", - client_id="client_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.update( - id, client_id, use_for_member_access=use_for_member_access, request_options=request_options - ) - return _response.data diff --git a/src/auth0/management/organizations/clients/raw_client.py b/src/auth0/management/organizations/clients/raw_client.py deleted file mode 100644 index 6ce15de5..00000000 --- a/src/auth0/management/organizations/clients/raw_client.py +++ /dev/null @@ -1,1181 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ...core.api_error import ApiError -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.http_response import AsyncHttpResponse, HttpResponse -from ...core.jsonable_encoder import quote_path_param -from ...core.pagination import AsyncPager, SyncPager -from ...core.parse_error import ParsingError -from ...core.pydantic_utilities import parse_obj_as -from ...core.request_options import RequestOptions -from ...core.serialization import convert_and_respect_annotation_metadata -from ...errors.bad_request_error import BadRequestError -from ...errors.conflict_error import ConflictError -from ...errors.forbidden_error import ForbiddenError -from ...errors.not_found_error import NotFoundError -from ...errors.too_many_requests_error import TooManyRequestsError -from ...errors.unauthorized_error import UnauthorizedError -from ...types.create_organization_client_request_item import CreateOrganizationClientRequestItem -from ...types.create_organization_clients_response_content import CreateOrganizationClientsResponseContent -from ...types.get_organization_client_response_content import GetOrganizationClientResponseContent -from ...types.list_organization_clients_response_content import ListOrganizationClientsResponseContent -from ...types.organization_client import OrganizationClient -from ...types.update_organization_client_response_content import UpdateOrganizationClientResponseContent -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawClientsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - id: str, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[OrganizationClient, ListOrganizationClientsResponseContent]: - """ - List all clients associated with an organization, using checkpoint pagination. -
    -
  • - Note: The first time you call this endpoint, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no further results are remaining. -
  • -
- - Parameters - ---------- - id : str - ID of the organization. - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. Values greater than the maximum of 100 are capped at 100. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[OrganizationClient, ListOrganizationClientsResponseContent] - Organization clients successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(id)}/clients", - method="GET", - params={ - "from": from_, - "take": take, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListOrganizationClientsResponseContent, - parse_obj_as( - type_=ListOrganizationClientsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.clients - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - _get_next = lambda: self.list( - id, - from_=_parsed_next, - take=take, - request_options=request_options, - ) - return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - id: str, - *, - clients: typing.Sequence[CreateOrganizationClientRequestItem], - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[CreateOrganizationClientsResponseContent]: - """ - Associate one or more clients with an organization. - - Parameters - ---------- - id : str - ID of the organization. - - clients : typing.Sequence[CreateOrganizationClientRequestItem] - List of clients to associate with the organization. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CreateOrganizationClientsResponseContent] - Organization clients successfully associated. - """ - _response = self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(id)}/clients", - method="POST", - json={ - "clients": convert_and_respect_annotation_metadata( - object_=clients, annotation=typing.Sequence[CreateOrganizationClientRequestItem], direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateOrganizationClientsResponseContent, - parse_obj_as( - type_=CreateOrganizationClientsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def delete( - self, id: str, *, clients: typing.Sequence[str], request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[None]: - """ - Remove one or more client associations from an organization. - - Parameters - ---------- - id : str - ID of the organization. - - clients : typing.Sequence[str] - List of client IDs to disassociate from the organization. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(id)}/clients", - method="DELETE", - json={ - "clients": clients, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def get( - self, id: str, client_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetOrganizationClientResponseContent]: - """ - Get a specific client association for an organization. - - Parameters - ---------- - id : str - ID of the organization. - - client_id : str - ID of the client association to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetOrganizationClientResponseContent] - Organization client association successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(id)}/clients/{quote_path_param(client_id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetOrganizationClientResponseContent, - parse_obj_as( - type_=GetOrganizationClientResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def update( - self, - id: str, - client_id: str, - *, - use_for_member_access: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[UpdateOrganizationClientResponseContent]: - """ - Update an organization client association. - - Parameters - ---------- - id : str - ID of the organization. - - client_id : str - ID of the client association to update. - - use_for_member_access : typing.Optional[bool] - Whether this client is used for member access to the organization. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[UpdateOrganizationClientResponseContent] - Organization client successfully updated. - """ - _response = self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(id)}/clients/{quote_path_param(client_id)}", - method="PATCH", - json={ - "use_for_member_access": use_for_member_access, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateOrganizationClientResponseContent, - parse_obj_as( - type_=UpdateOrganizationClientResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawClientsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - id: str, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[OrganizationClient, ListOrganizationClientsResponseContent]: - """ - List all clients associated with an organization, using checkpoint pagination. -
    -
  • - Note: The first time you call this endpoint, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no further results are remaining. -
  • -
- - Parameters - ---------- - id : str - ID of the organization. - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. Values greater than the maximum of 100 are capped at 100. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[OrganizationClient, ListOrganizationClientsResponseContent] - Organization clients successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(id)}/clients", - method="GET", - params={ - "from": from_, - "take": take, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListOrganizationClientsResponseContent, - parse_obj_as( - type_=ListOrganizationClientsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.clients - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - - async def _get_next(): - return await self.list( - id, - from_=_parsed_next, - take=take, - request_options=request_options, - ) - - return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - id: str, - *, - clients: typing.Sequence[CreateOrganizationClientRequestItem], - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[CreateOrganizationClientsResponseContent]: - """ - Associate one or more clients with an organization. - - Parameters - ---------- - id : str - ID of the organization. - - clients : typing.Sequence[CreateOrganizationClientRequestItem] - List of clients to associate with the organization. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CreateOrganizationClientsResponseContent] - Organization clients successfully associated. - """ - _response = await self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(id)}/clients", - method="POST", - json={ - "clients": convert_and_respect_annotation_metadata( - object_=clients, annotation=typing.Sequence[CreateOrganizationClientRequestItem], direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateOrganizationClientsResponseContent, - parse_obj_as( - type_=CreateOrganizationClientsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def delete( - self, id: str, *, clients: typing.Sequence[str], request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Remove one or more client associations from an organization. - - Parameters - ---------- - id : str - ID of the organization. - - clients : typing.Sequence[str] - List of client IDs to disassociate from the organization. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(id)}/clients", - method="DELETE", - json={ - "clients": clients, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def get( - self, id: str, client_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetOrganizationClientResponseContent]: - """ - Get a specific client association for an organization. - - Parameters - ---------- - id : str - ID of the organization. - - client_id : str - ID of the client association to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetOrganizationClientResponseContent] - Organization client association successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(id)}/clients/{quote_path_param(client_id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetOrganizationClientResponseContent, - parse_obj_as( - type_=GetOrganizationClientResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def update( - self, - id: str, - client_id: str, - *, - use_for_member_access: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[UpdateOrganizationClientResponseContent]: - """ - Update an organization client association. - - Parameters - ---------- - id : str - ID of the organization. - - client_id : str - ID of the client association to update. - - use_for_member_access : typing.Optional[bool] - Whether this client is used for member access to the organization. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[UpdateOrganizationClientResponseContent] - Organization client successfully updated. - """ - _response = await self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(id)}/clients/{quote_path_param(client_id)}", - method="PATCH", - json={ - "use_for_member_access": use_for_member_access, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateOrganizationClientResponseContent, - parse_obj_as( - type_=UpdateOrganizationClientResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/organizations/connections/__init__.py b/src/auth0/management/organizations/connections/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/organizations/connections/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/organizations/connections/client.py b/src/auth0/management/organizations/connections/client.py deleted file mode 100644 index 37b48574..00000000 --- a/src/auth0/management/organizations/connections/client.py +++ /dev/null @@ -1,665 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.pagination import AsyncPager, SyncPager -from ...core.request_options import RequestOptions -from ...types.create_organization_all_connection_response_content import CreateOrganizationAllConnectionResponseContent -from ...types.get_organization_all_connection_response_content import GetOrganizationAllConnectionResponseContent -from ...types.list_organization_all_connections_offset_paginated_response_content import ( - ListOrganizationAllConnectionsOffsetPaginatedResponseContent, -) -from ...types.organization_access_level_enum import OrganizationAccessLevelEnum -from ...types.organization_access_level_enum_with_null import OrganizationAccessLevelEnumWithNull -from ...types.organization_all_connection_post import OrganizationAllConnectionPost -from ...types.organization_member_access_level_enum import OrganizationMemberAccessLevelEnum -from ...types.organization_member_access_level_enum_with_null import OrganizationMemberAccessLevelEnumWithNull -from ...types.update_organization_all_connection_response_content import UpdateOrganizationAllConnectionResponseContent -from .raw_client import AsyncRawConnectionsClient, RawConnectionsClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class ConnectionsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawConnectionsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawConnectionsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawConnectionsClient - """ - return self._raw_client - - def list( - self, - id: str, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - include_totals: typing.Optional[bool] = True, - is_enabled: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[OrganizationAllConnectionPost, ListOrganizationAllConnectionsOffsetPaginatedResponseContent]: - """ - Parameters - ---------- - id : str - Organization identifier. - - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. Defaults to 50. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - is_enabled : typing.Optional[bool] - Filter connections by enabled status. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[OrganizationAllConnectionPost, ListOrganizationAllConnectionsOffsetPaginatedResponseContent] - Connections successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.organizations.connections.list( - id="id", - page=1, - per_page=1, - include_totals=True, - is_enabled=True, - ) - for item in response: - yield item - # alternatively, you can paginate page-by-page - for page in response.iter_pages(): - yield page - """ - return self._raw_client.list( - id, - page=page, - per_page=per_page, - include_totals=include_totals, - is_enabled=is_enabled, - request_options=request_options, - ) - - def create( - self, - id: str, - *, - connection_id: str, - organization_connection_name: typing.Optional[str] = OMIT, - assign_membership_on_login: typing.Optional[bool] = OMIT, - show_as_button: typing.Optional[bool] = OMIT, - is_signup_enabled: typing.Optional[bool] = OMIT, - organization_access_level: typing.Optional[OrganizationAccessLevelEnum] = OMIT, - organization_member_access_level: typing.Optional[OrganizationMemberAccessLevelEnum] = OMIT, - is_enabled: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateOrganizationAllConnectionResponseContent: - """ - Parameters - ---------- - id : str - Organization identifier. - - connection_id : str - Connection identifier. - - organization_connection_name : typing.Optional[str] - Name of the connection in the scope of this organization. - - assign_membership_on_login : typing.Optional[bool] - When true, all users that log in with this connection will be automatically granted membership in the organization. When false, users must be granted membership in the organization before logging in with this connection. - - show_as_button : typing.Optional[bool] - Determines whether a connection should be displayed on this organization’s login prompt. Only applicable for enterprise connections. Default: true. - - is_signup_enabled : typing.Optional[bool] - Determines whether organization signup should be enabled for this organization connection. Only applicable for database connections. Default: false. - - organization_access_level : typing.Optional[OrganizationAccessLevelEnum] - - organization_member_access_level : typing.Optional[OrganizationMemberAccessLevelEnum] - - is_enabled : typing.Optional[bool] - Whether the connection is enabled for the organization. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateOrganizationAllConnectionResponseContent - Connection successfully created. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.organizations.connections.create( - id="id", - connection_id="connection_id", - ) - """ - _response = self._raw_client.create( - id, - connection_id=connection_id, - organization_connection_name=organization_connection_name, - assign_membership_on_login=assign_membership_on_login, - show_as_button=show_as_button, - is_signup_enabled=is_signup_enabled, - organization_access_level=organization_access_level, - organization_member_access_level=organization_member_access_level, - is_enabled=is_enabled, - request_options=request_options, - ) - return _response.data - - def get( - self, id: str, connection_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetOrganizationAllConnectionResponseContent: - """ - Parameters - ---------- - id : str - Organization identifier. - - connection_id : str - Connection identifier. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetOrganizationAllConnectionResponseContent - Connection successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.organizations.connections.get( - id="id", - connection_id="connection_id", - ) - """ - _response = self._raw_client.get(id, connection_id, request_options=request_options) - return _response.data - - def delete(self, id: str, connection_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Parameters - ---------- - id : str - Organization identifier. - - connection_id : str - Connection identifier. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.organizations.connections.delete( - id="id", - connection_id="connection_id", - ) - """ - _response = self._raw_client.delete(id, connection_id, request_options=request_options) - return _response.data - - def update( - self, - id: str, - connection_id: str, - *, - organization_connection_name: typing.Optional[str] = OMIT, - assign_membership_on_login: typing.Optional[bool] = OMIT, - show_as_button: typing.Optional[bool] = OMIT, - is_signup_enabled: typing.Optional[bool] = OMIT, - organization_access_level: typing.Optional[OrganizationAccessLevelEnumWithNull] = OMIT, - organization_member_access_level: typing.Optional[OrganizationMemberAccessLevelEnumWithNull] = OMIT, - is_enabled: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateOrganizationAllConnectionResponseContent: - """ - Parameters - ---------- - id : str - Organization identifier. - - connection_id : str - Connection identifier. - - organization_connection_name : typing.Optional[str] - Name of the connection in the scope of this organization. - - assign_membership_on_login : typing.Optional[bool] - When true, all users that log in with this connection will be automatically granted membership in the organization. When false, users must be granted membership in the organization before logging in with this connection. - - show_as_button : typing.Optional[bool] - Determines whether a connection should be displayed on this organization’s login prompt. Only applicable for enterprise connections. Default: true. - - is_signup_enabled : typing.Optional[bool] - Determines whether organization signup should be enabled for this organization connection. Only applicable for database connections. Default: false. - - organization_access_level : typing.Optional[OrganizationAccessLevelEnumWithNull] - - organization_member_access_level : typing.Optional[OrganizationMemberAccessLevelEnumWithNull] - - is_enabled : typing.Optional[bool] - Whether the connection is enabled for the organization. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateOrganizationAllConnectionResponseContent - Connection successfully updated. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.organizations.connections.update( - id="id", - connection_id="connection_id", - ) - """ - _response = self._raw_client.update( - id, - connection_id, - organization_connection_name=organization_connection_name, - assign_membership_on_login=assign_membership_on_login, - show_as_button=show_as_button, - is_signup_enabled=is_signup_enabled, - organization_access_level=organization_access_level, - organization_member_access_level=organization_member_access_level, - is_enabled=is_enabled, - request_options=request_options, - ) - return _response.data - - -class AsyncConnectionsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawConnectionsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawConnectionsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawConnectionsClient - """ - return self._raw_client - - async def list( - self, - id: str, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - include_totals: typing.Optional[bool] = True, - is_enabled: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[OrganizationAllConnectionPost, ListOrganizationAllConnectionsOffsetPaginatedResponseContent]: - """ - Parameters - ---------- - id : str - Organization identifier. - - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. Defaults to 50. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - is_enabled : typing.Optional[bool] - Filter connections by enabled status. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[OrganizationAllConnectionPost, ListOrganizationAllConnectionsOffsetPaginatedResponseContent] - Connections successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.organizations.connections.list( - id="id", - page=1, - per_page=1, - include_totals=True, - is_enabled=True, - ) - async for item in response: - yield item - - # alternatively, you can paginate page-by-page - async for page in response.iter_pages(): - yield page - - - asyncio.run(main()) - """ - return await self._raw_client.list( - id, - page=page, - per_page=per_page, - include_totals=include_totals, - is_enabled=is_enabled, - request_options=request_options, - ) - - async def create( - self, - id: str, - *, - connection_id: str, - organization_connection_name: typing.Optional[str] = OMIT, - assign_membership_on_login: typing.Optional[bool] = OMIT, - show_as_button: typing.Optional[bool] = OMIT, - is_signup_enabled: typing.Optional[bool] = OMIT, - organization_access_level: typing.Optional[OrganizationAccessLevelEnum] = OMIT, - organization_member_access_level: typing.Optional[OrganizationMemberAccessLevelEnum] = OMIT, - is_enabled: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateOrganizationAllConnectionResponseContent: - """ - Parameters - ---------- - id : str - Organization identifier. - - connection_id : str - Connection identifier. - - organization_connection_name : typing.Optional[str] - Name of the connection in the scope of this organization. - - assign_membership_on_login : typing.Optional[bool] - When true, all users that log in with this connection will be automatically granted membership in the organization. When false, users must be granted membership in the organization before logging in with this connection. - - show_as_button : typing.Optional[bool] - Determines whether a connection should be displayed on this organization’s login prompt. Only applicable for enterprise connections. Default: true. - - is_signup_enabled : typing.Optional[bool] - Determines whether organization signup should be enabled for this organization connection. Only applicable for database connections. Default: false. - - organization_access_level : typing.Optional[OrganizationAccessLevelEnum] - - organization_member_access_level : typing.Optional[OrganizationMemberAccessLevelEnum] - - is_enabled : typing.Optional[bool] - Whether the connection is enabled for the organization. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateOrganizationAllConnectionResponseContent - Connection successfully created. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.organizations.connections.create( - id="id", - connection_id="connection_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - id, - connection_id=connection_id, - organization_connection_name=organization_connection_name, - assign_membership_on_login=assign_membership_on_login, - show_as_button=show_as_button, - is_signup_enabled=is_signup_enabled, - organization_access_level=organization_access_level, - organization_member_access_level=organization_member_access_level, - is_enabled=is_enabled, - request_options=request_options, - ) - return _response.data - - async def get( - self, id: str, connection_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetOrganizationAllConnectionResponseContent: - """ - Parameters - ---------- - id : str - Organization identifier. - - connection_id : str - Connection identifier. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetOrganizationAllConnectionResponseContent - Connection successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.organizations.connections.get( - id="id", - connection_id="connection_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.get(id, connection_id, request_options=request_options) - return _response.data - - async def delete( - self, id: str, connection_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> None: - """ - Parameters - ---------- - id : str - Organization identifier. - - connection_id : str - Connection identifier. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.organizations.connections.delete( - id="id", - connection_id="connection_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete(id, connection_id, request_options=request_options) - return _response.data - - async def update( - self, - id: str, - connection_id: str, - *, - organization_connection_name: typing.Optional[str] = OMIT, - assign_membership_on_login: typing.Optional[bool] = OMIT, - show_as_button: typing.Optional[bool] = OMIT, - is_signup_enabled: typing.Optional[bool] = OMIT, - organization_access_level: typing.Optional[OrganizationAccessLevelEnumWithNull] = OMIT, - organization_member_access_level: typing.Optional[OrganizationMemberAccessLevelEnumWithNull] = OMIT, - is_enabled: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateOrganizationAllConnectionResponseContent: - """ - Parameters - ---------- - id : str - Organization identifier. - - connection_id : str - Connection identifier. - - organization_connection_name : typing.Optional[str] - Name of the connection in the scope of this organization. - - assign_membership_on_login : typing.Optional[bool] - When true, all users that log in with this connection will be automatically granted membership in the organization. When false, users must be granted membership in the organization before logging in with this connection. - - show_as_button : typing.Optional[bool] - Determines whether a connection should be displayed on this organization’s login prompt. Only applicable for enterprise connections. Default: true. - - is_signup_enabled : typing.Optional[bool] - Determines whether organization signup should be enabled for this organization connection. Only applicable for database connections. Default: false. - - organization_access_level : typing.Optional[OrganizationAccessLevelEnumWithNull] - - organization_member_access_level : typing.Optional[OrganizationMemberAccessLevelEnumWithNull] - - is_enabled : typing.Optional[bool] - Whether the connection is enabled for the organization. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateOrganizationAllConnectionResponseContent - Connection successfully updated. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.organizations.connections.update( - id="id", - connection_id="connection_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.update( - id, - connection_id, - organization_connection_name=organization_connection_name, - assign_membership_on_login=assign_membership_on_login, - show_as_button=show_as_button, - is_signup_enabled=is_signup_enabled, - organization_access_level=organization_access_level, - organization_member_access_level=organization_member_access_level, - is_enabled=is_enabled, - request_options=request_options, - ) - return _response.data diff --git a/src/auth0/management/organizations/connections/raw_client.py b/src/auth0/management/organizations/connections/raw_client.py deleted file mode 100644 index f5e3b466..00000000 --- a/src/auth0/management/organizations/connections/raw_client.py +++ /dev/null @@ -1,1175 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ...core.api_error import ApiError -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.http_response import AsyncHttpResponse, HttpResponse -from ...core.jsonable_encoder import quote_path_param -from ...core.pagination import AsyncPager, SyncPager -from ...core.parse_error import ParsingError -from ...core.pydantic_utilities import parse_obj_as -from ...core.request_options import RequestOptions -from ...errors.bad_request_error import BadRequestError -from ...errors.conflict_error import ConflictError -from ...errors.forbidden_error import ForbiddenError -from ...errors.not_found_error import NotFoundError -from ...errors.too_many_requests_error import TooManyRequestsError -from ...errors.unauthorized_error import UnauthorizedError -from ...types.create_organization_all_connection_response_content import CreateOrganizationAllConnectionResponseContent -from ...types.get_organization_all_connection_response_content import GetOrganizationAllConnectionResponseContent -from ...types.list_organization_all_connections_offset_paginated_response_content import ( - ListOrganizationAllConnectionsOffsetPaginatedResponseContent, -) -from ...types.organization_access_level_enum import OrganizationAccessLevelEnum -from ...types.organization_access_level_enum_with_null import OrganizationAccessLevelEnumWithNull -from ...types.organization_all_connection_post import OrganizationAllConnectionPost -from ...types.organization_member_access_level_enum import OrganizationMemberAccessLevelEnum -from ...types.organization_member_access_level_enum_with_null import OrganizationMemberAccessLevelEnumWithNull -from ...types.update_organization_all_connection_response_content import UpdateOrganizationAllConnectionResponseContent -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawConnectionsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - id: str, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - include_totals: typing.Optional[bool] = True, - is_enabled: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[OrganizationAllConnectionPost, ListOrganizationAllConnectionsOffsetPaginatedResponseContent]: - """ - Parameters - ---------- - id : str - Organization identifier. - - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. Defaults to 50. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - is_enabled : typing.Optional[bool] - Filter connections by enabled status. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[OrganizationAllConnectionPost, ListOrganizationAllConnectionsOffsetPaginatedResponseContent] - Connections successfully retrieved. - """ - page = page if page is not None else 0 - - _response = self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(id)}/connections", - method="GET", - params={ - "page": page, - "per_page": per_page, - "include_totals": include_totals, - "is_enabled": is_enabled, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListOrganizationAllConnectionsOffsetPaginatedResponseContent, - parse_obj_as( - type_=ListOrganizationAllConnectionsOffsetPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.connections - _has_next = len(_items or []) > 0 - _get_next = lambda: self.list( - id, - page=page + 1, - per_page=per_page, - include_totals=include_totals, - is_enabled=is_enabled, - request_options=request_options, - ) - return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - id: str, - *, - connection_id: str, - organization_connection_name: typing.Optional[str] = OMIT, - assign_membership_on_login: typing.Optional[bool] = OMIT, - show_as_button: typing.Optional[bool] = OMIT, - is_signup_enabled: typing.Optional[bool] = OMIT, - organization_access_level: typing.Optional[OrganizationAccessLevelEnum] = OMIT, - organization_member_access_level: typing.Optional[OrganizationMemberAccessLevelEnum] = OMIT, - is_enabled: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[CreateOrganizationAllConnectionResponseContent]: - """ - Parameters - ---------- - id : str - Organization identifier. - - connection_id : str - Connection identifier. - - organization_connection_name : typing.Optional[str] - Name of the connection in the scope of this organization. - - assign_membership_on_login : typing.Optional[bool] - When true, all users that log in with this connection will be automatically granted membership in the organization. When false, users must be granted membership in the organization before logging in with this connection. - - show_as_button : typing.Optional[bool] - Determines whether a connection should be displayed on this organization’s login prompt. Only applicable for enterprise connections. Default: true. - - is_signup_enabled : typing.Optional[bool] - Determines whether organization signup should be enabled for this organization connection. Only applicable for database connections. Default: false. - - organization_access_level : typing.Optional[OrganizationAccessLevelEnum] - - organization_member_access_level : typing.Optional[OrganizationMemberAccessLevelEnum] - - is_enabled : typing.Optional[bool] - Whether the connection is enabled for the organization. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CreateOrganizationAllConnectionResponseContent] - Connection successfully created. - """ - _response = self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(id)}/connections", - method="POST", - json={ - "organization_connection_name": organization_connection_name, - "assign_membership_on_login": assign_membership_on_login, - "show_as_button": show_as_button, - "is_signup_enabled": is_signup_enabled, - "organization_access_level": organization_access_level, - "organization_member_access_level": organization_member_access_level, - "is_enabled": is_enabled, - "connection_id": connection_id, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateOrganizationAllConnectionResponseContent, - parse_obj_as( - type_=CreateOrganizationAllConnectionResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def get( - self, id: str, connection_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetOrganizationAllConnectionResponseContent]: - """ - Parameters - ---------- - id : str - Organization identifier. - - connection_id : str - Connection identifier. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetOrganizationAllConnectionResponseContent] - Connection successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(id)}/connections/{quote_path_param(connection_id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetOrganizationAllConnectionResponseContent, - parse_obj_as( - type_=GetOrganizationAllConnectionResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def delete( - self, id: str, connection_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[None]: - """ - Parameters - ---------- - id : str - Organization identifier. - - connection_id : str - Connection identifier. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(id)}/connections/{quote_path_param(connection_id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def update( - self, - id: str, - connection_id: str, - *, - organization_connection_name: typing.Optional[str] = OMIT, - assign_membership_on_login: typing.Optional[bool] = OMIT, - show_as_button: typing.Optional[bool] = OMIT, - is_signup_enabled: typing.Optional[bool] = OMIT, - organization_access_level: typing.Optional[OrganizationAccessLevelEnumWithNull] = OMIT, - organization_member_access_level: typing.Optional[OrganizationMemberAccessLevelEnumWithNull] = OMIT, - is_enabled: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[UpdateOrganizationAllConnectionResponseContent]: - """ - Parameters - ---------- - id : str - Organization identifier. - - connection_id : str - Connection identifier. - - organization_connection_name : typing.Optional[str] - Name of the connection in the scope of this organization. - - assign_membership_on_login : typing.Optional[bool] - When true, all users that log in with this connection will be automatically granted membership in the organization. When false, users must be granted membership in the organization before logging in with this connection. - - show_as_button : typing.Optional[bool] - Determines whether a connection should be displayed on this organization’s login prompt. Only applicable for enterprise connections. Default: true. - - is_signup_enabled : typing.Optional[bool] - Determines whether organization signup should be enabled for this organization connection. Only applicable for database connections. Default: false. - - organization_access_level : typing.Optional[OrganizationAccessLevelEnumWithNull] - - organization_member_access_level : typing.Optional[OrganizationMemberAccessLevelEnumWithNull] - - is_enabled : typing.Optional[bool] - Whether the connection is enabled for the organization. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[UpdateOrganizationAllConnectionResponseContent] - Connection successfully updated. - """ - _response = self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(id)}/connections/{quote_path_param(connection_id)}", - method="PATCH", - json={ - "organization_connection_name": organization_connection_name, - "assign_membership_on_login": assign_membership_on_login, - "show_as_button": show_as_button, - "is_signup_enabled": is_signup_enabled, - "organization_access_level": organization_access_level, - "organization_member_access_level": organization_member_access_level, - "is_enabled": is_enabled, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateOrganizationAllConnectionResponseContent, - parse_obj_as( - type_=UpdateOrganizationAllConnectionResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawConnectionsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - id: str, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - include_totals: typing.Optional[bool] = True, - is_enabled: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[OrganizationAllConnectionPost, ListOrganizationAllConnectionsOffsetPaginatedResponseContent]: - """ - Parameters - ---------- - id : str - Organization identifier. - - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. Defaults to 50. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - is_enabled : typing.Optional[bool] - Filter connections by enabled status. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[OrganizationAllConnectionPost, ListOrganizationAllConnectionsOffsetPaginatedResponseContent] - Connections successfully retrieved. - """ - page = page if page is not None else 0 - - _response = await self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(id)}/connections", - method="GET", - params={ - "page": page, - "per_page": per_page, - "include_totals": include_totals, - "is_enabled": is_enabled, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListOrganizationAllConnectionsOffsetPaginatedResponseContent, - parse_obj_as( - type_=ListOrganizationAllConnectionsOffsetPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.connections - _has_next = len(_items or []) > 0 - - async def _get_next(): - return await self.list( - id, - page=page + 1, - per_page=per_page, - include_totals=include_totals, - is_enabled=is_enabled, - request_options=request_options, - ) - - return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - id: str, - *, - connection_id: str, - organization_connection_name: typing.Optional[str] = OMIT, - assign_membership_on_login: typing.Optional[bool] = OMIT, - show_as_button: typing.Optional[bool] = OMIT, - is_signup_enabled: typing.Optional[bool] = OMIT, - organization_access_level: typing.Optional[OrganizationAccessLevelEnum] = OMIT, - organization_member_access_level: typing.Optional[OrganizationMemberAccessLevelEnum] = OMIT, - is_enabled: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[CreateOrganizationAllConnectionResponseContent]: - """ - Parameters - ---------- - id : str - Organization identifier. - - connection_id : str - Connection identifier. - - organization_connection_name : typing.Optional[str] - Name of the connection in the scope of this organization. - - assign_membership_on_login : typing.Optional[bool] - When true, all users that log in with this connection will be automatically granted membership in the organization. When false, users must be granted membership in the organization before logging in with this connection. - - show_as_button : typing.Optional[bool] - Determines whether a connection should be displayed on this organization’s login prompt. Only applicable for enterprise connections. Default: true. - - is_signup_enabled : typing.Optional[bool] - Determines whether organization signup should be enabled for this organization connection. Only applicable for database connections. Default: false. - - organization_access_level : typing.Optional[OrganizationAccessLevelEnum] - - organization_member_access_level : typing.Optional[OrganizationMemberAccessLevelEnum] - - is_enabled : typing.Optional[bool] - Whether the connection is enabled for the organization. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CreateOrganizationAllConnectionResponseContent] - Connection successfully created. - """ - _response = await self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(id)}/connections", - method="POST", - json={ - "organization_connection_name": organization_connection_name, - "assign_membership_on_login": assign_membership_on_login, - "show_as_button": show_as_button, - "is_signup_enabled": is_signup_enabled, - "organization_access_level": organization_access_level, - "organization_member_access_level": organization_member_access_level, - "is_enabled": is_enabled, - "connection_id": connection_id, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateOrganizationAllConnectionResponseContent, - parse_obj_as( - type_=CreateOrganizationAllConnectionResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def get( - self, id: str, connection_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetOrganizationAllConnectionResponseContent]: - """ - Parameters - ---------- - id : str - Organization identifier. - - connection_id : str - Connection identifier. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetOrganizationAllConnectionResponseContent] - Connection successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(id)}/connections/{quote_path_param(connection_id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetOrganizationAllConnectionResponseContent, - parse_obj_as( - type_=GetOrganizationAllConnectionResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def delete( - self, id: str, connection_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Parameters - ---------- - id : str - Organization identifier. - - connection_id : str - Connection identifier. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(id)}/connections/{quote_path_param(connection_id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def update( - self, - id: str, - connection_id: str, - *, - organization_connection_name: typing.Optional[str] = OMIT, - assign_membership_on_login: typing.Optional[bool] = OMIT, - show_as_button: typing.Optional[bool] = OMIT, - is_signup_enabled: typing.Optional[bool] = OMIT, - organization_access_level: typing.Optional[OrganizationAccessLevelEnumWithNull] = OMIT, - organization_member_access_level: typing.Optional[OrganizationMemberAccessLevelEnumWithNull] = OMIT, - is_enabled: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[UpdateOrganizationAllConnectionResponseContent]: - """ - Parameters - ---------- - id : str - Organization identifier. - - connection_id : str - Connection identifier. - - organization_connection_name : typing.Optional[str] - Name of the connection in the scope of this organization. - - assign_membership_on_login : typing.Optional[bool] - When true, all users that log in with this connection will be automatically granted membership in the organization. When false, users must be granted membership in the organization before logging in with this connection. - - show_as_button : typing.Optional[bool] - Determines whether a connection should be displayed on this organization’s login prompt. Only applicable for enterprise connections. Default: true. - - is_signup_enabled : typing.Optional[bool] - Determines whether organization signup should be enabled for this organization connection. Only applicable for database connections. Default: false. - - organization_access_level : typing.Optional[OrganizationAccessLevelEnumWithNull] - - organization_member_access_level : typing.Optional[OrganizationMemberAccessLevelEnumWithNull] - - is_enabled : typing.Optional[bool] - Whether the connection is enabled for the organization. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[UpdateOrganizationAllConnectionResponseContent] - Connection successfully updated. - """ - _response = await self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(id)}/connections/{quote_path_param(connection_id)}", - method="PATCH", - json={ - "organization_connection_name": organization_connection_name, - "assign_membership_on_login": assign_membership_on_login, - "show_as_button": show_as_button, - "is_signup_enabled": is_signup_enabled, - "organization_access_level": organization_access_level, - "organization_member_access_level": organization_member_access_level, - "is_enabled": is_enabled, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateOrganizationAllConnectionResponseContent, - parse_obj_as( - type_=UpdateOrganizationAllConnectionResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/organizations/discovery_domains/__init__.py b/src/auth0/management/organizations/discovery_domains/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/organizations/discovery_domains/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/organizations/discovery_domains/client.py b/src/auth0/management/organizations/discovery_domains/client.py deleted file mode 100644 index 69db47eb..00000000 --- a/src/auth0/management/organizations/discovery_domains/client.py +++ /dev/null @@ -1,649 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.pagination import AsyncPager, SyncPager -from ...core.request_options import RequestOptions -from ...types.create_organization_discovery_domain_response_content import ( - CreateOrganizationDiscoveryDomainResponseContent, -) -from ...types.get_organization_discovery_domain_by_name_response_content import ( - GetOrganizationDiscoveryDomainByNameResponseContent, -) -from ...types.get_organization_discovery_domain_response_content import GetOrganizationDiscoveryDomainResponseContent -from ...types.list_organization_discovery_domains_response_content import ( - ListOrganizationDiscoveryDomainsResponseContent, -) -from ...types.organization_discovery_domain import OrganizationDiscoveryDomain -from ...types.organization_discovery_domain_status import OrganizationDiscoveryDomainStatus -from ...types.update_organization_discovery_domain_response_content import ( - UpdateOrganizationDiscoveryDomainResponseContent, -) -from .raw_client import AsyncRawDiscoveryDomainsClient, RawDiscoveryDomainsClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class DiscoveryDomainsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawDiscoveryDomainsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawDiscoveryDomainsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawDiscoveryDomainsClient - """ - return self._raw_client - - def list( - self, - id: str, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[OrganizationDiscoveryDomain, ListOrganizationDiscoveryDomainsResponseContent]: - """ - Retrieve list of all organization discovery domains associated with the specified organization. - This endpoint is subject to eventual consistency; newly created, updated, or deleted discovery domains may not immediately appear in the response. - - Parameters - ---------- - id : str - ID of the organization. - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[OrganizationDiscoveryDomain, ListOrganizationDiscoveryDomainsResponseContent] - Organization discovery domains retrieved successfully. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.organizations.discovery_domains.list( - id="id", - from_="from", - take=1, - ) - for item in response: - yield item - # alternatively, you can paginate page-by-page - for page in response.iter_pages(): - yield page - """ - return self._raw_client.list(id, from_=from_, take=take, request_options=request_options) - - def create( - self, - id: str, - *, - domain: str, - status: typing.Optional[OrganizationDiscoveryDomainStatus] = OMIT, - use_for_organization_discovery: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateOrganizationDiscoveryDomainResponseContent: - """ - Create a new discovery domain for an organization. - - Parameters - ---------- - id : str - ID of the organization. - - domain : str - The domain name to associate with the organization e.g. acme.com. - - status : typing.Optional[OrganizationDiscoveryDomainStatus] - - use_for_organization_discovery : typing.Optional[bool] - Indicates whether this domain should be used for organization discovery. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateOrganizationDiscoveryDomainResponseContent - Organization discovery domain successfully created. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.organizations.discovery_domains.create( - id="id", - domain="domain", - ) - """ - _response = self._raw_client.create( - id, - domain=domain, - status=status, - use_for_organization_discovery=use_for_organization_discovery, - request_options=request_options, - ) - return _response.data - - def get_by_name( - self, id: str, discovery_domain: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetOrganizationDiscoveryDomainByNameResponseContent: - """ - Retrieve details about a single organization discovery domain specified by domain name. - This endpoint is subject to eventual consistency; newly created, updated, or deleted discovery domains may not immediately appear in the response. - - Parameters - ---------- - id : str - ID of the organization. - - discovery_domain : str - Domain name of the discovery domain. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetOrganizationDiscoveryDomainByNameResponseContent - Organization discovery domain successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.organizations.discovery_domains.get_by_name( - id="id", - discovery_domain="discovery_domain", - ) - """ - _response = self._raw_client.get_by_name(id, discovery_domain, request_options=request_options) - return _response.data - - def get( - self, id: str, discovery_domain_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetOrganizationDiscoveryDomainResponseContent: - """ - Retrieve details about a single organization discovery domain specified by ID. - This endpoint is subject to eventual consistency; newly created, updated, or deleted discovery domains may not immediately appear in the response. - - Parameters - ---------- - id : str - ID of the organization. - - discovery_domain_id : str - ID of the discovery domain. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetOrganizationDiscoveryDomainResponseContent - Organization discovery domain successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.organizations.discovery_domains.get( - id="id", - discovery_domain_id="discovery_domain_id", - ) - """ - _response = self._raw_client.get(id, discovery_domain_id, request_options=request_options) - return _response.data - - def delete( - self, id: str, discovery_domain_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> None: - """ - Remove a discovery domain from an organization. This action cannot be undone. - - Parameters - ---------- - id : str - ID of the organization. - - discovery_domain_id : str - ID of the discovery domain. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.organizations.discovery_domains.delete( - id="id", - discovery_domain_id="discovery_domain_id", - ) - """ - _response = self._raw_client.delete(id, discovery_domain_id, request_options=request_options) - return _response.data - - def update( - self, - id: str, - discovery_domain_id: str, - *, - status: typing.Optional[OrganizationDiscoveryDomainStatus] = OMIT, - use_for_organization_discovery: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateOrganizationDiscoveryDomainResponseContent: - """ - Update the verification status and/or use_for_organization_discovery for an organization discovery domain. The `status` field must be either `pending` or `verified`. The `use_for_organization_discovery` field can be `true` or `false` (default: `true`). - - Parameters - ---------- - id : str - ID of the organization. - - discovery_domain_id : str - ID of the discovery domain to update. - - status : typing.Optional[OrganizationDiscoveryDomainStatus] - - use_for_organization_discovery : typing.Optional[bool] - Indicates whether this domain should be used for organization discovery. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateOrganizationDiscoveryDomainResponseContent - Organization discovery domain successfully updated. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.organizations.discovery_domains.update( - id="id", - discovery_domain_id="discovery_domain_id", - ) - """ - _response = self._raw_client.update( - id, - discovery_domain_id, - status=status, - use_for_organization_discovery=use_for_organization_discovery, - request_options=request_options, - ) - return _response.data - - -class AsyncDiscoveryDomainsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawDiscoveryDomainsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawDiscoveryDomainsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawDiscoveryDomainsClient - """ - return self._raw_client - - async def list( - self, - id: str, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[OrganizationDiscoveryDomain, ListOrganizationDiscoveryDomainsResponseContent]: - """ - Retrieve list of all organization discovery domains associated with the specified organization. - This endpoint is subject to eventual consistency; newly created, updated, or deleted discovery domains may not immediately appear in the response. - - Parameters - ---------- - id : str - ID of the organization. - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[OrganizationDiscoveryDomain, ListOrganizationDiscoveryDomainsResponseContent] - Organization discovery domains retrieved successfully. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.organizations.discovery_domains.list( - id="id", - from_="from", - take=1, - ) - async for item in response: - yield item - - # alternatively, you can paginate page-by-page - async for page in response.iter_pages(): - yield page - - - asyncio.run(main()) - """ - return await self._raw_client.list(id, from_=from_, take=take, request_options=request_options) - - async def create( - self, - id: str, - *, - domain: str, - status: typing.Optional[OrganizationDiscoveryDomainStatus] = OMIT, - use_for_organization_discovery: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateOrganizationDiscoveryDomainResponseContent: - """ - Create a new discovery domain for an organization. - - Parameters - ---------- - id : str - ID of the organization. - - domain : str - The domain name to associate with the organization e.g. acme.com. - - status : typing.Optional[OrganizationDiscoveryDomainStatus] - - use_for_organization_discovery : typing.Optional[bool] - Indicates whether this domain should be used for organization discovery. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateOrganizationDiscoveryDomainResponseContent - Organization discovery domain successfully created. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.organizations.discovery_domains.create( - id="id", - domain="domain", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - id, - domain=domain, - status=status, - use_for_organization_discovery=use_for_organization_discovery, - request_options=request_options, - ) - return _response.data - - async def get_by_name( - self, id: str, discovery_domain: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetOrganizationDiscoveryDomainByNameResponseContent: - """ - Retrieve details about a single organization discovery domain specified by domain name. - This endpoint is subject to eventual consistency; newly created, updated, or deleted discovery domains may not immediately appear in the response. - - Parameters - ---------- - id : str - ID of the organization. - - discovery_domain : str - Domain name of the discovery domain. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetOrganizationDiscoveryDomainByNameResponseContent - Organization discovery domain successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.organizations.discovery_domains.get_by_name( - id="id", - discovery_domain="discovery_domain", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.get_by_name(id, discovery_domain, request_options=request_options) - return _response.data - - async def get( - self, id: str, discovery_domain_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetOrganizationDiscoveryDomainResponseContent: - """ - Retrieve details about a single organization discovery domain specified by ID. - This endpoint is subject to eventual consistency; newly created, updated, or deleted discovery domains may not immediately appear in the response. - - Parameters - ---------- - id : str - ID of the organization. - - discovery_domain_id : str - ID of the discovery domain. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetOrganizationDiscoveryDomainResponseContent - Organization discovery domain successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.organizations.discovery_domains.get( - id="id", - discovery_domain_id="discovery_domain_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.get(id, discovery_domain_id, request_options=request_options) - return _response.data - - async def delete( - self, id: str, discovery_domain_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> None: - """ - Remove a discovery domain from an organization. This action cannot be undone. - - Parameters - ---------- - id : str - ID of the organization. - - discovery_domain_id : str - ID of the discovery domain. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.organizations.discovery_domains.delete( - id="id", - discovery_domain_id="discovery_domain_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete(id, discovery_domain_id, request_options=request_options) - return _response.data - - async def update( - self, - id: str, - discovery_domain_id: str, - *, - status: typing.Optional[OrganizationDiscoveryDomainStatus] = OMIT, - use_for_organization_discovery: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateOrganizationDiscoveryDomainResponseContent: - """ - Update the verification status and/or use_for_organization_discovery for an organization discovery domain. The `status` field must be either `pending` or `verified`. The `use_for_organization_discovery` field can be `true` or `false` (default: `true`). - - Parameters - ---------- - id : str - ID of the organization. - - discovery_domain_id : str - ID of the discovery domain to update. - - status : typing.Optional[OrganizationDiscoveryDomainStatus] - - use_for_organization_discovery : typing.Optional[bool] - Indicates whether this domain should be used for organization discovery. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateOrganizationDiscoveryDomainResponseContent - Organization discovery domain successfully updated. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.organizations.discovery_domains.update( - id="id", - discovery_domain_id="discovery_domain_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.update( - id, - discovery_domain_id, - status=status, - use_for_organization_discovery=use_for_organization_discovery, - request_options=request_options, - ) - return _response.data diff --git a/src/auth0/management/organizations/discovery_domains/raw_client.py b/src/auth0/management/organizations/discovery_domains/raw_client.py deleted file mode 100644 index c6c9ddaa..00000000 --- a/src/auth0/management/organizations/discovery_domains/raw_client.py +++ /dev/null @@ -1,1307 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ...core.api_error import ApiError -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.http_response import AsyncHttpResponse, HttpResponse -from ...core.jsonable_encoder import quote_path_param -from ...core.pagination import AsyncPager, SyncPager -from ...core.parse_error import ParsingError -from ...core.pydantic_utilities import parse_obj_as -from ...core.request_options import RequestOptions -from ...errors.bad_request_error import BadRequestError -from ...errors.conflict_error import ConflictError -from ...errors.forbidden_error import ForbiddenError -from ...errors.not_found_error import NotFoundError -from ...errors.too_many_requests_error import TooManyRequestsError -from ...errors.unauthorized_error import UnauthorizedError -from ...types.create_organization_discovery_domain_response_content import ( - CreateOrganizationDiscoveryDomainResponseContent, -) -from ...types.get_organization_discovery_domain_by_name_response_content import ( - GetOrganizationDiscoveryDomainByNameResponseContent, -) -from ...types.get_organization_discovery_domain_response_content import GetOrganizationDiscoveryDomainResponseContent -from ...types.list_organization_discovery_domains_response_content import ( - ListOrganizationDiscoveryDomainsResponseContent, -) -from ...types.organization_discovery_domain import OrganizationDiscoveryDomain -from ...types.organization_discovery_domain_status import OrganizationDiscoveryDomainStatus -from ...types.update_organization_discovery_domain_response_content import ( - UpdateOrganizationDiscoveryDomainResponseContent, -) -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawDiscoveryDomainsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - id: str, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[OrganizationDiscoveryDomain, ListOrganizationDiscoveryDomainsResponseContent]: - """ - Retrieve list of all organization discovery domains associated with the specified organization. - This endpoint is subject to eventual consistency; newly created, updated, or deleted discovery domains may not immediately appear in the response. - - Parameters - ---------- - id : str - ID of the organization. - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[OrganizationDiscoveryDomain, ListOrganizationDiscoveryDomainsResponseContent] - Organization discovery domains retrieved successfully. - """ - _response = self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(id)}/discovery-domains", - method="GET", - params={ - "from": from_, - "take": take, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListOrganizationDiscoveryDomainsResponseContent, - parse_obj_as( - type_=ListOrganizationDiscoveryDomainsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.domains - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - _get_next = lambda: self.list( - id, - from_=_parsed_next, - take=take, - request_options=request_options, - ) - return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - id: str, - *, - domain: str, - status: typing.Optional[OrganizationDiscoveryDomainStatus] = OMIT, - use_for_organization_discovery: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[CreateOrganizationDiscoveryDomainResponseContent]: - """ - Create a new discovery domain for an organization. - - Parameters - ---------- - id : str - ID of the organization. - - domain : str - The domain name to associate with the organization e.g. acme.com. - - status : typing.Optional[OrganizationDiscoveryDomainStatus] - - use_for_organization_discovery : typing.Optional[bool] - Indicates whether this domain should be used for organization discovery. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CreateOrganizationDiscoveryDomainResponseContent] - Organization discovery domain successfully created. - """ - _response = self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(id)}/discovery-domains", - method="POST", - json={ - "domain": domain, - "status": status, - "use_for_organization_discovery": use_for_organization_discovery, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateOrganizationDiscoveryDomainResponseContent, - parse_obj_as( - type_=CreateOrganizationDiscoveryDomainResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def get_by_name( - self, id: str, discovery_domain: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetOrganizationDiscoveryDomainByNameResponseContent]: - """ - Retrieve details about a single organization discovery domain specified by domain name. - This endpoint is subject to eventual consistency; newly created, updated, or deleted discovery domains may not immediately appear in the response. - - Parameters - ---------- - id : str - ID of the organization. - - discovery_domain : str - Domain name of the discovery domain. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetOrganizationDiscoveryDomainByNameResponseContent] - Organization discovery domain successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(id)}/discovery-domains/name/{quote_path_param(discovery_domain)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetOrganizationDiscoveryDomainByNameResponseContent, - parse_obj_as( - type_=GetOrganizationDiscoveryDomainByNameResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def get( - self, id: str, discovery_domain_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetOrganizationDiscoveryDomainResponseContent]: - """ - Retrieve details about a single organization discovery domain specified by ID. - This endpoint is subject to eventual consistency; newly created, updated, or deleted discovery domains may not immediately appear in the response. - - Parameters - ---------- - id : str - ID of the organization. - - discovery_domain_id : str - ID of the discovery domain. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetOrganizationDiscoveryDomainResponseContent] - Organization discovery domain successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(id)}/discovery-domains/{quote_path_param(discovery_domain_id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetOrganizationDiscoveryDomainResponseContent, - parse_obj_as( - type_=GetOrganizationDiscoveryDomainResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def delete( - self, id: str, discovery_domain_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[None]: - """ - Remove a discovery domain from an organization. This action cannot be undone. - - Parameters - ---------- - id : str - ID of the organization. - - discovery_domain_id : str - ID of the discovery domain. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(id)}/discovery-domains/{quote_path_param(discovery_domain_id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def update( - self, - id: str, - discovery_domain_id: str, - *, - status: typing.Optional[OrganizationDiscoveryDomainStatus] = OMIT, - use_for_organization_discovery: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[UpdateOrganizationDiscoveryDomainResponseContent]: - """ - Update the verification status and/or use_for_organization_discovery for an organization discovery domain. The `status` field must be either `pending` or `verified`. The `use_for_organization_discovery` field can be `true` or `false` (default: `true`). - - Parameters - ---------- - id : str - ID of the organization. - - discovery_domain_id : str - ID of the discovery domain to update. - - status : typing.Optional[OrganizationDiscoveryDomainStatus] - - use_for_organization_discovery : typing.Optional[bool] - Indicates whether this domain should be used for organization discovery. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[UpdateOrganizationDiscoveryDomainResponseContent] - Organization discovery domain successfully updated. - """ - _response = self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(id)}/discovery-domains/{quote_path_param(discovery_domain_id)}", - method="PATCH", - json={ - "status": status, - "use_for_organization_discovery": use_for_organization_discovery, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateOrganizationDiscoveryDomainResponseContent, - parse_obj_as( - type_=UpdateOrganizationDiscoveryDomainResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawDiscoveryDomainsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - id: str, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[OrganizationDiscoveryDomain, ListOrganizationDiscoveryDomainsResponseContent]: - """ - Retrieve list of all organization discovery domains associated with the specified organization. - This endpoint is subject to eventual consistency; newly created, updated, or deleted discovery domains may not immediately appear in the response. - - Parameters - ---------- - id : str - ID of the organization. - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[OrganizationDiscoveryDomain, ListOrganizationDiscoveryDomainsResponseContent] - Organization discovery domains retrieved successfully. - """ - _response = await self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(id)}/discovery-domains", - method="GET", - params={ - "from": from_, - "take": take, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListOrganizationDiscoveryDomainsResponseContent, - parse_obj_as( - type_=ListOrganizationDiscoveryDomainsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.domains - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - - async def _get_next(): - return await self.list( - id, - from_=_parsed_next, - take=take, - request_options=request_options, - ) - - return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - id: str, - *, - domain: str, - status: typing.Optional[OrganizationDiscoveryDomainStatus] = OMIT, - use_for_organization_discovery: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[CreateOrganizationDiscoveryDomainResponseContent]: - """ - Create a new discovery domain for an organization. - - Parameters - ---------- - id : str - ID of the organization. - - domain : str - The domain name to associate with the organization e.g. acme.com. - - status : typing.Optional[OrganizationDiscoveryDomainStatus] - - use_for_organization_discovery : typing.Optional[bool] - Indicates whether this domain should be used for organization discovery. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CreateOrganizationDiscoveryDomainResponseContent] - Organization discovery domain successfully created. - """ - _response = await self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(id)}/discovery-domains", - method="POST", - json={ - "domain": domain, - "status": status, - "use_for_organization_discovery": use_for_organization_discovery, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateOrganizationDiscoveryDomainResponseContent, - parse_obj_as( - type_=CreateOrganizationDiscoveryDomainResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def get_by_name( - self, id: str, discovery_domain: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetOrganizationDiscoveryDomainByNameResponseContent]: - """ - Retrieve details about a single organization discovery domain specified by domain name. - This endpoint is subject to eventual consistency; newly created, updated, or deleted discovery domains may not immediately appear in the response. - - Parameters - ---------- - id : str - ID of the organization. - - discovery_domain : str - Domain name of the discovery domain. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetOrganizationDiscoveryDomainByNameResponseContent] - Organization discovery domain successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(id)}/discovery-domains/name/{quote_path_param(discovery_domain)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetOrganizationDiscoveryDomainByNameResponseContent, - parse_obj_as( - type_=GetOrganizationDiscoveryDomainByNameResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def get( - self, id: str, discovery_domain_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetOrganizationDiscoveryDomainResponseContent]: - """ - Retrieve details about a single organization discovery domain specified by ID. - This endpoint is subject to eventual consistency; newly created, updated, or deleted discovery domains may not immediately appear in the response. - - Parameters - ---------- - id : str - ID of the organization. - - discovery_domain_id : str - ID of the discovery domain. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetOrganizationDiscoveryDomainResponseContent] - Organization discovery domain successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(id)}/discovery-domains/{quote_path_param(discovery_domain_id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetOrganizationDiscoveryDomainResponseContent, - parse_obj_as( - type_=GetOrganizationDiscoveryDomainResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def delete( - self, id: str, discovery_domain_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Remove a discovery domain from an organization. This action cannot be undone. - - Parameters - ---------- - id : str - ID of the organization. - - discovery_domain_id : str - ID of the discovery domain. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(id)}/discovery-domains/{quote_path_param(discovery_domain_id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def update( - self, - id: str, - discovery_domain_id: str, - *, - status: typing.Optional[OrganizationDiscoveryDomainStatus] = OMIT, - use_for_organization_discovery: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[UpdateOrganizationDiscoveryDomainResponseContent]: - """ - Update the verification status and/or use_for_organization_discovery for an organization discovery domain. The `status` field must be either `pending` or `verified`. The `use_for_organization_discovery` field can be `true` or `false` (default: `true`). - - Parameters - ---------- - id : str - ID of the organization. - - discovery_domain_id : str - ID of the discovery domain to update. - - status : typing.Optional[OrganizationDiscoveryDomainStatus] - - use_for_organization_discovery : typing.Optional[bool] - Indicates whether this domain should be used for organization discovery. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[UpdateOrganizationDiscoveryDomainResponseContent] - Organization discovery domain successfully updated. - """ - _response = await self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(id)}/discovery-domains/{quote_path_param(discovery_domain_id)}", - method="PATCH", - json={ - "status": status, - "use_for_organization_discovery": use_for_organization_discovery, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateOrganizationDiscoveryDomainResponseContent, - parse_obj_as( - type_=UpdateOrganizationDiscoveryDomainResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/organizations/enabled_connections/__init__.py b/src/auth0/management/organizations/enabled_connections/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/organizations/enabled_connections/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/organizations/enabled_connections/client.py b/src/auth0/management/organizations/enabled_connections/client.py deleted file mode 100644 index a5300027..00000000 --- a/src/auth0/management/organizations/enabled_connections/client.py +++ /dev/null @@ -1,597 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.pagination import AsyncPager, SyncPager -from ...core.request_options import RequestOptions -from ...types.add_organization_connection_response_content import AddOrganizationConnectionResponseContent -from ...types.get_organization_connection_response_content import GetOrganizationConnectionResponseContent -from ...types.list_organization_connections_offset_paginated_response_content import ( - ListOrganizationConnectionsOffsetPaginatedResponseContent, -) -from ...types.organization_connection import OrganizationConnection -from ...types.update_organization_connection_response_content import UpdateOrganizationConnectionResponseContent -from .raw_client import AsyncRawEnabledConnectionsClient, RawEnabledConnectionsClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class EnabledConnectionsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawEnabledConnectionsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawEnabledConnectionsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawEnabledConnectionsClient - """ - return self._raw_client - - def list( - self, - id: str, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - include_totals: typing.Optional[bool] = True, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[OrganizationConnection, ListOrganizationConnectionsOffsetPaginatedResponseContent]: - """ - Retrieve details about a specific connection currently enabled for an Organization. Information returned includes details such as connection ID, name, strategy, and whether the connection automatically grants membership upon login. - - Parameters - ---------- - id : str - Organization identifier. - - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. Defaults to 50. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[OrganizationConnection, ListOrganizationConnectionsOffsetPaginatedResponseContent] - Connections successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.organizations.enabled_connections.list( - id="id", - page=1, - per_page=1, - include_totals=True, - ) - for item in response: - yield item - # alternatively, you can paginate page-by-page - for page in response.iter_pages(): - yield page - """ - return self._raw_client.list( - id, page=page, per_page=per_page, include_totals=include_totals, request_options=request_options - ) - - def add( - self, - id: str, - *, - connection_id: str, - assign_membership_on_login: typing.Optional[bool] = OMIT, - is_signup_enabled: typing.Optional[bool] = OMIT, - show_as_button: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AddOrganizationConnectionResponseContent: - """ - Enable a specific connection for a given Organization. To enable a connection, it must already exist within your tenant; connections cannot be created through this action. - - [Connections](https://auth0.com/docs/authenticate/identity-providers) represent the relationship between Auth0 and a source of users. Available types of connections include database, enterprise, and social. - - Parameters - ---------- - id : str - Organization identifier. - - connection_id : str - Single connection ID to add to the organization. - - assign_membership_on_login : typing.Optional[bool] - When true, all users that log in with this connection will be automatically granted membership in the organization. When false, users must be granted membership in the organization before logging in with this connection. - - is_signup_enabled : typing.Optional[bool] - Determines whether organization signup should be enabled for this organization connection. Only applicable for database connections. Default: false. - - show_as_button : typing.Optional[bool] - Determines whether a connection should be displayed on this organization’s login prompt. Only applicable for enterprise connections. Default: true. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AddOrganizationConnectionResponseContent - Organization connection successfully added. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.organizations.enabled_connections.add( - id="id", - connection_id="connection_id", - ) - """ - _response = self._raw_client.add( - id, - connection_id=connection_id, - assign_membership_on_login=assign_membership_on_login, - is_signup_enabled=is_signup_enabled, - show_as_button=show_as_button, - request_options=request_options, - ) - return _response.data - - def get( - self, id: str, connection_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetOrganizationConnectionResponseContent: - """ - Retrieve details about a specific connection currently enabled for an Organization. Information returned includes details such as connection ID, name, strategy, and whether the connection automatically grants membership upon login. - - Parameters - ---------- - id : str - Organization identifier. - - connection_id : str - Connection identifier. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetOrganizationConnectionResponseContent - Connection successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.organizations.enabled_connections.get( - id="id", - connection_id="connectionId", - ) - """ - _response = self._raw_client.get(id, connection_id, request_options=request_options) - return _response.data - - def delete(self, id: str, connection_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Disable a specific connection for an Organization. Once disabled, Organization members can no longer use that connection to authenticate. - - **Note**: This action does not remove the connection from your tenant. - - Parameters - ---------- - id : str - Organization identifier. - - connection_id : str - Connection identifier. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.organizations.enabled_connections.delete( - id="id", - connection_id="connectionId", - ) - """ - _response = self._raw_client.delete(id, connection_id, request_options=request_options) - return _response.data - - def update( - self, - id: str, - connection_id: str, - *, - assign_membership_on_login: typing.Optional[bool] = OMIT, - is_signup_enabled: typing.Optional[bool] = OMIT, - show_as_button: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateOrganizationConnectionResponseContent: - """ - Modify the details of a specific connection currently enabled for an Organization. - - Parameters - ---------- - id : str - Organization identifier. - - connection_id : str - Connection identifier. - - assign_membership_on_login : typing.Optional[bool] - When true, all users that log in with this connection will be automatically granted membership in the organization. When false, users must be granted membership in the organization before logging in with this connection. - - is_signup_enabled : typing.Optional[bool] - Determines whether organization signup should be enabled for this organization connection. Only applicable for database connections. Default: false. - - show_as_button : typing.Optional[bool] - Determines whether a connection should be displayed on this organization’s login prompt. Only applicable for enterprise connections. Default: true. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateOrganizationConnectionResponseContent - Organization connection successfully updated. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.organizations.enabled_connections.update( - id="id", - connection_id="connectionId", - ) - """ - _response = self._raw_client.update( - id, - connection_id, - assign_membership_on_login=assign_membership_on_login, - is_signup_enabled=is_signup_enabled, - show_as_button=show_as_button, - request_options=request_options, - ) - return _response.data - - -class AsyncEnabledConnectionsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawEnabledConnectionsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawEnabledConnectionsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawEnabledConnectionsClient - """ - return self._raw_client - - async def list( - self, - id: str, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - include_totals: typing.Optional[bool] = True, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[OrganizationConnection, ListOrganizationConnectionsOffsetPaginatedResponseContent]: - """ - Retrieve details about a specific connection currently enabled for an Organization. Information returned includes details such as connection ID, name, strategy, and whether the connection automatically grants membership upon login. - - Parameters - ---------- - id : str - Organization identifier. - - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. Defaults to 50. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[OrganizationConnection, ListOrganizationConnectionsOffsetPaginatedResponseContent] - Connections successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.organizations.enabled_connections.list( - id="id", - page=1, - per_page=1, - include_totals=True, - ) - async for item in response: - yield item - - # alternatively, you can paginate page-by-page - async for page in response.iter_pages(): - yield page - - - asyncio.run(main()) - """ - return await self._raw_client.list( - id, page=page, per_page=per_page, include_totals=include_totals, request_options=request_options - ) - - async def add( - self, - id: str, - *, - connection_id: str, - assign_membership_on_login: typing.Optional[bool] = OMIT, - is_signup_enabled: typing.Optional[bool] = OMIT, - show_as_button: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AddOrganizationConnectionResponseContent: - """ - Enable a specific connection for a given Organization. To enable a connection, it must already exist within your tenant; connections cannot be created through this action. - - [Connections](https://auth0.com/docs/authenticate/identity-providers) represent the relationship between Auth0 and a source of users. Available types of connections include database, enterprise, and social. - - Parameters - ---------- - id : str - Organization identifier. - - connection_id : str - Single connection ID to add to the organization. - - assign_membership_on_login : typing.Optional[bool] - When true, all users that log in with this connection will be automatically granted membership in the organization. When false, users must be granted membership in the organization before logging in with this connection. - - is_signup_enabled : typing.Optional[bool] - Determines whether organization signup should be enabled for this organization connection. Only applicable for database connections. Default: false. - - show_as_button : typing.Optional[bool] - Determines whether a connection should be displayed on this organization’s login prompt. Only applicable for enterprise connections. Default: true. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AddOrganizationConnectionResponseContent - Organization connection successfully added. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.organizations.enabled_connections.add( - id="id", - connection_id="connection_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.add( - id, - connection_id=connection_id, - assign_membership_on_login=assign_membership_on_login, - is_signup_enabled=is_signup_enabled, - show_as_button=show_as_button, - request_options=request_options, - ) - return _response.data - - async def get( - self, id: str, connection_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetOrganizationConnectionResponseContent: - """ - Retrieve details about a specific connection currently enabled for an Organization. Information returned includes details such as connection ID, name, strategy, and whether the connection automatically grants membership upon login. - - Parameters - ---------- - id : str - Organization identifier. - - connection_id : str - Connection identifier. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetOrganizationConnectionResponseContent - Connection successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.organizations.enabled_connections.get( - id="id", - connection_id="connectionId", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.get(id, connection_id, request_options=request_options) - return _response.data - - async def delete( - self, id: str, connection_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> None: - """ - Disable a specific connection for an Organization. Once disabled, Organization members can no longer use that connection to authenticate. - - **Note**: This action does not remove the connection from your tenant. - - Parameters - ---------- - id : str - Organization identifier. - - connection_id : str - Connection identifier. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.organizations.enabled_connections.delete( - id="id", - connection_id="connectionId", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete(id, connection_id, request_options=request_options) - return _response.data - - async def update( - self, - id: str, - connection_id: str, - *, - assign_membership_on_login: typing.Optional[bool] = OMIT, - is_signup_enabled: typing.Optional[bool] = OMIT, - show_as_button: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateOrganizationConnectionResponseContent: - """ - Modify the details of a specific connection currently enabled for an Organization. - - Parameters - ---------- - id : str - Organization identifier. - - connection_id : str - Connection identifier. - - assign_membership_on_login : typing.Optional[bool] - When true, all users that log in with this connection will be automatically granted membership in the organization. When false, users must be granted membership in the organization before logging in with this connection. - - is_signup_enabled : typing.Optional[bool] - Determines whether organization signup should be enabled for this organization connection. Only applicable for database connections. Default: false. - - show_as_button : typing.Optional[bool] - Determines whether a connection should be displayed on this organization’s login prompt. Only applicable for enterprise connections. Default: true. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateOrganizationConnectionResponseContent - Organization connection successfully updated. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.organizations.enabled_connections.update( - id="id", - connection_id="connectionId", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.update( - id, - connection_id, - assign_membership_on_login=assign_membership_on_login, - is_signup_enabled=is_signup_enabled, - show_as_button=show_as_button, - request_options=request_options, - ) - return _response.data diff --git a/src/auth0/management/organizations/enabled_connections/raw_client.py b/src/auth0/management/organizations/enabled_connections/raw_client.py deleted file mode 100644 index 2c6c9406..00000000 --- a/src/auth0/management/organizations/enabled_connections/raw_client.py +++ /dev/null @@ -1,1203 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ...core.api_error import ApiError -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.http_response import AsyncHttpResponse, HttpResponse -from ...core.jsonable_encoder import quote_path_param -from ...core.pagination import AsyncPager, SyncPager -from ...core.parse_error import ParsingError -from ...core.pydantic_utilities import parse_obj_as -from ...core.request_options import RequestOptions -from ...errors.bad_request_error import BadRequestError -from ...errors.conflict_error import ConflictError -from ...errors.forbidden_error import ForbiddenError -from ...errors.not_found_error import NotFoundError -from ...errors.too_many_requests_error import TooManyRequestsError -from ...errors.unauthorized_error import UnauthorizedError -from ...types.add_organization_connection_response_content import AddOrganizationConnectionResponseContent -from ...types.get_organization_connection_response_content import GetOrganizationConnectionResponseContent -from ...types.list_organization_connections_offset_paginated_response_content import ( - ListOrganizationConnectionsOffsetPaginatedResponseContent, -) -from ...types.organization_connection import OrganizationConnection -from ...types.update_organization_connection_response_content import UpdateOrganizationConnectionResponseContent -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawEnabledConnectionsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - id: str, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - include_totals: typing.Optional[bool] = True, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[OrganizationConnection, ListOrganizationConnectionsOffsetPaginatedResponseContent]: - """ - Retrieve details about a specific connection currently enabled for an Organization. Information returned includes details such as connection ID, name, strategy, and whether the connection automatically grants membership upon login. - - Parameters - ---------- - id : str - Organization identifier. - - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. Defaults to 50. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[OrganizationConnection, ListOrganizationConnectionsOffsetPaginatedResponseContent] - Connections successfully retrieved. - """ - page = page if page is not None else 0 - - _response = self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(id)}/enabled_connections", - method="GET", - params={ - "page": page, - "per_page": per_page, - "include_totals": include_totals, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListOrganizationConnectionsOffsetPaginatedResponseContent, - parse_obj_as( - type_=ListOrganizationConnectionsOffsetPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.enabled_connections - _has_next = len(_items or []) > 0 - _get_next = lambda: self.list( - id, - page=page + 1, - per_page=per_page, - include_totals=include_totals, - request_options=request_options, - ) - return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def add( - self, - id: str, - *, - connection_id: str, - assign_membership_on_login: typing.Optional[bool] = OMIT, - is_signup_enabled: typing.Optional[bool] = OMIT, - show_as_button: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[AddOrganizationConnectionResponseContent]: - """ - Enable a specific connection for a given Organization. To enable a connection, it must already exist within your tenant; connections cannot be created through this action. - - [Connections](https://auth0.com/docs/authenticate/identity-providers) represent the relationship between Auth0 and a source of users. Available types of connections include database, enterprise, and social. - - Parameters - ---------- - id : str - Organization identifier. - - connection_id : str - Single connection ID to add to the organization. - - assign_membership_on_login : typing.Optional[bool] - When true, all users that log in with this connection will be automatically granted membership in the organization. When false, users must be granted membership in the organization before logging in with this connection. - - is_signup_enabled : typing.Optional[bool] - Determines whether organization signup should be enabled for this organization connection. Only applicable for database connections. Default: false. - - show_as_button : typing.Optional[bool] - Determines whether a connection should be displayed on this organization’s login prompt. Only applicable for enterprise connections. Default: true. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[AddOrganizationConnectionResponseContent] - Organization connection successfully added. - """ - _response = self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(id)}/enabled_connections", - method="POST", - json={ - "connection_id": connection_id, - "assign_membership_on_login": assign_membership_on_login, - "is_signup_enabled": is_signup_enabled, - "show_as_button": show_as_button, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AddOrganizationConnectionResponseContent, - parse_obj_as( - type_=AddOrganizationConnectionResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def get( - self, id: str, connection_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetOrganizationConnectionResponseContent]: - """ - Retrieve details about a specific connection currently enabled for an Organization. Information returned includes details such as connection ID, name, strategy, and whether the connection automatically grants membership upon login. - - Parameters - ---------- - id : str - Organization identifier. - - connection_id : str - Connection identifier. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetOrganizationConnectionResponseContent] - Connection successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(id)}/enabled_connections/{quote_path_param(connection_id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetOrganizationConnectionResponseContent, - parse_obj_as( - type_=GetOrganizationConnectionResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def delete( - self, id: str, connection_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[None]: - """ - Disable a specific connection for an Organization. Once disabled, Organization members can no longer use that connection to authenticate. - - **Note**: This action does not remove the connection from your tenant. - - Parameters - ---------- - id : str - Organization identifier. - - connection_id : str - Connection identifier. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(id)}/enabled_connections/{quote_path_param(connection_id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def update( - self, - id: str, - connection_id: str, - *, - assign_membership_on_login: typing.Optional[bool] = OMIT, - is_signup_enabled: typing.Optional[bool] = OMIT, - show_as_button: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[UpdateOrganizationConnectionResponseContent]: - """ - Modify the details of a specific connection currently enabled for an Organization. - - Parameters - ---------- - id : str - Organization identifier. - - connection_id : str - Connection identifier. - - assign_membership_on_login : typing.Optional[bool] - When true, all users that log in with this connection will be automatically granted membership in the organization. When false, users must be granted membership in the organization before logging in with this connection. - - is_signup_enabled : typing.Optional[bool] - Determines whether organization signup should be enabled for this organization connection. Only applicable for database connections. Default: false. - - show_as_button : typing.Optional[bool] - Determines whether a connection should be displayed on this organization’s login prompt. Only applicable for enterprise connections. Default: true. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[UpdateOrganizationConnectionResponseContent] - Organization connection successfully updated. - """ - _response = self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(id)}/enabled_connections/{quote_path_param(connection_id)}", - method="PATCH", - json={ - "assign_membership_on_login": assign_membership_on_login, - "is_signup_enabled": is_signup_enabled, - "show_as_button": show_as_button, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateOrganizationConnectionResponseContent, - parse_obj_as( - type_=UpdateOrganizationConnectionResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawEnabledConnectionsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - id: str, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - include_totals: typing.Optional[bool] = True, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[OrganizationConnection, ListOrganizationConnectionsOffsetPaginatedResponseContent]: - """ - Retrieve details about a specific connection currently enabled for an Organization. Information returned includes details such as connection ID, name, strategy, and whether the connection automatically grants membership upon login. - - Parameters - ---------- - id : str - Organization identifier. - - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. Defaults to 50. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[OrganizationConnection, ListOrganizationConnectionsOffsetPaginatedResponseContent] - Connections successfully retrieved. - """ - page = page if page is not None else 0 - - _response = await self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(id)}/enabled_connections", - method="GET", - params={ - "page": page, - "per_page": per_page, - "include_totals": include_totals, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListOrganizationConnectionsOffsetPaginatedResponseContent, - parse_obj_as( - type_=ListOrganizationConnectionsOffsetPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.enabled_connections - _has_next = len(_items or []) > 0 - - async def _get_next(): - return await self.list( - id, - page=page + 1, - per_page=per_page, - include_totals=include_totals, - request_options=request_options, - ) - - return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def add( - self, - id: str, - *, - connection_id: str, - assign_membership_on_login: typing.Optional[bool] = OMIT, - is_signup_enabled: typing.Optional[bool] = OMIT, - show_as_button: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[AddOrganizationConnectionResponseContent]: - """ - Enable a specific connection for a given Organization. To enable a connection, it must already exist within your tenant; connections cannot be created through this action. - - [Connections](https://auth0.com/docs/authenticate/identity-providers) represent the relationship between Auth0 and a source of users. Available types of connections include database, enterprise, and social. - - Parameters - ---------- - id : str - Organization identifier. - - connection_id : str - Single connection ID to add to the organization. - - assign_membership_on_login : typing.Optional[bool] - When true, all users that log in with this connection will be automatically granted membership in the organization. When false, users must be granted membership in the organization before logging in with this connection. - - is_signup_enabled : typing.Optional[bool] - Determines whether organization signup should be enabled for this organization connection. Only applicable for database connections. Default: false. - - show_as_button : typing.Optional[bool] - Determines whether a connection should be displayed on this organization’s login prompt. Only applicable for enterprise connections. Default: true. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[AddOrganizationConnectionResponseContent] - Organization connection successfully added. - """ - _response = await self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(id)}/enabled_connections", - method="POST", - json={ - "connection_id": connection_id, - "assign_membership_on_login": assign_membership_on_login, - "is_signup_enabled": is_signup_enabled, - "show_as_button": show_as_button, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AddOrganizationConnectionResponseContent, - parse_obj_as( - type_=AddOrganizationConnectionResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def get( - self, id: str, connection_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetOrganizationConnectionResponseContent]: - """ - Retrieve details about a specific connection currently enabled for an Organization. Information returned includes details such as connection ID, name, strategy, and whether the connection automatically grants membership upon login. - - Parameters - ---------- - id : str - Organization identifier. - - connection_id : str - Connection identifier. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetOrganizationConnectionResponseContent] - Connection successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(id)}/enabled_connections/{quote_path_param(connection_id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetOrganizationConnectionResponseContent, - parse_obj_as( - type_=GetOrganizationConnectionResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def delete( - self, id: str, connection_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Disable a specific connection for an Organization. Once disabled, Organization members can no longer use that connection to authenticate. - - **Note**: This action does not remove the connection from your tenant. - - Parameters - ---------- - id : str - Organization identifier. - - connection_id : str - Connection identifier. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(id)}/enabled_connections/{quote_path_param(connection_id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def update( - self, - id: str, - connection_id: str, - *, - assign_membership_on_login: typing.Optional[bool] = OMIT, - is_signup_enabled: typing.Optional[bool] = OMIT, - show_as_button: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[UpdateOrganizationConnectionResponseContent]: - """ - Modify the details of a specific connection currently enabled for an Organization. - - Parameters - ---------- - id : str - Organization identifier. - - connection_id : str - Connection identifier. - - assign_membership_on_login : typing.Optional[bool] - When true, all users that log in with this connection will be automatically granted membership in the organization. When false, users must be granted membership in the organization before logging in with this connection. - - is_signup_enabled : typing.Optional[bool] - Determines whether organization signup should be enabled for this organization connection. Only applicable for database connections. Default: false. - - show_as_button : typing.Optional[bool] - Determines whether a connection should be displayed on this organization’s login prompt. Only applicable for enterprise connections. Default: true. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[UpdateOrganizationConnectionResponseContent] - Organization connection successfully updated. - """ - _response = await self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(id)}/enabled_connections/{quote_path_param(connection_id)}", - method="PATCH", - json={ - "assign_membership_on_login": assign_membership_on_login, - "is_signup_enabled": is_signup_enabled, - "show_as_button": show_as_button, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateOrganizationConnectionResponseContent, - parse_obj_as( - type_=UpdateOrganizationConnectionResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/organizations/groups/__init__.py b/src/auth0/management/organizations/groups/__init__.py deleted file mode 100644 index 686aa754..00000000 --- a/src/auth0/management/organizations/groups/__init__.py +++ /dev/null @@ -1,34 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from . import roles -_dynamic_imports: typing.Dict[str, str] = {"roles": ".roles"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - if module_name == f".{attr_name}": - return module - else: - return getattr(module, attr_name) - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["roles"] diff --git a/src/auth0/management/organizations/groups/client.py b/src/auth0/management/organizations/groups/client.py deleted file mode 100644 index c267a4ee..00000000 --- a/src/auth0/management/organizations/groups/client.py +++ /dev/null @@ -1,176 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.pagination import AsyncPager, SyncPager -from ...core.request_options import RequestOptions -from ...types.group import Group -from ...types.list_organization_groups_response_content import ListOrganizationGroupsResponseContent -from .raw_client import AsyncRawGroupsClient, RawGroupsClient - -if typing.TYPE_CHECKING: - from .roles.client import AsyncRolesClient, RolesClient - - -class GroupsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawGroupsClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._roles: typing.Optional[RolesClient] = None - - @property - def with_raw_response(self) -> RawGroupsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawGroupsClient - """ - return self._raw_client - - def list( - self, - organization_id: str, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[Group, ListOrganizationGroupsResponseContent]: - """ - Lists the groups that are assigned to the specified organization. - - Parameters - ---------- - organization_id : str - ID of the organization - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[Group, ListOrganizationGroupsResponseContent] - Organization groups successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.organizations.groups.list( - organization_id="organization_id", - from_="from", - take=1, - ) - for item in response: - yield item - # alternatively, you can paginate page-by-page - for page in response.iter_pages(): - yield page - """ - return self._raw_client.list(organization_id, from_=from_, take=take, request_options=request_options) - - @property - def roles(self): - if self._roles is None: - from .roles.client import RolesClient # noqa: E402 - - self._roles = RolesClient(client_wrapper=self._client_wrapper) - return self._roles - - -class AsyncGroupsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawGroupsClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._roles: typing.Optional[AsyncRolesClient] = None - - @property - def with_raw_response(self) -> AsyncRawGroupsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawGroupsClient - """ - return self._raw_client - - async def list( - self, - organization_id: str, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[Group, ListOrganizationGroupsResponseContent]: - """ - Lists the groups that are assigned to the specified organization. - - Parameters - ---------- - organization_id : str - ID of the organization - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[Group, ListOrganizationGroupsResponseContent] - Organization groups successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.organizations.groups.list( - organization_id="organization_id", - from_="from", - take=1, - ) - async for item in response: - yield item - - # alternatively, you can paginate page-by-page - async for page in response.iter_pages(): - yield page - - - asyncio.run(main()) - """ - return await self._raw_client.list(organization_id, from_=from_, take=take, request_options=request_options) - - @property - def roles(self): - if self._roles is None: - from .roles.client import AsyncRolesClient # noqa: E402 - - self._roles = AsyncRolesClient(client_wrapper=self._client_wrapper) - return self._roles diff --git a/src/auth0/management/organizations/groups/raw_client.py b/src/auth0/management/organizations/groups/raw_client.py deleted file mode 100644 index b0151e5a..00000000 --- a/src/auth0/management/organizations/groups/raw_client.py +++ /dev/null @@ -1,277 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ...core.api_error import ApiError -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.jsonable_encoder import quote_path_param -from ...core.pagination import AsyncPager, SyncPager -from ...core.parse_error import ParsingError -from ...core.pydantic_utilities import parse_obj_as -from ...core.request_options import RequestOptions -from ...errors.bad_request_error import BadRequestError -from ...errors.forbidden_error import ForbiddenError -from ...errors.not_found_error import NotFoundError -from ...errors.too_many_requests_error import TooManyRequestsError -from ...errors.unauthorized_error import UnauthorizedError -from ...types.group import Group -from ...types.list_organization_groups_response_content import ListOrganizationGroupsResponseContent -from pydantic import ValidationError - - -class RawGroupsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - organization_id: str, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[Group, ListOrganizationGroupsResponseContent]: - """ - Lists the groups that are assigned to the specified organization. - - Parameters - ---------- - organization_id : str - ID of the organization - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[Group, ListOrganizationGroupsResponseContent] - Organization groups successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(organization_id)}/groups", - method="GET", - params={ - "from": from_, - "take": take, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListOrganizationGroupsResponseContent, - parse_obj_as( - type_=ListOrganizationGroupsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.groups - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - _get_next = lambda: self.list( - organization_id, - from_=_parsed_next, - take=take, - request_options=request_options, - ) - return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawGroupsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - organization_id: str, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[Group, ListOrganizationGroupsResponseContent]: - """ - Lists the groups that are assigned to the specified organization. - - Parameters - ---------- - organization_id : str - ID of the organization - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[Group, ListOrganizationGroupsResponseContent] - Organization groups successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(organization_id)}/groups", - method="GET", - params={ - "from": from_, - "take": take, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListOrganizationGroupsResponseContent, - parse_obj_as( - type_=ListOrganizationGroupsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.groups - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - - async def _get_next(): - return await self.list( - organization_id, - from_=_parsed_next, - take=take, - request_options=request_options, - ) - - return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/organizations/groups/roles/__init__.py b/src/auth0/management/organizations/groups/roles/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/organizations/groups/roles/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/organizations/groups/roles/client.py b/src/auth0/management/organizations/groups/roles/client.py deleted file mode 100644 index 5464449e..00000000 --- a/src/auth0/management/organizations/groups/roles/client.py +++ /dev/null @@ -1,366 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ....core.pagination import AsyncPager, SyncPager -from ....core.request_options import RequestOptions -from ....types.list_organization_group_roles_response_content import ListOrganizationGroupRolesResponseContent -from ....types.role import Role -from .raw_client import AsyncRawRolesClient, RawRolesClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RolesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawRolesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawRolesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawRolesClient - """ - return self._raw_client - - def list( - self, - organization_id: str, - group_id: str, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[Role, ListOrganizationGroupRolesResponseContent]: - """ - Lists the roles assigned to the specified group in the context of an organization. - - Parameters - ---------- - organization_id : str - ID of the organization - - group_id : str - ID of the group - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[Role, ListOrganizationGroupRolesResponseContent] - Organization group roles successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.organizations.groups.roles.list( - organization_id="organization_id", - group_id="group_id", - from_="from", - take=1, - ) - for item in response: - yield item - # alternatively, you can paginate page-by-page - for page in response.iter_pages(): - yield page - """ - return self._raw_client.list(organization_id, group_id, from_=from_, take=take, request_options=request_options) - - def create( - self, - organization_id: str, - group_id: str, - *, - roles: typing.Sequence[str], - request_options: typing.Optional[RequestOptions] = None, - ) -> None: - """ - Assign one or more roles to a specified group in the context of an organization. - - Parameters - ---------- - organization_id : str - ID of the organization - - group_id : str - ID of the group - - roles : typing.Sequence[str] - Array of role IDs to assign to organization group. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.organizations.groups.roles.create( - organization_id="organization_id", - group_id="group_id", - roles=["roles"], - ) - """ - _response = self._raw_client.create(organization_id, group_id, roles=roles, request_options=request_options) - return _response.data - - def delete( - self, - organization_id: str, - group_id: str, - *, - roles: typing.Sequence[str], - request_options: typing.Optional[RequestOptions] = None, - ) -> None: - """ - Unassign one or more roles from a specified group in the context of an organization. - - Parameters - ---------- - organization_id : str - ID of the organization - - group_id : str - ID of the group - - roles : typing.Sequence[str] - Array of role IDs to delete from organization group. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.organizations.groups.roles.delete( - organization_id="organization_id", - group_id="group_id", - roles=["roles"], - ) - """ - _response = self._raw_client.delete(organization_id, group_id, roles=roles, request_options=request_options) - return _response.data - - -class AsyncRolesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawRolesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawRolesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawRolesClient - """ - return self._raw_client - - async def list( - self, - organization_id: str, - group_id: str, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[Role, ListOrganizationGroupRolesResponseContent]: - """ - Lists the roles assigned to the specified group in the context of an organization. - - Parameters - ---------- - organization_id : str - ID of the organization - - group_id : str - ID of the group - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[Role, ListOrganizationGroupRolesResponseContent] - Organization group roles successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.organizations.groups.roles.list( - organization_id="organization_id", - group_id="group_id", - from_="from", - take=1, - ) - async for item in response: - yield item - - # alternatively, you can paginate page-by-page - async for page in response.iter_pages(): - yield page - - - asyncio.run(main()) - """ - return await self._raw_client.list( - organization_id, group_id, from_=from_, take=take, request_options=request_options - ) - - async def create( - self, - organization_id: str, - group_id: str, - *, - roles: typing.Sequence[str], - request_options: typing.Optional[RequestOptions] = None, - ) -> None: - """ - Assign one or more roles to a specified group in the context of an organization. - - Parameters - ---------- - organization_id : str - ID of the organization - - group_id : str - ID of the group - - roles : typing.Sequence[str] - Array of role IDs to assign to organization group. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.organizations.groups.roles.create( - organization_id="organization_id", - group_id="group_id", - roles=["roles"], - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - organization_id, group_id, roles=roles, request_options=request_options - ) - return _response.data - - async def delete( - self, - organization_id: str, - group_id: str, - *, - roles: typing.Sequence[str], - request_options: typing.Optional[RequestOptions] = None, - ) -> None: - """ - Unassign one or more roles from a specified group in the context of an organization. - - Parameters - ---------- - organization_id : str - ID of the organization - - group_id : str - ID of the group - - roles : typing.Sequence[str] - Array of role IDs to delete from organization group. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.organizations.groups.roles.delete( - organization_id="organization_id", - group_id="group_id", - roles=["roles"], - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete( - organization_id, group_id, roles=roles, request_options=request_options - ) - return _response.data diff --git a/src/auth0/management/organizations/groups/roles/raw_client.py b/src/auth0/management/organizations/groups/roles/raw_client.py deleted file mode 100644 index b65d1fe0..00000000 --- a/src/auth0/management/organizations/groups/roles/raw_client.py +++ /dev/null @@ -1,746 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ....core.api_error import ApiError -from ....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ....core.http_response import AsyncHttpResponse, HttpResponse -from ....core.jsonable_encoder import quote_path_param -from ....core.pagination import AsyncPager, SyncPager -from ....core.parse_error import ParsingError -from ....core.pydantic_utilities import parse_obj_as -from ....core.request_options import RequestOptions -from ....errors.bad_request_error import BadRequestError -from ....errors.conflict_error import ConflictError -from ....errors.forbidden_error import ForbiddenError -from ....errors.not_found_error import NotFoundError -from ....errors.too_many_requests_error import TooManyRequestsError -from ....errors.unauthorized_error import UnauthorizedError -from ....types.list_organization_group_roles_response_content import ListOrganizationGroupRolesResponseContent -from ....types.role import Role -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawRolesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - organization_id: str, - group_id: str, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[Role, ListOrganizationGroupRolesResponseContent]: - """ - Lists the roles assigned to the specified group in the context of an organization. - - Parameters - ---------- - organization_id : str - ID of the organization - - group_id : str - ID of the group - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[Role, ListOrganizationGroupRolesResponseContent] - Organization group roles successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(organization_id)}/groups/{quote_path_param(group_id)}/roles", - method="GET", - params={ - "from": from_, - "take": take, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListOrganizationGroupRolesResponseContent, - parse_obj_as( - type_=ListOrganizationGroupRolesResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.roles - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - _get_next = lambda: self.list( - organization_id, - group_id, - from_=_parsed_next, - take=take, - request_options=request_options, - ) - return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - organization_id: str, - group_id: str, - *, - roles: typing.Sequence[str], - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[None]: - """ - Assign one or more roles to a specified group in the context of an organization. - - Parameters - ---------- - organization_id : str - ID of the organization - - group_id : str - ID of the group - - roles : typing.Sequence[str] - Array of role IDs to assign to organization group. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(organization_id)}/groups/{quote_path_param(group_id)}/roles", - method="POST", - json={ - "roles": roles, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def delete( - self, - organization_id: str, - group_id: str, - *, - roles: typing.Sequence[str], - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[None]: - """ - Unassign one or more roles from a specified group in the context of an organization. - - Parameters - ---------- - organization_id : str - ID of the organization - - group_id : str - ID of the group - - roles : typing.Sequence[str] - Array of role IDs to delete from organization group. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(organization_id)}/groups/{quote_path_param(group_id)}/roles", - method="DELETE", - json={ - "roles": roles, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawRolesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - organization_id: str, - group_id: str, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[Role, ListOrganizationGroupRolesResponseContent]: - """ - Lists the roles assigned to the specified group in the context of an organization. - - Parameters - ---------- - organization_id : str - ID of the organization - - group_id : str - ID of the group - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[Role, ListOrganizationGroupRolesResponseContent] - Organization group roles successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(organization_id)}/groups/{quote_path_param(group_id)}/roles", - method="GET", - params={ - "from": from_, - "take": take, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListOrganizationGroupRolesResponseContent, - parse_obj_as( - type_=ListOrganizationGroupRolesResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.roles - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - - async def _get_next(): - return await self.list( - organization_id, - group_id, - from_=_parsed_next, - take=take, - request_options=request_options, - ) - - return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - organization_id: str, - group_id: str, - *, - roles: typing.Sequence[str], - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[None]: - """ - Assign one or more roles to a specified group in the context of an organization. - - Parameters - ---------- - organization_id : str - ID of the organization - - group_id : str - ID of the group - - roles : typing.Sequence[str] - Array of role IDs to assign to organization group. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(organization_id)}/groups/{quote_path_param(group_id)}/roles", - method="POST", - json={ - "roles": roles, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def delete( - self, - organization_id: str, - group_id: str, - *, - roles: typing.Sequence[str], - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[None]: - """ - Unassign one or more roles from a specified group in the context of an organization. - - Parameters - ---------- - organization_id : str - ID of the organization - - group_id : str - ID of the group - - roles : typing.Sequence[str] - Array of role IDs to delete from organization group. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(organization_id)}/groups/{quote_path_param(group_id)}/roles", - method="DELETE", - json={ - "roles": roles, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/organizations/invitations/__init__.py b/src/auth0/management/organizations/invitations/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/organizations/invitations/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/organizations/invitations/client.py b/src/auth0/management/organizations/invitations/client.py deleted file mode 100644 index 83e44e30..00000000 --- a/src/auth0/management/organizations/invitations/client.py +++ /dev/null @@ -1,594 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.pagination import AsyncPager, SyncPager -from ...core.request_options import RequestOptions -from ...types.app_metadata import AppMetadata -from ...types.create_organization_invitation_response_content import CreateOrganizationInvitationResponseContent -from ...types.get_organization_invitation_response_content import GetOrganizationInvitationResponseContent -from ...types.list_organization_invitations_offset_paginated_response_content import ( - ListOrganizationInvitationsOffsetPaginatedResponseContent, -) -from ...types.organization_invitation import OrganizationInvitation -from ...types.organization_invitation_invitee import OrganizationInvitationInvitee -from ...types.organization_invitation_inviter import OrganizationInvitationInviter -from ...types.user_metadata import UserMetadata -from .raw_client import AsyncRawInvitationsClient, RawInvitationsClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class InvitationsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawInvitationsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawInvitationsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawInvitationsClient - """ - return self._raw_client - - def list( - self, - id: str, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - include_totals: typing.Optional[bool] = True, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - sort: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[OrganizationInvitation, ListOrganizationInvitationsOffsetPaginatedResponseContent]: - """ - Retrieve a detailed list of invitations sent to users for a specific Organization. The list includes details such as inviter and invitee information, invitation URLs, and dates of creation and expiration. To learn more about Organization invitations, review [Invite Organization Members](https://auth0.com/docs/manage-users/organizations/configure-organizations/invite-members). - - Parameters - ---------- - id : str - Organization identifier. - - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. Defaults to 50. - - include_totals : typing.Optional[bool] - When true, return results inside an object that also contains the start and limit. When false (default), a direct array of results is returned. We do not yet support returning the total invitations count. - - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). Defaults to true. - - sort : typing.Optional[str] - Field to sort by. Use field:order where order is 1 for ascending and -1 for descending Defaults to created_at:-1. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[OrganizationInvitation, ListOrganizationInvitationsOffsetPaginatedResponseContent] - Invitations successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.organizations.invitations.list( - id="id", - page=1, - per_page=1, - include_totals=True, - fields="fields", - include_fields=True, - sort="sort", - ) - for item in response: - yield item - # alternatively, you can paginate page-by-page - for page in response.iter_pages(): - yield page - """ - return self._raw_client.list( - id, - page=page, - per_page=per_page, - include_totals=include_totals, - fields=fields, - include_fields=include_fields, - sort=sort, - request_options=request_options, - ) - - def create( - self, - id: str, - *, - inviter: OrganizationInvitationInviter, - invitee: OrganizationInvitationInvitee, - client_id: str, - connection_id: typing.Optional[str] = OMIT, - app_metadata: typing.Optional[AppMetadata] = OMIT, - user_metadata: typing.Optional[UserMetadata] = OMIT, - ttl_sec: typing.Optional[int] = OMIT, - roles: typing.Optional[typing.Sequence[str]] = OMIT, - send_invitation_email: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateOrganizationInvitationResponseContent: - """ - Create a user invitation for a specific Organization. Upon creation, the listed user receives an email inviting them to join the Organization. To learn more about Organization invitations, review [Invite Organization Members](https://auth0.com/docs/manage-users/organizations/configure-organizations/invite-members). - - Parameters - ---------- - id : str - Organization identifier. - - inviter : OrganizationInvitationInviter - - invitee : OrganizationInvitationInvitee - - client_id : str - Auth0 client ID. Used to resolve the application's login initiation endpoint. - - connection_id : typing.Optional[str] - The id of the connection to force invitee to authenticate with. - - app_metadata : typing.Optional[AppMetadata] - - user_metadata : typing.Optional[UserMetadata] - - ttl_sec : typing.Optional[int] - Number of seconds for which the invitation is valid before expiration. If unspecified or set to 0, this value defaults to 604800 seconds (7 days). Max value: 2592000 seconds (30 days). - - roles : typing.Optional[typing.Sequence[str]] - List of roles IDs to associated with the user. - - send_invitation_email : typing.Optional[bool] - Whether the user will receive an invitation email (true) or no email (false), true by default - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateOrganizationInvitationResponseContent - Invitation successfully created. - - Examples - -------- - from auth0 import ( - Auth0, - OrganizationInvitationInvitee, - OrganizationInvitationInviter, - ) - - client = Auth0( - token="YOUR_TOKEN", - ) - client.organizations.invitations.create( - id="id", - inviter=OrganizationInvitationInviter( - name="name", - ), - invitee=OrganizationInvitationInvitee( - email="email", - ), - client_id="client_id", - ) - """ - _response = self._raw_client.create( - id, - inviter=inviter, - invitee=invitee, - client_id=client_id, - connection_id=connection_id, - app_metadata=app_metadata, - user_metadata=user_metadata, - ttl_sec=ttl_sec, - roles=roles, - send_invitation_email=send_invitation_email, - request_options=request_options, - ) - return _response.data - - def get( - self, - id: str, - invitation_id: str, - *, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> GetOrganizationInvitationResponseContent: - """ - Parameters - ---------- - id : str - Organization identifier. - - invitation_id : str - The id of the user invitation. - - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). Defaults to true. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetOrganizationInvitationResponseContent - Invitation successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.organizations.invitations.get( - id="id", - invitation_id="invitation_id", - fields="fields", - include_fields=True, - ) - """ - _response = self._raw_client.get( - id, invitation_id, fields=fields, include_fields=include_fields, request_options=request_options - ) - return _response.data - - def delete(self, id: str, invitation_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Parameters - ---------- - id : str - Organization identifier. - - invitation_id : str - The id of the user invitation. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.organizations.invitations.delete( - id="id", - invitation_id="invitation_id", - ) - """ - _response = self._raw_client.delete(id, invitation_id, request_options=request_options) - return _response.data - - -class AsyncInvitationsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawInvitationsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawInvitationsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawInvitationsClient - """ - return self._raw_client - - async def list( - self, - id: str, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - include_totals: typing.Optional[bool] = True, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - sort: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[OrganizationInvitation, ListOrganizationInvitationsOffsetPaginatedResponseContent]: - """ - Retrieve a detailed list of invitations sent to users for a specific Organization. The list includes details such as inviter and invitee information, invitation URLs, and dates of creation and expiration. To learn more about Organization invitations, review [Invite Organization Members](https://auth0.com/docs/manage-users/organizations/configure-organizations/invite-members). - - Parameters - ---------- - id : str - Organization identifier. - - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. Defaults to 50. - - include_totals : typing.Optional[bool] - When true, return results inside an object that also contains the start and limit. When false (default), a direct array of results is returned. We do not yet support returning the total invitations count. - - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). Defaults to true. - - sort : typing.Optional[str] - Field to sort by. Use field:order where order is 1 for ascending and -1 for descending Defaults to created_at:-1. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[OrganizationInvitation, ListOrganizationInvitationsOffsetPaginatedResponseContent] - Invitations successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.organizations.invitations.list( - id="id", - page=1, - per_page=1, - include_totals=True, - fields="fields", - include_fields=True, - sort="sort", - ) - async for item in response: - yield item - - # alternatively, you can paginate page-by-page - async for page in response.iter_pages(): - yield page - - - asyncio.run(main()) - """ - return await self._raw_client.list( - id, - page=page, - per_page=per_page, - include_totals=include_totals, - fields=fields, - include_fields=include_fields, - sort=sort, - request_options=request_options, - ) - - async def create( - self, - id: str, - *, - inviter: OrganizationInvitationInviter, - invitee: OrganizationInvitationInvitee, - client_id: str, - connection_id: typing.Optional[str] = OMIT, - app_metadata: typing.Optional[AppMetadata] = OMIT, - user_metadata: typing.Optional[UserMetadata] = OMIT, - ttl_sec: typing.Optional[int] = OMIT, - roles: typing.Optional[typing.Sequence[str]] = OMIT, - send_invitation_email: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateOrganizationInvitationResponseContent: - """ - Create a user invitation for a specific Organization. Upon creation, the listed user receives an email inviting them to join the Organization. To learn more about Organization invitations, review [Invite Organization Members](https://auth0.com/docs/manage-users/organizations/configure-organizations/invite-members). - - Parameters - ---------- - id : str - Organization identifier. - - inviter : OrganizationInvitationInviter - - invitee : OrganizationInvitationInvitee - - client_id : str - Auth0 client ID. Used to resolve the application's login initiation endpoint. - - connection_id : typing.Optional[str] - The id of the connection to force invitee to authenticate with. - - app_metadata : typing.Optional[AppMetadata] - - user_metadata : typing.Optional[UserMetadata] - - ttl_sec : typing.Optional[int] - Number of seconds for which the invitation is valid before expiration. If unspecified or set to 0, this value defaults to 604800 seconds (7 days). Max value: 2592000 seconds (30 days). - - roles : typing.Optional[typing.Sequence[str]] - List of roles IDs to associated with the user. - - send_invitation_email : typing.Optional[bool] - Whether the user will receive an invitation email (true) or no email (false), true by default - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateOrganizationInvitationResponseContent - Invitation successfully created. - - Examples - -------- - import asyncio - - from auth0 import ( - AsyncAuth0, - OrganizationInvitationInvitee, - OrganizationInvitationInviter, - ) - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.organizations.invitations.create( - id="id", - inviter=OrganizationInvitationInviter( - name="name", - ), - invitee=OrganizationInvitationInvitee( - email="email", - ), - client_id="client_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - id, - inviter=inviter, - invitee=invitee, - client_id=client_id, - connection_id=connection_id, - app_metadata=app_metadata, - user_metadata=user_metadata, - ttl_sec=ttl_sec, - roles=roles, - send_invitation_email=send_invitation_email, - request_options=request_options, - ) - return _response.data - - async def get( - self, - id: str, - invitation_id: str, - *, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> GetOrganizationInvitationResponseContent: - """ - Parameters - ---------- - id : str - Organization identifier. - - invitation_id : str - The id of the user invitation. - - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). Defaults to true. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetOrganizationInvitationResponseContent - Invitation successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.organizations.invitations.get( - id="id", - invitation_id="invitation_id", - fields="fields", - include_fields=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.get( - id, invitation_id, fields=fields, include_fields=include_fields, request_options=request_options - ) - return _response.data - - async def delete( - self, id: str, invitation_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> None: - """ - Parameters - ---------- - id : str - Organization identifier. - - invitation_id : str - The id of the user invitation. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.organizations.invitations.delete( - id="id", - invitation_id="invitation_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete(id, invitation_id, request_options=request_options) - return _response.data diff --git a/src/auth0/management/organizations/invitations/raw_client.py b/src/auth0/management/organizations/invitations/raw_client.py deleted file mode 100644 index 117c921e..00000000 --- a/src/auth0/management/organizations/invitations/raw_client.py +++ /dev/null @@ -1,1034 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ...core.api_error import ApiError -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.http_response import AsyncHttpResponse, HttpResponse -from ...core.jsonable_encoder import quote_path_param -from ...core.pagination import AsyncPager, SyncPager -from ...core.parse_error import ParsingError -from ...core.pydantic_utilities import parse_obj_as -from ...core.request_options import RequestOptions -from ...core.serialization import convert_and_respect_annotation_metadata -from ...errors.bad_request_error import BadRequestError -from ...errors.forbidden_error import ForbiddenError -from ...errors.not_found_error import NotFoundError -from ...errors.too_many_requests_error import TooManyRequestsError -from ...errors.unauthorized_error import UnauthorizedError -from ...types.app_metadata import AppMetadata -from ...types.create_organization_invitation_response_content import CreateOrganizationInvitationResponseContent -from ...types.get_organization_invitation_response_content import GetOrganizationInvitationResponseContent -from ...types.list_organization_invitations_offset_paginated_response_content import ( - ListOrganizationInvitationsOffsetPaginatedResponseContent, -) -from ...types.organization_invitation import OrganizationInvitation -from ...types.organization_invitation_invitee import OrganizationInvitationInvitee -from ...types.organization_invitation_inviter import OrganizationInvitationInviter -from ...types.user_metadata import UserMetadata -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawInvitationsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - id: str, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - include_totals: typing.Optional[bool] = True, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - sort: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[OrganizationInvitation, ListOrganizationInvitationsOffsetPaginatedResponseContent]: - """ - Retrieve a detailed list of invitations sent to users for a specific Organization. The list includes details such as inviter and invitee information, invitation URLs, and dates of creation and expiration. To learn more about Organization invitations, review [Invite Organization Members](https://auth0.com/docs/manage-users/organizations/configure-organizations/invite-members). - - Parameters - ---------- - id : str - Organization identifier. - - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. Defaults to 50. - - include_totals : typing.Optional[bool] - When true, return results inside an object that also contains the start and limit. When false (default), a direct array of results is returned. We do not yet support returning the total invitations count. - - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). Defaults to true. - - sort : typing.Optional[str] - Field to sort by. Use field:order where order is 1 for ascending and -1 for descending Defaults to created_at:-1. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[OrganizationInvitation, ListOrganizationInvitationsOffsetPaginatedResponseContent] - Invitations successfully retrieved. - """ - page = page if page is not None else 0 - - _response = self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(id)}/invitations", - method="GET", - params={ - "page": page, - "per_page": per_page, - "include_totals": include_totals, - "fields": fields, - "include_fields": include_fields, - "sort": sort, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListOrganizationInvitationsOffsetPaginatedResponseContent, - parse_obj_as( - type_=ListOrganizationInvitationsOffsetPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.invitations - _has_next = len(_items or []) > 0 - _get_next = lambda: self.list( - id, - page=page + 1, - per_page=per_page, - include_totals=include_totals, - fields=fields, - include_fields=include_fields, - sort=sort, - request_options=request_options, - ) - return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - id: str, - *, - inviter: OrganizationInvitationInviter, - invitee: OrganizationInvitationInvitee, - client_id: str, - connection_id: typing.Optional[str] = OMIT, - app_metadata: typing.Optional[AppMetadata] = OMIT, - user_metadata: typing.Optional[UserMetadata] = OMIT, - ttl_sec: typing.Optional[int] = OMIT, - roles: typing.Optional[typing.Sequence[str]] = OMIT, - send_invitation_email: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[CreateOrganizationInvitationResponseContent]: - """ - Create a user invitation for a specific Organization. Upon creation, the listed user receives an email inviting them to join the Organization. To learn more about Organization invitations, review [Invite Organization Members](https://auth0.com/docs/manage-users/organizations/configure-organizations/invite-members). - - Parameters - ---------- - id : str - Organization identifier. - - inviter : OrganizationInvitationInviter - - invitee : OrganizationInvitationInvitee - - client_id : str - Auth0 client ID. Used to resolve the application's login initiation endpoint. - - connection_id : typing.Optional[str] - The id of the connection to force invitee to authenticate with. - - app_metadata : typing.Optional[AppMetadata] - - user_metadata : typing.Optional[UserMetadata] - - ttl_sec : typing.Optional[int] - Number of seconds for which the invitation is valid before expiration. If unspecified or set to 0, this value defaults to 604800 seconds (7 days). Max value: 2592000 seconds (30 days). - - roles : typing.Optional[typing.Sequence[str]] - List of roles IDs to associated with the user. - - send_invitation_email : typing.Optional[bool] - Whether the user will receive an invitation email (true) or no email (false), true by default - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CreateOrganizationInvitationResponseContent] - Invitation successfully created. - """ - _response = self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(id)}/invitations", - method="POST", - json={ - "inviter": convert_and_respect_annotation_metadata( - object_=inviter, annotation=OrganizationInvitationInviter, direction="write" - ), - "invitee": convert_and_respect_annotation_metadata( - object_=invitee, annotation=OrganizationInvitationInvitee, direction="write" - ), - "client_id": client_id, - "connection_id": connection_id, - "app_metadata": app_metadata, - "user_metadata": user_metadata, - "ttl_sec": ttl_sec, - "roles": roles, - "send_invitation_email": send_invitation_email, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateOrganizationInvitationResponseContent, - parse_obj_as( - type_=CreateOrganizationInvitationResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def get( - self, - id: str, - invitation_id: str, - *, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[GetOrganizationInvitationResponseContent]: - """ - Parameters - ---------- - id : str - Organization identifier. - - invitation_id : str - The id of the user invitation. - - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). Defaults to true. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetOrganizationInvitationResponseContent] - Invitation successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(id)}/invitations/{quote_path_param(invitation_id)}", - method="GET", - params={ - "fields": fields, - "include_fields": include_fields, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetOrganizationInvitationResponseContent, - parse_obj_as( - type_=GetOrganizationInvitationResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def delete( - self, id: str, invitation_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[None]: - """ - Parameters - ---------- - id : str - Organization identifier. - - invitation_id : str - The id of the user invitation. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(id)}/invitations/{quote_path_param(invitation_id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawInvitationsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - id: str, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - include_totals: typing.Optional[bool] = True, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - sort: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[OrganizationInvitation, ListOrganizationInvitationsOffsetPaginatedResponseContent]: - """ - Retrieve a detailed list of invitations sent to users for a specific Organization. The list includes details such as inviter and invitee information, invitation URLs, and dates of creation and expiration. To learn more about Organization invitations, review [Invite Organization Members](https://auth0.com/docs/manage-users/organizations/configure-organizations/invite-members). - - Parameters - ---------- - id : str - Organization identifier. - - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. Defaults to 50. - - include_totals : typing.Optional[bool] - When true, return results inside an object that also contains the start and limit. When false (default), a direct array of results is returned. We do not yet support returning the total invitations count. - - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). Defaults to true. - - sort : typing.Optional[str] - Field to sort by. Use field:order where order is 1 for ascending and -1 for descending Defaults to created_at:-1. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[OrganizationInvitation, ListOrganizationInvitationsOffsetPaginatedResponseContent] - Invitations successfully retrieved. - """ - page = page if page is not None else 0 - - _response = await self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(id)}/invitations", - method="GET", - params={ - "page": page, - "per_page": per_page, - "include_totals": include_totals, - "fields": fields, - "include_fields": include_fields, - "sort": sort, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListOrganizationInvitationsOffsetPaginatedResponseContent, - parse_obj_as( - type_=ListOrganizationInvitationsOffsetPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.invitations - _has_next = len(_items or []) > 0 - - async def _get_next(): - return await self.list( - id, - page=page + 1, - per_page=per_page, - include_totals=include_totals, - fields=fields, - include_fields=include_fields, - sort=sort, - request_options=request_options, - ) - - return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - id: str, - *, - inviter: OrganizationInvitationInviter, - invitee: OrganizationInvitationInvitee, - client_id: str, - connection_id: typing.Optional[str] = OMIT, - app_metadata: typing.Optional[AppMetadata] = OMIT, - user_metadata: typing.Optional[UserMetadata] = OMIT, - ttl_sec: typing.Optional[int] = OMIT, - roles: typing.Optional[typing.Sequence[str]] = OMIT, - send_invitation_email: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[CreateOrganizationInvitationResponseContent]: - """ - Create a user invitation for a specific Organization. Upon creation, the listed user receives an email inviting them to join the Organization. To learn more about Organization invitations, review [Invite Organization Members](https://auth0.com/docs/manage-users/organizations/configure-organizations/invite-members). - - Parameters - ---------- - id : str - Organization identifier. - - inviter : OrganizationInvitationInviter - - invitee : OrganizationInvitationInvitee - - client_id : str - Auth0 client ID. Used to resolve the application's login initiation endpoint. - - connection_id : typing.Optional[str] - The id of the connection to force invitee to authenticate with. - - app_metadata : typing.Optional[AppMetadata] - - user_metadata : typing.Optional[UserMetadata] - - ttl_sec : typing.Optional[int] - Number of seconds for which the invitation is valid before expiration. If unspecified or set to 0, this value defaults to 604800 seconds (7 days). Max value: 2592000 seconds (30 days). - - roles : typing.Optional[typing.Sequence[str]] - List of roles IDs to associated with the user. - - send_invitation_email : typing.Optional[bool] - Whether the user will receive an invitation email (true) or no email (false), true by default - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CreateOrganizationInvitationResponseContent] - Invitation successfully created. - """ - _response = await self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(id)}/invitations", - method="POST", - json={ - "inviter": convert_and_respect_annotation_metadata( - object_=inviter, annotation=OrganizationInvitationInviter, direction="write" - ), - "invitee": convert_and_respect_annotation_metadata( - object_=invitee, annotation=OrganizationInvitationInvitee, direction="write" - ), - "client_id": client_id, - "connection_id": connection_id, - "app_metadata": app_metadata, - "user_metadata": user_metadata, - "ttl_sec": ttl_sec, - "roles": roles, - "send_invitation_email": send_invitation_email, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateOrganizationInvitationResponseContent, - parse_obj_as( - type_=CreateOrganizationInvitationResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def get( - self, - id: str, - invitation_id: str, - *, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[GetOrganizationInvitationResponseContent]: - """ - Parameters - ---------- - id : str - Organization identifier. - - invitation_id : str - The id of the user invitation. - - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). Defaults to true. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetOrganizationInvitationResponseContent] - Invitation successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(id)}/invitations/{quote_path_param(invitation_id)}", - method="GET", - params={ - "fields": fields, - "include_fields": include_fields, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetOrganizationInvitationResponseContent, - parse_obj_as( - type_=GetOrganizationInvitationResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def delete( - self, id: str, invitation_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Parameters - ---------- - id : str - Organization identifier. - - invitation_id : str - The id of the user invitation. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(id)}/invitations/{quote_path_param(invitation_id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/organizations/members/__init__.py b/src/auth0/management/organizations/members/__init__.py deleted file mode 100644 index afd3bf71..00000000 --- a/src/auth0/management/organizations/members/__init__.py +++ /dev/null @@ -1,34 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from . import effective_roles, roles -_dynamic_imports: typing.Dict[str, str] = {"effective_roles": ".effective_roles", "roles": ".roles"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - if module_name == f".{attr_name}": - return module - else: - return getattr(module, attr_name) - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["effective_roles", "roles"] diff --git a/src/auth0/management/organizations/members/client.py b/src/auth0/management/organizations/members/client.py deleted file mode 100644 index 2366658e..00000000 --- a/src/auth0/management/organizations/members/client.py +++ /dev/null @@ -1,435 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.pagination import AsyncPager, SyncPager -from ...core.request_options import RequestOptions -from ...types.list_organization_members_paginated_response_content import ( - ListOrganizationMembersPaginatedResponseContent, -) -from ...types.organization_member import OrganizationMember -from .raw_client import AsyncRawMembersClient, RawMembersClient - -if typing.TYPE_CHECKING: - from .effective_roles.client import AsyncEffectiveRolesClient, EffectiveRolesClient - from .roles.client import AsyncRolesClient, RolesClient -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class MembersClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawMembersClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._effective_roles: typing.Optional[EffectiveRolesClient] = None - self._roles: typing.Optional[RolesClient] = None - - @property - def with_raw_response(self) -> RawMembersClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawMembersClient - """ - return self._raw_client - - def list( - self, - id: str, - *, - include_totals: typing.Optional[bool] = True, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[OrganizationMember, ListOrganizationMembersPaginatedResponseContent]: - """ - List organization members. - This endpoint is subject to eventual consistency. New users may not be immediately included in the response and deleted users may not be immediately removed from it. - - - Use the `fields` parameter to optionally define the specific member details retrieved. If `fields` is left blank, all fields (except roles) are returned. - - Member roles are not sent by default. Use `fields=roles` to retrieve the roles assigned to each listed member. To use this parameter, you must include the `read:organization_member_roles` scope in the token. Only directly assigned roles are returned. To also include group-based role assignments, use `GET /api/v2/organizations/{id}/members/{user_id}/effective-roles`. - - This endpoint supports two types of pagination: - - - Offset pagination - - Checkpoint pagination - - Checkpoint pagination must be used if you need to retrieve more than 1000 organization members. - - **Checkpoint Pagination** - - To search by checkpoint, use the following parameters: - from: Optional id from which to start selection. - take: The total amount of entries to retrieve when using the from parameter. Defaults to 50. Note: The first time you call this endpoint using Checkpoint Pagination, you should omit the `from` parameter. If there are more results, a `next` value will be included in the response. You can use this for subsequent API calls. When `next` is no longer included in the response, this indicates there are no more pages remaining. - - Parameters - ---------- - id : str - Organization identifier. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[OrganizationMember, ListOrganizationMembersPaginatedResponseContent] - Members successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.organizations.members.list( - id="id", - include_totals=True, - from_="from", - take=1, - fields="fields", - include_fields=True, - ) - for item in response: - yield item - # alternatively, you can paginate page-by-page - for page in response.iter_pages(): - yield page - """ - return self._raw_client.list( - id, - include_totals=include_totals, - from_=from_, - take=take, - fields=fields, - include_fields=include_fields, - request_options=request_options, - ) - - def create( - self, id: str, *, members: typing.Sequence[str], request_options: typing.Optional[RequestOptions] = None - ) -> None: - """ - Set one or more existing users as members of a specific [Organization](https://auth0.com/docs/manage-users/organizations). - - To add a user to an Organization through this action, the user must already exist in your tenant. If a user does not yet exist, you can [invite them to create an account](https://auth0.com/docs/manage-users/organizations/configure-organizations/invite-members), manually create them through the Auth0 Dashboard, or use the Management API. - - Parameters - ---------- - id : str - Organization identifier. - - members : typing.Sequence[str] - List of user IDs to add to the organization as members. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.organizations.members.create( - id="id", - members=["members"], - ) - """ - _response = self._raw_client.create(id, members=members, request_options=request_options) - return _response.data - - def delete( - self, id: str, *, members: typing.Sequence[str], request_options: typing.Optional[RequestOptions] = None - ) -> None: - """ - Parameters - ---------- - id : str - Organization identifier. - - members : typing.Sequence[str] - List of user IDs to remove from the organization. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.organizations.members.delete( - id="id", - members=["members"], - ) - """ - _response = self._raw_client.delete(id, members=members, request_options=request_options) - return _response.data - - @property - def effective_roles(self): - if self._effective_roles is None: - from .effective_roles.client import EffectiveRolesClient # noqa: E402 - - self._effective_roles = EffectiveRolesClient(client_wrapper=self._client_wrapper) - return self._effective_roles - - @property - def roles(self): - if self._roles is None: - from .roles.client import RolesClient # noqa: E402 - - self._roles = RolesClient(client_wrapper=self._client_wrapper) - return self._roles - - -class AsyncMembersClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawMembersClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._effective_roles: typing.Optional[AsyncEffectiveRolesClient] = None - self._roles: typing.Optional[AsyncRolesClient] = None - - @property - def with_raw_response(self) -> AsyncRawMembersClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawMembersClient - """ - return self._raw_client - - async def list( - self, - id: str, - *, - include_totals: typing.Optional[bool] = True, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[OrganizationMember, ListOrganizationMembersPaginatedResponseContent]: - """ - List organization members. - This endpoint is subject to eventual consistency. New users may not be immediately included in the response and deleted users may not be immediately removed from it. - - - Use the `fields` parameter to optionally define the specific member details retrieved. If `fields` is left blank, all fields (except roles) are returned. - - Member roles are not sent by default. Use `fields=roles` to retrieve the roles assigned to each listed member. To use this parameter, you must include the `read:organization_member_roles` scope in the token. Only directly assigned roles are returned. To also include group-based role assignments, use `GET /api/v2/organizations/{id}/members/{user_id}/effective-roles`. - - This endpoint supports two types of pagination: - - - Offset pagination - - Checkpoint pagination - - Checkpoint pagination must be used if you need to retrieve more than 1000 organization members. - - **Checkpoint Pagination** - - To search by checkpoint, use the following parameters: - from: Optional id from which to start selection. - take: The total amount of entries to retrieve when using the from parameter. Defaults to 50. Note: The first time you call this endpoint using Checkpoint Pagination, you should omit the `from` parameter. If there are more results, a `next` value will be included in the response. You can use this for subsequent API calls. When `next` is no longer included in the response, this indicates there are no more pages remaining. - - Parameters - ---------- - id : str - Organization identifier. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[OrganizationMember, ListOrganizationMembersPaginatedResponseContent] - Members successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.organizations.members.list( - id="id", - include_totals=True, - from_="from", - take=1, - fields="fields", - include_fields=True, - ) - async for item in response: - yield item - - # alternatively, you can paginate page-by-page - async for page in response.iter_pages(): - yield page - - - asyncio.run(main()) - """ - return await self._raw_client.list( - id, - include_totals=include_totals, - from_=from_, - take=take, - fields=fields, - include_fields=include_fields, - request_options=request_options, - ) - - async def create( - self, id: str, *, members: typing.Sequence[str], request_options: typing.Optional[RequestOptions] = None - ) -> None: - """ - Set one or more existing users as members of a specific [Organization](https://auth0.com/docs/manage-users/organizations). - - To add a user to an Organization through this action, the user must already exist in your tenant. If a user does not yet exist, you can [invite them to create an account](https://auth0.com/docs/manage-users/organizations/configure-organizations/invite-members), manually create them through the Auth0 Dashboard, or use the Management API. - - Parameters - ---------- - id : str - Organization identifier. - - members : typing.Sequence[str] - List of user IDs to add to the organization as members. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.organizations.members.create( - id="id", - members=["members"], - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create(id, members=members, request_options=request_options) - return _response.data - - async def delete( - self, id: str, *, members: typing.Sequence[str], request_options: typing.Optional[RequestOptions] = None - ) -> None: - """ - Parameters - ---------- - id : str - Organization identifier. - - members : typing.Sequence[str] - List of user IDs to remove from the organization. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.organizations.members.delete( - id="id", - members=["members"], - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete(id, members=members, request_options=request_options) - return _response.data - - @property - def effective_roles(self): - if self._effective_roles is None: - from .effective_roles.client import AsyncEffectiveRolesClient # noqa: E402 - - self._effective_roles = AsyncEffectiveRolesClient(client_wrapper=self._client_wrapper) - return self._effective_roles - - @property - def roles(self): - if self._roles is None: - from .roles.client import AsyncRolesClient # noqa: E402 - - self._roles = AsyncRolesClient(client_wrapper=self._client_wrapper) - return self._roles diff --git a/src/auth0/management/organizations/members/effective_roles/__init__.py b/src/auth0/management/organizations/members/effective_roles/__init__.py deleted file mode 100644 index 504a42f7..00000000 --- a/src/auth0/management/organizations/members/effective_roles/__init__.py +++ /dev/null @@ -1,34 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from . import sources -_dynamic_imports: typing.Dict[str, str] = {"sources": ".sources"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - if module_name == f".{attr_name}": - return module - else: - return getattr(module, attr_name) - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["sources"] diff --git a/src/auth0/management/organizations/members/effective_roles/client.py b/src/auth0/management/organizations/members/effective_roles/client.py deleted file mode 100644 index e9732d31..00000000 --- a/src/auth0/management/organizations/members/effective_roles/client.py +++ /dev/null @@ -1,188 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -from ....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ....core.pagination import AsyncPager, SyncPager -from ....core.request_options import RequestOptions -from ....types.list_organization_member_effective_roles_response_content import ( - ListOrganizationMemberEffectiveRolesResponseContent, -) -from ....types.organization_member_effective_role import OrganizationMemberEffectiveRole -from .raw_client import AsyncRawEffectiveRolesClient, RawEffectiveRolesClient - -if typing.TYPE_CHECKING: - from .sources.client import AsyncSourcesClient, SourcesClient - - -class EffectiveRolesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawEffectiveRolesClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._sources: typing.Optional[SourcesClient] = None - - @property - def with_raw_response(self) -> RawEffectiveRolesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawEffectiveRolesClient - """ - return self._raw_client - - def list( - self, - id: str, - user_id: str, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[OrganizationMemberEffectiveRole, ListOrganizationMemberEffectiveRolesResponseContent]: - """ - Lists the roles assigned to an organization member directly or through group membership. - - Parameters - ---------- - id : str - Organization identifier. - - user_id : str - ID of the user to list effective roles for. - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[OrganizationMemberEffectiveRole, ListOrganizationMemberEffectiveRolesResponseContent] - Organization member's effective roles successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.organizations.members.effective_roles.list( - id="id", - user_id="user_id", - from_="from", - take=1, - ) - for item in response: - yield item - # alternatively, you can paginate page-by-page - for page in response.iter_pages(): - yield page - """ - return self._raw_client.list(id, user_id, from_=from_, take=take, request_options=request_options) - - @property - def sources(self): - if self._sources is None: - from .sources.client import SourcesClient # noqa: E402 - - self._sources = SourcesClient(client_wrapper=self._client_wrapper) - return self._sources - - -class AsyncEffectiveRolesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawEffectiveRolesClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._sources: typing.Optional[AsyncSourcesClient] = None - - @property - def with_raw_response(self) -> AsyncRawEffectiveRolesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawEffectiveRolesClient - """ - return self._raw_client - - async def list( - self, - id: str, - user_id: str, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[OrganizationMemberEffectiveRole, ListOrganizationMemberEffectiveRolesResponseContent]: - """ - Lists the roles assigned to an organization member directly or through group membership. - - Parameters - ---------- - id : str - Organization identifier. - - user_id : str - ID of the user to list effective roles for. - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[OrganizationMemberEffectiveRole, ListOrganizationMemberEffectiveRolesResponseContent] - Organization member's effective roles successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.organizations.members.effective_roles.list( - id="id", - user_id="user_id", - from_="from", - take=1, - ) - async for item in response: - yield item - - # alternatively, you can paginate page-by-page - async for page in response.iter_pages(): - yield page - - - asyncio.run(main()) - """ - return await self._raw_client.list(id, user_id, from_=from_, take=take, request_options=request_options) - - @property - def sources(self): - if self._sources is None: - from .sources.client import AsyncSourcesClient # noqa: E402 - - self._sources = AsyncSourcesClient(client_wrapper=self._client_wrapper) - return self._sources diff --git a/src/auth0/management/organizations/members/effective_roles/raw_client.py b/src/auth0/management/organizations/members/effective_roles/raw_client.py deleted file mode 100644 index 36a7bfe7..00000000 --- a/src/auth0/management/organizations/members/effective_roles/raw_client.py +++ /dev/null @@ -1,289 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ....core.api_error import ApiError -from ....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ....core.jsonable_encoder import quote_path_param -from ....core.pagination import AsyncPager, SyncPager -from ....core.parse_error import ParsingError -from ....core.pydantic_utilities import parse_obj_as -from ....core.request_options import RequestOptions -from ....errors.bad_request_error import BadRequestError -from ....errors.forbidden_error import ForbiddenError -from ....errors.not_found_error import NotFoundError -from ....errors.too_many_requests_error import TooManyRequestsError -from ....errors.unauthorized_error import UnauthorizedError -from ....types.list_organization_member_effective_roles_response_content import ( - ListOrganizationMemberEffectiveRolesResponseContent, -) -from ....types.organization_member_effective_role import OrganizationMemberEffectiveRole -from pydantic import ValidationError - - -class RawEffectiveRolesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - id: str, - user_id: str, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[OrganizationMemberEffectiveRole, ListOrganizationMemberEffectiveRolesResponseContent]: - """ - Lists the roles assigned to an organization member directly or through group membership. - - Parameters - ---------- - id : str - Organization identifier. - - user_id : str - ID of the user to list effective roles for. - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[OrganizationMemberEffectiveRole, ListOrganizationMemberEffectiveRolesResponseContent] - Organization member's effective roles successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(id)}/members/{quote_path_param(user_id)}/effective-roles", - method="GET", - params={ - "from": from_, - "take": take, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListOrganizationMemberEffectiveRolesResponseContent, - parse_obj_as( - type_=ListOrganizationMemberEffectiveRolesResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.roles - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - _get_next = lambda: self.list( - id, - user_id, - from_=_parsed_next, - take=take, - request_options=request_options, - ) - return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawEffectiveRolesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - id: str, - user_id: str, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[OrganizationMemberEffectiveRole, ListOrganizationMemberEffectiveRolesResponseContent]: - """ - Lists the roles assigned to an organization member directly or through group membership. - - Parameters - ---------- - id : str - Organization identifier. - - user_id : str - ID of the user to list effective roles for. - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[OrganizationMemberEffectiveRole, ListOrganizationMemberEffectiveRolesResponseContent] - Organization member's effective roles successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(id)}/members/{quote_path_param(user_id)}/effective-roles", - method="GET", - params={ - "from": from_, - "take": take, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListOrganizationMemberEffectiveRolesResponseContent, - parse_obj_as( - type_=ListOrganizationMemberEffectiveRolesResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.roles - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - - async def _get_next(): - return await self.list( - id, - user_id, - from_=_parsed_next, - take=take, - request_options=request_options, - ) - - return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/organizations/members/effective_roles/sources/__init__.py b/src/auth0/management/organizations/members/effective_roles/sources/__init__.py deleted file mode 100644 index 345b2fe1..00000000 --- a/src/auth0/management/organizations/members/effective_roles/sources/__init__.py +++ /dev/null @@ -1,34 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from . import groups -_dynamic_imports: typing.Dict[str, str] = {"groups": ".groups"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - if module_name == f".{attr_name}": - return module - else: - return getattr(module, attr_name) - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["groups"] diff --git a/src/auth0/management/organizations/members/effective_roles/sources/client.py b/src/auth0/management/organizations/members/effective_roles/sources/client.py deleted file mode 100644 index 72d2517f..00000000 --- a/src/auth0/management/organizations/members/effective_roles/sources/client.py +++ /dev/null @@ -1,63 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .raw_client import AsyncRawSourcesClient, RawSourcesClient - -if typing.TYPE_CHECKING: - from .groups.client import AsyncGroupsClient, GroupsClient - - -class SourcesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawSourcesClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._groups: typing.Optional[GroupsClient] = None - - @property - def with_raw_response(self) -> RawSourcesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawSourcesClient - """ - return self._raw_client - - @property - def groups(self): - if self._groups is None: - from .groups.client import GroupsClient # noqa: E402 - - self._groups = GroupsClient(client_wrapper=self._client_wrapper) - return self._groups - - -class AsyncSourcesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawSourcesClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._groups: typing.Optional[AsyncGroupsClient] = None - - @property - def with_raw_response(self) -> AsyncRawSourcesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawSourcesClient - """ - return self._raw_client - - @property - def groups(self): - if self._groups is None: - from .groups.client import AsyncGroupsClient # noqa: E402 - - self._groups = AsyncGroupsClient(client_wrapper=self._client_wrapper) - return self._groups diff --git a/src/auth0/management/organizations/members/effective_roles/sources/groups/__init__.py b/src/auth0/management/organizations/members/effective_roles/sources/groups/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/organizations/members/effective_roles/sources/groups/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/organizations/members/effective_roles/sources/groups/client.py b/src/auth0/management/organizations/members/effective_roles/sources/groups/client.py deleted file mode 100644 index f90e95a4..00000000 --- a/src/auth0/management/organizations/members/effective_roles/sources/groups/client.py +++ /dev/null @@ -1,179 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ......core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ......core.pagination import AsyncPager, SyncPager -from ......core.request_options import RequestOptions -from ......types.group import Group -from ......types.list_organization_member_role_source_groups_response_content import ( - ListOrganizationMemberRoleSourceGroupsResponseContent, -) -from .raw_client import AsyncRawGroupsClient, RawGroupsClient - - -class GroupsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawGroupsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawGroupsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawGroupsClient - """ - return self._raw_client - - def list( - self, - id: str, - user_id: str, - *, - role_id: str, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[Group, ListOrganizationMemberRoleSourceGroupsResponseContent]: - """ - Lists the groups which grant the org member a given role. - - Parameters - ---------- - id : str - Organization identifier. - - user_id : str - ID of the user to list role source groups for. - - role_id : str - The role ID to get group sources for. - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[Group, ListOrganizationMemberRoleSourceGroupsResponseContent] - Organization member role source groups successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.organizations.members.effective_roles.sources.groups.list( - id="id", - user_id="user_id", - from_="from", - take=1, - role_id="role_id", - ) - for item in response: - yield item - # alternatively, you can paginate page-by-page - for page in response.iter_pages(): - yield page - """ - return self._raw_client.list( - id, user_id, role_id=role_id, from_=from_, take=take, request_options=request_options - ) - - -class AsyncGroupsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawGroupsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawGroupsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawGroupsClient - """ - return self._raw_client - - async def list( - self, - id: str, - user_id: str, - *, - role_id: str, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[Group, ListOrganizationMemberRoleSourceGroupsResponseContent]: - """ - Lists the groups which grant the org member a given role. - - Parameters - ---------- - id : str - Organization identifier. - - user_id : str - ID of the user to list role source groups for. - - role_id : str - The role ID to get group sources for. - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[Group, ListOrganizationMemberRoleSourceGroupsResponseContent] - Organization member role source groups successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = ( - await client.organizations.members.effective_roles.sources.groups.list( - id="id", - user_id="user_id", - from_="from", - take=1, - role_id="role_id", - ) - ) - async for item in response: - yield item - - # alternatively, you can paginate page-by-page - async for page in response.iter_pages(): - yield page - - - asyncio.run(main()) - """ - return await self._raw_client.list( - id, user_id, role_id=role_id, from_=from_, take=take, request_options=request_options - ) diff --git a/src/auth0/management/organizations/members/effective_roles/sources/groups/raw_client.py b/src/auth0/management/organizations/members/effective_roles/sources/groups/raw_client.py deleted file mode 100644 index f219346f..00000000 --- a/src/auth0/management/organizations/members/effective_roles/sources/groups/raw_client.py +++ /dev/null @@ -1,301 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ......core.api_error import ApiError -from ......core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ......core.jsonable_encoder import quote_path_param -from ......core.pagination import AsyncPager, SyncPager -from ......core.parse_error import ParsingError -from ......core.pydantic_utilities import parse_obj_as -from ......core.request_options import RequestOptions -from ......errors.bad_request_error import BadRequestError -from ......errors.forbidden_error import ForbiddenError -from ......errors.not_found_error import NotFoundError -from ......errors.too_many_requests_error import TooManyRequestsError -from ......errors.unauthorized_error import UnauthorizedError -from ......types.group import Group -from ......types.list_organization_member_role_source_groups_response_content import ( - ListOrganizationMemberRoleSourceGroupsResponseContent, -) -from pydantic import ValidationError - - -class RawGroupsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - id: str, - user_id: str, - *, - role_id: str, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[Group, ListOrganizationMemberRoleSourceGroupsResponseContent]: - """ - Lists the groups which grant the org member a given role. - - Parameters - ---------- - id : str - Organization identifier. - - user_id : str - ID of the user to list role source groups for. - - role_id : str - The role ID to get group sources for. - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[Group, ListOrganizationMemberRoleSourceGroupsResponseContent] - Organization member role source groups successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(id)}/members/{quote_path_param(user_id)}/effective-roles/sources/groups", - method="GET", - params={ - "from": from_, - "take": take, - "role_id": role_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListOrganizationMemberRoleSourceGroupsResponseContent, - parse_obj_as( - type_=ListOrganizationMemberRoleSourceGroupsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.groups - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - _get_next = lambda: self.list( - id, - user_id, - role_id=role_id, - from_=_parsed_next, - take=take, - request_options=request_options, - ) - return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawGroupsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - id: str, - user_id: str, - *, - role_id: str, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[Group, ListOrganizationMemberRoleSourceGroupsResponseContent]: - """ - Lists the groups which grant the org member a given role. - - Parameters - ---------- - id : str - Organization identifier. - - user_id : str - ID of the user to list role source groups for. - - role_id : str - The role ID to get group sources for. - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[Group, ListOrganizationMemberRoleSourceGroupsResponseContent] - Organization member role source groups successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(id)}/members/{quote_path_param(user_id)}/effective-roles/sources/groups", - method="GET", - params={ - "from": from_, - "take": take, - "role_id": role_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListOrganizationMemberRoleSourceGroupsResponseContent, - parse_obj_as( - type_=ListOrganizationMemberRoleSourceGroupsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.groups - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - - async def _get_next(): - return await self.list( - id, - user_id, - role_id=role_id, - from_=_parsed_next, - take=take, - request_options=request_options, - ) - - return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/organizations/members/effective_roles/sources/raw_client.py b/src/auth0/management/organizations/members/effective_roles/sources/raw_client.py deleted file mode 100644 index ac212ad3..00000000 --- a/src/auth0/management/organizations/members/effective_roles/sources/raw_client.py +++ /dev/null @@ -1,13 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper - - -class RawSourcesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - -class AsyncRawSourcesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper diff --git a/src/auth0/management/organizations/members/raw_client.py b/src/auth0/management/organizations/members/raw_client.py deleted file mode 100644 index 0f60b34c..00000000 --- a/src/auth0/management/organizations/members/raw_client.py +++ /dev/null @@ -1,705 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ...core.api_error import ApiError -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.http_response import AsyncHttpResponse, HttpResponse -from ...core.jsonable_encoder import quote_path_param -from ...core.pagination import AsyncPager, SyncPager -from ...core.parse_error import ParsingError -from ...core.pydantic_utilities import parse_obj_as -from ...core.request_options import RequestOptions -from ...errors.bad_request_error import BadRequestError -from ...errors.forbidden_error import ForbiddenError -from ...errors.not_found_error import NotFoundError -from ...errors.too_many_requests_error import TooManyRequestsError -from ...errors.unauthorized_error import UnauthorizedError -from ...types.list_organization_members_paginated_response_content import ( - ListOrganizationMembersPaginatedResponseContent, -) -from ...types.organization_member import OrganizationMember -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawMembersClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - id: str, - *, - include_totals: typing.Optional[bool] = True, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[OrganizationMember, ListOrganizationMembersPaginatedResponseContent]: - """ - List organization members. - This endpoint is subject to eventual consistency. New users may not be immediately included in the response and deleted users may not be immediately removed from it. - - - Use the `fields` parameter to optionally define the specific member details retrieved. If `fields` is left blank, all fields (except roles) are returned. - - Member roles are not sent by default. Use `fields=roles` to retrieve the roles assigned to each listed member. To use this parameter, you must include the `read:organization_member_roles` scope in the token. Only directly assigned roles are returned. To also include group-based role assignments, use `GET /api/v2/organizations/{id}/members/{user_id}/effective-roles`. - - This endpoint supports two types of pagination: - - - Offset pagination - - Checkpoint pagination - - Checkpoint pagination must be used if you need to retrieve more than 1000 organization members. - - **Checkpoint Pagination** - - To search by checkpoint, use the following parameters: - from: Optional id from which to start selection. - take: The total amount of entries to retrieve when using the from parameter. Defaults to 50. Note: The first time you call this endpoint using Checkpoint Pagination, you should omit the `from` parameter. If there are more results, a `next` value will be included in the response. You can use this for subsequent API calls. When `next` is no longer included in the response, this indicates there are no more pages remaining. - - Parameters - ---------- - id : str - Organization identifier. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[OrganizationMember, ListOrganizationMembersPaginatedResponseContent] - Members successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(id)}/members", - method="GET", - params={ - "include_totals": include_totals, - "from": from_, - "take": take, - "fields": fields, - "include_fields": include_fields, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListOrganizationMembersPaginatedResponseContent, - parse_obj_as( - type_=ListOrganizationMembersPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.members - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - _get_next = lambda: self.list( - id, - include_totals=include_totals, - from_=_parsed_next, - take=take, - fields=fields, - include_fields=include_fields, - request_options=request_options, - ) - return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, id: str, *, members: typing.Sequence[str], request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[None]: - """ - Set one or more existing users as members of a specific [Organization](https://auth0.com/docs/manage-users/organizations). - - To add a user to an Organization through this action, the user must already exist in your tenant. If a user does not yet exist, you can [invite them to create an account](https://auth0.com/docs/manage-users/organizations/configure-organizations/invite-members), manually create them through the Auth0 Dashboard, or use the Management API. - - Parameters - ---------- - id : str - Organization identifier. - - members : typing.Sequence[str] - List of user IDs to add to the organization as members. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(id)}/members", - method="POST", - json={ - "members": members, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def delete( - self, id: str, *, members: typing.Sequence[str], request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[None]: - """ - Parameters - ---------- - id : str - Organization identifier. - - members : typing.Sequence[str] - List of user IDs to remove from the organization. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(id)}/members", - method="DELETE", - json={ - "members": members, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawMembersClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - id: str, - *, - include_totals: typing.Optional[bool] = True, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[OrganizationMember, ListOrganizationMembersPaginatedResponseContent]: - """ - List organization members. - This endpoint is subject to eventual consistency. New users may not be immediately included in the response and deleted users may not be immediately removed from it. - - - Use the `fields` parameter to optionally define the specific member details retrieved. If `fields` is left blank, all fields (except roles) are returned. - - Member roles are not sent by default. Use `fields=roles` to retrieve the roles assigned to each listed member. To use this parameter, you must include the `read:organization_member_roles` scope in the token. Only directly assigned roles are returned. To also include group-based role assignments, use `GET /api/v2/organizations/{id}/members/{user_id}/effective-roles`. - - This endpoint supports two types of pagination: - - - Offset pagination - - Checkpoint pagination - - Checkpoint pagination must be used if you need to retrieve more than 1000 organization members. - - **Checkpoint Pagination** - - To search by checkpoint, use the following parameters: - from: Optional id from which to start selection. - take: The total amount of entries to retrieve when using the from parameter. Defaults to 50. Note: The first time you call this endpoint using Checkpoint Pagination, you should omit the `from` parameter. If there are more results, a `next` value will be included in the response. You can use this for subsequent API calls. When `next` is no longer included in the response, this indicates there are no more pages remaining. - - Parameters - ---------- - id : str - Organization identifier. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[OrganizationMember, ListOrganizationMembersPaginatedResponseContent] - Members successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(id)}/members", - method="GET", - params={ - "include_totals": include_totals, - "from": from_, - "take": take, - "fields": fields, - "include_fields": include_fields, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListOrganizationMembersPaginatedResponseContent, - parse_obj_as( - type_=ListOrganizationMembersPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.members - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - - async def _get_next(): - return await self.list( - id, - include_totals=include_totals, - from_=_parsed_next, - take=take, - fields=fields, - include_fields=include_fields, - request_options=request_options, - ) - - return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, id: str, *, members: typing.Sequence[str], request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Set one or more existing users as members of a specific [Organization](https://auth0.com/docs/manage-users/organizations). - - To add a user to an Organization through this action, the user must already exist in your tenant. If a user does not yet exist, you can [invite them to create an account](https://auth0.com/docs/manage-users/organizations/configure-organizations/invite-members), manually create them through the Auth0 Dashboard, or use the Management API. - - Parameters - ---------- - id : str - Organization identifier. - - members : typing.Sequence[str] - List of user IDs to add to the organization as members. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(id)}/members", - method="POST", - json={ - "members": members, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def delete( - self, id: str, *, members: typing.Sequence[str], request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Parameters - ---------- - id : str - Organization identifier. - - members : typing.Sequence[str] - List of user IDs to remove from the organization. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(id)}/members", - method="DELETE", - json={ - "members": members, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/organizations/members/roles/__init__.py b/src/auth0/management/organizations/members/roles/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/organizations/members/roles/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/organizations/members/roles/client.py b/src/auth0/management/organizations/members/roles/client.py deleted file mode 100644 index 610b27d8..00000000 --- a/src/auth0/management/organizations/members/roles/client.py +++ /dev/null @@ -1,392 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ....core.pagination import AsyncPager, SyncPager -from ....core.request_options import RequestOptions -from ....types.list_organization_member_roles_offset_paginated_response_content import ( - ListOrganizationMemberRolesOffsetPaginatedResponseContent, -) -from ....types.role import Role -from .raw_client import AsyncRawRolesClient, RawRolesClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RolesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawRolesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawRolesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawRolesClient - """ - return self._raw_client - - def list( - self, - id: str, - user_id: str, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - include_totals: typing.Optional[bool] = True, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[Role, ListOrganizationMemberRolesOffsetPaginatedResponseContent]: - """ - Retrieve detailed list of roles assigned to a given user within the context of a specific Organization. - - Users can be members of multiple Organizations with unique roles assigned for each membership. This action only returns the roles associated with the specified Organization; any roles assigned to the user within other Organizations are not included. - - **Note**: Returns only direct role assignments for this member. To also include group-based role assignments, use `GET /api/v2/organizations/{id}/members/{user_id}/effective-roles`. - - Parameters - ---------- - id : str - Organization identifier. - - user_id : str - ID of the user to associate roles with. - - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. Defaults to 50. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[Role, ListOrganizationMemberRolesOffsetPaginatedResponseContent] - Roles successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.organizations.members.roles.list( - id="id", - user_id="user_id", - page=1, - per_page=1, - include_totals=True, - ) - for item in response: - yield item - # alternatively, you can paginate page-by-page - for page in response.iter_pages(): - yield page - """ - return self._raw_client.list( - id, user_id, page=page, per_page=per_page, include_totals=include_totals, request_options=request_options - ) - - def assign( - self, - id: str, - user_id: str, - *, - roles: typing.Sequence[str], - request_options: typing.Optional[RequestOptions] = None, - ) -> None: - """ - Assign one or more [roles](https://auth0.com/docs/manage-users/access-control/rbac) to a user to determine their access for a specific Organization. - - Users can be members of multiple Organizations with unique roles assigned for each membership. This action assigns roles to a user only for the specified Organization. Roles cannot be assigned to a user across multiple Organizations in the same call. - - Parameters - ---------- - id : str - Organization identifier. - - user_id : str - ID of the user to associate roles with. - - roles : typing.Sequence[str] - List of roles IDs to associated with the user. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.organizations.members.roles.assign( - id="id", - user_id="user_id", - roles=["roles"], - ) - """ - _response = self._raw_client.assign(id, user_id, roles=roles, request_options=request_options) - return _response.data - - def delete( - self, - id: str, - user_id: str, - *, - roles: typing.Sequence[str], - request_options: typing.Optional[RequestOptions] = None, - ) -> None: - """ - Remove one or more Organization-specific [roles](https://auth0.com/docs/manage-users/access-control/rbac) from a given user. - - Users can be members of multiple Organizations with unique roles assigned for each membership. This action removes roles from a user in relation to the specified Organization. Roles assigned to the user within a different Organization cannot be managed in the same call. - - Parameters - ---------- - id : str - Organization identifier. - - user_id : str - User ID of the organization member to remove roles from. - - roles : typing.Sequence[str] - List of roles IDs associated with the organization member to remove. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.organizations.members.roles.delete( - id="id", - user_id="user_id", - roles=["roles"], - ) - """ - _response = self._raw_client.delete(id, user_id, roles=roles, request_options=request_options) - return _response.data - - -class AsyncRolesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawRolesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawRolesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawRolesClient - """ - return self._raw_client - - async def list( - self, - id: str, - user_id: str, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - include_totals: typing.Optional[bool] = True, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[Role, ListOrganizationMemberRolesOffsetPaginatedResponseContent]: - """ - Retrieve detailed list of roles assigned to a given user within the context of a specific Organization. - - Users can be members of multiple Organizations with unique roles assigned for each membership. This action only returns the roles associated with the specified Organization; any roles assigned to the user within other Organizations are not included. - - **Note**: Returns only direct role assignments for this member. To also include group-based role assignments, use `GET /api/v2/organizations/{id}/members/{user_id}/effective-roles`. - - Parameters - ---------- - id : str - Organization identifier. - - user_id : str - ID of the user to associate roles with. - - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. Defaults to 50. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[Role, ListOrganizationMemberRolesOffsetPaginatedResponseContent] - Roles successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.organizations.members.roles.list( - id="id", - user_id="user_id", - page=1, - per_page=1, - include_totals=True, - ) - async for item in response: - yield item - - # alternatively, you can paginate page-by-page - async for page in response.iter_pages(): - yield page - - - asyncio.run(main()) - """ - return await self._raw_client.list( - id, user_id, page=page, per_page=per_page, include_totals=include_totals, request_options=request_options - ) - - async def assign( - self, - id: str, - user_id: str, - *, - roles: typing.Sequence[str], - request_options: typing.Optional[RequestOptions] = None, - ) -> None: - """ - Assign one or more [roles](https://auth0.com/docs/manage-users/access-control/rbac) to a user to determine their access for a specific Organization. - - Users can be members of multiple Organizations with unique roles assigned for each membership. This action assigns roles to a user only for the specified Organization. Roles cannot be assigned to a user across multiple Organizations in the same call. - - Parameters - ---------- - id : str - Organization identifier. - - user_id : str - ID of the user to associate roles with. - - roles : typing.Sequence[str] - List of roles IDs to associated with the user. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.organizations.members.roles.assign( - id="id", - user_id="user_id", - roles=["roles"], - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.assign(id, user_id, roles=roles, request_options=request_options) - return _response.data - - async def delete( - self, - id: str, - user_id: str, - *, - roles: typing.Sequence[str], - request_options: typing.Optional[RequestOptions] = None, - ) -> None: - """ - Remove one or more Organization-specific [roles](https://auth0.com/docs/manage-users/access-control/rbac) from a given user. - - Users can be members of multiple Organizations with unique roles assigned for each membership. This action removes roles from a user in relation to the specified Organization. Roles assigned to the user within a different Organization cannot be managed in the same call. - - Parameters - ---------- - id : str - Organization identifier. - - user_id : str - User ID of the organization member to remove roles from. - - roles : typing.Sequence[str] - List of roles IDs associated with the organization member to remove. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.organizations.members.roles.delete( - id="id", - user_id="user_id", - roles=["roles"], - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete(id, user_id, roles=roles, request_options=request_options) - return _response.data diff --git a/src/auth0/management/organizations/members/roles/raw_client.py b/src/auth0/management/organizations/members/roles/raw_client.py deleted file mode 100644 index 54965f4b..00000000 --- a/src/auth0/management/organizations/members/roles/raw_client.py +++ /dev/null @@ -1,734 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ....core.api_error import ApiError -from ....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ....core.http_response import AsyncHttpResponse, HttpResponse -from ....core.jsonable_encoder import quote_path_param -from ....core.pagination import AsyncPager, SyncPager -from ....core.parse_error import ParsingError -from ....core.pydantic_utilities import parse_obj_as -from ....core.request_options import RequestOptions -from ....errors.bad_request_error import BadRequestError -from ....errors.conflict_error import ConflictError -from ....errors.forbidden_error import ForbiddenError -from ....errors.not_found_error import NotFoundError -from ....errors.too_many_requests_error import TooManyRequestsError -from ....errors.unauthorized_error import UnauthorizedError -from ....types.list_organization_member_roles_offset_paginated_response_content import ( - ListOrganizationMemberRolesOffsetPaginatedResponseContent, -) -from ....types.role import Role -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawRolesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - id: str, - user_id: str, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - include_totals: typing.Optional[bool] = True, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[Role, ListOrganizationMemberRolesOffsetPaginatedResponseContent]: - """ - Retrieve detailed list of roles assigned to a given user within the context of a specific Organization. - - Users can be members of multiple Organizations with unique roles assigned for each membership. This action only returns the roles associated with the specified Organization; any roles assigned to the user within other Organizations are not included. - - **Note**: Returns only direct role assignments for this member. To also include group-based role assignments, use `GET /api/v2/organizations/{id}/members/{user_id}/effective-roles`. - - Parameters - ---------- - id : str - Organization identifier. - - user_id : str - ID of the user to associate roles with. - - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. Defaults to 50. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[Role, ListOrganizationMemberRolesOffsetPaginatedResponseContent] - Roles successfully retrieved. - """ - page = page if page is not None else 0 - - _response = self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(id)}/members/{quote_path_param(user_id)}/roles", - method="GET", - params={ - "page": page, - "per_page": per_page, - "include_totals": include_totals, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListOrganizationMemberRolesOffsetPaginatedResponseContent, - parse_obj_as( - type_=ListOrganizationMemberRolesOffsetPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.roles - _has_next = len(_items or []) > 0 - _get_next = lambda: self.list( - id, - user_id, - page=page + 1, - per_page=per_page, - include_totals=include_totals, - request_options=request_options, - ) - return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def assign( - self, - id: str, - user_id: str, - *, - roles: typing.Sequence[str], - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[None]: - """ - Assign one or more [roles](https://auth0.com/docs/manage-users/access-control/rbac) to a user to determine their access for a specific Organization. - - Users can be members of multiple Organizations with unique roles assigned for each membership. This action assigns roles to a user only for the specified Organization. Roles cannot be assigned to a user across multiple Organizations in the same call. - - Parameters - ---------- - id : str - Organization identifier. - - user_id : str - ID of the user to associate roles with. - - roles : typing.Sequence[str] - List of roles IDs to associated with the user. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(id)}/members/{quote_path_param(user_id)}/roles", - method="POST", - json={ - "roles": roles, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def delete( - self, - id: str, - user_id: str, - *, - roles: typing.Sequence[str], - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[None]: - """ - Remove one or more Organization-specific [roles](https://auth0.com/docs/manage-users/access-control/rbac) from a given user. - - Users can be members of multiple Organizations with unique roles assigned for each membership. This action removes roles from a user in relation to the specified Organization. Roles assigned to the user within a different Organization cannot be managed in the same call. - - Parameters - ---------- - id : str - Organization identifier. - - user_id : str - User ID of the organization member to remove roles from. - - roles : typing.Sequence[str] - List of roles IDs associated with the organization member to remove. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(id)}/members/{quote_path_param(user_id)}/roles", - method="DELETE", - json={ - "roles": roles, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawRolesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - id: str, - user_id: str, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - include_totals: typing.Optional[bool] = True, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[Role, ListOrganizationMemberRolesOffsetPaginatedResponseContent]: - """ - Retrieve detailed list of roles assigned to a given user within the context of a specific Organization. - - Users can be members of multiple Organizations with unique roles assigned for each membership. This action only returns the roles associated with the specified Organization; any roles assigned to the user within other Organizations are not included. - - **Note**: Returns only direct role assignments for this member. To also include group-based role assignments, use `GET /api/v2/organizations/{id}/members/{user_id}/effective-roles`. - - Parameters - ---------- - id : str - Organization identifier. - - user_id : str - ID of the user to associate roles with. - - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. Defaults to 50. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[Role, ListOrganizationMemberRolesOffsetPaginatedResponseContent] - Roles successfully retrieved. - """ - page = page if page is not None else 0 - - _response = await self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(id)}/members/{quote_path_param(user_id)}/roles", - method="GET", - params={ - "page": page, - "per_page": per_page, - "include_totals": include_totals, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListOrganizationMemberRolesOffsetPaginatedResponseContent, - parse_obj_as( - type_=ListOrganizationMemberRolesOffsetPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.roles - _has_next = len(_items or []) > 0 - - async def _get_next(): - return await self.list( - id, - user_id, - page=page + 1, - per_page=per_page, - include_totals=include_totals, - request_options=request_options, - ) - - return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def assign( - self, - id: str, - user_id: str, - *, - roles: typing.Sequence[str], - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[None]: - """ - Assign one or more [roles](https://auth0.com/docs/manage-users/access-control/rbac) to a user to determine their access for a specific Organization. - - Users can be members of multiple Organizations with unique roles assigned for each membership. This action assigns roles to a user only for the specified Organization. Roles cannot be assigned to a user across multiple Organizations in the same call. - - Parameters - ---------- - id : str - Organization identifier. - - user_id : str - ID of the user to associate roles with. - - roles : typing.Sequence[str] - List of roles IDs to associated with the user. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(id)}/members/{quote_path_param(user_id)}/roles", - method="POST", - json={ - "roles": roles, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def delete( - self, - id: str, - user_id: str, - *, - roles: typing.Sequence[str], - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[None]: - """ - Remove one or more Organization-specific [roles](https://auth0.com/docs/manage-users/access-control/rbac) from a given user. - - Users can be members of multiple Organizations with unique roles assigned for each membership. This action removes roles from a user in relation to the specified Organization. Roles assigned to the user within a different Organization cannot be managed in the same call. - - Parameters - ---------- - id : str - Organization identifier. - - user_id : str - User ID of the organization member to remove roles from. - - roles : typing.Sequence[str] - List of roles IDs associated with the organization member to remove. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(id)}/members/{quote_path_param(user_id)}/roles", - method="DELETE", - json={ - "roles": roles, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/organizations/raw_client.py b/src/auth0/management/organizations/raw_client.py deleted file mode 100644 index 6a7154be..00000000 --- a/src/auth0/management/organizations/raw_client.py +++ /dev/null @@ -1,1765 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ..core.api_error import ApiError -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.http_response import AsyncHttpResponse, HttpResponse -from ..core.jsonable_encoder import quote_path_param -from ..core.pagination import AsyncPager, SyncPager -from ..core.parse_error import ParsingError -from ..core.pydantic_utilities import parse_obj_as -from ..core.request_options import RequestOptions -from ..core.serialization import convert_and_respect_annotation_metadata -from ..errors.bad_request_error import BadRequestError -from ..errors.conflict_error import ConflictError -from ..errors.forbidden_error import ForbiddenError -from ..errors.gateway_timeout_error import GatewayTimeoutError -from ..errors.not_found_error import NotFoundError -from ..errors.too_many_requests_error import TooManyRequestsError -from ..errors.unauthorized_error import UnauthorizedError -from ..types.connection_for_organization import ConnectionForOrganization -from ..types.create_organization_response_content import CreateOrganizationResponseContent -from ..types.create_token_quota import CreateTokenQuota -from ..types.get_organization_by_name_response_content import GetOrganizationByNameResponseContent -from ..types.get_organization_response_content import GetOrganizationResponseContent -from ..types.list_organizations_paginated_response_content import ListOrganizationsPaginatedResponseContent -from ..types.organization import Organization -from ..types.organization_branding import OrganizationBranding -from ..types.organization_metadata import OrganizationMetadata -from ..types.organization_sort_field_enum import OrganizationSortFieldEnum -from ..types.organization_third_party_client_access_enum import OrganizationThirdPartyClientAccessEnum -from ..types.search_organization import SearchOrganization -from ..types.search_organizations_paginated_response_content import SearchOrganizationsPaginatedResponseContent -from ..types.search_parser_enum import SearchParserEnum -from ..types.update_organization_response_content import UpdateOrganizationResponseContent -from ..types.update_token_quota import UpdateTokenQuota -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawOrganizationsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - include_totals: typing.Optional[bool] = True, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - sort: typing.Optional[str] = None, - include_client_association_for: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[Organization, ListOrganizationsPaginatedResponseContent]: - """ - Retrieve detailed list of all Organizations available in your tenant. For more information, see Auth0 Organizations. - - This endpoint supports two types of pagination: - - - Offset pagination - - Checkpoint pagination - - Checkpoint pagination must be used if you need to retrieve more than 1000 organizations. - - **Checkpoint Pagination** - - To search by checkpoint, use the following parameters: - - - `from`: Optional id from which to start selection. - - `take`: The total number of entries to retrieve when using the `from` parameter. Defaults to 50. - - **Note**: The first time you call this endpoint using checkpoint pagination, omit the `from` parameter. If there are more results, a `next` value is included in the response. You can use this for subsequent API calls. When `next` is no longer included in the response, no pages are remaining. - - Parameters - ---------- - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - sort : typing.Optional[str] - Field to sort by. Use field:order where order is 1 for ascending and -1 for descending. e.g. created_at:1. We currently support sorting by the following fields: name, display_name and created_at. - - include_client_association_for : typing.Optional[str] - Client ID. When set, each returned organization that has an association with this client gains a client object describing it; organizations without one omit the field. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[Organization, ListOrganizationsPaginatedResponseContent] - Organizations successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - "organizations", - method="GET", - params={ - "include_totals": include_totals, - "from": from_, - "take": take, - "sort": sort, - "include_client_association_for": include_client_association_for, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListOrganizationsPaginatedResponseContent, - parse_obj_as( - type_=ListOrganizationsPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.organizations - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - _get_next = lambda: self.list( - include_totals=include_totals, - from_=_parsed_next, - take=take, - sort=sort, - include_client_association_for=include_client_association_for, - request_options=request_options, - ) - return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - *, - name: str, - display_name: typing.Optional[str] = OMIT, - branding: typing.Optional[OrganizationBranding] = OMIT, - metadata: typing.Optional[OrganizationMetadata] = OMIT, - enabled_connections: typing.Optional[typing.Sequence[ConnectionForOrganization]] = OMIT, - token_quota: typing.Optional[CreateTokenQuota] = OMIT, - third_party_client_access: typing.Optional[OrganizationThirdPartyClientAccessEnum] = OMIT, - is_app_entitlement_active: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[CreateOrganizationResponseContent]: - """ - Create a new Organization within your tenant. To learn more about Organization settings, behavior, and configuration options, review [Create Your First Organization](https://auth0.com/docs/manage-users/organizations/create-first-organization). - - Parameters - ---------- - name : str - The name of this organization. - - display_name : typing.Optional[str] - Friendly name of this organization. - - branding : typing.Optional[OrganizationBranding] - - metadata : typing.Optional[OrganizationMetadata] - - enabled_connections : typing.Optional[typing.Sequence[ConnectionForOrganization]] - Connections that will be enabled for this organization. See POST enabled_connections endpoint for the object format. (Max of 10 connections allowed) - - token_quota : typing.Optional[CreateTokenQuota] - - third_party_client_access : typing.Optional[OrganizationThirdPartyClientAccessEnum] - - is_app_entitlement_active : typing.Optional[bool] - Whether app entitlement is active for this organization. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CreateOrganizationResponseContent] - Organization successfully created. - """ - _response = self._client_wrapper.httpx_client.request( - "organizations", - method="POST", - json={ - "name": name, - "display_name": display_name, - "branding": convert_and_respect_annotation_metadata( - object_=branding, annotation=OrganizationBranding, direction="write" - ), - "metadata": metadata, - "enabled_connections": convert_and_respect_annotation_metadata( - object_=enabled_connections, - annotation=typing.Sequence[ConnectionForOrganization], - direction="write", - ), - "token_quota": convert_and_respect_annotation_metadata( - object_=token_quota, annotation=CreateTokenQuota, direction="write" - ), - "third_party_client_access": third_party_client_access, - "is_app_entitlement_active": is_app_entitlement_active, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateOrganizationResponseContent, - parse_obj_as( - type_=CreateOrganizationResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def get_by_name( - self, name: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetOrganizationByNameResponseContent]: - """ - Retrieve details about a single Organization specified by name. - - Parameters - ---------- - name : str - name of the organization to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetOrganizationByNameResponseContent] - Organization successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - f"organizations/name/{quote_path_param(name)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetOrganizationByNameResponseContent, - parse_obj_as( - type_=GetOrganizationByNameResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def search( - self, - *, - q: typing.Optional[str] = None, - parser: typing.Optional[SearchParserEnum] = None, - take: typing.Optional[int] = 50, - from_: typing.Optional[str] = None, - sort: typing.Optional[OrganizationSortFieldEnum] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[SearchOrganization, SearchOrganizationsPaginatedResponseContent]: - """ - Retrieve details of organizations matching a search criteria. It is possible to: - - - Specify a search criteria for organizations - - Search via `name` - - Search via `display_name` - - Substring matching (`contains` and `ends-with`) requires at least 3 characters - - Use wildcards - - The `q` query parameter can be used to get organizations that match the specified criteria on `name` OR `display_name`. - - This endpoint supports SCIM or Lucene filter syntax with low-latency, cursor-based pagination. Use the `parser` parameter to specify "scim" or "lucene" syntax (default: "lucene"). - - Results are eventually consistent and may not reflect recent updates immediately. - - **Sortable fields:** `name`, `display_name`, `created_at` (ascending only). Defaults to insertion order (oldest first). - - Parameters - ---------- - q : typing.Optional[str] - Filter expression in SCIM or Lucene syntax (depending on parser parameter, default: Lucene). Lucene examples: `name:acme*`, `display_name:*auth*`. SCIM examples: `name eq "Auth0"`, `display_name sw "auth" and created_at gt "2024-01-01"`. SCIM operators: eq, ne, sw, ew, co, pr, gt, ge, lt, le, and, or.

Supported Fields:
  • id - Organization ID (case-sensitive, exact match)
  • name - Organization name (supports contains, starts-with, ends-with operators; sortable)
  • display_name - Organization display name (supports contains, starts-with, ends-with operators; sortable)
  • created_at - Creation timestamp (supports date range operators; sortable)
  • metadata.{key} - Filter by organization metadata key-value pairs
Maximum 5 filter operations per query. Results are eventually consistent and may not reflect recent updates. - - parser : typing.Optional[SearchParserEnum] - Query parser to use for the filter expression. Use "scim" for SCIM filter syntax or "lucene" for Lucene query syntax (default). - - take : typing.Optional[int] - Maximum number of results to return per page (1-100). Defaults to 50. - - from_ : typing.Optional[str] - Cursor for the next page of results. Use the value from the next field in the previous response. - - sort : typing.Optional[OrganizationSortFieldEnum] - Field name to sort results by in ascending order only. Defaults to insertion order (oldest first) if not provided. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[SearchOrganization, SearchOrganizationsPaginatedResponseContent] - Organizations successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - "organizations/search", - method="GET", - params={ - "q": q, - "parser": parser, - "take": take, - "from": from_, - "sort": sort, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - SearchOrganizationsPaginatedResponseContent, - parse_obj_as( - type_=SearchOrganizationsPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.organizations - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - _get_next = lambda: self.search( - q=q, - parser=parser, - take=take, - from_=_parsed_next, - sort=sort, - request_options=request_options, - ) - return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 504: - raise GatewayTimeoutError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetOrganizationResponseContent]: - """ - Retrieve details about a single Organization specified by ID. - - Parameters - ---------- - id : str - ID of the organization to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetOrganizationResponseContent] - Organization successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetOrganizationResponseContent, - parse_obj_as( - type_=GetOrganizationResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[None]: - """ - Remove an Organization from your tenant. This action cannot be undone. - - **Note**: Members are automatically disassociated from an Organization when it is deleted. However, this action does **not** delete these users from your tenant. - - Parameters - ---------- - id : str - Organization identifier. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def update( - self, - id: str, - *, - display_name: typing.Optional[str] = OMIT, - name: typing.Optional[str] = OMIT, - branding: typing.Optional[OrganizationBranding] = OMIT, - metadata: typing.Optional[OrganizationMetadata] = OMIT, - token_quota: typing.Optional[UpdateTokenQuota] = OMIT, - third_party_client_access: typing.Optional[OrganizationThirdPartyClientAccessEnum] = OMIT, - is_app_entitlement_active: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[UpdateOrganizationResponseContent]: - """ - Update the details of a specific [Organization](https://auth0.com/docs/manage-users/organizations/configure-organizations/create-organizations), such as name and display name, branding options, and metadata. - - Parameters - ---------- - id : str - ID of the organization to update. - - display_name : typing.Optional[str] - Friendly name of this organization. - - name : typing.Optional[str] - The name of this organization. - - branding : typing.Optional[OrganizationBranding] - - metadata : typing.Optional[OrganizationMetadata] - - token_quota : typing.Optional[UpdateTokenQuota] - - third_party_client_access : typing.Optional[OrganizationThirdPartyClientAccessEnum] - - is_app_entitlement_active : typing.Optional[bool] - Whether app entitlement is active for this organization. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[UpdateOrganizationResponseContent] - Organization successfully updated. - """ - _response = self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(id)}", - method="PATCH", - json={ - "display_name": display_name, - "name": name, - "branding": convert_and_respect_annotation_metadata( - object_=branding, annotation=OrganizationBranding, direction="write" - ), - "metadata": metadata, - "token_quota": convert_and_respect_annotation_metadata( - object_=token_quota, annotation=typing.Optional[UpdateTokenQuota], direction="write" - ), - "third_party_client_access": third_party_client_access, - "is_app_entitlement_active": is_app_entitlement_active, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateOrganizationResponseContent, - parse_obj_as( - type_=UpdateOrganizationResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawOrganizationsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - include_totals: typing.Optional[bool] = True, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - sort: typing.Optional[str] = None, - include_client_association_for: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[Organization, ListOrganizationsPaginatedResponseContent]: - """ - Retrieve detailed list of all Organizations available in your tenant. For more information, see Auth0 Organizations. - - This endpoint supports two types of pagination: - - - Offset pagination - - Checkpoint pagination - - Checkpoint pagination must be used if you need to retrieve more than 1000 organizations. - - **Checkpoint Pagination** - - To search by checkpoint, use the following parameters: - - - `from`: Optional id from which to start selection. - - `take`: The total number of entries to retrieve when using the `from` parameter. Defaults to 50. - - **Note**: The first time you call this endpoint using checkpoint pagination, omit the `from` parameter. If there are more results, a `next` value is included in the response. You can use this for subsequent API calls. When `next` is no longer included in the response, no pages are remaining. - - Parameters - ---------- - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - sort : typing.Optional[str] - Field to sort by. Use field:order where order is 1 for ascending and -1 for descending. e.g. created_at:1. We currently support sorting by the following fields: name, display_name and created_at. - - include_client_association_for : typing.Optional[str] - Client ID. When set, each returned organization that has an association with this client gains a client object describing it; organizations without one omit the field. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[Organization, ListOrganizationsPaginatedResponseContent] - Organizations successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - "organizations", - method="GET", - params={ - "include_totals": include_totals, - "from": from_, - "take": take, - "sort": sort, - "include_client_association_for": include_client_association_for, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListOrganizationsPaginatedResponseContent, - parse_obj_as( - type_=ListOrganizationsPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.organizations - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - - async def _get_next(): - return await self.list( - include_totals=include_totals, - from_=_parsed_next, - take=take, - sort=sort, - include_client_association_for=include_client_association_for, - request_options=request_options, - ) - - return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - *, - name: str, - display_name: typing.Optional[str] = OMIT, - branding: typing.Optional[OrganizationBranding] = OMIT, - metadata: typing.Optional[OrganizationMetadata] = OMIT, - enabled_connections: typing.Optional[typing.Sequence[ConnectionForOrganization]] = OMIT, - token_quota: typing.Optional[CreateTokenQuota] = OMIT, - third_party_client_access: typing.Optional[OrganizationThirdPartyClientAccessEnum] = OMIT, - is_app_entitlement_active: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[CreateOrganizationResponseContent]: - """ - Create a new Organization within your tenant. To learn more about Organization settings, behavior, and configuration options, review [Create Your First Organization](https://auth0.com/docs/manage-users/organizations/create-first-organization). - - Parameters - ---------- - name : str - The name of this organization. - - display_name : typing.Optional[str] - Friendly name of this organization. - - branding : typing.Optional[OrganizationBranding] - - metadata : typing.Optional[OrganizationMetadata] - - enabled_connections : typing.Optional[typing.Sequence[ConnectionForOrganization]] - Connections that will be enabled for this organization. See POST enabled_connections endpoint for the object format. (Max of 10 connections allowed) - - token_quota : typing.Optional[CreateTokenQuota] - - third_party_client_access : typing.Optional[OrganizationThirdPartyClientAccessEnum] - - is_app_entitlement_active : typing.Optional[bool] - Whether app entitlement is active for this organization. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CreateOrganizationResponseContent] - Organization successfully created. - """ - _response = await self._client_wrapper.httpx_client.request( - "organizations", - method="POST", - json={ - "name": name, - "display_name": display_name, - "branding": convert_and_respect_annotation_metadata( - object_=branding, annotation=OrganizationBranding, direction="write" - ), - "metadata": metadata, - "enabled_connections": convert_and_respect_annotation_metadata( - object_=enabled_connections, - annotation=typing.Sequence[ConnectionForOrganization], - direction="write", - ), - "token_quota": convert_and_respect_annotation_metadata( - object_=token_quota, annotation=CreateTokenQuota, direction="write" - ), - "third_party_client_access": third_party_client_access, - "is_app_entitlement_active": is_app_entitlement_active, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateOrganizationResponseContent, - parse_obj_as( - type_=CreateOrganizationResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def get_by_name( - self, name: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetOrganizationByNameResponseContent]: - """ - Retrieve details about a single Organization specified by name. - - Parameters - ---------- - name : str - name of the organization to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetOrganizationByNameResponseContent] - Organization successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - f"organizations/name/{quote_path_param(name)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetOrganizationByNameResponseContent, - parse_obj_as( - type_=GetOrganizationByNameResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def search( - self, - *, - q: typing.Optional[str] = None, - parser: typing.Optional[SearchParserEnum] = None, - take: typing.Optional[int] = 50, - from_: typing.Optional[str] = None, - sort: typing.Optional[OrganizationSortFieldEnum] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[SearchOrganization, SearchOrganizationsPaginatedResponseContent]: - """ - Retrieve details of organizations matching a search criteria. It is possible to: - - - Specify a search criteria for organizations - - Search via `name` - - Search via `display_name` - - Substring matching (`contains` and `ends-with`) requires at least 3 characters - - Use wildcards - - The `q` query parameter can be used to get organizations that match the specified criteria on `name` OR `display_name`. - - This endpoint supports SCIM or Lucene filter syntax with low-latency, cursor-based pagination. Use the `parser` parameter to specify "scim" or "lucene" syntax (default: "lucene"). - - Results are eventually consistent and may not reflect recent updates immediately. - - **Sortable fields:** `name`, `display_name`, `created_at` (ascending only). Defaults to insertion order (oldest first). - - Parameters - ---------- - q : typing.Optional[str] - Filter expression in SCIM or Lucene syntax (depending on parser parameter, default: Lucene). Lucene examples: `name:acme*`, `display_name:*auth*`. SCIM examples: `name eq "Auth0"`, `display_name sw "auth" and created_at gt "2024-01-01"`. SCIM operators: eq, ne, sw, ew, co, pr, gt, ge, lt, le, and, or.

Supported Fields:
  • id - Organization ID (case-sensitive, exact match)
  • name - Organization name (supports contains, starts-with, ends-with operators; sortable)
  • display_name - Organization display name (supports contains, starts-with, ends-with operators; sortable)
  • created_at - Creation timestamp (supports date range operators; sortable)
  • metadata.{key} - Filter by organization metadata key-value pairs
Maximum 5 filter operations per query. Results are eventually consistent and may not reflect recent updates. - - parser : typing.Optional[SearchParserEnum] - Query parser to use for the filter expression. Use "scim" for SCIM filter syntax or "lucene" for Lucene query syntax (default). - - take : typing.Optional[int] - Maximum number of results to return per page (1-100). Defaults to 50. - - from_ : typing.Optional[str] - Cursor for the next page of results. Use the value from the next field in the previous response. - - sort : typing.Optional[OrganizationSortFieldEnum] - Field name to sort results by in ascending order only. Defaults to insertion order (oldest first) if not provided. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[SearchOrganization, SearchOrganizationsPaginatedResponseContent] - Organizations successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - "organizations/search", - method="GET", - params={ - "q": q, - "parser": parser, - "take": take, - "from": from_, - "sort": sort, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - SearchOrganizationsPaginatedResponseContent, - parse_obj_as( - type_=SearchOrganizationsPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.organizations - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - - async def _get_next(): - return await self.search( - q=q, - parser=parser, - take=take, - from_=_parsed_next, - sort=sort, - request_options=request_options, - ) - - return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 504: - raise GatewayTimeoutError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetOrganizationResponseContent]: - """ - Retrieve details about a single Organization specified by ID. - - Parameters - ---------- - id : str - ID of the organization to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetOrganizationResponseContent] - Organization successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetOrganizationResponseContent, - parse_obj_as( - type_=GetOrganizationResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def delete( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Remove an Organization from your tenant. This action cannot be undone. - - **Note**: Members are automatically disassociated from an Organization when it is deleted. However, this action does **not** delete these users from your tenant. - - Parameters - ---------- - id : str - Organization identifier. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def update( - self, - id: str, - *, - display_name: typing.Optional[str] = OMIT, - name: typing.Optional[str] = OMIT, - branding: typing.Optional[OrganizationBranding] = OMIT, - metadata: typing.Optional[OrganizationMetadata] = OMIT, - token_quota: typing.Optional[UpdateTokenQuota] = OMIT, - third_party_client_access: typing.Optional[OrganizationThirdPartyClientAccessEnum] = OMIT, - is_app_entitlement_active: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[UpdateOrganizationResponseContent]: - """ - Update the details of a specific [Organization](https://auth0.com/docs/manage-users/organizations/configure-organizations/create-organizations), such as name and display name, branding options, and metadata. - - Parameters - ---------- - id : str - ID of the organization to update. - - display_name : typing.Optional[str] - Friendly name of this organization. - - name : typing.Optional[str] - The name of this organization. - - branding : typing.Optional[OrganizationBranding] - - metadata : typing.Optional[OrganizationMetadata] - - token_quota : typing.Optional[UpdateTokenQuota] - - third_party_client_access : typing.Optional[OrganizationThirdPartyClientAccessEnum] - - is_app_entitlement_active : typing.Optional[bool] - Whether app entitlement is active for this organization. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[UpdateOrganizationResponseContent] - Organization successfully updated. - """ - _response = await self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(id)}", - method="PATCH", - json={ - "display_name": display_name, - "name": name, - "branding": convert_and_respect_annotation_metadata( - object_=branding, annotation=OrganizationBranding, direction="write" - ), - "metadata": metadata, - "token_quota": convert_and_respect_annotation_metadata( - object_=token_quota, annotation=typing.Optional[UpdateTokenQuota], direction="write" - ), - "third_party_client_access": third_party_client_access, - "is_app_entitlement_active": is_app_entitlement_active, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateOrganizationResponseContent, - parse_obj_as( - type_=UpdateOrganizationResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/organizations/roles/__init__.py b/src/auth0/management/organizations/roles/__init__.py deleted file mode 100644 index e140c98d..00000000 --- a/src/auth0/management/organizations/roles/__init__.py +++ /dev/null @@ -1,34 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from . import groups, members -_dynamic_imports: typing.Dict[str, str] = {"groups": ".groups", "members": ".members"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - if module_name == f".{attr_name}": - return module - else: - return getattr(module, attr_name) - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["groups", "members"] diff --git a/src/auth0/management/organizations/roles/client.py b/src/auth0/management/organizations/roles/client.py deleted file mode 100644 index 86b7b33d..00000000 --- a/src/auth0/management/organizations/roles/client.py +++ /dev/null @@ -1,82 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .raw_client import AsyncRawRolesClient, RawRolesClient - -if typing.TYPE_CHECKING: - from .groups.client import AsyncGroupsClient, GroupsClient - from .members.client import AsyncMembersClient, MembersClient - - -class RolesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawRolesClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._members: typing.Optional[MembersClient] = None - self._groups: typing.Optional[GroupsClient] = None - - @property - def with_raw_response(self) -> RawRolesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawRolesClient - """ - return self._raw_client - - @property - def members(self): - if self._members is None: - from .members.client import MembersClient # noqa: E402 - - self._members = MembersClient(client_wrapper=self._client_wrapper) - return self._members - - @property - def groups(self): - if self._groups is None: - from .groups.client import GroupsClient # noqa: E402 - - self._groups = GroupsClient(client_wrapper=self._client_wrapper) - return self._groups - - -class AsyncRolesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawRolesClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._members: typing.Optional[AsyncMembersClient] = None - self._groups: typing.Optional[AsyncGroupsClient] = None - - @property - def with_raw_response(self) -> AsyncRawRolesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawRolesClient - """ - return self._raw_client - - @property - def members(self): - if self._members is None: - from .members.client import AsyncMembersClient # noqa: E402 - - self._members = AsyncMembersClient(client_wrapper=self._client_wrapper) - return self._members - - @property - def groups(self): - if self._groups is None: - from .groups.client import AsyncGroupsClient # noqa: E402 - - self._groups = AsyncGroupsClient(client_wrapper=self._client_wrapper) - return self._groups diff --git a/src/auth0/management/organizations/roles/groups/__init__.py b/src/auth0/management/organizations/roles/groups/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/organizations/roles/groups/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/organizations/roles/groups/client.py b/src/auth0/management/organizations/roles/groups/client.py deleted file mode 100644 index 7fbb082a..00000000 --- a/src/auth0/management/organizations/roles/groups/client.py +++ /dev/null @@ -1,163 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ....core.pagination import AsyncPager, SyncPager -from ....core.request_options import RequestOptions -from ....types.list_organization_role_groups_response_content import ListOrganizationRoleGroupsResponseContent -from ....types.role_group import RoleGroup -from .raw_client import AsyncRawGroupsClient, RawGroupsClient - - -class GroupsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawGroupsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawGroupsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawGroupsClient - """ - return self._raw_client - - def list( - self, - organization_id: str, - role_id: str, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[RoleGroup, ListOrganizationRoleGroupsResponseContent]: - """ - Retrieve the list of groups assigned to a role in the context of an organization. - - Parameters - ---------- - organization_id : str - ID of the organization. - - role_id : str - ID of the role. - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[RoleGroup, ListOrganizationRoleGroupsResponseContent] - Organization role groups successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.organizations.roles.groups.list( - organization_id="organization_id", - role_id="role_id", - from_="from", - take=1, - ) - for item in response: - yield item - # alternatively, you can paginate page-by-page - for page in response.iter_pages(): - yield page - """ - return self._raw_client.list(organization_id, role_id, from_=from_, take=take, request_options=request_options) - - -class AsyncGroupsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawGroupsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawGroupsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawGroupsClient - """ - return self._raw_client - - async def list( - self, - organization_id: str, - role_id: str, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[RoleGroup, ListOrganizationRoleGroupsResponseContent]: - """ - Retrieve the list of groups assigned to a role in the context of an organization. - - Parameters - ---------- - organization_id : str - ID of the organization. - - role_id : str - ID of the role. - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[RoleGroup, ListOrganizationRoleGroupsResponseContent] - Organization role groups successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.organizations.roles.groups.list( - organization_id="organization_id", - role_id="role_id", - from_="from", - take=1, - ) - async for item in response: - yield item - - # alternatively, you can paginate page-by-page - async for page in response.iter_pages(): - yield page - - - asyncio.run(main()) - """ - return await self._raw_client.list( - organization_id, role_id, from_=from_, take=take, request_options=request_options - ) diff --git a/src/auth0/management/organizations/roles/groups/raw_client.py b/src/auth0/management/organizations/roles/groups/raw_client.py deleted file mode 100644 index 21efefad..00000000 --- a/src/auth0/management/organizations/roles/groups/raw_client.py +++ /dev/null @@ -1,287 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ....core.api_error import ApiError -from ....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ....core.jsonable_encoder import quote_path_param -from ....core.pagination import AsyncPager, SyncPager -from ....core.parse_error import ParsingError -from ....core.pydantic_utilities import parse_obj_as -from ....core.request_options import RequestOptions -from ....errors.bad_request_error import BadRequestError -from ....errors.forbidden_error import ForbiddenError -from ....errors.not_found_error import NotFoundError -from ....errors.too_many_requests_error import TooManyRequestsError -from ....errors.unauthorized_error import UnauthorizedError -from ....types.list_organization_role_groups_response_content import ListOrganizationRoleGroupsResponseContent -from ....types.role_group import RoleGroup -from pydantic import ValidationError - - -class RawGroupsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - organization_id: str, - role_id: str, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[RoleGroup, ListOrganizationRoleGroupsResponseContent]: - """ - Retrieve the list of groups assigned to a role in the context of an organization. - - Parameters - ---------- - organization_id : str - ID of the organization. - - role_id : str - ID of the role. - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[RoleGroup, ListOrganizationRoleGroupsResponseContent] - Organization role groups successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(organization_id)}/roles/{quote_path_param(role_id)}/groups", - method="GET", - params={ - "from": from_, - "take": take, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListOrganizationRoleGroupsResponseContent, - parse_obj_as( - type_=ListOrganizationRoleGroupsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.groups - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - _get_next = lambda: self.list( - organization_id, - role_id, - from_=_parsed_next, - take=take, - request_options=request_options, - ) - return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawGroupsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - organization_id: str, - role_id: str, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[RoleGroup, ListOrganizationRoleGroupsResponseContent]: - """ - Retrieve the list of groups assigned to a role in the context of an organization. - - Parameters - ---------- - organization_id : str - ID of the organization. - - role_id : str - ID of the role. - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[RoleGroup, ListOrganizationRoleGroupsResponseContent] - Organization role groups successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(organization_id)}/roles/{quote_path_param(role_id)}/groups", - method="GET", - params={ - "from": from_, - "take": take, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListOrganizationRoleGroupsResponseContent, - parse_obj_as( - type_=ListOrganizationRoleGroupsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.groups - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - - async def _get_next(): - return await self.list( - organization_id, - role_id, - from_=_parsed_next, - take=take, - request_options=request_options, - ) - - return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/organizations/roles/members/__init__.py b/src/auth0/management/organizations/roles/members/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/organizations/roles/members/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/organizations/roles/members/client.py b/src/auth0/management/organizations/roles/members/client.py deleted file mode 100644 index d69a5106..00000000 --- a/src/auth0/management/organizations/roles/members/client.py +++ /dev/null @@ -1,207 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ....core.pagination import AsyncPager, SyncPager -from ....core.request_options import RequestOptions -from ....types.list_organization_role_members_response_content import ListOrganizationRoleMembersResponseContent -from ....types.role_member import RoleMember -from .raw_client import AsyncRawMembersClient, RawMembersClient - - -class MembersClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawMembersClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawMembersClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawMembersClient - """ - return self._raw_client - - def list( - self, - id: str, - role_id: str, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = True, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[RoleMember, ListOrganizationRoleMembersResponseContent]: - """ - List the organization members assigned a specific role within the context of an organization. -
    -
  • - Note: Returns only members with direct role assignments. For groups assigned to this role within the organization, use GET /api/v2/organizations/{organization_id}/roles/{role_id}/groups. -
  • -
- - Parameters - ---------- - id : str - ID of the organization. - - role_id : str - ID of the role to retrieve the assigned members for. - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. Values above the maximum permitted size are capped. - - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). Defaults to true. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[RoleMember, ListOrganizationRoleMembersResponseContent] - Role members successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.organizations.roles.members.list( - id="id", - role_id="role_id", - from_="from", - take=1, - fields="fields", - include_fields=True, - ) - for item in response: - yield item - # alternatively, you can paginate page-by-page - for page in response.iter_pages(): - yield page - """ - return self._raw_client.list( - id, - role_id, - from_=from_, - take=take, - fields=fields, - include_fields=include_fields, - request_options=request_options, - ) - - -class AsyncMembersClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawMembersClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawMembersClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawMembersClient - """ - return self._raw_client - - async def list( - self, - id: str, - role_id: str, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = True, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[RoleMember, ListOrganizationRoleMembersResponseContent]: - """ - List the organization members assigned a specific role within the context of an organization. -
    -
  • - Note: Returns only members with direct role assignments. For groups assigned to this role within the organization, use GET /api/v2/organizations/{organization_id}/roles/{role_id}/groups. -
  • -
- - Parameters - ---------- - id : str - ID of the organization. - - role_id : str - ID of the role to retrieve the assigned members for. - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. Values above the maximum permitted size are capped. - - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). Defaults to true. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[RoleMember, ListOrganizationRoleMembersResponseContent] - Role members successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.organizations.roles.members.list( - id="id", - role_id="role_id", - from_="from", - take=1, - fields="fields", - include_fields=True, - ) - async for item in response: - yield item - - # alternatively, you can paginate page-by-page - async for page in response.iter_pages(): - yield page - - - asyncio.run(main()) - """ - return await self._raw_client.list( - id, - role_id, - from_=from_, - take=take, - fields=fields, - include_fields=include_fields, - request_options=request_options, - ) diff --git a/src/auth0/management/organizations/roles/members/raw_client.py b/src/auth0/management/organizations/roles/members/raw_client.py deleted file mode 100644 index c46ee0ff..00000000 --- a/src/auth0/management/organizations/roles/members/raw_client.py +++ /dev/null @@ -1,321 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ....core.api_error import ApiError -from ....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ....core.jsonable_encoder import quote_path_param -from ....core.pagination import AsyncPager, SyncPager -from ....core.parse_error import ParsingError -from ....core.pydantic_utilities import parse_obj_as -from ....core.request_options import RequestOptions -from ....errors.bad_request_error import BadRequestError -from ....errors.forbidden_error import ForbiddenError -from ....errors.not_found_error import NotFoundError -from ....errors.too_many_requests_error import TooManyRequestsError -from ....errors.unauthorized_error import UnauthorizedError -from ....types.list_organization_role_members_response_content import ListOrganizationRoleMembersResponseContent -from ....types.role_member import RoleMember -from pydantic import ValidationError - - -class RawMembersClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - id: str, - role_id: str, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = True, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[RoleMember, ListOrganizationRoleMembersResponseContent]: - """ - List the organization members assigned a specific role within the context of an organization. -
    -
  • - Note: Returns only members with direct role assignments. For groups assigned to this role within the organization, use GET /api/v2/organizations/{organization_id}/roles/{role_id}/groups. -
  • -
- - Parameters - ---------- - id : str - ID of the organization. - - role_id : str - ID of the role to retrieve the assigned members for. - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. Values above the maximum permitted size are capped. - - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). Defaults to true. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[RoleMember, ListOrganizationRoleMembersResponseContent] - Role members successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(id)}/roles/{quote_path_param(role_id)}/members", - method="GET", - params={ - "from": from_, - "take": take, - "fields": fields, - "include_fields": include_fields, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListOrganizationRoleMembersResponseContent, - parse_obj_as( - type_=ListOrganizationRoleMembersResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.members - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - _get_next = lambda: self.list( - id, - role_id, - from_=_parsed_next, - take=take, - fields=fields, - include_fields=include_fields, - request_options=request_options, - ) - return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawMembersClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - id: str, - role_id: str, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = True, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[RoleMember, ListOrganizationRoleMembersResponseContent]: - """ - List the organization members assigned a specific role within the context of an organization. -
    -
  • - Note: Returns only members with direct role assignments. For groups assigned to this role within the organization, use GET /api/v2/organizations/{organization_id}/roles/{role_id}/groups. -
  • -
- - Parameters - ---------- - id : str - ID of the organization. - - role_id : str - ID of the role to retrieve the assigned members for. - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. Values above the maximum permitted size are capped. - - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). Defaults to true. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[RoleMember, ListOrganizationRoleMembersResponseContent] - Role members successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - f"organizations/{quote_path_param(id)}/roles/{quote_path_param(role_id)}/members", - method="GET", - params={ - "from": from_, - "take": take, - "fields": fields, - "include_fields": include_fields, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListOrganizationRoleMembersResponseContent, - parse_obj_as( - type_=ListOrganizationRoleMembersResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.members - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - - async def _get_next(): - return await self.list( - id, - role_id, - from_=_parsed_next, - take=take, - fields=fields, - include_fields=include_fields, - request_options=request_options, - ) - - return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/organizations/roles/raw_client.py b/src/auth0/management/organizations/roles/raw_client.py deleted file mode 100644 index 28a7610e..00000000 --- a/src/auth0/management/organizations/roles/raw_client.py +++ /dev/null @@ -1,13 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper - - -class RawRolesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - -class AsyncRawRolesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper diff --git a/src/auth0/management/portals/__init__.py b/src/auth0/management/portals/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/portals/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/portals/client.py b/src/auth0/management/portals/client.py deleted file mode 100644 index eca9afbc..00000000 --- a/src/auth0/management/portals/client.py +++ /dev/null @@ -1,496 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.request_options import RequestOptions -from ..types.list_portals_response_content import ListPortalsResponseContent -from ..types.portal import Portal -from ..types.portal_client_secret_post_request import PortalClientSecretPostRequest -from ..types.portal_custom_code import PortalCustomCode -from ..types.portal_custom_code_nullable import PortalCustomCodeNullable -from ..types.portal_id import PortalId -from ..types.portal_name import PortalName -from ..types.portal_navigation import PortalNavigation -from ..types.portal_navigation_nullable import PortalNavigationNullable -from ..types.portal_pages_by_type import PortalPagesByType -from ..types.portal_pages_by_type_nullable import PortalPagesByTypeNullable -from ..types.portal_slug import PortalSlug -from .raw_client import AsyncRawPortalsClient, RawPortalsClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class PortalsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawPortalsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawPortalsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawPortalsClient - """ - return self._raw_client - - def list(self, *, request_options: typing.Optional[RequestOptions] = None) -> ListPortalsResponseContent: - """ - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - ListPortalsResponseContent - All portals were successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.portals.list() - """ - _response = self._raw_client.list(request_options=request_options) - return _response.data - - def create( - self, - *, - slug: PortalSlug, - name: PortalName, - client: PortalClientSecretPostRequest, - navigation: typing.Optional[PortalNavigation] = OMIT, - pages: typing.Optional[PortalPagesByType] = OMIT, - custom_code: typing.Optional[PortalCustomCode] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> Portal: - """ - Parameters - ---------- - slug : PortalSlug - - name : PortalName - - client : PortalClientSecretPostRequest - - navigation : typing.Optional[PortalNavigation] - - pages : typing.Optional[PortalPagesByType] - - custom_code : typing.Optional[PortalCustomCode] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Portal - The portal was successfully created. - - Examples - -------- - from auth0 import Auth0, PortalClientSecretPostRequest - - client = Auth0( - token="YOUR_TOKEN", - ) - client.portals.create( - slug="slug", - name="name", - client=PortalClientSecretPostRequest( - token_endpoint_auth_method="client_secret_post", - client_id="client_id", - client_secret="client_secret", - ), - ) - """ - _response = self._raw_client.create( - slug=slug, - name=name, - client=client, - navigation=navigation, - pages=pages, - custom_code=custom_code, - request_options=request_options, - ) - return _response.data - - def get(self, id: PortalId, *, request_options: typing.Optional[RequestOptions] = None) -> Portal: - """ - Parameters - ---------- - id : PortalId - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Portal - The portal was successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.portals.get( - id="id", - ) - """ - _response = self._raw_client.get(id, request_options=request_options) - return _response.data - - def delete(self, id: PortalId, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Parameters - ---------- - id : PortalId - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.portals.delete( - id="id", - ) - """ - _response = self._raw_client.delete(id, request_options=request_options) - return _response.data - - def update( - self, - id: PortalId, - *, - slug: typing.Optional[PortalSlug] = OMIT, - name: typing.Optional[PortalName] = OMIT, - client: typing.Optional[PortalClientSecretPostRequest] = OMIT, - navigation: typing.Optional[PortalNavigationNullable] = OMIT, - pages: typing.Optional[PortalPagesByTypeNullable] = OMIT, - custom_code: typing.Optional[PortalCustomCodeNullable] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> Portal: - """ - Parameters - ---------- - id : PortalId - - slug : typing.Optional[PortalSlug] - - name : typing.Optional[PortalName] - - client : typing.Optional[PortalClientSecretPostRequest] - - navigation : typing.Optional[PortalNavigationNullable] - - pages : typing.Optional[PortalPagesByTypeNullable] - - custom_code : typing.Optional[PortalCustomCodeNullable] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Portal - The portal was successfully updated. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.portals.update( - id="id", - ) - """ - _response = self._raw_client.update( - id, - slug=slug, - name=name, - client=client, - navigation=navigation, - pages=pages, - custom_code=custom_code, - request_options=request_options, - ) - return _response.data - - -class AsyncPortalsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawPortalsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawPortalsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawPortalsClient - """ - return self._raw_client - - async def list(self, *, request_options: typing.Optional[RequestOptions] = None) -> ListPortalsResponseContent: - """ - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - ListPortalsResponseContent - All portals were successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.portals.list() - - - asyncio.run(main()) - """ - _response = await self._raw_client.list(request_options=request_options) - return _response.data - - async def create( - self, - *, - slug: PortalSlug, - name: PortalName, - client: PortalClientSecretPostRequest, - navigation: typing.Optional[PortalNavigation] = OMIT, - pages: typing.Optional[PortalPagesByType] = OMIT, - custom_code: typing.Optional[PortalCustomCode] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> Portal: - """ - Parameters - ---------- - slug : PortalSlug - - name : PortalName - - client : PortalClientSecretPostRequest - - navigation : typing.Optional[PortalNavigation] - - pages : typing.Optional[PortalPagesByType] - - custom_code : typing.Optional[PortalCustomCode] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Portal - The portal was successfully created. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0, PortalClientSecretPostRequest - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.portals.create( - slug="slug", - name="name", - client=PortalClientSecretPostRequest( - token_endpoint_auth_method="client_secret_post", - client_id="client_id", - client_secret="client_secret", - ), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - slug=slug, - name=name, - client=client, - navigation=navigation, - pages=pages, - custom_code=custom_code, - request_options=request_options, - ) - return _response.data - - async def get(self, id: PortalId, *, request_options: typing.Optional[RequestOptions] = None) -> Portal: - """ - Parameters - ---------- - id : PortalId - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Portal - The portal was successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.portals.get( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.get(id, request_options=request_options) - return _response.data - - async def delete(self, id: PortalId, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Parameters - ---------- - id : PortalId - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.portals.delete( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete(id, request_options=request_options) - return _response.data - - async def update( - self, - id: PortalId, - *, - slug: typing.Optional[PortalSlug] = OMIT, - name: typing.Optional[PortalName] = OMIT, - client: typing.Optional[PortalClientSecretPostRequest] = OMIT, - navigation: typing.Optional[PortalNavigationNullable] = OMIT, - pages: typing.Optional[PortalPagesByTypeNullable] = OMIT, - custom_code: typing.Optional[PortalCustomCodeNullable] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> Portal: - """ - Parameters - ---------- - id : PortalId - - slug : typing.Optional[PortalSlug] - - name : typing.Optional[PortalName] - - client : typing.Optional[PortalClientSecretPostRequest] - - navigation : typing.Optional[PortalNavigationNullable] - - pages : typing.Optional[PortalPagesByTypeNullable] - - custom_code : typing.Optional[PortalCustomCodeNullable] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Portal - The portal was successfully updated. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.portals.update( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.update( - id, - slug=slug, - name=name, - client=client, - navigation=navigation, - pages=pages, - custom_code=custom_code, - request_options=request_options, - ) - return _response.data diff --git a/src/auth0/management/portals/raw_client.py b/src/auth0/management/portals/raw_client.py deleted file mode 100644 index 562f2f54..00000000 --- a/src/auth0/management/portals/raw_client.py +++ /dev/null @@ -1,1262 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ..core.api_error import ApiError -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.http_response import AsyncHttpResponse, HttpResponse -from ..core.jsonable_encoder import quote_path_param -from ..core.parse_error import ParsingError -from ..core.pydantic_utilities import parse_obj_as -from ..core.request_options import RequestOptions -from ..core.serialization import convert_and_respect_annotation_metadata -from ..errors.bad_request_error import BadRequestError -from ..errors.conflict_error import ConflictError -from ..errors.forbidden_error import ForbiddenError -from ..errors.internal_server_error import InternalServerError -from ..errors.not_found_error import NotFoundError -from ..errors.too_many_requests_error import TooManyRequestsError -from ..errors.unauthorized_error import UnauthorizedError -from ..types.list_portals_response_content import ListPortalsResponseContent -from ..types.portal import Portal -from ..types.portal_client_secret_post_request import PortalClientSecretPostRequest -from ..types.portal_custom_code import PortalCustomCode -from ..types.portal_custom_code_nullable import PortalCustomCodeNullable -from ..types.portal_id import PortalId -from ..types.portal_name import PortalName -from ..types.portal_navigation import PortalNavigation -from ..types.portal_navigation_nullable import PortalNavigationNullable -from ..types.portal_pages_by_type import PortalPagesByType -from ..types.portal_pages_by_type_nullable import PortalPagesByTypeNullable -from ..types.portal_slug import PortalSlug -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawPortalsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[ListPortalsResponseContent]: - """ - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[ListPortalsResponseContent] - All portals were successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - "portals", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - ListPortalsResponseContent, - parse_obj_as( - type_=ListPortalsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 500: - raise InternalServerError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - *, - slug: PortalSlug, - name: PortalName, - client: PortalClientSecretPostRequest, - navigation: typing.Optional[PortalNavigation] = OMIT, - pages: typing.Optional[PortalPagesByType] = OMIT, - custom_code: typing.Optional[PortalCustomCode] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[Portal]: - """ - Parameters - ---------- - slug : PortalSlug - - name : PortalName - - client : PortalClientSecretPostRequest - - navigation : typing.Optional[PortalNavigation] - - pages : typing.Optional[PortalPagesByType] - - custom_code : typing.Optional[PortalCustomCode] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[Portal] - The portal was successfully created. - """ - _response = self._client_wrapper.httpx_client.request( - "portals", - method="POST", - json={ - "slug": slug, - "name": name, - "client": convert_and_respect_annotation_metadata( - object_=client, annotation=PortalClientSecretPostRequest, direction="write" - ), - "navigation": convert_and_respect_annotation_metadata( - object_=navigation, annotation=PortalNavigation, direction="write" - ), - "pages": convert_and_respect_annotation_metadata( - object_=pages, annotation=PortalPagesByType, direction="write" - ), - "custom_code": convert_and_respect_annotation_metadata( - object_=custom_code, annotation=PortalCustomCode, direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Portal, - parse_obj_as( - type_=Portal, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 500: - raise InternalServerError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def get(self, id: PortalId, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[Portal]: - """ - Parameters - ---------- - id : PortalId - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[Portal] - The portal was successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - f"portals/{quote_path_param(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Portal, - parse_obj_as( - type_=Portal, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 500: - raise InternalServerError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def delete(self, id: PortalId, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[None]: - """ - Parameters - ---------- - id : PortalId - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"portals/{quote_path_param(id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 500: - raise InternalServerError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def update( - self, - id: PortalId, - *, - slug: typing.Optional[PortalSlug] = OMIT, - name: typing.Optional[PortalName] = OMIT, - client: typing.Optional[PortalClientSecretPostRequest] = OMIT, - navigation: typing.Optional[PortalNavigationNullable] = OMIT, - pages: typing.Optional[PortalPagesByTypeNullable] = OMIT, - custom_code: typing.Optional[PortalCustomCodeNullable] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[Portal]: - """ - Parameters - ---------- - id : PortalId - - slug : typing.Optional[PortalSlug] - - name : typing.Optional[PortalName] - - client : typing.Optional[PortalClientSecretPostRequest] - - navigation : typing.Optional[PortalNavigationNullable] - - pages : typing.Optional[PortalPagesByTypeNullable] - - custom_code : typing.Optional[PortalCustomCodeNullable] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[Portal] - The portal was successfully updated. - """ - _response = self._client_wrapper.httpx_client.request( - f"portals/{quote_path_param(id)}", - method="PATCH", - json={ - "slug": slug, - "name": name, - "client": convert_and_respect_annotation_metadata( - object_=client, annotation=PortalClientSecretPostRequest, direction="write" - ), - "navigation": convert_and_respect_annotation_metadata( - object_=navigation, annotation=typing.Optional[PortalNavigationNullable], direction="write" - ), - "pages": convert_and_respect_annotation_metadata( - object_=pages, annotation=typing.Optional[PortalPagesByTypeNullable], direction="write" - ), - "custom_code": convert_and_respect_annotation_metadata( - object_=custom_code, annotation=typing.Optional[PortalCustomCodeNullable], direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Portal, - parse_obj_as( - type_=Portal, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 500: - raise InternalServerError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawPortalsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[ListPortalsResponseContent]: - """ - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[ListPortalsResponseContent] - All portals were successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - "portals", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - ListPortalsResponseContent, - parse_obj_as( - type_=ListPortalsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 500: - raise InternalServerError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - *, - slug: PortalSlug, - name: PortalName, - client: PortalClientSecretPostRequest, - navigation: typing.Optional[PortalNavigation] = OMIT, - pages: typing.Optional[PortalPagesByType] = OMIT, - custom_code: typing.Optional[PortalCustomCode] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[Portal]: - """ - Parameters - ---------- - slug : PortalSlug - - name : PortalName - - client : PortalClientSecretPostRequest - - navigation : typing.Optional[PortalNavigation] - - pages : typing.Optional[PortalPagesByType] - - custom_code : typing.Optional[PortalCustomCode] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[Portal] - The portal was successfully created. - """ - _response = await self._client_wrapper.httpx_client.request( - "portals", - method="POST", - json={ - "slug": slug, - "name": name, - "client": convert_and_respect_annotation_metadata( - object_=client, annotation=PortalClientSecretPostRequest, direction="write" - ), - "navigation": convert_and_respect_annotation_metadata( - object_=navigation, annotation=PortalNavigation, direction="write" - ), - "pages": convert_and_respect_annotation_metadata( - object_=pages, annotation=PortalPagesByType, direction="write" - ), - "custom_code": convert_and_respect_annotation_metadata( - object_=custom_code, annotation=PortalCustomCode, direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Portal, - parse_obj_as( - type_=Portal, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 500: - raise InternalServerError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def get( - self, id: PortalId, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[Portal]: - """ - Parameters - ---------- - id : PortalId - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[Portal] - The portal was successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - f"portals/{quote_path_param(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Portal, - parse_obj_as( - type_=Portal, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 500: - raise InternalServerError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def delete( - self, id: PortalId, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Parameters - ---------- - id : PortalId - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"portals/{quote_path_param(id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 500: - raise InternalServerError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def update( - self, - id: PortalId, - *, - slug: typing.Optional[PortalSlug] = OMIT, - name: typing.Optional[PortalName] = OMIT, - client: typing.Optional[PortalClientSecretPostRequest] = OMIT, - navigation: typing.Optional[PortalNavigationNullable] = OMIT, - pages: typing.Optional[PortalPagesByTypeNullable] = OMIT, - custom_code: typing.Optional[PortalCustomCodeNullable] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[Portal]: - """ - Parameters - ---------- - id : PortalId - - slug : typing.Optional[PortalSlug] - - name : typing.Optional[PortalName] - - client : typing.Optional[PortalClientSecretPostRequest] - - navigation : typing.Optional[PortalNavigationNullable] - - pages : typing.Optional[PortalPagesByTypeNullable] - - custom_code : typing.Optional[PortalCustomCodeNullable] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[Portal] - The portal was successfully updated. - """ - _response = await self._client_wrapper.httpx_client.request( - f"portals/{quote_path_param(id)}", - method="PATCH", - json={ - "slug": slug, - "name": name, - "client": convert_and_respect_annotation_metadata( - object_=client, annotation=PortalClientSecretPostRequest, direction="write" - ), - "navigation": convert_and_respect_annotation_metadata( - object_=navigation, annotation=typing.Optional[PortalNavigationNullable], direction="write" - ), - "pages": convert_and_respect_annotation_metadata( - object_=pages, annotation=typing.Optional[PortalPagesByTypeNullable], direction="write" - ), - "custom_code": convert_and_respect_annotation_metadata( - object_=custom_code, annotation=typing.Optional[PortalCustomCodeNullable], direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Portal, - parse_obj_as( - type_=Portal, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 500: - raise InternalServerError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/prompts/__init__.py b/src/auth0/management/prompts/__init__.py deleted file mode 100644 index 4181c307..00000000 --- a/src/auth0/management/prompts/__init__.py +++ /dev/null @@ -1,38 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from . import custom_text, partials, rendering -_dynamic_imports: typing.Dict[str, str] = { - "custom_text": ".custom_text", - "partials": ".partials", - "rendering": ".rendering", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - if module_name == f".{attr_name}": - return module - else: - return getattr(module, attr_name) - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["custom_text", "partials", "rendering"] diff --git a/src/auth0/management/prompts/client.py b/src/auth0/management/prompts/client.py deleted file mode 100644 index 4b9f29c7..00000000 --- a/src/auth0/management/prompts/client.py +++ /dev/null @@ -1,269 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.request_options import RequestOptions -from ..types.get_settings_response_content import GetSettingsResponseContent -from ..types.universal_login_experience_enum import UniversalLoginExperienceEnum -from ..types.update_settings_response_content import UpdateSettingsResponseContent -from .raw_client import AsyncRawPromptsClient, RawPromptsClient - -if typing.TYPE_CHECKING: - from .custom_text.client import AsyncCustomTextClient, CustomTextClient - from .partials.client import AsyncPartialsClient, PartialsClient - from .rendering.client import AsyncRenderingClient, RenderingClient -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class PromptsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawPromptsClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._rendering: typing.Optional[RenderingClient] = None - self._custom_text: typing.Optional[CustomTextClient] = None - self._partials: typing.Optional[PartialsClient] = None - - @property - def with_raw_response(self) -> RawPromptsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawPromptsClient - """ - return self._raw_client - - def get_settings(self, *, request_options: typing.Optional[RequestOptions] = None) -> GetSettingsResponseContent: - """ - Retrieve details of the Universal Login configuration of your tenant. This includes the Identifier First Authentication and WebAuthn with Device Biometrics for MFA features. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetSettingsResponseContent - Prompt settings successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.prompts.get_settings() - """ - _response = self._raw_client.get_settings(request_options=request_options) - return _response.data - - def update_settings( - self, - *, - universal_login_experience: typing.Optional[UniversalLoginExperienceEnum] = OMIT, - identifier_first: typing.Optional[bool] = OMIT, - webauthn_platform_first_factor: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateSettingsResponseContent: - """ - Update the Universal Login configuration of your tenant. This includes the Identifier First Authentication and WebAuthn with Device Biometrics for MFA features. - - Parameters - ---------- - universal_login_experience : typing.Optional[UniversalLoginExperienceEnum] - - identifier_first : typing.Optional[bool] - Whether identifier first is enabled or not - - webauthn_platform_first_factor : typing.Optional[bool] - Use WebAuthn with Device Biometrics as the first authentication factor - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateSettingsResponseContent - Prompts settings successfully updated. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.prompts.update_settings() - """ - _response = self._raw_client.update_settings( - universal_login_experience=universal_login_experience, - identifier_first=identifier_first, - webauthn_platform_first_factor=webauthn_platform_first_factor, - request_options=request_options, - ) - return _response.data - - @property - def rendering(self): - if self._rendering is None: - from .rendering.client import RenderingClient # noqa: E402 - - self._rendering = RenderingClient(client_wrapper=self._client_wrapper) - return self._rendering - - @property - def custom_text(self): - if self._custom_text is None: - from .custom_text.client import CustomTextClient # noqa: E402 - - self._custom_text = CustomTextClient(client_wrapper=self._client_wrapper) - return self._custom_text - - @property - def partials(self): - if self._partials is None: - from .partials.client import PartialsClient # noqa: E402 - - self._partials = PartialsClient(client_wrapper=self._client_wrapper) - return self._partials - - -class AsyncPromptsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawPromptsClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._rendering: typing.Optional[AsyncRenderingClient] = None - self._custom_text: typing.Optional[AsyncCustomTextClient] = None - self._partials: typing.Optional[AsyncPartialsClient] = None - - @property - def with_raw_response(self) -> AsyncRawPromptsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawPromptsClient - """ - return self._raw_client - - async def get_settings( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetSettingsResponseContent: - """ - Retrieve details of the Universal Login configuration of your tenant. This includes the Identifier First Authentication and WebAuthn with Device Biometrics for MFA features. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetSettingsResponseContent - Prompt settings successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.prompts.get_settings() - - - asyncio.run(main()) - """ - _response = await self._raw_client.get_settings(request_options=request_options) - return _response.data - - async def update_settings( - self, - *, - universal_login_experience: typing.Optional[UniversalLoginExperienceEnum] = OMIT, - identifier_first: typing.Optional[bool] = OMIT, - webauthn_platform_first_factor: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateSettingsResponseContent: - """ - Update the Universal Login configuration of your tenant. This includes the Identifier First Authentication and WebAuthn with Device Biometrics for MFA features. - - Parameters - ---------- - universal_login_experience : typing.Optional[UniversalLoginExperienceEnum] - - identifier_first : typing.Optional[bool] - Whether identifier first is enabled or not - - webauthn_platform_first_factor : typing.Optional[bool] - Use WebAuthn with Device Biometrics as the first authentication factor - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateSettingsResponseContent - Prompts settings successfully updated. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.prompts.update_settings() - - - asyncio.run(main()) - """ - _response = await self._raw_client.update_settings( - universal_login_experience=universal_login_experience, - identifier_first=identifier_first, - webauthn_platform_first_factor=webauthn_platform_first_factor, - request_options=request_options, - ) - return _response.data - - @property - def rendering(self): - if self._rendering is None: - from .rendering.client import AsyncRenderingClient # noqa: E402 - - self._rendering = AsyncRenderingClient(client_wrapper=self._client_wrapper) - return self._rendering - - @property - def custom_text(self): - if self._custom_text is None: - from .custom_text.client import AsyncCustomTextClient # noqa: E402 - - self._custom_text = AsyncCustomTextClient(client_wrapper=self._client_wrapper) - return self._custom_text - - @property - def partials(self): - if self._partials is None: - from .partials.client import AsyncPartialsClient # noqa: E402 - - self._partials = AsyncPartialsClient(client_wrapper=self._client_wrapper) - return self._partials diff --git a/src/auth0/management/prompts/custom_text/__init__.py b/src/auth0/management/prompts/custom_text/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/prompts/custom_text/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/prompts/custom_text/client.py b/src/auth0/management/prompts/custom_text/client.py deleted file mode 100644 index d5ceda66..00000000 --- a/src/auth0/management/prompts/custom_text/client.py +++ /dev/null @@ -1,232 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.request_options import RequestOptions -from ...types.get_custom_texts_by_language_response_content import GetCustomTextsByLanguageResponseContent -from ...types.prompt_group_name_enum import PromptGroupNameEnum -from ...types.prompt_language_enum import PromptLanguageEnum -from ...types.sets_custom_texts_by_language_request_content import SetsCustomTextsByLanguageRequestContent -from .raw_client import AsyncRawCustomTextClient, RawCustomTextClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class CustomTextClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawCustomTextClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawCustomTextClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawCustomTextClient - """ - return self._raw_client - - def get( - self, - prompt: PromptGroupNameEnum, - language: PromptLanguageEnum, - *, - request_options: typing.Optional[RequestOptions] = None, - ) -> GetCustomTextsByLanguageResponseContent: - """ - Retrieve custom text for a specific prompt and language. - - Parameters - ---------- - prompt : PromptGroupNameEnum - Name of the prompt. - - language : PromptLanguageEnum - Language to update. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetCustomTextsByLanguageResponseContent - Prompt dictionaries successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.prompts.custom_text.get( - prompt="login", - language="am", - ) - """ - _response = self._raw_client.get(prompt, language, request_options=request_options) - return _response.data - - def set( - self, - prompt: PromptGroupNameEnum, - language: PromptLanguageEnum, - *, - request: SetsCustomTextsByLanguageRequestContent, - request_options: typing.Optional[RequestOptions] = None, - ) -> None: - """ - Set custom text for a specific prompt. Existing texts will be overwritten. - - Parameters - ---------- - prompt : PromptGroupNameEnum - Name of the prompt. - - language : PromptLanguageEnum - Language to update. - - request : SetsCustomTextsByLanguageRequestContent - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.prompts.custom_text.set( - prompt="login", - language="am", - request={"key": "value"}, - ) - """ - _response = self._raw_client.set(prompt, language, request=request, request_options=request_options) - return _response.data - - -class AsyncCustomTextClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawCustomTextClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawCustomTextClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawCustomTextClient - """ - return self._raw_client - - async def get( - self, - prompt: PromptGroupNameEnum, - language: PromptLanguageEnum, - *, - request_options: typing.Optional[RequestOptions] = None, - ) -> GetCustomTextsByLanguageResponseContent: - """ - Retrieve custom text for a specific prompt and language. - - Parameters - ---------- - prompt : PromptGroupNameEnum - Name of the prompt. - - language : PromptLanguageEnum - Language to update. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetCustomTextsByLanguageResponseContent - Prompt dictionaries successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.prompts.custom_text.get( - prompt="login", - language="am", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.get(prompt, language, request_options=request_options) - return _response.data - - async def set( - self, - prompt: PromptGroupNameEnum, - language: PromptLanguageEnum, - *, - request: SetsCustomTextsByLanguageRequestContent, - request_options: typing.Optional[RequestOptions] = None, - ) -> None: - """ - Set custom text for a specific prompt. Existing texts will be overwritten. - - Parameters - ---------- - prompt : PromptGroupNameEnum - Name of the prompt. - - language : PromptLanguageEnum - Language to update. - - request : SetsCustomTextsByLanguageRequestContent - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.prompts.custom_text.set( - prompt="login", - language="am", - request={"key": "value"}, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.set(prompt, language, request=request, request_options=request_options) - return _response.data diff --git a/src/auth0/management/prompts/custom_text/raw_client.py b/src/auth0/management/prompts/custom_text/raw_client.py deleted file mode 100644 index b5fcb3a2..00000000 --- a/src/auth0/management/prompts/custom_text/raw_client.py +++ /dev/null @@ -1,427 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ...core.api_error import ApiError -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.http_response import AsyncHttpResponse, HttpResponse -from ...core.jsonable_encoder import quote_path_param -from ...core.parse_error import ParsingError -from ...core.pydantic_utilities import parse_obj_as -from ...core.request_options import RequestOptions -from ...errors.bad_request_error import BadRequestError -from ...errors.forbidden_error import ForbiddenError -from ...errors.not_found_error import NotFoundError -from ...errors.too_many_requests_error import TooManyRequestsError -from ...errors.unauthorized_error import UnauthorizedError -from ...types.get_custom_texts_by_language_response_content import GetCustomTextsByLanguageResponseContent -from ...types.prompt_group_name_enum import PromptGroupNameEnum -from ...types.prompt_language_enum import PromptLanguageEnum -from ...types.sets_custom_texts_by_language_request_content import SetsCustomTextsByLanguageRequestContent -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawCustomTextClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def get( - self, - prompt: PromptGroupNameEnum, - language: PromptLanguageEnum, - *, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[GetCustomTextsByLanguageResponseContent]: - """ - Retrieve custom text for a specific prompt and language. - - Parameters - ---------- - prompt : PromptGroupNameEnum - Name of the prompt. - - language : PromptLanguageEnum - Language to update. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetCustomTextsByLanguageResponseContent] - Prompt dictionaries successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - f"prompts/{quote_path_param(prompt)}/custom-text/{quote_path_param(language)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetCustomTextsByLanguageResponseContent, - parse_obj_as( - type_=GetCustomTextsByLanguageResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def set( - self, - prompt: PromptGroupNameEnum, - language: PromptLanguageEnum, - *, - request: SetsCustomTextsByLanguageRequestContent, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[None]: - """ - Set custom text for a specific prompt. Existing texts will be overwritten. - - Parameters - ---------- - prompt : PromptGroupNameEnum - Name of the prompt. - - language : PromptLanguageEnum - Language to update. - - request : SetsCustomTextsByLanguageRequestContent - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"prompts/{quote_path_param(prompt)}/custom-text/{quote_path_param(language)}", - method="PUT", - json=request, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawCustomTextClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def get( - self, - prompt: PromptGroupNameEnum, - language: PromptLanguageEnum, - *, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[GetCustomTextsByLanguageResponseContent]: - """ - Retrieve custom text for a specific prompt and language. - - Parameters - ---------- - prompt : PromptGroupNameEnum - Name of the prompt. - - language : PromptLanguageEnum - Language to update. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetCustomTextsByLanguageResponseContent] - Prompt dictionaries successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - f"prompts/{quote_path_param(prompt)}/custom-text/{quote_path_param(language)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetCustomTextsByLanguageResponseContent, - parse_obj_as( - type_=GetCustomTextsByLanguageResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def set( - self, - prompt: PromptGroupNameEnum, - language: PromptLanguageEnum, - *, - request: SetsCustomTextsByLanguageRequestContent, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[None]: - """ - Set custom text for a specific prompt. Existing texts will be overwritten. - - Parameters - ---------- - prompt : PromptGroupNameEnum - Name of the prompt. - - language : PromptLanguageEnum - Language to update. - - request : SetsCustomTextsByLanguageRequestContent - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"prompts/{quote_path_param(prompt)}/custom-text/{quote_path_param(language)}", - method="PUT", - json=request, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/prompts/partials/__init__.py b/src/auth0/management/prompts/partials/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/prompts/partials/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/prompts/partials/client.py b/src/auth0/management/prompts/partials/client.py deleted file mode 100644 index c2ddf9db..00000000 --- a/src/auth0/management/prompts/partials/client.py +++ /dev/null @@ -1,205 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.request_options import RequestOptions -from ...types.get_partials_response_content import GetPartialsResponseContent -from ...types.partial_groups_enum import PartialGroupsEnum -from ...types.set_partials_request_content import SetPartialsRequestContent -from .raw_client import AsyncRawPartialsClient, RawPartialsClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class PartialsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawPartialsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawPartialsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawPartialsClient - """ - return self._raw_client - - def get( - self, prompt: PartialGroupsEnum, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetPartialsResponseContent: - """ - Get template partials for a prompt - - Parameters - ---------- - prompt : PartialGroupsEnum - Name of the prompt. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetPartialsResponseContent - Prompt partials successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.prompts.partials.get( - prompt="login", - ) - """ - _response = self._raw_client.get(prompt, request_options=request_options) - return _response.data - - def set( - self, - prompt: PartialGroupsEnum, - *, - request: SetPartialsRequestContent, - request_options: typing.Optional[RequestOptions] = None, - ) -> None: - """ - Set template partials for a prompt - - Parameters - ---------- - prompt : PartialGroupsEnum - Name of the prompt. - - request : SetPartialsRequestContent - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.prompts.partials.set( - prompt="login", - request={"key": "value"}, - ) - """ - _response = self._raw_client.set(prompt, request=request, request_options=request_options) - return _response.data - - -class AsyncPartialsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawPartialsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawPartialsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawPartialsClient - """ - return self._raw_client - - async def get( - self, prompt: PartialGroupsEnum, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetPartialsResponseContent: - """ - Get template partials for a prompt - - Parameters - ---------- - prompt : PartialGroupsEnum - Name of the prompt. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetPartialsResponseContent - Prompt partials successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.prompts.partials.get( - prompt="login", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.get(prompt, request_options=request_options) - return _response.data - - async def set( - self, - prompt: PartialGroupsEnum, - *, - request: SetPartialsRequestContent, - request_options: typing.Optional[RequestOptions] = None, - ) -> None: - """ - Set template partials for a prompt - - Parameters - ---------- - prompt : PartialGroupsEnum - Name of the prompt. - - request : SetPartialsRequestContent - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.prompts.partials.set( - prompt="login", - request={"key": "value"}, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.set(prompt, request=request, request_options=request_options) - return _response.data diff --git a/src/auth0/management/prompts/partials/raw_client.py b/src/auth0/management/prompts/partials/raw_client.py deleted file mode 100644 index cfd59f42..00000000 --- a/src/auth0/management/prompts/partials/raw_client.py +++ /dev/null @@ -1,404 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ...core.api_error import ApiError -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.http_response import AsyncHttpResponse, HttpResponse -from ...core.jsonable_encoder import quote_path_param -from ...core.parse_error import ParsingError -from ...core.pydantic_utilities import parse_obj_as -from ...core.request_options import RequestOptions -from ...errors.bad_request_error import BadRequestError -from ...errors.forbidden_error import ForbiddenError -from ...errors.not_found_error import NotFoundError -from ...errors.too_many_requests_error import TooManyRequestsError -from ...errors.unauthorized_error import UnauthorizedError -from ...types.get_partials_response_content import GetPartialsResponseContent -from ...types.partial_groups_enum import PartialGroupsEnum -from ...types.set_partials_request_content import SetPartialsRequestContent -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawPartialsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def get( - self, prompt: PartialGroupsEnum, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetPartialsResponseContent]: - """ - Get template partials for a prompt - - Parameters - ---------- - prompt : PartialGroupsEnum - Name of the prompt. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetPartialsResponseContent] - Prompt partials successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - f"prompts/{quote_path_param(prompt)}/partials", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetPartialsResponseContent, - parse_obj_as( - type_=GetPartialsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def set( - self, - prompt: PartialGroupsEnum, - *, - request: SetPartialsRequestContent, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[None]: - """ - Set template partials for a prompt - - Parameters - ---------- - prompt : PartialGroupsEnum - Name of the prompt. - - request : SetPartialsRequestContent - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"prompts/{quote_path_param(prompt)}/partials", - method="PUT", - json=request, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawPartialsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def get( - self, prompt: PartialGroupsEnum, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetPartialsResponseContent]: - """ - Get template partials for a prompt - - Parameters - ---------- - prompt : PartialGroupsEnum - Name of the prompt. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetPartialsResponseContent] - Prompt partials successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - f"prompts/{quote_path_param(prompt)}/partials", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetPartialsResponseContent, - parse_obj_as( - type_=GetPartialsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def set( - self, - prompt: PartialGroupsEnum, - *, - request: SetPartialsRequestContent, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[None]: - """ - Set template partials for a prompt - - Parameters - ---------- - prompt : PartialGroupsEnum - Name of the prompt. - - request : SetPartialsRequestContent - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"prompts/{quote_path_param(prompt)}/partials", - method="PUT", - json=request, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/prompts/raw_client.py b/src/auth0/management/prompts/raw_client.py deleted file mode 100644 index 04963dbd..00000000 --- a/src/auth0/management/prompts/raw_client.py +++ /dev/null @@ -1,390 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ..core.api_error import ApiError -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.http_response import AsyncHttpResponse, HttpResponse -from ..core.parse_error import ParsingError -from ..core.pydantic_utilities import parse_obj_as -from ..core.request_options import RequestOptions -from ..errors.bad_request_error import BadRequestError -from ..errors.forbidden_error import ForbiddenError -from ..errors.too_many_requests_error import TooManyRequestsError -from ..errors.unauthorized_error import UnauthorizedError -from ..types.get_settings_response_content import GetSettingsResponseContent -from ..types.universal_login_experience_enum import UniversalLoginExperienceEnum -from ..types.update_settings_response_content import UpdateSettingsResponseContent -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawPromptsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def get_settings( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetSettingsResponseContent]: - """ - Retrieve details of the Universal Login configuration of your tenant. This includes the Identifier First Authentication and WebAuthn with Device Biometrics for MFA features. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetSettingsResponseContent] - Prompt settings successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - "prompts", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetSettingsResponseContent, - parse_obj_as( - type_=GetSettingsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def update_settings( - self, - *, - universal_login_experience: typing.Optional[UniversalLoginExperienceEnum] = OMIT, - identifier_first: typing.Optional[bool] = OMIT, - webauthn_platform_first_factor: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[UpdateSettingsResponseContent]: - """ - Update the Universal Login configuration of your tenant. This includes the Identifier First Authentication and WebAuthn with Device Biometrics for MFA features. - - Parameters - ---------- - universal_login_experience : typing.Optional[UniversalLoginExperienceEnum] - - identifier_first : typing.Optional[bool] - Whether identifier first is enabled or not - - webauthn_platform_first_factor : typing.Optional[bool] - Use WebAuthn with Device Biometrics as the first authentication factor - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[UpdateSettingsResponseContent] - Prompts settings successfully updated. - """ - _response = self._client_wrapper.httpx_client.request( - "prompts", - method="PATCH", - json={ - "universal_login_experience": universal_login_experience, - "identifier_first": identifier_first, - "webauthn_platform_first_factor": webauthn_platform_first_factor, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateSettingsResponseContent, - parse_obj_as( - type_=UpdateSettingsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawPromptsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def get_settings( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetSettingsResponseContent]: - """ - Retrieve details of the Universal Login configuration of your tenant. This includes the Identifier First Authentication and WebAuthn with Device Biometrics for MFA features. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetSettingsResponseContent] - Prompt settings successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - "prompts", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetSettingsResponseContent, - parse_obj_as( - type_=GetSettingsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def update_settings( - self, - *, - universal_login_experience: typing.Optional[UniversalLoginExperienceEnum] = OMIT, - identifier_first: typing.Optional[bool] = OMIT, - webauthn_platform_first_factor: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[UpdateSettingsResponseContent]: - """ - Update the Universal Login configuration of your tenant. This includes the Identifier First Authentication and WebAuthn with Device Biometrics for MFA features. - - Parameters - ---------- - universal_login_experience : typing.Optional[UniversalLoginExperienceEnum] - - identifier_first : typing.Optional[bool] - Whether identifier first is enabled or not - - webauthn_platform_first_factor : typing.Optional[bool] - Use WebAuthn with Device Biometrics as the first authentication factor - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[UpdateSettingsResponseContent] - Prompts settings successfully updated. - """ - _response = await self._client_wrapper.httpx_client.request( - "prompts", - method="PATCH", - json={ - "universal_login_experience": universal_login_experience, - "identifier_first": identifier_first, - "webauthn_platform_first_factor": webauthn_platform_first_factor, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateSettingsResponseContent, - parse_obj_as( - type_=UpdateSettingsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/prompts/rendering/__init__.py b/src/auth0/management/prompts/rendering/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/prompts/rendering/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/prompts/rendering/client.py b/src/auth0/management/prompts/rendering/client.py deleted file mode 100644 index e3449cb7..00000000 --- a/src/auth0/management/prompts/rendering/client.py +++ /dev/null @@ -1,560 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.pagination import AsyncPager, SyncPager -from ...core.request_options import RequestOptions -from ...types.acul_configs import AculConfigs -from ...types.acul_context_configuration import AculContextConfiguration -from ...types.acul_filters import AculFilters -from ...types.acul_head_tag import AculHeadTag -from ...types.acul_rendering_mode_enum import AculRenderingModeEnum -from ...types.bulk_update_acul_response_content import BulkUpdateAculResponseContent -from ...types.get_acul_response_content import GetAculResponseContent -from ...types.list_aculs_offset_paginated_response_content import ListAculsOffsetPaginatedResponseContent -from ...types.list_aculs_response_content_item import ListAculsResponseContentItem -from ...types.prompt_group_name_enum import PromptGroupNameEnum -from ...types.screen_group_name_enum import ScreenGroupNameEnum -from ...types.update_acul_response_content import UpdateAculResponseContent -from .raw_client import AsyncRawRenderingClient, RawRenderingClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RenderingClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawRenderingClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawRenderingClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawRenderingClient - """ - return self._raw_client - - def list( - self, - *, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - include_totals: typing.Optional[bool] = True, - prompt: typing.Optional[str] = None, - screen: typing.Optional[str] = None, - rendering_mode: typing.Optional[AculRenderingModeEnum] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[ListAculsResponseContentItem, ListAculsOffsetPaginatedResponseContent]: - """ - Get render setting configurations for all screens. - - Parameters - ---------- - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (default: true) or excluded (false). - - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. Maximum value is 100, default value is 50. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total configuration count (true) or as a direct array of results (false, default). - - prompt : typing.Optional[str] - Name of the prompt to filter by - - screen : typing.Optional[str] - Name of the screen to filter by - - rendering_mode : typing.Optional[AculRenderingModeEnum] - Rendering mode to filter by - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[ListAculsResponseContentItem, ListAculsOffsetPaginatedResponseContent] - ACUL settings successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.prompts.rendering.list( - fields="fields", - include_fields=True, - page=1, - per_page=1, - include_totals=True, - prompt="prompt", - screen="screen", - rendering_mode="advanced", - ) - for item in response: - yield item - # alternatively, you can paginate page-by-page - for page in response.iter_pages(): - yield page - """ - return self._raw_client.list( - fields=fields, - include_fields=include_fields, - page=page, - per_page=per_page, - include_totals=include_totals, - prompt=prompt, - screen=screen, - rendering_mode=rendering_mode, - request_options=request_options, - ) - - def bulk_update( - self, *, configs: AculConfigs, request_options: typing.Optional[RequestOptions] = None - ) -> BulkUpdateAculResponseContent: - """ - Learn more about [configuring render settings](https://auth0.com/docs/customize/login-pages/advanced-customizations/getting-started/configure-acul-screens) for advanced customization. - - Parameters - ---------- - configs : AculConfigs - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - BulkUpdateAculResponseContent - ACUL settings successfully updated. - - Examples - -------- - from auth0 import AculConfigsItem, Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.prompts.rendering.bulk_update( - configs=[ - AculConfigsItem( - prompt="login", - screen="login", - ) - ], - ) - """ - _response = self._raw_client.bulk_update(configs=configs, request_options=request_options) - return _response.data - - def get( - self, - prompt: PromptGroupNameEnum, - screen: ScreenGroupNameEnum, - *, - request_options: typing.Optional[RequestOptions] = None, - ) -> GetAculResponseContent: - """ - Get render settings for a screen. - - Parameters - ---------- - prompt : PromptGroupNameEnum - Name of the prompt - - screen : ScreenGroupNameEnum - Name of the screen - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetAculResponseContent - ACUL settings successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.prompts.rendering.get( - prompt="login", - screen="login", - ) - """ - _response = self._raw_client.get(prompt, screen, request_options=request_options) - return _response.data - - def update( - self, - prompt: PromptGroupNameEnum, - screen: ScreenGroupNameEnum, - *, - rendering_mode: typing.Optional[AculRenderingModeEnum] = OMIT, - context_configuration: typing.Optional[AculContextConfiguration] = OMIT, - default_head_tags_disabled: typing.Optional[bool] = OMIT, - use_page_template: typing.Optional[bool] = OMIT, - head_tags: typing.Optional[typing.Sequence[AculHeadTag]] = OMIT, - filters: typing.Optional[AculFilters] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateAculResponseContent: - """ - Learn more about [configuring render settings](https://auth0.com/docs/customize/login-pages/advanced-customizations/getting-started/configure-acul-screens) for advanced customization. - - Parameters - ---------- - prompt : PromptGroupNameEnum - Name of the prompt - - screen : ScreenGroupNameEnum - Name of the screen - - rendering_mode : typing.Optional[AculRenderingModeEnum] - Rendering mode - - context_configuration : typing.Optional[AculContextConfiguration] - - default_head_tags_disabled : typing.Optional[bool] - Override Universal Login default head tags - - use_page_template : typing.Optional[bool] - Use page template with ACUL - - head_tags : typing.Optional[typing.Sequence[AculHeadTag]] - An array of head tags - - filters : typing.Optional[AculFilters] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateAculResponseContent - ACUL settings successfully updated. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.prompts.rendering.update( - prompt="login", - screen="login", - ) - """ - _response = self._raw_client.update( - prompt, - screen, - rendering_mode=rendering_mode, - context_configuration=context_configuration, - default_head_tags_disabled=default_head_tags_disabled, - use_page_template=use_page_template, - head_tags=head_tags, - filters=filters, - request_options=request_options, - ) - return _response.data - - -class AsyncRenderingClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawRenderingClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawRenderingClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawRenderingClient - """ - return self._raw_client - - async def list( - self, - *, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - include_totals: typing.Optional[bool] = True, - prompt: typing.Optional[str] = None, - screen: typing.Optional[str] = None, - rendering_mode: typing.Optional[AculRenderingModeEnum] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[ListAculsResponseContentItem, ListAculsOffsetPaginatedResponseContent]: - """ - Get render setting configurations for all screens. - - Parameters - ---------- - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (default: true) or excluded (false). - - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. Maximum value is 100, default value is 50. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total configuration count (true) or as a direct array of results (false, default). - - prompt : typing.Optional[str] - Name of the prompt to filter by - - screen : typing.Optional[str] - Name of the screen to filter by - - rendering_mode : typing.Optional[AculRenderingModeEnum] - Rendering mode to filter by - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[ListAculsResponseContentItem, ListAculsOffsetPaginatedResponseContent] - ACUL settings successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.prompts.rendering.list( - fields="fields", - include_fields=True, - page=1, - per_page=1, - include_totals=True, - prompt="prompt", - screen="screen", - rendering_mode="advanced", - ) - async for item in response: - yield item - - # alternatively, you can paginate page-by-page - async for page in response.iter_pages(): - yield page - - - asyncio.run(main()) - """ - return await self._raw_client.list( - fields=fields, - include_fields=include_fields, - page=page, - per_page=per_page, - include_totals=include_totals, - prompt=prompt, - screen=screen, - rendering_mode=rendering_mode, - request_options=request_options, - ) - - async def bulk_update( - self, *, configs: AculConfigs, request_options: typing.Optional[RequestOptions] = None - ) -> BulkUpdateAculResponseContent: - """ - Learn more about [configuring render settings](https://auth0.com/docs/customize/login-pages/advanced-customizations/getting-started/configure-acul-screens) for advanced customization. - - Parameters - ---------- - configs : AculConfigs - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - BulkUpdateAculResponseContent - ACUL settings successfully updated. - - Examples - -------- - import asyncio - - from auth0 import AculConfigsItem, AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.prompts.rendering.bulk_update( - configs=[ - AculConfigsItem( - prompt="login", - screen="login", - ) - ], - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.bulk_update(configs=configs, request_options=request_options) - return _response.data - - async def get( - self, - prompt: PromptGroupNameEnum, - screen: ScreenGroupNameEnum, - *, - request_options: typing.Optional[RequestOptions] = None, - ) -> GetAculResponseContent: - """ - Get render settings for a screen. - - Parameters - ---------- - prompt : PromptGroupNameEnum - Name of the prompt - - screen : ScreenGroupNameEnum - Name of the screen - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetAculResponseContent - ACUL settings successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.prompts.rendering.get( - prompt="login", - screen="login", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.get(prompt, screen, request_options=request_options) - return _response.data - - async def update( - self, - prompt: PromptGroupNameEnum, - screen: ScreenGroupNameEnum, - *, - rendering_mode: typing.Optional[AculRenderingModeEnum] = OMIT, - context_configuration: typing.Optional[AculContextConfiguration] = OMIT, - default_head_tags_disabled: typing.Optional[bool] = OMIT, - use_page_template: typing.Optional[bool] = OMIT, - head_tags: typing.Optional[typing.Sequence[AculHeadTag]] = OMIT, - filters: typing.Optional[AculFilters] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateAculResponseContent: - """ - Learn more about [configuring render settings](https://auth0.com/docs/customize/login-pages/advanced-customizations/getting-started/configure-acul-screens) for advanced customization. - - Parameters - ---------- - prompt : PromptGroupNameEnum - Name of the prompt - - screen : ScreenGroupNameEnum - Name of the screen - - rendering_mode : typing.Optional[AculRenderingModeEnum] - Rendering mode - - context_configuration : typing.Optional[AculContextConfiguration] - - default_head_tags_disabled : typing.Optional[bool] - Override Universal Login default head tags - - use_page_template : typing.Optional[bool] - Use page template with ACUL - - head_tags : typing.Optional[typing.Sequence[AculHeadTag]] - An array of head tags - - filters : typing.Optional[AculFilters] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateAculResponseContent - ACUL settings successfully updated. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.prompts.rendering.update( - prompt="login", - screen="login", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.update( - prompt, - screen, - rendering_mode=rendering_mode, - context_configuration=context_configuration, - default_head_tags_disabled=default_head_tags_disabled, - use_page_template=use_page_template, - head_tags=head_tags, - filters=filters, - request_options=request_options, - ) - return _response.data diff --git a/src/auth0/management/prompts/rendering/raw_client.py b/src/auth0/management/prompts/rendering/raw_client.py deleted file mode 100644 index 1b442e02..00000000 --- a/src/auth0/management/prompts/rendering/raw_client.py +++ /dev/null @@ -1,1095 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ...core.api_error import ApiError -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.http_response import AsyncHttpResponse, HttpResponse -from ...core.jsonable_encoder import quote_path_param -from ...core.pagination import AsyncPager, SyncPager -from ...core.parse_error import ParsingError -from ...core.pydantic_utilities import parse_obj_as -from ...core.request_options import RequestOptions -from ...core.serialization import convert_and_respect_annotation_metadata -from ...errors.bad_request_error import BadRequestError -from ...errors.forbidden_error import ForbiddenError -from ...errors.not_found_error import NotFoundError -from ...errors.payment_required_error import PaymentRequiredError -from ...errors.too_many_requests_error import TooManyRequestsError -from ...errors.unauthorized_error import UnauthorizedError -from ...types.acul_configs import AculConfigs -from ...types.acul_context_configuration import AculContextConfiguration -from ...types.acul_filters import AculFilters -from ...types.acul_head_tag import AculHeadTag -from ...types.acul_rendering_mode_enum import AculRenderingModeEnum -from ...types.bulk_update_acul_response_content import BulkUpdateAculResponseContent -from ...types.get_acul_response_content import GetAculResponseContent -from ...types.list_aculs_offset_paginated_response_content import ListAculsOffsetPaginatedResponseContent -from ...types.list_aculs_response_content_item import ListAculsResponseContentItem -from ...types.prompt_group_name_enum import PromptGroupNameEnum -from ...types.screen_group_name_enum import ScreenGroupNameEnum -from ...types.update_acul_response_content import UpdateAculResponseContent -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawRenderingClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - include_totals: typing.Optional[bool] = True, - prompt: typing.Optional[str] = None, - screen: typing.Optional[str] = None, - rendering_mode: typing.Optional[AculRenderingModeEnum] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[ListAculsResponseContentItem, ListAculsOffsetPaginatedResponseContent]: - """ - Get render setting configurations for all screens. - - Parameters - ---------- - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (default: true) or excluded (false). - - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. Maximum value is 100, default value is 50. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total configuration count (true) or as a direct array of results (false, default). - - prompt : typing.Optional[str] - Name of the prompt to filter by - - screen : typing.Optional[str] - Name of the screen to filter by - - rendering_mode : typing.Optional[AculRenderingModeEnum] - Rendering mode to filter by - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[ListAculsResponseContentItem, ListAculsOffsetPaginatedResponseContent] - ACUL settings successfully retrieved. - """ - page = page if page is not None else 0 - - _response = self._client_wrapper.httpx_client.request( - "prompts/rendering", - method="GET", - params={ - "fields": fields, - "include_fields": include_fields, - "page": page, - "per_page": per_page, - "include_totals": include_totals, - "prompt": prompt, - "screen": screen, - "rendering_mode": rendering_mode, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListAculsOffsetPaginatedResponseContent, - parse_obj_as( - type_=ListAculsOffsetPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.configs - _has_next = len(_items or []) > 0 - _get_next = lambda: self.list( - fields=fields, - include_fields=include_fields, - page=page + 1, - per_page=per_page, - include_totals=include_totals, - prompt=prompt, - screen=screen, - rendering_mode=rendering_mode, - request_options=request_options, - ) - return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 402: - raise PaymentRequiredError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def bulk_update( - self, *, configs: AculConfigs, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[BulkUpdateAculResponseContent]: - """ - Learn more about [configuring render settings](https://auth0.com/docs/customize/login-pages/advanced-customizations/getting-started/configure-acul-screens) for advanced customization. - - Parameters - ---------- - configs : AculConfigs - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[BulkUpdateAculResponseContent] - ACUL settings successfully updated. - """ - _response = self._client_wrapper.httpx_client.request( - "prompts/rendering", - method="PATCH", - json={ - "configs": convert_and_respect_annotation_metadata( - object_=configs, annotation=AculConfigs, direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - BulkUpdateAculResponseContent, - parse_obj_as( - type_=BulkUpdateAculResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 402: - raise PaymentRequiredError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def get( - self, - prompt: PromptGroupNameEnum, - screen: ScreenGroupNameEnum, - *, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[GetAculResponseContent]: - """ - Get render settings for a screen. - - Parameters - ---------- - prompt : PromptGroupNameEnum - Name of the prompt - - screen : ScreenGroupNameEnum - Name of the screen - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetAculResponseContent] - ACUL settings successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - f"prompts/{quote_path_param(prompt)}/screen/{quote_path_param(screen)}/rendering", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetAculResponseContent, - parse_obj_as( - type_=GetAculResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 402: - raise PaymentRequiredError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def update( - self, - prompt: PromptGroupNameEnum, - screen: ScreenGroupNameEnum, - *, - rendering_mode: typing.Optional[AculRenderingModeEnum] = OMIT, - context_configuration: typing.Optional[AculContextConfiguration] = OMIT, - default_head_tags_disabled: typing.Optional[bool] = OMIT, - use_page_template: typing.Optional[bool] = OMIT, - head_tags: typing.Optional[typing.Sequence[AculHeadTag]] = OMIT, - filters: typing.Optional[AculFilters] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[UpdateAculResponseContent]: - """ - Learn more about [configuring render settings](https://auth0.com/docs/customize/login-pages/advanced-customizations/getting-started/configure-acul-screens) for advanced customization. - - Parameters - ---------- - prompt : PromptGroupNameEnum - Name of the prompt - - screen : ScreenGroupNameEnum - Name of the screen - - rendering_mode : typing.Optional[AculRenderingModeEnum] - Rendering mode - - context_configuration : typing.Optional[AculContextConfiguration] - - default_head_tags_disabled : typing.Optional[bool] - Override Universal Login default head tags - - use_page_template : typing.Optional[bool] - Use page template with ACUL - - head_tags : typing.Optional[typing.Sequence[AculHeadTag]] - An array of head tags - - filters : typing.Optional[AculFilters] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[UpdateAculResponseContent] - ACUL settings successfully updated. - """ - _response = self._client_wrapper.httpx_client.request( - f"prompts/{quote_path_param(prompt)}/screen/{quote_path_param(screen)}/rendering", - method="PATCH", - json={ - "rendering_mode": rendering_mode, - "context_configuration": convert_and_respect_annotation_metadata( - object_=context_configuration, - annotation=typing.Optional[AculContextConfiguration], - direction="write", - ), - "default_head_tags_disabled": default_head_tags_disabled, - "use_page_template": use_page_template, - "head_tags": convert_and_respect_annotation_metadata( - object_=head_tags, annotation=typing.Optional[typing.Sequence[AculHeadTag]], direction="write" - ), - "filters": convert_and_respect_annotation_metadata( - object_=filters, annotation=typing.Optional[AculFilters], direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateAculResponseContent, - parse_obj_as( - type_=UpdateAculResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 402: - raise PaymentRequiredError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawRenderingClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - include_totals: typing.Optional[bool] = True, - prompt: typing.Optional[str] = None, - screen: typing.Optional[str] = None, - rendering_mode: typing.Optional[AculRenderingModeEnum] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[ListAculsResponseContentItem, ListAculsOffsetPaginatedResponseContent]: - """ - Get render setting configurations for all screens. - - Parameters - ---------- - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (default: true) or excluded (false). - - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. Maximum value is 100, default value is 50. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total configuration count (true) or as a direct array of results (false, default). - - prompt : typing.Optional[str] - Name of the prompt to filter by - - screen : typing.Optional[str] - Name of the screen to filter by - - rendering_mode : typing.Optional[AculRenderingModeEnum] - Rendering mode to filter by - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[ListAculsResponseContentItem, ListAculsOffsetPaginatedResponseContent] - ACUL settings successfully retrieved. - """ - page = page if page is not None else 0 - - _response = await self._client_wrapper.httpx_client.request( - "prompts/rendering", - method="GET", - params={ - "fields": fields, - "include_fields": include_fields, - "page": page, - "per_page": per_page, - "include_totals": include_totals, - "prompt": prompt, - "screen": screen, - "rendering_mode": rendering_mode, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListAculsOffsetPaginatedResponseContent, - parse_obj_as( - type_=ListAculsOffsetPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.configs - _has_next = len(_items or []) > 0 - - async def _get_next(): - return await self.list( - fields=fields, - include_fields=include_fields, - page=page + 1, - per_page=per_page, - include_totals=include_totals, - prompt=prompt, - screen=screen, - rendering_mode=rendering_mode, - request_options=request_options, - ) - - return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 402: - raise PaymentRequiredError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def bulk_update( - self, *, configs: AculConfigs, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[BulkUpdateAculResponseContent]: - """ - Learn more about [configuring render settings](https://auth0.com/docs/customize/login-pages/advanced-customizations/getting-started/configure-acul-screens) for advanced customization. - - Parameters - ---------- - configs : AculConfigs - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[BulkUpdateAculResponseContent] - ACUL settings successfully updated. - """ - _response = await self._client_wrapper.httpx_client.request( - "prompts/rendering", - method="PATCH", - json={ - "configs": convert_and_respect_annotation_metadata( - object_=configs, annotation=AculConfigs, direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - BulkUpdateAculResponseContent, - parse_obj_as( - type_=BulkUpdateAculResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 402: - raise PaymentRequiredError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def get( - self, - prompt: PromptGroupNameEnum, - screen: ScreenGroupNameEnum, - *, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[GetAculResponseContent]: - """ - Get render settings for a screen. - - Parameters - ---------- - prompt : PromptGroupNameEnum - Name of the prompt - - screen : ScreenGroupNameEnum - Name of the screen - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetAculResponseContent] - ACUL settings successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - f"prompts/{quote_path_param(prompt)}/screen/{quote_path_param(screen)}/rendering", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetAculResponseContent, - parse_obj_as( - type_=GetAculResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 402: - raise PaymentRequiredError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def update( - self, - prompt: PromptGroupNameEnum, - screen: ScreenGroupNameEnum, - *, - rendering_mode: typing.Optional[AculRenderingModeEnum] = OMIT, - context_configuration: typing.Optional[AculContextConfiguration] = OMIT, - default_head_tags_disabled: typing.Optional[bool] = OMIT, - use_page_template: typing.Optional[bool] = OMIT, - head_tags: typing.Optional[typing.Sequence[AculHeadTag]] = OMIT, - filters: typing.Optional[AculFilters] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[UpdateAculResponseContent]: - """ - Learn more about [configuring render settings](https://auth0.com/docs/customize/login-pages/advanced-customizations/getting-started/configure-acul-screens) for advanced customization. - - Parameters - ---------- - prompt : PromptGroupNameEnum - Name of the prompt - - screen : ScreenGroupNameEnum - Name of the screen - - rendering_mode : typing.Optional[AculRenderingModeEnum] - Rendering mode - - context_configuration : typing.Optional[AculContextConfiguration] - - default_head_tags_disabled : typing.Optional[bool] - Override Universal Login default head tags - - use_page_template : typing.Optional[bool] - Use page template with ACUL - - head_tags : typing.Optional[typing.Sequence[AculHeadTag]] - An array of head tags - - filters : typing.Optional[AculFilters] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[UpdateAculResponseContent] - ACUL settings successfully updated. - """ - _response = await self._client_wrapper.httpx_client.request( - f"prompts/{quote_path_param(prompt)}/screen/{quote_path_param(screen)}/rendering", - method="PATCH", - json={ - "rendering_mode": rendering_mode, - "context_configuration": convert_and_respect_annotation_metadata( - object_=context_configuration, - annotation=typing.Optional[AculContextConfiguration], - direction="write", - ), - "default_head_tags_disabled": default_head_tags_disabled, - "use_page_template": use_page_template, - "head_tags": convert_and_respect_annotation_metadata( - object_=head_tags, annotation=typing.Optional[typing.Sequence[AculHeadTag]], direction="write" - ), - "filters": convert_and_respect_annotation_metadata( - object_=filters, annotation=typing.Optional[AculFilters], direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateAculResponseContent, - parse_obj_as( - type_=UpdateAculResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 402: - raise PaymentRequiredError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/rate_limit_policies/__init__.py b/src/auth0/management/rate_limit_policies/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/rate_limit_policies/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/rate_limit_policies/client.py b/src/auth0/management/rate_limit_policies/client.py deleted file mode 100644 index aa768bb5..00000000 --- a/src/auth0/management/rate_limit_policies/client.py +++ /dev/null @@ -1,534 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.pagination import AsyncPager, SyncPager -from ..core.request_options import RequestOptions -from ..types.create_rate_limit_policy_response_content import CreateRateLimitPolicyResponseContent -from ..types.get_rate_limit_policy_response_content import GetRateLimitPolicyResponseContent -from ..types.list_rate_limit_policies_paginated_response_content import ListRateLimitPoliciesPaginatedResponseContent -from ..types.patch_rate_limit_policy_configuration_request_content import ( - PatchRateLimitPolicyConfigurationRequestContent, -) -from ..types.rate_limit_policy import RateLimitPolicy -from ..types.rate_limit_policy_configuration import RateLimitPolicyConfiguration -from ..types.rate_limit_policy_consumer_enum import RateLimitPolicyConsumerEnum -from ..types.rate_limit_policy_resource_enum import RateLimitPolicyResourceEnum -from ..types.update_rate_limit_policy_response_content import UpdateRateLimitPolicyResponseContent -from .raw_client import AsyncRawRateLimitPoliciesClient, RawRateLimitPoliciesClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RateLimitPoliciesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawRateLimitPoliciesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawRateLimitPoliciesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawRateLimitPoliciesClient - """ - return self._raw_client - - def list( - self, - *, - resource: typing.Optional[RateLimitPolicyResourceEnum] = None, - consumer: typing.Optional[RateLimitPolicyConsumerEnum] = None, - consumer_selector: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - from_: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[RateLimitPolicy, ListRateLimitPoliciesPaginatedResponseContent]: - """ - Parameters - ---------- - resource : typing.Optional[RateLimitPolicyResourceEnum] - The API protected by the Rate Limit Policy. - - consumer : typing.Optional[RateLimitPolicyConsumerEnum] - The consumer to which the rate limit policy applies. - - consumer_selector : typing.Optional[str] - Identifier or category within the consumer to which the policy applies. Supported values: `client_id:` to target a specific client by ID, `client_id:` to target a CIMD client by URI, `cimd_clients` to target all CIMD clients, `third_party_clients` to target all third-party clients, or `default` to apply the policy to any consumer identifier not otherwise explicitly targeted. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - from_ : typing.Optional[str] - Cursor for pagination. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[RateLimitPolicy, ListRateLimitPoliciesPaginatedResponseContent] - Rate limit policies retrieved successfully. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.rate_limit_policies.list( - resource="oauth_authentication_api", - consumer="client", - consumer_selector="consumer_selector", - take=1, - from_="from", - ) - for item in response: - yield item - # alternatively, you can paginate page-by-page - for page in response.iter_pages(): - yield page - """ - return self._raw_client.list( - resource=resource, - consumer=consumer, - consumer_selector=consumer_selector, - take=take, - from_=from_, - request_options=request_options, - ) - - def create( - self, - *, - resource: RateLimitPolicyResourceEnum, - consumer: RateLimitPolicyConsumerEnum, - consumer_selector: str, - configuration: RateLimitPolicyConfiguration, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateRateLimitPolicyResponseContent: - """ - Parameters - ---------- - resource : RateLimitPolicyResourceEnum - - consumer : RateLimitPolicyConsumerEnum - - consumer_selector : str - Identifier or category within the consumer to which the policy applies. Supported values: `client_id:` to target a specific client by ID, `client_id:` to target a CIMD client by URI, `cimd_clients` to target all CIMD clients, `third_party_clients` to target all third-party clients, or `default` to apply the policy to any consumer identifier not otherwise explicitly targeted. - - configuration : RateLimitPolicyConfiguration - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateRateLimitPolicyResponseContent - Rate limit policy successfully created. - - Examples - -------- - from auth0 import Auth0, RateLimitPolicyConfigurationZero - - client = Auth0( - token="YOUR_TOKEN", - ) - client.rate_limit_policies.create( - resource="oauth_authentication_api", - consumer="client", - consumer_selector="consumer_selector", - configuration=RateLimitPolicyConfigurationZero( - action="allow", - ), - ) - """ - _response = self._raw_client.create( - resource=resource, - consumer=consumer, - consumer_selector=consumer_selector, - configuration=configuration, - request_options=request_options, - ) - return _response.data - - def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetRateLimitPolicyResponseContent: - """ - Parameters - ---------- - id : str - Unique identifier for the Rate Limit Policy. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetRateLimitPolicyResponseContent - Rate limit policy retrieved successfully. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.rate_limit_policies.get( - id="id", - ) - """ - _response = self._raw_client.get(id, request_options=request_options) - return _response.data - - def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Parameters - ---------- - id : str - Unique identifier for the Rate Limit Policy. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.rate_limit_policies.delete( - id="id", - ) - """ - _response = self._raw_client.delete(id, request_options=request_options) - return _response.data - - def update( - self, - id: str, - *, - configuration: PatchRateLimitPolicyConfigurationRequestContent, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateRateLimitPolicyResponseContent: - """ - Parameters - ---------- - id : str - Unique identifier for the Rate Limit Policy. - - configuration : PatchRateLimitPolicyConfigurationRequestContent - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateRateLimitPolicyResponseContent - Rate limit policy successfully updated. - - Examples - -------- - from auth0 import Auth0, PatchRateLimitPolicyConfigurationRequestContentZero - - client = Auth0( - token="YOUR_TOKEN", - ) - client.rate_limit_policies.update( - id="id", - configuration=PatchRateLimitPolicyConfigurationRequestContentZero( - action="allow", - ), - ) - """ - _response = self._raw_client.update(id, configuration=configuration, request_options=request_options) - return _response.data - - -class AsyncRateLimitPoliciesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawRateLimitPoliciesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawRateLimitPoliciesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawRateLimitPoliciesClient - """ - return self._raw_client - - async def list( - self, - *, - resource: typing.Optional[RateLimitPolicyResourceEnum] = None, - consumer: typing.Optional[RateLimitPolicyConsumerEnum] = None, - consumer_selector: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - from_: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[RateLimitPolicy, ListRateLimitPoliciesPaginatedResponseContent]: - """ - Parameters - ---------- - resource : typing.Optional[RateLimitPolicyResourceEnum] - The API protected by the Rate Limit Policy. - - consumer : typing.Optional[RateLimitPolicyConsumerEnum] - The consumer to which the rate limit policy applies. - - consumer_selector : typing.Optional[str] - Identifier or category within the consumer to which the policy applies. Supported values: `client_id:` to target a specific client by ID, `client_id:` to target a CIMD client by URI, `cimd_clients` to target all CIMD clients, `third_party_clients` to target all third-party clients, or `default` to apply the policy to any consumer identifier not otherwise explicitly targeted. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - from_ : typing.Optional[str] - Cursor for pagination. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[RateLimitPolicy, ListRateLimitPoliciesPaginatedResponseContent] - Rate limit policies retrieved successfully. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.rate_limit_policies.list( - resource="oauth_authentication_api", - consumer="client", - consumer_selector="consumer_selector", - take=1, - from_="from", - ) - async for item in response: - yield item - - # alternatively, you can paginate page-by-page - async for page in response.iter_pages(): - yield page - - - asyncio.run(main()) - """ - return await self._raw_client.list( - resource=resource, - consumer=consumer, - consumer_selector=consumer_selector, - take=take, - from_=from_, - request_options=request_options, - ) - - async def create( - self, - *, - resource: RateLimitPolicyResourceEnum, - consumer: RateLimitPolicyConsumerEnum, - consumer_selector: str, - configuration: RateLimitPolicyConfiguration, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateRateLimitPolicyResponseContent: - """ - Parameters - ---------- - resource : RateLimitPolicyResourceEnum - - consumer : RateLimitPolicyConsumerEnum - - consumer_selector : str - Identifier or category within the consumer to which the policy applies. Supported values: `client_id:` to target a specific client by ID, `client_id:` to target a CIMD client by URI, `cimd_clients` to target all CIMD clients, `third_party_clients` to target all third-party clients, or `default` to apply the policy to any consumer identifier not otherwise explicitly targeted. - - configuration : RateLimitPolicyConfiguration - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateRateLimitPolicyResponseContent - Rate limit policy successfully created. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0, RateLimitPolicyConfigurationZero - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.rate_limit_policies.create( - resource="oauth_authentication_api", - consumer="client", - consumer_selector="consumer_selector", - configuration=RateLimitPolicyConfigurationZero( - action="allow", - ), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - resource=resource, - consumer=consumer, - consumer_selector=consumer_selector, - configuration=configuration, - request_options=request_options, - ) - return _response.data - - async def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetRateLimitPolicyResponseContent: - """ - Parameters - ---------- - id : str - Unique identifier for the Rate Limit Policy. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetRateLimitPolicyResponseContent - Rate limit policy retrieved successfully. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.rate_limit_policies.get( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.get(id, request_options=request_options) - return _response.data - - async def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Parameters - ---------- - id : str - Unique identifier for the Rate Limit Policy. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.rate_limit_policies.delete( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete(id, request_options=request_options) - return _response.data - - async def update( - self, - id: str, - *, - configuration: PatchRateLimitPolicyConfigurationRequestContent, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateRateLimitPolicyResponseContent: - """ - Parameters - ---------- - id : str - Unique identifier for the Rate Limit Policy. - - configuration : PatchRateLimitPolicyConfigurationRequestContent - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateRateLimitPolicyResponseContent - Rate limit policy successfully updated. - - Examples - -------- - import asyncio - - from auth0 import ( - AsyncAuth0, - PatchRateLimitPolicyConfigurationRequestContentZero, - ) - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.rate_limit_policies.update( - id="id", - configuration=PatchRateLimitPolicyConfigurationRequestContentZero( - action="allow", - ), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.update(id, configuration=configuration, request_options=request_options) - return _response.data diff --git a/src/auth0/management/rate_limit_policies/raw_client.py b/src/auth0/management/rate_limit_policies/raw_client.py deleted file mode 100644 index 2daba344..00000000 --- a/src/auth0/management/rate_limit_policies/raw_client.py +++ /dev/null @@ -1,1076 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ..core.api_error import ApiError -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.http_response import AsyncHttpResponse, HttpResponse -from ..core.jsonable_encoder import quote_path_param -from ..core.pagination import AsyncPager, SyncPager -from ..core.parse_error import ParsingError -from ..core.pydantic_utilities import parse_obj_as -from ..core.request_options import RequestOptions -from ..core.serialization import convert_and_respect_annotation_metadata -from ..errors.bad_request_error import BadRequestError -from ..errors.conflict_error import ConflictError -from ..errors.forbidden_error import ForbiddenError -from ..errors.not_found_error import NotFoundError -from ..errors.too_many_requests_error import TooManyRequestsError -from ..errors.unauthorized_error import UnauthorizedError -from ..types.create_rate_limit_policy_response_content import CreateRateLimitPolicyResponseContent -from ..types.get_rate_limit_policy_response_content import GetRateLimitPolicyResponseContent -from ..types.list_rate_limit_policies_paginated_response_content import ListRateLimitPoliciesPaginatedResponseContent -from ..types.patch_rate_limit_policy_configuration_request_content import ( - PatchRateLimitPolicyConfigurationRequestContent, -) -from ..types.rate_limit_policy import RateLimitPolicy -from ..types.rate_limit_policy_configuration import RateLimitPolicyConfiguration -from ..types.rate_limit_policy_consumer_enum import RateLimitPolicyConsumerEnum -from ..types.rate_limit_policy_resource_enum import RateLimitPolicyResourceEnum -from ..types.update_rate_limit_policy_response_content import UpdateRateLimitPolicyResponseContent -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawRateLimitPoliciesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - resource: typing.Optional[RateLimitPolicyResourceEnum] = None, - consumer: typing.Optional[RateLimitPolicyConsumerEnum] = None, - consumer_selector: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - from_: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[RateLimitPolicy, ListRateLimitPoliciesPaginatedResponseContent]: - """ - Parameters - ---------- - resource : typing.Optional[RateLimitPolicyResourceEnum] - The API protected by the Rate Limit Policy. - - consumer : typing.Optional[RateLimitPolicyConsumerEnum] - The consumer to which the rate limit policy applies. - - consumer_selector : typing.Optional[str] - Identifier or category within the consumer to which the policy applies. Supported values: `client_id:` to target a specific client by ID, `client_id:` to target a CIMD client by URI, `cimd_clients` to target all CIMD clients, `third_party_clients` to target all third-party clients, or `default` to apply the policy to any consumer identifier not otherwise explicitly targeted. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - from_ : typing.Optional[str] - Cursor for pagination. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[RateLimitPolicy, ListRateLimitPoliciesPaginatedResponseContent] - Rate limit policies retrieved successfully. - """ - _response = self._client_wrapper.httpx_client.request( - "rate-limit-policies", - method="GET", - params={ - "resource": resource, - "consumer": consumer, - "consumer_selector": consumer_selector, - "take": take, - "from": from_, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListRateLimitPoliciesPaginatedResponseContent, - parse_obj_as( - type_=ListRateLimitPoliciesPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.rate_limit_policies - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - _get_next = lambda: self.list( - resource=resource, - consumer=consumer, - consumer_selector=consumer_selector, - take=take, - from_=_parsed_next, - request_options=request_options, - ) - return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - *, - resource: RateLimitPolicyResourceEnum, - consumer: RateLimitPolicyConsumerEnum, - consumer_selector: str, - configuration: RateLimitPolicyConfiguration, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[CreateRateLimitPolicyResponseContent]: - """ - Parameters - ---------- - resource : RateLimitPolicyResourceEnum - - consumer : RateLimitPolicyConsumerEnum - - consumer_selector : str - Identifier or category within the consumer to which the policy applies. Supported values: `client_id:` to target a specific client by ID, `client_id:` to target a CIMD client by URI, `cimd_clients` to target all CIMD clients, `third_party_clients` to target all third-party clients, or `default` to apply the policy to any consumer identifier not otherwise explicitly targeted. - - configuration : RateLimitPolicyConfiguration - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CreateRateLimitPolicyResponseContent] - Rate limit policy successfully created. - """ - _response = self._client_wrapper.httpx_client.request( - "rate-limit-policies", - method="POST", - json={ - "resource": resource, - "consumer": consumer, - "consumer_selector": consumer_selector, - "configuration": convert_and_respect_annotation_metadata( - object_=configuration, annotation=RateLimitPolicyConfiguration, direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateRateLimitPolicyResponseContent, - parse_obj_as( - type_=CreateRateLimitPolicyResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetRateLimitPolicyResponseContent]: - """ - Parameters - ---------- - id : str - Unique identifier for the Rate Limit Policy. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetRateLimitPolicyResponseContent] - Rate limit policy retrieved successfully. - """ - _response = self._client_wrapper.httpx_client.request( - f"rate-limit-policies/{quote_path_param(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetRateLimitPolicyResponseContent, - parse_obj_as( - type_=GetRateLimitPolicyResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[None]: - """ - Parameters - ---------- - id : str - Unique identifier for the Rate Limit Policy. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"rate-limit-policies/{quote_path_param(id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def update( - self, - id: str, - *, - configuration: PatchRateLimitPolicyConfigurationRequestContent, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[UpdateRateLimitPolicyResponseContent]: - """ - Parameters - ---------- - id : str - Unique identifier for the Rate Limit Policy. - - configuration : PatchRateLimitPolicyConfigurationRequestContent - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[UpdateRateLimitPolicyResponseContent] - Rate limit policy successfully updated. - """ - _response = self._client_wrapper.httpx_client.request( - f"rate-limit-policies/{quote_path_param(id)}", - method="PATCH", - json={ - "configuration": convert_and_respect_annotation_metadata( - object_=configuration, annotation=PatchRateLimitPolicyConfigurationRequestContent, direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateRateLimitPolicyResponseContent, - parse_obj_as( - type_=UpdateRateLimitPolicyResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawRateLimitPoliciesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - resource: typing.Optional[RateLimitPolicyResourceEnum] = None, - consumer: typing.Optional[RateLimitPolicyConsumerEnum] = None, - consumer_selector: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - from_: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[RateLimitPolicy, ListRateLimitPoliciesPaginatedResponseContent]: - """ - Parameters - ---------- - resource : typing.Optional[RateLimitPolicyResourceEnum] - The API protected by the Rate Limit Policy. - - consumer : typing.Optional[RateLimitPolicyConsumerEnum] - The consumer to which the rate limit policy applies. - - consumer_selector : typing.Optional[str] - Identifier or category within the consumer to which the policy applies. Supported values: `client_id:` to target a specific client by ID, `client_id:` to target a CIMD client by URI, `cimd_clients` to target all CIMD clients, `third_party_clients` to target all third-party clients, or `default` to apply the policy to any consumer identifier not otherwise explicitly targeted. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - from_ : typing.Optional[str] - Cursor for pagination. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[RateLimitPolicy, ListRateLimitPoliciesPaginatedResponseContent] - Rate limit policies retrieved successfully. - """ - _response = await self._client_wrapper.httpx_client.request( - "rate-limit-policies", - method="GET", - params={ - "resource": resource, - "consumer": consumer, - "consumer_selector": consumer_selector, - "take": take, - "from": from_, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListRateLimitPoliciesPaginatedResponseContent, - parse_obj_as( - type_=ListRateLimitPoliciesPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.rate_limit_policies - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - - async def _get_next(): - return await self.list( - resource=resource, - consumer=consumer, - consumer_selector=consumer_selector, - take=take, - from_=_parsed_next, - request_options=request_options, - ) - - return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - *, - resource: RateLimitPolicyResourceEnum, - consumer: RateLimitPolicyConsumerEnum, - consumer_selector: str, - configuration: RateLimitPolicyConfiguration, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[CreateRateLimitPolicyResponseContent]: - """ - Parameters - ---------- - resource : RateLimitPolicyResourceEnum - - consumer : RateLimitPolicyConsumerEnum - - consumer_selector : str - Identifier or category within the consumer to which the policy applies. Supported values: `client_id:` to target a specific client by ID, `client_id:` to target a CIMD client by URI, `cimd_clients` to target all CIMD clients, `third_party_clients` to target all third-party clients, or `default` to apply the policy to any consumer identifier not otherwise explicitly targeted. - - configuration : RateLimitPolicyConfiguration - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CreateRateLimitPolicyResponseContent] - Rate limit policy successfully created. - """ - _response = await self._client_wrapper.httpx_client.request( - "rate-limit-policies", - method="POST", - json={ - "resource": resource, - "consumer": consumer, - "consumer_selector": consumer_selector, - "configuration": convert_and_respect_annotation_metadata( - object_=configuration, annotation=RateLimitPolicyConfiguration, direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateRateLimitPolicyResponseContent, - parse_obj_as( - type_=CreateRateLimitPolicyResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetRateLimitPolicyResponseContent]: - """ - Parameters - ---------- - id : str - Unique identifier for the Rate Limit Policy. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetRateLimitPolicyResponseContent] - Rate limit policy retrieved successfully. - """ - _response = await self._client_wrapper.httpx_client.request( - f"rate-limit-policies/{quote_path_param(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetRateLimitPolicyResponseContent, - parse_obj_as( - type_=GetRateLimitPolicyResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def delete( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Parameters - ---------- - id : str - Unique identifier for the Rate Limit Policy. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"rate-limit-policies/{quote_path_param(id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def update( - self, - id: str, - *, - configuration: PatchRateLimitPolicyConfigurationRequestContent, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[UpdateRateLimitPolicyResponseContent]: - """ - Parameters - ---------- - id : str - Unique identifier for the Rate Limit Policy. - - configuration : PatchRateLimitPolicyConfigurationRequestContent - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[UpdateRateLimitPolicyResponseContent] - Rate limit policy successfully updated. - """ - _response = await self._client_wrapper.httpx_client.request( - f"rate-limit-policies/{quote_path_param(id)}", - method="PATCH", - json={ - "configuration": convert_and_respect_annotation_metadata( - object_=configuration, annotation=PatchRateLimitPolicyConfigurationRequestContent, direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateRateLimitPolicyResponseContent, - parse_obj_as( - type_=UpdateRateLimitPolicyResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/raw_client.py b/src/auth0/management/raw_client.py new file mode 100644 index 00000000..048cc9ff --- /dev/null +++ b/src/auth0/management/raw_client.py @@ -0,0 +1,211 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing +from json.decoder import JSONDecodeError + +from .core.api_error import ApiError +from .core.client_wrapper import AsyncClientWrapper, SyncClientWrapper +from .core.http_response import AsyncHttpResponse, HttpResponse +from .core.parse_error import ParsingError +from .core.request_options import RequestOptions +from .core.serialization import convert_and_respect_annotation_metadata +from .types.send_base_type import SendBaseType +from .types.send_params import SendParams +from pydantic import ValidationError + +# this is used as the default value for optional parameters +OMIT = typing.cast(typing.Any, ...) + + +class RawAuth0: + def __init__(self, *, client_wrapper: SyncClientWrapper): + self._client_wrapper = client_wrapper + + def send( + self, *, request: SendParams, request_options: typing.Optional[RequestOptions] = None + ) -> HttpResponse[None]: + """ + Parameters + ---------- + request : SendParams + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + HttpResponse[None] + """ + _response = self._client_wrapper.httpx_client.request( + "send", + method="POST", + json=convert_and_respect_annotation_metadata(object_=request, annotation=SendParams, direction="write"), + request_options=request_options, + omit=OMIT, + ) + try: + if 200 <= _response.status_code < 300: + return HttpResponse(response=_response, data=None) + _response_json = _response.json() + except JSONDecodeError: + raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) + except ValidationError as e: + raise ParsingError( + status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e + ) + raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) + + def send_all_of( + self, + *, + connection_id: str, + type: SendBaseType, + content: typing.Optional[str] = OMIT, + template_id: typing.Optional[int] = OMIT, + subject: typing.Optional[str] = OMIT, + request_options: typing.Optional[RequestOptions] = None, + ) -> HttpResponse[None]: + """ + Parameters + ---------- + connection_id : str + + type : SendBaseType + + content : typing.Optional[str] + + template_id : typing.Optional[int] + + subject : typing.Optional[str] + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + HttpResponse[None] + """ + _response = self._client_wrapper.httpx_client.request( + "send-allof", + method="POST", + json={ + "content": content, + "template_id": template_id, + "connection_id": connection_id, + "type": type, + "subject": subject, + }, + headers={ + "content-type": "application/json", + }, + request_options=request_options, + omit=OMIT, + ) + try: + if 200 <= _response.status_code < 300: + return HttpResponse(response=_response, data=None) + _response_json = _response.json() + except JSONDecodeError: + raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) + except ValidationError as e: + raise ParsingError( + status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e + ) + raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) + + +class AsyncRawAuth0: + def __init__(self, *, client_wrapper: AsyncClientWrapper): + self._client_wrapper = client_wrapper + + async def send( + self, *, request: SendParams, request_options: typing.Optional[RequestOptions] = None + ) -> AsyncHttpResponse[None]: + """ + Parameters + ---------- + request : SendParams + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + AsyncHttpResponse[None] + """ + _response = await self._client_wrapper.httpx_client.request( + "send", + method="POST", + json=convert_and_respect_annotation_metadata(object_=request, annotation=SendParams, direction="write"), + request_options=request_options, + omit=OMIT, + ) + try: + if 200 <= _response.status_code < 300: + return AsyncHttpResponse(response=_response, data=None) + _response_json = _response.json() + except JSONDecodeError: + raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) + except ValidationError as e: + raise ParsingError( + status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e + ) + raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) + + async def send_all_of( + self, + *, + connection_id: str, + type: SendBaseType, + content: typing.Optional[str] = OMIT, + template_id: typing.Optional[int] = OMIT, + subject: typing.Optional[str] = OMIT, + request_options: typing.Optional[RequestOptions] = None, + ) -> AsyncHttpResponse[None]: + """ + Parameters + ---------- + connection_id : str + + type : SendBaseType + + content : typing.Optional[str] + + template_id : typing.Optional[int] + + subject : typing.Optional[str] + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + AsyncHttpResponse[None] + """ + _response = await self._client_wrapper.httpx_client.request( + "send-allof", + method="POST", + json={ + "content": content, + "template_id": template_id, + "connection_id": connection_id, + "type": type, + "subject": subject, + }, + headers={ + "content-type": "application/json", + }, + request_options=request_options, + omit=OMIT, + ) + try: + if 200 <= _response.status_code < 300: + return AsyncHttpResponse(response=_response, data=None) + _response_json = _response.json() + except JSONDecodeError: + raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) + except ValidationError as e: + raise ParsingError( + status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e + ) + raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/refresh_tokens/__init__.py b/src/auth0/management/refresh_tokens/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/refresh_tokens/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/refresh_tokens/client.py b/src/auth0/management/refresh_tokens/client.py deleted file mode 100644 index 775b7589..00000000 --- a/src/auth0/management/refresh_tokens/client.py +++ /dev/null @@ -1,539 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.pagination import AsyncPager, SyncPager -from ..core.request_options import RequestOptions -from ..types.get_refresh_token_response_content import GetRefreshTokenResponseContent -from ..types.get_refresh_tokens_paginated_response_content import GetRefreshTokensPaginatedResponseContent -from ..types.refresh_token_metadata import RefreshTokenMetadata -from ..types.refresh_token_response_content import RefreshTokenResponseContent -from ..types.update_refresh_token_response_content import UpdateRefreshTokenResponseContent -from .raw_client import AsyncRawRefreshTokensClient, RawRefreshTokensClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RefreshTokensClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawRefreshTokensClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawRefreshTokensClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawRefreshTokensClient - """ - return self._raw_client - - def list( - self, - *, - user_id: str, - client_id: typing.Optional[str] = None, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[RefreshTokenResponseContent, GetRefreshTokensPaginatedResponseContent]: - """ - Retrieve a paginated list of refresh tokens for a specific user, with optional filtering by client ID. Results are sorted by credential_id ascending. - - Parameters - ---------- - user_id : str - ID of the user whose refresh tokens to retrieve. Required. - - client_id : typing.Optional[str] - Filter results by client ID. Only valid when user_id is provided. - - from_ : typing.Optional[str] - An opaque cursor from which to start the selection (exclusive). Expires after 24 hours. Obtained from the next property of a previous response. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[RefreshTokenResponseContent, GetRefreshTokensPaginatedResponseContent] - The refresh tokens were retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.refresh_tokens.list( - user_id="user_id", - client_id="client_id", - from_="from", - take=1, - fields="fields", - include_fields=True, - ) - for item in response: - yield item - # alternatively, you can paginate page-by-page - for page in response.iter_pages(): - yield page - """ - return self._raw_client.list( - user_id=user_id, - client_id=client_id, - from_=from_, - take=take, - fields=fields, - include_fields=include_fields, - request_options=request_options, - ) - - def revoke( - self, - *, - ids: typing.Optional[typing.Sequence[str]] = OMIT, - user_id: typing.Optional[str] = OMIT, - client_id: typing.Optional[str] = OMIT, - audience: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> None: - """ - Revoke refresh tokens in bulk by ID list, user, user+client, or user+client+audience. - - Parameters - ---------- - ids : typing.Optional[typing.Sequence[str]] - Array of refresh token IDs to revoke. Limited to 100 at a time. - - user_id : typing.Optional[str] - Revoke all refresh tokens for this user. - - client_id : typing.Optional[str] - Revoke refresh tokens for this client. Must be paired with `user_id`; optionally narrowed further with `audience`. - - audience : typing.Optional[str] - Resource server identifier (audience) to scope the revocation. Must be used with both `user_id` and `client_id`. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.refresh_tokens.revoke() - """ - _response = self._raw_client.revoke( - ids=ids, user_id=user_id, client_id=client_id, audience=audience, request_options=request_options - ) - return _response.data - - def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetRefreshTokenResponseContent: - """ - Retrieve refresh token information. - - Parameters - ---------- - id : str - ID refresh token to retrieve - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetRefreshTokenResponseContent - The refresh token was retrieved - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.refresh_tokens.get( - id="id", - ) - """ - _response = self._raw_client.get(id, request_options=request_options) - return _response.data - - def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete a refresh token by its ID. - - Parameters - ---------- - id : str - ID of the refresh token to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.refresh_tokens.delete( - id="id", - ) - """ - _response = self._raw_client.delete(id, request_options=request_options) - return _response.data - - def update( - self, - id: str, - *, - refresh_token_metadata: typing.Optional[RefreshTokenMetadata] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateRefreshTokenResponseContent: - """ - Update a refresh token by its ID. - - Parameters - ---------- - id : str - ID of the refresh token to update. - - refresh_token_metadata : typing.Optional[RefreshTokenMetadata] - Metadata associated with the refresh token. Pass null or {} to remove all metadata. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateRefreshTokenResponseContent - Refresh token successfully updated. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.refresh_tokens.update( - id="id", - ) - """ - _response = self._raw_client.update( - id, refresh_token_metadata=refresh_token_metadata, request_options=request_options - ) - return _response.data - - -class AsyncRefreshTokensClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawRefreshTokensClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawRefreshTokensClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawRefreshTokensClient - """ - return self._raw_client - - async def list( - self, - *, - user_id: str, - client_id: typing.Optional[str] = None, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[RefreshTokenResponseContent, GetRefreshTokensPaginatedResponseContent]: - """ - Retrieve a paginated list of refresh tokens for a specific user, with optional filtering by client ID. Results are sorted by credential_id ascending. - - Parameters - ---------- - user_id : str - ID of the user whose refresh tokens to retrieve. Required. - - client_id : typing.Optional[str] - Filter results by client ID. Only valid when user_id is provided. - - from_ : typing.Optional[str] - An opaque cursor from which to start the selection (exclusive). Expires after 24 hours. Obtained from the next property of a previous response. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[RefreshTokenResponseContent, GetRefreshTokensPaginatedResponseContent] - The refresh tokens were retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.refresh_tokens.list( - user_id="user_id", - client_id="client_id", - from_="from", - take=1, - fields="fields", - include_fields=True, - ) - async for item in response: - yield item - - # alternatively, you can paginate page-by-page - async for page in response.iter_pages(): - yield page - - - asyncio.run(main()) - """ - return await self._raw_client.list( - user_id=user_id, - client_id=client_id, - from_=from_, - take=take, - fields=fields, - include_fields=include_fields, - request_options=request_options, - ) - - async def revoke( - self, - *, - ids: typing.Optional[typing.Sequence[str]] = OMIT, - user_id: typing.Optional[str] = OMIT, - client_id: typing.Optional[str] = OMIT, - audience: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> None: - """ - Revoke refresh tokens in bulk by ID list, user, user+client, or user+client+audience. - - Parameters - ---------- - ids : typing.Optional[typing.Sequence[str]] - Array of refresh token IDs to revoke. Limited to 100 at a time. - - user_id : typing.Optional[str] - Revoke all refresh tokens for this user. - - client_id : typing.Optional[str] - Revoke refresh tokens for this client. Must be paired with `user_id`; optionally narrowed further with `audience`. - - audience : typing.Optional[str] - Resource server identifier (audience) to scope the revocation. Must be used with both `user_id` and `client_id`. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.refresh_tokens.revoke() - - - asyncio.run(main()) - """ - _response = await self._raw_client.revoke( - ids=ids, user_id=user_id, client_id=client_id, audience=audience, request_options=request_options - ) - return _response.data - - async def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetRefreshTokenResponseContent: - """ - Retrieve refresh token information. - - Parameters - ---------- - id : str - ID refresh token to retrieve - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetRefreshTokenResponseContent - The refresh token was retrieved - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.refresh_tokens.get( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.get(id, request_options=request_options) - return _response.data - - async def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete a refresh token by its ID. - - Parameters - ---------- - id : str - ID of the refresh token to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.refresh_tokens.delete( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete(id, request_options=request_options) - return _response.data - - async def update( - self, - id: str, - *, - refresh_token_metadata: typing.Optional[RefreshTokenMetadata] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateRefreshTokenResponseContent: - """ - Update a refresh token by its ID. - - Parameters - ---------- - id : str - ID of the refresh token to update. - - refresh_token_metadata : typing.Optional[RefreshTokenMetadata] - Metadata associated with the refresh token. Pass null or {} to remove all metadata. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateRefreshTokenResponseContent - Refresh token successfully updated. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.refresh_tokens.update( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.update( - id, refresh_token_metadata=refresh_token_metadata, request_options=request_options - ) - return _response.data diff --git a/src/auth0/management/refresh_tokens/raw_client.py b/src/auth0/management/refresh_tokens/raw_client.py deleted file mode 100644 index 6e5946b9..00000000 --- a/src/auth0/management/refresh_tokens/raw_client.py +++ /dev/null @@ -1,1106 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ..core.api_error import ApiError -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.http_response import AsyncHttpResponse, HttpResponse -from ..core.jsonable_encoder import quote_path_param -from ..core.pagination import AsyncPager, SyncPager -from ..core.parse_error import ParsingError -from ..core.pydantic_utilities import parse_obj_as -from ..core.request_options import RequestOptions -from ..errors.bad_request_error import BadRequestError -from ..errors.forbidden_error import ForbiddenError -from ..errors.not_found_error import NotFoundError -from ..errors.too_many_requests_error import TooManyRequestsError -from ..errors.unauthorized_error import UnauthorizedError -from ..types.get_refresh_token_response_content import GetRefreshTokenResponseContent -from ..types.get_refresh_tokens_paginated_response_content import GetRefreshTokensPaginatedResponseContent -from ..types.refresh_token_metadata import RefreshTokenMetadata -from ..types.refresh_token_response_content import RefreshTokenResponseContent -from ..types.update_refresh_token_response_content import UpdateRefreshTokenResponseContent -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawRefreshTokensClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - user_id: str, - client_id: typing.Optional[str] = None, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[RefreshTokenResponseContent, GetRefreshTokensPaginatedResponseContent]: - """ - Retrieve a paginated list of refresh tokens for a specific user, with optional filtering by client ID. Results are sorted by credential_id ascending. - - Parameters - ---------- - user_id : str - ID of the user whose refresh tokens to retrieve. Required. - - client_id : typing.Optional[str] - Filter results by client ID. Only valid when user_id is provided. - - from_ : typing.Optional[str] - An opaque cursor from which to start the selection (exclusive). Expires after 24 hours. Obtained from the next property of a previous response. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[RefreshTokenResponseContent, GetRefreshTokensPaginatedResponseContent] - The refresh tokens were retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - "refresh-tokens", - method="GET", - params={ - "user_id": user_id, - "client_id": client_id, - "from": from_, - "take": take, - "fields": fields, - "include_fields": include_fields, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - GetRefreshTokensPaginatedResponseContent, - parse_obj_as( - type_=GetRefreshTokensPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.refresh_tokens - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - _get_next = lambda: self.list( - user_id=user_id, - client_id=client_id, - from_=_parsed_next, - take=take, - fields=fields, - include_fields=include_fields, - request_options=request_options, - ) - return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def revoke( - self, - *, - ids: typing.Optional[typing.Sequence[str]] = OMIT, - user_id: typing.Optional[str] = OMIT, - client_id: typing.Optional[str] = OMIT, - audience: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[None]: - """ - Revoke refresh tokens in bulk by ID list, user, user+client, or user+client+audience. - - Parameters - ---------- - ids : typing.Optional[typing.Sequence[str]] - Array of refresh token IDs to revoke. Limited to 100 at a time. - - user_id : typing.Optional[str] - Revoke all refresh tokens for this user. - - client_id : typing.Optional[str] - Revoke refresh tokens for this client. Must be paired with `user_id`; optionally narrowed further with `audience`. - - audience : typing.Optional[str] - Resource server identifier (audience) to scope the revocation. Must be used with both `user_id` and `client_id`. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - "refresh-tokens/revoke", - method="POST", - json={ - "ids": ids, - "user_id": user_id, - "client_id": client_id, - "audience": audience, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetRefreshTokenResponseContent]: - """ - Retrieve refresh token information. - - Parameters - ---------- - id : str - ID refresh token to retrieve - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetRefreshTokenResponseContent] - The refresh token was retrieved - """ - _response = self._client_wrapper.httpx_client.request( - f"refresh-tokens/{quote_path_param(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetRefreshTokenResponseContent, - parse_obj_as( - type_=GetRefreshTokenResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[None]: - """ - Delete a refresh token by its ID. - - Parameters - ---------- - id : str - ID of the refresh token to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"refresh-tokens/{quote_path_param(id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def update( - self, - id: str, - *, - refresh_token_metadata: typing.Optional[RefreshTokenMetadata] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[UpdateRefreshTokenResponseContent]: - """ - Update a refresh token by its ID. - - Parameters - ---------- - id : str - ID of the refresh token to update. - - refresh_token_metadata : typing.Optional[RefreshTokenMetadata] - Metadata associated with the refresh token. Pass null or {} to remove all metadata. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[UpdateRefreshTokenResponseContent] - Refresh token successfully updated. - """ - _response = self._client_wrapper.httpx_client.request( - f"refresh-tokens/{quote_path_param(id)}", - method="PATCH", - json={ - "refresh_token_metadata": refresh_token_metadata, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateRefreshTokenResponseContent, - parse_obj_as( - type_=UpdateRefreshTokenResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawRefreshTokensClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - user_id: str, - client_id: typing.Optional[str] = None, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[RefreshTokenResponseContent, GetRefreshTokensPaginatedResponseContent]: - """ - Retrieve a paginated list of refresh tokens for a specific user, with optional filtering by client ID. Results are sorted by credential_id ascending. - - Parameters - ---------- - user_id : str - ID of the user whose refresh tokens to retrieve. Required. - - client_id : typing.Optional[str] - Filter results by client ID. Only valid when user_id is provided. - - from_ : typing.Optional[str] - An opaque cursor from which to start the selection (exclusive). Expires after 24 hours. Obtained from the next property of a previous response. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[RefreshTokenResponseContent, GetRefreshTokensPaginatedResponseContent] - The refresh tokens were retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - "refresh-tokens", - method="GET", - params={ - "user_id": user_id, - "client_id": client_id, - "from": from_, - "take": take, - "fields": fields, - "include_fields": include_fields, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - GetRefreshTokensPaginatedResponseContent, - parse_obj_as( - type_=GetRefreshTokensPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.refresh_tokens - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - - async def _get_next(): - return await self.list( - user_id=user_id, - client_id=client_id, - from_=_parsed_next, - take=take, - fields=fields, - include_fields=include_fields, - request_options=request_options, - ) - - return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def revoke( - self, - *, - ids: typing.Optional[typing.Sequence[str]] = OMIT, - user_id: typing.Optional[str] = OMIT, - client_id: typing.Optional[str] = OMIT, - audience: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[None]: - """ - Revoke refresh tokens in bulk by ID list, user, user+client, or user+client+audience. - - Parameters - ---------- - ids : typing.Optional[typing.Sequence[str]] - Array of refresh token IDs to revoke. Limited to 100 at a time. - - user_id : typing.Optional[str] - Revoke all refresh tokens for this user. - - client_id : typing.Optional[str] - Revoke refresh tokens for this client. Must be paired with `user_id`; optionally narrowed further with `audience`. - - audience : typing.Optional[str] - Resource server identifier (audience) to scope the revocation. Must be used with both `user_id` and `client_id`. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - "refresh-tokens/revoke", - method="POST", - json={ - "ids": ids, - "user_id": user_id, - "client_id": client_id, - "audience": audience, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetRefreshTokenResponseContent]: - """ - Retrieve refresh token information. - - Parameters - ---------- - id : str - ID refresh token to retrieve - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetRefreshTokenResponseContent] - The refresh token was retrieved - """ - _response = await self._client_wrapper.httpx_client.request( - f"refresh-tokens/{quote_path_param(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetRefreshTokenResponseContent, - parse_obj_as( - type_=GetRefreshTokenResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def delete( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Delete a refresh token by its ID. - - Parameters - ---------- - id : str - ID of the refresh token to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"refresh-tokens/{quote_path_param(id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def update( - self, - id: str, - *, - refresh_token_metadata: typing.Optional[RefreshTokenMetadata] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[UpdateRefreshTokenResponseContent]: - """ - Update a refresh token by its ID. - - Parameters - ---------- - id : str - ID of the refresh token to update. - - refresh_token_metadata : typing.Optional[RefreshTokenMetadata] - Metadata associated with the refresh token. Pass null or {} to remove all metadata. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[UpdateRefreshTokenResponseContent] - Refresh token successfully updated. - """ - _response = await self._client_wrapper.httpx_client.request( - f"refresh-tokens/{quote_path_param(id)}", - method="PATCH", - json={ - "refresh_token_metadata": refresh_token_metadata, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateRefreshTokenResponseContent, - parse_obj_as( - type_=UpdateRefreshTokenResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/resource_servers/__init__.py b/src/auth0/management/resource_servers/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/resource_servers/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/resource_servers/client.py b/src/auth0/management/resource_servers/client.py deleted file mode 100644 index cf325c2f..00000000 --- a/src/auth0/management/resource_servers/client.py +++ /dev/null @@ -1,1107 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.pagination import AsyncPager, SyncPager -from ..core.request_options import RequestOptions -from ..types.create_resource_server_response_content import CreateResourceServerResponseContent -from ..types.get_resource_server_response_content import GetResourceServerResponseContent -from ..types.list_resource_server_offset_paginated_response_content import ( - ListResourceServerOffsetPaginatedResponseContent, -) -from ..types.resource_server import ResourceServer -from ..types.resource_server_access_token import ResourceServerAccessToken -from ..types.resource_server_agent_subject_claims_schema_enum import ResourceServerAgentSubjectClaimsSchemaEnum -from ..types.resource_server_authorization_policy import ResourceServerAuthorizationPolicy -from ..types.resource_server_consent_policy_enum import ResourceServerConsentPolicyEnum -from ..types.resource_server_proof_of_possession import ResourceServerProofOfPossession -from ..types.resource_server_scope import ResourceServerScope -from ..types.resource_server_search_response import ResourceServerSearchResponse -from ..types.resource_server_sort_field_enum import ResourceServerSortFieldEnum -from ..types.resource_server_subject_type_authorization import ResourceServerSubjectTypeAuthorization -from ..types.resource_server_token_dialect_schema_enum import ResourceServerTokenDialectSchemaEnum -from ..types.resource_server_token_encryption import ResourceServerTokenEncryption -from ..types.resource_server_type_enum import ResourceServerTypeEnum -from ..types.search_parser_enum import SearchParserEnum -from ..types.search_resource_servers_response_content import SearchResourceServersResponseContent -from ..types.signing_algorithm_enum import SigningAlgorithmEnum -from ..types.update_resource_server_response_content import UpdateResourceServerResponseContent -from .raw_client import AsyncRawResourceServersClient, RawResourceServersClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class ResourceServersClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawResourceServersClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawResourceServersClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawResourceServersClient - """ - return self._raw_client - - def list( - self, - *, - identifiers: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - include_totals: typing.Optional[bool] = True, - include_fields: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[ResourceServer, ListResourceServerOffsetPaginatedResponseContent]: - """ - Retrieve details of all APIs associated with your tenant. - - Parameters - ---------- - identifiers : typing.Optional[typing.Union[str, typing.Sequence[str]]] - An optional filter on the resource server identifier. Must be URL encoded and may be specified multiple times (max 10).
e.g. ../resource-servers?identifiers=id1&identifiers=id2 - - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[ResourceServer, ListResourceServerOffsetPaginatedResponseContent] - Resource servers successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.resource_servers.list( - identifiers=["identifiers"], - page=1, - per_page=1, - include_totals=True, - include_fields=True, - ) - for item in response: - yield item - # alternatively, you can paginate page-by-page - for page in response.iter_pages(): - yield page - """ - return self._raw_client.list( - identifiers=identifiers, - page=page, - per_page=per_page, - include_totals=include_totals, - include_fields=include_fields, - request_options=request_options, - ) - - def create( - self, - *, - identifier: str, - name: typing.Optional[str] = OMIT, - scopes: typing.Optional[typing.Sequence[ResourceServerScope]] = OMIT, - signing_alg: typing.Optional[SigningAlgorithmEnum] = OMIT, - signing_secret: typing.Optional[str] = OMIT, - allow_offline_access: typing.Optional[bool] = OMIT, - allow_online_access: typing.Optional[bool] = OMIT, - allow_online_access_with_ephemeral_sessions: typing.Optional[bool] = OMIT, - token_lifetime: typing.Optional[int] = OMIT, - token_lifetime_for_anonymous_access_tokens: typing.Optional[int] = OMIT, - token_dialect: typing.Optional[ResourceServerTokenDialectSchemaEnum] = OMIT, - skip_consent_for_verifiable_first_party_clients: typing.Optional[bool] = OMIT, - enforce_policies: typing.Optional[bool] = OMIT, - access_token: typing.Optional[ResourceServerAccessToken] = OMIT, - token_encryption: typing.Optional[ResourceServerTokenEncryption] = OMIT, - consent_policy: typing.Optional[ResourceServerConsentPolicyEnum] = OMIT, - require_consent_non_repudiation: typing.Optional[bool] = OMIT, - authorization_details: typing.Optional[typing.Sequence[typing.Any]] = OMIT, - proof_of_possession: typing.Optional[ResourceServerProofOfPossession] = OMIT, - subject_type_authorization: typing.Optional[ResourceServerSubjectTypeAuthorization] = OMIT, - authorization_policy: typing.Optional[ResourceServerAuthorizationPolicy] = OMIT, - agent_subject_claims: typing.Optional[ResourceServerAgentSubjectClaimsSchemaEnum] = OMIT, - type: typing.Optional[ResourceServerTypeEnum] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateResourceServerResponseContent: - """ - Create a new API associated with your tenant. Note that all new APIs must be registered with Auth0. For more information, read APIs. - - Parameters - ---------- - identifier : str - Unique identifier for the API used as the audience parameter on authorization calls. Can not be changed once set. - - name : typing.Optional[str] - Friendly name for this resource server. Can not contain `<` or `>` characters. - - scopes : typing.Optional[typing.Sequence[ResourceServerScope]] - List of permissions (scopes) that this API uses. - - signing_alg : typing.Optional[SigningAlgorithmEnum] - - signing_secret : typing.Optional[str] - Secret used to sign tokens when using symmetric algorithms (HS256). - - allow_offline_access : typing.Optional[bool] - Whether refresh tokens can be issued for this API (true) or not (false). - - allow_online_access : typing.Optional[bool] - Whether Online Refresh Tokens can be issued for this API (true) or not (false). - - allow_online_access_with_ephemeral_sessions : typing.Optional[bool] - Whether Online Refresh Tokens can be issued even when sessions are configured as ephemeral (true) or not (false). - - token_lifetime : typing.Optional[int] - Expiration value (in seconds) for access tokens issued for this API from the token endpoint. - - token_lifetime_for_anonymous_access_tokens : typing.Optional[int] - Expiration value (in seconds) for anonymous-session access tokens issued for this API. - - token_dialect : typing.Optional[ResourceServerTokenDialectSchemaEnum] - - skip_consent_for_verifiable_first_party_clients : typing.Optional[bool] - Whether to skip user consent for applications flagged as first party (true) or not (false). - - enforce_policies : typing.Optional[bool] - Whether to enforce authorization policies (true) or to ignore them (false). - - access_token : typing.Optional[ResourceServerAccessToken] - - token_encryption : typing.Optional[ResourceServerTokenEncryption] - - consent_policy : typing.Optional[ResourceServerConsentPolicyEnum] - - require_consent_non_repudiation : typing.Optional[bool] - When true, the resource server requires every consent approval to be digitally signed, so the approver cannot later deny a consent they granted. When false, consent decisions do not need a signature. Defaults to false. A configured value is still returned even after the related entitlement is disabled. - - authorization_details : typing.Optional[typing.Sequence[typing.Any]] - - proof_of_possession : typing.Optional[ResourceServerProofOfPossession] - - subject_type_authorization : typing.Optional[ResourceServerSubjectTypeAuthorization] - - authorization_policy : typing.Optional[ResourceServerAuthorizationPolicy] - - agent_subject_claims : typing.Optional[ResourceServerAgentSubjectClaimsSchemaEnum] - - type : typing.Optional[ResourceServerTypeEnum] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateResourceServerResponseContent - Resource server successfully created. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.resource_servers.create( - identifier="identifier", - ) - """ - _response = self._raw_client.create( - identifier=identifier, - name=name, - scopes=scopes, - signing_alg=signing_alg, - signing_secret=signing_secret, - allow_offline_access=allow_offline_access, - allow_online_access=allow_online_access, - allow_online_access_with_ephemeral_sessions=allow_online_access_with_ephemeral_sessions, - token_lifetime=token_lifetime, - token_lifetime_for_anonymous_access_tokens=token_lifetime_for_anonymous_access_tokens, - token_dialect=token_dialect, - skip_consent_for_verifiable_first_party_clients=skip_consent_for_verifiable_first_party_clients, - enforce_policies=enforce_policies, - access_token=access_token, - token_encryption=token_encryption, - consent_policy=consent_policy, - require_consent_non_repudiation=require_consent_non_repudiation, - authorization_details=authorization_details, - proof_of_possession=proof_of_possession, - subject_type_authorization=subject_type_authorization, - authorization_policy=authorization_policy, - agent_subject_claims=agent_subject_claims, - type=type, - request_options=request_options, - ) - return _response.data - - def search( - self, - *, - q: typing.Optional[str] = None, - parser: typing.Optional[SearchParserEnum] = None, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - take: typing.Optional[int] = 50, - from_: typing.Optional[str] = None, - sort: typing.Optional[ResourceServerSortFieldEnum] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[ResourceServerSearchResponse, SearchResourceServersResponseContent]: - """ - Search resource servers using SCIM or Lucene filter syntax with low-latency, eventually consistent results. Use the parser parameter to specify "scim" or "lucene" syntax (default: "lucene"). This endpoint provides an alternative to the standard GET /resource-servers endpoint with better performance for complex queries. - Results may not reflect recent updates immediately. - - The `signing_secret` field is not supported by this endpoint. - - Parameters - ---------- - q : typing.Optional[str] - Filter expression in SCIM or Lucene syntax (depending on parser parameter). SCIM examples: `name eq "My API"`, `identifier sw "https://"`. SCIM operators: eq, ne, sw, ew, co, pr, gt, ge, lt, le, and, or.

Supported Fields:
  • id - Filter by resource server ID
  • identifier - Filter by resource server identifier
  • name - Filter by resource server name
  • updated_at - Filter by last update date
Maximum 5 filter operations per query. Results are eventually consistent and may not reflect recent updates. - - parser : typing.Optional[SearchParserEnum] - Query parser to use for the filter expression. Use "scim" for SCIM filter syntax or "lucene" for Lucene query syntax (default). - - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude in the response. Works with the include_fields parameter to control projection mode. - - include_fields : typing.Optional[bool] - Controls field projection mode. Set to true to include only fields specified in the fields parameter. Set to false to exclude fields specified in the fields parameter. Defaults to true if not specified. - - take : typing.Optional[int] - Maximum number of results to return per page (1-100). Defaults to 50. - - from_ : typing.Optional[str] - Cursor for the next page of results. Use the value from the next field in the previous response. - - sort : typing.Optional[ResourceServerSortFieldEnum] - Field name to sort results by in ascending order only. Defaults to insertion order (oldest first) if not provided. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[ResourceServerSearchResponse, SearchResourceServersResponseContent] - Resource servers successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.resource_servers.search( - q="q", - parser="scim", - fields="fields", - include_fields=True, - take=1, - from_="from", - sort="identifier", - ) - for item in response: - yield item - # alternatively, you can paginate page-by-page - for page in response.iter_pages(): - yield page - """ - return self._raw_client.search( - q=q, - parser=parser, - fields=fields, - include_fields=include_fields, - take=take, - from_=from_, - sort=sort, - request_options=request_options, - ) - - def get( - self, - id: str, - *, - include_fields: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> GetResourceServerResponseContent: - """ - Retrieve API details with the given ID. - - Parameters - ---------- - id : str - ID or audience of the resource server to retrieve. - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetResourceServerResponseContent - Resource server successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.resource_servers.get( - id="id", - include_fields=True, - ) - """ - _response = self._raw_client.get(id, include_fields=include_fields, request_options=request_options) - return _response.data - - def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete an existing API by ID. For more information, read API Settings. - - Parameters - ---------- - id : str - ID or the audience of the resource server to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.resource_servers.delete( - id="id", - ) - """ - _response = self._raw_client.delete(id, request_options=request_options) - return _response.data - - def update( - self, - id: str, - *, - name: typing.Optional[str] = OMIT, - scopes: typing.Optional[typing.Sequence[ResourceServerScope]] = OMIT, - signing_alg: typing.Optional[SigningAlgorithmEnum] = OMIT, - signing_secret: typing.Optional[str] = OMIT, - skip_consent_for_verifiable_first_party_clients: typing.Optional[bool] = OMIT, - allow_offline_access: typing.Optional[bool] = OMIT, - allow_online_access: typing.Optional[bool] = OMIT, - allow_online_access_with_ephemeral_sessions: typing.Optional[bool] = OMIT, - token_lifetime: typing.Optional[int] = OMIT, - token_lifetime_for_anonymous_access_tokens: typing.Optional[int] = OMIT, - token_dialect: typing.Optional[ResourceServerTokenDialectSchemaEnum] = OMIT, - enforce_policies: typing.Optional[bool] = OMIT, - access_token: typing.Optional[ResourceServerAccessToken] = OMIT, - token_encryption: typing.Optional[ResourceServerTokenEncryption] = OMIT, - consent_policy: typing.Optional[ResourceServerConsentPolicyEnum] = OMIT, - require_consent_non_repudiation: typing.Optional[bool] = OMIT, - authorization_details: typing.Optional[typing.Sequence[typing.Any]] = OMIT, - proof_of_possession: typing.Optional[ResourceServerProofOfPossession] = OMIT, - subject_type_authorization: typing.Optional[ResourceServerSubjectTypeAuthorization] = OMIT, - authorization_policy: typing.Optional[ResourceServerAuthorizationPolicy] = OMIT, - agent_subject_claims: typing.Optional[ResourceServerAgentSubjectClaimsSchemaEnum] = OMIT, - type: typing.Optional[ResourceServerTypeEnum] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateResourceServerResponseContent: - """ - Change an existing API setting by resource server ID. For more information, read API Settings. - - Parameters - ---------- - id : str - ID or audience of the resource server to update. - - name : typing.Optional[str] - Friendly name for this resource server. Can not contain `<` or `>` characters. - - scopes : typing.Optional[typing.Sequence[ResourceServerScope]] - List of permissions (scopes) that this API uses. - - signing_alg : typing.Optional[SigningAlgorithmEnum] - - signing_secret : typing.Optional[str] - Secret used to sign tokens when using symmetric algorithms (HS256). - - skip_consent_for_verifiable_first_party_clients : typing.Optional[bool] - Whether to skip user consent for applications flagged as first party (true) or not (false). - - allow_offline_access : typing.Optional[bool] - Whether refresh tokens can be issued for this API (true) or not (false). - - allow_online_access : typing.Optional[bool] - Whether Online Refresh Tokens can be issued for this API (true) or not (false). - - allow_online_access_with_ephemeral_sessions : typing.Optional[bool] - Whether Online Refresh Tokens can be issued even when sessions are configured as ephemeral (true) or not (false). - - token_lifetime : typing.Optional[int] - Expiration value (in seconds) for access tokens issued for this API from the token endpoint. - - token_lifetime_for_anonymous_access_tokens : typing.Optional[int] - Expiration value (in seconds) for anonymous-session access tokens issued for this API. - - token_dialect : typing.Optional[ResourceServerTokenDialectSchemaEnum] - - enforce_policies : typing.Optional[bool] - Whether authorization policies are enforced (true) or not enforced (false). - - access_token : typing.Optional[ResourceServerAccessToken] - - token_encryption : typing.Optional[ResourceServerTokenEncryption] - - consent_policy : typing.Optional[ResourceServerConsentPolicyEnum] - - require_consent_non_repudiation : typing.Optional[bool] - When true, the resource server requires every consent approval to be digitally signed, so the approver cannot later deny a consent they granted. When false, consent decisions do not need a signature. Defaults to false. A configured value is still returned even after the related entitlement is disabled. - - authorization_details : typing.Optional[typing.Sequence[typing.Any]] - - proof_of_possession : typing.Optional[ResourceServerProofOfPossession] - - subject_type_authorization : typing.Optional[ResourceServerSubjectTypeAuthorization] - - authorization_policy : typing.Optional[ResourceServerAuthorizationPolicy] - - agent_subject_claims : typing.Optional[ResourceServerAgentSubjectClaimsSchemaEnum] - - type : typing.Optional[ResourceServerTypeEnum] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateResourceServerResponseContent - Resource server successfully updated. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.resource_servers.update( - id="id", - ) - """ - _response = self._raw_client.update( - id, - name=name, - scopes=scopes, - signing_alg=signing_alg, - signing_secret=signing_secret, - skip_consent_for_verifiable_first_party_clients=skip_consent_for_verifiable_first_party_clients, - allow_offline_access=allow_offline_access, - allow_online_access=allow_online_access, - allow_online_access_with_ephemeral_sessions=allow_online_access_with_ephemeral_sessions, - token_lifetime=token_lifetime, - token_lifetime_for_anonymous_access_tokens=token_lifetime_for_anonymous_access_tokens, - token_dialect=token_dialect, - enforce_policies=enforce_policies, - access_token=access_token, - token_encryption=token_encryption, - consent_policy=consent_policy, - require_consent_non_repudiation=require_consent_non_repudiation, - authorization_details=authorization_details, - proof_of_possession=proof_of_possession, - subject_type_authorization=subject_type_authorization, - authorization_policy=authorization_policy, - agent_subject_claims=agent_subject_claims, - type=type, - request_options=request_options, - ) - return _response.data - - -class AsyncResourceServersClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawResourceServersClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawResourceServersClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawResourceServersClient - """ - return self._raw_client - - async def list( - self, - *, - identifiers: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - include_totals: typing.Optional[bool] = True, - include_fields: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[ResourceServer, ListResourceServerOffsetPaginatedResponseContent]: - """ - Retrieve details of all APIs associated with your tenant. - - Parameters - ---------- - identifiers : typing.Optional[typing.Union[str, typing.Sequence[str]]] - An optional filter on the resource server identifier. Must be URL encoded and may be specified multiple times (max 10).
e.g. ../resource-servers?identifiers=id1&identifiers=id2 - - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[ResourceServer, ListResourceServerOffsetPaginatedResponseContent] - Resource servers successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.resource_servers.list( - identifiers=["identifiers"], - page=1, - per_page=1, - include_totals=True, - include_fields=True, - ) - async for item in response: - yield item - - # alternatively, you can paginate page-by-page - async for page in response.iter_pages(): - yield page - - - asyncio.run(main()) - """ - return await self._raw_client.list( - identifiers=identifiers, - page=page, - per_page=per_page, - include_totals=include_totals, - include_fields=include_fields, - request_options=request_options, - ) - - async def create( - self, - *, - identifier: str, - name: typing.Optional[str] = OMIT, - scopes: typing.Optional[typing.Sequence[ResourceServerScope]] = OMIT, - signing_alg: typing.Optional[SigningAlgorithmEnum] = OMIT, - signing_secret: typing.Optional[str] = OMIT, - allow_offline_access: typing.Optional[bool] = OMIT, - allow_online_access: typing.Optional[bool] = OMIT, - allow_online_access_with_ephemeral_sessions: typing.Optional[bool] = OMIT, - token_lifetime: typing.Optional[int] = OMIT, - token_lifetime_for_anonymous_access_tokens: typing.Optional[int] = OMIT, - token_dialect: typing.Optional[ResourceServerTokenDialectSchemaEnum] = OMIT, - skip_consent_for_verifiable_first_party_clients: typing.Optional[bool] = OMIT, - enforce_policies: typing.Optional[bool] = OMIT, - access_token: typing.Optional[ResourceServerAccessToken] = OMIT, - token_encryption: typing.Optional[ResourceServerTokenEncryption] = OMIT, - consent_policy: typing.Optional[ResourceServerConsentPolicyEnum] = OMIT, - require_consent_non_repudiation: typing.Optional[bool] = OMIT, - authorization_details: typing.Optional[typing.Sequence[typing.Any]] = OMIT, - proof_of_possession: typing.Optional[ResourceServerProofOfPossession] = OMIT, - subject_type_authorization: typing.Optional[ResourceServerSubjectTypeAuthorization] = OMIT, - authorization_policy: typing.Optional[ResourceServerAuthorizationPolicy] = OMIT, - agent_subject_claims: typing.Optional[ResourceServerAgentSubjectClaimsSchemaEnum] = OMIT, - type: typing.Optional[ResourceServerTypeEnum] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateResourceServerResponseContent: - """ - Create a new API associated with your tenant. Note that all new APIs must be registered with Auth0. For more information, read APIs. - - Parameters - ---------- - identifier : str - Unique identifier for the API used as the audience parameter on authorization calls. Can not be changed once set. - - name : typing.Optional[str] - Friendly name for this resource server. Can not contain `<` or `>` characters. - - scopes : typing.Optional[typing.Sequence[ResourceServerScope]] - List of permissions (scopes) that this API uses. - - signing_alg : typing.Optional[SigningAlgorithmEnum] - - signing_secret : typing.Optional[str] - Secret used to sign tokens when using symmetric algorithms (HS256). - - allow_offline_access : typing.Optional[bool] - Whether refresh tokens can be issued for this API (true) or not (false). - - allow_online_access : typing.Optional[bool] - Whether Online Refresh Tokens can be issued for this API (true) or not (false). - - allow_online_access_with_ephemeral_sessions : typing.Optional[bool] - Whether Online Refresh Tokens can be issued even when sessions are configured as ephemeral (true) or not (false). - - token_lifetime : typing.Optional[int] - Expiration value (in seconds) for access tokens issued for this API from the token endpoint. - - token_lifetime_for_anonymous_access_tokens : typing.Optional[int] - Expiration value (in seconds) for anonymous-session access tokens issued for this API. - - token_dialect : typing.Optional[ResourceServerTokenDialectSchemaEnum] - - skip_consent_for_verifiable_first_party_clients : typing.Optional[bool] - Whether to skip user consent for applications flagged as first party (true) or not (false). - - enforce_policies : typing.Optional[bool] - Whether to enforce authorization policies (true) or to ignore them (false). - - access_token : typing.Optional[ResourceServerAccessToken] - - token_encryption : typing.Optional[ResourceServerTokenEncryption] - - consent_policy : typing.Optional[ResourceServerConsentPolicyEnum] - - require_consent_non_repudiation : typing.Optional[bool] - When true, the resource server requires every consent approval to be digitally signed, so the approver cannot later deny a consent they granted. When false, consent decisions do not need a signature. Defaults to false. A configured value is still returned even after the related entitlement is disabled. - - authorization_details : typing.Optional[typing.Sequence[typing.Any]] - - proof_of_possession : typing.Optional[ResourceServerProofOfPossession] - - subject_type_authorization : typing.Optional[ResourceServerSubjectTypeAuthorization] - - authorization_policy : typing.Optional[ResourceServerAuthorizationPolicy] - - agent_subject_claims : typing.Optional[ResourceServerAgentSubjectClaimsSchemaEnum] - - type : typing.Optional[ResourceServerTypeEnum] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateResourceServerResponseContent - Resource server successfully created. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.resource_servers.create( - identifier="identifier", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - identifier=identifier, - name=name, - scopes=scopes, - signing_alg=signing_alg, - signing_secret=signing_secret, - allow_offline_access=allow_offline_access, - allow_online_access=allow_online_access, - allow_online_access_with_ephemeral_sessions=allow_online_access_with_ephemeral_sessions, - token_lifetime=token_lifetime, - token_lifetime_for_anonymous_access_tokens=token_lifetime_for_anonymous_access_tokens, - token_dialect=token_dialect, - skip_consent_for_verifiable_first_party_clients=skip_consent_for_verifiable_first_party_clients, - enforce_policies=enforce_policies, - access_token=access_token, - token_encryption=token_encryption, - consent_policy=consent_policy, - require_consent_non_repudiation=require_consent_non_repudiation, - authorization_details=authorization_details, - proof_of_possession=proof_of_possession, - subject_type_authorization=subject_type_authorization, - authorization_policy=authorization_policy, - agent_subject_claims=agent_subject_claims, - type=type, - request_options=request_options, - ) - return _response.data - - async def search( - self, - *, - q: typing.Optional[str] = None, - parser: typing.Optional[SearchParserEnum] = None, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - take: typing.Optional[int] = 50, - from_: typing.Optional[str] = None, - sort: typing.Optional[ResourceServerSortFieldEnum] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[ResourceServerSearchResponse, SearchResourceServersResponseContent]: - """ - Search resource servers using SCIM or Lucene filter syntax with low-latency, eventually consistent results. Use the parser parameter to specify "scim" or "lucene" syntax (default: "lucene"). This endpoint provides an alternative to the standard GET /resource-servers endpoint with better performance for complex queries. - Results may not reflect recent updates immediately. - - The `signing_secret` field is not supported by this endpoint. - - Parameters - ---------- - q : typing.Optional[str] - Filter expression in SCIM or Lucene syntax (depending on parser parameter). SCIM examples: `name eq "My API"`, `identifier sw "https://"`. SCIM operators: eq, ne, sw, ew, co, pr, gt, ge, lt, le, and, or.

Supported Fields:
  • id - Filter by resource server ID
  • identifier - Filter by resource server identifier
  • name - Filter by resource server name
  • updated_at - Filter by last update date
Maximum 5 filter operations per query. Results are eventually consistent and may not reflect recent updates. - - parser : typing.Optional[SearchParserEnum] - Query parser to use for the filter expression. Use "scim" for SCIM filter syntax or "lucene" for Lucene query syntax (default). - - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude in the response. Works with the include_fields parameter to control projection mode. - - include_fields : typing.Optional[bool] - Controls field projection mode. Set to true to include only fields specified in the fields parameter. Set to false to exclude fields specified in the fields parameter. Defaults to true if not specified. - - take : typing.Optional[int] - Maximum number of results to return per page (1-100). Defaults to 50. - - from_ : typing.Optional[str] - Cursor for the next page of results. Use the value from the next field in the previous response. - - sort : typing.Optional[ResourceServerSortFieldEnum] - Field name to sort results by in ascending order only. Defaults to insertion order (oldest first) if not provided. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[ResourceServerSearchResponse, SearchResourceServersResponseContent] - Resource servers successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.resource_servers.search( - q="q", - parser="scim", - fields="fields", - include_fields=True, - take=1, - from_="from", - sort="identifier", - ) - async for item in response: - yield item - - # alternatively, you can paginate page-by-page - async for page in response.iter_pages(): - yield page - - - asyncio.run(main()) - """ - return await self._raw_client.search( - q=q, - parser=parser, - fields=fields, - include_fields=include_fields, - take=take, - from_=from_, - sort=sort, - request_options=request_options, - ) - - async def get( - self, - id: str, - *, - include_fields: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> GetResourceServerResponseContent: - """ - Retrieve API details with the given ID. - - Parameters - ---------- - id : str - ID or audience of the resource server to retrieve. - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetResourceServerResponseContent - Resource server successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.resource_servers.get( - id="id", - include_fields=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.get(id, include_fields=include_fields, request_options=request_options) - return _response.data - - async def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete an existing API by ID. For more information, read API Settings. - - Parameters - ---------- - id : str - ID or the audience of the resource server to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.resource_servers.delete( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete(id, request_options=request_options) - return _response.data - - async def update( - self, - id: str, - *, - name: typing.Optional[str] = OMIT, - scopes: typing.Optional[typing.Sequence[ResourceServerScope]] = OMIT, - signing_alg: typing.Optional[SigningAlgorithmEnum] = OMIT, - signing_secret: typing.Optional[str] = OMIT, - skip_consent_for_verifiable_first_party_clients: typing.Optional[bool] = OMIT, - allow_offline_access: typing.Optional[bool] = OMIT, - allow_online_access: typing.Optional[bool] = OMIT, - allow_online_access_with_ephemeral_sessions: typing.Optional[bool] = OMIT, - token_lifetime: typing.Optional[int] = OMIT, - token_lifetime_for_anonymous_access_tokens: typing.Optional[int] = OMIT, - token_dialect: typing.Optional[ResourceServerTokenDialectSchemaEnum] = OMIT, - enforce_policies: typing.Optional[bool] = OMIT, - access_token: typing.Optional[ResourceServerAccessToken] = OMIT, - token_encryption: typing.Optional[ResourceServerTokenEncryption] = OMIT, - consent_policy: typing.Optional[ResourceServerConsentPolicyEnum] = OMIT, - require_consent_non_repudiation: typing.Optional[bool] = OMIT, - authorization_details: typing.Optional[typing.Sequence[typing.Any]] = OMIT, - proof_of_possession: typing.Optional[ResourceServerProofOfPossession] = OMIT, - subject_type_authorization: typing.Optional[ResourceServerSubjectTypeAuthorization] = OMIT, - authorization_policy: typing.Optional[ResourceServerAuthorizationPolicy] = OMIT, - agent_subject_claims: typing.Optional[ResourceServerAgentSubjectClaimsSchemaEnum] = OMIT, - type: typing.Optional[ResourceServerTypeEnum] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateResourceServerResponseContent: - """ - Change an existing API setting by resource server ID. For more information, read API Settings. - - Parameters - ---------- - id : str - ID or audience of the resource server to update. - - name : typing.Optional[str] - Friendly name for this resource server. Can not contain `<` or `>` characters. - - scopes : typing.Optional[typing.Sequence[ResourceServerScope]] - List of permissions (scopes) that this API uses. - - signing_alg : typing.Optional[SigningAlgorithmEnum] - - signing_secret : typing.Optional[str] - Secret used to sign tokens when using symmetric algorithms (HS256). - - skip_consent_for_verifiable_first_party_clients : typing.Optional[bool] - Whether to skip user consent for applications flagged as first party (true) or not (false). - - allow_offline_access : typing.Optional[bool] - Whether refresh tokens can be issued for this API (true) or not (false). - - allow_online_access : typing.Optional[bool] - Whether Online Refresh Tokens can be issued for this API (true) or not (false). - - allow_online_access_with_ephemeral_sessions : typing.Optional[bool] - Whether Online Refresh Tokens can be issued even when sessions are configured as ephemeral (true) or not (false). - - token_lifetime : typing.Optional[int] - Expiration value (in seconds) for access tokens issued for this API from the token endpoint. - - token_lifetime_for_anonymous_access_tokens : typing.Optional[int] - Expiration value (in seconds) for anonymous-session access tokens issued for this API. - - token_dialect : typing.Optional[ResourceServerTokenDialectSchemaEnum] - - enforce_policies : typing.Optional[bool] - Whether authorization policies are enforced (true) or not enforced (false). - - access_token : typing.Optional[ResourceServerAccessToken] - - token_encryption : typing.Optional[ResourceServerTokenEncryption] - - consent_policy : typing.Optional[ResourceServerConsentPolicyEnum] - - require_consent_non_repudiation : typing.Optional[bool] - When true, the resource server requires every consent approval to be digitally signed, so the approver cannot later deny a consent they granted. When false, consent decisions do not need a signature. Defaults to false. A configured value is still returned even after the related entitlement is disabled. - - authorization_details : typing.Optional[typing.Sequence[typing.Any]] - - proof_of_possession : typing.Optional[ResourceServerProofOfPossession] - - subject_type_authorization : typing.Optional[ResourceServerSubjectTypeAuthorization] - - authorization_policy : typing.Optional[ResourceServerAuthorizationPolicy] - - agent_subject_claims : typing.Optional[ResourceServerAgentSubjectClaimsSchemaEnum] - - type : typing.Optional[ResourceServerTypeEnum] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateResourceServerResponseContent - Resource server successfully updated. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.resource_servers.update( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.update( - id, - name=name, - scopes=scopes, - signing_alg=signing_alg, - signing_secret=signing_secret, - skip_consent_for_verifiable_first_party_clients=skip_consent_for_verifiable_first_party_clients, - allow_offline_access=allow_offline_access, - allow_online_access=allow_online_access, - allow_online_access_with_ephemeral_sessions=allow_online_access_with_ephemeral_sessions, - token_lifetime=token_lifetime, - token_lifetime_for_anonymous_access_tokens=token_lifetime_for_anonymous_access_tokens, - token_dialect=token_dialect, - enforce_policies=enforce_policies, - access_token=access_token, - token_encryption=token_encryption, - consent_policy=consent_policy, - require_consent_non_repudiation=require_consent_non_repudiation, - authorization_details=authorization_details, - proof_of_possession=proof_of_possession, - subject_type_authorization=subject_type_authorization, - authorization_policy=authorization_policy, - agent_subject_claims=agent_subject_claims, - type=type, - request_options=request_options, - ) - return _response.data diff --git a/src/auth0/management/resource_servers/raw_client.py b/src/auth0/management/resource_servers/raw_client.py deleted file mode 100644 index c4bdf0a8..00000000 --- a/src/auth0/management/resource_servers/raw_client.py +++ /dev/null @@ -1,1936 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ..core.api_error import ApiError -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.http_response import AsyncHttpResponse, HttpResponse -from ..core.jsonable_encoder import quote_path_param -from ..core.pagination import AsyncPager, SyncPager -from ..core.parse_error import ParsingError -from ..core.pydantic_utilities import parse_obj_as -from ..core.request_options import RequestOptions -from ..core.serialization import convert_and_respect_annotation_metadata -from ..errors.bad_request_error import BadRequestError -from ..errors.conflict_error import ConflictError -from ..errors.forbidden_error import ForbiddenError -from ..errors.gateway_timeout_error import GatewayTimeoutError -from ..errors.internal_server_error import InternalServerError -from ..errors.not_found_error import NotFoundError -from ..errors.too_many_requests_error import TooManyRequestsError -from ..errors.unauthorized_error import UnauthorizedError -from ..types.create_resource_server_response_content import CreateResourceServerResponseContent -from ..types.get_resource_server_response_content import GetResourceServerResponseContent -from ..types.list_resource_server_offset_paginated_response_content import ( - ListResourceServerOffsetPaginatedResponseContent, -) -from ..types.resource_server import ResourceServer -from ..types.resource_server_access_token import ResourceServerAccessToken -from ..types.resource_server_agent_subject_claims_schema_enum import ResourceServerAgentSubjectClaimsSchemaEnum -from ..types.resource_server_authorization_policy import ResourceServerAuthorizationPolicy -from ..types.resource_server_consent_policy_enum import ResourceServerConsentPolicyEnum -from ..types.resource_server_proof_of_possession import ResourceServerProofOfPossession -from ..types.resource_server_scope import ResourceServerScope -from ..types.resource_server_search_response import ResourceServerSearchResponse -from ..types.resource_server_sort_field_enum import ResourceServerSortFieldEnum -from ..types.resource_server_subject_type_authorization import ResourceServerSubjectTypeAuthorization -from ..types.resource_server_token_dialect_schema_enum import ResourceServerTokenDialectSchemaEnum -from ..types.resource_server_token_encryption import ResourceServerTokenEncryption -from ..types.resource_server_type_enum import ResourceServerTypeEnum -from ..types.search_parser_enum import SearchParserEnum -from ..types.search_resource_servers_response_content import SearchResourceServersResponseContent -from ..types.signing_algorithm_enum import SigningAlgorithmEnum -from ..types.update_resource_server_response_content import UpdateResourceServerResponseContent -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawResourceServersClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - identifiers: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - include_totals: typing.Optional[bool] = True, - include_fields: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[ResourceServer, ListResourceServerOffsetPaginatedResponseContent]: - """ - Retrieve details of all APIs associated with your tenant. - - Parameters - ---------- - identifiers : typing.Optional[typing.Union[str, typing.Sequence[str]]] - An optional filter on the resource server identifier. Must be URL encoded and may be specified multiple times (max 10).
e.g. ../resource-servers?identifiers=id1&identifiers=id2 - - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[ResourceServer, ListResourceServerOffsetPaginatedResponseContent] - Resource servers successfully retrieved. - """ - page = page if page is not None else 0 - - _response = self._client_wrapper.httpx_client.request( - "resource-servers", - method="GET", - params={ - "identifiers": identifiers, - "page": page, - "per_page": per_page, - "include_totals": include_totals, - "include_fields": include_fields, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListResourceServerOffsetPaginatedResponseContent, - parse_obj_as( - type_=ListResourceServerOffsetPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.resource_servers - _has_next = len(_items or []) > 0 - _get_next = lambda: self.list( - identifiers=identifiers, - page=page + 1, - per_page=per_page, - include_totals=include_totals, - include_fields=include_fields, - request_options=request_options, - ) - return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - *, - identifier: str, - name: typing.Optional[str] = OMIT, - scopes: typing.Optional[typing.Sequence[ResourceServerScope]] = OMIT, - signing_alg: typing.Optional[SigningAlgorithmEnum] = OMIT, - signing_secret: typing.Optional[str] = OMIT, - allow_offline_access: typing.Optional[bool] = OMIT, - allow_online_access: typing.Optional[bool] = OMIT, - allow_online_access_with_ephemeral_sessions: typing.Optional[bool] = OMIT, - token_lifetime: typing.Optional[int] = OMIT, - token_lifetime_for_anonymous_access_tokens: typing.Optional[int] = OMIT, - token_dialect: typing.Optional[ResourceServerTokenDialectSchemaEnum] = OMIT, - skip_consent_for_verifiable_first_party_clients: typing.Optional[bool] = OMIT, - enforce_policies: typing.Optional[bool] = OMIT, - access_token: typing.Optional[ResourceServerAccessToken] = OMIT, - token_encryption: typing.Optional[ResourceServerTokenEncryption] = OMIT, - consent_policy: typing.Optional[ResourceServerConsentPolicyEnum] = OMIT, - require_consent_non_repudiation: typing.Optional[bool] = OMIT, - authorization_details: typing.Optional[typing.Sequence[typing.Any]] = OMIT, - proof_of_possession: typing.Optional[ResourceServerProofOfPossession] = OMIT, - subject_type_authorization: typing.Optional[ResourceServerSubjectTypeAuthorization] = OMIT, - authorization_policy: typing.Optional[ResourceServerAuthorizationPolicy] = OMIT, - agent_subject_claims: typing.Optional[ResourceServerAgentSubjectClaimsSchemaEnum] = OMIT, - type: typing.Optional[ResourceServerTypeEnum] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[CreateResourceServerResponseContent]: - """ - Create a new API associated with your tenant. Note that all new APIs must be registered with Auth0. For more information, read APIs. - - Parameters - ---------- - identifier : str - Unique identifier for the API used as the audience parameter on authorization calls. Can not be changed once set. - - name : typing.Optional[str] - Friendly name for this resource server. Can not contain `<` or `>` characters. - - scopes : typing.Optional[typing.Sequence[ResourceServerScope]] - List of permissions (scopes) that this API uses. - - signing_alg : typing.Optional[SigningAlgorithmEnum] - - signing_secret : typing.Optional[str] - Secret used to sign tokens when using symmetric algorithms (HS256). - - allow_offline_access : typing.Optional[bool] - Whether refresh tokens can be issued for this API (true) or not (false). - - allow_online_access : typing.Optional[bool] - Whether Online Refresh Tokens can be issued for this API (true) or not (false). - - allow_online_access_with_ephemeral_sessions : typing.Optional[bool] - Whether Online Refresh Tokens can be issued even when sessions are configured as ephemeral (true) or not (false). - - token_lifetime : typing.Optional[int] - Expiration value (in seconds) for access tokens issued for this API from the token endpoint. - - token_lifetime_for_anonymous_access_tokens : typing.Optional[int] - Expiration value (in seconds) for anonymous-session access tokens issued for this API. - - token_dialect : typing.Optional[ResourceServerTokenDialectSchemaEnum] - - skip_consent_for_verifiable_first_party_clients : typing.Optional[bool] - Whether to skip user consent for applications flagged as first party (true) or not (false). - - enforce_policies : typing.Optional[bool] - Whether to enforce authorization policies (true) or to ignore them (false). - - access_token : typing.Optional[ResourceServerAccessToken] - - token_encryption : typing.Optional[ResourceServerTokenEncryption] - - consent_policy : typing.Optional[ResourceServerConsentPolicyEnum] - - require_consent_non_repudiation : typing.Optional[bool] - When true, the resource server requires every consent approval to be digitally signed, so the approver cannot later deny a consent they granted. When false, consent decisions do not need a signature. Defaults to false. A configured value is still returned even after the related entitlement is disabled. - - authorization_details : typing.Optional[typing.Sequence[typing.Any]] - - proof_of_possession : typing.Optional[ResourceServerProofOfPossession] - - subject_type_authorization : typing.Optional[ResourceServerSubjectTypeAuthorization] - - authorization_policy : typing.Optional[ResourceServerAuthorizationPolicy] - - agent_subject_claims : typing.Optional[ResourceServerAgentSubjectClaimsSchemaEnum] - - type : typing.Optional[ResourceServerTypeEnum] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CreateResourceServerResponseContent] - Resource server successfully created. - """ - _response = self._client_wrapper.httpx_client.request( - "resource-servers", - method="POST", - json={ - "name": name, - "identifier": identifier, - "scopes": convert_and_respect_annotation_metadata( - object_=scopes, annotation=typing.Sequence[ResourceServerScope], direction="write" - ), - "signing_alg": signing_alg, - "signing_secret": signing_secret, - "allow_offline_access": allow_offline_access, - "allow_online_access": allow_online_access, - "allow_online_access_with_ephemeral_sessions": allow_online_access_with_ephemeral_sessions, - "token_lifetime": token_lifetime, - "token_lifetime_for_anonymous_access_tokens": token_lifetime_for_anonymous_access_tokens, - "token_dialect": token_dialect, - "skip_consent_for_verifiable_first_party_clients": skip_consent_for_verifiable_first_party_clients, - "enforce_policies": enforce_policies, - "access_token": convert_and_respect_annotation_metadata( - object_=access_token, annotation=typing.Optional[ResourceServerAccessToken], direction="write" - ), - "token_encryption": convert_and_respect_annotation_metadata( - object_=token_encryption, - annotation=typing.Optional[ResourceServerTokenEncryption], - direction="write", - ), - "consent_policy": consent_policy, - "require_consent_non_repudiation": require_consent_non_repudiation, - "authorization_details": authorization_details, - "proof_of_possession": convert_and_respect_annotation_metadata( - object_=proof_of_possession, - annotation=typing.Optional[ResourceServerProofOfPossession], - direction="write", - ), - "subject_type_authorization": convert_and_respect_annotation_metadata( - object_=subject_type_authorization, - annotation=ResourceServerSubjectTypeAuthorization, - direction="write", - ), - "authorization_policy": convert_and_respect_annotation_metadata( - object_=authorization_policy, - annotation=typing.Optional[ResourceServerAuthorizationPolicy], - direction="write", - ), - "agent_subject_claims": agent_subject_claims, - "type": type, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateResourceServerResponseContent, - parse_obj_as( - type_=CreateResourceServerResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def search( - self, - *, - q: typing.Optional[str] = None, - parser: typing.Optional[SearchParserEnum] = None, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - take: typing.Optional[int] = 50, - from_: typing.Optional[str] = None, - sort: typing.Optional[ResourceServerSortFieldEnum] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[ResourceServerSearchResponse, SearchResourceServersResponseContent]: - """ - Search resource servers using SCIM or Lucene filter syntax with low-latency, eventually consistent results. Use the parser parameter to specify "scim" or "lucene" syntax (default: "lucene"). This endpoint provides an alternative to the standard GET /resource-servers endpoint with better performance for complex queries. - Results may not reflect recent updates immediately. - - The `signing_secret` field is not supported by this endpoint. - - Parameters - ---------- - q : typing.Optional[str] - Filter expression in SCIM or Lucene syntax (depending on parser parameter). SCIM examples: `name eq "My API"`, `identifier sw "https://"`. SCIM operators: eq, ne, sw, ew, co, pr, gt, ge, lt, le, and, or.

Supported Fields:
  • id - Filter by resource server ID
  • identifier - Filter by resource server identifier
  • name - Filter by resource server name
  • updated_at - Filter by last update date
Maximum 5 filter operations per query. Results are eventually consistent and may not reflect recent updates. - - parser : typing.Optional[SearchParserEnum] - Query parser to use for the filter expression. Use "scim" for SCIM filter syntax or "lucene" for Lucene query syntax (default). - - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude in the response. Works with the include_fields parameter to control projection mode. - - include_fields : typing.Optional[bool] - Controls field projection mode. Set to true to include only fields specified in the fields parameter. Set to false to exclude fields specified in the fields parameter. Defaults to true if not specified. - - take : typing.Optional[int] - Maximum number of results to return per page (1-100). Defaults to 50. - - from_ : typing.Optional[str] - Cursor for the next page of results. Use the value from the next field in the previous response. - - sort : typing.Optional[ResourceServerSortFieldEnum] - Field name to sort results by in ascending order only. Defaults to insertion order (oldest first) if not provided. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[ResourceServerSearchResponse, SearchResourceServersResponseContent] - Resource servers successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - "resource-servers/search", - method="GET", - params={ - "q": q, - "parser": parser, - "fields": fields, - "include_fields": include_fields, - "take": take, - "from": from_, - "sort": sort, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - SearchResourceServersResponseContent, - parse_obj_as( - type_=SearchResourceServersResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.resource_servers - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - _get_next = lambda: self.search( - q=q, - parser=parser, - fields=fields, - include_fields=include_fields, - take=take, - from_=_parsed_next, - sort=sort, - request_options=request_options, - ) - return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 500: - raise InternalServerError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 504: - raise GatewayTimeoutError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def get( - self, - id: str, - *, - include_fields: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[GetResourceServerResponseContent]: - """ - Retrieve API details with the given ID. - - Parameters - ---------- - id : str - ID or audience of the resource server to retrieve. - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetResourceServerResponseContent] - Resource server successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - f"resource-servers/{quote_path_param(id)}", - method="GET", - params={ - "include_fields": include_fields, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetResourceServerResponseContent, - parse_obj_as( - type_=GetResourceServerResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[None]: - """ - Delete an existing API by ID. For more information, read API Settings. - - Parameters - ---------- - id : str - ID or the audience of the resource server to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"resource-servers/{quote_path_param(id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def update( - self, - id: str, - *, - name: typing.Optional[str] = OMIT, - scopes: typing.Optional[typing.Sequence[ResourceServerScope]] = OMIT, - signing_alg: typing.Optional[SigningAlgorithmEnum] = OMIT, - signing_secret: typing.Optional[str] = OMIT, - skip_consent_for_verifiable_first_party_clients: typing.Optional[bool] = OMIT, - allow_offline_access: typing.Optional[bool] = OMIT, - allow_online_access: typing.Optional[bool] = OMIT, - allow_online_access_with_ephemeral_sessions: typing.Optional[bool] = OMIT, - token_lifetime: typing.Optional[int] = OMIT, - token_lifetime_for_anonymous_access_tokens: typing.Optional[int] = OMIT, - token_dialect: typing.Optional[ResourceServerTokenDialectSchemaEnum] = OMIT, - enforce_policies: typing.Optional[bool] = OMIT, - access_token: typing.Optional[ResourceServerAccessToken] = OMIT, - token_encryption: typing.Optional[ResourceServerTokenEncryption] = OMIT, - consent_policy: typing.Optional[ResourceServerConsentPolicyEnum] = OMIT, - require_consent_non_repudiation: typing.Optional[bool] = OMIT, - authorization_details: typing.Optional[typing.Sequence[typing.Any]] = OMIT, - proof_of_possession: typing.Optional[ResourceServerProofOfPossession] = OMIT, - subject_type_authorization: typing.Optional[ResourceServerSubjectTypeAuthorization] = OMIT, - authorization_policy: typing.Optional[ResourceServerAuthorizationPolicy] = OMIT, - agent_subject_claims: typing.Optional[ResourceServerAgentSubjectClaimsSchemaEnum] = OMIT, - type: typing.Optional[ResourceServerTypeEnum] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[UpdateResourceServerResponseContent]: - """ - Change an existing API setting by resource server ID. For more information, read API Settings. - - Parameters - ---------- - id : str - ID or audience of the resource server to update. - - name : typing.Optional[str] - Friendly name for this resource server. Can not contain `<` or `>` characters. - - scopes : typing.Optional[typing.Sequence[ResourceServerScope]] - List of permissions (scopes) that this API uses. - - signing_alg : typing.Optional[SigningAlgorithmEnum] - - signing_secret : typing.Optional[str] - Secret used to sign tokens when using symmetric algorithms (HS256). - - skip_consent_for_verifiable_first_party_clients : typing.Optional[bool] - Whether to skip user consent for applications flagged as first party (true) or not (false). - - allow_offline_access : typing.Optional[bool] - Whether refresh tokens can be issued for this API (true) or not (false). - - allow_online_access : typing.Optional[bool] - Whether Online Refresh Tokens can be issued for this API (true) or not (false). - - allow_online_access_with_ephemeral_sessions : typing.Optional[bool] - Whether Online Refresh Tokens can be issued even when sessions are configured as ephemeral (true) or not (false). - - token_lifetime : typing.Optional[int] - Expiration value (in seconds) for access tokens issued for this API from the token endpoint. - - token_lifetime_for_anonymous_access_tokens : typing.Optional[int] - Expiration value (in seconds) for anonymous-session access tokens issued for this API. - - token_dialect : typing.Optional[ResourceServerTokenDialectSchemaEnum] - - enforce_policies : typing.Optional[bool] - Whether authorization policies are enforced (true) or not enforced (false). - - access_token : typing.Optional[ResourceServerAccessToken] - - token_encryption : typing.Optional[ResourceServerTokenEncryption] - - consent_policy : typing.Optional[ResourceServerConsentPolicyEnum] - - require_consent_non_repudiation : typing.Optional[bool] - When true, the resource server requires every consent approval to be digitally signed, so the approver cannot later deny a consent they granted. When false, consent decisions do not need a signature. Defaults to false. A configured value is still returned even after the related entitlement is disabled. - - authorization_details : typing.Optional[typing.Sequence[typing.Any]] - - proof_of_possession : typing.Optional[ResourceServerProofOfPossession] - - subject_type_authorization : typing.Optional[ResourceServerSubjectTypeAuthorization] - - authorization_policy : typing.Optional[ResourceServerAuthorizationPolicy] - - agent_subject_claims : typing.Optional[ResourceServerAgentSubjectClaimsSchemaEnum] - - type : typing.Optional[ResourceServerTypeEnum] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[UpdateResourceServerResponseContent] - Resource server successfully updated. - """ - _response = self._client_wrapper.httpx_client.request( - f"resource-servers/{quote_path_param(id)}", - method="PATCH", - json={ - "name": name, - "scopes": convert_and_respect_annotation_metadata( - object_=scopes, annotation=typing.Sequence[ResourceServerScope], direction="write" - ), - "signing_alg": signing_alg, - "signing_secret": signing_secret, - "skip_consent_for_verifiable_first_party_clients": skip_consent_for_verifiable_first_party_clients, - "allow_offline_access": allow_offline_access, - "allow_online_access": allow_online_access, - "allow_online_access_with_ephemeral_sessions": allow_online_access_with_ephemeral_sessions, - "token_lifetime": token_lifetime, - "token_lifetime_for_anonymous_access_tokens": token_lifetime_for_anonymous_access_tokens, - "token_dialect": token_dialect, - "enforce_policies": enforce_policies, - "access_token": convert_and_respect_annotation_metadata( - object_=access_token, annotation=typing.Optional[ResourceServerAccessToken], direction="write" - ), - "token_encryption": convert_and_respect_annotation_metadata( - object_=token_encryption, - annotation=typing.Optional[ResourceServerTokenEncryption], - direction="write", - ), - "consent_policy": consent_policy, - "require_consent_non_repudiation": require_consent_non_repudiation, - "authorization_details": authorization_details, - "proof_of_possession": convert_and_respect_annotation_metadata( - object_=proof_of_possession, - annotation=typing.Optional[ResourceServerProofOfPossession], - direction="write", - ), - "subject_type_authorization": convert_and_respect_annotation_metadata( - object_=subject_type_authorization, - annotation=ResourceServerSubjectTypeAuthorization, - direction="write", - ), - "authorization_policy": convert_and_respect_annotation_metadata( - object_=authorization_policy, - annotation=typing.Optional[ResourceServerAuthorizationPolicy], - direction="write", - ), - "agent_subject_claims": agent_subject_claims, - "type": type, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateResourceServerResponseContent, - parse_obj_as( - type_=UpdateResourceServerResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawResourceServersClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - identifiers: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - include_totals: typing.Optional[bool] = True, - include_fields: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[ResourceServer, ListResourceServerOffsetPaginatedResponseContent]: - """ - Retrieve details of all APIs associated with your tenant. - - Parameters - ---------- - identifiers : typing.Optional[typing.Union[str, typing.Sequence[str]]] - An optional filter on the resource server identifier. Must be URL encoded and may be specified multiple times (max 10).
e.g. ../resource-servers?identifiers=id1&identifiers=id2 - - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[ResourceServer, ListResourceServerOffsetPaginatedResponseContent] - Resource servers successfully retrieved. - """ - page = page if page is not None else 0 - - _response = await self._client_wrapper.httpx_client.request( - "resource-servers", - method="GET", - params={ - "identifiers": identifiers, - "page": page, - "per_page": per_page, - "include_totals": include_totals, - "include_fields": include_fields, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListResourceServerOffsetPaginatedResponseContent, - parse_obj_as( - type_=ListResourceServerOffsetPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.resource_servers - _has_next = len(_items or []) > 0 - - async def _get_next(): - return await self.list( - identifiers=identifiers, - page=page + 1, - per_page=per_page, - include_totals=include_totals, - include_fields=include_fields, - request_options=request_options, - ) - - return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - *, - identifier: str, - name: typing.Optional[str] = OMIT, - scopes: typing.Optional[typing.Sequence[ResourceServerScope]] = OMIT, - signing_alg: typing.Optional[SigningAlgorithmEnum] = OMIT, - signing_secret: typing.Optional[str] = OMIT, - allow_offline_access: typing.Optional[bool] = OMIT, - allow_online_access: typing.Optional[bool] = OMIT, - allow_online_access_with_ephemeral_sessions: typing.Optional[bool] = OMIT, - token_lifetime: typing.Optional[int] = OMIT, - token_lifetime_for_anonymous_access_tokens: typing.Optional[int] = OMIT, - token_dialect: typing.Optional[ResourceServerTokenDialectSchemaEnum] = OMIT, - skip_consent_for_verifiable_first_party_clients: typing.Optional[bool] = OMIT, - enforce_policies: typing.Optional[bool] = OMIT, - access_token: typing.Optional[ResourceServerAccessToken] = OMIT, - token_encryption: typing.Optional[ResourceServerTokenEncryption] = OMIT, - consent_policy: typing.Optional[ResourceServerConsentPolicyEnum] = OMIT, - require_consent_non_repudiation: typing.Optional[bool] = OMIT, - authorization_details: typing.Optional[typing.Sequence[typing.Any]] = OMIT, - proof_of_possession: typing.Optional[ResourceServerProofOfPossession] = OMIT, - subject_type_authorization: typing.Optional[ResourceServerSubjectTypeAuthorization] = OMIT, - authorization_policy: typing.Optional[ResourceServerAuthorizationPolicy] = OMIT, - agent_subject_claims: typing.Optional[ResourceServerAgentSubjectClaimsSchemaEnum] = OMIT, - type: typing.Optional[ResourceServerTypeEnum] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[CreateResourceServerResponseContent]: - """ - Create a new API associated with your tenant. Note that all new APIs must be registered with Auth0. For more information, read APIs. - - Parameters - ---------- - identifier : str - Unique identifier for the API used as the audience parameter on authorization calls. Can not be changed once set. - - name : typing.Optional[str] - Friendly name for this resource server. Can not contain `<` or `>` characters. - - scopes : typing.Optional[typing.Sequence[ResourceServerScope]] - List of permissions (scopes) that this API uses. - - signing_alg : typing.Optional[SigningAlgorithmEnum] - - signing_secret : typing.Optional[str] - Secret used to sign tokens when using symmetric algorithms (HS256). - - allow_offline_access : typing.Optional[bool] - Whether refresh tokens can be issued for this API (true) or not (false). - - allow_online_access : typing.Optional[bool] - Whether Online Refresh Tokens can be issued for this API (true) or not (false). - - allow_online_access_with_ephemeral_sessions : typing.Optional[bool] - Whether Online Refresh Tokens can be issued even when sessions are configured as ephemeral (true) or not (false). - - token_lifetime : typing.Optional[int] - Expiration value (in seconds) for access tokens issued for this API from the token endpoint. - - token_lifetime_for_anonymous_access_tokens : typing.Optional[int] - Expiration value (in seconds) for anonymous-session access tokens issued for this API. - - token_dialect : typing.Optional[ResourceServerTokenDialectSchemaEnum] - - skip_consent_for_verifiable_first_party_clients : typing.Optional[bool] - Whether to skip user consent for applications flagged as first party (true) or not (false). - - enforce_policies : typing.Optional[bool] - Whether to enforce authorization policies (true) or to ignore them (false). - - access_token : typing.Optional[ResourceServerAccessToken] - - token_encryption : typing.Optional[ResourceServerTokenEncryption] - - consent_policy : typing.Optional[ResourceServerConsentPolicyEnum] - - require_consent_non_repudiation : typing.Optional[bool] - When true, the resource server requires every consent approval to be digitally signed, so the approver cannot later deny a consent they granted. When false, consent decisions do not need a signature. Defaults to false. A configured value is still returned even after the related entitlement is disabled. - - authorization_details : typing.Optional[typing.Sequence[typing.Any]] - - proof_of_possession : typing.Optional[ResourceServerProofOfPossession] - - subject_type_authorization : typing.Optional[ResourceServerSubjectTypeAuthorization] - - authorization_policy : typing.Optional[ResourceServerAuthorizationPolicy] - - agent_subject_claims : typing.Optional[ResourceServerAgentSubjectClaimsSchemaEnum] - - type : typing.Optional[ResourceServerTypeEnum] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CreateResourceServerResponseContent] - Resource server successfully created. - """ - _response = await self._client_wrapper.httpx_client.request( - "resource-servers", - method="POST", - json={ - "name": name, - "identifier": identifier, - "scopes": convert_and_respect_annotation_metadata( - object_=scopes, annotation=typing.Sequence[ResourceServerScope], direction="write" - ), - "signing_alg": signing_alg, - "signing_secret": signing_secret, - "allow_offline_access": allow_offline_access, - "allow_online_access": allow_online_access, - "allow_online_access_with_ephemeral_sessions": allow_online_access_with_ephemeral_sessions, - "token_lifetime": token_lifetime, - "token_lifetime_for_anonymous_access_tokens": token_lifetime_for_anonymous_access_tokens, - "token_dialect": token_dialect, - "skip_consent_for_verifiable_first_party_clients": skip_consent_for_verifiable_first_party_clients, - "enforce_policies": enforce_policies, - "access_token": convert_and_respect_annotation_metadata( - object_=access_token, annotation=typing.Optional[ResourceServerAccessToken], direction="write" - ), - "token_encryption": convert_and_respect_annotation_metadata( - object_=token_encryption, - annotation=typing.Optional[ResourceServerTokenEncryption], - direction="write", - ), - "consent_policy": consent_policy, - "require_consent_non_repudiation": require_consent_non_repudiation, - "authorization_details": authorization_details, - "proof_of_possession": convert_and_respect_annotation_metadata( - object_=proof_of_possession, - annotation=typing.Optional[ResourceServerProofOfPossession], - direction="write", - ), - "subject_type_authorization": convert_and_respect_annotation_metadata( - object_=subject_type_authorization, - annotation=ResourceServerSubjectTypeAuthorization, - direction="write", - ), - "authorization_policy": convert_and_respect_annotation_metadata( - object_=authorization_policy, - annotation=typing.Optional[ResourceServerAuthorizationPolicy], - direction="write", - ), - "agent_subject_claims": agent_subject_claims, - "type": type, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateResourceServerResponseContent, - parse_obj_as( - type_=CreateResourceServerResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def search( - self, - *, - q: typing.Optional[str] = None, - parser: typing.Optional[SearchParserEnum] = None, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - take: typing.Optional[int] = 50, - from_: typing.Optional[str] = None, - sort: typing.Optional[ResourceServerSortFieldEnum] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[ResourceServerSearchResponse, SearchResourceServersResponseContent]: - """ - Search resource servers using SCIM or Lucene filter syntax with low-latency, eventually consistent results. Use the parser parameter to specify "scim" or "lucene" syntax (default: "lucene"). This endpoint provides an alternative to the standard GET /resource-servers endpoint with better performance for complex queries. - Results may not reflect recent updates immediately. - - The `signing_secret` field is not supported by this endpoint. - - Parameters - ---------- - q : typing.Optional[str] - Filter expression in SCIM or Lucene syntax (depending on parser parameter). SCIM examples: `name eq "My API"`, `identifier sw "https://"`. SCIM operators: eq, ne, sw, ew, co, pr, gt, ge, lt, le, and, or.

Supported Fields:
  • id - Filter by resource server ID
  • identifier - Filter by resource server identifier
  • name - Filter by resource server name
  • updated_at - Filter by last update date
Maximum 5 filter operations per query. Results are eventually consistent and may not reflect recent updates. - - parser : typing.Optional[SearchParserEnum] - Query parser to use for the filter expression. Use "scim" for SCIM filter syntax or "lucene" for Lucene query syntax (default). - - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude in the response. Works with the include_fields parameter to control projection mode. - - include_fields : typing.Optional[bool] - Controls field projection mode. Set to true to include only fields specified in the fields parameter. Set to false to exclude fields specified in the fields parameter. Defaults to true if not specified. - - take : typing.Optional[int] - Maximum number of results to return per page (1-100). Defaults to 50. - - from_ : typing.Optional[str] - Cursor for the next page of results. Use the value from the next field in the previous response. - - sort : typing.Optional[ResourceServerSortFieldEnum] - Field name to sort results by in ascending order only. Defaults to insertion order (oldest first) if not provided. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[ResourceServerSearchResponse, SearchResourceServersResponseContent] - Resource servers successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - "resource-servers/search", - method="GET", - params={ - "q": q, - "parser": parser, - "fields": fields, - "include_fields": include_fields, - "take": take, - "from": from_, - "sort": sort, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - SearchResourceServersResponseContent, - parse_obj_as( - type_=SearchResourceServersResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.resource_servers - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - - async def _get_next(): - return await self.search( - q=q, - parser=parser, - fields=fields, - include_fields=include_fields, - take=take, - from_=_parsed_next, - sort=sort, - request_options=request_options, - ) - - return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 500: - raise InternalServerError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 504: - raise GatewayTimeoutError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def get( - self, - id: str, - *, - include_fields: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[GetResourceServerResponseContent]: - """ - Retrieve API details with the given ID. - - Parameters - ---------- - id : str - ID or audience of the resource server to retrieve. - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetResourceServerResponseContent] - Resource server successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - f"resource-servers/{quote_path_param(id)}", - method="GET", - params={ - "include_fields": include_fields, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetResourceServerResponseContent, - parse_obj_as( - type_=GetResourceServerResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def delete( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Delete an existing API by ID. For more information, read API Settings. - - Parameters - ---------- - id : str - ID or the audience of the resource server to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"resource-servers/{quote_path_param(id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def update( - self, - id: str, - *, - name: typing.Optional[str] = OMIT, - scopes: typing.Optional[typing.Sequence[ResourceServerScope]] = OMIT, - signing_alg: typing.Optional[SigningAlgorithmEnum] = OMIT, - signing_secret: typing.Optional[str] = OMIT, - skip_consent_for_verifiable_first_party_clients: typing.Optional[bool] = OMIT, - allow_offline_access: typing.Optional[bool] = OMIT, - allow_online_access: typing.Optional[bool] = OMIT, - allow_online_access_with_ephemeral_sessions: typing.Optional[bool] = OMIT, - token_lifetime: typing.Optional[int] = OMIT, - token_lifetime_for_anonymous_access_tokens: typing.Optional[int] = OMIT, - token_dialect: typing.Optional[ResourceServerTokenDialectSchemaEnum] = OMIT, - enforce_policies: typing.Optional[bool] = OMIT, - access_token: typing.Optional[ResourceServerAccessToken] = OMIT, - token_encryption: typing.Optional[ResourceServerTokenEncryption] = OMIT, - consent_policy: typing.Optional[ResourceServerConsentPolicyEnum] = OMIT, - require_consent_non_repudiation: typing.Optional[bool] = OMIT, - authorization_details: typing.Optional[typing.Sequence[typing.Any]] = OMIT, - proof_of_possession: typing.Optional[ResourceServerProofOfPossession] = OMIT, - subject_type_authorization: typing.Optional[ResourceServerSubjectTypeAuthorization] = OMIT, - authorization_policy: typing.Optional[ResourceServerAuthorizationPolicy] = OMIT, - agent_subject_claims: typing.Optional[ResourceServerAgentSubjectClaimsSchemaEnum] = OMIT, - type: typing.Optional[ResourceServerTypeEnum] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[UpdateResourceServerResponseContent]: - """ - Change an existing API setting by resource server ID. For more information, read API Settings. - - Parameters - ---------- - id : str - ID or audience of the resource server to update. - - name : typing.Optional[str] - Friendly name for this resource server. Can not contain `<` or `>` characters. - - scopes : typing.Optional[typing.Sequence[ResourceServerScope]] - List of permissions (scopes) that this API uses. - - signing_alg : typing.Optional[SigningAlgorithmEnum] - - signing_secret : typing.Optional[str] - Secret used to sign tokens when using symmetric algorithms (HS256). - - skip_consent_for_verifiable_first_party_clients : typing.Optional[bool] - Whether to skip user consent for applications flagged as first party (true) or not (false). - - allow_offline_access : typing.Optional[bool] - Whether refresh tokens can be issued for this API (true) or not (false). - - allow_online_access : typing.Optional[bool] - Whether Online Refresh Tokens can be issued for this API (true) or not (false). - - allow_online_access_with_ephemeral_sessions : typing.Optional[bool] - Whether Online Refresh Tokens can be issued even when sessions are configured as ephemeral (true) or not (false). - - token_lifetime : typing.Optional[int] - Expiration value (in seconds) for access tokens issued for this API from the token endpoint. - - token_lifetime_for_anonymous_access_tokens : typing.Optional[int] - Expiration value (in seconds) for anonymous-session access tokens issued for this API. - - token_dialect : typing.Optional[ResourceServerTokenDialectSchemaEnum] - - enforce_policies : typing.Optional[bool] - Whether authorization policies are enforced (true) or not enforced (false). - - access_token : typing.Optional[ResourceServerAccessToken] - - token_encryption : typing.Optional[ResourceServerTokenEncryption] - - consent_policy : typing.Optional[ResourceServerConsentPolicyEnum] - - require_consent_non_repudiation : typing.Optional[bool] - When true, the resource server requires every consent approval to be digitally signed, so the approver cannot later deny a consent they granted. When false, consent decisions do not need a signature. Defaults to false. A configured value is still returned even after the related entitlement is disabled. - - authorization_details : typing.Optional[typing.Sequence[typing.Any]] - - proof_of_possession : typing.Optional[ResourceServerProofOfPossession] - - subject_type_authorization : typing.Optional[ResourceServerSubjectTypeAuthorization] - - authorization_policy : typing.Optional[ResourceServerAuthorizationPolicy] - - agent_subject_claims : typing.Optional[ResourceServerAgentSubjectClaimsSchemaEnum] - - type : typing.Optional[ResourceServerTypeEnum] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[UpdateResourceServerResponseContent] - Resource server successfully updated. - """ - _response = await self._client_wrapper.httpx_client.request( - f"resource-servers/{quote_path_param(id)}", - method="PATCH", - json={ - "name": name, - "scopes": convert_and_respect_annotation_metadata( - object_=scopes, annotation=typing.Sequence[ResourceServerScope], direction="write" - ), - "signing_alg": signing_alg, - "signing_secret": signing_secret, - "skip_consent_for_verifiable_first_party_clients": skip_consent_for_verifiable_first_party_clients, - "allow_offline_access": allow_offline_access, - "allow_online_access": allow_online_access, - "allow_online_access_with_ephemeral_sessions": allow_online_access_with_ephemeral_sessions, - "token_lifetime": token_lifetime, - "token_lifetime_for_anonymous_access_tokens": token_lifetime_for_anonymous_access_tokens, - "token_dialect": token_dialect, - "enforce_policies": enforce_policies, - "access_token": convert_and_respect_annotation_metadata( - object_=access_token, annotation=typing.Optional[ResourceServerAccessToken], direction="write" - ), - "token_encryption": convert_and_respect_annotation_metadata( - object_=token_encryption, - annotation=typing.Optional[ResourceServerTokenEncryption], - direction="write", - ), - "consent_policy": consent_policy, - "require_consent_non_repudiation": require_consent_non_repudiation, - "authorization_details": authorization_details, - "proof_of_possession": convert_and_respect_annotation_metadata( - object_=proof_of_possession, - annotation=typing.Optional[ResourceServerProofOfPossession], - direction="write", - ), - "subject_type_authorization": convert_and_respect_annotation_metadata( - object_=subject_type_authorization, - annotation=ResourceServerSubjectTypeAuthorization, - direction="write", - ), - "authorization_policy": convert_and_respect_annotation_metadata( - object_=authorization_policy, - annotation=typing.Optional[ResourceServerAuthorizationPolicy], - direction="write", - ), - "agent_subject_claims": agent_subject_claims, - "type": type, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateResourceServerResponseContent, - parse_obj_as( - type_=UpdateResourceServerResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/risk_assessments/__init__.py b/src/auth0/management/risk_assessments/__init__.py deleted file mode 100644 index 31fcb147..00000000 --- a/src/auth0/management/risk_assessments/__init__.py +++ /dev/null @@ -1,34 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from . import settings -_dynamic_imports: typing.Dict[str, str] = {"settings": ".settings"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - if module_name == f".{attr_name}": - return module - else: - return getattr(module, attr_name) - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["settings"] diff --git a/src/auth0/management/risk_assessments/client.py b/src/auth0/management/risk_assessments/client.py deleted file mode 100644 index 59218b5c..00000000 --- a/src/auth0/management/risk_assessments/client.py +++ /dev/null @@ -1,63 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .raw_client import AsyncRawRiskAssessmentsClient, RawRiskAssessmentsClient - -if typing.TYPE_CHECKING: - from .settings.client import AsyncSettingsClient, SettingsClient - - -class RiskAssessmentsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawRiskAssessmentsClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._settings: typing.Optional[SettingsClient] = None - - @property - def with_raw_response(self) -> RawRiskAssessmentsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawRiskAssessmentsClient - """ - return self._raw_client - - @property - def settings(self): - if self._settings is None: - from .settings.client import SettingsClient # noqa: E402 - - self._settings = SettingsClient(client_wrapper=self._client_wrapper) - return self._settings - - -class AsyncRiskAssessmentsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawRiskAssessmentsClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._settings: typing.Optional[AsyncSettingsClient] = None - - @property - def with_raw_response(self) -> AsyncRawRiskAssessmentsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawRiskAssessmentsClient - """ - return self._raw_client - - @property - def settings(self): - if self._settings is None: - from .settings.client import AsyncSettingsClient # noqa: E402 - - self._settings = AsyncSettingsClient(client_wrapper=self._client_wrapper) - return self._settings diff --git a/src/auth0/management/risk_assessments/raw_client.py b/src/auth0/management/risk_assessments/raw_client.py deleted file mode 100644 index 231cc0b6..00000000 --- a/src/auth0/management/risk_assessments/raw_client.py +++ /dev/null @@ -1,13 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper - - -class RawRiskAssessmentsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - -class AsyncRawRiskAssessmentsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper diff --git a/src/auth0/management/risk_assessments/settings/__init__.py b/src/auth0/management/risk_assessments/settings/__init__.py deleted file mode 100644 index 69fb9ec1..00000000 --- a/src/auth0/management/risk_assessments/settings/__init__.py +++ /dev/null @@ -1,34 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from . import new_device -_dynamic_imports: typing.Dict[str, str] = {"new_device": ".new_device"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - if module_name == f".{attr_name}": - return module - else: - return getattr(module, attr_name) - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["new_device"] diff --git a/src/auth0/management/risk_assessments/settings/client.py b/src/auth0/management/risk_assessments/settings/client.py deleted file mode 100644 index af3585ef..00000000 --- a/src/auth0/management/risk_assessments/settings/client.py +++ /dev/null @@ -1,206 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.request_options import RequestOptions -from ...types.get_risk_assessments_settings_response_content import GetRiskAssessmentsSettingsResponseContent -from ...types.update_risk_assessments_settings_response_content import UpdateRiskAssessmentsSettingsResponseContent -from .raw_client import AsyncRawSettingsClient, RawSettingsClient - -if typing.TYPE_CHECKING: - from .new_device.client import AsyncNewDeviceClient, NewDeviceClient -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class SettingsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawSettingsClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._new_device: typing.Optional[NewDeviceClient] = None - - @property - def with_raw_response(self) -> RawSettingsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawSettingsClient - """ - return self._raw_client - - def get( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetRiskAssessmentsSettingsResponseContent: - """ - Gets the tenant settings for risk assessments - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetRiskAssessmentsSettingsResponseContent - Returning risk assessment settings for the tenant - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.risk_assessments.settings.get() - """ - _response = self._raw_client.get(request_options=request_options) - return _response.data - - def update( - self, *, enabled: bool, request_options: typing.Optional[RequestOptions] = None - ) -> UpdateRiskAssessmentsSettingsResponseContent: - """ - Updates the tenant settings for risk assessments - - Parameters - ---------- - enabled : bool - Whether or not risk assessment is enabled. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateRiskAssessmentsSettingsResponseContent - Returning risk assessment settings for the tenant - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.risk_assessments.settings.update( - enabled=True, - ) - """ - _response = self._raw_client.update(enabled=enabled, request_options=request_options) - return _response.data - - @property - def new_device(self): - if self._new_device is None: - from .new_device.client import NewDeviceClient # noqa: E402 - - self._new_device = NewDeviceClient(client_wrapper=self._client_wrapper) - return self._new_device - - -class AsyncSettingsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawSettingsClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._new_device: typing.Optional[AsyncNewDeviceClient] = None - - @property - def with_raw_response(self) -> AsyncRawSettingsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawSettingsClient - """ - return self._raw_client - - async def get( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetRiskAssessmentsSettingsResponseContent: - """ - Gets the tenant settings for risk assessments - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetRiskAssessmentsSettingsResponseContent - Returning risk assessment settings for the tenant - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.risk_assessments.settings.get() - - - asyncio.run(main()) - """ - _response = await self._raw_client.get(request_options=request_options) - return _response.data - - async def update( - self, *, enabled: bool, request_options: typing.Optional[RequestOptions] = None - ) -> UpdateRiskAssessmentsSettingsResponseContent: - """ - Updates the tenant settings for risk assessments - - Parameters - ---------- - enabled : bool - Whether or not risk assessment is enabled. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateRiskAssessmentsSettingsResponseContent - Returning risk assessment settings for the tenant - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.risk_assessments.settings.update( - enabled=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.update(enabled=enabled, request_options=request_options) - return _response.data - - @property - def new_device(self): - if self._new_device is None: - from .new_device.client import AsyncNewDeviceClient # noqa: E402 - - self._new_device = AsyncNewDeviceClient(client_wrapper=self._client_wrapper) - return self._new_device diff --git a/src/auth0/management/risk_assessments/settings/new_device/__init__.py b/src/auth0/management/risk_assessments/settings/new_device/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/risk_assessments/settings/new_device/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/risk_assessments/settings/new_device/client.py b/src/auth0/management/risk_assessments/settings/new_device/client.py deleted file mode 100644 index 3449488a..00000000 --- a/src/auth0/management/risk_assessments/settings/new_device/client.py +++ /dev/null @@ -1,186 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ....core.request_options import RequestOptions -from ....types.get_risk_assessments_settings_new_device_response_content import ( - GetRiskAssessmentsSettingsNewDeviceResponseContent, -) -from ....types.update_risk_assessments_settings_new_device_response_content import ( - UpdateRiskAssessmentsSettingsNewDeviceResponseContent, -) -from .raw_client import AsyncRawNewDeviceClient, RawNewDeviceClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class NewDeviceClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawNewDeviceClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawNewDeviceClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawNewDeviceClient - """ - return self._raw_client - - def get( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetRiskAssessmentsSettingsNewDeviceResponseContent: - """ - Gets the risk assessment settings for the new device assessor - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetRiskAssessmentsSettingsNewDeviceResponseContent - Returning risk assessment settings for new devices - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.risk_assessments.settings.new_device.get() - """ - _response = self._raw_client.get(request_options=request_options) - return _response.data - - def update( - self, *, remember_for: int, request_options: typing.Optional[RequestOptions] = None - ) -> UpdateRiskAssessmentsSettingsNewDeviceResponseContent: - """ - Updates the risk assessment settings for the new device assessor - - Parameters - ---------- - remember_for : int - Length of time to remember devices for, in days. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateRiskAssessmentsSettingsNewDeviceResponseContent - Returning risk assessment settings for new devices - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.risk_assessments.settings.new_device.update( - remember_for=1, - ) - """ - _response = self._raw_client.update(remember_for=remember_for, request_options=request_options) - return _response.data - - -class AsyncNewDeviceClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawNewDeviceClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawNewDeviceClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawNewDeviceClient - """ - return self._raw_client - - async def get( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetRiskAssessmentsSettingsNewDeviceResponseContent: - """ - Gets the risk assessment settings for the new device assessor - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetRiskAssessmentsSettingsNewDeviceResponseContent - Returning risk assessment settings for new devices - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.risk_assessments.settings.new_device.get() - - - asyncio.run(main()) - """ - _response = await self._raw_client.get(request_options=request_options) - return _response.data - - async def update( - self, *, remember_for: int, request_options: typing.Optional[RequestOptions] = None - ) -> UpdateRiskAssessmentsSettingsNewDeviceResponseContent: - """ - Updates the risk assessment settings for the new device assessor - - Parameters - ---------- - remember_for : int - Length of time to remember devices for, in days. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateRiskAssessmentsSettingsNewDeviceResponseContent - Returning risk assessment settings for new devices - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.risk_assessments.settings.new_device.update( - remember_for=1, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.update(remember_for=remember_for, request_options=request_options) - return _response.data diff --git a/src/auth0/management/risk_assessments/settings/new_device/raw_client.py b/src/auth0/management/risk_assessments/settings/new_device/raw_client.py deleted file mode 100644 index c223baa6..00000000 --- a/src/auth0/management/risk_assessments/settings/new_device/raw_client.py +++ /dev/null @@ -1,414 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ....core.api_error import ApiError -from ....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ....core.http_response import AsyncHttpResponse, HttpResponse -from ....core.parse_error import ParsingError -from ....core.pydantic_utilities import parse_obj_as -from ....core.request_options import RequestOptions -from ....errors.bad_request_error import BadRequestError -from ....errors.forbidden_error import ForbiddenError -from ....errors.not_found_error import NotFoundError -from ....errors.too_many_requests_error import TooManyRequestsError -from ....errors.unauthorized_error import UnauthorizedError -from ....types.get_risk_assessments_settings_new_device_response_content import ( - GetRiskAssessmentsSettingsNewDeviceResponseContent, -) -from ....types.update_risk_assessments_settings_new_device_response_content import ( - UpdateRiskAssessmentsSettingsNewDeviceResponseContent, -) -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawNewDeviceClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def get( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetRiskAssessmentsSettingsNewDeviceResponseContent]: - """ - Gets the risk assessment settings for the new device assessor - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetRiskAssessmentsSettingsNewDeviceResponseContent] - Returning risk assessment settings for new devices - """ - _response = self._client_wrapper.httpx_client.request( - "risk-assessments/settings/new-device", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetRiskAssessmentsSettingsNewDeviceResponseContent, - parse_obj_as( - type_=GetRiskAssessmentsSettingsNewDeviceResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def update( - self, *, remember_for: int, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[UpdateRiskAssessmentsSettingsNewDeviceResponseContent]: - """ - Updates the risk assessment settings for the new device assessor - - Parameters - ---------- - remember_for : int - Length of time to remember devices for, in days. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[UpdateRiskAssessmentsSettingsNewDeviceResponseContent] - Returning risk assessment settings for new devices - """ - _response = self._client_wrapper.httpx_client.request( - "risk-assessments/settings/new-device", - method="PATCH", - json={ - "remember_for": remember_for, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateRiskAssessmentsSettingsNewDeviceResponseContent, - parse_obj_as( - type_=UpdateRiskAssessmentsSettingsNewDeviceResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawNewDeviceClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def get( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetRiskAssessmentsSettingsNewDeviceResponseContent]: - """ - Gets the risk assessment settings for the new device assessor - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetRiskAssessmentsSettingsNewDeviceResponseContent] - Returning risk assessment settings for new devices - """ - _response = await self._client_wrapper.httpx_client.request( - "risk-assessments/settings/new-device", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetRiskAssessmentsSettingsNewDeviceResponseContent, - parse_obj_as( - type_=GetRiskAssessmentsSettingsNewDeviceResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def update( - self, *, remember_for: int, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[UpdateRiskAssessmentsSettingsNewDeviceResponseContent]: - """ - Updates the risk assessment settings for the new device assessor - - Parameters - ---------- - remember_for : int - Length of time to remember devices for, in days. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[UpdateRiskAssessmentsSettingsNewDeviceResponseContent] - Returning risk assessment settings for new devices - """ - _response = await self._client_wrapper.httpx_client.request( - "risk-assessments/settings/new-device", - method="PATCH", - json={ - "remember_for": remember_for, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateRiskAssessmentsSettingsNewDeviceResponseContent, - parse_obj_as( - type_=UpdateRiskAssessmentsSettingsNewDeviceResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/risk_assessments/settings/raw_client.py b/src/auth0/management/risk_assessments/settings/raw_client.py deleted file mode 100644 index 7dff208d..00000000 --- a/src/auth0/management/risk_assessments/settings/raw_client.py +++ /dev/null @@ -1,410 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ...core.api_error import ApiError -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.http_response import AsyncHttpResponse, HttpResponse -from ...core.parse_error import ParsingError -from ...core.pydantic_utilities import parse_obj_as -from ...core.request_options import RequestOptions -from ...errors.bad_request_error import BadRequestError -from ...errors.forbidden_error import ForbiddenError -from ...errors.not_found_error import NotFoundError -from ...errors.too_many_requests_error import TooManyRequestsError -from ...errors.unauthorized_error import UnauthorizedError -from ...types.get_risk_assessments_settings_response_content import GetRiskAssessmentsSettingsResponseContent -from ...types.update_risk_assessments_settings_response_content import UpdateRiskAssessmentsSettingsResponseContent -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawSettingsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def get( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetRiskAssessmentsSettingsResponseContent]: - """ - Gets the tenant settings for risk assessments - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetRiskAssessmentsSettingsResponseContent] - Returning risk assessment settings for the tenant - """ - _response = self._client_wrapper.httpx_client.request( - "risk-assessments/settings", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetRiskAssessmentsSettingsResponseContent, - parse_obj_as( - type_=GetRiskAssessmentsSettingsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def update( - self, *, enabled: bool, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[UpdateRiskAssessmentsSettingsResponseContent]: - """ - Updates the tenant settings for risk assessments - - Parameters - ---------- - enabled : bool - Whether or not risk assessment is enabled. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[UpdateRiskAssessmentsSettingsResponseContent] - Returning risk assessment settings for the tenant - """ - _response = self._client_wrapper.httpx_client.request( - "risk-assessments/settings", - method="PATCH", - json={ - "enabled": enabled, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateRiskAssessmentsSettingsResponseContent, - parse_obj_as( - type_=UpdateRiskAssessmentsSettingsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawSettingsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def get( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetRiskAssessmentsSettingsResponseContent]: - """ - Gets the tenant settings for risk assessments - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetRiskAssessmentsSettingsResponseContent] - Returning risk assessment settings for the tenant - """ - _response = await self._client_wrapper.httpx_client.request( - "risk-assessments/settings", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetRiskAssessmentsSettingsResponseContent, - parse_obj_as( - type_=GetRiskAssessmentsSettingsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def update( - self, *, enabled: bool, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[UpdateRiskAssessmentsSettingsResponseContent]: - """ - Updates the tenant settings for risk assessments - - Parameters - ---------- - enabled : bool - Whether or not risk assessment is enabled. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[UpdateRiskAssessmentsSettingsResponseContent] - Returning risk assessment settings for the tenant - """ - _response = await self._client_wrapper.httpx_client.request( - "risk-assessments/settings", - method="PATCH", - json={ - "enabled": enabled, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateRiskAssessmentsSettingsResponseContent, - parse_obj_as( - type_=UpdateRiskAssessmentsSettingsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/roles/__init__.py b/src/auth0/management/roles/__init__.py deleted file mode 100644 index 390349e1..00000000 --- a/src/auth0/management/roles/__init__.py +++ /dev/null @@ -1,34 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from . import groups, permissions, users -_dynamic_imports: typing.Dict[str, str] = {"groups": ".groups", "permissions": ".permissions", "users": ".users"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - if module_name == f".{attr_name}": - return module - else: - return getattr(module, attr_name) - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["groups", "permissions", "users"] diff --git a/src/auth0/management/roles/client.py b/src/auth0/management/roles/client.py deleted file mode 100644 index 91e5ad8e..00000000 --- a/src/auth0/management/roles/client.py +++ /dev/null @@ -1,619 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.pagination import AsyncPager, SyncPager -from ..core.request_options import RequestOptions -from ..types.create_role_response_content import CreateRoleResponseContent -from ..types.get_role_response_content import GetRoleResponseContent -from ..types.list_roles_offset_paginated_response_content import ListRolesOffsetPaginatedResponseContent -from ..types.role import Role -from ..types.role_owner_id_filter import RoleOwnerIdFilter -from ..types.role_type_enum import RoleTypeEnum -from ..types.update_role_response_content import UpdateRoleResponseContent -from .raw_client import AsyncRawRolesClient, RawRolesClient - -if typing.TYPE_CHECKING: - from .groups.client import AsyncGroupsClient, GroupsClient - from .permissions.client import AsyncPermissionsClient, PermissionsClient - from .users.client import AsyncUsersClient, UsersClient -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RolesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawRolesClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._groups: typing.Optional[GroupsClient] = None - self._permissions: typing.Optional[PermissionsClient] = None - self._users: typing.Optional[UsersClient] = None - - @property - def with_raw_response(self) -> RawRolesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawRolesClient - """ - return self._raw_client - - def list( - self, - *, - per_page: typing.Optional[int] = 50, - page: typing.Optional[int] = 0, - include_totals: typing.Optional[bool] = True, - name_filter: typing.Optional[str] = None, - type: typing.Optional[RoleTypeEnum] = None, - owner_id: typing.Optional[RoleOwnerIdFilter] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[Role, ListRolesOffsetPaginatedResponseContent]: - """ - Retrieve a list of roles. Includes roles created in your tenant and, when `owner_id=auth0` is supplied, Auth0-managed System Roles. - - **Note**: The returned list does not include standard roles available for tenant members, such as Admin or Support Access. - - Parameters - ---------- - per_page : typing.Optional[int] - Number of results per page. Defaults to 50. - - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - name_filter : typing.Optional[str] - Optional filter on name (case-insensitive). - - type : typing.Optional[RoleTypeEnum] - Optional filter on the type of the role - - owner_id : typing.Optional[RoleOwnerIdFilter] - Filter organization-level roles by owner ID. Use an organization ID to filter that organization's roles, or "auth0" to retrieve Auth0-managed System Roles. Required when type is "organization". - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[Role, ListRolesOffsetPaginatedResponseContent] - Roles successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.roles.list( - per_page=1, - page=1, - include_totals=True, - name_filter="name_filter", - type="tenant", - owner_id="owner_id", - ) - for item in response: - yield item - # alternatively, you can paginate page-by-page - for page in response.iter_pages(): - yield page - """ - return self._raw_client.list( - per_page=per_page, - page=page, - include_totals=include_totals, - name_filter=name_filter, - type=type, - owner_id=owner_id, - request_options=request_options, - ) - - def create( - self, - *, - name: str, - description: typing.Optional[str] = OMIT, - type: typing.Optional[RoleTypeEnum] = OMIT, - owner_id: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateRoleResponseContent: - """ - Create a user role for [Role-Based Access Control](https://auth0.com/docs/manage-users/access-control/rbac). - - **Note**: New roles are not associated with any permissions by default. To assign existing permissions to your role, review Associate Permissions with a Role. To create new permissions, review Add API Permissions. - - Parameters - ---------- - name : str - Name of the role. - - description : typing.Optional[str] - Description of the role. - - type : typing.Optional[RoleTypeEnum] - The type of the role. Defaults to tenant. - - owner_id : typing.Optional[str] - The ID of the organization that owns this role. Required when type is "organization". - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateRoleResponseContent - Role successfully created. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.roles.create( - name="name", - ) - """ - _response = self._raw_client.create( - name=name, description=description, type=type, owner_id=owner_id, request_options=request_options - ) - return _response.data - - def get(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> GetRoleResponseContent: - """ - Retrieve details about a specific [user role](https://auth0.com/docs/manage-users/access-control/rbac) specified by ID. - - Parameters - ---------- - id : str - ID of the role to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetRoleResponseContent - Role successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.roles.get( - id="id", - ) - """ - _response = self._raw_client.get(id, request_options=request_options) - return _response.data - - def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete a specific [user role](https://auth0.com/docs/manage-users/access-control/rbac) from your tenant. Once deleted, it is removed from any user who was previously assigned that role. This action cannot be undone. - - Parameters - ---------- - id : str - ID of the role to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.roles.delete( - id="id", - ) - """ - _response = self._raw_client.delete(id, request_options=request_options) - return _response.data - - def update( - self, - id: str, - *, - name: typing.Optional[str] = OMIT, - description: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateRoleResponseContent: - """ - Modify the details of a specific [user role](https://auth0.com/docs/manage-users/access-control/rbac) specified by ID. - - Parameters - ---------- - id : str - ID of the role to update. - - name : typing.Optional[str] - Name of this role. - - description : typing.Optional[str] - Description of this role. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateRoleResponseContent - Role successfully updated. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.roles.update( - id="id", - ) - """ - _response = self._raw_client.update(id, name=name, description=description, request_options=request_options) - return _response.data - - @property - def groups(self): - if self._groups is None: - from .groups.client import GroupsClient # noqa: E402 - - self._groups = GroupsClient(client_wrapper=self._client_wrapper) - return self._groups - - @property - def permissions(self): - if self._permissions is None: - from .permissions.client import PermissionsClient # noqa: E402 - - self._permissions = PermissionsClient(client_wrapper=self._client_wrapper) - return self._permissions - - @property - def users(self): - if self._users is None: - from .users.client import UsersClient # noqa: E402 - - self._users = UsersClient(client_wrapper=self._client_wrapper) - return self._users - - -class AsyncRolesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawRolesClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._groups: typing.Optional[AsyncGroupsClient] = None - self._permissions: typing.Optional[AsyncPermissionsClient] = None - self._users: typing.Optional[AsyncUsersClient] = None - - @property - def with_raw_response(self) -> AsyncRawRolesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawRolesClient - """ - return self._raw_client - - async def list( - self, - *, - per_page: typing.Optional[int] = 50, - page: typing.Optional[int] = 0, - include_totals: typing.Optional[bool] = True, - name_filter: typing.Optional[str] = None, - type: typing.Optional[RoleTypeEnum] = None, - owner_id: typing.Optional[RoleOwnerIdFilter] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[Role, ListRolesOffsetPaginatedResponseContent]: - """ - Retrieve a list of roles. Includes roles created in your tenant and, when `owner_id=auth0` is supplied, Auth0-managed System Roles. - - **Note**: The returned list does not include standard roles available for tenant members, such as Admin or Support Access. - - Parameters - ---------- - per_page : typing.Optional[int] - Number of results per page. Defaults to 50. - - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - name_filter : typing.Optional[str] - Optional filter on name (case-insensitive). - - type : typing.Optional[RoleTypeEnum] - Optional filter on the type of the role - - owner_id : typing.Optional[RoleOwnerIdFilter] - Filter organization-level roles by owner ID. Use an organization ID to filter that organization's roles, or "auth0" to retrieve Auth0-managed System Roles. Required when type is "organization". - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[Role, ListRolesOffsetPaginatedResponseContent] - Roles successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.roles.list( - per_page=1, - page=1, - include_totals=True, - name_filter="name_filter", - type="tenant", - owner_id="owner_id", - ) - async for item in response: - yield item - - # alternatively, you can paginate page-by-page - async for page in response.iter_pages(): - yield page - - - asyncio.run(main()) - """ - return await self._raw_client.list( - per_page=per_page, - page=page, - include_totals=include_totals, - name_filter=name_filter, - type=type, - owner_id=owner_id, - request_options=request_options, - ) - - async def create( - self, - *, - name: str, - description: typing.Optional[str] = OMIT, - type: typing.Optional[RoleTypeEnum] = OMIT, - owner_id: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateRoleResponseContent: - """ - Create a user role for [Role-Based Access Control](https://auth0.com/docs/manage-users/access-control/rbac). - - **Note**: New roles are not associated with any permissions by default. To assign existing permissions to your role, review Associate Permissions with a Role. To create new permissions, review Add API Permissions. - - Parameters - ---------- - name : str - Name of the role. - - description : typing.Optional[str] - Description of the role. - - type : typing.Optional[RoleTypeEnum] - The type of the role. Defaults to tenant. - - owner_id : typing.Optional[str] - The ID of the organization that owns this role. Required when type is "organization". - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateRoleResponseContent - Role successfully created. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.roles.create( - name="name", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - name=name, description=description, type=type, owner_id=owner_id, request_options=request_options - ) - return _response.data - - async def get(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> GetRoleResponseContent: - """ - Retrieve details about a specific [user role](https://auth0.com/docs/manage-users/access-control/rbac) specified by ID. - - Parameters - ---------- - id : str - ID of the role to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetRoleResponseContent - Role successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.roles.get( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.get(id, request_options=request_options) - return _response.data - - async def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete a specific [user role](https://auth0.com/docs/manage-users/access-control/rbac) from your tenant. Once deleted, it is removed from any user who was previously assigned that role. This action cannot be undone. - - Parameters - ---------- - id : str - ID of the role to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.roles.delete( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete(id, request_options=request_options) - return _response.data - - async def update( - self, - id: str, - *, - name: typing.Optional[str] = OMIT, - description: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateRoleResponseContent: - """ - Modify the details of a specific [user role](https://auth0.com/docs/manage-users/access-control/rbac) specified by ID. - - Parameters - ---------- - id : str - ID of the role to update. - - name : typing.Optional[str] - Name of this role. - - description : typing.Optional[str] - Description of this role. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateRoleResponseContent - Role successfully updated. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.roles.update( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.update( - id, name=name, description=description, request_options=request_options - ) - return _response.data - - @property - def groups(self): - if self._groups is None: - from .groups.client import AsyncGroupsClient # noqa: E402 - - self._groups = AsyncGroupsClient(client_wrapper=self._client_wrapper) - return self._groups - - @property - def permissions(self): - if self._permissions is None: - from .permissions.client import AsyncPermissionsClient # noqa: E402 - - self._permissions = AsyncPermissionsClient(client_wrapper=self._client_wrapper) - return self._permissions - - @property - def users(self): - if self._users is None: - from .users.client import AsyncUsersClient # noqa: E402 - - self._users = AsyncUsersClient(client_wrapper=self._client_wrapper) - return self._users diff --git a/src/auth0/management/roles/groups/__init__.py b/src/auth0/management/roles/groups/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/roles/groups/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/roles/groups/client.py b/src/auth0/management/roles/groups/client.py deleted file mode 100644 index 00d7b0fb..00000000 --- a/src/auth0/management/roles/groups/client.py +++ /dev/null @@ -1,314 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.pagination import AsyncPager, SyncPager -from ...core.request_options import RequestOptions -from ...types.group import Group -from ...types.list_role_groups_response_content import ListRoleGroupsResponseContent -from .raw_client import AsyncRawGroupsClient, RawGroupsClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class GroupsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawGroupsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawGroupsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawGroupsClient - """ - return self._raw_client - - def get( - self, - id: str, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[Group, ListRoleGroupsResponseContent]: - """ - Lists the groups to which the specified role is assigned. - - Parameters - ---------- - id : str - Unique identifier for the role (service-generated). - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[Group, ListRoleGroupsResponseContent] - Role's groups successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.roles.groups.get( - id="id", - from_="from", - take=1, - ) - for item in response: - yield item - # alternatively, you can paginate page-by-page - for page in response.iter_pages(): - yield page - """ - return self._raw_client.get(id, from_=from_, take=take, request_options=request_options) - - def create( - self, id: str, *, groups: typing.Sequence[str], request_options: typing.Optional[RequestOptions] = None - ) -> None: - """ - Assign one or more groups to a specified role. - - Parameters - ---------- - id : str - Unique identifier for the role (service-generated). - - groups : typing.Sequence[str] - Array of group IDs to assign to the role. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.roles.groups.create( - id="id", - groups=["groups"], - ) - """ - _response = self._raw_client.create(id, groups=groups, request_options=request_options) - return _response.data - - def delete( - self, id: str, *, groups: typing.Sequence[str], request_options: typing.Optional[RequestOptions] = None - ) -> None: - """ - Unassign one or more groups from a specified role. - - Parameters - ---------- - id : str - Unique identifier for the role (service-generated). - - groups : typing.Sequence[str] - Array of group IDs to remove from the role. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.roles.groups.delete( - id="id", - groups=["groups"], - ) - """ - _response = self._raw_client.delete(id, groups=groups, request_options=request_options) - return _response.data - - -class AsyncGroupsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawGroupsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawGroupsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawGroupsClient - """ - return self._raw_client - - async def get( - self, - id: str, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[Group, ListRoleGroupsResponseContent]: - """ - Lists the groups to which the specified role is assigned. - - Parameters - ---------- - id : str - Unique identifier for the role (service-generated). - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[Group, ListRoleGroupsResponseContent] - Role's groups successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.roles.groups.get( - id="id", - from_="from", - take=1, - ) - async for item in response: - yield item - - # alternatively, you can paginate page-by-page - async for page in response.iter_pages(): - yield page - - - asyncio.run(main()) - """ - return await self._raw_client.get(id, from_=from_, take=take, request_options=request_options) - - async def create( - self, id: str, *, groups: typing.Sequence[str], request_options: typing.Optional[RequestOptions] = None - ) -> None: - """ - Assign one or more groups to a specified role. - - Parameters - ---------- - id : str - Unique identifier for the role (service-generated). - - groups : typing.Sequence[str] - Array of group IDs to assign to the role. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.roles.groups.create( - id="id", - groups=["groups"], - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create(id, groups=groups, request_options=request_options) - return _response.data - - async def delete( - self, id: str, *, groups: typing.Sequence[str], request_options: typing.Optional[RequestOptions] = None - ) -> None: - """ - Unassign one or more groups from a specified role. - - Parameters - ---------- - id : str - Unique identifier for the role (service-generated). - - groups : typing.Sequence[str] - Array of group IDs to remove from the role. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.roles.groups.delete( - id="id", - groups=["groups"], - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete(id, groups=groups, request_options=request_options) - return _response.data diff --git a/src/auth0/management/roles/groups/raw_client.py b/src/auth0/management/roles/groups/raw_client.py deleted file mode 100644 index 633eca7d..00000000 --- a/src/auth0/management/roles/groups/raw_client.py +++ /dev/null @@ -1,681 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ...core.api_error import ApiError -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.http_response import AsyncHttpResponse, HttpResponse -from ...core.jsonable_encoder import quote_path_param -from ...core.pagination import AsyncPager, SyncPager -from ...core.parse_error import ParsingError -from ...core.pydantic_utilities import parse_obj_as -from ...core.request_options import RequestOptions -from ...errors.bad_request_error import BadRequestError -from ...errors.forbidden_error import ForbiddenError -from ...errors.not_found_error import NotFoundError -from ...errors.too_many_requests_error import TooManyRequestsError -from ...errors.unauthorized_error import UnauthorizedError -from ...types.group import Group -from ...types.list_role_groups_response_content import ListRoleGroupsResponseContent -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawGroupsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def get( - self, - id: str, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[Group, ListRoleGroupsResponseContent]: - """ - Lists the groups to which the specified role is assigned. - - Parameters - ---------- - id : str - Unique identifier for the role (service-generated). - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[Group, ListRoleGroupsResponseContent] - Role's groups successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - f"roles/{quote_path_param(id)}/groups", - method="GET", - params={ - "from": from_, - "take": take, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListRoleGroupsResponseContent, - parse_obj_as( - type_=ListRoleGroupsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.groups - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - _get_next = lambda: self.get( - id, - from_=_parsed_next, - take=take, - request_options=request_options, - ) - return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, id: str, *, groups: typing.Sequence[str], request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[None]: - """ - Assign one or more groups to a specified role. - - Parameters - ---------- - id : str - Unique identifier for the role (service-generated). - - groups : typing.Sequence[str] - Array of group IDs to assign to the role. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"roles/{quote_path_param(id)}/groups", - method="POST", - json={ - "groups": groups, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def delete( - self, id: str, *, groups: typing.Sequence[str], request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[None]: - """ - Unassign one or more groups from a specified role. - - Parameters - ---------- - id : str - Unique identifier for the role (service-generated). - - groups : typing.Sequence[str] - Array of group IDs to remove from the role. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"roles/{quote_path_param(id)}/groups", - method="DELETE", - json={ - "groups": groups, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawGroupsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def get( - self, - id: str, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[Group, ListRoleGroupsResponseContent]: - """ - Lists the groups to which the specified role is assigned. - - Parameters - ---------- - id : str - Unique identifier for the role (service-generated). - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[Group, ListRoleGroupsResponseContent] - Role's groups successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - f"roles/{quote_path_param(id)}/groups", - method="GET", - params={ - "from": from_, - "take": take, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListRoleGroupsResponseContent, - parse_obj_as( - type_=ListRoleGroupsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.groups - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - - async def _get_next(): - return await self.get( - id, - from_=_parsed_next, - take=take, - request_options=request_options, - ) - - return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, id: str, *, groups: typing.Sequence[str], request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Assign one or more groups to a specified role. - - Parameters - ---------- - id : str - Unique identifier for the role (service-generated). - - groups : typing.Sequence[str] - Array of group IDs to assign to the role. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"roles/{quote_path_param(id)}/groups", - method="POST", - json={ - "groups": groups, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def delete( - self, id: str, *, groups: typing.Sequence[str], request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Unassign one or more groups from a specified role. - - Parameters - ---------- - id : str - Unique identifier for the role (service-generated). - - groups : typing.Sequence[str] - Array of group IDs to remove from the role. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"roles/{quote_path_param(id)}/groups", - method="DELETE", - json={ - "groups": groups, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/roles/permissions/__init__.py b/src/auth0/management/roles/permissions/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/roles/permissions/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/roles/permissions/client.py b/src/auth0/management/roles/permissions/client.py deleted file mode 100644 index 60809394..00000000 --- a/src/auth0/management/roles/permissions/client.py +++ /dev/null @@ -1,367 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.pagination import AsyncPager, SyncPager -from ...core.request_options import RequestOptions -from ...types.list_role_permissions_offset_paginated_response_content import ( - ListRolePermissionsOffsetPaginatedResponseContent, -) -from ...types.permission_request_payload import PermissionRequestPayload -from ...types.permissions_response_payload import PermissionsResponsePayload -from .raw_client import AsyncRawPermissionsClient, RawPermissionsClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class PermissionsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawPermissionsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawPermissionsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawPermissionsClient - """ - return self._raw_client - - def list( - self, - id: str, - *, - per_page: typing.Optional[int] = 50, - page: typing.Optional[int] = 0, - include_totals: typing.Optional[bool] = True, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[PermissionsResponsePayload, ListRolePermissionsOffsetPaginatedResponseContent]: - """ - Retrieve detailed list (name, description, resource server) of permissions granted by a specified user role. - - Parameters - ---------- - id : str - ID of the role to list granted permissions. - - per_page : typing.Optional[int] - Number of results per page. Defaults to 50. - - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[PermissionsResponsePayload, ListRolePermissionsOffsetPaginatedResponseContent] - Role permissions successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.roles.permissions.list( - id="id", - per_page=1, - page=1, - include_totals=True, - ) - for item in response: - yield item - # alternatively, you can paginate page-by-page - for page in response.iter_pages(): - yield page - """ - return self._raw_client.list( - id, per_page=per_page, page=page, include_totals=include_totals, request_options=request_options - ) - - def add( - self, - id: str, - *, - permissions: typing.Sequence[PermissionRequestPayload], - request_options: typing.Optional[RequestOptions] = None, - ) -> None: - """ - Add one or more [permissions](https://auth0.com/docs/manage-users/access-control/configure-core-rbac/manage-permissions) to a specified user role. - - Parameters - ---------- - id : str - ID of the role to add permissions to. - - permissions : typing.Sequence[PermissionRequestPayload] - array of resource_server_identifier, permission_name pairs. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0, PermissionRequestPayload - - client = Auth0( - token="YOUR_TOKEN", - ) - client.roles.permissions.add( - id="id", - permissions=[ - PermissionRequestPayload( - resource_server_identifier="resource_server_identifier", - permission_name="permission_name", - ) - ], - ) - """ - _response = self._raw_client.add(id, permissions=permissions, request_options=request_options) - return _response.data - - def delete( - self, - id: str, - *, - permissions: typing.Sequence[PermissionRequestPayload], - request_options: typing.Optional[RequestOptions] = None, - ) -> None: - """ - Remove one or more [permissions](https://auth0.com/docs/manage-users/access-control/configure-core-rbac/manage-permissions) from a specified user role. - - Parameters - ---------- - id : str - ID of the role to remove permissions from. - - permissions : typing.Sequence[PermissionRequestPayload] - array of resource_server_identifier, permission_name pairs. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0, PermissionRequestPayload - - client = Auth0( - token="YOUR_TOKEN", - ) - client.roles.permissions.delete( - id="id", - permissions=[ - PermissionRequestPayload( - resource_server_identifier="resource_server_identifier", - permission_name="permission_name", - ) - ], - ) - """ - _response = self._raw_client.delete(id, permissions=permissions, request_options=request_options) - return _response.data - - -class AsyncPermissionsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawPermissionsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawPermissionsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawPermissionsClient - """ - return self._raw_client - - async def list( - self, - id: str, - *, - per_page: typing.Optional[int] = 50, - page: typing.Optional[int] = 0, - include_totals: typing.Optional[bool] = True, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[PermissionsResponsePayload, ListRolePermissionsOffsetPaginatedResponseContent]: - """ - Retrieve detailed list (name, description, resource server) of permissions granted by a specified user role. - - Parameters - ---------- - id : str - ID of the role to list granted permissions. - - per_page : typing.Optional[int] - Number of results per page. Defaults to 50. - - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[PermissionsResponsePayload, ListRolePermissionsOffsetPaginatedResponseContent] - Role permissions successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.roles.permissions.list( - id="id", - per_page=1, - page=1, - include_totals=True, - ) - async for item in response: - yield item - - # alternatively, you can paginate page-by-page - async for page in response.iter_pages(): - yield page - - - asyncio.run(main()) - """ - return await self._raw_client.list( - id, per_page=per_page, page=page, include_totals=include_totals, request_options=request_options - ) - - async def add( - self, - id: str, - *, - permissions: typing.Sequence[PermissionRequestPayload], - request_options: typing.Optional[RequestOptions] = None, - ) -> None: - """ - Add one or more [permissions](https://auth0.com/docs/manage-users/access-control/configure-core-rbac/manage-permissions) to a specified user role. - - Parameters - ---------- - id : str - ID of the role to add permissions to. - - permissions : typing.Sequence[PermissionRequestPayload] - array of resource_server_identifier, permission_name pairs. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0, PermissionRequestPayload - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.roles.permissions.add( - id="id", - permissions=[ - PermissionRequestPayload( - resource_server_identifier="resource_server_identifier", - permission_name="permission_name", - ) - ], - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.add(id, permissions=permissions, request_options=request_options) - return _response.data - - async def delete( - self, - id: str, - *, - permissions: typing.Sequence[PermissionRequestPayload], - request_options: typing.Optional[RequestOptions] = None, - ) -> None: - """ - Remove one or more [permissions](https://auth0.com/docs/manage-users/access-control/configure-core-rbac/manage-permissions) from a specified user role. - - Parameters - ---------- - id : str - ID of the role to remove permissions from. - - permissions : typing.Sequence[PermissionRequestPayload] - array of resource_server_identifier, permission_name pairs. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0, PermissionRequestPayload - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.roles.permissions.delete( - id="id", - permissions=[ - PermissionRequestPayload( - resource_server_identifier="resource_server_identifier", - permission_name="permission_name", - ) - ], - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete(id, permissions=permissions, request_options=request_options) - return _response.data diff --git a/src/auth0/management/roles/permissions/raw_client.py b/src/auth0/management/roles/permissions/raw_client.py deleted file mode 100644 index 7e2ebfe3..00000000 --- a/src/auth0/management/roles/permissions/raw_client.py +++ /dev/null @@ -1,701 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ...core.api_error import ApiError -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.http_response import AsyncHttpResponse, HttpResponse -from ...core.jsonable_encoder import quote_path_param -from ...core.pagination import AsyncPager, SyncPager -from ...core.parse_error import ParsingError -from ...core.pydantic_utilities import parse_obj_as -from ...core.request_options import RequestOptions -from ...core.serialization import convert_and_respect_annotation_metadata -from ...errors.bad_request_error import BadRequestError -from ...errors.forbidden_error import ForbiddenError -from ...errors.not_found_error import NotFoundError -from ...errors.too_many_requests_error import TooManyRequestsError -from ...errors.unauthorized_error import UnauthorizedError -from ...types.list_role_permissions_offset_paginated_response_content import ( - ListRolePermissionsOffsetPaginatedResponseContent, -) -from ...types.permission_request_payload import PermissionRequestPayload -from ...types.permissions_response_payload import PermissionsResponsePayload -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawPermissionsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - id: str, - *, - per_page: typing.Optional[int] = 50, - page: typing.Optional[int] = 0, - include_totals: typing.Optional[bool] = True, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[PermissionsResponsePayload, ListRolePermissionsOffsetPaginatedResponseContent]: - """ - Retrieve detailed list (name, description, resource server) of permissions granted by a specified user role. - - Parameters - ---------- - id : str - ID of the role to list granted permissions. - - per_page : typing.Optional[int] - Number of results per page. Defaults to 50. - - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[PermissionsResponsePayload, ListRolePermissionsOffsetPaginatedResponseContent] - Role permissions successfully retrieved. - """ - page = page if page is not None else 0 - - _response = self._client_wrapper.httpx_client.request( - f"roles/{quote_path_param(id)}/permissions", - method="GET", - params={ - "per_page": per_page, - "page": page, - "include_totals": include_totals, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListRolePermissionsOffsetPaginatedResponseContent, - parse_obj_as( - type_=ListRolePermissionsOffsetPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.permissions - _has_next = len(_items or []) > 0 - _get_next = lambda: self.list( - id, - per_page=per_page, - page=page + 1, - include_totals=include_totals, - request_options=request_options, - ) - return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def add( - self, - id: str, - *, - permissions: typing.Sequence[PermissionRequestPayload], - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[None]: - """ - Add one or more [permissions](https://auth0.com/docs/manage-users/access-control/configure-core-rbac/manage-permissions) to a specified user role. - - Parameters - ---------- - id : str - ID of the role to add permissions to. - - permissions : typing.Sequence[PermissionRequestPayload] - array of resource_server_identifier, permission_name pairs. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"roles/{quote_path_param(id)}/permissions", - method="POST", - json={ - "permissions": convert_and_respect_annotation_metadata( - object_=permissions, annotation=typing.Sequence[PermissionRequestPayload], direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def delete( - self, - id: str, - *, - permissions: typing.Sequence[PermissionRequestPayload], - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[None]: - """ - Remove one or more [permissions](https://auth0.com/docs/manage-users/access-control/configure-core-rbac/manage-permissions) from a specified user role. - - Parameters - ---------- - id : str - ID of the role to remove permissions from. - - permissions : typing.Sequence[PermissionRequestPayload] - array of resource_server_identifier, permission_name pairs. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"roles/{quote_path_param(id)}/permissions", - method="DELETE", - json={ - "permissions": convert_and_respect_annotation_metadata( - object_=permissions, annotation=typing.Sequence[PermissionRequestPayload], direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawPermissionsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - id: str, - *, - per_page: typing.Optional[int] = 50, - page: typing.Optional[int] = 0, - include_totals: typing.Optional[bool] = True, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[PermissionsResponsePayload, ListRolePermissionsOffsetPaginatedResponseContent]: - """ - Retrieve detailed list (name, description, resource server) of permissions granted by a specified user role. - - Parameters - ---------- - id : str - ID of the role to list granted permissions. - - per_page : typing.Optional[int] - Number of results per page. Defaults to 50. - - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[PermissionsResponsePayload, ListRolePermissionsOffsetPaginatedResponseContent] - Role permissions successfully retrieved. - """ - page = page if page is not None else 0 - - _response = await self._client_wrapper.httpx_client.request( - f"roles/{quote_path_param(id)}/permissions", - method="GET", - params={ - "per_page": per_page, - "page": page, - "include_totals": include_totals, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListRolePermissionsOffsetPaginatedResponseContent, - parse_obj_as( - type_=ListRolePermissionsOffsetPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.permissions - _has_next = len(_items or []) > 0 - - async def _get_next(): - return await self.list( - id, - per_page=per_page, - page=page + 1, - include_totals=include_totals, - request_options=request_options, - ) - - return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def add( - self, - id: str, - *, - permissions: typing.Sequence[PermissionRequestPayload], - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[None]: - """ - Add one or more [permissions](https://auth0.com/docs/manage-users/access-control/configure-core-rbac/manage-permissions) to a specified user role. - - Parameters - ---------- - id : str - ID of the role to add permissions to. - - permissions : typing.Sequence[PermissionRequestPayload] - array of resource_server_identifier, permission_name pairs. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"roles/{quote_path_param(id)}/permissions", - method="POST", - json={ - "permissions": convert_and_respect_annotation_metadata( - object_=permissions, annotation=typing.Sequence[PermissionRequestPayload], direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def delete( - self, - id: str, - *, - permissions: typing.Sequence[PermissionRequestPayload], - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[None]: - """ - Remove one or more [permissions](https://auth0.com/docs/manage-users/access-control/configure-core-rbac/manage-permissions) from a specified user role. - - Parameters - ---------- - id : str - ID of the role to remove permissions from. - - permissions : typing.Sequence[PermissionRequestPayload] - array of resource_server_identifier, permission_name pairs. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"roles/{quote_path_param(id)}/permissions", - method="DELETE", - json={ - "permissions": convert_and_respect_annotation_metadata( - object_=permissions, annotation=typing.Sequence[PermissionRequestPayload], direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/roles/raw_client.py b/src/auth0/management/roles/raw_client.py deleted file mode 100644 index 5530bd4d..00000000 --- a/src/auth0/management/roles/raw_client.py +++ /dev/null @@ -1,1145 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ..core.api_error import ApiError -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.http_response import AsyncHttpResponse, HttpResponse -from ..core.jsonable_encoder import quote_path_param -from ..core.pagination import AsyncPager, SyncPager -from ..core.parse_error import ParsingError -from ..core.pydantic_utilities import parse_obj_as -from ..core.request_options import RequestOptions -from ..errors.bad_request_error import BadRequestError -from ..errors.conflict_error import ConflictError -from ..errors.forbidden_error import ForbiddenError -from ..errors.not_found_error import NotFoundError -from ..errors.too_many_requests_error import TooManyRequestsError -from ..errors.unauthorized_error import UnauthorizedError -from ..types.create_role_response_content import CreateRoleResponseContent -from ..types.get_role_response_content import GetRoleResponseContent -from ..types.list_roles_offset_paginated_response_content import ListRolesOffsetPaginatedResponseContent -from ..types.role import Role -from ..types.role_owner_id_filter import RoleOwnerIdFilter -from ..types.role_type_enum import RoleTypeEnum -from ..types.update_role_response_content import UpdateRoleResponseContent -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawRolesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - per_page: typing.Optional[int] = 50, - page: typing.Optional[int] = 0, - include_totals: typing.Optional[bool] = True, - name_filter: typing.Optional[str] = None, - type: typing.Optional[RoleTypeEnum] = None, - owner_id: typing.Optional[RoleOwnerIdFilter] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[Role, ListRolesOffsetPaginatedResponseContent]: - """ - Retrieve a list of roles. Includes roles created in your tenant and, when `owner_id=auth0` is supplied, Auth0-managed System Roles. - - **Note**: The returned list does not include standard roles available for tenant members, such as Admin or Support Access. - - Parameters - ---------- - per_page : typing.Optional[int] - Number of results per page. Defaults to 50. - - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - name_filter : typing.Optional[str] - Optional filter on name (case-insensitive). - - type : typing.Optional[RoleTypeEnum] - Optional filter on the type of the role - - owner_id : typing.Optional[RoleOwnerIdFilter] - Filter organization-level roles by owner ID. Use an organization ID to filter that organization's roles, or "auth0" to retrieve Auth0-managed System Roles. Required when type is "organization". - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[Role, ListRolesOffsetPaginatedResponseContent] - Roles successfully retrieved. - """ - page = page if page is not None else 0 - - _response = self._client_wrapper.httpx_client.request( - "roles", - method="GET", - params={ - "per_page": per_page, - "page": page, - "include_totals": include_totals, - "name_filter": name_filter, - "type": type, - "owner_id": owner_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListRolesOffsetPaginatedResponseContent, - parse_obj_as( - type_=ListRolesOffsetPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.roles - _has_next = len(_items or []) > 0 - _get_next = lambda: self.list( - per_page=per_page, - page=page + 1, - include_totals=include_totals, - name_filter=name_filter, - type=type, - owner_id=owner_id, - request_options=request_options, - ) - return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - *, - name: str, - description: typing.Optional[str] = OMIT, - type: typing.Optional[RoleTypeEnum] = OMIT, - owner_id: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[CreateRoleResponseContent]: - """ - Create a user role for [Role-Based Access Control](https://auth0.com/docs/manage-users/access-control/rbac). - - **Note**: New roles are not associated with any permissions by default. To assign existing permissions to your role, review Associate Permissions with a Role. To create new permissions, review Add API Permissions. - - Parameters - ---------- - name : str - Name of the role. - - description : typing.Optional[str] - Description of the role. - - type : typing.Optional[RoleTypeEnum] - The type of the role. Defaults to tenant. - - owner_id : typing.Optional[str] - The ID of the organization that owns this role. Required when type is "organization". - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CreateRoleResponseContent] - Role successfully created. - """ - _response = self._client_wrapper.httpx_client.request( - "roles", - method="POST", - json={ - "name": name, - "description": description, - "type": type, - "owner_id": owner_id, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateRoleResponseContent, - parse_obj_as( - type_=CreateRoleResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetRoleResponseContent]: - """ - Retrieve details about a specific [user role](https://auth0.com/docs/manage-users/access-control/rbac) specified by ID. - - Parameters - ---------- - id : str - ID of the role to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetRoleResponseContent] - Role successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - f"roles/{quote_path_param(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetRoleResponseContent, - parse_obj_as( - type_=GetRoleResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[None]: - """ - Delete a specific [user role](https://auth0.com/docs/manage-users/access-control/rbac) from your tenant. Once deleted, it is removed from any user who was previously assigned that role. This action cannot be undone. - - Parameters - ---------- - id : str - ID of the role to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"roles/{quote_path_param(id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def update( - self, - id: str, - *, - name: typing.Optional[str] = OMIT, - description: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[UpdateRoleResponseContent]: - """ - Modify the details of a specific [user role](https://auth0.com/docs/manage-users/access-control/rbac) specified by ID. - - Parameters - ---------- - id : str - ID of the role to update. - - name : typing.Optional[str] - Name of this role. - - description : typing.Optional[str] - Description of this role. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[UpdateRoleResponseContent] - Role successfully updated. - """ - _response = self._client_wrapper.httpx_client.request( - f"roles/{quote_path_param(id)}", - method="PATCH", - json={ - "name": name, - "description": description, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateRoleResponseContent, - parse_obj_as( - type_=UpdateRoleResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawRolesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - per_page: typing.Optional[int] = 50, - page: typing.Optional[int] = 0, - include_totals: typing.Optional[bool] = True, - name_filter: typing.Optional[str] = None, - type: typing.Optional[RoleTypeEnum] = None, - owner_id: typing.Optional[RoleOwnerIdFilter] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[Role, ListRolesOffsetPaginatedResponseContent]: - """ - Retrieve a list of roles. Includes roles created in your tenant and, when `owner_id=auth0` is supplied, Auth0-managed System Roles. - - **Note**: The returned list does not include standard roles available for tenant members, such as Admin or Support Access. - - Parameters - ---------- - per_page : typing.Optional[int] - Number of results per page. Defaults to 50. - - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - name_filter : typing.Optional[str] - Optional filter on name (case-insensitive). - - type : typing.Optional[RoleTypeEnum] - Optional filter on the type of the role - - owner_id : typing.Optional[RoleOwnerIdFilter] - Filter organization-level roles by owner ID. Use an organization ID to filter that organization's roles, or "auth0" to retrieve Auth0-managed System Roles. Required when type is "organization". - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[Role, ListRolesOffsetPaginatedResponseContent] - Roles successfully retrieved. - """ - page = page if page is not None else 0 - - _response = await self._client_wrapper.httpx_client.request( - "roles", - method="GET", - params={ - "per_page": per_page, - "page": page, - "include_totals": include_totals, - "name_filter": name_filter, - "type": type, - "owner_id": owner_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListRolesOffsetPaginatedResponseContent, - parse_obj_as( - type_=ListRolesOffsetPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.roles - _has_next = len(_items or []) > 0 - - async def _get_next(): - return await self.list( - per_page=per_page, - page=page + 1, - include_totals=include_totals, - name_filter=name_filter, - type=type, - owner_id=owner_id, - request_options=request_options, - ) - - return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - *, - name: str, - description: typing.Optional[str] = OMIT, - type: typing.Optional[RoleTypeEnum] = OMIT, - owner_id: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[CreateRoleResponseContent]: - """ - Create a user role for [Role-Based Access Control](https://auth0.com/docs/manage-users/access-control/rbac). - - **Note**: New roles are not associated with any permissions by default. To assign existing permissions to your role, review Associate Permissions with a Role. To create new permissions, review Add API Permissions. - - Parameters - ---------- - name : str - Name of the role. - - description : typing.Optional[str] - Description of the role. - - type : typing.Optional[RoleTypeEnum] - The type of the role. Defaults to tenant. - - owner_id : typing.Optional[str] - The ID of the organization that owns this role. Required when type is "organization". - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CreateRoleResponseContent] - Role successfully created. - """ - _response = await self._client_wrapper.httpx_client.request( - "roles", - method="POST", - json={ - "name": name, - "description": description, - "type": type, - "owner_id": owner_id, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateRoleResponseContent, - parse_obj_as( - type_=CreateRoleResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetRoleResponseContent]: - """ - Retrieve details about a specific [user role](https://auth0.com/docs/manage-users/access-control/rbac) specified by ID. - - Parameters - ---------- - id : str - ID of the role to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetRoleResponseContent] - Role successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - f"roles/{quote_path_param(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetRoleResponseContent, - parse_obj_as( - type_=GetRoleResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def delete( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Delete a specific [user role](https://auth0.com/docs/manage-users/access-control/rbac) from your tenant. Once deleted, it is removed from any user who was previously assigned that role. This action cannot be undone. - - Parameters - ---------- - id : str - ID of the role to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"roles/{quote_path_param(id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def update( - self, - id: str, - *, - name: typing.Optional[str] = OMIT, - description: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[UpdateRoleResponseContent]: - """ - Modify the details of a specific [user role](https://auth0.com/docs/manage-users/access-control/rbac) specified by ID. - - Parameters - ---------- - id : str - ID of the role to update. - - name : typing.Optional[str] - Name of this role. - - description : typing.Optional[str] - Description of this role. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[UpdateRoleResponseContent] - Role successfully updated. - """ - _response = await self._client_wrapper.httpx_client.request( - f"roles/{quote_path_param(id)}", - method="PATCH", - json={ - "name": name, - "description": description, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateRoleResponseContent, - parse_obj_as( - type_=UpdateRoleResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/roles/users/__init__.py b/src/auth0/management/roles/users/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/roles/users/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/roles/users/client.py b/src/auth0/management/roles/users/client.py deleted file mode 100644 index 80ee7246..00000000 --- a/src/auth0/management/roles/users/client.py +++ /dev/null @@ -1,288 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.pagination import AsyncPager, SyncPager -from ...core.request_options import RequestOptions -from ...types.list_role_users_paginated_response_content import ListRoleUsersPaginatedResponseContent -from ...types.role_user import RoleUser -from .raw_client import AsyncRawUsersClient, RawUsersClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class UsersClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawUsersClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawUsersClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawUsersClient - """ - return self._raw_client - - def list( - self, - id: str, - *, - include_totals: typing.Optional[bool] = True, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[RoleUser, ListRoleUsersPaginatedResponseContent]: - """ - Retrieve list of users associated with a specific role. For Dashboard instructions, review [View Users Assigned to Roles](https://auth0.com/docs/manage-users/access-control/configure-core-rbac/roles/view-users-assigned-to-roles). - - **Note**: Returns only users with direct role assignments. For groups assigned to this role, use `GET /api/v2/roles/{id}/groups`. - - This endpoint supports two types of pagination: - - - Offset pagination - - Checkpoint pagination - - Checkpoint pagination must be used if you need to retrieve more than 1000 organization members. - - **Checkpoint Pagination** - - To search by checkpoint, use the following parameters: - - - `from`: Optional id from which to start selection. - - `take`: The total amount of entries to retrieve when using the from parameter. Defaults to 50. - - **Note**: The first time you call this endpoint using checkpoint pagination, omit the `from` parameter. If there are more results, a `next` value is included in the response. You can use this for subsequent API calls. When `next` is no longer included in the response, no pages are remaining. - - Parameters - ---------- - id : str - ID of the role to retrieve a list of users associated with. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[RoleUser, ListRoleUsersPaginatedResponseContent] - Role users successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.roles.users.list( - id="id", - include_totals=True, - from_="from", - take=1, - ) - for item in response: - yield item - # alternatively, you can paginate page-by-page - for page in response.iter_pages(): - yield page - """ - return self._raw_client.list( - id, include_totals=include_totals, from_=from_, take=take, request_options=request_options - ) - - def assign( - self, id: str, *, users: typing.Sequence[str], request_options: typing.Optional[RequestOptions] = None - ) -> None: - """ - Assign one or more users to an existing user role. To learn more, review [Role-Based Access Control](https://auth0.com/docs/manage-users/access-control/rbac). - - **Note**: New roles cannot be created through this action. - - Parameters - ---------- - id : str - ID of the role to assign users to. - - users : typing.Sequence[str] - user_id's of the users to assign the role to. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.roles.users.assign( - id="id", - users=["users"], - ) - """ - _response = self._raw_client.assign(id, users=users, request_options=request_options) - return _response.data - - -class AsyncUsersClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawUsersClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawUsersClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawUsersClient - """ - return self._raw_client - - async def list( - self, - id: str, - *, - include_totals: typing.Optional[bool] = True, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[RoleUser, ListRoleUsersPaginatedResponseContent]: - """ - Retrieve list of users associated with a specific role. For Dashboard instructions, review [View Users Assigned to Roles](https://auth0.com/docs/manage-users/access-control/configure-core-rbac/roles/view-users-assigned-to-roles). - - **Note**: Returns only users with direct role assignments. For groups assigned to this role, use `GET /api/v2/roles/{id}/groups`. - - This endpoint supports two types of pagination: - - - Offset pagination - - Checkpoint pagination - - Checkpoint pagination must be used if you need to retrieve more than 1000 organization members. - - **Checkpoint Pagination** - - To search by checkpoint, use the following parameters: - - - `from`: Optional id from which to start selection. - - `take`: The total amount of entries to retrieve when using the from parameter. Defaults to 50. - - **Note**: The first time you call this endpoint using checkpoint pagination, omit the `from` parameter. If there are more results, a `next` value is included in the response. You can use this for subsequent API calls. When `next` is no longer included in the response, no pages are remaining. - - Parameters - ---------- - id : str - ID of the role to retrieve a list of users associated with. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[RoleUser, ListRoleUsersPaginatedResponseContent] - Role users successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.roles.users.list( - id="id", - include_totals=True, - from_="from", - take=1, - ) - async for item in response: - yield item - - # alternatively, you can paginate page-by-page - async for page in response.iter_pages(): - yield page - - - asyncio.run(main()) - """ - return await self._raw_client.list( - id, include_totals=include_totals, from_=from_, take=take, request_options=request_options - ) - - async def assign( - self, id: str, *, users: typing.Sequence[str], request_options: typing.Optional[RequestOptions] = None - ) -> None: - """ - Assign one or more users to an existing user role. To learn more, review [Role-Based Access Control](https://auth0.com/docs/manage-users/access-control/rbac). - - **Note**: New roles cannot be created through this action. - - Parameters - ---------- - id : str - ID of the role to assign users to. - - users : typing.Sequence[str] - user_id's of the users to assign the role to. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.roles.users.assign( - id="id", - users=["users"], - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.assign(id, users=users, request_options=request_options) - return _response.data diff --git a/src/auth0/management/roles/users/raw_client.py b/src/auth0/management/roles/users/raw_client.py deleted file mode 100644 index 24c2f92b..00000000 --- a/src/auth0/management/roles/users/raw_client.py +++ /dev/null @@ -1,533 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ...core.api_error import ApiError -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.http_response import AsyncHttpResponse, HttpResponse -from ...core.jsonable_encoder import quote_path_param -from ...core.pagination import AsyncPager, SyncPager -from ...core.parse_error import ParsingError -from ...core.pydantic_utilities import parse_obj_as -from ...core.request_options import RequestOptions -from ...errors.bad_request_error import BadRequestError -from ...errors.forbidden_error import ForbiddenError -from ...errors.not_found_error import NotFoundError -from ...errors.too_many_requests_error import TooManyRequestsError -from ...errors.unauthorized_error import UnauthorizedError -from ...types.list_role_users_paginated_response_content import ListRoleUsersPaginatedResponseContent -from ...types.role_user import RoleUser -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawUsersClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - id: str, - *, - include_totals: typing.Optional[bool] = True, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[RoleUser, ListRoleUsersPaginatedResponseContent]: - """ - Retrieve list of users associated with a specific role. For Dashboard instructions, review [View Users Assigned to Roles](https://auth0.com/docs/manage-users/access-control/configure-core-rbac/roles/view-users-assigned-to-roles). - - **Note**: Returns only users with direct role assignments. For groups assigned to this role, use `GET /api/v2/roles/{id}/groups`. - - This endpoint supports two types of pagination: - - - Offset pagination - - Checkpoint pagination - - Checkpoint pagination must be used if you need to retrieve more than 1000 organization members. - - **Checkpoint Pagination** - - To search by checkpoint, use the following parameters: - - - `from`: Optional id from which to start selection. - - `take`: The total amount of entries to retrieve when using the from parameter. Defaults to 50. - - **Note**: The first time you call this endpoint using checkpoint pagination, omit the `from` parameter. If there are more results, a `next` value is included in the response. You can use this for subsequent API calls. When `next` is no longer included in the response, no pages are remaining. - - Parameters - ---------- - id : str - ID of the role to retrieve a list of users associated with. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[RoleUser, ListRoleUsersPaginatedResponseContent] - Role users successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - f"roles/{quote_path_param(id)}/users", - method="GET", - params={ - "include_totals": include_totals, - "from": from_, - "take": take, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListRoleUsersPaginatedResponseContent, - parse_obj_as( - type_=ListRoleUsersPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.users - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - _get_next = lambda: self.list( - id, - include_totals=include_totals, - from_=_parsed_next, - take=take, - request_options=request_options, - ) - return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def assign( - self, id: str, *, users: typing.Sequence[str], request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[None]: - """ - Assign one or more users to an existing user role. To learn more, review [Role-Based Access Control](https://auth0.com/docs/manage-users/access-control/rbac). - - **Note**: New roles cannot be created through this action. - - Parameters - ---------- - id : str - ID of the role to assign users to. - - users : typing.Sequence[str] - user_id's of the users to assign the role to. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"roles/{quote_path_param(id)}/users", - method="POST", - json={ - "users": users, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawUsersClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - id: str, - *, - include_totals: typing.Optional[bool] = True, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[RoleUser, ListRoleUsersPaginatedResponseContent]: - """ - Retrieve list of users associated with a specific role. For Dashboard instructions, review [View Users Assigned to Roles](https://auth0.com/docs/manage-users/access-control/configure-core-rbac/roles/view-users-assigned-to-roles). - - **Note**: Returns only users with direct role assignments. For groups assigned to this role, use `GET /api/v2/roles/{id}/groups`. - - This endpoint supports two types of pagination: - - - Offset pagination - - Checkpoint pagination - - Checkpoint pagination must be used if you need to retrieve more than 1000 organization members. - - **Checkpoint Pagination** - - To search by checkpoint, use the following parameters: - - - `from`: Optional id from which to start selection. - - `take`: The total amount of entries to retrieve when using the from parameter. Defaults to 50. - - **Note**: The first time you call this endpoint using checkpoint pagination, omit the `from` parameter. If there are more results, a `next` value is included in the response. You can use this for subsequent API calls. When `next` is no longer included in the response, no pages are remaining. - - Parameters - ---------- - id : str - ID of the role to retrieve a list of users associated with. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[RoleUser, ListRoleUsersPaginatedResponseContent] - Role users successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - f"roles/{quote_path_param(id)}/users", - method="GET", - params={ - "include_totals": include_totals, - "from": from_, - "take": take, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListRoleUsersPaginatedResponseContent, - parse_obj_as( - type_=ListRoleUsersPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.users - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - - async def _get_next(): - return await self.list( - id, - include_totals=include_totals, - from_=_parsed_next, - take=take, - request_options=request_options, - ) - - return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def assign( - self, id: str, *, users: typing.Sequence[str], request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Assign one or more users to an existing user role. To learn more, review [Role-Based Access Control](https://auth0.com/docs/manage-users/access-control/rbac). - - **Note**: New roles cannot be created through this action. - - Parameters - ---------- - id : str - ID of the role to assign users to. - - users : typing.Sequence[str] - user_id's of the users to assign the role to. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"roles/{quote_path_param(id)}/users", - method="POST", - json={ - "users": users, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/rules/__init__.py b/src/auth0/management/rules/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/rules/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/rules/client.py b/src/auth0/management/rules/client.py deleted file mode 100644 index fff4c1fd..00000000 --- a/src/auth0/management/rules/client.py +++ /dev/null @@ -1,605 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.pagination import AsyncPager, SyncPager -from ..core.request_options import RequestOptions -from ..types.create_rule_response_content import CreateRuleResponseContent -from ..types.get_rule_response_content import GetRuleResponseContent -from ..types.list_rules_offset_paginated_response_content import ListRulesOffsetPaginatedResponseContent -from ..types.rule import Rule -from ..types.update_rule_response_content import UpdateRuleResponseContent -from .raw_client import AsyncRawRulesClient, RawRulesClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RulesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawRulesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawRulesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawRulesClient - """ - return self._raw_client - - def list( - self, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - include_totals: typing.Optional[bool] = True, - enabled: typing.Optional[bool] = None, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[Rule, ListRulesOffsetPaginatedResponseContent]: - """ - Retrieve a filtered list of [rules](https://auth0.com/docs/rules). Accepts a list of fields to include or exclude. - - Parameters - ---------- - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - enabled : typing.Optional[bool] - Optional filter on whether a rule is enabled (true) or disabled (false). - - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[Rule, ListRulesOffsetPaginatedResponseContent] - Rules successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.rules.list( - page=1, - per_page=1, - include_totals=True, - enabled=True, - fields="fields", - include_fields=True, - ) - for item in response: - yield item - # alternatively, you can paginate page-by-page - for page in response.iter_pages(): - yield page - """ - return self._raw_client.list( - page=page, - per_page=per_page, - include_totals=include_totals, - enabled=enabled, - fields=fields, - include_fields=include_fields, - request_options=request_options, - ) - - def create( - self, - *, - name: str, - script: str, - order: typing.Optional[float] = OMIT, - enabled: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateRuleResponseContent: - """ - Create a [new rule](https://auth0.com/docs/rules#create-a-new-rule-using-the-management-api). - - Note: Changing a rule's stage of execution from the default `login_success` can change the rule's function signature to have user omitted. - - Parameters - ---------- - name : str - Name of this rule. - - script : str - Code to be executed when this rule runs. - - order : typing.Optional[float] - Order that this rule should execute in relative to other rules. Lower-valued rules execute first. - - enabled : typing.Optional[bool] - Whether the rule is enabled (true), or disabled (false). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateRuleResponseContent - Rule successfully created. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.rules.create( - name="name", - script="script", - ) - """ - _response = self._raw_client.create( - name=name, script=script, order=order, enabled=enabled, request_options=request_options - ) - return _response.data - - def get( - self, - id: str, - *, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> GetRuleResponseContent: - """ - Retrieve [rule](https://auth0.com/docs/rules) details. Accepts a list of fields to include or exclude in the result. - - Parameters - ---------- - id : str - ID of the rule to retrieve. - - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetRuleResponseContent - Rule successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.rules.get( - id="id", - fields="fields", - include_fields=True, - ) - """ - _response = self._raw_client.get( - id, fields=fields, include_fields=include_fields, request_options=request_options - ) - return _response.data - - def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete a rule. - - Parameters - ---------- - id : str - ID of the rule to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.rules.delete( - id="id", - ) - """ - _response = self._raw_client.delete(id, request_options=request_options) - return _response.data - - def update( - self, - id: str, - *, - script: typing.Optional[str] = OMIT, - name: typing.Optional[str] = OMIT, - order: typing.Optional[float] = OMIT, - enabled: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateRuleResponseContent: - """ - Update an existing rule. - - Parameters - ---------- - id : str - ID of the rule to retrieve. - - script : typing.Optional[str] - Code to be executed when this rule runs. - - name : typing.Optional[str] - Name of this rule. - - order : typing.Optional[float] - Order that this rule should execute in relative to other rules. Lower-valued rules execute first. - - enabled : typing.Optional[bool] - Whether the rule is enabled (true), or disabled (false). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateRuleResponseContent - Rule successfully updated. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.rules.update( - id="id", - ) - """ - _response = self._raw_client.update( - id, script=script, name=name, order=order, enabled=enabled, request_options=request_options - ) - return _response.data - - -class AsyncRulesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawRulesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawRulesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawRulesClient - """ - return self._raw_client - - async def list( - self, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - include_totals: typing.Optional[bool] = True, - enabled: typing.Optional[bool] = None, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[Rule, ListRulesOffsetPaginatedResponseContent]: - """ - Retrieve a filtered list of [rules](https://auth0.com/docs/rules). Accepts a list of fields to include or exclude. - - Parameters - ---------- - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - enabled : typing.Optional[bool] - Optional filter on whether a rule is enabled (true) or disabled (false). - - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[Rule, ListRulesOffsetPaginatedResponseContent] - Rules successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.rules.list( - page=1, - per_page=1, - include_totals=True, - enabled=True, - fields="fields", - include_fields=True, - ) - async for item in response: - yield item - - # alternatively, you can paginate page-by-page - async for page in response.iter_pages(): - yield page - - - asyncio.run(main()) - """ - return await self._raw_client.list( - page=page, - per_page=per_page, - include_totals=include_totals, - enabled=enabled, - fields=fields, - include_fields=include_fields, - request_options=request_options, - ) - - async def create( - self, - *, - name: str, - script: str, - order: typing.Optional[float] = OMIT, - enabled: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateRuleResponseContent: - """ - Create a [new rule](https://auth0.com/docs/rules#create-a-new-rule-using-the-management-api). - - Note: Changing a rule's stage of execution from the default `login_success` can change the rule's function signature to have user omitted. - - Parameters - ---------- - name : str - Name of this rule. - - script : str - Code to be executed when this rule runs. - - order : typing.Optional[float] - Order that this rule should execute in relative to other rules. Lower-valued rules execute first. - - enabled : typing.Optional[bool] - Whether the rule is enabled (true), or disabled (false). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateRuleResponseContent - Rule successfully created. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.rules.create( - name="name", - script="script", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - name=name, script=script, order=order, enabled=enabled, request_options=request_options - ) - return _response.data - - async def get( - self, - id: str, - *, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> GetRuleResponseContent: - """ - Retrieve [rule](https://auth0.com/docs/rules) details. Accepts a list of fields to include or exclude in the result. - - Parameters - ---------- - id : str - ID of the rule to retrieve. - - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetRuleResponseContent - Rule successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.rules.get( - id="id", - fields="fields", - include_fields=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.get( - id, fields=fields, include_fields=include_fields, request_options=request_options - ) - return _response.data - - async def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete a rule. - - Parameters - ---------- - id : str - ID of the rule to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.rules.delete( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete(id, request_options=request_options) - return _response.data - - async def update( - self, - id: str, - *, - script: typing.Optional[str] = OMIT, - name: typing.Optional[str] = OMIT, - order: typing.Optional[float] = OMIT, - enabled: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateRuleResponseContent: - """ - Update an existing rule. - - Parameters - ---------- - id : str - ID of the rule to retrieve. - - script : typing.Optional[str] - Code to be executed when this rule runs. - - name : typing.Optional[str] - Name of this rule. - - order : typing.Optional[float] - Order that this rule should execute in relative to other rules. Lower-valued rules execute first. - - enabled : typing.Optional[bool] - Whether the rule is enabled (true), or disabled (false). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateRuleResponseContent - Rule successfully updated. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.rules.update( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.update( - id, script=script, name=name, order=order, enabled=enabled, request_options=request_options - ) - return _response.data diff --git a/src/auth0/management/rules/raw_client.py b/src/auth0/management/rules/raw_client.py deleted file mode 100644 index c5079f79..00000000 --- a/src/auth0/management/rules/raw_client.py +++ /dev/null @@ -1,1233 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ..core.api_error import ApiError -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.http_response import AsyncHttpResponse, HttpResponse -from ..core.jsonable_encoder import quote_path_param -from ..core.pagination import AsyncPager, SyncPager -from ..core.parse_error import ParsingError -from ..core.pydantic_utilities import parse_obj_as -from ..core.request_options import RequestOptions -from ..errors.bad_request_error import BadRequestError -from ..errors.conflict_error import ConflictError -from ..errors.forbidden_error import ForbiddenError -from ..errors.not_found_error import NotFoundError -from ..errors.too_many_requests_error import TooManyRequestsError -from ..errors.unauthorized_error import UnauthorizedError -from ..types.create_rule_response_content import CreateRuleResponseContent -from ..types.get_rule_response_content import GetRuleResponseContent -from ..types.list_rules_offset_paginated_response_content import ListRulesOffsetPaginatedResponseContent -from ..types.rule import Rule -from ..types.update_rule_response_content import UpdateRuleResponseContent -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawRulesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - include_totals: typing.Optional[bool] = True, - enabled: typing.Optional[bool] = None, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[Rule, ListRulesOffsetPaginatedResponseContent]: - """ - Retrieve a filtered list of [rules](https://auth0.com/docs/rules). Accepts a list of fields to include or exclude. - - Parameters - ---------- - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - enabled : typing.Optional[bool] - Optional filter on whether a rule is enabled (true) or disabled (false). - - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[Rule, ListRulesOffsetPaginatedResponseContent] - Rules successfully retrieved. - """ - page = page if page is not None else 0 - - _response = self._client_wrapper.httpx_client.request( - "rules", - method="GET", - params={ - "page": page, - "per_page": per_page, - "include_totals": include_totals, - "enabled": enabled, - "fields": fields, - "include_fields": include_fields, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListRulesOffsetPaginatedResponseContent, - parse_obj_as( - type_=ListRulesOffsetPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.rules - _has_next = len(_items or []) > 0 - _get_next = lambda: self.list( - page=page + 1, - per_page=per_page, - include_totals=include_totals, - enabled=enabled, - fields=fields, - include_fields=include_fields, - request_options=request_options, - ) - return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - *, - name: str, - script: str, - order: typing.Optional[float] = OMIT, - enabled: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[CreateRuleResponseContent]: - """ - Create a [new rule](https://auth0.com/docs/rules#create-a-new-rule-using-the-management-api). - - Note: Changing a rule's stage of execution from the default `login_success` can change the rule's function signature to have user omitted. - - Parameters - ---------- - name : str - Name of this rule. - - script : str - Code to be executed when this rule runs. - - order : typing.Optional[float] - Order that this rule should execute in relative to other rules. Lower-valued rules execute first. - - enabled : typing.Optional[bool] - Whether the rule is enabled (true), or disabled (false). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CreateRuleResponseContent] - Rule successfully created. - """ - _response = self._client_wrapper.httpx_client.request( - "rules", - method="POST", - json={ - "name": name, - "script": script, - "order": order, - "enabled": enabled, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateRuleResponseContent, - parse_obj_as( - type_=CreateRuleResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def get( - self, - id: str, - *, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[GetRuleResponseContent]: - """ - Retrieve [rule](https://auth0.com/docs/rules) details. Accepts a list of fields to include or exclude in the result. - - Parameters - ---------- - id : str - ID of the rule to retrieve. - - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetRuleResponseContent] - Rule successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - f"rules/{quote_path_param(id)}", - method="GET", - params={ - "fields": fields, - "include_fields": include_fields, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetRuleResponseContent, - parse_obj_as( - type_=GetRuleResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[None]: - """ - Delete a rule. - - Parameters - ---------- - id : str - ID of the rule to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"rules/{quote_path_param(id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def update( - self, - id: str, - *, - script: typing.Optional[str] = OMIT, - name: typing.Optional[str] = OMIT, - order: typing.Optional[float] = OMIT, - enabled: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[UpdateRuleResponseContent]: - """ - Update an existing rule. - - Parameters - ---------- - id : str - ID of the rule to retrieve. - - script : typing.Optional[str] - Code to be executed when this rule runs. - - name : typing.Optional[str] - Name of this rule. - - order : typing.Optional[float] - Order that this rule should execute in relative to other rules. Lower-valued rules execute first. - - enabled : typing.Optional[bool] - Whether the rule is enabled (true), or disabled (false). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[UpdateRuleResponseContent] - Rule successfully updated. - """ - _response = self._client_wrapper.httpx_client.request( - f"rules/{quote_path_param(id)}", - method="PATCH", - json={ - "script": script, - "name": name, - "order": order, - "enabled": enabled, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateRuleResponseContent, - parse_obj_as( - type_=UpdateRuleResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawRulesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - include_totals: typing.Optional[bool] = True, - enabled: typing.Optional[bool] = None, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[Rule, ListRulesOffsetPaginatedResponseContent]: - """ - Retrieve a filtered list of [rules](https://auth0.com/docs/rules). Accepts a list of fields to include or exclude. - - Parameters - ---------- - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - enabled : typing.Optional[bool] - Optional filter on whether a rule is enabled (true) or disabled (false). - - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[Rule, ListRulesOffsetPaginatedResponseContent] - Rules successfully retrieved. - """ - page = page if page is not None else 0 - - _response = await self._client_wrapper.httpx_client.request( - "rules", - method="GET", - params={ - "page": page, - "per_page": per_page, - "include_totals": include_totals, - "enabled": enabled, - "fields": fields, - "include_fields": include_fields, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListRulesOffsetPaginatedResponseContent, - parse_obj_as( - type_=ListRulesOffsetPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.rules - _has_next = len(_items or []) > 0 - - async def _get_next(): - return await self.list( - page=page + 1, - per_page=per_page, - include_totals=include_totals, - enabled=enabled, - fields=fields, - include_fields=include_fields, - request_options=request_options, - ) - - return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - *, - name: str, - script: str, - order: typing.Optional[float] = OMIT, - enabled: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[CreateRuleResponseContent]: - """ - Create a [new rule](https://auth0.com/docs/rules#create-a-new-rule-using-the-management-api). - - Note: Changing a rule's stage of execution from the default `login_success` can change the rule's function signature to have user omitted. - - Parameters - ---------- - name : str - Name of this rule. - - script : str - Code to be executed when this rule runs. - - order : typing.Optional[float] - Order that this rule should execute in relative to other rules. Lower-valued rules execute first. - - enabled : typing.Optional[bool] - Whether the rule is enabled (true), or disabled (false). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CreateRuleResponseContent] - Rule successfully created. - """ - _response = await self._client_wrapper.httpx_client.request( - "rules", - method="POST", - json={ - "name": name, - "script": script, - "order": order, - "enabled": enabled, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateRuleResponseContent, - parse_obj_as( - type_=CreateRuleResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def get( - self, - id: str, - *, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[GetRuleResponseContent]: - """ - Retrieve [rule](https://auth0.com/docs/rules) details. Accepts a list of fields to include or exclude in the result. - - Parameters - ---------- - id : str - ID of the rule to retrieve. - - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetRuleResponseContent] - Rule successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - f"rules/{quote_path_param(id)}", - method="GET", - params={ - "fields": fields, - "include_fields": include_fields, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetRuleResponseContent, - parse_obj_as( - type_=GetRuleResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def delete( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Delete a rule. - - Parameters - ---------- - id : str - ID of the rule to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"rules/{quote_path_param(id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def update( - self, - id: str, - *, - script: typing.Optional[str] = OMIT, - name: typing.Optional[str] = OMIT, - order: typing.Optional[float] = OMIT, - enabled: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[UpdateRuleResponseContent]: - """ - Update an existing rule. - - Parameters - ---------- - id : str - ID of the rule to retrieve. - - script : typing.Optional[str] - Code to be executed when this rule runs. - - name : typing.Optional[str] - Name of this rule. - - order : typing.Optional[float] - Order that this rule should execute in relative to other rules. Lower-valued rules execute first. - - enabled : typing.Optional[bool] - Whether the rule is enabled (true), or disabled (false). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[UpdateRuleResponseContent] - Rule successfully updated. - """ - _response = await self._client_wrapper.httpx_client.request( - f"rules/{quote_path_param(id)}", - method="PATCH", - json={ - "script": script, - "name": name, - "order": order, - "enabled": enabled, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateRuleResponseContent, - parse_obj_as( - type_=UpdateRuleResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/rules_configs/__init__.py b/src/auth0/management/rules_configs/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/rules_configs/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/rules_configs/client.py b/src/auth0/management/rules_configs/client.py deleted file mode 100644 index c5b4d432..00000000 --- a/src/auth0/management/rules_configs/client.py +++ /dev/null @@ -1,258 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.request_options import RequestOptions -from ..types.rules_config import RulesConfig -from ..types.set_rules_config_response_content import SetRulesConfigResponseContent -from .raw_client import AsyncRawRulesConfigsClient, RawRulesConfigsClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RulesConfigsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawRulesConfigsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawRulesConfigsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawRulesConfigsClient - """ - return self._raw_client - - def list(self, *, request_options: typing.Optional[RequestOptions] = None) -> typing.List[RulesConfig]: - """ - Retrieve rules config variable keys. - - Note: For security, config variable values cannot be retrieved outside rule execution. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - typing.List[RulesConfig] - Rules config keys successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.rules_configs.list() - """ - _response = self._raw_client.list(request_options=request_options) - return _response.data - - def set( - self, key: str, *, value: str, request_options: typing.Optional[RequestOptions] = None - ) -> SetRulesConfigResponseContent: - """ - Sets a rules config variable. - - Parameters - ---------- - key : str - Key of the rules config variable to set (max length: 127 characters). - - value : str - Value for a rules config variable. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SetRulesConfigResponseContent - Rules config variable successfully set. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.rules_configs.set( - key="key", - value="value", - ) - """ - _response = self._raw_client.set(key, value=value, request_options=request_options) - return _response.data - - def delete(self, key: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete a rules config variable identified by its key. - - Parameters - ---------- - key : str - Key of the rules config variable to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.rules_configs.delete( - key="key", - ) - """ - _response = self._raw_client.delete(key, request_options=request_options) - return _response.data - - -class AsyncRulesConfigsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawRulesConfigsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawRulesConfigsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawRulesConfigsClient - """ - return self._raw_client - - async def list(self, *, request_options: typing.Optional[RequestOptions] = None) -> typing.List[RulesConfig]: - """ - Retrieve rules config variable keys. - - Note: For security, config variable values cannot be retrieved outside rule execution. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - typing.List[RulesConfig] - Rules config keys successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.rules_configs.list() - - - asyncio.run(main()) - """ - _response = await self._raw_client.list(request_options=request_options) - return _response.data - - async def set( - self, key: str, *, value: str, request_options: typing.Optional[RequestOptions] = None - ) -> SetRulesConfigResponseContent: - """ - Sets a rules config variable. - - Parameters - ---------- - key : str - Key of the rules config variable to set (max length: 127 characters). - - value : str - Value for a rules config variable. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SetRulesConfigResponseContent - Rules config variable successfully set. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.rules_configs.set( - key="key", - value="value", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.set(key, value=value, request_options=request_options) - return _response.data - - async def delete(self, key: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete a rules config variable identified by its key. - - Parameters - ---------- - key : str - Key of the rules config variable to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.rules_configs.delete( - key="key", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete(key, request_options=request_options) - return _response.data diff --git a/src/auth0/management/rules_configs/raw_client.py b/src/auth0/management/rules_configs/raw_client.py deleted file mode 100644 index 29e5815a..00000000 --- a/src/auth0/management/rules_configs/raw_client.py +++ /dev/null @@ -1,487 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ..core.api_error import ApiError -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.http_response import AsyncHttpResponse, HttpResponse -from ..core.jsonable_encoder import quote_path_param -from ..core.parse_error import ParsingError -from ..core.pydantic_utilities import parse_obj_as -from ..core.request_options import RequestOptions -from ..errors.forbidden_error import ForbiddenError -from ..errors.too_many_requests_error import TooManyRequestsError -from ..errors.unauthorized_error import UnauthorizedError -from ..types.rules_config import RulesConfig -from ..types.set_rules_config_response_content import SetRulesConfigResponseContent -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawRulesConfigsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[typing.List[RulesConfig]]: - """ - Retrieve rules config variable keys. - - Note: For security, config variable values cannot be retrieved outside rule execution. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[typing.List[RulesConfig]] - Rules config keys successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - "rules-configs", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - typing.List[RulesConfig], - parse_obj_as( - type_=typing.List[RulesConfig], # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def set( - self, key: str, *, value: str, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[SetRulesConfigResponseContent]: - """ - Sets a rules config variable. - - Parameters - ---------- - key : str - Key of the rules config variable to set (max length: 127 characters). - - value : str - Value for a rules config variable. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[SetRulesConfigResponseContent] - Rules config variable successfully set. - """ - _response = self._client_wrapper.httpx_client.request( - f"rules-configs/{quote_path_param(key)}", - method="PUT", - json={ - "value": value, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - SetRulesConfigResponseContent, - parse_obj_as( - type_=SetRulesConfigResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def delete(self, key: str, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[None]: - """ - Delete a rules config variable identified by its key. - - Parameters - ---------- - key : str - Key of the rules config variable to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"rules-configs/{quote_path_param(key)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawRulesConfigsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[typing.List[RulesConfig]]: - """ - Retrieve rules config variable keys. - - Note: For security, config variable values cannot be retrieved outside rule execution. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[typing.List[RulesConfig]] - Rules config keys successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - "rules-configs", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - typing.List[RulesConfig], - parse_obj_as( - type_=typing.List[RulesConfig], # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def set( - self, key: str, *, value: str, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[SetRulesConfigResponseContent]: - """ - Sets a rules config variable. - - Parameters - ---------- - key : str - Key of the rules config variable to set (max length: 127 characters). - - value : str - Value for a rules config variable. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[SetRulesConfigResponseContent] - Rules config variable successfully set. - """ - _response = await self._client_wrapper.httpx_client.request( - f"rules-configs/{quote_path_param(key)}", - method="PUT", - json={ - "value": value, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - SetRulesConfigResponseContent, - parse_obj_as( - type_=SetRulesConfigResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def delete( - self, key: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Delete a rules config variable identified by its key. - - Parameters - ---------- - key : str - Key of the rules config variable to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"rules-configs/{quote_path_param(key)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/self_service_profiles/__init__.py b/src/auth0/management/self_service_profiles/__init__.py deleted file mode 100644 index 17b6e008..00000000 --- a/src/auth0/management/self_service_profiles/__init__.py +++ /dev/null @@ -1,34 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from . import custom_text, sso_ticket -_dynamic_imports: typing.Dict[str, str] = {"custom_text": ".custom_text", "sso_ticket": ".sso_ticket"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - if module_name == f".{attr_name}": - return module - else: - return getattr(module, attr_name) - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["custom_text", "sso_ticket"] diff --git a/src/auth0/management/self_service_profiles/client.py b/src/auth0/management/self_service_profiles/client.py deleted file mode 100644 index ec8e0229..00000000 --- a/src/auth0/management/self_service_profiles/client.py +++ /dev/null @@ -1,628 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.pagination import AsyncPager, SyncPager -from ..core.request_options import RequestOptions -from ..types.create_self_service_profile_response_content import CreateSelfServiceProfileResponseContent -from ..types.get_self_service_profile_response_content import GetSelfServiceProfileResponseContent -from ..types.list_self_service_profiles_paginated_response_content import ( - ListSelfServiceProfilesPaginatedResponseContent, -) -from ..types.self_service_profile import SelfServiceProfile -from ..types.self_service_profile_allowed_strategy_enum import SelfServiceProfileAllowedStrategyEnum -from ..types.self_service_profile_branding import SelfServiceProfileBranding -from ..types.self_service_profile_branding_properties import SelfServiceProfileBrandingProperties -from ..types.self_service_profile_description import SelfServiceProfileDescription -from ..types.self_service_profile_user_attribute import SelfServiceProfileUserAttribute -from ..types.self_service_profile_user_attributes import SelfServiceProfileUserAttributes -from ..types.update_self_service_profile_response_content import UpdateSelfServiceProfileResponseContent -from .raw_client import AsyncRawSelfServiceProfilesClient, RawSelfServiceProfilesClient - -if typing.TYPE_CHECKING: - from .custom_text.client import AsyncCustomTextClient, CustomTextClient - from .sso_ticket.client import AsyncSsoTicketClient, SsoTicketClient -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class SelfServiceProfilesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawSelfServiceProfilesClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._custom_text: typing.Optional[CustomTextClient] = None - self._sso_ticket: typing.Optional[SsoTicketClient] = None - - @property - def with_raw_response(self) -> RawSelfServiceProfilesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawSelfServiceProfilesClient - """ - return self._raw_client - - def list( - self, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - include_totals: typing.Optional[bool] = True, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[SelfServiceProfile, ListSelfServiceProfilesPaginatedResponseContent]: - """ - Retrieves self-service profiles. - - Parameters - ---------- - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. Defaults to 50. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[SelfServiceProfile, ListSelfServiceProfilesPaginatedResponseContent] - List of existing profiles. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.self_service_profiles.list( - page=1, - per_page=1, - include_totals=True, - ) - for item in response: - yield item - # alternatively, you can paginate page-by-page - for page in response.iter_pages(): - yield page - """ - return self._raw_client.list( - page=page, per_page=per_page, include_totals=include_totals, request_options=request_options - ) - - def create( - self, - *, - name: str, - description: typing.Optional[str] = OMIT, - branding: typing.Optional[SelfServiceProfileBrandingProperties] = OMIT, - allowed_strategies: typing.Optional[typing.Sequence[SelfServiceProfileAllowedStrategyEnum]] = OMIT, - user_attributes: typing.Optional[typing.Sequence[SelfServiceProfileUserAttribute]] = OMIT, - user_attribute_profile_id: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateSelfServiceProfileResponseContent: - """ - Creates a self-service profile. - - Parameters - ---------- - name : str - The name of the self-service Profile. - - description : typing.Optional[str] - The description of the self-service Profile. - - branding : typing.Optional[SelfServiceProfileBrandingProperties] - - allowed_strategies : typing.Optional[typing.Sequence[SelfServiceProfileAllowedStrategyEnum]] - List of IdP strategies that will be shown to users during the Self-Service Enterprise Configuration flow. Possible values: [`oidc`, `samlp`, `waad`, `google-apps`, `adfs`, `okta`, `auth0-samlp`, `okta-samlp`, `keycloak-samlp`, `pingfederate`] - - user_attributes : typing.Optional[typing.Sequence[SelfServiceProfileUserAttribute]] - List of attributes to be mapped that will be shown to the user during the Self-Service Enterprise Configuration flow. - - user_attribute_profile_id : typing.Optional[str] - ID of the user-attribute-profile to associate with this self-service profile. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateSelfServiceProfileResponseContent - Self-service profile successfully created. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.self_service_profiles.create( - name="name", - ) - """ - _response = self._raw_client.create( - name=name, - description=description, - branding=branding, - allowed_strategies=allowed_strategies, - user_attributes=user_attributes, - user_attribute_profile_id=user_attribute_profile_id, - request_options=request_options, - ) - return _response.data - - def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetSelfServiceProfileResponseContent: - """ - Retrieves a self-service profile by Id. - - Parameters - ---------- - id : str - The id of the self-service profile to retrieve - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetSelfServiceProfileResponseContent - Record for existing self-service profile. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.self_service_profiles.get( - id="id", - ) - """ - _response = self._raw_client.get(id, request_options=request_options) - return _response.data - - def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Deletes a self-service profile by Id. - - Parameters - ---------- - id : str - The id of the self-service profile to delete - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.self_service_profiles.delete( - id="id", - ) - """ - _response = self._raw_client.delete(id, request_options=request_options) - return _response.data - - def update( - self, - id: str, - *, - name: typing.Optional[str] = OMIT, - description: typing.Optional[SelfServiceProfileDescription] = OMIT, - branding: typing.Optional[SelfServiceProfileBranding] = OMIT, - allowed_strategies: typing.Optional[typing.Sequence[SelfServiceProfileAllowedStrategyEnum]] = OMIT, - user_attributes: typing.Optional[SelfServiceProfileUserAttributes] = OMIT, - user_attribute_profile_id: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateSelfServiceProfileResponseContent: - """ - Updates a self-service profile. - - Parameters - ---------- - id : str - The id of the self-service profile to update - - name : typing.Optional[str] - The name of the self-service Profile. - - description : typing.Optional[SelfServiceProfileDescription] - - branding : typing.Optional[SelfServiceProfileBranding] - - allowed_strategies : typing.Optional[typing.Sequence[SelfServiceProfileAllowedStrategyEnum]] - List of IdP strategies that will be shown to users during the Self-Service Enterprise Configuration flow. Possible values: [`oidc`, `samlp`, `waad`, `google-apps`, `adfs`, `okta`, `auth0-samlp`, `okta-samlp`, `keycloak-samlp`, `pingfederate`] - - user_attributes : typing.Optional[SelfServiceProfileUserAttributes] - - user_attribute_profile_id : typing.Optional[str] - ID of the user-attribute-profile to associate with this self-service profile. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateSelfServiceProfileResponseContent - Self-service profile successfully updated. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.self_service_profiles.update( - id="id", - ) - """ - _response = self._raw_client.update( - id, - name=name, - description=description, - branding=branding, - allowed_strategies=allowed_strategies, - user_attributes=user_attributes, - user_attribute_profile_id=user_attribute_profile_id, - request_options=request_options, - ) - return _response.data - - @property - def custom_text(self): - if self._custom_text is None: - from .custom_text.client import CustomTextClient # noqa: E402 - - self._custom_text = CustomTextClient(client_wrapper=self._client_wrapper) - return self._custom_text - - @property - def sso_ticket(self): - if self._sso_ticket is None: - from .sso_ticket.client import SsoTicketClient # noqa: E402 - - self._sso_ticket = SsoTicketClient(client_wrapper=self._client_wrapper) - return self._sso_ticket - - -class AsyncSelfServiceProfilesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawSelfServiceProfilesClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._custom_text: typing.Optional[AsyncCustomTextClient] = None - self._sso_ticket: typing.Optional[AsyncSsoTicketClient] = None - - @property - def with_raw_response(self) -> AsyncRawSelfServiceProfilesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawSelfServiceProfilesClient - """ - return self._raw_client - - async def list( - self, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - include_totals: typing.Optional[bool] = True, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[SelfServiceProfile, ListSelfServiceProfilesPaginatedResponseContent]: - """ - Retrieves self-service profiles. - - Parameters - ---------- - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. Defaults to 50. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[SelfServiceProfile, ListSelfServiceProfilesPaginatedResponseContent] - List of existing profiles. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.self_service_profiles.list( - page=1, - per_page=1, - include_totals=True, - ) - async for item in response: - yield item - - # alternatively, you can paginate page-by-page - async for page in response.iter_pages(): - yield page - - - asyncio.run(main()) - """ - return await self._raw_client.list( - page=page, per_page=per_page, include_totals=include_totals, request_options=request_options - ) - - async def create( - self, - *, - name: str, - description: typing.Optional[str] = OMIT, - branding: typing.Optional[SelfServiceProfileBrandingProperties] = OMIT, - allowed_strategies: typing.Optional[typing.Sequence[SelfServiceProfileAllowedStrategyEnum]] = OMIT, - user_attributes: typing.Optional[typing.Sequence[SelfServiceProfileUserAttribute]] = OMIT, - user_attribute_profile_id: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateSelfServiceProfileResponseContent: - """ - Creates a self-service profile. - - Parameters - ---------- - name : str - The name of the self-service Profile. - - description : typing.Optional[str] - The description of the self-service Profile. - - branding : typing.Optional[SelfServiceProfileBrandingProperties] - - allowed_strategies : typing.Optional[typing.Sequence[SelfServiceProfileAllowedStrategyEnum]] - List of IdP strategies that will be shown to users during the Self-Service Enterprise Configuration flow. Possible values: [`oidc`, `samlp`, `waad`, `google-apps`, `adfs`, `okta`, `auth0-samlp`, `okta-samlp`, `keycloak-samlp`, `pingfederate`] - - user_attributes : typing.Optional[typing.Sequence[SelfServiceProfileUserAttribute]] - List of attributes to be mapped that will be shown to the user during the Self-Service Enterprise Configuration flow. - - user_attribute_profile_id : typing.Optional[str] - ID of the user-attribute-profile to associate with this self-service profile. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateSelfServiceProfileResponseContent - Self-service profile successfully created. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.self_service_profiles.create( - name="name", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - name=name, - description=description, - branding=branding, - allowed_strategies=allowed_strategies, - user_attributes=user_attributes, - user_attribute_profile_id=user_attribute_profile_id, - request_options=request_options, - ) - return _response.data - - async def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetSelfServiceProfileResponseContent: - """ - Retrieves a self-service profile by Id. - - Parameters - ---------- - id : str - The id of the self-service profile to retrieve - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetSelfServiceProfileResponseContent - Record for existing self-service profile. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.self_service_profiles.get( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.get(id, request_options=request_options) - return _response.data - - async def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Deletes a self-service profile by Id. - - Parameters - ---------- - id : str - The id of the self-service profile to delete - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.self_service_profiles.delete( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete(id, request_options=request_options) - return _response.data - - async def update( - self, - id: str, - *, - name: typing.Optional[str] = OMIT, - description: typing.Optional[SelfServiceProfileDescription] = OMIT, - branding: typing.Optional[SelfServiceProfileBranding] = OMIT, - allowed_strategies: typing.Optional[typing.Sequence[SelfServiceProfileAllowedStrategyEnum]] = OMIT, - user_attributes: typing.Optional[SelfServiceProfileUserAttributes] = OMIT, - user_attribute_profile_id: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateSelfServiceProfileResponseContent: - """ - Updates a self-service profile. - - Parameters - ---------- - id : str - The id of the self-service profile to update - - name : typing.Optional[str] - The name of the self-service Profile. - - description : typing.Optional[SelfServiceProfileDescription] - - branding : typing.Optional[SelfServiceProfileBranding] - - allowed_strategies : typing.Optional[typing.Sequence[SelfServiceProfileAllowedStrategyEnum]] - List of IdP strategies that will be shown to users during the Self-Service Enterprise Configuration flow. Possible values: [`oidc`, `samlp`, `waad`, `google-apps`, `adfs`, `okta`, `auth0-samlp`, `okta-samlp`, `keycloak-samlp`, `pingfederate`] - - user_attributes : typing.Optional[SelfServiceProfileUserAttributes] - - user_attribute_profile_id : typing.Optional[str] - ID of the user-attribute-profile to associate with this self-service profile. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateSelfServiceProfileResponseContent - Self-service profile successfully updated. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.self_service_profiles.update( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.update( - id, - name=name, - description=description, - branding=branding, - allowed_strategies=allowed_strategies, - user_attributes=user_attributes, - user_attribute_profile_id=user_attribute_profile_id, - request_options=request_options, - ) - return _response.data - - @property - def custom_text(self): - if self._custom_text is None: - from .custom_text.client import AsyncCustomTextClient # noqa: E402 - - self._custom_text = AsyncCustomTextClient(client_wrapper=self._client_wrapper) - return self._custom_text - - @property - def sso_ticket(self): - if self._sso_ticket is None: - from .sso_ticket.client import AsyncSsoTicketClient # noqa: E402 - - self._sso_ticket = AsyncSsoTicketClient(client_wrapper=self._client_wrapper) - return self._sso_ticket diff --git a/src/auth0/management/self_service_profiles/custom_text/__init__.py b/src/auth0/management/self_service_profiles/custom_text/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/self_service_profiles/custom_text/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/self_service_profiles/custom_text/client.py b/src/auth0/management/self_service_profiles/custom_text/client.py deleted file mode 100644 index 1d0303dd..00000000 --- a/src/auth0/management/self_service_profiles/custom_text/client.py +++ /dev/null @@ -1,259 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.request_options import RequestOptions -from ...types.list_self_service_profile_custom_text_response_content import ( - ListSelfServiceProfileCustomTextResponseContent, -) -from ...types.self_service_profile_custom_text_language_enum import SelfServiceProfileCustomTextLanguageEnum -from ...types.self_service_profile_custom_text_page_enum import SelfServiceProfileCustomTextPageEnum -from ...types.set_self_service_profile_custom_text_request_content import SetSelfServiceProfileCustomTextRequestContent -from ...types.set_self_service_profile_custom_text_response_content import ( - SetSelfServiceProfileCustomTextResponseContent, -) -from .raw_client import AsyncRawCustomTextClient, RawCustomTextClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class CustomTextClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawCustomTextClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawCustomTextClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawCustomTextClient - """ - return self._raw_client - - def list( - self, - id: str, - language: SelfServiceProfileCustomTextLanguageEnum, - page: SelfServiceProfileCustomTextPageEnum, - *, - request_options: typing.Optional[RequestOptions] = None, - ) -> ListSelfServiceProfileCustomTextResponseContent: - """ - Retrieves text customizations for a given self-service profile, language and Self-Service Enterprise Configuration flow page. - - Parameters - ---------- - id : str - The id of the self-service profile. - - language : SelfServiceProfileCustomTextLanguageEnum - The language of the custom text. - - page : SelfServiceProfileCustomTextPageEnum - The page where the custom text is shown. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - ListSelfServiceProfileCustomTextResponseContent - Retrieved custom text. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.self_service_profiles.custom_text.list( - id="id", - language="en", - page="get-started", - ) - """ - _response = self._raw_client.list(id, language, page, request_options=request_options) - return _response.data - - def set( - self, - id: str, - language: SelfServiceProfileCustomTextLanguageEnum, - page: SelfServiceProfileCustomTextPageEnum, - *, - request: SetSelfServiceProfileCustomTextRequestContent, - request_options: typing.Optional[RequestOptions] = None, - ) -> SetSelfServiceProfileCustomTextResponseContent: - """ - Updates text customizations for a given self-service profile, language and Self-Service Enterprise Configuration flow page. - - Parameters - ---------- - id : str - The id of the self-service profile. - - language : SelfServiceProfileCustomTextLanguageEnum - The language of the custom text. - - page : SelfServiceProfileCustomTextPageEnum - The page where the custom text is shown. - - request : SetSelfServiceProfileCustomTextRequestContent - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SetSelfServiceProfileCustomTextResponseContent - Updated custom text. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.self_service_profiles.custom_text.set( - id="id", - language="en", - page="get-started", - request={"key": "value"}, - ) - """ - _response = self._raw_client.set(id, language, page, request=request, request_options=request_options) - return _response.data - - -class AsyncCustomTextClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawCustomTextClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawCustomTextClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawCustomTextClient - """ - return self._raw_client - - async def list( - self, - id: str, - language: SelfServiceProfileCustomTextLanguageEnum, - page: SelfServiceProfileCustomTextPageEnum, - *, - request_options: typing.Optional[RequestOptions] = None, - ) -> ListSelfServiceProfileCustomTextResponseContent: - """ - Retrieves text customizations for a given self-service profile, language and Self-Service Enterprise Configuration flow page. - - Parameters - ---------- - id : str - The id of the self-service profile. - - language : SelfServiceProfileCustomTextLanguageEnum - The language of the custom text. - - page : SelfServiceProfileCustomTextPageEnum - The page where the custom text is shown. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - ListSelfServiceProfileCustomTextResponseContent - Retrieved custom text. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.self_service_profiles.custom_text.list( - id="id", - language="en", - page="get-started", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list(id, language, page, request_options=request_options) - return _response.data - - async def set( - self, - id: str, - language: SelfServiceProfileCustomTextLanguageEnum, - page: SelfServiceProfileCustomTextPageEnum, - *, - request: SetSelfServiceProfileCustomTextRequestContent, - request_options: typing.Optional[RequestOptions] = None, - ) -> SetSelfServiceProfileCustomTextResponseContent: - """ - Updates text customizations for a given self-service profile, language and Self-Service Enterprise Configuration flow page. - - Parameters - ---------- - id : str - The id of the self-service profile. - - language : SelfServiceProfileCustomTextLanguageEnum - The language of the custom text. - - page : SelfServiceProfileCustomTextPageEnum - The page where the custom text is shown. - - request : SetSelfServiceProfileCustomTextRequestContent - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SetSelfServiceProfileCustomTextResponseContent - Updated custom text. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.self_service_profiles.custom_text.set( - id="id", - language="en", - page="get-started", - request={"key": "value"}, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.set(id, language, page, request=request, request_options=request_options) - return _response.data diff --git a/src/auth0/management/self_service_profiles/custom_text/raw_client.py b/src/auth0/management/self_service_profiles/custom_text/raw_client.py deleted file mode 100644 index 0168af14..00000000 --- a/src/auth0/management/self_service_profiles/custom_text/raw_client.py +++ /dev/null @@ -1,441 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ...core.api_error import ApiError -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.http_response import AsyncHttpResponse, HttpResponse -from ...core.jsonable_encoder import quote_path_param -from ...core.parse_error import ParsingError -from ...core.pydantic_utilities import parse_obj_as -from ...core.request_options import RequestOptions -from ...errors.forbidden_error import ForbiddenError -from ...errors.not_found_error import NotFoundError -from ...errors.too_many_requests_error import TooManyRequestsError -from ...errors.unauthorized_error import UnauthorizedError -from ...types.list_self_service_profile_custom_text_response_content import ( - ListSelfServiceProfileCustomTextResponseContent, -) -from ...types.self_service_profile_custom_text_language_enum import SelfServiceProfileCustomTextLanguageEnum -from ...types.self_service_profile_custom_text_page_enum import SelfServiceProfileCustomTextPageEnum -from ...types.set_self_service_profile_custom_text_request_content import SetSelfServiceProfileCustomTextRequestContent -from ...types.set_self_service_profile_custom_text_response_content import ( - SetSelfServiceProfileCustomTextResponseContent, -) -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawCustomTextClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - id: str, - language: SelfServiceProfileCustomTextLanguageEnum, - page: SelfServiceProfileCustomTextPageEnum, - *, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[ListSelfServiceProfileCustomTextResponseContent]: - """ - Retrieves text customizations for a given self-service profile, language and Self-Service Enterprise Configuration flow page. - - Parameters - ---------- - id : str - The id of the self-service profile. - - language : SelfServiceProfileCustomTextLanguageEnum - The language of the custom text. - - page : SelfServiceProfileCustomTextPageEnum - The page where the custom text is shown. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[ListSelfServiceProfileCustomTextResponseContent] - Retrieved custom text. - """ - _response = self._client_wrapper.httpx_client.request( - f"self-service-profiles/{quote_path_param(id)}/custom-text/{quote_path_param(language)}/{quote_path_param(page)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - ListSelfServiceProfileCustomTextResponseContent, - parse_obj_as( - type_=ListSelfServiceProfileCustomTextResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def set( - self, - id: str, - language: SelfServiceProfileCustomTextLanguageEnum, - page: SelfServiceProfileCustomTextPageEnum, - *, - request: SetSelfServiceProfileCustomTextRequestContent, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[SetSelfServiceProfileCustomTextResponseContent]: - """ - Updates text customizations for a given self-service profile, language and Self-Service Enterprise Configuration flow page. - - Parameters - ---------- - id : str - The id of the self-service profile. - - language : SelfServiceProfileCustomTextLanguageEnum - The language of the custom text. - - page : SelfServiceProfileCustomTextPageEnum - The page where the custom text is shown. - - request : SetSelfServiceProfileCustomTextRequestContent - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[SetSelfServiceProfileCustomTextResponseContent] - Updated custom text. - """ - _response = self._client_wrapper.httpx_client.request( - f"self-service-profiles/{quote_path_param(id)}/custom-text/{quote_path_param(language)}/{quote_path_param(page)}", - method="PUT", - json=request, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - SetSelfServiceProfileCustomTextResponseContent, - parse_obj_as( - type_=SetSelfServiceProfileCustomTextResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawCustomTextClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - id: str, - language: SelfServiceProfileCustomTextLanguageEnum, - page: SelfServiceProfileCustomTextPageEnum, - *, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[ListSelfServiceProfileCustomTextResponseContent]: - """ - Retrieves text customizations for a given self-service profile, language and Self-Service Enterprise Configuration flow page. - - Parameters - ---------- - id : str - The id of the self-service profile. - - language : SelfServiceProfileCustomTextLanguageEnum - The language of the custom text. - - page : SelfServiceProfileCustomTextPageEnum - The page where the custom text is shown. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[ListSelfServiceProfileCustomTextResponseContent] - Retrieved custom text. - """ - _response = await self._client_wrapper.httpx_client.request( - f"self-service-profiles/{quote_path_param(id)}/custom-text/{quote_path_param(language)}/{quote_path_param(page)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - ListSelfServiceProfileCustomTextResponseContent, - parse_obj_as( - type_=ListSelfServiceProfileCustomTextResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def set( - self, - id: str, - language: SelfServiceProfileCustomTextLanguageEnum, - page: SelfServiceProfileCustomTextPageEnum, - *, - request: SetSelfServiceProfileCustomTextRequestContent, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[SetSelfServiceProfileCustomTextResponseContent]: - """ - Updates text customizations for a given self-service profile, language and Self-Service Enterprise Configuration flow page. - - Parameters - ---------- - id : str - The id of the self-service profile. - - language : SelfServiceProfileCustomTextLanguageEnum - The language of the custom text. - - page : SelfServiceProfileCustomTextPageEnum - The page where the custom text is shown. - - request : SetSelfServiceProfileCustomTextRequestContent - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[SetSelfServiceProfileCustomTextResponseContent] - Updated custom text. - """ - _response = await self._client_wrapper.httpx_client.request( - f"self-service-profiles/{quote_path_param(id)}/custom-text/{quote_path_param(language)}/{quote_path_param(page)}", - method="PUT", - json=request, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - SetSelfServiceProfileCustomTextResponseContent, - parse_obj_as( - type_=SetSelfServiceProfileCustomTextResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/self_service_profiles/raw_client.py b/src/auth0/management/self_service_profiles/raw_client.py deleted file mode 100644 index a66ee4ce..00000000 --- a/src/auth0/management/self_service_profiles/raw_client.py +++ /dev/null @@ -1,1273 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ..core.api_error import ApiError -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.http_response import AsyncHttpResponse, HttpResponse -from ..core.jsonable_encoder import quote_path_param -from ..core.pagination import AsyncPager, SyncPager -from ..core.parse_error import ParsingError -from ..core.pydantic_utilities import parse_obj_as -from ..core.request_options import RequestOptions -from ..core.serialization import convert_and_respect_annotation_metadata -from ..errors.bad_request_error import BadRequestError -from ..errors.conflict_error import ConflictError -from ..errors.forbidden_error import ForbiddenError -from ..errors.internal_server_error import InternalServerError -from ..errors.not_found_error import NotFoundError -from ..errors.too_many_requests_error import TooManyRequestsError -from ..errors.unauthorized_error import UnauthorizedError -from ..types.create_self_service_profile_response_content import CreateSelfServiceProfileResponseContent -from ..types.get_self_service_profile_response_content import GetSelfServiceProfileResponseContent -from ..types.list_self_service_profiles_paginated_response_content import ( - ListSelfServiceProfilesPaginatedResponseContent, -) -from ..types.self_service_profile import SelfServiceProfile -from ..types.self_service_profile_allowed_strategy_enum import SelfServiceProfileAllowedStrategyEnum -from ..types.self_service_profile_branding import SelfServiceProfileBranding -from ..types.self_service_profile_branding_properties import SelfServiceProfileBrandingProperties -from ..types.self_service_profile_description import SelfServiceProfileDescription -from ..types.self_service_profile_user_attribute import SelfServiceProfileUserAttribute -from ..types.self_service_profile_user_attributes import SelfServiceProfileUserAttributes -from ..types.update_self_service_profile_response_content import UpdateSelfServiceProfileResponseContent -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawSelfServiceProfilesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - include_totals: typing.Optional[bool] = True, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[SelfServiceProfile, ListSelfServiceProfilesPaginatedResponseContent]: - """ - Retrieves self-service profiles. - - Parameters - ---------- - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. Defaults to 50. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[SelfServiceProfile, ListSelfServiceProfilesPaginatedResponseContent] - List of existing profiles. - """ - page = page if page is not None else 0 - - _response = self._client_wrapper.httpx_client.request( - "self-service-profiles", - method="GET", - params={ - "page": page, - "per_page": per_page, - "include_totals": include_totals, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListSelfServiceProfilesPaginatedResponseContent, - parse_obj_as( - type_=ListSelfServiceProfilesPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.self_service_profiles - _has_next = len(_items or []) > 0 - _get_next = lambda: self.list( - page=page + 1, - per_page=per_page, - include_totals=include_totals, - request_options=request_options, - ) - return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 500: - raise InternalServerError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - *, - name: str, - description: typing.Optional[str] = OMIT, - branding: typing.Optional[SelfServiceProfileBrandingProperties] = OMIT, - allowed_strategies: typing.Optional[typing.Sequence[SelfServiceProfileAllowedStrategyEnum]] = OMIT, - user_attributes: typing.Optional[typing.Sequence[SelfServiceProfileUserAttribute]] = OMIT, - user_attribute_profile_id: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[CreateSelfServiceProfileResponseContent]: - """ - Creates a self-service profile. - - Parameters - ---------- - name : str - The name of the self-service Profile. - - description : typing.Optional[str] - The description of the self-service Profile. - - branding : typing.Optional[SelfServiceProfileBrandingProperties] - - allowed_strategies : typing.Optional[typing.Sequence[SelfServiceProfileAllowedStrategyEnum]] - List of IdP strategies that will be shown to users during the Self-Service Enterprise Configuration flow. Possible values: [`oidc`, `samlp`, `waad`, `google-apps`, `adfs`, `okta`, `auth0-samlp`, `okta-samlp`, `keycloak-samlp`, `pingfederate`] - - user_attributes : typing.Optional[typing.Sequence[SelfServiceProfileUserAttribute]] - List of attributes to be mapped that will be shown to the user during the Self-Service Enterprise Configuration flow. - - user_attribute_profile_id : typing.Optional[str] - ID of the user-attribute-profile to associate with this self-service profile. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CreateSelfServiceProfileResponseContent] - Self-service profile successfully created. - """ - _response = self._client_wrapper.httpx_client.request( - "self-service-profiles", - method="POST", - json={ - "name": name, - "description": description, - "branding": convert_and_respect_annotation_metadata( - object_=branding, annotation=SelfServiceProfileBrandingProperties, direction="write" - ), - "allowed_strategies": allowed_strategies, - "user_attributes": convert_and_respect_annotation_metadata( - object_=user_attributes, - annotation=typing.Sequence[SelfServiceProfileUserAttribute], - direction="write", - ), - "user_attribute_profile_id": user_attribute_profile_id, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateSelfServiceProfileResponseContent, - parse_obj_as( - type_=CreateSelfServiceProfileResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 500: - raise InternalServerError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetSelfServiceProfileResponseContent]: - """ - Retrieves a self-service profile by Id. - - Parameters - ---------- - id : str - The id of the self-service profile to retrieve - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetSelfServiceProfileResponseContent] - Record for existing self-service profile. - """ - _response = self._client_wrapper.httpx_client.request( - f"self-service-profiles/{quote_path_param(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetSelfServiceProfileResponseContent, - parse_obj_as( - type_=GetSelfServiceProfileResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 500: - raise InternalServerError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[None]: - """ - Deletes a self-service profile by Id. - - Parameters - ---------- - id : str - The id of the self-service profile to delete - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"self-service-profiles/{quote_path_param(id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 500: - raise InternalServerError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def update( - self, - id: str, - *, - name: typing.Optional[str] = OMIT, - description: typing.Optional[SelfServiceProfileDescription] = OMIT, - branding: typing.Optional[SelfServiceProfileBranding] = OMIT, - allowed_strategies: typing.Optional[typing.Sequence[SelfServiceProfileAllowedStrategyEnum]] = OMIT, - user_attributes: typing.Optional[SelfServiceProfileUserAttributes] = OMIT, - user_attribute_profile_id: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[UpdateSelfServiceProfileResponseContent]: - """ - Updates a self-service profile. - - Parameters - ---------- - id : str - The id of the self-service profile to update - - name : typing.Optional[str] - The name of the self-service Profile. - - description : typing.Optional[SelfServiceProfileDescription] - - branding : typing.Optional[SelfServiceProfileBranding] - - allowed_strategies : typing.Optional[typing.Sequence[SelfServiceProfileAllowedStrategyEnum]] - List of IdP strategies that will be shown to users during the Self-Service Enterprise Configuration flow. Possible values: [`oidc`, `samlp`, `waad`, `google-apps`, `adfs`, `okta`, `auth0-samlp`, `okta-samlp`, `keycloak-samlp`, `pingfederate`] - - user_attributes : typing.Optional[SelfServiceProfileUserAttributes] - - user_attribute_profile_id : typing.Optional[str] - ID of the user-attribute-profile to associate with this self-service profile. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[UpdateSelfServiceProfileResponseContent] - Self-service profile successfully updated. - """ - _response = self._client_wrapper.httpx_client.request( - f"self-service-profiles/{quote_path_param(id)}", - method="PATCH", - json={ - "name": name, - "description": description, - "branding": convert_and_respect_annotation_metadata( - object_=branding, annotation=typing.Optional[SelfServiceProfileBranding], direction="write" - ), - "allowed_strategies": allowed_strategies, - "user_attributes": convert_and_respect_annotation_metadata( - object_=user_attributes, - annotation=typing.Optional[SelfServiceProfileUserAttributes], - direction="write", - ), - "user_attribute_profile_id": user_attribute_profile_id, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateSelfServiceProfileResponseContent, - parse_obj_as( - type_=UpdateSelfServiceProfileResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 500: - raise InternalServerError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawSelfServiceProfilesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - include_totals: typing.Optional[bool] = True, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[SelfServiceProfile, ListSelfServiceProfilesPaginatedResponseContent]: - """ - Retrieves self-service profiles. - - Parameters - ---------- - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. Defaults to 50. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[SelfServiceProfile, ListSelfServiceProfilesPaginatedResponseContent] - List of existing profiles. - """ - page = page if page is not None else 0 - - _response = await self._client_wrapper.httpx_client.request( - "self-service-profiles", - method="GET", - params={ - "page": page, - "per_page": per_page, - "include_totals": include_totals, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListSelfServiceProfilesPaginatedResponseContent, - parse_obj_as( - type_=ListSelfServiceProfilesPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.self_service_profiles - _has_next = len(_items or []) > 0 - - async def _get_next(): - return await self.list( - page=page + 1, - per_page=per_page, - include_totals=include_totals, - request_options=request_options, - ) - - return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 500: - raise InternalServerError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - *, - name: str, - description: typing.Optional[str] = OMIT, - branding: typing.Optional[SelfServiceProfileBrandingProperties] = OMIT, - allowed_strategies: typing.Optional[typing.Sequence[SelfServiceProfileAllowedStrategyEnum]] = OMIT, - user_attributes: typing.Optional[typing.Sequence[SelfServiceProfileUserAttribute]] = OMIT, - user_attribute_profile_id: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[CreateSelfServiceProfileResponseContent]: - """ - Creates a self-service profile. - - Parameters - ---------- - name : str - The name of the self-service Profile. - - description : typing.Optional[str] - The description of the self-service Profile. - - branding : typing.Optional[SelfServiceProfileBrandingProperties] - - allowed_strategies : typing.Optional[typing.Sequence[SelfServiceProfileAllowedStrategyEnum]] - List of IdP strategies that will be shown to users during the Self-Service Enterprise Configuration flow. Possible values: [`oidc`, `samlp`, `waad`, `google-apps`, `adfs`, `okta`, `auth0-samlp`, `okta-samlp`, `keycloak-samlp`, `pingfederate`] - - user_attributes : typing.Optional[typing.Sequence[SelfServiceProfileUserAttribute]] - List of attributes to be mapped that will be shown to the user during the Self-Service Enterprise Configuration flow. - - user_attribute_profile_id : typing.Optional[str] - ID of the user-attribute-profile to associate with this self-service profile. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CreateSelfServiceProfileResponseContent] - Self-service profile successfully created. - """ - _response = await self._client_wrapper.httpx_client.request( - "self-service-profiles", - method="POST", - json={ - "name": name, - "description": description, - "branding": convert_and_respect_annotation_metadata( - object_=branding, annotation=SelfServiceProfileBrandingProperties, direction="write" - ), - "allowed_strategies": allowed_strategies, - "user_attributes": convert_and_respect_annotation_metadata( - object_=user_attributes, - annotation=typing.Sequence[SelfServiceProfileUserAttribute], - direction="write", - ), - "user_attribute_profile_id": user_attribute_profile_id, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateSelfServiceProfileResponseContent, - parse_obj_as( - type_=CreateSelfServiceProfileResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 500: - raise InternalServerError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetSelfServiceProfileResponseContent]: - """ - Retrieves a self-service profile by Id. - - Parameters - ---------- - id : str - The id of the self-service profile to retrieve - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetSelfServiceProfileResponseContent] - Record for existing self-service profile. - """ - _response = await self._client_wrapper.httpx_client.request( - f"self-service-profiles/{quote_path_param(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetSelfServiceProfileResponseContent, - parse_obj_as( - type_=GetSelfServiceProfileResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 500: - raise InternalServerError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def delete( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Deletes a self-service profile by Id. - - Parameters - ---------- - id : str - The id of the self-service profile to delete - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"self-service-profiles/{quote_path_param(id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 500: - raise InternalServerError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def update( - self, - id: str, - *, - name: typing.Optional[str] = OMIT, - description: typing.Optional[SelfServiceProfileDescription] = OMIT, - branding: typing.Optional[SelfServiceProfileBranding] = OMIT, - allowed_strategies: typing.Optional[typing.Sequence[SelfServiceProfileAllowedStrategyEnum]] = OMIT, - user_attributes: typing.Optional[SelfServiceProfileUserAttributes] = OMIT, - user_attribute_profile_id: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[UpdateSelfServiceProfileResponseContent]: - """ - Updates a self-service profile. - - Parameters - ---------- - id : str - The id of the self-service profile to update - - name : typing.Optional[str] - The name of the self-service Profile. - - description : typing.Optional[SelfServiceProfileDescription] - - branding : typing.Optional[SelfServiceProfileBranding] - - allowed_strategies : typing.Optional[typing.Sequence[SelfServiceProfileAllowedStrategyEnum]] - List of IdP strategies that will be shown to users during the Self-Service Enterprise Configuration flow. Possible values: [`oidc`, `samlp`, `waad`, `google-apps`, `adfs`, `okta`, `auth0-samlp`, `okta-samlp`, `keycloak-samlp`, `pingfederate`] - - user_attributes : typing.Optional[SelfServiceProfileUserAttributes] - - user_attribute_profile_id : typing.Optional[str] - ID of the user-attribute-profile to associate with this self-service profile. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[UpdateSelfServiceProfileResponseContent] - Self-service profile successfully updated. - """ - _response = await self._client_wrapper.httpx_client.request( - f"self-service-profiles/{quote_path_param(id)}", - method="PATCH", - json={ - "name": name, - "description": description, - "branding": convert_and_respect_annotation_metadata( - object_=branding, annotation=typing.Optional[SelfServiceProfileBranding], direction="write" - ), - "allowed_strategies": allowed_strategies, - "user_attributes": convert_and_respect_annotation_metadata( - object_=user_attributes, - annotation=typing.Optional[SelfServiceProfileUserAttributes], - direction="write", - ), - "user_attribute_profile_id": user_attribute_profile_id, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateSelfServiceProfileResponseContent, - parse_obj_as( - type_=UpdateSelfServiceProfileResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 500: - raise InternalServerError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/self_service_profiles/sso_ticket/__init__.py b/src/auth0/management/self_service_profiles/sso_ticket/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/self_service_profiles/sso_ticket/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/self_service_profiles/sso_ticket/client.py b/src/auth0/management/self_service_profiles/sso_ticket/client.py deleted file mode 100644 index fadf46db..00000000 --- a/src/auth0/management/self_service_profiles/sso_ticket/client.py +++ /dev/null @@ -1,320 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.request_options import RequestOptions -from ...types.create_self_service_profile_sso_ticket_response_content import ( - CreateSelfServiceProfileSsoTicketResponseContent, -) -from ...types.self_service_profile_sso_ticket_connection_config import SelfServiceProfileSsoTicketConnectionConfig -from ...types.self_service_profile_sso_ticket_domain_aliases_config import ( - SelfServiceProfileSsoTicketDomainAliasesConfig, -) -from ...types.self_service_profile_sso_ticket_enabled_features import SelfServiceProfileSsoTicketEnabledFeatures -from ...types.self_service_profile_sso_ticket_enabled_organization import SelfServiceProfileSsoTicketEnabledOrganization -from ...types.self_service_profile_sso_ticket_provisioning_config import SelfServiceProfileSsoTicketProvisioningConfig -from ...types.self_service_profile_sso_ticket_universal_logout_config import ( - SelfServiceProfileSsoTicketUniversalLogoutConfig, -) -from ...types.third_party_client_access_config import ThirdPartyClientAccessConfig -from .raw_client import AsyncRawSsoTicketClient, RawSsoTicketClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class SsoTicketClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawSsoTicketClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawSsoTicketClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawSsoTicketClient - """ - return self._raw_client - - def create( - self, - id: str, - *, - connection_id: typing.Optional[str] = OMIT, - connection_config: typing.Optional[SelfServiceProfileSsoTicketConnectionConfig] = OMIT, - enabled_clients: typing.Optional[typing.Sequence[str]] = OMIT, - enabled_organizations: typing.Optional[typing.Sequence[SelfServiceProfileSsoTicketEnabledOrganization]] = OMIT, - ttl_sec: typing.Optional[int] = OMIT, - domain_aliases_config: typing.Optional[SelfServiceProfileSsoTicketDomainAliasesConfig] = OMIT, - provisioning_config: typing.Optional[SelfServiceProfileSsoTicketProvisioningConfig] = OMIT, - use_for_organization_discovery: typing.Optional[bool] = OMIT, - third_party_client_access_config: typing.Optional[ThirdPartyClientAccessConfig] = OMIT, - universal_logout_config: typing.Optional[SelfServiceProfileSsoTicketUniversalLogoutConfig] = OMIT, - enabled_features: typing.Optional[SelfServiceProfileSsoTicketEnabledFeatures] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateSelfServiceProfileSsoTicketResponseContent: - """ - Creates an access ticket to initiate the Self-Service Enterprise Configuration flow using a self-service profile. - - Parameters - ---------- - id : str - The id of the self-service profile to retrieve - - connection_id : typing.Optional[str] - If provided, this will allow editing of the provided connection during the Self-Service Enterprise Configuration flow - - connection_config : typing.Optional[SelfServiceProfileSsoTicketConnectionConfig] - - enabled_clients : typing.Optional[typing.Sequence[str]] - List of client_ids that the connection will be enabled for. - - enabled_organizations : typing.Optional[typing.Sequence[SelfServiceProfileSsoTicketEnabledOrganization]] - List of organizations that the connection will be enabled for. - - ttl_sec : typing.Optional[int] - Number of seconds for which the ticket is valid before expiration. If unspecified or set to 0, this value defaults to 432000 seconds (5 days). - - domain_aliases_config : typing.Optional[SelfServiceProfileSsoTicketDomainAliasesConfig] - - provisioning_config : typing.Optional[SelfServiceProfileSsoTicketProvisioningConfig] - - use_for_organization_discovery : typing.Optional[bool] - Indicates whether a verified domain should be used for organization discovery during authentication. - - third_party_client_access_config : typing.Optional[ThirdPartyClientAccessConfig] - - universal_logout_config : typing.Optional[SelfServiceProfileSsoTicketUniversalLogoutConfig] - - enabled_features : typing.Optional[SelfServiceProfileSsoTicketEnabledFeatures] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateSelfServiceProfileSsoTicketResponseContent - Self-Service Enterprise Configuration Access Ticket successfully created. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.self_service_profiles.sso_ticket.create( - id="id", - ) - """ - _response = self._raw_client.create( - id, - connection_id=connection_id, - connection_config=connection_config, - enabled_clients=enabled_clients, - enabled_organizations=enabled_organizations, - ttl_sec=ttl_sec, - domain_aliases_config=domain_aliases_config, - provisioning_config=provisioning_config, - use_for_organization_discovery=use_for_organization_discovery, - third_party_client_access_config=third_party_client_access_config, - universal_logout_config=universal_logout_config, - enabled_features=enabled_features, - request_options=request_options, - ) - return _response.data - - def revoke(self, profile_id: str, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Revokes a Self-Service Enterprise Configuration access ticket and invalidates associated sessions. The ticket will no longer be accepted to initiate a Self-Service Enterprise Configuration session. If any users have already started a session through this ticket, their session will be terminated. Clients should expect a `202 Accepted` response upon successful processing, indicating that the request has been acknowledged and that the revocation is underway but may not be fully completed at the time of response. If the specified ticket does not exist, a `202 Accepted` response is also returned, signaling that no further action is required. - Clients should treat these `202` responses as an acknowledgment that the request has been accepted and is in progress, even if the ticket was not found. - - Parameters - ---------- - profile_id : str - The id of the self-service profile - - id : str - The id of the ticket to revoke - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.self_service_profiles.sso_ticket.revoke( - profile_id="profileId", - id="id", - ) - """ - _response = self._raw_client.revoke(profile_id, id, request_options=request_options) - return _response.data - - -class AsyncSsoTicketClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawSsoTicketClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawSsoTicketClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawSsoTicketClient - """ - return self._raw_client - - async def create( - self, - id: str, - *, - connection_id: typing.Optional[str] = OMIT, - connection_config: typing.Optional[SelfServiceProfileSsoTicketConnectionConfig] = OMIT, - enabled_clients: typing.Optional[typing.Sequence[str]] = OMIT, - enabled_organizations: typing.Optional[typing.Sequence[SelfServiceProfileSsoTicketEnabledOrganization]] = OMIT, - ttl_sec: typing.Optional[int] = OMIT, - domain_aliases_config: typing.Optional[SelfServiceProfileSsoTicketDomainAliasesConfig] = OMIT, - provisioning_config: typing.Optional[SelfServiceProfileSsoTicketProvisioningConfig] = OMIT, - use_for_organization_discovery: typing.Optional[bool] = OMIT, - third_party_client_access_config: typing.Optional[ThirdPartyClientAccessConfig] = OMIT, - universal_logout_config: typing.Optional[SelfServiceProfileSsoTicketUniversalLogoutConfig] = OMIT, - enabled_features: typing.Optional[SelfServiceProfileSsoTicketEnabledFeatures] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateSelfServiceProfileSsoTicketResponseContent: - """ - Creates an access ticket to initiate the Self-Service Enterprise Configuration flow using a self-service profile. - - Parameters - ---------- - id : str - The id of the self-service profile to retrieve - - connection_id : typing.Optional[str] - If provided, this will allow editing of the provided connection during the Self-Service Enterprise Configuration flow - - connection_config : typing.Optional[SelfServiceProfileSsoTicketConnectionConfig] - - enabled_clients : typing.Optional[typing.Sequence[str]] - List of client_ids that the connection will be enabled for. - - enabled_organizations : typing.Optional[typing.Sequence[SelfServiceProfileSsoTicketEnabledOrganization]] - List of organizations that the connection will be enabled for. - - ttl_sec : typing.Optional[int] - Number of seconds for which the ticket is valid before expiration. If unspecified or set to 0, this value defaults to 432000 seconds (5 days). - - domain_aliases_config : typing.Optional[SelfServiceProfileSsoTicketDomainAliasesConfig] - - provisioning_config : typing.Optional[SelfServiceProfileSsoTicketProvisioningConfig] - - use_for_organization_discovery : typing.Optional[bool] - Indicates whether a verified domain should be used for organization discovery during authentication. - - third_party_client_access_config : typing.Optional[ThirdPartyClientAccessConfig] - - universal_logout_config : typing.Optional[SelfServiceProfileSsoTicketUniversalLogoutConfig] - - enabled_features : typing.Optional[SelfServiceProfileSsoTicketEnabledFeatures] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateSelfServiceProfileSsoTicketResponseContent - Self-Service Enterprise Configuration Access Ticket successfully created. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.self_service_profiles.sso_ticket.create( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - id, - connection_id=connection_id, - connection_config=connection_config, - enabled_clients=enabled_clients, - enabled_organizations=enabled_organizations, - ttl_sec=ttl_sec, - domain_aliases_config=domain_aliases_config, - provisioning_config=provisioning_config, - use_for_organization_discovery=use_for_organization_discovery, - third_party_client_access_config=third_party_client_access_config, - universal_logout_config=universal_logout_config, - enabled_features=enabled_features, - request_options=request_options, - ) - return _response.data - - async def revoke( - self, profile_id: str, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> None: - """ - Revokes a Self-Service Enterprise Configuration access ticket and invalidates associated sessions. The ticket will no longer be accepted to initiate a Self-Service Enterprise Configuration session. If any users have already started a session through this ticket, their session will be terminated. Clients should expect a `202 Accepted` response upon successful processing, indicating that the request has been acknowledged and that the revocation is underway but may not be fully completed at the time of response. If the specified ticket does not exist, a `202 Accepted` response is also returned, signaling that no further action is required. - Clients should treat these `202` responses as an acknowledgment that the request has been accepted and is in progress, even if the ticket was not found. - - Parameters - ---------- - profile_id : str - The id of the self-service profile - - id : str - The id of the ticket to revoke - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.self_service_profiles.sso_ticket.revoke( - profile_id="profileId", - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.revoke(profile_id, id, request_options=request_options) - return _response.data diff --git a/src/auth0/management/self_service_profiles/sso_ticket/raw_client.py b/src/auth0/management/self_service_profiles/sso_ticket/raw_client.py deleted file mode 100644 index fa0021d9..00000000 --- a/src/auth0/management/self_service_profiles/sso_ticket/raw_client.py +++ /dev/null @@ -1,546 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ...core.api_error import ApiError -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.http_response import AsyncHttpResponse, HttpResponse -from ...core.jsonable_encoder import quote_path_param -from ...core.parse_error import ParsingError -from ...core.pydantic_utilities import parse_obj_as -from ...core.request_options import RequestOptions -from ...core.serialization import convert_and_respect_annotation_metadata -from ...errors.bad_request_error import BadRequestError -from ...errors.conflict_error import ConflictError -from ...errors.forbidden_error import ForbiddenError -from ...errors.too_many_requests_error import TooManyRequestsError -from ...errors.unauthorized_error import UnauthorizedError -from ...types.create_self_service_profile_sso_ticket_response_content import ( - CreateSelfServiceProfileSsoTicketResponseContent, -) -from ...types.self_service_profile_sso_ticket_connection_config import SelfServiceProfileSsoTicketConnectionConfig -from ...types.self_service_profile_sso_ticket_domain_aliases_config import ( - SelfServiceProfileSsoTicketDomainAliasesConfig, -) -from ...types.self_service_profile_sso_ticket_enabled_features import SelfServiceProfileSsoTicketEnabledFeatures -from ...types.self_service_profile_sso_ticket_enabled_organization import SelfServiceProfileSsoTicketEnabledOrganization -from ...types.self_service_profile_sso_ticket_provisioning_config import SelfServiceProfileSsoTicketProvisioningConfig -from ...types.self_service_profile_sso_ticket_universal_logout_config import ( - SelfServiceProfileSsoTicketUniversalLogoutConfig, -) -from ...types.third_party_client_access_config import ThirdPartyClientAccessConfig -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawSsoTicketClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def create( - self, - id: str, - *, - connection_id: typing.Optional[str] = OMIT, - connection_config: typing.Optional[SelfServiceProfileSsoTicketConnectionConfig] = OMIT, - enabled_clients: typing.Optional[typing.Sequence[str]] = OMIT, - enabled_organizations: typing.Optional[typing.Sequence[SelfServiceProfileSsoTicketEnabledOrganization]] = OMIT, - ttl_sec: typing.Optional[int] = OMIT, - domain_aliases_config: typing.Optional[SelfServiceProfileSsoTicketDomainAliasesConfig] = OMIT, - provisioning_config: typing.Optional[SelfServiceProfileSsoTicketProvisioningConfig] = OMIT, - use_for_organization_discovery: typing.Optional[bool] = OMIT, - third_party_client_access_config: typing.Optional[ThirdPartyClientAccessConfig] = OMIT, - universal_logout_config: typing.Optional[SelfServiceProfileSsoTicketUniversalLogoutConfig] = OMIT, - enabled_features: typing.Optional[SelfServiceProfileSsoTicketEnabledFeatures] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[CreateSelfServiceProfileSsoTicketResponseContent]: - """ - Creates an access ticket to initiate the Self-Service Enterprise Configuration flow using a self-service profile. - - Parameters - ---------- - id : str - The id of the self-service profile to retrieve - - connection_id : typing.Optional[str] - If provided, this will allow editing of the provided connection during the Self-Service Enterprise Configuration flow - - connection_config : typing.Optional[SelfServiceProfileSsoTicketConnectionConfig] - - enabled_clients : typing.Optional[typing.Sequence[str]] - List of client_ids that the connection will be enabled for. - - enabled_organizations : typing.Optional[typing.Sequence[SelfServiceProfileSsoTicketEnabledOrganization]] - List of organizations that the connection will be enabled for. - - ttl_sec : typing.Optional[int] - Number of seconds for which the ticket is valid before expiration. If unspecified or set to 0, this value defaults to 432000 seconds (5 days). - - domain_aliases_config : typing.Optional[SelfServiceProfileSsoTicketDomainAliasesConfig] - - provisioning_config : typing.Optional[SelfServiceProfileSsoTicketProvisioningConfig] - - use_for_organization_discovery : typing.Optional[bool] - Indicates whether a verified domain should be used for organization discovery during authentication. - - third_party_client_access_config : typing.Optional[ThirdPartyClientAccessConfig] - - universal_logout_config : typing.Optional[SelfServiceProfileSsoTicketUniversalLogoutConfig] - - enabled_features : typing.Optional[SelfServiceProfileSsoTicketEnabledFeatures] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CreateSelfServiceProfileSsoTicketResponseContent] - Self-Service Enterprise Configuration Access Ticket successfully created. - """ - _response = self._client_wrapper.httpx_client.request( - f"self-service-profiles/{quote_path_param(id)}/sso-ticket", - method="POST", - json={ - "connection_id": connection_id, - "connection_config": convert_and_respect_annotation_metadata( - object_=connection_config, annotation=SelfServiceProfileSsoTicketConnectionConfig, direction="write" - ), - "enabled_clients": enabled_clients, - "enabled_organizations": convert_and_respect_annotation_metadata( - object_=enabled_organizations, - annotation=typing.Sequence[SelfServiceProfileSsoTicketEnabledOrganization], - direction="write", - ), - "ttl_sec": ttl_sec, - "domain_aliases_config": convert_and_respect_annotation_metadata( - object_=domain_aliases_config, - annotation=SelfServiceProfileSsoTicketDomainAliasesConfig, - direction="write", - ), - "provisioning_config": convert_and_respect_annotation_metadata( - object_=provisioning_config, - annotation=SelfServiceProfileSsoTicketProvisioningConfig, - direction="write", - ), - "use_for_organization_discovery": use_for_organization_discovery, - "third_party_client_access_config": convert_and_respect_annotation_metadata( - object_=third_party_client_access_config, annotation=ThirdPartyClientAccessConfig, direction="write" - ), - "universal_logout_config": convert_and_respect_annotation_metadata( - object_=universal_logout_config, - annotation=SelfServiceProfileSsoTicketUniversalLogoutConfig, - direction="write", - ), - "enabled_features": convert_and_respect_annotation_metadata( - object_=enabled_features, annotation=SelfServiceProfileSsoTicketEnabledFeatures, direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateSelfServiceProfileSsoTicketResponseContent, - parse_obj_as( - type_=CreateSelfServiceProfileSsoTicketResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def revoke( - self, profile_id: str, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[None]: - """ - Revokes a Self-Service Enterprise Configuration access ticket and invalidates associated sessions. The ticket will no longer be accepted to initiate a Self-Service Enterprise Configuration session. If any users have already started a session through this ticket, their session will be terminated. Clients should expect a `202 Accepted` response upon successful processing, indicating that the request has been acknowledged and that the revocation is underway but may not be fully completed at the time of response. If the specified ticket does not exist, a `202 Accepted` response is also returned, signaling that no further action is required. - Clients should treat these `202` responses as an acknowledgment that the request has been accepted and is in progress, even if the ticket was not found. - - Parameters - ---------- - profile_id : str - The id of the self-service profile - - id : str - The id of the ticket to revoke - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"self-service-profiles/{quote_path_param(profile_id)}/sso-ticket/{quote_path_param(id)}/revoke", - method="POST", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawSsoTicketClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def create( - self, - id: str, - *, - connection_id: typing.Optional[str] = OMIT, - connection_config: typing.Optional[SelfServiceProfileSsoTicketConnectionConfig] = OMIT, - enabled_clients: typing.Optional[typing.Sequence[str]] = OMIT, - enabled_organizations: typing.Optional[typing.Sequence[SelfServiceProfileSsoTicketEnabledOrganization]] = OMIT, - ttl_sec: typing.Optional[int] = OMIT, - domain_aliases_config: typing.Optional[SelfServiceProfileSsoTicketDomainAliasesConfig] = OMIT, - provisioning_config: typing.Optional[SelfServiceProfileSsoTicketProvisioningConfig] = OMIT, - use_for_organization_discovery: typing.Optional[bool] = OMIT, - third_party_client_access_config: typing.Optional[ThirdPartyClientAccessConfig] = OMIT, - universal_logout_config: typing.Optional[SelfServiceProfileSsoTicketUniversalLogoutConfig] = OMIT, - enabled_features: typing.Optional[SelfServiceProfileSsoTicketEnabledFeatures] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[CreateSelfServiceProfileSsoTicketResponseContent]: - """ - Creates an access ticket to initiate the Self-Service Enterprise Configuration flow using a self-service profile. - - Parameters - ---------- - id : str - The id of the self-service profile to retrieve - - connection_id : typing.Optional[str] - If provided, this will allow editing of the provided connection during the Self-Service Enterprise Configuration flow - - connection_config : typing.Optional[SelfServiceProfileSsoTicketConnectionConfig] - - enabled_clients : typing.Optional[typing.Sequence[str]] - List of client_ids that the connection will be enabled for. - - enabled_organizations : typing.Optional[typing.Sequence[SelfServiceProfileSsoTicketEnabledOrganization]] - List of organizations that the connection will be enabled for. - - ttl_sec : typing.Optional[int] - Number of seconds for which the ticket is valid before expiration. If unspecified or set to 0, this value defaults to 432000 seconds (5 days). - - domain_aliases_config : typing.Optional[SelfServiceProfileSsoTicketDomainAliasesConfig] - - provisioning_config : typing.Optional[SelfServiceProfileSsoTicketProvisioningConfig] - - use_for_organization_discovery : typing.Optional[bool] - Indicates whether a verified domain should be used for organization discovery during authentication. - - third_party_client_access_config : typing.Optional[ThirdPartyClientAccessConfig] - - universal_logout_config : typing.Optional[SelfServiceProfileSsoTicketUniversalLogoutConfig] - - enabled_features : typing.Optional[SelfServiceProfileSsoTicketEnabledFeatures] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CreateSelfServiceProfileSsoTicketResponseContent] - Self-Service Enterprise Configuration Access Ticket successfully created. - """ - _response = await self._client_wrapper.httpx_client.request( - f"self-service-profiles/{quote_path_param(id)}/sso-ticket", - method="POST", - json={ - "connection_id": connection_id, - "connection_config": convert_and_respect_annotation_metadata( - object_=connection_config, annotation=SelfServiceProfileSsoTicketConnectionConfig, direction="write" - ), - "enabled_clients": enabled_clients, - "enabled_organizations": convert_and_respect_annotation_metadata( - object_=enabled_organizations, - annotation=typing.Sequence[SelfServiceProfileSsoTicketEnabledOrganization], - direction="write", - ), - "ttl_sec": ttl_sec, - "domain_aliases_config": convert_and_respect_annotation_metadata( - object_=domain_aliases_config, - annotation=SelfServiceProfileSsoTicketDomainAliasesConfig, - direction="write", - ), - "provisioning_config": convert_and_respect_annotation_metadata( - object_=provisioning_config, - annotation=SelfServiceProfileSsoTicketProvisioningConfig, - direction="write", - ), - "use_for_organization_discovery": use_for_organization_discovery, - "third_party_client_access_config": convert_and_respect_annotation_metadata( - object_=third_party_client_access_config, annotation=ThirdPartyClientAccessConfig, direction="write" - ), - "universal_logout_config": convert_and_respect_annotation_metadata( - object_=universal_logout_config, - annotation=SelfServiceProfileSsoTicketUniversalLogoutConfig, - direction="write", - ), - "enabled_features": convert_and_respect_annotation_metadata( - object_=enabled_features, annotation=SelfServiceProfileSsoTicketEnabledFeatures, direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateSelfServiceProfileSsoTicketResponseContent, - parse_obj_as( - type_=CreateSelfServiceProfileSsoTicketResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def revoke( - self, profile_id: str, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Revokes a Self-Service Enterprise Configuration access ticket and invalidates associated sessions. The ticket will no longer be accepted to initiate a Self-Service Enterprise Configuration session. If any users have already started a session through this ticket, their session will be terminated. Clients should expect a `202 Accepted` response upon successful processing, indicating that the request has been acknowledged and that the revocation is underway but may not be fully completed at the time of response. If the specified ticket does not exist, a `202 Accepted` response is also returned, signaling that no further action is required. - Clients should treat these `202` responses as an acknowledgment that the request has been accepted and is in progress, even if the ticket was not found. - - Parameters - ---------- - profile_id : str - The id of the self-service profile - - id : str - The id of the ticket to revoke - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"self-service-profiles/{quote_path_param(profile_id)}/sso-ticket/{quote_path_param(id)}/revoke", - method="POST", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/sessions/__init__.py b/src/auth0/management/sessions/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/sessions/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/sessions/client.py b/src/auth0/management/sessions/client.py deleted file mode 100644 index 35cf82bd..00000000 --- a/src/auth0/management/sessions/client.py +++ /dev/null @@ -1,343 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.request_options import RequestOptions -from ..types.get_session_response_content import GetSessionResponseContent -from ..types.session_metadata import SessionMetadata -from ..types.update_session_response_content import UpdateSessionResponseContent -from .raw_client import AsyncRawSessionsClient, RawSessionsClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class SessionsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawSessionsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawSessionsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawSessionsClient - """ - return self._raw_client - - def get(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> GetSessionResponseContent: - """ - Retrieve session information. - - Parameters - ---------- - id : str - ID of session to retrieve - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetSessionResponseContent - The session was retrieved - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.sessions.get( - id="id", - ) - """ - _response = self._raw_client.get(id, request_options=request_options) - return _response.data - - def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete a session by ID. - - Parameters - ---------- - id : str - ID of the session to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.sessions.delete( - id="id", - ) - """ - _response = self._raw_client.delete(id, request_options=request_options) - return _response.data - - def update( - self, - id: str, - *, - session_metadata: typing.Optional[SessionMetadata] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateSessionResponseContent: - """ - Update session information. - - Parameters - ---------- - id : str - ID of the session to update. - - session_metadata : typing.Optional[SessionMetadata] - Metadata associated with the session. Pass null or {} to remove all session_metadata. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateSessionResponseContent - Session successfully updated. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.sessions.update( - id="id", - ) - """ - _response = self._raw_client.update(id, session_metadata=session_metadata, request_options=request_options) - return _response.data - - def revoke(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Revokes a session by ID and all associated refresh tokens. - - Parameters - ---------- - id : str - ID of the session to revoke. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.sessions.revoke( - id="id", - ) - """ - _response = self._raw_client.revoke(id, request_options=request_options) - return _response.data - - -class AsyncSessionsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawSessionsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawSessionsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawSessionsClient - """ - return self._raw_client - - async def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetSessionResponseContent: - """ - Retrieve session information. - - Parameters - ---------- - id : str - ID of session to retrieve - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetSessionResponseContent - The session was retrieved - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.sessions.get( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.get(id, request_options=request_options) - return _response.data - - async def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete a session by ID. - - Parameters - ---------- - id : str - ID of the session to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.sessions.delete( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete(id, request_options=request_options) - return _response.data - - async def update( - self, - id: str, - *, - session_metadata: typing.Optional[SessionMetadata] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateSessionResponseContent: - """ - Update session information. - - Parameters - ---------- - id : str - ID of the session to update. - - session_metadata : typing.Optional[SessionMetadata] - Metadata associated with the session. Pass null or {} to remove all session_metadata. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateSessionResponseContent - Session successfully updated. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.sessions.update( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.update( - id, session_metadata=session_metadata, request_options=request_options - ) - return _response.data - - async def revoke(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Revokes a session by ID and all associated refresh tokens. - - Parameters - ---------- - id : str - ID of the session to revoke. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.sessions.revoke( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.revoke(id, request_options=request_options) - return _response.data diff --git a/src/auth0/management/sessions/raw_client.py b/src/auth0/management/sessions/raw_client.py deleted file mode 100644 index 7b02ade0..00000000 --- a/src/auth0/management/sessions/raw_client.py +++ /dev/null @@ -1,766 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ..core.api_error import ApiError -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.http_response import AsyncHttpResponse, HttpResponse -from ..core.jsonable_encoder import quote_path_param -from ..core.parse_error import ParsingError -from ..core.pydantic_utilities import parse_obj_as -from ..core.request_options import RequestOptions -from ..errors.bad_request_error import BadRequestError -from ..errors.forbidden_error import ForbiddenError -from ..errors.not_found_error import NotFoundError -from ..errors.too_many_requests_error import TooManyRequestsError -from ..errors.unauthorized_error import UnauthorizedError -from ..types.get_session_response_content import GetSessionResponseContent -from ..types.session_metadata import SessionMetadata -from ..types.update_session_response_content import UpdateSessionResponseContent -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawSessionsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetSessionResponseContent]: - """ - Retrieve session information. - - Parameters - ---------- - id : str - ID of session to retrieve - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetSessionResponseContent] - The session was retrieved - """ - _response = self._client_wrapper.httpx_client.request( - f"sessions/{quote_path_param(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetSessionResponseContent, - parse_obj_as( - type_=GetSessionResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[None]: - """ - Delete a session by ID. - - Parameters - ---------- - id : str - ID of the session to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"sessions/{quote_path_param(id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def update( - self, - id: str, - *, - session_metadata: typing.Optional[SessionMetadata] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[UpdateSessionResponseContent]: - """ - Update session information. - - Parameters - ---------- - id : str - ID of the session to update. - - session_metadata : typing.Optional[SessionMetadata] - Metadata associated with the session. Pass null or {} to remove all session_metadata. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[UpdateSessionResponseContent] - Session successfully updated. - """ - _response = self._client_wrapper.httpx_client.request( - f"sessions/{quote_path_param(id)}", - method="PATCH", - json={ - "session_metadata": session_metadata, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateSessionResponseContent, - parse_obj_as( - type_=UpdateSessionResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def revoke(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[None]: - """ - Revokes a session by ID and all associated refresh tokens. - - Parameters - ---------- - id : str - ID of the session to revoke. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"sessions/{quote_path_param(id)}/revoke", - method="POST", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawSessionsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetSessionResponseContent]: - """ - Retrieve session information. - - Parameters - ---------- - id : str - ID of session to retrieve - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetSessionResponseContent] - The session was retrieved - """ - _response = await self._client_wrapper.httpx_client.request( - f"sessions/{quote_path_param(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetSessionResponseContent, - parse_obj_as( - type_=GetSessionResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def delete( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Delete a session by ID. - - Parameters - ---------- - id : str - ID of the session to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"sessions/{quote_path_param(id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def update( - self, - id: str, - *, - session_metadata: typing.Optional[SessionMetadata] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[UpdateSessionResponseContent]: - """ - Update session information. - - Parameters - ---------- - id : str - ID of the session to update. - - session_metadata : typing.Optional[SessionMetadata] - Metadata associated with the session. Pass null or {} to remove all session_metadata. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[UpdateSessionResponseContent] - Session successfully updated. - """ - _response = await self._client_wrapper.httpx_client.request( - f"sessions/{quote_path_param(id)}", - method="PATCH", - json={ - "session_metadata": session_metadata, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateSessionResponseContent, - parse_obj_as( - type_=UpdateSessionResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def revoke( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Revokes a session by ID and all associated refresh tokens. - - Parameters - ---------- - id : str - ID of the session to revoke. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"sessions/{quote_path_param(id)}/revoke", - method="POST", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/stats/__init__.py b/src/auth0/management/stats/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/stats/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/stats/client.py b/src/auth0/management/stats/client.py deleted file mode 100644 index 5400785c..00000000 --- a/src/auth0/management/stats/client.py +++ /dev/null @@ -1,195 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.request_options import RequestOptions -from ..types.daily_stats import DailyStats -from ..types.get_active_users_count_stats_response_content import GetActiveUsersCountStatsResponseContent -from .raw_client import AsyncRawStatsClient, RawStatsClient - - -class StatsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawStatsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawStatsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawStatsClient - """ - return self._raw_client - - def get_active_users_count( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetActiveUsersCountStatsResponseContent: - """ - Retrieve the number of active users that logged in during the last 30 days. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetActiveUsersCountStatsResponseContent - Number of active users successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.stats.get_active_users_count() - """ - _response = self._raw_client.get_active_users_count(request_options=request_options) - return _response.data - - def get_daily( - self, - *, - from_: typing.Optional[str] = None, - to: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> typing.List[DailyStats]: - """ - Retrieve the number of logins, signups and breached-password detections (subscription required) that occurred each day within a specified date range. - - Parameters - ---------- - from_ : typing.Optional[str] - Optional first day of the date range (inclusive) in YYYYMMDD format. - - to : typing.Optional[str] - Optional last day of the date range (inclusive) in YYYYMMDD format. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - typing.List[DailyStats] - Daily stats successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.stats.get_daily( - from_="from", - to="to", - ) - """ - _response = self._raw_client.get_daily(from_=from_, to=to, request_options=request_options) - return _response.data - - -class AsyncStatsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawStatsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawStatsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawStatsClient - """ - return self._raw_client - - async def get_active_users_count( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetActiveUsersCountStatsResponseContent: - """ - Retrieve the number of active users that logged in during the last 30 days. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetActiveUsersCountStatsResponseContent - Number of active users successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.stats.get_active_users_count() - - - asyncio.run(main()) - """ - _response = await self._raw_client.get_active_users_count(request_options=request_options) - return _response.data - - async def get_daily( - self, - *, - from_: typing.Optional[str] = None, - to: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> typing.List[DailyStats]: - """ - Retrieve the number of logins, signups and breached-password detections (subscription required) that occurred each day within a specified date range. - - Parameters - ---------- - from_ : typing.Optional[str] - Optional first day of the date range (inclusive) in YYYYMMDD format. - - to : typing.Optional[str] - Optional last day of the date range (inclusive) in YYYYMMDD format. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - typing.List[DailyStats] - Daily stats successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.stats.get_daily( - from_="from", - to="to", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.get_daily(from_=from_, to=to, request_options=request_options) - return _response.data diff --git a/src/auth0/management/stats/raw_client.py b/src/auth0/management/stats/raw_client.py deleted file mode 100644 index 4b321e8e..00000000 --- a/src/auth0/management/stats/raw_client.py +++ /dev/null @@ -1,370 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ..core.api_error import ApiError -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.http_response import AsyncHttpResponse, HttpResponse -from ..core.parse_error import ParsingError -from ..core.pydantic_utilities import parse_obj_as -from ..core.request_options import RequestOptions -from ..errors.bad_request_error import BadRequestError -from ..errors.forbidden_error import ForbiddenError -from ..errors.too_many_requests_error import TooManyRequestsError -from ..errors.unauthorized_error import UnauthorizedError -from ..types.daily_stats import DailyStats -from ..types.get_active_users_count_stats_response_content import GetActiveUsersCountStatsResponseContent -from pydantic import ValidationError - - -class RawStatsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def get_active_users_count( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetActiveUsersCountStatsResponseContent]: - """ - Retrieve the number of active users that logged in during the last 30 days. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetActiveUsersCountStatsResponseContent] - Number of active users successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - "stats/active-users", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetActiveUsersCountStatsResponseContent, - parse_obj_as( - type_=GetActiveUsersCountStatsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def get_daily( - self, - *, - from_: typing.Optional[str] = None, - to: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[typing.List[DailyStats]]: - """ - Retrieve the number of logins, signups and breached-password detections (subscription required) that occurred each day within a specified date range. - - Parameters - ---------- - from_ : typing.Optional[str] - Optional first day of the date range (inclusive) in YYYYMMDD format. - - to : typing.Optional[str] - Optional last day of the date range (inclusive) in YYYYMMDD format. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[typing.List[DailyStats]] - Daily stats successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - "stats/daily", - method="GET", - params={ - "from": from_, - "to": to, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - typing.List[DailyStats], - parse_obj_as( - type_=typing.List[DailyStats], # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawStatsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def get_active_users_count( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetActiveUsersCountStatsResponseContent]: - """ - Retrieve the number of active users that logged in during the last 30 days. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetActiveUsersCountStatsResponseContent] - Number of active users successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - "stats/active-users", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetActiveUsersCountStatsResponseContent, - parse_obj_as( - type_=GetActiveUsersCountStatsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def get_daily( - self, - *, - from_: typing.Optional[str] = None, - to: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[typing.List[DailyStats]]: - """ - Retrieve the number of logins, signups and breached-password detections (subscription required) that occurred each day within a specified date range. - - Parameters - ---------- - from_ : typing.Optional[str] - Optional first day of the date range (inclusive) in YYYYMMDD format. - - to : typing.Optional[str] - Optional last day of the date range (inclusive) in YYYYMMDD format. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[typing.List[DailyStats]] - Daily stats successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - "stats/daily", - method="GET", - params={ - "from": from_, - "to": to, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - typing.List[DailyStats], - parse_obj_as( - type_=typing.List[DailyStats], # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/supplemental_signals/__init__.py b/src/auth0/management/supplemental_signals/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/supplemental_signals/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/supplemental_signals/client.py b/src/auth0/management/supplemental_signals/client.py deleted file mode 100644 index f1418714..00000000 --- a/src/auth0/management/supplemental_signals/client.py +++ /dev/null @@ -1,180 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.request_options import RequestOptions -from ..types.get_supplemental_signals_response_content import GetSupplementalSignalsResponseContent -from ..types.patch_supplemental_signals_response_content import PatchSupplementalSignalsResponseContent -from .raw_client import AsyncRawSupplementalSignalsClient, RawSupplementalSignalsClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class SupplementalSignalsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawSupplementalSignalsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawSupplementalSignalsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawSupplementalSignalsClient - """ - return self._raw_client - - def get(self, *, request_options: typing.Optional[RequestOptions] = None) -> GetSupplementalSignalsResponseContent: - """ - Get the supplemental signals configuration for a tenant. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetSupplementalSignalsResponseContent - Supplemental Signals configuration successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.supplemental_signals.get() - """ - _response = self._raw_client.get(request_options=request_options) - return _response.data - - def patch( - self, *, akamai_enabled: bool, request_options: typing.Optional[RequestOptions] = None - ) -> PatchSupplementalSignalsResponseContent: - """ - Update the supplemental signals configuration for a tenant. - - Parameters - ---------- - akamai_enabled : bool - Indicates if incoming Akamai Headers should be processed - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PatchSupplementalSignalsResponseContent - Supplemental Signals configuration successfully updated. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.supplemental_signals.patch( - akamai_enabled=True, - ) - """ - _response = self._raw_client.patch(akamai_enabled=akamai_enabled, request_options=request_options) - return _response.data - - -class AsyncSupplementalSignalsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawSupplementalSignalsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawSupplementalSignalsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawSupplementalSignalsClient - """ - return self._raw_client - - async def get( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetSupplementalSignalsResponseContent: - """ - Get the supplemental signals configuration for a tenant. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetSupplementalSignalsResponseContent - Supplemental Signals configuration successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.supplemental_signals.get() - - - asyncio.run(main()) - """ - _response = await self._raw_client.get(request_options=request_options) - return _response.data - - async def patch( - self, *, akamai_enabled: bool, request_options: typing.Optional[RequestOptions] = None - ) -> PatchSupplementalSignalsResponseContent: - """ - Update the supplemental signals configuration for a tenant. - - Parameters - ---------- - akamai_enabled : bool - Indicates if incoming Akamai Headers should be processed - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PatchSupplementalSignalsResponseContent - Supplemental Signals configuration successfully updated. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.supplemental_signals.patch( - akamai_enabled=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.patch(akamai_enabled=akamai_enabled, request_options=request_options) - return _response.data diff --git a/src/auth0/management/supplemental_signals/raw_client.py b/src/auth0/management/supplemental_signals/raw_client.py deleted file mode 100644 index e345437a..00000000 --- a/src/auth0/management/supplemental_signals/raw_client.py +++ /dev/null @@ -1,387 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ..core.api_error import ApiError -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.http_response import AsyncHttpResponse, HttpResponse -from ..core.parse_error import ParsingError -from ..core.pydantic_utilities import parse_obj_as -from ..core.request_options import RequestOptions -from ..errors.forbidden_error import ForbiddenError -from ..errors.not_found_error import NotFoundError -from ..errors.too_many_requests_error import TooManyRequestsError -from ..errors.unauthorized_error import UnauthorizedError -from ..types.get_supplemental_signals_response_content import GetSupplementalSignalsResponseContent -from ..types.patch_supplemental_signals_response_content import PatchSupplementalSignalsResponseContent -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawSupplementalSignalsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def get( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetSupplementalSignalsResponseContent]: - """ - Get the supplemental signals configuration for a tenant. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetSupplementalSignalsResponseContent] - Supplemental Signals configuration successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - "supplemental-signals", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetSupplementalSignalsResponseContent, - parse_obj_as( - type_=GetSupplementalSignalsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def patch( - self, *, akamai_enabled: bool, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[PatchSupplementalSignalsResponseContent]: - """ - Update the supplemental signals configuration for a tenant. - - Parameters - ---------- - akamai_enabled : bool - Indicates if incoming Akamai Headers should be processed - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PatchSupplementalSignalsResponseContent] - Supplemental Signals configuration successfully updated. - """ - _response = self._client_wrapper.httpx_client.request( - "supplemental-signals", - method="PATCH", - json={ - "akamai_enabled": akamai_enabled, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PatchSupplementalSignalsResponseContent, - parse_obj_as( - type_=PatchSupplementalSignalsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawSupplementalSignalsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def get( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetSupplementalSignalsResponseContent]: - """ - Get the supplemental signals configuration for a tenant. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetSupplementalSignalsResponseContent] - Supplemental Signals configuration successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - "supplemental-signals", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetSupplementalSignalsResponseContent, - parse_obj_as( - type_=GetSupplementalSignalsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def patch( - self, *, akamai_enabled: bool, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[PatchSupplementalSignalsResponseContent]: - """ - Update the supplemental signals configuration for a tenant. - - Parameters - ---------- - akamai_enabled : bool - Indicates if incoming Akamai Headers should be processed - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PatchSupplementalSignalsResponseContent] - Supplemental Signals configuration successfully updated. - """ - _response = await self._client_wrapper.httpx_client.request( - "supplemental-signals", - method="PATCH", - json={ - "akamai_enabled": akamai_enabled, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PatchSupplementalSignalsResponseContent, - parse_obj_as( - type_=PatchSupplementalSignalsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/tenants/__init__.py b/src/auth0/management/tenants/__init__.py deleted file mode 100644 index 31fcb147..00000000 --- a/src/auth0/management/tenants/__init__.py +++ /dev/null @@ -1,34 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from . import settings -_dynamic_imports: typing.Dict[str, str] = {"settings": ".settings"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - if module_name == f".{attr_name}": - return module - else: - return getattr(module, attr_name) - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["settings"] diff --git a/src/auth0/management/tenants/client.py b/src/auth0/management/tenants/client.py deleted file mode 100644 index eb5f7d4f..00000000 --- a/src/auth0/management/tenants/client.py +++ /dev/null @@ -1,63 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .raw_client import AsyncRawTenantsClient, RawTenantsClient - -if typing.TYPE_CHECKING: - from .settings.client import AsyncSettingsClient, SettingsClient - - -class TenantsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawTenantsClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._settings: typing.Optional[SettingsClient] = None - - @property - def with_raw_response(self) -> RawTenantsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawTenantsClient - """ - return self._raw_client - - @property - def settings(self): - if self._settings is None: - from .settings.client import SettingsClient # noqa: E402 - - self._settings = SettingsClient(client_wrapper=self._client_wrapper) - return self._settings - - -class AsyncTenantsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawTenantsClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._settings: typing.Optional[AsyncSettingsClient] = None - - @property - def with_raw_response(self) -> AsyncRawTenantsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawTenantsClient - """ - return self._raw_client - - @property - def settings(self): - if self._settings is None: - from .settings.client import AsyncSettingsClient # noqa: E402 - - self._settings = AsyncSettingsClient(client_wrapper=self._client_wrapper) - return self._settings diff --git a/src/auth0/management/tenants/raw_client.py b/src/auth0/management/tenants/raw_client.py deleted file mode 100644 index d8e4fed5..00000000 --- a/src/auth0/management/tenants/raw_client.py +++ /dev/null @@ -1,13 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper - - -class RawTenantsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - -class AsyncRawTenantsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper diff --git a/src/auth0/management/tenants/settings/__init__.py b/src/auth0/management/tenants/settings/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/tenants/settings/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/tenants/settings/client.py b/src/auth0/management/tenants/settings/client.py deleted file mode 100644 index 3163173e..00000000 --- a/src/auth0/management/tenants/settings/client.py +++ /dev/null @@ -1,666 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.request_options import RequestOptions -from ...types.default_token_quota import DefaultTokenQuota -from ...types.get_tenant_settings_response_content import GetTenantSettingsResponseContent -from ...types.resource_server_access_token import ResourceServerAccessToken -from ...types.session_cookie_schema import SessionCookieSchema -from ...types.tenant_oidc_logout_settings import TenantOidcLogoutSettings -from ...types.tenant_settings_country_codes import TenantSettingsCountryCodes -from ...types.tenant_settings_device_flow import TenantSettingsDeviceFlow -from ...types.tenant_settings_dynamic_client_registration_security_mode import ( - TenantSettingsDynamicClientRegistrationSecurityMode, -) -from ...types.tenant_settings_error_page import TenantSettingsErrorPage -from ...types.tenant_settings_flags import TenantSettingsFlags -from ...types.tenant_settings_guardian_page import TenantSettingsGuardianPage -from ...types.tenant_settings_mtls import TenantSettingsMtls -from ...types.tenant_settings_nullable_security_headers import TenantSettingsNullableSecurityHeaders -from ...types.tenant_settings_password_page import TenantSettingsPasswordPage -from ...types.tenant_settings_resource_parameter_profile import TenantSettingsResourceParameterProfile -from ...types.tenant_settings_sessions import TenantSettingsSessions -from ...types.tenant_settings_supported_locales_enum import TenantSettingsSupportedLocalesEnum -from ...types.update_tenant_settings_response_content import UpdateTenantSettingsResponseContent -from .raw_client import AsyncRawSettingsClient, RawSettingsClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class SettingsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawSettingsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawSettingsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawSettingsClient - """ - return self._raw_client - - def get( - self, - *, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> GetTenantSettingsResponseContent: - """ - Retrieve tenant settings. A list of fields to include or exclude may also be specified. - - Parameters - ---------- - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetTenantSettingsResponseContent - Tenant settings successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.tenants.settings.get( - fields="fields", - include_fields=True, - ) - """ - _response = self._raw_client.get(fields=fields, include_fields=include_fields, request_options=request_options) - return _response.data - - def update( - self, - *, - change_password: typing.Optional[TenantSettingsPasswordPage] = OMIT, - device_flow: typing.Optional[TenantSettingsDeviceFlow] = OMIT, - guardian_mfa_page: typing.Optional[TenantSettingsGuardianPage] = OMIT, - default_audience: typing.Optional[str] = OMIT, - default_directory: typing.Optional[str] = OMIT, - error_page: typing.Optional[TenantSettingsErrorPage] = OMIT, - default_token_quota: typing.Optional[DefaultTokenQuota] = OMIT, - flags: typing.Optional[TenantSettingsFlags] = OMIT, - friendly_name: typing.Optional[str] = OMIT, - picture_url: typing.Optional[str] = OMIT, - support_email: typing.Optional[str] = OMIT, - support_url: typing.Optional[str] = OMIT, - allowed_logout_urls: typing.Optional[typing.Sequence[str]] = OMIT, - session_lifetime: typing.Optional[int] = OMIT, - session_lifetime_in_minutes: typing.Optional[int] = OMIT, - idle_session_lifetime: typing.Optional[int] = OMIT, - idle_session_lifetime_in_minutes: typing.Optional[int] = OMIT, - ephemeral_session_lifetime: typing.Optional[int] = OMIT, - idle_ephemeral_session_lifetime: typing.Optional[int] = OMIT, - ephemeral_session_lifetime_in_minutes: typing.Optional[int] = OMIT, - idle_ephemeral_session_lifetime_in_minutes: typing.Optional[int] = OMIT, - sandbox_version: typing.Optional[str] = OMIT, - legacy_sandbox_version: typing.Optional[str] = OMIT, - default_redirection_uri: typing.Optional[str] = OMIT, - enabled_locales: typing.Optional[typing.Sequence[TenantSettingsSupportedLocalesEnum]] = OMIT, - access_token: typing.Optional[ResourceServerAccessToken] = OMIT, - security_headers: typing.Optional[TenantSettingsNullableSecurityHeaders] = OMIT, - session_cookie: typing.Optional[SessionCookieSchema] = OMIT, - sessions: typing.Optional[TenantSettingsSessions] = OMIT, - oidc_logout: typing.Optional[TenantOidcLogoutSettings] = OMIT, - customize_mfa_in_postlogin_action: typing.Optional[bool] = OMIT, - allow_organization_name_in_authentication_api: typing.Optional[bool] = OMIT, - acr_values_supported: typing.Optional[typing.Sequence[str]] = OMIT, - mtls: typing.Optional[TenantSettingsMtls] = OMIT, - pushed_authorization_requests_supported: typing.Optional[bool] = OMIT, - authorization_response_iss_parameter_supported: typing.Optional[bool] = OMIT, - dpop_strict_refresh_token_binding: typing.Optional[bool] = OMIT, - skip_non_verifiable_callback_uri_confirmation_prompt: typing.Optional[bool] = OMIT, - resource_parameter_profile: typing.Optional[TenantSettingsResourceParameterProfile] = OMIT, - client_id_metadata_document_supported: typing.Optional[bool] = OMIT, - client_id_metadata_document_dynamic_registration_supported: typing.Optional[bool] = OMIT, - enable_ai_guide: typing.Optional[bool] = OMIT, - phone_consolidated_experience: typing.Optional[bool] = OMIT, - include_session_metadata_in_tenant_logs: typing.Optional[bool] = OMIT, - dynamic_client_registration_security_mode: typing.Optional[ - TenantSettingsDynamicClientRegistrationSecurityMode - ] = OMIT, - country_codes: typing.Optional[TenantSettingsCountryCodes] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateTenantSettingsResponseContent: - """ - Update settings for a tenant. - - Parameters - ---------- - change_password : typing.Optional[TenantSettingsPasswordPage] - - device_flow : typing.Optional[TenantSettingsDeviceFlow] - Device Flow configuration. - - guardian_mfa_page : typing.Optional[TenantSettingsGuardianPage] - - default_audience : typing.Optional[str] - Default audience for API Authorization. - - default_directory : typing.Optional[str] - Name of connection used for password grants at the `/token` endpoint. The following connection types are supported: LDAP, AD, Database Connections, Passwordless, Windows Azure Active Directory, ADFS. - - error_page : typing.Optional[TenantSettingsErrorPage] - - default_token_quota : typing.Optional[DefaultTokenQuota] - - flags : typing.Optional[TenantSettingsFlags] - - friendly_name : typing.Optional[str] - Friendly name for this tenant. - - picture_url : typing.Optional[str] - URL of logo to be shown for this tenant (recommended size: 150x150) - - support_email : typing.Optional[str] - End-user support email. - - support_url : typing.Optional[str] - End-user support url. - - allowed_logout_urls : typing.Optional[typing.Sequence[str]] - URLs that are valid to redirect to after logout from Auth0. - - session_lifetime : typing.Optional[int] - Number of hours a session will stay valid. - - session_lifetime_in_minutes : typing.Optional[int] - Number of minutes a session will stay valid. Cannot be specified together with `session_lifetime`. - - idle_session_lifetime : typing.Optional[int] - Number of hours for which a session can be inactive before the user must log in again. - - idle_session_lifetime_in_minutes : typing.Optional[int] - Number of minutes a session can be inactive before the user must log in again. Cannot be specified together with `idle_session_lifetime`. - - ephemeral_session_lifetime : typing.Optional[int] - Number of hours an ephemeral (non-persistent) session will stay valid. - - idle_ephemeral_session_lifetime : typing.Optional[int] - Number of hours for which an ephemeral (non-persistent) session can be inactive before the user must log in again. - - ephemeral_session_lifetime_in_minutes : typing.Optional[int] - Number of minutes an ephemeral (non-persistent) session will stay valid. Cannot be specified together with `ephemeral_session_lifetime`. - - idle_ephemeral_session_lifetime_in_minutes : typing.Optional[int] - Number of minutes an ephemeral (non-persistent) session can be inactive before the user must log in again. Cannot be specified together with `idle_ephemeral_session_lifetime`. - - sandbox_version : typing.Optional[str] - Selected sandbox version for the extensibility environment - - legacy_sandbox_version : typing.Optional[str] - Selected legacy sandbox version for the extensibility environment - - default_redirection_uri : typing.Optional[str] - The default absolute redirection uri, must be https - - enabled_locales : typing.Optional[typing.Sequence[TenantSettingsSupportedLocalesEnum]] - Supported locales for the user interface - - access_token : typing.Optional[ResourceServerAccessToken] - - security_headers : typing.Optional[TenantSettingsNullableSecurityHeaders] - - session_cookie : typing.Optional[SessionCookieSchema] - - sessions : typing.Optional[TenantSettingsSessions] - - oidc_logout : typing.Optional[TenantOidcLogoutSettings] - - customize_mfa_in_postlogin_action : typing.Optional[bool] - Whether to enable flexible factors for MFA in the PostLogin action - - allow_organization_name_in_authentication_api : typing.Optional[bool] - Whether to accept an organization name instead of an ID on auth endpoints - - acr_values_supported : typing.Optional[typing.Sequence[str]] - Supported ACR values - - mtls : typing.Optional[TenantSettingsMtls] - - pushed_authorization_requests_supported : typing.Optional[bool] - Enables the use of Pushed Authorization Requests - - authorization_response_iss_parameter_supported : typing.Optional[bool] - Supports iss parameter in authorization responses - - dpop_strict_refresh_token_binding : typing.Optional[bool] - Enables strict DPoP refresh token binding per RFC 9449: all refresh tokens issued to public clients that present a DPoP proof are bound to the sender's key, and the binding is validated on every subsequent exchange. When disabled, DPoP refresh token binding may still apply for specific audiences for backwards compatibility. - - skip_non_verifiable_callback_uri_confirmation_prompt : typing.Optional[bool] - Controls whether a confirmation prompt is shown during login flows when the redirect URI uses non-verifiable callback URIs (for example, a custom URI schema such as `myapp://`, or `localhost`). - If set to true, a confirmation prompt will not be shown. We recommend that this is set to false for improved protection from malicious apps. - See https://auth0.com/docs/secure/security-guidance/measures-against-app-impersonation for more information. - - resource_parameter_profile : typing.Optional[TenantSettingsResourceParameterProfile] - - client_id_metadata_document_supported : typing.Optional[bool] - Whether the authorization server supports retrieving client metadata from a client_id URL. - - client_id_metadata_document_dynamic_registration_supported : typing.Optional[bool] - Whether the authorization server supports registering clients dynamically from a client_id URL. Requires client_id_metadata_document_supported to be enabled. - - enable_ai_guide : typing.Optional[bool] - Whether Auth0 Guide (AI-powered assistance) is enabled for this tenant. - - phone_consolidated_experience : typing.Optional[bool] - Whether Phone Consolidated Experience is enabled for this tenant. - - include_session_metadata_in_tenant_logs : typing.Optional[bool] - Whether session metadata is included in specific tenant logs (slo, oidc_backchannel_logout_failed, oidc_backchannel_logout_succeeded). - - dynamic_client_registration_security_mode : typing.Optional[TenantSettingsDynamicClientRegistrationSecurityMode] - - country_codes : typing.Optional[TenantSettingsCountryCodes] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateTenantSettingsResponseContent - Tenant settings successfully updated. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.tenants.settings.update() - """ - _response = self._raw_client.update( - change_password=change_password, - device_flow=device_flow, - guardian_mfa_page=guardian_mfa_page, - default_audience=default_audience, - default_directory=default_directory, - error_page=error_page, - default_token_quota=default_token_quota, - flags=flags, - friendly_name=friendly_name, - picture_url=picture_url, - support_email=support_email, - support_url=support_url, - allowed_logout_urls=allowed_logout_urls, - session_lifetime=session_lifetime, - session_lifetime_in_minutes=session_lifetime_in_minutes, - idle_session_lifetime=idle_session_lifetime, - idle_session_lifetime_in_minutes=idle_session_lifetime_in_minutes, - ephemeral_session_lifetime=ephemeral_session_lifetime, - idle_ephemeral_session_lifetime=idle_ephemeral_session_lifetime, - ephemeral_session_lifetime_in_minutes=ephemeral_session_lifetime_in_minutes, - idle_ephemeral_session_lifetime_in_minutes=idle_ephemeral_session_lifetime_in_minutes, - sandbox_version=sandbox_version, - legacy_sandbox_version=legacy_sandbox_version, - default_redirection_uri=default_redirection_uri, - enabled_locales=enabled_locales, - access_token=access_token, - security_headers=security_headers, - session_cookie=session_cookie, - sessions=sessions, - oidc_logout=oidc_logout, - customize_mfa_in_postlogin_action=customize_mfa_in_postlogin_action, - allow_organization_name_in_authentication_api=allow_organization_name_in_authentication_api, - acr_values_supported=acr_values_supported, - mtls=mtls, - pushed_authorization_requests_supported=pushed_authorization_requests_supported, - authorization_response_iss_parameter_supported=authorization_response_iss_parameter_supported, - dpop_strict_refresh_token_binding=dpop_strict_refresh_token_binding, - skip_non_verifiable_callback_uri_confirmation_prompt=skip_non_verifiable_callback_uri_confirmation_prompt, - resource_parameter_profile=resource_parameter_profile, - client_id_metadata_document_supported=client_id_metadata_document_supported, - client_id_metadata_document_dynamic_registration_supported=client_id_metadata_document_dynamic_registration_supported, - enable_ai_guide=enable_ai_guide, - phone_consolidated_experience=phone_consolidated_experience, - include_session_metadata_in_tenant_logs=include_session_metadata_in_tenant_logs, - dynamic_client_registration_security_mode=dynamic_client_registration_security_mode, - country_codes=country_codes, - request_options=request_options, - ) - return _response.data - - -class AsyncSettingsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawSettingsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawSettingsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawSettingsClient - """ - return self._raw_client - - async def get( - self, - *, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> GetTenantSettingsResponseContent: - """ - Retrieve tenant settings. A list of fields to include or exclude may also be specified. - - Parameters - ---------- - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetTenantSettingsResponseContent - Tenant settings successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.tenants.settings.get( - fields="fields", - include_fields=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.get( - fields=fields, include_fields=include_fields, request_options=request_options - ) - return _response.data - - async def update( - self, - *, - change_password: typing.Optional[TenantSettingsPasswordPage] = OMIT, - device_flow: typing.Optional[TenantSettingsDeviceFlow] = OMIT, - guardian_mfa_page: typing.Optional[TenantSettingsGuardianPage] = OMIT, - default_audience: typing.Optional[str] = OMIT, - default_directory: typing.Optional[str] = OMIT, - error_page: typing.Optional[TenantSettingsErrorPage] = OMIT, - default_token_quota: typing.Optional[DefaultTokenQuota] = OMIT, - flags: typing.Optional[TenantSettingsFlags] = OMIT, - friendly_name: typing.Optional[str] = OMIT, - picture_url: typing.Optional[str] = OMIT, - support_email: typing.Optional[str] = OMIT, - support_url: typing.Optional[str] = OMIT, - allowed_logout_urls: typing.Optional[typing.Sequence[str]] = OMIT, - session_lifetime: typing.Optional[int] = OMIT, - session_lifetime_in_minutes: typing.Optional[int] = OMIT, - idle_session_lifetime: typing.Optional[int] = OMIT, - idle_session_lifetime_in_minutes: typing.Optional[int] = OMIT, - ephemeral_session_lifetime: typing.Optional[int] = OMIT, - idle_ephemeral_session_lifetime: typing.Optional[int] = OMIT, - ephemeral_session_lifetime_in_minutes: typing.Optional[int] = OMIT, - idle_ephemeral_session_lifetime_in_minutes: typing.Optional[int] = OMIT, - sandbox_version: typing.Optional[str] = OMIT, - legacy_sandbox_version: typing.Optional[str] = OMIT, - default_redirection_uri: typing.Optional[str] = OMIT, - enabled_locales: typing.Optional[typing.Sequence[TenantSettingsSupportedLocalesEnum]] = OMIT, - access_token: typing.Optional[ResourceServerAccessToken] = OMIT, - security_headers: typing.Optional[TenantSettingsNullableSecurityHeaders] = OMIT, - session_cookie: typing.Optional[SessionCookieSchema] = OMIT, - sessions: typing.Optional[TenantSettingsSessions] = OMIT, - oidc_logout: typing.Optional[TenantOidcLogoutSettings] = OMIT, - customize_mfa_in_postlogin_action: typing.Optional[bool] = OMIT, - allow_organization_name_in_authentication_api: typing.Optional[bool] = OMIT, - acr_values_supported: typing.Optional[typing.Sequence[str]] = OMIT, - mtls: typing.Optional[TenantSettingsMtls] = OMIT, - pushed_authorization_requests_supported: typing.Optional[bool] = OMIT, - authorization_response_iss_parameter_supported: typing.Optional[bool] = OMIT, - dpop_strict_refresh_token_binding: typing.Optional[bool] = OMIT, - skip_non_verifiable_callback_uri_confirmation_prompt: typing.Optional[bool] = OMIT, - resource_parameter_profile: typing.Optional[TenantSettingsResourceParameterProfile] = OMIT, - client_id_metadata_document_supported: typing.Optional[bool] = OMIT, - client_id_metadata_document_dynamic_registration_supported: typing.Optional[bool] = OMIT, - enable_ai_guide: typing.Optional[bool] = OMIT, - phone_consolidated_experience: typing.Optional[bool] = OMIT, - include_session_metadata_in_tenant_logs: typing.Optional[bool] = OMIT, - dynamic_client_registration_security_mode: typing.Optional[ - TenantSettingsDynamicClientRegistrationSecurityMode - ] = OMIT, - country_codes: typing.Optional[TenantSettingsCountryCodes] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateTenantSettingsResponseContent: - """ - Update settings for a tenant. - - Parameters - ---------- - change_password : typing.Optional[TenantSettingsPasswordPage] - - device_flow : typing.Optional[TenantSettingsDeviceFlow] - Device Flow configuration. - - guardian_mfa_page : typing.Optional[TenantSettingsGuardianPage] - - default_audience : typing.Optional[str] - Default audience for API Authorization. - - default_directory : typing.Optional[str] - Name of connection used for password grants at the `/token` endpoint. The following connection types are supported: LDAP, AD, Database Connections, Passwordless, Windows Azure Active Directory, ADFS. - - error_page : typing.Optional[TenantSettingsErrorPage] - - default_token_quota : typing.Optional[DefaultTokenQuota] - - flags : typing.Optional[TenantSettingsFlags] - - friendly_name : typing.Optional[str] - Friendly name for this tenant. - - picture_url : typing.Optional[str] - URL of logo to be shown for this tenant (recommended size: 150x150) - - support_email : typing.Optional[str] - End-user support email. - - support_url : typing.Optional[str] - End-user support url. - - allowed_logout_urls : typing.Optional[typing.Sequence[str]] - URLs that are valid to redirect to after logout from Auth0. - - session_lifetime : typing.Optional[int] - Number of hours a session will stay valid. - - session_lifetime_in_minutes : typing.Optional[int] - Number of minutes a session will stay valid. Cannot be specified together with `session_lifetime`. - - idle_session_lifetime : typing.Optional[int] - Number of hours for which a session can be inactive before the user must log in again. - - idle_session_lifetime_in_minutes : typing.Optional[int] - Number of minutes a session can be inactive before the user must log in again. Cannot be specified together with `idle_session_lifetime`. - - ephemeral_session_lifetime : typing.Optional[int] - Number of hours an ephemeral (non-persistent) session will stay valid. - - idle_ephemeral_session_lifetime : typing.Optional[int] - Number of hours for which an ephemeral (non-persistent) session can be inactive before the user must log in again. - - ephemeral_session_lifetime_in_minutes : typing.Optional[int] - Number of minutes an ephemeral (non-persistent) session will stay valid. Cannot be specified together with `ephemeral_session_lifetime`. - - idle_ephemeral_session_lifetime_in_minutes : typing.Optional[int] - Number of minutes an ephemeral (non-persistent) session can be inactive before the user must log in again. Cannot be specified together with `idle_ephemeral_session_lifetime`. - - sandbox_version : typing.Optional[str] - Selected sandbox version for the extensibility environment - - legacy_sandbox_version : typing.Optional[str] - Selected legacy sandbox version for the extensibility environment - - default_redirection_uri : typing.Optional[str] - The default absolute redirection uri, must be https - - enabled_locales : typing.Optional[typing.Sequence[TenantSettingsSupportedLocalesEnum]] - Supported locales for the user interface - - access_token : typing.Optional[ResourceServerAccessToken] - - security_headers : typing.Optional[TenantSettingsNullableSecurityHeaders] - - session_cookie : typing.Optional[SessionCookieSchema] - - sessions : typing.Optional[TenantSettingsSessions] - - oidc_logout : typing.Optional[TenantOidcLogoutSettings] - - customize_mfa_in_postlogin_action : typing.Optional[bool] - Whether to enable flexible factors for MFA in the PostLogin action - - allow_organization_name_in_authentication_api : typing.Optional[bool] - Whether to accept an organization name instead of an ID on auth endpoints - - acr_values_supported : typing.Optional[typing.Sequence[str]] - Supported ACR values - - mtls : typing.Optional[TenantSettingsMtls] - - pushed_authorization_requests_supported : typing.Optional[bool] - Enables the use of Pushed Authorization Requests - - authorization_response_iss_parameter_supported : typing.Optional[bool] - Supports iss parameter in authorization responses - - dpop_strict_refresh_token_binding : typing.Optional[bool] - Enables strict DPoP refresh token binding per RFC 9449: all refresh tokens issued to public clients that present a DPoP proof are bound to the sender's key, and the binding is validated on every subsequent exchange. When disabled, DPoP refresh token binding may still apply for specific audiences for backwards compatibility. - - skip_non_verifiable_callback_uri_confirmation_prompt : typing.Optional[bool] - Controls whether a confirmation prompt is shown during login flows when the redirect URI uses non-verifiable callback URIs (for example, a custom URI schema such as `myapp://`, or `localhost`). - If set to true, a confirmation prompt will not be shown. We recommend that this is set to false for improved protection from malicious apps. - See https://auth0.com/docs/secure/security-guidance/measures-against-app-impersonation for more information. - - resource_parameter_profile : typing.Optional[TenantSettingsResourceParameterProfile] - - client_id_metadata_document_supported : typing.Optional[bool] - Whether the authorization server supports retrieving client metadata from a client_id URL. - - client_id_metadata_document_dynamic_registration_supported : typing.Optional[bool] - Whether the authorization server supports registering clients dynamically from a client_id URL. Requires client_id_metadata_document_supported to be enabled. - - enable_ai_guide : typing.Optional[bool] - Whether Auth0 Guide (AI-powered assistance) is enabled for this tenant. - - phone_consolidated_experience : typing.Optional[bool] - Whether Phone Consolidated Experience is enabled for this tenant. - - include_session_metadata_in_tenant_logs : typing.Optional[bool] - Whether session metadata is included in specific tenant logs (slo, oidc_backchannel_logout_failed, oidc_backchannel_logout_succeeded). - - dynamic_client_registration_security_mode : typing.Optional[TenantSettingsDynamicClientRegistrationSecurityMode] - - country_codes : typing.Optional[TenantSettingsCountryCodes] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateTenantSettingsResponseContent - Tenant settings successfully updated. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.tenants.settings.update() - - - asyncio.run(main()) - """ - _response = await self._raw_client.update( - change_password=change_password, - device_flow=device_flow, - guardian_mfa_page=guardian_mfa_page, - default_audience=default_audience, - default_directory=default_directory, - error_page=error_page, - default_token_quota=default_token_quota, - flags=flags, - friendly_name=friendly_name, - picture_url=picture_url, - support_email=support_email, - support_url=support_url, - allowed_logout_urls=allowed_logout_urls, - session_lifetime=session_lifetime, - session_lifetime_in_minutes=session_lifetime_in_minutes, - idle_session_lifetime=idle_session_lifetime, - idle_session_lifetime_in_minutes=idle_session_lifetime_in_minutes, - ephemeral_session_lifetime=ephemeral_session_lifetime, - idle_ephemeral_session_lifetime=idle_ephemeral_session_lifetime, - ephemeral_session_lifetime_in_minutes=ephemeral_session_lifetime_in_minutes, - idle_ephemeral_session_lifetime_in_minutes=idle_ephemeral_session_lifetime_in_minutes, - sandbox_version=sandbox_version, - legacy_sandbox_version=legacy_sandbox_version, - default_redirection_uri=default_redirection_uri, - enabled_locales=enabled_locales, - access_token=access_token, - security_headers=security_headers, - session_cookie=session_cookie, - sessions=sessions, - oidc_logout=oidc_logout, - customize_mfa_in_postlogin_action=customize_mfa_in_postlogin_action, - allow_organization_name_in_authentication_api=allow_organization_name_in_authentication_api, - acr_values_supported=acr_values_supported, - mtls=mtls, - pushed_authorization_requests_supported=pushed_authorization_requests_supported, - authorization_response_iss_parameter_supported=authorization_response_iss_parameter_supported, - dpop_strict_refresh_token_binding=dpop_strict_refresh_token_binding, - skip_non_verifiable_callback_uri_confirmation_prompt=skip_non_verifiable_callback_uri_confirmation_prompt, - resource_parameter_profile=resource_parameter_profile, - client_id_metadata_document_supported=client_id_metadata_document_supported, - client_id_metadata_document_dynamic_registration_supported=client_id_metadata_document_dynamic_registration_supported, - enable_ai_guide=enable_ai_guide, - phone_consolidated_experience=phone_consolidated_experience, - include_session_metadata_in_tenant_logs=include_session_metadata_in_tenant_logs, - dynamic_client_registration_security_mode=dynamic_client_registration_security_mode, - country_codes=country_codes, - request_options=request_options, - ) - return _response.data diff --git a/src/auth0/management/tenants/settings/raw_client.py b/src/auth0/management/tenants/settings/raw_client.py deleted file mode 100644 index 036d228f..00000000 --- a/src/auth0/management/tenants/settings/raw_client.py +++ /dev/null @@ -1,926 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ...core.api_error import ApiError -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.http_response import AsyncHttpResponse, HttpResponse -from ...core.parse_error import ParsingError -from ...core.pydantic_utilities import parse_obj_as -from ...core.request_options import RequestOptions -from ...core.serialization import convert_and_respect_annotation_metadata -from ...errors.bad_request_error import BadRequestError -from ...errors.forbidden_error import ForbiddenError -from ...errors.too_many_requests_error import TooManyRequestsError -from ...errors.unauthorized_error import UnauthorizedError -from ...types.default_token_quota import DefaultTokenQuota -from ...types.get_tenant_settings_response_content import GetTenantSettingsResponseContent -from ...types.resource_server_access_token import ResourceServerAccessToken -from ...types.session_cookie_schema import SessionCookieSchema -from ...types.tenant_oidc_logout_settings import TenantOidcLogoutSettings -from ...types.tenant_settings_country_codes import TenantSettingsCountryCodes -from ...types.tenant_settings_device_flow import TenantSettingsDeviceFlow -from ...types.tenant_settings_dynamic_client_registration_security_mode import ( - TenantSettingsDynamicClientRegistrationSecurityMode, -) -from ...types.tenant_settings_error_page import TenantSettingsErrorPage -from ...types.tenant_settings_flags import TenantSettingsFlags -from ...types.tenant_settings_guardian_page import TenantSettingsGuardianPage -from ...types.tenant_settings_mtls import TenantSettingsMtls -from ...types.tenant_settings_nullable_security_headers import TenantSettingsNullableSecurityHeaders -from ...types.tenant_settings_password_page import TenantSettingsPasswordPage -from ...types.tenant_settings_resource_parameter_profile import TenantSettingsResourceParameterProfile -from ...types.tenant_settings_sessions import TenantSettingsSessions -from ...types.tenant_settings_supported_locales_enum import TenantSettingsSupportedLocalesEnum -from ...types.update_tenant_settings_response_content import UpdateTenantSettingsResponseContent -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawSettingsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def get( - self, - *, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[GetTenantSettingsResponseContent]: - """ - Retrieve tenant settings. A list of fields to include or exclude may also be specified. - - Parameters - ---------- - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetTenantSettingsResponseContent] - Tenant settings successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - "tenants/settings", - method="GET", - params={ - "fields": fields, - "include_fields": include_fields, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetTenantSettingsResponseContent, - parse_obj_as( - type_=GetTenantSettingsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def update( - self, - *, - change_password: typing.Optional[TenantSettingsPasswordPage] = OMIT, - device_flow: typing.Optional[TenantSettingsDeviceFlow] = OMIT, - guardian_mfa_page: typing.Optional[TenantSettingsGuardianPage] = OMIT, - default_audience: typing.Optional[str] = OMIT, - default_directory: typing.Optional[str] = OMIT, - error_page: typing.Optional[TenantSettingsErrorPage] = OMIT, - default_token_quota: typing.Optional[DefaultTokenQuota] = OMIT, - flags: typing.Optional[TenantSettingsFlags] = OMIT, - friendly_name: typing.Optional[str] = OMIT, - picture_url: typing.Optional[str] = OMIT, - support_email: typing.Optional[str] = OMIT, - support_url: typing.Optional[str] = OMIT, - allowed_logout_urls: typing.Optional[typing.Sequence[str]] = OMIT, - session_lifetime: typing.Optional[int] = OMIT, - session_lifetime_in_minutes: typing.Optional[int] = OMIT, - idle_session_lifetime: typing.Optional[int] = OMIT, - idle_session_lifetime_in_minutes: typing.Optional[int] = OMIT, - ephemeral_session_lifetime: typing.Optional[int] = OMIT, - idle_ephemeral_session_lifetime: typing.Optional[int] = OMIT, - ephemeral_session_lifetime_in_minutes: typing.Optional[int] = OMIT, - idle_ephemeral_session_lifetime_in_minutes: typing.Optional[int] = OMIT, - sandbox_version: typing.Optional[str] = OMIT, - legacy_sandbox_version: typing.Optional[str] = OMIT, - default_redirection_uri: typing.Optional[str] = OMIT, - enabled_locales: typing.Optional[typing.Sequence[TenantSettingsSupportedLocalesEnum]] = OMIT, - access_token: typing.Optional[ResourceServerAccessToken] = OMIT, - security_headers: typing.Optional[TenantSettingsNullableSecurityHeaders] = OMIT, - session_cookie: typing.Optional[SessionCookieSchema] = OMIT, - sessions: typing.Optional[TenantSettingsSessions] = OMIT, - oidc_logout: typing.Optional[TenantOidcLogoutSettings] = OMIT, - customize_mfa_in_postlogin_action: typing.Optional[bool] = OMIT, - allow_organization_name_in_authentication_api: typing.Optional[bool] = OMIT, - acr_values_supported: typing.Optional[typing.Sequence[str]] = OMIT, - mtls: typing.Optional[TenantSettingsMtls] = OMIT, - pushed_authorization_requests_supported: typing.Optional[bool] = OMIT, - authorization_response_iss_parameter_supported: typing.Optional[bool] = OMIT, - dpop_strict_refresh_token_binding: typing.Optional[bool] = OMIT, - skip_non_verifiable_callback_uri_confirmation_prompt: typing.Optional[bool] = OMIT, - resource_parameter_profile: typing.Optional[TenantSettingsResourceParameterProfile] = OMIT, - client_id_metadata_document_supported: typing.Optional[bool] = OMIT, - client_id_metadata_document_dynamic_registration_supported: typing.Optional[bool] = OMIT, - enable_ai_guide: typing.Optional[bool] = OMIT, - phone_consolidated_experience: typing.Optional[bool] = OMIT, - include_session_metadata_in_tenant_logs: typing.Optional[bool] = OMIT, - dynamic_client_registration_security_mode: typing.Optional[ - TenantSettingsDynamicClientRegistrationSecurityMode - ] = OMIT, - country_codes: typing.Optional[TenantSettingsCountryCodes] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[UpdateTenantSettingsResponseContent]: - """ - Update settings for a tenant. - - Parameters - ---------- - change_password : typing.Optional[TenantSettingsPasswordPage] - - device_flow : typing.Optional[TenantSettingsDeviceFlow] - Device Flow configuration. - - guardian_mfa_page : typing.Optional[TenantSettingsGuardianPage] - - default_audience : typing.Optional[str] - Default audience for API Authorization. - - default_directory : typing.Optional[str] - Name of connection used for password grants at the `/token` endpoint. The following connection types are supported: LDAP, AD, Database Connections, Passwordless, Windows Azure Active Directory, ADFS. - - error_page : typing.Optional[TenantSettingsErrorPage] - - default_token_quota : typing.Optional[DefaultTokenQuota] - - flags : typing.Optional[TenantSettingsFlags] - - friendly_name : typing.Optional[str] - Friendly name for this tenant. - - picture_url : typing.Optional[str] - URL of logo to be shown for this tenant (recommended size: 150x150) - - support_email : typing.Optional[str] - End-user support email. - - support_url : typing.Optional[str] - End-user support url. - - allowed_logout_urls : typing.Optional[typing.Sequence[str]] - URLs that are valid to redirect to after logout from Auth0. - - session_lifetime : typing.Optional[int] - Number of hours a session will stay valid. - - session_lifetime_in_minutes : typing.Optional[int] - Number of minutes a session will stay valid. Cannot be specified together with `session_lifetime`. - - idle_session_lifetime : typing.Optional[int] - Number of hours for which a session can be inactive before the user must log in again. - - idle_session_lifetime_in_minutes : typing.Optional[int] - Number of minutes a session can be inactive before the user must log in again. Cannot be specified together with `idle_session_lifetime`. - - ephemeral_session_lifetime : typing.Optional[int] - Number of hours an ephemeral (non-persistent) session will stay valid. - - idle_ephemeral_session_lifetime : typing.Optional[int] - Number of hours for which an ephemeral (non-persistent) session can be inactive before the user must log in again. - - ephemeral_session_lifetime_in_minutes : typing.Optional[int] - Number of minutes an ephemeral (non-persistent) session will stay valid. Cannot be specified together with `ephemeral_session_lifetime`. - - idle_ephemeral_session_lifetime_in_minutes : typing.Optional[int] - Number of minutes an ephemeral (non-persistent) session can be inactive before the user must log in again. Cannot be specified together with `idle_ephemeral_session_lifetime`. - - sandbox_version : typing.Optional[str] - Selected sandbox version for the extensibility environment - - legacy_sandbox_version : typing.Optional[str] - Selected legacy sandbox version for the extensibility environment - - default_redirection_uri : typing.Optional[str] - The default absolute redirection uri, must be https - - enabled_locales : typing.Optional[typing.Sequence[TenantSettingsSupportedLocalesEnum]] - Supported locales for the user interface - - access_token : typing.Optional[ResourceServerAccessToken] - - security_headers : typing.Optional[TenantSettingsNullableSecurityHeaders] - - session_cookie : typing.Optional[SessionCookieSchema] - - sessions : typing.Optional[TenantSettingsSessions] - - oidc_logout : typing.Optional[TenantOidcLogoutSettings] - - customize_mfa_in_postlogin_action : typing.Optional[bool] - Whether to enable flexible factors for MFA in the PostLogin action - - allow_organization_name_in_authentication_api : typing.Optional[bool] - Whether to accept an organization name instead of an ID on auth endpoints - - acr_values_supported : typing.Optional[typing.Sequence[str]] - Supported ACR values - - mtls : typing.Optional[TenantSettingsMtls] - - pushed_authorization_requests_supported : typing.Optional[bool] - Enables the use of Pushed Authorization Requests - - authorization_response_iss_parameter_supported : typing.Optional[bool] - Supports iss parameter in authorization responses - - dpop_strict_refresh_token_binding : typing.Optional[bool] - Enables strict DPoP refresh token binding per RFC 9449: all refresh tokens issued to public clients that present a DPoP proof are bound to the sender's key, and the binding is validated on every subsequent exchange. When disabled, DPoP refresh token binding may still apply for specific audiences for backwards compatibility. - - skip_non_verifiable_callback_uri_confirmation_prompt : typing.Optional[bool] - Controls whether a confirmation prompt is shown during login flows when the redirect URI uses non-verifiable callback URIs (for example, a custom URI schema such as `myapp://`, or `localhost`). - If set to true, a confirmation prompt will not be shown. We recommend that this is set to false for improved protection from malicious apps. - See https://auth0.com/docs/secure/security-guidance/measures-against-app-impersonation for more information. - - resource_parameter_profile : typing.Optional[TenantSettingsResourceParameterProfile] - - client_id_metadata_document_supported : typing.Optional[bool] - Whether the authorization server supports retrieving client metadata from a client_id URL. - - client_id_metadata_document_dynamic_registration_supported : typing.Optional[bool] - Whether the authorization server supports registering clients dynamically from a client_id URL. Requires client_id_metadata_document_supported to be enabled. - - enable_ai_guide : typing.Optional[bool] - Whether Auth0 Guide (AI-powered assistance) is enabled for this tenant. - - phone_consolidated_experience : typing.Optional[bool] - Whether Phone Consolidated Experience is enabled for this tenant. - - include_session_metadata_in_tenant_logs : typing.Optional[bool] - Whether session metadata is included in specific tenant logs (slo, oidc_backchannel_logout_failed, oidc_backchannel_logout_succeeded). - - dynamic_client_registration_security_mode : typing.Optional[TenantSettingsDynamicClientRegistrationSecurityMode] - - country_codes : typing.Optional[TenantSettingsCountryCodes] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[UpdateTenantSettingsResponseContent] - Tenant settings successfully updated. - """ - _response = self._client_wrapper.httpx_client.request( - "tenants/settings", - method="PATCH", - json={ - "change_password": convert_and_respect_annotation_metadata( - object_=change_password, annotation=typing.Optional[TenantSettingsPasswordPage], direction="write" - ), - "device_flow": convert_and_respect_annotation_metadata( - object_=device_flow, annotation=typing.Optional[TenantSettingsDeviceFlow], direction="write" - ), - "guardian_mfa_page": convert_and_respect_annotation_metadata( - object_=guardian_mfa_page, annotation=typing.Optional[TenantSettingsGuardianPage], direction="write" - ), - "default_audience": default_audience, - "default_directory": default_directory, - "error_page": convert_and_respect_annotation_metadata( - object_=error_page, annotation=typing.Optional[TenantSettingsErrorPage], direction="write" - ), - "default_token_quota": convert_and_respect_annotation_metadata( - object_=default_token_quota, annotation=typing.Optional[DefaultTokenQuota], direction="write" - ), - "flags": convert_and_respect_annotation_metadata( - object_=flags, annotation=TenantSettingsFlags, direction="write" - ), - "friendly_name": friendly_name, - "picture_url": picture_url, - "support_email": support_email, - "support_url": support_url, - "allowed_logout_urls": allowed_logout_urls, - "session_lifetime": session_lifetime, - "session_lifetime_in_minutes": session_lifetime_in_minutes, - "idle_session_lifetime": idle_session_lifetime, - "idle_session_lifetime_in_minutes": idle_session_lifetime_in_minutes, - "ephemeral_session_lifetime": ephemeral_session_lifetime, - "idle_ephemeral_session_lifetime": idle_ephemeral_session_lifetime, - "ephemeral_session_lifetime_in_minutes": ephemeral_session_lifetime_in_minutes, - "idle_ephemeral_session_lifetime_in_minutes": idle_ephemeral_session_lifetime_in_minutes, - "sandbox_version": sandbox_version, - "legacy_sandbox_version": legacy_sandbox_version, - "default_redirection_uri": default_redirection_uri, - "enabled_locales": enabled_locales, - "access_token": convert_and_respect_annotation_metadata( - object_=access_token, annotation=typing.Optional[ResourceServerAccessToken], direction="write" - ), - "security_headers": convert_and_respect_annotation_metadata( - object_=security_headers, - annotation=typing.Optional[TenantSettingsNullableSecurityHeaders], - direction="write", - ), - "session_cookie": convert_and_respect_annotation_metadata( - object_=session_cookie, annotation=typing.Optional[SessionCookieSchema], direction="write" - ), - "sessions": convert_and_respect_annotation_metadata( - object_=sessions, annotation=typing.Optional[TenantSettingsSessions], direction="write" - ), - "oidc_logout": convert_and_respect_annotation_metadata( - object_=oidc_logout, annotation=TenantOidcLogoutSettings, direction="write" - ), - "customize_mfa_in_postlogin_action": customize_mfa_in_postlogin_action, - "allow_organization_name_in_authentication_api": allow_organization_name_in_authentication_api, - "acr_values_supported": acr_values_supported, - "mtls": convert_and_respect_annotation_metadata( - object_=mtls, annotation=typing.Optional[TenantSettingsMtls], direction="write" - ), - "pushed_authorization_requests_supported": pushed_authorization_requests_supported, - "authorization_response_iss_parameter_supported": authorization_response_iss_parameter_supported, - "dpop_strict_refresh_token_binding": dpop_strict_refresh_token_binding, - "skip_non_verifiable_callback_uri_confirmation_prompt": skip_non_verifiable_callback_uri_confirmation_prompt, - "resource_parameter_profile": resource_parameter_profile, - "client_id_metadata_document_supported": client_id_metadata_document_supported, - "client_id_metadata_document_dynamic_registration_supported": client_id_metadata_document_dynamic_registration_supported, - "enable_ai_guide": enable_ai_guide, - "phone_consolidated_experience": phone_consolidated_experience, - "include_session_metadata_in_tenant_logs": include_session_metadata_in_tenant_logs, - "dynamic_client_registration_security_mode": dynamic_client_registration_security_mode, - "country_codes": convert_and_respect_annotation_metadata( - object_=country_codes, annotation=typing.Optional[TenantSettingsCountryCodes], direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateTenantSettingsResponseContent, - parse_obj_as( - type_=UpdateTenantSettingsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawSettingsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def get( - self, - *, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[GetTenantSettingsResponseContent]: - """ - Retrieve tenant settings. A list of fields to include or exclude may also be specified. - - Parameters - ---------- - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetTenantSettingsResponseContent] - Tenant settings successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - "tenants/settings", - method="GET", - params={ - "fields": fields, - "include_fields": include_fields, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetTenantSettingsResponseContent, - parse_obj_as( - type_=GetTenantSettingsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def update( - self, - *, - change_password: typing.Optional[TenantSettingsPasswordPage] = OMIT, - device_flow: typing.Optional[TenantSettingsDeviceFlow] = OMIT, - guardian_mfa_page: typing.Optional[TenantSettingsGuardianPage] = OMIT, - default_audience: typing.Optional[str] = OMIT, - default_directory: typing.Optional[str] = OMIT, - error_page: typing.Optional[TenantSettingsErrorPage] = OMIT, - default_token_quota: typing.Optional[DefaultTokenQuota] = OMIT, - flags: typing.Optional[TenantSettingsFlags] = OMIT, - friendly_name: typing.Optional[str] = OMIT, - picture_url: typing.Optional[str] = OMIT, - support_email: typing.Optional[str] = OMIT, - support_url: typing.Optional[str] = OMIT, - allowed_logout_urls: typing.Optional[typing.Sequence[str]] = OMIT, - session_lifetime: typing.Optional[int] = OMIT, - session_lifetime_in_minutes: typing.Optional[int] = OMIT, - idle_session_lifetime: typing.Optional[int] = OMIT, - idle_session_lifetime_in_minutes: typing.Optional[int] = OMIT, - ephemeral_session_lifetime: typing.Optional[int] = OMIT, - idle_ephemeral_session_lifetime: typing.Optional[int] = OMIT, - ephemeral_session_lifetime_in_minutes: typing.Optional[int] = OMIT, - idle_ephemeral_session_lifetime_in_minutes: typing.Optional[int] = OMIT, - sandbox_version: typing.Optional[str] = OMIT, - legacy_sandbox_version: typing.Optional[str] = OMIT, - default_redirection_uri: typing.Optional[str] = OMIT, - enabled_locales: typing.Optional[typing.Sequence[TenantSettingsSupportedLocalesEnum]] = OMIT, - access_token: typing.Optional[ResourceServerAccessToken] = OMIT, - security_headers: typing.Optional[TenantSettingsNullableSecurityHeaders] = OMIT, - session_cookie: typing.Optional[SessionCookieSchema] = OMIT, - sessions: typing.Optional[TenantSettingsSessions] = OMIT, - oidc_logout: typing.Optional[TenantOidcLogoutSettings] = OMIT, - customize_mfa_in_postlogin_action: typing.Optional[bool] = OMIT, - allow_organization_name_in_authentication_api: typing.Optional[bool] = OMIT, - acr_values_supported: typing.Optional[typing.Sequence[str]] = OMIT, - mtls: typing.Optional[TenantSettingsMtls] = OMIT, - pushed_authorization_requests_supported: typing.Optional[bool] = OMIT, - authorization_response_iss_parameter_supported: typing.Optional[bool] = OMIT, - dpop_strict_refresh_token_binding: typing.Optional[bool] = OMIT, - skip_non_verifiable_callback_uri_confirmation_prompt: typing.Optional[bool] = OMIT, - resource_parameter_profile: typing.Optional[TenantSettingsResourceParameterProfile] = OMIT, - client_id_metadata_document_supported: typing.Optional[bool] = OMIT, - client_id_metadata_document_dynamic_registration_supported: typing.Optional[bool] = OMIT, - enable_ai_guide: typing.Optional[bool] = OMIT, - phone_consolidated_experience: typing.Optional[bool] = OMIT, - include_session_metadata_in_tenant_logs: typing.Optional[bool] = OMIT, - dynamic_client_registration_security_mode: typing.Optional[ - TenantSettingsDynamicClientRegistrationSecurityMode - ] = OMIT, - country_codes: typing.Optional[TenantSettingsCountryCodes] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[UpdateTenantSettingsResponseContent]: - """ - Update settings for a tenant. - - Parameters - ---------- - change_password : typing.Optional[TenantSettingsPasswordPage] - - device_flow : typing.Optional[TenantSettingsDeviceFlow] - Device Flow configuration. - - guardian_mfa_page : typing.Optional[TenantSettingsGuardianPage] - - default_audience : typing.Optional[str] - Default audience for API Authorization. - - default_directory : typing.Optional[str] - Name of connection used for password grants at the `/token` endpoint. The following connection types are supported: LDAP, AD, Database Connections, Passwordless, Windows Azure Active Directory, ADFS. - - error_page : typing.Optional[TenantSettingsErrorPage] - - default_token_quota : typing.Optional[DefaultTokenQuota] - - flags : typing.Optional[TenantSettingsFlags] - - friendly_name : typing.Optional[str] - Friendly name for this tenant. - - picture_url : typing.Optional[str] - URL of logo to be shown for this tenant (recommended size: 150x150) - - support_email : typing.Optional[str] - End-user support email. - - support_url : typing.Optional[str] - End-user support url. - - allowed_logout_urls : typing.Optional[typing.Sequence[str]] - URLs that are valid to redirect to after logout from Auth0. - - session_lifetime : typing.Optional[int] - Number of hours a session will stay valid. - - session_lifetime_in_minutes : typing.Optional[int] - Number of minutes a session will stay valid. Cannot be specified together with `session_lifetime`. - - idle_session_lifetime : typing.Optional[int] - Number of hours for which a session can be inactive before the user must log in again. - - idle_session_lifetime_in_minutes : typing.Optional[int] - Number of minutes a session can be inactive before the user must log in again. Cannot be specified together with `idle_session_lifetime`. - - ephemeral_session_lifetime : typing.Optional[int] - Number of hours an ephemeral (non-persistent) session will stay valid. - - idle_ephemeral_session_lifetime : typing.Optional[int] - Number of hours for which an ephemeral (non-persistent) session can be inactive before the user must log in again. - - ephemeral_session_lifetime_in_minutes : typing.Optional[int] - Number of minutes an ephemeral (non-persistent) session will stay valid. Cannot be specified together with `ephemeral_session_lifetime`. - - idle_ephemeral_session_lifetime_in_minutes : typing.Optional[int] - Number of minutes an ephemeral (non-persistent) session can be inactive before the user must log in again. Cannot be specified together with `idle_ephemeral_session_lifetime`. - - sandbox_version : typing.Optional[str] - Selected sandbox version for the extensibility environment - - legacy_sandbox_version : typing.Optional[str] - Selected legacy sandbox version for the extensibility environment - - default_redirection_uri : typing.Optional[str] - The default absolute redirection uri, must be https - - enabled_locales : typing.Optional[typing.Sequence[TenantSettingsSupportedLocalesEnum]] - Supported locales for the user interface - - access_token : typing.Optional[ResourceServerAccessToken] - - security_headers : typing.Optional[TenantSettingsNullableSecurityHeaders] - - session_cookie : typing.Optional[SessionCookieSchema] - - sessions : typing.Optional[TenantSettingsSessions] - - oidc_logout : typing.Optional[TenantOidcLogoutSettings] - - customize_mfa_in_postlogin_action : typing.Optional[bool] - Whether to enable flexible factors for MFA in the PostLogin action - - allow_organization_name_in_authentication_api : typing.Optional[bool] - Whether to accept an organization name instead of an ID on auth endpoints - - acr_values_supported : typing.Optional[typing.Sequence[str]] - Supported ACR values - - mtls : typing.Optional[TenantSettingsMtls] - - pushed_authorization_requests_supported : typing.Optional[bool] - Enables the use of Pushed Authorization Requests - - authorization_response_iss_parameter_supported : typing.Optional[bool] - Supports iss parameter in authorization responses - - dpop_strict_refresh_token_binding : typing.Optional[bool] - Enables strict DPoP refresh token binding per RFC 9449: all refresh tokens issued to public clients that present a DPoP proof are bound to the sender's key, and the binding is validated on every subsequent exchange. When disabled, DPoP refresh token binding may still apply for specific audiences for backwards compatibility. - - skip_non_verifiable_callback_uri_confirmation_prompt : typing.Optional[bool] - Controls whether a confirmation prompt is shown during login flows when the redirect URI uses non-verifiable callback URIs (for example, a custom URI schema such as `myapp://`, or `localhost`). - If set to true, a confirmation prompt will not be shown. We recommend that this is set to false for improved protection from malicious apps. - See https://auth0.com/docs/secure/security-guidance/measures-against-app-impersonation for more information. - - resource_parameter_profile : typing.Optional[TenantSettingsResourceParameterProfile] - - client_id_metadata_document_supported : typing.Optional[bool] - Whether the authorization server supports retrieving client metadata from a client_id URL. - - client_id_metadata_document_dynamic_registration_supported : typing.Optional[bool] - Whether the authorization server supports registering clients dynamically from a client_id URL. Requires client_id_metadata_document_supported to be enabled. - - enable_ai_guide : typing.Optional[bool] - Whether Auth0 Guide (AI-powered assistance) is enabled for this tenant. - - phone_consolidated_experience : typing.Optional[bool] - Whether Phone Consolidated Experience is enabled for this tenant. - - include_session_metadata_in_tenant_logs : typing.Optional[bool] - Whether session metadata is included in specific tenant logs (slo, oidc_backchannel_logout_failed, oidc_backchannel_logout_succeeded). - - dynamic_client_registration_security_mode : typing.Optional[TenantSettingsDynamicClientRegistrationSecurityMode] - - country_codes : typing.Optional[TenantSettingsCountryCodes] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[UpdateTenantSettingsResponseContent] - Tenant settings successfully updated. - """ - _response = await self._client_wrapper.httpx_client.request( - "tenants/settings", - method="PATCH", - json={ - "change_password": convert_and_respect_annotation_metadata( - object_=change_password, annotation=typing.Optional[TenantSettingsPasswordPage], direction="write" - ), - "device_flow": convert_and_respect_annotation_metadata( - object_=device_flow, annotation=typing.Optional[TenantSettingsDeviceFlow], direction="write" - ), - "guardian_mfa_page": convert_and_respect_annotation_metadata( - object_=guardian_mfa_page, annotation=typing.Optional[TenantSettingsGuardianPage], direction="write" - ), - "default_audience": default_audience, - "default_directory": default_directory, - "error_page": convert_and_respect_annotation_metadata( - object_=error_page, annotation=typing.Optional[TenantSettingsErrorPage], direction="write" - ), - "default_token_quota": convert_and_respect_annotation_metadata( - object_=default_token_quota, annotation=typing.Optional[DefaultTokenQuota], direction="write" - ), - "flags": convert_and_respect_annotation_metadata( - object_=flags, annotation=TenantSettingsFlags, direction="write" - ), - "friendly_name": friendly_name, - "picture_url": picture_url, - "support_email": support_email, - "support_url": support_url, - "allowed_logout_urls": allowed_logout_urls, - "session_lifetime": session_lifetime, - "session_lifetime_in_minutes": session_lifetime_in_minutes, - "idle_session_lifetime": idle_session_lifetime, - "idle_session_lifetime_in_minutes": idle_session_lifetime_in_minutes, - "ephemeral_session_lifetime": ephemeral_session_lifetime, - "idle_ephemeral_session_lifetime": idle_ephemeral_session_lifetime, - "ephemeral_session_lifetime_in_minutes": ephemeral_session_lifetime_in_minutes, - "idle_ephemeral_session_lifetime_in_minutes": idle_ephemeral_session_lifetime_in_minutes, - "sandbox_version": sandbox_version, - "legacy_sandbox_version": legacy_sandbox_version, - "default_redirection_uri": default_redirection_uri, - "enabled_locales": enabled_locales, - "access_token": convert_and_respect_annotation_metadata( - object_=access_token, annotation=typing.Optional[ResourceServerAccessToken], direction="write" - ), - "security_headers": convert_and_respect_annotation_metadata( - object_=security_headers, - annotation=typing.Optional[TenantSettingsNullableSecurityHeaders], - direction="write", - ), - "session_cookie": convert_and_respect_annotation_metadata( - object_=session_cookie, annotation=typing.Optional[SessionCookieSchema], direction="write" - ), - "sessions": convert_and_respect_annotation_metadata( - object_=sessions, annotation=typing.Optional[TenantSettingsSessions], direction="write" - ), - "oidc_logout": convert_and_respect_annotation_metadata( - object_=oidc_logout, annotation=TenantOidcLogoutSettings, direction="write" - ), - "customize_mfa_in_postlogin_action": customize_mfa_in_postlogin_action, - "allow_organization_name_in_authentication_api": allow_organization_name_in_authentication_api, - "acr_values_supported": acr_values_supported, - "mtls": convert_and_respect_annotation_metadata( - object_=mtls, annotation=typing.Optional[TenantSettingsMtls], direction="write" - ), - "pushed_authorization_requests_supported": pushed_authorization_requests_supported, - "authorization_response_iss_parameter_supported": authorization_response_iss_parameter_supported, - "dpop_strict_refresh_token_binding": dpop_strict_refresh_token_binding, - "skip_non_verifiable_callback_uri_confirmation_prompt": skip_non_verifiable_callback_uri_confirmation_prompt, - "resource_parameter_profile": resource_parameter_profile, - "client_id_metadata_document_supported": client_id_metadata_document_supported, - "client_id_metadata_document_dynamic_registration_supported": client_id_metadata_document_dynamic_registration_supported, - "enable_ai_guide": enable_ai_guide, - "phone_consolidated_experience": phone_consolidated_experience, - "include_session_metadata_in_tenant_logs": include_session_metadata_in_tenant_logs, - "dynamic_client_registration_security_mode": dynamic_client_registration_security_mode, - "country_codes": convert_and_respect_annotation_metadata( - object_=country_codes, annotation=typing.Optional[TenantSettingsCountryCodes], direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateTenantSettingsResponseContent, - parse_obj_as( - type_=UpdateTenantSettingsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/tickets/__init__.py b/src/auth0/management/tickets/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/tickets/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/tickets/client.py b/src/auth0/management/tickets/client.py deleted file mode 100644 index 0a5a69d0..00000000 --- a/src/auth0/management/tickets/client.py +++ /dev/null @@ -1,364 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.request_options import RequestOptions -from ..types.change_password_ticket_identity import ChangePasswordTicketIdentity -from ..types.change_password_ticket_response_content import ChangePasswordTicketResponseContent -from ..types.identity import Identity -from ..types.verify_email_ticket_response_content import VerifyEmailTicketResponseContent -from .raw_client import AsyncRawTicketsClient, RawTicketsClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class TicketsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawTicketsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawTicketsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawTicketsClient - """ - return self._raw_client - - def verify_email( - self, - *, - user_id: str, - result_url: typing.Optional[str] = OMIT, - client_id: typing.Optional[str] = OMIT, - organization_id: typing.Optional[str] = OMIT, - ttl_sec: typing.Optional[int] = OMIT, - include_email_in_redirect: typing.Optional[bool] = OMIT, - identity: typing.Optional[Identity] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> VerifyEmailTicketResponseContent: - """ - Create an email verification ticket for a given user. An email verification ticket is a generated URL that the user can consume to verify their email address. - - Parameters - ---------- - user_id : str - user_id of for whom the ticket should be created. - - result_url : typing.Optional[str] - URL the user will be redirected to in the classic Universal Login experience once the ticket is used. Cannot be specified when using client_id or organization_id. - - client_id : typing.Optional[str] - ID of the client (application). If provided for tenants using the New Universal Login experience, the email template and UI displays application details, and the user is prompted to redirect to the application's default login route after the ticket is used. client_id is required to use the Password Reset Post Challenge trigger. - - organization_id : typing.Optional[str] - (Optional) Organization ID – the ID of the Organization. If provided, organization parameters will be made available to the email template and organization branding will be applied to the prompt. In addition, the redirect link in the prompt will include organization_id and organization_name query string parameters. - - ttl_sec : typing.Optional[int] - Number of seconds for which the ticket is valid before expiration. If unspecified or set to 0, this value defaults to 432000 seconds (5 days). - - include_email_in_redirect : typing.Optional[bool] - Whether to include the email address as part of the returnUrl in the reset_email (true), or not (false). - - identity : typing.Optional[Identity] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - VerifyEmailTicketResponseContent - Ticket successfully created. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.tickets.verify_email( - user_id="user_id", - ) - """ - _response = self._raw_client.verify_email( - user_id=user_id, - result_url=result_url, - client_id=client_id, - organization_id=organization_id, - ttl_sec=ttl_sec, - include_email_in_redirect=include_email_in_redirect, - identity=identity, - request_options=request_options, - ) - return _response.data - - def change_password( - self, - *, - result_url: typing.Optional[str] = OMIT, - user_id: typing.Optional[str] = OMIT, - client_id: typing.Optional[str] = OMIT, - organization_id: typing.Optional[str] = OMIT, - connection_id: typing.Optional[str] = OMIT, - email: typing.Optional[str] = OMIT, - ttl_sec: typing.Optional[int] = OMIT, - mark_email_as_verified: typing.Optional[bool] = OMIT, - include_email_in_redirect: typing.Optional[bool] = OMIT, - identity: typing.Optional[ChangePasswordTicketIdentity] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> ChangePasswordTicketResponseContent: - """ - Create a password change ticket for a given user. A password change ticket is a generated URL that the user can consume to start a reset password flow. - - Note: This endpoint does not verify the given user’s identity. If you call this endpoint within your application, you must design your application to verify the user’s identity. - - Parameters - ---------- - result_url : typing.Optional[str] - URL the user will be redirected to in the classic Universal Login experience once the ticket is used. Cannot be specified when using organization_id. May be specified together with client_id when the tenant has a custom password reset page enabled and a password-reset-post-challenge Action bound. - - user_id : typing.Optional[str] - user_id of for whom the ticket should be created. - - client_id : typing.Optional[str] - ID of the client (application). If provided for tenants using the New Universal Login experience, the email template and UI displays application details, and the user is prompted to redirect to the application's default login route after the ticket is used. client_id is required to use the Password Reset Post Challenge trigger. - - organization_id : typing.Optional[str] - (Optional) Organization ID – the ID of the Organization. If provided, organization parameters will be made available to the email template and organization branding will be applied to the prompt. In addition, the redirect link in the prompt will include organization_id and organization_name query string parameters. - - connection_id : typing.Optional[str] - ID of the connection. If provided, allows the user to be specified using email instead of user_id. If you set this value, you must also send the email parameter. You cannot send user_id when specifying a connection_id. - - email : typing.Optional[str] - Email address of the user for whom the tickets should be created. Requires the connection_id parameter. Cannot be specified when using user_id. - - ttl_sec : typing.Optional[int] - Number of seconds for which the ticket is valid before expiration. If unspecified or set to 0, this value defaults to 432000 seconds (5 days). - - mark_email_as_verified : typing.Optional[bool] - Whether to set the email_verified attribute to true (true) or whether it should not be updated (false). - - include_email_in_redirect : typing.Optional[bool] - Whether to include the email address as part of the returnUrl in the reset_email (true), or not (false). - - identity : typing.Optional[ChangePasswordTicketIdentity] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - ChangePasswordTicketResponseContent - Ticket successfully created. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.tickets.change_password() - """ - _response = self._raw_client.change_password( - result_url=result_url, - user_id=user_id, - client_id=client_id, - organization_id=organization_id, - connection_id=connection_id, - email=email, - ttl_sec=ttl_sec, - mark_email_as_verified=mark_email_as_verified, - include_email_in_redirect=include_email_in_redirect, - identity=identity, - request_options=request_options, - ) - return _response.data - - -class AsyncTicketsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawTicketsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawTicketsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawTicketsClient - """ - return self._raw_client - - async def verify_email( - self, - *, - user_id: str, - result_url: typing.Optional[str] = OMIT, - client_id: typing.Optional[str] = OMIT, - organization_id: typing.Optional[str] = OMIT, - ttl_sec: typing.Optional[int] = OMIT, - include_email_in_redirect: typing.Optional[bool] = OMIT, - identity: typing.Optional[Identity] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> VerifyEmailTicketResponseContent: - """ - Create an email verification ticket for a given user. An email verification ticket is a generated URL that the user can consume to verify their email address. - - Parameters - ---------- - user_id : str - user_id of for whom the ticket should be created. - - result_url : typing.Optional[str] - URL the user will be redirected to in the classic Universal Login experience once the ticket is used. Cannot be specified when using client_id or organization_id. - - client_id : typing.Optional[str] - ID of the client (application). If provided for tenants using the New Universal Login experience, the email template and UI displays application details, and the user is prompted to redirect to the application's default login route after the ticket is used. client_id is required to use the Password Reset Post Challenge trigger. - - organization_id : typing.Optional[str] - (Optional) Organization ID – the ID of the Organization. If provided, organization parameters will be made available to the email template and organization branding will be applied to the prompt. In addition, the redirect link in the prompt will include organization_id and organization_name query string parameters. - - ttl_sec : typing.Optional[int] - Number of seconds for which the ticket is valid before expiration. If unspecified or set to 0, this value defaults to 432000 seconds (5 days). - - include_email_in_redirect : typing.Optional[bool] - Whether to include the email address as part of the returnUrl in the reset_email (true), or not (false). - - identity : typing.Optional[Identity] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - VerifyEmailTicketResponseContent - Ticket successfully created. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.tickets.verify_email( - user_id="user_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.verify_email( - user_id=user_id, - result_url=result_url, - client_id=client_id, - organization_id=organization_id, - ttl_sec=ttl_sec, - include_email_in_redirect=include_email_in_redirect, - identity=identity, - request_options=request_options, - ) - return _response.data - - async def change_password( - self, - *, - result_url: typing.Optional[str] = OMIT, - user_id: typing.Optional[str] = OMIT, - client_id: typing.Optional[str] = OMIT, - organization_id: typing.Optional[str] = OMIT, - connection_id: typing.Optional[str] = OMIT, - email: typing.Optional[str] = OMIT, - ttl_sec: typing.Optional[int] = OMIT, - mark_email_as_verified: typing.Optional[bool] = OMIT, - include_email_in_redirect: typing.Optional[bool] = OMIT, - identity: typing.Optional[ChangePasswordTicketIdentity] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> ChangePasswordTicketResponseContent: - """ - Create a password change ticket for a given user. A password change ticket is a generated URL that the user can consume to start a reset password flow. - - Note: This endpoint does not verify the given user’s identity. If you call this endpoint within your application, you must design your application to verify the user’s identity. - - Parameters - ---------- - result_url : typing.Optional[str] - URL the user will be redirected to in the classic Universal Login experience once the ticket is used. Cannot be specified when using organization_id. May be specified together with client_id when the tenant has a custom password reset page enabled and a password-reset-post-challenge Action bound. - - user_id : typing.Optional[str] - user_id of for whom the ticket should be created. - - client_id : typing.Optional[str] - ID of the client (application). If provided for tenants using the New Universal Login experience, the email template and UI displays application details, and the user is prompted to redirect to the application's default login route after the ticket is used. client_id is required to use the Password Reset Post Challenge trigger. - - organization_id : typing.Optional[str] - (Optional) Organization ID – the ID of the Organization. If provided, organization parameters will be made available to the email template and organization branding will be applied to the prompt. In addition, the redirect link in the prompt will include organization_id and organization_name query string parameters. - - connection_id : typing.Optional[str] - ID of the connection. If provided, allows the user to be specified using email instead of user_id. If you set this value, you must also send the email parameter. You cannot send user_id when specifying a connection_id. - - email : typing.Optional[str] - Email address of the user for whom the tickets should be created. Requires the connection_id parameter. Cannot be specified when using user_id. - - ttl_sec : typing.Optional[int] - Number of seconds for which the ticket is valid before expiration. If unspecified or set to 0, this value defaults to 432000 seconds (5 days). - - mark_email_as_verified : typing.Optional[bool] - Whether to set the email_verified attribute to true (true) or whether it should not be updated (false). - - include_email_in_redirect : typing.Optional[bool] - Whether to include the email address as part of the returnUrl in the reset_email (true), or not (false). - - identity : typing.Optional[ChangePasswordTicketIdentity] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - ChangePasswordTicketResponseContent - Ticket successfully created. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.tickets.change_password() - - - asyncio.run(main()) - """ - _response = await self._raw_client.change_password( - result_url=result_url, - user_id=user_id, - client_id=client_id, - organization_id=organization_id, - connection_id=connection_id, - email=email, - ttl_sec=ttl_sec, - mark_email_as_verified=mark_email_as_verified, - include_email_in_redirect=include_email_in_redirect, - identity=identity, - request_options=request_options, - ) - return _response.data diff --git a/src/auth0/management/tickets/raw_client.py b/src/auth0/management/tickets/raw_client.py deleted file mode 100644 index df7dcbfe..00000000 --- a/src/auth0/management/tickets/raw_client.py +++ /dev/null @@ -1,625 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ..core.api_error import ApiError -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.http_response import AsyncHttpResponse, HttpResponse -from ..core.parse_error import ParsingError -from ..core.pydantic_utilities import parse_obj_as -from ..core.request_options import RequestOptions -from ..core.serialization import convert_and_respect_annotation_metadata -from ..errors.bad_request_error import BadRequestError -from ..errors.forbidden_error import ForbiddenError -from ..errors.not_found_error import NotFoundError -from ..errors.too_many_requests_error import TooManyRequestsError -from ..errors.unauthorized_error import UnauthorizedError -from ..types.change_password_ticket_identity import ChangePasswordTicketIdentity -from ..types.change_password_ticket_response_content import ChangePasswordTicketResponseContent -from ..types.identity import Identity -from ..types.verify_email_ticket_response_content import VerifyEmailTicketResponseContent -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawTicketsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def verify_email( - self, - *, - user_id: str, - result_url: typing.Optional[str] = OMIT, - client_id: typing.Optional[str] = OMIT, - organization_id: typing.Optional[str] = OMIT, - ttl_sec: typing.Optional[int] = OMIT, - include_email_in_redirect: typing.Optional[bool] = OMIT, - identity: typing.Optional[Identity] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[VerifyEmailTicketResponseContent]: - """ - Create an email verification ticket for a given user. An email verification ticket is a generated URL that the user can consume to verify their email address. - - Parameters - ---------- - user_id : str - user_id of for whom the ticket should be created. - - result_url : typing.Optional[str] - URL the user will be redirected to in the classic Universal Login experience once the ticket is used. Cannot be specified when using client_id or organization_id. - - client_id : typing.Optional[str] - ID of the client (application). If provided for tenants using the New Universal Login experience, the email template and UI displays application details, and the user is prompted to redirect to the application's default login route after the ticket is used. client_id is required to use the Password Reset Post Challenge trigger. - - organization_id : typing.Optional[str] - (Optional) Organization ID – the ID of the Organization. If provided, organization parameters will be made available to the email template and organization branding will be applied to the prompt. In addition, the redirect link in the prompt will include organization_id and organization_name query string parameters. - - ttl_sec : typing.Optional[int] - Number of seconds for which the ticket is valid before expiration. If unspecified or set to 0, this value defaults to 432000 seconds (5 days). - - include_email_in_redirect : typing.Optional[bool] - Whether to include the email address as part of the returnUrl in the reset_email (true), or not (false). - - identity : typing.Optional[Identity] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[VerifyEmailTicketResponseContent] - Ticket successfully created. - """ - _response = self._client_wrapper.httpx_client.request( - "tickets/email-verification", - method="POST", - json={ - "result_url": result_url, - "user_id": user_id, - "client_id": client_id, - "organization_id": organization_id, - "ttl_sec": ttl_sec, - "includeEmailInRedirect": include_email_in_redirect, - "identity": convert_and_respect_annotation_metadata( - object_=identity, annotation=Identity, direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - VerifyEmailTicketResponseContent, - parse_obj_as( - type_=VerifyEmailTicketResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def change_password( - self, - *, - result_url: typing.Optional[str] = OMIT, - user_id: typing.Optional[str] = OMIT, - client_id: typing.Optional[str] = OMIT, - organization_id: typing.Optional[str] = OMIT, - connection_id: typing.Optional[str] = OMIT, - email: typing.Optional[str] = OMIT, - ttl_sec: typing.Optional[int] = OMIT, - mark_email_as_verified: typing.Optional[bool] = OMIT, - include_email_in_redirect: typing.Optional[bool] = OMIT, - identity: typing.Optional[ChangePasswordTicketIdentity] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[ChangePasswordTicketResponseContent]: - """ - Create a password change ticket for a given user. A password change ticket is a generated URL that the user can consume to start a reset password flow. - - Note: This endpoint does not verify the given user’s identity. If you call this endpoint within your application, you must design your application to verify the user’s identity. - - Parameters - ---------- - result_url : typing.Optional[str] - URL the user will be redirected to in the classic Universal Login experience once the ticket is used. Cannot be specified when using organization_id. May be specified together with client_id when the tenant has a custom password reset page enabled and a password-reset-post-challenge Action bound. - - user_id : typing.Optional[str] - user_id of for whom the ticket should be created. - - client_id : typing.Optional[str] - ID of the client (application). If provided for tenants using the New Universal Login experience, the email template and UI displays application details, and the user is prompted to redirect to the application's default login route after the ticket is used. client_id is required to use the Password Reset Post Challenge trigger. - - organization_id : typing.Optional[str] - (Optional) Organization ID – the ID of the Organization. If provided, organization parameters will be made available to the email template and organization branding will be applied to the prompt. In addition, the redirect link in the prompt will include organization_id and organization_name query string parameters. - - connection_id : typing.Optional[str] - ID of the connection. If provided, allows the user to be specified using email instead of user_id. If you set this value, you must also send the email parameter. You cannot send user_id when specifying a connection_id. - - email : typing.Optional[str] - Email address of the user for whom the tickets should be created. Requires the connection_id parameter. Cannot be specified when using user_id. - - ttl_sec : typing.Optional[int] - Number of seconds for which the ticket is valid before expiration. If unspecified or set to 0, this value defaults to 432000 seconds (5 days). - - mark_email_as_verified : typing.Optional[bool] - Whether to set the email_verified attribute to true (true) or whether it should not be updated (false). - - include_email_in_redirect : typing.Optional[bool] - Whether to include the email address as part of the returnUrl in the reset_email (true), or not (false). - - identity : typing.Optional[ChangePasswordTicketIdentity] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[ChangePasswordTicketResponseContent] - Ticket successfully created. - """ - _response = self._client_wrapper.httpx_client.request( - "tickets/password-change", - method="POST", - json={ - "result_url": result_url, - "user_id": user_id, - "client_id": client_id, - "organization_id": organization_id, - "connection_id": connection_id, - "email": email, - "ttl_sec": ttl_sec, - "mark_email_as_verified": mark_email_as_verified, - "includeEmailInRedirect": include_email_in_redirect, - "identity": convert_and_respect_annotation_metadata( - object_=identity, annotation=ChangePasswordTicketIdentity, direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - ChangePasswordTicketResponseContent, - parse_obj_as( - type_=ChangePasswordTicketResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawTicketsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def verify_email( - self, - *, - user_id: str, - result_url: typing.Optional[str] = OMIT, - client_id: typing.Optional[str] = OMIT, - organization_id: typing.Optional[str] = OMIT, - ttl_sec: typing.Optional[int] = OMIT, - include_email_in_redirect: typing.Optional[bool] = OMIT, - identity: typing.Optional[Identity] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[VerifyEmailTicketResponseContent]: - """ - Create an email verification ticket for a given user. An email verification ticket is a generated URL that the user can consume to verify their email address. - - Parameters - ---------- - user_id : str - user_id of for whom the ticket should be created. - - result_url : typing.Optional[str] - URL the user will be redirected to in the classic Universal Login experience once the ticket is used. Cannot be specified when using client_id or organization_id. - - client_id : typing.Optional[str] - ID of the client (application). If provided for tenants using the New Universal Login experience, the email template and UI displays application details, and the user is prompted to redirect to the application's default login route after the ticket is used. client_id is required to use the Password Reset Post Challenge trigger. - - organization_id : typing.Optional[str] - (Optional) Organization ID – the ID of the Organization. If provided, organization parameters will be made available to the email template and organization branding will be applied to the prompt. In addition, the redirect link in the prompt will include organization_id and organization_name query string parameters. - - ttl_sec : typing.Optional[int] - Number of seconds for which the ticket is valid before expiration. If unspecified or set to 0, this value defaults to 432000 seconds (5 days). - - include_email_in_redirect : typing.Optional[bool] - Whether to include the email address as part of the returnUrl in the reset_email (true), or not (false). - - identity : typing.Optional[Identity] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[VerifyEmailTicketResponseContent] - Ticket successfully created. - """ - _response = await self._client_wrapper.httpx_client.request( - "tickets/email-verification", - method="POST", - json={ - "result_url": result_url, - "user_id": user_id, - "client_id": client_id, - "organization_id": organization_id, - "ttl_sec": ttl_sec, - "includeEmailInRedirect": include_email_in_redirect, - "identity": convert_and_respect_annotation_metadata( - object_=identity, annotation=Identity, direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - VerifyEmailTicketResponseContent, - parse_obj_as( - type_=VerifyEmailTicketResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def change_password( - self, - *, - result_url: typing.Optional[str] = OMIT, - user_id: typing.Optional[str] = OMIT, - client_id: typing.Optional[str] = OMIT, - organization_id: typing.Optional[str] = OMIT, - connection_id: typing.Optional[str] = OMIT, - email: typing.Optional[str] = OMIT, - ttl_sec: typing.Optional[int] = OMIT, - mark_email_as_verified: typing.Optional[bool] = OMIT, - include_email_in_redirect: typing.Optional[bool] = OMIT, - identity: typing.Optional[ChangePasswordTicketIdentity] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[ChangePasswordTicketResponseContent]: - """ - Create a password change ticket for a given user. A password change ticket is a generated URL that the user can consume to start a reset password flow. - - Note: This endpoint does not verify the given user’s identity. If you call this endpoint within your application, you must design your application to verify the user’s identity. - - Parameters - ---------- - result_url : typing.Optional[str] - URL the user will be redirected to in the classic Universal Login experience once the ticket is used. Cannot be specified when using organization_id. May be specified together with client_id when the tenant has a custom password reset page enabled and a password-reset-post-challenge Action bound. - - user_id : typing.Optional[str] - user_id of for whom the ticket should be created. - - client_id : typing.Optional[str] - ID of the client (application). If provided for tenants using the New Universal Login experience, the email template and UI displays application details, and the user is prompted to redirect to the application's default login route after the ticket is used. client_id is required to use the Password Reset Post Challenge trigger. - - organization_id : typing.Optional[str] - (Optional) Organization ID – the ID of the Organization. If provided, organization parameters will be made available to the email template and organization branding will be applied to the prompt. In addition, the redirect link in the prompt will include organization_id and organization_name query string parameters. - - connection_id : typing.Optional[str] - ID of the connection. If provided, allows the user to be specified using email instead of user_id. If you set this value, you must also send the email parameter. You cannot send user_id when specifying a connection_id. - - email : typing.Optional[str] - Email address of the user for whom the tickets should be created. Requires the connection_id parameter. Cannot be specified when using user_id. - - ttl_sec : typing.Optional[int] - Number of seconds for which the ticket is valid before expiration. If unspecified or set to 0, this value defaults to 432000 seconds (5 days). - - mark_email_as_verified : typing.Optional[bool] - Whether to set the email_verified attribute to true (true) or whether it should not be updated (false). - - include_email_in_redirect : typing.Optional[bool] - Whether to include the email address as part of the returnUrl in the reset_email (true), or not (false). - - identity : typing.Optional[ChangePasswordTicketIdentity] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[ChangePasswordTicketResponseContent] - Ticket successfully created. - """ - _response = await self._client_wrapper.httpx_client.request( - "tickets/password-change", - method="POST", - json={ - "result_url": result_url, - "user_id": user_id, - "client_id": client_id, - "organization_id": organization_id, - "connection_id": connection_id, - "email": email, - "ttl_sec": ttl_sec, - "mark_email_as_verified": mark_email_as_verified, - "includeEmailInRedirect": include_email_in_redirect, - "identity": convert_and_respect_annotation_metadata( - object_=identity, annotation=ChangePasswordTicketIdentity, direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - ChangePasswordTicketResponseContent, - parse_obj_as( - type_=ChangePasswordTicketResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/token_exchange_profiles/__init__.py b/src/auth0/management/token_exchange_profiles/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/token_exchange_profiles/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/token_exchange_profiles/client.py b/src/auth0/management/token_exchange_profiles/client.py deleted file mode 100644 index a63c12b1..00000000 --- a/src/auth0/management/token_exchange_profiles/client.py +++ /dev/null @@ -1,541 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.pagination import AsyncPager, SyncPager -from ..core.request_options import RequestOptions -from ..types.create_token_exchange_profile_response_content import CreateTokenExchangeProfileResponseContent -from ..types.get_token_exchange_profile_response_content import GetTokenExchangeProfileResponseContent -from ..types.list_token_exchange_profile_response_content import ListTokenExchangeProfileResponseContent -from ..types.token_exchange_profile_response_content import TokenExchangeProfileResponseContent -from ..types.token_exchange_profile_type_enum import TokenExchangeProfileTypeEnum -from .raw_client import AsyncRawTokenExchangeProfilesClient, RawTokenExchangeProfilesClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class TokenExchangeProfilesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawTokenExchangeProfilesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawTokenExchangeProfilesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawTokenExchangeProfilesClient - """ - return self._raw_client - - def list( - self, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[TokenExchangeProfileResponseContent, ListTokenExchangeProfileResponseContent]: - """ - Retrieve a list of all Token Exchange Profiles available in your tenant. - - By using this feature, you agree to the applicable Free Trial terms in [Okta’s Master Subscription Agreement](https://www.okta.com/legal/). It is your responsibility to securely validate the user’s subject_token. See [User Guide](https://auth0.com/docs/authenticate/custom-token-exchange) for more details. - - This endpoint supports Checkpoint pagination. To search by checkpoint, use the following parameters: - - - `from`: Optional id from which to start selection. - - `take`: The total amount of entries to retrieve when using the from parameter. Defaults to 50. - - **Note**: The first time you call this endpoint using checkpoint pagination, omit the `from` parameter. If there are more results, a `next` value is included in the response. You can use this for subsequent API calls. When `next` is no longer included in the response, no pages are remaining. - - Parameters - ---------- - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[TokenExchangeProfileResponseContent, ListTokenExchangeProfileResponseContent] - Token Exchange Profile successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.token_exchange_profiles.list( - from_="from", - take=1, - ) - for item in response: - yield item - # alternatively, you can paginate page-by-page - for page in response.iter_pages(): - yield page - """ - return self._raw_client.list(from_=from_, take=take, request_options=request_options) - - def create( - self, - *, - name: str, - subject_token_type: str, - action_id: str, - type: TokenExchangeProfileTypeEnum, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateTokenExchangeProfileResponseContent: - """ - Create a new Token Exchange Profile within your tenant. - - By using this feature, you agree to the applicable Free Trial terms in [Okta’s Master Subscription Agreement](https://www.okta.com/legal/). It is your responsibility to securely validate the user’s subject_token. See [User Guide](https://auth0.com/docs/authenticate/custom-token-exchange) for more details. - - Parameters - ---------- - name : str - Friendly name of this profile. - - subject_token_type : str - Subject token type for this profile. When receiving a token exchange request on the Authentication API, the corresponding token exchange profile with a matching subject_token_type will be executed. This must be a URI. - - action_id : str - The ID of the Custom Token Exchange action to execute for this profile, in order to validate the subject_token. The action must use the custom-token-exchange trigger. - - type : TokenExchangeProfileTypeEnum - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateTokenExchangeProfileResponseContent - Token exchange profile successfully created. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.token_exchange_profiles.create( - name="name", - subject_token_type="subject_token_type", - action_id="action_id", - type="custom_authentication", - ) - """ - _response = self._raw_client.create( - name=name, - subject_token_type=subject_token_type, - action_id=action_id, - type=type, - request_options=request_options, - ) - return _response.data - - def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetTokenExchangeProfileResponseContent: - """ - Retrieve details about a single Token Exchange Profile specified by ID. - - By using this feature, you agree to the applicable Free Trial terms in [Okta’s Master Subscription Agreement](https://www.okta.com/legal/). It is your responsibility to securely validate the user’s subject_token. See [User Guide](https://auth0.com/docs/authenticate/custom-token-exchange) for more details. - - Parameters - ---------- - id : str - ID of the Token Exchange Profile to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetTokenExchangeProfileResponseContent - Token Exchange Profile successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.token_exchange_profiles.get( - id="id", - ) - """ - _response = self._raw_client.get(id, request_options=request_options) - return _response.data - - def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete a Token Exchange Profile within your tenant. - - By using this feature, you agree to the applicable Free Trial terms in [Okta's Master Subscription Agreement](https://www.okta.com/legal/). It is your responsibility to securely validate the user's subject_token. See [User Guide](https://auth0.com/docs/authenticate/custom-token-exchange) for more details. - - Parameters - ---------- - id : str - ID of the Token Exchange Profile to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.token_exchange_profiles.delete( - id="id", - ) - """ - _response = self._raw_client.delete(id, request_options=request_options) - return _response.data - - def update( - self, - id: str, - *, - name: typing.Optional[str] = OMIT, - subject_token_type: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> None: - """ - Update a Token Exchange Profile within your tenant. - - By using this feature, you agree to the applicable Free Trial terms in [Okta's Master Subscription Agreement](https://www.okta.com/legal/). It is your responsibility to securely validate the user's subject_token. See [User Guide](https://auth0.com/docs/authenticate/custom-token-exchange) for more details. - - Parameters - ---------- - id : str - ID of the Token Exchange Profile to update. - - name : typing.Optional[str] - Friendly name of this profile. - - subject_token_type : typing.Optional[str] - Subject token type for this profile. When receiving a token exchange request on the Authentication API, the corresponding token exchange profile with a matching subject_token_type will be executed. This must be a URI. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.token_exchange_profiles.update( - id="id", - ) - """ - _response = self._raw_client.update( - id, name=name, subject_token_type=subject_token_type, request_options=request_options - ) - return _response.data - - -class AsyncTokenExchangeProfilesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawTokenExchangeProfilesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawTokenExchangeProfilesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawTokenExchangeProfilesClient - """ - return self._raw_client - - async def list( - self, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[TokenExchangeProfileResponseContent, ListTokenExchangeProfileResponseContent]: - """ - Retrieve a list of all Token Exchange Profiles available in your tenant. - - By using this feature, you agree to the applicable Free Trial terms in [Okta’s Master Subscription Agreement](https://www.okta.com/legal/). It is your responsibility to securely validate the user’s subject_token. See [User Guide](https://auth0.com/docs/authenticate/custom-token-exchange) for more details. - - This endpoint supports Checkpoint pagination. To search by checkpoint, use the following parameters: - - - `from`: Optional id from which to start selection. - - `take`: The total amount of entries to retrieve when using the from parameter. Defaults to 50. - - **Note**: The first time you call this endpoint using checkpoint pagination, omit the `from` parameter. If there are more results, a `next` value is included in the response. You can use this for subsequent API calls. When `next` is no longer included in the response, no pages are remaining. - - Parameters - ---------- - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[TokenExchangeProfileResponseContent, ListTokenExchangeProfileResponseContent] - Token Exchange Profile successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.token_exchange_profiles.list( - from_="from", - take=1, - ) - async for item in response: - yield item - - # alternatively, you can paginate page-by-page - async for page in response.iter_pages(): - yield page - - - asyncio.run(main()) - """ - return await self._raw_client.list(from_=from_, take=take, request_options=request_options) - - async def create( - self, - *, - name: str, - subject_token_type: str, - action_id: str, - type: TokenExchangeProfileTypeEnum, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateTokenExchangeProfileResponseContent: - """ - Create a new Token Exchange Profile within your tenant. - - By using this feature, you agree to the applicable Free Trial terms in [Okta’s Master Subscription Agreement](https://www.okta.com/legal/). It is your responsibility to securely validate the user’s subject_token. See [User Guide](https://auth0.com/docs/authenticate/custom-token-exchange) for more details. - - Parameters - ---------- - name : str - Friendly name of this profile. - - subject_token_type : str - Subject token type for this profile. When receiving a token exchange request on the Authentication API, the corresponding token exchange profile with a matching subject_token_type will be executed. This must be a URI. - - action_id : str - The ID of the Custom Token Exchange action to execute for this profile, in order to validate the subject_token. The action must use the custom-token-exchange trigger. - - type : TokenExchangeProfileTypeEnum - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateTokenExchangeProfileResponseContent - Token exchange profile successfully created. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.token_exchange_profiles.create( - name="name", - subject_token_type="subject_token_type", - action_id="action_id", - type="custom_authentication", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - name=name, - subject_token_type=subject_token_type, - action_id=action_id, - type=type, - request_options=request_options, - ) - return _response.data - - async def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetTokenExchangeProfileResponseContent: - """ - Retrieve details about a single Token Exchange Profile specified by ID. - - By using this feature, you agree to the applicable Free Trial terms in [Okta’s Master Subscription Agreement](https://www.okta.com/legal/). It is your responsibility to securely validate the user’s subject_token. See [User Guide](https://auth0.com/docs/authenticate/custom-token-exchange) for more details. - - Parameters - ---------- - id : str - ID of the Token Exchange Profile to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetTokenExchangeProfileResponseContent - Token Exchange Profile successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.token_exchange_profiles.get( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.get(id, request_options=request_options) - return _response.data - - async def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete a Token Exchange Profile within your tenant. - - By using this feature, you agree to the applicable Free Trial terms in [Okta's Master Subscription Agreement](https://www.okta.com/legal/). It is your responsibility to securely validate the user's subject_token. See [User Guide](https://auth0.com/docs/authenticate/custom-token-exchange) for more details. - - Parameters - ---------- - id : str - ID of the Token Exchange Profile to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.token_exchange_profiles.delete( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete(id, request_options=request_options) - return _response.data - - async def update( - self, - id: str, - *, - name: typing.Optional[str] = OMIT, - subject_token_type: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> None: - """ - Update a Token Exchange Profile within your tenant. - - By using this feature, you agree to the applicable Free Trial terms in [Okta's Master Subscription Agreement](https://www.okta.com/legal/). It is your responsibility to securely validate the user's subject_token. See [User Guide](https://auth0.com/docs/authenticate/custom-token-exchange) for more details. - - Parameters - ---------- - id : str - ID of the Token Exchange Profile to update. - - name : typing.Optional[str] - Friendly name of this profile. - - subject_token_type : typing.Optional[str] - Subject token type for this profile. When receiving a token exchange request on the Authentication API, the corresponding token exchange profile with a matching subject_token_type will be executed. This must be a URI. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.token_exchange_profiles.update( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.update( - id, name=name, subject_token_type=subject_token_type, request_options=request_options - ) - return _response.data diff --git a/src/auth0/management/token_exchange_profiles/raw_client.py b/src/auth0/management/token_exchange_profiles/raw_client.py deleted file mode 100644 index 9dcd5062..00000000 --- a/src/auth0/management/token_exchange_profiles/raw_client.py +++ /dev/null @@ -1,1101 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ..core.api_error import ApiError -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.http_response import AsyncHttpResponse, HttpResponse -from ..core.jsonable_encoder import quote_path_param -from ..core.pagination import AsyncPager, SyncPager -from ..core.parse_error import ParsingError -from ..core.pydantic_utilities import parse_obj_as -from ..core.request_options import RequestOptions -from ..errors.bad_request_error import BadRequestError -from ..errors.conflict_error import ConflictError -from ..errors.forbidden_error import ForbiddenError -from ..errors.not_found_error import NotFoundError -from ..errors.too_many_requests_error import TooManyRequestsError -from ..errors.unauthorized_error import UnauthorizedError -from ..types.create_token_exchange_profile_response_content import CreateTokenExchangeProfileResponseContent -from ..types.get_token_exchange_profile_response_content import GetTokenExchangeProfileResponseContent -from ..types.list_token_exchange_profile_response_content import ListTokenExchangeProfileResponseContent -from ..types.token_exchange_profile_response_content import TokenExchangeProfileResponseContent -from ..types.token_exchange_profile_type_enum import TokenExchangeProfileTypeEnum -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawTokenExchangeProfilesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[TokenExchangeProfileResponseContent, ListTokenExchangeProfileResponseContent]: - """ - Retrieve a list of all Token Exchange Profiles available in your tenant. - - By using this feature, you agree to the applicable Free Trial terms in [Okta’s Master Subscription Agreement](https://www.okta.com/legal/). It is your responsibility to securely validate the user’s subject_token. See [User Guide](https://auth0.com/docs/authenticate/custom-token-exchange) for more details. - - This endpoint supports Checkpoint pagination. To search by checkpoint, use the following parameters: - - - `from`: Optional id from which to start selection. - - `take`: The total amount of entries to retrieve when using the from parameter. Defaults to 50. - - **Note**: The first time you call this endpoint using checkpoint pagination, omit the `from` parameter. If there are more results, a `next` value is included in the response. You can use this for subsequent API calls. When `next` is no longer included in the response, no pages are remaining. - - Parameters - ---------- - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[TokenExchangeProfileResponseContent, ListTokenExchangeProfileResponseContent] - Token Exchange Profile successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - "token-exchange-profiles", - method="GET", - params={ - "from": from_, - "take": take, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListTokenExchangeProfileResponseContent, - parse_obj_as( - type_=ListTokenExchangeProfileResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.token_exchange_profiles - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - _get_next = lambda: self.list( - from_=_parsed_next, - take=take, - request_options=request_options, - ) - return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - *, - name: str, - subject_token_type: str, - action_id: str, - type: TokenExchangeProfileTypeEnum, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[CreateTokenExchangeProfileResponseContent]: - """ - Create a new Token Exchange Profile within your tenant. - - By using this feature, you agree to the applicable Free Trial terms in [Okta’s Master Subscription Agreement](https://www.okta.com/legal/). It is your responsibility to securely validate the user’s subject_token. See [User Guide](https://auth0.com/docs/authenticate/custom-token-exchange) for more details. - - Parameters - ---------- - name : str - Friendly name of this profile. - - subject_token_type : str - Subject token type for this profile. When receiving a token exchange request on the Authentication API, the corresponding token exchange profile with a matching subject_token_type will be executed. This must be a URI. - - action_id : str - The ID of the Custom Token Exchange action to execute for this profile, in order to validate the subject_token. The action must use the custom-token-exchange trigger. - - type : TokenExchangeProfileTypeEnum - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CreateTokenExchangeProfileResponseContent] - Token exchange profile successfully created. - """ - _response = self._client_wrapper.httpx_client.request( - "token-exchange-profiles", - method="POST", - json={ - "name": name, - "subject_token_type": subject_token_type, - "action_id": action_id, - "type": type, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateTokenExchangeProfileResponseContent, - parse_obj_as( - type_=CreateTokenExchangeProfileResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetTokenExchangeProfileResponseContent]: - """ - Retrieve details about a single Token Exchange Profile specified by ID. - - By using this feature, you agree to the applicable Free Trial terms in [Okta’s Master Subscription Agreement](https://www.okta.com/legal/). It is your responsibility to securely validate the user’s subject_token. See [User Guide](https://auth0.com/docs/authenticate/custom-token-exchange) for more details. - - Parameters - ---------- - id : str - ID of the Token Exchange Profile to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetTokenExchangeProfileResponseContent] - Token Exchange Profile successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - f"token-exchange-profiles/{quote_path_param(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetTokenExchangeProfileResponseContent, - parse_obj_as( - type_=GetTokenExchangeProfileResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[None]: - """ - Delete a Token Exchange Profile within your tenant. - - By using this feature, you agree to the applicable Free Trial terms in [Okta's Master Subscription Agreement](https://www.okta.com/legal/). It is your responsibility to securely validate the user's subject_token. See [User Guide](https://auth0.com/docs/authenticate/custom-token-exchange) for more details. - - Parameters - ---------- - id : str - ID of the Token Exchange Profile to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"token-exchange-profiles/{quote_path_param(id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def update( - self, - id: str, - *, - name: typing.Optional[str] = OMIT, - subject_token_type: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[None]: - """ - Update a Token Exchange Profile within your tenant. - - By using this feature, you agree to the applicable Free Trial terms in [Okta's Master Subscription Agreement](https://www.okta.com/legal/). It is your responsibility to securely validate the user's subject_token. See [User Guide](https://auth0.com/docs/authenticate/custom-token-exchange) for more details. - - Parameters - ---------- - id : str - ID of the Token Exchange Profile to update. - - name : typing.Optional[str] - Friendly name of this profile. - - subject_token_type : typing.Optional[str] - Subject token type for this profile. When receiving a token exchange request on the Authentication API, the corresponding token exchange profile with a matching subject_token_type will be executed. This must be a URI. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"token-exchange-profiles/{quote_path_param(id)}", - method="PATCH", - json={ - "name": name, - "subject_token_type": subject_token_type, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawTokenExchangeProfilesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[TokenExchangeProfileResponseContent, ListTokenExchangeProfileResponseContent]: - """ - Retrieve a list of all Token Exchange Profiles available in your tenant. - - By using this feature, you agree to the applicable Free Trial terms in [Okta’s Master Subscription Agreement](https://www.okta.com/legal/). It is your responsibility to securely validate the user’s subject_token. See [User Guide](https://auth0.com/docs/authenticate/custom-token-exchange) for more details. - - This endpoint supports Checkpoint pagination. To search by checkpoint, use the following parameters: - - - `from`: Optional id from which to start selection. - - `take`: The total amount of entries to retrieve when using the from parameter. Defaults to 50. - - **Note**: The first time you call this endpoint using checkpoint pagination, omit the `from` parameter. If there are more results, a `next` value is included in the response. You can use this for subsequent API calls. When `next` is no longer included in the response, no pages are remaining. - - Parameters - ---------- - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[TokenExchangeProfileResponseContent, ListTokenExchangeProfileResponseContent] - Token Exchange Profile successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - "token-exchange-profiles", - method="GET", - params={ - "from": from_, - "take": take, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListTokenExchangeProfileResponseContent, - parse_obj_as( - type_=ListTokenExchangeProfileResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.token_exchange_profiles - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - - async def _get_next(): - return await self.list( - from_=_parsed_next, - take=take, - request_options=request_options, - ) - - return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - *, - name: str, - subject_token_type: str, - action_id: str, - type: TokenExchangeProfileTypeEnum, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[CreateTokenExchangeProfileResponseContent]: - """ - Create a new Token Exchange Profile within your tenant. - - By using this feature, you agree to the applicable Free Trial terms in [Okta’s Master Subscription Agreement](https://www.okta.com/legal/). It is your responsibility to securely validate the user’s subject_token. See [User Guide](https://auth0.com/docs/authenticate/custom-token-exchange) for more details. - - Parameters - ---------- - name : str - Friendly name of this profile. - - subject_token_type : str - Subject token type for this profile. When receiving a token exchange request on the Authentication API, the corresponding token exchange profile with a matching subject_token_type will be executed. This must be a URI. - - action_id : str - The ID of the Custom Token Exchange action to execute for this profile, in order to validate the subject_token. The action must use the custom-token-exchange trigger. - - type : TokenExchangeProfileTypeEnum - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CreateTokenExchangeProfileResponseContent] - Token exchange profile successfully created. - """ - _response = await self._client_wrapper.httpx_client.request( - "token-exchange-profiles", - method="POST", - json={ - "name": name, - "subject_token_type": subject_token_type, - "action_id": action_id, - "type": type, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateTokenExchangeProfileResponseContent, - parse_obj_as( - type_=CreateTokenExchangeProfileResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetTokenExchangeProfileResponseContent]: - """ - Retrieve details about a single Token Exchange Profile specified by ID. - - By using this feature, you agree to the applicable Free Trial terms in [Okta’s Master Subscription Agreement](https://www.okta.com/legal/). It is your responsibility to securely validate the user’s subject_token. See [User Guide](https://auth0.com/docs/authenticate/custom-token-exchange) for more details. - - Parameters - ---------- - id : str - ID of the Token Exchange Profile to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetTokenExchangeProfileResponseContent] - Token Exchange Profile successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - f"token-exchange-profiles/{quote_path_param(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetTokenExchangeProfileResponseContent, - parse_obj_as( - type_=GetTokenExchangeProfileResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def delete( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Delete a Token Exchange Profile within your tenant. - - By using this feature, you agree to the applicable Free Trial terms in [Okta's Master Subscription Agreement](https://www.okta.com/legal/). It is your responsibility to securely validate the user's subject_token. See [User Guide](https://auth0.com/docs/authenticate/custom-token-exchange) for more details. - - Parameters - ---------- - id : str - ID of the Token Exchange Profile to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"token-exchange-profiles/{quote_path_param(id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def update( - self, - id: str, - *, - name: typing.Optional[str] = OMIT, - subject_token_type: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[None]: - """ - Update a Token Exchange Profile within your tenant. - - By using this feature, you agree to the applicable Free Trial terms in [Okta's Master Subscription Agreement](https://www.okta.com/legal/). It is your responsibility to securely validate the user's subject_token. See [User Guide](https://auth0.com/docs/authenticate/custom-token-exchange) for more details. - - Parameters - ---------- - id : str - ID of the Token Exchange Profile to update. - - name : typing.Optional[str] - Friendly name of this profile. - - subject_token_type : typing.Optional[str] - Subject token type for this profile. When receiving a token exchange request on the Authentication API, the corresponding token exchange profile with a matching subject_token_type will be executed. This must be a URI. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"token-exchange-profiles/{quote_path_param(id)}", - method="PATCH", - json={ - "name": name, - "subject_token_type": subject_token_type, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/types/__init__.py b/src/auth0/management/types/__init__.py index 49a0ee06..93a5a6c6 100644 --- a/src/auth0/management/types/__init__.py +++ b/src/auth0/management/types/__init__.py @@ -6,10627 +6,23 @@ from importlib import import_module if typing.TYPE_CHECKING: - from .action import Action - from .action_base import ActionBase - from .action_binding import ActionBinding - from .action_binding_ref import ActionBindingRef - from .action_binding_ref_type_enum import ActionBindingRefTypeEnum - from .action_binding_type_enum import ActionBindingTypeEnum - from .action_binding_with_ref import ActionBindingWithRef - from .action_build_status_enum import ActionBuildStatusEnum - from .action_deployed_version import ActionDeployedVersion - from .action_error import ActionError - from .action_execution_result import ActionExecutionResult - from .action_execution_status_enum import ActionExecutionStatusEnum - from .action_module_action import ActionModuleAction - from .action_module_dependency import ActionModuleDependency - from .action_module_dependency_request import ActionModuleDependencyRequest - from .action_module_list_item import ActionModuleListItem - from .action_module_reference import ActionModuleReference - from .action_module_secret import ActionModuleSecret - from .action_module_secret_request import ActionModuleSecretRequest - from .action_module_version import ActionModuleVersion - from .action_module_version_reference import ActionModuleVersionReference - from .action_secret_request import ActionSecretRequest - from .action_secret_response import ActionSecretResponse - from .action_trigger import ActionTrigger - from .action_trigger_compatible_trigger import ActionTriggerCompatibleTrigger - from .action_trigger_type_enum import ActionTriggerTypeEnum - from .action_version import ActionVersion - from .action_version_build_status_enum import ActionVersionBuildStatusEnum - from .action_version_dependency import ActionVersionDependency - from .acul_client_filter import AculClientFilter - from .acul_client_filter_by_id import AculClientFilterById - from .acul_client_filter_by_metadata import AculClientFilterByMetadata - from .acul_client_metadata import AculClientMetadata - from .acul_configs import AculConfigs - from .acul_configs_item import AculConfigsItem - from .acul_context_configuration import AculContextConfiguration - from .acul_context_configuration_item import AculContextConfigurationItem - from .acul_context_enum import AculContextEnum - from .acul_domain_filter import AculDomainFilter - from .acul_domain_filter_by_id import AculDomainFilterById - from .acul_domain_filter_by_metadata import AculDomainFilterByMetadata - from .acul_domain_metadata import AculDomainMetadata - from .acul_filters import AculFilters - from .acul_head_tag import AculHeadTag - from .acul_head_tag_attributes import AculHeadTagAttributes - from .acul_head_tag_content import AculHeadTagContent - from .acul_match_type_enum import AculMatchTypeEnum - from .acul_organization_filter import AculOrganizationFilter - from .acul_organization_filter_by_id import AculOrganizationFilterById - from .acul_organization_filter_by_metadata import AculOrganizationFilterByMetadata - from .acul_organization_metadata import AculOrganizationMetadata - from .acul_rendering_mode_enum import AculRenderingModeEnum - from .add_organization_connection_response_content import AddOrganizationConnectionResponseContent - from .advance_ramp_response_content import AdvanceRampResponseContent - from .agent_metadata import AgentMetadata - from .agent_response_content import AgentResponseContent - from .allocation_item import AllocationItem - from .allocation_request_item import AllocationRequestItem - from .allocation_strategy_enum import AllocationStrategyEnum - from .anomaly_ip_format import AnomalyIpFormat - from .anonymous_sessions import AnonymousSessions - from .app_metadata import AppMetadata - from .assessors_type_enum import AssessorsTypeEnum - from .associate_organization_client_grant_response_content import AssociateOrganizationClientGrantResponseContent - from .async_approval_notifications_channels_enum import AsyncApprovalNotificationsChannelsEnum - from .attack_protection_captcha_arkose_response_content import AttackProtectionCaptchaArkoseResponseContent - from .attack_protection_captcha_auth_challenge_request import AttackProtectionCaptchaAuthChallengeRequest - from .attack_protection_captcha_auth_challenge_response_content import ( - AttackProtectionCaptchaAuthChallengeResponseContent, - ) - from .attack_protection_captcha_friendly_captcha_response_content import ( - AttackProtectionCaptchaFriendlyCaptchaResponseContent, - ) - from .attack_protection_captcha_hcaptcha_response_content import AttackProtectionCaptchaHcaptchaResponseContent - from .attack_protection_captcha_provider_id import AttackProtectionCaptchaProviderId - from .attack_protection_captcha_recaptcha_enterprise_response_content import ( - AttackProtectionCaptchaRecaptchaEnterpriseResponseContent, - ) - from .attack_protection_captcha_recaptcha_v_2_response_content import ( - AttackProtectionCaptchaRecaptchaV2ResponseContent, - ) - from .attack_protection_captcha_simple_captcha_response_content import ( - AttackProtectionCaptchaSimpleCaptchaResponseContent, - ) - from .attack_protection_update_captcha_arkose import AttackProtectionUpdateCaptchaArkose - from .attack_protection_update_captcha_friendly_captcha import AttackProtectionUpdateCaptchaFriendlyCaptcha - from .attack_protection_update_captcha_hcaptcha import AttackProtectionUpdateCaptchaHcaptcha - from .attack_protection_update_captcha_recaptcha_enterprise import AttackProtectionUpdateCaptchaRecaptchaEnterprise - from .attack_protection_update_captcha_recaptcha_v_2 import AttackProtectionUpdateCaptchaRecaptchaV2 - from .authentication_flow_enum import AuthenticationFlowEnum - from .authentication_method_type_enum import AuthenticationMethodTypeEnum - from .authentication_type_enum import AuthenticationTypeEnum - from .b_2_b_integration_configuration import B2BIntegrationConfiguration - from .b_2_b_integration_configuration_integration_type_enum import B2BIntegrationConfigurationIntegrationTypeEnum - from .bad_request_schema import BadRequestSchema - from .bad_request_schema_error import BadRequestSchemaError - from .bot_detection_allowlist import BotDetectionAllowlist - from .bot_detection_challenge_policy_password_flow_enum import BotDetectionChallengePolicyPasswordFlowEnum - from .bot_detection_challenge_policy_password_reset_flow_enum import ( - BotDetectionChallengePolicyPasswordResetFlowEnum, - ) - from .bot_detection_challenge_policy_passwordless_flow_enum import BotDetectionChallengePolicyPasswordlessFlowEnum - from .bot_detection_cidr_block import BotDetectionCidrBlock - from .bot_detection_i_pv_4 import BotDetectionIPv4 - from .bot_detection_i_pv_6 import BotDetectionIPv6 - from .bot_detection_i_pv_6_cidr_block import BotDetectionIPv6CidrBlock - from .bot_detection_ip_address_or_cidr_block import BotDetectionIpAddressOrCidrBlock - from .bot_detection_level_enum import BotDetectionLevelEnum - from .bot_detection_monitoring_mode_enabled import BotDetectionMonitoringModeEnabled - from .branding_colors import BrandingColors - from .branding_font import BrandingFont - from .branding_page_background import BrandingPageBackground - from .branding_theme_borders import BrandingThemeBorders - from .branding_theme_borders_buttons_style_enum import BrandingThemeBordersButtonsStyleEnum - from .branding_theme_borders_inputs_style_enum import BrandingThemeBordersInputsStyleEnum - from .branding_theme_colors import BrandingThemeColors - from .branding_theme_colors_captcha_widget_theme_enum import BrandingThemeColorsCaptchaWidgetThemeEnum - from .branding_theme_font_body_text import BrandingThemeFontBodyText - from .branding_theme_font_buttons_text import BrandingThemeFontButtonsText - from .branding_theme_font_input_labels import BrandingThemeFontInputLabels - from .branding_theme_font_links import BrandingThemeFontLinks - from .branding_theme_font_links_style_enum import BrandingThemeFontLinksStyleEnum - from .branding_theme_font_subtitle import BrandingThemeFontSubtitle - from .branding_theme_font_title import BrandingThemeFontTitle - from .branding_theme_fonts import BrandingThemeFonts - from .branding_theme_identifiers import BrandingThemeIdentifiers - from .branding_theme_identifiers_login_display_enum import BrandingThemeIdentifiersLoginDisplayEnum - from .branding_theme_identifiers_phone_display import BrandingThemeIdentifiersPhoneDisplay - from .branding_theme_identifiers_phone_display_formatting_enum import ( - BrandingThemeIdentifiersPhoneDisplayFormattingEnum, - ) - from .branding_theme_identifiers_phone_display_masking_enum import BrandingThemeIdentifiersPhoneDisplayMaskingEnum - from .branding_theme_page_background import BrandingThemePageBackground - from .branding_theme_page_background_page_layout_enum import BrandingThemePageBackgroundPageLayoutEnum - from .branding_theme_widget import BrandingThemeWidget - from .branding_theme_widget_header_text_alignment_enum import BrandingThemeWidgetHeaderTextAlignmentEnum - from .branding_theme_widget_logo_position_enum import BrandingThemeWidgetLogoPositionEnum - from .branding_theme_widget_social_buttons_layout_enum import BrandingThemeWidgetSocialButtonsLayoutEnum - from .breached_password_detection_admin_notification_frequency_enum import ( - BreachedPasswordDetectionAdminNotificationFrequencyEnum, - ) - from .breached_password_detection_method_enum import BreachedPasswordDetectionMethodEnum - from .breached_password_detection_pre_change_password_shields_enum import ( - BreachedPasswordDetectionPreChangePasswordShieldsEnum, - ) - from .breached_password_detection_pre_change_password_stage import BreachedPasswordDetectionPreChangePasswordStage - from .breached_password_detection_pre_user_registration_shields_enum import ( - BreachedPasswordDetectionPreUserRegistrationShieldsEnum, - ) - from .breached_password_detection_pre_user_registration_stage import ( - BreachedPasswordDetectionPreUserRegistrationStage, - ) - from .breached_password_detection_shields_enum import BreachedPasswordDetectionShieldsEnum - from .breached_password_detection_stage import BreachedPasswordDetectionStage - from .brute_force_protection_form_submission_mode_enum import BruteForceProtectionFormSubmissionModeEnum - from .brute_force_protection_mode_enum import BruteForceProtectionModeEnum - from .brute_force_protection_shields_enum import BruteForceProtectionShieldsEnum - from .bulk_update_acul_response_content import BulkUpdateAculResponseContent - from .certificate_subject_dn_credential import CertificateSubjectDnCredential - from .certificate_subject_dn_credential_type_enum import CertificateSubjectDnCredentialTypeEnum - from .change_password_ticket_identity import ChangePasswordTicketIdentity - from .change_password_ticket_response_content import ChangePasswordTicketResponseContent - from .cimd_external_metadata_created_by_enum import CimdExternalMetadataCreatedByEnum - from .cimd_mapped_client_authentication_methods import CimdMappedClientAuthenticationMethods - from .cimd_mapped_client_authentication_methods_private_key_jwt import ( - CimdMappedClientAuthenticationMethodsPrivateKeyJwt, - ) - from .cimd_mapped_client_fields import CimdMappedClientFields - from .cimd_mapped_private_key_jwt_credential import CimdMappedPrivateKeyJwtCredential - from .cimd_validation_result import CimdValidationResult - from .client import Client - from .client_addon_aws import ClientAddonAws - from .client_addon_azure_blob import ClientAddonAzureBlob - from .client_addon_azure_sb import ClientAddonAzureSb - from .client_addon_box import ClientAddonBox - from .client_addon_cloud_bees import ClientAddonCloudBees - from .client_addon_concur import ClientAddonConcur - from .client_addon_dropbox import ClientAddonDropbox - from .client_addon_echo_sign import ClientAddonEchoSign - from .client_addon_egnyte import ClientAddonEgnyte - from .client_addon_firebase import ClientAddonFirebase - from .client_addon_layer import ClientAddonLayer - from .client_addon_mscrm import ClientAddonMscrm - from .client_addon_new_relic import ClientAddonNewRelic - from .client_addon_oag import ClientAddonOag - from .client_addon_office_365 import ClientAddonOffice365 - from .client_addon_rms import ClientAddonRms - from .client_addon_salesforce import ClientAddonSalesforce - from .client_addon_salesforce_api import ClientAddonSalesforceApi - from .client_addon_salesforce_sandbox_api import ClientAddonSalesforceSandboxApi - from .client_addon_saml import ClientAddonSaml - from .client_addon_saml_mapping import ClientAddonSamlMapping - from .client_addon_sapapi import ClientAddonSapapi - from .client_addon_sentry import ClientAddonSentry - from .client_addon_share_point import ClientAddonSharePoint - from .client_addon_share_point_external_url import ClientAddonSharePointExternalUrl - from .client_addon_slack import ClientAddonSlack - from .client_addon_spring_cm import ClientAddonSpringCm - from .client_addon_sso_integration import ClientAddonSsoIntegration - from .client_addon_wams import ClientAddonWams - from .client_addon_ws_fed import ClientAddonWsFed - from .client_addon_zendesk import ClientAddonZendesk - from .client_addon_zoom import ClientAddonZoom - from .client_addons import ClientAddons - from .client_anonymous_session_transfer_network_binding_enum import ClientAnonymousSessionTransferNetworkBindingEnum - from .client_app_type_enum import ClientAppTypeEnum - from .client_async_approval_notifications_channels_api_patch_configuration import ( - ClientAsyncApprovalNotificationsChannelsApiPatchConfiguration, - ) - from .client_async_approval_notifications_channels_api_post_configuration import ( - ClientAsyncApprovalNotificationsChannelsApiPostConfiguration, - ) - from .client_authentication_method import ClientAuthenticationMethod - from .client_authentication_method_private_key_jwt import ClientAuthenticationMethodPrivateKeyJwt - from .client_authentication_method_private_key_jwt_credentials import ( - ClientAuthenticationMethodPrivateKeyJwtCredentials, - ) - from .client_authentication_method_self_signed_tls_client_auth import ( - ClientAuthenticationMethodSelfSignedTlsClientAuth, - ) - from .client_authentication_method_self_signed_tls_client_auth_credentials import ( - ClientAuthenticationMethodSelfSignedTlsClientAuthCredentials, - ) - from .client_authentication_method_tls_client_auth import ClientAuthenticationMethodTlsClientAuth - from .client_authentication_method_tls_client_auth_credentials import ( - ClientAuthenticationMethodTlsClientAuthCredentials, - ) - from .client_compliance_level_enum import ClientComplianceLevelEnum - from .client_create_authentication_method import ClientCreateAuthenticationMethod - from .client_create_authentication_method_private_key_jwt import ClientCreateAuthenticationMethodPrivateKeyJwt - from .client_create_authentication_method_private_key_jwt_credentials import ( - ClientCreateAuthenticationMethodPrivateKeyJwtCredentials, - ) - from .client_create_authentication_method_tls_client_auth import ClientCreateAuthenticationMethodTlsClientAuth - from .client_create_authentication_method_tls_client_auth_credentials import ( - ClientCreateAuthenticationMethodTlsClientAuthCredentials, - ) - from .client_credential import ClientCredential - from .client_credential_algorithm_enum import ClientCredentialAlgorithmEnum - from .client_credential_type_enum import ClientCredentialTypeEnum - from .client_default_organization import ClientDefaultOrganization - from .client_default_organization_flows_enum import ClientDefaultOrganizationFlowsEnum - from .client_encryption_key import ClientEncryptionKey - from .client_external_metadata_created_by_enum import ClientExternalMetadataCreatedByEnum - from .client_external_metadata_status_enum import ClientExternalMetadataStatusEnum - from .client_external_metadata_type_enum import ClientExternalMetadataTypeEnum - from .client_grant_allow_any_organization_enum import ClientGrantAllowAnyOrganizationEnum - from .client_grant_default_for_enum import ClientGrantDefaultForEnum - from .client_grant_organization_nullable_usage_enum import ClientGrantOrganizationNullableUsageEnum - from .client_grant_organization_usage_enum import ClientGrantOrganizationUsageEnum - from .client_grant_response_content import ClientGrantResponseContent - from .client_grant_sort_field_enum import ClientGrantSortFieldEnum - from .client_grant_subject_type_enum import ClientGrantSubjectTypeEnum - from .client_jwt_configuration import ClientJwtConfiguration - from .client_jwt_configuration_scopes import ClientJwtConfigurationScopes - from .client_metadata import ClientMetadata - from .client_mobile import ClientMobile - from .client_mobile_android import ClientMobileAndroid - from .client_mobilei_os import ClientMobileiOs - from .client_my_organization_configuration_allowed_strategies_enum import ( - ClientMyOrganizationConfigurationAllowedStrategiesEnum, - ) - from .client_my_organization_configuration_third_party_client_access_allowed_values_enum import ( - ClientMyOrganizationConfigurationThirdPartyClientAccessAllowedValuesEnum, - ) - from .client_my_organization_configuration_third_party_client_access_default_value_enum import ( - ClientMyOrganizationConfigurationThirdPartyClientAccessDefaultValueEnum, - ) - from .client_my_organization_deletion_behavior_enum import ClientMyOrganizationDeletionBehaviorEnum - from .client_my_organization_patch_configuration import ClientMyOrganizationPatchConfiguration - from .client_my_organization_post_configuration import ClientMyOrganizationPostConfiguration - from .client_my_organization_response_configuration import ClientMyOrganizationResponseConfiguration - from .client_my_organization_third_party_client_access_configuration import ( - ClientMyOrganizationThirdPartyClientAccessConfiguration, - ) - from .client_oidc_backchannel_logout_initiators import ClientOidcBackchannelLogoutInitiators - from .client_oidc_backchannel_logout_initiators_enum import ClientOidcBackchannelLogoutInitiatorsEnum - from .client_oidc_backchannel_logout_initiators_mode_enum import ClientOidcBackchannelLogoutInitiatorsModeEnum - from .client_oidc_backchannel_logout_session_metadata import ClientOidcBackchannelLogoutSessionMetadata - from .client_oidc_backchannel_logout_settings import ClientOidcBackchannelLogoutSettings - from .client_oidc_support import ClientOidcSupport - from .client_oidc_support_allowed_scopes_enum import ClientOidcSupportAllowedScopesEnum - from .client_oidc_support_patch import ClientOidcSupportPatch - from .client_oidc_support_post import ClientOidcSupportPost - from .client_organization_discovery_enum import ClientOrganizationDiscoveryEnum - from .client_organization_require_behavior_enum import ClientOrganizationRequireBehaviorEnum - from .client_organization_require_behavior_patch_enum import ClientOrganizationRequireBehaviorPatchEnum - from .client_organization_usage_enum import ClientOrganizationUsageEnum - from .client_organization_usage_patch_enum import ClientOrganizationUsagePatchEnum - from .client_profile import ClientProfile - from .client_profile_apply_policy import ClientProfileApplyPolicy - from .client_profile_apply_policy_external_metadata_created_by_enum import ( - ClientProfileApplyPolicyExternalMetadataCreatedByEnum, - ) - from .client_profile_apply_policy_external_metadata_type_enum import ( - ClientProfileApplyPolicyExternalMetadataTypeEnum, - ) - from .client_profile_client_configuration import ClientProfileClientConfiguration - from .client_profile_client_configuration_oidc_support import ClientProfileClientConfigurationOidcSupport - from .client_profile_client_configuration_oidc_support_allowed_scopes_enum import ( - ClientProfileClientConfigurationOidcSupportAllowedScopesEnum, - ) - from .client_profile_client_configuration_oidc_support_default_value import ( - ClientProfileClientConfigurationOidcSupportDefaultValue, - ) - from .client_profile_client_configuration_organization_discovery_method_enum import ( - ClientProfileClientConfigurationOrganizationDiscoveryMethodEnum, - ) - from .client_profile_client_configuration_organization_discovery_methods import ( - ClientProfileClientConfigurationOrganizationDiscoveryMethods, - ) - from .client_profile_client_configuration_organization_require_behavior import ( - ClientProfileClientConfigurationOrganizationRequireBehavior, - ) - from .client_profile_client_configuration_organization_require_behavior_enum import ( - ClientProfileClientConfigurationOrganizationRequireBehaviorEnum, - ) - from .client_profile_client_configuration_organization_usage import ( - ClientProfileClientConfigurationOrganizationUsage, - ) - from .client_profile_client_configuration_organization_usage_enum import ( - ClientProfileClientConfigurationOrganizationUsageEnum, - ) - from .client_profile_client_configuration_refresh_token import ClientProfileClientConfigurationRefreshToken - from .client_profile_client_configuration_require_proof_of_possession import ( - ClientProfileClientConfigurationRequireProofOfPossession, - ) - from .client_profile_description import ClientProfileDescription - from .client_profile_id import ClientProfileId - from .client_profile_name import ClientProfileName - from .client_profile_refresh_token_idle_token_lifetime import ClientProfileRefreshTokenIdleTokenLifetime - from .client_profile_refresh_token_leeway import ClientProfileRefreshTokenLeeway - from .client_profile_refresh_token_token_lifetime import ClientProfileRefreshTokenTokenLifetime - from .client_redirection_policy_enum import ClientRedirectionPolicyEnum - from .client_refresh_token_configuration import ClientRefreshTokenConfiguration - from .client_refresh_token_policy import ClientRefreshTokenPolicy - from .client_search_response import ClientSearchResponse - from .client_session_transfer_allowed_authentication_methods_enum import ( - ClientSessionTransferAllowedAuthenticationMethodsEnum, - ) - from .client_session_transfer_configuration import ClientSessionTransferConfiguration - from .client_session_transfer_delegation_configuration import ClientSessionTransferDelegationConfiguration - from .client_session_transfer_delegation_device_binding_enum import ClientSessionTransferDelegationDeviceBindingEnum - from .client_session_transfer_device_binding_enum import ClientSessionTransferDeviceBindingEnum - from .client_signed_request_object_with_credential_id import ClientSignedRequestObjectWithCredentialId - from .client_signed_request_object_with_public_key import ClientSignedRequestObjectWithPublicKey - from .client_signing_key import ClientSigningKey - from .client_signing_keys import ClientSigningKeys - from .client_sort_field_enum import ClientSortFieldEnum - from .client_third_party_security_mode_enum import ClientThirdPartySecurityModeEnum - from .client_token_endpoint_auth_method_enum import ClientTokenEndpointAuthMethodEnum - from .client_token_endpoint_auth_method_or_null_enum import ClientTokenEndpointAuthMethodOrNullEnum - from .client_token_exchange_configuration import ClientTokenExchangeConfiguration - from .client_token_exchange_configuration_or_null import ClientTokenExchangeConfigurationOrNull - from .client_token_exchange_type_enum import ClientTokenExchangeTypeEnum - from .client_token_vault_privileged_access_with_credential_id import ( - ClientTokenVaultPrivilegedAccessWithCredentialId, - ) - from .client_token_vault_privileged_access_with_public_key import ClientTokenVaultPrivilegedAccessWithPublicKey - from .conflict_schema import ConflictSchema - from .conflict_schema_error import ConflictSchemaError - from .connected_account import ConnectedAccount - from .connected_account_access_type_enum import ConnectedAccountAccessTypeEnum - from .connection_access_token_urlo_auth_1 import ConnectionAccessTokenUrloAuth1 - from .connection_acr_values_supported import ConnectionAcrValuesSupported - from .connection_admin_access_token_expires_in_google_apps import ConnectionAdminAccessTokenExpiresInGoogleApps - from .connection_admin_access_token_google_apps import ConnectionAdminAccessTokenGoogleApps - from .connection_admin_refresh_token_google_apps import ConnectionAdminRefreshTokenGoogleApps - from .connection_agent_ipad import ConnectionAgentIpad - from .connection_agent_mode_ad import ConnectionAgentModeAd - from .connection_agent_version_ad import ConnectionAgentVersionAd - from .connection_allowed_audiences_google_o_auth_2 import ConnectionAllowedAudiencesGoogleOAuth2 - from .connection_api_behavior_enum import ConnectionApiBehaviorEnum - from .connection_api_enable_groups import ConnectionApiEnableGroups - from .connection_api_enable_groups_google_apps import ConnectionApiEnableGroupsGoogleApps - from .connection_api_enable_users import ConnectionApiEnableUsers - from .connection_api_enable_users_google_apps import ConnectionApiEnableUsersGoogleApps - from .connection_app_domain_azure_ad import ConnectionAppDomainAzureAd - from .connection_assertion_decryption_algorithm_profile_enum import ( - ConnectionAssertionDecryptionAlgorithmProfileEnum, - ) - from .connection_assertion_decryption_settings import ConnectionAssertionDecryptionSettings - from .connection_attribute_map_attributes import ConnectionAttributeMapAttributes - from .connection_attribute_map_oidc import ConnectionAttributeMapOidc - from .connection_attribute_map_okta import ConnectionAttributeMapOkta - from .connection_attribute_map_userinfo_scope import ConnectionAttributeMapUserinfoScope - from .connection_attributes import ConnectionAttributes - from .connection_auth_params_additional_properties_o_auth_2 import ConnectionAuthParamsAdditionalPropertiesOAuth2 - from .connection_auth_params_email import ConnectionAuthParamsEmail - from .connection_auth_params_map import ConnectionAuthParamsMap - from .connection_auth_params_o_auth_2 import ConnectionAuthParamsOAuth2 - from .connection_authentication_methods import ConnectionAuthenticationMethods - from .connection_authentication_purpose import ConnectionAuthenticationPurpose - from .connection_authorization_endpoint import ConnectionAuthorizationEndpoint - from .connection_base_url_exact import ConnectionBaseUrlExact - from .connection_brute_force_protection import ConnectionBruteForceProtection - from .connection_calculated_thumbprint_saml import ConnectionCalculatedThumbprintSaml - from .connection_certs_ad import ConnectionCertsAd - from .connection_claim_types_supported import ConnectionClaimTypesSupported - from .connection_claims_locales_supported import ConnectionClaimsLocalesSupported - from .connection_claims_parameter_supported import ConnectionClaimsParameterSupported - from .connection_claims_supported import ConnectionClaimsSupported - from .connection_client_id import ConnectionClientId - from .connection_client_id_amazon import ConnectionClientIdAmazon - from .connection_client_id_azure_ad import ConnectionClientIdAzureAd - from .connection_client_id_bitbucket import ConnectionClientIdBitbucket - from .connection_client_id_exact import ConnectionClientIdExact - from .connection_client_id_facebook import ConnectionClientIdFacebook - from .connection_client_id_google_apps import ConnectionClientIdGoogleApps - from .connection_client_id_google_o_auth_2 import ConnectionClientIdGoogleOAuth2 - from .connection_client_id_line import ConnectionClientIdLine - from .connection_client_id_linkedin import ConnectionClientIdLinkedin - from .connection_client_id_o_auth_1 import ConnectionClientIdOAuth1 - from .connection_client_id_o_auth_2 import ConnectionClientIdOAuth2 - from .connection_client_id_oidc import ConnectionClientIdOidc - from .connection_client_id_paypal import ConnectionClientIdPaypal - from .connection_client_id_salesforce import ConnectionClientIdSalesforce - from .connection_client_id_samlxaa_requesting_app import ConnectionClientIdSamlxaaRequestingApp - from .connection_client_id_windows_live import ConnectionClientIdWindowsLive - from .connection_client_protocol_saml import ConnectionClientProtocolSaml - from .connection_client_secret import ConnectionClientSecret - from .connection_client_secret_amazon import ConnectionClientSecretAmazon - from .connection_client_secret_azure_ad import ConnectionClientSecretAzureAd - from .connection_client_secret_bitbucket import ConnectionClientSecretBitbucket - from .connection_client_secret_exact import ConnectionClientSecretExact - from .connection_client_secret_facebook import ConnectionClientSecretFacebook - from .connection_client_secret_google_apps import ConnectionClientSecretGoogleApps - from .connection_client_secret_google_o_auth_2 import ConnectionClientSecretGoogleOAuth2 - from .connection_client_secret_line import ConnectionClientSecretLine - from .connection_client_secret_linkedin import ConnectionClientSecretLinkedin - from .connection_client_secret_o_auth_1 import ConnectionClientSecretOAuth1 - from .connection_client_secret_o_auth_2 import ConnectionClientSecretOAuth2 - from .connection_client_secret_oidc import ConnectionClientSecretOidc - from .connection_client_secret_paypal import ConnectionClientSecretPaypal - from .connection_client_secret_salesforce import ConnectionClientSecretSalesforce - from .connection_client_secret_samlxaa_requesting_app import ConnectionClientSecretSamlxaaRequestingApp - from .connection_client_secret_windows_live import ConnectionClientSecretWindowsLive - from .connection_common import ConnectionCommon - from .connection_community_base_url_salesforce import ConnectionCommunityBaseUrlSalesforce - from .connection_configuration import ConnectionConfiguration - from .connection_connected_accounts_purpose import ConnectionConnectedAccountsPurpose - from .connection_connected_accounts_purpose_xaa import ConnectionConnectedAccountsPurposeXaa - from .connection_connection_settings import ConnectionConnectionSettings - from .connection_connection_settings_pkce_enum import ConnectionConnectionSettingsPkceEnum - from .connection_cross_app_access_resource_app import ConnectionCrossAppAccessResourceApp - from .connection_cross_app_access_resource_app_status_enum import ConnectionCrossAppAccessResourceAppStatusEnum - from .connection_custom_headers_o_auth_2 import ConnectionCustomHeadersOAuth2 - from .connection_custom_scripts import ConnectionCustomScripts - from .connection_debug_saml import ConnectionDebugSaml - from .connection_decryption_key_saml import ConnectionDecryptionKeySaml - from .connection_decryption_key_saml_cert import ConnectionDecryptionKeySamlCert - from .connection_destination_url_saml import ConnectionDestinationUrlSaml - from .connection_digest_algorithm_enum_saml import ConnectionDigestAlgorithmEnumSaml - from .connection_digest_algorithm_saml import ConnectionDigestAlgorithmSaml - from .connection_disable_self_service_change_password import ConnectionDisableSelfServiceChangePassword - from .connection_disable_signup import ConnectionDisableSignup - from .connection_disable_signup_sms import ConnectionDisableSignupSms - from .connection_discovery_url import ConnectionDiscoveryUrl - from .connection_display_name import ConnectionDisplayName - from .connection_display_values_supported import ConnectionDisplayValuesSupported - from .connection_domain_aliases import ConnectionDomainAliases - from .connection_domain_aliases_ad import ConnectionDomainAliasesAd - from .connection_domain_aliases_azure_ad import ConnectionDomainAliasesAzureAd - from .connection_domain_aliases_items_one import ConnectionDomainAliasesItemsOne - from .connection_domain_aliases_saml import ConnectionDomainAliasesSaml - from .connection_domain_google_apps import ConnectionDomainGoogleApps - from .connection_domain_okta import ConnectionDomainOkta - from .connection_dpop_signing_alg_enum import ConnectionDpopSigningAlgEnum - from .connection_dpop_signing_alg_values_supported import ConnectionDpopSigningAlgValuesSupported - from .connection_email_body_email import ConnectionEmailBodyEmail - from .connection_email_email import ConnectionEmailEmail - from .connection_email_email_syntax import ConnectionEmailEmailSyntax - from .connection_email_from_email import ConnectionEmailFromEmail - from .connection_email_otp_authentication_method import ConnectionEmailOtpAuthenticationMethod - from .connection_email_subject_email import ConnectionEmailSubjectEmail - from .connection_enable_pushed_authorization_requests import ConnectionEnablePushedAuthorizationRequests - from .connection_enable_script_context import ConnectionEnableScriptContext - from .connection_enabled_client import ConnectionEnabledClient - from .connection_enabled_clients import ConnectionEnabledClients - from .connection_enabled_database_customization import ConnectionEnabledDatabaseCustomization - from .connection_end_session_endpoint import ConnectionEndSessionEndpoint - from .connection_entity_id_saml import ConnectionEntityIdSaml - from .connection_ext_admin import ConnectionExtAdmin - from .connection_ext_agreed_terms import ConnectionExtAgreedTerms - from .connection_ext_agreed_terms_google_apps import ConnectionExtAgreedTermsGoogleApps - from .connection_ext_assigned_plans import ConnectionExtAssignedPlans - from .connection_ext_groups import ConnectionExtGroups - from .connection_ext_groups_azure_ad import ConnectionExtGroupsAzureAd - from .connection_ext_groups_google_apps import ConnectionExtGroupsGoogleApps - from .connection_ext_is_admin_google_apps import ConnectionExtIsAdminGoogleApps - from .connection_ext_is_suspended import ConnectionExtIsSuspended - from .connection_ext_is_suspended_google_apps import ConnectionExtIsSuspendedGoogleApps - from .connection_ext_profile import ConnectionExtProfile - from .connection_fields_map import ConnectionFieldsMap - from .connection_fields_map_saml import ConnectionFieldsMapSaml - from .connection_fields_map_saml_value import ConnectionFieldsMapSamlValue - from .connection_for_list import ConnectionForList - from .connection_for_organization import ConnectionForOrganization - from .connection_forward_req_info_sms import ConnectionForwardReqInfoSms - from .connection_freeform_scopes_amazon import ConnectionFreeformScopesAmazon - from .connection_freeform_scopes_google_o_auth_2 import ConnectionFreeformScopesGoogleOAuth2 - from .connection_freeform_scopes_linkedin import ConnectionFreeformScopesLinkedin - from .connection_freeform_scopes_paypal import ConnectionFreeformScopesPaypal - from .connection_freeform_scopes_salesforce import ConnectionFreeformScopesSalesforce - from .connection_freeform_scopes_windows_live import ConnectionFreeformScopesWindowsLive - from .connection_from_sms import ConnectionFromSms - from .connection_gateway_authentication import ConnectionGatewayAuthentication - from .connection_gateway_authentication_audience_sms import ConnectionGatewayAuthenticationAudienceSms - from .connection_gateway_authentication_method_sms import ConnectionGatewayAuthenticationMethodSms - from .connection_gateway_authentication_sms import ConnectionGatewayAuthenticationSms - from .connection_gateway_authentication_subject_sms import ConnectionGatewayAuthenticationSubjectSms - from .connection_gateway_url_sms import ConnectionGatewayUrlSms - from .connection_global_token_revocation_jwt_iss_saml import ConnectionGlobalTokenRevocationJwtIssSaml - from .connection_global_token_revocation_jwt_sub_saml import ConnectionGlobalTokenRevocationJwtSubSaml - from .connection_grant_types_supported import ConnectionGrantTypesSupported - from .connection_handle_login_from_social_google_apps import ConnectionHandleLoginFromSocialGoogleApps - from .connection_https_url_with_http_fallback import ConnectionHttpsUrlWithHttpFallback - from .connection_https_url_with_http_fallback_2048 import ConnectionHttpsUrlWithHttpFallback2048 - from .connection_https_url_with_http_fallback_255 import ConnectionHttpsUrlWithHttpFallback255 - from .connection_icon_url import ConnectionIconUrl - from .connection_icon_url_adfs import ConnectionIconUrlAdfs - from .connection_icon_url_azure_ad import ConnectionIconUrlAzureAd - from .connection_icon_url_google_apps import ConnectionIconUrlGoogleApps - from .connection_icon_url_google_o_auth_2 import ConnectionIconUrlGoogleOAuth2 - from .connection_icon_url_saml import ConnectionIconUrlSaml - from .connection_id import ConnectionId - from .connection_id_token_encryption_alg_values_supported import ConnectionIdTokenEncryptionAlgValuesSupported - from .connection_id_token_encryption_enc_values_supported import ConnectionIdTokenEncryptionEncValuesSupported - from .connection_id_token_session_expiry_supported import ConnectionIdTokenSessionExpirySupported - from .connection_id_token_signed_response_alg_enum import ConnectionIdTokenSignedResponseAlgEnum - from .connection_id_token_signed_response_algs import ConnectionIdTokenSignedResponseAlgs - from .connection_id_token_signing_alg_values_supported import ConnectionIdTokenSigningAlgValuesSupported - from .connection_identifier_precedence import ConnectionIdentifierPrecedence - from .connection_identifier_precedence_enum import ConnectionIdentifierPrecedenceEnum - from .connection_identity_api_azure_ad import ConnectionIdentityApiAzureAd - from .connection_identity_api_enum_azure_ad import ConnectionIdentityApiEnumAzureAd - from .connection_identity_provider_enum import ConnectionIdentityProviderEnum - from .connection_import_mode import ConnectionImportMode - from .connection_ips_ad import ConnectionIpsAd - from .connection_is_domain_connection import ConnectionIsDomainConnection - from .connection_issuer import ConnectionIssuer - from .connection_jwks_uri import ConnectionJwksUri - from .connection_key import ConnectionKey - from .connection_key_use_enum import ConnectionKeyUseEnum - from .connection_mapping_mode_enum_oidc import ConnectionMappingModeEnumOidc - from .connection_mapping_mode_enum_okta import ConnectionMappingModeEnumOkta - from .connection_max_groups_to_retrieve import ConnectionMaxGroupsToRetrieve - from .connection_messaging_service_sid_sms import ConnectionMessagingServiceSidSms - from .connection_metadata_url_saml import ConnectionMetadataUrlSaml - from .connection_metadata_xml import ConnectionMetadataXml - from .connection_metadata_xml_adfs import ConnectionMetadataXmlAdfs - from .connection_metadata_xml_saml import ConnectionMetadataXmlSaml - from .connection_mfa import ConnectionMfa - from .connection_name import ConnectionName - from .connection_name_prefix_template import ConnectionNamePrefixTemplate - from .connection_non_persistent_attrs import ConnectionNonPersistentAttrs - from .connection_op_policy_uri import ConnectionOpPolicyUri - from .connection_op_tos_uri import ConnectionOpTosUri - from .connection_options import ConnectionOptions - from .connection_options_ad import ConnectionOptionsAd - from .connection_options_adfs import ConnectionOptionsAdfs - from .connection_options_amazon import ConnectionOptionsAmazon - from .connection_options_apple import ConnectionOptionsApple - from .connection_options_auth_0 import ConnectionOptionsAuth0 - from .connection_options_auth_0_oidc import ConnectionOptionsAuth0Oidc - from .connection_options_azure_ad import ConnectionOptionsAzureAd - from .connection_options_baidu import ConnectionOptionsBaidu - from .connection_options_bitbucket import ConnectionOptionsBitbucket - from .connection_options_bitly import ConnectionOptionsBitly - from .connection_options_box import ConnectionOptionsBox - from .connection_options_client_id_github import ConnectionOptionsClientIdGithub - from .connection_options_client_id_twitter import ConnectionOptionsClientIdTwitter - from .connection_options_client_secret_github import ConnectionOptionsClientSecretGithub - from .connection_options_client_secret_twitter import ConnectionOptionsClientSecretTwitter - from .connection_options_common import ConnectionOptionsCommon - from .connection_options_common_oidc import ConnectionOptionsCommonOidc - from .connection_options_common_saml import ConnectionOptionsCommonSaml - from .connection_options_custom import ConnectionOptionsCustom - from .connection_options_daccount import ConnectionOptionsDaccount - from .connection_options_deflate_saml import ConnectionOptionsDeflateSaml - from .connection_options_dropbox import ConnectionOptionsDropbox - from .connection_options_dwolla import ConnectionOptionsDwolla - from .connection_options_email import ConnectionOptionsEmail - from .connection_options_evernote import ConnectionOptionsEvernote - from .connection_options_exact import ConnectionOptionsExact - from .connection_options_facebook import ConnectionOptionsFacebook - from .connection_options_fitbit import ConnectionOptionsFitbit - from .connection_options_freeform_scopes_github import ConnectionOptionsFreeformScopesGithub - from .connection_options_git_hub import ConnectionOptionsGitHub - from .connection_options_google_apps import ConnectionOptionsGoogleApps - from .connection_options_google_o_auth_2 import ConnectionOptionsGoogleOAuth2 - from .connection_options_idp_initiated_client_protocol_enum_saml import ( - ConnectionOptionsIdpInitiatedClientProtocolEnumSaml, - ) - from .connection_options_idpinitiated_saml import ConnectionOptionsIdpinitiatedSaml - from .connection_options_instagram import ConnectionOptionsInstagram - from .connection_options_ip import ConnectionOptionsIp - from .connection_options_line import ConnectionOptionsLine - from .connection_options_linkedin import ConnectionOptionsLinkedin - from .connection_options_o_auth_1 import ConnectionOptionsOAuth1 - from .connection_options_o_auth_1_common import ConnectionOptionsOAuth1Common - from .connection_options_o_auth_2 import ConnectionOptionsOAuth2 - from .connection_options_o_auth_2_common import ConnectionOptionsOAuth2Common - from .connection_options_office_365 import ConnectionOptionsOffice365 - from .connection_options_oidc import ConnectionOptionsOidc - from .connection_options_oidc_metadata import ConnectionOptionsOidcMetadata - from .connection_options_okta import ConnectionOptionsOkta - from .connection_options_paypal import ConnectionOptionsPaypal - from .connection_options_ping_federate import ConnectionOptionsPingFederate - from .connection_options_planning_center import ConnectionOptionsPlanningCenter - from .connection_options_protocol_enum_twitter import ConnectionOptionsProtocolEnumTwitter - from .connection_options_salesforce import ConnectionOptionsSalesforce - from .connection_options_salesforce_community import ConnectionOptionsSalesforceCommunity - from .connection_options_saml import ConnectionOptionsSaml - from .connection_options_scope_github import ConnectionOptionsScopeGithub - from .connection_options_scope_twitter import ConnectionOptionsScopeTwitter - from .connection_options_sharepoint import ConnectionOptionsSharepoint - from .connection_options_shop import ConnectionOptionsShop - from .connection_options_shopify import ConnectionOptionsShopify - from .connection_options_sms import ConnectionOptionsSms - from .connection_options_soundcloud import ConnectionOptionsSoundcloud - from .connection_options_thirty_seven_signals import ConnectionOptionsThirtySevenSignals - from .connection_options_twitter import ConnectionOptionsTwitter - from .connection_options_untappd import ConnectionOptionsUntappd - from .connection_options_vkontakte import ConnectionOptionsVkontakte - from .connection_options_weibo import ConnectionOptionsWeibo - from .connection_options_windows_live import ConnectionOptionsWindowsLive - from .connection_options_wordpress import ConnectionOptionsWordpress - from .connection_options_yahoo import ConnectionOptionsYahoo - from .connection_options_yandex import ConnectionOptionsYandex - from .connection_otp_channel_settings import ConnectionOtpChannelSettings - from .connection_otp_settings import ConnectionOtpSettings - from .connection_passkey_authentication_method import ConnectionPasskeyAuthenticationMethod - from .connection_passkey_challenge_ui_enum import ConnectionPasskeyChallengeUiEnum - from .connection_passkey_options import ConnectionPasskeyOptions - from .connection_password_authentication_method import ConnectionPasswordAuthenticationMethod - from .connection_password_complexity_options import ConnectionPasswordComplexityOptions - from .connection_password_dictionary_options import ConnectionPasswordDictionaryOptions - from .connection_password_history_options import ConnectionPasswordHistoryOptions - from .connection_password_no_personal_info_options import ConnectionPasswordNoPersonalInfoOptions - from .connection_password_options import ConnectionPasswordOptions - from .connection_password_options_complexity import ConnectionPasswordOptionsComplexity - from .connection_password_options_dictionary import ConnectionPasswordOptionsDictionary - from .connection_password_options_history import ConnectionPasswordOptionsHistory - from .connection_password_options_profile_data import ConnectionPasswordOptionsProfileData - from .connection_password_policy_enum import ConnectionPasswordPolicyEnum - from .connection_phone_otp_authentication_method import ConnectionPhoneOtpAuthenticationMethod - from .connection_ping_federate_base_url import ConnectionPingFederateBaseUrl - from .connection_ping_federate_base_url_ping_federate import ConnectionPingFederateBaseUrlPingFederate - from .connection_profile import ConnectionProfile - from .connection_profile_bitbucket import ConnectionProfileBitbucket - from .connection_profile_config import ConnectionProfileConfig - from .connection_profile_cross_app_access_resource_app import ConnectionProfileCrossAppAccessResourceApp - from .connection_profile_cross_app_access_resource_app_status import ( - ConnectionProfileCrossAppAccessResourceAppStatus, - ) - from .connection_profile_cross_app_access_resource_app_status_allowed_values_enum import ( - ConnectionProfileCrossAppAccessResourceAppStatusAllowedValuesEnum, - ) - from .connection_profile_cross_app_access_resource_app_status_default_value_enum import ( - ConnectionProfileCrossAppAccessResourceAppStatusDefaultValueEnum, - ) - from .connection_profile_cross_app_access_resource_app_status_value_enum import ( - ConnectionProfileCrossAppAccessResourceAppStatusValueEnum, - ) - from .connection_profile_enabled_features import ConnectionProfileEnabledFeatures - from .connection_profile_id import ConnectionProfileId - from .connection_profile_name import ConnectionProfileName - from .connection_profile_organization import ConnectionProfileOrganization - from .connection_profile_organization_assign_membership_on_login_enum import ( - ConnectionProfileOrganizationAssignMembershipOnLoginEnum, - ) - from .connection_profile_organization_show_as_button_enum import ConnectionProfileOrganizationShowAsButtonEnum - from .connection_profile_provisioning import ConnectionProfileProvisioning - from .connection_profile_provisioning_google_workspace import ConnectionProfileProvisioningGoogleWorkspace - from .connection_profile_provisioning_google_workspace_sync_users import ( - ConnectionProfileProvisioningGoogleWorkspaceSyncUsers, - ) - from .connection_profile_provisioning_scim import ConnectionProfileProvisioningScim - from .connection_profile_provisioning_scim_token_default_expiry import ( - ConnectionProfileProvisioningScimTokenDefaultExpiry, - ) - from .connection_profile_provisioning_scim_token_max_allowed_expiry import ( - ConnectionProfileProvisioningScimTokenMaxAllowedExpiry, - ) - from .connection_profile_provisioning_scim_token_scope_enum import ConnectionProfileProvisioningScimTokenScopeEnum - from .connection_profile_provisioning_scim_token_scopes import ConnectionProfileProvisioningScimTokenScopes - from .connection_profile_provisioning_scim_tokens import ConnectionProfileProvisioningScimTokens - from .connection_profile_strategy_override import ConnectionProfileStrategyOverride - from .connection_profile_strategy_overrides import ConnectionProfileStrategyOverrides - from .connection_profile_strategy_overrides_connection_config import ( - ConnectionProfileStrategyOverridesConnectionConfig, - ) - from .connection_profile_strategy_overrides_enabled_features import ( - ConnectionProfileStrategyOverridesEnabledFeatures, - ) - from .connection_profile_strategy_overrides_provisioning import ConnectionProfileStrategyOverridesProvisioning - from .connection_profile_template import ConnectionProfileTemplate - from .connection_profile_template_item import ConnectionProfileTemplateItem - from .connection_properties_options import ConnectionPropertiesOptions - from .connection_protocol_binding_enum_saml import ConnectionProtocolBindingEnumSaml - from .connection_protocol_binding_saml import ConnectionProtocolBindingSaml - from .connection_provider_enum_sms import ConnectionProviderEnumSms - from .connection_provider_sms import ConnectionProviderSms - from .connection_provisioning_ticket_url import ConnectionProvisioningTicketUrl - from .connection_purposes import ConnectionPurposes - from .connection_pushed_authorization_request_endpoint import ConnectionPushedAuthorizationRequestEndpoint - from .connection_realm_fallback import ConnectionRealmFallback - from .connection_realms import ConnectionRealms - from .connection_recipient_url_saml import ConnectionRecipientUrlSaml - from .connection_registration_endpoint import ConnectionRegistrationEndpoint - from .connection_request_object_encryption_alg_values_supported import ( - ConnectionRequestObjectEncryptionAlgValuesSupported, - ) - from .connection_request_object_encryption_enc_values_supported import ( - ConnectionRequestObjectEncryptionEncValuesSupported, - ) - from .connection_request_object_signing_alg_values_supported import ConnectionRequestObjectSigningAlgValuesSupported - from .connection_request_parameter_supported import ConnectionRequestParameterSupported - from .connection_request_template_saml import ConnectionRequestTemplateSaml - from .connection_request_token_urlo_auth_1 import ConnectionRequestTokenUrloAuth1 - from .connection_request_uri_parameter_supported import ConnectionRequestUriParameterSupported - from .connection_require_pushed_authorization_requests import ConnectionRequirePushedAuthorizationRequests - from .connection_require_request_uri_registration import ConnectionRequireRequestUriRegistration - from .connection_requires_username import ConnectionRequiresUsername - from .connection_response_common import ConnectionResponseCommon - from .connection_response_content_ad import ConnectionResponseContentAd - from .connection_response_content_ad_strategy import ConnectionResponseContentAdStrategy - from .connection_response_content_adfs import ConnectionResponseContentAdfs - from .connection_response_content_adfs_strategy import ConnectionResponseContentAdfsStrategy - from .connection_response_content_amazon import ConnectionResponseContentAmazon - from .connection_response_content_amazon_strategy import ConnectionResponseContentAmazonStrategy - from .connection_response_content_apple import ConnectionResponseContentApple - from .connection_response_content_apple_strategy import ConnectionResponseContentAppleStrategy - from .connection_response_content_auth_0 import ConnectionResponseContentAuth0 - from .connection_response_content_auth_0_oidc import ConnectionResponseContentAuth0Oidc - from .connection_response_content_auth_0_oidc_strategy import ConnectionResponseContentAuth0OidcStrategy - from .connection_response_content_auth_0_strategy import ConnectionResponseContentAuth0Strategy - from .connection_response_content_azure_ad import ConnectionResponseContentAzureAd - from .connection_response_content_azure_ad_strategy import ConnectionResponseContentAzureAdStrategy - from .connection_response_content_baidu import ConnectionResponseContentBaidu - from .connection_response_content_baidu_strategy import ConnectionResponseContentBaiduStrategy - from .connection_response_content_bitbucket import ConnectionResponseContentBitbucket - from .connection_response_content_bitbucket_strategy import ConnectionResponseContentBitbucketStrategy - from .connection_response_content_bitly import ConnectionResponseContentBitly - from .connection_response_content_bitly_strategy import ConnectionResponseContentBitlyStrategy - from .connection_response_content_box import ConnectionResponseContentBox - from .connection_response_content_box_strategy import ConnectionResponseContentBoxStrategy - from .connection_response_content_custom import ConnectionResponseContentCustom - from .connection_response_content_custom_strategy import ConnectionResponseContentCustomStrategy - from .connection_response_content_daccount import ConnectionResponseContentDaccount - from .connection_response_content_daccount_strategy import ConnectionResponseContentDaccountStrategy - from .connection_response_content_dropbox import ConnectionResponseContentDropbox - from .connection_response_content_dropbox_strategy import ConnectionResponseContentDropboxStrategy - from .connection_response_content_dwolla import ConnectionResponseContentDwolla - from .connection_response_content_dwolla_strategy import ConnectionResponseContentDwollaStrategy - from .connection_response_content_email import ConnectionResponseContentEmail - from .connection_response_content_email_strategy import ConnectionResponseContentEmailStrategy - from .connection_response_content_evernote import ConnectionResponseContentEvernote - from .connection_response_content_evernote_sandbox import ConnectionResponseContentEvernoteSandbox - from .connection_response_content_evernote_sandbox_strategy import ConnectionResponseContentEvernoteSandboxStrategy - from .connection_response_content_evernote_strategy import ConnectionResponseContentEvernoteStrategy - from .connection_response_content_exact import ConnectionResponseContentExact - from .connection_response_content_exact_strategy import ConnectionResponseContentExactStrategy - from .connection_response_content_facebook import ConnectionResponseContentFacebook - from .connection_response_content_facebook_strategy import ConnectionResponseContentFacebookStrategy - from .connection_response_content_fitbit import ConnectionResponseContentFitbit - from .connection_response_content_fitbit_strategy import ConnectionResponseContentFitbitStrategy - from .connection_response_content_git_hub import ConnectionResponseContentGitHub - from .connection_response_content_git_hub_strategy import ConnectionResponseContentGitHubStrategy - from .connection_response_content_google_apps import ConnectionResponseContentGoogleApps - from .connection_response_content_google_apps_strategy import ConnectionResponseContentGoogleAppsStrategy - from .connection_response_content_google_o_auth_2 import ConnectionResponseContentGoogleOAuth2 - from .connection_response_content_google_o_auth_2_strategy import ConnectionResponseContentGoogleOAuth2Strategy - from .connection_response_content_instagram import ConnectionResponseContentInstagram - from .connection_response_content_instagram_strategy import ConnectionResponseContentInstagramStrategy - from .connection_response_content_ip import ConnectionResponseContentIp - from .connection_response_content_ip_strategy import ConnectionResponseContentIpStrategy - from .connection_response_content_line import ConnectionResponseContentLine - from .connection_response_content_line_strategy import ConnectionResponseContentLineStrategy - from .connection_response_content_linkedin import ConnectionResponseContentLinkedin - from .connection_response_content_linkedin_strategy import ConnectionResponseContentLinkedinStrategy - from .connection_response_content_o_auth_1 import ConnectionResponseContentOAuth1 - from .connection_response_content_o_auth_1_strategy import ConnectionResponseContentOAuth1Strategy - from .connection_response_content_o_auth_2 import ConnectionResponseContentOAuth2 - from .connection_response_content_o_auth_2_strategy import ConnectionResponseContentOAuth2Strategy - from .connection_response_content_office_365 import ConnectionResponseContentOffice365 - from .connection_response_content_office_365_strategy import ConnectionResponseContentOffice365Strategy - from .connection_response_content_oidc import ConnectionResponseContentOidc - from .connection_response_content_oidc_strategy import ConnectionResponseContentOidcStrategy - from .connection_response_content_okta import ConnectionResponseContentOkta - from .connection_response_content_okta_strategy import ConnectionResponseContentOktaStrategy - from .connection_response_content_paypal import ConnectionResponseContentPaypal - from .connection_response_content_paypal_sandbox import ConnectionResponseContentPaypalSandbox - from .connection_response_content_paypal_sandbox_strategy import ConnectionResponseContentPaypalSandboxStrategy - from .connection_response_content_paypal_strategy import ConnectionResponseContentPaypalStrategy - from .connection_response_content_ping_federate import ConnectionResponseContentPingFederate - from .connection_response_content_ping_federate_strategy import ConnectionResponseContentPingFederateStrategy - from .connection_response_content_planning_center import ConnectionResponseContentPlanningCenter - from .connection_response_content_planning_center_strategy import ConnectionResponseContentPlanningCenterStrategy - from .connection_response_content_salesforce import ConnectionResponseContentSalesforce - from .connection_response_content_salesforce_community import ConnectionResponseContentSalesforceCommunity - from .connection_response_content_salesforce_community_strategy import ( - ConnectionResponseContentSalesforceCommunityStrategy, - ) - from .connection_response_content_salesforce_sandbox import ConnectionResponseContentSalesforceSandbox - from .connection_response_content_salesforce_sandbox_strategy import ( - ConnectionResponseContentSalesforceSandboxStrategy, - ) - from .connection_response_content_salesforce_strategy import ConnectionResponseContentSalesforceStrategy - from .connection_response_content_saml import ConnectionResponseContentSaml - from .connection_response_content_saml_strategy import ConnectionResponseContentSamlStrategy - from .connection_response_content_sharepoint import ConnectionResponseContentSharepoint - from .connection_response_content_sharepoint_strategy import ConnectionResponseContentSharepointStrategy - from .connection_response_content_shop import ConnectionResponseContentShop - from .connection_response_content_shop_strategy import ConnectionResponseContentShopStrategy - from .connection_response_content_shopify import ConnectionResponseContentShopify - from .connection_response_content_shopify_strategy import ConnectionResponseContentShopifyStrategy - from .connection_response_content_sms import ConnectionResponseContentSms - from .connection_response_content_sms_strategy import ConnectionResponseContentSmsStrategy - from .connection_response_content_soundcloud import ConnectionResponseContentSoundcloud - from .connection_response_content_soundcloud_strategy import ConnectionResponseContentSoundcloudStrategy - from .connection_response_content_thirty_seven_signals import ConnectionResponseContentThirtySevenSignals - from .connection_response_content_thirty_seven_signals_strategy import ( - ConnectionResponseContentThirtySevenSignalsStrategy, - ) - from .connection_response_content_twitter import ConnectionResponseContentTwitter - from .connection_response_content_twitter_strategy import ConnectionResponseContentTwitterStrategy - from .connection_response_content_untappd import ConnectionResponseContentUntappd - from .connection_response_content_untappd_strategy import ConnectionResponseContentUntappdStrategy - from .connection_response_content_vkontakte import ConnectionResponseContentVkontakte - from .connection_response_content_vkontakte_strategy import ConnectionResponseContentVkontakteStrategy - from .connection_response_content_weibo import ConnectionResponseContentWeibo - from .connection_response_content_weibo_strategy import ConnectionResponseContentWeiboStrategy - from .connection_response_content_windows_live import ConnectionResponseContentWindowsLive - from .connection_response_content_windows_live_strategy import ConnectionResponseContentWindowsLiveStrategy - from .connection_response_content_wordpress import ConnectionResponseContentWordpress - from .connection_response_content_wordpress_strategy import ConnectionResponseContentWordpressStrategy - from .connection_response_content_yahoo import ConnectionResponseContentYahoo - from .connection_response_content_yahoo_strategy import ConnectionResponseContentYahooStrategy - from .connection_response_content_yandex import ConnectionResponseContentYandex - from .connection_response_content_yandex_strategy import ConnectionResponseContentYandexStrategy - from .connection_response_modes_supported import ConnectionResponseModesSupported - from .connection_response_types_supported import ConnectionResponseTypesSupported - from .connection_scope_amazon import ConnectionScopeAmazon - from .connection_scope_array import ConnectionScopeArray - from .connection_scope_array_facebook import ConnectionScopeArrayFacebook - from .connection_scope_array_windows_live import ConnectionScopeArrayWindowsLive - from .connection_scope_azure_ad import ConnectionScopeAzureAd - from .connection_scope_facebook import ConnectionScopeFacebook - from .connection_scope_google_apps import ConnectionScopeGoogleApps - from .connection_scope_google_o_auth_2 import ConnectionScopeGoogleOAuth2 - from .connection_scope_item import ConnectionScopeItem - from .connection_scope_item_google_apps import ConnectionScopeItemGoogleApps - from .connection_scope_linkedin import ConnectionScopeLinkedin - from .connection_scope_o_auth_2 import ConnectionScopeOAuth2 - from .connection_scope_oidc import ConnectionScopeOidc - from .connection_scope_paypal import ConnectionScopePaypal - from .connection_scope_salesforce import ConnectionScopeSalesforce - from .connection_scopes_supported import ConnectionScopesSupported - from .connection_scripts_o_auth_1 import ConnectionScriptsOAuth1 - from .connection_scripts_o_auth_2 import ConnectionScriptsOAuth2 - from .connection_send_back_channel_nonce import ConnectionSendBackChannelNonce - from .connection_service_documentation import ConnectionServiceDocumentation - from .connection_set_user_root_attributes_enum import ConnectionSetUserRootAttributesEnum - from .connection_sha_1_thumbprint import ConnectionSha1Thumbprint - from .connection_should_trust_email_verified_connection_enum import ConnectionShouldTrustEmailVerifiedConnectionEnum - from .connection_show_as_button import ConnectionShowAsButton - from .connection_sign_in_endpoint_ad import ConnectionSignInEndpointAd - from .connection_sign_in_endpoint_adfs import ConnectionSignInEndpointAdfs - from .connection_sign_in_endpoint_saml import ConnectionSignInEndpointSaml - from .connection_sign_out_endpoint_saml import ConnectionSignOutEndpointSaml - from .connection_sign_saml_request_saml import ConnectionSignSamlRequestSaml - from .connection_signature_algorithm_enum_saml import ConnectionSignatureAlgorithmEnumSaml - from .connection_signature_algorithm_saml import ConnectionSignatureAlgorithmSaml - from .connection_signature_method_o_auth_1 import ConnectionSignatureMethodOAuth1 - from .connection_signing_cert_saml import ConnectionSigningCertSaml - from .connection_signing_certificate_der_saml import ConnectionSigningCertificateDerSaml - from .connection_signing_certificate_pem_ping_federate import ConnectionSigningCertificatePemPingFederate - from .connection_signing_certificate_pem_saml import ConnectionSigningCertificatePemSaml - from .connection_signing_key_saml import ConnectionSigningKeySaml - from .connection_signup_behavior_enum import ConnectionSignupBehaviorEnum - from .connection_strategy_enum import ConnectionStrategyEnum - from .connection_strategy_version_enum_linkedin import ConnectionStrategyVersionEnumLinkedin - from .connection_strategy_version_enum_windows_live import ConnectionStrategyVersionEnumWindowsLive - from .connection_subject_types_supported import ConnectionSubjectTypesSupported - from .connection_template_sms import ConnectionTemplateSms - from .connection_template_syntax_enum_sms import ConnectionTemplateSyntaxEnumSms - from .connection_tenant_domain import ConnectionTenantDomain - from .connection_tenant_domain_ad import ConnectionTenantDomainAd - from .connection_tenant_domain_azure_ad_one import ConnectionTenantDomainAzureAdOne - from .connection_tenant_domain_google_apps import ConnectionTenantDomainGoogleApps - from .connection_tenant_domain_saml import ConnectionTenantDomainSaml - from .connection_tenant_id_azure_ad import ConnectionTenantIdAzureAd - from .connection_thumbprints import ConnectionThumbprints - from .connection_thumbprints_ad import ConnectionThumbprintsAd - from .connection_thumbprints_saml import ConnectionThumbprintsSaml - from .connection_thumbprints_sha_384 import ConnectionThumbprintsSha384 - from .connection_thumbprints_sha_384_ad import ConnectionThumbprintsSha384Ad - from .connection_thumbprints_sha_384_saml import ConnectionThumbprintsSha384Saml - from .connection_token_endpoint import ConnectionTokenEndpoint - from .connection_token_endpoint_auth_method_enum import ConnectionTokenEndpointAuthMethodEnum - from .connection_token_endpoint_auth_methods_supported import ConnectionTokenEndpointAuthMethodsSupported - from .connection_token_endpoint_auth_signing_alg_enum import ConnectionTokenEndpointAuthSigningAlgEnum - from .connection_token_endpoint_auth_signing_alg_values_supported import ( - ConnectionTokenEndpointAuthSigningAlgValuesSupported, - ) - from .connection_token_endpoint_jwtca_aud_format_enum_oidc import ConnectionTokenEndpointJwtcaAudFormatEnumOidc - from .connection_totp_email import ConnectionTotpEmail - from .connection_totp_length_email import ConnectionTotpLengthEmail - from .connection_totp_length_passwordless import ConnectionTotpLengthPasswordless - from .connection_totp_length_sms import ConnectionTotpLengthSms - from .connection_totp_sms import ConnectionTotpSms - from .connection_totp_time_step_email import ConnectionTotpTimeStepEmail - from .connection_totp_time_step_passwordless import ConnectionTotpTimeStepPasswordless - from .connection_totp_time_step_sms import ConnectionTotpTimeStepSms - from .connection_twilio_sid_sms import ConnectionTwilioSidSms - from .connection_twilio_token_sms import ConnectionTwilioTokenSms - from .connection_type_enum_oidc import ConnectionTypeEnumOidc - from .connection_type_enum_okta import ConnectionTypeEnumOkta - from .connection_ui_locales_supported import ConnectionUiLocalesSupported - from .connection_upstream_additional_properties import ConnectionUpstreamAdditionalProperties - from .connection_upstream_alias import ConnectionUpstreamAlias - from .connection_upstream_alias_enum import ConnectionUpstreamAliasEnum - from .connection_upstream_params import ConnectionUpstreamParams - from .connection_upstream_params_facebook import ConnectionUpstreamParamsFacebook - from .connection_upstream_value import ConnectionUpstreamValue - from .connection_use_common_endpoint_azure_ad import ConnectionUseCommonEndpointAzureAd - from .connection_use_oauth_spec_scope import ConnectionUseOauthSpecScope - from .connection_user_authorization_urlo_auth_1 import ConnectionUserAuthorizationUrloAuth1 - from .connection_user_id_attribute_saml import ConnectionUserIdAttributeSaml - from .connection_userid_attribute_azure_ad import ConnectionUseridAttributeAzureAd - from .connection_userid_attribute_enum_azure_ad import ConnectionUseridAttributeEnumAzureAd - from .connection_userinfo_encryption_alg_values_supported import ConnectionUserinfoEncryptionAlgValuesSupported - from .connection_userinfo_encryption_enc_values_supported import ConnectionUserinfoEncryptionEncValuesSupported - from .connection_userinfo_endpoint import ConnectionUserinfoEndpoint - from .connection_userinfo_signing_alg_values_supported import ConnectionUserinfoSigningAlgValuesSupported - from .connection_username_validation_options import ConnectionUsernameValidationOptions - from .connection_validation_options import ConnectionValidationOptions - from .connection_waad_protocol import ConnectionWaadProtocol - from .connection_waad_protocol_enum_azure_ad import ConnectionWaadProtocolEnumAzureAd - from .connections_discovery_url import ConnectionsDiscoveryUrl - from .connections_metadata import ConnectionsMetadata - from .connections_oidc_metadata import ConnectionsOidcMetadata - from .consent_signing_key import ConsentSigningKey - from .content_security_policy_config import ContentSecurityPolicyConfig - from .create_action_module_response_content import CreateActionModuleResponseContent - from .create_action_module_version_response_content import CreateActionModuleVersionResponseContent - from .create_action_response_content import CreateActionResponseContent - from .create_anonymous_sessions import CreateAnonymousSessions - from .create_branding_phone_provider_response_content import CreateBrandingPhoneProviderResponseContent - from .create_branding_theme_response_content import CreateBrandingThemeResponseContent - from .create_client_authentication_method_self_signed_tls_client_auth import ( - CreateClientAuthenticationMethodSelfSignedTlsClientAuth, - ) - from .create_client_authentication_method_self_signed_tls_client_auth_credentials import ( - CreateClientAuthenticationMethodSelfSignedTlsClientAuthCredentials, - ) - from .create_client_grant_response_content import CreateClientGrantResponseContent - from .create_client_response_content import CreateClientResponseContent - from .create_connection_common import CreateConnectionCommon - from .create_connection_profile_response_content import CreateConnectionProfileResponseContent - from .create_connection_request_content_ad import CreateConnectionRequestContentAd - from .create_connection_request_content_ad_strategy import CreateConnectionRequestContentAdStrategy - from .create_connection_request_content_adfs import CreateConnectionRequestContentAdfs - from .create_connection_request_content_adfs_strategy import CreateConnectionRequestContentAdfsStrategy - from .create_connection_request_content_amazon import CreateConnectionRequestContentAmazon - from .create_connection_request_content_amazon_strategy import CreateConnectionRequestContentAmazonStrategy - from .create_connection_request_content_apple import CreateConnectionRequestContentApple - from .create_connection_request_content_apple_strategy import CreateConnectionRequestContentAppleStrategy - from .create_connection_request_content_auth_0 import CreateConnectionRequestContentAuth0 - from .create_connection_request_content_auth_0_oidc import CreateConnectionRequestContentAuth0Oidc - from .create_connection_request_content_auth_0_oidc_strategy import CreateConnectionRequestContentAuth0OidcStrategy - from .create_connection_request_content_auth_0_strategy import CreateConnectionRequestContentAuth0Strategy - from .create_connection_request_content_azure_ad import CreateConnectionRequestContentAzureAd - from .create_connection_request_content_azure_ad_strategy import CreateConnectionRequestContentAzureAdStrategy - from .create_connection_request_content_baidu import CreateConnectionRequestContentBaidu - from .create_connection_request_content_baidu_strategy import CreateConnectionRequestContentBaiduStrategy - from .create_connection_request_content_bitbucket import CreateConnectionRequestContentBitbucket - from .create_connection_request_content_bitbucket_strategy import CreateConnectionRequestContentBitbucketStrategy - from .create_connection_request_content_bitly import CreateConnectionRequestContentBitly - from .create_connection_request_content_bitly_strategy import CreateConnectionRequestContentBitlyStrategy - from .create_connection_request_content_box import CreateConnectionRequestContentBox - from .create_connection_request_content_box_strategy import CreateConnectionRequestContentBoxStrategy - from .create_connection_request_content_custom import CreateConnectionRequestContentCustom - from .create_connection_request_content_custom_strategy import CreateConnectionRequestContentCustomStrategy - from .create_connection_request_content_daccount import CreateConnectionRequestContentDaccount - from .create_connection_request_content_daccount_strategy import CreateConnectionRequestContentDaccountStrategy - from .create_connection_request_content_dropbox import CreateConnectionRequestContentDropbox - from .create_connection_request_content_dropbox_strategy import CreateConnectionRequestContentDropboxStrategy - from .create_connection_request_content_dwolla import CreateConnectionRequestContentDwolla - from .create_connection_request_content_dwolla_strategy import CreateConnectionRequestContentDwollaStrategy - from .create_connection_request_content_email import CreateConnectionRequestContentEmail - from .create_connection_request_content_email_strategy import CreateConnectionRequestContentEmailStrategy - from .create_connection_request_content_evernote import CreateConnectionRequestContentEvernote - from .create_connection_request_content_evernote_sandbox import CreateConnectionRequestContentEvernoteSandbox - from .create_connection_request_content_evernote_sandbox_strategy import ( - CreateConnectionRequestContentEvernoteSandboxStrategy, - ) - from .create_connection_request_content_evernote_strategy import CreateConnectionRequestContentEvernoteStrategy - from .create_connection_request_content_exact import CreateConnectionRequestContentExact - from .create_connection_request_content_exact_strategy import CreateConnectionRequestContentExactStrategy - from .create_connection_request_content_facebook import CreateConnectionRequestContentFacebook - from .create_connection_request_content_facebook_strategy import CreateConnectionRequestContentFacebookStrategy - from .create_connection_request_content_fitbit import CreateConnectionRequestContentFitbit - from .create_connection_request_content_fitbit_strategy import CreateConnectionRequestContentFitbitStrategy - from .create_connection_request_content_git_hub import CreateConnectionRequestContentGitHub - from .create_connection_request_content_git_hub_strategy import CreateConnectionRequestContentGitHubStrategy - from .create_connection_request_content_google_apps import CreateConnectionRequestContentGoogleApps - from .create_connection_request_content_google_apps_strategy import CreateConnectionRequestContentGoogleAppsStrategy - from .create_connection_request_content_google_o_auth_2 import CreateConnectionRequestContentGoogleOAuth2 - from .create_connection_request_content_google_o_auth_2_strategy import ( - CreateConnectionRequestContentGoogleOAuth2Strategy, - ) - from .create_connection_request_content_instagram import CreateConnectionRequestContentInstagram - from .create_connection_request_content_instagram_strategy import CreateConnectionRequestContentInstagramStrategy - from .create_connection_request_content_ip import CreateConnectionRequestContentIp - from .create_connection_request_content_ip_strategy import CreateConnectionRequestContentIpStrategy - from .create_connection_request_content_line import CreateConnectionRequestContentLine - from .create_connection_request_content_line_strategy import CreateConnectionRequestContentLineStrategy - from .create_connection_request_content_linkedin import CreateConnectionRequestContentLinkedin - from .create_connection_request_content_linkedin_strategy import CreateConnectionRequestContentLinkedinStrategy - from .create_connection_request_content_o_auth_1 import CreateConnectionRequestContentOAuth1 - from .create_connection_request_content_o_auth_1_strategy import CreateConnectionRequestContentOAuth1Strategy - from .create_connection_request_content_o_auth_2 import CreateConnectionRequestContentOAuth2 - from .create_connection_request_content_o_auth_2_strategy import CreateConnectionRequestContentOAuth2Strategy - from .create_connection_request_content_office_365 import CreateConnectionRequestContentOffice365 - from .create_connection_request_content_office_365_strategy import CreateConnectionRequestContentOffice365Strategy - from .create_connection_request_content_oidc import CreateConnectionRequestContentOidc - from .create_connection_request_content_oidc_strategy import CreateConnectionRequestContentOidcStrategy - from .create_connection_request_content_okta import CreateConnectionRequestContentOkta - from .create_connection_request_content_okta_strategy import CreateConnectionRequestContentOktaStrategy - from .create_connection_request_content_paypal import CreateConnectionRequestContentPaypal - from .create_connection_request_content_paypal_sandbox import CreateConnectionRequestContentPaypalSandbox - from .create_connection_request_content_paypal_sandbox_strategy import ( - CreateConnectionRequestContentPaypalSandboxStrategy, - ) - from .create_connection_request_content_paypal_strategy import CreateConnectionRequestContentPaypalStrategy - from .create_connection_request_content_ping_federate import CreateConnectionRequestContentPingFederate - from .create_connection_request_content_ping_federate_strategy import ( - CreateConnectionRequestContentPingFederateStrategy, - ) - from .create_connection_request_content_planning_center import CreateConnectionRequestContentPlanningCenter - from .create_connection_request_content_planning_center_strategy import ( - CreateConnectionRequestContentPlanningCenterStrategy, - ) - from .create_connection_request_content_salesforce import CreateConnectionRequestContentSalesforce - from .create_connection_request_content_salesforce_community import ( - CreateConnectionRequestContentSalesforceCommunity, - ) - from .create_connection_request_content_salesforce_community_strategy import ( - CreateConnectionRequestContentSalesforceCommunityStrategy, - ) - from .create_connection_request_content_salesforce_sandbox import CreateConnectionRequestContentSalesforceSandbox - from .create_connection_request_content_salesforce_sandbox_strategy import ( - CreateConnectionRequestContentSalesforceSandboxStrategy, - ) - from .create_connection_request_content_salesforce_strategy import CreateConnectionRequestContentSalesforceStrategy - from .create_connection_request_content_saml import CreateConnectionRequestContentSaml - from .create_connection_request_content_saml_strategy import CreateConnectionRequestContentSamlStrategy - from .create_connection_request_content_sharepoint import CreateConnectionRequestContentSharepoint - from .create_connection_request_content_sharepoint_strategy import CreateConnectionRequestContentSharepointStrategy - from .create_connection_request_content_shop import CreateConnectionRequestContentShop - from .create_connection_request_content_shop_strategy import CreateConnectionRequestContentShopStrategy - from .create_connection_request_content_shopify import CreateConnectionRequestContentShopify - from .create_connection_request_content_shopify_strategy import CreateConnectionRequestContentShopifyStrategy - from .create_connection_request_content_sms import CreateConnectionRequestContentSms - from .create_connection_request_content_sms_strategy import CreateConnectionRequestContentSmsStrategy - from .create_connection_request_content_soundcloud import CreateConnectionRequestContentSoundcloud - from .create_connection_request_content_soundcloud_strategy import CreateConnectionRequestContentSoundcloudStrategy - from .create_connection_request_content_thirty_seven_signals import CreateConnectionRequestContentThirtySevenSignals - from .create_connection_request_content_thirty_seven_signals_strategy import ( - CreateConnectionRequestContentThirtySevenSignalsStrategy, - ) - from .create_connection_request_content_twitter import CreateConnectionRequestContentTwitter - from .create_connection_request_content_twitter_strategy import CreateConnectionRequestContentTwitterStrategy - from .create_connection_request_content_untappd import CreateConnectionRequestContentUntappd - from .create_connection_request_content_untappd_strategy import CreateConnectionRequestContentUntappdStrategy - from .create_connection_request_content_vkontakte import CreateConnectionRequestContentVkontakte - from .create_connection_request_content_vkontakte_strategy import CreateConnectionRequestContentVkontakteStrategy - from .create_connection_request_content_weibo import CreateConnectionRequestContentWeibo - from .create_connection_request_content_weibo_strategy import CreateConnectionRequestContentWeiboStrategy - from .create_connection_request_content_windows_live import CreateConnectionRequestContentWindowsLive - from .create_connection_request_content_windows_live_strategy import ( - CreateConnectionRequestContentWindowsLiveStrategy, - ) - from .create_connection_request_content_wordpress import CreateConnectionRequestContentWordpress - from .create_connection_request_content_wordpress_strategy import CreateConnectionRequestContentWordpressStrategy - from .create_connection_request_content_yahoo import CreateConnectionRequestContentYahoo - from .create_connection_request_content_yahoo_strategy import CreateConnectionRequestContentYahooStrategy - from .create_connection_request_content_yandex import CreateConnectionRequestContentYandex - from .create_connection_request_content_yandex_strategy import CreateConnectionRequestContentYandexStrategy - from .create_connection_response_content import CreateConnectionResponseContent - from .create_cross_app_access_resource_app import CreateCrossAppAccessResourceApp - from .create_custom_domain_response_content import CreateCustomDomainResponseContent - from .create_directory_provisioning_request_content import CreateDirectoryProvisioningRequestContent - from .create_directory_provisioning_response_content import CreateDirectoryProvisioningResponseContent - from .create_directory_synchronization_response_content import CreateDirectorySynchronizationResponseContent - from .create_email_provider_response_content import CreateEmailProviderResponseContent - from .create_email_template_response_content import CreateEmailTemplateResponseContent - from .create_encryption_key_public_wrapping_response_content import CreateEncryptionKeyPublicWrappingResponseContent - from .create_encryption_key_response_content import CreateEncryptionKeyResponseContent - from .create_encryption_key_type import CreateEncryptionKeyType - from .create_event_stream_action_request_content import CreateEventStreamActionRequestContent - from .create_event_stream_event_bridge_request_content import CreateEventStreamEventBridgeRequestContent - from .create_event_stream_redelivery_response_content import CreateEventStreamRedeliveryResponseContent - from .create_event_stream_response_content import CreateEventStreamResponseContent - from .create_event_stream_test_event_response_content import CreateEventStreamTestEventResponseContent - from .create_event_stream_web_hook_request_content import CreateEventStreamWebHookRequestContent - from .create_experiment_response_content import CreateExperimentResponseContent - from .create_export_users_fields import CreateExportUsersFields - from .create_export_users_response_content import CreateExportUsersResponseContent - from .create_feature_flag_parameters import CreateFeatureFlagParameters - from .create_feature_flag_response_content import CreateFeatureFlagResponseContent - from .create_flow_response_content import CreateFlowResponseContent - from .create_flows_vault_connection_activecampaign import CreateFlowsVaultConnectionActivecampaign - from .create_flows_vault_connection_activecampaign_api_key import CreateFlowsVaultConnectionActivecampaignApiKey - from .create_flows_vault_connection_activecampaign_uninitialized import ( - CreateFlowsVaultConnectionActivecampaignUninitialized, - ) - from .create_flows_vault_connection_airtable import CreateFlowsVaultConnectionAirtable - from .create_flows_vault_connection_airtable_api_key import CreateFlowsVaultConnectionAirtableApiKey - from .create_flows_vault_connection_airtable_uninitialized import CreateFlowsVaultConnectionAirtableUninitialized - from .create_flows_vault_connection_auth_0 import CreateFlowsVaultConnectionAuth0 - from .create_flows_vault_connection_auth_0_oauth_app import CreateFlowsVaultConnectionAuth0OauthApp - from .create_flows_vault_connection_auth_0_uninitialized import CreateFlowsVaultConnectionAuth0Uninitialized - from .create_flows_vault_connection_bigquery import CreateFlowsVaultConnectionBigquery - from .create_flows_vault_connection_bigquery_jwt import CreateFlowsVaultConnectionBigqueryJwt - from .create_flows_vault_connection_bigquery_uninitialized import CreateFlowsVaultConnectionBigqueryUninitialized - from .create_flows_vault_connection_clearbit import CreateFlowsVaultConnectionClearbit - from .create_flows_vault_connection_clearbit_api_key import CreateFlowsVaultConnectionClearbitApiKey - from .create_flows_vault_connection_clearbit_uninitialized import CreateFlowsVaultConnectionClearbitUninitialized - from .create_flows_vault_connection_docusign import CreateFlowsVaultConnectionDocusign - from .create_flows_vault_connection_docusign_oauth_code import CreateFlowsVaultConnectionDocusignOauthCode - from .create_flows_vault_connection_docusign_uninitialized import CreateFlowsVaultConnectionDocusignUninitialized - from .create_flows_vault_connection_google_sheets import CreateFlowsVaultConnectionGoogleSheets - from .create_flows_vault_connection_google_sheets_oauth_code import CreateFlowsVaultConnectionGoogleSheetsOauthCode - from .create_flows_vault_connection_google_sheets_uninitialized import ( - CreateFlowsVaultConnectionGoogleSheetsUninitialized, - ) - from .create_flows_vault_connection_http import CreateFlowsVaultConnectionHttp - from .create_flows_vault_connection_http_api_key import CreateFlowsVaultConnectionHttpApiKey - from .create_flows_vault_connection_http_basic_auth import CreateFlowsVaultConnectionHttpBasicAuth - from .create_flows_vault_connection_http_bearer import CreateFlowsVaultConnectionHttpBearer - from .create_flows_vault_connection_http_oauth_client_credentials import ( - CreateFlowsVaultConnectionHttpOauthClientCredentials, - ) - from .create_flows_vault_connection_http_uninitialized import CreateFlowsVaultConnectionHttpUninitialized - from .create_flows_vault_connection_hubspot import CreateFlowsVaultConnectionHubspot - from .create_flows_vault_connection_hubspot_api_key import CreateFlowsVaultConnectionHubspotApiKey - from .create_flows_vault_connection_hubspot_oauth_code import CreateFlowsVaultConnectionHubspotOauthCode - from .create_flows_vault_connection_hubspot_uninitialized import CreateFlowsVaultConnectionHubspotUninitialized - from .create_flows_vault_connection_jwt import CreateFlowsVaultConnectionJwt - from .create_flows_vault_connection_jwt_jwt import CreateFlowsVaultConnectionJwtJwt - from .create_flows_vault_connection_jwt_uninitialized import CreateFlowsVaultConnectionJwtUninitialized - from .create_flows_vault_connection_mailchimp import CreateFlowsVaultConnectionMailchimp - from .create_flows_vault_connection_mailchimp_api_key import CreateFlowsVaultConnectionMailchimpApiKey - from .create_flows_vault_connection_mailchimp_oauth_code import CreateFlowsVaultConnectionMailchimpOauthCode - from .create_flows_vault_connection_mailchimp_uninitialized import CreateFlowsVaultConnectionMailchimpUninitialized - from .create_flows_vault_connection_mailjet import CreateFlowsVaultConnectionMailjet - from .create_flows_vault_connection_mailjet_api_key import CreateFlowsVaultConnectionMailjetApiKey - from .create_flows_vault_connection_mailjet_uninitialized import CreateFlowsVaultConnectionMailjetUninitialized - from .create_flows_vault_connection_pipedrive import CreateFlowsVaultConnectionPipedrive - from .create_flows_vault_connection_pipedrive_oauth_code import CreateFlowsVaultConnectionPipedriveOauthCode - from .create_flows_vault_connection_pipedrive_token import CreateFlowsVaultConnectionPipedriveToken - from .create_flows_vault_connection_pipedrive_uninitialized import CreateFlowsVaultConnectionPipedriveUninitialized - from .create_flows_vault_connection_request_content import CreateFlowsVaultConnectionRequestContent - from .create_flows_vault_connection_response_content import CreateFlowsVaultConnectionResponseContent - from .create_flows_vault_connection_salesforce import CreateFlowsVaultConnectionSalesforce - from .create_flows_vault_connection_salesforce_oauth_code import CreateFlowsVaultConnectionSalesforceOauthCode - from .create_flows_vault_connection_salesforce_uninitialized import ( - CreateFlowsVaultConnectionSalesforceUninitialized, - ) - from .create_flows_vault_connection_sendgrid import CreateFlowsVaultConnectionSendgrid - from .create_flows_vault_connection_sendgrid_api_key import CreateFlowsVaultConnectionSendgridApiKey - from .create_flows_vault_connection_sendgrid_uninitialized import CreateFlowsVaultConnectionSendgridUninitialized - from .create_flows_vault_connection_slack import CreateFlowsVaultConnectionSlack - from .create_flows_vault_connection_slack_oauth_code import CreateFlowsVaultConnectionSlackOauthCode - from .create_flows_vault_connection_slack_uninitialized import CreateFlowsVaultConnectionSlackUninitialized - from .create_flows_vault_connection_slack_webhook import CreateFlowsVaultConnectionSlackWebhook - from .create_flows_vault_connection_stripe import CreateFlowsVaultConnectionStripe - from .create_flows_vault_connection_stripe_key_pair import CreateFlowsVaultConnectionStripeKeyPair - from .create_flows_vault_connection_stripe_oauth_code import CreateFlowsVaultConnectionStripeOauthCode - from .create_flows_vault_connection_stripe_uninitialized import CreateFlowsVaultConnectionStripeUninitialized - from .create_flows_vault_connection_telegram import CreateFlowsVaultConnectionTelegram - from .create_flows_vault_connection_telegram_token import CreateFlowsVaultConnectionTelegramToken - from .create_flows_vault_connection_telegram_uninitialized import CreateFlowsVaultConnectionTelegramUninitialized - from .create_flows_vault_connection_twilio import CreateFlowsVaultConnectionTwilio - from .create_flows_vault_connection_twilio_api_key import CreateFlowsVaultConnectionTwilioApiKey - from .create_flows_vault_connection_twilio_uninitialized import CreateFlowsVaultConnectionTwilioUninitialized - from .create_flows_vault_connection_whatsapp import CreateFlowsVaultConnectionWhatsapp - from .create_flows_vault_connection_whatsapp_token import CreateFlowsVaultConnectionWhatsappToken - from .create_flows_vault_connection_whatsapp_uninitialized import CreateFlowsVaultConnectionWhatsappUninitialized - from .create_flows_vault_connection_zapier import CreateFlowsVaultConnectionZapier - from .create_flows_vault_connection_zapier_uninitialized import CreateFlowsVaultConnectionZapierUninitialized - from .create_flows_vault_connection_zapier_webhook import CreateFlowsVaultConnectionZapierWebhook - from .create_form_response_content import CreateFormResponseContent - from .create_guardian_enrollment_ticket_response_content import CreateGuardianEnrollmentTicketResponseContent - from .create_hook_response_content import CreateHookResponseContent - from .create_hook_secret_request_content import CreateHookSecretRequestContent - from .create_identity_assertion_authorization_grant import CreateIdentityAssertionAuthorizationGrant - from .create_import_users_response_content import CreateImportUsersResponseContent - from .create_keys_network_acls_response_content import CreateKeysNetworkAclsResponseContent - from .create_log_stream_datadog_request_body import CreateLogStreamDatadogRequestBody - from .create_log_stream_event_bridge_request_body import CreateLogStreamEventBridgeRequestBody - from .create_log_stream_event_grid_request_body import CreateLogStreamEventGridRequestBody - from .create_log_stream_http_request_body import CreateLogStreamHttpRequestBody - from .create_log_stream_mixpanel_request_body import CreateLogStreamMixpanelRequestBody - from .create_log_stream_request_content import CreateLogStreamRequestContent - from .create_log_stream_response_content import CreateLogStreamResponseContent - from .create_log_stream_segment_request_body import CreateLogStreamSegmentRequestBody - from .create_log_stream_splunk_request_body import CreateLogStreamSplunkRequestBody - from .create_log_stream_sumo_request_body import CreateLogStreamSumoRequestBody - from .create_organization_all_connection_response_content import CreateOrganizationAllConnectionResponseContent - from .create_organization_client_request_item import CreateOrganizationClientRequestItem - from .create_organization_clients_response_content import CreateOrganizationClientsResponseContent - from .create_organization_discovery_domain_response_content import CreateOrganizationDiscoveryDomainResponseContent - from .create_organization_invitation_response_content import CreateOrganizationInvitationResponseContent - from .create_organization_response_content import CreateOrganizationResponseContent - from .create_phone_provider_send_test_response_content import CreatePhoneProviderSendTestResponseContent - from .create_phone_template_response_content import CreatePhoneTemplateResponseContent - from .create_phone_template_test_notification_response_content import ( - CreatePhoneTemplateTestNotificationResponseContent, - ) - from .create_public_key_device_credential_response_content import CreatePublicKeyDeviceCredentialResponseContent - from .create_rate_limit_policy_response_content import CreateRateLimitPolicyResponseContent - from .create_resource_server_response_content import CreateResourceServerResponseContent - from .create_role_response_content import CreateRoleResponseContent - from .create_rule_response_content import CreateRuleResponseContent - from .create_scim_configuration_request_content import CreateScimConfigurationRequestContent - from .create_scim_configuration_response_content import CreateScimConfigurationResponseContent - from .create_scim_token_response_content import CreateScimTokenResponseContent - from .create_segment_response_content import CreateSegmentResponseContent - from .create_self_service_profile_response_content import CreateSelfServiceProfileResponseContent - from .create_self_service_profile_sso_ticket_response_content import ( - CreateSelfServiceProfileSsoTicketResponseContent, - ) - from .create_token_exchange_profile_response_content import CreateTokenExchangeProfileResponseContent - from .create_token_quota import CreateTokenQuota - from .create_user_attribute_profile_response_content import CreateUserAttributeProfileResponseContent - from .create_user_authentication_method_response_content import CreateUserAuthenticationMethodResponseContent - from .create_user_response_content import CreateUserResponseContent - from .create_variation_response_content import CreateVariationResponseContent - from .create_verifiable_credential_template_response_content import ( - CreateVerifiableCredentialTemplateResponseContent, - ) - from .create_verification_email_response_content import CreateVerificationEmailResponseContent - from .created_authentication_method_type_enum import CreatedAuthenticationMethodTypeEnum - from .created_user_authentication_method_type_enum import CreatedUserAuthenticationMethodTypeEnum - from .credential_device_type_enum import CredentialDeviceTypeEnum - from .credential_id import CredentialId - from .cross_app_access_requesting_app import CrossAppAccessRequestingApp - from .cross_app_access_resource_app import CrossAppAccessResourceApp - from .cross_app_access_resource_app_status_enum import CrossAppAccessResourceAppStatusEnum - from .csp_directives import CspDirectives - from .csp_flag import CspFlag - from .csp_flags import CspFlags - from .csp_policies import CspPolicies - from .csp_policy import CspPolicy - from .csp_policy_mode import CspPolicyMode - from .csp_policy_reporting import CspPolicyReporting - from .csp_report_to import CspReportTo - from .csp_report_to_endpoint import CspReportToEndpoint - from .csp_report_to_endpoints import CspReportToEndpoints - from .csp_reporting_endpoints import CspReportingEndpoints - from .csp_reporting_infrastructure import CspReportingInfrastructure - from .custom_domain import CustomDomain - from .custom_domain_custom_client_ip_header import CustomDomainCustomClientIpHeader - from .custom_domain_custom_client_ip_header_enum import CustomDomainCustomClientIpHeaderEnum - from .custom_domain_provisioning_type_enum import CustomDomainProvisioningTypeEnum - from .custom_domain_status_filter_enum import CustomDomainStatusFilterEnum - from .custom_domain_tls_policy_enum import CustomDomainTlsPolicyEnum - from .custom_domain_type_enum import CustomDomainTypeEnum - from .custom_domain_verification_method_enum import CustomDomainVerificationMethodEnum - from .custom_provider_configuration import CustomProviderConfiguration - from .custom_provider_credentials import CustomProviderCredentials - from .custom_provider_delivery_method_enum import CustomProviderDeliveryMethodEnum - from .custom_signing_key_algorithm_enum import CustomSigningKeyAlgorithmEnum - from .custom_signing_key_curve_enum import CustomSigningKeyCurveEnum - from .custom_signing_key_jwk import CustomSigningKeyJwk - from .custom_signing_key_operation_enum import CustomSigningKeyOperationEnum - from .custom_signing_key_type_enum import CustomSigningKeyTypeEnum - from .custom_signing_key_use_enum import CustomSigningKeyUseEnum - from .daily_stats import DailyStats - from .default_config_enum import DefaultConfigEnum - from .default_method_email_identifier_enum import DefaultMethodEmailIdentifierEnum - from .default_method_phone_number_identifier_enum import DefaultMethodPhoneNumberIdentifierEnum - from .default_token_quota import DefaultTokenQuota - from .delete_hook_secret_request_content import DeleteHookSecretRequestContent - from .delete_user_identity_response_content import DeleteUserIdentityResponseContent - from .delete_user_identity_response_content_item import DeleteUserIdentityResponseContentItem - from .deploy_action_response_content import DeployActionResponseContent - from .deploy_action_version_request_content import DeployActionVersionRequestContent - from .deploy_action_version_response_content import DeployActionVersionResponseContent - from .device_credential import DeviceCredential - from .device_credential_public_key_type_enum import DeviceCredentialPublicKeyTypeEnum - from .device_credential_type_enum import DeviceCredentialTypeEnum - from .directory_provisioning import DirectoryProvisioning - from .directory_provisioning_mapping_item import DirectoryProvisioningMappingItem - from .domain_certificate import DomainCertificate - from .domain_certificate_authority_enum import DomainCertificateAuthorityEnum - from .domain_certificate_status_enum import DomainCertificateStatusEnum - from .domain_metadata import DomainMetadata - from .domain_verification import DomainVerification - from .domain_verification_method import DomainVerificationMethod - from .domain_verification_method_name_enum import DomainVerificationMethodNameEnum - from .domain_verification_status_enum import DomainVerificationStatusEnum - from .email_attribute import EmailAttribute - from .email_attribute_identifier import EmailAttributeIdentifier - from .email_mailgun_region_enum import EmailMailgunRegionEnum - from .email_provider_credentials import EmailProviderCredentials - from .email_provider_credentials_schema import EmailProviderCredentialsSchema - from .email_provider_credentials_schema_access_key_id import EmailProviderCredentialsSchemaAccessKeyId - from .email_provider_credentials_schema_api_key import EmailProviderCredentialsSchemaApiKey - from .email_provider_credentials_schema_client_id import EmailProviderCredentialsSchemaClientId - from .email_provider_credentials_schema_connection_string import EmailProviderCredentialsSchemaConnectionString - from .email_provider_credentials_schema_smtp_host import EmailProviderCredentialsSchemaSmtpHost - from .email_provider_credentials_schema_three import EmailProviderCredentialsSchemaThree - from .email_provider_credentials_schema_zero import EmailProviderCredentialsSchemaZero - from .email_provider_name_enum import EmailProviderNameEnum - from .email_provider_settings import EmailProviderSettings - from .email_smtp_host import EmailSmtpHost - from .email_spark_post_region_enum import EmailSparkPostRegionEnum - from .email_specific_provider_settings_with_additional_properties import ( - EmailSpecificProviderSettingsWithAdditionalProperties, - ) - from .email_template_name_enum import EmailTemplateNameEnum - from .enabled_features_enum import EnabledFeaturesEnum - from .encryption_key import EncryptionKey - from .encryption_key_public_wrapping_algorithm import EncryptionKeyPublicWrappingAlgorithm - from .encryption_key_state import EncryptionKeyState - from .encryption_key_type import EncryptionKeyType - from .event_stream_action_configuration import EventStreamActionConfiguration - from .event_stream_action_destination import EventStreamActionDestination - from .event_stream_action_destination_type_enum import EventStreamActionDestinationTypeEnum - from .event_stream_action_response_content import EventStreamActionResponseContent - from .event_stream_cloud_event import EventStreamCloudEvent - from .event_stream_cloud_event_a_0_purpose_enum import EventStreamCloudEventA0PurposeEnum - from .event_stream_cloud_event_connection_created import EventStreamCloudEventConnectionCreated - from .event_stream_cloud_event_connection_created_cloud_event import ( - EventStreamCloudEventConnectionCreatedCloudEvent, - ) - from .event_stream_cloud_event_connection_created_cloud_event_type_enum import ( - EventStreamCloudEventConnectionCreatedCloudEventTypeEnum, - ) - from .event_stream_cloud_event_connection_created_data import EventStreamCloudEventConnectionCreatedData - from .event_stream_cloud_event_connection_created_object import EventStreamCloudEventConnectionCreatedObject - from .event_stream_cloud_event_connection_created_object_0 import EventStreamCloudEventConnectionCreatedObject0 - from .event_stream_cloud_event_connection_created_object_0_authentication import ( - EventStreamCloudEventConnectionCreatedObject0Authentication, - ) - from .event_stream_cloud_event_connection_created_object_0_connected_accounts import ( - EventStreamCloudEventConnectionCreatedObject0ConnectedAccounts, - ) - from .event_stream_cloud_event_connection_created_object_0_metadata import ( - EventStreamCloudEventConnectionCreatedObject0Metadata, - ) - from .event_stream_cloud_event_connection_created_object_0_options import ( - EventStreamCloudEventConnectionCreatedObject0Options, - ) - from .event_stream_cloud_event_connection_created_object_0_options_attribute_map import ( - EventStreamCloudEventConnectionCreatedObject0OptionsAttributeMap, - ) - from .event_stream_cloud_event_connection_created_object_0_options_attribute_map_attributes import ( - EventStreamCloudEventConnectionCreatedObject0OptionsAttributeMapAttributes, - ) - from .event_stream_cloud_event_connection_created_object_0_options_attribute_map_mapping_mode_enum import ( - EventStreamCloudEventConnectionCreatedObject0OptionsAttributeMapMappingModeEnum, - ) - from .event_stream_cloud_event_connection_created_object_0_options_connection_settings import ( - EventStreamCloudEventConnectionCreatedObject0OptionsConnectionSettings, - ) - from .event_stream_cloud_event_connection_created_object_0_options_connection_settings_pkce_enum import ( - EventStreamCloudEventConnectionCreatedObject0OptionsConnectionSettingsPkceEnum, - ) - from .event_stream_cloud_event_connection_created_object_0_options_dpop_signing_alg_enum import ( - EventStreamCloudEventConnectionCreatedObject0OptionsDpopSigningAlgEnum, - ) - from .event_stream_cloud_event_connection_created_object_0_options_federated_connections_access_tokens import ( - EventStreamCloudEventConnectionCreatedObject0OptionsFederatedConnectionsAccessTokens, - ) - from .event_stream_cloud_event_connection_created_object_0_options_id_token_signed_response_algs_item_enum import ( - EventStreamCloudEventConnectionCreatedObject0OptionsIdTokenSignedResponseAlgsItemEnum, - ) - from .event_stream_cloud_event_connection_created_object_0_options_oidc_metadata import ( - EventStreamCloudEventConnectionCreatedObject0OptionsOidcMetadata, - ) - from .event_stream_cloud_event_connection_created_object_0_options_schema_version_enum import ( - EventStreamCloudEventConnectionCreatedObject0OptionsSchemaVersionEnum, - ) - from .event_stream_cloud_event_connection_created_object_0_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionCreatedObject0OptionsSetUserRootAttributesEnum, - ) - from .event_stream_cloud_event_connection_created_object_0_options_token_endpoint_auth_method_enum import ( - EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointAuthMethodEnum, - ) - from .event_stream_cloud_event_connection_created_object_0_options_token_endpoint_auth_signing_alg_enum import ( - EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointAuthSigningAlgEnum, - ) - from .event_stream_cloud_event_connection_created_object_0_options_token_endpoint_jwtca_aud_format_enum import ( - EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointJwtcaAudFormatEnum, - ) - from .event_stream_cloud_event_connection_created_object_0_options_type_enum import ( - EventStreamCloudEventConnectionCreatedObject0OptionsTypeEnum, - ) - from .event_stream_cloud_event_connection_created_object_0_options_upstream_params import ( - EventStreamCloudEventConnectionCreatedObject0OptionsUpstreamParams, - ) - from .event_stream_cloud_event_connection_created_object_0_strategy_enum import ( - EventStreamCloudEventConnectionCreatedObject0StrategyEnum, - ) - from .event_stream_cloud_event_connection_created_object_1 import EventStreamCloudEventConnectionCreatedObject1 - from .event_stream_cloud_event_connection_created_object_1_authentication import ( - EventStreamCloudEventConnectionCreatedObject1Authentication, - ) - from .event_stream_cloud_event_connection_created_object_1_connected_accounts import ( - EventStreamCloudEventConnectionCreatedObject1ConnectedAccounts, - ) - from .event_stream_cloud_event_connection_created_object_1_metadata import ( - EventStreamCloudEventConnectionCreatedObject1Metadata, - ) - from .event_stream_cloud_event_connection_created_object_1_options import ( - EventStreamCloudEventConnectionCreatedObject1Options, - ) - from .event_stream_cloud_event_connection_created_object_1_options_attribute_map import ( - EventStreamCloudEventConnectionCreatedObject1OptionsAttributeMap, - ) - from .event_stream_cloud_event_connection_created_object_1_options_attribute_map_attributes import ( - EventStreamCloudEventConnectionCreatedObject1OptionsAttributeMapAttributes, - ) - from .event_stream_cloud_event_connection_created_object_1_options_attribute_map_mapping_mode_enum import ( - EventStreamCloudEventConnectionCreatedObject1OptionsAttributeMapMappingModeEnum, - ) - from .event_stream_cloud_event_connection_created_object_1_options_connection_settings import ( - EventStreamCloudEventConnectionCreatedObject1OptionsConnectionSettings, - ) - from .event_stream_cloud_event_connection_created_object_1_options_connection_settings_pkce_enum import ( - EventStreamCloudEventConnectionCreatedObject1OptionsConnectionSettingsPkceEnum, - ) - from .event_stream_cloud_event_connection_created_object_1_options_dpop_signing_alg_enum import ( - EventStreamCloudEventConnectionCreatedObject1OptionsDpopSigningAlgEnum, - ) - from .event_stream_cloud_event_connection_created_object_1_options_federated_connections_access_tokens import ( - EventStreamCloudEventConnectionCreatedObject1OptionsFederatedConnectionsAccessTokens, - ) - from .event_stream_cloud_event_connection_created_object_1_options_id_token_signed_response_algs_item_enum import ( - EventStreamCloudEventConnectionCreatedObject1OptionsIdTokenSignedResponseAlgsItemEnum, - ) - from .event_stream_cloud_event_connection_created_object_1_options_oidc_metadata import ( - EventStreamCloudEventConnectionCreatedObject1OptionsOidcMetadata, - ) - from .event_stream_cloud_event_connection_created_object_1_options_schema_version_enum import ( - EventStreamCloudEventConnectionCreatedObject1OptionsSchemaVersionEnum, - ) - from .event_stream_cloud_event_connection_created_object_1_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionCreatedObject1OptionsSetUserRootAttributesEnum, - ) - from .event_stream_cloud_event_connection_created_object_1_options_token_endpoint_auth_method_enum import ( - EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointAuthMethodEnum, - ) - from .event_stream_cloud_event_connection_created_object_1_options_token_endpoint_auth_signing_alg_enum import ( - EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointAuthSigningAlgEnum, - ) - from .event_stream_cloud_event_connection_created_object_1_options_token_endpoint_jwtca_aud_format_enum import ( - EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointJwtcaAudFormatEnum, - ) - from .event_stream_cloud_event_connection_created_object_1_options_type_enum import ( - EventStreamCloudEventConnectionCreatedObject1OptionsTypeEnum, - ) - from .event_stream_cloud_event_connection_created_object_1_options_upstream_params import ( - EventStreamCloudEventConnectionCreatedObject1OptionsUpstreamParams, - ) - from .event_stream_cloud_event_connection_created_object_1_strategy_enum import ( - EventStreamCloudEventConnectionCreatedObject1StrategyEnum, - ) - from .event_stream_cloud_event_connection_created_object_2 import EventStreamCloudEventConnectionCreatedObject2 - from .event_stream_cloud_event_connection_created_object_2_authentication import ( - EventStreamCloudEventConnectionCreatedObject2Authentication, - ) - from .event_stream_cloud_event_connection_created_object_2_connected_accounts import ( - EventStreamCloudEventConnectionCreatedObject2ConnectedAccounts, - ) - from .event_stream_cloud_event_connection_created_object_2_metadata import ( - EventStreamCloudEventConnectionCreatedObject2Metadata, - ) - from .event_stream_cloud_event_connection_created_object_2_options import ( - EventStreamCloudEventConnectionCreatedObject2Options, - ) - from .event_stream_cloud_event_connection_created_object_2_options_assertion_decryption_settings import ( - EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettings, - ) - from .event_stream_cloud_event_connection_created_object_2_options_assertion_decryption_settings_algorithm_profile_enum import ( - EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum, - ) - from .event_stream_cloud_event_connection_created_object_2_options_digest_algorithm_enum import ( - EventStreamCloudEventConnectionCreatedObject2OptionsDigestAlgorithmEnum, - ) - from .event_stream_cloud_event_connection_created_object_2_options_fields_map import ( - EventStreamCloudEventConnectionCreatedObject2OptionsFieldsMap, - ) - from .event_stream_cloud_event_connection_created_object_2_options_idpinitiated import ( - EventStreamCloudEventConnectionCreatedObject2OptionsIdpinitiated, - ) - from .event_stream_cloud_event_connection_created_object_2_options_idpinitiated_client_protocol_enum import ( - EventStreamCloudEventConnectionCreatedObject2OptionsIdpinitiatedClientProtocolEnum, - ) - from .event_stream_cloud_event_connection_created_object_2_options_oidc_metadata import ( - EventStreamCloudEventConnectionCreatedObject2OptionsOidcMetadata, - ) - from .event_stream_cloud_event_connection_created_object_2_options_protocol_binding_enum import ( - EventStreamCloudEventConnectionCreatedObject2OptionsProtocolBindingEnum, - ) - from .event_stream_cloud_event_connection_created_object_2_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionCreatedObject2OptionsSetUserRootAttributesEnum, - ) - from .event_stream_cloud_event_connection_created_object_2_options_signature_algorithm_enum import ( - EventStreamCloudEventConnectionCreatedObject2OptionsSignatureAlgorithmEnum, - ) - from .event_stream_cloud_event_connection_created_object_2_options_subject import ( - EventStreamCloudEventConnectionCreatedObject2OptionsSubject, - ) - from .event_stream_cloud_event_connection_created_object_2_options_upstream_params import ( - EventStreamCloudEventConnectionCreatedObject2OptionsUpstreamParams, - ) - from .event_stream_cloud_event_connection_created_object_2_strategy_enum import ( - EventStreamCloudEventConnectionCreatedObject2StrategyEnum, - ) - from .event_stream_cloud_event_connection_created_object_3 import EventStreamCloudEventConnectionCreatedObject3 - from .event_stream_cloud_event_connection_created_object_3_authentication import ( - EventStreamCloudEventConnectionCreatedObject3Authentication, - ) - from .event_stream_cloud_event_connection_created_object_3_connected_accounts import ( - EventStreamCloudEventConnectionCreatedObject3ConnectedAccounts, - ) - from .event_stream_cloud_event_connection_created_object_3_metadata import ( - EventStreamCloudEventConnectionCreatedObject3Metadata, - ) - from .event_stream_cloud_event_connection_created_object_3_options import ( - EventStreamCloudEventConnectionCreatedObject3Options, - ) - from .event_stream_cloud_event_connection_created_object_3_options_assertion_decryption_settings import ( - EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettings, - ) - from .event_stream_cloud_event_connection_created_object_3_options_assertion_decryption_settings_algorithm_profile_enum import ( - EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum, - ) - from .event_stream_cloud_event_connection_created_object_3_options_digest_algorithm_enum import ( - EventStreamCloudEventConnectionCreatedObject3OptionsDigestAlgorithmEnum, - ) - from .event_stream_cloud_event_connection_created_object_3_options_idpinitiated import ( - EventStreamCloudEventConnectionCreatedObject3OptionsIdpinitiated, - ) - from .event_stream_cloud_event_connection_created_object_3_options_idpinitiated_client_protocol_enum import ( - EventStreamCloudEventConnectionCreatedObject3OptionsIdpinitiatedClientProtocolEnum, - ) - from .event_stream_cloud_event_connection_created_object_3_options_protocol_binding_enum import ( - EventStreamCloudEventConnectionCreatedObject3OptionsProtocolBindingEnum, - ) - from .event_stream_cloud_event_connection_created_object_3_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionCreatedObject3OptionsSetUserRootAttributesEnum, - ) - from .event_stream_cloud_event_connection_created_object_3_options_signature_algorithm_enum import ( - EventStreamCloudEventConnectionCreatedObject3OptionsSignatureAlgorithmEnum, - ) - from .event_stream_cloud_event_connection_created_object_3_options_subject import ( - EventStreamCloudEventConnectionCreatedObject3OptionsSubject, - ) - from .event_stream_cloud_event_connection_created_object_3_options_upstream_params import ( - EventStreamCloudEventConnectionCreatedObject3OptionsUpstreamParams, - ) - from .event_stream_cloud_event_connection_created_object_3_strategy_enum import ( - EventStreamCloudEventConnectionCreatedObject3StrategyEnum, - ) - from .event_stream_cloud_event_connection_created_object_4 import EventStreamCloudEventConnectionCreatedObject4 - from .event_stream_cloud_event_connection_created_object_4_authentication import ( - EventStreamCloudEventConnectionCreatedObject4Authentication, - ) - from .event_stream_cloud_event_connection_created_object_4_connected_accounts import ( - EventStreamCloudEventConnectionCreatedObject4ConnectedAccounts, - ) - from .event_stream_cloud_event_connection_created_object_4_metadata import ( - EventStreamCloudEventConnectionCreatedObject4Metadata, - ) - from .event_stream_cloud_event_connection_created_object_4_options import ( - EventStreamCloudEventConnectionCreatedObject4Options, - ) - from .event_stream_cloud_event_connection_created_object_4_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionCreatedObject4OptionsSetUserRootAttributesEnum, - ) - from .event_stream_cloud_event_connection_created_object_4_options_should_trust_email_verified_connection_enum import ( - EventStreamCloudEventConnectionCreatedObject4OptionsShouldTrustEmailVerifiedConnectionEnum, - ) - from .event_stream_cloud_event_connection_created_object_4_options_upstream_params import ( - EventStreamCloudEventConnectionCreatedObject4OptionsUpstreamParams, - ) - from .event_stream_cloud_event_connection_created_object_4_strategy_enum import ( - EventStreamCloudEventConnectionCreatedObject4StrategyEnum, - ) - from .event_stream_cloud_event_connection_created_object_5 import EventStreamCloudEventConnectionCreatedObject5 - from .event_stream_cloud_event_connection_created_object_5_authentication import ( - EventStreamCloudEventConnectionCreatedObject5Authentication, - ) - from .event_stream_cloud_event_connection_created_object_5_connected_accounts import ( - EventStreamCloudEventConnectionCreatedObject5ConnectedAccounts, - ) - from .event_stream_cloud_event_connection_created_object_5_metadata import ( - EventStreamCloudEventConnectionCreatedObject5Metadata, - ) - from .event_stream_cloud_event_connection_created_object_5_options import ( - EventStreamCloudEventConnectionCreatedObject5Options, - ) - from .event_stream_cloud_event_connection_created_object_5_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionCreatedObject5OptionsSetUserRootAttributesEnum, - ) - from .event_stream_cloud_event_connection_created_object_5_options_upstream_params import ( - EventStreamCloudEventConnectionCreatedObject5OptionsUpstreamParams, - ) - from .event_stream_cloud_event_connection_created_object_5_strategy_enum import ( - EventStreamCloudEventConnectionCreatedObject5StrategyEnum, - ) - from .event_stream_cloud_event_connection_created_object_6 import EventStreamCloudEventConnectionCreatedObject6 - from .event_stream_cloud_event_connection_created_object_6_authentication import ( - EventStreamCloudEventConnectionCreatedObject6Authentication, - ) - from .event_stream_cloud_event_connection_created_object_6_connected_accounts import ( - EventStreamCloudEventConnectionCreatedObject6ConnectedAccounts, - ) - from .event_stream_cloud_event_connection_created_object_6_metadata import ( - EventStreamCloudEventConnectionCreatedObject6Metadata, - ) - from .event_stream_cloud_event_connection_created_object_6_options import ( - EventStreamCloudEventConnectionCreatedObject6Options, - ) - from .event_stream_cloud_event_connection_created_object_6_options_federated_connections_access_tokens import ( - EventStreamCloudEventConnectionCreatedObject6OptionsFederatedConnectionsAccessTokens, - ) - from .event_stream_cloud_event_connection_created_object_6_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionCreatedObject6OptionsSetUserRootAttributesEnum, - ) - from .event_stream_cloud_event_connection_created_object_6_options_upstream_params import ( - EventStreamCloudEventConnectionCreatedObject6OptionsUpstreamParams, - ) - from .event_stream_cloud_event_connection_created_object_6_strategy_enum import ( - EventStreamCloudEventConnectionCreatedObject6StrategyEnum, - ) - from .event_stream_cloud_event_connection_created_object_7 import EventStreamCloudEventConnectionCreatedObject7 - from .event_stream_cloud_event_connection_created_object_7_authentication import ( - EventStreamCloudEventConnectionCreatedObject7Authentication, - ) - from .event_stream_cloud_event_connection_created_object_7_connected_accounts import ( - EventStreamCloudEventConnectionCreatedObject7ConnectedAccounts, - ) - from .event_stream_cloud_event_connection_created_object_7_metadata import ( - EventStreamCloudEventConnectionCreatedObject7Metadata, - ) - from .event_stream_cloud_event_connection_created_object_7_options import ( - EventStreamCloudEventConnectionCreatedObject7Options, - ) - from .event_stream_cloud_event_connection_created_object_7_options_federated_connections_access_tokens import ( - EventStreamCloudEventConnectionCreatedObject7OptionsFederatedConnectionsAccessTokens, - ) - from .event_stream_cloud_event_connection_created_object_7_options_identity_api_enum import ( - EventStreamCloudEventConnectionCreatedObject7OptionsIdentityApiEnum, - ) - from .event_stream_cloud_event_connection_created_object_7_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionCreatedObject7OptionsSetUserRootAttributesEnum, - ) - from .event_stream_cloud_event_connection_created_object_7_options_should_trust_email_verified_connection_enum import ( - EventStreamCloudEventConnectionCreatedObject7OptionsShouldTrustEmailVerifiedConnectionEnum, - ) - from .event_stream_cloud_event_connection_created_object_7_options_tenant_domain_one import ( - EventStreamCloudEventConnectionCreatedObject7OptionsTenantDomainOne, - ) - from .event_stream_cloud_event_connection_created_object_7_options_upstream_params import ( - EventStreamCloudEventConnectionCreatedObject7OptionsUpstreamParams, - ) - from .event_stream_cloud_event_connection_created_object_7_options_userid_attribute_enum import ( - EventStreamCloudEventConnectionCreatedObject7OptionsUseridAttributeEnum, - ) - from .event_stream_cloud_event_connection_created_object_7_options_waad_protocol_enum import ( - EventStreamCloudEventConnectionCreatedObject7OptionsWaadProtocolEnum, - ) - from .event_stream_cloud_event_connection_created_object_7_strategy_enum import ( - EventStreamCloudEventConnectionCreatedObject7StrategyEnum, - ) - from .event_stream_cloud_event_connection_created_previous_object import ( - EventStreamCloudEventConnectionCreatedPreviousObject, - ) - from .event_stream_cloud_event_connection_created_previous_object_0 import ( - EventStreamCloudEventConnectionCreatedPreviousObject0, - ) - from .event_stream_cloud_event_connection_created_previous_object_0_authentication import ( - EventStreamCloudEventConnectionCreatedPreviousObject0Authentication, - ) - from .event_stream_cloud_event_connection_created_previous_object_0_connected_accounts import ( - EventStreamCloudEventConnectionCreatedPreviousObject0ConnectedAccounts, - ) - from .event_stream_cloud_event_connection_created_previous_object_0_metadata import ( - EventStreamCloudEventConnectionCreatedPreviousObject0Metadata, - ) - from .event_stream_cloud_event_connection_created_previous_object_0_options import ( - EventStreamCloudEventConnectionCreatedPreviousObject0Options, - ) - from .event_stream_cloud_event_connection_created_previous_object_0_options_attribute_map import ( - EventStreamCloudEventConnectionCreatedPreviousObject0OptionsAttributeMap, - ) - from .event_stream_cloud_event_connection_created_previous_object_0_options_attribute_map_attributes import ( - EventStreamCloudEventConnectionCreatedPreviousObject0OptionsAttributeMapAttributes, - ) - from .event_stream_cloud_event_connection_created_previous_object_0_options_attribute_map_mapping_mode_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject0OptionsAttributeMapMappingModeEnum, - ) - from .event_stream_cloud_event_connection_created_previous_object_0_options_connection_settings import ( - EventStreamCloudEventConnectionCreatedPreviousObject0OptionsConnectionSettings, - ) - from .event_stream_cloud_event_connection_created_previous_object_0_options_connection_settings_pkce_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject0OptionsConnectionSettingsPkceEnum, - ) - from .event_stream_cloud_event_connection_created_previous_object_0_options_dpop_signing_alg_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject0OptionsDpopSigningAlgEnum, - ) - from .event_stream_cloud_event_connection_created_previous_object_0_options_federated_connections_access_tokens import ( - EventStreamCloudEventConnectionCreatedPreviousObject0OptionsFederatedConnectionsAccessTokens, - ) - from .event_stream_cloud_event_connection_created_previous_object_0_options_id_token_signed_response_algs_item_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum, - ) - from .event_stream_cloud_event_connection_created_previous_object_0_options_oidc_metadata import ( - EventStreamCloudEventConnectionCreatedPreviousObject0OptionsOidcMetadata, - ) - from .event_stream_cloud_event_connection_created_previous_object_0_options_schema_version_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject0OptionsSchemaVersionEnum, - ) - from .event_stream_cloud_event_connection_created_previous_object_0_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject0OptionsSetUserRootAttributesEnum, - ) - from .event_stream_cloud_event_connection_created_previous_object_0_options_token_endpoint_auth_method_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTokenEndpointAuthMethodEnum, - ) - from .event_stream_cloud_event_connection_created_previous_object_0_options_token_endpoint_auth_signing_alg_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum, - ) - from .event_stream_cloud_event_connection_created_previous_object_0_options_token_endpoint_jwtca_aud_format_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTokenEndpointJwtcaAudFormatEnum, - ) - from .event_stream_cloud_event_connection_created_previous_object_0_options_type_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTypeEnum, - ) - from .event_stream_cloud_event_connection_created_previous_object_0_options_upstream_params import ( - EventStreamCloudEventConnectionCreatedPreviousObject0OptionsUpstreamParams, - ) - from .event_stream_cloud_event_connection_created_previous_object_0_strategy_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject0StrategyEnum, - ) - from .event_stream_cloud_event_connection_created_previous_object_1 import ( - EventStreamCloudEventConnectionCreatedPreviousObject1, - ) - from .event_stream_cloud_event_connection_created_previous_object_1_authentication import ( - EventStreamCloudEventConnectionCreatedPreviousObject1Authentication, - ) - from .event_stream_cloud_event_connection_created_previous_object_1_connected_accounts import ( - EventStreamCloudEventConnectionCreatedPreviousObject1ConnectedAccounts, - ) - from .event_stream_cloud_event_connection_created_previous_object_1_metadata import ( - EventStreamCloudEventConnectionCreatedPreviousObject1Metadata, - ) - from .event_stream_cloud_event_connection_created_previous_object_1_options import ( - EventStreamCloudEventConnectionCreatedPreviousObject1Options, - ) - from .event_stream_cloud_event_connection_created_previous_object_1_options_attribute_map import ( - EventStreamCloudEventConnectionCreatedPreviousObject1OptionsAttributeMap, - ) - from .event_stream_cloud_event_connection_created_previous_object_1_options_attribute_map_attributes import ( - EventStreamCloudEventConnectionCreatedPreviousObject1OptionsAttributeMapAttributes, - ) - from .event_stream_cloud_event_connection_created_previous_object_1_options_attribute_map_mapping_mode_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject1OptionsAttributeMapMappingModeEnum, - ) - from .event_stream_cloud_event_connection_created_previous_object_1_options_connection_settings import ( - EventStreamCloudEventConnectionCreatedPreviousObject1OptionsConnectionSettings, - ) - from .event_stream_cloud_event_connection_created_previous_object_1_options_connection_settings_pkce_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject1OptionsConnectionSettingsPkceEnum, - ) - from .event_stream_cloud_event_connection_created_previous_object_1_options_dpop_signing_alg_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject1OptionsDpopSigningAlgEnum, - ) - from .event_stream_cloud_event_connection_created_previous_object_1_options_federated_connections_access_tokens import ( - EventStreamCloudEventConnectionCreatedPreviousObject1OptionsFederatedConnectionsAccessTokens, - ) - from .event_stream_cloud_event_connection_created_previous_object_1_options_id_token_signed_response_algs_item_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum, - ) - from .event_stream_cloud_event_connection_created_previous_object_1_options_oidc_metadata import ( - EventStreamCloudEventConnectionCreatedPreviousObject1OptionsOidcMetadata, - ) - from .event_stream_cloud_event_connection_created_previous_object_1_options_schema_version_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject1OptionsSchemaVersionEnum, - ) - from .event_stream_cloud_event_connection_created_previous_object_1_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject1OptionsSetUserRootAttributesEnum, - ) - from .event_stream_cloud_event_connection_created_previous_object_1_options_token_endpoint_auth_method_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTokenEndpointAuthMethodEnum, - ) - from .event_stream_cloud_event_connection_created_previous_object_1_options_token_endpoint_auth_signing_alg_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum, - ) - from .event_stream_cloud_event_connection_created_previous_object_1_options_token_endpoint_jwtca_aud_format_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTokenEndpointJwtcaAudFormatEnum, - ) - from .event_stream_cloud_event_connection_created_previous_object_1_options_type_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTypeEnum, - ) - from .event_stream_cloud_event_connection_created_previous_object_1_options_upstream_params import ( - EventStreamCloudEventConnectionCreatedPreviousObject1OptionsUpstreamParams, - ) - from .event_stream_cloud_event_connection_created_previous_object_1_strategy_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject1StrategyEnum, - ) - from .event_stream_cloud_event_connection_created_previous_object_2 import ( - EventStreamCloudEventConnectionCreatedPreviousObject2, - ) - from .event_stream_cloud_event_connection_created_previous_object_2_authentication import ( - EventStreamCloudEventConnectionCreatedPreviousObject2Authentication, - ) - from .event_stream_cloud_event_connection_created_previous_object_2_connected_accounts import ( - EventStreamCloudEventConnectionCreatedPreviousObject2ConnectedAccounts, - ) - from .event_stream_cloud_event_connection_created_previous_object_2_metadata import ( - EventStreamCloudEventConnectionCreatedPreviousObject2Metadata, - ) - from .event_stream_cloud_event_connection_created_previous_object_2_options import ( - EventStreamCloudEventConnectionCreatedPreviousObject2Options, - ) - from .event_stream_cloud_event_connection_created_previous_object_2_options_assertion_decryption_settings import ( - EventStreamCloudEventConnectionCreatedPreviousObject2OptionsAssertionDecryptionSettings, - ) - from .event_stream_cloud_event_connection_created_previous_object_2_options_assertion_decryption_settings_algorithm_profile_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum, - ) - from .event_stream_cloud_event_connection_created_previous_object_2_options_digest_algorithm_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject2OptionsDigestAlgorithmEnum, - ) - from .event_stream_cloud_event_connection_created_previous_object_2_options_fields_map import ( - EventStreamCloudEventConnectionCreatedPreviousObject2OptionsFieldsMap, - ) - from .event_stream_cloud_event_connection_created_previous_object_2_options_idpinitiated import ( - EventStreamCloudEventConnectionCreatedPreviousObject2OptionsIdpinitiated, - ) - from .event_stream_cloud_event_connection_created_previous_object_2_options_idpinitiated_client_protocol_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject2OptionsIdpinitiatedClientProtocolEnum, - ) - from .event_stream_cloud_event_connection_created_previous_object_2_options_oidc_metadata import ( - EventStreamCloudEventConnectionCreatedPreviousObject2OptionsOidcMetadata, - ) - from .event_stream_cloud_event_connection_created_previous_object_2_options_protocol_binding_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject2OptionsProtocolBindingEnum, - ) - from .event_stream_cloud_event_connection_created_previous_object_2_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject2OptionsSetUserRootAttributesEnum, - ) - from .event_stream_cloud_event_connection_created_previous_object_2_options_signature_algorithm_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject2OptionsSignatureAlgorithmEnum, - ) - from .event_stream_cloud_event_connection_created_previous_object_2_options_subject import ( - EventStreamCloudEventConnectionCreatedPreviousObject2OptionsSubject, - ) - from .event_stream_cloud_event_connection_created_previous_object_2_options_upstream_params import ( - EventStreamCloudEventConnectionCreatedPreviousObject2OptionsUpstreamParams, - ) - from .event_stream_cloud_event_connection_created_previous_object_2_strategy_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject2StrategyEnum, - ) - from .event_stream_cloud_event_connection_created_previous_object_3 import ( - EventStreamCloudEventConnectionCreatedPreviousObject3, - ) - from .event_stream_cloud_event_connection_created_previous_object_3_authentication import ( - EventStreamCloudEventConnectionCreatedPreviousObject3Authentication, - ) - from .event_stream_cloud_event_connection_created_previous_object_3_connected_accounts import ( - EventStreamCloudEventConnectionCreatedPreviousObject3ConnectedAccounts, - ) - from .event_stream_cloud_event_connection_created_previous_object_3_metadata import ( - EventStreamCloudEventConnectionCreatedPreviousObject3Metadata, - ) - from .event_stream_cloud_event_connection_created_previous_object_3_options import ( - EventStreamCloudEventConnectionCreatedPreviousObject3Options, - ) - from .event_stream_cloud_event_connection_created_previous_object_3_options_assertion_decryption_settings import ( - EventStreamCloudEventConnectionCreatedPreviousObject3OptionsAssertionDecryptionSettings, - ) - from .event_stream_cloud_event_connection_created_previous_object_3_options_assertion_decryption_settings_algorithm_profile_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum, - ) - from .event_stream_cloud_event_connection_created_previous_object_3_options_digest_algorithm_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject3OptionsDigestAlgorithmEnum, - ) - from .event_stream_cloud_event_connection_created_previous_object_3_options_idpinitiated import ( - EventStreamCloudEventConnectionCreatedPreviousObject3OptionsIdpinitiated, - ) - from .event_stream_cloud_event_connection_created_previous_object_3_options_idpinitiated_client_protocol_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject3OptionsIdpinitiatedClientProtocolEnum, - ) - from .event_stream_cloud_event_connection_created_previous_object_3_options_protocol_binding_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject3OptionsProtocolBindingEnum, - ) - from .event_stream_cloud_event_connection_created_previous_object_3_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject3OptionsSetUserRootAttributesEnum, - ) - from .event_stream_cloud_event_connection_created_previous_object_3_options_signature_algorithm_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject3OptionsSignatureAlgorithmEnum, - ) - from .event_stream_cloud_event_connection_created_previous_object_3_options_subject import ( - EventStreamCloudEventConnectionCreatedPreviousObject3OptionsSubject, - ) - from .event_stream_cloud_event_connection_created_previous_object_3_options_upstream_params import ( - EventStreamCloudEventConnectionCreatedPreviousObject3OptionsUpstreamParams, - ) - from .event_stream_cloud_event_connection_created_previous_object_3_strategy_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject3StrategyEnum, - ) - from .event_stream_cloud_event_connection_created_previous_object_4 import ( - EventStreamCloudEventConnectionCreatedPreviousObject4, - ) - from .event_stream_cloud_event_connection_created_previous_object_4_authentication import ( - EventStreamCloudEventConnectionCreatedPreviousObject4Authentication, - ) - from .event_stream_cloud_event_connection_created_previous_object_4_connected_accounts import ( - EventStreamCloudEventConnectionCreatedPreviousObject4ConnectedAccounts, - ) - from .event_stream_cloud_event_connection_created_previous_object_4_metadata import ( - EventStreamCloudEventConnectionCreatedPreviousObject4Metadata, - ) - from .event_stream_cloud_event_connection_created_previous_object_4_options import ( - EventStreamCloudEventConnectionCreatedPreviousObject4Options, - ) - from .event_stream_cloud_event_connection_created_previous_object_4_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject4OptionsSetUserRootAttributesEnum, - ) - from .event_stream_cloud_event_connection_created_previous_object_4_options_should_trust_email_verified_connection_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject4OptionsShouldTrustEmailVerifiedConnectionEnum, - ) - from .event_stream_cloud_event_connection_created_previous_object_4_options_upstream_params import ( - EventStreamCloudEventConnectionCreatedPreviousObject4OptionsUpstreamParams, - ) - from .event_stream_cloud_event_connection_created_previous_object_4_strategy_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject4StrategyEnum, - ) - from .event_stream_cloud_event_connection_created_previous_object_5 import ( - EventStreamCloudEventConnectionCreatedPreviousObject5, - ) - from .event_stream_cloud_event_connection_created_previous_object_5_authentication import ( - EventStreamCloudEventConnectionCreatedPreviousObject5Authentication, - ) - from .event_stream_cloud_event_connection_created_previous_object_5_connected_accounts import ( - EventStreamCloudEventConnectionCreatedPreviousObject5ConnectedAccounts, - ) - from .event_stream_cloud_event_connection_created_previous_object_5_metadata import ( - EventStreamCloudEventConnectionCreatedPreviousObject5Metadata, - ) - from .event_stream_cloud_event_connection_created_previous_object_5_options import ( - EventStreamCloudEventConnectionCreatedPreviousObject5Options, - ) - from .event_stream_cloud_event_connection_created_previous_object_5_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject5OptionsSetUserRootAttributesEnum, - ) - from .event_stream_cloud_event_connection_created_previous_object_5_options_upstream_params import ( - EventStreamCloudEventConnectionCreatedPreviousObject5OptionsUpstreamParams, - ) - from .event_stream_cloud_event_connection_created_previous_object_5_strategy_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject5StrategyEnum, - ) - from .event_stream_cloud_event_connection_created_previous_object_6 import ( - EventStreamCloudEventConnectionCreatedPreviousObject6, - ) - from .event_stream_cloud_event_connection_created_previous_object_6_authentication import ( - EventStreamCloudEventConnectionCreatedPreviousObject6Authentication, - ) - from .event_stream_cloud_event_connection_created_previous_object_6_connected_accounts import ( - EventStreamCloudEventConnectionCreatedPreviousObject6ConnectedAccounts, - ) - from .event_stream_cloud_event_connection_created_previous_object_6_metadata import ( - EventStreamCloudEventConnectionCreatedPreviousObject6Metadata, - ) - from .event_stream_cloud_event_connection_created_previous_object_6_options import ( - EventStreamCloudEventConnectionCreatedPreviousObject6Options, - ) - from .event_stream_cloud_event_connection_created_previous_object_6_options_federated_connections_access_tokens import ( - EventStreamCloudEventConnectionCreatedPreviousObject6OptionsFederatedConnectionsAccessTokens, - ) - from .event_stream_cloud_event_connection_created_previous_object_6_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject6OptionsSetUserRootAttributesEnum, - ) - from .event_stream_cloud_event_connection_created_previous_object_6_options_upstream_params import ( - EventStreamCloudEventConnectionCreatedPreviousObject6OptionsUpstreamParams, - ) - from .event_stream_cloud_event_connection_created_previous_object_6_strategy_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject6StrategyEnum, - ) - from .event_stream_cloud_event_connection_created_previous_object_7 import ( - EventStreamCloudEventConnectionCreatedPreviousObject7, - ) - from .event_stream_cloud_event_connection_created_previous_object_7_authentication import ( - EventStreamCloudEventConnectionCreatedPreviousObject7Authentication, - ) - from .event_stream_cloud_event_connection_created_previous_object_7_connected_accounts import ( - EventStreamCloudEventConnectionCreatedPreviousObject7ConnectedAccounts, - ) - from .event_stream_cloud_event_connection_created_previous_object_7_metadata import ( - EventStreamCloudEventConnectionCreatedPreviousObject7Metadata, - ) - from .event_stream_cloud_event_connection_created_previous_object_7_options import ( - EventStreamCloudEventConnectionCreatedPreviousObject7Options, - ) - from .event_stream_cloud_event_connection_created_previous_object_7_options_federated_connections_access_tokens import ( - EventStreamCloudEventConnectionCreatedPreviousObject7OptionsFederatedConnectionsAccessTokens, - ) - from .event_stream_cloud_event_connection_created_previous_object_7_options_identity_api_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject7OptionsIdentityApiEnum, - ) - from .event_stream_cloud_event_connection_created_previous_object_7_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject7OptionsSetUserRootAttributesEnum, - ) - from .event_stream_cloud_event_connection_created_previous_object_7_options_should_trust_email_verified_connection_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum, - ) - from .event_stream_cloud_event_connection_created_previous_object_7_options_tenant_domain_one import ( - EventStreamCloudEventConnectionCreatedPreviousObject7OptionsTenantDomainOne, - ) - from .event_stream_cloud_event_connection_created_previous_object_7_options_upstream_params import ( - EventStreamCloudEventConnectionCreatedPreviousObject7OptionsUpstreamParams, - ) - from .event_stream_cloud_event_connection_created_previous_object_7_options_userid_attribute_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject7OptionsUseridAttributeEnum, - ) - from .event_stream_cloud_event_connection_created_previous_object_7_options_waad_protocol_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject7OptionsWaadProtocolEnum, - ) - from .event_stream_cloud_event_connection_created_previous_object_7_strategy_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject7StrategyEnum, - ) - from .event_stream_cloud_event_connection_created_type_enum import EventStreamCloudEventConnectionCreatedTypeEnum - from .event_stream_cloud_event_connection_deleted import EventStreamCloudEventConnectionDeleted - from .event_stream_cloud_event_connection_deleted_cloud_event import ( - EventStreamCloudEventConnectionDeletedCloudEvent, - ) - from .event_stream_cloud_event_connection_deleted_cloud_event_type_enum import ( - EventStreamCloudEventConnectionDeletedCloudEventTypeEnum, - ) - from .event_stream_cloud_event_connection_deleted_data import EventStreamCloudEventConnectionDeletedData - from .event_stream_cloud_event_connection_deleted_object import EventStreamCloudEventConnectionDeletedObject - from .event_stream_cloud_event_connection_deleted_object_0 import EventStreamCloudEventConnectionDeletedObject0 - from .event_stream_cloud_event_connection_deleted_object_0_authentication import ( - EventStreamCloudEventConnectionDeletedObject0Authentication, - ) - from .event_stream_cloud_event_connection_deleted_object_0_connected_accounts import ( - EventStreamCloudEventConnectionDeletedObject0ConnectedAccounts, - ) - from .event_stream_cloud_event_connection_deleted_object_0_metadata import ( - EventStreamCloudEventConnectionDeletedObject0Metadata, - ) - from .event_stream_cloud_event_connection_deleted_object_0_options import ( - EventStreamCloudEventConnectionDeletedObject0Options, - ) - from .event_stream_cloud_event_connection_deleted_object_0_options_attribute_map import ( - EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMap, - ) - from .event_stream_cloud_event_connection_deleted_object_0_options_attribute_map_attributes import ( - EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMapAttributes, - ) - from .event_stream_cloud_event_connection_deleted_object_0_options_attribute_map_mapping_mode_enum import ( - EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMapMappingModeEnum, - ) - from .event_stream_cloud_event_connection_deleted_object_0_options_connection_settings import ( - EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettings, - ) - from .event_stream_cloud_event_connection_deleted_object_0_options_connection_settings_pkce_enum import ( - EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettingsPkceEnum, - ) - from .event_stream_cloud_event_connection_deleted_object_0_options_dpop_signing_alg_enum import ( - EventStreamCloudEventConnectionDeletedObject0OptionsDpopSigningAlgEnum, - ) - from .event_stream_cloud_event_connection_deleted_object_0_options_federated_connections_access_tokens import ( - EventStreamCloudEventConnectionDeletedObject0OptionsFederatedConnectionsAccessTokens, - ) - from .event_stream_cloud_event_connection_deleted_object_0_options_id_token_signed_response_algs_item_enum import ( - EventStreamCloudEventConnectionDeletedObject0OptionsIdTokenSignedResponseAlgsItemEnum, - ) - from .event_stream_cloud_event_connection_deleted_object_0_options_oidc_metadata import ( - EventStreamCloudEventConnectionDeletedObject0OptionsOidcMetadata, - ) - from .event_stream_cloud_event_connection_deleted_object_0_options_schema_version_enum import ( - EventStreamCloudEventConnectionDeletedObject0OptionsSchemaVersionEnum, - ) - from .event_stream_cloud_event_connection_deleted_object_0_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionDeletedObject0OptionsSetUserRootAttributesEnum, - ) - from .event_stream_cloud_event_connection_deleted_object_0_options_token_endpoint_auth_method_enum import ( - EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthMethodEnum, - ) - from .event_stream_cloud_event_connection_deleted_object_0_options_token_endpoint_auth_signing_alg_enum import ( - EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthSigningAlgEnum, - ) - from .event_stream_cloud_event_connection_deleted_object_0_options_token_endpoint_jwtca_aud_format_enum import ( - EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointJwtcaAudFormatEnum, - ) - from .event_stream_cloud_event_connection_deleted_object_0_options_type_enum import ( - EventStreamCloudEventConnectionDeletedObject0OptionsTypeEnum, - ) - from .event_stream_cloud_event_connection_deleted_object_0_options_upstream_params import ( - EventStreamCloudEventConnectionDeletedObject0OptionsUpstreamParams, - ) - from .event_stream_cloud_event_connection_deleted_object_0_strategy_enum import ( - EventStreamCloudEventConnectionDeletedObject0StrategyEnum, - ) - from .event_stream_cloud_event_connection_deleted_object_1 import EventStreamCloudEventConnectionDeletedObject1 - from .event_stream_cloud_event_connection_deleted_object_1_authentication import ( - EventStreamCloudEventConnectionDeletedObject1Authentication, - ) - from .event_stream_cloud_event_connection_deleted_object_1_connected_accounts import ( - EventStreamCloudEventConnectionDeletedObject1ConnectedAccounts, - ) - from .event_stream_cloud_event_connection_deleted_object_1_metadata import ( - EventStreamCloudEventConnectionDeletedObject1Metadata, - ) - from .event_stream_cloud_event_connection_deleted_object_1_options import ( - EventStreamCloudEventConnectionDeletedObject1Options, - ) - from .event_stream_cloud_event_connection_deleted_object_1_options_attribute_map import ( - EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMap, - ) - from .event_stream_cloud_event_connection_deleted_object_1_options_attribute_map_attributes import ( - EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMapAttributes, - ) - from .event_stream_cloud_event_connection_deleted_object_1_options_attribute_map_mapping_mode_enum import ( - EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMapMappingModeEnum, - ) - from .event_stream_cloud_event_connection_deleted_object_1_options_connection_settings import ( - EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettings, - ) - from .event_stream_cloud_event_connection_deleted_object_1_options_connection_settings_pkce_enum import ( - EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettingsPkceEnum, - ) - from .event_stream_cloud_event_connection_deleted_object_1_options_dpop_signing_alg_enum import ( - EventStreamCloudEventConnectionDeletedObject1OptionsDpopSigningAlgEnum, - ) - from .event_stream_cloud_event_connection_deleted_object_1_options_federated_connections_access_tokens import ( - EventStreamCloudEventConnectionDeletedObject1OptionsFederatedConnectionsAccessTokens, - ) - from .event_stream_cloud_event_connection_deleted_object_1_options_id_token_signed_response_algs_item_enum import ( - EventStreamCloudEventConnectionDeletedObject1OptionsIdTokenSignedResponseAlgsItemEnum, - ) - from .event_stream_cloud_event_connection_deleted_object_1_options_oidc_metadata import ( - EventStreamCloudEventConnectionDeletedObject1OptionsOidcMetadata, - ) - from .event_stream_cloud_event_connection_deleted_object_1_options_schema_version_enum import ( - EventStreamCloudEventConnectionDeletedObject1OptionsSchemaVersionEnum, - ) - from .event_stream_cloud_event_connection_deleted_object_1_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionDeletedObject1OptionsSetUserRootAttributesEnum, - ) - from .event_stream_cloud_event_connection_deleted_object_1_options_token_endpoint_auth_method_enum import ( - EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthMethodEnum, - ) - from .event_stream_cloud_event_connection_deleted_object_1_options_token_endpoint_auth_signing_alg_enum import ( - EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthSigningAlgEnum, - ) - from .event_stream_cloud_event_connection_deleted_object_1_options_token_endpoint_jwtca_aud_format_enum import ( - EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointJwtcaAudFormatEnum, - ) - from .event_stream_cloud_event_connection_deleted_object_1_options_type_enum import ( - EventStreamCloudEventConnectionDeletedObject1OptionsTypeEnum, - ) - from .event_stream_cloud_event_connection_deleted_object_1_options_upstream_params import ( - EventStreamCloudEventConnectionDeletedObject1OptionsUpstreamParams, - ) - from .event_stream_cloud_event_connection_deleted_object_1_strategy_enum import ( - EventStreamCloudEventConnectionDeletedObject1StrategyEnum, - ) - from .event_stream_cloud_event_connection_deleted_object_2 import EventStreamCloudEventConnectionDeletedObject2 - from .event_stream_cloud_event_connection_deleted_object_2_authentication import ( - EventStreamCloudEventConnectionDeletedObject2Authentication, - ) - from .event_stream_cloud_event_connection_deleted_object_2_connected_accounts import ( - EventStreamCloudEventConnectionDeletedObject2ConnectedAccounts, - ) - from .event_stream_cloud_event_connection_deleted_object_2_metadata import ( - EventStreamCloudEventConnectionDeletedObject2Metadata, - ) - from .event_stream_cloud_event_connection_deleted_object_2_options import ( - EventStreamCloudEventConnectionDeletedObject2Options, - ) - from .event_stream_cloud_event_connection_deleted_object_2_options_assertion_decryption_settings import ( - EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettings, - ) - from .event_stream_cloud_event_connection_deleted_object_2_options_assertion_decryption_settings_algorithm_profile_enum import ( - EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum, - ) - from .event_stream_cloud_event_connection_deleted_object_2_options_digest_algorithm_enum import ( - EventStreamCloudEventConnectionDeletedObject2OptionsDigestAlgorithmEnum, - ) - from .event_stream_cloud_event_connection_deleted_object_2_options_fields_map import ( - EventStreamCloudEventConnectionDeletedObject2OptionsFieldsMap, - ) - from .event_stream_cloud_event_connection_deleted_object_2_options_idpinitiated import ( - EventStreamCloudEventConnectionDeletedObject2OptionsIdpinitiated, - ) - from .event_stream_cloud_event_connection_deleted_object_2_options_idpinitiated_client_protocol_enum import ( - EventStreamCloudEventConnectionDeletedObject2OptionsIdpinitiatedClientProtocolEnum, - ) - from .event_stream_cloud_event_connection_deleted_object_2_options_oidc_metadata import ( - EventStreamCloudEventConnectionDeletedObject2OptionsOidcMetadata, - ) - from .event_stream_cloud_event_connection_deleted_object_2_options_protocol_binding_enum import ( - EventStreamCloudEventConnectionDeletedObject2OptionsProtocolBindingEnum, - ) - from .event_stream_cloud_event_connection_deleted_object_2_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionDeletedObject2OptionsSetUserRootAttributesEnum, - ) - from .event_stream_cloud_event_connection_deleted_object_2_options_signature_algorithm_enum import ( - EventStreamCloudEventConnectionDeletedObject2OptionsSignatureAlgorithmEnum, - ) - from .event_stream_cloud_event_connection_deleted_object_2_options_subject import ( - EventStreamCloudEventConnectionDeletedObject2OptionsSubject, - ) - from .event_stream_cloud_event_connection_deleted_object_2_options_upstream_params import ( - EventStreamCloudEventConnectionDeletedObject2OptionsUpstreamParams, - ) - from .event_stream_cloud_event_connection_deleted_object_2_strategy_enum import ( - EventStreamCloudEventConnectionDeletedObject2StrategyEnum, - ) - from .event_stream_cloud_event_connection_deleted_object_3 import EventStreamCloudEventConnectionDeletedObject3 - from .event_stream_cloud_event_connection_deleted_object_3_authentication import ( - EventStreamCloudEventConnectionDeletedObject3Authentication, - ) - from .event_stream_cloud_event_connection_deleted_object_3_connected_accounts import ( - EventStreamCloudEventConnectionDeletedObject3ConnectedAccounts, - ) - from .event_stream_cloud_event_connection_deleted_object_3_metadata import ( - EventStreamCloudEventConnectionDeletedObject3Metadata, - ) - from .event_stream_cloud_event_connection_deleted_object_3_options import ( - EventStreamCloudEventConnectionDeletedObject3Options, - ) - from .event_stream_cloud_event_connection_deleted_object_3_options_assertion_decryption_settings import ( - EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettings, - ) - from .event_stream_cloud_event_connection_deleted_object_3_options_assertion_decryption_settings_algorithm_profile_enum import ( - EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum, - ) - from .event_stream_cloud_event_connection_deleted_object_3_options_digest_algorithm_enum import ( - EventStreamCloudEventConnectionDeletedObject3OptionsDigestAlgorithmEnum, - ) - from .event_stream_cloud_event_connection_deleted_object_3_options_idpinitiated import ( - EventStreamCloudEventConnectionDeletedObject3OptionsIdpinitiated, - ) - from .event_stream_cloud_event_connection_deleted_object_3_options_idpinitiated_client_protocol_enum import ( - EventStreamCloudEventConnectionDeletedObject3OptionsIdpinitiatedClientProtocolEnum, - ) - from .event_stream_cloud_event_connection_deleted_object_3_options_protocol_binding_enum import ( - EventStreamCloudEventConnectionDeletedObject3OptionsProtocolBindingEnum, - ) - from .event_stream_cloud_event_connection_deleted_object_3_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionDeletedObject3OptionsSetUserRootAttributesEnum, - ) - from .event_stream_cloud_event_connection_deleted_object_3_options_signature_algorithm_enum import ( - EventStreamCloudEventConnectionDeletedObject3OptionsSignatureAlgorithmEnum, - ) - from .event_stream_cloud_event_connection_deleted_object_3_options_subject import ( - EventStreamCloudEventConnectionDeletedObject3OptionsSubject, - ) - from .event_stream_cloud_event_connection_deleted_object_3_options_upstream_params import ( - EventStreamCloudEventConnectionDeletedObject3OptionsUpstreamParams, - ) - from .event_stream_cloud_event_connection_deleted_object_3_strategy_enum import ( - EventStreamCloudEventConnectionDeletedObject3StrategyEnum, - ) - from .event_stream_cloud_event_connection_deleted_object_4 import EventStreamCloudEventConnectionDeletedObject4 - from .event_stream_cloud_event_connection_deleted_object_4_authentication import ( - EventStreamCloudEventConnectionDeletedObject4Authentication, - ) - from .event_stream_cloud_event_connection_deleted_object_4_connected_accounts import ( - EventStreamCloudEventConnectionDeletedObject4ConnectedAccounts, - ) - from .event_stream_cloud_event_connection_deleted_object_4_metadata import ( - EventStreamCloudEventConnectionDeletedObject4Metadata, - ) - from .event_stream_cloud_event_connection_deleted_object_4_options import ( - EventStreamCloudEventConnectionDeletedObject4Options, - ) - from .event_stream_cloud_event_connection_deleted_object_4_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionDeletedObject4OptionsSetUserRootAttributesEnum, - ) - from .event_stream_cloud_event_connection_deleted_object_4_options_should_trust_email_verified_connection_enum import ( - EventStreamCloudEventConnectionDeletedObject4OptionsShouldTrustEmailVerifiedConnectionEnum, - ) - from .event_stream_cloud_event_connection_deleted_object_4_options_upstream_params import ( - EventStreamCloudEventConnectionDeletedObject4OptionsUpstreamParams, - ) - from .event_stream_cloud_event_connection_deleted_object_4_strategy_enum import ( - EventStreamCloudEventConnectionDeletedObject4StrategyEnum, - ) - from .event_stream_cloud_event_connection_deleted_object_5 import EventStreamCloudEventConnectionDeletedObject5 - from .event_stream_cloud_event_connection_deleted_object_5_authentication import ( - EventStreamCloudEventConnectionDeletedObject5Authentication, - ) - from .event_stream_cloud_event_connection_deleted_object_5_connected_accounts import ( - EventStreamCloudEventConnectionDeletedObject5ConnectedAccounts, - ) - from .event_stream_cloud_event_connection_deleted_object_5_metadata import ( - EventStreamCloudEventConnectionDeletedObject5Metadata, - ) - from .event_stream_cloud_event_connection_deleted_object_5_options import ( - EventStreamCloudEventConnectionDeletedObject5Options, - ) - from .event_stream_cloud_event_connection_deleted_object_5_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionDeletedObject5OptionsSetUserRootAttributesEnum, - ) - from .event_stream_cloud_event_connection_deleted_object_5_options_upstream_params import ( - EventStreamCloudEventConnectionDeletedObject5OptionsUpstreamParams, - ) - from .event_stream_cloud_event_connection_deleted_object_5_strategy_enum import ( - EventStreamCloudEventConnectionDeletedObject5StrategyEnum, - ) - from .event_stream_cloud_event_connection_deleted_object_6 import EventStreamCloudEventConnectionDeletedObject6 - from .event_stream_cloud_event_connection_deleted_object_6_authentication import ( - EventStreamCloudEventConnectionDeletedObject6Authentication, - ) - from .event_stream_cloud_event_connection_deleted_object_6_connected_accounts import ( - EventStreamCloudEventConnectionDeletedObject6ConnectedAccounts, - ) - from .event_stream_cloud_event_connection_deleted_object_6_metadata import ( - EventStreamCloudEventConnectionDeletedObject6Metadata, - ) - from .event_stream_cloud_event_connection_deleted_object_6_options import ( - EventStreamCloudEventConnectionDeletedObject6Options, - ) - from .event_stream_cloud_event_connection_deleted_object_6_options_federated_connections_access_tokens import ( - EventStreamCloudEventConnectionDeletedObject6OptionsFederatedConnectionsAccessTokens, - ) - from .event_stream_cloud_event_connection_deleted_object_6_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionDeletedObject6OptionsSetUserRootAttributesEnum, - ) - from .event_stream_cloud_event_connection_deleted_object_6_options_upstream_params import ( - EventStreamCloudEventConnectionDeletedObject6OptionsUpstreamParams, - ) - from .event_stream_cloud_event_connection_deleted_object_6_strategy_enum import ( - EventStreamCloudEventConnectionDeletedObject6StrategyEnum, - ) - from .event_stream_cloud_event_connection_deleted_object_7 import EventStreamCloudEventConnectionDeletedObject7 - from .event_stream_cloud_event_connection_deleted_object_7_authentication import ( - EventStreamCloudEventConnectionDeletedObject7Authentication, - ) - from .event_stream_cloud_event_connection_deleted_object_7_connected_accounts import ( - EventStreamCloudEventConnectionDeletedObject7ConnectedAccounts, - ) - from .event_stream_cloud_event_connection_deleted_object_7_metadata import ( - EventStreamCloudEventConnectionDeletedObject7Metadata, - ) - from .event_stream_cloud_event_connection_deleted_object_7_options import ( - EventStreamCloudEventConnectionDeletedObject7Options, - ) - from .event_stream_cloud_event_connection_deleted_object_7_options_federated_connections_access_tokens import ( - EventStreamCloudEventConnectionDeletedObject7OptionsFederatedConnectionsAccessTokens, - ) - from .event_stream_cloud_event_connection_deleted_object_7_options_identity_api_enum import ( - EventStreamCloudEventConnectionDeletedObject7OptionsIdentityApiEnum, - ) - from .event_stream_cloud_event_connection_deleted_object_7_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionDeletedObject7OptionsSetUserRootAttributesEnum, - ) - from .event_stream_cloud_event_connection_deleted_object_7_options_should_trust_email_verified_connection_enum import ( - EventStreamCloudEventConnectionDeletedObject7OptionsShouldTrustEmailVerifiedConnectionEnum, - ) - from .event_stream_cloud_event_connection_deleted_object_7_options_tenant_domain_one import ( - EventStreamCloudEventConnectionDeletedObject7OptionsTenantDomainOne, - ) - from .event_stream_cloud_event_connection_deleted_object_7_options_upstream_params import ( - EventStreamCloudEventConnectionDeletedObject7OptionsUpstreamParams, - ) - from .event_stream_cloud_event_connection_deleted_object_7_options_userid_attribute_enum import ( - EventStreamCloudEventConnectionDeletedObject7OptionsUseridAttributeEnum, - ) - from .event_stream_cloud_event_connection_deleted_object_7_options_waad_protocol_enum import ( - EventStreamCloudEventConnectionDeletedObject7OptionsWaadProtocolEnum, - ) - from .event_stream_cloud_event_connection_deleted_object_7_strategy_enum import ( - EventStreamCloudEventConnectionDeletedObject7StrategyEnum, - ) - from .event_stream_cloud_event_connection_deleted_previous_object import ( - EventStreamCloudEventConnectionDeletedPreviousObject, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_0 import ( - EventStreamCloudEventConnectionDeletedPreviousObject0, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_0_authentication import ( - EventStreamCloudEventConnectionDeletedPreviousObject0Authentication, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_0_connected_accounts import ( - EventStreamCloudEventConnectionDeletedPreviousObject0ConnectedAccounts, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_0_metadata import ( - EventStreamCloudEventConnectionDeletedPreviousObject0Metadata, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_0_options import ( - EventStreamCloudEventConnectionDeletedPreviousObject0Options, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_0_options_attribute_map import ( - EventStreamCloudEventConnectionDeletedPreviousObject0OptionsAttributeMap, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_0_options_attribute_map_attributes import ( - EventStreamCloudEventConnectionDeletedPreviousObject0OptionsAttributeMapAttributes, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_0_options_attribute_map_mapping_mode_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject0OptionsAttributeMapMappingModeEnum, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_0_options_connection_settings import ( - EventStreamCloudEventConnectionDeletedPreviousObject0OptionsConnectionSettings, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_0_options_connection_settings_pkce_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject0OptionsConnectionSettingsPkceEnum, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_0_options_dpop_signing_alg_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject0OptionsDpopSigningAlgEnum, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_0_options_federated_connections_access_tokens import ( - EventStreamCloudEventConnectionDeletedPreviousObject0OptionsFederatedConnectionsAccessTokens, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_0_options_id_token_signed_response_algs_item_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_0_options_oidc_metadata import ( - EventStreamCloudEventConnectionDeletedPreviousObject0OptionsOidcMetadata, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_0_options_schema_version_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject0OptionsSchemaVersionEnum, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_0_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject0OptionsSetUserRootAttributesEnum, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_0_options_token_endpoint_auth_method_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTokenEndpointAuthMethodEnum, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_0_options_token_endpoint_auth_signing_alg_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_0_options_token_endpoint_jwtca_aud_format_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTokenEndpointJwtcaAudFormatEnum, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_0_options_type_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTypeEnum, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_0_options_upstream_params import ( - EventStreamCloudEventConnectionDeletedPreviousObject0OptionsUpstreamParams, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_0_strategy_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject0StrategyEnum, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_1 import ( - EventStreamCloudEventConnectionDeletedPreviousObject1, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_1_authentication import ( - EventStreamCloudEventConnectionDeletedPreviousObject1Authentication, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_1_connected_accounts import ( - EventStreamCloudEventConnectionDeletedPreviousObject1ConnectedAccounts, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_1_metadata import ( - EventStreamCloudEventConnectionDeletedPreviousObject1Metadata, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_1_options import ( - EventStreamCloudEventConnectionDeletedPreviousObject1Options, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_1_options_attribute_map import ( - EventStreamCloudEventConnectionDeletedPreviousObject1OptionsAttributeMap, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_1_options_attribute_map_attributes import ( - EventStreamCloudEventConnectionDeletedPreviousObject1OptionsAttributeMapAttributes, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_1_options_attribute_map_mapping_mode_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject1OptionsAttributeMapMappingModeEnum, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_1_options_connection_settings import ( - EventStreamCloudEventConnectionDeletedPreviousObject1OptionsConnectionSettings, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_1_options_connection_settings_pkce_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject1OptionsConnectionSettingsPkceEnum, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_1_options_dpop_signing_alg_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject1OptionsDpopSigningAlgEnum, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_1_options_federated_connections_access_tokens import ( - EventStreamCloudEventConnectionDeletedPreviousObject1OptionsFederatedConnectionsAccessTokens, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_1_options_id_token_signed_response_algs_item_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_1_options_oidc_metadata import ( - EventStreamCloudEventConnectionDeletedPreviousObject1OptionsOidcMetadata, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_1_options_schema_version_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject1OptionsSchemaVersionEnum, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_1_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject1OptionsSetUserRootAttributesEnum, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_1_options_token_endpoint_auth_method_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTokenEndpointAuthMethodEnum, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_1_options_token_endpoint_auth_signing_alg_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_1_options_token_endpoint_jwtca_aud_format_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTokenEndpointJwtcaAudFormatEnum, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_1_options_type_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTypeEnum, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_1_options_upstream_params import ( - EventStreamCloudEventConnectionDeletedPreviousObject1OptionsUpstreamParams, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_1_strategy_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject1StrategyEnum, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_2 import ( - EventStreamCloudEventConnectionDeletedPreviousObject2, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_2_authentication import ( - EventStreamCloudEventConnectionDeletedPreviousObject2Authentication, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_2_connected_accounts import ( - EventStreamCloudEventConnectionDeletedPreviousObject2ConnectedAccounts, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_2_metadata import ( - EventStreamCloudEventConnectionDeletedPreviousObject2Metadata, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_2_options import ( - EventStreamCloudEventConnectionDeletedPreviousObject2Options, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_2_options_assertion_decryption_settings import ( - EventStreamCloudEventConnectionDeletedPreviousObject2OptionsAssertionDecryptionSettings, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_2_options_assertion_decryption_settings_algorithm_profile_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_2_options_digest_algorithm_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject2OptionsDigestAlgorithmEnum, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_2_options_fields_map import ( - EventStreamCloudEventConnectionDeletedPreviousObject2OptionsFieldsMap, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_2_options_idpinitiated import ( - EventStreamCloudEventConnectionDeletedPreviousObject2OptionsIdpinitiated, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_2_options_idpinitiated_client_protocol_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject2OptionsIdpinitiatedClientProtocolEnum, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_2_options_oidc_metadata import ( - EventStreamCloudEventConnectionDeletedPreviousObject2OptionsOidcMetadata, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_2_options_protocol_binding_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject2OptionsProtocolBindingEnum, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_2_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject2OptionsSetUserRootAttributesEnum, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_2_options_signature_algorithm_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject2OptionsSignatureAlgorithmEnum, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_2_options_subject import ( - EventStreamCloudEventConnectionDeletedPreviousObject2OptionsSubject, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_2_options_upstream_params import ( - EventStreamCloudEventConnectionDeletedPreviousObject2OptionsUpstreamParams, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_2_strategy_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject2StrategyEnum, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_3 import ( - EventStreamCloudEventConnectionDeletedPreviousObject3, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_3_authentication import ( - EventStreamCloudEventConnectionDeletedPreviousObject3Authentication, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_3_connected_accounts import ( - EventStreamCloudEventConnectionDeletedPreviousObject3ConnectedAccounts, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_3_metadata import ( - EventStreamCloudEventConnectionDeletedPreviousObject3Metadata, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_3_options import ( - EventStreamCloudEventConnectionDeletedPreviousObject3Options, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_3_options_assertion_decryption_settings import ( - EventStreamCloudEventConnectionDeletedPreviousObject3OptionsAssertionDecryptionSettings, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_3_options_assertion_decryption_settings_algorithm_profile_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_3_options_digest_algorithm_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject3OptionsDigestAlgorithmEnum, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_3_options_idpinitiated import ( - EventStreamCloudEventConnectionDeletedPreviousObject3OptionsIdpinitiated, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_3_options_idpinitiated_client_protocol_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject3OptionsIdpinitiatedClientProtocolEnum, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_3_options_protocol_binding_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject3OptionsProtocolBindingEnum, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_3_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject3OptionsSetUserRootAttributesEnum, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_3_options_signature_algorithm_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject3OptionsSignatureAlgorithmEnum, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_3_options_subject import ( - EventStreamCloudEventConnectionDeletedPreviousObject3OptionsSubject, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_3_options_upstream_params import ( - EventStreamCloudEventConnectionDeletedPreviousObject3OptionsUpstreamParams, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_3_strategy_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject3StrategyEnum, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_4 import ( - EventStreamCloudEventConnectionDeletedPreviousObject4, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_4_authentication import ( - EventStreamCloudEventConnectionDeletedPreviousObject4Authentication, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_4_connected_accounts import ( - EventStreamCloudEventConnectionDeletedPreviousObject4ConnectedAccounts, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_4_metadata import ( - EventStreamCloudEventConnectionDeletedPreviousObject4Metadata, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_4_options import ( - EventStreamCloudEventConnectionDeletedPreviousObject4Options, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_4_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject4OptionsSetUserRootAttributesEnum, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_4_options_should_trust_email_verified_connection_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject4OptionsShouldTrustEmailVerifiedConnectionEnum, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_4_options_upstream_params import ( - EventStreamCloudEventConnectionDeletedPreviousObject4OptionsUpstreamParams, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_4_strategy_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject4StrategyEnum, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_5 import ( - EventStreamCloudEventConnectionDeletedPreviousObject5, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_5_authentication import ( - EventStreamCloudEventConnectionDeletedPreviousObject5Authentication, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_5_connected_accounts import ( - EventStreamCloudEventConnectionDeletedPreviousObject5ConnectedAccounts, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_5_metadata import ( - EventStreamCloudEventConnectionDeletedPreviousObject5Metadata, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_5_options import ( - EventStreamCloudEventConnectionDeletedPreviousObject5Options, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_5_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject5OptionsSetUserRootAttributesEnum, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_5_options_upstream_params import ( - EventStreamCloudEventConnectionDeletedPreviousObject5OptionsUpstreamParams, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_5_strategy_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject5StrategyEnum, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_6 import ( - EventStreamCloudEventConnectionDeletedPreviousObject6, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_6_authentication import ( - EventStreamCloudEventConnectionDeletedPreviousObject6Authentication, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_6_connected_accounts import ( - EventStreamCloudEventConnectionDeletedPreviousObject6ConnectedAccounts, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_6_metadata import ( - EventStreamCloudEventConnectionDeletedPreviousObject6Metadata, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_6_options import ( - EventStreamCloudEventConnectionDeletedPreviousObject6Options, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_6_options_federated_connections_access_tokens import ( - EventStreamCloudEventConnectionDeletedPreviousObject6OptionsFederatedConnectionsAccessTokens, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_6_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject6OptionsSetUserRootAttributesEnum, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_6_options_upstream_params import ( - EventStreamCloudEventConnectionDeletedPreviousObject6OptionsUpstreamParams, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_6_strategy_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject6StrategyEnum, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_7 import ( - EventStreamCloudEventConnectionDeletedPreviousObject7, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_7_authentication import ( - EventStreamCloudEventConnectionDeletedPreviousObject7Authentication, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_7_connected_accounts import ( - EventStreamCloudEventConnectionDeletedPreviousObject7ConnectedAccounts, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_7_metadata import ( - EventStreamCloudEventConnectionDeletedPreviousObject7Metadata, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_7_options import ( - EventStreamCloudEventConnectionDeletedPreviousObject7Options, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_7_options_federated_connections_access_tokens import ( - EventStreamCloudEventConnectionDeletedPreviousObject7OptionsFederatedConnectionsAccessTokens, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_7_options_identity_api_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject7OptionsIdentityApiEnum, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_7_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject7OptionsSetUserRootAttributesEnum, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_7_options_should_trust_email_verified_connection_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_7_options_tenant_domain_one import ( - EventStreamCloudEventConnectionDeletedPreviousObject7OptionsTenantDomainOne, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_7_options_upstream_params import ( - EventStreamCloudEventConnectionDeletedPreviousObject7OptionsUpstreamParams, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_7_options_userid_attribute_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject7OptionsUseridAttributeEnum, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_7_options_waad_protocol_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject7OptionsWaadProtocolEnum, - ) - from .event_stream_cloud_event_connection_deleted_previous_object_7_strategy_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject7StrategyEnum, - ) - from .event_stream_cloud_event_connection_deleted_type_enum import EventStreamCloudEventConnectionDeletedTypeEnum - from .event_stream_cloud_event_connection_updated import EventStreamCloudEventConnectionUpdated - from .event_stream_cloud_event_connection_updated_cloud_event import ( - EventStreamCloudEventConnectionUpdatedCloudEvent, - ) - from .event_stream_cloud_event_connection_updated_cloud_event_type_enum import ( - EventStreamCloudEventConnectionUpdatedCloudEventTypeEnum, - ) - from .event_stream_cloud_event_connection_updated_data import EventStreamCloudEventConnectionUpdatedData - from .event_stream_cloud_event_connection_updated_object import EventStreamCloudEventConnectionUpdatedObject - from .event_stream_cloud_event_connection_updated_object_0 import EventStreamCloudEventConnectionUpdatedObject0 - from .event_stream_cloud_event_connection_updated_object_0_authentication import ( - EventStreamCloudEventConnectionUpdatedObject0Authentication, - ) - from .event_stream_cloud_event_connection_updated_object_0_connected_accounts import ( - EventStreamCloudEventConnectionUpdatedObject0ConnectedAccounts, - ) - from .event_stream_cloud_event_connection_updated_object_0_metadata import ( - EventStreamCloudEventConnectionUpdatedObject0Metadata, - ) - from .event_stream_cloud_event_connection_updated_object_0_options import ( - EventStreamCloudEventConnectionUpdatedObject0Options, - ) - from .event_stream_cloud_event_connection_updated_object_0_options_attribute_map import ( - EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMap, - ) - from .event_stream_cloud_event_connection_updated_object_0_options_attribute_map_attributes import ( - EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMapAttributes, - ) - from .event_stream_cloud_event_connection_updated_object_0_options_attribute_map_mapping_mode_enum import ( - EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMapMappingModeEnum, - ) - from .event_stream_cloud_event_connection_updated_object_0_options_connection_settings import ( - EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettings, - ) - from .event_stream_cloud_event_connection_updated_object_0_options_connection_settings_pkce_enum import ( - EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettingsPkceEnum, - ) - from .event_stream_cloud_event_connection_updated_object_0_options_dpop_signing_alg_enum import ( - EventStreamCloudEventConnectionUpdatedObject0OptionsDpopSigningAlgEnum, - ) - from .event_stream_cloud_event_connection_updated_object_0_options_federated_connections_access_tokens import ( - EventStreamCloudEventConnectionUpdatedObject0OptionsFederatedConnectionsAccessTokens, - ) - from .event_stream_cloud_event_connection_updated_object_0_options_id_token_signed_response_algs_item_enum import ( - EventStreamCloudEventConnectionUpdatedObject0OptionsIdTokenSignedResponseAlgsItemEnum, - ) - from .event_stream_cloud_event_connection_updated_object_0_options_oidc_metadata import ( - EventStreamCloudEventConnectionUpdatedObject0OptionsOidcMetadata, - ) - from .event_stream_cloud_event_connection_updated_object_0_options_schema_version_enum import ( - EventStreamCloudEventConnectionUpdatedObject0OptionsSchemaVersionEnum, - ) - from .event_stream_cloud_event_connection_updated_object_0_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionUpdatedObject0OptionsSetUserRootAttributesEnum, - ) - from .event_stream_cloud_event_connection_updated_object_0_options_token_endpoint_auth_method_enum import ( - EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthMethodEnum, - ) - from .event_stream_cloud_event_connection_updated_object_0_options_token_endpoint_auth_signing_alg_enum import ( - EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthSigningAlgEnum, - ) - from .event_stream_cloud_event_connection_updated_object_0_options_token_endpoint_jwtca_aud_format_enum import ( - EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointJwtcaAudFormatEnum, - ) - from .event_stream_cloud_event_connection_updated_object_0_options_type_enum import ( - EventStreamCloudEventConnectionUpdatedObject0OptionsTypeEnum, - ) - from .event_stream_cloud_event_connection_updated_object_0_options_upstream_params import ( - EventStreamCloudEventConnectionUpdatedObject0OptionsUpstreamParams, - ) - from .event_stream_cloud_event_connection_updated_object_0_strategy_enum import ( - EventStreamCloudEventConnectionUpdatedObject0StrategyEnum, - ) - from .event_stream_cloud_event_connection_updated_object_1 import EventStreamCloudEventConnectionUpdatedObject1 - from .event_stream_cloud_event_connection_updated_object_1_authentication import ( - EventStreamCloudEventConnectionUpdatedObject1Authentication, - ) - from .event_stream_cloud_event_connection_updated_object_1_connected_accounts import ( - EventStreamCloudEventConnectionUpdatedObject1ConnectedAccounts, - ) - from .event_stream_cloud_event_connection_updated_object_1_metadata import ( - EventStreamCloudEventConnectionUpdatedObject1Metadata, - ) - from .event_stream_cloud_event_connection_updated_object_1_options import ( - EventStreamCloudEventConnectionUpdatedObject1Options, - ) - from .event_stream_cloud_event_connection_updated_object_1_options_attribute_map import ( - EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMap, - ) - from .event_stream_cloud_event_connection_updated_object_1_options_attribute_map_attributes import ( - EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMapAttributes, - ) - from .event_stream_cloud_event_connection_updated_object_1_options_attribute_map_mapping_mode_enum import ( - EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMapMappingModeEnum, - ) - from .event_stream_cloud_event_connection_updated_object_1_options_connection_settings import ( - EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettings, - ) - from .event_stream_cloud_event_connection_updated_object_1_options_connection_settings_pkce_enum import ( - EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettingsPkceEnum, - ) - from .event_stream_cloud_event_connection_updated_object_1_options_dpop_signing_alg_enum import ( - EventStreamCloudEventConnectionUpdatedObject1OptionsDpopSigningAlgEnum, - ) - from .event_stream_cloud_event_connection_updated_object_1_options_federated_connections_access_tokens import ( - EventStreamCloudEventConnectionUpdatedObject1OptionsFederatedConnectionsAccessTokens, - ) - from .event_stream_cloud_event_connection_updated_object_1_options_id_token_signed_response_algs_item_enum import ( - EventStreamCloudEventConnectionUpdatedObject1OptionsIdTokenSignedResponseAlgsItemEnum, - ) - from .event_stream_cloud_event_connection_updated_object_1_options_oidc_metadata import ( - EventStreamCloudEventConnectionUpdatedObject1OptionsOidcMetadata, - ) - from .event_stream_cloud_event_connection_updated_object_1_options_schema_version_enum import ( - EventStreamCloudEventConnectionUpdatedObject1OptionsSchemaVersionEnum, - ) - from .event_stream_cloud_event_connection_updated_object_1_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionUpdatedObject1OptionsSetUserRootAttributesEnum, - ) - from .event_stream_cloud_event_connection_updated_object_1_options_token_endpoint_auth_method_enum import ( - EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthMethodEnum, - ) - from .event_stream_cloud_event_connection_updated_object_1_options_token_endpoint_auth_signing_alg_enum import ( - EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthSigningAlgEnum, - ) - from .event_stream_cloud_event_connection_updated_object_1_options_token_endpoint_jwtca_aud_format_enum import ( - EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointJwtcaAudFormatEnum, - ) - from .event_stream_cloud_event_connection_updated_object_1_options_type_enum import ( - EventStreamCloudEventConnectionUpdatedObject1OptionsTypeEnum, - ) - from .event_stream_cloud_event_connection_updated_object_1_options_upstream_params import ( - EventStreamCloudEventConnectionUpdatedObject1OptionsUpstreamParams, - ) - from .event_stream_cloud_event_connection_updated_object_1_strategy_enum import ( - EventStreamCloudEventConnectionUpdatedObject1StrategyEnum, - ) - from .event_stream_cloud_event_connection_updated_object_2 import EventStreamCloudEventConnectionUpdatedObject2 - from .event_stream_cloud_event_connection_updated_object_2_authentication import ( - EventStreamCloudEventConnectionUpdatedObject2Authentication, - ) - from .event_stream_cloud_event_connection_updated_object_2_connected_accounts import ( - EventStreamCloudEventConnectionUpdatedObject2ConnectedAccounts, - ) - from .event_stream_cloud_event_connection_updated_object_2_metadata import ( - EventStreamCloudEventConnectionUpdatedObject2Metadata, - ) - from .event_stream_cloud_event_connection_updated_object_2_options import ( - EventStreamCloudEventConnectionUpdatedObject2Options, - ) - from .event_stream_cloud_event_connection_updated_object_2_options_assertion_decryption_settings import ( - EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettings, - ) - from .event_stream_cloud_event_connection_updated_object_2_options_assertion_decryption_settings_algorithm_profile_enum import ( - EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum, - ) - from .event_stream_cloud_event_connection_updated_object_2_options_digest_algorithm_enum import ( - EventStreamCloudEventConnectionUpdatedObject2OptionsDigestAlgorithmEnum, - ) - from .event_stream_cloud_event_connection_updated_object_2_options_fields_map import ( - EventStreamCloudEventConnectionUpdatedObject2OptionsFieldsMap, - ) - from .event_stream_cloud_event_connection_updated_object_2_options_idpinitiated import ( - EventStreamCloudEventConnectionUpdatedObject2OptionsIdpinitiated, - ) - from .event_stream_cloud_event_connection_updated_object_2_options_idpinitiated_client_protocol_enum import ( - EventStreamCloudEventConnectionUpdatedObject2OptionsIdpinitiatedClientProtocolEnum, - ) - from .event_stream_cloud_event_connection_updated_object_2_options_oidc_metadata import ( - EventStreamCloudEventConnectionUpdatedObject2OptionsOidcMetadata, - ) - from .event_stream_cloud_event_connection_updated_object_2_options_protocol_binding_enum import ( - EventStreamCloudEventConnectionUpdatedObject2OptionsProtocolBindingEnum, - ) - from .event_stream_cloud_event_connection_updated_object_2_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionUpdatedObject2OptionsSetUserRootAttributesEnum, - ) - from .event_stream_cloud_event_connection_updated_object_2_options_signature_algorithm_enum import ( - EventStreamCloudEventConnectionUpdatedObject2OptionsSignatureAlgorithmEnum, - ) - from .event_stream_cloud_event_connection_updated_object_2_options_subject import ( - EventStreamCloudEventConnectionUpdatedObject2OptionsSubject, - ) - from .event_stream_cloud_event_connection_updated_object_2_options_upstream_params import ( - EventStreamCloudEventConnectionUpdatedObject2OptionsUpstreamParams, - ) - from .event_stream_cloud_event_connection_updated_object_2_strategy_enum import ( - EventStreamCloudEventConnectionUpdatedObject2StrategyEnum, - ) - from .event_stream_cloud_event_connection_updated_object_3 import EventStreamCloudEventConnectionUpdatedObject3 - from .event_stream_cloud_event_connection_updated_object_3_authentication import ( - EventStreamCloudEventConnectionUpdatedObject3Authentication, - ) - from .event_stream_cloud_event_connection_updated_object_3_connected_accounts import ( - EventStreamCloudEventConnectionUpdatedObject3ConnectedAccounts, - ) - from .event_stream_cloud_event_connection_updated_object_3_metadata import ( - EventStreamCloudEventConnectionUpdatedObject3Metadata, - ) - from .event_stream_cloud_event_connection_updated_object_3_options import ( - EventStreamCloudEventConnectionUpdatedObject3Options, - ) - from .event_stream_cloud_event_connection_updated_object_3_options_assertion_decryption_settings import ( - EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettings, - ) - from .event_stream_cloud_event_connection_updated_object_3_options_assertion_decryption_settings_algorithm_profile_enum import ( - EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum, - ) - from .event_stream_cloud_event_connection_updated_object_3_options_digest_algorithm_enum import ( - EventStreamCloudEventConnectionUpdatedObject3OptionsDigestAlgorithmEnum, - ) - from .event_stream_cloud_event_connection_updated_object_3_options_idpinitiated import ( - EventStreamCloudEventConnectionUpdatedObject3OptionsIdpinitiated, - ) - from .event_stream_cloud_event_connection_updated_object_3_options_idpinitiated_client_protocol_enum import ( - EventStreamCloudEventConnectionUpdatedObject3OptionsIdpinitiatedClientProtocolEnum, - ) - from .event_stream_cloud_event_connection_updated_object_3_options_protocol_binding_enum import ( - EventStreamCloudEventConnectionUpdatedObject3OptionsProtocolBindingEnum, - ) - from .event_stream_cloud_event_connection_updated_object_3_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionUpdatedObject3OptionsSetUserRootAttributesEnum, - ) - from .event_stream_cloud_event_connection_updated_object_3_options_signature_algorithm_enum import ( - EventStreamCloudEventConnectionUpdatedObject3OptionsSignatureAlgorithmEnum, - ) - from .event_stream_cloud_event_connection_updated_object_3_options_subject import ( - EventStreamCloudEventConnectionUpdatedObject3OptionsSubject, - ) - from .event_stream_cloud_event_connection_updated_object_3_options_upstream_params import ( - EventStreamCloudEventConnectionUpdatedObject3OptionsUpstreamParams, - ) - from .event_stream_cloud_event_connection_updated_object_3_strategy_enum import ( - EventStreamCloudEventConnectionUpdatedObject3StrategyEnum, - ) - from .event_stream_cloud_event_connection_updated_object_4 import EventStreamCloudEventConnectionUpdatedObject4 - from .event_stream_cloud_event_connection_updated_object_4_authentication import ( - EventStreamCloudEventConnectionUpdatedObject4Authentication, - ) - from .event_stream_cloud_event_connection_updated_object_4_connected_accounts import ( - EventStreamCloudEventConnectionUpdatedObject4ConnectedAccounts, - ) - from .event_stream_cloud_event_connection_updated_object_4_metadata import ( - EventStreamCloudEventConnectionUpdatedObject4Metadata, - ) - from .event_stream_cloud_event_connection_updated_object_4_options import ( - EventStreamCloudEventConnectionUpdatedObject4Options, - ) - from .event_stream_cloud_event_connection_updated_object_4_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionUpdatedObject4OptionsSetUserRootAttributesEnum, - ) - from .event_stream_cloud_event_connection_updated_object_4_options_should_trust_email_verified_connection_enum import ( - EventStreamCloudEventConnectionUpdatedObject4OptionsShouldTrustEmailVerifiedConnectionEnum, - ) - from .event_stream_cloud_event_connection_updated_object_4_options_upstream_params import ( - EventStreamCloudEventConnectionUpdatedObject4OptionsUpstreamParams, - ) - from .event_stream_cloud_event_connection_updated_object_4_strategy_enum import ( - EventStreamCloudEventConnectionUpdatedObject4StrategyEnum, - ) - from .event_stream_cloud_event_connection_updated_object_5 import EventStreamCloudEventConnectionUpdatedObject5 - from .event_stream_cloud_event_connection_updated_object_5_authentication import ( - EventStreamCloudEventConnectionUpdatedObject5Authentication, - ) - from .event_stream_cloud_event_connection_updated_object_5_connected_accounts import ( - EventStreamCloudEventConnectionUpdatedObject5ConnectedAccounts, - ) - from .event_stream_cloud_event_connection_updated_object_5_metadata import ( - EventStreamCloudEventConnectionUpdatedObject5Metadata, - ) - from .event_stream_cloud_event_connection_updated_object_5_options import ( - EventStreamCloudEventConnectionUpdatedObject5Options, - ) - from .event_stream_cloud_event_connection_updated_object_5_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionUpdatedObject5OptionsSetUserRootAttributesEnum, - ) - from .event_stream_cloud_event_connection_updated_object_5_options_upstream_params import ( - EventStreamCloudEventConnectionUpdatedObject5OptionsUpstreamParams, - ) - from .event_stream_cloud_event_connection_updated_object_5_strategy_enum import ( - EventStreamCloudEventConnectionUpdatedObject5StrategyEnum, - ) - from .event_stream_cloud_event_connection_updated_object_6 import EventStreamCloudEventConnectionUpdatedObject6 - from .event_stream_cloud_event_connection_updated_object_6_authentication import ( - EventStreamCloudEventConnectionUpdatedObject6Authentication, - ) - from .event_stream_cloud_event_connection_updated_object_6_connected_accounts import ( - EventStreamCloudEventConnectionUpdatedObject6ConnectedAccounts, - ) - from .event_stream_cloud_event_connection_updated_object_6_metadata import ( - EventStreamCloudEventConnectionUpdatedObject6Metadata, - ) - from .event_stream_cloud_event_connection_updated_object_6_options import ( - EventStreamCloudEventConnectionUpdatedObject6Options, - ) - from .event_stream_cloud_event_connection_updated_object_6_options_federated_connections_access_tokens import ( - EventStreamCloudEventConnectionUpdatedObject6OptionsFederatedConnectionsAccessTokens, - ) - from .event_stream_cloud_event_connection_updated_object_6_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionUpdatedObject6OptionsSetUserRootAttributesEnum, - ) - from .event_stream_cloud_event_connection_updated_object_6_options_upstream_params import ( - EventStreamCloudEventConnectionUpdatedObject6OptionsUpstreamParams, - ) - from .event_stream_cloud_event_connection_updated_object_6_strategy_enum import ( - EventStreamCloudEventConnectionUpdatedObject6StrategyEnum, - ) - from .event_stream_cloud_event_connection_updated_object_7 import EventStreamCloudEventConnectionUpdatedObject7 - from .event_stream_cloud_event_connection_updated_object_7_authentication import ( - EventStreamCloudEventConnectionUpdatedObject7Authentication, - ) - from .event_stream_cloud_event_connection_updated_object_7_connected_accounts import ( - EventStreamCloudEventConnectionUpdatedObject7ConnectedAccounts, - ) - from .event_stream_cloud_event_connection_updated_object_7_metadata import ( - EventStreamCloudEventConnectionUpdatedObject7Metadata, - ) - from .event_stream_cloud_event_connection_updated_object_7_options import ( - EventStreamCloudEventConnectionUpdatedObject7Options, - ) - from .event_stream_cloud_event_connection_updated_object_7_options_federated_connections_access_tokens import ( - EventStreamCloudEventConnectionUpdatedObject7OptionsFederatedConnectionsAccessTokens, - ) - from .event_stream_cloud_event_connection_updated_object_7_options_identity_api_enum import ( - EventStreamCloudEventConnectionUpdatedObject7OptionsIdentityApiEnum, - ) - from .event_stream_cloud_event_connection_updated_object_7_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionUpdatedObject7OptionsSetUserRootAttributesEnum, - ) - from .event_stream_cloud_event_connection_updated_object_7_options_should_trust_email_verified_connection_enum import ( - EventStreamCloudEventConnectionUpdatedObject7OptionsShouldTrustEmailVerifiedConnectionEnum, - ) - from .event_stream_cloud_event_connection_updated_object_7_options_tenant_domain_one import ( - EventStreamCloudEventConnectionUpdatedObject7OptionsTenantDomainOne, - ) - from .event_stream_cloud_event_connection_updated_object_7_options_upstream_params import ( - EventStreamCloudEventConnectionUpdatedObject7OptionsUpstreamParams, - ) - from .event_stream_cloud_event_connection_updated_object_7_options_userid_attribute_enum import ( - EventStreamCloudEventConnectionUpdatedObject7OptionsUseridAttributeEnum, - ) - from .event_stream_cloud_event_connection_updated_object_7_options_waad_protocol_enum import ( - EventStreamCloudEventConnectionUpdatedObject7OptionsWaadProtocolEnum, - ) - from .event_stream_cloud_event_connection_updated_object_7_strategy_enum import ( - EventStreamCloudEventConnectionUpdatedObject7StrategyEnum, - ) - from .event_stream_cloud_event_connection_updated_previous_object import ( - EventStreamCloudEventConnectionUpdatedPreviousObject, - ) - from .event_stream_cloud_event_connection_updated_previous_object_0 import ( - EventStreamCloudEventConnectionUpdatedPreviousObject0, - ) - from .event_stream_cloud_event_connection_updated_previous_object_0_authentication import ( - EventStreamCloudEventConnectionUpdatedPreviousObject0Authentication, - ) - from .event_stream_cloud_event_connection_updated_previous_object_0_connected_accounts import ( - EventStreamCloudEventConnectionUpdatedPreviousObject0ConnectedAccounts, - ) - from .event_stream_cloud_event_connection_updated_previous_object_0_metadata import ( - EventStreamCloudEventConnectionUpdatedPreviousObject0Metadata, - ) - from .event_stream_cloud_event_connection_updated_previous_object_0_options import ( - EventStreamCloudEventConnectionUpdatedPreviousObject0Options, - ) - from .event_stream_cloud_event_connection_updated_previous_object_0_options_attribute_map import ( - EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsAttributeMap, - ) - from .event_stream_cloud_event_connection_updated_previous_object_0_options_attribute_map_attributes import ( - EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsAttributeMapAttributes, - ) - from .event_stream_cloud_event_connection_updated_previous_object_0_options_attribute_map_mapping_mode_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsAttributeMapMappingModeEnum, - ) - from .event_stream_cloud_event_connection_updated_previous_object_0_options_connection_settings import ( - EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsConnectionSettings, - ) - from .event_stream_cloud_event_connection_updated_previous_object_0_options_connection_settings_pkce_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsConnectionSettingsPkceEnum, - ) - from .event_stream_cloud_event_connection_updated_previous_object_0_options_dpop_signing_alg_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsDpopSigningAlgEnum, - ) - from .event_stream_cloud_event_connection_updated_previous_object_0_options_federated_connections_access_tokens import ( - EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsFederatedConnectionsAccessTokens, - ) - from .event_stream_cloud_event_connection_updated_previous_object_0_options_id_token_signed_response_algs_item_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum, - ) - from .event_stream_cloud_event_connection_updated_previous_object_0_options_oidc_metadata import ( - EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsOidcMetadata, - ) - from .event_stream_cloud_event_connection_updated_previous_object_0_options_schema_version_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsSchemaVersionEnum, - ) - from .event_stream_cloud_event_connection_updated_previous_object_0_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsSetUserRootAttributesEnum, - ) - from .event_stream_cloud_event_connection_updated_previous_object_0_options_token_endpoint_auth_method_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTokenEndpointAuthMethodEnum, - ) - from .event_stream_cloud_event_connection_updated_previous_object_0_options_token_endpoint_auth_signing_alg_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum, - ) - from .event_stream_cloud_event_connection_updated_previous_object_0_options_token_endpoint_jwtca_aud_format_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTokenEndpointJwtcaAudFormatEnum, - ) - from .event_stream_cloud_event_connection_updated_previous_object_0_options_type_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTypeEnum, - ) - from .event_stream_cloud_event_connection_updated_previous_object_0_options_upstream_params import ( - EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsUpstreamParams, - ) - from .event_stream_cloud_event_connection_updated_previous_object_0_strategy_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject0StrategyEnum, - ) - from .event_stream_cloud_event_connection_updated_previous_object_1 import ( - EventStreamCloudEventConnectionUpdatedPreviousObject1, - ) - from .event_stream_cloud_event_connection_updated_previous_object_1_authentication import ( - EventStreamCloudEventConnectionUpdatedPreviousObject1Authentication, - ) - from .event_stream_cloud_event_connection_updated_previous_object_1_connected_accounts import ( - EventStreamCloudEventConnectionUpdatedPreviousObject1ConnectedAccounts, - ) - from .event_stream_cloud_event_connection_updated_previous_object_1_metadata import ( - EventStreamCloudEventConnectionUpdatedPreviousObject1Metadata, - ) - from .event_stream_cloud_event_connection_updated_previous_object_1_options import ( - EventStreamCloudEventConnectionUpdatedPreviousObject1Options, - ) - from .event_stream_cloud_event_connection_updated_previous_object_1_options_attribute_map import ( - EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsAttributeMap, - ) - from .event_stream_cloud_event_connection_updated_previous_object_1_options_attribute_map_attributes import ( - EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsAttributeMapAttributes, - ) - from .event_stream_cloud_event_connection_updated_previous_object_1_options_attribute_map_mapping_mode_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsAttributeMapMappingModeEnum, - ) - from .event_stream_cloud_event_connection_updated_previous_object_1_options_connection_settings import ( - EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsConnectionSettings, - ) - from .event_stream_cloud_event_connection_updated_previous_object_1_options_connection_settings_pkce_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsConnectionSettingsPkceEnum, - ) - from .event_stream_cloud_event_connection_updated_previous_object_1_options_dpop_signing_alg_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsDpopSigningAlgEnum, - ) - from .event_stream_cloud_event_connection_updated_previous_object_1_options_federated_connections_access_tokens import ( - EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsFederatedConnectionsAccessTokens, - ) - from .event_stream_cloud_event_connection_updated_previous_object_1_options_id_token_signed_response_algs_item_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum, - ) - from .event_stream_cloud_event_connection_updated_previous_object_1_options_oidc_metadata import ( - EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsOidcMetadata, - ) - from .event_stream_cloud_event_connection_updated_previous_object_1_options_schema_version_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsSchemaVersionEnum, - ) - from .event_stream_cloud_event_connection_updated_previous_object_1_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsSetUserRootAttributesEnum, - ) - from .event_stream_cloud_event_connection_updated_previous_object_1_options_token_endpoint_auth_method_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTokenEndpointAuthMethodEnum, - ) - from .event_stream_cloud_event_connection_updated_previous_object_1_options_token_endpoint_auth_signing_alg_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum, - ) - from .event_stream_cloud_event_connection_updated_previous_object_1_options_token_endpoint_jwtca_aud_format_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTokenEndpointJwtcaAudFormatEnum, - ) - from .event_stream_cloud_event_connection_updated_previous_object_1_options_type_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTypeEnum, - ) - from .event_stream_cloud_event_connection_updated_previous_object_1_options_upstream_params import ( - EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsUpstreamParams, - ) - from .event_stream_cloud_event_connection_updated_previous_object_1_strategy_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject1StrategyEnum, - ) - from .event_stream_cloud_event_connection_updated_previous_object_2 import ( - EventStreamCloudEventConnectionUpdatedPreviousObject2, - ) - from .event_stream_cloud_event_connection_updated_previous_object_2_authentication import ( - EventStreamCloudEventConnectionUpdatedPreviousObject2Authentication, - ) - from .event_stream_cloud_event_connection_updated_previous_object_2_connected_accounts import ( - EventStreamCloudEventConnectionUpdatedPreviousObject2ConnectedAccounts, - ) - from .event_stream_cloud_event_connection_updated_previous_object_2_metadata import ( - EventStreamCloudEventConnectionUpdatedPreviousObject2Metadata, - ) - from .event_stream_cloud_event_connection_updated_previous_object_2_options import ( - EventStreamCloudEventConnectionUpdatedPreviousObject2Options, - ) - from .event_stream_cloud_event_connection_updated_previous_object_2_options_assertion_decryption_settings import ( - EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsAssertionDecryptionSettings, - ) - from .event_stream_cloud_event_connection_updated_previous_object_2_options_assertion_decryption_settings_algorithm_profile_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum, - ) - from .event_stream_cloud_event_connection_updated_previous_object_2_options_digest_algorithm_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsDigestAlgorithmEnum, - ) - from .event_stream_cloud_event_connection_updated_previous_object_2_options_fields_map import ( - EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsFieldsMap, - ) - from .event_stream_cloud_event_connection_updated_previous_object_2_options_idpinitiated import ( - EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsIdpinitiated, - ) - from .event_stream_cloud_event_connection_updated_previous_object_2_options_idpinitiated_client_protocol_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsIdpinitiatedClientProtocolEnum, - ) - from .event_stream_cloud_event_connection_updated_previous_object_2_options_oidc_metadata import ( - EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsOidcMetadata, - ) - from .event_stream_cloud_event_connection_updated_previous_object_2_options_protocol_binding_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsProtocolBindingEnum, - ) - from .event_stream_cloud_event_connection_updated_previous_object_2_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsSetUserRootAttributesEnum, - ) - from .event_stream_cloud_event_connection_updated_previous_object_2_options_signature_algorithm_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsSignatureAlgorithmEnum, - ) - from .event_stream_cloud_event_connection_updated_previous_object_2_options_subject import ( - EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsSubject, - ) - from .event_stream_cloud_event_connection_updated_previous_object_2_options_upstream_params import ( - EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsUpstreamParams, - ) - from .event_stream_cloud_event_connection_updated_previous_object_2_strategy_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject2StrategyEnum, - ) - from .event_stream_cloud_event_connection_updated_previous_object_3 import ( - EventStreamCloudEventConnectionUpdatedPreviousObject3, - ) - from .event_stream_cloud_event_connection_updated_previous_object_3_authentication import ( - EventStreamCloudEventConnectionUpdatedPreviousObject3Authentication, - ) - from .event_stream_cloud_event_connection_updated_previous_object_3_connected_accounts import ( - EventStreamCloudEventConnectionUpdatedPreviousObject3ConnectedAccounts, - ) - from .event_stream_cloud_event_connection_updated_previous_object_3_metadata import ( - EventStreamCloudEventConnectionUpdatedPreviousObject3Metadata, - ) - from .event_stream_cloud_event_connection_updated_previous_object_3_options import ( - EventStreamCloudEventConnectionUpdatedPreviousObject3Options, - ) - from .event_stream_cloud_event_connection_updated_previous_object_3_options_assertion_decryption_settings import ( - EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsAssertionDecryptionSettings, - ) - from .event_stream_cloud_event_connection_updated_previous_object_3_options_assertion_decryption_settings_algorithm_profile_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum, - ) - from .event_stream_cloud_event_connection_updated_previous_object_3_options_digest_algorithm_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsDigestAlgorithmEnum, - ) - from .event_stream_cloud_event_connection_updated_previous_object_3_options_idpinitiated import ( - EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsIdpinitiated, - ) - from .event_stream_cloud_event_connection_updated_previous_object_3_options_idpinitiated_client_protocol_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsIdpinitiatedClientProtocolEnum, - ) - from .event_stream_cloud_event_connection_updated_previous_object_3_options_protocol_binding_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsProtocolBindingEnum, - ) - from .event_stream_cloud_event_connection_updated_previous_object_3_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsSetUserRootAttributesEnum, - ) - from .event_stream_cloud_event_connection_updated_previous_object_3_options_signature_algorithm_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsSignatureAlgorithmEnum, - ) - from .event_stream_cloud_event_connection_updated_previous_object_3_options_subject import ( - EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsSubject, - ) - from .event_stream_cloud_event_connection_updated_previous_object_3_options_upstream_params import ( - EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsUpstreamParams, - ) - from .event_stream_cloud_event_connection_updated_previous_object_3_strategy_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject3StrategyEnum, - ) - from .event_stream_cloud_event_connection_updated_previous_object_4 import ( - EventStreamCloudEventConnectionUpdatedPreviousObject4, - ) - from .event_stream_cloud_event_connection_updated_previous_object_4_authentication import ( - EventStreamCloudEventConnectionUpdatedPreviousObject4Authentication, - ) - from .event_stream_cloud_event_connection_updated_previous_object_4_connected_accounts import ( - EventStreamCloudEventConnectionUpdatedPreviousObject4ConnectedAccounts, - ) - from .event_stream_cloud_event_connection_updated_previous_object_4_metadata import ( - EventStreamCloudEventConnectionUpdatedPreviousObject4Metadata, - ) - from .event_stream_cloud_event_connection_updated_previous_object_4_options import ( - EventStreamCloudEventConnectionUpdatedPreviousObject4Options, - ) - from .event_stream_cloud_event_connection_updated_previous_object_4_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject4OptionsSetUserRootAttributesEnum, - ) - from .event_stream_cloud_event_connection_updated_previous_object_4_options_should_trust_email_verified_connection_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject4OptionsShouldTrustEmailVerifiedConnectionEnum, - ) - from .event_stream_cloud_event_connection_updated_previous_object_4_options_upstream_params import ( - EventStreamCloudEventConnectionUpdatedPreviousObject4OptionsUpstreamParams, - ) - from .event_stream_cloud_event_connection_updated_previous_object_4_strategy_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject4StrategyEnum, - ) - from .event_stream_cloud_event_connection_updated_previous_object_5 import ( - EventStreamCloudEventConnectionUpdatedPreviousObject5, - ) - from .event_stream_cloud_event_connection_updated_previous_object_5_authentication import ( - EventStreamCloudEventConnectionUpdatedPreviousObject5Authentication, - ) - from .event_stream_cloud_event_connection_updated_previous_object_5_connected_accounts import ( - EventStreamCloudEventConnectionUpdatedPreviousObject5ConnectedAccounts, - ) - from .event_stream_cloud_event_connection_updated_previous_object_5_metadata import ( - EventStreamCloudEventConnectionUpdatedPreviousObject5Metadata, - ) - from .event_stream_cloud_event_connection_updated_previous_object_5_options import ( - EventStreamCloudEventConnectionUpdatedPreviousObject5Options, - ) - from .event_stream_cloud_event_connection_updated_previous_object_5_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject5OptionsSetUserRootAttributesEnum, - ) - from .event_stream_cloud_event_connection_updated_previous_object_5_options_upstream_params import ( - EventStreamCloudEventConnectionUpdatedPreviousObject5OptionsUpstreamParams, - ) - from .event_stream_cloud_event_connection_updated_previous_object_5_strategy_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject5StrategyEnum, - ) - from .event_stream_cloud_event_connection_updated_previous_object_6 import ( - EventStreamCloudEventConnectionUpdatedPreviousObject6, - ) - from .event_stream_cloud_event_connection_updated_previous_object_6_authentication import ( - EventStreamCloudEventConnectionUpdatedPreviousObject6Authentication, - ) - from .event_stream_cloud_event_connection_updated_previous_object_6_connected_accounts import ( - EventStreamCloudEventConnectionUpdatedPreviousObject6ConnectedAccounts, - ) - from .event_stream_cloud_event_connection_updated_previous_object_6_metadata import ( - EventStreamCloudEventConnectionUpdatedPreviousObject6Metadata, - ) - from .event_stream_cloud_event_connection_updated_previous_object_6_options import ( - EventStreamCloudEventConnectionUpdatedPreviousObject6Options, - ) - from .event_stream_cloud_event_connection_updated_previous_object_6_options_federated_connections_access_tokens import ( - EventStreamCloudEventConnectionUpdatedPreviousObject6OptionsFederatedConnectionsAccessTokens, - ) - from .event_stream_cloud_event_connection_updated_previous_object_6_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject6OptionsSetUserRootAttributesEnum, - ) - from .event_stream_cloud_event_connection_updated_previous_object_6_options_upstream_params import ( - EventStreamCloudEventConnectionUpdatedPreviousObject6OptionsUpstreamParams, - ) - from .event_stream_cloud_event_connection_updated_previous_object_6_strategy_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject6StrategyEnum, - ) - from .event_stream_cloud_event_connection_updated_previous_object_7 import ( - EventStreamCloudEventConnectionUpdatedPreviousObject7, - ) - from .event_stream_cloud_event_connection_updated_previous_object_7_authentication import ( - EventStreamCloudEventConnectionUpdatedPreviousObject7Authentication, - ) - from .event_stream_cloud_event_connection_updated_previous_object_7_connected_accounts import ( - EventStreamCloudEventConnectionUpdatedPreviousObject7ConnectedAccounts, - ) - from .event_stream_cloud_event_connection_updated_previous_object_7_metadata import ( - EventStreamCloudEventConnectionUpdatedPreviousObject7Metadata, - ) - from .event_stream_cloud_event_connection_updated_previous_object_7_options import ( - EventStreamCloudEventConnectionUpdatedPreviousObject7Options, - ) - from .event_stream_cloud_event_connection_updated_previous_object_7_options_federated_connections_access_tokens import ( - EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsFederatedConnectionsAccessTokens, - ) - from .event_stream_cloud_event_connection_updated_previous_object_7_options_identity_api_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsIdentityApiEnum, - ) - from .event_stream_cloud_event_connection_updated_previous_object_7_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsSetUserRootAttributesEnum, - ) - from .event_stream_cloud_event_connection_updated_previous_object_7_options_should_trust_email_verified_connection_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum, - ) - from .event_stream_cloud_event_connection_updated_previous_object_7_options_tenant_domain_one import ( - EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsTenantDomainOne, - ) - from .event_stream_cloud_event_connection_updated_previous_object_7_options_upstream_params import ( - EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsUpstreamParams, - ) - from .event_stream_cloud_event_connection_updated_previous_object_7_options_userid_attribute_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsUseridAttributeEnum, - ) - from .event_stream_cloud_event_connection_updated_previous_object_7_options_waad_protocol_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsWaadProtocolEnum, - ) - from .event_stream_cloud_event_connection_updated_previous_object_7_strategy_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject7StrategyEnum, - ) - from .event_stream_cloud_event_connection_updated_type_enum import EventStreamCloudEventConnectionUpdatedTypeEnum - from .event_stream_cloud_event_context import EventStreamCloudEventContext - from .event_stream_cloud_event_context_client import EventStreamCloudEventContextClient - from .event_stream_cloud_event_context_client_metadata import EventStreamCloudEventContextClientMetadata - from .event_stream_cloud_event_context_connection import EventStreamCloudEventContextConnection - from .event_stream_cloud_event_context_request import EventStreamCloudEventContextRequest - from .event_stream_cloud_event_context_request_geo import EventStreamCloudEventContextRequestGeo - from .event_stream_cloud_event_context_tenant import EventStreamCloudEventContextTenant - from .event_stream_cloud_event_context_transaction import EventStreamCloudEventContextTransaction - from .event_stream_cloud_event_context_transaction_protocol_enum import ( - EventStreamCloudEventContextTransactionProtocolEnum, - ) - from .event_stream_cloud_event_context_transaction_response_mode_enum import ( - EventStreamCloudEventContextTransactionResponseModeEnum, - ) - from .event_stream_cloud_event_context_transaction_response_type_item_enum import ( - EventStreamCloudEventContextTransactionResponseTypeItemEnum, - ) - from .event_stream_cloud_event_data import EventStreamCloudEventData - from .event_stream_cloud_event_error_code_enum import EventStreamCloudEventErrorCodeEnum - from .event_stream_cloud_event_error_detail import EventStreamCloudEventErrorDetail - from .event_stream_cloud_event_error_message import EventStreamCloudEventErrorMessage - from .event_stream_cloud_event_error_message_type_enum import EventStreamCloudEventErrorMessageTypeEnum - from .event_stream_cloud_event_group_created import EventStreamCloudEventGroupCreated - from .event_stream_cloud_event_group_created_cloud_event import EventStreamCloudEventGroupCreatedCloudEvent - from .event_stream_cloud_event_group_created_cloud_event_type_enum import ( - EventStreamCloudEventGroupCreatedCloudEventTypeEnum, - ) - from .event_stream_cloud_event_group_created_data import EventStreamCloudEventGroupCreatedData - from .event_stream_cloud_event_group_created_object import EventStreamCloudEventGroupCreatedObject - from .event_stream_cloud_event_group_created_object_0 import EventStreamCloudEventGroupCreatedObject0 - from .event_stream_cloud_event_group_created_object_0_type_enum import ( - EventStreamCloudEventGroupCreatedObject0TypeEnum, - ) - from .event_stream_cloud_event_group_created_object_1 import EventStreamCloudEventGroupCreatedObject1 - from .event_stream_cloud_event_group_created_object_1_type_enum import ( - EventStreamCloudEventGroupCreatedObject1TypeEnum, - ) - from .event_stream_cloud_event_group_created_object_2 import EventStreamCloudEventGroupCreatedObject2 - from .event_stream_cloud_event_group_created_object_2_type_enum import ( - EventStreamCloudEventGroupCreatedObject2TypeEnum, - ) - from .event_stream_cloud_event_group_created_previous_object import EventStreamCloudEventGroupCreatedPreviousObject - from .event_stream_cloud_event_group_created_previous_object_0 import ( - EventStreamCloudEventGroupCreatedPreviousObject0, - ) - from .event_stream_cloud_event_group_created_previous_object_0_type_enum import ( - EventStreamCloudEventGroupCreatedPreviousObject0TypeEnum, - ) - from .event_stream_cloud_event_group_created_previous_object_1 import ( - EventStreamCloudEventGroupCreatedPreviousObject1, - ) - from .event_stream_cloud_event_group_created_previous_object_1_type_enum import ( - EventStreamCloudEventGroupCreatedPreviousObject1TypeEnum, - ) - from .event_stream_cloud_event_group_created_previous_object_2 import ( - EventStreamCloudEventGroupCreatedPreviousObject2, - ) - from .event_stream_cloud_event_group_created_previous_object_2_type_enum import ( - EventStreamCloudEventGroupCreatedPreviousObject2TypeEnum, - ) - from .event_stream_cloud_event_group_created_type_enum import EventStreamCloudEventGroupCreatedTypeEnum - from .event_stream_cloud_event_group_deleted import EventStreamCloudEventGroupDeleted - from .event_stream_cloud_event_group_deleted_cloud_event import EventStreamCloudEventGroupDeletedCloudEvent - from .event_stream_cloud_event_group_deleted_cloud_event_type_enum import ( - EventStreamCloudEventGroupDeletedCloudEventTypeEnum, - ) - from .event_stream_cloud_event_group_deleted_data import EventStreamCloudEventGroupDeletedData - from .event_stream_cloud_event_group_deleted_object import EventStreamCloudEventGroupDeletedObject - from .event_stream_cloud_event_group_deleted_object_0 import EventStreamCloudEventGroupDeletedObject0 - from .event_stream_cloud_event_group_deleted_object_0_type_enum import ( - EventStreamCloudEventGroupDeletedObject0TypeEnum, - ) - from .event_stream_cloud_event_group_deleted_object_1 import EventStreamCloudEventGroupDeletedObject1 - from .event_stream_cloud_event_group_deleted_object_1_type_enum import ( - EventStreamCloudEventGroupDeletedObject1TypeEnum, - ) - from .event_stream_cloud_event_group_deleted_object_2 import EventStreamCloudEventGroupDeletedObject2 - from .event_stream_cloud_event_group_deleted_object_2_type_enum import ( - EventStreamCloudEventGroupDeletedObject2TypeEnum, - ) - from .event_stream_cloud_event_group_deleted_previous_object import EventStreamCloudEventGroupDeletedPreviousObject - from .event_stream_cloud_event_group_deleted_previous_object_0 import ( - EventStreamCloudEventGroupDeletedPreviousObject0, - ) - from .event_stream_cloud_event_group_deleted_previous_object_0_type_enum import ( - EventStreamCloudEventGroupDeletedPreviousObject0TypeEnum, - ) - from .event_stream_cloud_event_group_deleted_previous_object_1 import ( - EventStreamCloudEventGroupDeletedPreviousObject1, - ) - from .event_stream_cloud_event_group_deleted_previous_object_1_type_enum import ( - EventStreamCloudEventGroupDeletedPreviousObject1TypeEnum, - ) - from .event_stream_cloud_event_group_deleted_previous_object_2 import ( - EventStreamCloudEventGroupDeletedPreviousObject2, - ) - from .event_stream_cloud_event_group_deleted_previous_object_2_type_enum import ( - EventStreamCloudEventGroupDeletedPreviousObject2TypeEnum, - ) - from .event_stream_cloud_event_group_deleted_type_enum import EventStreamCloudEventGroupDeletedTypeEnum - from .event_stream_cloud_event_group_member_added import EventStreamCloudEventGroupMemberAdded - from .event_stream_cloud_event_group_member_added_cloud_event import EventStreamCloudEventGroupMemberAddedCloudEvent - from .event_stream_cloud_event_group_member_added_cloud_event_type_enum import ( - EventStreamCloudEventGroupMemberAddedCloudEventTypeEnum, - ) - from .event_stream_cloud_event_group_member_added_data import EventStreamCloudEventGroupMemberAddedData - from .event_stream_cloud_event_group_member_added_object import EventStreamCloudEventGroupMemberAddedObject - from .event_stream_cloud_event_group_member_added_object_group import ( - EventStreamCloudEventGroupMemberAddedObjectGroup, - ) - from .event_stream_cloud_event_group_member_added_object_group_0 import ( - EventStreamCloudEventGroupMemberAddedObjectGroup0, - ) - from .event_stream_cloud_event_group_member_added_object_group_0_type_enum import ( - EventStreamCloudEventGroupMemberAddedObjectGroup0TypeEnum, - ) - from .event_stream_cloud_event_group_member_added_object_group_1 import ( - EventStreamCloudEventGroupMemberAddedObjectGroup1, - ) - from .event_stream_cloud_event_group_member_added_object_group_1_type_enum import ( - EventStreamCloudEventGroupMemberAddedObjectGroup1TypeEnum, - ) - from .event_stream_cloud_event_group_member_added_object_group_2 import ( - EventStreamCloudEventGroupMemberAddedObjectGroup2, - ) - from .event_stream_cloud_event_group_member_added_object_group_2_type_enum import ( - EventStreamCloudEventGroupMemberAddedObjectGroup2TypeEnum, - ) - from .event_stream_cloud_event_group_member_added_object_member import ( - EventStreamCloudEventGroupMemberAddedObjectMember, - ) - from .event_stream_cloud_event_group_member_added_object_member_0 import ( - EventStreamCloudEventGroupMemberAddedObjectMember0, - ) - from .event_stream_cloud_event_group_member_added_object_member_0_member_type_enum import ( - EventStreamCloudEventGroupMemberAddedObjectMember0MemberTypeEnum, - ) - from .event_stream_cloud_event_group_member_added_object_member_1 import ( - EventStreamCloudEventGroupMemberAddedObjectMember1, - ) - from .event_stream_cloud_event_group_member_added_object_member_1_member_type_enum import ( - EventStreamCloudEventGroupMemberAddedObjectMember1MemberTypeEnum, - ) - from .event_stream_cloud_event_group_member_added_previous_object import ( - EventStreamCloudEventGroupMemberAddedPreviousObject, - ) - from .event_stream_cloud_event_group_member_added_previous_object_group import ( - EventStreamCloudEventGroupMemberAddedPreviousObjectGroup, - ) - from .event_stream_cloud_event_group_member_added_previous_object_group_0 import ( - EventStreamCloudEventGroupMemberAddedPreviousObjectGroup0, - ) - from .event_stream_cloud_event_group_member_added_previous_object_group_0_type_enum import ( - EventStreamCloudEventGroupMemberAddedPreviousObjectGroup0TypeEnum, - ) - from .event_stream_cloud_event_group_member_added_previous_object_group_1 import ( - EventStreamCloudEventGroupMemberAddedPreviousObjectGroup1, - ) - from .event_stream_cloud_event_group_member_added_previous_object_group_1_type_enum import ( - EventStreamCloudEventGroupMemberAddedPreviousObjectGroup1TypeEnum, - ) - from .event_stream_cloud_event_group_member_added_previous_object_group_2 import ( - EventStreamCloudEventGroupMemberAddedPreviousObjectGroup2, - ) - from .event_stream_cloud_event_group_member_added_previous_object_group_2_type_enum import ( - EventStreamCloudEventGroupMemberAddedPreviousObjectGroup2TypeEnum, - ) - from .event_stream_cloud_event_group_member_added_previous_object_member import ( - EventStreamCloudEventGroupMemberAddedPreviousObjectMember, - ) - from .event_stream_cloud_event_group_member_added_previous_object_member_0 import ( - EventStreamCloudEventGroupMemberAddedPreviousObjectMember0, - ) - from .event_stream_cloud_event_group_member_added_previous_object_member_0_member_type_enum import ( - EventStreamCloudEventGroupMemberAddedPreviousObjectMember0MemberTypeEnum, - ) - from .event_stream_cloud_event_group_member_added_previous_object_member_1 import ( - EventStreamCloudEventGroupMemberAddedPreviousObjectMember1, - ) - from .event_stream_cloud_event_group_member_added_previous_object_member_1_member_type_enum import ( - EventStreamCloudEventGroupMemberAddedPreviousObjectMember1MemberTypeEnum, - ) - from .event_stream_cloud_event_group_member_added_type_enum import EventStreamCloudEventGroupMemberAddedTypeEnum - from .event_stream_cloud_event_group_member_deleted import EventStreamCloudEventGroupMemberDeleted - from .event_stream_cloud_event_group_member_deleted_cloud_event import ( - EventStreamCloudEventGroupMemberDeletedCloudEvent, - ) - from .event_stream_cloud_event_group_member_deleted_cloud_event_type_enum import ( - EventStreamCloudEventGroupMemberDeletedCloudEventTypeEnum, - ) - from .event_stream_cloud_event_group_member_deleted_data import EventStreamCloudEventGroupMemberDeletedData - from .event_stream_cloud_event_group_member_deleted_object import EventStreamCloudEventGroupMemberDeletedObject - from .event_stream_cloud_event_group_member_deleted_object_group import ( - EventStreamCloudEventGroupMemberDeletedObjectGroup, - ) - from .event_stream_cloud_event_group_member_deleted_object_group_0 import ( - EventStreamCloudEventGroupMemberDeletedObjectGroup0, - ) - from .event_stream_cloud_event_group_member_deleted_object_group_0_type_enum import ( - EventStreamCloudEventGroupMemberDeletedObjectGroup0TypeEnum, - ) - from .event_stream_cloud_event_group_member_deleted_object_group_1 import ( - EventStreamCloudEventGroupMemberDeletedObjectGroup1, - ) - from .event_stream_cloud_event_group_member_deleted_object_group_1_type_enum import ( - EventStreamCloudEventGroupMemberDeletedObjectGroup1TypeEnum, - ) - from .event_stream_cloud_event_group_member_deleted_object_group_2 import ( - EventStreamCloudEventGroupMemberDeletedObjectGroup2, - ) - from .event_stream_cloud_event_group_member_deleted_object_group_2_type_enum import ( - EventStreamCloudEventGroupMemberDeletedObjectGroup2TypeEnum, - ) - from .event_stream_cloud_event_group_member_deleted_object_member import ( - EventStreamCloudEventGroupMemberDeletedObjectMember, - ) - from .event_stream_cloud_event_group_member_deleted_object_member_0 import ( - EventStreamCloudEventGroupMemberDeletedObjectMember0, - ) - from .event_stream_cloud_event_group_member_deleted_object_member_0_member_type_enum import ( - EventStreamCloudEventGroupMemberDeletedObjectMember0MemberTypeEnum, - ) - from .event_stream_cloud_event_group_member_deleted_object_member_1 import ( - EventStreamCloudEventGroupMemberDeletedObjectMember1, - ) - from .event_stream_cloud_event_group_member_deleted_object_member_1_member_type_enum import ( - EventStreamCloudEventGroupMemberDeletedObjectMember1MemberTypeEnum, - ) - from .event_stream_cloud_event_group_member_deleted_previous_object import ( - EventStreamCloudEventGroupMemberDeletedPreviousObject, - ) - from .event_stream_cloud_event_group_member_deleted_previous_object_group import ( - EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup, - ) - from .event_stream_cloud_event_group_member_deleted_previous_object_group_0 import ( - EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup0, - ) - from .event_stream_cloud_event_group_member_deleted_previous_object_group_0_type_enum import ( - EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup0TypeEnum, - ) - from .event_stream_cloud_event_group_member_deleted_previous_object_group_1 import ( - EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup1, - ) - from .event_stream_cloud_event_group_member_deleted_previous_object_group_1_type_enum import ( - EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup1TypeEnum, - ) - from .event_stream_cloud_event_group_member_deleted_previous_object_group_2 import ( - EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup2, - ) - from .event_stream_cloud_event_group_member_deleted_previous_object_group_2_type_enum import ( - EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup2TypeEnum, - ) - from .event_stream_cloud_event_group_member_deleted_previous_object_member import ( - EventStreamCloudEventGroupMemberDeletedPreviousObjectMember, - ) - from .event_stream_cloud_event_group_member_deleted_previous_object_member_0 import ( - EventStreamCloudEventGroupMemberDeletedPreviousObjectMember0, - ) - from .event_stream_cloud_event_group_member_deleted_previous_object_member_0_member_type_enum import ( - EventStreamCloudEventGroupMemberDeletedPreviousObjectMember0MemberTypeEnum, - ) - from .event_stream_cloud_event_group_member_deleted_previous_object_member_1 import ( - EventStreamCloudEventGroupMemberDeletedPreviousObjectMember1, - ) - from .event_stream_cloud_event_group_member_deleted_previous_object_member_1_member_type_enum import ( - EventStreamCloudEventGroupMemberDeletedPreviousObjectMember1MemberTypeEnum, - ) - from .event_stream_cloud_event_group_member_deleted_type_enum import EventStreamCloudEventGroupMemberDeletedTypeEnum - from .event_stream_cloud_event_group_role_assigned import EventStreamCloudEventGroupRoleAssigned - from .event_stream_cloud_event_group_role_assigned_cloud_event import ( - EventStreamCloudEventGroupRoleAssignedCloudEvent, - ) - from .event_stream_cloud_event_group_role_assigned_cloud_event_type_enum import ( - EventStreamCloudEventGroupRoleAssignedCloudEventTypeEnum, - ) - from .event_stream_cloud_event_group_role_assigned_data import EventStreamCloudEventGroupRoleAssignedData - from .event_stream_cloud_event_group_role_assigned_object import EventStreamCloudEventGroupRoleAssignedObject - from .event_stream_cloud_event_group_role_assigned_object_group import ( - EventStreamCloudEventGroupRoleAssignedObjectGroup, - ) - from .event_stream_cloud_event_group_role_assigned_object_group_0 import ( - EventStreamCloudEventGroupRoleAssignedObjectGroup0, - ) - from .event_stream_cloud_event_group_role_assigned_object_group_0_type_enum import ( - EventStreamCloudEventGroupRoleAssignedObjectGroup0TypeEnum, - ) - from .event_stream_cloud_event_group_role_assigned_object_group_1 import ( - EventStreamCloudEventGroupRoleAssignedObjectGroup1, - ) - from .event_stream_cloud_event_group_role_assigned_object_group_1_type_enum import ( - EventStreamCloudEventGroupRoleAssignedObjectGroup1TypeEnum, - ) - from .event_stream_cloud_event_group_role_assigned_object_group_2 import ( - EventStreamCloudEventGroupRoleAssignedObjectGroup2, - ) - from .event_stream_cloud_event_group_role_assigned_object_group_2_type_enum import ( - EventStreamCloudEventGroupRoleAssignedObjectGroup2TypeEnum, - ) - from .event_stream_cloud_event_group_role_assigned_object_role import ( - EventStreamCloudEventGroupRoleAssignedObjectRole, - ) - from .event_stream_cloud_event_group_role_assigned_previous_object import ( - EventStreamCloudEventGroupRoleAssignedPreviousObject, - ) - from .event_stream_cloud_event_group_role_assigned_previous_object_group import ( - EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup, - ) - from .event_stream_cloud_event_group_role_assigned_previous_object_group_0 import ( - EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup0, - ) - from .event_stream_cloud_event_group_role_assigned_previous_object_group_0_type_enum import ( - EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup0TypeEnum, - ) - from .event_stream_cloud_event_group_role_assigned_previous_object_group_1 import ( - EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup1, - ) - from .event_stream_cloud_event_group_role_assigned_previous_object_group_1_type_enum import ( - EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup1TypeEnum, - ) - from .event_stream_cloud_event_group_role_assigned_previous_object_group_2 import ( - EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup2, - ) - from .event_stream_cloud_event_group_role_assigned_previous_object_group_2_type_enum import ( - EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup2TypeEnum, - ) - from .event_stream_cloud_event_group_role_assigned_previous_object_role import ( - EventStreamCloudEventGroupRoleAssignedPreviousObjectRole, - ) - from .event_stream_cloud_event_group_role_assigned_type_enum import EventStreamCloudEventGroupRoleAssignedTypeEnum - from .event_stream_cloud_event_group_role_deleted import EventStreamCloudEventGroupRoleDeleted - from .event_stream_cloud_event_group_role_deleted_cloud_event import EventStreamCloudEventGroupRoleDeletedCloudEvent - from .event_stream_cloud_event_group_role_deleted_cloud_event_type_enum import ( - EventStreamCloudEventGroupRoleDeletedCloudEventTypeEnum, - ) - from .event_stream_cloud_event_group_role_deleted_data import EventStreamCloudEventGroupRoleDeletedData - from .event_stream_cloud_event_group_role_deleted_object import EventStreamCloudEventGroupRoleDeletedObject - from .event_stream_cloud_event_group_role_deleted_object_group import ( - EventStreamCloudEventGroupRoleDeletedObjectGroup, - ) - from .event_stream_cloud_event_group_role_deleted_object_group_0 import ( - EventStreamCloudEventGroupRoleDeletedObjectGroup0, - ) - from .event_stream_cloud_event_group_role_deleted_object_group_0_type_enum import ( - EventStreamCloudEventGroupRoleDeletedObjectGroup0TypeEnum, - ) - from .event_stream_cloud_event_group_role_deleted_object_group_1 import ( - EventStreamCloudEventGroupRoleDeletedObjectGroup1, - ) - from .event_stream_cloud_event_group_role_deleted_object_group_1_type_enum import ( - EventStreamCloudEventGroupRoleDeletedObjectGroup1TypeEnum, - ) - from .event_stream_cloud_event_group_role_deleted_object_group_2 import ( - EventStreamCloudEventGroupRoleDeletedObjectGroup2, - ) - from .event_stream_cloud_event_group_role_deleted_object_group_2_type_enum import ( - EventStreamCloudEventGroupRoleDeletedObjectGroup2TypeEnum, - ) - from .event_stream_cloud_event_group_role_deleted_object_role import EventStreamCloudEventGroupRoleDeletedObjectRole - from .event_stream_cloud_event_group_role_deleted_previous_object import ( - EventStreamCloudEventGroupRoleDeletedPreviousObject, - ) - from .event_stream_cloud_event_group_role_deleted_previous_object_group import ( - EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup, - ) - from .event_stream_cloud_event_group_role_deleted_previous_object_group_0 import ( - EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup0, - ) - from .event_stream_cloud_event_group_role_deleted_previous_object_group_0_type_enum import ( - EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup0TypeEnum, - ) - from .event_stream_cloud_event_group_role_deleted_previous_object_group_1 import ( - EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup1, - ) - from .event_stream_cloud_event_group_role_deleted_previous_object_group_1_type_enum import ( - EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup1TypeEnum, - ) - from .event_stream_cloud_event_group_role_deleted_previous_object_group_2 import ( - EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup2, - ) - from .event_stream_cloud_event_group_role_deleted_previous_object_group_2_type_enum import ( - EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup2TypeEnum, - ) - from .event_stream_cloud_event_group_role_deleted_previous_object_role import ( - EventStreamCloudEventGroupRoleDeletedPreviousObjectRole, - ) - from .event_stream_cloud_event_group_role_deleted_type_enum import EventStreamCloudEventGroupRoleDeletedTypeEnum - from .event_stream_cloud_event_group_updated import EventStreamCloudEventGroupUpdated - from .event_stream_cloud_event_group_updated_cloud_event import EventStreamCloudEventGroupUpdatedCloudEvent - from .event_stream_cloud_event_group_updated_cloud_event_type_enum import ( - EventStreamCloudEventGroupUpdatedCloudEventTypeEnum, - ) - from .event_stream_cloud_event_group_updated_data import EventStreamCloudEventGroupUpdatedData - from .event_stream_cloud_event_group_updated_object import EventStreamCloudEventGroupUpdatedObject - from .event_stream_cloud_event_group_updated_object_0 import EventStreamCloudEventGroupUpdatedObject0 - from .event_stream_cloud_event_group_updated_object_0_type_enum import ( - EventStreamCloudEventGroupUpdatedObject0TypeEnum, - ) - from .event_stream_cloud_event_group_updated_object_1 import EventStreamCloudEventGroupUpdatedObject1 - from .event_stream_cloud_event_group_updated_object_1_type_enum import ( - EventStreamCloudEventGroupUpdatedObject1TypeEnum, - ) - from .event_stream_cloud_event_group_updated_object_2 import EventStreamCloudEventGroupUpdatedObject2 - from .event_stream_cloud_event_group_updated_object_2_type_enum import ( - EventStreamCloudEventGroupUpdatedObject2TypeEnum, - ) - from .event_stream_cloud_event_group_updated_previous_object import EventStreamCloudEventGroupUpdatedPreviousObject - from .event_stream_cloud_event_group_updated_previous_object_0 import ( - EventStreamCloudEventGroupUpdatedPreviousObject0, - ) - from .event_stream_cloud_event_group_updated_previous_object_0_type_enum import ( - EventStreamCloudEventGroupUpdatedPreviousObject0TypeEnum, - ) - from .event_stream_cloud_event_group_updated_previous_object_1 import ( - EventStreamCloudEventGroupUpdatedPreviousObject1, - ) - from .event_stream_cloud_event_group_updated_previous_object_1_type_enum import ( - EventStreamCloudEventGroupUpdatedPreviousObject1TypeEnum, - ) - from .event_stream_cloud_event_group_updated_previous_object_2 import ( - EventStreamCloudEventGroupUpdatedPreviousObject2, - ) - from .event_stream_cloud_event_group_updated_previous_object_2_type_enum import ( - EventStreamCloudEventGroupUpdatedPreviousObject2TypeEnum, - ) - from .event_stream_cloud_event_group_updated_type_enum import EventStreamCloudEventGroupUpdatedTypeEnum - from .event_stream_cloud_event_offset_only_message import EventStreamCloudEventOffsetOnlyMessage - from .event_stream_cloud_event_offset_only_message_type_enum import EventStreamCloudEventOffsetOnlyMessageTypeEnum - from .event_stream_cloud_event_org_connection_added import EventStreamCloudEventOrgConnectionAdded - from .event_stream_cloud_event_org_connection_added_cloud_event import ( - EventStreamCloudEventOrgConnectionAddedCloudEvent, - ) - from .event_stream_cloud_event_org_connection_added_cloud_event_type_enum import ( - EventStreamCloudEventOrgConnectionAddedCloudEventTypeEnum, - ) - from .event_stream_cloud_event_org_connection_added_data import EventStreamCloudEventOrgConnectionAddedData - from .event_stream_cloud_event_org_connection_added_object import EventStreamCloudEventOrgConnectionAddedObject - from .event_stream_cloud_event_org_connection_added_object_connection import ( - EventStreamCloudEventOrgConnectionAddedObjectConnection, - ) - from .event_stream_cloud_event_org_connection_added_object_organization import ( - EventStreamCloudEventOrgConnectionAddedObjectOrganization, - ) - from .event_stream_cloud_event_org_connection_added_object_organization_access_level import ( - EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel, - ) - from .event_stream_cloud_event_org_connection_added_object_organization_access_level_0_enum import ( - EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel0Enum, - ) - from .event_stream_cloud_event_org_connection_added_object_organization_access_level_1_enum import ( - EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel1Enum, - ) - from .event_stream_cloud_event_org_connection_added_object_organization_access_level_2_enum import ( - EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel2Enum, - ) - from .event_stream_cloud_event_org_connection_added_object_organization_access_level_3_enum import ( - EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel3Enum, - ) - from .event_stream_cloud_event_org_connection_added_object_organization_member_access_level import ( - EventStreamCloudEventOrgConnectionAddedObjectOrganizationMemberAccessLevel, - ) - from .event_stream_cloud_event_org_connection_added_object_organization_member_access_level_0_enum import ( - EventStreamCloudEventOrgConnectionAddedObjectOrganizationMemberAccessLevel0Enum, - ) - from .event_stream_cloud_event_org_connection_added_object_organization_member_access_level_1_enum import ( - EventStreamCloudEventOrgConnectionAddedObjectOrganizationMemberAccessLevel1Enum, - ) - from .event_stream_cloud_event_org_connection_added_object_organization_member_access_level_2_enum import ( - EventStreamCloudEventOrgConnectionAddedObjectOrganizationMemberAccessLevel2Enum, - ) - from .event_stream_cloud_event_org_connection_added_object_organization_member_access_level_3_enum import ( - EventStreamCloudEventOrgConnectionAddedObjectOrganizationMemberAccessLevel3Enum, - ) - from .event_stream_cloud_event_org_connection_added_previous_object import ( - EventStreamCloudEventOrgConnectionAddedPreviousObject, - ) - from .event_stream_cloud_event_org_connection_added_previous_object_connection import ( - EventStreamCloudEventOrgConnectionAddedPreviousObjectConnection, - ) - from .event_stream_cloud_event_org_connection_added_previous_object_organization import ( - EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganization, - ) - from .event_stream_cloud_event_org_connection_added_previous_object_organization_access_level import ( - EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel, - ) - from .event_stream_cloud_event_org_connection_added_previous_object_organization_access_level_0_enum import ( - EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel0Enum, - ) - from .event_stream_cloud_event_org_connection_added_previous_object_organization_access_level_1_enum import ( - EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel1Enum, - ) - from .event_stream_cloud_event_org_connection_added_previous_object_organization_access_level_2_enum import ( - EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel2Enum, - ) - from .event_stream_cloud_event_org_connection_added_previous_object_organization_access_level_3_enum import ( - EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel3Enum, - ) - from .event_stream_cloud_event_org_connection_added_previous_object_organization_member_access_level import ( - EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationMemberAccessLevel, - ) - from .event_stream_cloud_event_org_connection_added_previous_object_organization_member_access_level_0_enum import ( - EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationMemberAccessLevel0Enum, - ) - from .event_stream_cloud_event_org_connection_added_previous_object_organization_member_access_level_1_enum import ( - EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationMemberAccessLevel1Enum, - ) - from .event_stream_cloud_event_org_connection_added_previous_object_organization_member_access_level_2_enum import ( - EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationMemberAccessLevel2Enum, - ) - from .event_stream_cloud_event_org_connection_added_previous_object_organization_member_access_level_3_enum import ( - EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationMemberAccessLevel3Enum, - ) - from .event_stream_cloud_event_org_connection_added_type_enum import EventStreamCloudEventOrgConnectionAddedTypeEnum - from .event_stream_cloud_event_org_connection_removed import EventStreamCloudEventOrgConnectionRemoved - from .event_stream_cloud_event_org_connection_removed_cloud_event import ( - EventStreamCloudEventOrgConnectionRemovedCloudEvent, - ) - from .event_stream_cloud_event_org_connection_removed_cloud_event_type_enum import ( - EventStreamCloudEventOrgConnectionRemovedCloudEventTypeEnum, - ) - from .event_stream_cloud_event_org_connection_removed_data import EventStreamCloudEventOrgConnectionRemovedData - from .event_stream_cloud_event_org_connection_removed_object import EventStreamCloudEventOrgConnectionRemovedObject - from .event_stream_cloud_event_org_connection_removed_object_connection import ( - EventStreamCloudEventOrgConnectionRemovedObjectConnection, - ) - from .event_stream_cloud_event_org_connection_removed_object_organization import ( - EventStreamCloudEventOrgConnectionRemovedObjectOrganization, - ) - from .event_stream_cloud_event_org_connection_removed_previous_object import ( - EventStreamCloudEventOrgConnectionRemovedPreviousObject, - ) - from .event_stream_cloud_event_org_connection_removed_previous_object_connection import ( - EventStreamCloudEventOrgConnectionRemovedPreviousObjectConnection, - ) - from .event_stream_cloud_event_org_connection_removed_previous_object_organization import ( - EventStreamCloudEventOrgConnectionRemovedPreviousObjectOrganization, - ) - from .event_stream_cloud_event_org_connection_removed_type_enum import ( - EventStreamCloudEventOrgConnectionRemovedTypeEnum, - ) - from .event_stream_cloud_event_org_connection_updated import EventStreamCloudEventOrgConnectionUpdated - from .event_stream_cloud_event_org_connection_updated_cloud_event import ( - EventStreamCloudEventOrgConnectionUpdatedCloudEvent, - ) - from .event_stream_cloud_event_org_connection_updated_cloud_event_type_enum import ( - EventStreamCloudEventOrgConnectionUpdatedCloudEventTypeEnum, - ) - from .event_stream_cloud_event_org_connection_updated_data import EventStreamCloudEventOrgConnectionUpdatedData - from .event_stream_cloud_event_org_connection_updated_object import EventStreamCloudEventOrgConnectionUpdatedObject - from .event_stream_cloud_event_org_connection_updated_object_connection import ( - EventStreamCloudEventOrgConnectionUpdatedObjectConnection, - ) - from .event_stream_cloud_event_org_connection_updated_object_organization import ( - EventStreamCloudEventOrgConnectionUpdatedObjectOrganization, - ) - from .event_stream_cloud_event_org_connection_updated_object_organization_access_level import ( - EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel, - ) - from .event_stream_cloud_event_org_connection_updated_object_organization_access_level_0_enum import ( - EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel0Enum, - ) - from .event_stream_cloud_event_org_connection_updated_object_organization_access_level_1_enum import ( - EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel1Enum, - ) - from .event_stream_cloud_event_org_connection_updated_object_organization_access_level_2_enum import ( - EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel2Enum, - ) - from .event_stream_cloud_event_org_connection_updated_object_organization_access_level_3_enum import ( - EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel3Enum, - ) - from .event_stream_cloud_event_org_connection_updated_object_organization_member_access_level import ( - EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationMemberAccessLevel, - ) - from .event_stream_cloud_event_org_connection_updated_object_organization_member_access_level_0_enum import ( - EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationMemberAccessLevel0Enum, - ) - from .event_stream_cloud_event_org_connection_updated_object_organization_member_access_level_1_enum import ( - EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationMemberAccessLevel1Enum, - ) - from .event_stream_cloud_event_org_connection_updated_object_organization_member_access_level_2_enum import ( - EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationMemberAccessLevel2Enum, - ) - from .event_stream_cloud_event_org_connection_updated_object_organization_member_access_level_3_enum import ( - EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationMemberAccessLevel3Enum, - ) - from .event_stream_cloud_event_org_connection_updated_previous_object import ( - EventStreamCloudEventOrgConnectionUpdatedPreviousObject, - ) - from .event_stream_cloud_event_org_connection_updated_previous_object_connection import ( - EventStreamCloudEventOrgConnectionUpdatedPreviousObjectConnection, - ) - from .event_stream_cloud_event_org_connection_updated_previous_object_organization import ( - EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganization, - ) - from .event_stream_cloud_event_org_connection_updated_previous_object_organization_access_level import ( - EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel, - ) - from .event_stream_cloud_event_org_connection_updated_previous_object_organization_access_level_0_enum import ( - EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel0Enum, - ) - from .event_stream_cloud_event_org_connection_updated_previous_object_organization_access_level_1_enum import ( - EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel1Enum, - ) - from .event_stream_cloud_event_org_connection_updated_previous_object_organization_access_level_2_enum import ( - EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel2Enum, - ) - from .event_stream_cloud_event_org_connection_updated_previous_object_organization_access_level_3_enum import ( - EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel3Enum, - ) - from .event_stream_cloud_event_org_connection_updated_previous_object_organization_member_access_level import ( - EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationMemberAccessLevel, - ) - from .event_stream_cloud_event_org_connection_updated_previous_object_organization_member_access_level_0_enum import ( - EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationMemberAccessLevel0Enum, - ) - from .event_stream_cloud_event_org_connection_updated_previous_object_organization_member_access_level_1_enum import ( - EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationMemberAccessLevel1Enum, - ) - from .event_stream_cloud_event_org_connection_updated_previous_object_organization_member_access_level_2_enum import ( - EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationMemberAccessLevel2Enum, - ) - from .event_stream_cloud_event_org_connection_updated_previous_object_organization_member_access_level_3_enum import ( - EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationMemberAccessLevel3Enum, - ) - from .event_stream_cloud_event_org_connection_updated_type_enum import ( - EventStreamCloudEventOrgConnectionUpdatedTypeEnum, - ) - from .event_stream_cloud_event_org_created import EventStreamCloudEventOrgCreated - from .event_stream_cloud_event_org_created_cloud_event import EventStreamCloudEventOrgCreatedCloudEvent - from .event_stream_cloud_event_org_created_cloud_event_type_enum import ( - EventStreamCloudEventOrgCreatedCloudEventTypeEnum, - ) - from .event_stream_cloud_event_org_created_data import EventStreamCloudEventOrgCreatedData - from .event_stream_cloud_event_org_created_object import EventStreamCloudEventOrgCreatedObject - from .event_stream_cloud_event_org_created_object_branding import EventStreamCloudEventOrgCreatedObjectBranding - from .event_stream_cloud_event_org_created_object_branding_colors import ( - EventStreamCloudEventOrgCreatedObjectBrandingColors, - ) - from .event_stream_cloud_event_org_created_object_metadata import EventStreamCloudEventOrgCreatedObjectMetadata - from .event_stream_cloud_event_org_created_previous_object import EventStreamCloudEventOrgCreatedPreviousObject - from .event_stream_cloud_event_org_created_previous_object_branding import ( - EventStreamCloudEventOrgCreatedPreviousObjectBranding, - ) - from .event_stream_cloud_event_org_created_previous_object_branding_colors import ( - EventStreamCloudEventOrgCreatedPreviousObjectBrandingColors, - ) - from .event_stream_cloud_event_org_created_previous_object_metadata import ( - EventStreamCloudEventOrgCreatedPreviousObjectMetadata, - ) - from .event_stream_cloud_event_org_created_type_enum import EventStreamCloudEventOrgCreatedTypeEnum - from .event_stream_cloud_event_org_deleted import EventStreamCloudEventOrgDeleted - from .event_stream_cloud_event_org_deleted_cloud_event import EventStreamCloudEventOrgDeletedCloudEvent - from .event_stream_cloud_event_org_deleted_cloud_event_type_enum import ( - EventStreamCloudEventOrgDeletedCloudEventTypeEnum, - ) - from .event_stream_cloud_event_org_deleted_data import EventStreamCloudEventOrgDeletedData - from .event_stream_cloud_event_org_deleted_object import EventStreamCloudEventOrgDeletedObject - from .event_stream_cloud_event_org_deleted_object_metadata import EventStreamCloudEventOrgDeletedObjectMetadata - from .event_stream_cloud_event_org_deleted_previous_object import EventStreamCloudEventOrgDeletedPreviousObject - from .event_stream_cloud_event_org_deleted_previous_object_metadata import ( - EventStreamCloudEventOrgDeletedPreviousObjectMetadata, - ) - from .event_stream_cloud_event_org_deleted_type_enum import EventStreamCloudEventOrgDeletedTypeEnum - from .event_stream_cloud_event_org_group_role_assigned import EventStreamCloudEventOrgGroupRoleAssigned - from .event_stream_cloud_event_org_group_role_assigned_cloud_event import ( - EventStreamCloudEventOrgGroupRoleAssignedCloudEvent, - ) - from .event_stream_cloud_event_org_group_role_assigned_cloud_event_type_enum import ( - EventStreamCloudEventOrgGroupRoleAssignedCloudEventTypeEnum, - ) - from .event_stream_cloud_event_org_group_role_assigned_data import EventStreamCloudEventOrgGroupRoleAssignedData - from .event_stream_cloud_event_org_group_role_assigned_object import EventStreamCloudEventOrgGroupRoleAssignedObject - from .event_stream_cloud_event_org_group_role_assigned_object_group import ( - EventStreamCloudEventOrgGroupRoleAssignedObjectGroup, - ) - from .event_stream_cloud_event_org_group_role_assigned_object_group_0 import ( - EventStreamCloudEventOrgGroupRoleAssignedObjectGroup0, - ) - from .event_stream_cloud_event_org_group_role_assigned_object_group_0_type_enum import ( - EventStreamCloudEventOrgGroupRoleAssignedObjectGroup0TypeEnum, - ) - from .event_stream_cloud_event_org_group_role_assigned_object_group_1 import ( - EventStreamCloudEventOrgGroupRoleAssignedObjectGroup1, - ) - from .event_stream_cloud_event_org_group_role_assigned_object_group_1_type_enum import ( - EventStreamCloudEventOrgGroupRoleAssignedObjectGroup1TypeEnum, - ) - from .event_stream_cloud_event_org_group_role_assigned_object_group_2 import ( - EventStreamCloudEventOrgGroupRoleAssignedObjectGroup2, - ) - from .event_stream_cloud_event_org_group_role_assigned_object_group_2_type_enum import ( - EventStreamCloudEventOrgGroupRoleAssignedObjectGroup2TypeEnum, - ) - from .event_stream_cloud_event_org_group_role_assigned_object_organization import ( - EventStreamCloudEventOrgGroupRoleAssignedObjectOrganization, - ) - from .event_stream_cloud_event_org_group_role_assigned_object_role import ( - EventStreamCloudEventOrgGroupRoleAssignedObjectRole, - ) - from .event_stream_cloud_event_org_group_role_assigned_previous_object import ( - EventStreamCloudEventOrgGroupRoleAssignedPreviousObject, - ) - from .event_stream_cloud_event_org_group_role_assigned_previous_object_group import ( - EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup, - ) - from .event_stream_cloud_event_org_group_role_assigned_previous_object_group_0 import ( - EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup0, - ) - from .event_stream_cloud_event_org_group_role_assigned_previous_object_group_0_type_enum import ( - EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup0TypeEnum, - ) - from .event_stream_cloud_event_org_group_role_assigned_previous_object_group_1 import ( - EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup1, - ) - from .event_stream_cloud_event_org_group_role_assigned_previous_object_group_1_type_enum import ( - EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup1TypeEnum, - ) - from .event_stream_cloud_event_org_group_role_assigned_previous_object_group_2 import ( - EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup2, - ) - from .event_stream_cloud_event_org_group_role_assigned_previous_object_group_2_type_enum import ( - EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup2TypeEnum, - ) - from .event_stream_cloud_event_org_group_role_assigned_previous_object_organization import ( - EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectOrganization, - ) - from .event_stream_cloud_event_org_group_role_assigned_previous_object_role import ( - EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectRole, - ) - from .event_stream_cloud_event_org_group_role_assigned_type_enum import ( - EventStreamCloudEventOrgGroupRoleAssignedTypeEnum, - ) - from .event_stream_cloud_event_org_group_role_deleted import EventStreamCloudEventOrgGroupRoleDeleted - from .event_stream_cloud_event_org_group_role_deleted_cloud_event import ( - EventStreamCloudEventOrgGroupRoleDeletedCloudEvent, - ) - from .event_stream_cloud_event_org_group_role_deleted_cloud_event_type_enum import ( - EventStreamCloudEventOrgGroupRoleDeletedCloudEventTypeEnum, - ) - from .event_stream_cloud_event_org_group_role_deleted_data import EventStreamCloudEventOrgGroupRoleDeletedData - from .event_stream_cloud_event_org_group_role_deleted_object import EventStreamCloudEventOrgGroupRoleDeletedObject - from .event_stream_cloud_event_org_group_role_deleted_object_group import ( - EventStreamCloudEventOrgGroupRoleDeletedObjectGroup, - ) - from .event_stream_cloud_event_org_group_role_deleted_object_group_0 import ( - EventStreamCloudEventOrgGroupRoleDeletedObjectGroup0, - ) - from .event_stream_cloud_event_org_group_role_deleted_object_group_0_type_enum import ( - EventStreamCloudEventOrgGroupRoleDeletedObjectGroup0TypeEnum, - ) - from .event_stream_cloud_event_org_group_role_deleted_object_group_1 import ( - EventStreamCloudEventOrgGroupRoleDeletedObjectGroup1, - ) - from .event_stream_cloud_event_org_group_role_deleted_object_group_1_type_enum import ( - EventStreamCloudEventOrgGroupRoleDeletedObjectGroup1TypeEnum, - ) - from .event_stream_cloud_event_org_group_role_deleted_object_group_2 import ( - EventStreamCloudEventOrgGroupRoleDeletedObjectGroup2, - ) - from .event_stream_cloud_event_org_group_role_deleted_object_group_2_type_enum import ( - EventStreamCloudEventOrgGroupRoleDeletedObjectGroup2TypeEnum, - ) - from .event_stream_cloud_event_org_group_role_deleted_object_organization import ( - EventStreamCloudEventOrgGroupRoleDeletedObjectOrganization, - ) - from .event_stream_cloud_event_org_group_role_deleted_object_role import ( - EventStreamCloudEventOrgGroupRoleDeletedObjectRole, - ) - from .event_stream_cloud_event_org_group_role_deleted_previous_object import ( - EventStreamCloudEventOrgGroupRoleDeletedPreviousObject, - ) - from .event_stream_cloud_event_org_group_role_deleted_previous_object_group import ( - EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup, - ) - from .event_stream_cloud_event_org_group_role_deleted_previous_object_group_0 import ( - EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup0, - ) - from .event_stream_cloud_event_org_group_role_deleted_previous_object_group_0_type_enum import ( - EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup0TypeEnum, - ) - from .event_stream_cloud_event_org_group_role_deleted_previous_object_group_1 import ( - EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup1, - ) - from .event_stream_cloud_event_org_group_role_deleted_previous_object_group_1_type_enum import ( - EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup1TypeEnum, - ) - from .event_stream_cloud_event_org_group_role_deleted_previous_object_group_2 import ( - EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup2, - ) - from .event_stream_cloud_event_org_group_role_deleted_previous_object_group_2_type_enum import ( - EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup2TypeEnum, - ) - from .event_stream_cloud_event_org_group_role_deleted_previous_object_organization import ( - EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectOrganization, - ) - from .event_stream_cloud_event_org_group_role_deleted_previous_object_role import ( - EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectRole, - ) - from .event_stream_cloud_event_org_group_role_deleted_type_enum import ( - EventStreamCloudEventOrgGroupRoleDeletedTypeEnum, - ) - from .event_stream_cloud_event_org_member_added import EventStreamCloudEventOrgMemberAdded - from .event_stream_cloud_event_org_member_added_cloud_event import EventStreamCloudEventOrgMemberAddedCloudEvent - from .event_stream_cloud_event_org_member_added_cloud_event_type_enum import ( - EventStreamCloudEventOrgMemberAddedCloudEventTypeEnum, - ) - from .event_stream_cloud_event_org_member_added_data import EventStreamCloudEventOrgMemberAddedData - from .event_stream_cloud_event_org_member_added_object import EventStreamCloudEventOrgMemberAddedObject - from .event_stream_cloud_event_org_member_added_object_organization import ( - EventStreamCloudEventOrgMemberAddedObjectOrganization, - ) - from .event_stream_cloud_event_org_member_added_object_user import EventStreamCloudEventOrgMemberAddedObjectUser - from .event_stream_cloud_event_org_member_added_previous_object import ( - EventStreamCloudEventOrgMemberAddedPreviousObject, - ) - from .event_stream_cloud_event_org_member_added_previous_object_organization import ( - EventStreamCloudEventOrgMemberAddedPreviousObjectOrganization, - ) - from .event_stream_cloud_event_org_member_added_previous_object_user import ( - EventStreamCloudEventOrgMemberAddedPreviousObjectUser, - ) - from .event_stream_cloud_event_org_member_added_type_enum import EventStreamCloudEventOrgMemberAddedTypeEnum - from .event_stream_cloud_event_org_member_deleted import EventStreamCloudEventOrgMemberDeleted - from .event_stream_cloud_event_org_member_deleted_cloud_event import EventStreamCloudEventOrgMemberDeletedCloudEvent - from .event_stream_cloud_event_org_member_deleted_cloud_event_type_enum import ( - EventStreamCloudEventOrgMemberDeletedCloudEventTypeEnum, - ) - from .event_stream_cloud_event_org_member_deleted_data import EventStreamCloudEventOrgMemberDeletedData - from .event_stream_cloud_event_org_member_deleted_object import EventStreamCloudEventOrgMemberDeletedObject - from .event_stream_cloud_event_org_member_deleted_object_organization import ( - EventStreamCloudEventOrgMemberDeletedObjectOrganization, - ) - from .event_stream_cloud_event_org_member_deleted_object_user import EventStreamCloudEventOrgMemberDeletedObjectUser - from .event_stream_cloud_event_org_member_deleted_previous_object import ( - EventStreamCloudEventOrgMemberDeletedPreviousObject, - ) - from .event_stream_cloud_event_org_member_deleted_previous_object_organization import ( - EventStreamCloudEventOrgMemberDeletedPreviousObjectOrganization, - ) - from .event_stream_cloud_event_org_member_deleted_previous_object_user import ( - EventStreamCloudEventOrgMemberDeletedPreviousObjectUser, - ) - from .event_stream_cloud_event_org_member_deleted_type_enum import EventStreamCloudEventOrgMemberDeletedTypeEnum - from .event_stream_cloud_event_org_member_role_assigned import EventStreamCloudEventOrgMemberRoleAssigned - from .event_stream_cloud_event_org_member_role_assigned_cloud_event import ( - EventStreamCloudEventOrgMemberRoleAssignedCloudEvent, - ) - from .event_stream_cloud_event_org_member_role_assigned_cloud_event_type_enum import ( - EventStreamCloudEventOrgMemberRoleAssignedCloudEventTypeEnum, - ) - from .event_stream_cloud_event_org_member_role_assigned_data import EventStreamCloudEventOrgMemberRoleAssignedData - from .event_stream_cloud_event_org_member_role_assigned_object import ( - EventStreamCloudEventOrgMemberRoleAssignedObject, - ) - from .event_stream_cloud_event_org_member_role_assigned_object_organization import ( - EventStreamCloudEventOrgMemberRoleAssignedObjectOrganization, - ) - from .event_stream_cloud_event_org_member_role_assigned_object_role import ( - EventStreamCloudEventOrgMemberRoleAssignedObjectRole, - ) - from .event_stream_cloud_event_org_member_role_assigned_object_user import ( - EventStreamCloudEventOrgMemberRoleAssignedObjectUser, - ) - from .event_stream_cloud_event_org_member_role_assigned_previous_object import ( - EventStreamCloudEventOrgMemberRoleAssignedPreviousObject, - ) - from .event_stream_cloud_event_org_member_role_assigned_previous_object_organization import ( - EventStreamCloudEventOrgMemberRoleAssignedPreviousObjectOrganization, - ) - from .event_stream_cloud_event_org_member_role_assigned_previous_object_role import ( - EventStreamCloudEventOrgMemberRoleAssignedPreviousObjectRole, - ) - from .event_stream_cloud_event_org_member_role_assigned_previous_object_user import ( - EventStreamCloudEventOrgMemberRoleAssignedPreviousObjectUser, - ) - from .event_stream_cloud_event_org_member_role_assigned_type_enum import ( - EventStreamCloudEventOrgMemberRoleAssignedTypeEnum, - ) - from .event_stream_cloud_event_org_member_role_deleted import EventStreamCloudEventOrgMemberRoleDeleted - from .event_stream_cloud_event_org_member_role_deleted_cloud_event import ( - EventStreamCloudEventOrgMemberRoleDeletedCloudEvent, - ) - from .event_stream_cloud_event_org_member_role_deleted_cloud_event_type_enum import ( - EventStreamCloudEventOrgMemberRoleDeletedCloudEventTypeEnum, - ) - from .event_stream_cloud_event_org_member_role_deleted_data import EventStreamCloudEventOrgMemberRoleDeletedData - from .event_stream_cloud_event_org_member_role_deleted_object import EventStreamCloudEventOrgMemberRoleDeletedObject - from .event_stream_cloud_event_org_member_role_deleted_object_organization import ( - EventStreamCloudEventOrgMemberRoleDeletedObjectOrganization, - ) - from .event_stream_cloud_event_org_member_role_deleted_object_role import ( - EventStreamCloudEventOrgMemberRoleDeletedObjectRole, - ) - from .event_stream_cloud_event_org_member_role_deleted_object_user import ( - EventStreamCloudEventOrgMemberRoleDeletedObjectUser, - ) - from .event_stream_cloud_event_org_member_role_deleted_previous_object import ( - EventStreamCloudEventOrgMemberRoleDeletedPreviousObject, - ) - from .event_stream_cloud_event_org_member_role_deleted_previous_object_organization import ( - EventStreamCloudEventOrgMemberRoleDeletedPreviousObjectOrganization, - ) - from .event_stream_cloud_event_org_member_role_deleted_previous_object_role import ( - EventStreamCloudEventOrgMemberRoleDeletedPreviousObjectRole, - ) - from .event_stream_cloud_event_org_member_role_deleted_previous_object_user import ( - EventStreamCloudEventOrgMemberRoleDeletedPreviousObjectUser, - ) - from .event_stream_cloud_event_org_member_role_deleted_type_enum import ( - EventStreamCloudEventOrgMemberRoleDeletedTypeEnum, - ) - from .event_stream_cloud_event_org_updated import EventStreamCloudEventOrgUpdated - from .event_stream_cloud_event_org_updated_cloud_event import EventStreamCloudEventOrgUpdatedCloudEvent - from .event_stream_cloud_event_org_updated_cloud_event_type_enum import ( - EventStreamCloudEventOrgUpdatedCloudEventTypeEnum, - ) - from .event_stream_cloud_event_org_updated_data import EventStreamCloudEventOrgUpdatedData - from .event_stream_cloud_event_org_updated_object import EventStreamCloudEventOrgUpdatedObject - from .event_stream_cloud_event_org_updated_object_branding import EventStreamCloudEventOrgUpdatedObjectBranding - from .event_stream_cloud_event_org_updated_object_branding_colors import ( - EventStreamCloudEventOrgUpdatedObjectBrandingColors, - ) - from .event_stream_cloud_event_org_updated_object_metadata import EventStreamCloudEventOrgUpdatedObjectMetadata - from .event_stream_cloud_event_org_updated_previous_object import EventStreamCloudEventOrgUpdatedPreviousObject - from .event_stream_cloud_event_org_updated_previous_object_branding import ( - EventStreamCloudEventOrgUpdatedPreviousObjectBranding, - ) - from .event_stream_cloud_event_org_updated_previous_object_branding_colors import ( - EventStreamCloudEventOrgUpdatedPreviousObjectBrandingColors, - ) - from .event_stream_cloud_event_org_updated_previous_object_metadata import ( - EventStreamCloudEventOrgUpdatedPreviousObjectMetadata, - ) - from .event_stream_cloud_event_org_updated_type_enum import EventStreamCloudEventOrgUpdatedTypeEnum - from .event_stream_cloud_event_spec_version_enum import EventStreamCloudEventSpecVersionEnum - from .event_stream_cloud_event_user_created import EventStreamCloudEventUserCreated - from .event_stream_cloud_event_user_created_cloud_event import EventStreamCloudEventUserCreatedCloudEvent - from .event_stream_cloud_event_user_created_cloud_event_type_enum import ( - EventStreamCloudEventUserCreatedCloudEventTypeEnum, - ) - from .event_stream_cloud_event_user_created_data import EventStreamCloudEventUserCreatedData - from .event_stream_cloud_event_user_created_object import EventStreamCloudEventUserCreatedObject - from .event_stream_cloud_event_user_created_object_app_metadata import ( - EventStreamCloudEventUserCreatedObjectAppMetadata, - ) - from .event_stream_cloud_event_user_created_object_identities_item import ( - EventStreamCloudEventUserCreatedObjectIdentitiesItem, - ) - from .event_stream_cloud_event_user_created_object_identities_item_custom import ( - EventStreamCloudEventUserCreatedObjectIdentitiesItemCustom, - ) - from .event_stream_cloud_event_user_created_object_identities_item_custom_is_social_enum import ( - EventStreamCloudEventUserCreatedObjectIdentitiesItemCustomIsSocialEnum, - ) - from .event_stream_cloud_event_user_created_object_identities_item_custom_profile_data import ( - EventStreamCloudEventUserCreatedObjectIdentitiesItemCustomProfileData, - ) - from .event_stream_cloud_event_user_created_object_identities_item_custom_provider_enum import ( - EventStreamCloudEventUserCreatedObjectIdentitiesItemCustomProviderEnum, - ) - from .event_stream_cloud_event_user_created_object_identities_item_custom_user_id import ( - EventStreamCloudEventUserCreatedObjectIdentitiesItemCustomUserId, - ) - from .event_stream_cloud_event_user_created_object_identities_item_database import ( - EventStreamCloudEventUserCreatedObjectIdentitiesItemDatabase, - ) - from .event_stream_cloud_event_user_created_object_identities_item_database_is_social_enum import ( - EventStreamCloudEventUserCreatedObjectIdentitiesItemDatabaseIsSocialEnum, - ) - from .event_stream_cloud_event_user_created_object_identities_item_database_profile_data import ( - EventStreamCloudEventUserCreatedObjectIdentitiesItemDatabaseProfileData, - ) - from .event_stream_cloud_event_user_created_object_identities_item_database_provider_enum import ( - EventStreamCloudEventUserCreatedObjectIdentitiesItemDatabaseProviderEnum, - ) - from .event_stream_cloud_event_user_created_object_identities_item_database_user_id import ( - EventStreamCloudEventUserCreatedObjectIdentitiesItemDatabaseUserId, - ) - from .event_stream_cloud_event_user_created_object_identities_item_enterprise import ( - EventStreamCloudEventUserCreatedObjectIdentitiesItemEnterprise, - ) - from .event_stream_cloud_event_user_created_object_identities_item_enterprise_is_social_enum import ( - EventStreamCloudEventUserCreatedObjectIdentitiesItemEnterpriseIsSocialEnum, - ) - from .event_stream_cloud_event_user_created_object_identities_item_enterprise_profile_data import ( - EventStreamCloudEventUserCreatedObjectIdentitiesItemEnterpriseProfileData, - ) - from .event_stream_cloud_event_user_created_object_identities_item_enterprise_provider_enum import ( - EventStreamCloudEventUserCreatedObjectIdentitiesItemEnterpriseProviderEnum, - ) - from .event_stream_cloud_event_user_created_object_identities_item_enterprise_user_id import ( - EventStreamCloudEventUserCreatedObjectIdentitiesItemEnterpriseUserId, - ) - from .event_stream_cloud_event_user_created_object_identities_item_passwordless import ( - EventStreamCloudEventUserCreatedObjectIdentitiesItemPasswordless, - ) - from .event_stream_cloud_event_user_created_object_identities_item_passwordless_is_social_enum import ( - EventStreamCloudEventUserCreatedObjectIdentitiesItemPasswordlessIsSocialEnum, - ) - from .event_stream_cloud_event_user_created_object_identities_item_passwordless_profile_data import ( - EventStreamCloudEventUserCreatedObjectIdentitiesItemPasswordlessProfileData, - ) - from .event_stream_cloud_event_user_created_object_identities_item_passwordless_provider_enum import ( - EventStreamCloudEventUserCreatedObjectIdentitiesItemPasswordlessProviderEnum, - ) - from .event_stream_cloud_event_user_created_object_identities_item_passwordless_user_id import ( - EventStreamCloudEventUserCreatedObjectIdentitiesItemPasswordlessUserId, - ) - from .event_stream_cloud_event_user_created_object_identities_item_social import ( - EventStreamCloudEventUserCreatedObjectIdentitiesItemSocial, - ) - from .event_stream_cloud_event_user_created_object_identities_item_social_is_social_enum import ( - EventStreamCloudEventUserCreatedObjectIdentitiesItemSocialIsSocialEnum, - ) - from .event_stream_cloud_event_user_created_object_identities_item_social_profile_data import ( - EventStreamCloudEventUserCreatedObjectIdentitiesItemSocialProfileData, - ) - from .event_stream_cloud_event_user_created_object_identities_item_social_provider_enum import ( - EventStreamCloudEventUserCreatedObjectIdentitiesItemSocialProviderEnum, - ) - from .event_stream_cloud_event_user_created_object_identities_item_social_user_id import ( - EventStreamCloudEventUserCreatedObjectIdentitiesItemSocialUserId, - ) - from .event_stream_cloud_event_user_created_object_user_metadata import ( - EventStreamCloudEventUserCreatedObjectUserMetadata, - ) - from .event_stream_cloud_event_user_created_previous_object import EventStreamCloudEventUserCreatedPreviousObject - from .event_stream_cloud_event_user_created_previous_object_app_metadata import ( - EventStreamCloudEventUserCreatedPreviousObjectAppMetadata, - ) - from .event_stream_cloud_event_user_created_previous_object_identities_item import ( - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItem, - ) - from .event_stream_cloud_event_user_created_previous_object_identities_item_custom import ( - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustom, - ) - from .event_stream_cloud_event_user_created_previous_object_identities_item_custom_is_social_enum import ( - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomIsSocialEnum, - ) - from .event_stream_cloud_event_user_created_previous_object_identities_item_custom_profile_data import ( - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomProfileData, - ) - from .event_stream_cloud_event_user_created_previous_object_identities_item_custom_provider_enum import ( - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomProviderEnum, - ) - from .event_stream_cloud_event_user_created_previous_object_identities_item_custom_user_id import ( - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomUserId, - ) - from .event_stream_cloud_event_user_created_previous_object_identities_item_database import ( - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabase, - ) - from .event_stream_cloud_event_user_created_previous_object_identities_item_database_is_social_enum import ( - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseIsSocialEnum, - ) - from .event_stream_cloud_event_user_created_previous_object_identities_item_database_profile_data import ( - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseProfileData, - ) - from .event_stream_cloud_event_user_created_previous_object_identities_item_database_provider_enum import ( - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseProviderEnum, - ) - from .event_stream_cloud_event_user_created_previous_object_identities_item_database_user_id import ( - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseUserId, - ) - from .event_stream_cloud_event_user_created_previous_object_identities_item_enterprise import ( - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterprise, - ) - from .event_stream_cloud_event_user_created_previous_object_identities_item_enterprise_is_social_enum import ( - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseIsSocialEnum, - ) - from .event_stream_cloud_event_user_created_previous_object_identities_item_enterprise_profile_data import ( - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseProfileData, - ) - from .event_stream_cloud_event_user_created_previous_object_identities_item_enterprise_provider_enum import ( - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseProviderEnum, - ) - from .event_stream_cloud_event_user_created_previous_object_identities_item_enterprise_user_id import ( - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseUserId, - ) - from .event_stream_cloud_event_user_created_previous_object_identities_item_passwordless import ( - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordless, - ) - from .event_stream_cloud_event_user_created_previous_object_identities_item_passwordless_is_social_enum import ( - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessIsSocialEnum, - ) - from .event_stream_cloud_event_user_created_previous_object_identities_item_passwordless_profile_data import ( - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessProfileData, - ) - from .event_stream_cloud_event_user_created_previous_object_identities_item_passwordless_provider_enum import ( - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessProviderEnum, - ) - from .event_stream_cloud_event_user_created_previous_object_identities_item_passwordless_user_id import ( - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessUserId, - ) - from .event_stream_cloud_event_user_created_previous_object_identities_item_social import ( - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocial, - ) - from .event_stream_cloud_event_user_created_previous_object_identities_item_social_is_social_enum import ( - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialIsSocialEnum, - ) - from .event_stream_cloud_event_user_created_previous_object_identities_item_social_profile_data import ( - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProfileData, - ) - from .event_stream_cloud_event_user_created_previous_object_identities_item_social_provider_enum import ( - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum, - ) - from .event_stream_cloud_event_user_created_previous_object_identities_item_social_user_id import ( - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialUserId, - ) - from .event_stream_cloud_event_user_created_previous_object_user_metadata import ( - EventStreamCloudEventUserCreatedPreviousObjectUserMetadata, - ) - from .event_stream_cloud_event_user_created_type_enum import EventStreamCloudEventUserCreatedTypeEnum - from .event_stream_cloud_event_user_deleted import EventStreamCloudEventUserDeleted - from .event_stream_cloud_event_user_deleted_cloud_event import EventStreamCloudEventUserDeletedCloudEvent - from .event_stream_cloud_event_user_deleted_cloud_event_type_enum import ( - EventStreamCloudEventUserDeletedCloudEventTypeEnum, - ) - from .event_stream_cloud_event_user_deleted_data import EventStreamCloudEventUserDeletedData - from .event_stream_cloud_event_user_deleted_object import EventStreamCloudEventUserDeletedObject - from .event_stream_cloud_event_user_deleted_object_app_metadata import ( - EventStreamCloudEventUserDeletedObjectAppMetadata, - ) - from .event_stream_cloud_event_user_deleted_object_identities_item import ( - EventStreamCloudEventUserDeletedObjectIdentitiesItem, - ) - from .event_stream_cloud_event_user_deleted_object_identities_item_custom import ( - EventStreamCloudEventUserDeletedObjectIdentitiesItemCustom, - ) - from .event_stream_cloud_event_user_deleted_object_identities_item_custom_is_social_enum import ( - EventStreamCloudEventUserDeletedObjectIdentitiesItemCustomIsSocialEnum, - ) - from .event_stream_cloud_event_user_deleted_object_identities_item_custom_profile_data import ( - EventStreamCloudEventUserDeletedObjectIdentitiesItemCustomProfileData, - ) - from .event_stream_cloud_event_user_deleted_object_identities_item_custom_provider_enum import ( - EventStreamCloudEventUserDeletedObjectIdentitiesItemCustomProviderEnum, - ) - from .event_stream_cloud_event_user_deleted_object_identities_item_custom_user_id import ( - EventStreamCloudEventUserDeletedObjectIdentitiesItemCustomUserId, - ) - from .event_stream_cloud_event_user_deleted_object_identities_item_database import ( - EventStreamCloudEventUserDeletedObjectIdentitiesItemDatabase, - ) - from .event_stream_cloud_event_user_deleted_object_identities_item_database_is_social_enum import ( - EventStreamCloudEventUserDeletedObjectIdentitiesItemDatabaseIsSocialEnum, - ) - from .event_stream_cloud_event_user_deleted_object_identities_item_database_profile_data import ( - EventStreamCloudEventUserDeletedObjectIdentitiesItemDatabaseProfileData, - ) - from .event_stream_cloud_event_user_deleted_object_identities_item_database_provider_enum import ( - EventStreamCloudEventUserDeletedObjectIdentitiesItemDatabaseProviderEnum, - ) - from .event_stream_cloud_event_user_deleted_object_identities_item_database_user_id import ( - EventStreamCloudEventUserDeletedObjectIdentitiesItemDatabaseUserId, - ) - from .event_stream_cloud_event_user_deleted_object_identities_item_enterprise import ( - EventStreamCloudEventUserDeletedObjectIdentitiesItemEnterprise, - ) - from .event_stream_cloud_event_user_deleted_object_identities_item_enterprise_is_social_enum import ( - EventStreamCloudEventUserDeletedObjectIdentitiesItemEnterpriseIsSocialEnum, - ) - from .event_stream_cloud_event_user_deleted_object_identities_item_enterprise_profile_data import ( - EventStreamCloudEventUserDeletedObjectIdentitiesItemEnterpriseProfileData, - ) - from .event_stream_cloud_event_user_deleted_object_identities_item_enterprise_provider_enum import ( - EventStreamCloudEventUserDeletedObjectIdentitiesItemEnterpriseProviderEnum, - ) - from .event_stream_cloud_event_user_deleted_object_identities_item_enterprise_user_id import ( - EventStreamCloudEventUserDeletedObjectIdentitiesItemEnterpriseUserId, - ) - from .event_stream_cloud_event_user_deleted_object_identities_item_passwordless import ( - EventStreamCloudEventUserDeletedObjectIdentitiesItemPasswordless, - ) - from .event_stream_cloud_event_user_deleted_object_identities_item_passwordless_is_social_enum import ( - EventStreamCloudEventUserDeletedObjectIdentitiesItemPasswordlessIsSocialEnum, - ) - from .event_stream_cloud_event_user_deleted_object_identities_item_passwordless_profile_data import ( - EventStreamCloudEventUserDeletedObjectIdentitiesItemPasswordlessProfileData, - ) - from .event_stream_cloud_event_user_deleted_object_identities_item_passwordless_provider_enum import ( - EventStreamCloudEventUserDeletedObjectIdentitiesItemPasswordlessProviderEnum, - ) - from .event_stream_cloud_event_user_deleted_object_identities_item_passwordless_user_id import ( - EventStreamCloudEventUserDeletedObjectIdentitiesItemPasswordlessUserId, - ) - from .event_stream_cloud_event_user_deleted_object_identities_item_social import ( - EventStreamCloudEventUserDeletedObjectIdentitiesItemSocial, - ) - from .event_stream_cloud_event_user_deleted_object_identities_item_social_is_social_enum import ( - EventStreamCloudEventUserDeletedObjectIdentitiesItemSocialIsSocialEnum, - ) - from .event_stream_cloud_event_user_deleted_object_identities_item_social_profile_data import ( - EventStreamCloudEventUserDeletedObjectIdentitiesItemSocialProfileData, - ) - from .event_stream_cloud_event_user_deleted_object_identities_item_social_provider_enum import ( - EventStreamCloudEventUserDeletedObjectIdentitiesItemSocialProviderEnum, - ) - from .event_stream_cloud_event_user_deleted_object_identities_item_social_user_id import ( - EventStreamCloudEventUserDeletedObjectIdentitiesItemSocialUserId, - ) - from .event_stream_cloud_event_user_deleted_object_user_metadata import ( - EventStreamCloudEventUserDeletedObjectUserMetadata, - ) - from .event_stream_cloud_event_user_deleted_previous_object import EventStreamCloudEventUserDeletedPreviousObject - from .event_stream_cloud_event_user_deleted_previous_object_app_metadata import ( - EventStreamCloudEventUserDeletedPreviousObjectAppMetadata, - ) - from .event_stream_cloud_event_user_deleted_previous_object_identities_item import ( - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItem, - ) - from .event_stream_cloud_event_user_deleted_previous_object_identities_item_custom import ( - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustom, - ) - from .event_stream_cloud_event_user_deleted_previous_object_identities_item_custom_is_social_enum import ( - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomIsSocialEnum, - ) - from .event_stream_cloud_event_user_deleted_previous_object_identities_item_custom_profile_data import ( - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomProfileData, - ) - from .event_stream_cloud_event_user_deleted_previous_object_identities_item_custom_provider_enum import ( - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomProviderEnum, - ) - from .event_stream_cloud_event_user_deleted_previous_object_identities_item_custom_user_id import ( - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomUserId, - ) - from .event_stream_cloud_event_user_deleted_previous_object_identities_item_database import ( - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabase, - ) - from .event_stream_cloud_event_user_deleted_previous_object_identities_item_database_is_social_enum import ( - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseIsSocialEnum, - ) - from .event_stream_cloud_event_user_deleted_previous_object_identities_item_database_profile_data import ( - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseProfileData, - ) - from .event_stream_cloud_event_user_deleted_previous_object_identities_item_database_provider_enum import ( - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseProviderEnum, - ) - from .event_stream_cloud_event_user_deleted_previous_object_identities_item_database_user_id import ( - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseUserId, - ) - from .event_stream_cloud_event_user_deleted_previous_object_identities_item_enterprise import ( - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterprise, - ) - from .event_stream_cloud_event_user_deleted_previous_object_identities_item_enterprise_is_social_enum import ( - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseIsSocialEnum, - ) - from .event_stream_cloud_event_user_deleted_previous_object_identities_item_enterprise_profile_data import ( - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseProfileData, - ) - from .event_stream_cloud_event_user_deleted_previous_object_identities_item_enterprise_provider_enum import ( - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseProviderEnum, - ) - from .event_stream_cloud_event_user_deleted_previous_object_identities_item_enterprise_user_id import ( - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseUserId, - ) - from .event_stream_cloud_event_user_deleted_previous_object_identities_item_passwordless import ( - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordless, - ) - from .event_stream_cloud_event_user_deleted_previous_object_identities_item_passwordless_is_social_enum import ( - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessIsSocialEnum, - ) - from .event_stream_cloud_event_user_deleted_previous_object_identities_item_passwordless_profile_data import ( - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessProfileData, - ) - from .event_stream_cloud_event_user_deleted_previous_object_identities_item_passwordless_provider_enum import ( - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessProviderEnum, - ) - from .event_stream_cloud_event_user_deleted_previous_object_identities_item_passwordless_user_id import ( - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessUserId, - ) - from .event_stream_cloud_event_user_deleted_previous_object_identities_item_social import ( - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocial, - ) - from .event_stream_cloud_event_user_deleted_previous_object_identities_item_social_is_social_enum import ( - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialIsSocialEnum, - ) - from .event_stream_cloud_event_user_deleted_previous_object_identities_item_social_profile_data import ( - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProfileData, - ) - from .event_stream_cloud_event_user_deleted_previous_object_identities_item_social_provider_enum import ( - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum, - ) - from .event_stream_cloud_event_user_deleted_previous_object_identities_item_social_user_id import ( - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialUserId, - ) - from .event_stream_cloud_event_user_deleted_previous_object_user_metadata import ( - EventStreamCloudEventUserDeletedPreviousObjectUserMetadata, - ) - from .event_stream_cloud_event_user_deleted_type_enum import EventStreamCloudEventUserDeletedTypeEnum - from .event_stream_cloud_event_user_updated import EventStreamCloudEventUserUpdated - from .event_stream_cloud_event_user_updated_cloud_event import EventStreamCloudEventUserUpdatedCloudEvent - from .event_stream_cloud_event_user_updated_cloud_event_type_enum import ( - EventStreamCloudEventUserUpdatedCloudEventTypeEnum, - ) - from .event_stream_cloud_event_user_updated_data import EventStreamCloudEventUserUpdatedData - from .event_stream_cloud_event_user_updated_object import EventStreamCloudEventUserUpdatedObject - from .event_stream_cloud_event_user_updated_object_app_metadata import ( - EventStreamCloudEventUserUpdatedObjectAppMetadata, - ) - from .event_stream_cloud_event_user_updated_object_identities_item import ( - EventStreamCloudEventUserUpdatedObjectIdentitiesItem, - ) - from .event_stream_cloud_event_user_updated_object_identities_item_custom import ( - EventStreamCloudEventUserUpdatedObjectIdentitiesItemCustom, - ) - from .event_stream_cloud_event_user_updated_object_identities_item_custom_is_social_enum import ( - EventStreamCloudEventUserUpdatedObjectIdentitiesItemCustomIsSocialEnum, - ) - from .event_stream_cloud_event_user_updated_object_identities_item_custom_profile_data import ( - EventStreamCloudEventUserUpdatedObjectIdentitiesItemCustomProfileData, - ) - from .event_stream_cloud_event_user_updated_object_identities_item_custom_provider_enum import ( - EventStreamCloudEventUserUpdatedObjectIdentitiesItemCustomProviderEnum, - ) - from .event_stream_cloud_event_user_updated_object_identities_item_custom_user_id import ( - EventStreamCloudEventUserUpdatedObjectIdentitiesItemCustomUserId, - ) - from .event_stream_cloud_event_user_updated_object_identities_item_database import ( - EventStreamCloudEventUserUpdatedObjectIdentitiesItemDatabase, - ) - from .event_stream_cloud_event_user_updated_object_identities_item_database_is_social_enum import ( - EventStreamCloudEventUserUpdatedObjectIdentitiesItemDatabaseIsSocialEnum, - ) - from .event_stream_cloud_event_user_updated_object_identities_item_database_profile_data import ( - EventStreamCloudEventUserUpdatedObjectIdentitiesItemDatabaseProfileData, - ) - from .event_stream_cloud_event_user_updated_object_identities_item_database_provider_enum import ( - EventStreamCloudEventUserUpdatedObjectIdentitiesItemDatabaseProviderEnum, - ) - from .event_stream_cloud_event_user_updated_object_identities_item_database_user_id import ( - EventStreamCloudEventUserUpdatedObjectIdentitiesItemDatabaseUserId, - ) - from .event_stream_cloud_event_user_updated_object_identities_item_enterprise import ( - EventStreamCloudEventUserUpdatedObjectIdentitiesItemEnterprise, - ) - from .event_stream_cloud_event_user_updated_object_identities_item_enterprise_is_social_enum import ( - EventStreamCloudEventUserUpdatedObjectIdentitiesItemEnterpriseIsSocialEnum, - ) - from .event_stream_cloud_event_user_updated_object_identities_item_enterprise_profile_data import ( - EventStreamCloudEventUserUpdatedObjectIdentitiesItemEnterpriseProfileData, - ) - from .event_stream_cloud_event_user_updated_object_identities_item_enterprise_provider_enum import ( - EventStreamCloudEventUserUpdatedObjectIdentitiesItemEnterpriseProviderEnum, - ) - from .event_stream_cloud_event_user_updated_object_identities_item_enterprise_user_id import ( - EventStreamCloudEventUserUpdatedObjectIdentitiesItemEnterpriseUserId, - ) - from .event_stream_cloud_event_user_updated_object_identities_item_passwordless import ( - EventStreamCloudEventUserUpdatedObjectIdentitiesItemPasswordless, - ) - from .event_stream_cloud_event_user_updated_object_identities_item_passwordless_is_social_enum import ( - EventStreamCloudEventUserUpdatedObjectIdentitiesItemPasswordlessIsSocialEnum, - ) - from .event_stream_cloud_event_user_updated_object_identities_item_passwordless_profile_data import ( - EventStreamCloudEventUserUpdatedObjectIdentitiesItemPasswordlessProfileData, - ) - from .event_stream_cloud_event_user_updated_object_identities_item_passwordless_provider_enum import ( - EventStreamCloudEventUserUpdatedObjectIdentitiesItemPasswordlessProviderEnum, - ) - from .event_stream_cloud_event_user_updated_object_identities_item_passwordless_user_id import ( - EventStreamCloudEventUserUpdatedObjectIdentitiesItemPasswordlessUserId, - ) - from .event_stream_cloud_event_user_updated_object_identities_item_social import ( - EventStreamCloudEventUserUpdatedObjectIdentitiesItemSocial, - ) - from .event_stream_cloud_event_user_updated_object_identities_item_social_is_social_enum import ( - EventStreamCloudEventUserUpdatedObjectIdentitiesItemSocialIsSocialEnum, - ) - from .event_stream_cloud_event_user_updated_object_identities_item_social_profile_data import ( - EventStreamCloudEventUserUpdatedObjectIdentitiesItemSocialProfileData, - ) - from .event_stream_cloud_event_user_updated_object_identities_item_social_provider_enum import ( - EventStreamCloudEventUserUpdatedObjectIdentitiesItemSocialProviderEnum, - ) - from .event_stream_cloud_event_user_updated_object_identities_item_social_user_id import ( - EventStreamCloudEventUserUpdatedObjectIdentitiesItemSocialUserId, - ) - from .event_stream_cloud_event_user_updated_object_user_metadata import ( - EventStreamCloudEventUserUpdatedObjectUserMetadata, - ) - from .event_stream_cloud_event_user_updated_previous_object import EventStreamCloudEventUserUpdatedPreviousObject - from .event_stream_cloud_event_user_updated_previous_object_app_metadata import ( - EventStreamCloudEventUserUpdatedPreviousObjectAppMetadata, - ) - from .event_stream_cloud_event_user_updated_previous_object_identities_item import ( - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItem, - ) - from .event_stream_cloud_event_user_updated_previous_object_identities_item_custom import ( - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustom, - ) - from .event_stream_cloud_event_user_updated_previous_object_identities_item_custom_is_social_enum import ( - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomIsSocialEnum, - ) - from .event_stream_cloud_event_user_updated_previous_object_identities_item_custom_profile_data import ( - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomProfileData, - ) - from .event_stream_cloud_event_user_updated_previous_object_identities_item_custom_provider_enum import ( - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomProviderEnum, - ) - from .event_stream_cloud_event_user_updated_previous_object_identities_item_custom_user_id import ( - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomUserId, - ) - from .event_stream_cloud_event_user_updated_previous_object_identities_item_database import ( - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabase, - ) - from .event_stream_cloud_event_user_updated_previous_object_identities_item_database_is_social_enum import ( - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseIsSocialEnum, - ) - from .event_stream_cloud_event_user_updated_previous_object_identities_item_database_profile_data import ( - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseProfileData, - ) - from .event_stream_cloud_event_user_updated_previous_object_identities_item_database_provider_enum import ( - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseProviderEnum, - ) - from .event_stream_cloud_event_user_updated_previous_object_identities_item_database_user_id import ( - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseUserId, - ) - from .event_stream_cloud_event_user_updated_previous_object_identities_item_enterprise import ( - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterprise, - ) - from .event_stream_cloud_event_user_updated_previous_object_identities_item_enterprise_is_social_enum import ( - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseIsSocialEnum, - ) - from .event_stream_cloud_event_user_updated_previous_object_identities_item_enterprise_profile_data import ( - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseProfileData, - ) - from .event_stream_cloud_event_user_updated_previous_object_identities_item_enterprise_provider_enum import ( - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseProviderEnum, - ) - from .event_stream_cloud_event_user_updated_previous_object_identities_item_enterprise_user_id import ( - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseUserId, - ) - from .event_stream_cloud_event_user_updated_previous_object_identities_item_passwordless import ( - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordless, - ) - from .event_stream_cloud_event_user_updated_previous_object_identities_item_passwordless_is_social_enum import ( - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessIsSocialEnum, - ) - from .event_stream_cloud_event_user_updated_previous_object_identities_item_passwordless_profile_data import ( - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessProfileData, - ) - from .event_stream_cloud_event_user_updated_previous_object_identities_item_passwordless_provider_enum import ( - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessProviderEnum, - ) - from .event_stream_cloud_event_user_updated_previous_object_identities_item_passwordless_user_id import ( - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessUserId, - ) - from .event_stream_cloud_event_user_updated_previous_object_identities_item_social import ( - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocial, - ) - from .event_stream_cloud_event_user_updated_previous_object_identities_item_social_is_social_enum import ( - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialIsSocialEnum, - ) - from .event_stream_cloud_event_user_updated_previous_object_identities_item_social_profile_data import ( - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProfileData, - ) - from .event_stream_cloud_event_user_updated_previous_object_identities_item_social_provider_enum import ( - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum, - ) - from .event_stream_cloud_event_user_updated_previous_object_identities_item_social_user_id import ( - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialUserId, - ) - from .event_stream_cloud_event_user_updated_previous_object_user_metadata import ( - EventStreamCloudEventUserUpdatedPreviousObjectUserMetadata, - ) - from .event_stream_cloud_event_user_updated_type_enum import EventStreamCloudEventUserUpdatedTypeEnum - from .event_stream_delivery import EventStreamDelivery - from .event_stream_delivery_attempt import EventStreamDeliveryAttempt - from .event_stream_delivery_event_type_enum import EventStreamDeliveryEventTypeEnum - from .event_stream_delivery_status_enum import EventStreamDeliveryStatusEnum - from .event_stream_destination_patch import EventStreamDestinationPatch - from .event_stream_event_bridge_aws_region_enum import EventStreamEventBridgeAwsRegionEnum - from .event_stream_event_bridge_configuration import EventStreamEventBridgeConfiguration - from .event_stream_event_bridge_destination import EventStreamEventBridgeDestination - from .event_stream_event_bridge_destination_type_enum import EventStreamEventBridgeDestinationTypeEnum - from .event_stream_event_bridge_response_content import EventStreamEventBridgeResponseContent - from .event_stream_event_type_enum import EventStreamEventTypeEnum - from .event_stream_response_content import EventStreamResponseContent - from .event_stream_status_enum import EventStreamStatusEnum - from .event_stream_subscribe_events_event_type_enum import EventStreamSubscribeEventsEventTypeEnum - from .event_stream_subscribe_events_event_type_param import EventStreamSubscribeEventsEventTypeParam - from .event_stream_subscribe_events_response_content import ( - EventStreamSubscribeEventsResponseContent, - EventStreamSubscribeEventsResponseContent_ConnectionCreated, - EventStreamSubscribeEventsResponseContent_ConnectionDeleted, - EventStreamSubscribeEventsResponseContent_ConnectionUpdated, - EventStreamSubscribeEventsResponseContent_Error, - EventStreamSubscribeEventsResponseContent_GroupCreated, - EventStreamSubscribeEventsResponseContent_GroupDeleted, - EventStreamSubscribeEventsResponseContent_GroupMemberAdded, - EventStreamSubscribeEventsResponseContent_GroupMemberDeleted, - EventStreamSubscribeEventsResponseContent_GroupRoleAssigned, - EventStreamSubscribeEventsResponseContent_GroupRoleDeleted, - EventStreamSubscribeEventsResponseContent_GroupUpdated, - EventStreamSubscribeEventsResponseContent_OffsetOnly, - EventStreamSubscribeEventsResponseContent_OrganizationConnectionAdded, - EventStreamSubscribeEventsResponseContent_OrganizationConnectionRemoved, - EventStreamSubscribeEventsResponseContent_OrganizationConnectionUpdated, - EventStreamSubscribeEventsResponseContent_OrganizationCreated, - EventStreamSubscribeEventsResponseContent_OrganizationDeleted, - EventStreamSubscribeEventsResponseContent_OrganizationGroupRoleAssigned, - EventStreamSubscribeEventsResponseContent_OrganizationGroupRoleDeleted, - EventStreamSubscribeEventsResponseContent_OrganizationMemberAdded, - EventStreamSubscribeEventsResponseContent_OrganizationMemberDeleted, - EventStreamSubscribeEventsResponseContent_OrganizationMemberRoleAssigned, - EventStreamSubscribeEventsResponseContent_OrganizationMemberRoleDeleted, - EventStreamSubscribeEventsResponseContent_OrganizationUpdated, - EventStreamSubscribeEventsResponseContent_UserCreated, - EventStreamSubscribeEventsResponseContent_UserDeleted, - EventStreamSubscribeEventsResponseContent_UserUpdated, - ) - from .event_stream_subscription import EventStreamSubscription - from .event_stream_test_event_type_enum import EventStreamTestEventTypeEnum - from .event_stream_webhook_authorization_response import EventStreamWebhookAuthorizationResponse - from .event_stream_webhook_basic_auth import EventStreamWebhookBasicAuth - from .event_stream_webhook_basic_auth_method_enum import EventStreamWebhookBasicAuthMethodEnum - from .event_stream_webhook_bearer_auth import EventStreamWebhookBearerAuth - from .event_stream_webhook_bearer_auth_method_enum import EventStreamWebhookBearerAuthMethodEnum - from .event_stream_webhook_configuration import EventStreamWebhookConfiguration - from .event_stream_webhook_custom_header_auth import EventStreamWebhookCustomHeaderAuth - from .event_stream_webhook_custom_header_auth_method_enum import EventStreamWebhookCustomHeaderAuthMethodEnum - from .event_stream_webhook_destination import EventStreamWebhookDestination - from .event_stream_webhook_destination_type_enum import EventStreamWebhookDestinationTypeEnum - from .event_stream_webhook_response_content import EventStreamWebhookResponseContent - from .experiment_list_item import ExperimentListItem - from .experiment_status_enum import ExperimentStatusEnum - from .experiment_transition_status_enum import ExperimentTransitionStatusEnum - from .experiment_validation_error import ExperimentValidationError - from .express_configuration import ExpressConfiguration - from .express_configuration_or_null import ExpressConfigurationOrNull - from .extensibility_email_provider_credentials import ExtensibilityEmailProviderCredentials - from .feature_flag import FeatureFlag - from .feature_flag_config_param import FeatureFlagConfigParam - from .feature_flag_config_param_type_enum import FeatureFlagConfigParamTypeEnum - from .feature_flag_config_params import FeatureFlagConfigParams - from .feature_flag_status_enum import FeatureFlagStatusEnum - from .feature_flag_type_enum import FeatureFlagTypeEnum - from .fed_cm_login import FedCmLogin - from .fed_cm_login_google import FedCmLoginGoogle - from .fed_cm_login_google_patch import FedCmLoginGooglePatch - from .fed_cm_login_patch import FedCmLoginPatch - from .flow_action import FlowAction - from .flow_action_activecampaign import FlowActionActivecampaign - from .flow_action_activecampaign_list_contacts import FlowActionActivecampaignListContacts - from .flow_action_activecampaign_list_contacts_action import FlowActionActivecampaignListContactsAction - from .flow_action_activecampaign_list_contacts_params import FlowActionActivecampaignListContactsParams - from .flow_action_activecampaign_list_contacts_type import FlowActionActivecampaignListContactsType - from .flow_action_activecampaign_upsert_contact import FlowActionActivecampaignUpsertContact - from .flow_action_activecampaign_upsert_contact_action import FlowActionActivecampaignUpsertContactAction - from .flow_action_activecampaign_upsert_contact_params import FlowActionActivecampaignUpsertContactParams - from .flow_action_activecampaign_upsert_contact_params_custom_fields import ( - FlowActionActivecampaignUpsertContactParamsCustomFields, - ) - from .flow_action_activecampaign_upsert_contact_type import FlowActionActivecampaignUpsertContactType - from .flow_action_airtable import FlowActionAirtable - from .flow_action_airtable_create_record import FlowActionAirtableCreateRecord - from .flow_action_airtable_create_record_action import FlowActionAirtableCreateRecordAction - from .flow_action_airtable_create_record_params import FlowActionAirtableCreateRecordParams - from .flow_action_airtable_create_record_params_fields import FlowActionAirtableCreateRecordParamsFields - from .flow_action_airtable_create_record_type import FlowActionAirtableCreateRecordType - from .flow_action_airtable_list_records import FlowActionAirtableListRecords - from .flow_action_airtable_list_records_action import FlowActionAirtableListRecordsAction - from .flow_action_airtable_list_records_params import FlowActionAirtableListRecordsParams - from .flow_action_airtable_list_records_type import FlowActionAirtableListRecordsType - from .flow_action_airtable_update_record import FlowActionAirtableUpdateRecord - from .flow_action_airtable_update_record_action import FlowActionAirtableUpdateRecordAction - from .flow_action_airtable_update_record_params import FlowActionAirtableUpdateRecordParams - from .flow_action_airtable_update_record_params_fields import FlowActionAirtableUpdateRecordParamsFields - from .flow_action_airtable_update_record_type import FlowActionAirtableUpdateRecordType - from .flow_action_auth_0 import FlowActionAuth0 - from .flow_action_auth_0_create_user import FlowActionAuth0CreateUser - from .flow_action_auth_0_create_user_action import FlowActionAuth0CreateUserAction - from .flow_action_auth_0_create_user_params import FlowActionAuth0CreateUserParams - from .flow_action_auth_0_create_user_params_payload import FlowActionAuth0CreateUserParamsPayload - from .flow_action_auth_0_create_user_type import FlowActionAuth0CreateUserType - from .flow_action_auth_0_get_user import FlowActionAuth0GetUser - from .flow_action_auth_0_get_user_action import FlowActionAuth0GetUserAction - from .flow_action_auth_0_get_user_params import FlowActionAuth0GetUserParams - from .flow_action_auth_0_get_user_type import FlowActionAuth0GetUserType - from .flow_action_auth_0_make_call import FlowActionAuth0MakeCall - from .flow_action_auth_0_make_call_action import FlowActionAuth0MakeCallAction - from .flow_action_auth_0_make_call_params import FlowActionAuth0MakeCallParams - from .flow_action_auth_0_make_call_params_custom_vars import FlowActionAuth0MakeCallParamsCustomVars - from .flow_action_auth_0_make_call_type import FlowActionAuth0MakeCallType - from .flow_action_auth_0_send_email import FlowActionAuth0SendEmail - from .flow_action_auth_0_send_email_action import FlowActionAuth0SendEmailAction - from .flow_action_auth_0_send_email_params import FlowActionAuth0SendEmailParams - from .flow_action_auth_0_send_email_params_from import FlowActionAuth0SendEmailParamsFrom - from .flow_action_auth_0_send_email_params_from_email import FlowActionAuth0SendEmailParamsFromEmail - from .flow_action_auth_0_send_email_params_to import FlowActionAuth0SendEmailParamsTo - from .flow_action_auth_0_send_email_type import FlowActionAuth0SendEmailType - from .flow_action_auth_0_send_request import FlowActionAuth0SendRequest - from .flow_action_auth_0_send_request_action import FlowActionAuth0SendRequestAction - from .flow_action_auth_0_send_request_params import FlowActionAuth0SendRequestParams - from .flow_action_auth_0_send_request_params_custom_vars import FlowActionAuth0SendRequestParamsCustomVars - from .flow_action_auth_0_send_request_params_headers import FlowActionAuth0SendRequestParamsHeaders - from .flow_action_auth_0_send_request_params_method import FlowActionAuth0SendRequestParamsMethod - from .flow_action_auth_0_send_request_params_payload import FlowActionAuth0SendRequestParamsPayload - from .flow_action_auth_0_send_request_params_payload_object import FlowActionAuth0SendRequestParamsPayloadObject - from .flow_action_auth_0_send_request_params_query_params import FlowActionAuth0SendRequestParamsQueryParams - from .flow_action_auth_0_send_request_params_query_params_value import ( - FlowActionAuth0SendRequestParamsQueryParamsValue, - ) - from .flow_action_auth_0_send_request_type import FlowActionAuth0SendRequestType - from .flow_action_auth_0_send_sms import FlowActionAuth0SendSms - from .flow_action_auth_0_send_sms_action import FlowActionAuth0SendSmsAction - from .flow_action_auth_0_send_sms_params import FlowActionAuth0SendSmsParams - from .flow_action_auth_0_send_sms_params_custom_vars import FlowActionAuth0SendSmsParamsCustomVars - from .flow_action_auth_0_send_sms_type import FlowActionAuth0SendSmsType - from .flow_action_auth_0_update_user import FlowActionAuth0UpdateUser - from .flow_action_auth_0_update_user_action import FlowActionAuth0UpdateUserAction - from .flow_action_auth_0_update_user_params import FlowActionAuth0UpdateUserParams - from .flow_action_auth_0_update_user_params_changes import FlowActionAuth0UpdateUserParamsChanges - from .flow_action_auth_0_update_user_type import FlowActionAuth0UpdateUserType - from .flow_action_bigquery import FlowActionBigquery - from .flow_action_bigquery_insert_rows import FlowActionBigqueryInsertRows - from .flow_action_bigquery_insert_rows_action import FlowActionBigqueryInsertRowsAction - from .flow_action_bigquery_insert_rows_params import FlowActionBigqueryInsertRowsParams - from .flow_action_bigquery_insert_rows_params_data import FlowActionBigqueryInsertRowsParamsData - from .flow_action_bigquery_insert_rows_type import FlowActionBigqueryInsertRowsType - from .flow_action_clearbit import FlowActionClearbit - from .flow_action_clearbit_find_company import FlowActionClearbitFindCompany - from .flow_action_clearbit_find_company_action import FlowActionClearbitFindCompanyAction - from .flow_action_clearbit_find_company_params import FlowActionClearbitFindCompanyParams - from .flow_action_clearbit_find_company_type import FlowActionClearbitFindCompanyType - from .flow_action_clearbit_find_person import FlowActionClearbitFindPerson - from .flow_action_clearbit_find_person_action import FlowActionClearbitFindPersonAction - from .flow_action_clearbit_find_person_params import FlowActionClearbitFindPersonParams - from .flow_action_clearbit_find_person_type import FlowActionClearbitFindPersonType - from .flow_action_email import FlowActionEmail - from .flow_action_email_verify_email import FlowActionEmailVerifyEmail - from .flow_action_email_verify_email_action import FlowActionEmailVerifyEmailAction - from .flow_action_email_verify_email_params import FlowActionEmailVerifyEmailParams - from .flow_action_email_verify_email_params_rules import FlowActionEmailVerifyEmailParamsRules - from .flow_action_email_verify_email_type import FlowActionEmailVerifyEmailType - from .flow_action_flow import FlowActionFlow - from .flow_action_flow_boolean_condition import FlowActionFlowBooleanCondition - from .flow_action_flow_boolean_condition_action import FlowActionFlowBooleanConditionAction - from .flow_action_flow_boolean_condition_params import FlowActionFlowBooleanConditionParams - from .flow_action_flow_boolean_condition_type import FlowActionFlowBooleanConditionType - from .flow_action_flow_delay_flow import FlowActionFlowDelayFlow - from .flow_action_flow_delay_flow_action import FlowActionFlowDelayFlowAction - from .flow_action_flow_delay_flow_params import FlowActionFlowDelayFlowParams - from .flow_action_flow_delay_flow_params_number import FlowActionFlowDelayFlowParamsNumber - from .flow_action_flow_delay_flow_params_units import FlowActionFlowDelayFlowParamsUnits - from .flow_action_flow_delay_flow_type import FlowActionFlowDelayFlowType - from .flow_action_flow_do_nothing import FlowActionFlowDoNothing - from .flow_action_flow_do_nothing_action import FlowActionFlowDoNothingAction - from .flow_action_flow_do_nothing_params import FlowActionFlowDoNothingParams - from .flow_action_flow_do_nothing_type import FlowActionFlowDoNothingType - from .flow_action_flow_error_message import FlowActionFlowErrorMessage - from .flow_action_flow_error_message_action import FlowActionFlowErrorMessageAction - from .flow_action_flow_error_message_params import FlowActionFlowErrorMessageParams - from .flow_action_flow_error_message_type import FlowActionFlowErrorMessageType - from .flow_action_flow_map_value import FlowActionFlowMapValue - from .flow_action_flow_map_value_action import FlowActionFlowMapValueAction - from .flow_action_flow_map_value_params import FlowActionFlowMapValueParams - from .flow_action_flow_map_value_params_cases import FlowActionFlowMapValueParamsCases - from .flow_action_flow_map_value_params_fallback import FlowActionFlowMapValueParamsFallback - from .flow_action_flow_map_value_params_fallback_object import FlowActionFlowMapValueParamsFallbackObject - from .flow_action_flow_map_value_params_input import FlowActionFlowMapValueParamsInput - from .flow_action_flow_map_value_type import FlowActionFlowMapValueType - from .flow_action_flow_return_json import FlowActionFlowReturnJson - from .flow_action_flow_return_json_action import FlowActionFlowReturnJsonAction - from .flow_action_flow_return_json_params import FlowActionFlowReturnJsonParams - from .flow_action_flow_return_json_params_payload import FlowActionFlowReturnJsonParamsPayload - from .flow_action_flow_return_json_params_payload_object import FlowActionFlowReturnJsonParamsPayloadObject - from .flow_action_flow_return_json_type import FlowActionFlowReturnJsonType - from .flow_action_flow_store_vars import FlowActionFlowStoreVars - from .flow_action_flow_store_vars_action import FlowActionFlowStoreVarsAction - from .flow_action_flow_store_vars_params import FlowActionFlowStoreVarsParams - from .flow_action_flow_store_vars_params_vars import FlowActionFlowStoreVarsParamsVars - from .flow_action_flow_store_vars_type import FlowActionFlowStoreVarsType - from .flow_action_google_sheets import FlowActionGoogleSheets - from .flow_action_google_sheets_add_row import FlowActionGoogleSheetsAddRow - from .flow_action_google_sheets_add_row_action import FlowActionGoogleSheetsAddRowAction - from .flow_action_google_sheets_add_row_params import FlowActionGoogleSheetsAddRowParams - from .flow_action_google_sheets_add_row_params_sheet_id import FlowActionGoogleSheetsAddRowParamsSheetId - from .flow_action_google_sheets_add_row_params_values import FlowActionGoogleSheetsAddRowParamsValues - from .flow_action_google_sheets_add_row_type import FlowActionGoogleSheetsAddRowType - from .flow_action_http import FlowActionHttp - from .flow_action_http_send_request import FlowActionHttpSendRequest - from .flow_action_http_send_request_action import FlowActionHttpSendRequestAction - from .flow_action_http_send_request_params import FlowActionHttpSendRequestParams - from .flow_action_http_send_request_params_basic_auth import FlowActionHttpSendRequestParamsBasicAuth - from .flow_action_http_send_request_params_content_type import FlowActionHttpSendRequestParamsContentType - from .flow_action_http_send_request_params_headers import FlowActionHttpSendRequestParamsHeaders - from .flow_action_http_send_request_params_method import FlowActionHttpSendRequestParamsMethod - from .flow_action_http_send_request_params_payload import FlowActionHttpSendRequestParamsPayload - from .flow_action_http_send_request_params_payload_object import FlowActionHttpSendRequestParamsPayloadObject - from .flow_action_http_send_request_params_query_params import FlowActionHttpSendRequestParamsQueryParams - from .flow_action_http_send_request_params_query_params_value import FlowActionHttpSendRequestParamsQueryParamsValue - from .flow_action_http_send_request_type import FlowActionHttpSendRequestType - from .flow_action_hubspot import FlowActionHubspot - from .flow_action_hubspot_enroll_contact import FlowActionHubspotEnrollContact - from .flow_action_hubspot_enroll_contact_action import FlowActionHubspotEnrollContactAction - from .flow_action_hubspot_enroll_contact_params import FlowActionHubspotEnrollContactParams - from .flow_action_hubspot_enroll_contact_params_workflow_id import FlowActionHubspotEnrollContactParamsWorkflowId - from .flow_action_hubspot_enroll_contact_type import FlowActionHubspotEnrollContactType - from .flow_action_hubspot_get_contact import FlowActionHubspotGetContact - from .flow_action_hubspot_get_contact_action import FlowActionHubspotGetContactAction - from .flow_action_hubspot_get_contact_params import FlowActionHubspotGetContactParams - from .flow_action_hubspot_get_contact_type import FlowActionHubspotGetContactType - from .flow_action_hubspot_upsert_contact import FlowActionHubspotUpsertContact - from .flow_action_hubspot_upsert_contact_action import FlowActionHubspotUpsertContactAction - from .flow_action_hubspot_upsert_contact_params import FlowActionHubspotUpsertContactParams - from .flow_action_hubspot_upsert_contact_params_property import FlowActionHubspotUpsertContactParamsProperty - from .flow_action_hubspot_upsert_contact_type import FlowActionHubspotUpsertContactType - from .flow_action_json import FlowActionJson - from .flow_action_json_create_json import FlowActionJsonCreateJson - from .flow_action_json_create_json_action import FlowActionJsonCreateJsonAction - from .flow_action_json_create_json_params import FlowActionJsonCreateJsonParams - from .flow_action_json_create_json_params_object import FlowActionJsonCreateJsonParamsObject - from .flow_action_json_create_json_type import FlowActionJsonCreateJsonType - from .flow_action_json_parse_json import FlowActionJsonParseJson - from .flow_action_json_parse_json_action import FlowActionJsonParseJsonAction - from .flow_action_json_parse_json_params import FlowActionJsonParseJsonParams - from .flow_action_json_parse_json_type import FlowActionJsonParseJsonType - from .flow_action_json_serialize_json import FlowActionJsonSerializeJson - from .flow_action_json_serialize_json_action import FlowActionJsonSerializeJsonAction - from .flow_action_json_serialize_json_params import FlowActionJsonSerializeJsonParams - from .flow_action_json_serialize_json_params_object import FlowActionJsonSerializeJsonParamsObject - from .flow_action_json_serialize_json_params_object_object import FlowActionJsonSerializeJsonParamsObjectObject - from .flow_action_json_serialize_json_type import FlowActionJsonSerializeJsonType - from .flow_action_jwt import FlowActionJwt - from .flow_action_jwt_decode_jwt import FlowActionJwtDecodeJwt - from .flow_action_jwt_decode_jwt_action import FlowActionJwtDecodeJwtAction - from .flow_action_jwt_decode_jwt_params import FlowActionJwtDecodeJwtParams - from .flow_action_jwt_decode_jwt_type import FlowActionJwtDecodeJwtType - from .flow_action_jwt_sign_jwt import FlowActionJwtSignJwt - from .flow_action_jwt_sign_jwt_action import FlowActionJwtSignJwtAction - from .flow_action_jwt_sign_jwt_params import FlowActionJwtSignJwtParams - from .flow_action_jwt_sign_jwt_params_payload import FlowActionJwtSignJwtParamsPayload - from .flow_action_jwt_sign_jwt_type import FlowActionJwtSignJwtType - from .flow_action_jwt_verify_jwt import FlowActionJwtVerifyJwt - from .flow_action_jwt_verify_jwt_action import FlowActionJwtVerifyJwtAction - from .flow_action_jwt_verify_jwt_params import FlowActionJwtVerifyJwtParams - from .flow_action_jwt_verify_jwt_type import FlowActionJwtVerifyJwtType - from .flow_action_mailchimp import FlowActionMailchimp - from .flow_action_mailchimp_upsert_member import FlowActionMailchimpUpsertMember - from .flow_action_mailchimp_upsert_member_action import FlowActionMailchimpUpsertMemberAction - from .flow_action_mailchimp_upsert_member_params import FlowActionMailchimpUpsertMemberParams - from .flow_action_mailchimp_upsert_member_params_member import FlowActionMailchimpUpsertMemberParamsMember - from .flow_action_mailchimp_upsert_member_params_member_merge_fields import ( - FlowActionMailchimpUpsertMemberParamsMemberMergeFields, - ) - from .flow_action_mailchimp_upsert_member_type import FlowActionMailchimpUpsertMemberType - from .flow_action_mailjet import FlowActionMailjet - from .flow_action_mailjet_send_email import FlowActionMailjetSendEmail - from .flow_action_mailjet_send_email_action import FlowActionMailjetSendEmailAction - from .flow_action_mailjet_send_email_params import FlowActionMailjetSendEmailParams - from .flow_action_mailjet_send_email_params_content import FlowActionMailjetSendEmailParamsContent - from .flow_action_mailjet_send_email_params_template_id import FlowActionMailjetSendEmailParamsTemplateId - from .flow_action_mailjet_send_email_type import FlowActionMailjetSendEmailType - from .flow_action_otp import FlowActionOtp - from .flow_action_otp_generate_code import FlowActionOtpGenerateCode - from .flow_action_otp_generate_code_action import FlowActionOtpGenerateCodeAction - from .flow_action_otp_generate_code_params import FlowActionOtpGenerateCodeParams - from .flow_action_otp_generate_code_type import FlowActionOtpGenerateCodeType - from .flow_action_otp_verify_code import FlowActionOtpVerifyCode - from .flow_action_otp_verify_code_action import FlowActionOtpVerifyCodeAction - from .flow_action_otp_verify_code_params import FlowActionOtpVerifyCodeParams - from .flow_action_otp_verify_code_params_code import FlowActionOtpVerifyCodeParamsCode - from .flow_action_otp_verify_code_type import FlowActionOtpVerifyCodeType - from .flow_action_pipedrive import FlowActionPipedrive - from .flow_action_pipedrive_add_deal import FlowActionPipedriveAddDeal - from .flow_action_pipedrive_add_deal_action import FlowActionPipedriveAddDealAction - from .flow_action_pipedrive_add_deal_params import FlowActionPipedriveAddDealParams - from .flow_action_pipedrive_add_deal_params_fields import FlowActionPipedriveAddDealParamsFields - from .flow_action_pipedrive_add_deal_params_organization_id import FlowActionPipedriveAddDealParamsOrganizationId - from .flow_action_pipedrive_add_deal_params_person_id import FlowActionPipedriveAddDealParamsPersonId - from .flow_action_pipedrive_add_deal_params_stage_id import FlowActionPipedriveAddDealParamsStageId - from .flow_action_pipedrive_add_deal_params_user_id import FlowActionPipedriveAddDealParamsUserId - from .flow_action_pipedrive_add_deal_type import FlowActionPipedriveAddDealType - from .flow_action_pipedrive_add_organization import FlowActionPipedriveAddOrganization - from .flow_action_pipedrive_add_organization_action import FlowActionPipedriveAddOrganizationAction - from .flow_action_pipedrive_add_organization_params import FlowActionPipedriveAddOrganizationParams - from .flow_action_pipedrive_add_organization_params_fields import FlowActionPipedriveAddOrganizationParamsFields - from .flow_action_pipedrive_add_organization_params_owner_id import FlowActionPipedriveAddOrganizationParamsOwnerId - from .flow_action_pipedrive_add_organization_type import FlowActionPipedriveAddOrganizationType - from .flow_action_pipedrive_add_person import FlowActionPipedriveAddPerson - from .flow_action_pipedrive_add_person_action import FlowActionPipedriveAddPersonAction - from .flow_action_pipedrive_add_person_params import FlowActionPipedriveAddPersonParams - from .flow_action_pipedrive_add_person_params_fields import FlowActionPipedriveAddPersonParamsFields - from .flow_action_pipedrive_add_person_params_organization_id import ( - FlowActionPipedriveAddPersonParamsOrganizationId, - ) - from .flow_action_pipedrive_add_person_params_owner_id import FlowActionPipedriveAddPersonParamsOwnerId - from .flow_action_pipedrive_add_person_type import FlowActionPipedriveAddPersonType - from .flow_action_salesforce import FlowActionSalesforce - from .flow_action_salesforce_create_lead import FlowActionSalesforceCreateLead - from .flow_action_salesforce_create_lead_action import FlowActionSalesforceCreateLeadAction - from .flow_action_salesforce_create_lead_params import FlowActionSalesforceCreateLeadParams - from .flow_action_salesforce_create_lead_params_payload import FlowActionSalesforceCreateLeadParamsPayload - from .flow_action_salesforce_create_lead_type import FlowActionSalesforceCreateLeadType - from .flow_action_salesforce_get_lead import FlowActionSalesforceGetLead - from .flow_action_salesforce_get_lead_action import FlowActionSalesforceGetLeadAction - from .flow_action_salesforce_get_lead_params import FlowActionSalesforceGetLeadParams - from .flow_action_salesforce_get_lead_type import FlowActionSalesforceGetLeadType - from .flow_action_salesforce_search_leads import FlowActionSalesforceSearchLeads - from .flow_action_salesforce_search_leads_action import FlowActionSalesforceSearchLeadsAction - from .flow_action_salesforce_search_leads_params import FlowActionSalesforceSearchLeadsParams - from .flow_action_salesforce_search_leads_params_search_field import ( - FlowActionSalesforceSearchLeadsParamsSearchField, - ) - from .flow_action_salesforce_search_leads_type import FlowActionSalesforceSearchLeadsType - from .flow_action_salesforce_update_lead import FlowActionSalesforceUpdateLead - from .flow_action_salesforce_update_lead_action import FlowActionSalesforceUpdateLeadAction - from .flow_action_salesforce_update_lead_params import FlowActionSalesforceUpdateLeadParams - from .flow_action_salesforce_update_lead_params_payload import FlowActionSalesforceUpdateLeadParamsPayload - from .flow_action_salesforce_update_lead_type import FlowActionSalesforceUpdateLeadType - from .flow_action_sendgrid import FlowActionSendgrid - from .flow_action_sendgrid_send_email import FlowActionSendgridSendEmail - from .flow_action_sendgrid_send_email_action import FlowActionSendgridSendEmailAction - from .flow_action_sendgrid_send_email_params import FlowActionSendgridSendEmailParams - from .flow_action_sendgrid_send_email_params_person import FlowActionSendgridSendEmailParamsPerson - from .flow_action_sendgrid_send_email_type import FlowActionSendgridSendEmailType - from .flow_action_slack import FlowActionSlack - from .flow_action_slack_post_message import FlowActionSlackPostMessage - from .flow_action_slack_post_message_action import FlowActionSlackPostMessageAction - from .flow_action_slack_post_message_params import FlowActionSlackPostMessageParams - from .flow_action_slack_post_message_params_attachment import FlowActionSlackPostMessageParamsAttachment - from .flow_action_slack_post_message_params_attachment_color import FlowActionSlackPostMessageParamsAttachmentColor - from .flow_action_slack_post_message_params_attachment_field import FlowActionSlackPostMessageParamsAttachmentField - from .flow_action_slack_post_message_type import FlowActionSlackPostMessageType - from .flow_action_stripe import FlowActionStripe - from .flow_action_stripe_add_tax_id import FlowActionStripeAddTaxId - from .flow_action_stripe_add_tax_id_action import FlowActionStripeAddTaxIdAction - from .flow_action_stripe_add_tax_id_params import FlowActionStripeAddTaxIdParams - from .flow_action_stripe_add_tax_id_type import FlowActionStripeAddTaxIdType - from .flow_action_stripe_address import FlowActionStripeAddress - from .flow_action_stripe_create_customer import FlowActionStripeCreateCustomer - from .flow_action_stripe_create_customer_action import FlowActionStripeCreateCustomerAction - from .flow_action_stripe_create_customer_params import FlowActionStripeCreateCustomerParams - from .flow_action_stripe_create_customer_type import FlowActionStripeCreateCustomerType - from .flow_action_stripe_create_portal_session import FlowActionStripeCreatePortalSession - from .flow_action_stripe_create_portal_session_action import FlowActionStripeCreatePortalSessionAction - from .flow_action_stripe_create_portal_session_params import FlowActionStripeCreatePortalSessionParams - from .flow_action_stripe_create_portal_session_type import FlowActionStripeCreatePortalSessionType - from .flow_action_stripe_delete_tax_id import FlowActionStripeDeleteTaxId - from .flow_action_stripe_delete_tax_id_action import FlowActionStripeDeleteTaxIdAction - from .flow_action_stripe_delete_tax_id_params import FlowActionStripeDeleteTaxIdParams - from .flow_action_stripe_delete_tax_id_type import FlowActionStripeDeleteTaxIdType - from .flow_action_stripe_find_customers import FlowActionStripeFindCustomers - from .flow_action_stripe_find_customers_action import FlowActionStripeFindCustomersAction - from .flow_action_stripe_find_customers_params import FlowActionStripeFindCustomersParams - from .flow_action_stripe_find_customers_type import FlowActionStripeFindCustomersType - from .flow_action_stripe_get_customer import FlowActionStripeGetCustomer - from .flow_action_stripe_get_customer_action import FlowActionStripeGetCustomerAction - from .flow_action_stripe_get_customer_params import FlowActionStripeGetCustomerParams - from .flow_action_stripe_get_customer_type import FlowActionStripeGetCustomerType - from .flow_action_stripe_metadata import FlowActionStripeMetadata - from .flow_action_stripe_tax_id import FlowActionStripeTaxId - from .flow_action_stripe_update_customer import FlowActionStripeUpdateCustomer - from .flow_action_stripe_update_customer_action import FlowActionStripeUpdateCustomerAction - from .flow_action_stripe_update_customer_params import FlowActionStripeUpdateCustomerParams - from .flow_action_stripe_update_customer_type import FlowActionStripeUpdateCustomerType - from .flow_action_telegram import FlowActionTelegram - from .flow_action_telegram_send_message import FlowActionTelegramSendMessage - from .flow_action_telegram_send_message_action import FlowActionTelegramSendMessageAction - from .flow_action_telegram_send_message_params import FlowActionTelegramSendMessageParams - from .flow_action_telegram_send_message_type import FlowActionTelegramSendMessageType - from .flow_action_twilio import FlowActionTwilio - from .flow_action_twilio_make_call import FlowActionTwilioMakeCall - from .flow_action_twilio_make_call_action import FlowActionTwilioMakeCallAction - from .flow_action_twilio_make_call_params import FlowActionTwilioMakeCallParams - from .flow_action_twilio_make_call_type import FlowActionTwilioMakeCallType - from .flow_action_twilio_send_sms import FlowActionTwilioSendSms - from .flow_action_twilio_send_sms_action import FlowActionTwilioSendSmsAction - from .flow_action_twilio_send_sms_params import FlowActionTwilioSendSmsParams - from .flow_action_twilio_send_sms_type import FlowActionTwilioSendSmsType - from .flow_action_whatsapp import FlowActionWhatsapp - from .flow_action_whatsapp_send_message import FlowActionWhatsappSendMessage - from .flow_action_whatsapp_send_message_action import FlowActionWhatsappSendMessageAction - from .flow_action_whatsapp_send_message_params import FlowActionWhatsappSendMessageParams - from .flow_action_whatsapp_send_message_params_payload import FlowActionWhatsappSendMessageParamsPayload - from .flow_action_whatsapp_send_message_params_payload_object import ( - FlowActionWhatsappSendMessageParamsPayloadObject, - ) - from .flow_action_whatsapp_send_message_params_type import FlowActionWhatsappSendMessageParamsType - from .flow_action_whatsapp_send_message_type import FlowActionWhatsappSendMessageType - from .flow_action_xml import FlowActionXml - from .flow_action_xml_parse_xml import FlowActionXmlParseXml - from .flow_action_xml_parse_xml_action import FlowActionXmlParseXmlAction - from .flow_action_xml_parse_xml_params import FlowActionXmlParseXmlParams - from .flow_action_xml_parse_xml_type import FlowActionXmlParseXmlType - from .flow_action_xml_serialize_xml import FlowActionXmlSerializeXml - from .flow_action_xml_serialize_xml_action import FlowActionXmlSerializeXmlAction - from .flow_action_xml_serialize_xml_params import FlowActionXmlSerializeXmlParams - from .flow_action_xml_serialize_xml_params_object import FlowActionXmlSerializeXmlParamsObject - from .flow_action_xml_serialize_xml_params_object_object import FlowActionXmlSerializeXmlParamsObjectObject - from .flow_action_xml_serialize_xml_type import FlowActionXmlSerializeXmlType - from .flow_action_zapier import FlowActionZapier - from .flow_action_zapier_trigger_webhook import FlowActionZapierTriggerWebhook - from .flow_action_zapier_trigger_webhook_action import FlowActionZapierTriggerWebhookAction - from .flow_action_zapier_trigger_webhook_params import FlowActionZapierTriggerWebhookParams - from .flow_action_zapier_trigger_webhook_params_method import FlowActionZapierTriggerWebhookParamsMethod - from .flow_action_zapier_trigger_webhook_type import FlowActionZapierTriggerWebhookType - from .flow_execution_debug import FlowExecutionDebug - from .flow_execution_summary import FlowExecutionSummary - from .flow_summary import FlowSummary - from .flows_vault_connectio_setup_api_key import FlowsVaultConnectioSetupApiKey - from .flows_vault_connectio_setup_api_key_with_base_url import FlowsVaultConnectioSetupApiKeyWithBaseUrl - from .flows_vault_connectio_setup_bigquery_oauth_jwt import FlowsVaultConnectioSetupBigqueryOauthJwt - from .flows_vault_connectio_setup_http_bearer import FlowsVaultConnectioSetupHttpBearer - from .flows_vault_connectio_setup_jwt import FlowsVaultConnectioSetupJwt - from .flows_vault_connectio_setup_jwt_algorithm_enum import FlowsVaultConnectioSetupJwtAlgorithmEnum - from .flows_vault_connectio_setup_mailjet_api_key import FlowsVaultConnectioSetupMailjetApiKey - from .flows_vault_connectio_setup_oauth_app import FlowsVaultConnectioSetupOauthApp - from .flows_vault_connectio_setup_oauth_code import FlowsVaultConnectioSetupOauthCode - from .flows_vault_connectio_setup_secret_api_key import FlowsVaultConnectioSetupSecretApiKey - from .flows_vault_connectio_setup_stripe_key_pair import FlowsVaultConnectioSetupStripeKeyPair - from .flows_vault_connectio_setup_token import FlowsVaultConnectioSetupToken - from .flows_vault_connectio_setup_twilio_api_key import FlowsVaultConnectioSetupTwilioApiKey - from .flows_vault_connectio_setup_type_api_key_enum import FlowsVaultConnectioSetupTypeApiKeyEnum - from .flows_vault_connectio_setup_type_bearer_enum import FlowsVaultConnectioSetupTypeBearerEnum - from .flows_vault_connectio_setup_type_jwt_enum import FlowsVaultConnectioSetupTypeJwtEnum - from .flows_vault_connectio_setup_type_key_pair_enum import FlowsVaultConnectioSetupTypeKeyPairEnum - from .flows_vault_connectio_setup_type_oauth_app_enum import FlowsVaultConnectioSetupTypeOauthAppEnum - from .flows_vault_connectio_setup_type_oauth_code_enum import FlowsVaultConnectioSetupTypeOauthCodeEnum - from .flows_vault_connectio_setup_type_oauth_jwt_enum import FlowsVaultConnectioSetupTypeOauthJwtEnum - from .flows_vault_connectio_setup_type_token_enum import FlowsVaultConnectioSetupTypeTokenEnum - from .flows_vault_connectio_setup_type_webhook_enum import FlowsVaultConnectioSetupTypeWebhookEnum - from .flows_vault_connectio_setup_webhook import FlowsVaultConnectioSetupWebhook - from .flows_vault_connection_app_id_activecampaign_enum import FlowsVaultConnectionAppIdActivecampaignEnum - from .flows_vault_connection_app_id_airtable_enum import FlowsVaultConnectionAppIdAirtableEnum - from .flows_vault_connection_app_id_auth_0_enum import FlowsVaultConnectionAppIdAuth0Enum - from .flows_vault_connection_app_id_bigquery_enum import FlowsVaultConnectionAppIdBigqueryEnum - from .flows_vault_connection_app_id_clearbit_enum import FlowsVaultConnectionAppIdClearbitEnum - from .flows_vault_connection_app_id_docusign_enum import FlowsVaultConnectionAppIdDocusignEnum - from .flows_vault_connection_app_id_google_sheets_enum import FlowsVaultConnectionAppIdGoogleSheetsEnum - from .flows_vault_connection_app_id_http_enum import FlowsVaultConnectionAppIdHttpEnum - from .flows_vault_connection_app_id_hubspot_enum import FlowsVaultConnectionAppIdHubspotEnum - from .flows_vault_connection_app_id_jwt_enum import FlowsVaultConnectionAppIdJwtEnum - from .flows_vault_connection_app_id_mailchimp_enum import FlowsVaultConnectionAppIdMailchimpEnum - from .flows_vault_connection_app_id_mailjet_enum import FlowsVaultConnectionAppIdMailjetEnum - from .flows_vault_connection_app_id_pipedrive_enum import FlowsVaultConnectionAppIdPipedriveEnum - from .flows_vault_connection_app_id_salesforce_enum import FlowsVaultConnectionAppIdSalesforceEnum - from .flows_vault_connection_app_id_sendgrid_enum import FlowsVaultConnectionAppIdSendgridEnum - from .flows_vault_connection_app_id_slack_enum import FlowsVaultConnectionAppIdSlackEnum - from .flows_vault_connection_app_id_stripe_enum import FlowsVaultConnectionAppIdStripeEnum - from .flows_vault_connection_app_id_telegram_enum import FlowsVaultConnectionAppIdTelegramEnum - from .flows_vault_connection_app_id_twilio_enum import FlowsVaultConnectionAppIdTwilioEnum - from .flows_vault_connection_app_id_whatsapp_enum import FlowsVaultConnectionAppIdWhatsappEnum - from .flows_vault_connection_app_id_zapier_enum import FlowsVaultConnectionAppIdZapierEnum - from .flows_vault_connection_http_api_key_setup import FlowsVaultConnectionHttpApiKeySetup - from .flows_vault_connection_http_api_key_setup_in_enum import FlowsVaultConnectionHttpApiKeySetupInEnum - from .flows_vault_connection_http_basic_auth_setup import FlowsVaultConnectionHttpBasicAuthSetup - from .flows_vault_connection_http_oauth_client_credentials_setup import ( - FlowsVaultConnectionHttpOauthClientCredentialsSetup, - ) - from .flows_vault_connection_setup_type_api_key_enum import FlowsVaultConnectionSetupTypeApiKeyEnum - from .flows_vault_connection_setup_type_basic_auth_enum import FlowsVaultConnectionSetupTypeBasicAuthEnum - from .flows_vault_connection_setup_type_oauth_client_credentials_enum import ( - FlowsVaultConnectionSetupTypeOauthClientCredentialsEnum, - ) - from .flows_vault_connection_summary import FlowsVaultConnectionSummary - from .forbidden_schema import ForbiddenSchema - from .forbidden_schema_error import ForbiddenSchemaError - from .form_block import FormBlock - from .form_block_divider import FormBlockDivider - from .form_block_divider_config import FormBlockDividerConfig - from .form_block_html import FormBlockHtml - from .form_block_html_config import FormBlockHtmlConfig - from .form_block_image import FormBlockImage - from .form_block_image_config import FormBlockImageConfig - from .form_block_image_config_position_enum import FormBlockImageConfigPositionEnum - from .form_block_jump_button import FormBlockJumpButton - from .form_block_jump_button_config import FormBlockJumpButtonConfig - from .form_block_jump_button_config_style import FormBlockJumpButtonConfigStyle - from .form_block_next_button import FormBlockNextButton - from .form_block_next_button_config import FormBlockNextButtonConfig - from .form_block_previous_button import FormBlockPreviousButton - from .form_block_previous_button_config import FormBlockPreviousButtonConfig - from .form_block_resend_button import FormBlockResendButton - from .form_block_resend_button_config import FormBlockResendButtonConfig - from .form_block_resend_button_config_text_alignment_enum import FormBlockResendButtonConfigTextAlignmentEnum - from .form_block_rich_text import FormBlockRichText - from .form_block_rich_text_config import FormBlockRichTextConfig - from .form_block_type_divider_const import FormBlockTypeDividerConst - from .form_block_type_html_const import FormBlockTypeHtmlConst - from .form_block_type_image_const import FormBlockTypeImageConst - from .form_block_type_jump_button_const import FormBlockTypeJumpButtonConst - from .form_block_type_next_button_const import FormBlockTypeNextButtonConst - from .form_block_type_previous_button_const import FormBlockTypePreviousButtonConst - from .form_block_type_resend_button_const import FormBlockTypeResendButtonConst - from .form_block_type_rich_text_const import FormBlockTypeRichTextConst - from .form_component import FormComponent - from .form_component_category_block_const import FormComponentCategoryBlockConst - from .form_component_category_field_const import FormComponentCategoryFieldConst - from .form_component_category_widget_const import FormComponentCategoryWidgetConst - from .form_ending_node import FormEndingNode - from .form_ending_node_after_submit import FormEndingNodeAfterSubmit - from .form_ending_node_id import FormEndingNodeId - from .form_ending_node_nullable import FormEndingNodeNullable - from .form_ending_node_redirection import FormEndingNodeRedirection - from .form_ending_node_resume_flow_true_const import FormEndingNodeResumeFlowTrueConst - from .form_field import FormField - from .form_field_boolean import FormFieldBoolean - from .form_field_boolean_config import FormFieldBooleanConfig - from .form_field_boolean_config_options import FormFieldBooleanConfigOptions - from .form_field_cards import FormFieldCards - from .form_field_cards_config import FormFieldCardsConfig - from .form_field_cards_config_option import FormFieldCardsConfigOption - from .form_field_choice import FormFieldChoice - from .form_field_choice_config import FormFieldChoiceConfig - from .form_field_choice_config_allow_other import FormFieldChoiceConfigAllowOther - from .form_field_choice_config_allow_other_enabled_true_enum import FormFieldChoiceConfigAllowOtherEnabledTrueEnum - from .form_field_choice_config_option import FormFieldChoiceConfigOption - from .form_field_custom import FormFieldCustom - from .form_field_custom_config import FormFieldCustomConfig - from .form_field_custom_config_params import FormFieldCustomConfigParams - from .form_field_custom_config_schema import FormFieldCustomConfigSchema - from .form_field_date import FormFieldDate - from .form_field_date_config import FormFieldDateConfig - from .form_field_date_config_format_enum import FormFieldDateConfigFormatEnum - from .form_field_dropdown import FormFieldDropdown - from .form_field_dropdown_config import FormFieldDropdownConfig - from .form_field_dropdown_config_option import FormFieldDropdownConfigOption - from .form_field_email import FormFieldEmail - from .form_field_email_config import FormFieldEmailConfig - from .form_field_file import FormFieldFile - from .form_field_file_config import FormFieldFileConfig - from .form_field_file_config_category_enum import FormFieldFileConfigCategoryEnum - from .form_field_file_config_storage import FormFieldFileConfigStorage - from .form_field_file_config_storage_type_enum import FormFieldFileConfigStorageTypeEnum - from .form_field_legal import FormFieldLegal - from .form_field_legal_config import FormFieldLegalConfig - from .form_field_number import FormFieldNumber - from .form_field_number_config import FormFieldNumberConfig - from .form_field_password import FormFieldPassword - from .form_field_password_config import FormFieldPasswordConfig - from .form_field_password_config_hash_enum import FormFieldPasswordConfigHashEnum - from .form_field_payment import FormFieldPayment - from .form_field_payment_config import FormFieldPaymentConfig - from .form_field_payment_config_charge import FormFieldPaymentConfigCharge - from .form_field_payment_config_charge_one_off import FormFieldPaymentConfigChargeOneOff - from .form_field_payment_config_charge_one_off_currency_enum import FormFieldPaymentConfigChargeOneOffCurrencyEnum - from .form_field_payment_config_charge_one_off_one_off import FormFieldPaymentConfigChargeOneOffOneOff - from .form_field_payment_config_charge_one_off_one_off_amount import FormFieldPaymentConfigChargeOneOffOneOffAmount - from .form_field_payment_config_charge_subscription import FormFieldPaymentConfigChargeSubscription - from .form_field_payment_config_charge_type_one_off_const import FormFieldPaymentConfigChargeTypeOneOffConst - from .form_field_payment_config_charge_type_subscription_const import ( - FormFieldPaymentConfigChargeTypeSubscriptionConst, - ) - from .form_field_payment_config_credentials import FormFieldPaymentConfigCredentials - from .form_field_payment_config_customer import FormFieldPaymentConfigCustomer - from .form_field_payment_config_field_properties import FormFieldPaymentConfigFieldProperties - from .form_field_payment_config_fields import FormFieldPaymentConfigFields - from .form_field_payment_config_provider_enum import FormFieldPaymentConfigProviderEnum - from .form_field_payment_config_subscription import FormFieldPaymentConfigSubscription - from .form_field_social import FormFieldSocial - from .form_field_social_config import FormFieldSocialConfig - from .form_field_tel import FormFieldTel - from .form_field_tel_config import FormFieldTelConfig - from .form_field_tel_config_strings import FormFieldTelConfigStrings - from .form_field_text import FormFieldText - from .form_field_text_config import FormFieldTextConfig - from .form_field_type_boolean_const import FormFieldTypeBooleanConst - from .form_field_type_cards_const import FormFieldTypeCardsConst - from .form_field_type_choice_const import FormFieldTypeChoiceConst - from .form_field_type_custom_const import FormFieldTypeCustomConst - from .form_field_type_date_const import FormFieldTypeDateConst - from .form_field_type_dropdown_const import FormFieldTypeDropdownConst - from .form_field_type_email_const import FormFieldTypeEmailConst - from .form_field_type_file_const import FormFieldTypeFileConst - from .form_field_type_legal_const import FormFieldTypeLegalConst - from .form_field_type_number_const import FormFieldTypeNumberConst - from .form_field_type_password_const import FormFieldTypePasswordConst - from .form_field_type_payment_const import FormFieldTypePaymentConst - from .form_field_type_social_const import FormFieldTypeSocialConst - from .form_field_type_tel_const import FormFieldTypeTelConst - from .form_field_type_text_const import FormFieldTypeTextConst - from .form_field_type_url_const import FormFieldTypeUrlConst - from .form_field_url import FormFieldUrl - from .form_field_url_config import FormFieldUrlConfig - from .form_flow import FormFlow - from .form_flow_config import FormFlowConfig - from .form_hidden_field import FormHiddenField - from .form_languages import FormLanguages - from .form_languages_nullable import FormLanguagesNullable - from .form_messages import FormMessages - from .form_messages_custom import FormMessagesCustom - from .form_messages_error import FormMessagesError - from .form_messages_nullable import FormMessagesNullable - from .form_node import FormNode - from .form_node_coordinates import FormNodeCoordinates - from .form_node_list import FormNodeList - from .form_node_list_nullable import FormNodeListNullable - from .form_node_pointer import FormNodePointer - from .form_node_type_flow_const import FormNodeTypeFlowConst - from .form_node_type_router_const import FormNodeTypeRouterConst - from .form_node_type_step_const import FormNodeTypeStepConst - from .form_router import FormRouter - from .form_router_config import FormRouterConfig - from .form_router_rule import FormRouterRule - from .form_start_node import FormStartNode - from .form_start_node_nullable import FormStartNodeNullable - from .form_step import FormStep - from .form_step_component_list import FormStepComponentList - from .form_step_config import FormStepConfig - from .form_style import FormStyle - from .form_style_nullable import FormStyleNullable - from .form_summary import FormSummary - from .form_translations import FormTranslations - from .form_translations_nullable import FormTranslationsNullable - from .form_widget import FormWidget - from .form_widget_auth_0_verifiable_credentials import FormWidgetAuth0VerifiableCredentials - from .form_widget_auth_0_verifiable_credentials_config import FormWidgetAuth0VerifiableCredentialsConfig - from .form_widget_g_maps_address import FormWidgetGMapsAddress - from .form_widget_g_maps_address_config import FormWidgetGMapsAddressConfig - from .form_widget_recaptcha import FormWidgetRecaptcha - from .form_widget_recaptcha_config import FormWidgetRecaptchaConfig - from .form_widget_type_auth_0_verifiable_credentials_const import FormWidgetTypeAuth0VerifiableCredentialsConst - from .form_widget_type_g_maps_address_const import FormWidgetTypeGMapsAddressConst - from .form_widget_type_recaptcha_const import FormWidgetTypeRecaptchaConst - from .forms_request_parameters_hydrate_enum import FormsRequestParametersHydrateEnum - from .get_action_execution_response_content import GetActionExecutionResponseContent - from .get_action_module_actions_response_content import GetActionModuleActionsResponseContent - from .get_action_module_response_content import GetActionModuleResponseContent - from .get_action_module_version_response_content import GetActionModuleVersionResponseContent - from .get_action_module_versions_response_content import GetActionModuleVersionsResponseContent - from .get_action_modules_response_content import GetActionModulesResponseContent - from .get_action_response_content import GetActionResponseContent - from .get_action_version_response_content import GetActionVersionResponseContent - from .get_active_users_count_stats_response_content import GetActiveUsersCountStatsResponseContent - from .get_acul_response_content import GetAculResponseContent - from .get_all_keys_network_acls_response_content import GetAllKeysNetworkAclsResponseContent - from .get_attack_protection_captcha_response_content import GetAttackProtectionCaptchaResponseContent - from .get_bot_detection_settings_response_content import GetBotDetectionSettingsResponseContent - from .get_branding_default_theme_response_content import GetBrandingDefaultThemeResponseContent - from .get_branding_phone_provider_response_content import GetBrandingPhoneProviderResponseContent - from .get_branding_response_content import GetBrandingResponseContent - from .get_branding_theme_response_content import GetBrandingThemeResponseContent - from .get_breached_password_detection_settings_response_content import ( - GetBreachedPasswordDetectionSettingsResponseContent, - ) - from .get_brute_force_settings_response_content import GetBruteForceSettingsResponseContent - from .get_client_credential_response_content import GetClientCredentialResponseContent - from .get_client_grant_response_content import GetClientGrantResponseContent - from .get_client_response_content import GetClientResponseContent - from .get_connection_enabled_clients_response_content import GetConnectionEnabledClientsResponseContent - from .get_connection_profile_response_content import GetConnectionProfileResponseContent - from .get_connection_profile_template_response_content import GetConnectionProfileTemplateResponseContent - from .get_connection_response_content import GetConnectionResponseContent - from .get_custom_domain_response_content import GetCustomDomainResponseContent - from .get_custom_signing_keys_response_content import GetCustomSigningKeysResponseContent - from .get_custom_texts_by_language_response_content import GetCustomTextsByLanguageResponseContent - from .get_default_canonical_domain_response_content import GetDefaultCanonicalDomainResponseContent - from .get_default_custom_domain_response_content import GetDefaultCustomDomainResponseContent - from .get_default_domain_response_content import GetDefaultDomainResponseContent - from .get_directory_provisioning_default_mapping_response_content import ( - GetDirectoryProvisioningDefaultMappingResponseContent, - ) - from .get_directory_provisioning_response_content import GetDirectoryProvisioningResponseContent - from .get_email_factor_settings_response_content import GetEmailFactorSettingsResponseContent - from .get_email_provider_response_content import GetEmailProviderResponseContent - from .get_email_template_response_content import GetEmailTemplateResponseContent - from .get_encryption_key_response_content import GetEncryptionKeyResponseContent - from .get_event_stream_delivery_history_response_content import GetEventStreamDeliveryHistoryResponseContent - from .get_event_stream_response_content import GetEventStreamResponseContent - from .get_experiment_response_content import GetExperimentResponseContent - from .get_feature_flag_response_content import GetFeatureFlagResponseContent - from .get_flow_execution_request_parameters_hydrate_enum import GetFlowExecutionRequestParametersHydrateEnum - from .get_flow_execution_response_content import GetFlowExecutionResponseContent - from .get_flow_request_parameters_hydrate_enum import GetFlowRequestParametersHydrateEnum - from .get_flow_response_content import GetFlowResponseContent - from .get_flows_vault_connection_response_content import GetFlowsVaultConnectionResponseContent - from .get_form_response_content import GetFormResponseContent - from .get_group_members_response_content import GetGroupMembersResponseContent - from .get_group_response_content import GetGroupResponseContent - from .get_guardian_enrollment_response_content import GetGuardianEnrollmentResponseContent - from .get_guardian_factor_duo_settings_response_content import GetGuardianFactorDuoSettingsResponseContent - from .get_guardian_factor_phone_message_types_response_content import ( - GetGuardianFactorPhoneMessageTypesResponseContent, - ) - from .get_guardian_factor_phone_templates_response_content import GetGuardianFactorPhoneTemplatesResponseContent - from .get_guardian_factor_sms_templates_response_content import GetGuardianFactorSmsTemplatesResponseContent - from .get_guardian_factors_provider_apns_response_content import GetGuardianFactorsProviderApnsResponseContent - from .get_guardian_factors_provider_phone_response_content import GetGuardianFactorsProviderPhoneResponseContent - from .get_guardian_factors_provider_phone_twilio_response_content import ( - GetGuardianFactorsProviderPhoneTwilioResponseContent, - ) - from .get_guardian_factors_provider_push_notification_response_content import ( - GetGuardianFactorsProviderPushNotificationResponseContent, - ) - from .get_guardian_factors_provider_sms_response_content import GetGuardianFactorsProviderSmsResponseContent - from .get_guardian_factors_provider_sms_twilio_response_content import ( - GetGuardianFactorsProviderSmsTwilioResponseContent, - ) - from .get_guardian_factors_provider_sns_response_content import GetGuardianFactorsProviderSnsResponseContent - from .get_guardian_settings_response_content import GetGuardianSettingsResponseContent - from .get_hook_response_content import GetHookResponseContent - from .get_hook_secret_response_content import GetHookSecretResponseContent - from .get_job_error_response_content import GetJobErrorResponseContent - from .get_job_generic_error_response_content import GetJobGenericErrorResponseContent - from .get_job_import_user_error import GetJobImportUserError - from .get_job_response_content import GetJobResponseContent - from .get_job_summary import GetJobSummary - from .get_job_user_error import GetJobUserError - from .get_log_response_content import GetLogResponseContent - from .get_log_stream_response_content import GetLogStreamResponseContent - from .get_network_acls_response_content import GetNetworkAclsResponseContent - from .get_organization_all_connection_response_content import GetOrganizationAllConnectionResponseContent - from .get_organization_by_name_response_content import GetOrganizationByNameResponseContent - from .get_organization_client_response_content import GetOrganizationClientResponseContent - from .get_organization_connection_response_content import GetOrganizationConnectionResponseContent - from .get_organization_discovery_domain_by_name_response_content import ( - GetOrganizationDiscoveryDomainByNameResponseContent, - ) - from .get_organization_discovery_domain_response_content import GetOrganizationDiscoveryDomainResponseContent - from .get_organization_invitation_response_content import GetOrganizationInvitationResponseContent - from .get_organization_response_content import GetOrganizationResponseContent - from .get_partials_response_content import GetPartialsResponseContent - from .get_phone_factor_settings_response_content import GetPhoneFactorSettingsResponseContent - from .get_phone_provider_protection_response_content import GetPhoneProviderProtectionResponseContent - from .get_phone_template_response_content import GetPhoneTemplateResponseContent - from .get_rate_limit_policy_response_content import GetRateLimitPolicyResponseContent - from .get_refresh_token_response_content import GetRefreshTokenResponseContent - from .get_refresh_tokens_paginated_response_content import GetRefreshTokensPaginatedResponseContent - from .get_resource_server_response_content import GetResourceServerResponseContent - from .get_risk_assessments_settings_new_device_response_content import ( - GetRiskAssessmentsSettingsNewDeviceResponseContent, - ) - from .get_risk_assessments_settings_response_content import GetRiskAssessmentsSettingsResponseContent - from .get_role_response_content import GetRoleResponseContent - from .get_rule_response_content import GetRuleResponseContent - from .get_scim_configuration_default_mapping_response_content import ( - GetScimConfigurationDefaultMappingResponseContent, - ) - from .get_scim_configuration_response_content import GetScimConfigurationResponseContent - from .get_scim_tokens_response_content import GetScimTokensResponseContent - from .get_segment_response_content import GetSegmentResponseContent - from .get_self_service_profile_response_content import GetSelfServiceProfileResponseContent - from .get_session_response_content import GetSessionResponseContent - from .get_settings_response_content import GetSettingsResponseContent - from .get_signing_keys_response_content import GetSigningKeysResponseContent - from .get_supplemental_signals_response_content import GetSupplementalSignalsResponseContent - from .get_suspicious_ip_throttling_settings_response_content import GetSuspiciousIpThrottlingSettingsResponseContent - from .get_tenant_settings_response_content import GetTenantSettingsResponseContent - from .get_token_exchange_profile_response_content import GetTokenExchangeProfileResponseContent - from .get_universal_login_template import GetUniversalLoginTemplate - from .get_universal_login_template_response_content import GetUniversalLoginTemplateResponseContent - from .get_user_attribute_profile_response_content import GetUserAttributeProfileResponseContent - from .get_user_attribute_profile_template_response_content import GetUserAttributeProfileTemplateResponseContent - from .get_user_authentication_method_response_content import GetUserAuthenticationMethodResponseContent - from .get_user_groups_paginated_response_content import GetUserGroupsPaginatedResponseContent - from .get_user_response_content import GetUserResponseContent - from .get_variation_response_content import GetVariationResponseContent - from .get_verifiable_credential_template_response_content import GetVerifiableCredentialTemplateResponseContent - from .google_account_linking_configuration import GoogleAccountLinkingConfiguration - from .google_account_linking_configuration_create import GoogleAccountLinkingConfigurationCreate - from .google_account_linking_configuration_or_null import GoogleAccountLinkingConfigurationOrNull - from .group import Group - from .group_member import GroupMember - from .group_member_type_enum import GroupMemberTypeEnum - from .group_type_enum import GroupTypeEnum - from .guardian_enrollment_date import GuardianEnrollmentDate - from .guardian_enrollment_factor_enum import GuardianEnrollmentFactorEnum - from .guardian_enrollment_status import GuardianEnrollmentStatus - from .guardian_factor import GuardianFactor - from .guardian_factor_name_enum import GuardianFactorNameEnum - from .guardian_factor_phone_factor_message_type_enum import GuardianFactorPhoneFactorMessageTypeEnum - from .guardian_factor_settings import GuardianFactorSettings - from .guardian_factors_provider_push_notification_provider_data_enum import ( - GuardianFactorsProviderPushNotificationProviderDataEnum, - ) - from .guardian_factors_provider_sms_provider_enum import GuardianFactorsProviderSmsProviderEnum - from .hook import Hook - from .hook_dependencies import HookDependencies - from .hook_trigger_id_enum import HookTriggerIdEnum - from .http_custom_header import HttpCustomHeader - from .identity import Identity - from .identity_assertion_authorization_grant import IdentityAssertionAuthorizationGrant - from .identity_provider_enum import IdentityProviderEnum - from .identity_provider_only_auth_0_enum import IdentityProviderOnlyAuth0Enum - from .import_encryption_key_response_content import ImportEncryptionKeyResponseContent - from .include_user_profile_size_header_enum import IncludeUserProfileSizeHeaderEnum - from .integration import Integration - from .integration_feature_type_enum import IntegrationFeatureTypeEnum - from .integration_release import IntegrationRelease - from .integration_required_param import IntegrationRequiredParam - from .integration_required_param_option import IntegrationRequiredParamOption - from .integration_required_param_type_enum import IntegrationRequiredParamTypeEnum - from .integration_sem_ver import IntegrationSemVer - from .internal_server_error_body import InternalServerErrorBody - from .internal_server_error_body_error import InternalServerErrorBodyError - from .job_file_format_enum import JobFileFormatEnum - from .linked_client_configuration import LinkedClientConfiguration - from .list_action_bindings_paginated_response_content import ListActionBindingsPaginatedResponseContent - from .list_action_triggers_response_content import ListActionTriggersResponseContent - from .list_action_versions_paginated_response_content import ListActionVersionsPaginatedResponseContent - from .list_actions_paginated_response_content import ListActionsPaginatedResponseContent - from .list_aculs_offset_paginated_response_content import ListAculsOffsetPaginatedResponseContent - from .list_aculs_response_content_item import ListAculsResponseContentItem - from .list_agents_response_content import ListAgentsResponseContent - from .list_branding_phone_providers_response_content import ListBrandingPhoneProvidersResponseContent - from .list_client_connections_response_content import ListClientConnectionsResponseContent - from .list_client_grant_organizations_paginated_response_content import ( - ListClientGrantOrganizationsPaginatedResponseContent, - ) - from .list_client_grant_paginated_response_content import ListClientGrantPaginatedResponseContent - from .list_client_profiles_paginated_response_content import ListClientProfilesPaginatedResponseContent - from .list_clients_offset_paginated_response_content import ListClientsOffsetPaginatedResponseContent - from .list_connection_profile_template_response_content import ListConnectionProfileTemplateResponseContent - from .list_connection_profiles_paginated_response_content import ListConnectionProfilesPaginatedResponseContent - from .list_connections_checkpoint_paginated_response_content import ( - ListConnectionsCheckpointPaginatedResponseContent, - ) - from .list_custom_domains_response_content import ListCustomDomainsResponseContent - from .list_device_credentials_offset_paginated_response_content import ( - ListDeviceCredentialsOffsetPaginatedResponseContent, - ) - from .list_directory_provisionings_response_content import ListDirectoryProvisioningsResponseContent - from .list_encryption_key_offset_paginated_response_content import ListEncryptionKeyOffsetPaginatedResponseContent - from .list_event_stream_deliveries_response_content import ListEventStreamDeliveriesResponseContent - from .list_event_streams_response_content import ListEventStreamsResponseContent - from .list_experiments_response_content import ListExperimentsResponseContent - from .list_feature_flags_response_content import ListFeatureFlagsResponseContent - from .list_flow_executions_paginated_response_content import ListFlowExecutionsPaginatedResponseContent - from .list_flows_offset_paginated_response_content import ListFlowsOffsetPaginatedResponseContent - from .list_flows_request_parameters_hydrate_enum import ListFlowsRequestParametersHydrateEnum - from .list_flows_vault_connections_offset_paginated_response_content import ( - ListFlowsVaultConnectionsOffsetPaginatedResponseContent, - ) - from .list_forms_offset_paginated_response_content import ListFormsOffsetPaginatedResponseContent - from .list_group_roles_response_content import ListGroupRolesResponseContent - from .list_groups_paginated_response_content import ListGroupsPaginatedResponseContent - from .list_guardian_policies_response_content import ListGuardianPoliciesResponseContent - from .list_hooks_offset_paginated_response_content import ListHooksOffsetPaginatedResponseContent - from .list_log_offset_paginated_response_content import ListLogOffsetPaginatedResponseContent - from .list_network_acls_offset_paginated_response_content import ListNetworkAclsOffsetPaginatedResponseContent - from .list_organization_all_connections_offset_paginated_response_content import ( - ListOrganizationAllConnectionsOffsetPaginatedResponseContent, - ) - from .list_organization_client_grants_offset_paginated_response_content import ( - ListOrganizationClientGrantsOffsetPaginatedResponseContent, - ) - from .list_organization_clients_response_content import ListOrganizationClientsResponseContent - from .list_organization_connections_offset_paginated_response_content import ( - ListOrganizationConnectionsOffsetPaginatedResponseContent, - ) - from .list_organization_discovery_domains_response_content import ListOrganizationDiscoveryDomainsResponseContent - from .list_organization_group_roles_response_content import ListOrganizationGroupRolesResponseContent - from .list_organization_groups_response_content import ListOrganizationGroupsResponseContent - from .list_organization_invitations_offset_paginated_response_content import ( - ListOrganizationInvitationsOffsetPaginatedResponseContent, - ) - from .list_organization_member_effective_roles_response_content import ( - ListOrganizationMemberEffectiveRolesResponseContent, - ) - from .list_organization_member_role_source_groups_response_content import ( - ListOrganizationMemberRoleSourceGroupsResponseContent, - ) - from .list_organization_member_roles_offset_paginated_response_content import ( - ListOrganizationMemberRolesOffsetPaginatedResponseContent, - ) - from .list_organization_members_paginated_response_content import ListOrganizationMembersPaginatedResponseContent - from .list_organization_role_groups_response_content import ListOrganizationRoleGroupsResponseContent - from .list_organization_role_members_response_content import ListOrganizationRoleMembersResponseContent - from .list_organizations_paginated_response_content import ListOrganizationsPaginatedResponseContent - from .list_phone_templates_response_content import ListPhoneTemplatesResponseContent - from .list_portals_response_content import ListPortalsResponseContent - from .list_rate_limit_policies_paginated_response_content import ListRateLimitPoliciesPaginatedResponseContent - from .list_refresh_tokens_paginated_response_content import ListRefreshTokensPaginatedResponseContent - from .list_resource_server_offset_paginated_response_content import ListResourceServerOffsetPaginatedResponseContent - from .list_role_groups_response_content import ListRoleGroupsResponseContent - from .list_role_permissions_offset_paginated_response_content import ( - ListRolePermissionsOffsetPaginatedResponseContent, - ) - from .list_role_users_paginated_response_content import ListRoleUsersPaginatedResponseContent - from .list_roles_offset_paginated_response_content import ListRolesOffsetPaginatedResponseContent - from .list_rules_offset_paginated_response_content import ListRulesOffsetPaginatedResponseContent - from .list_scim_configurations_response_content import ListScimConfigurationsResponseContent - from .list_segments_response_content import ListSegmentsResponseContent - from .list_self_service_profile_custom_text_response_content import ListSelfServiceProfileCustomTextResponseContent - from .list_self_service_profiles_paginated_response_content import ListSelfServiceProfilesPaginatedResponseContent - from .list_synchronized_groups_response_content import ListSynchronizedGroupsResponseContent - from .list_token_exchange_profile_response_content import ListTokenExchangeProfileResponseContent - from .list_user_attribute_profile_template_response_content import ListUserAttributeProfileTemplateResponseContent - from .list_user_attribute_profiles_paginated_response_content import ( - ListUserAttributeProfilesPaginatedResponseContent, - ) - from .list_user_authentication_methods_offset_paginated_response_content import ( - ListUserAuthenticationMethodsOffsetPaginatedResponseContent, - ) - from .list_user_blocks_by_identifier_response_content import ListUserBlocksByIdentifierResponseContent - from .list_user_blocks_response_content import ListUserBlocksResponseContent - from .list_user_connected_accounts_response_content import ListUserConnectedAccountsResponseContent - from .list_user_consent_signing_keys_response_content import ListUserConsentSigningKeysResponseContent - from .list_user_effective_permission_role_sources_response_content import ( - ListUserEffectivePermissionRoleSourcesResponseContent, - ) - from .list_user_effective_permissions_response_content import ListUserEffectivePermissionsResponseContent - from .list_user_effective_roles_response_content import ListUserEffectiveRolesResponseContent - from .list_user_grants_offset_paginated_response_content import ListUserGrantsOffsetPaginatedResponseContent - from .list_user_organizations_offset_paginated_response_content import ( - ListUserOrganizationsOffsetPaginatedResponseContent, - ) - from .list_user_permissions_offset_paginated_response_content import ( - ListUserPermissionsOffsetPaginatedResponseContent, - ) - from .list_user_role_source_groups_response_content import ListUserRoleSourceGroupsResponseContent - from .list_user_roles_offset_paginated_response_content import ListUserRolesOffsetPaginatedResponseContent - from .list_user_sessions_paginated_response_content import ListUserSessionsPaginatedResponseContent - from .list_users_offset_paginated_response_content import ListUsersOffsetPaginatedResponseContent - from .list_variations_response_content import ListVariationsResponseContent - from .list_verifiable_credential_templates_paginated_response_content import ( - ListVerifiableCredentialTemplatesPaginatedResponseContent, - ) - from .log import Log - from .log_date import LogDate - from .log_date_object import LogDateObject - from .log_details import LogDetails - from .log_location_info import LogLocationInfo - from .log_security_context import LogSecurityContext - from .log_stream_datadog_enum import LogStreamDatadogEnum - from .log_stream_datadog_region_enum import LogStreamDatadogRegionEnum - from .log_stream_datadog_response_schema import LogStreamDatadogResponseSchema - from .log_stream_datadog_sink import LogStreamDatadogSink - from .log_stream_event_bridge_enum import LogStreamEventBridgeEnum - from .log_stream_event_bridge_response_schema import LogStreamEventBridgeResponseSchema - from .log_stream_event_bridge_sink import LogStreamEventBridgeSink - from .log_stream_event_bridge_sink_region_enum import LogStreamEventBridgeSinkRegionEnum - from .log_stream_event_grid_enum import LogStreamEventGridEnum - from .log_stream_event_grid_region_enum import LogStreamEventGridRegionEnum - from .log_stream_event_grid_response_schema import LogStreamEventGridResponseSchema - from .log_stream_event_grid_sink import LogStreamEventGridSink - from .log_stream_filter import LogStreamFilter - from .log_stream_filter_group_name_enum import LogStreamFilterGroupNameEnum - from .log_stream_filter_type_enum import LogStreamFilterTypeEnum - from .log_stream_http_content_format_enum import LogStreamHttpContentFormatEnum - from .log_stream_http_enum import LogStreamHttpEnum - from .log_stream_http_response_schema import LogStreamHttpResponseSchema - from .log_stream_http_sink import LogStreamHttpSink - from .log_stream_mixpanel_enum import LogStreamMixpanelEnum - from .log_stream_mixpanel_region_enum import LogStreamMixpanelRegionEnum - from .log_stream_mixpanel_response_schema import LogStreamMixpanelResponseSchema - from .log_stream_mixpanel_sink import LogStreamMixpanelSink - from .log_stream_mixpanel_sink_patch import LogStreamMixpanelSinkPatch - from .log_stream_pii_algorithm_enum import LogStreamPiiAlgorithmEnum - from .log_stream_pii_config import LogStreamPiiConfig - from .log_stream_pii_log_fields_enum import LogStreamPiiLogFieldsEnum - from .log_stream_pii_method_enum import LogStreamPiiMethodEnum - from .log_stream_response_schema import LogStreamResponseSchema - from .log_stream_segment_enum import LogStreamSegmentEnum - from .log_stream_segment_response_schema import LogStreamSegmentResponseSchema - from .log_stream_segment_sink import LogStreamSegmentSink - from .log_stream_segment_sink_write_key import LogStreamSegmentSinkWriteKey - from .log_stream_sink_patch import LogStreamSinkPatch - from .log_stream_splunk_enum import LogStreamSplunkEnum - from .log_stream_splunk_response_schema import LogStreamSplunkResponseSchema - from .log_stream_splunk_sink import LogStreamSplunkSink - from .log_stream_status_enum import LogStreamStatusEnum - from .log_stream_sumo_enum import LogStreamSumoEnum - from .log_stream_sumo_response_schema import LogStreamSumoResponseSchema - from .log_stream_sumo_sink import LogStreamSumoSink - from .mdl_presentation_properties import MdlPresentationProperties - from .mdl_presentation_request import MdlPresentationRequest - from .mdl_presentation_request_properties import MdlPresentationRequestProperties - from .mfa_policy_enum import MfaPolicyEnum - from .native_social_login import NativeSocialLogin - from .native_social_login_apple import NativeSocialLoginApple - from .native_social_login_apple_patch import NativeSocialLoginApplePatch - from .native_social_login_facebook import NativeSocialLoginFacebook - from .native_social_login_facebook_patch import NativeSocialLoginFacebookPatch - from .native_social_login_google import NativeSocialLoginGoogle - from .native_social_login_google_patch import NativeSocialLoginGooglePatch - from .native_social_login_patch import NativeSocialLoginPatch - from .network_acl_action import NetworkAclAction - from .network_acl_action_allow_enum import NetworkAclActionAllowEnum - from .network_acl_action_block_enum import NetworkAclActionBlockEnum - from .network_acl_action_log_enum import NetworkAclActionLogEnum - from .network_acl_action_redirect_enum import NetworkAclActionRedirectEnum - from .network_acl_http_message_signature import NetworkAclHttpMessageSignature - from .network_acl_http_message_signature_key import NetworkAclHttpMessageSignatureKey - from .network_acl_http_message_signature_keys import NetworkAclHttpMessageSignatureKeys - from .network_acl_key import NetworkAclKey - from .network_acl_key_algorithm_enum import NetworkAclKeyAlgorithmEnum - from .network_acl_match import NetworkAclMatch - from .network_acl_match_connecting_ipv_4_cidr import NetworkAclMatchConnectingIpv4Cidr - from .network_acl_match_connecting_ipv_6_cidr import NetworkAclMatchConnectingIpv6Cidr - from .network_acl_match_ipv_4_cidr import NetworkAclMatchIpv4Cidr - from .network_acl_match_ipv_6_cidr import NetworkAclMatchIpv6Cidr - from .network_acl_rule import NetworkAclRule - from .network_acl_rule_match_all_enum import NetworkAclRuleMatchAllEnum - from .network_acl_rule_scope_enum import NetworkAclRuleScopeEnum - from .network_acls_response_content import NetworkAclsResponseContent - from .not_found_error_body import NotFoundErrorBody - from .not_found_error_body_error import NotFoundErrorBodyError - from .not_found_schema import NotFoundSchema - from .not_found_schema_error import NotFoundSchemaError - from .oauth_scope import OauthScope - from .organization import Organization - from .organization_access_level_enum import OrganizationAccessLevelEnum - from .organization_access_level_enum_with_null import OrganizationAccessLevelEnumWithNull - from .organization_all_connection_post import OrganizationAllConnectionPost - from .organization_branding import OrganizationBranding - from .organization_branding_colors import OrganizationBrandingColors - from .organization_client import OrganizationClient - from .organization_client_association import OrganizationClientAssociation - from .organization_client_grant import OrganizationClientGrant - from .organization_client_metadata import OrganizationClientMetadata - from .organization_client_metadata_organization_usage_enum import OrganizationClientMetadataOrganizationUsageEnum - from .organization_connection import OrganizationConnection - from .organization_connection_information import OrganizationConnectionInformation - from .organization_discovery_domain import OrganizationDiscoveryDomain - from .organization_discovery_domain_status import OrganizationDiscoveryDomainStatus - from .organization_enabled_connection import OrganizationEnabledConnection - from .organization_invitation import OrganizationInvitation - from .organization_invitation_invitee import OrganizationInvitationInvitee - from .organization_invitation_inviter import OrganizationInvitationInviter - from .organization_member import OrganizationMember - from .organization_member_access_level_enum import OrganizationMemberAccessLevelEnum - from .organization_member_access_level_enum_with_null import OrganizationMemberAccessLevelEnumWithNull - from .organization_member_effective_role import OrganizationMemberEffectiveRole - from .organization_member_effective_role_source import OrganizationMemberEffectiveRoleSource - from .organization_member_role import OrganizationMemberRole - from .organization_metadata import OrganizationMetadata - from .organization_sort_field_enum import OrganizationSortFieldEnum - from .organization_third_party_client_access_enum import OrganizationThirdPartyClientAccessEnum - from .organization_usage_enum import OrganizationUsageEnum - from .page_component import ( - PageComponent, - PageComponent_PageComponentAuth0Form, - PageComponent_PageComponentAuth0MediaImage, - PageComponent_PageComponentAuth0MyAccountMfaManagement, - PageComponent_PageComponentAuth0MyAccountPasskeyManagement, - PageComponent_PageComponentAuth0MyOrganizationDetailsEdit, - PageComponent_PageComponentAuth0MyOrganizationDomainTable, - PageComponent_PageComponentAuth0MyOrganizationMemberManagement, - PageComponent_PageComponentAuth0StructureSection, - PageComponent_PageComponentAuth0StructureSeparator, - PageComponent_PageComponentAuth0TypographyHeading, - PageComponent_PageComponentAuth0TypographyRichText, - ) - from .page_component_auth_0_form import PageComponentAuth0Form - from .page_component_auth_0_form_config import PageComponentAuth0FormConfig - from .page_component_auth_0_media_image import PageComponentAuth0MediaImage - from .page_component_auth_0_media_image_config import PageComponentAuth0MediaImageConfig - from .page_component_auth_0_my_account_mfa_management import PageComponentAuth0MyAccountMfaManagement - from .page_component_auth_0_my_account_mfa_management_config import PageComponentAuth0MyAccountMfaManagementConfig - from .page_component_auth_0_my_account_passkey_management import PageComponentAuth0MyAccountPasskeyManagement - from .page_component_auth_0_my_account_passkey_management_config import ( - PageComponentAuth0MyAccountPasskeyManagementConfig, - ) - from .page_component_auth_0_my_organization_details_edit import PageComponentAuth0MyOrganizationDetailsEdit - from .page_component_auth_0_my_organization_details_edit_config import ( - PageComponentAuth0MyOrganizationDetailsEditConfig, - ) - from .page_component_auth_0_my_organization_domain_table import PageComponentAuth0MyOrganizationDomainTable - from .page_component_auth_0_my_organization_domain_table_config import ( - PageComponentAuth0MyOrganizationDomainTableConfig, - ) - from .page_component_auth_0_my_organization_member_management import ( - PageComponentAuth0MyOrganizationMemberManagement, - ) - from .page_component_auth_0_my_organization_member_management_config import ( - PageComponentAuth0MyOrganizationMemberManagementConfig, - ) - from .page_component_auth_0_structure_section import PageComponentAuth0StructureSection - from .page_component_auth_0_structure_section_config import PageComponentAuth0StructureSectionConfig - from .page_component_auth_0_structure_section_variant_enum import PageComponentAuth0StructureSectionVariantEnum - from .page_component_auth_0_structure_separator import PageComponentAuth0StructureSeparator - from .page_component_auth_0_structure_separator_config import PageComponentAuth0StructureSeparatorConfig - from .page_component_auth_0_structure_separator_variant_enum import PageComponentAuth0StructureSeparatorVariantEnum - from .page_component_auth_0_typography_heading import PageComponentAuth0TypographyHeading - from .page_component_auth_0_typography_heading_config import PageComponentAuth0TypographyHeadingConfig - from .page_component_auth_0_typography_rich_text import PageComponentAuth0TypographyRichText - from .page_component_auth_0_typography_rich_text_config import PageComponentAuth0TypographyRichTextConfig - from .page_component_no_children import ( - PageComponentNoChildren, - PageComponentNoChildren_PageComponentAuth0Form, - PageComponentNoChildren_PageComponentAuth0MediaImage, - PageComponentNoChildren_PageComponentAuth0MyAccountMfaManagement, - PageComponentNoChildren_PageComponentAuth0MyAccountPasskeyManagement, - PageComponentNoChildren_PageComponentAuth0MyOrganizationDetailsEdit, - PageComponentNoChildren_PageComponentAuth0MyOrganizationDomainTable, - PageComponentNoChildren_PageComponentAuth0MyOrganizationMemberManagement, - PageComponentNoChildren_PageComponentAuth0StructureSeparator, - PageComponentNoChildren_PageComponentAuth0TypographyHeading, - PageComponentNoChildren_PageComponentAuth0TypographyRichText, - ) - from .page_slug import PageSlug - from .partial_groups_enum import PartialGroupsEnum - from .partial_phone_template_content import PartialPhoneTemplateContent - from .password_character_type_enum import PasswordCharacterTypeEnum - from .password_character_type_rule_policy_enum import PasswordCharacterTypeRulePolicyEnum - from .password_default_dictionaries_enum import PasswordDefaultDictionariesEnum - from .password_dictionary_match_type_enum import PasswordDictionaryMatchTypeEnum - from .password_identical_characters_policy_enum import PasswordIdenticalCharactersPolicyEnum - from .password_max_length_exceeded_policy_enum import PasswordMaxLengthExceededPolicyEnum - from .password_sequential_characters_policy_enum import PasswordSequentialCharactersPolicyEnum - from .patch_client_credential_response_content import PatchClientCredentialResponseContent - from .patch_phone_provider_protection_response_content import PatchPhoneProviderProtectionResponseContent - from .patch_rate_limit_policy_configuration_request_content import PatchRateLimitPolicyConfigurationRequestContent - from .patch_rate_limit_policy_configuration_request_content_action import ( - PatchRateLimitPolicyConfigurationRequestContentAction, - ) - from .patch_rate_limit_policy_configuration_request_content_action_action import ( - PatchRateLimitPolicyConfigurationRequestContentActionAction, - ) - from .patch_rate_limit_policy_configuration_request_content_one import ( - PatchRateLimitPolicyConfigurationRequestContentOne, - ) - from .patch_rate_limit_policy_configuration_request_content_one_action import ( - PatchRateLimitPolicyConfigurationRequestContentOneAction, - ) - from .patch_rate_limit_policy_configuration_request_content_zero import ( - PatchRateLimitPolicyConfigurationRequestContentZero, - ) - from .patch_rate_limit_policy_configuration_request_content_zero_action import ( - PatchRateLimitPolicyConfigurationRequestContentZeroAction, - ) - from .patch_supplemental_signals_response_content import PatchSupplementalSignalsResponseContent - from .permission_request_payload import PermissionRequestPayload - from .permissions_response_payload import PermissionsResponsePayload - from .phone_attribute import PhoneAttribute - from .phone_attribute_identifier import PhoneAttributeIdentifier - from .phone_provider_channel_enum import PhoneProviderChannelEnum - from .phone_provider_configuration import PhoneProviderConfiguration - from .phone_provider_credentials import PhoneProviderCredentials - from .phone_provider_delivery_method_enum import PhoneProviderDeliveryMethodEnum - from .phone_provider_name_enum import PhoneProviderNameEnum - from .phone_provider_protection_backoff_strategy_enum import PhoneProviderProtectionBackoffStrategyEnum - from .phone_provider_schema_masked import PhoneProviderSchemaMasked - from .phone_template import PhoneTemplate - from .phone_template_body import PhoneTemplateBody - from .phone_template_content import PhoneTemplateContent - from .phone_template_notification_type_enum import PhoneTemplateNotificationTypeEnum - from .portal import Portal - from .portal_client_secret_post import PortalClientSecretPost - from .portal_client_secret_post_request import PortalClientSecretPostRequest - from .portal_client_secret_post_request_token_endpoint_auth_method import ( - PortalClientSecretPostRequestTokenEndpointAuthMethod, - ) - from .portal_client_secret_post_token_endpoint_auth_method import PortalClientSecretPostTokenEndpointAuthMethod - from .portal_custom_code import PortalCustomCode - from .portal_custom_code_nullable import PortalCustomCodeNullable - from .portal_date_time import PortalDateTime - from .portal_id import PortalId - from .portal_name import PortalName - from .portal_navigation import PortalNavigation - from .portal_navigation_nullable import PortalNavigationNullable - from .portal_page import PortalPage - from .portal_pages_by_type import PortalPagesByType - from .portal_pages_by_type_nullable import PortalPagesByTypeNullable - from .portal_slug import PortalSlug - from .portal_summary import PortalSummary - from .position import Position - from .post_client_credential_response_content import PostClientCredentialResponseContent - from .post_connection_keys_alg_enum import PostConnectionKeysAlgEnum - from .post_connection_keys_request_content import PostConnectionKeysRequestContent - from .post_connections_keys_response_content import PostConnectionsKeysResponseContent - from .post_connections_keys_response_content_item import PostConnectionsKeysResponseContentItem - from .preferred_authentication_method_enum import PreferredAuthenticationMethodEnum - from .preview_cimd_metadata_response_content import PreviewCimdMetadataResponseContent - from .prompt_group_name_enum import PromptGroupNameEnum - from .prompt_language_enum import PromptLanguageEnum - from .public_key_credential import PublicKeyCredential - from .public_key_credential_algorithm_enum import PublicKeyCredentialAlgorithmEnum - from .public_key_credential_type_enum import PublicKeyCredentialTypeEnum - from .rate_limit_policy import RateLimitPolicy - from .rate_limit_policy_configuration import RateLimitPolicyConfiguration - from .rate_limit_policy_configuration_action import RateLimitPolicyConfigurationAction - from .rate_limit_policy_configuration_action_action import RateLimitPolicyConfigurationActionAction - from .rate_limit_policy_configuration_one import RateLimitPolicyConfigurationOne - from .rate_limit_policy_configuration_one_action import RateLimitPolicyConfigurationOneAction - from .rate_limit_policy_configuration_zero import RateLimitPolicyConfigurationZero - from .rate_limit_policy_configuration_zero_action import RateLimitPolicyConfigurationZeroAction - from .rate_limit_policy_consumer_enum import RateLimitPolicyConsumerEnum - from .rate_limit_policy_resource_enum import RateLimitPolicyResourceEnum - from .refresh_token_date import RefreshTokenDate - from .refresh_token_date_object import RefreshTokenDateObject - from .refresh_token_device import RefreshTokenDevice - from .refresh_token_expiration_type_enum import RefreshTokenExpirationTypeEnum - from .refresh_token_metadata import RefreshTokenMetadata - from .refresh_token_resource_server import RefreshTokenResourceServer - from .refresh_token_response_content import RefreshTokenResponseContent - from .refresh_token_rotation_type_enum import RefreshTokenRotationTypeEnum - from .refresh_token_session_id import RefreshTokenSessionId - from .regenerate_users_recovery_code_response_content import RegenerateUsersRecoveryCodeResponseContent - from .register_cimd_client_response_content import RegisterCimdClientResponseContent - from .reset_phone_template_request_content import ResetPhoneTemplateRequestContent - from .reset_phone_template_response_content import ResetPhoneTemplateResponseContent - from .resource_server import ResourceServer - from .resource_server_access_token import ResourceServerAccessToken - from .resource_server_access_token_claims_mapping import ResourceServerAccessTokenClaimsMapping - from .resource_server_access_token_custom_claims_mapping import ResourceServerAccessTokenCustomClaimsMapping - from .resource_server_access_token_custom_claims_mapping_rule import ( - ResourceServerAccessTokenCustomClaimsMappingRule, - ) - from .resource_server_agent_subject_claims_response_enum import ResourceServerAgentSubjectClaimsResponseEnum - from .resource_server_agent_subject_claims_schema_enum import ResourceServerAgentSubjectClaimsSchemaEnum - from .resource_server_authorization_policy import ResourceServerAuthorizationPolicy - from .resource_server_consent_policy_enum import ResourceServerConsentPolicyEnum - from .resource_server_proof_of_possession import ResourceServerProofOfPossession - from .resource_server_proof_of_possession_mechanism_enum import ResourceServerProofOfPossessionMechanismEnum - from .resource_server_proof_of_possession_required_for_enum import ResourceServerProofOfPossessionRequiredForEnum - from .resource_server_scope import ResourceServerScope - from .resource_server_search_response import ResourceServerSearchResponse - from .resource_server_sort_field_enum import ResourceServerSortFieldEnum - from .resource_server_subject_type_authorization import ResourceServerSubjectTypeAuthorization - from .resource_server_subject_type_authorization_anonymous_user import ( - ResourceServerSubjectTypeAuthorizationAnonymousUser, - ) - from .resource_server_subject_type_authorization_anonymous_user_policy_enum import ( - ResourceServerSubjectTypeAuthorizationAnonymousUserPolicyEnum, - ) - from .resource_server_subject_type_authorization_client import ResourceServerSubjectTypeAuthorizationClient - from .resource_server_subject_type_authorization_client_policy_enum import ( - ResourceServerSubjectTypeAuthorizationClientPolicyEnum, - ) - from .resource_server_subject_type_authorization_user import ResourceServerSubjectTypeAuthorizationUser - from .resource_server_subject_type_authorization_user_policy_enum import ( - ResourceServerSubjectTypeAuthorizationUserPolicyEnum, - ) - from .resource_server_token_dialect_response_enum import ResourceServerTokenDialectResponseEnum - from .resource_server_token_dialect_schema_enum import ResourceServerTokenDialectSchemaEnum - from .resource_server_token_encryption import ResourceServerTokenEncryption - from .resource_server_token_encryption_algorithm_enum import ResourceServerTokenEncryptionAlgorithmEnum - from .resource_server_token_encryption_format_enum import ResourceServerTokenEncryptionFormatEnum - from .resource_server_token_encryption_key import ResourceServerTokenEncryptionKey - from .resource_server_type_enum import ResourceServerTypeEnum - from .resource_server_verification_key_pem_certificate import ResourceServerVerificationKeyPemCertificate - from .revoked_signing_keys_response_content import RevokedSigningKeysResponseContent - from .role import Role - from .role_group import RoleGroup - from .role_member import RoleMember - from .role_owner_id import RoleOwnerId - from .role_owner_id_filter import RoleOwnerIdFilter - from .role_type_enum import RoleTypeEnum - from .role_user import RoleUser - from .rollback_action_module_response_content import RollbackActionModuleResponseContent - from .rotate_client_secret_response_content import RotateClientSecretResponseContent - from .rotate_connection_keys_request_content import RotateConnectionKeysRequestContent - from .rotate_connection_keys_signing_alg_enum import RotateConnectionKeysSigningAlgEnum - from .rotate_connections_keys_response_content import RotateConnectionsKeysResponseContent - from .rotate_signing_keys_response_content import RotateSigningKeysResponseContent - from .rule import Rule - from .rules_config import RulesConfig - from .scim_configuration import ScimConfiguration - from .scim_mapping_item import ScimMappingItem - from .scim_token_item import ScimTokenItem - from .screen_group_name_enum import ScreenGroupNameEnum - from .search_client_grants_response_content import SearchClientGrantsResponseContent - from .search_clients_response_content import SearchClientsResponseContent - from .search_engine_versions_enum import SearchEngineVersionsEnum - from .search_organization import SearchOrganization - from .search_organizations_paginated_response_content import SearchOrganizationsPaginatedResponseContent - from .search_parser_enum import SearchParserEnum - from .search_resource_servers_response_content import SearchResourceServersResponseContent - from .segment import Segment - from .segment_contains_expression import SegmentContainsExpression - from .segment_ends_with_expression import SegmentEndsWithExpression - from .segment_exists_expression import SegmentExistsExpression - from .segment_match_conditions import SegmentMatchConditions - from .segment_match_expression import SegmentMatchExpression - from .segment_not_match_conditions import SegmentNotMatchConditions - from .segment_rule import SegmentRule - from .segment_starts_with_expression import SegmentStartsWithExpression - from .segment_status_enum import SegmentStatusEnum - from .segment_type_enum import SegmentTypeEnum - from .segment_type_filter_enum import SegmentTypeFilterEnum - from .self_service_profile import SelfServiceProfile - from .self_service_profile_allowed_strategy_enum import SelfServiceProfileAllowedStrategyEnum - from .self_service_profile_branding import SelfServiceProfileBranding - from .self_service_profile_branding_colors import SelfServiceProfileBrandingColors - from .self_service_profile_branding_properties import SelfServiceProfileBrandingProperties - from .self_service_profile_custom_text_language_enum import SelfServiceProfileCustomTextLanguageEnum - from .self_service_profile_custom_text_page_enum import SelfServiceProfileCustomTextPageEnum - from .self_service_profile_description import SelfServiceProfileDescription - from .self_service_profile_sso_ticket_connection_config import SelfServiceProfileSsoTicketConnectionConfig - from .self_service_profile_sso_ticket_connection_options import SelfServiceProfileSsoTicketConnectionOptions - from .self_service_profile_sso_ticket_domain_aliases_config import SelfServiceProfileSsoTicketDomainAliasesConfig - from .self_service_profile_sso_ticket_domain_verification_enum import ( - SelfServiceProfileSsoTicketDomainVerificationEnum, - ) - from .self_service_profile_sso_ticket_enabled_features import SelfServiceProfileSsoTicketEnabledFeatures - from .self_service_profile_sso_ticket_enabled_organization import SelfServiceProfileSsoTicketEnabledOrganization - from .self_service_profile_sso_ticket_google_workspace_config import ( - SelfServiceProfileSsoTicketGoogleWorkspaceConfig, - ) - from .self_service_profile_sso_ticket_idp_initiated_client_protocol_enum import ( - SelfServiceProfileSsoTicketIdpInitiatedClientProtocolEnum, - ) - from .self_service_profile_sso_ticket_idp_initiated_options import SelfServiceProfileSsoTicketIdpInitiatedOptions - from .self_service_profile_sso_ticket_provisioning_config import SelfServiceProfileSsoTicketProvisioningConfig - from .self_service_profile_sso_ticket_provisioning_scope_enum import ( - SelfServiceProfileSsoTicketProvisioningScopeEnum, - ) - from .self_service_profile_sso_ticket_universal_logout_config import ( - SelfServiceProfileSsoTicketUniversalLogoutConfig, - ) - from .self_service_profile_user_attribute import SelfServiceProfileUserAttribute - from .self_service_profile_user_attributes import SelfServiceProfileUserAttributes - from .session_actor_claim_value import SessionActorClaimValue - from .session_actor_metadata import SessionActorMetadata - from .session_authentication_signal import SessionAuthenticationSignal - from .session_authentication_signals import SessionAuthenticationSignals - from .session_client_metadata import SessionClientMetadata - from .session_cookie_metadata import SessionCookieMetadata - from .session_cookie_metadata_mode_enum import SessionCookieMetadataModeEnum - from .session_cookie_mode_enum import SessionCookieModeEnum - from .session_cookie_schema import SessionCookieSchema - from .session_date import SessionDate - from .session_device_metadata import SessionDeviceMetadata - from .session_ip import SessionIp - from .session_metadata import SessionMetadata - from .session_response_content import SessionResponseContent - from .set_custom_signing_keys_response_content import SetCustomSigningKeysResponseContent - from .set_email_factor_settings_response_content import SetEmailFactorSettingsResponseContent - from .set_email_template_response_content import SetEmailTemplateResponseContent - from .set_guardian_factor_duo_settings_response_content import SetGuardianFactorDuoSettingsResponseContent - from .set_guardian_factor_phone_message_types_response_content import ( - SetGuardianFactorPhoneMessageTypesResponseContent, - ) - from .set_guardian_factor_phone_templates_response_content import SetGuardianFactorPhoneTemplatesResponseContent - from .set_guardian_factor_response_content import SetGuardianFactorResponseContent - from .set_guardian_factor_sms_templates_response_content import SetGuardianFactorSmsTemplatesResponseContent - from .set_guardian_factors_provider_phone_response_content import SetGuardianFactorsProviderPhoneResponseContent - from .set_guardian_factors_provider_phone_twilio_response_content import ( - SetGuardianFactorsProviderPhoneTwilioResponseContent, - ) - from .set_guardian_factors_provider_push_notification_apns_response_content import ( - SetGuardianFactorsProviderPushNotificationApnsResponseContent, - ) - from .set_guardian_factors_provider_push_notification_fcm_response_content import ( - SetGuardianFactorsProviderPushNotificationFcmResponseContent, - ) - from .set_guardian_factors_provider_push_notification_fcmv_1_response_content import ( - SetGuardianFactorsProviderPushNotificationFcmv1ResponseContent, - ) - from .set_guardian_factors_provider_push_notification_response_content import ( - SetGuardianFactorsProviderPushNotificationResponseContent, - ) - from .set_guardian_factors_provider_push_notification_sns_response_content import ( - SetGuardianFactorsProviderPushNotificationSnsResponseContent, - ) - from .set_guardian_factors_provider_sms_response_content import SetGuardianFactorsProviderSmsResponseContent - from .set_guardian_factors_provider_sms_twilio_response_content import ( - SetGuardianFactorsProviderSmsTwilioResponseContent, - ) - from .set_guardian_policies_request_content import SetGuardianPoliciesRequestContent - from .set_guardian_policies_response_content import SetGuardianPoliciesResponseContent - from .set_guardian_settings_response_content import SetGuardianSettingsResponseContent - from .set_network_acls_response_content import SetNetworkAclsResponseContent - from .set_partials_request_content import SetPartialsRequestContent - from .set_phone_factor_settings_response_content import SetPhoneFactorSettingsResponseContent - from .set_rules_config_response_content import SetRulesConfigResponseContent - from .set_self_service_profile_custom_text_request_content import SetSelfServiceProfileCustomTextRequestContent - from .set_self_service_profile_custom_text_response_content import SetSelfServiceProfileCustomTextResponseContent - from .set_user_authentication_method_response_content import SetUserAuthenticationMethodResponseContent - from .set_user_authentication_methods import SetUserAuthenticationMethods - from .set_user_authentication_methods_request_content import SetUserAuthenticationMethodsRequestContent - from .sets_custom_texts_by_language_request_content import SetsCustomTextsByLanguageRequestContent - from .sidebar import Sidebar - from .sidebar_component import ( - SidebarComponent, - SidebarComponent_SidebarComponentAuth0ExternalLink, - SidebarComponent_SidebarComponentAuth0ExternalLinkV2, - SidebarComponent_SidebarComponentAuth0InternalLink, - SidebarComponent_SidebarComponentAuth0InternalLinkV2, - ) - from .sidebar_component_auth_0_external_link import SidebarComponentAuth0ExternalLink - from .sidebar_component_auth_0_external_link_config import SidebarComponentAuth0ExternalLinkConfig - from .sidebar_component_auth_0_external_link_v_2 import SidebarComponentAuth0ExternalLinkV2 - from .sidebar_component_auth_0_external_link_v_2_config import SidebarComponentAuth0ExternalLinkV2Config - from .sidebar_component_auth_0_internal_link import SidebarComponentAuth0InternalLink - from .sidebar_component_auth_0_internal_link_config import SidebarComponentAuth0InternalLinkConfig - from .sidebar_component_auth_0_internal_link_v_2 import SidebarComponentAuth0InternalLinkV2 - from .sidebar_component_auth_0_internal_link_v_2_config import SidebarComponentAuth0InternalLinkV2Config - from .signing_algorithm_enum import SigningAlgorithmEnum - from .signing_keys import SigningKeys - from .signing_keys_date import SigningKeysDate - from .signup_schema import SignupSchema - from .signup_status_enum import SignupStatusEnum - from .signup_verification import SignupVerification - from .signup_verified import SignupVerified - from .supported_locales import SupportedLocales - from .suspicious_ip_throttling_allowlist import SuspiciousIpThrottlingAllowlist - from .suspicious_ip_throttling_allowlist_item import SuspiciousIpThrottlingAllowlistItem - from .suspicious_ip_throttling_pre_custom_token_exchange_stage import ( - SuspiciousIpThrottlingPreCustomTokenExchangeStage, - ) - from .suspicious_ip_throttling_pre_login_stage import SuspiciousIpThrottlingPreLoginStage - from .suspicious_ip_throttling_pre_user_registration_stage import SuspiciousIpThrottlingPreUserRegistrationStage - from .suspicious_ip_throttling_shields_enum import SuspiciousIpThrottlingShieldsEnum - from .suspicious_ip_throttling_stage import SuspiciousIpThrottlingStage - from .synchronize_groups_enum import SynchronizeGroupsEnum - from .synchronized_group_payload import SynchronizedGroupPayload - from .synchronized_group_selection_id import SynchronizedGroupSelectionId - from .system_role_owner_id import SystemRoleOwnerId - from .tenant_oidc_logout_settings import TenantOidcLogoutSettings - from .tenant_settings_country_codes import TenantSettingsCountryCodes - from .tenant_settings_country_codes_mode import TenantSettingsCountryCodesMode - from .tenant_settings_country_codes_mode_response import TenantSettingsCountryCodesModeResponse - from .tenant_settings_country_codes_response import TenantSettingsCountryCodesResponse - from .tenant_settings_device_flow import TenantSettingsDeviceFlow - from .tenant_settings_device_flow_charset import TenantSettingsDeviceFlowCharset - from .tenant_settings_dynamic_client_registration_security_mode import ( - TenantSettingsDynamicClientRegistrationSecurityMode, - ) - from .tenant_settings_error_page import TenantSettingsErrorPage - from .tenant_settings_flags import TenantSettingsFlags - from .tenant_settings_guardian_page import TenantSettingsGuardianPage - from .tenant_settings_mtls import TenantSettingsMtls - from .tenant_settings_nullable_security_headers import TenantSettingsNullableSecurityHeaders - from .tenant_settings_password_page import TenantSettingsPasswordPage - from .tenant_settings_resource_parameter_profile import TenantSettingsResourceParameterProfile - from .tenant_settings_sessions import TenantSettingsSessions - from .tenant_settings_sessions_anonymous import TenantSettingsSessionsAnonymous - from .tenant_settings_supported_locales_enum import TenantSettingsSupportedLocalesEnum - from .test_action_payload import TestActionPayload - from .test_action_response_content import TestActionResponseContent - from .test_action_result_payload import TestActionResultPayload - from .test_custom_domain_response_content import TestCustomDomainResponseContent - from .test_event_data_content import TestEventDataContent - from .third_party_client_access_config import ThirdPartyClientAccessConfig - from .token_exchange_profile_response_content import TokenExchangeProfileResponseContent - from .token_exchange_profile_type_enum import TokenExchangeProfileTypeEnum - from .token_quota import TokenQuota - from .token_quota_client_credentials import TokenQuotaClientCredentials - from .token_quota_configuration import TokenQuotaConfiguration - from .token_vault_privileged_access_grant import TokenVaultPrivilegedAccessGrant - from .token_vault_privileged_access_ip_allowlist_entry import TokenVaultPrivilegedAccessIpAllowlistEntry - from .too_many_requests_error_body import TooManyRequestsErrorBody - from .too_many_requests_error_body_error import TooManyRequestsErrorBodyError - from .too_many_requests_schema import TooManyRequestsSchema - from .too_many_requests_schema_error import TooManyRequestsSchemaError - from .twilio_provider_configuration import TwilioProviderConfiguration - from .twilio_provider_credentials import TwilioProviderCredentials - from .twilio_provider_delivery_method_enum import TwilioProviderDeliveryMethodEnum - from .unauthorized_schema import UnauthorizedSchema - from .unauthorized_schema_error import UnauthorizedSchemaError - from .universal_login_experience_enum import UniversalLoginExperienceEnum - from .update_action_bindings_response_content import UpdateActionBindingsResponseContent - from .update_action_module_response_content import UpdateActionModuleResponseContent - from .update_action_response_content import UpdateActionResponseContent - from .update_acul_response_content import UpdateAculResponseContent - from .update_anonymous_sessions import UpdateAnonymousSessions - from .update_attack_protection_captcha_response_content import UpdateAttackProtectionCaptchaResponseContent - from .update_bot_detection_settings_response_content import UpdateBotDetectionSettingsResponseContent - from .update_branding_colors import UpdateBrandingColors - from .update_branding_font import UpdateBrandingFont - from .update_branding_page_background import UpdateBrandingPageBackground - from .update_branding_phone_provider_response_content import UpdateBrandingPhoneProviderResponseContent - from .update_branding_response_content import UpdateBrandingResponseContent - from .update_branding_theme_response_content import UpdateBrandingThemeResponseContent - from .update_breached_password_detection_settings_response_content import ( - UpdateBreachedPasswordDetectionSettingsResponseContent, - ) - from .update_brute_force_settings_response_content import UpdateBruteForceSettingsResponseContent - from .update_client_grant_response_content import UpdateClientGrantResponseContent - from .update_client_response_content import UpdateClientResponseContent - from .update_connection_options import UpdateConnectionOptions - from .update_connection_profile_response_content import UpdateConnectionProfileResponseContent - from .update_connection_request_content_ad import UpdateConnectionRequestContentAd - from .update_connection_request_content_adfs import UpdateConnectionRequestContentAdfs - from .update_connection_request_content_amazon import UpdateConnectionRequestContentAmazon - from .update_connection_request_content_apple import UpdateConnectionRequestContentApple - from .update_connection_request_content_auth_0 import UpdateConnectionRequestContentAuth0 - from .update_connection_request_content_auth_0_oidc import UpdateConnectionRequestContentAuth0Oidc - from .update_connection_request_content_azure_ad import UpdateConnectionRequestContentAzureAd - from .update_connection_request_content_baidu import UpdateConnectionRequestContentBaidu - from .update_connection_request_content_bitbucket import UpdateConnectionRequestContentBitbucket - from .update_connection_request_content_bitly import UpdateConnectionRequestContentBitly - from .update_connection_request_content_box import UpdateConnectionRequestContentBox - from .update_connection_request_content_custom import UpdateConnectionRequestContentCustom - from .update_connection_request_content_daccount import UpdateConnectionRequestContentDaccount - from .update_connection_request_content_dropbox import UpdateConnectionRequestContentDropbox - from .update_connection_request_content_dwolla import UpdateConnectionRequestContentDwolla - from .update_connection_request_content_email import UpdateConnectionRequestContentEmail - from .update_connection_request_content_evernote import UpdateConnectionRequestContentEvernote - from .update_connection_request_content_evernote_sandbox import UpdateConnectionRequestContentEvernoteSandbox - from .update_connection_request_content_exact import UpdateConnectionRequestContentExact - from .update_connection_request_content_facebook import UpdateConnectionRequestContentFacebook - from .update_connection_request_content_fitbit import UpdateConnectionRequestContentFitbit - from .update_connection_request_content_git_hub import UpdateConnectionRequestContentGitHub - from .update_connection_request_content_google_apps import UpdateConnectionRequestContentGoogleApps - from .update_connection_request_content_google_o_auth_2 import UpdateConnectionRequestContentGoogleOAuth2 - from .update_connection_request_content_instagram import UpdateConnectionRequestContentInstagram - from .update_connection_request_content_ip import UpdateConnectionRequestContentIp - from .update_connection_request_content_line import UpdateConnectionRequestContentLine - from .update_connection_request_content_linkedin import UpdateConnectionRequestContentLinkedin - from .update_connection_request_content_o_auth_1 import UpdateConnectionRequestContentOAuth1 - from .update_connection_request_content_o_auth_2 import UpdateConnectionRequestContentOAuth2 - from .update_connection_request_content_office_365 import UpdateConnectionRequestContentOffice365 - from .update_connection_request_content_oidc import UpdateConnectionRequestContentOidc - from .update_connection_request_content_okta import UpdateConnectionRequestContentOkta - from .update_connection_request_content_paypal import UpdateConnectionRequestContentPaypal - from .update_connection_request_content_paypal_sandbox import UpdateConnectionRequestContentPaypalSandbox - from .update_connection_request_content_ping_federate import UpdateConnectionRequestContentPingFederate - from .update_connection_request_content_planning_center import UpdateConnectionRequestContentPlanningCenter - from .update_connection_request_content_salesforce import UpdateConnectionRequestContentSalesforce - from .update_connection_request_content_salesforce_community import ( - UpdateConnectionRequestContentSalesforceCommunity, - ) - from .update_connection_request_content_salesforce_sandbox import UpdateConnectionRequestContentSalesforceSandbox - from .update_connection_request_content_saml import UpdateConnectionRequestContentSaml - from .update_connection_request_content_sharepoint import UpdateConnectionRequestContentSharepoint - from .update_connection_request_content_shop import UpdateConnectionRequestContentShop - from .update_connection_request_content_shopify import UpdateConnectionRequestContentShopify - from .update_connection_request_content_sms import UpdateConnectionRequestContentSms - from .update_connection_request_content_soundcloud import UpdateConnectionRequestContentSoundcloud - from .update_connection_request_content_thirty_seven_signals import UpdateConnectionRequestContentThirtySevenSignals - from .update_connection_request_content_twitter import UpdateConnectionRequestContentTwitter - from .update_connection_request_content_untappd import UpdateConnectionRequestContentUntappd - from .update_connection_request_content_vkontakte import UpdateConnectionRequestContentVkontakte - from .update_connection_request_content_weibo import UpdateConnectionRequestContentWeibo - from .update_connection_request_content_windows_live import UpdateConnectionRequestContentWindowsLive - from .update_connection_request_content_wordpress import UpdateConnectionRequestContentWordpress - from .update_connection_request_content_yahoo import UpdateConnectionRequestContentYahoo - from .update_connection_request_content_yandex import UpdateConnectionRequestContentYandex - from .update_connection_response_content import UpdateConnectionResponseContent - from .update_cross_app_access_resource_app import UpdateCrossAppAccessResourceApp - from .update_custom_domain_response_content import UpdateCustomDomainResponseContent - from .update_default_canonical_domain_response_content import UpdateDefaultCanonicalDomainResponseContent - from .update_default_custom_domain_response_content import UpdateDefaultCustomDomainResponseContent - from .update_default_domain_response_content import UpdateDefaultDomainResponseContent - from .update_directory_provisioning_request_content import UpdateDirectoryProvisioningRequestContent - from .update_directory_provisioning_response_content import UpdateDirectoryProvisioningResponseContent - from .update_email_provider_response_content import UpdateEmailProviderResponseContent - from .update_email_template_response_content import UpdateEmailTemplateResponseContent - from .update_enabled_client_connections_request_content import UpdateEnabledClientConnectionsRequestContent - from .update_enabled_client_connections_request_content_item import UpdateEnabledClientConnectionsRequestContentItem - from .update_event_stream_response_content import UpdateEventStreamResponseContent - from .update_experiment_response_content import UpdateExperimentResponseContent - from .update_feature_flag_parameters import UpdateFeatureFlagParameters - from .update_feature_flag_response_content import UpdateFeatureFlagResponseContent - from .update_flow_response_content import UpdateFlowResponseContent - from .update_flows_vault_connection_response_content import UpdateFlowsVaultConnectionResponseContent - from .update_flows_vault_connection_setup import UpdateFlowsVaultConnectionSetup - from .update_form_response_content import UpdateFormResponseContent - from .update_guardian_factor_duo_settings_response_content import UpdateGuardianFactorDuoSettingsResponseContent - from .update_guardian_factors_provider_push_notification_apns_response_content import ( - UpdateGuardianFactorsProviderPushNotificationApnsResponseContent, - ) - from .update_guardian_factors_provider_push_notification_fcm_response_content import ( - UpdateGuardianFactorsProviderPushNotificationFcmResponseContent, - ) - from .update_guardian_factors_provider_push_notification_fcmv_1_response_content import ( - UpdateGuardianFactorsProviderPushNotificationFcmv1ResponseContent, - ) - from .update_guardian_factors_provider_push_notification_sns_response_content import ( - UpdateGuardianFactorsProviderPushNotificationSnsResponseContent, - ) - from .update_hook_response_content import UpdateHookResponseContent - from .update_hook_secret_request_content import UpdateHookSecretRequestContent - from .update_identity_assertion_authorization_grant import UpdateIdentityAssertionAuthorizationGrant - from .update_log_stream_response_content import UpdateLogStreamResponseContent - from .update_network_acl_response_content import UpdateNetworkAclResponseContent - from .update_organization_all_connection_response_content import UpdateOrganizationAllConnectionResponseContent - from .update_organization_client_response_content import UpdateOrganizationClientResponseContent - from .update_organization_connection_response_content import UpdateOrganizationConnectionResponseContent - from .update_organization_discovery_domain_response_content import UpdateOrganizationDiscoveryDomainResponseContent - from .update_organization_response_content import UpdateOrganizationResponseContent - from .update_phone_template_response_content import UpdatePhoneTemplateResponseContent - from .update_rate_limit_policy_response_content import UpdateRateLimitPolicyResponseContent - from .update_refresh_token_response_content import UpdateRefreshTokenResponseContent - from .update_resource_server_response_content import UpdateResourceServerResponseContent - from .update_risk_assessments_settings_new_device_response_content import ( - UpdateRiskAssessmentsSettingsNewDeviceResponseContent, - ) - from .update_risk_assessments_settings_response_content import UpdateRiskAssessmentsSettingsResponseContent - from .update_role_response_content import UpdateRoleResponseContent - from .update_rule_response_content import UpdateRuleResponseContent - from .update_scim_configuration_response_content import UpdateScimConfigurationResponseContent - from .update_segment_response_content import UpdateSegmentResponseContent - from .update_self_service_profile_response_content import UpdateSelfServiceProfileResponseContent - from .update_session_response_content import UpdateSessionResponseContent - from .update_settings_response_content import UpdateSettingsResponseContent - from .update_suspicious_ip_throttling_settings_response_content import ( - UpdateSuspiciousIpThrottlingSettingsResponseContent, - ) - from .update_tenant_settings_response_content import UpdateTenantSettingsResponseContent - from .update_token_quota import UpdateTokenQuota - from .update_universal_login_template_request_content import UpdateUniversalLoginTemplateRequestContent - from .update_universal_login_template_request_content_template import ( - UpdateUniversalLoginTemplateRequestContentTemplate, - ) - from .update_user_attribute_profile_response_content import UpdateUserAttributeProfileResponseContent - from .update_user_authentication_method_response_content import UpdateUserAuthenticationMethodResponseContent - from .update_user_response_content import UpdateUserResponseContent - from .update_variation_overrides_map import UpdateVariationOverridesMap - from .update_variation_response_content import UpdateVariationResponseContent - from .update_verifiable_credential_template_response_content import ( - UpdateVerifiableCredentialTemplateResponseContent, - ) - from .user_app_metadata_schema import UserAppMetadataSchema - from .user_attribute_profile import UserAttributeProfile - from .user_attribute_profile_id import UserAttributeProfileId - from .user_attribute_profile_name import UserAttributeProfileName - from .user_attribute_profile_oidc_mapping import UserAttributeProfileOidcMapping - from .user_attribute_profile_patch_user_id import UserAttributeProfilePatchUserId - from .user_attribute_profile_saml_mapping import UserAttributeProfileSamlMapping - from .user_attribute_profile_strategy_overrides import UserAttributeProfileStrategyOverrides - from .user_attribute_profile_strategy_overrides_mapping import UserAttributeProfileStrategyOverridesMapping - from .user_attribute_profile_strategy_overrides_user_id import UserAttributeProfileStrategyOverridesUserId - from .user_attribute_profile_strategy_overrides_user_id_mapping import ( - UserAttributeProfileStrategyOverridesUserIdMapping, - ) - from .user_attribute_profile_template import UserAttributeProfileTemplate - from .user_attribute_profile_template_item import UserAttributeProfileTemplateItem - from .user_attribute_profile_user_attribute_additional_properties import ( - UserAttributeProfileUserAttributeAdditionalProperties, - ) - from .user_attribute_profile_user_attributes import UserAttributeProfileUserAttributes - from .user_attribute_profile_user_id import UserAttributeProfileUserId - from .user_attribute_profile_user_id_oidc_mapping_enum import UserAttributeProfileUserIdOidcMappingEnum - from .user_attribute_profile_user_id_oidc_strategy_override_mapping import ( - UserAttributeProfileUserIdOidcStrategyOverrideMapping, - ) - from .user_attribute_profile_user_id_saml_mapping import UserAttributeProfileUserIdSamlMapping - from .user_authentication_method import UserAuthenticationMethod - from .user_authentication_method_properties import UserAuthenticationMethodProperties - from .user_authentication_method_properties_enum import UserAuthenticationMethodPropertiesEnum - from .user_block_identifier import UserBlockIdentifier - from .user_effective_permission_response_content import UserEffectivePermissionResponseContent - from .user_effective_permission_role_source_enum import UserEffectivePermissionRoleSourceEnum - from .user_effective_permission_role_source_response_content import UserEffectivePermissionRoleSourceResponseContent - from .user_effective_permission_source_enum import UserEffectivePermissionSourceEnum - from .user_effective_role import UserEffectiveRole - from .user_effective_role_source import UserEffectiveRoleSource - from .user_enrollment_auth_method_enum import UserEnrollmentAuthMethodEnum - from .user_enrollment_status_enum import UserEnrollmentStatusEnum - from .user_grant import UserGrant - from .user_groups_response_schema import UserGroupsResponseSchema - from .user_id import UserId - from .user_identity import UserIdentity - from .user_identity_provider_enum import UserIdentityProviderEnum - from .user_identity_schema import UserIdentitySchema - from .user_list_log_offset_paginated_response_content import UserListLogOffsetPaginatedResponseContent - from .user_metadata import UserMetadata - from .user_metadata_schema import UserMetadataSchema - from .user_multifactor_provider_enum import UserMultifactorProviderEnum - from .user_permission_schema import UserPermissionSchema - from .user_profile_data import UserProfileData - from .user_response_schema import UserResponseSchema - from .username_allowed_types import UsernameAllowedTypes - from .username_attribute import UsernameAttribute - from .username_attribute_identifier import UsernameAttributeIdentifier - from .username_validation import UsernameValidation - from .users_enrollment import UsersEnrollment - from .validate_experiment_response_content import ValidateExperimentResponseContent - from .variation import Variation - from .variation_overrides_map import VariationOverridesMap - from .verifiable_credential_template_response import VerifiableCredentialTemplateResponse - from .verification_method_enum import VerificationMethodEnum - from .verify_custom_domain_response_content import VerifyCustomDomainResponseContent - from .verify_email_ticket_response_content import VerifyEmailTicketResponseContent - from .x_509_certificate_credential import X509CertificateCredential - from .x_509_certificate_credential_type_enum import X509CertificateCredentialTypeEnum - from .xss_protection_config import XssProtectionConfig - from .xss_protection_mode import XssProtectionMode + from .send_base import SendBase + from .send_base_type import SendBaseType + from .send_by_content import SendByContent + from .send_by_template import SendByTemplate + from .send_params import SendParams + from .send_params_content import SendParamsContent + from .send_params_template_id import SendParamsTemplateId + from .send_params_type import SendParamsType _dynamic_imports: typing.Dict[str, str] = { - "Action": ".action", - "ActionBase": ".action_base", - "ActionBinding": ".action_binding", - "ActionBindingRef": ".action_binding_ref", - "ActionBindingRefTypeEnum": ".action_binding_ref_type_enum", - "ActionBindingTypeEnum": ".action_binding_type_enum", - "ActionBindingWithRef": ".action_binding_with_ref", - "ActionBuildStatusEnum": ".action_build_status_enum", - "ActionDeployedVersion": ".action_deployed_version", - "ActionError": ".action_error", - "ActionExecutionResult": ".action_execution_result", - "ActionExecutionStatusEnum": ".action_execution_status_enum", - "ActionModuleAction": ".action_module_action", - "ActionModuleDependency": ".action_module_dependency", - "ActionModuleDependencyRequest": ".action_module_dependency_request", - "ActionModuleListItem": ".action_module_list_item", - "ActionModuleReference": ".action_module_reference", - "ActionModuleSecret": ".action_module_secret", - "ActionModuleSecretRequest": ".action_module_secret_request", - "ActionModuleVersion": ".action_module_version", - "ActionModuleVersionReference": ".action_module_version_reference", - "ActionSecretRequest": ".action_secret_request", - "ActionSecretResponse": ".action_secret_response", - "ActionTrigger": ".action_trigger", - "ActionTriggerCompatibleTrigger": ".action_trigger_compatible_trigger", - "ActionTriggerTypeEnum": ".action_trigger_type_enum", - "ActionVersion": ".action_version", - "ActionVersionBuildStatusEnum": ".action_version_build_status_enum", - "ActionVersionDependency": ".action_version_dependency", - "AculClientFilter": ".acul_client_filter", - "AculClientFilterById": ".acul_client_filter_by_id", - "AculClientFilterByMetadata": ".acul_client_filter_by_metadata", - "AculClientMetadata": ".acul_client_metadata", - "AculConfigs": ".acul_configs", - "AculConfigsItem": ".acul_configs_item", - "AculContextConfiguration": ".acul_context_configuration", - "AculContextConfigurationItem": ".acul_context_configuration_item", - "AculContextEnum": ".acul_context_enum", - "AculDomainFilter": ".acul_domain_filter", - "AculDomainFilterById": ".acul_domain_filter_by_id", - "AculDomainFilterByMetadata": ".acul_domain_filter_by_metadata", - "AculDomainMetadata": ".acul_domain_metadata", - "AculFilters": ".acul_filters", - "AculHeadTag": ".acul_head_tag", - "AculHeadTagAttributes": ".acul_head_tag_attributes", - "AculHeadTagContent": ".acul_head_tag_content", - "AculMatchTypeEnum": ".acul_match_type_enum", - "AculOrganizationFilter": ".acul_organization_filter", - "AculOrganizationFilterById": ".acul_organization_filter_by_id", - "AculOrganizationFilterByMetadata": ".acul_organization_filter_by_metadata", - "AculOrganizationMetadata": ".acul_organization_metadata", - "AculRenderingModeEnum": ".acul_rendering_mode_enum", - "AddOrganizationConnectionResponseContent": ".add_organization_connection_response_content", - "AdvanceRampResponseContent": ".advance_ramp_response_content", - "AgentMetadata": ".agent_metadata", - "AgentResponseContent": ".agent_response_content", - "AllocationItem": ".allocation_item", - "AllocationRequestItem": ".allocation_request_item", - "AllocationStrategyEnum": ".allocation_strategy_enum", - "AnomalyIpFormat": ".anomaly_ip_format", - "AnonymousSessions": ".anonymous_sessions", - "AppMetadata": ".app_metadata", - "AssessorsTypeEnum": ".assessors_type_enum", - "AssociateOrganizationClientGrantResponseContent": ".associate_organization_client_grant_response_content", - "AsyncApprovalNotificationsChannelsEnum": ".async_approval_notifications_channels_enum", - "AttackProtectionCaptchaArkoseResponseContent": ".attack_protection_captcha_arkose_response_content", - "AttackProtectionCaptchaAuthChallengeRequest": ".attack_protection_captcha_auth_challenge_request", - "AttackProtectionCaptchaAuthChallengeResponseContent": ".attack_protection_captcha_auth_challenge_response_content", - "AttackProtectionCaptchaFriendlyCaptchaResponseContent": ".attack_protection_captcha_friendly_captcha_response_content", - "AttackProtectionCaptchaHcaptchaResponseContent": ".attack_protection_captcha_hcaptcha_response_content", - "AttackProtectionCaptchaProviderId": ".attack_protection_captcha_provider_id", - "AttackProtectionCaptchaRecaptchaEnterpriseResponseContent": ".attack_protection_captcha_recaptcha_enterprise_response_content", - "AttackProtectionCaptchaRecaptchaV2ResponseContent": ".attack_protection_captcha_recaptcha_v_2_response_content", - "AttackProtectionCaptchaSimpleCaptchaResponseContent": ".attack_protection_captcha_simple_captcha_response_content", - "AttackProtectionUpdateCaptchaArkose": ".attack_protection_update_captcha_arkose", - "AttackProtectionUpdateCaptchaFriendlyCaptcha": ".attack_protection_update_captcha_friendly_captcha", - "AttackProtectionUpdateCaptchaHcaptcha": ".attack_protection_update_captcha_hcaptcha", - "AttackProtectionUpdateCaptchaRecaptchaEnterprise": ".attack_protection_update_captcha_recaptcha_enterprise", - "AttackProtectionUpdateCaptchaRecaptchaV2": ".attack_protection_update_captcha_recaptcha_v_2", - "AuthenticationFlowEnum": ".authentication_flow_enum", - "AuthenticationMethodTypeEnum": ".authentication_method_type_enum", - "AuthenticationTypeEnum": ".authentication_type_enum", - "B2BIntegrationConfiguration": ".b_2_b_integration_configuration", - "B2BIntegrationConfigurationIntegrationTypeEnum": ".b_2_b_integration_configuration_integration_type_enum", - "BadRequestSchema": ".bad_request_schema", - "BadRequestSchemaError": ".bad_request_schema_error", - "BotDetectionAllowlist": ".bot_detection_allowlist", - "BotDetectionChallengePolicyPasswordFlowEnum": ".bot_detection_challenge_policy_password_flow_enum", - "BotDetectionChallengePolicyPasswordResetFlowEnum": ".bot_detection_challenge_policy_password_reset_flow_enum", - "BotDetectionChallengePolicyPasswordlessFlowEnum": ".bot_detection_challenge_policy_passwordless_flow_enum", - "BotDetectionCidrBlock": ".bot_detection_cidr_block", - "BotDetectionIPv4": ".bot_detection_i_pv_4", - "BotDetectionIPv6": ".bot_detection_i_pv_6", - "BotDetectionIPv6CidrBlock": ".bot_detection_i_pv_6_cidr_block", - "BotDetectionIpAddressOrCidrBlock": ".bot_detection_ip_address_or_cidr_block", - "BotDetectionLevelEnum": ".bot_detection_level_enum", - "BotDetectionMonitoringModeEnabled": ".bot_detection_monitoring_mode_enabled", - "BrandingColors": ".branding_colors", - "BrandingFont": ".branding_font", - "BrandingPageBackground": ".branding_page_background", - "BrandingThemeBorders": ".branding_theme_borders", - "BrandingThemeBordersButtonsStyleEnum": ".branding_theme_borders_buttons_style_enum", - "BrandingThemeBordersInputsStyleEnum": ".branding_theme_borders_inputs_style_enum", - "BrandingThemeColors": ".branding_theme_colors", - "BrandingThemeColorsCaptchaWidgetThemeEnum": ".branding_theme_colors_captcha_widget_theme_enum", - "BrandingThemeFontBodyText": ".branding_theme_font_body_text", - "BrandingThemeFontButtonsText": ".branding_theme_font_buttons_text", - "BrandingThemeFontInputLabels": ".branding_theme_font_input_labels", - "BrandingThemeFontLinks": ".branding_theme_font_links", - "BrandingThemeFontLinksStyleEnum": ".branding_theme_font_links_style_enum", - "BrandingThemeFontSubtitle": ".branding_theme_font_subtitle", - "BrandingThemeFontTitle": ".branding_theme_font_title", - "BrandingThemeFonts": ".branding_theme_fonts", - "BrandingThemeIdentifiers": ".branding_theme_identifiers", - "BrandingThemeIdentifiersLoginDisplayEnum": ".branding_theme_identifiers_login_display_enum", - "BrandingThemeIdentifiersPhoneDisplay": ".branding_theme_identifiers_phone_display", - "BrandingThemeIdentifiersPhoneDisplayFormattingEnum": ".branding_theme_identifiers_phone_display_formatting_enum", - "BrandingThemeIdentifiersPhoneDisplayMaskingEnum": ".branding_theme_identifiers_phone_display_masking_enum", - "BrandingThemePageBackground": ".branding_theme_page_background", - "BrandingThemePageBackgroundPageLayoutEnum": ".branding_theme_page_background_page_layout_enum", - "BrandingThemeWidget": ".branding_theme_widget", - "BrandingThemeWidgetHeaderTextAlignmentEnum": ".branding_theme_widget_header_text_alignment_enum", - "BrandingThemeWidgetLogoPositionEnum": ".branding_theme_widget_logo_position_enum", - "BrandingThemeWidgetSocialButtonsLayoutEnum": ".branding_theme_widget_social_buttons_layout_enum", - "BreachedPasswordDetectionAdminNotificationFrequencyEnum": ".breached_password_detection_admin_notification_frequency_enum", - "BreachedPasswordDetectionMethodEnum": ".breached_password_detection_method_enum", - "BreachedPasswordDetectionPreChangePasswordShieldsEnum": ".breached_password_detection_pre_change_password_shields_enum", - "BreachedPasswordDetectionPreChangePasswordStage": ".breached_password_detection_pre_change_password_stage", - "BreachedPasswordDetectionPreUserRegistrationShieldsEnum": ".breached_password_detection_pre_user_registration_shields_enum", - "BreachedPasswordDetectionPreUserRegistrationStage": ".breached_password_detection_pre_user_registration_stage", - "BreachedPasswordDetectionShieldsEnum": ".breached_password_detection_shields_enum", - "BreachedPasswordDetectionStage": ".breached_password_detection_stage", - "BruteForceProtectionFormSubmissionModeEnum": ".brute_force_protection_form_submission_mode_enum", - "BruteForceProtectionModeEnum": ".brute_force_protection_mode_enum", - "BruteForceProtectionShieldsEnum": ".brute_force_protection_shields_enum", - "BulkUpdateAculResponseContent": ".bulk_update_acul_response_content", - "CertificateSubjectDnCredential": ".certificate_subject_dn_credential", - "CertificateSubjectDnCredentialTypeEnum": ".certificate_subject_dn_credential_type_enum", - "ChangePasswordTicketIdentity": ".change_password_ticket_identity", - "ChangePasswordTicketResponseContent": ".change_password_ticket_response_content", - "CimdExternalMetadataCreatedByEnum": ".cimd_external_metadata_created_by_enum", - "CimdMappedClientAuthenticationMethods": ".cimd_mapped_client_authentication_methods", - "CimdMappedClientAuthenticationMethodsPrivateKeyJwt": ".cimd_mapped_client_authentication_methods_private_key_jwt", - "CimdMappedClientFields": ".cimd_mapped_client_fields", - "CimdMappedPrivateKeyJwtCredential": ".cimd_mapped_private_key_jwt_credential", - "CimdValidationResult": ".cimd_validation_result", - "Client": ".client", - "ClientAddonAws": ".client_addon_aws", - "ClientAddonAzureBlob": ".client_addon_azure_blob", - "ClientAddonAzureSb": ".client_addon_azure_sb", - "ClientAddonBox": ".client_addon_box", - "ClientAddonCloudBees": ".client_addon_cloud_bees", - "ClientAddonConcur": ".client_addon_concur", - "ClientAddonDropbox": ".client_addon_dropbox", - "ClientAddonEchoSign": ".client_addon_echo_sign", - "ClientAddonEgnyte": ".client_addon_egnyte", - "ClientAddonFirebase": ".client_addon_firebase", - "ClientAddonLayer": ".client_addon_layer", - "ClientAddonMscrm": ".client_addon_mscrm", - "ClientAddonNewRelic": ".client_addon_new_relic", - "ClientAddonOag": ".client_addon_oag", - "ClientAddonOffice365": ".client_addon_office_365", - "ClientAddonRms": ".client_addon_rms", - "ClientAddonSalesforce": ".client_addon_salesforce", - "ClientAddonSalesforceApi": ".client_addon_salesforce_api", - "ClientAddonSalesforceSandboxApi": ".client_addon_salesforce_sandbox_api", - "ClientAddonSaml": ".client_addon_saml", - "ClientAddonSamlMapping": ".client_addon_saml_mapping", - "ClientAddonSapapi": ".client_addon_sapapi", - "ClientAddonSentry": ".client_addon_sentry", - "ClientAddonSharePoint": ".client_addon_share_point", - "ClientAddonSharePointExternalUrl": ".client_addon_share_point_external_url", - "ClientAddonSlack": ".client_addon_slack", - "ClientAddonSpringCm": ".client_addon_spring_cm", - "ClientAddonSsoIntegration": ".client_addon_sso_integration", - "ClientAddonWams": ".client_addon_wams", - "ClientAddonWsFed": ".client_addon_ws_fed", - "ClientAddonZendesk": ".client_addon_zendesk", - "ClientAddonZoom": ".client_addon_zoom", - "ClientAddons": ".client_addons", - "ClientAnonymousSessionTransferNetworkBindingEnum": ".client_anonymous_session_transfer_network_binding_enum", - "ClientAppTypeEnum": ".client_app_type_enum", - "ClientAsyncApprovalNotificationsChannelsApiPatchConfiguration": ".client_async_approval_notifications_channels_api_patch_configuration", - "ClientAsyncApprovalNotificationsChannelsApiPostConfiguration": ".client_async_approval_notifications_channels_api_post_configuration", - "ClientAuthenticationMethod": ".client_authentication_method", - "ClientAuthenticationMethodPrivateKeyJwt": ".client_authentication_method_private_key_jwt", - "ClientAuthenticationMethodPrivateKeyJwtCredentials": ".client_authentication_method_private_key_jwt_credentials", - "ClientAuthenticationMethodSelfSignedTlsClientAuth": ".client_authentication_method_self_signed_tls_client_auth", - "ClientAuthenticationMethodSelfSignedTlsClientAuthCredentials": ".client_authentication_method_self_signed_tls_client_auth_credentials", - "ClientAuthenticationMethodTlsClientAuth": ".client_authentication_method_tls_client_auth", - "ClientAuthenticationMethodTlsClientAuthCredentials": ".client_authentication_method_tls_client_auth_credentials", - "ClientComplianceLevelEnum": ".client_compliance_level_enum", - "ClientCreateAuthenticationMethod": ".client_create_authentication_method", - "ClientCreateAuthenticationMethodPrivateKeyJwt": ".client_create_authentication_method_private_key_jwt", - "ClientCreateAuthenticationMethodPrivateKeyJwtCredentials": ".client_create_authentication_method_private_key_jwt_credentials", - "ClientCreateAuthenticationMethodTlsClientAuth": ".client_create_authentication_method_tls_client_auth", - "ClientCreateAuthenticationMethodTlsClientAuthCredentials": ".client_create_authentication_method_tls_client_auth_credentials", - "ClientCredential": ".client_credential", - "ClientCredentialAlgorithmEnum": ".client_credential_algorithm_enum", - "ClientCredentialTypeEnum": ".client_credential_type_enum", - "ClientDefaultOrganization": ".client_default_organization", - "ClientDefaultOrganizationFlowsEnum": ".client_default_organization_flows_enum", - "ClientEncryptionKey": ".client_encryption_key", - "ClientExternalMetadataCreatedByEnum": ".client_external_metadata_created_by_enum", - "ClientExternalMetadataStatusEnum": ".client_external_metadata_status_enum", - "ClientExternalMetadataTypeEnum": ".client_external_metadata_type_enum", - "ClientGrantAllowAnyOrganizationEnum": ".client_grant_allow_any_organization_enum", - "ClientGrantDefaultForEnum": ".client_grant_default_for_enum", - "ClientGrantOrganizationNullableUsageEnum": ".client_grant_organization_nullable_usage_enum", - "ClientGrantOrganizationUsageEnum": ".client_grant_organization_usage_enum", - "ClientGrantResponseContent": ".client_grant_response_content", - "ClientGrantSortFieldEnum": ".client_grant_sort_field_enum", - "ClientGrantSubjectTypeEnum": ".client_grant_subject_type_enum", - "ClientJwtConfiguration": ".client_jwt_configuration", - "ClientJwtConfigurationScopes": ".client_jwt_configuration_scopes", - "ClientMetadata": ".client_metadata", - "ClientMobile": ".client_mobile", - "ClientMobileAndroid": ".client_mobile_android", - "ClientMobileiOs": ".client_mobilei_os", - "ClientMyOrganizationConfigurationAllowedStrategiesEnum": ".client_my_organization_configuration_allowed_strategies_enum", - "ClientMyOrganizationConfigurationThirdPartyClientAccessAllowedValuesEnum": ".client_my_organization_configuration_third_party_client_access_allowed_values_enum", - "ClientMyOrganizationConfigurationThirdPartyClientAccessDefaultValueEnum": ".client_my_organization_configuration_third_party_client_access_default_value_enum", - "ClientMyOrganizationDeletionBehaviorEnum": ".client_my_organization_deletion_behavior_enum", - "ClientMyOrganizationPatchConfiguration": ".client_my_organization_patch_configuration", - "ClientMyOrganizationPostConfiguration": ".client_my_organization_post_configuration", - "ClientMyOrganizationResponseConfiguration": ".client_my_organization_response_configuration", - "ClientMyOrganizationThirdPartyClientAccessConfiguration": ".client_my_organization_third_party_client_access_configuration", - "ClientOidcBackchannelLogoutInitiators": ".client_oidc_backchannel_logout_initiators", - "ClientOidcBackchannelLogoutInitiatorsEnum": ".client_oidc_backchannel_logout_initiators_enum", - "ClientOidcBackchannelLogoutInitiatorsModeEnum": ".client_oidc_backchannel_logout_initiators_mode_enum", - "ClientOidcBackchannelLogoutSessionMetadata": ".client_oidc_backchannel_logout_session_metadata", - "ClientOidcBackchannelLogoutSettings": ".client_oidc_backchannel_logout_settings", - "ClientOidcSupport": ".client_oidc_support", - "ClientOidcSupportAllowedScopesEnum": ".client_oidc_support_allowed_scopes_enum", - "ClientOidcSupportPatch": ".client_oidc_support_patch", - "ClientOidcSupportPost": ".client_oidc_support_post", - "ClientOrganizationDiscoveryEnum": ".client_organization_discovery_enum", - "ClientOrganizationRequireBehaviorEnum": ".client_organization_require_behavior_enum", - "ClientOrganizationRequireBehaviorPatchEnum": ".client_organization_require_behavior_patch_enum", - "ClientOrganizationUsageEnum": ".client_organization_usage_enum", - "ClientOrganizationUsagePatchEnum": ".client_organization_usage_patch_enum", - "ClientProfile": ".client_profile", - "ClientProfileApplyPolicy": ".client_profile_apply_policy", - "ClientProfileApplyPolicyExternalMetadataCreatedByEnum": ".client_profile_apply_policy_external_metadata_created_by_enum", - "ClientProfileApplyPolicyExternalMetadataTypeEnum": ".client_profile_apply_policy_external_metadata_type_enum", - "ClientProfileClientConfiguration": ".client_profile_client_configuration", - "ClientProfileClientConfigurationOidcSupport": ".client_profile_client_configuration_oidc_support", - "ClientProfileClientConfigurationOidcSupportAllowedScopesEnum": ".client_profile_client_configuration_oidc_support_allowed_scopes_enum", - "ClientProfileClientConfigurationOidcSupportDefaultValue": ".client_profile_client_configuration_oidc_support_default_value", - "ClientProfileClientConfigurationOrganizationDiscoveryMethodEnum": ".client_profile_client_configuration_organization_discovery_method_enum", - "ClientProfileClientConfigurationOrganizationDiscoveryMethods": ".client_profile_client_configuration_organization_discovery_methods", - "ClientProfileClientConfigurationOrganizationRequireBehavior": ".client_profile_client_configuration_organization_require_behavior", - "ClientProfileClientConfigurationOrganizationRequireBehaviorEnum": ".client_profile_client_configuration_organization_require_behavior_enum", - "ClientProfileClientConfigurationOrganizationUsage": ".client_profile_client_configuration_organization_usage", - "ClientProfileClientConfigurationOrganizationUsageEnum": ".client_profile_client_configuration_organization_usage_enum", - "ClientProfileClientConfigurationRefreshToken": ".client_profile_client_configuration_refresh_token", - "ClientProfileClientConfigurationRequireProofOfPossession": ".client_profile_client_configuration_require_proof_of_possession", - "ClientProfileDescription": ".client_profile_description", - "ClientProfileId": ".client_profile_id", - "ClientProfileName": ".client_profile_name", - "ClientProfileRefreshTokenIdleTokenLifetime": ".client_profile_refresh_token_idle_token_lifetime", - "ClientProfileRefreshTokenLeeway": ".client_profile_refresh_token_leeway", - "ClientProfileRefreshTokenTokenLifetime": ".client_profile_refresh_token_token_lifetime", - "ClientRedirectionPolicyEnum": ".client_redirection_policy_enum", - "ClientRefreshTokenConfiguration": ".client_refresh_token_configuration", - "ClientRefreshTokenPolicy": ".client_refresh_token_policy", - "ClientSearchResponse": ".client_search_response", - "ClientSessionTransferAllowedAuthenticationMethodsEnum": ".client_session_transfer_allowed_authentication_methods_enum", - "ClientSessionTransferConfiguration": ".client_session_transfer_configuration", - "ClientSessionTransferDelegationConfiguration": ".client_session_transfer_delegation_configuration", - "ClientSessionTransferDelegationDeviceBindingEnum": ".client_session_transfer_delegation_device_binding_enum", - "ClientSessionTransferDeviceBindingEnum": ".client_session_transfer_device_binding_enum", - "ClientSignedRequestObjectWithCredentialId": ".client_signed_request_object_with_credential_id", - "ClientSignedRequestObjectWithPublicKey": ".client_signed_request_object_with_public_key", - "ClientSigningKey": ".client_signing_key", - "ClientSigningKeys": ".client_signing_keys", - "ClientSortFieldEnum": ".client_sort_field_enum", - "ClientThirdPartySecurityModeEnum": ".client_third_party_security_mode_enum", - "ClientTokenEndpointAuthMethodEnum": ".client_token_endpoint_auth_method_enum", - "ClientTokenEndpointAuthMethodOrNullEnum": ".client_token_endpoint_auth_method_or_null_enum", - "ClientTokenExchangeConfiguration": ".client_token_exchange_configuration", - "ClientTokenExchangeConfigurationOrNull": ".client_token_exchange_configuration_or_null", - "ClientTokenExchangeTypeEnum": ".client_token_exchange_type_enum", - "ClientTokenVaultPrivilegedAccessWithCredentialId": ".client_token_vault_privileged_access_with_credential_id", - "ClientTokenVaultPrivilegedAccessWithPublicKey": ".client_token_vault_privileged_access_with_public_key", - "ConflictSchema": ".conflict_schema", - "ConflictSchemaError": ".conflict_schema_error", - "ConnectedAccount": ".connected_account", - "ConnectedAccountAccessTypeEnum": ".connected_account_access_type_enum", - "ConnectionAccessTokenUrloAuth1": ".connection_access_token_urlo_auth_1", - "ConnectionAcrValuesSupported": ".connection_acr_values_supported", - "ConnectionAdminAccessTokenExpiresInGoogleApps": ".connection_admin_access_token_expires_in_google_apps", - "ConnectionAdminAccessTokenGoogleApps": ".connection_admin_access_token_google_apps", - "ConnectionAdminRefreshTokenGoogleApps": ".connection_admin_refresh_token_google_apps", - "ConnectionAgentIpad": ".connection_agent_ipad", - "ConnectionAgentModeAd": ".connection_agent_mode_ad", - "ConnectionAgentVersionAd": ".connection_agent_version_ad", - "ConnectionAllowedAudiencesGoogleOAuth2": ".connection_allowed_audiences_google_o_auth_2", - "ConnectionApiBehaviorEnum": ".connection_api_behavior_enum", - "ConnectionApiEnableGroups": ".connection_api_enable_groups", - "ConnectionApiEnableGroupsGoogleApps": ".connection_api_enable_groups_google_apps", - "ConnectionApiEnableUsers": ".connection_api_enable_users", - "ConnectionApiEnableUsersGoogleApps": ".connection_api_enable_users_google_apps", - "ConnectionAppDomainAzureAd": ".connection_app_domain_azure_ad", - "ConnectionAssertionDecryptionAlgorithmProfileEnum": ".connection_assertion_decryption_algorithm_profile_enum", - "ConnectionAssertionDecryptionSettings": ".connection_assertion_decryption_settings", - "ConnectionAttributeMapAttributes": ".connection_attribute_map_attributes", - "ConnectionAttributeMapOidc": ".connection_attribute_map_oidc", - "ConnectionAttributeMapOkta": ".connection_attribute_map_okta", - "ConnectionAttributeMapUserinfoScope": ".connection_attribute_map_userinfo_scope", - "ConnectionAttributes": ".connection_attributes", - "ConnectionAuthParamsAdditionalPropertiesOAuth2": ".connection_auth_params_additional_properties_o_auth_2", - "ConnectionAuthParamsEmail": ".connection_auth_params_email", - "ConnectionAuthParamsMap": ".connection_auth_params_map", - "ConnectionAuthParamsOAuth2": ".connection_auth_params_o_auth_2", - "ConnectionAuthenticationMethods": ".connection_authentication_methods", - "ConnectionAuthenticationPurpose": ".connection_authentication_purpose", - "ConnectionAuthorizationEndpoint": ".connection_authorization_endpoint", - "ConnectionBaseUrlExact": ".connection_base_url_exact", - "ConnectionBruteForceProtection": ".connection_brute_force_protection", - "ConnectionCalculatedThumbprintSaml": ".connection_calculated_thumbprint_saml", - "ConnectionCertsAd": ".connection_certs_ad", - "ConnectionClaimTypesSupported": ".connection_claim_types_supported", - "ConnectionClaimsLocalesSupported": ".connection_claims_locales_supported", - "ConnectionClaimsParameterSupported": ".connection_claims_parameter_supported", - "ConnectionClaimsSupported": ".connection_claims_supported", - "ConnectionClientId": ".connection_client_id", - "ConnectionClientIdAmazon": ".connection_client_id_amazon", - "ConnectionClientIdAzureAd": ".connection_client_id_azure_ad", - "ConnectionClientIdBitbucket": ".connection_client_id_bitbucket", - "ConnectionClientIdExact": ".connection_client_id_exact", - "ConnectionClientIdFacebook": ".connection_client_id_facebook", - "ConnectionClientIdGoogleApps": ".connection_client_id_google_apps", - "ConnectionClientIdGoogleOAuth2": ".connection_client_id_google_o_auth_2", - "ConnectionClientIdLine": ".connection_client_id_line", - "ConnectionClientIdLinkedin": ".connection_client_id_linkedin", - "ConnectionClientIdOAuth1": ".connection_client_id_o_auth_1", - "ConnectionClientIdOAuth2": ".connection_client_id_o_auth_2", - "ConnectionClientIdOidc": ".connection_client_id_oidc", - "ConnectionClientIdPaypal": ".connection_client_id_paypal", - "ConnectionClientIdSalesforce": ".connection_client_id_salesforce", - "ConnectionClientIdSamlxaaRequestingApp": ".connection_client_id_samlxaa_requesting_app", - "ConnectionClientIdWindowsLive": ".connection_client_id_windows_live", - "ConnectionClientProtocolSaml": ".connection_client_protocol_saml", - "ConnectionClientSecret": ".connection_client_secret", - "ConnectionClientSecretAmazon": ".connection_client_secret_amazon", - "ConnectionClientSecretAzureAd": ".connection_client_secret_azure_ad", - "ConnectionClientSecretBitbucket": ".connection_client_secret_bitbucket", - "ConnectionClientSecretExact": ".connection_client_secret_exact", - "ConnectionClientSecretFacebook": ".connection_client_secret_facebook", - "ConnectionClientSecretGoogleApps": ".connection_client_secret_google_apps", - "ConnectionClientSecretGoogleOAuth2": ".connection_client_secret_google_o_auth_2", - "ConnectionClientSecretLine": ".connection_client_secret_line", - "ConnectionClientSecretLinkedin": ".connection_client_secret_linkedin", - "ConnectionClientSecretOAuth1": ".connection_client_secret_o_auth_1", - "ConnectionClientSecretOAuth2": ".connection_client_secret_o_auth_2", - "ConnectionClientSecretOidc": ".connection_client_secret_oidc", - "ConnectionClientSecretPaypal": ".connection_client_secret_paypal", - "ConnectionClientSecretSalesforce": ".connection_client_secret_salesforce", - "ConnectionClientSecretSamlxaaRequestingApp": ".connection_client_secret_samlxaa_requesting_app", - "ConnectionClientSecretWindowsLive": ".connection_client_secret_windows_live", - "ConnectionCommon": ".connection_common", - "ConnectionCommunityBaseUrlSalesforce": ".connection_community_base_url_salesforce", - "ConnectionConfiguration": ".connection_configuration", - "ConnectionConnectedAccountsPurpose": ".connection_connected_accounts_purpose", - "ConnectionConnectedAccountsPurposeXaa": ".connection_connected_accounts_purpose_xaa", - "ConnectionConnectionSettings": ".connection_connection_settings", - "ConnectionConnectionSettingsPkceEnum": ".connection_connection_settings_pkce_enum", - "ConnectionCrossAppAccessResourceApp": ".connection_cross_app_access_resource_app", - "ConnectionCrossAppAccessResourceAppStatusEnum": ".connection_cross_app_access_resource_app_status_enum", - "ConnectionCustomHeadersOAuth2": ".connection_custom_headers_o_auth_2", - "ConnectionCustomScripts": ".connection_custom_scripts", - "ConnectionDebugSaml": ".connection_debug_saml", - "ConnectionDecryptionKeySaml": ".connection_decryption_key_saml", - "ConnectionDecryptionKeySamlCert": ".connection_decryption_key_saml_cert", - "ConnectionDestinationUrlSaml": ".connection_destination_url_saml", - "ConnectionDigestAlgorithmEnumSaml": ".connection_digest_algorithm_enum_saml", - "ConnectionDigestAlgorithmSaml": ".connection_digest_algorithm_saml", - "ConnectionDisableSelfServiceChangePassword": ".connection_disable_self_service_change_password", - "ConnectionDisableSignup": ".connection_disable_signup", - "ConnectionDisableSignupSms": ".connection_disable_signup_sms", - "ConnectionDiscoveryUrl": ".connection_discovery_url", - "ConnectionDisplayName": ".connection_display_name", - "ConnectionDisplayValuesSupported": ".connection_display_values_supported", - "ConnectionDomainAliases": ".connection_domain_aliases", - "ConnectionDomainAliasesAd": ".connection_domain_aliases_ad", - "ConnectionDomainAliasesAzureAd": ".connection_domain_aliases_azure_ad", - "ConnectionDomainAliasesItemsOne": ".connection_domain_aliases_items_one", - "ConnectionDomainAliasesSaml": ".connection_domain_aliases_saml", - "ConnectionDomainGoogleApps": ".connection_domain_google_apps", - "ConnectionDomainOkta": ".connection_domain_okta", - "ConnectionDpopSigningAlgEnum": ".connection_dpop_signing_alg_enum", - "ConnectionDpopSigningAlgValuesSupported": ".connection_dpop_signing_alg_values_supported", - "ConnectionEmailBodyEmail": ".connection_email_body_email", - "ConnectionEmailEmail": ".connection_email_email", - "ConnectionEmailEmailSyntax": ".connection_email_email_syntax", - "ConnectionEmailFromEmail": ".connection_email_from_email", - "ConnectionEmailOtpAuthenticationMethod": ".connection_email_otp_authentication_method", - "ConnectionEmailSubjectEmail": ".connection_email_subject_email", - "ConnectionEnablePushedAuthorizationRequests": ".connection_enable_pushed_authorization_requests", - "ConnectionEnableScriptContext": ".connection_enable_script_context", - "ConnectionEnabledClient": ".connection_enabled_client", - "ConnectionEnabledClients": ".connection_enabled_clients", - "ConnectionEnabledDatabaseCustomization": ".connection_enabled_database_customization", - "ConnectionEndSessionEndpoint": ".connection_end_session_endpoint", - "ConnectionEntityIdSaml": ".connection_entity_id_saml", - "ConnectionExtAdmin": ".connection_ext_admin", - "ConnectionExtAgreedTerms": ".connection_ext_agreed_terms", - "ConnectionExtAgreedTermsGoogleApps": ".connection_ext_agreed_terms_google_apps", - "ConnectionExtAssignedPlans": ".connection_ext_assigned_plans", - "ConnectionExtGroups": ".connection_ext_groups", - "ConnectionExtGroupsAzureAd": ".connection_ext_groups_azure_ad", - "ConnectionExtGroupsGoogleApps": ".connection_ext_groups_google_apps", - "ConnectionExtIsAdminGoogleApps": ".connection_ext_is_admin_google_apps", - "ConnectionExtIsSuspended": ".connection_ext_is_suspended", - "ConnectionExtIsSuspendedGoogleApps": ".connection_ext_is_suspended_google_apps", - "ConnectionExtProfile": ".connection_ext_profile", - "ConnectionFieldsMap": ".connection_fields_map", - "ConnectionFieldsMapSaml": ".connection_fields_map_saml", - "ConnectionFieldsMapSamlValue": ".connection_fields_map_saml_value", - "ConnectionForList": ".connection_for_list", - "ConnectionForOrganization": ".connection_for_organization", - "ConnectionForwardReqInfoSms": ".connection_forward_req_info_sms", - "ConnectionFreeformScopesAmazon": ".connection_freeform_scopes_amazon", - "ConnectionFreeformScopesGoogleOAuth2": ".connection_freeform_scopes_google_o_auth_2", - "ConnectionFreeformScopesLinkedin": ".connection_freeform_scopes_linkedin", - "ConnectionFreeformScopesPaypal": ".connection_freeform_scopes_paypal", - "ConnectionFreeformScopesSalesforce": ".connection_freeform_scopes_salesforce", - "ConnectionFreeformScopesWindowsLive": ".connection_freeform_scopes_windows_live", - "ConnectionFromSms": ".connection_from_sms", - "ConnectionGatewayAuthentication": ".connection_gateway_authentication", - "ConnectionGatewayAuthenticationAudienceSms": ".connection_gateway_authentication_audience_sms", - "ConnectionGatewayAuthenticationMethodSms": ".connection_gateway_authentication_method_sms", - "ConnectionGatewayAuthenticationSms": ".connection_gateway_authentication_sms", - "ConnectionGatewayAuthenticationSubjectSms": ".connection_gateway_authentication_subject_sms", - "ConnectionGatewayUrlSms": ".connection_gateway_url_sms", - "ConnectionGlobalTokenRevocationJwtIssSaml": ".connection_global_token_revocation_jwt_iss_saml", - "ConnectionGlobalTokenRevocationJwtSubSaml": ".connection_global_token_revocation_jwt_sub_saml", - "ConnectionGrantTypesSupported": ".connection_grant_types_supported", - "ConnectionHandleLoginFromSocialGoogleApps": ".connection_handle_login_from_social_google_apps", - "ConnectionHttpsUrlWithHttpFallback": ".connection_https_url_with_http_fallback", - "ConnectionHttpsUrlWithHttpFallback2048": ".connection_https_url_with_http_fallback_2048", - "ConnectionHttpsUrlWithHttpFallback255": ".connection_https_url_with_http_fallback_255", - "ConnectionIconUrl": ".connection_icon_url", - "ConnectionIconUrlAdfs": ".connection_icon_url_adfs", - "ConnectionIconUrlAzureAd": ".connection_icon_url_azure_ad", - "ConnectionIconUrlGoogleApps": ".connection_icon_url_google_apps", - "ConnectionIconUrlGoogleOAuth2": ".connection_icon_url_google_o_auth_2", - "ConnectionIconUrlSaml": ".connection_icon_url_saml", - "ConnectionId": ".connection_id", - "ConnectionIdTokenEncryptionAlgValuesSupported": ".connection_id_token_encryption_alg_values_supported", - "ConnectionIdTokenEncryptionEncValuesSupported": ".connection_id_token_encryption_enc_values_supported", - "ConnectionIdTokenSessionExpirySupported": ".connection_id_token_session_expiry_supported", - "ConnectionIdTokenSignedResponseAlgEnum": ".connection_id_token_signed_response_alg_enum", - "ConnectionIdTokenSignedResponseAlgs": ".connection_id_token_signed_response_algs", - "ConnectionIdTokenSigningAlgValuesSupported": ".connection_id_token_signing_alg_values_supported", - "ConnectionIdentifierPrecedence": ".connection_identifier_precedence", - "ConnectionIdentifierPrecedenceEnum": ".connection_identifier_precedence_enum", - "ConnectionIdentityApiAzureAd": ".connection_identity_api_azure_ad", - "ConnectionIdentityApiEnumAzureAd": ".connection_identity_api_enum_azure_ad", - "ConnectionIdentityProviderEnum": ".connection_identity_provider_enum", - "ConnectionImportMode": ".connection_import_mode", - "ConnectionIpsAd": ".connection_ips_ad", - "ConnectionIsDomainConnection": ".connection_is_domain_connection", - "ConnectionIssuer": ".connection_issuer", - "ConnectionJwksUri": ".connection_jwks_uri", - "ConnectionKey": ".connection_key", - "ConnectionKeyUseEnum": ".connection_key_use_enum", - "ConnectionMappingModeEnumOidc": ".connection_mapping_mode_enum_oidc", - "ConnectionMappingModeEnumOkta": ".connection_mapping_mode_enum_okta", - "ConnectionMaxGroupsToRetrieve": ".connection_max_groups_to_retrieve", - "ConnectionMessagingServiceSidSms": ".connection_messaging_service_sid_sms", - "ConnectionMetadataUrlSaml": ".connection_metadata_url_saml", - "ConnectionMetadataXml": ".connection_metadata_xml", - "ConnectionMetadataXmlAdfs": ".connection_metadata_xml_adfs", - "ConnectionMetadataXmlSaml": ".connection_metadata_xml_saml", - "ConnectionMfa": ".connection_mfa", - "ConnectionName": ".connection_name", - "ConnectionNamePrefixTemplate": ".connection_name_prefix_template", - "ConnectionNonPersistentAttrs": ".connection_non_persistent_attrs", - "ConnectionOpPolicyUri": ".connection_op_policy_uri", - "ConnectionOpTosUri": ".connection_op_tos_uri", - "ConnectionOptions": ".connection_options", - "ConnectionOptionsAd": ".connection_options_ad", - "ConnectionOptionsAdfs": ".connection_options_adfs", - "ConnectionOptionsAmazon": ".connection_options_amazon", - "ConnectionOptionsApple": ".connection_options_apple", - "ConnectionOptionsAuth0": ".connection_options_auth_0", - "ConnectionOptionsAuth0Oidc": ".connection_options_auth_0_oidc", - "ConnectionOptionsAzureAd": ".connection_options_azure_ad", - "ConnectionOptionsBaidu": ".connection_options_baidu", - "ConnectionOptionsBitbucket": ".connection_options_bitbucket", - "ConnectionOptionsBitly": ".connection_options_bitly", - "ConnectionOptionsBox": ".connection_options_box", - "ConnectionOptionsClientIdGithub": ".connection_options_client_id_github", - "ConnectionOptionsClientIdTwitter": ".connection_options_client_id_twitter", - "ConnectionOptionsClientSecretGithub": ".connection_options_client_secret_github", - "ConnectionOptionsClientSecretTwitter": ".connection_options_client_secret_twitter", - "ConnectionOptionsCommon": ".connection_options_common", - "ConnectionOptionsCommonOidc": ".connection_options_common_oidc", - "ConnectionOptionsCommonSaml": ".connection_options_common_saml", - "ConnectionOptionsCustom": ".connection_options_custom", - "ConnectionOptionsDaccount": ".connection_options_daccount", - "ConnectionOptionsDeflateSaml": ".connection_options_deflate_saml", - "ConnectionOptionsDropbox": ".connection_options_dropbox", - "ConnectionOptionsDwolla": ".connection_options_dwolla", - "ConnectionOptionsEmail": ".connection_options_email", - "ConnectionOptionsEvernote": ".connection_options_evernote", - "ConnectionOptionsExact": ".connection_options_exact", - "ConnectionOptionsFacebook": ".connection_options_facebook", - "ConnectionOptionsFitbit": ".connection_options_fitbit", - "ConnectionOptionsFreeformScopesGithub": ".connection_options_freeform_scopes_github", - "ConnectionOptionsGitHub": ".connection_options_git_hub", - "ConnectionOptionsGoogleApps": ".connection_options_google_apps", - "ConnectionOptionsGoogleOAuth2": ".connection_options_google_o_auth_2", - "ConnectionOptionsIdpInitiatedClientProtocolEnumSaml": ".connection_options_idp_initiated_client_protocol_enum_saml", - "ConnectionOptionsIdpinitiatedSaml": ".connection_options_idpinitiated_saml", - "ConnectionOptionsInstagram": ".connection_options_instagram", - "ConnectionOptionsIp": ".connection_options_ip", - "ConnectionOptionsLine": ".connection_options_line", - "ConnectionOptionsLinkedin": ".connection_options_linkedin", - "ConnectionOptionsOAuth1": ".connection_options_o_auth_1", - "ConnectionOptionsOAuth1Common": ".connection_options_o_auth_1_common", - "ConnectionOptionsOAuth2": ".connection_options_o_auth_2", - "ConnectionOptionsOAuth2Common": ".connection_options_o_auth_2_common", - "ConnectionOptionsOffice365": ".connection_options_office_365", - "ConnectionOptionsOidc": ".connection_options_oidc", - "ConnectionOptionsOidcMetadata": ".connection_options_oidc_metadata", - "ConnectionOptionsOkta": ".connection_options_okta", - "ConnectionOptionsPaypal": ".connection_options_paypal", - "ConnectionOptionsPingFederate": ".connection_options_ping_federate", - "ConnectionOptionsPlanningCenter": ".connection_options_planning_center", - "ConnectionOptionsProtocolEnumTwitter": ".connection_options_protocol_enum_twitter", - "ConnectionOptionsSalesforce": ".connection_options_salesforce", - "ConnectionOptionsSalesforceCommunity": ".connection_options_salesforce_community", - "ConnectionOptionsSaml": ".connection_options_saml", - "ConnectionOptionsScopeGithub": ".connection_options_scope_github", - "ConnectionOptionsScopeTwitter": ".connection_options_scope_twitter", - "ConnectionOptionsSharepoint": ".connection_options_sharepoint", - "ConnectionOptionsShop": ".connection_options_shop", - "ConnectionOptionsShopify": ".connection_options_shopify", - "ConnectionOptionsSms": ".connection_options_sms", - "ConnectionOptionsSoundcloud": ".connection_options_soundcloud", - "ConnectionOptionsThirtySevenSignals": ".connection_options_thirty_seven_signals", - "ConnectionOptionsTwitter": ".connection_options_twitter", - "ConnectionOptionsUntappd": ".connection_options_untappd", - "ConnectionOptionsVkontakte": ".connection_options_vkontakte", - "ConnectionOptionsWeibo": ".connection_options_weibo", - "ConnectionOptionsWindowsLive": ".connection_options_windows_live", - "ConnectionOptionsWordpress": ".connection_options_wordpress", - "ConnectionOptionsYahoo": ".connection_options_yahoo", - "ConnectionOptionsYandex": ".connection_options_yandex", - "ConnectionOtpChannelSettings": ".connection_otp_channel_settings", - "ConnectionOtpSettings": ".connection_otp_settings", - "ConnectionPasskeyAuthenticationMethod": ".connection_passkey_authentication_method", - "ConnectionPasskeyChallengeUiEnum": ".connection_passkey_challenge_ui_enum", - "ConnectionPasskeyOptions": ".connection_passkey_options", - "ConnectionPasswordAuthenticationMethod": ".connection_password_authentication_method", - "ConnectionPasswordComplexityOptions": ".connection_password_complexity_options", - "ConnectionPasswordDictionaryOptions": ".connection_password_dictionary_options", - "ConnectionPasswordHistoryOptions": ".connection_password_history_options", - "ConnectionPasswordNoPersonalInfoOptions": ".connection_password_no_personal_info_options", - "ConnectionPasswordOptions": ".connection_password_options", - "ConnectionPasswordOptionsComplexity": ".connection_password_options_complexity", - "ConnectionPasswordOptionsDictionary": ".connection_password_options_dictionary", - "ConnectionPasswordOptionsHistory": ".connection_password_options_history", - "ConnectionPasswordOptionsProfileData": ".connection_password_options_profile_data", - "ConnectionPasswordPolicyEnum": ".connection_password_policy_enum", - "ConnectionPhoneOtpAuthenticationMethod": ".connection_phone_otp_authentication_method", - "ConnectionPingFederateBaseUrl": ".connection_ping_federate_base_url", - "ConnectionPingFederateBaseUrlPingFederate": ".connection_ping_federate_base_url_ping_federate", - "ConnectionProfile": ".connection_profile", - "ConnectionProfileBitbucket": ".connection_profile_bitbucket", - "ConnectionProfileConfig": ".connection_profile_config", - "ConnectionProfileCrossAppAccessResourceApp": ".connection_profile_cross_app_access_resource_app", - "ConnectionProfileCrossAppAccessResourceAppStatus": ".connection_profile_cross_app_access_resource_app_status", - "ConnectionProfileCrossAppAccessResourceAppStatusAllowedValuesEnum": ".connection_profile_cross_app_access_resource_app_status_allowed_values_enum", - "ConnectionProfileCrossAppAccessResourceAppStatusDefaultValueEnum": ".connection_profile_cross_app_access_resource_app_status_default_value_enum", - "ConnectionProfileCrossAppAccessResourceAppStatusValueEnum": ".connection_profile_cross_app_access_resource_app_status_value_enum", - "ConnectionProfileEnabledFeatures": ".connection_profile_enabled_features", - "ConnectionProfileId": ".connection_profile_id", - "ConnectionProfileName": ".connection_profile_name", - "ConnectionProfileOrganization": ".connection_profile_organization", - "ConnectionProfileOrganizationAssignMembershipOnLoginEnum": ".connection_profile_organization_assign_membership_on_login_enum", - "ConnectionProfileOrganizationShowAsButtonEnum": ".connection_profile_organization_show_as_button_enum", - "ConnectionProfileProvisioning": ".connection_profile_provisioning", - "ConnectionProfileProvisioningGoogleWorkspace": ".connection_profile_provisioning_google_workspace", - "ConnectionProfileProvisioningGoogleWorkspaceSyncUsers": ".connection_profile_provisioning_google_workspace_sync_users", - "ConnectionProfileProvisioningScim": ".connection_profile_provisioning_scim", - "ConnectionProfileProvisioningScimTokenDefaultExpiry": ".connection_profile_provisioning_scim_token_default_expiry", - "ConnectionProfileProvisioningScimTokenMaxAllowedExpiry": ".connection_profile_provisioning_scim_token_max_allowed_expiry", - "ConnectionProfileProvisioningScimTokenScopeEnum": ".connection_profile_provisioning_scim_token_scope_enum", - "ConnectionProfileProvisioningScimTokenScopes": ".connection_profile_provisioning_scim_token_scopes", - "ConnectionProfileProvisioningScimTokens": ".connection_profile_provisioning_scim_tokens", - "ConnectionProfileStrategyOverride": ".connection_profile_strategy_override", - "ConnectionProfileStrategyOverrides": ".connection_profile_strategy_overrides", - "ConnectionProfileStrategyOverridesConnectionConfig": ".connection_profile_strategy_overrides_connection_config", - "ConnectionProfileStrategyOverridesEnabledFeatures": ".connection_profile_strategy_overrides_enabled_features", - "ConnectionProfileStrategyOverridesProvisioning": ".connection_profile_strategy_overrides_provisioning", - "ConnectionProfileTemplate": ".connection_profile_template", - "ConnectionProfileTemplateItem": ".connection_profile_template_item", - "ConnectionPropertiesOptions": ".connection_properties_options", - "ConnectionProtocolBindingEnumSaml": ".connection_protocol_binding_enum_saml", - "ConnectionProtocolBindingSaml": ".connection_protocol_binding_saml", - "ConnectionProviderEnumSms": ".connection_provider_enum_sms", - "ConnectionProviderSms": ".connection_provider_sms", - "ConnectionProvisioningTicketUrl": ".connection_provisioning_ticket_url", - "ConnectionPurposes": ".connection_purposes", - "ConnectionPushedAuthorizationRequestEndpoint": ".connection_pushed_authorization_request_endpoint", - "ConnectionRealmFallback": ".connection_realm_fallback", - "ConnectionRealms": ".connection_realms", - "ConnectionRecipientUrlSaml": ".connection_recipient_url_saml", - "ConnectionRegistrationEndpoint": ".connection_registration_endpoint", - "ConnectionRequestObjectEncryptionAlgValuesSupported": ".connection_request_object_encryption_alg_values_supported", - "ConnectionRequestObjectEncryptionEncValuesSupported": ".connection_request_object_encryption_enc_values_supported", - "ConnectionRequestObjectSigningAlgValuesSupported": ".connection_request_object_signing_alg_values_supported", - "ConnectionRequestParameterSupported": ".connection_request_parameter_supported", - "ConnectionRequestTemplateSaml": ".connection_request_template_saml", - "ConnectionRequestTokenUrloAuth1": ".connection_request_token_urlo_auth_1", - "ConnectionRequestUriParameterSupported": ".connection_request_uri_parameter_supported", - "ConnectionRequirePushedAuthorizationRequests": ".connection_require_pushed_authorization_requests", - "ConnectionRequireRequestUriRegistration": ".connection_require_request_uri_registration", - "ConnectionRequiresUsername": ".connection_requires_username", - "ConnectionResponseCommon": ".connection_response_common", - "ConnectionResponseContentAd": ".connection_response_content_ad", - "ConnectionResponseContentAdStrategy": ".connection_response_content_ad_strategy", - "ConnectionResponseContentAdfs": ".connection_response_content_adfs", - "ConnectionResponseContentAdfsStrategy": ".connection_response_content_adfs_strategy", - "ConnectionResponseContentAmazon": ".connection_response_content_amazon", - "ConnectionResponseContentAmazonStrategy": ".connection_response_content_amazon_strategy", - "ConnectionResponseContentApple": ".connection_response_content_apple", - "ConnectionResponseContentAppleStrategy": ".connection_response_content_apple_strategy", - "ConnectionResponseContentAuth0": ".connection_response_content_auth_0", - "ConnectionResponseContentAuth0Oidc": ".connection_response_content_auth_0_oidc", - "ConnectionResponseContentAuth0OidcStrategy": ".connection_response_content_auth_0_oidc_strategy", - "ConnectionResponseContentAuth0Strategy": ".connection_response_content_auth_0_strategy", - "ConnectionResponseContentAzureAd": ".connection_response_content_azure_ad", - "ConnectionResponseContentAzureAdStrategy": ".connection_response_content_azure_ad_strategy", - "ConnectionResponseContentBaidu": ".connection_response_content_baidu", - "ConnectionResponseContentBaiduStrategy": ".connection_response_content_baidu_strategy", - "ConnectionResponseContentBitbucket": ".connection_response_content_bitbucket", - "ConnectionResponseContentBitbucketStrategy": ".connection_response_content_bitbucket_strategy", - "ConnectionResponseContentBitly": ".connection_response_content_bitly", - "ConnectionResponseContentBitlyStrategy": ".connection_response_content_bitly_strategy", - "ConnectionResponseContentBox": ".connection_response_content_box", - "ConnectionResponseContentBoxStrategy": ".connection_response_content_box_strategy", - "ConnectionResponseContentCustom": ".connection_response_content_custom", - "ConnectionResponseContentCustomStrategy": ".connection_response_content_custom_strategy", - "ConnectionResponseContentDaccount": ".connection_response_content_daccount", - "ConnectionResponseContentDaccountStrategy": ".connection_response_content_daccount_strategy", - "ConnectionResponseContentDropbox": ".connection_response_content_dropbox", - "ConnectionResponseContentDropboxStrategy": ".connection_response_content_dropbox_strategy", - "ConnectionResponseContentDwolla": ".connection_response_content_dwolla", - "ConnectionResponseContentDwollaStrategy": ".connection_response_content_dwolla_strategy", - "ConnectionResponseContentEmail": ".connection_response_content_email", - "ConnectionResponseContentEmailStrategy": ".connection_response_content_email_strategy", - "ConnectionResponseContentEvernote": ".connection_response_content_evernote", - "ConnectionResponseContentEvernoteSandbox": ".connection_response_content_evernote_sandbox", - "ConnectionResponseContentEvernoteSandboxStrategy": ".connection_response_content_evernote_sandbox_strategy", - "ConnectionResponseContentEvernoteStrategy": ".connection_response_content_evernote_strategy", - "ConnectionResponseContentExact": ".connection_response_content_exact", - "ConnectionResponseContentExactStrategy": ".connection_response_content_exact_strategy", - "ConnectionResponseContentFacebook": ".connection_response_content_facebook", - "ConnectionResponseContentFacebookStrategy": ".connection_response_content_facebook_strategy", - "ConnectionResponseContentFitbit": ".connection_response_content_fitbit", - "ConnectionResponseContentFitbitStrategy": ".connection_response_content_fitbit_strategy", - "ConnectionResponseContentGitHub": ".connection_response_content_git_hub", - "ConnectionResponseContentGitHubStrategy": ".connection_response_content_git_hub_strategy", - "ConnectionResponseContentGoogleApps": ".connection_response_content_google_apps", - "ConnectionResponseContentGoogleAppsStrategy": ".connection_response_content_google_apps_strategy", - "ConnectionResponseContentGoogleOAuth2": ".connection_response_content_google_o_auth_2", - "ConnectionResponseContentGoogleOAuth2Strategy": ".connection_response_content_google_o_auth_2_strategy", - "ConnectionResponseContentInstagram": ".connection_response_content_instagram", - "ConnectionResponseContentInstagramStrategy": ".connection_response_content_instagram_strategy", - "ConnectionResponseContentIp": ".connection_response_content_ip", - "ConnectionResponseContentIpStrategy": ".connection_response_content_ip_strategy", - "ConnectionResponseContentLine": ".connection_response_content_line", - "ConnectionResponseContentLineStrategy": ".connection_response_content_line_strategy", - "ConnectionResponseContentLinkedin": ".connection_response_content_linkedin", - "ConnectionResponseContentLinkedinStrategy": ".connection_response_content_linkedin_strategy", - "ConnectionResponseContentOAuth1": ".connection_response_content_o_auth_1", - "ConnectionResponseContentOAuth1Strategy": ".connection_response_content_o_auth_1_strategy", - "ConnectionResponseContentOAuth2": ".connection_response_content_o_auth_2", - "ConnectionResponseContentOAuth2Strategy": ".connection_response_content_o_auth_2_strategy", - "ConnectionResponseContentOffice365": ".connection_response_content_office_365", - "ConnectionResponseContentOffice365Strategy": ".connection_response_content_office_365_strategy", - "ConnectionResponseContentOidc": ".connection_response_content_oidc", - "ConnectionResponseContentOidcStrategy": ".connection_response_content_oidc_strategy", - "ConnectionResponseContentOkta": ".connection_response_content_okta", - "ConnectionResponseContentOktaStrategy": ".connection_response_content_okta_strategy", - "ConnectionResponseContentPaypal": ".connection_response_content_paypal", - "ConnectionResponseContentPaypalSandbox": ".connection_response_content_paypal_sandbox", - "ConnectionResponseContentPaypalSandboxStrategy": ".connection_response_content_paypal_sandbox_strategy", - "ConnectionResponseContentPaypalStrategy": ".connection_response_content_paypal_strategy", - "ConnectionResponseContentPingFederate": ".connection_response_content_ping_federate", - "ConnectionResponseContentPingFederateStrategy": ".connection_response_content_ping_federate_strategy", - "ConnectionResponseContentPlanningCenter": ".connection_response_content_planning_center", - "ConnectionResponseContentPlanningCenterStrategy": ".connection_response_content_planning_center_strategy", - "ConnectionResponseContentSalesforce": ".connection_response_content_salesforce", - "ConnectionResponseContentSalesforceCommunity": ".connection_response_content_salesforce_community", - "ConnectionResponseContentSalesforceCommunityStrategy": ".connection_response_content_salesforce_community_strategy", - "ConnectionResponseContentSalesforceSandbox": ".connection_response_content_salesforce_sandbox", - "ConnectionResponseContentSalesforceSandboxStrategy": ".connection_response_content_salesforce_sandbox_strategy", - "ConnectionResponseContentSalesforceStrategy": ".connection_response_content_salesforce_strategy", - "ConnectionResponseContentSaml": ".connection_response_content_saml", - "ConnectionResponseContentSamlStrategy": ".connection_response_content_saml_strategy", - "ConnectionResponseContentSharepoint": ".connection_response_content_sharepoint", - "ConnectionResponseContentSharepointStrategy": ".connection_response_content_sharepoint_strategy", - "ConnectionResponseContentShop": ".connection_response_content_shop", - "ConnectionResponseContentShopStrategy": ".connection_response_content_shop_strategy", - "ConnectionResponseContentShopify": ".connection_response_content_shopify", - "ConnectionResponseContentShopifyStrategy": ".connection_response_content_shopify_strategy", - "ConnectionResponseContentSms": ".connection_response_content_sms", - "ConnectionResponseContentSmsStrategy": ".connection_response_content_sms_strategy", - "ConnectionResponseContentSoundcloud": ".connection_response_content_soundcloud", - "ConnectionResponseContentSoundcloudStrategy": ".connection_response_content_soundcloud_strategy", - "ConnectionResponseContentThirtySevenSignals": ".connection_response_content_thirty_seven_signals", - "ConnectionResponseContentThirtySevenSignalsStrategy": ".connection_response_content_thirty_seven_signals_strategy", - "ConnectionResponseContentTwitter": ".connection_response_content_twitter", - "ConnectionResponseContentTwitterStrategy": ".connection_response_content_twitter_strategy", - "ConnectionResponseContentUntappd": ".connection_response_content_untappd", - "ConnectionResponseContentUntappdStrategy": ".connection_response_content_untappd_strategy", - "ConnectionResponseContentVkontakte": ".connection_response_content_vkontakte", - "ConnectionResponseContentVkontakteStrategy": ".connection_response_content_vkontakte_strategy", - "ConnectionResponseContentWeibo": ".connection_response_content_weibo", - "ConnectionResponseContentWeiboStrategy": ".connection_response_content_weibo_strategy", - "ConnectionResponseContentWindowsLive": ".connection_response_content_windows_live", - "ConnectionResponseContentWindowsLiveStrategy": ".connection_response_content_windows_live_strategy", - "ConnectionResponseContentWordpress": ".connection_response_content_wordpress", - "ConnectionResponseContentWordpressStrategy": ".connection_response_content_wordpress_strategy", - "ConnectionResponseContentYahoo": ".connection_response_content_yahoo", - "ConnectionResponseContentYahooStrategy": ".connection_response_content_yahoo_strategy", - "ConnectionResponseContentYandex": ".connection_response_content_yandex", - "ConnectionResponseContentYandexStrategy": ".connection_response_content_yandex_strategy", - "ConnectionResponseModesSupported": ".connection_response_modes_supported", - "ConnectionResponseTypesSupported": ".connection_response_types_supported", - "ConnectionScopeAmazon": ".connection_scope_amazon", - "ConnectionScopeArray": ".connection_scope_array", - "ConnectionScopeArrayFacebook": ".connection_scope_array_facebook", - "ConnectionScopeArrayWindowsLive": ".connection_scope_array_windows_live", - "ConnectionScopeAzureAd": ".connection_scope_azure_ad", - "ConnectionScopeFacebook": ".connection_scope_facebook", - "ConnectionScopeGoogleApps": ".connection_scope_google_apps", - "ConnectionScopeGoogleOAuth2": ".connection_scope_google_o_auth_2", - "ConnectionScopeItem": ".connection_scope_item", - "ConnectionScopeItemGoogleApps": ".connection_scope_item_google_apps", - "ConnectionScopeLinkedin": ".connection_scope_linkedin", - "ConnectionScopeOAuth2": ".connection_scope_o_auth_2", - "ConnectionScopeOidc": ".connection_scope_oidc", - "ConnectionScopePaypal": ".connection_scope_paypal", - "ConnectionScopeSalesforce": ".connection_scope_salesforce", - "ConnectionScopesSupported": ".connection_scopes_supported", - "ConnectionScriptsOAuth1": ".connection_scripts_o_auth_1", - "ConnectionScriptsOAuth2": ".connection_scripts_o_auth_2", - "ConnectionSendBackChannelNonce": ".connection_send_back_channel_nonce", - "ConnectionServiceDocumentation": ".connection_service_documentation", - "ConnectionSetUserRootAttributesEnum": ".connection_set_user_root_attributes_enum", - "ConnectionSha1Thumbprint": ".connection_sha_1_thumbprint", - "ConnectionShouldTrustEmailVerifiedConnectionEnum": ".connection_should_trust_email_verified_connection_enum", - "ConnectionShowAsButton": ".connection_show_as_button", - "ConnectionSignInEndpointAd": ".connection_sign_in_endpoint_ad", - "ConnectionSignInEndpointAdfs": ".connection_sign_in_endpoint_adfs", - "ConnectionSignInEndpointSaml": ".connection_sign_in_endpoint_saml", - "ConnectionSignOutEndpointSaml": ".connection_sign_out_endpoint_saml", - "ConnectionSignSamlRequestSaml": ".connection_sign_saml_request_saml", - "ConnectionSignatureAlgorithmEnumSaml": ".connection_signature_algorithm_enum_saml", - "ConnectionSignatureAlgorithmSaml": ".connection_signature_algorithm_saml", - "ConnectionSignatureMethodOAuth1": ".connection_signature_method_o_auth_1", - "ConnectionSigningCertSaml": ".connection_signing_cert_saml", - "ConnectionSigningCertificateDerSaml": ".connection_signing_certificate_der_saml", - "ConnectionSigningCertificatePemPingFederate": ".connection_signing_certificate_pem_ping_federate", - "ConnectionSigningCertificatePemSaml": ".connection_signing_certificate_pem_saml", - "ConnectionSigningKeySaml": ".connection_signing_key_saml", - "ConnectionSignupBehaviorEnum": ".connection_signup_behavior_enum", - "ConnectionStrategyEnum": ".connection_strategy_enum", - "ConnectionStrategyVersionEnumLinkedin": ".connection_strategy_version_enum_linkedin", - "ConnectionStrategyVersionEnumWindowsLive": ".connection_strategy_version_enum_windows_live", - "ConnectionSubjectTypesSupported": ".connection_subject_types_supported", - "ConnectionTemplateSms": ".connection_template_sms", - "ConnectionTemplateSyntaxEnumSms": ".connection_template_syntax_enum_sms", - "ConnectionTenantDomain": ".connection_tenant_domain", - "ConnectionTenantDomainAd": ".connection_tenant_domain_ad", - "ConnectionTenantDomainAzureAdOne": ".connection_tenant_domain_azure_ad_one", - "ConnectionTenantDomainGoogleApps": ".connection_tenant_domain_google_apps", - "ConnectionTenantDomainSaml": ".connection_tenant_domain_saml", - "ConnectionTenantIdAzureAd": ".connection_tenant_id_azure_ad", - "ConnectionThumbprints": ".connection_thumbprints", - "ConnectionThumbprintsAd": ".connection_thumbprints_ad", - "ConnectionThumbprintsSaml": ".connection_thumbprints_saml", - "ConnectionThumbprintsSha384": ".connection_thumbprints_sha_384", - "ConnectionThumbprintsSha384Ad": ".connection_thumbprints_sha_384_ad", - "ConnectionThumbprintsSha384Saml": ".connection_thumbprints_sha_384_saml", - "ConnectionTokenEndpoint": ".connection_token_endpoint", - "ConnectionTokenEndpointAuthMethodEnum": ".connection_token_endpoint_auth_method_enum", - "ConnectionTokenEndpointAuthMethodsSupported": ".connection_token_endpoint_auth_methods_supported", - "ConnectionTokenEndpointAuthSigningAlgEnum": ".connection_token_endpoint_auth_signing_alg_enum", - "ConnectionTokenEndpointAuthSigningAlgValuesSupported": ".connection_token_endpoint_auth_signing_alg_values_supported", - "ConnectionTokenEndpointJwtcaAudFormatEnumOidc": ".connection_token_endpoint_jwtca_aud_format_enum_oidc", - "ConnectionTotpEmail": ".connection_totp_email", - "ConnectionTotpLengthEmail": ".connection_totp_length_email", - "ConnectionTotpLengthPasswordless": ".connection_totp_length_passwordless", - "ConnectionTotpLengthSms": ".connection_totp_length_sms", - "ConnectionTotpSms": ".connection_totp_sms", - "ConnectionTotpTimeStepEmail": ".connection_totp_time_step_email", - "ConnectionTotpTimeStepPasswordless": ".connection_totp_time_step_passwordless", - "ConnectionTotpTimeStepSms": ".connection_totp_time_step_sms", - "ConnectionTwilioSidSms": ".connection_twilio_sid_sms", - "ConnectionTwilioTokenSms": ".connection_twilio_token_sms", - "ConnectionTypeEnumOidc": ".connection_type_enum_oidc", - "ConnectionTypeEnumOkta": ".connection_type_enum_okta", - "ConnectionUiLocalesSupported": ".connection_ui_locales_supported", - "ConnectionUpstreamAdditionalProperties": ".connection_upstream_additional_properties", - "ConnectionUpstreamAlias": ".connection_upstream_alias", - "ConnectionUpstreamAliasEnum": ".connection_upstream_alias_enum", - "ConnectionUpstreamParams": ".connection_upstream_params", - "ConnectionUpstreamParamsFacebook": ".connection_upstream_params_facebook", - "ConnectionUpstreamValue": ".connection_upstream_value", - "ConnectionUseCommonEndpointAzureAd": ".connection_use_common_endpoint_azure_ad", - "ConnectionUseOauthSpecScope": ".connection_use_oauth_spec_scope", - "ConnectionUserAuthorizationUrloAuth1": ".connection_user_authorization_urlo_auth_1", - "ConnectionUserIdAttributeSaml": ".connection_user_id_attribute_saml", - "ConnectionUseridAttributeAzureAd": ".connection_userid_attribute_azure_ad", - "ConnectionUseridAttributeEnumAzureAd": ".connection_userid_attribute_enum_azure_ad", - "ConnectionUserinfoEncryptionAlgValuesSupported": ".connection_userinfo_encryption_alg_values_supported", - "ConnectionUserinfoEncryptionEncValuesSupported": ".connection_userinfo_encryption_enc_values_supported", - "ConnectionUserinfoEndpoint": ".connection_userinfo_endpoint", - "ConnectionUserinfoSigningAlgValuesSupported": ".connection_userinfo_signing_alg_values_supported", - "ConnectionUsernameValidationOptions": ".connection_username_validation_options", - "ConnectionValidationOptions": ".connection_validation_options", - "ConnectionWaadProtocol": ".connection_waad_protocol", - "ConnectionWaadProtocolEnumAzureAd": ".connection_waad_protocol_enum_azure_ad", - "ConnectionsDiscoveryUrl": ".connections_discovery_url", - "ConnectionsMetadata": ".connections_metadata", - "ConnectionsOidcMetadata": ".connections_oidc_metadata", - "ConsentSigningKey": ".consent_signing_key", - "ContentSecurityPolicyConfig": ".content_security_policy_config", - "CreateActionModuleResponseContent": ".create_action_module_response_content", - "CreateActionModuleVersionResponseContent": ".create_action_module_version_response_content", - "CreateActionResponseContent": ".create_action_response_content", - "CreateAnonymousSessions": ".create_anonymous_sessions", - "CreateBrandingPhoneProviderResponseContent": ".create_branding_phone_provider_response_content", - "CreateBrandingThemeResponseContent": ".create_branding_theme_response_content", - "CreateClientAuthenticationMethodSelfSignedTlsClientAuth": ".create_client_authentication_method_self_signed_tls_client_auth", - "CreateClientAuthenticationMethodSelfSignedTlsClientAuthCredentials": ".create_client_authentication_method_self_signed_tls_client_auth_credentials", - "CreateClientGrantResponseContent": ".create_client_grant_response_content", - "CreateClientResponseContent": ".create_client_response_content", - "CreateConnectionCommon": ".create_connection_common", - "CreateConnectionProfileResponseContent": ".create_connection_profile_response_content", - "CreateConnectionRequestContentAd": ".create_connection_request_content_ad", - "CreateConnectionRequestContentAdStrategy": ".create_connection_request_content_ad_strategy", - "CreateConnectionRequestContentAdfs": ".create_connection_request_content_adfs", - "CreateConnectionRequestContentAdfsStrategy": ".create_connection_request_content_adfs_strategy", - "CreateConnectionRequestContentAmazon": ".create_connection_request_content_amazon", - "CreateConnectionRequestContentAmazonStrategy": ".create_connection_request_content_amazon_strategy", - "CreateConnectionRequestContentApple": ".create_connection_request_content_apple", - "CreateConnectionRequestContentAppleStrategy": ".create_connection_request_content_apple_strategy", - "CreateConnectionRequestContentAuth0": ".create_connection_request_content_auth_0", - "CreateConnectionRequestContentAuth0Oidc": ".create_connection_request_content_auth_0_oidc", - "CreateConnectionRequestContentAuth0OidcStrategy": ".create_connection_request_content_auth_0_oidc_strategy", - "CreateConnectionRequestContentAuth0Strategy": ".create_connection_request_content_auth_0_strategy", - "CreateConnectionRequestContentAzureAd": ".create_connection_request_content_azure_ad", - "CreateConnectionRequestContentAzureAdStrategy": ".create_connection_request_content_azure_ad_strategy", - "CreateConnectionRequestContentBaidu": ".create_connection_request_content_baidu", - "CreateConnectionRequestContentBaiduStrategy": ".create_connection_request_content_baidu_strategy", - "CreateConnectionRequestContentBitbucket": ".create_connection_request_content_bitbucket", - "CreateConnectionRequestContentBitbucketStrategy": ".create_connection_request_content_bitbucket_strategy", - "CreateConnectionRequestContentBitly": ".create_connection_request_content_bitly", - "CreateConnectionRequestContentBitlyStrategy": ".create_connection_request_content_bitly_strategy", - "CreateConnectionRequestContentBox": ".create_connection_request_content_box", - "CreateConnectionRequestContentBoxStrategy": ".create_connection_request_content_box_strategy", - "CreateConnectionRequestContentCustom": ".create_connection_request_content_custom", - "CreateConnectionRequestContentCustomStrategy": ".create_connection_request_content_custom_strategy", - "CreateConnectionRequestContentDaccount": ".create_connection_request_content_daccount", - "CreateConnectionRequestContentDaccountStrategy": ".create_connection_request_content_daccount_strategy", - "CreateConnectionRequestContentDropbox": ".create_connection_request_content_dropbox", - "CreateConnectionRequestContentDropboxStrategy": ".create_connection_request_content_dropbox_strategy", - "CreateConnectionRequestContentDwolla": ".create_connection_request_content_dwolla", - "CreateConnectionRequestContentDwollaStrategy": ".create_connection_request_content_dwolla_strategy", - "CreateConnectionRequestContentEmail": ".create_connection_request_content_email", - "CreateConnectionRequestContentEmailStrategy": ".create_connection_request_content_email_strategy", - "CreateConnectionRequestContentEvernote": ".create_connection_request_content_evernote", - "CreateConnectionRequestContentEvernoteSandbox": ".create_connection_request_content_evernote_sandbox", - "CreateConnectionRequestContentEvernoteSandboxStrategy": ".create_connection_request_content_evernote_sandbox_strategy", - "CreateConnectionRequestContentEvernoteStrategy": ".create_connection_request_content_evernote_strategy", - "CreateConnectionRequestContentExact": ".create_connection_request_content_exact", - "CreateConnectionRequestContentExactStrategy": ".create_connection_request_content_exact_strategy", - "CreateConnectionRequestContentFacebook": ".create_connection_request_content_facebook", - "CreateConnectionRequestContentFacebookStrategy": ".create_connection_request_content_facebook_strategy", - "CreateConnectionRequestContentFitbit": ".create_connection_request_content_fitbit", - "CreateConnectionRequestContentFitbitStrategy": ".create_connection_request_content_fitbit_strategy", - "CreateConnectionRequestContentGitHub": ".create_connection_request_content_git_hub", - "CreateConnectionRequestContentGitHubStrategy": ".create_connection_request_content_git_hub_strategy", - "CreateConnectionRequestContentGoogleApps": ".create_connection_request_content_google_apps", - "CreateConnectionRequestContentGoogleAppsStrategy": ".create_connection_request_content_google_apps_strategy", - "CreateConnectionRequestContentGoogleOAuth2": ".create_connection_request_content_google_o_auth_2", - "CreateConnectionRequestContentGoogleOAuth2Strategy": ".create_connection_request_content_google_o_auth_2_strategy", - "CreateConnectionRequestContentInstagram": ".create_connection_request_content_instagram", - "CreateConnectionRequestContentInstagramStrategy": ".create_connection_request_content_instagram_strategy", - "CreateConnectionRequestContentIp": ".create_connection_request_content_ip", - "CreateConnectionRequestContentIpStrategy": ".create_connection_request_content_ip_strategy", - "CreateConnectionRequestContentLine": ".create_connection_request_content_line", - "CreateConnectionRequestContentLineStrategy": ".create_connection_request_content_line_strategy", - "CreateConnectionRequestContentLinkedin": ".create_connection_request_content_linkedin", - "CreateConnectionRequestContentLinkedinStrategy": ".create_connection_request_content_linkedin_strategy", - "CreateConnectionRequestContentOAuth1": ".create_connection_request_content_o_auth_1", - "CreateConnectionRequestContentOAuth1Strategy": ".create_connection_request_content_o_auth_1_strategy", - "CreateConnectionRequestContentOAuth2": ".create_connection_request_content_o_auth_2", - "CreateConnectionRequestContentOAuth2Strategy": ".create_connection_request_content_o_auth_2_strategy", - "CreateConnectionRequestContentOffice365": ".create_connection_request_content_office_365", - "CreateConnectionRequestContentOffice365Strategy": ".create_connection_request_content_office_365_strategy", - "CreateConnectionRequestContentOidc": ".create_connection_request_content_oidc", - "CreateConnectionRequestContentOidcStrategy": ".create_connection_request_content_oidc_strategy", - "CreateConnectionRequestContentOkta": ".create_connection_request_content_okta", - "CreateConnectionRequestContentOktaStrategy": ".create_connection_request_content_okta_strategy", - "CreateConnectionRequestContentPaypal": ".create_connection_request_content_paypal", - "CreateConnectionRequestContentPaypalSandbox": ".create_connection_request_content_paypal_sandbox", - "CreateConnectionRequestContentPaypalSandboxStrategy": ".create_connection_request_content_paypal_sandbox_strategy", - "CreateConnectionRequestContentPaypalStrategy": ".create_connection_request_content_paypal_strategy", - "CreateConnectionRequestContentPingFederate": ".create_connection_request_content_ping_federate", - "CreateConnectionRequestContentPingFederateStrategy": ".create_connection_request_content_ping_federate_strategy", - "CreateConnectionRequestContentPlanningCenter": ".create_connection_request_content_planning_center", - "CreateConnectionRequestContentPlanningCenterStrategy": ".create_connection_request_content_planning_center_strategy", - "CreateConnectionRequestContentSalesforce": ".create_connection_request_content_salesforce", - "CreateConnectionRequestContentSalesforceCommunity": ".create_connection_request_content_salesforce_community", - "CreateConnectionRequestContentSalesforceCommunityStrategy": ".create_connection_request_content_salesforce_community_strategy", - "CreateConnectionRequestContentSalesforceSandbox": ".create_connection_request_content_salesforce_sandbox", - "CreateConnectionRequestContentSalesforceSandboxStrategy": ".create_connection_request_content_salesforce_sandbox_strategy", - "CreateConnectionRequestContentSalesforceStrategy": ".create_connection_request_content_salesforce_strategy", - "CreateConnectionRequestContentSaml": ".create_connection_request_content_saml", - "CreateConnectionRequestContentSamlStrategy": ".create_connection_request_content_saml_strategy", - "CreateConnectionRequestContentSharepoint": ".create_connection_request_content_sharepoint", - "CreateConnectionRequestContentSharepointStrategy": ".create_connection_request_content_sharepoint_strategy", - "CreateConnectionRequestContentShop": ".create_connection_request_content_shop", - "CreateConnectionRequestContentShopStrategy": ".create_connection_request_content_shop_strategy", - "CreateConnectionRequestContentShopify": ".create_connection_request_content_shopify", - "CreateConnectionRequestContentShopifyStrategy": ".create_connection_request_content_shopify_strategy", - "CreateConnectionRequestContentSms": ".create_connection_request_content_sms", - "CreateConnectionRequestContentSmsStrategy": ".create_connection_request_content_sms_strategy", - "CreateConnectionRequestContentSoundcloud": ".create_connection_request_content_soundcloud", - "CreateConnectionRequestContentSoundcloudStrategy": ".create_connection_request_content_soundcloud_strategy", - "CreateConnectionRequestContentThirtySevenSignals": ".create_connection_request_content_thirty_seven_signals", - "CreateConnectionRequestContentThirtySevenSignalsStrategy": ".create_connection_request_content_thirty_seven_signals_strategy", - "CreateConnectionRequestContentTwitter": ".create_connection_request_content_twitter", - "CreateConnectionRequestContentTwitterStrategy": ".create_connection_request_content_twitter_strategy", - "CreateConnectionRequestContentUntappd": ".create_connection_request_content_untappd", - "CreateConnectionRequestContentUntappdStrategy": ".create_connection_request_content_untappd_strategy", - "CreateConnectionRequestContentVkontakte": ".create_connection_request_content_vkontakte", - "CreateConnectionRequestContentVkontakteStrategy": ".create_connection_request_content_vkontakte_strategy", - "CreateConnectionRequestContentWeibo": ".create_connection_request_content_weibo", - "CreateConnectionRequestContentWeiboStrategy": ".create_connection_request_content_weibo_strategy", - "CreateConnectionRequestContentWindowsLive": ".create_connection_request_content_windows_live", - "CreateConnectionRequestContentWindowsLiveStrategy": ".create_connection_request_content_windows_live_strategy", - "CreateConnectionRequestContentWordpress": ".create_connection_request_content_wordpress", - "CreateConnectionRequestContentWordpressStrategy": ".create_connection_request_content_wordpress_strategy", - "CreateConnectionRequestContentYahoo": ".create_connection_request_content_yahoo", - "CreateConnectionRequestContentYahooStrategy": ".create_connection_request_content_yahoo_strategy", - "CreateConnectionRequestContentYandex": ".create_connection_request_content_yandex", - "CreateConnectionRequestContentYandexStrategy": ".create_connection_request_content_yandex_strategy", - "CreateConnectionResponseContent": ".create_connection_response_content", - "CreateCrossAppAccessResourceApp": ".create_cross_app_access_resource_app", - "CreateCustomDomainResponseContent": ".create_custom_domain_response_content", - "CreateDirectoryProvisioningRequestContent": ".create_directory_provisioning_request_content", - "CreateDirectoryProvisioningResponseContent": ".create_directory_provisioning_response_content", - "CreateDirectorySynchronizationResponseContent": ".create_directory_synchronization_response_content", - "CreateEmailProviderResponseContent": ".create_email_provider_response_content", - "CreateEmailTemplateResponseContent": ".create_email_template_response_content", - "CreateEncryptionKeyPublicWrappingResponseContent": ".create_encryption_key_public_wrapping_response_content", - "CreateEncryptionKeyResponseContent": ".create_encryption_key_response_content", - "CreateEncryptionKeyType": ".create_encryption_key_type", - "CreateEventStreamActionRequestContent": ".create_event_stream_action_request_content", - "CreateEventStreamEventBridgeRequestContent": ".create_event_stream_event_bridge_request_content", - "CreateEventStreamRedeliveryResponseContent": ".create_event_stream_redelivery_response_content", - "CreateEventStreamResponseContent": ".create_event_stream_response_content", - "CreateEventStreamTestEventResponseContent": ".create_event_stream_test_event_response_content", - "CreateEventStreamWebHookRequestContent": ".create_event_stream_web_hook_request_content", - "CreateExperimentResponseContent": ".create_experiment_response_content", - "CreateExportUsersFields": ".create_export_users_fields", - "CreateExportUsersResponseContent": ".create_export_users_response_content", - "CreateFeatureFlagParameters": ".create_feature_flag_parameters", - "CreateFeatureFlagResponseContent": ".create_feature_flag_response_content", - "CreateFlowResponseContent": ".create_flow_response_content", - "CreateFlowsVaultConnectionActivecampaign": ".create_flows_vault_connection_activecampaign", - "CreateFlowsVaultConnectionActivecampaignApiKey": ".create_flows_vault_connection_activecampaign_api_key", - "CreateFlowsVaultConnectionActivecampaignUninitialized": ".create_flows_vault_connection_activecampaign_uninitialized", - "CreateFlowsVaultConnectionAirtable": ".create_flows_vault_connection_airtable", - "CreateFlowsVaultConnectionAirtableApiKey": ".create_flows_vault_connection_airtable_api_key", - "CreateFlowsVaultConnectionAirtableUninitialized": ".create_flows_vault_connection_airtable_uninitialized", - "CreateFlowsVaultConnectionAuth0": ".create_flows_vault_connection_auth_0", - "CreateFlowsVaultConnectionAuth0OauthApp": ".create_flows_vault_connection_auth_0_oauth_app", - "CreateFlowsVaultConnectionAuth0Uninitialized": ".create_flows_vault_connection_auth_0_uninitialized", - "CreateFlowsVaultConnectionBigquery": ".create_flows_vault_connection_bigquery", - "CreateFlowsVaultConnectionBigqueryJwt": ".create_flows_vault_connection_bigquery_jwt", - "CreateFlowsVaultConnectionBigqueryUninitialized": ".create_flows_vault_connection_bigquery_uninitialized", - "CreateFlowsVaultConnectionClearbit": ".create_flows_vault_connection_clearbit", - "CreateFlowsVaultConnectionClearbitApiKey": ".create_flows_vault_connection_clearbit_api_key", - "CreateFlowsVaultConnectionClearbitUninitialized": ".create_flows_vault_connection_clearbit_uninitialized", - "CreateFlowsVaultConnectionDocusign": ".create_flows_vault_connection_docusign", - "CreateFlowsVaultConnectionDocusignOauthCode": ".create_flows_vault_connection_docusign_oauth_code", - "CreateFlowsVaultConnectionDocusignUninitialized": ".create_flows_vault_connection_docusign_uninitialized", - "CreateFlowsVaultConnectionGoogleSheets": ".create_flows_vault_connection_google_sheets", - "CreateFlowsVaultConnectionGoogleSheetsOauthCode": ".create_flows_vault_connection_google_sheets_oauth_code", - "CreateFlowsVaultConnectionGoogleSheetsUninitialized": ".create_flows_vault_connection_google_sheets_uninitialized", - "CreateFlowsVaultConnectionHttp": ".create_flows_vault_connection_http", - "CreateFlowsVaultConnectionHttpApiKey": ".create_flows_vault_connection_http_api_key", - "CreateFlowsVaultConnectionHttpBasicAuth": ".create_flows_vault_connection_http_basic_auth", - "CreateFlowsVaultConnectionHttpBearer": ".create_flows_vault_connection_http_bearer", - "CreateFlowsVaultConnectionHttpOauthClientCredentials": ".create_flows_vault_connection_http_oauth_client_credentials", - "CreateFlowsVaultConnectionHttpUninitialized": ".create_flows_vault_connection_http_uninitialized", - "CreateFlowsVaultConnectionHubspot": ".create_flows_vault_connection_hubspot", - "CreateFlowsVaultConnectionHubspotApiKey": ".create_flows_vault_connection_hubspot_api_key", - "CreateFlowsVaultConnectionHubspotOauthCode": ".create_flows_vault_connection_hubspot_oauth_code", - "CreateFlowsVaultConnectionHubspotUninitialized": ".create_flows_vault_connection_hubspot_uninitialized", - "CreateFlowsVaultConnectionJwt": ".create_flows_vault_connection_jwt", - "CreateFlowsVaultConnectionJwtJwt": ".create_flows_vault_connection_jwt_jwt", - "CreateFlowsVaultConnectionJwtUninitialized": ".create_flows_vault_connection_jwt_uninitialized", - "CreateFlowsVaultConnectionMailchimp": ".create_flows_vault_connection_mailchimp", - "CreateFlowsVaultConnectionMailchimpApiKey": ".create_flows_vault_connection_mailchimp_api_key", - "CreateFlowsVaultConnectionMailchimpOauthCode": ".create_flows_vault_connection_mailchimp_oauth_code", - "CreateFlowsVaultConnectionMailchimpUninitialized": ".create_flows_vault_connection_mailchimp_uninitialized", - "CreateFlowsVaultConnectionMailjet": ".create_flows_vault_connection_mailjet", - "CreateFlowsVaultConnectionMailjetApiKey": ".create_flows_vault_connection_mailjet_api_key", - "CreateFlowsVaultConnectionMailjetUninitialized": ".create_flows_vault_connection_mailjet_uninitialized", - "CreateFlowsVaultConnectionPipedrive": ".create_flows_vault_connection_pipedrive", - "CreateFlowsVaultConnectionPipedriveOauthCode": ".create_flows_vault_connection_pipedrive_oauth_code", - "CreateFlowsVaultConnectionPipedriveToken": ".create_flows_vault_connection_pipedrive_token", - "CreateFlowsVaultConnectionPipedriveUninitialized": ".create_flows_vault_connection_pipedrive_uninitialized", - "CreateFlowsVaultConnectionRequestContent": ".create_flows_vault_connection_request_content", - "CreateFlowsVaultConnectionResponseContent": ".create_flows_vault_connection_response_content", - "CreateFlowsVaultConnectionSalesforce": ".create_flows_vault_connection_salesforce", - "CreateFlowsVaultConnectionSalesforceOauthCode": ".create_flows_vault_connection_salesforce_oauth_code", - "CreateFlowsVaultConnectionSalesforceUninitialized": ".create_flows_vault_connection_salesforce_uninitialized", - "CreateFlowsVaultConnectionSendgrid": ".create_flows_vault_connection_sendgrid", - "CreateFlowsVaultConnectionSendgridApiKey": ".create_flows_vault_connection_sendgrid_api_key", - "CreateFlowsVaultConnectionSendgridUninitialized": ".create_flows_vault_connection_sendgrid_uninitialized", - "CreateFlowsVaultConnectionSlack": ".create_flows_vault_connection_slack", - "CreateFlowsVaultConnectionSlackOauthCode": ".create_flows_vault_connection_slack_oauth_code", - "CreateFlowsVaultConnectionSlackUninitialized": ".create_flows_vault_connection_slack_uninitialized", - "CreateFlowsVaultConnectionSlackWebhook": ".create_flows_vault_connection_slack_webhook", - "CreateFlowsVaultConnectionStripe": ".create_flows_vault_connection_stripe", - "CreateFlowsVaultConnectionStripeKeyPair": ".create_flows_vault_connection_stripe_key_pair", - "CreateFlowsVaultConnectionStripeOauthCode": ".create_flows_vault_connection_stripe_oauth_code", - "CreateFlowsVaultConnectionStripeUninitialized": ".create_flows_vault_connection_stripe_uninitialized", - "CreateFlowsVaultConnectionTelegram": ".create_flows_vault_connection_telegram", - "CreateFlowsVaultConnectionTelegramToken": ".create_flows_vault_connection_telegram_token", - "CreateFlowsVaultConnectionTelegramUninitialized": ".create_flows_vault_connection_telegram_uninitialized", - "CreateFlowsVaultConnectionTwilio": ".create_flows_vault_connection_twilio", - "CreateFlowsVaultConnectionTwilioApiKey": ".create_flows_vault_connection_twilio_api_key", - "CreateFlowsVaultConnectionTwilioUninitialized": ".create_flows_vault_connection_twilio_uninitialized", - "CreateFlowsVaultConnectionWhatsapp": ".create_flows_vault_connection_whatsapp", - "CreateFlowsVaultConnectionWhatsappToken": ".create_flows_vault_connection_whatsapp_token", - "CreateFlowsVaultConnectionWhatsappUninitialized": ".create_flows_vault_connection_whatsapp_uninitialized", - "CreateFlowsVaultConnectionZapier": ".create_flows_vault_connection_zapier", - "CreateFlowsVaultConnectionZapierUninitialized": ".create_flows_vault_connection_zapier_uninitialized", - "CreateFlowsVaultConnectionZapierWebhook": ".create_flows_vault_connection_zapier_webhook", - "CreateFormResponseContent": ".create_form_response_content", - "CreateGuardianEnrollmentTicketResponseContent": ".create_guardian_enrollment_ticket_response_content", - "CreateHookResponseContent": ".create_hook_response_content", - "CreateHookSecretRequestContent": ".create_hook_secret_request_content", - "CreateIdentityAssertionAuthorizationGrant": ".create_identity_assertion_authorization_grant", - "CreateImportUsersResponseContent": ".create_import_users_response_content", - "CreateKeysNetworkAclsResponseContent": ".create_keys_network_acls_response_content", - "CreateLogStreamDatadogRequestBody": ".create_log_stream_datadog_request_body", - "CreateLogStreamEventBridgeRequestBody": ".create_log_stream_event_bridge_request_body", - "CreateLogStreamEventGridRequestBody": ".create_log_stream_event_grid_request_body", - "CreateLogStreamHttpRequestBody": ".create_log_stream_http_request_body", - "CreateLogStreamMixpanelRequestBody": ".create_log_stream_mixpanel_request_body", - "CreateLogStreamRequestContent": ".create_log_stream_request_content", - "CreateLogStreamResponseContent": ".create_log_stream_response_content", - "CreateLogStreamSegmentRequestBody": ".create_log_stream_segment_request_body", - "CreateLogStreamSplunkRequestBody": ".create_log_stream_splunk_request_body", - "CreateLogStreamSumoRequestBody": ".create_log_stream_sumo_request_body", - "CreateOrganizationAllConnectionResponseContent": ".create_organization_all_connection_response_content", - "CreateOrganizationClientRequestItem": ".create_organization_client_request_item", - "CreateOrganizationClientsResponseContent": ".create_organization_clients_response_content", - "CreateOrganizationDiscoveryDomainResponseContent": ".create_organization_discovery_domain_response_content", - "CreateOrganizationInvitationResponseContent": ".create_organization_invitation_response_content", - "CreateOrganizationResponseContent": ".create_organization_response_content", - "CreatePhoneProviderSendTestResponseContent": ".create_phone_provider_send_test_response_content", - "CreatePhoneTemplateResponseContent": ".create_phone_template_response_content", - "CreatePhoneTemplateTestNotificationResponseContent": ".create_phone_template_test_notification_response_content", - "CreatePublicKeyDeviceCredentialResponseContent": ".create_public_key_device_credential_response_content", - "CreateRateLimitPolicyResponseContent": ".create_rate_limit_policy_response_content", - "CreateResourceServerResponseContent": ".create_resource_server_response_content", - "CreateRoleResponseContent": ".create_role_response_content", - "CreateRuleResponseContent": ".create_rule_response_content", - "CreateScimConfigurationRequestContent": ".create_scim_configuration_request_content", - "CreateScimConfigurationResponseContent": ".create_scim_configuration_response_content", - "CreateScimTokenResponseContent": ".create_scim_token_response_content", - "CreateSegmentResponseContent": ".create_segment_response_content", - "CreateSelfServiceProfileResponseContent": ".create_self_service_profile_response_content", - "CreateSelfServiceProfileSsoTicketResponseContent": ".create_self_service_profile_sso_ticket_response_content", - "CreateTokenExchangeProfileResponseContent": ".create_token_exchange_profile_response_content", - "CreateTokenQuota": ".create_token_quota", - "CreateUserAttributeProfileResponseContent": ".create_user_attribute_profile_response_content", - "CreateUserAuthenticationMethodResponseContent": ".create_user_authentication_method_response_content", - "CreateUserResponseContent": ".create_user_response_content", - "CreateVariationResponseContent": ".create_variation_response_content", - "CreateVerifiableCredentialTemplateResponseContent": ".create_verifiable_credential_template_response_content", - "CreateVerificationEmailResponseContent": ".create_verification_email_response_content", - "CreatedAuthenticationMethodTypeEnum": ".created_authentication_method_type_enum", - "CreatedUserAuthenticationMethodTypeEnum": ".created_user_authentication_method_type_enum", - "CredentialDeviceTypeEnum": ".credential_device_type_enum", - "CredentialId": ".credential_id", - "CrossAppAccessRequestingApp": ".cross_app_access_requesting_app", - "CrossAppAccessResourceApp": ".cross_app_access_resource_app", - "CrossAppAccessResourceAppStatusEnum": ".cross_app_access_resource_app_status_enum", - "CspDirectives": ".csp_directives", - "CspFlag": ".csp_flag", - "CspFlags": ".csp_flags", - "CspPolicies": ".csp_policies", - "CspPolicy": ".csp_policy", - "CspPolicyMode": ".csp_policy_mode", - "CspPolicyReporting": ".csp_policy_reporting", - "CspReportTo": ".csp_report_to", - "CspReportToEndpoint": ".csp_report_to_endpoint", - "CspReportToEndpoints": ".csp_report_to_endpoints", - "CspReportingEndpoints": ".csp_reporting_endpoints", - "CspReportingInfrastructure": ".csp_reporting_infrastructure", - "CustomDomain": ".custom_domain", - "CustomDomainCustomClientIpHeader": ".custom_domain_custom_client_ip_header", - "CustomDomainCustomClientIpHeaderEnum": ".custom_domain_custom_client_ip_header_enum", - "CustomDomainProvisioningTypeEnum": ".custom_domain_provisioning_type_enum", - "CustomDomainStatusFilterEnum": ".custom_domain_status_filter_enum", - "CustomDomainTlsPolicyEnum": ".custom_domain_tls_policy_enum", - "CustomDomainTypeEnum": ".custom_domain_type_enum", - "CustomDomainVerificationMethodEnum": ".custom_domain_verification_method_enum", - "CustomProviderConfiguration": ".custom_provider_configuration", - "CustomProviderCredentials": ".custom_provider_credentials", - "CustomProviderDeliveryMethodEnum": ".custom_provider_delivery_method_enum", - "CustomSigningKeyAlgorithmEnum": ".custom_signing_key_algorithm_enum", - "CustomSigningKeyCurveEnum": ".custom_signing_key_curve_enum", - "CustomSigningKeyJwk": ".custom_signing_key_jwk", - "CustomSigningKeyOperationEnum": ".custom_signing_key_operation_enum", - "CustomSigningKeyTypeEnum": ".custom_signing_key_type_enum", - "CustomSigningKeyUseEnum": ".custom_signing_key_use_enum", - "DailyStats": ".daily_stats", - "DefaultConfigEnum": ".default_config_enum", - "DefaultMethodEmailIdentifierEnum": ".default_method_email_identifier_enum", - "DefaultMethodPhoneNumberIdentifierEnum": ".default_method_phone_number_identifier_enum", - "DefaultTokenQuota": ".default_token_quota", - "DeleteHookSecretRequestContent": ".delete_hook_secret_request_content", - "DeleteUserIdentityResponseContent": ".delete_user_identity_response_content", - "DeleteUserIdentityResponseContentItem": ".delete_user_identity_response_content_item", - "DeployActionResponseContent": ".deploy_action_response_content", - "DeployActionVersionRequestContent": ".deploy_action_version_request_content", - "DeployActionVersionResponseContent": ".deploy_action_version_response_content", - "DeviceCredential": ".device_credential", - "DeviceCredentialPublicKeyTypeEnum": ".device_credential_public_key_type_enum", - "DeviceCredentialTypeEnum": ".device_credential_type_enum", - "DirectoryProvisioning": ".directory_provisioning", - "DirectoryProvisioningMappingItem": ".directory_provisioning_mapping_item", - "DomainCertificate": ".domain_certificate", - "DomainCertificateAuthorityEnum": ".domain_certificate_authority_enum", - "DomainCertificateStatusEnum": ".domain_certificate_status_enum", - "DomainMetadata": ".domain_metadata", - "DomainVerification": ".domain_verification", - "DomainVerificationMethod": ".domain_verification_method", - "DomainVerificationMethodNameEnum": ".domain_verification_method_name_enum", - "DomainVerificationStatusEnum": ".domain_verification_status_enum", - "EmailAttribute": ".email_attribute", - "EmailAttributeIdentifier": ".email_attribute_identifier", - "EmailMailgunRegionEnum": ".email_mailgun_region_enum", - "EmailProviderCredentials": ".email_provider_credentials", - "EmailProviderCredentialsSchema": ".email_provider_credentials_schema", - "EmailProviderCredentialsSchemaAccessKeyId": ".email_provider_credentials_schema_access_key_id", - "EmailProviderCredentialsSchemaApiKey": ".email_provider_credentials_schema_api_key", - "EmailProviderCredentialsSchemaClientId": ".email_provider_credentials_schema_client_id", - "EmailProviderCredentialsSchemaConnectionString": ".email_provider_credentials_schema_connection_string", - "EmailProviderCredentialsSchemaSmtpHost": ".email_provider_credentials_schema_smtp_host", - "EmailProviderCredentialsSchemaThree": ".email_provider_credentials_schema_three", - "EmailProviderCredentialsSchemaZero": ".email_provider_credentials_schema_zero", - "EmailProviderNameEnum": ".email_provider_name_enum", - "EmailProviderSettings": ".email_provider_settings", - "EmailSmtpHost": ".email_smtp_host", - "EmailSparkPostRegionEnum": ".email_spark_post_region_enum", - "EmailSpecificProviderSettingsWithAdditionalProperties": ".email_specific_provider_settings_with_additional_properties", - "EmailTemplateNameEnum": ".email_template_name_enum", - "EnabledFeaturesEnum": ".enabled_features_enum", - "EncryptionKey": ".encryption_key", - "EncryptionKeyPublicWrappingAlgorithm": ".encryption_key_public_wrapping_algorithm", - "EncryptionKeyState": ".encryption_key_state", - "EncryptionKeyType": ".encryption_key_type", - "EventStreamActionConfiguration": ".event_stream_action_configuration", - "EventStreamActionDestination": ".event_stream_action_destination", - "EventStreamActionDestinationTypeEnum": ".event_stream_action_destination_type_enum", - "EventStreamActionResponseContent": ".event_stream_action_response_content", - "EventStreamCloudEvent": ".event_stream_cloud_event", - "EventStreamCloudEventA0PurposeEnum": ".event_stream_cloud_event_a_0_purpose_enum", - "EventStreamCloudEventConnectionCreated": ".event_stream_cloud_event_connection_created", - "EventStreamCloudEventConnectionCreatedCloudEvent": ".event_stream_cloud_event_connection_created_cloud_event", - "EventStreamCloudEventConnectionCreatedCloudEventTypeEnum": ".event_stream_cloud_event_connection_created_cloud_event_type_enum", - "EventStreamCloudEventConnectionCreatedData": ".event_stream_cloud_event_connection_created_data", - "EventStreamCloudEventConnectionCreatedObject": ".event_stream_cloud_event_connection_created_object", - "EventStreamCloudEventConnectionCreatedObject0": ".event_stream_cloud_event_connection_created_object_0", - "EventStreamCloudEventConnectionCreatedObject0Authentication": ".event_stream_cloud_event_connection_created_object_0_authentication", - "EventStreamCloudEventConnectionCreatedObject0ConnectedAccounts": ".event_stream_cloud_event_connection_created_object_0_connected_accounts", - "EventStreamCloudEventConnectionCreatedObject0Metadata": ".event_stream_cloud_event_connection_created_object_0_metadata", - "EventStreamCloudEventConnectionCreatedObject0Options": ".event_stream_cloud_event_connection_created_object_0_options", - "EventStreamCloudEventConnectionCreatedObject0OptionsAttributeMap": ".event_stream_cloud_event_connection_created_object_0_options_attribute_map", - "EventStreamCloudEventConnectionCreatedObject0OptionsAttributeMapAttributes": ".event_stream_cloud_event_connection_created_object_0_options_attribute_map_attributes", - "EventStreamCloudEventConnectionCreatedObject0OptionsAttributeMapMappingModeEnum": ".event_stream_cloud_event_connection_created_object_0_options_attribute_map_mapping_mode_enum", - "EventStreamCloudEventConnectionCreatedObject0OptionsConnectionSettings": ".event_stream_cloud_event_connection_created_object_0_options_connection_settings", - "EventStreamCloudEventConnectionCreatedObject0OptionsConnectionSettingsPkceEnum": ".event_stream_cloud_event_connection_created_object_0_options_connection_settings_pkce_enum", - "EventStreamCloudEventConnectionCreatedObject0OptionsDpopSigningAlgEnum": ".event_stream_cloud_event_connection_created_object_0_options_dpop_signing_alg_enum", - "EventStreamCloudEventConnectionCreatedObject0OptionsFederatedConnectionsAccessTokens": ".event_stream_cloud_event_connection_created_object_0_options_federated_connections_access_tokens", - "EventStreamCloudEventConnectionCreatedObject0OptionsIdTokenSignedResponseAlgsItemEnum": ".event_stream_cloud_event_connection_created_object_0_options_id_token_signed_response_algs_item_enum", - "EventStreamCloudEventConnectionCreatedObject0OptionsOidcMetadata": ".event_stream_cloud_event_connection_created_object_0_options_oidc_metadata", - "EventStreamCloudEventConnectionCreatedObject0OptionsSchemaVersionEnum": ".event_stream_cloud_event_connection_created_object_0_options_schema_version_enum", - "EventStreamCloudEventConnectionCreatedObject0OptionsSetUserRootAttributesEnum": ".event_stream_cloud_event_connection_created_object_0_options_set_user_root_attributes_enum", - "EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointAuthMethodEnum": ".event_stream_cloud_event_connection_created_object_0_options_token_endpoint_auth_method_enum", - "EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointAuthSigningAlgEnum": ".event_stream_cloud_event_connection_created_object_0_options_token_endpoint_auth_signing_alg_enum", - "EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointJwtcaAudFormatEnum": ".event_stream_cloud_event_connection_created_object_0_options_token_endpoint_jwtca_aud_format_enum", - "EventStreamCloudEventConnectionCreatedObject0OptionsTypeEnum": ".event_stream_cloud_event_connection_created_object_0_options_type_enum", - "EventStreamCloudEventConnectionCreatedObject0OptionsUpstreamParams": ".event_stream_cloud_event_connection_created_object_0_options_upstream_params", - "EventStreamCloudEventConnectionCreatedObject0StrategyEnum": ".event_stream_cloud_event_connection_created_object_0_strategy_enum", - "EventStreamCloudEventConnectionCreatedObject1": ".event_stream_cloud_event_connection_created_object_1", - "EventStreamCloudEventConnectionCreatedObject1Authentication": ".event_stream_cloud_event_connection_created_object_1_authentication", - "EventStreamCloudEventConnectionCreatedObject1ConnectedAccounts": ".event_stream_cloud_event_connection_created_object_1_connected_accounts", - "EventStreamCloudEventConnectionCreatedObject1Metadata": ".event_stream_cloud_event_connection_created_object_1_metadata", - "EventStreamCloudEventConnectionCreatedObject1Options": ".event_stream_cloud_event_connection_created_object_1_options", - "EventStreamCloudEventConnectionCreatedObject1OptionsAttributeMap": ".event_stream_cloud_event_connection_created_object_1_options_attribute_map", - "EventStreamCloudEventConnectionCreatedObject1OptionsAttributeMapAttributes": ".event_stream_cloud_event_connection_created_object_1_options_attribute_map_attributes", - "EventStreamCloudEventConnectionCreatedObject1OptionsAttributeMapMappingModeEnum": ".event_stream_cloud_event_connection_created_object_1_options_attribute_map_mapping_mode_enum", - "EventStreamCloudEventConnectionCreatedObject1OptionsConnectionSettings": ".event_stream_cloud_event_connection_created_object_1_options_connection_settings", - "EventStreamCloudEventConnectionCreatedObject1OptionsConnectionSettingsPkceEnum": ".event_stream_cloud_event_connection_created_object_1_options_connection_settings_pkce_enum", - "EventStreamCloudEventConnectionCreatedObject1OptionsDpopSigningAlgEnum": ".event_stream_cloud_event_connection_created_object_1_options_dpop_signing_alg_enum", - "EventStreamCloudEventConnectionCreatedObject1OptionsFederatedConnectionsAccessTokens": ".event_stream_cloud_event_connection_created_object_1_options_federated_connections_access_tokens", - "EventStreamCloudEventConnectionCreatedObject1OptionsIdTokenSignedResponseAlgsItemEnum": ".event_stream_cloud_event_connection_created_object_1_options_id_token_signed_response_algs_item_enum", - "EventStreamCloudEventConnectionCreatedObject1OptionsOidcMetadata": ".event_stream_cloud_event_connection_created_object_1_options_oidc_metadata", - "EventStreamCloudEventConnectionCreatedObject1OptionsSchemaVersionEnum": ".event_stream_cloud_event_connection_created_object_1_options_schema_version_enum", - "EventStreamCloudEventConnectionCreatedObject1OptionsSetUserRootAttributesEnum": ".event_stream_cloud_event_connection_created_object_1_options_set_user_root_attributes_enum", - "EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointAuthMethodEnum": ".event_stream_cloud_event_connection_created_object_1_options_token_endpoint_auth_method_enum", - "EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointAuthSigningAlgEnum": ".event_stream_cloud_event_connection_created_object_1_options_token_endpoint_auth_signing_alg_enum", - "EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointJwtcaAudFormatEnum": ".event_stream_cloud_event_connection_created_object_1_options_token_endpoint_jwtca_aud_format_enum", - "EventStreamCloudEventConnectionCreatedObject1OptionsTypeEnum": ".event_stream_cloud_event_connection_created_object_1_options_type_enum", - "EventStreamCloudEventConnectionCreatedObject1OptionsUpstreamParams": ".event_stream_cloud_event_connection_created_object_1_options_upstream_params", - "EventStreamCloudEventConnectionCreatedObject1StrategyEnum": ".event_stream_cloud_event_connection_created_object_1_strategy_enum", - "EventStreamCloudEventConnectionCreatedObject2": ".event_stream_cloud_event_connection_created_object_2", - "EventStreamCloudEventConnectionCreatedObject2Authentication": ".event_stream_cloud_event_connection_created_object_2_authentication", - "EventStreamCloudEventConnectionCreatedObject2ConnectedAccounts": ".event_stream_cloud_event_connection_created_object_2_connected_accounts", - "EventStreamCloudEventConnectionCreatedObject2Metadata": ".event_stream_cloud_event_connection_created_object_2_metadata", - "EventStreamCloudEventConnectionCreatedObject2Options": ".event_stream_cloud_event_connection_created_object_2_options", - "EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettings": ".event_stream_cloud_event_connection_created_object_2_options_assertion_decryption_settings", - "EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum": ".event_stream_cloud_event_connection_created_object_2_options_assertion_decryption_settings_algorithm_profile_enum", - "EventStreamCloudEventConnectionCreatedObject2OptionsDigestAlgorithmEnum": ".event_stream_cloud_event_connection_created_object_2_options_digest_algorithm_enum", - "EventStreamCloudEventConnectionCreatedObject2OptionsFieldsMap": ".event_stream_cloud_event_connection_created_object_2_options_fields_map", - "EventStreamCloudEventConnectionCreatedObject2OptionsIdpinitiated": ".event_stream_cloud_event_connection_created_object_2_options_idpinitiated", - "EventStreamCloudEventConnectionCreatedObject2OptionsIdpinitiatedClientProtocolEnum": ".event_stream_cloud_event_connection_created_object_2_options_idpinitiated_client_protocol_enum", - "EventStreamCloudEventConnectionCreatedObject2OptionsOidcMetadata": ".event_stream_cloud_event_connection_created_object_2_options_oidc_metadata", - "EventStreamCloudEventConnectionCreatedObject2OptionsProtocolBindingEnum": ".event_stream_cloud_event_connection_created_object_2_options_protocol_binding_enum", - "EventStreamCloudEventConnectionCreatedObject2OptionsSetUserRootAttributesEnum": ".event_stream_cloud_event_connection_created_object_2_options_set_user_root_attributes_enum", - "EventStreamCloudEventConnectionCreatedObject2OptionsSignatureAlgorithmEnum": ".event_stream_cloud_event_connection_created_object_2_options_signature_algorithm_enum", - "EventStreamCloudEventConnectionCreatedObject2OptionsSubject": ".event_stream_cloud_event_connection_created_object_2_options_subject", - "EventStreamCloudEventConnectionCreatedObject2OptionsUpstreamParams": ".event_stream_cloud_event_connection_created_object_2_options_upstream_params", - "EventStreamCloudEventConnectionCreatedObject2StrategyEnum": ".event_stream_cloud_event_connection_created_object_2_strategy_enum", - "EventStreamCloudEventConnectionCreatedObject3": ".event_stream_cloud_event_connection_created_object_3", - "EventStreamCloudEventConnectionCreatedObject3Authentication": ".event_stream_cloud_event_connection_created_object_3_authentication", - "EventStreamCloudEventConnectionCreatedObject3ConnectedAccounts": ".event_stream_cloud_event_connection_created_object_3_connected_accounts", - "EventStreamCloudEventConnectionCreatedObject3Metadata": ".event_stream_cloud_event_connection_created_object_3_metadata", - "EventStreamCloudEventConnectionCreatedObject3Options": ".event_stream_cloud_event_connection_created_object_3_options", - "EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettings": ".event_stream_cloud_event_connection_created_object_3_options_assertion_decryption_settings", - "EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum": ".event_stream_cloud_event_connection_created_object_3_options_assertion_decryption_settings_algorithm_profile_enum", - "EventStreamCloudEventConnectionCreatedObject3OptionsDigestAlgorithmEnum": ".event_stream_cloud_event_connection_created_object_3_options_digest_algorithm_enum", - "EventStreamCloudEventConnectionCreatedObject3OptionsIdpinitiated": ".event_stream_cloud_event_connection_created_object_3_options_idpinitiated", - "EventStreamCloudEventConnectionCreatedObject3OptionsIdpinitiatedClientProtocolEnum": ".event_stream_cloud_event_connection_created_object_3_options_idpinitiated_client_protocol_enum", - "EventStreamCloudEventConnectionCreatedObject3OptionsProtocolBindingEnum": ".event_stream_cloud_event_connection_created_object_3_options_protocol_binding_enum", - "EventStreamCloudEventConnectionCreatedObject3OptionsSetUserRootAttributesEnum": ".event_stream_cloud_event_connection_created_object_3_options_set_user_root_attributes_enum", - "EventStreamCloudEventConnectionCreatedObject3OptionsSignatureAlgorithmEnum": ".event_stream_cloud_event_connection_created_object_3_options_signature_algorithm_enum", - "EventStreamCloudEventConnectionCreatedObject3OptionsSubject": ".event_stream_cloud_event_connection_created_object_3_options_subject", - "EventStreamCloudEventConnectionCreatedObject3OptionsUpstreamParams": ".event_stream_cloud_event_connection_created_object_3_options_upstream_params", - "EventStreamCloudEventConnectionCreatedObject3StrategyEnum": ".event_stream_cloud_event_connection_created_object_3_strategy_enum", - "EventStreamCloudEventConnectionCreatedObject4": ".event_stream_cloud_event_connection_created_object_4", - "EventStreamCloudEventConnectionCreatedObject4Authentication": ".event_stream_cloud_event_connection_created_object_4_authentication", - "EventStreamCloudEventConnectionCreatedObject4ConnectedAccounts": ".event_stream_cloud_event_connection_created_object_4_connected_accounts", - "EventStreamCloudEventConnectionCreatedObject4Metadata": ".event_stream_cloud_event_connection_created_object_4_metadata", - "EventStreamCloudEventConnectionCreatedObject4Options": ".event_stream_cloud_event_connection_created_object_4_options", - "EventStreamCloudEventConnectionCreatedObject4OptionsSetUserRootAttributesEnum": ".event_stream_cloud_event_connection_created_object_4_options_set_user_root_attributes_enum", - "EventStreamCloudEventConnectionCreatedObject4OptionsShouldTrustEmailVerifiedConnectionEnum": ".event_stream_cloud_event_connection_created_object_4_options_should_trust_email_verified_connection_enum", - "EventStreamCloudEventConnectionCreatedObject4OptionsUpstreamParams": ".event_stream_cloud_event_connection_created_object_4_options_upstream_params", - "EventStreamCloudEventConnectionCreatedObject4StrategyEnum": ".event_stream_cloud_event_connection_created_object_4_strategy_enum", - "EventStreamCloudEventConnectionCreatedObject5": ".event_stream_cloud_event_connection_created_object_5", - "EventStreamCloudEventConnectionCreatedObject5Authentication": ".event_stream_cloud_event_connection_created_object_5_authentication", - "EventStreamCloudEventConnectionCreatedObject5ConnectedAccounts": ".event_stream_cloud_event_connection_created_object_5_connected_accounts", - "EventStreamCloudEventConnectionCreatedObject5Metadata": ".event_stream_cloud_event_connection_created_object_5_metadata", - "EventStreamCloudEventConnectionCreatedObject5Options": ".event_stream_cloud_event_connection_created_object_5_options", - "EventStreamCloudEventConnectionCreatedObject5OptionsSetUserRootAttributesEnum": ".event_stream_cloud_event_connection_created_object_5_options_set_user_root_attributes_enum", - "EventStreamCloudEventConnectionCreatedObject5OptionsUpstreamParams": ".event_stream_cloud_event_connection_created_object_5_options_upstream_params", - "EventStreamCloudEventConnectionCreatedObject5StrategyEnum": ".event_stream_cloud_event_connection_created_object_5_strategy_enum", - "EventStreamCloudEventConnectionCreatedObject6": ".event_stream_cloud_event_connection_created_object_6", - "EventStreamCloudEventConnectionCreatedObject6Authentication": ".event_stream_cloud_event_connection_created_object_6_authentication", - "EventStreamCloudEventConnectionCreatedObject6ConnectedAccounts": ".event_stream_cloud_event_connection_created_object_6_connected_accounts", - "EventStreamCloudEventConnectionCreatedObject6Metadata": ".event_stream_cloud_event_connection_created_object_6_metadata", - "EventStreamCloudEventConnectionCreatedObject6Options": ".event_stream_cloud_event_connection_created_object_6_options", - "EventStreamCloudEventConnectionCreatedObject6OptionsFederatedConnectionsAccessTokens": ".event_stream_cloud_event_connection_created_object_6_options_federated_connections_access_tokens", - "EventStreamCloudEventConnectionCreatedObject6OptionsSetUserRootAttributesEnum": ".event_stream_cloud_event_connection_created_object_6_options_set_user_root_attributes_enum", - "EventStreamCloudEventConnectionCreatedObject6OptionsUpstreamParams": ".event_stream_cloud_event_connection_created_object_6_options_upstream_params", - "EventStreamCloudEventConnectionCreatedObject6StrategyEnum": ".event_stream_cloud_event_connection_created_object_6_strategy_enum", - "EventStreamCloudEventConnectionCreatedObject7": ".event_stream_cloud_event_connection_created_object_7", - "EventStreamCloudEventConnectionCreatedObject7Authentication": ".event_stream_cloud_event_connection_created_object_7_authentication", - "EventStreamCloudEventConnectionCreatedObject7ConnectedAccounts": ".event_stream_cloud_event_connection_created_object_7_connected_accounts", - "EventStreamCloudEventConnectionCreatedObject7Metadata": ".event_stream_cloud_event_connection_created_object_7_metadata", - "EventStreamCloudEventConnectionCreatedObject7Options": ".event_stream_cloud_event_connection_created_object_7_options", - "EventStreamCloudEventConnectionCreatedObject7OptionsFederatedConnectionsAccessTokens": ".event_stream_cloud_event_connection_created_object_7_options_federated_connections_access_tokens", - "EventStreamCloudEventConnectionCreatedObject7OptionsIdentityApiEnum": ".event_stream_cloud_event_connection_created_object_7_options_identity_api_enum", - "EventStreamCloudEventConnectionCreatedObject7OptionsSetUserRootAttributesEnum": ".event_stream_cloud_event_connection_created_object_7_options_set_user_root_attributes_enum", - "EventStreamCloudEventConnectionCreatedObject7OptionsShouldTrustEmailVerifiedConnectionEnum": ".event_stream_cloud_event_connection_created_object_7_options_should_trust_email_verified_connection_enum", - "EventStreamCloudEventConnectionCreatedObject7OptionsTenantDomainOne": ".event_stream_cloud_event_connection_created_object_7_options_tenant_domain_one", - "EventStreamCloudEventConnectionCreatedObject7OptionsUpstreamParams": ".event_stream_cloud_event_connection_created_object_7_options_upstream_params", - "EventStreamCloudEventConnectionCreatedObject7OptionsUseridAttributeEnum": ".event_stream_cloud_event_connection_created_object_7_options_userid_attribute_enum", - "EventStreamCloudEventConnectionCreatedObject7OptionsWaadProtocolEnum": ".event_stream_cloud_event_connection_created_object_7_options_waad_protocol_enum", - "EventStreamCloudEventConnectionCreatedObject7StrategyEnum": ".event_stream_cloud_event_connection_created_object_7_strategy_enum", - "EventStreamCloudEventConnectionCreatedPreviousObject": ".event_stream_cloud_event_connection_created_previous_object", - "EventStreamCloudEventConnectionCreatedPreviousObject0": ".event_stream_cloud_event_connection_created_previous_object_0", - "EventStreamCloudEventConnectionCreatedPreviousObject0Authentication": ".event_stream_cloud_event_connection_created_previous_object_0_authentication", - "EventStreamCloudEventConnectionCreatedPreviousObject0ConnectedAccounts": ".event_stream_cloud_event_connection_created_previous_object_0_connected_accounts", - "EventStreamCloudEventConnectionCreatedPreviousObject0Metadata": ".event_stream_cloud_event_connection_created_previous_object_0_metadata", - "EventStreamCloudEventConnectionCreatedPreviousObject0Options": ".event_stream_cloud_event_connection_created_previous_object_0_options", - "EventStreamCloudEventConnectionCreatedPreviousObject0OptionsAttributeMap": ".event_stream_cloud_event_connection_created_previous_object_0_options_attribute_map", - "EventStreamCloudEventConnectionCreatedPreviousObject0OptionsAttributeMapAttributes": ".event_stream_cloud_event_connection_created_previous_object_0_options_attribute_map_attributes", - "EventStreamCloudEventConnectionCreatedPreviousObject0OptionsAttributeMapMappingModeEnum": ".event_stream_cloud_event_connection_created_previous_object_0_options_attribute_map_mapping_mode_enum", - "EventStreamCloudEventConnectionCreatedPreviousObject0OptionsConnectionSettings": ".event_stream_cloud_event_connection_created_previous_object_0_options_connection_settings", - "EventStreamCloudEventConnectionCreatedPreviousObject0OptionsConnectionSettingsPkceEnum": ".event_stream_cloud_event_connection_created_previous_object_0_options_connection_settings_pkce_enum", - "EventStreamCloudEventConnectionCreatedPreviousObject0OptionsDpopSigningAlgEnum": ".event_stream_cloud_event_connection_created_previous_object_0_options_dpop_signing_alg_enum", - "EventStreamCloudEventConnectionCreatedPreviousObject0OptionsFederatedConnectionsAccessTokens": ".event_stream_cloud_event_connection_created_previous_object_0_options_federated_connections_access_tokens", - "EventStreamCloudEventConnectionCreatedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum": ".event_stream_cloud_event_connection_created_previous_object_0_options_id_token_signed_response_algs_item_enum", - "EventStreamCloudEventConnectionCreatedPreviousObject0OptionsOidcMetadata": ".event_stream_cloud_event_connection_created_previous_object_0_options_oidc_metadata", - "EventStreamCloudEventConnectionCreatedPreviousObject0OptionsSchemaVersionEnum": ".event_stream_cloud_event_connection_created_previous_object_0_options_schema_version_enum", - "EventStreamCloudEventConnectionCreatedPreviousObject0OptionsSetUserRootAttributesEnum": ".event_stream_cloud_event_connection_created_previous_object_0_options_set_user_root_attributes_enum", - "EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTokenEndpointAuthMethodEnum": ".event_stream_cloud_event_connection_created_previous_object_0_options_token_endpoint_auth_method_enum", - "EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum": ".event_stream_cloud_event_connection_created_previous_object_0_options_token_endpoint_auth_signing_alg_enum", - "EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTokenEndpointJwtcaAudFormatEnum": ".event_stream_cloud_event_connection_created_previous_object_0_options_token_endpoint_jwtca_aud_format_enum", - "EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTypeEnum": ".event_stream_cloud_event_connection_created_previous_object_0_options_type_enum", - "EventStreamCloudEventConnectionCreatedPreviousObject0OptionsUpstreamParams": ".event_stream_cloud_event_connection_created_previous_object_0_options_upstream_params", - "EventStreamCloudEventConnectionCreatedPreviousObject0StrategyEnum": ".event_stream_cloud_event_connection_created_previous_object_0_strategy_enum", - "EventStreamCloudEventConnectionCreatedPreviousObject1": ".event_stream_cloud_event_connection_created_previous_object_1", - "EventStreamCloudEventConnectionCreatedPreviousObject1Authentication": ".event_stream_cloud_event_connection_created_previous_object_1_authentication", - "EventStreamCloudEventConnectionCreatedPreviousObject1ConnectedAccounts": ".event_stream_cloud_event_connection_created_previous_object_1_connected_accounts", - "EventStreamCloudEventConnectionCreatedPreviousObject1Metadata": ".event_stream_cloud_event_connection_created_previous_object_1_metadata", - "EventStreamCloudEventConnectionCreatedPreviousObject1Options": ".event_stream_cloud_event_connection_created_previous_object_1_options", - "EventStreamCloudEventConnectionCreatedPreviousObject1OptionsAttributeMap": ".event_stream_cloud_event_connection_created_previous_object_1_options_attribute_map", - "EventStreamCloudEventConnectionCreatedPreviousObject1OptionsAttributeMapAttributes": ".event_stream_cloud_event_connection_created_previous_object_1_options_attribute_map_attributes", - "EventStreamCloudEventConnectionCreatedPreviousObject1OptionsAttributeMapMappingModeEnum": ".event_stream_cloud_event_connection_created_previous_object_1_options_attribute_map_mapping_mode_enum", - "EventStreamCloudEventConnectionCreatedPreviousObject1OptionsConnectionSettings": ".event_stream_cloud_event_connection_created_previous_object_1_options_connection_settings", - "EventStreamCloudEventConnectionCreatedPreviousObject1OptionsConnectionSettingsPkceEnum": ".event_stream_cloud_event_connection_created_previous_object_1_options_connection_settings_pkce_enum", - "EventStreamCloudEventConnectionCreatedPreviousObject1OptionsDpopSigningAlgEnum": ".event_stream_cloud_event_connection_created_previous_object_1_options_dpop_signing_alg_enum", - "EventStreamCloudEventConnectionCreatedPreviousObject1OptionsFederatedConnectionsAccessTokens": ".event_stream_cloud_event_connection_created_previous_object_1_options_federated_connections_access_tokens", - "EventStreamCloudEventConnectionCreatedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum": ".event_stream_cloud_event_connection_created_previous_object_1_options_id_token_signed_response_algs_item_enum", - "EventStreamCloudEventConnectionCreatedPreviousObject1OptionsOidcMetadata": ".event_stream_cloud_event_connection_created_previous_object_1_options_oidc_metadata", - "EventStreamCloudEventConnectionCreatedPreviousObject1OptionsSchemaVersionEnum": ".event_stream_cloud_event_connection_created_previous_object_1_options_schema_version_enum", - "EventStreamCloudEventConnectionCreatedPreviousObject1OptionsSetUserRootAttributesEnum": ".event_stream_cloud_event_connection_created_previous_object_1_options_set_user_root_attributes_enum", - "EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTokenEndpointAuthMethodEnum": ".event_stream_cloud_event_connection_created_previous_object_1_options_token_endpoint_auth_method_enum", - "EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum": ".event_stream_cloud_event_connection_created_previous_object_1_options_token_endpoint_auth_signing_alg_enum", - "EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTokenEndpointJwtcaAudFormatEnum": ".event_stream_cloud_event_connection_created_previous_object_1_options_token_endpoint_jwtca_aud_format_enum", - "EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTypeEnum": ".event_stream_cloud_event_connection_created_previous_object_1_options_type_enum", - "EventStreamCloudEventConnectionCreatedPreviousObject1OptionsUpstreamParams": ".event_stream_cloud_event_connection_created_previous_object_1_options_upstream_params", - "EventStreamCloudEventConnectionCreatedPreviousObject1StrategyEnum": ".event_stream_cloud_event_connection_created_previous_object_1_strategy_enum", - "EventStreamCloudEventConnectionCreatedPreviousObject2": ".event_stream_cloud_event_connection_created_previous_object_2", - "EventStreamCloudEventConnectionCreatedPreviousObject2Authentication": ".event_stream_cloud_event_connection_created_previous_object_2_authentication", - "EventStreamCloudEventConnectionCreatedPreviousObject2ConnectedAccounts": ".event_stream_cloud_event_connection_created_previous_object_2_connected_accounts", - "EventStreamCloudEventConnectionCreatedPreviousObject2Metadata": ".event_stream_cloud_event_connection_created_previous_object_2_metadata", - "EventStreamCloudEventConnectionCreatedPreviousObject2Options": ".event_stream_cloud_event_connection_created_previous_object_2_options", - "EventStreamCloudEventConnectionCreatedPreviousObject2OptionsAssertionDecryptionSettings": ".event_stream_cloud_event_connection_created_previous_object_2_options_assertion_decryption_settings", - "EventStreamCloudEventConnectionCreatedPreviousObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum": ".event_stream_cloud_event_connection_created_previous_object_2_options_assertion_decryption_settings_algorithm_profile_enum", - "EventStreamCloudEventConnectionCreatedPreviousObject2OptionsDigestAlgorithmEnum": ".event_stream_cloud_event_connection_created_previous_object_2_options_digest_algorithm_enum", - "EventStreamCloudEventConnectionCreatedPreviousObject2OptionsFieldsMap": ".event_stream_cloud_event_connection_created_previous_object_2_options_fields_map", - "EventStreamCloudEventConnectionCreatedPreviousObject2OptionsIdpinitiated": ".event_stream_cloud_event_connection_created_previous_object_2_options_idpinitiated", - "EventStreamCloudEventConnectionCreatedPreviousObject2OptionsIdpinitiatedClientProtocolEnum": ".event_stream_cloud_event_connection_created_previous_object_2_options_idpinitiated_client_protocol_enum", - "EventStreamCloudEventConnectionCreatedPreviousObject2OptionsOidcMetadata": ".event_stream_cloud_event_connection_created_previous_object_2_options_oidc_metadata", - "EventStreamCloudEventConnectionCreatedPreviousObject2OptionsProtocolBindingEnum": ".event_stream_cloud_event_connection_created_previous_object_2_options_protocol_binding_enum", - "EventStreamCloudEventConnectionCreatedPreviousObject2OptionsSetUserRootAttributesEnum": ".event_stream_cloud_event_connection_created_previous_object_2_options_set_user_root_attributes_enum", - "EventStreamCloudEventConnectionCreatedPreviousObject2OptionsSignatureAlgorithmEnum": ".event_stream_cloud_event_connection_created_previous_object_2_options_signature_algorithm_enum", - "EventStreamCloudEventConnectionCreatedPreviousObject2OptionsSubject": ".event_stream_cloud_event_connection_created_previous_object_2_options_subject", - "EventStreamCloudEventConnectionCreatedPreviousObject2OptionsUpstreamParams": ".event_stream_cloud_event_connection_created_previous_object_2_options_upstream_params", - "EventStreamCloudEventConnectionCreatedPreviousObject2StrategyEnum": ".event_stream_cloud_event_connection_created_previous_object_2_strategy_enum", - "EventStreamCloudEventConnectionCreatedPreviousObject3": ".event_stream_cloud_event_connection_created_previous_object_3", - "EventStreamCloudEventConnectionCreatedPreviousObject3Authentication": ".event_stream_cloud_event_connection_created_previous_object_3_authentication", - "EventStreamCloudEventConnectionCreatedPreviousObject3ConnectedAccounts": ".event_stream_cloud_event_connection_created_previous_object_3_connected_accounts", - "EventStreamCloudEventConnectionCreatedPreviousObject3Metadata": ".event_stream_cloud_event_connection_created_previous_object_3_metadata", - "EventStreamCloudEventConnectionCreatedPreviousObject3Options": ".event_stream_cloud_event_connection_created_previous_object_3_options", - "EventStreamCloudEventConnectionCreatedPreviousObject3OptionsAssertionDecryptionSettings": ".event_stream_cloud_event_connection_created_previous_object_3_options_assertion_decryption_settings", - "EventStreamCloudEventConnectionCreatedPreviousObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum": ".event_stream_cloud_event_connection_created_previous_object_3_options_assertion_decryption_settings_algorithm_profile_enum", - "EventStreamCloudEventConnectionCreatedPreviousObject3OptionsDigestAlgorithmEnum": ".event_stream_cloud_event_connection_created_previous_object_3_options_digest_algorithm_enum", - "EventStreamCloudEventConnectionCreatedPreviousObject3OptionsIdpinitiated": ".event_stream_cloud_event_connection_created_previous_object_3_options_idpinitiated", - "EventStreamCloudEventConnectionCreatedPreviousObject3OptionsIdpinitiatedClientProtocolEnum": ".event_stream_cloud_event_connection_created_previous_object_3_options_idpinitiated_client_protocol_enum", - "EventStreamCloudEventConnectionCreatedPreviousObject3OptionsProtocolBindingEnum": ".event_stream_cloud_event_connection_created_previous_object_3_options_protocol_binding_enum", - "EventStreamCloudEventConnectionCreatedPreviousObject3OptionsSetUserRootAttributesEnum": ".event_stream_cloud_event_connection_created_previous_object_3_options_set_user_root_attributes_enum", - "EventStreamCloudEventConnectionCreatedPreviousObject3OptionsSignatureAlgorithmEnum": ".event_stream_cloud_event_connection_created_previous_object_3_options_signature_algorithm_enum", - "EventStreamCloudEventConnectionCreatedPreviousObject3OptionsSubject": ".event_stream_cloud_event_connection_created_previous_object_3_options_subject", - "EventStreamCloudEventConnectionCreatedPreviousObject3OptionsUpstreamParams": ".event_stream_cloud_event_connection_created_previous_object_3_options_upstream_params", - "EventStreamCloudEventConnectionCreatedPreviousObject3StrategyEnum": ".event_stream_cloud_event_connection_created_previous_object_3_strategy_enum", - "EventStreamCloudEventConnectionCreatedPreviousObject4": ".event_stream_cloud_event_connection_created_previous_object_4", - "EventStreamCloudEventConnectionCreatedPreviousObject4Authentication": ".event_stream_cloud_event_connection_created_previous_object_4_authentication", - "EventStreamCloudEventConnectionCreatedPreviousObject4ConnectedAccounts": ".event_stream_cloud_event_connection_created_previous_object_4_connected_accounts", - "EventStreamCloudEventConnectionCreatedPreviousObject4Metadata": ".event_stream_cloud_event_connection_created_previous_object_4_metadata", - "EventStreamCloudEventConnectionCreatedPreviousObject4Options": ".event_stream_cloud_event_connection_created_previous_object_4_options", - "EventStreamCloudEventConnectionCreatedPreviousObject4OptionsSetUserRootAttributesEnum": ".event_stream_cloud_event_connection_created_previous_object_4_options_set_user_root_attributes_enum", - "EventStreamCloudEventConnectionCreatedPreviousObject4OptionsShouldTrustEmailVerifiedConnectionEnum": ".event_stream_cloud_event_connection_created_previous_object_4_options_should_trust_email_verified_connection_enum", - "EventStreamCloudEventConnectionCreatedPreviousObject4OptionsUpstreamParams": ".event_stream_cloud_event_connection_created_previous_object_4_options_upstream_params", - "EventStreamCloudEventConnectionCreatedPreviousObject4StrategyEnum": ".event_stream_cloud_event_connection_created_previous_object_4_strategy_enum", - "EventStreamCloudEventConnectionCreatedPreviousObject5": ".event_stream_cloud_event_connection_created_previous_object_5", - "EventStreamCloudEventConnectionCreatedPreviousObject5Authentication": ".event_stream_cloud_event_connection_created_previous_object_5_authentication", - "EventStreamCloudEventConnectionCreatedPreviousObject5ConnectedAccounts": ".event_stream_cloud_event_connection_created_previous_object_5_connected_accounts", - "EventStreamCloudEventConnectionCreatedPreviousObject5Metadata": ".event_stream_cloud_event_connection_created_previous_object_5_metadata", - "EventStreamCloudEventConnectionCreatedPreviousObject5Options": ".event_stream_cloud_event_connection_created_previous_object_5_options", - "EventStreamCloudEventConnectionCreatedPreviousObject5OptionsSetUserRootAttributesEnum": ".event_stream_cloud_event_connection_created_previous_object_5_options_set_user_root_attributes_enum", - "EventStreamCloudEventConnectionCreatedPreviousObject5OptionsUpstreamParams": ".event_stream_cloud_event_connection_created_previous_object_5_options_upstream_params", - "EventStreamCloudEventConnectionCreatedPreviousObject5StrategyEnum": ".event_stream_cloud_event_connection_created_previous_object_5_strategy_enum", - "EventStreamCloudEventConnectionCreatedPreviousObject6": ".event_stream_cloud_event_connection_created_previous_object_6", - "EventStreamCloudEventConnectionCreatedPreviousObject6Authentication": ".event_stream_cloud_event_connection_created_previous_object_6_authentication", - "EventStreamCloudEventConnectionCreatedPreviousObject6ConnectedAccounts": ".event_stream_cloud_event_connection_created_previous_object_6_connected_accounts", - "EventStreamCloudEventConnectionCreatedPreviousObject6Metadata": ".event_stream_cloud_event_connection_created_previous_object_6_metadata", - "EventStreamCloudEventConnectionCreatedPreviousObject6Options": ".event_stream_cloud_event_connection_created_previous_object_6_options", - "EventStreamCloudEventConnectionCreatedPreviousObject6OptionsFederatedConnectionsAccessTokens": ".event_stream_cloud_event_connection_created_previous_object_6_options_federated_connections_access_tokens", - "EventStreamCloudEventConnectionCreatedPreviousObject6OptionsSetUserRootAttributesEnum": ".event_stream_cloud_event_connection_created_previous_object_6_options_set_user_root_attributes_enum", - "EventStreamCloudEventConnectionCreatedPreviousObject6OptionsUpstreamParams": ".event_stream_cloud_event_connection_created_previous_object_6_options_upstream_params", - "EventStreamCloudEventConnectionCreatedPreviousObject6StrategyEnum": ".event_stream_cloud_event_connection_created_previous_object_6_strategy_enum", - "EventStreamCloudEventConnectionCreatedPreviousObject7": ".event_stream_cloud_event_connection_created_previous_object_7", - "EventStreamCloudEventConnectionCreatedPreviousObject7Authentication": ".event_stream_cloud_event_connection_created_previous_object_7_authentication", - "EventStreamCloudEventConnectionCreatedPreviousObject7ConnectedAccounts": ".event_stream_cloud_event_connection_created_previous_object_7_connected_accounts", - "EventStreamCloudEventConnectionCreatedPreviousObject7Metadata": ".event_stream_cloud_event_connection_created_previous_object_7_metadata", - "EventStreamCloudEventConnectionCreatedPreviousObject7Options": ".event_stream_cloud_event_connection_created_previous_object_7_options", - "EventStreamCloudEventConnectionCreatedPreviousObject7OptionsFederatedConnectionsAccessTokens": ".event_stream_cloud_event_connection_created_previous_object_7_options_federated_connections_access_tokens", - "EventStreamCloudEventConnectionCreatedPreviousObject7OptionsIdentityApiEnum": ".event_stream_cloud_event_connection_created_previous_object_7_options_identity_api_enum", - "EventStreamCloudEventConnectionCreatedPreviousObject7OptionsSetUserRootAttributesEnum": ".event_stream_cloud_event_connection_created_previous_object_7_options_set_user_root_attributes_enum", - "EventStreamCloudEventConnectionCreatedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum": ".event_stream_cloud_event_connection_created_previous_object_7_options_should_trust_email_verified_connection_enum", - "EventStreamCloudEventConnectionCreatedPreviousObject7OptionsTenantDomainOne": ".event_stream_cloud_event_connection_created_previous_object_7_options_tenant_domain_one", - "EventStreamCloudEventConnectionCreatedPreviousObject7OptionsUpstreamParams": ".event_stream_cloud_event_connection_created_previous_object_7_options_upstream_params", - "EventStreamCloudEventConnectionCreatedPreviousObject7OptionsUseridAttributeEnum": ".event_stream_cloud_event_connection_created_previous_object_7_options_userid_attribute_enum", - "EventStreamCloudEventConnectionCreatedPreviousObject7OptionsWaadProtocolEnum": ".event_stream_cloud_event_connection_created_previous_object_7_options_waad_protocol_enum", - "EventStreamCloudEventConnectionCreatedPreviousObject7StrategyEnum": ".event_stream_cloud_event_connection_created_previous_object_7_strategy_enum", - "EventStreamCloudEventConnectionCreatedTypeEnum": ".event_stream_cloud_event_connection_created_type_enum", - "EventStreamCloudEventConnectionDeleted": ".event_stream_cloud_event_connection_deleted", - "EventStreamCloudEventConnectionDeletedCloudEvent": ".event_stream_cloud_event_connection_deleted_cloud_event", - "EventStreamCloudEventConnectionDeletedCloudEventTypeEnum": ".event_stream_cloud_event_connection_deleted_cloud_event_type_enum", - "EventStreamCloudEventConnectionDeletedData": ".event_stream_cloud_event_connection_deleted_data", - "EventStreamCloudEventConnectionDeletedObject": ".event_stream_cloud_event_connection_deleted_object", - "EventStreamCloudEventConnectionDeletedObject0": ".event_stream_cloud_event_connection_deleted_object_0", - "EventStreamCloudEventConnectionDeletedObject0Authentication": ".event_stream_cloud_event_connection_deleted_object_0_authentication", - "EventStreamCloudEventConnectionDeletedObject0ConnectedAccounts": ".event_stream_cloud_event_connection_deleted_object_0_connected_accounts", - "EventStreamCloudEventConnectionDeletedObject0Metadata": ".event_stream_cloud_event_connection_deleted_object_0_metadata", - "EventStreamCloudEventConnectionDeletedObject0Options": ".event_stream_cloud_event_connection_deleted_object_0_options", - "EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMap": ".event_stream_cloud_event_connection_deleted_object_0_options_attribute_map", - "EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMapAttributes": ".event_stream_cloud_event_connection_deleted_object_0_options_attribute_map_attributes", - "EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMapMappingModeEnum": ".event_stream_cloud_event_connection_deleted_object_0_options_attribute_map_mapping_mode_enum", - "EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettings": ".event_stream_cloud_event_connection_deleted_object_0_options_connection_settings", - "EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettingsPkceEnum": ".event_stream_cloud_event_connection_deleted_object_0_options_connection_settings_pkce_enum", - "EventStreamCloudEventConnectionDeletedObject0OptionsDpopSigningAlgEnum": ".event_stream_cloud_event_connection_deleted_object_0_options_dpop_signing_alg_enum", - "EventStreamCloudEventConnectionDeletedObject0OptionsFederatedConnectionsAccessTokens": ".event_stream_cloud_event_connection_deleted_object_0_options_federated_connections_access_tokens", - "EventStreamCloudEventConnectionDeletedObject0OptionsIdTokenSignedResponseAlgsItemEnum": ".event_stream_cloud_event_connection_deleted_object_0_options_id_token_signed_response_algs_item_enum", - "EventStreamCloudEventConnectionDeletedObject0OptionsOidcMetadata": ".event_stream_cloud_event_connection_deleted_object_0_options_oidc_metadata", - "EventStreamCloudEventConnectionDeletedObject0OptionsSchemaVersionEnum": ".event_stream_cloud_event_connection_deleted_object_0_options_schema_version_enum", - "EventStreamCloudEventConnectionDeletedObject0OptionsSetUserRootAttributesEnum": ".event_stream_cloud_event_connection_deleted_object_0_options_set_user_root_attributes_enum", - "EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthMethodEnum": ".event_stream_cloud_event_connection_deleted_object_0_options_token_endpoint_auth_method_enum", - "EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthSigningAlgEnum": ".event_stream_cloud_event_connection_deleted_object_0_options_token_endpoint_auth_signing_alg_enum", - "EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointJwtcaAudFormatEnum": ".event_stream_cloud_event_connection_deleted_object_0_options_token_endpoint_jwtca_aud_format_enum", - "EventStreamCloudEventConnectionDeletedObject0OptionsTypeEnum": ".event_stream_cloud_event_connection_deleted_object_0_options_type_enum", - "EventStreamCloudEventConnectionDeletedObject0OptionsUpstreamParams": ".event_stream_cloud_event_connection_deleted_object_0_options_upstream_params", - "EventStreamCloudEventConnectionDeletedObject0StrategyEnum": ".event_stream_cloud_event_connection_deleted_object_0_strategy_enum", - "EventStreamCloudEventConnectionDeletedObject1": ".event_stream_cloud_event_connection_deleted_object_1", - "EventStreamCloudEventConnectionDeletedObject1Authentication": ".event_stream_cloud_event_connection_deleted_object_1_authentication", - "EventStreamCloudEventConnectionDeletedObject1ConnectedAccounts": ".event_stream_cloud_event_connection_deleted_object_1_connected_accounts", - "EventStreamCloudEventConnectionDeletedObject1Metadata": ".event_stream_cloud_event_connection_deleted_object_1_metadata", - "EventStreamCloudEventConnectionDeletedObject1Options": ".event_stream_cloud_event_connection_deleted_object_1_options", - "EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMap": ".event_stream_cloud_event_connection_deleted_object_1_options_attribute_map", - "EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMapAttributes": ".event_stream_cloud_event_connection_deleted_object_1_options_attribute_map_attributes", - "EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMapMappingModeEnum": ".event_stream_cloud_event_connection_deleted_object_1_options_attribute_map_mapping_mode_enum", - "EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettings": ".event_stream_cloud_event_connection_deleted_object_1_options_connection_settings", - "EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettingsPkceEnum": ".event_stream_cloud_event_connection_deleted_object_1_options_connection_settings_pkce_enum", - "EventStreamCloudEventConnectionDeletedObject1OptionsDpopSigningAlgEnum": ".event_stream_cloud_event_connection_deleted_object_1_options_dpop_signing_alg_enum", - "EventStreamCloudEventConnectionDeletedObject1OptionsFederatedConnectionsAccessTokens": ".event_stream_cloud_event_connection_deleted_object_1_options_federated_connections_access_tokens", - "EventStreamCloudEventConnectionDeletedObject1OptionsIdTokenSignedResponseAlgsItemEnum": ".event_stream_cloud_event_connection_deleted_object_1_options_id_token_signed_response_algs_item_enum", - "EventStreamCloudEventConnectionDeletedObject1OptionsOidcMetadata": ".event_stream_cloud_event_connection_deleted_object_1_options_oidc_metadata", - "EventStreamCloudEventConnectionDeletedObject1OptionsSchemaVersionEnum": ".event_stream_cloud_event_connection_deleted_object_1_options_schema_version_enum", - "EventStreamCloudEventConnectionDeletedObject1OptionsSetUserRootAttributesEnum": ".event_stream_cloud_event_connection_deleted_object_1_options_set_user_root_attributes_enum", - "EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthMethodEnum": ".event_stream_cloud_event_connection_deleted_object_1_options_token_endpoint_auth_method_enum", - "EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthSigningAlgEnum": ".event_stream_cloud_event_connection_deleted_object_1_options_token_endpoint_auth_signing_alg_enum", - "EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointJwtcaAudFormatEnum": ".event_stream_cloud_event_connection_deleted_object_1_options_token_endpoint_jwtca_aud_format_enum", - "EventStreamCloudEventConnectionDeletedObject1OptionsTypeEnum": ".event_stream_cloud_event_connection_deleted_object_1_options_type_enum", - "EventStreamCloudEventConnectionDeletedObject1OptionsUpstreamParams": ".event_stream_cloud_event_connection_deleted_object_1_options_upstream_params", - "EventStreamCloudEventConnectionDeletedObject1StrategyEnum": ".event_stream_cloud_event_connection_deleted_object_1_strategy_enum", - "EventStreamCloudEventConnectionDeletedObject2": ".event_stream_cloud_event_connection_deleted_object_2", - "EventStreamCloudEventConnectionDeletedObject2Authentication": ".event_stream_cloud_event_connection_deleted_object_2_authentication", - "EventStreamCloudEventConnectionDeletedObject2ConnectedAccounts": ".event_stream_cloud_event_connection_deleted_object_2_connected_accounts", - "EventStreamCloudEventConnectionDeletedObject2Metadata": ".event_stream_cloud_event_connection_deleted_object_2_metadata", - "EventStreamCloudEventConnectionDeletedObject2Options": ".event_stream_cloud_event_connection_deleted_object_2_options", - "EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettings": ".event_stream_cloud_event_connection_deleted_object_2_options_assertion_decryption_settings", - "EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum": ".event_stream_cloud_event_connection_deleted_object_2_options_assertion_decryption_settings_algorithm_profile_enum", - "EventStreamCloudEventConnectionDeletedObject2OptionsDigestAlgorithmEnum": ".event_stream_cloud_event_connection_deleted_object_2_options_digest_algorithm_enum", - "EventStreamCloudEventConnectionDeletedObject2OptionsFieldsMap": ".event_stream_cloud_event_connection_deleted_object_2_options_fields_map", - "EventStreamCloudEventConnectionDeletedObject2OptionsIdpinitiated": ".event_stream_cloud_event_connection_deleted_object_2_options_idpinitiated", - "EventStreamCloudEventConnectionDeletedObject2OptionsIdpinitiatedClientProtocolEnum": ".event_stream_cloud_event_connection_deleted_object_2_options_idpinitiated_client_protocol_enum", - "EventStreamCloudEventConnectionDeletedObject2OptionsOidcMetadata": ".event_stream_cloud_event_connection_deleted_object_2_options_oidc_metadata", - "EventStreamCloudEventConnectionDeletedObject2OptionsProtocolBindingEnum": ".event_stream_cloud_event_connection_deleted_object_2_options_protocol_binding_enum", - "EventStreamCloudEventConnectionDeletedObject2OptionsSetUserRootAttributesEnum": ".event_stream_cloud_event_connection_deleted_object_2_options_set_user_root_attributes_enum", - "EventStreamCloudEventConnectionDeletedObject2OptionsSignatureAlgorithmEnum": ".event_stream_cloud_event_connection_deleted_object_2_options_signature_algorithm_enum", - "EventStreamCloudEventConnectionDeletedObject2OptionsSubject": ".event_stream_cloud_event_connection_deleted_object_2_options_subject", - "EventStreamCloudEventConnectionDeletedObject2OptionsUpstreamParams": ".event_stream_cloud_event_connection_deleted_object_2_options_upstream_params", - "EventStreamCloudEventConnectionDeletedObject2StrategyEnum": ".event_stream_cloud_event_connection_deleted_object_2_strategy_enum", - "EventStreamCloudEventConnectionDeletedObject3": ".event_stream_cloud_event_connection_deleted_object_3", - "EventStreamCloudEventConnectionDeletedObject3Authentication": ".event_stream_cloud_event_connection_deleted_object_3_authentication", - "EventStreamCloudEventConnectionDeletedObject3ConnectedAccounts": ".event_stream_cloud_event_connection_deleted_object_3_connected_accounts", - "EventStreamCloudEventConnectionDeletedObject3Metadata": ".event_stream_cloud_event_connection_deleted_object_3_metadata", - "EventStreamCloudEventConnectionDeletedObject3Options": ".event_stream_cloud_event_connection_deleted_object_3_options", - "EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettings": ".event_stream_cloud_event_connection_deleted_object_3_options_assertion_decryption_settings", - "EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum": ".event_stream_cloud_event_connection_deleted_object_3_options_assertion_decryption_settings_algorithm_profile_enum", - "EventStreamCloudEventConnectionDeletedObject3OptionsDigestAlgorithmEnum": ".event_stream_cloud_event_connection_deleted_object_3_options_digest_algorithm_enum", - "EventStreamCloudEventConnectionDeletedObject3OptionsIdpinitiated": ".event_stream_cloud_event_connection_deleted_object_3_options_idpinitiated", - "EventStreamCloudEventConnectionDeletedObject3OptionsIdpinitiatedClientProtocolEnum": ".event_stream_cloud_event_connection_deleted_object_3_options_idpinitiated_client_protocol_enum", - "EventStreamCloudEventConnectionDeletedObject3OptionsProtocolBindingEnum": ".event_stream_cloud_event_connection_deleted_object_3_options_protocol_binding_enum", - "EventStreamCloudEventConnectionDeletedObject3OptionsSetUserRootAttributesEnum": ".event_stream_cloud_event_connection_deleted_object_3_options_set_user_root_attributes_enum", - "EventStreamCloudEventConnectionDeletedObject3OptionsSignatureAlgorithmEnum": ".event_stream_cloud_event_connection_deleted_object_3_options_signature_algorithm_enum", - "EventStreamCloudEventConnectionDeletedObject3OptionsSubject": ".event_stream_cloud_event_connection_deleted_object_3_options_subject", - "EventStreamCloudEventConnectionDeletedObject3OptionsUpstreamParams": ".event_stream_cloud_event_connection_deleted_object_3_options_upstream_params", - "EventStreamCloudEventConnectionDeletedObject3StrategyEnum": ".event_stream_cloud_event_connection_deleted_object_3_strategy_enum", - "EventStreamCloudEventConnectionDeletedObject4": ".event_stream_cloud_event_connection_deleted_object_4", - "EventStreamCloudEventConnectionDeletedObject4Authentication": ".event_stream_cloud_event_connection_deleted_object_4_authentication", - "EventStreamCloudEventConnectionDeletedObject4ConnectedAccounts": ".event_stream_cloud_event_connection_deleted_object_4_connected_accounts", - "EventStreamCloudEventConnectionDeletedObject4Metadata": ".event_stream_cloud_event_connection_deleted_object_4_metadata", - "EventStreamCloudEventConnectionDeletedObject4Options": ".event_stream_cloud_event_connection_deleted_object_4_options", - "EventStreamCloudEventConnectionDeletedObject4OptionsSetUserRootAttributesEnum": ".event_stream_cloud_event_connection_deleted_object_4_options_set_user_root_attributes_enum", - "EventStreamCloudEventConnectionDeletedObject4OptionsShouldTrustEmailVerifiedConnectionEnum": ".event_stream_cloud_event_connection_deleted_object_4_options_should_trust_email_verified_connection_enum", - "EventStreamCloudEventConnectionDeletedObject4OptionsUpstreamParams": ".event_stream_cloud_event_connection_deleted_object_4_options_upstream_params", - "EventStreamCloudEventConnectionDeletedObject4StrategyEnum": ".event_stream_cloud_event_connection_deleted_object_4_strategy_enum", - "EventStreamCloudEventConnectionDeletedObject5": ".event_stream_cloud_event_connection_deleted_object_5", - "EventStreamCloudEventConnectionDeletedObject5Authentication": ".event_stream_cloud_event_connection_deleted_object_5_authentication", - "EventStreamCloudEventConnectionDeletedObject5ConnectedAccounts": ".event_stream_cloud_event_connection_deleted_object_5_connected_accounts", - "EventStreamCloudEventConnectionDeletedObject5Metadata": ".event_stream_cloud_event_connection_deleted_object_5_metadata", - "EventStreamCloudEventConnectionDeletedObject5Options": ".event_stream_cloud_event_connection_deleted_object_5_options", - "EventStreamCloudEventConnectionDeletedObject5OptionsSetUserRootAttributesEnum": ".event_stream_cloud_event_connection_deleted_object_5_options_set_user_root_attributes_enum", - "EventStreamCloudEventConnectionDeletedObject5OptionsUpstreamParams": ".event_stream_cloud_event_connection_deleted_object_5_options_upstream_params", - "EventStreamCloudEventConnectionDeletedObject5StrategyEnum": ".event_stream_cloud_event_connection_deleted_object_5_strategy_enum", - "EventStreamCloudEventConnectionDeletedObject6": ".event_stream_cloud_event_connection_deleted_object_6", - "EventStreamCloudEventConnectionDeletedObject6Authentication": ".event_stream_cloud_event_connection_deleted_object_6_authentication", - "EventStreamCloudEventConnectionDeletedObject6ConnectedAccounts": ".event_stream_cloud_event_connection_deleted_object_6_connected_accounts", - "EventStreamCloudEventConnectionDeletedObject6Metadata": ".event_stream_cloud_event_connection_deleted_object_6_metadata", - "EventStreamCloudEventConnectionDeletedObject6Options": ".event_stream_cloud_event_connection_deleted_object_6_options", - "EventStreamCloudEventConnectionDeletedObject6OptionsFederatedConnectionsAccessTokens": ".event_stream_cloud_event_connection_deleted_object_6_options_federated_connections_access_tokens", - "EventStreamCloudEventConnectionDeletedObject6OptionsSetUserRootAttributesEnum": ".event_stream_cloud_event_connection_deleted_object_6_options_set_user_root_attributes_enum", - "EventStreamCloudEventConnectionDeletedObject6OptionsUpstreamParams": ".event_stream_cloud_event_connection_deleted_object_6_options_upstream_params", - "EventStreamCloudEventConnectionDeletedObject6StrategyEnum": ".event_stream_cloud_event_connection_deleted_object_6_strategy_enum", - "EventStreamCloudEventConnectionDeletedObject7": ".event_stream_cloud_event_connection_deleted_object_7", - "EventStreamCloudEventConnectionDeletedObject7Authentication": ".event_stream_cloud_event_connection_deleted_object_7_authentication", - "EventStreamCloudEventConnectionDeletedObject7ConnectedAccounts": ".event_stream_cloud_event_connection_deleted_object_7_connected_accounts", - "EventStreamCloudEventConnectionDeletedObject7Metadata": ".event_stream_cloud_event_connection_deleted_object_7_metadata", - "EventStreamCloudEventConnectionDeletedObject7Options": ".event_stream_cloud_event_connection_deleted_object_7_options", - "EventStreamCloudEventConnectionDeletedObject7OptionsFederatedConnectionsAccessTokens": ".event_stream_cloud_event_connection_deleted_object_7_options_federated_connections_access_tokens", - "EventStreamCloudEventConnectionDeletedObject7OptionsIdentityApiEnum": ".event_stream_cloud_event_connection_deleted_object_7_options_identity_api_enum", - "EventStreamCloudEventConnectionDeletedObject7OptionsSetUserRootAttributesEnum": ".event_stream_cloud_event_connection_deleted_object_7_options_set_user_root_attributes_enum", - "EventStreamCloudEventConnectionDeletedObject7OptionsShouldTrustEmailVerifiedConnectionEnum": ".event_stream_cloud_event_connection_deleted_object_7_options_should_trust_email_verified_connection_enum", - "EventStreamCloudEventConnectionDeletedObject7OptionsTenantDomainOne": ".event_stream_cloud_event_connection_deleted_object_7_options_tenant_domain_one", - "EventStreamCloudEventConnectionDeletedObject7OptionsUpstreamParams": ".event_stream_cloud_event_connection_deleted_object_7_options_upstream_params", - "EventStreamCloudEventConnectionDeletedObject7OptionsUseridAttributeEnum": ".event_stream_cloud_event_connection_deleted_object_7_options_userid_attribute_enum", - "EventStreamCloudEventConnectionDeletedObject7OptionsWaadProtocolEnum": ".event_stream_cloud_event_connection_deleted_object_7_options_waad_protocol_enum", - "EventStreamCloudEventConnectionDeletedObject7StrategyEnum": ".event_stream_cloud_event_connection_deleted_object_7_strategy_enum", - "EventStreamCloudEventConnectionDeletedPreviousObject": ".event_stream_cloud_event_connection_deleted_previous_object", - "EventStreamCloudEventConnectionDeletedPreviousObject0": ".event_stream_cloud_event_connection_deleted_previous_object_0", - "EventStreamCloudEventConnectionDeletedPreviousObject0Authentication": ".event_stream_cloud_event_connection_deleted_previous_object_0_authentication", - "EventStreamCloudEventConnectionDeletedPreviousObject0ConnectedAccounts": ".event_stream_cloud_event_connection_deleted_previous_object_0_connected_accounts", - "EventStreamCloudEventConnectionDeletedPreviousObject0Metadata": ".event_stream_cloud_event_connection_deleted_previous_object_0_metadata", - "EventStreamCloudEventConnectionDeletedPreviousObject0Options": ".event_stream_cloud_event_connection_deleted_previous_object_0_options", - "EventStreamCloudEventConnectionDeletedPreviousObject0OptionsAttributeMap": ".event_stream_cloud_event_connection_deleted_previous_object_0_options_attribute_map", - "EventStreamCloudEventConnectionDeletedPreviousObject0OptionsAttributeMapAttributes": ".event_stream_cloud_event_connection_deleted_previous_object_0_options_attribute_map_attributes", - "EventStreamCloudEventConnectionDeletedPreviousObject0OptionsAttributeMapMappingModeEnum": ".event_stream_cloud_event_connection_deleted_previous_object_0_options_attribute_map_mapping_mode_enum", - "EventStreamCloudEventConnectionDeletedPreviousObject0OptionsConnectionSettings": ".event_stream_cloud_event_connection_deleted_previous_object_0_options_connection_settings", - "EventStreamCloudEventConnectionDeletedPreviousObject0OptionsConnectionSettingsPkceEnum": ".event_stream_cloud_event_connection_deleted_previous_object_0_options_connection_settings_pkce_enum", - "EventStreamCloudEventConnectionDeletedPreviousObject0OptionsDpopSigningAlgEnum": ".event_stream_cloud_event_connection_deleted_previous_object_0_options_dpop_signing_alg_enum", - "EventStreamCloudEventConnectionDeletedPreviousObject0OptionsFederatedConnectionsAccessTokens": ".event_stream_cloud_event_connection_deleted_previous_object_0_options_federated_connections_access_tokens", - "EventStreamCloudEventConnectionDeletedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum": ".event_stream_cloud_event_connection_deleted_previous_object_0_options_id_token_signed_response_algs_item_enum", - "EventStreamCloudEventConnectionDeletedPreviousObject0OptionsOidcMetadata": ".event_stream_cloud_event_connection_deleted_previous_object_0_options_oidc_metadata", - "EventStreamCloudEventConnectionDeletedPreviousObject0OptionsSchemaVersionEnum": ".event_stream_cloud_event_connection_deleted_previous_object_0_options_schema_version_enum", - "EventStreamCloudEventConnectionDeletedPreviousObject0OptionsSetUserRootAttributesEnum": ".event_stream_cloud_event_connection_deleted_previous_object_0_options_set_user_root_attributes_enum", - "EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTokenEndpointAuthMethodEnum": ".event_stream_cloud_event_connection_deleted_previous_object_0_options_token_endpoint_auth_method_enum", - "EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum": ".event_stream_cloud_event_connection_deleted_previous_object_0_options_token_endpoint_auth_signing_alg_enum", - "EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTokenEndpointJwtcaAudFormatEnum": ".event_stream_cloud_event_connection_deleted_previous_object_0_options_token_endpoint_jwtca_aud_format_enum", - "EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTypeEnum": ".event_stream_cloud_event_connection_deleted_previous_object_0_options_type_enum", - "EventStreamCloudEventConnectionDeletedPreviousObject0OptionsUpstreamParams": ".event_stream_cloud_event_connection_deleted_previous_object_0_options_upstream_params", - "EventStreamCloudEventConnectionDeletedPreviousObject0StrategyEnum": ".event_stream_cloud_event_connection_deleted_previous_object_0_strategy_enum", - "EventStreamCloudEventConnectionDeletedPreviousObject1": ".event_stream_cloud_event_connection_deleted_previous_object_1", - "EventStreamCloudEventConnectionDeletedPreviousObject1Authentication": ".event_stream_cloud_event_connection_deleted_previous_object_1_authentication", - "EventStreamCloudEventConnectionDeletedPreviousObject1ConnectedAccounts": ".event_stream_cloud_event_connection_deleted_previous_object_1_connected_accounts", - "EventStreamCloudEventConnectionDeletedPreviousObject1Metadata": ".event_stream_cloud_event_connection_deleted_previous_object_1_metadata", - "EventStreamCloudEventConnectionDeletedPreviousObject1Options": ".event_stream_cloud_event_connection_deleted_previous_object_1_options", - "EventStreamCloudEventConnectionDeletedPreviousObject1OptionsAttributeMap": ".event_stream_cloud_event_connection_deleted_previous_object_1_options_attribute_map", - "EventStreamCloudEventConnectionDeletedPreviousObject1OptionsAttributeMapAttributes": ".event_stream_cloud_event_connection_deleted_previous_object_1_options_attribute_map_attributes", - "EventStreamCloudEventConnectionDeletedPreviousObject1OptionsAttributeMapMappingModeEnum": ".event_stream_cloud_event_connection_deleted_previous_object_1_options_attribute_map_mapping_mode_enum", - "EventStreamCloudEventConnectionDeletedPreviousObject1OptionsConnectionSettings": ".event_stream_cloud_event_connection_deleted_previous_object_1_options_connection_settings", - "EventStreamCloudEventConnectionDeletedPreviousObject1OptionsConnectionSettingsPkceEnum": ".event_stream_cloud_event_connection_deleted_previous_object_1_options_connection_settings_pkce_enum", - "EventStreamCloudEventConnectionDeletedPreviousObject1OptionsDpopSigningAlgEnum": ".event_stream_cloud_event_connection_deleted_previous_object_1_options_dpop_signing_alg_enum", - "EventStreamCloudEventConnectionDeletedPreviousObject1OptionsFederatedConnectionsAccessTokens": ".event_stream_cloud_event_connection_deleted_previous_object_1_options_federated_connections_access_tokens", - "EventStreamCloudEventConnectionDeletedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum": ".event_stream_cloud_event_connection_deleted_previous_object_1_options_id_token_signed_response_algs_item_enum", - "EventStreamCloudEventConnectionDeletedPreviousObject1OptionsOidcMetadata": ".event_stream_cloud_event_connection_deleted_previous_object_1_options_oidc_metadata", - "EventStreamCloudEventConnectionDeletedPreviousObject1OptionsSchemaVersionEnum": ".event_stream_cloud_event_connection_deleted_previous_object_1_options_schema_version_enum", - "EventStreamCloudEventConnectionDeletedPreviousObject1OptionsSetUserRootAttributesEnum": ".event_stream_cloud_event_connection_deleted_previous_object_1_options_set_user_root_attributes_enum", - "EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTokenEndpointAuthMethodEnum": ".event_stream_cloud_event_connection_deleted_previous_object_1_options_token_endpoint_auth_method_enum", - "EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum": ".event_stream_cloud_event_connection_deleted_previous_object_1_options_token_endpoint_auth_signing_alg_enum", - "EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTokenEndpointJwtcaAudFormatEnum": ".event_stream_cloud_event_connection_deleted_previous_object_1_options_token_endpoint_jwtca_aud_format_enum", - "EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTypeEnum": ".event_stream_cloud_event_connection_deleted_previous_object_1_options_type_enum", - "EventStreamCloudEventConnectionDeletedPreviousObject1OptionsUpstreamParams": ".event_stream_cloud_event_connection_deleted_previous_object_1_options_upstream_params", - "EventStreamCloudEventConnectionDeletedPreviousObject1StrategyEnum": ".event_stream_cloud_event_connection_deleted_previous_object_1_strategy_enum", - "EventStreamCloudEventConnectionDeletedPreviousObject2": ".event_stream_cloud_event_connection_deleted_previous_object_2", - "EventStreamCloudEventConnectionDeletedPreviousObject2Authentication": ".event_stream_cloud_event_connection_deleted_previous_object_2_authentication", - "EventStreamCloudEventConnectionDeletedPreviousObject2ConnectedAccounts": ".event_stream_cloud_event_connection_deleted_previous_object_2_connected_accounts", - "EventStreamCloudEventConnectionDeletedPreviousObject2Metadata": ".event_stream_cloud_event_connection_deleted_previous_object_2_metadata", - "EventStreamCloudEventConnectionDeletedPreviousObject2Options": ".event_stream_cloud_event_connection_deleted_previous_object_2_options", - "EventStreamCloudEventConnectionDeletedPreviousObject2OptionsAssertionDecryptionSettings": ".event_stream_cloud_event_connection_deleted_previous_object_2_options_assertion_decryption_settings", - "EventStreamCloudEventConnectionDeletedPreviousObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum": ".event_stream_cloud_event_connection_deleted_previous_object_2_options_assertion_decryption_settings_algorithm_profile_enum", - "EventStreamCloudEventConnectionDeletedPreviousObject2OptionsDigestAlgorithmEnum": ".event_stream_cloud_event_connection_deleted_previous_object_2_options_digest_algorithm_enum", - "EventStreamCloudEventConnectionDeletedPreviousObject2OptionsFieldsMap": ".event_stream_cloud_event_connection_deleted_previous_object_2_options_fields_map", - "EventStreamCloudEventConnectionDeletedPreviousObject2OptionsIdpinitiated": ".event_stream_cloud_event_connection_deleted_previous_object_2_options_idpinitiated", - "EventStreamCloudEventConnectionDeletedPreviousObject2OptionsIdpinitiatedClientProtocolEnum": ".event_stream_cloud_event_connection_deleted_previous_object_2_options_idpinitiated_client_protocol_enum", - "EventStreamCloudEventConnectionDeletedPreviousObject2OptionsOidcMetadata": ".event_stream_cloud_event_connection_deleted_previous_object_2_options_oidc_metadata", - "EventStreamCloudEventConnectionDeletedPreviousObject2OptionsProtocolBindingEnum": ".event_stream_cloud_event_connection_deleted_previous_object_2_options_protocol_binding_enum", - "EventStreamCloudEventConnectionDeletedPreviousObject2OptionsSetUserRootAttributesEnum": ".event_stream_cloud_event_connection_deleted_previous_object_2_options_set_user_root_attributes_enum", - "EventStreamCloudEventConnectionDeletedPreviousObject2OptionsSignatureAlgorithmEnum": ".event_stream_cloud_event_connection_deleted_previous_object_2_options_signature_algorithm_enum", - "EventStreamCloudEventConnectionDeletedPreviousObject2OptionsSubject": ".event_stream_cloud_event_connection_deleted_previous_object_2_options_subject", - "EventStreamCloudEventConnectionDeletedPreviousObject2OptionsUpstreamParams": ".event_stream_cloud_event_connection_deleted_previous_object_2_options_upstream_params", - "EventStreamCloudEventConnectionDeletedPreviousObject2StrategyEnum": ".event_stream_cloud_event_connection_deleted_previous_object_2_strategy_enum", - "EventStreamCloudEventConnectionDeletedPreviousObject3": ".event_stream_cloud_event_connection_deleted_previous_object_3", - "EventStreamCloudEventConnectionDeletedPreviousObject3Authentication": ".event_stream_cloud_event_connection_deleted_previous_object_3_authentication", - "EventStreamCloudEventConnectionDeletedPreviousObject3ConnectedAccounts": ".event_stream_cloud_event_connection_deleted_previous_object_3_connected_accounts", - "EventStreamCloudEventConnectionDeletedPreviousObject3Metadata": ".event_stream_cloud_event_connection_deleted_previous_object_3_metadata", - "EventStreamCloudEventConnectionDeletedPreviousObject3Options": ".event_stream_cloud_event_connection_deleted_previous_object_3_options", - "EventStreamCloudEventConnectionDeletedPreviousObject3OptionsAssertionDecryptionSettings": ".event_stream_cloud_event_connection_deleted_previous_object_3_options_assertion_decryption_settings", - "EventStreamCloudEventConnectionDeletedPreviousObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum": ".event_stream_cloud_event_connection_deleted_previous_object_3_options_assertion_decryption_settings_algorithm_profile_enum", - "EventStreamCloudEventConnectionDeletedPreviousObject3OptionsDigestAlgorithmEnum": ".event_stream_cloud_event_connection_deleted_previous_object_3_options_digest_algorithm_enum", - "EventStreamCloudEventConnectionDeletedPreviousObject3OptionsIdpinitiated": ".event_stream_cloud_event_connection_deleted_previous_object_3_options_idpinitiated", - "EventStreamCloudEventConnectionDeletedPreviousObject3OptionsIdpinitiatedClientProtocolEnum": ".event_stream_cloud_event_connection_deleted_previous_object_3_options_idpinitiated_client_protocol_enum", - "EventStreamCloudEventConnectionDeletedPreviousObject3OptionsProtocolBindingEnum": ".event_stream_cloud_event_connection_deleted_previous_object_3_options_protocol_binding_enum", - "EventStreamCloudEventConnectionDeletedPreviousObject3OptionsSetUserRootAttributesEnum": ".event_stream_cloud_event_connection_deleted_previous_object_3_options_set_user_root_attributes_enum", - "EventStreamCloudEventConnectionDeletedPreviousObject3OptionsSignatureAlgorithmEnum": ".event_stream_cloud_event_connection_deleted_previous_object_3_options_signature_algorithm_enum", - "EventStreamCloudEventConnectionDeletedPreviousObject3OptionsSubject": ".event_stream_cloud_event_connection_deleted_previous_object_3_options_subject", - "EventStreamCloudEventConnectionDeletedPreviousObject3OptionsUpstreamParams": ".event_stream_cloud_event_connection_deleted_previous_object_3_options_upstream_params", - "EventStreamCloudEventConnectionDeletedPreviousObject3StrategyEnum": ".event_stream_cloud_event_connection_deleted_previous_object_3_strategy_enum", - "EventStreamCloudEventConnectionDeletedPreviousObject4": ".event_stream_cloud_event_connection_deleted_previous_object_4", - "EventStreamCloudEventConnectionDeletedPreviousObject4Authentication": ".event_stream_cloud_event_connection_deleted_previous_object_4_authentication", - "EventStreamCloudEventConnectionDeletedPreviousObject4ConnectedAccounts": ".event_stream_cloud_event_connection_deleted_previous_object_4_connected_accounts", - "EventStreamCloudEventConnectionDeletedPreviousObject4Metadata": ".event_stream_cloud_event_connection_deleted_previous_object_4_metadata", - "EventStreamCloudEventConnectionDeletedPreviousObject4Options": ".event_stream_cloud_event_connection_deleted_previous_object_4_options", - "EventStreamCloudEventConnectionDeletedPreviousObject4OptionsSetUserRootAttributesEnum": ".event_stream_cloud_event_connection_deleted_previous_object_4_options_set_user_root_attributes_enum", - "EventStreamCloudEventConnectionDeletedPreviousObject4OptionsShouldTrustEmailVerifiedConnectionEnum": ".event_stream_cloud_event_connection_deleted_previous_object_4_options_should_trust_email_verified_connection_enum", - "EventStreamCloudEventConnectionDeletedPreviousObject4OptionsUpstreamParams": ".event_stream_cloud_event_connection_deleted_previous_object_4_options_upstream_params", - "EventStreamCloudEventConnectionDeletedPreviousObject4StrategyEnum": ".event_stream_cloud_event_connection_deleted_previous_object_4_strategy_enum", - "EventStreamCloudEventConnectionDeletedPreviousObject5": ".event_stream_cloud_event_connection_deleted_previous_object_5", - "EventStreamCloudEventConnectionDeletedPreviousObject5Authentication": ".event_stream_cloud_event_connection_deleted_previous_object_5_authentication", - "EventStreamCloudEventConnectionDeletedPreviousObject5ConnectedAccounts": ".event_stream_cloud_event_connection_deleted_previous_object_5_connected_accounts", - "EventStreamCloudEventConnectionDeletedPreviousObject5Metadata": ".event_stream_cloud_event_connection_deleted_previous_object_5_metadata", - "EventStreamCloudEventConnectionDeletedPreviousObject5Options": ".event_stream_cloud_event_connection_deleted_previous_object_5_options", - "EventStreamCloudEventConnectionDeletedPreviousObject5OptionsSetUserRootAttributesEnum": ".event_stream_cloud_event_connection_deleted_previous_object_5_options_set_user_root_attributes_enum", - "EventStreamCloudEventConnectionDeletedPreviousObject5OptionsUpstreamParams": ".event_stream_cloud_event_connection_deleted_previous_object_5_options_upstream_params", - "EventStreamCloudEventConnectionDeletedPreviousObject5StrategyEnum": ".event_stream_cloud_event_connection_deleted_previous_object_5_strategy_enum", - "EventStreamCloudEventConnectionDeletedPreviousObject6": ".event_stream_cloud_event_connection_deleted_previous_object_6", - "EventStreamCloudEventConnectionDeletedPreviousObject6Authentication": ".event_stream_cloud_event_connection_deleted_previous_object_6_authentication", - "EventStreamCloudEventConnectionDeletedPreviousObject6ConnectedAccounts": ".event_stream_cloud_event_connection_deleted_previous_object_6_connected_accounts", - "EventStreamCloudEventConnectionDeletedPreviousObject6Metadata": ".event_stream_cloud_event_connection_deleted_previous_object_6_metadata", - "EventStreamCloudEventConnectionDeletedPreviousObject6Options": ".event_stream_cloud_event_connection_deleted_previous_object_6_options", - "EventStreamCloudEventConnectionDeletedPreviousObject6OptionsFederatedConnectionsAccessTokens": ".event_stream_cloud_event_connection_deleted_previous_object_6_options_federated_connections_access_tokens", - "EventStreamCloudEventConnectionDeletedPreviousObject6OptionsSetUserRootAttributesEnum": ".event_stream_cloud_event_connection_deleted_previous_object_6_options_set_user_root_attributes_enum", - "EventStreamCloudEventConnectionDeletedPreviousObject6OptionsUpstreamParams": ".event_stream_cloud_event_connection_deleted_previous_object_6_options_upstream_params", - "EventStreamCloudEventConnectionDeletedPreviousObject6StrategyEnum": ".event_stream_cloud_event_connection_deleted_previous_object_6_strategy_enum", - "EventStreamCloudEventConnectionDeletedPreviousObject7": ".event_stream_cloud_event_connection_deleted_previous_object_7", - "EventStreamCloudEventConnectionDeletedPreviousObject7Authentication": ".event_stream_cloud_event_connection_deleted_previous_object_7_authentication", - "EventStreamCloudEventConnectionDeletedPreviousObject7ConnectedAccounts": ".event_stream_cloud_event_connection_deleted_previous_object_7_connected_accounts", - "EventStreamCloudEventConnectionDeletedPreviousObject7Metadata": ".event_stream_cloud_event_connection_deleted_previous_object_7_metadata", - "EventStreamCloudEventConnectionDeletedPreviousObject7Options": ".event_stream_cloud_event_connection_deleted_previous_object_7_options", - "EventStreamCloudEventConnectionDeletedPreviousObject7OptionsFederatedConnectionsAccessTokens": ".event_stream_cloud_event_connection_deleted_previous_object_7_options_federated_connections_access_tokens", - "EventStreamCloudEventConnectionDeletedPreviousObject7OptionsIdentityApiEnum": ".event_stream_cloud_event_connection_deleted_previous_object_7_options_identity_api_enum", - "EventStreamCloudEventConnectionDeletedPreviousObject7OptionsSetUserRootAttributesEnum": ".event_stream_cloud_event_connection_deleted_previous_object_7_options_set_user_root_attributes_enum", - "EventStreamCloudEventConnectionDeletedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum": ".event_stream_cloud_event_connection_deleted_previous_object_7_options_should_trust_email_verified_connection_enum", - "EventStreamCloudEventConnectionDeletedPreviousObject7OptionsTenantDomainOne": ".event_stream_cloud_event_connection_deleted_previous_object_7_options_tenant_domain_one", - "EventStreamCloudEventConnectionDeletedPreviousObject7OptionsUpstreamParams": ".event_stream_cloud_event_connection_deleted_previous_object_7_options_upstream_params", - "EventStreamCloudEventConnectionDeletedPreviousObject7OptionsUseridAttributeEnum": ".event_stream_cloud_event_connection_deleted_previous_object_7_options_userid_attribute_enum", - "EventStreamCloudEventConnectionDeletedPreviousObject7OptionsWaadProtocolEnum": ".event_stream_cloud_event_connection_deleted_previous_object_7_options_waad_protocol_enum", - "EventStreamCloudEventConnectionDeletedPreviousObject7StrategyEnum": ".event_stream_cloud_event_connection_deleted_previous_object_7_strategy_enum", - "EventStreamCloudEventConnectionDeletedTypeEnum": ".event_stream_cloud_event_connection_deleted_type_enum", - "EventStreamCloudEventConnectionUpdated": ".event_stream_cloud_event_connection_updated", - "EventStreamCloudEventConnectionUpdatedCloudEvent": ".event_stream_cloud_event_connection_updated_cloud_event", - "EventStreamCloudEventConnectionUpdatedCloudEventTypeEnum": ".event_stream_cloud_event_connection_updated_cloud_event_type_enum", - "EventStreamCloudEventConnectionUpdatedData": ".event_stream_cloud_event_connection_updated_data", - "EventStreamCloudEventConnectionUpdatedObject": ".event_stream_cloud_event_connection_updated_object", - "EventStreamCloudEventConnectionUpdatedObject0": ".event_stream_cloud_event_connection_updated_object_0", - "EventStreamCloudEventConnectionUpdatedObject0Authentication": ".event_stream_cloud_event_connection_updated_object_0_authentication", - "EventStreamCloudEventConnectionUpdatedObject0ConnectedAccounts": ".event_stream_cloud_event_connection_updated_object_0_connected_accounts", - "EventStreamCloudEventConnectionUpdatedObject0Metadata": ".event_stream_cloud_event_connection_updated_object_0_metadata", - "EventStreamCloudEventConnectionUpdatedObject0Options": ".event_stream_cloud_event_connection_updated_object_0_options", - "EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMap": ".event_stream_cloud_event_connection_updated_object_0_options_attribute_map", - "EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMapAttributes": ".event_stream_cloud_event_connection_updated_object_0_options_attribute_map_attributes", - "EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMapMappingModeEnum": ".event_stream_cloud_event_connection_updated_object_0_options_attribute_map_mapping_mode_enum", - "EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettings": ".event_stream_cloud_event_connection_updated_object_0_options_connection_settings", - "EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettingsPkceEnum": ".event_stream_cloud_event_connection_updated_object_0_options_connection_settings_pkce_enum", - "EventStreamCloudEventConnectionUpdatedObject0OptionsDpopSigningAlgEnum": ".event_stream_cloud_event_connection_updated_object_0_options_dpop_signing_alg_enum", - "EventStreamCloudEventConnectionUpdatedObject0OptionsFederatedConnectionsAccessTokens": ".event_stream_cloud_event_connection_updated_object_0_options_federated_connections_access_tokens", - "EventStreamCloudEventConnectionUpdatedObject0OptionsIdTokenSignedResponseAlgsItemEnum": ".event_stream_cloud_event_connection_updated_object_0_options_id_token_signed_response_algs_item_enum", - "EventStreamCloudEventConnectionUpdatedObject0OptionsOidcMetadata": ".event_stream_cloud_event_connection_updated_object_0_options_oidc_metadata", - "EventStreamCloudEventConnectionUpdatedObject0OptionsSchemaVersionEnum": ".event_stream_cloud_event_connection_updated_object_0_options_schema_version_enum", - "EventStreamCloudEventConnectionUpdatedObject0OptionsSetUserRootAttributesEnum": ".event_stream_cloud_event_connection_updated_object_0_options_set_user_root_attributes_enum", - "EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthMethodEnum": ".event_stream_cloud_event_connection_updated_object_0_options_token_endpoint_auth_method_enum", - "EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthSigningAlgEnum": ".event_stream_cloud_event_connection_updated_object_0_options_token_endpoint_auth_signing_alg_enum", - "EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointJwtcaAudFormatEnum": ".event_stream_cloud_event_connection_updated_object_0_options_token_endpoint_jwtca_aud_format_enum", - "EventStreamCloudEventConnectionUpdatedObject0OptionsTypeEnum": ".event_stream_cloud_event_connection_updated_object_0_options_type_enum", - "EventStreamCloudEventConnectionUpdatedObject0OptionsUpstreamParams": ".event_stream_cloud_event_connection_updated_object_0_options_upstream_params", - "EventStreamCloudEventConnectionUpdatedObject0StrategyEnum": ".event_stream_cloud_event_connection_updated_object_0_strategy_enum", - "EventStreamCloudEventConnectionUpdatedObject1": ".event_stream_cloud_event_connection_updated_object_1", - "EventStreamCloudEventConnectionUpdatedObject1Authentication": ".event_stream_cloud_event_connection_updated_object_1_authentication", - "EventStreamCloudEventConnectionUpdatedObject1ConnectedAccounts": ".event_stream_cloud_event_connection_updated_object_1_connected_accounts", - "EventStreamCloudEventConnectionUpdatedObject1Metadata": ".event_stream_cloud_event_connection_updated_object_1_metadata", - "EventStreamCloudEventConnectionUpdatedObject1Options": ".event_stream_cloud_event_connection_updated_object_1_options", - "EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMap": ".event_stream_cloud_event_connection_updated_object_1_options_attribute_map", - "EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMapAttributes": ".event_stream_cloud_event_connection_updated_object_1_options_attribute_map_attributes", - "EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMapMappingModeEnum": ".event_stream_cloud_event_connection_updated_object_1_options_attribute_map_mapping_mode_enum", - "EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettings": ".event_stream_cloud_event_connection_updated_object_1_options_connection_settings", - "EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettingsPkceEnum": ".event_stream_cloud_event_connection_updated_object_1_options_connection_settings_pkce_enum", - "EventStreamCloudEventConnectionUpdatedObject1OptionsDpopSigningAlgEnum": ".event_stream_cloud_event_connection_updated_object_1_options_dpop_signing_alg_enum", - "EventStreamCloudEventConnectionUpdatedObject1OptionsFederatedConnectionsAccessTokens": ".event_stream_cloud_event_connection_updated_object_1_options_federated_connections_access_tokens", - "EventStreamCloudEventConnectionUpdatedObject1OptionsIdTokenSignedResponseAlgsItemEnum": ".event_stream_cloud_event_connection_updated_object_1_options_id_token_signed_response_algs_item_enum", - "EventStreamCloudEventConnectionUpdatedObject1OptionsOidcMetadata": ".event_stream_cloud_event_connection_updated_object_1_options_oidc_metadata", - "EventStreamCloudEventConnectionUpdatedObject1OptionsSchemaVersionEnum": ".event_stream_cloud_event_connection_updated_object_1_options_schema_version_enum", - "EventStreamCloudEventConnectionUpdatedObject1OptionsSetUserRootAttributesEnum": ".event_stream_cloud_event_connection_updated_object_1_options_set_user_root_attributes_enum", - "EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthMethodEnum": ".event_stream_cloud_event_connection_updated_object_1_options_token_endpoint_auth_method_enum", - "EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthSigningAlgEnum": ".event_stream_cloud_event_connection_updated_object_1_options_token_endpoint_auth_signing_alg_enum", - "EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointJwtcaAudFormatEnum": ".event_stream_cloud_event_connection_updated_object_1_options_token_endpoint_jwtca_aud_format_enum", - "EventStreamCloudEventConnectionUpdatedObject1OptionsTypeEnum": ".event_stream_cloud_event_connection_updated_object_1_options_type_enum", - "EventStreamCloudEventConnectionUpdatedObject1OptionsUpstreamParams": ".event_stream_cloud_event_connection_updated_object_1_options_upstream_params", - "EventStreamCloudEventConnectionUpdatedObject1StrategyEnum": ".event_stream_cloud_event_connection_updated_object_1_strategy_enum", - "EventStreamCloudEventConnectionUpdatedObject2": ".event_stream_cloud_event_connection_updated_object_2", - "EventStreamCloudEventConnectionUpdatedObject2Authentication": ".event_stream_cloud_event_connection_updated_object_2_authentication", - "EventStreamCloudEventConnectionUpdatedObject2ConnectedAccounts": ".event_stream_cloud_event_connection_updated_object_2_connected_accounts", - "EventStreamCloudEventConnectionUpdatedObject2Metadata": ".event_stream_cloud_event_connection_updated_object_2_metadata", - "EventStreamCloudEventConnectionUpdatedObject2Options": ".event_stream_cloud_event_connection_updated_object_2_options", - "EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettings": ".event_stream_cloud_event_connection_updated_object_2_options_assertion_decryption_settings", - "EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum": ".event_stream_cloud_event_connection_updated_object_2_options_assertion_decryption_settings_algorithm_profile_enum", - "EventStreamCloudEventConnectionUpdatedObject2OptionsDigestAlgorithmEnum": ".event_stream_cloud_event_connection_updated_object_2_options_digest_algorithm_enum", - "EventStreamCloudEventConnectionUpdatedObject2OptionsFieldsMap": ".event_stream_cloud_event_connection_updated_object_2_options_fields_map", - "EventStreamCloudEventConnectionUpdatedObject2OptionsIdpinitiated": ".event_stream_cloud_event_connection_updated_object_2_options_idpinitiated", - "EventStreamCloudEventConnectionUpdatedObject2OptionsIdpinitiatedClientProtocolEnum": ".event_stream_cloud_event_connection_updated_object_2_options_idpinitiated_client_protocol_enum", - "EventStreamCloudEventConnectionUpdatedObject2OptionsOidcMetadata": ".event_stream_cloud_event_connection_updated_object_2_options_oidc_metadata", - "EventStreamCloudEventConnectionUpdatedObject2OptionsProtocolBindingEnum": ".event_stream_cloud_event_connection_updated_object_2_options_protocol_binding_enum", - "EventStreamCloudEventConnectionUpdatedObject2OptionsSetUserRootAttributesEnum": ".event_stream_cloud_event_connection_updated_object_2_options_set_user_root_attributes_enum", - "EventStreamCloudEventConnectionUpdatedObject2OptionsSignatureAlgorithmEnum": ".event_stream_cloud_event_connection_updated_object_2_options_signature_algorithm_enum", - "EventStreamCloudEventConnectionUpdatedObject2OptionsSubject": ".event_stream_cloud_event_connection_updated_object_2_options_subject", - "EventStreamCloudEventConnectionUpdatedObject2OptionsUpstreamParams": ".event_stream_cloud_event_connection_updated_object_2_options_upstream_params", - "EventStreamCloudEventConnectionUpdatedObject2StrategyEnum": ".event_stream_cloud_event_connection_updated_object_2_strategy_enum", - "EventStreamCloudEventConnectionUpdatedObject3": ".event_stream_cloud_event_connection_updated_object_3", - "EventStreamCloudEventConnectionUpdatedObject3Authentication": ".event_stream_cloud_event_connection_updated_object_3_authentication", - "EventStreamCloudEventConnectionUpdatedObject3ConnectedAccounts": ".event_stream_cloud_event_connection_updated_object_3_connected_accounts", - "EventStreamCloudEventConnectionUpdatedObject3Metadata": ".event_stream_cloud_event_connection_updated_object_3_metadata", - "EventStreamCloudEventConnectionUpdatedObject3Options": ".event_stream_cloud_event_connection_updated_object_3_options", - "EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettings": ".event_stream_cloud_event_connection_updated_object_3_options_assertion_decryption_settings", - "EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum": ".event_stream_cloud_event_connection_updated_object_3_options_assertion_decryption_settings_algorithm_profile_enum", - "EventStreamCloudEventConnectionUpdatedObject3OptionsDigestAlgorithmEnum": ".event_stream_cloud_event_connection_updated_object_3_options_digest_algorithm_enum", - "EventStreamCloudEventConnectionUpdatedObject3OptionsIdpinitiated": ".event_stream_cloud_event_connection_updated_object_3_options_idpinitiated", - "EventStreamCloudEventConnectionUpdatedObject3OptionsIdpinitiatedClientProtocolEnum": ".event_stream_cloud_event_connection_updated_object_3_options_idpinitiated_client_protocol_enum", - "EventStreamCloudEventConnectionUpdatedObject3OptionsProtocolBindingEnum": ".event_stream_cloud_event_connection_updated_object_3_options_protocol_binding_enum", - "EventStreamCloudEventConnectionUpdatedObject3OptionsSetUserRootAttributesEnum": ".event_stream_cloud_event_connection_updated_object_3_options_set_user_root_attributes_enum", - "EventStreamCloudEventConnectionUpdatedObject3OptionsSignatureAlgorithmEnum": ".event_stream_cloud_event_connection_updated_object_3_options_signature_algorithm_enum", - "EventStreamCloudEventConnectionUpdatedObject3OptionsSubject": ".event_stream_cloud_event_connection_updated_object_3_options_subject", - "EventStreamCloudEventConnectionUpdatedObject3OptionsUpstreamParams": ".event_stream_cloud_event_connection_updated_object_3_options_upstream_params", - "EventStreamCloudEventConnectionUpdatedObject3StrategyEnum": ".event_stream_cloud_event_connection_updated_object_3_strategy_enum", - "EventStreamCloudEventConnectionUpdatedObject4": ".event_stream_cloud_event_connection_updated_object_4", - "EventStreamCloudEventConnectionUpdatedObject4Authentication": ".event_stream_cloud_event_connection_updated_object_4_authentication", - "EventStreamCloudEventConnectionUpdatedObject4ConnectedAccounts": ".event_stream_cloud_event_connection_updated_object_4_connected_accounts", - "EventStreamCloudEventConnectionUpdatedObject4Metadata": ".event_stream_cloud_event_connection_updated_object_4_metadata", - "EventStreamCloudEventConnectionUpdatedObject4Options": ".event_stream_cloud_event_connection_updated_object_4_options", - "EventStreamCloudEventConnectionUpdatedObject4OptionsSetUserRootAttributesEnum": ".event_stream_cloud_event_connection_updated_object_4_options_set_user_root_attributes_enum", - "EventStreamCloudEventConnectionUpdatedObject4OptionsShouldTrustEmailVerifiedConnectionEnum": ".event_stream_cloud_event_connection_updated_object_4_options_should_trust_email_verified_connection_enum", - "EventStreamCloudEventConnectionUpdatedObject4OptionsUpstreamParams": ".event_stream_cloud_event_connection_updated_object_4_options_upstream_params", - "EventStreamCloudEventConnectionUpdatedObject4StrategyEnum": ".event_stream_cloud_event_connection_updated_object_4_strategy_enum", - "EventStreamCloudEventConnectionUpdatedObject5": ".event_stream_cloud_event_connection_updated_object_5", - "EventStreamCloudEventConnectionUpdatedObject5Authentication": ".event_stream_cloud_event_connection_updated_object_5_authentication", - "EventStreamCloudEventConnectionUpdatedObject5ConnectedAccounts": ".event_stream_cloud_event_connection_updated_object_5_connected_accounts", - "EventStreamCloudEventConnectionUpdatedObject5Metadata": ".event_stream_cloud_event_connection_updated_object_5_metadata", - "EventStreamCloudEventConnectionUpdatedObject5Options": ".event_stream_cloud_event_connection_updated_object_5_options", - "EventStreamCloudEventConnectionUpdatedObject5OptionsSetUserRootAttributesEnum": ".event_stream_cloud_event_connection_updated_object_5_options_set_user_root_attributes_enum", - "EventStreamCloudEventConnectionUpdatedObject5OptionsUpstreamParams": ".event_stream_cloud_event_connection_updated_object_5_options_upstream_params", - "EventStreamCloudEventConnectionUpdatedObject5StrategyEnum": ".event_stream_cloud_event_connection_updated_object_5_strategy_enum", - "EventStreamCloudEventConnectionUpdatedObject6": ".event_stream_cloud_event_connection_updated_object_6", - "EventStreamCloudEventConnectionUpdatedObject6Authentication": ".event_stream_cloud_event_connection_updated_object_6_authentication", - "EventStreamCloudEventConnectionUpdatedObject6ConnectedAccounts": ".event_stream_cloud_event_connection_updated_object_6_connected_accounts", - "EventStreamCloudEventConnectionUpdatedObject6Metadata": ".event_stream_cloud_event_connection_updated_object_6_metadata", - "EventStreamCloudEventConnectionUpdatedObject6Options": ".event_stream_cloud_event_connection_updated_object_6_options", - "EventStreamCloudEventConnectionUpdatedObject6OptionsFederatedConnectionsAccessTokens": ".event_stream_cloud_event_connection_updated_object_6_options_federated_connections_access_tokens", - "EventStreamCloudEventConnectionUpdatedObject6OptionsSetUserRootAttributesEnum": ".event_stream_cloud_event_connection_updated_object_6_options_set_user_root_attributes_enum", - "EventStreamCloudEventConnectionUpdatedObject6OptionsUpstreamParams": ".event_stream_cloud_event_connection_updated_object_6_options_upstream_params", - "EventStreamCloudEventConnectionUpdatedObject6StrategyEnum": ".event_stream_cloud_event_connection_updated_object_6_strategy_enum", - "EventStreamCloudEventConnectionUpdatedObject7": ".event_stream_cloud_event_connection_updated_object_7", - "EventStreamCloudEventConnectionUpdatedObject7Authentication": ".event_stream_cloud_event_connection_updated_object_7_authentication", - "EventStreamCloudEventConnectionUpdatedObject7ConnectedAccounts": ".event_stream_cloud_event_connection_updated_object_7_connected_accounts", - "EventStreamCloudEventConnectionUpdatedObject7Metadata": ".event_stream_cloud_event_connection_updated_object_7_metadata", - "EventStreamCloudEventConnectionUpdatedObject7Options": ".event_stream_cloud_event_connection_updated_object_7_options", - "EventStreamCloudEventConnectionUpdatedObject7OptionsFederatedConnectionsAccessTokens": ".event_stream_cloud_event_connection_updated_object_7_options_federated_connections_access_tokens", - "EventStreamCloudEventConnectionUpdatedObject7OptionsIdentityApiEnum": ".event_stream_cloud_event_connection_updated_object_7_options_identity_api_enum", - "EventStreamCloudEventConnectionUpdatedObject7OptionsSetUserRootAttributesEnum": ".event_stream_cloud_event_connection_updated_object_7_options_set_user_root_attributes_enum", - "EventStreamCloudEventConnectionUpdatedObject7OptionsShouldTrustEmailVerifiedConnectionEnum": ".event_stream_cloud_event_connection_updated_object_7_options_should_trust_email_verified_connection_enum", - "EventStreamCloudEventConnectionUpdatedObject7OptionsTenantDomainOne": ".event_stream_cloud_event_connection_updated_object_7_options_tenant_domain_one", - "EventStreamCloudEventConnectionUpdatedObject7OptionsUpstreamParams": ".event_stream_cloud_event_connection_updated_object_7_options_upstream_params", - "EventStreamCloudEventConnectionUpdatedObject7OptionsUseridAttributeEnum": ".event_stream_cloud_event_connection_updated_object_7_options_userid_attribute_enum", - "EventStreamCloudEventConnectionUpdatedObject7OptionsWaadProtocolEnum": ".event_stream_cloud_event_connection_updated_object_7_options_waad_protocol_enum", - "EventStreamCloudEventConnectionUpdatedObject7StrategyEnum": ".event_stream_cloud_event_connection_updated_object_7_strategy_enum", - "EventStreamCloudEventConnectionUpdatedPreviousObject": ".event_stream_cloud_event_connection_updated_previous_object", - "EventStreamCloudEventConnectionUpdatedPreviousObject0": ".event_stream_cloud_event_connection_updated_previous_object_0", - "EventStreamCloudEventConnectionUpdatedPreviousObject0Authentication": ".event_stream_cloud_event_connection_updated_previous_object_0_authentication", - "EventStreamCloudEventConnectionUpdatedPreviousObject0ConnectedAccounts": ".event_stream_cloud_event_connection_updated_previous_object_0_connected_accounts", - "EventStreamCloudEventConnectionUpdatedPreviousObject0Metadata": ".event_stream_cloud_event_connection_updated_previous_object_0_metadata", - "EventStreamCloudEventConnectionUpdatedPreviousObject0Options": ".event_stream_cloud_event_connection_updated_previous_object_0_options", - "EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsAttributeMap": ".event_stream_cloud_event_connection_updated_previous_object_0_options_attribute_map", - "EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsAttributeMapAttributes": ".event_stream_cloud_event_connection_updated_previous_object_0_options_attribute_map_attributes", - "EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsAttributeMapMappingModeEnum": ".event_stream_cloud_event_connection_updated_previous_object_0_options_attribute_map_mapping_mode_enum", - "EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsConnectionSettings": ".event_stream_cloud_event_connection_updated_previous_object_0_options_connection_settings", - "EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsConnectionSettingsPkceEnum": ".event_stream_cloud_event_connection_updated_previous_object_0_options_connection_settings_pkce_enum", - "EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsDpopSigningAlgEnum": ".event_stream_cloud_event_connection_updated_previous_object_0_options_dpop_signing_alg_enum", - "EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsFederatedConnectionsAccessTokens": ".event_stream_cloud_event_connection_updated_previous_object_0_options_federated_connections_access_tokens", - "EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum": ".event_stream_cloud_event_connection_updated_previous_object_0_options_id_token_signed_response_algs_item_enum", - "EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsOidcMetadata": ".event_stream_cloud_event_connection_updated_previous_object_0_options_oidc_metadata", - "EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsSchemaVersionEnum": ".event_stream_cloud_event_connection_updated_previous_object_0_options_schema_version_enum", - "EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsSetUserRootAttributesEnum": ".event_stream_cloud_event_connection_updated_previous_object_0_options_set_user_root_attributes_enum", - "EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTokenEndpointAuthMethodEnum": ".event_stream_cloud_event_connection_updated_previous_object_0_options_token_endpoint_auth_method_enum", - "EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum": ".event_stream_cloud_event_connection_updated_previous_object_0_options_token_endpoint_auth_signing_alg_enum", - "EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTokenEndpointJwtcaAudFormatEnum": ".event_stream_cloud_event_connection_updated_previous_object_0_options_token_endpoint_jwtca_aud_format_enum", - "EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTypeEnum": ".event_stream_cloud_event_connection_updated_previous_object_0_options_type_enum", - "EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsUpstreamParams": ".event_stream_cloud_event_connection_updated_previous_object_0_options_upstream_params", - "EventStreamCloudEventConnectionUpdatedPreviousObject0StrategyEnum": ".event_stream_cloud_event_connection_updated_previous_object_0_strategy_enum", - "EventStreamCloudEventConnectionUpdatedPreviousObject1": ".event_stream_cloud_event_connection_updated_previous_object_1", - "EventStreamCloudEventConnectionUpdatedPreviousObject1Authentication": ".event_stream_cloud_event_connection_updated_previous_object_1_authentication", - "EventStreamCloudEventConnectionUpdatedPreviousObject1ConnectedAccounts": ".event_stream_cloud_event_connection_updated_previous_object_1_connected_accounts", - "EventStreamCloudEventConnectionUpdatedPreviousObject1Metadata": ".event_stream_cloud_event_connection_updated_previous_object_1_metadata", - "EventStreamCloudEventConnectionUpdatedPreviousObject1Options": ".event_stream_cloud_event_connection_updated_previous_object_1_options", - "EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsAttributeMap": ".event_stream_cloud_event_connection_updated_previous_object_1_options_attribute_map", - "EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsAttributeMapAttributes": ".event_stream_cloud_event_connection_updated_previous_object_1_options_attribute_map_attributes", - "EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsAttributeMapMappingModeEnum": ".event_stream_cloud_event_connection_updated_previous_object_1_options_attribute_map_mapping_mode_enum", - "EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsConnectionSettings": ".event_stream_cloud_event_connection_updated_previous_object_1_options_connection_settings", - "EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsConnectionSettingsPkceEnum": ".event_stream_cloud_event_connection_updated_previous_object_1_options_connection_settings_pkce_enum", - "EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsDpopSigningAlgEnum": ".event_stream_cloud_event_connection_updated_previous_object_1_options_dpop_signing_alg_enum", - "EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsFederatedConnectionsAccessTokens": ".event_stream_cloud_event_connection_updated_previous_object_1_options_federated_connections_access_tokens", - "EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum": ".event_stream_cloud_event_connection_updated_previous_object_1_options_id_token_signed_response_algs_item_enum", - "EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsOidcMetadata": ".event_stream_cloud_event_connection_updated_previous_object_1_options_oidc_metadata", - "EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsSchemaVersionEnum": ".event_stream_cloud_event_connection_updated_previous_object_1_options_schema_version_enum", - "EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsSetUserRootAttributesEnum": ".event_stream_cloud_event_connection_updated_previous_object_1_options_set_user_root_attributes_enum", - "EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTokenEndpointAuthMethodEnum": ".event_stream_cloud_event_connection_updated_previous_object_1_options_token_endpoint_auth_method_enum", - "EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum": ".event_stream_cloud_event_connection_updated_previous_object_1_options_token_endpoint_auth_signing_alg_enum", - "EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTokenEndpointJwtcaAudFormatEnum": ".event_stream_cloud_event_connection_updated_previous_object_1_options_token_endpoint_jwtca_aud_format_enum", - "EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTypeEnum": ".event_stream_cloud_event_connection_updated_previous_object_1_options_type_enum", - "EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsUpstreamParams": ".event_stream_cloud_event_connection_updated_previous_object_1_options_upstream_params", - "EventStreamCloudEventConnectionUpdatedPreviousObject1StrategyEnum": ".event_stream_cloud_event_connection_updated_previous_object_1_strategy_enum", - "EventStreamCloudEventConnectionUpdatedPreviousObject2": ".event_stream_cloud_event_connection_updated_previous_object_2", - "EventStreamCloudEventConnectionUpdatedPreviousObject2Authentication": ".event_stream_cloud_event_connection_updated_previous_object_2_authentication", - "EventStreamCloudEventConnectionUpdatedPreviousObject2ConnectedAccounts": ".event_stream_cloud_event_connection_updated_previous_object_2_connected_accounts", - "EventStreamCloudEventConnectionUpdatedPreviousObject2Metadata": ".event_stream_cloud_event_connection_updated_previous_object_2_metadata", - "EventStreamCloudEventConnectionUpdatedPreviousObject2Options": ".event_stream_cloud_event_connection_updated_previous_object_2_options", - "EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsAssertionDecryptionSettings": ".event_stream_cloud_event_connection_updated_previous_object_2_options_assertion_decryption_settings", - "EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum": ".event_stream_cloud_event_connection_updated_previous_object_2_options_assertion_decryption_settings_algorithm_profile_enum", - "EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsDigestAlgorithmEnum": ".event_stream_cloud_event_connection_updated_previous_object_2_options_digest_algorithm_enum", - "EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsFieldsMap": ".event_stream_cloud_event_connection_updated_previous_object_2_options_fields_map", - "EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsIdpinitiated": ".event_stream_cloud_event_connection_updated_previous_object_2_options_idpinitiated", - "EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsIdpinitiatedClientProtocolEnum": ".event_stream_cloud_event_connection_updated_previous_object_2_options_idpinitiated_client_protocol_enum", - "EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsOidcMetadata": ".event_stream_cloud_event_connection_updated_previous_object_2_options_oidc_metadata", - "EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsProtocolBindingEnum": ".event_stream_cloud_event_connection_updated_previous_object_2_options_protocol_binding_enum", - "EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsSetUserRootAttributesEnum": ".event_stream_cloud_event_connection_updated_previous_object_2_options_set_user_root_attributes_enum", - "EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsSignatureAlgorithmEnum": ".event_stream_cloud_event_connection_updated_previous_object_2_options_signature_algorithm_enum", - "EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsSubject": ".event_stream_cloud_event_connection_updated_previous_object_2_options_subject", - "EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsUpstreamParams": ".event_stream_cloud_event_connection_updated_previous_object_2_options_upstream_params", - "EventStreamCloudEventConnectionUpdatedPreviousObject2StrategyEnum": ".event_stream_cloud_event_connection_updated_previous_object_2_strategy_enum", - "EventStreamCloudEventConnectionUpdatedPreviousObject3": ".event_stream_cloud_event_connection_updated_previous_object_3", - "EventStreamCloudEventConnectionUpdatedPreviousObject3Authentication": ".event_stream_cloud_event_connection_updated_previous_object_3_authentication", - "EventStreamCloudEventConnectionUpdatedPreviousObject3ConnectedAccounts": ".event_stream_cloud_event_connection_updated_previous_object_3_connected_accounts", - "EventStreamCloudEventConnectionUpdatedPreviousObject3Metadata": ".event_stream_cloud_event_connection_updated_previous_object_3_metadata", - "EventStreamCloudEventConnectionUpdatedPreviousObject3Options": ".event_stream_cloud_event_connection_updated_previous_object_3_options", - "EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsAssertionDecryptionSettings": ".event_stream_cloud_event_connection_updated_previous_object_3_options_assertion_decryption_settings", - "EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum": ".event_stream_cloud_event_connection_updated_previous_object_3_options_assertion_decryption_settings_algorithm_profile_enum", - "EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsDigestAlgorithmEnum": ".event_stream_cloud_event_connection_updated_previous_object_3_options_digest_algorithm_enum", - "EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsIdpinitiated": ".event_stream_cloud_event_connection_updated_previous_object_3_options_idpinitiated", - "EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsIdpinitiatedClientProtocolEnum": ".event_stream_cloud_event_connection_updated_previous_object_3_options_idpinitiated_client_protocol_enum", - "EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsProtocolBindingEnum": ".event_stream_cloud_event_connection_updated_previous_object_3_options_protocol_binding_enum", - "EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsSetUserRootAttributesEnum": ".event_stream_cloud_event_connection_updated_previous_object_3_options_set_user_root_attributes_enum", - "EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsSignatureAlgorithmEnum": ".event_stream_cloud_event_connection_updated_previous_object_3_options_signature_algorithm_enum", - "EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsSubject": ".event_stream_cloud_event_connection_updated_previous_object_3_options_subject", - "EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsUpstreamParams": ".event_stream_cloud_event_connection_updated_previous_object_3_options_upstream_params", - "EventStreamCloudEventConnectionUpdatedPreviousObject3StrategyEnum": ".event_stream_cloud_event_connection_updated_previous_object_3_strategy_enum", - "EventStreamCloudEventConnectionUpdatedPreviousObject4": ".event_stream_cloud_event_connection_updated_previous_object_4", - "EventStreamCloudEventConnectionUpdatedPreviousObject4Authentication": ".event_stream_cloud_event_connection_updated_previous_object_4_authentication", - "EventStreamCloudEventConnectionUpdatedPreviousObject4ConnectedAccounts": ".event_stream_cloud_event_connection_updated_previous_object_4_connected_accounts", - "EventStreamCloudEventConnectionUpdatedPreviousObject4Metadata": ".event_stream_cloud_event_connection_updated_previous_object_4_metadata", - "EventStreamCloudEventConnectionUpdatedPreviousObject4Options": ".event_stream_cloud_event_connection_updated_previous_object_4_options", - "EventStreamCloudEventConnectionUpdatedPreviousObject4OptionsSetUserRootAttributesEnum": ".event_stream_cloud_event_connection_updated_previous_object_4_options_set_user_root_attributes_enum", - "EventStreamCloudEventConnectionUpdatedPreviousObject4OptionsShouldTrustEmailVerifiedConnectionEnum": ".event_stream_cloud_event_connection_updated_previous_object_4_options_should_trust_email_verified_connection_enum", - "EventStreamCloudEventConnectionUpdatedPreviousObject4OptionsUpstreamParams": ".event_stream_cloud_event_connection_updated_previous_object_4_options_upstream_params", - "EventStreamCloudEventConnectionUpdatedPreviousObject4StrategyEnum": ".event_stream_cloud_event_connection_updated_previous_object_4_strategy_enum", - "EventStreamCloudEventConnectionUpdatedPreviousObject5": ".event_stream_cloud_event_connection_updated_previous_object_5", - "EventStreamCloudEventConnectionUpdatedPreviousObject5Authentication": ".event_stream_cloud_event_connection_updated_previous_object_5_authentication", - "EventStreamCloudEventConnectionUpdatedPreviousObject5ConnectedAccounts": ".event_stream_cloud_event_connection_updated_previous_object_5_connected_accounts", - "EventStreamCloudEventConnectionUpdatedPreviousObject5Metadata": ".event_stream_cloud_event_connection_updated_previous_object_5_metadata", - "EventStreamCloudEventConnectionUpdatedPreviousObject5Options": ".event_stream_cloud_event_connection_updated_previous_object_5_options", - "EventStreamCloudEventConnectionUpdatedPreviousObject5OptionsSetUserRootAttributesEnum": ".event_stream_cloud_event_connection_updated_previous_object_5_options_set_user_root_attributes_enum", - "EventStreamCloudEventConnectionUpdatedPreviousObject5OptionsUpstreamParams": ".event_stream_cloud_event_connection_updated_previous_object_5_options_upstream_params", - "EventStreamCloudEventConnectionUpdatedPreviousObject5StrategyEnum": ".event_stream_cloud_event_connection_updated_previous_object_5_strategy_enum", - "EventStreamCloudEventConnectionUpdatedPreviousObject6": ".event_stream_cloud_event_connection_updated_previous_object_6", - "EventStreamCloudEventConnectionUpdatedPreviousObject6Authentication": ".event_stream_cloud_event_connection_updated_previous_object_6_authentication", - "EventStreamCloudEventConnectionUpdatedPreviousObject6ConnectedAccounts": ".event_stream_cloud_event_connection_updated_previous_object_6_connected_accounts", - "EventStreamCloudEventConnectionUpdatedPreviousObject6Metadata": ".event_stream_cloud_event_connection_updated_previous_object_6_metadata", - "EventStreamCloudEventConnectionUpdatedPreviousObject6Options": ".event_stream_cloud_event_connection_updated_previous_object_6_options", - "EventStreamCloudEventConnectionUpdatedPreviousObject6OptionsFederatedConnectionsAccessTokens": ".event_stream_cloud_event_connection_updated_previous_object_6_options_federated_connections_access_tokens", - "EventStreamCloudEventConnectionUpdatedPreviousObject6OptionsSetUserRootAttributesEnum": ".event_stream_cloud_event_connection_updated_previous_object_6_options_set_user_root_attributes_enum", - "EventStreamCloudEventConnectionUpdatedPreviousObject6OptionsUpstreamParams": ".event_stream_cloud_event_connection_updated_previous_object_6_options_upstream_params", - "EventStreamCloudEventConnectionUpdatedPreviousObject6StrategyEnum": ".event_stream_cloud_event_connection_updated_previous_object_6_strategy_enum", - "EventStreamCloudEventConnectionUpdatedPreviousObject7": ".event_stream_cloud_event_connection_updated_previous_object_7", - "EventStreamCloudEventConnectionUpdatedPreviousObject7Authentication": ".event_stream_cloud_event_connection_updated_previous_object_7_authentication", - "EventStreamCloudEventConnectionUpdatedPreviousObject7ConnectedAccounts": ".event_stream_cloud_event_connection_updated_previous_object_7_connected_accounts", - "EventStreamCloudEventConnectionUpdatedPreviousObject7Metadata": ".event_stream_cloud_event_connection_updated_previous_object_7_metadata", - "EventStreamCloudEventConnectionUpdatedPreviousObject7Options": ".event_stream_cloud_event_connection_updated_previous_object_7_options", - "EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsFederatedConnectionsAccessTokens": ".event_stream_cloud_event_connection_updated_previous_object_7_options_federated_connections_access_tokens", - "EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsIdentityApiEnum": ".event_stream_cloud_event_connection_updated_previous_object_7_options_identity_api_enum", - "EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsSetUserRootAttributesEnum": ".event_stream_cloud_event_connection_updated_previous_object_7_options_set_user_root_attributes_enum", - "EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum": ".event_stream_cloud_event_connection_updated_previous_object_7_options_should_trust_email_verified_connection_enum", - "EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsTenantDomainOne": ".event_stream_cloud_event_connection_updated_previous_object_7_options_tenant_domain_one", - "EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsUpstreamParams": ".event_stream_cloud_event_connection_updated_previous_object_7_options_upstream_params", - "EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsUseridAttributeEnum": ".event_stream_cloud_event_connection_updated_previous_object_7_options_userid_attribute_enum", - "EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsWaadProtocolEnum": ".event_stream_cloud_event_connection_updated_previous_object_7_options_waad_protocol_enum", - "EventStreamCloudEventConnectionUpdatedPreviousObject7StrategyEnum": ".event_stream_cloud_event_connection_updated_previous_object_7_strategy_enum", - "EventStreamCloudEventConnectionUpdatedTypeEnum": ".event_stream_cloud_event_connection_updated_type_enum", - "EventStreamCloudEventContext": ".event_stream_cloud_event_context", - "EventStreamCloudEventContextClient": ".event_stream_cloud_event_context_client", - "EventStreamCloudEventContextClientMetadata": ".event_stream_cloud_event_context_client_metadata", - "EventStreamCloudEventContextConnection": ".event_stream_cloud_event_context_connection", - "EventStreamCloudEventContextRequest": ".event_stream_cloud_event_context_request", - "EventStreamCloudEventContextRequestGeo": ".event_stream_cloud_event_context_request_geo", - "EventStreamCloudEventContextTenant": ".event_stream_cloud_event_context_tenant", - "EventStreamCloudEventContextTransaction": ".event_stream_cloud_event_context_transaction", - "EventStreamCloudEventContextTransactionProtocolEnum": ".event_stream_cloud_event_context_transaction_protocol_enum", - "EventStreamCloudEventContextTransactionResponseModeEnum": ".event_stream_cloud_event_context_transaction_response_mode_enum", - "EventStreamCloudEventContextTransactionResponseTypeItemEnum": ".event_stream_cloud_event_context_transaction_response_type_item_enum", - "EventStreamCloudEventData": ".event_stream_cloud_event_data", - "EventStreamCloudEventErrorCodeEnum": ".event_stream_cloud_event_error_code_enum", - "EventStreamCloudEventErrorDetail": ".event_stream_cloud_event_error_detail", - "EventStreamCloudEventErrorMessage": ".event_stream_cloud_event_error_message", - "EventStreamCloudEventErrorMessageTypeEnum": ".event_stream_cloud_event_error_message_type_enum", - "EventStreamCloudEventGroupCreated": ".event_stream_cloud_event_group_created", - "EventStreamCloudEventGroupCreatedCloudEvent": ".event_stream_cloud_event_group_created_cloud_event", - "EventStreamCloudEventGroupCreatedCloudEventTypeEnum": ".event_stream_cloud_event_group_created_cloud_event_type_enum", - "EventStreamCloudEventGroupCreatedData": ".event_stream_cloud_event_group_created_data", - "EventStreamCloudEventGroupCreatedObject": ".event_stream_cloud_event_group_created_object", - "EventStreamCloudEventGroupCreatedObject0": ".event_stream_cloud_event_group_created_object_0", - "EventStreamCloudEventGroupCreatedObject0TypeEnum": ".event_stream_cloud_event_group_created_object_0_type_enum", - "EventStreamCloudEventGroupCreatedObject1": ".event_stream_cloud_event_group_created_object_1", - "EventStreamCloudEventGroupCreatedObject1TypeEnum": ".event_stream_cloud_event_group_created_object_1_type_enum", - "EventStreamCloudEventGroupCreatedObject2": ".event_stream_cloud_event_group_created_object_2", - "EventStreamCloudEventGroupCreatedObject2TypeEnum": ".event_stream_cloud_event_group_created_object_2_type_enum", - "EventStreamCloudEventGroupCreatedPreviousObject": ".event_stream_cloud_event_group_created_previous_object", - "EventStreamCloudEventGroupCreatedPreviousObject0": ".event_stream_cloud_event_group_created_previous_object_0", - "EventStreamCloudEventGroupCreatedPreviousObject0TypeEnum": ".event_stream_cloud_event_group_created_previous_object_0_type_enum", - "EventStreamCloudEventGroupCreatedPreviousObject1": ".event_stream_cloud_event_group_created_previous_object_1", - "EventStreamCloudEventGroupCreatedPreviousObject1TypeEnum": ".event_stream_cloud_event_group_created_previous_object_1_type_enum", - "EventStreamCloudEventGroupCreatedPreviousObject2": ".event_stream_cloud_event_group_created_previous_object_2", - "EventStreamCloudEventGroupCreatedPreviousObject2TypeEnum": ".event_stream_cloud_event_group_created_previous_object_2_type_enum", - "EventStreamCloudEventGroupCreatedTypeEnum": ".event_stream_cloud_event_group_created_type_enum", - "EventStreamCloudEventGroupDeleted": ".event_stream_cloud_event_group_deleted", - "EventStreamCloudEventGroupDeletedCloudEvent": ".event_stream_cloud_event_group_deleted_cloud_event", - "EventStreamCloudEventGroupDeletedCloudEventTypeEnum": ".event_stream_cloud_event_group_deleted_cloud_event_type_enum", - "EventStreamCloudEventGroupDeletedData": ".event_stream_cloud_event_group_deleted_data", - "EventStreamCloudEventGroupDeletedObject": ".event_stream_cloud_event_group_deleted_object", - "EventStreamCloudEventGroupDeletedObject0": ".event_stream_cloud_event_group_deleted_object_0", - "EventStreamCloudEventGroupDeletedObject0TypeEnum": ".event_stream_cloud_event_group_deleted_object_0_type_enum", - "EventStreamCloudEventGroupDeletedObject1": ".event_stream_cloud_event_group_deleted_object_1", - "EventStreamCloudEventGroupDeletedObject1TypeEnum": ".event_stream_cloud_event_group_deleted_object_1_type_enum", - "EventStreamCloudEventGroupDeletedObject2": ".event_stream_cloud_event_group_deleted_object_2", - "EventStreamCloudEventGroupDeletedObject2TypeEnum": ".event_stream_cloud_event_group_deleted_object_2_type_enum", - "EventStreamCloudEventGroupDeletedPreviousObject": ".event_stream_cloud_event_group_deleted_previous_object", - "EventStreamCloudEventGroupDeletedPreviousObject0": ".event_stream_cloud_event_group_deleted_previous_object_0", - "EventStreamCloudEventGroupDeletedPreviousObject0TypeEnum": ".event_stream_cloud_event_group_deleted_previous_object_0_type_enum", - "EventStreamCloudEventGroupDeletedPreviousObject1": ".event_stream_cloud_event_group_deleted_previous_object_1", - "EventStreamCloudEventGroupDeletedPreviousObject1TypeEnum": ".event_stream_cloud_event_group_deleted_previous_object_1_type_enum", - "EventStreamCloudEventGroupDeletedPreviousObject2": ".event_stream_cloud_event_group_deleted_previous_object_2", - "EventStreamCloudEventGroupDeletedPreviousObject2TypeEnum": ".event_stream_cloud_event_group_deleted_previous_object_2_type_enum", - "EventStreamCloudEventGroupDeletedTypeEnum": ".event_stream_cloud_event_group_deleted_type_enum", - "EventStreamCloudEventGroupMemberAdded": ".event_stream_cloud_event_group_member_added", - "EventStreamCloudEventGroupMemberAddedCloudEvent": ".event_stream_cloud_event_group_member_added_cloud_event", - "EventStreamCloudEventGroupMemberAddedCloudEventTypeEnum": ".event_stream_cloud_event_group_member_added_cloud_event_type_enum", - "EventStreamCloudEventGroupMemberAddedData": ".event_stream_cloud_event_group_member_added_data", - "EventStreamCloudEventGroupMemberAddedObject": ".event_stream_cloud_event_group_member_added_object", - "EventStreamCloudEventGroupMemberAddedObjectGroup": ".event_stream_cloud_event_group_member_added_object_group", - "EventStreamCloudEventGroupMemberAddedObjectGroup0": ".event_stream_cloud_event_group_member_added_object_group_0", - "EventStreamCloudEventGroupMemberAddedObjectGroup0TypeEnum": ".event_stream_cloud_event_group_member_added_object_group_0_type_enum", - "EventStreamCloudEventGroupMemberAddedObjectGroup1": ".event_stream_cloud_event_group_member_added_object_group_1", - "EventStreamCloudEventGroupMemberAddedObjectGroup1TypeEnum": ".event_stream_cloud_event_group_member_added_object_group_1_type_enum", - "EventStreamCloudEventGroupMemberAddedObjectGroup2": ".event_stream_cloud_event_group_member_added_object_group_2", - "EventStreamCloudEventGroupMemberAddedObjectGroup2TypeEnum": ".event_stream_cloud_event_group_member_added_object_group_2_type_enum", - "EventStreamCloudEventGroupMemberAddedObjectMember": ".event_stream_cloud_event_group_member_added_object_member", - "EventStreamCloudEventGroupMemberAddedObjectMember0": ".event_stream_cloud_event_group_member_added_object_member_0", - "EventStreamCloudEventGroupMemberAddedObjectMember0MemberTypeEnum": ".event_stream_cloud_event_group_member_added_object_member_0_member_type_enum", - "EventStreamCloudEventGroupMemberAddedObjectMember1": ".event_stream_cloud_event_group_member_added_object_member_1", - "EventStreamCloudEventGroupMemberAddedObjectMember1MemberTypeEnum": ".event_stream_cloud_event_group_member_added_object_member_1_member_type_enum", - "EventStreamCloudEventGroupMemberAddedPreviousObject": ".event_stream_cloud_event_group_member_added_previous_object", - "EventStreamCloudEventGroupMemberAddedPreviousObjectGroup": ".event_stream_cloud_event_group_member_added_previous_object_group", - "EventStreamCloudEventGroupMemberAddedPreviousObjectGroup0": ".event_stream_cloud_event_group_member_added_previous_object_group_0", - "EventStreamCloudEventGroupMemberAddedPreviousObjectGroup0TypeEnum": ".event_stream_cloud_event_group_member_added_previous_object_group_0_type_enum", - "EventStreamCloudEventGroupMemberAddedPreviousObjectGroup1": ".event_stream_cloud_event_group_member_added_previous_object_group_1", - "EventStreamCloudEventGroupMemberAddedPreviousObjectGroup1TypeEnum": ".event_stream_cloud_event_group_member_added_previous_object_group_1_type_enum", - "EventStreamCloudEventGroupMemberAddedPreviousObjectGroup2": ".event_stream_cloud_event_group_member_added_previous_object_group_2", - "EventStreamCloudEventGroupMemberAddedPreviousObjectGroup2TypeEnum": ".event_stream_cloud_event_group_member_added_previous_object_group_2_type_enum", - "EventStreamCloudEventGroupMemberAddedPreviousObjectMember": ".event_stream_cloud_event_group_member_added_previous_object_member", - "EventStreamCloudEventGroupMemberAddedPreviousObjectMember0": ".event_stream_cloud_event_group_member_added_previous_object_member_0", - "EventStreamCloudEventGroupMemberAddedPreviousObjectMember0MemberTypeEnum": ".event_stream_cloud_event_group_member_added_previous_object_member_0_member_type_enum", - "EventStreamCloudEventGroupMemberAddedPreviousObjectMember1": ".event_stream_cloud_event_group_member_added_previous_object_member_1", - "EventStreamCloudEventGroupMemberAddedPreviousObjectMember1MemberTypeEnum": ".event_stream_cloud_event_group_member_added_previous_object_member_1_member_type_enum", - "EventStreamCloudEventGroupMemberAddedTypeEnum": ".event_stream_cloud_event_group_member_added_type_enum", - "EventStreamCloudEventGroupMemberDeleted": ".event_stream_cloud_event_group_member_deleted", - "EventStreamCloudEventGroupMemberDeletedCloudEvent": ".event_stream_cloud_event_group_member_deleted_cloud_event", - "EventStreamCloudEventGroupMemberDeletedCloudEventTypeEnum": ".event_stream_cloud_event_group_member_deleted_cloud_event_type_enum", - "EventStreamCloudEventGroupMemberDeletedData": ".event_stream_cloud_event_group_member_deleted_data", - "EventStreamCloudEventGroupMemberDeletedObject": ".event_stream_cloud_event_group_member_deleted_object", - "EventStreamCloudEventGroupMemberDeletedObjectGroup": ".event_stream_cloud_event_group_member_deleted_object_group", - "EventStreamCloudEventGroupMemberDeletedObjectGroup0": ".event_stream_cloud_event_group_member_deleted_object_group_0", - "EventStreamCloudEventGroupMemberDeletedObjectGroup0TypeEnum": ".event_stream_cloud_event_group_member_deleted_object_group_0_type_enum", - "EventStreamCloudEventGroupMemberDeletedObjectGroup1": ".event_stream_cloud_event_group_member_deleted_object_group_1", - "EventStreamCloudEventGroupMemberDeletedObjectGroup1TypeEnum": ".event_stream_cloud_event_group_member_deleted_object_group_1_type_enum", - "EventStreamCloudEventGroupMemberDeletedObjectGroup2": ".event_stream_cloud_event_group_member_deleted_object_group_2", - "EventStreamCloudEventGroupMemberDeletedObjectGroup2TypeEnum": ".event_stream_cloud_event_group_member_deleted_object_group_2_type_enum", - "EventStreamCloudEventGroupMemberDeletedObjectMember": ".event_stream_cloud_event_group_member_deleted_object_member", - "EventStreamCloudEventGroupMemberDeletedObjectMember0": ".event_stream_cloud_event_group_member_deleted_object_member_0", - "EventStreamCloudEventGroupMemberDeletedObjectMember0MemberTypeEnum": ".event_stream_cloud_event_group_member_deleted_object_member_0_member_type_enum", - "EventStreamCloudEventGroupMemberDeletedObjectMember1": ".event_stream_cloud_event_group_member_deleted_object_member_1", - "EventStreamCloudEventGroupMemberDeletedObjectMember1MemberTypeEnum": ".event_stream_cloud_event_group_member_deleted_object_member_1_member_type_enum", - "EventStreamCloudEventGroupMemberDeletedPreviousObject": ".event_stream_cloud_event_group_member_deleted_previous_object", - "EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup": ".event_stream_cloud_event_group_member_deleted_previous_object_group", - "EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup0": ".event_stream_cloud_event_group_member_deleted_previous_object_group_0", - "EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup0TypeEnum": ".event_stream_cloud_event_group_member_deleted_previous_object_group_0_type_enum", - "EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup1": ".event_stream_cloud_event_group_member_deleted_previous_object_group_1", - "EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup1TypeEnum": ".event_stream_cloud_event_group_member_deleted_previous_object_group_1_type_enum", - "EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup2": ".event_stream_cloud_event_group_member_deleted_previous_object_group_2", - "EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup2TypeEnum": ".event_stream_cloud_event_group_member_deleted_previous_object_group_2_type_enum", - "EventStreamCloudEventGroupMemberDeletedPreviousObjectMember": ".event_stream_cloud_event_group_member_deleted_previous_object_member", - "EventStreamCloudEventGroupMemberDeletedPreviousObjectMember0": ".event_stream_cloud_event_group_member_deleted_previous_object_member_0", - "EventStreamCloudEventGroupMemberDeletedPreviousObjectMember0MemberTypeEnum": ".event_stream_cloud_event_group_member_deleted_previous_object_member_0_member_type_enum", - "EventStreamCloudEventGroupMemberDeletedPreviousObjectMember1": ".event_stream_cloud_event_group_member_deleted_previous_object_member_1", - "EventStreamCloudEventGroupMemberDeletedPreviousObjectMember1MemberTypeEnum": ".event_stream_cloud_event_group_member_deleted_previous_object_member_1_member_type_enum", - "EventStreamCloudEventGroupMemberDeletedTypeEnum": ".event_stream_cloud_event_group_member_deleted_type_enum", - "EventStreamCloudEventGroupRoleAssigned": ".event_stream_cloud_event_group_role_assigned", - "EventStreamCloudEventGroupRoleAssignedCloudEvent": ".event_stream_cloud_event_group_role_assigned_cloud_event", - "EventStreamCloudEventGroupRoleAssignedCloudEventTypeEnum": ".event_stream_cloud_event_group_role_assigned_cloud_event_type_enum", - "EventStreamCloudEventGroupRoleAssignedData": ".event_stream_cloud_event_group_role_assigned_data", - "EventStreamCloudEventGroupRoleAssignedObject": ".event_stream_cloud_event_group_role_assigned_object", - "EventStreamCloudEventGroupRoleAssignedObjectGroup": ".event_stream_cloud_event_group_role_assigned_object_group", - "EventStreamCloudEventGroupRoleAssignedObjectGroup0": ".event_stream_cloud_event_group_role_assigned_object_group_0", - "EventStreamCloudEventGroupRoleAssignedObjectGroup0TypeEnum": ".event_stream_cloud_event_group_role_assigned_object_group_0_type_enum", - "EventStreamCloudEventGroupRoleAssignedObjectGroup1": ".event_stream_cloud_event_group_role_assigned_object_group_1", - "EventStreamCloudEventGroupRoleAssignedObjectGroup1TypeEnum": ".event_stream_cloud_event_group_role_assigned_object_group_1_type_enum", - "EventStreamCloudEventGroupRoleAssignedObjectGroup2": ".event_stream_cloud_event_group_role_assigned_object_group_2", - "EventStreamCloudEventGroupRoleAssignedObjectGroup2TypeEnum": ".event_stream_cloud_event_group_role_assigned_object_group_2_type_enum", - "EventStreamCloudEventGroupRoleAssignedObjectRole": ".event_stream_cloud_event_group_role_assigned_object_role", - "EventStreamCloudEventGroupRoleAssignedPreviousObject": ".event_stream_cloud_event_group_role_assigned_previous_object", - "EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup": ".event_stream_cloud_event_group_role_assigned_previous_object_group", - "EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup0": ".event_stream_cloud_event_group_role_assigned_previous_object_group_0", - "EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup0TypeEnum": ".event_stream_cloud_event_group_role_assigned_previous_object_group_0_type_enum", - "EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup1": ".event_stream_cloud_event_group_role_assigned_previous_object_group_1", - "EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup1TypeEnum": ".event_stream_cloud_event_group_role_assigned_previous_object_group_1_type_enum", - "EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup2": ".event_stream_cloud_event_group_role_assigned_previous_object_group_2", - "EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup2TypeEnum": ".event_stream_cloud_event_group_role_assigned_previous_object_group_2_type_enum", - "EventStreamCloudEventGroupRoleAssignedPreviousObjectRole": ".event_stream_cloud_event_group_role_assigned_previous_object_role", - "EventStreamCloudEventGroupRoleAssignedTypeEnum": ".event_stream_cloud_event_group_role_assigned_type_enum", - "EventStreamCloudEventGroupRoleDeleted": ".event_stream_cloud_event_group_role_deleted", - "EventStreamCloudEventGroupRoleDeletedCloudEvent": ".event_stream_cloud_event_group_role_deleted_cloud_event", - "EventStreamCloudEventGroupRoleDeletedCloudEventTypeEnum": ".event_stream_cloud_event_group_role_deleted_cloud_event_type_enum", - "EventStreamCloudEventGroupRoleDeletedData": ".event_stream_cloud_event_group_role_deleted_data", - "EventStreamCloudEventGroupRoleDeletedObject": ".event_stream_cloud_event_group_role_deleted_object", - "EventStreamCloudEventGroupRoleDeletedObjectGroup": ".event_stream_cloud_event_group_role_deleted_object_group", - "EventStreamCloudEventGroupRoleDeletedObjectGroup0": ".event_stream_cloud_event_group_role_deleted_object_group_0", - "EventStreamCloudEventGroupRoleDeletedObjectGroup0TypeEnum": ".event_stream_cloud_event_group_role_deleted_object_group_0_type_enum", - "EventStreamCloudEventGroupRoleDeletedObjectGroup1": ".event_stream_cloud_event_group_role_deleted_object_group_1", - "EventStreamCloudEventGroupRoleDeletedObjectGroup1TypeEnum": ".event_stream_cloud_event_group_role_deleted_object_group_1_type_enum", - "EventStreamCloudEventGroupRoleDeletedObjectGroup2": ".event_stream_cloud_event_group_role_deleted_object_group_2", - "EventStreamCloudEventGroupRoleDeletedObjectGroup2TypeEnum": ".event_stream_cloud_event_group_role_deleted_object_group_2_type_enum", - "EventStreamCloudEventGroupRoleDeletedObjectRole": ".event_stream_cloud_event_group_role_deleted_object_role", - "EventStreamCloudEventGroupRoleDeletedPreviousObject": ".event_stream_cloud_event_group_role_deleted_previous_object", - "EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup": ".event_stream_cloud_event_group_role_deleted_previous_object_group", - "EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup0": ".event_stream_cloud_event_group_role_deleted_previous_object_group_0", - "EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup0TypeEnum": ".event_stream_cloud_event_group_role_deleted_previous_object_group_0_type_enum", - "EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup1": ".event_stream_cloud_event_group_role_deleted_previous_object_group_1", - "EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup1TypeEnum": ".event_stream_cloud_event_group_role_deleted_previous_object_group_1_type_enum", - "EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup2": ".event_stream_cloud_event_group_role_deleted_previous_object_group_2", - "EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup2TypeEnum": ".event_stream_cloud_event_group_role_deleted_previous_object_group_2_type_enum", - "EventStreamCloudEventGroupRoleDeletedPreviousObjectRole": ".event_stream_cloud_event_group_role_deleted_previous_object_role", - "EventStreamCloudEventGroupRoleDeletedTypeEnum": ".event_stream_cloud_event_group_role_deleted_type_enum", - "EventStreamCloudEventGroupUpdated": ".event_stream_cloud_event_group_updated", - "EventStreamCloudEventGroupUpdatedCloudEvent": ".event_stream_cloud_event_group_updated_cloud_event", - "EventStreamCloudEventGroupUpdatedCloudEventTypeEnum": ".event_stream_cloud_event_group_updated_cloud_event_type_enum", - "EventStreamCloudEventGroupUpdatedData": ".event_stream_cloud_event_group_updated_data", - "EventStreamCloudEventGroupUpdatedObject": ".event_stream_cloud_event_group_updated_object", - "EventStreamCloudEventGroupUpdatedObject0": ".event_stream_cloud_event_group_updated_object_0", - "EventStreamCloudEventGroupUpdatedObject0TypeEnum": ".event_stream_cloud_event_group_updated_object_0_type_enum", - "EventStreamCloudEventGroupUpdatedObject1": ".event_stream_cloud_event_group_updated_object_1", - "EventStreamCloudEventGroupUpdatedObject1TypeEnum": ".event_stream_cloud_event_group_updated_object_1_type_enum", - "EventStreamCloudEventGroupUpdatedObject2": ".event_stream_cloud_event_group_updated_object_2", - "EventStreamCloudEventGroupUpdatedObject2TypeEnum": ".event_stream_cloud_event_group_updated_object_2_type_enum", - "EventStreamCloudEventGroupUpdatedPreviousObject": ".event_stream_cloud_event_group_updated_previous_object", - "EventStreamCloudEventGroupUpdatedPreviousObject0": ".event_stream_cloud_event_group_updated_previous_object_0", - "EventStreamCloudEventGroupUpdatedPreviousObject0TypeEnum": ".event_stream_cloud_event_group_updated_previous_object_0_type_enum", - "EventStreamCloudEventGroupUpdatedPreviousObject1": ".event_stream_cloud_event_group_updated_previous_object_1", - "EventStreamCloudEventGroupUpdatedPreviousObject1TypeEnum": ".event_stream_cloud_event_group_updated_previous_object_1_type_enum", - "EventStreamCloudEventGroupUpdatedPreviousObject2": ".event_stream_cloud_event_group_updated_previous_object_2", - "EventStreamCloudEventGroupUpdatedPreviousObject2TypeEnum": ".event_stream_cloud_event_group_updated_previous_object_2_type_enum", - "EventStreamCloudEventGroupUpdatedTypeEnum": ".event_stream_cloud_event_group_updated_type_enum", - "EventStreamCloudEventOffsetOnlyMessage": ".event_stream_cloud_event_offset_only_message", - "EventStreamCloudEventOffsetOnlyMessageTypeEnum": ".event_stream_cloud_event_offset_only_message_type_enum", - "EventStreamCloudEventOrgConnectionAdded": ".event_stream_cloud_event_org_connection_added", - "EventStreamCloudEventOrgConnectionAddedCloudEvent": ".event_stream_cloud_event_org_connection_added_cloud_event", - "EventStreamCloudEventOrgConnectionAddedCloudEventTypeEnum": ".event_stream_cloud_event_org_connection_added_cloud_event_type_enum", - "EventStreamCloudEventOrgConnectionAddedData": ".event_stream_cloud_event_org_connection_added_data", - "EventStreamCloudEventOrgConnectionAddedObject": ".event_stream_cloud_event_org_connection_added_object", - "EventStreamCloudEventOrgConnectionAddedObjectConnection": ".event_stream_cloud_event_org_connection_added_object_connection", - "EventStreamCloudEventOrgConnectionAddedObjectOrganization": ".event_stream_cloud_event_org_connection_added_object_organization", - "EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel": ".event_stream_cloud_event_org_connection_added_object_organization_access_level", - "EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel0Enum": ".event_stream_cloud_event_org_connection_added_object_organization_access_level_0_enum", - "EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel1Enum": ".event_stream_cloud_event_org_connection_added_object_organization_access_level_1_enum", - "EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel2Enum": ".event_stream_cloud_event_org_connection_added_object_organization_access_level_2_enum", - "EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel3Enum": ".event_stream_cloud_event_org_connection_added_object_organization_access_level_3_enum", - "EventStreamCloudEventOrgConnectionAddedObjectOrganizationMemberAccessLevel": ".event_stream_cloud_event_org_connection_added_object_organization_member_access_level", - "EventStreamCloudEventOrgConnectionAddedObjectOrganizationMemberAccessLevel0Enum": ".event_stream_cloud_event_org_connection_added_object_organization_member_access_level_0_enum", - "EventStreamCloudEventOrgConnectionAddedObjectOrganizationMemberAccessLevel1Enum": ".event_stream_cloud_event_org_connection_added_object_organization_member_access_level_1_enum", - "EventStreamCloudEventOrgConnectionAddedObjectOrganizationMemberAccessLevel2Enum": ".event_stream_cloud_event_org_connection_added_object_organization_member_access_level_2_enum", - "EventStreamCloudEventOrgConnectionAddedObjectOrganizationMemberAccessLevel3Enum": ".event_stream_cloud_event_org_connection_added_object_organization_member_access_level_3_enum", - "EventStreamCloudEventOrgConnectionAddedPreviousObject": ".event_stream_cloud_event_org_connection_added_previous_object", - "EventStreamCloudEventOrgConnectionAddedPreviousObjectConnection": ".event_stream_cloud_event_org_connection_added_previous_object_connection", - "EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganization": ".event_stream_cloud_event_org_connection_added_previous_object_organization", - "EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel": ".event_stream_cloud_event_org_connection_added_previous_object_organization_access_level", - "EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel0Enum": ".event_stream_cloud_event_org_connection_added_previous_object_organization_access_level_0_enum", - "EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel1Enum": ".event_stream_cloud_event_org_connection_added_previous_object_organization_access_level_1_enum", - "EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel2Enum": ".event_stream_cloud_event_org_connection_added_previous_object_organization_access_level_2_enum", - "EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel3Enum": ".event_stream_cloud_event_org_connection_added_previous_object_organization_access_level_3_enum", - "EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationMemberAccessLevel": ".event_stream_cloud_event_org_connection_added_previous_object_organization_member_access_level", - "EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationMemberAccessLevel0Enum": ".event_stream_cloud_event_org_connection_added_previous_object_organization_member_access_level_0_enum", - "EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationMemberAccessLevel1Enum": ".event_stream_cloud_event_org_connection_added_previous_object_organization_member_access_level_1_enum", - "EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationMemberAccessLevel2Enum": ".event_stream_cloud_event_org_connection_added_previous_object_organization_member_access_level_2_enum", - "EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationMemberAccessLevel3Enum": ".event_stream_cloud_event_org_connection_added_previous_object_organization_member_access_level_3_enum", - "EventStreamCloudEventOrgConnectionAddedTypeEnum": ".event_stream_cloud_event_org_connection_added_type_enum", - "EventStreamCloudEventOrgConnectionRemoved": ".event_stream_cloud_event_org_connection_removed", - "EventStreamCloudEventOrgConnectionRemovedCloudEvent": ".event_stream_cloud_event_org_connection_removed_cloud_event", - "EventStreamCloudEventOrgConnectionRemovedCloudEventTypeEnum": ".event_stream_cloud_event_org_connection_removed_cloud_event_type_enum", - "EventStreamCloudEventOrgConnectionRemovedData": ".event_stream_cloud_event_org_connection_removed_data", - "EventStreamCloudEventOrgConnectionRemovedObject": ".event_stream_cloud_event_org_connection_removed_object", - "EventStreamCloudEventOrgConnectionRemovedObjectConnection": ".event_stream_cloud_event_org_connection_removed_object_connection", - "EventStreamCloudEventOrgConnectionRemovedObjectOrganization": ".event_stream_cloud_event_org_connection_removed_object_organization", - "EventStreamCloudEventOrgConnectionRemovedPreviousObject": ".event_stream_cloud_event_org_connection_removed_previous_object", - "EventStreamCloudEventOrgConnectionRemovedPreviousObjectConnection": ".event_stream_cloud_event_org_connection_removed_previous_object_connection", - "EventStreamCloudEventOrgConnectionRemovedPreviousObjectOrganization": ".event_stream_cloud_event_org_connection_removed_previous_object_organization", - "EventStreamCloudEventOrgConnectionRemovedTypeEnum": ".event_stream_cloud_event_org_connection_removed_type_enum", - "EventStreamCloudEventOrgConnectionUpdated": ".event_stream_cloud_event_org_connection_updated", - "EventStreamCloudEventOrgConnectionUpdatedCloudEvent": ".event_stream_cloud_event_org_connection_updated_cloud_event", - "EventStreamCloudEventOrgConnectionUpdatedCloudEventTypeEnum": ".event_stream_cloud_event_org_connection_updated_cloud_event_type_enum", - "EventStreamCloudEventOrgConnectionUpdatedData": ".event_stream_cloud_event_org_connection_updated_data", - "EventStreamCloudEventOrgConnectionUpdatedObject": ".event_stream_cloud_event_org_connection_updated_object", - "EventStreamCloudEventOrgConnectionUpdatedObjectConnection": ".event_stream_cloud_event_org_connection_updated_object_connection", - "EventStreamCloudEventOrgConnectionUpdatedObjectOrganization": ".event_stream_cloud_event_org_connection_updated_object_organization", - "EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel": ".event_stream_cloud_event_org_connection_updated_object_organization_access_level", - "EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel0Enum": ".event_stream_cloud_event_org_connection_updated_object_organization_access_level_0_enum", - "EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel1Enum": ".event_stream_cloud_event_org_connection_updated_object_organization_access_level_1_enum", - "EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel2Enum": ".event_stream_cloud_event_org_connection_updated_object_organization_access_level_2_enum", - "EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel3Enum": ".event_stream_cloud_event_org_connection_updated_object_organization_access_level_3_enum", - "EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationMemberAccessLevel": ".event_stream_cloud_event_org_connection_updated_object_organization_member_access_level", - "EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationMemberAccessLevel0Enum": ".event_stream_cloud_event_org_connection_updated_object_organization_member_access_level_0_enum", - "EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationMemberAccessLevel1Enum": ".event_stream_cloud_event_org_connection_updated_object_organization_member_access_level_1_enum", - "EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationMemberAccessLevel2Enum": ".event_stream_cloud_event_org_connection_updated_object_organization_member_access_level_2_enum", - "EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationMemberAccessLevel3Enum": ".event_stream_cloud_event_org_connection_updated_object_organization_member_access_level_3_enum", - "EventStreamCloudEventOrgConnectionUpdatedPreviousObject": ".event_stream_cloud_event_org_connection_updated_previous_object", - "EventStreamCloudEventOrgConnectionUpdatedPreviousObjectConnection": ".event_stream_cloud_event_org_connection_updated_previous_object_connection", - "EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganization": ".event_stream_cloud_event_org_connection_updated_previous_object_organization", - "EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel": ".event_stream_cloud_event_org_connection_updated_previous_object_organization_access_level", - "EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel0Enum": ".event_stream_cloud_event_org_connection_updated_previous_object_organization_access_level_0_enum", - "EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel1Enum": ".event_stream_cloud_event_org_connection_updated_previous_object_organization_access_level_1_enum", - "EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel2Enum": ".event_stream_cloud_event_org_connection_updated_previous_object_organization_access_level_2_enum", - "EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel3Enum": ".event_stream_cloud_event_org_connection_updated_previous_object_organization_access_level_3_enum", - "EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationMemberAccessLevel": ".event_stream_cloud_event_org_connection_updated_previous_object_organization_member_access_level", - "EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationMemberAccessLevel0Enum": ".event_stream_cloud_event_org_connection_updated_previous_object_organization_member_access_level_0_enum", - "EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationMemberAccessLevel1Enum": ".event_stream_cloud_event_org_connection_updated_previous_object_organization_member_access_level_1_enum", - "EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationMemberAccessLevel2Enum": ".event_stream_cloud_event_org_connection_updated_previous_object_organization_member_access_level_2_enum", - "EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationMemberAccessLevel3Enum": ".event_stream_cloud_event_org_connection_updated_previous_object_organization_member_access_level_3_enum", - "EventStreamCloudEventOrgConnectionUpdatedTypeEnum": ".event_stream_cloud_event_org_connection_updated_type_enum", - "EventStreamCloudEventOrgCreated": ".event_stream_cloud_event_org_created", - "EventStreamCloudEventOrgCreatedCloudEvent": ".event_stream_cloud_event_org_created_cloud_event", - "EventStreamCloudEventOrgCreatedCloudEventTypeEnum": ".event_stream_cloud_event_org_created_cloud_event_type_enum", - "EventStreamCloudEventOrgCreatedData": ".event_stream_cloud_event_org_created_data", - "EventStreamCloudEventOrgCreatedObject": ".event_stream_cloud_event_org_created_object", - "EventStreamCloudEventOrgCreatedObjectBranding": ".event_stream_cloud_event_org_created_object_branding", - "EventStreamCloudEventOrgCreatedObjectBrandingColors": ".event_stream_cloud_event_org_created_object_branding_colors", - "EventStreamCloudEventOrgCreatedObjectMetadata": ".event_stream_cloud_event_org_created_object_metadata", - "EventStreamCloudEventOrgCreatedPreviousObject": ".event_stream_cloud_event_org_created_previous_object", - "EventStreamCloudEventOrgCreatedPreviousObjectBranding": ".event_stream_cloud_event_org_created_previous_object_branding", - "EventStreamCloudEventOrgCreatedPreviousObjectBrandingColors": ".event_stream_cloud_event_org_created_previous_object_branding_colors", - "EventStreamCloudEventOrgCreatedPreviousObjectMetadata": ".event_stream_cloud_event_org_created_previous_object_metadata", - "EventStreamCloudEventOrgCreatedTypeEnum": ".event_stream_cloud_event_org_created_type_enum", - "EventStreamCloudEventOrgDeleted": ".event_stream_cloud_event_org_deleted", - "EventStreamCloudEventOrgDeletedCloudEvent": ".event_stream_cloud_event_org_deleted_cloud_event", - "EventStreamCloudEventOrgDeletedCloudEventTypeEnum": ".event_stream_cloud_event_org_deleted_cloud_event_type_enum", - "EventStreamCloudEventOrgDeletedData": ".event_stream_cloud_event_org_deleted_data", - "EventStreamCloudEventOrgDeletedObject": ".event_stream_cloud_event_org_deleted_object", - "EventStreamCloudEventOrgDeletedObjectMetadata": ".event_stream_cloud_event_org_deleted_object_metadata", - "EventStreamCloudEventOrgDeletedPreviousObject": ".event_stream_cloud_event_org_deleted_previous_object", - "EventStreamCloudEventOrgDeletedPreviousObjectMetadata": ".event_stream_cloud_event_org_deleted_previous_object_metadata", - "EventStreamCloudEventOrgDeletedTypeEnum": ".event_stream_cloud_event_org_deleted_type_enum", - "EventStreamCloudEventOrgGroupRoleAssigned": ".event_stream_cloud_event_org_group_role_assigned", - "EventStreamCloudEventOrgGroupRoleAssignedCloudEvent": ".event_stream_cloud_event_org_group_role_assigned_cloud_event", - "EventStreamCloudEventOrgGroupRoleAssignedCloudEventTypeEnum": ".event_stream_cloud_event_org_group_role_assigned_cloud_event_type_enum", - "EventStreamCloudEventOrgGroupRoleAssignedData": ".event_stream_cloud_event_org_group_role_assigned_data", - "EventStreamCloudEventOrgGroupRoleAssignedObject": ".event_stream_cloud_event_org_group_role_assigned_object", - "EventStreamCloudEventOrgGroupRoleAssignedObjectGroup": ".event_stream_cloud_event_org_group_role_assigned_object_group", - "EventStreamCloudEventOrgGroupRoleAssignedObjectGroup0": ".event_stream_cloud_event_org_group_role_assigned_object_group_0", - "EventStreamCloudEventOrgGroupRoleAssignedObjectGroup0TypeEnum": ".event_stream_cloud_event_org_group_role_assigned_object_group_0_type_enum", - "EventStreamCloudEventOrgGroupRoleAssignedObjectGroup1": ".event_stream_cloud_event_org_group_role_assigned_object_group_1", - "EventStreamCloudEventOrgGroupRoleAssignedObjectGroup1TypeEnum": ".event_stream_cloud_event_org_group_role_assigned_object_group_1_type_enum", - "EventStreamCloudEventOrgGroupRoleAssignedObjectGroup2": ".event_stream_cloud_event_org_group_role_assigned_object_group_2", - "EventStreamCloudEventOrgGroupRoleAssignedObjectGroup2TypeEnum": ".event_stream_cloud_event_org_group_role_assigned_object_group_2_type_enum", - "EventStreamCloudEventOrgGroupRoleAssignedObjectOrganization": ".event_stream_cloud_event_org_group_role_assigned_object_organization", - "EventStreamCloudEventOrgGroupRoleAssignedObjectRole": ".event_stream_cloud_event_org_group_role_assigned_object_role", - "EventStreamCloudEventOrgGroupRoleAssignedPreviousObject": ".event_stream_cloud_event_org_group_role_assigned_previous_object", - "EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup": ".event_stream_cloud_event_org_group_role_assigned_previous_object_group", - "EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup0": ".event_stream_cloud_event_org_group_role_assigned_previous_object_group_0", - "EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup0TypeEnum": ".event_stream_cloud_event_org_group_role_assigned_previous_object_group_0_type_enum", - "EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup1": ".event_stream_cloud_event_org_group_role_assigned_previous_object_group_1", - "EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup1TypeEnum": ".event_stream_cloud_event_org_group_role_assigned_previous_object_group_1_type_enum", - "EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup2": ".event_stream_cloud_event_org_group_role_assigned_previous_object_group_2", - "EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup2TypeEnum": ".event_stream_cloud_event_org_group_role_assigned_previous_object_group_2_type_enum", - "EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectOrganization": ".event_stream_cloud_event_org_group_role_assigned_previous_object_organization", - "EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectRole": ".event_stream_cloud_event_org_group_role_assigned_previous_object_role", - "EventStreamCloudEventOrgGroupRoleAssignedTypeEnum": ".event_stream_cloud_event_org_group_role_assigned_type_enum", - "EventStreamCloudEventOrgGroupRoleDeleted": ".event_stream_cloud_event_org_group_role_deleted", - "EventStreamCloudEventOrgGroupRoleDeletedCloudEvent": ".event_stream_cloud_event_org_group_role_deleted_cloud_event", - "EventStreamCloudEventOrgGroupRoleDeletedCloudEventTypeEnum": ".event_stream_cloud_event_org_group_role_deleted_cloud_event_type_enum", - "EventStreamCloudEventOrgGroupRoleDeletedData": ".event_stream_cloud_event_org_group_role_deleted_data", - "EventStreamCloudEventOrgGroupRoleDeletedObject": ".event_stream_cloud_event_org_group_role_deleted_object", - "EventStreamCloudEventOrgGroupRoleDeletedObjectGroup": ".event_stream_cloud_event_org_group_role_deleted_object_group", - "EventStreamCloudEventOrgGroupRoleDeletedObjectGroup0": ".event_stream_cloud_event_org_group_role_deleted_object_group_0", - "EventStreamCloudEventOrgGroupRoleDeletedObjectGroup0TypeEnum": ".event_stream_cloud_event_org_group_role_deleted_object_group_0_type_enum", - "EventStreamCloudEventOrgGroupRoleDeletedObjectGroup1": ".event_stream_cloud_event_org_group_role_deleted_object_group_1", - "EventStreamCloudEventOrgGroupRoleDeletedObjectGroup1TypeEnum": ".event_stream_cloud_event_org_group_role_deleted_object_group_1_type_enum", - "EventStreamCloudEventOrgGroupRoleDeletedObjectGroup2": ".event_stream_cloud_event_org_group_role_deleted_object_group_2", - "EventStreamCloudEventOrgGroupRoleDeletedObjectGroup2TypeEnum": ".event_stream_cloud_event_org_group_role_deleted_object_group_2_type_enum", - "EventStreamCloudEventOrgGroupRoleDeletedObjectOrganization": ".event_stream_cloud_event_org_group_role_deleted_object_organization", - "EventStreamCloudEventOrgGroupRoleDeletedObjectRole": ".event_stream_cloud_event_org_group_role_deleted_object_role", - "EventStreamCloudEventOrgGroupRoleDeletedPreviousObject": ".event_stream_cloud_event_org_group_role_deleted_previous_object", - "EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup": ".event_stream_cloud_event_org_group_role_deleted_previous_object_group", - "EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup0": ".event_stream_cloud_event_org_group_role_deleted_previous_object_group_0", - "EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup0TypeEnum": ".event_stream_cloud_event_org_group_role_deleted_previous_object_group_0_type_enum", - "EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup1": ".event_stream_cloud_event_org_group_role_deleted_previous_object_group_1", - "EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup1TypeEnum": ".event_stream_cloud_event_org_group_role_deleted_previous_object_group_1_type_enum", - "EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup2": ".event_stream_cloud_event_org_group_role_deleted_previous_object_group_2", - "EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup2TypeEnum": ".event_stream_cloud_event_org_group_role_deleted_previous_object_group_2_type_enum", - "EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectOrganization": ".event_stream_cloud_event_org_group_role_deleted_previous_object_organization", - "EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectRole": ".event_stream_cloud_event_org_group_role_deleted_previous_object_role", - "EventStreamCloudEventOrgGroupRoleDeletedTypeEnum": ".event_stream_cloud_event_org_group_role_deleted_type_enum", - "EventStreamCloudEventOrgMemberAdded": ".event_stream_cloud_event_org_member_added", - "EventStreamCloudEventOrgMemberAddedCloudEvent": ".event_stream_cloud_event_org_member_added_cloud_event", - "EventStreamCloudEventOrgMemberAddedCloudEventTypeEnum": ".event_stream_cloud_event_org_member_added_cloud_event_type_enum", - "EventStreamCloudEventOrgMemberAddedData": ".event_stream_cloud_event_org_member_added_data", - "EventStreamCloudEventOrgMemberAddedObject": ".event_stream_cloud_event_org_member_added_object", - "EventStreamCloudEventOrgMemberAddedObjectOrganization": ".event_stream_cloud_event_org_member_added_object_organization", - "EventStreamCloudEventOrgMemberAddedObjectUser": ".event_stream_cloud_event_org_member_added_object_user", - "EventStreamCloudEventOrgMemberAddedPreviousObject": ".event_stream_cloud_event_org_member_added_previous_object", - "EventStreamCloudEventOrgMemberAddedPreviousObjectOrganization": ".event_stream_cloud_event_org_member_added_previous_object_organization", - "EventStreamCloudEventOrgMemberAddedPreviousObjectUser": ".event_stream_cloud_event_org_member_added_previous_object_user", - "EventStreamCloudEventOrgMemberAddedTypeEnum": ".event_stream_cloud_event_org_member_added_type_enum", - "EventStreamCloudEventOrgMemberDeleted": ".event_stream_cloud_event_org_member_deleted", - "EventStreamCloudEventOrgMemberDeletedCloudEvent": ".event_stream_cloud_event_org_member_deleted_cloud_event", - "EventStreamCloudEventOrgMemberDeletedCloudEventTypeEnum": ".event_stream_cloud_event_org_member_deleted_cloud_event_type_enum", - "EventStreamCloudEventOrgMemberDeletedData": ".event_stream_cloud_event_org_member_deleted_data", - "EventStreamCloudEventOrgMemberDeletedObject": ".event_stream_cloud_event_org_member_deleted_object", - "EventStreamCloudEventOrgMemberDeletedObjectOrganization": ".event_stream_cloud_event_org_member_deleted_object_organization", - "EventStreamCloudEventOrgMemberDeletedObjectUser": ".event_stream_cloud_event_org_member_deleted_object_user", - "EventStreamCloudEventOrgMemberDeletedPreviousObject": ".event_stream_cloud_event_org_member_deleted_previous_object", - "EventStreamCloudEventOrgMemberDeletedPreviousObjectOrganization": ".event_stream_cloud_event_org_member_deleted_previous_object_organization", - "EventStreamCloudEventOrgMemberDeletedPreviousObjectUser": ".event_stream_cloud_event_org_member_deleted_previous_object_user", - "EventStreamCloudEventOrgMemberDeletedTypeEnum": ".event_stream_cloud_event_org_member_deleted_type_enum", - "EventStreamCloudEventOrgMemberRoleAssigned": ".event_stream_cloud_event_org_member_role_assigned", - "EventStreamCloudEventOrgMemberRoleAssignedCloudEvent": ".event_stream_cloud_event_org_member_role_assigned_cloud_event", - "EventStreamCloudEventOrgMemberRoleAssignedCloudEventTypeEnum": ".event_stream_cloud_event_org_member_role_assigned_cloud_event_type_enum", - "EventStreamCloudEventOrgMemberRoleAssignedData": ".event_stream_cloud_event_org_member_role_assigned_data", - "EventStreamCloudEventOrgMemberRoleAssignedObject": ".event_stream_cloud_event_org_member_role_assigned_object", - "EventStreamCloudEventOrgMemberRoleAssignedObjectOrganization": ".event_stream_cloud_event_org_member_role_assigned_object_organization", - "EventStreamCloudEventOrgMemberRoleAssignedObjectRole": ".event_stream_cloud_event_org_member_role_assigned_object_role", - "EventStreamCloudEventOrgMemberRoleAssignedObjectUser": ".event_stream_cloud_event_org_member_role_assigned_object_user", - "EventStreamCloudEventOrgMemberRoleAssignedPreviousObject": ".event_stream_cloud_event_org_member_role_assigned_previous_object", - "EventStreamCloudEventOrgMemberRoleAssignedPreviousObjectOrganization": ".event_stream_cloud_event_org_member_role_assigned_previous_object_organization", - "EventStreamCloudEventOrgMemberRoleAssignedPreviousObjectRole": ".event_stream_cloud_event_org_member_role_assigned_previous_object_role", - "EventStreamCloudEventOrgMemberRoleAssignedPreviousObjectUser": ".event_stream_cloud_event_org_member_role_assigned_previous_object_user", - "EventStreamCloudEventOrgMemberRoleAssignedTypeEnum": ".event_stream_cloud_event_org_member_role_assigned_type_enum", - "EventStreamCloudEventOrgMemberRoleDeleted": ".event_stream_cloud_event_org_member_role_deleted", - "EventStreamCloudEventOrgMemberRoleDeletedCloudEvent": ".event_stream_cloud_event_org_member_role_deleted_cloud_event", - "EventStreamCloudEventOrgMemberRoleDeletedCloudEventTypeEnum": ".event_stream_cloud_event_org_member_role_deleted_cloud_event_type_enum", - "EventStreamCloudEventOrgMemberRoleDeletedData": ".event_stream_cloud_event_org_member_role_deleted_data", - "EventStreamCloudEventOrgMemberRoleDeletedObject": ".event_stream_cloud_event_org_member_role_deleted_object", - "EventStreamCloudEventOrgMemberRoleDeletedObjectOrganization": ".event_stream_cloud_event_org_member_role_deleted_object_organization", - "EventStreamCloudEventOrgMemberRoleDeletedObjectRole": ".event_stream_cloud_event_org_member_role_deleted_object_role", - "EventStreamCloudEventOrgMemberRoleDeletedObjectUser": ".event_stream_cloud_event_org_member_role_deleted_object_user", - "EventStreamCloudEventOrgMemberRoleDeletedPreviousObject": ".event_stream_cloud_event_org_member_role_deleted_previous_object", - "EventStreamCloudEventOrgMemberRoleDeletedPreviousObjectOrganization": ".event_stream_cloud_event_org_member_role_deleted_previous_object_organization", - "EventStreamCloudEventOrgMemberRoleDeletedPreviousObjectRole": ".event_stream_cloud_event_org_member_role_deleted_previous_object_role", - "EventStreamCloudEventOrgMemberRoleDeletedPreviousObjectUser": ".event_stream_cloud_event_org_member_role_deleted_previous_object_user", - "EventStreamCloudEventOrgMemberRoleDeletedTypeEnum": ".event_stream_cloud_event_org_member_role_deleted_type_enum", - "EventStreamCloudEventOrgUpdated": ".event_stream_cloud_event_org_updated", - "EventStreamCloudEventOrgUpdatedCloudEvent": ".event_stream_cloud_event_org_updated_cloud_event", - "EventStreamCloudEventOrgUpdatedCloudEventTypeEnum": ".event_stream_cloud_event_org_updated_cloud_event_type_enum", - "EventStreamCloudEventOrgUpdatedData": ".event_stream_cloud_event_org_updated_data", - "EventStreamCloudEventOrgUpdatedObject": ".event_stream_cloud_event_org_updated_object", - "EventStreamCloudEventOrgUpdatedObjectBranding": ".event_stream_cloud_event_org_updated_object_branding", - "EventStreamCloudEventOrgUpdatedObjectBrandingColors": ".event_stream_cloud_event_org_updated_object_branding_colors", - "EventStreamCloudEventOrgUpdatedObjectMetadata": ".event_stream_cloud_event_org_updated_object_metadata", - "EventStreamCloudEventOrgUpdatedPreviousObject": ".event_stream_cloud_event_org_updated_previous_object", - "EventStreamCloudEventOrgUpdatedPreviousObjectBranding": ".event_stream_cloud_event_org_updated_previous_object_branding", - "EventStreamCloudEventOrgUpdatedPreviousObjectBrandingColors": ".event_stream_cloud_event_org_updated_previous_object_branding_colors", - "EventStreamCloudEventOrgUpdatedPreviousObjectMetadata": ".event_stream_cloud_event_org_updated_previous_object_metadata", - "EventStreamCloudEventOrgUpdatedTypeEnum": ".event_stream_cloud_event_org_updated_type_enum", - "EventStreamCloudEventSpecVersionEnum": ".event_stream_cloud_event_spec_version_enum", - "EventStreamCloudEventUserCreated": ".event_stream_cloud_event_user_created", - "EventStreamCloudEventUserCreatedCloudEvent": ".event_stream_cloud_event_user_created_cloud_event", - "EventStreamCloudEventUserCreatedCloudEventTypeEnum": ".event_stream_cloud_event_user_created_cloud_event_type_enum", - "EventStreamCloudEventUserCreatedData": ".event_stream_cloud_event_user_created_data", - "EventStreamCloudEventUserCreatedObject": ".event_stream_cloud_event_user_created_object", - "EventStreamCloudEventUserCreatedObjectAppMetadata": ".event_stream_cloud_event_user_created_object_app_metadata", - "EventStreamCloudEventUserCreatedObjectIdentitiesItem": ".event_stream_cloud_event_user_created_object_identities_item", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemCustom": ".event_stream_cloud_event_user_created_object_identities_item_custom", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemCustomIsSocialEnum": ".event_stream_cloud_event_user_created_object_identities_item_custom_is_social_enum", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemCustomProfileData": ".event_stream_cloud_event_user_created_object_identities_item_custom_profile_data", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemCustomProviderEnum": ".event_stream_cloud_event_user_created_object_identities_item_custom_provider_enum", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemCustomUserId": ".event_stream_cloud_event_user_created_object_identities_item_custom_user_id", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemDatabase": ".event_stream_cloud_event_user_created_object_identities_item_database", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemDatabaseIsSocialEnum": ".event_stream_cloud_event_user_created_object_identities_item_database_is_social_enum", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemDatabaseProfileData": ".event_stream_cloud_event_user_created_object_identities_item_database_profile_data", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemDatabaseProviderEnum": ".event_stream_cloud_event_user_created_object_identities_item_database_provider_enum", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemDatabaseUserId": ".event_stream_cloud_event_user_created_object_identities_item_database_user_id", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemEnterprise": ".event_stream_cloud_event_user_created_object_identities_item_enterprise", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemEnterpriseIsSocialEnum": ".event_stream_cloud_event_user_created_object_identities_item_enterprise_is_social_enum", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemEnterpriseProfileData": ".event_stream_cloud_event_user_created_object_identities_item_enterprise_profile_data", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemEnterpriseProviderEnum": ".event_stream_cloud_event_user_created_object_identities_item_enterprise_provider_enum", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemEnterpriseUserId": ".event_stream_cloud_event_user_created_object_identities_item_enterprise_user_id", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemPasswordless": ".event_stream_cloud_event_user_created_object_identities_item_passwordless", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemPasswordlessIsSocialEnum": ".event_stream_cloud_event_user_created_object_identities_item_passwordless_is_social_enum", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemPasswordlessProfileData": ".event_stream_cloud_event_user_created_object_identities_item_passwordless_profile_data", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemPasswordlessProviderEnum": ".event_stream_cloud_event_user_created_object_identities_item_passwordless_provider_enum", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemPasswordlessUserId": ".event_stream_cloud_event_user_created_object_identities_item_passwordless_user_id", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemSocial": ".event_stream_cloud_event_user_created_object_identities_item_social", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemSocialIsSocialEnum": ".event_stream_cloud_event_user_created_object_identities_item_social_is_social_enum", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemSocialProfileData": ".event_stream_cloud_event_user_created_object_identities_item_social_profile_data", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemSocialProviderEnum": ".event_stream_cloud_event_user_created_object_identities_item_social_provider_enum", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemSocialUserId": ".event_stream_cloud_event_user_created_object_identities_item_social_user_id", - "EventStreamCloudEventUserCreatedObjectUserMetadata": ".event_stream_cloud_event_user_created_object_user_metadata", - "EventStreamCloudEventUserCreatedPreviousObject": ".event_stream_cloud_event_user_created_previous_object", - "EventStreamCloudEventUserCreatedPreviousObjectAppMetadata": ".event_stream_cloud_event_user_created_previous_object_app_metadata", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItem": ".event_stream_cloud_event_user_created_previous_object_identities_item", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustom": ".event_stream_cloud_event_user_created_previous_object_identities_item_custom", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomIsSocialEnum": ".event_stream_cloud_event_user_created_previous_object_identities_item_custom_is_social_enum", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomProfileData": ".event_stream_cloud_event_user_created_previous_object_identities_item_custom_profile_data", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomProviderEnum": ".event_stream_cloud_event_user_created_previous_object_identities_item_custom_provider_enum", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomUserId": ".event_stream_cloud_event_user_created_previous_object_identities_item_custom_user_id", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabase": ".event_stream_cloud_event_user_created_previous_object_identities_item_database", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseIsSocialEnum": ".event_stream_cloud_event_user_created_previous_object_identities_item_database_is_social_enum", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseProfileData": ".event_stream_cloud_event_user_created_previous_object_identities_item_database_profile_data", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseProviderEnum": ".event_stream_cloud_event_user_created_previous_object_identities_item_database_provider_enum", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseUserId": ".event_stream_cloud_event_user_created_previous_object_identities_item_database_user_id", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterprise": ".event_stream_cloud_event_user_created_previous_object_identities_item_enterprise", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseIsSocialEnum": ".event_stream_cloud_event_user_created_previous_object_identities_item_enterprise_is_social_enum", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseProfileData": ".event_stream_cloud_event_user_created_previous_object_identities_item_enterprise_profile_data", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseProviderEnum": ".event_stream_cloud_event_user_created_previous_object_identities_item_enterprise_provider_enum", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseUserId": ".event_stream_cloud_event_user_created_previous_object_identities_item_enterprise_user_id", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordless": ".event_stream_cloud_event_user_created_previous_object_identities_item_passwordless", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessIsSocialEnum": ".event_stream_cloud_event_user_created_previous_object_identities_item_passwordless_is_social_enum", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessProfileData": ".event_stream_cloud_event_user_created_previous_object_identities_item_passwordless_profile_data", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessProviderEnum": ".event_stream_cloud_event_user_created_previous_object_identities_item_passwordless_provider_enum", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessUserId": ".event_stream_cloud_event_user_created_previous_object_identities_item_passwordless_user_id", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocial": ".event_stream_cloud_event_user_created_previous_object_identities_item_social", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialIsSocialEnum": ".event_stream_cloud_event_user_created_previous_object_identities_item_social_is_social_enum", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProfileData": ".event_stream_cloud_event_user_created_previous_object_identities_item_social_profile_data", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum": ".event_stream_cloud_event_user_created_previous_object_identities_item_social_provider_enum", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialUserId": ".event_stream_cloud_event_user_created_previous_object_identities_item_social_user_id", - "EventStreamCloudEventUserCreatedPreviousObjectUserMetadata": ".event_stream_cloud_event_user_created_previous_object_user_metadata", - "EventStreamCloudEventUserCreatedTypeEnum": ".event_stream_cloud_event_user_created_type_enum", - "EventStreamCloudEventUserDeleted": ".event_stream_cloud_event_user_deleted", - "EventStreamCloudEventUserDeletedCloudEvent": ".event_stream_cloud_event_user_deleted_cloud_event", - "EventStreamCloudEventUserDeletedCloudEventTypeEnum": ".event_stream_cloud_event_user_deleted_cloud_event_type_enum", - "EventStreamCloudEventUserDeletedData": ".event_stream_cloud_event_user_deleted_data", - "EventStreamCloudEventUserDeletedObject": ".event_stream_cloud_event_user_deleted_object", - "EventStreamCloudEventUserDeletedObjectAppMetadata": ".event_stream_cloud_event_user_deleted_object_app_metadata", - "EventStreamCloudEventUserDeletedObjectIdentitiesItem": ".event_stream_cloud_event_user_deleted_object_identities_item", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemCustom": ".event_stream_cloud_event_user_deleted_object_identities_item_custom", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemCustomIsSocialEnum": ".event_stream_cloud_event_user_deleted_object_identities_item_custom_is_social_enum", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemCustomProfileData": ".event_stream_cloud_event_user_deleted_object_identities_item_custom_profile_data", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemCustomProviderEnum": ".event_stream_cloud_event_user_deleted_object_identities_item_custom_provider_enum", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemCustomUserId": ".event_stream_cloud_event_user_deleted_object_identities_item_custom_user_id", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemDatabase": ".event_stream_cloud_event_user_deleted_object_identities_item_database", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemDatabaseIsSocialEnum": ".event_stream_cloud_event_user_deleted_object_identities_item_database_is_social_enum", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemDatabaseProfileData": ".event_stream_cloud_event_user_deleted_object_identities_item_database_profile_data", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemDatabaseProviderEnum": ".event_stream_cloud_event_user_deleted_object_identities_item_database_provider_enum", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemDatabaseUserId": ".event_stream_cloud_event_user_deleted_object_identities_item_database_user_id", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemEnterprise": ".event_stream_cloud_event_user_deleted_object_identities_item_enterprise", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemEnterpriseIsSocialEnum": ".event_stream_cloud_event_user_deleted_object_identities_item_enterprise_is_social_enum", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemEnterpriseProfileData": ".event_stream_cloud_event_user_deleted_object_identities_item_enterprise_profile_data", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemEnterpriseProviderEnum": ".event_stream_cloud_event_user_deleted_object_identities_item_enterprise_provider_enum", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemEnterpriseUserId": ".event_stream_cloud_event_user_deleted_object_identities_item_enterprise_user_id", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemPasswordless": ".event_stream_cloud_event_user_deleted_object_identities_item_passwordless", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemPasswordlessIsSocialEnum": ".event_stream_cloud_event_user_deleted_object_identities_item_passwordless_is_social_enum", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemPasswordlessProfileData": ".event_stream_cloud_event_user_deleted_object_identities_item_passwordless_profile_data", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemPasswordlessProviderEnum": ".event_stream_cloud_event_user_deleted_object_identities_item_passwordless_provider_enum", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemPasswordlessUserId": ".event_stream_cloud_event_user_deleted_object_identities_item_passwordless_user_id", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemSocial": ".event_stream_cloud_event_user_deleted_object_identities_item_social", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemSocialIsSocialEnum": ".event_stream_cloud_event_user_deleted_object_identities_item_social_is_social_enum", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemSocialProfileData": ".event_stream_cloud_event_user_deleted_object_identities_item_social_profile_data", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemSocialProviderEnum": ".event_stream_cloud_event_user_deleted_object_identities_item_social_provider_enum", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemSocialUserId": ".event_stream_cloud_event_user_deleted_object_identities_item_social_user_id", - "EventStreamCloudEventUserDeletedObjectUserMetadata": ".event_stream_cloud_event_user_deleted_object_user_metadata", - "EventStreamCloudEventUserDeletedPreviousObject": ".event_stream_cloud_event_user_deleted_previous_object", - "EventStreamCloudEventUserDeletedPreviousObjectAppMetadata": ".event_stream_cloud_event_user_deleted_previous_object_app_metadata", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItem": ".event_stream_cloud_event_user_deleted_previous_object_identities_item", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustom": ".event_stream_cloud_event_user_deleted_previous_object_identities_item_custom", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomIsSocialEnum": ".event_stream_cloud_event_user_deleted_previous_object_identities_item_custom_is_social_enum", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomProfileData": ".event_stream_cloud_event_user_deleted_previous_object_identities_item_custom_profile_data", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomProviderEnum": ".event_stream_cloud_event_user_deleted_previous_object_identities_item_custom_provider_enum", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomUserId": ".event_stream_cloud_event_user_deleted_previous_object_identities_item_custom_user_id", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabase": ".event_stream_cloud_event_user_deleted_previous_object_identities_item_database", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseIsSocialEnum": ".event_stream_cloud_event_user_deleted_previous_object_identities_item_database_is_social_enum", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseProfileData": ".event_stream_cloud_event_user_deleted_previous_object_identities_item_database_profile_data", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseProviderEnum": ".event_stream_cloud_event_user_deleted_previous_object_identities_item_database_provider_enum", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseUserId": ".event_stream_cloud_event_user_deleted_previous_object_identities_item_database_user_id", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterprise": ".event_stream_cloud_event_user_deleted_previous_object_identities_item_enterprise", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseIsSocialEnum": ".event_stream_cloud_event_user_deleted_previous_object_identities_item_enterprise_is_social_enum", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseProfileData": ".event_stream_cloud_event_user_deleted_previous_object_identities_item_enterprise_profile_data", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseProviderEnum": ".event_stream_cloud_event_user_deleted_previous_object_identities_item_enterprise_provider_enum", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseUserId": ".event_stream_cloud_event_user_deleted_previous_object_identities_item_enterprise_user_id", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordless": ".event_stream_cloud_event_user_deleted_previous_object_identities_item_passwordless", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessIsSocialEnum": ".event_stream_cloud_event_user_deleted_previous_object_identities_item_passwordless_is_social_enum", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessProfileData": ".event_stream_cloud_event_user_deleted_previous_object_identities_item_passwordless_profile_data", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessProviderEnum": ".event_stream_cloud_event_user_deleted_previous_object_identities_item_passwordless_provider_enum", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessUserId": ".event_stream_cloud_event_user_deleted_previous_object_identities_item_passwordless_user_id", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocial": ".event_stream_cloud_event_user_deleted_previous_object_identities_item_social", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialIsSocialEnum": ".event_stream_cloud_event_user_deleted_previous_object_identities_item_social_is_social_enum", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProfileData": ".event_stream_cloud_event_user_deleted_previous_object_identities_item_social_profile_data", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum": ".event_stream_cloud_event_user_deleted_previous_object_identities_item_social_provider_enum", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialUserId": ".event_stream_cloud_event_user_deleted_previous_object_identities_item_social_user_id", - "EventStreamCloudEventUserDeletedPreviousObjectUserMetadata": ".event_stream_cloud_event_user_deleted_previous_object_user_metadata", - "EventStreamCloudEventUserDeletedTypeEnum": ".event_stream_cloud_event_user_deleted_type_enum", - "EventStreamCloudEventUserUpdated": ".event_stream_cloud_event_user_updated", - "EventStreamCloudEventUserUpdatedCloudEvent": ".event_stream_cloud_event_user_updated_cloud_event", - "EventStreamCloudEventUserUpdatedCloudEventTypeEnum": ".event_stream_cloud_event_user_updated_cloud_event_type_enum", - "EventStreamCloudEventUserUpdatedData": ".event_stream_cloud_event_user_updated_data", - "EventStreamCloudEventUserUpdatedObject": ".event_stream_cloud_event_user_updated_object", - "EventStreamCloudEventUserUpdatedObjectAppMetadata": ".event_stream_cloud_event_user_updated_object_app_metadata", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItem": ".event_stream_cloud_event_user_updated_object_identities_item", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemCustom": ".event_stream_cloud_event_user_updated_object_identities_item_custom", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemCustomIsSocialEnum": ".event_stream_cloud_event_user_updated_object_identities_item_custom_is_social_enum", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemCustomProfileData": ".event_stream_cloud_event_user_updated_object_identities_item_custom_profile_data", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemCustomProviderEnum": ".event_stream_cloud_event_user_updated_object_identities_item_custom_provider_enum", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemCustomUserId": ".event_stream_cloud_event_user_updated_object_identities_item_custom_user_id", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemDatabase": ".event_stream_cloud_event_user_updated_object_identities_item_database", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemDatabaseIsSocialEnum": ".event_stream_cloud_event_user_updated_object_identities_item_database_is_social_enum", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemDatabaseProfileData": ".event_stream_cloud_event_user_updated_object_identities_item_database_profile_data", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemDatabaseProviderEnum": ".event_stream_cloud_event_user_updated_object_identities_item_database_provider_enum", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemDatabaseUserId": ".event_stream_cloud_event_user_updated_object_identities_item_database_user_id", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemEnterprise": ".event_stream_cloud_event_user_updated_object_identities_item_enterprise", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemEnterpriseIsSocialEnum": ".event_stream_cloud_event_user_updated_object_identities_item_enterprise_is_social_enum", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemEnterpriseProfileData": ".event_stream_cloud_event_user_updated_object_identities_item_enterprise_profile_data", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemEnterpriseProviderEnum": ".event_stream_cloud_event_user_updated_object_identities_item_enterprise_provider_enum", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemEnterpriseUserId": ".event_stream_cloud_event_user_updated_object_identities_item_enterprise_user_id", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemPasswordless": ".event_stream_cloud_event_user_updated_object_identities_item_passwordless", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemPasswordlessIsSocialEnum": ".event_stream_cloud_event_user_updated_object_identities_item_passwordless_is_social_enum", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemPasswordlessProfileData": ".event_stream_cloud_event_user_updated_object_identities_item_passwordless_profile_data", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemPasswordlessProviderEnum": ".event_stream_cloud_event_user_updated_object_identities_item_passwordless_provider_enum", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemPasswordlessUserId": ".event_stream_cloud_event_user_updated_object_identities_item_passwordless_user_id", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemSocial": ".event_stream_cloud_event_user_updated_object_identities_item_social", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemSocialIsSocialEnum": ".event_stream_cloud_event_user_updated_object_identities_item_social_is_social_enum", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemSocialProfileData": ".event_stream_cloud_event_user_updated_object_identities_item_social_profile_data", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemSocialProviderEnum": ".event_stream_cloud_event_user_updated_object_identities_item_social_provider_enum", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemSocialUserId": ".event_stream_cloud_event_user_updated_object_identities_item_social_user_id", - "EventStreamCloudEventUserUpdatedObjectUserMetadata": ".event_stream_cloud_event_user_updated_object_user_metadata", - "EventStreamCloudEventUserUpdatedPreviousObject": ".event_stream_cloud_event_user_updated_previous_object", - "EventStreamCloudEventUserUpdatedPreviousObjectAppMetadata": ".event_stream_cloud_event_user_updated_previous_object_app_metadata", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItem": ".event_stream_cloud_event_user_updated_previous_object_identities_item", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustom": ".event_stream_cloud_event_user_updated_previous_object_identities_item_custom", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomIsSocialEnum": ".event_stream_cloud_event_user_updated_previous_object_identities_item_custom_is_social_enum", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomProfileData": ".event_stream_cloud_event_user_updated_previous_object_identities_item_custom_profile_data", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomProviderEnum": ".event_stream_cloud_event_user_updated_previous_object_identities_item_custom_provider_enum", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomUserId": ".event_stream_cloud_event_user_updated_previous_object_identities_item_custom_user_id", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabase": ".event_stream_cloud_event_user_updated_previous_object_identities_item_database", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseIsSocialEnum": ".event_stream_cloud_event_user_updated_previous_object_identities_item_database_is_social_enum", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseProfileData": ".event_stream_cloud_event_user_updated_previous_object_identities_item_database_profile_data", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseProviderEnum": ".event_stream_cloud_event_user_updated_previous_object_identities_item_database_provider_enum", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseUserId": ".event_stream_cloud_event_user_updated_previous_object_identities_item_database_user_id", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterprise": ".event_stream_cloud_event_user_updated_previous_object_identities_item_enterprise", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseIsSocialEnum": ".event_stream_cloud_event_user_updated_previous_object_identities_item_enterprise_is_social_enum", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseProfileData": ".event_stream_cloud_event_user_updated_previous_object_identities_item_enterprise_profile_data", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseProviderEnum": ".event_stream_cloud_event_user_updated_previous_object_identities_item_enterprise_provider_enum", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseUserId": ".event_stream_cloud_event_user_updated_previous_object_identities_item_enterprise_user_id", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordless": ".event_stream_cloud_event_user_updated_previous_object_identities_item_passwordless", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessIsSocialEnum": ".event_stream_cloud_event_user_updated_previous_object_identities_item_passwordless_is_social_enum", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessProfileData": ".event_stream_cloud_event_user_updated_previous_object_identities_item_passwordless_profile_data", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessProviderEnum": ".event_stream_cloud_event_user_updated_previous_object_identities_item_passwordless_provider_enum", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessUserId": ".event_stream_cloud_event_user_updated_previous_object_identities_item_passwordless_user_id", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocial": ".event_stream_cloud_event_user_updated_previous_object_identities_item_social", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialIsSocialEnum": ".event_stream_cloud_event_user_updated_previous_object_identities_item_social_is_social_enum", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProfileData": ".event_stream_cloud_event_user_updated_previous_object_identities_item_social_profile_data", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum": ".event_stream_cloud_event_user_updated_previous_object_identities_item_social_provider_enum", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialUserId": ".event_stream_cloud_event_user_updated_previous_object_identities_item_social_user_id", - "EventStreamCloudEventUserUpdatedPreviousObjectUserMetadata": ".event_stream_cloud_event_user_updated_previous_object_user_metadata", - "EventStreamCloudEventUserUpdatedTypeEnum": ".event_stream_cloud_event_user_updated_type_enum", - "EventStreamDelivery": ".event_stream_delivery", - "EventStreamDeliveryAttempt": ".event_stream_delivery_attempt", - "EventStreamDeliveryEventTypeEnum": ".event_stream_delivery_event_type_enum", - "EventStreamDeliveryStatusEnum": ".event_stream_delivery_status_enum", - "EventStreamDestinationPatch": ".event_stream_destination_patch", - "EventStreamEventBridgeAwsRegionEnum": ".event_stream_event_bridge_aws_region_enum", - "EventStreamEventBridgeConfiguration": ".event_stream_event_bridge_configuration", - "EventStreamEventBridgeDestination": ".event_stream_event_bridge_destination", - "EventStreamEventBridgeDestinationTypeEnum": ".event_stream_event_bridge_destination_type_enum", - "EventStreamEventBridgeResponseContent": ".event_stream_event_bridge_response_content", - "EventStreamEventTypeEnum": ".event_stream_event_type_enum", - "EventStreamResponseContent": ".event_stream_response_content", - "EventStreamStatusEnum": ".event_stream_status_enum", - "EventStreamSubscribeEventsEventTypeEnum": ".event_stream_subscribe_events_event_type_enum", - "EventStreamSubscribeEventsEventTypeParam": ".event_stream_subscribe_events_event_type_param", - "EventStreamSubscribeEventsResponseContent": ".event_stream_subscribe_events_response_content", - "EventStreamSubscribeEventsResponseContent_ConnectionCreated": ".event_stream_subscribe_events_response_content", - "EventStreamSubscribeEventsResponseContent_ConnectionDeleted": ".event_stream_subscribe_events_response_content", - "EventStreamSubscribeEventsResponseContent_ConnectionUpdated": ".event_stream_subscribe_events_response_content", - "EventStreamSubscribeEventsResponseContent_Error": ".event_stream_subscribe_events_response_content", - "EventStreamSubscribeEventsResponseContent_GroupCreated": ".event_stream_subscribe_events_response_content", - "EventStreamSubscribeEventsResponseContent_GroupDeleted": ".event_stream_subscribe_events_response_content", - "EventStreamSubscribeEventsResponseContent_GroupMemberAdded": ".event_stream_subscribe_events_response_content", - "EventStreamSubscribeEventsResponseContent_GroupMemberDeleted": ".event_stream_subscribe_events_response_content", - "EventStreamSubscribeEventsResponseContent_GroupRoleAssigned": ".event_stream_subscribe_events_response_content", - "EventStreamSubscribeEventsResponseContent_GroupRoleDeleted": ".event_stream_subscribe_events_response_content", - "EventStreamSubscribeEventsResponseContent_GroupUpdated": ".event_stream_subscribe_events_response_content", - "EventStreamSubscribeEventsResponseContent_OffsetOnly": ".event_stream_subscribe_events_response_content", - "EventStreamSubscribeEventsResponseContent_OrganizationConnectionAdded": ".event_stream_subscribe_events_response_content", - "EventStreamSubscribeEventsResponseContent_OrganizationConnectionRemoved": ".event_stream_subscribe_events_response_content", - "EventStreamSubscribeEventsResponseContent_OrganizationConnectionUpdated": ".event_stream_subscribe_events_response_content", - "EventStreamSubscribeEventsResponseContent_OrganizationCreated": ".event_stream_subscribe_events_response_content", - "EventStreamSubscribeEventsResponseContent_OrganizationDeleted": ".event_stream_subscribe_events_response_content", - "EventStreamSubscribeEventsResponseContent_OrganizationGroupRoleAssigned": ".event_stream_subscribe_events_response_content", - "EventStreamSubscribeEventsResponseContent_OrganizationGroupRoleDeleted": ".event_stream_subscribe_events_response_content", - "EventStreamSubscribeEventsResponseContent_OrganizationMemberAdded": ".event_stream_subscribe_events_response_content", - "EventStreamSubscribeEventsResponseContent_OrganizationMemberDeleted": ".event_stream_subscribe_events_response_content", - "EventStreamSubscribeEventsResponseContent_OrganizationMemberRoleAssigned": ".event_stream_subscribe_events_response_content", - "EventStreamSubscribeEventsResponseContent_OrganizationMemberRoleDeleted": ".event_stream_subscribe_events_response_content", - "EventStreamSubscribeEventsResponseContent_OrganizationUpdated": ".event_stream_subscribe_events_response_content", - "EventStreamSubscribeEventsResponseContent_UserCreated": ".event_stream_subscribe_events_response_content", - "EventStreamSubscribeEventsResponseContent_UserDeleted": ".event_stream_subscribe_events_response_content", - "EventStreamSubscribeEventsResponseContent_UserUpdated": ".event_stream_subscribe_events_response_content", - "EventStreamSubscription": ".event_stream_subscription", - "EventStreamTestEventTypeEnum": ".event_stream_test_event_type_enum", - "EventStreamWebhookAuthorizationResponse": ".event_stream_webhook_authorization_response", - "EventStreamWebhookBasicAuth": ".event_stream_webhook_basic_auth", - "EventStreamWebhookBasicAuthMethodEnum": ".event_stream_webhook_basic_auth_method_enum", - "EventStreamWebhookBearerAuth": ".event_stream_webhook_bearer_auth", - "EventStreamWebhookBearerAuthMethodEnum": ".event_stream_webhook_bearer_auth_method_enum", - "EventStreamWebhookConfiguration": ".event_stream_webhook_configuration", - "EventStreamWebhookCustomHeaderAuth": ".event_stream_webhook_custom_header_auth", - "EventStreamWebhookCustomHeaderAuthMethodEnum": ".event_stream_webhook_custom_header_auth_method_enum", - "EventStreamWebhookDestination": ".event_stream_webhook_destination", - "EventStreamWebhookDestinationTypeEnum": ".event_stream_webhook_destination_type_enum", - "EventStreamWebhookResponseContent": ".event_stream_webhook_response_content", - "ExperimentListItem": ".experiment_list_item", - "ExperimentStatusEnum": ".experiment_status_enum", - "ExperimentTransitionStatusEnum": ".experiment_transition_status_enum", - "ExperimentValidationError": ".experiment_validation_error", - "ExpressConfiguration": ".express_configuration", - "ExpressConfigurationOrNull": ".express_configuration_or_null", - "ExtensibilityEmailProviderCredentials": ".extensibility_email_provider_credentials", - "FeatureFlag": ".feature_flag", - "FeatureFlagConfigParam": ".feature_flag_config_param", - "FeatureFlagConfigParamTypeEnum": ".feature_flag_config_param_type_enum", - "FeatureFlagConfigParams": ".feature_flag_config_params", - "FeatureFlagStatusEnum": ".feature_flag_status_enum", - "FeatureFlagTypeEnum": ".feature_flag_type_enum", - "FedCmLogin": ".fed_cm_login", - "FedCmLoginGoogle": ".fed_cm_login_google", - "FedCmLoginGooglePatch": ".fed_cm_login_google_patch", - "FedCmLoginPatch": ".fed_cm_login_patch", - "FlowAction": ".flow_action", - "FlowActionActivecampaign": ".flow_action_activecampaign", - "FlowActionActivecampaignListContacts": ".flow_action_activecampaign_list_contacts", - "FlowActionActivecampaignListContactsAction": ".flow_action_activecampaign_list_contacts_action", - "FlowActionActivecampaignListContactsParams": ".flow_action_activecampaign_list_contacts_params", - "FlowActionActivecampaignListContactsType": ".flow_action_activecampaign_list_contacts_type", - "FlowActionActivecampaignUpsertContact": ".flow_action_activecampaign_upsert_contact", - "FlowActionActivecampaignUpsertContactAction": ".flow_action_activecampaign_upsert_contact_action", - "FlowActionActivecampaignUpsertContactParams": ".flow_action_activecampaign_upsert_contact_params", - "FlowActionActivecampaignUpsertContactParamsCustomFields": ".flow_action_activecampaign_upsert_contact_params_custom_fields", - "FlowActionActivecampaignUpsertContactType": ".flow_action_activecampaign_upsert_contact_type", - "FlowActionAirtable": ".flow_action_airtable", - "FlowActionAirtableCreateRecord": ".flow_action_airtable_create_record", - "FlowActionAirtableCreateRecordAction": ".flow_action_airtable_create_record_action", - "FlowActionAirtableCreateRecordParams": ".flow_action_airtable_create_record_params", - "FlowActionAirtableCreateRecordParamsFields": ".flow_action_airtable_create_record_params_fields", - "FlowActionAirtableCreateRecordType": ".flow_action_airtable_create_record_type", - "FlowActionAirtableListRecords": ".flow_action_airtable_list_records", - "FlowActionAirtableListRecordsAction": ".flow_action_airtable_list_records_action", - "FlowActionAirtableListRecordsParams": ".flow_action_airtable_list_records_params", - "FlowActionAirtableListRecordsType": ".flow_action_airtable_list_records_type", - "FlowActionAirtableUpdateRecord": ".flow_action_airtable_update_record", - "FlowActionAirtableUpdateRecordAction": ".flow_action_airtable_update_record_action", - "FlowActionAirtableUpdateRecordParams": ".flow_action_airtable_update_record_params", - "FlowActionAirtableUpdateRecordParamsFields": ".flow_action_airtable_update_record_params_fields", - "FlowActionAirtableUpdateRecordType": ".flow_action_airtable_update_record_type", - "FlowActionAuth0": ".flow_action_auth_0", - "FlowActionAuth0CreateUser": ".flow_action_auth_0_create_user", - "FlowActionAuth0CreateUserAction": ".flow_action_auth_0_create_user_action", - "FlowActionAuth0CreateUserParams": ".flow_action_auth_0_create_user_params", - "FlowActionAuth0CreateUserParamsPayload": ".flow_action_auth_0_create_user_params_payload", - "FlowActionAuth0CreateUserType": ".flow_action_auth_0_create_user_type", - "FlowActionAuth0GetUser": ".flow_action_auth_0_get_user", - "FlowActionAuth0GetUserAction": ".flow_action_auth_0_get_user_action", - "FlowActionAuth0GetUserParams": ".flow_action_auth_0_get_user_params", - "FlowActionAuth0GetUserType": ".flow_action_auth_0_get_user_type", - "FlowActionAuth0MakeCall": ".flow_action_auth_0_make_call", - "FlowActionAuth0MakeCallAction": ".flow_action_auth_0_make_call_action", - "FlowActionAuth0MakeCallParams": ".flow_action_auth_0_make_call_params", - "FlowActionAuth0MakeCallParamsCustomVars": ".flow_action_auth_0_make_call_params_custom_vars", - "FlowActionAuth0MakeCallType": ".flow_action_auth_0_make_call_type", - "FlowActionAuth0SendEmail": ".flow_action_auth_0_send_email", - "FlowActionAuth0SendEmailAction": ".flow_action_auth_0_send_email_action", - "FlowActionAuth0SendEmailParams": ".flow_action_auth_0_send_email_params", - "FlowActionAuth0SendEmailParamsFrom": ".flow_action_auth_0_send_email_params_from", - "FlowActionAuth0SendEmailParamsFromEmail": ".flow_action_auth_0_send_email_params_from_email", - "FlowActionAuth0SendEmailParamsTo": ".flow_action_auth_0_send_email_params_to", - "FlowActionAuth0SendEmailType": ".flow_action_auth_0_send_email_type", - "FlowActionAuth0SendRequest": ".flow_action_auth_0_send_request", - "FlowActionAuth0SendRequestAction": ".flow_action_auth_0_send_request_action", - "FlowActionAuth0SendRequestParams": ".flow_action_auth_0_send_request_params", - "FlowActionAuth0SendRequestParamsCustomVars": ".flow_action_auth_0_send_request_params_custom_vars", - "FlowActionAuth0SendRequestParamsHeaders": ".flow_action_auth_0_send_request_params_headers", - "FlowActionAuth0SendRequestParamsMethod": ".flow_action_auth_0_send_request_params_method", - "FlowActionAuth0SendRequestParamsPayload": ".flow_action_auth_0_send_request_params_payload", - "FlowActionAuth0SendRequestParamsPayloadObject": ".flow_action_auth_0_send_request_params_payload_object", - "FlowActionAuth0SendRequestParamsQueryParams": ".flow_action_auth_0_send_request_params_query_params", - "FlowActionAuth0SendRequestParamsQueryParamsValue": ".flow_action_auth_0_send_request_params_query_params_value", - "FlowActionAuth0SendRequestType": ".flow_action_auth_0_send_request_type", - "FlowActionAuth0SendSms": ".flow_action_auth_0_send_sms", - "FlowActionAuth0SendSmsAction": ".flow_action_auth_0_send_sms_action", - "FlowActionAuth0SendSmsParams": ".flow_action_auth_0_send_sms_params", - "FlowActionAuth0SendSmsParamsCustomVars": ".flow_action_auth_0_send_sms_params_custom_vars", - "FlowActionAuth0SendSmsType": ".flow_action_auth_0_send_sms_type", - "FlowActionAuth0UpdateUser": ".flow_action_auth_0_update_user", - "FlowActionAuth0UpdateUserAction": ".flow_action_auth_0_update_user_action", - "FlowActionAuth0UpdateUserParams": ".flow_action_auth_0_update_user_params", - "FlowActionAuth0UpdateUserParamsChanges": ".flow_action_auth_0_update_user_params_changes", - "FlowActionAuth0UpdateUserType": ".flow_action_auth_0_update_user_type", - "FlowActionBigquery": ".flow_action_bigquery", - "FlowActionBigqueryInsertRows": ".flow_action_bigquery_insert_rows", - "FlowActionBigqueryInsertRowsAction": ".flow_action_bigquery_insert_rows_action", - "FlowActionBigqueryInsertRowsParams": ".flow_action_bigquery_insert_rows_params", - "FlowActionBigqueryInsertRowsParamsData": ".flow_action_bigquery_insert_rows_params_data", - "FlowActionBigqueryInsertRowsType": ".flow_action_bigquery_insert_rows_type", - "FlowActionClearbit": ".flow_action_clearbit", - "FlowActionClearbitFindCompany": ".flow_action_clearbit_find_company", - "FlowActionClearbitFindCompanyAction": ".flow_action_clearbit_find_company_action", - "FlowActionClearbitFindCompanyParams": ".flow_action_clearbit_find_company_params", - "FlowActionClearbitFindCompanyType": ".flow_action_clearbit_find_company_type", - "FlowActionClearbitFindPerson": ".flow_action_clearbit_find_person", - "FlowActionClearbitFindPersonAction": ".flow_action_clearbit_find_person_action", - "FlowActionClearbitFindPersonParams": ".flow_action_clearbit_find_person_params", - "FlowActionClearbitFindPersonType": ".flow_action_clearbit_find_person_type", - "FlowActionEmail": ".flow_action_email", - "FlowActionEmailVerifyEmail": ".flow_action_email_verify_email", - "FlowActionEmailVerifyEmailAction": ".flow_action_email_verify_email_action", - "FlowActionEmailVerifyEmailParams": ".flow_action_email_verify_email_params", - "FlowActionEmailVerifyEmailParamsRules": ".flow_action_email_verify_email_params_rules", - "FlowActionEmailVerifyEmailType": ".flow_action_email_verify_email_type", - "FlowActionFlow": ".flow_action_flow", - "FlowActionFlowBooleanCondition": ".flow_action_flow_boolean_condition", - "FlowActionFlowBooleanConditionAction": ".flow_action_flow_boolean_condition_action", - "FlowActionFlowBooleanConditionParams": ".flow_action_flow_boolean_condition_params", - "FlowActionFlowBooleanConditionType": ".flow_action_flow_boolean_condition_type", - "FlowActionFlowDelayFlow": ".flow_action_flow_delay_flow", - "FlowActionFlowDelayFlowAction": ".flow_action_flow_delay_flow_action", - "FlowActionFlowDelayFlowParams": ".flow_action_flow_delay_flow_params", - "FlowActionFlowDelayFlowParamsNumber": ".flow_action_flow_delay_flow_params_number", - "FlowActionFlowDelayFlowParamsUnits": ".flow_action_flow_delay_flow_params_units", - "FlowActionFlowDelayFlowType": ".flow_action_flow_delay_flow_type", - "FlowActionFlowDoNothing": ".flow_action_flow_do_nothing", - "FlowActionFlowDoNothingAction": ".flow_action_flow_do_nothing_action", - "FlowActionFlowDoNothingParams": ".flow_action_flow_do_nothing_params", - "FlowActionFlowDoNothingType": ".flow_action_flow_do_nothing_type", - "FlowActionFlowErrorMessage": ".flow_action_flow_error_message", - "FlowActionFlowErrorMessageAction": ".flow_action_flow_error_message_action", - "FlowActionFlowErrorMessageParams": ".flow_action_flow_error_message_params", - "FlowActionFlowErrorMessageType": ".flow_action_flow_error_message_type", - "FlowActionFlowMapValue": ".flow_action_flow_map_value", - "FlowActionFlowMapValueAction": ".flow_action_flow_map_value_action", - "FlowActionFlowMapValueParams": ".flow_action_flow_map_value_params", - "FlowActionFlowMapValueParamsCases": ".flow_action_flow_map_value_params_cases", - "FlowActionFlowMapValueParamsFallback": ".flow_action_flow_map_value_params_fallback", - "FlowActionFlowMapValueParamsFallbackObject": ".flow_action_flow_map_value_params_fallback_object", - "FlowActionFlowMapValueParamsInput": ".flow_action_flow_map_value_params_input", - "FlowActionFlowMapValueType": ".flow_action_flow_map_value_type", - "FlowActionFlowReturnJson": ".flow_action_flow_return_json", - "FlowActionFlowReturnJsonAction": ".flow_action_flow_return_json_action", - "FlowActionFlowReturnJsonParams": ".flow_action_flow_return_json_params", - "FlowActionFlowReturnJsonParamsPayload": ".flow_action_flow_return_json_params_payload", - "FlowActionFlowReturnJsonParamsPayloadObject": ".flow_action_flow_return_json_params_payload_object", - "FlowActionFlowReturnJsonType": ".flow_action_flow_return_json_type", - "FlowActionFlowStoreVars": ".flow_action_flow_store_vars", - "FlowActionFlowStoreVarsAction": ".flow_action_flow_store_vars_action", - "FlowActionFlowStoreVarsParams": ".flow_action_flow_store_vars_params", - "FlowActionFlowStoreVarsParamsVars": ".flow_action_flow_store_vars_params_vars", - "FlowActionFlowStoreVarsType": ".flow_action_flow_store_vars_type", - "FlowActionGoogleSheets": ".flow_action_google_sheets", - "FlowActionGoogleSheetsAddRow": ".flow_action_google_sheets_add_row", - "FlowActionGoogleSheetsAddRowAction": ".flow_action_google_sheets_add_row_action", - "FlowActionGoogleSheetsAddRowParams": ".flow_action_google_sheets_add_row_params", - "FlowActionGoogleSheetsAddRowParamsSheetId": ".flow_action_google_sheets_add_row_params_sheet_id", - "FlowActionGoogleSheetsAddRowParamsValues": ".flow_action_google_sheets_add_row_params_values", - "FlowActionGoogleSheetsAddRowType": ".flow_action_google_sheets_add_row_type", - "FlowActionHttp": ".flow_action_http", - "FlowActionHttpSendRequest": ".flow_action_http_send_request", - "FlowActionHttpSendRequestAction": ".flow_action_http_send_request_action", - "FlowActionHttpSendRequestParams": ".flow_action_http_send_request_params", - "FlowActionHttpSendRequestParamsBasicAuth": ".flow_action_http_send_request_params_basic_auth", - "FlowActionHttpSendRequestParamsContentType": ".flow_action_http_send_request_params_content_type", - "FlowActionHttpSendRequestParamsHeaders": ".flow_action_http_send_request_params_headers", - "FlowActionHttpSendRequestParamsMethod": ".flow_action_http_send_request_params_method", - "FlowActionHttpSendRequestParamsPayload": ".flow_action_http_send_request_params_payload", - "FlowActionHttpSendRequestParamsPayloadObject": ".flow_action_http_send_request_params_payload_object", - "FlowActionHttpSendRequestParamsQueryParams": ".flow_action_http_send_request_params_query_params", - "FlowActionHttpSendRequestParamsQueryParamsValue": ".flow_action_http_send_request_params_query_params_value", - "FlowActionHttpSendRequestType": ".flow_action_http_send_request_type", - "FlowActionHubspot": ".flow_action_hubspot", - "FlowActionHubspotEnrollContact": ".flow_action_hubspot_enroll_contact", - "FlowActionHubspotEnrollContactAction": ".flow_action_hubspot_enroll_contact_action", - "FlowActionHubspotEnrollContactParams": ".flow_action_hubspot_enroll_contact_params", - "FlowActionHubspotEnrollContactParamsWorkflowId": ".flow_action_hubspot_enroll_contact_params_workflow_id", - "FlowActionHubspotEnrollContactType": ".flow_action_hubspot_enroll_contact_type", - "FlowActionHubspotGetContact": ".flow_action_hubspot_get_contact", - "FlowActionHubspotGetContactAction": ".flow_action_hubspot_get_contact_action", - "FlowActionHubspotGetContactParams": ".flow_action_hubspot_get_contact_params", - "FlowActionHubspotGetContactType": ".flow_action_hubspot_get_contact_type", - "FlowActionHubspotUpsertContact": ".flow_action_hubspot_upsert_contact", - "FlowActionHubspotUpsertContactAction": ".flow_action_hubspot_upsert_contact_action", - "FlowActionHubspotUpsertContactParams": ".flow_action_hubspot_upsert_contact_params", - "FlowActionHubspotUpsertContactParamsProperty": ".flow_action_hubspot_upsert_contact_params_property", - "FlowActionHubspotUpsertContactType": ".flow_action_hubspot_upsert_contact_type", - "FlowActionJson": ".flow_action_json", - "FlowActionJsonCreateJson": ".flow_action_json_create_json", - "FlowActionJsonCreateJsonAction": ".flow_action_json_create_json_action", - "FlowActionJsonCreateJsonParams": ".flow_action_json_create_json_params", - "FlowActionJsonCreateJsonParamsObject": ".flow_action_json_create_json_params_object", - "FlowActionJsonCreateJsonType": ".flow_action_json_create_json_type", - "FlowActionJsonParseJson": ".flow_action_json_parse_json", - "FlowActionJsonParseJsonAction": ".flow_action_json_parse_json_action", - "FlowActionJsonParseJsonParams": ".flow_action_json_parse_json_params", - "FlowActionJsonParseJsonType": ".flow_action_json_parse_json_type", - "FlowActionJsonSerializeJson": ".flow_action_json_serialize_json", - "FlowActionJsonSerializeJsonAction": ".flow_action_json_serialize_json_action", - "FlowActionJsonSerializeJsonParams": ".flow_action_json_serialize_json_params", - "FlowActionJsonSerializeJsonParamsObject": ".flow_action_json_serialize_json_params_object", - "FlowActionJsonSerializeJsonParamsObjectObject": ".flow_action_json_serialize_json_params_object_object", - "FlowActionJsonSerializeJsonType": ".flow_action_json_serialize_json_type", - "FlowActionJwt": ".flow_action_jwt", - "FlowActionJwtDecodeJwt": ".flow_action_jwt_decode_jwt", - "FlowActionJwtDecodeJwtAction": ".flow_action_jwt_decode_jwt_action", - "FlowActionJwtDecodeJwtParams": ".flow_action_jwt_decode_jwt_params", - "FlowActionJwtDecodeJwtType": ".flow_action_jwt_decode_jwt_type", - "FlowActionJwtSignJwt": ".flow_action_jwt_sign_jwt", - "FlowActionJwtSignJwtAction": ".flow_action_jwt_sign_jwt_action", - "FlowActionJwtSignJwtParams": ".flow_action_jwt_sign_jwt_params", - "FlowActionJwtSignJwtParamsPayload": ".flow_action_jwt_sign_jwt_params_payload", - "FlowActionJwtSignJwtType": ".flow_action_jwt_sign_jwt_type", - "FlowActionJwtVerifyJwt": ".flow_action_jwt_verify_jwt", - "FlowActionJwtVerifyJwtAction": ".flow_action_jwt_verify_jwt_action", - "FlowActionJwtVerifyJwtParams": ".flow_action_jwt_verify_jwt_params", - "FlowActionJwtVerifyJwtType": ".flow_action_jwt_verify_jwt_type", - "FlowActionMailchimp": ".flow_action_mailchimp", - "FlowActionMailchimpUpsertMember": ".flow_action_mailchimp_upsert_member", - "FlowActionMailchimpUpsertMemberAction": ".flow_action_mailchimp_upsert_member_action", - "FlowActionMailchimpUpsertMemberParams": ".flow_action_mailchimp_upsert_member_params", - "FlowActionMailchimpUpsertMemberParamsMember": ".flow_action_mailchimp_upsert_member_params_member", - "FlowActionMailchimpUpsertMemberParamsMemberMergeFields": ".flow_action_mailchimp_upsert_member_params_member_merge_fields", - "FlowActionMailchimpUpsertMemberType": ".flow_action_mailchimp_upsert_member_type", - "FlowActionMailjet": ".flow_action_mailjet", - "FlowActionMailjetSendEmail": ".flow_action_mailjet_send_email", - "FlowActionMailjetSendEmailAction": ".flow_action_mailjet_send_email_action", - "FlowActionMailjetSendEmailParams": ".flow_action_mailjet_send_email_params", - "FlowActionMailjetSendEmailParamsContent": ".flow_action_mailjet_send_email_params_content", - "FlowActionMailjetSendEmailParamsTemplateId": ".flow_action_mailjet_send_email_params_template_id", - "FlowActionMailjetSendEmailType": ".flow_action_mailjet_send_email_type", - "FlowActionOtp": ".flow_action_otp", - "FlowActionOtpGenerateCode": ".flow_action_otp_generate_code", - "FlowActionOtpGenerateCodeAction": ".flow_action_otp_generate_code_action", - "FlowActionOtpGenerateCodeParams": ".flow_action_otp_generate_code_params", - "FlowActionOtpGenerateCodeType": ".flow_action_otp_generate_code_type", - "FlowActionOtpVerifyCode": ".flow_action_otp_verify_code", - "FlowActionOtpVerifyCodeAction": ".flow_action_otp_verify_code_action", - "FlowActionOtpVerifyCodeParams": ".flow_action_otp_verify_code_params", - "FlowActionOtpVerifyCodeParamsCode": ".flow_action_otp_verify_code_params_code", - "FlowActionOtpVerifyCodeType": ".flow_action_otp_verify_code_type", - "FlowActionPipedrive": ".flow_action_pipedrive", - "FlowActionPipedriveAddDeal": ".flow_action_pipedrive_add_deal", - "FlowActionPipedriveAddDealAction": ".flow_action_pipedrive_add_deal_action", - "FlowActionPipedriveAddDealParams": ".flow_action_pipedrive_add_deal_params", - "FlowActionPipedriveAddDealParamsFields": ".flow_action_pipedrive_add_deal_params_fields", - "FlowActionPipedriveAddDealParamsOrganizationId": ".flow_action_pipedrive_add_deal_params_organization_id", - "FlowActionPipedriveAddDealParamsPersonId": ".flow_action_pipedrive_add_deal_params_person_id", - "FlowActionPipedriveAddDealParamsStageId": ".flow_action_pipedrive_add_deal_params_stage_id", - "FlowActionPipedriveAddDealParamsUserId": ".flow_action_pipedrive_add_deal_params_user_id", - "FlowActionPipedriveAddDealType": ".flow_action_pipedrive_add_deal_type", - "FlowActionPipedriveAddOrganization": ".flow_action_pipedrive_add_organization", - "FlowActionPipedriveAddOrganizationAction": ".flow_action_pipedrive_add_organization_action", - "FlowActionPipedriveAddOrganizationParams": ".flow_action_pipedrive_add_organization_params", - "FlowActionPipedriveAddOrganizationParamsFields": ".flow_action_pipedrive_add_organization_params_fields", - "FlowActionPipedriveAddOrganizationParamsOwnerId": ".flow_action_pipedrive_add_organization_params_owner_id", - "FlowActionPipedriveAddOrganizationType": ".flow_action_pipedrive_add_organization_type", - "FlowActionPipedriveAddPerson": ".flow_action_pipedrive_add_person", - "FlowActionPipedriveAddPersonAction": ".flow_action_pipedrive_add_person_action", - "FlowActionPipedriveAddPersonParams": ".flow_action_pipedrive_add_person_params", - "FlowActionPipedriveAddPersonParamsFields": ".flow_action_pipedrive_add_person_params_fields", - "FlowActionPipedriveAddPersonParamsOrganizationId": ".flow_action_pipedrive_add_person_params_organization_id", - "FlowActionPipedriveAddPersonParamsOwnerId": ".flow_action_pipedrive_add_person_params_owner_id", - "FlowActionPipedriveAddPersonType": ".flow_action_pipedrive_add_person_type", - "FlowActionSalesforce": ".flow_action_salesforce", - "FlowActionSalesforceCreateLead": ".flow_action_salesforce_create_lead", - "FlowActionSalesforceCreateLeadAction": ".flow_action_salesforce_create_lead_action", - "FlowActionSalesforceCreateLeadParams": ".flow_action_salesforce_create_lead_params", - "FlowActionSalesforceCreateLeadParamsPayload": ".flow_action_salesforce_create_lead_params_payload", - "FlowActionSalesforceCreateLeadType": ".flow_action_salesforce_create_lead_type", - "FlowActionSalesforceGetLead": ".flow_action_salesforce_get_lead", - "FlowActionSalesforceGetLeadAction": ".flow_action_salesforce_get_lead_action", - "FlowActionSalesforceGetLeadParams": ".flow_action_salesforce_get_lead_params", - "FlowActionSalesforceGetLeadType": ".flow_action_salesforce_get_lead_type", - "FlowActionSalesforceSearchLeads": ".flow_action_salesforce_search_leads", - "FlowActionSalesforceSearchLeadsAction": ".flow_action_salesforce_search_leads_action", - "FlowActionSalesforceSearchLeadsParams": ".flow_action_salesforce_search_leads_params", - "FlowActionSalesforceSearchLeadsParamsSearchField": ".flow_action_salesforce_search_leads_params_search_field", - "FlowActionSalesforceSearchLeadsType": ".flow_action_salesforce_search_leads_type", - "FlowActionSalesforceUpdateLead": ".flow_action_salesforce_update_lead", - "FlowActionSalesforceUpdateLeadAction": ".flow_action_salesforce_update_lead_action", - "FlowActionSalesforceUpdateLeadParams": ".flow_action_salesforce_update_lead_params", - "FlowActionSalesforceUpdateLeadParamsPayload": ".flow_action_salesforce_update_lead_params_payload", - "FlowActionSalesforceUpdateLeadType": ".flow_action_salesforce_update_lead_type", - "FlowActionSendgrid": ".flow_action_sendgrid", - "FlowActionSendgridSendEmail": ".flow_action_sendgrid_send_email", - "FlowActionSendgridSendEmailAction": ".flow_action_sendgrid_send_email_action", - "FlowActionSendgridSendEmailParams": ".flow_action_sendgrid_send_email_params", - "FlowActionSendgridSendEmailParamsPerson": ".flow_action_sendgrid_send_email_params_person", - "FlowActionSendgridSendEmailType": ".flow_action_sendgrid_send_email_type", - "FlowActionSlack": ".flow_action_slack", - "FlowActionSlackPostMessage": ".flow_action_slack_post_message", - "FlowActionSlackPostMessageAction": ".flow_action_slack_post_message_action", - "FlowActionSlackPostMessageParams": ".flow_action_slack_post_message_params", - "FlowActionSlackPostMessageParamsAttachment": ".flow_action_slack_post_message_params_attachment", - "FlowActionSlackPostMessageParamsAttachmentColor": ".flow_action_slack_post_message_params_attachment_color", - "FlowActionSlackPostMessageParamsAttachmentField": ".flow_action_slack_post_message_params_attachment_field", - "FlowActionSlackPostMessageType": ".flow_action_slack_post_message_type", - "FlowActionStripe": ".flow_action_stripe", - "FlowActionStripeAddTaxId": ".flow_action_stripe_add_tax_id", - "FlowActionStripeAddTaxIdAction": ".flow_action_stripe_add_tax_id_action", - "FlowActionStripeAddTaxIdParams": ".flow_action_stripe_add_tax_id_params", - "FlowActionStripeAddTaxIdType": ".flow_action_stripe_add_tax_id_type", - "FlowActionStripeAddress": ".flow_action_stripe_address", - "FlowActionStripeCreateCustomer": ".flow_action_stripe_create_customer", - "FlowActionStripeCreateCustomerAction": ".flow_action_stripe_create_customer_action", - "FlowActionStripeCreateCustomerParams": ".flow_action_stripe_create_customer_params", - "FlowActionStripeCreateCustomerType": ".flow_action_stripe_create_customer_type", - "FlowActionStripeCreatePortalSession": ".flow_action_stripe_create_portal_session", - "FlowActionStripeCreatePortalSessionAction": ".flow_action_stripe_create_portal_session_action", - "FlowActionStripeCreatePortalSessionParams": ".flow_action_stripe_create_portal_session_params", - "FlowActionStripeCreatePortalSessionType": ".flow_action_stripe_create_portal_session_type", - "FlowActionStripeDeleteTaxId": ".flow_action_stripe_delete_tax_id", - "FlowActionStripeDeleteTaxIdAction": ".flow_action_stripe_delete_tax_id_action", - "FlowActionStripeDeleteTaxIdParams": ".flow_action_stripe_delete_tax_id_params", - "FlowActionStripeDeleteTaxIdType": ".flow_action_stripe_delete_tax_id_type", - "FlowActionStripeFindCustomers": ".flow_action_stripe_find_customers", - "FlowActionStripeFindCustomersAction": ".flow_action_stripe_find_customers_action", - "FlowActionStripeFindCustomersParams": ".flow_action_stripe_find_customers_params", - "FlowActionStripeFindCustomersType": ".flow_action_stripe_find_customers_type", - "FlowActionStripeGetCustomer": ".flow_action_stripe_get_customer", - "FlowActionStripeGetCustomerAction": ".flow_action_stripe_get_customer_action", - "FlowActionStripeGetCustomerParams": ".flow_action_stripe_get_customer_params", - "FlowActionStripeGetCustomerType": ".flow_action_stripe_get_customer_type", - "FlowActionStripeMetadata": ".flow_action_stripe_metadata", - "FlowActionStripeTaxId": ".flow_action_stripe_tax_id", - "FlowActionStripeUpdateCustomer": ".flow_action_stripe_update_customer", - "FlowActionStripeUpdateCustomerAction": ".flow_action_stripe_update_customer_action", - "FlowActionStripeUpdateCustomerParams": ".flow_action_stripe_update_customer_params", - "FlowActionStripeUpdateCustomerType": ".flow_action_stripe_update_customer_type", - "FlowActionTelegram": ".flow_action_telegram", - "FlowActionTelegramSendMessage": ".flow_action_telegram_send_message", - "FlowActionTelegramSendMessageAction": ".flow_action_telegram_send_message_action", - "FlowActionTelegramSendMessageParams": ".flow_action_telegram_send_message_params", - "FlowActionTelegramSendMessageType": ".flow_action_telegram_send_message_type", - "FlowActionTwilio": ".flow_action_twilio", - "FlowActionTwilioMakeCall": ".flow_action_twilio_make_call", - "FlowActionTwilioMakeCallAction": ".flow_action_twilio_make_call_action", - "FlowActionTwilioMakeCallParams": ".flow_action_twilio_make_call_params", - "FlowActionTwilioMakeCallType": ".flow_action_twilio_make_call_type", - "FlowActionTwilioSendSms": ".flow_action_twilio_send_sms", - "FlowActionTwilioSendSmsAction": ".flow_action_twilio_send_sms_action", - "FlowActionTwilioSendSmsParams": ".flow_action_twilio_send_sms_params", - "FlowActionTwilioSendSmsType": ".flow_action_twilio_send_sms_type", - "FlowActionWhatsapp": ".flow_action_whatsapp", - "FlowActionWhatsappSendMessage": ".flow_action_whatsapp_send_message", - "FlowActionWhatsappSendMessageAction": ".flow_action_whatsapp_send_message_action", - "FlowActionWhatsappSendMessageParams": ".flow_action_whatsapp_send_message_params", - "FlowActionWhatsappSendMessageParamsPayload": ".flow_action_whatsapp_send_message_params_payload", - "FlowActionWhatsappSendMessageParamsPayloadObject": ".flow_action_whatsapp_send_message_params_payload_object", - "FlowActionWhatsappSendMessageParamsType": ".flow_action_whatsapp_send_message_params_type", - "FlowActionWhatsappSendMessageType": ".flow_action_whatsapp_send_message_type", - "FlowActionXml": ".flow_action_xml", - "FlowActionXmlParseXml": ".flow_action_xml_parse_xml", - "FlowActionXmlParseXmlAction": ".flow_action_xml_parse_xml_action", - "FlowActionXmlParseXmlParams": ".flow_action_xml_parse_xml_params", - "FlowActionXmlParseXmlType": ".flow_action_xml_parse_xml_type", - "FlowActionXmlSerializeXml": ".flow_action_xml_serialize_xml", - "FlowActionXmlSerializeXmlAction": ".flow_action_xml_serialize_xml_action", - "FlowActionXmlSerializeXmlParams": ".flow_action_xml_serialize_xml_params", - "FlowActionXmlSerializeXmlParamsObject": ".flow_action_xml_serialize_xml_params_object", - "FlowActionXmlSerializeXmlParamsObjectObject": ".flow_action_xml_serialize_xml_params_object_object", - "FlowActionXmlSerializeXmlType": ".flow_action_xml_serialize_xml_type", - "FlowActionZapier": ".flow_action_zapier", - "FlowActionZapierTriggerWebhook": ".flow_action_zapier_trigger_webhook", - "FlowActionZapierTriggerWebhookAction": ".flow_action_zapier_trigger_webhook_action", - "FlowActionZapierTriggerWebhookParams": ".flow_action_zapier_trigger_webhook_params", - "FlowActionZapierTriggerWebhookParamsMethod": ".flow_action_zapier_trigger_webhook_params_method", - "FlowActionZapierTriggerWebhookType": ".flow_action_zapier_trigger_webhook_type", - "FlowExecutionDebug": ".flow_execution_debug", - "FlowExecutionSummary": ".flow_execution_summary", - "FlowSummary": ".flow_summary", - "FlowsVaultConnectioSetupApiKey": ".flows_vault_connectio_setup_api_key", - "FlowsVaultConnectioSetupApiKeyWithBaseUrl": ".flows_vault_connectio_setup_api_key_with_base_url", - "FlowsVaultConnectioSetupBigqueryOauthJwt": ".flows_vault_connectio_setup_bigquery_oauth_jwt", - "FlowsVaultConnectioSetupHttpBearer": ".flows_vault_connectio_setup_http_bearer", - "FlowsVaultConnectioSetupJwt": ".flows_vault_connectio_setup_jwt", - "FlowsVaultConnectioSetupJwtAlgorithmEnum": ".flows_vault_connectio_setup_jwt_algorithm_enum", - "FlowsVaultConnectioSetupMailjetApiKey": ".flows_vault_connectio_setup_mailjet_api_key", - "FlowsVaultConnectioSetupOauthApp": ".flows_vault_connectio_setup_oauth_app", - "FlowsVaultConnectioSetupOauthCode": ".flows_vault_connectio_setup_oauth_code", - "FlowsVaultConnectioSetupSecretApiKey": ".flows_vault_connectio_setup_secret_api_key", - "FlowsVaultConnectioSetupStripeKeyPair": ".flows_vault_connectio_setup_stripe_key_pair", - "FlowsVaultConnectioSetupToken": ".flows_vault_connectio_setup_token", - "FlowsVaultConnectioSetupTwilioApiKey": ".flows_vault_connectio_setup_twilio_api_key", - "FlowsVaultConnectioSetupTypeApiKeyEnum": ".flows_vault_connectio_setup_type_api_key_enum", - "FlowsVaultConnectioSetupTypeBearerEnum": ".flows_vault_connectio_setup_type_bearer_enum", - "FlowsVaultConnectioSetupTypeJwtEnum": ".flows_vault_connectio_setup_type_jwt_enum", - "FlowsVaultConnectioSetupTypeKeyPairEnum": ".flows_vault_connectio_setup_type_key_pair_enum", - "FlowsVaultConnectioSetupTypeOauthAppEnum": ".flows_vault_connectio_setup_type_oauth_app_enum", - "FlowsVaultConnectioSetupTypeOauthCodeEnum": ".flows_vault_connectio_setup_type_oauth_code_enum", - "FlowsVaultConnectioSetupTypeOauthJwtEnum": ".flows_vault_connectio_setup_type_oauth_jwt_enum", - "FlowsVaultConnectioSetupTypeTokenEnum": ".flows_vault_connectio_setup_type_token_enum", - "FlowsVaultConnectioSetupTypeWebhookEnum": ".flows_vault_connectio_setup_type_webhook_enum", - "FlowsVaultConnectioSetupWebhook": ".flows_vault_connectio_setup_webhook", - "FlowsVaultConnectionAppIdActivecampaignEnum": ".flows_vault_connection_app_id_activecampaign_enum", - "FlowsVaultConnectionAppIdAirtableEnum": ".flows_vault_connection_app_id_airtable_enum", - "FlowsVaultConnectionAppIdAuth0Enum": ".flows_vault_connection_app_id_auth_0_enum", - "FlowsVaultConnectionAppIdBigqueryEnum": ".flows_vault_connection_app_id_bigquery_enum", - "FlowsVaultConnectionAppIdClearbitEnum": ".flows_vault_connection_app_id_clearbit_enum", - "FlowsVaultConnectionAppIdDocusignEnum": ".flows_vault_connection_app_id_docusign_enum", - "FlowsVaultConnectionAppIdGoogleSheetsEnum": ".flows_vault_connection_app_id_google_sheets_enum", - "FlowsVaultConnectionAppIdHttpEnum": ".flows_vault_connection_app_id_http_enum", - "FlowsVaultConnectionAppIdHubspotEnum": ".flows_vault_connection_app_id_hubspot_enum", - "FlowsVaultConnectionAppIdJwtEnum": ".flows_vault_connection_app_id_jwt_enum", - "FlowsVaultConnectionAppIdMailchimpEnum": ".flows_vault_connection_app_id_mailchimp_enum", - "FlowsVaultConnectionAppIdMailjetEnum": ".flows_vault_connection_app_id_mailjet_enum", - "FlowsVaultConnectionAppIdPipedriveEnum": ".flows_vault_connection_app_id_pipedrive_enum", - "FlowsVaultConnectionAppIdSalesforceEnum": ".flows_vault_connection_app_id_salesforce_enum", - "FlowsVaultConnectionAppIdSendgridEnum": ".flows_vault_connection_app_id_sendgrid_enum", - "FlowsVaultConnectionAppIdSlackEnum": ".flows_vault_connection_app_id_slack_enum", - "FlowsVaultConnectionAppIdStripeEnum": ".flows_vault_connection_app_id_stripe_enum", - "FlowsVaultConnectionAppIdTelegramEnum": ".flows_vault_connection_app_id_telegram_enum", - "FlowsVaultConnectionAppIdTwilioEnum": ".flows_vault_connection_app_id_twilio_enum", - "FlowsVaultConnectionAppIdWhatsappEnum": ".flows_vault_connection_app_id_whatsapp_enum", - "FlowsVaultConnectionAppIdZapierEnum": ".flows_vault_connection_app_id_zapier_enum", - "FlowsVaultConnectionHttpApiKeySetup": ".flows_vault_connection_http_api_key_setup", - "FlowsVaultConnectionHttpApiKeySetupInEnum": ".flows_vault_connection_http_api_key_setup_in_enum", - "FlowsVaultConnectionHttpBasicAuthSetup": ".flows_vault_connection_http_basic_auth_setup", - "FlowsVaultConnectionHttpOauthClientCredentialsSetup": ".flows_vault_connection_http_oauth_client_credentials_setup", - "FlowsVaultConnectionSetupTypeApiKeyEnum": ".flows_vault_connection_setup_type_api_key_enum", - "FlowsVaultConnectionSetupTypeBasicAuthEnum": ".flows_vault_connection_setup_type_basic_auth_enum", - "FlowsVaultConnectionSetupTypeOauthClientCredentialsEnum": ".flows_vault_connection_setup_type_oauth_client_credentials_enum", - "FlowsVaultConnectionSummary": ".flows_vault_connection_summary", - "ForbiddenSchema": ".forbidden_schema", - "ForbiddenSchemaError": ".forbidden_schema_error", - "FormBlock": ".form_block", - "FormBlockDivider": ".form_block_divider", - "FormBlockDividerConfig": ".form_block_divider_config", - "FormBlockHtml": ".form_block_html", - "FormBlockHtmlConfig": ".form_block_html_config", - "FormBlockImage": ".form_block_image", - "FormBlockImageConfig": ".form_block_image_config", - "FormBlockImageConfigPositionEnum": ".form_block_image_config_position_enum", - "FormBlockJumpButton": ".form_block_jump_button", - "FormBlockJumpButtonConfig": ".form_block_jump_button_config", - "FormBlockJumpButtonConfigStyle": ".form_block_jump_button_config_style", - "FormBlockNextButton": ".form_block_next_button", - "FormBlockNextButtonConfig": ".form_block_next_button_config", - "FormBlockPreviousButton": ".form_block_previous_button", - "FormBlockPreviousButtonConfig": ".form_block_previous_button_config", - "FormBlockResendButton": ".form_block_resend_button", - "FormBlockResendButtonConfig": ".form_block_resend_button_config", - "FormBlockResendButtonConfigTextAlignmentEnum": ".form_block_resend_button_config_text_alignment_enum", - "FormBlockRichText": ".form_block_rich_text", - "FormBlockRichTextConfig": ".form_block_rich_text_config", - "FormBlockTypeDividerConst": ".form_block_type_divider_const", - "FormBlockTypeHtmlConst": ".form_block_type_html_const", - "FormBlockTypeImageConst": ".form_block_type_image_const", - "FormBlockTypeJumpButtonConst": ".form_block_type_jump_button_const", - "FormBlockTypeNextButtonConst": ".form_block_type_next_button_const", - "FormBlockTypePreviousButtonConst": ".form_block_type_previous_button_const", - "FormBlockTypeResendButtonConst": ".form_block_type_resend_button_const", - "FormBlockTypeRichTextConst": ".form_block_type_rich_text_const", - "FormComponent": ".form_component", - "FormComponentCategoryBlockConst": ".form_component_category_block_const", - "FormComponentCategoryFieldConst": ".form_component_category_field_const", - "FormComponentCategoryWidgetConst": ".form_component_category_widget_const", - "FormEndingNode": ".form_ending_node", - "FormEndingNodeAfterSubmit": ".form_ending_node_after_submit", - "FormEndingNodeId": ".form_ending_node_id", - "FormEndingNodeNullable": ".form_ending_node_nullable", - "FormEndingNodeRedirection": ".form_ending_node_redirection", - "FormEndingNodeResumeFlowTrueConst": ".form_ending_node_resume_flow_true_const", - "FormField": ".form_field", - "FormFieldBoolean": ".form_field_boolean", - "FormFieldBooleanConfig": ".form_field_boolean_config", - "FormFieldBooleanConfigOptions": ".form_field_boolean_config_options", - "FormFieldCards": ".form_field_cards", - "FormFieldCardsConfig": ".form_field_cards_config", - "FormFieldCardsConfigOption": ".form_field_cards_config_option", - "FormFieldChoice": ".form_field_choice", - "FormFieldChoiceConfig": ".form_field_choice_config", - "FormFieldChoiceConfigAllowOther": ".form_field_choice_config_allow_other", - "FormFieldChoiceConfigAllowOtherEnabledTrueEnum": ".form_field_choice_config_allow_other_enabled_true_enum", - "FormFieldChoiceConfigOption": ".form_field_choice_config_option", - "FormFieldCustom": ".form_field_custom", - "FormFieldCustomConfig": ".form_field_custom_config", - "FormFieldCustomConfigParams": ".form_field_custom_config_params", - "FormFieldCustomConfigSchema": ".form_field_custom_config_schema", - "FormFieldDate": ".form_field_date", - "FormFieldDateConfig": ".form_field_date_config", - "FormFieldDateConfigFormatEnum": ".form_field_date_config_format_enum", - "FormFieldDropdown": ".form_field_dropdown", - "FormFieldDropdownConfig": ".form_field_dropdown_config", - "FormFieldDropdownConfigOption": ".form_field_dropdown_config_option", - "FormFieldEmail": ".form_field_email", - "FormFieldEmailConfig": ".form_field_email_config", - "FormFieldFile": ".form_field_file", - "FormFieldFileConfig": ".form_field_file_config", - "FormFieldFileConfigCategoryEnum": ".form_field_file_config_category_enum", - "FormFieldFileConfigStorage": ".form_field_file_config_storage", - "FormFieldFileConfigStorageTypeEnum": ".form_field_file_config_storage_type_enum", - "FormFieldLegal": ".form_field_legal", - "FormFieldLegalConfig": ".form_field_legal_config", - "FormFieldNumber": ".form_field_number", - "FormFieldNumberConfig": ".form_field_number_config", - "FormFieldPassword": ".form_field_password", - "FormFieldPasswordConfig": ".form_field_password_config", - "FormFieldPasswordConfigHashEnum": ".form_field_password_config_hash_enum", - "FormFieldPayment": ".form_field_payment", - "FormFieldPaymentConfig": ".form_field_payment_config", - "FormFieldPaymentConfigCharge": ".form_field_payment_config_charge", - "FormFieldPaymentConfigChargeOneOff": ".form_field_payment_config_charge_one_off", - "FormFieldPaymentConfigChargeOneOffCurrencyEnum": ".form_field_payment_config_charge_one_off_currency_enum", - "FormFieldPaymentConfigChargeOneOffOneOff": ".form_field_payment_config_charge_one_off_one_off", - "FormFieldPaymentConfigChargeOneOffOneOffAmount": ".form_field_payment_config_charge_one_off_one_off_amount", - "FormFieldPaymentConfigChargeSubscription": ".form_field_payment_config_charge_subscription", - "FormFieldPaymentConfigChargeTypeOneOffConst": ".form_field_payment_config_charge_type_one_off_const", - "FormFieldPaymentConfigChargeTypeSubscriptionConst": ".form_field_payment_config_charge_type_subscription_const", - "FormFieldPaymentConfigCredentials": ".form_field_payment_config_credentials", - "FormFieldPaymentConfigCustomer": ".form_field_payment_config_customer", - "FormFieldPaymentConfigFieldProperties": ".form_field_payment_config_field_properties", - "FormFieldPaymentConfigFields": ".form_field_payment_config_fields", - "FormFieldPaymentConfigProviderEnum": ".form_field_payment_config_provider_enum", - "FormFieldPaymentConfigSubscription": ".form_field_payment_config_subscription", - "FormFieldSocial": ".form_field_social", - "FormFieldSocialConfig": ".form_field_social_config", - "FormFieldTel": ".form_field_tel", - "FormFieldTelConfig": ".form_field_tel_config", - "FormFieldTelConfigStrings": ".form_field_tel_config_strings", - "FormFieldText": ".form_field_text", - "FormFieldTextConfig": ".form_field_text_config", - "FormFieldTypeBooleanConst": ".form_field_type_boolean_const", - "FormFieldTypeCardsConst": ".form_field_type_cards_const", - "FormFieldTypeChoiceConst": ".form_field_type_choice_const", - "FormFieldTypeCustomConst": ".form_field_type_custom_const", - "FormFieldTypeDateConst": ".form_field_type_date_const", - "FormFieldTypeDropdownConst": ".form_field_type_dropdown_const", - "FormFieldTypeEmailConst": ".form_field_type_email_const", - "FormFieldTypeFileConst": ".form_field_type_file_const", - "FormFieldTypeLegalConst": ".form_field_type_legal_const", - "FormFieldTypeNumberConst": ".form_field_type_number_const", - "FormFieldTypePasswordConst": ".form_field_type_password_const", - "FormFieldTypePaymentConst": ".form_field_type_payment_const", - "FormFieldTypeSocialConst": ".form_field_type_social_const", - "FormFieldTypeTelConst": ".form_field_type_tel_const", - "FormFieldTypeTextConst": ".form_field_type_text_const", - "FormFieldTypeUrlConst": ".form_field_type_url_const", - "FormFieldUrl": ".form_field_url", - "FormFieldUrlConfig": ".form_field_url_config", - "FormFlow": ".form_flow", - "FormFlowConfig": ".form_flow_config", - "FormHiddenField": ".form_hidden_field", - "FormLanguages": ".form_languages", - "FormLanguagesNullable": ".form_languages_nullable", - "FormMessages": ".form_messages", - "FormMessagesCustom": ".form_messages_custom", - "FormMessagesError": ".form_messages_error", - "FormMessagesNullable": ".form_messages_nullable", - "FormNode": ".form_node", - "FormNodeCoordinates": ".form_node_coordinates", - "FormNodeList": ".form_node_list", - "FormNodeListNullable": ".form_node_list_nullable", - "FormNodePointer": ".form_node_pointer", - "FormNodeTypeFlowConst": ".form_node_type_flow_const", - "FormNodeTypeRouterConst": ".form_node_type_router_const", - "FormNodeTypeStepConst": ".form_node_type_step_const", - "FormRouter": ".form_router", - "FormRouterConfig": ".form_router_config", - "FormRouterRule": ".form_router_rule", - "FormStartNode": ".form_start_node", - "FormStartNodeNullable": ".form_start_node_nullable", - "FormStep": ".form_step", - "FormStepComponentList": ".form_step_component_list", - "FormStepConfig": ".form_step_config", - "FormStyle": ".form_style", - "FormStyleNullable": ".form_style_nullable", - "FormSummary": ".form_summary", - "FormTranslations": ".form_translations", - "FormTranslationsNullable": ".form_translations_nullable", - "FormWidget": ".form_widget", - "FormWidgetAuth0VerifiableCredentials": ".form_widget_auth_0_verifiable_credentials", - "FormWidgetAuth0VerifiableCredentialsConfig": ".form_widget_auth_0_verifiable_credentials_config", - "FormWidgetGMapsAddress": ".form_widget_g_maps_address", - "FormWidgetGMapsAddressConfig": ".form_widget_g_maps_address_config", - "FormWidgetRecaptcha": ".form_widget_recaptcha", - "FormWidgetRecaptchaConfig": ".form_widget_recaptcha_config", - "FormWidgetTypeAuth0VerifiableCredentialsConst": ".form_widget_type_auth_0_verifiable_credentials_const", - "FormWidgetTypeGMapsAddressConst": ".form_widget_type_g_maps_address_const", - "FormWidgetTypeRecaptchaConst": ".form_widget_type_recaptcha_const", - "FormsRequestParametersHydrateEnum": ".forms_request_parameters_hydrate_enum", - "GetActionExecutionResponseContent": ".get_action_execution_response_content", - "GetActionModuleActionsResponseContent": ".get_action_module_actions_response_content", - "GetActionModuleResponseContent": ".get_action_module_response_content", - "GetActionModuleVersionResponseContent": ".get_action_module_version_response_content", - "GetActionModuleVersionsResponseContent": ".get_action_module_versions_response_content", - "GetActionModulesResponseContent": ".get_action_modules_response_content", - "GetActionResponseContent": ".get_action_response_content", - "GetActionVersionResponseContent": ".get_action_version_response_content", - "GetActiveUsersCountStatsResponseContent": ".get_active_users_count_stats_response_content", - "GetAculResponseContent": ".get_acul_response_content", - "GetAllKeysNetworkAclsResponseContent": ".get_all_keys_network_acls_response_content", - "GetAttackProtectionCaptchaResponseContent": ".get_attack_protection_captcha_response_content", - "GetBotDetectionSettingsResponseContent": ".get_bot_detection_settings_response_content", - "GetBrandingDefaultThemeResponseContent": ".get_branding_default_theme_response_content", - "GetBrandingPhoneProviderResponseContent": ".get_branding_phone_provider_response_content", - "GetBrandingResponseContent": ".get_branding_response_content", - "GetBrandingThemeResponseContent": ".get_branding_theme_response_content", - "GetBreachedPasswordDetectionSettingsResponseContent": ".get_breached_password_detection_settings_response_content", - "GetBruteForceSettingsResponseContent": ".get_brute_force_settings_response_content", - "GetClientCredentialResponseContent": ".get_client_credential_response_content", - "GetClientGrantResponseContent": ".get_client_grant_response_content", - "GetClientResponseContent": ".get_client_response_content", - "GetConnectionEnabledClientsResponseContent": ".get_connection_enabled_clients_response_content", - "GetConnectionProfileResponseContent": ".get_connection_profile_response_content", - "GetConnectionProfileTemplateResponseContent": ".get_connection_profile_template_response_content", - "GetConnectionResponseContent": ".get_connection_response_content", - "GetCustomDomainResponseContent": ".get_custom_domain_response_content", - "GetCustomSigningKeysResponseContent": ".get_custom_signing_keys_response_content", - "GetCustomTextsByLanguageResponseContent": ".get_custom_texts_by_language_response_content", - "GetDefaultCanonicalDomainResponseContent": ".get_default_canonical_domain_response_content", - "GetDefaultCustomDomainResponseContent": ".get_default_custom_domain_response_content", - "GetDefaultDomainResponseContent": ".get_default_domain_response_content", - "GetDirectoryProvisioningDefaultMappingResponseContent": ".get_directory_provisioning_default_mapping_response_content", - "GetDirectoryProvisioningResponseContent": ".get_directory_provisioning_response_content", - "GetEmailFactorSettingsResponseContent": ".get_email_factor_settings_response_content", - "GetEmailProviderResponseContent": ".get_email_provider_response_content", - "GetEmailTemplateResponseContent": ".get_email_template_response_content", - "GetEncryptionKeyResponseContent": ".get_encryption_key_response_content", - "GetEventStreamDeliveryHistoryResponseContent": ".get_event_stream_delivery_history_response_content", - "GetEventStreamResponseContent": ".get_event_stream_response_content", - "GetExperimentResponseContent": ".get_experiment_response_content", - "GetFeatureFlagResponseContent": ".get_feature_flag_response_content", - "GetFlowExecutionRequestParametersHydrateEnum": ".get_flow_execution_request_parameters_hydrate_enum", - "GetFlowExecutionResponseContent": ".get_flow_execution_response_content", - "GetFlowRequestParametersHydrateEnum": ".get_flow_request_parameters_hydrate_enum", - "GetFlowResponseContent": ".get_flow_response_content", - "GetFlowsVaultConnectionResponseContent": ".get_flows_vault_connection_response_content", - "GetFormResponseContent": ".get_form_response_content", - "GetGroupMembersResponseContent": ".get_group_members_response_content", - "GetGroupResponseContent": ".get_group_response_content", - "GetGuardianEnrollmentResponseContent": ".get_guardian_enrollment_response_content", - "GetGuardianFactorDuoSettingsResponseContent": ".get_guardian_factor_duo_settings_response_content", - "GetGuardianFactorPhoneMessageTypesResponseContent": ".get_guardian_factor_phone_message_types_response_content", - "GetGuardianFactorPhoneTemplatesResponseContent": ".get_guardian_factor_phone_templates_response_content", - "GetGuardianFactorSmsTemplatesResponseContent": ".get_guardian_factor_sms_templates_response_content", - "GetGuardianFactorsProviderApnsResponseContent": ".get_guardian_factors_provider_apns_response_content", - "GetGuardianFactorsProviderPhoneResponseContent": ".get_guardian_factors_provider_phone_response_content", - "GetGuardianFactorsProviderPhoneTwilioResponseContent": ".get_guardian_factors_provider_phone_twilio_response_content", - "GetGuardianFactorsProviderPushNotificationResponseContent": ".get_guardian_factors_provider_push_notification_response_content", - "GetGuardianFactorsProviderSmsResponseContent": ".get_guardian_factors_provider_sms_response_content", - "GetGuardianFactorsProviderSmsTwilioResponseContent": ".get_guardian_factors_provider_sms_twilio_response_content", - "GetGuardianFactorsProviderSnsResponseContent": ".get_guardian_factors_provider_sns_response_content", - "GetGuardianSettingsResponseContent": ".get_guardian_settings_response_content", - "GetHookResponseContent": ".get_hook_response_content", - "GetHookSecretResponseContent": ".get_hook_secret_response_content", - "GetJobErrorResponseContent": ".get_job_error_response_content", - "GetJobGenericErrorResponseContent": ".get_job_generic_error_response_content", - "GetJobImportUserError": ".get_job_import_user_error", - "GetJobResponseContent": ".get_job_response_content", - "GetJobSummary": ".get_job_summary", - "GetJobUserError": ".get_job_user_error", - "GetLogResponseContent": ".get_log_response_content", - "GetLogStreamResponseContent": ".get_log_stream_response_content", - "GetNetworkAclsResponseContent": ".get_network_acls_response_content", - "GetOrganizationAllConnectionResponseContent": ".get_organization_all_connection_response_content", - "GetOrganizationByNameResponseContent": ".get_organization_by_name_response_content", - "GetOrganizationClientResponseContent": ".get_organization_client_response_content", - "GetOrganizationConnectionResponseContent": ".get_organization_connection_response_content", - "GetOrganizationDiscoveryDomainByNameResponseContent": ".get_organization_discovery_domain_by_name_response_content", - "GetOrganizationDiscoveryDomainResponseContent": ".get_organization_discovery_domain_response_content", - "GetOrganizationInvitationResponseContent": ".get_organization_invitation_response_content", - "GetOrganizationResponseContent": ".get_organization_response_content", - "GetPartialsResponseContent": ".get_partials_response_content", - "GetPhoneFactorSettingsResponseContent": ".get_phone_factor_settings_response_content", - "GetPhoneProviderProtectionResponseContent": ".get_phone_provider_protection_response_content", - "GetPhoneTemplateResponseContent": ".get_phone_template_response_content", - "GetRateLimitPolicyResponseContent": ".get_rate_limit_policy_response_content", - "GetRefreshTokenResponseContent": ".get_refresh_token_response_content", - "GetRefreshTokensPaginatedResponseContent": ".get_refresh_tokens_paginated_response_content", - "GetResourceServerResponseContent": ".get_resource_server_response_content", - "GetRiskAssessmentsSettingsNewDeviceResponseContent": ".get_risk_assessments_settings_new_device_response_content", - "GetRiskAssessmentsSettingsResponseContent": ".get_risk_assessments_settings_response_content", - "GetRoleResponseContent": ".get_role_response_content", - "GetRuleResponseContent": ".get_rule_response_content", - "GetScimConfigurationDefaultMappingResponseContent": ".get_scim_configuration_default_mapping_response_content", - "GetScimConfigurationResponseContent": ".get_scim_configuration_response_content", - "GetScimTokensResponseContent": ".get_scim_tokens_response_content", - "GetSegmentResponseContent": ".get_segment_response_content", - "GetSelfServiceProfileResponseContent": ".get_self_service_profile_response_content", - "GetSessionResponseContent": ".get_session_response_content", - "GetSettingsResponseContent": ".get_settings_response_content", - "GetSigningKeysResponseContent": ".get_signing_keys_response_content", - "GetSupplementalSignalsResponseContent": ".get_supplemental_signals_response_content", - "GetSuspiciousIpThrottlingSettingsResponseContent": ".get_suspicious_ip_throttling_settings_response_content", - "GetTenantSettingsResponseContent": ".get_tenant_settings_response_content", - "GetTokenExchangeProfileResponseContent": ".get_token_exchange_profile_response_content", - "GetUniversalLoginTemplate": ".get_universal_login_template", - "GetUniversalLoginTemplateResponseContent": ".get_universal_login_template_response_content", - "GetUserAttributeProfileResponseContent": ".get_user_attribute_profile_response_content", - "GetUserAttributeProfileTemplateResponseContent": ".get_user_attribute_profile_template_response_content", - "GetUserAuthenticationMethodResponseContent": ".get_user_authentication_method_response_content", - "GetUserGroupsPaginatedResponseContent": ".get_user_groups_paginated_response_content", - "GetUserResponseContent": ".get_user_response_content", - "GetVariationResponseContent": ".get_variation_response_content", - "GetVerifiableCredentialTemplateResponseContent": ".get_verifiable_credential_template_response_content", - "GoogleAccountLinkingConfiguration": ".google_account_linking_configuration", - "GoogleAccountLinkingConfigurationCreate": ".google_account_linking_configuration_create", - "GoogleAccountLinkingConfigurationOrNull": ".google_account_linking_configuration_or_null", - "Group": ".group", - "GroupMember": ".group_member", - "GroupMemberTypeEnum": ".group_member_type_enum", - "GroupTypeEnum": ".group_type_enum", - "GuardianEnrollmentDate": ".guardian_enrollment_date", - "GuardianEnrollmentFactorEnum": ".guardian_enrollment_factor_enum", - "GuardianEnrollmentStatus": ".guardian_enrollment_status", - "GuardianFactor": ".guardian_factor", - "GuardianFactorNameEnum": ".guardian_factor_name_enum", - "GuardianFactorPhoneFactorMessageTypeEnum": ".guardian_factor_phone_factor_message_type_enum", - "GuardianFactorSettings": ".guardian_factor_settings", - "GuardianFactorsProviderPushNotificationProviderDataEnum": ".guardian_factors_provider_push_notification_provider_data_enum", - "GuardianFactorsProviderSmsProviderEnum": ".guardian_factors_provider_sms_provider_enum", - "Hook": ".hook", - "HookDependencies": ".hook_dependencies", - "HookTriggerIdEnum": ".hook_trigger_id_enum", - "HttpCustomHeader": ".http_custom_header", - "Identity": ".identity", - "IdentityAssertionAuthorizationGrant": ".identity_assertion_authorization_grant", - "IdentityProviderEnum": ".identity_provider_enum", - "IdentityProviderOnlyAuth0Enum": ".identity_provider_only_auth_0_enum", - "ImportEncryptionKeyResponseContent": ".import_encryption_key_response_content", - "IncludeUserProfileSizeHeaderEnum": ".include_user_profile_size_header_enum", - "Integration": ".integration", - "IntegrationFeatureTypeEnum": ".integration_feature_type_enum", - "IntegrationRelease": ".integration_release", - "IntegrationRequiredParam": ".integration_required_param", - "IntegrationRequiredParamOption": ".integration_required_param_option", - "IntegrationRequiredParamTypeEnum": ".integration_required_param_type_enum", - "IntegrationSemVer": ".integration_sem_ver", - "InternalServerErrorBody": ".internal_server_error_body", - "InternalServerErrorBodyError": ".internal_server_error_body_error", - "JobFileFormatEnum": ".job_file_format_enum", - "LinkedClientConfiguration": ".linked_client_configuration", - "ListActionBindingsPaginatedResponseContent": ".list_action_bindings_paginated_response_content", - "ListActionTriggersResponseContent": ".list_action_triggers_response_content", - "ListActionVersionsPaginatedResponseContent": ".list_action_versions_paginated_response_content", - "ListActionsPaginatedResponseContent": ".list_actions_paginated_response_content", - "ListAculsOffsetPaginatedResponseContent": ".list_aculs_offset_paginated_response_content", - "ListAculsResponseContentItem": ".list_aculs_response_content_item", - "ListAgentsResponseContent": ".list_agents_response_content", - "ListBrandingPhoneProvidersResponseContent": ".list_branding_phone_providers_response_content", - "ListClientConnectionsResponseContent": ".list_client_connections_response_content", - "ListClientGrantOrganizationsPaginatedResponseContent": ".list_client_grant_organizations_paginated_response_content", - "ListClientGrantPaginatedResponseContent": ".list_client_grant_paginated_response_content", - "ListClientProfilesPaginatedResponseContent": ".list_client_profiles_paginated_response_content", - "ListClientsOffsetPaginatedResponseContent": ".list_clients_offset_paginated_response_content", - "ListConnectionProfileTemplateResponseContent": ".list_connection_profile_template_response_content", - "ListConnectionProfilesPaginatedResponseContent": ".list_connection_profiles_paginated_response_content", - "ListConnectionsCheckpointPaginatedResponseContent": ".list_connections_checkpoint_paginated_response_content", - "ListCustomDomainsResponseContent": ".list_custom_domains_response_content", - "ListDeviceCredentialsOffsetPaginatedResponseContent": ".list_device_credentials_offset_paginated_response_content", - "ListDirectoryProvisioningsResponseContent": ".list_directory_provisionings_response_content", - "ListEncryptionKeyOffsetPaginatedResponseContent": ".list_encryption_key_offset_paginated_response_content", - "ListEventStreamDeliveriesResponseContent": ".list_event_stream_deliveries_response_content", - "ListEventStreamsResponseContent": ".list_event_streams_response_content", - "ListExperimentsResponseContent": ".list_experiments_response_content", - "ListFeatureFlagsResponseContent": ".list_feature_flags_response_content", - "ListFlowExecutionsPaginatedResponseContent": ".list_flow_executions_paginated_response_content", - "ListFlowsOffsetPaginatedResponseContent": ".list_flows_offset_paginated_response_content", - "ListFlowsRequestParametersHydrateEnum": ".list_flows_request_parameters_hydrate_enum", - "ListFlowsVaultConnectionsOffsetPaginatedResponseContent": ".list_flows_vault_connections_offset_paginated_response_content", - "ListFormsOffsetPaginatedResponseContent": ".list_forms_offset_paginated_response_content", - "ListGroupRolesResponseContent": ".list_group_roles_response_content", - "ListGroupsPaginatedResponseContent": ".list_groups_paginated_response_content", - "ListGuardianPoliciesResponseContent": ".list_guardian_policies_response_content", - "ListHooksOffsetPaginatedResponseContent": ".list_hooks_offset_paginated_response_content", - "ListLogOffsetPaginatedResponseContent": ".list_log_offset_paginated_response_content", - "ListNetworkAclsOffsetPaginatedResponseContent": ".list_network_acls_offset_paginated_response_content", - "ListOrganizationAllConnectionsOffsetPaginatedResponseContent": ".list_organization_all_connections_offset_paginated_response_content", - "ListOrganizationClientGrantsOffsetPaginatedResponseContent": ".list_organization_client_grants_offset_paginated_response_content", - "ListOrganizationClientsResponseContent": ".list_organization_clients_response_content", - "ListOrganizationConnectionsOffsetPaginatedResponseContent": ".list_organization_connections_offset_paginated_response_content", - "ListOrganizationDiscoveryDomainsResponseContent": ".list_organization_discovery_domains_response_content", - "ListOrganizationGroupRolesResponseContent": ".list_organization_group_roles_response_content", - "ListOrganizationGroupsResponseContent": ".list_organization_groups_response_content", - "ListOrganizationInvitationsOffsetPaginatedResponseContent": ".list_organization_invitations_offset_paginated_response_content", - "ListOrganizationMemberEffectiveRolesResponseContent": ".list_organization_member_effective_roles_response_content", - "ListOrganizationMemberRoleSourceGroupsResponseContent": ".list_organization_member_role_source_groups_response_content", - "ListOrganizationMemberRolesOffsetPaginatedResponseContent": ".list_organization_member_roles_offset_paginated_response_content", - "ListOrganizationMembersPaginatedResponseContent": ".list_organization_members_paginated_response_content", - "ListOrganizationRoleGroupsResponseContent": ".list_organization_role_groups_response_content", - "ListOrganizationRoleMembersResponseContent": ".list_organization_role_members_response_content", - "ListOrganizationsPaginatedResponseContent": ".list_organizations_paginated_response_content", - "ListPhoneTemplatesResponseContent": ".list_phone_templates_response_content", - "ListPortalsResponseContent": ".list_portals_response_content", - "ListRateLimitPoliciesPaginatedResponseContent": ".list_rate_limit_policies_paginated_response_content", - "ListRefreshTokensPaginatedResponseContent": ".list_refresh_tokens_paginated_response_content", - "ListResourceServerOffsetPaginatedResponseContent": ".list_resource_server_offset_paginated_response_content", - "ListRoleGroupsResponseContent": ".list_role_groups_response_content", - "ListRolePermissionsOffsetPaginatedResponseContent": ".list_role_permissions_offset_paginated_response_content", - "ListRoleUsersPaginatedResponseContent": ".list_role_users_paginated_response_content", - "ListRolesOffsetPaginatedResponseContent": ".list_roles_offset_paginated_response_content", - "ListRulesOffsetPaginatedResponseContent": ".list_rules_offset_paginated_response_content", - "ListScimConfigurationsResponseContent": ".list_scim_configurations_response_content", - "ListSegmentsResponseContent": ".list_segments_response_content", - "ListSelfServiceProfileCustomTextResponseContent": ".list_self_service_profile_custom_text_response_content", - "ListSelfServiceProfilesPaginatedResponseContent": ".list_self_service_profiles_paginated_response_content", - "ListSynchronizedGroupsResponseContent": ".list_synchronized_groups_response_content", - "ListTokenExchangeProfileResponseContent": ".list_token_exchange_profile_response_content", - "ListUserAttributeProfileTemplateResponseContent": ".list_user_attribute_profile_template_response_content", - "ListUserAttributeProfilesPaginatedResponseContent": ".list_user_attribute_profiles_paginated_response_content", - "ListUserAuthenticationMethodsOffsetPaginatedResponseContent": ".list_user_authentication_methods_offset_paginated_response_content", - "ListUserBlocksByIdentifierResponseContent": ".list_user_blocks_by_identifier_response_content", - "ListUserBlocksResponseContent": ".list_user_blocks_response_content", - "ListUserConnectedAccountsResponseContent": ".list_user_connected_accounts_response_content", - "ListUserConsentSigningKeysResponseContent": ".list_user_consent_signing_keys_response_content", - "ListUserEffectivePermissionRoleSourcesResponseContent": ".list_user_effective_permission_role_sources_response_content", - "ListUserEffectivePermissionsResponseContent": ".list_user_effective_permissions_response_content", - "ListUserEffectiveRolesResponseContent": ".list_user_effective_roles_response_content", - "ListUserGrantsOffsetPaginatedResponseContent": ".list_user_grants_offset_paginated_response_content", - "ListUserOrganizationsOffsetPaginatedResponseContent": ".list_user_organizations_offset_paginated_response_content", - "ListUserPermissionsOffsetPaginatedResponseContent": ".list_user_permissions_offset_paginated_response_content", - "ListUserRoleSourceGroupsResponseContent": ".list_user_role_source_groups_response_content", - "ListUserRolesOffsetPaginatedResponseContent": ".list_user_roles_offset_paginated_response_content", - "ListUserSessionsPaginatedResponseContent": ".list_user_sessions_paginated_response_content", - "ListUsersOffsetPaginatedResponseContent": ".list_users_offset_paginated_response_content", - "ListVariationsResponseContent": ".list_variations_response_content", - "ListVerifiableCredentialTemplatesPaginatedResponseContent": ".list_verifiable_credential_templates_paginated_response_content", - "Log": ".log", - "LogDate": ".log_date", - "LogDateObject": ".log_date_object", - "LogDetails": ".log_details", - "LogLocationInfo": ".log_location_info", - "LogSecurityContext": ".log_security_context", - "LogStreamDatadogEnum": ".log_stream_datadog_enum", - "LogStreamDatadogRegionEnum": ".log_stream_datadog_region_enum", - "LogStreamDatadogResponseSchema": ".log_stream_datadog_response_schema", - "LogStreamDatadogSink": ".log_stream_datadog_sink", - "LogStreamEventBridgeEnum": ".log_stream_event_bridge_enum", - "LogStreamEventBridgeResponseSchema": ".log_stream_event_bridge_response_schema", - "LogStreamEventBridgeSink": ".log_stream_event_bridge_sink", - "LogStreamEventBridgeSinkRegionEnum": ".log_stream_event_bridge_sink_region_enum", - "LogStreamEventGridEnum": ".log_stream_event_grid_enum", - "LogStreamEventGridRegionEnum": ".log_stream_event_grid_region_enum", - "LogStreamEventGridResponseSchema": ".log_stream_event_grid_response_schema", - "LogStreamEventGridSink": ".log_stream_event_grid_sink", - "LogStreamFilter": ".log_stream_filter", - "LogStreamFilterGroupNameEnum": ".log_stream_filter_group_name_enum", - "LogStreamFilterTypeEnum": ".log_stream_filter_type_enum", - "LogStreamHttpContentFormatEnum": ".log_stream_http_content_format_enum", - "LogStreamHttpEnum": ".log_stream_http_enum", - "LogStreamHttpResponseSchema": ".log_stream_http_response_schema", - "LogStreamHttpSink": ".log_stream_http_sink", - "LogStreamMixpanelEnum": ".log_stream_mixpanel_enum", - "LogStreamMixpanelRegionEnum": ".log_stream_mixpanel_region_enum", - "LogStreamMixpanelResponseSchema": ".log_stream_mixpanel_response_schema", - "LogStreamMixpanelSink": ".log_stream_mixpanel_sink", - "LogStreamMixpanelSinkPatch": ".log_stream_mixpanel_sink_patch", - "LogStreamPiiAlgorithmEnum": ".log_stream_pii_algorithm_enum", - "LogStreamPiiConfig": ".log_stream_pii_config", - "LogStreamPiiLogFieldsEnum": ".log_stream_pii_log_fields_enum", - "LogStreamPiiMethodEnum": ".log_stream_pii_method_enum", - "LogStreamResponseSchema": ".log_stream_response_schema", - "LogStreamSegmentEnum": ".log_stream_segment_enum", - "LogStreamSegmentResponseSchema": ".log_stream_segment_response_schema", - "LogStreamSegmentSink": ".log_stream_segment_sink", - "LogStreamSegmentSinkWriteKey": ".log_stream_segment_sink_write_key", - "LogStreamSinkPatch": ".log_stream_sink_patch", - "LogStreamSplunkEnum": ".log_stream_splunk_enum", - "LogStreamSplunkResponseSchema": ".log_stream_splunk_response_schema", - "LogStreamSplunkSink": ".log_stream_splunk_sink", - "LogStreamStatusEnum": ".log_stream_status_enum", - "LogStreamSumoEnum": ".log_stream_sumo_enum", - "LogStreamSumoResponseSchema": ".log_stream_sumo_response_schema", - "LogStreamSumoSink": ".log_stream_sumo_sink", - "MdlPresentationProperties": ".mdl_presentation_properties", - "MdlPresentationRequest": ".mdl_presentation_request", - "MdlPresentationRequestProperties": ".mdl_presentation_request_properties", - "MfaPolicyEnum": ".mfa_policy_enum", - "NativeSocialLogin": ".native_social_login", - "NativeSocialLoginApple": ".native_social_login_apple", - "NativeSocialLoginApplePatch": ".native_social_login_apple_patch", - "NativeSocialLoginFacebook": ".native_social_login_facebook", - "NativeSocialLoginFacebookPatch": ".native_social_login_facebook_patch", - "NativeSocialLoginGoogle": ".native_social_login_google", - "NativeSocialLoginGooglePatch": ".native_social_login_google_patch", - "NativeSocialLoginPatch": ".native_social_login_patch", - "NetworkAclAction": ".network_acl_action", - "NetworkAclActionAllowEnum": ".network_acl_action_allow_enum", - "NetworkAclActionBlockEnum": ".network_acl_action_block_enum", - "NetworkAclActionLogEnum": ".network_acl_action_log_enum", - "NetworkAclActionRedirectEnum": ".network_acl_action_redirect_enum", - "NetworkAclHttpMessageSignature": ".network_acl_http_message_signature", - "NetworkAclHttpMessageSignatureKey": ".network_acl_http_message_signature_key", - "NetworkAclHttpMessageSignatureKeys": ".network_acl_http_message_signature_keys", - "NetworkAclKey": ".network_acl_key", - "NetworkAclKeyAlgorithmEnum": ".network_acl_key_algorithm_enum", - "NetworkAclMatch": ".network_acl_match", - "NetworkAclMatchConnectingIpv4Cidr": ".network_acl_match_connecting_ipv_4_cidr", - "NetworkAclMatchConnectingIpv6Cidr": ".network_acl_match_connecting_ipv_6_cidr", - "NetworkAclMatchIpv4Cidr": ".network_acl_match_ipv_4_cidr", - "NetworkAclMatchIpv6Cidr": ".network_acl_match_ipv_6_cidr", - "NetworkAclRule": ".network_acl_rule", - "NetworkAclRuleMatchAllEnum": ".network_acl_rule_match_all_enum", - "NetworkAclRuleScopeEnum": ".network_acl_rule_scope_enum", - "NetworkAclsResponseContent": ".network_acls_response_content", - "NotFoundErrorBody": ".not_found_error_body", - "NotFoundErrorBodyError": ".not_found_error_body_error", - "NotFoundSchema": ".not_found_schema", - "NotFoundSchemaError": ".not_found_schema_error", - "OauthScope": ".oauth_scope", - "Organization": ".organization", - "OrganizationAccessLevelEnum": ".organization_access_level_enum", - "OrganizationAccessLevelEnumWithNull": ".organization_access_level_enum_with_null", - "OrganizationAllConnectionPost": ".organization_all_connection_post", - "OrganizationBranding": ".organization_branding", - "OrganizationBrandingColors": ".organization_branding_colors", - "OrganizationClient": ".organization_client", - "OrganizationClientAssociation": ".organization_client_association", - "OrganizationClientGrant": ".organization_client_grant", - "OrganizationClientMetadata": ".organization_client_metadata", - "OrganizationClientMetadataOrganizationUsageEnum": ".organization_client_metadata_organization_usage_enum", - "OrganizationConnection": ".organization_connection", - "OrganizationConnectionInformation": ".organization_connection_information", - "OrganizationDiscoveryDomain": ".organization_discovery_domain", - "OrganizationDiscoveryDomainStatus": ".organization_discovery_domain_status", - "OrganizationEnabledConnection": ".organization_enabled_connection", - "OrganizationInvitation": ".organization_invitation", - "OrganizationInvitationInvitee": ".organization_invitation_invitee", - "OrganizationInvitationInviter": ".organization_invitation_inviter", - "OrganizationMember": ".organization_member", - "OrganizationMemberAccessLevelEnum": ".organization_member_access_level_enum", - "OrganizationMemberAccessLevelEnumWithNull": ".organization_member_access_level_enum_with_null", - "OrganizationMemberEffectiveRole": ".organization_member_effective_role", - "OrganizationMemberEffectiveRoleSource": ".organization_member_effective_role_source", - "OrganizationMemberRole": ".organization_member_role", - "OrganizationMetadata": ".organization_metadata", - "OrganizationSortFieldEnum": ".organization_sort_field_enum", - "OrganizationThirdPartyClientAccessEnum": ".organization_third_party_client_access_enum", - "OrganizationUsageEnum": ".organization_usage_enum", - "PageComponent": ".page_component", - "PageComponentAuth0Form": ".page_component_auth_0_form", - "PageComponentAuth0FormConfig": ".page_component_auth_0_form_config", - "PageComponentAuth0MediaImage": ".page_component_auth_0_media_image", - "PageComponentAuth0MediaImageConfig": ".page_component_auth_0_media_image_config", - "PageComponentAuth0MyAccountMfaManagement": ".page_component_auth_0_my_account_mfa_management", - "PageComponentAuth0MyAccountMfaManagementConfig": ".page_component_auth_0_my_account_mfa_management_config", - "PageComponentAuth0MyAccountPasskeyManagement": ".page_component_auth_0_my_account_passkey_management", - "PageComponentAuth0MyAccountPasskeyManagementConfig": ".page_component_auth_0_my_account_passkey_management_config", - "PageComponentAuth0MyOrganizationDetailsEdit": ".page_component_auth_0_my_organization_details_edit", - "PageComponentAuth0MyOrganizationDetailsEditConfig": ".page_component_auth_0_my_organization_details_edit_config", - "PageComponentAuth0MyOrganizationDomainTable": ".page_component_auth_0_my_organization_domain_table", - "PageComponentAuth0MyOrganizationDomainTableConfig": ".page_component_auth_0_my_organization_domain_table_config", - "PageComponentAuth0MyOrganizationMemberManagement": ".page_component_auth_0_my_organization_member_management", - "PageComponentAuth0MyOrganizationMemberManagementConfig": ".page_component_auth_0_my_organization_member_management_config", - "PageComponentAuth0StructureSection": ".page_component_auth_0_structure_section", - "PageComponentAuth0StructureSectionConfig": ".page_component_auth_0_structure_section_config", - "PageComponentAuth0StructureSectionVariantEnum": ".page_component_auth_0_structure_section_variant_enum", - "PageComponentAuth0StructureSeparator": ".page_component_auth_0_structure_separator", - "PageComponentAuth0StructureSeparatorConfig": ".page_component_auth_0_structure_separator_config", - "PageComponentAuth0StructureSeparatorVariantEnum": ".page_component_auth_0_structure_separator_variant_enum", - "PageComponentAuth0TypographyHeading": ".page_component_auth_0_typography_heading", - "PageComponentAuth0TypographyHeadingConfig": ".page_component_auth_0_typography_heading_config", - "PageComponentAuth0TypographyRichText": ".page_component_auth_0_typography_rich_text", - "PageComponentAuth0TypographyRichTextConfig": ".page_component_auth_0_typography_rich_text_config", - "PageComponentNoChildren": ".page_component_no_children", - "PageComponentNoChildren_PageComponentAuth0Form": ".page_component_no_children", - "PageComponentNoChildren_PageComponentAuth0MediaImage": ".page_component_no_children", - "PageComponentNoChildren_PageComponentAuth0MyAccountMfaManagement": ".page_component_no_children", - "PageComponentNoChildren_PageComponentAuth0MyAccountPasskeyManagement": ".page_component_no_children", - "PageComponentNoChildren_PageComponentAuth0MyOrganizationDetailsEdit": ".page_component_no_children", - "PageComponentNoChildren_PageComponentAuth0MyOrganizationDomainTable": ".page_component_no_children", - "PageComponentNoChildren_PageComponentAuth0MyOrganizationMemberManagement": ".page_component_no_children", - "PageComponentNoChildren_PageComponentAuth0StructureSeparator": ".page_component_no_children", - "PageComponentNoChildren_PageComponentAuth0TypographyHeading": ".page_component_no_children", - "PageComponentNoChildren_PageComponentAuth0TypographyRichText": ".page_component_no_children", - "PageComponent_PageComponentAuth0Form": ".page_component", - "PageComponent_PageComponentAuth0MediaImage": ".page_component", - "PageComponent_PageComponentAuth0MyAccountMfaManagement": ".page_component", - "PageComponent_PageComponentAuth0MyAccountPasskeyManagement": ".page_component", - "PageComponent_PageComponentAuth0MyOrganizationDetailsEdit": ".page_component", - "PageComponent_PageComponentAuth0MyOrganizationDomainTable": ".page_component", - "PageComponent_PageComponentAuth0MyOrganizationMemberManagement": ".page_component", - "PageComponent_PageComponentAuth0StructureSection": ".page_component", - "PageComponent_PageComponentAuth0StructureSeparator": ".page_component", - "PageComponent_PageComponentAuth0TypographyHeading": ".page_component", - "PageComponent_PageComponentAuth0TypographyRichText": ".page_component", - "PageSlug": ".page_slug", - "PartialGroupsEnum": ".partial_groups_enum", - "PartialPhoneTemplateContent": ".partial_phone_template_content", - "PasswordCharacterTypeEnum": ".password_character_type_enum", - "PasswordCharacterTypeRulePolicyEnum": ".password_character_type_rule_policy_enum", - "PasswordDefaultDictionariesEnum": ".password_default_dictionaries_enum", - "PasswordDictionaryMatchTypeEnum": ".password_dictionary_match_type_enum", - "PasswordIdenticalCharactersPolicyEnum": ".password_identical_characters_policy_enum", - "PasswordMaxLengthExceededPolicyEnum": ".password_max_length_exceeded_policy_enum", - "PasswordSequentialCharactersPolicyEnum": ".password_sequential_characters_policy_enum", - "PatchClientCredentialResponseContent": ".patch_client_credential_response_content", - "PatchPhoneProviderProtectionResponseContent": ".patch_phone_provider_protection_response_content", - "PatchRateLimitPolicyConfigurationRequestContent": ".patch_rate_limit_policy_configuration_request_content", - "PatchRateLimitPolicyConfigurationRequestContentAction": ".patch_rate_limit_policy_configuration_request_content_action", - "PatchRateLimitPolicyConfigurationRequestContentActionAction": ".patch_rate_limit_policy_configuration_request_content_action_action", - "PatchRateLimitPolicyConfigurationRequestContentOne": ".patch_rate_limit_policy_configuration_request_content_one", - "PatchRateLimitPolicyConfigurationRequestContentOneAction": ".patch_rate_limit_policy_configuration_request_content_one_action", - "PatchRateLimitPolicyConfigurationRequestContentZero": ".patch_rate_limit_policy_configuration_request_content_zero", - "PatchRateLimitPolicyConfigurationRequestContentZeroAction": ".patch_rate_limit_policy_configuration_request_content_zero_action", - "PatchSupplementalSignalsResponseContent": ".patch_supplemental_signals_response_content", - "PermissionRequestPayload": ".permission_request_payload", - "PermissionsResponsePayload": ".permissions_response_payload", - "PhoneAttribute": ".phone_attribute", - "PhoneAttributeIdentifier": ".phone_attribute_identifier", - "PhoneProviderChannelEnum": ".phone_provider_channel_enum", - "PhoneProviderConfiguration": ".phone_provider_configuration", - "PhoneProviderCredentials": ".phone_provider_credentials", - "PhoneProviderDeliveryMethodEnum": ".phone_provider_delivery_method_enum", - "PhoneProviderNameEnum": ".phone_provider_name_enum", - "PhoneProviderProtectionBackoffStrategyEnum": ".phone_provider_protection_backoff_strategy_enum", - "PhoneProviderSchemaMasked": ".phone_provider_schema_masked", - "PhoneTemplate": ".phone_template", - "PhoneTemplateBody": ".phone_template_body", - "PhoneTemplateContent": ".phone_template_content", - "PhoneTemplateNotificationTypeEnum": ".phone_template_notification_type_enum", - "Portal": ".portal", - "PortalClientSecretPost": ".portal_client_secret_post", - "PortalClientSecretPostRequest": ".portal_client_secret_post_request", - "PortalClientSecretPostRequestTokenEndpointAuthMethod": ".portal_client_secret_post_request_token_endpoint_auth_method", - "PortalClientSecretPostTokenEndpointAuthMethod": ".portal_client_secret_post_token_endpoint_auth_method", - "PortalCustomCode": ".portal_custom_code", - "PortalCustomCodeNullable": ".portal_custom_code_nullable", - "PortalDateTime": ".portal_date_time", - "PortalId": ".portal_id", - "PortalName": ".portal_name", - "PortalNavigation": ".portal_navigation", - "PortalNavigationNullable": ".portal_navigation_nullable", - "PortalPage": ".portal_page", - "PortalPagesByType": ".portal_pages_by_type", - "PortalPagesByTypeNullable": ".portal_pages_by_type_nullable", - "PortalSlug": ".portal_slug", - "PortalSummary": ".portal_summary", - "Position": ".position", - "PostClientCredentialResponseContent": ".post_client_credential_response_content", - "PostConnectionKeysAlgEnum": ".post_connection_keys_alg_enum", - "PostConnectionKeysRequestContent": ".post_connection_keys_request_content", - "PostConnectionsKeysResponseContent": ".post_connections_keys_response_content", - "PostConnectionsKeysResponseContentItem": ".post_connections_keys_response_content_item", - "PreferredAuthenticationMethodEnum": ".preferred_authentication_method_enum", - "PreviewCimdMetadataResponseContent": ".preview_cimd_metadata_response_content", - "PromptGroupNameEnum": ".prompt_group_name_enum", - "PromptLanguageEnum": ".prompt_language_enum", - "PublicKeyCredential": ".public_key_credential", - "PublicKeyCredentialAlgorithmEnum": ".public_key_credential_algorithm_enum", - "PublicKeyCredentialTypeEnum": ".public_key_credential_type_enum", - "RateLimitPolicy": ".rate_limit_policy", - "RateLimitPolicyConfiguration": ".rate_limit_policy_configuration", - "RateLimitPolicyConfigurationAction": ".rate_limit_policy_configuration_action", - "RateLimitPolicyConfigurationActionAction": ".rate_limit_policy_configuration_action_action", - "RateLimitPolicyConfigurationOne": ".rate_limit_policy_configuration_one", - "RateLimitPolicyConfigurationOneAction": ".rate_limit_policy_configuration_one_action", - "RateLimitPolicyConfigurationZero": ".rate_limit_policy_configuration_zero", - "RateLimitPolicyConfigurationZeroAction": ".rate_limit_policy_configuration_zero_action", - "RateLimitPolicyConsumerEnum": ".rate_limit_policy_consumer_enum", - "RateLimitPolicyResourceEnum": ".rate_limit_policy_resource_enum", - "RefreshTokenDate": ".refresh_token_date", - "RefreshTokenDateObject": ".refresh_token_date_object", - "RefreshTokenDevice": ".refresh_token_device", - "RefreshTokenExpirationTypeEnum": ".refresh_token_expiration_type_enum", - "RefreshTokenMetadata": ".refresh_token_metadata", - "RefreshTokenResourceServer": ".refresh_token_resource_server", - "RefreshTokenResponseContent": ".refresh_token_response_content", - "RefreshTokenRotationTypeEnum": ".refresh_token_rotation_type_enum", - "RefreshTokenSessionId": ".refresh_token_session_id", - "RegenerateUsersRecoveryCodeResponseContent": ".regenerate_users_recovery_code_response_content", - "RegisterCimdClientResponseContent": ".register_cimd_client_response_content", - "ResetPhoneTemplateRequestContent": ".reset_phone_template_request_content", - "ResetPhoneTemplateResponseContent": ".reset_phone_template_response_content", - "ResourceServer": ".resource_server", - "ResourceServerAccessToken": ".resource_server_access_token", - "ResourceServerAccessTokenClaimsMapping": ".resource_server_access_token_claims_mapping", - "ResourceServerAccessTokenCustomClaimsMapping": ".resource_server_access_token_custom_claims_mapping", - "ResourceServerAccessTokenCustomClaimsMappingRule": ".resource_server_access_token_custom_claims_mapping_rule", - "ResourceServerAgentSubjectClaimsResponseEnum": ".resource_server_agent_subject_claims_response_enum", - "ResourceServerAgentSubjectClaimsSchemaEnum": ".resource_server_agent_subject_claims_schema_enum", - "ResourceServerAuthorizationPolicy": ".resource_server_authorization_policy", - "ResourceServerConsentPolicyEnum": ".resource_server_consent_policy_enum", - "ResourceServerProofOfPossession": ".resource_server_proof_of_possession", - "ResourceServerProofOfPossessionMechanismEnum": ".resource_server_proof_of_possession_mechanism_enum", - "ResourceServerProofOfPossessionRequiredForEnum": ".resource_server_proof_of_possession_required_for_enum", - "ResourceServerScope": ".resource_server_scope", - "ResourceServerSearchResponse": ".resource_server_search_response", - "ResourceServerSortFieldEnum": ".resource_server_sort_field_enum", - "ResourceServerSubjectTypeAuthorization": ".resource_server_subject_type_authorization", - "ResourceServerSubjectTypeAuthorizationAnonymousUser": ".resource_server_subject_type_authorization_anonymous_user", - "ResourceServerSubjectTypeAuthorizationAnonymousUserPolicyEnum": ".resource_server_subject_type_authorization_anonymous_user_policy_enum", - "ResourceServerSubjectTypeAuthorizationClient": ".resource_server_subject_type_authorization_client", - "ResourceServerSubjectTypeAuthorizationClientPolicyEnum": ".resource_server_subject_type_authorization_client_policy_enum", - "ResourceServerSubjectTypeAuthorizationUser": ".resource_server_subject_type_authorization_user", - "ResourceServerSubjectTypeAuthorizationUserPolicyEnum": ".resource_server_subject_type_authorization_user_policy_enum", - "ResourceServerTokenDialectResponseEnum": ".resource_server_token_dialect_response_enum", - "ResourceServerTokenDialectSchemaEnum": ".resource_server_token_dialect_schema_enum", - "ResourceServerTokenEncryption": ".resource_server_token_encryption", - "ResourceServerTokenEncryptionAlgorithmEnum": ".resource_server_token_encryption_algorithm_enum", - "ResourceServerTokenEncryptionFormatEnum": ".resource_server_token_encryption_format_enum", - "ResourceServerTokenEncryptionKey": ".resource_server_token_encryption_key", - "ResourceServerTypeEnum": ".resource_server_type_enum", - "ResourceServerVerificationKeyPemCertificate": ".resource_server_verification_key_pem_certificate", - "RevokedSigningKeysResponseContent": ".revoked_signing_keys_response_content", - "Role": ".role", - "RoleGroup": ".role_group", - "RoleMember": ".role_member", - "RoleOwnerId": ".role_owner_id", - "RoleOwnerIdFilter": ".role_owner_id_filter", - "RoleTypeEnum": ".role_type_enum", - "RoleUser": ".role_user", - "RollbackActionModuleResponseContent": ".rollback_action_module_response_content", - "RotateClientSecretResponseContent": ".rotate_client_secret_response_content", - "RotateConnectionKeysRequestContent": ".rotate_connection_keys_request_content", - "RotateConnectionKeysSigningAlgEnum": ".rotate_connection_keys_signing_alg_enum", - "RotateConnectionsKeysResponseContent": ".rotate_connections_keys_response_content", - "RotateSigningKeysResponseContent": ".rotate_signing_keys_response_content", - "Rule": ".rule", - "RulesConfig": ".rules_config", - "ScimConfiguration": ".scim_configuration", - "ScimMappingItem": ".scim_mapping_item", - "ScimTokenItem": ".scim_token_item", - "ScreenGroupNameEnum": ".screen_group_name_enum", - "SearchClientGrantsResponseContent": ".search_client_grants_response_content", - "SearchClientsResponseContent": ".search_clients_response_content", - "SearchEngineVersionsEnum": ".search_engine_versions_enum", - "SearchOrganization": ".search_organization", - "SearchOrganizationsPaginatedResponseContent": ".search_organizations_paginated_response_content", - "SearchParserEnum": ".search_parser_enum", - "SearchResourceServersResponseContent": ".search_resource_servers_response_content", - "Segment": ".segment", - "SegmentContainsExpression": ".segment_contains_expression", - "SegmentEndsWithExpression": ".segment_ends_with_expression", - "SegmentExistsExpression": ".segment_exists_expression", - "SegmentMatchConditions": ".segment_match_conditions", - "SegmentMatchExpression": ".segment_match_expression", - "SegmentNotMatchConditions": ".segment_not_match_conditions", - "SegmentRule": ".segment_rule", - "SegmentStartsWithExpression": ".segment_starts_with_expression", - "SegmentStatusEnum": ".segment_status_enum", - "SegmentTypeEnum": ".segment_type_enum", - "SegmentTypeFilterEnum": ".segment_type_filter_enum", - "SelfServiceProfile": ".self_service_profile", - "SelfServiceProfileAllowedStrategyEnum": ".self_service_profile_allowed_strategy_enum", - "SelfServiceProfileBranding": ".self_service_profile_branding", - "SelfServiceProfileBrandingColors": ".self_service_profile_branding_colors", - "SelfServiceProfileBrandingProperties": ".self_service_profile_branding_properties", - "SelfServiceProfileCustomTextLanguageEnum": ".self_service_profile_custom_text_language_enum", - "SelfServiceProfileCustomTextPageEnum": ".self_service_profile_custom_text_page_enum", - "SelfServiceProfileDescription": ".self_service_profile_description", - "SelfServiceProfileSsoTicketConnectionConfig": ".self_service_profile_sso_ticket_connection_config", - "SelfServiceProfileSsoTicketConnectionOptions": ".self_service_profile_sso_ticket_connection_options", - "SelfServiceProfileSsoTicketDomainAliasesConfig": ".self_service_profile_sso_ticket_domain_aliases_config", - "SelfServiceProfileSsoTicketDomainVerificationEnum": ".self_service_profile_sso_ticket_domain_verification_enum", - "SelfServiceProfileSsoTicketEnabledFeatures": ".self_service_profile_sso_ticket_enabled_features", - "SelfServiceProfileSsoTicketEnabledOrganization": ".self_service_profile_sso_ticket_enabled_organization", - "SelfServiceProfileSsoTicketGoogleWorkspaceConfig": ".self_service_profile_sso_ticket_google_workspace_config", - "SelfServiceProfileSsoTicketIdpInitiatedClientProtocolEnum": ".self_service_profile_sso_ticket_idp_initiated_client_protocol_enum", - "SelfServiceProfileSsoTicketIdpInitiatedOptions": ".self_service_profile_sso_ticket_idp_initiated_options", - "SelfServiceProfileSsoTicketProvisioningConfig": ".self_service_profile_sso_ticket_provisioning_config", - "SelfServiceProfileSsoTicketProvisioningScopeEnum": ".self_service_profile_sso_ticket_provisioning_scope_enum", - "SelfServiceProfileSsoTicketUniversalLogoutConfig": ".self_service_profile_sso_ticket_universal_logout_config", - "SelfServiceProfileUserAttribute": ".self_service_profile_user_attribute", - "SelfServiceProfileUserAttributes": ".self_service_profile_user_attributes", - "SessionActorClaimValue": ".session_actor_claim_value", - "SessionActorMetadata": ".session_actor_metadata", - "SessionAuthenticationSignal": ".session_authentication_signal", - "SessionAuthenticationSignals": ".session_authentication_signals", - "SessionClientMetadata": ".session_client_metadata", - "SessionCookieMetadata": ".session_cookie_metadata", - "SessionCookieMetadataModeEnum": ".session_cookie_metadata_mode_enum", - "SessionCookieModeEnum": ".session_cookie_mode_enum", - "SessionCookieSchema": ".session_cookie_schema", - "SessionDate": ".session_date", - "SessionDeviceMetadata": ".session_device_metadata", - "SessionIp": ".session_ip", - "SessionMetadata": ".session_metadata", - "SessionResponseContent": ".session_response_content", - "SetCustomSigningKeysResponseContent": ".set_custom_signing_keys_response_content", - "SetEmailFactorSettingsResponseContent": ".set_email_factor_settings_response_content", - "SetEmailTemplateResponseContent": ".set_email_template_response_content", - "SetGuardianFactorDuoSettingsResponseContent": ".set_guardian_factor_duo_settings_response_content", - "SetGuardianFactorPhoneMessageTypesResponseContent": ".set_guardian_factor_phone_message_types_response_content", - "SetGuardianFactorPhoneTemplatesResponseContent": ".set_guardian_factor_phone_templates_response_content", - "SetGuardianFactorResponseContent": ".set_guardian_factor_response_content", - "SetGuardianFactorSmsTemplatesResponseContent": ".set_guardian_factor_sms_templates_response_content", - "SetGuardianFactorsProviderPhoneResponseContent": ".set_guardian_factors_provider_phone_response_content", - "SetGuardianFactorsProviderPhoneTwilioResponseContent": ".set_guardian_factors_provider_phone_twilio_response_content", - "SetGuardianFactorsProviderPushNotificationApnsResponseContent": ".set_guardian_factors_provider_push_notification_apns_response_content", - "SetGuardianFactorsProviderPushNotificationFcmResponseContent": ".set_guardian_factors_provider_push_notification_fcm_response_content", - "SetGuardianFactorsProviderPushNotificationFcmv1ResponseContent": ".set_guardian_factors_provider_push_notification_fcmv_1_response_content", - "SetGuardianFactorsProviderPushNotificationResponseContent": ".set_guardian_factors_provider_push_notification_response_content", - "SetGuardianFactorsProviderPushNotificationSnsResponseContent": ".set_guardian_factors_provider_push_notification_sns_response_content", - "SetGuardianFactorsProviderSmsResponseContent": ".set_guardian_factors_provider_sms_response_content", - "SetGuardianFactorsProviderSmsTwilioResponseContent": ".set_guardian_factors_provider_sms_twilio_response_content", - "SetGuardianPoliciesRequestContent": ".set_guardian_policies_request_content", - "SetGuardianPoliciesResponseContent": ".set_guardian_policies_response_content", - "SetGuardianSettingsResponseContent": ".set_guardian_settings_response_content", - "SetNetworkAclsResponseContent": ".set_network_acls_response_content", - "SetPartialsRequestContent": ".set_partials_request_content", - "SetPhoneFactorSettingsResponseContent": ".set_phone_factor_settings_response_content", - "SetRulesConfigResponseContent": ".set_rules_config_response_content", - "SetSelfServiceProfileCustomTextRequestContent": ".set_self_service_profile_custom_text_request_content", - "SetSelfServiceProfileCustomTextResponseContent": ".set_self_service_profile_custom_text_response_content", - "SetUserAuthenticationMethodResponseContent": ".set_user_authentication_method_response_content", - "SetUserAuthenticationMethods": ".set_user_authentication_methods", - "SetUserAuthenticationMethodsRequestContent": ".set_user_authentication_methods_request_content", - "SetsCustomTextsByLanguageRequestContent": ".sets_custom_texts_by_language_request_content", - "Sidebar": ".sidebar", - "SidebarComponent": ".sidebar_component", - "SidebarComponentAuth0ExternalLink": ".sidebar_component_auth_0_external_link", - "SidebarComponentAuth0ExternalLinkConfig": ".sidebar_component_auth_0_external_link_config", - "SidebarComponentAuth0ExternalLinkV2": ".sidebar_component_auth_0_external_link_v_2", - "SidebarComponentAuth0ExternalLinkV2Config": ".sidebar_component_auth_0_external_link_v_2_config", - "SidebarComponentAuth0InternalLink": ".sidebar_component_auth_0_internal_link", - "SidebarComponentAuth0InternalLinkConfig": ".sidebar_component_auth_0_internal_link_config", - "SidebarComponentAuth0InternalLinkV2": ".sidebar_component_auth_0_internal_link_v_2", - "SidebarComponentAuth0InternalLinkV2Config": ".sidebar_component_auth_0_internal_link_v_2_config", - "SidebarComponent_SidebarComponentAuth0ExternalLink": ".sidebar_component", - "SidebarComponent_SidebarComponentAuth0ExternalLinkV2": ".sidebar_component", - "SidebarComponent_SidebarComponentAuth0InternalLink": ".sidebar_component", - "SidebarComponent_SidebarComponentAuth0InternalLinkV2": ".sidebar_component", - "SigningAlgorithmEnum": ".signing_algorithm_enum", - "SigningKeys": ".signing_keys", - "SigningKeysDate": ".signing_keys_date", - "SignupSchema": ".signup_schema", - "SignupStatusEnum": ".signup_status_enum", - "SignupVerification": ".signup_verification", - "SignupVerified": ".signup_verified", - "SupportedLocales": ".supported_locales", - "SuspiciousIpThrottlingAllowlist": ".suspicious_ip_throttling_allowlist", - "SuspiciousIpThrottlingAllowlistItem": ".suspicious_ip_throttling_allowlist_item", - "SuspiciousIpThrottlingPreCustomTokenExchangeStage": ".suspicious_ip_throttling_pre_custom_token_exchange_stage", - "SuspiciousIpThrottlingPreLoginStage": ".suspicious_ip_throttling_pre_login_stage", - "SuspiciousIpThrottlingPreUserRegistrationStage": ".suspicious_ip_throttling_pre_user_registration_stage", - "SuspiciousIpThrottlingShieldsEnum": ".suspicious_ip_throttling_shields_enum", - "SuspiciousIpThrottlingStage": ".suspicious_ip_throttling_stage", - "SynchronizeGroupsEnum": ".synchronize_groups_enum", - "SynchronizedGroupPayload": ".synchronized_group_payload", - "SynchronizedGroupSelectionId": ".synchronized_group_selection_id", - "SystemRoleOwnerId": ".system_role_owner_id", - "TenantOidcLogoutSettings": ".tenant_oidc_logout_settings", - "TenantSettingsCountryCodes": ".tenant_settings_country_codes", - "TenantSettingsCountryCodesMode": ".tenant_settings_country_codes_mode", - "TenantSettingsCountryCodesModeResponse": ".tenant_settings_country_codes_mode_response", - "TenantSettingsCountryCodesResponse": ".tenant_settings_country_codes_response", - "TenantSettingsDeviceFlow": ".tenant_settings_device_flow", - "TenantSettingsDeviceFlowCharset": ".tenant_settings_device_flow_charset", - "TenantSettingsDynamicClientRegistrationSecurityMode": ".tenant_settings_dynamic_client_registration_security_mode", - "TenantSettingsErrorPage": ".tenant_settings_error_page", - "TenantSettingsFlags": ".tenant_settings_flags", - "TenantSettingsGuardianPage": ".tenant_settings_guardian_page", - "TenantSettingsMtls": ".tenant_settings_mtls", - "TenantSettingsNullableSecurityHeaders": ".tenant_settings_nullable_security_headers", - "TenantSettingsPasswordPage": ".tenant_settings_password_page", - "TenantSettingsResourceParameterProfile": ".tenant_settings_resource_parameter_profile", - "TenantSettingsSessions": ".tenant_settings_sessions", - "TenantSettingsSessionsAnonymous": ".tenant_settings_sessions_anonymous", - "TenantSettingsSupportedLocalesEnum": ".tenant_settings_supported_locales_enum", - "TestActionPayload": ".test_action_payload", - "TestActionResponseContent": ".test_action_response_content", - "TestActionResultPayload": ".test_action_result_payload", - "TestCustomDomainResponseContent": ".test_custom_domain_response_content", - "TestEventDataContent": ".test_event_data_content", - "ThirdPartyClientAccessConfig": ".third_party_client_access_config", - "TokenExchangeProfileResponseContent": ".token_exchange_profile_response_content", - "TokenExchangeProfileTypeEnum": ".token_exchange_profile_type_enum", - "TokenQuota": ".token_quota", - "TokenQuotaClientCredentials": ".token_quota_client_credentials", - "TokenQuotaConfiguration": ".token_quota_configuration", - "TokenVaultPrivilegedAccessGrant": ".token_vault_privileged_access_grant", - "TokenVaultPrivilegedAccessIpAllowlistEntry": ".token_vault_privileged_access_ip_allowlist_entry", - "TooManyRequestsErrorBody": ".too_many_requests_error_body", - "TooManyRequestsErrorBodyError": ".too_many_requests_error_body_error", - "TooManyRequestsSchema": ".too_many_requests_schema", - "TooManyRequestsSchemaError": ".too_many_requests_schema_error", - "TwilioProviderConfiguration": ".twilio_provider_configuration", - "TwilioProviderCredentials": ".twilio_provider_credentials", - "TwilioProviderDeliveryMethodEnum": ".twilio_provider_delivery_method_enum", - "UnauthorizedSchema": ".unauthorized_schema", - "UnauthorizedSchemaError": ".unauthorized_schema_error", - "UniversalLoginExperienceEnum": ".universal_login_experience_enum", - "UpdateActionBindingsResponseContent": ".update_action_bindings_response_content", - "UpdateActionModuleResponseContent": ".update_action_module_response_content", - "UpdateActionResponseContent": ".update_action_response_content", - "UpdateAculResponseContent": ".update_acul_response_content", - "UpdateAnonymousSessions": ".update_anonymous_sessions", - "UpdateAttackProtectionCaptchaResponseContent": ".update_attack_protection_captcha_response_content", - "UpdateBotDetectionSettingsResponseContent": ".update_bot_detection_settings_response_content", - "UpdateBrandingColors": ".update_branding_colors", - "UpdateBrandingFont": ".update_branding_font", - "UpdateBrandingPageBackground": ".update_branding_page_background", - "UpdateBrandingPhoneProviderResponseContent": ".update_branding_phone_provider_response_content", - "UpdateBrandingResponseContent": ".update_branding_response_content", - "UpdateBrandingThemeResponseContent": ".update_branding_theme_response_content", - "UpdateBreachedPasswordDetectionSettingsResponseContent": ".update_breached_password_detection_settings_response_content", - "UpdateBruteForceSettingsResponseContent": ".update_brute_force_settings_response_content", - "UpdateClientGrantResponseContent": ".update_client_grant_response_content", - "UpdateClientResponseContent": ".update_client_response_content", - "UpdateConnectionOptions": ".update_connection_options", - "UpdateConnectionProfileResponseContent": ".update_connection_profile_response_content", - "UpdateConnectionRequestContentAd": ".update_connection_request_content_ad", - "UpdateConnectionRequestContentAdfs": ".update_connection_request_content_adfs", - "UpdateConnectionRequestContentAmazon": ".update_connection_request_content_amazon", - "UpdateConnectionRequestContentApple": ".update_connection_request_content_apple", - "UpdateConnectionRequestContentAuth0": ".update_connection_request_content_auth_0", - "UpdateConnectionRequestContentAuth0Oidc": ".update_connection_request_content_auth_0_oidc", - "UpdateConnectionRequestContentAzureAd": ".update_connection_request_content_azure_ad", - "UpdateConnectionRequestContentBaidu": ".update_connection_request_content_baidu", - "UpdateConnectionRequestContentBitbucket": ".update_connection_request_content_bitbucket", - "UpdateConnectionRequestContentBitly": ".update_connection_request_content_bitly", - "UpdateConnectionRequestContentBox": ".update_connection_request_content_box", - "UpdateConnectionRequestContentCustom": ".update_connection_request_content_custom", - "UpdateConnectionRequestContentDaccount": ".update_connection_request_content_daccount", - "UpdateConnectionRequestContentDropbox": ".update_connection_request_content_dropbox", - "UpdateConnectionRequestContentDwolla": ".update_connection_request_content_dwolla", - "UpdateConnectionRequestContentEmail": ".update_connection_request_content_email", - "UpdateConnectionRequestContentEvernote": ".update_connection_request_content_evernote", - "UpdateConnectionRequestContentEvernoteSandbox": ".update_connection_request_content_evernote_sandbox", - "UpdateConnectionRequestContentExact": ".update_connection_request_content_exact", - "UpdateConnectionRequestContentFacebook": ".update_connection_request_content_facebook", - "UpdateConnectionRequestContentFitbit": ".update_connection_request_content_fitbit", - "UpdateConnectionRequestContentGitHub": ".update_connection_request_content_git_hub", - "UpdateConnectionRequestContentGoogleApps": ".update_connection_request_content_google_apps", - "UpdateConnectionRequestContentGoogleOAuth2": ".update_connection_request_content_google_o_auth_2", - "UpdateConnectionRequestContentInstagram": ".update_connection_request_content_instagram", - "UpdateConnectionRequestContentIp": ".update_connection_request_content_ip", - "UpdateConnectionRequestContentLine": ".update_connection_request_content_line", - "UpdateConnectionRequestContentLinkedin": ".update_connection_request_content_linkedin", - "UpdateConnectionRequestContentOAuth1": ".update_connection_request_content_o_auth_1", - "UpdateConnectionRequestContentOAuth2": ".update_connection_request_content_o_auth_2", - "UpdateConnectionRequestContentOffice365": ".update_connection_request_content_office_365", - "UpdateConnectionRequestContentOidc": ".update_connection_request_content_oidc", - "UpdateConnectionRequestContentOkta": ".update_connection_request_content_okta", - "UpdateConnectionRequestContentPaypal": ".update_connection_request_content_paypal", - "UpdateConnectionRequestContentPaypalSandbox": ".update_connection_request_content_paypal_sandbox", - "UpdateConnectionRequestContentPingFederate": ".update_connection_request_content_ping_federate", - "UpdateConnectionRequestContentPlanningCenter": ".update_connection_request_content_planning_center", - "UpdateConnectionRequestContentSalesforce": ".update_connection_request_content_salesforce", - "UpdateConnectionRequestContentSalesforceCommunity": ".update_connection_request_content_salesforce_community", - "UpdateConnectionRequestContentSalesforceSandbox": ".update_connection_request_content_salesforce_sandbox", - "UpdateConnectionRequestContentSaml": ".update_connection_request_content_saml", - "UpdateConnectionRequestContentSharepoint": ".update_connection_request_content_sharepoint", - "UpdateConnectionRequestContentShop": ".update_connection_request_content_shop", - "UpdateConnectionRequestContentShopify": ".update_connection_request_content_shopify", - "UpdateConnectionRequestContentSms": ".update_connection_request_content_sms", - "UpdateConnectionRequestContentSoundcloud": ".update_connection_request_content_soundcloud", - "UpdateConnectionRequestContentThirtySevenSignals": ".update_connection_request_content_thirty_seven_signals", - "UpdateConnectionRequestContentTwitter": ".update_connection_request_content_twitter", - "UpdateConnectionRequestContentUntappd": ".update_connection_request_content_untappd", - "UpdateConnectionRequestContentVkontakte": ".update_connection_request_content_vkontakte", - "UpdateConnectionRequestContentWeibo": ".update_connection_request_content_weibo", - "UpdateConnectionRequestContentWindowsLive": ".update_connection_request_content_windows_live", - "UpdateConnectionRequestContentWordpress": ".update_connection_request_content_wordpress", - "UpdateConnectionRequestContentYahoo": ".update_connection_request_content_yahoo", - "UpdateConnectionRequestContentYandex": ".update_connection_request_content_yandex", - "UpdateConnectionResponseContent": ".update_connection_response_content", - "UpdateCrossAppAccessResourceApp": ".update_cross_app_access_resource_app", - "UpdateCustomDomainResponseContent": ".update_custom_domain_response_content", - "UpdateDefaultCanonicalDomainResponseContent": ".update_default_canonical_domain_response_content", - "UpdateDefaultCustomDomainResponseContent": ".update_default_custom_domain_response_content", - "UpdateDefaultDomainResponseContent": ".update_default_domain_response_content", - "UpdateDirectoryProvisioningRequestContent": ".update_directory_provisioning_request_content", - "UpdateDirectoryProvisioningResponseContent": ".update_directory_provisioning_response_content", - "UpdateEmailProviderResponseContent": ".update_email_provider_response_content", - "UpdateEmailTemplateResponseContent": ".update_email_template_response_content", - "UpdateEnabledClientConnectionsRequestContent": ".update_enabled_client_connections_request_content", - "UpdateEnabledClientConnectionsRequestContentItem": ".update_enabled_client_connections_request_content_item", - "UpdateEventStreamResponseContent": ".update_event_stream_response_content", - "UpdateExperimentResponseContent": ".update_experiment_response_content", - "UpdateFeatureFlagParameters": ".update_feature_flag_parameters", - "UpdateFeatureFlagResponseContent": ".update_feature_flag_response_content", - "UpdateFlowResponseContent": ".update_flow_response_content", - "UpdateFlowsVaultConnectionResponseContent": ".update_flows_vault_connection_response_content", - "UpdateFlowsVaultConnectionSetup": ".update_flows_vault_connection_setup", - "UpdateFormResponseContent": ".update_form_response_content", - "UpdateGuardianFactorDuoSettingsResponseContent": ".update_guardian_factor_duo_settings_response_content", - "UpdateGuardianFactorsProviderPushNotificationApnsResponseContent": ".update_guardian_factors_provider_push_notification_apns_response_content", - "UpdateGuardianFactorsProviderPushNotificationFcmResponseContent": ".update_guardian_factors_provider_push_notification_fcm_response_content", - "UpdateGuardianFactorsProviderPushNotificationFcmv1ResponseContent": ".update_guardian_factors_provider_push_notification_fcmv_1_response_content", - "UpdateGuardianFactorsProviderPushNotificationSnsResponseContent": ".update_guardian_factors_provider_push_notification_sns_response_content", - "UpdateHookResponseContent": ".update_hook_response_content", - "UpdateHookSecretRequestContent": ".update_hook_secret_request_content", - "UpdateIdentityAssertionAuthorizationGrant": ".update_identity_assertion_authorization_grant", - "UpdateLogStreamResponseContent": ".update_log_stream_response_content", - "UpdateNetworkAclResponseContent": ".update_network_acl_response_content", - "UpdateOrganizationAllConnectionResponseContent": ".update_organization_all_connection_response_content", - "UpdateOrganizationClientResponseContent": ".update_organization_client_response_content", - "UpdateOrganizationConnectionResponseContent": ".update_organization_connection_response_content", - "UpdateOrganizationDiscoveryDomainResponseContent": ".update_organization_discovery_domain_response_content", - "UpdateOrganizationResponseContent": ".update_organization_response_content", - "UpdatePhoneTemplateResponseContent": ".update_phone_template_response_content", - "UpdateRateLimitPolicyResponseContent": ".update_rate_limit_policy_response_content", - "UpdateRefreshTokenResponseContent": ".update_refresh_token_response_content", - "UpdateResourceServerResponseContent": ".update_resource_server_response_content", - "UpdateRiskAssessmentsSettingsNewDeviceResponseContent": ".update_risk_assessments_settings_new_device_response_content", - "UpdateRiskAssessmentsSettingsResponseContent": ".update_risk_assessments_settings_response_content", - "UpdateRoleResponseContent": ".update_role_response_content", - "UpdateRuleResponseContent": ".update_rule_response_content", - "UpdateScimConfigurationResponseContent": ".update_scim_configuration_response_content", - "UpdateSegmentResponseContent": ".update_segment_response_content", - "UpdateSelfServiceProfileResponseContent": ".update_self_service_profile_response_content", - "UpdateSessionResponseContent": ".update_session_response_content", - "UpdateSettingsResponseContent": ".update_settings_response_content", - "UpdateSuspiciousIpThrottlingSettingsResponseContent": ".update_suspicious_ip_throttling_settings_response_content", - "UpdateTenantSettingsResponseContent": ".update_tenant_settings_response_content", - "UpdateTokenQuota": ".update_token_quota", - "UpdateUniversalLoginTemplateRequestContent": ".update_universal_login_template_request_content", - "UpdateUniversalLoginTemplateRequestContentTemplate": ".update_universal_login_template_request_content_template", - "UpdateUserAttributeProfileResponseContent": ".update_user_attribute_profile_response_content", - "UpdateUserAuthenticationMethodResponseContent": ".update_user_authentication_method_response_content", - "UpdateUserResponseContent": ".update_user_response_content", - "UpdateVariationOverridesMap": ".update_variation_overrides_map", - "UpdateVariationResponseContent": ".update_variation_response_content", - "UpdateVerifiableCredentialTemplateResponseContent": ".update_verifiable_credential_template_response_content", - "UserAppMetadataSchema": ".user_app_metadata_schema", - "UserAttributeProfile": ".user_attribute_profile", - "UserAttributeProfileId": ".user_attribute_profile_id", - "UserAttributeProfileName": ".user_attribute_profile_name", - "UserAttributeProfileOidcMapping": ".user_attribute_profile_oidc_mapping", - "UserAttributeProfilePatchUserId": ".user_attribute_profile_patch_user_id", - "UserAttributeProfileSamlMapping": ".user_attribute_profile_saml_mapping", - "UserAttributeProfileStrategyOverrides": ".user_attribute_profile_strategy_overrides", - "UserAttributeProfileStrategyOverridesMapping": ".user_attribute_profile_strategy_overrides_mapping", - "UserAttributeProfileStrategyOverridesUserId": ".user_attribute_profile_strategy_overrides_user_id", - "UserAttributeProfileStrategyOverridesUserIdMapping": ".user_attribute_profile_strategy_overrides_user_id_mapping", - "UserAttributeProfileTemplate": ".user_attribute_profile_template", - "UserAttributeProfileTemplateItem": ".user_attribute_profile_template_item", - "UserAttributeProfileUserAttributeAdditionalProperties": ".user_attribute_profile_user_attribute_additional_properties", - "UserAttributeProfileUserAttributes": ".user_attribute_profile_user_attributes", - "UserAttributeProfileUserId": ".user_attribute_profile_user_id", - "UserAttributeProfileUserIdOidcMappingEnum": ".user_attribute_profile_user_id_oidc_mapping_enum", - "UserAttributeProfileUserIdOidcStrategyOverrideMapping": ".user_attribute_profile_user_id_oidc_strategy_override_mapping", - "UserAttributeProfileUserIdSamlMapping": ".user_attribute_profile_user_id_saml_mapping", - "UserAuthenticationMethod": ".user_authentication_method", - "UserAuthenticationMethodProperties": ".user_authentication_method_properties", - "UserAuthenticationMethodPropertiesEnum": ".user_authentication_method_properties_enum", - "UserBlockIdentifier": ".user_block_identifier", - "UserEffectivePermissionResponseContent": ".user_effective_permission_response_content", - "UserEffectivePermissionRoleSourceEnum": ".user_effective_permission_role_source_enum", - "UserEffectivePermissionRoleSourceResponseContent": ".user_effective_permission_role_source_response_content", - "UserEffectivePermissionSourceEnum": ".user_effective_permission_source_enum", - "UserEffectiveRole": ".user_effective_role", - "UserEffectiveRoleSource": ".user_effective_role_source", - "UserEnrollmentAuthMethodEnum": ".user_enrollment_auth_method_enum", - "UserEnrollmentStatusEnum": ".user_enrollment_status_enum", - "UserGrant": ".user_grant", - "UserGroupsResponseSchema": ".user_groups_response_schema", - "UserId": ".user_id", - "UserIdentity": ".user_identity", - "UserIdentityProviderEnum": ".user_identity_provider_enum", - "UserIdentitySchema": ".user_identity_schema", - "UserListLogOffsetPaginatedResponseContent": ".user_list_log_offset_paginated_response_content", - "UserMetadata": ".user_metadata", - "UserMetadataSchema": ".user_metadata_schema", - "UserMultifactorProviderEnum": ".user_multifactor_provider_enum", - "UserPermissionSchema": ".user_permission_schema", - "UserProfileData": ".user_profile_data", - "UserResponseSchema": ".user_response_schema", - "UsernameAllowedTypes": ".username_allowed_types", - "UsernameAttribute": ".username_attribute", - "UsernameAttributeIdentifier": ".username_attribute_identifier", - "UsernameValidation": ".username_validation", - "UsersEnrollment": ".users_enrollment", - "ValidateExperimentResponseContent": ".validate_experiment_response_content", - "Variation": ".variation", - "VariationOverridesMap": ".variation_overrides_map", - "VerifiableCredentialTemplateResponse": ".verifiable_credential_template_response", - "VerificationMethodEnum": ".verification_method_enum", - "VerifyCustomDomainResponseContent": ".verify_custom_domain_response_content", - "VerifyEmailTicketResponseContent": ".verify_email_ticket_response_content", - "X509CertificateCredential": ".x_509_certificate_credential", - "X509CertificateCredentialTypeEnum": ".x_509_certificate_credential_type_enum", - "XssProtectionConfig": ".xss_protection_config", - "XssProtectionMode": ".xss_protection_mode", + "SendBase": ".send_base", + "SendBaseType": ".send_base_type", + "SendByContent": ".send_by_content", + "SendByTemplate": ".send_by_template", + "SendParams": ".send_params", + "SendParamsContent": ".send_params_content", + "SendParamsTemplateId": ".send_params_template_id", + "SendParamsType": ".send_params_type", } @@ -10652,4017 +48,12 @@ def __dir__(): __all__ = [ - "Action", - "ActionBase", - "ActionBinding", - "ActionBindingRef", - "ActionBindingRefTypeEnum", - "ActionBindingTypeEnum", - "ActionBindingWithRef", - "ActionBuildStatusEnum", - "ActionDeployedVersion", - "ActionError", - "ActionExecutionResult", - "ActionExecutionStatusEnum", - "ActionModuleAction", - "ActionModuleDependency", - "ActionModuleDependencyRequest", - "ActionModuleListItem", - "ActionModuleReference", - "ActionModuleSecret", - "ActionModuleSecretRequest", - "ActionModuleVersion", - "ActionModuleVersionReference", - "ActionSecretRequest", - "ActionSecretResponse", - "ActionTrigger", - "ActionTriggerCompatibleTrigger", - "ActionTriggerTypeEnum", - "ActionVersion", - "ActionVersionBuildStatusEnum", - "ActionVersionDependency", - "AculClientFilter", - "AculClientFilterById", - "AculClientFilterByMetadata", - "AculClientMetadata", - "AculConfigs", - "AculConfigsItem", - "AculContextConfiguration", - "AculContextConfigurationItem", - "AculContextEnum", - "AculDomainFilter", - "AculDomainFilterById", - "AculDomainFilterByMetadata", - "AculDomainMetadata", - "AculFilters", - "AculHeadTag", - "AculHeadTagAttributes", - "AculHeadTagContent", - "AculMatchTypeEnum", - "AculOrganizationFilter", - "AculOrganizationFilterById", - "AculOrganizationFilterByMetadata", - "AculOrganizationMetadata", - "AculRenderingModeEnum", - "AddOrganizationConnectionResponseContent", - "AdvanceRampResponseContent", - "AgentMetadata", - "AgentResponseContent", - "AllocationItem", - "AllocationRequestItem", - "AllocationStrategyEnum", - "AnomalyIpFormat", - "AnonymousSessions", - "AppMetadata", - "AssessorsTypeEnum", - "AssociateOrganizationClientGrantResponseContent", - "AsyncApprovalNotificationsChannelsEnum", - "AttackProtectionCaptchaArkoseResponseContent", - "AttackProtectionCaptchaAuthChallengeRequest", - "AttackProtectionCaptchaAuthChallengeResponseContent", - "AttackProtectionCaptchaFriendlyCaptchaResponseContent", - "AttackProtectionCaptchaHcaptchaResponseContent", - "AttackProtectionCaptchaProviderId", - "AttackProtectionCaptchaRecaptchaEnterpriseResponseContent", - "AttackProtectionCaptchaRecaptchaV2ResponseContent", - "AttackProtectionCaptchaSimpleCaptchaResponseContent", - "AttackProtectionUpdateCaptchaArkose", - "AttackProtectionUpdateCaptchaFriendlyCaptcha", - "AttackProtectionUpdateCaptchaHcaptcha", - "AttackProtectionUpdateCaptchaRecaptchaEnterprise", - "AttackProtectionUpdateCaptchaRecaptchaV2", - "AuthenticationFlowEnum", - "AuthenticationMethodTypeEnum", - "AuthenticationTypeEnum", - "B2BIntegrationConfiguration", - "B2BIntegrationConfigurationIntegrationTypeEnum", - "BadRequestSchema", - "BadRequestSchemaError", - "BotDetectionAllowlist", - "BotDetectionChallengePolicyPasswordFlowEnum", - "BotDetectionChallengePolicyPasswordResetFlowEnum", - "BotDetectionChallengePolicyPasswordlessFlowEnum", - "BotDetectionCidrBlock", - "BotDetectionIPv4", - "BotDetectionIPv6", - "BotDetectionIPv6CidrBlock", - "BotDetectionIpAddressOrCidrBlock", - "BotDetectionLevelEnum", - "BotDetectionMonitoringModeEnabled", - "BrandingColors", - "BrandingFont", - "BrandingPageBackground", - "BrandingThemeBorders", - "BrandingThemeBordersButtonsStyleEnum", - "BrandingThemeBordersInputsStyleEnum", - "BrandingThemeColors", - "BrandingThemeColorsCaptchaWidgetThemeEnum", - "BrandingThemeFontBodyText", - "BrandingThemeFontButtonsText", - "BrandingThemeFontInputLabels", - "BrandingThemeFontLinks", - "BrandingThemeFontLinksStyleEnum", - "BrandingThemeFontSubtitle", - "BrandingThemeFontTitle", - "BrandingThemeFonts", - "BrandingThemeIdentifiers", - "BrandingThemeIdentifiersLoginDisplayEnum", - "BrandingThemeIdentifiersPhoneDisplay", - "BrandingThemeIdentifiersPhoneDisplayFormattingEnum", - "BrandingThemeIdentifiersPhoneDisplayMaskingEnum", - "BrandingThemePageBackground", - "BrandingThemePageBackgroundPageLayoutEnum", - "BrandingThemeWidget", - "BrandingThemeWidgetHeaderTextAlignmentEnum", - "BrandingThemeWidgetLogoPositionEnum", - "BrandingThemeWidgetSocialButtonsLayoutEnum", - "BreachedPasswordDetectionAdminNotificationFrequencyEnum", - "BreachedPasswordDetectionMethodEnum", - "BreachedPasswordDetectionPreChangePasswordShieldsEnum", - "BreachedPasswordDetectionPreChangePasswordStage", - "BreachedPasswordDetectionPreUserRegistrationShieldsEnum", - "BreachedPasswordDetectionPreUserRegistrationStage", - "BreachedPasswordDetectionShieldsEnum", - "BreachedPasswordDetectionStage", - "BruteForceProtectionFormSubmissionModeEnum", - "BruteForceProtectionModeEnum", - "BruteForceProtectionShieldsEnum", - "BulkUpdateAculResponseContent", - "CertificateSubjectDnCredential", - "CertificateSubjectDnCredentialTypeEnum", - "ChangePasswordTicketIdentity", - "ChangePasswordTicketResponseContent", - "CimdExternalMetadataCreatedByEnum", - "CimdMappedClientAuthenticationMethods", - "CimdMappedClientAuthenticationMethodsPrivateKeyJwt", - "CimdMappedClientFields", - "CimdMappedPrivateKeyJwtCredential", - "CimdValidationResult", - "Client", - "ClientAddonAws", - "ClientAddonAzureBlob", - "ClientAddonAzureSb", - "ClientAddonBox", - "ClientAddonCloudBees", - "ClientAddonConcur", - "ClientAddonDropbox", - "ClientAddonEchoSign", - "ClientAddonEgnyte", - "ClientAddonFirebase", - "ClientAddonLayer", - "ClientAddonMscrm", - "ClientAddonNewRelic", - "ClientAddonOag", - "ClientAddonOffice365", - "ClientAddonRms", - "ClientAddonSalesforce", - "ClientAddonSalesforceApi", - "ClientAddonSalesforceSandboxApi", - "ClientAddonSaml", - "ClientAddonSamlMapping", - "ClientAddonSapapi", - "ClientAddonSentry", - "ClientAddonSharePoint", - "ClientAddonSharePointExternalUrl", - "ClientAddonSlack", - "ClientAddonSpringCm", - "ClientAddonSsoIntegration", - "ClientAddonWams", - "ClientAddonWsFed", - "ClientAddonZendesk", - "ClientAddonZoom", - "ClientAddons", - "ClientAnonymousSessionTransferNetworkBindingEnum", - "ClientAppTypeEnum", - "ClientAsyncApprovalNotificationsChannelsApiPatchConfiguration", - "ClientAsyncApprovalNotificationsChannelsApiPostConfiguration", - "ClientAuthenticationMethod", - "ClientAuthenticationMethodPrivateKeyJwt", - "ClientAuthenticationMethodPrivateKeyJwtCredentials", - "ClientAuthenticationMethodSelfSignedTlsClientAuth", - "ClientAuthenticationMethodSelfSignedTlsClientAuthCredentials", - "ClientAuthenticationMethodTlsClientAuth", - "ClientAuthenticationMethodTlsClientAuthCredentials", - "ClientComplianceLevelEnum", - "ClientCreateAuthenticationMethod", - "ClientCreateAuthenticationMethodPrivateKeyJwt", - "ClientCreateAuthenticationMethodPrivateKeyJwtCredentials", - "ClientCreateAuthenticationMethodTlsClientAuth", - "ClientCreateAuthenticationMethodTlsClientAuthCredentials", - "ClientCredential", - "ClientCredentialAlgorithmEnum", - "ClientCredentialTypeEnum", - "ClientDefaultOrganization", - "ClientDefaultOrganizationFlowsEnum", - "ClientEncryptionKey", - "ClientExternalMetadataCreatedByEnum", - "ClientExternalMetadataStatusEnum", - "ClientExternalMetadataTypeEnum", - "ClientGrantAllowAnyOrganizationEnum", - "ClientGrantDefaultForEnum", - "ClientGrantOrganizationNullableUsageEnum", - "ClientGrantOrganizationUsageEnum", - "ClientGrantResponseContent", - "ClientGrantSortFieldEnum", - "ClientGrantSubjectTypeEnum", - "ClientJwtConfiguration", - "ClientJwtConfigurationScopes", - "ClientMetadata", - "ClientMobile", - "ClientMobileAndroid", - "ClientMobileiOs", - "ClientMyOrganizationConfigurationAllowedStrategiesEnum", - "ClientMyOrganizationConfigurationThirdPartyClientAccessAllowedValuesEnum", - "ClientMyOrganizationConfigurationThirdPartyClientAccessDefaultValueEnum", - "ClientMyOrganizationDeletionBehaviorEnum", - "ClientMyOrganizationPatchConfiguration", - "ClientMyOrganizationPostConfiguration", - "ClientMyOrganizationResponseConfiguration", - "ClientMyOrganizationThirdPartyClientAccessConfiguration", - "ClientOidcBackchannelLogoutInitiators", - "ClientOidcBackchannelLogoutInitiatorsEnum", - "ClientOidcBackchannelLogoutInitiatorsModeEnum", - "ClientOidcBackchannelLogoutSessionMetadata", - "ClientOidcBackchannelLogoutSettings", - "ClientOidcSupport", - "ClientOidcSupportAllowedScopesEnum", - "ClientOidcSupportPatch", - "ClientOidcSupportPost", - "ClientOrganizationDiscoveryEnum", - "ClientOrganizationRequireBehaviorEnum", - "ClientOrganizationRequireBehaviorPatchEnum", - "ClientOrganizationUsageEnum", - "ClientOrganizationUsagePatchEnum", - "ClientProfile", - "ClientProfileApplyPolicy", - "ClientProfileApplyPolicyExternalMetadataCreatedByEnum", - "ClientProfileApplyPolicyExternalMetadataTypeEnum", - "ClientProfileClientConfiguration", - "ClientProfileClientConfigurationOidcSupport", - "ClientProfileClientConfigurationOidcSupportAllowedScopesEnum", - "ClientProfileClientConfigurationOidcSupportDefaultValue", - "ClientProfileClientConfigurationOrganizationDiscoveryMethodEnum", - "ClientProfileClientConfigurationOrganizationDiscoveryMethods", - "ClientProfileClientConfigurationOrganizationRequireBehavior", - "ClientProfileClientConfigurationOrganizationRequireBehaviorEnum", - "ClientProfileClientConfigurationOrganizationUsage", - "ClientProfileClientConfigurationOrganizationUsageEnum", - "ClientProfileClientConfigurationRefreshToken", - "ClientProfileClientConfigurationRequireProofOfPossession", - "ClientProfileDescription", - "ClientProfileId", - "ClientProfileName", - "ClientProfileRefreshTokenIdleTokenLifetime", - "ClientProfileRefreshTokenLeeway", - "ClientProfileRefreshTokenTokenLifetime", - "ClientRedirectionPolicyEnum", - "ClientRefreshTokenConfiguration", - "ClientRefreshTokenPolicy", - "ClientSearchResponse", - "ClientSessionTransferAllowedAuthenticationMethodsEnum", - "ClientSessionTransferConfiguration", - "ClientSessionTransferDelegationConfiguration", - "ClientSessionTransferDelegationDeviceBindingEnum", - "ClientSessionTransferDeviceBindingEnum", - "ClientSignedRequestObjectWithCredentialId", - "ClientSignedRequestObjectWithPublicKey", - "ClientSigningKey", - "ClientSigningKeys", - "ClientSortFieldEnum", - "ClientThirdPartySecurityModeEnum", - "ClientTokenEndpointAuthMethodEnum", - "ClientTokenEndpointAuthMethodOrNullEnum", - "ClientTokenExchangeConfiguration", - "ClientTokenExchangeConfigurationOrNull", - "ClientTokenExchangeTypeEnum", - "ClientTokenVaultPrivilegedAccessWithCredentialId", - "ClientTokenVaultPrivilegedAccessWithPublicKey", - "ConflictSchema", - "ConflictSchemaError", - "ConnectedAccount", - "ConnectedAccountAccessTypeEnum", - "ConnectionAccessTokenUrloAuth1", - "ConnectionAcrValuesSupported", - "ConnectionAdminAccessTokenExpiresInGoogleApps", - "ConnectionAdminAccessTokenGoogleApps", - "ConnectionAdminRefreshTokenGoogleApps", - "ConnectionAgentIpad", - "ConnectionAgentModeAd", - "ConnectionAgentVersionAd", - "ConnectionAllowedAudiencesGoogleOAuth2", - "ConnectionApiBehaviorEnum", - "ConnectionApiEnableGroups", - "ConnectionApiEnableGroupsGoogleApps", - "ConnectionApiEnableUsers", - "ConnectionApiEnableUsersGoogleApps", - "ConnectionAppDomainAzureAd", - "ConnectionAssertionDecryptionAlgorithmProfileEnum", - "ConnectionAssertionDecryptionSettings", - "ConnectionAttributeMapAttributes", - "ConnectionAttributeMapOidc", - "ConnectionAttributeMapOkta", - "ConnectionAttributeMapUserinfoScope", - "ConnectionAttributes", - "ConnectionAuthParamsAdditionalPropertiesOAuth2", - "ConnectionAuthParamsEmail", - "ConnectionAuthParamsMap", - "ConnectionAuthParamsOAuth2", - "ConnectionAuthenticationMethods", - "ConnectionAuthenticationPurpose", - "ConnectionAuthorizationEndpoint", - "ConnectionBaseUrlExact", - "ConnectionBruteForceProtection", - "ConnectionCalculatedThumbprintSaml", - "ConnectionCertsAd", - "ConnectionClaimTypesSupported", - "ConnectionClaimsLocalesSupported", - "ConnectionClaimsParameterSupported", - "ConnectionClaimsSupported", - "ConnectionClientId", - "ConnectionClientIdAmazon", - "ConnectionClientIdAzureAd", - "ConnectionClientIdBitbucket", - "ConnectionClientIdExact", - "ConnectionClientIdFacebook", - "ConnectionClientIdGoogleApps", - "ConnectionClientIdGoogleOAuth2", - "ConnectionClientIdLine", - "ConnectionClientIdLinkedin", - "ConnectionClientIdOAuth1", - "ConnectionClientIdOAuth2", - "ConnectionClientIdOidc", - "ConnectionClientIdPaypal", - "ConnectionClientIdSalesforce", - "ConnectionClientIdSamlxaaRequestingApp", - "ConnectionClientIdWindowsLive", - "ConnectionClientProtocolSaml", - "ConnectionClientSecret", - "ConnectionClientSecretAmazon", - "ConnectionClientSecretAzureAd", - "ConnectionClientSecretBitbucket", - "ConnectionClientSecretExact", - "ConnectionClientSecretFacebook", - "ConnectionClientSecretGoogleApps", - "ConnectionClientSecretGoogleOAuth2", - "ConnectionClientSecretLine", - "ConnectionClientSecretLinkedin", - "ConnectionClientSecretOAuth1", - "ConnectionClientSecretOAuth2", - "ConnectionClientSecretOidc", - "ConnectionClientSecretPaypal", - "ConnectionClientSecretSalesforce", - "ConnectionClientSecretSamlxaaRequestingApp", - "ConnectionClientSecretWindowsLive", - "ConnectionCommon", - "ConnectionCommunityBaseUrlSalesforce", - "ConnectionConfiguration", - "ConnectionConnectedAccountsPurpose", - "ConnectionConnectedAccountsPurposeXaa", - "ConnectionConnectionSettings", - "ConnectionConnectionSettingsPkceEnum", - "ConnectionCrossAppAccessResourceApp", - "ConnectionCrossAppAccessResourceAppStatusEnum", - "ConnectionCustomHeadersOAuth2", - "ConnectionCustomScripts", - "ConnectionDebugSaml", - "ConnectionDecryptionKeySaml", - "ConnectionDecryptionKeySamlCert", - "ConnectionDestinationUrlSaml", - "ConnectionDigestAlgorithmEnumSaml", - "ConnectionDigestAlgorithmSaml", - "ConnectionDisableSelfServiceChangePassword", - "ConnectionDisableSignup", - "ConnectionDisableSignupSms", - "ConnectionDiscoveryUrl", - "ConnectionDisplayName", - "ConnectionDisplayValuesSupported", - "ConnectionDomainAliases", - "ConnectionDomainAliasesAd", - "ConnectionDomainAliasesAzureAd", - "ConnectionDomainAliasesItemsOne", - "ConnectionDomainAliasesSaml", - "ConnectionDomainGoogleApps", - "ConnectionDomainOkta", - "ConnectionDpopSigningAlgEnum", - "ConnectionDpopSigningAlgValuesSupported", - "ConnectionEmailBodyEmail", - "ConnectionEmailEmail", - "ConnectionEmailEmailSyntax", - "ConnectionEmailFromEmail", - "ConnectionEmailOtpAuthenticationMethod", - "ConnectionEmailSubjectEmail", - "ConnectionEnablePushedAuthorizationRequests", - "ConnectionEnableScriptContext", - "ConnectionEnabledClient", - "ConnectionEnabledClients", - "ConnectionEnabledDatabaseCustomization", - "ConnectionEndSessionEndpoint", - "ConnectionEntityIdSaml", - "ConnectionExtAdmin", - "ConnectionExtAgreedTerms", - "ConnectionExtAgreedTermsGoogleApps", - "ConnectionExtAssignedPlans", - "ConnectionExtGroups", - "ConnectionExtGroupsAzureAd", - "ConnectionExtGroupsGoogleApps", - "ConnectionExtIsAdminGoogleApps", - "ConnectionExtIsSuspended", - "ConnectionExtIsSuspendedGoogleApps", - "ConnectionExtProfile", - "ConnectionFieldsMap", - "ConnectionFieldsMapSaml", - "ConnectionFieldsMapSamlValue", - "ConnectionForList", - "ConnectionForOrganization", - "ConnectionForwardReqInfoSms", - "ConnectionFreeformScopesAmazon", - "ConnectionFreeformScopesGoogleOAuth2", - "ConnectionFreeformScopesLinkedin", - "ConnectionFreeformScopesPaypal", - "ConnectionFreeformScopesSalesforce", - "ConnectionFreeformScopesWindowsLive", - "ConnectionFromSms", - "ConnectionGatewayAuthentication", - "ConnectionGatewayAuthenticationAudienceSms", - "ConnectionGatewayAuthenticationMethodSms", - "ConnectionGatewayAuthenticationSms", - "ConnectionGatewayAuthenticationSubjectSms", - "ConnectionGatewayUrlSms", - "ConnectionGlobalTokenRevocationJwtIssSaml", - "ConnectionGlobalTokenRevocationJwtSubSaml", - "ConnectionGrantTypesSupported", - "ConnectionHandleLoginFromSocialGoogleApps", - "ConnectionHttpsUrlWithHttpFallback", - "ConnectionHttpsUrlWithHttpFallback2048", - "ConnectionHttpsUrlWithHttpFallback255", - "ConnectionIconUrl", - "ConnectionIconUrlAdfs", - "ConnectionIconUrlAzureAd", - "ConnectionIconUrlGoogleApps", - "ConnectionIconUrlGoogleOAuth2", - "ConnectionIconUrlSaml", - "ConnectionId", - "ConnectionIdTokenEncryptionAlgValuesSupported", - "ConnectionIdTokenEncryptionEncValuesSupported", - "ConnectionIdTokenSessionExpirySupported", - "ConnectionIdTokenSignedResponseAlgEnum", - "ConnectionIdTokenSignedResponseAlgs", - "ConnectionIdTokenSigningAlgValuesSupported", - "ConnectionIdentifierPrecedence", - "ConnectionIdentifierPrecedenceEnum", - "ConnectionIdentityApiAzureAd", - "ConnectionIdentityApiEnumAzureAd", - "ConnectionIdentityProviderEnum", - "ConnectionImportMode", - "ConnectionIpsAd", - "ConnectionIsDomainConnection", - "ConnectionIssuer", - "ConnectionJwksUri", - "ConnectionKey", - "ConnectionKeyUseEnum", - "ConnectionMappingModeEnumOidc", - "ConnectionMappingModeEnumOkta", - "ConnectionMaxGroupsToRetrieve", - "ConnectionMessagingServiceSidSms", - "ConnectionMetadataUrlSaml", - "ConnectionMetadataXml", - "ConnectionMetadataXmlAdfs", - "ConnectionMetadataXmlSaml", - "ConnectionMfa", - "ConnectionName", - "ConnectionNamePrefixTemplate", - "ConnectionNonPersistentAttrs", - "ConnectionOpPolicyUri", - "ConnectionOpTosUri", - "ConnectionOptions", - "ConnectionOptionsAd", - "ConnectionOptionsAdfs", - "ConnectionOptionsAmazon", - "ConnectionOptionsApple", - "ConnectionOptionsAuth0", - "ConnectionOptionsAuth0Oidc", - "ConnectionOptionsAzureAd", - "ConnectionOptionsBaidu", - "ConnectionOptionsBitbucket", - "ConnectionOptionsBitly", - "ConnectionOptionsBox", - "ConnectionOptionsClientIdGithub", - "ConnectionOptionsClientIdTwitter", - "ConnectionOptionsClientSecretGithub", - "ConnectionOptionsClientSecretTwitter", - "ConnectionOptionsCommon", - "ConnectionOptionsCommonOidc", - "ConnectionOptionsCommonSaml", - "ConnectionOptionsCustom", - "ConnectionOptionsDaccount", - "ConnectionOptionsDeflateSaml", - "ConnectionOptionsDropbox", - "ConnectionOptionsDwolla", - "ConnectionOptionsEmail", - "ConnectionOptionsEvernote", - "ConnectionOptionsExact", - "ConnectionOptionsFacebook", - "ConnectionOptionsFitbit", - "ConnectionOptionsFreeformScopesGithub", - "ConnectionOptionsGitHub", - "ConnectionOptionsGoogleApps", - "ConnectionOptionsGoogleOAuth2", - "ConnectionOptionsIdpInitiatedClientProtocolEnumSaml", - "ConnectionOptionsIdpinitiatedSaml", - "ConnectionOptionsInstagram", - "ConnectionOptionsIp", - "ConnectionOptionsLine", - "ConnectionOptionsLinkedin", - "ConnectionOptionsOAuth1", - "ConnectionOptionsOAuth1Common", - "ConnectionOptionsOAuth2", - "ConnectionOptionsOAuth2Common", - "ConnectionOptionsOffice365", - "ConnectionOptionsOidc", - "ConnectionOptionsOidcMetadata", - "ConnectionOptionsOkta", - "ConnectionOptionsPaypal", - "ConnectionOptionsPingFederate", - "ConnectionOptionsPlanningCenter", - "ConnectionOptionsProtocolEnumTwitter", - "ConnectionOptionsSalesforce", - "ConnectionOptionsSalesforceCommunity", - "ConnectionOptionsSaml", - "ConnectionOptionsScopeGithub", - "ConnectionOptionsScopeTwitter", - "ConnectionOptionsSharepoint", - "ConnectionOptionsShop", - "ConnectionOptionsShopify", - "ConnectionOptionsSms", - "ConnectionOptionsSoundcloud", - "ConnectionOptionsThirtySevenSignals", - "ConnectionOptionsTwitter", - "ConnectionOptionsUntappd", - "ConnectionOptionsVkontakte", - "ConnectionOptionsWeibo", - "ConnectionOptionsWindowsLive", - "ConnectionOptionsWordpress", - "ConnectionOptionsYahoo", - "ConnectionOptionsYandex", - "ConnectionOtpChannelSettings", - "ConnectionOtpSettings", - "ConnectionPasskeyAuthenticationMethod", - "ConnectionPasskeyChallengeUiEnum", - "ConnectionPasskeyOptions", - "ConnectionPasswordAuthenticationMethod", - "ConnectionPasswordComplexityOptions", - "ConnectionPasswordDictionaryOptions", - "ConnectionPasswordHistoryOptions", - "ConnectionPasswordNoPersonalInfoOptions", - "ConnectionPasswordOptions", - "ConnectionPasswordOptionsComplexity", - "ConnectionPasswordOptionsDictionary", - "ConnectionPasswordOptionsHistory", - "ConnectionPasswordOptionsProfileData", - "ConnectionPasswordPolicyEnum", - "ConnectionPhoneOtpAuthenticationMethod", - "ConnectionPingFederateBaseUrl", - "ConnectionPingFederateBaseUrlPingFederate", - "ConnectionProfile", - "ConnectionProfileBitbucket", - "ConnectionProfileConfig", - "ConnectionProfileCrossAppAccessResourceApp", - "ConnectionProfileCrossAppAccessResourceAppStatus", - "ConnectionProfileCrossAppAccessResourceAppStatusAllowedValuesEnum", - "ConnectionProfileCrossAppAccessResourceAppStatusDefaultValueEnum", - "ConnectionProfileCrossAppAccessResourceAppStatusValueEnum", - "ConnectionProfileEnabledFeatures", - "ConnectionProfileId", - "ConnectionProfileName", - "ConnectionProfileOrganization", - "ConnectionProfileOrganizationAssignMembershipOnLoginEnum", - "ConnectionProfileOrganizationShowAsButtonEnum", - "ConnectionProfileProvisioning", - "ConnectionProfileProvisioningGoogleWorkspace", - "ConnectionProfileProvisioningGoogleWorkspaceSyncUsers", - "ConnectionProfileProvisioningScim", - "ConnectionProfileProvisioningScimTokenDefaultExpiry", - "ConnectionProfileProvisioningScimTokenMaxAllowedExpiry", - "ConnectionProfileProvisioningScimTokenScopeEnum", - "ConnectionProfileProvisioningScimTokenScopes", - "ConnectionProfileProvisioningScimTokens", - "ConnectionProfileStrategyOverride", - "ConnectionProfileStrategyOverrides", - "ConnectionProfileStrategyOverridesConnectionConfig", - "ConnectionProfileStrategyOverridesEnabledFeatures", - "ConnectionProfileStrategyOverridesProvisioning", - "ConnectionProfileTemplate", - "ConnectionProfileTemplateItem", - "ConnectionPropertiesOptions", - "ConnectionProtocolBindingEnumSaml", - "ConnectionProtocolBindingSaml", - "ConnectionProviderEnumSms", - "ConnectionProviderSms", - "ConnectionProvisioningTicketUrl", - "ConnectionPurposes", - "ConnectionPushedAuthorizationRequestEndpoint", - "ConnectionRealmFallback", - "ConnectionRealms", - "ConnectionRecipientUrlSaml", - "ConnectionRegistrationEndpoint", - "ConnectionRequestObjectEncryptionAlgValuesSupported", - "ConnectionRequestObjectEncryptionEncValuesSupported", - "ConnectionRequestObjectSigningAlgValuesSupported", - "ConnectionRequestParameterSupported", - "ConnectionRequestTemplateSaml", - "ConnectionRequestTokenUrloAuth1", - "ConnectionRequestUriParameterSupported", - "ConnectionRequirePushedAuthorizationRequests", - "ConnectionRequireRequestUriRegistration", - "ConnectionRequiresUsername", - "ConnectionResponseCommon", - "ConnectionResponseContentAd", - "ConnectionResponseContentAdStrategy", - "ConnectionResponseContentAdfs", - "ConnectionResponseContentAdfsStrategy", - "ConnectionResponseContentAmazon", - "ConnectionResponseContentAmazonStrategy", - "ConnectionResponseContentApple", - "ConnectionResponseContentAppleStrategy", - "ConnectionResponseContentAuth0", - "ConnectionResponseContentAuth0Oidc", - "ConnectionResponseContentAuth0OidcStrategy", - "ConnectionResponseContentAuth0Strategy", - "ConnectionResponseContentAzureAd", - "ConnectionResponseContentAzureAdStrategy", - "ConnectionResponseContentBaidu", - "ConnectionResponseContentBaiduStrategy", - "ConnectionResponseContentBitbucket", - "ConnectionResponseContentBitbucketStrategy", - "ConnectionResponseContentBitly", - "ConnectionResponseContentBitlyStrategy", - "ConnectionResponseContentBox", - "ConnectionResponseContentBoxStrategy", - "ConnectionResponseContentCustom", - "ConnectionResponseContentCustomStrategy", - "ConnectionResponseContentDaccount", - "ConnectionResponseContentDaccountStrategy", - "ConnectionResponseContentDropbox", - "ConnectionResponseContentDropboxStrategy", - "ConnectionResponseContentDwolla", - "ConnectionResponseContentDwollaStrategy", - "ConnectionResponseContentEmail", - "ConnectionResponseContentEmailStrategy", - "ConnectionResponseContentEvernote", - "ConnectionResponseContentEvernoteSandbox", - "ConnectionResponseContentEvernoteSandboxStrategy", - "ConnectionResponseContentEvernoteStrategy", - "ConnectionResponseContentExact", - "ConnectionResponseContentExactStrategy", - "ConnectionResponseContentFacebook", - "ConnectionResponseContentFacebookStrategy", - "ConnectionResponseContentFitbit", - "ConnectionResponseContentFitbitStrategy", - "ConnectionResponseContentGitHub", - "ConnectionResponseContentGitHubStrategy", - "ConnectionResponseContentGoogleApps", - "ConnectionResponseContentGoogleAppsStrategy", - "ConnectionResponseContentGoogleOAuth2", - "ConnectionResponseContentGoogleOAuth2Strategy", - "ConnectionResponseContentInstagram", - "ConnectionResponseContentInstagramStrategy", - "ConnectionResponseContentIp", - "ConnectionResponseContentIpStrategy", - "ConnectionResponseContentLine", - "ConnectionResponseContentLineStrategy", - "ConnectionResponseContentLinkedin", - "ConnectionResponseContentLinkedinStrategy", - "ConnectionResponseContentOAuth1", - "ConnectionResponseContentOAuth1Strategy", - "ConnectionResponseContentOAuth2", - "ConnectionResponseContentOAuth2Strategy", - "ConnectionResponseContentOffice365", - "ConnectionResponseContentOffice365Strategy", - "ConnectionResponseContentOidc", - "ConnectionResponseContentOidcStrategy", - "ConnectionResponseContentOkta", - "ConnectionResponseContentOktaStrategy", - "ConnectionResponseContentPaypal", - "ConnectionResponseContentPaypalSandbox", - "ConnectionResponseContentPaypalSandboxStrategy", - "ConnectionResponseContentPaypalStrategy", - "ConnectionResponseContentPingFederate", - "ConnectionResponseContentPingFederateStrategy", - "ConnectionResponseContentPlanningCenter", - "ConnectionResponseContentPlanningCenterStrategy", - "ConnectionResponseContentSalesforce", - "ConnectionResponseContentSalesforceCommunity", - "ConnectionResponseContentSalesforceCommunityStrategy", - "ConnectionResponseContentSalesforceSandbox", - "ConnectionResponseContentSalesforceSandboxStrategy", - "ConnectionResponseContentSalesforceStrategy", - "ConnectionResponseContentSaml", - "ConnectionResponseContentSamlStrategy", - "ConnectionResponseContentSharepoint", - "ConnectionResponseContentSharepointStrategy", - "ConnectionResponseContentShop", - "ConnectionResponseContentShopStrategy", - "ConnectionResponseContentShopify", - "ConnectionResponseContentShopifyStrategy", - "ConnectionResponseContentSms", - "ConnectionResponseContentSmsStrategy", - "ConnectionResponseContentSoundcloud", - "ConnectionResponseContentSoundcloudStrategy", - "ConnectionResponseContentThirtySevenSignals", - "ConnectionResponseContentThirtySevenSignalsStrategy", - "ConnectionResponseContentTwitter", - "ConnectionResponseContentTwitterStrategy", - "ConnectionResponseContentUntappd", - "ConnectionResponseContentUntappdStrategy", - "ConnectionResponseContentVkontakte", - "ConnectionResponseContentVkontakteStrategy", - "ConnectionResponseContentWeibo", - "ConnectionResponseContentWeiboStrategy", - "ConnectionResponseContentWindowsLive", - "ConnectionResponseContentWindowsLiveStrategy", - "ConnectionResponseContentWordpress", - "ConnectionResponseContentWordpressStrategy", - "ConnectionResponseContentYahoo", - "ConnectionResponseContentYahooStrategy", - "ConnectionResponseContentYandex", - "ConnectionResponseContentYandexStrategy", - "ConnectionResponseModesSupported", - "ConnectionResponseTypesSupported", - "ConnectionScopeAmazon", - "ConnectionScopeArray", - "ConnectionScopeArrayFacebook", - "ConnectionScopeArrayWindowsLive", - "ConnectionScopeAzureAd", - "ConnectionScopeFacebook", - "ConnectionScopeGoogleApps", - "ConnectionScopeGoogleOAuth2", - "ConnectionScopeItem", - "ConnectionScopeItemGoogleApps", - "ConnectionScopeLinkedin", - "ConnectionScopeOAuth2", - "ConnectionScopeOidc", - "ConnectionScopePaypal", - "ConnectionScopeSalesforce", - "ConnectionScopesSupported", - "ConnectionScriptsOAuth1", - "ConnectionScriptsOAuth2", - "ConnectionSendBackChannelNonce", - "ConnectionServiceDocumentation", - "ConnectionSetUserRootAttributesEnum", - "ConnectionSha1Thumbprint", - "ConnectionShouldTrustEmailVerifiedConnectionEnum", - "ConnectionShowAsButton", - "ConnectionSignInEndpointAd", - "ConnectionSignInEndpointAdfs", - "ConnectionSignInEndpointSaml", - "ConnectionSignOutEndpointSaml", - "ConnectionSignSamlRequestSaml", - "ConnectionSignatureAlgorithmEnumSaml", - "ConnectionSignatureAlgorithmSaml", - "ConnectionSignatureMethodOAuth1", - "ConnectionSigningCertSaml", - "ConnectionSigningCertificateDerSaml", - "ConnectionSigningCertificatePemPingFederate", - "ConnectionSigningCertificatePemSaml", - "ConnectionSigningKeySaml", - "ConnectionSignupBehaviorEnum", - "ConnectionStrategyEnum", - "ConnectionStrategyVersionEnumLinkedin", - "ConnectionStrategyVersionEnumWindowsLive", - "ConnectionSubjectTypesSupported", - "ConnectionTemplateSms", - "ConnectionTemplateSyntaxEnumSms", - "ConnectionTenantDomain", - "ConnectionTenantDomainAd", - "ConnectionTenantDomainAzureAdOne", - "ConnectionTenantDomainGoogleApps", - "ConnectionTenantDomainSaml", - "ConnectionTenantIdAzureAd", - "ConnectionThumbprints", - "ConnectionThumbprintsAd", - "ConnectionThumbprintsSaml", - "ConnectionThumbprintsSha384", - "ConnectionThumbprintsSha384Ad", - "ConnectionThumbprintsSha384Saml", - "ConnectionTokenEndpoint", - "ConnectionTokenEndpointAuthMethodEnum", - "ConnectionTokenEndpointAuthMethodsSupported", - "ConnectionTokenEndpointAuthSigningAlgEnum", - "ConnectionTokenEndpointAuthSigningAlgValuesSupported", - "ConnectionTokenEndpointJwtcaAudFormatEnumOidc", - "ConnectionTotpEmail", - "ConnectionTotpLengthEmail", - "ConnectionTotpLengthPasswordless", - "ConnectionTotpLengthSms", - "ConnectionTotpSms", - "ConnectionTotpTimeStepEmail", - "ConnectionTotpTimeStepPasswordless", - "ConnectionTotpTimeStepSms", - "ConnectionTwilioSidSms", - "ConnectionTwilioTokenSms", - "ConnectionTypeEnumOidc", - "ConnectionTypeEnumOkta", - "ConnectionUiLocalesSupported", - "ConnectionUpstreamAdditionalProperties", - "ConnectionUpstreamAlias", - "ConnectionUpstreamAliasEnum", - "ConnectionUpstreamParams", - "ConnectionUpstreamParamsFacebook", - "ConnectionUpstreamValue", - "ConnectionUseCommonEndpointAzureAd", - "ConnectionUseOauthSpecScope", - "ConnectionUserAuthorizationUrloAuth1", - "ConnectionUserIdAttributeSaml", - "ConnectionUseridAttributeAzureAd", - "ConnectionUseridAttributeEnumAzureAd", - "ConnectionUserinfoEncryptionAlgValuesSupported", - "ConnectionUserinfoEncryptionEncValuesSupported", - "ConnectionUserinfoEndpoint", - "ConnectionUserinfoSigningAlgValuesSupported", - "ConnectionUsernameValidationOptions", - "ConnectionValidationOptions", - "ConnectionWaadProtocol", - "ConnectionWaadProtocolEnumAzureAd", - "ConnectionsDiscoveryUrl", - "ConnectionsMetadata", - "ConnectionsOidcMetadata", - "ConsentSigningKey", - "ContentSecurityPolicyConfig", - "CreateActionModuleResponseContent", - "CreateActionModuleVersionResponseContent", - "CreateActionResponseContent", - "CreateAnonymousSessions", - "CreateBrandingPhoneProviderResponseContent", - "CreateBrandingThemeResponseContent", - "CreateClientAuthenticationMethodSelfSignedTlsClientAuth", - "CreateClientAuthenticationMethodSelfSignedTlsClientAuthCredentials", - "CreateClientGrantResponseContent", - "CreateClientResponseContent", - "CreateConnectionCommon", - "CreateConnectionProfileResponseContent", - "CreateConnectionRequestContentAd", - "CreateConnectionRequestContentAdStrategy", - "CreateConnectionRequestContentAdfs", - "CreateConnectionRequestContentAdfsStrategy", - "CreateConnectionRequestContentAmazon", - "CreateConnectionRequestContentAmazonStrategy", - "CreateConnectionRequestContentApple", - "CreateConnectionRequestContentAppleStrategy", - "CreateConnectionRequestContentAuth0", - "CreateConnectionRequestContentAuth0Oidc", - "CreateConnectionRequestContentAuth0OidcStrategy", - "CreateConnectionRequestContentAuth0Strategy", - "CreateConnectionRequestContentAzureAd", - "CreateConnectionRequestContentAzureAdStrategy", - "CreateConnectionRequestContentBaidu", - "CreateConnectionRequestContentBaiduStrategy", - "CreateConnectionRequestContentBitbucket", - "CreateConnectionRequestContentBitbucketStrategy", - "CreateConnectionRequestContentBitly", - "CreateConnectionRequestContentBitlyStrategy", - "CreateConnectionRequestContentBox", - "CreateConnectionRequestContentBoxStrategy", - "CreateConnectionRequestContentCustom", - "CreateConnectionRequestContentCustomStrategy", - "CreateConnectionRequestContentDaccount", - "CreateConnectionRequestContentDaccountStrategy", - "CreateConnectionRequestContentDropbox", - "CreateConnectionRequestContentDropboxStrategy", - "CreateConnectionRequestContentDwolla", - "CreateConnectionRequestContentDwollaStrategy", - "CreateConnectionRequestContentEmail", - "CreateConnectionRequestContentEmailStrategy", - "CreateConnectionRequestContentEvernote", - "CreateConnectionRequestContentEvernoteSandbox", - "CreateConnectionRequestContentEvernoteSandboxStrategy", - "CreateConnectionRequestContentEvernoteStrategy", - "CreateConnectionRequestContentExact", - "CreateConnectionRequestContentExactStrategy", - "CreateConnectionRequestContentFacebook", - "CreateConnectionRequestContentFacebookStrategy", - "CreateConnectionRequestContentFitbit", - "CreateConnectionRequestContentFitbitStrategy", - "CreateConnectionRequestContentGitHub", - "CreateConnectionRequestContentGitHubStrategy", - "CreateConnectionRequestContentGoogleApps", - "CreateConnectionRequestContentGoogleAppsStrategy", - "CreateConnectionRequestContentGoogleOAuth2", - "CreateConnectionRequestContentGoogleOAuth2Strategy", - "CreateConnectionRequestContentInstagram", - "CreateConnectionRequestContentInstagramStrategy", - "CreateConnectionRequestContentIp", - "CreateConnectionRequestContentIpStrategy", - "CreateConnectionRequestContentLine", - "CreateConnectionRequestContentLineStrategy", - "CreateConnectionRequestContentLinkedin", - "CreateConnectionRequestContentLinkedinStrategy", - "CreateConnectionRequestContentOAuth1", - "CreateConnectionRequestContentOAuth1Strategy", - "CreateConnectionRequestContentOAuth2", - "CreateConnectionRequestContentOAuth2Strategy", - "CreateConnectionRequestContentOffice365", - "CreateConnectionRequestContentOffice365Strategy", - "CreateConnectionRequestContentOidc", - "CreateConnectionRequestContentOidcStrategy", - "CreateConnectionRequestContentOkta", - "CreateConnectionRequestContentOktaStrategy", - "CreateConnectionRequestContentPaypal", - "CreateConnectionRequestContentPaypalSandbox", - "CreateConnectionRequestContentPaypalSandboxStrategy", - "CreateConnectionRequestContentPaypalStrategy", - "CreateConnectionRequestContentPingFederate", - "CreateConnectionRequestContentPingFederateStrategy", - "CreateConnectionRequestContentPlanningCenter", - "CreateConnectionRequestContentPlanningCenterStrategy", - "CreateConnectionRequestContentSalesforce", - "CreateConnectionRequestContentSalesforceCommunity", - "CreateConnectionRequestContentSalesforceCommunityStrategy", - "CreateConnectionRequestContentSalesforceSandbox", - "CreateConnectionRequestContentSalesforceSandboxStrategy", - "CreateConnectionRequestContentSalesforceStrategy", - "CreateConnectionRequestContentSaml", - "CreateConnectionRequestContentSamlStrategy", - "CreateConnectionRequestContentSharepoint", - "CreateConnectionRequestContentSharepointStrategy", - "CreateConnectionRequestContentShop", - "CreateConnectionRequestContentShopStrategy", - "CreateConnectionRequestContentShopify", - "CreateConnectionRequestContentShopifyStrategy", - "CreateConnectionRequestContentSms", - "CreateConnectionRequestContentSmsStrategy", - "CreateConnectionRequestContentSoundcloud", - "CreateConnectionRequestContentSoundcloudStrategy", - "CreateConnectionRequestContentThirtySevenSignals", - "CreateConnectionRequestContentThirtySevenSignalsStrategy", - "CreateConnectionRequestContentTwitter", - "CreateConnectionRequestContentTwitterStrategy", - "CreateConnectionRequestContentUntappd", - "CreateConnectionRequestContentUntappdStrategy", - "CreateConnectionRequestContentVkontakte", - "CreateConnectionRequestContentVkontakteStrategy", - "CreateConnectionRequestContentWeibo", - "CreateConnectionRequestContentWeiboStrategy", - "CreateConnectionRequestContentWindowsLive", - "CreateConnectionRequestContentWindowsLiveStrategy", - "CreateConnectionRequestContentWordpress", - "CreateConnectionRequestContentWordpressStrategy", - "CreateConnectionRequestContentYahoo", - "CreateConnectionRequestContentYahooStrategy", - "CreateConnectionRequestContentYandex", - "CreateConnectionRequestContentYandexStrategy", - "CreateConnectionResponseContent", - "CreateCrossAppAccessResourceApp", - "CreateCustomDomainResponseContent", - "CreateDirectoryProvisioningRequestContent", - "CreateDirectoryProvisioningResponseContent", - "CreateDirectorySynchronizationResponseContent", - "CreateEmailProviderResponseContent", - "CreateEmailTemplateResponseContent", - "CreateEncryptionKeyPublicWrappingResponseContent", - "CreateEncryptionKeyResponseContent", - "CreateEncryptionKeyType", - "CreateEventStreamActionRequestContent", - "CreateEventStreamEventBridgeRequestContent", - "CreateEventStreamRedeliveryResponseContent", - "CreateEventStreamResponseContent", - "CreateEventStreamTestEventResponseContent", - "CreateEventStreamWebHookRequestContent", - "CreateExperimentResponseContent", - "CreateExportUsersFields", - "CreateExportUsersResponseContent", - "CreateFeatureFlagParameters", - "CreateFeatureFlagResponseContent", - "CreateFlowResponseContent", - "CreateFlowsVaultConnectionActivecampaign", - "CreateFlowsVaultConnectionActivecampaignApiKey", - "CreateFlowsVaultConnectionActivecampaignUninitialized", - "CreateFlowsVaultConnectionAirtable", - "CreateFlowsVaultConnectionAirtableApiKey", - "CreateFlowsVaultConnectionAirtableUninitialized", - "CreateFlowsVaultConnectionAuth0", - "CreateFlowsVaultConnectionAuth0OauthApp", - "CreateFlowsVaultConnectionAuth0Uninitialized", - "CreateFlowsVaultConnectionBigquery", - "CreateFlowsVaultConnectionBigqueryJwt", - "CreateFlowsVaultConnectionBigqueryUninitialized", - "CreateFlowsVaultConnectionClearbit", - "CreateFlowsVaultConnectionClearbitApiKey", - "CreateFlowsVaultConnectionClearbitUninitialized", - "CreateFlowsVaultConnectionDocusign", - "CreateFlowsVaultConnectionDocusignOauthCode", - "CreateFlowsVaultConnectionDocusignUninitialized", - "CreateFlowsVaultConnectionGoogleSheets", - "CreateFlowsVaultConnectionGoogleSheetsOauthCode", - "CreateFlowsVaultConnectionGoogleSheetsUninitialized", - "CreateFlowsVaultConnectionHttp", - "CreateFlowsVaultConnectionHttpApiKey", - "CreateFlowsVaultConnectionHttpBasicAuth", - "CreateFlowsVaultConnectionHttpBearer", - "CreateFlowsVaultConnectionHttpOauthClientCredentials", - "CreateFlowsVaultConnectionHttpUninitialized", - "CreateFlowsVaultConnectionHubspot", - "CreateFlowsVaultConnectionHubspotApiKey", - "CreateFlowsVaultConnectionHubspotOauthCode", - "CreateFlowsVaultConnectionHubspotUninitialized", - "CreateFlowsVaultConnectionJwt", - "CreateFlowsVaultConnectionJwtJwt", - "CreateFlowsVaultConnectionJwtUninitialized", - "CreateFlowsVaultConnectionMailchimp", - "CreateFlowsVaultConnectionMailchimpApiKey", - "CreateFlowsVaultConnectionMailchimpOauthCode", - "CreateFlowsVaultConnectionMailchimpUninitialized", - "CreateFlowsVaultConnectionMailjet", - "CreateFlowsVaultConnectionMailjetApiKey", - "CreateFlowsVaultConnectionMailjetUninitialized", - "CreateFlowsVaultConnectionPipedrive", - "CreateFlowsVaultConnectionPipedriveOauthCode", - "CreateFlowsVaultConnectionPipedriveToken", - "CreateFlowsVaultConnectionPipedriveUninitialized", - "CreateFlowsVaultConnectionRequestContent", - "CreateFlowsVaultConnectionResponseContent", - "CreateFlowsVaultConnectionSalesforce", - "CreateFlowsVaultConnectionSalesforceOauthCode", - "CreateFlowsVaultConnectionSalesforceUninitialized", - "CreateFlowsVaultConnectionSendgrid", - "CreateFlowsVaultConnectionSendgridApiKey", - "CreateFlowsVaultConnectionSendgridUninitialized", - "CreateFlowsVaultConnectionSlack", - "CreateFlowsVaultConnectionSlackOauthCode", - "CreateFlowsVaultConnectionSlackUninitialized", - "CreateFlowsVaultConnectionSlackWebhook", - "CreateFlowsVaultConnectionStripe", - "CreateFlowsVaultConnectionStripeKeyPair", - "CreateFlowsVaultConnectionStripeOauthCode", - "CreateFlowsVaultConnectionStripeUninitialized", - "CreateFlowsVaultConnectionTelegram", - "CreateFlowsVaultConnectionTelegramToken", - "CreateFlowsVaultConnectionTelegramUninitialized", - "CreateFlowsVaultConnectionTwilio", - "CreateFlowsVaultConnectionTwilioApiKey", - "CreateFlowsVaultConnectionTwilioUninitialized", - "CreateFlowsVaultConnectionWhatsapp", - "CreateFlowsVaultConnectionWhatsappToken", - "CreateFlowsVaultConnectionWhatsappUninitialized", - "CreateFlowsVaultConnectionZapier", - "CreateFlowsVaultConnectionZapierUninitialized", - "CreateFlowsVaultConnectionZapierWebhook", - "CreateFormResponseContent", - "CreateGuardianEnrollmentTicketResponseContent", - "CreateHookResponseContent", - "CreateHookSecretRequestContent", - "CreateIdentityAssertionAuthorizationGrant", - "CreateImportUsersResponseContent", - "CreateKeysNetworkAclsResponseContent", - "CreateLogStreamDatadogRequestBody", - "CreateLogStreamEventBridgeRequestBody", - "CreateLogStreamEventGridRequestBody", - "CreateLogStreamHttpRequestBody", - "CreateLogStreamMixpanelRequestBody", - "CreateLogStreamRequestContent", - "CreateLogStreamResponseContent", - "CreateLogStreamSegmentRequestBody", - "CreateLogStreamSplunkRequestBody", - "CreateLogStreamSumoRequestBody", - "CreateOrganizationAllConnectionResponseContent", - "CreateOrganizationClientRequestItem", - "CreateOrganizationClientsResponseContent", - "CreateOrganizationDiscoveryDomainResponseContent", - "CreateOrganizationInvitationResponseContent", - "CreateOrganizationResponseContent", - "CreatePhoneProviderSendTestResponseContent", - "CreatePhoneTemplateResponseContent", - "CreatePhoneTemplateTestNotificationResponseContent", - "CreatePublicKeyDeviceCredentialResponseContent", - "CreateRateLimitPolicyResponseContent", - "CreateResourceServerResponseContent", - "CreateRoleResponseContent", - "CreateRuleResponseContent", - "CreateScimConfigurationRequestContent", - "CreateScimConfigurationResponseContent", - "CreateScimTokenResponseContent", - "CreateSegmentResponseContent", - "CreateSelfServiceProfileResponseContent", - "CreateSelfServiceProfileSsoTicketResponseContent", - "CreateTokenExchangeProfileResponseContent", - "CreateTokenQuota", - "CreateUserAttributeProfileResponseContent", - "CreateUserAuthenticationMethodResponseContent", - "CreateUserResponseContent", - "CreateVariationResponseContent", - "CreateVerifiableCredentialTemplateResponseContent", - "CreateVerificationEmailResponseContent", - "CreatedAuthenticationMethodTypeEnum", - "CreatedUserAuthenticationMethodTypeEnum", - "CredentialDeviceTypeEnum", - "CredentialId", - "CrossAppAccessRequestingApp", - "CrossAppAccessResourceApp", - "CrossAppAccessResourceAppStatusEnum", - "CspDirectives", - "CspFlag", - "CspFlags", - "CspPolicies", - "CspPolicy", - "CspPolicyMode", - "CspPolicyReporting", - "CspReportTo", - "CspReportToEndpoint", - "CspReportToEndpoints", - "CspReportingEndpoints", - "CspReportingInfrastructure", - "CustomDomain", - "CustomDomainCustomClientIpHeader", - "CustomDomainCustomClientIpHeaderEnum", - "CustomDomainProvisioningTypeEnum", - "CustomDomainStatusFilterEnum", - "CustomDomainTlsPolicyEnum", - "CustomDomainTypeEnum", - "CustomDomainVerificationMethodEnum", - "CustomProviderConfiguration", - "CustomProviderCredentials", - "CustomProviderDeliveryMethodEnum", - "CustomSigningKeyAlgorithmEnum", - "CustomSigningKeyCurveEnum", - "CustomSigningKeyJwk", - "CustomSigningKeyOperationEnum", - "CustomSigningKeyTypeEnum", - "CustomSigningKeyUseEnum", - "DailyStats", - "DefaultConfigEnum", - "DefaultMethodEmailIdentifierEnum", - "DefaultMethodPhoneNumberIdentifierEnum", - "DefaultTokenQuota", - "DeleteHookSecretRequestContent", - "DeleteUserIdentityResponseContent", - "DeleteUserIdentityResponseContentItem", - "DeployActionResponseContent", - "DeployActionVersionRequestContent", - "DeployActionVersionResponseContent", - "DeviceCredential", - "DeviceCredentialPublicKeyTypeEnum", - "DeviceCredentialTypeEnum", - "DirectoryProvisioning", - "DirectoryProvisioningMappingItem", - "DomainCertificate", - "DomainCertificateAuthorityEnum", - "DomainCertificateStatusEnum", - "DomainMetadata", - "DomainVerification", - "DomainVerificationMethod", - "DomainVerificationMethodNameEnum", - "DomainVerificationStatusEnum", - "EmailAttribute", - "EmailAttributeIdentifier", - "EmailMailgunRegionEnum", - "EmailProviderCredentials", - "EmailProviderCredentialsSchema", - "EmailProviderCredentialsSchemaAccessKeyId", - "EmailProviderCredentialsSchemaApiKey", - "EmailProviderCredentialsSchemaClientId", - "EmailProviderCredentialsSchemaConnectionString", - "EmailProviderCredentialsSchemaSmtpHost", - "EmailProviderCredentialsSchemaThree", - "EmailProviderCredentialsSchemaZero", - "EmailProviderNameEnum", - "EmailProviderSettings", - "EmailSmtpHost", - "EmailSparkPostRegionEnum", - "EmailSpecificProviderSettingsWithAdditionalProperties", - "EmailTemplateNameEnum", - "EnabledFeaturesEnum", - "EncryptionKey", - "EncryptionKeyPublicWrappingAlgorithm", - "EncryptionKeyState", - "EncryptionKeyType", - "EventStreamActionConfiguration", - "EventStreamActionDestination", - "EventStreamActionDestinationTypeEnum", - "EventStreamActionResponseContent", - "EventStreamCloudEvent", - "EventStreamCloudEventA0PurposeEnum", - "EventStreamCloudEventConnectionCreated", - "EventStreamCloudEventConnectionCreatedCloudEvent", - "EventStreamCloudEventConnectionCreatedCloudEventTypeEnum", - "EventStreamCloudEventConnectionCreatedData", - "EventStreamCloudEventConnectionCreatedObject", - "EventStreamCloudEventConnectionCreatedObject0", - "EventStreamCloudEventConnectionCreatedObject0Authentication", - "EventStreamCloudEventConnectionCreatedObject0ConnectedAccounts", - "EventStreamCloudEventConnectionCreatedObject0Metadata", - "EventStreamCloudEventConnectionCreatedObject0Options", - "EventStreamCloudEventConnectionCreatedObject0OptionsAttributeMap", - "EventStreamCloudEventConnectionCreatedObject0OptionsAttributeMapAttributes", - "EventStreamCloudEventConnectionCreatedObject0OptionsAttributeMapMappingModeEnum", - "EventStreamCloudEventConnectionCreatedObject0OptionsConnectionSettings", - "EventStreamCloudEventConnectionCreatedObject0OptionsConnectionSettingsPkceEnum", - "EventStreamCloudEventConnectionCreatedObject0OptionsDpopSigningAlgEnum", - "EventStreamCloudEventConnectionCreatedObject0OptionsFederatedConnectionsAccessTokens", - "EventStreamCloudEventConnectionCreatedObject0OptionsIdTokenSignedResponseAlgsItemEnum", - "EventStreamCloudEventConnectionCreatedObject0OptionsOidcMetadata", - "EventStreamCloudEventConnectionCreatedObject0OptionsSchemaVersionEnum", - "EventStreamCloudEventConnectionCreatedObject0OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointAuthMethodEnum", - "EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointAuthSigningAlgEnum", - "EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointJwtcaAudFormatEnum", - "EventStreamCloudEventConnectionCreatedObject0OptionsTypeEnum", - "EventStreamCloudEventConnectionCreatedObject0OptionsUpstreamParams", - "EventStreamCloudEventConnectionCreatedObject0StrategyEnum", - "EventStreamCloudEventConnectionCreatedObject1", - "EventStreamCloudEventConnectionCreatedObject1Authentication", - "EventStreamCloudEventConnectionCreatedObject1ConnectedAccounts", - "EventStreamCloudEventConnectionCreatedObject1Metadata", - "EventStreamCloudEventConnectionCreatedObject1Options", - "EventStreamCloudEventConnectionCreatedObject1OptionsAttributeMap", - "EventStreamCloudEventConnectionCreatedObject1OptionsAttributeMapAttributes", - "EventStreamCloudEventConnectionCreatedObject1OptionsAttributeMapMappingModeEnum", - "EventStreamCloudEventConnectionCreatedObject1OptionsConnectionSettings", - "EventStreamCloudEventConnectionCreatedObject1OptionsConnectionSettingsPkceEnum", - "EventStreamCloudEventConnectionCreatedObject1OptionsDpopSigningAlgEnum", - "EventStreamCloudEventConnectionCreatedObject1OptionsFederatedConnectionsAccessTokens", - "EventStreamCloudEventConnectionCreatedObject1OptionsIdTokenSignedResponseAlgsItemEnum", - "EventStreamCloudEventConnectionCreatedObject1OptionsOidcMetadata", - "EventStreamCloudEventConnectionCreatedObject1OptionsSchemaVersionEnum", - "EventStreamCloudEventConnectionCreatedObject1OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointAuthMethodEnum", - "EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointAuthSigningAlgEnum", - "EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointJwtcaAudFormatEnum", - "EventStreamCloudEventConnectionCreatedObject1OptionsTypeEnum", - "EventStreamCloudEventConnectionCreatedObject1OptionsUpstreamParams", - "EventStreamCloudEventConnectionCreatedObject1StrategyEnum", - "EventStreamCloudEventConnectionCreatedObject2", - "EventStreamCloudEventConnectionCreatedObject2Authentication", - "EventStreamCloudEventConnectionCreatedObject2ConnectedAccounts", - "EventStreamCloudEventConnectionCreatedObject2Metadata", - "EventStreamCloudEventConnectionCreatedObject2Options", - "EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettings", - "EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum", - "EventStreamCloudEventConnectionCreatedObject2OptionsDigestAlgorithmEnum", - "EventStreamCloudEventConnectionCreatedObject2OptionsFieldsMap", - "EventStreamCloudEventConnectionCreatedObject2OptionsIdpinitiated", - "EventStreamCloudEventConnectionCreatedObject2OptionsIdpinitiatedClientProtocolEnum", - "EventStreamCloudEventConnectionCreatedObject2OptionsOidcMetadata", - "EventStreamCloudEventConnectionCreatedObject2OptionsProtocolBindingEnum", - "EventStreamCloudEventConnectionCreatedObject2OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionCreatedObject2OptionsSignatureAlgorithmEnum", - "EventStreamCloudEventConnectionCreatedObject2OptionsSubject", - "EventStreamCloudEventConnectionCreatedObject2OptionsUpstreamParams", - "EventStreamCloudEventConnectionCreatedObject2StrategyEnum", - "EventStreamCloudEventConnectionCreatedObject3", - "EventStreamCloudEventConnectionCreatedObject3Authentication", - "EventStreamCloudEventConnectionCreatedObject3ConnectedAccounts", - "EventStreamCloudEventConnectionCreatedObject3Metadata", - "EventStreamCloudEventConnectionCreatedObject3Options", - "EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettings", - "EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum", - "EventStreamCloudEventConnectionCreatedObject3OptionsDigestAlgorithmEnum", - "EventStreamCloudEventConnectionCreatedObject3OptionsIdpinitiated", - "EventStreamCloudEventConnectionCreatedObject3OptionsIdpinitiatedClientProtocolEnum", - "EventStreamCloudEventConnectionCreatedObject3OptionsProtocolBindingEnum", - "EventStreamCloudEventConnectionCreatedObject3OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionCreatedObject3OptionsSignatureAlgorithmEnum", - "EventStreamCloudEventConnectionCreatedObject3OptionsSubject", - "EventStreamCloudEventConnectionCreatedObject3OptionsUpstreamParams", - "EventStreamCloudEventConnectionCreatedObject3StrategyEnum", - "EventStreamCloudEventConnectionCreatedObject4", - "EventStreamCloudEventConnectionCreatedObject4Authentication", - "EventStreamCloudEventConnectionCreatedObject4ConnectedAccounts", - "EventStreamCloudEventConnectionCreatedObject4Metadata", - "EventStreamCloudEventConnectionCreatedObject4Options", - "EventStreamCloudEventConnectionCreatedObject4OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionCreatedObject4OptionsShouldTrustEmailVerifiedConnectionEnum", - "EventStreamCloudEventConnectionCreatedObject4OptionsUpstreamParams", - "EventStreamCloudEventConnectionCreatedObject4StrategyEnum", - "EventStreamCloudEventConnectionCreatedObject5", - "EventStreamCloudEventConnectionCreatedObject5Authentication", - "EventStreamCloudEventConnectionCreatedObject5ConnectedAccounts", - "EventStreamCloudEventConnectionCreatedObject5Metadata", - "EventStreamCloudEventConnectionCreatedObject5Options", - "EventStreamCloudEventConnectionCreatedObject5OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionCreatedObject5OptionsUpstreamParams", - "EventStreamCloudEventConnectionCreatedObject5StrategyEnum", - "EventStreamCloudEventConnectionCreatedObject6", - "EventStreamCloudEventConnectionCreatedObject6Authentication", - "EventStreamCloudEventConnectionCreatedObject6ConnectedAccounts", - "EventStreamCloudEventConnectionCreatedObject6Metadata", - "EventStreamCloudEventConnectionCreatedObject6Options", - "EventStreamCloudEventConnectionCreatedObject6OptionsFederatedConnectionsAccessTokens", - "EventStreamCloudEventConnectionCreatedObject6OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionCreatedObject6OptionsUpstreamParams", - "EventStreamCloudEventConnectionCreatedObject6StrategyEnum", - "EventStreamCloudEventConnectionCreatedObject7", - "EventStreamCloudEventConnectionCreatedObject7Authentication", - "EventStreamCloudEventConnectionCreatedObject7ConnectedAccounts", - "EventStreamCloudEventConnectionCreatedObject7Metadata", - "EventStreamCloudEventConnectionCreatedObject7Options", - "EventStreamCloudEventConnectionCreatedObject7OptionsFederatedConnectionsAccessTokens", - "EventStreamCloudEventConnectionCreatedObject7OptionsIdentityApiEnum", - "EventStreamCloudEventConnectionCreatedObject7OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionCreatedObject7OptionsShouldTrustEmailVerifiedConnectionEnum", - "EventStreamCloudEventConnectionCreatedObject7OptionsTenantDomainOne", - "EventStreamCloudEventConnectionCreatedObject7OptionsUpstreamParams", - "EventStreamCloudEventConnectionCreatedObject7OptionsUseridAttributeEnum", - "EventStreamCloudEventConnectionCreatedObject7OptionsWaadProtocolEnum", - "EventStreamCloudEventConnectionCreatedObject7StrategyEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject", - "EventStreamCloudEventConnectionCreatedPreviousObject0", - "EventStreamCloudEventConnectionCreatedPreviousObject0Authentication", - "EventStreamCloudEventConnectionCreatedPreviousObject0ConnectedAccounts", - "EventStreamCloudEventConnectionCreatedPreviousObject0Metadata", - "EventStreamCloudEventConnectionCreatedPreviousObject0Options", - "EventStreamCloudEventConnectionCreatedPreviousObject0OptionsAttributeMap", - "EventStreamCloudEventConnectionCreatedPreviousObject0OptionsAttributeMapAttributes", - "EventStreamCloudEventConnectionCreatedPreviousObject0OptionsAttributeMapMappingModeEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject0OptionsConnectionSettings", - "EventStreamCloudEventConnectionCreatedPreviousObject0OptionsConnectionSettingsPkceEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject0OptionsDpopSigningAlgEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject0OptionsFederatedConnectionsAccessTokens", - "EventStreamCloudEventConnectionCreatedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject0OptionsOidcMetadata", - "EventStreamCloudEventConnectionCreatedPreviousObject0OptionsSchemaVersionEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject0OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTokenEndpointAuthMethodEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTokenEndpointJwtcaAudFormatEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTypeEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject0OptionsUpstreamParams", - "EventStreamCloudEventConnectionCreatedPreviousObject0StrategyEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject1", - "EventStreamCloudEventConnectionCreatedPreviousObject1Authentication", - "EventStreamCloudEventConnectionCreatedPreviousObject1ConnectedAccounts", - "EventStreamCloudEventConnectionCreatedPreviousObject1Metadata", - "EventStreamCloudEventConnectionCreatedPreviousObject1Options", - "EventStreamCloudEventConnectionCreatedPreviousObject1OptionsAttributeMap", - "EventStreamCloudEventConnectionCreatedPreviousObject1OptionsAttributeMapAttributes", - "EventStreamCloudEventConnectionCreatedPreviousObject1OptionsAttributeMapMappingModeEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject1OptionsConnectionSettings", - "EventStreamCloudEventConnectionCreatedPreviousObject1OptionsConnectionSettingsPkceEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject1OptionsDpopSigningAlgEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject1OptionsFederatedConnectionsAccessTokens", - "EventStreamCloudEventConnectionCreatedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject1OptionsOidcMetadata", - "EventStreamCloudEventConnectionCreatedPreviousObject1OptionsSchemaVersionEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject1OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTokenEndpointAuthMethodEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTokenEndpointJwtcaAudFormatEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTypeEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject1OptionsUpstreamParams", - "EventStreamCloudEventConnectionCreatedPreviousObject1StrategyEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject2", - "EventStreamCloudEventConnectionCreatedPreviousObject2Authentication", - "EventStreamCloudEventConnectionCreatedPreviousObject2ConnectedAccounts", - "EventStreamCloudEventConnectionCreatedPreviousObject2Metadata", - "EventStreamCloudEventConnectionCreatedPreviousObject2Options", - "EventStreamCloudEventConnectionCreatedPreviousObject2OptionsAssertionDecryptionSettings", - "EventStreamCloudEventConnectionCreatedPreviousObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject2OptionsDigestAlgorithmEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject2OptionsFieldsMap", - "EventStreamCloudEventConnectionCreatedPreviousObject2OptionsIdpinitiated", - "EventStreamCloudEventConnectionCreatedPreviousObject2OptionsIdpinitiatedClientProtocolEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject2OptionsOidcMetadata", - "EventStreamCloudEventConnectionCreatedPreviousObject2OptionsProtocolBindingEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject2OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject2OptionsSignatureAlgorithmEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject2OptionsSubject", - "EventStreamCloudEventConnectionCreatedPreviousObject2OptionsUpstreamParams", - "EventStreamCloudEventConnectionCreatedPreviousObject2StrategyEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject3", - "EventStreamCloudEventConnectionCreatedPreviousObject3Authentication", - "EventStreamCloudEventConnectionCreatedPreviousObject3ConnectedAccounts", - "EventStreamCloudEventConnectionCreatedPreviousObject3Metadata", - "EventStreamCloudEventConnectionCreatedPreviousObject3Options", - "EventStreamCloudEventConnectionCreatedPreviousObject3OptionsAssertionDecryptionSettings", - "EventStreamCloudEventConnectionCreatedPreviousObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject3OptionsDigestAlgorithmEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject3OptionsIdpinitiated", - "EventStreamCloudEventConnectionCreatedPreviousObject3OptionsIdpinitiatedClientProtocolEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject3OptionsProtocolBindingEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject3OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject3OptionsSignatureAlgorithmEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject3OptionsSubject", - "EventStreamCloudEventConnectionCreatedPreviousObject3OptionsUpstreamParams", - "EventStreamCloudEventConnectionCreatedPreviousObject3StrategyEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject4", - "EventStreamCloudEventConnectionCreatedPreviousObject4Authentication", - "EventStreamCloudEventConnectionCreatedPreviousObject4ConnectedAccounts", - "EventStreamCloudEventConnectionCreatedPreviousObject4Metadata", - "EventStreamCloudEventConnectionCreatedPreviousObject4Options", - "EventStreamCloudEventConnectionCreatedPreviousObject4OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject4OptionsShouldTrustEmailVerifiedConnectionEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject4OptionsUpstreamParams", - "EventStreamCloudEventConnectionCreatedPreviousObject4StrategyEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject5", - "EventStreamCloudEventConnectionCreatedPreviousObject5Authentication", - "EventStreamCloudEventConnectionCreatedPreviousObject5ConnectedAccounts", - "EventStreamCloudEventConnectionCreatedPreviousObject5Metadata", - "EventStreamCloudEventConnectionCreatedPreviousObject5Options", - "EventStreamCloudEventConnectionCreatedPreviousObject5OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject5OptionsUpstreamParams", - "EventStreamCloudEventConnectionCreatedPreviousObject5StrategyEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject6", - "EventStreamCloudEventConnectionCreatedPreviousObject6Authentication", - "EventStreamCloudEventConnectionCreatedPreviousObject6ConnectedAccounts", - "EventStreamCloudEventConnectionCreatedPreviousObject6Metadata", - "EventStreamCloudEventConnectionCreatedPreviousObject6Options", - "EventStreamCloudEventConnectionCreatedPreviousObject6OptionsFederatedConnectionsAccessTokens", - "EventStreamCloudEventConnectionCreatedPreviousObject6OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject6OptionsUpstreamParams", - "EventStreamCloudEventConnectionCreatedPreviousObject6StrategyEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject7", - "EventStreamCloudEventConnectionCreatedPreviousObject7Authentication", - "EventStreamCloudEventConnectionCreatedPreviousObject7ConnectedAccounts", - "EventStreamCloudEventConnectionCreatedPreviousObject7Metadata", - "EventStreamCloudEventConnectionCreatedPreviousObject7Options", - "EventStreamCloudEventConnectionCreatedPreviousObject7OptionsFederatedConnectionsAccessTokens", - "EventStreamCloudEventConnectionCreatedPreviousObject7OptionsIdentityApiEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject7OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject7OptionsTenantDomainOne", - "EventStreamCloudEventConnectionCreatedPreviousObject7OptionsUpstreamParams", - "EventStreamCloudEventConnectionCreatedPreviousObject7OptionsUseridAttributeEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject7OptionsWaadProtocolEnum", - "EventStreamCloudEventConnectionCreatedPreviousObject7StrategyEnum", - "EventStreamCloudEventConnectionCreatedTypeEnum", - "EventStreamCloudEventConnectionDeleted", - "EventStreamCloudEventConnectionDeletedCloudEvent", - "EventStreamCloudEventConnectionDeletedCloudEventTypeEnum", - "EventStreamCloudEventConnectionDeletedData", - "EventStreamCloudEventConnectionDeletedObject", - "EventStreamCloudEventConnectionDeletedObject0", - "EventStreamCloudEventConnectionDeletedObject0Authentication", - "EventStreamCloudEventConnectionDeletedObject0ConnectedAccounts", - "EventStreamCloudEventConnectionDeletedObject0Metadata", - "EventStreamCloudEventConnectionDeletedObject0Options", - "EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMap", - "EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMapAttributes", - "EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMapMappingModeEnum", - "EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettings", - "EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettingsPkceEnum", - "EventStreamCloudEventConnectionDeletedObject0OptionsDpopSigningAlgEnum", - "EventStreamCloudEventConnectionDeletedObject0OptionsFederatedConnectionsAccessTokens", - "EventStreamCloudEventConnectionDeletedObject0OptionsIdTokenSignedResponseAlgsItemEnum", - "EventStreamCloudEventConnectionDeletedObject0OptionsOidcMetadata", - "EventStreamCloudEventConnectionDeletedObject0OptionsSchemaVersionEnum", - "EventStreamCloudEventConnectionDeletedObject0OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthMethodEnum", - "EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthSigningAlgEnum", - "EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointJwtcaAudFormatEnum", - "EventStreamCloudEventConnectionDeletedObject0OptionsTypeEnum", - "EventStreamCloudEventConnectionDeletedObject0OptionsUpstreamParams", - "EventStreamCloudEventConnectionDeletedObject0StrategyEnum", - "EventStreamCloudEventConnectionDeletedObject1", - "EventStreamCloudEventConnectionDeletedObject1Authentication", - "EventStreamCloudEventConnectionDeletedObject1ConnectedAccounts", - "EventStreamCloudEventConnectionDeletedObject1Metadata", - "EventStreamCloudEventConnectionDeletedObject1Options", - "EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMap", - "EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMapAttributes", - "EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMapMappingModeEnum", - "EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettings", - "EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettingsPkceEnum", - "EventStreamCloudEventConnectionDeletedObject1OptionsDpopSigningAlgEnum", - "EventStreamCloudEventConnectionDeletedObject1OptionsFederatedConnectionsAccessTokens", - "EventStreamCloudEventConnectionDeletedObject1OptionsIdTokenSignedResponseAlgsItemEnum", - "EventStreamCloudEventConnectionDeletedObject1OptionsOidcMetadata", - "EventStreamCloudEventConnectionDeletedObject1OptionsSchemaVersionEnum", - "EventStreamCloudEventConnectionDeletedObject1OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthMethodEnum", - "EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthSigningAlgEnum", - "EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointJwtcaAudFormatEnum", - "EventStreamCloudEventConnectionDeletedObject1OptionsTypeEnum", - "EventStreamCloudEventConnectionDeletedObject1OptionsUpstreamParams", - "EventStreamCloudEventConnectionDeletedObject1StrategyEnum", - "EventStreamCloudEventConnectionDeletedObject2", - "EventStreamCloudEventConnectionDeletedObject2Authentication", - "EventStreamCloudEventConnectionDeletedObject2ConnectedAccounts", - "EventStreamCloudEventConnectionDeletedObject2Metadata", - "EventStreamCloudEventConnectionDeletedObject2Options", - "EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettings", - "EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum", - "EventStreamCloudEventConnectionDeletedObject2OptionsDigestAlgorithmEnum", - "EventStreamCloudEventConnectionDeletedObject2OptionsFieldsMap", - "EventStreamCloudEventConnectionDeletedObject2OptionsIdpinitiated", - "EventStreamCloudEventConnectionDeletedObject2OptionsIdpinitiatedClientProtocolEnum", - "EventStreamCloudEventConnectionDeletedObject2OptionsOidcMetadata", - "EventStreamCloudEventConnectionDeletedObject2OptionsProtocolBindingEnum", - "EventStreamCloudEventConnectionDeletedObject2OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionDeletedObject2OptionsSignatureAlgorithmEnum", - "EventStreamCloudEventConnectionDeletedObject2OptionsSubject", - "EventStreamCloudEventConnectionDeletedObject2OptionsUpstreamParams", - "EventStreamCloudEventConnectionDeletedObject2StrategyEnum", - "EventStreamCloudEventConnectionDeletedObject3", - "EventStreamCloudEventConnectionDeletedObject3Authentication", - "EventStreamCloudEventConnectionDeletedObject3ConnectedAccounts", - "EventStreamCloudEventConnectionDeletedObject3Metadata", - "EventStreamCloudEventConnectionDeletedObject3Options", - "EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettings", - "EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum", - "EventStreamCloudEventConnectionDeletedObject3OptionsDigestAlgorithmEnum", - "EventStreamCloudEventConnectionDeletedObject3OptionsIdpinitiated", - "EventStreamCloudEventConnectionDeletedObject3OptionsIdpinitiatedClientProtocolEnum", - "EventStreamCloudEventConnectionDeletedObject3OptionsProtocolBindingEnum", - "EventStreamCloudEventConnectionDeletedObject3OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionDeletedObject3OptionsSignatureAlgorithmEnum", - "EventStreamCloudEventConnectionDeletedObject3OptionsSubject", - "EventStreamCloudEventConnectionDeletedObject3OptionsUpstreamParams", - "EventStreamCloudEventConnectionDeletedObject3StrategyEnum", - "EventStreamCloudEventConnectionDeletedObject4", - "EventStreamCloudEventConnectionDeletedObject4Authentication", - "EventStreamCloudEventConnectionDeletedObject4ConnectedAccounts", - "EventStreamCloudEventConnectionDeletedObject4Metadata", - "EventStreamCloudEventConnectionDeletedObject4Options", - "EventStreamCloudEventConnectionDeletedObject4OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionDeletedObject4OptionsShouldTrustEmailVerifiedConnectionEnum", - "EventStreamCloudEventConnectionDeletedObject4OptionsUpstreamParams", - "EventStreamCloudEventConnectionDeletedObject4StrategyEnum", - "EventStreamCloudEventConnectionDeletedObject5", - "EventStreamCloudEventConnectionDeletedObject5Authentication", - "EventStreamCloudEventConnectionDeletedObject5ConnectedAccounts", - "EventStreamCloudEventConnectionDeletedObject5Metadata", - "EventStreamCloudEventConnectionDeletedObject5Options", - "EventStreamCloudEventConnectionDeletedObject5OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionDeletedObject5OptionsUpstreamParams", - "EventStreamCloudEventConnectionDeletedObject5StrategyEnum", - "EventStreamCloudEventConnectionDeletedObject6", - "EventStreamCloudEventConnectionDeletedObject6Authentication", - "EventStreamCloudEventConnectionDeletedObject6ConnectedAccounts", - "EventStreamCloudEventConnectionDeletedObject6Metadata", - "EventStreamCloudEventConnectionDeletedObject6Options", - "EventStreamCloudEventConnectionDeletedObject6OptionsFederatedConnectionsAccessTokens", - "EventStreamCloudEventConnectionDeletedObject6OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionDeletedObject6OptionsUpstreamParams", - "EventStreamCloudEventConnectionDeletedObject6StrategyEnum", - "EventStreamCloudEventConnectionDeletedObject7", - "EventStreamCloudEventConnectionDeletedObject7Authentication", - "EventStreamCloudEventConnectionDeletedObject7ConnectedAccounts", - "EventStreamCloudEventConnectionDeletedObject7Metadata", - "EventStreamCloudEventConnectionDeletedObject7Options", - "EventStreamCloudEventConnectionDeletedObject7OptionsFederatedConnectionsAccessTokens", - "EventStreamCloudEventConnectionDeletedObject7OptionsIdentityApiEnum", - "EventStreamCloudEventConnectionDeletedObject7OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionDeletedObject7OptionsShouldTrustEmailVerifiedConnectionEnum", - "EventStreamCloudEventConnectionDeletedObject7OptionsTenantDomainOne", - "EventStreamCloudEventConnectionDeletedObject7OptionsUpstreamParams", - "EventStreamCloudEventConnectionDeletedObject7OptionsUseridAttributeEnum", - "EventStreamCloudEventConnectionDeletedObject7OptionsWaadProtocolEnum", - "EventStreamCloudEventConnectionDeletedObject7StrategyEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject", - "EventStreamCloudEventConnectionDeletedPreviousObject0", - "EventStreamCloudEventConnectionDeletedPreviousObject0Authentication", - "EventStreamCloudEventConnectionDeletedPreviousObject0ConnectedAccounts", - "EventStreamCloudEventConnectionDeletedPreviousObject0Metadata", - "EventStreamCloudEventConnectionDeletedPreviousObject0Options", - "EventStreamCloudEventConnectionDeletedPreviousObject0OptionsAttributeMap", - "EventStreamCloudEventConnectionDeletedPreviousObject0OptionsAttributeMapAttributes", - "EventStreamCloudEventConnectionDeletedPreviousObject0OptionsAttributeMapMappingModeEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject0OptionsConnectionSettings", - "EventStreamCloudEventConnectionDeletedPreviousObject0OptionsConnectionSettingsPkceEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject0OptionsDpopSigningAlgEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject0OptionsFederatedConnectionsAccessTokens", - "EventStreamCloudEventConnectionDeletedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject0OptionsOidcMetadata", - "EventStreamCloudEventConnectionDeletedPreviousObject0OptionsSchemaVersionEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject0OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTokenEndpointAuthMethodEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTokenEndpointJwtcaAudFormatEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTypeEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject0OptionsUpstreamParams", - "EventStreamCloudEventConnectionDeletedPreviousObject0StrategyEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject1", - "EventStreamCloudEventConnectionDeletedPreviousObject1Authentication", - "EventStreamCloudEventConnectionDeletedPreviousObject1ConnectedAccounts", - "EventStreamCloudEventConnectionDeletedPreviousObject1Metadata", - "EventStreamCloudEventConnectionDeletedPreviousObject1Options", - "EventStreamCloudEventConnectionDeletedPreviousObject1OptionsAttributeMap", - "EventStreamCloudEventConnectionDeletedPreviousObject1OptionsAttributeMapAttributes", - "EventStreamCloudEventConnectionDeletedPreviousObject1OptionsAttributeMapMappingModeEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject1OptionsConnectionSettings", - "EventStreamCloudEventConnectionDeletedPreviousObject1OptionsConnectionSettingsPkceEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject1OptionsDpopSigningAlgEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject1OptionsFederatedConnectionsAccessTokens", - "EventStreamCloudEventConnectionDeletedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject1OptionsOidcMetadata", - "EventStreamCloudEventConnectionDeletedPreviousObject1OptionsSchemaVersionEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject1OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTokenEndpointAuthMethodEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTokenEndpointJwtcaAudFormatEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTypeEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject1OptionsUpstreamParams", - "EventStreamCloudEventConnectionDeletedPreviousObject1StrategyEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject2", - "EventStreamCloudEventConnectionDeletedPreviousObject2Authentication", - "EventStreamCloudEventConnectionDeletedPreviousObject2ConnectedAccounts", - "EventStreamCloudEventConnectionDeletedPreviousObject2Metadata", - "EventStreamCloudEventConnectionDeletedPreviousObject2Options", - "EventStreamCloudEventConnectionDeletedPreviousObject2OptionsAssertionDecryptionSettings", - "EventStreamCloudEventConnectionDeletedPreviousObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject2OptionsDigestAlgorithmEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject2OptionsFieldsMap", - "EventStreamCloudEventConnectionDeletedPreviousObject2OptionsIdpinitiated", - "EventStreamCloudEventConnectionDeletedPreviousObject2OptionsIdpinitiatedClientProtocolEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject2OptionsOidcMetadata", - "EventStreamCloudEventConnectionDeletedPreviousObject2OptionsProtocolBindingEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject2OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject2OptionsSignatureAlgorithmEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject2OptionsSubject", - "EventStreamCloudEventConnectionDeletedPreviousObject2OptionsUpstreamParams", - "EventStreamCloudEventConnectionDeletedPreviousObject2StrategyEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject3", - "EventStreamCloudEventConnectionDeletedPreviousObject3Authentication", - "EventStreamCloudEventConnectionDeletedPreviousObject3ConnectedAccounts", - "EventStreamCloudEventConnectionDeletedPreviousObject3Metadata", - "EventStreamCloudEventConnectionDeletedPreviousObject3Options", - "EventStreamCloudEventConnectionDeletedPreviousObject3OptionsAssertionDecryptionSettings", - "EventStreamCloudEventConnectionDeletedPreviousObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject3OptionsDigestAlgorithmEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject3OptionsIdpinitiated", - "EventStreamCloudEventConnectionDeletedPreviousObject3OptionsIdpinitiatedClientProtocolEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject3OptionsProtocolBindingEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject3OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject3OptionsSignatureAlgorithmEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject3OptionsSubject", - "EventStreamCloudEventConnectionDeletedPreviousObject3OptionsUpstreamParams", - "EventStreamCloudEventConnectionDeletedPreviousObject3StrategyEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject4", - "EventStreamCloudEventConnectionDeletedPreviousObject4Authentication", - "EventStreamCloudEventConnectionDeletedPreviousObject4ConnectedAccounts", - "EventStreamCloudEventConnectionDeletedPreviousObject4Metadata", - "EventStreamCloudEventConnectionDeletedPreviousObject4Options", - "EventStreamCloudEventConnectionDeletedPreviousObject4OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject4OptionsShouldTrustEmailVerifiedConnectionEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject4OptionsUpstreamParams", - "EventStreamCloudEventConnectionDeletedPreviousObject4StrategyEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject5", - "EventStreamCloudEventConnectionDeletedPreviousObject5Authentication", - "EventStreamCloudEventConnectionDeletedPreviousObject5ConnectedAccounts", - "EventStreamCloudEventConnectionDeletedPreviousObject5Metadata", - "EventStreamCloudEventConnectionDeletedPreviousObject5Options", - "EventStreamCloudEventConnectionDeletedPreviousObject5OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject5OptionsUpstreamParams", - "EventStreamCloudEventConnectionDeletedPreviousObject5StrategyEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject6", - "EventStreamCloudEventConnectionDeletedPreviousObject6Authentication", - "EventStreamCloudEventConnectionDeletedPreviousObject6ConnectedAccounts", - "EventStreamCloudEventConnectionDeletedPreviousObject6Metadata", - "EventStreamCloudEventConnectionDeletedPreviousObject6Options", - "EventStreamCloudEventConnectionDeletedPreviousObject6OptionsFederatedConnectionsAccessTokens", - "EventStreamCloudEventConnectionDeletedPreviousObject6OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject6OptionsUpstreamParams", - "EventStreamCloudEventConnectionDeletedPreviousObject6StrategyEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject7", - "EventStreamCloudEventConnectionDeletedPreviousObject7Authentication", - "EventStreamCloudEventConnectionDeletedPreviousObject7ConnectedAccounts", - "EventStreamCloudEventConnectionDeletedPreviousObject7Metadata", - "EventStreamCloudEventConnectionDeletedPreviousObject7Options", - "EventStreamCloudEventConnectionDeletedPreviousObject7OptionsFederatedConnectionsAccessTokens", - "EventStreamCloudEventConnectionDeletedPreviousObject7OptionsIdentityApiEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject7OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject7OptionsTenantDomainOne", - "EventStreamCloudEventConnectionDeletedPreviousObject7OptionsUpstreamParams", - "EventStreamCloudEventConnectionDeletedPreviousObject7OptionsUseridAttributeEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject7OptionsWaadProtocolEnum", - "EventStreamCloudEventConnectionDeletedPreviousObject7StrategyEnum", - "EventStreamCloudEventConnectionDeletedTypeEnum", - "EventStreamCloudEventConnectionUpdated", - "EventStreamCloudEventConnectionUpdatedCloudEvent", - "EventStreamCloudEventConnectionUpdatedCloudEventTypeEnum", - "EventStreamCloudEventConnectionUpdatedData", - "EventStreamCloudEventConnectionUpdatedObject", - "EventStreamCloudEventConnectionUpdatedObject0", - "EventStreamCloudEventConnectionUpdatedObject0Authentication", - "EventStreamCloudEventConnectionUpdatedObject0ConnectedAccounts", - "EventStreamCloudEventConnectionUpdatedObject0Metadata", - "EventStreamCloudEventConnectionUpdatedObject0Options", - "EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMap", - "EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMapAttributes", - "EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMapMappingModeEnum", - "EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettings", - "EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettingsPkceEnum", - "EventStreamCloudEventConnectionUpdatedObject0OptionsDpopSigningAlgEnum", - "EventStreamCloudEventConnectionUpdatedObject0OptionsFederatedConnectionsAccessTokens", - "EventStreamCloudEventConnectionUpdatedObject0OptionsIdTokenSignedResponseAlgsItemEnum", - "EventStreamCloudEventConnectionUpdatedObject0OptionsOidcMetadata", - "EventStreamCloudEventConnectionUpdatedObject0OptionsSchemaVersionEnum", - "EventStreamCloudEventConnectionUpdatedObject0OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthMethodEnum", - "EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthSigningAlgEnum", - "EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointJwtcaAudFormatEnum", - "EventStreamCloudEventConnectionUpdatedObject0OptionsTypeEnum", - "EventStreamCloudEventConnectionUpdatedObject0OptionsUpstreamParams", - "EventStreamCloudEventConnectionUpdatedObject0StrategyEnum", - "EventStreamCloudEventConnectionUpdatedObject1", - "EventStreamCloudEventConnectionUpdatedObject1Authentication", - "EventStreamCloudEventConnectionUpdatedObject1ConnectedAccounts", - "EventStreamCloudEventConnectionUpdatedObject1Metadata", - "EventStreamCloudEventConnectionUpdatedObject1Options", - "EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMap", - "EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMapAttributes", - "EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMapMappingModeEnum", - "EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettings", - "EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettingsPkceEnum", - "EventStreamCloudEventConnectionUpdatedObject1OptionsDpopSigningAlgEnum", - "EventStreamCloudEventConnectionUpdatedObject1OptionsFederatedConnectionsAccessTokens", - "EventStreamCloudEventConnectionUpdatedObject1OptionsIdTokenSignedResponseAlgsItemEnum", - "EventStreamCloudEventConnectionUpdatedObject1OptionsOidcMetadata", - "EventStreamCloudEventConnectionUpdatedObject1OptionsSchemaVersionEnum", - "EventStreamCloudEventConnectionUpdatedObject1OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthMethodEnum", - "EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthSigningAlgEnum", - "EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointJwtcaAudFormatEnum", - "EventStreamCloudEventConnectionUpdatedObject1OptionsTypeEnum", - "EventStreamCloudEventConnectionUpdatedObject1OptionsUpstreamParams", - "EventStreamCloudEventConnectionUpdatedObject1StrategyEnum", - "EventStreamCloudEventConnectionUpdatedObject2", - "EventStreamCloudEventConnectionUpdatedObject2Authentication", - "EventStreamCloudEventConnectionUpdatedObject2ConnectedAccounts", - "EventStreamCloudEventConnectionUpdatedObject2Metadata", - "EventStreamCloudEventConnectionUpdatedObject2Options", - "EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettings", - "EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum", - "EventStreamCloudEventConnectionUpdatedObject2OptionsDigestAlgorithmEnum", - "EventStreamCloudEventConnectionUpdatedObject2OptionsFieldsMap", - "EventStreamCloudEventConnectionUpdatedObject2OptionsIdpinitiated", - "EventStreamCloudEventConnectionUpdatedObject2OptionsIdpinitiatedClientProtocolEnum", - "EventStreamCloudEventConnectionUpdatedObject2OptionsOidcMetadata", - "EventStreamCloudEventConnectionUpdatedObject2OptionsProtocolBindingEnum", - "EventStreamCloudEventConnectionUpdatedObject2OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionUpdatedObject2OptionsSignatureAlgorithmEnum", - "EventStreamCloudEventConnectionUpdatedObject2OptionsSubject", - "EventStreamCloudEventConnectionUpdatedObject2OptionsUpstreamParams", - "EventStreamCloudEventConnectionUpdatedObject2StrategyEnum", - "EventStreamCloudEventConnectionUpdatedObject3", - "EventStreamCloudEventConnectionUpdatedObject3Authentication", - "EventStreamCloudEventConnectionUpdatedObject3ConnectedAccounts", - "EventStreamCloudEventConnectionUpdatedObject3Metadata", - "EventStreamCloudEventConnectionUpdatedObject3Options", - "EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettings", - "EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum", - "EventStreamCloudEventConnectionUpdatedObject3OptionsDigestAlgorithmEnum", - "EventStreamCloudEventConnectionUpdatedObject3OptionsIdpinitiated", - "EventStreamCloudEventConnectionUpdatedObject3OptionsIdpinitiatedClientProtocolEnum", - "EventStreamCloudEventConnectionUpdatedObject3OptionsProtocolBindingEnum", - "EventStreamCloudEventConnectionUpdatedObject3OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionUpdatedObject3OptionsSignatureAlgorithmEnum", - "EventStreamCloudEventConnectionUpdatedObject3OptionsSubject", - "EventStreamCloudEventConnectionUpdatedObject3OptionsUpstreamParams", - "EventStreamCloudEventConnectionUpdatedObject3StrategyEnum", - "EventStreamCloudEventConnectionUpdatedObject4", - "EventStreamCloudEventConnectionUpdatedObject4Authentication", - "EventStreamCloudEventConnectionUpdatedObject4ConnectedAccounts", - "EventStreamCloudEventConnectionUpdatedObject4Metadata", - "EventStreamCloudEventConnectionUpdatedObject4Options", - "EventStreamCloudEventConnectionUpdatedObject4OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionUpdatedObject4OptionsShouldTrustEmailVerifiedConnectionEnum", - "EventStreamCloudEventConnectionUpdatedObject4OptionsUpstreamParams", - "EventStreamCloudEventConnectionUpdatedObject4StrategyEnum", - "EventStreamCloudEventConnectionUpdatedObject5", - "EventStreamCloudEventConnectionUpdatedObject5Authentication", - "EventStreamCloudEventConnectionUpdatedObject5ConnectedAccounts", - "EventStreamCloudEventConnectionUpdatedObject5Metadata", - "EventStreamCloudEventConnectionUpdatedObject5Options", - "EventStreamCloudEventConnectionUpdatedObject5OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionUpdatedObject5OptionsUpstreamParams", - "EventStreamCloudEventConnectionUpdatedObject5StrategyEnum", - "EventStreamCloudEventConnectionUpdatedObject6", - "EventStreamCloudEventConnectionUpdatedObject6Authentication", - "EventStreamCloudEventConnectionUpdatedObject6ConnectedAccounts", - "EventStreamCloudEventConnectionUpdatedObject6Metadata", - "EventStreamCloudEventConnectionUpdatedObject6Options", - "EventStreamCloudEventConnectionUpdatedObject6OptionsFederatedConnectionsAccessTokens", - "EventStreamCloudEventConnectionUpdatedObject6OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionUpdatedObject6OptionsUpstreamParams", - "EventStreamCloudEventConnectionUpdatedObject6StrategyEnum", - "EventStreamCloudEventConnectionUpdatedObject7", - "EventStreamCloudEventConnectionUpdatedObject7Authentication", - "EventStreamCloudEventConnectionUpdatedObject7ConnectedAccounts", - "EventStreamCloudEventConnectionUpdatedObject7Metadata", - "EventStreamCloudEventConnectionUpdatedObject7Options", - "EventStreamCloudEventConnectionUpdatedObject7OptionsFederatedConnectionsAccessTokens", - "EventStreamCloudEventConnectionUpdatedObject7OptionsIdentityApiEnum", - "EventStreamCloudEventConnectionUpdatedObject7OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionUpdatedObject7OptionsShouldTrustEmailVerifiedConnectionEnum", - "EventStreamCloudEventConnectionUpdatedObject7OptionsTenantDomainOne", - "EventStreamCloudEventConnectionUpdatedObject7OptionsUpstreamParams", - "EventStreamCloudEventConnectionUpdatedObject7OptionsUseridAttributeEnum", - "EventStreamCloudEventConnectionUpdatedObject7OptionsWaadProtocolEnum", - "EventStreamCloudEventConnectionUpdatedObject7StrategyEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject", - "EventStreamCloudEventConnectionUpdatedPreviousObject0", - "EventStreamCloudEventConnectionUpdatedPreviousObject0Authentication", - "EventStreamCloudEventConnectionUpdatedPreviousObject0ConnectedAccounts", - "EventStreamCloudEventConnectionUpdatedPreviousObject0Metadata", - "EventStreamCloudEventConnectionUpdatedPreviousObject0Options", - "EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsAttributeMap", - "EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsAttributeMapAttributes", - "EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsAttributeMapMappingModeEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsConnectionSettings", - "EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsConnectionSettingsPkceEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsDpopSigningAlgEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsFederatedConnectionsAccessTokens", - "EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsOidcMetadata", - "EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsSchemaVersionEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTokenEndpointAuthMethodEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTokenEndpointJwtcaAudFormatEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTypeEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsUpstreamParams", - "EventStreamCloudEventConnectionUpdatedPreviousObject0StrategyEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject1", - "EventStreamCloudEventConnectionUpdatedPreviousObject1Authentication", - "EventStreamCloudEventConnectionUpdatedPreviousObject1ConnectedAccounts", - "EventStreamCloudEventConnectionUpdatedPreviousObject1Metadata", - "EventStreamCloudEventConnectionUpdatedPreviousObject1Options", - "EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsAttributeMap", - "EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsAttributeMapAttributes", - "EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsAttributeMapMappingModeEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsConnectionSettings", - "EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsConnectionSettingsPkceEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsDpopSigningAlgEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsFederatedConnectionsAccessTokens", - "EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsOidcMetadata", - "EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsSchemaVersionEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTokenEndpointAuthMethodEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTokenEndpointJwtcaAudFormatEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTypeEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsUpstreamParams", - "EventStreamCloudEventConnectionUpdatedPreviousObject1StrategyEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject2", - "EventStreamCloudEventConnectionUpdatedPreviousObject2Authentication", - "EventStreamCloudEventConnectionUpdatedPreviousObject2ConnectedAccounts", - "EventStreamCloudEventConnectionUpdatedPreviousObject2Metadata", - "EventStreamCloudEventConnectionUpdatedPreviousObject2Options", - "EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsAssertionDecryptionSettings", - "EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsDigestAlgorithmEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsFieldsMap", - "EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsIdpinitiated", - "EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsIdpinitiatedClientProtocolEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsOidcMetadata", - "EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsProtocolBindingEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsSignatureAlgorithmEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsSubject", - "EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsUpstreamParams", - "EventStreamCloudEventConnectionUpdatedPreviousObject2StrategyEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject3", - "EventStreamCloudEventConnectionUpdatedPreviousObject3Authentication", - "EventStreamCloudEventConnectionUpdatedPreviousObject3ConnectedAccounts", - "EventStreamCloudEventConnectionUpdatedPreviousObject3Metadata", - "EventStreamCloudEventConnectionUpdatedPreviousObject3Options", - "EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsAssertionDecryptionSettings", - "EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsDigestAlgorithmEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsIdpinitiated", - "EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsIdpinitiatedClientProtocolEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsProtocolBindingEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsSignatureAlgorithmEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsSubject", - "EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsUpstreamParams", - "EventStreamCloudEventConnectionUpdatedPreviousObject3StrategyEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject4", - "EventStreamCloudEventConnectionUpdatedPreviousObject4Authentication", - "EventStreamCloudEventConnectionUpdatedPreviousObject4ConnectedAccounts", - "EventStreamCloudEventConnectionUpdatedPreviousObject4Metadata", - "EventStreamCloudEventConnectionUpdatedPreviousObject4Options", - "EventStreamCloudEventConnectionUpdatedPreviousObject4OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject4OptionsShouldTrustEmailVerifiedConnectionEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject4OptionsUpstreamParams", - "EventStreamCloudEventConnectionUpdatedPreviousObject4StrategyEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject5", - "EventStreamCloudEventConnectionUpdatedPreviousObject5Authentication", - "EventStreamCloudEventConnectionUpdatedPreviousObject5ConnectedAccounts", - "EventStreamCloudEventConnectionUpdatedPreviousObject5Metadata", - "EventStreamCloudEventConnectionUpdatedPreviousObject5Options", - "EventStreamCloudEventConnectionUpdatedPreviousObject5OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject5OptionsUpstreamParams", - "EventStreamCloudEventConnectionUpdatedPreviousObject5StrategyEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject6", - "EventStreamCloudEventConnectionUpdatedPreviousObject6Authentication", - "EventStreamCloudEventConnectionUpdatedPreviousObject6ConnectedAccounts", - "EventStreamCloudEventConnectionUpdatedPreviousObject6Metadata", - "EventStreamCloudEventConnectionUpdatedPreviousObject6Options", - "EventStreamCloudEventConnectionUpdatedPreviousObject6OptionsFederatedConnectionsAccessTokens", - "EventStreamCloudEventConnectionUpdatedPreviousObject6OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject6OptionsUpstreamParams", - "EventStreamCloudEventConnectionUpdatedPreviousObject6StrategyEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject7", - "EventStreamCloudEventConnectionUpdatedPreviousObject7Authentication", - "EventStreamCloudEventConnectionUpdatedPreviousObject7ConnectedAccounts", - "EventStreamCloudEventConnectionUpdatedPreviousObject7Metadata", - "EventStreamCloudEventConnectionUpdatedPreviousObject7Options", - "EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsFederatedConnectionsAccessTokens", - "EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsIdentityApiEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsSetUserRootAttributesEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsTenantDomainOne", - "EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsUpstreamParams", - "EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsUseridAttributeEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsWaadProtocolEnum", - "EventStreamCloudEventConnectionUpdatedPreviousObject7StrategyEnum", - "EventStreamCloudEventConnectionUpdatedTypeEnum", - "EventStreamCloudEventContext", - "EventStreamCloudEventContextClient", - "EventStreamCloudEventContextClientMetadata", - "EventStreamCloudEventContextConnection", - "EventStreamCloudEventContextRequest", - "EventStreamCloudEventContextRequestGeo", - "EventStreamCloudEventContextTenant", - "EventStreamCloudEventContextTransaction", - "EventStreamCloudEventContextTransactionProtocolEnum", - "EventStreamCloudEventContextTransactionResponseModeEnum", - "EventStreamCloudEventContextTransactionResponseTypeItemEnum", - "EventStreamCloudEventData", - "EventStreamCloudEventErrorCodeEnum", - "EventStreamCloudEventErrorDetail", - "EventStreamCloudEventErrorMessage", - "EventStreamCloudEventErrorMessageTypeEnum", - "EventStreamCloudEventGroupCreated", - "EventStreamCloudEventGroupCreatedCloudEvent", - "EventStreamCloudEventGroupCreatedCloudEventTypeEnum", - "EventStreamCloudEventGroupCreatedData", - "EventStreamCloudEventGroupCreatedObject", - "EventStreamCloudEventGroupCreatedObject0", - "EventStreamCloudEventGroupCreatedObject0TypeEnum", - "EventStreamCloudEventGroupCreatedObject1", - "EventStreamCloudEventGroupCreatedObject1TypeEnum", - "EventStreamCloudEventGroupCreatedObject2", - "EventStreamCloudEventGroupCreatedObject2TypeEnum", - "EventStreamCloudEventGroupCreatedPreviousObject", - "EventStreamCloudEventGroupCreatedPreviousObject0", - "EventStreamCloudEventGroupCreatedPreviousObject0TypeEnum", - "EventStreamCloudEventGroupCreatedPreviousObject1", - "EventStreamCloudEventGroupCreatedPreviousObject1TypeEnum", - "EventStreamCloudEventGroupCreatedPreviousObject2", - "EventStreamCloudEventGroupCreatedPreviousObject2TypeEnum", - "EventStreamCloudEventGroupCreatedTypeEnum", - "EventStreamCloudEventGroupDeleted", - "EventStreamCloudEventGroupDeletedCloudEvent", - "EventStreamCloudEventGroupDeletedCloudEventTypeEnum", - "EventStreamCloudEventGroupDeletedData", - "EventStreamCloudEventGroupDeletedObject", - "EventStreamCloudEventGroupDeletedObject0", - "EventStreamCloudEventGroupDeletedObject0TypeEnum", - "EventStreamCloudEventGroupDeletedObject1", - "EventStreamCloudEventGroupDeletedObject1TypeEnum", - "EventStreamCloudEventGroupDeletedObject2", - "EventStreamCloudEventGroupDeletedObject2TypeEnum", - "EventStreamCloudEventGroupDeletedPreviousObject", - "EventStreamCloudEventGroupDeletedPreviousObject0", - "EventStreamCloudEventGroupDeletedPreviousObject0TypeEnum", - "EventStreamCloudEventGroupDeletedPreviousObject1", - "EventStreamCloudEventGroupDeletedPreviousObject1TypeEnum", - "EventStreamCloudEventGroupDeletedPreviousObject2", - "EventStreamCloudEventGroupDeletedPreviousObject2TypeEnum", - "EventStreamCloudEventGroupDeletedTypeEnum", - "EventStreamCloudEventGroupMemberAdded", - "EventStreamCloudEventGroupMemberAddedCloudEvent", - "EventStreamCloudEventGroupMemberAddedCloudEventTypeEnum", - "EventStreamCloudEventGroupMemberAddedData", - "EventStreamCloudEventGroupMemberAddedObject", - "EventStreamCloudEventGroupMemberAddedObjectGroup", - "EventStreamCloudEventGroupMemberAddedObjectGroup0", - "EventStreamCloudEventGroupMemberAddedObjectGroup0TypeEnum", - "EventStreamCloudEventGroupMemberAddedObjectGroup1", - "EventStreamCloudEventGroupMemberAddedObjectGroup1TypeEnum", - "EventStreamCloudEventGroupMemberAddedObjectGroup2", - "EventStreamCloudEventGroupMemberAddedObjectGroup2TypeEnum", - "EventStreamCloudEventGroupMemberAddedObjectMember", - "EventStreamCloudEventGroupMemberAddedObjectMember0", - "EventStreamCloudEventGroupMemberAddedObjectMember0MemberTypeEnum", - "EventStreamCloudEventGroupMemberAddedObjectMember1", - "EventStreamCloudEventGroupMemberAddedObjectMember1MemberTypeEnum", - "EventStreamCloudEventGroupMemberAddedPreviousObject", - "EventStreamCloudEventGroupMemberAddedPreviousObjectGroup", - "EventStreamCloudEventGroupMemberAddedPreviousObjectGroup0", - "EventStreamCloudEventGroupMemberAddedPreviousObjectGroup0TypeEnum", - "EventStreamCloudEventGroupMemberAddedPreviousObjectGroup1", - "EventStreamCloudEventGroupMemberAddedPreviousObjectGroup1TypeEnum", - "EventStreamCloudEventGroupMemberAddedPreviousObjectGroup2", - "EventStreamCloudEventGroupMemberAddedPreviousObjectGroup2TypeEnum", - "EventStreamCloudEventGroupMemberAddedPreviousObjectMember", - "EventStreamCloudEventGroupMemberAddedPreviousObjectMember0", - "EventStreamCloudEventGroupMemberAddedPreviousObjectMember0MemberTypeEnum", - "EventStreamCloudEventGroupMemberAddedPreviousObjectMember1", - "EventStreamCloudEventGroupMemberAddedPreviousObjectMember1MemberTypeEnum", - "EventStreamCloudEventGroupMemberAddedTypeEnum", - "EventStreamCloudEventGroupMemberDeleted", - "EventStreamCloudEventGroupMemberDeletedCloudEvent", - "EventStreamCloudEventGroupMemberDeletedCloudEventTypeEnum", - "EventStreamCloudEventGroupMemberDeletedData", - "EventStreamCloudEventGroupMemberDeletedObject", - "EventStreamCloudEventGroupMemberDeletedObjectGroup", - "EventStreamCloudEventGroupMemberDeletedObjectGroup0", - "EventStreamCloudEventGroupMemberDeletedObjectGroup0TypeEnum", - "EventStreamCloudEventGroupMemberDeletedObjectGroup1", - "EventStreamCloudEventGroupMemberDeletedObjectGroup1TypeEnum", - "EventStreamCloudEventGroupMemberDeletedObjectGroup2", - "EventStreamCloudEventGroupMemberDeletedObjectGroup2TypeEnum", - "EventStreamCloudEventGroupMemberDeletedObjectMember", - "EventStreamCloudEventGroupMemberDeletedObjectMember0", - "EventStreamCloudEventGroupMemberDeletedObjectMember0MemberTypeEnum", - "EventStreamCloudEventGroupMemberDeletedObjectMember1", - "EventStreamCloudEventGroupMemberDeletedObjectMember1MemberTypeEnum", - "EventStreamCloudEventGroupMemberDeletedPreviousObject", - "EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup", - "EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup0", - "EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup0TypeEnum", - "EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup1", - "EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup1TypeEnum", - "EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup2", - "EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup2TypeEnum", - "EventStreamCloudEventGroupMemberDeletedPreviousObjectMember", - "EventStreamCloudEventGroupMemberDeletedPreviousObjectMember0", - "EventStreamCloudEventGroupMemberDeletedPreviousObjectMember0MemberTypeEnum", - "EventStreamCloudEventGroupMemberDeletedPreviousObjectMember1", - "EventStreamCloudEventGroupMemberDeletedPreviousObjectMember1MemberTypeEnum", - "EventStreamCloudEventGroupMemberDeletedTypeEnum", - "EventStreamCloudEventGroupRoleAssigned", - "EventStreamCloudEventGroupRoleAssignedCloudEvent", - "EventStreamCloudEventGroupRoleAssignedCloudEventTypeEnum", - "EventStreamCloudEventGroupRoleAssignedData", - "EventStreamCloudEventGroupRoleAssignedObject", - "EventStreamCloudEventGroupRoleAssignedObjectGroup", - "EventStreamCloudEventGroupRoleAssignedObjectGroup0", - "EventStreamCloudEventGroupRoleAssignedObjectGroup0TypeEnum", - "EventStreamCloudEventGroupRoleAssignedObjectGroup1", - "EventStreamCloudEventGroupRoleAssignedObjectGroup1TypeEnum", - "EventStreamCloudEventGroupRoleAssignedObjectGroup2", - "EventStreamCloudEventGroupRoleAssignedObjectGroup2TypeEnum", - "EventStreamCloudEventGroupRoleAssignedObjectRole", - "EventStreamCloudEventGroupRoleAssignedPreviousObject", - "EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup", - "EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup0", - "EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup0TypeEnum", - "EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup1", - "EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup1TypeEnum", - "EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup2", - "EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup2TypeEnum", - "EventStreamCloudEventGroupRoleAssignedPreviousObjectRole", - "EventStreamCloudEventGroupRoleAssignedTypeEnum", - "EventStreamCloudEventGroupRoleDeleted", - "EventStreamCloudEventGroupRoleDeletedCloudEvent", - "EventStreamCloudEventGroupRoleDeletedCloudEventTypeEnum", - "EventStreamCloudEventGroupRoleDeletedData", - "EventStreamCloudEventGroupRoleDeletedObject", - "EventStreamCloudEventGroupRoleDeletedObjectGroup", - "EventStreamCloudEventGroupRoleDeletedObjectGroup0", - "EventStreamCloudEventGroupRoleDeletedObjectGroup0TypeEnum", - "EventStreamCloudEventGroupRoleDeletedObjectGroup1", - "EventStreamCloudEventGroupRoleDeletedObjectGroup1TypeEnum", - "EventStreamCloudEventGroupRoleDeletedObjectGroup2", - "EventStreamCloudEventGroupRoleDeletedObjectGroup2TypeEnum", - "EventStreamCloudEventGroupRoleDeletedObjectRole", - "EventStreamCloudEventGroupRoleDeletedPreviousObject", - "EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup", - "EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup0", - "EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup0TypeEnum", - "EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup1", - "EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup1TypeEnum", - "EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup2", - "EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup2TypeEnum", - "EventStreamCloudEventGroupRoleDeletedPreviousObjectRole", - "EventStreamCloudEventGroupRoleDeletedTypeEnum", - "EventStreamCloudEventGroupUpdated", - "EventStreamCloudEventGroupUpdatedCloudEvent", - "EventStreamCloudEventGroupUpdatedCloudEventTypeEnum", - "EventStreamCloudEventGroupUpdatedData", - "EventStreamCloudEventGroupUpdatedObject", - "EventStreamCloudEventGroupUpdatedObject0", - "EventStreamCloudEventGroupUpdatedObject0TypeEnum", - "EventStreamCloudEventGroupUpdatedObject1", - "EventStreamCloudEventGroupUpdatedObject1TypeEnum", - "EventStreamCloudEventGroupUpdatedObject2", - "EventStreamCloudEventGroupUpdatedObject2TypeEnum", - "EventStreamCloudEventGroupUpdatedPreviousObject", - "EventStreamCloudEventGroupUpdatedPreviousObject0", - "EventStreamCloudEventGroupUpdatedPreviousObject0TypeEnum", - "EventStreamCloudEventGroupUpdatedPreviousObject1", - "EventStreamCloudEventGroupUpdatedPreviousObject1TypeEnum", - "EventStreamCloudEventGroupUpdatedPreviousObject2", - "EventStreamCloudEventGroupUpdatedPreviousObject2TypeEnum", - "EventStreamCloudEventGroupUpdatedTypeEnum", - "EventStreamCloudEventOffsetOnlyMessage", - "EventStreamCloudEventOffsetOnlyMessageTypeEnum", - "EventStreamCloudEventOrgConnectionAdded", - "EventStreamCloudEventOrgConnectionAddedCloudEvent", - "EventStreamCloudEventOrgConnectionAddedCloudEventTypeEnum", - "EventStreamCloudEventOrgConnectionAddedData", - "EventStreamCloudEventOrgConnectionAddedObject", - "EventStreamCloudEventOrgConnectionAddedObjectConnection", - "EventStreamCloudEventOrgConnectionAddedObjectOrganization", - "EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel", - "EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel0Enum", - "EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel1Enum", - "EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel2Enum", - "EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel3Enum", - "EventStreamCloudEventOrgConnectionAddedObjectOrganizationMemberAccessLevel", - "EventStreamCloudEventOrgConnectionAddedObjectOrganizationMemberAccessLevel0Enum", - "EventStreamCloudEventOrgConnectionAddedObjectOrganizationMemberAccessLevel1Enum", - "EventStreamCloudEventOrgConnectionAddedObjectOrganizationMemberAccessLevel2Enum", - "EventStreamCloudEventOrgConnectionAddedObjectOrganizationMemberAccessLevel3Enum", - "EventStreamCloudEventOrgConnectionAddedPreviousObject", - "EventStreamCloudEventOrgConnectionAddedPreviousObjectConnection", - "EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganization", - "EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel", - "EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel0Enum", - "EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel1Enum", - "EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel2Enum", - "EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel3Enum", - "EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationMemberAccessLevel", - "EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationMemberAccessLevel0Enum", - "EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationMemberAccessLevel1Enum", - "EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationMemberAccessLevel2Enum", - "EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationMemberAccessLevel3Enum", - "EventStreamCloudEventOrgConnectionAddedTypeEnum", - "EventStreamCloudEventOrgConnectionRemoved", - "EventStreamCloudEventOrgConnectionRemovedCloudEvent", - "EventStreamCloudEventOrgConnectionRemovedCloudEventTypeEnum", - "EventStreamCloudEventOrgConnectionRemovedData", - "EventStreamCloudEventOrgConnectionRemovedObject", - "EventStreamCloudEventOrgConnectionRemovedObjectConnection", - "EventStreamCloudEventOrgConnectionRemovedObjectOrganization", - "EventStreamCloudEventOrgConnectionRemovedPreviousObject", - "EventStreamCloudEventOrgConnectionRemovedPreviousObjectConnection", - "EventStreamCloudEventOrgConnectionRemovedPreviousObjectOrganization", - "EventStreamCloudEventOrgConnectionRemovedTypeEnum", - "EventStreamCloudEventOrgConnectionUpdated", - "EventStreamCloudEventOrgConnectionUpdatedCloudEvent", - "EventStreamCloudEventOrgConnectionUpdatedCloudEventTypeEnum", - "EventStreamCloudEventOrgConnectionUpdatedData", - "EventStreamCloudEventOrgConnectionUpdatedObject", - "EventStreamCloudEventOrgConnectionUpdatedObjectConnection", - "EventStreamCloudEventOrgConnectionUpdatedObjectOrganization", - "EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel", - "EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel0Enum", - "EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel1Enum", - "EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel2Enum", - "EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel3Enum", - "EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationMemberAccessLevel", - "EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationMemberAccessLevel0Enum", - "EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationMemberAccessLevel1Enum", - "EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationMemberAccessLevel2Enum", - "EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationMemberAccessLevel3Enum", - "EventStreamCloudEventOrgConnectionUpdatedPreviousObject", - "EventStreamCloudEventOrgConnectionUpdatedPreviousObjectConnection", - "EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganization", - "EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel", - "EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel0Enum", - "EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel1Enum", - "EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel2Enum", - "EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel3Enum", - "EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationMemberAccessLevel", - "EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationMemberAccessLevel0Enum", - "EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationMemberAccessLevel1Enum", - "EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationMemberAccessLevel2Enum", - "EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationMemberAccessLevel3Enum", - "EventStreamCloudEventOrgConnectionUpdatedTypeEnum", - "EventStreamCloudEventOrgCreated", - "EventStreamCloudEventOrgCreatedCloudEvent", - "EventStreamCloudEventOrgCreatedCloudEventTypeEnum", - "EventStreamCloudEventOrgCreatedData", - "EventStreamCloudEventOrgCreatedObject", - "EventStreamCloudEventOrgCreatedObjectBranding", - "EventStreamCloudEventOrgCreatedObjectBrandingColors", - "EventStreamCloudEventOrgCreatedObjectMetadata", - "EventStreamCloudEventOrgCreatedPreviousObject", - "EventStreamCloudEventOrgCreatedPreviousObjectBranding", - "EventStreamCloudEventOrgCreatedPreviousObjectBrandingColors", - "EventStreamCloudEventOrgCreatedPreviousObjectMetadata", - "EventStreamCloudEventOrgCreatedTypeEnum", - "EventStreamCloudEventOrgDeleted", - "EventStreamCloudEventOrgDeletedCloudEvent", - "EventStreamCloudEventOrgDeletedCloudEventTypeEnum", - "EventStreamCloudEventOrgDeletedData", - "EventStreamCloudEventOrgDeletedObject", - "EventStreamCloudEventOrgDeletedObjectMetadata", - "EventStreamCloudEventOrgDeletedPreviousObject", - "EventStreamCloudEventOrgDeletedPreviousObjectMetadata", - "EventStreamCloudEventOrgDeletedTypeEnum", - "EventStreamCloudEventOrgGroupRoleAssigned", - "EventStreamCloudEventOrgGroupRoleAssignedCloudEvent", - "EventStreamCloudEventOrgGroupRoleAssignedCloudEventTypeEnum", - "EventStreamCloudEventOrgGroupRoleAssignedData", - "EventStreamCloudEventOrgGroupRoleAssignedObject", - "EventStreamCloudEventOrgGroupRoleAssignedObjectGroup", - "EventStreamCloudEventOrgGroupRoleAssignedObjectGroup0", - "EventStreamCloudEventOrgGroupRoleAssignedObjectGroup0TypeEnum", - "EventStreamCloudEventOrgGroupRoleAssignedObjectGroup1", - "EventStreamCloudEventOrgGroupRoleAssignedObjectGroup1TypeEnum", - "EventStreamCloudEventOrgGroupRoleAssignedObjectGroup2", - "EventStreamCloudEventOrgGroupRoleAssignedObjectGroup2TypeEnum", - "EventStreamCloudEventOrgGroupRoleAssignedObjectOrganization", - "EventStreamCloudEventOrgGroupRoleAssignedObjectRole", - "EventStreamCloudEventOrgGroupRoleAssignedPreviousObject", - "EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup", - "EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup0", - "EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup0TypeEnum", - "EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup1", - "EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup1TypeEnum", - "EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup2", - "EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup2TypeEnum", - "EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectOrganization", - "EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectRole", - "EventStreamCloudEventOrgGroupRoleAssignedTypeEnum", - "EventStreamCloudEventOrgGroupRoleDeleted", - "EventStreamCloudEventOrgGroupRoleDeletedCloudEvent", - "EventStreamCloudEventOrgGroupRoleDeletedCloudEventTypeEnum", - "EventStreamCloudEventOrgGroupRoleDeletedData", - "EventStreamCloudEventOrgGroupRoleDeletedObject", - "EventStreamCloudEventOrgGroupRoleDeletedObjectGroup", - "EventStreamCloudEventOrgGroupRoleDeletedObjectGroup0", - "EventStreamCloudEventOrgGroupRoleDeletedObjectGroup0TypeEnum", - "EventStreamCloudEventOrgGroupRoleDeletedObjectGroup1", - "EventStreamCloudEventOrgGroupRoleDeletedObjectGroup1TypeEnum", - "EventStreamCloudEventOrgGroupRoleDeletedObjectGroup2", - "EventStreamCloudEventOrgGroupRoleDeletedObjectGroup2TypeEnum", - "EventStreamCloudEventOrgGroupRoleDeletedObjectOrganization", - "EventStreamCloudEventOrgGroupRoleDeletedObjectRole", - "EventStreamCloudEventOrgGroupRoleDeletedPreviousObject", - "EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup", - "EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup0", - "EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup0TypeEnum", - "EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup1", - "EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup1TypeEnum", - "EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup2", - "EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup2TypeEnum", - "EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectOrganization", - "EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectRole", - "EventStreamCloudEventOrgGroupRoleDeletedTypeEnum", - "EventStreamCloudEventOrgMemberAdded", - "EventStreamCloudEventOrgMemberAddedCloudEvent", - "EventStreamCloudEventOrgMemberAddedCloudEventTypeEnum", - "EventStreamCloudEventOrgMemberAddedData", - "EventStreamCloudEventOrgMemberAddedObject", - "EventStreamCloudEventOrgMemberAddedObjectOrganization", - "EventStreamCloudEventOrgMemberAddedObjectUser", - "EventStreamCloudEventOrgMemberAddedPreviousObject", - "EventStreamCloudEventOrgMemberAddedPreviousObjectOrganization", - "EventStreamCloudEventOrgMemberAddedPreviousObjectUser", - "EventStreamCloudEventOrgMemberAddedTypeEnum", - "EventStreamCloudEventOrgMemberDeleted", - "EventStreamCloudEventOrgMemberDeletedCloudEvent", - "EventStreamCloudEventOrgMemberDeletedCloudEventTypeEnum", - "EventStreamCloudEventOrgMemberDeletedData", - "EventStreamCloudEventOrgMemberDeletedObject", - "EventStreamCloudEventOrgMemberDeletedObjectOrganization", - "EventStreamCloudEventOrgMemberDeletedObjectUser", - "EventStreamCloudEventOrgMemberDeletedPreviousObject", - "EventStreamCloudEventOrgMemberDeletedPreviousObjectOrganization", - "EventStreamCloudEventOrgMemberDeletedPreviousObjectUser", - "EventStreamCloudEventOrgMemberDeletedTypeEnum", - "EventStreamCloudEventOrgMemberRoleAssigned", - "EventStreamCloudEventOrgMemberRoleAssignedCloudEvent", - "EventStreamCloudEventOrgMemberRoleAssignedCloudEventTypeEnum", - "EventStreamCloudEventOrgMemberRoleAssignedData", - "EventStreamCloudEventOrgMemberRoleAssignedObject", - "EventStreamCloudEventOrgMemberRoleAssignedObjectOrganization", - "EventStreamCloudEventOrgMemberRoleAssignedObjectRole", - "EventStreamCloudEventOrgMemberRoleAssignedObjectUser", - "EventStreamCloudEventOrgMemberRoleAssignedPreviousObject", - "EventStreamCloudEventOrgMemberRoleAssignedPreviousObjectOrganization", - "EventStreamCloudEventOrgMemberRoleAssignedPreviousObjectRole", - "EventStreamCloudEventOrgMemberRoleAssignedPreviousObjectUser", - "EventStreamCloudEventOrgMemberRoleAssignedTypeEnum", - "EventStreamCloudEventOrgMemberRoleDeleted", - "EventStreamCloudEventOrgMemberRoleDeletedCloudEvent", - "EventStreamCloudEventOrgMemberRoleDeletedCloudEventTypeEnum", - "EventStreamCloudEventOrgMemberRoleDeletedData", - "EventStreamCloudEventOrgMemberRoleDeletedObject", - "EventStreamCloudEventOrgMemberRoleDeletedObjectOrganization", - "EventStreamCloudEventOrgMemberRoleDeletedObjectRole", - "EventStreamCloudEventOrgMemberRoleDeletedObjectUser", - "EventStreamCloudEventOrgMemberRoleDeletedPreviousObject", - "EventStreamCloudEventOrgMemberRoleDeletedPreviousObjectOrganization", - "EventStreamCloudEventOrgMemberRoleDeletedPreviousObjectRole", - "EventStreamCloudEventOrgMemberRoleDeletedPreviousObjectUser", - "EventStreamCloudEventOrgMemberRoleDeletedTypeEnum", - "EventStreamCloudEventOrgUpdated", - "EventStreamCloudEventOrgUpdatedCloudEvent", - "EventStreamCloudEventOrgUpdatedCloudEventTypeEnum", - "EventStreamCloudEventOrgUpdatedData", - "EventStreamCloudEventOrgUpdatedObject", - "EventStreamCloudEventOrgUpdatedObjectBranding", - "EventStreamCloudEventOrgUpdatedObjectBrandingColors", - "EventStreamCloudEventOrgUpdatedObjectMetadata", - "EventStreamCloudEventOrgUpdatedPreviousObject", - "EventStreamCloudEventOrgUpdatedPreviousObjectBranding", - "EventStreamCloudEventOrgUpdatedPreviousObjectBrandingColors", - "EventStreamCloudEventOrgUpdatedPreviousObjectMetadata", - "EventStreamCloudEventOrgUpdatedTypeEnum", - "EventStreamCloudEventSpecVersionEnum", - "EventStreamCloudEventUserCreated", - "EventStreamCloudEventUserCreatedCloudEvent", - "EventStreamCloudEventUserCreatedCloudEventTypeEnum", - "EventStreamCloudEventUserCreatedData", - "EventStreamCloudEventUserCreatedObject", - "EventStreamCloudEventUserCreatedObjectAppMetadata", - "EventStreamCloudEventUserCreatedObjectIdentitiesItem", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemCustom", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemCustomIsSocialEnum", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemCustomProfileData", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemCustomProviderEnum", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemCustomUserId", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemDatabase", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemDatabaseIsSocialEnum", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemDatabaseProfileData", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemDatabaseProviderEnum", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemDatabaseUserId", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemEnterprise", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemEnterpriseIsSocialEnum", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemEnterpriseProfileData", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemEnterpriseProviderEnum", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemEnterpriseUserId", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemPasswordless", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemPasswordlessIsSocialEnum", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemPasswordlessProfileData", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemPasswordlessProviderEnum", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemPasswordlessUserId", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemSocial", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemSocialIsSocialEnum", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemSocialProfileData", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemSocialProviderEnum", - "EventStreamCloudEventUserCreatedObjectIdentitiesItemSocialUserId", - "EventStreamCloudEventUserCreatedObjectUserMetadata", - "EventStreamCloudEventUserCreatedPreviousObject", - "EventStreamCloudEventUserCreatedPreviousObjectAppMetadata", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItem", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustom", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomIsSocialEnum", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomProfileData", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomProviderEnum", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomUserId", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabase", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseIsSocialEnum", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseProfileData", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseProviderEnum", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseUserId", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterprise", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseIsSocialEnum", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseProfileData", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseProviderEnum", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseUserId", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordless", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessIsSocialEnum", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessProfileData", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessProviderEnum", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessUserId", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocial", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialIsSocialEnum", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProfileData", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum", - "EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialUserId", - "EventStreamCloudEventUserCreatedPreviousObjectUserMetadata", - "EventStreamCloudEventUserCreatedTypeEnum", - "EventStreamCloudEventUserDeleted", - "EventStreamCloudEventUserDeletedCloudEvent", - "EventStreamCloudEventUserDeletedCloudEventTypeEnum", - "EventStreamCloudEventUserDeletedData", - "EventStreamCloudEventUserDeletedObject", - "EventStreamCloudEventUserDeletedObjectAppMetadata", - "EventStreamCloudEventUserDeletedObjectIdentitiesItem", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemCustom", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemCustomIsSocialEnum", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemCustomProfileData", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemCustomProviderEnum", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemCustomUserId", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemDatabase", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemDatabaseIsSocialEnum", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemDatabaseProfileData", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemDatabaseProviderEnum", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemDatabaseUserId", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemEnterprise", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemEnterpriseIsSocialEnum", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemEnterpriseProfileData", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemEnterpriseProviderEnum", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemEnterpriseUserId", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemPasswordless", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemPasswordlessIsSocialEnum", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemPasswordlessProfileData", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemPasswordlessProviderEnum", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemPasswordlessUserId", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemSocial", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemSocialIsSocialEnum", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemSocialProfileData", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemSocialProviderEnum", - "EventStreamCloudEventUserDeletedObjectIdentitiesItemSocialUserId", - "EventStreamCloudEventUserDeletedObjectUserMetadata", - "EventStreamCloudEventUserDeletedPreviousObject", - "EventStreamCloudEventUserDeletedPreviousObjectAppMetadata", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItem", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustom", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomIsSocialEnum", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomProfileData", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomProviderEnum", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomUserId", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabase", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseIsSocialEnum", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseProfileData", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseProviderEnum", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseUserId", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterprise", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseIsSocialEnum", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseProfileData", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseProviderEnum", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseUserId", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordless", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessIsSocialEnum", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessProfileData", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessProviderEnum", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessUserId", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocial", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialIsSocialEnum", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProfileData", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum", - "EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialUserId", - "EventStreamCloudEventUserDeletedPreviousObjectUserMetadata", - "EventStreamCloudEventUserDeletedTypeEnum", - "EventStreamCloudEventUserUpdated", - "EventStreamCloudEventUserUpdatedCloudEvent", - "EventStreamCloudEventUserUpdatedCloudEventTypeEnum", - "EventStreamCloudEventUserUpdatedData", - "EventStreamCloudEventUserUpdatedObject", - "EventStreamCloudEventUserUpdatedObjectAppMetadata", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItem", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemCustom", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemCustomIsSocialEnum", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemCustomProfileData", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemCustomProviderEnum", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemCustomUserId", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemDatabase", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemDatabaseIsSocialEnum", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemDatabaseProfileData", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemDatabaseProviderEnum", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemDatabaseUserId", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemEnterprise", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemEnterpriseIsSocialEnum", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemEnterpriseProfileData", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemEnterpriseProviderEnum", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemEnterpriseUserId", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemPasswordless", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemPasswordlessIsSocialEnum", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemPasswordlessProfileData", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemPasswordlessProviderEnum", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemPasswordlessUserId", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemSocial", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemSocialIsSocialEnum", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemSocialProfileData", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemSocialProviderEnum", - "EventStreamCloudEventUserUpdatedObjectIdentitiesItemSocialUserId", - "EventStreamCloudEventUserUpdatedObjectUserMetadata", - "EventStreamCloudEventUserUpdatedPreviousObject", - "EventStreamCloudEventUserUpdatedPreviousObjectAppMetadata", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItem", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustom", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomIsSocialEnum", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomProfileData", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomProviderEnum", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomUserId", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabase", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseIsSocialEnum", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseProfileData", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseProviderEnum", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseUserId", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterprise", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseIsSocialEnum", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseProfileData", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseProviderEnum", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseUserId", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordless", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessIsSocialEnum", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessProfileData", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessProviderEnum", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessUserId", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocial", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialIsSocialEnum", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProfileData", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum", - "EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialUserId", - "EventStreamCloudEventUserUpdatedPreviousObjectUserMetadata", - "EventStreamCloudEventUserUpdatedTypeEnum", - "EventStreamDelivery", - "EventStreamDeliveryAttempt", - "EventStreamDeliveryEventTypeEnum", - "EventStreamDeliveryStatusEnum", - "EventStreamDestinationPatch", - "EventStreamEventBridgeAwsRegionEnum", - "EventStreamEventBridgeConfiguration", - "EventStreamEventBridgeDestination", - "EventStreamEventBridgeDestinationTypeEnum", - "EventStreamEventBridgeResponseContent", - "EventStreamEventTypeEnum", - "EventStreamResponseContent", - "EventStreamStatusEnum", - "EventStreamSubscribeEventsEventTypeEnum", - "EventStreamSubscribeEventsEventTypeParam", - "EventStreamSubscribeEventsResponseContent", - "EventStreamSubscribeEventsResponseContent_ConnectionCreated", - "EventStreamSubscribeEventsResponseContent_ConnectionDeleted", - "EventStreamSubscribeEventsResponseContent_ConnectionUpdated", - "EventStreamSubscribeEventsResponseContent_Error", - "EventStreamSubscribeEventsResponseContent_GroupCreated", - "EventStreamSubscribeEventsResponseContent_GroupDeleted", - "EventStreamSubscribeEventsResponseContent_GroupMemberAdded", - "EventStreamSubscribeEventsResponseContent_GroupMemberDeleted", - "EventStreamSubscribeEventsResponseContent_GroupRoleAssigned", - "EventStreamSubscribeEventsResponseContent_GroupRoleDeleted", - "EventStreamSubscribeEventsResponseContent_GroupUpdated", - "EventStreamSubscribeEventsResponseContent_OffsetOnly", - "EventStreamSubscribeEventsResponseContent_OrganizationConnectionAdded", - "EventStreamSubscribeEventsResponseContent_OrganizationConnectionRemoved", - "EventStreamSubscribeEventsResponseContent_OrganizationConnectionUpdated", - "EventStreamSubscribeEventsResponseContent_OrganizationCreated", - "EventStreamSubscribeEventsResponseContent_OrganizationDeleted", - "EventStreamSubscribeEventsResponseContent_OrganizationGroupRoleAssigned", - "EventStreamSubscribeEventsResponseContent_OrganizationGroupRoleDeleted", - "EventStreamSubscribeEventsResponseContent_OrganizationMemberAdded", - "EventStreamSubscribeEventsResponseContent_OrganizationMemberDeleted", - "EventStreamSubscribeEventsResponseContent_OrganizationMemberRoleAssigned", - "EventStreamSubscribeEventsResponseContent_OrganizationMemberRoleDeleted", - "EventStreamSubscribeEventsResponseContent_OrganizationUpdated", - "EventStreamSubscribeEventsResponseContent_UserCreated", - "EventStreamSubscribeEventsResponseContent_UserDeleted", - "EventStreamSubscribeEventsResponseContent_UserUpdated", - "EventStreamSubscription", - "EventStreamTestEventTypeEnum", - "EventStreamWebhookAuthorizationResponse", - "EventStreamWebhookBasicAuth", - "EventStreamWebhookBasicAuthMethodEnum", - "EventStreamWebhookBearerAuth", - "EventStreamWebhookBearerAuthMethodEnum", - "EventStreamWebhookConfiguration", - "EventStreamWebhookCustomHeaderAuth", - "EventStreamWebhookCustomHeaderAuthMethodEnum", - "EventStreamWebhookDestination", - "EventStreamWebhookDestinationTypeEnum", - "EventStreamWebhookResponseContent", - "ExperimentListItem", - "ExperimentStatusEnum", - "ExperimentTransitionStatusEnum", - "ExperimentValidationError", - "ExpressConfiguration", - "ExpressConfigurationOrNull", - "ExtensibilityEmailProviderCredentials", - "FeatureFlag", - "FeatureFlagConfigParam", - "FeatureFlagConfigParamTypeEnum", - "FeatureFlagConfigParams", - "FeatureFlagStatusEnum", - "FeatureFlagTypeEnum", - "FedCmLogin", - "FedCmLoginGoogle", - "FedCmLoginGooglePatch", - "FedCmLoginPatch", - "FlowAction", - "FlowActionActivecampaign", - "FlowActionActivecampaignListContacts", - "FlowActionActivecampaignListContactsAction", - "FlowActionActivecampaignListContactsParams", - "FlowActionActivecampaignListContactsType", - "FlowActionActivecampaignUpsertContact", - "FlowActionActivecampaignUpsertContactAction", - "FlowActionActivecampaignUpsertContactParams", - "FlowActionActivecampaignUpsertContactParamsCustomFields", - "FlowActionActivecampaignUpsertContactType", - "FlowActionAirtable", - "FlowActionAirtableCreateRecord", - "FlowActionAirtableCreateRecordAction", - "FlowActionAirtableCreateRecordParams", - "FlowActionAirtableCreateRecordParamsFields", - "FlowActionAirtableCreateRecordType", - "FlowActionAirtableListRecords", - "FlowActionAirtableListRecordsAction", - "FlowActionAirtableListRecordsParams", - "FlowActionAirtableListRecordsType", - "FlowActionAirtableUpdateRecord", - "FlowActionAirtableUpdateRecordAction", - "FlowActionAirtableUpdateRecordParams", - "FlowActionAirtableUpdateRecordParamsFields", - "FlowActionAirtableUpdateRecordType", - "FlowActionAuth0", - "FlowActionAuth0CreateUser", - "FlowActionAuth0CreateUserAction", - "FlowActionAuth0CreateUserParams", - "FlowActionAuth0CreateUserParamsPayload", - "FlowActionAuth0CreateUserType", - "FlowActionAuth0GetUser", - "FlowActionAuth0GetUserAction", - "FlowActionAuth0GetUserParams", - "FlowActionAuth0GetUserType", - "FlowActionAuth0MakeCall", - "FlowActionAuth0MakeCallAction", - "FlowActionAuth0MakeCallParams", - "FlowActionAuth0MakeCallParamsCustomVars", - "FlowActionAuth0MakeCallType", - "FlowActionAuth0SendEmail", - "FlowActionAuth0SendEmailAction", - "FlowActionAuth0SendEmailParams", - "FlowActionAuth0SendEmailParamsFrom", - "FlowActionAuth0SendEmailParamsFromEmail", - "FlowActionAuth0SendEmailParamsTo", - "FlowActionAuth0SendEmailType", - "FlowActionAuth0SendRequest", - "FlowActionAuth0SendRequestAction", - "FlowActionAuth0SendRequestParams", - "FlowActionAuth0SendRequestParamsCustomVars", - "FlowActionAuth0SendRequestParamsHeaders", - "FlowActionAuth0SendRequestParamsMethod", - "FlowActionAuth0SendRequestParamsPayload", - "FlowActionAuth0SendRequestParamsPayloadObject", - "FlowActionAuth0SendRequestParamsQueryParams", - "FlowActionAuth0SendRequestParamsQueryParamsValue", - "FlowActionAuth0SendRequestType", - "FlowActionAuth0SendSms", - "FlowActionAuth0SendSmsAction", - "FlowActionAuth0SendSmsParams", - "FlowActionAuth0SendSmsParamsCustomVars", - "FlowActionAuth0SendSmsType", - "FlowActionAuth0UpdateUser", - "FlowActionAuth0UpdateUserAction", - "FlowActionAuth0UpdateUserParams", - "FlowActionAuth0UpdateUserParamsChanges", - "FlowActionAuth0UpdateUserType", - "FlowActionBigquery", - "FlowActionBigqueryInsertRows", - "FlowActionBigqueryInsertRowsAction", - "FlowActionBigqueryInsertRowsParams", - "FlowActionBigqueryInsertRowsParamsData", - "FlowActionBigqueryInsertRowsType", - "FlowActionClearbit", - "FlowActionClearbitFindCompany", - "FlowActionClearbitFindCompanyAction", - "FlowActionClearbitFindCompanyParams", - "FlowActionClearbitFindCompanyType", - "FlowActionClearbitFindPerson", - "FlowActionClearbitFindPersonAction", - "FlowActionClearbitFindPersonParams", - "FlowActionClearbitFindPersonType", - "FlowActionEmail", - "FlowActionEmailVerifyEmail", - "FlowActionEmailVerifyEmailAction", - "FlowActionEmailVerifyEmailParams", - "FlowActionEmailVerifyEmailParamsRules", - "FlowActionEmailVerifyEmailType", - "FlowActionFlow", - "FlowActionFlowBooleanCondition", - "FlowActionFlowBooleanConditionAction", - "FlowActionFlowBooleanConditionParams", - "FlowActionFlowBooleanConditionType", - "FlowActionFlowDelayFlow", - "FlowActionFlowDelayFlowAction", - "FlowActionFlowDelayFlowParams", - "FlowActionFlowDelayFlowParamsNumber", - "FlowActionFlowDelayFlowParamsUnits", - "FlowActionFlowDelayFlowType", - "FlowActionFlowDoNothing", - "FlowActionFlowDoNothingAction", - "FlowActionFlowDoNothingParams", - "FlowActionFlowDoNothingType", - "FlowActionFlowErrorMessage", - "FlowActionFlowErrorMessageAction", - "FlowActionFlowErrorMessageParams", - "FlowActionFlowErrorMessageType", - "FlowActionFlowMapValue", - "FlowActionFlowMapValueAction", - "FlowActionFlowMapValueParams", - "FlowActionFlowMapValueParamsCases", - "FlowActionFlowMapValueParamsFallback", - "FlowActionFlowMapValueParamsFallbackObject", - "FlowActionFlowMapValueParamsInput", - "FlowActionFlowMapValueType", - "FlowActionFlowReturnJson", - "FlowActionFlowReturnJsonAction", - "FlowActionFlowReturnJsonParams", - "FlowActionFlowReturnJsonParamsPayload", - "FlowActionFlowReturnJsonParamsPayloadObject", - "FlowActionFlowReturnJsonType", - "FlowActionFlowStoreVars", - "FlowActionFlowStoreVarsAction", - "FlowActionFlowStoreVarsParams", - "FlowActionFlowStoreVarsParamsVars", - "FlowActionFlowStoreVarsType", - "FlowActionGoogleSheets", - "FlowActionGoogleSheetsAddRow", - "FlowActionGoogleSheetsAddRowAction", - "FlowActionGoogleSheetsAddRowParams", - "FlowActionGoogleSheetsAddRowParamsSheetId", - "FlowActionGoogleSheetsAddRowParamsValues", - "FlowActionGoogleSheetsAddRowType", - "FlowActionHttp", - "FlowActionHttpSendRequest", - "FlowActionHttpSendRequestAction", - "FlowActionHttpSendRequestParams", - "FlowActionHttpSendRequestParamsBasicAuth", - "FlowActionHttpSendRequestParamsContentType", - "FlowActionHttpSendRequestParamsHeaders", - "FlowActionHttpSendRequestParamsMethod", - "FlowActionHttpSendRequestParamsPayload", - "FlowActionHttpSendRequestParamsPayloadObject", - "FlowActionHttpSendRequestParamsQueryParams", - "FlowActionHttpSendRequestParamsQueryParamsValue", - "FlowActionHttpSendRequestType", - "FlowActionHubspot", - "FlowActionHubspotEnrollContact", - "FlowActionHubspotEnrollContactAction", - "FlowActionHubspotEnrollContactParams", - "FlowActionHubspotEnrollContactParamsWorkflowId", - "FlowActionHubspotEnrollContactType", - "FlowActionHubspotGetContact", - "FlowActionHubspotGetContactAction", - "FlowActionHubspotGetContactParams", - "FlowActionHubspotGetContactType", - "FlowActionHubspotUpsertContact", - "FlowActionHubspotUpsertContactAction", - "FlowActionHubspotUpsertContactParams", - "FlowActionHubspotUpsertContactParamsProperty", - "FlowActionHubspotUpsertContactType", - "FlowActionJson", - "FlowActionJsonCreateJson", - "FlowActionJsonCreateJsonAction", - "FlowActionJsonCreateJsonParams", - "FlowActionJsonCreateJsonParamsObject", - "FlowActionJsonCreateJsonType", - "FlowActionJsonParseJson", - "FlowActionJsonParseJsonAction", - "FlowActionJsonParseJsonParams", - "FlowActionJsonParseJsonType", - "FlowActionJsonSerializeJson", - "FlowActionJsonSerializeJsonAction", - "FlowActionJsonSerializeJsonParams", - "FlowActionJsonSerializeJsonParamsObject", - "FlowActionJsonSerializeJsonParamsObjectObject", - "FlowActionJsonSerializeJsonType", - "FlowActionJwt", - "FlowActionJwtDecodeJwt", - "FlowActionJwtDecodeJwtAction", - "FlowActionJwtDecodeJwtParams", - "FlowActionJwtDecodeJwtType", - "FlowActionJwtSignJwt", - "FlowActionJwtSignJwtAction", - "FlowActionJwtSignJwtParams", - "FlowActionJwtSignJwtParamsPayload", - "FlowActionJwtSignJwtType", - "FlowActionJwtVerifyJwt", - "FlowActionJwtVerifyJwtAction", - "FlowActionJwtVerifyJwtParams", - "FlowActionJwtVerifyJwtType", - "FlowActionMailchimp", - "FlowActionMailchimpUpsertMember", - "FlowActionMailchimpUpsertMemberAction", - "FlowActionMailchimpUpsertMemberParams", - "FlowActionMailchimpUpsertMemberParamsMember", - "FlowActionMailchimpUpsertMemberParamsMemberMergeFields", - "FlowActionMailchimpUpsertMemberType", - "FlowActionMailjet", - "FlowActionMailjetSendEmail", - "FlowActionMailjetSendEmailAction", - "FlowActionMailjetSendEmailParams", - "FlowActionMailjetSendEmailParamsContent", - "FlowActionMailjetSendEmailParamsTemplateId", - "FlowActionMailjetSendEmailType", - "FlowActionOtp", - "FlowActionOtpGenerateCode", - "FlowActionOtpGenerateCodeAction", - "FlowActionOtpGenerateCodeParams", - "FlowActionOtpGenerateCodeType", - "FlowActionOtpVerifyCode", - "FlowActionOtpVerifyCodeAction", - "FlowActionOtpVerifyCodeParams", - "FlowActionOtpVerifyCodeParamsCode", - "FlowActionOtpVerifyCodeType", - "FlowActionPipedrive", - "FlowActionPipedriveAddDeal", - "FlowActionPipedriveAddDealAction", - "FlowActionPipedriveAddDealParams", - "FlowActionPipedriveAddDealParamsFields", - "FlowActionPipedriveAddDealParamsOrganizationId", - "FlowActionPipedriveAddDealParamsPersonId", - "FlowActionPipedriveAddDealParamsStageId", - "FlowActionPipedriveAddDealParamsUserId", - "FlowActionPipedriveAddDealType", - "FlowActionPipedriveAddOrganization", - "FlowActionPipedriveAddOrganizationAction", - "FlowActionPipedriveAddOrganizationParams", - "FlowActionPipedriveAddOrganizationParamsFields", - "FlowActionPipedriveAddOrganizationParamsOwnerId", - "FlowActionPipedriveAddOrganizationType", - "FlowActionPipedriveAddPerson", - "FlowActionPipedriveAddPersonAction", - "FlowActionPipedriveAddPersonParams", - "FlowActionPipedriveAddPersonParamsFields", - "FlowActionPipedriveAddPersonParamsOrganizationId", - "FlowActionPipedriveAddPersonParamsOwnerId", - "FlowActionPipedriveAddPersonType", - "FlowActionSalesforce", - "FlowActionSalesforceCreateLead", - "FlowActionSalesforceCreateLeadAction", - "FlowActionSalesforceCreateLeadParams", - "FlowActionSalesforceCreateLeadParamsPayload", - "FlowActionSalesforceCreateLeadType", - "FlowActionSalesforceGetLead", - "FlowActionSalesforceGetLeadAction", - "FlowActionSalesforceGetLeadParams", - "FlowActionSalesforceGetLeadType", - "FlowActionSalesforceSearchLeads", - "FlowActionSalesforceSearchLeadsAction", - "FlowActionSalesforceSearchLeadsParams", - "FlowActionSalesforceSearchLeadsParamsSearchField", - "FlowActionSalesforceSearchLeadsType", - "FlowActionSalesforceUpdateLead", - "FlowActionSalesforceUpdateLeadAction", - "FlowActionSalesforceUpdateLeadParams", - "FlowActionSalesforceUpdateLeadParamsPayload", - "FlowActionSalesforceUpdateLeadType", - "FlowActionSendgrid", - "FlowActionSendgridSendEmail", - "FlowActionSendgridSendEmailAction", - "FlowActionSendgridSendEmailParams", - "FlowActionSendgridSendEmailParamsPerson", - "FlowActionSendgridSendEmailType", - "FlowActionSlack", - "FlowActionSlackPostMessage", - "FlowActionSlackPostMessageAction", - "FlowActionSlackPostMessageParams", - "FlowActionSlackPostMessageParamsAttachment", - "FlowActionSlackPostMessageParamsAttachmentColor", - "FlowActionSlackPostMessageParamsAttachmentField", - "FlowActionSlackPostMessageType", - "FlowActionStripe", - "FlowActionStripeAddTaxId", - "FlowActionStripeAddTaxIdAction", - "FlowActionStripeAddTaxIdParams", - "FlowActionStripeAddTaxIdType", - "FlowActionStripeAddress", - "FlowActionStripeCreateCustomer", - "FlowActionStripeCreateCustomerAction", - "FlowActionStripeCreateCustomerParams", - "FlowActionStripeCreateCustomerType", - "FlowActionStripeCreatePortalSession", - "FlowActionStripeCreatePortalSessionAction", - "FlowActionStripeCreatePortalSessionParams", - "FlowActionStripeCreatePortalSessionType", - "FlowActionStripeDeleteTaxId", - "FlowActionStripeDeleteTaxIdAction", - "FlowActionStripeDeleteTaxIdParams", - "FlowActionStripeDeleteTaxIdType", - "FlowActionStripeFindCustomers", - "FlowActionStripeFindCustomersAction", - "FlowActionStripeFindCustomersParams", - "FlowActionStripeFindCustomersType", - "FlowActionStripeGetCustomer", - "FlowActionStripeGetCustomerAction", - "FlowActionStripeGetCustomerParams", - "FlowActionStripeGetCustomerType", - "FlowActionStripeMetadata", - "FlowActionStripeTaxId", - "FlowActionStripeUpdateCustomer", - "FlowActionStripeUpdateCustomerAction", - "FlowActionStripeUpdateCustomerParams", - "FlowActionStripeUpdateCustomerType", - "FlowActionTelegram", - "FlowActionTelegramSendMessage", - "FlowActionTelegramSendMessageAction", - "FlowActionTelegramSendMessageParams", - "FlowActionTelegramSendMessageType", - "FlowActionTwilio", - "FlowActionTwilioMakeCall", - "FlowActionTwilioMakeCallAction", - "FlowActionTwilioMakeCallParams", - "FlowActionTwilioMakeCallType", - "FlowActionTwilioSendSms", - "FlowActionTwilioSendSmsAction", - "FlowActionTwilioSendSmsParams", - "FlowActionTwilioSendSmsType", - "FlowActionWhatsapp", - "FlowActionWhatsappSendMessage", - "FlowActionWhatsappSendMessageAction", - "FlowActionWhatsappSendMessageParams", - "FlowActionWhatsappSendMessageParamsPayload", - "FlowActionWhatsappSendMessageParamsPayloadObject", - "FlowActionWhatsappSendMessageParamsType", - "FlowActionWhatsappSendMessageType", - "FlowActionXml", - "FlowActionXmlParseXml", - "FlowActionXmlParseXmlAction", - "FlowActionXmlParseXmlParams", - "FlowActionXmlParseXmlType", - "FlowActionXmlSerializeXml", - "FlowActionXmlSerializeXmlAction", - "FlowActionXmlSerializeXmlParams", - "FlowActionXmlSerializeXmlParamsObject", - "FlowActionXmlSerializeXmlParamsObjectObject", - "FlowActionXmlSerializeXmlType", - "FlowActionZapier", - "FlowActionZapierTriggerWebhook", - "FlowActionZapierTriggerWebhookAction", - "FlowActionZapierTriggerWebhookParams", - "FlowActionZapierTriggerWebhookParamsMethod", - "FlowActionZapierTriggerWebhookType", - "FlowExecutionDebug", - "FlowExecutionSummary", - "FlowSummary", - "FlowsVaultConnectioSetupApiKey", - "FlowsVaultConnectioSetupApiKeyWithBaseUrl", - "FlowsVaultConnectioSetupBigqueryOauthJwt", - "FlowsVaultConnectioSetupHttpBearer", - "FlowsVaultConnectioSetupJwt", - "FlowsVaultConnectioSetupJwtAlgorithmEnum", - "FlowsVaultConnectioSetupMailjetApiKey", - "FlowsVaultConnectioSetupOauthApp", - "FlowsVaultConnectioSetupOauthCode", - "FlowsVaultConnectioSetupSecretApiKey", - "FlowsVaultConnectioSetupStripeKeyPair", - "FlowsVaultConnectioSetupToken", - "FlowsVaultConnectioSetupTwilioApiKey", - "FlowsVaultConnectioSetupTypeApiKeyEnum", - "FlowsVaultConnectioSetupTypeBearerEnum", - "FlowsVaultConnectioSetupTypeJwtEnum", - "FlowsVaultConnectioSetupTypeKeyPairEnum", - "FlowsVaultConnectioSetupTypeOauthAppEnum", - "FlowsVaultConnectioSetupTypeOauthCodeEnum", - "FlowsVaultConnectioSetupTypeOauthJwtEnum", - "FlowsVaultConnectioSetupTypeTokenEnum", - "FlowsVaultConnectioSetupTypeWebhookEnum", - "FlowsVaultConnectioSetupWebhook", - "FlowsVaultConnectionAppIdActivecampaignEnum", - "FlowsVaultConnectionAppIdAirtableEnum", - "FlowsVaultConnectionAppIdAuth0Enum", - "FlowsVaultConnectionAppIdBigqueryEnum", - "FlowsVaultConnectionAppIdClearbitEnum", - "FlowsVaultConnectionAppIdDocusignEnum", - "FlowsVaultConnectionAppIdGoogleSheetsEnum", - "FlowsVaultConnectionAppIdHttpEnum", - "FlowsVaultConnectionAppIdHubspotEnum", - "FlowsVaultConnectionAppIdJwtEnum", - "FlowsVaultConnectionAppIdMailchimpEnum", - "FlowsVaultConnectionAppIdMailjetEnum", - "FlowsVaultConnectionAppIdPipedriveEnum", - "FlowsVaultConnectionAppIdSalesforceEnum", - "FlowsVaultConnectionAppIdSendgridEnum", - "FlowsVaultConnectionAppIdSlackEnum", - "FlowsVaultConnectionAppIdStripeEnum", - "FlowsVaultConnectionAppIdTelegramEnum", - "FlowsVaultConnectionAppIdTwilioEnum", - "FlowsVaultConnectionAppIdWhatsappEnum", - "FlowsVaultConnectionAppIdZapierEnum", - "FlowsVaultConnectionHttpApiKeySetup", - "FlowsVaultConnectionHttpApiKeySetupInEnum", - "FlowsVaultConnectionHttpBasicAuthSetup", - "FlowsVaultConnectionHttpOauthClientCredentialsSetup", - "FlowsVaultConnectionSetupTypeApiKeyEnum", - "FlowsVaultConnectionSetupTypeBasicAuthEnum", - "FlowsVaultConnectionSetupTypeOauthClientCredentialsEnum", - "FlowsVaultConnectionSummary", - "ForbiddenSchema", - "ForbiddenSchemaError", - "FormBlock", - "FormBlockDivider", - "FormBlockDividerConfig", - "FormBlockHtml", - "FormBlockHtmlConfig", - "FormBlockImage", - "FormBlockImageConfig", - "FormBlockImageConfigPositionEnum", - "FormBlockJumpButton", - "FormBlockJumpButtonConfig", - "FormBlockJumpButtonConfigStyle", - "FormBlockNextButton", - "FormBlockNextButtonConfig", - "FormBlockPreviousButton", - "FormBlockPreviousButtonConfig", - "FormBlockResendButton", - "FormBlockResendButtonConfig", - "FormBlockResendButtonConfigTextAlignmentEnum", - "FormBlockRichText", - "FormBlockRichTextConfig", - "FormBlockTypeDividerConst", - "FormBlockTypeHtmlConst", - "FormBlockTypeImageConst", - "FormBlockTypeJumpButtonConst", - "FormBlockTypeNextButtonConst", - "FormBlockTypePreviousButtonConst", - "FormBlockTypeResendButtonConst", - "FormBlockTypeRichTextConst", - "FormComponent", - "FormComponentCategoryBlockConst", - "FormComponentCategoryFieldConst", - "FormComponentCategoryWidgetConst", - "FormEndingNode", - "FormEndingNodeAfterSubmit", - "FormEndingNodeId", - "FormEndingNodeNullable", - "FormEndingNodeRedirection", - "FormEndingNodeResumeFlowTrueConst", - "FormField", - "FormFieldBoolean", - "FormFieldBooleanConfig", - "FormFieldBooleanConfigOptions", - "FormFieldCards", - "FormFieldCardsConfig", - "FormFieldCardsConfigOption", - "FormFieldChoice", - "FormFieldChoiceConfig", - "FormFieldChoiceConfigAllowOther", - "FormFieldChoiceConfigAllowOtherEnabledTrueEnum", - "FormFieldChoiceConfigOption", - "FormFieldCustom", - "FormFieldCustomConfig", - "FormFieldCustomConfigParams", - "FormFieldCustomConfigSchema", - "FormFieldDate", - "FormFieldDateConfig", - "FormFieldDateConfigFormatEnum", - "FormFieldDropdown", - "FormFieldDropdownConfig", - "FormFieldDropdownConfigOption", - "FormFieldEmail", - "FormFieldEmailConfig", - "FormFieldFile", - "FormFieldFileConfig", - "FormFieldFileConfigCategoryEnum", - "FormFieldFileConfigStorage", - "FormFieldFileConfigStorageTypeEnum", - "FormFieldLegal", - "FormFieldLegalConfig", - "FormFieldNumber", - "FormFieldNumberConfig", - "FormFieldPassword", - "FormFieldPasswordConfig", - "FormFieldPasswordConfigHashEnum", - "FormFieldPayment", - "FormFieldPaymentConfig", - "FormFieldPaymentConfigCharge", - "FormFieldPaymentConfigChargeOneOff", - "FormFieldPaymentConfigChargeOneOffCurrencyEnum", - "FormFieldPaymentConfigChargeOneOffOneOff", - "FormFieldPaymentConfigChargeOneOffOneOffAmount", - "FormFieldPaymentConfigChargeSubscription", - "FormFieldPaymentConfigChargeTypeOneOffConst", - "FormFieldPaymentConfigChargeTypeSubscriptionConst", - "FormFieldPaymentConfigCredentials", - "FormFieldPaymentConfigCustomer", - "FormFieldPaymentConfigFieldProperties", - "FormFieldPaymentConfigFields", - "FormFieldPaymentConfigProviderEnum", - "FormFieldPaymentConfigSubscription", - "FormFieldSocial", - "FormFieldSocialConfig", - "FormFieldTel", - "FormFieldTelConfig", - "FormFieldTelConfigStrings", - "FormFieldText", - "FormFieldTextConfig", - "FormFieldTypeBooleanConst", - "FormFieldTypeCardsConst", - "FormFieldTypeChoiceConst", - "FormFieldTypeCustomConst", - "FormFieldTypeDateConst", - "FormFieldTypeDropdownConst", - "FormFieldTypeEmailConst", - "FormFieldTypeFileConst", - "FormFieldTypeLegalConst", - "FormFieldTypeNumberConst", - "FormFieldTypePasswordConst", - "FormFieldTypePaymentConst", - "FormFieldTypeSocialConst", - "FormFieldTypeTelConst", - "FormFieldTypeTextConst", - "FormFieldTypeUrlConst", - "FormFieldUrl", - "FormFieldUrlConfig", - "FormFlow", - "FormFlowConfig", - "FormHiddenField", - "FormLanguages", - "FormLanguagesNullable", - "FormMessages", - "FormMessagesCustom", - "FormMessagesError", - "FormMessagesNullable", - "FormNode", - "FormNodeCoordinates", - "FormNodeList", - "FormNodeListNullable", - "FormNodePointer", - "FormNodeTypeFlowConst", - "FormNodeTypeRouterConst", - "FormNodeTypeStepConst", - "FormRouter", - "FormRouterConfig", - "FormRouterRule", - "FormStartNode", - "FormStartNodeNullable", - "FormStep", - "FormStepComponentList", - "FormStepConfig", - "FormStyle", - "FormStyleNullable", - "FormSummary", - "FormTranslations", - "FormTranslationsNullable", - "FormWidget", - "FormWidgetAuth0VerifiableCredentials", - "FormWidgetAuth0VerifiableCredentialsConfig", - "FormWidgetGMapsAddress", - "FormWidgetGMapsAddressConfig", - "FormWidgetRecaptcha", - "FormWidgetRecaptchaConfig", - "FormWidgetTypeAuth0VerifiableCredentialsConst", - "FormWidgetTypeGMapsAddressConst", - "FormWidgetTypeRecaptchaConst", - "FormsRequestParametersHydrateEnum", - "GetActionExecutionResponseContent", - "GetActionModuleActionsResponseContent", - "GetActionModuleResponseContent", - "GetActionModuleVersionResponseContent", - "GetActionModuleVersionsResponseContent", - "GetActionModulesResponseContent", - "GetActionResponseContent", - "GetActionVersionResponseContent", - "GetActiveUsersCountStatsResponseContent", - "GetAculResponseContent", - "GetAllKeysNetworkAclsResponseContent", - "GetAttackProtectionCaptchaResponseContent", - "GetBotDetectionSettingsResponseContent", - "GetBrandingDefaultThemeResponseContent", - "GetBrandingPhoneProviderResponseContent", - "GetBrandingResponseContent", - "GetBrandingThemeResponseContent", - "GetBreachedPasswordDetectionSettingsResponseContent", - "GetBruteForceSettingsResponseContent", - "GetClientCredentialResponseContent", - "GetClientGrantResponseContent", - "GetClientResponseContent", - "GetConnectionEnabledClientsResponseContent", - "GetConnectionProfileResponseContent", - "GetConnectionProfileTemplateResponseContent", - "GetConnectionResponseContent", - "GetCustomDomainResponseContent", - "GetCustomSigningKeysResponseContent", - "GetCustomTextsByLanguageResponseContent", - "GetDefaultCanonicalDomainResponseContent", - "GetDefaultCustomDomainResponseContent", - "GetDefaultDomainResponseContent", - "GetDirectoryProvisioningDefaultMappingResponseContent", - "GetDirectoryProvisioningResponseContent", - "GetEmailFactorSettingsResponseContent", - "GetEmailProviderResponseContent", - "GetEmailTemplateResponseContent", - "GetEncryptionKeyResponseContent", - "GetEventStreamDeliveryHistoryResponseContent", - "GetEventStreamResponseContent", - "GetExperimentResponseContent", - "GetFeatureFlagResponseContent", - "GetFlowExecutionRequestParametersHydrateEnum", - "GetFlowExecutionResponseContent", - "GetFlowRequestParametersHydrateEnum", - "GetFlowResponseContent", - "GetFlowsVaultConnectionResponseContent", - "GetFormResponseContent", - "GetGroupMembersResponseContent", - "GetGroupResponseContent", - "GetGuardianEnrollmentResponseContent", - "GetGuardianFactorDuoSettingsResponseContent", - "GetGuardianFactorPhoneMessageTypesResponseContent", - "GetGuardianFactorPhoneTemplatesResponseContent", - "GetGuardianFactorSmsTemplatesResponseContent", - "GetGuardianFactorsProviderApnsResponseContent", - "GetGuardianFactorsProviderPhoneResponseContent", - "GetGuardianFactorsProviderPhoneTwilioResponseContent", - "GetGuardianFactorsProviderPushNotificationResponseContent", - "GetGuardianFactorsProviderSmsResponseContent", - "GetGuardianFactorsProviderSmsTwilioResponseContent", - "GetGuardianFactorsProviderSnsResponseContent", - "GetGuardianSettingsResponseContent", - "GetHookResponseContent", - "GetHookSecretResponseContent", - "GetJobErrorResponseContent", - "GetJobGenericErrorResponseContent", - "GetJobImportUserError", - "GetJobResponseContent", - "GetJobSummary", - "GetJobUserError", - "GetLogResponseContent", - "GetLogStreamResponseContent", - "GetNetworkAclsResponseContent", - "GetOrganizationAllConnectionResponseContent", - "GetOrganizationByNameResponseContent", - "GetOrganizationClientResponseContent", - "GetOrganizationConnectionResponseContent", - "GetOrganizationDiscoveryDomainByNameResponseContent", - "GetOrganizationDiscoveryDomainResponseContent", - "GetOrganizationInvitationResponseContent", - "GetOrganizationResponseContent", - "GetPartialsResponseContent", - "GetPhoneFactorSettingsResponseContent", - "GetPhoneProviderProtectionResponseContent", - "GetPhoneTemplateResponseContent", - "GetRateLimitPolicyResponseContent", - "GetRefreshTokenResponseContent", - "GetRefreshTokensPaginatedResponseContent", - "GetResourceServerResponseContent", - "GetRiskAssessmentsSettingsNewDeviceResponseContent", - "GetRiskAssessmentsSettingsResponseContent", - "GetRoleResponseContent", - "GetRuleResponseContent", - "GetScimConfigurationDefaultMappingResponseContent", - "GetScimConfigurationResponseContent", - "GetScimTokensResponseContent", - "GetSegmentResponseContent", - "GetSelfServiceProfileResponseContent", - "GetSessionResponseContent", - "GetSettingsResponseContent", - "GetSigningKeysResponseContent", - "GetSupplementalSignalsResponseContent", - "GetSuspiciousIpThrottlingSettingsResponseContent", - "GetTenantSettingsResponseContent", - "GetTokenExchangeProfileResponseContent", - "GetUniversalLoginTemplate", - "GetUniversalLoginTemplateResponseContent", - "GetUserAttributeProfileResponseContent", - "GetUserAttributeProfileTemplateResponseContent", - "GetUserAuthenticationMethodResponseContent", - "GetUserGroupsPaginatedResponseContent", - "GetUserResponseContent", - "GetVariationResponseContent", - "GetVerifiableCredentialTemplateResponseContent", - "GoogleAccountLinkingConfiguration", - "GoogleAccountLinkingConfigurationCreate", - "GoogleAccountLinkingConfigurationOrNull", - "Group", - "GroupMember", - "GroupMemberTypeEnum", - "GroupTypeEnum", - "GuardianEnrollmentDate", - "GuardianEnrollmentFactorEnum", - "GuardianEnrollmentStatus", - "GuardianFactor", - "GuardianFactorNameEnum", - "GuardianFactorPhoneFactorMessageTypeEnum", - "GuardianFactorSettings", - "GuardianFactorsProviderPushNotificationProviderDataEnum", - "GuardianFactorsProviderSmsProviderEnum", - "Hook", - "HookDependencies", - "HookTriggerIdEnum", - "HttpCustomHeader", - "Identity", - "IdentityAssertionAuthorizationGrant", - "IdentityProviderEnum", - "IdentityProviderOnlyAuth0Enum", - "ImportEncryptionKeyResponseContent", - "IncludeUserProfileSizeHeaderEnum", - "Integration", - "IntegrationFeatureTypeEnum", - "IntegrationRelease", - "IntegrationRequiredParam", - "IntegrationRequiredParamOption", - "IntegrationRequiredParamTypeEnum", - "IntegrationSemVer", - "InternalServerErrorBody", - "InternalServerErrorBodyError", - "JobFileFormatEnum", - "LinkedClientConfiguration", - "ListActionBindingsPaginatedResponseContent", - "ListActionTriggersResponseContent", - "ListActionVersionsPaginatedResponseContent", - "ListActionsPaginatedResponseContent", - "ListAculsOffsetPaginatedResponseContent", - "ListAculsResponseContentItem", - "ListAgentsResponseContent", - "ListBrandingPhoneProvidersResponseContent", - "ListClientConnectionsResponseContent", - "ListClientGrantOrganizationsPaginatedResponseContent", - "ListClientGrantPaginatedResponseContent", - "ListClientProfilesPaginatedResponseContent", - "ListClientsOffsetPaginatedResponseContent", - "ListConnectionProfileTemplateResponseContent", - "ListConnectionProfilesPaginatedResponseContent", - "ListConnectionsCheckpointPaginatedResponseContent", - "ListCustomDomainsResponseContent", - "ListDeviceCredentialsOffsetPaginatedResponseContent", - "ListDirectoryProvisioningsResponseContent", - "ListEncryptionKeyOffsetPaginatedResponseContent", - "ListEventStreamDeliveriesResponseContent", - "ListEventStreamsResponseContent", - "ListExperimentsResponseContent", - "ListFeatureFlagsResponseContent", - "ListFlowExecutionsPaginatedResponseContent", - "ListFlowsOffsetPaginatedResponseContent", - "ListFlowsRequestParametersHydrateEnum", - "ListFlowsVaultConnectionsOffsetPaginatedResponseContent", - "ListFormsOffsetPaginatedResponseContent", - "ListGroupRolesResponseContent", - "ListGroupsPaginatedResponseContent", - "ListGuardianPoliciesResponseContent", - "ListHooksOffsetPaginatedResponseContent", - "ListLogOffsetPaginatedResponseContent", - "ListNetworkAclsOffsetPaginatedResponseContent", - "ListOrganizationAllConnectionsOffsetPaginatedResponseContent", - "ListOrganizationClientGrantsOffsetPaginatedResponseContent", - "ListOrganizationClientsResponseContent", - "ListOrganizationConnectionsOffsetPaginatedResponseContent", - "ListOrganizationDiscoveryDomainsResponseContent", - "ListOrganizationGroupRolesResponseContent", - "ListOrganizationGroupsResponseContent", - "ListOrganizationInvitationsOffsetPaginatedResponseContent", - "ListOrganizationMemberEffectiveRolesResponseContent", - "ListOrganizationMemberRoleSourceGroupsResponseContent", - "ListOrganizationMemberRolesOffsetPaginatedResponseContent", - "ListOrganizationMembersPaginatedResponseContent", - "ListOrganizationRoleGroupsResponseContent", - "ListOrganizationRoleMembersResponseContent", - "ListOrganizationsPaginatedResponseContent", - "ListPhoneTemplatesResponseContent", - "ListPortalsResponseContent", - "ListRateLimitPoliciesPaginatedResponseContent", - "ListRefreshTokensPaginatedResponseContent", - "ListResourceServerOffsetPaginatedResponseContent", - "ListRoleGroupsResponseContent", - "ListRolePermissionsOffsetPaginatedResponseContent", - "ListRoleUsersPaginatedResponseContent", - "ListRolesOffsetPaginatedResponseContent", - "ListRulesOffsetPaginatedResponseContent", - "ListScimConfigurationsResponseContent", - "ListSegmentsResponseContent", - "ListSelfServiceProfileCustomTextResponseContent", - "ListSelfServiceProfilesPaginatedResponseContent", - "ListSynchronizedGroupsResponseContent", - "ListTokenExchangeProfileResponseContent", - "ListUserAttributeProfileTemplateResponseContent", - "ListUserAttributeProfilesPaginatedResponseContent", - "ListUserAuthenticationMethodsOffsetPaginatedResponseContent", - "ListUserBlocksByIdentifierResponseContent", - "ListUserBlocksResponseContent", - "ListUserConnectedAccountsResponseContent", - "ListUserConsentSigningKeysResponseContent", - "ListUserEffectivePermissionRoleSourcesResponseContent", - "ListUserEffectivePermissionsResponseContent", - "ListUserEffectiveRolesResponseContent", - "ListUserGrantsOffsetPaginatedResponseContent", - "ListUserOrganizationsOffsetPaginatedResponseContent", - "ListUserPermissionsOffsetPaginatedResponseContent", - "ListUserRoleSourceGroupsResponseContent", - "ListUserRolesOffsetPaginatedResponseContent", - "ListUserSessionsPaginatedResponseContent", - "ListUsersOffsetPaginatedResponseContent", - "ListVariationsResponseContent", - "ListVerifiableCredentialTemplatesPaginatedResponseContent", - "Log", - "LogDate", - "LogDateObject", - "LogDetails", - "LogLocationInfo", - "LogSecurityContext", - "LogStreamDatadogEnum", - "LogStreamDatadogRegionEnum", - "LogStreamDatadogResponseSchema", - "LogStreamDatadogSink", - "LogStreamEventBridgeEnum", - "LogStreamEventBridgeResponseSchema", - "LogStreamEventBridgeSink", - "LogStreamEventBridgeSinkRegionEnum", - "LogStreamEventGridEnum", - "LogStreamEventGridRegionEnum", - "LogStreamEventGridResponseSchema", - "LogStreamEventGridSink", - "LogStreamFilter", - "LogStreamFilterGroupNameEnum", - "LogStreamFilterTypeEnum", - "LogStreamHttpContentFormatEnum", - "LogStreamHttpEnum", - "LogStreamHttpResponseSchema", - "LogStreamHttpSink", - "LogStreamMixpanelEnum", - "LogStreamMixpanelRegionEnum", - "LogStreamMixpanelResponseSchema", - "LogStreamMixpanelSink", - "LogStreamMixpanelSinkPatch", - "LogStreamPiiAlgorithmEnum", - "LogStreamPiiConfig", - "LogStreamPiiLogFieldsEnum", - "LogStreamPiiMethodEnum", - "LogStreamResponseSchema", - "LogStreamSegmentEnum", - "LogStreamSegmentResponseSchema", - "LogStreamSegmentSink", - "LogStreamSegmentSinkWriteKey", - "LogStreamSinkPatch", - "LogStreamSplunkEnum", - "LogStreamSplunkResponseSchema", - "LogStreamSplunkSink", - "LogStreamStatusEnum", - "LogStreamSumoEnum", - "LogStreamSumoResponseSchema", - "LogStreamSumoSink", - "MdlPresentationProperties", - "MdlPresentationRequest", - "MdlPresentationRequestProperties", - "MfaPolicyEnum", - "NativeSocialLogin", - "NativeSocialLoginApple", - "NativeSocialLoginApplePatch", - "NativeSocialLoginFacebook", - "NativeSocialLoginFacebookPatch", - "NativeSocialLoginGoogle", - "NativeSocialLoginGooglePatch", - "NativeSocialLoginPatch", - "NetworkAclAction", - "NetworkAclActionAllowEnum", - "NetworkAclActionBlockEnum", - "NetworkAclActionLogEnum", - "NetworkAclActionRedirectEnum", - "NetworkAclHttpMessageSignature", - "NetworkAclHttpMessageSignatureKey", - "NetworkAclHttpMessageSignatureKeys", - "NetworkAclKey", - "NetworkAclKeyAlgorithmEnum", - "NetworkAclMatch", - "NetworkAclMatchConnectingIpv4Cidr", - "NetworkAclMatchConnectingIpv6Cidr", - "NetworkAclMatchIpv4Cidr", - "NetworkAclMatchIpv6Cidr", - "NetworkAclRule", - "NetworkAclRuleMatchAllEnum", - "NetworkAclRuleScopeEnum", - "NetworkAclsResponseContent", - "NotFoundErrorBody", - "NotFoundErrorBodyError", - "NotFoundSchema", - "NotFoundSchemaError", - "OauthScope", - "Organization", - "OrganizationAccessLevelEnum", - "OrganizationAccessLevelEnumWithNull", - "OrganizationAllConnectionPost", - "OrganizationBranding", - "OrganizationBrandingColors", - "OrganizationClient", - "OrganizationClientAssociation", - "OrganizationClientGrant", - "OrganizationClientMetadata", - "OrganizationClientMetadataOrganizationUsageEnum", - "OrganizationConnection", - "OrganizationConnectionInformation", - "OrganizationDiscoveryDomain", - "OrganizationDiscoveryDomainStatus", - "OrganizationEnabledConnection", - "OrganizationInvitation", - "OrganizationInvitationInvitee", - "OrganizationInvitationInviter", - "OrganizationMember", - "OrganizationMemberAccessLevelEnum", - "OrganizationMemberAccessLevelEnumWithNull", - "OrganizationMemberEffectiveRole", - "OrganizationMemberEffectiveRoleSource", - "OrganizationMemberRole", - "OrganizationMetadata", - "OrganizationSortFieldEnum", - "OrganizationThirdPartyClientAccessEnum", - "OrganizationUsageEnum", - "PageComponent", - "PageComponentAuth0Form", - "PageComponentAuth0FormConfig", - "PageComponentAuth0MediaImage", - "PageComponentAuth0MediaImageConfig", - "PageComponentAuth0MyAccountMfaManagement", - "PageComponentAuth0MyAccountMfaManagementConfig", - "PageComponentAuth0MyAccountPasskeyManagement", - "PageComponentAuth0MyAccountPasskeyManagementConfig", - "PageComponentAuth0MyOrganizationDetailsEdit", - "PageComponentAuth0MyOrganizationDetailsEditConfig", - "PageComponentAuth0MyOrganizationDomainTable", - "PageComponentAuth0MyOrganizationDomainTableConfig", - "PageComponentAuth0MyOrganizationMemberManagement", - "PageComponentAuth0MyOrganizationMemberManagementConfig", - "PageComponentAuth0StructureSection", - "PageComponentAuth0StructureSectionConfig", - "PageComponentAuth0StructureSectionVariantEnum", - "PageComponentAuth0StructureSeparator", - "PageComponentAuth0StructureSeparatorConfig", - "PageComponentAuth0StructureSeparatorVariantEnum", - "PageComponentAuth0TypographyHeading", - "PageComponentAuth0TypographyHeadingConfig", - "PageComponentAuth0TypographyRichText", - "PageComponentAuth0TypographyRichTextConfig", - "PageComponentNoChildren", - "PageComponentNoChildren_PageComponentAuth0Form", - "PageComponentNoChildren_PageComponentAuth0MediaImage", - "PageComponentNoChildren_PageComponentAuth0MyAccountMfaManagement", - "PageComponentNoChildren_PageComponentAuth0MyAccountPasskeyManagement", - "PageComponentNoChildren_PageComponentAuth0MyOrganizationDetailsEdit", - "PageComponentNoChildren_PageComponentAuth0MyOrganizationDomainTable", - "PageComponentNoChildren_PageComponentAuth0MyOrganizationMemberManagement", - "PageComponentNoChildren_PageComponentAuth0StructureSeparator", - "PageComponentNoChildren_PageComponentAuth0TypographyHeading", - "PageComponentNoChildren_PageComponentAuth0TypographyRichText", - "PageComponent_PageComponentAuth0Form", - "PageComponent_PageComponentAuth0MediaImage", - "PageComponent_PageComponentAuth0MyAccountMfaManagement", - "PageComponent_PageComponentAuth0MyAccountPasskeyManagement", - "PageComponent_PageComponentAuth0MyOrganizationDetailsEdit", - "PageComponent_PageComponentAuth0MyOrganizationDomainTable", - "PageComponent_PageComponentAuth0MyOrganizationMemberManagement", - "PageComponent_PageComponentAuth0StructureSection", - "PageComponent_PageComponentAuth0StructureSeparator", - "PageComponent_PageComponentAuth0TypographyHeading", - "PageComponent_PageComponentAuth0TypographyRichText", - "PageSlug", - "PartialGroupsEnum", - "PartialPhoneTemplateContent", - "PasswordCharacterTypeEnum", - "PasswordCharacterTypeRulePolicyEnum", - "PasswordDefaultDictionariesEnum", - "PasswordDictionaryMatchTypeEnum", - "PasswordIdenticalCharactersPolicyEnum", - "PasswordMaxLengthExceededPolicyEnum", - "PasswordSequentialCharactersPolicyEnum", - "PatchClientCredentialResponseContent", - "PatchPhoneProviderProtectionResponseContent", - "PatchRateLimitPolicyConfigurationRequestContent", - "PatchRateLimitPolicyConfigurationRequestContentAction", - "PatchRateLimitPolicyConfigurationRequestContentActionAction", - "PatchRateLimitPolicyConfigurationRequestContentOne", - "PatchRateLimitPolicyConfigurationRequestContentOneAction", - "PatchRateLimitPolicyConfigurationRequestContentZero", - "PatchRateLimitPolicyConfigurationRequestContentZeroAction", - "PatchSupplementalSignalsResponseContent", - "PermissionRequestPayload", - "PermissionsResponsePayload", - "PhoneAttribute", - "PhoneAttributeIdentifier", - "PhoneProviderChannelEnum", - "PhoneProviderConfiguration", - "PhoneProviderCredentials", - "PhoneProviderDeliveryMethodEnum", - "PhoneProviderNameEnum", - "PhoneProviderProtectionBackoffStrategyEnum", - "PhoneProviderSchemaMasked", - "PhoneTemplate", - "PhoneTemplateBody", - "PhoneTemplateContent", - "PhoneTemplateNotificationTypeEnum", - "Portal", - "PortalClientSecretPost", - "PortalClientSecretPostRequest", - "PortalClientSecretPostRequestTokenEndpointAuthMethod", - "PortalClientSecretPostTokenEndpointAuthMethod", - "PortalCustomCode", - "PortalCustomCodeNullable", - "PortalDateTime", - "PortalId", - "PortalName", - "PortalNavigation", - "PortalNavigationNullable", - "PortalPage", - "PortalPagesByType", - "PortalPagesByTypeNullable", - "PortalSlug", - "PortalSummary", - "Position", - "PostClientCredentialResponseContent", - "PostConnectionKeysAlgEnum", - "PostConnectionKeysRequestContent", - "PostConnectionsKeysResponseContent", - "PostConnectionsKeysResponseContentItem", - "PreferredAuthenticationMethodEnum", - "PreviewCimdMetadataResponseContent", - "PromptGroupNameEnum", - "PromptLanguageEnum", - "PublicKeyCredential", - "PublicKeyCredentialAlgorithmEnum", - "PublicKeyCredentialTypeEnum", - "RateLimitPolicy", - "RateLimitPolicyConfiguration", - "RateLimitPolicyConfigurationAction", - "RateLimitPolicyConfigurationActionAction", - "RateLimitPolicyConfigurationOne", - "RateLimitPolicyConfigurationOneAction", - "RateLimitPolicyConfigurationZero", - "RateLimitPolicyConfigurationZeroAction", - "RateLimitPolicyConsumerEnum", - "RateLimitPolicyResourceEnum", - "RefreshTokenDate", - "RefreshTokenDateObject", - "RefreshTokenDevice", - "RefreshTokenExpirationTypeEnum", - "RefreshTokenMetadata", - "RefreshTokenResourceServer", - "RefreshTokenResponseContent", - "RefreshTokenRotationTypeEnum", - "RefreshTokenSessionId", - "RegenerateUsersRecoveryCodeResponseContent", - "RegisterCimdClientResponseContent", - "ResetPhoneTemplateRequestContent", - "ResetPhoneTemplateResponseContent", - "ResourceServer", - "ResourceServerAccessToken", - "ResourceServerAccessTokenClaimsMapping", - "ResourceServerAccessTokenCustomClaimsMapping", - "ResourceServerAccessTokenCustomClaimsMappingRule", - "ResourceServerAgentSubjectClaimsResponseEnum", - "ResourceServerAgentSubjectClaimsSchemaEnum", - "ResourceServerAuthorizationPolicy", - "ResourceServerConsentPolicyEnum", - "ResourceServerProofOfPossession", - "ResourceServerProofOfPossessionMechanismEnum", - "ResourceServerProofOfPossessionRequiredForEnum", - "ResourceServerScope", - "ResourceServerSearchResponse", - "ResourceServerSortFieldEnum", - "ResourceServerSubjectTypeAuthorization", - "ResourceServerSubjectTypeAuthorizationAnonymousUser", - "ResourceServerSubjectTypeAuthorizationAnonymousUserPolicyEnum", - "ResourceServerSubjectTypeAuthorizationClient", - "ResourceServerSubjectTypeAuthorizationClientPolicyEnum", - "ResourceServerSubjectTypeAuthorizationUser", - "ResourceServerSubjectTypeAuthorizationUserPolicyEnum", - "ResourceServerTokenDialectResponseEnum", - "ResourceServerTokenDialectSchemaEnum", - "ResourceServerTokenEncryption", - "ResourceServerTokenEncryptionAlgorithmEnum", - "ResourceServerTokenEncryptionFormatEnum", - "ResourceServerTokenEncryptionKey", - "ResourceServerTypeEnum", - "ResourceServerVerificationKeyPemCertificate", - "RevokedSigningKeysResponseContent", - "Role", - "RoleGroup", - "RoleMember", - "RoleOwnerId", - "RoleOwnerIdFilter", - "RoleTypeEnum", - "RoleUser", - "RollbackActionModuleResponseContent", - "RotateClientSecretResponseContent", - "RotateConnectionKeysRequestContent", - "RotateConnectionKeysSigningAlgEnum", - "RotateConnectionsKeysResponseContent", - "RotateSigningKeysResponseContent", - "Rule", - "RulesConfig", - "ScimConfiguration", - "ScimMappingItem", - "ScimTokenItem", - "ScreenGroupNameEnum", - "SearchClientGrantsResponseContent", - "SearchClientsResponseContent", - "SearchEngineVersionsEnum", - "SearchOrganization", - "SearchOrganizationsPaginatedResponseContent", - "SearchParserEnum", - "SearchResourceServersResponseContent", - "Segment", - "SegmentContainsExpression", - "SegmentEndsWithExpression", - "SegmentExistsExpression", - "SegmentMatchConditions", - "SegmentMatchExpression", - "SegmentNotMatchConditions", - "SegmentRule", - "SegmentStartsWithExpression", - "SegmentStatusEnum", - "SegmentTypeEnum", - "SegmentTypeFilterEnum", - "SelfServiceProfile", - "SelfServiceProfileAllowedStrategyEnum", - "SelfServiceProfileBranding", - "SelfServiceProfileBrandingColors", - "SelfServiceProfileBrandingProperties", - "SelfServiceProfileCustomTextLanguageEnum", - "SelfServiceProfileCustomTextPageEnum", - "SelfServiceProfileDescription", - "SelfServiceProfileSsoTicketConnectionConfig", - "SelfServiceProfileSsoTicketConnectionOptions", - "SelfServiceProfileSsoTicketDomainAliasesConfig", - "SelfServiceProfileSsoTicketDomainVerificationEnum", - "SelfServiceProfileSsoTicketEnabledFeatures", - "SelfServiceProfileSsoTicketEnabledOrganization", - "SelfServiceProfileSsoTicketGoogleWorkspaceConfig", - "SelfServiceProfileSsoTicketIdpInitiatedClientProtocolEnum", - "SelfServiceProfileSsoTicketIdpInitiatedOptions", - "SelfServiceProfileSsoTicketProvisioningConfig", - "SelfServiceProfileSsoTicketProvisioningScopeEnum", - "SelfServiceProfileSsoTicketUniversalLogoutConfig", - "SelfServiceProfileUserAttribute", - "SelfServiceProfileUserAttributes", - "SessionActorClaimValue", - "SessionActorMetadata", - "SessionAuthenticationSignal", - "SessionAuthenticationSignals", - "SessionClientMetadata", - "SessionCookieMetadata", - "SessionCookieMetadataModeEnum", - "SessionCookieModeEnum", - "SessionCookieSchema", - "SessionDate", - "SessionDeviceMetadata", - "SessionIp", - "SessionMetadata", - "SessionResponseContent", - "SetCustomSigningKeysResponseContent", - "SetEmailFactorSettingsResponseContent", - "SetEmailTemplateResponseContent", - "SetGuardianFactorDuoSettingsResponseContent", - "SetGuardianFactorPhoneMessageTypesResponseContent", - "SetGuardianFactorPhoneTemplatesResponseContent", - "SetGuardianFactorResponseContent", - "SetGuardianFactorSmsTemplatesResponseContent", - "SetGuardianFactorsProviderPhoneResponseContent", - "SetGuardianFactorsProviderPhoneTwilioResponseContent", - "SetGuardianFactorsProviderPushNotificationApnsResponseContent", - "SetGuardianFactorsProviderPushNotificationFcmResponseContent", - "SetGuardianFactorsProviderPushNotificationFcmv1ResponseContent", - "SetGuardianFactorsProviderPushNotificationResponseContent", - "SetGuardianFactorsProviderPushNotificationSnsResponseContent", - "SetGuardianFactorsProviderSmsResponseContent", - "SetGuardianFactorsProviderSmsTwilioResponseContent", - "SetGuardianPoliciesRequestContent", - "SetGuardianPoliciesResponseContent", - "SetGuardianSettingsResponseContent", - "SetNetworkAclsResponseContent", - "SetPartialsRequestContent", - "SetPhoneFactorSettingsResponseContent", - "SetRulesConfigResponseContent", - "SetSelfServiceProfileCustomTextRequestContent", - "SetSelfServiceProfileCustomTextResponseContent", - "SetUserAuthenticationMethodResponseContent", - "SetUserAuthenticationMethods", - "SetUserAuthenticationMethodsRequestContent", - "SetsCustomTextsByLanguageRequestContent", - "Sidebar", - "SidebarComponent", - "SidebarComponentAuth0ExternalLink", - "SidebarComponentAuth0ExternalLinkConfig", - "SidebarComponentAuth0ExternalLinkV2", - "SidebarComponentAuth0ExternalLinkV2Config", - "SidebarComponentAuth0InternalLink", - "SidebarComponentAuth0InternalLinkConfig", - "SidebarComponentAuth0InternalLinkV2", - "SidebarComponentAuth0InternalLinkV2Config", - "SidebarComponent_SidebarComponentAuth0ExternalLink", - "SidebarComponent_SidebarComponentAuth0ExternalLinkV2", - "SidebarComponent_SidebarComponentAuth0InternalLink", - "SidebarComponent_SidebarComponentAuth0InternalLinkV2", - "SigningAlgorithmEnum", - "SigningKeys", - "SigningKeysDate", - "SignupSchema", - "SignupStatusEnum", - "SignupVerification", - "SignupVerified", - "SupportedLocales", - "SuspiciousIpThrottlingAllowlist", - "SuspiciousIpThrottlingAllowlistItem", - "SuspiciousIpThrottlingPreCustomTokenExchangeStage", - "SuspiciousIpThrottlingPreLoginStage", - "SuspiciousIpThrottlingPreUserRegistrationStage", - "SuspiciousIpThrottlingShieldsEnum", - "SuspiciousIpThrottlingStage", - "SynchronizeGroupsEnum", - "SynchronizedGroupPayload", - "SynchronizedGroupSelectionId", - "SystemRoleOwnerId", - "TenantOidcLogoutSettings", - "TenantSettingsCountryCodes", - "TenantSettingsCountryCodesMode", - "TenantSettingsCountryCodesModeResponse", - "TenantSettingsCountryCodesResponse", - "TenantSettingsDeviceFlow", - "TenantSettingsDeviceFlowCharset", - "TenantSettingsDynamicClientRegistrationSecurityMode", - "TenantSettingsErrorPage", - "TenantSettingsFlags", - "TenantSettingsGuardianPage", - "TenantSettingsMtls", - "TenantSettingsNullableSecurityHeaders", - "TenantSettingsPasswordPage", - "TenantSettingsResourceParameterProfile", - "TenantSettingsSessions", - "TenantSettingsSessionsAnonymous", - "TenantSettingsSupportedLocalesEnum", - "TestActionPayload", - "TestActionResponseContent", - "TestActionResultPayload", - "TestCustomDomainResponseContent", - "TestEventDataContent", - "ThirdPartyClientAccessConfig", - "TokenExchangeProfileResponseContent", - "TokenExchangeProfileTypeEnum", - "TokenQuota", - "TokenQuotaClientCredentials", - "TokenQuotaConfiguration", - "TokenVaultPrivilegedAccessGrant", - "TokenVaultPrivilegedAccessIpAllowlistEntry", - "TooManyRequestsErrorBody", - "TooManyRequestsErrorBodyError", - "TooManyRequestsSchema", - "TooManyRequestsSchemaError", - "TwilioProviderConfiguration", - "TwilioProviderCredentials", - "TwilioProviderDeliveryMethodEnum", - "UnauthorizedSchema", - "UnauthorizedSchemaError", - "UniversalLoginExperienceEnum", - "UpdateActionBindingsResponseContent", - "UpdateActionModuleResponseContent", - "UpdateActionResponseContent", - "UpdateAculResponseContent", - "UpdateAnonymousSessions", - "UpdateAttackProtectionCaptchaResponseContent", - "UpdateBotDetectionSettingsResponseContent", - "UpdateBrandingColors", - "UpdateBrandingFont", - "UpdateBrandingPageBackground", - "UpdateBrandingPhoneProviderResponseContent", - "UpdateBrandingResponseContent", - "UpdateBrandingThemeResponseContent", - "UpdateBreachedPasswordDetectionSettingsResponseContent", - "UpdateBruteForceSettingsResponseContent", - "UpdateClientGrantResponseContent", - "UpdateClientResponseContent", - "UpdateConnectionOptions", - "UpdateConnectionProfileResponseContent", - "UpdateConnectionRequestContentAd", - "UpdateConnectionRequestContentAdfs", - "UpdateConnectionRequestContentAmazon", - "UpdateConnectionRequestContentApple", - "UpdateConnectionRequestContentAuth0", - "UpdateConnectionRequestContentAuth0Oidc", - "UpdateConnectionRequestContentAzureAd", - "UpdateConnectionRequestContentBaidu", - "UpdateConnectionRequestContentBitbucket", - "UpdateConnectionRequestContentBitly", - "UpdateConnectionRequestContentBox", - "UpdateConnectionRequestContentCustom", - "UpdateConnectionRequestContentDaccount", - "UpdateConnectionRequestContentDropbox", - "UpdateConnectionRequestContentDwolla", - "UpdateConnectionRequestContentEmail", - "UpdateConnectionRequestContentEvernote", - "UpdateConnectionRequestContentEvernoteSandbox", - "UpdateConnectionRequestContentExact", - "UpdateConnectionRequestContentFacebook", - "UpdateConnectionRequestContentFitbit", - "UpdateConnectionRequestContentGitHub", - "UpdateConnectionRequestContentGoogleApps", - "UpdateConnectionRequestContentGoogleOAuth2", - "UpdateConnectionRequestContentInstagram", - "UpdateConnectionRequestContentIp", - "UpdateConnectionRequestContentLine", - "UpdateConnectionRequestContentLinkedin", - "UpdateConnectionRequestContentOAuth1", - "UpdateConnectionRequestContentOAuth2", - "UpdateConnectionRequestContentOffice365", - "UpdateConnectionRequestContentOidc", - "UpdateConnectionRequestContentOkta", - "UpdateConnectionRequestContentPaypal", - "UpdateConnectionRequestContentPaypalSandbox", - "UpdateConnectionRequestContentPingFederate", - "UpdateConnectionRequestContentPlanningCenter", - "UpdateConnectionRequestContentSalesforce", - "UpdateConnectionRequestContentSalesforceCommunity", - "UpdateConnectionRequestContentSalesforceSandbox", - "UpdateConnectionRequestContentSaml", - "UpdateConnectionRequestContentSharepoint", - "UpdateConnectionRequestContentShop", - "UpdateConnectionRequestContentShopify", - "UpdateConnectionRequestContentSms", - "UpdateConnectionRequestContentSoundcloud", - "UpdateConnectionRequestContentThirtySevenSignals", - "UpdateConnectionRequestContentTwitter", - "UpdateConnectionRequestContentUntappd", - "UpdateConnectionRequestContentVkontakte", - "UpdateConnectionRequestContentWeibo", - "UpdateConnectionRequestContentWindowsLive", - "UpdateConnectionRequestContentWordpress", - "UpdateConnectionRequestContentYahoo", - "UpdateConnectionRequestContentYandex", - "UpdateConnectionResponseContent", - "UpdateCrossAppAccessResourceApp", - "UpdateCustomDomainResponseContent", - "UpdateDefaultCanonicalDomainResponseContent", - "UpdateDefaultCustomDomainResponseContent", - "UpdateDefaultDomainResponseContent", - "UpdateDirectoryProvisioningRequestContent", - "UpdateDirectoryProvisioningResponseContent", - "UpdateEmailProviderResponseContent", - "UpdateEmailTemplateResponseContent", - "UpdateEnabledClientConnectionsRequestContent", - "UpdateEnabledClientConnectionsRequestContentItem", - "UpdateEventStreamResponseContent", - "UpdateExperimentResponseContent", - "UpdateFeatureFlagParameters", - "UpdateFeatureFlagResponseContent", - "UpdateFlowResponseContent", - "UpdateFlowsVaultConnectionResponseContent", - "UpdateFlowsVaultConnectionSetup", - "UpdateFormResponseContent", - "UpdateGuardianFactorDuoSettingsResponseContent", - "UpdateGuardianFactorsProviderPushNotificationApnsResponseContent", - "UpdateGuardianFactorsProviderPushNotificationFcmResponseContent", - "UpdateGuardianFactorsProviderPushNotificationFcmv1ResponseContent", - "UpdateGuardianFactorsProviderPushNotificationSnsResponseContent", - "UpdateHookResponseContent", - "UpdateHookSecretRequestContent", - "UpdateIdentityAssertionAuthorizationGrant", - "UpdateLogStreamResponseContent", - "UpdateNetworkAclResponseContent", - "UpdateOrganizationAllConnectionResponseContent", - "UpdateOrganizationClientResponseContent", - "UpdateOrganizationConnectionResponseContent", - "UpdateOrganizationDiscoveryDomainResponseContent", - "UpdateOrganizationResponseContent", - "UpdatePhoneTemplateResponseContent", - "UpdateRateLimitPolicyResponseContent", - "UpdateRefreshTokenResponseContent", - "UpdateResourceServerResponseContent", - "UpdateRiskAssessmentsSettingsNewDeviceResponseContent", - "UpdateRiskAssessmentsSettingsResponseContent", - "UpdateRoleResponseContent", - "UpdateRuleResponseContent", - "UpdateScimConfigurationResponseContent", - "UpdateSegmentResponseContent", - "UpdateSelfServiceProfileResponseContent", - "UpdateSessionResponseContent", - "UpdateSettingsResponseContent", - "UpdateSuspiciousIpThrottlingSettingsResponseContent", - "UpdateTenantSettingsResponseContent", - "UpdateTokenQuota", - "UpdateUniversalLoginTemplateRequestContent", - "UpdateUniversalLoginTemplateRequestContentTemplate", - "UpdateUserAttributeProfileResponseContent", - "UpdateUserAuthenticationMethodResponseContent", - "UpdateUserResponseContent", - "UpdateVariationOverridesMap", - "UpdateVariationResponseContent", - "UpdateVerifiableCredentialTemplateResponseContent", - "UserAppMetadataSchema", - "UserAttributeProfile", - "UserAttributeProfileId", - "UserAttributeProfileName", - "UserAttributeProfileOidcMapping", - "UserAttributeProfilePatchUserId", - "UserAttributeProfileSamlMapping", - "UserAttributeProfileStrategyOverrides", - "UserAttributeProfileStrategyOverridesMapping", - "UserAttributeProfileStrategyOverridesUserId", - "UserAttributeProfileStrategyOverridesUserIdMapping", - "UserAttributeProfileTemplate", - "UserAttributeProfileTemplateItem", - "UserAttributeProfileUserAttributeAdditionalProperties", - "UserAttributeProfileUserAttributes", - "UserAttributeProfileUserId", - "UserAttributeProfileUserIdOidcMappingEnum", - "UserAttributeProfileUserIdOidcStrategyOverrideMapping", - "UserAttributeProfileUserIdSamlMapping", - "UserAuthenticationMethod", - "UserAuthenticationMethodProperties", - "UserAuthenticationMethodPropertiesEnum", - "UserBlockIdentifier", - "UserEffectivePermissionResponseContent", - "UserEffectivePermissionRoleSourceEnum", - "UserEffectivePermissionRoleSourceResponseContent", - "UserEffectivePermissionSourceEnum", - "UserEffectiveRole", - "UserEffectiveRoleSource", - "UserEnrollmentAuthMethodEnum", - "UserEnrollmentStatusEnum", - "UserGrant", - "UserGroupsResponseSchema", - "UserId", - "UserIdentity", - "UserIdentityProviderEnum", - "UserIdentitySchema", - "UserListLogOffsetPaginatedResponseContent", - "UserMetadata", - "UserMetadataSchema", - "UserMultifactorProviderEnum", - "UserPermissionSchema", - "UserProfileData", - "UserResponseSchema", - "UsernameAllowedTypes", - "UsernameAttribute", - "UsernameAttributeIdentifier", - "UsernameValidation", - "UsersEnrollment", - "ValidateExperimentResponseContent", - "Variation", - "VariationOverridesMap", - "VerifiableCredentialTemplateResponse", - "VerificationMethodEnum", - "VerifyCustomDomainResponseContent", - "VerifyEmailTicketResponseContent", - "X509CertificateCredential", - "X509CertificateCredentialTypeEnum", - "XssProtectionConfig", - "XssProtectionMode", + "SendBase", + "SendBaseType", + "SendByContent", + "SendByTemplate", + "SendParams", + "SendParamsContent", + "SendParamsTemplateId", + "SendParamsType", ] diff --git a/src/auth0/management/types/action.py b/src/auth0/management/types/action.py deleted file mode 100644 index 98b9fc3e..00000000 --- a/src/auth0/management/types/action.py +++ /dev/null @@ -1,98 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .action_build_status_enum import ActionBuildStatusEnum -from .action_deployed_version import ActionDeployedVersion -from .action_module_reference import ActionModuleReference -from .action_secret_response import ActionSecretResponse -from .action_trigger import ActionTrigger -from .action_version_dependency import ActionVersionDependency -from .integration import Integration - - -class Action(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - The unique ID of the action. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The name of an action. - """ - - supported_triggers: typing.Optional[typing.List[ActionTrigger]] = pydantic.Field(default=None) - """ - The list of triggers that this action supports. At this time, an action can only target a single trigger at a time. - """ - - all_changes_deployed: typing.Optional[bool] = pydantic.Field(default=None) - """ - True if all of an Action's contents have been deployed. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The time when this action was created. - """ - - updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The time when this action was updated. - """ - - code: typing.Optional[str] = pydantic.Field(default=None) - """ - The source code of the action. - """ - - dependencies: typing.Optional[typing.List[ActionVersionDependency]] = pydantic.Field(default=None) - """ - The list of third party npm modules, and their versions, that this action depends on. - """ - - runtime: typing.Optional[str] = pydantic.Field(default=None) - """ - The Node runtime. For example: `node22`, defaults to `node22` - """ - - secrets: typing.Optional[typing.List[ActionSecretResponse]] = pydantic.Field(default=None) - """ - The list of secrets that are included in an action or a version of an action. - """ - - deployed_version: typing.Optional[ActionDeployedVersion] = None - installed_integration_id: typing.Optional[str] = pydantic.Field(default=None) - """ - installed_integration_id is the fk reference to the InstalledIntegration entity. - """ - - integration: typing.Optional[Integration] = None - status: typing.Optional[ActionBuildStatusEnum] = None - built_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The time when this action was built successfully. - """ - - deploy: typing.Optional[bool] = pydantic.Field(default=None) - """ - True if the action should be deployed after creation. - """ - - modules: typing.Optional[typing.List[ActionModuleReference]] = pydantic.Field(default=None) - """ - The list of action modules and their versions used by this action. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/action_base.py b/src/auth0/management/types/action_base.py deleted file mode 100644 index d83b90ff..00000000 --- a/src/auth0/management/types/action_base.py +++ /dev/null @@ -1,53 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .action_trigger import ActionTrigger - - -class ActionBase(UniversalBaseModel): - """ - The action to which this version belongs. - """ - - id: typing.Optional[str] = pydantic.Field(default=None) - """ - The unique ID of the action. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The name of an action. - """ - - supported_triggers: typing.Optional[typing.List[ActionTrigger]] = pydantic.Field(default=None) - """ - The list of triggers that this action supports. At this time, an action can only target a single trigger at a time. - """ - - all_changes_deployed: typing.Optional[bool] = pydantic.Field(default=None) - """ - True if all of an Action's contents have been deployed. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The time when this action was created. - """ - - updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The time when this action was updated. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/action_binding.py b/src/auth0/management/types/action_binding.py deleted file mode 100644 index 26e356a1..00000000 --- a/src/auth0/management/types/action_binding.py +++ /dev/null @@ -1,46 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .action import Action -from .action_trigger_type_enum import ActionTriggerTypeEnum - - -class ActionBinding(UniversalBaseModel): - """ - Binding is the associative entity joining a trigger, and an action together. - """ - - id: typing.Optional[str] = pydantic.Field(default=None) - """ - The unique ID of this binding. - """ - - trigger_id: typing.Optional[ActionTriggerTypeEnum] = None - display_name: typing.Optional[str] = pydantic.Field(default=None) - """ - The name of the binding. - """ - - action: typing.Optional[Action] = None - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The time when the binding was created. - """ - - updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The time when the binding was updated. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/action_binding_ref.py b/src/auth0/management/types/action_binding_ref.py deleted file mode 100644 index 4843548f..00000000 --- a/src/auth0/management/types/action_binding_ref.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .action_binding_ref_type_enum import ActionBindingRefTypeEnum - - -class ActionBindingRef(UniversalBaseModel): - """ - A reference to an action. An action can be referred to by ID or by Name. - """ - - type: typing.Optional[ActionBindingRefTypeEnum] = None - value: typing.Optional[str] = pydantic.Field(default=None) - """ - The id or name of an action that is being bound to a trigger. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/action_binding_ref_type_enum.py b/src/auth0/management/types/action_binding_ref_type_enum.py deleted file mode 100644 index 4c72a777..00000000 --- a/src/auth0/management/types/action_binding_ref_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ActionBindingRefTypeEnum = typing.Union[typing.Literal["binding_id", "action_id", "action_name"], typing.Any] diff --git a/src/auth0/management/types/action_binding_type_enum.py b/src/auth0/management/types/action_binding_type_enum.py deleted file mode 100644 index ecaee8d8..00000000 --- a/src/auth0/management/types/action_binding_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ActionBindingTypeEnum = typing.Union[typing.Literal["trigger-bound", "entity-bound"], typing.Any] diff --git a/src/auth0/management/types/action_binding_with_ref.py b/src/auth0/management/types/action_binding_with_ref.py deleted file mode 100644 index c0491dea..00000000 --- a/src/auth0/management/types/action_binding_with_ref.py +++ /dev/null @@ -1,30 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .action_binding_ref import ActionBindingRef -from .action_secret_request import ActionSecretRequest - - -class ActionBindingWithRef(UniversalBaseModel): - ref: ActionBindingRef - display_name: typing.Optional[str] = pydantic.Field(default=None) - """ - The name of the binding. - """ - - secrets: typing.Optional[typing.List[ActionSecretRequest]] = pydantic.Field(default=None) - """ - The list of secrets that are included in an action or a version of an action. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/action_build_status_enum.py b/src/auth0/management/types/action_build_status_enum.py deleted file mode 100644 index 58ebfc17..00000000 --- a/src/auth0/management/types/action_build_status_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ActionBuildStatusEnum = typing.Union[ - typing.Literal["pending", "building", "packaged", "built", "retrying", "failed"], typing.Any -] diff --git a/src/auth0/management/types/action_deployed_version.py b/src/auth0/management/types/action_deployed_version.py deleted file mode 100644 index 205da8cd..00000000 --- a/src/auth0/management/types/action_deployed_version.py +++ /dev/null @@ -1,101 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .action_base import ActionBase -from .action_error import ActionError -from .action_module_reference import ActionModuleReference -from .action_secret_response import ActionSecretResponse -from .action_trigger import ActionTrigger -from .action_version_build_status_enum import ActionVersionBuildStatusEnum -from .action_version_dependency import ActionVersionDependency - - -class ActionDeployedVersion(UniversalBaseModel): - """ - The version of the action that is currently deployed. - """ - - id: typing.Optional[str] = pydantic.Field(default=None) - """ - The unique id of an action version. - """ - - action_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The id of the action to which this version belongs. - """ - - code: typing.Optional[str] = pydantic.Field(default=None) - """ - The source code of this specific version of the action. - """ - - dependencies: typing.Optional[typing.List[ActionVersionDependency]] = pydantic.Field(default=None) - """ - The list of third party npm modules, and their versions, that this specific version depends on. - """ - - deployed: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates if this specific version is the currently one deployed. - """ - - runtime: typing.Optional[str] = pydantic.Field(default=None) - """ - The Node runtime. For example: `node22` - """ - - secrets: typing.Optional[typing.List[ActionSecretResponse]] = pydantic.Field(default=None) - """ - The list of secrets that are included in an action or a version of an action. - """ - - status: typing.Optional[ActionVersionBuildStatusEnum] = None - number: typing.Optional[float] = pydantic.Field(default=None) - """ - The index of this version in list of versions for the action. - """ - - errors: typing.Optional[typing.List[ActionError]] = pydantic.Field(default=None) - """ - Any errors that occurred while the version was being built. - """ - - action: typing.Optional[ActionBase] = None - built_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The time when this version was built successfully. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The time when this version was created. - """ - - updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The time when a version was updated. Versions are never updated externally. Only Auth0 will update an action version as it is being built. - """ - - supported_triggers: typing.Optional[typing.List[ActionTrigger]] = pydantic.Field(default=None) - """ - The list of triggers that this version supports. At this time, a version can only target a single trigger at a time. - """ - - modules: typing.Optional[typing.List[ActionModuleReference]] = pydantic.Field(default=None) - """ - The list of action modules and their versions used by this action version. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/action_error.py b/src/auth0/management/types/action_error.py deleted file mode 100644 index ec9369b4..00000000 --- a/src/auth0/management/types/action_error.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class ActionError(UniversalBaseModel): - """ - Error is a generic error with a human readable id which should be easily referenced in support tickets. - """ - - id: typing.Optional[str] = None - msg: typing.Optional[str] = None - url: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/action_execution_result.py b/src/auth0/management/types/action_execution_result.py deleted file mode 100644 index 9ccb3280..00000000 --- a/src/auth0/management/types/action_execution_result.py +++ /dev/null @@ -1,39 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .action_error import ActionError - - -class ActionExecutionResult(UniversalBaseModel): - """ - Captures the results of a single action being executed. - """ - - action_name: typing.Optional[str] = pydantic.Field(default=None) - """ - The name of the action that was executed. - """ - - error: typing.Optional[ActionError] = None - started_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The time when the action was started. - """ - - ended_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The time when the action finished executing. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/action_execution_status_enum.py b/src/auth0/management/types/action_execution_status_enum.py deleted file mode 100644 index 95287e1a..00000000 --- a/src/auth0/management/types/action_execution_status_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ActionExecutionStatusEnum = typing.Union[ - typing.Literal["unspecified", "pending", "final", "partial", "canceled", "suspended"], typing.Any -] diff --git a/src/auth0/management/types/action_module_action.py b/src/auth0/management/types/action_module_action.py deleted file mode 100644 index 908cfc69..00000000 --- a/src/auth0/management/types/action_module_action.py +++ /dev/null @@ -1,43 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .action_trigger import ActionTrigger - - -class ActionModuleAction(UniversalBaseModel): - action_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The unique ID of the action. - """ - - action_name: typing.Optional[str] = pydantic.Field(default=None) - """ - The name of the action. - """ - - module_version_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The ID of the module version this action is using. - """ - - module_version_number: typing.Optional[int] = pydantic.Field(default=None) - """ - The version number of the module this action is using. - """ - - supported_triggers: typing.Optional[typing.List[ActionTrigger]] = pydantic.Field(default=None) - """ - The triggers that this action supports. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/action_module_dependency.py b/src/auth0/management/types/action_module_dependency.py deleted file mode 100644 index 27b88676..00000000 --- a/src/auth0/management/types/action_module_dependency.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class ActionModuleDependency(UniversalBaseModel): - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The name of the npm dependency. - """ - - version: typing.Optional[str] = pydantic.Field(default=None) - """ - The version of the npm dependency. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/action_module_dependency_request.py b/src/auth0/management/types/action_module_dependency_request.py deleted file mode 100644 index ac6c0b4c..00000000 --- a/src/auth0/management/types/action_module_dependency_request.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class ActionModuleDependencyRequest(UniversalBaseModel): - name: str = pydantic.Field() - """ - The name of the npm dependency. - """ - - version: str = pydantic.Field() - """ - The version of the npm dependency. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/action_module_list_item.py b/src/auth0/management/types/action_module_list_item.py deleted file mode 100644 index 1296bcc2..00000000 --- a/src/auth0/management/types/action_module_list_item.py +++ /dev/null @@ -1,70 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .action_module_dependency import ActionModuleDependency -from .action_module_secret import ActionModuleSecret - - -class ActionModuleListItem(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - The unique ID of the module. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The name of the module. - """ - - code: typing.Optional[str] = pydantic.Field(default=None) - """ - The source code from the module's draft version. - """ - - dependencies: typing.Optional[typing.List[ActionModuleDependency]] = pydantic.Field(default=None) - """ - The npm dependencies from the module's draft version. - """ - - secrets: typing.Optional[typing.List[ActionModuleSecret]] = pydantic.Field(default=None) - """ - The secrets from the module's draft version (names and timestamps only, values never returned). - """ - - actions_using_module_total: typing.Optional[int] = pydantic.Field(default=None) - """ - The number of deployed actions using this module. - """ - - all_changes_published: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether all draft changes have been published as a version. - """ - - latest_version_number: typing.Optional[int] = pydantic.Field(default=None) - """ - The version number of the latest published version. Omitted if no versions have been published. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Timestamp when the module was created. - """ - - updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Timestamp when the module was last updated. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/action_module_reference.py b/src/auth0/management/types/action_module_reference.py deleted file mode 100644 index bccd3ea9..00000000 --- a/src/auth0/management/types/action_module_reference.py +++ /dev/null @@ -1,41 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class ActionModuleReference(UniversalBaseModel): - """ - Reference to a module and its version used by an action. - """ - - module_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The unique ID of the module. - """ - - module_name: typing.Optional[str] = pydantic.Field(default=None) - """ - The name of the module. - """ - - module_version_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The ID of the specific module version. - """ - - module_version_number: typing.Optional[int] = pydantic.Field(default=None) - """ - The version number of the module. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/action_module_secret.py b/src/auth0/management/types/action_module_secret.py deleted file mode 100644 index 5acec9e5..00000000 --- a/src/auth0/management/types/action_module_secret.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class ActionModuleSecret(UniversalBaseModel): - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The name of the secret. - """ - - updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The time when the secret was last updated. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/action_module_secret_request.py b/src/auth0/management/types/action_module_secret_request.py deleted file mode 100644 index 90aa224d..00000000 --- a/src/auth0/management/types/action_module_secret_request.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class ActionModuleSecretRequest(UniversalBaseModel): - name: str = pydantic.Field() - """ - The name of the secret. - """ - - value: str = pydantic.Field() - """ - The value of the secret. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/action_module_version.py b/src/auth0/management/types/action_module_version.py deleted file mode 100644 index 9326fd28..00000000 --- a/src/auth0/management/types/action_module_version.py +++ /dev/null @@ -1,55 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .action_module_dependency import ActionModuleDependency -from .action_module_secret import ActionModuleSecret - - -class ActionModuleVersion(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - The unique ID for this version. - """ - - module_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The ID of the parent module. - """ - - version_number: typing.Optional[int] = pydantic.Field(default=None) - """ - The sequential version number. - """ - - code: typing.Optional[str] = pydantic.Field(default=None) - """ - The exact source code that was published with this version. - """ - - secrets: typing.Optional[typing.List[ActionModuleSecret]] = pydantic.Field(default=None) - """ - Secrets available to this version (name and updated_at only, values never returned). - """ - - dependencies: typing.Optional[typing.List[ActionModuleDependency]] = pydantic.Field(default=None) - """ - Dependencies locked to this version. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The timestamp when this version was created. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/action_module_version_reference.py b/src/auth0/management/types/action_module_version_reference.py deleted file mode 100644 index 61dbb885..00000000 --- a/src/auth0/management/types/action_module_version_reference.py +++ /dev/null @@ -1,54 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .action_module_dependency import ActionModuleDependency -from .action_module_secret import ActionModuleSecret - - -class ActionModuleVersionReference(UniversalBaseModel): - """ - The latest published version as a reference object. Omitted if no versions have been published. - """ - - id: typing.Optional[str] = pydantic.Field(default=None) - """ - The unique ID of the version. - """ - - version_number: typing.Optional[int] = pydantic.Field(default=None) - """ - The version number. - """ - - code: typing.Optional[str] = pydantic.Field(default=None) - """ - The source code from this version. - """ - - dependencies: typing.Optional[typing.List[ActionModuleDependency]] = pydantic.Field(default=None) - """ - The npm dependencies from this version. - """ - - secrets: typing.Optional[typing.List[ActionModuleSecret]] = pydantic.Field(default=None) - """ - The secrets from this version (names and timestamps only, values never returned). - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Timestamp when the version was created. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/action_secret_request.py b/src/auth0/management/types/action_secret_request.py deleted file mode 100644 index 7a54fc20..00000000 --- a/src/auth0/management/types/action_secret_request.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class ActionSecretRequest(UniversalBaseModel): - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The name of the particular secret, e.g. API_KEY. - """ - - value: typing.Optional[str] = pydantic.Field(default=None) - """ - The value of the particular secret, e.g. secret123. A secret's value can only be set upon creation. A secret's value will never be returned by the API. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/action_secret_response.py b/src/auth0/management/types/action_secret_response.py deleted file mode 100644 index 77a20c03..00000000 --- a/src/auth0/management/types/action_secret_response.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class ActionSecretResponse(UniversalBaseModel): - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The name of the particular secret, e.g. API_KEY. - """ - - updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The time when the secret was last updated. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/action_trigger.py b/src/auth0/management/types/action_trigger.py deleted file mode 100644 index e1868647..00000000 --- a/src/auth0/management/types/action_trigger.py +++ /dev/null @@ -1,48 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .action_binding_type_enum import ActionBindingTypeEnum -from .action_trigger_compatible_trigger import ActionTriggerCompatibleTrigger -from .action_trigger_type_enum import ActionTriggerTypeEnum - - -class ActionTrigger(UniversalBaseModel): - id: ActionTriggerTypeEnum - version: typing.Optional[str] = pydantic.Field(default=None) - """ - The version of a trigger. v1, v2, etc. - """ - - status: typing.Optional[str] = pydantic.Field(default=None) - """ - status points to the trigger status. - """ - - runtimes: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - runtimes supported by this trigger. - """ - - default_runtime: typing.Optional[str] = pydantic.Field(default=None) - """ - Runtime that will be used when none is specified when creating an action. - """ - - compatible_triggers: typing.Optional[typing.List[ActionTriggerCompatibleTrigger]] = pydantic.Field(default=None) - """ - compatible_triggers informs which other trigger supports the same event and api. - """ - - binding_policy: typing.Optional[ActionBindingTypeEnum] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/action_trigger_compatible_trigger.py b/src/auth0/management/types/action_trigger_compatible_trigger.py deleted file mode 100644 index 63f02c48..00000000 --- a/src/auth0/management/types/action_trigger_compatible_trigger.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .action_trigger_type_enum import ActionTriggerTypeEnum - - -class ActionTriggerCompatibleTrigger(UniversalBaseModel): - id: ActionTriggerTypeEnum - version: str = pydantic.Field() - """ - The version of a trigger. v1, v2, etc. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/action_trigger_type_enum.py b/src/auth0/management/types/action_trigger_type_enum.py deleted file mode 100644 index 9370bda9..00000000 --- a/src/auth0/management/types/action_trigger_type_enum.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ActionTriggerTypeEnum = typing.Union[ - typing.Literal[ - "post-login", - "credentials-exchange", - "pre-user-registration", - "post-user-registration", - "post-change-password", - "send-phone-message", - "custom-phone-provider", - "custom-email-provider", - "password-reset-post-challenge", - "custom-token-exchange", - "event-stream", - "password-hash-migration", - "login-post-identifier", - "signup-post-identifier", - "post-credential-validation", - ], - typing.Any, -] diff --git a/src/auth0/management/types/action_version.py b/src/auth0/management/types/action_version.py deleted file mode 100644 index 4fe446d4..00000000 --- a/src/auth0/management/types/action_version.py +++ /dev/null @@ -1,97 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .action_base import ActionBase -from .action_error import ActionError -from .action_module_reference import ActionModuleReference -from .action_secret_response import ActionSecretResponse -from .action_trigger import ActionTrigger -from .action_version_build_status_enum import ActionVersionBuildStatusEnum -from .action_version_dependency import ActionVersionDependency - - -class ActionVersion(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - The unique id of an action version. - """ - - action_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The id of the action to which this version belongs. - """ - - code: typing.Optional[str] = pydantic.Field(default=None) - """ - The source code of this specific version of the action. - """ - - dependencies: typing.Optional[typing.List[ActionVersionDependency]] = pydantic.Field(default=None) - """ - The list of third party npm modules, and their versions, that this specific version depends on. - """ - - deployed: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates if this specific version is the currently one deployed. - """ - - runtime: typing.Optional[str] = pydantic.Field(default=None) - """ - The Node runtime. For example: `node22` - """ - - secrets: typing.Optional[typing.List[ActionSecretResponse]] = pydantic.Field(default=None) - """ - The list of secrets that are included in an action or a version of an action. - """ - - status: typing.Optional[ActionVersionBuildStatusEnum] = None - number: typing.Optional[float] = pydantic.Field(default=None) - """ - The index of this version in list of versions for the action. - """ - - errors: typing.Optional[typing.List[ActionError]] = pydantic.Field(default=None) - """ - Any errors that occurred while the version was being built. - """ - - action: typing.Optional[ActionBase] = None - built_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The time when this version was built successfully. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The time when this version was created. - """ - - updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The time when a version was updated. Versions are never updated externally. Only Auth0 will update an action version as it is being built. - """ - - supported_triggers: typing.Optional[typing.List[ActionTrigger]] = pydantic.Field(default=None) - """ - The list of triggers that this version supports. At this time, a version can only target a single trigger at a time. - """ - - modules: typing.Optional[typing.List[ActionModuleReference]] = pydantic.Field(default=None) - """ - The list of action modules and their versions used by this action version. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/action_version_build_status_enum.py b/src/auth0/management/types/action_version_build_status_enum.py deleted file mode 100644 index be385d2a..00000000 --- a/src/auth0/management/types/action_version_build_status_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ActionVersionBuildStatusEnum = typing.Union[ - typing.Literal["pending", "building", "packaged", "built", "retrying", "failed"], typing.Any -] diff --git a/src/auth0/management/types/action_version_dependency.py b/src/auth0/management/types/action_version_dependency.py deleted file mode 100644 index 5ec4f989..00000000 --- a/src/auth0/management/types/action_version_dependency.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class ActionVersionDependency(UniversalBaseModel): - """ - Dependency is an npm module. These values are used to produce an immutable artifact, which manifests as a layer_id. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - name is the name of the npm module, e.g. lodash - """ - - version: typing.Optional[str] = pydantic.Field(default=None) - """ - description is the version of the npm module, e.g. 4.17.1 - """ - - registry_url: typing.Optional[str] = pydantic.Field(default=None) - """ - registry_url is an optional value used primarily for private npm registries. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/acul_client_filter.py b/src/auth0/management/types/acul_client_filter.py deleted file mode 100644 index 5f490040..00000000 --- a/src/auth0/management/types/acul_client_filter.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .acul_client_filter_by_id import AculClientFilterById -from .acul_client_filter_by_metadata import AculClientFilterByMetadata - -AculClientFilter = typing.Union[AculClientFilterById, AculClientFilterByMetadata] diff --git a/src/auth0/management/types/acul_client_filter_by_id.py b/src/auth0/management/types/acul_client_filter_by_id.py deleted file mode 100644 index 2af6d0d1..00000000 --- a/src/auth0/management/types/acul_client_filter_by_id.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class AculClientFilterById(UniversalBaseModel): - id: str = pydantic.Field() - """ - Client ID - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/acul_client_filter_by_metadata.py b/src/auth0/management/types/acul_client_filter_by_metadata.py deleted file mode 100644 index 5753afb0..00000000 --- a/src/auth0/management/types/acul_client_filter_by_metadata.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .acul_client_metadata import AculClientMetadata - - -class AculClientFilterByMetadata(UniversalBaseModel): - metadata: AculClientMetadata - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/acul_client_metadata.py b/src/auth0/management/types/acul_client_metadata.py deleted file mode 100644 index de52247e..00000000 --- a/src/auth0/management/types/acul_client_metadata.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -AculClientMetadata = typing.Dict[str, typing.Any] -""" -Client metadata key/value pairs -""" diff --git a/src/auth0/management/types/acul_configs.py b/src/auth0/management/types/acul_configs.py deleted file mode 100644 index 98cfcb43..00000000 --- a/src/auth0/management/types/acul_configs.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .acul_configs_item import AculConfigsItem - -AculConfigs = typing.List[AculConfigsItem] -""" -Array of screen configurations to update -""" diff --git a/src/auth0/management/types/acul_configs_item.py b/src/auth0/management/types/acul_configs_item.py deleted file mode 100644 index 9b4a6d04..00000000 --- a/src/auth0/management/types/acul_configs_item.py +++ /dev/null @@ -1,48 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .acul_context_configuration import AculContextConfiguration -from .acul_filters import AculFilters -from .acul_head_tag import AculHeadTag -from .acul_rendering_mode_enum import AculRenderingModeEnum -from .prompt_group_name_enum import PromptGroupNameEnum -from .screen_group_name_enum import ScreenGroupNameEnum - - -class AculConfigsItem(UniversalBaseModel): - prompt: PromptGroupNameEnum - screen: ScreenGroupNameEnum - rendering_mode: typing.Optional[AculRenderingModeEnum] = pydantic.Field(default=None) - """ - Rendering mode - """ - - context_configuration: typing.Optional[AculContextConfiguration] = None - default_head_tags_disabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - Override Universal Login default head tags - """ - - use_page_template: typing.Optional[bool] = pydantic.Field(default=None) - """ - Use page template with ACUL - """ - - head_tags: typing.Optional[typing.List[AculHeadTag]] = pydantic.Field(default=None) - """ - An array of head tags - """ - - filters: typing.Optional[AculFilters] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/acul_context_configuration.py b/src/auth0/management/types/acul_context_configuration.py deleted file mode 100644 index b641dbad..00000000 --- a/src/auth0/management/types/acul_context_configuration.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .acul_context_configuration_item import AculContextConfigurationItem - -AculContextConfiguration = typing.Optional[typing.List[AculContextConfigurationItem]] -""" -Context values to make available -""" diff --git a/src/auth0/management/types/acul_context_configuration_item.py b/src/auth0/management/types/acul_context_configuration_item.py deleted file mode 100644 index a76d7e2e..00000000 --- a/src/auth0/management/types/acul_context_configuration_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .acul_context_enum import AculContextEnum - -AculContextConfigurationItem = typing.Union[AculContextEnum, str] diff --git a/src/auth0/management/types/acul_context_enum.py b/src/auth0/management/types/acul_context_enum.py deleted file mode 100644 index 8dbf2b7b..00000000 --- a/src/auth0/management/types/acul_context_enum.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -AculContextEnum = typing.Union[ - typing.Literal[ - "branding.settings", - "branding.themes.default", - "country_codes", - "client.logo_uri", - "client.description", - "organization.display_name", - "organization.branding", - "screen.texts", - "tenant.name", - "tenant.friendly_name", - "tenant.logo_url", - "tenant.enabled_locales", - "untrusted_data.submitted_form_data", - "untrusted_data.authorization_params.login_hint", - "untrusted_data.authorization_params.screen_hint", - "untrusted_data.authorization_params.ui_locales", - "user.organizations", - "transaction.custom_domain.domain", - "experiment", - ], - typing.Any, -] diff --git a/src/auth0/management/types/acul_domain_filter.py b/src/auth0/management/types/acul_domain_filter.py deleted file mode 100644 index f630ebf3..00000000 --- a/src/auth0/management/types/acul_domain_filter.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .acul_domain_filter_by_id import AculDomainFilterById -from .acul_domain_filter_by_metadata import AculDomainFilterByMetadata - -AculDomainFilter = typing.Union[AculDomainFilterById, AculDomainFilterByMetadata] diff --git a/src/auth0/management/types/acul_domain_filter_by_id.py b/src/auth0/management/types/acul_domain_filter_by_id.py deleted file mode 100644 index ef16561d..00000000 --- a/src/auth0/management/types/acul_domain_filter_by_id.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class AculDomainFilterById(UniversalBaseModel): - id: str = pydantic.Field() - """ - Domain ID - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/acul_domain_filter_by_metadata.py b/src/auth0/management/types/acul_domain_filter_by_metadata.py deleted file mode 100644 index 3c403230..00000000 --- a/src/auth0/management/types/acul_domain_filter_by_metadata.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .acul_domain_metadata import AculDomainMetadata - - -class AculDomainFilterByMetadata(UniversalBaseModel): - metadata: AculDomainMetadata - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/acul_domain_metadata.py b/src/auth0/management/types/acul_domain_metadata.py deleted file mode 100644 index 33f73676..00000000 --- a/src/auth0/management/types/acul_domain_metadata.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -AculDomainMetadata = typing.Dict[str, typing.Any] -""" -Domain metadata key/value pairs -""" diff --git a/src/auth0/management/types/acul_filters.py b/src/auth0/management/types/acul_filters.py deleted file mode 100644 index fccbd79c..00000000 --- a/src/auth0/management/types/acul_filters.py +++ /dev/null @@ -1,41 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .acul_client_filter import AculClientFilter -from .acul_domain_filter import AculDomainFilter -from .acul_match_type_enum import AculMatchTypeEnum -from .acul_organization_filter import AculOrganizationFilter - - -class AculFilters(UniversalBaseModel): - """ - Optional filters to apply rendering rules to specific entities - """ - - match_type: typing.Optional[AculMatchTypeEnum] = None - clients: typing.Optional[typing.List[AculClientFilter]] = pydantic.Field(default=None) - """ - Clients filter - """ - - organizations: typing.Optional[typing.List[AculOrganizationFilter]] = pydantic.Field(default=None) - """ - Organizations filter - """ - - domains: typing.Optional[typing.List[AculDomainFilter]] = pydantic.Field(default=None) - """ - Domains filter - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/acul_head_tag.py b/src/auth0/management/types/acul_head_tag.py deleted file mode 100644 index 3644d47d..00000000 --- a/src/auth0/management/types/acul_head_tag.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .acul_head_tag_attributes import AculHeadTagAttributes -from .acul_head_tag_content import AculHeadTagContent - - -class AculHeadTag(UniversalBaseModel): - tag: typing.Optional[str] = pydantic.Field(default=None) - """ - Any HTML element valid for use in the head tag - """ - - attributes: typing.Optional[AculHeadTagAttributes] = None - content: typing.Optional[AculHeadTagContent] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/acul_head_tag_attributes.py b/src/auth0/management/types/acul_head_tag_attributes.py deleted file mode 100644 index a76c9592..00000000 --- a/src/auth0/management/types/acul_head_tag_attributes.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -AculHeadTagAttributes = typing.Dict[str, typing.Any] -""" -Attributes of the HTML tag. See MDN documentation for valid attributes. -""" diff --git a/src/auth0/management/types/acul_head_tag_content.py b/src/auth0/management/types/acul_head_tag_content.py deleted file mode 100644 index 29551726..00000000 --- a/src/auth0/management/types/acul_head_tag_content.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -AculHeadTagContent = str -""" -Text or markup between the element’s opening and closing tags. -You can use context variables to display dynamic values. -""" diff --git a/src/auth0/management/types/acul_match_type_enum.py b/src/auth0/management/types/acul_match_type_enum.py deleted file mode 100644 index cd38912d..00000000 --- a/src/auth0/management/types/acul_match_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -AculMatchTypeEnum = typing.Union[typing.Literal["includes_any", "excludes_any"], typing.Any] diff --git a/src/auth0/management/types/acul_organization_filter.py b/src/auth0/management/types/acul_organization_filter.py deleted file mode 100644 index 29b7893a..00000000 --- a/src/auth0/management/types/acul_organization_filter.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .acul_organization_filter_by_id import AculOrganizationFilterById -from .acul_organization_filter_by_metadata import AculOrganizationFilterByMetadata - -AculOrganizationFilter = typing.Union[AculOrganizationFilterById, AculOrganizationFilterByMetadata] diff --git a/src/auth0/management/types/acul_organization_filter_by_id.py b/src/auth0/management/types/acul_organization_filter_by_id.py deleted file mode 100644 index ce3d7485..00000000 --- a/src/auth0/management/types/acul_organization_filter_by_id.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class AculOrganizationFilterById(UniversalBaseModel): - id: str = pydantic.Field() - """ - Organization ID - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/acul_organization_filter_by_metadata.py b/src/auth0/management/types/acul_organization_filter_by_metadata.py deleted file mode 100644 index d143d033..00000000 --- a/src/auth0/management/types/acul_organization_filter_by_metadata.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .acul_organization_metadata import AculOrganizationMetadata - - -class AculOrganizationFilterByMetadata(UniversalBaseModel): - metadata: AculOrganizationMetadata - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/acul_organization_metadata.py b/src/auth0/management/types/acul_organization_metadata.py deleted file mode 100644 index 77f69ffc..00000000 --- a/src/auth0/management/types/acul_organization_metadata.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -AculOrganizationMetadata = typing.Dict[str, typing.Any] -""" -Organization metadata key/value pairs -""" diff --git a/src/auth0/management/types/acul_rendering_mode_enum.py b/src/auth0/management/types/acul_rendering_mode_enum.py deleted file mode 100644 index 25c3afd7..00000000 --- a/src/auth0/management/types/acul_rendering_mode_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -AculRenderingModeEnum = typing.Union[typing.Literal["advanced", "standard"], typing.Any] diff --git a/src/auth0/management/types/add_organization_connection_response_content.py b/src/auth0/management/types/add_organization_connection_response_content.py deleted file mode 100644 index 03e57796..00000000 --- a/src/auth0/management/types/add_organization_connection_response_content.py +++ /dev/null @@ -1,40 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .organization_connection_information import OrganizationConnectionInformation - - -class AddOrganizationConnectionResponseContent(UniversalBaseModel): - connection_id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of the connection. - """ - - assign_membership_on_login: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true, all users that log in with this connection will be automatically granted membership in the organization. When false, users must be granted membership in the organization before logging in with this connection. - """ - - show_as_button: typing.Optional[bool] = pydantic.Field(default=None) - """ - Determines whether a connection should be displayed on this organization’s login prompt. Only applicable for enterprise connections. Default: true. - """ - - is_signup_enabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - Determines whether organization signup should be enabled for this organization connection. Only applicable for database connections. Default: false. - """ - - connection: typing.Optional[OrganizationConnectionInformation] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/advance_ramp_response_content.py b/src/auth0/management/types/advance_ramp_response_content.py deleted file mode 100644 index b3194d57..00000000 --- a/src/auth0/management/types/advance_ramp_response_content.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class AdvanceRampResponseContent(UniversalBaseModel): - experiment_id: str - from_level: int - to_level: int - current_level: int - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/agent_metadata.py b/src/auth0/management/types/agent_metadata.py deleted file mode 100644 index fa2c73f5..00000000 --- a/src/auth0/management/types/agent_metadata.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -AgentMetadata = typing.Dict[str, typing.Any] -""" -Arbitrary key-value metadata for the agent -""" diff --git a/src/auth0/management/types/agent_response_content.py b/src/auth0/management/types/agent_response_content.py deleted file mode 100644 index f845f9ee..00000000 --- a/src/auth0/management/types/agent_response_content.py +++ /dev/null @@ -1,46 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .agent_metadata import AgentMetadata - - -class AgentResponseContent(UniversalBaseModel): - agent_id: str = pydantic.Field() - """ - The agent ID - """ - - name: str = pydantic.Field() - """ - The agent name - """ - - created_at: dt.datetime = pydantic.Field() - """ - When the agent was created - """ - - updated_at: dt.datetime = pydantic.Field() - """ - When the agent was last updated - """ - - external_agent_id: typing.Optional[str] = pydantic.Field(default=None) - """ - External identifier for the agent, if set. Omitted when not set. - """ - - metadata: AgentMetadata - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/allocation_item.py b/src/auth0/management/types/allocation_item.py deleted file mode 100644 index 08202bf7..00000000 --- a/src/auth0/management/types/allocation_item.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class AllocationItem(UniversalBaseModel): - variation_id: typing.Optional[str] = None - variation_name: typing.Optional[str] = None - segment_id: typing.Optional[str] = None - segment_name: typing.Optional[str] = None - weight: typing.Optional[int] = None - priority: typing.Optional[int] = None - is_control: typing.Optional[bool] = None - is_fallback: typing.Optional[bool] = None - variation_snapshot: typing.Optional[typing.Dict[str, typing.Any]] = None - segment_snapshot: typing.Optional[typing.Dict[str, typing.Any]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/allocation_request_item.py b/src/auth0/management/types/allocation_request_item.py deleted file mode 100644 index 760fc1f6..00000000 --- a/src/auth0/management/types/allocation_request_item.py +++ /dev/null @@ -1,47 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class AllocationRequestItem(UniversalBaseModel): - variation_id: str = pydantic.Field() - """ - The ID of the variation to allocate - """ - - weight: typing.Optional[int] = pydantic.Field(default=None) - """ - Percentage weight for this allocation (percentage strategy only) - """ - - segment_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The segment this allocation targets (segment strategy only) - """ - - priority: typing.Optional[int] = pydantic.Field(default=None) - """ - Evaluation order; 1 = highest priority (segment strategy only) - """ - - is_control: bool = pydantic.Field() - """ - Whether this allocation is the control group - """ - - is_fallback: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this allocation is the default fallback (segment strategy only) - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/allocation_strategy_enum.py b/src/auth0/management/types/allocation_strategy_enum.py deleted file mode 100644 index e2ec53e8..00000000 --- a/src/auth0/management/types/allocation_strategy_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -AllocationStrategyEnum = typing.Union[typing.Literal["percentage", "segment"], typing.Any] diff --git a/src/auth0/management/types/anomaly_ip_format.py b/src/auth0/management/types/anomaly_ip_format.py deleted file mode 100644 index 64cb85b0..00000000 --- a/src/auth0/management/types/anomaly_ip_format.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -AnomalyIpFormat = str -""" -IP address to check. -""" diff --git a/src/auth0/management/types/anonymous_sessions.py b/src/auth0/management/types/anonymous_sessions.py deleted file mode 100644 index 7986a6fd..00000000 --- a/src/auth0/management/types/anonymous_sessions.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class AnonymousSessions(UniversalBaseModel): - """ - Anonymous sessions configuration for this client. - """ - - active: bool = pydantic.Field() - """ - If set to true, this client is allowed to create anonymous sessions. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/app_metadata.py b/src/auth0/management/types/app_metadata.py deleted file mode 100644 index c3e94c67..00000000 --- a/src/auth0/management/types/app_metadata.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -AppMetadata = typing.Dict[str, typing.Any] -""" -Data related to the user that does affect the application's core functionality. -""" diff --git a/src/auth0/management/types/assessors_type_enum.py b/src/auth0/management/types/assessors_type_enum.py deleted file mode 100644 index a764a165..00000000 --- a/src/auth0/management/types/assessors_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -AssessorsTypeEnum = typing.Union[typing.Literal["new-device"], typing.Any] diff --git a/src/auth0/management/types/associate_organization_client_grant_response_content.py b/src/auth0/management/types/associate_organization_client_grant_response_content.py deleted file mode 100644 index da4f418d..00000000 --- a/src/auth0/management/types/associate_organization_client_grant_response_content.py +++ /dev/null @@ -1,44 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .organization_usage_enum import OrganizationUsageEnum - - -class AssociateOrganizationClientGrantResponseContent(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of the client grant. - """ - - client_id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of the client. - """ - - audience: typing.Optional[str] = pydantic.Field(default=None) - """ - The audience (API identifier) of this client grant - """ - - scope: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Scopes allowed for this client grant. - """ - - organization_usage: typing.Optional[OrganizationUsageEnum] = None - allow_any_organization: typing.Optional[bool] = pydantic.Field(default=None) - """ - If enabled, any organization can be used with this grant. If disabled (default), the grant must be explicitly assigned to the desired organizations. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/async_approval_notifications_channels_enum.py b/src/auth0/management/types/async_approval_notifications_channels_enum.py deleted file mode 100644 index b2571a94..00000000 --- a/src/auth0/management/types/async_approval_notifications_channels_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -AsyncApprovalNotificationsChannelsEnum = typing.Union[ - typing.Literal["guardian-push", "email", "my-account"], typing.Any -] diff --git a/src/auth0/management/types/attack_protection_captcha_arkose_response_content.py b/src/auth0/management/types/attack_protection_captcha_arkose_response_content.py deleted file mode 100644 index 8fb53b78..00000000 --- a/src/auth0/management/types/attack_protection_captcha_arkose_response_content.py +++ /dev/null @@ -1,37 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class AttackProtectionCaptchaArkoseResponseContent(UniversalBaseModel): - site_key: typing.Optional[str] = pydantic.Field(default=None) - """ - The site key for the Arkose captcha provider. - """ - - fail_open: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether the captcha should fail open. - """ - - client_subdomain: typing.Optional[str] = pydantic.Field(default=None) - """ - The subdomain used for client requests to the Arkose captcha provider. - """ - - verify_subdomain: typing.Optional[str] = pydantic.Field(default=None) - """ - The subdomain used for server-side verification requests to the Arkose captcha provider. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/attack_protection_captcha_auth_challenge_request.py b/src/auth0/management/types/attack_protection_captcha_auth_challenge_request.py deleted file mode 100644 index 4804a7e5..00000000 --- a/src/auth0/management/types/attack_protection_captcha_auth_challenge_request.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class AttackProtectionCaptchaAuthChallengeRequest(UniversalBaseModel): - fail_open: bool = pydantic.Field() - """ - Whether the auth challenge should fail open. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/attack_protection_captcha_auth_challenge_response_content.py b/src/auth0/management/types/attack_protection_captcha_auth_challenge_response_content.py deleted file mode 100644 index 34fb0201..00000000 --- a/src/auth0/management/types/attack_protection_captcha_auth_challenge_response_content.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class AttackProtectionCaptchaAuthChallengeResponseContent(UniversalBaseModel): - fail_open: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether the auth challenge should fail open. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/attack_protection_captcha_friendly_captcha_response_content.py b/src/auth0/management/types/attack_protection_captcha_friendly_captcha_response_content.py deleted file mode 100644 index 2cec228a..00000000 --- a/src/auth0/management/types/attack_protection_captcha_friendly_captcha_response_content.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class AttackProtectionCaptchaFriendlyCaptchaResponseContent(UniversalBaseModel): - site_key: typing.Optional[str] = pydantic.Field(default=None) - """ - The site key for the Friendly Captcha provider. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/attack_protection_captcha_hcaptcha_response_content.py b/src/auth0/management/types/attack_protection_captcha_hcaptcha_response_content.py deleted file mode 100644 index 193e2836..00000000 --- a/src/auth0/management/types/attack_protection_captcha_hcaptcha_response_content.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class AttackProtectionCaptchaHcaptchaResponseContent(UniversalBaseModel): - site_key: typing.Optional[str] = pydantic.Field(default=None) - """ - The site key for the hCaptcha provider. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/attack_protection_captcha_provider_id.py b/src/auth0/management/types/attack_protection_captcha_provider_id.py deleted file mode 100644 index 09fd4736..00000000 --- a/src/auth0/management/types/attack_protection_captcha_provider_id.py +++ /dev/null @@ -1,16 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -AttackProtectionCaptchaProviderId = typing.Union[ - typing.Literal[ - "arkose", - "auth_challenge", - "friendly_captcha", - "hcaptcha", - "recaptcha_v2", - "recaptcha_enterprise", - "simple_captcha", - ], - typing.Any, -] diff --git a/src/auth0/management/types/attack_protection_captcha_recaptcha_enterprise_response_content.py b/src/auth0/management/types/attack_protection_captcha_recaptcha_enterprise_response_content.py deleted file mode 100644 index 0076577a..00000000 --- a/src/auth0/management/types/attack_protection_captcha_recaptcha_enterprise_response_content.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class AttackProtectionCaptchaRecaptchaEnterpriseResponseContent(UniversalBaseModel): - site_key: typing.Optional[str] = pydantic.Field(default=None) - """ - The site key for the reCAPTCHA Enterprise provider. - """ - - project_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The project ID for the reCAPTCHA Enterprise provider. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/attack_protection_captcha_recaptcha_v_2_response_content.py b/src/auth0/management/types/attack_protection_captcha_recaptcha_v_2_response_content.py deleted file mode 100644 index a750bf55..00000000 --- a/src/auth0/management/types/attack_protection_captcha_recaptcha_v_2_response_content.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class AttackProtectionCaptchaRecaptchaV2ResponseContent(UniversalBaseModel): - site_key: typing.Optional[str] = pydantic.Field(default=None) - """ - The site key for the reCAPTCHA v2 provider. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/attack_protection_captcha_simple_captcha_response_content.py b/src/auth0/management/types/attack_protection_captcha_simple_captcha_response_content.py deleted file mode 100644 index ca05a7c2..00000000 --- a/src/auth0/management/types/attack_protection_captcha_simple_captcha_response_content.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -AttackProtectionCaptchaSimpleCaptchaResponseContent = typing.Dict[str, typing.Any] diff --git a/src/auth0/management/types/attack_protection_update_captcha_arkose.py b/src/auth0/management/types/attack_protection_update_captcha_arkose.py deleted file mode 100644 index 3843ac12..00000000 --- a/src/auth0/management/types/attack_protection_update_captcha_arkose.py +++ /dev/null @@ -1,42 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class AttackProtectionUpdateCaptchaArkose(UniversalBaseModel): - site_key: str = pydantic.Field() - """ - The site key for the Arkose captcha provider. - """ - - secret: str = pydantic.Field() - """ - The secret key for the Arkose captcha provider. - """ - - client_subdomain: typing.Optional[str] = pydantic.Field(default=None) - """ - The subdomain used for client requests to the Arkose captcha provider. - """ - - verify_subdomain: typing.Optional[str] = pydantic.Field(default=None) - """ - The subdomain used for server-side verification requests to the Arkose captcha provider. - """ - - fail_open: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether the captcha should fail open. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/attack_protection_update_captcha_friendly_captcha.py b/src/auth0/management/types/attack_protection_update_captcha_friendly_captcha.py deleted file mode 100644 index 50cae225..00000000 --- a/src/auth0/management/types/attack_protection_update_captcha_friendly_captcha.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class AttackProtectionUpdateCaptchaFriendlyCaptcha(UniversalBaseModel): - site_key: str = pydantic.Field() - """ - The site key for the Friendly Captcha provider. - """ - - secret: str = pydantic.Field() - """ - The secret key for the Friendly Captcha provider. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/attack_protection_update_captcha_hcaptcha.py b/src/auth0/management/types/attack_protection_update_captcha_hcaptcha.py deleted file mode 100644 index bfd5a62e..00000000 --- a/src/auth0/management/types/attack_protection_update_captcha_hcaptcha.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class AttackProtectionUpdateCaptchaHcaptcha(UniversalBaseModel): - site_key: str = pydantic.Field() - """ - The site key for the hCaptcha provider. - """ - - secret: str = pydantic.Field() - """ - The secret key for the hCaptcha provider. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/attack_protection_update_captcha_recaptcha_enterprise.py b/src/auth0/management/types/attack_protection_update_captcha_recaptcha_enterprise.py deleted file mode 100644 index 417631f3..00000000 --- a/src/auth0/management/types/attack_protection_update_captcha_recaptcha_enterprise.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class AttackProtectionUpdateCaptchaRecaptchaEnterprise(UniversalBaseModel): - site_key: str = pydantic.Field() - """ - The site key for the reCAPTCHA Enterprise provider. - """ - - api_key: str = pydantic.Field() - """ - The API key for the reCAPTCHA Enterprise provider. - """ - - project_id: str = pydantic.Field() - """ - The project ID for the reCAPTCHA Enterprise provider. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/attack_protection_update_captcha_recaptcha_v_2.py b/src/auth0/management/types/attack_protection_update_captcha_recaptcha_v_2.py deleted file mode 100644 index 1ad08cff..00000000 --- a/src/auth0/management/types/attack_protection_update_captcha_recaptcha_v_2.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class AttackProtectionUpdateCaptchaRecaptchaV2(UniversalBaseModel): - site_key: str = pydantic.Field() - """ - The site key for the reCAPTCHA v2 provider. - """ - - secret: str = pydantic.Field() - """ - The secret key for the reCAPTCHA v2 provider. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/authentication_flow_enum.py b/src/auth0/management/types/authentication_flow_enum.py deleted file mode 100644 index 1facfb0d..00000000 --- a/src/auth0/management/types/authentication_flow_enum.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -AuthenticationFlowEnum = typing.Union[ - typing.Literal["authentication", "mfa_enrollment", "mfa_challenge", "password_reset", "passkey_enrollment", "all"], - typing.Any, -] diff --git a/src/auth0/management/types/authentication_method_type_enum.py b/src/auth0/management/types/authentication_method_type_enum.py deleted file mode 100644 index d81b469e..00000000 --- a/src/auth0/management/types/authentication_method_type_enum.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -AuthenticationMethodTypeEnum = typing.Union[ - typing.Literal[ - "recovery-code", - "totp", - "push", - "phone", - "email", - "email-verification", - "webauthn-roaming", - "webauthn-platform", - "guardian", - "passkey", - "password", - ], - typing.Any, -] diff --git a/src/auth0/management/types/authentication_type_enum.py b/src/auth0/management/types/authentication_type_enum.py deleted file mode 100644 index 60a41e54..00000000 --- a/src/auth0/management/types/authentication_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -AuthenticationTypeEnum = typing.Union[typing.Literal["phone", "email", "totp"], typing.Any] diff --git a/src/auth0/management/types/b_2_b_integration_configuration.py b/src/auth0/management/types/b_2_b_integration_configuration.py deleted file mode 100644 index 90d90f78..00000000 --- a/src/auth0/management/types/b_2_b_integration_configuration.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .b_2_b_integration_configuration_integration_type_enum import B2BIntegrationConfigurationIntegrationTypeEnum - - -class B2BIntegrationConfiguration(UniversalBaseModel): - """ - Configuration for B2B Integration clients. - """ - - sso_profiles: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - List of SSO profile IDs linked to this B2B integration client. Maximum 1 entry. - """ - - integration_type: typing.Optional[B2BIntegrationConfigurationIntegrationTypeEnum] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/b_2_b_integration_configuration_integration_type_enum.py b/src/auth0/management/types/b_2_b_integration_configuration_integration_type_enum.py deleted file mode 100644 index 6aa8c9f0..00000000 --- a/src/auth0/management/types/b_2_b_integration_configuration_integration_type_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -B2BIntegrationConfigurationIntegrationTypeEnum = typing.Union[ - typing.Literal["custom_auth_server", "third_party", "application"], typing.Any -] diff --git a/src/auth0/management/types/bad_request_schema.py b/src/auth0/management/types/bad_request_schema.py deleted file mode 100644 index c8d0d71e..00000000 --- a/src/auth0/management/types/bad_request_schema.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .bad_request_schema_error import BadRequestSchemaError - - -class BadRequestSchema(UniversalBaseModel): - """ - Bad Request - """ - - message: str - status_code: typing_extensions.Annotated[str, FieldMetadata(alias="statusCode"), pydantic.Field(alias="statusCode")] - error: BadRequestSchemaError - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/bad_request_schema_error.py b/src/auth0/management/types/bad_request_schema_error.py deleted file mode 100644 index f3ca1e85..00000000 --- a/src/auth0/management/types/bad_request_schema_error.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -BadRequestSchemaError = typing.Union[typing.Literal["Bad Request"], typing.Any] diff --git a/src/auth0/management/types/bot_detection_allowlist.py b/src/auth0/management/types/bot_detection_allowlist.py deleted file mode 100644 index 4ec39ec5..00000000 --- a/src/auth0/management/types/bot_detection_allowlist.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .bot_detection_ip_address_or_cidr_block import BotDetectionIpAddressOrCidrBlock - -BotDetectionAllowlist = typing.List[BotDetectionIpAddressOrCidrBlock] -""" -List of IP addresses or CIDR blocks to allowlist -""" diff --git a/src/auth0/management/types/bot_detection_challenge_policy_password_flow_enum.py b/src/auth0/management/types/bot_detection_challenge_policy_password_flow_enum.py deleted file mode 100644 index eb865e81..00000000 --- a/src/auth0/management/types/bot_detection_challenge_policy_password_flow_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -BotDetectionChallengePolicyPasswordFlowEnum = typing.Union[typing.Literal["never", "when_risky", "always"], typing.Any] diff --git a/src/auth0/management/types/bot_detection_challenge_policy_password_reset_flow_enum.py b/src/auth0/management/types/bot_detection_challenge_policy_password_reset_flow_enum.py deleted file mode 100644 index c49f1e8a..00000000 --- a/src/auth0/management/types/bot_detection_challenge_policy_password_reset_flow_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -BotDetectionChallengePolicyPasswordResetFlowEnum = typing.Union[ - typing.Literal["never", "when_risky", "always"], typing.Any -] diff --git a/src/auth0/management/types/bot_detection_challenge_policy_passwordless_flow_enum.py b/src/auth0/management/types/bot_detection_challenge_policy_passwordless_flow_enum.py deleted file mode 100644 index efb5ee55..00000000 --- a/src/auth0/management/types/bot_detection_challenge_policy_passwordless_flow_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -BotDetectionChallengePolicyPasswordlessFlowEnum = typing.Union[ - typing.Literal["never", "when_risky", "always"], typing.Any -] diff --git a/src/auth0/management/types/bot_detection_cidr_block.py b/src/auth0/management/types/bot_detection_cidr_block.py deleted file mode 100644 index cf356475..00000000 --- a/src/auth0/management/types/bot_detection_cidr_block.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -BotDetectionCidrBlock = str -""" -CIDR block -""" diff --git a/src/auth0/management/types/bot_detection_i_pv_4.py b/src/auth0/management/types/bot_detection_i_pv_4.py deleted file mode 100644 index 1958425e..00000000 --- a/src/auth0/management/types/bot_detection_i_pv_4.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -BotDetectionIPv4 = str -""" -IPv4 address -""" diff --git a/src/auth0/management/types/bot_detection_i_pv_6.py b/src/auth0/management/types/bot_detection_i_pv_6.py deleted file mode 100644 index 1e408780..00000000 --- a/src/auth0/management/types/bot_detection_i_pv_6.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -BotDetectionIPv6 = str -""" -IPv6 address -""" diff --git a/src/auth0/management/types/bot_detection_i_pv_6_cidr_block.py b/src/auth0/management/types/bot_detection_i_pv_6_cidr_block.py deleted file mode 100644 index 43654a5d..00000000 --- a/src/auth0/management/types/bot_detection_i_pv_6_cidr_block.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -BotDetectionIPv6CidrBlock = str -""" -IPv6 CIDR block -""" diff --git a/src/auth0/management/types/bot_detection_ip_address_or_cidr_block.py b/src/auth0/management/types/bot_detection_ip_address_or_cidr_block.py deleted file mode 100644 index 16a54ac2..00000000 --- a/src/auth0/management/types/bot_detection_ip_address_or_cidr_block.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -BotDetectionIpAddressOrCidrBlock = str -""" -IP address (IPv4 or IPv6) or CIDR block -""" diff --git a/src/auth0/management/types/bot_detection_level_enum.py b/src/auth0/management/types/bot_detection_level_enum.py deleted file mode 100644 index dc8870e8..00000000 --- a/src/auth0/management/types/bot_detection_level_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -BotDetectionLevelEnum = typing.Union[typing.Literal["low", "medium", "high"], typing.Any] diff --git a/src/auth0/management/types/bot_detection_monitoring_mode_enabled.py b/src/auth0/management/types/bot_detection_monitoring_mode_enabled.py deleted file mode 100644 index 335a6785..00000000 --- a/src/auth0/management/types/bot_detection_monitoring_mode_enabled.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -BotDetectionMonitoringModeEnabled = bool -""" -Whether monitoring mode is enabled (logs but does not block) -""" diff --git a/src/auth0/management/types/branding_colors.py b/src/auth0/management/types/branding_colors.py deleted file mode 100644 index 29dd23fd..00000000 --- a/src/auth0/management/types/branding_colors.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .branding_page_background import BrandingPageBackground - - -class BrandingColors(UniversalBaseModel): - """ - Custom color settings. - """ - - primary: typing.Optional[str] = pydantic.Field(default=None) - """ - Accent color. - """ - - page_background: typing.Optional[BrandingPageBackground] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/branding_font.py b/src/auth0/management/types/branding_font.py deleted file mode 100644 index fdbe4cec..00000000 --- a/src/auth0/management/types/branding_font.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class BrandingFont(UniversalBaseModel): - """ - Custom font settings. - """ - - url: typing.Optional[str] = pydantic.Field(default=None) - """ - URL for the custom font. The URL must point to a font file and not a stylesheet. Must use HTTPS. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/branding_page_background.py b/src/auth0/management/types/branding_page_background.py deleted file mode 100644 index cb60fced..00000000 --- a/src/auth0/management/types/branding_page_background.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -BrandingPageBackground = typing.Union[typing.Optional[str], typing.Optional[typing.Dict[str, typing.Any]]] diff --git a/src/auth0/management/types/branding_theme_borders.py b/src/auth0/management/types/branding_theme_borders.py deleted file mode 100644 index 198fcabe..00000000 --- a/src/auth0/management/types/branding_theme_borders.py +++ /dev/null @@ -1,56 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .branding_theme_borders_buttons_style_enum import BrandingThemeBordersButtonsStyleEnum -from .branding_theme_borders_inputs_style_enum import BrandingThemeBordersInputsStyleEnum - - -class BrandingThemeBorders(UniversalBaseModel): - button_border_radius: float = pydantic.Field() - """ - Button border radius - """ - - button_border_weight: float = pydantic.Field() - """ - Button border weight - """ - - buttons_style: BrandingThemeBordersButtonsStyleEnum - input_border_radius: float = pydantic.Field() - """ - Input border radius - """ - - input_border_weight: float = pydantic.Field() - """ - Input border weight - """ - - inputs_style: BrandingThemeBordersInputsStyleEnum - show_widget_shadow: bool = pydantic.Field() - """ - Show widget shadow - """ - - widget_border_weight: float = pydantic.Field() - """ - Widget border weight - """ - - widget_corner_radius: float = pydantic.Field() - """ - Widget corner radius - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/branding_theme_borders_buttons_style_enum.py b/src/auth0/management/types/branding_theme_borders_buttons_style_enum.py deleted file mode 100644 index d5e26e8b..00000000 --- a/src/auth0/management/types/branding_theme_borders_buttons_style_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -BrandingThemeBordersButtonsStyleEnum = typing.Union[typing.Literal["pill", "rounded", "sharp"], typing.Any] diff --git a/src/auth0/management/types/branding_theme_borders_inputs_style_enum.py b/src/auth0/management/types/branding_theme_borders_inputs_style_enum.py deleted file mode 100644 index 879f659a..00000000 --- a/src/auth0/management/types/branding_theme_borders_inputs_style_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -BrandingThemeBordersInputsStyleEnum = typing.Union[typing.Literal["pill", "rounded", "sharp"], typing.Any] diff --git a/src/auth0/management/types/branding_theme_colors.py b/src/auth0/management/types/branding_theme_colors.py deleted file mode 100644 index 8965bc7a..00000000 --- a/src/auth0/management/types/branding_theme_colors.py +++ /dev/null @@ -1,114 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .branding_theme_colors_captcha_widget_theme_enum import BrandingThemeColorsCaptchaWidgetThemeEnum - - -class BrandingThemeColors(UniversalBaseModel): - base_focus_color: typing.Optional[str] = pydantic.Field(default=None) - """ - Base Focus Color - """ - - base_hover_color: typing.Optional[str] = pydantic.Field(default=None) - """ - Base Hover Color - """ - - body_text: str = pydantic.Field() - """ - Body text - """ - - captcha_widget_theme: typing.Optional[BrandingThemeColorsCaptchaWidgetThemeEnum] = None - error: str = pydantic.Field() - """ - Error - """ - - header: str = pydantic.Field() - """ - Header - """ - - icons: str = pydantic.Field() - """ - Icons - """ - - input_background: str = pydantic.Field() - """ - Input background - """ - - input_border: str = pydantic.Field() - """ - Input border - """ - - input_filled_text: str = pydantic.Field() - """ - Input filled text - """ - - input_labels_placeholders: str = pydantic.Field() - """ - Input labels & placeholders - """ - - links_focused_components: str = pydantic.Field() - """ - Links & focused components - """ - - primary_button: str = pydantic.Field() - """ - Primary button - """ - - primary_button_label: str = pydantic.Field() - """ - Primary button label - """ - - read_only_background: typing.Optional[str] = pydantic.Field(default=None) - """ - Read only background - """ - - secondary_button_border: str = pydantic.Field() - """ - Secondary button border - """ - - secondary_button_label: str = pydantic.Field() - """ - Secondary button label - """ - - success: str = pydantic.Field() - """ - Success - """ - - widget_background: str = pydantic.Field() - """ - Widget background - """ - - widget_border: str = pydantic.Field() - """ - Widget border - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/branding_theme_colors_captcha_widget_theme_enum.py b/src/auth0/management/types/branding_theme_colors_captcha_widget_theme_enum.py deleted file mode 100644 index 5bd01a5f..00000000 --- a/src/auth0/management/types/branding_theme_colors_captcha_widget_theme_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -BrandingThemeColorsCaptchaWidgetThemeEnum = typing.Union[typing.Literal["auto", "dark", "light"], typing.Any] diff --git a/src/auth0/management/types/branding_theme_font_body_text.py b/src/auth0/management/types/branding_theme_font_body_text.py deleted file mode 100644 index 7e5e3e9a..00000000 --- a/src/auth0/management/types/branding_theme_font_body_text.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class BrandingThemeFontBodyText(UniversalBaseModel): - """ - Body text - """ - - bold: bool = pydantic.Field() - """ - Body text bold - """ - - size: float = pydantic.Field() - """ - Body text size - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/branding_theme_font_buttons_text.py b/src/auth0/management/types/branding_theme_font_buttons_text.py deleted file mode 100644 index b25c3677..00000000 --- a/src/auth0/management/types/branding_theme_font_buttons_text.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class BrandingThemeFontButtonsText(UniversalBaseModel): - """ - Buttons text - """ - - bold: bool = pydantic.Field() - """ - Buttons text bold - """ - - size: float = pydantic.Field() - """ - Buttons text size - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/branding_theme_font_input_labels.py b/src/auth0/management/types/branding_theme_font_input_labels.py deleted file mode 100644 index 264cb0eb..00000000 --- a/src/auth0/management/types/branding_theme_font_input_labels.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class BrandingThemeFontInputLabels(UniversalBaseModel): - """ - Input Labels - """ - - bold: bool = pydantic.Field() - """ - Input Labels bold - """ - - size: float = pydantic.Field() - """ - Input Labels size - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/branding_theme_font_links.py b/src/auth0/management/types/branding_theme_font_links.py deleted file mode 100644 index 5bb31a6b..00000000 --- a/src/auth0/management/types/branding_theme_font_links.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class BrandingThemeFontLinks(UniversalBaseModel): - """ - Links - """ - - bold: bool = pydantic.Field() - """ - Links bold - """ - - size: float = pydantic.Field() - """ - Links size - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/branding_theme_font_links_style_enum.py b/src/auth0/management/types/branding_theme_font_links_style_enum.py deleted file mode 100644 index ab5c1efa..00000000 --- a/src/auth0/management/types/branding_theme_font_links_style_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -BrandingThemeFontLinksStyleEnum = typing.Union[typing.Literal["normal", "underlined"], typing.Any] diff --git a/src/auth0/management/types/branding_theme_font_subtitle.py b/src/auth0/management/types/branding_theme_font_subtitle.py deleted file mode 100644 index b2d2f155..00000000 --- a/src/auth0/management/types/branding_theme_font_subtitle.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class BrandingThemeFontSubtitle(UniversalBaseModel): - """ - Subtitle - """ - - bold: bool = pydantic.Field() - """ - Subtitle bold - """ - - size: float = pydantic.Field() - """ - Subtitle size - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/branding_theme_font_title.py b/src/auth0/management/types/branding_theme_font_title.py deleted file mode 100644 index a753ed77..00000000 --- a/src/auth0/management/types/branding_theme_font_title.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class BrandingThemeFontTitle(UniversalBaseModel): - """ - Title - """ - - bold: bool = pydantic.Field() - """ - Title bold - """ - - size: float = pydantic.Field() - """ - Title size - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/branding_theme_fonts.py b/src/auth0/management/types/branding_theme_fonts.py deleted file mode 100644 index 1adf02a3..00000000 --- a/src/auth0/management/types/branding_theme_fonts.py +++ /dev/null @@ -1,42 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .branding_theme_font_body_text import BrandingThemeFontBodyText -from .branding_theme_font_buttons_text import BrandingThemeFontButtonsText -from .branding_theme_font_input_labels import BrandingThemeFontInputLabels -from .branding_theme_font_links import BrandingThemeFontLinks -from .branding_theme_font_links_style_enum import BrandingThemeFontLinksStyleEnum -from .branding_theme_font_subtitle import BrandingThemeFontSubtitle -from .branding_theme_font_title import BrandingThemeFontTitle - - -class BrandingThemeFonts(UniversalBaseModel): - body_text: BrandingThemeFontBodyText - buttons_text: BrandingThemeFontButtonsText - font_url: str = pydantic.Field() - """ - Font URL - """ - - input_labels: BrandingThemeFontInputLabels - links: BrandingThemeFontLinks - links_style: BrandingThemeFontLinksStyleEnum - reference_text_size: float = pydantic.Field() - """ - Reference text size - """ - - subtitle: BrandingThemeFontSubtitle - title: BrandingThemeFontTitle - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/branding_theme_identifiers.py b/src/auth0/management/types/branding_theme_identifiers.py deleted file mode 100644 index 3ce57ebf..00000000 --- a/src/auth0/management/types/branding_theme_identifiers.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .branding_theme_identifiers_login_display_enum import BrandingThemeIdentifiersLoginDisplayEnum -from .branding_theme_identifiers_phone_display import BrandingThemeIdentifiersPhoneDisplay - - -class BrandingThemeIdentifiers(UniversalBaseModel): - login_display: BrandingThemeIdentifiersLoginDisplayEnum - otp_autocomplete: bool = pydantic.Field() - """ - OTP autocomplete - """ - - phone_display: BrandingThemeIdentifiersPhoneDisplay - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/branding_theme_identifiers_login_display_enum.py b/src/auth0/management/types/branding_theme_identifiers_login_display_enum.py deleted file mode 100644 index 39aee76d..00000000 --- a/src/auth0/management/types/branding_theme_identifiers_login_display_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -BrandingThemeIdentifiersLoginDisplayEnum = typing.Union[typing.Literal["separate", "unified"], typing.Any] diff --git a/src/auth0/management/types/branding_theme_identifiers_phone_display.py b/src/auth0/management/types/branding_theme_identifiers_phone_display.py deleted file mode 100644 index 93d6d15b..00000000 --- a/src/auth0/management/types/branding_theme_identifiers_phone_display.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .branding_theme_identifiers_phone_display_formatting_enum import BrandingThemeIdentifiersPhoneDisplayFormattingEnum -from .branding_theme_identifiers_phone_display_masking_enum import BrandingThemeIdentifiersPhoneDisplayMaskingEnum - - -class BrandingThemeIdentifiersPhoneDisplay(UniversalBaseModel): - """ - Phone display - """ - - formatting: BrandingThemeIdentifiersPhoneDisplayFormattingEnum - masking: BrandingThemeIdentifiersPhoneDisplayMaskingEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/branding_theme_identifiers_phone_display_formatting_enum.py b/src/auth0/management/types/branding_theme_identifiers_phone_display_formatting_enum.py deleted file mode 100644 index 24891b86..00000000 --- a/src/auth0/management/types/branding_theme_identifiers_phone_display_formatting_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -BrandingThemeIdentifiersPhoneDisplayFormattingEnum = typing.Union[ - typing.Literal["international", "regional"], typing.Any -] diff --git a/src/auth0/management/types/branding_theme_identifiers_phone_display_masking_enum.py b/src/auth0/management/types/branding_theme_identifiers_phone_display_masking_enum.py deleted file mode 100644 index c6d42263..00000000 --- a/src/auth0/management/types/branding_theme_identifiers_phone_display_masking_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -BrandingThemeIdentifiersPhoneDisplayMaskingEnum = typing.Union[ - typing.Literal["hide_country_code", "mask_digits", "show_all"], typing.Any -] diff --git a/src/auth0/management/types/branding_theme_page_background.py b/src/auth0/management/types/branding_theme_page_background.py deleted file mode 100644 index dee35fa3..00000000 --- a/src/auth0/management/types/branding_theme_page_background.py +++ /dev/null @@ -1,30 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .branding_theme_page_background_page_layout_enum import BrandingThemePageBackgroundPageLayoutEnum - - -class BrandingThemePageBackground(UniversalBaseModel): - background_color: str = pydantic.Field() - """ - Background color - """ - - background_image_url: str = pydantic.Field() - """ - Background image url - """ - - page_layout: BrandingThemePageBackgroundPageLayoutEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/branding_theme_page_background_page_layout_enum.py b/src/auth0/management/types/branding_theme_page_background_page_layout_enum.py deleted file mode 100644 index 695e9b76..00000000 --- a/src/auth0/management/types/branding_theme_page_background_page_layout_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -BrandingThemePageBackgroundPageLayoutEnum = typing.Union[typing.Literal["center", "left", "right"], typing.Any] diff --git a/src/auth0/management/types/branding_theme_widget.py b/src/auth0/management/types/branding_theme_widget.py deleted file mode 100644 index 1a94b2cd..00000000 --- a/src/auth0/management/types/branding_theme_widget.py +++ /dev/null @@ -1,34 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .branding_theme_widget_header_text_alignment_enum import BrandingThemeWidgetHeaderTextAlignmentEnum -from .branding_theme_widget_logo_position_enum import BrandingThemeWidgetLogoPositionEnum -from .branding_theme_widget_social_buttons_layout_enum import BrandingThemeWidgetSocialButtonsLayoutEnum - - -class BrandingThemeWidget(UniversalBaseModel): - header_text_alignment: BrandingThemeWidgetHeaderTextAlignmentEnum - logo_height: float = pydantic.Field() - """ - Logo height - """ - - logo_position: BrandingThemeWidgetLogoPositionEnum - logo_url: str = pydantic.Field() - """ - Logo url - """ - - social_buttons_layout: BrandingThemeWidgetSocialButtonsLayoutEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/branding_theme_widget_header_text_alignment_enum.py b/src/auth0/management/types/branding_theme_widget_header_text_alignment_enum.py deleted file mode 100644 index bcda0cf7..00000000 --- a/src/auth0/management/types/branding_theme_widget_header_text_alignment_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -BrandingThemeWidgetHeaderTextAlignmentEnum = typing.Union[typing.Literal["center", "left", "right"], typing.Any] diff --git a/src/auth0/management/types/branding_theme_widget_logo_position_enum.py b/src/auth0/management/types/branding_theme_widget_logo_position_enum.py deleted file mode 100644 index dd1bfb8b..00000000 --- a/src/auth0/management/types/branding_theme_widget_logo_position_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -BrandingThemeWidgetLogoPositionEnum = typing.Union[typing.Literal["center", "left", "none", "right"], typing.Any] diff --git a/src/auth0/management/types/branding_theme_widget_social_buttons_layout_enum.py b/src/auth0/management/types/branding_theme_widget_social_buttons_layout_enum.py deleted file mode 100644 index 1bfd872e..00000000 --- a/src/auth0/management/types/branding_theme_widget_social_buttons_layout_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -BrandingThemeWidgetSocialButtonsLayoutEnum = typing.Union[typing.Literal["bottom", "top"], typing.Any] diff --git a/src/auth0/management/types/breached_password_detection_admin_notification_frequency_enum.py b/src/auth0/management/types/breached_password_detection_admin_notification_frequency_enum.py deleted file mode 100644 index b5c262d1..00000000 --- a/src/auth0/management/types/breached_password_detection_admin_notification_frequency_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -BreachedPasswordDetectionAdminNotificationFrequencyEnum = typing.Union[ - typing.Literal["immediately", "daily", "weekly", "monthly"], typing.Any -] diff --git a/src/auth0/management/types/breached_password_detection_method_enum.py b/src/auth0/management/types/breached_password_detection_method_enum.py deleted file mode 100644 index d0cb6e1d..00000000 --- a/src/auth0/management/types/breached_password_detection_method_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -BreachedPasswordDetectionMethodEnum = typing.Union[typing.Literal["standard", "enhanced"], typing.Any] diff --git a/src/auth0/management/types/breached_password_detection_pre_change_password_shields_enum.py b/src/auth0/management/types/breached_password_detection_pre_change_password_shields_enum.py deleted file mode 100644 index f518abdf..00000000 --- a/src/auth0/management/types/breached_password_detection_pre_change_password_shields_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -BreachedPasswordDetectionPreChangePasswordShieldsEnum = typing.Union[ - typing.Literal["block", "admin_notification"], typing.Any -] diff --git a/src/auth0/management/types/breached_password_detection_pre_change_password_stage.py b/src/auth0/management/types/breached_password_detection_pre_change_password_stage.py deleted file mode 100644 index 3a71f9ae..00000000 --- a/src/auth0/management/types/breached_password_detection_pre_change_password_stage.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .breached_password_detection_pre_change_password_shields_enum import ( - BreachedPasswordDetectionPreChangePasswordShieldsEnum, -) - - -class BreachedPasswordDetectionPreChangePasswordStage(UniversalBaseModel): - shields: typing.Optional[typing.List[BreachedPasswordDetectionPreChangePasswordShieldsEnum]] = pydantic.Field( - default=None - ) - """ - Action to take when a breached password is detected during a password reset. - Possible values: block, admin_notification. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/breached_password_detection_pre_user_registration_shields_enum.py b/src/auth0/management/types/breached_password_detection_pre_user_registration_shields_enum.py deleted file mode 100644 index 2d4e500c..00000000 --- a/src/auth0/management/types/breached_password_detection_pre_user_registration_shields_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -BreachedPasswordDetectionPreUserRegistrationShieldsEnum = typing.Union[ - typing.Literal["block", "admin_notification"], typing.Any -] diff --git a/src/auth0/management/types/breached_password_detection_pre_user_registration_stage.py b/src/auth0/management/types/breached_password_detection_pre_user_registration_stage.py deleted file mode 100644 index 1dbf7152..00000000 --- a/src/auth0/management/types/breached_password_detection_pre_user_registration_stage.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .breached_password_detection_pre_user_registration_shields_enum import ( - BreachedPasswordDetectionPreUserRegistrationShieldsEnum, -) - - -class BreachedPasswordDetectionPreUserRegistrationStage(UniversalBaseModel): - shields: typing.Optional[typing.List[BreachedPasswordDetectionPreUserRegistrationShieldsEnum]] = pydantic.Field( - default=None - ) - """ - Action to take when a breached password is detected during a signup. - Possible values: block, admin_notification. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/breached_password_detection_shields_enum.py b/src/auth0/management/types/breached_password_detection_shields_enum.py deleted file mode 100644 index b4de32c9..00000000 --- a/src/auth0/management/types/breached_password_detection_shields_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -BreachedPasswordDetectionShieldsEnum = typing.Union[ - typing.Literal["block", "user_notification", "admin_notification"], typing.Any -] diff --git a/src/auth0/management/types/breached_password_detection_stage.py b/src/auth0/management/types/breached_password_detection_stage.py deleted file mode 100644 index e808b1f5..00000000 --- a/src/auth0/management/types/breached_password_detection_stage.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .breached_password_detection_pre_change_password_stage import BreachedPasswordDetectionPreChangePasswordStage -from .breached_password_detection_pre_user_registration_stage import BreachedPasswordDetectionPreUserRegistrationStage - - -class BreachedPasswordDetectionStage(UniversalBaseModel): - pre_user_registration: typing_extensions.Annotated[ - typing.Optional[BreachedPasswordDetectionPreUserRegistrationStage], - FieldMetadata(alias="pre-user-registration"), - pydantic.Field(alias="pre-user-registration"), - ] = None - pre_change_password: typing_extensions.Annotated[ - typing.Optional[BreachedPasswordDetectionPreChangePasswordStage], - FieldMetadata(alias="pre-change-password"), - pydantic.Field(alias="pre-change-password"), - ] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/brute_force_protection_form_submission_mode_enum.py b/src/auth0/management/types/brute_force_protection_form_submission_mode_enum.py deleted file mode 100644 index 682a79bd..00000000 --- a/src/auth0/management/types/brute_force_protection_form_submission_mode_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -BruteForceProtectionFormSubmissionModeEnum = typing.Union[typing.Literal["auto", "manual"], typing.Any] diff --git a/src/auth0/management/types/brute_force_protection_mode_enum.py b/src/auth0/management/types/brute_force_protection_mode_enum.py deleted file mode 100644 index 2e3b60b6..00000000 --- a/src/auth0/management/types/brute_force_protection_mode_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -BruteForceProtectionModeEnum = typing.Union[ - typing.Literal["count_per_identifier_and_ip", "count_per_identifier"], typing.Any -] diff --git a/src/auth0/management/types/brute_force_protection_shields_enum.py b/src/auth0/management/types/brute_force_protection_shields_enum.py deleted file mode 100644 index 31d08eca..00000000 --- a/src/auth0/management/types/brute_force_protection_shields_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -BruteForceProtectionShieldsEnum = typing.Union[typing.Literal["block", "user_notification"], typing.Any] diff --git a/src/auth0/management/types/bulk_update_acul_response_content.py b/src/auth0/management/types/bulk_update_acul_response_content.py deleted file mode 100644 index 1f99746d..00000000 --- a/src/auth0/management/types/bulk_update_acul_response_content.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .acul_configs import AculConfigs - - -class BulkUpdateAculResponseContent(UniversalBaseModel): - configs: AculConfigs - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/certificate_subject_dn_credential.py b/src/auth0/management/types/certificate_subject_dn_credential.py deleted file mode 100644 index 583aa182..00000000 --- a/src/auth0/management/types/certificate_subject_dn_credential.py +++ /dev/null @@ -1,34 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .certificate_subject_dn_credential_type_enum import CertificateSubjectDnCredentialTypeEnum - - -class CertificateSubjectDnCredential(UniversalBaseModel): - credential_type: CertificateSubjectDnCredentialTypeEnum - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Friendly name for a credential. - """ - - subject_dn: typing.Optional[str] = pydantic.Field(default=None) - """ - Subject Distinguished Name. Mutually exclusive with `pem` property. Applies to `cert_subject_dn` credential type. - """ - - pem: typing.Optional[str] = pydantic.Field(default=None) - """ - PEM-formatted X509 certificate. Must be JSON escaped. Mutually exclusive with `subject_dn` property. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/certificate_subject_dn_credential_type_enum.py b/src/auth0/management/types/certificate_subject_dn_credential_type_enum.py deleted file mode 100644 index a00d4325..00000000 --- a/src/auth0/management/types/certificate_subject_dn_credential_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CertificateSubjectDnCredentialTypeEnum = typing.Union[typing.Literal["cert_subject_dn"], typing.Any] diff --git a/src/auth0/management/types/change_password_ticket_identity.py b/src/auth0/management/types/change_password_ticket_identity.py deleted file mode 100644 index c69290a2..00000000 --- a/src/auth0/management/types/change_password_ticket_identity.py +++ /dev/null @@ -1,33 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .identity_provider_only_auth_0_enum import IdentityProviderOnlyAuth0Enum - - -class ChangePasswordTicketIdentity(UniversalBaseModel): - """ - The user's identity. If you set this value, you must also send the user_id parameter. - """ - - user_id: str = pydantic.Field() - """ - user_id of the identity. - """ - - provider: IdentityProviderOnlyAuth0Enum - connection_id: typing.Optional[str] = pydantic.Field(default=None) - """ - connection_id of the identity. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/change_password_ticket_response_content.py b/src/auth0/management/types/change_password_ticket_response_content.py deleted file mode 100644 index ffebd8fd..00000000 --- a/src/auth0/management/types/change_password_ticket_response_content.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class ChangePasswordTicketResponseContent(UniversalBaseModel): - ticket: str = pydantic.Field() - """ - URL representing the ticket. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/cimd_external_metadata_created_by_enum.py b/src/auth0/management/types/cimd_external_metadata_created_by_enum.py deleted file mode 100644 index 81b73f40..00000000 --- a/src/auth0/management/types/cimd_external_metadata_created_by_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CimdExternalMetadataCreatedByEnum = typing.Union[typing.Literal["admin", "client"], typing.Any] diff --git a/src/auth0/management/types/cimd_mapped_client_authentication_methods.py b/src/auth0/management/types/cimd_mapped_client_authentication_methods.py deleted file mode 100644 index 524dae41..00000000 --- a/src/auth0/management/types/cimd_mapped_client_authentication_methods.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .cimd_mapped_client_authentication_methods_private_key_jwt import ( - CimdMappedClientAuthenticationMethodsPrivateKeyJwt, -) - - -class CimdMappedClientAuthenticationMethods(UniversalBaseModel): - """ - Client authentication methods derived from the JWKS document - """ - - private_key_jwt: typing.Optional[CimdMappedClientAuthenticationMethodsPrivateKeyJwt] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/cimd_mapped_client_authentication_methods_private_key_jwt.py b/src/auth0/management/types/cimd_mapped_client_authentication_methods_private_key_jwt.py deleted file mode 100644 index 045c4f47..00000000 --- a/src/auth0/management/types/cimd_mapped_client_authentication_methods_private_key_jwt.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .cimd_mapped_private_key_jwt_credential import CimdMappedPrivateKeyJwtCredential - - -class CimdMappedClientAuthenticationMethodsPrivateKeyJwt(UniversalBaseModel): - """ - Private Key JWT authentication configuration - """ - - credentials: typing.List[CimdMappedPrivateKeyJwtCredential] = pydantic.Field() - """ - Credentials derived from the JWKS document - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/cimd_mapped_client_fields.py b/src/auth0/management/types/cimd_mapped_client_fields.py deleted file mode 100644 index 93a010fe..00000000 --- a/src/auth0/management/types/cimd_mapped_client_fields.py +++ /dev/null @@ -1,69 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .cimd_mapped_client_authentication_methods import CimdMappedClientAuthenticationMethods - - -class CimdMappedClientFields(UniversalBaseModel): - """ - Auth0 client fields mapped from the Client ID Metadata Document - """ - - external_client_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The URL of the Client ID Metadata Document - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Client name - """ - - app_type: typing.Optional[str] = pydantic.Field(default=None) - """ - Application type (e.g., web, native) - """ - - callbacks: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Callback URLs - """ - - logo_uri: typing.Optional[str] = pydantic.Field(default=None) - """ - Logo URI - """ - - description: typing.Optional[str] = pydantic.Field(default=None) - """ - Human-readable brief description of this client presentable to the end-user - """ - - grant_types: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - List of grant types - """ - - token_endpoint_auth_method: typing.Optional[str] = pydantic.Field(default=None) - """ - Token endpoint authentication method - """ - - jwks_uri: typing.Optional[str] = pydantic.Field(default=None) - """ - URL for the JSON Web Key Set containing the public keys for private_key_jwt authentication - """ - - client_authentication_methods: typing.Optional[CimdMappedClientAuthenticationMethods] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/cimd_mapped_private_key_jwt_credential.py b/src/auth0/management/types/cimd_mapped_private_key_jwt_credential.py deleted file mode 100644 index 2a380ab4..00000000 --- a/src/auth0/management/types/cimd_mapped_private_key_jwt_credential.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class CimdMappedPrivateKeyJwtCredential(UniversalBaseModel): - credential_type: str = pydantic.Field() - """ - Type of credential (e.g., public_key) - """ - - kid: str = pydantic.Field() - """ - Key identifier from JWKS or calculated thumbprint - """ - - alg: str = pydantic.Field() - """ - Algorithm (e.g., RS256, RS384, PS256) - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/cimd_validation_result.py b/src/auth0/management/types/cimd_validation_result.py deleted file mode 100644 index 05ca113b..00000000 --- a/src/auth0/management/types/cimd_validation_result.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class CimdValidationResult(UniversalBaseModel): - """ - Validation result for the Client ID Metadata Document - """ - - valid: bool = pydantic.Field() - """ - Whether the metadata document passed validation - """ - - violations: typing.List[str] = pydantic.Field() - """ - Array of validation violation messages (if any) - """ - - warnings: typing.List[str] = pydantic.Field() - """ - Array of warning messages (if any) - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/client.py b/src/auth0/management/types/client.py deleted file mode 100644 index c3774934..00000000 --- a/src/auth0/management/types/client.py +++ /dev/null @@ -1,299 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .anonymous_sessions import AnonymousSessions -from .b_2_b_integration_configuration import B2BIntegrationConfiguration -from .client_addons import ClientAddons -from .client_anonymous_session_transfer_network_binding_enum import ClientAnonymousSessionTransferNetworkBindingEnum -from .client_app_type_enum import ClientAppTypeEnum -from .client_async_approval_notifications_channels_api_post_configuration import ( - ClientAsyncApprovalNotificationsChannelsApiPostConfiguration, -) -from .client_authentication_method import ClientAuthenticationMethod -from .client_compliance_level_enum import ClientComplianceLevelEnum -from .client_default_organization import ClientDefaultOrganization -from .client_encryption_key import ClientEncryptionKey -from .client_external_metadata_created_by_enum import ClientExternalMetadataCreatedByEnum -from .client_external_metadata_status_enum import ClientExternalMetadataStatusEnum -from .client_external_metadata_type_enum import ClientExternalMetadataTypeEnum -from .client_jwt_configuration import ClientJwtConfiguration -from .client_metadata import ClientMetadata -from .client_mobile import ClientMobile -from .client_my_organization_response_configuration import ClientMyOrganizationResponseConfiguration -from .client_oidc_backchannel_logout_settings import ClientOidcBackchannelLogoutSettings -from .client_oidc_support import ClientOidcSupport -from .client_organization_discovery_enum import ClientOrganizationDiscoveryEnum -from .client_organization_require_behavior_enum import ClientOrganizationRequireBehaviorEnum -from .client_organization_usage_enum import ClientOrganizationUsageEnum -from .client_redirection_policy_enum import ClientRedirectionPolicyEnum -from .client_refresh_token_configuration import ClientRefreshTokenConfiguration -from .client_session_transfer_configuration import ClientSessionTransferConfiguration -from .client_signed_request_object_with_credential_id import ClientSignedRequestObjectWithCredentialId -from .client_signing_keys import ClientSigningKeys -from .client_third_party_security_mode_enum import ClientThirdPartySecurityModeEnum -from .client_token_endpoint_auth_method_enum import ClientTokenEndpointAuthMethodEnum -from .client_token_exchange_configuration import ClientTokenExchangeConfiguration -from .client_token_vault_privileged_access_with_credential_id import ClientTokenVaultPrivilegedAccessWithCredentialId -from .express_configuration import ExpressConfiguration -from .fed_cm_login import FedCmLogin -from .google_account_linking_configuration import GoogleAccountLinkingConfiguration -from .identity_assertion_authorization_grant import IdentityAssertionAuthorizationGrant -from .native_social_login import NativeSocialLogin -from .token_quota import TokenQuota - - -class Client(UniversalBaseModel): - client_id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of this client. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The ISO 8601 timestamp of when this client was created. - """ - - updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The ISO 8601 timestamp of when this client was last updated. - """ - - tenant: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of the tenant this client belongs to. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of this client (min length: 1 character, does not allow `<` or `>`). - """ - - description: typing.Optional[str] = pydantic.Field(default=None) - """ - Free text description of this client (max length: 140 characters). - """ - - global_: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="global"), - pydantic.Field( - alias="global", - description="Whether this is your global 'All Applications' client representing legacy tenant settings (true) or a regular client (false).", - ), - ] = None - """ - Whether this is your global 'All Applications' client representing legacy tenant settings (true) or a regular client (false). - """ - - client_secret: typing.Optional[str] = pydantic.Field(default=None) - """ - Client secret (which you must not make public). - """ - - app_type: typing.Optional[ClientAppTypeEnum] = None - logo_uri: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the logo to display for this client. Recommended size is 150x150 pixels. - """ - - is_first_party: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this client a first party client (true) or not (false). - """ - - oidc_conformant: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this client conforms to strict OIDC specifications (true) or uses legacy features (false). - """ - - callbacks: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Comma-separated list of URLs whitelisted for Auth0 to use as a callback to the client after authentication. - """ - - allowed_origins: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Comma-separated list of URLs allowed to make requests from JavaScript to Auth0 API (typically used with CORS). By default, all your callback URLs will be allowed. This field allows you to enter other origins if necessary. You can also use wildcards at the subdomain level (e.g., https://*.contoso.com). Query strings and hash information are not taken into account when validating these URLs. - """ - - web_origins: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Comma-separated list of allowed origins for use with Cross-Origin Authentication, Device Flow, and web message response mode. - """ - - client_aliases: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - List of audiences/realms for SAML protocol. Used by the wsfed addon. - """ - - allowed_clients: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - List of allow clients and API ids that are allowed to make delegation requests. Empty means all all your clients are allowed. - """ - - allowed_logout_urls: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Comma-separated list of URLs that are valid to redirect to after logout from Auth0. Wildcards are allowed for subdomains. - """ - - session_transfer: typing.Optional[ClientSessionTransferConfiguration] = None - oidc_logout: typing.Optional[ClientOidcBackchannelLogoutSettings] = None - grant_types: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - List of grant types supported for this application. Can include `authorization_code`, `implicit`, `refresh_token`, `client_credentials`, `password`, `http://auth0.com/oauth/grant-type/password-realm`, `http://auth0.com/oauth/grant-type/mfa-oob`, `http://auth0.com/oauth/grant-type/mfa-otp`, `http://auth0.com/oauth/grant-type/mfa-recovery-code`, `urn:openid:params:grant-type:ciba`, `urn:ietf:params:oauth:grant-type:device_code`, and `urn:auth0:params:oauth:grant-type:token-exchange:federated-connection-access-token`. - """ - - jwt_configuration: typing.Optional[ClientJwtConfiguration] = None - signing_keys: typing.Optional[ClientSigningKeys] = None - encryption_key: typing.Optional[ClientEncryptionKey] = None - sso: typing.Optional[bool] = pydantic.Field(default=None) - """ - Applies only to SSO clients and determines whether Auth0 will handle Single Sign On (true) or whether the Identity Provider will (false). - """ - - sso_disabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether Single Sign On is disabled (true) or enabled (true). Defaults to true. - """ - - cross_origin_authentication: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this client can be used to make cross-origin authentication requests (true) or it is not allowed to make such requests (false). - """ - - cross_origin_loc: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the location in your site where the cross origin verification takes place for the cross-origin auth flow when performing Auth in your own domain instead of Auth0 hosted login page. - """ - - custom_login_page_on: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether a custom login page is to be used (true) or the default provided login page (false). - """ - - custom_login_page: typing.Optional[str] = pydantic.Field(default=None) - """ - The content (HTML, CSS, JS) of the custom login page. - """ - - custom_login_page_preview: typing.Optional[str] = pydantic.Field(default=None) - """ - The content (HTML, CSS, JS) of the custom login page. (Used on Previews) - """ - - form_template: typing.Optional[str] = pydantic.Field(default=None) - """ - HTML form template to be used for WS-Federation. - """ - - addons: typing.Optional[ClientAddons] = None - token_endpoint_auth_method: typing.Optional[ClientTokenEndpointAuthMethodEnum] = None - is_token_endpoint_ip_header_trusted: typing.Optional[bool] = pydantic.Field(default=None) - """ - If true, trust that the IP specified in the `auth0-forwarded-for` header is the end-user's IP for brute-force-protection on token endpoint. - """ - - client_metadata: typing.Optional[ClientMetadata] = None - mobile: typing.Optional[ClientMobile] = None - initiate_login_uri: typing.Optional[str] = pydantic.Field(default=None) - """ - Initiate login uri, must be https - """ - - native_social_login: typing.Optional[NativeSocialLogin] = None - fedcm_login: typing.Optional[FedCmLogin] = None - refresh_token: typing.Optional[ClientRefreshTokenConfiguration] = None - default_organization: typing.Optional[ClientDefaultOrganization] = None - organization_usage: typing.Optional[ClientOrganizationUsageEnum] = None - organization_require_behavior: typing.Optional[ClientOrganizationRequireBehaviorEnum] = None - organization_discovery_methods: typing.Optional[typing.List[ClientOrganizationDiscoveryEnum]] = pydantic.Field( - default=None - ) - """ - Defines the available methods for organization discovery during the `pre_login_prompt`. Users can discover their organization either by `email`, `organization_name` or both. - """ - - client_authentication_methods: typing.Optional[ClientAuthenticationMethod] = None - require_pushed_authorization_requests: typing.Optional[bool] = pydantic.Field(default=None) - """ - Makes the use of Pushed Authorization Requests mandatory for this client - """ - - require_proof_of_possession: typing.Optional[bool] = pydantic.Field(default=None) - """ - Makes the use of Proof-of-Possession mandatory for this client - """ - - signed_request_object: typing.Optional[ClientSignedRequestObjectWithCredentialId] = None - token_vault_privileged_access: typing.Optional[ClientTokenVaultPrivilegedAccessWithCredentialId] = None - compliance_level: typing.Optional[ClientComplianceLevelEnum] = None - skip_non_verifiable_callback_uri_confirmation_prompt: typing.Optional[bool] = pydantic.Field(default=None) - """ - Controls whether a confirmation prompt is shown during login flows when the redirect URI uses non-verifiable callback URIs (for example, a custom URI schema such as `myapp://`, or `localhost`). - If set to true, a confirmation prompt will not be shown. We recommend that this is set to false for improved protection from malicious apps. - See https://auth0.com/docs/secure/security-guidance/measures-against-app-impersonation for more information. - """ - - token_exchange: typing.Optional[ClientTokenExchangeConfiguration] = None - par_request_expiry: typing.Optional[int] = pydantic.Field(default=None) - """ - Specifies how long, in seconds, a Pushed Authorization Request URI remains valid - """ - - token_quota: typing.Optional[TokenQuota] = None - express_configuration: typing.Optional[ExpressConfiguration] = None - b_2_b_integration_configuration: typing_extensions.Annotated[ - typing.Optional[B2BIntegrationConfiguration], - FieldMetadata(alias="b2b_integration_configuration"), - pydantic.Field(alias="b2b_integration_configuration"), - ] = None - my_organization_configuration: typing.Optional[ClientMyOrganizationResponseConfiguration] = None - google_account_linking: typing.Optional[GoogleAccountLinkingConfiguration] = None - identity_assertion_authorization_grant: typing.Optional[IdentityAssertionAuthorizationGrant] = None - anonymous_sessions: typing.Optional[AnonymousSessions] = None - enforce_anon_session_transfer_network_binding: typing.Optional[ClientAnonymousSessionTransferNetworkBindingEnum] = ( - None - ) - third_party_security_mode: typing.Optional[ClientThirdPartySecurityModeEnum] = None - oidc_support: typing.Optional[ClientOidcSupport] = None - redirection_policy: typing.Optional[ClientRedirectionPolicyEnum] = None - resource_server_identifier: typing.Optional[str] = pydantic.Field(default=None) - """ - The identifier of the resource server that this client is linked to. - """ - - async_approval_notification_channels: typing.Optional[ - ClientAsyncApprovalNotificationsChannelsApiPostConfiguration - ] = None - external_metadata_type: typing.Optional[ClientExternalMetadataTypeEnum] = None - external_metadata_created_by: typing.Optional[ClientExternalMetadataCreatedByEnum] = None - external_metadata_status: typing.Optional[ClientExternalMetadataStatusEnum] = None - agent_id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of the agent associated with this client. - """ - - external_client_id: typing.Optional[str] = pydantic.Field(default=None) - """ - An alternate client identifier to be used during authorization flows. Only supports CIMD-based client identifiers. - """ - - jwks_uri: typing.Optional[str] = pydantic.Field(default=None) - """ - URL for the JSON Web Key Set (JWKS) containing the public keys used for private_key_jwt authentication. Only present for CIMD clients using private_key_jwt authentication. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/client_addon_aws.py b/src/auth0/management/types/client_addon_aws.py deleted file mode 100644 index 65879814..00000000 --- a/src/auth0/management/types/client_addon_aws.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class ClientAddonAws(UniversalBaseModel): - """ - AWS addon configuration. - """ - - principal: typing.Optional[str] = pydantic.Field(default=None) - """ - AWS principal ARN, e.g. `arn:aws:iam::010616021751:saml-provider/idpname` - """ - - role: typing.Optional[str] = pydantic.Field(default=None) - """ - AWS role ARN, e.g. `arn:aws:iam::010616021751:role/foo` - """ - - lifetime_in_seconds: typing.Optional[int] = pydantic.Field(default=None) - """ - AWS token lifetime in seconds - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/client_addon_azure_blob.py b/src/auth0/management/types/client_addon_azure_blob.py deleted file mode 100644 index e0aa175f..00000000 --- a/src/auth0/management/types/client_addon_azure_blob.py +++ /dev/null @@ -1,117 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata - - -class ClientAddonAzureBlob(UniversalBaseModel): - """ - Azure Blob Storage addon configuration. - """ - - account_name: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="accountName"), - pydantic.Field( - alias="accountName", - description="Your Azure storage account name. Usually first segment in your Azure storage URL. e.g. `https://acme-org.blob.core.windows.net` would be the account name `acme-org`.", - ), - ] = None - """ - Your Azure storage account name. Usually first segment in your Azure storage URL. e.g. `https://acme-org.blob.core.windows.net` would be the account name `acme-org`. - """ - - storage_access_key: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="storageAccessKey"), - pydantic.Field(alias="storageAccessKey", description="Access key associated with this storage account."), - ] = None - """ - Access key associated with this storage account. - """ - - container_name: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="containerName"), - pydantic.Field(alias="containerName", description="Container to request a token for. e.g. `my-container`."), - ] = None - """ - Container to request a token for. e.g. `my-container`. - """ - - blob_name: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="blobName"), - pydantic.Field( - alias="blobName", - description="Entity to request a token for. e.g. `my-blob`. If blank the computed SAS will apply to the entire storage container.", - ), - ] = None - """ - Entity to request a token for. e.g. `my-blob`. If blank the computed SAS will apply to the entire storage container. - """ - - expiration: typing.Optional[int] = pydantic.Field(default=None) - """ - Expiration in minutes for the generated token (default of 5 minutes). - """ - - signed_identifier: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="signedIdentifier"), - pydantic.Field( - alias="signedIdentifier", - description="Shared access policy identifier defined in your storage account resource.", - ), - ] = None - """ - Shared access policy identifier defined in your storage account resource. - """ - - blob_read: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates if the issued token has permission to read the content, properties, metadata and block list. Use the blob as the source of a copy operation. - """ - - blob_write: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates if the issued token has permission to create or write content, properties, metadata, or block list. Snapshot or lease the blob. Resize the blob (page blob only). Use the blob as the destination of a copy operation within the same account. - """ - - blob_delete: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates if the issued token has permission to delete the blob. - """ - - container_read: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates if the issued token has permission to read the content, properties, metadata or block list of any blob in the container. Use any blob in the container as the source of a copy operation - """ - - container_write: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates that for any blob in the container if the issued token has permission to create or write content, properties, metadata, or block list. Snapshot or lease the blob. Resize the blob (page blob only). Use the blob as the destination of a copy operation within the same account. - """ - - container_delete: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates if issued token has permission to delete any blob in the container. - """ - - container_list: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates if the issued token has permission to list blobs in the container. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/client_addon_azure_sb.py b/src/auth0/management/types/client_addon_azure_sb.py deleted file mode 100644 index e5682057..00000000 --- a/src/auth0/management/types/client_addon_azure_sb.py +++ /dev/null @@ -1,62 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata - - -class ClientAddonAzureSb(UniversalBaseModel): - """ - Azure Storage Bus addon configuration. - """ - - namespace: typing.Optional[str] = pydantic.Field(default=None) - """ - Your Azure Service Bus namespace. Usually the first segment of your Service Bus URL (e.g. `https://acme-org.servicebus.windows.net` would be `acme-org`). - """ - - sas_key_name: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="sasKeyName"), - pydantic.Field( - alias="sasKeyName", description="Your shared access policy name defined in your Service Bus entity." - ), - ] = None - """ - Your shared access policy name defined in your Service Bus entity. - """ - - sas_key: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="sasKey"), - pydantic.Field(alias="sasKey", description="Primary Key associated with your shared access policy."), - ] = None - """ - Primary Key associated with your shared access policy. - """ - - entity_path: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="entityPath"), - pydantic.Field(alias="entityPath", description="Entity you want to request a token for. e.g. `my-queue`.'"), - ] = None - """ - Entity you want to request a token for. e.g. `my-queue`.' - """ - - expiration: typing.Optional[int] = pydantic.Field(default=None) - """ - Optional expiration in minutes for the generated token. Defaults to 5 minutes. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/client_addon_box.py b/src/auth0/management/types/client_addon_box.py deleted file mode 100644 index 02d2147e..00000000 --- a/src/auth0/management/types/client_addon_box.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ClientAddonBox = typing.Dict[str, typing.Any] -""" -Box SSO indicator (no configuration settings needed for Box SSO). -""" diff --git a/src/auth0/management/types/client_addon_cloud_bees.py b/src/auth0/management/types/client_addon_cloud_bees.py deleted file mode 100644 index 0c666f5e..00000000 --- a/src/auth0/management/types/client_addon_cloud_bees.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ClientAddonCloudBees = typing.Dict[str, typing.Any] -""" -CloudBees SSO indicator (no configuration settings needed for CloudBees SSO). -""" diff --git a/src/auth0/management/types/client_addon_concur.py b/src/auth0/management/types/client_addon_concur.py deleted file mode 100644 index 0b0359b3..00000000 --- a/src/auth0/management/types/client_addon_concur.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ClientAddonConcur = typing.Dict[str, typing.Any] -""" -Concur SSO indicator (no configuration settings needed for Concur SSO). -""" diff --git a/src/auth0/management/types/client_addon_dropbox.py b/src/auth0/management/types/client_addon_dropbox.py deleted file mode 100644 index 457f0a43..00000000 --- a/src/auth0/management/types/client_addon_dropbox.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ClientAddonDropbox = typing.Dict[str, typing.Any] -""" -Dropbox SSO indicator (no configuration settings needed for Dropbox SSO). -""" diff --git a/src/auth0/management/types/client_addon_echo_sign.py b/src/auth0/management/types/client_addon_echo_sign.py deleted file mode 100644 index a16ed54d..00000000 --- a/src/auth0/management/types/client_addon_echo_sign.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class ClientAddonEchoSign(UniversalBaseModel): - """ - Adobe EchoSign SSO configuration. - """ - - domain: typing.Optional[str] = pydantic.Field(default=None) - """ - Your custom domain found in your EchoSign URL. e.g. `https://acme-org.echosign.com` would be `acme-org`. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/client_addon_egnyte.py b/src/auth0/management/types/client_addon_egnyte.py deleted file mode 100644 index dfd85e05..00000000 --- a/src/auth0/management/types/client_addon_egnyte.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class ClientAddonEgnyte(UniversalBaseModel): - """ - Egnyte SSO configuration. - """ - - domain: typing.Optional[str] = pydantic.Field(default=None) - """ - Your custom domain found in your Egnyte URL. e.g. `https://acme-org.egnyte.com` would be `acme-org`. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/client_addon_firebase.py b/src/auth0/management/types/client_addon_firebase.py deleted file mode 100644 index aff4f42d..00000000 --- a/src/auth0/management/types/client_addon_firebase.py +++ /dev/null @@ -1,46 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class ClientAddonFirebase(UniversalBaseModel): - """ - Google Firebase addon configuration. - """ - - secret: typing.Optional[str] = pydantic.Field(default=None) - """ - Google Firebase Secret. (SDK 2 only). - """ - - private_key_id: typing.Optional[str] = pydantic.Field(default=None) - """ - Optional ID of the private key to obtain kid header in the issued token (SDK v3+ tokens only). - """ - - private_key: typing.Optional[str] = pydantic.Field(default=None) - """ - Private Key for signing the token (SDK v3+ tokens only). - """ - - client_email: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of the Service Account you have created (shown as `client_email` in the generated JSON file, SDK v3+ tokens only). - """ - - lifetime_in_seconds: typing.Optional[int] = pydantic.Field(default=None) - """ - Optional expiration in seconds for the generated token. Defaults to 3600 seconds (SDK v3+ tokens only). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/client_addon_layer.py b/src/auth0/management/types/client_addon_layer.py deleted file mode 100644 index d553c7c8..00000000 --- a/src/auth0/management/types/client_addon_layer.py +++ /dev/null @@ -1,60 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata - - -class ClientAddonLayer(UniversalBaseModel): - """ - Layer addon configuration. - """ - - provider_id: typing_extensions.Annotated[ - str, - FieldMetadata(alias="providerId"), - pydantic.Field(alias="providerId", description="Provider ID of your Layer account"), - ] - """ - Provider ID of your Layer account - """ - - key_id: typing_extensions.Annotated[ - str, - FieldMetadata(alias="keyId"), - pydantic.Field(alias="keyId", description="Authentication Key identifier used to sign the Layer token."), - ] - """ - Authentication Key identifier used to sign the Layer token. - """ - - private_key: typing_extensions.Annotated[ - str, - FieldMetadata(alias="privateKey"), - pydantic.Field(alias="privateKey", description="Private key for signing the Layer token."), - ] - """ - Private key for signing the Layer token. - """ - - principal: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of the property used as the unique user id in Layer. If not specified `user_id` is used. - """ - - expiration: typing.Optional[int] = pydantic.Field(default=None) - """ - Optional expiration in minutes for the generated token. Defaults to 5 minutes. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/client_addon_mscrm.py b/src/auth0/management/types/client_addon_mscrm.py deleted file mode 100644 index 27d8696e..00000000 --- a/src/auth0/management/types/client_addon_mscrm.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class ClientAddonMscrm(UniversalBaseModel): - """ - Microsoft Dynamics CRM SSO configuration. - """ - - url: str = pydantic.Field() - """ - Microsoft Dynamics CRM application URL. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/client_addon_new_relic.py b/src/auth0/management/types/client_addon_new_relic.py deleted file mode 100644 index 29047cce..00000000 --- a/src/auth0/management/types/client_addon_new_relic.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class ClientAddonNewRelic(UniversalBaseModel): - """ - New Relic SSO configuration. - """ - - account: typing.Optional[str] = pydantic.Field(default=None) - """ - Your New Relic Account ID found in your New Relic URL after the `/accounts/` path. e.g. `https://rpm.newrelic.com/accounts/123456/query` would be `123456`. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/client_addon_oag.py b/src/auth0/management/types/client_addon_oag.py deleted file mode 100644 index 9c893b9f..00000000 --- a/src/auth0/management/types/client_addon_oag.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class ClientAddonOag(UniversalBaseModel): - """ - Okta Access Gateway SSO configuration - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/client_addon_office_365.py b/src/auth0/management/types/client_addon_office_365.py deleted file mode 100644 index b4748a23..00000000 --- a/src/auth0/management/types/client_addon_office_365.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class ClientAddonOffice365(UniversalBaseModel): - """ - Microsoft Office 365 SSO configuration. - """ - - domain: typing.Optional[str] = pydantic.Field(default=None) - """ - Your Office 365 domain name. e.g. `acme-org.com`. - """ - - connection: typing.Optional[str] = pydantic.Field(default=None) - """ - Optional Auth0 database connection for testing an already-configured Office 365 tenant. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/client_addon_rms.py b/src/auth0/management/types/client_addon_rms.py deleted file mode 100644 index d988b11d..00000000 --- a/src/auth0/management/types/client_addon_rms.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class ClientAddonRms(UniversalBaseModel): - """ - Active Directory Rights Management Service SSO configuration. - """ - - url: str = pydantic.Field() - """ - URL of your Rights Management Server. It can be internal or external, but users will have to be able to reach it. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/client_addon_salesforce.py b/src/auth0/management/types/client_addon_salesforce.py deleted file mode 100644 index aee3bf32..00000000 --- a/src/auth0/management/types/client_addon_salesforce.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class ClientAddonSalesforce(UniversalBaseModel): - """ - Salesforce SSO configuration. - """ - - entity_id: typing.Optional[str] = pydantic.Field(default=None) - """ - Arbitrary logical URL that identifies the Saleforce resource. e.g. `https://acme-org.com`. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/client_addon_salesforce_api.py b/src/auth0/management/types/client_addon_salesforce_api.py deleted file mode 100644 index 443b4e8e..00000000 --- a/src/auth0/management/types/client_addon_salesforce_api.py +++ /dev/null @@ -1,47 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata - - -class ClientAddonSalesforceApi(UniversalBaseModel): - """ - Salesforce API addon configuration. - """ - - clientid: typing.Optional[str] = pydantic.Field(default=None) - """ - Consumer Key assigned by Salesforce to the Connected App. - """ - - principal: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of the property in the user object that maps to a Salesforce username. e.g. `email`. - """ - - community_name: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="communityName"), - pydantic.Field(alias="communityName", description="Community name."), - ] = None - """ - Community name. - """ - - community_url_section: typing.Optional[str] = pydantic.Field(default=None) - """ - Community url section. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/client_addon_salesforce_sandbox_api.py b/src/auth0/management/types/client_addon_salesforce_sandbox_api.py deleted file mode 100644 index 763d0125..00000000 --- a/src/auth0/management/types/client_addon_salesforce_sandbox_api.py +++ /dev/null @@ -1,47 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata - - -class ClientAddonSalesforceSandboxApi(UniversalBaseModel): - """ - Salesforce Sandbox addon configuration. - """ - - clientid: typing.Optional[str] = pydantic.Field(default=None) - """ - Consumer Key assigned by Salesforce to the Connected App. - """ - - principal: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of the property in the user object that maps to a Salesforce username. e.g. `email`. - """ - - community_name: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="communityName"), - pydantic.Field(alias="communityName", description="Community name."), - ] = None - """ - Community name. - """ - - community_url_section: typing.Optional[str] = pydantic.Field(default=None) - """ - Community url section. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/client_addon_saml.py b/src/auth0/management/types/client_addon_saml.py deleted file mode 100644 index 930c26a8..00000000 --- a/src/auth0/management/types/client_addon_saml.py +++ /dev/null @@ -1,67 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .client_addon_saml_mapping import ClientAddonSamlMapping - - -class ClientAddonSaml(UniversalBaseModel): - """ - SAML2 addon indicator (no configuration settings needed for SAML2 addon). - """ - - mappings: typing.Optional[ClientAddonSamlMapping] = None - audience: typing.Optional[str] = None - recipient: typing.Optional[str] = None - create_upn_claim: typing_extensions.Annotated[ - typing.Optional[bool], FieldMetadata(alias="createUpnClaim"), pydantic.Field(alias="createUpnClaim") - ] = None - map_unknown_claims_as_is: typing_extensions.Annotated[ - typing.Optional[bool], FieldMetadata(alias="mapUnknownClaimsAsIs"), pydantic.Field(alias="mapUnknownClaimsAsIs") - ] = None - passthrough_claims_with_no_mapping: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="passthroughClaimsWithNoMapping"), - pydantic.Field(alias="passthroughClaimsWithNoMapping"), - ] = None - map_identities: typing_extensions.Annotated[ - typing.Optional[bool], FieldMetadata(alias="mapIdentities"), pydantic.Field(alias="mapIdentities") - ] = None - signature_algorithm: typing_extensions.Annotated[ - typing.Optional[str], FieldMetadata(alias="signatureAlgorithm"), pydantic.Field(alias="signatureAlgorithm") - ] = None - digest_algorithm: typing_extensions.Annotated[ - typing.Optional[str], FieldMetadata(alias="digestAlgorithm"), pydantic.Field(alias="digestAlgorithm") - ] = None - issuer: typing.Optional[str] = None - destination: typing.Optional[str] = None - lifetime_in_seconds: typing_extensions.Annotated[ - typing.Optional[int], FieldMetadata(alias="lifetimeInSeconds"), pydantic.Field(alias="lifetimeInSeconds") - ] = None - sign_response: typing_extensions.Annotated[ - typing.Optional[bool], FieldMetadata(alias="signResponse"), pydantic.Field(alias="signResponse") - ] = None - name_identifier_format: typing_extensions.Annotated[ - typing.Optional[str], FieldMetadata(alias="nameIdentifierFormat"), pydantic.Field(alias="nameIdentifierFormat") - ] = None - name_identifier_probes: typing_extensions.Annotated[ - typing.Optional[typing.List[str]], - FieldMetadata(alias="nameIdentifierProbes"), - pydantic.Field(alias="nameIdentifierProbes"), - ] = None - authn_context_class_ref: typing_extensions.Annotated[ - typing.Optional[str], FieldMetadata(alias="authnContextClassRef"), pydantic.Field(alias="authnContextClassRef") - ] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/client_addon_saml_mapping.py b/src/auth0/management/types/client_addon_saml_mapping.py deleted file mode 100644 index 00a9bc9b..00000000 --- a/src/auth0/management/types/client_addon_saml_mapping.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ClientAddonSamlMapping = typing.Dict[str, typing.Any] diff --git a/src/auth0/management/types/client_addon_sapapi.py b/src/auth0/management/types/client_addon_sapapi.py deleted file mode 100644 index ecddab8c..00000000 --- a/src/auth0/management/types/client_addon_sapapi.py +++ /dev/null @@ -1,78 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata - - -class ClientAddonSapapi(UniversalBaseModel): - """ - SAP API addon configuration. - """ - - clientid: typing.Optional[str] = pydantic.Field(default=None) - """ - If activated in the OAuth 2.0 client configuration (transaction SOAUTH2) the SAML attribute client_id must be set and equal the client_id form parameter of the access token request. - """ - - username_attribute: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="usernameAttribute"), - pydantic.Field( - alias="usernameAttribute", - description="Name of the property in the user object that maps to a SAP username. e.g. `email`.", - ), - ] = None - """ - Name of the property in the user object that maps to a SAP username. e.g. `email`. - """ - - token_endpoint_url: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="tokenEndpointUrl"), - pydantic.Field(alias="tokenEndpointUrl", description="Your SAP OData server OAuth2 token endpoint URL."), - ] = None - """ - Your SAP OData server OAuth2 token endpoint URL. - """ - - scope: typing.Optional[str] = pydantic.Field(default=None) - """ - Requested scope for SAP APIs. - """ - - service_password: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="servicePassword"), - pydantic.Field( - alias="servicePassword", - description="Service account password to use to authenticate API calls to the token endpoint.", - ), - ] = None - """ - Service account password to use to authenticate API calls to the token endpoint. - """ - - name_identifier_format: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="nameIdentifierFormat"), - pydantic.Field( - alias="nameIdentifierFormat", - description="NameID element of the Subject which can be used to express the user's identity. Defaults to `urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified`.", - ), - ] = None - """ - NameID element of the Subject which can be used to express the user's identity. Defaults to `urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified`. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/client_addon_sentry.py b/src/auth0/management/types/client_addon_sentry.py deleted file mode 100644 index c80fbfc7..00000000 --- a/src/auth0/management/types/client_addon_sentry.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class ClientAddonSentry(UniversalBaseModel): - """ - Sentry SSO configuration. - """ - - org_slug: typing.Optional[str] = pydantic.Field(default=None) - """ - Generated slug for your Sentry organization. Found in your Sentry URL. e.g. `https://sentry.acme.com/acme-org/` would be `acme-org`. - """ - - base_url: typing.Optional[str] = pydantic.Field(default=None) - """ - URL prefix only if running Sentry Community Edition, otherwise leave should be blank. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/client_addon_share_point.py b/src/auth0/management/types/client_addon_share_point.py deleted file mode 100644 index ae87d875..00000000 --- a/src/auth0/management/types/client_addon_share_point.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .client_addon_share_point_external_url import ClientAddonSharePointExternalUrl - - -class ClientAddonSharePoint(UniversalBaseModel): - """ - SharePoint SSO configuration. - """ - - url: typing.Optional[str] = pydantic.Field(default=None) - """ - Internal SharePoint application URL. - """ - - external_url: typing.Optional[ClientAddonSharePointExternalUrl] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/client_addon_share_point_external_url.py b/src/auth0/management/types/client_addon_share_point_external_url.py deleted file mode 100644 index dc42cd04..00000000 --- a/src/auth0/management/types/client_addon_share_point_external_url.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ClientAddonSharePointExternalUrl = typing.Union[typing.List[str], str] diff --git a/src/auth0/management/types/client_addon_slack.py b/src/auth0/management/types/client_addon_slack.py deleted file mode 100644 index df0b0ec4..00000000 --- a/src/auth0/management/types/client_addon_slack.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class ClientAddonSlack(UniversalBaseModel): - """ - Slack team or workspace name usually first segment in your Slack URL. e.g. `https://acme-org.slack.com` would be `acme-org`. - """ - - team: str = pydantic.Field() - """ - Slack team name. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/client_addon_spring_cm.py b/src/auth0/management/types/client_addon_spring_cm.py deleted file mode 100644 index f38aa5ec..00000000 --- a/src/auth0/management/types/client_addon_spring_cm.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class ClientAddonSpringCm(UniversalBaseModel): - """ - SpringCM SSO configuration. - """ - - acsurl: typing.Optional[str] = pydantic.Field(default=None) - """ - SpringCM ACS URL, e.g. `https://na11.springcm.com/atlas/sso/SSOEndpoint.ashx`. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/client_addon_sso_integration.py b/src/auth0/management/types/client_addon_sso_integration.py deleted file mode 100644 index 696a92f9..00000000 --- a/src/auth0/management/types/client_addon_sso_integration.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class ClientAddonSsoIntegration(UniversalBaseModel): - name: typing.Optional[str] = pydantic.Field(default=None) - """ - SSO integration name - """ - - version: typing.Optional[str] = pydantic.Field(default=None) - """ - SSO integration version installed - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/client_addon_wams.py b/src/auth0/management/types/client_addon_wams.py deleted file mode 100644 index c2fc6617..00000000 --- a/src/auth0/management/types/client_addon_wams.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class ClientAddonWams(UniversalBaseModel): - """ - Windows Azure Mobile Services addon configuration. - """ - - masterkey: typing.Optional[str] = pydantic.Field(default=None) - """ - Your master key for Windows Azure Mobile Services. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/client_addon_ws_fed.py b/src/auth0/management/types/client_addon_ws_fed.py deleted file mode 100644 index ca0cb3cd..00000000 --- a/src/auth0/management/types/client_addon_ws_fed.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ClientAddonWsFed = typing.Dict[str, typing.Any] -""" -WS-Fed (WIF) addon indicator. Actual configuration is stored in `callback` and `client_aliases` properties on the client. -""" diff --git a/src/auth0/management/types/client_addon_zendesk.py b/src/auth0/management/types/client_addon_zendesk.py deleted file mode 100644 index 2b231974..00000000 --- a/src/auth0/management/types/client_addon_zendesk.py +++ /dev/null @@ -1,35 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata - - -class ClientAddonZendesk(UniversalBaseModel): - """ - Zendesk SSO configuration. - """ - - account_name: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="accountName"), - pydantic.Field( - alias="accountName", - description="Zendesk account name usually first segment in your Zendesk URL. e.g. `https://acme-org.zendesk.com` would be `acme-org`.", - ), - ] = None - """ - Zendesk account name usually first segment in your Zendesk URL. e.g. `https://acme-org.zendesk.com` would be `acme-org`. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/client_addon_zoom.py b/src/auth0/management/types/client_addon_zoom.py deleted file mode 100644 index 51c1c3e4..00000000 --- a/src/auth0/management/types/client_addon_zoom.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class ClientAddonZoom(UniversalBaseModel): - """ - Zoom SSO configuration. - """ - - account: typing.Optional[str] = pydantic.Field(default=None) - """ - Zoom account name usually first segment of your Zoom URL, e.g. `https://acme-org.zoom.us` would be `acme-org`. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/client_addons.py b/src/auth0/management/types/client_addons.py deleted file mode 100644 index 54400dbe..00000000 --- a/src/auth0/management/types/client_addons.py +++ /dev/null @@ -1,86 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .client_addon_aws import ClientAddonAws -from .client_addon_azure_blob import ClientAddonAzureBlob -from .client_addon_azure_sb import ClientAddonAzureSb -from .client_addon_box import ClientAddonBox -from .client_addon_cloud_bees import ClientAddonCloudBees -from .client_addon_concur import ClientAddonConcur -from .client_addon_dropbox import ClientAddonDropbox -from .client_addon_echo_sign import ClientAddonEchoSign -from .client_addon_egnyte import ClientAddonEgnyte -from .client_addon_firebase import ClientAddonFirebase -from .client_addon_layer import ClientAddonLayer -from .client_addon_mscrm import ClientAddonMscrm -from .client_addon_new_relic import ClientAddonNewRelic -from .client_addon_oag import ClientAddonOag -from .client_addon_office_365 import ClientAddonOffice365 -from .client_addon_rms import ClientAddonRms -from .client_addon_salesforce import ClientAddonSalesforce -from .client_addon_salesforce_api import ClientAddonSalesforceApi -from .client_addon_salesforce_sandbox_api import ClientAddonSalesforceSandboxApi -from .client_addon_saml import ClientAddonSaml -from .client_addon_sapapi import ClientAddonSapapi -from .client_addon_sentry import ClientAddonSentry -from .client_addon_share_point import ClientAddonSharePoint -from .client_addon_slack import ClientAddonSlack -from .client_addon_spring_cm import ClientAddonSpringCm -from .client_addon_sso_integration import ClientAddonSsoIntegration -from .client_addon_wams import ClientAddonWams -from .client_addon_ws_fed import ClientAddonWsFed -from .client_addon_zendesk import ClientAddonZendesk -from .client_addon_zoom import ClientAddonZoom - - -class ClientAddons(UniversalBaseModel): - """ - Addons enabled for this client and their associated configurations. - """ - - aws: typing.Optional[ClientAddonAws] = None - azure_blob: typing.Optional[ClientAddonAzureBlob] = None - azure_sb: typing.Optional[ClientAddonAzureSb] = None - rms: typing.Optional[ClientAddonRms] = None - mscrm: typing.Optional[ClientAddonMscrm] = None - slack: typing.Optional[ClientAddonSlack] = None - sentry: typing.Optional[ClientAddonSentry] = None - box: typing.Optional[ClientAddonBox] = None - cloudbees: typing.Optional[ClientAddonCloudBees] = None - concur: typing.Optional[ClientAddonConcur] = None - dropbox: typing.Optional[ClientAddonDropbox] = None - echosign: typing.Optional[ClientAddonEchoSign] = None - egnyte: typing.Optional[ClientAddonEgnyte] = None - firebase: typing.Optional[ClientAddonFirebase] = None - newrelic: typing.Optional[ClientAddonNewRelic] = None - office_365: typing_extensions.Annotated[ - typing.Optional[ClientAddonOffice365], FieldMetadata(alias="office365"), pydantic.Field(alias="office365") - ] = None - salesforce: typing.Optional[ClientAddonSalesforce] = None - salesforce_api: typing.Optional[ClientAddonSalesforceApi] = None - salesforce_sandbox_api: typing.Optional[ClientAddonSalesforceSandboxApi] = None - samlp: typing.Optional[ClientAddonSaml] = None - layer: typing.Optional[ClientAddonLayer] = None - sap_api: typing.Optional[ClientAddonSapapi] = None - sharepoint: typing.Optional[ClientAddonSharePoint] = None - springcm: typing.Optional[ClientAddonSpringCm] = None - wams: typing.Optional[ClientAddonWams] = None - wsfed: typing.Optional[ClientAddonWsFed] = None - zendesk: typing.Optional[ClientAddonZendesk] = None - zoom: typing.Optional[ClientAddonZoom] = None - sso_integration: typing.Optional[ClientAddonSsoIntegration] = None - oag: typing.Optional[ClientAddonOag] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/client_anonymous_session_transfer_network_binding_enum.py b/src/auth0/management/types/client_anonymous_session_transfer_network_binding_enum.py deleted file mode 100644 index be429783..00000000 --- a/src/auth0/management/types/client_anonymous_session_transfer_network_binding_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ClientAnonymousSessionTransferNetworkBindingEnum = typing.Union[typing.Literal["ip", "asn", "none"], typing.Any] diff --git a/src/auth0/management/types/client_app_type_enum.py b/src/auth0/management/types/client_app_type_enum.py deleted file mode 100644 index 28094665..00000000 --- a/src/auth0/management/types/client_app_type_enum.py +++ /dev/null @@ -1,34 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ClientAppTypeEnum = typing.Union[ - typing.Literal[ - "native", - "spa", - "regular_web", - "non_interactive", - "resource_server", - "express_configuration", - "rms", - "box", - "cloudbees", - "concur", - "dropbox", - "mscrm", - "echosign", - "egnyte", - "newrelic", - "office365", - "salesforce", - "sentry", - "sharepoint", - "slack", - "springcm", - "zendesk", - "zoom", - "sso_integration", - "oag", - ], - typing.Any, -] diff --git a/src/auth0/management/types/client_async_approval_notifications_channels_api_patch_configuration.py b/src/auth0/management/types/client_async_approval_notifications_channels_api_patch_configuration.py deleted file mode 100644 index 9fa2c4e3..00000000 --- a/src/auth0/management/types/client_async_approval_notifications_channels_api_patch_configuration.py +++ /dev/null @@ -1,12 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .async_approval_notifications_channels_enum import AsyncApprovalNotificationsChannelsEnum - -ClientAsyncApprovalNotificationsChannelsApiPatchConfiguration = typing.Optional[ - typing.List[AsyncApprovalNotificationsChannelsEnum] -] -""" -Array of notification channels for contacting the user when their approval is required. Valid values are `guardian-push`, `email`, `my-account`. -""" diff --git a/src/auth0/management/types/client_async_approval_notifications_channels_api_post_configuration.py b/src/auth0/management/types/client_async_approval_notifications_channels_api_post_configuration.py deleted file mode 100644 index ef7fa6f3..00000000 --- a/src/auth0/management/types/client_async_approval_notifications_channels_api_post_configuration.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .async_approval_notifications_channels_enum import AsyncApprovalNotificationsChannelsEnum - -ClientAsyncApprovalNotificationsChannelsApiPostConfiguration = typing.List[AsyncApprovalNotificationsChannelsEnum] -""" -Array of notification channels for contacting the user when their approval is required. Valid values are `guardian-push`, `email`, `my-account`. -""" diff --git a/src/auth0/management/types/client_authentication_method.py b/src/auth0/management/types/client_authentication_method.py deleted file mode 100644 index 844cac19..00000000 --- a/src/auth0/management/types/client_authentication_method.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .client_authentication_method_private_key_jwt import ClientAuthenticationMethodPrivateKeyJwt -from .client_authentication_method_self_signed_tls_client_auth import ClientAuthenticationMethodSelfSignedTlsClientAuth -from .client_authentication_method_tls_client_auth import ClientAuthenticationMethodTlsClientAuth - - -class ClientAuthenticationMethod(UniversalBaseModel): - """ - Defines client authentication methods. - """ - - private_key_jwt: typing.Optional[ClientAuthenticationMethodPrivateKeyJwt] = None - tls_client_auth: typing.Optional[ClientAuthenticationMethodTlsClientAuth] = None - self_signed_tls_client_auth: typing.Optional[ClientAuthenticationMethodSelfSignedTlsClientAuth] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/client_authentication_method_private_key_jwt.py b/src/auth0/management/types/client_authentication_method_private_key_jwt.py deleted file mode 100644 index 61899622..00000000 --- a/src/auth0/management/types/client_authentication_method_private_key_jwt.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .client_authentication_method_private_key_jwt_credentials import ClientAuthenticationMethodPrivateKeyJwtCredentials - - -class ClientAuthenticationMethodPrivateKeyJwt(UniversalBaseModel): - """ - Defines `private_key_jwt` client authentication method. If this property is defined, the client is enabled to use the Private Key JWT authentication method. - """ - - credentials: ClientAuthenticationMethodPrivateKeyJwtCredentials - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/client_authentication_method_private_key_jwt_credentials.py b/src/auth0/management/types/client_authentication_method_private_key_jwt_credentials.py deleted file mode 100644 index 4e2656fa..00000000 --- a/src/auth0/management/types/client_authentication_method_private_key_jwt_credentials.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .credential_id import CredentialId - -ClientAuthenticationMethodPrivateKeyJwtCredentials = typing.List[CredentialId] -""" -A list of unique and previously created credential IDs enabled on the client for Private Key JWT authentication. -""" diff --git a/src/auth0/management/types/client_authentication_method_self_signed_tls_client_auth.py b/src/auth0/management/types/client_authentication_method_self_signed_tls_client_auth.py deleted file mode 100644 index 01130d01..00000000 --- a/src/auth0/management/types/client_authentication_method_self_signed_tls_client_auth.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .client_authentication_method_self_signed_tls_client_auth_credentials import ( - ClientAuthenticationMethodSelfSignedTlsClientAuthCredentials, -) - - -class ClientAuthenticationMethodSelfSignedTlsClientAuth(UniversalBaseModel): - """ - Defines `self_signed_tls_client_auth` client authentication method. If the property is defined, the client is configured to use mTLS authentication method utilizing self-signed certificate. - """ - - credentials: ClientAuthenticationMethodSelfSignedTlsClientAuthCredentials - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/client_authentication_method_self_signed_tls_client_auth_credentials.py b/src/auth0/management/types/client_authentication_method_self_signed_tls_client_auth_credentials.py deleted file mode 100644 index fde1d1a0..00000000 --- a/src/auth0/management/types/client_authentication_method_self_signed_tls_client_auth_credentials.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .credential_id import CredentialId - -ClientAuthenticationMethodSelfSignedTlsClientAuthCredentials = typing.List[CredentialId] -""" -A list of unique and previously created credential IDs enabled on the client for mTLS authentication utilizing self-signed certificate. -""" diff --git a/src/auth0/management/types/client_authentication_method_tls_client_auth.py b/src/auth0/management/types/client_authentication_method_tls_client_auth.py deleted file mode 100644 index 2df6d76f..00000000 --- a/src/auth0/management/types/client_authentication_method_tls_client_auth.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .client_authentication_method_tls_client_auth_credentials import ClientAuthenticationMethodTlsClientAuthCredentials - - -class ClientAuthenticationMethodTlsClientAuth(UniversalBaseModel): - """ - Defines `tls_client_auth` client authentication method. If the property is defined, the client is configured to use CA-based mTLS authentication method. - """ - - credentials: ClientAuthenticationMethodTlsClientAuthCredentials - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/client_authentication_method_tls_client_auth_credentials.py b/src/auth0/management/types/client_authentication_method_tls_client_auth_credentials.py deleted file mode 100644 index 0660ee06..00000000 --- a/src/auth0/management/types/client_authentication_method_tls_client_auth_credentials.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .credential_id import CredentialId - -ClientAuthenticationMethodTlsClientAuthCredentials = typing.List[CredentialId] -""" -A list of unique and previously created credential IDs enabled on the client for CA-based mTLS authentication. -""" diff --git a/src/auth0/management/types/client_compliance_level_enum.py b/src/auth0/management/types/client_compliance_level_enum.py deleted file mode 100644 index cd916dac..00000000 --- a/src/auth0/management/types/client_compliance_level_enum.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ClientComplianceLevelEnum = typing.Union[ - typing.Literal["none", "fapi1_adv_pkj_par", "fapi1_adv_mtls_par", "fapi2_sp_pkj_mtls", "fapi2_sp_mtls_mtls"], - typing.Any, -] diff --git a/src/auth0/management/types/client_create_authentication_method.py b/src/auth0/management/types/client_create_authentication_method.py deleted file mode 100644 index b1ef1ab8..00000000 --- a/src/auth0/management/types/client_create_authentication_method.py +++ /dev/null @@ -1,30 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .client_create_authentication_method_private_key_jwt import ClientCreateAuthenticationMethodPrivateKeyJwt -from .client_create_authentication_method_tls_client_auth import ClientCreateAuthenticationMethodTlsClientAuth -from .create_client_authentication_method_self_signed_tls_client_auth import ( - CreateClientAuthenticationMethodSelfSignedTlsClientAuth, -) - - -class ClientCreateAuthenticationMethod(UniversalBaseModel): - """ - Defines client authentication methods. - """ - - private_key_jwt: typing.Optional[ClientCreateAuthenticationMethodPrivateKeyJwt] = None - tls_client_auth: typing.Optional[ClientCreateAuthenticationMethodTlsClientAuth] = None - self_signed_tls_client_auth: typing.Optional[CreateClientAuthenticationMethodSelfSignedTlsClientAuth] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/client_create_authentication_method_private_key_jwt.py b/src/auth0/management/types/client_create_authentication_method_private_key_jwt.py deleted file mode 100644 index 98a44fae..00000000 --- a/src/auth0/management/types/client_create_authentication_method_private_key_jwt.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .client_create_authentication_method_private_key_jwt_credentials import ( - ClientCreateAuthenticationMethodPrivateKeyJwtCredentials, -) - - -class ClientCreateAuthenticationMethodPrivateKeyJwt(UniversalBaseModel): - """ - Defines `private_key_jwt` client authentication method. If this property is defined, the client is enabled to use the Private Key JWT authentication method. - """ - - credentials: ClientCreateAuthenticationMethodPrivateKeyJwtCredentials - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/client_create_authentication_method_private_key_jwt_credentials.py b/src/auth0/management/types/client_create_authentication_method_private_key_jwt_credentials.py deleted file mode 100644 index fa941cc9..00000000 --- a/src/auth0/management/types/client_create_authentication_method_private_key_jwt_credentials.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .public_key_credential import PublicKeyCredential - -ClientCreateAuthenticationMethodPrivateKeyJwtCredentials = typing.List[PublicKeyCredential] -""" -Fully defined credentials that will be enabled on the client for Private Key JWT authentication. -""" diff --git a/src/auth0/management/types/client_create_authentication_method_tls_client_auth.py b/src/auth0/management/types/client_create_authentication_method_tls_client_auth.py deleted file mode 100644 index 064ca7af..00000000 --- a/src/auth0/management/types/client_create_authentication_method_tls_client_auth.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .client_create_authentication_method_tls_client_auth_credentials import ( - ClientCreateAuthenticationMethodTlsClientAuthCredentials, -) - - -class ClientCreateAuthenticationMethodTlsClientAuth(UniversalBaseModel): - """ - Defines `tls_client_auth` client authentication method. If the property is defined, the client is configured to use CA-based mTLS authentication method. - """ - - credentials: ClientCreateAuthenticationMethodTlsClientAuthCredentials - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/client_create_authentication_method_tls_client_auth_credentials.py b/src/auth0/management/types/client_create_authentication_method_tls_client_auth_credentials.py deleted file mode 100644 index 08088543..00000000 --- a/src/auth0/management/types/client_create_authentication_method_tls_client_auth_credentials.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .certificate_subject_dn_credential import CertificateSubjectDnCredential - -ClientCreateAuthenticationMethodTlsClientAuthCredentials = typing.List[CertificateSubjectDnCredential] -""" -Fully defined credentials that will be enabled on the client for CA-based mTLS authentication. -""" diff --git a/src/auth0/management/types/client_credential.py b/src/auth0/management/types/client_credential.py deleted file mode 100644 index 4f16a08a..00000000 --- a/src/auth0/management/types/client_credential.py +++ /dev/null @@ -1,68 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .client_credential_algorithm_enum import ClientCredentialAlgorithmEnum -from .client_credential_type_enum import ClientCredentialTypeEnum - - -class ClientCredential(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of the credential. Generated on creation. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The name given to the credential by the user. - """ - - kid: typing.Optional[str] = pydantic.Field(default=None) - """ - The key identifier of the credential, generated on creation. - """ - - alg: typing.Optional[ClientCredentialAlgorithmEnum] = None - credential_type: typing.Optional[ClientCredentialTypeEnum] = None - subject_dn: typing.Optional[str] = pydantic.Field(default=None) - """ - The X509 certificate's Subject Distinguished Name - """ - - thumbprint_sha_256: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="thumbprint_sha256"), - pydantic.Field(alias="thumbprint_sha256", description="The X509 certificate's SHA256 thumbprint"), - ] = None - """ - The X509 certificate's SHA256 thumbprint - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The ISO 8601 formatted date the credential was created. - """ - - updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The ISO 8601 formatted date the credential was updated. - """ - - expires_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The ISO 8601 formatted date representing the expiration of the credential. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/client_credential_algorithm_enum.py b/src/auth0/management/types/client_credential_algorithm_enum.py deleted file mode 100644 index 5a35d5d1..00000000 --- a/src/auth0/management/types/client_credential_algorithm_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ClientCredentialAlgorithmEnum = typing.Union[typing.Literal["RS256", "RS384", "PS256", "ES256", "PS384"], typing.Any] diff --git a/src/auth0/management/types/client_credential_type_enum.py b/src/auth0/management/types/client_credential_type_enum.py deleted file mode 100644 index 89f9217a..00000000 --- a/src/auth0/management/types/client_credential_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ClientCredentialTypeEnum = typing.Union[typing.Literal["public_key", "cert_subject_dn", "x509_cert"], typing.Any] diff --git a/src/auth0/management/types/client_default_organization.py b/src/auth0/management/types/client_default_organization.py deleted file mode 100644 index 6b337c60..00000000 --- a/src/auth0/management/types/client_default_organization.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .client_default_organization_flows_enum import ClientDefaultOrganizationFlowsEnum - - -class ClientDefaultOrganization(UniversalBaseModel): - """ - Defines the default Organization ID and flows - """ - - organization_id: str = pydantic.Field() - """ - The default Organization ID to be used - """ - - flows: typing.List[ClientDefaultOrganizationFlowsEnum] = pydantic.Field() - """ - The default Organization usage - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/client_default_organization_flows_enum.py b/src/auth0/management/types/client_default_organization_flows_enum.py deleted file mode 100644 index 88ced178..00000000 --- a/src/auth0/management/types/client_default_organization_flows_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ClientDefaultOrganizationFlowsEnum = typing.Union[typing.Literal["client_credentials"], typing.Any] diff --git a/src/auth0/management/types/client_encryption_key.py b/src/auth0/management/types/client_encryption_key.py deleted file mode 100644 index d448444c..00000000 --- a/src/auth0/management/types/client_encryption_key.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class ClientEncryptionKey(UniversalBaseModel): - """ - Encryption used for WsFed responses with this client. - """ - - pub: typing.Optional[str] = pydantic.Field(default=None) - """ - Encryption Public RSA Key. - """ - - cert: typing.Optional[str] = pydantic.Field(default=None) - """ - Encryption certificate for public key in X.509 (.CER) format. - """ - - subject: typing.Optional[str] = pydantic.Field(default=None) - """ - Encryption certificate name for this certificate in the format `/CN={domain}`. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/client_external_metadata_created_by_enum.py b/src/auth0/management/types/client_external_metadata_created_by_enum.py deleted file mode 100644 index 305bf512..00000000 --- a/src/auth0/management/types/client_external_metadata_created_by_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ClientExternalMetadataCreatedByEnum = typing.Union[typing.Literal["admin", "client"], typing.Any] diff --git a/src/auth0/management/types/client_external_metadata_status_enum.py b/src/auth0/management/types/client_external_metadata_status_enum.py deleted file mode 100644 index 99437acf..00000000 --- a/src/auth0/management/types/client_external_metadata_status_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ClientExternalMetadataStatusEnum = typing.Union[typing.Literal["available", "unavailable"], typing.Any] diff --git a/src/auth0/management/types/client_external_metadata_type_enum.py b/src/auth0/management/types/client_external_metadata_type_enum.py deleted file mode 100644 index 85b988ec..00000000 --- a/src/auth0/management/types/client_external_metadata_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ClientExternalMetadataTypeEnum = typing.Union[typing.Literal["cimd", "dcr"], typing.Any] diff --git a/src/auth0/management/types/client_grant_allow_any_organization_enum.py b/src/auth0/management/types/client_grant_allow_any_organization_enum.py deleted file mode 100644 index 91e85d0f..00000000 --- a/src/auth0/management/types/client_grant_allow_any_organization_enum.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ClientGrantAllowAnyOrganizationEnum = bool -""" -Optional filter on allow_any_organization. -""" diff --git a/src/auth0/management/types/client_grant_default_for_enum.py b/src/auth0/management/types/client_grant_default_for_enum.py deleted file mode 100644 index 5d356191..00000000 --- a/src/auth0/management/types/client_grant_default_for_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ClientGrantDefaultForEnum = typing.Union[typing.Literal["third_party_clients"], typing.Any] diff --git a/src/auth0/management/types/client_grant_organization_nullable_usage_enum.py b/src/auth0/management/types/client_grant_organization_nullable_usage_enum.py deleted file mode 100644 index 70a5cd3d..00000000 --- a/src/auth0/management/types/client_grant_organization_nullable_usage_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ClientGrantOrganizationNullableUsageEnum = typing.Union[typing.Literal["deny", "allow", "require"], typing.Any] diff --git a/src/auth0/management/types/client_grant_organization_usage_enum.py b/src/auth0/management/types/client_grant_organization_usage_enum.py deleted file mode 100644 index e6fac0ce..00000000 --- a/src/auth0/management/types/client_grant_organization_usage_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ClientGrantOrganizationUsageEnum = typing.Union[typing.Literal["deny", "allow", "require"], typing.Any] diff --git a/src/auth0/management/types/client_grant_response_content.py b/src/auth0/management/types/client_grant_response_content.py deleted file mode 100644 index d8235b5a..00000000 --- a/src/auth0/management/types/client_grant_response_content.py +++ /dev/null @@ -1,63 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .client_grant_default_for_enum import ClientGrantDefaultForEnum -from .client_grant_organization_usage_enum import ClientGrantOrganizationUsageEnum -from .client_grant_subject_type_enum import ClientGrantSubjectTypeEnum - - -class ClientGrantResponseContent(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of the client grant. - """ - - client_id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of the client. - """ - - audience: typing.Optional[str] = pydantic.Field(default=None) - """ - The audience (API identifier) of this client grant. - """ - - scope: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Scopes allowed for this client grant. - """ - - organization_usage: typing.Optional[ClientGrantOrganizationUsageEnum] = None - allow_any_organization: typing.Optional[bool] = pydantic.Field(default=None) - """ - If enabled, any organization can be used with this grant. If disabled (default), the grant must be explicitly assigned to the desired organizations. - """ - - default_for: typing.Optional[ClientGrantDefaultForEnum] = None - is_system: typing.Optional[bool] = pydantic.Field(default=None) - """ - If enabled, this grant is a special grant created by Auth0. It cannot be modified or deleted directly. - """ - - subject_type: typing.Optional[ClientGrantSubjectTypeEnum] = None - authorization_details_types: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Types of authorization_details allowed for this client grant. - """ - - allow_all_scopes: typing.Optional[bool] = pydantic.Field(default=None) - """ - If enabled, all scopes configured on the resource server are allowed for this grant. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/client_grant_sort_field_enum.py b/src/auth0/management/types/client_grant_sort_field_enum.py deleted file mode 100644 index 44741018..00000000 --- a/src/auth0/management/types/client_grant_sort_field_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ClientGrantSortFieldEnum = typing.Union[typing.Literal["audience", "updated_at"], typing.Any] diff --git a/src/auth0/management/types/client_grant_subject_type_enum.py b/src/auth0/management/types/client_grant_subject_type_enum.py deleted file mode 100644 index 9fbf9b77..00000000 --- a/src/auth0/management/types/client_grant_subject_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ClientGrantSubjectTypeEnum = typing.Union[typing.Literal["client", "user", "anonymous_user"], typing.Any] diff --git a/src/auth0/management/types/client_jwt_configuration.py b/src/auth0/management/types/client_jwt_configuration.py deleted file mode 100644 index c622db7f..00000000 --- a/src/auth0/management/types/client_jwt_configuration.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .client_jwt_configuration_scopes import ClientJwtConfigurationScopes -from .signing_algorithm_enum import SigningAlgorithmEnum - - -class ClientJwtConfiguration(UniversalBaseModel): - """ - Configuration related to JWTs for the client. - """ - - lifetime_in_seconds: typing.Optional[int] = pydantic.Field(default=None) - """ - Number of seconds the JWT will be valid for (affects `exp` claim). - """ - - secret_encoded: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether the client secret is base64 encoded (true) or unencoded (false). - """ - - scopes: typing.Optional[ClientJwtConfigurationScopes] = None - alg: typing.Optional[SigningAlgorithmEnum] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/client_jwt_configuration_scopes.py b/src/auth0/management/types/client_jwt_configuration_scopes.py deleted file mode 100644 index 9db6a520..00000000 --- a/src/auth0/management/types/client_jwt_configuration_scopes.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ClientJwtConfigurationScopes = typing.Dict[str, typing.Any] -""" -Configuration related to id token claims for the client. -""" diff --git a/src/auth0/management/types/client_metadata.py b/src/auth0/management/types/client_metadata.py deleted file mode 100644 index b835a838..00000000 --- a/src/auth0/management/types/client_metadata.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ClientMetadata = typing.Dict[str, typing.Any] -""" -Metadata associated with the client, in the form of an object with string values (max 255 chars). Maximum of 10 metadata properties allowed. Field names (max 255 chars) are alphanumeric and may only include the following special characters: :,-+=_*?"/\()<>@ [Tab] [Space] -""" diff --git a/src/auth0/management/types/client_mobile.py b/src/auth0/management/types/client_mobile.py deleted file mode 100644 index 07b0c241..00000000 --- a/src/auth0/management/types/client_mobile.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .client_mobile_android import ClientMobileAndroid -from .client_mobilei_os import ClientMobileiOs - - -class ClientMobile(UniversalBaseModel): - """ - Additional configuration for native mobile apps. - """ - - android: typing.Optional[ClientMobileAndroid] = None - ios: typing.Optional[ClientMobileiOs] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/client_mobile_android.py b/src/auth0/management/types/client_mobile_android.py deleted file mode 100644 index fd2e45dc..00000000 --- a/src/auth0/management/types/client_mobile_android.py +++ /dev/null @@ -1,40 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata - - -class ClientMobileAndroid(UniversalBaseModel): - """ - Android native app configuration. - """ - - app_package_name: typing.Optional[str] = pydantic.Field(default=None) - """ - App package name found in AndroidManifest.xml. - """ - - sha_256_cert_fingerprints: typing_extensions.Annotated[ - typing.Optional[typing.List[str]], - FieldMetadata(alias="sha256_cert_fingerprints"), - pydantic.Field( - alias="sha256_cert_fingerprints", - description="SHA256 fingerprints of the app's signing certificate. Multiple fingerprints can be used to support different versions of your app, such as debug and production builds.", - ), - ] = None - """ - SHA256 fingerprints of the app's signing certificate. Multiple fingerprints can be used to support different versions of your app, such as debug and production builds. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/client_mobilei_os.py b/src/auth0/management/types/client_mobilei_os.py deleted file mode 100644 index 4c971ff4..00000000 --- a/src/auth0/management/types/client_mobilei_os.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class ClientMobileiOs(UniversalBaseModel): - """ - iOS native app configuration. - """ - - team_id: typing.Optional[str] = pydantic.Field(default=None) - """ - Identifier assigned to the Apple account that signs and uploads the app to the store. - """ - - app_bundle_identifier: typing.Optional[str] = pydantic.Field(default=None) - """ - Assigned by developer to the app as its unique identifier inside the store. Usually this is a reverse domain plus the app name, e.g. `com.you.MyApp`. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/client_my_organization_configuration_allowed_strategies_enum.py b/src/auth0/management/types/client_my_organization_configuration_allowed_strategies_enum.py deleted file mode 100644 index 3a6bd8f8..00000000 --- a/src/auth0/management/types/client_my_organization_configuration_allowed_strategies_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ClientMyOrganizationConfigurationAllowedStrategiesEnum = typing.Union[ - typing.Literal["pingfederate", "adfs", "waad", "google-apps", "okta", "oidc", "samlp"], typing.Any -] diff --git a/src/auth0/management/types/client_my_organization_configuration_third_party_client_access_allowed_values_enum.py b/src/auth0/management/types/client_my_organization_configuration_third_party_client_access_allowed_values_enum.py deleted file mode 100644 index 7294d79e..00000000 --- a/src/auth0/management/types/client_my_organization_configuration_third_party_client_access_allowed_values_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ClientMyOrganizationConfigurationThirdPartyClientAccessAllowedValuesEnum = typing.Union[ - typing.Literal["allow", "block"], typing.Any -] diff --git a/src/auth0/management/types/client_my_organization_configuration_third_party_client_access_default_value_enum.py b/src/auth0/management/types/client_my_organization_configuration_third_party_client_access_default_value_enum.py deleted file mode 100644 index 68de45ec..00000000 --- a/src/auth0/management/types/client_my_organization_configuration_third_party_client_access_default_value_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ClientMyOrganizationConfigurationThirdPartyClientAccessDefaultValueEnum = typing.Union[ - typing.Literal["block"], typing.Any -] diff --git a/src/auth0/management/types/client_my_organization_deletion_behavior_enum.py b/src/auth0/management/types/client_my_organization_deletion_behavior_enum.py deleted file mode 100644 index a9440998..00000000 --- a/src/auth0/management/types/client_my_organization_deletion_behavior_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ClientMyOrganizationDeletionBehaviorEnum = typing.Union[typing.Literal["allow", "allow_if_empty"], typing.Any] diff --git a/src/auth0/management/types/client_my_organization_patch_configuration.py b/src/auth0/management/types/client_my_organization_patch_configuration.py deleted file mode 100644 index baba9c3c..00000000 --- a/src/auth0/management/types/client_my_organization_patch_configuration.py +++ /dev/null @@ -1,60 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .client_my_organization_configuration_allowed_strategies_enum import ( - ClientMyOrganizationConfigurationAllowedStrategiesEnum, -) -from .client_my_organization_deletion_behavior_enum import ClientMyOrganizationDeletionBehaviorEnum -from .client_my_organization_third_party_client_access_configuration import ( - ClientMyOrganizationThirdPartyClientAccessConfiguration, -) - - -class ClientMyOrganizationPatchConfiguration(UniversalBaseModel): - """ - Configuration related to the My Organization Configuration for the client. - """ - - connection_profile_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The connection profile ID that this client should validate against. - """ - - user_attribute_profile_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The user attribute profile ID that this client should validate against. - """ - - allowed_strategies: typing.List[ClientMyOrganizationConfigurationAllowedStrategiesEnum] = pydantic.Field() - """ - The allowed connection strategies for the My Organization Configuration. - """ - - third_party_client_access: typing.Optional[ClientMyOrganizationThirdPartyClientAccessConfiguration] = None - connection_deletion_behavior: ClientMyOrganizationDeletionBehaviorEnum - invitation_landing_client_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The client ID this client uses while creating invitations through My Organization API. - """ - - enforce_permission_ceiling: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true, limits the permissions that organization admins can assign to members to only those held by the admin themselves. - """ - - enforce_self_assignment_restriction: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true, prevents organization admins from assigning permissions to themselves. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/client_my_organization_post_configuration.py b/src/auth0/management/types/client_my_organization_post_configuration.py deleted file mode 100644 index 1d747021..00000000 --- a/src/auth0/management/types/client_my_organization_post_configuration.py +++ /dev/null @@ -1,60 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .client_my_organization_configuration_allowed_strategies_enum import ( - ClientMyOrganizationConfigurationAllowedStrategiesEnum, -) -from .client_my_organization_deletion_behavior_enum import ClientMyOrganizationDeletionBehaviorEnum -from .client_my_organization_third_party_client_access_configuration import ( - ClientMyOrganizationThirdPartyClientAccessConfiguration, -) - - -class ClientMyOrganizationPostConfiguration(UniversalBaseModel): - """ - Configuration related to the My Organization Configuration for the client. - """ - - connection_profile_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The connection profile ID that this client should validate against. - """ - - user_attribute_profile_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The user attribute profile ID that this client should validate against. - """ - - allowed_strategies: typing.List[ClientMyOrganizationConfigurationAllowedStrategiesEnum] = pydantic.Field() - """ - The allowed connection strategies for the My Organization Configuration. - """ - - third_party_client_access: typing.Optional[ClientMyOrganizationThirdPartyClientAccessConfiguration] = None - connection_deletion_behavior: ClientMyOrganizationDeletionBehaviorEnum - invitation_landing_client_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The client ID this client uses while creating invitations through My Organization API. - """ - - enforce_permission_ceiling: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true, limits the permissions that organization admins can assign to members to only those held by the admin themselves. - """ - - enforce_self_assignment_restriction: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true, prevents organization admins from assigning permissions to themselves. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/client_my_organization_response_configuration.py b/src/auth0/management/types/client_my_organization_response_configuration.py deleted file mode 100644 index 5b408530..00000000 --- a/src/auth0/management/types/client_my_organization_response_configuration.py +++ /dev/null @@ -1,60 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .client_my_organization_configuration_allowed_strategies_enum import ( - ClientMyOrganizationConfigurationAllowedStrategiesEnum, -) -from .client_my_organization_deletion_behavior_enum import ClientMyOrganizationDeletionBehaviorEnum -from .client_my_organization_third_party_client_access_configuration import ( - ClientMyOrganizationThirdPartyClientAccessConfiguration, -) - - -class ClientMyOrganizationResponseConfiguration(UniversalBaseModel): - """ - Configuration related to the My Organization Configuration for the client. - """ - - connection_profile_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The connection profile ID that this client should validate against. - """ - - user_attribute_profile_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The user attribute profile ID that this client should validate against. - """ - - allowed_strategies: typing.List[ClientMyOrganizationConfigurationAllowedStrategiesEnum] = pydantic.Field() - """ - The allowed connection strategies for the My Organization Configuration. - """ - - third_party_client_access: typing.Optional[ClientMyOrganizationThirdPartyClientAccessConfiguration] = None - connection_deletion_behavior: ClientMyOrganizationDeletionBehaviorEnum - invitation_landing_client_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The client ID this client uses while creating invitations through My Organization API. - """ - - enforce_permission_ceiling: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true, limits the permissions that organization admins can assign to members to only those held by the admin themselves. - """ - - enforce_self_assignment_restriction: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true, prevents organization admins from assigning permissions to themselves. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/client_my_organization_third_party_client_access_configuration.py b/src/auth0/management/types/client_my_organization_third_party_client_access_configuration.py deleted file mode 100644 index feee9895..00000000 --- a/src/auth0/management/types/client_my_organization_third_party_client_access_configuration.py +++ /dev/null @@ -1,35 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .client_my_organization_configuration_third_party_client_access_allowed_values_enum import ( - ClientMyOrganizationConfigurationThirdPartyClientAccessAllowedValuesEnum, -) -from .client_my_organization_configuration_third_party_client_access_default_value_enum import ( - ClientMyOrganizationConfigurationThirdPartyClientAccessDefaultValueEnum, -) - - -class ClientMyOrganizationThirdPartyClientAccessConfiguration(UniversalBaseModel): - """ - The third-party client access configuration for the My Organization Configuration. - """ - - default_value: ClientMyOrganizationConfigurationThirdPartyClientAccessDefaultValueEnum - allowed_values: typing.List[ClientMyOrganizationConfigurationThirdPartyClientAccessAllowedValuesEnum] = ( - pydantic.Field() - ) - """ - The allowed third-party client access values for the My Organization Configuration. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/client_oidc_backchannel_logout_initiators.py b/src/auth0/management/types/client_oidc_backchannel_logout_initiators.py deleted file mode 100644 index a85e80ba..00000000 --- a/src/auth0/management/types/client_oidc_backchannel_logout_initiators.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .client_oidc_backchannel_logout_initiators_enum import ClientOidcBackchannelLogoutInitiatorsEnum -from .client_oidc_backchannel_logout_initiators_mode_enum import ClientOidcBackchannelLogoutInitiatorsModeEnum - - -class ClientOidcBackchannelLogoutInitiators(UniversalBaseModel): - """ - Configuration for OIDC backchannel logout initiators - """ - - mode: typing.Optional[ClientOidcBackchannelLogoutInitiatorsModeEnum] = None - selected_initiators: typing.Optional[typing.List[ClientOidcBackchannelLogoutInitiatorsEnum]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/client_oidc_backchannel_logout_initiators_enum.py b/src/auth0/management/types/client_oidc_backchannel_logout_initiators_enum.py deleted file mode 100644 index 88526b6f..00000000 --- a/src/auth0/management/types/client_oidc_backchannel_logout_initiators_enum.py +++ /dev/null @@ -1,19 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ClientOidcBackchannelLogoutInitiatorsEnum = typing.Union[ - typing.Literal[ - "rp-logout", - "idp-logout", - "password-changed", - "session-expired", - "session-revoked", - "account-deleted", - "email-identifier-changed", - "mfa-phone-unenrolled", - "account-deactivated", - "profile-changed", - ], - typing.Any, -] diff --git a/src/auth0/management/types/client_oidc_backchannel_logout_initiators_mode_enum.py b/src/auth0/management/types/client_oidc_backchannel_logout_initiators_mode_enum.py deleted file mode 100644 index 940ab094..00000000 --- a/src/auth0/management/types/client_oidc_backchannel_logout_initiators_mode_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ClientOidcBackchannelLogoutInitiatorsModeEnum = typing.Union[typing.Literal["custom", "all"], typing.Any] diff --git a/src/auth0/management/types/client_oidc_backchannel_logout_session_metadata.py b/src/auth0/management/types/client_oidc_backchannel_logout_session_metadata.py deleted file mode 100644 index 74dfa63f..00000000 --- a/src/auth0/management/types/client_oidc_backchannel_logout_session_metadata.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class ClientOidcBackchannelLogoutSessionMetadata(UniversalBaseModel): - """ - Controls whether session metadata is included in the logout token. Default value is null. - """ - - include: typing.Optional[bool] = pydantic.Field(default=None) - """ - The `include` property determines whether session metadata is included in the logout token. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/client_oidc_backchannel_logout_settings.py b/src/auth0/management/types/client_oidc_backchannel_logout_settings.py deleted file mode 100644 index ed624981..00000000 --- a/src/auth0/management/types/client_oidc_backchannel_logout_settings.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .client_oidc_backchannel_logout_initiators import ClientOidcBackchannelLogoutInitiators -from .client_oidc_backchannel_logout_session_metadata import ClientOidcBackchannelLogoutSessionMetadata - - -class ClientOidcBackchannelLogoutSettings(UniversalBaseModel): - """ - Configuration for OIDC backchannel logout - """ - - backchannel_logout_urls: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Comma-separated list of URLs that are valid to call back from Auth0 for OIDC backchannel logout. Currently only one URL is allowed. - """ - - backchannel_logout_initiators: typing.Optional[ClientOidcBackchannelLogoutInitiators] = None - backchannel_logout_session_metadata: typing.Optional[ClientOidcBackchannelLogoutSessionMetadata] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/client_oidc_support.py b/src/auth0/management/types/client_oidc_support.py deleted file mode 100644 index 53cb2156..00000000 --- a/src/auth0/management/types/client_oidc_support.py +++ /dev/null @@ -1,37 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .client_oidc_support_allowed_scopes_enum import ClientOidcSupportAllowedScopesEnum - - -class ClientOidcSupport(UniversalBaseModel): - """ - Controls whether the client can receive ID tokens and use the UserInfo endpoint, and which user profile information it can request through OIDC scopes. - """ - - is_allowed: typing.Optional[bool] = pydantic.Field(default=None) - """ - Allows the client to use OIDC, including receiving ID tokens and calling the UserInfo endpoint. - """ - - allow_all_scopes: typing.Optional[bool] = pydantic.Field(default=None) - """ - Allows the client to request all supported OIDC scopes. Mutually exclusive with allowed_scopes. - """ - - allowed_scopes: typing.Optional[typing.List[ClientOidcSupportAllowedScopesEnum]] = pydantic.Field(default=None) - """ - OIDC scopes the client may request (`profile`, `email`, `address`, and `phone`), which determine the user profile information it can access. Mutually exclusive with allow_all_scopes. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/client_oidc_support_allowed_scopes_enum.py b/src/auth0/management/types/client_oidc_support_allowed_scopes_enum.py deleted file mode 100644 index b11e3c4a..00000000 --- a/src/auth0/management/types/client_oidc_support_allowed_scopes_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ClientOidcSupportAllowedScopesEnum = typing.Union[typing.Literal["profile", "email", "address", "phone"], typing.Any] diff --git a/src/auth0/management/types/client_oidc_support_patch.py b/src/auth0/management/types/client_oidc_support_patch.py deleted file mode 100644 index 12302a1d..00000000 --- a/src/auth0/management/types/client_oidc_support_patch.py +++ /dev/null @@ -1,37 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .client_oidc_support_allowed_scopes_enum import ClientOidcSupportAllowedScopesEnum - - -class ClientOidcSupportPatch(UniversalBaseModel): - """ - Controls whether the client can receive ID tokens and use the UserInfo endpoint, and which user profile information it can request through OIDC scopes. - """ - - is_allowed: bool = pydantic.Field() - """ - Allows the client to use OIDC, including receiving ID tokens and calling the UserInfo endpoint. - """ - - allow_all_scopes: typing.Optional[bool] = pydantic.Field(default=None) - """ - Allows the client to request all supported OIDC scopes. Mutually exclusive with allowed_scopes. - """ - - allowed_scopes: typing.Optional[typing.List[ClientOidcSupportAllowedScopesEnum]] = pydantic.Field(default=None) - """ - OIDC scopes the client may request (`profile`, `email`, `address`, and `phone`), which determine the user profile information it can access. Mutually exclusive with allow_all_scopes. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/client_oidc_support_post.py b/src/auth0/management/types/client_oidc_support_post.py deleted file mode 100644 index a58413af..00000000 --- a/src/auth0/management/types/client_oidc_support_post.py +++ /dev/null @@ -1,37 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .client_oidc_support_allowed_scopes_enum import ClientOidcSupportAllowedScopesEnum - - -class ClientOidcSupportPost(UniversalBaseModel): - """ - Controls whether the client can receive ID tokens and use the UserInfo endpoint, and which user profile information it can request through OIDC scopes. - """ - - is_allowed: bool = pydantic.Field() - """ - Allows the client to use OIDC, including receiving ID tokens and calling the UserInfo endpoint. - """ - - allow_all_scopes: typing.Optional[bool] = pydantic.Field(default=None) - """ - Allows the client to request all supported OIDC scopes. Mutually exclusive with allowed_scopes. - """ - - allowed_scopes: typing.Optional[typing.List[ClientOidcSupportAllowedScopesEnum]] = pydantic.Field(default=None) - """ - OIDC scopes the client may request (`profile`, `email`, `address`, and `phone`), which determine the user profile information it can access. Mutually exclusive with allow_all_scopes. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/client_organization_discovery_enum.py b/src/auth0/management/types/client_organization_discovery_enum.py deleted file mode 100644 index e7830ec0..00000000 --- a/src/auth0/management/types/client_organization_discovery_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ClientOrganizationDiscoveryEnum = typing.Union[typing.Literal["email", "organization_name"], typing.Any] diff --git a/src/auth0/management/types/client_organization_require_behavior_enum.py b/src/auth0/management/types/client_organization_require_behavior_enum.py deleted file mode 100644 index 4d4ed7f0..00000000 --- a/src/auth0/management/types/client_organization_require_behavior_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ClientOrganizationRequireBehaviorEnum = typing.Union[ - typing.Literal["no_prompt", "pre_login_prompt", "post_login_prompt"], typing.Any -] diff --git a/src/auth0/management/types/client_organization_require_behavior_patch_enum.py b/src/auth0/management/types/client_organization_require_behavior_patch_enum.py deleted file mode 100644 index 21d50cd4..00000000 --- a/src/auth0/management/types/client_organization_require_behavior_patch_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ClientOrganizationRequireBehaviorPatchEnum = typing.Union[ - typing.Literal["no_prompt", "pre_login_prompt", "post_login_prompt"], typing.Any -] diff --git a/src/auth0/management/types/client_organization_usage_enum.py b/src/auth0/management/types/client_organization_usage_enum.py deleted file mode 100644 index 646c4286..00000000 --- a/src/auth0/management/types/client_organization_usage_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ClientOrganizationUsageEnum = typing.Union[typing.Literal["deny", "allow", "require"], typing.Any] diff --git a/src/auth0/management/types/client_organization_usage_patch_enum.py b/src/auth0/management/types/client_organization_usage_patch_enum.py deleted file mode 100644 index 2ce9818d..00000000 --- a/src/auth0/management/types/client_organization_usage_patch_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ClientOrganizationUsagePatchEnum = typing.Union[typing.Literal["deny", "allow", "require"], typing.Any] diff --git a/src/auth0/management/types/client_profile.py b/src/auth0/management/types/client_profile.py deleted file mode 100644 index 10c695d6..00000000 --- a/src/auth0/management/types/client_profile.py +++ /dev/null @@ -1,38 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .client_profile_apply_policy import ClientProfileApplyPolicy -from .client_profile_client_configuration import ClientProfileClientConfiguration -from .client_profile_description import ClientProfileDescription -from .client_profile_id import ClientProfileId -from .client_profile_name import ClientProfileName - - -class ClientProfile(UniversalBaseModel): - id: ClientProfileId - name: ClientProfileName - description: typing.Optional[ClientProfileDescription] = None - client_configuration: ClientProfileClientConfiguration - apply_policy: ClientProfileApplyPolicy - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Timestamp of creation. - """ - - updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Timestamp of last update. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/client_profile_apply_policy.py b/src/auth0/management/types/client_profile_apply_policy.py deleted file mode 100644 index adb33924..00000000 --- a/src/auth0/management/types/client_profile_apply_policy.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .client_profile_apply_policy_external_metadata_created_by_enum import ( - ClientProfileApplyPolicyExternalMetadataCreatedByEnum, -) -from .client_profile_apply_policy_external_metadata_type_enum import ClientProfileApplyPolicyExternalMetadataTypeEnum - - -class ClientProfileApplyPolicy(UniversalBaseModel): - """ - Runtime matching rules that determine which clients this profile governs. - """ - - external_metadata_type: ClientProfileApplyPolicyExternalMetadataTypeEnum - external_metadata_created_by: ClientProfileApplyPolicyExternalMetadataCreatedByEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/client_profile_apply_policy_external_metadata_created_by_enum.py b/src/auth0/management/types/client_profile_apply_policy_external_metadata_created_by_enum.py deleted file mode 100644 index 70f13ed9..00000000 --- a/src/auth0/management/types/client_profile_apply_policy_external_metadata_created_by_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ClientProfileApplyPolicyExternalMetadataCreatedByEnum = typing.Union[typing.Literal["client"], typing.Any] diff --git a/src/auth0/management/types/client_profile_apply_policy_external_metadata_type_enum.py b/src/auth0/management/types/client_profile_apply_policy_external_metadata_type_enum.py deleted file mode 100644 index f41a3147..00000000 --- a/src/auth0/management/types/client_profile_apply_policy_external_metadata_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ClientProfileApplyPolicyExternalMetadataTypeEnum = typing.Union[typing.Literal["cimd"], typing.Any] diff --git a/src/auth0/management/types/client_profile_client_configuration.py b/src/auth0/management/types/client_profile_client_configuration.py deleted file mode 100644 index b0a51e4d..00000000 --- a/src/auth0/management/types/client_profile_client_configuration.py +++ /dev/null @@ -1,40 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .client_profile_client_configuration_oidc_support import ClientProfileClientConfigurationOidcSupport -from .client_profile_client_configuration_organization_discovery_methods import ( - ClientProfileClientConfigurationOrganizationDiscoveryMethods, -) -from .client_profile_client_configuration_organization_require_behavior import ( - ClientProfileClientConfigurationOrganizationRequireBehavior, -) -from .client_profile_client_configuration_organization_usage import ClientProfileClientConfigurationOrganizationUsage -from .client_profile_client_configuration_refresh_token import ClientProfileClientConfigurationRefreshToken -from .client_profile_client_configuration_require_proof_of_possession import ( - ClientProfileClientConfigurationRequireProofOfPossession, -) - - -class ClientProfileClientConfiguration(UniversalBaseModel): - """ - Runtime policy applied to matched clients. Omitted fields fall back to each client's own setting. - """ - - refresh_token: typing.Optional[ClientProfileClientConfigurationRefreshToken] = None - organization_usage: typing.Optional[ClientProfileClientConfigurationOrganizationUsage] = None - organization_require_behavior: typing.Optional[ClientProfileClientConfigurationOrganizationRequireBehavior] = None - organization_discovery_methods: typing.Optional[ClientProfileClientConfigurationOrganizationDiscoveryMethods] = None - require_proof_of_possession: typing.Optional[ClientProfileClientConfigurationRequireProofOfPossession] = None - oidc_support: typing.Optional[ClientProfileClientConfigurationOidcSupport] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/client_profile_client_configuration_oidc_support.py b/src/auth0/management/types/client_profile_client_configuration_oidc_support.py deleted file mode 100644 index a53550cd..00000000 --- a/src/auth0/management/types/client_profile_client_configuration_oidc_support.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .client_profile_client_configuration_oidc_support_default_value import ( - ClientProfileClientConfigurationOidcSupportDefaultValue, -) - - -class ClientProfileClientConfigurationOidcSupport(UniversalBaseModel): - """ - Default OIDC support configuration applied to matched clients. - """ - - default_value: ClientProfileClientConfigurationOidcSupportDefaultValue - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/client_profile_client_configuration_oidc_support_allowed_scopes_enum.py b/src/auth0/management/types/client_profile_client_configuration_oidc_support_allowed_scopes_enum.py deleted file mode 100644 index 8ed41079..00000000 --- a/src/auth0/management/types/client_profile_client_configuration_oidc_support_allowed_scopes_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ClientProfileClientConfigurationOidcSupportAllowedScopesEnum = typing.Union[ - typing.Literal["profile", "email", "address", "phone"], typing.Any -] diff --git a/src/auth0/management/types/client_profile_client_configuration_oidc_support_default_value.py b/src/auth0/management/types/client_profile_client_configuration_oidc_support_default_value.py deleted file mode 100644 index a6ae8c25..00000000 --- a/src/auth0/management/types/client_profile_client_configuration_oidc_support_default_value.py +++ /dev/null @@ -1,41 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .client_profile_client_configuration_oidc_support_allowed_scopes_enum import ( - ClientProfileClientConfigurationOidcSupportAllowedScopesEnum, -) - - -class ClientProfileClientConfigurationOidcSupportDefaultValue(UniversalBaseModel): - """ - Controls whether matched clients can receive ID tokens and use the UserInfo endpoint, and which user profile information they can request through OIDC scopes. - """ - - is_allowed: bool = pydantic.Field() - """ - Allows matched clients to use OIDC, including receiving ID tokens and calling the UserInfo endpoint. - """ - - allow_all_scopes: typing.Optional[bool] = pydantic.Field(default=None) - """ - Allows matched clients to request all supported OIDC scopes. Mutually exclusive with allowed_scopes. - """ - - allowed_scopes: typing.Optional[typing.List[ClientProfileClientConfigurationOidcSupportAllowedScopesEnum]] = ( - pydantic.Field(default=None) - ) - """ - OIDC scopes matched clients may request (`profile`, `email`, `address`, and `phone`), which determine the user profile information they can access. Mutually exclusive with allow_all_scopes. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/client_profile_client_configuration_organization_discovery_method_enum.py b/src/auth0/management/types/client_profile_client_configuration_organization_discovery_method_enum.py deleted file mode 100644 index 9356620d..00000000 --- a/src/auth0/management/types/client_profile_client_configuration_organization_discovery_method_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ClientProfileClientConfigurationOrganizationDiscoveryMethodEnum = typing.Union[ - typing.Literal["email", "organization_name"], typing.Any -] diff --git a/src/auth0/management/types/client_profile_client_configuration_organization_discovery_methods.py b/src/auth0/management/types/client_profile_client_configuration_organization_discovery_methods.py deleted file mode 100644 index 81162123..00000000 --- a/src/auth0/management/types/client_profile_client_configuration_organization_discovery_methods.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .client_profile_client_configuration_organization_discovery_method_enum import ( - ClientProfileClientConfigurationOrganizationDiscoveryMethodEnum, -) - - -class ClientProfileClientConfigurationOrganizationDiscoveryMethods(UniversalBaseModel): - """ - Default organization discovery methods applied to matched clients. - """ - - default_value: typing.Optional[typing.List[ClientProfileClientConfigurationOrganizationDiscoveryMethodEnum]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/client_profile_client_configuration_organization_require_behavior.py b/src/auth0/management/types/client_profile_client_configuration_organization_require_behavior.py deleted file mode 100644 index 68359783..00000000 --- a/src/auth0/management/types/client_profile_client_configuration_organization_require_behavior.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .client_profile_client_configuration_organization_require_behavior_enum import ( - ClientProfileClientConfigurationOrganizationRequireBehaviorEnum, -) - - -class ClientProfileClientConfigurationOrganizationRequireBehavior(UniversalBaseModel): - """ - Default organization prompt behavior applied to matched clients. - """ - - default_value: typing.Optional[ClientProfileClientConfigurationOrganizationRequireBehaviorEnum] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/client_profile_client_configuration_organization_require_behavior_enum.py b/src/auth0/management/types/client_profile_client_configuration_organization_require_behavior_enum.py deleted file mode 100644 index 6b53df5f..00000000 --- a/src/auth0/management/types/client_profile_client_configuration_organization_require_behavior_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ClientProfileClientConfigurationOrganizationRequireBehaviorEnum = typing.Union[ - typing.Literal["no_prompt", "pre_login_prompt", "post_login_prompt"], typing.Any -] diff --git a/src/auth0/management/types/client_profile_client_configuration_organization_usage.py b/src/auth0/management/types/client_profile_client_configuration_organization_usage.py deleted file mode 100644 index 0caffa58..00000000 --- a/src/auth0/management/types/client_profile_client_configuration_organization_usage.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .client_profile_client_configuration_organization_usage_enum import ( - ClientProfileClientConfigurationOrganizationUsageEnum, -) - - -class ClientProfileClientConfigurationOrganizationUsage(UniversalBaseModel): - """ - Default organization usage applied to matched clients. - """ - - default_value: typing.Optional[ClientProfileClientConfigurationOrganizationUsageEnum] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/client_profile_client_configuration_organization_usage_enum.py b/src/auth0/management/types/client_profile_client_configuration_organization_usage_enum.py deleted file mode 100644 index ddc1284e..00000000 --- a/src/auth0/management/types/client_profile_client_configuration_organization_usage_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ClientProfileClientConfigurationOrganizationUsageEnum = typing.Union[ - typing.Literal["deny", "allow", "require"], typing.Any -] diff --git a/src/auth0/management/types/client_profile_client_configuration_refresh_token.py b/src/auth0/management/types/client_profile_client_configuration_refresh_token.py deleted file mode 100644 index f5980e9b..00000000 --- a/src/auth0/management/types/client_profile_client_configuration_refresh_token.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .client_profile_refresh_token_idle_token_lifetime import ClientProfileRefreshTokenIdleTokenLifetime -from .client_profile_refresh_token_leeway import ClientProfileRefreshTokenLeeway -from .client_profile_refresh_token_token_lifetime import ClientProfileRefreshTokenTokenLifetime - - -class ClientProfileClientConfigurationRefreshToken(UniversalBaseModel): - """ - Refresh token settings. Omit any sub-field to use the client's own value. - """ - - token_lifetime: typing.Optional[ClientProfileRefreshTokenTokenLifetime] = None - idle_token_lifetime: typing.Optional[ClientProfileRefreshTokenIdleTokenLifetime] = None - leeway: typing.Optional[ClientProfileRefreshTokenLeeway] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/client_profile_client_configuration_require_proof_of_possession.py b/src/auth0/management/types/client_profile_client_configuration_require_proof_of_possession.py deleted file mode 100644 index a5b4b1fa..00000000 --- a/src/auth0/management/types/client_profile_client_configuration_require_proof_of_possession.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class ClientProfileClientConfigurationRequireProofOfPossession(UniversalBaseModel): - """ - Whether matched clients default to requiring proof of possession. - """ - - default_value: typing.Optional[bool] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/client_profile_description.py b/src/auth0/management/types/client_profile_description.py deleted file mode 100644 index 4de059fb..00000000 --- a/src/auth0/management/types/client_profile_description.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ClientProfileDescription = typing.Optional[str] -""" -Optional description of the client profile. -""" diff --git a/src/auth0/management/types/client_profile_id.py b/src/auth0/management/types/client_profile_id.py deleted file mode 100644 index ab6b68cf..00000000 --- a/src/auth0/management/types/client_profile_id.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ClientProfileId = str -""" -Client Profile identifier. -""" diff --git a/src/auth0/management/types/client_profile_name.py b/src/auth0/management/types/client_profile_name.py deleted file mode 100644 index 95dfb903..00000000 --- a/src/auth0/management/types/client_profile_name.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ClientProfileName = str -""" -Display name of the client profile. -""" diff --git a/src/auth0/management/types/client_profile_refresh_token_idle_token_lifetime.py b/src/auth0/management/types/client_profile_refresh_token_idle_token_lifetime.py deleted file mode 100644 index 7f0d8733..00000000 --- a/src/auth0/management/types/client_profile_refresh_token_idle_token_lifetime.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class ClientProfileRefreshTokenIdleTokenLifetime(UniversalBaseModel): - """ - Default idle refresh token lifetime, in seconds, applied to matched clients. - """ - - default_value: typing.Optional[int] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/client_profile_refresh_token_leeway.py b/src/auth0/management/types/client_profile_refresh_token_leeway.py deleted file mode 100644 index 9517a2f8..00000000 --- a/src/auth0/management/types/client_profile_refresh_token_leeway.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class ClientProfileRefreshTokenLeeway(UniversalBaseModel): - """ - Default refresh token rotation leeway, in seconds, applied to matched clients. - """ - - default_value: typing.Optional[int] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/client_profile_refresh_token_token_lifetime.py b/src/auth0/management/types/client_profile_refresh_token_token_lifetime.py deleted file mode 100644 index d1246e73..00000000 --- a/src/auth0/management/types/client_profile_refresh_token_token_lifetime.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class ClientProfileRefreshTokenTokenLifetime(UniversalBaseModel): - """ - Default refresh token lifetime, in seconds, applied to matched clients. - """ - - default_value: typing.Optional[int] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/client_redirection_policy_enum.py b/src/auth0/management/types/client_redirection_policy_enum.py deleted file mode 100644 index c8887a31..00000000 --- a/src/auth0/management/types/client_redirection_policy_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ClientRedirectionPolicyEnum = typing.Union[typing.Literal["allow_always", "open_redirect_protection"], typing.Any] diff --git a/src/auth0/management/types/client_refresh_token_configuration.py b/src/auth0/management/types/client_refresh_token_configuration.py deleted file mode 100644 index f6e1d5b6..00000000 --- a/src/auth0/management/types/client_refresh_token_configuration.py +++ /dev/null @@ -1,56 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .client_refresh_token_policy import ClientRefreshTokenPolicy -from .refresh_token_expiration_type_enum import RefreshTokenExpirationTypeEnum -from .refresh_token_rotation_type_enum import RefreshTokenRotationTypeEnum - - -class ClientRefreshTokenConfiguration(UniversalBaseModel): - """ - Refresh token configuration - """ - - rotation_type: RefreshTokenRotationTypeEnum - expiration_type: RefreshTokenExpirationTypeEnum - leeway: typing.Optional[int] = pydantic.Field(default=None) - """ - Period in seconds where the previous refresh token can be exchanged without triggering breach detection - """ - - token_lifetime: typing.Optional[int] = pydantic.Field(default=None) - """ - Period (in seconds) for which refresh tokens will remain valid - """ - - infinite_token_lifetime: typing.Optional[bool] = pydantic.Field(default=None) - """ - Prevents tokens from having a set lifetime when `true` (takes precedence over `token_lifetime` values) - """ - - idle_token_lifetime: typing.Optional[int] = pydantic.Field(default=None) - """ - Period (in seconds) for which refresh tokens will remain valid without use - """ - - infinite_idle_token_lifetime: typing.Optional[bool] = pydantic.Field(default=None) - """ - Prevents tokens from expiring without use when `true` (takes precedence over `idle_token_lifetime` values) - """ - - policies: typing.Optional[typing.List[ClientRefreshTokenPolicy]] = pydantic.Field(default=None) - """ - A collection of policies governing multi-resource refresh token exchange (MRRT), defining how refresh tokens can be used across different resource servers - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/client_refresh_token_policy.py b/src/auth0/management/types/client_refresh_token_policy.py deleted file mode 100644 index de1ded81..00000000 --- a/src/auth0/management/types/client_refresh_token_policy.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class ClientRefreshTokenPolicy(UniversalBaseModel): - audience: str = pydantic.Field() - """ - The identifier of the resource server to which the Multi Resource Refresh Token Policy applies - """ - - scope: typing.List[str] = pydantic.Field() - """ - The resource server permissions granted under the Multi Resource Refresh Token Policy, defining the context in which an access token can be used - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/client_search_response.py b/src/auth0/management/types/client_search_response.py deleted file mode 100644 index b8d53962..00000000 --- a/src/auth0/management/types/client_search_response.py +++ /dev/null @@ -1,288 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .anonymous_sessions import AnonymousSessions -from .b_2_b_integration_configuration import B2BIntegrationConfiguration -from .client_anonymous_session_transfer_network_binding_enum import ClientAnonymousSessionTransferNetworkBindingEnum -from .client_app_type_enum import ClientAppTypeEnum -from .client_async_approval_notifications_channels_api_post_configuration import ( - ClientAsyncApprovalNotificationsChannelsApiPostConfiguration, -) -from .client_authentication_method import ClientAuthenticationMethod -from .client_compliance_level_enum import ClientComplianceLevelEnum -from .client_default_organization import ClientDefaultOrganization -from .client_external_metadata_created_by_enum import ClientExternalMetadataCreatedByEnum -from .client_external_metadata_status_enum import ClientExternalMetadataStatusEnum -from .client_external_metadata_type_enum import ClientExternalMetadataTypeEnum -from .client_jwt_configuration import ClientJwtConfiguration -from .client_metadata import ClientMetadata -from .client_mobile import ClientMobile -from .client_my_organization_response_configuration import ClientMyOrganizationResponseConfiguration -from .client_oidc_backchannel_logout_settings import ClientOidcBackchannelLogoutSettings -from .client_oidc_support import ClientOidcSupport -from .client_organization_discovery_enum import ClientOrganizationDiscoveryEnum -from .client_organization_require_behavior_enum import ClientOrganizationRequireBehaviorEnum -from .client_organization_usage_enum import ClientOrganizationUsageEnum -from .client_redirection_policy_enum import ClientRedirectionPolicyEnum -from .client_refresh_token_configuration import ClientRefreshTokenConfiguration -from .client_session_transfer_configuration import ClientSessionTransferConfiguration -from .client_signed_request_object_with_credential_id import ClientSignedRequestObjectWithCredentialId -from .client_third_party_security_mode_enum import ClientThirdPartySecurityModeEnum -from .client_token_endpoint_auth_method_enum import ClientTokenEndpointAuthMethodEnum -from .client_token_exchange_configuration import ClientTokenExchangeConfiguration -from .client_token_vault_privileged_access_with_credential_id import ClientTokenVaultPrivilegedAccessWithCredentialId -from .express_configuration import ExpressConfiguration -from .fed_cm_login import FedCmLogin -from .google_account_linking_configuration import GoogleAccountLinkingConfiguration -from .identity_assertion_authorization_grant import IdentityAssertionAuthorizationGrant -from .native_social_login import NativeSocialLogin -from .token_quota import TokenQuota - - -class ClientSearchResponse(UniversalBaseModel): - client_id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of this client. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The ISO 8601 timestamp of when this client was created. - """ - - updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The ISO 8601 timestamp of when this client was last updated. - """ - - tenant: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of the tenant this client belongs to. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of this client (min length: 1 character, does not allow `<` or `>`). - """ - - description: typing.Optional[str] = pydantic.Field(default=None) - """ - Free text description of this client (max length: 140 characters). - """ - - global_: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="global"), - pydantic.Field( - alias="global", - description="Whether this is your global 'All Applications' client representing legacy tenant settings (true) or a regular client (false).", - ), - ] = None - """ - Whether this is your global 'All Applications' client representing legacy tenant settings (true) or a regular client (false). - """ - - app_type: typing.Optional[ClientAppTypeEnum] = None - logo_uri: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the logo to display for this client. Recommended size is 150x150 pixels. - """ - - is_first_party: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this client a first party client (true) or not (false). - """ - - oidc_conformant: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this client conforms to strict OIDC specifications (true) or uses legacy features (false). - """ - - callbacks: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Comma-separated list of URLs whitelisted for Auth0 to use as a callback to the client after authentication. - """ - - allowed_origins: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Comma-separated list of URLs allowed to make requests from JavaScript to Auth0 API (typically used with CORS). By default, all your callback URLs will be allowed. This field allows you to enter other origins if necessary. You can also use wildcards at the subdomain level (e.g., https://*.contoso.com). Query strings and hash information are not taken into account when validating these URLs. - """ - - web_origins: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Comma-separated list of allowed origins for use with Cross-Origin Authentication, Device Flow, and web message response mode. - """ - - client_aliases: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - List of audiences/realms for SAML protocol. Used by the wsfed addon. - """ - - allowed_clients: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - List of allow clients and API ids that are allowed to make delegation requests. Empty means all all your clients are allowed. - """ - - allowed_logout_urls: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Comma-separated list of URLs that are valid to redirect to after logout from Auth0. Wildcards are allowed for subdomains. - """ - - session_transfer: typing.Optional[ClientSessionTransferConfiguration] = None - oidc_logout: typing.Optional[ClientOidcBackchannelLogoutSettings] = None - grant_types: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - List of grant types supported for this application. Can include `authorization_code`, `implicit`, `refresh_token`, `client_credentials`, `password`, `http://auth0.com/oauth/grant-type/password-realm`, `http://auth0.com/oauth/grant-type/mfa-oob`, `http://auth0.com/oauth/grant-type/mfa-otp`, `http://auth0.com/oauth/grant-type/mfa-recovery-code`, `urn:openid:params:grant-type:ciba`, `urn:ietf:params:oauth:grant-type:device_code`, and `urn:auth0:params:oauth:grant-type:token-exchange:federated-connection-access-token`. - """ - - jwt_configuration: typing.Optional[ClientJwtConfiguration] = None - sso: typing.Optional[bool] = pydantic.Field(default=None) - """ - Applies only to SSO clients and determines whether Auth0 will handle Single Sign On (true) or whether the Identity Provider will (false). - """ - - sso_disabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether Single Sign On is disabled (true) or enabled (true). Defaults to true. - """ - - cross_origin_authentication: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this client can be used to make cross-origin authentication requests (true) or it is not allowed to make such requests (false). - """ - - cross_origin_loc: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the location in your site where the cross origin verification takes place for the cross-origin auth flow when performing Auth in your own domain instead of Auth0 hosted login page. - """ - - custom_login_page_on: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether a custom login page is to be used (true) or the default provided login page (false). - """ - - custom_login_page: typing.Optional[str] = pydantic.Field(default=None) - """ - The content (HTML, CSS, JS) of the custom login page. - """ - - custom_login_page_preview: typing.Optional[str] = pydantic.Field(default=None) - """ - The content (HTML, CSS, JS) of the custom login page. (Used on Previews) - """ - - form_template: typing.Optional[str] = pydantic.Field(default=None) - """ - HTML form template to be used for WS-Federation. - """ - - token_endpoint_auth_method: typing.Optional[ClientTokenEndpointAuthMethodEnum] = None - is_token_endpoint_ip_header_trusted: typing.Optional[bool] = pydantic.Field(default=None) - """ - If true, trust that the IP specified in the `auth0-forwarded-for` header is the end-user's IP for brute-force-protection on token endpoint. - """ - - client_metadata: typing.Optional[ClientMetadata] = None - mobile: typing.Optional[ClientMobile] = None - initiate_login_uri: typing.Optional[str] = pydantic.Field(default=None) - """ - Initiate login uri, must be https - """ - - native_social_login: typing.Optional[NativeSocialLogin] = None - fedcm_login: typing.Optional[FedCmLogin] = None - refresh_token: typing.Optional[ClientRefreshTokenConfiguration] = None - default_organization: typing.Optional[ClientDefaultOrganization] = None - organization_usage: typing.Optional[ClientOrganizationUsageEnum] = None - organization_require_behavior: typing.Optional[ClientOrganizationRequireBehaviorEnum] = None - organization_discovery_methods: typing.Optional[typing.List[ClientOrganizationDiscoveryEnum]] = pydantic.Field( - default=None - ) - """ - Defines the available methods for organization discovery during the `pre_login_prompt`. Users can discover their organization either by `email`, `organization_name` or both. - """ - - client_authentication_methods: typing.Optional[ClientAuthenticationMethod] = None - require_pushed_authorization_requests: typing.Optional[bool] = pydantic.Field(default=None) - """ - Makes the use of Pushed Authorization Requests mandatory for this client - """ - - require_proof_of_possession: typing.Optional[bool] = pydantic.Field(default=None) - """ - Makes the use of Proof-of-Possession mandatory for this client - """ - - signed_request_object: typing.Optional[ClientSignedRequestObjectWithCredentialId] = None - token_vault_privileged_access: typing.Optional[ClientTokenVaultPrivilegedAccessWithCredentialId] = None - compliance_level: typing.Optional[ClientComplianceLevelEnum] = None - skip_non_verifiable_callback_uri_confirmation_prompt: typing.Optional[bool] = pydantic.Field(default=None) - """ - Controls whether a confirmation prompt is shown during login flows when the redirect URI uses non-verifiable callback URIs (for example, a custom URI schema such as `myapp://`, or `localhost`). - If set to true, a confirmation prompt will not be shown. We recommend that this is set to false for improved protection from malicious apps. - See https://auth0.com/docs/secure/security-guidance/measures-against-app-impersonation for more information. - """ - - token_exchange: typing.Optional[ClientTokenExchangeConfiguration] = None - par_request_expiry: typing.Optional[int] = pydantic.Field(default=None) - """ - Specifies how long, in seconds, a Pushed Authorization Request URI remains valid - """ - - token_quota: typing.Optional[TokenQuota] = None - express_configuration: typing.Optional[ExpressConfiguration] = None - b_2_b_integration_configuration: typing_extensions.Annotated[ - typing.Optional[B2BIntegrationConfiguration], - FieldMetadata(alias="b2b_integration_configuration"), - pydantic.Field(alias="b2b_integration_configuration"), - ] = None - my_organization_configuration: typing.Optional[ClientMyOrganizationResponseConfiguration] = None - google_account_linking: typing.Optional[GoogleAccountLinkingConfiguration] = None - identity_assertion_authorization_grant: typing.Optional[IdentityAssertionAuthorizationGrant] = None - anonymous_sessions: typing.Optional[AnonymousSessions] = None - enforce_anon_session_transfer_network_binding: typing.Optional[ClientAnonymousSessionTransferNetworkBindingEnum] = ( - None - ) - third_party_security_mode: typing.Optional[ClientThirdPartySecurityModeEnum] = None - oidc_support: typing.Optional[ClientOidcSupport] = None - redirection_policy: typing.Optional[ClientRedirectionPolicyEnum] = None - resource_server_identifier: typing.Optional[str] = pydantic.Field(default=None) - """ - The identifier of the resource server that this client is linked to. - """ - - async_approval_notification_channels: typing.Optional[ - ClientAsyncApprovalNotificationsChannelsApiPostConfiguration - ] = None - external_metadata_type: typing.Optional[ClientExternalMetadataTypeEnum] = None - external_metadata_created_by: typing.Optional[ClientExternalMetadataCreatedByEnum] = None - external_metadata_status: typing.Optional[ClientExternalMetadataStatusEnum] = None - agent_id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of the agent associated with this client. - """ - - external_client_id: typing.Optional[str] = pydantic.Field(default=None) - """ - An alternate client identifier to be used during authorization flows. Only supports CIMD-based client identifiers. - """ - - jwks_uri: typing.Optional[str] = pydantic.Field(default=None) - """ - URL for the JSON Web Key Set (JWKS) containing the public keys used for private_key_jwt authentication. Only present for CIMD clients using private_key_jwt authentication. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/client_session_transfer_allowed_authentication_methods_enum.py b/src/auth0/management/types/client_session_transfer_allowed_authentication_methods_enum.py deleted file mode 100644 index fecb79f9..00000000 --- a/src/auth0/management/types/client_session_transfer_allowed_authentication_methods_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ClientSessionTransferAllowedAuthenticationMethodsEnum = typing.Union[typing.Literal["cookie", "query"], typing.Any] diff --git a/src/auth0/management/types/client_session_transfer_configuration.py b/src/auth0/management/types/client_session_transfer_configuration.py deleted file mode 100644 index 49670970..00000000 --- a/src/auth0/management/types/client_session_transfer_configuration.py +++ /dev/null @@ -1,56 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .client_session_transfer_allowed_authentication_methods_enum import ( - ClientSessionTransferAllowedAuthenticationMethodsEnum, -) -from .client_session_transfer_delegation_configuration import ClientSessionTransferDelegationConfiguration -from .client_session_transfer_device_binding_enum import ClientSessionTransferDeviceBindingEnum - - -class ClientSessionTransferConfiguration(UniversalBaseModel): - """ - Native to Web SSO Configuration - """ - - can_create_session_transfer_token: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether an app can issue a Session Transfer Token through Token Exchange. If set to 'false', the app will not be able to issue a Session Transfer Token. Usually configured in the native application. Default value is `false`. - """ - - enforce_cascade_revocation: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether revoking the parent Refresh Token that initiated a Native to Web flow and was used to issue a Session Transfer Token should trigger a cascade revocation affecting its dependent child entities. Usually configured in the native application. Default value is `true`, applicable only in Native to Web SSO context. - """ - - allowed_authentication_methods: typing.Optional[ - typing.List[ClientSessionTransferAllowedAuthenticationMethodsEnum] - ] = pydantic.Field(default=None) - """ - Indicates whether an app can create a session from a Session Transfer Token received via indicated methods. Can include `cookie` and/or `query`. Usually configured in the web application. Default value is an empty array []. - """ - - enforce_device_binding: typing.Optional[ClientSessionTransferDeviceBindingEnum] = None - allow_refresh_token: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether Refresh Tokens are allowed to be issued when authenticating with a Session Transfer Token. Usually configured in the web application. Default value is `false`. - """ - - enforce_online_refresh_tokens: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether Refresh Tokens created during a Native to Web session are tied to that session's lifetime. This determines if such refresh tokens should be automatically revoked when their corresponding sessions are. Usually configured in the web application. Default value is `true`, applicable only in Native to Web SSO context. - """ - - delegation: typing.Optional[ClientSessionTransferDelegationConfiguration] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/client_session_transfer_delegation_configuration.py b/src/auth0/management/types/client_session_transfer_delegation_configuration.py deleted file mode 100644 index 34389d0f..00000000 --- a/src/auth0/management/types/client_session_transfer_delegation_configuration.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .client_session_transfer_delegation_device_binding_enum import ClientSessionTransferDelegationDeviceBindingEnum - - -class ClientSessionTransferDelegationConfiguration(UniversalBaseModel): - """ - Configuration for delegation (impersonation) access using Session Transfer Tokens - """ - - allow_delegated_access: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether delegation (impersonation) access is allowed using Session Transfer Tokens. Default value is `false`. - """ - - enforce_device_binding: typing.Optional[ClientSessionTransferDelegationDeviceBindingEnum] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/client_session_transfer_delegation_device_binding_enum.py b/src/auth0/management/types/client_session_transfer_delegation_device_binding_enum.py deleted file mode 100644 index acd2d456..00000000 --- a/src/auth0/management/types/client_session_transfer_delegation_device_binding_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ClientSessionTransferDelegationDeviceBindingEnum = typing.Union[typing.Literal["ip"], typing.Any] diff --git a/src/auth0/management/types/client_session_transfer_device_binding_enum.py b/src/auth0/management/types/client_session_transfer_device_binding_enum.py deleted file mode 100644 index 98e8da9f..00000000 --- a/src/auth0/management/types/client_session_transfer_device_binding_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ClientSessionTransferDeviceBindingEnum = typing.Union[typing.Literal["ip", "asn", "none"], typing.Any] diff --git a/src/auth0/management/types/client_signed_request_object_with_credential_id.py b/src/auth0/management/types/client_signed_request_object_with_credential_id.py deleted file mode 100644 index b5da1749..00000000 --- a/src/auth0/management/types/client_signed_request_object_with_credential_id.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .credential_id import CredentialId - - -class ClientSignedRequestObjectWithCredentialId(UniversalBaseModel): - """ - JWT-secured Authorization Requests (JAR) settings. - """ - - required: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether the JAR requests are mandatory - """ - - credentials: typing.Optional[typing.List[CredentialId]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/client_signed_request_object_with_public_key.py b/src/auth0/management/types/client_signed_request_object_with_public_key.py deleted file mode 100644 index 85d94255..00000000 --- a/src/auth0/management/types/client_signed_request_object_with_public_key.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .public_key_credential import PublicKeyCredential - - -class ClientSignedRequestObjectWithPublicKey(UniversalBaseModel): - """ - JWT-secured Authorization Requests (JAR) settings. - """ - - required: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether the JAR requests are mandatory - """ - - credentials: typing.Optional[typing.List[PublicKeyCredential]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/client_signing_key.py b/src/auth0/management/types/client_signing_key.py deleted file mode 100644 index 6f694f0d..00000000 --- a/src/auth0/management/types/client_signing_key.py +++ /dev/null @@ -1,38 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata - - -class ClientSigningKey(UniversalBaseModel): - pkcs_7: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="pkcs7"), - pydantic.Field(alias="pkcs7", description="Signing certificate public key and chain in PKCS#7 (.P7B) format."), - ] = None - """ - Signing certificate public key and chain in PKCS#7 (.P7B) format. - """ - - cert: typing.Optional[str] = pydantic.Field(default=None) - """ - Signing certificate public key in X.509 (.CER) format. - """ - - subject: typing.Optional[str] = pydantic.Field(default=None) - """ - Subject name for this certificate in the format `/CN={domain}`. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/client_signing_keys.py b/src/auth0/management/types/client_signing_keys.py deleted file mode 100644 index 45190143..00000000 --- a/src/auth0/management/types/client_signing_keys.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .client_signing_key import ClientSigningKey - -ClientSigningKeys = typing.Optional[typing.List[ClientSigningKey]] -""" -Signing certificates associated with this client. -""" diff --git a/src/auth0/management/types/client_sort_field_enum.py b/src/auth0/management/types/client_sort_field_enum.py deleted file mode 100644 index e7e54a66..00000000 --- a/src/auth0/management/types/client_sort_field_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ClientSortFieldEnum = typing.Union[typing.Literal["name", "updated_at"], typing.Any] diff --git a/src/auth0/management/types/client_third_party_security_mode_enum.py b/src/auth0/management/types/client_third_party_security_mode_enum.py deleted file mode 100644 index 15913209..00000000 --- a/src/auth0/management/types/client_third_party_security_mode_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ClientThirdPartySecurityModeEnum = typing.Union[typing.Literal["strict", "permissive"], typing.Any] diff --git a/src/auth0/management/types/client_token_endpoint_auth_method_enum.py b/src/auth0/management/types/client_token_endpoint_auth_method_enum.py deleted file mode 100644 index 9c145c3f..00000000 --- a/src/auth0/management/types/client_token_endpoint_auth_method_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ClientTokenEndpointAuthMethodEnum = typing.Union[ - typing.Literal["none", "client_secret_post", "client_secret_basic"], typing.Any -] diff --git a/src/auth0/management/types/client_token_endpoint_auth_method_or_null_enum.py b/src/auth0/management/types/client_token_endpoint_auth_method_or_null_enum.py deleted file mode 100644 index 6d5417a0..00000000 --- a/src/auth0/management/types/client_token_endpoint_auth_method_or_null_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ClientTokenEndpointAuthMethodOrNullEnum = typing.Union[ - typing.Literal["none", "client_secret_post", "client_secret_basic"], typing.Any -] diff --git a/src/auth0/management/types/client_token_exchange_configuration.py b/src/auth0/management/types/client_token_exchange_configuration.py deleted file mode 100644 index e70b3627..00000000 --- a/src/auth0/management/types/client_token_exchange_configuration.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .client_token_exchange_type_enum import ClientTokenExchangeTypeEnum - - -class ClientTokenExchangeConfiguration(UniversalBaseModel): - """ - Configuration for token exchange. - """ - - allow_any_profile_of_type: typing.Optional[typing.List[ClientTokenExchangeTypeEnum]] = pydantic.Field(default=None) - """ - List the enabled token exchange types for this client. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/client_token_exchange_configuration_or_null.py b/src/auth0/management/types/client_token_exchange_configuration_or_null.py deleted file mode 100644 index 2c6c9665..00000000 --- a/src/auth0/management/types/client_token_exchange_configuration_or_null.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .client_token_exchange_type_enum import ClientTokenExchangeTypeEnum - - -class ClientTokenExchangeConfigurationOrNull(UniversalBaseModel): - """ - Configuration for token exchange. - """ - - allow_any_profile_of_type: typing.Optional[typing.List[ClientTokenExchangeTypeEnum]] = pydantic.Field(default=None) - """ - List the enabled token exchange types for this client. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/client_token_exchange_type_enum.py b/src/auth0/management/types/client_token_exchange_type_enum.py deleted file mode 100644 index 64a50c6e..00000000 --- a/src/auth0/management/types/client_token_exchange_type_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ClientTokenExchangeTypeEnum = typing.Union[ - typing.Literal["custom_authentication", "on_behalf_of_token_exchange"], typing.Any -] diff --git a/src/auth0/management/types/client_token_vault_privileged_access_with_credential_id.py b/src/auth0/management/types/client_token_vault_privileged_access_with_credential_id.py deleted file mode 100644 index b503b4b0..00000000 --- a/src/auth0/management/types/client_token_vault_privileged_access_with_credential_id.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .credential_id import CredentialId -from .token_vault_privileged_access_grant import TokenVaultPrivilegedAccessGrant -from .token_vault_privileged_access_ip_allowlist_entry import TokenVaultPrivilegedAccessIpAllowlistEntry - - -class ClientTokenVaultPrivilegedAccessWithCredentialId(UniversalBaseModel): - """ - Settings for Token Vault Privileged Access. - """ - - credentials: typing.List[CredentialId] - ip_allowlist: typing.Optional[typing.List[TokenVaultPrivilegedAccessIpAllowlistEntry]] = None - grants: typing.Optional[typing.List[TokenVaultPrivilegedAccessGrant]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/client_token_vault_privileged_access_with_public_key.py b/src/auth0/management/types/client_token_vault_privileged_access_with_public_key.py deleted file mode 100644 index 450ffb46..00000000 --- a/src/auth0/management/types/client_token_vault_privileged_access_with_public_key.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .public_key_credential import PublicKeyCredential -from .token_vault_privileged_access_grant import TokenVaultPrivilegedAccessGrant -from .token_vault_privileged_access_ip_allowlist_entry import TokenVaultPrivilegedAccessIpAllowlistEntry - - -class ClientTokenVaultPrivilegedAccessWithPublicKey(UniversalBaseModel): - """ - Settings for Token Vault Privileged Access. - """ - - credentials: typing.List[PublicKeyCredential] - ip_allowlist: typing.Optional[typing.List[TokenVaultPrivilegedAccessIpAllowlistEntry]] = None - grants: typing.Optional[typing.List[TokenVaultPrivilegedAccessGrant]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/conflict_schema.py b/src/auth0/management/types/conflict_schema.py deleted file mode 100644 index 18d1430c..00000000 --- a/src/auth0/management/types/conflict_schema.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .conflict_schema_error import ConflictSchemaError - - -class ConflictSchema(UniversalBaseModel): - """ - Conflict - """ - - message: str - status_code: typing_extensions.Annotated[str, FieldMetadata(alias="statusCode"), pydantic.Field(alias="statusCode")] - error: ConflictSchemaError - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/conflict_schema_error.py b/src/auth0/management/types/conflict_schema_error.py deleted file mode 100644 index 8eb87e4d..00000000 --- a/src/auth0/management/types/conflict_schema_error.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConflictSchemaError = typing.Union[typing.Literal["Conflict"], typing.Any] diff --git a/src/auth0/management/types/connected_account.py b/src/auth0/management/types/connected_account.py deleted file mode 100644 index b8574a87..00000000 --- a/src/auth0/management/types/connected_account.py +++ /dev/null @@ -1,60 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .connected_account_access_type_enum import ConnectedAccountAccessTypeEnum - - -class ConnectedAccount(UniversalBaseModel): - id: str = pydantic.Field() - """ - The unique identifier for the connected account. - """ - - connection: str = pydantic.Field() - """ - The name of the connection associated with the account. - """ - - connection_id: str = pydantic.Field() - """ - The unique identifier of the connection associated with the account. - """ - - strategy: str = pydantic.Field() - """ - The authentication strategy used by the connection. - """ - - access_type: ConnectedAccountAccessTypeEnum - scopes: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - The scopes granted for this connected account. - """ - - created_at: dt.datetime = pydantic.Field() - """ - ISO 8601 timestamp when the connected account was created. - """ - - expires_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - ISO 8601 timestamp when the connected account expires. - """ - - organization_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The identifier of the organization associated with the connected account. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connected_account_access_type_enum.py b/src/auth0/management/types/connected_account_access_type_enum.py deleted file mode 100644 index 56c88242..00000000 --- a/src/auth0/management/types/connected_account_access_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectedAccountAccessTypeEnum = typing.Union[typing.Literal["offline"], typing.Any] diff --git a/src/auth0/management/types/connection_access_token_urlo_auth_1.py b/src/auth0/management/types/connection_access_token_urlo_auth_1.py deleted file mode 100644 index c74a6b9e..00000000 --- a/src/auth0/management/types/connection_access_token_urlo_auth_1.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from .connection_https_url_with_http_fallback_255 import ConnectionHttpsUrlWithHttpFallback255 - -ConnectionAccessTokenUrloAuth1 = ConnectionHttpsUrlWithHttpFallback255 -""" -The URL of the OAuth 1.0a access-token endpoint. This endpoint is used to exchange the temporary request token obtained from the request-token endpoint for an access token during the OAuth 1.0a authentication flow. -""" diff --git a/src/auth0/management/types/connection_acr_values_supported.py b/src/auth0/management/types/connection_acr_values_supported.py deleted file mode 100644 index 1e524bc7..00000000 --- a/src/auth0/management/types/connection_acr_values_supported.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionAcrValuesSupported = typing.List[str] -""" -A list of the Authentication Context Class References that this OP supports -""" diff --git a/src/auth0/management/types/connection_admin_access_token_expires_in_google_apps.py b/src/auth0/management/types/connection_admin_access_token_expires_in_google_apps.py deleted file mode 100644 index b4dbdeb0..00000000 --- a/src/auth0/management/types/connection_admin_access_token_expires_in_google_apps.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt - -ConnectionAdminAccessTokenExpiresInGoogleApps = dt.datetime -""" -Expiration timestamp for the `admin_access_token` in ISO 8601 format. Auth0 uses this value to determine when to refresh the token. -""" diff --git a/src/auth0/management/types/connection_admin_access_token_google_apps.py b/src/auth0/management/types/connection_admin_access_token_google_apps.py deleted file mode 100644 index 4c64cb6d..00000000 --- a/src/auth0/management/types/connection_admin_access_token_google_apps.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionAdminAccessTokenGoogleApps = str -""" -Google Workspace admin access token used to retrieve extended user attributes (such as group memberships, admin status, and suspension state) from the [Google Directory API](https://developers.google.com/admin-sdk/directory). This token is automatically managed by Auth0. -""" diff --git a/src/auth0/management/types/connection_admin_refresh_token_google_apps.py b/src/auth0/management/types/connection_admin_refresh_token_google_apps.py deleted file mode 100644 index 303f130c..00000000 --- a/src/auth0/management/types/connection_admin_refresh_token_google_apps.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionAdminRefreshTokenGoogleApps = str -""" -Google Workspace admin refresh token used to obtain new access tokens for the [Google Directory API](https://developers.google.com/admin-sdk/directory). This token is granted when a Google Workspace admin authorizes Auth0 to access directory data. -""" diff --git a/src/auth0/management/types/connection_agent_ipad.py b/src/auth0/management/types/connection_agent_ipad.py deleted file mode 100644 index f448d354..00000000 --- a/src/auth0/management/types/connection_agent_ipad.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionAgentIpad = str -""" -IP address of the AD connector agent used to validate that authentication requests originate from the corporate network for Kerberos authentication (managed by the AD Connector agent). -""" diff --git a/src/auth0/management/types/connection_agent_mode_ad.py b/src/auth0/management/types/connection_agent_mode_ad.py deleted file mode 100644 index c1dded05..00000000 --- a/src/auth0/management/types/connection_agent_mode_ad.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionAgentModeAd = bool -""" -When enabled, allows direct username/password authentication through the AD connector agent instead of WS-Federation protocol (managed by the AD Connector agent). -""" diff --git a/src/auth0/management/types/connection_agent_version_ad.py b/src/auth0/management/types/connection_agent_version_ad.py deleted file mode 100644 index f920c003..00000000 --- a/src/auth0/management/types/connection_agent_version_ad.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionAgentVersionAd = str -""" -Version identifier of the installed AD connector agent software (managed by the AD Connector agent). -""" diff --git a/src/auth0/management/types/connection_allowed_audiences_google_o_auth_2.py b/src/auth0/management/types/connection_allowed_audiences_google_o_auth_2.py deleted file mode 100644 index b6adbb5e..00000000 --- a/src/auth0/management/types/connection_allowed_audiences_google_o_auth_2.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionAllowedAudiencesGoogleOAuth2 = typing.List[str] -""" -Additional Google client IDs accepted as the `aud` (audience) of Google ID tokens, used by Google native login and Google Streamlined Linking. -""" diff --git a/src/auth0/management/types/connection_api_behavior_enum.py b/src/auth0/management/types/connection_api_behavior_enum.py deleted file mode 100644 index eaf5ec02..00000000 --- a/src/auth0/management/types/connection_api_behavior_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionApiBehaviorEnum = typing.Union[typing.Literal["required", "optional"], typing.Any] diff --git a/src/auth0/management/types/connection_api_enable_groups.py b/src/auth0/management/types/connection_api_enable_groups.py deleted file mode 100644 index 949e5cee..00000000 --- a/src/auth0/management/types/connection_api_enable_groups.py +++ /dev/null @@ -1,3 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionApiEnableGroups = bool diff --git a/src/auth0/management/types/connection_api_enable_groups_google_apps.py b/src/auth0/management/types/connection_api_enable_groups_google_apps.py deleted file mode 100644 index 359ddc45..00000000 --- a/src/auth0/management/types/connection_api_enable_groups_google_apps.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from .connection_api_enable_groups import ConnectionApiEnableGroups - -ConnectionApiEnableGroupsGoogleApps = ConnectionApiEnableGroups -""" -Enables integration with the Google Workspace Admin SDK Directory API for groups. When true, Auth0 can synchronize groups & group memberships and supports inbound directory provisioning for groups. Defaults to false. -""" diff --git a/src/auth0/management/types/connection_api_enable_users.py b/src/auth0/management/types/connection_api_enable_users.py deleted file mode 100644 index 199c6fc4..00000000 --- a/src/auth0/management/types/connection_api_enable_users.py +++ /dev/null @@ -1,3 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionApiEnableUsers = bool diff --git a/src/auth0/management/types/connection_api_enable_users_google_apps.py b/src/auth0/management/types/connection_api_enable_users_google_apps.py deleted file mode 100644 index d40aa6d8..00000000 --- a/src/auth0/management/types/connection_api_enable_users_google_apps.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from .connection_api_enable_users import ConnectionApiEnableUsers - -ConnectionApiEnableUsersGoogleApps = ConnectionApiEnableUsers -""" -Enables integration with the Google Workspace Admin SDK Directory API. When true, Auth0 can retrieve extended user attributes (admin status, suspension status, group memberships) and supports inbound directory provisioning (SCIM). Defaults to true. -""" diff --git a/src/auth0/management/types/connection_app_domain_azure_ad.py b/src/auth0/management/types/connection_app_domain_azure_ad.py deleted file mode 100644 index 1f0c4d32..00000000 --- a/src/auth0/management/types/connection_app_domain_azure_ad.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionAppDomainAzureAd = str -""" -The Azure AD application domain (e.g., 'contoso.onmicrosoft.com'). Used primarily with WS-Federation protocol and Azure AD v1 endpoints. -""" diff --git a/src/auth0/management/types/connection_assertion_decryption_algorithm_profile_enum.py b/src/auth0/management/types/connection_assertion_decryption_algorithm_profile_enum.py deleted file mode 100644 index edeaccf5..00000000 --- a/src/auth0/management/types/connection_assertion_decryption_algorithm_profile_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionAssertionDecryptionAlgorithmProfileEnum = typing.Union[typing.Literal["v2026-1"], typing.Any] diff --git a/src/auth0/management/types/connection_assertion_decryption_settings.py b/src/auth0/management/types/connection_assertion_decryption_settings.py deleted file mode 100644 index fb00f3e7..00000000 --- a/src/auth0/management/types/connection_assertion_decryption_settings.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .connection_assertion_decryption_algorithm_profile_enum import ConnectionAssertionDecryptionAlgorithmProfileEnum - - -class ConnectionAssertionDecryptionSettings(UniversalBaseModel): - """ - Settings for SAML assertion decryption. - """ - - algorithm_profile: ConnectionAssertionDecryptionAlgorithmProfileEnum - algorithm_exceptions: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of insecure algorithms to allow for SAML assertion decryption. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_attribute_map_attributes.py b/src/auth0/management/types/connection_attribute_map_attributes.py deleted file mode 100644 index cc28eabd..00000000 --- a/src/auth0/management/types/connection_attribute_map_attributes.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionAttributeMapAttributes = typing.Dict[str, typing.Any] -""" -Object containing mapping details for incoming claims -""" diff --git a/src/auth0/management/types/connection_attribute_map_oidc.py b/src/auth0/management/types/connection_attribute_map_oidc.py deleted file mode 100644 index 8f4bcfb8..00000000 --- a/src/auth0/management/types/connection_attribute_map_oidc.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .connection_attribute_map_attributes import ConnectionAttributeMapAttributes -from .connection_attribute_map_userinfo_scope import ConnectionAttributeMapUserinfoScope -from .connection_mapping_mode_enum_oidc import ConnectionMappingModeEnumOidc - - -class ConnectionAttributeMapOidc(UniversalBaseModel): - """ - Configuration for mapping claims from the identity provider to Auth0 user profile attributes. Allows customizing which IdP claims populate user fields and how they are transformed. - """ - - attributes: typing.Optional[ConnectionAttributeMapAttributes] = None - mapping_mode: typing.Optional[ConnectionMappingModeEnumOidc] = None - userinfo_scope: typing.Optional[ConnectionAttributeMapUserinfoScope] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_attribute_map_okta.py b/src/auth0/management/types/connection_attribute_map_okta.py deleted file mode 100644 index 764cd295..00000000 --- a/src/auth0/management/types/connection_attribute_map_okta.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .connection_attribute_map_attributes import ConnectionAttributeMapAttributes -from .connection_attribute_map_userinfo_scope import ConnectionAttributeMapUserinfoScope -from .connection_mapping_mode_enum_okta import ConnectionMappingModeEnumOkta - - -class ConnectionAttributeMapOkta(UniversalBaseModel): - """ - Mapping of claims received from the identity provider (IdP) - """ - - attributes: typing.Optional[ConnectionAttributeMapAttributes] = None - mapping_mode: typing.Optional[ConnectionMappingModeEnumOkta] = None - userinfo_scope: typing.Optional[ConnectionAttributeMapUserinfoScope] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_attribute_map_userinfo_scope.py b/src/auth0/management/types/connection_attribute_map_userinfo_scope.py deleted file mode 100644 index e2da5cd7..00000000 --- a/src/auth0/management/types/connection_attribute_map_userinfo_scope.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionAttributeMapUserinfoScope = str -""" -Scopes to send to the IdP's Userinfo endpoint -""" diff --git a/src/auth0/management/types/connection_attributes.py b/src/auth0/management/types/connection_attributes.py deleted file mode 100644 index 9590aeb9..00000000 --- a/src/auth0/management/types/connection_attributes.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .email_attribute import EmailAttribute -from .phone_attribute import PhoneAttribute -from .username_attribute import UsernameAttribute - - -class ConnectionAttributes(UniversalBaseModel): - """ - Attribute configuration - """ - - email: typing.Optional[EmailAttribute] = None - phone_number: typing.Optional[PhoneAttribute] = None - username: typing.Optional[UsernameAttribute] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_auth_params_additional_properties_o_auth_2.py b/src/auth0/management/types/connection_auth_params_additional_properties_o_auth_2.py deleted file mode 100644 index 86140a89..00000000 --- a/src/auth0/management/types/connection_auth_params_additional_properties_o_auth_2.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionAuthParamsAdditionalPropertiesOAuth2 = str -""" -Additional properties for OAuth2 connection authentication parameters -""" diff --git a/src/auth0/management/types/connection_auth_params_email.py b/src/auth0/management/types/connection_auth_params_email.py deleted file mode 100644 index 1efa2c0b..00000000 --- a/src/auth0/management/types/connection_auth_params_email.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionAuthParamsEmail = str -""" -Authentication Parameters (must be valid JSON string) -""" diff --git a/src/auth0/management/types/connection_auth_params_map.py b/src/auth0/management/types/connection_auth_params_map.py deleted file mode 100644 index 1ef9868e..00000000 --- a/src/auth0/management/types/connection_auth_params_map.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionAuthParamsMap = typing.Dict[str, str] -""" -Maps parameter names from Auth0's /authorize endpoint to the identity provider's authorization endpoint parameters. For example, mapping 'audience' to 'resource' transforms the parameter name during authorization requests. Applied after authParams merging. See https://auth0.com/docs/authenticate/identity-providers/social-identity-providers/oauth2#pass-dynamic-parameters -""" diff --git a/src/auth0/management/types/connection_auth_params_o_auth_2.py b/src/auth0/management/types/connection_auth_params_o_auth_2.py deleted file mode 100644 index 32e3622d..00000000 --- a/src/auth0/management/types/connection_auth_params_o_auth_2.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .connection_auth_params_additional_properties_o_auth_2 import ConnectionAuthParamsAdditionalPropertiesOAuth2 - -ConnectionAuthParamsOAuth2 = typing.Dict[str, ConnectionAuthParamsAdditionalPropertiesOAuth2] -""" -Additional static parameters included in every authorization request to the identity provider. These parameters are merged with runtime parameters before the authorization redirect. Keys and values are passed as-is to the identity provider's authorization endpoint. See https://auth0.com/docs/authenticate/identity-providers/social-identity-providers/oauth2#pass-static-parameters -""" diff --git a/src/auth0/management/types/connection_authentication_methods.py b/src/auth0/management/types/connection_authentication_methods.py deleted file mode 100644 index d30f6d19..00000000 --- a/src/auth0/management/types/connection_authentication_methods.py +++ /dev/null @@ -1,30 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .connection_email_otp_authentication_method import ConnectionEmailOtpAuthenticationMethod -from .connection_passkey_authentication_method import ConnectionPasskeyAuthenticationMethod -from .connection_password_authentication_method import ConnectionPasswordAuthenticationMethod -from .connection_phone_otp_authentication_method import ConnectionPhoneOtpAuthenticationMethod - - -class ConnectionAuthenticationMethods(UniversalBaseModel): - """ - Options for enabling authentication methods. - """ - - password: typing.Optional[ConnectionPasswordAuthenticationMethod] = None - passkey: typing.Optional[ConnectionPasskeyAuthenticationMethod] = None - email_otp: typing.Optional[ConnectionEmailOtpAuthenticationMethod] = None - phone_otp: typing.Optional[ConnectionPhoneOtpAuthenticationMethod] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_authentication_purpose.py b/src/auth0/management/types/connection_authentication_purpose.py deleted file mode 100644 index d278158b..00000000 --- a/src/auth0/management/types/connection_authentication_purpose.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class ConnectionAuthenticationPurpose(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for authentication during login. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_authorization_endpoint.py b/src/auth0/management/types/connection_authorization_endpoint.py deleted file mode 100644 index 5da23209..00000000 --- a/src/auth0/management/types/connection_authorization_endpoint.py +++ /dev/null @@ -1,3 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionAuthorizationEndpoint = str diff --git a/src/auth0/management/types/connection_base_url_exact.py b/src/auth0/management/types/connection_base_url_exact.py deleted file mode 100644 index 980f743c..00000000 --- a/src/auth0/management/types/connection_base_url_exact.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionBaseUrlExact = str -""" -Base URL override for the Exact Online API endpoint used for OAuth2 authorization and API requests. Defaults to https://start.exactonline.nl. -""" diff --git a/src/auth0/management/types/connection_brute_force_protection.py b/src/auth0/management/types/connection_brute_force_protection.py deleted file mode 100644 index 5880adc8..00000000 --- a/src/auth0/management/types/connection_brute_force_protection.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionBruteForceProtection = bool -""" -Enables Auth0's brute force protection to prevent credential stuffing attacks. When enabled, blocks suspicious login attempts from specific IP addresses after repeated failures. -""" diff --git a/src/auth0/management/types/connection_calculated_thumbprint_saml.py b/src/auth0/management/types/connection_calculated_thumbprint_saml.py deleted file mode 100644 index aeb2b458..00000000 --- a/src/auth0/management/types/connection_calculated_thumbprint_saml.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from .connection_sha_1_thumbprint import ConnectionSha1Thumbprint - -ConnectionCalculatedThumbprintSaml = ConnectionSha1Thumbprint diff --git a/src/auth0/management/types/connection_certs_ad.py b/src/auth0/management/types/connection_certs_ad.py deleted file mode 100644 index 4ae9f309..00000000 --- a/src/auth0/management/types/connection_certs_ad.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionCertsAd = typing.List[str] -""" -Array of X.509 certificates in PEM format used for validating SAML signatures from the AD identity provider (managed by the AD Connector agent). -""" diff --git a/src/auth0/management/types/connection_claim_types_supported.py b/src/auth0/management/types/connection_claim_types_supported.py deleted file mode 100644 index ab610d79..00000000 --- a/src/auth0/management/types/connection_claim_types_supported.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionClaimTypesSupported = typing.List[str] -""" -JSON array containing a list of the Claim Types that the OpenID Provider supports. These Claim Types are described in Section 5.6 of OpenID Connect Core 1.0 [OpenID.Core]. If omitted, the implementation supports only normal Claims. -""" diff --git a/src/auth0/management/types/connection_claims_locales_supported.py b/src/auth0/management/types/connection_claims_locales_supported.py deleted file mode 100644 index b7c1217e..00000000 --- a/src/auth0/management/types/connection_claims_locales_supported.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionClaimsLocalesSupported = typing.List[str] -""" -Languages and scripts supported for values in Claims being returned, represented as a JSON array of BCP47 [RFC5646] language tag values. Not all languages and scripts are necessarily supported for all Claim values. -""" diff --git a/src/auth0/management/types/connection_claims_parameter_supported.py b/src/auth0/management/types/connection_claims_parameter_supported.py deleted file mode 100644 index 64331235..00000000 --- a/src/auth0/management/types/connection_claims_parameter_supported.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionClaimsParameterSupported = bool -""" -Boolean value specifying whether the OP supports use of the claims parameter, with true indicating support. If omitted, the default value is false. -""" diff --git a/src/auth0/management/types/connection_claims_supported.py b/src/auth0/management/types/connection_claims_supported.py deleted file mode 100644 index 6448f565..00000000 --- a/src/auth0/management/types/connection_claims_supported.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionClaimsSupported = typing.List[str] -""" -JSON array containing a list of the Claim Names of the Claims that the OpenID Provider MAY be able to supply values for. Note that for privacy or other reasons, this might not be an exhaustive list. -""" diff --git a/src/auth0/management/types/connection_client_id.py b/src/auth0/management/types/connection_client_id.py deleted file mode 100644 index 245a03c6..00000000 --- a/src/auth0/management/types/connection_client_id.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionClientId = str -""" -OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider. -""" diff --git a/src/auth0/management/types/connection_client_id_amazon.py b/src/auth0/management/types/connection_client_id_amazon.py deleted file mode 100644 index 3832915c..00000000 --- a/src/auth0/management/types/connection_client_id_amazon.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionClientIdAmazon = str -""" -OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider. -""" diff --git a/src/auth0/management/types/connection_client_id_azure_ad.py b/src/auth0/management/types/connection_client_id_azure_ad.py deleted file mode 100644 index 06075a8a..00000000 --- a/src/auth0/management/types/connection_client_id_azure_ad.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionClientIdAzureAd = str -""" -OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider. -""" diff --git a/src/auth0/management/types/connection_client_id_bitbucket.py b/src/auth0/management/types/connection_client_id_bitbucket.py deleted file mode 100644 index d99e3faa..00000000 --- a/src/auth0/management/types/connection_client_id_bitbucket.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionClientIdBitbucket = str -""" -OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider. -""" diff --git a/src/auth0/management/types/connection_client_id_exact.py b/src/auth0/management/types/connection_client_id_exact.py deleted file mode 100644 index f447c88c..00000000 --- a/src/auth0/management/types/connection_client_id_exact.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionClientIdExact = str -""" -OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider. -""" diff --git a/src/auth0/management/types/connection_client_id_facebook.py b/src/auth0/management/types/connection_client_id_facebook.py deleted file mode 100644 index 31a7c2fe..00000000 --- a/src/auth0/management/types/connection_client_id_facebook.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionClientIdFacebook = str -""" -OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider. -""" diff --git a/src/auth0/management/types/connection_client_id_google_apps.py b/src/auth0/management/types/connection_client_id_google_apps.py deleted file mode 100644 index 679b7875..00000000 --- a/src/auth0/management/types/connection_client_id_google_apps.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionClientIdGoogleApps = str -""" -OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider. -""" diff --git a/src/auth0/management/types/connection_client_id_google_o_auth_2.py b/src/auth0/management/types/connection_client_id_google_o_auth_2.py deleted file mode 100644 index 4445fdf1..00000000 --- a/src/auth0/management/types/connection_client_id_google_o_auth_2.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionClientIdGoogleOAuth2 = str -""" -Your Google OAuth 2.0 client ID. You can find this in your [Google Cloud Console](https://console.cloud.google.com/apis/credentials) under the OAuth 2.0 Client IDs section. -""" diff --git a/src/auth0/management/types/connection_client_id_line.py b/src/auth0/management/types/connection_client_id_line.py deleted file mode 100644 index 8e7ba14c..00000000 --- a/src/auth0/management/types/connection_client_id_line.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionClientIdLine = str -""" -LINE Channel ID issued by LINE during application registration. This value identifies your Auth0 connection to LINE. -""" diff --git a/src/auth0/management/types/connection_client_id_linkedin.py b/src/auth0/management/types/connection_client_id_linkedin.py deleted file mode 100644 index ff19e87a..00000000 --- a/src/auth0/management/types/connection_client_id_linkedin.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionClientIdLinkedin = str -""" -LinkedIn application client identifier -""" diff --git a/src/auth0/management/types/connection_client_id_o_auth_1.py b/src/auth0/management/types/connection_client_id_o_auth_1.py deleted file mode 100644 index 57a41f1c..00000000 --- a/src/auth0/management/types/connection_client_id_o_auth_1.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionClientIdOAuth1 = str -""" -OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider. -""" diff --git a/src/auth0/management/types/connection_client_id_o_auth_2.py b/src/auth0/management/types/connection_client_id_o_auth_2.py deleted file mode 100644 index c752d012..00000000 --- a/src/auth0/management/types/connection_client_id_o_auth_2.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionClientIdOAuth2 = str -""" -OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider. -""" diff --git a/src/auth0/management/types/connection_client_id_oidc.py b/src/auth0/management/types/connection_client_id_oidc.py deleted file mode 100644 index 1c6640cb..00000000 --- a/src/auth0/management/types/connection_client_id_oidc.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionClientIdOidc = str -""" -OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider. -""" diff --git a/src/auth0/management/types/connection_client_id_paypal.py b/src/auth0/management/types/connection_client_id_paypal.py deleted file mode 100644 index 044be2d7..00000000 --- a/src/auth0/management/types/connection_client_id_paypal.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionClientIdPaypal = str -""" -OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider. -""" diff --git a/src/auth0/management/types/connection_client_id_salesforce.py b/src/auth0/management/types/connection_client_id_salesforce.py deleted file mode 100644 index b872370d..00000000 --- a/src/auth0/management/types/connection_client_id_salesforce.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionClientIdSalesforce = str -""" -The OAuth 2.0 client identifier -""" diff --git a/src/auth0/management/types/connection_client_id_samlxaa_requesting_app.py b/src/auth0/management/types/connection_client_id_samlxaa_requesting_app.py deleted file mode 100644 index 411b30bd..00000000 --- a/src/auth0/management/types/connection_client_id_samlxaa_requesting_app.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from .connection_client_id_oidc import ConnectionClientIdOidc - -ConnectionClientIdSamlxaaRequestingApp = ConnectionClientIdOidc -""" -OIDC client identifier issued by the identity provider during application registration. Used to authenticate your Auth0 connection when exchanging SAML Assertions for Refresh Tokens. -""" diff --git a/src/auth0/management/types/connection_client_id_windows_live.py b/src/auth0/management/types/connection_client_id_windows_live.py deleted file mode 100644 index 06f400df..00000000 --- a/src/auth0/management/types/connection_client_id_windows_live.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionClientIdWindowsLive = str -""" -OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider. -""" diff --git a/src/auth0/management/types/connection_client_protocol_saml.py b/src/auth0/management/types/connection_client_protocol_saml.py deleted file mode 100644 index 57550171..00000000 --- a/src/auth0/management/types/connection_client_protocol_saml.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from .connection_options_idp_initiated_client_protocol_enum_saml import ( - ConnectionOptionsIdpInitiatedClientProtocolEnumSaml, -) - -ConnectionClientProtocolSaml = ConnectionOptionsIdpInitiatedClientProtocolEnumSaml -""" -The response protocol used to communicate with the default application. -""" diff --git a/src/auth0/management/types/connection_client_secret.py b/src/auth0/management/types/connection_client_secret.py deleted file mode 100644 index 93c39bca..00000000 --- a/src/auth0/management/types/connection_client_secret.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionClientSecret = str -""" -OAuth 2.0 client secret issued by the identity provider during application registration. Used to authenticate your Auth0 connection when exchanging authorization codes for tokens. May be null for public clients. -""" diff --git a/src/auth0/management/types/connection_client_secret_amazon.py b/src/auth0/management/types/connection_client_secret_amazon.py deleted file mode 100644 index e1bf4d16..00000000 --- a/src/auth0/management/types/connection_client_secret_amazon.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionClientSecretAmazon = str -""" -OAuth 2.0 client secret issued by the identity provider during application registration. Used to authenticate your Auth0 connection when exchanging authorization codes for tokens. May be null for public clients. -""" diff --git a/src/auth0/management/types/connection_client_secret_azure_ad.py b/src/auth0/management/types/connection_client_secret_azure_ad.py deleted file mode 100644 index a097495b..00000000 --- a/src/auth0/management/types/connection_client_secret_azure_ad.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionClientSecretAzureAd = str -""" -The client secret (application password) from your Azure AD app registration. Used to authenticate your application when exchanging authorization codes for tokens. -""" diff --git a/src/auth0/management/types/connection_client_secret_bitbucket.py b/src/auth0/management/types/connection_client_secret_bitbucket.py deleted file mode 100644 index aeff9f24..00000000 --- a/src/auth0/management/types/connection_client_secret_bitbucket.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionClientSecretBitbucket = str -""" -OAuth 2.0 client secret issued by the identity provider during application registration. Used to authenticate your Auth0 connection when exchanging authorization codes for tokens. May be null for public clients. -""" diff --git a/src/auth0/management/types/connection_client_secret_exact.py b/src/auth0/management/types/connection_client_secret_exact.py deleted file mode 100644 index f8cb0bfc..00000000 --- a/src/auth0/management/types/connection_client_secret_exact.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionClientSecretExact = str -""" -OAuth 2.0 client secret issued by the identity provider during application registration. Used to authenticate your Auth0 connection when exchanging authorization codes for tokens. May be null for public clients. -""" diff --git a/src/auth0/management/types/connection_client_secret_facebook.py b/src/auth0/management/types/connection_client_secret_facebook.py deleted file mode 100644 index a568597b..00000000 --- a/src/auth0/management/types/connection_client_secret_facebook.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionClientSecretFacebook = str -""" -OAuth 2.0 client secret issued by the identity provider during application registration. Used to authenticate your Auth0 connection when exchanging authorization codes for tokens. May be null for public clients. -""" diff --git a/src/auth0/management/types/connection_client_secret_google_apps.py b/src/auth0/management/types/connection_client_secret_google_apps.py deleted file mode 100644 index acebfe7e..00000000 --- a/src/auth0/management/types/connection_client_secret_google_apps.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionClientSecretGoogleApps = str -""" -OAuth 2.0 client secret issued by the identity provider during application registration. Used to authenticate your Auth0 connection when exchanging authorization codes for tokens. May be null for public clients. -""" diff --git a/src/auth0/management/types/connection_client_secret_google_o_auth_2.py b/src/auth0/management/types/connection_client_secret_google_o_auth_2.py deleted file mode 100644 index 72feab21..00000000 --- a/src/auth0/management/types/connection_client_secret_google_o_auth_2.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionClientSecretGoogleOAuth2 = str -""" -Your Google OAuth 2.0 client secret. You can find this in your [Google Cloud Console](https://console.cloud.google.com/apis/credentials) under the OAuth 2.0 Client IDs section. -""" diff --git a/src/auth0/management/types/connection_client_secret_line.py b/src/auth0/management/types/connection_client_secret_line.py deleted file mode 100644 index 974851d1..00000000 --- a/src/auth0/management/types/connection_client_secret_line.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionClientSecretLine = str -""" -LINE Channel Secret issued by provider during application registration. This value is used to authenticate your Auth0 connection to the identity provider. -""" diff --git a/src/auth0/management/types/connection_client_secret_linkedin.py b/src/auth0/management/types/connection_client_secret_linkedin.py deleted file mode 100644 index b9d7a65f..00000000 --- a/src/auth0/management/types/connection_client_secret_linkedin.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionClientSecretLinkedin = str -""" -OAuth 2.0 client secret issued by the identity provider during application registration. This value is used to authenticate your Auth0 connection to the identity provider. -""" diff --git a/src/auth0/management/types/connection_client_secret_o_auth_1.py b/src/auth0/management/types/connection_client_secret_o_auth_1.py deleted file mode 100644 index c6229c88..00000000 --- a/src/auth0/management/types/connection_client_secret_o_auth_1.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionClientSecretOAuth1 = str -""" -OAuth 2.0 client secret issued by the identity provider during application registration. Used to authenticate your Auth0 connection when exchanging authorization codes for tokens. May be null for public clients. -""" diff --git a/src/auth0/management/types/connection_client_secret_o_auth_2.py b/src/auth0/management/types/connection_client_secret_o_auth_2.py deleted file mode 100644 index 88e99eb0..00000000 --- a/src/auth0/management/types/connection_client_secret_o_auth_2.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionClientSecretOAuth2 = str -""" -OAuth 2.0 client secret issued by the identity provider during application registration. Used to authenticate your Auth0 connection when exchanging authorization codes for tokens. May be null for public clients. -""" diff --git a/src/auth0/management/types/connection_client_secret_oidc.py b/src/auth0/management/types/connection_client_secret_oidc.py deleted file mode 100644 index d546216b..00000000 --- a/src/auth0/management/types/connection_client_secret_oidc.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionClientSecretOidc = str -""" -OAuth 2.0 client secret issued by the identity provider during application registration. Used to authenticate your Auth0 connection when exchanging authorization codes for tokens. May be null for public clients. -""" diff --git a/src/auth0/management/types/connection_client_secret_paypal.py b/src/auth0/management/types/connection_client_secret_paypal.py deleted file mode 100644 index 36c96106..00000000 --- a/src/auth0/management/types/connection_client_secret_paypal.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionClientSecretPaypal = str -""" -OAuth 2.0 client secret issued by the identity provider during application registration. Used to authenticate your Auth0 connection when exchanging authorization codes for tokens. May be null for public clients. -""" diff --git a/src/auth0/management/types/connection_client_secret_salesforce.py b/src/auth0/management/types/connection_client_secret_salesforce.py deleted file mode 100644 index 6f9a6bed..00000000 --- a/src/auth0/management/types/connection_client_secret_salesforce.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionClientSecretSalesforce = str -""" -The OAuth 2.0 client secret -""" diff --git a/src/auth0/management/types/connection_client_secret_samlxaa_requesting_app.py b/src/auth0/management/types/connection_client_secret_samlxaa_requesting_app.py deleted file mode 100644 index 1009f144..00000000 --- a/src/auth0/management/types/connection_client_secret_samlxaa_requesting_app.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionClientSecretSamlxaaRequestingApp = str -""" -OAuth 2.0 client secret issued by the identity provider during application registration. Used to authenticate your Auth0 connection when exchanging authorization codes for tokens. May be null for public clients. -""" diff --git a/src/auth0/management/types/connection_client_secret_windows_live.py b/src/auth0/management/types/connection_client_secret_windows_live.py deleted file mode 100644 index cd63a614..00000000 --- a/src/auth0/management/types/connection_client_secret_windows_live.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionClientSecretWindowsLive = str -""" -OAuth 2.0 client secret issued by the identity provider during application registration. Used to authenticate your Auth0 connection when exchanging authorization codes for tokens. May be null for public clients. -""" diff --git a/src/auth0/management/types/connection_common.py b/src/auth0/management/types/connection_common.py deleted file mode 100644 index e00494d3..00000000 --- a/src/auth0/management/types/connection_common.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .connection_display_name import ConnectionDisplayName -from .connection_enabled_clients import ConnectionEnabledClients -from .connection_is_domain_connection import ConnectionIsDomainConnection -from .connections_metadata import ConnectionsMetadata - - -class ConnectionCommon(UniversalBaseModel): - display_name: typing.Optional[ConnectionDisplayName] = None - enabled_clients: typing.Optional[ConnectionEnabledClients] = None - is_domain_connection: typing.Optional[ConnectionIsDomainConnection] = None - metadata: typing.Optional[ConnectionsMetadata] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_community_base_url_salesforce.py b/src/auth0/management/types/connection_community_base_url_salesforce.py deleted file mode 100644 index 78fc1c46..00000000 --- a/src/auth0/management/types/connection_community_base_url_salesforce.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from .connection_https_url_with_http_fallback import ConnectionHttpsUrlWithHttpFallback - -ConnectionCommunityBaseUrlSalesforce = ConnectionHttpsUrlWithHttpFallback -""" -The base URL of your Salesforce Community (Experience Cloud) site. When specified, authentication flows will use this Community URL instead of the standard Salesforce login page, enabling users to authenticate through your branded Community portal. -""" diff --git a/src/auth0/management/types/connection_configuration.py b/src/auth0/management/types/connection_configuration.py deleted file mode 100644 index d0fd391d..00000000 --- a/src/auth0/management/types/connection_configuration.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionConfiguration = typing.Dict[str, str] -""" -A hash of configuration key/value pairs. -""" diff --git a/src/auth0/management/types/connection_connected_accounts_purpose.py b/src/auth0/management/types/connection_connected_accounts_purpose.py deleted file mode 100644 index b64f282c..00000000 --- a/src/auth0/management/types/connection_connected_accounts_purpose.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class ConnectionConnectedAccountsPurpose(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for connected accounts and Token Vault. - """ - - active: bool - cross_app_access: typing.Optional[bool] = None - allow_missing_user_id: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true, allows storing a connected account without an upstream identity provider user id. At most one such connected account is allowed per user per connection. Default false preserves the strict behaviour (an upstream user id is required). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_connected_accounts_purpose_xaa.py b/src/auth0/management/types/connection_connected_accounts_purpose_xaa.py deleted file mode 100644 index b51b5749..00000000 --- a/src/auth0/management/types/connection_connected_accounts_purpose_xaa.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class ConnectionConnectedAccountsPurposeXaa(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for connected accounts and Token Vault. - """ - - cross_app_access: typing.Optional[bool] = None - active: bool - allow_missing_user_id: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true, allows storing a connected account without an upstream identity provider user id. At most one such connected account is allowed per user per connection. Default false preserves the strict behaviour (an upstream user id is required). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_connection_settings.py b/src/auth0/management/types/connection_connection_settings.py deleted file mode 100644 index cabbeedc..00000000 --- a/src/auth0/management/types/connection_connection_settings.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .connection_connection_settings_pkce_enum import ConnectionConnectionSettingsPkceEnum - - -class ConnectionConnectionSettings(UniversalBaseModel): - """ - OAuth 2.0 PKCE (Proof Key for Code Exchange) settings. PKCE enhances security for public clients by preventing authorization code interception attacks. 'auto' (recommended) uses the strongest method supported by the IdP. - """ - - pkce: typing.Optional[ConnectionConnectionSettingsPkceEnum] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_connection_settings_pkce_enum.py b/src/auth0/management/types/connection_connection_settings_pkce_enum.py deleted file mode 100644 index 339bca27..00000000 --- a/src/auth0/management/types/connection_connection_settings_pkce_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionConnectionSettingsPkceEnum = typing.Union[typing.Literal["auto", "S256", "plain", "disabled"], typing.Any] diff --git a/src/auth0/management/types/connection_cross_app_access_resource_app.py b/src/auth0/management/types/connection_cross_app_access_resource_app.py deleted file mode 100644 index 0943e8db..00000000 --- a/src/auth0/management/types/connection_cross_app_access_resource_app.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .connection_cross_app_access_resource_app_status_enum import ConnectionCrossAppAccessResourceAppStatusEnum - - -class ConnectionCrossAppAccessResourceApp(UniversalBaseModel): - """ - Cross App Access - Resource App settings that apply to this connection. - """ - - status: ConnectionCrossAppAccessResourceAppStatusEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_cross_app_access_resource_app_status_enum.py b/src/auth0/management/types/connection_cross_app_access_resource_app_status_enum.py deleted file mode 100644 index 7894b678..00000000 --- a/src/auth0/management/types/connection_cross_app_access_resource_app_status_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionCrossAppAccessResourceAppStatusEnum = typing.Union[typing.Literal["disabled", "enabled"], typing.Any] diff --git a/src/auth0/management/types/connection_custom_headers_o_auth_2.py b/src/auth0/management/types/connection_custom_headers_o_auth_2.py deleted file mode 100644 index c08f3ddc..00000000 --- a/src/auth0/management/types/connection_custom_headers_o_auth_2.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionCustomHeadersOAuth2 = typing.Dict[str, str] -""" -Custom HTTP headers sent with token exchange requests to the identity provider's token endpoint. Provided as key-value pairs (e.g., {'X-Custom-Header': 'value'}). Auth0's User-Agent header is always included by default. -""" diff --git a/src/auth0/management/types/connection_custom_scripts.py b/src/auth0/management/types/connection_custom_scripts.py deleted file mode 100644 index 4147f120..00000000 --- a/src/auth0/management/types/connection_custom_scripts.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class ConnectionCustomScripts(UniversalBaseModel): - """ - A map of scripts used to integrate with a custom database. - """ - - login: typing.Optional[str] = None - get_user: typing.Optional[str] = None - delete: typing.Optional[str] = None - change_password: typing.Optional[str] = None - verify: typing.Optional[str] = None - create: typing.Optional[str] = None - change_username: typing.Optional[str] = None - change_email: typing.Optional[str] = None - change_phone_number: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_debug_saml.py b/src/auth0/management/types/connection_debug_saml.py deleted file mode 100644 index 96ab1d9c..00000000 --- a/src/auth0/management/types/connection_debug_saml.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionDebugSaml = bool -""" -When true, enables detailed SAML debugging by issuing 'w' (warning) events in tenant logs containing SAML request/response details. WARNING: Potentially exposes sensitive user information (PII, credentials) and should only be enabled temporarily for debugging purposes. -""" diff --git a/src/auth0/management/types/connection_decryption_key_saml.py b/src/auth0/management/types/connection_decryption_key_saml.py deleted file mode 100644 index 52bdcc55..00000000 --- a/src/auth0/management/types/connection_decryption_key_saml.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .connection_decryption_key_saml_cert import ConnectionDecryptionKeySamlCert - -ConnectionDecryptionKeySaml = typing.Union[ConnectionDecryptionKeySamlCert, str] diff --git a/src/auth0/management/types/connection_decryption_key_saml_cert.py b/src/auth0/management/types/connection_decryption_key_saml_cert.py deleted file mode 100644 index 01af7c28..00000000 --- a/src/auth0/management/types/connection_decryption_key_saml_cert.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class ConnectionDecryptionKeySamlCert(UniversalBaseModel): - """ - Key pair with 'key' and 'cert' properties. - """ - - cert: typing.Optional[str] = pydantic.Field(default=None) - """ - Base64-encoded X.509 certificate in PEM format. - """ - - key: typing.Optional[str] = pydantic.Field(default=None) - """ - Private key in PEM format. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_destination_url_saml.py b/src/auth0/management/types/connection_destination_url_saml.py deleted file mode 100644 index ed690b58..00000000 --- a/src/auth0/management/types/connection_destination_url_saml.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from .connection_https_url_with_http_fallback_255 import ConnectionHttpsUrlWithHttpFallback255 - -ConnectionDestinationUrlSaml = ConnectionHttpsUrlWithHttpFallback255 -""" -The URL where Auth0 will send SAML authentication requests (the Identity Provider's SSO URL). Must be a valid HTTPS URL. -""" diff --git a/src/auth0/management/types/connection_digest_algorithm_enum_saml.py b/src/auth0/management/types/connection_digest_algorithm_enum_saml.py deleted file mode 100644 index a0321cf4..00000000 --- a/src/auth0/management/types/connection_digest_algorithm_enum_saml.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionDigestAlgorithmEnumSaml = typing.Union[typing.Literal["sha1", "sha256"], typing.Any] diff --git a/src/auth0/management/types/connection_digest_algorithm_saml.py b/src/auth0/management/types/connection_digest_algorithm_saml.py deleted file mode 100644 index 5c4aaf69..00000000 --- a/src/auth0/management/types/connection_digest_algorithm_saml.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from .connection_digest_algorithm_enum_saml import ConnectionDigestAlgorithmEnumSaml - -ConnectionDigestAlgorithmSaml = ConnectionDigestAlgorithmEnumSaml -""" -Algorithm used for computing digest values when signing SAML requests and logout requests. Defaults to 'sha256'. -""" diff --git a/src/auth0/management/types/connection_disable_self_service_change_password.py b/src/auth0/management/types/connection_disable_self_service_change_password.py deleted file mode 100644 index 4cf21a09..00000000 --- a/src/auth0/management/types/connection_disable_self_service_change_password.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionDisableSelfServiceChangePassword = bool -""" -Indicates whether to disable self-service change password. Set to true to stop the "Forgot Password" being displayed on login pages -""" diff --git a/src/auth0/management/types/connection_disable_signup.py b/src/auth0/management/types/connection_disable_signup.py deleted file mode 100644 index 7f835a3c..00000000 --- a/src/auth0/management/types/connection_disable_signup.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionDisableSignup = bool -""" -When true, prevents new user registration through this connection. Existing users can still authenticate. Useful for invite-only applications or during user migration. -""" diff --git a/src/auth0/management/types/connection_disable_signup_sms.py b/src/auth0/management/types/connection_disable_signup_sms.py deleted file mode 100644 index fe05a133..00000000 --- a/src/auth0/management/types/connection_disable_signup_sms.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from .connection_disable_signup import ConnectionDisableSignup - -ConnectionDisableSignupSms = ConnectionDisableSignup -""" -Controls whether new user signups are allowed via SMS authentication -""" diff --git a/src/auth0/management/types/connection_discovery_url.py b/src/auth0/management/types/connection_discovery_url.py deleted file mode 100644 index 663aeac3..00000000 --- a/src/auth0/management/types/connection_discovery_url.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from .connection_https_url_with_http_fallback_255 import ConnectionHttpsUrlWithHttpFallback255 - -ConnectionDiscoveryUrl = ConnectionHttpsUrlWithHttpFallback255 -""" -URL of the identity provider's OIDC Discovery endpoint (/.well-known/openid-configuration). When provided and oidc_metadata is empty, Auth0 automatically retrieves the provider's configuration including endpoints and supported features. -""" diff --git a/src/auth0/management/types/connection_display_name.py b/src/auth0/management/types/connection_display_name.py deleted file mode 100644 index b49c2da2..00000000 --- a/src/auth0/management/types/connection_display_name.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionDisplayName = str -""" -Connection name used in the new universal login experience -""" diff --git a/src/auth0/management/types/connection_display_values_supported.py b/src/auth0/management/types/connection_display_values_supported.py deleted file mode 100644 index b907712c..00000000 --- a/src/auth0/management/types/connection_display_values_supported.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionDisplayValuesSupported = typing.List[str] -""" -JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used. -""" diff --git a/src/auth0/management/types/connection_domain_aliases.py b/src/auth0/management/types/connection_domain_aliases.py deleted file mode 100644 index b5814f87..00000000 --- a/src/auth0/management/types/connection_domain_aliases.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .connection_domain_aliases_items_one import ConnectionDomainAliasesItemsOne - -ConnectionDomainAliases = typing.List[ConnectionDomainAliasesItemsOne] -""" -Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication. -""" diff --git a/src/auth0/management/types/connection_domain_aliases_ad.py b/src/auth0/management/types/connection_domain_aliases_ad.py deleted file mode 100644 index 4824a9bc..00000000 --- a/src/auth0/management/types/connection_domain_aliases_ad.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionDomainAliasesAd = typing.List[str] -""" -List of domain names that can be used with identifier-first authentication flow to route users to this AD connection; each domain must be a valid DNS name up to 256 characters -""" diff --git a/src/auth0/management/types/connection_domain_aliases_azure_ad.py b/src/auth0/management/types/connection_domain_aliases_azure_ad.py deleted file mode 100644 index a11f23a6..00000000 --- a/src/auth0/management/types/connection_domain_aliases_azure_ad.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionDomainAliasesAzureAd = typing.List[str] -""" -Alternative domain names associated with this Azure AD tenant. Allows users from multiple verified domains to authenticate through this connection. Can be an array of domain strings. -""" diff --git a/src/auth0/management/types/connection_domain_aliases_items_one.py b/src/auth0/management/types/connection_domain_aliases_items_one.py deleted file mode 100644 index 90c3eddf..00000000 --- a/src/auth0/management/types/connection_domain_aliases_items_one.py +++ /dev/null @@ -1,3 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionDomainAliasesItemsOne = str diff --git a/src/auth0/management/types/connection_domain_aliases_saml.py b/src/auth0/management/types/connection_domain_aliases_saml.py deleted file mode 100644 index e01d3664..00000000 --- a/src/auth0/management/types/connection_domain_aliases_saml.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .connection_domain_aliases_items_one import ConnectionDomainAliasesItemsOne - -ConnectionDomainAliasesSaml = typing.List[ConnectionDomainAliasesItemsOne] -""" -Domain aliases for the connection -""" diff --git a/src/auth0/management/types/connection_domain_google_apps.py b/src/auth0/management/types/connection_domain_google_apps.py deleted file mode 100644 index cdb61fdf..00000000 --- a/src/auth0/management/types/connection_domain_google_apps.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionDomainGoogleApps = str -""" -Primary Google Workspace domain name that users must belong to. -""" diff --git a/src/auth0/management/types/connection_domain_okta.py b/src/auth0/management/types/connection_domain_okta.py deleted file mode 100644 index c711a6fd..00000000 --- a/src/auth0/management/types/connection_domain_okta.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionDomainOkta = str -""" -Domain of the Okta organization (e.g., dev-123456.okta.com). Should be just the domain of the okta server with no scheme or trailing backslash. Discovery runs only when connection.options.oidc_metadata is empty and a domain is provided -""" diff --git a/src/auth0/management/types/connection_dpop_signing_alg_enum.py b/src/auth0/management/types/connection_dpop_signing_alg_enum.py deleted file mode 100644 index f708bfcd..00000000 --- a/src/auth0/management/types/connection_dpop_signing_alg_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionDpopSigningAlgEnum = typing.Union[typing.Literal["ES256", "ES384", "ES512", "Ed25519"], typing.Any] diff --git a/src/auth0/management/types/connection_dpop_signing_alg_values_supported.py b/src/auth0/management/types/connection_dpop_signing_alg_values_supported.py deleted file mode 100644 index 4d692e81..00000000 --- a/src/auth0/management/types/connection_dpop_signing_alg_values_supported.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionDpopSigningAlgValuesSupported = typing.List[str] -""" -JSON array containing a list of the JWS signing algorithms (alg values) supported for DPoP proof JWT signing. -""" diff --git a/src/auth0/management/types/connection_email_body_email.py b/src/auth0/management/types/connection_email_body_email.py deleted file mode 100644 index 390bd55f..00000000 --- a/src/auth0/management/types/connection_email_body_email.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionEmailBodyEmail = str -""" -Email body content -""" diff --git a/src/auth0/management/types/connection_email_email.py b/src/auth0/management/types/connection_email_email.py deleted file mode 100644 index a9c3e9f7..00000000 --- a/src/auth0/management/types/connection_email_email.py +++ /dev/null @@ -1,37 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .connection_email_body_email import ConnectionEmailBodyEmail -from .connection_email_email_syntax import ConnectionEmailEmailSyntax -from .connection_email_from_email import ConnectionEmailFromEmail -from .connection_email_subject_email import ConnectionEmailSubjectEmail - - -class ConnectionEmailEmail(UniversalBaseModel): - """ - Email template configuration - """ - - body: typing.Optional[ConnectionEmailBodyEmail] = None - from_: typing_extensions.Annotated[ - typing.Optional[ConnectionEmailFromEmail], FieldMetadata(alias="from"), pydantic.Field(alias="from") - ] = None - subject: typing.Optional[ConnectionEmailSubjectEmail] = None - syntax: typing.Optional[ConnectionEmailEmailSyntax] = pydantic.Field(default=None) - """ - Email template syntax type - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_email_email_syntax.py b/src/auth0/management/types/connection_email_email_syntax.py deleted file mode 100644 index d1f68902..00000000 --- a/src/auth0/management/types/connection_email_email_syntax.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionEmailEmailSyntax = typing.Union[typing.Literal["liquid"], typing.Any] diff --git a/src/auth0/management/types/connection_email_from_email.py b/src/auth0/management/types/connection_email_from_email.py deleted file mode 100644 index b6a0fb4f..00000000 --- a/src/auth0/management/types/connection_email_from_email.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionEmailFromEmail = str -""" -From email address -""" diff --git a/src/auth0/management/types/connection_email_otp_authentication_method.py b/src/auth0/management/types/connection_email_otp_authentication_method.py deleted file mode 100644 index efc8b92e..00000000 --- a/src/auth0/management/types/connection_email_otp_authentication_method.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class ConnectionEmailOtpAuthenticationMethod(UniversalBaseModel): - """ - Email OTP authentication enablement - """ - - enabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - Determines whether email OTP is enabled - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_email_subject_email.py b/src/auth0/management/types/connection_email_subject_email.py deleted file mode 100644 index 0ea2dd03..00000000 --- a/src/auth0/management/types/connection_email_subject_email.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionEmailSubjectEmail = str -""" -Email subject line -""" diff --git a/src/auth0/management/types/connection_enable_pushed_authorization_requests.py b/src/auth0/management/types/connection_enable_pushed_authorization_requests.py deleted file mode 100644 index 8b709b2d..00000000 --- a/src/auth0/management/types/connection_enable_pushed_authorization_requests.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionEnablePushedAuthorizationRequests = bool -""" -When true, the server uses Pushed Authorization Requests (PAR) to start the authorization transaction with the identity provider, pushing authorization parameters over back-channel HTTP and redirecting with only a request_uri. -""" diff --git a/src/auth0/management/types/connection_enable_script_context.py b/src/auth0/management/types/connection_enable_script_context.py deleted file mode 100644 index 231cb519..00000000 --- a/src/auth0/management/types/connection_enable_script_context.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionEnableScriptContext = bool -""" -Set to true to inject context into custom DB scripts (warning: cannot be disabled once enabled) -""" diff --git a/src/auth0/management/types/connection_enabled_client.py b/src/auth0/management/types/connection_enabled_client.py deleted file mode 100644 index 3d5910e2..00000000 --- a/src/auth0/management/types/connection_enabled_client.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class ConnectionEnabledClient(UniversalBaseModel): - client_id: str = pydantic.Field() - """ - The client id - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_enabled_clients.py b/src/auth0/management/types/connection_enabled_clients.py deleted file mode 100644 index 41b539bd..00000000 --- a/src/auth0/management/types/connection_enabled_clients.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionEnabledClients = typing.List[str] -""" -DEPRECATED property. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. -""" diff --git a/src/auth0/management/types/connection_enabled_database_customization.py b/src/auth0/management/types/connection_enabled_database_customization.py deleted file mode 100644 index 7808c3f9..00000000 --- a/src/auth0/management/types/connection_enabled_database_customization.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionEnabledDatabaseCustomization = bool -""" -Set to true to use a legacy user store -""" diff --git a/src/auth0/management/types/connection_end_session_endpoint.py b/src/auth0/management/types/connection_end_session_endpoint.py deleted file mode 100644 index 11472924..00000000 --- a/src/auth0/management/types/connection_end_session_endpoint.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionEndSessionEndpoint = str -""" -URL of the identity provider's logout/end session endpoint. When configured as a static URL, users are redirected here after logging out from Auth0. Must use HTTPS scheme. -""" diff --git a/src/auth0/management/types/connection_entity_id_saml.py b/src/auth0/management/types/connection_entity_id_saml.py deleted file mode 100644 index df83050e..00000000 --- a/src/auth0/management/types/connection_entity_id_saml.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionEntityIdSaml = str -""" -The entity identifier (Issuer) for the SAML Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'. This value is included in SAML AuthnRequest messages sent to the identity provider. -""" diff --git a/src/auth0/management/types/connection_ext_admin.py b/src/auth0/management/types/connection_ext_admin.py deleted file mode 100644 index 0b3027dd..00000000 --- a/src/auth0/management/types/connection_ext_admin.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionExtAdmin = bool -""" -Indicates to store whether the user is a domain administrator. -""" diff --git a/src/auth0/management/types/connection_ext_agreed_terms.py b/src/auth0/management/types/connection_ext_agreed_terms.py deleted file mode 100644 index 4aced18e..00000000 --- a/src/auth0/management/types/connection_ext_agreed_terms.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionExtAgreedTerms = bool -""" -Indicates to store whether the user has agreed to the terms of service. -""" diff --git a/src/auth0/management/types/connection_ext_agreed_terms_google_apps.py b/src/auth0/management/types/connection_ext_agreed_terms_google_apps.py deleted file mode 100644 index 1d438da4..00000000 --- a/src/auth0/management/types/connection_ext_agreed_terms_google_apps.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from .connection_ext_agreed_terms import ConnectionExtAgreedTerms - -ConnectionExtAgreedTermsGoogleApps = ConnectionExtAgreedTerms -""" -Fetches the `agreedToTerms` flag from the Google Directory profile. -""" diff --git a/src/auth0/management/types/connection_ext_assigned_plans.py b/src/auth0/management/types/connection_ext_assigned_plans.py deleted file mode 100644 index 8dd56880..00000000 --- a/src/auth0/management/types/connection_ext_assigned_plans.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionExtAssignedPlans = bool -""" -Indicates whether to store a list of the Office 365 assigned plans for the user. -""" diff --git a/src/auth0/management/types/connection_ext_groups.py b/src/auth0/management/types/connection_ext_groups.py deleted file mode 100644 index 1b839534..00000000 --- a/src/auth0/management/types/connection_ext_groups.py +++ /dev/null @@ -1,3 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionExtGroups = bool diff --git a/src/auth0/management/types/connection_ext_groups_azure_ad.py b/src/auth0/management/types/connection_ext_groups_azure_ad.py deleted file mode 100644 index 4fea2c25..00000000 --- a/src/auth0/management/types/connection_ext_groups_azure_ad.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from .connection_ext_groups import ConnectionExtGroups - -ConnectionExtGroupsAzureAd = ConnectionExtGroups -""" -When enabled (true), retrieves and stores Azure AD security group memberships for the user. Requires Microsoft Graph API permissions (Directory.Read.All). Allows configuring max_groups_to_retrieve. -""" diff --git a/src/auth0/management/types/connection_ext_groups_google_apps.py b/src/auth0/management/types/connection_ext_groups_google_apps.py deleted file mode 100644 index 817f89b2..00000000 --- a/src/auth0/management/types/connection_ext_groups_google_apps.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from .connection_ext_groups import ConnectionExtGroups - -ConnectionExtGroupsGoogleApps = ConnectionExtGroups -""" -Enables enrichment with Google group memberships (required for `ext_groups_extended`). -""" diff --git a/src/auth0/management/types/connection_ext_is_admin_google_apps.py b/src/auth0/management/types/connection_ext_is_admin_google_apps.py deleted file mode 100644 index 787a9401..00000000 --- a/src/auth0/management/types/connection_ext_is_admin_google_apps.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from .connection_ext_admin import ConnectionExtAdmin - -ConnectionExtIsAdminGoogleApps = ConnectionExtAdmin -""" -Fetches the Google Directory admin flag for the signing-in user. -""" diff --git a/src/auth0/management/types/connection_ext_is_suspended.py b/src/auth0/management/types/connection_ext_is_suspended.py deleted file mode 100644 index 0c976711..00000000 --- a/src/auth0/management/types/connection_ext_is_suspended.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionExtIsSuspended = bool -""" -Indicates to store whether a user's account is suspended. -""" diff --git a/src/auth0/management/types/connection_ext_is_suspended_google_apps.py b/src/auth0/management/types/connection_ext_is_suspended_google_apps.py deleted file mode 100644 index f9d5ded5..00000000 --- a/src/auth0/management/types/connection_ext_is_suspended_google_apps.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from .connection_ext_is_suspended import ConnectionExtIsSuspended - -ConnectionExtIsSuspendedGoogleApps = ConnectionExtIsSuspended -""" -Fetches the Google Directory suspended flag for the signing-in user. -""" diff --git a/src/auth0/management/types/connection_ext_profile.py b/src/auth0/management/types/connection_ext_profile.py deleted file mode 100644 index 5cb4f7e2..00000000 --- a/src/auth0/management/types/connection_ext_profile.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionExtProfile = bool -""" -When enabled (true), retrieves extended profile attributes from Azure AD via Microsoft Graph API (job title, department, office location, etc.). Requires Graph API permissions. Only available with Azure AD v1 or when explicitly enabled for v2. -""" diff --git a/src/auth0/management/types/connection_fields_map.py b/src/auth0/management/types/connection_fields_map.py deleted file mode 100644 index b29e4dfc..00000000 --- a/src/auth0/management/types/connection_fields_map.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionFieldsMap = typing.Dict[str, str] -""" -Mapping of user profile fields returned from the OAuth2 provider to Auth0 user attributes -""" diff --git a/src/auth0/management/types/connection_fields_map_saml.py b/src/auth0/management/types/connection_fields_map_saml.py deleted file mode 100644 index df7c0f3a..00000000 --- a/src/auth0/management/types/connection_fields_map_saml.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .connection_fields_map_saml_value import ConnectionFieldsMapSamlValue - -ConnectionFieldsMapSaml = typing.Dict[str, ConnectionFieldsMapSamlValue] -""" -Maps SAML assertion attributes from the identity provider to Auth0 user profile attributes. Format: { 'auth0_field': 'saml_attribute' } or { 'auth0_field': ['saml_attr1', 'saml_attr2'] } for fallback options. Merged with default mappings for email, name, given_name, family_name, and groups. -""" diff --git a/src/auth0/management/types/connection_fields_map_saml_value.py b/src/auth0/management/types/connection_fields_map_saml_value.py deleted file mode 100644 index 523371cf..00000000 --- a/src/auth0/management/types/connection_fields_map_saml_value.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionFieldsMapSamlValue = typing.Union[str, typing.List[str]] diff --git a/src/auth0/management/types/connection_for_list.py b/src/auth0/management/types/connection_for_list.py deleted file mode 100644 index 7e924391..00000000 --- a/src/auth0/management/types/connection_for_list.py +++ /dev/null @@ -1,65 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .connection_authentication_purpose import ConnectionAuthenticationPurpose -from .connection_connected_accounts_purpose import ConnectionConnectedAccountsPurpose -from .connection_options import ConnectionOptions -from .connections_metadata import ConnectionsMetadata -from .cross_app_access_requesting_app import CrossAppAccessRequestingApp -from .cross_app_access_resource_app import CrossAppAccessResourceApp - - -class ConnectionForList(UniversalBaseModel): - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The name of the connection - """ - - display_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Connection name used in login screen - """ - - options: typing.Optional[ConnectionOptions] = None - id: typing.Optional[str] = pydantic.Field(default=None) - """ - The connection's identifier - """ - - strategy: typing.Optional[str] = pydantic.Field(default=None) - """ - The type of the connection, related to the identity provider - """ - - realms: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. - """ - - is_domain_connection: typing.Optional[bool] = pydantic.Field(default=None) - """ - True if the connection is domain level - """ - - show_as_button: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. - """ - - metadata: typing.Optional[ConnectionsMetadata] = None - authentication: typing.Optional[ConnectionAuthenticationPurpose] = None - connected_accounts: typing.Optional[ConnectionConnectedAccountsPurpose] = None - cross_app_access_requesting_app: typing.Optional[CrossAppAccessRequestingApp] = None - cross_app_access_resource_app: typing.Optional[CrossAppAccessResourceApp] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_for_organization.py b/src/auth0/management/types/connection_for_organization.py deleted file mode 100644 index a535e7dc..00000000 --- a/src/auth0/management/types/connection_for_organization.py +++ /dev/null @@ -1,41 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class ConnectionForOrganization(UniversalBaseModel): - """ - Connection to be added to the organization. - """ - - connection_id: str = pydantic.Field() - """ - ID of the connection. - """ - - assign_membership_on_login: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true, all users that log in with this connection will be automatically granted membership in the organization. When false, users must be granted membership in the organization before logging in with this connection. - """ - - show_as_button: typing.Optional[bool] = pydantic.Field(default=None) - """ - Determines whether a connection should be displayed on this organization’s login prompt. Only applicable for enterprise connections. Default: true. - """ - - is_signup_enabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - Determines whether organization signup should be enabled for this organization connection. Only applicable for database connections. Default: false. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_forward_req_info_sms.py b/src/auth0/management/types/connection_forward_req_info_sms.py deleted file mode 100644 index a4807e25..00000000 --- a/src/auth0/management/types/connection_forward_req_info_sms.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionForwardReqInfoSms = bool -""" -When set to true, the gateway receives HTTP request details including IP address and User Agent from the client. -""" diff --git a/src/auth0/management/types/connection_freeform_scopes_amazon.py b/src/auth0/management/types/connection_freeform_scopes_amazon.py deleted file mode 100644 index 5b899e71..00000000 --- a/src/auth0/management/types/connection_freeform_scopes_amazon.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from .connection_scope_array import ConnectionScopeArray - -ConnectionFreeformScopesAmazon = ConnectionScopeArray -""" -Additional OAuth scopes to request from Amazon beyond the standard profile and postal_code scopes. These scopes must be valid Amazon Login scopes. -""" diff --git a/src/auth0/management/types/connection_freeform_scopes_google_o_auth_2.py b/src/auth0/management/types/connection_freeform_scopes_google_o_auth_2.py deleted file mode 100644 index 5ec27608..00000000 --- a/src/auth0/management/types/connection_freeform_scopes_google_o_auth_2.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from .connection_scope_array import ConnectionScopeArray - -ConnectionFreeformScopesGoogleOAuth2 = ConnectionScopeArray -""" -Array of custom OAuth 2.0 scopes to request from Google during authentication. Use this to request scopes not covered by the predefined scope options. -""" diff --git a/src/auth0/management/types/connection_freeform_scopes_linkedin.py b/src/auth0/management/types/connection_freeform_scopes_linkedin.py deleted file mode 100644 index 225069f7..00000000 --- a/src/auth0/management/types/connection_freeform_scopes_linkedin.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from .connection_scope_array import ConnectionScopeArray - -ConnectionFreeformScopesLinkedin = ConnectionScopeArray -""" -Array of custom OAuth 2.0 scopes to request from Linkedin during authentication. Use this to request scopes not covered by the predefined scope options. -""" diff --git a/src/auth0/management/types/connection_freeform_scopes_paypal.py b/src/auth0/management/types/connection_freeform_scopes_paypal.py deleted file mode 100644 index 00836238..00000000 --- a/src/auth0/management/types/connection_freeform_scopes_paypal.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from .connection_scope_array import ConnectionScopeArray - -ConnectionFreeformScopesPaypal = ConnectionScopeArray -""" -Additional OAuth scopes to request from PayPal beyond the standard attribute scopes. Enter valid PayPal scopes from their documentation. Invalid scopes may cause authentication errors. -""" diff --git a/src/auth0/management/types/connection_freeform_scopes_salesforce.py b/src/auth0/management/types/connection_freeform_scopes_salesforce.py deleted file mode 100644 index 6fd41708..00000000 --- a/src/auth0/management/types/connection_freeform_scopes_salesforce.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from .connection_scope_array import ConnectionScopeArray - -ConnectionFreeformScopesSalesforce = ConnectionScopeArray -""" -Additional OAuth scopes to request from Salesforce beyond the standard profile permissions. Enter valid scopes from the Salesforce documentation. Invalid scopes may cause authentication errors. -""" diff --git a/src/auth0/management/types/connection_freeform_scopes_windows_live.py b/src/auth0/management/types/connection_freeform_scopes_windows_live.py deleted file mode 100644 index fa1709cf..00000000 --- a/src/auth0/management/types/connection_freeform_scopes_windows_live.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from .connection_scope_array import ConnectionScopeArray - -ConnectionFreeformScopesWindowsLive = ConnectionScopeArray -""" -Custom OAuth scopes not predefined in the standard scope list. -""" diff --git a/src/auth0/management/types/connection_from_sms.py b/src/auth0/management/types/connection_from_sms.py deleted file mode 100644 index 1d39be2c..00000000 --- a/src/auth0/management/types/connection_from_sms.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionFromSms = str -""" -The sender phone number or alphanumeric sender ID for outgoing SMS messages -""" diff --git a/src/auth0/management/types/connection_gateway_authentication.py b/src/auth0/management/types/connection_gateway_authentication.py deleted file mode 100644 index 66dbf3c9..00000000 --- a/src/auth0/management/types/connection_gateway_authentication.py +++ /dev/null @@ -1,54 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata - - -class ConnectionGatewayAuthentication(UniversalBaseModel): - """ - Token-based authentication settings to be applied when connection is using an sms strategy. - """ - - method: str = pydantic.Field() - """ - The Authorization header type. - """ - - subject: typing.Optional[str] = pydantic.Field(default=None) - """ - The subject to be added to the JWT payload. - """ - - audience: str = pydantic.Field() - """ - The audience to be added to the JWT payload. - """ - - secret: str = pydantic.Field() - """ - The secret to be used for signing tokens. - """ - - secret_base_64_encoded: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="secret_base64_encoded"), - pydantic.Field( - alias="secret_base64_encoded", description="Set to true if the provided secret is base64 encoded." - ), - ] = None - """ - Set to true if the provided secret is base64 encoded. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_gateway_authentication_audience_sms.py b/src/auth0/management/types/connection_gateway_authentication_audience_sms.py deleted file mode 100644 index 2abdecb5..00000000 --- a/src/auth0/management/types/connection_gateway_authentication_audience_sms.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionGatewayAuthenticationAudienceSms = str -""" -`aud` claim value in the JWT sent to the SMS gateway. Identifies the gateway service (e.g., 'urn:MySmsGateway'). -""" diff --git a/src/auth0/management/types/connection_gateway_authentication_method_sms.py b/src/auth0/management/types/connection_gateway_authentication_method_sms.py deleted file mode 100644 index 56bf1d1e..00000000 --- a/src/auth0/management/types/connection_gateway_authentication_method_sms.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionGatewayAuthenticationMethodSms = str -""" -The Authorization header type when calling the SMS gateway. Set to 'bearer' for JWT token authentication. -""" diff --git a/src/auth0/management/types/connection_gateway_authentication_sms.py b/src/auth0/management/types/connection_gateway_authentication_sms.py deleted file mode 100644 index 1099312e..00000000 --- a/src/auth0/management/types/connection_gateway_authentication_sms.py +++ /dev/null @@ -1,44 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .connection_gateway_authentication_audience_sms import ConnectionGatewayAuthenticationAudienceSms -from .connection_gateway_authentication_method_sms import ConnectionGatewayAuthenticationMethodSms -from .connection_gateway_authentication_subject_sms import ConnectionGatewayAuthenticationSubjectSms - - -class ConnectionGatewayAuthenticationSms(UniversalBaseModel): - """ - Optional token-based authentication configuration for the SMS gateway - """ - - audience: ConnectionGatewayAuthenticationAudienceSms - method: ConnectionGatewayAuthenticationMethodSms - secret: str = pydantic.Field() - """ - The secret used to sign the JSON Web Token sent to the SMS gateway - """ - - secret_base_64_encoded: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="secret_base64_encoded"), - pydantic.Field(alias="secret_base64_encoded", description="Set to true if the secret is base64-url-encoded"), - ] = None - """ - Set to true if the secret is base64-url-encoded - """ - - subject: typing.Optional[ConnectionGatewayAuthenticationSubjectSms] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_gateway_authentication_subject_sms.py b/src/auth0/management/types/connection_gateway_authentication_subject_sms.py deleted file mode 100644 index 552aafbc..00000000 --- a/src/auth0/management/types/connection_gateway_authentication_subject_sms.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionGatewayAuthenticationSubjectSms = str -""" -`sub` claim value in the JWT sent to the SMS gateway. Identifies the requester (e.g., 'urn:Auth0'). -""" diff --git a/src/auth0/management/types/connection_gateway_url_sms.py b/src/auth0/management/types/connection_gateway_url_sms.py deleted file mode 100644 index 6e667b0d..00000000 --- a/src/auth0/management/types/connection_gateway_url_sms.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from .connection_https_url_with_http_fallback_255 import ConnectionHttpsUrlWithHttpFallback255 - -ConnectionGatewayUrlSms = ConnectionHttpsUrlWithHttpFallback255 -""" -The URL of your SMS gateway. Auth0 must be able to reach this URL for it to use your gateway to send messages on your behalf. -""" diff --git a/src/auth0/management/types/connection_global_token_revocation_jwt_iss_saml.py b/src/auth0/management/types/connection_global_token_revocation_jwt_iss_saml.py deleted file mode 100644 index b50c32db..00000000 --- a/src/auth0/management/types/connection_global_token_revocation_jwt_iss_saml.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionGlobalTokenRevocationJwtIssSaml = str -""" -Expected 'iss' (Issuer) claim value for JWT tokens in Global Token Revocation requests from the identity provider. When configured, Auth0 validates the JWT issuer matches this value before processing token revocation. Must be used together with global_token_revocation_jwt_sub. -""" diff --git a/src/auth0/management/types/connection_global_token_revocation_jwt_sub_saml.py b/src/auth0/management/types/connection_global_token_revocation_jwt_sub_saml.py deleted file mode 100644 index 331316ed..00000000 --- a/src/auth0/management/types/connection_global_token_revocation_jwt_sub_saml.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionGlobalTokenRevocationJwtSubSaml = str -""" -Expected 'sub' (Subject) claim value for JWT tokens in Global Token Revocation requests from the identity provider. When configured, Auth0 validates the JWT subject matches this value before processing token revocation. Must be used together with global_token_revocation_jwt_iss. -""" diff --git a/src/auth0/management/types/connection_grant_types_supported.py b/src/auth0/management/types/connection_grant_types_supported.py deleted file mode 100644 index 4ca871a2..00000000 --- a/src/auth0/management/types/connection_grant_types_supported.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionGrantTypesSupported = typing.List[str] -""" -A list of the OAuth 2.0 Grant Type values that this OP supports. Dynamic OpenID Providers MUST support the authorization_code and implicit Grant Type values and MAY support other Grant Types. If omitted, the default value is ["authorization_code", "implicit"]. -""" diff --git a/src/auth0/management/types/connection_handle_login_from_social_google_apps.py b/src/auth0/management/types/connection_handle_login_from_social_google_apps.py deleted file mode 100644 index 75dd7a85..00000000 --- a/src/auth0/management/types/connection_handle_login_from_social_google_apps.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionHandleLoginFromSocialGoogleApps = bool -""" -When enabled, users who sign in with their Google account through a social login will be automatically routed to this Google Workspace connection if their email domain matches the configured tenant_domain or domain_aliases. This ensures enterprise users authenticate through their organization's Google Workspace identity provider rather than through a generic Google social login, enabling access to directory-based attributes and enforcing organizational security policies. Defaults to true for new connections. -""" diff --git a/src/auth0/management/types/connection_https_url_with_http_fallback.py b/src/auth0/management/types/connection_https_url_with_http_fallback.py deleted file mode 100644 index 51c15f9f..00000000 --- a/src/auth0/management/types/connection_https_url_with_http_fallback.py +++ /dev/null @@ -1,3 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionHttpsUrlWithHttpFallback = str diff --git a/src/auth0/management/types/connection_https_url_with_http_fallback_2048.py b/src/auth0/management/types/connection_https_url_with_http_fallback_2048.py deleted file mode 100644 index ecf2ac60..00000000 --- a/src/auth0/management/types/connection_https_url_with_http_fallback_2048.py +++ /dev/null @@ -1,3 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionHttpsUrlWithHttpFallback2048 = str diff --git a/src/auth0/management/types/connection_https_url_with_http_fallback_255.py b/src/auth0/management/types/connection_https_url_with_http_fallback_255.py deleted file mode 100644 index 902efe08..00000000 --- a/src/auth0/management/types/connection_https_url_with_http_fallback_255.py +++ /dev/null @@ -1,3 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionHttpsUrlWithHttpFallback255 = str diff --git a/src/auth0/management/types/connection_icon_url.py b/src/auth0/management/types/connection_icon_url.py deleted file mode 100644 index 0c7136ef..00000000 --- a/src/auth0/management/types/connection_icon_url.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionIconUrl = str -""" -https url of the icon to be shown -""" diff --git a/src/auth0/management/types/connection_icon_url_adfs.py b/src/auth0/management/types/connection_icon_url_adfs.py deleted file mode 100644 index df0cd09f..00000000 --- a/src/auth0/management/types/connection_icon_url_adfs.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from .connection_icon_url import ConnectionIconUrl - -ConnectionIconUrlAdfs = ConnectionIconUrl -""" -URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows. -""" diff --git a/src/auth0/management/types/connection_icon_url_azure_ad.py b/src/auth0/management/types/connection_icon_url_azure_ad.py deleted file mode 100644 index a7e10315..00000000 --- a/src/auth0/management/types/connection_icon_url_azure_ad.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from .connection_icon_url import ConnectionIconUrl - -ConnectionIconUrlAzureAd = ConnectionIconUrl -""" -URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows. -""" diff --git a/src/auth0/management/types/connection_icon_url_google_apps.py b/src/auth0/management/types/connection_icon_url_google_apps.py deleted file mode 100644 index 53594af6..00000000 --- a/src/auth0/management/types/connection_icon_url_google_apps.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from .connection_icon_url import ConnectionIconUrl - -ConnectionIconUrlGoogleApps = ConnectionIconUrl -""" -URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows. -""" diff --git a/src/auth0/management/types/connection_icon_url_google_o_auth_2.py b/src/auth0/management/types/connection_icon_url_google_o_auth_2.py deleted file mode 100644 index 741fb1a3..00000000 --- a/src/auth0/management/types/connection_icon_url_google_o_auth_2.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from .connection_icon_url import ConnectionIconUrl - -ConnectionIconUrlGoogleOAuth2 = ConnectionIconUrl -""" -URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows. -""" diff --git a/src/auth0/management/types/connection_icon_url_saml.py b/src/auth0/management/types/connection_icon_url_saml.py deleted file mode 100644 index e9995514..00000000 --- a/src/auth0/management/types/connection_icon_url_saml.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from .connection_icon_url import ConnectionIconUrl - -ConnectionIconUrlSaml = ConnectionIconUrl -""" -URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows. -""" diff --git a/src/auth0/management/types/connection_id.py b/src/auth0/management/types/connection_id.py deleted file mode 100644 index 362aa05a..00000000 --- a/src/auth0/management/types/connection_id.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionId = str -""" -The connection's identifier -""" diff --git a/src/auth0/management/types/connection_id_token_encryption_alg_values_supported.py b/src/auth0/management/types/connection_id_token_encryption_alg_values_supported.py deleted file mode 100644 index deca2ed5..00000000 --- a/src/auth0/management/types/connection_id_token_encryption_alg_values_supported.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionIdTokenEncryptionAlgValuesSupported = typing.List[str] -""" -JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT -""" diff --git a/src/auth0/management/types/connection_id_token_encryption_enc_values_supported.py b/src/auth0/management/types/connection_id_token_encryption_enc_values_supported.py deleted file mode 100644 index 658a9b4c..00000000 --- a/src/auth0/management/types/connection_id_token_encryption_enc_values_supported.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionIdTokenEncryptionEncValuesSupported = typing.List[str] -""" -JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for the ID Token to encode the Claims in a JWT [JWT]. -""" diff --git a/src/auth0/management/types/connection_id_token_session_expiry_supported.py b/src/auth0/management/types/connection_id_token_session_expiry_supported.py deleted file mode 100644 index 7c8e3894..00000000 --- a/src/auth0/management/types/connection_id_token_session_expiry_supported.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionIdTokenSessionExpirySupported = bool -""" -Indicates whether the identity provider supports session expiry via the id_token. If true, the system will use the session_expiry claim in the id_token to determine session expiry. -""" diff --git a/src/auth0/management/types/connection_id_token_signed_response_alg_enum.py b/src/auth0/management/types/connection_id_token_signed_response_alg_enum.py deleted file mode 100644 index 7e8ed9b4..00000000 --- a/src/auth0/management/types/connection_id_token_signed_response_alg_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionIdTokenSignedResponseAlgEnum = typing.Union[ - typing.Literal["ES256", "ES384", "PS256", "PS384", "RS256", "RS384", "RS512"], typing.Any -] diff --git a/src/auth0/management/types/connection_id_token_signed_response_algs.py b/src/auth0/management/types/connection_id_token_signed_response_algs.py deleted file mode 100644 index 35a97e01..00000000 --- a/src/auth0/management/types/connection_id_token_signed_response_algs.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .connection_id_token_signed_response_alg_enum import ConnectionIdTokenSignedResponseAlgEnum - -ConnectionIdTokenSignedResponseAlgs = typing.Optional[typing.List[ConnectionIdTokenSignedResponseAlgEnum]] -""" -List of algorithms allowed to verify the ID tokens. -""" diff --git a/src/auth0/management/types/connection_id_token_signing_alg_values_supported.py b/src/auth0/management/types/connection_id_token_signing_alg_values_supported.py deleted file mode 100644 index d152a077..00000000 --- a/src/auth0/management/types/connection_id_token_signing_alg_values_supported.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionIdTokenSigningAlgValuesSupported = typing.List[str] -""" -A list of the JWS signing algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be included. The value none MAY be supported, but MUST NOT be used unless the Response Type used returns no ID Token from the Authorization Endpoint (such as when using the Authorization Code Flow). https://datatracker.ietf.org/doc/html/rfc7518 -""" diff --git a/src/auth0/management/types/connection_identifier_precedence.py b/src/auth0/management/types/connection_identifier_precedence.py deleted file mode 100644 index 0ccc59b8..00000000 --- a/src/auth0/management/types/connection_identifier_precedence.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .connection_identifier_precedence_enum import ConnectionIdentifierPrecedenceEnum - -ConnectionIdentifierPrecedence = typing.List[ConnectionIdentifierPrecedenceEnum] -""" -Order of precedence for attribute types. If the property is not specified, the default precedence of attributes will be used. -""" diff --git a/src/auth0/management/types/connection_identifier_precedence_enum.py b/src/auth0/management/types/connection_identifier_precedence_enum.py deleted file mode 100644 index 68a45fa3..00000000 --- a/src/auth0/management/types/connection_identifier_precedence_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionIdentifierPrecedenceEnum = typing.Union[typing.Literal["email", "phone_number", "username"], typing.Any] diff --git a/src/auth0/management/types/connection_identity_api_azure_ad.py b/src/auth0/management/types/connection_identity_api_azure_ad.py deleted file mode 100644 index 297d17f3..00000000 --- a/src/auth0/management/types/connection_identity_api_azure_ad.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from .connection_identity_api_enum_azure_ad import ConnectionIdentityApiEnumAzureAd - -ConnectionIdentityApiAzureAd = ConnectionIdentityApiEnumAzureAd -""" -The Azure AD endpoint version for authentication. 'microsoft-identity-platform-v2.0' (recommended, default) supports modern OAuth 2.0 features. 'azure-active-directory-v1.0' is the legacy endpoint with protocol limitations. Selection affects available features. -""" diff --git a/src/auth0/management/types/connection_identity_api_enum_azure_ad.py b/src/auth0/management/types/connection_identity_api_enum_azure_ad.py deleted file mode 100644 index fc9556d4..00000000 --- a/src/auth0/management/types/connection_identity_api_enum_azure_ad.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionIdentityApiEnumAzureAd = typing.Union[ - typing.Literal["microsoft-identity-platform-v2.0", "azure-active-directory-v1.0"], typing.Any -] diff --git a/src/auth0/management/types/connection_identity_provider_enum.py b/src/auth0/management/types/connection_identity_provider_enum.py deleted file mode 100644 index 4ee4bc75..00000000 --- a/src/auth0/management/types/connection_identity_provider_enum.py +++ /dev/null @@ -1,73 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionIdentityProviderEnum = typing.Union[ - typing.Literal[ - "ad", - "adfs", - "amazon", - "apple", - "dropbox", - "bitbucket", - "auth0-oidc", - "auth0", - "baidu", - "bitly", - "box", - "custom", - "daccount", - "dwolla", - "email", - "evernote-sandbox", - "evernote", - "exact", - "facebook", - "fitbit", - "github", - "google-apps", - "google-oauth2", - "instagram", - "ip", - "line", - "linkedin", - "oauth1", - "oauth2", - "office365", - "oidc", - "okta", - "paypal", - "paypal-sandbox", - "pingfederate", - "planningcenter", - "salesforce-community", - "salesforce-sandbox", - "salesforce", - "samlp", - "sharepoint", - "shopify", - "shop", - "sms", - "soundcloud", - "thirtysevensignals", - "twitter", - "untappd", - "vkontakte", - "waad", - "weibo", - "windowslive", - "wordpress", - "yahoo", - "yandex", - "notion-mcp", - "asana", - "atlassian", - "cloudflare-mcp", - "gitlab", - "hubspot-mcp", - "linear-mcp", - "sentry-mcp", - "slack", - ], - typing.Any, -] diff --git a/src/auth0/management/types/connection_import_mode.py b/src/auth0/management/types/connection_import_mode.py deleted file mode 100644 index 6358a101..00000000 --- a/src/auth0/management/types/connection_import_mode.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionImportMode = bool -""" -Enables lazy migration mode for importing users from an external database. When a user authenticates, their credentials are validated against the legacy store, then the user is created in Auth0 for future logins. -""" diff --git a/src/auth0/management/types/connection_ips_ad.py b/src/auth0/management/types/connection_ips_ad.py deleted file mode 100644 index afdb0628..00000000 --- a/src/auth0/management/types/connection_ips_ad.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionIpsAd = typing.List[str] -""" -Array of IP address ranges in CIDR notation used to determine if authentication requests originate from the corporate network for Kerberos or certificate authentication. -""" diff --git a/src/auth0/management/types/connection_is_domain_connection.py b/src/auth0/management/types/connection_is_domain_connection.py deleted file mode 100644 index 767b5083..00000000 --- a/src/auth0/management/types/connection_is_domain_connection.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionIsDomainConnection = bool -""" -true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) -""" diff --git a/src/auth0/management/types/connection_issuer.py b/src/auth0/management/types/connection_issuer.py deleted file mode 100644 index 83393b60..00000000 --- a/src/auth0/management/types/connection_issuer.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionIssuer = str -""" -The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider. -""" diff --git a/src/auth0/management/types/connection_jwks_uri.py b/src/auth0/management/types/connection_jwks_uri.py deleted file mode 100644 index 2e9a34f6..00000000 --- a/src/auth0/management/types/connection_jwks_uri.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionJwksUri = str -""" -URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures. -""" diff --git a/src/auth0/management/types/connection_key.py b/src/auth0/management/types/connection_key.py deleted file mode 100644 index a069335e..00000000 --- a/src/auth0/management/types/connection_key.py +++ /dev/null @@ -1,71 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .connection_key_use_enum import ConnectionKeyUseEnum - - -class ConnectionKey(UniversalBaseModel): - kid: str = pydantic.Field() - """ - The key id of the signing or encryption key - """ - - cert: str = pydantic.Field() - """ - The public certificate of the signing or encryption key - """ - - pkcs: typing.Optional[str] = pydantic.Field(default=None) - """ - The public certificate of the signing or encryption key in pkcs7 format - """ - - current: typing.Optional[bool] = pydantic.Field(default=None) - """ - True if the key is the the current key - """ - - next: typing.Optional[bool] = pydantic.Field(default=None) - """ - True if the key is the the next key - """ - - previous: typing.Optional[bool] = pydantic.Field(default=None) - """ - True if the key is the the previous key - """ - - current_since: typing.Optional[str] = pydantic.Field(default=None) - """ - The date and time when the key became the current key - """ - - fingerprint: str = pydantic.Field() - """ - The cert fingerprint - """ - - thumbprint: str = pydantic.Field() - """ - The cert thumbprint - """ - - algorithm: typing.Optional[str] = pydantic.Field(default=None) - """ - Key algorithm: a signing algorithm for signing keys, or a key-management algorithm for encryption keys - """ - - key_use: typing.Optional[ConnectionKeyUseEnum] = None - subject_dn: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_key_use_enum.py b/src/auth0/management/types/connection_key_use_enum.py deleted file mode 100644 index 4b05d4a9..00000000 --- a/src/auth0/management/types/connection_key_use_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionKeyUseEnum = typing.Union[typing.Literal["encryption", "signing"], typing.Any] diff --git a/src/auth0/management/types/connection_mapping_mode_enum_oidc.py b/src/auth0/management/types/connection_mapping_mode_enum_oidc.py deleted file mode 100644 index 7bf5e40f..00000000 --- a/src/auth0/management/types/connection_mapping_mode_enum_oidc.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionMappingModeEnumOidc = typing.Union[typing.Literal["bind_all", "use_map"], typing.Any] diff --git a/src/auth0/management/types/connection_mapping_mode_enum_okta.py b/src/auth0/management/types/connection_mapping_mode_enum_okta.py deleted file mode 100644 index 6ec5f89e..00000000 --- a/src/auth0/management/types/connection_mapping_mode_enum_okta.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionMappingModeEnumOkta = typing.Union[typing.Literal["basic_profile", "use_map"], typing.Any] diff --git a/src/auth0/management/types/connection_max_groups_to_retrieve.py b/src/auth0/management/types/connection_max_groups_to_retrieve.py deleted file mode 100644 index 1a9e2393..00000000 --- a/src/auth0/management/types/connection_max_groups_to_retrieve.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionMaxGroupsToRetrieve = str -""" -Maximum number of Azure AD groups to retrieve per user during authentication. Helps prevent performance issues for users in many groups. Only applies when ext_groups is enabled. Leave empty to use platform default. -""" diff --git a/src/auth0/management/types/connection_messaging_service_sid_sms.py b/src/auth0/management/types/connection_messaging_service_sid_sms.py deleted file mode 100644 index f5605642..00000000 --- a/src/auth0/management/types/connection_messaging_service_sid_sms.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionMessagingServiceSidSms = str -""" -Twilio Messaging Service SID -""" diff --git a/src/auth0/management/types/connection_metadata_url_saml.py b/src/auth0/management/types/connection_metadata_url_saml.py deleted file mode 100644 index 624f72c6..00000000 --- a/src/auth0/management/types/connection_metadata_url_saml.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from .connection_https_url_with_http_fallback_2048 import ConnectionHttpsUrlWithHttpFallback2048 - -ConnectionMetadataUrlSaml = ConnectionHttpsUrlWithHttpFallback2048 -""" -HTTPS URL to the identity provider's SAML metadata document. When provided, Auth0 automatically fetches and parses the metadata to extract signInEndpoint, signOutEndpoint, signingCert, signSAMLRequest, and protocolBinding. Use metadataUrl OR metadataXml, not both. -""" diff --git a/src/auth0/management/types/connection_metadata_xml.py b/src/auth0/management/types/connection_metadata_xml.py deleted file mode 100644 index 0bac299f..00000000 --- a/src/auth0/management/types/connection_metadata_xml.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionMetadataXml = str -""" -Standard IdP metadata XML payload used across SAML-compatible strategies. -""" diff --git a/src/auth0/management/types/connection_metadata_xml_adfs.py b/src/auth0/management/types/connection_metadata_xml_adfs.py deleted file mode 100644 index 22124665..00000000 --- a/src/auth0/management/types/connection_metadata_xml_adfs.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from .connection_metadata_xml import ConnectionMetadataXml - -ConnectionMetadataXmlAdfs = ConnectionMetadataXml -""" -Inline XML alternative to 'adfs_server'. Cannot be set together with 'adfs_server'. -""" diff --git a/src/auth0/management/types/connection_metadata_xml_saml.py b/src/auth0/management/types/connection_metadata_xml_saml.py deleted file mode 100644 index 3b005c33..00000000 --- a/src/auth0/management/types/connection_metadata_xml_saml.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from .connection_metadata_xml import ConnectionMetadataXml - -ConnectionMetadataXmlSaml = ConnectionMetadataXml -""" -SAML metadata XML document from the identity provider. When provided, automatically parsed to extract signInEndpoint, signOutEndpoint, signingCert, signSAMLRequest, and protocolBinding. Deleted after parsing to avoid persisting large documents. Not persisted to database - deleted after parsing metadata. Use metadataUrl OR metadataXml, not both. -""" diff --git a/src/auth0/management/types/connection_mfa.py b/src/auth0/management/types/connection_mfa.py deleted file mode 100644 index d2d573de..00000000 --- a/src/auth0/management/types/connection_mfa.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class ConnectionMfa(UniversalBaseModel): - """ - Multi-factor authentication configuration - """ - - active: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether MFA is active for this connection - """ - - return_enroll_settings: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether to return MFA enrollment settings - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_name.py b/src/auth0/management/types/connection_name.py deleted file mode 100644 index 5b9654ac..00000000 --- a/src/auth0/management/types/connection_name.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionName = str -""" -The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 -""" diff --git a/src/auth0/management/types/connection_name_prefix_template.py b/src/auth0/management/types/connection_name_prefix_template.py deleted file mode 100644 index 2e0c18f7..00000000 --- a/src/auth0/management/types/connection_name_prefix_template.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionNamePrefixTemplate = str -""" -Connection name prefix template. -""" diff --git a/src/auth0/management/types/connection_non_persistent_attrs.py b/src/auth0/management/types/connection_non_persistent_attrs.py deleted file mode 100644 index afefbff3..00000000 --- a/src/auth0/management/types/connection_non_persistent_attrs.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionNonPersistentAttrs = typing.List[str] -""" -An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) -""" diff --git a/src/auth0/management/types/connection_op_policy_uri.py b/src/auth0/management/types/connection_op_policy_uri.py deleted file mode 100644 index e4a459db..00000000 --- a/src/auth0/management/types/connection_op_policy_uri.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionOpPolicyUri = str -""" -URL that the OpenID Provider provides to the person registering the Client to read about the OPs requirements on how the Relying Party can use the data provided by the OP. The registration process SHOULD display this URL to the person registering the Client if it is given. -""" diff --git a/src/auth0/management/types/connection_op_tos_uri.py b/src/auth0/management/types/connection_op_tos_uri.py deleted file mode 100644 index ff906d37..00000000 --- a/src/auth0/management/types/connection_op_tos_uri.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionOpTosUri = str -""" -URL that the OpenID Provider provides to the person registering the Client to read about OpenID Providers terms of service. The registration process SHOULD display this URL to the person registering the Client if it is given. -""" diff --git a/src/auth0/management/types/connection_options.py b/src/auth0/management/types/connection_options.py deleted file mode 100644 index 06e7ec97..00000000 --- a/src/auth0/management/types/connection_options.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionOptions = typing.Dict[str, typing.Any] -""" -In order to return options in the response, the `read:connections_options` scope must be present -""" diff --git a/src/auth0/management/types/connection_options_ad.py b/src/auth0/management/types/connection_options_ad.py deleted file mode 100644 index aa516f30..00000000 --- a/src/auth0/management/types/connection_options_ad.py +++ /dev/null @@ -1,96 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from ..core.serialization import FieldMetadata -from .connection_agent_ipad import ConnectionAgentIpad -from .connection_agent_mode_ad import ConnectionAgentModeAd -from .connection_agent_version_ad import ConnectionAgentVersionAd -from .connection_brute_force_protection import ConnectionBruteForceProtection -from .connection_certs_ad import ConnectionCertsAd -from .connection_domain_aliases_ad import ConnectionDomainAliasesAd -from .connection_icon_url import ConnectionIconUrl -from .connection_ips_ad import ConnectionIpsAd -from .connection_options_common import ConnectionOptionsCommon -from .connection_set_user_root_attributes_enum import ConnectionSetUserRootAttributesEnum -from .connection_sign_in_endpoint_ad import ConnectionSignInEndpointAd -from .connection_tenant_domain_ad import ConnectionTenantDomainAd -from .connection_thumbprints_ad import ConnectionThumbprintsAd -from .connection_thumbprints_sha_384_ad import ConnectionThumbprintsSha384Ad -from .connection_upstream_params import ConnectionUpstreamParams - - -class ConnectionOptionsAd(ConnectionOptionsCommon): - """ - Options for the 'ad' connection - """ - - agent_ip: typing_extensions.Annotated[ - typing.Optional[ConnectionAgentIpad], FieldMetadata(alias="agentIP"), pydantic.Field(alias="agentIP") - ] = None - agent_mode: typing_extensions.Annotated[ - typing.Optional[ConnectionAgentModeAd], FieldMetadata(alias="agentMode"), pydantic.Field(alias="agentMode") - ] = None - agent_version: typing_extensions.Annotated[ - typing.Optional[ConnectionAgentVersionAd], - FieldMetadata(alias="agentVersion"), - pydantic.Field(alias="agentVersion"), - ] = None - brute_force_protection: typing.Optional[ConnectionBruteForceProtection] = None - cert_auth: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="certAuth"), - pydantic.Field( - alias="certAuth", - description="Enables client SSL certificate authentication for the AD connector, requiring HTTPS on the sign-in endpoint", - ), - ] = None - """ - Enables client SSL certificate authentication for the AD connector, requiring HTTPS on the sign-in endpoint - """ - - certs: typing.Optional[ConnectionCertsAd] = None - disable_cache: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, disables caching of AD connector authentication results to ensure real-time validation against the directory - """ - - disable_self_service_change_password: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, hides the 'Forgot Password' link on login pages to prevent users from initiating self-service password resets - """ - - domain_aliases: typing.Optional[ConnectionDomainAliasesAd] = None - icon_url: typing.Optional[ConnectionIconUrl] = None - ips: typing.Optional[ConnectionIpsAd] = None - kerberos: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables Windows Integrated Authentication (Kerberos) for seamless SSO when users authenticate from within the corporate network IP ranges - """ - - set_user_root_attributes: typing.Optional[ConnectionSetUserRootAttributesEnum] = None - sign_in_endpoint: typing_extensions.Annotated[ - typing.Optional[ConnectionSignInEndpointAd], - FieldMetadata(alias="signInEndpoint"), - pydantic.Field(alias="signInEndpoint"), - ] = None - tenant_domain: typing.Optional[ConnectionTenantDomainAd] = None - thumbprints: typing.Optional[ConnectionThumbprintsAd] = None - thumbprints_sha_384: typing_extensions.Annotated[ - typing.Optional[ConnectionThumbprintsSha384Ad], - FieldMetadata(alias="thumbprints_sha384"), - pydantic.Field(alias="thumbprints_sha384"), - ] = None - upstream_params: typing.Optional[ConnectionUpstreamParams] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_options_adfs.py b/src/auth0/management/types/connection_options_adfs.py deleted file mode 100644 index 05e35434..00000000 --- a/src/auth0/management/types/connection_options_adfs.py +++ /dev/null @@ -1,79 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from ..core.serialization import FieldMetadata -from .connection_domain_aliases import ConnectionDomainAliases -from .connection_icon_url_adfs import ConnectionIconUrlAdfs -from .connection_metadata_xml_adfs import ConnectionMetadataXmlAdfs -from .connection_options_common import ConnectionOptionsCommon -from .connection_set_user_root_attributes_enum import ConnectionSetUserRootAttributesEnum -from .connection_should_trust_email_verified_connection_enum import ConnectionShouldTrustEmailVerifiedConnectionEnum -from .connection_sign_in_endpoint_adfs import ConnectionSignInEndpointAdfs -from .connection_tenant_domain import ConnectionTenantDomain -from .connection_thumbprints import ConnectionThumbprints -from .connection_thumbprints_sha_384 import ConnectionThumbprintsSha384 -from .connection_upstream_params import ConnectionUpstreamParams - - -class ConnectionOptionsAdfs(ConnectionOptionsCommon): - """ - Options for the 'adfs' connection - """ - - adfs_server: typing.Optional[str] = pydantic.Field(default=None) - """ - ADFS federation metadata host or XML URL used to discover WS-Fed endpoints and certificates. Errors if adfs_server and fedMetadataXml are both absent. - """ - - domain_aliases: typing.Optional[ConnectionDomainAliases] = None - entity_id: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="entityId"), - pydantic.Field( - alias="entityId", - description="The entity identifier (Issuer) for the ADFS Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'.", - ), - ] = None - """ - The entity identifier (Issuer) for the ADFS Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'. - """ - - fed_metadata_xml: typing_extensions.Annotated[ - typing.Optional[ConnectionMetadataXmlAdfs], - FieldMetadata(alias="fedMetadataXml"), - pydantic.Field(alias="fedMetadataXml"), - ] = None - icon_url: typing.Optional[ConnectionIconUrlAdfs] = None - prev_thumbprints: typing.Optional[ConnectionThumbprints] = None - set_user_root_attributes: typing.Optional[ConnectionSetUserRootAttributesEnum] = None - should_trust_email_verified_connection: typing.Optional[ConnectionShouldTrustEmailVerifiedConnectionEnum] = None - sign_in_endpoint: typing_extensions.Annotated[ - typing.Optional[ConnectionSignInEndpointAdfs], - FieldMetadata(alias="signInEndpoint"), - pydantic.Field(alias="signInEndpoint"), - ] = None - tenant_domain: typing.Optional[ConnectionTenantDomain] = None - thumbprints: typing.Optional[ConnectionThumbprints] = None - thumbprints_sha_384: typing_extensions.Annotated[ - typing.Optional[ConnectionThumbprintsSha384], - FieldMetadata(alias="thumbprints_sha384"), - pydantic.Field(alias="thumbprints_sha384"), - ] = None - upstream_params: typing.Optional[ConnectionUpstreamParams] = None - user_id_attribute: typing.Optional[str] = pydantic.Field(default=None) - """ - Custom ADFS claim to use as the unique user identifier. When provided, this attribute is prepended to the default user_id mapping list with highest priority. Accepts a string (single ADFS claim name). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_options_amazon.py b/src/auth0/management/types/connection_options_amazon.py deleted file mode 100644 index 833fc88c..00000000 --- a/src/auth0/management/types/connection_options_amazon.py +++ /dev/null @@ -1,45 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_client_id_amazon import ConnectionClientIdAmazon -from .connection_client_secret_amazon import ConnectionClientSecretAmazon -from .connection_freeform_scopes_amazon import ConnectionFreeformScopesAmazon -from .connection_options_common import ConnectionOptionsCommon -from .connection_scope_amazon import ConnectionScopeAmazon -from .connection_set_user_root_attributes_enum import ConnectionSetUserRootAttributesEnum -from .connection_upstream_params import ConnectionUpstreamParams - - -class ConnectionOptionsAmazon(ConnectionOptionsCommon): - """ - Options for the 'amazon' connection - """ - - client_id: typing.Optional[ConnectionClientIdAmazon] = None - client_secret: typing.Optional[ConnectionClientSecretAmazon] = None - freeform_scopes: typing.Optional[ConnectionFreeformScopesAmazon] = None - postal_code: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, requests the user's postal code from Amazon during authentication. This adds the 'postal_code' scope to the authorization request. - """ - - profile: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, requests the user's basic profile information (name, email, user ID) from Amazon during authentication. This scope is always enabled for Amazon connections. - """ - - scope: typing.Optional[ConnectionScopeAmazon] = None - set_user_root_attributes: typing.Optional[ConnectionSetUserRootAttributesEnum] = None - upstream_params: typing.Optional[ConnectionUpstreamParams] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_options_apple.py b/src/auth0/management/types/connection_options_apple.py deleted file mode 100644 index 0946af79..00000000 --- a/src/auth0/management/types/connection_options_apple.py +++ /dev/null @@ -1,67 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_common import ConnectionOptionsCommon -from .connection_set_user_root_attributes_enum import ConnectionSetUserRootAttributesEnum -from .connection_upstream_params import ConnectionUpstreamParams - - -class ConnectionOptionsApple(ConnectionOptionsCommon): - """ - Options for the 'apple' connection - """ - - app_secret: typing.Optional[str] = pydantic.Field(default=None) - """ - Apple App Secret (must be a PEM) - """ - - client_id: typing.Optional[str] = pydantic.Field(default=None) - """ - Apple Services ID - """ - - email: typing.Optional[bool] = pydantic.Field(default=None) - """ - User has the option to obfuscate the email with Apple's relay service - """ - - freeform_scopes: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Array of freeform scopes - """ - - kid: typing.Optional[str] = pydantic.Field(default=None) - """ - Apple Key ID - """ - - name: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether to request name from Apple - """ - - scope: typing.Optional[str] = pydantic.Field(default=None) - """ - Space separated list of scopes - """ - - set_user_root_attributes: typing.Optional[ConnectionSetUserRootAttributesEnum] = None - team_id: typing.Optional[str] = pydantic.Field(default=None) - """ - Apple Team ID - """ - - upstream_params: typing.Optional[ConnectionUpstreamParams] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_options_auth_0.py b/src/auth0/management/types/connection_options_auth_0.py deleted file mode 100644 index 8767ff42..00000000 --- a/src/auth0/management/types/connection_options_auth_0.py +++ /dev/null @@ -1,83 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from ..core.serialization import FieldMetadata -from .connection_attributes import ConnectionAttributes -from .connection_authentication_methods import ConnectionAuthenticationMethods -from .connection_brute_force_protection import ConnectionBruteForceProtection -from .connection_configuration import ConnectionConfiguration -from .connection_custom_scripts import ConnectionCustomScripts -from .connection_disable_self_service_change_password import ConnectionDisableSelfServiceChangePassword -from .connection_disable_signup import ConnectionDisableSignup -from .connection_enable_script_context import ConnectionEnableScriptContext -from .connection_enabled_database_customization import ConnectionEnabledDatabaseCustomization -from .connection_identifier_precedence import ConnectionIdentifierPrecedence -from .connection_import_mode import ConnectionImportMode -from .connection_mfa import ConnectionMfa -from .connection_options_common import ConnectionOptionsCommon -from .connection_otp_settings import ConnectionOtpSettings -from .connection_passkey_options import ConnectionPasskeyOptions -from .connection_password_complexity_options import ConnectionPasswordComplexityOptions -from .connection_password_dictionary_options import ConnectionPasswordDictionaryOptions -from .connection_password_history_options import ConnectionPasswordHistoryOptions -from .connection_password_no_personal_info_options import ConnectionPasswordNoPersonalInfoOptions -from .connection_password_options import ConnectionPasswordOptions -from .connection_password_policy_enum import ConnectionPasswordPolicyEnum -from .connection_realm_fallback import ConnectionRealmFallback -from .connection_requires_username import ConnectionRequiresUsername -from .connection_validation_options import ConnectionValidationOptions - - -class ConnectionOptionsAuth0(ConnectionOptionsCommon): - """ - Options for the 'auth0' connection - """ - - attributes: typing.Optional[ConnectionAttributes] = None - authentication_methods: typing.Optional[ConnectionAuthenticationMethods] = None - brute_force_protection: typing.Optional[ConnectionBruteForceProtection] = None - configuration: typing.Optional[ConnectionConfiguration] = None - custom_scripts: typing_extensions.Annotated[ - typing.Optional[ConnectionCustomScripts], - FieldMetadata(alias="customScripts"), - pydantic.Field(alias="customScripts"), - ] = None - disable_self_service_change_password: typing.Optional[ConnectionDisableSelfServiceChangePassword] = None - disable_signup: typing.Optional[ConnectionDisableSignup] = None - enable_script_context: typing.Optional[ConnectionEnableScriptContext] = None - enabled_database_customization: typing_extensions.Annotated[ - typing.Optional[ConnectionEnabledDatabaseCustomization], - FieldMetadata(alias="enabledDatabaseCustomization"), - pydantic.Field(alias="enabledDatabaseCustomization"), - ] = None - import_mode: typing.Optional[ConnectionImportMode] = None - mfa: typing.Optional[ConnectionMfa] = None - otp_settings: typing.Optional[ConnectionOtpSettings] = None - passkey_options: typing.Optional[ConnectionPasskeyOptions] = None - password_policy: typing_extensions.Annotated[ - typing.Optional[ConnectionPasswordPolicyEnum], - FieldMetadata(alias="passwordPolicy"), - pydantic.Field(alias="passwordPolicy"), - ] = None - password_complexity_options: typing.Optional[ConnectionPasswordComplexityOptions] = None - password_dictionary: typing.Optional[ConnectionPasswordDictionaryOptions] = None - password_history: typing.Optional[ConnectionPasswordHistoryOptions] = None - password_no_personal_info: typing.Optional[ConnectionPasswordNoPersonalInfoOptions] = None - password_options: typing.Optional[ConnectionPasswordOptions] = None - precedence: typing.Optional[ConnectionIdentifierPrecedence] = None - realm_fallback: typing.Optional[ConnectionRealmFallback] = None - requires_username: typing.Optional[ConnectionRequiresUsername] = None - validation: typing.Optional[ConnectionValidationOptions] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_options_auth_0_oidc.py b/src/auth0/management/types/connection_options_auth_0_oidc.py deleted file mode 100644 index dbc033af..00000000 --- a/src/auth0/management/types/connection_options_auth_0_oidc.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .connection_client_id import ConnectionClientId -from .connection_client_secret import ConnectionClientSecret - - -class ConnectionOptionsAuth0Oidc(UniversalBaseModel): - """ - Options for the 'auth0-oidc' connection - """ - - client_id: typing.Optional[ConnectionClientId] = None - client_secret: typing.Optional[ConnectionClientSecret] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_options_azure_ad.py b/src/auth0/management/types/connection_options_azure_ad.py deleted file mode 100644 index 31416423..00000000 --- a/src/auth0/management/types/connection_options_azure_ad.py +++ /dev/null @@ -1,305 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from ..core.serialization import FieldMetadata -from .connection_app_domain_azure_ad import ConnectionAppDomainAzureAd -from .connection_client_id_azure_ad import ConnectionClientIdAzureAd -from .connection_client_secret_azure_ad import ConnectionClientSecretAzureAd -from .connection_domain_aliases_azure_ad import ConnectionDomainAliasesAzureAd -from .connection_ext_admin import ConnectionExtAdmin -from .connection_ext_agreed_terms import ConnectionExtAgreedTerms -from .connection_ext_assigned_plans import ConnectionExtAssignedPlans -from .connection_ext_groups_azure_ad import ConnectionExtGroupsAzureAd -from .connection_ext_is_suspended import ConnectionExtIsSuspended -from .connection_ext_profile import ConnectionExtProfile -from .connection_icon_url_azure_ad import ConnectionIconUrlAzureAd -from .connection_identity_api_azure_ad import ConnectionIdentityApiAzureAd -from .connection_max_groups_to_retrieve import ConnectionMaxGroupsToRetrieve -from .connection_options_common import ConnectionOptionsCommon -from .connection_scope_azure_ad import ConnectionScopeAzureAd -from .connection_set_user_root_attributes_enum import ConnectionSetUserRootAttributesEnum -from .connection_should_trust_email_verified_connection_enum import ConnectionShouldTrustEmailVerifiedConnectionEnum -from .connection_tenant_domain_azure_ad_one import ConnectionTenantDomainAzureAdOne -from .connection_tenant_id_azure_ad import ConnectionTenantIdAzureAd -from .connection_thumbprints import ConnectionThumbprints -from .connection_thumbprints_sha_384 import ConnectionThumbprintsSha384 -from .connection_upstream_params import ConnectionUpstreamParams -from .connection_use_common_endpoint_azure_ad import ConnectionUseCommonEndpointAzureAd -from .connection_userid_attribute_azure_ad import ConnectionUseridAttributeAzureAd -from .connection_waad_protocol import ConnectionWaadProtocol - - -class ConnectionOptionsAzureAd(ConnectionOptionsCommon): - """ - Options for the 'waad' connection - """ - - api_enable_users: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enable users API - """ - - app_domain: typing.Optional[ConnectionAppDomainAzureAd] = None - app_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The Application ID URI (App ID URI) for the Azure AD application. Required when using Azure AD v1 with the Resource Owner Password flow. Used to identify the resource being requested in OAuth token requests. - """ - - basic_profile: typing.Optional[bool] = pydantic.Field(default=None) - """ - Includes basic user profile information from Azure AD (name, email, given_name, family_name). Always enabled and required - represents the minimum profile data retrieved during authentication. - """ - - client_id: ConnectionClientIdAzureAd - client_secret: typing.Optional[ConnectionClientSecretAzureAd] = None - domain_aliases: typing.Optional[ConnectionDomainAliasesAzureAd] = None - ext_access_token: typing.Optional[bool] = pydantic.Field(default=None) - """ - When false, prevents storing the user's Azure AD access token in the Auth0 user profile. When true (default), the access token is persisted for API access. - """ - - ext_account_enabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - When false, prevents storing whether the user's Azure AD account is enabled. When true (default), the account enabled status is persisted in the user profile. - """ - - ext_admin: typing.Optional[ConnectionExtAdmin] = None - ext_agreed_terms: typing.Optional[ConnectionExtAgreedTerms] = None - ext_assigned_licenses: typing.Optional[bool] = pydantic.Field(default=None) - """ - When false, prevents storing the list of Microsoft 365/Office 365 licenses assigned to the user. When true (default), license information is persisted in the user profile. - """ - - ext_assigned_plans: typing.Optional[ConnectionExtAssignedPlans] = None - ext_azure_id: typing.Optional[bool] = pydantic.Field(default=None) - """ - When false, prevents storing the user's Azure ID identifier. When true (default), the Azure ID is persisted. Note: 'oid' (Object ID) is the recommended unique identifier for single-tenant connections. - """ - - ext_city: typing.Optional[bool] = pydantic.Field(default=None) - """ - When false, prevents storing the user's city from Azure AD. When true (default), city information is persisted in the user profile. - """ - - ext_country: typing.Optional[bool] = pydantic.Field(default=None) - """ - When false, prevents storing the user's country from Azure AD. When true (default), country information is persisted in the user profile. - """ - - ext_department: typing.Optional[bool] = pydantic.Field(default=None) - """ - When false, prevents storing the user's department from Azure AD. When true (default), department information is persisted in the user profile. - """ - - ext_dir_sync_enabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - When false, prevents storing whether directory synchronization is enabled for the user. When true (default), directory sync status is persisted in the user profile. - """ - - ext_email: typing.Optional[bool] = pydantic.Field(default=None) - """ - When false, prevents storing the user's email address from Azure AD. When true (default), email is persisted in the user profile. - """ - - ext_expires_in: typing.Optional[bool] = pydantic.Field(default=None) - """ - When false, prevents storing the token expiration time (in seconds). When true (default), expiration information is persisted in the user profile. - """ - - ext_family_name: typing.Optional[bool] = pydantic.Field(default=None) - """ - When false, prevents storing the user's family name (last name) from Azure AD. When true (default), family name is persisted in the user profile. - """ - - ext_fax: typing.Optional[bool] = pydantic.Field(default=None) - """ - When false, prevents storing the user's fax number from Azure AD. When true (default), fax information is persisted in the user profile. - """ - - ext_given_name: typing.Optional[bool] = pydantic.Field(default=None) - """ - When false, prevents storing the user's given name (first name) from Azure AD. When true (default), given name is persisted in the user profile. - """ - - ext_group_ids: typing.Optional[bool] = pydantic.Field(default=None) - """ - When false, prevents storing the list of Azure AD group IDs the user is a member of. When true (default), group membership IDs are persisted. See ext_groups for retrieving group details. - """ - - ext_groups: typing.Optional[ConnectionExtGroupsAzureAd] = None - ext_is_suspended: typing.Optional[ConnectionExtIsSuspended] = None - ext_job_title: typing.Optional[bool] = pydantic.Field(default=None) - """ - When false, prevents storing the user's job title from Azure AD. When true (default), job title information is persisted in the user profile. - """ - - ext_last_sync: typing.Optional[bool] = pydantic.Field(default=None) - """ - When false, prevents storing the timestamp of the last directory synchronization. When true (default), the last sync date is persisted in the user profile. - """ - - ext_mobile: typing.Optional[bool] = pydantic.Field(default=None) - """ - When false, prevents storing the user's mobile phone number from Azure AD. When true (default), mobile number is persisted in the user profile. - """ - - ext_name: typing.Optional[bool] = pydantic.Field(default=None) - """ - When false, prevents storing the user's full name from Azure AD. When true (default), full name is persisted in the user profile. - """ - - ext_nested_groups: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true, stores all groups the user is member of, including transitive group memberships (groups within groups). When false (default), only direct group memberships are included. - """ - - ext_nickname: typing.Optional[bool] = pydantic.Field(default=None) - """ - When false, prevents storing the user's nickname or display name from Azure AD. When true (default), nickname is persisted in the user profile. - """ - - ext_oid: typing.Optional[bool] = pydantic.Field(default=None) - """ - When false, prevents storing the user's Object ID (oid) from Azure AD. When true (default), the oid is persisted. Note: 'oid' is the recommended unique identifier for single-tenant connections and required for SCIM. - """ - - ext_phone: typing.Optional[bool] = pydantic.Field(default=None) - """ - When false, prevents storing the user's phone number from Azure AD. When true (default), phone number is persisted in the user profile. - """ - - ext_physical_delivery_office_name: typing.Optional[bool] = pydantic.Field(default=None) - """ - When false, prevents storing the user's office location from Azure AD. When true (default), office location is persisted in the user profile. - """ - - ext_postal_code: typing.Optional[bool] = pydantic.Field(default=None) - """ - When false, prevents storing the user's postal code from Azure AD. When true (default), postal code is persisted in the user profile. - """ - - ext_preferred_language: typing.Optional[bool] = pydantic.Field(default=None) - """ - When false, prevents storing the user's preferred language from Azure AD. When true (default), language preference is persisted in the user profile. - """ - - ext_profile: typing.Optional[ConnectionExtProfile] = None - ext_provisioned_plans: typing.Optional[bool] = pydantic.Field(default=None) - """ - When false, prevents storing the list of service plans provisioned to the user. When true (default), provisioned plans are persisted in the user profile. - """ - - ext_provisioning_errors: typing.Optional[bool] = pydantic.Field(default=None) - """ - When false, prevents storing provisioning errors that occurred during synchronization. When true (default), error information is persisted. Useful for troubleshooting sync issues. - """ - - ext_proxy_addresses: typing.Optional[bool] = pydantic.Field(default=None) - """ - When false, prevents storing all proxy email addresses (email aliases) for the user. When true (default), proxy addresses are persisted in the user profile. - """ - - ext_puid: typing.Optional[bool] = pydantic.Field(default=None) - """ - When false, prevents storing the user's Passport User ID (puid). When true (default), puid is persisted in the user profile. Legacy attribute. - """ - - ext_refresh_token: typing.Optional[bool] = pydantic.Field(default=None) - """ - When false, prevents storing the Azure AD refresh token. When true (default), the refresh token is persisted for offline access. Required for token refresh in long-lived applications. - """ - - ext_roles: typing.Optional[bool] = pydantic.Field(default=None) - """ - When false, prevents storing Azure AD application roles assigned to the user. When true (default), role information is persisted. Useful for RBAC in applications. - """ - - ext_state: typing.Optional[bool] = pydantic.Field(default=None) - """ - When false, prevents storing the user's state (province/region) from Azure AD. When true (default), state information is persisted in the user profile. - """ - - ext_street: typing.Optional[bool] = pydantic.Field(default=None) - """ - When false, prevents storing the user's street address from Azure AD. When true (default), street address is persisted in the user profile. - """ - - ext_telephone_number: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="ext_telephoneNumber"), - pydantic.Field( - alias="ext_telephoneNumber", - description="When false, prevents storing the user's telephone number from Azure AD. When true (default), telephone number is persisted in the user profile.", - ), - ] = None - """ - When false, prevents storing the user's telephone number from Azure AD. When true (default), telephone number is persisted in the user profile. - """ - - ext_tenantid: typing.Optional[bool] = pydantic.Field(default=None) - """ - When false, prevents storing the user's Azure AD tenant ID. When true (default), tenant ID is persisted. Useful for identifying which Azure AD organization the user belongs to. - """ - - ext_upn: typing.Optional[bool] = pydantic.Field(default=None) - """ - When false, prevents storing the user's User Principal Name (UPN) from Azure AD. When true (default), UPN is persisted. UPN is the user's logon name (e.g., user@contoso.com). - """ - - ext_usage_location: typing.Optional[bool] = pydantic.Field(default=None) - """ - When false, prevents storing the user's usage location for license assignment. When true (default), usage location is persisted in the user profile. - """ - - ext_user_id: typing.Optional[bool] = pydantic.Field(default=None) - """ - When false, prevents storing an alternative user ID. When true (default), this user ID is persisted in the user profile. - """ - - granted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether admin consent has been granted for the required Azure AD permissions. Read-only status field managed by Auth0 during the OAuth authorization flow. - """ - - icon_url: typing.Optional[ConnectionIconUrlAzureAd] = None - identity_api: typing.Optional[ConnectionIdentityApiAzureAd] = None - max_groups_to_retrieve: typing.Optional[ConnectionMaxGroupsToRetrieve] = None - scope: typing.Optional[ConnectionScopeAzureAd] = None - set_user_root_attributes: typing.Optional[ConnectionSetUserRootAttributesEnum] = None - should_trust_email_verified_connection: typing.Optional[ConnectionShouldTrustEmailVerifiedConnectionEnum] = None - tenant_domain: typing.Optional[ConnectionTenantDomainAzureAdOne] = None - tenant_id: typing_extensions.Annotated[ - typing.Optional[ConnectionTenantIdAzureAd], FieldMetadata(alias="tenantId"), pydantic.Field(alias="tenantId") - ] = None - thumbprints: typing.Optional[ConnectionThumbprints] = None - thumbprints_sha_384: typing_extensions.Annotated[ - typing.Optional[ConnectionThumbprintsSha384], - FieldMetadata(alias="thumbprints_sha384"), - pydantic.Field(alias="thumbprints_sha384"), - ] = None - upstream_params: typing.Optional[ConnectionUpstreamParams] = None - use_wsfed: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates WS-Federation protocol usage. When true, uses WS-Federation; when false, uses OpenID Connect. - """ - - use_common_endpoint: typing_extensions.Annotated[ - typing.Optional[ConnectionUseCommonEndpointAzureAd], - FieldMetadata(alias="useCommonEndpoint"), - pydantic.Field(alias="useCommonEndpoint"), - ] = None - userid_attribute: typing.Optional[ConnectionUseridAttributeAzureAd] = None - waad_protocol: typing.Optional[ConnectionWaadProtocol] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_options_baidu.py b/src/auth0/management/types/connection_options_baidu.py deleted file mode 100644 index 90814747..00000000 --- a/src/auth0/management/types/connection_options_baidu.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_o_auth_2_common import ConnectionOptionsOAuth2Common - - -class ConnectionOptionsBaidu(ConnectionOptionsOAuth2Common): - """ - Options for the 'baidu' connection - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_options_bitbucket.py b/src/auth0/management/types/connection_options_bitbucket.py deleted file mode 100644 index 6aa1aa3b..00000000 --- a/src/auth0/management/types/connection_options_bitbucket.py +++ /dev/null @@ -1,34 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_client_id_bitbucket import ConnectionClientIdBitbucket -from .connection_client_secret_bitbucket import ConnectionClientSecretBitbucket -from .connection_options_common import ConnectionOptionsCommon -from .connection_profile_bitbucket import ConnectionProfileBitbucket -from .connection_scope_array import ConnectionScopeArray -from .connection_set_user_root_attributes_enum import ConnectionSetUserRootAttributesEnum - - -class ConnectionOptionsBitbucket(ConnectionOptionsCommon): - """ - Options for the 'bitbucket' connection - """ - - client_id: typing.Optional[ConnectionClientIdBitbucket] = None - client_secret: typing.Optional[ConnectionClientSecretBitbucket] = None - freeform_scopes: typing.Optional[ConnectionScopeArray] = None - profile: typing.Optional[ConnectionProfileBitbucket] = None - scope: typing.Optional[ConnectionScopeArray] = None - set_user_root_attributes: typing.Optional[ConnectionSetUserRootAttributesEnum] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_options_bitly.py b/src/auth0/management/types/connection_options_bitly.py deleted file mode 100644 index 1effb24e..00000000 --- a/src/auth0/management/types/connection_options_bitly.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_o_auth_2_common import ConnectionOptionsOAuth2Common - - -class ConnectionOptionsBitly(ConnectionOptionsOAuth2Common): - """ - Options for the 'bitly' connection - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_options_box.py b/src/auth0/management/types/connection_options_box.py deleted file mode 100644 index 491d4793..00000000 --- a/src/auth0/management/types/connection_options_box.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_o_auth_2_common import ConnectionOptionsOAuth2Common - - -class ConnectionOptionsBox(ConnectionOptionsOAuth2Common): - """ - Options for the 'box' connection - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_options_client_id_github.py b/src/auth0/management/types/connection_options_client_id_github.py deleted file mode 100644 index 1e3da124..00000000 --- a/src/auth0/management/types/connection_options_client_id_github.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionOptionsClientIdGithub = str -""" -OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider. -""" diff --git a/src/auth0/management/types/connection_options_client_id_twitter.py b/src/auth0/management/types/connection_options_client_id_twitter.py deleted file mode 100644 index 963aaf29..00000000 --- a/src/auth0/management/types/connection_options_client_id_twitter.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionOptionsClientIdTwitter = str -""" -OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider. -""" diff --git a/src/auth0/management/types/connection_options_client_secret_github.py b/src/auth0/management/types/connection_options_client_secret_github.py deleted file mode 100644 index c28b7229..00000000 --- a/src/auth0/management/types/connection_options_client_secret_github.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionOptionsClientSecretGithub = str -""" -OAuth 2.0 client secret issued by the identity provider during application registration. This value is used to authenticate your Auth0 connection to the identity provider. -""" diff --git a/src/auth0/management/types/connection_options_client_secret_twitter.py b/src/auth0/management/types/connection_options_client_secret_twitter.py deleted file mode 100644 index 3ab8fc98..00000000 --- a/src/auth0/management/types/connection_options_client_secret_twitter.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionOptionsClientSecretTwitter = str -""" -OAuth 2.0 client secret issued by the identity provider during application registration. This value is used to authenticate your Auth0 connection to the identity provider. -""" diff --git a/src/auth0/management/types/connection_options_common.py b/src/auth0/management/types/connection_options_common.py deleted file mode 100644 index fd675e6b..00000000 --- a/src/auth0/management/types/connection_options_common.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .connection_non_persistent_attrs import ConnectionNonPersistentAttrs - - -class ConnectionOptionsCommon(UniversalBaseModel): - """ - Common attributes for connection options including non-persistent attributes and Cross App Access - """ - - non_persistent_attrs: typing.Optional[ConnectionNonPersistentAttrs] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_options_common_oidc.py b/src/auth0/management/types/connection_options_common_oidc.py deleted file mode 100644 index abf892a5..00000000 --- a/src/auth0/management/types/connection_options_common_oidc.py +++ /dev/null @@ -1,78 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .connection_authorization_endpoint import ConnectionAuthorizationEndpoint -from .connection_client_id_oidc import ConnectionClientIdOidc -from .connection_client_secret_oidc import ConnectionClientSecretOidc -from .connection_connection_settings import ConnectionConnectionSettings -from .connection_domain_aliases import ConnectionDomainAliases -from .connection_dpop_signing_alg_enum import ConnectionDpopSigningAlgEnum -from .connection_enable_pushed_authorization_requests import ConnectionEnablePushedAuthorizationRequests -from .connection_icon_url import ConnectionIconUrl -from .connection_id_token_session_expiry_supported import ConnectionIdTokenSessionExpirySupported -from .connection_id_token_signed_response_algs import ConnectionIdTokenSignedResponseAlgs -from .connection_issuer import ConnectionIssuer -from .connection_jwks_uri import ConnectionJwksUri -from .connection_options_oidc_metadata import ConnectionOptionsOidcMetadata -from .connection_pushed_authorization_request_endpoint import ConnectionPushedAuthorizationRequestEndpoint -from .connection_scope_oidc import ConnectionScopeOidc -from .connection_send_back_channel_nonce import ConnectionSendBackChannelNonce -from .connection_set_user_root_attributes_enum import ConnectionSetUserRootAttributesEnum -from .connection_tenant_domain import ConnectionTenantDomain -from .connection_token_endpoint import ConnectionTokenEndpoint -from .connection_token_endpoint_auth_method_enum import ConnectionTokenEndpointAuthMethodEnum -from .connection_token_endpoint_auth_signing_alg_enum import ConnectionTokenEndpointAuthSigningAlgEnum -from .connection_token_endpoint_jwtca_aud_format_enum_oidc import ConnectionTokenEndpointJwtcaAudFormatEnumOidc -from .connection_upstream_params import ConnectionUpstreamParams -from .connection_use_oauth_spec_scope import ConnectionUseOauthSpecScope -from .connection_userinfo_endpoint import ConnectionUserinfoEndpoint - - -class ConnectionOptionsCommonOidc(UniversalBaseModel): - """ - common options for OIDC connections - """ - - authorization_endpoint: typing.Optional[ConnectionAuthorizationEndpoint] = None - client_id: ConnectionClientIdOidc - client_secret: typing.Optional[ConnectionClientSecretOidc] = None - connection_settings: typing.Optional[ConnectionConnectionSettings] = None - domain_aliases: typing.Optional[ConnectionDomainAliases] = None - dpop_signing_alg: typing.Optional[ConnectionDpopSigningAlgEnum] = None - enable_pushed_authorization_requests: typing.Optional[ConnectionEnablePushedAuthorizationRequests] = None - icon_url: typing.Optional[ConnectionIconUrl] = None - id_token_session_expiry_supported: typing.Optional[ConnectionIdTokenSessionExpirySupported] = None - id_token_signed_response_algs: typing.Optional[ConnectionIdTokenSignedResponseAlgs] = None - issuer: typing.Optional[ConnectionIssuer] = None - jwks_uri: typing.Optional[ConnectionJwksUri] = None - oidc_metadata: typing.Optional[ConnectionOptionsOidcMetadata] = None - pushed_authorization_request_endpoint: typing.Optional[ConnectionPushedAuthorizationRequestEndpoint] = None - scope: typing.Optional[ConnectionScopeOidc] = None - send_back_channel_nonce: typing.Optional[ConnectionSendBackChannelNonce] = None - set_user_root_attributes: typing.Optional[ConnectionSetUserRootAttributesEnum] = None - tenant_domain: typing.Optional[ConnectionTenantDomain] = None - token_endpoint: typing.Optional[ConnectionTokenEndpoint] = None - token_endpoint_auth_method: typing.Optional[ConnectionTokenEndpointAuthMethodEnum] = None - token_endpoint_auth_signing_alg: typing.Optional[ConnectionTokenEndpointAuthSigningAlgEnum] = None - token_endpoint_jwtca_aud_format: typing.Optional[ConnectionTokenEndpointJwtcaAudFormatEnumOidc] = None - upstream_params: typing.Optional[ConnectionUpstreamParams] = None - userinfo_endpoint: typing.Optional[ConnectionUserinfoEndpoint] = None - use_oauth_spec_scope: typing_extensions.Annotated[ - typing.Optional[ConnectionUseOauthSpecScope], - FieldMetadata(alias="useOauthSpecScope"), - pydantic.Field(alias="useOauthSpecScope"), - ] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_options_common_saml.py b/src/auth0/management/types/connection_options_common_saml.py deleted file mode 100644 index 10597544..00000000 --- a/src/auth0/management/types/connection_options_common_saml.py +++ /dev/null @@ -1,88 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .connection_assertion_decryption_settings import ConnectionAssertionDecryptionSettings -from .connection_decryption_key_saml import ConnectionDecryptionKeySaml -from .connection_digest_algorithm_saml import ConnectionDigestAlgorithmSaml -from .connection_domain_aliases_saml import ConnectionDomainAliasesSaml -from .connection_entity_id_saml import ConnectionEntityIdSaml -from .connection_icon_url_saml import ConnectionIconUrlSaml -from .connection_options_idpinitiated_saml import ConnectionOptionsIdpinitiatedSaml -from .connection_protocol_binding_saml import ConnectionProtocolBindingSaml -from .connection_set_user_root_attributes_enum import ConnectionSetUserRootAttributesEnum -from .connection_sign_in_endpoint_saml import ConnectionSignInEndpointSaml -from .connection_sign_saml_request_saml import ConnectionSignSamlRequestSaml -from .connection_signature_algorithm_saml import ConnectionSignatureAlgorithmSaml -from .connection_signing_certificate_der_saml import ConnectionSigningCertificateDerSaml -from .connection_tenant_domain_saml import ConnectionTenantDomainSaml -from .connection_thumbprints_saml import ConnectionThumbprintsSaml -from .connection_thumbprints_sha_384_saml import ConnectionThumbprintsSha384Saml -from .connection_upstream_params import ConnectionUpstreamParams - - -class ConnectionOptionsCommonSaml(UniversalBaseModel): - """ - Common options for SAML-based enterprise connections (shared by samlp and pingfederate). - """ - - assertion_decryption_settings: typing.Optional[ConnectionAssertionDecryptionSettings] = None - cert: typing.Optional[ConnectionSigningCertificateDerSaml] = None - decryption_key: typing_extensions.Annotated[ - typing.Optional[ConnectionDecryptionKeySaml], - FieldMetadata(alias="decryptionKey"), - pydantic.Field(alias="decryptionKey"), - ] = None - digest_algorithm: typing_extensions.Annotated[ - typing.Optional[ConnectionDigestAlgorithmSaml], - FieldMetadata(alias="digestAlgorithm"), - pydantic.Field(alias="digestAlgorithm"), - ] = None - domain_aliases: typing.Optional[ConnectionDomainAliasesSaml] = None - entity_id: typing_extensions.Annotated[ - typing.Optional[ConnectionEntityIdSaml], FieldMetadata(alias="entityId"), pydantic.Field(alias="entityId") - ] = None - icon_url: typing.Optional[ConnectionIconUrlSaml] = None - idpinitiated: typing.Optional[ConnectionOptionsIdpinitiatedSaml] = None - protocol_binding: typing_extensions.Annotated[ - typing.Optional[ConnectionProtocolBindingSaml], - FieldMetadata(alias="protocolBinding"), - pydantic.Field(alias="protocolBinding"), - ] = None - set_user_root_attributes: typing.Optional[ConnectionSetUserRootAttributesEnum] = None - sign_in_endpoint: typing_extensions.Annotated[ - typing.Optional[ConnectionSignInEndpointSaml], - FieldMetadata(alias="signInEndpoint"), - pydantic.Field(alias="signInEndpoint"), - ] = None - sign_saml_request: typing_extensions.Annotated[ - typing.Optional[ConnectionSignSamlRequestSaml], - FieldMetadata(alias="signSAMLRequest"), - pydantic.Field(alias="signSAMLRequest"), - ] = None - signature_algorithm: typing_extensions.Annotated[ - typing.Optional[ConnectionSignatureAlgorithmSaml], - FieldMetadata(alias="signatureAlgorithm"), - pydantic.Field(alias="signatureAlgorithm"), - ] = None - tenant_domain: typing.Optional[ConnectionTenantDomainSaml] = None - thumbprints: typing.Optional[ConnectionThumbprintsSaml] = None - thumbprints_sha_384: typing_extensions.Annotated[ - typing.Optional[ConnectionThumbprintsSha384Saml], - FieldMetadata(alias="thumbprints_sha384"), - pydantic.Field(alias="thumbprints_sha384"), - ] = None - upstream_params: typing.Optional[ConnectionUpstreamParams] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_options_custom.py b/src/auth0/management/types/connection_options_custom.py deleted file mode 100644 index 93d6da04..00000000 --- a/src/auth0/management/types/connection_options_custom.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionOptionsCustom = typing.Dict[str, typing.Any] -""" -Options for 'custom' connections -""" diff --git a/src/auth0/management/types/connection_options_daccount.py b/src/auth0/management/types/connection_options_daccount.py deleted file mode 100644 index fbaa6b4b..00000000 --- a/src/auth0/management/types/connection_options_daccount.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_o_auth_2_common import ConnectionOptionsOAuth2Common - - -class ConnectionOptionsDaccount(ConnectionOptionsOAuth2Common): - """ - Options for the 'daccount' connection - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_options_deflate_saml.py b/src/auth0/management/types/connection_options_deflate_saml.py deleted file mode 100644 index 4f5bae7d..00000000 --- a/src/auth0/management/types/connection_options_deflate_saml.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionOptionsDeflateSaml = bool -""" -When true, enables DEFLATE compression for SAML requests sent via HTTP-Redirect binding. -""" diff --git a/src/auth0/management/types/connection_options_dropbox.py b/src/auth0/management/types/connection_options_dropbox.py deleted file mode 100644 index e7e47c12..00000000 --- a/src/auth0/management/types/connection_options_dropbox.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_o_auth_2_common import ConnectionOptionsOAuth2Common - - -class ConnectionOptionsDropbox(ConnectionOptionsOAuth2Common): - """ - Options for the 'dropbox' connection - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_options_dwolla.py b/src/auth0/management/types/connection_options_dwolla.py deleted file mode 100644 index de4cdd85..00000000 --- a/src/auth0/management/types/connection_options_dwolla.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_o_auth_2_common import ConnectionOptionsOAuth2Common - - -class ConnectionOptionsDwolla(ConnectionOptionsOAuth2Common): - """ - Options for the 'dwolla' connection - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_options_email.py b/src/auth0/management/types/connection_options_email.py deleted file mode 100644 index 0404798c..00000000 --- a/src/auth0/management/types/connection_options_email.py +++ /dev/null @@ -1,44 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from ..core.serialization import FieldMetadata -from .connection_auth_params_email import ConnectionAuthParamsEmail -from .connection_brute_force_protection import ConnectionBruteForceProtection -from .connection_disable_signup import ConnectionDisableSignup -from .connection_email_email import ConnectionEmailEmail -from .connection_options_common import ConnectionOptionsCommon -from .connection_totp_email import ConnectionTotpEmail - - -class ConnectionOptionsEmail(ConnectionOptionsCommon): - """ - Options for the 'email' connection - """ - - auth_params: typing_extensions.Annotated[ - typing.Optional[ConnectionAuthParamsEmail], - FieldMetadata(alias="authParams"), - pydantic.Field(alias="authParams"), - ] = None - brute_force_protection: ConnectionBruteForceProtection - disable_signup: typing.Optional[ConnectionDisableSignup] = None - email: ConnectionEmailEmail - name: str = pydantic.Field() - """ - Connection name - """ - - totp: typing.Optional[ConnectionTotpEmail] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_options_evernote.py b/src/auth0/management/types/connection_options_evernote.py deleted file mode 100644 index 149cf058..00000000 --- a/src/auth0/management/types/connection_options_evernote.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_o_auth_1_common import ConnectionOptionsOAuth1Common - - -class ConnectionOptionsEvernote(ConnectionOptionsOAuth1Common): - """ - Options for the evernote family of connections - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_options_exact.py b/src/auth0/management/types/connection_options_exact.py deleted file mode 100644 index 4e060feb..00000000 --- a/src/auth0/management/types/connection_options_exact.py +++ /dev/null @@ -1,42 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from ..core.serialization import FieldMetadata -from .connection_base_url_exact import ConnectionBaseUrlExact -from .connection_client_id_exact import ConnectionClientIdExact -from .connection_client_secret_exact import ConnectionClientSecretExact -from .connection_options_common import ConnectionOptionsCommon -from .connection_set_user_root_attributes_enum import ConnectionSetUserRootAttributesEnum -from .connection_upstream_params import ConnectionUpstreamParams - - -class ConnectionOptionsExact(ConnectionOptionsCommon): - """ - Options for the 'exact' connection - """ - - base_url: typing_extensions.Annotated[ - typing.Optional[ConnectionBaseUrlExact], FieldMetadata(alias="baseUrl"), pydantic.Field(alias="baseUrl") - ] = None - client_id: typing.Optional[ConnectionClientIdExact] = None - client_secret: typing.Optional[ConnectionClientSecretExact] = None - profile: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables retrieval of basic profile attributes from Exact Online including name, username, picture, email, gender, and language. - """ - - set_user_root_attributes: typing.Optional[ConnectionSetUserRootAttributesEnum] = None - upstream_params: typing.Optional[ConnectionUpstreamParams] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_options_facebook.py b/src/auth0/management/types/connection_options_facebook.py deleted file mode 100644 index dec3601f..00000000 --- a/src/auth0/management/types/connection_options_facebook.py +++ /dev/null @@ -1,239 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_client_id_facebook import ConnectionClientIdFacebook -from .connection_client_secret_facebook import ConnectionClientSecretFacebook -from .connection_options_common import ConnectionOptionsCommon -from .connection_scope_array_facebook import ConnectionScopeArrayFacebook -from .connection_scope_facebook import ConnectionScopeFacebook -from .connection_set_user_root_attributes_enum import ConnectionSetUserRootAttributesEnum -from .connection_upstream_params_facebook import ConnectionUpstreamParamsFacebook - - -class ConnectionOptionsFacebook(ConnectionOptionsCommon): - """ - Options for the 'facebook' connection - """ - - client_id: typing.Optional[ConnectionClientIdFacebook] = None - client_secret: typing.Optional[ConnectionClientSecretFacebook] = None - freeform_scopes: typing.Optional[ConnectionScopeArrayFacebook] = None - upstream_params: typing.Optional[ConnectionUpstreamParamsFacebook] = None - scope: typing.Optional[ConnectionScopeFacebook] = None - set_user_root_attributes: typing.Optional[ConnectionSetUserRootAttributesEnum] = None - ads_management: typing.Optional[bool] = pydantic.Field(default=None) - """ - Grants permission to both read and manage ads for ad accounts you own or have been granted access to by the owner. By default, your app may only access ad accounts owned by admins of the app when in developer mode. - """ - - ads_read: typing.Optional[bool] = pydantic.Field(default=None) - """ - Grants access to the Ads Insights API to pull ads report information for ad accounts you own or have been granted access to by the owner of other ad accounts. - """ - - allow_context_profile_field: typing.Optional[bool] = pydantic.Field(default=None) - """ - Provides access to a social context. Deprecated on April 30th, 2019. - """ - - business_management: typing.Optional[bool] = pydantic.Field(default=None) - """ - Grants permission to read and write with the Business Manager API. - """ - - email: typing.Optional[bool] = pydantic.Field(default=None) - """ - Grants permission to access a person's primary email address. - """ - - groups_access_member_info: typing.Optional[bool] = pydantic.Field(default=None) - """ - Grants permission to publicly available group member information. - """ - - leads_retrieval: typing.Optional[bool] = pydantic.Field(default=None) - """ - Grants permission to retrieve all the information captured within a lead. - """ - - manage_notifications: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables your app to read a person's notifications and mark them as read. This permission does not let you send notifications to a person. Deprecated in Graph API v2.3. - """ - - manage_pages: typing.Optional[bool] = pydantic.Field(default=None) - """ - Grants permission to retrieve Page Access Tokens for the Pages and Apps that the person administers. Apps need both manage_pages and publish_pages to be able to publish as a Page. - """ - - pages_manage_cta: typing.Optional[bool] = pydantic.Field(default=None) - """ - Allows the app to perform POST and DELETE operations on endpoints used for managing a Page's Call To Action buttons. - """ - - pages_manage_instant_articles: typing.Optional[bool] = pydantic.Field(default=None) - """ - Grants permission to manage Instant Articles on behalf of Facebook Pages administered by people using your app. - """ - - pages_messaging: typing.Optional[bool] = pydantic.Field(default=None) - """ - Grants permission to send and receive messages through a Facebook Page. - """ - - pages_messaging_phone_number: typing.Optional[bool] = pydantic.Field(default=None) - """ - Grants permission to use the phone number messaging feature. - """ - - pages_messaging_subscriptions: typing.Optional[bool] = pydantic.Field(default=None) - """ - Grants permission to send messages using Facebook Pages at any time after the first user interaction. Your app may only send advertising or promotional content through sponsored messages or within 24 hours of user interaction. - """ - - pages_show_list: typing.Optional[bool] = pydantic.Field(default=None) - """ - Grants access to show the list of the Pages that a person manages. - """ - - public_profile: typing.Optional[bool] = pydantic.Field(default=None) - """ - Provides access to a user's public profile information including id, first_name, last_name, middle_name, name, name_format, picture, and short_name. This is the most basic permission and is required by Facebook. - """ - - publish_actions: typing.Optional[bool] = pydantic.Field(default=None) - """ - Allows your app to publish to the Open Graph using Built-in Actions, Achievements, Scores, or Custom Actions. Deprecated on August 1st, 2018. - """ - - publish_pages: typing.Optional[bool] = pydantic.Field(default=None) - """ - Grants permission to publish posts, comments, and like Pages managed by a person using your app. Your app must also have manage_pages to publish as a Page. - """ - - publish_to_groups: typing.Optional[bool] = pydantic.Field(default=None) - """ - Grants permission to post content into a group on behalf of a user who has granted the app this permission. - """ - - publish_video: typing.Optional[bool] = pydantic.Field(default=None) - """ - Grants permission to publish live videos to the app User's timeline. - """ - - read_audience_network_insights: typing.Optional[bool] = pydantic.Field(default=None) - """ - Grants read-only access to the Audience Network Insights data for Apps the person owns. - """ - - read_insights: typing.Optional[bool] = pydantic.Field(default=None) - """ - Grants read-only access to the Insights data for Pages, Apps, and web domains the person owns. - """ - - read_mailbox: typing.Optional[bool] = pydantic.Field(default=None) - """ - Provides the ability to read the messages in a person's Facebook Inbox through the inbox edge and the thread node. Deprecated in Graph API v2.3. - """ - - read_page_mailboxes: typing.Optional[bool] = pydantic.Field(default=None) - """ - Grants permission to read from the Page Inboxes of the Pages managed by a person. This permission is often used alongside the manage_pages permission. - """ - - read_stream: typing.Optional[bool] = pydantic.Field(default=None) - """ - Provides access to read the posts in a person's News Feed, or the posts on their Profile. Deprecated in Graph API v2.3. - """ - - user_age_range: typing.Optional[bool] = pydantic.Field(default=None) - """ - Grants permission to access a person's age range. - """ - - user_birthday: typing.Optional[bool] = pydantic.Field(default=None) - """ - Grants permission to access a person's birthday. - """ - - user_events: typing.Optional[bool] = pydantic.Field(default=None) - """ - Grants read-only access to the Events a person is a host of or has RSVPed to. This permission is restricted to a limited set of partners and usage requires prior approval by Facebook. - """ - - user_friends: typing.Optional[bool] = pydantic.Field(default=None) - """ - Grants permission to access a list of friends that also use said app. This permission is restricted to a limited set of partners and usage requires prior approval by Facebook. - """ - - user_gender: typing.Optional[bool] = pydantic.Field(default=None) - """ - Grants permission to access a person's gender. - """ - - user_groups: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables your app to read the Groups a person is a member of through the groups edge on the User object. Deprecated in Graph API v2.3. - """ - - user_hometown: typing.Optional[bool] = pydantic.Field(default=None) - """ - Grants permission to access a person's hometown location set in their User Profile. - """ - - user_likes: typing.Optional[bool] = pydantic.Field(default=None) - """ - Grants permission to access the list of all Facebook Pages that a person has liked. - """ - - user_link: typing.Optional[bool] = pydantic.Field(default=None) - """ - Grants permission to access the Facebook Profile URL of the user of your app. - """ - - user_location: typing.Optional[bool] = pydantic.Field(default=None) - """ - Provides access to a person's current city through the location field on the User object. The current city is set by a person on their Profile. - """ - - user_managed_groups: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables your app to read the Groups a person is an admin of through the groups edge on the User object. Deprecated in Graph API v3.0. - """ - - user_photos: typing.Optional[bool] = pydantic.Field(default=None) - """ - Provides access to the photos a person has uploaded or been tagged in. This permission is restricted to a limited set of partners and usage requires prior approval by Facebook. - """ - - user_posts: typing.Optional[bool] = pydantic.Field(default=None) - """ - Provides access to the posts on a person's Timeline including their own posts, posts they are tagged in, and posts other people make on their Timeline. This permission is restricted to a limited set of partners and usage requires prior approval by Facebook. - """ - - user_status: typing.Optional[bool] = pydantic.Field(default=None) - """ - Provides access to a person's statuses. These are posts on Facebook which don't include links, videos or photos. Deprecated in Graph API v2.3. - """ - - user_tagged_places: typing.Optional[bool] = pydantic.Field(default=None) - """ - Provides access to the Places a person has been tagged at in photos, videos, statuses and links. This permission is restricted to a limited set of partners and usage requires prior approval by Facebook. - """ - - user_videos: typing.Optional[bool] = pydantic.Field(default=None) - """ - Provides access to the videos a person has uploaded or been tagged in. This permission is restricted to a limited set of partners and usage requires prior approval by Facebook. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_options_fitbit.py b/src/auth0/management/types/connection_options_fitbit.py deleted file mode 100644 index c887e50e..00000000 --- a/src/auth0/management/types/connection_options_fitbit.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_o_auth_2_common import ConnectionOptionsOAuth2Common - - -class ConnectionOptionsFitbit(ConnectionOptionsOAuth2Common): - """ - Options for the 'fitbit' connection - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_options_freeform_scopes_github.py b/src/auth0/management/types/connection_options_freeform_scopes_github.py deleted file mode 100644 index 3e4b6d61..00000000 --- a/src/auth0/management/types/connection_options_freeform_scopes_github.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from .connection_scope_array import ConnectionScopeArray - -ConnectionOptionsFreeformScopesGithub = ConnectionScopeArray -""" -Array of custom OAuth 2.0 scopes to request from GitHub during authentication. Use this to request scopes not covered by the predefined scope options. -""" diff --git a/src/auth0/management/types/connection_options_git_hub.py b/src/auth0/management/types/connection_options_git_hub.py deleted file mode 100644 index ec43dd9d..00000000 --- a/src/auth0/management/types/connection_options_git_hub.py +++ /dev/null @@ -1,134 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_client_id_github import ConnectionOptionsClientIdGithub -from .connection_options_client_secret_github import ConnectionOptionsClientSecretGithub -from .connection_options_common import ConnectionOptionsCommon -from .connection_options_freeform_scopes_github import ConnectionOptionsFreeformScopesGithub -from .connection_options_scope_github import ConnectionOptionsScopeGithub -from .connection_set_user_root_attributes_enum import ConnectionSetUserRootAttributesEnum -from .connection_upstream_params import ConnectionUpstreamParams - - -class ConnectionOptionsGitHub(ConnectionOptionsCommon): - """ - Options for the 'github' connection - """ - - client_id: typing.Optional[ConnectionOptionsClientIdGithub] = None - client_secret: typing.Optional[ConnectionOptionsClientSecretGithub] = None - freeform_scopes: typing.Optional[ConnectionOptionsFreeformScopesGithub] = None - scope: typing.Optional[ConnectionOptionsScopeGithub] = None - set_user_root_attributes: typing.Optional[ConnectionSetUserRootAttributesEnum] = None - upstream_params: typing.Optional[ConnectionUpstreamParams] = None - admin_org: typing.Optional[bool] = pydantic.Field(default=None) - """ - Requests the GitHub admin:org scope so Auth0 can fully manage organizations, teams, and memberships on behalf of the user. - """ - - admin_public_key: typing.Optional[bool] = pydantic.Field(default=None) - """ - Requests the admin:public_key scope to allow creating, updating, and deleting the user's SSH public keys. - """ - - admin_repo_hook: typing.Optional[bool] = pydantic.Field(default=None) - """ - Requests the admin:repo_hook scope so Auth0 can read, write, ping, and delete repository webhooks. - """ - - delete_repo: typing.Optional[bool] = pydantic.Field(default=None) - """ - Requests the delete_repo scope so the user can remove repositories they administer while signing in through Auth0. - """ - - email: typing.Optional[bool] = pydantic.Field(default=None) - """ - Requests the user:email scope so Auth0 pulls addresses from GitHub's /user/emails endpoint and populates the profile. - """ - - follow: typing.Optional[bool] = pydantic.Field(default=None) - """ - Requests the user:follow scope to allow following or unfollowing GitHub users for the signed-in account. - """ - - gist: typing.Optional[bool] = pydantic.Field(default=None) - """ - Requests the gist scope so the application can create or update gists on behalf of the user. - """ - - notifications: typing.Optional[bool] = pydantic.Field(default=None) - """ - Requests the notifications scope to read GitHub inbox notifications; repo also implicitly grants this access. - """ - - profile: typing.Optional[bool] = pydantic.Field(default=None) - """ - Controls the GitHub read:user call that returns the user's basic profile (name, avatar, profile URL) and is on by default for successful logins. - """ - - public_repo: typing.Optional[bool] = pydantic.Field(default=None) - """ - Requests the public_repo scope for read and write operations on public repositories, deployments, and statuses. - """ - - read_org: typing.Optional[bool] = pydantic.Field(default=None) - """ - Requests the read:org scope so Auth0 can view organizations, teams, and membership lists without making changes. - """ - - read_public_key: typing.Optional[bool] = pydantic.Field(default=None) - """ - Requests the read:public_key scope so Auth0 can list and inspect the user's SSH public keys. - """ - - read_repo_hook: typing.Optional[bool] = pydantic.Field(default=None) - """ - Requests the read:repo_hook scope to read and ping repository webhooks. - """ - - read_user: typing.Optional[bool] = pydantic.Field(default=None) - """ - Requests the read:user scope to load extended profile information, implicitly covering user:email and user:follow. - """ - - repo: typing.Optional[bool] = pydantic.Field(default=None) - """ - Requests the repo scope for read and write access to both public and private repositories, deployments, and statuses. - """ - - repo_deployment: typing.Optional[bool] = pydantic.Field(default=None) - """ - Requests the repo_deployment scope in order to read and write deployment statuses for repositories. - """ - - repo_status: typing.Optional[bool] = pydantic.Field(default=None) - """ - Requests the repo:status scope to manage commit statuses on public and private repositories. - """ - - write_org: typing.Optional[bool] = pydantic.Field(default=None) - """ - Requests the write:org scope so Auth0 can change whether organization memberships are publicized. - """ - - write_public_key: typing.Optional[bool] = pydantic.Field(default=None) - """ - Requests the write:public_key scope to create or update SSH public keys for the user. - """ - - write_repo_hook: typing.Optional[bool] = pydantic.Field(default=None) - """ - Requests the write:repo_hook scope so Auth0 can read, create, update, and ping repository webhooks. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_options_google_apps.py b/src/auth0/management/types/connection_options_google_apps.py deleted file mode 100644 index 95949457..00000000 --- a/src/auth0/management/types/connection_options_google_apps.py +++ /dev/null @@ -1,86 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_admin_access_token_expires_in_google_apps import ConnectionAdminAccessTokenExpiresInGoogleApps -from .connection_admin_access_token_google_apps import ConnectionAdminAccessTokenGoogleApps -from .connection_admin_refresh_token_google_apps import ConnectionAdminRefreshTokenGoogleApps -from .connection_api_enable_groups_google_apps import ConnectionApiEnableGroupsGoogleApps -from .connection_api_enable_users_google_apps import ConnectionApiEnableUsersGoogleApps -from .connection_client_id_google_apps import ConnectionClientIdGoogleApps -from .connection_client_secret_google_apps import ConnectionClientSecretGoogleApps -from .connection_domain_aliases import ConnectionDomainAliases -from .connection_domain_google_apps import ConnectionDomainGoogleApps -from .connection_ext_agreed_terms_google_apps import ConnectionExtAgreedTermsGoogleApps -from .connection_ext_groups_google_apps import ConnectionExtGroupsGoogleApps -from .connection_ext_is_admin_google_apps import ConnectionExtIsAdminGoogleApps -from .connection_ext_is_suspended_google_apps import ConnectionExtIsSuspendedGoogleApps -from .connection_handle_login_from_social_google_apps import ConnectionHandleLoginFromSocialGoogleApps -from .connection_icon_url_google_apps import ConnectionIconUrlGoogleApps -from .connection_options_common import ConnectionOptionsCommon -from .connection_scope_google_apps import ConnectionScopeGoogleApps -from .connection_set_user_root_attributes_enum import ConnectionSetUserRootAttributesEnum -from .connection_tenant_domain_google_apps import ConnectionTenantDomainGoogleApps -from .connection_upstream_params import ConnectionUpstreamParams - - -class ConnectionOptionsGoogleApps(ConnectionOptionsCommon): - """ - Options for the 'google-apps' connection - """ - - admin_access_token: typing.Optional[ConnectionAdminAccessTokenGoogleApps] = None - admin_access_token_expiresin: typing.Optional[ConnectionAdminAccessTokenExpiresInGoogleApps] = None - admin_refresh_token: typing.Optional[ConnectionAdminRefreshTokenGoogleApps] = None - allow_setting_login_scopes: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true, allows customization of OAuth scopes requested during user login. Custom scopes are appended to the mandatory email and profile scopes. When false or omitted, only the default email and profile scopes are used. This property is automatically enabled when Token Vault or Connected Accounts features are activated. - """ - - api_enable_groups: typing.Optional[ConnectionApiEnableGroupsGoogleApps] = None - api_enable_users: typing.Optional[ConnectionApiEnableUsersGoogleApps] = None - client_id: ConnectionClientIdGoogleApps - client_secret: typing.Optional[ConnectionClientSecretGoogleApps] = None - domain: typing.Optional[ConnectionDomainGoogleApps] = None - domain_aliases: typing.Optional[ConnectionDomainAliases] = None - email: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether the OAuth flow requests the `email` scope. - """ - - ext_agreed_terms: typing.Optional[ConnectionExtAgreedTermsGoogleApps] = None - ext_groups: typing.Optional[ConnectionExtGroupsGoogleApps] = None - ext_groups_extended: typing.Optional[bool] = pydantic.Field(default=None) - """ - Controls whether enriched group entries include `id`, `email`, `name` (true) or only the group name (false); can only be set when `ext_groups` is true. - """ - - ext_is_admin: typing.Optional[ConnectionExtIsAdminGoogleApps] = None - ext_is_suspended: typing.Optional[ConnectionExtIsSuspendedGoogleApps] = None - handle_login_from_social: typing.Optional[ConnectionHandleLoginFromSocialGoogleApps] = None - icon_url: typing.Optional[ConnectionIconUrlGoogleApps] = None - map_user_id_to_id: typing.Optional[bool] = pydantic.Field(default=None) - """ - Determines how Auth0 generates the user_id for Google Workspace users. When false (default), the user's email address is used. When true, Google's stable numeric user ID is used instead, which persists even if the user's email changes. This setting can only be configured when creating the connection and cannot be changed afterward. - """ - - profile: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether the OAuth flow requests the `profile` scope. - """ - - scope: typing.Optional[ConnectionScopeGoogleApps] = None - set_user_root_attributes: typing.Optional[ConnectionSetUserRootAttributesEnum] = None - tenant_domain: typing.Optional[ConnectionTenantDomainGoogleApps] = None - upstream_params: typing.Optional[ConnectionUpstreamParams] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_options_google_o_auth_2.py b/src/auth0/management/types/connection_options_google_o_auth_2.py deleted file mode 100644 index 4d1a9ed0..00000000 --- a/src/auth0/management/types/connection_options_google_o_auth_2.py +++ /dev/null @@ -1,363 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_allowed_audiences_google_o_auth_2 import ConnectionAllowedAudiencesGoogleOAuth2 -from .connection_client_id_google_o_auth_2 import ConnectionClientIdGoogleOAuth2 -from .connection_client_secret_google_o_auth_2 import ConnectionClientSecretGoogleOAuth2 -from .connection_freeform_scopes_google_o_auth_2 import ConnectionFreeformScopesGoogleOAuth2 -from .connection_icon_url_google_o_auth_2 import ConnectionIconUrlGoogleOAuth2 -from .connection_options_common import ConnectionOptionsCommon -from .connection_scope_google_o_auth_2 import ConnectionScopeGoogleOAuth2 -from .connection_set_user_root_attributes_enum import ConnectionSetUserRootAttributesEnum -from .connection_upstream_params import ConnectionUpstreamParams - - -class ConnectionOptionsGoogleOAuth2(ConnectionOptionsCommon): - """ - Options for the 'google-oauth2' connection - """ - - allowed_audiences: typing.Optional[ConnectionAllowedAudiencesGoogleOAuth2] = None - client_id: typing.Optional[ConnectionClientIdGoogleOAuth2] = None - client_secret: typing.Optional[ConnectionClientSecretGoogleOAuth2] = None - freeform_scopes: typing.Optional[ConnectionFreeformScopesGoogleOAuth2] = None - icon_url: typing.Optional[ConnectionIconUrlGoogleOAuth2] = None - scope: typing.Optional[ConnectionScopeGoogleOAuth2] = None - set_user_root_attributes: typing.Optional[ConnectionSetUserRootAttributesEnum] = None - upstream_params: typing.Optional[ConnectionUpstreamParams] = None - adsense_management: typing.Optional[bool] = pydantic.Field(default=None) - """ - View and manage user's ad applications, ad units, and channels in AdSense - """ - - analytics: typing.Optional[bool] = pydantic.Field(default=None) - """ - View user's configuration information and reports - """ - - blogger: typing.Optional[bool] = pydantic.Field(default=None) - """ - View and manage user's posts and blogs on Blogger and Blogger comments - """ - - calendar: typing.Optional[bool] = pydantic.Field(default=None) - """ - See, edit, share, and permanently delete all the calendars you can access using Google Calendar - """ - - calendar_addons_execute: typing.Optional[bool] = pydantic.Field(default=None) - """ - Run as a Calendar add-on - """ - - calendar_events: typing.Optional[bool] = pydantic.Field(default=None) - """ - View and edit events on all your calendars - """ - - calendar_events_readonly: typing.Optional[bool] = pydantic.Field(default=None) - """ - View events on all your calendars - """ - - calendar_settings_readonly: typing.Optional[bool] = pydantic.Field(default=None) - """ - View your Calendar settings - """ - - chrome_web_store: typing.Optional[bool] = pydantic.Field(default=None) - """ - Read access to user's chrome web store - """ - - contacts: typing.Optional[bool] = pydantic.Field(default=None) - """ - Full access to the authenticated user's contacts - """ - - contacts_new: typing.Optional[bool] = pydantic.Field(default=None) - """ - Full access to the authenticated user's contacts - """ - - contacts_other_readonly: typing.Optional[bool] = pydantic.Field(default=None) - """ - Read-only access to the authenticated user's 'Other contacts' - """ - - contacts_readonly: typing.Optional[bool] = pydantic.Field(default=None) - """ - Read-only access to the authenticated user's contacts - """ - - content_api_for_shopping: typing.Optional[bool] = pydantic.Field(default=None) - """ - View and manage user's products, feeds, and subaccounts - """ - - coordinate: typing.Optional[bool] = pydantic.Field(default=None) - """ - Grants read and write access to the Coordinate API - """ - - coordinate_readonly: typing.Optional[bool] = pydantic.Field(default=None) - """ - Grants read access to the Coordinate API - """ - - directory_readonly: typing.Optional[bool] = pydantic.Field(default=None) - """ - Read-only access to the authenticated user's corporate directory (if applicable) - """ - - document_list: typing.Optional[bool] = pydantic.Field(default=None) - """ - Access to Google Docs document list feed - """ - - drive: typing.Optional[bool] = pydantic.Field(default=None) - """ - Full access to all files and folders in the user's Google Drive - """ - - drive_activity: typing.Optional[bool] = pydantic.Field(default=None) - """ - View and add to the activity record of files in your Drive - """ - - drive_activity_readonly: typing.Optional[bool] = pydantic.Field(default=None) - """ - View the activity record of files in your Drive - """ - - drive_appdata: typing.Optional[bool] = pydantic.Field(default=None) - """ - Access to the application's configuration data in the user's Google Drive - """ - - drive_apps_readonly: typing.Optional[bool] = pydantic.Field(default=None) - """ - View apps authorized to access your Drive - """ - - drive_file: typing.Optional[bool] = pydantic.Field(default=None) - """ - Access to files created or opened by the app - """ - - drive_metadata: typing.Optional[bool] = pydantic.Field(default=None) - """ - Access to file metadata, including listing files and folders - """ - - drive_metadata_readonly: typing.Optional[bool] = pydantic.Field(default=None) - """ - Read-only access to file metadata - """ - - drive_photos_readonly: typing.Optional[bool] = pydantic.Field(default=None) - """ - Read-only access to the user's Google Photos - """ - - drive_readonly: typing.Optional[bool] = pydantic.Field(default=None) - """ - Read-only access to all files and folders in the user's Google Drive - """ - - drive_scripts: typing.Optional[bool] = pydantic.Field(default=None) - """ - Modify the behavior of Google Apps Scripts - """ - - email: typing.Optional[bool] = pydantic.Field(default=None) - """ - Email and verified email flag - """ - - gmail: typing.Optional[bool] = pydantic.Field(default=None) - """ - Full access to the account's mailboxes, including permanent deletion of threads and messages - """ - - gmail_compose: typing.Optional[bool] = pydantic.Field(default=None) - """ - Read all resources and their metadata—no write operations - """ - - gmail_insert: typing.Optional[bool] = pydantic.Field(default=None) - """ - Insert and import messages only - """ - - gmail_labels: typing.Optional[bool] = pydantic.Field(default=None) - """ - Create, read, update, and delete labels only - """ - - gmail_metadata: typing.Optional[bool] = pydantic.Field(default=None) - """ - Read resources metadata including labels, history records, and email message headers, but not the message body or attachments - """ - - gmail_modify: typing.Optional[bool] = pydantic.Field(default=None) - """ - All read/write operations except immediate, permanent deletion of threads and messages, bypassing Trash - """ - - gmail_new: typing.Optional[bool] = pydantic.Field(default=None) - """ - Full access to the account's mailboxes, including permanent deletion of threads and messages - """ - - gmail_readonly: typing.Optional[bool] = pydantic.Field(default=None) - """ - Read all resources and their metadata—no write operations - """ - - gmail_send: typing.Optional[bool] = pydantic.Field(default=None) - """ - Send messages only. No read or modify privileges on mailbox - """ - - gmail_settings_basic: typing.Optional[bool] = pydantic.Field(default=None) - """ - Manage basic mail settings - """ - - gmail_settings_sharing: typing.Optional[bool] = pydantic.Field(default=None) - """ - Manage sensitive mail settings, including forwarding rules and aliases. Note: Operations guarded by this scope are restricted to administrative use only - """ - - google_affiliate_network: typing.Optional[bool] = pydantic.Field(default=None) - """ - View and manage user's publisher data in the Google Affiliate Network - """ - - google_books: typing.Optional[bool] = pydantic.Field(default=None) - """ - View and manage user's books and library in Google Books - """ - - google_cloud_storage: typing.Optional[bool] = pydantic.Field(default=None) - """ - View and manage user's data stored in Google Cloud Storage - """ - - google_drive: typing.Optional[bool] = pydantic.Field(default=None) - """ - Full access to all files and folders in the user's Google Drive - """ - - google_drive_files: typing.Optional[bool] = pydantic.Field(default=None) - """ - Access to files created or opened by the app - """ - - google_plus: typing.Optional[bool] = pydantic.Field(default=None) - """ - Associate user with its public Google profile - """ - - latitude_best: typing.Optional[bool] = pydantic.Field(default=None) - """ - View and manage user's best-available current location and location history in Google Latitude - """ - - latitude_city: typing.Optional[bool] = pydantic.Field(default=None) - """ - View and manage user's city-level current location and location history in Google Latitude - """ - - moderator: typing.Optional[bool] = pydantic.Field(default=None) - """ - View and manage user's votes, topics, and submissions - """ - - offline_access: typing.Optional[bool] = pydantic.Field(default=None) - """ - Request a refresh token when the user authorizes your application - """ - - orkut: typing.Optional[bool] = pydantic.Field(default=None) - """ - View and manage user's friends, applications and profile and status - """ - - picasa_web: typing.Optional[bool] = pydantic.Field(default=None) - """ - View and manage user's Google photos, videos, photo and video tags and comments - """ - - profile: typing.Optional[bool] = pydantic.Field(default=None) - """ - Name, public profile URL, photo, country, language, and timezone - """ - - sites: typing.Optional[bool] = pydantic.Field(default=None) - """ - View and manage user's sites on Google Sites - """ - - tasks: typing.Optional[bool] = pydantic.Field(default=None) - """ - Full access to create, edit, organize, and delete all your tasks - """ - - tasks_readonly: typing.Optional[bool] = pydantic.Field(default=None) - """ - Read-only access to view your tasks and task lists - """ - - url_shortener: typing.Optional[bool] = pydantic.Field(default=None) - """ - View, manage and view statistics user's short URLs - """ - - webmaster_tools: typing.Optional[bool] = pydantic.Field(default=None) - """ - View and manage user's sites and messages, view keywords - """ - - youtube: typing.Optional[bool] = pydantic.Field(default=None) - """ - Manage your YouTube account - """ - - youtube_channelmemberships_creator: typing.Optional[bool] = pydantic.Field(default=None) - """ - See a list of your current active channel members, their current level, and when they became a member - """ - - youtube_new: typing.Optional[bool] = pydantic.Field(default=None) - """ - Manage your YouTube account - """ - - youtube_readonly: typing.Optional[bool] = pydantic.Field(default=None) - """ - View your YouTube account - """ - - youtube_upload: typing.Optional[bool] = pydantic.Field(default=None) - """ - Manage your YouTube videos - """ - - youtubepartner: typing.Optional[bool] = pydantic.Field(default=None) - """ - View and manage your assets and associated content on YouTube - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_options_idp_initiated_client_protocol_enum_saml.py b/src/auth0/management/types/connection_options_idp_initiated_client_protocol_enum_saml.py deleted file mode 100644 index 139f4171..00000000 --- a/src/auth0/management/types/connection_options_idp_initiated_client_protocol_enum_saml.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionOptionsIdpInitiatedClientProtocolEnumSaml = typing.Union[typing.Literal["oidc", "samlp", "wsfed"], typing.Any] diff --git a/src/auth0/management/types/connection_options_idpinitiated_saml.py b/src/auth0/management/types/connection_options_idpinitiated_saml.py deleted file mode 100644 index a228c599..00000000 --- a/src/auth0/management/types/connection_options_idpinitiated_saml.py +++ /dev/null @@ -1,38 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .connection_client_protocol_saml import ConnectionClientProtocolSaml - - -class ConnectionOptionsIdpinitiatedSaml(UniversalBaseModel): - """ - Configuration for IdP-Initiated SAML Single Sign-On. When enabled, allows users to initiate login directly from their SAML identity provider without first visiting Auth0. The IdP must include the connection parameter in the post-back URL (Assertion Consumer Service URL). - """ - - client_authorizequery: typing.Optional[str] = pydantic.Field(default=None) - """ - The query string sent to the default application - """ - - client_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The client ID to use for IdP-initiated login requests. - """ - - client_protocol: typing.Optional[ConnectionClientProtocolSaml] = None - enabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true, enables IdP-initiated login support for this SAML connection. Allows users to log in directly from the identity provider without first visiting Auth0. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_options_instagram.py b/src/auth0/management/types/connection_options_instagram.py deleted file mode 100644 index 21b35fe2..00000000 --- a/src/auth0/management/types/connection_options_instagram.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_o_auth_2_common import ConnectionOptionsOAuth2Common - - -class ConnectionOptionsInstagram(ConnectionOptionsOAuth2Common): - """ - Options for the 'instagram' connection - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_options_ip.py b/src/auth0/management/types/connection_options_ip.py deleted file mode 100644 index 8e85077a..00000000 --- a/src/auth0/management/types/connection_options_ip.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionOptionsIp = typing.Dict[str, typing.Any] -""" -Options for the 'ip' connection -""" diff --git a/src/auth0/management/types/connection_options_line.py b/src/auth0/management/types/connection_options_line.py deleted file mode 100644 index ff1ea5f4..00000000 --- a/src/auth0/management/types/connection_options_line.py +++ /dev/null @@ -1,43 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_client_id_line import ConnectionClientIdLine -from .connection_client_secret_line import ConnectionClientSecretLine -from .connection_options_common import ConnectionOptionsCommon -from .connection_scope_array import ConnectionScopeArray -from .connection_set_user_root_attributes_enum import ConnectionSetUserRootAttributesEnum -from .connection_upstream_params import ConnectionUpstreamParams - - -class ConnectionOptionsLine(ConnectionOptionsCommon): - """ - Options for the 'line' connection - """ - - client_id: typing.Optional[ConnectionClientIdLine] = None - client_secret: typing.Optional[ConnectionClientSecretLine] = None - freeform_scopes: typing.Optional[ConnectionScopeArray] = None - scope: typing.Optional[ConnectionScopeArray] = None - set_user_root_attributes: typing.Optional[ConnectionSetUserRootAttributesEnum] = None - upstream_params: typing.Optional[ConnectionUpstreamParams] = None - email: typing.Optional[bool] = pydantic.Field(default=None) - """ - Permission to request the user's email address from LINE. When enabled, adds the 'email' scope to OAuth requests. Note: LINE requires special approval to access user email addresses. - """ - - profile: typing.Optional[bool] = pydantic.Field(default=None) - """ - Permission to request the user's basic profile information from LINE. When enabled, adds the 'profile' scope to OAuth requests. LINE requires this scope to retrieve user display name, profile picture, and status message. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_options_linkedin.py b/src/auth0/management/types/connection_options_linkedin.py deleted file mode 100644 index 39dfd295..00000000 --- a/src/auth0/management/types/connection_options_linkedin.py +++ /dev/null @@ -1,70 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_client_id_linkedin import ConnectionClientIdLinkedin -from .connection_client_secret_linkedin import ConnectionClientSecretLinkedin -from .connection_freeform_scopes_linkedin import ConnectionFreeformScopesLinkedin -from .connection_options_common import ConnectionOptionsCommon -from .connection_scope_linkedin import ConnectionScopeLinkedin -from .connection_set_user_root_attributes_enum import ConnectionSetUserRootAttributesEnum -from .connection_strategy_version_enum_linkedin import ConnectionStrategyVersionEnumLinkedin -from .connection_upstream_params import ConnectionUpstreamParams - - -class ConnectionOptionsLinkedin(ConnectionOptionsCommon): - """ - Options for the 'linkedin' connection - """ - - client_id: typing.Optional[ConnectionClientIdLinkedin] = None - client_secret: typing.Optional[ConnectionClientSecretLinkedin] = None - freeform_scopes: typing.Optional[ConnectionFreeformScopesLinkedin] = None - scope: typing.Optional[ConnectionScopeLinkedin] = None - set_user_root_attributes: typing.Optional[ConnectionSetUserRootAttributesEnum] = None - strategy_version: typing.Optional[ConnectionStrategyVersionEnumLinkedin] = pydantic.Field(default=None) - """ - The strategy_version property determines which LinkedIn API version and OAuth scopes are used for authentication. Version 1 uses legacy scopes (r_basicprofile, r_fullprofile, r_network), Version 2 uses updated scopes (r_liteprofile, r_basicprofile), and Version 3 uses OpenID Connect scopes (profile, email, openid). If not specified, the connection defaults to Version 3. - """ - - upstream_params: typing.Optional[ConnectionUpstreamParams] = None - basic_profile: typing.Optional[bool] = pydantic.Field(default=None) - """ - Request the LinkedIn lite profile scope (r_liteprofile) to retrieve member id, localized first/last name, and profile picture. Off by default. - """ - - email: typing.Optional[bool] = pydantic.Field(default=None) - """ - Request the email address scope (r_emailaddress) to return the member's primary email. Off by default. - """ - - full_profile: typing.Optional[bool] = pydantic.Field(default=None) - """ - Request the legacy full profile scope (r_fullprofile) for extended attributes. Deprecated by LinkedIn; use only if enabled for your app. Off by default. - """ - - network: typing.Optional[bool] = pydantic.Field(default=None) - """ - Request legacy network access (first-degree connections). Deprecated by LinkedIn and typically unavailable to new apps. Off by default. - """ - - openid: typing.Optional[bool] = pydantic.Field(default=None) - """ - Request OpenID Connect authentication support (openid scope). When enabled, the connection will request the 'openid' scope from LinkedIn, allowing the use of OpenID Connect flows for authentication and enabling the issuance of ID tokens. This is off by default and should only be enabled if your LinkedIn application is configured for OpenID Connect. - """ - - profile: typing.Optional[bool] = pydantic.Field(default=None) - """ - Always-true flag that ensures the LinkedIn profile scope (r_basicprofile/r_liteprofile/profile) is requested. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_options_o_auth_1.py b/src/auth0/management/types/connection_options_o_auth_1.py deleted file mode 100644 index f1e75307..00000000 --- a/src/auth0/management/types/connection_options_o_auth_1.py +++ /dev/null @@ -1,57 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from ..core.serialization import FieldMetadata -from .connection_access_token_urlo_auth_1 import ConnectionAccessTokenUrloAuth1 -from .connection_client_id_o_auth_1 import ConnectionClientIdOAuth1 -from .connection_client_secret_o_auth_1 import ConnectionClientSecretOAuth1 -from .connection_options_common import ConnectionOptionsCommon -from .connection_request_token_urlo_auth_1 import ConnectionRequestTokenUrloAuth1 -from .connection_scripts_o_auth_1 import ConnectionScriptsOAuth1 -from .connection_signature_method_o_auth_1 import ConnectionSignatureMethodOAuth1 -from .connection_upstream_params import ConnectionUpstreamParams -from .connection_user_authorization_urlo_auth_1 import ConnectionUserAuthorizationUrloAuth1 - - -class ConnectionOptionsOAuth1(ConnectionOptionsCommon): - """ - Options for the 'oauth1' connection - """ - - access_token_url: typing_extensions.Annotated[ - typing.Optional[ConnectionAccessTokenUrloAuth1], - FieldMetadata(alias="accessTokenURL"), - pydantic.Field(alias="accessTokenURL"), - ] = None - client_id: typing.Optional[ConnectionClientIdOAuth1] = None - client_secret: typing.Optional[ConnectionClientSecretOAuth1] = None - request_token_url: typing_extensions.Annotated[ - typing.Optional[ConnectionRequestTokenUrloAuth1], - FieldMetadata(alias="requestTokenURL"), - pydantic.Field(alias="requestTokenURL"), - ] = None - scripts: typing.Optional[ConnectionScriptsOAuth1] = None - signature_method: typing_extensions.Annotated[ - typing.Optional[ConnectionSignatureMethodOAuth1], - FieldMetadata(alias="signatureMethod"), - pydantic.Field(alias="signatureMethod"), - ] = None - upstream_params: typing.Optional[ConnectionUpstreamParams] = None - user_authorization_url: typing_extensions.Annotated[ - typing.Optional[ConnectionUserAuthorizationUrloAuth1], - FieldMetadata(alias="userAuthorizationURL"), - pydantic.Field(alias="userAuthorizationURL"), - ] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_options_o_auth_1_common.py b/src/auth0/management/types/connection_options_o_auth_1_common.py deleted file mode 100644 index 1a377469..00000000 --- a/src/auth0/management/types/connection_options_o_auth_1_common.py +++ /dev/null @@ -1,33 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_common import ConnectionOptionsCommon -from .connection_set_user_root_attributes_enum import ConnectionSetUserRootAttributesEnum -from .connection_upstream_params import ConnectionUpstreamParams - - -class ConnectionOptionsOAuth1Common(ConnectionOptionsCommon): - client_id: typing.Optional[str] = pydantic.Field(default=None) - """ - OAuth 1.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider. - """ - - client_secret: typing.Optional[str] = pydantic.Field(default=None) - """ - OAuth 1.0 client secret issued by the identity provider during application registration. Used to authenticate your Auth0 connection when signing requests and exchanging request tokens and verifiers for access tokens. May be null for public clients. - """ - - set_user_root_attributes: typing.Optional[ConnectionSetUserRootAttributesEnum] = None - upstream_params: typing.Optional[ConnectionUpstreamParams] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_options_o_auth_2.py b/src/auth0/management/types/connection_options_o_auth_2.py deleted file mode 100644 index ae0e6646..00000000 --- a/src/auth0/management/types/connection_options_o_auth_2.py +++ /dev/null @@ -1,93 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from ..core.serialization import FieldMetadata -from .connection_auth_params_map import ConnectionAuthParamsMap -from .connection_auth_params_o_auth_2 import ConnectionAuthParamsOAuth2 -from .connection_authorization_endpoint import ConnectionAuthorizationEndpoint -from .connection_client_id_o_auth_2 import ConnectionClientIdOAuth2 -from .connection_client_secret_o_auth_2 import ConnectionClientSecretOAuth2 -from .connection_custom_headers_o_auth_2 import ConnectionCustomHeadersOAuth2 -from .connection_end_session_endpoint import ConnectionEndSessionEndpoint -from .connection_fields_map import ConnectionFieldsMap -from .connection_icon_url import ConnectionIconUrl -from .connection_options_common import ConnectionOptionsCommon -from .connection_scope_o_auth_2 import ConnectionScopeOAuth2 -from .connection_scripts_o_auth_2 import ConnectionScriptsOAuth2 -from .connection_set_user_root_attributes_enum import ConnectionSetUserRootAttributesEnum -from .connection_token_endpoint import ConnectionTokenEndpoint -from .connection_upstream_params import ConnectionUpstreamParams - - -class ConnectionOptionsOAuth2(ConnectionOptionsCommon): - """ - Options for the 'oauth2' connection - """ - - auth_params: typing_extensions.Annotated[ - typing.Optional[ConnectionAuthParamsOAuth2], - FieldMetadata(alias="authParams"), - pydantic.Field(alias="authParams"), - ] = None - auth_params_map: typing_extensions.Annotated[ - typing.Optional[ConnectionAuthParamsMap], - FieldMetadata(alias="authParamsMap"), - pydantic.Field(alias="authParamsMap"), - ] = None - authorization_url: typing_extensions.Annotated[ - typing.Optional[ConnectionAuthorizationEndpoint], - FieldMetadata(alias="authorizationURL"), - pydantic.Field(alias="authorizationURL"), - ] = None - client_id: typing.Optional[ConnectionClientIdOAuth2] = None - client_secret: typing.Optional[ConnectionClientSecretOAuth2] = None - custom_headers: typing_extensions.Annotated[ - typing.Optional[ConnectionCustomHeadersOAuth2], - FieldMetadata(alias="customHeaders"), - pydantic.Field(alias="customHeaders"), - ] = None - fields_map: typing_extensions.Annotated[ - typing.Optional[ConnectionFieldsMap], FieldMetadata(alias="fieldsMap"), pydantic.Field(alias="fieldsMap") - ] = None - icon_url: typing.Optional[ConnectionIconUrl] = None - logout_url: typing_extensions.Annotated[ - typing.Optional[ConnectionEndSessionEndpoint], - FieldMetadata(alias="logoutUrl"), - pydantic.Field(alias="logoutUrl"), - ] = None - pkce_enabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true, enables Proof Key for Code Exchange (PKCE) for the authorization code flow. PKCE provides additional security by preventing authorization code interception attacks. - """ - - scope: typing.Optional[ConnectionScopeOAuth2] = None - scripts: typing.Optional[ConnectionScriptsOAuth2] = None - set_user_root_attributes: typing.Optional[ConnectionSetUserRootAttributesEnum] = None - token_url: typing_extensions.Annotated[ - typing.Optional[ConnectionTokenEndpoint], FieldMetadata(alias="tokenURL"), pydantic.Field(alias="tokenURL") - ] = None - upstream_params: typing.Optional[ConnectionUpstreamParams] = None - use_oauth_spec_scope: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="useOauthSpecScope"), - pydantic.Field( - alias="useOauthSpecScope", - description="When true, uses space-delimited scopes (per OAuth 2.0 spec) instead of comma-delimited when calling the identity provider's authorization endpoint. Only relevant when using the connection_scope parameter. See https://auth0.com/docs/authenticate/identity-providers/adding-scopes-for-an-external-idp#pass-scopes-to-authorize-endpoint", - ), - ] = None - """ - When true, uses space-delimited scopes (per OAuth 2.0 spec) instead of comma-delimited when calling the identity provider's authorization endpoint. Only relevant when using the connection_scope parameter. See https://auth0.com/docs/authenticate/identity-providers/adding-scopes-for-an-external-idp#pass-scopes-to-authorize-endpoint - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_options_o_auth_2_common.py b/src/auth0/management/types/connection_options_o_auth_2_common.py deleted file mode 100644 index a3642093..00000000 --- a/src/auth0/management/types/connection_options_o_auth_2_common.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_client_id import ConnectionClientId -from .connection_client_secret import ConnectionClientSecret -from .connection_options_common import ConnectionOptionsCommon -from .connection_scope_o_auth_2 import ConnectionScopeOAuth2 -from .connection_set_user_root_attributes_enum import ConnectionSetUserRootAttributesEnum -from .connection_upstream_params import ConnectionUpstreamParams - - -class ConnectionOptionsOAuth2Common(ConnectionOptionsCommon): - client_id: typing.Optional[ConnectionClientId] = None - client_secret: typing.Optional[ConnectionClientSecret] = None - scope: typing.Optional[ConnectionScopeOAuth2] = None - set_user_root_attributes: typing.Optional[ConnectionSetUserRootAttributesEnum] = None - upstream_params: typing.Optional[ConnectionUpstreamParams] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_options_office_365.py b/src/auth0/management/types/connection_options_office_365.py deleted file mode 100644 index 4cb2f472..00000000 --- a/src/auth0/management/types/connection_options_office_365.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .connection_client_id import ConnectionClientId -from .connection_client_secret import ConnectionClientSecret - - -class ConnectionOptionsOffice365(UniversalBaseModel): - """ - Options for the 'office365' connection - """ - - client_id: typing.Optional[ConnectionClientId] = None - client_secret: typing.Optional[ConnectionClientSecret] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_options_oidc.py b/src/auth0/management/types/connection_options_oidc.py deleted file mode 100644 index f7aff7c3..00000000 --- a/src/auth0/management/types/connection_options_oidc.py +++ /dev/null @@ -1,30 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_attribute_map_oidc import ConnectionAttributeMapOidc -from .connection_discovery_url import ConnectionDiscoveryUrl -from .connection_options_common import ConnectionOptionsCommon -from .connection_options_common_oidc import ConnectionOptionsCommonOidc -from .connection_type_enum_oidc import ConnectionTypeEnumOidc - - -class ConnectionOptionsOidc(ConnectionOptionsCommonOidc, ConnectionOptionsCommon): - """ - Options for the 'oidc' connection - """ - - attribute_map: typing.Optional[ConnectionAttributeMapOidc] = None - discovery_url: typing.Optional[ConnectionDiscoveryUrl] = None - type: typing.Optional[ConnectionTypeEnumOidc] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_options_oidc_metadata.py b/src/auth0/management/types/connection_options_oidc_metadata.py deleted file mode 100644 index e9fda892..00000000 --- a/src/auth0/management/types/connection_options_oidc_metadata.py +++ /dev/null @@ -1,114 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .connection_acr_values_supported import ConnectionAcrValuesSupported -from .connection_authorization_endpoint import ConnectionAuthorizationEndpoint -from .connection_claim_types_supported import ConnectionClaimTypesSupported -from .connection_claims_locales_supported import ConnectionClaimsLocalesSupported -from .connection_claims_parameter_supported import ConnectionClaimsParameterSupported -from .connection_claims_supported import ConnectionClaimsSupported -from .connection_display_values_supported import ConnectionDisplayValuesSupported -from .connection_dpop_signing_alg_values_supported import ConnectionDpopSigningAlgValuesSupported -from .connection_end_session_endpoint import ConnectionEndSessionEndpoint -from .connection_grant_types_supported import ConnectionGrantTypesSupported -from .connection_id_token_encryption_alg_values_supported import ConnectionIdTokenEncryptionAlgValuesSupported -from .connection_id_token_encryption_enc_values_supported import ConnectionIdTokenEncryptionEncValuesSupported -from .connection_id_token_signing_alg_values_supported import ConnectionIdTokenSigningAlgValuesSupported -from .connection_issuer import ConnectionIssuer -from .connection_jwks_uri import ConnectionJwksUri -from .connection_op_policy_uri import ConnectionOpPolicyUri -from .connection_op_tos_uri import ConnectionOpTosUri -from .connection_pushed_authorization_request_endpoint import ConnectionPushedAuthorizationRequestEndpoint -from .connection_registration_endpoint import ConnectionRegistrationEndpoint -from .connection_request_object_encryption_alg_values_supported import ( - ConnectionRequestObjectEncryptionAlgValuesSupported, -) -from .connection_request_object_encryption_enc_values_supported import ( - ConnectionRequestObjectEncryptionEncValuesSupported, -) -from .connection_request_object_signing_alg_values_supported import ConnectionRequestObjectSigningAlgValuesSupported -from .connection_request_parameter_supported import ConnectionRequestParameterSupported -from .connection_request_uri_parameter_supported import ConnectionRequestUriParameterSupported -from .connection_require_pushed_authorization_requests import ConnectionRequirePushedAuthorizationRequests -from .connection_require_request_uri_registration import ConnectionRequireRequestUriRegistration -from .connection_response_modes_supported import ConnectionResponseModesSupported -from .connection_response_types_supported import ConnectionResponseTypesSupported -from .connection_scopes_supported import ConnectionScopesSupported -from .connection_service_documentation import ConnectionServiceDocumentation -from .connection_subject_types_supported import ConnectionSubjectTypesSupported -from .connection_token_endpoint import ConnectionTokenEndpoint -from .connection_token_endpoint_auth_methods_supported import ConnectionTokenEndpointAuthMethodsSupported -from .connection_token_endpoint_auth_signing_alg_values_supported import ( - ConnectionTokenEndpointAuthSigningAlgValuesSupported, -) -from .connection_ui_locales_supported import ConnectionUiLocalesSupported -from .connection_userinfo_encryption_alg_values_supported import ConnectionUserinfoEncryptionAlgValuesSupported -from .connection_userinfo_encryption_enc_values_supported import ConnectionUserinfoEncryptionEncValuesSupported -from .connection_userinfo_endpoint import ConnectionUserinfoEndpoint -from .connection_userinfo_signing_alg_values_supported import ConnectionUserinfoSigningAlgValuesSupported - - -class ConnectionOptionsOidcMetadata(UniversalBaseModel): - """ - OpenID Connect Provider Metadata as per https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata - """ - - acr_values_supported: typing.Optional[ConnectionAcrValuesSupported] = None - authorization_endpoint: ConnectionAuthorizationEndpoint - claim_types_supported: typing.Optional[ConnectionClaimTypesSupported] = None - claims_locales_supported: typing.Optional[ConnectionClaimsLocalesSupported] = None - claims_parameter_supported: typing.Optional[ConnectionClaimsParameterSupported] = None - claims_supported: typing.Optional[ConnectionClaimsSupported] = None - display_values_supported: typing.Optional[ConnectionDisplayValuesSupported] = None - dpop_signing_alg_values_supported: typing.Optional[ConnectionDpopSigningAlgValuesSupported] = None - end_session_endpoint: typing.Optional[ConnectionEndSessionEndpoint] = None - grant_types_supported: typing.Optional[ConnectionGrantTypesSupported] = None - id_token_encryption_alg_values_supported: typing.Optional[ConnectionIdTokenEncryptionAlgValuesSupported] = None - id_token_encryption_enc_values_supported: typing.Optional[ConnectionIdTokenEncryptionEncValuesSupported] = None - id_token_signing_alg_values_supported: ConnectionIdTokenSigningAlgValuesSupported - issuer: ConnectionIssuer - jwks_uri: ConnectionJwksUri - op_policy_uri: typing.Optional[ConnectionOpPolicyUri] = None - op_tos_uri: typing.Optional[ConnectionOpTosUri] = None - pushed_authorization_request_endpoint: typing.Optional[ConnectionPushedAuthorizationRequestEndpoint] = None - registration_endpoint: typing.Optional[ConnectionRegistrationEndpoint] = None - request_object_encryption_alg_values_supported: typing.Optional[ - ConnectionRequestObjectEncryptionAlgValuesSupported - ] = None - request_object_encryption_enc_values_supported: typing.Optional[ - ConnectionRequestObjectEncryptionEncValuesSupported - ] = None - request_object_signing_alg_values_supported: typing.Optional[ConnectionRequestObjectSigningAlgValuesSupported] = ( - None - ) - request_parameter_supported: typing.Optional[ConnectionRequestParameterSupported] = None - request_uri_parameter_supported: typing.Optional[ConnectionRequestUriParameterSupported] = None - require_pushed_authorization_requests: typing.Optional[ConnectionRequirePushedAuthorizationRequests] = None - require_request_uri_registration: typing.Optional[ConnectionRequireRequestUriRegistration] = None - response_modes_supported: typing.Optional[ConnectionResponseModesSupported] = None - response_types_supported: typing.Optional[ConnectionResponseTypesSupported] = None - scopes_supported: typing.Optional[ConnectionScopesSupported] = None - service_documentation: typing.Optional[ConnectionServiceDocumentation] = None - subject_types_supported: typing.Optional[ConnectionSubjectTypesSupported] = None - token_endpoint: typing.Optional[ConnectionTokenEndpoint] = None - token_endpoint_auth_methods_supported: typing.Optional[ConnectionTokenEndpointAuthMethodsSupported] = None - token_endpoint_auth_signing_alg_values_supported: typing.Optional[ - ConnectionTokenEndpointAuthSigningAlgValuesSupported - ] = None - ui_locales_supported: typing.Optional[ConnectionUiLocalesSupported] = None - userinfo_encryption_alg_values_supported: typing.Optional[ConnectionUserinfoEncryptionAlgValuesSupported] = None - userinfo_encryption_enc_values_supported: typing.Optional[ConnectionUserinfoEncryptionEncValuesSupported] = None - userinfo_endpoint: typing.Optional[ConnectionUserinfoEndpoint] = None - userinfo_signing_alg_values_supported: typing.Optional[ConnectionUserinfoSigningAlgValuesSupported] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_options_okta.py b/src/auth0/management/types/connection_options_okta.py deleted file mode 100644 index ad3b2a57..00000000 --- a/src/auth0/management/types/connection_options_okta.py +++ /dev/null @@ -1,30 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_attribute_map_okta import ConnectionAttributeMapOkta -from .connection_domain_okta import ConnectionDomainOkta -from .connection_options_common import ConnectionOptionsCommon -from .connection_options_common_oidc import ConnectionOptionsCommonOidc -from .connection_type_enum_okta import ConnectionTypeEnumOkta - - -class ConnectionOptionsOkta(ConnectionOptionsCommon, ConnectionOptionsCommonOidc): - """ - Options for the 'okta' connection - """ - - attribute_map: typing.Optional[ConnectionAttributeMapOkta] = None - domain: typing.Optional[ConnectionDomainOkta] = None - type: typing.Optional[ConnectionTypeEnumOkta] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_options_paypal.py b/src/auth0/management/types/connection_options_paypal.py deleted file mode 100644 index e33240b1..00000000 --- a/src/auth0/management/types/connection_options_paypal.py +++ /dev/null @@ -1,52 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_client_id_paypal import ConnectionClientIdPaypal -from .connection_client_secret_paypal import ConnectionClientSecretPaypal -from .connection_freeform_scopes_paypal import ConnectionFreeformScopesPaypal -from .connection_options_common import ConnectionOptionsCommon -from .connection_scope_paypal import ConnectionScopePaypal -from .connection_set_user_root_attributes_enum import ConnectionSetUserRootAttributesEnum - - -class ConnectionOptionsPaypal(ConnectionOptionsCommon): - """ - Options for the 'paypal' and 'paypal-sandbox' connections - """ - - client_id: typing.Optional[ConnectionClientIdPaypal] = None - client_secret: typing.Optional[ConnectionClientSecretPaypal] = None - freeform_scopes: typing.Optional[ConnectionFreeformScopesPaypal] = None - scope: typing.Optional[ConnectionScopePaypal] = None - set_user_root_attributes: typing.Optional[ConnectionSetUserRootAttributesEnum] = None - address: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, requests the 'address' scope from PayPal to access the user's address information. - """ - - email: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, requests the 'email' scope from PayPal to access the user's email address. - """ - - phone: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, requests the 'phone' scope from PayPal to access the user's phone number. - """ - - profile: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, requests the 'profile' scope from PayPal to access basic profile information including first name, last name, date of birth, time zone, locale, and language. This scope is always enabled by the system. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_options_ping_federate.py b/src/auth0/management/types/connection_options_ping_federate.py deleted file mode 100644 index fd584cc2..00000000 --- a/src/auth0/management/types/connection_options_ping_federate.py +++ /dev/null @@ -1,38 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from ..core.serialization import FieldMetadata -from .connection_options_common import ConnectionOptionsCommon -from .connection_options_common_saml import ConnectionOptionsCommonSaml -from .connection_ping_federate_base_url import ConnectionPingFederateBaseUrl -from .connection_signing_certificate_pem_ping_federate import ConnectionSigningCertificatePemPingFederate - - -class ConnectionOptionsPingFederate(ConnectionOptionsCommonSaml, ConnectionOptionsCommon): - """ - Options for the 'pingfederate' connection - """ - - ping_federate_base_url: typing_extensions.Annotated[ - ConnectionPingFederateBaseUrl, - FieldMetadata(alias="pingFederateBaseUrl"), - pydantic.Field(alias="pingFederateBaseUrl"), - ] - signing_cert: typing_extensions.Annotated[ - typing.Optional[ConnectionSigningCertificatePemPingFederate], - FieldMetadata(alias="signingCert"), - pydantic.Field(alias="signingCert"), - ] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_options_planning_center.py b/src/auth0/management/types/connection_options_planning_center.py deleted file mode 100644 index c525fec2..00000000 --- a/src/auth0/management/types/connection_options_planning_center.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_o_auth_2_common import ConnectionOptionsOAuth2Common - - -class ConnectionOptionsPlanningCenter(ConnectionOptionsOAuth2Common): - """ - Options for the 'planningcenter' connection - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_options_protocol_enum_twitter.py b/src/auth0/management/types/connection_options_protocol_enum_twitter.py deleted file mode 100644 index c2fdcd5c..00000000 --- a/src/auth0/management/types/connection_options_protocol_enum_twitter.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionOptionsProtocolEnumTwitter = typing.Union[typing.Literal["oauth1", "oauth2"], typing.Any] diff --git a/src/auth0/management/types/connection_options_salesforce.py b/src/auth0/management/types/connection_options_salesforce.py deleted file mode 100644 index 6136a2f7..00000000 --- a/src/auth0/management/types/connection_options_salesforce.py +++ /dev/null @@ -1,40 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_client_id_salesforce import ConnectionClientIdSalesforce -from .connection_client_secret_salesforce import ConnectionClientSecretSalesforce -from .connection_freeform_scopes_salesforce import ConnectionFreeformScopesSalesforce -from .connection_options_common import ConnectionOptionsCommon -from .connection_scope_salesforce import ConnectionScopeSalesforce -from .connection_set_user_root_attributes_enum import ConnectionSetUserRootAttributesEnum -from .connection_upstream_params import ConnectionUpstreamParams - - -class ConnectionOptionsSalesforce(ConnectionOptionsCommon): - """ - Options for the salesforce family of connections (salesforce, salesforce-sandbox, salesforce-community) - """ - - client_id: typing.Optional[ConnectionClientIdSalesforce] = None - client_secret: typing.Optional[ConnectionClientSecretSalesforce] = None - freeform_scopes: typing.Optional[ConnectionFreeformScopesSalesforce] = None - profile: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, requests the Salesforce profile scope to retrieve basic user information including user_id, organization_id, username, display_name, email, status, photos, and URLs. - """ - - scope: typing.Optional[ConnectionScopeSalesforce] = None - set_user_root_attributes: typing.Optional[ConnectionSetUserRootAttributesEnum] = None - upstream_params: typing.Optional[ConnectionUpstreamParams] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_options_salesforce_community.py b/src/auth0/management/types/connection_options_salesforce_community.py deleted file mode 100644 index 29f025d5..00000000 --- a/src/auth0/management/types/connection_options_salesforce_community.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_community_base_url_salesforce import ConnectionCommunityBaseUrlSalesforce -from .connection_options_salesforce import ConnectionOptionsSalesforce - - -class ConnectionOptionsSalesforceCommunity(ConnectionOptionsSalesforce): - """ - Options for the 'salesforce-community' connection - """ - - community_base_url: typing.Optional[ConnectionCommunityBaseUrlSalesforce] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_options_saml.py b/src/auth0/management/types/connection_options_saml.py deleted file mode 100644 index 7b1d999d..00000000 --- a/src/auth0/management/types/connection_options_saml.py +++ /dev/null @@ -1,110 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from ..core.serialization import FieldMetadata -from .connection_client_id_samlxaa_requesting_app import ConnectionClientIdSamlxaaRequestingApp -from .connection_client_secret_samlxaa_requesting_app import ConnectionClientSecretSamlxaaRequestingApp -from .connection_debug_saml import ConnectionDebugSaml -from .connection_destination_url_saml import ConnectionDestinationUrlSaml -from .connection_discovery_url import ConnectionDiscoveryUrl -from .connection_fields_map_saml import ConnectionFieldsMapSaml -from .connection_global_token_revocation_jwt_iss_saml import ConnectionGlobalTokenRevocationJwtIssSaml -from .connection_global_token_revocation_jwt_sub_saml import ConnectionGlobalTokenRevocationJwtSubSaml -from .connection_metadata_url_saml import ConnectionMetadataUrlSaml -from .connection_metadata_xml_saml import ConnectionMetadataXmlSaml -from .connection_options_common import ConnectionOptionsCommon -from .connection_options_common_saml import ConnectionOptionsCommonSaml -from .connection_options_deflate_saml import ConnectionOptionsDeflateSaml -from .connection_options_oidc_metadata import ConnectionOptionsOidcMetadata -from .connection_recipient_url_saml import ConnectionRecipientUrlSaml -from .connection_request_template_saml import ConnectionRequestTemplateSaml -from .connection_sign_out_endpoint_saml import ConnectionSignOutEndpointSaml -from .connection_signing_cert_saml import ConnectionSigningCertSaml -from .connection_signing_key_saml import ConnectionSigningKeySaml -from .connection_token_endpoint_auth_method_enum import ConnectionTokenEndpointAuthMethodEnum -from .connection_token_endpoint_auth_signing_alg_enum import ConnectionTokenEndpointAuthSigningAlgEnum -from .connection_token_endpoint_jwtca_aud_format_enum_oidc import ConnectionTokenEndpointJwtcaAudFormatEnumOidc -from .connection_user_id_attribute_saml import ConnectionUserIdAttributeSaml - - -class ConnectionOptionsSaml(ConnectionOptionsCommonSaml, ConnectionOptionsCommon): - """ - Options for the 'samlp' connection - """ - - client_id: typing.Optional[ConnectionClientIdSamlxaaRequestingApp] = None - client_secret: typing.Optional[ConnectionClientSecretSamlxaaRequestingApp] = None - debug: typing.Optional[ConnectionDebugSaml] = None - deflate: typing.Optional[ConnectionOptionsDeflateSaml] = None - destination_url: typing_extensions.Annotated[ - typing.Optional[ConnectionDestinationUrlSaml], - FieldMetadata(alias="destinationUrl"), - pydantic.Field(alias="destinationUrl"), - ] = None - disable_signout: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="disableSignout"), - pydantic.Field( - alias="disableSignout", - description="When true, disables sending SAML logout requests (SingleLogoutService) to the identity provider during user sign-out. The user will be logged out of Auth0 but will remain logged into the identity provider. Defaults to false (federated logout enabled).", - ), - ] = None - """ - When true, disables sending SAML logout requests (SingleLogoutService) to the identity provider during user sign-out. The user will be logged out of Auth0 but will remain logged into the identity provider. Defaults to false (federated logout enabled). - """ - - discovery_url: typing.Optional[ConnectionDiscoveryUrl] = None - fields_map: typing_extensions.Annotated[ - typing.Optional[ConnectionFieldsMapSaml], FieldMetadata(alias="fieldsMap"), pydantic.Field(alias="fieldsMap") - ] = None - global_token_revocation_jwt_iss: typing.Optional[ConnectionGlobalTokenRevocationJwtIssSaml] = None - global_token_revocation_jwt_sub: typing.Optional[ConnectionGlobalTokenRevocationJwtSubSaml] = None - metadata_url: typing_extensions.Annotated[ - typing.Optional[ConnectionMetadataUrlSaml], - FieldMetadata(alias="metadataUrl"), - pydantic.Field(alias="metadataUrl"), - ] = None - metadata_xml: typing_extensions.Annotated[ - typing.Optional[ConnectionMetadataXmlSaml], - FieldMetadata(alias="metadataXml"), - pydantic.Field(alias="metadataXml"), - ] = None - oidc_metadata: typing.Optional[ConnectionOptionsOidcMetadata] = None - recipient_url: typing_extensions.Annotated[ - typing.Optional[ConnectionRecipientUrlSaml], - FieldMetadata(alias="recipientUrl"), - pydantic.Field(alias="recipientUrl"), - ] = None - request_template: typing_extensions.Annotated[ - typing.Optional[ConnectionRequestTemplateSaml], - FieldMetadata(alias="requestTemplate"), - pydantic.Field(alias="requestTemplate"), - ] = None - signing_cert: typing_extensions.Annotated[ - typing.Optional[ConnectionSigningCertSaml], - FieldMetadata(alias="signingCert"), - pydantic.Field(alias="signingCert"), - ] = None - signing_key: typing.Optional[ConnectionSigningKeySaml] = None - sign_out_endpoint: typing_extensions.Annotated[ - typing.Optional[ConnectionSignOutEndpointSaml], - FieldMetadata(alias="signOutEndpoint"), - pydantic.Field(alias="signOutEndpoint"), - ] = None - token_endpoint_auth_method: typing.Optional[ConnectionTokenEndpointAuthMethodEnum] = None - token_endpoint_auth_signing_alg: typing.Optional[ConnectionTokenEndpointAuthSigningAlgEnum] = None - token_endpoint_jwtca_aud_format: typing.Optional[ConnectionTokenEndpointJwtcaAudFormatEnumOidc] = None - user_id_attribute: typing.Optional[ConnectionUserIdAttributeSaml] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_options_scope_github.py b/src/auth0/management/types/connection_options_scope_github.py deleted file mode 100644 index b12d615d..00000000 --- a/src/auth0/management/types/connection_options_scope_github.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from .connection_scope_array import ConnectionScopeArray - -ConnectionOptionsScopeGithub = ConnectionScopeArray -""" -Scope options for GitHub connections. -""" diff --git a/src/auth0/management/types/connection_options_scope_twitter.py b/src/auth0/management/types/connection_options_scope_twitter.py deleted file mode 100644 index 38eb6237..00000000 --- a/src/auth0/management/types/connection_options_scope_twitter.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from .connection_scope_array import ConnectionScopeArray - -ConnectionOptionsScopeTwitter = ConnectionScopeArray -""" -Array of OAuth 2.0 scopes to request from Twitter during authentication. Use this to request scopes not covered by the predefined scope options. -""" diff --git a/src/auth0/management/types/connection_options_sharepoint.py b/src/auth0/management/types/connection_options_sharepoint.py deleted file mode 100644 index 386ce8b8..00000000 --- a/src/auth0/management/types/connection_options_sharepoint.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_o_auth_2_common import ConnectionOptionsOAuth2Common - - -class ConnectionOptionsSharepoint(ConnectionOptionsOAuth2Common): - """ - Options for the 'sharepoint' connection - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_options_shop.py b/src/auth0/management/types/connection_options_shop.py deleted file mode 100644 index 1256512b..00000000 --- a/src/auth0/management/types/connection_options_shop.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_o_auth_2_common import ConnectionOptionsOAuth2Common - - -class ConnectionOptionsShop(ConnectionOptionsOAuth2Common): - """ - Options for the 'shop' connection - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_options_shopify.py b/src/auth0/management/types/connection_options_shopify.py deleted file mode 100644 index e526e6d2..00000000 --- a/src/auth0/management/types/connection_options_shopify.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_o_auth_2_common import ConnectionOptionsOAuth2Common - - -class ConnectionOptionsShopify(ConnectionOptionsOAuth2Common): - """ - Options for the 'shopify' connection - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_options_sms.py b/src/auth0/management/types/connection_options_sms.py deleted file mode 100644 index 751fab31..00000000 --- a/src/auth0/management/types/connection_options_sms.py +++ /dev/null @@ -1,61 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from ..core.serialization import FieldMetadata -from .connection_disable_signup_sms import ConnectionDisableSignupSms -from .connection_forward_req_info_sms import ConnectionForwardReqInfoSms -from .connection_from_sms import ConnectionFromSms -from .connection_gateway_authentication_sms import ConnectionGatewayAuthenticationSms -from .connection_gateway_url_sms import ConnectionGatewayUrlSms -from .connection_messaging_service_sid_sms import ConnectionMessagingServiceSidSms -from .connection_options_common import ConnectionOptionsCommon -from .connection_provider_sms import ConnectionProviderSms -from .connection_template_sms import ConnectionTemplateSms -from .connection_template_syntax_enum_sms import ConnectionTemplateSyntaxEnumSms -from .connection_totp_sms import ConnectionTotpSms -from .connection_twilio_sid_sms import ConnectionTwilioSidSms -from .connection_twilio_token_sms import ConnectionTwilioTokenSms - - -class ConnectionOptionsSms(ConnectionOptionsCommon): - """ - Options for the 'sms' connection - """ - - brute_force_protection: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether brute force protection is enabled - """ - - disable_signup: typing.Optional[ConnectionDisableSignupSms] = None - forward_req_info: typing.Optional[ConnectionForwardReqInfoSms] = None - from_: typing_extensions.Annotated[ - typing.Optional[ConnectionFromSms], FieldMetadata(alias="from"), pydantic.Field(alias="from") - ] = None - gateway_authentication: typing.Optional[ConnectionGatewayAuthenticationSms] = None - gateway_url: typing.Optional[ConnectionGatewayUrlSms] = None - messaging_service_sid: typing.Optional[ConnectionMessagingServiceSidSms] = None - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Connection name - """ - - provider: typing.Optional[ConnectionProviderSms] = None - syntax: typing.Optional[ConnectionTemplateSyntaxEnumSms] = None - template: typing.Optional[ConnectionTemplateSms] = None - totp: typing.Optional[ConnectionTotpSms] = None - twilio_sid: typing.Optional[ConnectionTwilioSidSms] = None - twilio_token: typing.Optional[ConnectionTwilioTokenSms] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_options_soundcloud.py b/src/auth0/management/types/connection_options_soundcloud.py deleted file mode 100644 index 583cd266..00000000 --- a/src/auth0/management/types/connection_options_soundcloud.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_o_auth_2_common import ConnectionOptionsOAuth2Common - - -class ConnectionOptionsSoundcloud(ConnectionOptionsOAuth2Common): - """ - Options for the 'soundcloud' connection - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_options_thirty_seven_signals.py b/src/auth0/management/types/connection_options_thirty_seven_signals.py deleted file mode 100644 index fdfbef84..00000000 --- a/src/auth0/management/types/connection_options_thirty_seven_signals.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_o_auth_2_common import ConnectionOptionsOAuth2Common - - -class ConnectionOptionsThirtySevenSignals(ConnectionOptionsOAuth2Common): - """ - Options for the 'thirtysevensignals' connection - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_options_twitter.py b/src/auth0/management/types/connection_options_twitter.py deleted file mode 100644 index 608364c6..00000000 --- a/src/auth0/management/types/connection_options_twitter.py +++ /dev/null @@ -1,56 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_client_id_twitter import ConnectionOptionsClientIdTwitter -from .connection_options_client_secret_twitter import ConnectionOptionsClientSecretTwitter -from .connection_options_common import ConnectionOptionsCommon -from .connection_options_protocol_enum_twitter import ConnectionOptionsProtocolEnumTwitter -from .connection_options_scope_twitter import ConnectionOptionsScopeTwitter -from .connection_scope_array import ConnectionScopeArray -from .connection_set_user_root_attributes_enum import ConnectionSetUserRootAttributesEnum -from .connection_upstream_params import ConnectionUpstreamParams - - -class ConnectionOptionsTwitter(ConnectionOptionsCommon): - """ - Options for the 'twitter' connection - """ - - client_id: typing.Optional[ConnectionOptionsClientIdTwitter] = None - client_secret: typing.Optional[ConnectionOptionsClientSecretTwitter] = None - freeform_scopes: typing.Optional[ConnectionScopeArray] = None - protocol: typing.Optional[ConnectionOptionsProtocolEnumTwitter] = None - scope: typing.Optional[ConnectionOptionsScopeTwitter] = None - set_user_root_attributes: typing.Optional[ConnectionSetUserRootAttributesEnum] = None - upstream_params: typing.Optional[ConnectionUpstreamParams] = None - offline_access: typing.Optional[bool] = pydantic.Field(default=None) - """ - Request long-lived refresh tokens so your app can act on behalf of users even when they’re not actively signed in. Typical Twitter use case: keeping a background service synced without forcing users to reauthorize every session. - """ - - profile: typing.Optional[bool] = pydantic.Field(default=None) - """ - Pull account profile metadata such as display name, bio, location, and URL so downstream apps can prefill or personalize user experiences. - """ - - tweet_read: typing.Optional[bool] = pydantic.Field(default=None) - """ - Allow the application to read a user’s public and protected Tweets—required for timelines, analytics, or moderation workflows. - """ - - users_read: typing.Optional[bool] = pydantic.Field(default=None) - """ - Read non-Tweet user information (e.g., followers/following, account settings) to power relationship graphs or audience insights. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_options_untappd.py b/src/auth0/management/types/connection_options_untappd.py deleted file mode 100644 index b1e0b6c9..00000000 --- a/src/auth0/management/types/connection_options_untappd.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_o_auth_2_common import ConnectionOptionsOAuth2Common - - -class ConnectionOptionsUntappd(ConnectionOptionsOAuth2Common): - """ - Options for the 'untappd' connection - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_options_vkontakte.py b/src/auth0/management/types/connection_options_vkontakte.py deleted file mode 100644 index cab2e689..00000000 --- a/src/auth0/management/types/connection_options_vkontakte.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_o_auth_2_common import ConnectionOptionsOAuth2Common - - -class ConnectionOptionsVkontakte(ConnectionOptionsOAuth2Common): - """ - Options for the 'vkontakte' connection - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_options_weibo.py b/src/auth0/management/types/connection_options_weibo.py deleted file mode 100644 index 049d8c9d..00000000 --- a/src/auth0/management/types/connection_options_weibo.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_o_auth_2_common import ConnectionOptionsOAuth2Common - - -class ConnectionOptionsWeibo(ConnectionOptionsOAuth2Common): - """ - Options for the 'weibo' connection - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_options_windows_live.py b/src/auth0/management/types/connection_options_windows_live.py deleted file mode 100644 index 99289768..00000000 --- a/src/auth0/management/types/connection_options_windows_live.py +++ /dev/null @@ -1,326 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_client_id_windows_live import ConnectionClientIdWindowsLive -from .connection_client_secret_windows_live import ConnectionClientSecretWindowsLive -from .connection_freeform_scopes_windows_live import ConnectionFreeformScopesWindowsLive -from .connection_options_common import ConnectionOptionsCommon -from .connection_scope_array_windows_live import ConnectionScopeArrayWindowsLive -from .connection_set_user_root_attributes_enum import ConnectionSetUserRootAttributesEnum -from .connection_strategy_version_enum_windows_live import ConnectionStrategyVersionEnumWindowsLive -from .connection_upstream_params import ConnectionUpstreamParams - - -class ConnectionOptionsWindowsLive(ConnectionOptionsCommon): - """ - Options for the 'windowslive' connection - """ - - client_id: typing.Optional[ConnectionClientIdWindowsLive] = None - client_secret: typing.Optional[ConnectionClientSecretWindowsLive] = None - freeform_scopes: typing.Optional[ConnectionFreeformScopesWindowsLive] = None - scope: typing.Optional[ConnectionScopeArrayWindowsLive] = None - set_user_root_attributes: typing.Optional[ConnectionSetUserRootAttributesEnum] = None - strategy_version: typing.Optional[ConnectionStrategyVersionEnumWindowsLive] = None - upstream_params: typing.Optional[ConnectionUpstreamParams] = None - applications: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, requests access to user's applications. - """ - - applications_create: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, requests permission to create applications. - """ - - basic: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, requests read access to user's basic profile information and contacts list. - """ - - birthday: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, requests read access to user's birth day, month, and year. - """ - - calendars: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, requests read access to user's calendars and events. - """ - - calendars_update: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, requests read and write access to user's calendars and events. - """ - - contacts_birthday: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, requests read access to contacts' birth day and birth month. - """ - - contacts_calendars: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, requests read access to user's calendars and shared calendars/events from others. - """ - - contacts_create: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, requests permission to create new contacts in user's address book. - """ - - contacts_photos: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, requests read access to user's and shared albums, photos, videos, and audio. - """ - - contacts_skydrive: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, requests read access to OneDrive files shared by other users. - """ - - directory_accessasuser_all: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, allows the app to have the same access to information in the directory as the signed-in user. - """ - - directory_read_all: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, allows the app to read data in your organization's directory, such as users, groups, and apps. - """ - - directory_readwrite_all: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, allows the app to read and write data in your organization's directory, such as users and groups. - """ - - emails: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, requests read access to personal, preferred, and business email addresses. - """ - - events_create: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, requests permission to create events on user's default calendar. - """ - - graph_calendars: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, requests permission to read the user's calendars. - """ - - graph_calendars_update: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, requests permission to read and write the user's calendars. - """ - - graph_contacts: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, requests permission to read the user's contacts. - """ - - graph_contacts_update: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, requests permission to read and write the user's contacts. - """ - - graph_device: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, requests permission to read the user's device information. - """ - - graph_device_command: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, requests permission to send commands to the user's devices. - """ - - graph_emails: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, requests permission to read the user's emails. - """ - - graph_emails_update: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, requests permission to read and write the user's emails. - """ - - graph_files: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, requests permission to read the user's files. - """ - - graph_files_all: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, requests permission to read all files the user has access to. - """ - - graph_files_all_update: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, requests permission to read and write all files the user has access to. - """ - - graph_files_update: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, requests permission to read and write the user's files. - """ - - graph_notes: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, requests permission to read the user's OneNote notebooks. - """ - - graph_notes_create: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, requests permission to create new OneNote notebooks. - """ - - graph_notes_update: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, requests permission to read and write the user's OneNote notebooks. - """ - - graph_tasks: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, requests permission to read the user's tasks. - """ - - graph_tasks_update: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, requests permission to read and write the user's tasks. - """ - - graph_user: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, requests permission to read the user's profile. - """ - - graph_user_activity: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, requests permission to read the user's activity history. - """ - - graph_user_update: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, requests permission to read and write the user's profile. - """ - - group_read_all: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, allows the app to read all group properties and memberships. - """ - - group_readwrite_all: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, allows the app to create groups, read all group properties and memberships, update group properties and memberships, and delete groups. - """ - - mail_readwrite_all: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, allows the app to create, read, update, and delete all mail in all mailboxes. - """ - - mail_send: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, allows the app to send mail as users in the organization. - """ - - messenger: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, requests access to user's Windows Live Messenger data. - """ - - offline_access: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, requests a refresh token for offline access. - """ - - phone_numbers: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, requests read access to personal, business, and mobile phone numbers. - """ - - photos: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, requests read access to user's photos, videos, audio, and albums. - """ - - postal_addresses: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, requests read access to personal and business postal addresses. - """ - - rolemanagement_read_all: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, allows the app to read the role-based access control (RBAC) settings for your company's directory. - """ - - rolemanagement_readwrite_directory: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, allows the app to read and write the role-based access control (RBAC) settings for your company's directory. - """ - - share: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, requests permission to share content with other users. - """ - - signin: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, provides single sign-in behavior for users already signed into their Microsoft account. - """ - - sites_read_all: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, allows the app to read documents and list items in all SharePoint site collections. - """ - - sites_readwrite_all: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, allows the app to create, read, update, and delete documents and list items in all SharePoint site collections. - """ - - skydrive: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, requests read access to user's files stored on OneDrive. - """ - - skydrive_update: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, requests read and write access to user's OneDrive files. - """ - - team_readbasic_all: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, allows the app to read the names and descriptions of all teams. - """ - - team_readwrite_all: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, allows the app to read and write all teams' information and change team membership. - """ - - user_read_all: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, allows the app to read the full set of profile properties, reports, and managers of all users. - """ - - user_readbasic_all: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, allows the app to read a basic set of profile properties of all users in the directory. - """ - - work_profile: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, requests read access to employer and work position information. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_options_wordpress.py b/src/auth0/management/types/connection_options_wordpress.py deleted file mode 100644 index f83eb438..00000000 --- a/src/auth0/management/types/connection_options_wordpress.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_o_auth_2_common import ConnectionOptionsOAuth2Common - - -class ConnectionOptionsWordpress(ConnectionOptionsOAuth2Common): - """ - Options for the 'wordpress' connection - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_options_yahoo.py b/src/auth0/management/types/connection_options_yahoo.py deleted file mode 100644 index 264a0c8b..00000000 --- a/src/auth0/management/types/connection_options_yahoo.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_o_auth_2_common import ConnectionOptionsOAuth2Common - - -class ConnectionOptionsYahoo(ConnectionOptionsOAuth2Common): - """ - Options for the 'yahoo' connection - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_options_yandex.py b/src/auth0/management/types/connection_options_yandex.py deleted file mode 100644 index 78c6adeb..00000000 --- a/src/auth0/management/types/connection_options_yandex.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_o_auth_2_common import ConnectionOptionsOAuth2Common - - -class ConnectionOptionsYandex(ConnectionOptionsOAuth2Common): - """ - Options for the 'yandex' connection - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_otp_channel_settings.py b/src/auth0/management/types/connection_otp_channel_settings.py deleted file mode 100644 index 591f10de..00000000 --- a/src/auth0/management/types/connection_otp_channel_settings.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class ConnectionOtpChannelSettings(UniversalBaseModel): - """ - OTP settings for a delivery channel. - """ - - otp_length: typing.Optional[int] = pydantic.Field(default=None) - """ - Number of digits in the generated one-time password. - """ - - otp_expiry: typing.Optional[int] = pydantic.Field(default=None) - """ - Number of seconds before the one-time password expires. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_otp_settings.py b/src/auth0/management/types/connection_otp_settings.py deleted file mode 100644 index 613b8da5..00000000 --- a/src/auth0/management/types/connection_otp_settings.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .connection_otp_channel_settings import ConnectionOtpChannelSettings - - -class ConnectionOtpSettings(UniversalBaseModel): - """ - One-time password settings, configurable per delivery channel. - """ - - email: typing.Optional[ConnectionOtpChannelSettings] = None - phone: typing.Optional[ConnectionOtpChannelSettings] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_passkey_authentication_method.py b/src/auth0/management/types/connection_passkey_authentication_method.py deleted file mode 100644 index 54bd271a..00000000 --- a/src/auth0/management/types/connection_passkey_authentication_method.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .connection_signup_behavior_enum import ConnectionSignupBehaviorEnum - - -class ConnectionPasskeyAuthenticationMethod(UniversalBaseModel): - """ - Passkey authentication enablement - """ - - enabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - Determines whether passkeys are enabled - """ - - signup_behavior: typing.Optional[ConnectionSignupBehaviorEnum] = pydantic.Field(default=None) - """ - Specifies the signup behavior for passkey authentication - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_passkey_challenge_ui_enum.py b/src/auth0/management/types/connection_passkey_challenge_ui_enum.py deleted file mode 100644 index 508c980e..00000000 --- a/src/auth0/management/types/connection_passkey_challenge_ui_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionPasskeyChallengeUiEnum = typing.Union[typing.Literal["both", "autofill", "button"], typing.Any] diff --git a/src/auth0/management/types/connection_passkey_options.py b/src/auth0/management/types/connection_passkey_options.py deleted file mode 100644 index 93c07d01..00000000 --- a/src/auth0/management/types/connection_passkey_options.py +++ /dev/null @@ -1,33 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .connection_passkey_challenge_ui_enum import ConnectionPasskeyChallengeUiEnum - - -class ConnectionPasskeyOptions(UniversalBaseModel): - """ - Options for the passkey authentication method - """ - - challenge_ui: typing.Optional[ConnectionPasskeyChallengeUiEnum] = None - progressive_enrollment_enabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables or disables progressive enrollment of passkeys for the connection. - """ - - local_enrollment_enabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables or disables enrollment prompt for local passkey when user authenticates using a cross-device passkey for the connection. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_password_authentication_method.py b/src/auth0/management/types/connection_password_authentication_method.py deleted file mode 100644 index aae89a03..00000000 --- a/src/auth0/management/types/connection_password_authentication_method.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .connection_api_behavior_enum import ConnectionApiBehaviorEnum -from .connection_signup_behavior_enum import ConnectionSignupBehaviorEnum - - -class ConnectionPasswordAuthenticationMethod(UniversalBaseModel): - """ - Password authentication enablement - """ - - enabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - Determines whether passwords are enabled - """ - - api_behavior: typing.Optional[ConnectionApiBehaviorEnum] = None - signup_behavior: typing.Optional[ConnectionSignupBehaviorEnum] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_password_complexity_options.py b/src/auth0/management/types/connection_password_complexity_options.py deleted file mode 100644 index 100a40f6..00000000 --- a/src/auth0/management/types/connection_password_complexity_options.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class ConnectionPasswordComplexityOptions(UniversalBaseModel): - """ - Password complexity options - """ - - min_length: typing.Optional[int] = pydantic.Field(default=None) - """ - Minimum password length - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_password_dictionary_options.py b/src/auth0/management/types/connection_password_dictionary_options.py deleted file mode 100644 index 60afe31a..00000000 --- a/src/auth0/management/types/connection_password_dictionary_options.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class ConnectionPasswordDictionaryOptions(UniversalBaseModel): - """ - Options for password dictionary policy - """ - - enable: bool - dictionary: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Custom Password Dictionary. An array of up to 200 entries. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_password_history_options.py b/src/auth0/management/types/connection_password_history_options.py deleted file mode 100644 index 50c833e9..00000000 --- a/src/auth0/management/types/connection_password_history_options.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class ConnectionPasswordHistoryOptions(UniversalBaseModel): - """ - Options for password history policy - """ - - enable: bool - size: typing.Optional[int] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_password_no_personal_info_options.py b/src/auth0/management/types/connection_password_no_personal_info_options.py deleted file mode 100644 index 2a489c3d..00000000 --- a/src/auth0/management/types/connection_password_no_personal_info_options.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class ConnectionPasswordNoPersonalInfoOptions(UniversalBaseModel): - """ - Options for personal info in passwords policy - """ - - enable: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_password_options.py b/src/auth0/management/types/connection_password_options.py deleted file mode 100644 index 9152ae0a..00000000 --- a/src/auth0/management/types/connection_password_options.py +++ /dev/null @@ -1,30 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .connection_password_options_complexity import ConnectionPasswordOptionsComplexity -from .connection_password_options_dictionary import ConnectionPasswordOptionsDictionary -from .connection_password_options_history import ConnectionPasswordOptionsHistory -from .connection_password_options_profile_data import ConnectionPasswordOptionsProfileData - - -class ConnectionPasswordOptions(UniversalBaseModel): - """ - Password policy options for flexible password policy configuration - """ - - complexity: typing.Optional[ConnectionPasswordOptionsComplexity] = None - dictionary: typing.Optional[ConnectionPasswordOptionsDictionary] = None - history: typing.Optional[ConnectionPasswordOptionsHistory] = None - profile_data: typing.Optional[ConnectionPasswordOptionsProfileData] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_password_options_complexity.py b/src/auth0/management/types/connection_password_options_complexity.py deleted file mode 100644 index a3e36627..00000000 --- a/src/auth0/management/types/connection_password_options_complexity.py +++ /dev/null @@ -1,41 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .password_character_type_enum import PasswordCharacterTypeEnum -from .password_character_type_rule_policy_enum import PasswordCharacterTypeRulePolicyEnum -from .password_identical_characters_policy_enum import PasswordIdenticalCharactersPolicyEnum -from .password_max_length_exceeded_policy_enum import PasswordMaxLengthExceededPolicyEnum -from .password_sequential_characters_policy_enum import PasswordSequentialCharactersPolicyEnum - - -class ConnectionPasswordOptionsComplexity(UniversalBaseModel): - """ - Password complexity requirements configuration - """ - - min_length: typing.Optional[int] = pydantic.Field(default=None) - """ - Minimum password length required (1-72 characters) - """ - - character_types: typing.Optional[typing.List[PasswordCharacterTypeEnum]] = pydantic.Field(default=None) - """ - Required character types that must be present in passwords. Valid options: uppercase, lowercase, number, special - """ - - character_type_rule: typing.Optional[PasswordCharacterTypeRulePolicyEnum] = None - identical_characters: typing.Optional[PasswordIdenticalCharactersPolicyEnum] = None - sequential_characters: typing.Optional[PasswordSequentialCharactersPolicyEnum] = None - max_length_exceeded: typing.Optional[PasswordMaxLengthExceededPolicyEnum] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_password_options_dictionary.py b/src/auth0/management/types/connection_password_options_dictionary.py deleted file mode 100644 index b3271bc8..00000000 --- a/src/auth0/management/types/connection_password_options_dictionary.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .password_default_dictionaries_enum import PasswordDefaultDictionariesEnum -from .password_dictionary_match_type_enum import PasswordDictionaryMatchTypeEnum - - -class ConnectionPasswordOptionsDictionary(UniversalBaseModel): - """ - Dictionary-based password restriction policy to prevent common passwords - """ - - active: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables dictionary checking to prevent use of common passwords and custom blocked words - """ - - custom: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Array of custom words to block in passwords - """ - - match_type: typing.Optional[PasswordDictionaryMatchTypeEnum] = None - default: typing.Optional[PasswordDefaultDictionariesEnum] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_password_options_history.py b/src/auth0/management/types/connection_password_options_history.py deleted file mode 100644 index c6bbf31b..00000000 --- a/src/auth0/management/types/connection_password_options_history.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class ConnectionPasswordOptionsHistory(UniversalBaseModel): - """ - Password history policy configuration to prevent password reuse - """ - - active: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables password history checking to prevent users from reusing recent passwords - """ - - size: typing.Optional[int] = pydantic.Field(default=None) - """ - Number of previous passwords to remember and prevent reuse (1-24) - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_password_options_profile_data.py b/src/auth0/management/types/connection_password_options_profile_data.py deleted file mode 100644 index d69561fb..00000000 --- a/src/auth0/management/types/connection_password_options_profile_data.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class ConnectionPasswordOptionsProfileData(UniversalBaseModel): - """ - Personal information restriction policy to prevent use of profile data in passwords - """ - - active: typing.Optional[bool] = pydantic.Field(default=None) - """ - Prevents users from including profile data (like name, email) in their passwords - """ - - blocked_fields: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Blocked profile fields. An array of up to 12 entries. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_password_policy_enum.py b/src/auth0/management/types/connection_password_policy_enum.py deleted file mode 100644 index 45bd55bf..00000000 --- a/src/auth0/management/types/connection_password_policy_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionPasswordPolicyEnum = typing.Union[typing.Literal["none", "low", "fair", "good", "excellent"], typing.Any] diff --git a/src/auth0/management/types/connection_phone_otp_authentication_method.py b/src/auth0/management/types/connection_phone_otp_authentication_method.py deleted file mode 100644 index 00e6f7c4..00000000 --- a/src/auth0/management/types/connection_phone_otp_authentication_method.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class ConnectionPhoneOtpAuthenticationMethod(UniversalBaseModel): - """ - Phone OTP authentication enablement - """ - - enabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - Determines whether phone OTP is enabled - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_ping_federate_base_url.py b/src/auth0/management/types/connection_ping_federate_base_url.py deleted file mode 100644 index e1b39e84..00000000 --- a/src/auth0/management/types/connection_ping_federate_base_url.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from .connection_ping_federate_base_url_ping_federate import ConnectionPingFederateBaseUrlPingFederate - -ConnectionPingFederateBaseUrl = ConnectionPingFederateBaseUrlPingFederate -""" -URL provided by PingFederate which returns information used for creating the connection -""" diff --git a/src/auth0/management/types/connection_ping_federate_base_url_ping_federate.py b/src/auth0/management/types/connection_ping_federate_base_url_ping_federate.py deleted file mode 100644 index 5ad7496d..00000000 --- a/src/auth0/management/types/connection_ping_federate_base_url_ping_federate.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionPingFederateBaseUrlPingFederate = str -""" -PingFederate base URL constrained to HTTP/HTTPS with length bounds -""" diff --git a/src/auth0/management/types/connection_profile.py b/src/auth0/management/types/connection_profile.py deleted file mode 100644 index 14d953fb..00000000 --- a/src/auth0/management/types/connection_profile.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .connection_name_prefix_template import ConnectionNamePrefixTemplate -from .connection_profile_config import ConnectionProfileConfig -from .connection_profile_cross_app_access_resource_app import ConnectionProfileCrossAppAccessResourceApp -from .connection_profile_enabled_features import ConnectionProfileEnabledFeatures -from .connection_profile_id import ConnectionProfileId -from .connection_profile_name import ConnectionProfileName -from .connection_profile_organization import ConnectionProfileOrganization -from .connection_profile_provisioning import ConnectionProfileProvisioning -from .connection_profile_strategy_overrides import ConnectionProfileStrategyOverrides - - -class ConnectionProfile(UniversalBaseModel): - id: typing.Optional[ConnectionProfileId] = None - name: typing.Optional[ConnectionProfileName] = None - organization: typing.Optional[ConnectionProfileOrganization] = None - connection_name_prefix_template: typing.Optional[ConnectionNamePrefixTemplate] = None - enabled_features: typing.Optional[ConnectionProfileEnabledFeatures] = None - connection_config: typing.Optional[ConnectionProfileConfig] = None - strategy_overrides: typing.Optional[ConnectionProfileStrategyOverrides] = None - provisioning: typing.Optional[ConnectionProfileProvisioning] = None - cross_app_access_resource_app: typing.Optional[ConnectionProfileCrossAppAccessResourceApp] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_profile_bitbucket.py b/src/auth0/management/types/connection_profile_bitbucket.py deleted file mode 100644 index 994d9235..00000000 --- a/src/auth0/management/types/connection_profile_bitbucket.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionProfileBitbucket = bool -""" -`profile` is a boolean that controls whether basic profile information (name, picture, email) is requested from Bitbucket during authentication. When `true`, the connection requests access to the user's basic profile data. -""" diff --git a/src/auth0/management/types/connection_profile_config.py b/src/auth0/management/types/connection_profile_config.py deleted file mode 100644 index 852cb354..00000000 --- a/src/auth0/management/types/connection_profile_config.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class ConnectionProfileConfig(UniversalBaseModel): - """ - Connection profile configuration. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_profile_cross_app_access_resource_app.py b/src/auth0/management/types/connection_profile_cross_app_access_resource_app.py deleted file mode 100644 index 99e1fb59..00000000 --- a/src/auth0/management/types/connection_profile_cross_app_access_resource_app.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .connection_profile_cross_app_access_resource_app_status import ConnectionProfileCrossAppAccessResourceAppStatus - - -class ConnectionProfileCrossAppAccessResourceApp(UniversalBaseModel): - """ - Controls whether organization admins may enable Cross App Access (XAA) on their Identity Providers. - """ - - status: ConnectionProfileCrossAppAccessResourceAppStatus - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_profile_cross_app_access_resource_app_status.py b/src/auth0/management/types/connection_profile_cross_app_access_resource_app_status.py deleted file mode 100644 index 786eb960..00000000 --- a/src/auth0/management/types/connection_profile_cross_app_access_resource_app_status.py +++ /dev/null @@ -1,30 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .connection_profile_cross_app_access_resource_app_status_allowed_values_enum import ( - ConnectionProfileCrossAppAccessResourceAppStatusAllowedValuesEnum, -) -from .connection_profile_cross_app_access_resource_app_status_default_value_enum import ( - ConnectionProfileCrossAppAccessResourceAppStatusDefaultValueEnum, -) - - -class ConnectionProfileCrossAppAccessResourceAppStatus(UniversalBaseModel): - """ - The Cross App Access resource app status configuration. - """ - - default_value: ConnectionProfileCrossAppAccessResourceAppStatusDefaultValueEnum - allowed_values: typing.Optional[ConnectionProfileCrossAppAccessResourceAppStatusAllowedValuesEnum] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_profile_cross_app_access_resource_app_status_allowed_values_enum.py b/src/auth0/management/types/connection_profile_cross_app_access_resource_app_status_allowed_values_enum.py deleted file mode 100644 index ca8eff62..00000000 --- a/src/auth0/management/types/connection_profile_cross_app_access_resource_app_status_allowed_values_enum.py +++ /dev/null @@ -1,14 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .connection_profile_cross_app_access_resource_app_status_value_enum import ( - ConnectionProfileCrossAppAccessResourceAppStatusValueEnum, -) - -ConnectionProfileCrossAppAccessResourceAppStatusAllowedValuesEnum = typing.List[ - ConnectionProfileCrossAppAccessResourceAppStatusValueEnum -] -""" -The allowed Cross App Access resource app status values. -""" diff --git a/src/auth0/management/types/connection_profile_cross_app_access_resource_app_status_default_value_enum.py b/src/auth0/management/types/connection_profile_cross_app_access_resource_app_status_default_value_enum.py deleted file mode 100644 index 74e7811c..00000000 --- a/src/auth0/management/types/connection_profile_cross_app_access_resource_app_status_default_value_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionProfileCrossAppAccessResourceAppStatusDefaultValueEnum = typing.Union[ - typing.Literal["enabled", "disabled"], typing.Any -] diff --git a/src/auth0/management/types/connection_profile_cross_app_access_resource_app_status_value_enum.py b/src/auth0/management/types/connection_profile_cross_app_access_resource_app_status_value_enum.py deleted file mode 100644 index 9bcf2f41..00000000 --- a/src/auth0/management/types/connection_profile_cross_app_access_resource_app_status_value_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionProfileCrossAppAccessResourceAppStatusValueEnum = typing.Union[ - typing.Literal["enabled", "disabled"], typing.Any -] diff --git a/src/auth0/management/types/connection_profile_enabled_features.py b/src/auth0/management/types/connection_profile_enabled_features.py deleted file mode 100644 index a361b9e1..00000000 --- a/src/auth0/management/types/connection_profile_enabled_features.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .enabled_features_enum import EnabledFeaturesEnum - -ConnectionProfileEnabledFeatures = typing.List[EnabledFeaturesEnum] -""" -Enabled features for the connection profile. -""" diff --git a/src/auth0/management/types/connection_profile_id.py b/src/auth0/management/types/connection_profile_id.py deleted file mode 100644 index 8e7f787b..00000000 --- a/src/auth0/management/types/connection_profile_id.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionProfileId = str -""" -Connection Profile identifier. -""" diff --git a/src/auth0/management/types/connection_profile_name.py b/src/auth0/management/types/connection_profile_name.py deleted file mode 100644 index 0dbe134a..00000000 --- a/src/auth0/management/types/connection_profile_name.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionProfileName = str -""" -The name of the connection profile. -""" diff --git a/src/auth0/management/types/connection_profile_organization.py b/src/auth0/management/types/connection_profile_organization.py deleted file mode 100644 index 8078cba4..00000000 --- a/src/auth0/management/types/connection_profile_organization.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .connection_profile_organization_assign_membership_on_login_enum import ( - ConnectionProfileOrganizationAssignMembershipOnLoginEnum, -) -from .connection_profile_organization_show_as_button_enum import ConnectionProfileOrganizationShowAsButtonEnum - - -class ConnectionProfileOrganization(UniversalBaseModel): - """ - The organization of the connection profile. - """ - - show_as_button: typing.Optional[ConnectionProfileOrganizationShowAsButtonEnum] = None - assign_membership_on_login: typing.Optional[ConnectionProfileOrganizationAssignMembershipOnLoginEnum] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_profile_organization_assign_membership_on_login_enum.py b/src/auth0/management/types/connection_profile_organization_assign_membership_on_login_enum.py deleted file mode 100644 index 250e190f..00000000 --- a/src/auth0/management/types/connection_profile_organization_assign_membership_on_login_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionProfileOrganizationAssignMembershipOnLoginEnum = typing.Union[ - typing.Literal["none", "optional", "required"], typing.Any -] diff --git a/src/auth0/management/types/connection_profile_organization_show_as_button_enum.py b/src/auth0/management/types/connection_profile_organization_show_as_button_enum.py deleted file mode 100644 index 9be3fb67..00000000 --- a/src/auth0/management/types/connection_profile_organization_show_as_button_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionProfileOrganizationShowAsButtonEnum = typing.Union[typing.Literal["none", "optional", "required"], typing.Any] diff --git a/src/auth0/management/types/connection_profile_provisioning.py b/src/auth0/management/types/connection_profile_provisioning.py deleted file mode 100644 index 0766f512..00000000 --- a/src/auth0/management/types/connection_profile_provisioning.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .connection_profile_provisioning_google_workspace import ConnectionProfileProvisioningGoogleWorkspace -from .connection_profile_provisioning_scim import ConnectionProfileProvisioningScim - - -class ConnectionProfileProvisioning(UniversalBaseModel): - """ - Provisioning settings for connections created from this profile. - """ - - scim: typing.Optional[ConnectionProfileProvisioningScim] = None - google_workspace: typing.Optional[ConnectionProfileProvisioningGoogleWorkspace] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_profile_provisioning_google_workspace.py b/src/auth0/management/types/connection_profile_provisioning_google_workspace.py deleted file mode 100644 index 9c079d4d..00000000 --- a/src/auth0/management/types/connection_profile_provisioning_google_workspace.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .connection_profile_provisioning_google_workspace_sync_users import ( - ConnectionProfileProvisioningGoogleWorkspaceSyncUsers, -) - - -class ConnectionProfileProvisioningGoogleWorkspace(UniversalBaseModel): - """ - Google Workspace provisioning settings. - """ - - sync_users: ConnectionProfileProvisioningGoogleWorkspaceSyncUsers - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_profile_provisioning_google_workspace_sync_users.py b/src/auth0/management/types/connection_profile_provisioning_google_workspace_sync_users.py deleted file mode 100644 index bf956297..00000000 --- a/src/auth0/management/types/connection_profile_provisioning_google_workspace_sync_users.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionProfileProvisioningGoogleWorkspaceSyncUsers = bool -""" -Whether the connection is authorized to run Google Workspace user provisioning. -""" diff --git a/src/auth0/management/types/connection_profile_provisioning_scim.py b/src/auth0/management/types/connection_profile_provisioning_scim.py deleted file mode 100644 index b586b08b..00000000 --- a/src/auth0/management/types/connection_profile_provisioning_scim.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .connection_profile_provisioning_scim_tokens import ConnectionProfileProvisioningScimTokens - - -class ConnectionProfileProvisioningScim(UniversalBaseModel): - """ - SCIM provisioning settings. - """ - - tokens: ConnectionProfileProvisioningScimTokens - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_profile_provisioning_scim_token_default_expiry.py b/src/auth0/management/types/connection_profile_provisioning_scim_token_default_expiry.py deleted file mode 100644 index 3a3edd76..00000000 --- a/src/auth0/management/types/connection_profile_provisioning_scim_token_default_expiry.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionProfileProvisioningScimTokenDefaultExpiry = typing.Optional[int] -""" -The default SCIM token expiry, in seconds. `null` means the token never expires by default. -""" diff --git a/src/auth0/management/types/connection_profile_provisioning_scim_token_max_allowed_expiry.py b/src/auth0/management/types/connection_profile_provisioning_scim_token_max_allowed_expiry.py deleted file mode 100644 index 2a994e88..00000000 --- a/src/auth0/management/types/connection_profile_provisioning_scim_token_max_allowed_expiry.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionProfileProvisioningScimTokenMaxAllowedExpiry = typing.Optional[int] -""" -The maximum SCIM token expiry, in seconds. `null` means there is no maximum. -""" diff --git a/src/auth0/management/types/connection_profile_provisioning_scim_token_scope_enum.py b/src/auth0/management/types/connection_profile_provisioning_scim_token_scope_enum.py deleted file mode 100644 index 698d3fd8..00000000 --- a/src/auth0/management/types/connection_profile_provisioning_scim_token_scope_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionProfileProvisioningScimTokenScopeEnum = typing.Union[ - typing.Literal["get:users", "post:users", "patch:users", "delete:users", "put:users"], typing.Any -] diff --git a/src/auth0/management/types/connection_profile_provisioning_scim_token_scopes.py b/src/auth0/management/types/connection_profile_provisioning_scim_token_scopes.py deleted file mode 100644 index bccfd280..00000000 --- a/src/auth0/management/types/connection_profile_provisioning_scim_token_scopes.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .connection_profile_provisioning_scim_token_scope_enum import ConnectionProfileProvisioningScimTokenScopeEnum - -ConnectionProfileProvisioningScimTokenScopes = typing.List[ConnectionProfileProvisioningScimTokenScopeEnum] -""" -The scopes granted to SCIM tokens. -""" diff --git a/src/auth0/management/types/connection_profile_provisioning_scim_tokens.py b/src/auth0/management/types/connection_profile_provisioning_scim_tokens.py deleted file mode 100644 index 881fed9a..00000000 --- a/src/auth0/management/types/connection_profile_provisioning_scim_tokens.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .connection_profile_provisioning_scim_token_default_expiry import ( - ConnectionProfileProvisioningScimTokenDefaultExpiry, -) -from .connection_profile_provisioning_scim_token_max_allowed_expiry import ( - ConnectionProfileProvisioningScimTokenMaxAllowedExpiry, -) -from .connection_profile_provisioning_scim_token_scopes import ConnectionProfileProvisioningScimTokenScopes - - -class ConnectionProfileProvisioningScimTokens(UniversalBaseModel): - """ - SCIM token settings for connections created from this profile. - """ - - scopes: ConnectionProfileProvisioningScimTokenScopes - default_expiry: typing.Optional[ConnectionProfileProvisioningScimTokenDefaultExpiry] = None - max_allowed_expiry: typing.Optional[ConnectionProfileProvisioningScimTokenMaxAllowedExpiry] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_profile_strategy_override.py b/src/auth0/management/types/connection_profile_strategy_override.py deleted file mode 100644 index b53366f8..00000000 --- a/src/auth0/management/types/connection_profile_strategy_override.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .connection_profile_strategy_overrides_connection_config import ConnectionProfileStrategyOverridesConnectionConfig -from .connection_profile_strategy_overrides_enabled_features import ConnectionProfileStrategyOverridesEnabledFeatures -from .connection_profile_strategy_overrides_provisioning import ConnectionProfileStrategyOverridesProvisioning - - -class ConnectionProfileStrategyOverride(UniversalBaseModel): - """ - Connection Profile Strategy Override - """ - - enabled_features: typing.Optional[ConnectionProfileStrategyOverridesEnabledFeatures] = None - connection_config: typing.Optional[ConnectionProfileStrategyOverridesConnectionConfig] = None - provisioning: typing.Optional[ConnectionProfileStrategyOverridesProvisioning] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_profile_strategy_overrides.py b/src/auth0/management/types/connection_profile_strategy_overrides.py deleted file mode 100644 index 0868977a..00000000 --- a/src/auth0/management/types/connection_profile_strategy_overrides.py +++ /dev/null @@ -1,37 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .connection_profile_strategy_override import ConnectionProfileStrategyOverride - - -class ConnectionProfileStrategyOverrides(UniversalBaseModel): - """ - Strategy-specific overrides for this attribute - """ - - pingfederate: typing.Optional[ConnectionProfileStrategyOverride] = None - ad: typing.Optional[ConnectionProfileStrategyOverride] = None - adfs: typing.Optional[ConnectionProfileStrategyOverride] = None - waad: typing.Optional[ConnectionProfileStrategyOverride] = None - google_apps: typing_extensions.Annotated[ - typing.Optional[ConnectionProfileStrategyOverride], - FieldMetadata(alias="google-apps"), - pydantic.Field(alias="google-apps"), - ] = None - okta: typing.Optional[ConnectionProfileStrategyOverride] = None - oidc: typing.Optional[ConnectionProfileStrategyOverride] = None - samlp: typing.Optional[ConnectionProfileStrategyOverride] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_profile_strategy_overrides_connection_config.py b/src/auth0/management/types/connection_profile_strategy_overrides_connection_config.py deleted file mode 100644 index 08f670c5..00000000 --- a/src/auth0/management/types/connection_profile_strategy_overrides_connection_config.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class ConnectionProfileStrategyOverridesConnectionConfig(UniversalBaseModel): - """ - Connection profile strategy overrides connection configuration. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_profile_strategy_overrides_enabled_features.py b/src/auth0/management/types/connection_profile_strategy_overrides_enabled_features.py deleted file mode 100644 index b249cc37..00000000 --- a/src/auth0/management/types/connection_profile_strategy_overrides_enabled_features.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .enabled_features_enum import EnabledFeaturesEnum - -ConnectionProfileStrategyOverridesEnabledFeatures = typing.List[EnabledFeaturesEnum] -""" -Enabled features for a connections profile strategy override. -""" diff --git a/src/auth0/management/types/connection_profile_strategy_overrides_provisioning.py b/src/auth0/management/types/connection_profile_strategy_overrides_provisioning.py deleted file mode 100644 index 54f070c1..00000000 --- a/src/auth0/management/types/connection_profile_strategy_overrides_provisioning.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .connection_profile_provisioning_google_workspace import ConnectionProfileProvisioningGoogleWorkspace -from .connection_profile_provisioning_scim import ConnectionProfileProvisioningScim - - -class ConnectionProfileStrategyOverridesProvisioning(UniversalBaseModel): - """ - Provisioning settings for a connection profile strategy override. - """ - - scim: typing.Optional[ConnectionProfileProvisioningScim] = None - google_workspace: typing.Optional[ConnectionProfileProvisioningGoogleWorkspace] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_profile_template.py b/src/auth0/management/types/connection_profile_template.py deleted file mode 100644 index 5a8d16bb..00000000 --- a/src/auth0/management/types/connection_profile_template.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .connection_name_prefix_template import ConnectionNamePrefixTemplate -from .connection_profile_config import ConnectionProfileConfig -from .connection_profile_enabled_features import ConnectionProfileEnabledFeatures -from .connection_profile_name import ConnectionProfileName -from .connection_profile_organization import ConnectionProfileOrganization -from .connection_profile_provisioning import ConnectionProfileProvisioning -from .connection_profile_strategy_overrides import ConnectionProfileStrategyOverrides - - -class ConnectionProfileTemplate(UniversalBaseModel): - """ - The structure of the template, which can be used as the payload for creating or updating a Connection Profile. - """ - - name: typing.Optional[ConnectionProfileName] = None - organization: typing.Optional[ConnectionProfileOrganization] = None - connection_name_prefix_template: typing.Optional[ConnectionNamePrefixTemplate] = None - enabled_features: typing.Optional[ConnectionProfileEnabledFeatures] = None - connection_config: typing.Optional[ConnectionProfileConfig] = None - strategy_overrides: typing.Optional[ConnectionProfileStrategyOverrides] = None - provisioning: typing.Optional[ConnectionProfileProvisioning] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_profile_template_item.py b/src/auth0/management/types/connection_profile_template_item.py deleted file mode 100644 index 8d19cb26..00000000 --- a/src/auth0/management/types/connection_profile_template_item.py +++ /dev/null @@ -1,30 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .connection_profile_template import ConnectionProfileTemplate - - -class ConnectionProfileTemplateItem(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - The id of the template. - """ - - display_name: typing.Optional[str] = pydantic.Field(default=None) - """ - The user-friendly name of the template displayed in the UI. - """ - - template: typing.Optional[ConnectionProfileTemplate] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_properties_options.py b/src/auth0/management/types/connection_properties_options.py deleted file mode 100644 index 6de1dc9e..00000000 --- a/src/auth0/management/types/connection_properties_options.py +++ /dev/null @@ -1,153 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .connection_assertion_decryption_settings import ConnectionAssertionDecryptionSettings -from .connection_attributes import ConnectionAttributes -from .connection_authentication_methods import ConnectionAuthenticationMethods -from .connection_custom_scripts import ConnectionCustomScripts -from .connection_dpop_signing_alg_enum import ConnectionDpopSigningAlgEnum -from .connection_enable_pushed_authorization_requests import ConnectionEnablePushedAuthorizationRequests -from .connection_gateway_authentication import ConnectionGatewayAuthentication -from .connection_id_token_session_expiry_supported import ConnectionIdTokenSessionExpirySupported -from .connection_id_token_signed_response_algs import ConnectionIdTokenSignedResponseAlgs -from .connection_identifier_precedence_enum import ConnectionIdentifierPrecedenceEnum -from .connection_otp_settings import ConnectionOtpSettings -from .connection_passkey_options import ConnectionPasskeyOptions -from .connection_password_complexity_options import ConnectionPasswordComplexityOptions -from .connection_password_dictionary_options import ConnectionPasswordDictionaryOptions -from .connection_password_history_options import ConnectionPasswordHistoryOptions -from .connection_password_no_personal_info_options import ConnectionPasswordNoPersonalInfoOptions -from .connection_password_options import ConnectionPasswordOptions -from .connection_password_policy_enum import ConnectionPasswordPolicyEnum -from .connection_pushed_authorization_request_endpoint import ConnectionPushedAuthorizationRequestEndpoint -from .connection_set_user_root_attributes_enum import ConnectionSetUserRootAttributesEnum -from .connection_thumbprints import ConnectionThumbprints -from .connection_thumbprints_sha_384 import ConnectionThumbprintsSha384 -from .connection_token_endpoint_auth_method_enum import ConnectionTokenEndpointAuthMethodEnum -from .connection_token_endpoint_auth_signing_alg_enum import ConnectionTokenEndpointAuthSigningAlgEnum -from .connection_token_endpoint_jwtca_aud_format_enum_oidc import ConnectionTokenEndpointJwtcaAudFormatEnumOidc -from .connection_upstream_params import ConnectionUpstreamParams -from .connection_use_oauth_spec_scope import ConnectionUseOauthSpecScope -from .connection_validation_options import ConnectionValidationOptions -from .connections_discovery_url import ConnectionsDiscoveryUrl -from .connections_oidc_metadata import ConnectionsOidcMetadata - - -class ConnectionPropertiesOptions(UniversalBaseModel): - """ - The connection's options (depend on the connection strategy) - """ - - validation: typing.Optional[ConnectionValidationOptions] = None - non_persistent_attrs: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) - """ - - precedence: typing.Optional[typing.List[ConnectionIdentifierPrecedenceEnum]] = pydantic.Field(default=None) - """ - Order of precedence for attribute types. If the property is not specified, the default precedence of attributes will be used. - """ - - attributes: typing.Optional[ConnectionAttributes] = None - enable_script_context: typing.Optional[bool] = pydantic.Field(default=None) - """ - Set to true to inject context into custom DB scripts (warning: cannot be disabled once enabled) - """ - - enabled_database_customization: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="enabledDatabaseCustomization"), - pydantic.Field(alias="enabledDatabaseCustomization", description="Set to true to use a legacy user store"), - ] = None - """ - Set to true to use a legacy user store - """ - - import_mode: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enable this if you have a legacy user store and you want to gradually migrate those users to the Auth0 user store - """ - - configuration: typing.Optional[typing.Dict[str, typing.Optional[str]]] = pydantic.Field(default=None) - """ - Stores encrypted string only configurations for connections - """ - - custom_scripts: typing_extensions.Annotated[ - typing.Optional[ConnectionCustomScripts], - FieldMetadata(alias="customScripts"), - pydantic.Field(alias="customScripts"), - ] = None - otp_settings: typing.Optional[ConnectionOtpSettings] = None - authentication_methods: typing.Optional[ConnectionAuthenticationMethods] = None - passkey_options: typing.Optional[ConnectionPasskeyOptions] = None - password_policy: typing_extensions.Annotated[ - typing.Optional[ConnectionPasswordPolicyEnum], - FieldMetadata(alias="passwordPolicy"), - pydantic.Field(alias="passwordPolicy"), - ] = None - password_complexity_options: typing.Optional[ConnectionPasswordComplexityOptions] = None - password_history: typing.Optional[ConnectionPasswordHistoryOptions] = None - password_no_personal_info: typing.Optional[ConnectionPasswordNoPersonalInfoOptions] = None - password_dictionary: typing.Optional[ConnectionPasswordDictionaryOptions] = None - api_enable_users: typing.Optional[bool] = None - api_enable_groups: typing.Optional[bool] = None - basic_profile: typing.Optional[bool] = None - ext_admin: typing.Optional[bool] = None - ext_is_suspended: typing.Optional[bool] = None - ext_agreed_terms: typing.Optional[bool] = None - ext_groups: typing.Optional[bool] = None - ext_assigned_plans: typing.Optional[bool] = None - ext_profile: typing.Optional[bool] = None - disable_self_service_change_password: typing.Optional[bool] = None - upstream_params: typing.Optional[ConnectionUpstreamParams] = None - set_user_root_attributes: typing.Optional[ConnectionSetUserRootAttributesEnum] = None - gateway_authentication: typing.Optional[ConnectionGatewayAuthentication] = None - password_options: typing.Optional[ConnectionPasswordOptions] = None - assertion_decryption_settings: typing.Optional[ConnectionAssertionDecryptionSettings] = None - id_token_signed_response_algs: typing.Optional[ConnectionIdTokenSignedResponseAlgs] = None - dpop_signing_alg: typing.Optional[ConnectionDpopSigningAlgEnum] = None - enable_pushed_authorization_requests: typing.Optional[ConnectionEnablePushedAuthorizationRequests] = None - pushed_authorization_request_endpoint: typing.Optional[ConnectionPushedAuthorizationRequestEndpoint] = None - token_endpoint_auth_method: typing.Optional[ConnectionTokenEndpointAuthMethodEnum] = None - token_endpoint_auth_signing_alg: typing.Optional[ConnectionTokenEndpointAuthSigningAlgEnum] = None - token_endpoint_jwtca_aud_format: typing.Optional[ConnectionTokenEndpointJwtcaAudFormatEnumOidc] = None - id_token_session_expiry_supported: typing.Optional[ConnectionIdTokenSessionExpirySupported] = None - use_oauth_spec_scope: typing_extensions.Annotated[ - typing.Optional[ConnectionUseOauthSpecScope], - FieldMetadata(alias="useOauthSpecScope"), - pydantic.Field(alias="useOauthSpecScope"), - ] = None - client_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The client ID registered with the identity provider - """ - - allowed_audiences: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Additional Google client IDs accepted as the `aud` (audience) of Google ID tokens, used by Google native login and Google Streamlined Linking. - """ - - discovery_url: typing.Optional[ConnectionsDiscoveryUrl] = None - oidc_metadata: typing.Optional[ConnectionsOidcMetadata] = None - thumbprints: typing.Optional[ConnectionThumbprints] = None - thumbprints_sha_384: typing_extensions.Annotated[ - typing.Optional[ConnectionThumbprintsSha384], - FieldMetadata(alias="thumbprints_sha384"), - pydantic.Field(alias="thumbprints_sha384"), - ] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_protocol_binding_enum_saml.py b/src/auth0/management/types/connection_protocol_binding_enum_saml.py deleted file mode 100644 index d2d7b8eb..00000000 --- a/src/auth0/management/types/connection_protocol_binding_enum_saml.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionProtocolBindingEnumSaml = typing.Union[ - typing.Literal[ - "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST", "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect" - ], - typing.Any, -] diff --git a/src/auth0/management/types/connection_protocol_binding_saml.py b/src/auth0/management/types/connection_protocol_binding_saml.py deleted file mode 100644 index 54043bef..00000000 --- a/src/auth0/management/types/connection_protocol_binding_saml.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from .connection_protocol_binding_enum_saml import ConnectionProtocolBindingEnumSaml - -ConnectionProtocolBindingSaml = ConnectionProtocolBindingEnumSaml -""" -SAML protocol binding mechanism for sending authentication requests to the identity provider. -""" diff --git a/src/auth0/management/types/connection_provider_enum_sms.py b/src/auth0/management/types/connection_provider_enum_sms.py deleted file mode 100644 index 9ff639f0..00000000 --- a/src/auth0/management/types/connection_provider_enum_sms.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionProviderEnumSms = typing.Union[typing.Literal["sms_gateway", "twilio"], typing.Any] diff --git a/src/auth0/management/types/connection_provider_sms.py b/src/auth0/management/types/connection_provider_sms.py deleted file mode 100644 index 1b39cbf4..00000000 --- a/src/auth0/management/types/connection_provider_sms.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from .connection_provider_enum_sms import ConnectionProviderEnumSms - -ConnectionProviderSms = ConnectionProviderEnumSms -""" -SMS provider. Set to 'sms_gateway' to use a custom SMS gateway instead of Twilio. -""" diff --git a/src/auth0/management/types/connection_provisioning_ticket_url.py b/src/auth0/management/types/connection_provisioning_ticket_url.py deleted file mode 100644 index 243cd9c8..00000000 --- a/src/auth0/management/types/connection_provisioning_ticket_url.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionProvisioningTicketUrl = str -""" -A ticket URL used for provisioning the connection -""" diff --git a/src/auth0/management/types/connection_purposes.py b/src/auth0/management/types/connection_purposes.py deleted file mode 100644 index 195c7b11..00000000 --- a/src/auth0/management/types/connection_purposes.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .connection_authentication_purpose import ConnectionAuthenticationPurpose -from .connection_connected_accounts_purpose import ConnectionConnectedAccountsPurpose - - -class ConnectionPurposes(UniversalBaseModel): - """ - Purposes for a connection - """ - - authentication: typing.Optional[ConnectionAuthenticationPurpose] = None - connected_accounts: typing.Optional[ConnectionConnectedAccountsPurpose] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_pushed_authorization_request_endpoint.py b/src/auth0/management/types/connection_pushed_authorization_request_endpoint.py deleted file mode 100644 index a10390f5..00000000 --- a/src/auth0/management/types/connection_pushed_authorization_request_endpoint.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionPushedAuthorizationRequestEndpoint = str -""" -URL of the identity provider's Pushed Authorization Request (PAR) endpoint, as per https://datatracker.ietf.org/doc/html/rfc9126. Must use HTTPS scheme. -""" diff --git a/src/auth0/management/types/connection_realm_fallback.py b/src/auth0/management/types/connection_realm_fallback.py deleted file mode 100644 index 73fc059a..00000000 --- a/src/auth0/management/types/connection_realm_fallback.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionRealmFallback = bool -""" -Indicates whether to use realm fallback. -""" diff --git a/src/auth0/management/types/connection_realms.py b/src/auth0/management/types/connection_realms.py deleted file mode 100644 index d79f0e8a..00000000 --- a/src/auth0/management/types/connection_realms.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionRealms = typing.List[str] -""" -Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. -""" diff --git a/src/auth0/management/types/connection_recipient_url_saml.py b/src/auth0/management/types/connection_recipient_url_saml.py deleted file mode 100644 index 5b57fa6f..00000000 --- a/src/auth0/management/types/connection_recipient_url_saml.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from .connection_https_url_with_http_fallback_255 import ConnectionHttpsUrlWithHttpFallback255 - -ConnectionRecipientUrlSaml = ConnectionHttpsUrlWithHttpFallback255 -""" -The URL where Auth0 will send SAML authentication requests (the Identity Provider's SSO URL). Must be a valid HTTPS URL. -""" diff --git a/src/auth0/management/types/connection_registration_endpoint.py b/src/auth0/management/types/connection_registration_endpoint.py deleted file mode 100644 index 0c7d189a..00000000 --- a/src/auth0/management/types/connection_registration_endpoint.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionRegistrationEndpoint = str -""" -URL of the OPs Dynamic Client Registration Endpoint. RECOMMENDED but not REQUIRED. https://openid.net/specs/openid-connect-discovery-1_0.html#OpenID.Registration -""" diff --git a/src/auth0/management/types/connection_request_object_encryption_alg_values_supported.py b/src/auth0/management/types/connection_request_object_encryption_alg_values_supported.py deleted file mode 100644 index 0bac3c33..00000000 --- a/src/auth0/management/types/connection_request_object_encryption_alg_values_supported.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionRequestObjectEncryptionAlgValuesSupported = typing.List[str] -""" -JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference. -""" diff --git a/src/auth0/management/types/connection_request_object_encryption_enc_values_supported.py b/src/auth0/management/types/connection_request_object_encryption_enc_values_supported.py deleted file mode 100644 index c7f65bee..00000000 --- a/src/auth0/management/types/connection_request_object_encryption_enc_values_supported.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionRequestObjectEncryptionEncValuesSupported = typing.List[str] -""" -JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference. -""" diff --git a/src/auth0/management/types/connection_request_object_signing_alg_values_supported.py b/src/auth0/management/types/connection_request_object_signing_alg_values_supported.py deleted file mode 100644 index e16b3775..00000000 --- a/src/auth0/management/types/connection_request_object_signing_alg_values_supported.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionRequestObjectSigningAlgValuesSupported = typing.List[str] -""" -JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for Request Objects, which are described in Section 6.1 of OpenID Connect Core 1.0 [OpenID.Core]. These algorithms are used both when the Request Object is passed by value (using the request parameter) and when it is passed by reference (using the request_uri parameter). Servers SHOULD support none and RS256. -""" diff --git a/src/auth0/management/types/connection_request_parameter_supported.py b/src/auth0/management/types/connection_request_parameter_supported.py deleted file mode 100644 index a309da56..00000000 --- a/src/auth0/management/types/connection_request_parameter_supported.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionRequestParameterSupported = bool -""" -Boolean value specifying whether the OP supports use of the request parameter, with true indicating support. If omitted, the default value is false. -""" diff --git a/src/auth0/management/types/connection_request_template_saml.py b/src/auth0/management/types/connection_request_template_saml.py deleted file mode 100644 index 57ac2814..00000000 --- a/src/auth0/management/types/connection_request_template_saml.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionRequestTemplateSaml = str -""" -Custom XML template for SAML authentication requests. Supports variable substitution using @@variableName@@ syntax. When not provided, uses default SAML AuthnRequest template. See https://auth0.com/docs/authenticate/protocols/saml/saml-sso-integrations/configure-auth0-saml-service-provider#customize-the-request-template -""" diff --git a/src/auth0/management/types/connection_request_token_urlo_auth_1.py b/src/auth0/management/types/connection_request_token_urlo_auth_1.py deleted file mode 100644 index 7d4e389c..00000000 --- a/src/auth0/management/types/connection_request_token_urlo_auth_1.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from .connection_https_url_with_http_fallback_255 import ConnectionHttpsUrlWithHttpFallback255 - -ConnectionRequestTokenUrloAuth1 = ConnectionHttpsUrlWithHttpFallback255 -""" -The URL of the OAuth 1.0a request-token endpoint. This endpoint is used to obtain a temporary request token during the OAuth 1.0a authentication flow. -""" diff --git a/src/auth0/management/types/connection_request_uri_parameter_supported.py b/src/auth0/management/types/connection_request_uri_parameter_supported.py deleted file mode 100644 index be441c4b..00000000 --- a/src/auth0/management/types/connection_request_uri_parameter_supported.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionRequestUriParameterSupported = bool -""" -Boolean value specifying whether the OP supports use of the request_uri parameter, with true indicating support. If omitted, the default value is false. -""" diff --git a/src/auth0/management/types/connection_require_pushed_authorization_requests.py b/src/auth0/management/types/connection_require_pushed_authorization_requests.py deleted file mode 100644 index 3377cf51..00000000 --- a/src/auth0/management/types/connection_require_pushed_authorization_requests.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionRequirePushedAuthorizationRequests = bool -""" -Boolean parameter indicating whether the identity provider requires Pushed Authorization Requests (PAR), as per https://datatracker.ietf.org/doc/html/rfc9126. Discovered from the identity provider's metadata; not used to decide whether the server performs PAR. -""" diff --git a/src/auth0/management/types/connection_require_request_uri_registration.py b/src/auth0/management/types/connection_require_request_uri_registration.py deleted file mode 100644 index 6b1fedf6..00000000 --- a/src/auth0/management/types/connection_require_request_uri_registration.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionRequireRequestUriRegistration = bool -""" -Boolean value specifying whether the OP requires use of the request_uri parameter. If omitted, the default value is false. -""" diff --git a/src/auth0/management/types/connection_requires_username.py b/src/auth0/management/types/connection_requires_username.py deleted file mode 100644 index f6ff429d..00000000 --- a/src/auth0/management/types/connection_requires_username.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionRequiresUsername = bool -""" -Indicates whether the user is required to provide a username in addition to an email address. -""" diff --git a/src/auth0/management/types/connection_response_common.py b/src/auth0/management/types/connection_response_common.py deleted file mode 100644 index 029db176..00000000 --- a/src/auth0/management/types/connection_response_common.py +++ /dev/null @@ -1,35 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .connection_display_name import ConnectionDisplayName -from .connection_id import ConnectionId -from .connection_is_domain_connection import ConnectionIsDomainConnection -from .connection_name import ConnectionName -from .connection_realms import ConnectionRealms -from .connections_metadata import ConnectionsMetadata - - -class ConnectionResponseCommon(UniversalBaseModel): - display_name: ConnectionDisplayName - id: ConnectionId - realms: typing.Optional[ConnectionRealms] = None - name: ConnectionName - enabled_clients: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. - """ - - is_domain_connection: typing.Optional[ConnectionIsDomainConnection] = None - metadata: typing.Optional[ConnectionsMetadata] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_response_content_ad.py b/src/auth0/management/types/connection_response_content_ad.py deleted file mode 100644 index b7cac791..00000000 --- a/src/auth0/management/types/connection_response_content_ad.py +++ /dev/null @@ -1,30 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_ad import ConnectionOptionsAd -from .connection_provisioning_ticket_url import ConnectionProvisioningTicketUrl -from .connection_purposes import ConnectionPurposes -from .connection_response_common import ConnectionResponseCommon -from .connection_response_content_ad_strategy import ConnectionResponseContentAdStrategy - - -class ConnectionResponseContentAd(ConnectionPurposes, ConnectionResponseCommon): - """ - Response for connections with strategy=ad - """ - - strategy: ConnectionResponseContentAdStrategy - options: typing.Optional[ConnectionOptionsAd] = None - provisioning_ticket_url: typing.Optional[ConnectionProvisioningTicketUrl] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_response_content_ad_strategy.py b/src/auth0/management/types/connection_response_content_ad_strategy.py deleted file mode 100644 index 6bfc58ca..00000000 --- a/src/auth0/management/types/connection_response_content_ad_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionResponseContentAdStrategy = typing.Union[typing.Literal["ad"], typing.Any] diff --git a/src/auth0/management/types/connection_response_content_adfs.py b/src/auth0/management/types/connection_response_content_adfs.py deleted file mode 100644 index e73cc704..00000000 --- a/src/auth0/management/types/connection_response_content_adfs.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_adfs import ConnectionOptionsAdfs -from .connection_provisioning_ticket_url import ConnectionProvisioningTicketUrl -from .connection_purposes import ConnectionPurposes -from .connection_response_common import ConnectionResponseCommon -from .connection_response_content_adfs_strategy import ConnectionResponseContentAdfsStrategy -from .connection_show_as_button import ConnectionShowAsButton - - -class ConnectionResponseContentAdfs(ConnectionPurposes, ConnectionResponseCommon): - """ - Response for connections with strategy=adfs - """ - - strategy: ConnectionResponseContentAdfsStrategy - options: typing.Optional[ConnectionOptionsAdfs] = None - provisioning_ticket_url: typing.Optional[ConnectionProvisioningTicketUrl] = None - show_as_button: typing.Optional[ConnectionShowAsButton] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_response_content_adfs_strategy.py b/src/auth0/management/types/connection_response_content_adfs_strategy.py deleted file mode 100644 index 600f8825..00000000 --- a/src/auth0/management/types/connection_response_content_adfs_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionResponseContentAdfsStrategy = typing.Union[typing.Literal["adfs"], typing.Any] diff --git a/src/auth0/management/types/connection_response_content_amazon.py b/src/auth0/management/types/connection_response_content_amazon.py deleted file mode 100644 index 95de2522..00000000 --- a/src/auth0/management/types/connection_response_content_amazon.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_amazon import ConnectionOptionsAmazon -from .connection_purposes import ConnectionPurposes -from .connection_response_common import ConnectionResponseCommon -from .connection_response_content_amazon_strategy import ConnectionResponseContentAmazonStrategy - - -class ConnectionResponseContentAmazon(ConnectionPurposes, ConnectionResponseCommon): - """ - Response for connections with strategy=amazon - """ - - strategy: ConnectionResponseContentAmazonStrategy - options: typing.Optional[ConnectionOptionsAmazon] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_response_content_amazon_strategy.py b/src/auth0/management/types/connection_response_content_amazon_strategy.py deleted file mode 100644 index 6a2a1037..00000000 --- a/src/auth0/management/types/connection_response_content_amazon_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionResponseContentAmazonStrategy = typing.Union[typing.Literal["amazon"], typing.Any] diff --git a/src/auth0/management/types/connection_response_content_apple.py b/src/auth0/management/types/connection_response_content_apple.py deleted file mode 100644 index 4236285e..00000000 --- a/src/auth0/management/types/connection_response_content_apple.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_apple import ConnectionOptionsApple -from .connection_purposes import ConnectionPurposes -from .connection_response_common import ConnectionResponseCommon -from .connection_response_content_apple_strategy import ConnectionResponseContentAppleStrategy - - -class ConnectionResponseContentApple(ConnectionPurposes, ConnectionResponseCommon): - """ - Response for connections with strategy=apple - """ - - strategy: ConnectionResponseContentAppleStrategy - options: typing.Optional[ConnectionOptionsApple] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_response_content_apple_strategy.py b/src/auth0/management/types/connection_response_content_apple_strategy.py deleted file mode 100644 index e4542cf4..00000000 --- a/src/auth0/management/types/connection_response_content_apple_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionResponseContentAppleStrategy = typing.Union[typing.Literal["apple"], typing.Any] diff --git a/src/auth0/management/types/connection_response_content_auth_0.py b/src/auth0/management/types/connection_response_content_auth_0.py deleted file mode 100644 index 1d0783b6..00000000 --- a/src/auth0/management/types/connection_response_content_auth_0.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_auth_0 import ConnectionOptionsAuth0 -from .connection_purposes import ConnectionPurposes -from .connection_response_common import ConnectionResponseCommon -from .connection_response_content_auth_0_strategy import ConnectionResponseContentAuth0Strategy - - -class ConnectionResponseContentAuth0(ConnectionPurposes, ConnectionResponseCommon): - """ - Response for connections with strategy=auth0 - """ - - strategy: ConnectionResponseContentAuth0Strategy - options: typing.Optional[ConnectionOptionsAuth0] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_response_content_auth_0_oidc.py b/src/auth0/management/types/connection_response_content_auth_0_oidc.py deleted file mode 100644 index cdd57f9e..00000000 --- a/src/auth0/management/types/connection_response_content_auth_0_oidc.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_auth_0_oidc import ConnectionOptionsAuth0Oidc -from .connection_purposes import ConnectionPurposes -from .connection_response_common import ConnectionResponseCommon -from .connection_response_content_auth_0_oidc_strategy import ConnectionResponseContentAuth0OidcStrategy - - -class ConnectionResponseContentAuth0Oidc(ConnectionPurposes, ConnectionResponseCommon): - """ - Response for connections with strategy=auth0-oidc - """ - - strategy: ConnectionResponseContentAuth0OidcStrategy - options: typing.Optional[ConnectionOptionsAuth0Oidc] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_response_content_auth_0_oidc_strategy.py b/src/auth0/management/types/connection_response_content_auth_0_oidc_strategy.py deleted file mode 100644 index a1cd70cd..00000000 --- a/src/auth0/management/types/connection_response_content_auth_0_oidc_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionResponseContentAuth0OidcStrategy = typing.Union[typing.Literal["auth0-oidc"], typing.Any] diff --git a/src/auth0/management/types/connection_response_content_auth_0_strategy.py b/src/auth0/management/types/connection_response_content_auth_0_strategy.py deleted file mode 100644 index cc57b6f7..00000000 --- a/src/auth0/management/types/connection_response_content_auth_0_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionResponseContentAuth0Strategy = typing.Union[typing.Literal["auth0"], typing.Any] diff --git a/src/auth0/management/types/connection_response_content_azure_ad.py b/src/auth0/management/types/connection_response_content_azure_ad.py deleted file mode 100644 index 8fd6fdc5..00000000 --- a/src/auth0/management/types/connection_response_content_azure_ad.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_azure_ad import ConnectionOptionsAzureAd -from .connection_provisioning_ticket_url import ConnectionProvisioningTicketUrl -from .connection_purposes import ConnectionPurposes -from .connection_response_common import ConnectionResponseCommon -from .connection_response_content_azure_ad_strategy import ConnectionResponseContentAzureAdStrategy -from .connection_show_as_button import ConnectionShowAsButton - - -class ConnectionResponseContentAzureAd(ConnectionPurposes, ConnectionResponseCommon): - """ - Response for connections with strategy=waad - """ - - strategy: ConnectionResponseContentAzureAdStrategy - options: typing.Optional[ConnectionOptionsAzureAd] = None - provisioning_ticket_url: typing.Optional[ConnectionProvisioningTicketUrl] = None - show_as_button: typing.Optional[ConnectionShowAsButton] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_response_content_azure_ad_strategy.py b/src/auth0/management/types/connection_response_content_azure_ad_strategy.py deleted file mode 100644 index 6fda3ca9..00000000 --- a/src/auth0/management/types/connection_response_content_azure_ad_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionResponseContentAzureAdStrategy = typing.Union[typing.Literal["waad"], typing.Any] diff --git a/src/auth0/management/types/connection_response_content_baidu.py b/src/auth0/management/types/connection_response_content_baidu.py deleted file mode 100644 index de3b736e..00000000 --- a/src/auth0/management/types/connection_response_content_baidu.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_baidu import ConnectionOptionsBaidu -from .connection_purposes import ConnectionPurposes -from .connection_response_common import ConnectionResponseCommon -from .connection_response_content_baidu_strategy import ConnectionResponseContentBaiduStrategy - - -class ConnectionResponseContentBaidu(ConnectionPurposes, ConnectionResponseCommon): - """ - Response for connections with strategy=baidu - """ - - strategy: ConnectionResponseContentBaiduStrategy - options: typing.Optional[ConnectionOptionsBaidu] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_response_content_baidu_strategy.py b/src/auth0/management/types/connection_response_content_baidu_strategy.py deleted file mode 100644 index f98121ee..00000000 --- a/src/auth0/management/types/connection_response_content_baidu_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionResponseContentBaiduStrategy = typing.Union[typing.Literal["baidu"], typing.Any] diff --git a/src/auth0/management/types/connection_response_content_bitbucket.py b/src/auth0/management/types/connection_response_content_bitbucket.py deleted file mode 100644 index 877956b9..00000000 --- a/src/auth0/management/types/connection_response_content_bitbucket.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_bitbucket import ConnectionOptionsBitbucket -from .connection_purposes import ConnectionPurposes -from .connection_response_common import ConnectionResponseCommon -from .connection_response_content_bitbucket_strategy import ConnectionResponseContentBitbucketStrategy - - -class ConnectionResponseContentBitbucket(ConnectionPurposes, ConnectionResponseCommon): - """ - Response for connections with strategy=bitbucket - """ - - strategy: ConnectionResponseContentBitbucketStrategy - options: typing.Optional[ConnectionOptionsBitbucket] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_response_content_bitbucket_strategy.py b/src/auth0/management/types/connection_response_content_bitbucket_strategy.py deleted file mode 100644 index 0ed2db7a..00000000 --- a/src/auth0/management/types/connection_response_content_bitbucket_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionResponseContentBitbucketStrategy = typing.Union[typing.Literal["bitbucket"], typing.Any] diff --git a/src/auth0/management/types/connection_response_content_bitly.py b/src/auth0/management/types/connection_response_content_bitly.py deleted file mode 100644 index bc10f47c..00000000 --- a/src/auth0/management/types/connection_response_content_bitly.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_bitly import ConnectionOptionsBitly -from .connection_purposes import ConnectionPurposes -from .connection_response_common import ConnectionResponseCommon -from .connection_response_content_bitly_strategy import ConnectionResponseContentBitlyStrategy - - -class ConnectionResponseContentBitly(ConnectionPurposes, ConnectionResponseCommon): - """ - Response for connections with strategy=bitly - """ - - strategy: ConnectionResponseContentBitlyStrategy - options: typing.Optional[ConnectionOptionsBitly] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_response_content_bitly_strategy.py b/src/auth0/management/types/connection_response_content_bitly_strategy.py deleted file mode 100644 index 6b430ecc..00000000 --- a/src/auth0/management/types/connection_response_content_bitly_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionResponseContentBitlyStrategy = typing.Union[typing.Literal["bitly"], typing.Any] diff --git a/src/auth0/management/types/connection_response_content_box.py b/src/auth0/management/types/connection_response_content_box.py deleted file mode 100644 index 56e8bbc7..00000000 --- a/src/auth0/management/types/connection_response_content_box.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_box import ConnectionOptionsBox -from .connection_purposes import ConnectionPurposes -from .connection_response_common import ConnectionResponseCommon -from .connection_response_content_box_strategy import ConnectionResponseContentBoxStrategy - - -class ConnectionResponseContentBox(ConnectionPurposes, ConnectionResponseCommon): - """ - Response for connections with strategy=box - """ - - strategy: ConnectionResponseContentBoxStrategy - options: typing.Optional[ConnectionOptionsBox] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_response_content_box_strategy.py b/src/auth0/management/types/connection_response_content_box_strategy.py deleted file mode 100644 index 0b5755bd..00000000 --- a/src/auth0/management/types/connection_response_content_box_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionResponseContentBoxStrategy = typing.Union[typing.Literal["box"], typing.Any] diff --git a/src/auth0/management/types/connection_response_content_custom.py b/src/auth0/management/types/connection_response_content_custom.py deleted file mode 100644 index b0cc0ecf..00000000 --- a/src/auth0/management/types/connection_response_content_custom.py +++ /dev/null @@ -1,30 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_custom import ConnectionOptionsCustom -from .connection_provisioning_ticket_url import ConnectionProvisioningTicketUrl -from .connection_purposes import ConnectionPurposes -from .connection_response_common import ConnectionResponseCommon -from .connection_response_content_custom_strategy import ConnectionResponseContentCustomStrategy - - -class ConnectionResponseContentCustom(ConnectionPurposes, ConnectionResponseCommon): - """ - Response for connections with strategy=custom - """ - - strategy: ConnectionResponseContentCustomStrategy - options: typing.Optional[ConnectionOptionsCustom] = None - provisioning_ticket_url: typing.Optional[ConnectionProvisioningTicketUrl] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_response_content_custom_strategy.py b/src/auth0/management/types/connection_response_content_custom_strategy.py deleted file mode 100644 index 182747bf..00000000 --- a/src/auth0/management/types/connection_response_content_custom_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionResponseContentCustomStrategy = typing.Union[typing.Literal["custom"], typing.Any] diff --git a/src/auth0/management/types/connection_response_content_daccount.py b/src/auth0/management/types/connection_response_content_daccount.py deleted file mode 100644 index 18ce3e02..00000000 --- a/src/auth0/management/types/connection_response_content_daccount.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_daccount import ConnectionOptionsDaccount -from .connection_purposes import ConnectionPurposes -from .connection_response_common import ConnectionResponseCommon -from .connection_response_content_daccount_strategy import ConnectionResponseContentDaccountStrategy - - -class ConnectionResponseContentDaccount(ConnectionPurposes, ConnectionResponseCommon): - """ - Response for connections with strategy=daccount - """ - - strategy: ConnectionResponseContentDaccountStrategy - options: typing.Optional[ConnectionOptionsDaccount] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_response_content_daccount_strategy.py b/src/auth0/management/types/connection_response_content_daccount_strategy.py deleted file mode 100644 index b1394d52..00000000 --- a/src/auth0/management/types/connection_response_content_daccount_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionResponseContentDaccountStrategy = typing.Union[typing.Literal["daccount"], typing.Any] diff --git a/src/auth0/management/types/connection_response_content_dropbox.py b/src/auth0/management/types/connection_response_content_dropbox.py deleted file mode 100644 index 4f72ce0b..00000000 --- a/src/auth0/management/types/connection_response_content_dropbox.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_dropbox import ConnectionOptionsDropbox -from .connection_purposes import ConnectionPurposes -from .connection_response_common import ConnectionResponseCommon -from .connection_response_content_dropbox_strategy import ConnectionResponseContentDropboxStrategy - - -class ConnectionResponseContentDropbox(ConnectionPurposes, ConnectionResponseCommon): - """ - Response for connections with strategy=dropbox - """ - - strategy: ConnectionResponseContentDropboxStrategy - options: typing.Optional[ConnectionOptionsDropbox] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_response_content_dropbox_strategy.py b/src/auth0/management/types/connection_response_content_dropbox_strategy.py deleted file mode 100644 index 720648fc..00000000 --- a/src/auth0/management/types/connection_response_content_dropbox_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionResponseContentDropboxStrategy = typing.Union[typing.Literal["dropbox"], typing.Any] diff --git a/src/auth0/management/types/connection_response_content_dwolla.py b/src/auth0/management/types/connection_response_content_dwolla.py deleted file mode 100644 index d80a1228..00000000 --- a/src/auth0/management/types/connection_response_content_dwolla.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_dwolla import ConnectionOptionsDwolla -from .connection_purposes import ConnectionPurposes -from .connection_response_common import ConnectionResponseCommon -from .connection_response_content_dwolla_strategy import ConnectionResponseContentDwollaStrategy - - -class ConnectionResponseContentDwolla(ConnectionPurposes, ConnectionResponseCommon): - """ - Response for connections with strategy=dwolla - """ - - strategy: ConnectionResponseContentDwollaStrategy - options: typing.Optional[ConnectionOptionsDwolla] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_response_content_dwolla_strategy.py b/src/auth0/management/types/connection_response_content_dwolla_strategy.py deleted file mode 100644 index 45867e6a..00000000 --- a/src/auth0/management/types/connection_response_content_dwolla_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionResponseContentDwollaStrategy = typing.Union[typing.Literal["dwolla"], typing.Any] diff --git a/src/auth0/management/types/connection_response_content_email.py b/src/auth0/management/types/connection_response_content_email.py deleted file mode 100644 index 63082154..00000000 --- a/src/auth0/management/types/connection_response_content_email.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_email import ConnectionOptionsEmail -from .connection_purposes import ConnectionPurposes -from .connection_response_common import ConnectionResponseCommon -from .connection_response_content_email_strategy import ConnectionResponseContentEmailStrategy - - -class ConnectionResponseContentEmail(ConnectionPurposes, ConnectionResponseCommon): - """ - Response for connections with strategy=email - """ - - strategy: ConnectionResponseContentEmailStrategy - options: typing.Optional[ConnectionOptionsEmail] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_response_content_email_strategy.py b/src/auth0/management/types/connection_response_content_email_strategy.py deleted file mode 100644 index c4f237ca..00000000 --- a/src/auth0/management/types/connection_response_content_email_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionResponseContentEmailStrategy = typing.Union[typing.Literal["email"], typing.Any] diff --git a/src/auth0/management/types/connection_response_content_evernote.py b/src/auth0/management/types/connection_response_content_evernote.py deleted file mode 100644 index 22fc9cee..00000000 --- a/src/auth0/management/types/connection_response_content_evernote.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_evernote import ConnectionOptionsEvernote -from .connection_purposes import ConnectionPurposes -from .connection_response_common import ConnectionResponseCommon -from .connection_response_content_evernote_strategy import ConnectionResponseContentEvernoteStrategy - - -class ConnectionResponseContentEvernote(ConnectionPurposes, ConnectionResponseCommon): - """ - Response for connections with strategy=evernote - """ - - strategy: ConnectionResponseContentEvernoteStrategy - options: typing.Optional[ConnectionOptionsEvernote] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_response_content_evernote_sandbox.py b/src/auth0/management/types/connection_response_content_evernote_sandbox.py deleted file mode 100644 index efa234e9..00000000 --- a/src/auth0/management/types/connection_response_content_evernote_sandbox.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_evernote import ConnectionOptionsEvernote -from .connection_purposes import ConnectionPurposes -from .connection_response_common import ConnectionResponseCommon -from .connection_response_content_evernote_sandbox_strategy import ConnectionResponseContentEvernoteSandboxStrategy - - -class ConnectionResponseContentEvernoteSandbox(ConnectionPurposes, ConnectionResponseCommon): - """ - Response for connections with strategy=evernote-sandbox - """ - - strategy: ConnectionResponseContentEvernoteSandboxStrategy - options: typing.Optional[ConnectionOptionsEvernote] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_response_content_evernote_sandbox_strategy.py b/src/auth0/management/types/connection_response_content_evernote_sandbox_strategy.py deleted file mode 100644 index 8ee8993f..00000000 --- a/src/auth0/management/types/connection_response_content_evernote_sandbox_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionResponseContentEvernoteSandboxStrategy = typing.Union[typing.Literal["evernote-sandbox"], typing.Any] diff --git a/src/auth0/management/types/connection_response_content_evernote_strategy.py b/src/auth0/management/types/connection_response_content_evernote_strategy.py deleted file mode 100644 index dca0d105..00000000 --- a/src/auth0/management/types/connection_response_content_evernote_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionResponseContentEvernoteStrategy = typing.Union[typing.Literal["evernote"], typing.Any] diff --git a/src/auth0/management/types/connection_response_content_exact.py b/src/auth0/management/types/connection_response_content_exact.py deleted file mode 100644 index 64ae8477..00000000 --- a/src/auth0/management/types/connection_response_content_exact.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_exact import ConnectionOptionsExact -from .connection_purposes import ConnectionPurposes -from .connection_response_common import ConnectionResponseCommon -from .connection_response_content_exact_strategy import ConnectionResponseContentExactStrategy - - -class ConnectionResponseContentExact(ConnectionPurposes, ConnectionResponseCommon): - """ - Response for connections with strategy=exact - """ - - strategy: ConnectionResponseContentExactStrategy - options: typing.Optional[ConnectionOptionsExact] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_response_content_exact_strategy.py b/src/auth0/management/types/connection_response_content_exact_strategy.py deleted file mode 100644 index 0ee86d17..00000000 --- a/src/auth0/management/types/connection_response_content_exact_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionResponseContentExactStrategy = typing.Union[typing.Literal["exact"], typing.Any] diff --git a/src/auth0/management/types/connection_response_content_facebook.py b/src/auth0/management/types/connection_response_content_facebook.py deleted file mode 100644 index 2aeb326a..00000000 --- a/src/auth0/management/types/connection_response_content_facebook.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_facebook import ConnectionOptionsFacebook -from .connection_purposes import ConnectionPurposes -from .connection_response_common import ConnectionResponseCommon -from .connection_response_content_facebook_strategy import ConnectionResponseContentFacebookStrategy - - -class ConnectionResponseContentFacebook(ConnectionPurposes, ConnectionResponseCommon): - """ - Response for connections with strategy=facebook - """ - - strategy: ConnectionResponseContentFacebookStrategy - options: typing.Optional[ConnectionOptionsFacebook] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_response_content_facebook_strategy.py b/src/auth0/management/types/connection_response_content_facebook_strategy.py deleted file mode 100644 index c22c0b25..00000000 --- a/src/auth0/management/types/connection_response_content_facebook_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionResponseContentFacebookStrategy = typing.Union[typing.Literal["facebook"], typing.Any] diff --git a/src/auth0/management/types/connection_response_content_fitbit.py b/src/auth0/management/types/connection_response_content_fitbit.py deleted file mode 100644 index 515ad3d3..00000000 --- a/src/auth0/management/types/connection_response_content_fitbit.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_fitbit import ConnectionOptionsFitbit -from .connection_purposes import ConnectionPurposes -from .connection_response_common import ConnectionResponseCommon -from .connection_response_content_fitbit_strategy import ConnectionResponseContentFitbitStrategy - - -class ConnectionResponseContentFitbit(ConnectionPurposes, ConnectionResponseCommon): - """ - Response for connections with strategy=fitbit - """ - - strategy: ConnectionResponseContentFitbitStrategy - options: typing.Optional[ConnectionOptionsFitbit] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_response_content_fitbit_strategy.py b/src/auth0/management/types/connection_response_content_fitbit_strategy.py deleted file mode 100644 index 3144aabc..00000000 --- a/src/auth0/management/types/connection_response_content_fitbit_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionResponseContentFitbitStrategy = typing.Union[typing.Literal["fitbit"], typing.Any] diff --git a/src/auth0/management/types/connection_response_content_git_hub.py b/src/auth0/management/types/connection_response_content_git_hub.py deleted file mode 100644 index 95d1a5c0..00000000 --- a/src/auth0/management/types/connection_response_content_git_hub.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_git_hub import ConnectionOptionsGitHub -from .connection_purposes import ConnectionPurposes -from .connection_response_common import ConnectionResponseCommon -from .connection_response_content_git_hub_strategy import ConnectionResponseContentGitHubStrategy - - -class ConnectionResponseContentGitHub(ConnectionPurposes, ConnectionResponseCommon): - """ - Response for connections with strategy=github - """ - - strategy: ConnectionResponseContentGitHubStrategy - options: typing.Optional[ConnectionOptionsGitHub] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_response_content_git_hub_strategy.py b/src/auth0/management/types/connection_response_content_git_hub_strategy.py deleted file mode 100644 index d75cd019..00000000 --- a/src/auth0/management/types/connection_response_content_git_hub_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionResponseContentGitHubStrategy = typing.Union[typing.Literal["github"], typing.Any] diff --git a/src/auth0/management/types/connection_response_content_google_apps.py b/src/auth0/management/types/connection_response_content_google_apps.py deleted file mode 100644 index 761234e0..00000000 --- a/src/auth0/management/types/connection_response_content_google_apps.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_google_apps import ConnectionOptionsGoogleApps -from .connection_provisioning_ticket_url import ConnectionProvisioningTicketUrl -from .connection_purposes import ConnectionPurposes -from .connection_response_common import ConnectionResponseCommon -from .connection_response_content_google_apps_strategy import ConnectionResponseContentGoogleAppsStrategy -from .connection_show_as_button import ConnectionShowAsButton - - -class ConnectionResponseContentGoogleApps(ConnectionPurposes, ConnectionResponseCommon): - """ - Response for connections with strategy=google-apps - """ - - strategy: ConnectionResponseContentGoogleAppsStrategy - options: typing.Optional[ConnectionOptionsGoogleApps] = None - provisioning_ticket_url: typing.Optional[ConnectionProvisioningTicketUrl] = None - show_as_button: typing.Optional[ConnectionShowAsButton] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_response_content_google_apps_strategy.py b/src/auth0/management/types/connection_response_content_google_apps_strategy.py deleted file mode 100644 index 167304de..00000000 --- a/src/auth0/management/types/connection_response_content_google_apps_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionResponseContentGoogleAppsStrategy = typing.Union[typing.Literal["google-apps"], typing.Any] diff --git a/src/auth0/management/types/connection_response_content_google_o_auth_2.py b/src/auth0/management/types/connection_response_content_google_o_auth_2.py deleted file mode 100644 index b83c038c..00000000 --- a/src/auth0/management/types/connection_response_content_google_o_auth_2.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_google_o_auth_2 import ConnectionOptionsGoogleOAuth2 -from .connection_purposes import ConnectionPurposes -from .connection_response_common import ConnectionResponseCommon -from .connection_response_content_google_o_auth_2_strategy import ConnectionResponseContentGoogleOAuth2Strategy - - -class ConnectionResponseContentGoogleOAuth2(ConnectionPurposes, ConnectionResponseCommon): - """ - Response for connections with strategy=google-oauth2 - """ - - strategy: ConnectionResponseContentGoogleOAuth2Strategy - options: typing.Optional[ConnectionOptionsGoogleOAuth2] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_response_content_google_o_auth_2_strategy.py b/src/auth0/management/types/connection_response_content_google_o_auth_2_strategy.py deleted file mode 100644 index 9f825fc0..00000000 --- a/src/auth0/management/types/connection_response_content_google_o_auth_2_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionResponseContentGoogleOAuth2Strategy = typing.Union[typing.Literal["google-oauth2"], typing.Any] diff --git a/src/auth0/management/types/connection_response_content_instagram.py b/src/auth0/management/types/connection_response_content_instagram.py deleted file mode 100644 index 95f7fb40..00000000 --- a/src/auth0/management/types/connection_response_content_instagram.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_instagram import ConnectionOptionsInstagram -from .connection_purposes import ConnectionPurposes -from .connection_response_common import ConnectionResponseCommon -from .connection_response_content_instagram_strategy import ConnectionResponseContentInstagramStrategy - - -class ConnectionResponseContentInstagram(ConnectionPurposes, ConnectionResponseCommon): - """ - Response for connections with strategy=instagram - """ - - strategy: ConnectionResponseContentInstagramStrategy - options: typing.Optional[ConnectionOptionsInstagram] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_response_content_instagram_strategy.py b/src/auth0/management/types/connection_response_content_instagram_strategy.py deleted file mode 100644 index e7cf867a..00000000 --- a/src/auth0/management/types/connection_response_content_instagram_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionResponseContentInstagramStrategy = typing.Union[typing.Literal["instagram"], typing.Any] diff --git a/src/auth0/management/types/connection_response_content_ip.py b/src/auth0/management/types/connection_response_content_ip.py deleted file mode 100644 index 5d873b50..00000000 --- a/src/auth0/management/types/connection_response_content_ip.py +++ /dev/null @@ -1,30 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_ip import ConnectionOptionsIp -from .connection_purposes import ConnectionPurposes -from .connection_response_common import ConnectionResponseCommon -from .connection_response_content_ip_strategy import ConnectionResponseContentIpStrategy -from .connection_show_as_button import ConnectionShowAsButton - - -class ConnectionResponseContentIp(ConnectionPurposes, ConnectionResponseCommon): - """ - Response for connections with strategy=ip - """ - - strategy: ConnectionResponseContentIpStrategy - options: typing.Optional[ConnectionOptionsIp] = None - show_as_button: typing.Optional[ConnectionShowAsButton] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_response_content_ip_strategy.py b/src/auth0/management/types/connection_response_content_ip_strategy.py deleted file mode 100644 index 5772c5bd..00000000 --- a/src/auth0/management/types/connection_response_content_ip_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionResponseContentIpStrategy = typing.Union[typing.Literal["ip"], typing.Any] diff --git a/src/auth0/management/types/connection_response_content_line.py b/src/auth0/management/types/connection_response_content_line.py deleted file mode 100644 index b18fb7ef..00000000 --- a/src/auth0/management/types/connection_response_content_line.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_line import ConnectionOptionsLine -from .connection_purposes import ConnectionPurposes -from .connection_response_common import ConnectionResponseCommon -from .connection_response_content_line_strategy import ConnectionResponseContentLineStrategy - - -class ConnectionResponseContentLine(ConnectionPurposes, ConnectionResponseCommon): - """ - Response for connections with strategy=line - """ - - strategy: ConnectionResponseContentLineStrategy - options: typing.Optional[ConnectionOptionsLine] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_response_content_line_strategy.py b/src/auth0/management/types/connection_response_content_line_strategy.py deleted file mode 100644 index 6e6a00ff..00000000 --- a/src/auth0/management/types/connection_response_content_line_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionResponseContentLineStrategy = typing.Union[typing.Literal["line"], typing.Any] diff --git a/src/auth0/management/types/connection_response_content_linkedin.py b/src/auth0/management/types/connection_response_content_linkedin.py deleted file mode 100644 index ddc376c7..00000000 --- a/src/auth0/management/types/connection_response_content_linkedin.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_linkedin import ConnectionOptionsLinkedin -from .connection_purposes import ConnectionPurposes -from .connection_response_common import ConnectionResponseCommon -from .connection_response_content_linkedin_strategy import ConnectionResponseContentLinkedinStrategy - - -class ConnectionResponseContentLinkedin(ConnectionPurposes, ConnectionResponseCommon): - """ - Response for connections with strategy=linkedin - """ - - strategy: ConnectionResponseContentLinkedinStrategy - options: typing.Optional[ConnectionOptionsLinkedin] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_response_content_linkedin_strategy.py b/src/auth0/management/types/connection_response_content_linkedin_strategy.py deleted file mode 100644 index d37e70c9..00000000 --- a/src/auth0/management/types/connection_response_content_linkedin_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionResponseContentLinkedinStrategy = typing.Union[typing.Literal["linkedin"], typing.Any] diff --git a/src/auth0/management/types/connection_response_content_o_auth_1.py b/src/auth0/management/types/connection_response_content_o_auth_1.py deleted file mode 100644 index 4d92cc40..00000000 --- a/src/auth0/management/types/connection_response_content_o_auth_1.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_o_auth_1 import ConnectionOptionsOAuth1 -from .connection_purposes import ConnectionPurposes -from .connection_response_common import ConnectionResponseCommon -from .connection_response_content_o_auth_1_strategy import ConnectionResponseContentOAuth1Strategy - - -class ConnectionResponseContentOAuth1(ConnectionPurposes, ConnectionResponseCommon): - """ - Response for connections with strategy=oauth1 - """ - - strategy: ConnectionResponseContentOAuth1Strategy - options: typing.Optional[ConnectionOptionsOAuth1] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_response_content_o_auth_1_strategy.py b/src/auth0/management/types/connection_response_content_o_auth_1_strategy.py deleted file mode 100644 index 58d46757..00000000 --- a/src/auth0/management/types/connection_response_content_o_auth_1_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionResponseContentOAuth1Strategy = typing.Union[typing.Literal["oauth1"], typing.Any] diff --git a/src/auth0/management/types/connection_response_content_o_auth_2.py b/src/auth0/management/types/connection_response_content_o_auth_2.py deleted file mode 100644 index 4fb56034..00000000 --- a/src/auth0/management/types/connection_response_content_o_auth_2.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_o_auth_2 import ConnectionOptionsOAuth2 -from .connection_purposes import ConnectionPurposes -from .connection_response_common import ConnectionResponseCommon -from .connection_response_content_o_auth_2_strategy import ConnectionResponseContentOAuth2Strategy - - -class ConnectionResponseContentOAuth2(ConnectionPurposes, ConnectionResponseCommon): - """ - Response for connections with strategy=oauth2 - """ - - strategy: ConnectionResponseContentOAuth2Strategy - options: typing.Optional[ConnectionOptionsOAuth2] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_response_content_o_auth_2_strategy.py b/src/auth0/management/types/connection_response_content_o_auth_2_strategy.py deleted file mode 100644 index eb580bb2..00000000 --- a/src/auth0/management/types/connection_response_content_o_auth_2_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionResponseContentOAuth2Strategy = typing.Union[typing.Literal["oauth2"], typing.Any] diff --git a/src/auth0/management/types/connection_response_content_office_365.py b/src/auth0/management/types/connection_response_content_office_365.py deleted file mode 100644 index ecad397d..00000000 --- a/src/auth0/management/types/connection_response_content_office_365.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_office_365 import ConnectionOptionsOffice365 -from .connection_provisioning_ticket_url import ConnectionProvisioningTicketUrl -from .connection_purposes import ConnectionPurposes -from .connection_response_common import ConnectionResponseCommon -from .connection_response_content_office_365_strategy import ConnectionResponseContentOffice365Strategy -from .connection_show_as_button import ConnectionShowAsButton - - -class ConnectionResponseContentOffice365(ConnectionPurposes, ConnectionResponseCommon): - """ - Response for connections with strategy=office365 - """ - - strategy: ConnectionResponseContentOffice365Strategy - options: typing.Optional[ConnectionOptionsOffice365] = None - provisioning_ticket_url: typing.Optional[ConnectionProvisioningTicketUrl] = None - show_as_button: typing.Optional[ConnectionShowAsButton] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_response_content_office_365_strategy.py b/src/auth0/management/types/connection_response_content_office_365_strategy.py deleted file mode 100644 index c1f6ee99..00000000 --- a/src/auth0/management/types/connection_response_content_office_365_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionResponseContentOffice365Strategy = typing.Union[typing.Literal["office365"], typing.Any] diff --git a/src/auth0/management/types/connection_response_content_oidc.py b/src/auth0/management/types/connection_response_content_oidc.py deleted file mode 100644 index 99d46a58..00000000 --- a/src/auth0/management/types/connection_response_content_oidc.py +++ /dev/null @@ -1,37 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_authentication_purpose import ConnectionAuthenticationPurpose -from .connection_connected_accounts_purpose_xaa import ConnectionConnectedAccountsPurposeXaa -from .connection_cross_app_access_resource_app import ConnectionCrossAppAccessResourceApp -from .connection_options_oidc import ConnectionOptionsOidc -from .connection_response_common import ConnectionResponseCommon -from .connection_response_content_oidc_strategy import ConnectionResponseContentOidcStrategy -from .connection_show_as_button import ConnectionShowAsButton -from .cross_app_access_requesting_app import CrossAppAccessRequestingApp - - -class ConnectionResponseContentOidc(ConnectionResponseCommon): - """ - Response for connections with strategy=oidc - """ - - strategy: ConnectionResponseContentOidcStrategy - authentication: typing.Optional[ConnectionAuthenticationPurpose] = None - connected_accounts: typing.Optional[ConnectionConnectedAccountsPurposeXaa] = None - cross_app_access_requesting_app: typing.Optional[CrossAppAccessRequestingApp] = None - cross_app_access_resource_app: typing.Optional[ConnectionCrossAppAccessResourceApp] = None - options: typing.Optional[ConnectionOptionsOidc] = None - show_as_button: typing.Optional[ConnectionShowAsButton] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_response_content_oidc_strategy.py b/src/auth0/management/types/connection_response_content_oidc_strategy.py deleted file mode 100644 index a94b7f71..00000000 --- a/src/auth0/management/types/connection_response_content_oidc_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionResponseContentOidcStrategy = typing.Union[typing.Literal["oidc"], typing.Any] diff --git a/src/auth0/management/types/connection_response_content_okta.py b/src/auth0/management/types/connection_response_content_okta.py deleted file mode 100644 index 5bb27127..00000000 --- a/src/auth0/management/types/connection_response_content_okta.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_okta import ConnectionOptionsOkta -from .connection_purposes import ConnectionPurposes -from .connection_response_common import ConnectionResponseCommon -from .connection_response_content_okta_strategy import ConnectionResponseContentOktaStrategy -from .connection_show_as_button import ConnectionShowAsButton -from .cross_app_access_requesting_app import CrossAppAccessRequestingApp - - -class ConnectionResponseContentOkta(ConnectionPurposes, ConnectionResponseCommon): - """ - Response for connections with strategy=okta - """ - - strategy: ConnectionResponseContentOktaStrategy - cross_app_access_requesting_app: typing.Optional[CrossAppAccessRequestingApp] = None - options: typing.Optional[ConnectionOptionsOkta] = None - show_as_button: typing.Optional[ConnectionShowAsButton] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_response_content_okta_strategy.py b/src/auth0/management/types/connection_response_content_okta_strategy.py deleted file mode 100644 index 13c04083..00000000 --- a/src/auth0/management/types/connection_response_content_okta_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionResponseContentOktaStrategy = typing.Union[typing.Literal["okta"], typing.Any] diff --git a/src/auth0/management/types/connection_response_content_paypal.py b/src/auth0/management/types/connection_response_content_paypal.py deleted file mode 100644 index f1516e02..00000000 --- a/src/auth0/management/types/connection_response_content_paypal.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_paypal import ConnectionOptionsPaypal -from .connection_purposes import ConnectionPurposes -from .connection_response_common import ConnectionResponseCommon -from .connection_response_content_paypal_strategy import ConnectionResponseContentPaypalStrategy - - -class ConnectionResponseContentPaypal(ConnectionPurposes, ConnectionResponseCommon): - """ - Response for connections with strategy=paypal - """ - - strategy: ConnectionResponseContentPaypalStrategy - options: typing.Optional[ConnectionOptionsPaypal] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_response_content_paypal_sandbox.py b/src/auth0/management/types/connection_response_content_paypal_sandbox.py deleted file mode 100644 index bb7cb5f3..00000000 --- a/src/auth0/management/types/connection_response_content_paypal_sandbox.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_paypal import ConnectionOptionsPaypal -from .connection_purposes import ConnectionPurposes -from .connection_response_common import ConnectionResponseCommon -from .connection_response_content_paypal_sandbox_strategy import ConnectionResponseContentPaypalSandboxStrategy - - -class ConnectionResponseContentPaypalSandbox(ConnectionPurposes, ConnectionResponseCommon): - """ - Response for connections with strategy=paypal-sandbox - """ - - strategy: ConnectionResponseContentPaypalSandboxStrategy - options: typing.Optional[ConnectionOptionsPaypal] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_response_content_paypal_sandbox_strategy.py b/src/auth0/management/types/connection_response_content_paypal_sandbox_strategy.py deleted file mode 100644 index a2367180..00000000 --- a/src/auth0/management/types/connection_response_content_paypal_sandbox_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionResponseContentPaypalSandboxStrategy = typing.Union[typing.Literal["paypal-sandbox"], typing.Any] diff --git a/src/auth0/management/types/connection_response_content_paypal_strategy.py b/src/auth0/management/types/connection_response_content_paypal_strategy.py deleted file mode 100644 index 590ada5b..00000000 --- a/src/auth0/management/types/connection_response_content_paypal_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionResponseContentPaypalStrategy = typing.Union[typing.Literal["paypal"], typing.Any] diff --git a/src/auth0/management/types/connection_response_content_ping_federate.py b/src/auth0/management/types/connection_response_content_ping_federate.py deleted file mode 100644 index 307aed03..00000000 --- a/src/auth0/management/types/connection_response_content_ping_federate.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_ping_federate import ConnectionOptionsPingFederate -from .connection_provisioning_ticket_url import ConnectionProvisioningTicketUrl -from .connection_purposes import ConnectionPurposes -from .connection_response_common import ConnectionResponseCommon -from .connection_response_content_ping_federate_strategy import ConnectionResponseContentPingFederateStrategy -from .connection_show_as_button import ConnectionShowAsButton - - -class ConnectionResponseContentPingFederate(ConnectionPurposes, ConnectionResponseCommon): - """ - Response for connections with strategy=pingfederate - """ - - strategy: ConnectionResponseContentPingFederateStrategy - options: typing.Optional[ConnectionOptionsPingFederate] = None - provisioning_ticket_url: typing.Optional[ConnectionProvisioningTicketUrl] = None - show_as_button: typing.Optional[ConnectionShowAsButton] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_response_content_ping_federate_strategy.py b/src/auth0/management/types/connection_response_content_ping_federate_strategy.py deleted file mode 100644 index 336d8331..00000000 --- a/src/auth0/management/types/connection_response_content_ping_federate_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionResponseContentPingFederateStrategy = typing.Union[typing.Literal["pingfederate"], typing.Any] diff --git a/src/auth0/management/types/connection_response_content_planning_center.py b/src/auth0/management/types/connection_response_content_planning_center.py deleted file mode 100644 index 31ab2125..00000000 --- a/src/auth0/management/types/connection_response_content_planning_center.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_planning_center import ConnectionOptionsPlanningCenter -from .connection_purposes import ConnectionPurposes -from .connection_response_common import ConnectionResponseCommon -from .connection_response_content_planning_center_strategy import ConnectionResponseContentPlanningCenterStrategy - - -class ConnectionResponseContentPlanningCenter(ConnectionPurposes, ConnectionResponseCommon): - """ - Response for connections with strategy=planningcenter - """ - - strategy: ConnectionResponseContentPlanningCenterStrategy - options: typing.Optional[ConnectionOptionsPlanningCenter] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_response_content_planning_center_strategy.py b/src/auth0/management/types/connection_response_content_planning_center_strategy.py deleted file mode 100644 index b209077e..00000000 --- a/src/auth0/management/types/connection_response_content_planning_center_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionResponseContentPlanningCenterStrategy = typing.Union[typing.Literal["planningcenter"], typing.Any] diff --git a/src/auth0/management/types/connection_response_content_salesforce.py b/src/auth0/management/types/connection_response_content_salesforce.py deleted file mode 100644 index 32964a9c..00000000 --- a/src/auth0/management/types/connection_response_content_salesforce.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_salesforce import ConnectionOptionsSalesforce -from .connection_purposes import ConnectionPurposes -from .connection_response_common import ConnectionResponseCommon -from .connection_response_content_salesforce_strategy import ConnectionResponseContentSalesforceStrategy - - -class ConnectionResponseContentSalesforce(ConnectionPurposes, ConnectionResponseCommon): - """ - Response for connections with strategy=salesforce - """ - - strategy: ConnectionResponseContentSalesforceStrategy - options: typing.Optional[ConnectionOptionsSalesforce] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_response_content_salesforce_community.py b/src/auth0/management/types/connection_response_content_salesforce_community.py deleted file mode 100644 index 2d922c82..00000000 --- a/src/auth0/management/types/connection_response_content_salesforce_community.py +++ /dev/null @@ -1,30 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_salesforce_community import ConnectionOptionsSalesforceCommunity -from .connection_purposes import ConnectionPurposes -from .connection_response_common import ConnectionResponseCommon -from .connection_response_content_salesforce_community_strategy import ( - ConnectionResponseContentSalesforceCommunityStrategy, -) - - -class ConnectionResponseContentSalesforceCommunity(ConnectionPurposes, ConnectionResponseCommon): - """ - Response for connections with strategy=salesforce-community - """ - - strategy: ConnectionResponseContentSalesforceCommunityStrategy - options: typing.Optional[ConnectionOptionsSalesforceCommunity] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_response_content_salesforce_community_strategy.py b/src/auth0/management/types/connection_response_content_salesforce_community_strategy.py deleted file mode 100644 index ca0b41b6..00000000 --- a/src/auth0/management/types/connection_response_content_salesforce_community_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionResponseContentSalesforceCommunityStrategy = typing.Union[typing.Literal["salesforce-community"], typing.Any] diff --git a/src/auth0/management/types/connection_response_content_salesforce_sandbox.py b/src/auth0/management/types/connection_response_content_salesforce_sandbox.py deleted file mode 100644 index 97da3b78..00000000 --- a/src/auth0/management/types/connection_response_content_salesforce_sandbox.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_salesforce import ConnectionOptionsSalesforce -from .connection_purposes import ConnectionPurposes -from .connection_response_common import ConnectionResponseCommon -from .connection_response_content_salesforce_sandbox_strategy import ConnectionResponseContentSalesforceSandboxStrategy - - -class ConnectionResponseContentSalesforceSandbox(ConnectionPurposes, ConnectionResponseCommon): - """ - Response for connections with strategy=salesforce-sandbox - """ - - strategy: ConnectionResponseContentSalesforceSandboxStrategy - options: typing.Optional[ConnectionOptionsSalesforce] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_response_content_salesforce_sandbox_strategy.py b/src/auth0/management/types/connection_response_content_salesforce_sandbox_strategy.py deleted file mode 100644 index 7ec0727d..00000000 --- a/src/auth0/management/types/connection_response_content_salesforce_sandbox_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionResponseContentSalesforceSandboxStrategy = typing.Union[typing.Literal["salesforce-sandbox"], typing.Any] diff --git a/src/auth0/management/types/connection_response_content_salesforce_strategy.py b/src/auth0/management/types/connection_response_content_salesforce_strategy.py deleted file mode 100644 index 850a1823..00000000 --- a/src/auth0/management/types/connection_response_content_salesforce_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionResponseContentSalesforceStrategy = typing.Union[typing.Literal["salesforce"], typing.Any] diff --git a/src/auth0/management/types/connection_response_content_saml.py b/src/auth0/management/types/connection_response_content_saml.py deleted file mode 100644 index 914fef66..00000000 --- a/src/auth0/management/types/connection_response_content_saml.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_cross_app_access_resource_app import ConnectionCrossAppAccessResourceApp -from .connection_options_saml import ConnectionOptionsSaml -from .connection_provisioning_ticket_url import ConnectionProvisioningTicketUrl -from .connection_purposes import ConnectionPurposes -from .connection_response_common import ConnectionResponseCommon -from .connection_response_content_saml_strategy import ConnectionResponseContentSamlStrategy -from .connection_show_as_button import ConnectionShowAsButton -from .cross_app_access_requesting_app import CrossAppAccessRequestingApp - - -class ConnectionResponseContentSaml(ConnectionPurposes, ConnectionResponseCommon): - """ - Response for connections with strategy=samlp - """ - - strategy: ConnectionResponseContentSamlStrategy - cross_app_access_requesting_app: typing.Optional[CrossAppAccessRequestingApp] = None - cross_app_access_resource_app: typing.Optional[ConnectionCrossAppAccessResourceApp] = None - options: typing.Optional[ConnectionOptionsSaml] = None - provisioning_ticket_url: typing.Optional[ConnectionProvisioningTicketUrl] = None - show_as_button: typing.Optional[ConnectionShowAsButton] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_response_content_saml_strategy.py b/src/auth0/management/types/connection_response_content_saml_strategy.py deleted file mode 100644 index 9cdf2260..00000000 --- a/src/auth0/management/types/connection_response_content_saml_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionResponseContentSamlStrategy = typing.Union[typing.Literal["samlp"], typing.Any] diff --git a/src/auth0/management/types/connection_response_content_sharepoint.py b/src/auth0/management/types/connection_response_content_sharepoint.py deleted file mode 100644 index 507dbb39..00000000 --- a/src/auth0/management/types/connection_response_content_sharepoint.py +++ /dev/null @@ -1,30 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_sharepoint import ConnectionOptionsSharepoint -from .connection_purposes import ConnectionPurposes -from .connection_response_common import ConnectionResponseCommon -from .connection_response_content_sharepoint_strategy import ConnectionResponseContentSharepointStrategy -from .connection_show_as_button import ConnectionShowAsButton - - -class ConnectionResponseContentSharepoint(ConnectionPurposes, ConnectionResponseCommon): - """ - Response for connections with strategy=sharepoint - """ - - strategy: ConnectionResponseContentSharepointStrategy - options: typing.Optional[ConnectionOptionsSharepoint] = None - show_as_button: typing.Optional[ConnectionShowAsButton] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_response_content_sharepoint_strategy.py b/src/auth0/management/types/connection_response_content_sharepoint_strategy.py deleted file mode 100644 index ee1248dd..00000000 --- a/src/auth0/management/types/connection_response_content_sharepoint_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionResponseContentSharepointStrategy = typing.Union[typing.Literal["sharepoint"], typing.Any] diff --git a/src/auth0/management/types/connection_response_content_shop.py b/src/auth0/management/types/connection_response_content_shop.py deleted file mode 100644 index 20ea1574..00000000 --- a/src/auth0/management/types/connection_response_content_shop.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_shop import ConnectionOptionsShop -from .connection_purposes import ConnectionPurposes -from .connection_response_common import ConnectionResponseCommon -from .connection_response_content_shop_strategy import ConnectionResponseContentShopStrategy - - -class ConnectionResponseContentShop(ConnectionPurposes, ConnectionResponseCommon): - """ - Response for connections with strategy=shop - """ - - strategy: ConnectionResponseContentShopStrategy - options: typing.Optional[ConnectionOptionsShop] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_response_content_shop_strategy.py b/src/auth0/management/types/connection_response_content_shop_strategy.py deleted file mode 100644 index 96271ee1..00000000 --- a/src/auth0/management/types/connection_response_content_shop_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionResponseContentShopStrategy = typing.Union[typing.Literal["shop"], typing.Any] diff --git a/src/auth0/management/types/connection_response_content_shopify.py b/src/auth0/management/types/connection_response_content_shopify.py deleted file mode 100644 index cac5b7be..00000000 --- a/src/auth0/management/types/connection_response_content_shopify.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_shopify import ConnectionOptionsShopify -from .connection_purposes import ConnectionPurposes -from .connection_response_common import ConnectionResponseCommon -from .connection_response_content_shopify_strategy import ConnectionResponseContentShopifyStrategy - - -class ConnectionResponseContentShopify(ConnectionPurposes, ConnectionResponseCommon): - """ - Response for connections with strategy=shopify - """ - - strategy: ConnectionResponseContentShopifyStrategy - options: typing.Optional[ConnectionOptionsShopify] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_response_content_shopify_strategy.py b/src/auth0/management/types/connection_response_content_shopify_strategy.py deleted file mode 100644 index 64b4e77d..00000000 --- a/src/auth0/management/types/connection_response_content_shopify_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionResponseContentShopifyStrategy = typing.Union[typing.Literal["shopify"], typing.Any] diff --git a/src/auth0/management/types/connection_response_content_sms.py b/src/auth0/management/types/connection_response_content_sms.py deleted file mode 100644 index 15b2729f..00000000 --- a/src/auth0/management/types/connection_response_content_sms.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_sms import ConnectionOptionsSms -from .connection_purposes import ConnectionPurposes -from .connection_response_common import ConnectionResponseCommon -from .connection_response_content_sms_strategy import ConnectionResponseContentSmsStrategy - - -class ConnectionResponseContentSms(ConnectionPurposes, ConnectionResponseCommon): - """ - Response for connections with strategy=sms - """ - - strategy: ConnectionResponseContentSmsStrategy - options: typing.Optional[ConnectionOptionsSms] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_response_content_sms_strategy.py b/src/auth0/management/types/connection_response_content_sms_strategy.py deleted file mode 100644 index 1269151c..00000000 --- a/src/auth0/management/types/connection_response_content_sms_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionResponseContentSmsStrategy = typing.Union[typing.Literal["sms"], typing.Any] diff --git a/src/auth0/management/types/connection_response_content_soundcloud.py b/src/auth0/management/types/connection_response_content_soundcloud.py deleted file mode 100644 index 00c68ad7..00000000 --- a/src/auth0/management/types/connection_response_content_soundcloud.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_soundcloud import ConnectionOptionsSoundcloud -from .connection_purposes import ConnectionPurposes -from .connection_response_common import ConnectionResponseCommon -from .connection_response_content_soundcloud_strategy import ConnectionResponseContentSoundcloudStrategy - - -class ConnectionResponseContentSoundcloud(ConnectionPurposes, ConnectionResponseCommon): - """ - Response for connections with strategy=soundcloud - """ - - strategy: ConnectionResponseContentSoundcloudStrategy - options: typing.Optional[ConnectionOptionsSoundcloud] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_response_content_soundcloud_strategy.py b/src/auth0/management/types/connection_response_content_soundcloud_strategy.py deleted file mode 100644 index 35c0dd5c..00000000 --- a/src/auth0/management/types/connection_response_content_soundcloud_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionResponseContentSoundcloudStrategy = typing.Union[typing.Literal["soundcloud"], typing.Any] diff --git a/src/auth0/management/types/connection_response_content_thirty_seven_signals.py b/src/auth0/management/types/connection_response_content_thirty_seven_signals.py deleted file mode 100644 index 73346da4..00000000 --- a/src/auth0/management/types/connection_response_content_thirty_seven_signals.py +++ /dev/null @@ -1,30 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_thirty_seven_signals import ConnectionOptionsThirtySevenSignals -from .connection_purposes import ConnectionPurposes -from .connection_response_common import ConnectionResponseCommon -from .connection_response_content_thirty_seven_signals_strategy import ( - ConnectionResponseContentThirtySevenSignalsStrategy, -) - - -class ConnectionResponseContentThirtySevenSignals(ConnectionPurposes, ConnectionResponseCommon): - """ - Response for connections with strategy=thirtysevensignals - """ - - strategy: ConnectionResponseContentThirtySevenSignalsStrategy - options: typing.Optional[ConnectionOptionsThirtySevenSignals] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_response_content_thirty_seven_signals_strategy.py b/src/auth0/management/types/connection_response_content_thirty_seven_signals_strategy.py deleted file mode 100644 index 6c493f81..00000000 --- a/src/auth0/management/types/connection_response_content_thirty_seven_signals_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionResponseContentThirtySevenSignalsStrategy = typing.Union[typing.Literal["thirtysevensignals"], typing.Any] diff --git a/src/auth0/management/types/connection_response_content_twitter.py b/src/auth0/management/types/connection_response_content_twitter.py deleted file mode 100644 index 1a80614f..00000000 --- a/src/auth0/management/types/connection_response_content_twitter.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_twitter import ConnectionOptionsTwitter -from .connection_purposes import ConnectionPurposes -from .connection_response_common import ConnectionResponseCommon -from .connection_response_content_twitter_strategy import ConnectionResponseContentTwitterStrategy - - -class ConnectionResponseContentTwitter(ConnectionPurposes, ConnectionResponseCommon): - """ - Response for connections with strategy=twitter - """ - - strategy: ConnectionResponseContentTwitterStrategy - options: typing.Optional[ConnectionOptionsTwitter] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_response_content_twitter_strategy.py b/src/auth0/management/types/connection_response_content_twitter_strategy.py deleted file mode 100644 index 0053b24f..00000000 --- a/src/auth0/management/types/connection_response_content_twitter_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionResponseContentTwitterStrategy = typing.Union[typing.Literal["twitter"], typing.Any] diff --git a/src/auth0/management/types/connection_response_content_untappd.py b/src/auth0/management/types/connection_response_content_untappd.py deleted file mode 100644 index 7632baec..00000000 --- a/src/auth0/management/types/connection_response_content_untappd.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_untappd import ConnectionOptionsUntappd -from .connection_purposes import ConnectionPurposes -from .connection_response_common import ConnectionResponseCommon -from .connection_response_content_untappd_strategy import ConnectionResponseContentUntappdStrategy - - -class ConnectionResponseContentUntappd(ConnectionPurposes, ConnectionResponseCommon): - """ - Response for connections with strategy=untappd - """ - - strategy: ConnectionResponseContentUntappdStrategy - options: typing.Optional[ConnectionOptionsUntappd] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_response_content_untappd_strategy.py b/src/auth0/management/types/connection_response_content_untappd_strategy.py deleted file mode 100644 index fcd7f23b..00000000 --- a/src/auth0/management/types/connection_response_content_untappd_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionResponseContentUntappdStrategy = typing.Union[typing.Literal["untappd"], typing.Any] diff --git a/src/auth0/management/types/connection_response_content_vkontakte.py b/src/auth0/management/types/connection_response_content_vkontakte.py deleted file mode 100644 index fcbdc9ce..00000000 --- a/src/auth0/management/types/connection_response_content_vkontakte.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_vkontakte import ConnectionOptionsVkontakte -from .connection_purposes import ConnectionPurposes -from .connection_response_common import ConnectionResponseCommon -from .connection_response_content_vkontakte_strategy import ConnectionResponseContentVkontakteStrategy - - -class ConnectionResponseContentVkontakte(ConnectionPurposes, ConnectionResponseCommon): - """ - Response for connections with strategy=vkontakte - """ - - strategy: ConnectionResponseContentVkontakteStrategy - options: typing.Optional[ConnectionOptionsVkontakte] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_response_content_vkontakte_strategy.py b/src/auth0/management/types/connection_response_content_vkontakte_strategy.py deleted file mode 100644 index 4baee9bc..00000000 --- a/src/auth0/management/types/connection_response_content_vkontakte_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionResponseContentVkontakteStrategy = typing.Union[typing.Literal["vkontakte"], typing.Any] diff --git a/src/auth0/management/types/connection_response_content_weibo.py b/src/auth0/management/types/connection_response_content_weibo.py deleted file mode 100644 index c4bb62db..00000000 --- a/src/auth0/management/types/connection_response_content_weibo.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_weibo import ConnectionOptionsWeibo -from .connection_purposes import ConnectionPurposes -from .connection_response_common import ConnectionResponseCommon -from .connection_response_content_weibo_strategy import ConnectionResponseContentWeiboStrategy - - -class ConnectionResponseContentWeibo(ConnectionPurposes, ConnectionResponseCommon): - """ - Response for connections with strategy=weibo - """ - - strategy: ConnectionResponseContentWeiboStrategy - options: typing.Optional[ConnectionOptionsWeibo] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_response_content_weibo_strategy.py b/src/auth0/management/types/connection_response_content_weibo_strategy.py deleted file mode 100644 index 3cf6bd38..00000000 --- a/src/auth0/management/types/connection_response_content_weibo_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionResponseContentWeiboStrategy = typing.Union[typing.Literal["weibo"], typing.Any] diff --git a/src/auth0/management/types/connection_response_content_windows_live.py b/src/auth0/management/types/connection_response_content_windows_live.py deleted file mode 100644 index c024ab22..00000000 --- a/src/auth0/management/types/connection_response_content_windows_live.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_windows_live import ConnectionOptionsWindowsLive -from .connection_purposes import ConnectionPurposes -from .connection_response_common import ConnectionResponseCommon -from .connection_response_content_windows_live_strategy import ConnectionResponseContentWindowsLiveStrategy - - -class ConnectionResponseContentWindowsLive(ConnectionPurposes, ConnectionResponseCommon): - """ - Response for connections with strategy=windowslive - """ - - strategy: ConnectionResponseContentWindowsLiveStrategy - options: typing.Optional[ConnectionOptionsWindowsLive] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_response_content_windows_live_strategy.py b/src/auth0/management/types/connection_response_content_windows_live_strategy.py deleted file mode 100644 index 5717fe37..00000000 --- a/src/auth0/management/types/connection_response_content_windows_live_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionResponseContentWindowsLiveStrategy = typing.Union[typing.Literal["windowslive"], typing.Any] diff --git a/src/auth0/management/types/connection_response_content_wordpress.py b/src/auth0/management/types/connection_response_content_wordpress.py deleted file mode 100644 index 09347dae..00000000 --- a/src/auth0/management/types/connection_response_content_wordpress.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_wordpress import ConnectionOptionsWordpress -from .connection_purposes import ConnectionPurposes -from .connection_response_common import ConnectionResponseCommon -from .connection_response_content_wordpress_strategy import ConnectionResponseContentWordpressStrategy - - -class ConnectionResponseContentWordpress(ConnectionPurposes, ConnectionResponseCommon): - """ - Response for connections with strategy=wordpress - """ - - strategy: ConnectionResponseContentWordpressStrategy - options: typing.Optional[ConnectionOptionsWordpress] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_response_content_wordpress_strategy.py b/src/auth0/management/types/connection_response_content_wordpress_strategy.py deleted file mode 100644 index e54bfd5b..00000000 --- a/src/auth0/management/types/connection_response_content_wordpress_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionResponseContentWordpressStrategy = typing.Union[typing.Literal["wordpress"], typing.Any] diff --git a/src/auth0/management/types/connection_response_content_yahoo.py b/src/auth0/management/types/connection_response_content_yahoo.py deleted file mode 100644 index 5d75b7a6..00000000 --- a/src/auth0/management/types/connection_response_content_yahoo.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_yahoo import ConnectionOptionsYahoo -from .connection_purposes import ConnectionPurposes -from .connection_response_common import ConnectionResponseCommon -from .connection_response_content_yahoo_strategy import ConnectionResponseContentYahooStrategy - - -class ConnectionResponseContentYahoo(ConnectionPurposes, ConnectionResponseCommon): - """ - Response for connections with strategy=yahoo - """ - - strategy: ConnectionResponseContentYahooStrategy - options: typing.Optional[ConnectionOptionsYahoo] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_response_content_yahoo_strategy.py b/src/auth0/management/types/connection_response_content_yahoo_strategy.py deleted file mode 100644 index 92faca5b..00000000 --- a/src/auth0/management/types/connection_response_content_yahoo_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionResponseContentYahooStrategy = typing.Union[typing.Literal["yahoo"], typing.Any] diff --git a/src/auth0/management/types/connection_response_content_yandex.py b/src/auth0/management/types/connection_response_content_yandex.py deleted file mode 100644 index 87892a03..00000000 --- a/src/auth0/management/types/connection_response_content_yandex.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_yandex import ConnectionOptionsYandex -from .connection_purposes import ConnectionPurposes -from .connection_response_common import ConnectionResponseCommon -from .connection_response_content_yandex_strategy import ConnectionResponseContentYandexStrategy - - -class ConnectionResponseContentYandex(ConnectionPurposes, ConnectionResponseCommon): - """ - Response for connections with strategy=yandex - """ - - strategy: ConnectionResponseContentYandexStrategy - options: typing.Optional[ConnectionOptionsYandex] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_response_content_yandex_strategy.py b/src/auth0/management/types/connection_response_content_yandex_strategy.py deleted file mode 100644 index 49bd1031..00000000 --- a/src/auth0/management/types/connection_response_content_yandex_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionResponseContentYandexStrategy = typing.Union[typing.Literal["yandex"], typing.Any] diff --git a/src/auth0/management/types/connection_response_modes_supported.py b/src/auth0/management/types/connection_response_modes_supported.py deleted file mode 100644 index 619ba9e2..00000000 --- a/src/auth0/management/types/connection_response_modes_supported.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionResponseModesSupported = typing.List[str] -""" -A list of the OAuth 2.0 response_mode values that this OP supports. If omitted, the default for Dynamic OpenID Providers is ["query", "fragment"] -""" diff --git a/src/auth0/management/types/connection_response_types_supported.py b/src/auth0/management/types/connection_response_types_supported.py deleted file mode 100644 index 6b80e2be..00000000 --- a/src/auth0/management/types/connection_response_types_supported.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionResponseTypesSupported = typing.List[str] -""" -A list of the OAuth 2.0 response_type values that this OP supports. Dynamic OpenID Providers MUST support the code, id_token, and the token id_token Response Type values -""" diff --git a/src/auth0/management/types/connection_scope_amazon.py b/src/auth0/management/types/connection_scope_amazon.py deleted file mode 100644 index ed9a356d..00000000 --- a/src/auth0/management/types/connection_scope_amazon.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from .connection_scope_array import ConnectionScopeArray - -ConnectionScopeAmazon = ConnectionScopeArray -""" -OAuth 2.0 scopes that will be requested from Amazon during authorization. This is automatically populated based on the profile and postal_code settings, plus any freeform_scopes. -""" diff --git a/src/auth0/management/types/connection_scope_array.py b/src/auth0/management/types/connection_scope_array.py deleted file mode 100644 index 26491d5d..00000000 --- a/src/auth0/management/types/connection_scope_array.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .connection_scope_item import ConnectionScopeItem - -ConnectionScopeArray = typing.List[ConnectionScopeItem] -""" -Array of custom OAuth 2.0 scopes to request during authentication. -""" diff --git a/src/auth0/management/types/connection_scope_array_facebook.py b/src/auth0/management/types/connection_scope_array_facebook.py deleted file mode 100644 index 9b3fd17a..00000000 --- a/src/auth0/management/types/connection_scope_array_facebook.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .connection_scope_item import ConnectionScopeItem - -ConnectionScopeArrayFacebook = typing.List[ConnectionScopeItem] -""" -Array of custom OAuth 2.0 scopes to request during authentication. -""" diff --git a/src/auth0/management/types/connection_scope_array_windows_live.py b/src/auth0/management/types/connection_scope_array_windows_live.py deleted file mode 100644 index 08443d31..00000000 --- a/src/auth0/management/types/connection_scope_array_windows_live.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from .connection_scope_array import ConnectionScopeArray - -ConnectionScopeArrayWindowsLive = ConnectionScopeArray -""" -Array of custom OAuth 2.0 scopes to request during authentication. -""" diff --git a/src/auth0/management/types/connection_scope_azure_ad.py b/src/auth0/management/types/connection_scope_azure_ad.py deleted file mode 100644 index 3d94b4e6..00000000 --- a/src/auth0/management/types/connection_scope_azure_ad.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionScopeAzureAd = typing.List[str] -""" -OAuth 2.0 scopes to request from Azure AD during authentication. Each scope represents a permission (e.g., 'User.Read', 'Group.Read.All'). Only applies with Microsoft Identity Platform v2.0. See Microsoft Graph permissions reference for available scopes. -""" diff --git a/src/auth0/management/types/connection_scope_facebook.py b/src/auth0/management/types/connection_scope_facebook.py deleted file mode 100644 index 50322a9e..00000000 --- a/src/auth0/management/types/connection_scope_facebook.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionScopeFacebook = str -""" -Computed comma-separated OAuth scope string sent to Facebook. -""" diff --git a/src/auth0/management/types/connection_scope_google_apps.py b/src/auth0/management/types/connection_scope_google_apps.py deleted file mode 100644 index eb11672b..00000000 --- a/src/auth0/management/types/connection_scope_google_apps.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .connection_scope_item_google_apps import ConnectionScopeItemGoogleApps - -ConnectionScopeGoogleApps = typing.List[ConnectionScopeItemGoogleApps] -""" -Additional OAuth scopes requested beyond the default `email profile` scopes; ignored unless `allow_setting_login_scopes` is true. -""" diff --git a/src/auth0/management/types/connection_scope_google_o_auth_2.py b/src/auth0/management/types/connection_scope_google_o_auth_2.py deleted file mode 100644 index 0480c43e..00000000 --- a/src/auth0/management/types/connection_scope_google_o_auth_2.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from .connection_scope_array import ConnectionScopeArray - -ConnectionScopeGoogleOAuth2 = ConnectionScopeArray -""" -Array of OAuth 2.0 scopes requested during Google authentication. -""" diff --git a/src/auth0/management/types/connection_scope_item.py b/src/auth0/management/types/connection_scope_item.py deleted file mode 100644 index d902618e..00000000 --- a/src/auth0/management/types/connection_scope_item.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionScopeItem = str -""" -A single OAuth 2.0 scope string -""" diff --git a/src/auth0/management/types/connection_scope_item_google_apps.py b/src/auth0/management/types/connection_scope_item_google_apps.py deleted file mode 100644 index 1fe4972d..00000000 --- a/src/auth0/management/types/connection_scope_item_google_apps.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionScopeItemGoogleApps = str -""" -An OAuth scope string. -""" diff --git a/src/auth0/management/types/connection_scope_linkedin.py b/src/auth0/management/types/connection_scope_linkedin.py deleted file mode 100644 index 07b7f469..00000000 --- a/src/auth0/management/types/connection_scope_linkedin.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from .connection_scope_array import ConnectionScopeArray - -ConnectionScopeLinkedin = ConnectionScopeArray -""" -Scopes to request from LinkedIn during OAuth. Use standard scopes such as r_liteprofile and r_emailaddress; legacy or partner scopes (e.g., r_basicprofile, r_fullprofile, rw_company_admin) may require LinkedIn approval and may not be available to new apps. -""" diff --git a/src/auth0/management/types/connection_scope_o_auth_2.py b/src/auth0/management/types/connection_scope_o_auth_2.py deleted file mode 100644 index 928f399a..00000000 --- a/src/auth0/management/types/connection_scope_o_auth_2.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionScopeOAuth2 = typing.Union[str, typing.List[str]] diff --git a/src/auth0/management/types/connection_scope_oidc.py b/src/auth0/management/types/connection_scope_oidc.py deleted file mode 100644 index 9331e788..00000000 --- a/src/auth0/management/types/connection_scope_oidc.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionScopeOidc = str -""" -Space-separated list of OAuth 2.0 scopes requested during authorization. Must include 'openid' (required by OIDC spec). Common values: 'openid profile email'. Additional scopes depend on the identity provider. -""" diff --git a/src/auth0/management/types/connection_scope_paypal.py b/src/auth0/management/types/connection_scope_paypal.py deleted file mode 100644 index 43c951f1..00000000 --- a/src/auth0/management/types/connection_scope_paypal.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from .connection_scope_array import ConnectionScopeArray - -ConnectionScopePaypal = ConnectionScopeArray -""" -OAuth 2.0 scopes requested from PayPal during authorization. Built automatically from the enabled attribute flags (profile, email, address, phone) plus any freeform_scopes. Always includes 'openid' as the base scope. -""" diff --git a/src/auth0/management/types/connection_scope_salesforce.py b/src/auth0/management/types/connection_scope_salesforce.py deleted file mode 100644 index a2f65e60..00000000 --- a/src/auth0/management/types/connection_scope_salesforce.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from .connection_scope_array import ConnectionScopeArray - -ConnectionScopeSalesforce = ConnectionScopeArray -""" -OAuth scopes to request from Salesforce. This is computed from enabled permission options and any additional freeform scopes. -""" diff --git a/src/auth0/management/types/connection_scopes_supported.py b/src/auth0/management/types/connection_scopes_supported.py deleted file mode 100644 index a8fbe40a..00000000 --- a/src/auth0/management/types/connection_scopes_supported.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionScopesSupported = typing.Optional[typing.List[str]] -""" -A list of the OAuth 2.0 [RFC6749] scope values that this server supports. The server MUST support the openid scope value. Servers MAY choose not to advertise some supported scope values even when this parameter is used, although those defined in [OpenID.Core] SHOULD be listed, if supported. RECOMMENDED but not REQUIRED -""" diff --git a/src/auth0/management/types/connection_scripts_o_auth_1.py b/src/auth0/management/types/connection_scripts_o_auth_1.py deleted file mode 100644 index 9006cc71..00000000 --- a/src/auth0/management/types/connection_scripts_o_auth_1.py +++ /dev/null @@ -1,35 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata - - -class ConnectionScriptsOAuth1(UniversalBaseModel): - """ - Custom scripts to transform user profile data or modify OAuth1 flow behavior - """ - - fetch_user_profile: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="fetchUserProfile"), - pydantic.Field( - alias="fetchUserProfile", - description="Custom JavaScript function to retrieve and transform user profile data from the identity provider. Called with the access token and token exchange response. Must return a user profile object. Executed in a sandboxed environment. If not provided, an empty profile object is used.", - ), - ] = None - """ - Custom JavaScript function to retrieve and transform user profile data from the identity provider. Called with the access token and token exchange response. Must return a user profile object. Executed in a sandboxed environment. If not provided, an empty profile object is used. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_scripts_o_auth_2.py b/src/auth0/management/types/connection_scripts_o_auth_2.py deleted file mode 100644 index 5005b3ba..00000000 --- a/src/auth0/management/types/connection_scripts_o_auth_2.py +++ /dev/null @@ -1,47 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata - - -class ConnectionScriptsOAuth2(UniversalBaseModel): - """ - Custom scripts to transform user profile data or modify OAuth2 flow behavior - """ - - fetch_user_profile: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="fetchUserProfile"), - pydantic.Field( - alias="fetchUserProfile", - description="Custom JavaScript function to retrieve and transform user profile data from the identity provider. Called with the access token and token exchange response. Must return a user profile object. Executed in a sandboxed environment. If not provided, an empty profile object is used.", - ), - ] = None - """ - Custom JavaScript function to retrieve and transform user profile data from the identity provider. Called with the access token and token exchange response. Must return a user profile object. Executed in a sandboxed environment. If not provided, an empty profile object is used. - """ - - get_logout_url: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="getLogoutUrl"), - pydantic.Field( - alias="getLogoutUrl", - description="Custom JavaScript function to dynamically construct the logout URL for the identity provider. Called with the request query parameters and must invoke a callback with the logout URL. Only used if 'logoutUrl' is not configured. Executed in a sandboxed environment.", - ), - ] = None - """ - Custom JavaScript function to dynamically construct the logout URL for the identity provider. Called with the request query parameters and must invoke a callback with the logout URL. Only used if 'logoutUrl' is not configured. Executed in a sandboxed environment. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_send_back_channel_nonce.py b/src/auth0/management/types/connection_send_back_channel_nonce.py deleted file mode 100644 index 7e977e8a..00000000 --- a/src/auth0/management/types/connection_send_back_channel_nonce.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionSendBackChannelNonce = bool -""" -When true and type is 'back_channel', includes a cryptographic nonce in authorization requests to prevent replay attacks. The identity provider must include this nonce in the ID token for validation. -""" diff --git a/src/auth0/management/types/connection_service_documentation.py b/src/auth0/management/types/connection_service_documentation.py deleted file mode 100644 index 4bc1b433..00000000 --- a/src/auth0/management/types/connection_service_documentation.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionServiceDocumentation = str -""" -URL of a page containing human-readable information that developers might want or need to know when using the OpenID Provider. In particular, if the OpenID Provider does not support Dynamic Client Registration, then information on how to register Clients needs to be provided in this documentation. -""" diff --git a/src/auth0/management/types/connection_set_user_root_attributes_enum.py b/src/auth0/management/types/connection_set_user_root_attributes_enum.py deleted file mode 100644 index 8708438a..00000000 --- a/src/auth0/management/types/connection_set_user_root_attributes_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionSetUserRootAttributesEnum = typing.Union[ - typing.Literal["on_each_login", "on_first_login", "never_on_login"], typing.Any -] diff --git a/src/auth0/management/types/connection_sha_1_thumbprint.py b/src/auth0/management/types/connection_sha_1_thumbprint.py deleted file mode 100644 index 6805d44d..00000000 --- a/src/auth0/management/types/connection_sha_1_thumbprint.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionSha1Thumbprint = str -""" -SHA-1 thumbprint of the certificate -""" diff --git a/src/auth0/management/types/connection_should_trust_email_verified_connection_enum.py b/src/auth0/management/types/connection_should_trust_email_verified_connection_enum.py deleted file mode 100644 index 2d4e3e13..00000000 --- a/src/auth0/management/types/connection_should_trust_email_verified_connection_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionShouldTrustEmailVerifiedConnectionEnum = typing.Union[ - typing.Literal["never_set_emails_as_verified", "always_set_emails_as_verified"], typing.Any -] diff --git a/src/auth0/management/types/connection_show_as_button.py b/src/auth0/management/types/connection_show_as_button.py deleted file mode 100644 index 3eab3271..00000000 --- a/src/auth0/management/types/connection_show_as_button.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionShowAsButton = bool -""" -Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to `false`. -""" diff --git a/src/auth0/management/types/connection_sign_in_endpoint_ad.py b/src/auth0/management/types/connection_sign_in_endpoint_ad.py deleted file mode 100644 index de492dd1..00000000 --- a/src/auth0/management/types/connection_sign_in_endpoint_ad.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from .connection_https_url_with_http_fallback_255 import ConnectionHttpsUrlWithHttpFallback255 - -ConnectionSignInEndpointAd = ConnectionHttpsUrlWithHttpFallback255 -""" -The sign-in endpoint type for the AD-LDAP connector agent (managed by the AD Connector agent). -""" diff --git a/src/auth0/management/types/connection_sign_in_endpoint_adfs.py b/src/auth0/management/types/connection_sign_in_endpoint_adfs.py deleted file mode 100644 index f772a386..00000000 --- a/src/auth0/management/types/connection_sign_in_endpoint_adfs.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from .connection_https_url_with_http_fallback_2048 import ConnectionHttpsUrlWithHttpFallback2048 - -ConnectionSignInEndpointAdfs = ConnectionHttpsUrlWithHttpFallback2048 -""" -Passive Requestor (WS-Fed) sign-in endpoint discovered from metadata or provided explicitly. -""" diff --git a/src/auth0/management/types/connection_sign_in_endpoint_saml.py b/src/auth0/management/types/connection_sign_in_endpoint_saml.py deleted file mode 100644 index dd77c839..00000000 --- a/src/auth0/management/types/connection_sign_in_endpoint_saml.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from .connection_https_url_with_http_fallback_2048 import ConnectionHttpsUrlWithHttpFallback2048 - -ConnectionSignInEndpointSaml = ConnectionHttpsUrlWithHttpFallback2048 -""" -Identity provider's SAML SingleSignOnService endpoint URL where Auth0 sends SAML authentication requests. This is the primary login URL for the SAML connection. Required unless using metadataUrl or metadataXml. -""" diff --git a/src/auth0/management/types/connection_sign_out_endpoint_saml.py b/src/auth0/management/types/connection_sign_out_endpoint_saml.py deleted file mode 100644 index 3a4d93d3..00000000 --- a/src/auth0/management/types/connection_sign_out_endpoint_saml.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from .connection_https_url_with_http_fallback_2048 import ConnectionHttpsUrlWithHttpFallback2048 - -ConnectionSignOutEndpointSaml = ConnectionHttpsUrlWithHttpFallback2048 -""" -Identity provider's SAML SingleLogoutService endpoint URL where Auth0 sends logout requests for federated sign-out. When not provided, defaults to signInEndpoint. Only used if disableSignout is false. -""" diff --git a/src/auth0/management/types/connection_sign_saml_request_saml.py b/src/auth0/management/types/connection_sign_saml_request_saml.py deleted file mode 100644 index 460d1fc8..00000000 --- a/src/auth0/management/types/connection_sign_saml_request_saml.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionSignSamlRequestSaml = bool -""" -When true, Auth0 signs SAML authentication requests using the connection's signing key. The signature includes the request's digest and is validated by the identity provider. Defaults to false (unsigned requests). -""" diff --git a/src/auth0/management/types/connection_signature_algorithm_enum_saml.py b/src/auth0/management/types/connection_signature_algorithm_enum_saml.py deleted file mode 100644 index 0361b126..00000000 --- a/src/auth0/management/types/connection_signature_algorithm_enum_saml.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionSignatureAlgorithmEnumSaml = typing.Union[typing.Literal["rsa-sha1", "rsa-sha256"], typing.Any] diff --git a/src/auth0/management/types/connection_signature_algorithm_saml.py b/src/auth0/management/types/connection_signature_algorithm_saml.py deleted file mode 100644 index ca4f49f7..00000000 --- a/src/auth0/management/types/connection_signature_algorithm_saml.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from .connection_signature_algorithm_enum_saml import ConnectionSignatureAlgorithmEnumSaml - -ConnectionSignatureAlgorithmSaml = ConnectionSignatureAlgorithmEnumSaml -""" -Algorithm used to sign SAML authentication requests and logout requests using the connection's signing key. Common values: 'rsa-sha256' (RSA signature with SHA-256 digest) or 'rsa-sha1'. Defaults to 'rsa-sha256'. -""" diff --git a/src/auth0/management/types/connection_signature_method_o_auth_1.py b/src/auth0/management/types/connection_signature_method_o_auth_1.py deleted file mode 100644 index e7a8e95e..00000000 --- a/src/auth0/management/types/connection_signature_method_o_auth_1.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionSignatureMethodOAuth1 = typing.Union[typing.Literal["RSA-SHA1"], typing.Any] diff --git a/src/auth0/management/types/connection_signing_cert_saml.py b/src/auth0/management/types/connection_signing_cert_saml.py deleted file mode 100644 index 5b1c10d0..00000000 --- a/src/auth0/management/types/connection_signing_cert_saml.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from .connection_signing_certificate_pem_saml import ConnectionSigningCertificatePemSaml - -ConnectionSigningCertSaml = ConnectionSigningCertificatePemSaml -""" -Base64-encoded X.509 certificate from the identity provider used to validate signatures in SAML responses and assertions. The certificate is decoded and used for cryptographic signature verification. -""" diff --git a/src/auth0/management/types/connection_signing_certificate_der_saml.py b/src/auth0/management/types/connection_signing_certificate_der_saml.py deleted file mode 100644 index 87aa8269..00000000 --- a/src/auth0/management/types/connection_signing_certificate_der_saml.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionSigningCertificateDerSaml = str -""" -X.509 signing certificate from the identity provider in .der format. Used to validate signatures in SAML Responses and Assertions. This is an alternative to signingCert and is kept for backward compatibility. Prefer using signingCert instead. -""" diff --git a/src/auth0/management/types/connection_signing_certificate_pem_ping_federate.py b/src/auth0/management/types/connection_signing_certificate_pem_ping_federate.py deleted file mode 100644 index ab6b7b30..00000000 --- a/src/auth0/management/types/connection_signing_certificate_pem_ping_federate.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionSigningCertificatePemPingFederate = str -""" -Base64-encoded X.509 certificate from the identity provider used to validate signatures in SAML responses and assertions. The certificate is decoded and used for cryptographic signature verification. -""" diff --git a/src/auth0/management/types/connection_signing_certificate_pem_saml.py b/src/auth0/management/types/connection_signing_certificate_pem_saml.py deleted file mode 100644 index 6beb1be4..00000000 --- a/src/auth0/management/types/connection_signing_certificate_pem_saml.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionSigningCertificatePemSaml = str -""" -Base64-encoded X.509 certificate from the identity provider used to validate signatures in SAML responses and assertions. The certificate is decoded and used for cryptographic signature verification. -""" diff --git a/src/auth0/management/types/connection_signing_key_saml.py b/src/auth0/management/types/connection_signing_key_saml.py deleted file mode 100644 index 838acbd1..00000000 --- a/src/auth0/management/types/connection_signing_key_saml.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class ConnectionSigningKeySaml(UniversalBaseModel): - """ - Key pair with 'key' and 'cert' properties for signing SAML messages - """ - - cert: typing.Optional[str] = pydantic.Field(default=None) - """ - Base64-encoded X.509 certificate in PEM format used by Auth0 to sign SAML requests and logout messages. - """ - - key: typing.Optional[str] = pydantic.Field(default=None) - """ - Private key in PEM format used by Auth0 to sign SAML requests and logout messages. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_signup_behavior_enum.py b/src/auth0/management/types/connection_signup_behavior_enum.py deleted file mode 100644 index a0537060..00000000 --- a/src/auth0/management/types/connection_signup_behavior_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionSignupBehaviorEnum = typing.Union[typing.Literal["allow", "block"], typing.Any] diff --git a/src/auth0/management/types/connection_strategy_enum.py b/src/auth0/management/types/connection_strategy_enum.py deleted file mode 100644 index d54edf12..00000000 --- a/src/auth0/management/types/connection_strategy_enum.py +++ /dev/null @@ -1,74 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionStrategyEnum = typing.Union[ - typing.Literal[ - "ad", - "adfs", - "amazon", - "apple", - "dropbox", - "bitbucket", - "auth0-oidc", - "auth0", - "baidu", - "bitly", - "box", - "custom", - "daccount", - "dwolla", - "email", - "evernote-sandbox", - "evernote", - "exact", - "facebook", - "fitbit", - "github", - "google-apps", - "google-oauth2", - "instagram", - "ip", - "line", - "linkedin", - "oauth1", - "oauth2", - "office365", - "oidc", - "okta", - "paypal", - "paypal-sandbox", - "pingfederate", - "planningcenter", - "salesforce-community", - "salesforce-sandbox", - "salesforce", - "samlp", - "sharepoint", - "shopify", - "shop", - "sms", - "soundcloud", - "thirtysevensignals", - "twitter", - "untappd", - "vkontakte", - "waad", - "weibo", - "windowslive", - "wordpress", - "yahoo", - "yandex", - "notion-mcp", - "asana", - "atlassian", - "cloudflare-mcp", - "gitlab", - "hubspot-mcp", - "linear-mcp", - "sentry-mcp", - "slack", - "auth0-adldap", - ], - typing.Any, -] diff --git a/src/auth0/management/types/connection_strategy_version_enum_linkedin.py b/src/auth0/management/types/connection_strategy_version_enum_linkedin.py deleted file mode 100644 index 4cff1e66..00000000 --- a/src/auth0/management/types/connection_strategy_version_enum_linkedin.py +++ /dev/null @@ -1,3 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionStrategyVersionEnumLinkedin = int diff --git a/src/auth0/management/types/connection_strategy_version_enum_windows_live.py b/src/auth0/management/types/connection_strategy_version_enum_windows_live.py deleted file mode 100644 index 616c825f..00000000 --- a/src/auth0/management/types/connection_strategy_version_enum_windows_live.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionStrategyVersionEnumWindowsLive = int -""" -Version number of the windowslive strategy implementation. -""" diff --git a/src/auth0/management/types/connection_subject_types_supported.py b/src/auth0/management/types/connection_subject_types_supported.py deleted file mode 100644 index 2fe6b2ea..00000000 --- a/src/auth0/management/types/connection_subject_types_supported.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionSubjectTypesSupported = typing.List[str] -""" -A list of the Subject Identifier types that this OP supports. Valid types include pairwise and public -""" diff --git a/src/auth0/management/types/connection_template_sms.py b/src/auth0/management/types/connection_template_sms.py deleted file mode 100644 index 203b4c20..00000000 --- a/src/auth0/management/types/connection_template_sms.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionTemplateSms = str -""" -SMS message template. Use `@@password@@` as a placeholder for the verification code. -""" diff --git a/src/auth0/management/types/connection_template_syntax_enum_sms.py b/src/auth0/management/types/connection_template_syntax_enum_sms.py deleted file mode 100644 index c6b1b6ce..00000000 --- a/src/auth0/management/types/connection_template_syntax_enum_sms.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionTemplateSyntaxEnumSms = typing.Union[typing.Literal["liquid", "md_with_macros"], typing.Any] diff --git a/src/auth0/management/types/connection_tenant_domain.py b/src/auth0/management/types/connection_tenant_domain.py deleted file mode 100644 index 813bb0a8..00000000 --- a/src/auth0/management/types/connection_tenant_domain.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionTenantDomain = str -""" -Tenant domain -""" diff --git a/src/auth0/management/types/connection_tenant_domain_ad.py b/src/auth0/management/types/connection_tenant_domain_ad.py deleted file mode 100644 index 619d18da..00000000 --- a/src/auth0/management/types/connection_tenant_domain_ad.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionTenantDomainAd = str -""" -Primary AD domain hint used for HRD and discovery. -""" diff --git a/src/auth0/management/types/connection_tenant_domain_azure_ad_one.py b/src/auth0/management/types/connection_tenant_domain_azure_ad_one.py deleted file mode 100644 index 5000e3b8..00000000 --- a/src/auth0/management/types/connection_tenant_domain_azure_ad_one.py +++ /dev/null @@ -1,3 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionTenantDomainAzureAdOne = str diff --git a/src/auth0/management/types/connection_tenant_domain_google_apps.py b/src/auth0/management/types/connection_tenant_domain_google_apps.py deleted file mode 100644 index b7ea9e6d..00000000 --- a/src/auth0/management/types/connection_tenant_domain_google_apps.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from .connection_tenant_domain import ConnectionTenantDomain - -ConnectionTenantDomainGoogleApps = ConnectionTenantDomain -""" -The Google Workspace primary domain used to identify the organization during authentication. -""" diff --git a/src/auth0/management/types/connection_tenant_domain_saml.py b/src/auth0/management/types/connection_tenant_domain_saml.py deleted file mode 100644 index 737ac677..00000000 --- a/src/auth0/management/types/connection_tenant_domain_saml.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionTenantDomainSaml = str -""" -For SAML connections, the tenant domain used to construct the login endpoint URL. Can be a string for single-tenant or an array of strings for multi-tenant validation. -""" diff --git a/src/auth0/management/types/connection_tenant_id_azure_ad.py b/src/auth0/management/types/connection_tenant_id_azure_ad.py deleted file mode 100644 index ff1ca4a5..00000000 --- a/src/auth0/management/types/connection_tenant_id_azure_ad.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionTenantIdAzureAd = str -""" -The Azure AD tenant ID as a UUID. The unique identifier for your Azure AD organization. Must be a valid 36-character UUID. -""" diff --git a/src/auth0/management/types/connection_thumbprints.py b/src/auth0/management/types/connection_thumbprints.py deleted file mode 100644 index 8764f29a..00000000 --- a/src/auth0/management/types/connection_thumbprints.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionThumbprints = typing.List[str] -""" -Array of certificate thumbprints (SHA-128 hex hashes) for validating SAML signatures. Used with WS-Federation protocol. Maximum 20 thumbprints. Each thumbprint must be a hexadecimal string. -""" diff --git a/src/auth0/management/types/connection_thumbprints_ad.py b/src/auth0/management/types/connection_thumbprints_ad.py deleted file mode 100644 index f76a00f1..00000000 --- a/src/auth0/management/types/connection_thumbprints_ad.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .connection_sha_1_thumbprint import ConnectionSha1Thumbprint - -ConnectionThumbprintsAd = typing.List[ConnectionSha1Thumbprint] -""" -Array of certificate SHA-1 thumbprints for validating signatures. Managed by Auth0 when using the AD Connector agent. -""" diff --git a/src/auth0/management/types/connection_thumbprints_saml.py b/src/auth0/management/types/connection_thumbprints_saml.py deleted file mode 100644 index 7193b408..00000000 --- a/src/auth0/management/types/connection_thumbprints_saml.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .connection_sha_1_thumbprint import ConnectionSha1Thumbprint - -ConnectionThumbprintsSaml = typing.List[ConnectionSha1Thumbprint] -""" -SHA-1 thumbprints (fingerprints) of the identity provider's signing certificates. Automatically computed from signingCert during connection creation. Each thumbprint must be a 40-character hexadecimal string. -""" diff --git a/src/auth0/management/types/connection_thumbprints_sha_384.py b/src/auth0/management/types/connection_thumbprints_sha_384.py deleted file mode 100644 index cce1b26f..00000000 --- a/src/auth0/management/types/connection_thumbprints_sha_384.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionThumbprintsSha384 = typing.List[str] -""" -Array of certificate thumbprints (SHA-384 hex hashes) for validating SAML signatures. Used with WS-Federation protocol. Maximum 20 thumbprints. Each thumbprint must be a 96-character hexadecimal string. -""" diff --git a/src/auth0/management/types/connection_thumbprints_sha_384_ad.py b/src/auth0/management/types/connection_thumbprints_sha_384_ad.py deleted file mode 100644 index 2e4f4800..00000000 --- a/src/auth0/management/types/connection_thumbprints_sha_384_ad.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionThumbprintsSha384Ad = typing.List[str] -""" -Array of certificate SHA-384 thumbprints for validating signatures. Managed by Auth0 when using the AD Connector agent. -""" diff --git a/src/auth0/management/types/connection_thumbprints_sha_384_saml.py b/src/auth0/management/types/connection_thumbprints_sha_384_saml.py deleted file mode 100644 index fb1a7be5..00000000 --- a/src/auth0/management/types/connection_thumbprints_sha_384_saml.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionThumbprintsSha384Saml = typing.List[str] -""" -SHA-384 thumbprints (fingerprints) of the identity provider's signing certificates. Automatically computed from signingCert during connection creation. Each thumbprint must be a 96-character hexadecimal string. -""" diff --git a/src/auth0/management/types/connection_token_endpoint.py b/src/auth0/management/types/connection_token_endpoint.py deleted file mode 100644 index a8902691..00000000 --- a/src/auth0/management/types/connection_token_endpoint.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionTokenEndpoint = str -""" -URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow. -""" diff --git a/src/auth0/management/types/connection_token_endpoint_auth_method_enum.py b/src/auth0/management/types/connection_token_endpoint_auth_method_enum.py deleted file mode 100644 index 00390580..00000000 --- a/src/auth0/management/types/connection_token_endpoint_auth_method_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionTokenEndpointAuthMethodEnum = typing.Union[ - typing.Literal["client_secret_post", "private_key_jwt"], typing.Any -] diff --git a/src/auth0/management/types/connection_token_endpoint_auth_methods_supported.py b/src/auth0/management/types/connection_token_endpoint_auth_methods_supported.py deleted file mode 100644 index 703e3bdf..00000000 --- a/src/auth0/management/types/connection_token_endpoint_auth_methods_supported.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionTokenEndpointAuthMethodsSupported = typing.List[str] -""" -JSON array containing a list of Client Authentication methods supported by this Token Endpoint. The options are client_secret_post, client_secret_basic, client_secret_jwt, and private_key_jwt, as described in Section 9 of OpenID Connect Core 1.0 [OpenID.Core]. Other authentication methods MAY be defined by extensions. If omitted, the default is client_secret_basic -- the HTTP Basic Authentication Scheme specified in Section 2.3.1 of OAuth 2.0 [RFC6749]. -""" diff --git a/src/auth0/management/types/connection_token_endpoint_auth_signing_alg_enum.py b/src/auth0/management/types/connection_token_endpoint_auth_signing_alg_enum.py deleted file mode 100644 index e5a27995..00000000 --- a/src/auth0/management/types/connection_token_endpoint_auth_signing_alg_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionTokenEndpointAuthSigningAlgEnum = typing.Union[ - typing.Literal["ES256", "ES384", "PS256", "PS384", "RS256", "RS384", "RS512"], typing.Any -] diff --git a/src/auth0/management/types/connection_token_endpoint_auth_signing_alg_values_supported.py b/src/auth0/management/types/connection_token_endpoint_auth_signing_alg_values_supported.py deleted file mode 100644 index 36680818..00000000 --- a/src/auth0/management/types/connection_token_endpoint_auth_signing_alg_values_supported.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionTokenEndpointAuthSigningAlgValuesSupported = typing.List[str] -""" -JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used. -""" diff --git a/src/auth0/management/types/connection_token_endpoint_jwtca_aud_format_enum_oidc.py b/src/auth0/management/types/connection_token_endpoint_jwtca_aud_format_enum_oidc.py deleted file mode 100644 index 4efd80b3..00000000 --- a/src/auth0/management/types/connection_token_endpoint_jwtca_aud_format_enum_oidc.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionTokenEndpointJwtcaAudFormatEnumOidc = typing.Union[typing.Literal["issuer", "token_endpoint"], typing.Any] diff --git a/src/auth0/management/types/connection_totp_email.py b/src/auth0/management/types/connection_totp_email.py deleted file mode 100644 index 45d4aa4b..00000000 --- a/src/auth0/management/types/connection_totp_email.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .connection_totp_length_email import ConnectionTotpLengthEmail -from .connection_totp_time_step_email import ConnectionTotpTimeStepEmail - - -class ConnectionTotpEmail(UniversalBaseModel): - length: typing.Optional[ConnectionTotpLengthEmail] = None - time_step: typing.Optional[ConnectionTotpTimeStepEmail] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_totp_length_email.py b/src/auth0/management/types/connection_totp_length_email.py deleted file mode 100644 index 1d79cd72..00000000 --- a/src/auth0/management/types/connection_totp_length_email.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from .connection_totp_length_passwordless import ConnectionTotpLengthPasswordless - -ConnectionTotpLengthEmail = ConnectionTotpLengthPasswordless -""" -Length of the TOTP code -""" diff --git a/src/auth0/management/types/connection_totp_length_passwordless.py b/src/auth0/management/types/connection_totp_length_passwordless.py deleted file mode 100644 index 67eed572..00000000 --- a/src/auth0/management/types/connection_totp_length_passwordless.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionTotpLengthPasswordless = int -""" -Length of the TOTP code -""" diff --git a/src/auth0/management/types/connection_totp_length_sms.py b/src/auth0/management/types/connection_totp_length_sms.py deleted file mode 100644 index 57ddf3c4..00000000 --- a/src/auth0/management/types/connection_totp_length_sms.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from .connection_totp_length_passwordless import ConnectionTotpLengthPasswordless - -ConnectionTotpLengthSms = ConnectionTotpLengthPasswordless -""" -Number of digits in the verification code -""" diff --git a/src/auth0/management/types/connection_totp_sms.py b/src/auth0/management/types/connection_totp_sms.py deleted file mode 100644 index 5067384c..00000000 --- a/src/auth0/management/types/connection_totp_sms.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .connection_totp_length_sms import ConnectionTotpLengthSms -from .connection_totp_time_step_sms import ConnectionTotpTimeStepSms - - -class ConnectionTotpSms(UniversalBaseModel): - """ - Time-based One-Time Password (TOTP) options - """ - - length: typing.Optional[ConnectionTotpLengthSms] = None - time_step: typing.Optional[ConnectionTotpTimeStepSms] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_totp_time_step_email.py b/src/auth0/management/types/connection_totp_time_step_email.py deleted file mode 100644 index e7222753..00000000 --- a/src/auth0/management/types/connection_totp_time_step_email.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from .connection_totp_time_step_passwordless import ConnectionTotpTimeStepPasswordless - -ConnectionTotpTimeStepEmail = ConnectionTotpTimeStepPasswordless -""" -Time step for TOTP in seconds -""" diff --git a/src/auth0/management/types/connection_totp_time_step_passwordless.py b/src/auth0/management/types/connection_totp_time_step_passwordless.py deleted file mode 100644 index 0eed7a40..00000000 --- a/src/auth0/management/types/connection_totp_time_step_passwordless.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionTotpTimeStepPasswordless = int -""" -Time step for TOTP in seconds -""" diff --git a/src/auth0/management/types/connection_totp_time_step_sms.py b/src/auth0/management/types/connection_totp_time_step_sms.py deleted file mode 100644 index c71c0b46..00000000 --- a/src/auth0/management/types/connection_totp_time_step_sms.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from .connection_totp_time_step_passwordless import ConnectionTotpTimeStepPasswordless - -ConnectionTotpTimeStepSms = ConnectionTotpTimeStepPasswordless -""" -Code validity duration in seconds -""" diff --git a/src/auth0/management/types/connection_twilio_sid_sms.py b/src/auth0/management/types/connection_twilio_sid_sms.py deleted file mode 100644 index 4115b079..00000000 --- a/src/auth0/management/types/connection_twilio_sid_sms.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionTwilioSidSms = str -""" -Twilio Account SID -""" diff --git a/src/auth0/management/types/connection_twilio_token_sms.py b/src/auth0/management/types/connection_twilio_token_sms.py deleted file mode 100644 index b3c71865..00000000 --- a/src/auth0/management/types/connection_twilio_token_sms.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionTwilioTokenSms = str -""" -Twilio Auth Token -""" diff --git a/src/auth0/management/types/connection_type_enum_oidc.py b/src/auth0/management/types/connection_type_enum_oidc.py deleted file mode 100644 index 9630fd17..00000000 --- a/src/auth0/management/types/connection_type_enum_oidc.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionTypeEnumOidc = typing.Union[typing.Literal["back_channel", "front_channel"], typing.Any] diff --git a/src/auth0/management/types/connection_type_enum_okta.py b/src/auth0/management/types/connection_type_enum_okta.py deleted file mode 100644 index 5f550317..00000000 --- a/src/auth0/management/types/connection_type_enum_okta.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionTypeEnumOkta = typing.Union[typing.Literal["back_channel"], typing.Any] diff --git a/src/auth0/management/types/connection_ui_locales_supported.py b/src/auth0/management/types/connection_ui_locales_supported.py deleted file mode 100644 index 862ba411..00000000 --- a/src/auth0/management/types/connection_ui_locales_supported.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionUiLocalesSupported = typing.List[str] -""" -Languages and scripts supported for the user interface, represented as a JSON array of BCP47 [RFC5646] language tag values. -""" diff --git a/src/auth0/management/types/connection_upstream_additional_properties.py b/src/auth0/management/types/connection_upstream_additional_properties.py deleted file mode 100644 index c3ac831e..00000000 --- a/src/auth0/management/types/connection_upstream_additional_properties.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .connection_upstream_alias import ConnectionUpstreamAlias -from .connection_upstream_value import ConnectionUpstreamValue - -ConnectionUpstreamAdditionalProperties = typing.Union[ConnectionUpstreamAlias, ConnectionUpstreamValue] diff --git a/src/auth0/management/types/connection_upstream_alias.py b/src/auth0/management/types/connection_upstream_alias.py deleted file mode 100644 index 71cf0c5b..00000000 --- a/src/auth0/management/types/connection_upstream_alias.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .connection_upstream_alias_enum import ConnectionUpstreamAliasEnum - - -class ConnectionUpstreamAlias(UniversalBaseModel): - alias: typing.Optional[ConnectionUpstreamAliasEnum] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_upstream_alias_enum.py b/src/auth0/management/types/connection_upstream_alias_enum.py deleted file mode 100644 index cab732b9..00000000 --- a/src/auth0/management/types/connection_upstream_alias_enum.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionUpstreamAliasEnum = typing.Union[ - typing.Literal[ - "acr_values", - "audience", - "client_id", - "display", - "id_token_hint", - "login_hint", - "max_age", - "prompt", - "resource", - "response_mode", - "response_type", - "ui_locales", - ], - typing.Any, -] diff --git a/src/auth0/management/types/connection_upstream_params.py b/src/auth0/management/types/connection_upstream_params.py deleted file mode 100644 index fcf1618f..00000000 --- a/src/auth0/management/types/connection_upstream_params.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .connection_upstream_additional_properties import ConnectionUpstreamAdditionalProperties - -ConnectionUpstreamParams = typing.Optional[typing.Dict[str, typing.Optional[ConnectionUpstreamAdditionalProperties]]] -""" -Options for adding parameters in the request to the upstream IdP -""" diff --git a/src/auth0/management/types/connection_upstream_params_facebook.py b/src/auth0/management/types/connection_upstream_params_facebook.py deleted file mode 100644 index 032c3400..00000000 --- a/src/auth0/management/types/connection_upstream_params_facebook.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .connection_upstream_additional_properties import ConnectionUpstreamAdditionalProperties - -ConnectionUpstreamParamsFacebook = typing.Dict[str, ConnectionUpstreamAdditionalProperties] -""" -Options for adding parameters in the request to the upstream IdP. See https://auth0.com/docs/authenticate/identity-providers/pass-parameters-to-idps -""" diff --git a/src/auth0/management/types/connection_upstream_value.py b/src/auth0/management/types/connection_upstream_value.py deleted file mode 100644 index 408e622c..00000000 --- a/src/auth0/management/types/connection_upstream_value.py +++ /dev/null @@ -1,19 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class ConnectionUpstreamValue(UniversalBaseModel): - value: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_use_common_endpoint_azure_ad.py b/src/auth0/management/types/connection_use_common_endpoint_azure_ad.py deleted file mode 100644 index 5131fd43..00000000 --- a/src/auth0/management/types/connection_use_common_endpoint_azure_ad.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionUseCommonEndpointAzureAd = bool -""" -When enabled (true), uses the Azure AD common endpoint for multi-tenant authentication. Allows users from any Azure AD organization to sign in. Requires userid_attribute set to 'sub' (not 'oid'). Cannot be used with SCIM provisioning. Defaults to false. -""" diff --git a/src/auth0/management/types/connection_use_oauth_spec_scope.py b/src/auth0/management/types/connection_use_oauth_spec_scope.py deleted file mode 100644 index 79ee599a..00000000 --- a/src/auth0/management/types/connection_use_oauth_spec_scope.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionUseOauthSpecScope = bool -""" -When true, uses space-delimited scopes (per OAuth 2.0 spec) instead of comma-delimited when calling the identity provider's authorization endpoint. Only relevant when using the connection_scope parameter. See https://auth0.com/docs/authenticate/identity-providers/adding-scopes-for-an-external-idp#pass-scopes-to-authorize-endpoint -""" diff --git a/src/auth0/management/types/connection_user_authorization_urlo_auth_1.py b/src/auth0/management/types/connection_user_authorization_urlo_auth_1.py deleted file mode 100644 index 4ed3ed0a..00000000 --- a/src/auth0/management/types/connection_user_authorization_urlo_auth_1.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from .connection_https_url_with_http_fallback_255 import ConnectionHttpsUrlWithHttpFallback255 - -ConnectionUserAuthorizationUrloAuth1 = ConnectionHttpsUrlWithHttpFallback255 -""" -The URL of the OAuth 1.0a user-authorization endpoint. This endpoint is used to redirect users to the provider's site to authorize the temporary request token obtained from the request-token endpoint during the OAuth 1.0a authentication flow. -""" diff --git a/src/auth0/management/types/connection_user_id_attribute_saml.py b/src/auth0/management/types/connection_user_id_attribute_saml.py deleted file mode 100644 index 7e8b091d..00000000 --- a/src/auth0/management/types/connection_user_id_attribute_saml.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionUserIdAttributeSaml = str -""" -Custom SAML assertion attribute to use as the unique user identifier. When provided, this attribute is prepended to the default user_id mapping list with highest priority. Accepts a string (single SAML attribute name). -""" diff --git a/src/auth0/management/types/connection_userid_attribute_azure_ad.py b/src/auth0/management/types/connection_userid_attribute_azure_ad.py deleted file mode 100644 index 2c4407c1..00000000 --- a/src/auth0/management/types/connection_userid_attribute_azure_ad.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from .connection_userid_attribute_enum_azure_ad import ConnectionUseridAttributeEnumAzureAd - -ConnectionUseridAttributeAzureAd = ConnectionUseridAttributeEnumAzureAd -""" -The Azure AD claim to use as the unique user identifier. 'oid' (Object ID) is recommended for single-tenant connections and required for SCIM. 'sub' (Subject) is required for multi-tenant/common endpoint. Only applies with OpenID Connect protocol. -""" diff --git a/src/auth0/management/types/connection_userid_attribute_enum_azure_ad.py b/src/auth0/management/types/connection_userid_attribute_enum_azure_ad.py deleted file mode 100644 index a8456b12..00000000 --- a/src/auth0/management/types/connection_userid_attribute_enum_azure_ad.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionUseridAttributeEnumAzureAd = typing.Union[typing.Literal["oid", "sub"], typing.Any] diff --git a/src/auth0/management/types/connection_userinfo_encryption_alg_values_supported.py b/src/auth0/management/types/connection_userinfo_encryption_alg_values_supported.py deleted file mode 100644 index 961482cf..00000000 --- a/src/auth0/management/types/connection_userinfo_encryption_alg_values_supported.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionUserinfoEncryptionAlgValuesSupported = typing.List[str] -""" -JSON array containing a list of the JWE [JWE] encryption algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. -""" diff --git a/src/auth0/management/types/connection_userinfo_encryption_enc_values_supported.py b/src/auth0/management/types/connection_userinfo_encryption_enc_values_supported.py deleted file mode 100644 index 6a4011fe..00000000 --- a/src/auth0/management/types/connection_userinfo_encryption_enc_values_supported.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionUserinfoEncryptionEncValuesSupported = typing.List[str] -""" -JSON array containing a list of the JWE encryption algorithms (enc values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. -""" diff --git a/src/auth0/management/types/connection_userinfo_endpoint.py b/src/auth0/management/types/connection_userinfo_endpoint.py deleted file mode 100644 index 6fdd9b9a..00000000 --- a/src/auth0/management/types/connection_userinfo_endpoint.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectionUserinfoEndpoint = str -""" -Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token. -""" diff --git a/src/auth0/management/types/connection_userinfo_signing_alg_values_supported.py b/src/auth0/management/types/connection_userinfo_signing_alg_values_supported.py deleted file mode 100644 index e04ac05b..00000000 --- a/src/auth0/management/types/connection_userinfo_signing_alg_values_supported.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionUserinfoSigningAlgValuesSupported = typing.List[str] -""" -JSON array containing a list of the JWS [JWS] signing algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. The value none MAY be included. -""" diff --git a/src/auth0/management/types/connection_username_validation_options.py b/src/auth0/management/types/connection_username_validation_options.py deleted file mode 100644 index d3b1610f..00000000 --- a/src/auth0/management/types/connection_username_validation_options.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class ConnectionUsernameValidationOptions(UniversalBaseModel): - min: int - max: int - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_validation_options.py b/src/auth0/management/types/connection_validation_options.py deleted file mode 100644 index b6ad46d7..00000000 --- a/src/auth0/management/types/connection_validation_options.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .connection_username_validation_options import ConnectionUsernameValidationOptions - - -class ConnectionValidationOptions(UniversalBaseModel): - """ - Options for validation - """ - - username: typing.Optional[ConnectionUsernameValidationOptions] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/connection_waad_protocol.py b/src/auth0/management/types/connection_waad_protocol.py deleted file mode 100644 index 12036be9..00000000 --- a/src/auth0/management/types/connection_waad_protocol.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from .connection_waad_protocol_enum_azure_ad import ConnectionWaadProtocolEnumAzureAd - -ConnectionWaadProtocol = ConnectionWaadProtocolEnumAzureAd -""" -The authentication protocol for Azure AD v1 endpoints. 'openid-connect' (default, recommended) uses modern OAuth 2.0/OIDC. 'ws-federation' is a legacy SAML-based protocol for older integrations. Only available with Azure AD v1 API. -""" diff --git a/src/auth0/management/types/connection_waad_protocol_enum_azure_ad.py b/src/auth0/management/types/connection_waad_protocol_enum_azure_ad.py deleted file mode 100644 index c3153147..00000000 --- a/src/auth0/management/types/connection_waad_protocol_enum_azure_ad.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionWaadProtocolEnumAzureAd = typing.Union[typing.Literal["ws-federation", "openid-connect"], typing.Any] diff --git a/src/auth0/management/types/connections_discovery_url.py b/src/auth0/management/types/connections_discovery_url.py deleted file mode 100644 index 7da38dad..00000000 --- a/src/auth0/management/types/connections_discovery_url.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionsDiscoveryUrl = typing.Optional[str] -""" -URL of the identity provider's OIDC Discovery endpoint (/.well-known/openid-configuration). When provided and oidc_metadata is empty, Auth0 automatically retrieves the provider's configuration including endpoints and supported features. Only applicable when strategy=oidc, okta, or samlp. -""" diff --git a/src/auth0/management/types/connections_metadata.py b/src/auth0/management/types/connections_metadata.py deleted file mode 100644 index 3e25e29e..00000000 --- a/src/auth0/management/types/connections_metadata.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConnectionsMetadata = typing.Dict[str, typing.Optional[str]] -""" -Metadata associated with the connection in the form of an object with string values (max 255 chars). Maximum of 10 metadata properties allowed. -""" diff --git a/src/auth0/management/types/connections_oidc_metadata.py b/src/auth0/management/types/connections_oidc_metadata.py deleted file mode 100644 index 342165f9..00000000 --- a/src/auth0/management/types/connections_oidc_metadata.py +++ /dev/null @@ -1,216 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class ConnectionsOidcMetadata(UniversalBaseModel): - """ - Additional OIDC metadata to include in the discovery document. Only applicable when strategy=oidc, okta, or samlp. - """ - - issuer: typing.Optional[str] = pydantic.Field(default=None) - """ - The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider. - """ - - authorization_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow. - """ - - token_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow. - """ - - userinfo_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token. - """ - - jwks_uri: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures. - """ - - registration_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the OPs Dynamic Client Registration Endpoint. RECOMMENDED but not REQUIRED. https://openid.net/specs/openid-connect-discovery-1_0.html#OpenID.Registration - """ - - scopes_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the OAuth 2.0 [RFC6749] scope values that this server supports. The server MUST support the openid scope value. Servers MAY choose not to advertise some supported scope values even when this parameter is used, although those defined in [OpenID.Core] SHOULD be listed, if supported. RECOMMENDED but not REQUIRED - """ - - response_modes_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the OAuth 2.0 response_mode values that this OP supports. If omitted, the default for Dynamic OpenID Providers is ["query", "fragment"] - """ - - response_types_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the OAuth 2.0 response_type values that this OP supports. Dynamic OpenID Providers MUST support the code, id_token, and the token id_token Response Type values - """ - - grant_types_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the OAuth 2.0 Grant Type values that this OP supports. Dynamic OpenID Providers MUST support the authorization_code and implicit Grant Type values and MAY support other Grant Types. If omitted, the default value is ["authorization_code", "implicit"]. - """ - - acr_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the Authentication Context Class References that this OP supports - """ - - subject_types_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the Subject Identifier types that this OP supports. Valid types include pairwise and public - """ - - id_token_signing_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the JWS signing algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be included. The value none MAY be supported, but MUST NOT be used unless the Response Type used returns no ID Token from the Authorization Endpoint (such as when using the Authorization Code Flow). https://datatracker.ietf.org/doc/html/rfc7518 - """ - - id_token_encryption_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT - """ - - id_token_encryption_enc_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for the ID Token to encode the Claims in a JWT [JWT]. - """ - - userinfo_signing_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS [JWS] signing algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. The value none MAY be included. - """ - - userinfo_encryption_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE [JWE] encryption algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. - """ - - userinfo_encryption_enc_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (enc values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. - """ - - request_object_signing_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for Request Objects, which are described in Section 6.1 of OpenID Connect Core 1.0 [OpenID.Core]. These algorithms are used both when the Request Object is passed by value (using the request parameter) and when it is passed by reference (using the request_uri parameter). Servers SHOULD support none and RS256. - """ - - request_object_encryption_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference. - """ - - request_object_encryption_enc_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference. - """ - - token_endpoint_auth_methods_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of Client Authentication methods supported by this Token Endpoint. The options are client_secret_post, client_secret_basic, client_secret_jwt, and private_key_jwt, as described in Section 9 of OpenID Connect Core 1.0 [OpenID.Core]. Other authentication methods MAY be defined by extensions. If omitted, the default is client_secret_basic -- the HTTP Basic Authentication Scheme specified in Section 2.3.1 of OAuth 2.0 [RFC6749]. - """ - - token_endpoint_auth_signing_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used. - """ - - display_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the display parameter values that the OpenID Provider supports. These values are described in Section 3.1.2.1 of OpenID Connect Core 1.0 [OpenID.Core] - """ - - claim_types_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the Claim Types that the OpenID Provider supports. These Claim Types are described in Section 5.6 of OpenID Connect Core 1.0 [OpenID.Core]. If omitted, the implementation supports only normal Claims. - """ - - claims_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the Claim Names of the Claims that the OpenID Provider MAY be able to supply values for. Note that for privacy or other reasons, this might not be an exhaustive list. - """ - - service_documentation: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of a page containing human-readable information that developers might want or need to know when using the OpenID Provider. In particular, if the OpenID Provider does not support Dynamic Client Registration, then information on how to register Clients needs to be provided in this documentation. - """ - - claims_locales_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Languages and scripts supported for values in Claims being returned, represented as a JSON array of BCP47 [RFC5646] language tag values. Not all languages and scripts are necessarily supported for all Claim values. - """ - - ui_locales_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Languages and scripts supported for the user interface, represented as a JSON array of BCP47 [RFC5646] language tag values. - """ - - claims_parameter_supported: typing.Optional[bool] = pydantic.Field(default=None) - """ - Boolean value specifying whether the OP supports use of the claims parameter, with true indicating support. If omitted, the default value is false. - """ - - request_parameter_supported: typing.Optional[bool] = pydantic.Field(default=None) - """ - Boolean value specifying whether the OP supports use of the request parameter, with true indicating support. If omitted, the default value is false. - """ - - request_uri_parameter_supported: typing.Optional[bool] = pydantic.Field(default=None) - """ - Boolean value specifying whether the OP supports use of the request_uri parameter, with true indicating support. If omitted, the default value is false. - """ - - require_request_uri_registration: typing.Optional[bool] = pydantic.Field(default=None) - """ - Boolean value specifying whether the OP requires use of the request_uri parameter. If omitted, the default value is false. - """ - - op_policy_uri: typing.Optional[str] = pydantic.Field(default=None) - """ - URL that the OpenID Provider provides to the person registering the Client to read about the OPs requirements on how the Relying Party can use the data provided by the OP. The registration process SHOULD display this URL to the person registering the Client if it is given. - """ - - op_tos_uri: typing.Optional[str] = pydantic.Field(default=None) - """ - URL that the OpenID Provider provides to the person registering the Client to read about OpenID Providers terms of service. The registration process SHOULD display this URL to the person registering the Client if it is given. - """ - - end_session_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's logout/end session endpoint. When configured as a static URL, users are redirected here after logging out from Auth0. Must use HTTPS scheme. - """ - - pushed_authorization_request_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's Pushed Authorization Request (PAR) endpoint, as per https://datatracker.ietf.org/doc/html/rfc9126. Must use HTTPS scheme. - """ - - require_pushed_authorization_requests: typing.Optional[bool] = pydantic.Field(default=None) - """ - Boolean parameter indicating whether the identity provider requires Pushed Authorization Requests (PAR), as per https://datatracker.ietf.org/doc/html/rfc9126. Discovered from the identity provider's metadata; not used to decide whether the server performs PAR. - """ - - dpop_signing_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS signing algorithms (alg values) supported for DPoP proof JWT signing. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/consent_signing_key.py b/src/auth0/management/types/consent_signing_key.py deleted file mode 100644 index 0e83131d..00000000 --- a/src/auth0/management/types/consent_signing_key.py +++ /dev/null @@ -1,38 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class ConsentSigningKey(UniversalBaseModel): - kid: str = pydantic.Field() - """ - The key identifier of the consent signing key. - """ - - device_identifier: str = pydantic.Field() - """ - A human-readable label for the device holding the corresponding private key. - """ - - created_at: dt.datetime = pydantic.Field() - """ - The ISO 8601 timestamp at which the key was registered. - """ - - expires_at: dt.datetime = pydantic.Field() - """ - The ISO 8601 timestamp at which the key expires and can no longer be used to verify consent decisions. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/content_security_policy_config.py b/src/auth0/management/types/content_security_policy_config.py deleted file mode 100644 index bd98e7bc..00000000 --- a/src/auth0/management/types/content_security_policy_config.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .csp_policies import CspPolicies -from .csp_reporting_infrastructure import CspReportingInfrastructure - - -class ContentSecurityPolicyConfig(UniversalBaseModel): - """ - Content Security Policy configuration with multi-policy support. - """ - - enabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether CSP is enabled. - """ - - policies: typing.Optional[CspPolicies] = None - reporting_infrastructure: typing.Optional[CspReportingInfrastructure] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_action_module_response_content.py b/src/auth0/management/types/create_action_module_response_content.py deleted file mode 100644 index 30452a18..00000000 --- a/src/auth0/management/types/create_action_module_response_content.py +++ /dev/null @@ -1,73 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .action_module_dependency import ActionModuleDependency -from .action_module_secret import ActionModuleSecret -from .action_module_version_reference import ActionModuleVersionReference - - -class CreateActionModuleResponseContent(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - The unique ID of the module. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The name of the module. - """ - - code: typing.Optional[str] = pydantic.Field(default=None) - """ - The source code from the module's draft version. - """ - - dependencies: typing.Optional[typing.List[ActionModuleDependency]] = pydantic.Field(default=None) - """ - The npm dependencies from the module's draft version. - """ - - secrets: typing.Optional[typing.List[ActionModuleSecret]] = pydantic.Field(default=None) - """ - The secrets from the module's draft version (names and timestamps only, values never returned). - """ - - actions_using_module_total: typing.Optional[int] = pydantic.Field(default=None) - """ - The number of deployed actions using this module. - """ - - all_changes_published: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether all draft changes have been published as a version. - """ - - latest_version_number: typing.Optional[int] = pydantic.Field(default=None) - """ - The version number of the latest published version. Omitted if no versions have been published. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Timestamp when the module was created. - """ - - updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Timestamp when the module was last updated. - """ - - latest_version: typing.Optional[ActionModuleVersionReference] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_action_module_version_response_content.py b/src/auth0/management/types/create_action_module_version_response_content.py deleted file mode 100644 index 33dcd306..00000000 --- a/src/auth0/management/types/create_action_module_version_response_content.py +++ /dev/null @@ -1,55 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .action_module_dependency import ActionModuleDependency -from .action_module_secret import ActionModuleSecret - - -class CreateActionModuleVersionResponseContent(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - The unique ID for this version. - """ - - module_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The ID of the parent module. - """ - - version_number: typing.Optional[int] = pydantic.Field(default=None) - """ - The sequential version number. - """ - - code: typing.Optional[str] = pydantic.Field(default=None) - """ - The exact source code that was published with this version. - """ - - secrets: typing.Optional[typing.List[ActionModuleSecret]] = pydantic.Field(default=None) - """ - Secrets available to this version (name and updated_at only, values never returned). - """ - - dependencies: typing.Optional[typing.List[ActionModuleDependency]] = pydantic.Field(default=None) - """ - Dependencies locked to this version. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The timestamp when this version was created. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_action_response_content.py b/src/auth0/management/types/create_action_response_content.py deleted file mode 100644 index e66daffe..00000000 --- a/src/auth0/management/types/create_action_response_content.py +++ /dev/null @@ -1,98 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .action_build_status_enum import ActionBuildStatusEnum -from .action_deployed_version import ActionDeployedVersion -from .action_module_reference import ActionModuleReference -from .action_secret_response import ActionSecretResponse -from .action_trigger import ActionTrigger -from .action_version_dependency import ActionVersionDependency -from .integration import Integration - - -class CreateActionResponseContent(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - The unique ID of the action. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The name of an action. - """ - - supported_triggers: typing.Optional[typing.List[ActionTrigger]] = pydantic.Field(default=None) - """ - The list of triggers that this action supports. At this time, an action can only target a single trigger at a time. - """ - - all_changes_deployed: typing.Optional[bool] = pydantic.Field(default=None) - """ - True if all of an Action's contents have been deployed. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The time when this action was created. - """ - - updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The time when this action was updated. - """ - - code: typing.Optional[str] = pydantic.Field(default=None) - """ - The source code of the action. - """ - - dependencies: typing.Optional[typing.List[ActionVersionDependency]] = pydantic.Field(default=None) - """ - The list of third party npm modules, and their versions, that this action depends on. - """ - - runtime: typing.Optional[str] = pydantic.Field(default=None) - """ - The Node runtime. For example: `node22`, defaults to `node22` - """ - - secrets: typing.Optional[typing.List[ActionSecretResponse]] = pydantic.Field(default=None) - """ - The list of secrets that are included in an action or a version of an action. - """ - - deployed_version: typing.Optional[ActionDeployedVersion] = None - installed_integration_id: typing.Optional[str] = pydantic.Field(default=None) - """ - installed_integration_id is the fk reference to the InstalledIntegration entity. - """ - - integration: typing.Optional[Integration] = None - status: typing.Optional[ActionBuildStatusEnum] = None - built_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The time when this action was built successfully. - """ - - deploy: typing.Optional[bool] = pydantic.Field(default=None) - """ - True if the action should be deployed after creation. - """ - - modules: typing.Optional[typing.List[ActionModuleReference]] = pydantic.Field(default=None) - """ - The list of action modules and their versions used by this action. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_anonymous_sessions.py b/src/auth0/management/types/create_anonymous_sessions.py deleted file mode 100644 index 94837280..00000000 --- a/src/auth0/management/types/create_anonymous_sessions.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class CreateAnonymousSessions(UniversalBaseModel): - """ - Anonymous sessions configuration for this client. - """ - - active: bool = pydantic.Field() - """ - If set to true, this client is allowed to create anonymous sessions. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_branding_phone_provider_response_content.py b/src/auth0/management/types/create_branding_phone_provider_response_content.py deleted file mode 100644 index bee6ff95..00000000 --- a/src/auth0/management/types/create_branding_phone_provider_response_content.py +++ /dev/null @@ -1,49 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .phone_provider_channel_enum import PhoneProviderChannelEnum -from .phone_provider_configuration import PhoneProviderConfiguration -from .phone_provider_name_enum import PhoneProviderNameEnum - - -class CreateBrandingPhoneProviderResponseContent(UniversalBaseModel): - """ - Phone provider configuration schema - """ - - id: typing.Optional[str] = None - tenant: typing.Optional[str] = pydantic.Field(default=None) - """ - The name of the tenant - """ - - name: PhoneProviderNameEnum - channel: typing.Optional[PhoneProviderChannelEnum] = None - disabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether the provider is enabled (false) or disabled (true). - """ - - configuration: typing.Optional[PhoneProviderConfiguration] = None - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The provider's creation date and time in ISO 8601 format - """ - - updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The date and time of the last update to the provider in ISO 8601 format - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_branding_theme_response_content.py b/src/auth0/management/types/create_branding_theme_response_content.py deleted file mode 100644 index 8ebb6bfb..00000000 --- a/src/auth0/management/types/create_branding_theme_response_content.py +++ /dev/null @@ -1,46 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .branding_theme_borders import BrandingThemeBorders -from .branding_theme_colors import BrandingThemeColors -from .branding_theme_fonts import BrandingThemeFonts -from .branding_theme_identifiers import BrandingThemeIdentifiers -from .branding_theme_page_background import BrandingThemePageBackground -from .branding_theme_widget import BrandingThemeWidget - - -class CreateBrandingThemeResponseContent(UniversalBaseModel): - borders: BrandingThemeBorders - colors: BrandingThemeColors - display_name: typing_extensions.Annotated[ - str, FieldMetadata(alias="displayName"), pydantic.Field(alias="displayName", description="Display Name") - ] - """ - Display Name - """ - - fonts: BrandingThemeFonts - identifiers: typing.Optional[BrandingThemeIdentifiers] = None - page_background: BrandingThemePageBackground - theme_id: typing_extensions.Annotated[ - str, FieldMetadata(alias="themeId"), pydantic.Field(alias="themeId", description="Theme Id") - ] - """ - Theme Id - """ - - widget: BrandingThemeWidget - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_client_authentication_method_self_signed_tls_client_auth.py b/src/auth0/management/types/create_client_authentication_method_self_signed_tls_client_auth.py deleted file mode 100644 index 48affae8..00000000 --- a/src/auth0/management/types/create_client_authentication_method_self_signed_tls_client_auth.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .create_client_authentication_method_self_signed_tls_client_auth_credentials import ( - CreateClientAuthenticationMethodSelfSignedTlsClientAuthCredentials, -) - - -class CreateClientAuthenticationMethodSelfSignedTlsClientAuth(UniversalBaseModel): - """ - Defines `self_signed_tls_client_auth` client authentication method. If the property is defined, the client is configured to use mTLS authentication method utilizing self-signed certificate. - """ - - credentials: CreateClientAuthenticationMethodSelfSignedTlsClientAuthCredentials - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_client_authentication_method_self_signed_tls_client_auth_credentials.py b/src/auth0/management/types/create_client_authentication_method_self_signed_tls_client_auth_credentials.py deleted file mode 100644 index 8123c5fa..00000000 --- a/src/auth0/management/types/create_client_authentication_method_self_signed_tls_client_auth_credentials.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .x_509_certificate_credential import X509CertificateCredential - -CreateClientAuthenticationMethodSelfSignedTlsClientAuthCredentials = typing.List[X509CertificateCredential] -""" -Fully defined credentials that will be enabled on the client for mTLS authentication utilizing self-signed certificate. -""" diff --git a/src/auth0/management/types/create_client_grant_response_content.py b/src/auth0/management/types/create_client_grant_response_content.py deleted file mode 100644 index a965a7d2..00000000 --- a/src/auth0/management/types/create_client_grant_response_content.py +++ /dev/null @@ -1,63 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .client_grant_default_for_enum import ClientGrantDefaultForEnum -from .client_grant_organization_usage_enum import ClientGrantOrganizationUsageEnum -from .client_grant_subject_type_enum import ClientGrantSubjectTypeEnum - - -class CreateClientGrantResponseContent(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of the client grant. - """ - - client_id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of the client. - """ - - audience: typing.Optional[str] = pydantic.Field(default=None) - """ - The audience (API identifier) of this client grant. - """ - - scope: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Scopes allowed for this client grant. - """ - - organization_usage: typing.Optional[ClientGrantOrganizationUsageEnum] = None - allow_any_organization: typing.Optional[bool] = pydantic.Field(default=None) - """ - If enabled, any organization can be used with this grant. If disabled (default), the grant must be explicitly assigned to the desired organizations. - """ - - default_for: typing.Optional[ClientGrantDefaultForEnum] = None - is_system: typing.Optional[bool] = pydantic.Field(default=None) - """ - If enabled, this grant is a special grant created by Auth0. It cannot be modified or deleted directly. - """ - - subject_type: typing.Optional[ClientGrantSubjectTypeEnum] = None - authorization_details_types: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Types of authorization_details allowed for this client grant. - """ - - allow_all_scopes: typing.Optional[bool] = pydantic.Field(default=None) - """ - If enabled, all scopes configured on the resource server are allowed for this grant. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_client_response_content.py b/src/auth0/management/types/create_client_response_content.py deleted file mode 100644 index 0f86e9a0..00000000 --- a/src/auth0/management/types/create_client_response_content.py +++ /dev/null @@ -1,299 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .anonymous_sessions import AnonymousSessions -from .b_2_b_integration_configuration import B2BIntegrationConfiguration -from .client_addons import ClientAddons -from .client_anonymous_session_transfer_network_binding_enum import ClientAnonymousSessionTransferNetworkBindingEnum -from .client_app_type_enum import ClientAppTypeEnum -from .client_async_approval_notifications_channels_api_post_configuration import ( - ClientAsyncApprovalNotificationsChannelsApiPostConfiguration, -) -from .client_authentication_method import ClientAuthenticationMethod -from .client_compliance_level_enum import ClientComplianceLevelEnum -from .client_default_organization import ClientDefaultOrganization -from .client_encryption_key import ClientEncryptionKey -from .client_external_metadata_created_by_enum import ClientExternalMetadataCreatedByEnum -from .client_external_metadata_status_enum import ClientExternalMetadataStatusEnum -from .client_external_metadata_type_enum import ClientExternalMetadataTypeEnum -from .client_jwt_configuration import ClientJwtConfiguration -from .client_metadata import ClientMetadata -from .client_mobile import ClientMobile -from .client_my_organization_response_configuration import ClientMyOrganizationResponseConfiguration -from .client_oidc_backchannel_logout_settings import ClientOidcBackchannelLogoutSettings -from .client_oidc_support import ClientOidcSupport -from .client_organization_discovery_enum import ClientOrganizationDiscoveryEnum -from .client_organization_require_behavior_enum import ClientOrganizationRequireBehaviorEnum -from .client_organization_usage_enum import ClientOrganizationUsageEnum -from .client_redirection_policy_enum import ClientRedirectionPolicyEnum -from .client_refresh_token_configuration import ClientRefreshTokenConfiguration -from .client_session_transfer_configuration import ClientSessionTransferConfiguration -from .client_signed_request_object_with_credential_id import ClientSignedRequestObjectWithCredentialId -from .client_signing_keys import ClientSigningKeys -from .client_third_party_security_mode_enum import ClientThirdPartySecurityModeEnum -from .client_token_endpoint_auth_method_enum import ClientTokenEndpointAuthMethodEnum -from .client_token_exchange_configuration import ClientTokenExchangeConfiguration -from .client_token_vault_privileged_access_with_credential_id import ClientTokenVaultPrivilegedAccessWithCredentialId -from .express_configuration import ExpressConfiguration -from .fed_cm_login import FedCmLogin -from .google_account_linking_configuration import GoogleAccountLinkingConfiguration -from .identity_assertion_authorization_grant import IdentityAssertionAuthorizationGrant -from .native_social_login import NativeSocialLogin -from .token_quota import TokenQuota - - -class CreateClientResponseContent(UniversalBaseModel): - client_id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of this client. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The ISO 8601 timestamp of when this client was created. - """ - - updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The ISO 8601 timestamp of when this client was last updated. - """ - - tenant: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of the tenant this client belongs to. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of this client (min length: 1 character, does not allow `<` or `>`). - """ - - description: typing.Optional[str] = pydantic.Field(default=None) - """ - Free text description of this client (max length: 140 characters). - """ - - global_: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="global"), - pydantic.Field( - alias="global", - description="Whether this is your global 'All Applications' client representing legacy tenant settings (true) or a regular client (false).", - ), - ] = None - """ - Whether this is your global 'All Applications' client representing legacy tenant settings (true) or a regular client (false). - """ - - client_secret: typing.Optional[str] = pydantic.Field(default=None) - """ - Client secret (which you must not make public). - """ - - app_type: typing.Optional[ClientAppTypeEnum] = None - logo_uri: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the logo to display for this client. Recommended size is 150x150 pixels. - """ - - is_first_party: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this client a first party client (true) or not (false). - """ - - oidc_conformant: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this client conforms to strict OIDC specifications (true) or uses legacy features (false). - """ - - callbacks: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Comma-separated list of URLs whitelisted for Auth0 to use as a callback to the client after authentication. - """ - - allowed_origins: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Comma-separated list of URLs allowed to make requests from JavaScript to Auth0 API (typically used with CORS). By default, all your callback URLs will be allowed. This field allows you to enter other origins if necessary. You can also use wildcards at the subdomain level (e.g., https://*.contoso.com). Query strings and hash information are not taken into account when validating these URLs. - """ - - web_origins: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Comma-separated list of allowed origins for use with Cross-Origin Authentication, Device Flow, and web message response mode. - """ - - client_aliases: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - List of audiences/realms for SAML protocol. Used by the wsfed addon. - """ - - allowed_clients: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - List of allow clients and API ids that are allowed to make delegation requests. Empty means all all your clients are allowed. - """ - - allowed_logout_urls: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Comma-separated list of URLs that are valid to redirect to after logout from Auth0. Wildcards are allowed for subdomains. - """ - - session_transfer: typing.Optional[ClientSessionTransferConfiguration] = None - oidc_logout: typing.Optional[ClientOidcBackchannelLogoutSettings] = None - grant_types: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - List of grant types supported for this application. Can include `authorization_code`, `implicit`, `refresh_token`, `client_credentials`, `password`, `http://auth0.com/oauth/grant-type/password-realm`, `http://auth0.com/oauth/grant-type/mfa-oob`, `http://auth0.com/oauth/grant-type/mfa-otp`, `http://auth0.com/oauth/grant-type/mfa-recovery-code`, `urn:openid:params:grant-type:ciba`, `urn:ietf:params:oauth:grant-type:device_code`, and `urn:auth0:params:oauth:grant-type:token-exchange:federated-connection-access-token`. - """ - - jwt_configuration: typing.Optional[ClientJwtConfiguration] = None - signing_keys: typing.Optional[ClientSigningKeys] = None - encryption_key: typing.Optional[ClientEncryptionKey] = None - sso: typing.Optional[bool] = pydantic.Field(default=None) - """ - Applies only to SSO clients and determines whether Auth0 will handle Single Sign On (true) or whether the Identity Provider will (false). - """ - - sso_disabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether Single Sign On is disabled (true) or enabled (true). Defaults to true. - """ - - cross_origin_authentication: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this client can be used to make cross-origin authentication requests (true) or it is not allowed to make such requests (false). - """ - - cross_origin_loc: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the location in your site where the cross origin verification takes place for the cross-origin auth flow when performing Auth in your own domain instead of Auth0 hosted login page. - """ - - custom_login_page_on: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether a custom login page is to be used (true) or the default provided login page (false). - """ - - custom_login_page: typing.Optional[str] = pydantic.Field(default=None) - """ - The content (HTML, CSS, JS) of the custom login page. - """ - - custom_login_page_preview: typing.Optional[str] = pydantic.Field(default=None) - """ - The content (HTML, CSS, JS) of the custom login page. (Used on Previews) - """ - - form_template: typing.Optional[str] = pydantic.Field(default=None) - """ - HTML form template to be used for WS-Federation. - """ - - addons: typing.Optional[ClientAddons] = None - token_endpoint_auth_method: typing.Optional[ClientTokenEndpointAuthMethodEnum] = None - is_token_endpoint_ip_header_trusted: typing.Optional[bool] = pydantic.Field(default=None) - """ - If true, trust that the IP specified in the `auth0-forwarded-for` header is the end-user's IP for brute-force-protection on token endpoint. - """ - - client_metadata: typing.Optional[ClientMetadata] = None - mobile: typing.Optional[ClientMobile] = None - initiate_login_uri: typing.Optional[str] = pydantic.Field(default=None) - """ - Initiate login uri, must be https - """ - - native_social_login: typing.Optional[NativeSocialLogin] = None - fedcm_login: typing.Optional[FedCmLogin] = None - refresh_token: typing.Optional[ClientRefreshTokenConfiguration] = None - default_organization: typing.Optional[ClientDefaultOrganization] = None - organization_usage: typing.Optional[ClientOrganizationUsageEnum] = None - organization_require_behavior: typing.Optional[ClientOrganizationRequireBehaviorEnum] = None - organization_discovery_methods: typing.Optional[typing.List[ClientOrganizationDiscoveryEnum]] = pydantic.Field( - default=None - ) - """ - Defines the available methods for organization discovery during the `pre_login_prompt`. Users can discover their organization either by `email`, `organization_name` or both. - """ - - client_authentication_methods: typing.Optional[ClientAuthenticationMethod] = None - require_pushed_authorization_requests: typing.Optional[bool] = pydantic.Field(default=None) - """ - Makes the use of Pushed Authorization Requests mandatory for this client - """ - - require_proof_of_possession: typing.Optional[bool] = pydantic.Field(default=None) - """ - Makes the use of Proof-of-Possession mandatory for this client - """ - - signed_request_object: typing.Optional[ClientSignedRequestObjectWithCredentialId] = None - token_vault_privileged_access: typing.Optional[ClientTokenVaultPrivilegedAccessWithCredentialId] = None - compliance_level: typing.Optional[ClientComplianceLevelEnum] = None - skip_non_verifiable_callback_uri_confirmation_prompt: typing.Optional[bool] = pydantic.Field(default=None) - """ - Controls whether a confirmation prompt is shown during login flows when the redirect URI uses non-verifiable callback URIs (for example, a custom URI schema such as `myapp://`, or `localhost`). - If set to true, a confirmation prompt will not be shown. We recommend that this is set to false for improved protection from malicious apps. - See https://auth0.com/docs/secure/security-guidance/measures-against-app-impersonation for more information. - """ - - token_exchange: typing.Optional[ClientTokenExchangeConfiguration] = None - par_request_expiry: typing.Optional[int] = pydantic.Field(default=None) - """ - Specifies how long, in seconds, a Pushed Authorization Request URI remains valid - """ - - token_quota: typing.Optional[TokenQuota] = None - express_configuration: typing.Optional[ExpressConfiguration] = None - b_2_b_integration_configuration: typing_extensions.Annotated[ - typing.Optional[B2BIntegrationConfiguration], - FieldMetadata(alias="b2b_integration_configuration"), - pydantic.Field(alias="b2b_integration_configuration"), - ] = None - my_organization_configuration: typing.Optional[ClientMyOrganizationResponseConfiguration] = None - google_account_linking: typing.Optional[GoogleAccountLinkingConfiguration] = None - identity_assertion_authorization_grant: typing.Optional[IdentityAssertionAuthorizationGrant] = None - anonymous_sessions: typing.Optional[AnonymousSessions] = None - enforce_anon_session_transfer_network_binding: typing.Optional[ClientAnonymousSessionTransferNetworkBindingEnum] = ( - None - ) - third_party_security_mode: typing.Optional[ClientThirdPartySecurityModeEnum] = None - oidc_support: typing.Optional[ClientOidcSupport] = None - redirection_policy: typing.Optional[ClientRedirectionPolicyEnum] = None - resource_server_identifier: typing.Optional[str] = pydantic.Field(default=None) - """ - The identifier of the resource server that this client is linked to. - """ - - async_approval_notification_channels: typing.Optional[ - ClientAsyncApprovalNotificationsChannelsApiPostConfiguration - ] = None - external_metadata_type: typing.Optional[ClientExternalMetadataTypeEnum] = None - external_metadata_created_by: typing.Optional[ClientExternalMetadataCreatedByEnum] = None - external_metadata_status: typing.Optional[ClientExternalMetadataStatusEnum] = None - agent_id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of the agent associated with this client. - """ - - external_client_id: typing.Optional[str] = pydantic.Field(default=None) - """ - An alternate client identifier to be used during authorization flows. Only supports CIMD-based client identifiers. - """ - - jwks_uri: typing.Optional[str] = pydantic.Field(default=None) - """ - URL for the JSON Web Key Set (JWKS) containing the public keys used for private_key_jwt authentication. Only present for CIMD clients using private_key_jwt authentication. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_connection_common.py b/src/auth0/management/types/create_connection_common.py deleted file mode 100644 index 6d7aa014..00000000 --- a/src/auth0/management/types/create_connection_common.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .connection_display_name import ConnectionDisplayName -from .connection_is_domain_connection import ConnectionIsDomainConnection -from .connection_name import ConnectionName -from .connections_metadata import ConnectionsMetadata - - -class CreateConnectionCommon(UniversalBaseModel): - name: ConnectionName - enabled_clients: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. - """ - - display_name: typing.Optional[ConnectionDisplayName] = None - is_domain_connection: typing.Optional[ConnectionIsDomainConnection] = None - metadata: typing.Optional[ConnectionsMetadata] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_connection_profile_response_content.py b/src/auth0/management/types/create_connection_profile_response_content.py deleted file mode 100644 index 4859e31d..00000000 --- a/src/auth0/management/types/create_connection_profile_response_content.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .connection_name_prefix_template import ConnectionNamePrefixTemplate -from .connection_profile_config import ConnectionProfileConfig -from .connection_profile_cross_app_access_resource_app import ConnectionProfileCrossAppAccessResourceApp -from .connection_profile_enabled_features import ConnectionProfileEnabledFeatures -from .connection_profile_id import ConnectionProfileId -from .connection_profile_name import ConnectionProfileName -from .connection_profile_organization import ConnectionProfileOrganization -from .connection_profile_provisioning import ConnectionProfileProvisioning -from .connection_profile_strategy_overrides import ConnectionProfileStrategyOverrides - - -class CreateConnectionProfileResponseContent(UniversalBaseModel): - id: typing.Optional[ConnectionProfileId] = None - name: typing.Optional[ConnectionProfileName] = None - organization: typing.Optional[ConnectionProfileOrganization] = None - connection_name_prefix_template: typing.Optional[ConnectionNamePrefixTemplate] = None - enabled_features: typing.Optional[ConnectionProfileEnabledFeatures] = None - connection_config: typing.Optional[ConnectionProfileConfig] = None - strategy_overrides: typing.Optional[ConnectionProfileStrategyOverrides] = None - provisioning: typing.Optional[ConnectionProfileProvisioning] = None - cross_app_access_resource_app: typing.Optional[ConnectionProfileCrossAppAccessResourceApp] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_connection_request_content_ad.py b/src/auth0/management/types/create_connection_request_content_ad.py deleted file mode 100644 index 3e151363..00000000 --- a/src/auth0/management/types/create_connection_request_content_ad.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_ad import ConnectionOptionsAd -from .create_connection_common import CreateConnectionCommon -from .create_connection_request_content_ad_strategy import CreateConnectionRequestContentAdStrategy - - -class CreateConnectionRequestContentAd(CreateConnectionCommon): - """ - Create a connection with strategy=ad - """ - - strategy: CreateConnectionRequestContentAdStrategy - options: typing.Optional[ConnectionOptionsAd] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_connection_request_content_ad_strategy.py b/src/auth0/management/types/create_connection_request_content_ad_strategy.py deleted file mode 100644 index a18ba353..00000000 --- a/src/auth0/management/types/create_connection_request_content_ad_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CreateConnectionRequestContentAdStrategy = typing.Union[typing.Literal["ad"], typing.Any] diff --git a/src/auth0/management/types/create_connection_request_content_adfs.py b/src/auth0/management/types/create_connection_request_content_adfs.py deleted file mode 100644 index c2df5f18..00000000 --- a/src/auth0/management/types/create_connection_request_content_adfs.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_adfs import ConnectionOptionsAdfs -from .connection_show_as_button import ConnectionShowAsButton -from .create_connection_common import CreateConnectionCommon -from .create_connection_request_content_adfs_strategy import CreateConnectionRequestContentAdfsStrategy - - -class CreateConnectionRequestContentAdfs(CreateConnectionCommon): - """ - Create a connection with strategy=adfs - """ - - strategy: CreateConnectionRequestContentAdfsStrategy - options: typing.Optional[ConnectionOptionsAdfs] = None - show_as_button: typing.Optional[ConnectionShowAsButton] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_connection_request_content_adfs_strategy.py b/src/auth0/management/types/create_connection_request_content_adfs_strategy.py deleted file mode 100644 index 3191bc30..00000000 --- a/src/auth0/management/types/create_connection_request_content_adfs_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CreateConnectionRequestContentAdfsStrategy = typing.Union[typing.Literal["adfs"], typing.Any] diff --git a/src/auth0/management/types/create_connection_request_content_amazon.py b/src/auth0/management/types/create_connection_request_content_amazon.py deleted file mode 100644 index da16bef7..00000000 --- a/src/auth0/management/types/create_connection_request_content_amazon.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_amazon import ConnectionOptionsAmazon -from .create_connection_common import CreateConnectionCommon -from .create_connection_request_content_amazon_strategy import CreateConnectionRequestContentAmazonStrategy - - -class CreateConnectionRequestContentAmazon(CreateConnectionCommon): - """ - Create a connection with strategy=amazon - """ - - strategy: CreateConnectionRequestContentAmazonStrategy - options: typing.Optional[ConnectionOptionsAmazon] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_connection_request_content_amazon_strategy.py b/src/auth0/management/types/create_connection_request_content_amazon_strategy.py deleted file mode 100644 index 546ea38a..00000000 --- a/src/auth0/management/types/create_connection_request_content_amazon_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CreateConnectionRequestContentAmazonStrategy = typing.Union[typing.Literal["amazon"], typing.Any] diff --git a/src/auth0/management/types/create_connection_request_content_apple.py b/src/auth0/management/types/create_connection_request_content_apple.py deleted file mode 100644 index 72aab66a..00000000 --- a/src/auth0/management/types/create_connection_request_content_apple.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_apple import ConnectionOptionsApple -from .create_connection_common import CreateConnectionCommon -from .create_connection_request_content_apple_strategy import CreateConnectionRequestContentAppleStrategy - - -class CreateConnectionRequestContentApple(CreateConnectionCommon): - """ - Create a connection with strategy=apple - """ - - strategy: CreateConnectionRequestContentAppleStrategy - options: typing.Optional[ConnectionOptionsApple] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_connection_request_content_apple_strategy.py b/src/auth0/management/types/create_connection_request_content_apple_strategy.py deleted file mode 100644 index d5914cc5..00000000 --- a/src/auth0/management/types/create_connection_request_content_apple_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CreateConnectionRequestContentAppleStrategy = typing.Union[typing.Literal["apple"], typing.Any] diff --git a/src/auth0/management/types/create_connection_request_content_auth_0.py b/src/auth0/management/types/create_connection_request_content_auth_0.py deleted file mode 100644 index 5aa83d98..00000000 --- a/src/auth0/management/types/create_connection_request_content_auth_0.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_auth_0 import ConnectionOptionsAuth0 -from .connection_realms import ConnectionRealms -from .create_connection_common import CreateConnectionCommon -from .create_connection_request_content_auth_0_strategy import CreateConnectionRequestContentAuth0Strategy - - -class CreateConnectionRequestContentAuth0(CreateConnectionCommon): - """ - Create a connection with strategy=auth0 - """ - - strategy: CreateConnectionRequestContentAuth0Strategy - options: typing.Optional[ConnectionOptionsAuth0] = None - realms: typing.Optional[ConnectionRealms] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_connection_request_content_auth_0_oidc.py b/src/auth0/management/types/create_connection_request_content_auth_0_oidc.py deleted file mode 100644 index c1872269..00000000 --- a/src/auth0/management/types/create_connection_request_content_auth_0_oidc.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_auth_0_oidc import ConnectionOptionsAuth0Oidc -from .create_connection_common import CreateConnectionCommon -from .create_connection_request_content_auth_0_oidc_strategy import CreateConnectionRequestContentAuth0OidcStrategy - - -class CreateConnectionRequestContentAuth0Oidc(CreateConnectionCommon): - """ - Create a connection with strategy=auth0-oidc - """ - - strategy: CreateConnectionRequestContentAuth0OidcStrategy - options: typing.Optional[ConnectionOptionsAuth0Oidc] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_connection_request_content_auth_0_oidc_strategy.py b/src/auth0/management/types/create_connection_request_content_auth_0_oidc_strategy.py deleted file mode 100644 index 88463be1..00000000 --- a/src/auth0/management/types/create_connection_request_content_auth_0_oidc_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CreateConnectionRequestContentAuth0OidcStrategy = typing.Union[typing.Literal["auth0-oidc"], typing.Any] diff --git a/src/auth0/management/types/create_connection_request_content_auth_0_strategy.py b/src/auth0/management/types/create_connection_request_content_auth_0_strategy.py deleted file mode 100644 index 67eec68b..00000000 --- a/src/auth0/management/types/create_connection_request_content_auth_0_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CreateConnectionRequestContentAuth0Strategy = typing.Union[typing.Literal["auth0"], typing.Any] diff --git a/src/auth0/management/types/create_connection_request_content_azure_ad.py b/src/auth0/management/types/create_connection_request_content_azure_ad.py deleted file mode 100644 index e857d6d4..00000000 --- a/src/auth0/management/types/create_connection_request_content_azure_ad.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_azure_ad import ConnectionOptionsAzureAd -from .connection_show_as_button import ConnectionShowAsButton -from .create_connection_common import CreateConnectionCommon -from .create_connection_request_content_azure_ad_strategy import CreateConnectionRequestContentAzureAdStrategy - - -class CreateConnectionRequestContentAzureAd(CreateConnectionCommon): - """ - Create a connection with strategy=waad - """ - - strategy: CreateConnectionRequestContentAzureAdStrategy - options: typing.Optional[ConnectionOptionsAzureAd] = None - show_as_button: typing.Optional[ConnectionShowAsButton] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_connection_request_content_azure_ad_strategy.py b/src/auth0/management/types/create_connection_request_content_azure_ad_strategy.py deleted file mode 100644 index 58618453..00000000 --- a/src/auth0/management/types/create_connection_request_content_azure_ad_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CreateConnectionRequestContentAzureAdStrategy = typing.Union[typing.Literal["waad"], typing.Any] diff --git a/src/auth0/management/types/create_connection_request_content_baidu.py b/src/auth0/management/types/create_connection_request_content_baidu.py deleted file mode 100644 index 566d89be..00000000 --- a/src/auth0/management/types/create_connection_request_content_baidu.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_baidu import ConnectionOptionsBaidu -from .create_connection_common import CreateConnectionCommon -from .create_connection_request_content_baidu_strategy import CreateConnectionRequestContentBaiduStrategy - - -class CreateConnectionRequestContentBaidu(CreateConnectionCommon): - """ - Create a connection with strategy=baidu - """ - - strategy: CreateConnectionRequestContentBaiduStrategy - options: typing.Optional[ConnectionOptionsBaidu] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_connection_request_content_baidu_strategy.py b/src/auth0/management/types/create_connection_request_content_baidu_strategy.py deleted file mode 100644 index a621f8ad..00000000 --- a/src/auth0/management/types/create_connection_request_content_baidu_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CreateConnectionRequestContentBaiduStrategy = typing.Union[typing.Literal["baidu"], typing.Any] diff --git a/src/auth0/management/types/create_connection_request_content_bitbucket.py b/src/auth0/management/types/create_connection_request_content_bitbucket.py deleted file mode 100644 index 29043677..00000000 --- a/src/auth0/management/types/create_connection_request_content_bitbucket.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_bitbucket import ConnectionOptionsBitbucket -from .create_connection_common import CreateConnectionCommon -from .create_connection_request_content_bitbucket_strategy import CreateConnectionRequestContentBitbucketStrategy - - -class CreateConnectionRequestContentBitbucket(CreateConnectionCommon): - """ - Create a connection with strategy=bitbucket - """ - - strategy: CreateConnectionRequestContentBitbucketStrategy - options: typing.Optional[ConnectionOptionsBitbucket] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_connection_request_content_bitbucket_strategy.py b/src/auth0/management/types/create_connection_request_content_bitbucket_strategy.py deleted file mode 100644 index 0b9d1bde..00000000 --- a/src/auth0/management/types/create_connection_request_content_bitbucket_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CreateConnectionRequestContentBitbucketStrategy = typing.Union[typing.Literal["bitbucket"], typing.Any] diff --git a/src/auth0/management/types/create_connection_request_content_bitly.py b/src/auth0/management/types/create_connection_request_content_bitly.py deleted file mode 100644 index 9cdbe895..00000000 --- a/src/auth0/management/types/create_connection_request_content_bitly.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_bitly import ConnectionOptionsBitly -from .create_connection_common import CreateConnectionCommon -from .create_connection_request_content_bitly_strategy import CreateConnectionRequestContentBitlyStrategy - - -class CreateConnectionRequestContentBitly(CreateConnectionCommon): - """ - Create a connection with strategy=bitly - """ - - strategy: CreateConnectionRequestContentBitlyStrategy - options: typing.Optional[ConnectionOptionsBitly] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_connection_request_content_bitly_strategy.py b/src/auth0/management/types/create_connection_request_content_bitly_strategy.py deleted file mode 100644 index 637e297d..00000000 --- a/src/auth0/management/types/create_connection_request_content_bitly_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CreateConnectionRequestContentBitlyStrategy = typing.Union[typing.Literal["bitly"], typing.Any] diff --git a/src/auth0/management/types/create_connection_request_content_box.py b/src/auth0/management/types/create_connection_request_content_box.py deleted file mode 100644 index 9682ee62..00000000 --- a/src/auth0/management/types/create_connection_request_content_box.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_box import ConnectionOptionsBox -from .connection_purposes import ConnectionPurposes -from .create_connection_common import CreateConnectionCommon -from .create_connection_request_content_box_strategy import CreateConnectionRequestContentBoxStrategy - - -class CreateConnectionRequestContentBox(ConnectionPurposes, CreateConnectionCommon): - """ - Create a connection with strategy=box - """ - - strategy: CreateConnectionRequestContentBoxStrategy - options: typing.Optional[ConnectionOptionsBox] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_connection_request_content_box_strategy.py b/src/auth0/management/types/create_connection_request_content_box_strategy.py deleted file mode 100644 index 20a78c24..00000000 --- a/src/auth0/management/types/create_connection_request_content_box_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CreateConnectionRequestContentBoxStrategy = typing.Union[typing.Literal["box"], typing.Any] diff --git a/src/auth0/management/types/create_connection_request_content_custom.py b/src/auth0/management/types/create_connection_request_content_custom.py deleted file mode 100644 index 926b16a9..00000000 --- a/src/auth0/management/types/create_connection_request_content_custom.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_custom import ConnectionOptionsCustom -from .create_connection_common import CreateConnectionCommon -from .create_connection_request_content_custom_strategy import CreateConnectionRequestContentCustomStrategy - - -class CreateConnectionRequestContentCustom(CreateConnectionCommon): - """ - Create a connection with strategy=custom - """ - - strategy: CreateConnectionRequestContentCustomStrategy - options: typing.Optional[ConnectionOptionsCustom] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_connection_request_content_custom_strategy.py b/src/auth0/management/types/create_connection_request_content_custom_strategy.py deleted file mode 100644 index e3cade3e..00000000 --- a/src/auth0/management/types/create_connection_request_content_custom_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CreateConnectionRequestContentCustomStrategy = typing.Union[typing.Literal["custom"], typing.Any] diff --git a/src/auth0/management/types/create_connection_request_content_daccount.py b/src/auth0/management/types/create_connection_request_content_daccount.py deleted file mode 100644 index 5c64d188..00000000 --- a/src/auth0/management/types/create_connection_request_content_daccount.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_daccount import ConnectionOptionsDaccount -from .create_connection_common import CreateConnectionCommon -from .create_connection_request_content_daccount_strategy import CreateConnectionRequestContentDaccountStrategy - - -class CreateConnectionRequestContentDaccount(CreateConnectionCommon): - """ - Create a connection with strategy=daccount - """ - - strategy: CreateConnectionRequestContentDaccountStrategy - options: typing.Optional[ConnectionOptionsDaccount] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_connection_request_content_daccount_strategy.py b/src/auth0/management/types/create_connection_request_content_daccount_strategy.py deleted file mode 100644 index 6cf36d84..00000000 --- a/src/auth0/management/types/create_connection_request_content_daccount_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CreateConnectionRequestContentDaccountStrategy = typing.Union[typing.Literal["daccount"], typing.Any] diff --git a/src/auth0/management/types/create_connection_request_content_dropbox.py b/src/auth0/management/types/create_connection_request_content_dropbox.py deleted file mode 100644 index b3aa8abd..00000000 --- a/src/auth0/management/types/create_connection_request_content_dropbox.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_dropbox import ConnectionOptionsDropbox -from .create_connection_common import CreateConnectionCommon -from .create_connection_request_content_dropbox_strategy import CreateConnectionRequestContentDropboxStrategy - - -class CreateConnectionRequestContentDropbox(CreateConnectionCommon): - """ - Create a connection with strategy=dropbox - """ - - strategy: CreateConnectionRequestContentDropboxStrategy - options: typing.Optional[ConnectionOptionsDropbox] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_connection_request_content_dropbox_strategy.py b/src/auth0/management/types/create_connection_request_content_dropbox_strategy.py deleted file mode 100644 index 68cb97c2..00000000 --- a/src/auth0/management/types/create_connection_request_content_dropbox_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CreateConnectionRequestContentDropboxStrategy = typing.Union[typing.Literal["dropbox"], typing.Any] diff --git a/src/auth0/management/types/create_connection_request_content_dwolla.py b/src/auth0/management/types/create_connection_request_content_dwolla.py deleted file mode 100644 index 5bae688b..00000000 --- a/src/auth0/management/types/create_connection_request_content_dwolla.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_dwolla import ConnectionOptionsDwolla -from .create_connection_common import CreateConnectionCommon -from .create_connection_request_content_dwolla_strategy import CreateConnectionRequestContentDwollaStrategy - - -class CreateConnectionRequestContentDwolla(CreateConnectionCommon): - """ - Create a connection with strategy=dwolla - """ - - strategy: CreateConnectionRequestContentDwollaStrategy - options: typing.Optional[ConnectionOptionsDwolla] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_connection_request_content_dwolla_strategy.py b/src/auth0/management/types/create_connection_request_content_dwolla_strategy.py deleted file mode 100644 index d654b76a..00000000 --- a/src/auth0/management/types/create_connection_request_content_dwolla_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CreateConnectionRequestContentDwollaStrategy = typing.Union[typing.Literal["dwolla"], typing.Any] diff --git a/src/auth0/management/types/create_connection_request_content_email.py b/src/auth0/management/types/create_connection_request_content_email.py deleted file mode 100644 index 7371d5c5..00000000 --- a/src/auth0/management/types/create_connection_request_content_email.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_email import ConnectionOptionsEmail -from .create_connection_common import CreateConnectionCommon -from .create_connection_request_content_email_strategy import CreateConnectionRequestContentEmailStrategy - - -class CreateConnectionRequestContentEmail(CreateConnectionCommon): - """ - Create a connection with strategy=email - """ - - strategy: CreateConnectionRequestContentEmailStrategy - options: typing.Optional[ConnectionOptionsEmail] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_connection_request_content_email_strategy.py b/src/auth0/management/types/create_connection_request_content_email_strategy.py deleted file mode 100644 index a2212fb5..00000000 --- a/src/auth0/management/types/create_connection_request_content_email_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CreateConnectionRequestContentEmailStrategy = typing.Union[typing.Literal["email"], typing.Any] diff --git a/src/auth0/management/types/create_connection_request_content_evernote.py b/src/auth0/management/types/create_connection_request_content_evernote.py deleted file mode 100644 index e7f3b9b5..00000000 --- a/src/auth0/management/types/create_connection_request_content_evernote.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_evernote import ConnectionOptionsEvernote -from .create_connection_common import CreateConnectionCommon -from .create_connection_request_content_evernote_strategy import CreateConnectionRequestContentEvernoteStrategy - - -class CreateConnectionRequestContentEvernote(CreateConnectionCommon): - """ - Create a connection with strategy=evernote - """ - - strategy: CreateConnectionRequestContentEvernoteStrategy - options: typing.Optional[ConnectionOptionsEvernote] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_connection_request_content_evernote_sandbox.py b/src/auth0/management/types/create_connection_request_content_evernote_sandbox.py deleted file mode 100644 index f531a5c5..00000000 --- a/src/auth0/management/types/create_connection_request_content_evernote_sandbox.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_evernote import ConnectionOptionsEvernote -from .create_connection_common import CreateConnectionCommon -from .create_connection_request_content_evernote_sandbox_strategy import ( - CreateConnectionRequestContentEvernoteSandboxStrategy, -) - - -class CreateConnectionRequestContentEvernoteSandbox(CreateConnectionCommon): - """ - Create a connection with strategy=evernote-sandbox - """ - - strategy: CreateConnectionRequestContentEvernoteSandboxStrategy - options: typing.Optional[ConnectionOptionsEvernote] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_connection_request_content_evernote_sandbox_strategy.py b/src/auth0/management/types/create_connection_request_content_evernote_sandbox_strategy.py deleted file mode 100644 index b84f4e5e..00000000 --- a/src/auth0/management/types/create_connection_request_content_evernote_sandbox_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CreateConnectionRequestContentEvernoteSandboxStrategy = typing.Union[typing.Literal["evernote-sandbox"], typing.Any] diff --git a/src/auth0/management/types/create_connection_request_content_evernote_strategy.py b/src/auth0/management/types/create_connection_request_content_evernote_strategy.py deleted file mode 100644 index 0643d53e..00000000 --- a/src/auth0/management/types/create_connection_request_content_evernote_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CreateConnectionRequestContentEvernoteStrategy = typing.Union[typing.Literal["evernote"], typing.Any] diff --git a/src/auth0/management/types/create_connection_request_content_exact.py b/src/auth0/management/types/create_connection_request_content_exact.py deleted file mode 100644 index 1563b0e3..00000000 --- a/src/auth0/management/types/create_connection_request_content_exact.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_exact import ConnectionOptionsExact -from .create_connection_common import CreateConnectionCommon -from .create_connection_request_content_exact_strategy import CreateConnectionRequestContentExactStrategy - - -class CreateConnectionRequestContentExact(CreateConnectionCommon): - """ - Create a connection with strategy=exact - """ - - strategy: CreateConnectionRequestContentExactStrategy - options: typing.Optional[ConnectionOptionsExact] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_connection_request_content_exact_strategy.py b/src/auth0/management/types/create_connection_request_content_exact_strategy.py deleted file mode 100644 index 8bd7b80c..00000000 --- a/src/auth0/management/types/create_connection_request_content_exact_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CreateConnectionRequestContentExactStrategy = typing.Union[typing.Literal["exact"], typing.Any] diff --git a/src/auth0/management/types/create_connection_request_content_facebook.py b/src/auth0/management/types/create_connection_request_content_facebook.py deleted file mode 100644 index b8946205..00000000 --- a/src/auth0/management/types/create_connection_request_content_facebook.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_facebook import ConnectionOptionsFacebook -from .create_connection_common import CreateConnectionCommon -from .create_connection_request_content_facebook_strategy import CreateConnectionRequestContentFacebookStrategy - - -class CreateConnectionRequestContentFacebook(CreateConnectionCommon): - """ - Create a connection with strategy=facebook - """ - - strategy: CreateConnectionRequestContentFacebookStrategy - options: typing.Optional[ConnectionOptionsFacebook] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_connection_request_content_facebook_strategy.py b/src/auth0/management/types/create_connection_request_content_facebook_strategy.py deleted file mode 100644 index ef706ee7..00000000 --- a/src/auth0/management/types/create_connection_request_content_facebook_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CreateConnectionRequestContentFacebookStrategy = typing.Union[typing.Literal["facebook"], typing.Any] diff --git a/src/auth0/management/types/create_connection_request_content_fitbit.py b/src/auth0/management/types/create_connection_request_content_fitbit.py deleted file mode 100644 index 34b39d4c..00000000 --- a/src/auth0/management/types/create_connection_request_content_fitbit.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_fitbit import ConnectionOptionsFitbit -from .create_connection_common import CreateConnectionCommon -from .create_connection_request_content_fitbit_strategy import CreateConnectionRequestContentFitbitStrategy - - -class CreateConnectionRequestContentFitbit(CreateConnectionCommon): - """ - Create a connection with strategy=fitbit - """ - - strategy: CreateConnectionRequestContentFitbitStrategy - options: typing.Optional[ConnectionOptionsFitbit] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_connection_request_content_fitbit_strategy.py b/src/auth0/management/types/create_connection_request_content_fitbit_strategy.py deleted file mode 100644 index 77028e34..00000000 --- a/src/auth0/management/types/create_connection_request_content_fitbit_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CreateConnectionRequestContentFitbitStrategy = typing.Union[typing.Literal["fitbit"], typing.Any] diff --git a/src/auth0/management/types/create_connection_request_content_git_hub.py b/src/auth0/management/types/create_connection_request_content_git_hub.py deleted file mode 100644 index fc62780a..00000000 --- a/src/auth0/management/types/create_connection_request_content_git_hub.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_git_hub import ConnectionOptionsGitHub -from .connection_purposes import ConnectionPurposes -from .create_connection_common import CreateConnectionCommon -from .create_connection_request_content_git_hub_strategy import CreateConnectionRequestContentGitHubStrategy - - -class CreateConnectionRequestContentGitHub(ConnectionPurposes, CreateConnectionCommon): - """ - Create a connection with strategy=github - """ - - strategy: CreateConnectionRequestContentGitHubStrategy - options: typing.Optional[ConnectionOptionsGitHub] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_connection_request_content_git_hub_strategy.py b/src/auth0/management/types/create_connection_request_content_git_hub_strategy.py deleted file mode 100644 index 8404e62e..00000000 --- a/src/auth0/management/types/create_connection_request_content_git_hub_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CreateConnectionRequestContentGitHubStrategy = typing.Union[typing.Literal["github"], typing.Any] diff --git a/src/auth0/management/types/create_connection_request_content_google_apps.py b/src/auth0/management/types/create_connection_request_content_google_apps.py deleted file mode 100644 index 202f3ab5..00000000 --- a/src/auth0/management/types/create_connection_request_content_google_apps.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_google_apps import ConnectionOptionsGoogleApps -from .connection_show_as_button import ConnectionShowAsButton -from .create_connection_common import CreateConnectionCommon -from .create_connection_request_content_google_apps_strategy import CreateConnectionRequestContentGoogleAppsStrategy - - -class CreateConnectionRequestContentGoogleApps(CreateConnectionCommon): - """ - Create a connection with strategy=google-apps - """ - - strategy: CreateConnectionRequestContentGoogleAppsStrategy - options: typing.Optional[ConnectionOptionsGoogleApps] = None - show_as_button: typing.Optional[ConnectionShowAsButton] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_connection_request_content_google_apps_strategy.py b/src/auth0/management/types/create_connection_request_content_google_apps_strategy.py deleted file mode 100644 index e3c059c3..00000000 --- a/src/auth0/management/types/create_connection_request_content_google_apps_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CreateConnectionRequestContentGoogleAppsStrategy = typing.Union[typing.Literal["google-apps"], typing.Any] diff --git a/src/auth0/management/types/create_connection_request_content_google_o_auth_2.py b/src/auth0/management/types/create_connection_request_content_google_o_auth_2.py deleted file mode 100644 index 05041b01..00000000 --- a/src/auth0/management/types/create_connection_request_content_google_o_auth_2.py +++ /dev/null @@ -1,30 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_google_o_auth_2 import ConnectionOptionsGoogleOAuth2 -from .connection_purposes import ConnectionPurposes -from .create_connection_common import CreateConnectionCommon -from .create_connection_request_content_google_o_auth_2_strategy import ( - CreateConnectionRequestContentGoogleOAuth2Strategy, -) - - -class CreateConnectionRequestContentGoogleOAuth2(ConnectionPurposes, CreateConnectionCommon): - """ - Create a connection with strategy=google-oauth2 - """ - - strategy: CreateConnectionRequestContentGoogleOAuth2Strategy - options: typing.Optional[ConnectionOptionsGoogleOAuth2] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_connection_request_content_google_o_auth_2_strategy.py b/src/auth0/management/types/create_connection_request_content_google_o_auth_2_strategy.py deleted file mode 100644 index e2294da0..00000000 --- a/src/auth0/management/types/create_connection_request_content_google_o_auth_2_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CreateConnectionRequestContentGoogleOAuth2Strategy = typing.Union[typing.Literal["google-oauth2"], typing.Any] diff --git a/src/auth0/management/types/create_connection_request_content_instagram.py b/src/auth0/management/types/create_connection_request_content_instagram.py deleted file mode 100644 index f80f2591..00000000 --- a/src/auth0/management/types/create_connection_request_content_instagram.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_instagram import ConnectionOptionsInstagram -from .create_connection_common import CreateConnectionCommon -from .create_connection_request_content_instagram_strategy import CreateConnectionRequestContentInstagramStrategy - - -class CreateConnectionRequestContentInstagram(CreateConnectionCommon): - """ - Create a connection with strategy=instagram - """ - - strategy: CreateConnectionRequestContentInstagramStrategy - options: typing.Optional[ConnectionOptionsInstagram] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_connection_request_content_instagram_strategy.py b/src/auth0/management/types/create_connection_request_content_instagram_strategy.py deleted file mode 100644 index bac353f7..00000000 --- a/src/auth0/management/types/create_connection_request_content_instagram_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CreateConnectionRequestContentInstagramStrategy = typing.Union[typing.Literal["instagram"], typing.Any] diff --git a/src/auth0/management/types/create_connection_request_content_ip.py b/src/auth0/management/types/create_connection_request_content_ip.py deleted file mode 100644 index 856f3961..00000000 --- a/src/auth0/management/types/create_connection_request_content_ip.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_ip import ConnectionOptionsIp -from .connection_show_as_button import ConnectionShowAsButton -from .create_connection_common import CreateConnectionCommon -from .create_connection_request_content_ip_strategy import CreateConnectionRequestContentIpStrategy - - -class CreateConnectionRequestContentIp(CreateConnectionCommon): - """ - Create a connection with strategy=ip - """ - - strategy: CreateConnectionRequestContentIpStrategy - options: typing.Optional[ConnectionOptionsIp] = None - show_as_button: typing.Optional[ConnectionShowAsButton] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_connection_request_content_ip_strategy.py b/src/auth0/management/types/create_connection_request_content_ip_strategy.py deleted file mode 100644 index 2e459feb..00000000 --- a/src/auth0/management/types/create_connection_request_content_ip_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CreateConnectionRequestContentIpStrategy = typing.Union[typing.Literal["ip"], typing.Any] diff --git a/src/auth0/management/types/create_connection_request_content_line.py b/src/auth0/management/types/create_connection_request_content_line.py deleted file mode 100644 index 15a8d2dd..00000000 --- a/src/auth0/management/types/create_connection_request_content_line.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_line import ConnectionOptionsLine -from .create_connection_common import CreateConnectionCommon -from .create_connection_request_content_line_strategy import CreateConnectionRequestContentLineStrategy - - -class CreateConnectionRequestContentLine(CreateConnectionCommon): - """ - Create a connection with strategy=line - """ - - strategy: CreateConnectionRequestContentLineStrategy - options: typing.Optional[ConnectionOptionsLine] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_connection_request_content_line_strategy.py b/src/auth0/management/types/create_connection_request_content_line_strategy.py deleted file mode 100644 index c682a645..00000000 --- a/src/auth0/management/types/create_connection_request_content_line_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CreateConnectionRequestContentLineStrategy = typing.Union[typing.Literal["line"], typing.Any] diff --git a/src/auth0/management/types/create_connection_request_content_linkedin.py b/src/auth0/management/types/create_connection_request_content_linkedin.py deleted file mode 100644 index 61be9bea..00000000 --- a/src/auth0/management/types/create_connection_request_content_linkedin.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_linkedin import ConnectionOptionsLinkedin -from .create_connection_common import CreateConnectionCommon -from .create_connection_request_content_linkedin_strategy import CreateConnectionRequestContentLinkedinStrategy - - -class CreateConnectionRequestContentLinkedin(CreateConnectionCommon): - """ - Create a connection with strategy=linkedin - """ - - strategy: CreateConnectionRequestContentLinkedinStrategy - options: typing.Optional[ConnectionOptionsLinkedin] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_connection_request_content_linkedin_strategy.py b/src/auth0/management/types/create_connection_request_content_linkedin_strategy.py deleted file mode 100644 index d27cde41..00000000 --- a/src/auth0/management/types/create_connection_request_content_linkedin_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CreateConnectionRequestContentLinkedinStrategy = typing.Union[typing.Literal["linkedin"], typing.Any] diff --git a/src/auth0/management/types/create_connection_request_content_o_auth_1.py b/src/auth0/management/types/create_connection_request_content_o_auth_1.py deleted file mode 100644 index dc3bea5a..00000000 --- a/src/auth0/management/types/create_connection_request_content_o_auth_1.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_o_auth_1 import ConnectionOptionsOAuth1 -from .create_connection_common import CreateConnectionCommon -from .create_connection_request_content_o_auth_1_strategy import CreateConnectionRequestContentOAuth1Strategy - - -class CreateConnectionRequestContentOAuth1(CreateConnectionCommon): - """ - Create a connection with strategy=oauth1 - """ - - strategy: CreateConnectionRequestContentOAuth1Strategy - options: typing.Optional[ConnectionOptionsOAuth1] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_connection_request_content_o_auth_1_strategy.py b/src/auth0/management/types/create_connection_request_content_o_auth_1_strategy.py deleted file mode 100644 index 15a2e092..00000000 --- a/src/auth0/management/types/create_connection_request_content_o_auth_1_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CreateConnectionRequestContentOAuth1Strategy = typing.Union[typing.Literal["oauth1"], typing.Any] diff --git a/src/auth0/management/types/create_connection_request_content_o_auth_2.py b/src/auth0/management/types/create_connection_request_content_o_auth_2.py deleted file mode 100644 index 639a7c43..00000000 --- a/src/auth0/management/types/create_connection_request_content_o_auth_2.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_o_auth_2 import ConnectionOptionsOAuth2 -from .connection_purposes import ConnectionPurposes -from .create_connection_common import CreateConnectionCommon -from .create_connection_request_content_o_auth_2_strategy import CreateConnectionRequestContentOAuth2Strategy - - -class CreateConnectionRequestContentOAuth2(ConnectionPurposes, CreateConnectionCommon): - """ - Create a connection with strategy=oauth2 - """ - - strategy: CreateConnectionRequestContentOAuth2Strategy - options: typing.Optional[ConnectionOptionsOAuth2] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_connection_request_content_o_auth_2_strategy.py b/src/auth0/management/types/create_connection_request_content_o_auth_2_strategy.py deleted file mode 100644 index 5bb19b90..00000000 --- a/src/auth0/management/types/create_connection_request_content_o_auth_2_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CreateConnectionRequestContentOAuth2Strategy = typing.Union[typing.Literal["oauth2"], typing.Any] diff --git a/src/auth0/management/types/create_connection_request_content_office_365.py b/src/auth0/management/types/create_connection_request_content_office_365.py deleted file mode 100644 index 1b981136..00000000 --- a/src/auth0/management/types/create_connection_request_content_office_365.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_office_365 import ConnectionOptionsOffice365 -from .connection_show_as_button import ConnectionShowAsButton -from .create_connection_common import CreateConnectionCommon -from .create_connection_request_content_office_365_strategy import CreateConnectionRequestContentOffice365Strategy - - -class CreateConnectionRequestContentOffice365(CreateConnectionCommon): - """ - Create a connection with strategy=office365 - """ - - strategy: CreateConnectionRequestContentOffice365Strategy - options: typing.Optional[ConnectionOptionsOffice365] = None - show_as_button: typing.Optional[ConnectionShowAsButton] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_connection_request_content_office_365_strategy.py b/src/auth0/management/types/create_connection_request_content_office_365_strategy.py deleted file mode 100644 index 123018b6..00000000 --- a/src/auth0/management/types/create_connection_request_content_office_365_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CreateConnectionRequestContentOffice365Strategy = typing.Union[typing.Literal["office365"], typing.Any] diff --git a/src/auth0/management/types/create_connection_request_content_oidc.py b/src/auth0/management/types/create_connection_request_content_oidc.py deleted file mode 100644 index 932970ab..00000000 --- a/src/auth0/management/types/create_connection_request_content_oidc.py +++ /dev/null @@ -1,37 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_authentication_purpose import ConnectionAuthenticationPurpose -from .connection_connected_accounts_purpose_xaa import ConnectionConnectedAccountsPurposeXaa -from .connection_cross_app_access_resource_app import ConnectionCrossAppAccessResourceApp -from .connection_options_oidc import ConnectionOptionsOidc -from .connection_show_as_button import ConnectionShowAsButton -from .create_connection_common import CreateConnectionCommon -from .create_connection_request_content_oidc_strategy import CreateConnectionRequestContentOidcStrategy -from .cross_app_access_requesting_app import CrossAppAccessRequestingApp - - -class CreateConnectionRequestContentOidc(CreateConnectionCommon): - """ - Create a connection with strategy=oidc - """ - - strategy: CreateConnectionRequestContentOidcStrategy - authentication: typing.Optional[ConnectionAuthenticationPurpose] = None - connected_accounts: typing.Optional[ConnectionConnectedAccountsPurposeXaa] = None - cross_app_access_requesting_app: typing.Optional[CrossAppAccessRequestingApp] = None - cross_app_access_resource_app: typing.Optional[ConnectionCrossAppAccessResourceApp] = None - options: typing.Optional[ConnectionOptionsOidc] = None - show_as_button: typing.Optional[ConnectionShowAsButton] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_connection_request_content_oidc_strategy.py b/src/auth0/management/types/create_connection_request_content_oidc_strategy.py deleted file mode 100644 index 9fe66a93..00000000 --- a/src/auth0/management/types/create_connection_request_content_oidc_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CreateConnectionRequestContentOidcStrategy = typing.Union[typing.Literal["oidc"], typing.Any] diff --git a/src/auth0/management/types/create_connection_request_content_okta.py b/src/auth0/management/types/create_connection_request_content_okta.py deleted file mode 100644 index 58c6dfd8..00000000 --- a/src/auth0/management/types/create_connection_request_content_okta.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_okta import ConnectionOptionsOkta -from .connection_show_as_button import ConnectionShowAsButton -from .create_connection_common import CreateConnectionCommon -from .create_connection_request_content_okta_strategy import CreateConnectionRequestContentOktaStrategy -from .cross_app_access_requesting_app import CrossAppAccessRequestingApp - - -class CreateConnectionRequestContentOkta(CreateConnectionCommon): - """ - Create a connection with strategy=okta - """ - - strategy: CreateConnectionRequestContentOktaStrategy - cross_app_access_requesting_app: typing.Optional[CrossAppAccessRequestingApp] = None - options: typing.Optional[ConnectionOptionsOkta] = None - show_as_button: typing.Optional[ConnectionShowAsButton] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_connection_request_content_okta_strategy.py b/src/auth0/management/types/create_connection_request_content_okta_strategy.py deleted file mode 100644 index 3156d023..00000000 --- a/src/auth0/management/types/create_connection_request_content_okta_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CreateConnectionRequestContentOktaStrategy = typing.Union[typing.Literal["okta"], typing.Any] diff --git a/src/auth0/management/types/create_connection_request_content_paypal.py b/src/auth0/management/types/create_connection_request_content_paypal.py deleted file mode 100644 index 8d6ed7c4..00000000 --- a/src/auth0/management/types/create_connection_request_content_paypal.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_paypal import ConnectionOptionsPaypal -from .create_connection_common import CreateConnectionCommon -from .create_connection_request_content_paypal_strategy import CreateConnectionRequestContentPaypalStrategy - - -class CreateConnectionRequestContentPaypal(CreateConnectionCommon): - """ - Create a connection with strategy=paypal - """ - - strategy: CreateConnectionRequestContentPaypalStrategy - options: typing.Optional[ConnectionOptionsPaypal] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_connection_request_content_paypal_sandbox.py b/src/auth0/management/types/create_connection_request_content_paypal_sandbox.py deleted file mode 100644 index cf4798da..00000000 --- a/src/auth0/management/types/create_connection_request_content_paypal_sandbox.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_paypal import ConnectionOptionsPaypal -from .create_connection_common import CreateConnectionCommon -from .create_connection_request_content_paypal_sandbox_strategy import ( - CreateConnectionRequestContentPaypalSandboxStrategy, -) - - -class CreateConnectionRequestContentPaypalSandbox(CreateConnectionCommon): - """ - Create a connection with strategy=paypal-sandbox - """ - - strategy: CreateConnectionRequestContentPaypalSandboxStrategy - options: typing.Optional[ConnectionOptionsPaypal] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_connection_request_content_paypal_sandbox_strategy.py b/src/auth0/management/types/create_connection_request_content_paypal_sandbox_strategy.py deleted file mode 100644 index cb85e4fd..00000000 --- a/src/auth0/management/types/create_connection_request_content_paypal_sandbox_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CreateConnectionRequestContentPaypalSandboxStrategy = typing.Union[typing.Literal["paypal-sandbox"], typing.Any] diff --git a/src/auth0/management/types/create_connection_request_content_paypal_strategy.py b/src/auth0/management/types/create_connection_request_content_paypal_strategy.py deleted file mode 100644 index d2779717..00000000 --- a/src/auth0/management/types/create_connection_request_content_paypal_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CreateConnectionRequestContentPaypalStrategy = typing.Union[typing.Literal["paypal"], typing.Any] diff --git a/src/auth0/management/types/create_connection_request_content_ping_federate.py b/src/auth0/management/types/create_connection_request_content_ping_federate.py deleted file mode 100644 index 6651bdc9..00000000 --- a/src/auth0/management/types/create_connection_request_content_ping_federate.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_ping_federate import ConnectionOptionsPingFederate -from .connection_show_as_button import ConnectionShowAsButton -from .create_connection_common import CreateConnectionCommon -from .create_connection_request_content_ping_federate_strategy import CreateConnectionRequestContentPingFederateStrategy - - -class CreateConnectionRequestContentPingFederate(CreateConnectionCommon): - """ - Create a connection with strategy=pingfederate - """ - - strategy: CreateConnectionRequestContentPingFederateStrategy - options: typing.Optional[ConnectionOptionsPingFederate] = None - show_as_button: typing.Optional[ConnectionShowAsButton] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_connection_request_content_ping_federate_strategy.py b/src/auth0/management/types/create_connection_request_content_ping_federate_strategy.py deleted file mode 100644 index 6bab939d..00000000 --- a/src/auth0/management/types/create_connection_request_content_ping_federate_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CreateConnectionRequestContentPingFederateStrategy = typing.Union[typing.Literal["pingfederate"], typing.Any] diff --git a/src/auth0/management/types/create_connection_request_content_planning_center.py b/src/auth0/management/types/create_connection_request_content_planning_center.py deleted file mode 100644 index fab0c62d..00000000 --- a/src/auth0/management/types/create_connection_request_content_planning_center.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_planning_center import ConnectionOptionsPlanningCenter -from .create_connection_common import CreateConnectionCommon -from .create_connection_request_content_planning_center_strategy import ( - CreateConnectionRequestContentPlanningCenterStrategy, -) - - -class CreateConnectionRequestContentPlanningCenter(CreateConnectionCommon): - """ - Create a connection with strategy=planningcenter - """ - - strategy: CreateConnectionRequestContentPlanningCenterStrategy - options: typing.Optional[ConnectionOptionsPlanningCenter] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_connection_request_content_planning_center_strategy.py b/src/auth0/management/types/create_connection_request_content_planning_center_strategy.py deleted file mode 100644 index 899b81d0..00000000 --- a/src/auth0/management/types/create_connection_request_content_planning_center_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CreateConnectionRequestContentPlanningCenterStrategy = typing.Union[typing.Literal["planningcenter"], typing.Any] diff --git a/src/auth0/management/types/create_connection_request_content_salesforce.py b/src/auth0/management/types/create_connection_request_content_salesforce.py deleted file mode 100644 index df22a383..00000000 --- a/src/auth0/management/types/create_connection_request_content_salesforce.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_salesforce import ConnectionOptionsSalesforce -from .create_connection_common import CreateConnectionCommon -from .create_connection_request_content_salesforce_strategy import CreateConnectionRequestContentSalesforceStrategy - - -class CreateConnectionRequestContentSalesforce(CreateConnectionCommon): - """ - Create a connection with strategy=salesforce - """ - - strategy: CreateConnectionRequestContentSalesforceStrategy - options: typing.Optional[ConnectionOptionsSalesforce] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_connection_request_content_salesforce_community.py b/src/auth0/management/types/create_connection_request_content_salesforce_community.py deleted file mode 100644 index 7e6f2f37..00000000 --- a/src/auth0/management/types/create_connection_request_content_salesforce_community.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_salesforce_community import ConnectionOptionsSalesforceCommunity -from .create_connection_common import CreateConnectionCommon -from .create_connection_request_content_salesforce_community_strategy import ( - CreateConnectionRequestContentSalesforceCommunityStrategy, -) - - -class CreateConnectionRequestContentSalesforceCommunity(CreateConnectionCommon): - """ - Create a connection with strategy=salesforce-community - """ - - strategy: CreateConnectionRequestContentSalesforceCommunityStrategy - options: typing.Optional[ConnectionOptionsSalesforceCommunity] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_connection_request_content_salesforce_community_strategy.py b/src/auth0/management/types/create_connection_request_content_salesforce_community_strategy.py deleted file mode 100644 index 492b581e..00000000 --- a/src/auth0/management/types/create_connection_request_content_salesforce_community_strategy.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CreateConnectionRequestContentSalesforceCommunityStrategy = typing.Union[ - typing.Literal["salesforce-community"], typing.Any -] diff --git a/src/auth0/management/types/create_connection_request_content_salesforce_sandbox.py b/src/auth0/management/types/create_connection_request_content_salesforce_sandbox.py deleted file mode 100644 index eb67de82..00000000 --- a/src/auth0/management/types/create_connection_request_content_salesforce_sandbox.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_salesforce import ConnectionOptionsSalesforce -from .create_connection_common import CreateConnectionCommon -from .create_connection_request_content_salesforce_sandbox_strategy import ( - CreateConnectionRequestContentSalesforceSandboxStrategy, -) - - -class CreateConnectionRequestContentSalesforceSandbox(CreateConnectionCommon): - """ - Create a connection with strategy=salesforce-sandbox - """ - - strategy: CreateConnectionRequestContentSalesforceSandboxStrategy - options: typing.Optional[ConnectionOptionsSalesforce] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_connection_request_content_salesforce_sandbox_strategy.py b/src/auth0/management/types/create_connection_request_content_salesforce_sandbox_strategy.py deleted file mode 100644 index 04806b1e..00000000 --- a/src/auth0/management/types/create_connection_request_content_salesforce_sandbox_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CreateConnectionRequestContentSalesforceSandboxStrategy = typing.Union[typing.Literal["salesforce-sandbox"], typing.Any] diff --git a/src/auth0/management/types/create_connection_request_content_salesforce_strategy.py b/src/auth0/management/types/create_connection_request_content_salesforce_strategy.py deleted file mode 100644 index 4d4e3218..00000000 --- a/src/auth0/management/types/create_connection_request_content_salesforce_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CreateConnectionRequestContentSalesforceStrategy = typing.Union[typing.Literal["salesforce"], typing.Any] diff --git a/src/auth0/management/types/create_connection_request_content_saml.py b/src/auth0/management/types/create_connection_request_content_saml.py deleted file mode 100644 index ff1e3958..00000000 --- a/src/auth0/management/types/create_connection_request_content_saml.py +++ /dev/null @@ -1,33 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_cross_app_access_resource_app import ConnectionCrossAppAccessResourceApp -from .connection_options_saml import ConnectionOptionsSaml -from .connection_show_as_button import ConnectionShowAsButton -from .create_connection_common import CreateConnectionCommon -from .create_connection_request_content_saml_strategy import CreateConnectionRequestContentSamlStrategy -from .cross_app_access_requesting_app import CrossAppAccessRequestingApp - - -class CreateConnectionRequestContentSaml(CreateConnectionCommon): - """ - Create a connection with strategy=samlp - """ - - strategy: CreateConnectionRequestContentSamlStrategy - cross_app_access_requesting_app: typing.Optional[CrossAppAccessRequestingApp] = None - cross_app_access_resource_app: typing.Optional[ConnectionCrossAppAccessResourceApp] = None - options: typing.Optional[ConnectionOptionsSaml] = None - show_as_button: typing.Optional[ConnectionShowAsButton] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_connection_request_content_saml_strategy.py b/src/auth0/management/types/create_connection_request_content_saml_strategy.py deleted file mode 100644 index 4102aacc..00000000 --- a/src/auth0/management/types/create_connection_request_content_saml_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CreateConnectionRequestContentSamlStrategy = typing.Union[typing.Literal["samlp"], typing.Any] diff --git a/src/auth0/management/types/create_connection_request_content_sharepoint.py b/src/auth0/management/types/create_connection_request_content_sharepoint.py deleted file mode 100644 index 17e3e213..00000000 --- a/src/auth0/management/types/create_connection_request_content_sharepoint.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_sharepoint import ConnectionOptionsSharepoint -from .connection_show_as_button import ConnectionShowAsButton -from .create_connection_common import CreateConnectionCommon -from .create_connection_request_content_sharepoint_strategy import CreateConnectionRequestContentSharepointStrategy - - -class CreateConnectionRequestContentSharepoint(CreateConnectionCommon): - """ - Create a connection with strategy=sharepoint - """ - - strategy: CreateConnectionRequestContentSharepointStrategy - options: typing.Optional[ConnectionOptionsSharepoint] = None - show_as_button: typing.Optional[ConnectionShowAsButton] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_connection_request_content_sharepoint_strategy.py b/src/auth0/management/types/create_connection_request_content_sharepoint_strategy.py deleted file mode 100644 index 7a4712a5..00000000 --- a/src/auth0/management/types/create_connection_request_content_sharepoint_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CreateConnectionRequestContentSharepointStrategy = typing.Union[typing.Literal["sharepoint"], typing.Any] diff --git a/src/auth0/management/types/create_connection_request_content_shop.py b/src/auth0/management/types/create_connection_request_content_shop.py deleted file mode 100644 index 948c95e2..00000000 --- a/src/auth0/management/types/create_connection_request_content_shop.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_shop import ConnectionOptionsShop -from .create_connection_common import CreateConnectionCommon -from .create_connection_request_content_shop_strategy import CreateConnectionRequestContentShopStrategy - - -class CreateConnectionRequestContentShop(CreateConnectionCommon): - """ - Create a connection with strategy=shop - """ - - strategy: CreateConnectionRequestContentShopStrategy - options: typing.Optional[ConnectionOptionsShop] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_connection_request_content_shop_strategy.py b/src/auth0/management/types/create_connection_request_content_shop_strategy.py deleted file mode 100644 index 2ecfa4d9..00000000 --- a/src/auth0/management/types/create_connection_request_content_shop_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CreateConnectionRequestContentShopStrategy = typing.Union[typing.Literal["shop"], typing.Any] diff --git a/src/auth0/management/types/create_connection_request_content_shopify.py b/src/auth0/management/types/create_connection_request_content_shopify.py deleted file mode 100644 index 0b1ee086..00000000 --- a/src/auth0/management/types/create_connection_request_content_shopify.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_shopify import ConnectionOptionsShopify -from .create_connection_common import CreateConnectionCommon -from .create_connection_request_content_shopify_strategy import CreateConnectionRequestContentShopifyStrategy - - -class CreateConnectionRequestContentShopify(CreateConnectionCommon): - """ - Create a connection with strategy=shopify - """ - - strategy: CreateConnectionRequestContentShopifyStrategy - options: typing.Optional[ConnectionOptionsShopify] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_connection_request_content_shopify_strategy.py b/src/auth0/management/types/create_connection_request_content_shopify_strategy.py deleted file mode 100644 index a2afb333..00000000 --- a/src/auth0/management/types/create_connection_request_content_shopify_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CreateConnectionRequestContentShopifyStrategy = typing.Union[typing.Literal["shopify"], typing.Any] diff --git a/src/auth0/management/types/create_connection_request_content_sms.py b/src/auth0/management/types/create_connection_request_content_sms.py deleted file mode 100644 index 202648b5..00000000 --- a/src/auth0/management/types/create_connection_request_content_sms.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_sms import ConnectionOptionsSms -from .create_connection_common import CreateConnectionCommon -from .create_connection_request_content_sms_strategy import CreateConnectionRequestContentSmsStrategy - - -class CreateConnectionRequestContentSms(CreateConnectionCommon): - """ - Create a connection with strategy=sms - """ - - strategy: CreateConnectionRequestContentSmsStrategy - options: typing.Optional[ConnectionOptionsSms] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_connection_request_content_sms_strategy.py b/src/auth0/management/types/create_connection_request_content_sms_strategy.py deleted file mode 100644 index a0c72c66..00000000 --- a/src/auth0/management/types/create_connection_request_content_sms_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CreateConnectionRequestContentSmsStrategy = typing.Union[typing.Literal["sms"], typing.Any] diff --git a/src/auth0/management/types/create_connection_request_content_soundcloud.py b/src/auth0/management/types/create_connection_request_content_soundcloud.py deleted file mode 100644 index 9319b878..00000000 --- a/src/auth0/management/types/create_connection_request_content_soundcloud.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_soundcloud import ConnectionOptionsSoundcloud -from .create_connection_common import CreateConnectionCommon -from .create_connection_request_content_soundcloud_strategy import CreateConnectionRequestContentSoundcloudStrategy - - -class CreateConnectionRequestContentSoundcloud(CreateConnectionCommon): - """ - Create a connection with strategy=soundcloud - """ - - strategy: CreateConnectionRequestContentSoundcloudStrategy - options: typing.Optional[ConnectionOptionsSoundcloud] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_connection_request_content_soundcloud_strategy.py b/src/auth0/management/types/create_connection_request_content_soundcloud_strategy.py deleted file mode 100644 index eab514b8..00000000 --- a/src/auth0/management/types/create_connection_request_content_soundcloud_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CreateConnectionRequestContentSoundcloudStrategy = typing.Union[typing.Literal["soundcloud"], typing.Any] diff --git a/src/auth0/management/types/create_connection_request_content_thirty_seven_signals.py b/src/auth0/management/types/create_connection_request_content_thirty_seven_signals.py deleted file mode 100644 index 0001a8cb..00000000 --- a/src/auth0/management/types/create_connection_request_content_thirty_seven_signals.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_thirty_seven_signals import ConnectionOptionsThirtySevenSignals -from .create_connection_common import CreateConnectionCommon -from .create_connection_request_content_thirty_seven_signals_strategy import ( - CreateConnectionRequestContentThirtySevenSignalsStrategy, -) - - -class CreateConnectionRequestContentThirtySevenSignals(CreateConnectionCommon): - """ - Create a connection with strategy=thirtysevensignals - """ - - strategy: CreateConnectionRequestContentThirtySevenSignalsStrategy - options: typing.Optional[ConnectionOptionsThirtySevenSignals] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_connection_request_content_thirty_seven_signals_strategy.py b/src/auth0/management/types/create_connection_request_content_thirty_seven_signals_strategy.py deleted file mode 100644 index cba8ccd6..00000000 --- a/src/auth0/management/types/create_connection_request_content_thirty_seven_signals_strategy.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CreateConnectionRequestContentThirtySevenSignalsStrategy = typing.Union[ - typing.Literal["thirtysevensignals"], typing.Any -] diff --git a/src/auth0/management/types/create_connection_request_content_twitter.py b/src/auth0/management/types/create_connection_request_content_twitter.py deleted file mode 100644 index bed4634a..00000000 --- a/src/auth0/management/types/create_connection_request_content_twitter.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_twitter import ConnectionOptionsTwitter -from .create_connection_common import CreateConnectionCommon -from .create_connection_request_content_twitter_strategy import CreateConnectionRequestContentTwitterStrategy - - -class CreateConnectionRequestContentTwitter(CreateConnectionCommon): - """ - Create a connection with strategy=twitter - """ - - strategy: CreateConnectionRequestContentTwitterStrategy - options: typing.Optional[ConnectionOptionsTwitter] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_connection_request_content_twitter_strategy.py b/src/auth0/management/types/create_connection_request_content_twitter_strategy.py deleted file mode 100644 index 2cde5333..00000000 --- a/src/auth0/management/types/create_connection_request_content_twitter_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CreateConnectionRequestContentTwitterStrategy = typing.Union[typing.Literal["twitter"], typing.Any] diff --git a/src/auth0/management/types/create_connection_request_content_untappd.py b/src/auth0/management/types/create_connection_request_content_untappd.py deleted file mode 100644 index 95377783..00000000 --- a/src/auth0/management/types/create_connection_request_content_untappd.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_untappd import ConnectionOptionsUntappd -from .create_connection_common import CreateConnectionCommon -from .create_connection_request_content_untappd_strategy import CreateConnectionRequestContentUntappdStrategy - - -class CreateConnectionRequestContentUntappd(CreateConnectionCommon): - """ - Create a connection with strategy=untappd - """ - - strategy: CreateConnectionRequestContentUntappdStrategy - options: typing.Optional[ConnectionOptionsUntappd] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_connection_request_content_untappd_strategy.py b/src/auth0/management/types/create_connection_request_content_untappd_strategy.py deleted file mode 100644 index 81c1ccfe..00000000 --- a/src/auth0/management/types/create_connection_request_content_untappd_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CreateConnectionRequestContentUntappdStrategy = typing.Union[typing.Literal["untappd"], typing.Any] diff --git a/src/auth0/management/types/create_connection_request_content_vkontakte.py b/src/auth0/management/types/create_connection_request_content_vkontakte.py deleted file mode 100644 index 031e1330..00000000 --- a/src/auth0/management/types/create_connection_request_content_vkontakte.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_vkontakte import ConnectionOptionsVkontakte -from .create_connection_common import CreateConnectionCommon -from .create_connection_request_content_vkontakte_strategy import CreateConnectionRequestContentVkontakteStrategy - - -class CreateConnectionRequestContentVkontakte(CreateConnectionCommon): - """ - Create a connection with strategy=vkontakte - """ - - strategy: CreateConnectionRequestContentVkontakteStrategy - options: typing.Optional[ConnectionOptionsVkontakte] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_connection_request_content_vkontakte_strategy.py b/src/auth0/management/types/create_connection_request_content_vkontakte_strategy.py deleted file mode 100644 index 0b0502c4..00000000 --- a/src/auth0/management/types/create_connection_request_content_vkontakte_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CreateConnectionRequestContentVkontakteStrategy = typing.Union[typing.Literal["vkontakte"], typing.Any] diff --git a/src/auth0/management/types/create_connection_request_content_weibo.py b/src/auth0/management/types/create_connection_request_content_weibo.py deleted file mode 100644 index 9bb44ef3..00000000 --- a/src/auth0/management/types/create_connection_request_content_weibo.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_weibo import ConnectionOptionsWeibo -from .create_connection_common import CreateConnectionCommon -from .create_connection_request_content_weibo_strategy import CreateConnectionRequestContentWeiboStrategy - - -class CreateConnectionRequestContentWeibo(CreateConnectionCommon): - """ - Create a connection with strategy=weibo - """ - - strategy: CreateConnectionRequestContentWeiboStrategy - options: typing.Optional[ConnectionOptionsWeibo] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_connection_request_content_weibo_strategy.py b/src/auth0/management/types/create_connection_request_content_weibo_strategy.py deleted file mode 100644 index f7165ecd..00000000 --- a/src/auth0/management/types/create_connection_request_content_weibo_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CreateConnectionRequestContentWeiboStrategy = typing.Union[typing.Literal["weibo"], typing.Any] diff --git a/src/auth0/management/types/create_connection_request_content_windows_live.py b/src/auth0/management/types/create_connection_request_content_windows_live.py deleted file mode 100644 index c9264676..00000000 --- a/src/auth0/management/types/create_connection_request_content_windows_live.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_windows_live import ConnectionOptionsWindowsLive -from .connection_purposes import ConnectionPurposes -from .create_connection_common import CreateConnectionCommon -from .create_connection_request_content_windows_live_strategy import CreateConnectionRequestContentWindowsLiveStrategy - - -class CreateConnectionRequestContentWindowsLive(ConnectionPurposes, CreateConnectionCommon): - """ - Create a connection with strategy=windowslive - """ - - strategy: CreateConnectionRequestContentWindowsLiveStrategy - options: typing.Optional[ConnectionOptionsWindowsLive] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_connection_request_content_windows_live_strategy.py b/src/auth0/management/types/create_connection_request_content_windows_live_strategy.py deleted file mode 100644 index 173570a5..00000000 --- a/src/auth0/management/types/create_connection_request_content_windows_live_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CreateConnectionRequestContentWindowsLiveStrategy = typing.Union[typing.Literal["windowslive"], typing.Any] diff --git a/src/auth0/management/types/create_connection_request_content_wordpress.py b/src/auth0/management/types/create_connection_request_content_wordpress.py deleted file mode 100644 index 388e03d4..00000000 --- a/src/auth0/management/types/create_connection_request_content_wordpress.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_wordpress import ConnectionOptionsWordpress -from .create_connection_common import CreateConnectionCommon -from .create_connection_request_content_wordpress_strategy import CreateConnectionRequestContentWordpressStrategy - - -class CreateConnectionRequestContentWordpress(CreateConnectionCommon): - """ - Create a connection with strategy=wordpress - """ - - strategy: CreateConnectionRequestContentWordpressStrategy - options: typing.Optional[ConnectionOptionsWordpress] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_connection_request_content_wordpress_strategy.py b/src/auth0/management/types/create_connection_request_content_wordpress_strategy.py deleted file mode 100644 index dcecae16..00000000 --- a/src/auth0/management/types/create_connection_request_content_wordpress_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CreateConnectionRequestContentWordpressStrategy = typing.Union[typing.Literal["wordpress"], typing.Any] diff --git a/src/auth0/management/types/create_connection_request_content_yahoo.py b/src/auth0/management/types/create_connection_request_content_yahoo.py deleted file mode 100644 index 8f323549..00000000 --- a/src/auth0/management/types/create_connection_request_content_yahoo.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_yahoo import ConnectionOptionsYahoo -from .create_connection_common import CreateConnectionCommon -from .create_connection_request_content_yahoo_strategy import CreateConnectionRequestContentYahooStrategy - - -class CreateConnectionRequestContentYahoo(CreateConnectionCommon): - """ - Create a connection with strategy=yahoo - """ - - strategy: CreateConnectionRequestContentYahooStrategy - options: typing.Optional[ConnectionOptionsYahoo] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_connection_request_content_yahoo_strategy.py b/src/auth0/management/types/create_connection_request_content_yahoo_strategy.py deleted file mode 100644 index 970b4606..00000000 --- a/src/auth0/management/types/create_connection_request_content_yahoo_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CreateConnectionRequestContentYahooStrategy = typing.Union[typing.Literal["yahoo"], typing.Any] diff --git a/src/auth0/management/types/create_connection_request_content_yandex.py b/src/auth0/management/types/create_connection_request_content_yandex.py deleted file mode 100644 index a98e1a41..00000000 --- a/src/auth0/management/types/create_connection_request_content_yandex.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_options_yandex import ConnectionOptionsYandex -from .create_connection_common import CreateConnectionCommon -from .create_connection_request_content_yandex_strategy import CreateConnectionRequestContentYandexStrategy - - -class CreateConnectionRequestContentYandex(CreateConnectionCommon): - """ - Create a connection with strategy=yandex - """ - - strategy: CreateConnectionRequestContentYandexStrategy - options: typing.Optional[ConnectionOptionsYandex] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_connection_request_content_yandex_strategy.py b/src/auth0/management/types/create_connection_request_content_yandex_strategy.py deleted file mode 100644 index f55afa8d..00000000 --- a/src/auth0/management/types/create_connection_request_content_yandex_strategy.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CreateConnectionRequestContentYandexStrategy = typing.Union[typing.Literal["yandex"], typing.Any] diff --git a/src/auth0/management/types/create_connection_response_content.py b/src/auth0/management/types/create_connection_response_content.py deleted file mode 100644 index 2f9510dd..00000000 --- a/src/auth0/management/types/create_connection_response_content.py +++ /dev/null @@ -1,70 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .connection_authentication_purpose import ConnectionAuthenticationPurpose -from .connection_connected_accounts_purpose import ConnectionConnectedAccountsPurpose -from .connection_options import ConnectionOptions -from .connections_metadata import ConnectionsMetadata -from .cross_app_access_requesting_app import CrossAppAccessRequestingApp -from .cross_app_access_resource_app import CrossAppAccessResourceApp - - -class CreateConnectionResponseContent(UniversalBaseModel): - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The name of the connection - """ - - display_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Connection name used in login screen - """ - - options: typing.Optional[ConnectionOptions] = None - id: typing.Optional[str] = pydantic.Field(default=None) - """ - The connection's identifier - """ - - strategy: typing.Optional[str] = pydantic.Field(default=None) - """ - The type of the connection, related to the identity provider - """ - - realms: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. - """ - - enabled_clients: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - DEPRECATED property. Use the GET /connections/:id/clients endpoint to get the ids of the clients for which the connection is enabled - """ - - is_domain_connection: typing.Optional[bool] = pydantic.Field(default=None) - """ - True if the connection is domain level - """ - - show_as_button: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. - """ - - metadata: typing.Optional[ConnectionsMetadata] = None - authentication: typing.Optional[ConnectionAuthenticationPurpose] = None - connected_accounts: typing.Optional[ConnectionConnectedAccountsPurpose] = None - cross_app_access_requesting_app: typing.Optional[CrossAppAccessRequestingApp] = None - cross_app_access_resource_app: typing.Optional[CrossAppAccessResourceApp] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_cross_app_access_resource_app.py b/src/auth0/management/types/create_cross_app_access_resource_app.py deleted file mode 100644 index d80b9081..00000000 --- a/src/auth0/management/types/create_cross_app_access_resource_app.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .cross_app_access_resource_app_status_enum import CrossAppAccessResourceAppStatusEnum - - -class CreateCrossAppAccessResourceApp(UniversalBaseModel): - """ - Cross App Access - Resource App settings that apply to this connection. - """ - - status: CrossAppAccessResourceAppStatusEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_custom_domain_response_content.py b/src/auth0/management/types/create_custom_domain_response_content.py deleted file mode 100644 index d5debfd6..00000000 --- a/src/auth0/management/types/create_custom_domain_response_content.py +++ /dev/null @@ -1,62 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .custom_domain_status_filter_enum import CustomDomainStatusFilterEnum -from .custom_domain_type_enum import CustomDomainTypeEnum -from .domain_certificate import DomainCertificate -from .domain_metadata import DomainMetadata -from .domain_verification import DomainVerification - - -class CreateCustomDomainResponseContent(UniversalBaseModel): - custom_domain_id: str = pydantic.Field() - """ - ID of the custom domain. - """ - - domain: str = pydantic.Field() - """ - Domain name. - """ - - primary: bool = pydantic.Field() - """ - Whether this is a primary domain (true) or not (false). - """ - - is_default: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this is the default custom domain (true) or not (false). - """ - - status: CustomDomainStatusFilterEnum - type: CustomDomainTypeEnum - verification: DomainVerification - custom_client_ip_header: typing.Optional[str] = pydantic.Field(default=None) - """ - The HTTP header to fetch the client's IP address - """ - - tls_policy: typing.Optional[str] = pydantic.Field(default=None) - """ - The TLS version policy - """ - - domain_metadata: typing.Optional[DomainMetadata] = None - certificate: typing.Optional[DomainCertificate] = None - relying_party_identifier: typing.Optional[str] = pydantic.Field(default=None) - """ - Relying Party ID (rpId) to be used for Passkeys on this custom domain. If not present, the full domain will be used. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_directory_provisioning_request_content.py b/src/auth0/management/types/create_directory_provisioning_request_content.py deleted file mode 100644 index b1d1cea1..00000000 --- a/src/auth0/management/types/create_directory_provisioning_request_content.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .directory_provisioning_mapping_item import DirectoryProvisioningMappingItem -from .synchronize_groups_enum import SynchronizeGroupsEnum - - -class CreateDirectoryProvisioningRequestContent(UniversalBaseModel): - mapping: typing.Optional[typing.List[DirectoryProvisioningMappingItem]] = pydantic.Field(default=None) - """ - The mapping between Auth0 and IDP user attributes - """ - - synchronize_automatically: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether periodic automatic synchronization is enabled - """ - - synchronize_groups: typing.Optional[SynchronizeGroupsEnum] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_directory_provisioning_response_content.py b/src/auth0/management/types/create_directory_provisioning_response_content.py deleted file mode 100644 index a06ade59..00000000 --- a/src/auth0/management/types/create_directory_provisioning_response_content.py +++ /dev/null @@ -1,71 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .directory_provisioning_mapping_item import DirectoryProvisioningMappingItem -from .synchronize_groups_enum import SynchronizeGroupsEnum - - -class CreateDirectoryProvisioningResponseContent(UniversalBaseModel): - connection_id: str = pydantic.Field() - """ - The connection's identifier - """ - - connection_name: str = pydantic.Field() - """ - The connection's name - """ - - strategy: str = pydantic.Field() - """ - The connection's strategy - """ - - mapping: typing.List[DirectoryProvisioningMappingItem] = pydantic.Field() - """ - The mapping between Auth0 and IDP user attributes - """ - - synchronize_automatically: bool = pydantic.Field() - """ - Whether periodic automatic synchronization is enabled - """ - - synchronize_groups: typing.Optional[SynchronizeGroupsEnum] = None - created_at: dt.datetime = pydantic.Field() - """ - The timestamp at which the directory provisioning configuration was created - """ - - updated_at: dt.datetime = pydantic.Field() - """ - The timestamp at which the directory provisioning configuration was last updated - """ - - last_synchronization_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The timestamp at which the connection was last synchronized - """ - - last_synchronization_status: typing.Optional[str] = pydantic.Field(default=None) - """ - The status of the last synchronization - """ - - last_synchronization_error: typing.Optional[str] = pydantic.Field(default=None) - """ - The error message of the last synchronization, if any - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_directory_synchronization_response_content.py b/src/auth0/management/types/create_directory_synchronization_response_content.py deleted file mode 100644 index 2776490f..00000000 --- a/src/auth0/management/types/create_directory_synchronization_response_content.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class CreateDirectorySynchronizationResponseContent(UniversalBaseModel): - connection_id: str = pydantic.Field() - """ - The connection's identifier - """ - - synchronization_id: str = pydantic.Field() - """ - The synchronization's identifier - """ - - status: str = pydantic.Field() - """ - The synchronization status - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_email_provider_response_content.py b/src/auth0/management/types/create_email_provider_response_content.py deleted file mode 100644 index cc5c0181..00000000 --- a/src/auth0/management/types/create_email_provider_response_content.py +++ /dev/null @@ -1,37 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .email_provider_credentials import EmailProviderCredentials -from .email_provider_settings import EmailProviderSettings - - -class CreateEmailProviderResponseContent(UniversalBaseModel): - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of the email provider. Can be `mailgun`, `mandrill`, `sendgrid`, `resend`, `ses`, `sparkpost`, `smtp`, `azure_cs`, `ms365`, or `custom`. - """ - - enabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether the provider is enabled (true) or disabled (false). - """ - - default_from_address: typing.Optional[str] = pydantic.Field(default=None) - """ - Email address to use as "from" when no other address specified. - """ - - credentials: typing.Optional[EmailProviderCredentials] = None - settings: typing.Optional[EmailProviderSettings] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_email_template_response_content.py b/src/auth0/management/types/create_email_template_response_content.py deleted file mode 100644 index 9fdf50b5..00000000 --- a/src/auth0/management/types/create_email_template_response_content.py +++ /dev/null @@ -1,83 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .email_template_name_enum import EmailTemplateNameEnum - - -class CreateEmailTemplateResponseContent(UniversalBaseModel): - template: EmailTemplateNameEnum - body: typing.Optional[str] = pydantic.Field(default=None) - """ - Body of the email template. - """ - - from_: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="from"), - pydantic.Field(alias="from", description="Senders `from` email address."), - ] = None - """ - Senders `from` email address. - """ - - result_url: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="resultUrl"), - pydantic.Field(alias="resultUrl", description="URL to redirect the user to after a successful action."), - ] = None - """ - URL to redirect the user to after a successful action. - """ - - subject: typing.Optional[str] = pydantic.Field(default=None) - """ - Subject line of the email. - """ - - syntax: typing.Optional[str] = pydantic.Field(default=None) - """ - Syntax of the template body. - """ - - url_lifetime_in_seconds: typing_extensions.Annotated[ - typing.Optional[float], - FieldMetadata(alias="urlLifetimeInSeconds"), - pydantic.Field( - alias="urlLifetimeInSeconds", - description="Lifetime in seconds that the link within the email will be valid for.", - ), - ] = None - """ - Lifetime in seconds that the link within the email will be valid for. - """ - - include_email_in_redirect: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="includeEmailInRedirect"), - pydantic.Field( - alias="includeEmailInRedirect", - description="Whether the `reset_email` and `verify_email` templates should include the user's email address as the `email` parameter in the returnUrl (true) or whether no email address should be included in the redirect (false). Defaults to true.", - ), - ] = None - """ - Whether the `reset_email` and `verify_email` templates should include the user's email address as the `email` parameter in the returnUrl (true) or whether no email address should be included in the redirect (false). Defaults to true. - """ - - enabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether the template is enabled (true) or disabled (false). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_encryption_key_public_wrapping_response_content.py b/src/auth0/management/types/create_encryption_key_public_wrapping_response_content.py deleted file mode 100644 index 379fd16b..00000000 --- a/src/auth0/management/types/create_encryption_key_public_wrapping_response_content.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .encryption_key_public_wrapping_algorithm import EncryptionKeyPublicWrappingAlgorithm - - -class CreateEncryptionKeyPublicWrappingResponseContent(UniversalBaseModel): - public_key: str = pydantic.Field() - """ - Public wrapping key in PEM format - """ - - algorithm: EncryptionKeyPublicWrappingAlgorithm - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_encryption_key_response_content.py b/src/auth0/management/types/create_encryption_key_response_content.py deleted file mode 100644 index 53a00130..00000000 --- a/src/auth0/management/types/create_encryption_key_response_content.py +++ /dev/null @@ -1,51 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .encryption_key_state import EncryptionKeyState -from .encryption_key_type import EncryptionKeyType - - -class CreateEncryptionKeyResponseContent(UniversalBaseModel): - """ - Encryption key - """ - - kid: str = pydantic.Field() - """ - Key ID - """ - - type: EncryptionKeyType - state: EncryptionKeyState - created_at: dt.datetime = pydantic.Field() - """ - Key creation timestamp - """ - - updated_at: dt.datetime = pydantic.Field() - """ - Key update timestamp - """ - - parent_kid: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of parent wrapping key - """ - - public_key: typing.Optional[str] = pydantic.Field(default=None) - """ - Public key in PEM format - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_encryption_key_type.py b/src/auth0/management/types/create_encryption_key_type.py deleted file mode 100644 index 74132a8d..00000000 --- a/src/auth0/management/types/create_encryption_key_type.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CreateEncryptionKeyType = typing.Union[ - typing.Literal["customer-provided-root-key", "tenant-encryption-key"], typing.Any -] diff --git a/src/auth0/management/types/create_event_stream_action_request_content.py b/src/auth0/management/types/create_event_stream_action_request_content.py deleted file mode 100644 index 9141e9b5..00000000 --- a/src/auth0/management/types/create_event_stream_action_request_content.py +++ /dev/null @@ -1,33 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_action_destination import EventStreamActionDestination -from .event_stream_status_enum import EventStreamStatusEnum -from .event_stream_subscription import EventStreamSubscription - - -class CreateEventStreamActionRequestContent(UniversalBaseModel): - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of the event stream. - """ - - subscriptions: typing.Optional[typing.List[EventStreamSubscription]] = pydantic.Field(default=None) - """ - List of event types subscribed to in this stream. - """ - - destination: EventStreamActionDestination - status: typing.Optional[EventStreamStatusEnum] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_event_stream_event_bridge_request_content.py b/src/auth0/management/types/create_event_stream_event_bridge_request_content.py deleted file mode 100644 index cb389cae..00000000 --- a/src/auth0/management/types/create_event_stream_event_bridge_request_content.py +++ /dev/null @@ -1,33 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_event_bridge_destination import EventStreamEventBridgeDestination -from .event_stream_status_enum import EventStreamStatusEnum -from .event_stream_subscription import EventStreamSubscription - - -class CreateEventStreamEventBridgeRequestContent(UniversalBaseModel): - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of the event stream. - """ - - subscriptions: typing.Optional[typing.List[EventStreamSubscription]] = pydantic.Field(default=None) - """ - List of event types subscribed to in this stream. - """ - - destination: EventStreamEventBridgeDestination - status: typing.Optional[EventStreamStatusEnum] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_event_stream_redelivery_response_content.py b/src/auth0/management/types/create_event_stream_redelivery_response_content.py deleted file mode 100644 index 1da7f3f5..00000000 --- a/src/auth0/management/types/create_event_stream_redelivery_response_content.py +++ /dev/null @@ -1,40 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_delivery_status_enum import EventStreamDeliveryStatusEnum -from .event_stream_event_type_enum import EventStreamEventTypeEnum - - -class CreateEventStreamRedeliveryResponseContent(UniversalBaseModel): - date_from: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - An RFC-3339 date-time for redelivery start, inclusive. Does not allow sub-second precision. - """ - - date_to: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - An RFC-3339 date-time for redelivery end, exclusive. Does not allow sub-second precision. - """ - - statuses: typing.Optional[typing.List[EventStreamDeliveryStatusEnum]] = pydantic.Field(default=None) - """ - Filter by status - """ - - event_types: typing.Optional[typing.List[EventStreamEventTypeEnum]] = pydantic.Field(default=None) - """ - Filter by event type - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_event_stream_response_content.py b/src/auth0/management/types/create_event_stream_response_content.py deleted file mode 100644 index 9d6ce27d..00000000 --- a/src/auth0/management/types/create_event_stream_response_content.py +++ /dev/null @@ -1,11 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .event_stream_action_response_content import EventStreamActionResponseContent -from .event_stream_event_bridge_response_content import EventStreamEventBridgeResponseContent -from .event_stream_webhook_response_content import EventStreamWebhookResponseContent - -CreateEventStreamResponseContent = typing.Union[ - EventStreamWebhookResponseContent, EventStreamEventBridgeResponseContent, EventStreamActionResponseContent -] diff --git a/src/auth0/management/types/create_event_stream_test_event_response_content.py b/src/auth0/management/types/create_event_stream_test_event_response_content.py deleted file mode 100644 index 2918f7ee..00000000 --- a/src/auth0/management/types/create_event_stream_test_event_response_content.py +++ /dev/null @@ -1,44 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event import EventStreamCloudEvent -from .event_stream_delivery_attempt import EventStreamDeliveryAttempt -from .event_stream_delivery_event_type_enum import EventStreamDeliveryEventTypeEnum -from .event_stream_delivery_status_enum import EventStreamDeliveryStatusEnum - - -class CreateEventStreamTestEventResponseContent(UniversalBaseModel): - """ - Metadata about a specific attempt to deliver an event - """ - - id: str = pydantic.Field() - """ - Unique identifier for the delivery - """ - - event_stream_id: str = pydantic.Field() - """ - Unique identifier for the event stream. - """ - - status: EventStreamDeliveryStatusEnum - event_type: EventStreamDeliveryEventTypeEnum - attempts: typing.List[EventStreamDeliveryAttempt] = pydantic.Field() - """ - Results of delivery attempts - """ - - event: typing.Optional[EventStreamCloudEvent] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_event_stream_web_hook_request_content.py b/src/auth0/management/types/create_event_stream_web_hook_request_content.py deleted file mode 100644 index a2faf72d..00000000 --- a/src/auth0/management/types/create_event_stream_web_hook_request_content.py +++ /dev/null @@ -1,33 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_status_enum import EventStreamStatusEnum -from .event_stream_subscription import EventStreamSubscription -from .event_stream_webhook_destination import EventStreamWebhookDestination - - -class CreateEventStreamWebHookRequestContent(UniversalBaseModel): - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of the event stream. - """ - - subscriptions: typing.Optional[typing.List[EventStreamSubscription]] = pydantic.Field(default=None) - """ - List of event types subscribed to in this stream. - """ - - destination: EventStreamWebhookDestination - status: typing.Optional[EventStreamStatusEnum] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_experiment_response_content.py b/src/auth0/management/types/create_experiment_response_content.py deleted file mode 100644 index ef0de3f1..00000000 --- a/src/auth0/management/types/create_experiment_response_content.py +++ /dev/null @@ -1,58 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .allocation_item import AllocationItem -from .allocation_strategy_enum import AllocationStrategyEnum -from .default_config_enum import DefaultConfigEnum -from .experiment_status_enum import ExperimentStatusEnum - - -class CreateExperimentResponseContent(UniversalBaseModel): - id: str - name: str - description: typing.Optional[str] = None - feature_flag_id: str - feature_flag_name: typing.Optional[str] = None - authentication_flow: str - allocation_strategy: AllocationStrategyEnum - status: ExperimentStatusEnum - is_valid: bool = pydantic.Field() - """ - Whether the experiment is valid and ready to activate, as of its last update. It can lag changes made later to related entities. Call POST /experiments/{id}/validate for the current result. - """ - - default_config: typing.Optional[DefaultConfigEnum] = None - feature_flag_snapshot: typing.Optional[typing.Dict[str, typing.Any]] = None - allocations: typing.List[AllocationItem] - editable_fields: typing.List[str] = pydantic.Field() - """ - Fields that may be mutated given the experiment's current status. Computed at response time; always current with the API's enforcement logic. - """ - - levels: typing.Optional[typing.List[int]] = pydantic.Field(default=None) - """ - Ramp experiment levels configuration. - """ - - current_level: typing.Optional[int] = pydantic.Field(default=None) - """ - Read-only. The active exposure percentage for the current ramp step. Null when no ramp schedule is active. - """ - - started_at: typing.Optional[dt.datetime] = None - ended_at: typing.Optional[dt.datetime] = None - created_at: dt.datetime - updated_at: dt.datetime - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_export_users_fields.py b/src/auth0/management/types/create_export_users_fields.py deleted file mode 100644 index e128731d..00000000 --- a/src/auth0/management/types/create_export_users_fields.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class CreateExportUsersFields(UniversalBaseModel): - name: str = pydantic.Field() - """ - Name of the field in the profile. - """ - - export_as: typing.Optional[str] = pydantic.Field(default=None) - """ - Title of the column in the exported CSV. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_export_users_response_content.py b/src/auth0/management/types/create_export_users_response_content.py deleted file mode 100644 index a8699c29..00000000 --- a/src/auth0/management/types/create_export_users_response_content.py +++ /dev/null @@ -1,55 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .create_export_users_fields import CreateExportUsersFields -from .job_file_format_enum import JobFileFormatEnum - - -class CreateExportUsersResponseContent(UniversalBaseModel): - status: str = pydantic.Field() - """ - Status of this job. - """ - - type: str = pydantic.Field() - """ - Type of job this is. - """ - - created_at: typing.Optional[str] = pydantic.Field(default=None) - """ - When this job was created. - """ - - id: str = pydantic.Field() - """ - ID of this job. - """ - - connection_id: typing.Optional[str] = pydantic.Field(default=None) - """ - connection_id of the connection from which users will be exported. - """ - - format: typing.Optional[JobFileFormatEnum] = None - limit: typing.Optional[int] = pydantic.Field(default=None) - """ - Limit the number of records. - """ - - fields: typing.Optional[typing.List[CreateExportUsersFields]] = pydantic.Field(default=None) - """ - List of fields to be included in the CSV. Defaults to a predefined set of fields. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_feature_flag_parameters.py b/src/auth0/management/types/create_feature_flag_parameters.py deleted file mode 100644 index 4b6ba458..00000000 --- a/src/auth0/management/types/create_feature_flag_parameters.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .feature_flag_config_param import FeatureFlagConfigParam - -CreateFeatureFlagParameters = typing.Dict[str, FeatureFlagConfigParam] -""" -Configuration parameters for this feature flag -""" diff --git a/src/auth0/management/types/create_feature_flag_response_content.py b/src/auth0/management/types/create_feature_flag_response_content.py deleted file mode 100644 index 938d278f..00000000 --- a/src/auth0/management/types/create_feature_flag_response_content.py +++ /dev/null @@ -1,30 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .feature_flag_config_params import FeatureFlagConfigParams -from .feature_flag_status_enum import FeatureFlagStatusEnum -from .feature_flag_type_enum import FeatureFlagTypeEnum - - -class CreateFeatureFlagResponseContent(UniversalBaseModel): - id: str - name: str - description: typing.Optional[str] = None - type: FeatureFlagTypeEnum - status: FeatureFlagStatusEnum - parameters: typing.Optional[FeatureFlagConfigParams] = None - created_at: dt.datetime - updated_at: dt.datetime - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_flow_response_content.py b/src/auth0/management/types/create_flow_response_content.py deleted file mode 100644 index 26e4120a..00000000 --- a/src/auth0/management/types/create_flow_response_content.py +++ /dev/null @@ -1,41 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel, update_forward_refs - - -class CreateFlowResponseContent(UniversalBaseModel): - id: str - name: str - actions: typing.Optional[typing.List["FlowAction"]] = None - created_at: dt.datetime - updated_at: dt.datetime - executed_at: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .flow_action import FlowAction # noqa: E402, I001 -from .flow_action_flow import FlowActionFlow # noqa: E402, I001 -from .flow_action_flow_boolean_condition import FlowActionFlowBooleanCondition # noqa: E402, I001 -from .flow_action_flow_boolean_condition_params import FlowActionFlowBooleanConditionParams # noqa: E402, I001 - -update_forward_refs( - CreateFlowResponseContent, - FlowAction=FlowAction, - FlowActionFlow=FlowActionFlow, - FlowActionFlowBooleanCondition=FlowActionFlowBooleanCondition, - FlowActionFlowBooleanConditionParams=FlowActionFlowBooleanConditionParams, -) diff --git a/src/auth0/management/types/create_flows_vault_connection_activecampaign.py b/src/auth0/management/types/create_flows_vault_connection_activecampaign.py deleted file mode 100644 index 9e0b9fc0..00000000 --- a/src/auth0/management/types/create_flows_vault_connection_activecampaign.py +++ /dev/null @@ -1,12 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .create_flows_vault_connection_activecampaign_api_key import CreateFlowsVaultConnectionActivecampaignApiKey -from .create_flows_vault_connection_activecampaign_uninitialized import ( - CreateFlowsVaultConnectionActivecampaignUninitialized, -) - -CreateFlowsVaultConnectionActivecampaign = typing.Union[ - CreateFlowsVaultConnectionActivecampaignApiKey, CreateFlowsVaultConnectionActivecampaignUninitialized -] diff --git a/src/auth0/management/types/create_flows_vault_connection_activecampaign_api_key.py b/src/auth0/management/types/create_flows_vault_connection_activecampaign_api_key.py deleted file mode 100644 index b26fda41..00000000 --- a/src/auth0/management/types/create_flows_vault_connection_activecampaign_api_key.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flows_vault_connectio_setup_api_key_with_base_url import FlowsVaultConnectioSetupApiKeyWithBaseUrl -from .flows_vault_connection_app_id_activecampaign_enum import FlowsVaultConnectionAppIdActivecampaignEnum - - -class CreateFlowsVaultConnectionActivecampaignApiKey(UniversalBaseModel): - name: str = pydantic.Field() - """ - Flows Vault Connection name. - """ - - app_id: FlowsVaultConnectionAppIdActivecampaignEnum - setup: FlowsVaultConnectioSetupApiKeyWithBaseUrl - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_flows_vault_connection_activecampaign_uninitialized.py b/src/auth0/management/types/create_flows_vault_connection_activecampaign_uninitialized.py deleted file mode 100644 index 4a9c12a1..00000000 --- a/src/auth0/management/types/create_flows_vault_connection_activecampaign_uninitialized.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flows_vault_connection_app_id_activecampaign_enum import FlowsVaultConnectionAppIdActivecampaignEnum - - -class CreateFlowsVaultConnectionActivecampaignUninitialized(UniversalBaseModel): - name: str = pydantic.Field() - """ - Flows Vault Connection name. - """ - - app_id: FlowsVaultConnectionAppIdActivecampaignEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_flows_vault_connection_airtable.py b/src/auth0/management/types/create_flows_vault_connection_airtable.py deleted file mode 100644 index 84b48269..00000000 --- a/src/auth0/management/types/create_flows_vault_connection_airtable.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .create_flows_vault_connection_airtable_api_key import CreateFlowsVaultConnectionAirtableApiKey -from .create_flows_vault_connection_airtable_uninitialized import CreateFlowsVaultConnectionAirtableUninitialized - -CreateFlowsVaultConnectionAirtable = typing.Union[ - CreateFlowsVaultConnectionAirtableApiKey, CreateFlowsVaultConnectionAirtableUninitialized -] diff --git a/src/auth0/management/types/create_flows_vault_connection_airtable_api_key.py b/src/auth0/management/types/create_flows_vault_connection_airtable_api_key.py deleted file mode 100644 index 3a633b9b..00000000 --- a/src/auth0/management/types/create_flows_vault_connection_airtable_api_key.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flows_vault_connectio_setup_api_key import FlowsVaultConnectioSetupApiKey -from .flows_vault_connection_app_id_airtable_enum import FlowsVaultConnectionAppIdAirtableEnum - - -class CreateFlowsVaultConnectionAirtableApiKey(UniversalBaseModel): - name: str = pydantic.Field() - """ - Flows Vault Connection name. - """ - - app_id: FlowsVaultConnectionAppIdAirtableEnum - setup: FlowsVaultConnectioSetupApiKey - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_flows_vault_connection_airtable_uninitialized.py b/src/auth0/management/types/create_flows_vault_connection_airtable_uninitialized.py deleted file mode 100644 index e5e5c256..00000000 --- a/src/auth0/management/types/create_flows_vault_connection_airtable_uninitialized.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flows_vault_connection_app_id_airtable_enum import FlowsVaultConnectionAppIdAirtableEnum - - -class CreateFlowsVaultConnectionAirtableUninitialized(UniversalBaseModel): - name: str = pydantic.Field() - """ - Flows Vault Connection name. - """ - - app_id: FlowsVaultConnectionAppIdAirtableEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_flows_vault_connection_auth_0.py b/src/auth0/management/types/create_flows_vault_connection_auth_0.py deleted file mode 100644 index 438e5b71..00000000 --- a/src/auth0/management/types/create_flows_vault_connection_auth_0.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .create_flows_vault_connection_auth_0_oauth_app import CreateFlowsVaultConnectionAuth0OauthApp -from .create_flows_vault_connection_auth_0_uninitialized import CreateFlowsVaultConnectionAuth0Uninitialized - -CreateFlowsVaultConnectionAuth0 = typing.Union[ - CreateFlowsVaultConnectionAuth0OauthApp, CreateFlowsVaultConnectionAuth0Uninitialized -] diff --git a/src/auth0/management/types/create_flows_vault_connection_auth_0_oauth_app.py b/src/auth0/management/types/create_flows_vault_connection_auth_0_oauth_app.py deleted file mode 100644 index bd7b911c..00000000 --- a/src/auth0/management/types/create_flows_vault_connection_auth_0_oauth_app.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flows_vault_connectio_setup_oauth_app import FlowsVaultConnectioSetupOauthApp -from .flows_vault_connection_app_id_auth_0_enum import FlowsVaultConnectionAppIdAuth0Enum - - -class CreateFlowsVaultConnectionAuth0OauthApp(UniversalBaseModel): - name: str = pydantic.Field() - """ - Flows Vault Connection name. - """ - - app_id: FlowsVaultConnectionAppIdAuth0Enum - setup: FlowsVaultConnectioSetupOauthApp - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_flows_vault_connection_auth_0_uninitialized.py b/src/auth0/management/types/create_flows_vault_connection_auth_0_uninitialized.py deleted file mode 100644 index b20b6a03..00000000 --- a/src/auth0/management/types/create_flows_vault_connection_auth_0_uninitialized.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flows_vault_connection_app_id_auth_0_enum import FlowsVaultConnectionAppIdAuth0Enum - - -class CreateFlowsVaultConnectionAuth0Uninitialized(UniversalBaseModel): - name: str = pydantic.Field() - """ - Flows Vault Connection name. - """ - - app_id: FlowsVaultConnectionAppIdAuth0Enum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_flows_vault_connection_bigquery.py b/src/auth0/management/types/create_flows_vault_connection_bigquery.py deleted file mode 100644 index fb75613d..00000000 --- a/src/auth0/management/types/create_flows_vault_connection_bigquery.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .create_flows_vault_connection_bigquery_jwt import CreateFlowsVaultConnectionBigqueryJwt -from .create_flows_vault_connection_bigquery_uninitialized import CreateFlowsVaultConnectionBigqueryUninitialized - -CreateFlowsVaultConnectionBigquery = typing.Union[ - CreateFlowsVaultConnectionBigqueryJwt, CreateFlowsVaultConnectionBigqueryUninitialized -] diff --git a/src/auth0/management/types/create_flows_vault_connection_bigquery_jwt.py b/src/auth0/management/types/create_flows_vault_connection_bigquery_jwt.py deleted file mode 100644 index 16e18974..00000000 --- a/src/auth0/management/types/create_flows_vault_connection_bigquery_jwt.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flows_vault_connectio_setup_bigquery_oauth_jwt import FlowsVaultConnectioSetupBigqueryOauthJwt -from .flows_vault_connection_app_id_bigquery_enum import FlowsVaultConnectionAppIdBigqueryEnum - - -class CreateFlowsVaultConnectionBigqueryJwt(UniversalBaseModel): - name: str = pydantic.Field() - """ - Flows Vault Connection name. - """ - - app_id: FlowsVaultConnectionAppIdBigqueryEnum - setup: FlowsVaultConnectioSetupBigqueryOauthJwt - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_flows_vault_connection_bigquery_uninitialized.py b/src/auth0/management/types/create_flows_vault_connection_bigquery_uninitialized.py deleted file mode 100644 index dab52200..00000000 --- a/src/auth0/management/types/create_flows_vault_connection_bigquery_uninitialized.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flows_vault_connection_app_id_bigquery_enum import FlowsVaultConnectionAppIdBigqueryEnum - - -class CreateFlowsVaultConnectionBigqueryUninitialized(UniversalBaseModel): - name: str = pydantic.Field() - """ - Flows Vault Connection name. - """ - - app_id: FlowsVaultConnectionAppIdBigqueryEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_flows_vault_connection_clearbit.py b/src/auth0/management/types/create_flows_vault_connection_clearbit.py deleted file mode 100644 index 5491517f..00000000 --- a/src/auth0/management/types/create_flows_vault_connection_clearbit.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .create_flows_vault_connection_clearbit_api_key import CreateFlowsVaultConnectionClearbitApiKey -from .create_flows_vault_connection_clearbit_uninitialized import CreateFlowsVaultConnectionClearbitUninitialized - -CreateFlowsVaultConnectionClearbit = typing.Union[ - CreateFlowsVaultConnectionClearbitApiKey, CreateFlowsVaultConnectionClearbitUninitialized -] diff --git a/src/auth0/management/types/create_flows_vault_connection_clearbit_api_key.py b/src/auth0/management/types/create_flows_vault_connection_clearbit_api_key.py deleted file mode 100644 index 5c538838..00000000 --- a/src/auth0/management/types/create_flows_vault_connection_clearbit_api_key.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flows_vault_connectio_setup_secret_api_key import FlowsVaultConnectioSetupSecretApiKey -from .flows_vault_connection_app_id_clearbit_enum import FlowsVaultConnectionAppIdClearbitEnum - - -class CreateFlowsVaultConnectionClearbitApiKey(UniversalBaseModel): - name: str = pydantic.Field() - """ - Flows Vault Connection name. - """ - - app_id: FlowsVaultConnectionAppIdClearbitEnum - setup: FlowsVaultConnectioSetupSecretApiKey - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_flows_vault_connection_clearbit_uninitialized.py b/src/auth0/management/types/create_flows_vault_connection_clearbit_uninitialized.py deleted file mode 100644 index 2bbf0da7..00000000 --- a/src/auth0/management/types/create_flows_vault_connection_clearbit_uninitialized.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flows_vault_connection_app_id_clearbit_enum import FlowsVaultConnectionAppIdClearbitEnum - - -class CreateFlowsVaultConnectionClearbitUninitialized(UniversalBaseModel): - name: str = pydantic.Field() - """ - Flows Vault Connection name. - """ - - app_id: FlowsVaultConnectionAppIdClearbitEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_flows_vault_connection_docusign.py b/src/auth0/management/types/create_flows_vault_connection_docusign.py deleted file mode 100644 index d81b5484..00000000 --- a/src/auth0/management/types/create_flows_vault_connection_docusign.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .create_flows_vault_connection_docusign_oauth_code import CreateFlowsVaultConnectionDocusignOauthCode -from .create_flows_vault_connection_docusign_uninitialized import CreateFlowsVaultConnectionDocusignUninitialized - -CreateFlowsVaultConnectionDocusign = typing.Union[ - CreateFlowsVaultConnectionDocusignOauthCode, CreateFlowsVaultConnectionDocusignUninitialized -] diff --git a/src/auth0/management/types/create_flows_vault_connection_docusign_oauth_code.py b/src/auth0/management/types/create_flows_vault_connection_docusign_oauth_code.py deleted file mode 100644 index 6748b303..00000000 --- a/src/auth0/management/types/create_flows_vault_connection_docusign_oauth_code.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flows_vault_connectio_setup_oauth_code import FlowsVaultConnectioSetupOauthCode -from .flows_vault_connection_app_id_docusign_enum import FlowsVaultConnectionAppIdDocusignEnum - - -class CreateFlowsVaultConnectionDocusignOauthCode(UniversalBaseModel): - name: str = pydantic.Field() - """ - Flows Vault Connection name. - """ - - app_id: FlowsVaultConnectionAppIdDocusignEnum - setup: FlowsVaultConnectioSetupOauthCode - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_flows_vault_connection_docusign_uninitialized.py b/src/auth0/management/types/create_flows_vault_connection_docusign_uninitialized.py deleted file mode 100644 index dd3830f6..00000000 --- a/src/auth0/management/types/create_flows_vault_connection_docusign_uninitialized.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flows_vault_connection_app_id_docusign_enum import FlowsVaultConnectionAppIdDocusignEnum - - -class CreateFlowsVaultConnectionDocusignUninitialized(UniversalBaseModel): - name: str = pydantic.Field() - """ - Flows Vault Connection name. - """ - - app_id: FlowsVaultConnectionAppIdDocusignEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_flows_vault_connection_google_sheets.py b/src/auth0/management/types/create_flows_vault_connection_google_sheets.py deleted file mode 100644 index ed442c69..00000000 --- a/src/auth0/management/types/create_flows_vault_connection_google_sheets.py +++ /dev/null @@ -1,12 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .create_flows_vault_connection_google_sheets_oauth_code import CreateFlowsVaultConnectionGoogleSheetsOauthCode -from .create_flows_vault_connection_google_sheets_uninitialized import ( - CreateFlowsVaultConnectionGoogleSheetsUninitialized, -) - -CreateFlowsVaultConnectionGoogleSheets = typing.Union[ - CreateFlowsVaultConnectionGoogleSheetsOauthCode, CreateFlowsVaultConnectionGoogleSheetsUninitialized -] diff --git a/src/auth0/management/types/create_flows_vault_connection_google_sheets_oauth_code.py b/src/auth0/management/types/create_flows_vault_connection_google_sheets_oauth_code.py deleted file mode 100644 index 06c4826f..00000000 --- a/src/auth0/management/types/create_flows_vault_connection_google_sheets_oauth_code.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flows_vault_connectio_setup_oauth_code import FlowsVaultConnectioSetupOauthCode -from .flows_vault_connection_app_id_google_sheets_enum import FlowsVaultConnectionAppIdGoogleSheetsEnum - - -class CreateFlowsVaultConnectionGoogleSheetsOauthCode(UniversalBaseModel): - name: str = pydantic.Field() - """ - Flows Vault Connection name. - """ - - app_id: FlowsVaultConnectionAppIdGoogleSheetsEnum - setup: FlowsVaultConnectioSetupOauthCode - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_flows_vault_connection_google_sheets_uninitialized.py b/src/auth0/management/types/create_flows_vault_connection_google_sheets_uninitialized.py deleted file mode 100644 index 8af7d867..00000000 --- a/src/auth0/management/types/create_flows_vault_connection_google_sheets_uninitialized.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flows_vault_connection_app_id_google_sheets_enum import FlowsVaultConnectionAppIdGoogleSheetsEnum - - -class CreateFlowsVaultConnectionGoogleSheetsUninitialized(UniversalBaseModel): - name: str = pydantic.Field() - """ - Flows Vault Connection name. - """ - - app_id: FlowsVaultConnectionAppIdGoogleSheetsEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_flows_vault_connection_http.py b/src/auth0/management/types/create_flows_vault_connection_http.py deleted file mode 100644 index f6055711..00000000 --- a/src/auth0/management/types/create_flows_vault_connection_http.py +++ /dev/null @@ -1,19 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .create_flows_vault_connection_http_api_key import CreateFlowsVaultConnectionHttpApiKey -from .create_flows_vault_connection_http_basic_auth import CreateFlowsVaultConnectionHttpBasicAuth -from .create_flows_vault_connection_http_bearer import CreateFlowsVaultConnectionHttpBearer -from .create_flows_vault_connection_http_oauth_client_credentials import ( - CreateFlowsVaultConnectionHttpOauthClientCredentials, -) -from .create_flows_vault_connection_http_uninitialized import CreateFlowsVaultConnectionHttpUninitialized - -CreateFlowsVaultConnectionHttp = typing.Union[ - CreateFlowsVaultConnectionHttpBearer, - CreateFlowsVaultConnectionHttpBasicAuth, - CreateFlowsVaultConnectionHttpApiKey, - CreateFlowsVaultConnectionHttpOauthClientCredentials, - CreateFlowsVaultConnectionHttpUninitialized, -] diff --git a/src/auth0/management/types/create_flows_vault_connection_http_api_key.py b/src/auth0/management/types/create_flows_vault_connection_http_api_key.py deleted file mode 100644 index c1469f2a..00000000 --- a/src/auth0/management/types/create_flows_vault_connection_http_api_key.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flows_vault_connection_app_id_http_enum import FlowsVaultConnectionAppIdHttpEnum -from .flows_vault_connection_http_api_key_setup import FlowsVaultConnectionHttpApiKeySetup - - -class CreateFlowsVaultConnectionHttpApiKey(UniversalBaseModel): - name: str = pydantic.Field() - """ - Flows Vault Connection name. - """ - - app_id: FlowsVaultConnectionAppIdHttpEnum - setup: FlowsVaultConnectionHttpApiKeySetup - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_flows_vault_connection_http_basic_auth.py b/src/auth0/management/types/create_flows_vault_connection_http_basic_auth.py deleted file mode 100644 index 65ba1427..00000000 --- a/src/auth0/management/types/create_flows_vault_connection_http_basic_auth.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flows_vault_connection_app_id_http_enum import FlowsVaultConnectionAppIdHttpEnum -from .flows_vault_connection_http_basic_auth_setup import FlowsVaultConnectionHttpBasicAuthSetup - - -class CreateFlowsVaultConnectionHttpBasicAuth(UniversalBaseModel): - name: str = pydantic.Field() - """ - Flows Vault Connection name. - """ - - app_id: FlowsVaultConnectionAppIdHttpEnum - setup: FlowsVaultConnectionHttpBasicAuthSetup - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_flows_vault_connection_http_bearer.py b/src/auth0/management/types/create_flows_vault_connection_http_bearer.py deleted file mode 100644 index 837c43fa..00000000 --- a/src/auth0/management/types/create_flows_vault_connection_http_bearer.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flows_vault_connectio_setup_http_bearer import FlowsVaultConnectioSetupHttpBearer -from .flows_vault_connection_app_id_http_enum import FlowsVaultConnectionAppIdHttpEnum - - -class CreateFlowsVaultConnectionHttpBearer(UniversalBaseModel): - name: str = pydantic.Field() - """ - Flows Vault Connection name. - """ - - app_id: FlowsVaultConnectionAppIdHttpEnum - setup: FlowsVaultConnectioSetupHttpBearer - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_flows_vault_connection_http_oauth_client_credentials.py b/src/auth0/management/types/create_flows_vault_connection_http_oauth_client_credentials.py deleted file mode 100644 index b410a4cd..00000000 --- a/src/auth0/management/types/create_flows_vault_connection_http_oauth_client_credentials.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flows_vault_connection_app_id_http_enum import FlowsVaultConnectionAppIdHttpEnum -from .flows_vault_connection_http_oauth_client_credentials_setup import ( - FlowsVaultConnectionHttpOauthClientCredentialsSetup, -) - - -class CreateFlowsVaultConnectionHttpOauthClientCredentials(UniversalBaseModel): - name: str = pydantic.Field() - """ - Flows Vault Connection name. - """ - - app_id: FlowsVaultConnectionAppIdHttpEnum - setup: FlowsVaultConnectionHttpOauthClientCredentialsSetup - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_flows_vault_connection_http_uninitialized.py b/src/auth0/management/types/create_flows_vault_connection_http_uninitialized.py deleted file mode 100644 index c0b270c7..00000000 --- a/src/auth0/management/types/create_flows_vault_connection_http_uninitialized.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flows_vault_connection_app_id_http_enum import FlowsVaultConnectionAppIdHttpEnum - - -class CreateFlowsVaultConnectionHttpUninitialized(UniversalBaseModel): - name: str = pydantic.Field() - """ - Flows Vault Connection name. - """ - - app_id: FlowsVaultConnectionAppIdHttpEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_flows_vault_connection_hubspot.py b/src/auth0/management/types/create_flows_vault_connection_hubspot.py deleted file mode 100644 index ce1e3014..00000000 --- a/src/auth0/management/types/create_flows_vault_connection_hubspot.py +++ /dev/null @@ -1,13 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .create_flows_vault_connection_hubspot_api_key import CreateFlowsVaultConnectionHubspotApiKey -from .create_flows_vault_connection_hubspot_oauth_code import CreateFlowsVaultConnectionHubspotOauthCode -from .create_flows_vault_connection_hubspot_uninitialized import CreateFlowsVaultConnectionHubspotUninitialized - -CreateFlowsVaultConnectionHubspot = typing.Union[ - CreateFlowsVaultConnectionHubspotApiKey, - CreateFlowsVaultConnectionHubspotOauthCode, - CreateFlowsVaultConnectionHubspotUninitialized, -] diff --git a/src/auth0/management/types/create_flows_vault_connection_hubspot_api_key.py b/src/auth0/management/types/create_flows_vault_connection_hubspot_api_key.py deleted file mode 100644 index e6ad7e46..00000000 --- a/src/auth0/management/types/create_flows_vault_connection_hubspot_api_key.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flows_vault_connectio_setup_api_key import FlowsVaultConnectioSetupApiKey -from .flows_vault_connection_app_id_hubspot_enum import FlowsVaultConnectionAppIdHubspotEnum - - -class CreateFlowsVaultConnectionHubspotApiKey(UniversalBaseModel): - name: str = pydantic.Field() - """ - Flows Vault Connection name. - """ - - app_id: FlowsVaultConnectionAppIdHubspotEnum - setup: FlowsVaultConnectioSetupApiKey - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_flows_vault_connection_hubspot_oauth_code.py b/src/auth0/management/types/create_flows_vault_connection_hubspot_oauth_code.py deleted file mode 100644 index 3d0d92d3..00000000 --- a/src/auth0/management/types/create_flows_vault_connection_hubspot_oauth_code.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flows_vault_connectio_setup_oauth_code import FlowsVaultConnectioSetupOauthCode -from .flows_vault_connection_app_id_hubspot_enum import FlowsVaultConnectionAppIdHubspotEnum - - -class CreateFlowsVaultConnectionHubspotOauthCode(UniversalBaseModel): - name: str = pydantic.Field() - """ - Flows Vault Connection name. - """ - - app_id: FlowsVaultConnectionAppIdHubspotEnum - setup: FlowsVaultConnectioSetupOauthCode - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_flows_vault_connection_hubspot_uninitialized.py b/src/auth0/management/types/create_flows_vault_connection_hubspot_uninitialized.py deleted file mode 100644 index f599cdcf..00000000 --- a/src/auth0/management/types/create_flows_vault_connection_hubspot_uninitialized.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flows_vault_connection_app_id_hubspot_enum import FlowsVaultConnectionAppIdHubspotEnum - - -class CreateFlowsVaultConnectionHubspotUninitialized(UniversalBaseModel): - name: str = pydantic.Field() - """ - Flows Vault Connection name. - """ - - app_id: FlowsVaultConnectionAppIdHubspotEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_flows_vault_connection_jwt.py b/src/auth0/management/types/create_flows_vault_connection_jwt.py deleted file mode 100644 index 18db72b9..00000000 --- a/src/auth0/management/types/create_flows_vault_connection_jwt.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .create_flows_vault_connection_jwt_jwt import CreateFlowsVaultConnectionJwtJwt -from .create_flows_vault_connection_jwt_uninitialized import CreateFlowsVaultConnectionJwtUninitialized - -CreateFlowsVaultConnectionJwt = typing.Union[ - CreateFlowsVaultConnectionJwtJwt, CreateFlowsVaultConnectionJwtUninitialized -] diff --git a/src/auth0/management/types/create_flows_vault_connection_jwt_jwt.py b/src/auth0/management/types/create_flows_vault_connection_jwt_jwt.py deleted file mode 100644 index 9dd55ab1..00000000 --- a/src/auth0/management/types/create_flows_vault_connection_jwt_jwt.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flows_vault_connectio_setup_jwt import FlowsVaultConnectioSetupJwt -from .flows_vault_connection_app_id_jwt_enum import FlowsVaultConnectionAppIdJwtEnum - - -class CreateFlowsVaultConnectionJwtJwt(UniversalBaseModel): - name: str = pydantic.Field() - """ - Flows Vault Connection name. - """ - - app_id: FlowsVaultConnectionAppIdJwtEnum - setup: FlowsVaultConnectioSetupJwt - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_flows_vault_connection_jwt_uninitialized.py b/src/auth0/management/types/create_flows_vault_connection_jwt_uninitialized.py deleted file mode 100644 index cfec5583..00000000 --- a/src/auth0/management/types/create_flows_vault_connection_jwt_uninitialized.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flows_vault_connection_app_id_jwt_enum import FlowsVaultConnectionAppIdJwtEnum - - -class CreateFlowsVaultConnectionJwtUninitialized(UniversalBaseModel): - name: str = pydantic.Field() - """ - Flows Vault Connection name. - """ - - app_id: FlowsVaultConnectionAppIdJwtEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_flows_vault_connection_mailchimp.py b/src/auth0/management/types/create_flows_vault_connection_mailchimp.py deleted file mode 100644 index e31af458..00000000 --- a/src/auth0/management/types/create_flows_vault_connection_mailchimp.py +++ /dev/null @@ -1,13 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .create_flows_vault_connection_mailchimp_api_key import CreateFlowsVaultConnectionMailchimpApiKey -from .create_flows_vault_connection_mailchimp_oauth_code import CreateFlowsVaultConnectionMailchimpOauthCode -from .create_flows_vault_connection_mailchimp_uninitialized import CreateFlowsVaultConnectionMailchimpUninitialized - -CreateFlowsVaultConnectionMailchimp = typing.Union[ - CreateFlowsVaultConnectionMailchimpApiKey, - CreateFlowsVaultConnectionMailchimpOauthCode, - CreateFlowsVaultConnectionMailchimpUninitialized, -] diff --git a/src/auth0/management/types/create_flows_vault_connection_mailchimp_api_key.py b/src/auth0/management/types/create_flows_vault_connection_mailchimp_api_key.py deleted file mode 100644 index b0ba93f5..00000000 --- a/src/auth0/management/types/create_flows_vault_connection_mailchimp_api_key.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flows_vault_connectio_setup_secret_api_key import FlowsVaultConnectioSetupSecretApiKey -from .flows_vault_connection_app_id_mailchimp_enum import FlowsVaultConnectionAppIdMailchimpEnum - - -class CreateFlowsVaultConnectionMailchimpApiKey(UniversalBaseModel): - name: str = pydantic.Field() - """ - Flows Vault Connection name. - """ - - app_id: FlowsVaultConnectionAppIdMailchimpEnum - setup: FlowsVaultConnectioSetupSecretApiKey - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_flows_vault_connection_mailchimp_oauth_code.py b/src/auth0/management/types/create_flows_vault_connection_mailchimp_oauth_code.py deleted file mode 100644 index a907ed22..00000000 --- a/src/auth0/management/types/create_flows_vault_connection_mailchimp_oauth_code.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flows_vault_connectio_setup_oauth_code import FlowsVaultConnectioSetupOauthCode -from .flows_vault_connection_app_id_mailchimp_enum import FlowsVaultConnectionAppIdMailchimpEnum - - -class CreateFlowsVaultConnectionMailchimpOauthCode(UniversalBaseModel): - name: str = pydantic.Field() - """ - Flows Vault Connection name. - """ - - app_id: FlowsVaultConnectionAppIdMailchimpEnum - setup: FlowsVaultConnectioSetupOauthCode - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_flows_vault_connection_mailchimp_uninitialized.py b/src/auth0/management/types/create_flows_vault_connection_mailchimp_uninitialized.py deleted file mode 100644 index 3666c7a2..00000000 --- a/src/auth0/management/types/create_flows_vault_connection_mailchimp_uninitialized.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flows_vault_connection_app_id_mailchimp_enum import FlowsVaultConnectionAppIdMailchimpEnum - - -class CreateFlowsVaultConnectionMailchimpUninitialized(UniversalBaseModel): - name: str = pydantic.Field() - """ - Flows Vault Connection name. - """ - - app_id: FlowsVaultConnectionAppIdMailchimpEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_flows_vault_connection_mailjet.py b/src/auth0/management/types/create_flows_vault_connection_mailjet.py deleted file mode 100644 index 98366143..00000000 --- a/src/auth0/management/types/create_flows_vault_connection_mailjet.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .create_flows_vault_connection_mailjet_api_key import CreateFlowsVaultConnectionMailjetApiKey -from .create_flows_vault_connection_mailjet_uninitialized import CreateFlowsVaultConnectionMailjetUninitialized - -CreateFlowsVaultConnectionMailjet = typing.Union[ - CreateFlowsVaultConnectionMailjetApiKey, CreateFlowsVaultConnectionMailjetUninitialized -] diff --git a/src/auth0/management/types/create_flows_vault_connection_mailjet_api_key.py b/src/auth0/management/types/create_flows_vault_connection_mailjet_api_key.py deleted file mode 100644 index a6dae763..00000000 --- a/src/auth0/management/types/create_flows_vault_connection_mailjet_api_key.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flows_vault_connectio_setup_mailjet_api_key import FlowsVaultConnectioSetupMailjetApiKey -from .flows_vault_connection_app_id_mailjet_enum import FlowsVaultConnectionAppIdMailjetEnum - - -class CreateFlowsVaultConnectionMailjetApiKey(UniversalBaseModel): - name: str = pydantic.Field() - """ - Flows Vault Connection name. - """ - - app_id: FlowsVaultConnectionAppIdMailjetEnum - setup: FlowsVaultConnectioSetupMailjetApiKey - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_flows_vault_connection_mailjet_uninitialized.py b/src/auth0/management/types/create_flows_vault_connection_mailjet_uninitialized.py deleted file mode 100644 index a49aa301..00000000 --- a/src/auth0/management/types/create_flows_vault_connection_mailjet_uninitialized.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flows_vault_connection_app_id_mailjet_enum import FlowsVaultConnectionAppIdMailjetEnum - - -class CreateFlowsVaultConnectionMailjetUninitialized(UniversalBaseModel): - name: str = pydantic.Field() - """ - Flows Vault Connection name. - """ - - app_id: FlowsVaultConnectionAppIdMailjetEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_flows_vault_connection_pipedrive.py b/src/auth0/management/types/create_flows_vault_connection_pipedrive.py deleted file mode 100644 index 6864f679..00000000 --- a/src/auth0/management/types/create_flows_vault_connection_pipedrive.py +++ /dev/null @@ -1,13 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .create_flows_vault_connection_pipedrive_oauth_code import CreateFlowsVaultConnectionPipedriveOauthCode -from .create_flows_vault_connection_pipedrive_token import CreateFlowsVaultConnectionPipedriveToken -from .create_flows_vault_connection_pipedrive_uninitialized import CreateFlowsVaultConnectionPipedriveUninitialized - -CreateFlowsVaultConnectionPipedrive = typing.Union[ - CreateFlowsVaultConnectionPipedriveToken, - CreateFlowsVaultConnectionPipedriveOauthCode, - CreateFlowsVaultConnectionPipedriveUninitialized, -] diff --git a/src/auth0/management/types/create_flows_vault_connection_pipedrive_oauth_code.py b/src/auth0/management/types/create_flows_vault_connection_pipedrive_oauth_code.py deleted file mode 100644 index fe564a38..00000000 --- a/src/auth0/management/types/create_flows_vault_connection_pipedrive_oauth_code.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flows_vault_connectio_setup_oauth_code import FlowsVaultConnectioSetupOauthCode -from .flows_vault_connection_app_id_pipedrive_enum import FlowsVaultConnectionAppIdPipedriveEnum - - -class CreateFlowsVaultConnectionPipedriveOauthCode(UniversalBaseModel): - name: str = pydantic.Field() - """ - Flows Vault Connection name. - """ - - app_id: FlowsVaultConnectionAppIdPipedriveEnum - setup: FlowsVaultConnectioSetupOauthCode - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_flows_vault_connection_pipedrive_token.py b/src/auth0/management/types/create_flows_vault_connection_pipedrive_token.py deleted file mode 100644 index c773f826..00000000 --- a/src/auth0/management/types/create_flows_vault_connection_pipedrive_token.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flows_vault_connectio_setup_token import FlowsVaultConnectioSetupToken -from .flows_vault_connection_app_id_pipedrive_enum import FlowsVaultConnectionAppIdPipedriveEnum - - -class CreateFlowsVaultConnectionPipedriveToken(UniversalBaseModel): - name: str = pydantic.Field() - """ - Flows Vault Connection name. - """ - - app_id: FlowsVaultConnectionAppIdPipedriveEnum - setup: FlowsVaultConnectioSetupToken - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_flows_vault_connection_pipedrive_uninitialized.py b/src/auth0/management/types/create_flows_vault_connection_pipedrive_uninitialized.py deleted file mode 100644 index bc174dd8..00000000 --- a/src/auth0/management/types/create_flows_vault_connection_pipedrive_uninitialized.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flows_vault_connection_app_id_pipedrive_enum import FlowsVaultConnectionAppIdPipedriveEnum - - -class CreateFlowsVaultConnectionPipedriveUninitialized(UniversalBaseModel): - name: str = pydantic.Field() - """ - Flows Vault Connection name. - """ - - app_id: FlowsVaultConnectionAppIdPipedriveEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_flows_vault_connection_request_content.py b/src/auth0/management/types/create_flows_vault_connection_request_content.py deleted file mode 100644 index f32bab9c..00000000 --- a/src/auth0/management/types/create_flows_vault_connection_request_content.py +++ /dev/null @@ -1,49 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .create_flows_vault_connection_activecampaign import CreateFlowsVaultConnectionActivecampaign -from .create_flows_vault_connection_airtable import CreateFlowsVaultConnectionAirtable -from .create_flows_vault_connection_auth_0 import CreateFlowsVaultConnectionAuth0 -from .create_flows_vault_connection_bigquery import CreateFlowsVaultConnectionBigquery -from .create_flows_vault_connection_clearbit import CreateFlowsVaultConnectionClearbit -from .create_flows_vault_connection_docusign import CreateFlowsVaultConnectionDocusign -from .create_flows_vault_connection_google_sheets import CreateFlowsVaultConnectionGoogleSheets -from .create_flows_vault_connection_http import CreateFlowsVaultConnectionHttp -from .create_flows_vault_connection_hubspot import CreateFlowsVaultConnectionHubspot -from .create_flows_vault_connection_jwt import CreateFlowsVaultConnectionJwt -from .create_flows_vault_connection_mailchimp import CreateFlowsVaultConnectionMailchimp -from .create_flows_vault_connection_mailjet import CreateFlowsVaultConnectionMailjet -from .create_flows_vault_connection_pipedrive import CreateFlowsVaultConnectionPipedrive -from .create_flows_vault_connection_salesforce import CreateFlowsVaultConnectionSalesforce -from .create_flows_vault_connection_sendgrid import CreateFlowsVaultConnectionSendgrid -from .create_flows_vault_connection_slack import CreateFlowsVaultConnectionSlack -from .create_flows_vault_connection_stripe import CreateFlowsVaultConnectionStripe -from .create_flows_vault_connection_telegram import CreateFlowsVaultConnectionTelegram -from .create_flows_vault_connection_twilio import CreateFlowsVaultConnectionTwilio -from .create_flows_vault_connection_whatsapp import CreateFlowsVaultConnectionWhatsapp -from .create_flows_vault_connection_zapier import CreateFlowsVaultConnectionZapier - -CreateFlowsVaultConnectionRequestContent = typing.Union[ - CreateFlowsVaultConnectionActivecampaign, - CreateFlowsVaultConnectionAirtable, - CreateFlowsVaultConnectionAuth0, - CreateFlowsVaultConnectionBigquery, - CreateFlowsVaultConnectionClearbit, - CreateFlowsVaultConnectionDocusign, - CreateFlowsVaultConnectionGoogleSheets, - CreateFlowsVaultConnectionHttp, - CreateFlowsVaultConnectionHubspot, - CreateFlowsVaultConnectionJwt, - CreateFlowsVaultConnectionMailchimp, - CreateFlowsVaultConnectionMailjet, - CreateFlowsVaultConnectionPipedrive, - CreateFlowsVaultConnectionSalesforce, - CreateFlowsVaultConnectionSendgrid, - CreateFlowsVaultConnectionSlack, - CreateFlowsVaultConnectionStripe, - CreateFlowsVaultConnectionTelegram, - CreateFlowsVaultConnectionTwilio, - CreateFlowsVaultConnectionWhatsapp, - CreateFlowsVaultConnectionZapier, -] diff --git a/src/auth0/management/types/create_flows_vault_connection_response_content.py b/src/auth0/management/types/create_flows_vault_connection_response_content.py deleted file mode 100644 index 34bf5b63..00000000 --- a/src/auth0/management/types/create_flows_vault_connection_response_content.py +++ /dev/null @@ -1,65 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class CreateFlowsVaultConnectionResponseContent(UniversalBaseModel): - id: str = pydantic.Field() - """ - Flows Vault Connection identifier. - """ - - app_id: str = pydantic.Field() - """ - Flows Vault Connection app identifier. - """ - - environment: typing.Optional[str] = pydantic.Field(default=None) - """ - Flows Vault Connection environment. - """ - - name: str = pydantic.Field() - """ - Flows Vault Connection name. - """ - - account_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Flows Vault Connection custom account name. - """ - - ready: bool = pydantic.Field() - """ - Whether the Flows Vault Connection is configured. - """ - - created_at: dt.datetime = pydantic.Field() - """ - The ISO 8601 formatted date when this Flows Vault Connection was created. - """ - - updated_at: dt.datetime = pydantic.Field() - """ - The ISO 8601 formatted date when this Flows Vault Connection was updated. - """ - - refreshed_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The ISO 8601 formatted date when this Flows Vault Connection was refreshed. - """ - - fingerprint: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_flows_vault_connection_salesforce.py b/src/auth0/management/types/create_flows_vault_connection_salesforce.py deleted file mode 100644 index be41c17e..00000000 --- a/src/auth0/management/types/create_flows_vault_connection_salesforce.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .create_flows_vault_connection_salesforce_oauth_code import CreateFlowsVaultConnectionSalesforceOauthCode -from .create_flows_vault_connection_salesforce_uninitialized import CreateFlowsVaultConnectionSalesforceUninitialized - -CreateFlowsVaultConnectionSalesforce = typing.Union[ - CreateFlowsVaultConnectionSalesforceOauthCode, CreateFlowsVaultConnectionSalesforceUninitialized -] diff --git a/src/auth0/management/types/create_flows_vault_connection_salesforce_oauth_code.py b/src/auth0/management/types/create_flows_vault_connection_salesforce_oauth_code.py deleted file mode 100644 index 92f42b33..00000000 --- a/src/auth0/management/types/create_flows_vault_connection_salesforce_oauth_code.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flows_vault_connectio_setup_oauth_code import FlowsVaultConnectioSetupOauthCode -from .flows_vault_connection_app_id_salesforce_enum import FlowsVaultConnectionAppIdSalesforceEnum - - -class CreateFlowsVaultConnectionSalesforceOauthCode(UniversalBaseModel): - name: str = pydantic.Field() - """ - Flows Vault Connection name. - """ - - app_id: FlowsVaultConnectionAppIdSalesforceEnum - setup: FlowsVaultConnectioSetupOauthCode - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_flows_vault_connection_salesforce_uninitialized.py b/src/auth0/management/types/create_flows_vault_connection_salesforce_uninitialized.py deleted file mode 100644 index 4342b0e9..00000000 --- a/src/auth0/management/types/create_flows_vault_connection_salesforce_uninitialized.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flows_vault_connection_app_id_salesforce_enum import FlowsVaultConnectionAppIdSalesforceEnum - - -class CreateFlowsVaultConnectionSalesforceUninitialized(UniversalBaseModel): - name: str = pydantic.Field() - """ - Flows Vault Connection name. - """ - - app_id: FlowsVaultConnectionAppIdSalesforceEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_flows_vault_connection_sendgrid.py b/src/auth0/management/types/create_flows_vault_connection_sendgrid.py deleted file mode 100644 index ab284ee2..00000000 --- a/src/auth0/management/types/create_flows_vault_connection_sendgrid.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .create_flows_vault_connection_sendgrid_api_key import CreateFlowsVaultConnectionSendgridApiKey -from .create_flows_vault_connection_sendgrid_uninitialized import CreateFlowsVaultConnectionSendgridUninitialized - -CreateFlowsVaultConnectionSendgrid = typing.Union[ - CreateFlowsVaultConnectionSendgridApiKey, CreateFlowsVaultConnectionSendgridUninitialized -] diff --git a/src/auth0/management/types/create_flows_vault_connection_sendgrid_api_key.py b/src/auth0/management/types/create_flows_vault_connection_sendgrid_api_key.py deleted file mode 100644 index e8acd791..00000000 --- a/src/auth0/management/types/create_flows_vault_connection_sendgrid_api_key.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flows_vault_connectio_setup_api_key import FlowsVaultConnectioSetupApiKey -from .flows_vault_connection_app_id_sendgrid_enum import FlowsVaultConnectionAppIdSendgridEnum - - -class CreateFlowsVaultConnectionSendgridApiKey(UniversalBaseModel): - name: str = pydantic.Field() - """ - Flows Vault Connection name. - """ - - app_id: FlowsVaultConnectionAppIdSendgridEnum - setup: FlowsVaultConnectioSetupApiKey - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_flows_vault_connection_sendgrid_uninitialized.py b/src/auth0/management/types/create_flows_vault_connection_sendgrid_uninitialized.py deleted file mode 100644 index e3997c28..00000000 --- a/src/auth0/management/types/create_flows_vault_connection_sendgrid_uninitialized.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flows_vault_connection_app_id_sendgrid_enum import FlowsVaultConnectionAppIdSendgridEnum - - -class CreateFlowsVaultConnectionSendgridUninitialized(UniversalBaseModel): - name: str = pydantic.Field() - """ - Flows Vault Connection name. - """ - - app_id: FlowsVaultConnectionAppIdSendgridEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_flows_vault_connection_slack.py b/src/auth0/management/types/create_flows_vault_connection_slack.py deleted file mode 100644 index e5ac6e19..00000000 --- a/src/auth0/management/types/create_flows_vault_connection_slack.py +++ /dev/null @@ -1,13 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .create_flows_vault_connection_slack_oauth_code import CreateFlowsVaultConnectionSlackOauthCode -from .create_flows_vault_connection_slack_uninitialized import CreateFlowsVaultConnectionSlackUninitialized -from .create_flows_vault_connection_slack_webhook import CreateFlowsVaultConnectionSlackWebhook - -CreateFlowsVaultConnectionSlack = typing.Union[ - CreateFlowsVaultConnectionSlackWebhook, - CreateFlowsVaultConnectionSlackOauthCode, - CreateFlowsVaultConnectionSlackUninitialized, -] diff --git a/src/auth0/management/types/create_flows_vault_connection_slack_oauth_code.py b/src/auth0/management/types/create_flows_vault_connection_slack_oauth_code.py deleted file mode 100644 index 6cfe8e96..00000000 --- a/src/auth0/management/types/create_flows_vault_connection_slack_oauth_code.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flows_vault_connectio_setup_oauth_code import FlowsVaultConnectioSetupOauthCode -from .flows_vault_connection_app_id_slack_enum import FlowsVaultConnectionAppIdSlackEnum - - -class CreateFlowsVaultConnectionSlackOauthCode(UniversalBaseModel): - name: str = pydantic.Field() - """ - Flows Vault Connection name. - """ - - app_id: FlowsVaultConnectionAppIdSlackEnum - setup: FlowsVaultConnectioSetupOauthCode - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_flows_vault_connection_slack_uninitialized.py b/src/auth0/management/types/create_flows_vault_connection_slack_uninitialized.py deleted file mode 100644 index 8978780c..00000000 --- a/src/auth0/management/types/create_flows_vault_connection_slack_uninitialized.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flows_vault_connection_app_id_slack_enum import FlowsVaultConnectionAppIdSlackEnum - - -class CreateFlowsVaultConnectionSlackUninitialized(UniversalBaseModel): - name: str = pydantic.Field() - """ - Flows Vault Connection name. - """ - - app_id: FlowsVaultConnectionAppIdSlackEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_flows_vault_connection_slack_webhook.py b/src/auth0/management/types/create_flows_vault_connection_slack_webhook.py deleted file mode 100644 index bcc1a82a..00000000 --- a/src/auth0/management/types/create_flows_vault_connection_slack_webhook.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flows_vault_connectio_setup_webhook import FlowsVaultConnectioSetupWebhook -from .flows_vault_connection_app_id_slack_enum import FlowsVaultConnectionAppIdSlackEnum - - -class CreateFlowsVaultConnectionSlackWebhook(UniversalBaseModel): - name: str = pydantic.Field() - """ - Flows Vault Connection name. - """ - - app_id: FlowsVaultConnectionAppIdSlackEnum - setup: FlowsVaultConnectioSetupWebhook - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_flows_vault_connection_stripe.py b/src/auth0/management/types/create_flows_vault_connection_stripe.py deleted file mode 100644 index 73c90ecf..00000000 --- a/src/auth0/management/types/create_flows_vault_connection_stripe.py +++ /dev/null @@ -1,13 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .create_flows_vault_connection_stripe_key_pair import CreateFlowsVaultConnectionStripeKeyPair -from .create_flows_vault_connection_stripe_oauth_code import CreateFlowsVaultConnectionStripeOauthCode -from .create_flows_vault_connection_stripe_uninitialized import CreateFlowsVaultConnectionStripeUninitialized - -CreateFlowsVaultConnectionStripe = typing.Union[ - CreateFlowsVaultConnectionStripeKeyPair, - CreateFlowsVaultConnectionStripeOauthCode, - CreateFlowsVaultConnectionStripeUninitialized, -] diff --git a/src/auth0/management/types/create_flows_vault_connection_stripe_key_pair.py b/src/auth0/management/types/create_flows_vault_connection_stripe_key_pair.py deleted file mode 100644 index 454e9977..00000000 --- a/src/auth0/management/types/create_flows_vault_connection_stripe_key_pair.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flows_vault_connectio_setup_stripe_key_pair import FlowsVaultConnectioSetupStripeKeyPair -from .flows_vault_connection_app_id_stripe_enum import FlowsVaultConnectionAppIdStripeEnum - - -class CreateFlowsVaultConnectionStripeKeyPair(UniversalBaseModel): - name: str = pydantic.Field() - """ - Flows Vault Connection name. - """ - - app_id: FlowsVaultConnectionAppIdStripeEnum - setup: FlowsVaultConnectioSetupStripeKeyPair - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_flows_vault_connection_stripe_oauth_code.py b/src/auth0/management/types/create_flows_vault_connection_stripe_oauth_code.py deleted file mode 100644 index 74c650b6..00000000 --- a/src/auth0/management/types/create_flows_vault_connection_stripe_oauth_code.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flows_vault_connectio_setup_oauth_code import FlowsVaultConnectioSetupOauthCode -from .flows_vault_connection_app_id_stripe_enum import FlowsVaultConnectionAppIdStripeEnum - - -class CreateFlowsVaultConnectionStripeOauthCode(UniversalBaseModel): - name: str = pydantic.Field() - """ - Flows Vault Connection name. - """ - - app_id: FlowsVaultConnectionAppIdStripeEnum - setup: FlowsVaultConnectioSetupOauthCode - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_flows_vault_connection_stripe_uninitialized.py b/src/auth0/management/types/create_flows_vault_connection_stripe_uninitialized.py deleted file mode 100644 index 629aa3b7..00000000 --- a/src/auth0/management/types/create_flows_vault_connection_stripe_uninitialized.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flows_vault_connection_app_id_stripe_enum import FlowsVaultConnectionAppIdStripeEnum - - -class CreateFlowsVaultConnectionStripeUninitialized(UniversalBaseModel): - name: str = pydantic.Field() - """ - Flows Vault Connection name. - """ - - app_id: FlowsVaultConnectionAppIdStripeEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_flows_vault_connection_telegram.py b/src/auth0/management/types/create_flows_vault_connection_telegram.py deleted file mode 100644 index 94c8aff0..00000000 --- a/src/auth0/management/types/create_flows_vault_connection_telegram.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .create_flows_vault_connection_telegram_token import CreateFlowsVaultConnectionTelegramToken -from .create_flows_vault_connection_telegram_uninitialized import CreateFlowsVaultConnectionTelegramUninitialized - -CreateFlowsVaultConnectionTelegram = typing.Union[ - CreateFlowsVaultConnectionTelegramToken, CreateFlowsVaultConnectionTelegramUninitialized -] diff --git a/src/auth0/management/types/create_flows_vault_connection_telegram_token.py b/src/auth0/management/types/create_flows_vault_connection_telegram_token.py deleted file mode 100644 index 51f250ca..00000000 --- a/src/auth0/management/types/create_flows_vault_connection_telegram_token.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flows_vault_connectio_setup_token import FlowsVaultConnectioSetupToken -from .flows_vault_connection_app_id_telegram_enum import FlowsVaultConnectionAppIdTelegramEnum - - -class CreateFlowsVaultConnectionTelegramToken(UniversalBaseModel): - name: str = pydantic.Field() - """ - Flows Vault Connection name. - """ - - app_id: FlowsVaultConnectionAppIdTelegramEnum - setup: FlowsVaultConnectioSetupToken - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_flows_vault_connection_telegram_uninitialized.py b/src/auth0/management/types/create_flows_vault_connection_telegram_uninitialized.py deleted file mode 100644 index 9881209d..00000000 --- a/src/auth0/management/types/create_flows_vault_connection_telegram_uninitialized.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flows_vault_connection_app_id_telegram_enum import FlowsVaultConnectionAppIdTelegramEnum - - -class CreateFlowsVaultConnectionTelegramUninitialized(UniversalBaseModel): - name: str = pydantic.Field() - """ - Flows Vault Connection name. - """ - - app_id: FlowsVaultConnectionAppIdTelegramEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_flows_vault_connection_twilio.py b/src/auth0/management/types/create_flows_vault_connection_twilio.py deleted file mode 100644 index fe859a63..00000000 --- a/src/auth0/management/types/create_flows_vault_connection_twilio.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .create_flows_vault_connection_twilio_api_key import CreateFlowsVaultConnectionTwilioApiKey -from .create_flows_vault_connection_twilio_uninitialized import CreateFlowsVaultConnectionTwilioUninitialized - -CreateFlowsVaultConnectionTwilio = typing.Union[ - CreateFlowsVaultConnectionTwilioApiKey, CreateFlowsVaultConnectionTwilioUninitialized -] diff --git a/src/auth0/management/types/create_flows_vault_connection_twilio_api_key.py b/src/auth0/management/types/create_flows_vault_connection_twilio_api_key.py deleted file mode 100644 index ceb08b9b..00000000 --- a/src/auth0/management/types/create_flows_vault_connection_twilio_api_key.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flows_vault_connectio_setup_twilio_api_key import FlowsVaultConnectioSetupTwilioApiKey -from .flows_vault_connection_app_id_twilio_enum import FlowsVaultConnectionAppIdTwilioEnum - - -class CreateFlowsVaultConnectionTwilioApiKey(UniversalBaseModel): - name: str = pydantic.Field() - """ - Flows Vault Connection name. - """ - - app_id: FlowsVaultConnectionAppIdTwilioEnum - setup: FlowsVaultConnectioSetupTwilioApiKey - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_flows_vault_connection_twilio_uninitialized.py b/src/auth0/management/types/create_flows_vault_connection_twilio_uninitialized.py deleted file mode 100644 index 9407f621..00000000 --- a/src/auth0/management/types/create_flows_vault_connection_twilio_uninitialized.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flows_vault_connection_app_id_twilio_enum import FlowsVaultConnectionAppIdTwilioEnum - - -class CreateFlowsVaultConnectionTwilioUninitialized(UniversalBaseModel): - name: str = pydantic.Field() - """ - Flows Vault Connection name. - """ - - app_id: FlowsVaultConnectionAppIdTwilioEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_flows_vault_connection_whatsapp.py b/src/auth0/management/types/create_flows_vault_connection_whatsapp.py deleted file mode 100644 index 3eb2623a..00000000 --- a/src/auth0/management/types/create_flows_vault_connection_whatsapp.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .create_flows_vault_connection_whatsapp_token import CreateFlowsVaultConnectionWhatsappToken -from .create_flows_vault_connection_whatsapp_uninitialized import CreateFlowsVaultConnectionWhatsappUninitialized - -CreateFlowsVaultConnectionWhatsapp = typing.Union[ - CreateFlowsVaultConnectionWhatsappToken, CreateFlowsVaultConnectionWhatsappUninitialized -] diff --git a/src/auth0/management/types/create_flows_vault_connection_whatsapp_token.py b/src/auth0/management/types/create_flows_vault_connection_whatsapp_token.py deleted file mode 100644 index c615461e..00000000 --- a/src/auth0/management/types/create_flows_vault_connection_whatsapp_token.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flows_vault_connectio_setup_token import FlowsVaultConnectioSetupToken -from .flows_vault_connection_app_id_whatsapp_enum import FlowsVaultConnectionAppIdWhatsappEnum - - -class CreateFlowsVaultConnectionWhatsappToken(UniversalBaseModel): - name: str = pydantic.Field() - """ - Flows Vault Connection name. - """ - - app_id: FlowsVaultConnectionAppIdWhatsappEnum - setup: FlowsVaultConnectioSetupToken - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_flows_vault_connection_whatsapp_uninitialized.py b/src/auth0/management/types/create_flows_vault_connection_whatsapp_uninitialized.py deleted file mode 100644 index 579bf865..00000000 --- a/src/auth0/management/types/create_flows_vault_connection_whatsapp_uninitialized.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flows_vault_connection_app_id_whatsapp_enum import FlowsVaultConnectionAppIdWhatsappEnum - - -class CreateFlowsVaultConnectionWhatsappUninitialized(UniversalBaseModel): - name: str = pydantic.Field() - """ - Flows Vault Connection name. - """ - - app_id: FlowsVaultConnectionAppIdWhatsappEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_flows_vault_connection_zapier.py b/src/auth0/management/types/create_flows_vault_connection_zapier.py deleted file mode 100644 index 65bb1eab..00000000 --- a/src/auth0/management/types/create_flows_vault_connection_zapier.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .create_flows_vault_connection_zapier_uninitialized import CreateFlowsVaultConnectionZapierUninitialized -from .create_flows_vault_connection_zapier_webhook import CreateFlowsVaultConnectionZapierWebhook - -CreateFlowsVaultConnectionZapier = typing.Union[ - CreateFlowsVaultConnectionZapierWebhook, CreateFlowsVaultConnectionZapierUninitialized -] diff --git a/src/auth0/management/types/create_flows_vault_connection_zapier_uninitialized.py b/src/auth0/management/types/create_flows_vault_connection_zapier_uninitialized.py deleted file mode 100644 index 0ff47278..00000000 --- a/src/auth0/management/types/create_flows_vault_connection_zapier_uninitialized.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flows_vault_connection_app_id_zapier_enum import FlowsVaultConnectionAppIdZapierEnum - - -class CreateFlowsVaultConnectionZapierUninitialized(UniversalBaseModel): - name: str = pydantic.Field() - """ - Flows Vault Connection name. - """ - - app_id: FlowsVaultConnectionAppIdZapierEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_flows_vault_connection_zapier_webhook.py b/src/auth0/management/types/create_flows_vault_connection_zapier_webhook.py deleted file mode 100644 index c732e892..00000000 --- a/src/auth0/management/types/create_flows_vault_connection_zapier_webhook.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flows_vault_connectio_setup_webhook import FlowsVaultConnectioSetupWebhook -from .flows_vault_connection_app_id_zapier_enum import FlowsVaultConnectionAppIdZapierEnum - - -class CreateFlowsVaultConnectionZapierWebhook(UniversalBaseModel): - name: str = pydantic.Field() - """ - Flows Vault Connection name. - """ - - app_id: FlowsVaultConnectionAppIdZapierEnum - setup: FlowsVaultConnectioSetupWebhook - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_form_response_content.py b/src/auth0/management/types/create_form_response_content.py deleted file mode 100644 index 9ec6c007..00000000 --- a/src/auth0/management/types/create_form_response_content.py +++ /dev/null @@ -1,39 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .form_ending_node import FormEndingNode -from .form_languages import FormLanguages -from .form_messages import FormMessages -from .form_node_list import FormNodeList -from .form_start_node import FormStartNode -from .form_style import FormStyle -from .form_translations import FormTranslations - - -class CreateFormResponseContent(UniversalBaseModel): - id: str - name: str - messages: typing.Optional[FormMessages] = None - languages: typing.Optional[FormLanguages] = None - translations: typing.Optional[FormTranslations] = None - nodes: typing.Optional[FormNodeList] = None - start: typing.Optional[FormStartNode] = None - ending: typing.Optional[FormEndingNode] = None - style: typing.Optional[FormStyle] = None - created_at: dt.datetime - updated_at: dt.datetime - embedded_at: typing.Optional[str] = None - submitted_at: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_guardian_enrollment_ticket_response_content.py b/src/auth0/management/types/create_guardian_enrollment_ticket_response_content.py deleted file mode 100644 index 60f1296c..00000000 --- a/src/auth0/management/types/create_guardian_enrollment_ticket_response_content.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class CreateGuardianEnrollmentTicketResponseContent(UniversalBaseModel): - ticket_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The ticket_id used to identify the enrollment - """ - - ticket_url: typing.Optional[str] = pydantic.Field(default=None) - """ - The url you can use to start enrollment - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_hook_response_content.py b/src/auth0/management/types/create_hook_response_content.py deleted file mode 100644 index 266cb16f..00000000 --- a/src/auth0/management/types/create_hook_response_content.py +++ /dev/null @@ -1,51 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .hook_dependencies import HookDependencies - - -class CreateHookResponseContent(UniversalBaseModel): - trigger_id: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="triggerId"), - pydantic.Field(alias="triggerId", description="Trigger ID"), - ] = None - """ - Trigger ID - """ - - id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of this hook. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of this hook. - """ - - enabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this hook will be executed (true) or ignored (false). - """ - - script: typing.Optional[str] = pydantic.Field(default=None) - """ - Code to be executed when this hook runs. - """ - - dependencies: typing.Optional[HookDependencies] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_hook_secret_request_content.py b/src/auth0/management/types/create_hook_secret_request_content.py deleted file mode 100644 index 0271978f..00000000 --- a/src/auth0/management/types/create_hook_secret_request_content.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CreateHookSecretRequestContent = typing.Dict[str, str] -""" -Hashmap of key-value pairs where the value must be a string. -""" diff --git a/src/auth0/management/types/create_identity_assertion_authorization_grant.py b/src/auth0/management/types/create_identity_assertion_authorization_grant.py deleted file mode 100644 index f4f7e001..00000000 --- a/src/auth0/management/types/create_identity_assertion_authorization_grant.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class CreateIdentityAssertionAuthorizationGrant(UniversalBaseModel): - """ - Configuration on the use of ID-JAGs for Cross App Access. - """ - - active: bool = pydantic.Field() - """ - If set to true, the client can exchange ID-JAGs for access tokens. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_import_users_response_content.py b/src/auth0/management/types/create_import_users_response_content.py deleted file mode 100644 index cbf27622..00000000 --- a/src/auth0/management/types/create_import_users_response_content.py +++ /dev/null @@ -1,47 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class CreateImportUsersResponseContent(UniversalBaseModel): - status: str = pydantic.Field() - """ - Status of this job. - """ - - type: str = pydantic.Field() - """ - Type of job this is. - """ - - created_at: str = pydantic.Field() - """ - When this job was created. - """ - - id: str = pydantic.Field() - """ - ID of this job. - """ - - connection_id: str = pydantic.Field() - """ - connection_id of the connection to which users will be imported. - """ - - external_id: typing.Optional[str] = pydantic.Field(default=None) - """ - Customer-defined ID. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_keys_network_acls_response_content.py b/src/auth0/management/types/create_keys_network_acls_response_content.py deleted file mode 100644 index 7d000f97..00000000 --- a/src/auth0/management/types/create_keys_network_acls_response_content.py +++ /dev/null @@ -1,44 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .network_acl_key_algorithm_enum import NetworkAclKeyAlgorithmEnum - - -class CreateKeysNetworkAclsResponseContent(UniversalBaseModel): - id: str = pydantic.Field() - """ - Auth0-generated identifier for the key. Used to reference the key from a Network ACL and to identify it in Tenant Logs. - """ - - name: str = pydantic.Field() - """ - Customer-supplied label with no cryptographic meaning. - """ - - alg: NetworkAclKeyAlgorithmEnum - fingerprint: str = pydantic.Field() - """ - Fingerprint of the key material, determined by the algorithm specified. Currently only HMAC-SHA256 is supported. - """ - - created_at: str = pydantic.Field() - """ - Time when the key was created. - """ - - updated_at: str = pydantic.Field() - """ - Time when the key was last updated. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_log_stream_datadog_request_body.py b/src/auth0/management/types/create_log_stream_datadog_request_body.py deleted file mode 100644 index 93e55835..00000000 --- a/src/auth0/management/types/create_log_stream_datadog_request_body.py +++ /dev/null @@ -1,54 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .log_stream_datadog_enum import LogStreamDatadogEnum -from .log_stream_datadog_sink import LogStreamDatadogSink -from .log_stream_filter import LogStreamFilter -from .log_stream_pii_config import LogStreamPiiConfig - - -class CreateLogStreamDatadogRequestBody(UniversalBaseModel): - name: typing.Optional[str] = pydantic.Field(default=None) - """ - log stream name - """ - - type: LogStreamDatadogEnum - is_priority: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="isPriority"), - pydantic.Field(alias="isPriority", description="True for priority log streams, false for non-priority"), - ] = None - """ - True for priority log streams, false for non-priority - """ - - filters: typing.Optional[typing.List[LogStreamFilter]] = pydantic.Field(default=None) - """ - Only logs events matching these filters will be delivered by the stream. If omitted or empty, all events will be delivered. - """ - - pii_config: typing.Optional[LogStreamPiiConfig] = None - sink: LogStreamDatadogSink - start_from: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="startFrom"), - pydantic.Field(alias="startFrom", description="The optional datetime (ISO 8601) to start streaming logs from"), - ] = None - """ - The optional datetime (ISO 8601) to start streaming logs from - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_log_stream_event_bridge_request_body.py b/src/auth0/management/types/create_log_stream_event_bridge_request_body.py deleted file mode 100644 index 94e1765d..00000000 --- a/src/auth0/management/types/create_log_stream_event_bridge_request_body.py +++ /dev/null @@ -1,54 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .log_stream_event_bridge_enum import LogStreamEventBridgeEnum -from .log_stream_event_bridge_sink import LogStreamEventBridgeSink -from .log_stream_filter import LogStreamFilter -from .log_stream_pii_config import LogStreamPiiConfig - - -class CreateLogStreamEventBridgeRequestBody(UniversalBaseModel): - name: typing.Optional[str] = pydantic.Field(default=None) - """ - log stream name - """ - - type: LogStreamEventBridgeEnum - is_priority: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="isPriority"), - pydantic.Field(alias="isPriority", description="True for priority log streams, false for non-priority"), - ] = None - """ - True for priority log streams, false for non-priority - """ - - filters: typing.Optional[typing.List[LogStreamFilter]] = pydantic.Field(default=None) - """ - Only logs events matching these filters will be delivered by the stream. If omitted or empty, all events will be delivered. - """ - - pii_config: typing.Optional[LogStreamPiiConfig] = None - sink: LogStreamEventBridgeSink - start_from: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="startFrom"), - pydantic.Field(alias="startFrom", description="The optional datetime (ISO 8601) to start streaming logs from"), - ] = None - """ - The optional datetime (ISO 8601) to start streaming logs from - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_log_stream_event_grid_request_body.py b/src/auth0/management/types/create_log_stream_event_grid_request_body.py deleted file mode 100644 index 97e0c8e8..00000000 --- a/src/auth0/management/types/create_log_stream_event_grid_request_body.py +++ /dev/null @@ -1,54 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .log_stream_event_grid_enum import LogStreamEventGridEnum -from .log_stream_event_grid_sink import LogStreamEventGridSink -from .log_stream_filter import LogStreamFilter -from .log_stream_pii_config import LogStreamPiiConfig - - -class CreateLogStreamEventGridRequestBody(UniversalBaseModel): - name: typing.Optional[str] = pydantic.Field(default=None) - """ - log stream name - """ - - type: LogStreamEventGridEnum - is_priority: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="isPriority"), - pydantic.Field(alias="isPriority", description="True for priority log streams, false for non-priority"), - ] = None - """ - True for priority log streams, false for non-priority - """ - - filters: typing.Optional[typing.List[LogStreamFilter]] = pydantic.Field(default=None) - """ - Only logs events matching these filters will be delivered by the stream. If omitted or empty, all events will be delivered. - """ - - pii_config: typing.Optional[LogStreamPiiConfig] = None - sink: LogStreamEventGridSink - start_from: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="startFrom"), - pydantic.Field(alias="startFrom", description="The optional datetime (ISO 8601) to start streaming logs from"), - ] = None - """ - The optional datetime (ISO 8601) to start streaming logs from - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_log_stream_http_request_body.py b/src/auth0/management/types/create_log_stream_http_request_body.py deleted file mode 100644 index c2d53b84..00000000 --- a/src/auth0/management/types/create_log_stream_http_request_body.py +++ /dev/null @@ -1,54 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .log_stream_filter import LogStreamFilter -from .log_stream_http_enum import LogStreamHttpEnum -from .log_stream_http_sink import LogStreamHttpSink -from .log_stream_pii_config import LogStreamPiiConfig - - -class CreateLogStreamHttpRequestBody(UniversalBaseModel): - name: typing.Optional[str] = pydantic.Field(default=None) - """ - log stream name - """ - - type: LogStreamHttpEnum - is_priority: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="isPriority"), - pydantic.Field(alias="isPriority", description="True for priority log streams, false for non-priority"), - ] = None - """ - True for priority log streams, false for non-priority - """ - - filters: typing.Optional[typing.List[LogStreamFilter]] = pydantic.Field(default=None) - """ - Only logs events matching these filters will be delivered by the stream. If omitted or empty, all events will be delivered. - """ - - pii_config: typing.Optional[LogStreamPiiConfig] = None - sink: LogStreamHttpSink - start_from: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="startFrom"), - pydantic.Field(alias="startFrom", description="The optional datetime (ISO 8601) to start streaming logs from"), - ] = None - """ - The optional datetime (ISO 8601) to start streaming logs from - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_log_stream_mixpanel_request_body.py b/src/auth0/management/types/create_log_stream_mixpanel_request_body.py deleted file mode 100644 index ea61381d..00000000 --- a/src/auth0/management/types/create_log_stream_mixpanel_request_body.py +++ /dev/null @@ -1,54 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .log_stream_filter import LogStreamFilter -from .log_stream_mixpanel_enum import LogStreamMixpanelEnum -from .log_stream_mixpanel_sink import LogStreamMixpanelSink -from .log_stream_pii_config import LogStreamPiiConfig - - -class CreateLogStreamMixpanelRequestBody(UniversalBaseModel): - name: typing.Optional[str] = pydantic.Field(default=None) - """ - log stream name - """ - - type: LogStreamMixpanelEnum - is_priority: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="isPriority"), - pydantic.Field(alias="isPriority", description="True for priority log streams, false for non-priority"), - ] = None - """ - True for priority log streams, false for non-priority - """ - - filters: typing.Optional[typing.List[LogStreamFilter]] = pydantic.Field(default=None) - """ - Only logs events matching these filters will be delivered by the stream. If omitted or empty, all events will be delivered. - """ - - pii_config: typing.Optional[LogStreamPiiConfig] = None - sink: LogStreamMixpanelSink - start_from: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="startFrom"), - pydantic.Field(alias="startFrom", description="The optional datetime (ISO 8601) to start streaming logs from"), - ] = None - """ - The optional datetime (ISO 8601) to start streaming logs from - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_log_stream_request_content.py b/src/auth0/management/types/create_log_stream_request_content.py deleted file mode 100644 index 6a181990..00000000 --- a/src/auth0/management/types/create_log_stream_request_content.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .create_log_stream_datadog_request_body import CreateLogStreamDatadogRequestBody -from .create_log_stream_event_bridge_request_body import CreateLogStreamEventBridgeRequestBody -from .create_log_stream_event_grid_request_body import CreateLogStreamEventGridRequestBody -from .create_log_stream_http_request_body import CreateLogStreamHttpRequestBody -from .create_log_stream_mixpanel_request_body import CreateLogStreamMixpanelRequestBody -from .create_log_stream_segment_request_body import CreateLogStreamSegmentRequestBody -from .create_log_stream_splunk_request_body import CreateLogStreamSplunkRequestBody -from .create_log_stream_sumo_request_body import CreateLogStreamSumoRequestBody - -CreateLogStreamRequestContent = typing.Union[ - CreateLogStreamHttpRequestBody, - CreateLogStreamEventBridgeRequestBody, - CreateLogStreamEventGridRequestBody, - CreateLogStreamDatadogRequestBody, - CreateLogStreamSplunkRequestBody, - CreateLogStreamSumoRequestBody, - CreateLogStreamSegmentRequestBody, - CreateLogStreamMixpanelRequestBody, -] diff --git a/src/auth0/management/types/create_log_stream_response_content.py b/src/auth0/management/types/create_log_stream_response_content.py deleted file mode 100644 index 0a04d242..00000000 --- a/src/auth0/management/types/create_log_stream_response_content.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .log_stream_datadog_response_schema import LogStreamDatadogResponseSchema -from .log_stream_event_bridge_response_schema import LogStreamEventBridgeResponseSchema -from .log_stream_event_grid_response_schema import LogStreamEventGridResponseSchema -from .log_stream_http_response_schema import LogStreamHttpResponseSchema -from .log_stream_mixpanel_response_schema import LogStreamMixpanelResponseSchema -from .log_stream_segment_response_schema import LogStreamSegmentResponseSchema -from .log_stream_splunk_response_schema import LogStreamSplunkResponseSchema -from .log_stream_sumo_response_schema import LogStreamSumoResponseSchema - -CreateLogStreamResponseContent = typing.Union[ - LogStreamHttpResponseSchema, - LogStreamEventBridgeResponseSchema, - LogStreamEventGridResponseSchema, - LogStreamDatadogResponseSchema, - LogStreamSplunkResponseSchema, - LogStreamSumoResponseSchema, - LogStreamSegmentResponseSchema, - LogStreamMixpanelResponseSchema, -] diff --git a/src/auth0/management/types/create_log_stream_segment_request_body.py b/src/auth0/management/types/create_log_stream_segment_request_body.py deleted file mode 100644 index b08952be..00000000 --- a/src/auth0/management/types/create_log_stream_segment_request_body.py +++ /dev/null @@ -1,54 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .log_stream_filter import LogStreamFilter -from .log_stream_pii_config import LogStreamPiiConfig -from .log_stream_segment_enum import LogStreamSegmentEnum -from .log_stream_segment_sink_write_key import LogStreamSegmentSinkWriteKey - - -class CreateLogStreamSegmentRequestBody(UniversalBaseModel): - name: typing.Optional[str] = pydantic.Field(default=None) - """ - log stream name - """ - - type: LogStreamSegmentEnum - is_priority: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="isPriority"), - pydantic.Field(alias="isPriority", description="True for priority log streams, false for non-priority"), - ] = None - """ - True for priority log streams, false for non-priority - """ - - filters: typing.Optional[typing.List[LogStreamFilter]] = pydantic.Field(default=None) - """ - Only logs events matching these filters will be delivered by the stream. If omitted or empty, all events will be delivered. - """ - - pii_config: typing.Optional[LogStreamPiiConfig] = None - sink: LogStreamSegmentSinkWriteKey - start_from: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="startFrom"), - pydantic.Field(alias="startFrom", description="The optional datetime (ISO 8601) to start streaming logs from"), - ] = None - """ - The optional datetime (ISO 8601) to start streaming logs from - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_log_stream_splunk_request_body.py b/src/auth0/management/types/create_log_stream_splunk_request_body.py deleted file mode 100644 index 9737b93d..00000000 --- a/src/auth0/management/types/create_log_stream_splunk_request_body.py +++ /dev/null @@ -1,54 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .log_stream_filter import LogStreamFilter -from .log_stream_pii_config import LogStreamPiiConfig -from .log_stream_splunk_enum import LogStreamSplunkEnum -from .log_stream_splunk_sink import LogStreamSplunkSink - - -class CreateLogStreamSplunkRequestBody(UniversalBaseModel): - name: typing.Optional[str] = pydantic.Field(default=None) - """ - log stream name - """ - - type: LogStreamSplunkEnum - is_priority: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="isPriority"), - pydantic.Field(alias="isPriority", description="True for priority log streams, false for non-priority"), - ] = None - """ - True for priority log streams, false for non-priority - """ - - filters: typing.Optional[typing.List[LogStreamFilter]] = pydantic.Field(default=None) - """ - Only logs events matching these filters will be delivered by the stream. If omitted or empty, all events will be delivered. - """ - - pii_config: typing.Optional[LogStreamPiiConfig] = None - sink: LogStreamSplunkSink - start_from: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="startFrom"), - pydantic.Field(alias="startFrom", description="The optional datetime (ISO 8601) to start streaming logs from"), - ] = None - """ - The optional datetime (ISO 8601) to start streaming logs from - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_log_stream_sumo_request_body.py b/src/auth0/management/types/create_log_stream_sumo_request_body.py deleted file mode 100644 index 5165cbb0..00000000 --- a/src/auth0/management/types/create_log_stream_sumo_request_body.py +++ /dev/null @@ -1,54 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .log_stream_filter import LogStreamFilter -from .log_stream_pii_config import LogStreamPiiConfig -from .log_stream_sumo_enum import LogStreamSumoEnum -from .log_stream_sumo_sink import LogStreamSumoSink - - -class CreateLogStreamSumoRequestBody(UniversalBaseModel): - name: typing.Optional[str] = pydantic.Field(default=None) - """ - log stream name - """ - - type: LogStreamSumoEnum - is_priority: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="isPriority"), - pydantic.Field(alias="isPriority", description="True for priority log streams, false for non-priority"), - ] = None - """ - True for priority log streams, false for non-priority - """ - - filters: typing.Optional[typing.List[LogStreamFilter]] = pydantic.Field(default=None) - """ - Only logs events matching these filters will be delivered by the stream. If omitted or empty, all events will be delivered. - """ - - pii_config: typing.Optional[LogStreamPiiConfig] = None - sink: LogStreamSumoSink - start_from: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="startFrom"), - pydantic.Field(alias="startFrom", description="The optional datetime (ISO 8601) to start streaming logs from"), - ] = None - """ - The optional datetime (ISO 8601) to start streaming logs from - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_organization_all_connection_response_content.py b/src/auth0/management/types/create_organization_all_connection_response_content.py deleted file mode 100644 index d15e2dfa..00000000 --- a/src/auth0/management/types/create_organization_all_connection_response_content.py +++ /dev/null @@ -1,54 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .organization_access_level_enum import OrganizationAccessLevelEnum -from .organization_connection_information import OrganizationConnectionInformation -from .organization_member_access_level_enum import OrganizationMemberAccessLevelEnum - - -class CreateOrganizationAllConnectionResponseContent(UniversalBaseModel): - organization_connection_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of the connection in the scope of this organization. - """ - - assign_membership_on_login: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true, all users that log in with this connection will be automatically granted membership in the organization. When false, users must be granted membership in the organization before logging in with this connection. - """ - - show_as_button: typing.Optional[bool] = pydantic.Field(default=None) - """ - Determines whether a connection should be displayed on this organization’s login prompt. Only applicable for enterprise connections. Default: true. - """ - - is_signup_enabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - Determines whether organization signup should be enabled for this organization connection. Only applicable for database connections. Default: false. - """ - - organization_access_level: typing.Optional[OrganizationAccessLevelEnum] = None - organization_member_access_level: typing.Optional[OrganizationMemberAccessLevelEnum] = None - is_enabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether the connection is enabled for the organization. - """ - - connection_id: str = pydantic.Field() - """ - Connection identifier. - """ - - connection: typing.Optional[OrganizationConnectionInformation] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_organization_client_request_item.py b/src/auth0/management/types/create_organization_client_request_item.py deleted file mode 100644 index 338e1f26..00000000 --- a/src/auth0/management/types/create_organization_client_request_item.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class CreateOrganizationClientRequestItem(UniversalBaseModel): - client_id: str = pydantic.Field() - """ - The identifier of the client to associate. - """ - - use_for_member_access: bool = pydantic.Field() - """ - Whether this client is used for member access to the organization. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_organization_clients_response_content.py b/src/auth0/management/types/create_organization_clients_response_content.py deleted file mode 100644 index 63832aa9..00000000 --- a/src/auth0/management/types/create_organization_clients_response_content.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .organization_client import OrganizationClient - -CreateOrganizationClientsResponseContent = typing.List[OrganizationClient] diff --git a/src/auth0/management/types/create_organization_discovery_domain_response_content.py b/src/auth0/management/types/create_organization_discovery_domain_response_content.py deleted file mode 100644 index 50567e71..00000000 --- a/src/auth0/management/types/create_organization_discovery_domain_response_content.py +++ /dev/null @@ -1,44 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .organization_discovery_domain_status import OrganizationDiscoveryDomainStatus - - -class CreateOrganizationDiscoveryDomainResponseContent(UniversalBaseModel): - id: str = pydantic.Field() - """ - Organization discovery domain identifier. - """ - - domain: str = pydantic.Field() - """ - The domain name to associate with the organization e.g. acme.com. - """ - - status: OrganizationDiscoveryDomainStatus - use_for_organization_discovery: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether this domain should be used for organization discovery. - """ - - verification_txt: str = pydantic.Field() - """ - A unique token generated for the discovery domain. This must be placed in a DNS TXT record at the location specified by the verification_host field to prove domain ownership. - """ - - verification_host: str = pydantic.Field() - """ - The full domain where the TXT record should be added. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_organization_invitation_response_content.py b/src/auth0/management/types/create_organization_invitation_response_content.py deleted file mode 100644 index 640f6739..00000000 --- a/src/auth0/management/types/create_organization_invitation_response_content.py +++ /dev/null @@ -1,71 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .app_metadata import AppMetadata -from .organization_invitation_invitee import OrganizationInvitationInvitee -from .organization_invitation_inviter import OrganizationInvitationInviter -from .user_metadata import UserMetadata - - -class CreateOrganizationInvitationResponseContent(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - The id of the user invitation. - """ - - organization_id: typing.Optional[str] = pydantic.Field(default=None) - """ - Organization identifier. - """ - - inviter: typing.Optional[OrganizationInvitationInviter] = None - invitee: typing.Optional[OrganizationInvitationInvitee] = None - invitation_url: typing.Optional[str] = pydantic.Field(default=None) - """ - The invitation url to be send to the invitee. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The ISO 8601 formatted timestamp representing the creation time of the invitation. - """ - - expires_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The ISO 8601 formatted timestamp representing the expiration time of the invitation. - """ - - client_id: typing.Optional[str] = pydantic.Field(default=None) - """ - Auth0 client ID. Used to resolve the application's login initiation endpoint. - """ - - connection_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The id of the connection to force invitee to authenticate with. - """ - - app_metadata: typing.Optional[AppMetadata] = None - user_metadata: typing.Optional[UserMetadata] = None - roles: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - List of roles IDs to associated with the user. - """ - - ticket_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The id of the invitation ticket - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_organization_response_content.py b/src/auth0/management/types/create_organization_response_content.py deleted file mode 100644 index 40f805d8..00000000 --- a/src/auth0/management/types/create_organization_response_content.py +++ /dev/null @@ -1,50 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .organization_branding import OrganizationBranding -from .organization_client_association import OrganizationClientAssociation -from .organization_enabled_connection import OrganizationEnabledConnection -from .organization_metadata import OrganizationMetadata -from .organization_third_party_client_access_enum import OrganizationThirdPartyClientAccessEnum -from .token_quota import TokenQuota - - -class CreateOrganizationResponseContent(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - Organization identifier. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The name of this organization. - """ - - display_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Friendly name of this organization. - """ - - branding: typing.Optional[OrganizationBranding] = None - metadata: typing.Optional[OrganizationMetadata] = None - token_quota: typing.Optional[TokenQuota] = None - third_party_client_access: typing.Optional[OrganizationThirdPartyClientAccessEnum] = None - is_app_entitlement_active: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether app entitlement is active for this organization. - """ - - client: typing.Optional[OrganizationClientAssociation] = None - enabled_connections: typing.Optional[typing.List[OrganizationEnabledConnection]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_phone_provider_send_test_response_content.py b/src/auth0/management/types/create_phone_provider_send_test_response_content.py deleted file mode 100644 index cacac88b..00000000 --- a/src/auth0/management/types/create_phone_provider_send_test_response_content.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class CreatePhoneProviderSendTestResponseContent(UniversalBaseModel): - code: typing.Optional[float] = pydantic.Field(default=None) - """ - The status code of the operation. - """ - - message: typing.Optional[str] = pydantic.Field(default=None) - """ - The description of the operation status. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_phone_template_response_content.py b/src/auth0/management/types/create_phone_template_response_content.py deleted file mode 100644 index a7c5bffd..00000000 --- a/src/auth0/management/types/create_phone_template_response_content.py +++ /dev/null @@ -1,30 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .phone_template_content import PhoneTemplateContent -from .phone_template_notification_type_enum import PhoneTemplateNotificationTypeEnum - - -class CreatePhoneTemplateResponseContent(UniversalBaseModel): - id: typing.Optional[str] = None - channel: typing.Optional[str] = None - customizable: typing.Optional[bool] = None - tenant: typing.Optional[str] = None - content: PhoneTemplateContent - type: PhoneTemplateNotificationTypeEnum - disabled: bool = pydantic.Field() - """ - Whether the template is enabled (false) or disabled (true). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_phone_template_test_notification_response_content.py b/src/auth0/management/types/create_phone_template_test_notification_response_content.py deleted file mode 100644 index 8c1614f9..00000000 --- a/src/auth0/management/types/create_phone_template_test_notification_response_content.py +++ /dev/null @@ -1,19 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class CreatePhoneTemplateTestNotificationResponseContent(UniversalBaseModel): - message: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_public_key_device_credential_response_content.py b/src/auth0/management/types/create_public_key_device_credential_response_content.py deleted file mode 100644 index 1870d982..00000000 --- a/src/auth0/management/types/create_public_key_device_credential_response_content.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class CreatePublicKeyDeviceCredentialResponseContent(UniversalBaseModel): - id: str = pydantic.Field() - """ - The credential's identifier - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_rate_limit_policy_response_content.py b/src/auth0/management/types/create_rate_limit_policy_response_content.py deleted file mode 100644 index 2a90db38..00000000 --- a/src/auth0/management/types/create_rate_limit_policy_response_content.py +++ /dev/null @@ -1,44 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .rate_limit_policy_configuration import RateLimitPolicyConfiguration -from .rate_limit_policy_consumer_enum import RateLimitPolicyConsumerEnum -from .rate_limit_policy_resource_enum import RateLimitPolicyResourceEnum - - -class CreateRateLimitPolicyResponseContent(UniversalBaseModel): - id: str = pydantic.Field() - """ - Unique identifier for the Rate Limit Policy. - """ - - resource: RateLimitPolicyResourceEnum - consumer: RateLimitPolicyConsumerEnum - consumer_selector: str = pydantic.Field() - """ - Identifier or category within the consumer to which the policy applies. Supported values: `client_id:` to target a specific client by ID, `client_id:` to target a CIMD client by URI, `cimd_clients` to target all CIMD clients, `third_party_clients` to target all third-party clients, or `default` to apply the policy to any consumer identifier not otherwise explicitly targeted. - """ - - configuration: RateLimitPolicyConfiguration - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The date and time when the rate limit policy was created. - """ - - updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The date and time when the rate limit policy was last updated. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_resource_server_response_content.py b/src/auth0/management/types/create_resource_server_response_content.py deleted file mode 100644 index b9066934..00000000 --- a/src/auth0/management/types/create_resource_server_response_content.py +++ /dev/null @@ -1,120 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .resource_server_access_token import ResourceServerAccessToken -from .resource_server_agent_subject_claims_response_enum import ResourceServerAgentSubjectClaimsResponseEnum -from .resource_server_authorization_policy import ResourceServerAuthorizationPolicy -from .resource_server_consent_policy_enum import ResourceServerConsentPolicyEnum -from .resource_server_proof_of_possession import ResourceServerProofOfPossession -from .resource_server_scope import ResourceServerScope -from .resource_server_subject_type_authorization import ResourceServerSubjectTypeAuthorization -from .resource_server_token_dialect_response_enum import ResourceServerTokenDialectResponseEnum -from .resource_server_token_encryption import ResourceServerTokenEncryption -from .resource_server_type_enum import ResourceServerTypeEnum -from .signing_algorithm_enum import SigningAlgorithmEnum - - -class CreateResourceServerResponseContent(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of the API (resource server). - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Friendly name for this resource server. Can not contain `<` or `>` characters. - """ - - is_system: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this is an Auth0 system API (true) or a custom API (false). - """ - - identifier: typing.Optional[str] = pydantic.Field(default=None) - """ - Unique identifier for the API used as the audience parameter on authorization calls. Can not be changed once set. - """ - - scopes: typing.Optional[typing.List[ResourceServerScope]] = pydantic.Field(default=None) - """ - List of permissions (scopes) that this API uses. - """ - - signing_alg: typing.Optional[SigningAlgorithmEnum] = None - signing_secret: typing.Optional[str] = pydantic.Field(default=None) - """ - Secret used to sign tokens when using symmetric algorithms (HS256). - """ - - allow_offline_access: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether refresh tokens can be issued for this API (true) or not (false). - """ - - allow_online_access: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether Online Refresh Tokens can be issued for this API (true) or not (false). - """ - - allow_online_access_with_ephemeral_sessions: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether Online Refresh Tokens can be issued even when sessions are configured as ephemeral (true) or not (false). - """ - - skip_consent_for_verifiable_first_party_clients: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether to skip user consent for applications flagged as first party (true) or not (false). - """ - - token_lifetime: typing.Optional[int] = pydantic.Field(default=None) - """ - Expiration value (in seconds) for access tokens issued for this API from the token endpoint. - """ - - token_lifetime_for_web: typing.Optional[int] = pydantic.Field(default=None) - """ - Expiration value (in seconds) for access tokens issued for this API via Implicit or Hybrid Flows. Cannot be greater than the `token_lifetime` value. - """ - - enforce_policies: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether authorization polices are enforced (true) or unenforced (false). - """ - - token_lifetime_for_anonymous_access_tokens: typing.Optional[int] = pydantic.Field(default=None) - """ - Expiration value (in seconds) for anonymous-session access tokens issued for this API. - """ - - token_dialect: typing.Optional[ResourceServerTokenDialectResponseEnum] = None - access_token: typing.Optional[ResourceServerAccessToken] = None - token_encryption: typing.Optional[ResourceServerTokenEncryption] = None - consent_policy: typing.Optional[ResourceServerConsentPolicyEnum] = None - require_consent_non_repudiation: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true, the resource server requires every consent approval to be digitally signed, so the approver cannot later deny a consent they granted. When false, consent decisions do not need a signature. Defaults to false. A configured value is still returned even after the related entitlement is disabled. - """ - - authorization_details: typing.Optional[typing.List[typing.Any]] = None - proof_of_possession: typing.Optional[ResourceServerProofOfPossession] = None - subject_type_authorization: typing.Optional[ResourceServerSubjectTypeAuthorization] = None - authorization_policy: typing.Optional[ResourceServerAuthorizationPolicy] = None - client_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The client ID of the client that this resource server is linked to - """ - - agent_subject_claims: typing.Optional[ResourceServerAgentSubjectClaimsResponseEnum] = None - type: typing.Optional[ResourceServerTypeEnum] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_role_response_content.py b/src/auth0/management/types/create_role_response_content.py deleted file mode 100644 index 9137a164..00000000 --- a/src/auth0/management/types/create_role_response_content.py +++ /dev/null @@ -1,37 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .role_owner_id import RoleOwnerId -from .role_type_enum import RoleTypeEnum - - -class CreateRoleResponseContent(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID for this role. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of this role. - """ - - description: typing.Optional[str] = pydantic.Field(default=None) - """ - Description of this role. - """ - - type: typing.Optional[RoleTypeEnum] = None - owner_id: typing.Optional[RoleOwnerId] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_rule_response_content.py b/src/auth0/management/types/create_rule_response_content.py deleted file mode 100644 index 2c6a05ac..00000000 --- a/src/auth0/management/types/create_rule_response_content.py +++ /dev/null @@ -1,47 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class CreateRuleResponseContent(UniversalBaseModel): - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of this rule. - """ - - id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of this rule. - """ - - enabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether the rule is enabled (true), or disabled (false). - """ - - script: typing.Optional[str] = pydantic.Field(default=None) - """ - Code to be executed when this rule runs. - """ - - order: typing.Optional[float] = pydantic.Field(default=None) - """ - Order that this rule should execute in relative to other rules. Lower-valued rules execute first. - """ - - stage: typing.Optional[str] = pydantic.Field(default=None) - """ - Execution stage of this rule. Can be `login_success`, `login_failure`, or `pre_authorize`. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_scim_configuration_request_content.py b/src/auth0/management/types/create_scim_configuration_request_content.py deleted file mode 100644 index 874268d2..00000000 --- a/src/auth0/management/types/create_scim_configuration_request_content.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .scim_mapping_item import ScimMappingItem - - -class CreateScimConfigurationRequestContent(UniversalBaseModel): - user_id_attribute: typing.Optional[str] = pydantic.Field(default=None) - """ - User ID attribute for generating unique user ids - """ - - mapping: typing.Optional[typing.List[ScimMappingItem]] = pydantic.Field(default=None) - """ - The mapping between auth0 and SCIM - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_scim_configuration_response_content.py b/src/auth0/management/types/create_scim_configuration_response_content.py deleted file mode 100644 index dd14accc..00000000 --- a/src/auth0/management/types/create_scim_configuration_response_content.py +++ /dev/null @@ -1,59 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .scim_mapping_item import ScimMappingItem - - -class CreateScimConfigurationResponseContent(UniversalBaseModel): - connection_id: str = pydantic.Field() - """ - The connection's identifier - """ - - connection_name: str = pydantic.Field() - """ - The connection's name - """ - - strategy: str = pydantic.Field() - """ - The connection's strategy - """ - - tenant_name: str = pydantic.Field() - """ - The tenant's name - """ - - user_id_attribute: str = pydantic.Field() - """ - User ID attribute for generating unique user ids - """ - - mapping: typing.List[ScimMappingItem] = pydantic.Field() - """ - The mapping between auth0 and SCIM - """ - - created_at: dt.datetime = pydantic.Field() - """ - The ISO 8601 date and time the SCIM configuration was created at - """ - - updated_on: dt.datetime = pydantic.Field() - """ - The ISO 8601 date and time the SCIM configuration was last updated on - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_scim_token_response_content.py b/src/auth0/management/types/create_scim_token_response_content.py deleted file mode 100644 index d00dde3c..00000000 --- a/src/auth0/management/types/create_scim_token_response_content.py +++ /dev/null @@ -1,42 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class CreateScimTokenResponseContent(UniversalBaseModel): - token_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The token's identifier - """ - - token: typing.Optional[str] = pydantic.Field(default=None) - """ - The scim client's token - """ - - scopes: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - The scopes of the scim token - """ - - created_at: typing.Optional[str] = pydantic.Field(default=None) - """ - The token's created at timestamp - """ - - valid_until: typing.Optional[str] = pydantic.Field(default=None) - """ - The token's valid until at timestamp - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_segment_response_content.py b/src/auth0/management/types/create_segment_response_content.py deleted file mode 100644 index a6404cfa..00000000 --- a/src/auth0/management/types/create_segment_response_content.py +++ /dev/null @@ -1,30 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .segment_rule import SegmentRule -from .segment_status_enum import SegmentStatusEnum -from .segment_type_enum import SegmentTypeEnum - - -class CreateSegmentResponseContent(UniversalBaseModel): - id: str - name: str - description: typing.Optional[str] = None - type: SegmentTypeEnum - status: SegmentStatusEnum - rules: typing.List[SegmentRule] - created_at: dt.datetime - updated_at: dt.datetime - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_self_service_profile_response_content.py b/src/auth0/management/types/create_self_service_profile_response_content.py deleted file mode 100644 index 28a9aad9..00000000 --- a/src/auth0/management/types/create_self_service_profile_response_content.py +++ /dev/null @@ -1,64 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .self_service_profile_allowed_strategy_enum import SelfServiceProfileAllowedStrategyEnum -from .self_service_profile_branding_properties import SelfServiceProfileBrandingProperties -from .self_service_profile_user_attribute import SelfServiceProfileUserAttribute - - -class CreateSelfServiceProfileResponseContent(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - The unique ID of the self-service Profile. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The name of the self-service Profile. - """ - - description: typing.Optional[str] = pydantic.Field(default=None) - """ - The description of the self-service Profile. - """ - - user_attributes: typing.Optional[typing.List[SelfServiceProfileUserAttribute]] = pydantic.Field(default=None) - """ - List of attributes to be mapped that will be shown to the user during the Self-Service Enterprise Configuration flow. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The time when this self-service Profile was created. - """ - - updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The time when this self-service Profile was updated. - """ - - branding: typing.Optional[SelfServiceProfileBrandingProperties] = None - allowed_strategies: typing.Optional[typing.List[SelfServiceProfileAllowedStrategyEnum]] = pydantic.Field( - default=None - ) - """ - List of IdP strategies that will be shown to users during the Self-Service Enterprise Configuration flow. Possible values: [`oidc`, `samlp`, `waad`, `google-apps`, `adfs`, `okta`, `auth0-samlp`, `okta-samlp`, `keycloak-samlp`, `pingfederate`] - """ - - user_attribute_profile_id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of the user-attribute-profile to associate with this self-service profile. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_self_service_profile_sso_ticket_response_content.py b/src/auth0/management/types/create_self_service_profile_sso_ticket_response_content.py deleted file mode 100644 index d74972da..00000000 --- a/src/auth0/management/types/create_self_service_profile_sso_ticket_response_content.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class CreateSelfServiceProfileSsoTicketResponseContent(UniversalBaseModel): - ticket: typing.Optional[str] = pydantic.Field(default=None) - """ - The URL for the created ticket. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_token_exchange_profile_response_content.py b/src/auth0/management/types/create_token_exchange_profile_response_content.py deleted file mode 100644 index 3630e8a6..00000000 --- a/src/auth0/management/types/create_token_exchange_profile_response_content.py +++ /dev/null @@ -1,50 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .token_exchange_profile_type_enum import TokenExchangeProfileTypeEnum - - -class CreateTokenExchangeProfileResponseContent(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - The unique ID of the token exchange profile. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Friendly name of this profile. - """ - - subject_token_type: typing.Optional[str] = pydantic.Field(default=None) - """ - Subject token type for this profile. When receiving a token exchange request on the Authentication API, the corresponding token exchange profile with a matching subject_token_type will be executed. This must be a URI. - """ - - action_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The ID of the Custom Token Exchange action to execute for this profile, in order to validate the subject_token. The action must use the custom-token-exchange trigger. - """ - - type: typing.Optional[TokenExchangeProfileTypeEnum] = None - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The time when this profile was created. - """ - - updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The time when this profile was updated. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_token_quota.py b/src/auth0/management/types/create_token_quota.py deleted file mode 100644 index 749c58cb..00000000 --- a/src/auth0/management/types/create_token_quota.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .token_quota_client_credentials import TokenQuotaClientCredentials - - -class CreateTokenQuota(UniversalBaseModel): - client_credentials: TokenQuotaClientCredentials - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_user_attribute_profile_response_content.py b/src/auth0/management/types/create_user_attribute_profile_response_content.py deleted file mode 100644 index 05a1b7bf..00000000 --- a/src/auth0/management/types/create_user_attribute_profile_response_content.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .user_attribute_profile_id import UserAttributeProfileId -from .user_attribute_profile_name import UserAttributeProfileName -from .user_attribute_profile_user_attributes import UserAttributeProfileUserAttributes -from .user_attribute_profile_user_id import UserAttributeProfileUserId - - -class CreateUserAttributeProfileResponseContent(UniversalBaseModel): - id: typing.Optional[UserAttributeProfileId] = None - name: typing.Optional[UserAttributeProfileName] = None - user_id: typing.Optional[UserAttributeProfileUserId] = None - user_attributes: typing.Optional[UserAttributeProfileUserAttributes] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_user_authentication_method_response_content.py b/src/auth0/management/types/create_user_authentication_method_response_content.py deleted file mode 100644 index 6b65538d..00000000 --- a/src/auth0/management/types/create_user_authentication_method_response_content.py +++ /dev/null @@ -1,109 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .created_user_authentication_method_type_enum import CreatedUserAuthenticationMethodTypeEnum -from .credential_device_type_enum import CredentialDeviceTypeEnum -from .preferred_authentication_method_enum import PreferredAuthenticationMethodEnum -from .user_authentication_method_properties import UserAuthenticationMethodProperties - - -class CreateUserAuthenticationMethodResponseContent(UniversalBaseModel): - """ - The successfully created authentication method. - """ - - id: typing.Optional[str] = pydantic.Field(default=None) - """ - The ID of the newly created authentication method (automatically generated by the application) - """ - - type: CreatedUserAuthenticationMethodTypeEnum - name: typing.Optional[str] = pydantic.Field(default=None) - """ - A human-readable label to identify the authentication method. - """ - - totp_secret: typing.Optional[str] = pydantic.Field(default=None) - """ - Base32 encoded secret for TOTP generation - """ - - phone_number: typing.Optional[str] = pydantic.Field(default=None) - """ - Applies to phone authentication methods only. The destination phone number used to send verification codes via text and voice. - """ - - email: typing.Optional[str] = pydantic.Field(default=None) - """ - Applies to email authentication methods only. The email address used to send verification messages. - """ - - authentication_methods: typing.Optional[typing.List[UserAuthenticationMethodProperties]] = None - preferred_authentication_method: typing.Optional[PreferredAuthenticationMethodEnum] = pydantic.Field(default=None) - """ - Preferred phone authentication method - """ - - key_id: typing.Optional[str] = pydantic.Field(default=None) - """ - Applies to webauthn authenticators only. The id of the credential. - """ - - public_key: typing.Optional[str] = pydantic.Field(default=None) - """ - Applies to webauthn authenticators only. The public key. - """ - - aaguid: typing.Optional[str] = pydantic.Field(default=None) - """ - Applies to passkeys only. Authenticator Attestation Globally Unique Identifier. - """ - - relying_party_identifier: typing.Optional[str] = pydantic.Field(default=None) - """ - Applies to webauthn authenticators only. The relying party identifier. - """ - - credential_device_type: typing.Optional[CredentialDeviceTypeEnum] = None - credential_backed_up: typing.Optional[bool] = pydantic.Field(default=None) - """ - Applies to passkeys only. Whether the credential was backed up. - """ - - identity_user_id: typing.Optional[str] = pydantic.Field(default=None) - """ - Applies to passkeys only. The ID of the user identity linked with the authentication method. - """ - - user_agent: typing.Optional[str] = pydantic.Field(default=None) - """ - Applies to passkeys only. The user-agent of the browser used to create the passkey. - """ - - user_handle: typing.Optional[str] = pydantic.Field(default=None) - """ - Applies to passkeys only. The user handle of the user identity. - """ - - transports: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Applies to passkeys only. The transports used by clients to communicate with the authenticator. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Authentication method creation date - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_user_response_content.py b/src/auth0/management/types/create_user_response_content.py deleted file mode 100644 index d6243fd8..00000000 --- a/src/auth0/management/types/create_user_response_content.py +++ /dev/null @@ -1,128 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .user_app_metadata_schema import UserAppMetadataSchema -from .user_identity_schema import UserIdentitySchema -from .user_metadata_schema import UserMetadataSchema - - -class CreateUserResponseContent(UniversalBaseModel): - user_id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of the user which can be used when interacting with other APIs. - """ - - email: typing.Optional[str] = pydantic.Field(default=None) - """ - Email address of this user. - """ - - email_verified: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this email address is verified (true) or unverified (false). - """ - - username: typing.Optional[str] = pydantic.Field(default=None) - """ - Username of this user. - """ - - phone_number: typing.Optional[str] = pydantic.Field(default=None) - """ - Phone number for this user. Follows the E.164 recommendation. - """ - - phone_verified: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this phone number has been verified (true) or not (false). - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Date and time when this user was created. - """ - - updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Date and time when this user was last updated/modified. - """ - - identities: typing.Optional[typing.List[UserIdentitySchema]] = pydantic.Field(default=None) - """ - Array of user identity objects when accounts are linked. - """ - - app_metadata: typing.Optional[UserAppMetadataSchema] = None - user_metadata: typing.Optional[UserMetadataSchema] = None - picture: typing.Optional[str] = pydantic.Field(default=None) - """ - URL to picture, photo, or avatar of this user. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of this user. - """ - - nickname: typing.Optional[str] = pydantic.Field(default=None) - """ - Preferred nickname or alias of this user. - """ - - multifactor: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - List of multi-factor authentication providers with which this user has enrolled. - """ - - multifactor_last_modified: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Last date and time this user's multi-factor authentication providers were updated. - """ - - last_ip: typing.Optional[str] = pydantic.Field(default=None) - """ - Last IP address from which this user logged in. - """ - - last_login: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Last date and time this user logged in. - """ - - last_password_reset: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Last date and time this user had their password reset. - """ - - logins_count: typing.Optional[int] = pydantic.Field(default=None) - """ - Total number of logins this user has performed. - """ - - blocked: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this user was blocked by an administrator (true) or is not (false). - """ - - given_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Given name/first name/forename of this user. - """ - - family_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Family name/last name/surname of this user. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_variation_response_content.py b/src/auth0/management/types/create_variation_response_content.py deleted file mode 100644 index e7da6aeb..00000000 --- a/src/auth0/management/types/create_variation_response_content.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .variation_overrides_map import VariationOverridesMap - - -class CreateVariationResponseContent(UniversalBaseModel): - id: str - feature_flag_id: str - name: str - description: typing.Optional[str] = None - overrides: VariationOverridesMap - created_at: dt.datetime - updated_at: dt.datetime - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_verifiable_credential_template_response_content.py b/src/auth0/management/types/create_verifiable_credential_template_response_content.py deleted file mode 100644 index db071e60..00000000 --- a/src/auth0/management/types/create_verifiable_credential_template_response_content.py +++ /dev/null @@ -1,60 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .mdl_presentation_request import MdlPresentationRequest - - -class CreateVerifiableCredentialTemplateResponseContent(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - The id of the template. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The name of the template. - """ - - type: typing.Optional[str] = pydantic.Field(default=None) - """ - The type of the template. - """ - - dialect: typing.Optional[str] = pydantic.Field(default=None) - """ - The dialect of the template. - """ - - presentation: typing.Optional[MdlPresentationRequest] = None - custom_certificate_authority: typing.Optional[str] = pydantic.Field(default=None) - """ - The custom certificate authority. - """ - - well_known_trusted_issuers: typing.Optional[str] = pydantic.Field(default=None) - """ - The well-known trusted issuers, comma separated. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The date and time the template was created. - """ - - updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The date and time the template was created. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/create_verification_email_response_content.py b/src/auth0/management/types/create_verification_email_response_content.py deleted file mode 100644 index 618eb395..00000000 --- a/src/auth0/management/types/create_verification_email_response_content.py +++ /dev/null @@ -1,37 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class CreateVerificationEmailResponseContent(UniversalBaseModel): - status: str = pydantic.Field() - """ - Status of this job. - """ - - type: str = pydantic.Field() - """ - Type of job this is. - """ - - created_at: typing.Optional[str] = pydantic.Field(default=None) - """ - When this job was created. - """ - - id: str = pydantic.Field() - """ - ID of this job. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/created_authentication_method_type_enum.py b/src/auth0/management/types/created_authentication_method_type_enum.py deleted file mode 100644 index 169d5c45..00000000 --- a/src/auth0/management/types/created_authentication_method_type_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CreatedAuthenticationMethodTypeEnum = typing.Union[ - typing.Literal["phone", "email", "totp", "webauthn-roaming"], typing.Any -] diff --git a/src/auth0/management/types/created_user_authentication_method_type_enum.py b/src/auth0/management/types/created_user_authentication_method_type_enum.py deleted file mode 100644 index 50a85b46..00000000 --- a/src/auth0/management/types/created_user_authentication_method_type_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CreatedUserAuthenticationMethodTypeEnum = typing.Union[ - typing.Literal["phone", "email", "totp", "webauthn-roaming", "passkey"], typing.Any -] diff --git a/src/auth0/management/types/credential_device_type_enum.py b/src/auth0/management/types/credential_device_type_enum.py deleted file mode 100644 index 439155f1..00000000 --- a/src/auth0/management/types/credential_device_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CredentialDeviceTypeEnum = typing.Union[typing.Literal["single_device", "multi_device"], typing.Any] diff --git a/src/auth0/management/types/credential_id.py b/src/auth0/management/types/credential_id.py deleted file mode 100644 index 9c6b44a6..00000000 --- a/src/auth0/management/types/credential_id.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class CredentialId(UniversalBaseModel): - id: str = pydantic.Field() - """ - Credential ID - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/cross_app_access_requesting_app.py b/src/auth0/management/types/cross_app_access_requesting_app.py deleted file mode 100644 index 868b448c..00000000 --- a/src/auth0/management/types/cross_app_access_requesting_app.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class CrossAppAccessRequestingApp(UniversalBaseModel): - """ - Configure the connection to be used as a Requesting Application for Cross App Access. - """ - - active: bool = pydantic.Field() - """ - Set to `true` to enable the connection as a Requesting Application for Cross App Access. On `oidc` connections this requires `options.type` to be `back_channel`. Setting `false` is always accepted, so the role can be turned off even if the tenant or connection no longer supports it. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/cross_app_access_resource_app.py b/src/auth0/management/types/cross_app_access_resource_app.py deleted file mode 100644 index 332785d6..00000000 --- a/src/auth0/management/types/cross_app_access_resource_app.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .cross_app_access_resource_app_status_enum import CrossAppAccessResourceAppStatusEnum - - -class CrossAppAccessResourceApp(UniversalBaseModel): - """ - Cross App Access - Resource App settings that apply to this connection. - """ - - status: CrossAppAccessResourceAppStatusEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/cross_app_access_resource_app_status_enum.py b/src/auth0/management/types/cross_app_access_resource_app_status_enum.py deleted file mode 100644 index a6faf39a..00000000 --- a/src/auth0/management/types/cross_app_access_resource_app_status_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CrossAppAccessResourceAppStatusEnum = typing.Union[typing.Literal["enabled", "disabled"], typing.Any] diff --git a/src/auth0/management/types/csp_directives.py b/src/auth0/management/types/csp_directives.py deleted file mode 100644 index 1256fbab..00000000 --- a/src/auth0/management/types/csp_directives.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CspDirectives = typing.Dict[str, typing.List[str]] -""" -CSP directives map. Keys are directive names, values are arrays of directive values. -""" diff --git a/src/auth0/management/types/csp_flag.py b/src/auth0/management/types/csp_flag.py deleted file mode 100644 index 009249ae..00000000 --- a/src/auth0/management/types/csp_flag.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CspFlag = typing.Union[typing.Literal["upgrade-insecure-requests", "block-all-mixed-content"], typing.Any] diff --git a/src/auth0/management/types/csp_flags.py b/src/auth0/management/types/csp_flags.py deleted file mode 100644 index eff524fa..00000000 --- a/src/auth0/management/types/csp_flags.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .csp_flag import CspFlag - -CspFlags = typing.List[CspFlag] -""" -CSP flags (bare directives without values). -""" diff --git a/src/auth0/management/types/csp_policies.py b/src/auth0/management/types/csp_policies.py deleted file mode 100644 index 29f534b2..00000000 --- a/src/auth0/management/types/csp_policies.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .csp_policy import CspPolicy - -CspPolicies = typing.List[CspPolicy] -""" -Array of CSP policies (enforcing and/or reporting). -""" diff --git a/src/auth0/management/types/csp_policy.py b/src/auth0/management/types/csp_policy.py deleted file mode 100644 index 29572f89..00000000 --- a/src/auth0/management/types/csp_policy.py +++ /dev/null @@ -1,30 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .csp_directives import CspDirectives -from .csp_flags import CspFlags -from .csp_policy_mode import CspPolicyMode -from .csp_policy_reporting import CspPolicyReporting - - -class CspPolicy(UniversalBaseModel): - """ - A single CSP policy with mode, directives, flags, and optional reporting. - """ - - mode: typing.Optional[CspPolicyMode] = None - directives: typing.Optional[CspDirectives] = None - flags: typing.Optional[CspFlags] = None - reporting: typing.Optional[CspPolicyReporting] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/csp_policy_mode.py b/src/auth0/management/types/csp_policy_mode.py deleted file mode 100644 index 0023d028..00000000 --- a/src/auth0/management/types/csp_policy_mode.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CspPolicyMode = typing.Union[typing.Literal["enforcing", "reporting"], typing.Any] diff --git a/src/auth0/management/types/csp_policy_reporting.py b/src/auth0/management/types/csp_policy_reporting.py deleted file mode 100644 index 50e93376..00000000 --- a/src/auth0/management/types/csp_policy_reporting.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class CspPolicyReporting(UniversalBaseModel): - """ - Per-policy reporting configuration. - """ - - report_uri: typing.Optional[str] = pydantic.Field(default=None) - """ - HTTPS endpoint for CSP violation reports. - """ - - report_to_group: typing.Optional[str] = pydantic.Field(default=None) - """ - Report-To group name for modern reporting. Letters, digits, underscores and hyphens only; enforced on write by the request validator. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/csp_report_to.py b/src/auth0/management/types/csp_report_to.py deleted file mode 100644 index 6f57b5e3..00000000 --- a/src/auth0/management/types/csp_report_to.py +++ /dev/null @@ -1,34 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .csp_report_to_endpoints import CspReportToEndpoints - - -class CspReportTo(UniversalBaseModel): - """ - Report-To header configuration. - """ - - group: typing.Optional[str] = pydantic.Field(default=None) - """ - Reporting group identifier. - """ - - max_age: typing.Optional[int] = pydantic.Field(default=None) - """ - Maximum age in seconds for the Report-To header. - """ - - endpoints: typing.Optional[CspReportToEndpoints] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/csp_report_to_endpoint.py b/src/auth0/management/types/csp_report_to_endpoint.py deleted file mode 100644 index cc207b62..00000000 --- a/src/auth0/management/types/csp_report_to_endpoint.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class CspReportToEndpoint(UniversalBaseModel): - """ - A single reporting endpoint. - """ - - url: typing.Optional[str] = pydantic.Field(default=None) - """ - HTTPS URL for the reporting endpoint. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/csp_report_to_endpoints.py b/src/auth0/management/types/csp_report_to_endpoints.py deleted file mode 100644 index b6855986..00000000 --- a/src/auth0/management/types/csp_report_to_endpoints.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .csp_report_to_endpoint import CspReportToEndpoint - -CspReportToEndpoints = typing.List[CspReportToEndpoint] -""" -Array of reporting endpoints. -""" diff --git a/src/auth0/management/types/csp_reporting_endpoints.py b/src/auth0/management/types/csp_reporting_endpoints.py deleted file mode 100644 index 346eb20a..00000000 --- a/src/auth0/management/types/csp_reporting_endpoints.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CspReportingEndpoints = typing.Dict[str, str] -""" -Reporting-Endpoints header configuration (key-value pairs). -""" diff --git a/src/auth0/management/types/csp_reporting_infrastructure.py b/src/auth0/management/types/csp_reporting_infrastructure.py deleted file mode 100644 index 5710abaf..00000000 --- a/src/auth0/management/types/csp_reporting_infrastructure.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .csp_report_to import CspReportTo -from .csp_reporting_endpoints import CspReportingEndpoints - - -class CspReportingInfrastructure(UniversalBaseModel): - """ - Global reporting infrastructure configuration. - """ - - report_to: typing.Optional[CspReportTo] = None - reporting_endpoints: typing.Optional[CspReportingEndpoints] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/custom_domain.py b/src/auth0/management/types/custom_domain.py deleted file mode 100644 index 1165830f..00000000 --- a/src/auth0/management/types/custom_domain.py +++ /dev/null @@ -1,67 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .custom_domain_status_filter_enum import CustomDomainStatusFilterEnum -from .custom_domain_type_enum import CustomDomainTypeEnum -from .domain_certificate import DomainCertificate -from .domain_metadata import DomainMetadata -from .domain_verification import DomainVerification - - -class CustomDomain(UniversalBaseModel): - custom_domain_id: str = pydantic.Field() - """ - ID of the custom domain. - """ - - domain: str = pydantic.Field() - """ - Domain name. - """ - - primary: bool = pydantic.Field() - """ - Whether this is a primary domain (true) or not (false). - """ - - is_default: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this is the default custom domain (true) or not (false). - """ - - status: CustomDomainStatusFilterEnum - type: CustomDomainTypeEnum - origin_domain_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Intermediate address. - """ - - verification: typing.Optional[DomainVerification] = None - custom_client_ip_header: typing.Optional[str] = pydantic.Field(default=None) - """ - The HTTP header to fetch the client's IP address - """ - - tls_policy: typing.Optional[str] = pydantic.Field(default=None) - """ - The TLS version policy - """ - - domain_metadata: typing.Optional[DomainMetadata] = None - certificate: typing.Optional[DomainCertificate] = None - relying_party_identifier: typing.Optional[str] = pydantic.Field(default=None) - """ - Relying Party ID (rpId) to be used for Passkeys on this custom domain. If not present, the full domain will be used. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/custom_domain_custom_client_ip_header.py b/src/auth0/management/types/custom_domain_custom_client_ip_header.py deleted file mode 100644 index afef5a63..00000000 --- a/src/auth0/management/types/custom_domain_custom_client_ip_header.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .custom_domain_custom_client_ip_header_enum import CustomDomainCustomClientIpHeaderEnum - -CustomDomainCustomClientIpHeader = typing.Optional[CustomDomainCustomClientIpHeaderEnum] diff --git a/src/auth0/management/types/custom_domain_custom_client_ip_header_enum.py b/src/auth0/management/types/custom_domain_custom_client_ip_header_enum.py deleted file mode 100644 index c3696764..00000000 --- a/src/auth0/management/types/custom_domain_custom_client_ip_header_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CustomDomainCustomClientIpHeaderEnum = typing.Union[ - typing.Literal["true-client-ip", "cf-connecting-ip", "x-forwarded-for", "x-azure-clientip", ""], typing.Any -] diff --git a/src/auth0/management/types/custom_domain_provisioning_type_enum.py b/src/auth0/management/types/custom_domain_provisioning_type_enum.py deleted file mode 100644 index 5d69eb64..00000000 --- a/src/auth0/management/types/custom_domain_provisioning_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CustomDomainProvisioningTypeEnum = typing.Union[typing.Literal["auth0_managed_certs", "self_managed_certs"], typing.Any] diff --git a/src/auth0/management/types/custom_domain_status_filter_enum.py b/src/auth0/management/types/custom_domain_status_filter_enum.py deleted file mode 100644 index 7c6c05b4..00000000 --- a/src/auth0/management/types/custom_domain_status_filter_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CustomDomainStatusFilterEnum = typing.Union[typing.Literal["pending_verification", "ready", "failed"], typing.Any] diff --git a/src/auth0/management/types/custom_domain_tls_policy_enum.py b/src/auth0/management/types/custom_domain_tls_policy_enum.py deleted file mode 100644 index 6e5d06f3..00000000 --- a/src/auth0/management/types/custom_domain_tls_policy_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CustomDomainTlsPolicyEnum = typing.Union[typing.Literal["recommended"], typing.Any] diff --git a/src/auth0/management/types/custom_domain_type_enum.py b/src/auth0/management/types/custom_domain_type_enum.py deleted file mode 100644 index e3c0be36..00000000 --- a/src/auth0/management/types/custom_domain_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CustomDomainTypeEnum = typing.Union[typing.Literal["auth0_managed_certs", "self_managed_certs"], typing.Any] diff --git a/src/auth0/management/types/custom_domain_verification_method_enum.py b/src/auth0/management/types/custom_domain_verification_method_enum.py deleted file mode 100644 index 3e375799..00000000 --- a/src/auth0/management/types/custom_domain_verification_method_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CustomDomainVerificationMethodEnum = typing.Union[typing.Literal["txt"], typing.Any] diff --git a/src/auth0/management/types/custom_provider_configuration.py b/src/auth0/management/types/custom_provider_configuration.py deleted file mode 100644 index 9c127225..00000000 --- a/src/auth0/management/types/custom_provider_configuration.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .custom_provider_delivery_method_enum import CustomProviderDeliveryMethodEnum - - -class CustomProviderConfiguration(UniversalBaseModel): - delivery_methods: typing.List[CustomProviderDeliveryMethodEnum] - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/custom_provider_delivery_method_enum.py b/src/auth0/management/types/custom_provider_delivery_method_enum.py deleted file mode 100644 index e6050ce0..00000000 --- a/src/auth0/management/types/custom_provider_delivery_method_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CustomProviderDeliveryMethodEnum = typing.Union[typing.Literal["text", "voice"], typing.Any] diff --git a/src/auth0/management/types/custom_signing_key_algorithm_enum.py b/src/auth0/management/types/custom_signing_key_algorithm_enum.py deleted file mode 100644 index 305cf667..00000000 --- a/src/auth0/management/types/custom_signing_key_algorithm_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CustomSigningKeyAlgorithmEnum = typing.Union[ - typing.Literal["RS256", "RS384", "RS512", "ES256", "ES384", "ES512", "PS256", "PS384", "PS512"], typing.Any -] diff --git a/src/auth0/management/types/custom_signing_key_curve_enum.py b/src/auth0/management/types/custom_signing_key_curve_enum.py deleted file mode 100644 index 5e33ef2a..00000000 --- a/src/auth0/management/types/custom_signing_key_curve_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CustomSigningKeyCurveEnum = typing.Union[typing.Literal["P-256", "P-384", "P-521"], typing.Any] diff --git a/src/auth0/management/types/custom_signing_key_jwk.py b/src/auth0/management/types/custom_signing_key_jwk.py deleted file mode 100644 index 6d89ea43..00000000 --- a/src/auth0/management/types/custom_signing_key_jwk.py +++ /dev/null @@ -1,96 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .custom_signing_key_algorithm_enum import CustomSigningKeyAlgorithmEnum -from .custom_signing_key_curve_enum import CustomSigningKeyCurveEnum -from .custom_signing_key_operation_enum import CustomSigningKeyOperationEnum -from .custom_signing_key_type_enum import CustomSigningKeyTypeEnum -from .custom_signing_key_use_enum import CustomSigningKeyUseEnum - - -class CustomSigningKeyJwk(UniversalBaseModel): - """ - JWK representing a custom public signing key. - """ - - kty: CustomSigningKeyTypeEnum - kid: typing.Optional[str] = pydantic.Field(default=None) - """ - Key identifier - """ - - use: typing.Optional[CustomSigningKeyUseEnum] = None - key_ops: typing.Optional[typing.List[CustomSigningKeyOperationEnum]] = pydantic.Field(default=None) - """ - Key operations - """ - - alg: typing.Optional[CustomSigningKeyAlgorithmEnum] = None - n: typing.Optional[str] = pydantic.Field(default=None) - """ - Key modulus - """ - - e: typing.Optional[str] = pydantic.Field(default=None) - """ - Key exponent - """ - - crv: typing.Optional[CustomSigningKeyCurveEnum] = None - x: typing.Optional[str] = pydantic.Field(default=None) - """ - X coordinate - """ - - y: typing.Optional[str] = pydantic.Field(default=None) - """ - Y coordinate - """ - - x_5_u: typing_extensions.Annotated[ - typing.Optional[str], FieldMetadata(alias="x5u"), pydantic.Field(alias="x5u", description="X.509 URL") - ] = None - """ - X.509 URL - """ - - x_5_c: typing_extensions.Annotated[ - typing.Optional[typing.List[str]], - FieldMetadata(alias="x5c"), - pydantic.Field(alias="x5c", description="X.509 certificate chain"), - ] = None - """ - X.509 certificate chain - """ - - x_5_t: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="x5t"), - pydantic.Field(alias="x5t", description="X.509 certificate SHA-1 thumbprint"), - ] = None - """ - X.509 certificate SHA-1 thumbprint - """ - - x_5_t_s_256: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="x5t#S256"), - pydantic.Field(alias="x5t#S256", description="X.509 certificate SHA-256 thumbprint"), - ] = None - """ - X.509 certificate SHA-256 thumbprint - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/custom_signing_key_operation_enum.py b/src/auth0/management/types/custom_signing_key_operation_enum.py deleted file mode 100644 index cce445c7..00000000 --- a/src/auth0/management/types/custom_signing_key_operation_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CustomSigningKeyOperationEnum = typing.Union[typing.Literal["verify"], typing.Any] diff --git a/src/auth0/management/types/custom_signing_key_type_enum.py b/src/auth0/management/types/custom_signing_key_type_enum.py deleted file mode 100644 index 29b960fe..00000000 --- a/src/auth0/management/types/custom_signing_key_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CustomSigningKeyTypeEnum = typing.Union[typing.Literal["EC", "RSA"], typing.Any] diff --git a/src/auth0/management/types/custom_signing_key_use_enum.py b/src/auth0/management/types/custom_signing_key_use_enum.py deleted file mode 100644 index 33c8f926..00000000 --- a/src/auth0/management/types/custom_signing_key_use_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CustomSigningKeyUseEnum = typing.Union[typing.Literal["sig"], typing.Any] diff --git a/src/auth0/management/types/daily_stats.py b/src/auth0/management/types/daily_stats.py deleted file mode 100644 index 89bd7cd9..00000000 --- a/src/auth0/management/types/daily_stats.py +++ /dev/null @@ -1,47 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class DailyStats(UniversalBaseModel): - date: typing.Optional[str] = pydantic.Field(default=None) - """ - Date these events occurred in ISO 8601 format. - """ - - logins: typing.Optional[int] = pydantic.Field(default=None) - """ - Number of logins on this date. - """ - - signups: typing.Optional[int] = pydantic.Field(default=None) - """ - Number of signups on this date. - """ - - leaked_passwords: typing.Optional[int] = pydantic.Field(default=None) - """ - Number of breached-password detections on this date (subscription required). - """ - - updated_at: typing.Optional[str] = pydantic.Field(default=None) - """ - Date and time this stats entry was last updated in ISO 8601 format. - """ - - created_at: typing.Optional[str] = pydantic.Field(default=None) - """ - Approximate date and time the first event occurred in ISO 8601 format. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/default_config_enum.py b/src/auth0/management/types/default_config_enum.py deleted file mode 100644 index 0916c304..00000000 --- a/src/auth0/management/types/default_config_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -DefaultConfigEnum = typing.Union[typing.Literal["tenant", "flag"], typing.Any] diff --git a/src/auth0/management/types/default_method_email_identifier_enum.py b/src/auth0/management/types/default_method_email_identifier_enum.py deleted file mode 100644 index 27dc8ba2..00000000 --- a/src/auth0/management/types/default_method_email_identifier_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -DefaultMethodEmailIdentifierEnum = typing.Union[typing.Literal["password", "email_otp"], typing.Any] diff --git a/src/auth0/management/types/default_method_phone_number_identifier_enum.py b/src/auth0/management/types/default_method_phone_number_identifier_enum.py deleted file mode 100644 index a9d38665..00000000 --- a/src/auth0/management/types/default_method_phone_number_identifier_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -DefaultMethodPhoneNumberIdentifierEnum = typing.Union[typing.Literal["password", "phone_otp"], typing.Any] diff --git a/src/auth0/management/types/default_token_quota.py b/src/auth0/management/types/default_token_quota.py deleted file mode 100644 index 1cca6822..00000000 --- a/src/auth0/management/types/default_token_quota.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .token_quota_configuration import TokenQuotaConfiguration - - -class DefaultTokenQuota(UniversalBaseModel): - """ - Token Quota configuration, to configure quotas for token issuance for clients and organizations. Applied to all clients and organizations unless overridden in individual client or organization settings. - """ - - clients: typing.Optional[TokenQuotaConfiguration] = None - organizations: typing.Optional[TokenQuotaConfiguration] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/delete_hook_secret_request_content.py b/src/auth0/management/types/delete_hook_secret_request_content.py deleted file mode 100644 index 98a0290c..00000000 --- a/src/auth0/management/types/delete_hook_secret_request_content.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -DeleteHookSecretRequestContent = typing.List[str] -""" -Array of secret names to delete. -""" diff --git a/src/auth0/management/types/delete_user_identity_response_content.py b/src/auth0/management/types/delete_user_identity_response_content.py deleted file mode 100644 index 36654eb5..00000000 --- a/src/auth0/management/types/delete_user_identity_response_content.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .delete_user_identity_response_content_item import DeleteUserIdentityResponseContentItem - -DeleteUserIdentityResponseContent = typing.List[DeleteUserIdentityResponseContentItem] -""" -An array of objects with information about the user's identities. -""" diff --git a/src/auth0/management/types/delete_user_identity_response_content_item.py b/src/auth0/management/types/delete_user_identity_response_content_item.py deleted file mode 100644 index ddcb4c5c..00000000 --- a/src/auth0/management/types/delete_user_identity_response_content_item.py +++ /dev/null @@ -1,67 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .user_id import UserId -from .user_profile_data import UserProfileData - - -class DeleteUserIdentityResponseContentItem(UniversalBaseModel): - connection: str = pydantic.Field() - """ - The name of the connection for the identity. - """ - - user_id: UserId = pydantic.Field() - """ - The unique identifier for the user for the identity. - """ - - provider: str = pydantic.Field() - """ - The type of identity provider. - """ - - is_social: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="isSocial"), - pydantic.Field( - alias="isSocial", - description="true if the identity provider is a social provider, falses otherwise", - ), - ] = None - """ - true if the identity provider is a social provider, falses otherwise - """ - - access_token: typing.Optional[str] = pydantic.Field(default=None) - """ - IDP access token returned only if scope read:user_idp_tokens is defined - """ - - access_token_secret: typing.Optional[str] = pydantic.Field(default=None) - """ - IDP access token secret returned only if scope read:user_idp_tokens is defined. - """ - - refresh_token: typing.Optional[str] = pydantic.Field(default=None) - """ - IDP refresh token returned only if scope read:user_idp_tokens is defined. - """ - - profile_data: typing_extensions.Annotated[ - typing.Optional[UserProfileData], FieldMetadata(alias="profileData"), pydantic.Field(alias="profileData") - ] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/deploy_action_response_content.py b/src/auth0/management/types/deploy_action_response_content.py deleted file mode 100644 index 3f8b8064..00000000 --- a/src/auth0/management/types/deploy_action_response_content.py +++ /dev/null @@ -1,97 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .action_base import ActionBase -from .action_error import ActionError -from .action_module_reference import ActionModuleReference -from .action_secret_response import ActionSecretResponse -from .action_trigger import ActionTrigger -from .action_version_build_status_enum import ActionVersionBuildStatusEnum -from .action_version_dependency import ActionVersionDependency - - -class DeployActionResponseContent(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - The unique id of an action version. - """ - - action_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The id of the action to which this version belongs. - """ - - code: typing.Optional[str] = pydantic.Field(default=None) - """ - The source code of this specific version of the action. - """ - - dependencies: typing.Optional[typing.List[ActionVersionDependency]] = pydantic.Field(default=None) - """ - The list of third party npm modules, and their versions, that this specific version depends on. - """ - - deployed: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates if this specific version is the currently one deployed. - """ - - runtime: typing.Optional[str] = pydantic.Field(default=None) - """ - The Node runtime. For example: `node22` - """ - - secrets: typing.Optional[typing.List[ActionSecretResponse]] = pydantic.Field(default=None) - """ - The list of secrets that are included in an action or a version of an action. - """ - - status: typing.Optional[ActionVersionBuildStatusEnum] = None - number: typing.Optional[float] = pydantic.Field(default=None) - """ - The index of this version in list of versions for the action. - """ - - errors: typing.Optional[typing.List[ActionError]] = pydantic.Field(default=None) - """ - Any errors that occurred while the version was being built. - """ - - action: typing.Optional[ActionBase] = None - built_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The time when this version was built successfully. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The time when this version was created. - """ - - updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The time when a version was updated. Versions are never updated externally. Only Auth0 will update an action version as it is being built. - """ - - supported_triggers: typing.Optional[typing.List[ActionTrigger]] = pydantic.Field(default=None) - """ - The list of triggers that this version supports. At this time, a version can only target a single trigger at a time. - """ - - modules: typing.Optional[typing.List[ActionModuleReference]] = pydantic.Field(default=None) - """ - The list of action modules and their versions used by this action version. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/deploy_action_version_request_content.py b/src/auth0/management/types/deploy_action_version_request_content.py deleted file mode 100644 index 191071c3..00000000 --- a/src/auth0/management/types/deploy_action_version_request_content.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class DeployActionVersionRequestContent(UniversalBaseModel): - update_draft: typing.Optional[bool] = pydantic.Field(default=None) - """ - True if the draft of the action should be updated with the reverted version. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/deploy_action_version_response_content.py b/src/auth0/management/types/deploy_action_version_response_content.py deleted file mode 100644 index d6d23711..00000000 --- a/src/auth0/management/types/deploy_action_version_response_content.py +++ /dev/null @@ -1,97 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .action_base import ActionBase -from .action_error import ActionError -from .action_module_reference import ActionModuleReference -from .action_secret_response import ActionSecretResponse -from .action_trigger import ActionTrigger -from .action_version_build_status_enum import ActionVersionBuildStatusEnum -from .action_version_dependency import ActionVersionDependency - - -class DeployActionVersionResponseContent(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - The unique id of an action version. - """ - - action_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The id of the action to which this version belongs. - """ - - code: typing.Optional[str] = pydantic.Field(default=None) - """ - The source code of this specific version of the action. - """ - - dependencies: typing.Optional[typing.List[ActionVersionDependency]] = pydantic.Field(default=None) - """ - The list of third party npm modules, and their versions, that this specific version depends on. - """ - - deployed: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates if this specific version is the currently one deployed. - """ - - runtime: typing.Optional[str] = pydantic.Field(default=None) - """ - The Node runtime. For example: `node22` - """ - - secrets: typing.Optional[typing.List[ActionSecretResponse]] = pydantic.Field(default=None) - """ - The list of secrets that are included in an action or a version of an action. - """ - - status: typing.Optional[ActionVersionBuildStatusEnum] = None - number: typing.Optional[float] = pydantic.Field(default=None) - """ - The index of this version in list of versions for the action. - """ - - errors: typing.Optional[typing.List[ActionError]] = pydantic.Field(default=None) - """ - Any errors that occurred while the version was being built. - """ - - action: typing.Optional[ActionBase] = None - built_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The time when this version was built successfully. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The time when this version was created. - """ - - updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The time when a version was updated. Versions are never updated externally. Only Auth0 will update an action version as it is being built. - """ - - supported_triggers: typing.Optional[typing.List[ActionTrigger]] = pydantic.Field(default=None) - """ - The list of triggers that this version supports. At this time, a version can only target a single trigger at a time. - """ - - modules: typing.Optional[typing.List[ActionModuleReference]] = pydantic.Field(default=None) - """ - The list of action modules and their versions used by this action version. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/device_credential.py b/src/auth0/management/types/device_credential.py deleted file mode 100644 index 7c51025b..00000000 --- a/src/auth0/management/types/device_credential.py +++ /dev/null @@ -1,48 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .device_credential_type_enum import DeviceCredentialTypeEnum - - -class DeviceCredential(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of this device. - """ - - device_name: typing.Optional[str] = pydantic.Field(default=None) - """ - User agent for this device - """ - - device_id: typing.Optional[str] = pydantic.Field(default=None) - """ - Unique identifier for the device. NOTE: This field is generally not populated for refresh_tokens and rotating_refresh_tokens - """ - - type: typing.Optional[DeviceCredentialTypeEnum] = pydantic.Field(default=None) - """ - Type of credential. Can be `public_key`, `refresh_token`, or `rotating_refresh_token`. - """ - - user_id: typing.Optional[str] = pydantic.Field(default=None) - """ - user_id this credential is associated with. - """ - - client_id: typing.Optional[str] = pydantic.Field(default=None) - """ - client_id of the client (application) this credential is for. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/device_credential_public_key_type_enum.py b/src/auth0/management/types/device_credential_public_key_type_enum.py deleted file mode 100644 index 2c8feda3..00000000 --- a/src/auth0/management/types/device_credential_public_key_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -DeviceCredentialPublicKeyTypeEnum = typing.Union[typing.Literal["public_key"], typing.Any] diff --git a/src/auth0/management/types/device_credential_type_enum.py b/src/auth0/management/types/device_credential_type_enum.py deleted file mode 100644 index 20d4ddc9..00000000 --- a/src/auth0/management/types/device_credential_type_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -DeviceCredentialTypeEnum = typing.Union[ - typing.Literal["public_key", "refresh_token", "rotating_refresh_token"], typing.Any -] diff --git a/src/auth0/management/types/directory_provisioning.py b/src/auth0/management/types/directory_provisioning.py deleted file mode 100644 index 5540bdfc..00000000 --- a/src/auth0/management/types/directory_provisioning.py +++ /dev/null @@ -1,71 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .directory_provisioning_mapping_item import DirectoryProvisioningMappingItem -from .synchronize_groups_enum import SynchronizeGroupsEnum - - -class DirectoryProvisioning(UniversalBaseModel): - connection_id: str = pydantic.Field() - """ - The connection's identifier - """ - - connection_name: str = pydantic.Field() - """ - The connection's name - """ - - strategy: str = pydantic.Field() - """ - The connection's strategy - """ - - mapping: typing.List[DirectoryProvisioningMappingItem] = pydantic.Field() - """ - The mapping between Auth0 and IDP user attributes - """ - - synchronize_automatically: bool = pydantic.Field() - """ - Whether periodic automatic synchronization is enabled - """ - - synchronize_groups: typing.Optional[SynchronizeGroupsEnum] = None - created_at: dt.datetime = pydantic.Field() - """ - The timestamp at which the directory provisioning configuration was created - """ - - updated_at: dt.datetime = pydantic.Field() - """ - The timestamp at which the directory provisioning configuration was last updated - """ - - last_synchronization_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The timestamp at which the connection was last synchronized - """ - - last_synchronization_status: typing.Optional[str] = pydantic.Field(default=None) - """ - The status of the last synchronization - """ - - last_synchronization_error: typing.Optional[str] = pydantic.Field(default=None) - """ - The error message of the last synchronization, if any - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/directory_provisioning_mapping_item.py b/src/auth0/management/types/directory_provisioning_mapping_item.py deleted file mode 100644 index 21b6fb29..00000000 --- a/src/auth0/management/types/directory_provisioning_mapping_item.py +++ /dev/null @@ -1,33 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata - - -class DirectoryProvisioningMappingItem(UniversalBaseModel): - auth_0: typing_extensions.Annotated[ - str, - FieldMetadata(alias="auth0"), - pydantic.Field(alias="auth0", description="The field location in the Auth0 schema"), - ] - """ - The field location in the Auth0 schema - """ - - idp: str = pydantic.Field() - """ - The field location in the IDP schema - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/domain_certificate.py b/src/auth0/management/types/domain_certificate.py deleted file mode 100644 index da75177e..00000000 --- a/src/auth0/management/types/domain_certificate.py +++ /dev/null @@ -1,35 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .domain_certificate_authority_enum import DomainCertificateAuthorityEnum -from .domain_certificate_status_enum import DomainCertificateStatusEnum - - -class DomainCertificate(UniversalBaseModel): - """ - Certificate information. This object is relevant only for Custom Domains with Auth0-Managed Certificates. - """ - - status: typing.Optional[DomainCertificateStatusEnum] = None - error_msg: typing.Optional[str] = pydantic.Field(default=None) - """ - A user-friendly error message will be presented if the certificate status is provisioning_failed or renewing_failed. - """ - - certificate_authority: typing.Optional[DomainCertificateAuthorityEnum] = None - renews_before: typing.Optional[str] = pydantic.Field(default=None) - """ - The certificate will be renewed prior to this date. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/domain_certificate_authority_enum.py b/src/auth0/management/types/domain_certificate_authority_enum.py deleted file mode 100644 index 04f2f9ba..00000000 --- a/src/auth0/management/types/domain_certificate_authority_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -DomainCertificateAuthorityEnum = typing.Union[typing.Literal["letsencrypt", "googletrust"], typing.Any] diff --git a/src/auth0/management/types/domain_certificate_status_enum.py b/src/auth0/management/types/domain_certificate_status_enum.py deleted file mode 100644 index a83f469b..00000000 --- a/src/auth0/management/types/domain_certificate_status_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -DomainCertificateStatusEnum = typing.Union[ - typing.Literal["provisioning", "provisioning_failed", "provisioned", "renewing_failed"], typing.Any -] diff --git a/src/auth0/management/types/domain_metadata.py b/src/auth0/management/types/domain_metadata.py deleted file mode 100644 index 58c5f02e..00000000 --- a/src/auth0/management/types/domain_metadata.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -DomainMetadata = typing.Dict[str, typing.Optional[str]] -""" -Domain metadata associated with the custom domain, in the form of an object with string values (max 255 chars). Maximum of 10 domain metadata properties allowed. -""" diff --git a/src/auth0/management/types/domain_verification.py b/src/auth0/management/types/domain_verification.py deleted file mode 100644 index bbcad425..00000000 --- a/src/auth0/management/types/domain_verification.py +++ /dev/null @@ -1,39 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .domain_verification_method import DomainVerificationMethod -from .domain_verification_status_enum import DomainVerificationStatusEnum - - -class DomainVerification(UniversalBaseModel): - """ - Domain verification settings. - """ - - methods: typing.Optional[typing.List[DomainVerificationMethod]] = pydantic.Field(default=None) - """ - Domain verification methods. - """ - - status: typing.Optional[DomainVerificationStatusEnum] = None - error_msg: typing.Optional[str] = pydantic.Field(default=None) - """ - The user0-friendly error message in case of failed verification. This field is relevant only for Custom Domains with Auth0-Managed Certificates. - """ - - last_verified_at: typing.Optional[str] = pydantic.Field(default=None) - """ - The date and time when the custom domain was last verified. This field is relevant only for Custom Domains with Auth0-Managed Certificates. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/domain_verification_method.py b/src/auth0/management/types/domain_verification_method.py deleted file mode 100644 index 0dce61cc..00000000 --- a/src/auth0/management/types/domain_verification_method.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .domain_verification_method_name_enum import DomainVerificationMethodNameEnum - - -class DomainVerificationMethod(UniversalBaseModel): - name: DomainVerificationMethodNameEnum - record: str = pydantic.Field() - """ - Value used to verify the domain. - """ - - domain: typing.Optional[str] = pydantic.Field(default=None) - """ - The name of the txt record for verification - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/domain_verification_method_name_enum.py b/src/auth0/management/types/domain_verification_method_name_enum.py deleted file mode 100644 index 65003138..00000000 --- a/src/auth0/management/types/domain_verification_method_name_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -DomainVerificationMethodNameEnum = typing.Union[typing.Literal["cname", "txt"], typing.Any] diff --git a/src/auth0/management/types/domain_verification_status_enum.py b/src/auth0/management/types/domain_verification_status_enum.py deleted file mode 100644 index 1b1570d3..00000000 --- a/src/auth0/management/types/domain_verification_status_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -DomainVerificationStatusEnum = typing.Union[typing.Literal["verified", "pending", "failed"], typing.Any] diff --git a/src/auth0/management/types/email_attribute.py b/src/auth0/management/types/email_attribute.py deleted file mode 100644 index 85ca94e9..00000000 --- a/src/auth0/management/types/email_attribute.py +++ /dev/null @@ -1,38 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .email_attribute_identifier import EmailAttributeIdentifier -from .signup_verified import SignupVerified -from .verification_method_enum import VerificationMethodEnum - - -class EmailAttribute(UniversalBaseModel): - """ - Configuration for the email attribute for users. - """ - - identifier: typing.Optional[EmailAttributeIdentifier] = None - unique: typing.Optional[bool] = pydantic.Field(default=None) - """ - Determines if the attribute is unique in a given connection - """ - - profile_required: typing.Optional[bool] = pydantic.Field(default=None) - """ - Determines if property should be required for users - """ - - verification_method: typing.Optional[VerificationMethodEnum] = None - signup: typing.Optional[SignupVerified] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/email_attribute_identifier.py b/src/auth0/management/types/email_attribute_identifier.py deleted file mode 100644 index 97f7aeec..00000000 --- a/src/auth0/management/types/email_attribute_identifier.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .default_method_email_identifier_enum import DefaultMethodEmailIdentifierEnum - - -class EmailAttributeIdentifier(UniversalBaseModel): - active: typing.Optional[bool] = pydantic.Field(default=None) - """ - Determines if the attribute is used for identification - """ - - default_method: typing.Optional[DefaultMethodEmailIdentifierEnum] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/email_mailgun_region_enum.py b/src/auth0/management/types/email_mailgun_region_enum.py deleted file mode 100644 index dd273b2e..00000000 --- a/src/auth0/management/types/email_mailgun_region_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EmailMailgunRegionEnum = typing.Union[typing.Literal["eu"], typing.Any] diff --git a/src/auth0/management/types/email_provider_credentials.py b/src/auth0/management/types/email_provider_credentials.py deleted file mode 100644 index 623c0723..00000000 --- a/src/auth0/management/types/email_provider_credentials.py +++ /dev/null @@ -1,46 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EmailProviderCredentials(UniversalBaseModel): - """ - Credentials required to use the provider. - """ - - api_user: typing.Optional[str] = pydantic.Field(default=None) - """ - API User. - """ - - region: typing.Optional[str] = pydantic.Field(default=None) - """ - AWS or SparkPost region. - """ - - smtp_host: typing.Optional[str] = pydantic.Field(default=None) - """ - SMTP host. - """ - - smtp_port: typing.Optional[int] = pydantic.Field(default=None) - """ - SMTP port. - """ - - smtp_user: typing.Optional[str] = pydantic.Field(default=None) - """ - SMTP username. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/email_provider_credentials_schema.py b/src/auth0/management/types/email_provider_credentials_schema.py deleted file mode 100644 index 769807d2..00000000 --- a/src/auth0/management/types/email_provider_credentials_schema.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .email_provider_credentials_schema_access_key_id import EmailProviderCredentialsSchemaAccessKeyId -from .email_provider_credentials_schema_api_key import EmailProviderCredentialsSchemaApiKey -from .email_provider_credentials_schema_client_id import EmailProviderCredentialsSchemaClientId -from .email_provider_credentials_schema_connection_string import EmailProviderCredentialsSchemaConnectionString -from .email_provider_credentials_schema_smtp_host import EmailProviderCredentialsSchemaSmtpHost -from .email_provider_credentials_schema_three import EmailProviderCredentialsSchemaThree -from .email_provider_credentials_schema_zero import EmailProviderCredentialsSchemaZero -from .extensibility_email_provider_credentials import ExtensibilityEmailProviderCredentials - -EmailProviderCredentialsSchema = typing.Union[ - EmailProviderCredentialsSchemaZero, - EmailProviderCredentialsSchemaAccessKeyId, - EmailProviderCredentialsSchemaSmtpHost, - EmailProviderCredentialsSchemaThree, - EmailProviderCredentialsSchemaApiKey, - EmailProviderCredentialsSchemaConnectionString, - EmailProviderCredentialsSchemaClientId, - ExtensibilityEmailProviderCredentials, -] diff --git a/src/auth0/management/types/email_provider_credentials_schema_access_key_id.py b/src/auth0/management/types/email_provider_credentials_schema_access_key_id.py deleted file mode 100644 index a21c2fa8..00000000 --- a/src/auth0/management/types/email_provider_credentials_schema_access_key_id.py +++ /dev/null @@ -1,42 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata - - -class EmailProviderCredentialsSchemaAccessKeyId(UniversalBaseModel): - access_key_id: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="accessKeyId"), - pydantic.Field(alias="accessKeyId", description="AWS Access Key ID."), - ] = None - """ - AWS Access Key ID. - """ - - secret_access_key: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="secretAccessKey"), - pydantic.Field(alias="secretAccessKey", description="AWS Secret Access Key."), - ] = None - """ - AWS Secret Access Key. - """ - - region: typing.Optional[str] = pydantic.Field(default=None) - """ - AWS region. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/email_provider_credentials_schema_api_key.py b/src/auth0/management/types/email_provider_credentials_schema_api_key.py deleted file mode 100644 index cf032c22..00000000 --- a/src/auth0/management/types/email_provider_credentials_schema_api_key.py +++ /dev/null @@ -1,30 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .email_mailgun_region_enum import EmailMailgunRegionEnum - - -class EmailProviderCredentialsSchemaApiKey(UniversalBaseModel): - api_key: typing.Optional[str] = pydantic.Field(default=None) - """ - API Key - """ - - domain: typing.Optional[str] = pydantic.Field(default=None) - """ - Domain - """ - - region: typing.Optional[EmailMailgunRegionEnum] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/email_provider_credentials_schema_client_id.py b/src/auth0/management/types/email_provider_credentials_schema_client_id.py deleted file mode 100644 index ec0a42ab..00000000 --- a/src/auth0/management/types/email_provider_credentials_schema_client_id.py +++ /dev/null @@ -1,46 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata - - -class EmailProviderCredentialsSchemaClientId(UniversalBaseModel): - tenant_id: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="tenantId"), - pydantic.Field(alias="tenantId", description="Microsoft 365 Tenant ID."), - ] = None - """ - Microsoft 365 Tenant ID. - """ - - client_id: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="clientId"), - pydantic.Field(alias="clientId", description="Microsoft 365 Client ID."), - ] = None - """ - Microsoft 365 Client ID. - """ - - client_secret: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="clientSecret"), - pydantic.Field(alias="clientSecret", description="Microsoft 365 Client Secret."), - ] = None - """ - Microsoft 365 Client Secret. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/email_provider_credentials_schema_connection_string.py b/src/auth0/management/types/email_provider_credentials_schema_connection_string.py deleted file mode 100644 index 4b4951c1..00000000 --- a/src/auth0/management/types/email_provider_credentials_schema_connection_string.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata - - -class EmailProviderCredentialsSchemaConnectionString(UniversalBaseModel): - connection_string: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="connectionString"), - pydantic.Field(alias="connectionString", description="Azure Communication Services Connection String."), - ] = None - """ - Azure Communication Services Connection String. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/email_provider_credentials_schema_smtp_host.py b/src/auth0/management/types/email_provider_credentials_schema_smtp_host.py deleted file mode 100644 index ee6e8c7c..00000000 --- a/src/auth0/management/types/email_provider_credentials_schema_smtp_host.py +++ /dev/null @@ -1,34 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .email_smtp_host import EmailSmtpHost - - -class EmailProviderCredentialsSchemaSmtpHost(UniversalBaseModel): - smtp_host: typing.Optional[EmailSmtpHost] = None - smtp_port: typing.Optional[int] = pydantic.Field(default=None) - """ - SMTP port. - """ - - smtp_user: typing.Optional[str] = pydantic.Field(default=None) - """ - SMTP username. - """ - - smtp_pass: typing.Optional[str] = pydantic.Field(default=None) - """ - SMTP password. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/email_provider_credentials_schema_three.py b/src/auth0/management/types/email_provider_credentials_schema_three.py deleted file mode 100644 index 6856f3fa..00000000 --- a/src/auth0/management/types/email_provider_credentials_schema_three.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .email_spark_post_region_enum import EmailSparkPostRegionEnum - - -class EmailProviderCredentialsSchemaThree(UniversalBaseModel): - api_key: typing.Optional[str] = pydantic.Field(default=None) - """ - API Key - """ - - region: typing.Optional[EmailSparkPostRegionEnum] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/email_provider_credentials_schema_zero.py b/src/auth0/management/types/email_provider_credentials_schema_zero.py deleted file mode 100644 index 58dce9c6..00000000 --- a/src/auth0/management/types/email_provider_credentials_schema_zero.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EmailProviderCredentialsSchemaZero(UniversalBaseModel): - api_key: str = pydantic.Field() - """ - API Key - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/email_provider_name_enum.py b/src/auth0/management/types/email_provider_name_enum.py deleted file mode 100644 index 6ee9b60f..00000000 --- a/src/auth0/management/types/email_provider_name_enum.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EmailProviderNameEnum = typing.Union[ - typing.Literal[ - "mailgun", "mandrill", "sendgrid", "resend", "ses", "sparkpost", "smtp", "azure_cs", "ms365", "custom" - ], - typing.Any, -] diff --git a/src/auth0/management/types/email_provider_settings.py b/src/auth0/management/types/email_provider_settings.py deleted file mode 100644 index 2cf78d12..00000000 --- a/src/auth0/management/types/email_provider_settings.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EmailProviderSettings = typing.Dict[str, typing.Any] -""" -Specific provider setting -""" diff --git a/src/auth0/management/types/email_smtp_host.py b/src/auth0/management/types/email_smtp_host.py deleted file mode 100644 index 23473571..00000000 --- a/src/auth0/management/types/email_smtp_host.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -EmailSmtpHost = str -""" -SMTP host. -""" diff --git a/src/auth0/management/types/email_spark_post_region_enum.py b/src/auth0/management/types/email_spark_post_region_enum.py deleted file mode 100644 index c282e0ef..00000000 --- a/src/auth0/management/types/email_spark_post_region_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EmailSparkPostRegionEnum = typing.Union[typing.Literal["eu"], typing.Any] diff --git a/src/auth0/management/types/email_specific_provider_settings_with_additional_properties.py b/src/auth0/management/types/email_specific_provider_settings_with_additional_properties.py deleted file mode 100644 index ee9f7d45..00000000 --- a/src/auth0/management/types/email_specific_provider_settings_with_additional_properties.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EmailSpecificProviderSettingsWithAdditionalProperties = typing.Optional[typing.Dict[str, typing.Any]] -""" -Specific provider setting -""" diff --git a/src/auth0/management/types/email_template_name_enum.py b/src/auth0/management/types/email_template_name_enum.py deleted file mode 100644 index 00ca4261..00000000 --- a/src/auth0/management/types/email_template_name_enum.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EmailTemplateNameEnum = typing.Union[ - typing.Literal[ - "verify_email", - "verify_email_by_code", - "auth_email_by_code", - "reset_email", - "reset_email_by_code", - "welcome_email", - "blocked_account", - "stolen_credentials", - "enrollment_email", - "mfa_oob_code", - "user_invitation", - "change_password", - "password_reset", - "async_approval", - ], - typing.Any, -] diff --git a/src/auth0/management/types/enabled_features_enum.py b/src/auth0/management/types/enabled_features_enum.py deleted file mode 100644 index 88893555..00000000 --- a/src/auth0/management/types/enabled_features_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EnabledFeaturesEnum = typing.Union[typing.Literal["scim", "universal_logout", "directory_sync"], typing.Any] diff --git a/src/auth0/management/types/encryption_key.py b/src/auth0/management/types/encryption_key.py deleted file mode 100644 index d3fafc55..00000000 --- a/src/auth0/management/types/encryption_key.py +++ /dev/null @@ -1,51 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .encryption_key_state import EncryptionKeyState -from .encryption_key_type import EncryptionKeyType - - -class EncryptionKey(UniversalBaseModel): - """ - Encryption key - """ - - kid: str = pydantic.Field() - """ - Key ID - """ - - type: EncryptionKeyType - state: EncryptionKeyState - created_at: dt.datetime = pydantic.Field() - """ - Key creation timestamp - """ - - updated_at: dt.datetime = pydantic.Field() - """ - Key update timestamp - """ - - parent_kid: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of parent wrapping key - """ - - public_key: typing.Optional[str] = pydantic.Field(default=None) - """ - Public key in PEM format - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/encryption_key_public_wrapping_algorithm.py b/src/auth0/management/types/encryption_key_public_wrapping_algorithm.py deleted file mode 100644 index 9f97b631..00000000 --- a/src/auth0/management/types/encryption_key_public_wrapping_algorithm.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EncryptionKeyPublicWrappingAlgorithm = typing.Union[typing.Literal["CKM_RSA_AES_KEY_WRAP"], typing.Any] diff --git a/src/auth0/management/types/encryption_key_state.py b/src/auth0/management/types/encryption_key_state.py deleted file mode 100644 index 06c37e46..00000000 --- a/src/auth0/management/types/encryption_key_state.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EncryptionKeyState = typing.Union[typing.Literal["pre-activation", "active", "deactivated", "destroyed"], typing.Any] diff --git a/src/auth0/management/types/encryption_key_type.py b/src/auth0/management/types/encryption_key_type.py deleted file mode 100644 index 2f29c9d5..00000000 --- a/src/auth0/management/types/encryption_key_type.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EncryptionKeyType = typing.Union[ - typing.Literal["customer-provided-root-key", "environment-root-key", "tenant-master-key", "tenant-encryption-key"], - typing.Any, -] diff --git a/src/auth0/management/types/event_stream_action_configuration.py b/src/auth0/management/types/event_stream_action_configuration.py deleted file mode 100644 index 7a6d4a8d..00000000 --- a/src/auth0/management/types/event_stream_action_configuration.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamActionConfiguration(UniversalBaseModel): - """ - Configuration specific to an action destination. - """ - - action_id: str = pydantic.Field() - """ - Action ID for the action destination. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_action_destination.py b/src/auth0/management/types/event_stream_action_destination.py deleted file mode 100644 index 4a464d8a..00000000 --- a/src/auth0/management/types/event_stream_action_destination.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_action_configuration import EventStreamActionConfiguration -from .event_stream_action_destination_type_enum import EventStreamActionDestinationTypeEnum - - -class EventStreamActionDestination(UniversalBaseModel): - type: EventStreamActionDestinationTypeEnum - configuration: EventStreamActionConfiguration - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_action_destination_type_enum.py b/src/auth0/management/types/event_stream_action_destination_type_enum.py deleted file mode 100644 index ed07d9b2..00000000 --- a/src/auth0/management/types/event_stream_action_destination_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamActionDestinationTypeEnum = typing.Union[typing.Literal["action"], typing.Any] diff --git a/src/auth0/management/types/event_stream_action_response_content.py b/src/auth0/management/types/event_stream_action_response_content.py deleted file mode 100644 index 78ab8de2..00000000 --- a/src/auth0/management/types/event_stream_action_response_content.py +++ /dev/null @@ -1,48 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_action_destination import EventStreamActionDestination -from .event_stream_status_enum import EventStreamStatusEnum -from .event_stream_subscription import EventStreamSubscription - - -class EventStreamActionResponseContent(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - Unique identifier for the event stream. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of the event stream. - """ - - subscriptions: typing.Optional[typing.List[EventStreamSubscription]] = pydantic.Field(default=None) - """ - List of event types subscribed to in this stream. - """ - - destination: typing.Optional[EventStreamActionDestination] = None - status: typing.Optional[EventStreamStatusEnum] = None - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Timestamp when the event stream was created. - """ - - updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Timestamp when the event stream was last updated. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event.py b/src/auth0/management/types/event_stream_cloud_event.py deleted file mode 100644 index 4b0d009f..00000000 --- a/src/auth0/management/types/event_stream_cloud_event.py +++ /dev/null @@ -1,50 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_data import EventStreamCloudEventData - - -class EventStreamCloudEvent(UniversalBaseModel): - """ - Event content. This will only be set if delivery failed. - """ - - id: typing.Optional[str] = pydantic.Field(default=None) - """ - Unique identifier for the event - """ - - source: typing.Optional[str] = pydantic.Field(default=None) - """ - Where the event originated - """ - - specversion: typing.Optional[str] = pydantic.Field(default=None) - """ - Version of CloudEvents spec - """ - - type: typing.Optional[str] = pydantic.Field(default=None) - """ - Type of the event (e.g., user.created) - """ - - time: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Timestamp at which the event was generated - """ - - data: typing.Optional[EventStreamCloudEventData] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_a_0_purpose_enum.py b/src/auth0/management/types/event_stream_cloud_event_a_0_purpose_enum.py deleted file mode 100644 index 41bdb6cf..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_a_0_purpose_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventA0PurposeEnum = typing.Union[typing.Literal["test"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created.py b/src/auth0/management/types/event_stream_cloud_event_connection_created.py deleted file mode 100644 index 75454384..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_created_cloud_event import EventStreamCloudEventConnectionCreatedCloudEvent - - -class EventStreamCloudEventConnectionCreated(UniversalBaseModel): - """ - SSE message for connection.created. - """ - - offset: str = pydantic.Field() - """ - Opaque cursor representing position in the stream. Pass as the `from` query parameter to resume. - """ - - event: EventStreamCloudEventConnectionCreatedCloudEvent - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_cloud_event.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_cloud_event.py deleted file mode 100644 index ab78ad12..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_cloud_event.py +++ /dev/null @@ -1,77 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_a_0_purpose_enum import EventStreamCloudEventA0PurposeEnum -from .event_stream_cloud_event_connection_created_cloud_event_type_enum import ( - EventStreamCloudEventConnectionCreatedCloudEventTypeEnum, -) -from .event_stream_cloud_event_connection_created_data import EventStreamCloudEventConnectionCreatedData -from .event_stream_cloud_event_spec_version_enum import EventStreamCloudEventSpecVersionEnum - - -class EventStreamCloudEventConnectionCreatedCloudEvent(UniversalBaseModel): - """ - Represents an event that occurs when a connection is created. - """ - - specversion: EventStreamCloudEventSpecVersionEnum - type: EventStreamCloudEventConnectionCreatedCloudEventTypeEnum - source: str = pydantic.Field() - """ - The source of the event. This will take the form 'urn:auth0:.'. - """ - - id: str = pydantic.Field() - """ - A unique identifier for the event. - """ - - time: dt.datetime = pydantic.Field() - """ - An ISO-8601 timestamp indicating when the event physically occurred. - """ - - data: EventStreamCloudEventConnectionCreatedData - a_0_tenant: typing_extensions.Annotated[ - str, - FieldMetadata(alias="a0tenant"), - pydantic.Field(alias="a0tenant", description="The auth0 tenant ID to which the event is associated."), - ] - """ - The auth0 tenant ID to which the event is associated. - """ - - a_0_stream: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="a0stream"), - pydantic.Field( - alias="a0stream", - description="The auth0 event stream ID of the stream the event was delivered on.\nPresent when the event is delivered via an event stream; omitted when\nevents are retrieved via the Events API (GET /api/v2/events).", - ), - ] = None - """ - The auth0 event stream ID of the stream the event was delivered on. - Present when the event is delivered via an event stream; omitted when - events are retrieved via the Events API (GET /api/v2/events). - """ - - a_0_purpose: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventA0PurposeEnum], - FieldMetadata(alias="a0purpose"), - pydantic.Field(alias="a0purpose"), - ] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_cloud_event_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_cloud_event_type_enum.py deleted file mode 100644 index 9c7fcdef..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_cloud_event_type_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedCloudEventTypeEnum = typing.Union[ - typing.Literal["connection.created"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_data.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_data.py deleted file mode 100644 index 8221bdca..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_data.py +++ /dev/null @@ -1,30 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_created_object import EventStreamCloudEventConnectionCreatedObject -from .event_stream_cloud_event_connection_created_previous_object import ( - EventStreamCloudEventConnectionCreatedPreviousObject, -) -from .event_stream_cloud_event_context import EventStreamCloudEventContext - - -class EventStreamCloudEventConnectionCreatedData(UniversalBaseModel): - """ - The event payload. - """ - - object: EventStreamCloudEventConnectionCreatedObject - previous_object: typing.Optional[EventStreamCloudEventConnectionCreatedPreviousObject] = None - context: typing.Optional[EventStreamCloudEventContext] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object.py deleted file mode 100644 index a16248f3..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .event_stream_cloud_event_connection_created_object_0 import EventStreamCloudEventConnectionCreatedObject0 -from .event_stream_cloud_event_connection_created_object_1 import EventStreamCloudEventConnectionCreatedObject1 -from .event_stream_cloud_event_connection_created_object_2 import EventStreamCloudEventConnectionCreatedObject2 -from .event_stream_cloud_event_connection_created_object_3 import EventStreamCloudEventConnectionCreatedObject3 -from .event_stream_cloud_event_connection_created_object_4 import EventStreamCloudEventConnectionCreatedObject4 -from .event_stream_cloud_event_connection_created_object_5 import EventStreamCloudEventConnectionCreatedObject5 -from .event_stream_cloud_event_connection_created_object_6 import EventStreamCloudEventConnectionCreatedObject6 -from .event_stream_cloud_event_connection_created_object_7 import EventStreamCloudEventConnectionCreatedObject7 - -EventStreamCloudEventConnectionCreatedObject = typing.Union[ - EventStreamCloudEventConnectionCreatedObject0, - EventStreamCloudEventConnectionCreatedObject1, - EventStreamCloudEventConnectionCreatedObject2, - EventStreamCloudEventConnectionCreatedObject3, - EventStreamCloudEventConnectionCreatedObject4, - EventStreamCloudEventConnectionCreatedObject5, - EventStreamCloudEventConnectionCreatedObject6, - EventStreamCloudEventConnectionCreatedObject7, -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_0.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_0.py deleted file mode 100644 index 535a2dc8..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_0.py +++ /dev/null @@ -1,73 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_created_object_0_authentication import ( - EventStreamCloudEventConnectionCreatedObject0Authentication, -) -from .event_stream_cloud_event_connection_created_object_0_connected_accounts import ( - EventStreamCloudEventConnectionCreatedObject0ConnectedAccounts, -) -from .event_stream_cloud_event_connection_created_object_0_metadata import ( - EventStreamCloudEventConnectionCreatedObject0Metadata, -) -from .event_stream_cloud_event_connection_created_object_0_options import ( - EventStreamCloudEventConnectionCreatedObject0Options, -) -from .event_stream_cloud_event_connection_created_object_0_strategy_enum import ( - EventStreamCloudEventConnectionCreatedObject0StrategyEnum, -) - - -class EventStreamCloudEventConnectionCreatedObject0(UniversalBaseModel): - authentication: typing.Optional[EventStreamCloudEventConnectionCreatedObject0Authentication] = None - display_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Connection name used in the new universal login experience - """ - - enabled_clients: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. - """ - - id: str = pydantic.Field() - """ - The connection's identifier - """ - - is_domain_connection: typing.Optional[bool] = pydantic.Field(default=None) - """ - true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) - """ - - metadata: typing.Optional[EventStreamCloudEventConnectionCreatedObject0Metadata] = None - name: str = pydantic.Field() - """ - The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 - """ - - realms: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. - """ - - connected_accounts: typing.Optional[EventStreamCloudEventConnectionCreatedObject0ConnectedAccounts] = None - options: typing.Optional[EventStreamCloudEventConnectionCreatedObject0Options] = None - show_as_button: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to `false`. - """ - - strategy: EventStreamCloudEventConnectionCreatedObject0StrategyEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_authentication.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_authentication.py deleted file mode 100644 index 7107f370..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_authentication.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionCreatedObject0Authentication(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for authentication during login. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_connected_accounts.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_connected_accounts.py deleted file mode 100644 index 995296ce..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_connected_accounts.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionCreatedObject0ConnectedAccounts(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for connected accounts and Token Vault. - """ - - active: bool - cross_app_access: typing.Optional[bool] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_metadata.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_metadata.py deleted file mode 100644 index 2e4c3d90..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_metadata.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionCreatedObject0Metadata(UniversalBaseModel): - """ - Metadata associated with the connection in the form of an object with string values (max 255 chars). Maximum of 10 metadata properties allowed. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_options.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_options.py deleted file mode 100644 index d307c983..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_options.py +++ /dev/null @@ -1,174 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_connection_created_object_0_options_attribute_map import ( - EventStreamCloudEventConnectionCreatedObject0OptionsAttributeMap, -) -from .event_stream_cloud_event_connection_created_object_0_options_connection_settings import ( - EventStreamCloudEventConnectionCreatedObject0OptionsConnectionSettings, -) -from .event_stream_cloud_event_connection_created_object_0_options_dpop_signing_alg_enum import ( - EventStreamCloudEventConnectionCreatedObject0OptionsDpopSigningAlgEnum, -) -from .event_stream_cloud_event_connection_created_object_0_options_federated_connections_access_tokens import ( - EventStreamCloudEventConnectionCreatedObject0OptionsFederatedConnectionsAccessTokens, -) -from .event_stream_cloud_event_connection_created_object_0_options_id_token_signed_response_algs_item_enum import ( - EventStreamCloudEventConnectionCreatedObject0OptionsIdTokenSignedResponseAlgsItemEnum, -) -from .event_stream_cloud_event_connection_created_object_0_options_oidc_metadata import ( - EventStreamCloudEventConnectionCreatedObject0OptionsOidcMetadata, -) -from .event_stream_cloud_event_connection_created_object_0_options_schema_version_enum import ( - EventStreamCloudEventConnectionCreatedObject0OptionsSchemaVersionEnum, -) -from .event_stream_cloud_event_connection_created_object_0_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionCreatedObject0OptionsSetUserRootAttributesEnum, -) -from .event_stream_cloud_event_connection_created_object_0_options_token_endpoint_auth_method_enum import ( - EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointAuthMethodEnum, -) -from .event_stream_cloud_event_connection_created_object_0_options_token_endpoint_auth_signing_alg_enum import ( - EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointAuthSigningAlgEnum, -) -from .event_stream_cloud_event_connection_created_object_0_options_token_endpoint_jwtca_aud_format_enum import ( - EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointJwtcaAudFormatEnum, -) -from .event_stream_cloud_event_connection_created_object_0_options_type_enum import ( - EventStreamCloudEventConnectionCreatedObject0OptionsTypeEnum, -) -from .event_stream_cloud_event_connection_created_object_0_options_upstream_params import ( - EventStreamCloudEventConnectionCreatedObject0OptionsUpstreamParams, -) - - -class EventStreamCloudEventConnectionCreatedObject0Options(UniversalBaseModel): - """ - Options for the 'oidc' connection - """ - - authorization_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow. - """ - - client_id: str = pydantic.Field() - """ - OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider. - """ - - connection_settings: typing.Optional[EventStreamCloudEventConnectionCreatedObject0OptionsConnectionSettings] = None - domain_aliases: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication. - """ - - dpop_signing_alg: typing.Optional[EventStreamCloudEventConnectionCreatedObject0OptionsDpopSigningAlgEnum] = None - federated_connections_access_tokens: typing.Optional[ - EventStreamCloudEventConnectionCreatedObject0OptionsFederatedConnectionsAccessTokens - ] = None - icon_url: typing.Optional[str] = pydantic.Field(default=None) - """ - https url of the icon to be shown - """ - - id_token_session_expiry_supported: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether the identity provider supports session expiry via the id_token. If true, the system will use the session_expiry claim in the id_token to determine session expiry. - """ - - id_token_signed_response_algs: typing.Optional[ - typing.List[EventStreamCloudEventConnectionCreatedObject0OptionsIdTokenSignedResponseAlgsItemEnum] - ] = pydantic.Field(default=None) - """ - List of algorithms allowed to verify the ID tokens. Applicable when strategy=oidc or okta. - """ - - issuer: typing.Optional[str] = pydantic.Field(default=None) - """ - The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider. - """ - - jwks_uri: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures. - """ - - non_persistent_attrs: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) - """ - - oidc_metadata: typing.Optional[EventStreamCloudEventConnectionCreatedObject0OptionsOidcMetadata] = None - schema_version: typing.Optional[EventStreamCloudEventConnectionCreatedObject0OptionsSchemaVersionEnum] = None - scope: typing.Optional[str] = pydantic.Field(default=None) - """ - Space-separated list of OAuth 2.0 scopes requested during authorization. Must include 'openid' (required by OIDC spec). Common values: 'openid profile email'. Additional scopes depend on the identity provider. - """ - - send_back_channel_nonce: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true and type is 'back_channel', includes a cryptographic nonce in authorization requests to prevent replay attacks. The identity provider must include this nonce in the ID token for validation. - """ - - set_user_root_attributes: typing.Optional[ - EventStreamCloudEventConnectionCreatedObject0OptionsSetUserRootAttributesEnum - ] = None - tenant_domain: typing.Optional[str] = pydantic.Field(default=None) - """ - Tenant domain - """ - - token_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow. - """ - - token_endpoint_auth_method: typing.Optional[ - EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointAuthMethodEnum - ] = None - token_endpoint_auth_signing_alg: typing.Optional[ - EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointAuthSigningAlgEnum - ] = None - token_endpoint_jwtca_aud_format: typing.Optional[ - EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointJwtcaAudFormatEnum - ] = None - upstream_params: typing.Optional[EventStreamCloudEventConnectionCreatedObject0OptionsUpstreamParams] = None - use_oauth_spec_scope: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="useOauthSpecScope"), - pydantic.Field( - alias="useOauthSpecScope", - description="When true, uses space-delimited scopes (per OAuth 2.0 spec) instead of comma-delimited when calling the identity provider's authorization endpoint. Only relevant when using the connection_scope parameter. See https://auth0.com/docs/authenticate/identity-providers/adding-scopes-for-an-external-idp#pass-scopes-to-authorize-endpoint", - ), - ] = None - """ - When true, uses space-delimited scopes (per OAuth 2.0 spec) instead of comma-delimited when calling the identity provider's authorization endpoint. Only relevant when using the connection_scope parameter. See https://auth0.com/docs/authenticate/identity-providers/adding-scopes-for-an-external-idp#pass-scopes-to-authorize-endpoint - """ - - userinfo_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token. - """ - - attribute_map: typing.Optional[EventStreamCloudEventConnectionCreatedObject0OptionsAttributeMap] = None - discovery_url: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's OIDC Discovery endpoint (/.well-known/openid-configuration). When provided and oidc_metadata is empty, Auth0 automatically retrieves the provider's configuration including endpoints and supported features. - """ - - type: typing.Optional[EventStreamCloudEventConnectionCreatedObject0OptionsTypeEnum] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_options_attribute_map.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_options_attribute_map.py deleted file mode 100644 index a79c5290..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_options_attribute_map.py +++ /dev/null @@ -1,37 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_created_object_0_options_attribute_map_attributes import ( - EventStreamCloudEventConnectionCreatedObject0OptionsAttributeMapAttributes, -) -from .event_stream_cloud_event_connection_created_object_0_options_attribute_map_mapping_mode_enum import ( - EventStreamCloudEventConnectionCreatedObject0OptionsAttributeMapMappingModeEnum, -) - - -class EventStreamCloudEventConnectionCreatedObject0OptionsAttributeMap(UniversalBaseModel): - """ - Configuration for mapping claims from the identity provider to Auth0 user profile attributes. Allows customizing which IdP claims populate user fields and how they are transformed. - """ - - attributes: typing.Optional[EventStreamCloudEventConnectionCreatedObject0OptionsAttributeMapAttributes] = None - userinfo_scope: typing.Optional[str] = pydantic.Field(default=None) - """ - Scopes to send to the IdP's Userinfo endpoint - """ - - mapping_mode: typing.Optional[EventStreamCloudEventConnectionCreatedObject0OptionsAttributeMapMappingModeEnum] = ( - None - ) - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_options_attribute_map_attributes.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_options_attribute_map_attributes.py deleted file mode 100644 index 51de169f..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_options_attribute_map_attributes.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedObject0OptionsAttributeMapAttributes = typing.Dict[str, typing.Any] -""" -Object containing mapping details for incoming claims -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_options_attribute_map_mapping_mode_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_options_attribute_map_mapping_mode_enum.py deleted file mode 100644 index 9def87c3..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_options_attribute_map_mapping_mode_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedObject0OptionsAttributeMapMappingModeEnum = typing.Union[ - typing.Literal["bind_all", "use_map"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_options_connection_settings.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_options_connection_settings.py deleted file mode 100644 index 1a645f1e..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_options_connection_settings.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_created_object_0_options_connection_settings_pkce_enum import ( - EventStreamCloudEventConnectionCreatedObject0OptionsConnectionSettingsPkceEnum, -) - - -class EventStreamCloudEventConnectionCreatedObject0OptionsConnectionSettings(UniversalBaseModel): - """ - OAuth 2.0 PKCE (Proof Key for Code Exchange) settings. PKCE enhances security for public clients by preventing authorization code interception attacks. 'auto' (recommended) uses the strongest method supported by the IdP. - """ - - pkce: typing.Optional[EventStreamCloudEventConnectionCreatedObject0OptionsConnectionSettingsPkceEnum] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_options_connection_settings_pkce_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_options_connection_settings_pkce_enum.py deleted file mode 100644 index 3493b159..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_options_connection_settings_pkce_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedObject0OptionsConnectionSettingsPkceEnum = typing.Union[ - typing.Literal["auto", "S256", "plain", "disabled"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_options_dpop_signing_alg_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_options_dpop_signing_alg_enum.py deleted file mode 100644 index 9d959bbc..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_options_dpop_signing_alg_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedObject0OptionsDpopSigningAlgEnum = typing.Union[ - typing.Literal["ES256", "ES384", "ES512", "Ed25519"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_options_federated_connections_access_tokens.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_options_federated_connections_access_tokens.py deleted file mode 100644 index 0a39fe18..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_options_federated_connections_access_tokens.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionCreatedObject0OptionsFederatedConnectionsAccessTokens(UniversalBaseModel): - """ - Configuration for storing identity provider tokens in Auth0's Token Vault. When active, Auth0 securely stores access and refresh tokens from federated logins, enabling your application to make authenticated API calls on behalf of users. - """ - - active: bool = pydantic.Field() - """ - Enables refresh tokens and access tokens collection for federated connections - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_options_id_token_signed_response_algs_item_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_options_id_token_signed_response_algs_item_enum.py deleted file mode 100644 index 8c19d14d..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_options_id_token_signed_response_algs_item_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedObject0OptionsIdTokenSignedResponseAlgsItemEnum = typing.Union[ - typing.Literal["ES256", "ES384", "PS256", "PS384", "RS256", "RS384", "RS512"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_options_oidc_metadata.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_options_oidc_metadata.py deleted file mode 100644 index 8a944941..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_options_oidc_metadata.py +++ /dev/null @@ -1,211 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionCreatedObject0OptionsOidcMetadata(UniversalBaseModel): - """ - OpenID Connect Provider Metadata as per https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata - """ - - acr_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the Authentication Context Class References that this OP supports - """ - - authorization_endpoint: str = pydantic.Field() - """ - URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow. - """ - - claim_types_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the Claim Types that the OpenID Provider supports. These Claim Types are described in Section 5.6 of OpenID Connect Core 1.0 [OpenID.Core]. If omitted, the implementation supports only normal Claims. - """ - - claims_locales_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Languages and scripts supported for values in Claims being returned, represented as a JSON array of BCP47 [RFC5646] language tag values. Not all languages and scripts are necessarily supported for all Claim values. - """ - - claims_parameter_supported: typing.Optional[bool] = pydantic.Field(default=None) - """ - Boolean value specifying whether the OP supports use of the claims parameter, with true indicating support. If omitted, the default value is false. - """ - - claims_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the Claim Names of the Claims that the OpenID Provider MAY be able to supply values for. Note that for privacy or other reasons, this might not be an exhaustive list. - """ - - code_challenge_methods_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636. - """ - - display_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used. - """ - - dpop_signing_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS signing algorithms (alg values) supported for DPoP proof JWT signing. - """ - - end_session_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's logout/end session endpoint. When configured as a static URL, users are redirected here after logging out from Auth0. Must use HTTPS scheme. - """ - - grant_types_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the OAuth 2.0 Grant Type values that this OP supports. Dynamic OpenID Providers MUST support the authorization_code and implicit Grant Type values and MAY support other Grant Types. If omitted, the default value is ["authorization_code", "implicit"]. - """ - - id_token_encryption_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT - """ - - id_token_encryption_enc_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for the ID Token to encode the Claims in a JWT [JWT]. - """ - - id_token_signing_alg_values_supported: typing.List[str] = pydantic.Field() - """ - A list of the JWS signing algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be included. The value none MAY be supported, but MUST NOT be used unless the Response Type used returns no ID Token from the Authorization Endpoint (such as when using the Authorization Code Flow). https://datatracker.ietf.org/doc/html/rfc7518 - """ - - issuer: str = pydantic.Field() - """ - The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider. - """ - - jwks_uri: str = pydantic.Field() - """ - URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures. - """ - - op_policy_uri: typing.Optional[str] = pydantic.Field(default=None) - """ - URL that the OpenID Provider provides to the person registering the Client to read about the OPs requirements on how the Relying Party can use the data provided by the OP. The registration process SHOULD display this URL to the person registering the Client if it is given. - """ - - op_tos_uri: typing.Optional[str] = pydantic.Field(default=None) - """ - URL that the OpenID Provider provides to the person registering the Client to read about OpenID Providers terms of service. The registration process SHOULD display this URL to the person registering the Client if it is given. - """ - - registration_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the OPs Dynamic Client Registration Endpoint. RECOMMENDED but not REQUIRED. https://openid.net/specs/openid-connect-discovery-1_0.html#OpenID.Registration - """ - - request_object_encryption_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference. - """ - - request_object_encryption_enc_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference. - """ - - request_object_signing_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for Request Objects, which are described in Section 6.1 of OpenID Connect Core 1.0 [OpenID.Core]. These algorithms are used both when the Request Object is passed by value (using the request parameter) and when it is passed by reference (using the request_uri parameter). Servers SHOULD support none and RS256. - """ - - request_parameter_supported: typing.Optional[bool] = pydantic.Field(default=None) - """ - Boolean value specifying whether the OP supports use of the request parameter, with true indicating support. If omitted, the default value is false. - """ - - request_uri_parameter_supported: typing.Optional[bool] = pydantic.Field(default=None) - """ - Boolean value specifying whether the OP supports use of the request_uri parameter, with true indicating support. If omitted, the default value is false. - """ - - require_request_uri_registration: typing.Optional[bool] = pydantic.Field(default=None) - """ - Boolean value specifying whether the OP requires use of the request_uri parameter. If omitted, the default value is false. - """ - - response_modes_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the OAuth 2.0 response_mode values that this OP supports. If omitted, the default for Dynamic OpenID Providers is ["query", "fragment"] - """ - - response_types_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the OAuth 2.0 response_type values that this OP supports. Dynamic OpenID Providers MUST support the code, id_token, and the token id_token Response Type values - """ - - scopes_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the OAuth 2.0 [RFC6749] scope values that this server supports. The server MUST support the openid scope value. Servers MAY choose not to advertise some supported scope values even when this parameter is used, although those defined in [OpenID.Core] SHOULD be listed, if supported. RECOMMENDED but not REQUIRED - """ - - service_documentation: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of a page containing human-readable information that developers might want or need to know when using the OpenID Provider. In particular, if the OpenID Provider does not support Dynamic Client Registration, then information on how to register Clients needs to be provided in this documentation. - """ - - subject_types_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the Subject Identifier types that this OP supports. Valid types include pairwise and public - """ - - token_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow. - """ - - token_endpoint_auth_methods_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of Client Authentication methods supported by this Token Endpoint. The options are client_secret_post, client_secret_basic, client_secret_jwt, and private_key_jwt, as described in Section 9 of OpenID Connect Core 1.0 [OpenID.Core]. Other authentication methods MAY be defined by extensions. If omitted, the default is client_secret_basic -- the HTTP Basic Authentication Scheme specified in Section 2.3.1 of OAuth 2.0 [RFC6749]. - """ - - token_endpoint_auth_signing_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used. - """ - - ui_locales_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Languages and scripts supported for the user interface, represented as a JSON array of BCP47 [RFC5646] language tag values. - """ - - userinfo_encryption_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE [JWE] encryption algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. - """ - - userinfo_encryption_enc_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (enc values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. - """ - - userinfo_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token. - """ - - userinfo_signing_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS [JWS] signing algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. The value none MAY be included. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_options_schema_version_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_options_schema_version_enum.py deleted file mode 100644 index 8dac1a4b..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_options_schema_version_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedObject0OptionsSchemaVersionEnum = typing.Union[ - typing.Literal["openid-1.0.0", "oidc-v4"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_options_set_user_root_attributes_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_options_set_user_root_attributes_enum.py deleted file mode 100644 index 5738571e..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_options_set_user_root_attributes_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedObject0OptionsSetUserRootAttributesEnum = typing.Union[ - typing.Literal["on_each_login", "on_first_login", "never_on_login"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_options_token_endpoint_auth_method_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_options_token_endpoint_auth_method_enum.py deleted file mode 100644 index c4f161ed..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_options_token_endpoint_auth_method_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointAuthMethodEnum = typing.Union[ - typing.Literal["client_secret_post", "private_key_jwt"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_options_token_endpoint_auth_signing_alg_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_options_token_endpoint_auth_signing_alg_enum.py deleted file mode 100644 index d6a3220d..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_options_token_endpoint_auth_signing_alg_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointAuthSigningAlgEnum = typing.Union[ - typing.Literal["ES256", "ES384", "PS256", "PS384", "RS256", "RS384", "RS512"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_options_token_endpoint_jwtca_aud_format_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_options_token_endpoint_jwtca_aud_format_enum.py deleted file mode 100644 index a511380e..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_options_token_endpoint_jwtca_aud_format_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointJwtcaAudFormatEnum = typing.Union[ - typing.Literal["issuer", "token_endpoint"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_options_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_options_type_enum.py deleted file mode 100644 index 7fbe7e4b..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_options_type_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedObject0OptionsTypeEnum = typing.Union[ - typing.Literal["back_channel", "front_channel"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_options_upstream_params.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_options_upstream_params.py deleted file mode 100644 index 57f4f157..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_options_upstream_params.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedObject0OptionsUpstreamParams = typing.Dict[str, typing.Any] -""" -Additional parameters to include in authorization requests sent to the identity provider. Useful for passing custom claims, selecting specific identity sources, or configuring provider-specific behavior. See https://auth0.com/docs/authenticate/identity-providers/pass-parameters-to-idps -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_strategy_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_strategy_enum.py deleted file mode 100644 index 823bb773..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_0_strategy_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedObject0StrategyEnum = typing.Union[typing.Literal["oidc"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_1.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_1.py deleted file mode 100644 index 5d9fbdec..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_1.py +++ /dev/null @@ -1,73 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_created_object_1_authentication import ( - EventStreamCloudEventConnectionCreatedObject1Authentication, -) -from .event_stream_cloud_event_connection_created_object_1_connected_accounts import ( - EventStreamCloudEventConnectionCreatedObject1ConnectedAccounts, -) -from .event_stream_cloud_event_connection_created_object_1_metadata import ( - EventStreamCloudEventConnectionCreatedObject1Metadata, -) -from .event_stream_cloud_event_connection_created_object_1_options import ( - EventStreamCloudEventConnectionCreatedObject1Options, -) -from .event_stream_cloud_event_connection_created_object_1_strategy_enum import ( - EventStreamCloudEventConnectionCreatedObject1StrategyEnum, -) - - -class EventStreamCloudEventConnectionCreatedObject1(UniversalBaseModel): - authentication: typing.Optional[EventStreamCloudEventConnectionCreatedObject1Authentication] = None - connected_accounts: typing.Optional[EventStreamCloudEventConnectionCreatedObject1ConnectedAccounts] = None - display_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Connection name used in the new universal login experience - """ - - enabled_clients: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. - """ - - id: str = pydantic.Field() - """ - The connection's identifier - """ - - is_domain_connection: typing.Optional[bool] = pydantic.Field(default=None) - """ - true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) - """ - - metadata: typing.Optional[EventStreamCloudEventConnectionCreatedObject1Metadata] = None - name: str = pydantic.Field() - """ - The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 - """ - - realms: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. - """ - - options: typing.Optional[EventStreamCloudEventConnectionCreatedObject1Options] = None - show_as_button: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to `false`. - """ - - strategy: EventStreamCloudEventConnectionCreatedObject1StrategyEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_authentication.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_authentication.py deleted file mode 100644 index f311ee50..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_authentication.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionCreatedObject1Authentication(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for authentication during login. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_connected_accounts.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_connected_accounts.py deleted file mode 100644 index d6a2b3c4..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_connected_accounts.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionCreatedObject1ConnectedAccounts(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for connected accounts and Token Vault. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_metadata.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_metadata.py deleted file mode 100644 index 8f8cce28..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_metadata.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionCreatedObject1Metadata(UniversalBaseModel): - """ - Metadata associated with the connection in the form of an object with string values (max 255 chars). Maximum of 10 metadata properties allowed. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_options.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_options.py deleted file mode 100644 index e707b164..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_options.py +++ /dev/null @@ -1,174 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_connection_created_object_1_options_attribute_map import ( - EventStreamCloudEventConnectionCreatedObject1OptionsAttributeMap, -) -from .event_stream_cloud_event_connection_created_object_1_options_connection_settings import ( - EventStreamCloudEventConnectionCreatedObject1OptionsConnectionSettings, -) -from .event_stream_cloud_event_connection_created_object_1_options_dpop_signing_alg_enum import ( - EventStreamCloudEventConnectionCreatedObject1OptionsDpopSigningAlgEnum, -) -from .event_stream_cloud_event_connection_created_object_1_options_federated_connections_access_tokens import ( - EventStreamCloudEventConnectionCreatedObject1OptionsFederatedConnectionsAccessTokens, -) -from .event_stream_cloud_event_connection_created_object_1_options_id_token_signed_response_algs_item_enum import ( - EventStreamCloudEventConnectionCreatedObject1OptionsIdTokenSignedResponseAlgsItemEnum, -) -from .event_stream_cloud_event_connection_created_object_1_options_oidc_metadata import ( - EventStreamCloudEventConnectionCreatedObject1OptionsOidcMetadata, -) -from .event_stream_cloud_event_connection_created_object_1_options_schema_version_enum import ( - EventStreamCloudEventConnectionCreatedObject1OptionsSchemaVersionEnum, -) -from .event_stream_cloud_event_connection_created_object_1_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionCreatedObject1OptionsSetUserRootAttributesEnum, -) -from .event_stream_cloud_event_connection_created_object_1_options_token_endpoint_auth_method_enum import ( - EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointAuthMethodEnum, -) -from .event_stream_cloud_event_connection_created_object_1_options_token_endpoint_auth_signing_alg_enum import ( - EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointAuthSigningAlgEnum, -) -from .event_stream_cloud_event_connection_created_object_1_options_token_endpoint_jwtca_aud_format_enum import ( - EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointJwtcaAudFormatEnum, -) -from .event_stream_cloud_event_connection_created_object_1_options_type_enum import ( - EventStreamCloudEventConnectionCreatedObject1OptionsTypeEnum, -) -from .event_stream_cloud_event_connection_created_object_1_options_upstream_params import ( - EventStreamCloudEventConnectionCreatedObject1OptionsUpstreamParams, -) - - -class EventStreamCloudEventConnectionCreatedObject1Options(UniversalBaseModel): - """ - Options for the 'okta' connection - """ - - authorization_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow. - """ - - client_id: str = pydantic.Field() - """ - OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider. - """ - - connection_settings: typing.Optional[EventStreamCloudEventConnectionCreatedObject1OptionsConnectionSettings] = None - domain_aliases: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication. - """ - - dpop_signing_alg: typing.Optional[EventStreamCloudEventConnectionCreatedObject1OptionsDpopSigningAlgEnum] = None - federated_connections_access_tokens: typing.Optional[ - EventStreamCloudEventConnectionCreatedObject1OptionsFederatedConnectionsAccessTokens - ] = None - icon_url: typing.Optional[str] = pydantic.Field(default=None) - """ - https url of the icon to be shown - """ - - id_token_session_expiry_supported: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether the identity provider supports session expiry via the id_token. If true, the system will use the session_expiry claim in the id_token to determine session expiry. - """ - - id_token_signed_response_algs: typing.Optional[ - typing.List[EventStreamCloudEventConnectionCreatedObject1OptionsIdTokenSignedResponseAlgsItemEnum] - ] = pydantic.Field(default=None) - """ - List of algorithms allowed to verify the ID tokens. Applicable when strategy=oidc or okta. - """ - - issuer: typing.Optional[str] = pydantic.Field(default=None) - """ - The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider. - """ - - jwks_uri: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures. - """ - - non_persistent_attrs: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) - """ - - oidc_metadata: typing.Optional[EventStreamCloudEventConnectionCreatedObject1OptionsOidcMetadata] = None - schema_version: typing.Optional[EventStreamCloudEventConnectionCreatedObject1OptionsSchemaVersionEnum] = None - scope: typing.Optional[str] = pydantic.Field(default=None) - """ - Space-separated list of OAuth 2.0 scopes requested during authorization. Must include 'openid' (required by OIDC spec). Common values: 'openid profile email'. Additional scopes depend on the identity provider. - """ - - send_back_channel_nonce: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true and type is 'back_channel', includes a cryptographic nonce in authorization requests to prevent replay attacks. The identity provider must include this nonce in the ID token for validation. - """ - - set_user_root_attributes: typing.Optional[ - EventStreamCloudEventConnectionCreatedObject1OptionsSetUserRootAttributesEnum - ] = None - tenant_domain: typing.Optional[str] = pydantic.Field(default=None) - """ - Tenant domain - """ - - token_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow. - """ - - token_endpoint_auth_method: typing.Optional[ - EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointAuthMethodEnum - ] = None - token_endpoint_auth_signing_alg: typing.Optional[ - EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointAuthSigningAlgEnum - ] = None - token_endpoint_jwtca_aud_format: typing.Optional[ - EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointJwtcaAudFormatEnum - ] = None - upstream_params: typing.Optional[EventStreamCloudEventConnectionCreatedObject1OptionsUpstreamParams] = None - use_oauth_spec_scope: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="useOauthSpecScope"), - pydantic.Field( - alias="useOauthSpecScope", - description="When true, uses space-delimited scopes (per OAuth 2.0 spec) instead of comma-delimited when calling the identity provider's authorization endpoint. Only relevant when using the connection_scope parameter. See https://auth0.com/docs/authenticate/identity-providers/adding-scopes-for-an-external-idp#pass-scopes-to-authorize-endpoint", - ), - ] = None - """ - When true, uses space-delimited scopes (per OAuth 2.0 spec) instead of comma-delimited when calling the identity provider's authorization endpoint. Only relevant when using the connection_scope parameter. See https://auth0.com/docs/authenticate/identity-providers/adding-scopes-for-an-external-idp#pass-scopes-to-authorize-endpoint - """ - - userinfo_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token. - """ - - attribute_map: typing.Optional[EventStreamCloudEventConnectionCreatedObject1OptionsAttributeMap] = None - domain: typing.Optional[str] = pydantic.Field(default=None) - """ - Domain of the Okta organization (e.g., dev-123456.okta.com). Should be just the domain of the okta server with no scheme or trailing backslash. Discovery runs only when connection.options.oidc_metadata is empty and a domain is provided - """ - - type: typing.Optional[EventStreamCloudEventConnectionCreatedObject1OptionsTypeEnum] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_options_attribute_map.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_options_attribute_map.py deleted file mode 100644 index 2ce41217..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_options_attribute_map.py +++ /dev/null @@ -1,37 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_created_object_1_options_attribute_map_attributes import ( - EventStreamCloudEventConnectionCreatedObject1OptionsAttributeMapAttributes, -) -from .event_stream_cloud_event_connection_created_object_1_options_attribute_map_mapping_mode_enum import ( - EventStreamCloudEventConnectionCreatedObject1OptionsAttributeMapMappingModeEnum, -) - - -class EventStreamCloudEventConnectionCreatedObject1OptionsAttributeMap(UniversalBaseModel): - """ - Mapping of claims received from the identity provider (IdP) - """ - - attributes: typing.Optional[EventStreamCloudEventConnectionCreatedObject1OptionsAttributeMapAttributes] = None - userinfo_scope: typing.Optional[str] = pydantic.Field(default=None) - """ - Scopes to send to the IdP's Userinfo endpoint - """ - - mapping_mode: typing.Optional[EventStreamCloudEventConnectionCreatedObject1OptionsAttributeMapMappingModeEnum] = ( - None - ) - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_options_attribute_map_attributes.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_options_attribute_map_attributes.py deleted file mode 100644 index f27409e6..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_options_attribute_map_attributes.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedObject1OptionsAttributeMapAttributes = typing.Dict[str, typing.Any] -""" -Object containing mapping details for incoming claims -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_options_attribute_map_mapping_mode_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_options_attribute_map_mapping_mode_enum.py deleted file mode 100644 index 4455343e..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_options_attribute_map_mapping_mode_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedObject1OptionsAttributeMapMappingModeEnum = typing.Union[ - typing.Literal["basic_profile", "use_map"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_options_connection_settings.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_options_connection_settings.py deleted file mode 100644 index 6bb4cc48..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_options_connection_settings.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_created_object_1_options_connection_settings_pkce_enum import ( - EventStreamCloudEventConnectionCreatedObject1OptionsConnectionSettingsPkceEnum, -) - - -class EventStreamCloudEventConnectionCreatedObject1OptionsConnectionSettings(UniversalBaseModel): - """ - OAuth 2.0 PKCE (Proof Key for Code Exchange) settings. PKCE enhances security for public clients by preventing authorization code interception attacks. 'auto' (recommended) uses the strongest method supported by the IdP. - """ - - pkce: typing.Optional[EventStreamCloudEventConnectionCreatedObject1OptionsConnectionSettingsPkceEnum] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_options_connection_settings_pkce_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_options_connection_settings_pkce_enum.py deleted file mode 100644 index 996e44ab..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_options_connection_settings_pkce_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedObject1OptionsConnectionSettingsPkceEnum = typing.Union[ - typing.Literal["auto", "S256", "plain", "disabled"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_options_dpop_signing_alg_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_options_dpop_signing_alg_enum.py deleted file mode 100644 index e40c1b92..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_options_dpop_signing_alg_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedObject1OptionsDpopSigningAlgEnum = typing.Union[ - typing.Literal["ES256", "ES384", "ES512", "Ed25519"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_options_federated_connections_access_tokens.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_options_federated_connections_access_tokens.py deleted file mode 100644 index 71f4d52a..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_options_federated_connections_access_tokens.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionCreatedObject1OptionsFederatedConnectionsAccessTokens(UniversalBaseModel): - """ - Configuration for storing identity provider tokens in Auth0's Token Vault. When active, Auth0 securely stores access and refresh tokens from federated logins, enabling your application to make authenticated API calls on behalf of users. - """ - - active: bool = pydantic.Field() - """ - Enables refresh tokens and access tokens collection for federated connections - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_options_id_token_signed_response_algs_item_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_options_id_token_signed_response_algs_item_enum.py deleted file mode 100644 index e51e0f1b..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_options_id_token_signed_response_algs_item_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedObject1OptionsIdTokenSignedResponseAlgsItemEnum = typing.Union[ - typing.Literal["ES256", "ES384", "PS256", "PS384", "RS256", "RS384", "RS512"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_options_oidc_metadata.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_options_oidc_metadata.py deleted file mode 100644 index e201dbaa..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_options_oidc_metadata.py +++ /dev/null @@ -1,211 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionCreatedObject1OptionsOidcMetadata(UniversalBaseModel): - """ - OpenID Connect Provider Metadata as per https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata - """ - - acr_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the Authentication Context Class References that this OP supports - """ - - authorization_endpoint: str = pydantic.Field() - """ - URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow. - """ - - claim_types_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the Claim Types that the OpenID Provider supports. These Claim Types are described in Section 5.6 of OpenID Connect Core 1.0 [OpenID.Core]. If omitted, the implementation supports only normal Claims. - """ - - claims_locales_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Languages and scripts supported for values in Claims being returned, represented as a JSON array of BCP47 [RFC5646] language tag values. Not all languages and scripts are necessarily supported for all Claim values. - """ - - claims_parameter_supported: typing.Optional[bool] = pydantic.Field(default=None) - """ - Boolean value specifying whether the OP supports use of the claims parameter, with true indicating support. If omitted, the default value is false. - """ - - claims_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the Claim Names of the Claims that the OpenID Provider MAY be able to supply values for. Note that for privacy or other reasons, this might not be an exhaustive list. - """ - - code_challenge_methods_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636. - """ - - display_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used. - """ - - dpop_signing_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS signing algorithms (alg values) supported for DPoP proof JWT signing. - """ - - end_session_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's logout/end session endpoint. When configured as a static URL, users are redirected here after logging out from Auth0. Must use HTTPS scheme. - """ - - grant_types_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the OAuth 2.0 Grant Type values that this OP supports. Dynamic OpenID Providers MUST support the authorization_code and implicit Grant Type values and MAY support other Grant Types. If omitted, the default value is ["authorization_code", "implicit"]. - """ - - id_token_encryption_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT - """ - - id_token_encryption_enc_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for the ID Token to encode the Claims in a JWT [JWT]. - """ - - id_token_signing_alg_values_supported: typing.List[str] = pydantic.Field() - """ - A list of the JWS signing algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be included. The value none MAY be supported, but MUST NOT be used unless the Response Type used returns no ID Token from the Authorization Endpoint (such as when using the Authorization Code Flow). https://datatracker.ietf.org/doc/html/rfc7518 - """ - - issuer: str = pydantic.Field() - """ - The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider. - """ - - jwks_uri: str = pydantic.Field() - """ - URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures. - """ - - op_policy_uri: typing.Optional[str] = pydantic.Field(default=None) - """ - URL that the OpenID Provider provides to the person registering the Client to read about the OPs requirements on how the Relying Party can use the data provided by the OP. The registration process SHOULD display this URL to the person registering the Client if it is given. - """ - - op_tos_uri: typing.Optional[str] = pydantic.Field(default=None) - """ - URL that the OpenID Provider provides to the person registering the Client to read about OpenID Providers terms of service. The registration process SHOULD display this URL to the person registering the Client if it is given. - """ - - registration_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the OPs Dynamic Client Registration Endpoint. RECOMMENDED but not REQUIRED. https://openid.net/specs/openid-connect-discovery-1_0.html#OpenID.Registration - """ - - request_object_encryption_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference. - """ - - request_object_encryption_enc_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference. - """ - - request_object_signing_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for Request Objects, which are described in Section 6.1 of OpenID Connect Core 1.0 [OpenID.Core]. These algorithms are used both when the Request Object is passed by value (using the request parameter) and when it is passed by reference (using the request_uri parameter). Servers SHOULD support none and RS256. - """ - - request_parameter_supported: typing.Optional[bool] = pydantic.Field(default=None) - """ - Boolean value specifying whether the OP supports use of the request parameter, with true indicating support. If omitted, the default value is false. - """ - - request_uri_parameter_supported: typing.Optional[bool] = pydantic.Field(default=None) - """ - Boolean value specifying whether the OP supports use of the request_uri parameter, with true indicating support. If omitted, the default value is false. - """ - - require_request_uri_registration: typing.Optional[bool] = pydantic.Field(default=None) - """ - Boolean value specifying whether the OP requires use of the request_uri parameter. If omitted, the default value is false. - """ - - response_modes_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the OAuth 2.0 response_mode values that this OP supports. If omitted, the default for Dynamic OpenID Providers is ["query", "fragment"] - """ - - response_types_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the OAuth 2.0 response_type values that this OP supports. Dynamic OpenID Providers MUST support the code, id_token, and the token id_token Response Type values - """ - - scopes_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the OAuth 2.0 [RFC6749] scope values that this server supports. The server MUST support the openid scope value. Servers MAY choose not to advertise some supported scope values even when this parameter is used, although those defined in [OpenID.Core] SHOULD be listed, if supported. RECOMMENDED but not REQUIRED - """ - - service_documentation: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of a page containing human-readable information that developers might want or need to know when using the OpenID Provider. In particular, if the OpenID Provider does not support Dynamic Client Registration, then information on how to register Clients needs to be provided in this documentation. - """ - - subject_types_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the Subject Identifier types that this OP supports. Valid types include pairwise and public - """ - - token_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow. - """ - - token_endpoint_auth_methods_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of Client Authentication methods supported by this Token Endpoint. The options are client_secret_post, client_secret_basic, client_secret_jwt, and private_key_jwt, as described in Section 9 of OpenID Connect Core 1.0 [OpenID.Core]. Other authentication methods MAY be defined by extensions. If omitted, the default is client_secret_basic -- the HTTP Basic Authentication Scheme specified in Section 2.3.1 of OAuth 2.0 [RFC6749]. - """ - - token_endpoint_auth_signing_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used. - """ - - ui_locales_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Languages and scripts supported for the user interface, represented as a JSON array of BCP47 [RFC5646] language tag values. - """ - - userinfo_encryption_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE [JWE] encryption algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. - """ - - userinfo_encryption_enc_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (enc values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. - """ - - userinfo_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token. - """ - - userinfo_signing_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS [JWS] signing algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. The value none MAY be included. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_options_schema_version_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_options_schema_version_enum.py deleted file mode 100644 index 3d4f8f3c..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_options_schema_version_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedObject1OptionsSchemaVersionEnum = typing.Union[ - typing.Literal["openid-1.0.0", "oidc-v4"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_options_set_user_root_attributes_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_options_set_user_root_attributes_enum.py deleted file mode 100644 index e293bf36..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_options_set_user_root_attributes_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedObject1OptionsSetUserRootAttributesEnum = typing.Union[ - typing.Literal["on_each_login", "on_first_login", "never_on_login"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_options_token_endpoint_auth_method_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_options_token_endpoint_auth_method_enum.py deleted file mode 100644 index 9821224e..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_options_token_endpoint_auth_method_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointAuthMethodEnum = typing.Union[ - typing.Literal["client_secret_post", "private_key_jwt"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_options_token_endpoint_auth_signing_alg_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_options_token_endpoint_auth_signing_alg_enum.py deleted file mode 100644 index 1d000dab..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_options_token_endpoint_auth_signing_alg_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointAuthSigningAlgEnum = typing.Union[ - typing.Literal["ES256", "ES384", "PS256", "PS384", "RS256", "RS384", "RS512"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_options_token_endpoint_jwtca_aud_format_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_options_token_endpoint_jwtca_aud_format_enum.py deleted file mode 100644 index 18cac386..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_options_token_endpoint_jwtca_aud_format_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointJwtcaAudFormatEnum = typing.Union[ - typing.Literal["issuer", "token_endpoint"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_options_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_options_type_enum.py deleted file mode 100644 index 8fa45342..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_options_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedObject1OptionsTypeEnum = typing.Union[typing.Literal["back_channel"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_options_upstream_params.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_options_upstream_params.py deleted file mode 100644 index f3c073ee..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_options_upstream_params.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedObject1OptionsUpstreamParams = typing.Dict[str, typing.Any] -""" -Additional parameters to include in authorization requests sent to the identity provider. Useful for passing custom claims, selecting specific identity sources, or configuring provider-specific behavior. See https://auth0.com/docs/authenticate/identity-providers/pass-parameters-to-idps -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_strategy_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_strategy_enum.py deleted file mode 100644 index 77b09643..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_1_strategy_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedObject1StrategyEnum = typing.Union[typing.Literal["okta"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_2.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_2.py deleted file mode 100644 index 11a3ce00..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_2.py +++ /dev/null @@ -1,73 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_created_object_2_authentication import ( - EventStreamCloudEventConnectionCreatedObject2Authentication, -) -from .event_stream_cloud_event_connection_created_object_2_connected_accounts import ( - EventStreamCloudEventConnectionCreatedObject2ConnectedAccounts, -) -from .event_stream_cloud_event_connection_created_object_2_metadata import ( - EventStreamCloudEventConnectionCreatedObject2Metadata, -) -from .event_stream_cloud_event_connection_created_object_2_options import ( - EventStreamCloudEventConnectionCreatedObject2Options, -) -from .event_stream_cloud_event_connection_created_object_2_strategy_enum import ( - EventStreamCloudEventConnectionCreatedObject2StrategyEnum, -) - - -class EventStreamCloudEventConnectionCreatedObject2(UniversalBaseModel): - authentication: typing.Optional[EventStreamCloudEventConnectionCreatedObject2Authentication] = None - connected_accounts: typing.Optional[EventStreamCloudEventConnectionCreatedObject2ConnectedAccounts] = None - display_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Connection name used in the new universal login experience - """ - - enabled_clients: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. - """ - - id: str = pydantic.Field() - """ - The connection's identifier - """ - - is_domain_connection: typing.Optional[bool] = pydantic.Field(default=None) - """ - true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) - """ - - metadata: typing.Optional[EventStreamCloudEventConnectionCreatedObject2Metadata] = None - name: str = pydantic.Field() - """ - The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 - """ - - realms: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. - """ - - options: typing.Optional[EventStreamCloudEventConnectionCreatedObject2Options] = None - show_as_button: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to `false`. - """ - - strategy: EventStreamCloudEventConnectionCreatedObject2StrategyEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_2_authentication.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_2_authentication.py deleted file mode 100644 index 278b0d2d..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_2_authentication.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionCreatedObject2Authentication(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for authentication during login. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_2_connected_accounts.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_2_connected_accounts.py deleted file mode 100644 index c326b58f..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_2_connected_accounts.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionCreatedObject2ConnectedAccounts(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for connected accounts and Token Vault. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_2_metadata.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_2_metadata.py deleted file mode 100644 index ee10aa59..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_2_metadata.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionCreatedObject2Metadata(UniversalBaseModel): - """ - Metadata associated with the connection in the form of an object with string values (max 255 chars). Maximum of 10 metadata properties allowed. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_2_options.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_2_options.py deleted file mode 100644 index 48431000..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_2_options.py +++ /dev/null @@ -1,298 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_connection_created_object_2_options_assertion_decryption_settings import ( - EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettings, -) -from .event_stream_cloud_event_connection_created_object_2_options_digest_algorithm_enum import ( - EventStreamCloudEventConnectionCreatedObject2OptionsDigestAlgorithmEnum, -) -from .event_stream_cloud_event_connection_created_object_2_options_fields_map import ( - EventStreamCloudEventConnectionCreatedObject2OptionsFieldsMap, -) -from .event_stream_cloud_event_connection_created_object_2_options_idpinitiated import ( - EventStreamCloudEventConnectionCreatedObject2OptionsIdpinitiated, -) -from .event_stream_cloud_event_connection_created_object_2_options_oidc_metadata import ( - EventStreamCloudEventConnectionCreatedObject2OptionsOidcMetadata, -) -from .event_stream_cloud_event_connection_created_object_2_options_protocol_binding_enum import ( - EventStreamCloudEventConnectionCreatedObject2OptionsProtocolBindingEnum, -) -from .event_stream_cloud_event_connection_created_object_2_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionCreatedObject2OptionsSetUserRootAttributesEnum, -) -from .event_stream_cloud_event_connection_created_object_2_options_signature_algorithm_enum import ( - EventStreamCloudEventConnectionCreatedObject2OptionsSignatureAlgorithmEnum, -) -from .event_stream_cloud_event_connection_created_object_2_options_subject import ( - EventStreamCloudEventConnectionCreatedObject2OptionsSubject, -) -from .event_stream_cloud_event_connection_created_object_2_options_upstream_params import ( - EventStreamCloudEventConnectionCreatedObject2OptionsUpstreamParams, -) - - -class EventStreamCloudEventConnectionCreatedObject2Options(UniversalBaseModel): - """ - Options for the 'samlp' connection - """ - - assertion_decryption_settings: typing.Optional[ - EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettings - ] = None - cert: typing.Optional[str] = pydantic.Field(default=None) - """ - X.509 signing certificate from the identity provider in .der format. Used to validate signatures in SAML Responses and Assertions. This is an alternative to signingCert and is kept for backward compatibility. Prefer using signingCert instead. - """ - - cert_rollover_notification: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Timestamp of the last certificate expiring soon notification. - """ - - digest_algorithm: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventConnectionCreatedObject2OptionsDigestAlgorithmEnum], - FieldMetadata(alias="digestAlgorithm"), - pydantic.Field(alias="digestAlgorithm"), - ] = None - domain_aliases: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Domain aliases for the connection - """ - - entity_id: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="entityId"), - pydantic.Field( - alias="entityId", - description="The entity identifier (Issuer) for the SAML Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'. This value is included in SAML AuthnRequest messages sent to the identity provider.", - ), - ] = None - """ - The entity identifier (Issuer) for the SAML Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'. This value is included in SAML AuthnRequest messages sent to the identity provider. - """ - - expires: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - ISO 8601 formatted datetime indicating when the identity provider's signing certificate expires. - """ - - icon_url: typing.Optional[str] = pydantic.Field(default=None) - """ - URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows. - """ - - idpinitiated: typing.Optional[EventStreamCloudEventConnectionCreatedObject2OptionsIdpinitiated] = None - non_persistent_attrs: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) - """ - - protocol_binding: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventConnectionCreatedObject2OptionsProtocolBindingEnum], - FieldMetadata(alias="protocolBinding"), - pydantic.Field(alias="protocolBinding"), - ] = None - set_user_root_attributes: typing.Optional[ - EventStreamCloudEventConnectionCreatedObject2OptionsSetUserRootAttributesEnum - ] = None - signature_algorithm: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventConnectionCreatedObject2OptionsSignatureAlgorithmEnum], - FieldMetadata(alias="signatureAlgorithm"), - pydantic.Field(alias="signatureAlgorithm"), - ] = None - sign_in_endpoint: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="signInEndpoint"), - pydantic.Field( - alias="signInEndpoint", - description="Identity provider's SAML SingleSignOnService endpoint URL where Auth0 sends SAML authentication requests. This is the primary login URL for the SAML connection. Required unless using metadataUrl or metadataXml.", - ), - ] = None - """ - Identity provider's SAML SingleSignOnService endpoint URL where Auth0 sends SAML authentication requests. This is the primary login URL for the SAML connection. Required unless using metadataUrl or metadataXml. - """ - - signing_cert: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="signingCert"), - pydantic.Field( - alias="signingCert", - description="Base64-encoded X.509 certificate from the identity provider used to validate signatures in SAML responses and assertions. The certificate is decoded and used for cryptographic signature verification.", - ), - ] = None - """ - Base64-encoded X.509 certificate from the identity provider used to validate signatures in SAML responses and assertions. The certificate is decoded and used for cryptographic signature verification. - """ - - sign_saml_request: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="signSAMLRequest"), - pydantic.Field( - alias="signSAMLRequest", - description="When true, Auth0 signs SAML authentication requests using the connection's signing key. The signature includes the request's digest and is validated by the identity provider. Defaults to false (unsigned requests).", - ), - ] = None - """ - When true, Auth0 signs SAML authentication requests using the connection's signing key. The signature includes the request's digest and is validated by the identity provider. Defaults to false (unsigned requests). - """ - - subject: typing.Optional[EventStreamCloudEventConnectionCreatedObject2OptionsSubject] = None - tenant_domain: typing.Optional[str] = pydantic.Field(default=None) - """ - For SAML connections, the tenant domain used to construct the login endpoint URL. Can be a string for single-tenant or an array of strings for multi-tenant validation. - """ - - thumbprints: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - SHA-1 thumbprints (fingerprints) of the identity provider's signing certificates. Automatically computed from signingCert during connection creation. Each thumbprint must be a 40-character hexadecimal string. - """ - - upstream_params: typing.Optional[EventStreamCloudEventConnectionCreatedObject2OptionsUpstreamParams] = None - debug: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true, enables detailed SAML debugging by issuing 'w' (warning) events in tenant logs containing SAML request/response details. WARNING: Potentially exposes sensitive user information (PII, credentials) and should only be enabled temporarily for debugging purposes. - """ - - deflate: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true, enables DEFLATE compression for SAML requests sent via HTTP-Redirect binding. - """ - - destination_url: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="destinationUrl"), - pydantic.Field( - alias="destinationUrl", - description="The URL where Auth0 will send SAML authentication requests (the Identity Provider's SSO URL). Must be a valid HTTPS URL.", - ), - ] = None - """ - The URL where Auth0 will send SAML authentication requests (the Identity Provider's SSO URL). Must be a valid HTTPS URL. - """ - - disable_fields_map_fix: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="disableFieldsMapFix"), - pydantic.Field( - alias="disableFieldsMapFix", - description="When true, disables the automatic correction of the fieldsMap configuration to ensure proper mapping of SAML attributes to user profile fields. Defaults to false (fieldsMap fix enabled).", - ), - ] = None - """ - When true, disables the automatic correction of the fieldsMap configuration to ensure proper mapping of SAML attributes to user profile fields. Defaults to false (fieldsMap fix enabled). - """ - - disable_signout: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="disableSignout"), - pydantic.Field( - alias="disableSignout", - description="When true, disables sending SAML logout requests (SingleLogoutService) to the identity provider during user sign-out. The user will be logged out of Auth0 but will remain logged into the identity provider. Defaults to false (federated logout enabled).", - ), - ] = None - """ - When true, disables sending SAML logout requests (SingleLogoutService) to the identity provider during user sign-out. The user will be logged out of Auth0 but will remain logged into the identity provider. Defaults to false (federated logout enabled). - """ - - discovery_url: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's OIDC Discovery endpoint (/.well-known/openid-configuration). When provided and oidc_metadata is empty, Auth0 automatically retrieves the provider's configuration including endpoints and supported features. Used with Cross App Access. - """ - - fields_map: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventConnectionCreatedObject2OptionsFieldsMap], - FieldMetadata(alias="fieldsMap"), - pydantic.Field(alias="fieldsMap"), - ] = None - fields_map_json_raw: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="fieldsMapJsonRaw"), - pydantic.Field( - alias="fieldsMapJsonRaw", - description="Raw JSON string representation of the fieldsMap configuration. Used internally for storage and retrieval of the fieldsMap object.", - ), - ] = None - """ - Raw JSON string representation of the fieldsMap configuration. Used internally for storage and retrieval of the fieldsMap object. - """ - - global_token_revocation_jwt_iss: typing.Optional[str] = pydantic.Field(default=None) - """ - Expected 'iss' (Issuer) claim value for JWT tokens in Global Token Revocation requests from the identity provider. When configured, Auth0 validates the JWT issuer matches this value before processing token revocation. Must be used together with global_token_revocation_jwt_sub. - """ - - global_token_revocation_jwt_sub: typing.Optional[str] = pydantic.Field(default=None) - """ - Expected 'sub' (Subject) claim value for JWT tokens in Global Token Revocation requests from the identity provider. When configured, Auth0 validates the JWT subject matches this value before processing token revocation. Must be used together with global_token_revocation_jwt_iss. - """ - - metadata_url: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="metadataUrl"), - pydantic.Field( - alias="metadataUrl", - description="HTTPS URL to the identity provider's SAML metadata document. When provided, Auth0 automatically fetches and parses the metadata to extract signInEndpoint, signOutEndpoint, signingCert, signSAMLRequest, and protocolBinding. Use metadataUrl OR metadataXml, not both.", - ), - ] = None - """ - HTTPS URL to the identity provider's SAML metadata document. When provided, Auth0 automatically fetches and parses the metadata to extract signInEndpoint, signOutEndpoint, signingCert, signSAMLRequest, and protocolBinding. Use metadataUrl OR metadataXml, not both. - """ - - oidc_metadata: typing.Optional[EventStreamCloudEventConnectionCreatedObject2OptionsOidcMetadata] = None - recipient_url: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="recipientUrl"), - pydantic.Field( - alias="recipientUrl", - description="The URL where Auth0 will send SAML authentication requests (the Identity Provider's SSO URL). Must be a valid HTTPS URL.", - ), - ] = None - """ - The URL where Auth0 will send SAML authentication requests (the Identity Provider's SSO URL). Must be a valid HTTPS URL. - """ - - request_template: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="requestTemplate"), - pydantic.Field( - alias="requestTemplate", - description="Custom XML template for SAML authentication requests. Supports variable substitution using @@variableName@@ syntax. When not provided, uses default SAML AuthnRequest template. See https://auth0.com/docs/authenticate/protocols/saml/saml-sso-integrations/configure-auth0-saml-service-provider#customize-the-request-template", - ), - ] = None - """ - Custom XML template for SAML authentication requests. Supports variable substitution using @@variableName@@ syntax. When not provided, uses default SAML AuthnRequest template. See https://auth0.com/docs/authenticate/protocols/saml/saml-sso-integrations/configure-auth0-saml-service-provider#customize-the-request-template - """ - - sign_out_endpoint: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="signOutEndpoint"), - pydantic.Field( - alias="signOutEndpoint", - description="Identity provider's SAML SingleLogoutService endpoint URL where Auth0 sends logout requests for federated sign-out. When not provided, defaults to signInEndpoint. Only used if disableSignout is false.", - ), - ] = None - """ - Identity provider's SAML SingleLogoutService endpoint URL where Auth0 sends logout requests for federated sign-out. When not provided, defaults to signInEndpoint. Only used if disableSignout is false. - """ - - user_id_attribute: typing.Optional[str] = pydantic.Field(default=None) - """ - Custom SAML assertion attribute to use as the unique user identifier. When provided, this attribute is prepended to the default user_id mapping list with highest priority. Accepts a string (single SAML attribute name). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_2_options_assertion_decryption_settings.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_2_options_assertion_decryption_settings.py deleted file mode 100644 index 56fe6e39..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_2_options_assertion_decryption_settings.py +++ /dev/null @@ -1,33 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_created_object_2_options_assertion_decryption_settings_algorithm_profile_enum import ( - EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum, -) - - -class EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettings(UniversalBaseModel): - """ - Settings for SAML assertion decryption. - """ - - algorithm_exceptions: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of insecure algorithms to allow for SAML assertion decryption. - """ - - algorithm_profile: ( - EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum - ) - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_2_options_assertion_decryption_settings_algorithm_profile_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_2_options_assertion_decryption_settings_algorithm_profile_enum.py deleted file mode 100644 index e01ace1f..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_2_options_assertion_decryption_settings_algorithm_profile_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum = typing.Union[ - typing.Literal["v2026-1"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_2_options_digest_algorithm_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_2_options_digest_algorithm_enum.py deleted file mode 100644 index 5e32a39f..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_2_options_digest_algorithm_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedObject2OptionsDigestAlgorithmEnum = typing.Union[ - typing.Literal["sha1", "sha256"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_2_options_fields_map.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_2_options_fields_map.py deleted file mode 100644 index 98e9d940..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_2_options_fields_map.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedObject2OptionsFieldsMap = typing.Dict[str, typing.Any] -""" -Maps SAML assertion attributes from the identity provider to Auth0 user profile attributes. Format: { 'auth0_field': 'saml_attribute' } or { 'auth0_field': ['saml_attr1', 'saml_attr2'] } for fallback options. Merged with default mappings for email, name, given_name, family_name, and groups. -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_2_options_idpinitiated.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_2_options_idpinitiated.py deleted file mode 100644 index 568daf0c..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_2_options_idpinitiated.py +++ /dev/null @@ -1,42 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_created_object_2_options_idpinitiated_client_protocol_enum import ( - EventStreamCloudEventConnectionCreatedObject2OptionsIdpinitiatedClientProtocolEnum, -) - - -class EventStreamCloudEventConnectionCreatedObject2OptionsIdpinitiated(UniversalBaseModel): - """ - Configuration for IdP-Initiated SAML Single Sign-On. When enabled, allows users to initiate login directly from their SAML identity provider without first visiting Auth0. The IdP must include the connection parameter in the post-back URL (Assertion Consumer Service URL). - """ - - client_authorizequery: typing.Optional[str] = pydantic.Field(default=None) - """ - The query string sent to the default application - """ - - client_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The client ID to use for IdP-initiated login requests. - """ - - client_protocol: typing.Optional[ - EventStreamCloudEventConnectionCreatedObject2OptionsIdpinitiatedClientProtocolEnum - ] = None - enabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true, enables IdP-initiated login support for this SAML connection. Allows users to log in directly from the identity provider without first visiting Auth0. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_2_options_idpinitiated_client_protocol_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_2_options_idpinitiated_client_protocol_enum.py deleted file mode 100644 index 4d6c91e4..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_2_options_idpinitiated_client_protocol_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedObject2OptionsIdpinitiatedClientProtocolEnum = typing.Union[ - typing.Literal["oidc", "samlp", "wsfed"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_2_options_oidc_metadata.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_2_options_oidc_metadata.py deleted file mode 100644 index aaaa6b98..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_2_options_oidc_metadata.py +++ /dev/null @@ -1,211 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionCreatedObject2OptionsOidcMetadata(UniversalBaseModel): - """ - OpenID Connect Provider Metadata as per https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata. Used with Cross App Access. - """ - - acr_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the Authentication Context Class References that this OP supports - """ - - authorization_endpoint: str = pydantic.Field() - """ - URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow. - """ - - claim_types_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the Claim Types that the OpenID Provider supports. These Claim Types are described in Section 5.6 of OpenID Connect Core 1.0 [OpenID.Core]. If omitted, the implementation supports only normal Claims. - """ - - claims_locales_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Languages and scripts supported for values in Claims being returned, represented as a JSON array of BCP47 [RFC5646] language tag values. Not all languages and scripts are necessarily supported for all Claim values. - """ - - claims_parameter_supported: typing.Optional[bool] = pydantic.Field(default=None) - """ - Boolean value specifying whether the OP supports use of the claims parameter, with true indicating support. If omitted, the default value is false. - """ - - claims_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the Claim Names of the Claims that the OpenID Provider MAY be able to supply values for. Note that for privacy or other reasons, this might not be an exhaustive list. - """ - - code_challenge_methods_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636. - """ - - display_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used. - """ - - dpop_signing_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS signing algorithms (alg values) supported for DPoP proof JWT signing. - """ - - end_session_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's logout/end session endpoint. When configured as a static URL, users are redirected here after logging out from Auth0. Must use HTTPS scheme. - """ - - grant_types_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the OAuth 2.0 Grant Type values that this OP supports. Dynamic OpenID Providers MUST support the authorization_code and implicit Grant Type values and MAY support other Grant Types. If omitted, the default value is ["authorization_code", "implicit"]. - """ - - id_token_encryption_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT - """ - - id_token_encryption_enc_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for the ID Token to encode the Claims in a JWT [JWT]. - """ - - id_token_signing_alg_values_supported: typing.List[str] = pydantic.Field() - """ - A list of the JWS signing algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be included. The value none MAY be supported, but MUST NOT be used unless the Response Type used returns no ID Token from the Authorization Endpoint (such as when using the Authorization Code Flow). https://datatracker.ietf.org/doc/html/rfc7518 - """ - - issuer: str = pydantic.Field() - """ - The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider. - """ - - jwks_uri: str = pydantic.Field() - """ - URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures. - """ - - op_policy_uri: typing.Optional[str] = pydantic.Field(default=None) - """ - URL that the OpenID Provider provides to the person registering the Client to read about the OPs requirements on how the Relying Party can use the data provided by the OP. The registration process SHOULD display this URL to the person registering the Client if it is given. - """ - - op_tos_uri: typing.Optional[str] = pydantic.Field(default=None) - """ - URL that the OpenID Provider provides to the person registering the Client to read about OpenID Providers terms of service. The registration process SHOULD display this URL to the person registering the Client if it is given. - """ - - registration_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the OPs Dynamic Client Registration Endpoint. RECOMMENDED but not REQUIRED. https://openid.net/specs/openid-connect-discovery-1_0.html#OpenID.Registration - """ - - request_object_encryption_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference. - """ - - request_object_encryption_enc_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference. - """ - - request_object_signing_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for Request Objects, which are described in Section 6.1 of OpenID Connect Core 1.0 [OpenID.Core]. These algorithms are used both when the Request Object is passed by value (using the request parameter) and when it is passed by reference (using the request_uri parameter). Servers SHOULD support none and RS256. - """ - - request_parameter_supported: typing.Optional[bool] = pydantic.Field(default=None) - """ - Boolean value specifying whether the OP supports use of the request parameter, with true indicating support. If omitted, the default value is false. - """ - - request_uri_parameter_supported: typing.Optional[bool] = pydantic.Field(default=None) - """ - Boolean value specifying whether the OP supports use of the request_uri parameter, with true indicating support. If omitted, the default value is false. - """ - - require_request_uri_registration: typing.Optional[bool] = pydantic.Field(default=None) - """ - Boolean value specifying whether the OP requires use of the request_uri parameter. If omitted, the default value is false. - """ - - response_modes_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the OAuth 2.0 response_mode values that this OP supports. If omitted, the default for Dynamic OpenID Providers is ["query", "fragment"] - """ - - response_types_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the OAuth 2.0 response_type values that this OP supports. Dynamic OpenID Providers MUST support the code, id_token, and the token id_token Response Type values - """ - - scopes_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the OAuth 2.0 [RFC6749] scope values that this server supports. The server MUST support the openid scope value. Servers MAY choose not to advertise some supported scope values even when this parameter is used, although those defined in [OpenID.Core] SHOULD be listed, if supported. RECOMMENDED but not REQUIRED - """ - - service_documentation: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of a page containing human-readable information that developers might want or need to know when using the OpenID Provider. In particular, if the OpenID Provider does not support Dynamic Client Registration, then information on how to register Clients needs to be provided in this documentation. - """ - - subject_types_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the Subject Identifier types that this OP supports. Valid types include pairwise and public - """ - - token_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow. - """ - - token_endpoint_auth_methods_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of Client Authentication methods supported by this Token Endpoint. The options are client_secret_post, client_secret_basic, client_secret_jwt, and private_key_jwt, as described in Section 9 of OpenID Connect Core 1.0 [OpenID.Core]. Other authentication methods MAY be defined by extensions. If omitted, the default is client_secret_basic -- the HTTP Basic Authentication Scheme specified in Section 2.3.1 of OAuth 2.0 [RFC6749]. - """ - - token_endpoint_auth_signing_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used. - """ - - ui_locales_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Languages and scripts supported for the user interface, represented as a JSON array of BCP47 [RFC5646] language tag values. - """ - - userinfo_encryption_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE [JWE] encryption algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. - """ - - userinfo_encryption_enc_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (enc values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. - """ - - userinfo_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token. - """ - - userinfo_signing_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS [JWS] signing algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. The value none MAY be included. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_2_options_protocol_binding_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_2_options_protocol_binding_enum.py deleted file mode 100644 index 89d15b19..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_2_options_protocol_binding_enum.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedObject2OptionsProtocolBindingEnum = typing.Union[ - typing.Literal[ - "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST", "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect" - ], - typing.Any, -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_2_options_set_user_root_attributes_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_2_options_set_user_root_attributes_enum.py deleted file mode 100644 index f878ea1e..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_2_options_set_user_root_attributes_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedObject2OptionsSetUserRootAttributesEnum = typing.Union[ - typing.Literal["on_each_login", "on_first_login", "never_on_login"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_2_options_signature_algorithm_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_2_options_signature_algorithm_enum.py deleted file mode 100644 index 196ecf16..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_2_options_signature_algorithm_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedObject2OptionsSignatureAlgorithmEnum = typing.Union[ - typing.Literal["rsa-sha1", "rsa-sha256"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_2_options_subject.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_2_options_subject.py deleted file mode 100644 index 266587b9..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_2_options_subject.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionCreatedObject2OptionsSubject(UniversalBaseModel): - """ - Certificate Subject Distinguished Name (DN) extracted from the identity provider's signing certificate. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_2_options_upstream_params.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_2_options_upstream_params.py deleted file mode 100644 index 45734370..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_2_options_upstream_params.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedObject2OptionsUpstreamParams = typing.Dict[str, typing.Any] -""" -Additional parameters to include in authorization requests sent to the identity provider. Useful for passing custom claims, selecting specific identity sources, or configuring provider-specific behavior. See https://auth0.com/docs/authenticate/identity-providers/pass-parameters-to-idps -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_2_strategy_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_2_strategy_enum.py deleted file mode 100644 index 2530ab81..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_2_strategy_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedObject2StrategyEnum = typing.Union[typing.Literal["samlp"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_3.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_3.py deleted file mode 100644 index 2894a987..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_3.py +++ /dev/null @@ -1,73 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_created_object_3_authentication import ( - EventStreamCloudEventConnectionCreatedObject3Authentication, -) -from .event_stream_cloud_event_connection_created_object_3_connected_accounts import ( - EventStreamCloudEventConnectionCreatedObject3ConnectedAccounts, -) -from .event_stream_cloud_event_connection_created_object_3_metadata import ( - EventStreamCloudEventConnectionCreatedObject3Metadata, -) -from .event_stream_cloud_event_connection_created_object_3_options import ( - EventStreamCloudEventConnectionCreatedObject3Options, -) -from .event_stream_cloud_event_connection_created_object_3_strategy_enum import ( - EventStreamCloudEventConnectionCreatedObject3StrategyEnum, -) - - -class EventStreamCloudEventConnectionCreatedObject3(UniversalBaseModel): - authentication: typing.Optional[EventStreamCloudEventConnectionCreatedObject3Authentication] = None - connected_accounts: typing.Optional[EventStreamCloudEventConnectionCreatedObject3ConnectedAccounts] = None - display_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Connection name used in the new universal login experience - """ - - enabled_clients: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. - """ - - id: str = pydantic.Field() - """ - The connection's identifier - """ - - is_domain_connection: typing.Optional[bool] = pydantic.Field(default=None) - """ - true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) - """ - - metadata: typing.Optional[EventStreamCloudEventConnectionCreatedObject3Metadata] = None - name: str = pydantic.Field() - """ - The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 - """ - - realms: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. - """ - - options: typing.Optional[EventStreamCloudEventConnectionCreatedObject3Options] = None - show_as_button: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to `false`. - """ - - strategy: EventStreamCloudEventConnectionCreatedObject3StrategyEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_3_authentication.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_3_authentication.py deleted file mode 100644 index b3917cbc..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_3_authentication.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionCreatedObject3Authentication(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for authentication during login. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_3_connected_accounts.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_3_connected_accounts.py deleted file mode 100644 index 74bc95cc..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_3_connected_accounts.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionCreatedObject3ConnectedAccounts(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for connected accounts and Token Vault. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_3_metadata.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_3_metadata.py deleted file mode 100644 index 2c9f1294..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_3_metadata.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionCreatedObject3Metadata(UniversalBaseModel): - """ - Metadata associated with the connection in the form of an object with string values (max 255 chars). Maximum of 10 metadata properties allowed. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_3_options.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_3_options.py deleted file mode 100644 index 9783e96f..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_3_options.py +++ /dev/null @@ -1,172 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_connection_created_object_3_options_assertion_decryption_settings import ( - EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettings, -) -from .event_stream_cloud_event_connection_created_object_3_options_digest_algorithm_enum import ( - EventStreamCloudEventConnectionCreatedObject3OptionsDigestAlgorithmEnum, -) -from .event_stream_cloud_event_connection_created_object_3_options_idpinitiated import ( - EventStreamCloudEventConnectionCreatedObject3OptionsIdpinitiated, -) -from .event_stream_cloud_event_connection_created_object_3_options_protocol_binding_enum import ( - EventStreamCloudEventConnectionCreatedObject3OptionsProtocolBindingEnum, -) -from .event_stream_cloud_event_connection_created_object_3_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionCreatedObject3OptionsSetUserRootAttributesEnum, -) -from .event_stream_cloud_event_connection_created_object_3_options_signature_algorithm_enum import ( - EventStreamCloudEventConnectionCreatedObject3OptionsSignatureAlgorithmEnum, -) -from .event_stream_cloud_event_connection_created_object_3_options_subject import ( - EventStreamCloudEventConnectionCreatedObject3OptionsSubject, -) -from .event_stream_cloud_event_connection_created_object_3_options_upstream_params import ( - EventStreamCloudEventConnectionCreatedObject3OptionsUpstreamParams, -) - - -class EventStreamCloudEventConnectionCreatedObject3Options(UniversalBaseModel): - """ - Options for the 'pingfederate' connection - """ - - assertion_decryption_settings: typing.Optional[ - EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettings - ] = None - cert: typing.Optional[str] = pydantic.Field(default=None) - """ - X.509 signing certificate from the identity provider in .der format. Used to validate signatures in SAML Responses and Assertions. This is an alternative to signingCert and is kept for backward compatibility. Prefer using signingCert instead. - """ - - cert_rollover_notification: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Timestamp of the last certificate expiring soon notification. - """ - - digest_algorithm: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventConnectionCreatedObject3OptionsDigestAlgorithmEnum], - FieldMetadata(alias="digestAlgorithm"), - pydantic.Field(alias="digestAlgorithm"), - ] = None - domain_aliases: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Domain aliases for the connection - """ - - entity_id: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="entityId"), - pydantic.Field( - alias="entityId", - description="The entity identifier (Issuer) for the SAML Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'. This value is included in SAML AuthnRequest messages sent to the identity provider.", - ), - ] = None - """ - The entity identifier (Issuer) for the SAML Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'. This value is included in SAML AuthnRequest messages sent to the identity provider. - """ - - expires: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - ISO 8601 formatted datetime indicating when the identity provider's signing certificate expires. - """ - - icon_url: typing.Optional[str] = pydantic.Field(default=None) - """ - URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows. - """ - - idpinitiated: typing.Optional[EventStreamCloudEventConnectionCreatedObject3OptionsIdpinitiated] = None - non_persistent_attrs: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) - """ - - protocol_binding: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventConnectionCreatedObject3OptionsProtocolBindingEnum], - FieldMetadata(alias="protocolBinding"), - pydantic.Field(alias="protocolBinding"), - ] = None - set_user_root_attributes: typing.Optional[ - EventStreamCloudEventConnectionCreatedObject3OptionsSetUserRootAttributesEnum - ] = None - signature_algorithm: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventConnectionCreatedObject3OptionsSignatureAlgorithmEnum], - FieldMetadata(alias="signatureAlgorithm"), - pydantic.Field(alias="signatureAlgorithm"), - ] = None - sign_in_endpoint: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="signInEndpoint"), - pydantic.Field( - alias="signInEndpoint", - description="Identity provider's SAML SingleSignOnService endpoint URL where Auth0 sends SAML authentication requests. This is the primary login URL for the SAML connection. Required unless using metadataUrl or metadataXml.", - ), - ] = None - """ - Identity provider's SAML SingleSignOnService endpoint URL where Auth0 sends SAML authentication requests. This is the primary login URL for the SAML connection. Required unless using metadataUrl or metadataXml. - """ - - signing_cert: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="signingCert"), - pydantic.Field( - alias="signingCert", - description="Base64-encoded X.509 certificate from the identity provider used to validate signatures in SAML responses and assertions. The certificate is decoded and used for cryptographic signature verification.", - ), - ] = None - """ - Base64-encoded X.509 certificate from the identity provider used to validate signatures in SAML responses and assertions. The certificate is decoded and used for cryptographic signature verification. - """ - - sign_saml_request: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="signSAMLRequest"), - pydantic.Field( - alias="signSAMLRequest", - description="When true, Auth0 signs SAML authentication requests using the connection's signing key. The signature includes the request's digest and is validated by the identity provider. Defaults to false (unsigned requests).", - ), - ] = None - """ - When true, Auth0 signs SAML authentication requests using the connection's signing key. The signature includes the request's digest and is validated by the identity provider. Defaults to false (unsigned requests). - """ - - subject: typing.Optional[EventStreamCloudEventConnectionCreatedObject3OptionsSubject] = None - tenant_domain: typing.Optional[str] = pydantic.Field(default=None) - """ - For SAML connections, the tenant domain used to construct the login endpoint URL. Can be a string for single-tenant or an array of strings for multi-tenant validation. - """ - - thumbprints: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - SHA-1 thumbprints (fingerprints) of the identity provider's signing certificates. Automatically computed from signingCert during connection creation. Each thumbprint must be a 40-character hexadecimal string. - """ - - upstream_params: typing.Optional[EventStreamCloudEventConnectionCreatedObject3OptionsUpstreamParams] = None - ping_federate_base_url: typing_extensions.Annotated[ - str, - FieldMetadata(alias="pingFederateBaseUrl"), - pydantic.Field( - alias="pingFederateBaseUrl", - description="URL provided by PingFederate which returns information used for creating the connection", - ), - ] - """ - URL provided by PingFederate which returns information used for creating the connection - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_3_options_assertion_decryption_settings.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_3_options_assertion_decryption_settings.py deleted file mode 100644 index 0fd637f7..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_3_options_assertion_decryption_settings.py +++ /dev/null @@ -1,33 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_created_object_3_options_assertion_decryption_settings_algorithm_profile_enum import ( - EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum, -) - - -class EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettings(UniversalBaseModel): - """ - Settings for SAML assertion decryption. - """ - - algorithm_exceptions: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of insecure algorithms to allow for SAML assertion decryption. - """ - - algorithm_profile: ( - EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum - ) - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_3_options_assertion_decryption_settings_algorithm_profile_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_3_options_assertion_decryption_settings_algorithm_profile_enum.py deleted file mode 100644 index 0e422e97..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_3_options_assertion_decryption_settings_algorithm_profile_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum = typing.Union[ - typing.Literal["v2026-1"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_3_options_digest_algorithm_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_3_options_digest_algorithm_enum.py deleted file mode 100644 index a76e655f..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_3_options_digest_algorithm_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedObject3OptionsDigestAlgorithmEnum = typing.Union[ - typing.Literal["sha1", "sha256"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_3_options_idpinitiated.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_3_options_idpinitiated.py deleted file mode 100644 index 8c99ac01..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_3_options_idpinitiated.py +++ /dev/null @@ -1,42 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_created_object_3_options_idpinitiated_client_protocol_enum import ( - EventStreamCloudEventConnectionCreatedObject3OptionsIdpinitiatedClientProtocolEnum, -) - - -class EventStreamCloudEventConnectionCreatedObject3OptionsIdpinitiated(UniversalBaseModel): - """ - Configuration for IdP-Initiated SAML Single Sign-On. When enabled, allows users to initiate login directly from their SAML identity provider without first visiting Auth0. The IdP must include the connection parameter in the post-back URL (Assertion Consumer Service URL). - """ - - client_authorizequery: typing.Optional[str] = pydantic.Field(default=None) - """ - The query string sent to the default application - """ - - client_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The client ID to use for IdP-initiated login requests. - """ - - client_protocol: typing.Optional[ - EventStreamCloudEventConnectionCreatedObject3OptionsIdpinitiatedClientProtocolEnum - ] = None - enabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true, enables IdP-initiated login support for this SAML connection. Allows users to log in directly from the identity provider without first visiting Auth0. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_3_options_idpinitiated_client_protocol_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_3_options_idpinitiated_client_protocol_enum.py deleted file mode 100644 index a99aa1a5..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_3_options_idpinitiated_client_protocol_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedObject3OptionsIdpinitiatedClientProtocolEnum = typing.Union[ - typing.Literal["oidc", "samlp", "wsfed"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_3_options_protocol_binding_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_3_options_protocol_binding_enum.py deleted file mode 100644 index 7c2a6e79..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_3_options_protocol_binding_enum.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedObject3OptionsProtocolBindingEnum = typing.Union[ - typing.Literal[ - "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST", "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect" - ], - typing.Any, -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_3_options_set_user_root_attributes_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_3_options_set_user_root_attributes_enum.py deleted file mode 100644 index 0587cf6f..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_3_options_set_user_root_attributes_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedObject3OptionsSetUserRootAttributesEnum = typing.Union[ - typing.Literal["on_each_login", "on_first_login", "never_on_login"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_3_options_signature_algorithm_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_3_options_signature_algorithm_enum.py deleted file mode 100644 index 87f46f4f..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_3_options_signature_algorithm_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedObject3OptionsSignatureAlgorithmEnum = typing.Union[ - typing.Literal["rsa-sha1", "rsa-sha256"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_3_options_subject.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_3_options_subject.py deleted file mode 100644 index 82777bc8..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_3_options_subject.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionCreatedObject3OptionsSubject(UniversalBaseModel): - """ - Certificate Subject Distinguished Name (DN) extracted from the identity provider's signing certificate. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_3_options_upstream_params.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_3_options_upstream_params.py deleted file mode 100644 index a9dc6665..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_3_options_upstream_params.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedObject3OptionsUpstreamParams = typing.Dict[str, typing.Any] -""" -Additional parameters to include in authorization requests sent to the identity provider. Useful for passing custom claims, selecting specific identity sources, or configuring provider-specific behavior. See https://auth0.com/docs/authenticate/identity-providers/pass-parameters-to-idps -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_3_strategy_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_3_strategy_enum.py deleted file mode 100644 index 451666c5..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_3_strategy_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedObject3StrategyEnum = typing.Union[typing.Literal["pingfederate"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_4.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_4.py deleted file mode 100644 index 000f9415..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_4.py +++ /dev/null @@ -1,73 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_created_object_4_authentication import ( - EventStreamCloudEventConnectionCreatedObject4Authentication, -) -from .event_stream_cloud_event_connection_created_object_4_connected_accounts import ( - EventStreamCloudEventConnectionCreatedObject4ConnectedAccounts, -) -from .event_stream_cloud_event_connection_created_object_4_metadata import ( - EventStreamCloudEventConnectionCreatedObject4Metadata, -) -from .event_stream_cloud_event_connection_created_object_4_options import ( - EventStreamCloudEventConnectionCreatedObject4Options, -) -from .event_stream_cloud_event_connection_created_object_4_strategy_enum import ( - EventStreamCloudEventConnectionCreatedObject4StrategyEnum, -) - - -class EventStreamCloudEventConnectionCreatedObject4(UniversalBaseModel): - authentication: typing.Optional[EventStreamCloudEventConnectionCreatedObject4Authentication] = None - connected_accounts: typing.Optional[EventStreamCloudEventConnectionCreatedObject4ConnectedAccounts] = None - display_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Connection name used in the new universal login experience - """ - - enabled_clients: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. - """ - - id: str = pydantic.Field() - """ - The connection's identifier - """ - - is_domain_connection: typing.Optional[bool] = pydantic.Field(default=None) - """ - true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) - """ - - metadata: typing.Optional[EventStreamCloudEventConnectionCreatedObject4Metadata] = None - name: str = pydantic.Field() - """ - The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 - """ - - realms: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. - """ - - options: typing.Optional[EventStreamCloudEventConnectionCreatedObject4Options] = None - show_as_button: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to `false`. - """ - - strategy: EventStreamCloudEventConnectionCreatedObject4StrategyEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_4_authentication.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_4_authentication.py deleted file mode 100644 index 4f3b15be..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_4_authentication.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionCreatedObject4Authentication(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for authentication during login. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_4_connected_accounts.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_4_connected_accounts.py deleted file mode 100644 index 06238f04..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_4_connected_accounts.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionCreatedObject4ConnectedAccounts(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for connected accounts and Token Vault. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_4_metadata.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_4_metadata.py deleted file mode 100644 index f8b200f2..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_4_metadata.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionCreatedObject4Metadata(UniversalBaseModel): - """ - Metadata associated with the connection in the form of an object with string values (max 255 chars). Maximum of 10 metadata properties allowed. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_4_options.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_4_options.py deleted file mode 100644 index 9de98380..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_4_options.py +++ /dev/null @@ -1,121 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_connection_created_object_4_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionCreatedObject4OptionsSetUserRootAttributesEnum, -) -from .event_stream_cloud_event_connection_created_object_4_options_should_trust_email_verified_connection_enum import ( - EventStreamCloudEventConnectionCreatedObject4OptionsShouldTrustEmailVerifiedConnectionEnum, -) -from .event_stream_cloud_event_connection_created_object_4_options_upstream_params import ( - EventStreamCloudEventConnectionCreatedObject4OptionsUpstreamParams, -) - - -class EventStreamCloudEventConnectionCreatedObject4Options(UniversalBaseModel): - """ - Options for the 'adfs' connection - """ - - adfs_server: typing.Optional[str] = pydantic.Field(default=None) - """ - ADFS federation metadata host or XML URL used to discover WS-Fed endpoints and certificates. Errors if adfs_server and fedMetadataXml are both absent. - """ - - cert_rollover_notification: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Timestamp of the last certificate expiring soon notification. - """ - - domain_aliases: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication. - """ - - entity_id: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="entityId"), - pydantic.Field( - alias="entityId", - description="The entity identifier (Issuer) for the ADFS Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'.", - ), - ] = None - """ - The entity identifier (Issuer) for the ADFS Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'. - """ - - fed_metadata_xml: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="fedMetadataXml"), - pydantic.Field( - alias="fedMetadataXml", - description="Inline XML alternative to 'adfs_server'. Cannot be set together with 'adfs_server'.", - ), - ] = None - """ - Inline XML alternative to 'adfs_server'. Cannot be set together with 'adfs_server'. - """ - - icon_url: typing.Optional[str] = pydantic.Field(default=None) - """ - URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows. - """ - - non_persistent_attrs: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) - """ - - prev_thumbprints: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Array of certificate thumbprints (SHA-128/SHA-256/SHA-512 hex hashes) for validating SAML signatures. Used with WS-Federation protocol. Maximum 20 thumbprints. Each thumbprint must be a hexadecimal string. - """ - - set_user_root_attributes: typing.Optional[ - EventStreamCloudEventConnectionCreatedObject4OptionsSetUserRootAttributesEnum - ] = None - should_trust_email_verified_connection: typing.Optional[ - EventStreamCloudEventConnectionCreatedObject4OptionsShouldTrustEmailVerifiedConnectionEnum - ] = None - sign_in_endpoint: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="signInEndpoint"), - pydantic.Field( - alias="signInEndpoint", - description="Passive Requestor (WS-Fed) sign-in endpoint discovered from metadata or provided explicitly.", - ), - ] = None - """ - Passive Requestor (WS-Fed) sign-in endpoint discovered from metadata or provided explicitly. - """ - - tenant_domain: typing.Optional[str] = pydantic.Field(default=None) - """ - Tenant domain - """ - - thumbprints: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Array of certificate thumbprints (SHA-128/SHA-256/SHA-512 hex hashes) for validating SAML signatures. Used with WS-Federation protocol. Maximum 20 thumbprints. Each thumbprint must be a hexadecimal string. - """ - - upstream_params: typing.Optional[EventStreamCloudEventConnectionCreatedObject4OptionsUpstreamParams] = None - user_id_attribute: typing.Optional[str] = pydantic.Field(default=None) - """ - Custom ADFS claim to use as the unique user identifier. When provided, this attribute is prepended to the default user_id mapping list with highest priority. Accepts a string (single ADFS claim name). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_4_options_set_user_root_attributes_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_4_options_set_user_root_attributes_enum.py deleted file mode 100644 index 82ab5016..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_4_options_set_user_root_attributes_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedObject4OptionsSetUserRootAttributesEnum = typing.Union[ - typing.Literal["on_each_login", "on_first_login", "never_on_login"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_4_options_should_trust_email_verified_connection_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_4_options_should_trust_email_verified_connection_enum.py deleted file mode 100644 index 481b0835..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_4_options_should_trust_email_verified_connection_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedObject4OptionsShouldTrustEmailVerifiedConnectionEnum = typing.Union[ - typing.Literal["never_set_emails_as_verified", "always_set_emails_as_verified"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_4_options_upstream_params.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_4_options_upstream_params.py deleted file mode 100644 index 3b547f0c..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_4_options_upstream_params.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedObject4OptionsUpstreamParams = typing.Dict[str, typing.Any] -""" -Additional parameters to include in authorization requests sent to the identity provider. Useful for passing custom claims, selecting specific identity sources, or configuring provider-specific behavior. See https://auth0.com/docs/authenticate/identity-providers/pass-parameters-to-idps -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_4_strategy_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_4_strategy_enum.py deleted file mode 100644 index 36e05327..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_4_strategy_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedObject4StrategyEnum = typing.Union[typing.Literal["adfs"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_5.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_5.py deleted file mode 100644 index 8695b3af..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_5.py +++ /dev/null @@ -1,68 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_created_object_5_authentication import ( - EventStreamCloudEventConnectionCreatedObject5Authentication, -) -from .event_stream_cloud_event_connection_created_object_5_connected_accounts import ( - EventStreamCloudEventConnectionCreatedObject5ConnectedAccounts, -) -from .event_stream_cloud_event_connection_created_object_5_metadata import ( - EventStreamCloudEventConnectionCreatedObject5Metadata, -) -from .event_stream_cloud_event_connection_created_object_5_options import ( - EventStreamCloudEventConnectionCreatedObject5Options, -) -from .event_stream_cloud_event_connection_created_object_5_strategy_enum import ( - EventStreamCloudEventConnectionCreatedObject5StrategyEnum, -) - - -class EventStreamCloudEventConnectionCreatedObject5(UniversalBaseModel): - authentication: typing.Optional[EventStreamCloudEventConnectionCreatedObject5Authentication] = None - connected_accounts: typing.Optional[EventStreamCloudEventConnectionCreatedObject5ConnectedAccounts] = None - display_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Connection name used in the new universal login experience - """ - - enabled_clients: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. - """ - - id: str = pydantic.Field() - """ - The connection's identifier - """ - - is_domain_connection: typing.Optional[bool] = pydantic.Field(default=None) - """ - true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) - """ - - metadata: typing.Optional[EventStreamCloudEventConnectionCreatedObject5Metadata] = None - name: str = pydantic.Field() - """ - The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 - """ - - realms: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. - """ - - options: typing.Optional[EventStreamCloudEventConnectionCreatedObject5Options] = None - strategy: EventStreamCloudEventConnectionCreatedObject5StrategyEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_5_authentication.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_5_authentication.py deleted file mode 100644 index f7c8cbad..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_5_authentication.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionCreatedObject5Authentication(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for authentication during login. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_5_connected_accounts.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_5_connected_accounts.py deleted file mode 100644 index b2bdfb68..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_5_connected_accounts.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionCreatedObject5ConnectedAccounts(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for connected accounts and Token Vault. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_5_metadata.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_5_metadata.py deleted file mode 100644 index 6d0ae5bb..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_5_metadata.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionCreatedObject5Metadata(UniversalBaseModel): - """ - Metadata associated with the connection in the form of an object with string values (max 255 chars). Maximum of 10 metadata properties allowed. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_5_options.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_5_options.py deleted file mode 100644 index 09c433e7..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_5_options.py +++ /dev/null @@ -1,154 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_connection_created_object_5_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionCreatedObject5OptionsSetUserRootAttributesEnum, -) -from .event_stream_cloud_event_connection_created_object_5_options_upstream_params import ( - EventStreamCloudEventConnectionCreatedObject5OptionsUpstreamParams, -) - - -class EventStreamCloudEventConnectionCreatedObject5Options(UniversalBaseModel): - """ - Options for the 'ad' connection - """ - - agent_ip: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="agentIP"), - pydantic.Field( - alias="agentIP", - description="IP address of the AD connector agent used to validate that authentication requests originate from the corporate network for Kerberos authentication (managed by the AD Connector agent).", - ), - ] = None - """ - IP address of the AD connector agent used to validate that authentication requests originate from the corporate network for Kerberos authentication (managed by the AD Connector agent). - """ - - agent_mode: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="agentMode"), - pydantic.Field( - alias="agentMode", - description="When enabled, allows direct username/password authentication through the AD connector agent instead of WS-Federation protocol (managed by the AD Connector agent).", - ), - ] = None - """ - When enabled, allows direct username/password authentication through the AD connector agent instead of WS-Federation protocol (managed by the AD Connector agent). - """ - - agent_version: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="agentVersion"), - pydantic.Field( - alias="agentVersion", - description="Version identifier of the installed AD connector agent software (managed by the AD Connector agent).", - ), - ] = None - """ - Version identifier of the installed AD connector agent software (managed by the AD Connector agent). - """ - - brute_force_protection: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables Auth0's brute force protection to prevent credential stuffing attacks. When enabled, blocks suspicious login attempts from specific IP addresses after repeated failures. - """ - - cert_auth: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="certAuth"), - pydantic.Field( - alias="certAuth", - description="Enables client SSL certificate authentication for the AD connector, requiring HTTPS on the sign-in endpoint", - ), - ] = None - """ - Enables client SSL certificate authentication for the AD connector, requiring HTTPS on the sign-in endpoint - """ - - certs: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Array of X.509 certificates in PEM format used for validating SAML signatures from the AD identity provider (managed by the AD Connector agent). - """ - - disable_cache: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, disables caching of AD connector authentication results to ensure real-time validation against the directory - """ - - disable_self_service_change_password: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, hides the 'Forgot Password' link on login pages to prevent users from initiating self-service password resets - """ - - domain_aliases: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - List of domain names that can be used with identifier-first authentication flow to route users to this AD connection; each domain must be a valid DNS name up to 256 characters - """ - - icon_url: typing.Optional[str] = pydantic.Field(default=None) - """ - https url of the icon to be shown - """ - - ips: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Array of IP address ranges in CIDR notation used to determine if authentication requests originate from the corporate network for Kerberos or certificate authentication. - """ - - kerberos: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables Windows Integrated Authentication (Kerberos) for seamless SSO when users authenticate from within the corporate network IP ranges - """ - - kerberos_only: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true, restricts the connection to Kerberos-only authentication, disallowing username/password fallback. - """ - - non_persistent_attrs: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) - """ - - set_user_root_attributes: typing.Optional[ - EventStreamCloudEventConnectionCreatedObject5OptionsSetUserRootAttributesEnum - ] = None - sign_in_endpoint: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="signInEndpoint"), - pydantic.Field( - alias="signInEndpoint", - description="The sign-in endpoint type for the AD-LDAP connector agent (managed by the AD Connector agent).", - ), - ] = None - """ - The sign-in endpoint type for the AD-LDAP connector agent (managed by the AD Connector agent). - """ - - tenant_domain: typing.Optional[str] = pydantic.Field(default=None) - """ - Primary AD domain hint used for HRD and discovery. - """ - - thumbprints: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Array of certificate SHA-1 thumbprints for validating signatures. Managed by Auth0 when using the AD Connector agent. - """ - - upstream_params: typing.Optional[EventStreamCloudEventConnectionCreatedObject5OptionsUpstreamParams] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_5_options_set_user_root_attributes_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_5_options_set_user_root_attributes_enum.py deleted file mode 100644 index b73f0d3a..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_5_options_set_user_root_attributes_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedObject5OptionsSetUserRootAttributesEnum = typing.Union[ - typing.Literal["on_each_login", "on_first_login", "never_on_login"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_5_options_upstream_params.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_5_options_upstream_params.py deleted file mode 100644 index ef8eb925..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_5_options_upstream_params.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedObject5OptionsUpstreamParams = typing.Dict[str, typing.Any] -""" -Additional parameters to include in authorization requests sent to the identity provider. Useful for passing custom claims, selecting specific identity sources, or configuring provider-specific behavior. See https://auth0.com/docs/authenticate/identity-providers/pass-parameters-to-idps -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_5_strategy_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_5_strategy_enum.py deleted file mode 100644 index f8eacbf7..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_5_strategy_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedObject5StrategyEnum = typing.Union[typing.Literal["ad"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_6.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_6.py deleted file mode 100644 index 8920ddb4..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_6.py +++ /dev/null @@ -1,73 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_created_object_6_authentication import ( - EventStreamCloudEventConnectionCreatedObject6Authentication, -) -from .event_stream_cloud_event_connection_created_object_6_connected_accounts import ( - EventStreamCloudEventConnectionCreatedObject6ConnectedAccounts, -) -from .event_stream_cloud_event_connection_created_object_6_metadata import ( - EventStreamCloudEventConnectionCreatedObject6Metadata, -) -from .event_stream_cloud_event_connection_created_object_6_options import ( - EventStreamCloudEventConnectionCreatedObject6Options, -) -from .event_stream_cloud_event_connection_created_object_6_strategy_enum import ( - EventStreamCloudEventConnectionCreatedObject6StrategyEnum, -) - - -class EventStreamCloudEventConnectionCreatedObject6(UniversalBaseModel): - authentication: typing.Optional[EventStreamCloudEventConnectionCreatedObject6Authentication] = None - connected_accounts: typing.Optional[EventStreamCloudEventConnectionCreatedObject6ConnectedAccounts] = None - display_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Connection name used in the new universal login experience - """ - - enabled_clients: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. - """ - - id: str = pydantic.Field() - """ - The connection's identifier - """ - - is_domain_connection: typing.Optional[bool] = pydantic.Field(default=None) - """ - true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) - """ - - metadata: typing.Optional[EventStreamCloudEventConnectionCreatedObject6Metadata] = None - name: str = pydantic.Field() - """ - The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 - """ - - realms: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. - """ - - options: typing.Optional[EventStreamCloudEventConnectionCreatedObject6Options] = None - show_as_button: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to `false`. - """ - - strategy: EventStreamCloudEventConnectionCreatedObject6StrategyEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_6_authentication.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_6_authentication.py deleted file mode 100644 index f4ec9820..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_6_authentication.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionCreatedObject6Authentication(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for authentication during login. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_6_connected_accounts.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_6_connected_accounts.py deleted file mode 100644 index b0c35a67..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_6_connected_accounts.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionCreatedObject6ConnectedAccounts(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for connected accounts and Token Vault. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_6_metadata.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_6_metadata.py deleted file mode 100644 index 435bc18b..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_6_metadata.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionCreatedObject6Metadata(UniversalBaseModel): - """ - Metadata associated with the connection in the form of an object with string values (max 255 chars). Maximum of 10 metadata properties allowed. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_6_options.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_6_options.py deleted file mode 100644 index d0299ef8..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_6_options.py +++ /dev/null @@ -1,139 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_created_object_6_options_federated_connections_access_tokens import ( - EventStreamCloudEventConnectionCreatedObject6OptionsFederatedConnectionsAccessTokens, -) -from .event_stream_cloud_event_connection_created_object_6_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionCreatedObject6OptionsSetUserRootAttributesEnum, -) -from .event_stream_cloud_event_connection_created_object_6_options_upstream_params import ( - EventStreamCloudEventConnectionCreatedObject6OptionsUpstreamParams, -) - - -class EventStreamCloudEventConnectionCreatedObject6Options(UniversalBaseModel): - """ - Options for the 'google-apps' connection - """ - - admin_access_token_expiresin: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Expiration timestamp for the `admin_access_token` in ISO 8601 format. Auth0 uses this value to determine when to refresh the token. - """ - - allow_setting_login_scopes: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true, allows customization of OAuth scopes requested during user login. Custom scopes are appended to the mandatory email and profile scopes. When false or omitted, only the default email and profile scopes are used. This property is automatically enabled when Token Vault or Connected Accounts features are activated. - """ - - api_enable_groups: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables integration with the Google Workspace Admin SDK Directory API for groups. When true, Auth0 can synchronize groups & group memberships and supports inbound directory provisioning for groups. Defaults to false. - """ - - api_enable_users: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables integration with the Google Workspace Admin SDK Directory API. When true, Auth0 can retrieve extended user attributes (admin status, suspension status, group memberships) and supports inbound directory provisioning (SCIM). Defaults to true. - """ - - client_id: str = pydantic.Field() - """ - Your Google OAuth 2.0 client ID. You can find this in your [Google Cloud Console](https://console.cloud.google.com/apis/credentials) under the OAuth 2.0 Client IDs section. - """ - - domain: typing.Optional[str] = pydantic.Field(default=None) - """ - Primary Google Workspace domain name that users must belong to. - """ - - domain_aliases: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication. - """ - - email: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether the OAuth flow requests the `email` scope. - """ - - ext_agreed_terms: typing.Optional[bool] = pydantic.Field(default=None) - """ - Fetches the `agreedToTerms` flag from the Google Directory profile. - """ - - ext_groups: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables enrichment with Google group memberships (required for `ext_groups_extended`). - """ - - ext_groups_extended: typing.Optional[bool] = pydantic.Field(default=None) - """ - Controls whether enriched group entries include `id`, `email`, `name` (true) or only the group name (false); can only be set when `ext_groups` is true. - """ - - ext_is_admin: typing.Optional[bool] = pydantic.Field(default=None) - """ - Fetches the Google Directory admin flag for the signing-in user. - """ - - ext_is_suspended: typing.Optional[bool] = pydantic.Field(default=None) - """ - Fetches the Google Directory suspended flag for the signing-in user. - """ - - federated_connections_access_tokens: typing.Optional[ - EventStreamCloudEventConnectionCreatedObject6OptionsFederatedConnectionsAccessTokens - ] = None - handle_login_from_social: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, users who sign in with their Google account through a social login will be automatically routed to this Google Workspace connection if their email domain matches the configured tenant_domain or domain_aliases. This ensures enterprise users authenticate through their organization's Google Workspace identity provider rather than through a generic Google social login, enabling access to directory-based attributes and enforcing organizational security policies. Defaults to true for new connections. - """ - - icon_url: typing.Optional[str] = pydantic.Field(default=None) - """ - URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows. - """ - - map_user_id_to_id: typing.Optional[bool] = pydantic.Field(default=None) - """ - Determines how Auth0 generates the user_id for Google Workspace users. When false (default), the user's email address is used. When true, Google's stable numeric user ID is used instead, which persists even if the user's email changes. This setting can only be configured when creating the connection and cannot be changed afterward. - """ - - non_persistent_attrs: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) - """ - - profile: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether the OAuth flow requests the `profile` scope. - """ - - scope: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Additional OAuth scopes requested beyond the default `email profile` scopes; ignored unless `allow_setting_login_scopes` is true. - """ - - set_user_root_attributes: typing.Optional[ - EventStreamCloudEventConnectionCreatedObject6OptionsSetUserRootAttributesEnum - ] = None - tenant_domain: typing.Optional[str] = pydantic.Field(default=None) - """ - The Google Workspace primary domain used to identify the organization during authentication. - """ - - upstream_params: typing.Optional[EventStreamCloudEventConnectionCreatedObject6OptionsUpstreamParams] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_6_options_federated_connections_access_tokens.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_6_options_federated_connections_access_tokens.py deleted file mode 100644 index 4b15e33a..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_6_options_federated_connections_access_tokens.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionCreatedObject6OptionsFederatedConnectionsAccessTokens(UniversalBaseModel): - """ - Configuration for storing identity provider tokens in Auth0's Token Vault. When active, Auth0 securely stores access and refresh tokens from federated logins, enabling your application to make authenticated API calls on behalf of users. - """ - - active: bool = pydantic.Field() - """ - Enables refresh tokens and access tokens collection for federated connections - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_6_options_set_user_root_attributes_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_6_options_set_user_root_attributes_enum.py deleted file mode 100644 index 173982df..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_6_options_set_user_root_attributes_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedObject6OptionsSetUserRootAttributesEnum = typing.Union[ - typing.Literal["on_each_login", "on_first_login", "never_on_login"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_6_options_upstream_params.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_6_options_upstream_params.py deleted file mode 100644 index d17d5b86..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_6_options_upstream_params.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedObject6OptionsUpstreamParams = typing.Dict[str, typing.Any] -""" -Additional parameters to include in authorization requests sent to the identity provider. Useful for passing custom claims, selecting specific identity sources, or configuring provider-specific behavior. See https://auth0.com/docs/authenticate/identity-providers/pass-parameters-to-idps -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_6_strategy_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_6_strategy_enum.py deleted file mode 100644 index ad8ee50a..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_6_strategy_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedObject6StrategyEnum = typing.Union[typing.Literal["google-apps"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_7.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_7.py deleted file mode 100644 index b549b639..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_7.py +++ /dev/null @@ -1,73 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_created_object_7_authentication import ( - EventStreamCloudEventConnectionCreatedObject7Authentication, -) -from .event_stream_cloud_event_connection_created_object_7_connected_accounts import ( - EventStreamCloudEventConnectionCreatedObject7ConnectedAccounts, -) -from .event_stream_cloud_event_connection_created_object_7_metadata import ( - EventStreamCloudEventConnectionCreatedObject7Metadata, -) -from .event_stream_cloud_event_connection_created_object_7_options import ( - EventStreamCloudEventConnectionCreatedObject7Options, -) -from .event_stream_cloud_event_connection_created_object_7_strategy_enum import ( - EventStreamCloudEventConnectionCreatedObject7StrategyEnum, -) - - -class EventStreamCloudEventConnectionCreatedObject7(UniversalBaseModel): - authentication: typing.Optional[EventStreamCloudEventConnectionCreatedObject7Authentication] = None - connected_accounts: typing.Optional[EventStreamCloudEventConnectionCreatedObject7ConnectedAccounts] = None - display_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Connection name used in the new universal login experience - """ - - enabled_clients: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. - """ - - id: str = pydantic.Field() - """ - The connection's identifier - """ - - is_domain_connection: typing.Optional[bool] = pydantic.Field(default=None) - """ - true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) - """ - - metadata: typing.Optional[EventStreamCloudEventConnectionCreatedObject7Metadata] = None - name: str = pydantic.Field() - """ - The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 - """ - - realms: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. - """ - - options: typing.Optional[EventStreamCloudEventConnectionCreatedObject7Options] = None - show_as_button: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to `false`. - """ - - strategy: EventStreamCloudEventConnectionCreatedObject7StrategyEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_7_authentication.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_7_authentication.py deleted file mode 100644 index edc226dc..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_7_authentication.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionCreatedObject7Authentication(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for authentication during login. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_7_connected_accounts.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_7_connected_accounts.py deleted file mode 100644 index 99f1e0f3..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_7_connected_accounts.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionCreatedObject7ConnectedAccounts(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for connected accounts and Token Vault. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_7_metadata.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_7_metadata.py deleted file mode 100644 index 3b2beac2..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_7_metadata.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionCreatedObject7Metadata(UniversalBaseModel): - """ - Metadata associated with the connection in the form of an object with string values (max 255 chars). Maximum of 10 metadata properties allowed. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_7_options.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_7_options.py deleted file mode 100644 index ddf88998..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_7_options.py +++ /dev/null @@ -1,177 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_connection_created_object_7_options_federated_connections_access_tokens import ( - EventStreamCloudEventConnectionCreatedObject7OptionsFederatedConnectionsAccessTokens, -) -from .event_stream_cloud_event_connection_created_object_7_options_identity_api_enum import ( - EventStreamCloudEventConnectionCreatedObject7OptionsIdentityApiEnum, -) -from .event_stream_cloud_event_connection_created_object_7_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionCreatedObject7OptionsSetUserRootAttributesEnum, -) -from .event_stream_cloud_event_connection_created_object_7_options_should_trust_email_verified_connection_enum import ( - EventStreamCloudEventConnectionCreatedObject7OptionsShouldTrustEmailVerifiedConnectionEnum, -) -from .event_stream_cloud_event_connection_created_object_7_options_tenant_domain_one import ( - EventStreamCloudEventConnectionCreatedObject7OptionsTenantDomainOne, -) -from .event_stream_cloud_event_connection_created_object_7_options_upstream_params import ( - EventStreamCloudEventConnectionCreatedObject7OptionsUpstreamParams, -) -from .event_stream_cloud_event_connection_created_object_7_options_userid_attribute_enum import ( - EventStreamCloudEventConnectionCreatedObject7OptionsUseridAttributeEnum, -) -from .event_stream_cloud_event_connection_created_object_7_options_waad_protocol_enum import ( - EventStreamCloudEventConnectionCreatedObject7OptionsWaadProtocolEnum, -) - - -class EventStreamCloudEventConnectionCreatedObject7Options(UniversalBaseModel): - """ - Options for the 'waad' connection - """ - - api_enable_users: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enable users API - """ - - app_domain: typing.Optional[str] = pydantic.Field(default=None) - """ - The Azure AD application domain (e.g., 'contoso.onmicrosoft.com'). Used primarily with WS-Federation protocol and Azure AD v1 endpoints. - """ - - app_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The Application ID URI (App ID URI) for the Azure AD application. Required when using Azure AD v1 with the Resource Owner Password flow. Used to identify the resource being requested in OAuth token requests. - """ - - basic_profile: typing.Optional[bool] = pydantic.Field(default=None) - """ - Includes basic user profile information from Azure AD (name, email, given_name, family_name). Always enabled and required - represents the minimum profile data retrieved during authentication. - """ - - cert_rollover_notification: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Timestamp of the last certificate expiring soon notification. - """ - - client_id: str = pydantic.Field() - """ - OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider. - """ - - domain: typing.Optional[str] = pydantic.Field(default=None) - """ - The primary Azure AD tenant domain (e.g., 'contoso.onmicrosoft.com' or 'contoso.com'). - """ - - domain_aliases: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Alternative domain names associated with this Azure AD tenant. Allows users from multiple verified domains to authenticate through this connection. Can be an array of domain strings. - """ - - ext_groups: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled (true), retrieves and stores Azure AD security group memberships for the user. Requires Microsoft Graph API permissions (Directory.Read.All). Allows configuring max_groups_to_retrieve. - """ - - ext_nested_groups: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true, stores all groups the user is member of, including transitive group memberships (groups within groups). When false (default), only direct group memberships are included. - """ - - ext_profile: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled (true), retrieves extended profile attributes from Azure AD via Microsoft Graph API (job title, department, office location, etc.). Requires Graph API permissions. Only available with Azure AD v1 or when explicitly enabled for v2. - """ - - federated_connections_access_tokens: typing.Optional[ - EventStreamCloudEventConnectionCreatedObject7OptionsFederatedConnectionsAccessTokens - ] = None - granted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether admin consent has been granted for the required Azure AD permissions. Read-only status field managed by Auth0 during the OAuth authorization flow. - """ - - icon_url: typing.Optional[str] = pydantic.Field(default=None) - """ - URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows. - """ - - identity_api: typing.Optional[EventStreamCloudEventConnectionCreatedObject7OptionsIdentityApiEnum] = None - max_groups_to_retrieve: typing.Optional[str] = pydantic.Field(default=None) - """ - Maximum number of Azure AD groups to retrieve per user during authentication. Helps prevent performance issues for users in many groups. Only applies when ext_groups is enabled. Leave empty to use platform default. - """ - - non_persistent_attrs: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) - """ - - scope: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - OAuth 2.0 scopes to request from Azure AD during authentication. Each scope represents a permission (e.g., 'User.Read', 'Group.Read.All'). Only applies with Microsoft Identity Platform v2.0. See Microsoft Graph permissions reference for available scopes. - """ - - set_user_root_attributes: typing.Optional[ - EventStreamCloudEventConnectionCreatedObject7OptionsSetUserRootAttributesEnum - ] = None - should_trust_email_verified_connection: typing.Optional[ - EventStreamCloudEventConnectionCreatedObject7OptionsShouldTrustEmailVerifiedConnectionEnum - ] = None - tenant_domain: typing.Optional[EventStreamCloudEventConnectionCreatedObject7OptionsTenantDomainOne] = None - tenant_id: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="tenantId"), - pydantic.Field( - alias="tenantId", - description="The Azure AD tenant ID as a UUID. The unique identifier for your Azure AD organization. Must be a valid 36-character UUID.", - ), - ] = None - """ - The Azure AD tenant ID as a UUID. The unique identifier for your Azure AD organization. Must be a valid 36-character UUID. - """ - - thumbprints: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Array of certificate thumbprints (SHA-128/SHA-256/SHA-512 hex hashes) for validating SAML signatures. Used with WS-Federation protocol. Maximum 20 thumbprints. Each thumbprint must be a hexadecimal string. - """ - - upstream_params: typing.Optional[EventStreamCloudEventConnectionCreatedObject7OptionsUpstreamParams] = None - use_wsfed: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates WS-Federation protocol usage. When true, uses WS-Federation; when false, uses OpenID Connect. - """ - - use_common_endpoint: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="useCommonEndpoint"), - pydantic.Field( - alias="useCommonEndpoint", - description="When enabled (true), uses the Azure AD common endpoint for multi-tenant authentication. Allows users from any Azure AD organization to sign in. Requires userid_attribute set to 'sub' (not 'oid'). Cannot be used with SCIM provisioning. Defaults to false.", - ), - ] = None - """ - When enabled (true), uses the Azure AD common endpoint for multi-tenant authentication. Allows users from any Azure AD organization to sign in. Requires userid_attribute set to 'sub' (not 'oid'). Cannot be used with SCIM provisioning. Defaults to false. - """ - - userid_attribute: typing.Optional[EventStreamCloudEventConnectionCreatedObject7OptionsUseridAttributeEnum] = None - waad_protocol: typing.Optional[EventStreamCloudEventConnectionCreatedObject7OptionsWaadProtocolEnum] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_7_options_federated_connections_access_tokens.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_7_options_federated_connections_access_tokens.py deleted file mode 100644 index 2478bfaf..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_7_options_federated_connections_access_tokens.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionCreatedObject7OptionsFederatedConnectionsAccessTokens(UniversalBaseModel): - """ - Configuration for storing identity provider tokens in Auth0's Token Vault. When active, Auth0 securely stores access and refresh tokens from federated logins, enabling your application to make authenticated API calls on behalf of users. - """ - - active: bool = pydantic.Field() - """ - Enables refresh tokens and access tokens collection for federated connections - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_7_options_identity_api_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_7_options_identity_api_enum.py deleted file mode 100644 index 0e972ef8..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_7_options_identity_api_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedObject7OptionsIdentityApiEnum = typing.Union[ - typing.Literal["microsoft-identity-platform-v2.0", "azure-active-directory-v1.0"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_7_options_set_user_root_attributes_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_7_options_set_user_root_attributes_enum.py deleted file mode 100644 index 13fe9b35..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_7_options_set_user_root_attributes_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedObject7OptionsSetUserRootAttributesEnum = typing.Union[ - typing.Literal["on_each_login", "on_first_login", "never_on_login"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_7_options_should_trust_email_verified_connection_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_7_options_should_trust_email_verified_connection_enum.py deleted file mode 100644 index b8e51f3e..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_7_options_should_trust_email_verified_connection_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedObject7OptionsShouldTrustEmailVerifiedConnectionEnum = typing.Union[ - typing.Literal["never_set_emails_as_verified", "always_set_emails_as_verified"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_7_options_tenant_domain_one.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_7_options_tenant_domain_one.py deleted file mode 100644 index 1f3dd78b..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_7_options_tenant_domain_one.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -EventStreamCloudEventConnectionCreatedObject7OptionsTenantDomainOne = str -""" -Azure AD tenant domain as a UUID tenant ID. -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_7_options_upstream_params.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_7_options_upstream_params.py deleted file mode 100644 index 5eb2da59..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_7_options_upstream_params.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedObject7OptionsUpstreamParams = typing.Dict[str, typing.Any] -""" -Additional parameters to include in authorization requests sent to the identity provider. Useful for passing custom claims, selecting specific identity sources, or configuring provider-specific behavior. See https://auth0.com/docs/authenticate/identity-providers/pass-parameters-to-idps -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_7_options_userid_attribute_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_7_options_userid_attribute_enum.py deleted file mode 100644 index 5e8adcf6..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_7_options_userid_attribute_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedObject7OptionsUseridAttributeEnum = typing.Union[ - typing.Literal["oid", "sub"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_7_options_waad_protocol_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_7_options_waad_protocol_enum.py deleted file mode 100644 index 5d77ad20..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_7_options_waad_protocol_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedObject7OptionsWaadProtocolEnum = typing.Union[ - typing.Literal["ws-federation", "openid-connect"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_7_strategy_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_object_7_strategy_enum.py deleted file mode 100644 index bfdb095d..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_object_7_strategy_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedObject7StrategyEnum = typing.Union[typing.Literal["waad"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object.py deleted file mode 100644 index 9b2fb31a..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object.py +++ /dev/null @@ -1,39 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .event_stream_cloud_event_connection_created_previous_object_0 import ( - EventStreamCloudEventConnectionCreatedPreviousObject0, -) -from .event_stream_cloud_event_connection_created_previous_object_1 import ( - EventStreamCloudEventConnectionCreatedPreviousObject1, -) -from .event_stream_cloud_event_connection_created_previous_object_2 import ( - EventStreamCloudEventConnectionCreatedPreviousObject2, -) -from .event_stream_cloud_event_connection_created_previous_object_3 import ( - EventStreamCloudEventConnectionCreatedPreviousObject3, -) -from .event_stream_cloud_event_connection_created_previous_object_4 import ( - EventStreamCloudEventConnectionCreatedPreviousObject4, -) -from .event_stream_cloud_event_connection_created_previous_object_5 import ( - EventStreamCloudEventConnectionCreatedPreviousObject5, -) -from .event_stream_cloud_event_connection_created_previous_object_6 import ( - EventStreamCloudEventConnectionCreatedPreviousObject6, -) -from .event_stream_cloud_event_connection_created_previous_object_7 import ( - EventStreamCloudEventConnectionCreatedPreviousObject7, -) - -EventStreamCloudEventConnectionCreatedPreviousObject = typing.Union[ - EventStreamCloudEventConnectionCreatedPreviousObject0, - EventStreamCloudEventConnectionCreatedPreviousObject1, - EventStreamCloudEventConnectionCreatedPreviousObject2, - EventStreamCloudEventConnectionCreatedPreviousObject3, - EventStreamCloudEventConnectionCreatedPreviousObject4, - EventStreamCloudEventConnectionCreatedPreviousObject5, - EventStreamCloudEventConnectionCreatedPreviousObject6, - EventStreamCloudEventConnectionCreatedPreviousObject7, -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0.py deleted file mode 100644 index 9321f1da..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0.py +++ /dev/null @@ -1,73 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_created_previous_object_0_authentication import ( - EventStreamCloudEventConnectionCreatedPreviousObject0Authentication, -) -from .event_stream_cloud_event_connection_created_previous_object_0_connected_accounts import ( - EventStreamCloudEventConnectionCreatedPreviousObject0ConnectedAccounts, -) -from .event_stream_cloud_event_connection_created_previous_object_0_metadata import ( - EventStreamCloudEventConnectionCreatedPreviousObject0Metadata, -) -from .event_stream_cloud_event_connection_created_previous_object_0_options import ( - EventStreamCloudEventConnectionCreatedPreviousObject0Options, -) -from .event_stream_cloud_event_connection_created_previous_object_0_strategy_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject0StrategyEnum, -) - - -class EventStreamCloudEventConnectionCreatedPreviousObject0(UniversalBaseModel): - authentication: typing.Optional[EventStreamCloudEventConnectionCreatedPreviousObject0Authentication] = None - display_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Connection name used in the new universal login experience - """ - - enabled_clients: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. - """ - - id: str = pydantic.Field() - """ - The connection's identifier - """ - - is_domain_connection: typing.Optional[bool] = pydantic.Field(default=None) - """ - true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) - """ - - metadata: typing.Optional[EventStreamCloudEventConnectionCreatedPreviousObject0Metadata] = None - name: str = pydantic.Field() - """ - The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 - """ - - realms: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. - """ - - connected_accounts: typing.Optional[EventStreamCloudEventConnectionCreatedPreviousObject0ConnectedAccounts] = None - options: typing.Optional[EventStreamCloudEventConnectionCreatedPreviousObject0Options] = None - show_as_button: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to `false`. - """ - - strategy: EventStreamCloudEventConnectionCreatedPreviousObject0StrategyEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_authentication.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_authentication.py deleted file mode 100644 index 94ddfd7a..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_authentication.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionCreatedPreviousObject0Authentication(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for authentication during login. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_connected_accounts.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_connected_accounts.py deleted file mode 100644 index c0a250d9..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_connected_accounts.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionCreatedPreviousObject0ConnectedAccounts(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for connected accounts and Token Vault. - """ - - active: bool - cross_app_access: typing.Optional[bool] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_metadata.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_metadata.py deleted file mode 100644 index 92c851e6..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_metadata.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionCreatedPreviousObject0Metadata(UniversalBaseModel): - """ - Metadata associated with the connection in the form of an object with string values (max 255 chars). Maximum of 10 metadata properties allowed. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_options.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_options.py deleted file mode 100644 index 8fba7bf4..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_options.py +++ /dev/null @@ -1,180 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_connection_created_previous_object_0_options_attribute_map import ( - EventStreamCloudEventConnectionCreatedPreviousObject0OptionsAttributeMap, -) -from .event_stream_cloud_event_connection_created_previous_object_0_options_connection_settings import ( - EventStreamCloudEventConnectionCreatedPreviousObject0OptionsConnectionSettings, -) -from .event_stream_cloud_event_connection_created_previous_object_0_options_dpop_signing_alg_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject0OptionsDpopSigningAlgEnum, -) -from .event_stream_cloud_event_connection_created_previous_object_0_options_federated_connections_access_tokens import ( - EventStreamCloudEventConnectionCreatedPreviousObject0OptionsFederatedConnectionsAccessTokens, -) -from .event_stream_cloud_event_connection_created_previous_object_0_options_id_token_signed_response_algs_item_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum, -) -from .event_stream_cloud_event_connection_created_previous_object_0_options_oidc_metadata import ( - EventStreamCloudEventConnectionCreatedPreviousObject0OptionsOidcMetadata, -) -from .event_stream_cloud_event_connection_created_previous_object_0_options_schema_version_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject0OptionsSchemaVersionEnum, -) -from .event_stream_cloud_event_connection_created_previous_object_0_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject0OptionsSetUserRootAttributesEnum, -) -from .event_stream_cloud_event_connection_created_previous_object_0_options_token_endpoint_auth_method_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTokenEndpointAuthMethodEnum, -) -from .event_stream_cloud_event_connection_created_previous_object_0_options_token_endpoint_auth_signing_alg_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum, -) -from .event_stream_cloud_event_connection_created_previous_object_0_options_token_endpoint_jwtca_aud_format_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTokenEndpointJwtcaAudFormatEnum, -) -from .event_stream_cloud_event_connection_created_previous_object_0_options_type_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTypeEnum, -) -from .event_stream_cloud_event_connection_created_previous_object_0_options_upstream_params import ( - EventStreamCloudEventConnectionCreatedPreviousObject0OptionsUpstreamParams, -) - - -class EventStreamCloudEventConnectionCreatedPreviousObject0Options(UniversalBaseModel): - """ - Options for the 'oidc' connection - """ - - authorization_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow. - """ - - client_id: str = pydantic.Field() - """ - OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider. - """ - - connection_settings: typing.Optional[ - EventStreamCloudEventConnectionCreatedPreviousObject0OptionsConnectionSettings - ] = None - domain_aliases: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication. - """ - - dpop_signing_alg: typing.Optional[ - EventStreamCloudEventConnectionCreatedPreviousObject0OptionsDpopSigningAlgEnum - ] = None - federated_connections_access_tokens: typing.Optional[ - EventStreamCloudEventConnectionCreatedPreviousObject0OptionsFederatedConnectionsAccessTokens - ] = None - icon_url: typing.Optional[str] = pydantic.Field(default=None) - """ - https url of the icon to be shown - """ - - id_token_session_expiry_supported: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether the identity provider supports session expiry via the id_token. If true, the system will use the session_expiry claim in the id_token to determine session expiry. - """ - - id_token_signed_response_algs: typing.Optional[ - typing.List[EventStreamCloudEventConnectionCreatedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum] - ] = pydantic.Field(default=None) - """ - List of algorithms allowed to verify the ID tokens. Applicable when strategy=oidc or okta. - """ - - issuer: typing.Optional[str] = pydantic.Field(default=None) - """ - The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider. - """ - - jwks_uri: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures. - """ - - non_persistent_attrs: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) - """ - - oidc_metadata: typing.Optional[EventStreamCloudEventConnectionCreatedPreviousObject0OptionsOidcMetadata] = None - schema_version: typing.Optional[EventStreamCloudEventConnectionCreatedPreviousObject0OptionsSchemaVersionEnum] = ( - None - ) - scope: typing.Optional[str] = pydantic.Field(default=None) - """ - Space-separated list of OAuth 2.0 scopes requested during authorization. Must include 'openid' (required by OIDC spec). Common values: 'openid profile email'. Additional scopes depend on the identity provider. - """ - - send_back_channel_nonce: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true and type is 'back_channel', includes a cryptographic nonce in authorization requests to prevent replay attacks. The identity provider must include this nonce in the ID token for validation. - """ - - set_user_root_attributes: typing.Optional[ - EventStreamCloudEventConnectionCreatedPreviousObject0OptionsSetUserRootAttributesEnum - ] = None - tenant_domain: typing.Optional[str] = pydantic.Field(default=None) - """ - Tenant domain - """ - - token_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow. - """ - - token_endpoint_auth_method: typing.Optional[ - EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTokenEndpointAuthMethodEnum - ] = None - token_endpoint_auth_signing_alg: typing.Optional[ - EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum - ] = None - token_endpoint_jwtca_aud_format: typing.Optional[ - EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTokenEndpointJwtcaAudFormatEnum - ] = None - upstream_params: typing.Optional[EventStreamCloudEventConnectionCreatedPreviousObject0OptionsUpstreamParams] = None - use_oauth_spec_scope: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="useOauthSpecScope"), - pydantic.Field( - alias="useOauthSpecScope", - description="When true, uses space-delimited scopes (per OAuth 2.0 spec) instead of comma-delimited when calling the identity provider's authorization endpoint. Only relevant when using the connection_scope parameter. See https://auth0.com/docs/authenticate/identity-providers/adding-scopes-for-an-external-idp#pass-scopes-to-authorize-endpoint", - ), - ] = None - """ - When true, uses space-delimited scopes (per OAuth 2.0 spec) instead of comma-delimited when calling the identity provider's authorization endpoint. Only relevant when using the connection_scope parameter. See https://auth0.com/docs/authenticate/identity-providers/adding-scopes-for-an-external-idp#pass-scopes-to-authorize-endpoint - """ - - userinfo_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token. - """ - - attribute_map: typing.Optional[EventStreamCloudEventConnectionCreatedPreviousObject0OptionsAttributeMap] = None - discovery_url: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's OIDC Discovery endpoint (/.well-known/openid-configuration). When provided and oidc_metadata is empty, Auth0 automatically retrieves the provider's configuration including endpoints and supported features. - """ - - type: typing.Optional[EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTypeEnum] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_options_attribute_map.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_options_attribute_map.py deleted file mode 100644 index 6055f623..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_options_attribute_map.py +++ /dev/null @@ -1,39 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_created_previous_object_0_options_attribute_map_attributes import ( - EventStreamCloudEventConnectionCreatedPreviousObject0OptionsAttributeMapAttributes, -) -from .event_stream_cloud_event_connection_created_previous_object_0_options_attribute_map_mapping_mode_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject0OptionsAttributeMapMappingModeEnum, -) - - -class EventStreamCloudEventConnectionCreatedPreviousObject0OptionsAttributeMap(UniversalBaseModel): - """ - Configuration for mapping claims from the identity provider to Auth0 user profile attributes. Allows customizing which IdP claims populate user fields and how they are transformed. - """ - - attributes: typing.Optional[EventStreamCloudEventConnectionCreatedPreviousObject0OptionsAttributeMapAttributes] = ( - None - ) - userinfo_scope: typing.Optional[str] = pydantic.Field(default=None) - """ - Scopes to send to the IdP's Userinfo endpoint - """ - - mapping_mode: typing.Optional[ - EventStreamCloudEventConnectionCreatedPreviousObject0OptionsAttributeMapMappingModeEnum - ] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_options_attribute_map_attributes.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_options_attribute_map_attributes.py deleted file mode 100644 index b42faa60..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_options_attribute_map_attributes.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedPreviousObject0OptionsAttributeMapAttributes = typing.Dict[str, typing.Any] -""" -Object containing mapping details for incoming claims -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_options_attribute_map_mapping_mode_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_options_attribute_map_mapping_mode_enum.py deleted file mode 100644 index a6a5b8da..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_options_attribute_map_mapping_mode_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedPreviousObject0OptionsAttributeMapMappingModeEnum = typing.Union[ - typing.Literal["bind_all", "use_map"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_options_connection_settings.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_options_connection_settings.py deleted file mode 100644 index 88179250..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_options_connection_settings.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_created_previous_object_0_options_connection_settings_pkce_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject0OptionsConnectionSettingsPkceEnum, -) - - -class EventStreamCloudEventConnectionCreatedPreviousObject0OptionsConnectionSettings(UniversalBaseModel): - """ - OAuth 2.0 PKCE (Proof Key for Code Exchange) settings. PKCE enhances security for public clients by preventing authorization code interception attacks. 'auto' (recommended) uses the strongest method supported by the IdP. - """ - - pkce: typing.Optional[EventStreamCloudEventConnectionCreatedPreviousObject0OptionsConnectionSettingsPkceEnum] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_options_connection_settings_pkce_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_options_connection_settings_pkce_enum.py deleted file mode 100644 index fbf2dfb7..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_options_connection_settings_pkce_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedPreviousObject0OptionsConnectionSettingsPkceEnum = typing.Union[ - typing.Literal["auto", "S256", "plain", "disabled"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_options_dpop_signing_alg_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_options_dpop_signing_alg_enum.py deleted file mode 100644 index d952064c..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_options_dpop_signing_alg_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedPreviousObject0OptionsDpopSigningAlgEnum = typing.Union[ - typing.Literal["ES256", "ES384", "ES512", "Ed25519"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_options_federated_connections_access_tokens.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_options_federated_connections_access_tokens.py deleted file mode 100644 index 1d650420..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_options_federated_connections_access_tokens.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionCreatedPreviousObject0OptionsFederatedConnectionsAccessTokens(UniversalBaseModel): - """ - Configuration for storing identity provider tokens in Auth0's Token Vault. When active, Auth0 securely stores access and refresh tokens from federated logins, enabling your application to make authenticated API calls on behalf of users. - """ - - active: bool = pydantic.Field() - """ - Enables refresh tokens and access tokens collection for federated connections - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_options_id_token_signed_response_algs_item_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_options_id_token_signed_response_algs_item_enum.py deleted file mode 100644 index dccc15d2..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_options_id_token_signed_response_algs_item_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum = typing.Union[ - typing.Literal["ES256", "ES384", "PS256", "PS384", "RS256", "RS384", "RS512"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_options_oidc_metadata.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_options_oidc_metadata.py deleted file mode 100644 index 0e003d1b..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_options_oidc_metadata.py +++ /dev/null @@ -1,211 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionCreatedPreviousObject0OptionsOidcMetadata(UniversalBaseModel): - """ - OpenID Connect Provider Metadata as per https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata - """ - - acr_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the Authentication Context Class References that this OP supports - """ - - authorization_endpoint: str = pydantic.Field() - """ - URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow. - """ - - claim_types_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the Claim Types that the OpenID Provider supports. These Claim Types are described in Section 5.6 of OpenID Connect Core 1.0 [OpenID.Core]. If omitted, the implementation supports only normal Claims. - """ - - claims_locales_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Languages and scripts supported for values in Claims being returned, represented as a JSON array of BCP47 [RFC5646] language tag values. Not all languages and scripts are necessarily supported for all Claim values. - """ - - claims_parameter_supported: typing.Optional[bool] = pydantic.Field(default=None) - """ - Boolean value specifying whether the OP supports use of the claims parameter, with true indicating support. If omitted, the default value is false. - """ - - claims_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the Claim Names of the Claims that the OpenID Provider MAY be able to supply values for. Note that for privacy or other reasons, this might not be an exhaustive list. - """ - - code_challenge_methods_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636. - """ - - display_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used. - """ - - dpop_signing_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS signing algorithms (alg values) supported for DPoP proof JWT signing. - """ - - end_session_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's logout/end session endpoint. When configured as a static URL, users are redirected here after logging out from Auth0. Must use HTTPS scheme. - """ - - grant_types_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the OAuth 2.0 Grant Type values that this OP supports. Dynamic OpenID Providers MUST support the authorization_code and implicit Grant Type values and MAY support other Grant Types. If omitted, the default value is ["authorization_code", "implicit"]. - """ - - id_token_encryption_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT - """ - - id_token_encryption_enc_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for the ID Token to encode the Claims in a JWT [JWT]. - """ - - id_token_signing_alg_values_supported: typing.List[str] = pydantic.Field() - """ - A list of the JWS signing algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be included. The value none MAY be supported, but MUST NOT be used unless the Response Type used returns no ID Token from the Authorization Endpoint (such as when using the Authorization Code Flow). https://datatracker.ietf.org/doc/html/rfc7518 - """ - - issuer: str = pydantic.Field() - """ - The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider. - """ - - jwks_uri: str = pydantic.Field() - """ - URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures. - """ - - op_policy_uri: typing.Optional[str] = pydantic.Field(default=None) - """ - URL that the OpenID Provider provides to the person registering the Client to read about the OPs requirements on how the Relying Party can use the data provided by the OP. The registration process SHOULD display this URL to the person registering the Client if it is given. - """ - - op_tos_uri: typing.Optional[str] = pydantic.Field(default=None) - """ - URL that the OpenID Provider provides to the person registering the Client to read about OpenID Providers terms of service. The registration process SHOULD display this URL to the person registering the Client if it is given. - """ - - registration_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the OPs Dynamic Client Registration Endpoint. RECOMMENDED but not REQUIRED. https://openid.net/specs/openid-connect-discovery-1_0.html#OpenID.Registration - """ - - request_object_encryption_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference. - """ - - request_object_encryption_enc_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference. - """ - - request_object_signing_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for Request Objects, which are described in Section 6.1 of OpenID Connect Core 1.0 [OpenID.Core]. These algorithms are used both when the Request Object is passed by value (using the request parameter) and when it is passed by reference (using the request_uri parameter). Servers SHOULD support none and RS256. - """ - - request_parameter_supported: typing.Optional[bool] = pydantic.Field(default=None) - """ - Boolean value specifying whether the OP supports use of the request parameter, with true indicating support. If omitted, the default value is false. - """ - - request_uri_parameter_supported: typing.Optional[bool] = pydantic.Field(default=None) - """ - Boolean value specifying whether the OP supports use of the request_uri parameter, with true indicating support. If omitted, the default value is false. - """ - - require_request_uri_registration: typing.Optional[bool] = pydantic.Field(default=None) - """ - Boolean value specifying whether the OP requires use of the request_uri parameter. If omitted, the default value is false. - """ - - response_modes_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the OAuth 2.0 response_mode values that this OP supports. If omitted, the default for Dynamic OpenID Providers is ["query", "fragment"] - """ - - response_types_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the OAuth 2.0 response_type values that this OP supports. Dynamic OpenID Providers MUST support the code, id_token, and the token id_token Response Type values - """ - - scopes_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the OAuth 2.0 [RFC6749] scope values that this server supports. The server MUST support the openid scope value. Servers MAY choose not to advertise some supported scope values even when this parameter is used, although those defined in [OpenID.Core] SHOULD be listed, if supported. RECOMMENDED but not REQUIRED - """ - - service_documentation: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of a page containing human-readable information that developers might want or need to know when using the OpenID Provider. In particular, if the OpenID Provider does not support Dynamic Client Registration, then information on how to register Clients needs to be provided in this documentation. - """ - - subject_types_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the Subject Identifier types that this OP supports. Valid types include pairwise and public - """ - - token_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow. - """ - - token_endpoint_auth_methods_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of Client Authentication methods supported by this Token Endpoint. The options are client_secret_post, client_secret_basic, client_secret_jwt, and private_key_jwt, as described in Section 9 of OpenID Connect Core 1.0 [OpenID.Core]. Other authentication methods MAY be defined by extensions. If omitted, the default is client_secret_basic -- the HTTP Basic Authentication Scheme specified in Section 2.3.1 of OAuth 2.0 [RFC6749]. - """ - - token_endpoint_auth_signing_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used. - """ - - ui_locales_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Languages and scripts supported for the user interface, represented as a JSON array of BCP47 [RFC5646] language tag values. - """ - - userinfo_encryption_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE [JWE] encryption algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. - """ - - userinfo_encryption_enc_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (enc values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. - """ - - userinfo_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token. - """ - - userinfo_signing_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS [JWS] signing algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. The value none MAY be included. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_options_schema_version_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_options_schema_version_enum.py deleted file mode 100644 index b8371805..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_options_schema_version_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedPreviousObject0OptionsSchemaVersionEnum = typing.Union[ - typing.Literal["openid-1.0.0", "oidc-v4"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_options_set_user_root_attributes_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_options_set_user_root_attributes_enum.py deleted file mode 100644 index 5f5feb18..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_options_set_user_root_attributes_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedPreviousObject0OptionsSetUserRootAttributesEnum = typing.Union[ - typing.Literal["on_each_login", "on_first_login", "never_on_login"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_options_token_endpoint_auth_method_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_options_token_endpoint_auth_method_enum.py deleted file mode 100644 index b44b36b3..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_options_token_endpoint_auth_method_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTokenEndpointAuthMethodEnum = typing.Union[ - typing.Literal["client_secret_post", "private_key_jwt"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_options_token_endpoint_auth_signing_alg_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_options_token_endpoint_auth_signing_alg_enum.py deleted file mode 100644 index bf7d2add..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_options_token_endpoint_auth_signing_alg_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum = typing.Union[ - typing.Literal["ES256", "ES384", "PS256", "PS384", "RS256", "RS384", "RS512"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_options_token_endpoint_jwtca_aud_format_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_options_token_endpoint_jwtca_aud_format_enum.py deleted file mode 100644 index a4a4e93b..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_options_token_endpoint_jwtca_aud_format_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTokenEndpointJwtcaAudFormatEnum = typing.Union[ - typing.Literal["issuer", "token_endpoint"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_options_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_options_type_enum.py deleted file mode 100644 index 00bf37a3..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_options_type_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedPreviousObject0OptionsTypeEnum = typing.Union[ - typing.Literal["back_channel", "front_channel"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_options_upstream_params.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_options_upstream_params.py deleted file mode 100644 index 55bd00ad..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_options_upstream_params.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedPreviousObject0OptionsUpstreamParams = typing.Dict[str, typing.Any] -""" -Additional parameters to include in authorization requests sent to the identity provider. Useful for passing custom claims, selecting specific identity sources, or configuring provider-specific behavior. See https://auth0.com/docs/authenticate/identity-providers/pass-parameters-to-idps -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_strategy_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_strategy_enum.py deleted file mode 100644 index b6a11ed1..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_0_strategy_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedPreviousObject0StrategyEnum = typing.Union[typing.Literal["oidc"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1.py deleted file mode 100644 index 87c356f0..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1.py +++ /dev/null @@ -1,73 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_created_previous_object_1_authentication import ( - EventStreamCloudEventConnectionCreatedPreviousObject1Authentication, -) -from .event_stream_cloud_event_connection_created_previous_object_1_connected_accounts import ( - EventStreamCloudEventConnectionCreatedPreviousObject1ConnectedAccounts, -) -from .event_stream_cloud_event_connection_created_previous_object_1_metadata import ( - EventStreamCloudEventConnectionCreatedPreviousObject1Metadata, -) -from .event_stream_cloud_event_connection_created_previous_object_1_options import ( - EventStreamCloudEventConnectionCreatedPreviousObject1Options, -) -from .event_stream_cloud_event_connection_created_previous_object_1_strategy_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject1StrategyEnum, -) - - -class EventStreamCloudEventConnectionCreatedPreviousObject1(UniversalBaseModel): - authentication: typing.Optional[EventStreamCloudEventConnectionCreatedPreviousObject1Authentication] = None - connected_accounts: typing.Optional[EventStreamCloudEventConnectionCreatedPreviousObject1ConnectedAccounts] = None - display_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Connection name used in the new universal login experience - """ - - enabled_clients: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. - """ - - id: str = pydantic.Field() - """ - The connection's identifier - """ - - is_domain_connection: typing.Optional[bool] = pydantic.Field(default=None) - """ - true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) - """ - - metadata: typing.Optional[EventStreamCloudEventConnectionCreatedPreviousObject1Metadata] = None - name: str = pydantic.Field() - """ - The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 - """ - - realms: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. - """ - - options: typing.Optional[EventStreamCloudEventConnectionCreatedPreviousObject1Options] = None - show_as_button: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to `false`. - """ - - strategy: EventStreamCloudEventConnectionCreatedPreviousObject1StrategyEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_authentication.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_authentication.py deleted file mode 100644 index 337c4b65..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_authentication.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionCreatedPreviousObject1Authentication(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for authentication during login. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_connected_accounts.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_connected_accounts.py deleted file mode 100644 index b664a72f..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_connected_accounts.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionCreatedPreviousObject1ConnectedAccounts(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for connected accounts and Token Vault. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_metadata.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_metadata.py deleted file mode 100644 index c192cb5a..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_metadata.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionCreatedPreviousObject1Metadata(UniversalBaseModel): - """ - Metadata associated with the connection in the form of an object with string values (max 255 chars). Maximum of 10 metadata properties allowed. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_options.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_options.py deleted file mode 100644 index 9f24f97b..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_options.py +++ /dev/null @@ -1,180 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_connection_created_previous_object_1_options_attribute_map import ( - EventStreamCloudEventConnectionCreatedPreviousObject1OptionsAttributeMap, -) -from .event_stream_cloud_event_connection_created_previous_object_1_options_connection_settings import ( - EventStreamCloudEventConnectionCreatedPreviousObject1OptionsConnectionSettings, -) -from .event_stream_cloud_event_connection_created_previous_object_1_options_dpop_signing_alg_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject1OptionsDpopSigningAlgEnum, -) -from .event_stream_cloud_event_connection_created_previous_object_1_options_federated_connections_access_tokens import ( - EventStreamCloudEventConnectionCreatedPreviousObject1OptionsFederatedConnectionsAccessTokens, -) -from .event_stream_cloud_event_connection_created_previous_object_1_options_id_token_signed_response_algs_item_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum, -) -from .event_stream_cloud_event_connection_created_previous_object_1_options_oidc_metadata import ( - EventStreamCloudEventConnectionCreatedPreviousObject1OptionsOidcMetadata, -) -from .event_stream_cloud_event_connection_created_previous_object_1_options_schema_version_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject1OptionsSchemaVersionEnum, -) -from .event_stream_cloud_event_connection_created_previous_object_1_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject1OptionsSetUserRootAttributesEnum, -) -from .event_stream_cloud_event_connection_created_previous_object_1_options_token_endpoint_auth_method_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTokenEndpointAuthMethodEnum, -) -from .event_stream_cloud_event_connection_created_previous_object_1_options_token_endpoint_auth_signing_alg_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum, -) -from .event_stream_cloud_event_connection_created_previous_object_1_options_token_endpoint_jwtca_aud_format_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTokenEndpointJwtcaAudFormatEnum, -) -from .event_stream_cloud_event_connection_created_previous_object_1_options_type_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTypeEnum, -) -from .event_stream_cloud_event_connection_created_previous_object_1_options_upstream_params import ( - EventStreamCloudEventConnectionCreatedPreviousObject1OptionsUpstreamParams, -) - - -class EventStreamCloudEventConnectionCreatedPreviousObject1Options(UniversalBaseModel): - """ - Options for the 'okta' connection - """ - - authorization_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow. - """ - - client_id: str = pydantic.Field() - """ - OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider. - """ - - connection_settings: typing.Optional[ - EventStreamCloudEventConnectionCreatedPreviousObject1OptionsConnectionSettings - ] = None - domain_aliases: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication. - """ - - dpop_signing_alg: typing.Optional[ - EventStreamCloudEventConnectionCreatedPreviousObject1OptionsDpopSigningAlgEnum - ] = None - federated_connections_access_tokens: typing.Optional[ - EventStreamCloudEventConnectionCreatedPreviousObject1OptionsFederatedConnectionsAccessTokens - ] = None - icon_url: typing.Optional[str] = pydantic.Field(default=None) - """ - https url of the icon to be shown - """ - - id_token_session_expiry_supported: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether the identity provider supports session expiry via the id_token. If true, the system will use the session_expiry claim in the id_token to determine session expiry. - """ - - id_token_signed_response_algs: typing.Optional[ - typing.List[EventStreamCloudEventConnectionCreatedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum] - ] = pydantic.Field(default=None) - """ - List of algorithms allowed to verify the ID tokens. Applicable when strategy=oidc or okta. - """ - - issuer: typing.Optional[str] = pydantic.Field(default=None) - """ - The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider. - """ - - jwks_uri: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures. - """ - - non_persistent_attrs: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) - """ - - oidc_metadata: typing.Optional[EventStreamCloudEventConnectionCreatedPreviousObject1OptionsOidcMetadata] = None - schema_version: typing.Optional[EventStreamCloudEventConnectionCreatedPreviousObject1OptionsSchemaVersionEnum] = ( - None - ) - scope: typing.Optional[str] = pydantic.Field(default=None) - """ - Space-separated list of OAuth 2.0 scopes requested during authorization. Must include 'openid' (required by OIDC spec). Common values: 'openid profile email'. Additional scopes depend on the identity provider. - """ - - send_back_channel_nonce: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true and type is 'back_channel', includes a cryptographic nonce in authorization requests to prevent replay attacks. The identity provider must include this nonce in the ID token for validation. - """ - - set_user_root_attributes: typing.Optional[ - EventStreamCloudEventConnectionCreatedPreviousObject1OptionsSetUserRootAttributesEnum - ] = None - tenant_domain: typing.Optional[str] = pydantic.Field(default=None) - """ - Tenant domain - """ - - token_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow. - """ - - token_endpoint_auth_method: typing.Optional[ - EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTokenEndpointAuthMethodEnum - ] = None - token_endpoint_auth_signing_alg: typing.Optional[ - EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum - ] = None - token_endpoint_jwtca_aud_format: typing.Optional[ - EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTokenEndpointJwtcaAudFormatEnum - ] = None - upstream_params: typing.Optional[EventStreamCloudEventConnectionCreatedPreviousObject1OptionsUpstreamParams] = None - use_oauth_spec_scope: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="useOauthSpecScope"), - pydantic.Field( - alias="useOauthSpecScope", - description="When true, uses space-delimited scopes (per OAuth 2.0 spec) instead of comma-delimited when calling the identity provider's authorization endpoint. Only relevant when using the connection_scope parameter. See https://auth0.com/docs/authenticate/identity-providers/adding-scopes-for-an-external-idp#pass-scopes-to-authorize-endpoint", - ), - ] = None - """ - When true, uses space-delimited scopes (per OAuth 2.0 spec) instead of comma-delimited when calling the identity provider's authorization endpoint. Only relevant when using the connection_scope parameter. See https://auth0.com/docs/authenticate/identity-providers/adding-scopes-for-an-external-idp#pass-scopes-to-authorize-endpoint - """ - - userinfo_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token. - """ - - attribute_map: typing.Optional[EventStreamCloudEventConnectionCreatedPreviousObject1OptionsAttributeMap] = None - domain: typing.Optional[str] = pydantic.Field(default=None) - """ - Domain of the Okta organization (e.g., dev-123456.okta.com). Should be just the domain of the okta server with no scheme or trailing backslash. Discovery runs only when connection.options.oidc_metadata is empty and a domain is provided - """ - - type: typing.Optional[EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTypeEnum] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_options_attribute_map.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_options_attribute_map.py deleted file mode 100644 index 05867b47..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_options_attribute_map.py +++ /dev/null @@ -1,39 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_created_previous_object_1_options_attribute_map_attributes import ( - EventStreamCloudEventConnectionCreatedPreviousObject1OptionsAttributeMapAttributes, -) -from .event_stream_cloud_event_connection_created_previous_object_1_options_attribute_map_mapping_mode_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject1OptionsAttributeMapMappingModeEnum, -) - - -class EventStreamCloudEventConnectionCreatedPreviousObject1OptionsAttributeMap(UniversalBaseModel): - """ - Mapping of claims received from the identity provider (IdP) - """ - - attributes: typing.Optional[EventStreamCloudEventConnectionCreatedPreviousObject1OptionsAttributeMapAttributes] = ( - None - ) - userinfo_scope: typing.Optional[str] = pydantic.Field(default=None) - """ - Scopes to send to the IdP's Userinfo endpoint - """ - - mapping_mode: typing.Optional[ - EventStreamCloudEventConnectionCreatedPreviousObject1OptionsAttributeMapMappingModeEnum - ] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_options_attribute_map_attributes.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_options_attribute_map_attributes.py deleted file mode 100644 index 053d6a1d..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_options_attribute_map_attributes.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedPreviousObject1OptionsAttributeMapAttributes = typing.Dict[str, typing.Any] -""" -Object containing mapping details for incoming claims -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_options_attribute_map_mapping_mode_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_options_attribute_map_mapping_mode_enum.py deleted file mode 100644 index d4b1e4f0..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_options_attribute_map_mapping_mode_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedPreviousObject1OptionsAttributeMapMappingModeEnum = typing.Union[ - typing.Literal["basic_profile", "use_map"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_options_connection_settings.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_options_connection_settings.py deleted file mode 100644 index c2b83553..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_options_connection_settings.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_created_previous_object_1_options_connection_settings_pkce_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject1OptionsConnectionSettingsPkceEnum, -) - - -class EventStreamCloudEventConnectionCreatedPreviousObject1OptionsConnectionSettings(UniversalBaseModel): - """ - OAuth 2.0 PKCE (Proof Key for Code Exchange) settings. PKCE enhances security for public clients by preventing authorization code interception attacks. 'auto' (recommended) uses the strongest method supported by the IdP. - """ - - pkce: typing.Optional[EventStreamCloudEventConnectionCreatedPreviousObject1OptionsConnectionSettingsPkceEnum] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_options_connection_settings_pkce_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_options_connection_settings_pkce_enum.py deleted file mode 100644 index 33b1c06e..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_options_connection_settings_pkce_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedPreviousObject1OptionsConnectionSettingsPkceEnum = typing.Union[ - typing.Literal["auto", "S256", "plain", "disabled"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_options_dpop_signing_alg_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_options_dpop_signing_alg_enum.py deleted file mode 100644 index 2073c8f6..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_options_dpop_signing_alg_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedPreviousObject1OptionsDpopSigningAlgEnum = typing.Union[ - typing.Literal["ES256", "ES384", "ES512", "Ed25519"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_options_federated_connections_access_tokens.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_options_federated_connections_access_tokens.py deleted file mode 100644 index d1ffa152..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_options_federated_connections_access_tokens.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionCreatedPreviousObject1OptionsFederatedConnectionsAccessTokens(UniversalBaseModel): - """ - Configuration for storing identity provider tokens in Auth0's Token Vault. When active, Auth0 securely stores access and refresh tokens from federated logins, enabling your application to make authenticated API calls on behalf of users. - """ - - active: bool = pydantic.Field() - """ - Enables refresh tokens and access tokens collection for federated connections - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_options_id_token_signed_response_algs_item_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_options_id_token_signed_response_algs_item_enum.py deleted file mode 100644 index c1247152..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_options_id_token_signed_response_algs_item_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum = typing.Union[ - typing.Literal["ES256", "ES384", "PS256", "PS384", "RS256", "RS384", "RS512"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_options_oidc_metadata.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_options_oidc_metadata.py deleted file mode 100644 index 244c8344..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_options_oidc_metadata.py +++ /dev/null @@ -1,211 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionCreatedPreviousObject1OptionsOidcMetadata(UniversalBaseModel): - """ - OpenID Connect Provider Metadata as per https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata - """ - - acr_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the Authentication Context Class References that this OP supports - """ - - authorization_endpoint: str = pydantic.Field() - """ - URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow. - """ - - claim_types_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the Claim Types that the OpenID Provider supports. These Claim Types are described in Section 5.6 of OpenID Connect Core 1.0 [OpenID.Core]. If omitted, the implementation supports only normal Claims. - """ - - claims_locales_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Languages and scripts supported for values in Claims being returned, represented as a JSON array of BCP47 [RFC5646] language tag values. Not all languages and scripts are necessarily supported for all Claim values. - """ - - claims_parameter_supported: typing.Optional[bool] = pydantic.Field(default=None) - """ - Boolean value specifying whether the OP supports use of the claims parameter, with true indicating support. If omitted, the default value is false. - """ - - claims_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the Claim Names of the Claims that the OpenID Provider MAY be able to supply values for. Note that for privacy or other reasons, this might not be an exhaustive list. - """ - - code_challenge_methods_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636. - """ - - display_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used. - """ - - dpop_signing_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS signing algorithms (alg values) supported for DPoP proof JWT signing. - """ - - end_session_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's logout/end session endpoint. When configured as a static URL, users are redirected here after logging out from Auth0. Must use HTTPS scheme. - """ - - grant_types_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the OAuth 2.0 Grant Type values that this OP supports. Dynamic OpenID Providers MUST support the authorization_code and implicit Grant Type values and MAY support other Grant Types. If omitted, the default value is ["authorization_code", "implicit"]. - """ - - id_token_encryption_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT - """ - - id_token_encryption_enc_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for the ID Token to encode the Claims in a JWT [JWT]. - """ - - id_token_signing_alg_values_supported: typing.List[str] = pydantic.Field() - """ - A list of the JWS signing algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be included. The value none MAY be supported, but MUST NOT be used unless the Response Type used returns no ID Token from the Authorization Endpoint (such as when using the Authorization Code Flow). https://datatracker.ietf.org/doc/html/rfc7518 - """ - - issuer: str = pydantic.Field() - """ - The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider. - """ - - jwks_uri: str = pydantic.Field() - """ - URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures. - """ - - op_policy_uri: typing.Optional[str] = pydantic.Field(default=None) - """ - URL that the OpenID Provider provides to the person registering the Client to read about the OPs requirements on how the Relying Party can use the data provided by the OP. The registration process SHOULD display this URL to the person registering the Client if it is given. - """ - - op_tos_uri: typing.Optional[str] = pydantic.Field(default=None) - """ - URL that the OpenID Provider provides to the person registering the Client to read about OpenID Providers terms of service. The registration process SHOULD display this URL to the person registering the Client if it is given. - """ - - registration_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the OPs Dynamic Client Registration Endpoint. RECOMMENDED but not REQUIRED. https://openid.net/specs/openid-connect-discovery-1_0.html#OpenID.Registration - """ - - request_object_encryption_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference. - """ - - request_object_encryption_enc_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference. - """ - - request_object_signing_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for Request Objects, which are described in Section 6.1 of OpenID Connect Core 1.0 [OpenID.Core]. These algorithms are used both when the Request Object is passed by value (using the request parameter) and when it is passed by reference (using the request_uri parameter). Servers SHOULD support none and RS256. - """ - - request_parameter_supported: typing.Optional[bool] = pydantic.Field(default=None) - """ - Boolean value specifying whether the OP supports use of the request parameter, with true indicating support. If omitted, the default value is false. - """ - - request_uri_parameter_supported: typing.Optional[bool] = pydantic.Field(default=None) - """ - Boolean value specifying whether the OP supports use of the request_uri parameter, with true indicating support. If omitted, the default value is false. - """ - - require_request_uri_registration: typing.Optional[bool] = pydantic.Field(default=None) - """ - Boolean value specifying whether the OP requires use of the request_uri parameter. If omitted, the default value is false. - """ - - response_modes_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the OAuth 2.0 response_mode values that this OP supports. If omitted, the default for Dynamic OpenID Providers is ["query", "fragment"] - """ - - response_types_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the OAuth 2.0 response_type values that this OP supports. Dynamic OpenID Providers MUST support the code, id_token, and the token id_token Response Type values - """ - - scopes_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the OAuth 2.0 [RFC6749] scope values that this server supports. The server MUST support the openid scope value. Servers MAY choose not to advertise some supported scope values even when this parameter is used, although those defined in [OpenID.Core] SHOULD be listed, if supported. RECOMMENDED but not REQUIRED - """ - - service_documentation: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of a page containing human-readable information that developers might want or need to know when using the OpenID Provider. In particular, if the OpenID Provider does not support Dynamic Client Registration, then information on how to register Clients needs to be provided in this documentation. - """ - - subject_types_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the Subject Identifier types that this OP supports. Valid types include pairwise and public - """ - - token_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow. - """ - - token_endpoint_auth_methods_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of Client Authentication methods supported by this Token Endpoint. The options are client_secret_post, client_secret_basic, client_secret_jwt, and private_key_jwt, as described in Section 9 of OpenID Connect Core 1.0 [OpenID.Core]. Other authentication methods MAY be defined by extensions. If omitted, the default is client_secret_basic -- the HTTP Basic Authentication Scheme specified in Section 2.3.1 of OAuth 2.0 [RFC6749]. - """ - - token_endpoint_auth_signing_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used. - """ - - ui_locales_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Languages and scripts supported for the user interface, represented as a JSON array of BCP47 [RFC5646] language tag values. - """ - - userinfo_encryption_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE [JWE] encryption algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. - """ - - userinfo_encryption_enc_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (enc values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. - """ - - userinfo_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token. - """ - - userinfo_signing_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS [JWS] signing algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. The value none MAY be included. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_options_schema_version_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_options_schema_version_enum.py deleted file mode 100644 index a15c02c5..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_options_schema_version_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedPreviousObject1OptionsSchemaVersionEnum = typing.Union[ - typing.Literal["openid-1.0.0", "oidc-v4"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_options_set_user_root_attributes_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_options_set_user_root_attributes_enum.py deleted file mode 100644 index 22a06617..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_options_set_user_root_attributes_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedPreviousObject1OptionsSetUserRootAttributesEnum = typing.Union[ - typing.Literal["on_each_login", "on_first_login", "never_on_login"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_options_token_endpoint_auth_method_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_options_token_endpoint_auth_method_enum.py deleted file mode 100644 index 5decd166..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_options_token_endpoint_auth_method_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTokenEndpointAuthMethodEnum = typing.Union[ - typing.Literal["client_secret_post", "private_key_jwt"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_options_token_endpoint_auth_signing_alg_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_options_token_endpoint_auth_signing_alg_enum.py deleted file mode 100644 index 781633c5..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_options_token_endpoint_auth_signing_alg_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum = typing.Union[ - typing.Literal["ES256", "ES384", "PS256", "PS384", "RS256", "RS384", "RS512"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_options_token_endpoint_jwtca_aud_format_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_options_token_endpoint_jwtca_aud_format_enum.py deleted file mode 100644 index b18be440..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_options_token_endpoint_jwtca_aud_format_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTokenEndpointJwtcaAudFormatEnum = typing.Union[ - typing.Literal["issuer", "token_endpoint"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_options_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_options_type_enum.py deleted file mode 100644 index 2d44d5db..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_options_type_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedPreviousObject1OptionsTypeEnum = typing.Union[ - typing.Literal["back_channel"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_options_upstream_params.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_options_upstream_params.py deleted file mode 100644 index 99c3b02c..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_options_upstream_params.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedPreviousObject1OptionsUpstreamParams = typing.Dict[str, typing.Any] -""" -Additional parameters to include in authorization requests sent to the identity provider. Useful for passing custom claims, selecting specific identity sources, or configuring provider-specific behavior. See https://auth0.com/docs/authenticate/identity-providers/pass-parameters-to-idps -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_strategy_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_strategy_enum.py deleted file mode 100644 index 7f43d9eb..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_1_strategy_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedPreviousObject1StrategyEnum = typing.Union[typing.Literal["okta"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_2.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_2.py deleted file mode 100644 index eba87812..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_2.py +++ /dev/null @@ -1,73 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_created_previous_object_2_authentication import ( - EventStreamCloudEventConnectionCreatedPreviousObject2Authentication, -) -from .event_stream_cloud_event_connection_created_previous_object_2_connected_accounts import ( - EventStreamCloudEventConnectionCreatedPreviousObject2ConnectedAccounts, -) -from .event_stream_cloud_event_connection_created_previous_object_2_metadata import ( - EventStreamCloudEventConnectionCreatedPreviousObject2Metadata, -) -from .event_stream_cloud_event_connection_created_previous_object_2_options import ( - EventStreamCloudEventConnectionCreatedPreviousObject2Options, -) -from .event_stream_cloud_event_connection_created_previous_object_2_strategy_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject2StrategyEnum, -) - - -class EventStreamCloudEventConnectionCreatedPreviousObject2(UniversalBaseModel): - authentication: typing.Optional[EventStreamCloudEventConnectionCreatedPreviousObject2Authentication] = None - connected_accounts: typing.Optional[EventStreamCloudEventConnectionCreatedPreviousObject2ConnectedAccounts] = None - display_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Connection name used in the new universal login experience - """ - - enabled_clients: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. - """ - - id: str = pydantic.Field() - """ - The connection's identifier - """ - - is_domain_connection: typing.Optional[bool] = pydantic.Field(default=None) - """ - true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) - """ - - metadata: typing.Optional[EventStreamCloudEventConnectionCreatedPreviousObject2Metadata] = None - name: str = pydantic.Field() - """ - The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 - """ - - realms: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. - """ - - options: typing.Optional[EventStreamCloudEventConnectionCreatedPreviousObject2Options] = None - show_as_button: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to `false`. - """ - - strategy: EventStreamCloudEventConnectionCreatedPreviousObject2StrategyEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_2_authentication.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_2_authentication.py deleted file mode 100644 index 2ae29b2e..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_2_authentication.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionCreatedPreviousObject2Authentication(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for authentication during login. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_2_connected_accounts.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_2_connected_accounts.py deleted file mode 100644 index abd9843d..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_2_connected_accounts.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionCreatedPreviousObject2ConnectedAccounts(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for connected accounts and Token Vault. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_2_metadata.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_2_metadata.py deleted file mode 100644 index f975766f..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_2_metadata.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionCreatedPreviousObject2Metadata(UniversalBaseModel): - """ - Metadata associated with the connection in the form of an object with string values (max 255 chars). Maximum of 10 metadata properties allowed. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_2_options.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_2_options.py deleted file mode 100644 index 24984c2a..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_2_options.py +++ /dev/null @@ -1,298 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_connection_created_previous_object_2_options_assertion_decryption_settings import ( - EventStreamCloudEventConnectionCreatedPreviousObject2OptionsAssertionDecryptionSettings, -) -from .event_stream_cloud_event_connection_created_previous_object_2_options_digest_algorithm_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject2OptionsDigestAlgorithmEnum, -) -from .event_stream_cloud_event_connection_created_previous_object_2_options_fields_map import ( - EventStreamCloudEventConnectionCreatedPreviousObject2OptionsFieldsMap, -) -from .event_stream_cloud_event_connection_created_previous_object_2_options_idpinitiated import ( - EventStreamCloudEventConnectionCreatedPreviousObject2OptionsIdpinitiated, -) -from .event_stream_cloud_event_connection_created_previous_object_2_options_oidc_metadata import ( - EventStreamCloudEventConnectionCreatedPreviousObject2OptionsOidcMetadata, -) -from .event_stream_cloud_event_connection_created_previous_object_2_options_protocol_binding_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject2OptionsProtocolBindingEnum, -) -from .event_stream_cloud_event_connection_created_previous_object_2_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject2OptionsSetUserRootAttributesEnum, -) -from .event_stream_cloud_event_connection_created_previous_object_2_options_signature_algorithm_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject2OptionsSignatureAlgorithmEnum, -) -from .event_stream_cloud_event_connection_created_previous_object_2_options_subject import ( - EventStreamCloudEventConnectionCreatedPreviousObject2OptionsSubject, -) -from .event_stream_cloud_event_connection_created_previous_object_2_options_upstream_params import ( - EventStreamCloudEventConnectionCreatedPreviousObject2OptionsUpstreamParams, -) - - -class EventStreamCloudEventConnectionCreatedPreviousObject2Options(UniversalBaseModel): - """ - Options for the 'samlp' connection - """ - - assertion_decryption_settings: typing.Optional[ - EventStreamCloudEventConnectionCreatedPreviousObject2OptionsAssertionDecryptionSettings - ] = None - cert: typing.Optional[str] = pydantic.Field(default=None) - """ - X.509 signing certificate from the identity provider in .der format. Used to validate signatures in SAML Responses and Assertions. This is an alternative to signingCert and is kept for backward compatibility. Prefer using signingCert instead. - """ - - cert_rollover_notification: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Timestamp of the last certificate expiring soon notification. - """ - - digest_algorithm: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventConnectionCreatedPreviousObject2OptionsDigestAlgorithmEnum], - FieldMetadata(alias="digestAlgorithm"), - pydantic.Field(alias="digestAlgorithm"), - ] = None - domain_aliases: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Domain aliases for the connection - """ - - entity_id: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="entityId"), - pydantic.Field( - alias="entityId", - description="The entity identifier (Issuer) for the SAML Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'. This value is included in SAML AuthnRequest messages sent to the identity provider.", - ), - ] = None - """ - The entity identifier (Issuer) for the SAML Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'. This value is included in SAML AuthnRequest messages sent to the identity provider. - """ - - expires: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - ISO 8601 formatted datetime indicating when the identity provider's signing certificate expires. - """ - - icon_url: typing.Optional[str] = pydantic.Field(default=None) - """ - URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows. - """ - - idpinitiated: typing.Optional[EventStreamCloudEventConnectionCreatedPreviousObject2OptionsIdpinitiated] = None - non_persistent_attrs: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) - """ - - protocol_binding: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventConnectionCreatedPreviousObject2OptionsProtocolBindingEnum], - FieldMetadata(alias="protocolBinding"), - pydantic.Field(alias="protocolBinding"), - ] = None - set_user_root_attributes: typing.Optional[ - EventStreamCloudEventConnectionCreatedPreviousObject2OptionsSetUserRootAttributesEnum - ] = None - signature_algorithm: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventConnectionCreatedPreviousObject2OptionsSignatureAlgorithmEnum], - FieldMetadata(alias="signatureAlgorithm"), - pydantic.Field(alias="signatureAlgorithm"), - ] = None - sign_in_endpoint: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="signInEndpoint"), - pydantic.Field( - alias="signInEndpoint", - description="Identity provider's SAML SingleSignOnService endpoint URL where Auth0 sends SAML authentication requests. This is the primary login URL for the SAML connection. Required unless using metadataUrl or metadataXml.", - ), - ] = None - """ - Identity provider's SAML SingleSignOnService endpoint URL where Auth0 sends SAML authentication requests. This is the primary login URL for the SAML connection. Required unless using metadataUrl or metadataXml. - """ - - signing_cert: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="signingCert"), - pydantic.Field( - alias="signingCert", - description="Base64-encoded X.509 certificate from the identity provider used to validate signatures in SAML responses and assertions. The certificate is decoded and used for cryptographic signature verification.", - ), - ] = None - """ - Base64-encoded X.509 certificate from the identity provider used to validate signatures in SAML responses and assertions. The certificate is decoded and used for cryptographic signature verification. - """ - - sign_saml_request: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="signSAMLRequest"), - pydantic.Field( - alias="signSAMLRequest", - description="When true, Auth0 signs SAML authentication requests using the connection's signing key. The signature includes the request's digest and is validated by the identity provider. Defaults to false (unsigned requests).", - ), - ] = None - """ - When true, Auth0 signs SAML authentication requests using the connection's signing key. The signature includes the request's digest and is validated by the identity provider. Defaults to false (unsigned requests). - """ - - subject: typing.Optional[EventStreamCloudEventConnectionCreatedPreviousObject2OptionsSubject] = None - tenant_domain: typing.Optional[str] = pydantic.Field(default=None) - """ - For SAML connections, the tenant domain used to construct the login endpoint URL. Can be a string for single-tenant or an array of strings for multi-tenant validation. - """ - - thumbprints: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - SHA-1 thumbprints (fingerprints) of the identity provider's signing certificates. Automatically computed from signingCert during connection creation. Each thumbprint must be a 40-character hexadecimal string. - """ - - upstream_params: typing.Optional[EventStreamCloudEventConnectionCreatedPreviousObject2OptionsUpstreamParams] = None - debug: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true, enables detailed SAML debugging by issuing 'w' (warning) events in tenant logs containing SAML request/response details. WARNING: Potentially exposes sensitive user information (PII, credentials) and should only be enabled temporarily for debugging purposes. - """ - - deflate: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true, enables DEFLATE compression for SAML requests sent via HTTP-Redirect binding. - """ - - destination_url: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="destinationUrl"), - pydantic.Field( - alias="destinationUrl", - description="The URL where Auth0 will send SAML authentication requests (the Identity Provider's SSO URL). Must be a valid HTTPS URL.", - ), - ] = None - """ - The URL where Auth0 will send SAML authentication requests (the Identity Provider's SSO URL). Must be a valid HTTPS URL. - """ - - disable_fields_map_fix: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="disableFieldsMapFix"), - pydantic.Field( - alias="disableFieldsMapFix", - description="When true, disables the automatic correction of the fieldsMap configuration to ensure proper mapping of SAML attributes to user profile fields. Defaults to false (fieldsMap fix enabled).", - ), - ] = None - """ - When true, disables the automatic correction of the fieldsMap configuration to ensure proper mapping of SAML attributes to user profile fields. Defaults to false (fieldsMap fix enabled). - """ - - disable_signout: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="disableSignout"), - pydantic.Field( - alias="disableSignout", - description="When true, disables sending SAML logout requests (SingleLogoutService) to the identity provider during user sign-out. The user will be logged out of Auth0 but will remain logged into the identity provider. Defaults to false (federated logout enabled).", - ), - ] = None - """ - When true, disables sending SAML logout requests (SingleLogoutService) to the identity provider during user sign-out. The user will be logged out of Auth0 but will remain logged into the identity provider. Defaults to false (federated logout enabled). - """ - - discovery_url: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's OIDC Discovery endpoint (/.well-known/openid-configuration). When provided and oidc_metadata is empty, Auth0 automatically retrieves the provider's configuration including endpoints and supported features. Used with Cross App Access. - """ - - fields_map: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventConnectionCreatedPreviousObject2OptionsFieldsMap], - FieldMetadata(alias="fieldsMap"), - pydantic.Field(alias="fieldsMap"), - ] = None - fields_map_json_raw: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="fieldsMapJsonRaw"), - pydantic.Field( - alias="fieldsMapJsonRaw", - description="Raw JSON string representation of the fieldsMap configuration. Used internally for storage and retrieval of the fieldsMap object.", - ), - ] = None - """ - Raw JSON string representation of the fieldsMap configuration. Used internally for storage and retrieval of the fieldsMap object. - """ - - global_token_revocation_jwt_iss: typing.Optional[str] = pydantic.Field(default=None) - """ - Expected 'iss' (Issuer) claim value for JWT tokens in Global Token Revocation requests from the identity provider. When configured, Auth0 validates the JWT issuer matches this value before processing token revocation. Must be used together with global_token_revocation_jwt_sub. - """ - - global_token_revocation_jwt_sub: typing.Optional[str] = pydantic.Field(default=None) - """ - Expected 'sub' (Subject) claim value for JWT tokens in Global Token Revocation requests from the identity provider. When configured, Auth0 validates the JWT subject matches this value before processing token revocation. Must be used together with global_token_revocation_jwt_iss. - """ - - metadata_url: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="metadataUrl"), - pydantic.Field( - alias="metadataUrl", - description="HTTPS URL to the identity provider's SAML metadata document. When provided, Auth0 automatically fetches and parses the metadata to extract signInEndpoint, signOutEndpoint, signingCert, signSAMLRequest, and protocolBinding. Use metadataUrl OR metadataXml, not both.", - ), - ] = None - """ - HTTPS URL to the identity provider's SAML metadata document. When provided, Auth0 automatically fetches and parses the metadata to extract signInEndpoint, signOutEndpoint, signingCert, signSAMLRequest, and protocolBinding. Use metadataUrl OR metadataXml, not both. - """ - - oidc_metadata: typing.Optional[EventStreamCloudEventConnectionCreatedPreviousObject2OptionsOidcMetadata] = None - recipient_url: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="recipientUrl"), - pydantic.Field( - alias="recipientUrl", - description="The URL where Auth0 will send SAML authentication requests (the Identity Provider's SSO URL). Must be a valid HTTPS URL.", - ), - ] = None - """ - The URL where Auth0 will send SAML authentication requests (the Identity Provider's SSO URL). Must be a valid HTTPS URL. - """ - - request_template: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="requestTemplate"), - pydantic.Field( - alias="requestTemplate", - description="Custom XML template for SAML authentication requests. Supports variable substitution using @@variableName@@ syntax. When not provided, uses default SAML AuthnRequest template. See https://auth0.com/docs/authenticate/protocols/saml/saml-sso-integrations/configure-auth0-saml-service-provider#customize-the-request-template", - ), - ] = None - """ - Custom XML template for SAML authentication requests. Supports variable substitution using @@variableName@@ syntax. When not provided, uses default SAML AuthnRequest template. See https://auth0.com/docs/authenticate/protocols/saml/saml-sso-integrations/configure-auth0-saml-service-provider#customize-the-request-template - """ - - sign_out_endpoint: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="signOutEndpoint"), - pydantic.Field( - alias="signOutEndpoint", - description="Identity provider's SAML SingleLogoutService endpoint URL where Auth0 sends logout requests for federated sign-out. When not provided, defaults to signInEndpoint. Only used if disableSignout is false.", - ), - ] = None - """ - Identity provider's SAML SingleLogoutService endpoint URL where Auth0 sends logout requests for federated sign-out. When not provided, defaults to signInEndpoint. Only used if disableSignout is false. - """ - - user_id_attribute: typing.Optional[str] = pydantic.Field(default=None) - """ - Custom SAML assertion attribute to use as the unique user identifier. When provided, this attribute is prepended to the default user_id mapping list with highest priority. Accepts a string (single SAML attribute name). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_2_options_assertion_decryption_settings.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_2_options_assertion_decryption_settings.py deleted file mode 100644 index c7613f66..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_2_options_assertion_decryption_settings.py +++ /dev/null @@ -1,33 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_created_previous_object_2_options_assertion_decryption_settings_algorithm_profile_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum, -) - - -class EventStreamCloudEventConnectionCreatedPreviousObject2OptionsAssertionDecryptionSettings(UniversalBaseModel): - """ - Settings for SAML assertion decryption. - """ - - algorithm_exceptions: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of insecure algorithms to allow for SAML assertion decryption. - """ - - algorithm_profile: ( - EventStreamCloudEventConnectionCreatedPreviousObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum - ) - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_2_options_assertion_decryption_settings_algorithm_profile_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_2_options_assertion_decryption_settings_algorithm_profile_enum.py deleted file mode 100644 index b5e02d27..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_2_options_assertion_decryption_settings_algorithm_profile_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedPreviousObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum = ( - typing.Union[typing.Literal["v2026-1"], typing.Any] -) diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_2_options_digest_algorithm_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_2_options_digest_algorithm_enum.py deleted file mode 100644 index 114b44ec..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_2_options_digest_algorithm_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedPreviousObject2OptionsDigestAlgorithmEnum = typing.Union[ - typing.Literal["sha1", "sha256"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_2_options_fields_map.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_2_options_fields_map.py deleted file mode 100644 index 371e61f8..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_2_options_fields_map.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedPreviousObject2OptionsFieldsMap = typing.Dict[str, typing.Any] -""" -Maps SAML assertion attributes from the identity provider to Auth0 user profile attributes. Format: { 'auth0_field': 'saml_attribute' } or { 'auth0_field': ['saml_attr1', 'saml_attr2'] } for fallback options. Merged with default mappings for email, name, given_name, family_name, and groups. -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_2_options_idpinitiated.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_2_options_idpinitiated.py deleted file mode 100644 index ee96b93b..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_2_options_idpinitiated.py +++ /dev/null @@ -1,42 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_created_previous_object_2_options_idpinitiated_client_protocol_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject2OptionsIdpinitiatedClientProtocolEnum, -) - - -class EventStreamCloudEventConnectionCreatedPreviousObject2OptionsIdpinitiated(UniversalBaseModel): - """ - Configuration for IdP-Initiated SAML Single Sign-On. When enabled, allows users to initiate login directly from their SAML identity provider without first visiting Auth0. The IdP must include the connection parameter in the post-back URL (Assertion Consumer Service URL). - """ - - client_authorizequery: typing.Optional[str] = pydantic.Field(default=None) - """ - The query string sent to the default application - """ - - client_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The client ID to use for IdP-initiated login requests. - """ - - client_protocol: typing.Optional[ - EventStreamCloudEventConnectionCreatedPreviousObject2OptionsIdpinitiatedClientProtocolEnum - ] = None - enabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true, enables IdP-initiated login support for this SAML connection. Allows users to log in directly from the identity provider without first visiting Auth0. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_2_options_idpinitiated_client_protocol_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_2_options_idpinitiated_client_protocol_enum.py deleted file mode 100644 index e85fe539..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_2_options_idpinitiated_client_protocol_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedPreviousObject2OptionsIdpinitiatedClientProtocolEnum = typing.Union[ - typing.Literal["oidc", "samlp", "wsfed"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_2_options_oidc_metadata.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_2_options_oidc_metadata.py deleted file mode 100644 index 093b1655..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_2_options_oidc_metadata.py +++ /dev/null @@ -1,211 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionCreatedPreviousObject2OptionsOidcMetadata(UniversalBaseModel): - """ - OpenID Connect Provider Metadata as per https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata. Used with Cross App Access. - """ - - acr_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the Authentication Context Class References that this OP supports - """ - - authorization_endpoint: str = pydantic.Field() - """ - URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow. - """ - - claim_types_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the Claim Types that the OpenID Provider supports. These Claim Types are described in Section 5.6 of OpenID Connect Core 1.0 [OpenID.Core]. If omitted, the implementation supports only normal Claims. - """ - - claims_locales_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Languages and scripts supported for values in Claims being returned, represented as a JSON array of BCP47 [RFC5646] language tag values. Not all languages and scripts are necessarily supported for all Claim values. - """ - - claims_parameter_supported: typing.Optional[bool] = pydantic.Field(default=None) - """ - Boolean value specifying whether the OP supports use of the claims parameter, with true indicating support. If omitted, the default value is false. - """ - - claims_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the Claim Names of the Claims that the OpenID Provider MAY be able to supply values for. Note that for privacy or other reasons, this might not be an exhaustive list. - """ - - code_challenge_methods_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636. - """ - - display_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used. - """ - - dpop_signing_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS signing algorithms (alg values) supported for DPoP proof JWT signing. - """ - - end_session_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's logout/end session endpoint. When configured as a static URL, users are redirected here after logging out from Auth0. Must use HTTPS scheme. - """ - - grant_types_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the OAuth 2.0 Grant Type values that this OP supports. Dynamic OpenID Providers MUST support the authorization_code and implicit Grant Type values and MAY support other Grant Types. If omitted, the default value is ["authorization_code", "implicit"]. - """ - - id_token_encryption_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT - """ - - id_token_encryption_enc_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for the ID Token to encode the Claims in a JWT [JWT]. - """ - - id_token_signing_alg_values_supported: typing.List[str] = pydantic.Field() - """ - A list of the JWS signing algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be included. The value none MAY be supported, but MUST NOT be used unless the Response Type used returns no ID Token from the Authorization Endpoint (such as when using the Authorization Code Flow). https://datatracker.ietf.org/doc/html/rfc7518 - """ - - issuer: str = pydantic.Field() - """ - The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider. - """ - - jwks_uri: str = pydantic.Field() - """ - URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures. - """ - - op_policy_uri: typing.Optional[str] = pydantic.Field(default=None) - """ - URL that the OpenID Provider provides to the person registering the Client to read about the OPs requirements on how the Relying Party can use the data provided by the OP. The registration process SHOULD display this URL to the person registering the Client if it is given. - """ - - op_tos_uri: typing.Optional[str] = pydantic.Field(default=None) - """ - URL that the OpenID Provider provides to the person registering the Client to read about OpenID Providers terms of service. The registration process SHOULD display this URL to the person registering the Client if it is given. - """ - - registration_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the OPs Dynamic Client Registration Endpoint. RECOMMENDED but not REQUIRED. https://openid.net/specs/openid-connect-discovery-1_0.html#OpenID.Registration - """ - - request_object_encryption_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference. - """ - - request_object_encryption_enc_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference. - """ - - request_object_signing_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for Request Objects, which are described in Section 6.1 of OpenID Connect Core 1.0 [OpenID.Core]. These algorithms are used both when the Request Object is passed by value (using the request parameter) and when it is passed by reference (using the request_uri parameter). Servers SHOULD support none and RS256. - """ - - request_parameter_supported: typing.Optional[bool] = pydantic.Field(default=None) - """ - Boolean value specifying whether the OP supports use of the request parameter, with true indicating support. If omitted, the default value is false. - """ - - request_uri_parameter_supported: typing.Optional[bool] = pydantic.Field(default=None) - """ - Boolean value specifying whether the OP supports use of the request_uri parameter, with true indicating support. If omitted, the default value is false. - """ - - require_request_uri_registration: typing.Optional[bool] = pydantic.Field(default=None) - """ - Boolean value specifying whether the OP requires use of the request_uri parameter. If omitted, the default value is false. - """ - - response_modes_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the OAuth 2.0 response_mode values that this OP supports. If omitted, the default for Dynamic OpenID Providers is ["query", "fragment"] - """ - - response_types_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the OAuth 2.0 response_type values that this OP supports. Dynamic OpenID Providers MUST support the code, id_token, and the token id_token Response Type values - """ - - scopes_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the OAuth 2.0 [RFC6749] scope values that this server supports. The server MUST support the openid scope value. Servers MAY choose not to advertise some supported scope values even when this parameter is used, although those defined in [OpenID.Core] SHOULD be listed, if supported. RECOMMENDED but not REQUIRED - """ - - service_documentation: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of a page containing human-readable information that developers might want or need to know when using the OpenID Provider. In particular, if the OpenID Provider does not support Dynamic Client Registration, then information on how to register Clients needs to be provided in this documentation. - """ - - subject_types_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the Subject Identifier types that this OP supports. Valid types include pairwise and public - """ - - token_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow. - """ - - token_endpoint_auth_methods_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of Client Authentication methods supported by this Token Endpoint. The options are client_secret_post, client_secret_basic, client_secret_jwt, and private_key_jwt, as described in Section 9 of OpenID Connect Core 1.0 [OpenID.Core]. Other authentication methods MAY be defined by extensions. If omitted, the default is client_secret_basic -- the HTTP Basic Authentication Scheme specified in Section 2.3.1 of OAuth 2.0 [RFC6749]. - """ - - token_endpoint_auth_signing_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used. - """ - - ui_locales_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Languages and scripts supported for the user interface, represented as a JSON array of BCP47 [RFC5646] language tag values. - """ - - userinfo_encryption_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE [JWE] encryption algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. - """ - - userinfo_encryption_enc_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (enc values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. - """ - - userinfo_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token. - """ - - userinfo_signing_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS [JWS] signing algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. The value none MAY be included. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_2_options_protocol_binding_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_2_options_protocol_binding_enum.py deleted file mode 100644 index 5d398897..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_2_options_protocol_binding_enum.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedPreviousObject2OptionsProtocolBindingEnum = typing.Union[ - typing.Literal[ - "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST", "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect" - ], - typing.Any, -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_2_options_set_user_root_attributes_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_2_options_set_user_root_attributes_enum.py deleted file mode 100644 index 79d7f593..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_2_options_set_user_root_attributes_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedPreviousObject2OptionsSetUserRootAttributesEnum = typing.Union[ - typing.Literal["on_each_login", "on_first_login", "never_on_login"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_2_options_signature_algorithm_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_2_options_signature_algorithm_enum.py deleted file mode 100644 index 0b17d16f..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_2_options_signature_algorithm_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedPreviousObject2OptionsSignatureAlgorithmEnum = typing.Union[ - typing.Literal["rsa-sha1", "rsa-sha256"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_2_options_subject.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_2_options_subject.py deleted file mode 100644 index 27d68863..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_2_options_subject.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionCreatedPreviousObject2OptionsSubject(UniversalBaseModel): - """ - Certificate Subject Distinguished Name (DN) extracted from the identity provider's signing certificate. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_2_options_upstream_params.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_2_options_upstream_params.py deleted file mode 100644 index 9605f318..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_2_options_upstream_params.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedPreviousObject2OptionsUpstreamParams = typing.Dict[str, typing.Any] -""" -Additional parameters to include in authorization requests sent to the identity provider. Useful for passing custom claims, selecting specific identity sources, or configuring provider-specific behavior. See https://auth0.com/docs/authenticate/identity-providers/pass-parameters-to-idps -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_2_strategy_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_2_strategy_enum.py deleted file mode 100644 index 77bc4c02..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_2_strategy_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedPreviousObject2StrategyEnum = typing.Union[typing.Literal["samlp"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_3.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_3.py deleted file mode 100644 index 7a5acdd7..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_3.py +++ /dev/null @@ -1,73 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_created_previous_object_3_authentication import ( - EventStreamCloudEventConnectionCreatedPreviousObject3Authentication, -) -from .event_stream_cloud_event_connection_created_previous_object_3_connected_accounts import ( - EventStreamCloudEventConnectionCreatedPreviousObject3ConnectedAccounts, -) -from .event_stream_cloud_event_connection_created_previous_object_3_metadata import ( - EventStreamCloudEventConnectionCreatedPreviousObject3Metadata, -) -from .event_stream_cloud_event_connection_created_previous_object_3_options import ( - EventStreamCloudEventConnectionCreatedPreviousObject3Options, -) -from .event_stream_cloud_event_connection_created_previous_object_3_strategy_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject3StrategyEnum, -) - - -class EventStreamCloudEventConnectionCreatedPreviousObject3(UniversalBaseModel): - authentication: typing.Optional[EventStreamCloudEventConnectionCreatedPreviousObject3Authentication] = None - connected_accounts: typing.Optional[EventStreamCloudEventConnectionCreatedPreviousObject3ConnectedAccounts] = None - display_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Connection name used in the new universal login experience - """ - - enabled_clients: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. - """ - - id: str = pydantic.Field() - """ - The connection's identifier - """ - - is_domain_connection: typing.Optional[bool] = pydantic.Field(default=None) - """ - true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) - """ - - metadata: typing.Optional[EventStreamCloudEventConnectionCreatedPreviousObject3Metadata] = None - name: str = pydantic.Field() - """ - The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 - """ - - realms: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. - """ - - options: typing.Optional[EventStreamCloudEventConnectionCreatedPreviousObject3Options] = None - show_as_button: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to `false`. - """ - - strategy: EventStreamCloudEventConnectionCreatedPreviousObject3StrategyEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_3_authentication.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_3_authentication.py deleted file mode 100644 index 3f2b979e..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_3_authentication.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionCreatedPreviousObject3Authentication(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for authentication during login. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_3_connected_accounts.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_3_connected_accounts.py deleted file mode 100644 index 85d76b46..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_3_connected_accounts.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionCreatedPreviousObject3ConnectedAccounts(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for connected accounts and Token Vault. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_3_metadata.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_3_metadata.py deleted file mode 100644 index d75546c7..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_3_metadata.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionCreatedPreviousObject3Metadata(UniversalBaseModel): - """ - Metadata associated with the connection in the form of an object with string values (max 255 chars). Maximum of 10 metadata properties allowed. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_3_options.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_3_options.py deleted file mode 100644 index 19f9cf3b..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_3_options.py +++ /dev/null @@ -1,172 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_connection_created_previous_object_3_options_assertion_decryption_settings import ( - EventStreamCloudEventConnectionCreatedPreviousObject3OptionsAssertionDecryptionSettings, -) -from .event_stream_cloud_event_connection_created_previous_object_3_options_digest_algorithm_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject3OptionsDigestAlgorithmEnum, -) -from .event_stream_cloud_event_connection_created_previous_object_3_options_idpinitiated import ( - EventStreamCloudEventConnectionCreatedPreviousObject3OptionsIdpinitiated, -) -from .event_stream_cloud_event_connection_created_previous_object_3_options_protocol_binding_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject3OptionsProtocolBindingEnum, -) -from .event_stream_cloud_event_connection_created_previous_object_3_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject3OptionsSetUserRootAttributesEnum, -) -from .event_stream_cloud_event_connection_created_previous_object_3_options_signature_algorithm_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject3OptionsSignatureAlgorithmEnum, -) -from .event_stream_cloud_event_connection_created_previous_object_3_options_subject import ( - EventStreamCloudEventConnectionCreatedPreviousObject3OptionsSubject, -) -from .event_stream_cloud_event_connection_created_previous_object_3_options_upstream_params import ( - EventStreamCloudEventConnectionCreatedPreviousObject3OptionsUpstreamParams, -) - - -class EventStreamCloudEventConnectionCreatedPreviousObject3Options(UniversalBaseModel): - """ - Options for the 'pingfederate' connection - """ - - assertion_decryption_settings: typing.Optional[ - EventStreamCloudEventConnectionCreatedPreviousObject3OptionsAssertionDecryptionSettings - ] = None - cert: typing.Optional[str] = pydantic.Field(default=None) - """ - X.509 signing certificate from the identity provider in .der format. Used to validate signatures in SAML Responses and Assertions. This is an alternative to signingCert and is kept for backward compatibility. Prefer using signingCert instead. - """ - - cert_rollover_notification: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Timestamp of the last certificate expiring soon notification. - """ - - digest_algorithm: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventConnectionCreatedPreviousObject3OptionsDigestAlgorithmEnum], - FieldMetadata(alias="digestAlgorithm"), - pydantic.Field(alias="digestAlgorithm"), - ] = None - domain_aliases: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Domain aliases for the connection - """ - - entity_id: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="entityId"), - pydantic.Field( - alias="entityId", - description="The entity identifier (Issuer) for the SAML Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'. This value is included in SAML AuthnRequest messages sent to the identity provider.", - ), - ] = None - """ - The entity identifier (Issuer) for the SAML Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'. This value is included in SAML AuthnRequest messages sent to the identity provider. - """ - - expires: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - ISO 8601 formatted datetime indicating when the identity provider's signing certificate expires. - """ - - icon_url: typing.Optional[str] = pydantic.Field(default=None) - """ - URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows. - """ - - idpinitiated: typing.Optional[EventStreamCloudEventConnectionCreatedPreviousObject3OptionsIdpinitiated] = None - non_persistent_attrs: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) - """ - - protocol_binding: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventConnectionCreatedPreviousObject3OptionsProtocolBindingEnum], - FieldMetadata(alias="protocolBinding"), - pydantic.Field(alias="protocolBinding"), - ] = None - set_user_root_attributes: typing.Optional[ - EventStreamCloudEventConnectionCreatedPreviousObject3OptionsSetUserRootAttributesEnum - ] = None - signature_algorithm: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventConnectionCreatedPreviousObject3OptionsSignatureAlgorithmEnum], - FieldMetadata(alias="signatureAlgorithm"), - pydantic.Field(alias="signatureAlgorithm"), - ] = None - sign_in_endpoint: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="signInEndpoint"), - pydantic.Field( - alias="signInEndpoint", - description="Identity provider's SAML SingleSignOnService endpoint URL where Auth0 sends SAML authentication requests. This is the primary login URL for the SAML connection. Required unless using metadataUrl or metadataXml.", - ), - ] = None - """ - Identity provider's SAML SingleSignOnService endpoint URL where Auth0 sends SAML authentication requests. This is the primary login URL for the SAML connection. Required unless using metadataUrl or metadataXml. - """ - - signing_cert: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="signingCert"), - pydantic.Field( - alias="signingCert", - description="Base64-encoded X.509 certificate from the identity provider used to validate signatures in SAML responses and assertions. The certificate is decoded and used for cryptographic signature verification.", - ), - ] = None - """ - Base64-encoded X.509 certificate from the identity provider used to validate signatures in SAML responses and assertions. The certificate is decoded and used for cryptographic signature verification. - """ - - sign_saml_request: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="signSAMLRequest"), - pydantic.Field( - alias="signSAMLRequest", - description="When true, Auth0 signs SAML authentication requests using the connection's signing key. The signature includes the request's digest and is validated by the identity provider. Defaults to false (unsigned requests).", - ), - ] = None - """ - When true, Auth0 signs SAML authentication requests using the connection's signing key. The signature includes the request's digest and is validated by the identity provider. Defaults to false (unsigned requests). - """ - - subject: typing.Optional[EventStreamCloudEventConnectionCreatedPreviousObject3OptionsSubject] = None - tenant_domain: typing.Optional[str] = pydantic.Field(default=None) - """ - For SAML connections, the tenant domain used to construct the login endpoint URL. Can be a string for single-tenant or an array of strings for multi-tenant validation. - """ - - thumbprints: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - SHA-1 thumbprints (fingerprints) of the identity provider's signing certificates. Automatically computed from signingCert during connection creation. Each thumbprint must be a 40-character hexadecimal string. - """ - - upstream_params: typing.Optional[EventStreamCloudEventConnectionCreatedPreviousObject3OptionsUpstreamParams] = None - ping_federate_base_url: typing_extensions.Annotated[ - str, - FieldMetadata(alias="pingFederateBaseUrl"), - pydantic.Field( - alias="pingFederateBaseUrl", - description="URL provided by PingFederate which returns information used for creating the connection", - ), - ] - """ - URL provided by PingFederate which returns information used for creating the connection - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_3_options_assertion_decryption_settings.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_3_options_assertion_decryption_settings.py deleted file mode 100644 index cb466956..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_3_options_assertion_decryption_settings.py +++ /dev/null @@ -1,33 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_created_previous_object_3_options_assertion_decryption_settings_algorithm_profile_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum, -) - - -class EventStreamCloudEventConnectionCreatedPreviousObject3OptionsAssertionDecryptionSettings(UniversalBaseModel): - """ - Settings for SAML assertion decryption. - """ - - algorithm_exceptions: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of insecure algorithms to allow for SAML assertion decryption. - """ - - algorithm_profile: ( - EventStreamCloudEventConnectionCreatedPreviousObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum - ) - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_3_options_assertion_decryption_settings_algorithm_profile_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_3_options_assertion_decryption_settings_algorithm_profile_enum.py deleted file mode 100644 index b96d47dc..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_3_options_assertion_decryption_settings_algorithm_profile_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedPreviousObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum = ( - typing.Union[typing.Literal["v2026-1"], typing.Any] -) diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_3_options_digest_algorithm_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_3_options_digest_algorithm_enum.py deleted file mode 100644 index ec2d2010..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_3_options_digest_algorithm_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedPreviousObject3OptionsDigestAlgorithmEnum = typing.Union[ - typing.Literal["sha1", "sha256"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_3_options_idpinitiated.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_3_options_idpinitiated.py deleted file mode 100644 index 8c99b57a..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_3_options_idpinitiated.py +++ /dev/null @@ -1,42 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_created_previous_object_3_options_idpinitiated_client_protocol_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject3OptionsIdpinitiatedClientProtocolEnum, -) - - -class EventStreamCloudEventConnectionCreatedPreviousObject3OptionsIdpinitiated(UniversalBaseModel): - """ - Configuration for IdP-Initiated SAML Single Sign-On. When enabled, allows users to initiate login directly from their SAML identity provider without first visiting Auth0. The IdP must include the connection parameter in the post-back URL (Assertion Consumer Service URL). - """ - - client_authorizequery: typing.Optional[str] = pydantic.Field(default=None) - """ - The query string sent to the default application - """ - - client_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The client ID to use for IdP-initiated login requests. - """ - - client_protocol: typing.Optional[ - EventStreamCloudEventConnectionCreatedPreviousObject3OptionsIdpinitiatedClientProtocolEnum - ] = None - enabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true, enables IdP-initiated login support for this SAML connection. Allows users to log in directly from the identity provider without first visiting Auth0. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_3_options_idpinitiated_client_protocol_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_3_options_idpinitiated_client_protocol_enum.py deleted file mode 100644 index f87555f5..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_3_options_idpinitiated_client_protocol_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedPreviousObject3OptionsIdpinitiatedClientProtocolEnum = typing.Union[ - typing.Literal["oidc", "samlp", "wsfed"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_3_options_protocol_binding_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_3_options_protocol_binding_enum.py deleted file mode 100644 index 23c25c48..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_3_options_protocol_binding_enum.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedPreviousObject3OptionsProtocolBindingEnum = typing.Union[ - typing.Literal[ - "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST", "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect" - ], - typing.Any, -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_3_options_set_user_root_attributes_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_3_options_set_user_root_attributes_enum.py deleted file mode 100644 index c4758854..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_3_options_set_user_root_attributes_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedPreviousObject3OptionsSetUserRootAttributesEnum = typing.Union[ - typing.Literal["on_each_login", "on_first_login", "never_on_login"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_3_options_signature_algorithm_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_3_options_signature_algorithm_enum.py deleted file mode 100644 index 51f2e708..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_3_options_signature_algorithm_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedPreviousObject3OptionsSignatureAlgorithmEnum = typing.Union[ - typing.Literal["rsa-sha1", "rsa-sha256"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_3_options_subject.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_3_options_subject.py deleted file mode 100644 index 5c87ac04..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_3_options_subject.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionCreatedPreviousObject3OptionsSubject(UniversalBaseModel): - """ - Certificate Subject Distinguished Name (DN) extracted from the identity provider's signing certificate. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_3_options_upstream_params.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_3_options_upstream_params.py deleted file mode 100644 index e2315588..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_3_options_upstream_params.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedPreviousObject3OptionsUpstreamParams = typing.Dict[str, typing.Any] -""" -Additional parameters to include in authorization requests sent to the identity provider. Useful for passing custom claims, selecting specific identity sources, or configuring provider-specific behavior. See https://auth0.com/docs/authenticate/identity-providers/pass-parameters-to-idps -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_3_strategy_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_3_strategy_enum.py deleted file mode 100644 index d9639c51..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_3_strategy_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedPreviousObject3StrategyEnum = typing.Union[ - typing.Literal["pingfederate"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_4.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_4.py deleted file mode 100644 index bf2ed411..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_4.py +++ /dev/null @@ -1,73 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_created_previous_object_4_authentication import ( - EventStreamCloudEventConnectionCreatedPreviousObject4Authentication, -) -from .event_stream_cloud_event_connection_created_previous_object_4_connected_accounts import ( - EventStreamCloudEventConnectionCreatedPreviousObject4ConnectedAccounts, -) -from .event_stream_cloud_event_connection_created_previous_object_4_metadata import ( - EventStreamCloudEventConnectionCreatedPreviousObject4Metadata, -) -from .event_stream_cloud_event_connection_created_previous_object_4_options import ( - EventStreamCloudEventConnectionCreatedPreviousObject4Options, -) -from .event_stream_cloud_event_connection_created_previous_object_4_strategy_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject4StrategyEnum, -) - - -class EventStreamCloudEventConnectionCreatedPreviousObject4(UniversalBaseModel): - authentication: typing.Optional[EventStreamCloudEventConnectionCreatedPreviousObject4Authentication] = None - connected_accounts: typing.Optional[EventStreamCloudEventConnectionCreatedPreviousObject4ConnectedAccounts] = None - display_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Connection name used in the new universal login experience - """ - - enabled_clients: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. - """ - - id: str = pydantic.Field() - """ - The connection's identifier - """ - - is_domain_connection: typing.Optional[bool] = pydantic.Field(default=None) - """ - true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) - """ - - metadata: typing.Optional[EventStreamCloudEventConnectionCreatedPreviousObject4Metadata] = None - name: str = pydantic.Field() - """ - The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 - """ - - realms: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. - """ - - options: typing.Optional[EventStreamCloudEventConnectionCreatedPreviousObject4Options] = None - show_as_button: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to `false`. - """ - - strategy: EventStreamCloudEventConnectionCreatedPreviousObject4StrategyEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_4_authentication.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_4_authentication.py deleted file mode 100644 index 62e1a5bb..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_4_authentication.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionCreatedPreviousObject4Authentication(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for authentication during login. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_4_connected_accounts.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_4_connected_accounts.py deleted file mode 100644 index 2d1a1207..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_4_connected_accounts.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionCreatedPreviousObject4ConnectedAccounts(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for connected accounts and Token Vault. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_4_metadata.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_4_metadata.py deleted file mode 100644 index ad64634b..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_4_metadata.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionCreatedPreviousObject4Metadata(UniversalBaseModel): - """ - Metadata associated with the connection in the form of an object with string values (max 255 chars). Maximum of 10 metadata properties allowed. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_4_options.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_4_options.py deleted file mode 100644 index 2aa210fe..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_4_options.py +++ /dev/null @@ -1,121 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_connection_created_previous_object_4_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject4OptionsSetUserRootAttributesEnum, -) -from .event_stream_cloud_event_connection_created_previous_object_4_options_should_trust_email_verified_connection_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject4OptionsShouldTrustEmailVerifiedConnectionEnum, -) -from .event_stream_cloud_event_connection_created_previous_object_4_options_upstream_params import ( - EventStreamCloudEventConnectionCreatedPreviousObject4OptionsUpstreamParams, -) - - -class EventStreamCloudEventConnectionCreatedPreviousObject4Options(UniversalBaseModel): - """ - Options for the 'adfs' connection - """ - - adfs_server: typing.Optional[str] = pydantic.Field(default=None) - """ - ADFS federation metadata host or XML URL used to discover WS-Fed endpoints and certificates. Errors if adfs_server and fedMetadataXml are both absent. - """ - - cert_rollover_notification: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Timestamp of the last certificate expiring soon notification. - """ - - domain_aliases: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication. - """ - - entity_id: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="entityId"), - pydantic.Field( - alias="entityId", - description="The entity identifier (Issuer) for the ADFS Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'.", - ), - ] = None - """ - The entity identifier (Issuer) for the ADFS Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'. - """ - - fed_metadata_xml: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="fedMetadataXml"), - pydantic.Field( - alias="fedMetadataXml", - description="Inline XML alternative to 'adfs_server'. Cannot be set together with 'adfs_server'.", - ), - ] = None - """ - Inline XML alternative to 'adfs_server'. Cannot be set together with 'adfs_server'. - """ - - icon_url: typing.Optional[str] = pydantic.Field(default=None) - """ - URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows. - """ - - non_persistent_attrs: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) - """ - - prev_thumbprints: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Array of certificate thumbprints (SHA-128/SHA-256/SHA-512 hex hashes) for validating SAML signatures. Used with WS-Federation protocol. Maximum 20 thumbprints. Each thumbprint must be a hexadecimal string. - """ - - set_user_root_attributes: typing.Optional[ - EventStreamCloudEventConnectionCreatedPreviousObject4OptionsSetUserRootAttributesEnum - ] = None - should_trust_email_verified_connection: typing.Optional[ - EventStreamCloudEventConnectionCreatedPreviousObject4OptionsShouldTrustEmailVerifiedConnectionEnum - ] = None - sign_in_endpoint: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="signInEndpoint"), - pydantic.Field( - alias="signInEndpoint", - description="Passive Requestor (WS-Fed) sign-in endpoint discovered from metadata or provided explicitly.", - ), - ] = None - """ - Passive Requestor (WS-Fed) sign-in endpoint discovered from metadata or provided explicitly. - """ - - tenant_domain: typing.Optional[str] = pydantic.Field(default=None) - """ - Tenant domain - """ - - thumbprints: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Array of certificate thumbprints (SHA-128/SHA-256/SHA-512 hex hashes) for validating SAML signatures. Used with WS-Federation protocol. Maximum 20 thumbprints. Each thumbprint must be a hexadecimal string. - """ - - upstream_params: typing.Optional[EventStreamCloudEventConnectionCreatedPreviousObject4OptionsUpstreamParams] = None - user_id_attribute: typing.Optional[str] = pydantic.Field(default=None) - """ - Custom ADFS claim to use as the unique user identifier. When provided, this attribute is prepended to the default user_id mapping list with highest priority. Accepts a string (single ADFS claim name). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_4_options_set_user_root_attributes_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_4_options_set_user_root_attributes_enum.py deleted file mode 100644 index 850619e7..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_4_options_set_user_root_attributes_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedPreviousObject4OptionsSetUserRootAttributesEnum = typing.Union[ - typing.Literal["on_each_login", "on_first_login", "never_on_login"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_4_options_should_trust_email_verified_connection_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_4_options_should_trust_email_verified_connection_enum.py deleted file mode 100644 index d9cdaf75..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_4_options_should_trust_email_verified_connection_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedPreviousObject4OptionsShouldTrustEmailVerifiedConnectionEnum = typing.Union[ - typing.Literal["never_set_emails_as_verified", "always_set_emails_as_verified"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_4_options_upstream_params.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_4_options_upstream_params.py deleted file mode 100644 index c3c9e51e..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_4_options_upstream_params.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedPreviousObject4OptionsUpstreamParams = typing.Dict[str, typing.Any] -""" -Additional parameters to include in authorization requests sent to the identity provider. Useful for passing custom claims, selecting specific identity sources, or configuring provider-specific behavior. See https://auth0.com/docs/authenticate/identity-providers/pass-parameters-to-idps -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_4_strategy_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_4_strategy_enum.py deleted file mode 100644 index 63d97f24..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_4_strategy_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedPreviousObject4StrategyEnum = typing.Union[typing.Literal["adfs"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_5.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_5.py deleted file mode 100644 index 8d37f597..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_5.py +++ /dev/null @@ -1,68 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_created_previous_object_5_authentication import ( - EventStreamCloudEventConnectionCreatedPreviousObject5Authentication, -) -from .event_stream_cloud_event_connection_created_previous_object_5_connected_accounts import ( - EventStreamCloudEventConnectionCreatedPreviousObject5ConnectedAccounts, -) -from .event_stream_cloud_event_connection_created_previous_object_5_metadata import ( - EventStreamCloudEventConnectionCreatedPreviousObject5Metadata, -) -from .event_stream_cloud_event_connection_created_previous_object_5_options import ( - EventStreamCloudEventConnectionCreatedPreviousObject5Options, -) -from .event_stream_cloud_event_connection_created_previous_object_5_strategy_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject5StrategyEnum, -) - - -class EventStreamCloudEventConnectionCreatedPreviousObject5(UniversalBaseModel): - authentication: typing.Optional[EventStreamCloudEventConnectionCreatedPreviousObject5Authentication] = None - connected_accounts: typing.Optional[EventStreamCloudEventConnectionCreatedPreviousObject5ConnectedAccounts] = None - display_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Connection name used in the new universal login experience - """ - - enabled_clients: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. - """ - - id: str = pydantic.Field() - """ - The connection's identifier - """ - - is_domain_connection: typing.Optional[bool] = pydantic.Field(default=None) - """ - true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) - """ - - metadata: typing.Optional[EventStreamCloudEventConnectionCreatedPreviousObject5Metadata] = None - name: str = pydantic.Field() - """ - The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 - """ - - realms: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. - """ - - options: typing.Optional[EventStreamCloudEventConnectionCreatedPreviousObject5Options] = None - strategy: EventStreamCloudEventConnectionCreatedPreviousObject5StrategyEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_5_authentication.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_5_authentication.py deleted file mode 100644 index 8d8b1646..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_5_authentication.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionCreatedPreviousObject5Authentication(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for authentication during login. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_5_connected_accounts.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_5_connected_accounts.py deleted file mode 100644 index 6c04a537..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_5_connected_accounts.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionCreatedPreviousObject5ConnectedAccounts(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for connected accounts and Token Vault. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_5_metadata.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_5_metadata.py deleted file mode 100644 index 0c4360ae..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_5_metadata.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionCreatedPreviousObject5Metadata(UniversalBaseModel): - """ - Metadata associated with the connection in the form of an object with string values (max 255 chars). Maximum of 10 metadata properties allowed. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_5_options.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_5_options.py deleted file mode 100644 index ee1fe36c..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_5_options.py +++ /dev/null @@ -1,154 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_connection_created_previous_object_5_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject5OptionsSetUserRootAttributesEnum, -) -from .event_stream_cloud_event_connection_created_previous_object_5_options_upstream_params import ( - EventStreamCloudEventConnectionCreatedPreviousObject5OptionsUpstreamParams, -) - - -class EventStreamCloudEventConnectionCreatedPreviousObject5Options(UniversalBaseModel): - """ - Options for the 'ad' connection - """ - - agent_ip: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="agentIP"), - pydantic.Field( - alias="agentIP", - description="IP address of the AD connector agent used to validate that authentication requests originate from the corporate network for Kerberos authentication (managed by the AD Connector agent).", - ), - ] = None - """ - IP address of the AD connector agent used to validate that authentication requests originate from the corporate network for Kerberos authentication (managed by the AD Connector agent). - """ - - agent_mode: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="agentMode"), - pydantic.Field( - alias="agentMode", - description="When enabled, allows direct username/password authentication through the AD connector agent instead of WS-Federation protocol (managed by the AD Connector agent).", - ), - ] = None - """ - When enabled, allows direct username/password authentication through the AD connector agent instead of WS-Federation protocol (managed by the AD Connector agent). - """ - - agent_version: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="agentVersion"), - pydantic.Field( - alias="agentVersion", - description="Version identifier of the installed AD connector agent software (managed by the AD Connector agent).", - ), - ] = None - """ - Version identifier of the installed AD connector agent software (managed by the AD Connector agent). - """ - - brute_force_protection: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables Auth0's brute force protection to prevent credential stuffing attacks. When enabled, blocks suspicious login attempts from specific IP addresses after repeated failures. - """ - - cert_auth: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="certAuth"), - pydantic.Field( - alias="certAuth", - description="Enables client SSL certificate authentication for the AD connector, requiring HTTPS on the sign-in endpoint", - ), - ] = None - """ - Enables client SSL certificate authentication for the AD connector, requiring HTTPS on the sign-in endpoint - """ - - certs: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Array of X.509 certificates in PEM format used for validating SAML signatures from the AD identity provider (managed by the AD Connector agent). - """ - - disable_cache: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, disables caching of AD connector authentication results to ensure real-time validation against the directory - """ - - disable_self_service_change_password: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, hides the 'Forgot Password' link on login pages to prevent users from initiating self-service password resets - """ - - domain_aliases: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - List of domain names that can be used with identifier-first authentication flow to route users to this AD connection; each domain must be a valid DNS name up to 256 characters - """ - - icon_url: typing.Optional[str] = pydantic.Field(default=None) - """ - https url of the icon to be shown - """ - - ips: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Array of IP address ranges in CIDR notation used to determine if authentication requests originate from the corporate network for Kerberos or certificate authentication. - """ - - kerberos: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables Windows Integrated Authentication (Kerberos) for seamless SSO when users authenticate from within the corporate network IP ranges - """ - - kerberos_only: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true, restricts the connection to Kerberos-only authentication, disallowing username/password fallback. - """ - - non_persistent_attrs: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) - """ - - set_user_root_attributes: typing.Optional[ - EventStreamCloudEventConnectionCreatedPreviousObject5OptionsSetUserRootAttributesEnum - ] = None - sign_in_endpoint: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="signInEndpoint"), - pydantic.Field( - alias="signInEndpoint", - description="The sign-in endpoint type for the AD-LDAP connector agent (managed by the AD Connector agent).", - ), - ] = None - """ - The sign-in endpoint type for the AD-LDAP connector agent (managed by the AD Connector agent). - """ - - tenant_domain: typing.Optional[str] = pydantic.Field(default=None) - """ - Primary AD domain hint used for HRD and discovery. - """ - - thumbprints: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Array of certificate SHA-1 thumbprints for validating signatures. Managed by Auth0 when using the AD Connector agent. - """ - - upstream_params: typing.Optional[EventStreamCloudEventConnectionCreatedPreviousObject5OptionsUpstreamParams] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_5_options_set_user_root_attributes_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_5_options_set_user_root_attributes_enum.py deleted file mode 100644 index 1b643370..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_5_options_set_user_root_attributes_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedPreviousObject5OptionsSetUserRootAttributesEnum = typing.Union[ - typing.Literal["on_each_login", "on_first_login", "never_on_login"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_5_options_upstream_params.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_5_options_upstream_params.py deleted file mode 100644 index d6d08315..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_5_options_upstream_params.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedPreviousObject5OptionsUpstreamParams = typing.Dict[str, typing.Any] -""" -Additional parameters to include in authorization requests sent to the identity provider. Useful for passing custom claims, selecting specific identity sources, or configuring provider-specific behavior. See https://auth0.com/docs/authenticate/identity-providers/pass-parameters-to-idps -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_5_strategy_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_5_strategy_enum.py deleted file mode 100644 index 780d58b3..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_5_strategy_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedPreviousObject5StrategyEnum = typing.Union[typing.Literal["ad"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_6.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_6.py deleted file mode 100644 index 65edde4b..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_6.py +++ /dev/null @@ -1,73 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_created_previous_object_6_authentication import ( - EventStreamCloudEventConnectionCreatedPreviousObject6Authentication, -) -from .event_stream_cloud_event_connection_created_previous_object_6_connected_accounts import ( - EventStreamCloudEventConnectionCreatedPreviousObject6ConnectedAccounts, -) -from .event_stream_cloud_event_connection_created_previous_object_6_metadata import ( - EventStreamCloudEventConnectionCreatedPreviousObject6Metadata, -) -from .event_stream_cloud_event_connection_created_previous_object_6_options import ( - EventStreamCloudEventConnectionCreatedPreviousObject6Options, -) -from .event_stream_cloud_event_connection_created_previous_object_6_strategy_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject6StrategyEnum, -) - - -class EventStreamCloudEventConnectionCreatedPreviousObject6(UniversalBaseModel): - authentication: typing.Optional[EventStreamCloudEventConnectionCreatedPreviousObject6Authentication] = None - connected_accounts: typing.Optional[EventStreamCloudEventConnectionCreatedPreviousObject6ConnectedAccounts] = None - display_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Connection name used in the new universal login experience - """ - - enabled_clients: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. - """ - - id: str = pydantic.Field() - """ - The connection's identifier - """ - - is_domain_connection: typing.Optional[bool] = pydantic.Field(default=None) - """ - true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) - """ - - metadata: typing.Optional[EventStreamCloudEventConnectionCreatedPreviousObject6Metadata] = None - name: str = pydantic.Field() - """ - The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 - """ - - realms: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. - """ - - options: typing.Optional[EventStreamCloudEventConnectionCreatedPreviousObject6Options] = None - show_as_button: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to `false`. - """ - - strategy: EventStreamCloudEventConnectionCreatedPreviousObject6StrategyEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_6_authentication.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_6_authentication.py deleted file mode 100644 index f14e6b84..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_6_authentication.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionCreatedPreviousObject6Authentication(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for authentication during login. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_6_connected_accounts.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_6_connected_accounts.py deleted file mode 100644 index 90035761..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_6_connected_accounts.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionCreatedPreviousObject6ConnectedAccounts(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for connected accounts and Token Vault. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_6_metadata.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_6_metadata.py deleted file mode 100644 index 94dd369f..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_6_metadata.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionCreatedPreviousObject6Metadata(UniversalBaseModel): - """ - Metadata associated with the connection in the form of an object with string values (max 255 chars). Maximum of 10 metadata properties allowed. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_6_options.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_6_options.py deleted file mode 100644 index c349625f..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_6_options.py +++ /dev/null @@ -1,139 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_created_previous_object_6_options_federated_connections_access_tokens import ( - EventStreamCloudEventConnectionCreatedPreviousObject6OptionsFederatedConnectionsAccessTokens, -) -from .event_stream_cloud_event_connection_created_previous_object_6_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject6OptionsSetUserRootAttributesEnum, -) -from .event_stream_cloud_event_connection_created_previous_object_6_options_upstream_params import ( - EventStreamCloudEventConnectionCreatedPreviousObject6OptionsUpstreamParams, -) - - -class EventStreamCloudEventConnectionCreatedPreviousObject6Options(UniversalBaseModel): - """ - Options for the 'google-apps' connection - """ - - admin_access_token_expiresin: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Expiration timestamp for the `admin_access_token` in ISO 8601 format. Auth0 uses this value to determine when to refresh the token. - """ - - allow_setting_login_scopes: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true, allows customization of OAuth scopes requested during user login. Custom scopes are appended to the mandatory email and profile scopes. When false or omitted, only the default email and profile scopes are used. This property is automatically enabled when Token Vault or Connected Accounts features are activated. - """ - - api_enable_groups: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables integration with the Google Workspace Admin SDK Directory API for groups. When true, Auth0 can synchronize groups & group memberships and supports inbound directory provisioning for groups. Defaults to false. - """ - - api_enable_users: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables integration with the Google Workspace Admin SDK Directory API. When true, Auth0 can retrieve extended user attributes (admin status, suspension status, group memberships) and supports inbound directory provisioning (SCIM). Defaults to true. - """ - - client_id: str = pydantic.Field() - """ - Your Google OAuth 2.0 client ID. You can find this in your [Google Cloud Console](https://console.cloud.google.com/apis/credentials) under the OAuth 2.0 Client IDs section. - """ - - domain: typing.Optional[str] = pydantic.Field(default=None) - """ - Primary Google Workspace domain name that users must belong to. - """ - - domain_aliases: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication. - """ - - email: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether the OAuth flow requests the `email` scope. - """ - - ext_agreed_terms: typing.Optional[bool] = pydantic.Field(default=None) - """ - Fetches the `agreedToTerms` flag from the Google Directory profile. - """ - - ext_groups: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables enrichment with Google group memberships (required for `ext_groups_extended`). - """ - - ext_groups_extended: typing.Optional[bool] = pydantic.Field(default=None) - """ - Controls whether enriched group entries include `id`, `email`, `name` (true) or only the group name (false); can only be set when `ext_groups` is true. - """ - - ext_is_admin: typing.Optional[bool] = pydantic.Field(default=None) - """ - Fetches the Google Directory admin flag for the signing-in user. - """ - - ext_is_suspended: typing.Optional[bool] = pydantic.Field(default=None) - """ - Fetches the Google Directory suspended flag for the signing-in user. - """ - - federated_connections_access_tokens: typing.Optional[ - EventStreamCloudEventConnectionCreatedPreviousObject6OptionsFederatedConnectionsAccessTokens - ] = None - handle_login_from_social: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, users who sign in with their Google account through a social login will be automatically routed to this Google Workspace connection if their email domain matches the configured tenant_domain or domain_aliases. This ensures enterprise users authenticate through their organization's Google Workspace identity provider rather than through a generic Google social login, enabling access to directory-based attributes and enforcing organizational security policies. Defaults to true for new connections. - """ - - icon_url: typing.Optional[str] = pydantic.Field(default=None) - """ - URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows. - """ - - map_user_id_to_id: typing.Optional[bool] = pydantic.Field(default=None) - """ - Determines how Auth0 generates the user_id for Google Workspace users. When false (default), the user's email address is used. When true, Google's stable numeric user ID is used instead, which persists even if the user's email changes. This setting can only be configured when creating the connection and cannot be changed afterward. - """ - - non_persistent_attrs: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) - """ - - profile: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether the OAuth flow requests the `profile` scope. - """ - - scope: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Additional OAuth scopes requested beyond the default `email profile` scopes; ignored unless `allow_setting_login_scopes` is true. - """ - - set_user_root_attributes: typing.Optional[ - EventStreamCloudEventConnectionCreatedPreviousObject6OptionsSetUserRootAttributesEnum - ] = None - tenant_domain: typing.Optional[str] = pydantic.Field(default=None) - """ - The Google Workspace primary domain used to identify the organization during authentication. - """ - - upstream_params: typing.Optional[EventStreamCloudEventConnectionCreatedPreviousObject6OptionsUpstreamParams] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_6_options_federated_connections_access_tokens.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_6_options_federated_connections_access_tokens.py deleted file mode 100644 index e3494d7d..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_6_options_federated_connections_access_tokens.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionCreatedPreviousObject6OptionsFederatedConnectionsAccessTokens(UniversalBaseModel): - """ - Configuration for storing identity provider tokens in Auth0's Token Vault. When active, Auth0 securely stores access and refresh tokens from federated logins, enabling your application to make authenticated API calls on behalf of users. - """ - - active: bool = pydantic.Field() - """ - Enables refresh tokens and access tokens collection for federated connections - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_6_options_set_user_root_attributes_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_6_options_set_user_root_attributes_enum.py deleted file mode 100644 index 071eeb4f..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_6_options_set_user_root_attributes_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedPreviousObject6OptionsSetUserRootAttributesEnum = typing.Union[ - typing.Literal["on_each_login", "on_first_login", "never_on_login"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_6_options_upstream_params.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_6_options_upstream_params.py deleted file mode 100644 index 0719021a..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_6_options_upstream_params.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedPreviousObject6OptionsUpstreamParams = typing.Dict[str, typing.Any] -""" -Additional parameters to include in authorization requests sent to the identity provider. Useful for passing custom claims, selecting specific identity sources, or configuring provider-specific behavior. See https://auth0.com/docs/authenticate/identity-providers/pass-parameters-to-idps -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_6_strategy_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_6_strategy_enum.py deleted file mode 100644 index 22e875d3..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_6_strategy_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedPreviousObject6StrategyEnum = typing.Union[ - typing.Literal["google-apps"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_7.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_7.py deleted file mode 100644 index 7b89adef..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_7.py +++ /dev/null @@ -1,73 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_created_previous_object_7_authentication import ( - EventStreamCloudEventConnectionCreatedPreviousObject7Authentication, -) -from .event_stream_cloud_event_connection_created_previous_object_7_connected_accounts import ( - EventStreamCloudEventConnectionCreatedPreviousObject7ConnectedAccounts, -) -from .event_stream_cloud_event_connection_created_previous_object_7_metadata import ( - EventStreamCloudEventConnectionCreatedPreviousObject7Metadata, -) -from .event_stream_cloud_event_connection_created_previous_object_7_options import ( - EventStreamCloudEventConnectionCreatedPreviousObject7Options, -) -from .event_stream_cloud_event_connection_created_previous_object_7_strategy_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject7StrategyEnum, -) - - -class EventStreamCloudEventConnectionCreatedPreviousObject7(UniversalBaseModel): - authentication: typing.Optional[EventStreamCloudEventConnectionCreatedPreviousObject7Authentication] = None - connected_accounts: typing.Optional[EventStreamCloudEventConnectionCreatedPreviousObject7ConnectedAccounts] = None - display_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Connection name used in the new universal login experience - """ - - enabled_clients: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. - """ - - id: str = pydantic.Field() - """ - The connection's identifier - """ - - is_domain_connection: typing.Optional[bool] = pydantic.Field(default=None) - """ - true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) - """ - - metadata: typing.Optional[EventStreamCloudEventConnectionCreatedPreviousObject7Metadata] = None - name: str = pydantic.Field() - """ - The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 - """ - - realms: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. - """ - - options: typing.Optional[EventStreamCloudEventConnectionCreatedPreviousObject7Options] = None - show_as_button: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to `false`. - """ - - strategy: EventStreamCloudEventConnectionCreatedPreviousObject7StrategyEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_7_authentication.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_7_authentication.py deleted file mode 100644 index 28498ed0..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_7_authentication.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionCreatedPreviousObject7Authentication(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for authentication during login. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_7_connected_accounts.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_7_connected_accounts.py deleted file mode 100644 index 1dac59b5..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_7_connected_accounts.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionCreatedPreviousObject7ConnectedAccounts(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for connected accounts and Token Vault. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_7_metadata.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_7_metadata.py deleted file mode 100644 index 04154d14..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_7_metadata.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionCreatedPreviousObject7Metadata(UniversalBaseModel): - """ - Metadata associated with the connection in the form of an object with string values (max 255 chars). Maximum of 10 metadata properties allowed. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_7_options.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_7_options.py deleted file mode 100644 index c6edc090..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_7_options.py +++ /dev/null @@ -1,179 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_connection_created_previous_object_7_options_federated_connections_access_tokens import ( - EventStreamCloudEventConnectionCreatedPreviousObject7OptionsFederatedConnectionsAccessTokens, -) -from .event_stream_cloud_event_connection_created_previous_object_7_options_identity_api_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject7OptionsIdentityApiEnum, -) -from .event_stream_cloud_event_connection_created_previous_object_7_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject7OptionsSetUserRootAttributesEnum, -) -from .event_stream_cloud_event_connection_created_previous_object_7_options_should_trust_email_verified_connection_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum, -) -from .event_stream_cloud_event_connection_created_previous_object_7_options_tenant_domain_one import ( - EventStreamCloudEventConnectionCreatedPreviousObject7OptionsTenantDomainOne, -) -from .event_stream_cloud_event_connection_created_previous_object_7_options_upstream_params import ( - EventStreamCloudEventConnectionCreatedPreviousObject7OptionsUpstreamParams, -) -from .event_stream_cloud_event_connection_created_previous_object_7_options_userid_attribute_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject7OptionsUseridAttributeEnum, -) -from .event_stream_cloud_event_connection_created_previous_object_7_options_waad_protocol_enum import ( - EventStreamCloudEventConnectionCreatedPreviousObject7OptionsWaadProtocolEnum, -) - - -class EventStreamCloudEventConnectionCreatedPreviousObject7Options(UniversalBaseModel): - """ - Options for the 'waad' connection - """ - - api_enable_users: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enable users API - """ - - app_domain: typing.Optional[str] = pydantic.Field(default=None) - """ - The Azure AD application domain (e.g., 'contoso.onmicrosoft.com'). Used primarily with WS-Federation protocol and Azure AD v1 endpoints. - """ - - app_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The Application ID URI (App ID URI) for the Azure AD application. Required when using Azure AD v1 with the Resource Owner Password flow. Used to identify the resource being requested in OAuth token requests. - """ - - basic_profile: typing.Optional[bool] = pydantic.Field(default=None) - """ - Includes basic user profile information from Azure AD (name, email, given_name, family_name). Always enabled and required - represents the minimum profile data retrieved during authentication. - """ - - cert_rollover_notification: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Timestamp of the last certificate expiring soon notification. - """ - - client_id: str = pydantic.Field() - """ - OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider. - """ - - domain: typing.Optional[str] = pydantic.Field(default=None) - """ - The primary Azure AD tenant domain (e.g., 'contoso.onmicrosoft.com' or 'contoso.com'). - """ - - domain_aliases: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Alternative domain names associated with this Azure AD tenant. Allows users from multiple verified domains to authenticate through this connection. Can be an array of domain strings. - """ - - ext_groups: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled (true), retrieves and stores Azure AD security group memberships for the user. Requires Microsoft Graph API permissions (Directory.Read.All). Allows configuring max_groups_to_retrieve. - """ - - ext_nested_groups: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true, stores all groups the user is member of, including transitive group memberships (groups within groups). When false (default), only direct group memberships are included. - """ - - ext_profile: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled (true), retrieves extended profile attributes from Azure AD via Microsoft Graph API (job title, department, office location, etc.). Requires Graph API permissions. Only available with Azure AD v1 or when explicitly enabled for v2. - """ - - federated_connections_access_tokens: typing.Optional[ - EventStreamCloudEventConnectionCreatedPreviousObject7OptionsFederatedConnectionsAccessTokens - ] = None - granted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether admin consent has been granted for the required Azure AD permissions. Read-only status field managed by Auth0 during the OAuth authorization flow. - """ - - icon_url: typing.Optional[str] = pydantic.Field(default=None) - """ - URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows. - """ - - identity_api: typing.Optional[EventStreamCloudEventConnectionCreatedPreviousObject7OptionsIdentityApiEnum] = None - max_groups_to_retrieve: typing.Optional[str] = pydantic.Field(default=None) - """ - Maximum number of Azure AD groups to retrieve per user during authentication. Helps prevent performance issues for users in many groups. Only applies when ext_groups is enabled. Leave empty to use platform default. - """ - - non_persistent_attrs: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) - """ - - scope: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - OAuth 2.0 scopes to request from Azure AD during authentication. Each scope represents a permission (e.g., 'User.Read', 'Group.Read.All'). Only applies with Microsoft Identity Platform v2.0. See Microsoft Graph permissions reference for available scopes. - """ - - set_user_root_attributes: typing.Optional[ - EventStreamCloudEventConnectionCreatedPreviousObject7OptionsSetUserRootAttributesEnum - ] = None - should_trust_email_verified_connection: typing.Optional[ - EventStreamCloudEventConnectionCreatedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum - ] = None - tenant_domain: typing.Optional[EventStreamCloudEventConnectionCreatedPreviousObject7OptionsTenantDomainOne] = None - tenant_id: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="tenantId"), - pydantic.Field( - alias="tenantId", - description="The Azure AD tenant ID as a UUID. The unique identifier for your Azure AD organization. Must be a valid 36-character UUID.", - ), - ] = None - """ - The Azure AD tenant ID as a UUID. The unique identifier for your Azure AD organization. Must be a valid 36-character UUID. - """ - - thumbprints: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Array of certificate thumbprints (SHA-128/SHA-256/SHA-512 hex hashes) for validating SAML signatures. Used with WS-Federation protocol. Maximum 20 thumbprints. Each thumbprint must be a hexadecimal string. - """ - - upstream_params: typing.Optional[EventStreamCloudEventConnectionCreatedPreviousObject7OptionsUpstreamParams] = None - use_wsfed: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates WS-Federation protocol usage. When true, uses WS-Federation; when false, uses OpenID Connect. - """ - - use_common_endpoint: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="useCommonEndpoint"), - pydantic.Field( - alias="useCommonEndpoint", - description="When enabled (true), uses the Azure AD common endpoint for multi-tenant authentication. Allows users from any Azure AD organization to sign in. Requires userid_attribute set to 'sub' (not 'oid'). Cannot be used with SCIM provisioning. Defaults to false.", - ), - ] = None - """ - When enabled (true), uses the Azure AD common endpoint for multi-tenant authentication. Allows users from any Azure AD organization to sign in. Requires userid_attribute set to 'sub' (not 'oid'). Cannot be used with SCIM provisioning. Defaults to false. - """ - - userid_attribute: typing.Optional[ - EventStreamCloudEventConnectionCreatedPreviousObject7OptionsUseridAttributeEnum - ] = None - waad_protocol: typing.Optional[EventStreamCloudEventConnectionCreatedPreviousObject7OptionsWaadProtocolEnum] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_7_options_federated_connections_access_tokens.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_7_options_federated_connections_access_tokens.py deleted file mode 100644 index eca22806..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_7_options_federated_connections_access_tokens.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionCreatedPreviousObject7OptionsFederatedConnectionsAccessTokens(UniversalBaseModel): - """ - Configuration for storing identity provider tokens in Auth0's Token Vault. When active, Auth0 securely stores access and refresh tokens from federated logins, enabling your application to make authenticated API calls on behalf of users. - """ - - active: bool = pydantic.Field() - """ - Enables refresh tokens and access tokens collection for federated connections - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_7_options_identity_api_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_7_options_identity_api_enum.py deleted file mode 100644 index db880b65..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_7_options_identity_api_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedPreviousObject7OptionsIdentityApiEnum = typing.Union[ - typing.Literal["microsoft-identity-platform-v2.0", "azure-active-directory-v1.0"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_7_options_set_user_root_attributes_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_7_options_set_user_root_attributes_enum.py deleted file mode 100644 index d007416f..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_7_options_set_user_root_attributes_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedPreviousObject7OptionsSetUserRootAttributesEnum = typing.Union[ - typing.Literal["on_each_login", "on_first_login", "never_on_login"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_7_options_should_trust_email_verified_connection_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_7_options_should_trust_email_verified_connection_enum.py deleted file mode 100644 index dd83fd08..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_7_options_should_trust_email_verified_connection_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum = typing.Union[ - typing.Literal["never_set_emails_as_verified", "always_set_emails_as_verified"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_7_options_tenant_domain_one.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_7_options_tenant_domain_one.py deleted file mode 100644 index cc92505f..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_7_options_tenant_domain_one.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -EventStreamCloudEventConnectionCreatedPreviousObject7OptionsTenantDomainOne = str -""" -Azure AD tenant domain as a UUID tenant ID. -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_7_options_upstream_params.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_7_options_upstream_params.py deleted file mode 100644 index ea0fd312..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_7_options_upstream_params.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedPreviousObject7OptionsUpstreamParams = typing.Dict[str, typing.Any] -""" -Additional parameters to include in authorization requests sent to the identity provider. Useful for passing custom claims, selecting specific identity sources, or configuring provider-specific behavior. See https://auth0.com/docs/authenticate/identity-providers/pass-parameters-to-idps -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_7_options_userid_attribute_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_7_options_userid_attribute_enum.py deleted file mode 100644 index 66a81cf2..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_7_options_userid_attribute_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedPreviousObject7OptionsUseridAttributeEnum = typing.Union[ - typing.Literal["oid", "sub"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_7_options_waad_protocol_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_7_options_waad_protocol_enum.py deleted file mode 100644 index 86ffe6f4..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_7_options_waad_protocol_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedPreviousObject7OptionsWaadProtocolEnum = typing.Union[ - typing.Literal["ws-federation", "openid-connect"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_7_strategy_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_7_strategy_enum.py deleted file mode 100644 index fcbb9f98..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_previous_object_7_strategy_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedPreviousObject7StrategyEnum = typing.Union[typing.Literal["waad"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_created_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_created_type_enum.py deleted file mode 100644 index 9e977300..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_created_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionCreatedTypeEnum = typing.Union[typing.Literal["connection.created"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted.py deleted file mode 100644 index aa8b234d..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_deleted_cloud_event import EventStreamCloudEventConnectionDeletedCloudEvent - - -class EventStreamCloudEventConnectionDeleted(UniversalBaseModel): - """ - SSE message for connection.deleted. - """ - - offset: str = pydantic.Field() - """ - Opaque cursor representing position in the stream. Pass as the `from` query parameter to resume. - """ - - event: EventStreamCloudEventConnectionDeletedCloudEvent - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_cloud_event.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_cloud_event.py deleted file mode 100644 index 780c7b65..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_cloud_event.py +++ /dev/null @@ -1,77 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_a_0_purpose_enum import EventStreamCloudEventA0PurposeEnum -from .event_stream_cloud_event_connection_deleted_cloud_event_type_enum import ( - EventStreamCloudEventConnectionDeletedCloudEventTypeEnum, -) -from .event_stream_cloud_event_connection_deleted_data import EventStreamCloudEventConnectionDeletedData -from .event_stream_cloud_event_spec_version_enum import EventStreamCloudEventSpecVersionEnum - - -class EventStreamCloudEventConnectionDeletedCloudEvent(UniversalBaseModel): - """ - Represents an event that occurs when a connection is deleted. - """ - - specversion: EventStreamCloudEventSpecVersionEnum - type: EventStreamCloudEventConnectionDeletedCloudEventTypeEnum - source: str = pydantic.Field() - """ - The source of the event. This will take the form 'urn:auth0:.'. - """ - - id: str = pydantic.Field() - """ - A unique identifier for the event. - """ - - time: dt.datetime = pydantic.Field() - """ - An ISO-8601 timestamp indicating when the event physically occurred. - """ - - data: EventStreamCloudEventConnectionDeletedData - a_0_tenant: typing_extensions.Annotated[ - str, - FieldMetadata(alias="a0tenant"), - pydantic.Field(alias="a0tenant", description="The auth0 tenant ID to which the event is associated."), - ] - """ - The auth0 tenant ID to which the event is associated. - """ - - a_0_stream: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="a0stream"), - pydantic.Field( - alias="a0stream", - description="The auth0 event stream ID of the stream the event was delivered on.\nPresent when the event is delivered via an event stream; omitted when\nevents are retrieved via the Events API (GET /api/v2/events).", - ), - ] = None - """ - The auth0 event stream ID of the stream the event was delivered on. - Present when the event is delivered via an event stream; omitted when - events are retrieved via the Events API (GET /api/v2/events). - """ - - a_0_purpose: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventA0PurposeEnum], - FieldMetadata(alias="a0purpose"), - pydantic.Field(alias="a0purpose"), - ] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_cloud_event_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_cloud_event_type_enum.py deleted file mode 100644 index 5239acb7..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_cloud_event_type_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedCloudEventTypeEnum = typing.Union[ - typing.Literal["connection.deleted"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_data.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_data.py deleted file mode 100644 index fb31469f..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_data.py +++ /dev/null @@ -1,30 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_deleted_object import EventStreamCloudEventConnectionDeletedObject -from .event_stream_cloud_event_connection_deleted_previous_object import ( - EventStreamCloudEventConnectionDeletedPreviousObject, -) -from .event_stream_cloud_event_context import EventStreamCloudEventContext - - -class EventStreamCloudEventConnectionDeletedData(UniversalBaseModel): - """ - The event payload. - """ - - object: EventStreamCloudEventConnectionDeletedObject - previous_object: typing.Optional[EventStreamCloudEventConnectionDeletedPreviousObject] = None - context: typing.Optional[EventStreamCloudEventContext] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object.py deleted file mode 100644 index 56e7d3ea..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .event_stream_cloud_event_connection_deleted_object_0 import EventStreamCloudEventConnectionDeletedObject0 -from .event_stream_cloud_event_connection_deleted_object_1 import EventStreamCloudEventConnectionDeletedObject1 -from .event_stream_cloud_event_connection_deleted_object_2 import EventStreamCloudEventConnectionDeletedObject2 -from .event_stream_cloud_event_connection_deleted_object_3 import EventStreamCloudEventConnectionDeletedObject3 -from .event_stream_cloud_event_connection_deleted_object_4 import EventStreamCloudEventConnectionDeletedObject4 -from .event_stream_cloud_event_connection_deleted_object_5 import EventStreamCloudEventConnectionDeletedObject5 -from .event_stream_cloud_event_connection_deleted_object_6 import EventStreamCloudEventConnectionDeletedObject6 -from .event_stream_cloud_event_connection_deleted_object_7 import EventStreamCloudEventConnectionDeletedObject7 - -EventStreamCloudEventConnectionDeletedObject = typing.Union[ - EventStreamCloudEventConnectionDeletedObject0, - EventStreamCloudEventConnectionDeletedObject1, - EventStreamCloudEventConnectionDeletedObject2, - EventStreamCloudEventConnectionDeletedObject3, - EventStreamCloudEventConnectionDeletedObject4, - EventStreamCloudEventConnectionDeletedObject5, - EventStreamCloudEventConnectionDeletedObject6, - EventStreamCloudEventConnectionDeletedObject7, -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0.py deleted file mode 100644 index 604cf04c..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0.py +++ /dev/null @@ -1,73 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_deleted_object_0_authentication import ( - EventStreamCloudEventConnectionDeletedObject0Authentication, -) -from .event_stream_cloud_event_connection_deleted_object_0_connected_accounts import ( - EventStreamCloudEventConnectionDeletedObject0ConnectedAccounts, -) -from .event_stream_cloud_event_connection_deleted_object_0_metadata import ( - EventStreamCloudEventConnectionDeletedObject0Metadata, -) -from .event_stream_cloud_event_connection_deleted_object_0_options import ( - EventStreamCloudEventConnectionDeletedObject0Options, -) -from .event_stream_cloud_event_connection_deleted_object_0_strategy_enum import ( - EventStreamCloudEventConnectionDeletedObject0StrategyEnum, -) - - -class EventStreamCloudEventConnectionDeletedObject0(UniversalBaseModel): - authentication: typing.Optional[EventStreamCloudEventConnectionDeletedObject0Authentication] = None - display_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Connection name used in the new universal login experience - """ - - enabled_clients: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. - """ - - id: str = pydantic.Field() - """ - The connection's identifier - """ - - is_domain_connection: typing.Optional[bool] = pydantic.Field(default=None) - """ - true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) - """ - - metadata: typing.Optional[EventStreamCloudEventConnectionDeletedObject0Metadata] = None - name: str = pydantic.Field() - """ - The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 - """ - - realms: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. - """ - - connected_accounts: typing.Optional[EventStreamCloudEventConnectionDeletedObject0ConnectedAccounts] = None - options: typing.Optional[EventStreamCloudEventConnectionDeletedObject0Options] = None - show_as_button: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to `false`. - """ - - strategy: EventStreamCloudEventConnectionDeletedObject0StrategyEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_authentication.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_authentication.py deleted file mode 100644 index cd1d2920..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_authentication.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionDeletedObject0Authentication(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for authentication during login. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_connected_accounts.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_connected_accounts.py deleted file mode 100644 index 87e90c77..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_connected_accounts.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionDeletedObject0ConnectedAccounts(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for connected accounts and Token Vault. - """ - - active: bool - cross_app_access: typing.Optional[bool] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_metadata.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_metadata.py deleted file mode 100644 index b9b6a92b..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_metadata.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionDeletedObject0Metadata(UniversalBaseModel): - """ - Metadata associated with the connection in the form of an object with string values (max 255 chars). Maximum of 10 metadata properties allowed. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_options.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_options.py deleted file mode 100644 index bf4ac9d1..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_options.py +++ /dev/null @@ -1,174 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_connection_deleted_object_0_options_attribute_map import ( - EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMap, -) -from .event_stream_cloud_event_connection_deleted_object_0_options_connection_settings import ( - EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettings, -) -from .event_stream_cloud_event_connection_deleted_object_0_options_dpop_signing_alg_enum import ( - EventStreamCloudEventConnectionDeletedObject0OptionsDpopSigningAlgEnum, -) -from .event_stream_cloud_event_connection_deleted_object_0_options_federated_connections_access_tokens import ( - EventStreamCloudEventConnectionDeletedObject0OptionsFederatedConnectionsAccessTokens, -) -from .event_stream_cloud_event_connection_deleted_object_0_options_id_token_signed_response_algs_item_enum import ( - EventStreamCloudEventConnectionDeletedObject0OptionsIdTokenSignedResponseAlgsItemEnum, -) -from .event_stream_cloud_event_connection_deleted_object_0_options_oidc_metadata import ( - EventStreamCloudEventConnectionDeletedObject0OptionsOidcMetadata, -) -from .event_stream_cloud_event_connection_deleted_object_0_options_schema_version_enum import ( - EventStreamCloudEventConnectionDeletedObject0OptionsSchemaVersionEnum, -) -from .event_stream_cloud_event_connection_deleted_object_0_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionDeletedObject0OptionsSetUserRootAttributesEnum, -) -from .event_stream_cloud_event_connection_deleted_object_0_options_token_endpoint_auth_method_enum import ( - EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthMethodEnum, -) -from .event_stream_cloud_event_connection_deleted_object_0_options_token_endpoint_auth_signing_alg_enum import ( - EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthSigningAlgEnum, -) -from .event_stream_cloud_event_connection_deleted_object_0_options_token_endpoint_jwtca_aud_format_enum import ( - EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointJwtcaAudFormatEnum, -) -from .event_stream_cloud_event_connection_deleted_object_0_options_type_enum import ( - EventStreamCloudEventConnectionDeletedObject0OptionsTypeEnum, -) -from .event_stream_cloud_event_connection_deleted_object_0_options_upstream_params import ( - EventStreamCloudEventConnectionDeletedObject0OptionsUpstreamParams, -) - - -class EventStreamCloudEventConnectionDeletedObject0Options(UniversalBaseModel): - """ - Options for the 'oidc' connection - """ - - authorization_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow. - """ - - client_id: str = pydantic.Field() - """ - OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider. - """ - - connection_settings: typing.Optional[EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettings] = None - domain_aliases: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication. - """ - - dpop_signing_alg: typing.Optional[EventStreamCloudEventConnectionDeletedObject0OptionsDpopSigningAlgEnum] = None - federated_connections_access_tokens: typing.Optional[ - EventStreamCloudEventConnectionDeletedObject0OptionsFederatedConnectionsAccessTokens - ] = None - icon_url: typing.Optional[str] = pydantic.Field(default=None) - """ - https url of the icon to be shown - """ - - id_token_session_expiry_supported: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether the identity provider supports session expiry via the id_token. If true, the system will use the session_expiry claim in the id_token to determine session expiry. - """ - - id_token_signed_response_algs: typing.Optional[ - typing.List[EventStreamCloudEventConnectionDeletedObject0OptionsIdTokenSignedResponseAlgsItemEnum] - ] = pydantic.Field(default=None) - """ - List of algorithms allowed to verify the ID tokens. Applicable when strategy=oidc or okta. - """ - - issuer: typing.Optional[str] = pydantic.Field(default=None) - """ - The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider. - """ - - jwks_uri: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures. - """ - - non_persistent_attrs: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) - """ - - oidc_metadata: typing.Optional[EventStreamCloudEventConnectionDeletedObject0OptionsOidcMetadata] = None - schema_version: typing.Optional[EventStreamCloudEventConnectionDeletedObject0OptionsSchemaVersionEnum] = None - scope: typing.Optional[str] = pydantic.Field(default=None) - """ - Space-separated list of OAuth 2.0 scopes requested during authorization. Must include 'openid' (required by OIDC spec). Common values: 'openid profile email'. Additional scopes depend on the identity provider. - """ - - send_back_channel_nonce: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true and type is 'back_channel', includes a cryptographic nonce in authorization requests to prevent replay attacks. The identity provider must include this nonce in the ID token for validation. - """ - - set_user_root_attributes: typing.Optional[ - EventStreamCloudEventConnectionDeletedObject0OptionsSetUserRootAttributesEnum - ] = None - tenant_domain: typing.Optional[str] = pydantic.Field(default=None) - """ - Tenant domain - """ - - token_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow. - """ - - token_endpoint_auth_method: typing.Optional[ - EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthMethodEnum - ] = None - token_endpoint_auth_signing_alg: typing.Optional[ - EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthSigningAlgEnum - ] = None - token_endpoint_jwtca_aud_format: typing.Optional[ - EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointJwtcaAudFormatEnum - ] = None - upstream_params: typing.Optional[EventStreamCloudEventConnectionDeletedObject0OptionsUpstreamParams] = None - use_oauth_spec_scope: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="useOauthSpecScope"), - pydantic.Field( - alias="useOauthSpecScope", - description="When true, uses space-delimited scopes (per OAuth 2.0 spec) instead of comma-delimited when calling the identity provider's authorization endpoint. Only relevant when using the connection_scope parameter. See https://auth0.com/docs/authenticate/identity-providers/adding-scopes-for-an-external-idp#pass-scopes-to-authorize-endpoint", - ), - ] = None - """ - When true, uses space-delimited scopes (per OAuth 2.0 spec) instead of comma-delimited when calling the identity provider's authorization endpoint. Only relevant when using the connection_scope parameter. See https://auth0.com/docs/authenticate/identity-providers/adding-scopes-for-an-external-idp#pass-scopes-to-authorize-endpoint - """ - - userinfo_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token. - """ - - attribute_map: typing.Optional[EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMap] = None - discovery_url: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's OIDC Discovery endpoint (/.well-known/openid-configuration). When provided and oidc_metadata is empty, Auth0 automatically retrieves the provider's configuration including endpoints and supported features. - """ - - type: typing.Optional[EventStreamCloudEventConnectionDeletedObject0OptionsTypeEnum] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_options_attribute_map.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_options_attribute_map.py deleted file mode 100644 index b4dfcf0b..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_options_attribute_map.py +++ /dev/null @@ -1,37 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_deleted_object_0_options_attribute_map_attributes import ( - EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMapAttributes, -) -from .event_stream_cloud_event_connection_deleted_object_0_options_attribute_map_mapping_mode_enum import ( - EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMapMappingModeEnum, -) - - -class EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMap(UniversalBaseModel): - """ - Configuration for mapping claims from the identity provider to Auth0 user profile attributes. Allows customizing which IdP claims populate user fields and how they are transformed. - """ - - attributes: typing.Optional[EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMapAttributes] = None - userinfo_scope: typing.Optional[str] = pydantic.Field(default=None) - """ - Scopes to send to the IdP's Userinfo endpoint - """ - - mapping_mode: typing.Optional[EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMapMappingModeEnum] = ( - None - ) - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_options_attribute_map_attributes.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_options_attribute_map_attributes.py deleted file mode 100644 index 13e0d534..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_options_attribute_map_attributes.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMapAttributes = typing.Dict[str, typing.Any] -""" -Object containing mapping details for incoming claims -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_options_attribute_map_mapping_mode_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_options_attribute_map_mapping_mode_enum.py deleted file mode 100644 index fcad8148..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_options_attribute_map_mapping_mode_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMapMappingModeEnum = typing.Union[ - typing.Literal["bind_all", "use_map"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_options_connection_settings.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_options_connection_settings.py deleted file mode 100644 index 4de676ef..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_options_connection_settings.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_deleted_object_0_options_connection_settings_pkce_enum import ( - EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettingsPkceEnum, -) - - -class EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettings(UniversalBaseModel): - """ - OAuth 2.0 PKCE (Proof Key for Code Exchange) settings. PKCE enhances security for public clients by preventing authorization code interception attacks. 'auto' (recommended) uses the strongest method supported by the IdP. - """ - - pkce: typing.Optional[EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettingsPkceEnum] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_options_connection_settings_pkce_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_options_connection_settings_pkce_enum.py deleted file mode 100644 index 65c9182b..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_options_connection_settings_pkce_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettingsPkceEnum = typing.Union[ - typing.Literal["auto", "S256", "plain", "disabled"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_options_dpop_signing_alg_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_options_dpop_signing_alg_enum.py deleted file mode 100644 index 7d6fa83a..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_options_dpop_signing_alg_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedObject0OptionsDpopSigningAlgEnum = typing.Union[ - typing.Literal["ES256", "ES384", "ES512", "Ed25519"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_options_federated_connections_access_tokens.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_options_federated_connections_access_tokens.py deleted file mode 100644 index 0e69b44d..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_options_federated_connections_access_tokens.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionDeletedObject0OptionsFederatedConnectionsAccessTokens(UniversalBaseModel): - """ - Configuration for storing identity provider tokens in Auth0's Token Vault. When active, Auth0 securely stores access and refresh tokens from federated logins, enabling your application to make authenticated API calls on behalf of users. - """ - - active: bool = pydantic.Field() - """ - Enables refresh tokens and access tokens collection for federated connections - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_options_id_token_signed_response_algs_item_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_options_id_token_signed_response_algs_item_enum.py deleted file mode 100644 index 3877354a..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_options_id_token_signed_response_algs_item_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedObject0OptionsIdTokenSignedResponseAlgsItemEnum = typing.Union[ - typing.Literal["ES256", "ES384", "PS256", "PS384", "RS256", "RS384", "RS512"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_options_oidc_metadata.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_options_oidc_metadata.py deleted file mode 100644 index d717bf73..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_options_oidc_metadata.py +++ /dev/null @@ -1,211 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionDeletedObject0OptionsOidcMetadata(UniversalBaseModel): - """ - OpenID Connect Provider Metadata as per https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata - """ - - acr_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the Authentication Context Class References that this OP supports - """ - - authorization_endpoint: str = pydantic.Field() - """ - URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow. - """ - - claim_types_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the Claim Types that the OpenID Provider supports. These Claim Types are described in Section 5.6 of OpenID Connect Core 1.0 [OpenID.Core]. If omitted, the implementation supports only normal Claims. - """ - - claims_locales_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Languages and scripts supported for values in Claims being returned, represented as a JSON array of BCP47 [RFC5646] language tag values. Not all languages and scripts are necessarily supported for all Claim values. - """ - - claims_parameter_supported: typing.Optional[bool] = pydantic.Field(default=None) - """ - Boolean value specifying whether the OP supports use of the claims parameter, with true indicating support. If omitted, the default value is false. - """ - - claims_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the Claim Names of the Claims that the OpenID Provider MAY be able to supply values for. Note that for privacy or other reasons, this might not be an exhaustive list. - """ - - code_challenge_methods_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636. - """ - - display_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used. - """ - - dpop_signing_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS signing algorithms (alg values) supported for DPoP proof JWT signing. - """ - - end_session_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's logout/end session endpoint. When configured as a static URL, users are redirected here after logging out from Auth0. Must use HTTPS scheme. - """ - - grant_types_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the OAuth 2.0 Grant Type values that this OP supports. Dynamic OpenID Providers MUST support the authorization_code and implicit Grant Type values and MAY support other Grant Types. If omitted, the default value is ["authorization_code", "implicit"]. - """ - - id_token_encryption_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT - """ - - id_token_encryption_enc_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for the ID Token to encode the Claims in a JWT [JWT]. - """ - - id_token_signing_alg_values_supported: typing.List[str] = pydantic.Field() - """ - A list of the JWS signing algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be included. The value none MAY be supported, but MUST NOT be used unless the Response Type used returns no ID Token from the Authorization Endpoint (such as when using the Authorization Code Flow). https://datatracker.ietf.org/doc/html/rfc7518 - """ - - issuer: str = pydantic.Field() - """ - The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider. - """ - - jwks_uri: str = pydantic.Field() - """ - URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures. - """ - - op_policy_uri: typing.Optional[str] = pydantic.Field(default=None) - """ - URL that the OpenID Provider provides to the person registering the Client to read about the OPs requirements on how the Relying Party can use the data provided by the OP. The registration process SHOULD display this URL to the person registering the Client if it is given. - """ - - op_tos_uri: typing.Optional[str] = pydantic.Field(default=None) - """ - URL that the OpenID Provider provides to the person registering the Client to read about OpenID Providers terms of service. The registration process SHOULD display this URL to the person registering the Client if it is given. - """ - - registration_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the OPs Dynamic Client Registration Endpoint. RECOMMENDED but not REQUIRED. https://openid.net/specs/openid-connect-discovery-1_0.html#OpenID.Registration - """ - - request_object_encryption_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference. - """ - - request_object_encryption_enc_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference. - """ - - request_object_signing_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for Request Objects, which are described in Section 6.1 of OpenID Connect Core 1.0 [OpenID.Core]. These algorithms are used both when the Request Object is passed by value (using the request parameter) and when it is passed by reference (using the request_uri parameter). Servers SHOULD support none and RS256. - """ - - request_parameter_supported: typing.Optional[bool] = pydantic.Field(default=None) - """ - Boolean value specifying whether the OP supports use of the request parameter, with true indicating support. If omitted, the default value is false. - """ - - request_uri_parameter_supported: typing.Optional[bool] = pydantic.Field(default=None) - """ - Boolean value specifying whether the OP supports use of the request_uri parameter, with true indicating support. If omitted, the default value is false. - """ - - require_request_uri_registration: typing.Optional[bool] = pydantic.Field(default=None) - """ - Boolean value specifying whether the OP requires use of the request_uri parameter. If omitted, the default value is false. - """ - - response_modes_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the OAuth 2.0 response_mode values that this OP supports. If omitted, the default for Dynamic OpenID Providers is ["query", "fragment"] - """ - - response_types_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the OAuth 2.0 response_type values that this OP supports. Dynamic OpenID Providers MUST support the code, id_token, and the token id_token Response Type values - """ - - scopes_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the OAuth 2.0 [RFC6749] scope values that this server supports. The server MUST support the openid scope value. Servers MAY choose not to advertise some supported scope values even when this parameter is used, although those defined in [OpenID.Core] SHOULD be listed, if supported. RECOMMENDED but not REQUIRED - """ - - service_documentation: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of a page containing human-readable information that developers might want or need to know when using the OpenID Provider. In particular, if the OpenID Provider does not support Dynamic Client Registration, then information on how to register Clients needs to be provided in this documentation. - """ - - subject_types_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the Subject Identifier types that this OP supports. Valid types include pairwise and public - """ - - token_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow. - """ - - token_endpoint_auth_methods_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of Client Authentication methods supported by this Token Endpoint. The options are client_secret_post, client_secret_basic, client_secret_jwt, and private_key_jwt, as described in Section 9 of OpenID Connect Core 1.0 [OpenID.Core]. Other authentication methods MAY be defined by extensions. If omitted, the default is client_secret_basic -- the HTTP Basic Authentication Scheme specified in Section 2.3.1 of OAuth 2.0 [RFC6749]. - """ - - token_endpoint_auth_signing_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used. - """ - - ui_locales_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Languages and scripts supported for the user interface, represented as a JSON array of BCP47 [RFC5646] language tag values. - """ - - userinfo_encryption_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE [JWE] encryption algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. - """ - - userinfo_encryption_enc_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (enc values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. - """ - - userinfo_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token. - """ - - userinfo_signing_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS [JWS] signing algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. The value none MAY be included. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_options_schema_version_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_options_schema_version_enum.py deleted file mode 100644 index 0c3ae743..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_options_schema_version_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedObject0OptionsSchemaVersionEnum = typing.Union[ - typing.Literal["openid-1.0.0", "oidc-v4"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_options_set_user_root_attributes_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_options_set_user_root_attributes_enum.py deleted file mode 100644 index 840da894..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_options_set_user_root_attributes_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedObject0OptionsSetUserRootAttributesEnum = typing.Union[ - typing.Literal["on_each_login", "on_first_login", "never_on_login"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_options_token_endpoint_auth_method_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_options_token_endpoint_auth_method_enum.py deleted file mode 100644 index 52ce035e..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_options_token_endpoint_auth_method_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthMethodEnum = typing.Union[ - typing.Literal["client_secret_post", "private_key_jwt"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_options_token_endpoint_auth_signing_alg_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_options_token_endpoint_auth_signing_alg_enum.py deleted file mode 100644 index 6b36f4d9..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_options_token_endpoint_auth_signing_alg_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthSigningAlgEnum = typing.Union[ - typing.Literal["ES256", "ES384", "PS256", "PS384", "RS256", "RS384", "RS512"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_options_token_endpoint_jwtca_aud_format_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_options_token_endpoint_jwtca_aud_format_enum.py deleted file mode 100644 index 6691947a..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_options_token_endpoint_jwtca_aud_format_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointJwtcaAudFormatEnum = typing.Union[ - typing.Literal["issuer", "token_endpoint"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_options_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_options_type_enum.py deleted file mode 100644 index f589af7d..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_options_type_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedObject0OptionsTypeEnum = typing.Union[ - typing.Literal["back_channel", "front_channel"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_options_upstream_params.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_options_upstream_params.py deleted file mode 100644 index c73c3ad9..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_options_upstream_params.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedObject0OptionsUpstreamParams = typing.Dict[str, typing.Any] -""" -Additional parameters to include in authorization requests sent to the identity provider. Useful for passing custom claims, selecting specific identity sources, or configuring provider-specific behavior. See https://auth0.com/docs/authenticate/identity-providers/pass-parameters-to-idps -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_strategy_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_strategy_enum.py deleted file mode 100644 index 5013ec2d..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_0_strategy_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedObject0StrategyEnum = typing.Union[typing.Literal["oidc"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1.py deleted file mode 100644 index 4943928f..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1.py +++ /dev/null @@ -1,73 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_deleted_object_1_authentication import ( - EventStreamCloudEventConnectionDeletedObject1Authentication, -) -from .event_stream_cloud_event_connection_deleted_object_1_connected_accounts import ( - EventStreamCloudEventConnectionDeletedObject1ConnectedAccounts, -) -from .event_stream_cloud_event_connection_deleted_object_1_metadata import ( - EventStreamCloudEventConnectionDeletedObject1Metadata, -) -from .event_stream_cloud_event_connection_deleted_object_1_options import ( - EventStreamCloudEventConnectionDeletedObject1Options, -) -from .event_stream_cloud_event_connection_deleted_object_1_strategy_enum import ( - EventStreamCloudEventConnectionDeletedObject1StrategyEnum, -) - - -class EventStreamCloudEventConnectionDeletedObject1(UniversalBaseModel): - authentication: typing.Optional[EventStreamCloudEventConnectionDeletedObject1Authentication] = None - connected_accounts: typing.Optional[EventStreamCloudEventConnectionDeletedObject1ConnectedAccounts] = None - display_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Connection name used in the new universal login experience - """ - - enabled_clients: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. - """ - - id: str = pydantic.Field() - """ - The connection's identifier - """ - - is_domain_connection: typing.Optional[bool] = pydantic.Field(default=None) - """ - true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) - """ - - metadata: typing.Optional[EventStreamCloudEventConnectionDeletedObject1Metadata] = None - name: str = pydantic.Field() - """ - The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 - """ - - realms: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. - """ - - options: typing.Optional[EventStreamCloudEventConnectionDeletedObject1Options] = None - show_as_button: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to `false`. - """ - - strategy: EventStreamCloudEventConnectionDeletedObject1StrategyEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_authentication.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_authentication.py deleted file mode 100644 index 7c8ad286..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_authentication.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionDeletedObject1Authentication(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for authentication during login. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_connected_accounts.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_connected_accounts.py deleted file mode 100644 index b0b584cc..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_connected_accounts.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionDeletedObject1ConnectedAccounts(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for connected accounts and Token Vault. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_metadata.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_metadata.py deleted file mode 100644 index 528abad4..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_metadata.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionDeletedObject1Metadata(UniversalBaseModel): - """ - Metadata associated with the connection in the form of an object with string values (max 255 chars). Maximum of 10 metadata properties allowed. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_options.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_options.py deleted file mode 100644 index d3fb7ecb..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_options.py +++ /dev/null @@ -1,174 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_connection_deleted_object_1_options_attribute_map import ( - EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMap, -) -from .event_stream_cloud_event_connection_deleted_object_1_options_connection_settings import ( - EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettings, -) -from .event_stream_cloud_event_connection_deleted_object_1_options_dpop_signing_alg_enum import ( - EventStreamCloudEventConnectionDeletedObject1OptionsDpopSigningAlgEnum, -) -from .event_stream_cloud_event_connection_deleted_object_1_options_federated_connections_access_tokens import ( - EventStreamCloudEventConnectionDeletedObject1OptionsFederatedConnectionsAccessTokens, -) -from .event_stream_cloud_event_connection_deleted_object_1_options_id_token_signed_response_algs_item_enum import ( - EventStreamCloudEventConnectionDeletedObject1OptionsIdTokenSignedResponseAlgsItemEnum, -) -from .event_stream_cloud_event_connection_deleted_object_1_options_oidc_metadata import ( - EventStreamCloudEventConnectionDeletedObject1OptionsOidcMetadata, -) -from .event_stream_cloud_event_connection_deleted_object_1_options_schema_version_enum import ( - EventStreamCloudEventConnectionDeletedObject1OptionsSchemaVersionEnum, -) -from .event_stream_cloud_event_connection_deleted_object_1_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionDeletedObject1OptionsSetUserRootAttributesEnum, -) -from .event_stream_cloud_event_connection_deleted_object_1_options_token_endpoint_auth_method_enum import ( - EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthMethodEnum, -) -from .event_stream_cloud_event_connection_deleted_object_1_options_token_endpoint_auth_signing_alg_enum import ( - EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthSigningAlgEnum, -) -from .event_stream_cloud_event_connection_deleted_object_1_options_token_endpoint_jwtca_aud_format_enum import ( - EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointJwtcaAudFormatEnum, -) -from .event_stream_cloud_event_connection_deleted_object_1_options_type_enum import ( - EventStreamCloudEventConnectionDeletedObject1OptionsTypeEnum, -) -from .event_stream_cloud_event_connection_deleted_object_1_options_upstream_params import ( - EventStreamCloudEventConnectionDeletedObject1OptionsUpstreamParams, -) - - -class EventStreamCloudEventConnectionDeletedObject1Options(UniversalBaseModel): - """ - Options for the 'okta' connection - """ - - authorization_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow. - """ - - client_id: str = pydantic.Field() - """ - OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider. - """ - - connection_settings: typing.Optional[EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettings] = None - domain_aliases: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication. - """ - - dpop_signing_alg: typing.Optional[EventStreamCloudEventConnectionDeletedObject1OptionsDpopSigningAlgEnum] = None - federated_connections_access_tokens: typing.Optional[ - EventStreamCloudEventConnectionDeletedObject1OptionsFederatedConnectionsAccessTokens - ] = None - icon_url: typing.Optional[str] = pydantic.Field(default=None) - """ - https url of the icon to be shown - """ - - id_token_session_expiry_supported: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether the identity provider supports session expiry via the id_token. If true, the system will use the session_expiry claim in the id_token to determine session expiry. - """ - - id_token_signed_response_algs: typing.Optional[ - typing.List[EventStreamCloudEventConnectionDeletedObject1OptionsIdTokenSignedResponseAlgsItemEnum] - ] = pydantic.Field(default=None) - """ - List of algorithms allowed to verify the ID tokens. Applicable when strategy=oidc or okta. - """ - - issuer: typing.Optional[str] = pydantic.Field(default=None) - """ - The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider. - """ - - jwks_uri: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures. - """ - - non_persistent_attrs: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) - """ - - oidc_metadata: typing.Optional[EventStreamCloudEventConnectionDeletedObject1OptionsOidcMetadata] = None - schema_version: typing.Optional[EventStreamCloudEventConnectionDeletedObject1OptionsSchemaVersionEnum] = None - scope: typing.Optional[str] = pydantic.Field(default=None) - """ - Space-separated list of OAuth 2.0 scopes requested during authorization. Must include 'openid' (required by OIDC spec). Common values: 'openid profile email'. Additional scopes depend on the identity provider. - """ - - send_back_channel_nonce: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true and type is 'back_channel', includes a cryptographic nonce in authorization requests to prevent replay attacks. The identity provider must include this nonce in the ID token for validation. - """ - - set_user_root_attributes: typing.Optional[ - EventStreamCloudEventConnectionDeletedObject1OptionsSetUserRootAttributesEnum - ] = None - tenant_domain: typing.Optional[str] = pydantic.Field(default=None) - """ - Tenant domain - """ - - token_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow. - """ - - token_endpoint_auth_method: typing.Optional[ - EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthMethodEnum - ] = None - token_endpoint_auth_signing_alg: typing.Optional[ - EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthSigningAlgEnum - ] = None - token_endpoint_jwtca_aud_format: typing.Optional[ - EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointJwtcaAudFormatEnum - ] = None - upstream_params: typing.Optional[EventStreamCloudEventConnectionDeletedObject1OptionsUpstreamParams] = None - use_oauth_spec_scope: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="useOauthSpecScope"), - pydantic.Field( - alias="useOauthSpecScope", - description="When true, uses space-delimited scopes (per OAuth 2.0 spec) instead of comma-delimited when calling the identity provider's authorization endpoint. Only relevant when using the connection_scope parameter. See https://auth0.com/docs/authenticate/identity-providers/adding-scopes-for-an-external-idp#pass-scopes-to-authorize-endpoint", - ), - ] = None - """ - When true, uses space-delimited scopes (per OAuth 2.0 spec) instead of comma-delimited when calling the identity provider's authorization endpoint. Only relevant when using the connection_scope parameter. See https://auth0.com/docs/authenticate/identity-providers/adding-scopes-for-an-external-idp#pass-scopes-to-authorize-endpoint - """ - - userinfo_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token. - """ - - attribute_map: typing.Optional[EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMap] = None - domain: typing.Optional[str] = pydantic.Field(default=None) - """ - Domain of the Okta organization (e.g., dev-123456.okta.com). Should be just the domain of the okta server with no scheme or trailing backslash. Discovery runs only when connection.options.oidc_metadata is empty and a domain is provided - """ - - type: typing.Optional[EventStreamCloudEventConnectionDeletedObject1OptionsTypeEnum] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_options_attribute_map.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_options_attribute_map.py deleted file mode 100644 index f5a4c7e4..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_options_attribute_map.py +++ /dev/null @@ -1,37 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_deleted_object_1_options_attribute_map_attributes import ( - EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMapAttributes, -) -from .event_stream_cloud_event_connection_deleted_object_1_options_attribute_map_mapping_mode_enum import ( - EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMapMappingModeEnum, -) - - -class EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMap(UniversalBaseModel): - """ - Mapping of claims received from the identity provider (IdP) - """ - - attributes: typing.Optional[EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMapAttributes] = None - userinfo_scope: typing.Optional[str] = pydantic.Field(default=None) - """ - Scopes to send to the IdP's Userinfo endpoint - """ - - mapping_mode: typing.Optional[EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMapMappingModeEnum] = ( - None - ) - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_options_attribute_map_attributes.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_options_attribute_map_attributes.py deleted file mode 100644 index 5cbb97c0..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_options_attribute_map_attributes.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMapAttributes = typing.Dict[str, typing.Any] -""" -Object containing mapping details for incoming claims -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_options_attribute_map_mapping_mode_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_options_attribute_map_mapping_mode_enum.py deleted file mode 100644 index 1d794d32..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_options_attribute_map_mapping_mode_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMapMappingModeEnum = typing.Union[ - typing.Literal["basic_profile", "use_map"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_options_connection_settings.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_options_connection_settings.py deleted file mode 100644 index 5980badf..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_options_connection_settings.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_deleted_object_1_options_connection_settings_pkce_enum import ( - EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettingsPkceEnum, -) - - -class EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettings(UniversalBaseModel): - """ - OAuth 2.0 PKCE (Proof Key for Code Exchange) settings. PKCE enhances security for public clients by preventing authorization code interception attacks. 'auto' (recommended) uses the strongest method supported by the IdP. - """ - - pkce: typing.Optional[EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettingsPkceEnum] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_options_connection_settings_pkce_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_options_connection_settings_pkce_enum.py deleted file mode 100644 index 5c90f54e..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_options_connection_settings_pkce_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettingsPkceEnum = typing.Union[ - typing.Literal["auto", "S256", "plain", "disabled"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_options_dpop_signing_alg_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_options_dpop_signing_alg_enum.py deleted file mode 100644 index fc170d36..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_options_dpop_signing_alg_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedObject1OptionsDpopSigningAlgEnum = typing.Union[ - typing.Literal["ES256", "ES384", "ES512", "Ed25519"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_options_federated_connections_access_tokens.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_options_federated_connections_access_tokens.py deleted file mode 100644 index f0aa0266..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_options_federated_connections_access_tokens.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionDeletedObject1OptionsFederatedConnectionsAccessTokens(UniversalBaseModel): - """ - Configuration for storing identity provider tokens in Auth0's Token Vault. When active, Auth0 securely stores access and refresh tokens from federated logins, enabling your application to make authenticated API calls on behalf of users. - """ - - active: bool = pydantic.Field() - """ - Enables refresh tokens and access tokens collection for federated connections - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_options_id_token_signed_response_algs_item_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_options_id_token_signed_response_algs_item_enum.py deleted file mode 100644 index f8c7a133..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_options_id_token_signed_response_algs_item_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedObject1OptionsIdTokenSignedResponseAlgsItemEnum = typing.Union[ - typing.Literal["ES256", "ES384", "PS256", "PS384", "RS256", "RS384", "RS512"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_options_oidc_metadata.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_options_oidc_metadata.py deleted file mode 100644 index 8c2c9840..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_options_oidc_metadata.py +++ /dev/null @@ -1,211 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionDeletedObject1OptionsOidcMetadata(UniversalBaseModel): - """ - OpenID Connect Provider Metadata as per https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata - """ - - acr_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the Authentication Context Class References that this OP supports - """ - - authorization_endpoint: str = pydantic.Field() - """ - URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow. - """ - - claim_types_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the Claim Types that the OpenID Provider supports. These Claim Types are described in Section 5.6 of OpenID Connect Core 1.0 [OpenID.Core]. If omitted, the implementation supports only normal Claims. - """ - - claims_locales_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Languages and scripts supported for values in Claims being returned, represented as a JSON array of BCP47 [RFC5646] language tag values. Not all languages and scripts are necessarily supported for all Claim values. - """ - - claims_parameter_supported: typing.Optional[bool] = pydantic.Field(default=None) - """ - Boolean value specifying whether the OP supports use of the claims parameter, with true indicating support. If omitted, the default value is false. - """ - - claims_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the Claim Names of the Claims that the OpenID Provider MAY be able to supply values for. Note that for privacy or other reasons, this might not be an exhaustive list. - """ - - code_challenge_methods_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636. - """ - - display_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used. - """ - - dpop_signing_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS signing algorithms (alg values) supported for DPoP proof JWT signing. - """ - - end_session_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's logout/end session endpoint. When configured as a static URL, users are redirected here after logging out from Auth0. Must use HTTPS scheme. - """ - - grant_types_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the OAuth 2.0 Grant Type values that this OP supports. Dynamic OpenID Providers MUST support the authorization_code and implicit Grant Type values and MAY support other Grant Types. If omitted, the default value is ["authorization_code", "implicit"]. - """ - - id_token_encryption_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT - """ - - id_token_encryption_enc_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for the ID Token to encode the Claims in a JWT [JWT]. - """ - - id_token_signing_alg_values_supported: typing.List[str] = pydantic.Field() - """ - A list of the JWS signing algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be included. The value none MAY be supported, but MUST NOT be used unless the Response Type used returns no ID Token from the Authorization Endpoint (such as when using the Authorization Code Flow). https://datatracker.ietf.org/doc/html/rfc7518 - """ - - issuer: str = pydantic.Field() - """ - The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider. - """ - - jwks_uri: str = pydantic.Field() - """ - URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures. - """ - - op_policy_uri: typing.Optional[str] = pydantic.Field(default=None) - """ - URL that the OpenID Provider provides to the person registering the Client to read about the OPs requirements on how the Relying Party can use the data provided by the OP. The registration process SHOULD display this URL to the person registering the Client if it is given. - """ - - op_tos_uri: typing.Optional[str] = pydantic.Field(default=None) - """ - URL that the OpenID Provider provides to the person registering the Client to read about OpenID Providers terms of service. The registration process SHOULD display this URL to the person registering the Client if it is given. - """ - - registration_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the OPs Dynamic Client Registration Endpoint. RECOMMENDED but not REQUIRED. https://openid.net/specs/openid-connect-discovery-1_0.html#OpenID.Registration - """ - - request_object_encryption_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference. - """ - - request_object_encryption_enc_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference. - """ - - request_object_signing_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for Request Objects, which are described in Section 6.1 of OpenID Connect Core 1.0 [OpenID.Core]. These algorithms are used both when the Request Object is passed by value (using the request parameter) and when it is passed by reference (using the request_uri parameter). Servers SHOULD support none and RS256. - """ - - request_parameter_supported: typing.Optional[bool] = pydantic.Field(default=None) - """ - Boolean value specifying whether the OP supports use of the request parameter, with true indicating support. If omitted, the default value is false. - """ - - request_uri_parameter_supported: typing.Optional[bool] = pydantic.Field(default=None) - """ - Boolean value specifying whether the OP supports use of the request_uri parameter, with true indicating support. If omitted, the default value is false. - """ - - require_request_uri_registration: typing.Optional[bool] = pydantic.Field(default=None) - """ - Boolean value specifying whether the OP requires use of the request_uri parameter. If omitted, the default value is false. - """ - - response_modes_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the OAuth 2.0 response_mode values that this OP supports. If omitted, the default for Dynamic OpenID Providers is ["query", "fragment"] - """ - - response_types_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the OAuth 2.0 response_type values that this OP supports. Dynamic OpenID Providers MUST support the code, id_token, and the token id_token Response Type values - """ - - scopes_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the OAuth 2.0 [RFC6749] scope values that this server supports. The server MUST support the openid scope value. Servers MAY choose not to advertise some supported scope values even when this parameter is used, although those defined in [OpenID.Core] SHOULD be listed, if supported. RECOMMENDED but not REQUIRED - """ - - service_documentation: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of a page containing human-readable information that developers might want or need to know when using the OpenID Provider. In particular, if the OpenID Provider does not support Dynamic Client Registration, then information on how to register Clients needs to be provided in this documentation. - """ - - subject_types_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the Subject Identifier types that this OP supports. Valid types include pairwise and public - """ - - token_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow. - """ - - token_endpoint_auth_methods_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of Client Authentication methods supported by this Token Endpoint. The options are client_secret_post, client_secret_basic, client_secret_jwt, and private_key_jwt, as described in Section 9 of OpenID Connect Core 1.0 [OpenID.Core]. Other authentication methods MAY be defined by extensions. If omitted, the default is client_secret_basic -- the HTTP Basic Authentication Scheme specified in Section 2.3.1 of OAuth 2.0 [RFC6749]. - """ - - token_endpoint_auth_signing_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used. - """ - - ui_locales_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Languages and scripts supported for the user interface, represented as a JSON array of BCP47 [RFC5646] language tag values. - """ - - userinfo_encryption_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE [JWE] encryption algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. - """ - - userinfo_encryption_enc_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (enc values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. - """ - - userinfo_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token. - """ - - userinfo_signing_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS [JWS] signing algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. The value none MAY be included. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_options_schema_version_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_options_schema_version_enum.py deleted file mode 100644 index cd150599..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_options_schema_version_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedObject1OptionsSchemaVersionEnum = typing.Union[ - typing.Literal["openid-1.0.0", "oidc-v4"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_options_set_user_root_attributes_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_options_set_user_root_attributes_enum.py deleted file mode 100644 index 5c6e46e0..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_options_set_user_root_attributes_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedObject1OptionsSetUserRootAttributesEnum = typing.Union[ - typing.Literal["on_each_login", "on_first_login", "never_on_login"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_options_token_endpoint_auth_method_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_options_token_endpoint_auth_method_enum.py deleted file mode 100644 index d0042aab..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_options_token_endpoint_auth_method_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthMethodEnum = typing.Union[ - typing.Literal["client_secret_post", "private_key_jwt"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_options_token_endpoint_auth_signing_alg_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_options_token_endpoint_auth_signing_alg_enum.py deleted file mode 100644 index 49d4a3ba..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_options_token_endpoint_auth_signing_alg_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthSigningAlgEnum = typing.Union[ - typing.Literal["ES256", "ES384", "PS256", "PS384", "RS256", "RS384", "RS512"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_options_token_endpoint_jwtca_aud_format_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_options_token_endpoint_jwtca_aud_format_enum.py deleted file mode 100644 index aa326b7d..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_options_token_endpoint_jwtca_aud_format_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointJwtcaAudFormatEnum = typing.Union[ - typing.Literal["issuer", "token_endpoint"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_options_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_options_type_enum.py deleted file mode 100644 index 530b058d..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_options_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedObject1OptionsTypeEnum = typing.Union[typing.Literal["back_channel"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_options_upstream_params.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_options_upstream_params.py deleted file mode 100644 index f2f30e31..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_options_upstream_params.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedObject1OptionsUpstreamParams = typing.Dict[str, typing.Any] -""" -Additional parameters to include in authorization requests sent to the identity provider. Useful for passing custom claims, selecting specific identity sources, or configuring provider-specific behavior. See https://auth0.com/docs/authenticate/identity-providers/pass-parameters-to-idps -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_strategy_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_strategy_enum.py deleted file mode 100644 index 1787b53d..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_1_strategy_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedObject1StrategyEnum = typing.Union[typing.Literal["okta"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_2.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_2.py deleted file mode 100644 index e232d6a9..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_2.py +++ /dev/null @@ -1,73 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_deleted_object_2_authentication import ( - EventStreamCloudEventConnectionDeletedObject2Authentication, -) -from .event_stream_cloud_event_connection_deleted_object_2_connected_accounts import ( - EventStreamCloudEventConnectionDeletedObject2ConnectedAccounts, -) -from .event_stream_cloud_event_connection_deleted_object_2_metadata import ( - EventStreamCloudEventConnectionDeletedObject2Metadata, -) -from .event_stream_cloud_event_connection_deleted_object_2_options import ( - EventStreamCloudEventConnectionDeletedObject2Options, -) -from .event_stream_cloud_event_connection_deleted_object_2_strategy_enum import ( - EventStreamCloudEventConnectionDeletedObject2StrategyEnum, -) - - -class EventStreamCloudEventConnectionDeletedObject2(UniversalBaseModel): - authentication: typing.Optional[EventStreamCloudEventConnectionDeletedObject2Authentication] = None - connected_accounts: typing.Optional[EventStreamCloudEventConnectionDeletedObject2ConnectedAccounts] = None - display_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Connection name used in the new universal login experience - """ - - enabled_clients: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. - """ - - id: str = pydantic.Field() - """ - The connection's identifier - """ - - is_domain_connection: typing.Optional[bool] = pydantic.Field(default=None) - """ - true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) - """ - - metadata: typing.Optional[EventStreamCloudEventConnectionDeletedObject2Metadata] = None - name: str = pydantic.Field() - """ - The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 - """ - - realms: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. - """ - - options: typing.Optional[EventStreamCloudEventConnectionDeletedObject2Options] = None - show_as_button: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to `false`. - """ - - strategy: EventStreamCloudEventConnectionDeletedObject2StrategyEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_2_authentication.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_2_authentication.py deleted file mode 100644 index bd0e4023..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_2_authentication.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionDeletedObject2Authentication(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for authentication during login. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_2_connected_accounts.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_2_connected_accounts.py deleted file mode 100644 index 0997ace7..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_2_connected_accounts.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionDeletedObject2ConnectedAccounts(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for connected accounts and Token Vault. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_2_metadata.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_2_metadata.py deleted file mode 100644 index a9608d54..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_2_metadata.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionDeletedObject2Metadata(UniversalBaseModel): - """ - Metadata associated with the connection in the form of an object with string values (max 255 chars). Maximum of 10 metadata properties allowed. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_2_options.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_2_options.py deleted file mode 100644 index fdc71ac7..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_2_options.py +++ /dev/null @@ -1,298 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_connection_deleted_object_2_options_assertion_decryption_settings import ( - EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettings, -) -from .event_stream_cloud_event_connection_deleted_object_2_options_digest_algorithm_enum import ( - EventStreamCloudEventConnectionDeletedObject2OptionsDigestAlgorithmEnum, -) -from .event_stream_cloud_event_connection_deleted_object_2_options_fields_map import ( - EventStreamCloudEventConnectionDeletedObject2OptionsFieldsMap, -) -from .event_stream_cloud_event_connection_deleted_object_2_options_idpinitiated import ( - EventStreamCloudEventConnectionDeletedObject2OptionsIdpinitiated, -) -from .event_stream_cloud_event_connection_deleted_object_2_options_oidc_metadata import ( - EventStreamCloudEventConnectionDeletedObject2OptionsOidcMetadata, -) -from .event_stream_cloud_event_connection_deleted_object_2_options_protocol_binding_enum import ( - EventStreamCloudEventConnectionDeletedObject2OptionsProtocolBindingEnum, -) -from .event_stream_cloud_event_connection_deleted_object_2_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionDeletedObject2OptionsSetUserRootAttributesEnum, -) -from .event_stream_cloud_event_connection_deleted_object_2_options_signature_algorithm_enum import ( - EventStreamCloudEventConnectionDeletedObject2OptionsSignatureAlgorithmEnum, -) -from .event_stream_cloud_event_connection_deleted_object_2_options_subject import ( - EventStreamCloudEventConnectionDeletedObject2OptionsSubject, -) -from .event_stream_cloud_event_connection_deleted_object_2_options_upstream_params import ( - EventStreamCloudEventConnectionDeletedObject2OptionsUpstreamParams, -) - - -class EventStreamCloudEventConnectionDeletedObject2Options(UniversalBaseModel): - """ - Options for the 'samlp' connection - """ - - assertion_decryption_settings: typing.Optional[ - EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettings - ] = None - cert: typing.Optional[str] = pydantic.Field(default=None) - """ - X.509 signing certificate from the identity provider in .der format. Used to validate signatures in SAML Responses and Assertions. This is an alternative to signingCert and is kept for backward compatibility. Prefer using signingCert instead. - """ - - cert_rollover_notification: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Timestamp of the last certificate expiring soon notification. - """ - - digest_algorithm: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventConnectionDeletedObject2OptionsDigestAlgorithmEnum], - FieldMetadata(alias="digestAlgorithm"), - pydantic.Field(alias="digestAlgorithm"), - ] = None - domain_aliases: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Domain aliases for the connection - """ - - entity_id: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="entityId"), - pydantic.Field( - alias="entityId", - description="The entity identifier (Issuer) for the SAML Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'. This value is included in SAML AuthnRequest messages sent to the identity provider.", - ), - ] = None - """ - The entity identifier (Issuer) for the SAML Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'. This value is included in SAML AuthnRequest messages sent to the identity provider. - """ - - expires: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - ISO 8601 formatted datetime indicating when the identity provider's signing certificate expires. - """ - - icon_url: typing.Optional[str] = pydantic.Field(default=None) - """ - URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows. - """ - - idpinitiated: typing.Optional[EventStreamCloudEventConnectionDeletedObject2OptionsIdpinitiated] = None - non_persistent_attrs: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) - """ - - protocol_binding: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventConnectionDeletedObject2OptionsProtocolBindingEnum], - FieldMetadata(alias="protocolBinding"), - pydantic.Field(alias="protocolBinding"), - ] = None - set_user_root_attributes: typing.Optional[ - EventStreamCloudEventConnectionDeletedObject2OptionsSetUserRootAttributesEnum - ] = None - signature_algorithm: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventConnectionDeletedObject2OptionsSignatureAlgorithmEnum], - FieldMetadata(alias="signatureAlgorithm"), - pydantic.Field(alias="signatureAlgorithm"), - ] = None - sign_in_endpoint: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="signInEndpoint"), - pydantic.Field( - alias="signInEndpoint", - description="Identity provider's SAML SingleSignOnService endpoint URL where Auth0 sends SAML authentication requests. This is the primary login URL for the SAML connection. Required unless using metadataUrl or metadataXml.", - ), - ] = None - """ - Identity provider's SAML SingleSignOnService endpoint URL where Auth0 sends SAML authentication requests. This is the primary login URL for the SAML connection. Required unless using metadataUrl or metadataXml. - """ - - signing_cert: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="signingCert"), - pydantic.Field( - alias="signingCert", - description="Base64-encoded X.509 certificate from the identity provider used to validate signatures in SAML responses and assertions. The certificate is decoded and used for cryptographic signature verification.", - ), - ] = None - """ - Base64-encoded X.509 certificate from the identity provider used to validate signatures in SAML responses and assertions. The certificate is decoded and used for cryptographic signature verification. - """ - - sign_saml_request: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="signSAMLRequest"), - pydantic.Field( - alias="signSAMLRequest", - description="When true, Auth0 signs SAML authentication requests using the connection's signing key. The signature includes the request's digest and is validated by the identity provider. Defaults to false (unsigned requests).", - ), - ] = None - """ - When true, Auth0 signs SAML authentication requests using the connection's signing key. The signature includes the request's digest and is validated by the identity provider. Defaults to false (unsigned requests). - """ - - subject: typing.Optional[EventStreamCloudEventConnectionDeletedObject2OptionsSubject] = None - tenant_domain: typing.Optional[str] = pydantic.Field(default=None) - """ - For SAML connections, the tenant domain used to construct the login endpoint URL. Can be a string for single-tenant or an array of strings for multi-tenant validation. - """ - - thumbprints: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - SHA-1 thumbprints (fingerprints) of the identity provider's signing certificates. Automatically computed from signingCert during connection creation. Each thumbprint must be a 40-character hexadecimal string. - """ - - upstream_params: typing.Optional[EventStreamCloudEventConnectionDeletedObject2OptionsUpstreamParams] = None - debug: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true, enables detailed SAML debugging by issuing 'w' (warning) events in tenant logs containing SAML request/response details. WARNING: Potentially exposes sensitive user information (PII, credentials) and should only be enabled temporarily for debugging purposes. - """ - - deflate: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true, enables DEFLATE compression for SAML requests sent via HTTP-Redirect binding. - """ - - destination_url: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="destinationUrl"), - pydantic.Field( - alias="destinationUrl", - description="The URL where Auth0 will send SAML authentication requests (the Identity Provider's SSO URL). Must be a valid HTTPS URL.", - ), - ] = None - """ - The URL where Auth0 will send SAML authentication requests (the Identity Provider's SSO URL). Must be a valid HTTPS URL. - """ - - disable_fields_map_fix: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="disableFieldsMapFix"), - pydantic.Field( - alias="disableFieldsMapFix", - description="When true, disables the automatic correction of the fieldsMap configuration to ensure proper mapping of SAML attributes to user profile fields. Defaults to false (fieldsMap fix enabled).", - ), - ] = None - """ - When true, disables the automatic correction of the fieldsMap configuration to ensure proper mapping of SAML attributes to user profile fields. Defaults to false (fieldsMap fix enabled). - """ - - disable_signout: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="disableSignout"), - pydantic.Field( - alias="disableSignout", - description="When true, disables sending SAML logout requests (SingleLogoutService) to the identity provider during user sign-out. The user will be logged out of Auth0 but will remain logged into the identity provider. Defaults to false (federated logout enabled).", - ), - ] = None - """ - When true, disables sending SAML logout requests (SingleLogoutService) to the identity provider during user sign-out. The user will be logged out of Auth0 but will remain logged into the identity provider. Defaults to false (federated logout enabled). - """ - - discovery_url: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's OIDC Discovery endpoint (/.well-known/openid-configuration). When provided and oidc_metadata is empty, Auth0 automatically retrieves the provider's configuration including endpoints and supported features. Used with Cross App Access. - """ - - fields_map: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventConnectionDeletedObject2OptionsFieldsMap], - FieldMetadata(alias="fieldsMap"), - pydantic.Field(alias="fieldsMap"), - ] = None - fields_map_json_raw: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="fieldsMapJsonRaw"), - pydantic.Field( - alias="fieldsMapJsonRaw", - description="Raw JSON string representation of the fieldsMap configuration. Used internally for storage and retrieval of the fieldsMap object.", - ), - ] = None - """ - Raw JSON string representation of the fieldsMap configuration. Used internally for storage and retrieval of the fieldsMap object. - """ - - global_token_revocation_jwt_iss: typing.Optional[str] = pydantic.Field(default=None) - """ - Expected 'iss' (Issuer) claim value for JWT tokens in Global Token Revocation requests from the identity provider. When configured, Auth0 validates the JWT issuer matches this value before processing token revocation. Must be used together with global_token_revocation_jwt_sub. - """ - - global_token_revocation_jwt_sub: typing.Optional[str] = pydantic.Field(default=None) - """ - Expected 'sub' (Subject) claim value for JWT tokens in Global Token Revocation requests from the identity provider. When configured, Auth0 validates the JWT subject matches this value before processing token revocation. Must be used together with global_token_revocation_jwt_iss. - """ - - metadata_url: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="metadataUrl"), - pydantic.Field( - alias="metadataUrl", - description="HTTPS URL to the identity provider's SAML metadata document. When provided, Auth0 automatically fetches and parses the metadata to extract signInEndpoint, signOutEndpoint, signingCert, signSAMLRequest, and protocolBinding. Use metadataUrl OR metadataXml, not both.", - ), - ] = None - """ - HTTPS URL to the identity provider's SAML metadata document. When provided, Auth0 automatically fetches and parses the metadata to extract signInEndpoint, signOutEndpoint, signingCert, signSAMLRequest, and protocolBinding. Use metadataUrl OR metadataXml, not both. - """ - - oidc_metadata: typing.Optional[EventStreamCloudEventConnectionDeletedObject2OptionsOidcMetadata] = None - recipient_url: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="recipientUrl"), - pydantic.Field( - alias="recipientUrl", - description="The URL where Auth0 will send SAML authentication requests (the Identity Provider's SSO URL). Must be a valid HTTPS URL.", - ), - ] = None - """ - The URL where Auth0 will send SAML authentication requests (the Identity Provider's SSO URL). Must be a valid HTTPS URL. - """ - - request_template: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="requestTemplate"), - pydantic.Field( - alias="requestTemplate", - description="Custom XML template for SAML authentication requests. Supports variable substitution using @@variableName@@ syntax. When not provided, uses default SAML AuthnRequest template. See https://auth0.com/docs/authenticate/protocols/saml/saml-sso-integrations/configure-auth0-saml-service-provider#customize-the-request-template", - ), - ] = None - """ - Custom XML template for SAML authentication requests. Supports variable substitution using @@variableName@@ syntax. When not provided, uses default SAML AuthnRequest template. See https://auth0.com/docs/authenticate/protocols/saml/saml-sso-integrations/configure-auth0-saml-service-provider#customize-the-request-template - """ - - sign_out_endpoint: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="signOutEndpoint"), - pydantic.Field( - alias="signOutEndpoint", - description="Identity provider's SAML SingleLogoutService endpoint URL where Auth0 sends logout requests for federated sign-out. When not provided, defaults to signInEndpoint. Only used if disableSignout is false.", - ), - ] = None - """ - Identity provider's SAML SingleLogoutService endpoint URL where Auth0 sends logout requests for federated sign-out. When not provided, defaults to signInEndpoint. Only used if disableSignout is false. - """ - - user_id_attribute: typing.Optional[str] = pydantic.Field(default=None) - """ - Custom SAML assertion attribute to use as the unique user identifier. When provided, this attribute is prepended to the default user_id mapping list with highest priority. Accepts a string (single SAML attribute name). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_2_options_assertion_decryption_settings.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_2_options_assertion_decryption_settings.py deleted file mode 100644 index 4522445d..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_2_options_assertion_decryption_settings.py +++ /dev/null @@ -1,33 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_deleted_object_2_options_assertion_decryption_settings_algorithm_profile_enum import ( - EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum, -) - - -class EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettings(UniversalBaseModel): - """ - Settings for SAML assertion decryption. - """ - - algorithm_exceptions: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of insecure algorithms to allow for SAML assertion decryption. - """ - - algorithm_profile: ( - EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum - ) - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_2_options_assertion_decryption_settings_algorithm_profile_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_2_options_assertion_decryption_settings_algorithm_profile_enum.py deleted file mode 100644 index 928220cc..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_2_options_assertion_decryption_settings_algorithm_profile_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum = typing.Union[ - typing.Literal["v2026-1"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_2_options_digest_algorithm_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_2_options_digest_algorithm_enum.py deleted file mode 100644 index 27297e27..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_2_options_digest_algorithm_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedObject2OptionsDigestAlgorithmEnum = typing.Union[ - typing.Literal["sha1", "sha256"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_2_options_fields_map.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_2_options_fields_map.py deleted file mode 100644 index f1708b92..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_2_options_fields_map.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedObject2OptionsFieldsMap = typing.Dict[str, typing.Any] -""" -Maps SAML assertion attributes from the identity provider to Auth0 user profile attributes. Format: { 'auth0_field': 'saml_attribute' } or { 'auth0_field': ['saml_attr1', 'saml_attr2'] } for fallback options. Merged with default mappings for email, name, given_name, family_name, and groups. -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_2_options_idpinitiated.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_2_options_idpinitiated.py deleted file mode 100644 index 987c4cbd..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_2_options_idpinitiated.py +++ /dev/null @@ -1,42 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_deleted_object_2_options_idpinitiated_client_protocol_enum import ( - EventStreamCloudEventConnectionDeletedObject2OptionsIdpinitiatedClientProtocolEnum, -) - - -class EventStreamCloudEventConnectionDeletedObject2OptionsIdpinitiated(UniversalBaseModel): - """ - Configuration for IdP-Initiated SAML Single Sign-On. When enabled, allows users to initiate login directly from their SAML identity provider without first visiting Auth0. The IdP must include the connection parameter in the post-back URL (Assertion Consumer Service URL). - """ - - client_authorizequery: typing.Optional[str] = pydantic.Field(default=None) - """ - The query string sent to the default application - """ - - client_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The client ID to use for IdP-initiated login requests. - """ - - client_protocol: typing.Optional[ - EventStreamCloudEventConnectionDeletedObject2OptionsIdpinitiatedClientProtocolEnum - ] = None - enabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true, enables IdP-initiated login support for this SAML connection. Allows users to log in directly from the identity provider without first visiting Auth0. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_2_options_idpinitiated_client_protocol_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_2_options_idpinitiated_client_protocol_enum.py deleted file mode 100644 index 3b5b2ad4..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_2_options_idpinitiated_client_protocol_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedObject2OptionsIdpinitiatedClientProtocolEnum = typing.Union[ - typing.Literal["oidc", "samlp", "wsfed"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_2_options_oidc_metadata.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_2_options_oidc_metadata.py deleted file mode 100644 index d4b5159d..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_2_options_oidc_metadata.py +++ /dev/null @@ -1,211 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionDeletedObject2OptionsOidcMetadata(UniversalBaseModel): - """ - OpenID Connect Provider Metadata as per https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata. Used with Cross App Access. - """ - - acr_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the Authentication Context Class References that this OP supports - """ - - authorization_endpoint: str = pydantic.Field() - """ - URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow. - """ - - claim_types_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the Claim Types that the OpenID Provider supports. These Claim Types are described in Section 5.6 of OpenID Connect Core 1.0 [OpenID.Core]. If omitted, the implementation supports only normal Claims. - """ - - claims_locales_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Languages and scripts supported for values in Claims being returned, represented as a JSON array of BCP47 [RFC5646] language tag values. Not all languages and scripts are necessarily supported for all Claim values. - """ - - claims_parameter_supported: typing.Optional[bool] = pydantic.Field(default=None) - """ - Boolean value specifying whether the OP supports use of the claims parameter, with true indicating support. If omitted, the default value is false. - """ - - claims_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the Claim Names of the Claims that the OpenID Provider MAY be able to supply values for. Note that for privacy or other reasons, this might not be an exhaustive list. - """ - - code_challenge_methods_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636. - """ - - display_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used. - """ - - dpop_signing_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS signing algorithms (alg values) supported for DPoP proof JWT signing. - """ - - end_session_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's logout/end session endpoint. When configured as a static URL, users are redirected here after logging out from Auth0. Must use HTTPS scheme. - """ - - grant_types_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the OAuth 2.0 Grant Type values that this OP supports. Dynamic OpenID Providers MUST support the authorization_code and implicit Grant Type values and MAY support other Grant Types. If omitted, the default value is ["authorization_code", "implicit"]. - """ - - id_token_encryption_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT - """ - - id_token_encryption_enc_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for the ID Token to encode the Claims in a JWT [JWT]. - """ - - id_token_signing_alg_values_supported: typing.List[str] = pydantic.Field() - """ - A list of the JWS signing algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be included. The value none MAY be supported, but MUST NOT be used unless the Response Type used returns no ID Token from the Authorization Endpoint (such as when using the Authorization Code Flow). https://datatracker.ietf.org/doc/html/rfc7518 - """ - - issuer: str = pydantic.Field() - """ - The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider. - """ - - jwks_uri: str = pydantic.Field() - """ - URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures. - """ - - op_policy_uri: typing.Optional[str] = pydantic.Field(default=None) - """ - URL that the OpenID Provider provides to the person registering the Client to read about the OPs requirements on how the Relying Party can use the data provided by the OP. The registration process SHOULD display this URL to the person registering the Client if it is given. - """ - - op_tos_uri: typing.Optional[str] = pydantic.Field(default=None) - """ - URL that the OpenID Provider provides to the person registering the Client to read about OpenID Providers terms of service. The registration process SHOULD display this URL to the person registering the Client if it is given. - """ - - registration_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the OPs Dynamic Client Registration Endpoint. RECOMMENDED but not REQUIRED. https://openid.net/specs/openid-connect-discovery-1_0.html#OpenID.Registration - """ - - request_object_encryption_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference. - """ - - request_object_encryption_enc_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference. - """ - - request_object_signing_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for Request Objects, which are described in Section 6.1 of OpenID Connect Core 1.0 [OpenID.Core]. These algorithms are used both when the Request Object is passed by value (using the request parameter) and when it is passed by reference (using the request_uri parameter). Servers SHOULD support none and RS256. - """ - - request_parameter_supported: typing.Optional[bool] = pydantic.Field(default=None) - """ - Boolean value specifying whether the OP supports use of the request parameter, with true indicating support. If omitted, the default value is false. - """ - - request_uri_parameter_supported: typing.Optional[bool] = pydantic.Field(default=None) - """ - Boolean value specifying whether the OP supports use of the request_uri parameter, with true indicating support. If omitted, the default value is false. - """ - - require_request_uri_registration: typing.Optional[bool] = pydantic.Field(default=None) - """ - Boolean value specifying whether the OP requires use of the request_uri parameter. If omitted, the default value is false. - """ - - response_modes_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the OAuth 2.0 response_mode values that this OP supports. If omitted, the default for Dynamic OpenID Providers is ["query", "fragment"] - """ - - response_types_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the OAuth 2.0 response_type values that this OP supports. Dynamic OpenID Providers MUST support the code, id_token, and the token id_token Response Type values - """ - - scopes_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the OAuth 2.0 [RFC6749] scope values that this server supports. The server MUST support the openid scope value. Servers MAY choose not to advertise some supported scope values even when this parameter is used, although those defined in [OpenID.Core] SHOULD be listed, if supported. RECOMMENDED but not REQUIRED - """ - - service_documentation: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of a page containing human-readable information that developers might want or need to know when using the OpenID Provider. In particular, if the OpenID Provider does not support Dynamic Client Registration, then information on how to register Clients needs to be provided in this documentation. - """ - - subject_types_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the Subject Identifier types that this OP supports. Valid types include pairwise and public - """ - - token_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow. - """ - - token_endpoint_auth_methods_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of Client Authentication methods supported by this Token Endpoint. The options are client_secret_post, client_secret_basic, client_secret_jwt, and private_key_jwt, as described in Section 9 of OpenID Connect Core 1.0 [OpenID.Core]. Other authentication methods MAY be defined by extensions. If omitted, the default is client_secret_basic -- the HTTP Basic Authentication Scheme specified in Section 2.3.1 of OAuth 2.0 [RFC6749]. - """ - - token_endpoint_auth_signing_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used. - """ - - ui_locales_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Languages and scripts supported for the user interface, represented as a JSON array of BCP47 [RFC5646] language tag values. - """ - - userinfo_encryption_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE [JWE] encryption algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. - """ - - userinfo_encryption_enc_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (enc values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. - """ - - userinfo_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token. - """ - - userinfo_signing_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS [JWS] signing algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. The value none MAY be included. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_2_options_protocol_binding_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_2_options_protocol_binding_enum.py deleted file mode 100644 index 46b8e30d..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_2_options_protocol_binding_enum.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedObject2OptionsProtocolBindingEnum = typing.Union[ - typing.Literal[ - "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST", "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect" - ], - typing.Any, -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_2_options_set_user_root_attributes_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_2_options_set_user_root_attributes_enum.py deleted file mode 100644 index 28087bbf..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_2_options_set_user_root_attributes_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedObject2OptionsSetUserRootAttributesEnum = typing.Union[ - typing.Literal["on_each_login", "on_first_login", "never_on_login"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_2_options_signature_algorithm_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_2_options_signature_algorithm_enum.py deleted file mode 100644 index 400e1627..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_2_options_signature_algorithm_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedObject2OptionsSignatureAlgorithmEnum = typing.Union[ - typing.Literal["rsa-sha1", "rsa-sha256"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_2_options_subject.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_2_options_subject.py deleted file mode 100644 index 43535cda..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_2_options_subject.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionDeletedObject2OptionsSubject(UniversalBaseModel): - """ - Certificate Subject Distinguished Name (DN) extracted from the identity provider's signing certificate. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_2_options_upstream_params.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_2_options_upstream_params.py deleted file mode 100644 index 573098a6..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_2_options_upstream_params.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedObject2OptionsUpstreamParams = typing.Dict[str, typing.Any] -""" -Additional parameters to include in authorization requests sent to the identity provider. Useful for passing custom claims, selecting specific identity sources, or configuring provider-specific behavior. See https://auth0.com/docs/authenticate/identity-providers/pass-parameters-to-idps -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_2_strategy_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_2_strategy_enum.py deleted file mode 100644 index 5e59ef82..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_2_strategy_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedObject2StrategyEnum = typing.Union[typing.Literal["samlp"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_3.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_3.py deleted file mode 100644 index 5cf9056c..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_3.py +++ /dev/null @@ -1,73 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_deleted_object_3_authentication import ( - EventStreamCloudEventConnectionDeletedObject3Authentication, -) -from .event_stream_cloud_event_connection_deleted_object_3_connected_accounts import ( - EventStreamCloudEventConnectionDeletedObject3ConnectedAccounts, -) -from .event_stream_cloud_event_connection_deleted_object_3_metadata import ( - EventStreamCloudEventConnectionDeletedObject3Metadata, -) -from .event_stream_cloud_event_connection_deleted_object_3_options import ( - EventStreamCloudEventConnectionDeletedObject3Options, -) -from .event_stream_cloud_event_connection_deleted_object_3_strategy_enum import ( - EventStreamCloudEventConnectionDeletedObject3StrategyEnum, -) - - -class EventStreamCloudEventConnectionDeletedObject3(UniversalBaseModel): - authentication: typing.Optional[EventStreamCloudEventConnectionDeletedObject3Authentication] = None - connected_accounts: typing.Optional[EventStreamCloudEventConnectionDeletedObject3ConnectedAccounts] = None - display_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Connection name used in the new universal login experience - """ - - enabled_clients: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. - """ - - id: str = pydantic.Field() - """ - The connection's identifier - """ - - is_domain_connection: typing.Optional[bool] = pydantic.Field(default=None) - """ - true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) - """ - - metadata: typing.Optional[EventStreamCloudEventConnectionDeletedObject3Metadata] = None - name: str = pydantic.Field() - """ - The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 - """ - - realms: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. - """ - - options: typing.Optional[EventStreamCloudEventConnectionDeletedObject3Options] = None - show_as_button: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to `false`. - """ - - strategy: EventStreamCloudEventConnectionDeletedObject3StrategyEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_3_authentication.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_3_authentication.py deleted file mode 100644 index 448462a5..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_3_authentication.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionDeletedObject3Authentication(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for authentication during login. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_3_connected_accounts.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_3_connected_accounts.py deleted file mode 100644 index aff922fc..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_3_connected_accounts.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionDeletedObject3ConnectedAccounts(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for connected accounts and Token Vault. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_3_metadata.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_3_metadata.py deleted file mode 100644 index dbf64c56..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_3_metadata.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionDeletedObject3Metadata(UniversalBaseModel): - """ - Metadata associated with the connection in the form of an object with string values (max 255 chars). Maximum of 10 metadata properties allowed. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_3_options.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_3_options.py deleted file mode 100644 index ae5b97a2..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_3_options.py +++ /dev/null @@ -1,172 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_connection_deleted_object_3_options_assertion_decryption_settings import ( - EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettings, -) -from .event_stream_cloud_event_connection_deleted_object_3_options_digest_algorithm_enum import ( - EventStreamCloudEventConnectionDeletedObject3OptionsDigestAlgorithmEnum, -) -from .event_stream_cloud_event_connection_deleted_object_3_options_idpinitiated import ( - EventStreamCloudEventConnectionDeletedObject3OptionsIdpinitiated, -) -from .event_stream_cloud_event_connection_deleted_object_3_options_protocol_binding_enum import ( - EventStreamCloudEventConnectionDeletedObject3OptionsProtocolBindingEnum, -) -from .event_stream_cloud_event_connection_deleted_object_3_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionDeletedObject3OptionsSetUserRootAttributesEnum, -) -from .event_stream_cloud_event_connection_deleted_object_3_options_signature_algorithm_enum import ( - EventStreamCloudEventConnectionDeletedObject3OptionsSignatureAlgorithmEnum, -) -from .event_stream_cloud_event_connection_deleted_object_3_options_subject import ( - EventStreamCloudEventConnectionDeletedObject3OptionsSubject, -) -from .event_stream_cloud_event_connection_deleted_object_3_options_upstream_params import ( - EventStreamCloudEventConnectionDeletedObject3OptionsUpstreamParams, -) - - -class EventStreamCloudEventConnectionDeletedObject3Options(UniversalBaseModel): - """ - Options for the 'pingfederate' connection - """ - - assertion_decryption_settings: typing.Optional[ - EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettings - ] = None - cert: typing.Optional[str] = pydantic.Field(default=None) - """ - X.509 signing certificate from the identity provider in .der format. Used to validate signatures in SAML Responses and Assertions. This is an alternative to signingCert and is kept for backward compatibility. Prefer using signingCert instead. - """ - - cert_rollover_notification: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Timestamp of the last certificate expiring soon notification. - """ - - digest_algorithm: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventConnectionDeletedObject3OptionsDigestAlgorithmEnum], - FieldMetadata(alias="digestAlgorithm"), - pydantic.Field(alias="digestAlgorithm"), - ] = None - domain_aliases: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Domain aliases for the connection - """ - - entity_id: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="entityId"), - pydantic.Field( - alias="entityId", - description="The entity identifier (Issuer) for the SAML Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'. This value is included in SAML AuthnRequest messages sent to the identity provider.", - ), - ] = None - """ - The entity identifier (Issuer) for the SAML Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'. This value is included in SAML AuthnRequest messages sent to the identity provider. - """ - - expires: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - ISO 8601 formatted datetime indicating when the identity provider's signing certificate expires. - """ - - icon_url: typing.Optional[str] = pydantic.Field(default=None) - """ - URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows. - """ - - idpinitiated: typing.Optional[EventStreamCloudEventConnectionDeletedObject3OptionsIdpinitiated] = None - non_persistent_attrs: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) - """ - - protocol_binding: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventConnectionDeletedObject3OptionsProtocolBindingEnum], - FieldMetadata(alias="protocolBinding"), - pydantic.Field(alias="protocolBinding"), - ] = None - set_user_root_attributes: typing.Optional[ - EventStreamCloudEventConnectionDeletedObject3OptionsSetUserRootAttributesEnum - ] = None - signature_algorithm: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventConnectionDeletedObject3OptionsSignatureAlgorithmEnum], - FieldMetadata(alias="signatureAlgorithm"), - pydantic.Field(alias="signatureAlgorithm"), - ] = None - sign_in_endpoint: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="signInEndpoint"), - pydantic.Field( - alias="signInEndpoint", - description="Identity provider's SAML SingleSignOnService endpoint URL where Auth0 sends SAML authentication requests. This is the primary login URL for the SAML connection. Required unless using metadataUrl or metadataXml.", - ), - ] = None - """ - Identity provider's SAML SingleSignOnService endpoint URL where Auth0 sends SAML authentication requests. This is the primary login URL for the SAML connection. Required unless using metadataUrl or metadataXml. - """ - - signing_cert: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="signingCert"), - pydantic.Field( - alias="signingCert", - description="Base64-encoded X.509 certificate from the identity provider used to validate signatures in SAML responses and assertions. The certificate is decoded and used for cryptographic signature verification.", - ), - ] = None - """ - Base64-encoded X.509 certificate from the identity provider used to validate signatures in SAML responses and assertions. The certificate is decoded and used for cryptographic signature verification. - """ - - sign_saml_request: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="signSAMLRequest"), - pydantic.Field( - alias="signSAMLRequest", - description="When true, Auth0 signs SAML authentication requests using the connection's signing key. The signature includes the request's digest and is validated by the identity provider. Defaults to false (unsigned requests).", - ), - ] = None - """ - When true, Auth0 signs SAML authentication requests using the connection's signing key. The signature includes the request's digest and is validated by the identity provider. Defaults to false (unsigned requests). - """ - - subject: typing.Optional[EventStreamCloudEventConnectionDeletedObject3OptionsSubject] = None - tenant_domain: typing.Optional[str] = pydantic.Field(default=None) - """ - For SAML connections, the tenant domain used to construct the login endpoint URL. Can be a string for single-tenant or an array of strings for multi-tenant validation. - """ - - thumbprints: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - SHA-1 thumbprints (fingerprints) of the identity provider's signing certificates. Automatically computed from signingCert during connection creation. Each thumbprint must be a 40-character hexadecimal string. - """ - - upstream_params: typing.Optional[EventStreamCloudEventConnectionDeletedObject3OptionsUpstreamParams] = None - ping_federate_base_url: typing_extensions.Annotated[ - str, - FieldMetadata(alias="pingFederateBaseUrl"), - pydantic.Field( - alias="pingFederateBaseUrl", - description="URL provided by PingFederate which returns information used for creating the connection", - ), - ] - """ - URL provided by PingFederate which returns information used for creating the connection - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_3_options_assertion_decryption_settings.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_3_options_assertion_decryption_settings.py deleted file mode 100644 index e2bf7bd7..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_3_options_assertion_decryption_settings.py +++ /dev/null @@ -1,33 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_deleted_object_3_options_assertion_decryption_settings_algorithm_profile_enum import ( - EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum, -) - - -class EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettings(UniversalBaseModel): - """ - Settings for SAML assertion decryption. - """ - - algorithm_exceptions: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of insecure algorithms to allow for SAML assertion decryption. - """ - - algorithm_profile: ( - EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum - ) - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_3_options_assertion_decryption_settings_algorithm_profile_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_3_options_assertion_decryption_settings_algorithm_profile_enum.py deleted file mode 100644 index 13accc27..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_3_options_assertion_decryption_settings_algorithm_profile_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum = typing.Union[ - typing.Literal["v2026-1"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_3_options_digest_algorithm_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_3_options_digest_algorithm_enum.py deleted file mode 100644 index bae1c9ea..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_3_options_digest_algorithm_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedObject3OptionsDigestAlgorithmEnum = typing.Union[ - typing.Literal["sha1", "sha256"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_3_options_idpinitiated.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_3_options_idpinitiated.py deleted file mode 100644 index a7fd33b8..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_3_options_idpinitiated.py +++ /dev/null @@ -1,42 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_deleted_object_3_options_idpinitiated_client_protocol_enum import ( - EventStreamCloudEventConnectionDeletedObject3OptionsIdpinitiatedClientProtocolEnum, -) - - -class EventStreamCloudEventConnectionDeletedObject3OptionsIdpinitiated(UniversalBaseModel): - """ - Configuration for IdP-Initiated SAML Single Sign-On. When enabled, allows users to initiate login directly from their SAML identity provider without first visiting Auth0. The IdP must include the connection parameter in the post-back URL (Assertion Consumer Service URL). - """ - - client_authorizequery: typing.Optional[str] = pydantic.Field(default=None) - """ - The query string sent to the default application - """ - - client_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The client ID to use for IdP-initiated login requests. - """ - - client_protocol: typing.Optional[ - EventStreamCloudEventConnectionDeletedObject3OptionsIdpinitiatedClientProtocolEnum - ] = None - enabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true, enables IdP-initiated login support for this SAML connection. Allows users to log in directly from the identity provider without first visiting Auth0. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_3_options_idpinitiated_client_protocol_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_3_options_idpinitiated_client_protocol_enum.py deleted file mode 100644 index 718aed94..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_3_options_idpinitiated_client_protocol_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedObject3OptionsIdpinitiatedClientProtocolEnum = typing.Union[ - typing.Literal["oidc", "samlp", "wsfed"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_3_options_protocol_binding_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_3_options_protocol_binding_enum.py deleted file mode 100644 index e2dd3645..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_3_options_protocol_binding_enum.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedObject3OptionsProtocolBindingEnum = typing.Union[ - typing.Literal[ - "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST", "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect" - ], - typing.Any, -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_3_options_set_user_root_attributes_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_3_options_set_user_root_attributes_enum.py deleted file mode 100644 index cf6549fe..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_3_options_set_user_root_attributes_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedObject3OptionsSetUserRootAttributesEnum = typing.Union[ - typing.Literal["on_each_login", "on_first_login", "never_on_login"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_3_options_signature_algorithm_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_3_options_signature_algorithm_enum.py deleted file mode 100644 index 45a47237..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_3_options_signature_algorithm_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedObject3OptionsSignatureAlgorithmEnum = typing.Union[ - typing.Literal["rsa-sha1", "rsa-sha256"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_3_options_subject.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_3_options_subject.py deleted file mode 100644 index be9fe661..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_3_options_subject.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionDeletedObject3OptionsSubject(UniversalBaseModel): - """ - Certificate Subject Distinguished Name (DN) extracted from the identity provider's signing certificate. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_3_options_upstream_params.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_3_options_upstream_params.py deleted file mode 100644 index 3a7b44b7..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_3_options_upstream_params.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedObject3OptionsUpstreamParams = typing.Dict[str, typing.Any] -""" -Additional parameters to include in authorization requests sent to the identity provider. Useful for passing custom claims, selecting specific identity sources, or configuring provider-specific behavior. See https://auth0.com/docs/authenticate/identity-providers/pass-parameters-to-idps -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_3_strategy_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_3_strategy_enum.py deleted file mode 100644 index 7cc21c5d..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_3_strategy_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedObject3StrategyEnum = typing.Union[typing.Literal["pingfederate"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_4.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_4.py deleted file mode 100644 index a8aa1259..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_4.py +++ /dev/null @@ -1,73 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_deleted_object_4_authentication import ( - EventStreamCloudEventConnectionDeletedObject4Authentication, -) -from .event_stream_cloud_event_connection_deleted_object_4_connected_accounts import ( - EventStreamCloudEventConnectionDeletedObject4ConnectedAccounts, -) -from .event_stream_cloud_event_connection_deleted_object_4_metadata import ( - EventStreamCloudEventConnectionDeletedObject4Metadata, -) -from .event_stream_cloud_event_connection_deleted_object_4_options import ( - EventStreamCloudEventConnectionDeletedObject4Options, -) -from .event_stream_cloud_event_connection_deleted_object_4_strategy_enum import ( - EventStreamCloudEventConnectionDeletedObject4StrategyEnum, -) - - -class EventStreamCloudEventConnectionDeletedObject4(UniversalBaseModel): - authentication: typing.Optional[EventStreamCloudEventConnectionDeletedObject4Authentication] = None - connected_accounts: typing.Optional[EventStreamCloudEventConnectionDeletedObject4ConnectedAccounts] = None - display_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Connection name used in the new universal login experience - """ - - enabled_clients: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. - """ - - id: str = pydantic.Field() - """ - The connection's identifier - """ - - is_domain_connection: typing.Optional[bool] = pydantic.Field(default=None) - """ - true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) - """ - - metadata: typing.Optional[EventStreamCloudEventConnectionDeletedObject4Metadata] = None - name: str = pydantic.Field() - """ - The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 - """ - - realms: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. - """ - - options: typing.Optional[EventStreamCloudEventConnectionDeletedObject4Options] = None - show_as_button: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to `false`. - """ - - strategy: EventStreamCloudEventConnectionDeletedObject4StrategyEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_4_authentication.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_4_authentication.py deleted file mode 100644 index 3ae1619a..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_4_authentication.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionDeletedObject4Authentication(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for authentication during login. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_4_connected_accounts.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_4_connected_accounts.py deleted file mode 100644 index 2d30ec8e..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_4_connected_accounts.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionDeletedObject4ConnectedAccounts(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for connected accounts and Token Vault. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_4_metadata.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_4_metadata.py deleted file mode 100644 index 91963023..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_4_metadata.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionDeletedObject4Metadata(UniversalBaseModel): - """ - Metadata associated with the connection in the form of an object with string values (max 255 chars). Maximum of 10 metadata properties allowed. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_4_options.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_4_options.py deleted file mode 100644 index 6b3a0e5b..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_4_options.py +++ /dev/null @@ -1,121 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_connection_deleted_object_4_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionDeletedObject4OptionsSetUserRootAttributesEnum, -) -from .event_stream_cloud_event_connection_deleted_object_4_options_should_trust_email_verified_connection_enum import ( - EventStreamCloudEventConnectionDeletedObject4OptionsShouldTrustEmailVerifiedConnectionEnum, -) -from .event_stream_cloud_event_connection_deleted_object_4_options_upstream_params import ( - EventStreamCloudEventConnectionDeletedObject4OptionsUpstreamParams, -) - - -class EventStreamCloudEventConnectionDeletedObject4Options(UniversalBaseModel): - """ - Options for the 'adfs' connection - """ - - adfs_server: typing.Optional[str] = pydantic.Field(default=None) - """ - ADFS federation metadata host or XML URL used to discover WS-Fed endpoints and certificates. Errors if adfs_server and fedMetadataXml are both absent. - """ - - cert_rollover_notification: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Timestamp of the last certificate expiring soon notification. - """ - - domain_aliases: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication. - """ - - entity_id: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="entityId"), - pydantic.Field( - alias="entityId", - description="The entity identifier (Issuer) for the ADFS Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'.", - ), - ] = None - """ - The entity identifier (Issuer) for the ADFS Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'. - """ - - fed_metadata_xml: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="fedMetadataXml"), - pydantic.Field( - alias="fedMetadataXml", - description="Inline XML alternative to 'adfs_server'. Cannot be set together with 'adfs_server'.", - ), - ] = None - """ - Inline XML alternative to 'adfs_server'. Cannot be set together with 'adfs_server'. - """ - - icon_url: typing.Optional[str] = pydantic.Field(default=None) - """ - URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows. - """ - - non_persistent_attrs: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) - """ - - prev_thumbprints: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Array of certificate thumbprints (SHA-128/SHA-256/SHA-512 hex hashes) for validating SAML signatures. Used with WS-Federation protocol. Maximum 20 thumbprints. Each thumbprint must be a hexadecimal string. - """ - - set_user_root_attributes: typing.Optional[ - EventStreamCloudEventConnectionDeletedObject4OptionsSetUserRootAttributesEnum - ] = None - should_trust_email_verified_connection: typing.Optional[ - EventStreamCloudEventConnectionDeletedObject4OptionsShouldTrustEmailVerifiedConnectionEnum - ] = None - sign_in_endpoint: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="signInEndpoint"), - pydantic.Field( - alias="signInEndpoint", - description="Passive Requestor (WS-Fed) sign-in endpoint discovered from metadata or provided explicitly.", - ), - ] = None - """ - Passive Requestor (WS-Fed) sign-in endpoint discovered from metadata or provided explicitly. - """ - - tenant_domain: typing.Optional[str] = pydantic.Field(default=None) - """ - Tenant domain - """ - - thumbprints: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Array of certificate thumbprints (SHA-128/SHA-256/SHA-512 hex hashes) for validating SAML signatures. Used with WS-Federation protocol. Maximum 20 thumbprints. Each thumbprint must be a hexadecimal string. - """ - - upstream_params: typing.Optional[EventStreamCloudEventConnectionDeletedObject4OptionsUpstreamParams] = None - user_id_attribute: typing.Optional[str] = pydantic.Field(default=None) - """ - Custom ADFS claim to use as the unique user identifier. When provided, this attribute is prepended to the default user_id mapping list with highest priority. Accepts a string (single ADFS claim name). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_4_options_set_user_root_attributes_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_4_options_set_user_root_attributes_enum.py deleted file mode 100644 index 7001bab0..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_4_options_set_user_root_attributes_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedObject4OptionsSetUserRootAttributesEnum = typing.Union[ - typing.Literal["on_each_login", "on_first_login", "never_on_login"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_4_options_should_trust_email_verified_connection_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_4_options_should_trust_email_verified_connection_enum.py deleted file mode 100644 index dc097f73..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_4_options_should_trust_email_verified_connection_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedObject4OptionsShouldTrustEmailVerifiedConnectionEnum = typing.Union[ - typing.Literal["never_set_emails_as_verified", "always_set_emails_as_verified"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_4_options_upstream_params.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_4_options_upstream_params.py deleted file mode 100644 index ba9e17dc..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_4_options_upstream_params.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedObject4OptionsUpstreamParams = typing.Dict[str, typing.Any] -""" -Additional parameters to include in authorization requests sent to the identity provider. Useful for passing custom claims, selecting specific identity sources, or configuring provider-specific behavior. See https://auth0.com/docs/authenticate/identity-providers/pass-parameters-to-idps -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_4_strategy_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_4_strategy_enum.py deleted file mode 100644 index 136e5447..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_4_strategy_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedObject4StrategyEnum = typing.Union[typing.Literal["adfs"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_5.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_5.py deleted file mode 100644 index 191529f3..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_5.py +++ /dev/null @@ -1,68 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_deleted_object_5_authentication import ( - EventStreamCloudEventConnectionDeletedObject5Authentication, -) -from .event_stream_cloud_event_connection_deleted_object_5_connected_accounts import ( - EventStreamCloudEventConnectionDeletedObject5ConnectedAccounts, -) -from .event_stream_cloud_event_connection_deleted_object_5_metadata import ( - EventStreamCloudEventConnectionDeletedObject5Metadata, -) -from .event_stream_cloud_event_connection_deleted_object_5_options import ( - EventStreamCloudEventConnectionDeletedObject5Options, -) -from .event_stream_cloud_event_connection_deleted_object_5_strategy_enum import ( - EventStreamCloudEventConnectionDeletedObject5StrategyEnum, -) - - -class EventStreamCloudEventConnectionDeletedObject5(UniversalBaseModel): - authentication: typing.Optional[EventStreamCloudEventConnectionDeletedObject5Authentication] = None - connected_accounts: typing.Optional[EventStreamCloudEventConnectionDeletedObject5ConnectedAccounts] = None - display_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Connection name used in the new universal login experience - """ - - enabled_clients: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. - """ - - id: str = pydantic.Field() - """ - The connection's identifier - """ - - is_domain_connection: typing.Optional[bool] = pydantic.Field(default=None) - """ - true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) - """ - - metadata: typing.Optional[EventStreamCloudEventConnectionDeletedObject5Metadata] = None - name: str = pydantic.Field() - """ - The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 - """ - - realms: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. - """ - - options: typing.Optional[EventStreamCloudEventConnectionDeletedObject5Options] = None - strategy: EventStreamCloudEventConnectionDeletedObject5StrategyEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_5_authentication.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_5_authentication.py deleted file mode 100644 index e3c0bf77..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_5_authentication.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionDeletedObject5Authentication(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for authentication during login. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_5_connected_accounts.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_5_connected_accounts.py deleted file mode 100644 index 035c0e74..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_5_connected_accounts.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionDeletedObject5ConnectedAccounts(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for connected accounts and Token Vault. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_5_metadata.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_5_metadata.py deleted file mode 100644 index 8a2f5126..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_5_metadata.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionDeletedObject5Metadata(UniversalBaseModel): - """ - Metadata associated with the connection in the form of an object with string values (max 255 chars). Maximum of 10 metadata properties allowed. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_5_options.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_5_options.py deleted file mode 100644 index 369eb889..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_5_options.py +++ /dev/null @@ -1,154 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_connection_deleted_object_5_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionDeletedObject5OptionsSetUserRootAttributesEnum, -) -from .event_stream_cloud_event_connection_deleted_object_5_options_upstream_params import ( - EventStreamCloudEventConnectionDeletedObject5OptionsUpstreamParams, -) - - -class EventStreamCloudEventConnectionDeletedObject5Options(UniversalBaseModel): - """ - Options for the 'ad' connection - """ - - agent_ip: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="agentIP"), - pydantic.Field( - alias="agentIP", - description="IP address of the AD connector agent used to validate that authentication requests originate from the corporate network for Kerberos authentication (managed by the AD Connector agent).", - ), - ] = None - """ - IP address of the AD connector agent used to validate that authentication requests originate from the corporate network for Kerberos authentication (managed by the AD Connector agent). - """ - - agent_mode: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="agentMode"), - pydantic.Field( - alias="agentMode", - description="When enabled, allows direct username/password authentication through the AD connector agent instead of WS-Federation protocol (managed by the AD Connector agent).", - ), - ] = None - """ - When enabled, allows direct username/password authentication through the AD connector agent instead of WS-Federation protocol (managed by the AD Connector agent). - """ - - agent_version: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="agentVersion"), - pydantic.Field( - alias="agentVersion", - description="Version identifier of the installed AD connector agent software (managed by the AD Connector agent).", - ), - ] = None - """ - Version identifier of the installed AD connector agent software (managed by the AD Connector agent). - """ - - brute_force_protection: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables Auth0's brute force protection to prevent credential stuffing attacks. When enabled, blocks suspicious login attempts from specific IP addresses after repeated failures. - """ - - cert_auth: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="certAuth"), - pydantic.Field( - alias="certAuth", - description="Enables client SSL certificate authentication for the AD connector, requiring HTTPS on the sign-in endpoint", - ), - ] = None - """ - Enables client SSL certificate authentication for the AD connector, requiring HTTPS on the sign-in endpoint - """ - - certs: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Array of X.509 certificates in PEM format used for validating SAML signatures from the AD identity provider (managed by the AD Connector agent). - """ - - disable_cache: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, disables caching of AD connector authentication results to ensure real-time validation against the directory - """ - - disable_self_service_change_password: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, hides the 'Forgot Password' link on login pages to prevent users from initiating self-service password resets - """ - - domain_aliases: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - List of domain names that can be used with identifier-first authentication flow to route users to this AD connection; each domain must be a valid DNS name up to 256 characters - """ - - icon_url: typing.Optional[str] = pydantic.Field(default=None) - """ - https url of the icon to be shown - """ - - ips: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Array of IP address ranges in CIDR notation used to determine if authentication requests originate from the corporate network for Kerberos or certificate authentication. - """ - - kerberos: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables Windows Integrated Authentication (Kerberos) for seamless SSO when users authenticate from within the corporate network IP ranges - """ - - kerberos_only: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true, restricts the connection to Kerberos-only authentication, disallowing username/password fallback. - """ - - non_persistent_attrs: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) - """ - - set_user_root_attributes: typing.Optional[ - EventStreamCloudEventConnectionDeletedObject5OptionsSetUserRootAttributesEnum - ] = None - sign_in_endpoint: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="signInEndpoint"), - pydantic.Field( - alias="signInEndpoint", - description="The sign-in endpoint type for the AD-LDAP connector agent (managed by the AD Connector agent).", - ), - ] = None - """ - The sign-in endpoint type for the AD-LDAP connector agent (managed by the AD Connector agent). - """ - - tenant_domain: typing.Optional[str] = pydantic.Field(default=None) - """ - Primary AD domain hint used for HRD and discovery. - """ - - thumbprints: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Array of certificate SHA-1 thumbprints for validating signatures. Managed by Auth0 when using the AD Connector agent. - """ - - upstream_params: typing.Optional[EventStreamCloudEventConnectionDeletedObject5OptionsUpstreamParams] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_5_options_set_user_root_attributes_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_5_options_set_user_root_attributes_enum.py deleted file mode 100644 index 1e0dad53..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_5_options_set_user_root_attributes_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedObject5OptionsSetUserRootAttributesEnum = typing.Union[ - typing.Literal["on_each_login", "on_first_login", "never_on_login"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_5_options_upstream_params.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_5_options_upstream_params.py deleted file mode 100644 index dffee75a..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_5_options_upstream_params.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedObject5OptionsUpstreamParams = typing.Dict[str, typing.Any] -""" -Additional parameters to include in authorization requests sent to the identity provider. Useful for passing custom claims, selecting specific identity sources, or configuring provider-specific behavior. See https://auth0.com/docs/authenticate/identity-providers/pass-parameters-to-idps -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_5_strategy_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_5_strategy_enum.py deleted file mode 100644 index 5e3e8a96..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_5_strategy_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedObject5StrategyEnum = typing.Union[typing.Literal["ad"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_6.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_6.py deleted file mode 100644 index 00ea456d..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_6.py +++ /dev/null @@ -1,73 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_deleted_object_6_authentication import ( - EventStreamCloudEventConnectionDeletedObject6Authentication, -) -from .event_stream_cloud_event_connection_deleted_object_6_connected_accounts import ( - EventStreamCloudEventConnectionDeletedObject6ConnectedAccounts, -) -from .event_stream_cloud_event_connection_deleted_object_6_metadata import ( - EventStreamCloudEventConnectionDeletedObject6Metadata, -) -from .event_stream_cloud_event_connection_deleted_object_6_options import ( - EventStreamCloudEventConnectionDeletedObject6Options, -) -from .event_stream_cloud_event_connection_deleted_object_6_strategy_enum import ( - EventStreamCloudEventConnectionDeletedObject6StrategyEnum, -) - - -class EventStreamCloudEventConnectionDeletedObject6(UniversalBaseModel): - authentication: typing.Optional[EventStreamCloudEventConnectionDeletedObject6Authentication] = None - connected_accounts: typing.Optional[EventStreamCloudEventConnectionDeletedObject6ConnectedAccounts] = None - display_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Connection name used in the new universal login experience - """ - - enabled_clients: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. - """ - - id: str = pydantic.Field() - """ - The connection's identifier - """ - - is_domain_connection: typing.Optional[bool] = pydantic.Field(default=None) - """ - true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) - """ - - metadata: typing.Optional[EventStreamCloudEventConnectionDeletedObject6Metadata] = None - name: str = pydantic.Field() - """ - The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 - """ - - realms: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. - """ - - options: typing.Optional[EventStreamCloudEventConnectionDeletedObject6Options] = None - show_as_button: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to `false`. - """ - - strategy: EventStreamCloudEventConnectionDeletedObject6StrategyEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_6_authentication.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_6_authentication.py deleted file mode 100644 index ea910736..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_6_authentication.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionDeletedObject6Authentication(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for authentication during login. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_6_connected_accounts.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_6_connected_accounts.py deleted file mode 100644 index a7df1ae3..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_6_connected_accounts.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionDeletedObject6ConnectedAccounts(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for connected accounts and Token Vault. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_6_metadata.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_6_metadata.py deleted file mode 100644 index 3a5e652e..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_6_metadata.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionDeletedObject6Metadata(UniversalBaseModel): - """ - Metadata associated with the connection in the form of an object with string values (max 255 chars). Maximum of 10 metadata properties allowed. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_6_options.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_6_options.py deleted file mode 100644 index f1ff6479..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_6_options.py +++ /dev/null @@ -1,139 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_deleted_object_6_options_federated_connections_access_tokens import ( - EventStreamCloudEventConnectionDeletedObject6OptionsFederatedConnectionsAccessTokens, -) -from .event_stream_cloud_event_connection_deleted_object_6_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionDeletedObject6OptionsSetUserRootAttributesEnum, -) -from .event_stream_cloud_event_connection_deleted_object_6_options_upstream_params import ( - EventStreamCloudEventConnectionDeletedObject6OptionsUpstreamParams, -) - - -class EventStreamCloudEventConnectionDeletedObject6Options(UniversalBaseModel): - """ - Options for the 'google-apps' connection - """ - - admin_access_token_expiresin: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Expiration timestamp for the `admin_access_token` in ISO 8601 format. Auth0 uses this value to determine when to refresh the token. - """ - - allow_setting_login_scopes: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true, allows customization of OAuth scopes requested during user login. Custom scopes are appended to the mandatory email and profile scopes. When false or omitted, only the default email and profile scopes are used. This property is automatically enabled when Token Vault or Connected Accounts features are activated. - """ - - api_enable_groups: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables integration with the Google Workspace Admin SDK Directory API for groups. When true, Auth0 can synchronize groups & group memberships and supports inbound directory provisioning for groups. Defaults to false. - """ - - api_enable_users: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables integration with the Google Workspace Admin SDK Directory API. When true, Auth0 can retrieve extended user attributes (admin status, suspension status, group memberships) and supports inbound directory provisioning (SCIM). Defaults to true. - """ - - client_id: str = pydantic.Field() - """ - Your Google OAuth 2.0 client ID. You can find this in your [Google Cloud Console](https://console.cloud.google.com/apis/credentials) under the OAuth 2.0 Client IDs section. - """ - - domain: typing.Optional[str] = pydantic.Field(default=None) - """ - Primary Google Workspace domain name that users must belong to. - """ - - domain_aliases: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication. - """ - - email: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether the OAuth flow requests the `email` scope. - """ - - ext_agreed_terms: typing.Optional[bool] = pydantic.Field(default=None) - """ - Fetches the `agreedToTerms` flag from the Google Directory profile. - """ - - ext_groups: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables enrichment with Google group memberships (required for `ext_groups_extended`). - """ - - ext_groups_extended: typing.Optional[bool] = pydantic.Field(default=None) - """ - Controls whether enriched group entries include `id`, `email`, `name` (true) or only the group name (false); can only be set when `ext_groups` is true. - """ - - ext_is_admin: typing.Optional[bool] = pydantic.Field(default=None) - """ - Fetches the Google Directory admin flag for the signing-in user. - """ - - ext_is_suspended: typing.Optional[bool] = pydantic.Field(default=None) - """ - Fetches the Google Directory suspended flag for the signing-in user. - """ - - federated_connections_access_tokens: typing.Optional[ - EventStreamCloudEventConnectionDeletedObject6OptionsFederatedConnectionsAccessTokens - ] = None - handle_login_from_social: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, users who sign in with their Google account through a social login will be automatically routed to this Google Workspace connection if their email domain matches the configured tenant_domain or domain_aliases. This ensures enterprise users authenticate through their organization's Google Workspace identity provider rather than through a generic Google social login, enabling access to directory-based attributes and enforcing organizational security policies. Defaults to true for new connections. - """ - - icon_url: typing.Optional[str] = pydantic.Field(default=None) - """ - URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows. - """ - - map_user_id_to_id: typing.Optional[bool] = pydantic.Field(default=None) - """ - Determines how Auth0 generates the user_id for Google Workspace users. When false (default), the user's email address is used. When true, Google's stable numeric user ID is used instead, which persists even if the user's email changes. This setting can only be configured when creating the connection and cannot be changed afterward. - """ - - non_persistent_attrs: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) - """ - - profile: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether the OAuth flow requests the `profile` scope. - """ - - scope: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Additional OAuth scopes requested beyond the default `email profile` scopes; ignored unless `allow_setting_login_scopes` is true. - """ - - set_user_root_attributes: typing.Optional[ - EventStreamCloudEventConnectionDeletedObject6OptionsSetUserRootAttributesEnum - ] = None - tenant_domain: typing.Optional[str] = pydantic.Field(default=None) - """ - The Google Workspace primary domain used to identify the organization during authentication. - """ - - upstream_params: typing.Optional[EventStreamCloudEventConnectionDeletedObject6OptionsUpstreamParams] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_6_options_federated_connections_access_tokens.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_6_options_federated_connections_access_tokens.py deleted file mode 100644 index fd66d489..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_6_options_federated_connections_access_tokens.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionDeletedObject6OptionsFederatedConnectionsAccessTokens(UniversalBaseModel): - """ - Configuration for storing identity provider tokens in Auth0's Token Vault. When active, Auth0 securely stores access and refresh tokens from federated logins, enabling your application to make authenticated API calls on behalf of users. - """ - - active: bool = pydantic.Field() - """ - Enables refresh tokens and access tokens collection for federated connections - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_6_options_set_user_root_attributes_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_6_options_set_user_root_attributes_enum.py deleted file mode 100644 index 17be67ba..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_6_options_set_user_root_attributes_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedObject6OptionsSetUserRootAttributesEnum = typing.Union[ - typing.Literal["on_each_login", "on_first_login", "never_on_login"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_6_options_upstream_params.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_6_options_upstream_params.py deleted file mode 100644 index 799fd03c..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_6_options_upstream_params.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedObject6OptionsUpstreamParams = typing.Dict[str, typing.Any] -""" -Additional parameters to include in authorization requests sent to the identity provider. Useful for passing custom claims, selecting specific identity sources, or configuring provider-specific behavior. See https://auth0.com/docs/authenticate/identity-providers/pass-parameters-to-idps -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_6_strategy_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_6_strategy_enum.py deleted file mode 100644 index b8509a34..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_6_strategy_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedObject6StrategyEnum = typing.Union[typing.Literal["google-apps"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_7.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_7.py deleted file mode 100644 index 01d18813..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_7.py +++ /dev/null @@ -1,73 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_deleted_object_7_authentication import ( - EventStreamCloudEventConnectionDeletedObject7Authentication, -) -from .event_stream_cloud_event_connection_deleted_object_7_connected_accounts import ( - EventStreamCloudEventConnectionDeletedObject7ConnectedAccounts, -) -from .event_stream_cloud_event_connection_deleted_object_7_metadata import ( - EventStreamCloudEventConnectionDeletedObject7Metadata, -) -from .event_stream_cloud_event_connection_deleted_object_7_options import ( - EventStreamCloudEventConnectionDeletedObject7Options, -) -from .event_stream_cloud_event_connection_deleted_object_7_strategy_enum import ( - EventStreamCloudEventConnectionDeletedObject7StrategyEnum, -) - - -class EventStreamCloudEventConnectionDeletedObject7(UniversalBaseModel): - authentication: typing.Optional[EventStreamCloudEventConnectionDeletedObject7Authentication] = None - connected_accounts: typing.Optional[EventStreamCloudEventConnectionDeletedObject7ConnectedAccounts] = None - display_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Connection name used in the new universal login experience - """ - - enabled_clients: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. - """ - - id: str = pydantic.Field() - """ - The connection's identifier - """ - - is_domain_connection: typing.Optional[bool] = pydantic.Field(default=None) - """ - true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) - """ - - metadata: typing.Optional[EventStreamCloudEventConnectionDeletedObject7Metadata] = None - name: str = pydantic.Field() - """ - The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 - """ - - realms: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. - """ - - options: typing.Optional[EventStreamCloudEventConnectionDeletedObject7Options] = None - show_as_button: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to `false`. - """ - - strategy: EventStreamCloudEventConnectionDeletedObject7StrategyEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_7_authentication.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_7_authentication.py deleted file mode 100644 index caaa1ef4..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_7_authentication.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionDeletedObject7Authentication(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for authentication during login. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_7_connected_accounts.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_7_connected_accounts.py deleted file mode 100644 index 2158c2e9..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_7_connected_accounts.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionDeletedObject7ConnectedAccounts(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for connected accounts and Token Vault. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_7_metadata.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_7_metadata.py deleted file mode 100644 index dde0f202..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_7_metadata.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionDeletedObject7Metadata(UniversalBaseModel): - """ - Metadata associated with the connection in the form of an object with string values (max 255 chars). Maximum of 10 metadata properties allowed. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_7_options.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_7_options.py deleted file mode 100644 index 867acd87..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_7_options.py +++ /dev/null @@ -1,177 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_connection_deleted_object_7_options_federated_connections_access_tokens import ( - EventStreamCloudEventConnectionDeletedObject7OptionsFederatedConnectionsAccessTokens, -) -from .event_stream_cloud_event_connection_deleted_object_7_options_identity_api_enum import ( - EventStreamCloudEventConnectionDeletedObject7OptionsIdentityApiEnum, -) -from .event_stream_cloud_event_connection_deleted_object_7_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionDeletedObject7OptionsSetUserRootAttributesEnum, -) -from .event_stream_cloud_event_connection_deleted_object_7_options_should_trust_email_verified_connection_enum import ( - EventStreamCloudEventConnectionDeletedObject7OptionsShouldTrustEmailVerifiedConnectionEnum, -) -from .event_stream_cloud_event_connection_deleted_object_7_options_tenant_domain_one import ( - EventStreamCloudEventConnectionDeletedObject7OptionsTenantDomainOne, -) -from .event_stream_cloud_event_connection_deleted_object_7_options_upstream_params import ( - EventStreamCloudEventConnectionDeletedObject7OptionsUpstreamParams, -) -from .event_stream_cloud_event_connection_deleted_object_7_options_userid_attribute_enum import ( - EventStreamCloudEventConnectionDeletedObject7OptionsUseridAttributeEnum, -) -from .event_stream_cloud_event_connection_deleted_object_7_options_waad_protocol_enum import ( - EventStreamCloudEventConnectionDeletedObject7OptionsWaadProtocolEnum, -) - - -class EventStreamCloudEventConnectionDeletedObject7Options(UniversalBaseModel): - """ - Options for the 'waad' connection - """ - - api_enable_users: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enable users API - """ - - app_domain: typing.Optional[str] = pydantic.Field(default=None) - """ - The Azure AD application domain (e.g., 'contoso.onmicrosoft.com'). Used primarily with WS-Federation protocol and Azure AD v1 endpoints. - """ - - app_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The Application ID URI (App ID URI) for the Azure AD application. Required when using Azure AD v1 with the Resource Owner Password flow. Used to identify the resource being requested in OAuth token requests. - """ - - basic_profile: typing.Optional[bool] = pydantic.Field(default=None) - """ - Includes basic user profile information from Azure AD (name, email, given_name, family_name). Always enabled and required - represents the minimum profile data retrieved during authentication. - """ - - cert_rollover_notification: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Timestamp of the last certificate expiring soon notification. - """ - - client_id: str = pydantic.Field() - """ - OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider. - """ - - domain: typing.Optional[str] = pydantic.Field(default=None) - """ - The primary Azure AD tenant domain (e.g., 'contoso.onmicrosoft.com' or 'contoso.com'). - """ - - domain_aliases: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Alternative domain names associated with this Azure AD tenant. Allows users from multiple verified domains to authenticate through this connection. Can be an array of domain strings. - """ - - ext_groups: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled (true), retrieves and stores Azure AD security group memberships for the user. Requires Microsoft Graph API permissions (Directory.Read.All). Allows configuring max_groups_to_retrieve. - """ - - ext_nested_groups: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true, stores all groups the user is member of, including transitive group memberships (groups within groups). When false (default), only direct group memberships are included. - """ - - ext_profile: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled (true), retrieves extended profile attributes from Azure AD via Microsoft Graph API (job title, department, office location, etc.). Requires Graph API permissions. Only available with Azure AD v1 or when explicitly enabled for v2. - """ - - federated_connections_access_tokens: typing.Optional[ - EventStreamCloudEventConnectionDeletedObject7OptionsFederatedConnectionsAccessTokens - ] = None - granted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether admin consent has been granted for the required Azure AD permissions. Read-only status field managed by Auth0 during the OAuth authorization flow. - """ - - icon_url: typing.Optional[str] = pydantic.Field(default=None) - """ - URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows. - """ - - identity_api: typing.Optional[EventStreamCloudEventConnectionDeletedObject7OptionsIdentityApiEnum] = None - max_groups_to_retrieve: typing.Optional[str] = pydantic.Field(default=None) - """ - Maximum number of Azure AD groups to retrieve per user during authentication. Helps prevent performance issues for users in many groups. Only applies when ext_groups is enabled. Leave empty to use platform default. - """ - - non_persistent_attrs: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) - """ - - scope: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - OAuth 2.0 scopes to request from Azure AD during authentication. Each scope represents a permission (e.g., 'User.Read', 'Group.Read.All'). Only applies with Microsoft Identity Platform v2.0. See Microsoft Graph permissions reference for available scopes. - """ - - set_user_root_attributes: typing.Optional[ - EventStreamCloudEventConnectionDeletedObject7OptionsSetUserRootAttributesEnum - ] = None - should_trust_email_verified_connection: typing.Optional[ - EventStreamCloudEventConnectionDeletedObject7OptionsShouldTrustEmailVerifiedConnectionEnum - ] = None - tenant_domain: typing.Optional[EventStreamCloudEventConnectionDeletedObject7OptionsTenantDomainOne] = None - tenant_id: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="tenantId"), - pydantic.Field( - alias="tenantId", - description="The Azure AD tenant ID as a UUID. The unique identifier for your Azure AD organization. Must be a valid 36-character UUID.", - ), - ] = None - """ - The Azure AD tenant ID as a UUID. The unique identifier for your Azure AD organization. Must be a valid 36-character UUID. - """ - - thumbprints: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Array of certificate thumbprints (SHA-128/SHA-256/SHA-512 hex hashes) for validating SAML signatures. Used with WS-Federation protocol. Maximum 20 thumbprints. Each thumbprint must be a hexadecimal string. - """ - - upstream_params: typing.Optional[EventStreamCloudEventConnectionDeletedObject7OptionsUpstreamParams] = None - use_wsfed: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates WS-Federation protocol usage. When true, uses WS-Federation; when false, uses OpenID Connect. - """ - - use_common_endpoint: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="useCommonEndpoint"), - pydantic.Field( - alias="useCommonEndpoint", - description="When enabled (true), uses the Azure AD common endpoint for multi-tenant authentication. Allows users from any Azure AD organization to sign in. Requires userid_attribute set to 'sub' (not 'oid'). Cannot be used with SCIM provisioning. Defaults to false.", - ), - ] = None - """ - When enabled (true), uses the Azure AD common endpoint for multi-tenant authentication. Allows users from any Azure AD organization to sign in. Requires userid_attribute set to 'sub' (not 'oid'). Cannot be used with SCIM provisioning. Defaults to false. - """ - - userid_attribute: typing.Optional[EventStreamCloudEventConnectionDeletedObject7OptionsUseridAttributeEnum] = None - waad_protocol: typing.Optional[EventStreamCloudEventConnectionDeletedObject7OptionsWaadProtocolEnum] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_7_options_federated_connections_access_tokens.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_7_options_federated_connections_access_tokens.py deleted file mode 100644 index 5b88046c..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_7_options_federated_connections_access_tokens.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionDeletedObject7OptionsFederatedConnectionsAccessTokens(UniversalBaseModel): - """ - Configuration for storing identity provider tokens in Auth0's Token Vault. When active, Auth0 securely stores access and refresh tokens from federated logins, enabling your application to make authenticated API calls on behalf of users. - """ - - active: bool = pydantic.Field() - """ - Enables refresh tokens and access tokens collection for federated connections - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_7_options_identity_api_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_7_options_identity_api_enum.py deleted file mode 100644 index 1d82a3ce..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_7_options_identity_api_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedObject7OptionsIdentityApiEnum = typing.Union[ - typing.Literal["microsoft-identity-platform-v2.0", "azure-active-directory-v1.0"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_7_options_set_user_root_attributes_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_7_options_set_user_root_attributes_enum.py deleted file mode 100644 index 66e6da97..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_7_options_set_user_root_attributes_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedObject7OptionsSetUserRootAttributesEnum = typing.Union[ - typing.Literal["on_each_login", "on_first_login", "never_on_login"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_7_options_should_trust_email_verified_connection_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_7_options_should_trust_email_verified_connection_enum.py deleted file mode 100644 index c8df13bc..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_7_options_should_trust_email_verified_connection_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedObject7OptionsShouldTrustEmailVerifiedConnectionEnum = typing.Union[ - typing.Literal["never_set_emails_as_verified", "always_set_emails_as_verified"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_7_options_tenant_domain_one.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_7_options_tenant_domain_one.py deleted file mode 100644 index a364cad2..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_7_options_tenant_domain_one.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -EventStreamCloudEventConnectionDeletedObject7OptionsTenantDomainOne = str -""" -Azure AD tenant domain as a UUID tenant ID. -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_7_options_upstream_params.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_7_options_upstream_params.py deleted file mode 100644 index efa21dd1..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_7_options_upstream_params.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedObject7OptionsUpstreamParams = typing.Dict[str, typing.Any] -""" -Additional parameters to include in authorization requests sent to the identity provider. Useful for passing custom claims, selecting specific identity sources, or configuring provider-specific behavior. See https://auth0.com/docs/authenticate/identity-providers/pass-parameters-to-idps -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_7_options_userid_attribute_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_7_options_userid_attribute_enum.py deleted file mode 100644 index 4fa15dce..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_7_options_userid_attribute_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedObject7OptionsUseridAttributeEnum = typing.Union[ - typing.Literal["oid", "sub"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_7_options_waad_protocol_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_7_options_waad_protocol_enum.py deleted file mode 100644 index 1cdb7b5a..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_7_options_waad_protocol_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedObject7OptionsWaadProtocolEnum = typing.Union[ - typing.Literal["ws-federation", "openid-connect"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_7_strategy_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_7_strategy_enum.py deleted file mode 100644 index 906b32fa..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_object_7_strategy_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedObject7StrategyEnum = typing.Union[typing.Literal["waad"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object.py deleted file mode 100644 index 27f91bf2..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object.py +++ /dev/null @@ -1,39 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .event_stream_cloud_event_connection_deleted_previous_object_0 import ( - EventStreamCloudEventConnectionDeletedPreviousObject0, -) -from .event_stream_cloud_event_connection_deleted_previous_object_1 import ( - EventStreamCloudEventConnectionDeletedPreviousObject1, -) -from .event_stream_cloud_event_connection_deleted_previous_object_2 import ( - EventStreamCloudEventConnectionDeletedPreviousObject2, -) -from .event_stream_cloud_event_connection_deleted_previous_object_3 import ( - EventStreamCloudEventConnectionDeletedPreviousObject3, -) -from .event_stream_cloud_event_connection_deleted_previous_object_4 import ( - EventStreamCloudEventConnectionDeletedPreviousObject4, -) -from .event_stream_cloud_event_connection_deleted_previous_object_5 import ( - EventStreamCloudEventConnectionDeletedPreviousObject5, -) -from .event_stream_cloud_event_connection_deleted_previous_object_6 import ( - EventStreamCloudEventConnectionDeletedPreviousObject6, -) -from .event_stream_cloud_event_connection_deleted_previous_object_7 import ( - EventStreamCloudEventConnectionDeletedPreviousObject7, -) - -EventStreamCloudEventConnectionDeletedPreviousObject = typing.Union[ - EventStreamCloudEventConnectionDeletedPreviousObject0, - EventStreamCloudEventConnectionDeletedPreviousObject1, - EventStreamCloudEventConnectionDeletedPreviousObject2, - EventStreamCloudEventConnectionDeletedPreviousObject3, - EventStreamCloudEventConnectionDeletedPreviousObject4, - EventStreamCloudEventConnectionDeletedPreviousObject5, - EventStreamCloudEventConnectionDeletedPreviousObject6, - EventStreamCloudEventConnectionDeletedPreviousObject7, -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0.py deleted file mode 100644 index 2b91943e..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0.py +++ /dev/null @@ -1,73 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_deleted_previous_object_0_authentication import ( - EventStreamCloudEventConnectionDeletedPreviousObject0Authentication, -) -from .event_stream_cloud_event_connection_deleted_previous_object_0_connected_accounts import ( - EventStreamCloudEventConnectionDeletedPreviousObject0ConnectedAccounts, -) -from .event_stream_cloud_event_connection_deleted_previous_object_0_metadata import ( - EventStreamCloudEventConnectionDeletedPreviousObject0Metadata, -) -from .event_stream_cloud_event_connection_deleted_previous_object_0_options import ( - EventStreamCloudEventConnectionDeletedPreviousObject0Options, -) -from .event_stream_cloud_event_connection_deleted_previous_object_0_strategy_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject0StrategyEnum, -) - - -class EventStreamCloudEventConnectionDeletedPreviousObject0(UniversalBaseModel): - authentication: typing.Optional[EventStreamCloudEventConnectionDeletedPreviousObject0Authentication] = None - display_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Connection name used in the new universal login experience - """ - - enabled_clients: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. - """ - - id: str = pydantic.Field() - """ - The connection's identifier - """ - - is_domain_connection: typing.Optional[bool] = pydantic.Field(default=None) - """ - true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) - """ - - metadata: typing.Optional[EventStreamCloudEventConnectionDeletedPreviousObject0Metadata] = None - name: str = pydantic.Field() - """ - The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 - """ - - realms: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. - """ - - connected_accounts: typing.Optional[EventStreamCloudEventConnectionDeletedPreviousObject0ConnectedAccounts] = None - options: typing.Optional[EventStreamCloudEventConnectionDeletedPreviousObject0Options] = None - show_as_button: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to `false`. - """ - - strategy: EventStreamCloudEventConnectionDeletedPreviousObject0StrategyEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_authentication.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_authentication.py deleted file mode 100644 index ee009e36..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_authentication.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionDeletedPreviousObject0Authentication(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for authentication during login. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_connected_accounts.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_connected_accounts.py deleted file mode 100644 index 53390080..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_connected_accounts.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionDeletedPreviousObject0ConnectedAccounts(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for connected accounts and Token Vault. - """ - - active: bool - cross_app_access: typing.Optional[bool] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_metadata.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_metadata.py deleted file mode 100644 index 16ace8ba..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_metadata.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionDeletedPreviousObject0Metadata(UniversalBaseModel): - """ - Metadata associated with the connection in the form of an object with string values (max 255 chars). Maximum of 10 metadata properties allowed. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_options.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_options.py deleted file mode 100644 index 324a3bd9..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_options.py +++ /dev/null @@ -1,180 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_connection_deleted_previous_object_0_options_attribute_map import ( - EventStreamCloudEventConnectionDeletedPreviousObject0OptionsAttributeMap, -) -from .event_stream_cloud_event_connection_deleted_previous_object_0_options_connection_settings import ( - EventStreamCloudEventConnectionDeletedPreviousObject0OptionsConnectionSettings, -) -from .event_stream_cloud_event_connection_deleted_previous_object_0_options_dpop_signing_alg_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject0OptionsDpopSigningAlgEnum, -) -from .event_stream_cloud_event_connection_deleted_previous_object_0_options_federated_connections_access_tokens import ( - EventStreamCloudEventConnectionDeletedPreviousObject0OptionsFederatedConnectionsAccessTokens, -) -from .event_stream_cloud_event_connection_deleted_previous_object_0_options_id_token_signed_response_algs_item_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum, -) -from .event_stream_cloud_event_connection_deleted_previous_object_0_options_oidc_metadata import ( - EventStreamCloudEventConnectionDeletedPreviousObject0OptionsOidcMetadata, -) -from .event_stream_cloud_event_connection_deleted_previous_object_0_options_schema_version_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject0OptionsSchemaVersionEnum, -) -from .event_stream_cloud_event_connection_deleted_previous_object_0_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject0OptionsSetUserRootAttributesEnum, -) -from .event_stream_cloud_event_connection_deleted_previous_object_0_options_token_endpoint_auth_method_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTokenEndpointAuthMethodEnum, -) -from .event_stream_cloud_event_connection_deleted_previous_object_0_options_token_endpoint_auth_signing_alg_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum, -) -from .event_stream_cloud_event_connection_deleted_previous_object_0_options_token_endpoint_jwtca_aud_format_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTokenEndpointJwtcaAudFormatEnum, -) -from .event_stream_cloud_event_connection_deleted_previous_object_0_options_type_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTypeEnum, -) -from .event_stream_cloud_event_connection_deleted_previous_object_0_options_upstream_params import ( - EventStreamCloudEventConnectionDeletedPreviousObject0OptionsUpstreamParams, -) - - -class EventStreamCloudEventConnectionDeletedPreviousObject0Options(UniversalBaseModel): - """ - Options for the 'oidc' connection - """ - - authorization_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow. - """ - - client_id: str = pydantic.Field() - """ - OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider. - """ - - connection_settings: typing.Optional[ - EventStreamCloudEventConnectionDeletedPreviousObject0OptionsConnectionSettings - ] = None - domain_aliases: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication. - """ - - dpop_signing_alg: typing.Optional[ - EventStreamCloudEventConnectionDeletedPreviousObject0OptionsDpopSigningAlgEnum - ] = None - federated_connections_access_tokens: typing.Optional[ - EventStreamCloudEventConnectionDeletedPreviousObject0OptionsFederatedConnectionsAccessTokens - ] = None - icon_url: typing.Optional[str] = pydantic.Field(default=None) - """ - https url of the icon to be shown - """ - - id_token_session_expiry_supported: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether the identity provider supports session expiry via the id_token. If true, the system will use the session_expiry claim in the id_token to determine session expiry. - """ - - id_token_signed_response_algs: typing.Optional[ - typing.List[EventStreamCloudEventConnectionDeletedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum] - ] = pydantic.Field(default=None) - """ - List of algorithms allowed to verify the ID tokens. Applicable when strategy=oidc or okta. - """ - - issuer: typing.Optional[str] = pydantic.Field(default=None) - """ - The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider. - """ - - jwks_uri: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures. - """ - - non_persistent_attrs: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) - """ - - oidc_metadata: typing.Optional[EventStreamCloudEventConnectionDeletedPreviousObject0OptionsOidcMetadata] = None - schema_version: typing.Optional[EventStreamCloudEventConnectionDeletedPreviousObject0OptionsSchemaVersionEnum] = ( - None - ) - scope: typing.Optional[str] = pydantic.Field(default=None) - """ - Space-separated list of OAuth 2.0 scopes requested during authorization. Must include 'openid' (required by OIDC spec). Common values: 'openid profile email'. Additional scopes depend on the identity provider. - """ - - send_back_channel_nonce: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true and type is 'back_channel', includes a cryptographic nonce in authorization requests to prevent replay attacks. The identity provider must include this nonce in the ID token for validation. - """ - - set_user_root_attributes: typing.Optional[ - EventStreamCloudEventConnectionDeletedPreviousObject0OptionsSetUserRootAttributesEnum - ] = None - tenant_domain: typing.Optional[str] = pydantic.Field(default=None) - """ - Tenant domain - """ - - token_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow. - """ - - token_endpoint_auth_method: typing.Optional[ - EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTokenEndpointAuthMethodEnum - ] = None - token_endpoint_auth_signing_alg: typing.Optional[ - EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum - ] = None - token_endpoint_jwtca_aud_format: typing.Optional[ - EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTokenEndpointJwtcaAudFormatEnum - ] = None - upstream_params: typing.Optional[EventStreamCloudEventConnectionDeletedPreviousObject0OptionsUpstreamParams] = None - use_oauth_spec_scope: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="useOauthSpecScope"), - pydantic.Field( - alias="useOauthSpecScope", - description="When true, uses space-delimited scopes (per OAuth 2.0 spec) instead of comma-delimited when calling the identity provider's authorization endpoint. Only relevant when using the connection_scope parameter. See https://auth0.com/docs/authenticate/identity-providers/adding-scopes-for-an-external-idp#pass-scopes-to-authorize-endpoint", - ), - ] = None - """ - When true, uses space-delimited scopes (per OAuth 2.0 spec) instead of comma-delimited when calling the identity provider's authorization endpoint. Only relevant when using the connection_scope parameter. See https://auth0.com/docs/authenticate/identity-providers/adding-scopes-for-an-external-idp#pass-scopes-to-authorize-endpoint - """ - - userinfo_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token. - """ - - attribute_map: typing.Optional[EventStreamCloudEventConnectionDeletedPreviousObject0OptionsAttributeMap] = None - discovery_url: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's OIDC Discovery endpoint (/.well-known/openid-configuration). When provided and oidc_metadata is empty, Auth0 automatically retrieves the provider's configuration including endpoints and supported features. - """ - - type: typing.Optional[EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTypeEnum] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_options_attribute_map.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_options_attribute_map.py deleted file mode 100644 index 05b62fc4..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_options_attribute_map.py +++ /dev/null @@ -1,39 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_deleted_previous_object_0_options_attribute_map_attributes import ( - EventStreamCloudEventConnectionDeletedPreviousObject0OptionsAttributeMapAttributes, -) -from .event_stream_cloud_event_connection_deleted_previous_object_0_options_attribute_map_mapping_mode_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject0OptionsAttributeMapMappingModeEnum, -) - - -class EventStreamCloudEventConnectionDeletedPreviousObject0OptionsAttributeMap(UniversalBaseModel): - """ - Configuration for mapping claims from the identity provider to Auth0 user profile attributes. Allows customizing which IdP claims populate user fields and how they are transformed. - """ - - attributes: typing.Optional[EventStreamCloudEventConnectionDeletedPreviousObject0OptionsAttributeMapAttributes] = ( - None - ) - userinfo_scope: typing.Optional[str] = pydantic.Field(default=None) - """ - Scopes to send to the IdP's Userinfo endpoint - """ - - mapping_mode: typing.Optional[ - EventStreamCloudEventConnectionDeletedPreviousObject0OptionsAttributeMapMappingModeEnum - ] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_options_attribute_map_attributes.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_options_attribute_map_attributes.py deleted file mode 100644 index 6cff28b0..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_options_attribute_map_attributes.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedPreviousObject0OptionsAttributeMapAttributes = typing.Dict[str, typing.Any] -""" -Object containing mapping details for incoming claims -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_options_attribute_map_mapping_mode_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_options_attribute_map_mapping_mode_enum.py deleted file mode 100644 index 31573d2b..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_options_attribute_map_mapping_mode_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedPreviousObject0OptionsAttributeMapMappingModeEnum = typing.Union[ - typing.Literal["bind_all", "use_map"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_options_connection_settings.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_options_connection_settings.py deleted file mode 100644 index db7ae75d..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_options_connection_settings.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_deleted_previous_object_0_options_connection_settings_pkce_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject0OptionsConnectionSettingsPkceEnum, -) - - -class EventStreamCloudEventConnectionDeletedPreviousObject0OptionsConnectionSettings(UniversalBaseModel): - """ - OAuth 2.0 PKCE (Proof Key for Code Exchange) settings. PKCE enhances security for public clients by preventing authorization code interception attacks. 'auto' (recommended) uses the strongest method supported by the IdP. - """ - - pkce: typing.Optional[EventStreamCloudEventConnectionDeletedPreviousObject0OptionsConnectionSettingsPkceEnum] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_options_connection_settings_pkce_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_options_connection_settings_pkce_enum.py deleted file mode 100644 index ea28fe4c..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_options_connection_settings_pkce_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedPreviousObject0OptionsConnectionSettingsPkceEnum = typing.Union[ - typing.Literal["auto", "S256", "plain", "disabled"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_options_dpop_signing_alg_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_options_dpop_signing_alg_enum.py deleted file mode 100644 index 8829bb88..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_options_dpop_signing_alg_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedPreviousObject0OptionsDpopSigningAlgEnum = typing.Union[ - typing.Literal["ES256", "ES384", "ES512", "Ed25519"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_options_federated_connections_access_tokens.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_options_federated_connections_access_tokens.py deleted file mode 100644 index 0e93351e..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_options_federated_connections_access_tokens.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionDeletedPreviousObject0OptionsFederatedConnectionsAccessTokens(UniversalBaseModel): - """ - Configuration for storing identity provider tokens in Auth0's Token Vault. When active, Auth0 securely stores access and refresh tokens from federated logins, enabling your application to make authenticated API calls on behalf of users. - """ - - active: bool = pydantic.Field() - """ - Enables refresh tokens and access tokens collection for federated connections - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_options_id_token_signed_response_algs_item_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_options_id_token_signed_response_algs_item_enum.py deleted file mode 100644 index fbe0a3bd..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_options_id_token_signed_response_algs_item_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum = typing.Union[ - typing.Literal["ES256", "ES384", "PS256", "PS384", "RS256", "RS384", "RS512"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_options_oidc_metadata.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_options_oidc_metadata.py deleted file mode 100644 index 52963198..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_options_oidc_metadata.py +++ /dev/null @@ -1,211 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionDeletedPreviousObject0OptionsOidcMetadata(UniversalBaseModel): - """ - OpenID Connect Provider Metadata as per https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata - """ - - acr_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the Authentication Context Class References that this OP supports - """ - - authorization_endpoint: str = pydantic.Field() - """ - URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow. - """ - - claim_types_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the Claim Types that the OpenID Provider supports. These Claim Types are described in Section 5.6 of OpenID Connect Core 1.0 [OpenID.Core]. If omitted, the implementation supports only normal Claims. - """ - - claims_locales_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Languages and scripts supported for values in Claims being returned, represented as a JSON array of BCP47 [RFC5646] language tag values. Not all languages and scripts are necessarily supported for all Claim values. - """ - - claims_parameter_supported: typing.Optional[bool] = pydantic.Field(default=None) - """ - Boolean value specifying whether the OP supports use of the claims parameter, with true indicating support. If omitted, the default value is false. - """ - - claims_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the Claim Names of the Claims that the OpenID Provider MAY be able to supply values for. Note that for privacy or other reasons, this might not be an exhaustive list. - """ - - code_challenge_methods_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636. - """ - - display_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used. - """ - - dpop_signing_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS signing algorithms (alg values) supported for DPoP proof JWT signing. - """ - - end_session_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's logout/end session endpoint. When configured as a static URL, users are redirected here after logging out from Auth0. Must use HTTPS scheme. - """ - - grant_types_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the OAuth 2.0 Grant Type values that this OP supports. Dynamic OpenID Providers MUST support the authorization_code and implicit Grant Type values and MAY support other Grant Types. If omitted, the default value is ["authorization_code", "implicit"]. - """ - - id_token_encryption_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT - """ - - id_token_encryption_enc_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for the ID Token to encode the Claims in a JWT [JWT]. - """ - - id_token_signing_alg_values_supported: typing.List[str] = pydantic.Field() - """ - A list of the JWS signing algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be included. The value none MAY be supported, but MUST NOT be used unless the Response Type used returns no ID Token from the Authorization Endpoint (such as when using the Authorization Code Flow). https://datatracker.ietf.org/doc/html/rfc7518 - """ - - issuer: str = pydantic.Field() - """ - The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider. - """ - - jwks_uri: str = pydantic.Field() - """ - URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures. - """ - - op_policy_uri: typing.Optional[str] = pydantic.Field(default=None) - """ - URL that the OpenID Provider provides to the person registering the Client to read about the OPs requirements on how the Relying Party can use the data provided by the OP. The registration process SHOULD display this URL to the person registering the Client if it is given. - """ - - op_tos_uri: typing.Optional[str] = pydantic.Field(default=None) - """ - URL that the OpenID Provider provides to the person registering the Client to read about OpenID Providers terms of service. The registration process SHOULD display this URL to the person registering the Client if it is given. - """ - - registration_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the OPs Dynamic Client Registration Endpoint. RECOMMENDED but not REQUIRED. https://openid.net/specs/openid-connect-discovery-1_0.html#OpenID.Registration - """ - - request_object_encryption_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference. - """ - - request_object_encryption_enc_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference. - """ - - request_object_signing_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for Request Objects, which are described in Section 6.1 of OpenID Connect Core 1.0 [OpenID.Core]. These algorithms are used both when the Request Object is passed by value (using the request parameter) and when it is passed by reference (using the request_uri parameter). Servers SHOULD support none and RS256. - """ - - request_parameter_supported: typing.Optional[bool] = pydantic.Field(default=None) - """ - Boolean value specifying whether the OP supports use of the request parameter, with true indicating support. If omitted, the default value is false. - """ - - request_uri_parameter_supported: typing.Optional[bool] = pydantic.Field(default=None) - """ - Boolean value specifying whether the OP supports use of the request_uri parameter, with true indicating support. If omitted, the default value is false. - """ - - require_request_uri_registration: typing.Optional[bool] = pydantic.Field(default=None) - """ - Boolean value specifying whether the OP requires use of the request_uri parameter. If omitted, the default value is false. - """ - - response_modes_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the OAuth 2.0 response_mode values that this OP supports. If omitted, the default for Dynamic OpenID Providers is ["query", "fragment"] - """ - - response_types_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the OAuth 2.0 response_type values that this OP supports. Dynamic OpenID Providers MUST support the code, id_token, and the token id_token Response Type values - """ - - scopes_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the OAuth 2.0 [RFC6749] scope values that this server supports. The server MUST support the openid scope value. Servers MAY choose not to advertise some supported scope values even when this parameter is used, although those defined in [OpenID.Core] SHOULD be listed, if supported. RECOMMENDED but not REQUIRED - """ - - service_documentation: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of a page containing human-readable information that developers might want or need to know when using the OpenID Provider. In particular, if the OpenID Provider does not support Dynamic Client Registration, then information on how to register Clients needs to be provided in this documentation. - """ - - subject_types_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the Subject Identifier types that this OP supports. Valid types include pairwise and public - """ - - token_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow. - """ - - token_endpoint_auth_methods_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of Client Authentication methods supported by this Token Endpoint. The options are client_secret_post, client_secret_basic, client_secret_jwt, and private_key_jwt, as described in Section 9 of OpenID Connect Core 1.0 [OpenID.Core]. Other authentication methods MAY be defined by extensions. If omitted, the default is client_secret_basic -- the HTTP Basic Authentication Scheme specified in Section 2.3.1 of OAuth 2.0 [RFC6749]. - """ - - token_endpoint_auth_signing_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used. - """ - - ui_locales_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Languages and scripts supported for the user interface, represented as a JSON array of BCP47 [RFC5646] language tag values. - """ - - userinfo_encryption_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE [JWE] encryption algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. - """ - - userinfo_encryption_enc_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (enc values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. - """ - - userinfo_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token. - """ - - userinfo_signing_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS [JWS] signing algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. The value none MAY be included. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_options_schema_version_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_options_schema_version_enum.py deleted file mode 100644 index bd15f8ea..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_options_schema_version_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedPreviousObject0OptionsSchemaVersionEnum = typing.Union[ - typing.Literal["openid-1.0.0", "oidc-v4"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_options_set_user_root_attributes_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_options_set_user_root_attributes_enum.py deleted file mode 100644 index c35cecf0..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_options_set_user_root_attributes_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedPreviousObject0OptionsSetUserRootAttributesEnum = typing.Union[ - typing.Literal["on_each_login", "on_first_login", "never_on_login"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_options_token_endpoint_auth_method_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_options_token_endpoint_auth_method_enum.py deleted file mode 100644 index 37d1a83e..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_options_token_endpoint_auth_method_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTokenEndpointAuthMethodEnum = typing.Union[ - typing.Literal["client_secret_post", "private_key_jwt"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_options_token_endpoint_auth_signing_alg_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_options_token_endpoint_auth_signing_alg_enum.py deleted file mode 100644 index a4d18896..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_options_token_endpoint_auth_signing_alg_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum = typing.Union[ - typing.Literal["ES256", "ES384", "PS256", "PS384", "RS256", "RS384", "RS512"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_options_token_endpoint_jwtca_aud_format_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_options_token_endpoint_jwtca_aud_format_enum.py deleted file mode 100644 index 8c496c98..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_options_token_endpoint_jwtca_aud_format_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTokenEndpointJwtcaAudFormatEnum = typing.Union[ - typing.Literal["issuer", "token_endpoint"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_options_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_options_type_enum.py deleted file mode 100644 index a62f91b6..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_options_type_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedPreviousObject0OptionsTypeEnum = typing.Union[ - typing.Literal["back_channel", "front_channel"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_options_upstream_params.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_options_upstream_params.py deleted file mode 100644 index 341f8dfd..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_options_upstream_params.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedPreviousObject0OptionsUpstreamParams = typing.Dict[str, typing.Any] -""" -Additional parameters to include in authorization requests sent to the identity provider. Useful for passing custom claims, selecting specific identity sources, or configuring provider-specific behavior. See https://auth0.com/docs/authenticate/identity-providers/pass-parameters-to-idps -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_strategy_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_strategy_enum.py deleted file mode 100644 index c2b2ed04..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_0_strategy_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedPreviousObject0StrategyEnum = typing.Union[typing.Literal["oidc"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1.py deleted file mode 100644 index 54c17174..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1.py +++ /dev/null @@ -1,73 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_deleted_previous_object_1_authentication import ( - EventStreamCloudEventConnectionDeletedPreviousObject1Authentication, -) -from .event_stream_cloud_event_connection_deleted_previous_object_1_connected_accounts import ( - EventStreamCloudEventConnectionDeletedPreviousObject1ConnectedAccounts, -) -from .event_stream_cloud_event_connection_deleted_previous_object_1_metadata import ( - EventStreamCloudEventConnectionDeletedPreviousObject1Metadata, -) -from .event_stream_cloud_event_connection_deleted_previous_object_1_options import ( - EventStreamCloudEventConnectionDeletedPreviousObject1Options, -) -from .event_stream_cloud_event_connection_deleted_previous_object_1_strategy_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject1StrategyEnum, -) - - -class EventStreamCloudEventConnectionDeletedPreviousObject1(UniversalBaseModel): - authentication: typing.Optional[EventStreamCloudEventConnectionDeletedPreviousObject1Authentication] = None - connected_accounts: typing.Optional[EventStreamCloudEventConnectionDeletedPreviousObject1ConnectedAccounts] = None - display_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Connection name used in the new universal login experience - """ - - enabled_clients: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. - """ - - id: str = pydantic.Field() - """ - The connection's identifier - """ - - is_domain_connection: typing.Optional[bool] = pydantic.Field(default=None) - """ - true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) - """ - - metadata: typing.Optional[EventStreamCloudEventConnectionDeletedPreviousObject1Metadata] = None - name: str = pydantic.Field() - """ - The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 - """ - - realms: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. - """ - - options: typing.Optional[EventStreamCloudEventConnectionDeletedPreviousObject1Options] = None - show_as_button: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to `false`. - """ - - strategy: EventStreamCloudEventConnectionDeletedPreviousObject1StrategyEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_authentication.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_authentication.py deleted file mode 100644 index 0465d5e5..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_authentication.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionDeletedPreviousObject1Authentication(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for authentication during login. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_connected_accounts.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_connected_accounts.py deleted file mode 100644 index 3ea666eb..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_connected_accounts.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionDeletedPreviousObject1ConnectedAccounts(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for connected accounts and Token Vault. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_metadata.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_metadata.py deleted file mode 100644 index 1f5a70fc..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_metadata.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionDeletedPreviousObject1Metadata(UniversalBaseModel): - """ - Metadata associated with the connection in the form of an object with string values (max 255 chars). Maximum of 10 metadata properties allowed. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_options.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_options.py deleted file mode 100644 index d97c43de..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_options.py +++ /dev/null @@ -1,180 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_connection_deleted_previous_object_1_options_attribute_map import ( - EventStreamCloudEventConnectionDeletedPreviousObject1OptionsAttributeMap, -) -from .event_stream_cloud_event_connection_deleted_previous_object_1_options_connection_settings import ( - EventStreamCloudEventConnectionDeletedPreviousObject1OptionsConnectionSettings, -) -from .event_stream_cloud_event_connection_deleted_previous_object_1_options_dpop_signing_alg_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject1OptionsDpopSigningAlgEnum, -) -from .event_stream_cloud_event_connection_deleted_previous_object_1_options_federated_connections_access_tokens import ( - EventStreamCloudEventConnectionDeletedPreviousObject1OptionsFederatedConnectionsAccessTokens, -) -from .event_stream_cloud_event_connection_deleted_previous_object_1_options_id_token_signed_response_algs_item_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum, -) -from .event_stream_cloud_event_connection_deleted_previous_object_1_options_oidc_metadata import ( - EventStreamCloudEventConnectionDeletedPreviousObject1OptionsOidcMetadata, -) -from .event_stream_cloud_event_connection_deleted_previous_object_1_options_schema_version_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject1OptionsSchemaVersionEnum, -) -from .event_stream_cloud_event_connection_deleted_previous_object_1_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject1OptionsSetUserRootAttributesEnum, -) -from .event_stream_cloud_event_connection_deleted_previous_object_1_options_token_endpoint_auth_method_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTokenEndpointAuthMethodEnum, -) -from .event_stream_cloud_event_connection_deleted_previous_object_1_options_token_endpoint_auth_signing_alg_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum, -) -from .event_stream_cloud_event_connection_deleted_previous_object_1_options_token_endpoint_jwtca_aud_format_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTokenEndpointJwtcaAudFormatEnum, -) -from .event_stream_cloud_event_connection_deleted_previous_object_1_options_type_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTypeEnum, -) -from .event_stream_cloud_event_connection_deleted_previous_object_1_options_upstream_params import ( - EventStreamCloudEventConnectionDeletedPreviousObject1OptionsUpstreamParams, -) - - -class EventStreamCloudEventConnectionDeletedPreviousObject1Options(UniversalBaseModel): - """ - Options for the 'okta' connection - """ - - authorization_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow. - """ - - client_id: str = pydantic.Field() - """ - OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider. - """ - - connection_settings: typing.Optional[ - EventStreamCloudEventConnectionDeletedPreviousObject1OptionsConnectionSettings - ] = None - domain_aliases: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication. - """ - - dpop_signing_alg: typing.Optional[ - EventStreamCloudEventConnectionDeletedPreviousObject1OptionsDpopSigningAlgEnum - ] = None - federated_connections_access_tokens: typing.Optional[ - EventStreamCloudEventConnectionDeletedPreviousObject1OptionsFederatedConnectionsAccessTokens - ] = None - icon_url: typing.Optional[str] = pydantic.Field(default=None) - """ - https url of the icon to be shown - """ - - id_token_session_expiry_supported: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether the identity provider supports session expiry via the id_token. If true, the system will use the session_expiry claim in the id_token to determine session expiry. - """ - - id_token_signed_response_algs: typing.Optional[ - typing.List[EventStreamCloudEventConnectionDeletedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum] - ] = pydantic.Field(default=None) - """ - List of algorithms allowed to verify the ID tokens. Applicable when strategy=oidc or okta. - """ - - issuer: typing.Optional[str] = pydantic.Field(default=None) - """ - The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider. - """ - - jwks_uri: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures. - """ - - non_persistent_attrs: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) - """ - - oidc_metadata: typing.Optional[EventStreamCloudEventConnectionDeletedPreviousObject1OptionsOidcMetadata] = None - schema_version: typing.Optional[EventStreamCloudEventConnectionDeletedPreviousObject1OptionsSchemaVersionEnum] = ( - None - ) - scope: typing.Optional[str] = pydantic.Field(default=None) - """ - Space-separated list of OAuth 2.0 scopes requested during authorization. Must include 'openid' (required by OIDC spec). Common values: 'openid profile email'. Additional scopes depend on the identity provider. - """ - - send_back_channel_nonce: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true and type is 'back_channel', includes a cryptographic nonce in authorization requests to prevent replay attacks. The identity provider must include this nonce in the ID token for validation. - """ - - set_user_root_attributes: typing.Optional[ - EventStreamCloudEventConnectionDeletedPreviousObject1OptionsSetUserRootAttributesEnum - ] = None - tenant_domain: typing.Optional[str] = pydantic.Field(default=None) - """ - Tenant domain - """ - - token_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow. - """ - - token_endpoint_auth_method: typing.Optional[ - EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTokenEndpointAuthMethodEnum - ] = None - token_endpoint_auth_signing_alg: typing.Optional[ - EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum - ] = None - token_endpoint_jwtca_aud_format: typing.Optional[ - EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTokenEndpointJwtcaAudFormatEnum - ] = None - upstream_params: typing.Optional[EventStreamCloudEventConnectionDeletedPreviousObject1OptionsUpstreamParams] = None - use_oauth_spec_scope: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="useOauthSpecScope"), - pydantic.Field( - alias="useOauthSpecScope", - description="When true, uses space-delimited scopes (per OAuth 2.0 spec) instead of comma-delimited when calling the identity provider's authorization endpoint. Only relevant when using the connection_scope parameter. See https://auth0.com/docs/authenticate/identity-providers/adding-scopes-for-an-external-idp#pass-scopes-to-authorize-endpoint", - ), - ] = None - """ - When true, uses space-delimited scopes (per OAuth 2.0 spec) instead of comma-delimited when calling the identity provider's authorization endpoint. Only relevant when using the connection_scope parameter. See https://auth0.com/docs/authenticate/identity-providers/adding-scopes-for-an-external-idp#pass-scopes-to-authorize-endpoint - """ - - userinfo_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token. - """ - - attribute_map: typing.Optional[EventStreamCloudEventConnectionDeletedPreviousObject1OptionsAttributeMap] = None - domain: typing.Optional[str] = pydantic.Field(default=None) - """ - Domain of the Okta organization (e.g., dev-123456.okta.com). Should be just the domain of the okta server with no scheme or trailing backslash. Discovery runs only when connection.options.oidc_metadata is empty and a domain is provided - """ - - type: typing.Optional[EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTypeEnum] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_options_attribute_map.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_options_attribute_map.py deleted file mode 100644 index 27202ef0..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_options_attribute_map.py +++ /dev/null @@ -1,39 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_deleted_previous_object_1_options_attribute_map_attributes import ( - EventStreamCloudEventConnectionDeletedPreviousObject1OptionsAttributeMapAttributes, -) -from .event_stream_cloud_event_connection_deleted_previous_object_1_options_attribute_map_mapping_mode_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject1OptionsAttributeMapMappingModeEnum, -) - - -class EventStreamCloudEventConnectionDeletedPreviousObject1OptionsAttributeMap(UniversalBaseModel): - """ - Mapping of claims received from the identity provider (IdP) - """ - - attributes: typing.Optional[EventStreamCloudEventConnectionDeletedPreviousObject1OptionsAttributeMapAttributes] = ( - None - ) - userinfo_scope: typing.Optional[str] = pydantic.Field(default=None) - """ - Scopes to send to the IdP's Userinfo endpoint - """ - - mapping_mode: typing.Optional[ - EventStreamCloudEventConnectionDeletedPreviousObject1OptionsAttributeMapMappingModeEnum - ] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_options_attribute_map_attributes.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_options_attribute_map_attributes.py deleted file mode 100644 index 7b42b5a2..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_options_attribute_map_attributes.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedPreviousObject1OptionsAttributeMapAttributes = typing.Dict[str, typing.Any] -""" -Object containing mapping details for incoming claims -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_options_attribute_map_mapping_mode_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_options_attribute_map_mapping_mode_enum.py deleted file mode 100644 index 3a681855..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_options_attribute_map_mapping_mode_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedPreviousObject1OptionsAttributeMapMappingModeEnum = typing.Union[ - typing.Literal["basic_profile", "use_map"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_options_connection_settings.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_options_connection_settings.py deleted file mode 100644 index c716c7fe..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_options_connection_settings.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_deleted_previous_object_1_options_connection_settings_pkce_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject1OptionsConnectionSettingsPkceEnum, -) - - -class EventStreamCloudEventConnectionDeletedPreviousObject1OptionsConnectionSettings(UniversalBaseModel): - """ - OAuth 2.0 PKCE (Proof Key for Code Exchange) settings. PKCE enhances security for public clients by preventing authorization code interception attacks. 'auto' (recommended) uses the strongest method supported by the IdP. - """ - - pkce: typing.Optional[EventStreamCloudEventConnectionDeletedPreviousObject1OptionsConnectionSettingsPkceEnum] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_options_connection_settings_pkce_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_options_connection_settings_pkce_enum.py deleted file mode 100644 index b48eb0a1..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_options_connection_settings_pkce_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedPreviousObject1OptionsConnectionSettingsPkceEnum = typing.Union[ - typing.Literal["auto", "S256", "plain", "disabled"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_options_dpop_signing_alg_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_options_dpop_signing_alg_enum.py deleted file mode 100644 index d591bfb7..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_options_dpop_signing_alg_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedPreviousObject1OptionsDpopSigningAlgEnum = typing.Union[ - typing.Literal["ES256", "ES384", "ES512", "Ed25519"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_options_federated_connections_access_tokens.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_options_federated_connections_access_tokens.py deleted file mode 100644 index dd4fd6ae..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_options_federated_connections_access_tokens.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionDeletedPreviousObject1OptionsFederatedConnectionsAccessTokens(UniversalBaseModel): - """ - Configuration for storing identity provider tokens in Auth0's Token Vault. When active, Auth0 securely stores access and refresh tokens from federated logins, enabling your application to make authenticated API calls on behalf of users. - """ - - active: bool = pydantic.Field() - """ - Enables refresh tokens and access tokens collection for federated connections - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_options_id_token_signed_response_algs_item_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_options_id_token_signed_response_algs_item_enum.py deleted file mode 100644 index a6343101..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_options_id_token_signed_response_algs_item_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum = typing.Union[ - typing.Literal["ES256", "ES384", "PS256", "PS384", "RS256", "RS384", "RS512"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_options_oidc_metadata.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_options_oidc_metadata.py deleted file mode 100644 index 7151fb34..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_options_oidc_metadata.py +++ /dev/null @@ -1,211 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionDeletedPreviousObject1OptionsOidcMetadata(UniversalBaseModel): - """ - OpenID Connect Provider Metadata as per https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata - """ - - acr_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the Authentication Context Class References that this OP supports - """ - - authorization_endpoint: str = pydantic.Field() - """ - URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow. - """ - - claim_types_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the Claim Types that the OpenID Provider supports. These Claim Types are described in Section 5.6 of OpenID Connect Core 1.0 [OpenID.Core]. If omitted, the implementation supports only normal Claims. - """ - - claims_locales_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Languages and scripts supported for values in Claims being returned, represented as a JSON array of BCP47 [RFC5646] language tag values. Not all languages and scripts are necessarily supported for all Claim values. - """ - - claims_parameter_supported: typing.Optional[bool] = pydantic.Field(default=None) - """ - Boolean value specifying whether the OP supports use of the claims parameter, with true indicating support. If omitted, the default value is false. - """ - - claims_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the Claim Names of the Claims that the OpenID Provider MAY be able to supply values for. Note that for privacy or other reasons, this might not be an exhaustive list. - """ - - code_challenge_methods_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636. - """ - - display_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used. - """ - - dpop_signing_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS signing algorithms (alg values) supported for DPoP proof JWT signing. - """ - - end_session_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's logout/end session endpoint. When configured as a static URL, users are redirected here after logging out from Auth0. Must use HTTPS scheme. - """ - - grant_types_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the OAuth 2.0 Grant Type values that this OP supports. Dynamic OpenID Providers MUST support the authorization_code and implicit Grant Type values and MAY support other Grant Types. If omitted, the default value is ["authorization_code", "implicit"]. - """ - - id_token_encryption_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT - """ - - id_token_encryption_enc_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for the ID Token to encode the Claims in a JWT [JWT]. - """ - - id_token_signing_alg_values_supported: typing.List[str] = pydantic.Field() - """ - A list of the JWS signing algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be included. The value none MAY be supported, but MUST NOT be used unless the Response Type used returns no ID Token from the Authorization Endpoint (such as when using the Authorization Code Flow). https://datatracker.ietf.org/doc/html/rfc7518 - """ - - issuer: str = pydantic.Field() - """ - The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider. - """ - - jwks_uri: str = pydantic.Field() - """ - URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures. - """ - - op_policy_uri: typing.Optional[str] = pydantic.Field(default=None) - """ - URL that the OpenID Provider provides to the person registering the Client to read about the OPs requirements on how the Relying Party can use the data provided by the OP. The registration process SHOULD display this URL to the person registering the Client if it is given. - """ - - op_tos_uri: typing.Optional[str] = pydantic.Field(default=None) - """ - URL that the OpenID Provider provides to the person registering the Client to read about OpenID Providers terms of service. The registration process SHOULD display this URL to the person registering the Client if it is given. - """ - - registration_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the OPs Dynamic Client Registration Endpoint. RECOMMENDED but not REQUIRED. https://openid.net/specs/openid-connect-discovery-1_0.html#OpenID.Registration - """ - - request_object_encryption_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference. - """ - - request_object_encryption_enc_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference. - """ - - request_object_signing_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for Request Objects, which are described in Section 6.1 of OpenID Connect Core 1.0 [OpenID.Core]. These algorithms are used both when the Request Object is passed by value (using the request parameter) and when it is passed by reference (using the request_uri parameter). Servers SHOULD support none and RS256. - """ - - request_parameter_supported: typing.Optional[bool] = pydantic.Field(default=None) - """ - Boolean value specifying whether the OP supports use of the request parameter, with true indicating support. If omitted, the default value is false. - """ - - request_uri_parameter_supported: typing.Optional[bool] = pydantic.Field(default=None) - """ - Boolean value specifying whether the OP supports use of the request_uri parameter, with true indicating support. If omitted, the default value is false. - """ - - require_request_uri_registration: typing.Optional[bool] = pydantic.Field(default=None) - """ - Boolean value specifying whether the OP requires use of the request_uri parameter. If omitted, the default value is false. - """ - - response_modes_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the OAuth 2.0 response_mode values that this OP supports. If omitted, the default for Dynamic OpenID Providers is ["query", "fragment"] - """ - - response_types_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the OAuth 2.0 response_type values that this OP supports. Dynamic OpenID Providers MUST support the code, id_token, and the token id_token Response Type values - """ - - scopes_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the OAuth 2.0 [RFC6749] scope values that this server supports. The server MUST support the openid scope value. Servers MAY choose not to advertise some supported scope values even when this parameter is used, although those defined in [OpenID.Core] SHOULD be listed, if supported. RECOMMENDED but not REQUIRED - """ - - service_documentation: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of a page containing human-readable information that developers might want or need to know when using the OpenID Provider. In particular, if the OpenID Provider does not support Dynamic Client Registration, then information on how to register Clients needs to be provided in this documentation. - """ - - subject_types_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the Subject Identifier types that this OP supports. Valid types include pairwise and public - """ - - token_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow. - """ - - token_endpoint_auth_methods_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of Client Authentication methods supported by this Token Endpoint. The options are client_secret_post, client_secret_basic, client_secret_jwt, and private_key_jwt, as described in Section 9 of OpenID Connect Core 1.0 [OpenID.Core]. Other authentication methods MAY be defined by extensions. If omitted, the default is client_secret_basic -- the HTTP Basic Authentication Scheme specified in Section 2.3.1 of OAuth 2.0 [RFC6749]. - """ - - token_endpoint_auth_signing_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used. - """ - - ui_locales_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Languages and scripts supported for the user interface, represented as a JSON array of BCP47 [RFC5646] language tag values. - """ - - userinfo_encryption_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE [JWE] encryption algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. - """ - - userinfo_encryption_enc_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (enc values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. - """ - - userinfo_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token. - """ - - userinfo_signing_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS [JWS] signing algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. The value none MAY be included. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_options_schema_version_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_options_schema_version_enum.py deleted file mode 100644 index 60591170..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_options_schema_version_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedPreviousObject1OptionsSchemaVersionEnum = typing.Union[ - typing.Literal["openid-1.0.0", "oidc-v4"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_options_set_user_root_attributes_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_options_set_user_root_attributes_enum.py deleted file mode 100644 index 444d4f54..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_options_set_user_root_attributes_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedPreviousObject1OptionsSetUserRootAttributesEnum = typing.Union[ - typing.Literal["on_each_login", "on_first_login", "never_on_login"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_options_token_endpoint_auth_method_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_options_token_endpoint_auth_method_enum.py deleted file mode 100644 index 14541774..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_options_token_endpoint_auth_method_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTokenEndpointAuthMethodEnum = typing.Union[ - typing.Literal["client_secret_post", "private_key_jwt"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_options_token_endpoint_auth_signing_alg_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_options_token_endpoint_auth_signing_alg_enum.py deleted file mode 100644 index 3d90f0ed..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_options_token_endpoint_auth_signing_alg_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum = typing.Union[ - typing.Literal["ES256", "ES384", "PS256", "PS384", "RS256", "RS384", "RS512"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_options_token_endpoint_jwtca_aud_format_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_options_token_endpoint_jwtca_aud_format_enum.py deleted file mode 100644 index 9721cdd2..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_options_token_endpoint_jwtca_aud_format_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTokenEndpointJwtcaAudFormatEnum = typing.Union[ - typing.Literal["issuer", "token_endpoint"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_options_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_options_type_enum.py deleted file mode 100644 index f09b9105..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_options_type_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedPreviousObject1OptionsTypeEnum = typing.Union[ - typing.Literal["back_channel"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_options_upstream_params.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_options_upstream_params.py deleted file mode 100644 index a806c4ee..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_options_upstream_params.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedPreviousObject1OptionsUpstreamParams = typing.Dict[str, typing.Any] -""" -Additional parameters to include in authorization requests sent to the identity provider. Useful for passing custom claims, selecting specific identity sources, or configuring provider-specific behavior. See https://auth0.com/docs/authenticate/identity-providers/pass-parameters-to-idps -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_strategy_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_strategy_enum.py deleted file mode 100644 index bb4801da..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_1_strategy_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedPreviousObject1StrategyEnum = typing.Union[typing.Literal["okta"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_2.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_2.py deleted file mode 100644 index a81645a2..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_2.py +++ /dev/null @@ -1,73 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_deleted_previous_object_2_authentication import ( - EventStreamCloudEventConnectionDeletedPreviousObject2Authentication, -) -from .event_stream_cloud_event_connection_deleted_previous_object_2_connected_accounts import ( - EventStreamCloudEventConnectionDeletedPreviousObject2ConnectedAccounts, -) -from .event_stream_cloud_event_connection_deleted_previous_object_2_metadata import ( - EventStreamCloudEventConnectionDeletedPreviousObject2Metadata, -) -from .event_stream_cloud_event_connection_deleted_previous_object_2_options import ( - EventStreamCloudEventConnectionDeletedPreviousObject2Options, -) -from .event_stream_cloud_event_connection_deleted_previous_object_2_strategy_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject2StrategyEnum, -) - - -class EventStreamCloudEventConnectionDeletedPreviousObject2(UniversalBaseModel): - authentication: typing.Optional[EventStreamCloudEventConnectionDeletedPreviousObject2Authentication] = None - connected_accounts: typing.Optional[EventStreamCloudEventConnectionDeletedPreviousObject2ConnectedAccounts] = None - display_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Connection name used in the new universal login experience - """ - - enabled_clients: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. - """ - - id: str = pydantic.Field() - """ - The connection's identifier - """ - - is_domain_connection: typing.Optional[bool] = pydantic.Field(default=None) - """ - true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) - """ - - metadata: typing.Optional[EventStreamCloudEventConnectionDeletedPreviousObject2Metadata] = None - name: str = pydantic.Field() - """ - The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 - """ - - realms: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. - """ - - options: typing.Optional[EventStreamCloudEventConnectionDeletedPreviousObject2Options] = None - show_as_button: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to `false`. - """ - - strategy: EventStreamCloudEventConnectionDeletedPreviousObject2StrategyEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_2_authentication.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_2_authentication.py deleted file mode 100644 index d4b2628b..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_2_authentication.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionDeletedPreviousObject2Authentication(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for authentication during login. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_2_connected_accounts.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_2_connected_accounts.py deleted file mode 100644 index 13b6f3aa..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_2_connected_accounts.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionDeletedPreviousObject2ConnectedAccounts(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for connected accounts and Token Vault. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_2_metadata.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_2_metadata.py deleted file mode 100644 index a0d626bf..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_2_metadata.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionDeletedPreviousObject2Metadata(UniversalBaseModel): - """ - Metadata associated with the connection in the form of an object with string values (max 255 chars). Maximum of 10 metadata properties allowed. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_2_options.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_2_options.py deleted file mode 100644 index b1ee4f6e..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_2_options.py +++ /dev/null @@ -1,298 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_connection_deleted_previous_object_2_options_assertion_decryption_settings import ( - EventStreamCloudEventConnectionDeletedPreviousObject2OptionsAssertionDecryptionSettings, -) -from .event_stream_cloud_event_connection_deleted_previous_object_2_options_digest_algorithm_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject2OptionsDigestAlgorithmEnum, -) -from .event_stream_cloud_event_connection_deleted_previous_object_2_options_fields_map import ( - EventStreamCloudEventConnectionDeletedPreviousObject2OptionsFieldsMap, -) -from .event_stream_cloud_event_connection_deleted_previous_object_2_options_idpinitiated import ( - EventStreamCloudEventConnectionDeletedPreviousObject2OptionsIdpinitiated, -) -from .event_stream_cloud_event_connection_deleted_previous_object_2_options_oidc_metadata import ( - EventStreamCloudEventConnectionDeletedPreviousObject2OptionsOidcMetadata, -) -from .event_stream_cloud_event_connection_deleted_previous_object_2_options_protocol_binding_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject2OptionsProtocolBindingEnum, -) -from .event_stream_cloud_event_connection_deleted_previous_object_2_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject2OptionsSetUserRootAttributesEnum, -) -from .event_stream_cloud_event_connection_deleted_previous_object_2_options_signature_algorithm_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject2OptionsSignatureAlgorithmEnum, -) -from .event_stream_cloud_event_connection_deleted_previous_object_2_options_subject import ( - EventStreamCloudEventConnectionDeletedPreviousObject2OptionsSubject, -) -from .event_stream_cloud_event_connection_deleted_previous_object_2_options_upstream_params import ( - EventStreamCloudEventConnectionDeletedPreviousObject2OptionsUpstreamParams, -) - - -class EventStreamCloudEventConnectionDeletedPreviousObject2Options(UniversalBaseModel): - """ - Options for the 'samlp' connection - """ - - assertion_decryption_settings: typing.Optional[ - EventStreamCloudEventConnectionDeletedPreviousObject2OptionsAssertionDecryptionSettings - ] = None - cert: typing.Optional[str] = pydantic.Field(default=None) - """ - X.509 signing certificate from the identity provider in .der format. Used to validate signatures in SAML Responses and Assertions. This is an alternative to signingCert and is kept for backward compatibility. Prefer using signingCert instead. - """ - - cert_rollover_notification: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Timestamp of the last certificate expiring soon notification. - """ - - digest_algorithm: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventConnectionDeletedPreviousObject2OptionsDigestAlgorithmEnum], - FieldMetadata(alias="digestAlgorithm"), - pydantic.Field(alias="digestAlgorithm"), - ] = None - domain_aliases: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Domain aliases for the connection - """ - - entity_id: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="entityId"), - pydantic.Field( - alias="entityId", - description="The entity identifier (Issuer) for the SAML Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'. This value is included in SAML AuthnRequest messages sent to the identity provider.", - ), - ] = None - """ - The entity identifier (Issuer) for the SAML Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'. This value is included in SAML AuthnRequest messages sent to the identity provider. - """ - - expires: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - ISO 8601 formatted datetime indicating when the identity provider's signing certificate expires. - """ - - icon_url: typing.Optional[str] = pydantic.Field(default=None) - """ - URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows. - """ - - idpinitiated: typing.Optional[EventStreamCloudEventConnectionDeletedPreviousObject2OptionsIdpinitiated] = None - non_persistent_attrs: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) - """ - - protocol_binding: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventConnectionDeletedPreviousObject2OptionsProtocolBindingEnum], - FieldMetadata(alias="protocolBinding"), - pydantic.Field(alias="protocolBinding"), - ] = None - set_user_root_attributes: typing.Optional[ - EventStreamCloudEventConnectionDeletedPreviousObject2OptionsSetUserRootAttributesEnum - ] = None - signature_algorithm: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventConnectionDeletedPreviousObject2OptionsSignatureAlgorithmEnum], - FieldMetadata(alias="signatureAlgorithm"), - pydantic.Field(alias="signatureAlgorithm"), - ] = None - sign_in_endpoint: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="signInEndpoint"), - pydantic.Field( - alias="signInEndpoint", - description="Identity provider's SAML SingleSignOnService endpoint URL where Auth0 sends SAML authentication requests. This is the primary login URL for the SAML connection. Required unless using metadataUrl or metadataXml.", - ), - ] = None - """ - Identity provider's SAML SingleSignOnService endpoint URL where Auth0 sends SAML authentication requests. This is the primary login URL for the SAML connection. Required unless using metadataUrl or metadataXml. - """ - - signing_cert: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="signingCert"), - pydantic.Field( - alias="signingCert", - description="Base64-encoded X.509 certificate from the identity provider used to validate signatures in SAML responses and assertions. The certificate is decoded and used for cryptographic signature verification.", - ), - ] = None - """ - Base64-encoded X.509 certificate from the identity provider used to validate signatures in SAML responses and assertions. The certificate is decoded and used for cryptographic signature verification. - """ - - sign_saml_request: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="signSAMLRequest"), - pydantic.Field( - alias="signSAMLRequest", - description="When true, Auth0 signs SAML authentication requests using the connection's signing key. The signature includes the request's digest and is validated by the identity provider. Defaults to false (unsigned requests).", - ), - ] = None - """ - When true, Auth0 signs SAML authentication requests using the connection's signing key. The signature includes the request's digest and is validated by the identity provider. Defaults to false (unsigned requests). - """ - - subject: typing.Optional[EventStreamCloudEventConnectionDeletedPreviousObject2OptionsSubject] = None - tenant_domain: typing.Optional[str] = pydantic.Field(default=None) - """ - For SAML connections, the tenant domain used to construct the login endpoint URL. Can be a string for single-tenant or an array of strings for multi-tenant validation. - """ - - thumbprints: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - SHA-1 thumbprints (fingerprints) of the identity provider's signing certificates. Automatically computed from signingCert during connection creation. Each thumbprint must be a 40-character hexadecimal string. - """ - - upstream_params: typing.Optional[EventStreamCloudEventConnectionDeletedPreviousObject2OptionsUpstreamParams] = None - debug: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true, enables detailed SAML debugging by issuing 'w' (warning) events in tenant logs containing SAML request/response details. WARNING: Potentially exposes sensitive user information (PII, credentials) and should only be enabled temporarily for debugging purposes. - """ - - deflate: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true, enables DEFLATE compression for SAML requests sent via HTTP-Redirect binding. - """ - - destination_url: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="destinationUrl"), - pydantic.Field( - alias="destinationUrl", - description="The URL where Auth0 will send SAML authentication requests (the Identity Provider's SSO URL). Must be a valid HTTPS URL.", - ), - ] = None - """ - The URL where Auth0 will send SAML authentication requests (the Identity Provider's SSO URL). Must be a valid HTTPS URL. - """ - - disable_fields_map_fix: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="disableFieldsMapFix"), - pydantic.Field( - alias="disableFieldsMapFix", - description="When true, disables the automatic correction of the fieldsMap configuration to ensure proper mapping of SAML attributes to user profile fields. Defaults to false (fieldsMap fix enabled).", - ), - ] = None - """ - When true, disables the automatic correction of the fieldsMap configuration to ensure proper mapping of SAML attributes to user profile fields. Defaults to false (fieldsMap fix enabled). - """ - - disable_signout: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="disableSignout"), - pydantic.Field( - alias="disableSignout", - description="When true, disables sending SAML logout requests (SingleLogoutService) to the identity provider during user sign-out. The user will be logged out of Auth0 but will remain logged into the identity provider. Defaults to false (federated logout enabled).", - ), - ] = None - """ - When true, disables sending SAML logout requests (SingleLogoutService) to the identity provider during user sign-out. The user will be logged out of Auth0 but will remain logged into the identity provider. Defaults to false (federated logout enabled). - """ - - discovery_url: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's OIDC Discovery endpoint (/.well-known/openid-configuration). When provided and oidc_metadata is empty, Auth0 automatically retrieves the provider's configuration including endpoints and supported features. Used with Cross App Access. - """ - - fields_map: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventConnectionDeletedPreviousObject2OptionsFieldsMap], - FieldMetadata(alias="fieldsMap"), - pydantic.Field(alias="fieldsMap"), - ] = None - fields_map_json_raw: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="fieldsMapJsonRaw"), - pydantic.Field( - alias="fieldsMapJsonRaw", - description="Raw JSON string representation of the fieldsMap configuration. Used internally for storage and retrieval of the fieldsMap object.", - ), - ] = None - """ - Raw JSON string representation of the fieldsMap configuration. Used internally for storage and retrieval of the fieldsMap object. - """ - - global_token_revocation_jwt_iss: typing.Optional[str] = pydantic.Field(default=None) - """ - Expected 'iss' (Issuer) claim value for JWT tokens in Global Token Revocation requests from the identity provider. When configured, Auth0 validates the JWT issuer matches this value before processing token revocation. Must be used together with global_token_revocation_jwt_sub. - """ - - global_token_revocation_jwt_sub: typing.Optional[str] = pydantic.Field(default=None) - """ - Expected 'sub' (Subject) claim value for JWT tokens in Global Token Revocation requests from the identity provider. When configured, Auth0 validates the JWT subject matches this value before processing token revocation. Must be used together with global_token_revocation_jwt_iss. - """ - - metadata_url: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="metadataUrl"), - pydantic.Field( - alias="metadataUrl", - description="HTTPS URL to the identity provider's SAML metadata document. When provided, Auth0 automatically fetches and parses the metadata to extract signInEndpoint, signOutEndpoint, signingCert, signSAMLRequest, and protocolBinding. Use metadataUrl OR metadataXml, not both.", - ), - ] = None - """ - HTTPS URL to the identity provider's SAML metadata document. When provided, Auth0 automatically fetches and parses the metadata to extract signInEndpoint, signOutEndpoint, signingCert, signSAMLRequest, and protocolBinding. Use metadataUrl OR metadataXml, not both. - """ - - oidc_metadata: typing.Optional[EventStreamCloudEventConnectionDeletedPreviousObject2OptionsOidcMetadata] = None - recipient_url: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="recipientUrl"), - pydantic.Field( - alias="recipientUrl", - description="The URL where Auth0 will send SAML authentication requests (the Identity Provider's SSO URL). Must be a valid HTTPS URL.", - ), - ] = None - """ - The URL where Auth0 will send SAML authentication requests (the Identity Provider's SSO URL). Must be a valid HTTPS URL. - """ - - request_template: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="requestTemplate"), - pydantic.Field( - alias="requestTemplate", - description="Custom XML template for SAML authentication requests. Supports variable substitution using @@variableName@@ syntax. When not provided, uses default SAML AuthnRequest template. See https://auth0.com/docs/authenticate/protocols/saml/saml-sso-integrations/configure-auth0-saml-service-provider#customize-the-request-template", - ), - ] = None - """ - Custom XML template for SAML authentication requests. Supports variable substitution using @@variableName@@ syntax. When not provided, uses default SAML AuthnRequest template. See https://auth0.com/docs/authenticate/protocols/saml/saml-sso-integrations/configure-auth0-saml-service-provider#customize-the-request-template - """ - - sign_out_endpoint: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="signOutEndpoint"), - pydantic.Field( - alias="signOutEndpoint", - description="Identity provider's SAML SingleLogoutService endpoint URL where Auth0 sends logout requests for federated sign-out. When not provided, defaults to signInEndpoint. Only used if disableSignout is false.", - ), - ] = None - """ - Identity provider's SAML SingleLogoutService endpoint URL where Auth0 sends logout requests for federated sign-out. When not provided, defaults to signInEndpoint. Only used if disableSignout is false. - """ - - user_id_attribute: typing.Optional[str] = pydantic.Field(default=None) - """ - Custom SAML assertion attribute to use as the unique user identifier. When provided, this attribute is prepended to the default user_id mapping list with highest priority. Accepts a string (single SAML attribute name). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_2_options_assertion_decryption_settings.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_2_options_assertion_decryption_settings.py deleted file mode 100644 index d5f60e6c..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_2_options_assertion_decryption_settings.py +++ /dev/null @@ -1,33 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_deleted_previous_object_2_options_assertion_decryption_settings_algorithm_profile_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum, -) - - -class EventStreamCloudEventConnectionDeletedPreviousObject2OptionsAssertionDecryptionSettings(UniversalBaseModel): - """ - Settings for SAML assertion decryption. - """ - - algorithm_exceptions: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of insecure algorithms to allow for SAML assertion decryption. - """ - - algorithm_profile: ( - EventStreamCloudEventConnectionDeletedPreviousObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum - ) - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_2_options_assertion_decryption_settings_algorithm_profile_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_2_options_assertion_decryption_settings_algorithm_profile_enum.py deleted file mode 100644 index 17fdf005..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_2_options_assertion_decryption_settings_algorithm_profile_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedPreviousObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum = ( - typing.Union[typing.Literal["v2026-1"], typing.Any] -) diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_2_options_digest_algorithm_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_2_options_digest_algorithm_enum.py deleted file mode 100644 index 561ac083..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_2_options_digest_algorithm_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedPreviousObject2OptionsDigestAlgorithmEnum = typing.Union[ - typing.Literal["sha1", "sha256"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_2_options_fields_map.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_2_options_fields_map.py deleted file mode 100644 index 7878b8f1..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_2_options_fields_map.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedPreviousObject2OptionsFieldsMap = typing.Dict[str, typing.Any] -""" -Maps SAML assertion attributes from the identity provider to Auth0 user profile attributes. Format: { 'auth0_field': 'saml_attribute' } or { 'auth0_field': ['saml_attr1', 'saml_attr2'] } for fallback options. Merged with default mappings for email, name, given_name, family_name, and groups. -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_2_options_idpinitiated.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_2_options_idpinitiated.py deleted file mode 100644 index 3e005bab..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_2_options_idpinitiated.py +++ /dev/null @@ -1,42 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_deleted_previous_object_2_options_idpinitiated_client_protocol_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject2OptionsIdpinitiatedClientProtocolEnum, -) - - -class EventStreamCloudEventConnectionDeletedPreviousObject2OptionsIdpinitiated(UniversalBaseModel): - """ - Configuration for IdP-Initiated SAML Single Sign-On. When enabled, allows users to initiate login directly from their SAML identity provider without first visiting Auth0. The IdP must include the connection parameter in the post-back URL (Assertion Consumer Service URL). - """ - - client_authorizequery: typing.Optional[str] = pydantic.Field(default=None) - """ - The query string sent to the default application - """ - - client_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The client ID to use for IdP-initiated login requests. - """ - - client_protocol: typing.Optional[ - EventStreamCloudEventConnectionDeletedPreviousObject2OptionsIdpinitiatedClientProtocolEnum - ] = None - enabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true, enables IdP-initiated login support for this SAML connection. Allows users to log in directly from the identity provider without first visiting Auth0. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_2_options_idpinitiated_client_protocol_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_2_options_idpinitiated_client_protocol_enum.py deleted file mode 100644 index b49898c5..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_2_options_idpinitiated_client_protocol_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedPreviousObject2OptionsIdpinitiatedClientProtocolEnum = typing.Union[ - typing.Literal["oidc", "samlp", "wsfed"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_2_options_oidc_metadata.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_2_options_oidc_metadata.py deleted file mode 100644 index 3f293ead..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_2_options_oidc_metadata.py +++ /dev/null @@ -1,211 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionDeletedPreviousObject2OptionsOidcMetadata(UniversalBaseModel): - """ - OpenID Connect Provider Metadata as per https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata. Used with Cross App Access. - """ - - acr_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the Authentication Context Class References that this OP supports - """ - - authorization_endpoint: str = pydantic.Field() - """ - URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow. - """ - - claim_types_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the Claim Types that the OpenID Provider supports. These Claim Types are described in Section 5.6 of OpenID Connect Core 1.0 [OpenID.Core]. If omitted, the implementation supports only normal Claims. - """ - - claims_locales_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Languages and scripts supported for values in Claims being returned, represented as a JSON array of BCP47 [RFC5646] language tag values. Not all languages and scripts are necessarily supported for all Claim values. - """ - - claims_parameter_supported: typing.Optional[bool] = pydantic.Field(default=None) - """ - Boolean value specifying whether the OP supports use of the claims parameter, with true indicating support. If omitted, the default value is false. - """ - - claims_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the Claim Names of the Claims that the OpenID Provider MAY be able to supply values for. Note that for privacy or other reasons, this might not be an exhaustive list. - """ - - code_challenge_methods_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636. - """ - - display_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used. - """ - - dpop_signing_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS signing algorithms (alg values) supported for DPoP proof JWT signing. - """ - - end_session_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's logout/end session endpoint. When configured as a static URL, users are redirected here after logging out from Auth0. Must use HTTPS scheme. - """ - - grant_types_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the OAuth 2.0 Grant Type values that this OP supports. Dynamic OpenID Providers MUST support the authorization_code and implicit Grant Type values and MAY support other Grant Types. If omitted, the default value is ["authorization_code", "implicit"]. - """ - - id_token_encryption_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT - """ - - id_token_encryption_enc_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for the ID Token to encode the Claims in a JWT [JWT]. - """ - - id_token_signing_alg_values_supported: typing.List[str] = pydantic.Field() - """ - A list of the JWS signing algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be included. The value none MAY be supported, but MUST NOT be used unless the Response Type used returns no ID Token from the Authorization Endpoint (such as when using the Authorization Code Flow). https://datatracker.ietf.org/doc/html/rfc7518 - """ - - issuer: str = pydantic.Field() - """ - The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider. - """ - - jwks_uri: str = pydantic.Field() - """ - URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures. - """ - - op_policy_uri: typing.Optional[str] = pydantic.Field(default=None) - """ - URL that the OpenID Provider provides to the person registering the Client to read about the OPs requirements on how the Relying Party can use the data provided by the OP. The registration process SHOULD display this URL to the person registering the Client if it is given. - """ - - op_tos_uri: typing.Optional[str] = pydantic.Field(default=None) - """ - URL that the OpenID Provider provides to the person registering the Client to read about OpenID Providers terms of service. The registration process SHOULD display this URL to the person registering the Client if it is given. - """ - - registration_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the OPs Dynamic Client Registration Endpoint. RECOMMENDED but not REQUIRED. https://openid.net/specs/openid-connect-discovery-1_0.html#OpenID.Registration - """ - - request_object_encryption_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference. - """ - - request_object_encryption_enc_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference. - """ - - request_object_signing_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for Request Objects, which are described in Section 6.1 of OpenID Connect Core 1.0 [OpenID.Core]. These algorithms are used both when the Request Object is passed by value (using the request parameter) and when it is passed by reference (using the request_uri parameter). Servers SHOULD support none and RS256. - """ - - request_parameter_supported: typing.Optional[bool] = pydantic.Field(default=None) - """ - Boolean value specifying whether the OP supports use of the request parameter, with true indicating support. If omitted, the default value is false. - """ - - request_uri_parameter_supported: typing.Optional[bool] = pydantic.Field(default=None) - """ - Boolean value specifying whether the OP supports use of the request_uri parameter, with true indicating support. If omitted, the default value is false. - """ - - require_request_uri_registration: typing.Optional[bool] = pydantic.Field(default=None) - """ - Boolean value specifying whether the OP requires use of the request_uri parameter. If omitted, the default value is false. - """ - - response_modes_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the OAuth 2.0 response_mode values that this OP supports. If omitted, the default for Dynamic OpenID Providers is ["query", "fragment"] - """ - - response_types_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the OAuth 2.0 response_type values that this OP supports. Dynamic OpenID Providers MUST support the code, id_token, and the token id_token Response Type values - """ - - scopes_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the OAuth 2.0 [RFC6749] scope values that this server supports. The server MUST support the openid scope value. Servers MAY choose not to advertise some supported scope values even when this parameter is used, although those defined in [OpenID.Core] SHOULD be listed, if supported. RECOMMENDED but not REQUIRED - """ - - service_documentation: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of a page containing human-readable information that developers might want or need to know when using the OpenID Provider. In particular, if the OpenID Provider does not support Dynamic Client Registration, then information on how to register Clients needs to be provided in this documentation. - """ - - subject_types_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the Subject Identifier types that this OP supports. Valid types include pairwise and public - """ - - token_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow. - """ - - token_endpoint_auth_methods_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of Client Authentication methods supported by this Token Endpoint. The options are client_secret_post, client_secret_basic, client_secret_jwt, and private_key_jwt, as described in Section 9 of OpenID Connect Core 1.0 [OpenID.Core]. Other authentication methods MAY be defined by extensions. If omitted, the default is client_secret_basic -- the HTTP Basic Authentication Scheme specified in Section 2.3.1 of OAuth 2.0 [RFC6749]. - """ - - token_endpoint_auth_signing_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used. - """ - - ui_locales_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Languages and scripts supported for the user interface, represented as a JSON array of BCP47 [RFC5646] language tag values. - """ - - userinfo_encryption_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE [JWE] encryption algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. - """ - - userinfo_encryption_enc_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (enc values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. - """ - - userinfo_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token. - """ - - userinfo_signing_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS [JWS] signing algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. The value none MAY be included. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_2_options_protocol_binding_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_2_options_protocol_binding_enum.py deleted file mode 100644 index 750e4f5f..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_2_options_protocol_binding_enum.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedPreviousObject2OptionsProtocolBindingEnum = typing.Union[ - typing.Literal[ - "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST", "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect" - ], - typing.Any, -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_2_options_set_user_root_attributes_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_2_options_set_user_root_attributes_enum.py deleted file mode 100644 index b9fc2d1c..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_2_options_set_user_root_attributes_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedPreviousObject2OptionsSetUserRootAttributesEnum = typing.Union[ - typing.Literal["on_each_login", "on_first_login", "never_on_login"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_2_options_signature_algorithm_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_2_options_signature_algorithm_enum.py deleted file mode 100644 index b80390d5..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_2_options_signature_algorithm_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedPreviousObject2OptionsSignatureAlgorithmEnum = typing.Union[ - typing.Literal["rsa-sha1", "rsa-sha256"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_2_options_subject.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_2_options_subject.py deleted file mode 100644 index 9efd8413..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_2_options_subject.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionDeletedPreviousObject2OptionsSubject(UniversalBaseModel): - """ - Certificate Subject Distinguished Name (DN) extracted from the identity provider's signing certificate. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_2_options_upstream_params.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_2_options_upstream_params.py deleted file mode 100644 index 55eb2a6b..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_2_options_upstream_params.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedPreviousObject2OptionsUpstreamParams = typing.Dict[str, typing.Any] -""" -Additional parameters to include in authorization requests sent to the identity provider. Useful for passing custom claims, selecting specific identity sources, or configuring provider-specific behavior. See https://auth0.com/docs/authenticate/identity-providers/pass-parameters-to-idps -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_2_strategy_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_2_strategy_enum.py deleted file mode 100644 index c402fd76..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_2_strategy_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedPreviousObject2StrategyEnum = typing.Union[typing.Literal["samlp"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_3.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_3.py deleted file mode 100644 index 14a41ec6..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_3.py +++ /dev/null @@ -1,73 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_deleted_previous_object_3_authentication import ( - EventStreamCloudEventConnectionDeletedPreviousObject3Authentication, -) -from .event_stream_cloud_event_connection_deleted_previous_object_3_connected_accounts import ( - EventStreamCloudEventConnectionDeletedPreviousObject3ConnectedAccounts, -) -from .event_stream_cloud_event_connection_deleted_previous_object_3_metadata import ( - EventStreamCloudEventConnectionDeletedPreviousObject3Metadata, -) -from .event_stream_cloud_event_connection_deleted_previous_object_3_options import ( - EventStreamCloudEventConnectionDeletedPreviousObject3Options, -) -from .event_stream_cloud_event_connection_deleted_previous_object_3_strategy_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject3StrategyEnum, -) - - -class EventStreamCloudEventConnectionDeletedPreviousObject3(UniversalBaseModel): - authentication: typing.Optional[EventStreamCloudEventConnectionDeletedPreviousObject3Authentication] = None - connected_accounts: typing.Optional[EventStreamCloudEventConnectionDeletedPreviousObject3ConnectedAccounts] = None - display_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Connection name used in the new universal login experience - """ - - enabled_clients: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. - """ - - id: str = pydantic.Field() - """ - The connection's identifier - """ - - is_domain_connection: typing.Optional[bool] = pydantic.Field(default=None) - """ - true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) - """ - - metadata: typing.Optional[EventStreamCloudEventConnectionDeletedPreviousObject3Metadata] = None - name: str = pydantic.Field() - """ - The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 - """ - - realms: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. - """ - - options: typing.Optional[EventStreamCloudEventConnectionDeletedPreviousObject3Options] = None - show_as_button: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to `false`. - """ - - strategy: EventStreamCloudEventConnectionDeletedPreviousObject3StrategyEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_3_authentication.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_3_authentication.py deleted file mode 100644 index d80b2828..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_3_authentication.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionDeletedPreviousObject3Authentication(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for authentication during login. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_3_connected_accounts.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_3_connected_accounts.py deleted file mode 100644 index 32c85ba4..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_3_connected_accounts.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionDeletedPreviousObject3ConnectedAccounts(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for connected accounts and Token Vault. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_3_metadata.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_3_metadata.py deleted file mode 100644 index db129a72..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_3_metadata.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionDeletedPreviousObject3Metadata(UniversalBaseModel): - """ - Metadata associated with the connection in the form of an object with string values (max 255 chars). Maximum of 10 metadata properties allowed. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_3_options.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_3_options.py deleted file mode 100644 index e1b32322..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_3_options.py +++ /dev/null @@ -1,172 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_connection_deleted_previous_object_3_options_assertion_decryption_settings import ( - EventStreamCloudEventConnectionDeletedPreviousObject3OptionsAssertionDecryptionSettings, -) -from .event_stream_cloud_event_connection_deleted_previous_object_3_options_digest_algorithm_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject3OptionsDigestAlgorithmEnum, -) -from .event_stream_cloud_event_connection_deleted_previous_object_3_options_idpinitiated import ( - EventStreamCloudEventConnectionDeletedPreviousObject3OptionsIdpinitiated, -) -from .event_stream_cloud_event_connection_deleted_previous_object_3_options_protocol_binding_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject3OptionsProtocolBindingEnum, -) -from .event_stream_cloud_event_connection_deleted_previous_object_3_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject3OptionsSetUserRootAttributesEnum, -) -from .event_stream_cloud_event_connection_deleted_previous_object_3_options_signature_algorithm_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject3OptionsSignatureAlgorithmEnum, -) -from .event_stream_cloud_event_connection_deleted_previous_object_3_options_subject import ( - EventStreamCloudEventConnectionDeletedPreviousObject3OptionsSubject, -) -from .event_stream_cloud_event_connection_deleted_previous_object_3_options_upstream_params import ( - EventStreamCloudEventConnectionDeletedPreviousObject3OptionsUpstreamParams, -) - - -class EventStreamCloudEventConnectionDeletedPreviousObject3Options(UniversalBaseModel): - """ - Options for the 'pingfederate' connection - """ - - assertion_decryption_settings: typing.Optional[ - EventStreamCloudEventConnectionDeletedPreviousObject3OptionsAssertionDecryptionSettings - ] = None - cert: typing.Optional[str] = pydantic.Field(default=None) - """ - X.509 signing certificate from the identity provider in .der format. Used to validate signatures in SAML Responses and Assertions. This is an alternative to signingCert and is kept for backward compatibility. Prefer using signingCert instead. - """ - - cert_rollover_notification: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Timestamp of the last certificate expiring soon notification. - """ - - digest_algorithm: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventConnectionDeletedPreviousObject3OptionsDigestAlgorithmEnum], - FieldMetadata(alias="digestAlgorithm"), - pydantic.Field(alias="digestAlgorithm"), - ] = None - domain_aliases: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Domain aliases for the connection - """ - - entity_id: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="entityId"), - pydantic.Field( - alias="entityId", - description="The entity identifier (Issuer) for the SAML Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'. This value is included in SAML AuthnRequest messages sent to the identity provider.", - ), - ] = None - """ - The entity identifier (Issuer) for the SAML Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'. This value is included in SAML AuthnRequest messages sent to the identity provider. - """ - - expires: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - ISO 8601 formatted datetime indicating when the identity provider's signing certificate expires. - """ - - icon_url: typing.Optional[str] = pydantic.Field(default=None) - """ - URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows. - """ - - idpinitiated: typing.Optional[EventStreamCloudEventConnectionDeletedPreviousObject3OptionsIdpinitiated] = None - non_persistent_attrs: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) - """ - - protocol_binding: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventConnectionDeletedPreviousObject3OptionsProtocolBindingEnum], - FieldMetadata(alias="protocolBinding"), - pydantic.Field(alias="protocolBinding"), - ] = None - set_user_root_attributes: typing.Optional[ - EventStreamCloudEventConnectionDeletedPreviousObject3OptionsSetUserRootAttributesEnum - ] = None - signature_algorithm: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventConnectionDeletedPreviousObject3OptionsSignatureAlgorithmEnum], - FieldMetadata(alias="signatureAlgorithm"), - pydantic.Field(alias="signatureAlgorithm"), - ] = None - sign_in_endpoint: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="signInEndpoint"), - pydantic.Field( - alias="signInEndpoint", - description="Identity provider's SAML SingleSignOnService endpoint URL where Auth0 sends SAML authentication requests. This is the primary login URL for the SAML connection. Required unless using metadataUrl or metadataXml.", - ), - ] = None - """ - Identity provider's SAML SingleSignOnService endpoint URL where Auth0 sends SAML authentication requests. This is the primary login URL for the SAML connection. Required unless using metadataUrl or metadataXml. - """ - - signing_cert: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="signingCert"), - pydantic.Field( - alias="signingCert", - description="Base64-encoded X.509 certificate from the identity provider used to validate signatures in SAML responses and assertions. The certificate is decoded and used for cryptographic signature verification.", - ), - ] = None - """ - Base64-encoded X.509 certificate from the identity provider used to validate signatures in SAML responses and assertions. The certificate is decoded and used for cryptographic signature verification. - """ - - sign_saml_request: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="signSAMLRequest"), - pydantic.Field( - alias="signSAMLRequest", - description="When true, Auth0 signs SAML authentication requests using the connection's signing key. The signature includes the request's digest and is validated by the identity provider. Defaults to false (unsigned requests).", - ), - ] = None - """ - When true, Auth0 signs SAML authentication requests using the connection's signing key. The signature includes the request's digest and is validated by the identity provider. Defaults to false (unsigned requests). - """ - - subject: typing.Optional[EventStreamCloudEventConnectionDeletedPreviousObject3OptionsSubject] = None - tenant_domain: typing.Optional[str] = pydantic.Field(default=None) - """ - For SAML connections, the tenant domain used to construct the login endpoint URL. Can be a string for single-tenant or an array of strings for multi-tenant validation. - """ - - thumbprints: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - SHA-1 thumbprints (fingerprints) of the identity provider's signing certificates. Automatically computed from signingCert during connection creation. Each thumbprint must be a 40-character hexadecimal string. - """ - - upstream_params: typing.Optional[EventStreamCloudEventConnectionDeletedPreviousObject3OptionsUpstreamParams] = None - ping_federate_base_url: typing_extensions.Annotated[ - str, - FieldMetadata(alias="pingFederateBaseUrl"), - pydantic.Field( - alias="pingFederateBaseUrl", - description="URL provided by PingFederate which returns information used for creating the connection", - ), - ] - """ - URL provided by PingFederate which returns information used for creating the connection - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_3_options_assertion_decryption_settings.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_3_options_assertion_decryption_settings.py deleted file mode 100644 index b622b878..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_3_options_assertion_decryption_settings.py +++ /dev/null @@ -1,33 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_deleted_previous_object_3_options_assertion_decryption_settings_algorithm_profile_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum, -) - - -class EventStreamCloudEventConnectionDeletedPreviousObject3OptionsAssertionDecryptionSettings(UniversalBaseModel): - """ - Settings for SAML assertion decryption. - """ - - algorithm_exceptions: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of insecure algorithms to allow for SAML assertion decryption. - """ - - algorithm_profile: ( - EventStreamCloudEventConnectionDeletedPreviousObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum - ) - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_3_options_assertion_decryption_settings_algorithm_profile_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_3_options_assertion_decryption_settings_algorithm_profile_enum.py deleted file mode 100644 index ead6f850..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_3_options_assertion_decryption_settings_algorithm_profile_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedPreviousObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum = ( - typing.Union[typing.Literal["v2026-1"], typing.Any] -) diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_3_options_digest_algorithm_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_3_options_digest_algorithm_enum.py deleted file mode 100644 index c7488750..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_3_options_digest_algorithm_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedPreviousObject3OptionsDigestAlgorithmEnum = typing.Union[ - typing.Literal["sha1", "sha256"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_3_options_idpinitiated.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_3_options_idpinitiated.py deleted file mode 100644 index 7b58178c..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_3_options_idpinitiated.py +++ /dev/null @@ -1,42 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_deleted_previous_object_3_options_idpinitiated_client_protocol_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject3OptionsIdpinitiatedClientProtocolEnum, -) - - -class EventStreamCloudEventConnectionDeletedPreviousObject3OptionsIdpinitiated(UniversalBaseModel): - """ - Configuration for IdP-Initiated SAML Single Sign-On. When enabled, allows users to initiate login directly from their SAML identity provider without first visiting Auth0. The IdP must include the connection parameter in the post-back URL (Assertion Consumer Service URL). - """ - - client_authorizequery: typing.Optional[str] = pydantic.Field(default=None) - """ - The query string sent to the default application - """ - - client_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The client ID to use for IdP-initiated login requests. - """ - - client_protocol: typing.Optional[ - EventStreamCloudEventConnectionDeletedPreviousObject3OptionsIdpinitiatedClientProtocolEnum - ] = None - enabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true, enables IdP-initiated login support for this SAML connection. Allows users to log in directly from the identity provider without first visiting Auth0. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_3_options_idpinitiated_client_protocol_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_3_options_idpinitiated_client_protocol_enum.py deleted file mode 100644 index 38f43ca2..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_3_options_idpinitiated_client_protocol_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedPreviousObject3OptionsIdpinitiatedClientProtocolEnum = typing.Union[ - typing.Literal["oidc", "samlp", "wsfed"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_3_options_protocol_binding_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_3_options_protocol_binding_enum.py deleted file mode 100644 index 764979be..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_3_options_protocol_binding_enum.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedPreviousObject3OptionsProtocolBindingEnum = typing.Union[ - typing.Literal[ - "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST", "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect" - ], - typing.Any, -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_3_options_set_user_root_attributes_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_3_options_set_user_root_attributes_enum.py deleted file mode 100644 index f4a383b4..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_3_options_set_user_root_attributes_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedPreviousObject3OptionsSetUserRootAttributesEnum = typing.Union[ - typing.Literal["on_each_login", "on_first_login", "never_on_login"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_3_options_signature_algorithm_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_3_options_signature_algorithm_enum.py deleted file mode 100644 index 8bae8157..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_3_options_signature_algorithm_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedPreviousObject3OptionsSignatureAlgorithmEnum = typing.Union[ - typing.Literal["rsa-sha1", "rsa-sha256"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_3_options_subject.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_3_options_subject.py deleted file mode 100644 index dc345046..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_3_options_subject.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionDeletedPreviousObject3OptionsSubject(UniversalBaseModel): - """ - Certificate Subject Distinguished Name (DN) extracted from the identity provider's signing certificate. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_3_options_upstream_params.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_3_options_upstream_params.py deleted file mode 100644 index 62711ba1..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_3_options_upstream_params.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedPreviousObject3OptionsUpstreamParams = typing.Dict[str, typing.Any] -""" -Additional parameters to include in authorization requests sent to the identity provider. Useful for passing custom claims, selecting specific identity sources, or configuring provider-specific behavior. See https://auth0.com/docs/authenticate/identity-providers/pass-parameters-to-idps -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_3_strategy_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_3_strategy_enum.py deleted file mode 100644 index ff51837e..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_3_strategy_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedPreviousObject3StrategyEnum = typing.Union[ - typing.Literal["pingfederate"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_4.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_4.py deleted file mode 100644 index ee05012e..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_4.py +++ /dev/null @@ -1,73 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_deleted_previous_object_4_authentication import ( - EventStreamCloudEventConnectionDeletedPreviousObject4Authentication, -) -from .event_stream_cloud_event_connection_deleted_previous_object_4_connected_accounts import ( - EventStreamCloudEventConnectionDeletedPreviousObject4ConnectedAccounts, -) -from .event_stream_cloud_event_connection_deleted_previous_object_4_metadata import ( - EventStreamCloudEventConnectionDeletedPreviousObject4Metadata, -) -from .event_stream_cloud_event_connection_deleted_previous_object_4_options import ( - EventStreamCloudEventConnectionDeletedPreviousObject4Options, -) -from .event_stream_cloud_event_connection_deleted_previous_object_4_strategy_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject4StrategyEnum, -) - - -class EventStreamCloudEventConnectionDeletedPreviousObject4(UniversalBaseModel): - authentication: typing.Optional[EventStreamCloudEventConnectionDeletedPreviousObject4Authentication] = None - connected_accounts: typing.Optional[EventStreamCloudEventConnectionDeletedPreviousObject4ConnectedAccounts] = None - display_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Connection name used in the new universal login experience - """ - - enabled_clients: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. - """ - - id: str = pydantic.Field() - """ - The connection's identifier - """ - - is_domain_connection: typing.Optional[bool] = pydantic.Field(default=None) - """ - true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) - """ - - metadata: typing.Optional[EventStreamCloudEventConnectionDeletedPreviousObject4Metadata] = None - name: str = pydantic.Field() - """ - The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 - """ - - realms: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. - """ - - options: typing.Optional[EventStreamCloudEventConnectionDeletedPreviousObject4Options] = None - show_as_button: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to `false`. - """ - - strategy: EventStreamCloudEventConnectionDeletedPreviousObject4StrategyEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_4_authentication.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_4_authentication.py deleted file mode 100644 index 28ee04aa..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_4_authentication.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionDeletedPreviousObject4Authentication(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for authentication during login. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_4_connected_accounts.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_4_connected_accounts.py deleted file mode 100644 index b473d446..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_4_connected_accounts.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionDeletedPreviousObject4ConnectedAccounts(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for connected accounts and Token Vault. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_4_metadata.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_4_metadata.py deleted file mode 100644 index 6c4d58ab..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_4_metadata.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionDeletedPreviousObject4Metadata(UniversalBaseModel): - """ - Metadata associated with the connection in the form of an object with string values (max 255 chars). Maximum of 10 metadata properties allowed. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_4_options.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_4_options.py deleted file mode 100644 index 9b037cb0..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_4_options.py +++ /dev/null @@ -1,121 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_connection_deleted_previous_object_4_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject4OptionsSetUserRootAttributesEnum, -) -from .event_stream_cloud_event_connection_deleted_previous_object_4_options_should_trust_email_verified_connection_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject4OptionsShouldTrustEmailVerifiedConnectionEnum, -) -from .event_stream_cloud_event_connection_deleted_previous_object_4_options_upstream_params import ( - EventStreamCloudEventConnectionDeletedPreviousObject4OptionsUpstreamParams, -) - - -class EventStreamCloudEventConnectionDeletedPreviousObject4Options(UniversalBaseModel): - """ - Options for the 'adfs' connection - """ - - adfs_server: typing.Optional[str] = pydantic.Field(default=None) - """ - ADFS federation metadata host or XML URL used to discover WS-Fed endpoints and certificates. Errors if adfs_server and fedMetadataXml are both absent. - """ - - cert_rollover_notification: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Timestamp of the last certificate expiring soon notification. - """ - - domain_aliases: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication. - """ - - entity_id: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="entityId"), - pydantic.Field( - alias="entityId", - description="The entity identifier (Issuer) for the ADFS Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'.", - ), - ] = None - """ - The entity identifier (Issuer) for the ADFS Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'. - """ - - fed_metadata_xml: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="fedMetadataXml"), - pydantic.Field( - alias="fedMetadataXml", - description="Inline XML alternative to 'adfs_server'. Cannot be set together with 'adfs_server'.", - ), - ] = None - """ - Inline XML alternative to 'adfs_server'. Cannot be set together with 'adfs_server'. - """ - - icon_url: typing.Optional[str] = pydantic.Field(default=None) - """ - URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows. - """ - - non_persistent_attrs: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) - """ - - prev_thumbprints: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Array of certificate thumbprints (SHA-128/SHA-256/SHA-512 hex hashes) for validating SAML signatures. Used with WS-Federation protocol. Maximum 20 thumbprints. Each thumbprint must be a hexadecimal string. - """ - - set_user_root_attributes: typing.Optional[ - EventStreamCloudEventConnectionDeletedPreviousObject4OptionsSetUserRootAttributesEnum - ] = None - should_trust_email_verified_connection: typing.Optional[ - EventStreamCloudEventConnectionDeletedPreviousObject4OptionsShouldTrustEmailVerifiedConnectionEnum - ] = None - sign_in_endpoint: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="signInEndpoint"), - pydantic.Field( - alias="signInEndpoint", - description="Passive Requestor (WS-Fed) sign-in endpoint discovered from metadata or provided explicitly.", - ), - ] = None - """ - Passive Requestor (WS-Fed) sign-in endpoint discovered from metadata or provided explicitly. - """ - - tenant_domain: typing.Optional[str] = pydantic.Field(default=None) - """ - Tenant domain - """ - - thumbprints: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Array of certificate thumbprints (SHA-128/SHA-256/SHA-512 hex hashes) for validating SAML signatures. Used with WS-Federation protocol. Maximum 20 thumbprints. Each thumbprint must be a hexadecimal string. - """ - - upstream_params: typing.Optional[EventStreamCloudEventConnectionDeletedPreviousObject4OptionsUpstreamParams] = None - user_id_attribute: typing.Optional[str] = pydantic.Field(default=None) - """ - Custom ADFS claim to use as the unique user identifier. When provided, this attribute is prepended to the default user_id mapping list with highest priority. Accepts a string (single ADFS claim name). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_4_options_set_user_root_attributes_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_4_options_set_user_root_attributes_enum.py deleted file mode 100644 index 63ffbf51..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_4_options_set_user_root_attributes_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedPreviousObject4OptionsSetUserRootAttributesEnum = typing.Union[ - typing.Literal["on_each_login", "on_first_login", "never_on_login"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_4_options_should_trust_email_verified_connection_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_4_options_should_trust_email_verified_connection_enum.py deleted file mode 100644 index f08b4795..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_4_options_should_trust_email_verified_connection_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedPreviousObject4OptionsShouldTrustEmailVerifiedConnectionEnum = typing.Union[ - typing.Literal["never_set_emails_as_verified", "always_set_emails_as_verified"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_4_options_upstream_params.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_4_options_upstream_params.py deleted file mode 100644 index 511da9e9..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_4_options_upstream_params.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedPreviousObject4OptionsUpstreamParams = typing.Dict[str, typing.Any] -""" -Additional parameters to include in authorization requests sent to the identity provider. Useful for passing custom claims, selecting specific identity sources, or configuring provider-specific behavior. See https://auth0.com/docs/authenticate/identity-providers/pass-parameters-to-idps -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_4_strategy_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_4_strategy_enum.py deleted file mode 100644 index ae76c418..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_4_strategy_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedPreviousObject4StrategyEnum = typing.Union[typing.Literal["adfs"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_5.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_5.py deleted file mode 100644 index 0e6f2b1e..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_5.py +++ /dev/null @@ -1,68 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_deleted_previous_object_5_authentication import ( - EventStreamCloudEventConnectionDeletedPreviousObject5Authentication, -) -from .event_stream_cloud_event_connection_deleted_previous_object_5_connected_accounts import ( - EventStreamCloudEventConnectionDeletedPreviousObject5ConnectedAccounts, -) -from .event_stream_cloud_event_connection_deleted_previous_object_5_metadata import ( - EventStreamCloudEventConnectionDeletedPreviousObject5Metadata, -) -from .event_stream_cloud_event_connection_deleted_previous_object_5_options import ( - EventStreamCloudEventConnectionDeletedPreviousObject5Options, -) -from .event_stream_cloud_event_connection_deleted_previous_object_5_strategy_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject5StrategyEnum, -) - - -class EventStreamCloudEventConnectionDeletedPreviousObject5(UniversalBaseModel): - authentication: typing.Optional[EventStreamCloudEventConnectionDeletedPreviousObject5Authentication] = None - connected_accounts: typing.Optional[EventStreamCloudEventConnectionDeletedPreviousObject5ConnectedAccounts] = None - display_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Connection name used in the new universal login experience - """ - - enabled_clients: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. - """ - - id: str = pydantic.Field() - """ - The connection's identifier - """ - - is_domain_connection: typing.Optional[bool] = pydantic.Field(default=None) - """ - true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) - """ - - metadata: typing.Optional[EventStreamCloudEventConnectionDeletedPreviousObject5Metadata] = None - name: str = pydantic.Field() - """ - The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 - """ - - realms: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. - """ - - options: typing.Optional[EventStreamCloudEventConnectionDeletedPreviousObject5Options] = None - strategy: EventStreamCloudEventConnectionDeletedPreviousObject5StrategyEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_5_authentication.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_5_authentication.py deleted file mode 100644 index fd41d894..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_5_authentication.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionDeletedPreviousObject5Authentication(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for authentication during login. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_5_connected_accounts.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_5_connected_accounts.py deleted file mode 100644 index e7cf5e11..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_5_connected_accounts.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionDeletedPreviousObject5ConnectedAccounts(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for connected accounts and Token Vault. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_5_metadata.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_5_metadata.py deleted file mode 100644 index 40c0ec2e..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_5_metadata.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionDeletedPreviousObject5Metadata(UniversalBaseModel): - """ - Metadata associated with the connection in the form of an object with string values (max 255 chars). Maximum of 10 metadata properties allowed. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_5_options.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_5_options.py deleted file mode 100644 index 3c68066e..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_5_options.py +++ /dev/null @@ -1,154 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_connection_deleted_previous_object_5_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject5OptionsSetUserRootAttributesEnum, -) -from .event_stream_cloud_event_connection_deleted_previous_object_5_options_upstream_params import ( - EventStreamCloudEventConnectionDeletedPreviousObject5OptionsUpstreamParams, -) - - -class EventStreamCloudEventConnectionDeletedPreviousObject5Options(UniversalBaseModel): - """ - Options for the 'ad' connection - """ - - agent_ip: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="agentIP"), - pydantic.Field( - alias="agentIP", - description="IP address of the AD connector agent used to validate that authentication requests originate from the corporate network for Kerberos authentication (managed by the AD Connector agent).", - ), - ] = None - """ - IP address of the AD connector agent used to validate that authentication requests originate from the corporate network for Kerberos authentication (managed by the AD Connector agent). - """ - - agent_mode: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="agentMode"), - pydantic.Field( - alias="agentMode", - description="When enabled, allows direct username/password authentication through the AD connector agent instead of WS-Federation protocol (managed by the AD Connector agent).", - ), - ] = None - """ - When enabled, allows direct username/password authentication through the AD connector agent instead of WS-Federation protocol (managed by the AD Connector agent). - """ - - agent_version: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="agentVersion"), - pydantic.Field( - alias="agentVersion", - description="Version identifier of the installed AD connector agent software (managed by the AD Connector agent).", - ), - ] = None - """ - Version identifier of the installed AD connector agent software (managed by the AD Connector agent). - """ - - brute_force_protection: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables Auth0's brute force protection to prevent credential stuffing attacks. When enabled, blocks suspicious login attempts from specific IP addresses after repeated failures. - """ - - cert_auth: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="certAuth"), - pydantic.Field( - alias="certAuth", - description="Enables client SSL certificate authentication for the AD connector, requiring HTTPS on the sign-in endpoint", - ), - ] = None - """ - Enables client SSL certificate authentication for the AD connector, requiring HTTPS on the sign-in endpoint - """ - - certs: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Array of X.509 certificates in PEM format used for validating SAML signatures from the AD identity provider (managed by the AD Connector agent). - """ - - disable_cache: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, disables caching of AD connector authentication results to ensure real-time validation against the directory - """ - - disable_self_service_change_password: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, hides the 'Forgot Password' link on login pages to prevent users from initiating self-service password resets - """ - - domain_aliases: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - List of domain names that can be used with identifier-first authentication flow to route users to this AD connection; each domain must be a valid DNS name up to 256 characters - """ - - icon_url: typing.Optional[str] = pydantic.Field(default=None) - """ - https url of the icon to be shown - """ - - ips: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Array of IP address ranges in CIDR notation used to determine if authentication requests originate from the corporate network for Kerberos or certificate authentication. - """ - - kerberos: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables Windows Integrated Authentication (Kerberos) for seamless SSO when users authenticate from within the corporate network IP ranges - """ - - kerberos_only: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true, restricts the connection to Kerberos-only authentication, disallowing username/password fallback. - """ - - non_persistent_attrs: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) - """ - - set_user_root_attributes: typing.Optional[ - EventStreamCloudEventConnectionDeletedPreviousObject5OptionsSetUserRootAttributesEnum - ] = None - sign_in_endpoint: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="signInEndpoint"), - pydantic.Field( - alias="signInEndpoint", - description="The sign-in endpoint type for the AD-LDAP connector agent (managed by the AD Connector agent).", - ), - ] = None - """ - The sign-in endpoint type for the AD-LDAP connector agent (managed by the AD Connector agent). - """ - - tenant_domain: typing.Optional[str] = pydantic.Field(default=None) - """ - Primary AD domain hint used for HRD and discovery. - """ - - thumbprints: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Array of certificate SHA-1 thumbprints for validating signatures. Managed by Auth0 when using the AD Connector agent. - """ - - upstream_params: typing.Optional[EventStreamCloudEventConnectionDeletedPreviousObject5OptionsUpstreamParams] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_5_options_set_user_root_attributes_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_5_options_set_user_root_attributes_enum.py deleted file mode 100644 index eda77ea4..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_5_options_set_user_root_attributes_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedPreviousObject5OptionsSetUserRootAttributesEnum = typing.Union[ - typing.Literal["on_each_login", "on_first_login", "never_on_login"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_5_options_upstream_params.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_5_options_upstream_params.py deleted file mode 100644 index 35f8e48f..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_5_options_upstream_params.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedPreviousObject5OptionsUpstreamParams = typing.Dict[str, typing.Any] -""" -Additional parameters to include in authorization requests sent to the identity provider. Useful for passing custom claims, selecting specific identity sources, or configuring provider-specific behavior. See https://auth0.com/docs/authenticate/identity-providers/pass-parameters-to-idps -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_5_strategy_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_5_strategy_enum.py deleted file mode 100644 index 794d251e..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_5_strategy_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedPreviousObject5StrategyEnum = typing.Union[typing.Literal["ad"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_6.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_6.py deleted file mode 100644 index 961405d5..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_6.py +++ /dev/null @@ -1,73 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_deleted_previous_object_6_authentication import ( - EventStreamCloudEventConnectionDeletedPreviousObject6Authentication, -) -from .event_stream_cloud_event_connection_deleted_previous_object_6_connected_accounts import ( - EventStreamCloudEventConnectionDeletedPreviousObject6ConnectedAccounts, -) -from .event_stream_cloud_event_connection_deleted_previous_object_6_metadata import ( - EventStreamCloudEventConnectionDeletedPreviousObject6Metadata, -) -from .event_stream_cloud_event_connection_deleted_previous_object_6_options import ( - EventStreamCloudEventConnectionDeletedPreviousObject6Options, -) -from .event_stream_cloud_event_connection_deleted_previous_object_6_strategy_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject6StrategyEnum, -) - - -class EventStreamCloudEventConnectionDeletedPreviousObject6(UniversalBaseModel): - authentication: typing.Optional[EventStreamCloudEventConnectionDeletedPreviousObject6Authentication] = None - connected_accounts: typing.Optional[EventStreamCloudEventConnectionDeletedPreviousObject6ConnectedAccounts] = None - display_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Connection name used in the new universal login experience - """ - - enabled_clients: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. - """ - - id: str = pydantic.Field() - """ - The connection's identifier - """ - - is_domain_connection: typing.Optional[bool] = pydantic.Field(default=None) - """ - true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) - """ - - metadata: typing.Optional[EventStreamCloudEventConnectionDeletedPreviousObject6Metadata] = None - name: str = pydantic.Field() - """ - The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 - """ - - realms: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. - """ - - options: typing.Optional[EventStreamCloudEventConnectionDeletedPreviousObject6Options] = None - show_as_button: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to `false`. - """ - - strategy: EventStreamCloudEventConnectionDeletedPreviousObject6StrategyEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_6_authentication.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_6_authentication.py deleted file mode 100644 index ec8a2633..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_6_authentication.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionDeletedPreviousObject6Authentication(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for authentication during login. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_6_connected_accounts.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_6_connected_accounts.py deleted file mode 100644 index 5740b766..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_6_connected_accounts.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionDeletedPreviousObject6ConnectedAccounts(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for connected accounts and Token Vault. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_6_metadata.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_6_metadata.py deleted file mode 100644 index 8d7055d5..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_6_metadata.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionDeletedPreviousObject6Metadata(UniversalBaseModel): - """ - Metadata associated with the connection in the form of an object with string values (max 255 chars). Maximum of 10 metadata properties allowed. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_6_options.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_6_options.py deleted file mode 100644 index 9c08e029..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_6_options.py +++ /dev/null @@ -1,139 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_deleted_previous_object_6_options_federated_connections_access_tokens import ( - EventStreamCloudEventConnectionDeletedPreviousObject6OptionsFederatedConnectionsAccessTokens, -) -from .event_stream_cloud_event_connection_deleted_previous_object_6_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject6OptionsSetUserRootAttributesEnum, -) -from .event_stream_cloud_event_connection_deleted_previous_object_6_options_upstream_params import ( - EventStreamCloudEventConnectionDeletedPreviousObject6OptionsUpstreamParams, -) - - -class EventStreamCloudEventConnectionDeletedPreviousObject6Options(UniversalBaseModel): - """ - Options for the 'google-apps' connection - """ - - admin_access_token_expiresin: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Expiration timestamp for the `admin_access_token` in ISO 8601 format. Auth0 uses this value to determine when to refresh the token. - """ - - allow_setting_login_scopes: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true, allows customization of OAuth scopes requested during user login. Custom scopes are appended to the mandatory email and profile scopes. When false or omitted, only the default email and profile scopes are used. This property is automatically enabled when Token Vault or Connected Accounts features are activated. - """ - - api_enable_groups: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables integration with the Google Workspace Admin SDK Directory API for groups. When true, Auth0 can synchronize groups & group memberships and supports inbound directory provisioning for groups. Defaults to false. - """ - - api_enable_users: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables integration with the Google Workspace Admin SDK Directory API. When true, Auth0 can retrieve extended user attributes (admin status, suspension status, group memberships) and supports inbound directory provisioning (SCIM). Defaults to true. - """ - - client_id: str = pydantic.Field() - """ - Your Google OAuth 2.0 client ID. You can find this in your [Google Cloud Console](https://console.cloud.google.com/apis/credentials) under the OAuth 2.0 Client IDs section. - """ - - domain: typing.Optional[str] = pydantic.Field(default=None) - """ - Primary Google Workspace domain name that users must belong to. - """ - - domain_aliases: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication. - """ - - email: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether the OAuth flow requests the `email` scope. - """ - - ext_agreed_terms: typing.Optional[bool] = pydantic.Field(default=None) - """ - Fetches the `agreedToTerms` flag from the Google Directory profile. - """ - - ext_groups: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables enrichment with Google group memberships (required for `ext_groups_extended`). - """ - - ext_groups_extended: typing.Optional[bool] = pydantic.Field(default=None) - """ - Controls whether enriched group entries include `id`, `email`, `name` (true) or only the group name (false); can only be set when `ext_groups` is true. - """ - - ext_is_admin: typing.Optional[bool] = pydantic.Field(default=None) - """ - Fetches the Google Directory admin flag for the signing-in user. - """ - - ext_is_suspended: typing.Optional[bool] = pydantic.Field(default=None) - """ - Fetches the Google Directory suspended flag for the signing-in user. - """ - - federated_connections_access_tokens: typing.Optional[ - EventStreamCloudEventConnectionDeletedPreviousObject6OptionsFederatedConnectionsAccessTokens - ] = None - handle_login_from_social: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, users who sign in with their Google account through a social login will be automatically routed to this Google Workspace connection if their email domain matches the configured tenant_domain or domain_aliases. This ensures enterprise users authenticate through their organization's Google Workspace identity provider rather than through a generic Google social login, enabling access to directory-based attributes and enforcing organizational security policies. Defaults to true for new connections. - """ - - icon_url: typing.Optional[str] = pydantic.Field(default=None) - """ - URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows. - """ - - map_user_id_to_id: typing.Optional[bool] = pydantic.Field(default=None) - """ - Determines how Auth0 generates the user_id for Google Workspace users. When false (default), the user's email address is used. When true, Google's stable numeric user ID is used instead, which persists even if the user's email changes. This setting can only be configured when creating the connection and cannot be changed afterward. - """ - - non_persistent_attrs: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) - """ - - profile: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether the OAuth flow requests the `profile` scope. - """ - - scope: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Additional OAuth scopes requested beyond the default `email profile` scopes; ignored unless `allow_setting_login_scopes` is true. - """ - - set_user_root_attributes: typing.Optional[ - EventStreamCloudEventConnectionDeletedPreviousObject6OptionsSetUserRootAttributesEnum - ] = None - tenant_domain: typing.Optional[str] = pydantic.Field(default=None) - """ - The Google Workspace primary domain used to identify the organization during authentication. - """ - - upstream_params: typing.Optional[EventStreamCloudEventConnectionDeletedPreviousObject6OptionsUpstreamParams] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_6_options_federated_connections_access_tokens.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_6_options_federated_connections_access_tokens.py deleted file mode 100644 index c5a2a793..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_6_options_federated_connections_access_tokens.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionDeletedPreviousObject6OptionsFederatedConnectionsAccessTokens(UniversalBaseModel): - """ - Configuration for storing identity provider tokens in Auth0's Token Vault. When active, Auth0 securely stores access and refresh tokens from federated logins, enabling your application to make authenticated API calls on behalf of users. - """ - - active: bool = pydantic.Field() - """ - Enables refresh tokens and access tokens collection for federated connections - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_6_options_set_user_root_attributes_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_6_options_set_user_root_attributes_enum.py deleted file mode 100644 index ff8c18cb..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_6_options_set_user_root_attributes_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedPreviousObject6OptionsSetUserRootAttributesEnum = typing.Union[ - typing.Literal["on_each_login", "on_first_login", "never_on_login"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_6_options_upstream_params.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_6_options_upstream_params.py deleted file mode 100644 index 14355fd4..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_6_options_upstream_params.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedPreviousObject6OptionsUpstreamParams = typing.Dict[str, typing.Any] -""" -Additional parameters to include in authorization requests sent to the identity provider. Useful for passing custom claims, selecting specific identity sources, or configuring provider-specific behavior. See https://auth0.com/docs/authenticate/identity-providers/pass-parameters-to-idps -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_6_strategy_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_6_strategy_enum.py deleted file mode 100644 index 2ef97db4..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_6_strategy_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedPreviousObject6StrategyEnum = typing.Union[ - typing.Literal["google-apps"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_7.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_7.py deleted file mode 100644 index 5c569707..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_7.py +++ /dev/null @@ -1,73 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_deleted_previous_object_7_authentication import ( - EventStreamCloudEventConnectionDeletedPreviousObject7Authentication, -) -from .event_stream_cloud_event_connection_deleted_previous_object_7_connected_accounts import ( - EventStreamCloudEventConnectionDeletedPreviousObject7ConnectedAccounts, -) -from .event_stream_cloud_event_connection_deleted_previous_object_7_metadata import ( - EventStreamCloudEventConnectionDeletedPreviousObject7Metadata, -) -from .event_stream_cloud_event_connection_deleted_previous_object_7_options import ( - EventStreamCloudEventConnectionDeletedPreviousObject7Options, -) -from .event_stream_cloud_event_connection_deleted_previous_object_7_strategy_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject7StrategyEnum, -) - - -class EventStreamCloudEventConnectionDeletedPreviousObject7(UniversalBaseModel): - authentication: typing.Optional[EventStreamCloudEventConnectionDeletedPreviousObject7Authentication] = None - connected_accounts: typing.Optional[EventStreamCloudEventConnectionDeletedPreviousObject7ConnectedAccounts] = None - display_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Connection name used in the new universal login experience - """ - - enabled_clients: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. - """ - - id: str = pydantic.Field() - """ - The connection's identifier - """ - - is_domain_connection: typing.Optional[bool] = pydantic.Field(default=None) - """ - true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) - """ - - metadata: typing.Optional[EventStreamCloudEventConnectionDeletedPreviousObject7Metadata] = None - name: str = pydantic.Field() - """ - The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 - """ - - realms: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. - """ - - options: typing.Optional[EventStreamCloudEventConnectionDeletedPreviousObject7Options] = None - show_as_button: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to `false`. - """ - - strategy: EventStreamCloudEventConnectionDeletedPreviousObject7StrategyEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_7_authentication.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_7_authentication.py deleted file mode 100644 index 6844f20b..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_7_authentication.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionDeletedPreviousObject7Authentication(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for authentication during login. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_7_connected_accounts.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_7_connected_accounts.py deleted file mode 100644 index 044e8ac2..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_7_connected_accounts.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionDeletedPreviousObject7ConnectedAccounts(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for connected accounts and Token Vault. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_7_metadata.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_7_metadata.py deleted file mode 100644 index 24e9a597..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_7_metadata.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionDeletedPreviousObject7Metadata(UniversalBaseModel): - """ - Metadata associated with the connection in the form of an object with string values (max 255 chars). Maximum of 10 metadata properties allowed. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_7_options.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_7_options.py deleted file mode 100644 index dccb1736..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_7_options.py +++ /dev/null @@ -1,179 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_connection_deleted_previous_object_7_options_federated_connections_access_tokens import ( - EventStreamCloudEventConnectionDeletedPreviousObject7OptionsFederatedConnectionsAccessTokens, -) -from .event_stream_cloud_event_connection_deleted_previous_object_7_options_identity_api_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject7OptionsIdentityApiEnum, -) -from .event_stream_cloud_event_connection_deleted_previous_object_7_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject7OptionsSetUserRootAttributesEnum, -) -from .event_stream_cloud_event_connection_deleted_previous_object_7_options_should_trust_email_verified_connection_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum, -) -from .event_stream_cloud_event_connection_deleted_previous_object_7_options_tenant_domain_one import ( - EventStreamCloudEventConnectionDeletedPreviousObject7OptionsTenantDomainOne, -) -from .event_stream_cloud_event_connection_deleted_previous_object_7_options_upstream_params import ( - EventStreamCloudEventConnectionDeletedPreviousObject7OptionsUpstreamParams, -) -from .event_stream_cloud_event_connection_deleted_previous_object_7_options_userid_attribute_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject7OptionsUseridAttributeEnum, -) -from .event_stream_cloud_event_connection_deleted_previous_object_7_options_waad_protocol_enum import ( - EventStreamCloudEventConnectionDeletedPreviousObject7OptionsWaadProtocolEnum, -) - - -class EventStreamCloudEventConnectionDeletedPreviousObject7Options(UniversalBaseModel): - """ - Options for the 'waad' connection - """ - - api_enable_users: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enable users API - """ - - app_domain: typing.Optional[str] = pydantic.Field(default=None) - """ - The Azure AD application domain (e.g., 'contoso.onmicrosoft.com'). Used primarily with WS-Federation protocol and Azure AD v1 endpoints. - """ - - app_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The Application ID URI (App ID URI) for the Azure AD application. Required when using Azure AD v1 with the Resource Owner Password flow. Used to identify the resource being requested in OAuth token requests. - """ - - basic_profile: typing.Optional[bool] = pydantic.Field(default=None) - """ - Includes basic user profile information from Azure AD (name, email, given_name, family_name). Always enabled and required - represents the minimum profile data retrieved during authentication. - """ - - cert_rollover_notification: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Timestamp of the last certificate expiring soon notification. - """ - - client_id: str = pydantic.Field() - """ - OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider. - """ - - domain: typing.Optional[str] = pydantic.Field(default=None) - """ - The primary Azure AD tenant domain (e.g., 'contoso.onmicrosoft.com' or 'contoso.com'). - """ - - domain_aliases: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Alternative domain names associated with this Azure AD tenant. Allows users from multiple verified domains to authenticate through this connection. Can be an array of domain strings. - """ - - ext_groups: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled (true), retrieves and stores Azure AD security group memberships for the user. Requires Microsoft Graph API permissions (Directory.Read.All). Allows configuring max_groups_to_retrieve. - """ - - ext_nested_groups: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true, stores all groups the user is member of, including transitive group memberships (groups within groups). When false (default), only direct group memberships are included. - """ - - ext_profile: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled (true), retrieves extended profile attributes from Azure AD via Microsoft Graph API (job title, department, office location, etc.). Requires Graph API permissions. Only available with Azure AD v1 or when explicitly enabled for v2. - """ - - federated_connections_access_tokens: typing.Optional[ - EventStreamCloudEventConnectionDeletedPreviousObject7OptionsFederatedConnectionsAccessTokens - ] = None - granted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether admin consent has been granted for the required Azure AD permissions. Read-only status field managed by Auth0 during the OAuth authorization flow. - """ - - icon_url: typing.Optional[str] = pydantic.Field(default=None) - """ - URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows. - """ - - identity_api: typing.Optional[EventStreamCloudEventConnectionDeletedPreviousObject7OptionsIdentityApiEnum] = None - max_groups_to_retrieve: typing.Optional[str] = pydantic.Field(default=None) - """ - Maximum number of Azure AD groups to retrieve per user during authentication. Helps prevent performance issues for users in many groups. Only applies when ext_groups is enabled. Leave empty to use platform default. - """ - - non_persistent_attrs: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) - """ - - scope: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - OAuth 2.0 scopes to request from Azure AD during authentication. Each scope represents a permission (e.g., 'User.Read', 'Group.Read.All'). Only applies with Microsoft Identity Platform v2.0. See Microsoft Graph permissions reference for available scopes. - """ - - set_user_root_attributes: typing.Optional[ - EventStreamCloudEventConnectionDeletedPreviousObject7OptionsSetUserRootAttributesEnum - ] = None - should_trust_email_verified_connection: typing.Optional[ - EventStreamCloudEventConnectionDeletedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum - ] = None - tenant_domain: typing.Optional[EventStreamCloudEventConnectionDeletedPreviousObject7OptionsTenantDomainOne] = None - tenant_id: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="tenantId"), - pydantic.Field( - alias="tenantId", - description="The Azure AD tenant ID as a UUID. The unique identifier for your Azure AD organization. Must be a valid 36-character UUID.", - ), - ] = None - """ - The Azure AD tenant ID as a UUID. The unique identifier for your Azure AD organization. Must be a valid 36-character UUID. - """ - - thumbprints: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Array of certificate thumbprints (SHA-128/SHA-256/SHA-512 hex hashes) for validating SAML signatures. Used with WS-Federation protocol. Maximum 20 thumbprints. Each thumbprint must be a hexadecimal string. - """ - - upstream_params: typing.Optional[EventStreamCloudEventConnectionDeletedPreviousObject7OptionsUpstreamParams] = None - use_wsfed: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates WS-Federation protocol usage. When true, uses WS-Federation; when false, uses OpenID Connect. - """ - - use_common_endpoint: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="useCommonEndpoint"), - pydantic.Field( - alias="useCommonEndpoint", - description="When enabled (true), uses the Azure AD common endpoint for multi-tenant authentication. Allows users from any Azure AD organization to sign in. Requires userid_attribute set to 'sub' (not 'oid'). Cannot be used with SCIM provisioning. Defaults to false.", - ), - ] = None - """ - When enabled (true), uses the Azure AD common endpoint for multi-tenant authentication. Allows users from any Azure AD organization to sign in. Requires userid_attribute set to 'sub' (not 'oid'). Cannot be used with SCIM provisioning. Defaults to false. - """ - - userid_attribute: typing.Optional[ - EventStreamCloudEventConnectionDeletedPreviousObject7OptionsUseridAttributeEnum - ] = None - waad_protocol: typing.Optional[EventStreamCloudEventConnectionDeletedPreviousObject7OptionsWaadProtocolEnum] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_7_options_federated_connections_access_tokens.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_7_options_federated_connections_access_tokens.py deleted file mode 100644 index 29df5e9f..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_7_options_federated_connections_access_tokens.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionDeletedPreviousObject7OptionsFederatedConnectionsAccessTokens(UniversalBaseModel): - """ - Configuration for storing identity provider tokens in Auth0's Token Vault. When active, Auth0 securely stores access and refresh tokens from federated logins, enabling your application to make authenticated API calls on behalf of users. - """ - - active: bool = pydantic.Field() - """ - Enables refresh tokens and access tokens collection for federated connections - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_7_options_identity_api_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_7_options_identity_api_enum.py deleted file mode 100644 index 7eeeabe9..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_7_options_identity_api_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedPreviousObject7OptionsIdentityApiEnum = typing.Union[ - typing.Literal["microsoft-identity-platform-v2.0", "azure-active-directory-v1.0"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_7_options_set_user_root_attributes_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_7_options_set_user_root_attributes_enum.py deleted file mode 100644 index b33e07b0..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_7_options_set_user_root_attributes_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedPreviousObject7OptionsSetUserRootAttributesEnum = typing.Union[ - typing.Literal["on_each_login", "on_first_login", "never_on_login"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_7_options_should_trust_email_verified_connection_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_7_options_should_trust_email_verified_connection_enum.py deleted file mode 100644 index 53570390..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_7_options_should_trust_email_verified_connection_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum = typing.Union[ - typing.Literal["never_set_emails_as_verified", "always_set_emails_as_verified"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_7_options_tenant_domain_one.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_7_options_tenant_domain_one.py deleted file mode 100644 index 8ce15931..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_7_options_tenant_domain_one.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -EventStreamCloudEventConnectionDeletedPreviousObject7OptionsTenantDomainOne = str -""" -Azure AD tenant domain as a UUID tenant ID. -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_7_options_upstream_params.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_7_options_upstream_params.py deleted file mode 100644 index 1dd6ce9d..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_7_options_upstream_params.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedPreviousObject7OptionsUpstreamParams = typing.Dict[str, typing.Any] -""" -Additional parameters to include in authorization requests sent to the identity provider. Useful for passing custom claims, selecting specific identity sources, or configuring provider-specific behavior. See https://auth0.com/docs/authenticate/identity-providers/pass-parameters-to-idps -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_7_options_userid_attribute_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_7_options_userid_attribute_enum.py deleted file mode 100644 index 61caca09..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_7_options_userid_attribute_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedPreviousObject7OptionsUseridAttributeEnum = typing.Union[ - typing.Literal["oid", "sub"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_7_options_waad_protocol_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_7_options_waad_protocol_enum.py deleted file mode 100644 index f7830f24..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_7_options_waad_protocol_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedPreviousObject7OptionsWaadProtocolEnum = typing.Union[ - typing.Literal["ws-federation", "openid-connect"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_7_strategy_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_7_strategy_enum.py deleted file mode 100644 index 4257c96a..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_previous_object_7_strategy_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedPreviousObject7StrategyEnum = typing.Union[typing.Literal["waad"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_deleted_type_enum.py deleted file mode 100644 index 254281e7..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_deleted_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionDeletedTypeEnum = typing.Union[typing.Literal["connection.deleted"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated.py deleted file mode 100644 index 38cb6f23..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_updated_cloud_event import EventStreamCloudEventConnectionUpdatedCloudEvent - - -class EventStreamCloudEventConnectionUpdated(UniversalBaseModel): - """ - SSE message for connection.updated. - """ - - offset: str = pydantic.Field() - """ - Opaque cursor representing position in the stream. Pass as the `from` query parameter to resume. - """ - - event: EventStreamCloudEventConnectionUpdatedCloudEvent - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_cloud_event.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_cloud_event.py deleted file mode 100644 index 15b52cd0..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_cloud_event.py +++ /dev/null @@ -1,77 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_a_0_purpose_enum import EventStreamCloudEventA0PurposeEnum -from .event_stream_cloud_event_connection_updated_cloud_event_type_enum import ( - EventStreamCloudEventConnectionUpdatedCloudEventTypeEnum, -) -from .event_stream_cloud_event_connection_updated_data import EventStreamCloudEventConnectionUpdatedData -from .event_stream_cloud_event_spec_version_enum import EventStreamCloudEventSpecVersionEnum - - -class EventStreamCloudEventConnectionUpdatedCloudEvent(UniversalBaseModel): - """ - Represents an event that occurs when a connection is updated. - """ - - specversion: EventStreamCloudEventSpecVersionEnum - type: EventStreamCloudEventConnectionUpdatedCloudEventTypeEnum - source: str = pydantic.Field() - """ - The source of the event. This will take the form 'urn:auth0:.'. - """ - - id: str = pydantic.Field() - """ - A unique identifier for the event. - """ - - time: dt.datetime = pydantic.Field() - """ - An ISO-8601 timestamp indicating when the event physically occurred. - """ - - data: EventStreamCloudEventConnectionUpdatedData - a_0_tenant: typing_extensions.Annotated[ - str, - FieldMetadata(alias="a0tenant"), - pydantic.Field(alias="a0tenant", description="The auth0 tenant ID to which the event is associated."), - ] - """ - The auth0 tenant ID to which the event is associated. - """ - - a_0_stream: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="a0stream"), - pydantic.Field( - alias="a0stream", - description="The auth0 event stream ID of the stream the event was delivered on.\nPresent when the event is delivered via an event stream; omitted when\nevents are retrieved via the Events API (GET /api/v2/events).", - ), - ] = None - """ - The auth0 event stream ID of the stream the event was delivered on. - Present when the event is delivered via an event stream; omitted when - events are retrieved via the Events API (GET /api/v2/events). - """ - - a_0_purpose: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventA0PurposeEnum], - FieldMetadata(alias="a0purpose"), - pydantic.Field(alias="a0purpose"), - ] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_cloud_event_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_cloud_event_type_enum.py deleted file mode 100644 index 245ce6f2..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_cloud_event_type_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedCloudEventTypeEnum = typing.Union[ - typing.Literal["connection.updated"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_data.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_data.py deleted file mode 100644 index 3621a782..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_data.py +++ /dev/null @@ -1,30 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_updated_object import EventStreamCloudEventConnectionUpdatedObject -from .event_stream_cloud_event_connection_updated_previous_object import ( - EventStreamCloudEventConnectionUpdatedPreviousObject, -) -from .event_stream_cloud_event_context import EventStreamCloudEventContext - - -class EventStreamCloudEventConnectionUpdatedData(UniversalBaseModel): - """ - The event payload. - """ - - object: EventStreamCloudEventConnectionUpdatedObject - previous_object: typing.Optional[EventStreamCloudEventConnectionUpdatedPreviousObject] = None - context: typing.Optional[EventStreamCloudEventContext] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object.py deleted file mode 100644 index 30ebccc4..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .event_stream_cloud_event_connection_updated_object_0 import EventStreamCloudEventConnectionUpdatedObject0 -from .event_stream_cloud_event_connection_updated_object_1 import EventStreamCloudEventConnectionUpdatedObject1 -from .event_stream_cloud_event_connection_updated_object_2 import EventStreamCloudEventConnectionUpdatedObject2 -from .event_stream_cloud_event_connection_updated_object_3 import EventStreamCloudEventConnectionUpdatedObject3 -from .event_stream_cloud_event_connection_updated_object_4 import EventStreamCloudEventConnectionUpdatedObject4 -from .event_stream_cloud_event_connection_updated_object_5 import EventStreamCloudEventConnectionUpdatedObject5 -from .event_stream_cloud_event_connection_updated_object_6 import EventStreamCloudEventConnectionUpdatedObject6 -from .event_stream_cloud_event_connection_updated_object_7 import EventStreamCloudEventConnectionUpdatedObject7 - -EventStreamCloudEventConnectionUpdatedObject = typing.Union[ - EventStreamCloudEventConnectionUpdatedObject0, - EventStreamCloudEventConnectionUpdatedObject1, - EventStreamCloudEventConnectionUpdatedObject2, - EventStreamCloudEventConnectionUpdatedObject3, - EventStreamCloudEventConnectionUpdatedObject4, - EventStreamCloudEventConnectionUpdatedObject5, - EventStreamCloudEventConnectionUpdatedObject6, - EventStreamCloudEventConnectionUpdatedObject7, -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0.py deleted file mode 100644 index d9dd8848..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0.py +++ /dev/null @@ -1,73 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_updated_object_0_authentication import ( - EventStreamCloudEventConnectionUpdatedObject0Authentication, -) -from .event_stream_cloud_event_connection_updated_object_0_connected_accounts import ( - EventStreamCloudEventConnectionUpdatedObject0ConnectedAccounts, -) -from .event_stream_cloud_event_connection_updated_object_0_metadata import ( - EventStreamCloudEventConnectionUpdatedObject0Metadata, -) -from .event_stream_cloud_event_connection_updated_object_0_options import ( - EventStreamCloudEventConnectionUpdatedObject0Options, -) -from .event_stream_cloud_event_connection_updated_object_0_strategy_enum import ( - EventStreamCloudEventConnectionUpdatedObject0StrategyEnum, -) - - -class EventStreamCloudEventConnectionUpdatedObject0(UniversalBaseModel): - authentication: typing.Optional[EventStreamCloudEventConnectionUpdatedObject0Authentication] = None - display_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Connection name used in the new universal login experience - """ - - enabled_clients: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. - """ - - id: str = pydantic.Field() - """ - The connection's identifier - """ - - is_domain_connection: typing.Optional[bool] = pydantic.Field(default=None) - """ - true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) - """ - - metadata: typing.Optional[EventStreamCloudEventConnectionUpdatedObject0Metadata] = None - name: str = pydantic.Field() - """ - The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 - """ - - realms: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. - """ - - connected_accounts: typing.Optional[EventStreamCloudEventConnectionUpdatedObject0ConnectedAccounts] = None - options: typing.Optional[EventStreamCloudEventConnectionUpdatedObject0Options] = None - show_as_button: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to `false`. - """ - - strategy: EventStreamCloudEventConnectionUpdatedObject0StrategyEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_authentication.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_authentication.py deleted file mode 100644 index e314875c..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_authentication.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionUpdatedObject0Authentication(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for authentication during login. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_connected_accounts.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_connected_accounts.py deleted file mode 100644 index c197a81b..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_connected_accounts.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionUpdatedObject0ConnectedAccounts(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for connected accounts and Token Vault. - """ - - active: bool - cross_app_access: typing.Optional[bool] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_metadata.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_metadata.py deleted file mode 100644 index 0f890ecf..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_metadata.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionUpdatedObject0Metadata(UniversalBaseModel): - """ - Metadata associated with the connection in the form of an object with string values (max 255 chars). Maximum of 10 metadata properties allowed. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_options.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_options.py deleted file mode 100644 index 3ac78b3b..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_options.py +++ /dev/null @@ -1,174 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_connection_updated_object_0_options_attribute_map import ( - EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMap, -) -from .event_stream_cloud_event_connection_updated_object_0_options_connection_settings import ( - EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettings, -) -from .event_stream_cloud_event_connection_updated_object_0_options_dpop_signing_alg_enum import ( - EventStreamCloudEventConnectionUpdatedObject0OptionsDpopSigningAlgEnum, -) -from .event_stream_cloud_event_connection_updated_object_0_options_federated_connections_access_tokens import ( - EventStreamCloudEventConnectionUpdatedObject0OptionsFederatedConnectionsAccessTokens, -) -from .event_stream_cloud_event_connection_updated_object_0_options_id_token_signed_response_algs_item_enum import ( - EventStreamCloudEventConnectionUpdatedObject0OptionsIdTokenSignedResponseAlgsItemEnum, -) -from .event_stream_cloud_event_connection_updated_object_0_options_oidc_metadata import ( - EventStreamCloudEventConnectionUpdatedObject0OptionsOidcMetadata, -) -from .event_stream_cloud_event_connection_updated_object_0_options_schema_version_enum import ( - EventStreamCloudEventConnectionUpdatedObject0OptionsSchemaVersionEnum, -) -from .event_stream_cloud_event_connection_updated_object_0_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionUpdatedObject0OptionsSetUserRootAttributesEnum, -) -from .event_stream_cloud_event_connection_updated_object_0_options_token_endpoint_auth_method_enum import ( - EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthMethodEnum, -) -from .event_stream_cloud_event_connection_updated_object_0_options_token_endpoint_auth_signing_alg_enum import ( - EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthSigningAlgEnum, -) -from .event_stream_cloud_event_connection_updated_object_0_options_token_endpoint_jwtca_aud_format_enum import ( - EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointJwtcaAudFormatEnum, -) -from .event_stream_cloud_event_connection_updated_object_0_options_type_enum import ( - EventStreamCloudEventConnectionUpdatedObject0OptionsTypeEnum, -) -from .event_stream_cloud_event_connection_updated_object_0_options_upstream_params import ( - EventStreamCloudEventConnectionUpdatedObject0OptionsUpstreamParams, -) - - -class EventStreamCloudEventConnectionUpdatedObject0Options(UniversalBaseModel): - """ - Options for the 'oidc' connection - """ - - authorization_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow. - """ - - client_id: str = pydantic.Field() - """ - OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider. - """ - - connection_settings: typing.Optional[EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettings] = None - domain_aliases: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication. - """ - - dpop_signing_alg: typing.Optional[EventStreamCloudEventConnectionUpdatedObject0OptionsDpopSigningAlgEnum] = None - federated_connections_access_tokens: typing.Optional[ - EventStreamCloudEventConnectionUpdatedObject0OptionsFederatedConnectionsAccessTokens - ] = None - icon_url: typing.Optional[str] = pydantic.Field(default=None) - """ - https url of the icon to be shown - """ - - id_token_session_expiry_supported: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether the identity provider supports session expiry via the id_token. If true, the system will use the session_expiry claim in the id_token to determine session expiry. - """ - - id_token_signed_response_algs: typing.Optional[ - typing.List[EventStreamCloudEventConnectionUpdatedObject0OptionsIdTokenSignedResponseAlgsItemEnum] - ] = pydantic.Field(default=None) - """ - List of algorithms allowed to verify the ID tokens. Applicable when strategy=oidc or okta. - """ - - issuer: typing.Optional[str] = pydantic.Field(default=None) - """ - The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider. - """ - - jwks_uri: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures. - """ - - non_persistent_attrs: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) - """ - - oidc_metadata: typing.Optional[EventStreamCloudEventConnectionUpdatedObject0OptionsOidcMetadata] = None - schema_version: typing.Optional[EventStreamCloudEventConnectionUpdatedObject0OptionsSchemaVersionEnum] = None - scope: typing.Optional[str] = pydantic.Field(default=None) - """ - Space-separated list of OAuth 2.0 scopes requested during authorization. Must include 'openid' (required by OIDC spec). Common values: 'openid profile email'. Additional scopes depend on the identity provider. - """ - - send_back_channel_nonce: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true and type is 'back_channel', includes a cryptographic nonce in authorization requests to prevent replay attacks. The identity provider must include this nonce in the ID token for validation. - """ - - set_user_root_attributes: typing.Optional[ - EventStreamCloudEventConnectionUpdatedObject0OptionsSetUserRootAttributesEnum - ] = None - tenant_domain: typing.Optional[str] = pydantic.Field(default=None) - """ - Tenant domain - """ - - token_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow. - """ - - token_endpoint_auth_method: typing.Optional[ - EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthMethodEnum - ] = None - token_endpoint_auth_signing_alg: typing.Optional[ - EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthSigningAlgEnum - ] = None - token_endpoint_jwtca_aud_format: typing.Optional[ - EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointJwtcaAudFormatEnum - ] = None - upstream_params: typing.Optional[EventStreamCloudEventConnectionUpdatedObject0OptionsUpstreamParams] = None - use_oauth_spec_scope: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="useOauthSpecScope"), - pydantic.Field( - alias="useOauthSpecScope", - description="When true, uses space-delimited scopes (per OAuth 2.0 spec) instead of comma-delimited when calling the identity provider's authorization endpoint. Only relevant when using the connection_scope parameter. See https://auth0.com/docs/authenticate/identity-providers/adding-scopes-for-an-external-idp#pass-scopes-to-authorize-endpoint", - ), - ] = None - """ - When true, uses space-delimited scopes (per OAuth 2.0 spec) instead of comma-delimited when calling the identity provider's authorization endpoint. Only relevant when using the connection_scope parameter. See https://auth0.com/docs/authenticate/identity-providers/adding-scopes-for-an-external-idp#pass-scopes-to-authorize-endpoint - """ - - userinfo_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token. - """ - - attribute_map: typing.Optional[EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMap] = None - discovery_url: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's OIDC Discovery endpoint (/.well-known/openid-configuration). When provided and oidc_metadata is empty, Auth0 automatically retrieves the provider's configuration including endpoints and supported features. - """ - - type: typing.Optional[EventStreamCloudEventConnectionUpdatedObject0OptionsTypeEnum] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_options_attribute_map.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_options_attribute_map.py deleted file mode 100644 index 107b5d11..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_options_attribute_map.py +++ /dev/null @@ -1,37 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_updated_object_0_options_attribute_map_attributes import ( - EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMapAttributes, -) -from .event_stream_cloud_event_connection_updated_object_0_options_attribute_map_mapping_mode_enum import ( - EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMapMappingModeEnum, -) - - -class EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMap(UniversalBaseModel): - """ - Configuration for mapping claims from the identity provider to Auth0 user profile attributes. Allows customizing which IdP claims populate user fields and how they are transformed. - """ - - attributes: typing.Optional[EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMapAttributes] = None - userinfo_scope: typing.Optional[str] = pydantic.Field(default=None) - """ - Scopes to send to the IdP's Userinfo endpoint - """ - - mapping_mode: typing.Optional[EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMapMappingModeEnum] = ( - None - ) - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_options_attribute_map_attributes.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_options_attribute_map_attributes.py deleted file mode 100644 index 14c8a21f..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_options_attribute_map_attributes.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMapAttributes = typing.Dict[str, typing.Any] -""" -Object containing mapping details for incoming claims -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_options_attribute_map_mapping_mode_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_options_attribute_map_mapping_mode_enum.py deleted file mode 100644 index df45d0a3..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_options_attribute_map_mapping_mode_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMapMappingModeEnum = typing.Union[ - typing.Literal["bind_all", "use_map"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_options_connection_settings.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_options_connection_settings.py deleted file mode 100644 index 4b6a925c..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_options_connection_settings.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_updated_object_0_options_connection_settings_pkce_enum import ( - EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettingsPkceEnum, -) - - -class EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettings(UniversalBaseModel): - """ - OAuth 2.0 PKCE (Proof Key for Code Exchange) settings. PKCE enhances security for public clients by preventing authorization code interception attacks. 'auto' (recommended) uses the strongest method supported by the IdP. - """ - - pkce: typing.Optional[EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettingsPkceEnum] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_options_connection_settings_pkce_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_options_connection_settings_pkce_enum.py deleted file mode 100644 index 984b1c65..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_options_connection_settings_pkce_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettingsPkceEnum = typing.Union[ - typing.Literal["auto", "S256", "plain", "disabled"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_options_dpop_signing_alg_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_options_dpop_signing_alg_enum.py deleted file mode 100644 index 556e0fc7..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_options_dpop_signing_alg_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedObject0OptionsDpopSigningAlgEnum = typing.Union[ - typing.Literal["ES256", "ES384", "ES512", "Ed25519"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_options_federated_connections_access_tokens.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_options_federated_connections_access_tokens.py deleted file mode 100644 index e4948678..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_options_federated_connections_access_tokens.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionUpdatedObject0OptionsFederatedConnectionsAccessTokens(UniversalBaseModel): - """ - Configuration for storing identity provider tokens in Auth0's Token Vault. When active, Auth0 securely stores access and refresh tokens from federated logins, enabling your application to make authenticated API calls on behalf of users. - """ - - active: bool = pydantic.Field() - """ - Enables refresh tokens and access tokens collection for federated connections - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_options_id_token_signed_response_algs_item_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_options_id_token_signed_response_algs_item_enum.py deleted file mode 100644 index 6a89b877..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_options_id_token_signed_response_algs_item_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedObject0OptionsIdTokenSignedResponseAlgsItemEnum = typing.Union[ - typing.Literal["ES256", "ES384", "PS256", "PS384", "RS256", "RS384", "RS512"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_options_oidc_metadata.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_options_oidc_metadata.py deleted file mode 100644 index 5d13bc1f..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_options_oidc_metadata.py +++ /dev/null @@ -1,211 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionUpdatedObject0OptionsOidcMetadata(UniversalBaseModel): - """ - OpenID Connect Provider Metadata as per https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata - """ - - acr_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the Authentication Context Class References that this OP supports - """ - - authorization_endpoint: str = pydantic.Field() - """ - URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow. - """ - - claim_types_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the Claim Types that the OpenID Provider supports. These Claim Types are described in Section 5.6 of OpenID Connect Core 1.0 [OpenID.Core]. If omitted, the implementation supports only normal Claims. - """ - - claims_locales_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Languages and scripts supported for values in Claims being returned, represented as a JSON array of BCP47 [RFC5646] language tag values. Not all languages and scripts are necessarily supported for all Claim values. - """ - - claims_parameter_supported: typing.Optional[bool] = pydantic.Field(default=None) - """ - Boolean value specifying whether the OP supports use of the claims parameter, with true indicating support. If omitted, the default value is false. - """ - - claims_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the Claim Names of the Claims that the OpenID Provider MAY be able to supply values for. Note that for privacy or other reasons, this might not be an exhaustive list. - """ - - code_challenge_methods_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636. - """ - - display_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used. - """ - - dpop_signing_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS signing algorithms (alg values) supported for DPoP proof JWT signing. - """ - - end_session_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's logout/end session endpoint. When configured as a static URL, users are redirected here after logging out from Auth0. Must use HTTPS scheme. - """ - - grant_types_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the OAuth 2.0 Grant Type values that this OP supports. Dynamic OpenID Providers MUST support the authorization_code and implicit Grant Type values and MAY support other Grant Types. If omitted, the default value is ["authorization_code", "implicit"]. - """ - - id_token_encryption_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT - """ - - id_token_encryption_enc_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for the ID Token to encode the Claims in a JWT [JWT]. - """ - - id_token_signing_alg_values_supported: typing.List[str] = pydantic.Field() - """ - A list of the JWS signing algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be included. The value none MAY be supported, but MUST NOT be used unless the Response Type used returns no ID Token from the Authorization Endpoint (such as when using the Authorization Code Flow). https://datatracker.ietf.org/doc/html/rfc7518 - """ - - issuer: str = pydantic.Field() - """ - The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider. - """ - - jwks_uri: str = pydantic.Field() - """ - URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures. - """ - - op_policy_uri: typing.Optional[str] = pydantic.Field(default=None) - """ - URL that the OpenID Provider provides to the person registering the Client to read about the OPs requirements on how the Relying Party can use the data provided by the OP. The registration process SHOULD display this URL to the person registering the Client if it is given. - """ - - op_tos_uri: typing.Optional[str] = pydantic.Field(default=None) - """ - URL that the OpenID Provider provides to the person registering the Client to read about OpenID Providers terms of service. The registration process SHOULD display this URL to the person registering the Client if it is given. - """ - - registration_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the OPs Dynamic Client Registration Endpoint. RECOMMENDED but not REQUIRED. https://openid.net/specs/openid-connect-discovery-1_0.html#OpenID.Registration - """ - - request_object_encryption_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference. - """ - - request_object_encryption_enc_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference. - """ - - request_object_signing_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for Request Objects, which are described in Section 6.1 of OpenID Connect Core 1.0 [OpenID.Core]. These algorithms are used both when the Request Object is passed by value (using the request parameter) and when it is passed by reference (using the request_uri parameter). Servers SHOULD support none and RS256. - """ - - request_parameter_supported: typing.Optional[bool] = pydantic.Field(default=None) - """ - Boolean value specifying whether the OP supports use of the request parameter, with true indicating support. If omitted, the default value is false. - """ - - request_uri_parameter_supported: typing.Optional[bool] = pydantic.Field(default=None) - """ - Boolean value specifying whether the OP supports use of the request_uri parameter, with true indicating support. If omitted, the default value is false. - """ - - require_request_uri_registration: typing.Optional[bool] = pydantic.Field(default=None) - """ - Boolean value specifying whether the OP requires use of the request_uri parameter. If omitted, the default value is false. - """ - - response_modes_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the OAuth 2.0 response_mode values that this OP supports. If omitted, the default for Dynamic OpenID Providers is ["query", "fragment"] - """ - - response_types_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the OAuth 2.0 response_type values that this OP supports. Dynamic OpenID Providers MUST support the code, id_token, and the token id_token Response Type values - """ - - scopes_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the OAuth 2.0 [RFC6749] scope values that this server supports. The server MUST support the openid scope value. Servers MAY choose not to advertise some supported scope values even when this parameter is used, although those defined in [OpenID.Core] SHOULD be listed, if supported. RECOMMENDED but not REQUIRED - """ - - service_documentation: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of a page containing human-readable information that developers might want or need to know when using the OpenID Provider. In particular, if the OpenID Provider does not support Dynamic Client Registration, then information on how to register Clients needs to be provided in this documentation. - """ - - subject_types_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the Subject Identifier types that this OP supports. Valid types include pairwise and public - """ - - token_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow. - """ - - token_endpoint_auth_methods_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of Client Authentication methods supported by this Token Endpoint. The options are client_secret_post, client_secret_basic, client_secret_jwt, and private_key_jwt, as described in Section 9 of OpenID Connect Core 1.0 [OpenID.Core]. Other authentication methods MAY be defined by extensions. If omitted, the default is client_secret_basic -- the HTTP Basic Authentication Scheme specified in Section 2.3.1 of OAuth 2.0 [RFC6749]. - """ - - token_endpoint_auth_signing_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used. - """ - - ui_locales_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Languages and scripts supported for the user interface, represented as a JSON array of BCP47 [RFC5646] language tag values. - """ - - userinfo_encryption_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE [JWE] encryption algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. - """ - - userinfo_encryption_enc_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (enc values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. - """ - - userinfo_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token. - """ - - userinfo_signing_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS [JWS] signing algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. The value none MAY be included. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_options_schema_version_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_options_schema_version_enum.py deleted file mode 100644 index ded3ddc5..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_options_schema_version_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedObject0OptionsSchemaVersionEnum = typing.Union[ - typing.Literal["openid-1.0.0", "oidc-v4"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_options_set_user_root_attributes_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_options_set_user_root_attributes_enum.py deleted file mode 100644 index 2f983407..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_options_set_user_root_attributes_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedObject0OptionsSetUserRootAttributesEnum = typing.Union[ - typing.Literal["on_each_login", "on_first_login", "never_on_login"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_options_token_endpoint_auth_method_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_options_token_endpoint_auth_method_enum.py deleted file mode 100644 index 8bbf69d6..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_options_token_endpoint_auth_method_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthMethodEnum = typing.Union[ - typing.Literal["client_secret_post", "private_key_jwt"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_options_token_endpoint_auth_signing_alg_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_options_token_endpoint_auth_signing_alg_enum.py deleted file mode 100644 index 05fa3029..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_options_token_endpoint_auth_signing_alg_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthSigningAlgEnum = typing.Union[ - typing.Literal["ES256", "ES384", "PS256", "PS384", "RS256", "RS384", "RS512"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_options_token_endpoint_jwtca_aud_format_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_options_token_endpoint_jwtca_aud_format_enum.py deleted file mode 100644 index d23e00f5..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_options_token_endpoint_jwtca_aud_format_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointJwtcaAudFormatEnum = typing.Union[ - typing.Literal["issuer", "token_endpoint"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_options_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_options_type_enum.py deleted file mode 100644 index 655da01f..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_options_type_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedObject0OptionsTypeEnum = typing.Union[ - typing.Literal["back_channel", "front_channel"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_options_upstream_params.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_options_upstream_params.py deleted file mode 100644 index 121ad8a5..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_options_upstream_params.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedObject0OptionsUpstreamParams = typing.Dict[str, typing.Any] -""" -Additional parameters to include in authorization requests sent to the identity provider. Useful for passing custom claims, selecting specific identity sources, or configuring provider-specific behavior. See https://auth0.com/docs/authenticate/identity-providers/pass-parameters-to-idps -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_strategy_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_strategy_enum.py deleted file mode 100644 index 05428964..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_0_strategy_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedObject0StrategyEnum = typing.Union[typing.Literal["oidc"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1.py deleted file mode 100644 index 332c403c..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1.py +++ /dev/null @@ -1,73 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_updated_object_1_authentication import ( - EventStreamCloudEventConnectionUpdatedObject1Authentication, -) -from .event_stream_cloud_event_connection_updated_object_1_connected_accounts import ( - EventStreamCloudEventConnectionUpdatedObject1ConnectedAccounts, -) -from .event_stream_cloud_event_connection_updated_object_1_metadata import ( - EventStreamCloudEventConnectionUpdatedObject1Metadata, -) -from .event_stream_cloud_event_connection_updated_object_1_options import ( - EventStreamCloudEventConnectionUpdatedObject1Options, -) -from .event_stream_cloud_event_connection_updated_object_1_strategy_enum import ( - EventStreamCloudEventConnectionUpdatedObject1StrategyEnum, -) - - -class EventStreamCloudEventConnectionUpdatedObject1(UniversalBaseModel): - authentication: typing.Optional[EventStreamCloudEventConnectionUpdatedObject1Authentication] = None - connected_accounts: typing.Optional[EventStreamCloudEventConnectionUpdatedObject1ConnectedAccounts] = None - display_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Connection name used in the new universal login experience - """ - - enabled_clients: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. - """ - - id: str = pydantic.Field() - """ - The connection's identifier - """ - - is_domain_connection: typing.Optional[bool] = pydantic.Field(default=None) - """ - true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) - """ - - metadata: typing.Optional[EventStreamCloudEventConnectionUpdatedObject1Metadata] = None - name: str = pydantic.Field() - """ - The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 - """ - - realms: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. - """ - - options: typing.Optional[EventStreamCloudEventConnectionUpdatedObject1Options] = None - show_as_button: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to `false`. - """ - - strategy: EventStreamCloudEventConnectionUpdatedObject1StrategyEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_authentication.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_authentication.py deleted file mode 100644 index 0bdcc6c7..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_authentication.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionUpdatedObject1Authentication(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for authentication during login. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_connected_accounts.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_connected_accounts.py deleted file mode 100644 index 98cb4950..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_connected_accounts.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionUpdatedObject1ConnectedAccounts(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for connected accounts and Token Vault. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_metadata.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_metadata.py deleted file mode 100644 index d48334b1..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_metadata.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionUpdatedObject1Metadata(UniversalBaseModel): - """ - Metadata associated with the connection in the form of an object with string values (max 255 chars). Maximum of 10 metadata properties allowed. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_options.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_options.py deleted file mode 100644 index 0a13ceae..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_options.py +++ /dev/null @@ -1,174 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_connection_updated_object_1_options_attribute_map import ( - EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMap, -) -from .event_stream_cloud_event_connection_updated_object_1_options_connection_settings import ( - EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettings, -) -from .event_stream_cloud_event_connection_updated_object_1_options_dpop_signing_alg_enum import ( - EventStreamCloudEventConnectionUpdatedObject1OptionsDpopSigningAlgEnum, -) -from .event_stream_cloud_event_connection_updated_object_1_options_federated_connections_access_tokens import ( - EventStreamCloudEventConnectionUpdatedObject1OptionsFederatedConnectionsAccessTokens, -) -from .event_stream_cloud_event_connection_updated_object_1_options_id_token_signed_response_algs_item_enum import ( - EventStreamCloudEventConnectionUpdatedObject1OptionsIdTokenSignedResponseAlgsItemEnum, -) -from .event_stream_cloud_event_connection_updated_object_1_options_oidc_metadata import ( - EventStreamCloudEventConnectionUpdatedObject1OptionsOidcMetadata, -) -from .event_stream_cloud_event_connection_updated_object_1_options_schema_version_enum import ( - EventStreamCloudEventConnectionUpdatedObject1OptionsSchemaVersionEnum, -) -from .event_stream_cloud_event_connection_updated_object_1_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionUpdatedObject1OptionsSetUserRootAttributesEnum, -) -from .event_stream_cloud_event_connection_updated_object_1_options_token_endpoint_auth_method_enum import ( - EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthMethodEnum, -) -from .event_stream_cloud_event_connection_updated_object_1_options_token_endpoint_auth_signing_alg_enum import ( - EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthSigningAlgEnum, -) -from .event_stream_cloud_event_connection_updated_object_1_options_token_endpoint_jwtca_aud_format_enum import ( - EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointJwtcaAudFormatEnum, -) -from .event_stream_cloud_event_connection_updated_object_1_options_type_enum import ( - EventStreamCloudEventConnectionUpdatedObject1OptionsTypeEnum, -) -from .event_stream_cloud_event_connection_updated_object_1_options_upstream_params import ( - EventStreamCloudEventConnectionUpdatedObject1OptionsUpstreamParams, -) - - -class EventStreamCloudEventConnectionUpdatedObject1Options(UniversalBaseModel): - """ - Options for the 'okta' connection - """ - - authorization_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow. - """ - - client_id: str = pydantic.Field() - """ - OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider. - """ - - connection_settings: typing.Optional[EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettings] = None - domain_aliases: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication. - """ - - dpop_signing_alg: typing.Optional[EventStreamCloudEventConnectionUpdatedObject1OptionsDpopSigningAlgEnum] = None - federated_connections_access_tokens: typing.Optional[ - EventStreamCloudEventConnectionUpdatedObject1OptionsFederatedConnectionsAccessTokens - ] = None - icon_url: typing.Optional[str] = pydantic.Field(default=None) - """ - https url of the icon to be shown - """ - - id_token_session_expiry_supported: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether the identity provider supports session expiry via the id_token. If true, the system will use the session_expiry claim in the id_token to determine session expiry. - """ - - id_token_signed_response_algs: typing.Optional[ - typing.List[EventStreamCloudEventConnectionUpdatedObject1OptionsIdTokenSignedResponseAlgsItemEnum] - ] = pydantic.Field(default=None) - """ - List of algorithms allowed to verify the ID tokens. Applicable when strategy=oidc or okta. - """ - - issuer: typing.Optional[str] = pydantic.Field(default=None) - """ - The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider. - """ - - jwks_uri: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures. - """ - - non_persistent_attrs: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) - """ - - oidc_metadata: typing.Optional[EventStreamCloudEventConnectionUpdatedObject1OptionsOidcMetadata] = None - schema_version: typing.Optional[EventStreamCloudEventConnectionUpdatedObject1OptionsSchemaVersionEnum] = None - scope: typing.Optional[str] = pydantic.Field(default=None) - """ - Space-separated list of OAuth 2.0 scopes requested during authorization. Must include 'openid' (required by OIDC spec). Common values: 'openid profile email'. Additional scopes depend on the identity provider. - """ - - send_back_channel_nonce: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true and type is 'back_channel', includes a cryptographic nonce in authorization requests to prevent replay attacks. The identity provider must include this nonce in the ID token for validation. - """ - - set_user_root_attributes: typing.Optional[ - EventStreamCloudEventConnectionUpdatedObject1OptionsSetUserRootAttributesEnum - ] = None - tenant_domain: typing.Optional[str] = pydantic.Field(default=None) - """ - Tenant domain - """ - - token_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow. - """ - - token_endpoint_auth_method: typing.Optional[ - EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthMethodEnum - ] = None - token_endpoint_auth_signing_alg: typing.Optional[ - EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthSigningAlgEnum - ] = None - token_endpoint_jwtca_aud_format: typing.Optional[ - EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointJwtcaAudFormatEnum - ] = None - upstream_params: typing.Optional[EventStreamCloudEventConnectionUpdatedObject1OptionsUpstreamParams] = None - use_oauth_spec_scope: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="useOauthSpecScope"), - pydantic.Field( - alias="useOauthSpecScope", - description="When true, uses space-delimited scopes (per OAuth 2.0 spec) instead of comma-delimited when calling the identity provider's authorization endpoint. Only relevant when using the connection_scope parameter. See https://auth0.com/docs/authenticate/identity-providers/adding-scopes-for-an-external-idp#pass-scopes-to-authorize-endpoint", - ), - ] = None - """ - When true, uses space-delimited scopes (per OAuth 2.0 spec) instead of comma-delimited when calling the identity provider's authorization endpoint. Only relevant when using the connection_scope parameter. See https://auth0.com/docs/authenticate/identity-providers/adding-scopes-for-an-external-idp#pass-scopes-to-authorize-endpoint - """ - - userinfo_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token. - """ - - attribute_map: typing.Optional[EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMap] = None - domain: typing.Optional[str] = pydantic.Field(default=None) - """ - Domain of the Okta organization (e.g., dev-123456.okta.com). Should be just the domain of the okta server with no scheme or trailing backslash. Discovery runs only when connection.options.oidc_metadata is empty and a domain is provided - """ - - type: typing.Optional[EventStreamCloudEventConnectionUpdatedObject1OptionsTypeEnum] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_options_attribute_map.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_options_attribute_map.py deleted file mode 100644 index e5f009af..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_options_attribute_map.py +++ /dev/null @@ -1,37 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_updated_object_1_options_attribute_map_attributes import ( - EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMapAttributes, -) -from .event_stream_cloud_event_connection_updated_object_1_options_attribute_map_mapping_mode_enum import ( - EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMapMappingModeEnum, -) - - -class EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMap(UniversalBaseModel): - """ - Mapping of claims received from the identity provider (IdP) - """ - - attributes: typing.Optional[EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMapAttributes] = None - userinfo_scope: typing.Optional[str] = pydantic.Field(default=None) - """ - Scopes to send to the IdP's Userinfo endpoint - """ - - mapping_mode: typing.Optional[EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMapMappingModeEnum] = ( - None - ) - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_options_attribute_map_attributes.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_options_attribute_map_attributes.py deleted file mode 100644 index 9d69f0c3..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_options_attribute_map_attributes.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMapAttributes = typing.Dict[str, typing.Any] -""" -Object containing mapping details for incoming claims -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_options_attribute_map_mapping_mode_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_options_attribute_map_mapping_mode_enum.py deleted file mode 100644 index 233b7a38..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_options_attribute_map_mapping_mode_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMapMappingModeEnum = typing.Union[ - typing.Literal["basic_profile", "use_map"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_options_connection_settings.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_options_connection_settings.py deleted file mode 100644 index 0f40d5a0..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_options_connection_settings.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_updated_object_1_options_connection_settings_pkce_enum import ( - EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettingsPkceEnum, -) - - -class EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettings(UniversalBaseModel): - """ - OAuth 2.0 PKCE (Proof Key for Code Exchange) settings. PKCE enhances security for public clients by preventing authorization code interception attacks. 'auto' (recommended) uses the strongest method supported by the IdP. - """ - - pkce: typing.Optional[EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettingsPkceEnum] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_options_connection_settings_pkce_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_options_connection_settings_pkce_enum.py deleted file mode 100644 index 9d6b9a8d..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_options_connection_settings_pkce_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettingsPkceEnum = typing.Union[ - typing.Literal["auto", "S256", "plain", "disabled"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_options_dpop_signing_alg_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_options_dpop_signing_alg_enum.py deleted file mode 100644 index 51a0b351..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_options_dpop_signing_alg_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedObject1OptionsDpopSigningAlgEnum = typing.Union[ - typing.Literal["ES256", "ES384", "ES512", "Ed25519"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_options_federated_connections_access_tokens.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_options_federated_connections_access_tokens.py deleted file mode 100644 index 6da5bc3d..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_options_federated_connections_access_tokens.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionUpdatedObject1OptionsFederatedConnectionsAccessTokens(UniversalBaseModel): - """ - Configuration for storing identity provider tokens in Auth0's Token Vault. When active, Auth0 securely stores access and refresh tokens from federated logins, enabling your application to make authenticated API calls on behalf of users. - """ - - active: bool = pydantic.Field() - """ - Enables refresh tokens and access tokens collection for federated connections - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_options_id_token_signed_response_algs_item_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_options_id_token_signed_response_algs_item_enum.py deleted file mode 100644 index 23831fe9..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_options_id_token_signed_response_algs_item_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedObject1OptionsIdTokenSignedResponseAlgsItemEnum = typing.Union[ - typing.Literal["ES256", "ES384", "PS256", "PS384", "RS256", "RS384", "RS512"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_options_oidc_metadata.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_options_oidc_metadata.py deleted file mode 100644 index 0102a249..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_options_oidc_metadata.py +++ /dev/null @@ -1,211 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionUpdatedObject1OptionsOidcMetadata(UniversalBaseModel): - """ - OpenID Connect Provider Metadata as per https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata - """ - - acr_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the Authentication Context Class References that this OP supports - """ - - authorization_endpoint: str = pydantic.Field() - """ - URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow. - """ - - claim_types_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the Claim Types that the OpenID Provider supports. These Claim Types are described in Section 5.6 of OpenID Connect Core 1.0 [OpenID.Core]. If omitted, the implementation supports only normal Claims. - """ - - claims_locales_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Languages and scripts supported for values in Claims being returned, represented as a JSON array of BCP47 [RFC5646] language tag values. Not all languages and scripts are necessarily supported for all Claim values. - """ - - claims_parameter_supported: typing.Optional[bool] = pydantic.Field(default=None) - """ - Boolean value specifying whether the OP supports use of the claims parameter, with true indicating support. If omitted, the default value is false. - """ - - claims_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the Claim Names of the Claims that the OpenID Provider MAY be able to supply values for. Note that for privacy or other reasons, this might not be an exhaustive list. - """ - - code_challenge_methods_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636. - """ - - display_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used. - """ - - dpop_signing_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS signing algorithms (alg values) supported for DPoP proof JWT signing. - """ - - end_session_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's logout/end session endpoint. When configured as a static URL, users are redirected here after logging out from Auth0. Must use HTTPS scheme. - """ - - grant_types_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the OAuth 2.0 Grant Type values that this OP supports. Dynamic OpenID Providers MUST support the authorization_code and implicit Grant Type values and MAY support other Grant Types. If omitted, the default value is ["authorization_code", "implicit"]. - """ - - id_token_encryption_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT - """ - - id_token_encryption_enc_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for the ID Token to encode the Claims in a JWT [JWT]. - """ - - id_token_signing_alg_values_supported: typing.List[str] = pydantic.Field() - """ - A list of the JWS signing algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be included. The value none MAY be supported, but MUST NOT be used unless the Response Type used returns no ID Token from the Authorization Endpoint (such as when using the Authorization Code Flow). https://datatracker.ietf.org/doc/html/rfc7518 - """ - - issuer: str = pydantic.Field() - """ - The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider. - """ - - jwks_uri: str = pydantic.Field() - """ - URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures. - """ - - op_policy_uri: typing.Optional[str] = pydantic.Field(default=None) - """ - URL that the OpenID Provider provides to the person registering the Client to read about the OPs requirements on how the Relying Party can use the data provided by the OP. The registration process SHOULD display this URL to the person registering the Client if it is given. - """ - - op_tos_uri: typing.Optional[str] = pydantic.Field(default=None) - """ - URL that the OpenID Provider provides to the person registering the Client to read about OpenID Providers terms of service. The registration process SHOULD display this URL to the person registering the Client if it is given. - """ - - registration_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the OPs Dynamic Client Registration Endpoint. RECOMMENDED but not REQUIRED. https://openid.net/specs/openid-connect-discovery-1_0.html#OpenID.Registration - """ - - request_object_encryption_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference. - """ - - request_object_encryption_enc_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference. - """ - - request_object_signing_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for Request Objects, which are described in Section 6.1 of OpenID Connect Core 1.0 [OpenID.Core]. These algorithms are used both when the Request Object is passed by value (using the request parameter) and when it is passed by reference (using the request_uri parameter). Servers SHOULD support none and RS256. - """ - - request_parameter_supported: typing.Optional[bool] = pydantic.Field(default=None) - """ - Boolean value specifying whether the OP supports use of the request parameter, with true indicating support. If omitted, the default value is false. - """ - - request_uri_parameter_supported: typing.Optional[bool] = pydantic.Field(default=None) - """ - Boolean value specifying whether the OP supports use of the request_uri parameter, with true indicating support. If omitted, the default value is false. - """ - - require_request_uri_registration: typing.Optional[bool] = pydantic.Field(default=None) - """ - Boolean value specifying whether the OP requires use of the request_uri parameter. If omitted, the default value is false. - """ - - response_modes_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the OAuth 2.0 response_mode values that this OP supports. If omitted, the default for Dynamic OpenID Providers is ["query", "fragment"] - """ - - response_types_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the OAuth 2.0 response_type values that this OP supports. Dynamic OpenID Providers MUST support the code, id_token, and the token id_token Response Type values - """ - - scopes_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the OAuth 2.0 [RFC6749] scope values that this server supports. The server MUST support the openid scope value. Servers MAY choose not to advertise some supported scope values even when this parameter is used, although those defined in [OpenID.Core] SHOULD be listed, if supported. RECOMMENDED but not REQUIRED - """ - - service_documentation: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of a page containing human-readable information that developers might want or need to know when using the OpenID Provider. In particular, if the OpenID Provider does not support Dynamic Client Registration, then information on how to register Clients needs to be provided in this documentation. - """ - - subject_types_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the Subject Identifier types that this OP supports. Valid types include pairwise and public - """ - - token_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow. - """ - - token_endpoint_auth_methods_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of Client Authentication methods supported by this Token Endpoint. The options are client_secret_post, client_secret_basic, client_secret_jwt, and private_key_jwt, as described in Section 9 of OpenID Connect Core 1.0 [OpenID.Core]. Other authentication methods MAY be defined by extensions. If omitted, the default is client_secret_basic -- the HTTP Basic Authentication Scheme specified in Section 2.3.1 of OAuth 2.0 [RFC6749]. - """ - - token_endpoint_auth_signing_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used. - """ - - ui_locales_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Languages and scripts supported for the user interface, represented as a JSON array of BCP47 [RFC5646] language tag values. - """ - - userinfo_encryption_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE [JWE] encryption algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. - """ - - userinfo_encryption_enc_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (enc values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. - """ - - userinfo_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token. - """ - - userinfo_signing_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS [JWS] signing algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. The value none MAY be included. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_options_schema_version_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_options_schema_version_enum.py deleted file mode 100644 index 3997fb0c..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_options_schema_version_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedObject1OptionsSchemaVersionEnum = typing.Union[ - typing.Literal["openid-1.0.0", "oidc-v4"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_options_set_user_root_attributes_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_options_set_user_root_attributes_enum.py deleted file mode 100644 index d129fb38..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_options_set_user_root_attributes_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedObject1OptionsSetUserRootAttributesEnum = typing.Union[ - typing.Literal["on_each_login", "on_first_login", "never_on_login"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_options_token_endpoint_auth_method_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_options_token_endpoint_auth_method_enum.py deleted file mode 100644 index 5f77ef86..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_options_token_endpoint_auth_method_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthMethodEnum = typing.Union[ - typing.Literal["client_secret_post", "private_key_jwt"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_options_token_endpoint_auth_signing_alg_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_options_token_endpoint_auth_signing_alg_enum.py deleted file mode 100644 index 48c0f727..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_options_token_endpoint_auth_signing_alg_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthSigningAlgEnum = typing.Union[ - typing.Literal["ES256", "ES384", "PS256", "PS384", "RS256", "RS384", "RS512"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_options_token_endpoint_jwtca_aud_format_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_options_token_endpoint_jwtca_aud_format_enum.py deleted file mode 100644 index 81d4145f..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_options_token_endpoint_jwtca_aud_format_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointJwtcaAudFormatEnum = typing.Union[ - typing.Literal["issuer", "token_endpoint"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_options_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_options_type_enum.py deleted file mode 100644 index 3df8687c..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_options_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedObject1OptionsTypeEnum = typing.Union[typing.Literal["back_channel"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_options_upstream_params.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_options_upstream_params.py deleted file mode 100644 index b5ffeaba..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_options_upstream_params.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedObject1OptionsUpstreamParams = typing.Dict[str, typing.Any] -""" -Additional parameters to include in authorization requests sent to the identity provider. Useful for passing custom claims, selecting specific identity sources, or configuring provider-specific behavior. See https://auth0.com/docs/authenticate/identity-providers/pass-parameters-to-idps -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_strategy_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_strategy_enum.py deleted file mode 100644 index 59ec938a..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_1_strategy_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedObject1StrategyEnum = typing.Union[typing.Literal["okta"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_2.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_2.py deleted file mode 100644 index 64387a55..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_2.py +++ /dev/null @@ -1,73 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_updated_object_2_authentication import ( - EventStreamCloudEventConnectionUpdatedObject2Authentication, -) -from .event_stream_cloud_event_connection_updated_object_2_connected_accounts import ( - EventStreamCloudEventConnectionUpdatedObject2ConnectedAccounts, -) -from .event_stream_cloud_event_connection_updated_object_2_metadata import ( - EventStreamCloudEventConnectionUpdatedObject2Metadata, -) -from .event_stream_cloud_event_connection_updated_object_2_options import ( - EventStreamCloudEventConnectionUpdatedObject2Options, -) -from .event_stream_cloud_event_connection_updated_object_2_strategy_enum import ( - EventStreamCloudEventConnectionUpdatedObject2StrategyEnum, -) - - -class EventStreamCloudEventConnectionUpdatedObject2(UniversalBaseModel): - authentication: typing.Optional[EventStreamCloudEventConnectionUpdatedObject2Authentication] = None - connected_accounts: typing.Optional[EventStreamCloudEventConnectionUpdatedObject2ConnectedAccounts] = None - display_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Connection name used in the new universal login experience - """ - - enabled_clients: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. - """ - - id: str = pydantic.Field() - """ - The connection's identifier - """ - - is_domain_connection: typing.Optional[bool] = pydantic.Field(default=None) - """ - true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) - """ - - metadata: typing.Optional[EventStreamCloudEventConnectionUpdatedObject2Metadata] = None - name: str = pydantic.Field() - """ - The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 - """ - - realms: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. - """ - - options: typing.Optional[EventStreamCloudEventConnectionUpdatedObject2Options] = None - show_as_button: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to `false`. - """ - - strategy: EventStreamCloudEventConnectionUpdatedObject2StrategyEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_2_authentication.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_2_authentication.py deleted file mode 100644 index e3737485..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_2_authentication.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionUpdatedObject2Authentication(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for authentication during login. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_2_connected_accounts.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_2_connected_accounts.py deleted file mode 100644 index aa4eb66b..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_2_connected_accounts.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionUpdatedObject2ConnectedAccounts(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for connected accounts and Token Vault. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_2_metadata.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_2_metadata.py deleted file mode 100644 index 66031073..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_2_metadata.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionUpdatedObject2Metadata(UniversalBaseModel): - """ - Metadata associated with the connection in the form of an object with string values (max 255 chars). Maximum of 10 metadata properties allowed. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_2_options.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_2_options.py deleted file mode 100644 index d57a3bb7..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_2_options.py +++ /dev/null @@ -1,298 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_connection_updated_object_2_options_assertion_decryption_settings import ( - EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettings, -) -from .event_stream_cloud_event_connection_updated_object_2_options_digest_algorithm_enum import ( - EventStreamCloudEventConnectionUpdatedObject2OptionsDigestAlgorithmEnum, -) -from .event_stream_cloud_event_connection_updated_object_2_options_fields_map import ( - EventStreamCloudEventConnectionUpdatedObject2OptionsFieldsMap, -) -from .event_stream_cloud_event_connection_updated_object_2_options_idpinitiated import ( - EventStreamCloudEventConnectionUpdatedObject2OptionsIdpinitiated, -) -from .event_stream_cloud_event_connection_updated_object_2_options_oidc_metadata import ( - EventStreamCloudEventConnectionUpdatedObject2OptionsOidcMetadata, -) -from .event_stream_cloud_event_connection_updated_object_2_options_protocol_binding_enum import ( - EventStreamCloudEventConnectionUpdatedObject2OptionsProtocolBindingEnum, -) -from .event_stream_cloud_event_connection_updated_object_2_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionUpdatedObject2OptionsSetUserRootAttributesEnum, -) -from .event_stream_cloud_event_connection_updated_object_2_options_signature_algorithm_enum import ( - EventStreamCloudEventConnectionUpdatedObject2OptionsSignatureAlgorithmEnum, -) -from .event_stream_cloud_event_connection_updated_object_2_options_subject import ( - EventStreamCloudEventConnectionUpdatedObject2OptionsSubject, -) -from .event_stream_cloud_event_connection_updated_object_2_options_upstream_params import ( - EventStreamCloudEventConnectionUpdatedObject2OptionsUpstreamParams, -) - - -class EventStreamCloudEventConnectionUpdatedObject2Options(UniversalBaseModel): - """ - Options for the 'samlp' connection - """ - - assertion_decryption_settings: typing.Optional[ - EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettings - ] = None - cert: typing.Optional[str] = pydantic.Field(default=None) - """ - X.509 signing certificate from the identity provider in .der format. Used to validate signatures in SAML Responses and Assertions. This is an alternative to signingCert and is kept for backward compatibility. Prefer using signingCert instead. - """ - - cert_rollover_notification: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Timestamp of the last certificate expiring soon notification. - """ - - digest_algorithm: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventConnectionUpdatedObject2OptionsDigestAlgorithmEnum], - FieldMetadata(alias="digestAlgorithm"), - pydantic.Field(alias="digestAlgorithm"), - ] = None - domain_aliases: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Domain aliases for the connection - """ - - entity_id: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="entityId"), - pydantic.Field( - alias="entityId", - description="The entity identifier (Issuer) for the SAML Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'. This value is included in SAML AuthnRequest messages sent to the identity provider.", - ), - ] = None - """ - The entity identifier (Issuer) for the SAML Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'. This value is included in SAML AuthnRequest messages sent to the identity provider. - """ - - expires: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - ISO 8601 formatted datetime indicating when the identity provider's signing certificate expires. - """ - - icon_url: typing.Optional[str] = pydantic.Field(default=None) - """ - URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows. - """ - - idpinitiated: typing.Optional[EventStreamCloudEventConnectionUpdatedObject2OptionsIdpinitiated] = None - non_persistent_attrs: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) - """ - - protocol_binding: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventConnectionUpdatedObject2OptionsProtocolBindingEnum], - FieldMetadata(alias="protocolBinding"), - pydantic.Field(alias="protocolBinding"), - ] = None - set_user_root_attributes: typing.Optional[ - EventStreamCloudEventConnectionUpdatedObject2OptionsSetUserRootAttributesEnum - ] = None - signature_algorithm: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventConnectionUpdatedObject2OptionsSignatureAlgorithmEnum], - FieldMetadata(alias="signatureAlgorithm"), - pydantic.Field(alias="signatureAlgorithm"), - ] = None - sign_in_endpoint: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="signInEndpoint"), - pydantic.Field( - alias="signInEndpoint", - description="Identity provider's SAML SingleSignOnService endpoint URL where Auth0 sends SAML authentication requests. This is the primary login URL for the SAML connection. Required unless using metadataUrl or metadataXml.", - ), - ] = None - """ - Identity provider's SAML SingleSignOnService endpoint URL where Auth0 sends SAML authentication requests. This is the primary login URL for the SAML connection. Required unless using metadataUrl or metadataXml. - """ - - signing_cert: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="signingCert"), - pydantic.Field( - alias="signingCert", - description="Base64-encoded X.509 certificate from the identity provider used to validate signatures in SAML responses and assertions. The certificate is decoded and used for cryptographic signature verification.", - ), - ] = None - """ - Base64-encoded X.509 certificate from the identity provider used to validate signatures in SAML responses and assertions. The certificate is decoded and used for cryptographic signature verification. - """ - - sign_saml_request: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="signSAMLRequest"), - pydantic.Field( - alias="signSAMLRequest", - description="When true, Auth0 signs SAML authentication requests using the connection's signing key. The signature includes the request's digest and is validated by the identity provider. Defaults to false (unsigned requests).", - ), - ] = None - """ - When true, Auth0 signs SAML authentication requests using the connection's signing key. The signature includes the request's digest and is validated by the identity provider. Defaults to false (unsigned requests). - """ - - subject: typing.Optional[EventStreamCloudEventConnectionUpdatedObject2OptionsSubject] = None - tenant_domain: typing.Optional[str] = pydantic.Field(default=None) - """ - For SAML connections, the tenant domain used to construct the login endpoint URL. Can be a string for single-tenant or an array of strings for multi-tenant validation. - """ - - thumbprints: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - SHA-1 thumbprints (fingerprints) of the identity provider's signing certificates. Automatically computed from signingCert during connection creation. Each thumbprint must be a 40-character hexadecimal string. - """ - - upstream_params: typing.Optional[EventStreamCloudEventConnectionUpdatedObject2OptionsUpstreamParams] = None - debug: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true, enables detailed SAML debugging by issuing 'w' (warning) events in tenant logs containing SAML request/response details. WARNING: Potentially exposes sensitive user information (PII, credentials) and should only be enabled temporarily for debugging purposes. - """ - - deflate: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true, enables DEFLATE compression for SAML requests sent via HTTP-Redirect binding. - """ - - destination_url: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="destinationUrl"), - pydantic.Field( - alias="destinationUrl", - description="The URL where Auth0 will send SAML authentication requests (the Identity Provider's SSO URL). Must be a valid HTTPS URL.", - ), - ] = None - """ - The URL where Auth0 will send SAML authentication requests (the Identity Provider's SSO URL). Must be a valid HTTPS URL. - """ - - disable_fields_map_fix: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="disableFieldsMapFix"), - pydantic.Field( - alias="disableFieldsMapFix", - description="When true, disables the automatic correction of the fieldsMap configuration to ensure proper mapping of SAML attributes to user profile fields. Defaults to false (fieldsMap fix enabled).", - ), - ] = None - """ - When true, disables the automatic correction of the fieldsMap configuration to ensure proper mapping of SAML attributes to user profile fields. Defaults to false (fieldsMap fix enabled). - """ - - disable_signout: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="disableSignout"), - pydantic.Field( - alias="disableSignout", - description="When true, disables sending SAML logout requests (SingleLogoutService) to the identity provider during user sign-out. The user will be logged out of Auth0 but will remain logged into the identity provider. Defaults to false (federated logout enabled).", - ), - ] = None - """ - When true, disables sending SAML logout requests (SingleLogoutService) to the identity provider during user sign-out. The user will be logged out of Auth0 but will remain logged into the identity provider. Defaults to false (federated logout enabled). - """ - - discovery_url: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's OIDC Discovery endpoint (/.well-known/openid-configuration). When provided and oidc_metadata is empty, Auth0 automatically retrieves the provider's configuration including endpoints and supported features. Used with Cross App Access. - """ - - fields_map: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventConnectionUpdatedObject2OptionsFieldsMap], - FieldMetadata(alias="fieldsMap"), - pydantic.Field(alias="fieldsMap"), - ] = None - fields_map_json_raw: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="fieldsMapJsonRaw"), - pydantic.Field( - alias="fieldsMapJsonRaw", - description="Raw JSON string representation of the fieldsMap configuration. Used internally for storage and retrieval of the fieldsMap object.", - ), - ] = None - """ - Raw JSON string representation of the fieldsMap configuration. Used internally for storage and retrieval of the fieldsMap object. - """ - - global_token_revocation_jwt_iss: typing.Optional[str] = pydantic.Field(default=None) - """ - Expected 'iss' (Issuer) claim value for JWT tokens in Global Token Revocation requests from the identity provider. When configured, Auth0 validates the JWT issuer matches this value before processing token revocation. Must be used together with global_token_revocation_jwt_sub. - """ - - global_token_revocation_jwt_sub: typing.Optional[str] = pydantic.Field(default=None) - """ - Expected 'sub' (Subject) claim value for JWT tokens in Global Token Revocation requests from the identity provider. When configured, Auth0 validates the JWT subject matches this value before processing token revocation. Must be used together with global_token_revocation_jwt_iss. - """ - - metadata_url: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="metadataUrl"), - pydantic.Field( - alias="metadataUrl", - description="HTTPS URL to the identity provider's SAML metadata document. When provided, Auth0 automatically fetches and parses the metadata to extract signInEndpoint, signOutEndpoint, signingCert, signSAMLRequest, and protocolBinding. Use metadataUrl OR metadataXml, not both.", - ), - ] = None - """ - HTTPS URL to the identity provider's SAML metadata document. When provided, Auth0 automatically fetches and parses the metadata to extract signInEndpoint, signOutEndpoint, signingCert, signSAMLRequest, and protocolBinding. Use metadataUrl OR metadataXml, not both. - """ - - oidc_metadata: typing.Optional[EventStreamCloudEventConnectionUpdatedObject2OptionsOidcMetadata] = None - recipient_url: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="recipientUrl"), - pydantic.Field( - alias="recipientUrl", - description="The URL where Auth0 will send SAML authentication requests (the Identity Provider's SSO URL). Must be a valid HTTPS URL.", - ), - ] = None - """ - The URL where Auth0 will send SAML authentication requests (the Identity Provider's SSO URL). Must be a valid HTTPS URL. - """ - - request_template: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="requestTemplate"), - pydantic.Field( - alias="requestTemplate", - description="Custom XML template for SAML authentication requests. Supports variable substitution using @@variableName@@ syntax. When not provided, uses default SAML AuthnRequest template. See https://auth0.com/docs/authenticate/protocols/saml/saml-sso-integrations/configure-auth0-saml-service-provider#customize-the-request-template", - ), - ] = None - """ - Custom XML template for SAML authentication requests. Supports variable substitution using @@variableName@@ syntax. When not provided, uses default SAML AuthnRequest template. See https://auth0.com/docs/authenticate/protocols/saml/saml-sso-integrations/configure-auth0-saml-service-provider#customize-the-request-template - """ - - sign_out_endpoint: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="signOutEndpoint"), - pydantic.Field( - alias="signOutEndpoint", - description="Identity provider's SAML SingleLogoutService endpoint URL where Auth0 sends logout requests for federated sign-out. When not provided, defaults to signInEndpoint. Only used if disableSignout is false.", - ), - ] = None - """ - Identity provider's SAML SingleLogoutService endpoint URL where Auth0 sends logout requests for federated sign-out. When not provided, defaults to signInEndpoint. Only used if disableSignout is false. - """ - - user_id_attribute: typing.Optional[str] = pydantic.Field(default=None) - """ - Custom SAML assertion attribute to use as the unique user identifier. When provided, this attribute is prepended to the default user_id mapping list with highest priority. Accepts a string (single SAML attribute name). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_2_options_assertion_decryption_settings.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_2_options_assertion_decryption_settings.py deleted file mode 100644 index 18532956..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_2_options_assertion_decryption_settings.py +++ /dev/null @@ -1,33 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_updated_object_2_options_assertion_decryption_settings_algorithm_profile_enum import ( - EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum, -) - - -class EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettings(UniversalBaseModel): - """ - Settings for SAML assertion decryption. - """ - - algorithm_exceptions: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of insecure algorithms to allow for SAML assertion decryption. - """ - - algorithm_profile: ( - EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum - ) - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_2_options_assertion_decryption_settings_algorithm_profile_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_2_options_assertion_decryption_settings_algorithm_profile_enum.py deleted file mode 100644 index a306a571..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_2_options_assertion_decryption_settings_algorithm_profile_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum = typing.Union[ - typing.Literal["v2026-1"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_2_options_digest_algorithm_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_2_options_digest_algorithm_enum.py deleted file mode 100644 index 09c8191b..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_2_options_digest_algorithm_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedObject2OptionsDigestAlgorithmEnum = typing.Union[ - typing.Literal["sha1", "sha256"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_2_options_fields_map.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_2_options_fields_map.py deleted file mode 100644 index 155c76bc..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_2_options_fields_map.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedObject2OptionsFieldsMap = typing.Dict[str, typing.Any] -""" -Maps SAML assertion attributes from the identity provider to Auth0 user profile attributes. Format: { 'auth0_field': 'saml_attribute' } or { 'auth0_field': ['saml_attr1', 'saml_attr2'] } for fallback options. Merged with default mappings for email, name, given_name, family_name, and groups. -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_2_options_idpinitiated.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_2_options_idpinitiated.py deleted file mode 100644 index 0ae1a044..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_2_options_idpinitiated.py +++ /dev/null @@ -1,42 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_updated_object_2_options_idpinitiated_client_protocol_enum import ( - EventStreamCloudEventConnectionUpdatedObject2OptionsIdpinitiatedClientProtocolEnum, -) - - -class EventStreamCloudEventConnectionUpdatedObject2OptionsIdpinitiated(UniversalBaseModel): - """ - Configuration for IdP-Initiated SAML Single Sign-On. When enabled, allows users to initiate login directly from their SAML identity provider without first visiting Auth0. The IdP must include the connection parameter in the post-back URL (Assertion Consumer Service URL). - """ - - client_authorizequery: typing.Optional[str] = pydantic.Field(default=None) - """ - The query string sent to the default application - """ - - client_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The client ID to use for IdP-initiated login requests. - """ - - client_protocol: typing.Optional[ - EventStreamCloudEventConnectionUpdatedObject2OptionsIdpinitiatedClientProtocolEnum - ] = None - enabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true, enables IdP-initiated login support for this SAML connection. Allows users to log in directly from the identity provider without first visiting Auth0. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_2_options_idpinitiated_client_protocol_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_2_options_idpinitiated_client_protocol_enum.py deleted file mode 100644 index 0358cfde..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_2_options_idpinitiated_client_protocol_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedObject2OptionsIdpinitiatedClientProtocolEnum = typing.Union[ - typing.Literal["oidc", "samlp", "wsfed"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_2_options_oidc_metadata.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_2_options_oidc_metadata.py deleted file mode 100644 index a036d828..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_2_options_oidc_metadata.py +++ /dev/null @@ -1,211 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionUpdatedObject2OptionsOidcMetadata(UniversalBaseModel): - """ - OpenID Connect Provider Metadata as per https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata. Used with Cross App Access. - """ - - acr_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the Authentication Context Class References that this OP supports - """ - - authorization_endpoint: str = pydantic.Field() - """ - URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow. - """ - - claim_types_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the Claim Types that the OpenID Provider supports. These Claim Types are described in Section 5.6 of OpenID Connect Core 1.0 [OpenID.Core]. If omitted, the implementation supports only normal Claims. - """ - - claims_locales_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Languages and scripts supported for values in Claims being returned, represented as a JSON array of BCP47 [RFC5646] language tag values. Not all languages and scripts are necessarily supported for all Claim values. - """ - - claims_parameter_supported: typing.Optional[bool] = pydantic.Field(default=None) - """ - Boolean value specifying whether the OP supports use of the claims parameter, with true indicating support. If omitted, the default value is false. - """ - - claims_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the Claim Names of the Claims that the OpenID Provider MAY be able to supply values for. Note that for privacy or other reasons, this might not be an exhaustive list. - """ - - code_challenge_methods_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636. - """ - - display_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used. - """ - - dpop_signing_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS signing algorithms (alg values) supported for DPoP proof JWT signing. - """ - - end_session_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's logout/end session endpoint. When configured as a static URL, users are redirected here after logging out from Auth0. Must use HTTPS scheme. - """ - - grant_types_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the OAuth 2.0 Grant Type values that this OP supports. Dynamic OpenID Providers MUST support the authorization_code and implicit Grant Type values and MAY support other Grant Types. If omitted, the default value is ["authorization_code", "implicit"]. - """ - - id_token_encryption_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT - """ - - id_token_encryption_enc_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for the ID Token to encode the Claims in a JWT [JWT]. - """ - - id_token_signing_alg_values_supported: typing.List[str] = pydantic.Field() - """ - A list of the JWS signing algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be included. The value none MAY be supported, but MUST NOT be used unless the Response Type used returns no ID Token from the Authorization Endpoint (such as when using the Authorization Code Flow). https://datatracker.ietf.org/doc/html/rfc7518 - """ - - issuer: str = pydantic.Field() - """ - The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider. - """ - - jwks_uri: str = pydantic.Field() - """ - URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures. - """ - - op_policy_uri: typing.Optional[str] = pydantic.Field(default=None) - """ - URL that the OpenID Provider provides to the person registering the Client to read about the OPs requirements on how the Relying Party can use the data provided by the OP. The registration process SHOULD display this URL to the person registering the Client if it is given. - """ - - op_tos_uri: typing.Optional[str] = pydantic.Field(default=None) - """ - URL that the OpenID Provider provides to the person registering the Client to read about OpenID Providers terms of service. The registration process SHOULD display this URL to the person registering the Client if it is given. - """ - - registration_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the OPs Dynamic Client Registration Endpoint. RECOMMENDED but not REQUIRED. https://openid.net/specs/openid-connect-discovery-1_0.html#OpenID.Registration - """ - - request_object_encryption_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference. - """ - - request_object_encryption_enc_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference. - """ - - request_object_signing_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for Request Objects, which are described in Section 6.1 of OpenID Connect Core 1.0 [OpenID.Core]. These algorithms are used both when the Request Object is passed by value (using the request parameter) and when it is passed by reference (using the request_uri parameter). Servers SHOULD support none and RS256. - """ - - request_parameter_supported: typing.Optional[bool] = pydantic.Field(default=None) - """ - Boolean value specifying whether the OP supports use of the request parameter, with true indicating support. If omitted, the default value is false. - """ - - request_uri_parameter_supported: typing.Optional[bool] = pydantic.Field(default=None) - """ - Boolean value specifying whether the OP supports use of the request_uri parameter, with true indicating support. If omitted, the default value is false. - """ - - require_request_uri_registration: typing.Optional[bool] = pydantic.Field(default=None) - """ - Boolean value specifying whether the OP requires use of the request_uri parameter. If omitted, the default value is false. - """ - - response_modes_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the OAuth 2.0 response_mode values that this OP supports. If omitted, the default for Dynamic OpenID Providers is ["query", "fragment"] - """ - - response_types_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the OAuth 2.0 response_type values that this OP supports. Dynamic OpenID Providers MUST support the code, id_token, and the token id_token Response Type values - """ - - scopes_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the OAuth 2.0 [RFC6749] scope values that this server supports. The server MUST support the openid scope value. Servers MAY choose not to advertise some supported scope values even when this parameter is used, although those defined in [OpenID.Core] SHOULD be listed, if supported. RECOMMENDED but not REQUIRED - """ - - service_documentation: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of a page containing human-readable information that developers might want or need to know when using the OpenID Provider. In particular, if the OpenID Provider does not support Dynamic Client Registration, then information on how to register Clients needs to be provided in this documentation. - """ - - subject_types_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the Subject Identifier types that this OP supports. Valid types include pairwise and public - """ - - token_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow. - """ - - token_endpoint_auth_methods_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of Client Authentication methods supported by this Token Endpoint. The options are client_secret_post, client_secret_basic, client_secret_jwt, and private_key_jwt, as described in Section 9 of OpenID Connect Core 1.0 [OpenID.Core]. Other authentication methods MAY be defined by extensions. If omitted, the default is client_secret_basic -- the HTTP Basic Authentication Scheme specified in Section 2.3.1 of OAuth 2.0 [RFC6749]. - """ - - token_endpoint_auth_signing_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used. - """ - - ui_locales_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Languages and scripts supported for the user interface, represented as a JSON array of BCP47 [RFC5646] language tag values. - """ - - userinfo_encryption_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE [JWE] encryption algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. - """ - - userinfo_encryption_enc_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (enc values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. - """ - - userinfo_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token. - """ - - userinfo_signing_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS [JWS] signing algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. The value none MAY be included. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_2_options_protocol_binding_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_2_options_protocol_binding_enum.py deleted file mode 100644 index a2119f6f..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_2_options_protocol_binding_enum.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedObject2OptionsProtocolBindingEnum = typing.Union[ - typing.Literal[ - "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST", "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect" - ], - typing.Any, -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_2_options_set_user_root_attributes_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_2_options_set_user_root_attributes_enum.py deleted file mode 100644 index e85b6231..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_2_options_set_user_root_attributes_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedObject2OptionsSetUserRootAttributesEnum = typing.Union[ - typing.Literal["on_each_login", "on_first_login", "never_on_login"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_2_options_signature_algorithm_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_2_options_signature_algorithm_enum.py deleted file mode 100644 index ae071b42..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_2_options_signature_algorithm_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedObject2OptionsSignatureAlgorithmEnum = typing.Union[ - typing.Literal["rsa-sha1", "rsa-sha256"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_2_options_subject.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_2_options_subject.py deleted file mode 100644 index 8ec83162..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_2_options_subject.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionUpdatedObject2OptionsSubject(UniversalBaseModel): - """ - Certificate Subject Distinguished Name (DN) extracted from the identity provider's signing certificate. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_2_options_upstream_params.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_2_options_upstream_params.py deleted file mode 100644 index e38cf2f1..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_2_options_upstream_params.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedObject2OptionsUpstreamParams = typing.Dict[str, typing.Any] -""" -Additional parameters to include in authorization requests sent to the identity provider. Useful for passing custom claims, selecting specific identity sources, or configuring provider-specific behavior. See https://auth0.com/docs/authenticate/identity-providers/pass-parameters-to-idps -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_2_strategy_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_2_strategy_enum.py deleted file mode 100644 index 926d2897..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_2_strategy_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedObject2StrategyEnum = typing.Union[typing.Literal["samlp"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_3.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_3.py deleted file mode 100644 index 05b8bb47..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_3.py +++ /dev/null @@ -1,73 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_updated_object_3_authentication import ( - EventStreamCloudEventConnectionUpdatedObject3Authentication, -) -from .event_stream_cloud_event_connection_updated_object_3_connected_accounts import ( - EventStreamCloudEventConnectionUpdatedObject3ConnectedAccounts, -) -from .event_stream_cloud_event_connection_updated_object_3_metadata import ( - EventStreamCloudEventConnectionUpdatedObject3Metadata, -) -from .event_stream_cloud_event_connection_updated_object_3_options import ( - EventStreamCloudEventConnectionUpdatedObject3Options, -) -from .event_stream_cloud_event_connection_updated_object_3_strategy_enum import ( - EventStreamCloudEventConnectionUpdatedObject3StrategyEnum, -) - - -class EventStreamCloudEventConnectionUpdatedObject3(UniversalBaseModel): - authentication: typing.Optional[EventStreamCloudEventConnectionUpdatedObject3Authentication] = None - connected_accounts: typing.Optional[EventStreamCloudEventConnectionUpdatedObject3ConnectedAccounts] = None - display_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Connection name used in the new universal login experience - """ - - enabled_clients: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. - """ - - id: str = pydantic.Field() - """ - The connection's identifier - """ - - is_domain_connection: typing.Optional[bool] = pydantic.Field(default=None) - """ - true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) - """ - - metadata: typing.Optional[EventStreamCloudEventConnectionUpdatedObject3Metadata] = None - name: str = pydantic.Field() - """ - The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 - """ - - realms: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. - """ - - options: typing.Optional[EventStreamCloudEventConnectionUpdatedObject3Options] = None - show_as_button: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to `false`. - """ - - strategy: EventStreamCloudEventConnectionUpdatedObject3StrategyEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_3_authentication.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_3_authentication.py deleted file mode 100644 index 8a11d577..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_3_authentication.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionUpdatedObject3Authentication(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for authentication during login. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_3_connected_accounts.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_3_connected_accounts.py deleted file mode 100644 index 39b6caa9..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_3_connected_accounts.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionUpdatedObject3ConnectedAccounts(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for connected accounts and Token Vault. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_3_metadata.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_3_metadata.py deleted file mode 100644 index 0618060d..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_3_metadata.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionUpdatedObject3Metadata(UniversalBaseModel): - """ - Metadata associated with the connection in the form of an object with string values (max 255 chars). Maximum of 10 metadata properties allowed. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_3_options.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_3_options.py deleted file mode 100644 index d0bcb8dc..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_3_options.py +++ /dev/null @@ -1,172 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_connection_updated_object_3_options_assertion_decryption_settings import ( - EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettings, -) -from .event_stream_cloud_event_connection_updated_object_3_options_digest_algorithm_enum import ( - EventStreamCloudEventConnectionUpdatedObject3OptionsDigestAlgorithmEnum, -) -from .event_stream_cloud_event_connection_updated_object_3_options_idpinitiated import ( - EventStreamCloudEventConnectionUpdatedObject3OptionsIdpinitiated, -) -from .event_stream_cloud_event_connection_updated_object_3_options_protocol_binding_enum import ( - EventStreamCloudEventConnectionUpdatedObject3OptionsProtocolBindingEnum, -) -from .event_stream_cloud_event_connection_updated_object_3_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionUpdatedObject3OptionsSetUserRootAttributesEnum, -) -from .event_stream_cloud_event_connection_updated_object_3_options_signature_algorithm_enum import ( - EventStreamCloudEventConnectionUpdatedObject3OptionsSignatureAlgorithmEnum, -) -from .event_stream_cloud_event_connection_updated_object_3_options_subject import ( - EventStreamCloudEventConnectionUpdatedObject3OptionsSubject, -) -from .event_stream_cloud_event_connection_updated_object_3_options_upstream_params import ( - EventStreamCloudEventConnectionUpdatedObject3OptionsUpstreamParams, -) - - -class EventStreamCloudEventConnectionUpdatedObject3Options(UniversalBaseModel): - """ - Options for the 'pingfederate' connection - """ - - assertion_decryption_settings: typing.Optional[ - EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettings - ] = None - cert: typing.Optional[str] = pydantic.Field(default=None) - """ - X.509 signing certificate from the identity provider in .der format. Used to validate signatures in SAML Responses and Assertions. This is an alternative to signingCert and is kept for backward compatibility. Prefer using signingCert instead. - """ - - cert_rollover_notification: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Timestamp of the last certificate expiring soon notification. - """ - - digest_algorithm: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventConnectionUpdatedObject3OptionsDigestAlgorithmEnum], - FieldMetadata(alias="digestAlgorithm"), - pydantic.Field(alias="digestAlgorithm"), - ] = None - domain_aliases: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Domain aliases for the connection - """ - - entity_id: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="entityId"), - pydantic.Field( - alias="entityId", - description="The entity identifier (Issuer) for the SAML Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'. This value is included in SAML AuthnRequest messages sent to the identity provider.", - ), - ] = None - """ - The entity identifier (Issuer) for the SAML Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'. This value is included in SAML AuthnRequest messages sent to the identity provider. - """ - - expires: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - ISO 8601 formatted datetime indicating when the identity provider's signing certificate expires. - """ - - icon_url: typing.Optional[str] = pydantic.Field(default=None) - """ - URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows. - """ - - idpinitiated: typing.Optional[EventStreamCloudEventConnectionUpdatedObject3OptionsIdpinitiated] = None - non_persistent_attrs: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) - """ - - protocol_binding: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventConnectionUpdatedObject3OptionsProtocolBindingEnum], - FieldMetadata(alias="protocolBinding"), - pydantic.Field(alias="protocolBinding"), - ] = None - set_user_root_attributes: typing.Optional[ - EventStreamCloudEventConnectionUpdatedObject3OptionsSetUserRootAttributesEnum - ] = None - signature_algorithm: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventConnectionUpdatedObject3OptionsSignatureAlgorithmEnum], - FieldMetadata(alias="signatureAlgorithm"), - pydantic.Field(alias="signatureAlgorithm"), - ] = None - sign_in_endpoint: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="signInEndpoint"), - pydantic.Field( - alias="signInEndpoint", - description="Identity provider's SAML SingleSignOnService endpoint URL where Auth0 sends SAML authentication requests. This is the primary login URL for the SAML connection. Required unless using metadataUrl or metadataXml.", - ), - ] = None - """ - Identity provider's SAML SingleSignOnService endpoint URL where Auth0 sends SAML authentication requests. This is the primary login URL for the SAML connection. Required unless using metadataUrl or metadataXml. - """ - - signing_cert: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="signingCert"), - pydantic.Field( - alias="signingCert", - description="Base64-encoded X.509 certificate from the identity provider used to validate signatures in SAML responses and assertions. The certificate is decoded and used for cryptographic signature verification.", - ), - ] = None - """ - Base64-encoded X.509 certificate from the identity provider used to validate signatures in SAML responses and assertions. The certificate is decoded and used for cryptographic signature verification. - """ - - sign_saml_request: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="signSAMLRequest"), - pydantic.Field( - alias="signSAMLRequest", - description="When true, Auth0 signs SAML authentication requests using the connection's signing key. The signature includes the request's digest and is validated by the identity provider. Defaults to false (unsigned requests).", - ), - ] = None - """ - When true, Auth0 signs SAML authentication requests using the connection's signing key. The signature includes the request's digest and is validated by the identity provider. Defaults to false (unsigned requests). - """ - - subject: typing.Optional[EventStreamCloudEventConnectionUpdatedObject3OptionsSubject] = None - tenant_domain: typing.Optional[str] = pydantic.Field(default=None) - """ - For SAML connections, the tenant domain used to construct the login endpoint URL. Can be a string for single-tenant or an array of strings for multi-tenant validation. - """ - - thumbprints: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - SHA-1 thumbprints (fingerprints) of the identity provider's signing certificates. Automatically computed from signingCert during connection creation. Each thumbprint must be a 40-character hexadecimal string. - """ - - upstream_params: typing.Optional[EventStreamCloudEventConnectionUpdatedObject3OptionsUpstreamParams] = None - ping_federate_base_url: typing_extensions.Annotated[ - str, - FieldMetadata(alias="pingFederateBaseUrl"), - pydantic.Field( - alias="pingFederateBaseUrl", - description="URL provided by PingFederate which returns information used for creating the connection", - ), - ] - """ - URL provided by PingFederate which returns information used for creating the connection - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_3_options_assertion_decryption_settings.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_3_options_assertion_decryption_settings.py deleted file mode 100644 index 6adfa372..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_3_options_assertion_decryption_settings.py +++ /dev/null @@ -1,33 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_updated_object_3_options_assertion_decryption_settings_algorithm_profile_enum import ( - EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum, -) - - -class EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettings(UniversalBaseModel): - """ - Settings for SAML assertion decryption. - """ - - algorithm_exceptions: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of insecure algorithms to allow for SAML assertion decryption. - """ - - algorithm_profile: ( - EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum - ) - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_3_options_assertion_decryption_settings_algorithm_profile_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_3_options_assertion_decryption_settings_algorithm_profile_enum.py deleted file mode 100644 index 6c954a0e..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_3_options_assertion_decryption_settings_algorithm_profile_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum = typing.Union[ - typing.Literal["v2026-1"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_3_options_digest_algorithm_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_3_options_digest_algorithm_enum.py deleted file mode 100644 index 52eab845..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_3_options_digest_algorithm_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedObject3OptionsDigestAlgorithmEnum = typing.Union[ - typing.Literal["sha1", "sha256"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_3_options_idpinitiated.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_3_options_idpinitiated.py deleted file mode 100644 index f804a494..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_3_options_idpinitiated.py +++ /dev/null @@ -1,42 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_updated_object_3_options_idpinitiated_client_protocol_enum import ( - EventStreamCloudEventConnectionUpdatedObject3OptionsIdpinitiatedClientProtocolEnum, -) - - -class EventStreamCloudEventConnectionUpdatedObject3OptionsIdpinitiated(UniversalBaseModel): - """ - Configuration for IdP-Initiated SAML Single Sign-On. When enabled, allows users to initiate login directly from their SAML identity provider without first visiting Auth0. The IdP must include the connection parameter in the post-back URL (Assertion Consumer Service URL). - """ - - client_authorizequery: typing.Optional[str] = pydantic.Field(default=None) - """ - The query string sent to the default application - """ - - client_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The client ID to use for IdP-initiated login requests. - """ - - client_protocol: typing.Optional[ - EventStreamCloudEventConnectionUpdatedObject3OptionsIdpinitiatedClientProtocolEnum - ] = None - enabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true, enables IdP-initiated login support for this SAML connection. Allows users to log in directly from the identity provider without first visiting Auth0. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_3_options_idpinitiated_client_protocol_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_3_options_idpinitiated_client_protocol_enum.py deleted file mode 100644 index 4244ce0c..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_3_options_idpinitiated_client_protocol_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedObject3OptionsIdpinitiatedClientProtocolEnum = typing.Union[ - typing.Literal["oidc", "samlp", "wsfed"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_3_options_protocol_binding_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_3_options_protocol_binding_enum.py deleted file mode 100644 index f4ecc14f..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_3_options_protocol_binding_enum.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedObject3OptionsProtocolBindingEnum = typing.Union[ - typing.Literal[ - "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST", "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect" - ], - typing.Any, -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_3_options_set_user_root_attributes_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_3_options_set_user_root_attributes_enum.py deleted file mode 100644 index e15e4154..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_3_options_set_user_root_attributes_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedObject3OptionsSetUserRootAttributesEnum = typing.Union[ - typing.Literal["on_each_login", "on_first_login", "never_on_login"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_3_options_signature_algorithm_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_3_options_signature_algorithm_enum.py deleted file mode 100644 index 53bd7c9f..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_3_options_signature_algorithm_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedObject3OptionsSignatureAlgorithmEnum = typing.Union[ - typing.Literal["rsa-sha1", "rsa-sha256"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_3_options_subject.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_3_options_subject.py deleted file mode 100644 index 68a649b4..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_3_options_subject.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionUpdatedObject3OptionsSubject(UniversalBaseModel): - """ - Certificate Subject Distinguished Name (DN) extracted from the identity provider's signing certificate. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_3_options_upstream_params.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_3_options_upstream_params.py deleted file mode 100644 index 2d94354e..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_3_options_upstream_params.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedObject3OptionsUpstreamParams = typing.Dict[str, typing.Any] -""" -Additional parameters to include in authorization requests sent to the identity provider. Useful for passing custom claims, selecting specific identity sources, or configuring provider-specific behavior. See https://auth0.com/docs/authenticate/identity-providers/pass-parameters-to-idps -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_3_strategy_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_3_strategy_enum.py deleted file mode 100644 index a7b88fde..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_3_strategy_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedObject3StrategyEnum = typing.Union[typing.Literal["pingfederate"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_4.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_4.py deleted file mode 100644 index 4d15e9a0..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_4.py +++ /dev/null @@ -1,73 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_updated_object_4_authentication import ( - EventStreamCloudEventConnectionUpdatedObject4Authentication, -) -from .event_stream_cloud_event_connection_updated_object_4_connected_accounts import ( - EventStreamCloudEventConnectionUpdatedObject4ConnectedAccounts, -) -from .event_stream_cloud_event_connection_updated_object_4_metadata import ( - EventStreamCloudEventConnectionUpdatedObject4Metadata, -) -from .event_stream_cloud_event_connection_updated_object_4_options import ( - EventStreamCloudEventConnectionUpdatedObject4Options, -) -from .event_stream_cloud_event_connection_updated_object_4_strategy_enum import ( - EventStreamCloudEventConnectionUpdatedObject4StrategyEnum, -) - - -class EventStreamCloudEventConnectionUpdatedObject4(UniversalBaseModel): - authentication: typing.Optional[EventStreamCloudEventConnectionUpdatedObject4Authentication] = None - connected_accounts: typing.Optional[EventStreamCloudEventConnectionUpdatedObject4ConnectedAccounts] = None - display_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Connection name used in the new universal login experience - """ - - enabled_clients: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. - """ - - id: str = pydantic.Field() - """ - The connection's identifier - """ - - is_domain_connection: typing.Optional[bool] = pydantic.Field(default=None) - """ - true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) - """ - - metadata: typing.Optional[EventStreamCloudEventConnectionUpdatedObject4Metadata] = None - name: str = pydantic.Field() - """ - The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 - """ - - realms: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. - """ - - options: typing.Optional[EventStreamCloudEventConnectionUpdatedObject4Options] = None - show_as_button: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to `false`. - """ - - strategy: EventStreamCloudEventConnectionUpdatedObject4StrategyEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_4_authentication.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_4_authentication.py deleted file mode 100644 index 66dbcee3..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_4_authentication.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionUpdatedObject4Authentication(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for authentication during login. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_4_connected_accounts.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_4_connected_accounts.py deleted file mode 100644 index e86aa6c5..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_4_connected_accounts.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionUpdatedObject4ConnectedAccounts(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for connected accounts and Token Vault. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_4_metadata.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_4_metadata.py deleted file mode 100644 index a8c8ef59..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_4_metadata.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionUpdatedObject4Metadata(UniversalBaseModel): - """ - Metadata associated with the connection in the form of an object with string values (max 255 chars). Maximum of 10 metadata properties allowed. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_4_options.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_4_options.py deleted file mode 100644 index d265d005..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_4_options.py +++ /dev/null @@ -1,121 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_connection_updated_object_4_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionUpdatedObject4OptionsSetUserRootAttributesEnum, -) -from .event_stream_cloud_event_connection_updated_object_4_options_should_trust_email_verified_connection_enum import ( - EventStreamCloudEventConnectionUpdatedObject4OptionsShouldTrustEmailVerifiedConnectionEnum, -) -from .event_stream_cloud_event_connection_updated_object_4_options_upstream_params import ( - EventStreamCloudEventConnectionUpdatedObject4OptionsUpstreamParams, -) - - -class EventStreamCloudEventConnectionUpdatedObject4Options(UniversalBaseModel): - """ - Options for the 'adfs' connection - """ - - adfs_server: typing.Optional[str] = pydantic.Field(default=None) - """ - ADFS federation metadata host or XML URL used to discover WS-Fed endpoints and certificates. Errors if adfs_server and fedMetadataXml are both absent. - """ - - cert_rollover_notification: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Timestamp of the last certificate expiring soon notification. - """ - - domain_aliases: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication. - """ - - entity_id: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="entityId"), - pydantic.Field( - alias="entityId", - description="The entity identifier (Issuer) for the ADFS Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'.", - ), - ] = None - """ - The entity identifier (Issuer) for the ADFS Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'. - """ - - fed_metadata_xml: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="fedMetadataXml"), - pydantic.Field( - alias="fedMetadataXml", - description="Inline XML alternative to 'adfs_server'. Cannot be set together with 'adfs_server'.", - ), - ] = None - """ - Inline XML alternative to 'adfs_server'. Cannot be set together with 'adfs_server'. - """ - - icon_url: typing.Optional[str] = pydantic.Field(default=None) - """ - URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows. - """ - - non_persistent_attrs: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) - """ - - prev_thumbprints: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Array of certificate thumbprints (SHA-128/SHA-256/SHA-512 hex hashes) for validating SAML signatures. Used with WS-Federation protocol. Maximum 20 thumbprints. Each thumbprint must be a hexadecimal string. - """ - - set_user_root_attributes: typing.Optional[ - EventStreamCloudEventConnectionUpdatedObject4OptionsSetUserRootAttributesEnum - ] = None - should_trust_email_verified_connection: typing.Optional[ - EventStreamCloudEventConnectionUpdatedObject4OptionsShouldTrustEmailVerifiedConnectionEnum - ] = None - sign_in_endpoint: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="signInEndpoint"), - pydantic.Field( - alias="signInEndpoint", - description="Passive Requestor (WS-Fed) sign-in endpoint discovered from metadata or provided explicitly.", - ), - ] = None - """ - Passive Requestor (WS-Fed) sign-in endpoint discovered from metadata or provided explicitly. - """ - - tenant_domain: typing.Optional[str] = pydantic.Field(default=None) - """ - Tenant domain - """ - - thumbprints: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Array of certificate thumbprints (SHA-128/SHA-256/SHA-512 hex hashes) for validating SAML signatures. Used with WS-Federation protocol. Maximum 20 thumbprints. Each thumbprint must be a hexadecimal string. - """ - - upstream_params: typing.Optional[EventStreamCloudEventConnectionUpdatedObject4OptionsUpstreamParams] = None - user_id_attribute: typing.Optional[str] = pydantic.Field(default=None) - """ - Custom ADFS claim to use as the unique user identifier. When provided, this attribute is prepended to the default user_id mapping list with highest priority. Accepts a string (single ADFS claim name). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_4_options_set_user_root_attributes_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_4_options_set_user_root_attributes_enum.py deleted file mode 100644 index 5be2ac66..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_4_options_set_user_root_attributes_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedObject4OptionsSetUserRootAttributesEnum = typing.Union[ - typing.Literal["on_each_login", "on_first_login", "never_on_login"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_4_options_should_trust_email_verified_connection_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_4_options_should_trust_email_verified_connection_enum.py deleted file mode 100644 index a665acd5..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_4_options_should_trust_email_verified_connection_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedObject4OptionsShouldTrustEmailVerifiedConnectionEnum = typing.Union[ - typing.Literal["never_set_emails_as_verified", "always_set_emails_as_verified"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_4_options_upstream_params.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_4_options_upstream_params.py deleted file mode 100644 index 77aa6e7a..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_4_options_upstream_params.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedObject4OptionsUpstreamParams = typing.Dict[str, typing.Any] -""" -Additional parameters to include in authorization requests sent to the identity provider. Useful for passing custom claims, selecting specific identity sources, or configuring provider-specific behavior. See https://auth0.com/docs/authenticate/identity-providers/pass-parameters-to-idps -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_4_strategy_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_4_strategy_enum.py deleted file mode 100644 index 6e921a89..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_4_strategy_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedObject4StrategyEnum = typing.Union[typing.Literal["adfs"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_5.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_5.py deleted file mode 100644 index e109672d..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_5.py +++ /dev/null @@ -1,68 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_updated_object_5_authentication import ( - EventStreamCloudEventConnectionUpdatedObject5Authentication, -) -from .event_stream_cloud_event_connection_updated_object_5_connected_accounts import ( - EventStreamCloudEventConnectionUpdatedObject5ConnectedAccounts, -) -from .event_stream_cloud_event_connection_updated_object_5_metadata import ( - EventStreamCloudEventConnectionUpdatedObject5Metadata, -) -from .event_stream_cloud_event_connection_updated_object_5_options import ( - EventStreamCloudEventConnectionUpdatedObject5Options, -) -from .event_stream_cloud_event_connection_updated_object_5_strategy_enum import ( - EventStreamCloudEventConnectionUpdatedObject5StrategyEnum, -) - - -class EventStreamCloudEventConnectionUpdatedObject5(UniversalBaseModel): - authentication: typing.Optional[EventStreamCloudEventConnectionUpdatedObject5Authentication] = None - connected_accounts: typing.Optional[EventStreamCloudEventConnectionUpdatedObject5ConnectedAccounts] = None - display_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Connection name used in the new universal login experience - """ - - enabled_clients: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. - """ - - id: str = pydantic.Field() - """ - The connection's identifier - """ - - is_domain_connection: typing.Optional[bool] = pydantic.Field(default=None) - """ - true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) - """ - - metadata: typing.Optional[EventStreamCloudEventConnectionUpdatedObject5Metadata] = None - name: str = pydantic.Field() - """ - The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 - """ - - realms: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. - """ - - options: typing.Optional[EventStreamCloudEventConnectionUpdatedObject5Options] = None - strategy: EventStreamCloudEventConnectionUpdatedObject5StrategyEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_5_authentication.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_5_authentication.py deleted file mode 100644 index c69f2895..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_5_authentication.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionUpdatedObject5Authentication(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for authentication during login. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_5_connected_accounts.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_5_connected_accounts.py deleted file mode 100644 index f13e88cd..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_5_connected_accounts.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionUpdatedObject5ConnectedAccounts(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for connected accounts and Token Vault. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_5_metadata.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_5_metadata.py deleted file mode 100644 index 5f888d0d..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_5_metadata.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionUpdatedObject5Metadata(UniversalBaseModel): - """ - Metadata associated with the connection in the form of an object with string values (max 255 chars). Maximum of 10 metadata properties allowed. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_5_options.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_5_options.py deleted file mode 100644 index 7fc67b3b..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_5_options.py +++ /dev/null @@ -1,154 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_connection_updated_object_5_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionUpdatedObject5OptionsSetUserRootAttributesEnum, -) -from .event_stream_cloud_event_connection_updated_object_5_options_upstream_params import ( - EventStreamCloudEventConnectionUpdatedObject5OptionsUpstreamParams, -) - - -class EventStreamCloudEventConnectionUpdatedObject5Options(UniversalBaseModel): - """ - Options for the 'ad' connection - """ - - agent_ip: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="agentIP"), - pydantic.Field( - alias="agentIP", - description="IP address of the AD connector agent used to validate that authentication requests originate from the corporate network for Kerberos authentication (managed by the AD Connector agent).", - ), - ] = None - """ - IP address of the AD connector agent used to validate that authentication requests originate from the corporate network for Kerberos authentication (managed by the AD Connector agent). - """ - - agent_mode: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="agentMode"), - pydantic.Field( - alias="agentMode", - description="When enabled, allows direct username/password authentication through the AD connector agent instead of WS-Federation protocol (managed by the AD Connector agent).", - ), - ] = None - """ - When enabled, allows direct username/password authentication through the AD connector agent instead of WS-Federation protocol (managed by the AD Connector agent). - """ - - agent_version: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="agentVersion"), - pydantic.Field( - alias="agentVersion", - description="Version identifier of the installed AD connector agent software (managed by the AD Connector agent).", - ), - ] = None - """ - Version identifier of the installed AD connector agent software (managed by the AD Connector agent). - """ - - brute_force_protection: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables Auth0's brute force protection to prevent credential stuffing attacks. When enabled, blocks suspicious login attempts from specific IP addresses after repeated failures. - """ - - cert_auth: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="certAuth"), - pydantic.Field( - alias="certAuth", - description="Enables client SSL certificate authentication for the AD connector, requiring HTTPS on the sign-in endpoint", - ), - ] = None - """ - Enables client SSL certificate authentication for the AD connector, requiring HTTPS on the sign-in endpoint - """ - - certs: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Array of X.509 certificates in PEM format used for validating SAML signatures from the AD identity provider (managed by the AD Connector agent). - """ - - disable_cache: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, disables caching of AD connector authentication results to ensure real-time validation against the directory - """ - - disable_self_service_change_password: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, hides the 'Forgot Password' link on login pages to prevent users from initiating self-service password resets - """ - - domain_aliases: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - List of domain names that can be used with identifier-first authentication flow to route users to this AD connection; each domain must be a valid DNS name up to 256 characters - """ - - icon_url: typing.Optional[str] = pydantic.Field(default=None) - """ - https url of the icon to be shown - """ - - ips: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Array of IP address ranges in CIDR notation used to determine if authentication requests originate from the corporate network for Kerberos or certificate authentication. - """ - - kerberos: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables Windows Integrated Authentication (Kerberos) for seamless SSO when users authenticate from within the corporate network IP ranges - """ - - kerberos_only: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true, restricts the connection to Kerberos-only authentication, disallowing username/password fallback. - """ - - non_persistent_attrs: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) - """ - - set_user_root_attributes: typing.Optional[ - EventStreamCloudEventConnectionUpdatedObject5OptionsSetUserRootAttributesEnum - ] = None - sign_in_endpoint: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="signInEndpoint"), - pydantic.Field( - alias="signInEndpoint", - description="The sign-in endpoint type for the AD-LDAP connector agent (managed by the AD Connector agent).", - ), - ] = None - """ - The sign-in endpoint type for the AD-LDAP connector agent (managed by the AD Connector agent). - """ - - tenant_domain: typing.Optional[str] = pydantic.Field(default=None) - """ - Primary AD domain hint used for HRD and discovery. - """ - - thumbprints: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Array of certificate SHA-1 thumbprints for validating signatures. Managed by Auth0 when using the AD Connector agent. - """ - - upstream_params: typing.Optional[EventStreamCloudEventConnectionUpdatedObject5OptionsUpstreamParams] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_5_options_set_user_root_attributes_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_5_options_set_user_root_attributes_enum.py deleted file mode 100644 index 9e19195e..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_5_options_set_user_root_attributes_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedObject5OptionsSetUserRootAttributesEnum = typing.Union[ - typing.Literal["on_each_login", "on_first_login", "never_on_login"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_5_options_upstream_params.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_5_options_upstream_params.py deleted file mode 100644 index 9a6f6e82..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_5_options_upstream_params.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedObject5OptionsUpstreamParams = typing.Dict[str, typing.Any] -""" -Additional parameters to include in authorization requests sent to the identity provider. Useful for passing custom claims, selecting specific identity sources, or configuring provider-specific behavior. See https://auth0.com/docs/authenticate/identity-providers/pass-parameters-to-idps -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_5_strategy_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_5_strategy_enum.py deleted file mode 100644 index f8ea046f..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_5_strategy_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedObject5StrategyEnum = typing.Union[typing.Literal["ad"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_6.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_6.py deleted file mode 100644 index 1c1c7216..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_6.py +++ /dev/null @@ -1,73 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_updated_object_6_authentication import ( - EventStreamCloudEventConnectionUpdatedObject6Authentication, -) -from .event_stream_cloud_event_connection_updated_object_6_connected_accounts import ( - EventStreamCloudEventConnectionUpdatedObject6ConnectedAccounts, -) -from .event_stream_cloud_event_connection_updated_object_6_metadata import ( - EventStreamCloudEventConnectionUpdatedObject6Metadata, -) -from .event_stream_cloud_event_connection_updated_object_6_options import ( - EventStreamCloudEventConnectionUpdatedObject6Options, -) -from .event_stream_cloud_event_connection_updated_object_6_strategy_enum import ( - EventStreamCloudEventConnectionUpdatedObject6StrategyEnum, -) - - -class EventStreamCloudEventConnectionUpdatedObject6(UniversalBaseModel): - authentication: typing.Optional[EventStreamCloudEventConnectionUpdatedObject6Authentication] = None - connected_accounts: typing.Optional[EventStreamCloudEventConnectionUpdatedObject6ConnectedAccounts] = None - display_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Connection name used in the new universal login experience - """ - - enabled_clients: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. - """ - - id: str = pydantic.Field() - """ - The connection's identifier - """ - - is_domain_connection: typing.Optional[bool] = pydantic.Field(default=None) - """ - true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) - """ - - metadata: typing.Optional[EventStreamCloudEventConnectionUpdatedObject6Metadata] = None - name: str = pydantic.Field() - """ - The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 - """ - - realms: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. - """ - - options: typing.Optional[EventStreamCloudEventConnectionUpdatedObject6Options] = None - show_as_button: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to `false`. - """ - - strategy: EventStreamCloudEventConnectionUpdatedObject6StrategyEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_6_authentication.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_6_authentication.py deleted file mode 100644 index 0db5159d..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_6_authentication.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionUpdatedObject6Authentication(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for authentication during login. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_6_connected_accounts.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_6_connected_accounts.py deleted file mode 100644 index abd2ec0a..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_6_connected_accounts.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionUpdatedObject6ConnectedAccounts(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for connected accounts and Token Vault. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_6_metadata.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_6_metadata.py deleted file mode 100644 index 97818438..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_6_metadata.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionUpdatedObject6Metadata(UniversalBaseModel): - """ - Metadata associated with the connection in the form of an object with string values (max 255 chars). Maximum of 10 metadata properties allowed. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_6_options.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_6_options.py deleted file mode 100644 index 8e3f0cd7..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_6_options.py +++ /dev/null @@ -1,139 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_updated_object_6_options_federated_connections_access_tokens import ( - EventStreamCloudEventConnectionUpdatedObject6OptionsFederatedConnectionsAccessTokens, -) -from .event_stream_cloud_event_connection_updated_object_6_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionUpdatedObject6OptionsSetUserRootAttributesEnum, -) -from .event_stream_cloud_event_connection_updated_object_6_options_upstream_params import ( - EventStreamCloudEventConnectionUpdatedObject6OptionsUpstreamParams, -) - - -class EventStreamCloudEventConnectionUpdatedObject6Options(UniversalBaseModel): - """ - Options for the 'google-apps' connection - """ - - admin_access_token_expiresin: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Expiration timestamp for the `admin_access_token` in ISO 8601 format. Auth0 uses this value to determine when to refresh the token. - """ - - allow_setting_login_scopes: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true, allows customization of OAuth scopes requested during user login. Custom scopes are appended to the mandatory email and profile scopes. When false or omitted, only the default email and profile scopes are used. This property is automatically enabled when Token Vault or Connected Accounts features are activated. - """ - - api_enable_groups: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables integration with the Google Workspace Admin SDK Directory API for groups. When true, Auth0 can synchronize groups & group memberships and supports inbound directory provisioning for groups. Defaults to false. - """ - - api_enable_users: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables integration with the Google Workspace Admin SDK Directory API. When true, Auth0 can retrieve extended user attributes (admin status, suspension status, group memberships) and supports inbound directory provisioning (SCIM). Defaults to true. - """ - - client_id: str = pydantic.Field() - """ - Your Google OAuth 2.0 client ID. You can find this in your [Google Cloud Console](https://console.cloud.google.com/apis/credentials) under the OAuth 2.0 Client IDs section. - """ - - domain: typing.Optional[str] = pydantic.Field(default=None) - """ - Primary Google Workspace domain name that users must belong to. - """ - - domain_aliases: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication. - """ - - email: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether the OAuth flow requests the `email` scope. - """ - - ext_agreed_terms: typing.Optional[bool] = pydantic.Field(default=None) - """ - Fetches the `agreedToTerms` flag from the Google Directory profile. - """ - - ext_groups: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables enrichment with Google group memberships (required for `ext_groups_extended`). - """ - - ext_groups_extended: typing.Optional[bool] = pydantic.Field(default=None) - """ - Controls whether enriched group entries include `id`, `email`, `name` (true) or only the group name (false); can only be set when `ext_groups` is true. - """ - - ext_is_admin: typing.Optional[bool] = pydantic.Field(default=None) - """ - Fetches the Google Directory admin flag for the signing-in user. - """ - - ext_is_suspended: typing.Optional[bool] = pydantic.Field(default=None) - """ - Fetches the Google Directory suspended flag for the signing-in user. - """ - - federated_connections_access_tokens: typing.Optional[ - EventStreamCloudEventConnectionUpdatedObject6OptionsFederatedConnectionsAccessTokens - ] = None - handle_login_from_social: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, users who sign in with their Google account through a social login will be automatically routed to this Google Workspace connection if their email domain matches the configured tenant_domain or domain_aliases. This ensures enterprise users authenticate through their organization's Google Workspace identity provider rather than through a generic Google social login, enabling access to directory-based attributes and enforcing organizational security policies. Defaults to true for new connections. - """ - - icon_url: typing.Optional[str] = pydantic.Field(default=None) - """ - URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows. - """ - - map_user_id_to_id: typing.Optional[bool] = pydantic.Field(default=None) - """ - Determines how Auth0 generates the user_id for Google Workspace users. When false (default), the user's email address is used. When true, Google's stable numeric user ID is used instead, which persists even if the user's email changes. This setting can only be configured when creating the connection and cannot be changed afterward. - """ - - non_persistent_attrs: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) - """ - - profile: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether the OAuth flow requests the `profile` scope. - """ - - scope: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Additional OAuth scopes requested beyond the default `email profile` scopes; ignored unless `allow_setting_login_scopes` is true. - """ - - set_user_root_attributes: typing.Optional[ - EventStreamCloudEventConnectionUpdatedObject6OptionsSetUserRootAttributesEnum - ] = None - tenant_domain: typing.Optional[str] = pydantic.Field(default=None) - """ - The Google Workspace primary domain used to identify the organization during authentication. - """ - - upstream_params: typing.Optional[EventStreamCloudEventConnectionUpdatedObject6OptionsUpstreamParams] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_6_options_federated_connections_access_tokens.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_6_options_federated_connections_access_tokens.py deleted file mode 100644 index b56953d7..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_6_options_federated_connections_access_tokens.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionUpdatedObject6OptionsFederatedConnectionsAccessTokens(UniversalBaseModel): - """ - Configuration for storing identity provider tokens in Auth0's Token Vault. When active, Auth0 securely stores access and refresh tokens from federated logins, enabling your application to make authenticated API calls on behalf of users. - """ - - active: bool = pydantic.Field() - """ - Enables refresh tokens and access tokens collection for federated connections - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_6_options_set_user_root_attributes_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_6_options_set_user_root_attributes_enum.py deleted file mode 100644 index 05089814..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_6_options_set_user_root_attributes_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedObject6OptionsSetUserRootAttributesEnum = typing.Union[ - typing.Literal["on_each_login", "on_first_login", "never_on_login"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_6_options_upstream_params.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_6_options_upstream_params.py deleted file mode 100644 index 5646488b..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_6_options_upstream_params.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedObject6OptionsUpstreamParams = typing.Dict[str, typing.Any] -""" -Additional parameters to include in authorization requests sent to the identity provider. Useful for passing custom claims, selecting specific identity sources, or configuring provider-specific behavior. See https://auth0.com/docs/authenticate/identity-providers/pass-parameters-to-idps -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_6_strategy_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_6_strategy_enum.py deleted file mode 100644 index 6fca7c19..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_6_strategy_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedObject6StrategyEnum = typing.Union[typing.Literal["google-apps"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_7.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_7.py deleted file mode 100644 index e5231ed5..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_7.py +++ /dev/null @@ -1,73 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_updated_object_7_authentication import ( - EventStreamCloudEventConnectionUpdatedObject7Authentication, -) -from .event_stream_cloud_event_connection_updated_object_7_connected_accounts import ( - EventStreamCloudEventConnectionUpdatedObject7ConnectedAccounts, -) -from .event_stream_cloud_event_connection_updated_object_7_metadata import ( - EventStreamCloudEventConnectionUpdatedObject7Metadata, -) -from .event_stream_cloud_event_connection_updated_object_7_options import ( - EventStreamCloudEventConnectionUpdatedObject7Options, -) -from .event_stream_cloud_event_connection_updated_object_7_strategy_enum import ( - EventStreamCloudEventConnectionUpdatedObject7StrategyEnum, -) - - -class EventStreamCloudEventConnectionUpdatedObject7(UniversalBaseModel): - authentication: typing.Optional[EventStreamCloudEventConnectionUpdatedObject7Authentication] = None - connected_accounts: typing.Optional[EventStreamCloudEventConnectionUpdatedObject7ConnectedAccounts] = None - display_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Connection name used in the new universal login experience - """ - - enabled_clients: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. - """ - - id: str = pydantic.Field() - """ - The connection's identifier - """ - - is_domain_connection: typing.Optional[bool] = pydantic.Field(default=None) - """ - true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) - """ - - metadata: typing.Optional[EventStreamCloudEventConnectionUpdatedObject7Metadata] = None - name: str = pydantic.Field() - """ - The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 - """ - - realms: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. - """ - - options: typing.Optional[EventStreamCloudEventConnectionUpdatedObject7Options] = None - show_as_button: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to `false`. - """ - - strategy: EventStreamCloudEventConnectionUpdatedObject7StrategyEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_7_authentication.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_7_authentication.py deleted file mode 100644 index 5d56b545..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_7_authentication.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionUpdatedObject7Authentication(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for authentication during login. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_7_connected_accounts.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_7_connected_accounts.py deleted file mode 100644 index b5f1ae3c..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_7_connected_accounts.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionUpdatedObject7ConnectedAccounts(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for connected accounts and Token Vault. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_7_metadata.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_7_metadata.py deleted file mode 100644 index f3d0ab1a..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_7_metadata.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionUpdatedObject7Metadata(UniversalBaseModel): - """ - Metadata associated with the connection in the form of an object with string values (max 255 chars). Maximum of 10 metadata properties allowed. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_7_options.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_7_options.py deleted file mode 100644 index 056f4713..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_7_options.py +++ /dev/null @@ -1,177 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_connection_updated_object_7_options_federated_connections_access_tokens import ( - EventStreamCloudEventConnectionUpdatedObject7OptionsFederatedConnectionsAccessTokens, -) -from .event_stream_cloud_event_connection_updated_object_7_options_identity_api_enum import ( - EventStreamCloudEventConnectionUpdatedObject7OptionsIdentityApiEnum, -) -from .event_stream_cloud_event_connection_updated_object_7_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionUpdatedObject7OptionsSetUserRootAttributesEnum, -) -from .event_stream_cloud_event_connection_updated_object_7_options_should_trust_email_verified_connection_enum import ( - EventStreamCloudEventConnectionUpdatedObject7OptionsShouldTrustEmailVerifiedConnectionEnum, -) -from .event_stream_cloud_event_connection_updated_object_7_options_tenant_domain_one import ( - EventStreamCloudEventConnectionUpdatedObject7OptionsTenantDomainOne, -) -from .event_stream_cloud_event_connection_updated_object_7_options_upstream_params import ( - EventStreamCloudEventConnectionUpdatedObject7OptionsUpstreamParams, -) -from .event_stream_cloud_event_connection_updated_object_7_options_userid_attribute_enum import ( - EventStreamCloudEventConnectionUpdatedObject7OptionsUseridAttributeEnum, -) -from .event_stream_cloud_event_connection_updated_object_7_options_waad_protocol_enum import ( - EventStreamCloudEventConnectionUpdatedObject7OptionsWaadProtocolEnum, -) - - -class EventStreamCloudEventConnectionUpdatedObject7Options(UniversalBaseModel): - """ - Options for the 'waad' connection - """ - - api_enable_users: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enable users API - """ - - app_domain: typing.Optional[str] = pydantic.Field(default=None) - """ - The Azure AD application domain (e.g., 'contoso.onmicrosoft.com'). Used primarily with WS-Federation protocol and Azure AD v1 endpoints. - """ - - app_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The Application ID URI (App ID URI) for the Azure AD application. Required when using Azure AD v1 with the Resource Owner Password flow. Used to identify the resource being requested in OAuth token requests. - """ - - basic_profile: typing.Optional[bool] = pydantic.Field(default=None) - """ - Includes basic user profile information from Azure AD (name, email, given_name, family_name). Always enabled and required - represents the minimum profile data retrieved during authentication. - """ - - cert_rollover_notification: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Timestamp of the last certificate expiring soon notification. - """ - - client_id: str = pydantic.Field() - """ - OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider. - """ - - domain: typing.Optional[str] = pydantic.Field(default=None) - """ - The primary Azure AD tenant domain (e.g., 'contoso.onmicrosoft.com' or 'contoso.com'). - """ - - domain_aliases: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Alternative domain names associated with this Azure AD tenant. Allows users from multiple verified domains to authenticate through this connection. Can be an array of domain strings. - """ - - ext_groups: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled (true), retrieves and stores Azure AD security group memberships for the user. Requires Microsoft Graph API permissions (Directory.Read.All). Allows configuring max_groups_to_retrieve. - """ - - ext_nested_groups: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true, stores all groups the user is member of, including transitive group memberships (groups within groups). When false (default), only direct group memberships are included. - """ - - ext_profile: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled (true), retrieves extended profile attributes from Azure AD via Microsoft Graph API (job title, department, office location, etc.). Requires Graph API permissions. Only available with Azure AD v1 or when explicitly enabled for v2. - """ - - federated_connections_access_tokens: typing.Optional[ - EventStreamCloudEventConnectionUpdatedObject7OptionsFederatedConnectionsAccessTokens - ] = None - granted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether admin consent has been granted for the required Azure AD permissions. Read-only status field managed by Auth0 during the OAuth authorization flow. - """ - - icon_url: typing.Optional[str] = pydantic.Field(default=None) - """ - URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows. - """ - - identity_api: typing.Optional[EventStreamCloudEventConnectionUpdatedObject7OptionsIdentityApiEnum] = None - max_groups_to_retrieve: typing.Optional[str] = pydantic.Field(default=None) - """ - Maximum number of Azure AD groups to retrieve per user during authentication. Helps prevent performance issues for users in many groups. Only applies when ext_groups is enabled. Leave empty to use platform default. - """ - - non_persistent_attrs: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) - """ - - scope: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - OAuth 2.0 scopes to request from Azure AD during authentication. Each scope represents a permission (e.g., 'User.Read', 'Group.Read.All'). Only applies with Microsoft Identity Platform v2.0. See Microsoft Graph permissions reference for available scopes. - """ - - set_user_root_attributes: typing.Optional[ - EventStreamCloudEventConnectionUpdatedObject7OptionsSetUserRootAttributesEnum - ] = None - should_trust_email_verified_connection: typing.Optional[ - EventStreamCloudEventConnectionUpdatedObject7OptionsShouldTrustEmailVerifiedConnectionEnum - ] = None - tenant_domain: typing.Optional[EventStreamCloudEventConnectionUpdatedObject7OptionsTenantDomainOne] = None - tenant_id: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="tenantId"), - pydantic.Field( - alias="tenantId", - description="The Azure AD tenant ID as a UUID. The unique identifier for your Azure AD organization. Must be a valid 36-character UUID.", - ), - ] = None - """ - The Azure AD tenant ID as a UUID. The unique identifier for your Azure AD organization. Must be a valid 36-character UUID. - """ - - thumbprints: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Array of certificate thumbprints (SHA-128/SHA-256/SHA-512 hex hashes) for validating SAML signatures. Used with WS-Federation protocol. Maximum 20 thumbprints. Each thumbprint must be a hexadecimal string. - """ - - upstream_params: typing.Optional[EventStreamCloudEventConnectionUpdatedObject7OptionsUpstreamParams] = None - use_wsfed: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates WS-Federation protocol usage. When true, uses WS-Federation; when false, uses OpenID Connect. - """ - - use_common_endpoint: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="useCommonEndpoint"), - pydantic.Field( - alias="useCommonEndpoint", - description="When enabled (true), uses the Azure AD common endpoint for multi-tenant authentication. Allows users from any Azure AD organization to sign in. Requires userid_attribute set to 'sub' (not 'oid'). Cannot be used with SCIM provisioning. Defaults to false.", - ), - ] = None - """ - When enabled (true), uses the Azure AD common endpoint for multi-tenant authentication. Allows users from any Azure AD organization to sign in. Requires userid_attribute set to 'sub' (not 'oid'). Cannot be used with SCIM provisioning. Defaults to false. - """ - - userid_attribute: typing.Optional[EventStreamCloudEventConnectionUpdatedObject7OptionsUseridAttributeEnum] = None - waad_protocol: typing.Optional[EventStreamCloudEventConnectionUpdatedObject7OptionsWaadProtocolEnum] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_7_options_federated_connections_access_tokens.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_7_options_federated_connections_access_tokens.py deleted file mode 100644 index c776789f..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_7_options_federated_connections_access_tokens.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionUpdatedObject7OptionsFederatedConnectionsAccessTokens(UniversalBaseModel): - """ - Configuration for storing identity provider tokens in Auth0's Token Vault. When active, Auth0 securely stores access and refresh tokens from federated logins, enabling your application to make authenticated API calls on behalf of users. - """ - - active: bool = pydantic.Field() - """ - Enables refresh tokens and access tokens collection for federated connections - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_7_options_identity_api_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_7_options_identity_api_enum.py deleted file mode 100644 index 9f8ba882..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_7_options_identity_api_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedObject7OptionsIdentityApiEnum = typing.Union[ - typing.Literal["microsoft-identity-platform-v2.0", "azure-active-directory-v1.0"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_7_options_set_user_root_attributes_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_7_options_set_user_root_attributes_enum.py deleted file mode 100644 index 16a8b095..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_7_options_set_user_root_attributes_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedObject7OptionsSetUserRootAttributesEnum = typing.Union[ - typing.Literal["on_each_login", "on_first_login", "never_on_login"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_7_options_should_trust_email_verified_connection_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_7_options_should_trust_email_verified_connection_enum.py deleted file mode 100644 index 9011a15e..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_7_options_should_trust_email_verified_connection_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedObject7OptionsShouldTrustEmailVerifiedConnectionEnum = typing.Union[ - typing.Literal["never_set_emails_as_verified", "always_set_emails_as_verified"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_7_options_tenant_domain_one.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_7_options_tenant_domain_one.py deleted file mode 100644 index c5afd3c7..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_7_options_tenant_domain_one.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -EventStreamCloudEventConnectionUpdatedObject7OptionsTenantDomainOne = str -""" -Azure AD tenant domain as a UUID tenant ID. -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_7_options_upstream_params.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_7_options_upstream_params.py deleted file mode 100644 index ee0f1659..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_7_options_upstream_params.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedObject7OptionsUpstreamParams = typing.Dict[str, typing.Any] -""" -Additional parameters to include in authorization requests sent to the identity provider. Useful for passing custom claims, selecting specific identity sources, or configuring provider-specific behavior. See https://auth0.com/docs/authenticate/identity-providers/pass-parameters-to-idps -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_7_options_userid_attribute_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_7_options_userid_attribute_enum.py deleted file mode 100644 index 9a6a2397..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_7_options_userid_attribute_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedObject7OptionsUseridAttributeEnum = typing.Union[ - typing.Literal["oid", "sub"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_7_options_waad_protocol_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_7_options_waad_protocol_enum.py deleted file mode 100644 index be7269e4..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_7_options_waad_protocol_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedObject7OptionsWaadProtocolEnum = typing.Union[ - typing.Literal["ws-federation", "openid-connect"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_7_strategy_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_7_strategy_enum.py deleted file mode 100644 index 80947a87..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_object_7_strategy_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedObject7StrategyEnum = typing.Union[typing.Literal["waad"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object.py deleted file mode 100644 index 70f458e0..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object.py +++ /dev/null @@ -1,39 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .event_stream_cloud_event_connection_updated_previous_object_0 import ( - EventStreamCloudEventConnectionUpdatedPreviousObject0, -) -from .event_stream_cloud_event_connection_updated_previous_object_1 import ( - EventStreamCloudEventConnectionUpdatedPreviousObject1, -) -from .event_stream_cloud_event_connection_updated_previous_object_2 import ( - EventStreamCloudEventConnectionUpdatedPreviousObject2, -) -from .event_stream_cloud_event_connection_updated_previous_object_3 import ( - EventStreamCloudEventConnectionUpdatedPreviousObject3, -) -from .event_stream_cloud_event_connection_updated_previous_object_4 import ( - EventStreamCloudEventConnectionUpdatedPreviousObject4, -) -from .event_stream_cloud_event_connection_updated_previous_object_5 import ( - EventStreamCloudEventConnectionUpdatedPreviousObject5, -) -from .event_stream_cloud_event_connection_updated_previous_object_6 import ( - EventStreamCloudEventConnectionUpdatedPreviousObject6, -) -from .event_stream_cloud_event_connection_updated_previous_object_7 import ( - EventStreamCloudEventConnectionUpdatedPreviousObject7, -) - -EventStreamCloudEventConnectionUpdatedPreviousObject = typing.Union[ - EventStreamCloudEventConnectionUpdatedPreviousObject0, - EventStreamCloudEventConnectionUpdatedPreviousObject1, - EventStreamCloudEventConnectionUpdatedPreviousObject2, - EventStreamCloudEventConnectionUpdatedPreviousObject3, - EventStreamCloudEventConnectionUpdatedPreviousObject4, - EventStreamCloudEventConnectionUpdatedPreviousObject5, - EventStreamCloudEventConnectionUpdatedPreviousObject6, - EventStreamCloudEventConnectionUpdatedPreviousObject7, -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0.py deleted file mode 100644 index d2d0f4b5..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0.py +++ /dev/null @@ -1,73 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_updated_previous_object_0_authentication import ( - EventStreamCloudEventConnectionUpdatedPreviousObject0Authentication, -) -from .event_stream_cloud_event_connection_updated_previous_object_0_connected_accounts import ( - EventStreamCloudEventConnectionUpdatedPreviousObject0ConnectedAccounts, -) -from .event_stream_cloud_event_connection_updated_previous_object_0_metadata import ( - EventStreamCloudEventConnectionUpdatedPreviousObject0Metadata, -) -from .event_stream_cloud_event_connection_updated_previous_object_0_options import ( - EventStreamCloudEventConnectionUpdatedPreviousObject0Options, -) -from .event_stream_cloud_event_connection_updated_previous_object_0_strategy_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject0StrategyEnum, -) - - -class EventStreamCloudEventConnectionUpdatedPreviousObject0(UniversalBaseModel): - authentication: typing.Optional[EventStreamCloudEventConnectionUpdatedPreviousObject0Authentication] = None - display_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Connection name used in the new universal login experience - """ - - enabled_clients: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. - """ - - id: str = pydantic.Field() - """ - The connection's identifier - """ - - is_domain_connection: typing.Optional[bool] = pydantic.Field(default=None) - """ - true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) - """ - - metadata: typing.Optional[EventStreamCloudEventConnectionUpdatedPreviousObject0Metadata] = None - name: str = pydantic.Field() - """ - The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 - """ - - realms: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. - """ - - connected_accounts: typing.Optional[EventStreamCloudEventConnectionUpdatedPreviousObject0ConnectedAccounts] = None - options: typing.Optional[EventStreamCloudEventConnectionUpdatedPreviousObject0Options] = None - show_as_button: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to `false`. - """ - - strategy: EventStreamCloudEventConnectionUpdatedPreviousObject0StrategyEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_authentication.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_authentication.py deleted file mode 100644 index 1b1c93ec..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_authentication.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionUpdatedPreviousObject0Authentication(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for authentication during login. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_connected_accounts.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_connected_accounts.py deleted file mode 100644 index 9f8975c4..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_connected_accounts.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionUpdatedPreviousObject0ConnectedAccounts(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for connected accounts and Token Vault. - """ - - active: bool - cross_app_access: typing.Optional[bool] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_metadata.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_metadata.py deleted file mode 100644 index 9024aacc..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_metadata.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionUpdatedPreviousObject0Metadata(UniversalBaseModel): - """ - Metadata associated with the connection in the form of an object with string values (max 255 chars). Maximum of 10 metadata properties allowed. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_options.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_options.py deleted file mode 100644 index 4c5ecce8..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_options.py +++ /dev/null @@ -1,180 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_connection_updated_previous_object_0_options_attribute_map import ( - EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsAttributeMap, -) -from .event_stream_cloud_event_connection_updated_previous_object_0_options_connection_settings import ( - EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsConnectionSettings, -) -from .event_stream_cloud_event_connection_updated_previous_object_0_options_dpop_signing_alg_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsDpopSigningAlgEnum, -) -from .event_stream_cloud_event_connection_updated_previous_object_0_options_federated_connections_access_tokens import ( - EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsFederatedConnectionsAccessTokens, -) -from .event_stream_cloud_event_connection_updated_previous_object_0_options_id_token_signed_response_algs_item_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum, -) -from .event_stream_cloud_event_connection_updated_previous_object_0_options_oidc_metadata import ( - EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsOidcMetadata, -) -from .event_stream_cloud_event_connection_updated_previous_object_0_options_schema_version_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsSchemaVersionEnum, -) -from .event_stream_cloud_event_connection_updated_previous_object_0_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsSetUserRootAttributesEnum, -) -from .event_stream_cloud_event_connection_updated_previous_object_0_options_token_endpoint_auth_method_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTokenEndpointAuthMethodEnum, -) -from .event_stream_cloud_event_connection_updated_previous_object_0_options_token_endpoint_auth_signing_alg_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum, -) -from .event_stream_cloud_event_connection_updated_previous_object_0_options_token_endpoint_jwtca_aud_format_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTokenEndpointJwtcaAudFormatEnum, -) -from .event_stream_cloud_event_connection_updated_previous_object_0_options_type_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTypeEnum, -) -from .event_stream_cloud_event_connection_updated_previous_object_0_options_upstream_params import ( - EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsUpstreamParams, -) - - -class EventStreamCloudEventConnectionUpdatedPreviousObject0Options(UniversalBaseModel): - """ - Options for the 'oidc' connection - """ - - authorization_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow. - """ - - client_id: str = pydantic.Field() - """ - OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider. - """ - - connection_settings: typing.Optional[ - EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsConnectionSettings - ] = None - domain_aliases: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication. - """ - - dpop_signing_alg: typing.Optional[ - EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsDpopSigningAlgEnum - ] = None - federated_connections_access_tokens: typing.Optional[ - EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsFederatedConnectionsAccessTokens - ] = None - icon_url: typing.Optional[str] = pydantic.Field(default=None) - """ - https url of the icon to be shown - """ - - id_token_session_expiry_supported: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether the identity provider supports session expiry via the id_token. If true, the system will use the session_expiry claim in the id_token to determine session expiry. - """ - - id_token_signed_response_algs: typing.Optional[ - typing.List[EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum] - ] = pydantic.Field(default=None) - """ - List of algorithms allowed to verify the ID tokens. Applicable when strategy=oidc or okta. - """ - - issuer: typing.Optional[str] = pydantic.Field(default=None) - """ - The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider. - """ - - jwks_uri: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures. - """ - - non_persistent_attrs: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) - """ - - oidc_metadata: typing.Optional[EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsOidcMetadata] = None - schema_version: typing.Optional[EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsSchemaVersionEnum] = ( - None - ) - scope: typing.Optional[str] = pydantic.Field(default=None) - """ - Space-separated list of OAuth 2.0 scopes requested during authorization. Must include 'openid' (required by OIDC spec). Common values: 'openid profile email'. Additional scopes depend on the identity provider. - """ - - send_back_channel_nonce: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true and type is 'back_channel', includes a cryptographic nonce in authorization requests to prevent replay attacks. The identity provider must include this nonce in the ID token for validation. - """ - - set_user_root_attributes: typing.Optional[ - EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsSetUserRootAttributesEnum - ] = None - tenant_domain: typing.Optional[str] = pydantic.Field(default=None) - """ - Tenant domain - """ - - token_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow. - """ - - token_endpoint_auth_method: typing.Optional[ - EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTokenEndpointAuthMethodEnum - ] = None - token_endpoint_auth_signing_alg: typing.Optional[ - EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum - ] = None - token_endpoint_jwtca_aud_format: typing.Optional[ - EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTokenEndpointJwtcaAudFormatEnum - ] = None - upstream_params: typing.Optional[EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsUpstreamParams] = None - use_oauth_spec_scope: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="useOauthSpecScope"), - pydantic.Field( - alias="useOauthSpecScope", - description="When true, uses space-delimited scopes (per OAuth 2.0 spec) instead of comma-delimited when calling the identity provider's authorization endpoint. Only relevant when using the connection_scope parameter. See https://auth0.com/docs/authenticate/identity-providers/adding-scopes-for-an-external-idp#pass-scopes-to-authorize-endpoint", - ), - ] = None - """ - When true, uses space-delimited scopes (per OAuth 2.0 spec) instead of comma-delimited when calling the identity provider's authorization endpoint. Only relevant when using the connection_scope parameter. See https://auth0.com/docs/authenticate/identity-providers/adding-scopes-for-an-external-idp#pass-scopes-to-authorize-endpoint - """ - - userinfo_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token. - """ - - attribute_map: typing.Optional[EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsAttributeMap] = None - discovery_url: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's OIDC Discovery endpoint (/.well-known/openid-configuration). When provided and oidc_metadata is empty, Auth0 automatically retrieves the provider's configuration including endpoints and supported features. - """ - - type: typing.Optional[EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTypeEnum] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_options_attribute_map.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_options_attribute_map.py deleted file mode 100644 index 3c796afc..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_options_attribute_map.py +++ /dev/null @@ -1,39 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_updated_previous_object_0_options_attribute_map_attributes import ( - EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsAttributeMapAttributes, -) -from .event_stream_cloud_event_connection_updated_previous_object_0_options_attribute_map_mapping_mode_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsAttributeMapMappingModeEnum, -) - - -class EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsAttributeMap(UniversalBaseModel): - """ - Configuration for mapping claims from the identity provider to Auth0 user profile attributes. Allows customizing which IdP claims populate user fields and how they are transformed. - """ - - attributes: typing.Optional[EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsAttributeMapAttributes] = ( - None - ) - userinfo_scope: typing.Optional[str] = pydantic.Field(default=None) - """ - Scopes to send to the IdP's Userinfo endpoint - """ - - mapping_mode: typing.Optional[ - EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsAttributeMapMappingModeEnum - ] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_options_attribute_map_attributes.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_options_attribute_map_attributes.py deleted file mode 100644 index c27091b5..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_options_attribute_map_attributes.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsAttributeMapAttributes = typing.Dict[str, typing.Any] -""" -Object containing mapping details for incoming claims -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_options_attribute_map_mapping_mode_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_options_attribute_map_mapping_mode_enum.py deleted file mode 100644 index d905f188..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_options_attribute_map_mapping_mode_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsAttributeMapMappingModeEnum = typing.Union[ - typing.Literal["bind_all", "use_map"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_options_connection_settings.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_options_connection_settings.py deleted file mode 100644 index 7b93fc22..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_options_connection_settings.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_updated_previous_object_0_options_connection_settings_pkce_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsConnectionSettingsPkceEnum, -) - - -class EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsConnectionSettings(UniversalBaseModel): - """ - OAuth 2.0 PKCE (Proof Key for Code Exchange) settings. PKCE enhances security for public clients by preventing authorization code interception attacks. 'auto' (recommended) uses the strongest method supported by the IdP. - """ - - pkce: typing.Optional[EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsConnectionSettingsPkceEnum] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_options_connection_settings_pkce_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_options_connection_settings_pkce_enum.py deleted file mode 100644 index 3aeaf01e..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_options_connection_settings_pkce_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsConnectionSettingsPkceEnum = typing.Union[ - typing.Literal["auto", "S256", "plain", "disabled"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_options_dpop_signing_alg_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_options_dpop_signing_alg_enum.py deleted file mode 100644 index be2f0941..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_options_dpop_signing_alg_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsDpopSigningAlgEnum = typing.Union[ - typing.Literal["ES256", "ES384", "ES512", "Ed25519"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_options_federated_connections_access_tokens.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_options_federated_connections_access_tokens.py deleted file mode 100644 index 1fa03a19..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_options_federated_connections_access_tokens.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsFederatedConnectionsAccessTokens(UniversalBaseModel): - """ - Configuration for storing identity provider tokens in Auth0's Token Vault. When active, Auth0 securely stores access and refresh tokens from federated logins, enabling your application to make authenticated API calls on behalf of users. - """ - - active: bool = pydantic.Field() - """ - Enables refresh tokens and access tokens collection for federated connections - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_options_id_token_signed_response_algs_item_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_options_id_token_signed_response_algs_item_enum.py deleted file mode 100644 index 39315fe2..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_options_id_token_signed_response_algs_item_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsIdTokenSignedResponseAlgsItemEnum = typing.Union[ - typing.Literal["ES256", "ES384", "PS256", "PS384", "RS256", "RS384", "RS512"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_options_oidc_metadata.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_options_oidc_metadata.py deleted file mode 100644 index 642cf2f7..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_options_oidc_metadata.py +++ /dev/null @@ -1,211 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsOidcMetadata(UniversalBaseModel): - """ - OpenID Connect Provider Metadata as per https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata - """ - - acr_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the Authentication Context Class References that this OP supports - """ - - authorization_endpoint: str = pydantic.Field() - """ - URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow. - """ - - claim_types_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the Claim Types that the OpenID Provider supports. These Claim Types are described in Section 5.6 of OpenID Connect Core 1.0 [OpenID.Core]. If omitted, the implementation supports only normal Claims. - """ - - claims_locales_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Languages and scripts supported for values in Claims being returned, represented as a JSON array of BCP47 [RFC5646] language tag values. Not all languages and scripts are necessarily supported for all Claim values. - """ - - claims_parameter_supported: typing.Optional[bool] = pydantic.Field(default=None) - """ - Boolean value specifying whether the OP supports use of the claims parameter, with true indicating support. If omitted, the default value is false. - """ - - claims_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the Claim Names of the Claims that the OpenID Provider MAY be able to supply values for. Note that for privacy or other reasons, this might not be an exhaustive list. - """ - - code_challenge_methods_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636. - """ - - display_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used. - """ - - dpop_signing_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS signing algorithms (alg values) supported for DPoP proof JWT signing. - """ - - end_session_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's logout/end session endpoint. When configured as a static URL, users are redirected here after logging out from Auth0. Must use HTTPS scheme. - """ - - grant_types_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the OAuth 2.0 Grant Type values that this OP supports. Dynamic OpenID Providers MUST support the authorization_code and implicit Grant Type values and MAY support other Grant Types. If omitted, the default value is ["authorization_code", "implicit"]. - """ - - id_token_encryption_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT - """ - - id_token_encryption_enc_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for the ID Token to encode the Claims in a JWT [JWT]. - """ - - id_token_signing_alg_values_supported: typing.List[str] = pydantic.Field() - """ - A list of the JWS signing algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be included. The value none MAY be supported, but MUST NOT be used unless the Response Type used returns no ID Token from the Authorization Endpoint (such as when using the Authorization Code Flow). https://datatracker.ietf.org/doc/html/rfc7518 - """ - - issuer: str = pydantic.Field() - """ - The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider. - """ - - jwks_uri: str = pydantic.Field() - """ - URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures. - """ - - op_policy_uri: typing.Optional[str] = pydantic.Field(default=None) - """ - URL that the OpenID Provider provides to the person registering the Client to read about the OPs requirements on how the Relying Party can use the data provided by the OP. The registration process SHOULD display this URL to the person registering the Client if it is given. - """ - - op_tos_uri: typing.Optional[str] = pydantic.Field(default=None) - """ - URL that the OpenID Provider provides to the person registering the Client to read about OpenID Providers terms of service. The registration process SHOULD display this URL to the person registering the Client if it is given. - """ - - registration_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the OPs Dynamic Client Registration Endpoint. RECOMMENDED but not REQUIRED. https://openid.net/specs/openid-connect-discovery-1_0.html#OpenID.Registration - """ - - request_object_encryption_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference. - """ - - request_object_encryption_enc_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference. - """ - - request_object_signing_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for Request Objects, which are described in Section 6.1 of OpenID Connect Core 1.0 [OpenID.Core]. These algorithms are used both when the Request Object is passed by value (using the request parameter) and when it is passed by reference (using the request_uri parameter). Servers SHOULD support none and RS256. - """ - - request_parameter_supported: typing.Optional[bool] = pydantic.Field(default=None) - """ - Boolean value specifying whether the OP supports use of the request parameter, with true indicating support. If omitted, the default value is false. - """ - - request_uri_parameter_supported: typing.Optional[bool] = pydantic.Field(default=None) - """ - Boolean value specifying whether the OP supports use of the request_uri parameter, with true indicating support. If omitted, the default value is false. - """ - - require_request_uri_registration: typing.Optional[bool] = pydantic.Field(default=None) - """ - Boolean value specifying whether the OP requires use of the request_uri parameter. If omitted, the default value is false. - """ - - response_modes_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the OAuth 2.0 response_mode values that this OP supports. If omitted, the default for Dynamic OpenID Providers is ["query", "fragment"] - """ - - response_types_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the OAuth 2.0 response_type values that this OP supports. Dynamic OpenID Providers MUST support the code, id_token, and the token id_token Response Type values - """ - - scopes_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the OAuth 2.0 [RFC6749] scope values that this server supports. The server MUST support the openid scope value. Servers MAY choose not to advertise some supported scope values even when this parameter is used, although those defined in [OpenID.Core] SHOULD be listed, if supported. RECOMMENDED but not REQUIRED - """ - - service_documentation: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of a page containing human-readable information that developers might want or need to know when using the OpenID Provider. In particular, if the OpenID Provider does not support Dynamic Client Registration, then information on how to register Clients needs to be provided in this documentation. - """ - - subject_types_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the Subject Identifier types that this OP supports. Valid types include pairwise and public - """ - - token_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow. - """ - - token_endpoint_auth_methods_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of Client Authentication methods supported by this Token Endpoint. The options are client_secret_post, client_secret_basic, client_secret_jwt, and private_key_jwt, as described in Section 9 of OpenID Connect Core 1.0 [OpenID.Core]. Other authentication methods MAY be defined by extensions. If omitted, the default is client_secret_basic -- the HTTP Basic Authentication Scheme specified in Section 2.3.1 of OAuth 2.0 [RFC6749]. - """ - - token_endpoint_auth_signing_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used. - """ - - ui_locales_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Languages and scripts supported for the user interface, represented as a JSON array of BCP47 [RFC5646] language tag values. - """ - - userinfo_encryption_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE [JWE] encryption algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. - """ - - userinfo_encryption_enc_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (enc values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. - """ - - userinfo_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token. - """ - - userinfo_signing_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS [JWS] signing algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. The value none MAY be included. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_options_schema_version_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_options_schema_version_enum.py deleted file mode 100644 index 847388ac..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_options_schema_version_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsSchemaVersionEnum = typing.Union[ - typing.Literal["openid-1.0.0", "oidc-v4"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_options_set_user_root_attributes_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_options_set_user_root_attributes_enum.py deleted file mode 100644 index 73cc2281..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_options_set_user_root_attributes_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsSetUserRootAttributesEnum = typing.Union[ - typing.Literal["on_each_login", "on_first_login", "never_on_login"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_options_token_endpoint_auth_method_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_options_token_endpoint_auth_method_enum.py deleted file mode 100644 index 424399b6..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_options_token_endpoint_auth_method_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTokenEndpointAuthMethodEnum = typing.Union[ - typing.Literal["client_secret_post", "private_key_jwt"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_options_token_endpoint_auth_signing_alg_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_options_token_endpoint_auth_signing_alg_enum.py deleted file mode 100644 index 6a860e31..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_options_token_endpoint_auth_signing_alg_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTokenEndpointAuthSigningAlgEnum = typing.Union[ - typing.Literal["ES256", "ES384", "PS256", "PS384", "RS256", "RS384", "RS512"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_options_token_endpoint_jwtca_aud_format_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_options_token_endpoint_jwtca_aud_format_enum.py deleted file mode 100644 index 2c78f0df..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_options_token_endpoint_jwtca_aud_format_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTokenEndpointJwtcaAudFormatEnum = typing.Union[ - typing.Literal["issuer", "token_endpoint"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_options_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_options_type_enum.py deleted file mode 100644 index 42aa336b..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_options_type_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsTypeEnum = typing.Union[ - typing.Literal["back_channel", "front_channel"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_options_upstream_params.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_options_upstream_params.py deleted file mode 100644 index 3fe4ad69..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_options_upstream_params.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedPreviousObject0OptionsUpstreamParams = typing.Dict[str, typing.Any] -""" -Additional parameters to include in authorization requests sent to the identity provider. Useful for passing custom claims, selecting specific identity sources, or configuring provider-specific behavior. See https://auth0.com/docs/authenticate/identity-providers/pass-parameters-to-idps -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_strategy_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_strategy_enum.py deleted file mode 100644 index ede519c1..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_0_strategy_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedPreviousObject0StrategyEnum = typing.Union[typing.Literal["oidc"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1.py deleted file mode 100644 index 8f99079f..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1.py +++ /dev/null @@ -1,73 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_updated_previous_object_1_authentication import ( - EventStreamCloudEventConnectionUpdatedPreviousObject1Authentication, -) -from .event_stream_cloud_event_connection_updated_previous_object_1_connected_accounts import ( - EventStreamCloudEventConnectionUpdatedPreviousObject1ConnectedAccounts, -) -from .event_stream_cloud_event_connection_updated_previous_object_1_metadata import ( - EventStreamCloudEventConnectionUpdatedPreviousObject1Metadata, -) -from .event_stream_cloud_event_connection_updated_previous_object_1_options import ( - EventStreamCloudEventConnectionUpdatedPreviousObject1Options, -) -from .event_stream_cloud_event_connection_updated_previous_object_1_strategy_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject1StrategyEnum, -) - - -class EventStreamCloudEventConnectionUpdatedPreviousObject1(UniversalBaseModel): - authentication: typing.Optional[EventStreamCloudEventConnectionUpdatedPreviousObject1Authentication] = None - connected_accounts: typing.Optional[EventStreamCloudEventConnectionUpdatedPreviousObject1ConnectedAccounts] = None - display_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Connection name used in the new universal login experience - """ - - enabled_clients: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. - """ - - id: str = pydantic.Field() - """ - The connection's identifier - """ - - is_domain_connection: typing.Optional[bool] = pydantic.Field(default=None) - """ - true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) - """ - - metadata: typing.Optional[EventStreamCloudEventConnectionUpdatedPreviousObject1Metadata] = None - name: str = pydantic.Field() - """ - The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 - """ - - realms: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. - """ - - options: typing.Optional[EventStreamCloudEventConnectionUpdatedPreviousObject1Options] = None - show_as_button: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to `false`. - """ - - strategy: EventStreamCloudEventConnectionUpdatedPreviousObject1StrategyEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_authentication.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_authentication.py deleted file mode 100644 index 9a023ab5..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_authentication.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionUpdatedPreviousObject1Authentication(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for authentication during login. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_connected_accounts.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_connected_accounts.py deleted file mode 100644 index a8fd1a70..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_connected_accounts.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionUpdatedPreviousObject1ConnectedAccounts(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for connected accounts and Token Vault. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_metadata.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_metadata.py deleted file mode 100644 index b18abbd2..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_metadata.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionUpdatedPreviousObject1Metadata(UniversalBaseModel): - """ - Metadata associated with the connection in the form of an object with string values (max 255 chars). Maximum of 10 metadata properties allowed. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_options.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_options.py deleted file mode 100644 index 9a551e94..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_options.py +++ /dev/null @@ -1,180 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_connection_updated_previous_object_1_options_attribute_map import ( - EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsAttributeMap, -) -from .event_stream_cloud_event_connection_updated_previous_object_1_options_connection_settings import ( - EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsConnectionSettings, -) -from .event_stream_cloud_event_connection_updated_previous_object_1_options_dpop_signing_alg_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsDpopSigningAlgEnum, -) -from .event_stream_cloud_event_connection_updated_previous_object_1_options_federated_connections_access_tokens import ( - EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsFederatedConnectionsAccessTokens, -) -from .event_stream_cloud_event_connection_updated_previous_object_1_options_id_token_signed_response_algs_item_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum, -) -from .event_stream_cloud_event_connection_updated_previous_object_1_options_oidc_metadata import ( - EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsOidcMetadata, -) -from .event_stream_cloud_event_connection_updated_previous_object_1_options_schema_version_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsSchemaVersionEnum, -) -from .event_stream_cloud_event_connection_updated_previous_object_1_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsSetUserRootAttributesEnum, -) -from .event_stream_cloud_event_connection_updated_previous_object_1_options_token_endpoint_auth_method_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTokenEndpointAuthMethodEnum, -) -from .event_stream_cloud_event_connection_updated_previous_object_1_options_token_endpoint_auth_signing_alg_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum, -) -from .event_stream_cloud_event_connection_updated_previous_object_1_options_token_endpoint_jwtca_aud_format_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTokenEndpointJwtcaAudFormatEnum, -) -from .event_stream_cloud_event_connection_updated_previous_object_1_options_type_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTypeEnum, -) -from .event_stream_cloud_event_connection_updated_previous_object_1_options_upstream_params import ( - EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsUpstreamParams, -) - - -class EventStreamCloudEventConnectionUpdatedPreviousObject1Options(UniversalBaseModel): - """ - Options for the 'okta' connection - """ - - authorization_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow. - """ - - client_id: str = pydantic.Field() - """ - OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider. - """ - - connection_settings: typing.Optional[ - EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsConnectionSettings - ] = None - domain_aliases: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication. - """ - - dpop_signing_alg: typing.Optional[ - EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsDpopSigningAlgEnum - ] = None - federated_connections_access_tokens: typing.Optional[ - EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsFederatedConnectionsAccessTokens - ] = None - icon_url: typing.Optional[str] = pydantic.Field(default=None) - """ - https url of the icon to be shown - """ - - id_token_session_expiry_supported: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether the identity provider supports session expiry via the id_token. If true, the system will use the session_expiry claim in the id_token to determine session expiry. - """ - - id_token_signed_response_algs: typing.Optional[ - typing.List[EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum] - ] = pydantic.Field(default=None) - """ - List of algorithms allowed to verify the ID tokens. Applicable when strategy=oidc or okta. - """ - - issuer: typing.Optional[str] = pydantic.Field(default=None) - """ - The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider. - """ - - jwks_uri: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures. - """ - - non_persistent_attrs: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) - """ - - oidc_metadata: typing.Optional[EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsOidcMetadata] = None - schema_version: typing.Optional[EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsSchemaVersionEnum] = ( - None - ) - scope: typing.Optional[str] = pydantic.Field(default=None) - """ - Space-separated list of OAuth 2.0 scopes requested during authorization. Must include 'openid' (required by OIDC spec). Common values: 'openid profile email'. Additional scopes depend on the identity provider. - """ - - send_back_channel_nonce: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true and type is 'back_channel', includes a cryptographic nonce in authorization requests to prevent replay attacks. The identity provider must include this nonce in the ID token for validation. - """ - - set_user_root_attributes: typing.Optional[ - EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsSetUserRootAttributesEnum - ] = None - tenant_domain: typing.Optional[str] = pydantic.Field(default=None) - """ - Tenant domain - """ - - token_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow. - """ - - token_endpoint_auth_method: typing.Optional[ - EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTokenEndpointAuthMethodEnum - ] = None - token_endpoint_auth_signing_alg: typing.Optional[ - EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum - ] = None - token_endpoint_jwtca_aud_format: typing.Optional[ - EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTokenEndpointJwtcaAudFormatEnum - ] = None - upstream_params: typing.Optional[EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsUpstreamParams] = None - use_oauth_spec_scope: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="useOauthSpecScope"), - pydantic.Field( - alias="useOauthSpecScope", - description="When true, uses space-delimited scopes (per OAuth 2.0 spec) instead of comma-delimited when calling the identity provider's authorization endpoint. Only relevant when using the connection_scope parameter. See https://auth0.com/docs/authenticate/identity-providers/adding-scopes-for-an-external-idp#pass-scopes-to-authorize-endpoint", - ), - ] = None - """ - When true, uses space-delimited scopes (per OAuth 2.0 spec) instead of comma-delimited when calling the identity provider's authorization endpoint. Only relevant when using the connection_scope parameter. See https://auth0.com/docs/authenticate/identity-providers/adding-scopes-for-an-external-idp#pass-scopes-to-authorize-endpoint - """ - - userinfo_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token. - """ - - attribute_map: typing.Optional[EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsAttributeMap] = None - domain: typing.Optional[str] = pydantic.Field(default=None) - """ - Domain of the Okta organization (e.g., dev-123456.okta.com). Should be just the domain of the okta server with no scheme or trailing backslash. Discovery runs only when connection.options.oidc_metadata is empty and a domain is provided - """ - - type: typing.Optional[EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTypeEnum] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_options_attribute_map.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_options_attribute_map.py deleted file mode 100644 index cf708fac..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_options_attribute_map.py +++ /dev/null @@ -1,39 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_updated_previous_object_1_options_attribute_map_attributes import ( - EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsAttributeMapAttributes, -) -from .event_stream_cloud_event_connection_updated_previous_object_1_options_attribute_map_mapping_mode_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsAttributeMapMappingModeEnum, -) - - -class EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsAttributeMap(UniversalBaseModel): - """ - Mapping of claims received from the identity provider (IdP) - """ - - attributes: typing.Optional[EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsAttributeMapAttributes] = ( - None - ) - userinfo_scope: typing.Optional[str] = pydantic.Field(default=None) - """ - Scopes to send to the IdP's Userinfo endpoint - """ - - mapping_mode: typing.Optional[ - EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsAttributeMapMappingModeEnum - ] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_options_attribute_map_attributes.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_options_attribute_map_attributes.py deleted file mode 100644 index e0aaec6b..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_options_attribute_map_attributes.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsAttributeMapAttributes = typing.Dict[str, typing.Any] -""" -Object containing mapping details for incoming claims -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_options_attribute_map_mapping_mode_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_options_attribute_map_mapping_mode_enum.py deleted file mode 100644 index c11fdd7a..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_options_attribute_map_mapping_mode_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsAttributeMapMappingModeEnum = typing.Union[ - typing.Literal["basic_profile", "use_map"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_options_connection_settings.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_options_connection_settings.py deleted file mode 100644 index fbac9076..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_options_connection_settings.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_updated_previous_object_1_options_connection_settings_pkce_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsConnectionSettingsPkceEnum, -) - - -class EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsConnectionSettings(UniversalBaseModel): - """ - OAuth 2.0 PKCE (Proof Key for Code Exchange) settings. PKCE enhances security for public clients by preventing authorization code interception attacks. 'auto' (recommended) uses the strongest method supported by the IdP. - """ - - pkce: typing.Optional[EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsConnectionSettingsPkceEnum] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_options_connection_settings_pkce_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_options_connection_settings_pkce_enum.py deleted file mode 100644 index 0c96bb41..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_options_connection_settings_pkce_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsConnectionSettingsPkceEnum = typing.Union[ - typing.Literal["auto", "S256", "plain", "disabled"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_options_dpop_signing_alg_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_options_dpop_signing_alg_enum.py deleted file mode 100644 index 38bdb9a7..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_options_dpop_signing_alg_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsDpopSigningAlgEnum = typing.Union[ - typing.Literal["ES256", "ES384", "ES512", "Ed25519"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_options_federated_connections_access_tokens.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_options_federated_connections_access_tokens.py deleted file mode 100644 index 99458bd4..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_options_federated_connections_access_tokens.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsFederatedConnectionsAccessTokens(UniversalBaseModel): - """ - Configuration for storing identity provider tokens in Auth0's Token Vault. When active, Auth0 securely stores access and refresh tokens from federated logins, enabling your application to make authenticated API calls on behalf of users. - """ - - active: bool = pydantic.Field() - """ - Enables refresh tokens and access tokens collection for federated connections - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_options_id_token_signed_response_algs_item_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_options_id_token_signed_response_algs_item_enum.py deleted file mode 100644 index 1d46d2ce..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_options_id_token_signed_response_algs_item_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsIdTokenSignedResponseAlgsItemEnum = typing.Union[ - typing.Literal["ES256", "ES384", "PS256", "PS384", "RS256", "RS384", "RS512"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_options_oidc_metadata.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_options_oidc_metadata.py deleted file mode 100644 index 75f74529..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_options_oidc_metadata.py +++ /dev/null @@ -1,211 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsOidcMetadata(UniversalBaseModel): - """ - OpenID Connect Provider Metadata as per https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata - """ - - acr_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the Authentication Context Class References that this OP supports - """ - - authorization_endpoint: str = pydantic.Field() - """ - URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow. - """ - - claim_types_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the Claim Types that the OpenID Provider supports. These Claim Types are described in Section 5.6 of OpenID Connect Core 1.0 [OpenID.Core]. If omitted, the implementation supports only normal Claims. - """ - - claims_locales_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Languages and scripts supported for values in Claims being returned, represented as a JSON array of BCP47 [RFC5646] language tag values. Not all languages and scripts are necessarily supported for all Claim values. - """ - - claims_parameter_supported: typing.Optional[bool] = pydantic.Field(default=None) - """ - Boolean value specifying whether the OP supports use of the claims parameter, with true indicating support. If omitted, the default value is false. - """ - - claims_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the Claim Names of the Claims that the OpenID Provider MAY be able to supply values for. Note that for privacy or other reasons, this might not be an exhaustive list. - """ - - code_challenge_methods_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636. - """ - - display_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used. - """ - - dpop_signing_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS signing algorithms (alg values) supported for DPoP proof JWT signing. - """ - - end_session_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's logout/end session endpoint. When configured as a static URL, users are redirected here after logging out from Auth0. Must use HTTPS scheme. - """ - - grant_types_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the OAuth 2.0 Grant Type values that this OP supports. Dynamic OpenID Providers MUST support the authorization_code and implicit Grant Type values and MAY support other Grant Types. If omitted, the default value is ["authorization_code", "implicit"]. - """ - - id_token_encryption_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT - """ - - id_token_encryption_enc_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for the ID Token to encode the Claims in a JWT [JWT]. - """ - - id_token_signing_alg_values_supported: typing.List[str] = pydantic.Field() - """ - A list of the JWS signing algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be included. The value none MAY be supported, but MUST NOT be used unless the Response Type used returns no ID Token from the Authorization Endpoint (such as when using the Authorization Code Flow). https://datatracker.ietf.org/doc/html/rfc7518 - """ - - issuer: str = pydantic.Field() - """ - The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider. - """ - - jwks_uri: str = pydantic.Field() - """ - URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures. - """ - - op_policy_uri: typing.Optional[str] = pydantic.Field(default=None) - """ - URL that the OpenID Provider provides to the person registering the Client to read about the OPs requirements on how the Relying Party can use the data provided by the OP. The registration process SHOULD display this URL to the person registering the Client if it is given. - """ - - op_tos_uri: typing.Optional[str] = pydantic.Field(default=None) - """ - URL that the OpenID Provider provides to the person registering the Client to read about OpenID Providers terms of service. The registration process SHOULD display this URL to the person registering the Client if it is given. - """ - - registration_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the OPs Dynamic Client Registration Endpoint. RECOMMENDED but not REQUIRED. https://openid.net/specs/openid-connect-discovery-1_0.html#OpenID.Registration - """ - - request_object_encryption_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference. - """ - - request_object_encryption_enc_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference. - """ - - request_object_signing_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for Request Objects, which are described in Section 6.1 of OpenID Connect Core 1.0 [OpenID.Core]. These algorithms are used both when the Request Object is passed by value (using the request parameter) and when it is passed by reference (using the request_uri parameter). Servers SHOULD support none and RS256. - """ - - request_parameter_supported: typing.Optional[bool] = pydantic.Field(default=None) - """ - Boolean value specifying whether the OP supports use of the request parameter, with true indicating support. If omitted, the default value is false. - """ - - request_uri_parameter_supported: typing.Optional[bool] = pydantic.Field(default=None) - """ - Boolean value specifying whether the OP supports use of the request_uri parameter, with true indicating support. If omitted, the default value is false. - """ - - require_request_uri_registration: typing.Optional[bool] = pydantic.Field(default=None) - """ - Boolean value specifying whether the OP requires use of the request_uri parameter. If omitted, the default value is false. - """ - - response_modes_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the OAuth 2.0 response_mode values that this OP supports. If omitted, the default for Dynamic OpenID Providers is ["query", "fragment"] - """ - - response_types_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the OAuth 2.0 response_type values that this OP supports. Dynamic OpenID Providers MUST support the code, id_token, and the token id_token Response Type values - """ - - scopes_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the OAuth 2.0 [RFC6749] scope values that this server supports. The server MUST support the openid scope value. Servers MAY choose not to advertise some supported scope values even when this parameter is used, although those defined in [OpenID.Core] SHOULD be listed, if supported. RECOMMENDED but not REQUIRED - """ - - service_documentation: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of a page containing human-readable information that developers might want or need to know when using the OpenID Provider. In particular, if the OpenID Provider does not support Dynamic Client Registration, then information on how to register Clients needs to be provided in this documentation. - """ - - subject_types_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the Subject Identifier types that this OP supports. Valid types include pairwise and public - """ - - token_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow. - """ - - token_endpoint_auth_methods_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of Client Authentication methods supported by this Token Endpoint. The options are client_secret_post, client_secret_basic, client_secret_jwt, and private_key_jwt, as described in Section 9 of OpenID Connect Core 1.0 [OpenID.Core]. Other authentication methods MAY be defined by extensions. If omitted, the default is client_secret_basic -- the HTTP Basic Authentication Scheme specified in Section 2.3.1 of OAuth 2.0 [RFC6749]. - """ - - token_endpoint_auth_signing_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used. - """ - - ui_locales_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Languages and scripts supported for the user interface, represented as a JSON array of BCP47 [RFC5646] language tag values. - """ - - userinfo_encryption_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE [JWE] encryption algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. - """ - - userinfo_encryption_enc_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (enc values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. - """ - - userinfo_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token. - """ - - userinfo_signing_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS [JWS] signing algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. The value none MAY be included. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_options_schema_version_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_options_schema_version_enum.py deleted file mode 100644 index 75eae56b..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_options_schema_version_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsSchemaVersionEnum = typing.Union[ - typing.Literal["openid-1.0.0", "oidc-v4"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_options_set_user_root_attributes_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_options_set_user_root_attributes_enum.py deleted file mode 100644 index 12feb549..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_options_set_user_root_attributes_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsSetUserRootAttributesEnum = typing.Union[ - typing.Literal["on_each_login", "on_first_login", "never_on_login"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_options_token_endpoint_auth_method_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_options_token_endpoint_auth_method_enum.py deleted file mode 100644 index 18e395d8..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_options_token_endpoint_auth_method_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTokenEndpointAuthMethodEnum = typing.Union[ - typing.Literal["client_secret_post", "private_key_jwt"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_options_token_endpoint_auth_signing_alg_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_options_token_endpoint_auth_signing_alg_enum.py deleted file mode 100644 index 1c1e868c..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_options_token_endpoint_auth_signing_alg_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTokenEndpointAuthSigningAlgEnum = typing.Union[ - typing.Literal["ES256", "ES384", "PS256", "PS384", "RS256", "RS384", "RS512"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_options_token_endpoint_jwtca_aud_format_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_options_token_endpoint_jwtca_aud_format_enum.py deleted file mode 100644 index 2722cdc8..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_options_token_endpoint_jwtca_aud_format_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTokenEndpointJwtcaAudFormatEnum = typing.Union[ - typing.Literal["issuer", "token_endpoint"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_options_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_options_type_enum.py deleted file mode 100644 index 9ce104e1..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_options_type_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsTypeEnum = typing.Union[ - typing.Literal["back_channel"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_options_upstream_params.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_options_upstream_params.py deleted file mode 100644 index 4b0c4397..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_options_upstream_params.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedPreviousObject1OptionsUpstreamParams = typing.Dict[str, typing.Any] -""" -Additional parameters to include in authorization requests sent to the identity provider. Useful for passing custom claims, selecting specific identity sources, or configuring provider-specific behavior. See https://auth0.com/docs/authenticate/identity-providers/pass-parameters-to-idps -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_strategy_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_strategy_enum.py deleted file mode 100644 index 3af16c45..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_1_strategy_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedPreviousObject1StrategyEnum = typing.Union[typing.Literal["okta"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_2.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_2.py deleted file mode 100644 index c3600ceb..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_2.py +++ /dev/null @@ -1,73 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_updated_previous_object_2_authentication import ( - EventStreamCloudEventConnectionUpdatedPreviousObject2Authentication, -) -from .event_stream_cloud_event_connection_updated_previous_object_2_connected_accounts import ( - EventStreamCloudEventConnectionUpdatedPreviousObject2ConnectedAccounts, -) -from .event_stream_cloud_event_connection_updated_previous_object_2_metadata import ( - EventStreamCloudEventConnectionUpdatedPreviousObject2Metadata, -) -from .event_stream_cloud_event_connection_updated_previous_object_2_options import ( - EventStreamCloudEventConnectionUpdatedPreviousObject2Options, -) -from .event_stream_cloud_event_connection_updated_previous_object_2_strategy_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject2StrategyEnum, -) - - -class EventStreamCloudEventConnectionUpdatedPreviousObject2(UniversalBaseModel): - authentication: typing.Optional[EventStreamCloudEventConnectionUpdatedPreviousObject2Authentication] = None - connected_accounts: typing.Optional[EventStreamCloudEventConnectionUpdatedPreviousObject2ConnectedAccounts] = None - display_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Connection name used in the new universal login experience - """ - - enabled_clients: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. - """ - - id: str = pydantic.Field() - """ - The connection's identifier - """ - - is_domain_connection: typing.Optional[bool] = pydantic.Field(default=None) - """ - true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) - """ - - metadata: typing.Optional[EventStreamCloudEventConnectionUpdatedPreviousObject2Metadata] = None - name: str = pydantic.Field() - """ - The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 - """ - - realms: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. - """ - - options: typing.Optional[EventStreamCloudEventConnectionUpdatedPreviousObject2Options] = None - show_as_button: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to `false`. - """ - - strategy: EventStreamCloudEventConnectionUpdatedPreviousObject2StrategyEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_2_authentication.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_2_authentication.py deleted file mode 100644 index 2c41023b..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_2_authentication.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionUpdatedPreviousObject2Authentication(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for authentication during login. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_2_connected_accounts.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_2_connected_accounts.py deleted file mode 100644 index 5e7b06a8..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_2_connected_accounts.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionUpdatedPreviousObject2ConnectedAccounts(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for connected accounts and Token Vault. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_2_metadata.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_2_metadata.py deleted file mode 100644 index 7d067a13..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_2_metadata.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionUpdatedPreviousObject2Metadata(UniversalBaseModel): - """ - Metadata associated with the connection in the form of an object with string values (max 255 chars). Maximum of 10 metadata properties allowed. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_2_options.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_2_options.py deleted file mode 100644 index 930b1636..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_2_options.py +++ /dev/null @@ -1,298 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_connection_updated_previous_object_2_options_assertion_decryption_settings import ( - EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsAssertionDecryptionSettings, -) -from .event_stream_cloud_event_connection_updated_previous_object_2_options_digest_algorithm_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsDigestAlgorithmEnum, -) -from .event_stream_cloud_event_connection_updated_previous_object_2_options_fields_map import ( - EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsFieldsMap, -) -from .event_stream_cloud_event_connection_updated_previous_object_2_options_idpinitiated import ( - EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsIdpinitiated, -) -from .event_stream_cloud_event_connection_updated_previous_object_2_options_oidc_metadata import ( - EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsOidcMetadata, -) -from .event_stream_cloud_event_connection_updated_previous_object_2_options_protocol_binding_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsProtocolBindingEnum, -) -from .event_stream_cloud_event_connection_updated_previous_object_2_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsSetUserRootAttributesEnum, -) -from .event_stream_cloud_event_connection_updated_previous_object_2_options_signature_algorithm_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsSignatureAlgorithmEnum, -) -from .event_stream_cloud_event_connection_updated_previous_object_2_options_subject import ( - EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsSubject, -) -from .event_stream_cloud_event_connection_updated_previous_object_2_options_upstream_params import ( - EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsUpstreamParams, -) - - -class EventStreamCloudEventConnectionUpdatedPreviousObject2Options(UniversalBaseModel): - """ - Options for the 'samlp' connection - """ - - assertion_decryption_settings: typing.Optional[ - EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsAssertionDecryptionSettings - ] = None - cert: typing.Optional[str] = pydantic.Field(default=None) - """ - X.509 signing certificate from the identity provider in .der format. Used to validate signatures in SAML Responses and Assertions. This is an alternative to signingCert and is kept for backward compatibility. Prefer using signingCert instead. - """ - - cert_rollover_notification: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Timestamp of the last certificate expiring soon notification. - """ - - digest_algorithm: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsDigestAlgorithmEnum], - FieldMetadata(alias="digestAlgorithm"), - pydantic.Field(alias="digestAlgorithm"), - ] = None - domain_aliases: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Domain aliases for the connection - """ - - entity_id: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="entityId"), - pydantic.Field( - alias="entityId", - description="The entity identifier (Issuer) for the SAML Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'. This value is included in SAML AuthnRequest messages sent to the identity provider.", - ), - ] = None - """ - The entity identifier (Issuer) for the SAML Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'. This value is included in SAML AuthnRequest messages sent to the identity provider. - """ - - expires: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - ISO 8601 formatted datetime indicating when the identity provider's signing certificate expires. - """ - - icon_url: typing.Optional[str] = pydantic.Field(default=None) - """ - URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows. - """ - - idpinitiated: typing.Optional[EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsIdpinitiated] = None - non_persistent_attrs: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) - """ - - protocol_binding: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsProtocolBindingEnum], - FieldMetadata(alias="protocolBinding"), - pydantic.Field(alias="protocolBinding"), - ] = None - set_user_root_attributes: typing.Optional[ - EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsSetUserRootAttributesEnum - ] = None - signature_algorithm: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsSignatureAlgorithmEnum], - FieldMetadata(alias="signatureAlgorithm"), - pydantic.Field(alias="signatureAlgorithm"), - ] = None - sign_in_endpoint: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="signInEndpoint"), - pydantic.Field( - alias="signInEndpoint", - description="Identity provider's SAML SingleSignOnService endpoint URL where Auth0 sends SAML authentication requests. This is the primary login URL for the SAML connection. Required unless using metadataUrl or metadataXml.", - ), - ] = None - """ - Identity provider's SAML SingleSignOnService endpoint URL where Auth0 sends SAML authentication requests. This is the primary login URL for the SAML connection. Required unless using metadataUrl or metadataXml. - """ - - signing_cert: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="signingCert"), - pydantic.Field( - alias="signingCert", - description="Base64-encoded X.509 certificate from the identity provider used to validate signatures in SAML responses and assertions. The certificate is decoded and used for cryptographic signature verification.", - ), - ] = None - """ - Base64-encoded X.509 certificate from the identity provider used to validate signatures in SAML responses and assertions. The certificate is decoded and used for cryptographic signature verification. - """ - - sign_saml_request: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="signSAMLRequest"), - pydantic.Field( - alias="signSAMLRequest", - description="When true, Auth0 signs SAML authentication requests using the connection's signing key. The signature includes the request's digest and is validated by the identity provider. Defaults to false (unsigned requests).", - ), - ] = None - """ - When true, Auth0 signs SAML authentication requests using the connection's signing key. The signature includes the request's digest and is validated by the identity provider. Defaults to false (unsigned requests). - """ - - subject: typing.Optional[EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsSubject] = None - tenant_domain: typing.Optional[str] = pydantic.Field(default=None) - """ - For SAML connections, the tenant domain used to construct the login endpoint URL. Can be a string for single-tenant or an array of strings for multi-tenant validation. - """ - - thumbprints: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - SHA-1 thumbprints (fingerprints) of the identity provider's signing certificates. Automatically computed from signingCert during connection creation. Each thumbprint must be a 40-character hexadecimal string. - """ - - upstream_params: typing.Optional[EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsUpstreamParams] = None - debug: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true, enables detailed SAML debugging by issuing 'w' (warning) events in tenant logs containing SAML request/response details. WARNING: Potentially exposes sensitive user information (PII, credentials) and should only be enabled temporarily for debugging purposes. - """ - - deflate: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true, enables DEFLATE compression for SAML requests sent via HTTP-Redirect binding. - """ - - destination_url: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="destinationUrl"), - pydantic.Field( - alias="destinationUrl", - description="The URL where Auth0 will send SAML authentication requests (the Identity Provider's SSO URL). Must be a valid HTTPS URL.", - ), - ] = None - """ - The URL where Auth0 will send SAML authentication requests (the Identity Provider's SSO URL). Must be a valid HTTPS URL. - """ - - disable_fields_map_fix: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="disableFieldsMapFix"), - pydantic.Field( - alias="disableFieldsMapFix", - description="When true, disables the automatic correction of the fieldsMap configuration to ensure proper mapping of SAML attributes to user profile fields. Defaults to false (fieldsMap fix enabled).", - ), - ] = None - """ - When true, disables the automatic correction of the fieldsMap configuration to ensure proper mapping of SAML attributes to user profile fields. Defaults to false (fieldsMap fix enabled). - """ - - disable_signout: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="disableSignout"), - pydantic.Field( - alias="disableSignout", - description="When true, disables sending SAML logout requests (SingleLogoutService) to the identity provider during user sign-out. The user will be logged out of Auth0 but will remain logged into the identity provider. Defaults to false (federated logout enabled).", - ), - ] = None - """ - When true, disables sending SAML logout requests (SingleLogoutService) to the identity provider during user sign-out. The user will be logged out of Auth0 but will remain logged into the identity provider. Defaults to false (federated logout enabled). - """ - - discovery_url: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's OIDC Discovery endpoint (/.well-known/openid-configuration). When provided and oidc_metadata is empty, Auth0 automatically retrieves the provider's configuration including endpoints and supported features. Used with Cross App Access. - """ - - fields_map: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsFieldsMap], - FieldMetadata(alias="fieldsMap"), - pydantic.Field(alias="fieldsMap"), - ] = None - fields_map_json_raw: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="fieldsMapJsonRaw"), - pydantic.Field( - alias="fieldsMapJsonRaw", - description="Raw JSON string representation of the fieldsMap configuration. Used internally for storage and retrieval of the fieldsMap object.", - ), - ] = None - """ - Raw JSON string representation of the fieldsMap configuration. Used internally for storage and retrieval of the fieldsMap object. - """ - - global_token_revocation_jwt_iss: typing.Optional[str] = pydantic.Field(default=None) - """ - Expected 'iss' (Issuer) claim value for JWT tokens in Global Token Revocation requests from the identity provider. When configured, Auth0 validates the JWT issuer matches this value before processing token revocation. Must be used together with global_token_revocation_jwt_sub. - """ - - global_token_revocation_jwt_sub: typing.Optional[str] = pydantic.Field(default=None) - """ - Expected 'sub' (Subject) claim value for JWT tokens in Global Token Revocation requests from the identity provider. When configured, Auth0 validates the JWT subject matches this value before processing token revocation. Must be used together with global_token_revocation_jwt_iss. - """ - - metadata_url: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="metadataUrl"), - pydantic.Field( - alias="metadataUrl", - description="HTTPS URL to the identity provider's SAML metadata document. When provided, Auth0 automatically fetches and parses the metadata to extract signInEndpoint, signOutEndpoint, signingCert, signSAMLRequest, and protocolBinding. Use metadataUrl OR metadataXml, not both.", - ), - ] = None - """ - HTTPS URL to the identity provider's SAML metadata document. When provided, Auth0 automatically fetches and parses the metadata to extract signInEndpoint, signOutEndpoint, signingCert, signSAMLRequest, and protocolBinding. Use metadataUrl OR metadataXml, not both. - """ - - oidc_metadata: typing.Optional[EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsOidcMetadata] = None - recipient_url: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="recipientUrl"), - pydantic.Field( - alias="recipientUrl", - description="The URL where Auth0 will send SAML authentication requests (the Identity Provider's SSO URL). Must be a valid HTTPS URL.", - ), - ] = None - """ - The URL where Auth0 will send SAML authentication requests (the Identity Provider's SSO URL). Must be a valid HTTPS URL. - """ - - request_template: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="requestTemplate"), - pydantic.Field( - alias="requestTemplate", - description="Custom XML template for SAML authentication requests. Supports variable substitution using @@variableName@@ syntax. When not provided, uses default SAML AuthnRequest template. See https://auth0.com/docs/authenticate/protocols/saml/saml-sso-integrations/configure-auth0-saml-service-provider#customize-the-request-template", - ), - ] = None - """ - Custom XML template for SAML authentication requests. Supports variable substitution using @@variableName@@ syntax. When not provided, uses default SAML AuthnRequest template. See https://auth0.com/docs/authenticate/protocols/saml/saml-sso-integrations/configure-auth0-saml-service-provider#customize-the-request-template - """ - - sign_out_endpoint: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="signOutEndpoint"), - pydantic.Field( - alias="signOutEndpoint", - description="Identity provider's SAML SingleLogoutService endpoint URL where Auth0 sends logout requests for federated sign-out. When not provided, defaults to signInEndpoint. Only used if disableSignout is false.", - ), - ] = None - """ - Identity provider's SAML SingleLogoutService endpoint URL where Auth0 sends logout requests for federated sign-out. When not provided, defaults to signInEndpoint. Only used if disableSignout is false. - """ - - user_id_attribute: typing.Optional[str] = pydantic.Field(default=None) - """ - Custom SAML assertion attribute to use as the unique user identifier. When provided, this attribute is prepended to the default user_id mapping list with highest priority. Accepts a string (single SAML attribute name). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_2_options_assertion_decryption_settings.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_2_options_assertion_decryption_settings.py deleted file mode 100644 index 3f470741..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_2_options_assertion_decryption_settings.py +++ /dev/null @@ -1,33 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_updated_previous_object_2_options_assertion_decryption_settings_algorithm_profile_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum, -) - - -class EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsAssertionDecryptionSettings(UniversalBaseModel): - """ - Settings for SAML assertion decryption. - """ - - algorithm_exceptions: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of insecure algorithms to allow for SAML assertion decryption. - """ - - algorithm_profile: ( - EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum - ) - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_2_options_assertion_decryption_settings_algorithm_profile_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_2_options_assertion_decryption_settings_algorithm_profile_enum.py deleted file mode 100644 index 7e5bab7f..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_2_options_assertion_decryption_settings_algorithm_profile_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum = ( - typing.Union[typing.Literal["v2026-1"], typing.Any] -) diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_2_options_digest_algorithm_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_2_options_digest_algorithm_enum.py deleted file mode 100644 index 47166e6e..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_2_options_digest_algorithm_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsDigestAlgorithmEnum = typing.Union[ - typing.Literal["sha1", "sha256"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_2_options_fields_map.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_2_options_fields_map.py deleted file mode 100644 index b559088f..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_2_options_fields_map.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsFieldsMap = typing.Dict[str, typing.Any] -""" -Maps SAML assertion attributes from the identity provider to Auth0 user profile attributes. Format: { 'auth0_field': 'saml_attribute' } or { 'auth0_field': ['saml_attr1', 'saml_attr2'] } for fallback options. Merged with default mappings for email, name, given_name, family_name, and groups. -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_2_options_idpinitiated.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_2_options_idpinitiated.py deleted file mode 100644 index f4a830af..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_2_options_idpinitiated.py +++ /dev/null @@ -1,42 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_updated_previous_object_2_options_idpinitiated_client_protocol_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsIdpinitiatedClientProtocolEnum, -) - - -class EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsIdpinitiated(UniversalBaseModel): - """ - Configuration for IdP-Initiated SAML Single Sign-On. When enabled, allows users to initiate login directly from their SAML identity provider without first visiting Auth0. The IdP must include the connection parameter in the post-back URL (Assertion Consumer Service URL). - """ - - client_authorizequery: typing.Optional[str] = pydantic.Field(default=None) - """ - The query string sent to the default application - """ - - client_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The client ID to use for IdP-initiated login requests. - """ - - client_protocol: typing.Optional[ - EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsIdpinitiatedClientProtocolEnum - ] = None - enabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true, enables IdP-initiated login support for this SAML connection. Allows users to log in directly from the identity provider without first visiting Auth0. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_2_options_idpinitiated_client_protocol_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_2_options_idpinitiated_client_protocol_enum.py deleted file mode 100644 index 4ca97214..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_2_options_idpinitiated_client_protocol_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsIdpinitiatedClientProtocolEnum = typing.Union[ - typing.Literal["oidc", "samlp", "wsfed"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_2_options_oidc_metadata.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_2_options_oidc_metadata.py deleted file mode 100644 index 4e54fc90..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_2_options_oidc_metadata.py +++ /dev/null @@ -1,211 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsOidcMetadata(UniversalBaseModel): - """ - OpenID Connect Provider Metadata as per https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata. Used with Cross App Access. - """ - - acr_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the Authentication Context Class References that this OP supports - """ - - authorization_endpoint: str = pydantic.Field() - """ - URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow. - """ - - claim_types_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the Claim Types that the OpenID Provider supports. These Claim Types are described in Section 5.6 of OpenID Connect Core 1.0 [OpenID.Core]. If omitted, the implementation supports only normal Claims. - """ - - claims_locales_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Languages and scripts supported for values in Claims being returned, represented as a JSON array of BCP47 [RFC5646] language tag values. Not all languages and scripts are necessarily supported for all Claim values. - """ - - claims_parameter_supported: typing.Optional[bool] = pydantic.Field(default=None) - """ - Boolean value specifying whether the OP supports use of the claims parameter, with true indicating support. If omitted, the default value is false. - """ - - claims_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the Claim Names of the Claims that the OpenID Provider MAY be able to supply values for. Note that for privacy or other reasons, this might not be an exhaustive list. - """ - - code_challenge_methods_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of Proof Key for Code Exchange (PKCE) code challenge methods supported by this OP (e.g., S256, plain), as defined in RFC 7636. - """ - - display_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used. - """ - - dpop_signing_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS signing algorithms (alg values) supported for DPoP proof JWT signing. - """ - - end_session_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's logout/end session endpoint. When configured as a static URL, users are redirected here after logging out from Auth0. Must use HTTPS scheme. - """ - - grant_types_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the OAuth 2.0 Grant Type values that this OP supports. Dynamic OpenID Providers MUST support the authorization_code and implicit Grant Type values and MAY support other Grant Types. If omitted, the default value is ["authorization_code", "implicit"]. - """ - - id_token_encryption_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT - """ - - id_token_encryption_enc_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for the ID Token to encode the Claims in a JWT [JWT]. - """ - - id_token_signing_alg_values_supported: typing.List[str] = pydantic.Field() - """ - A list of the JWS signing algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be included. The value none MAY be supported, but MUST NOT be used unless the Response Type used returns no ID Token from the Authorization Endpoint (such as when using the Authorization Code Flow). https://datatracker.ietf.org/doc/html/rfc7518 - """ - - issuer: str = pydantic.Field() - """ - The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider. - """ - - jwks_uri: str = pydantic.Field() - """ - URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures. - """ - - op_policy_uri: typing.Optional[str] = pydantic.Field(default=None) - """ - URL that the OpenID Provider provides to the person registering the Client to read about the OPs requirements on how the Relying Party can use the data provided by the OP. The registration process SHOULD display this URL to the person registering the Client if it is given. - """ - - op_tos_uri: typing.Optional[str] = pydantic.Field(default=None) - """ - URL that the OpenID Provider provides to the person registering the Client to read about OpenID Providers terms of service. The registration process SHOULD display this URL to the person registering the Client if it is given. - """ - - registration_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the OPs Dynamic Client Registration Endpoint. RECOMMENDED but not REQUIRED. https://openid.net/specs/openid-connect-discovery-1_0.html#OpenID.Registration - """ - - request_object_encryption_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference. - """ - - request_object_encryption_enc_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference. - """ - - request_object_signing_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for Request Objects, which are described in Section 6.1 of OpenID Connect Core 1.0 [OpenID.Core]. These algorithms are used both when the Request Object is passed by value (using the request parameter) and when it is passed by reference (using the request_uri parameter). Servers SHOULD support none and RS256. - """ - - request_parameter_supported: typing.Optional[bool] = pydantic.Field(default=None) - """ - Boolean value specifying whether the OP supports use of the request parameter, with true indicating support. If omitted, the default value is false. - """ - - request_uri_parameter_supported: typing.Optional[bool] = pydantic.Field(default=None) - """ - Boolean value specifying whether the OP supports use of the request_uri parameter, with true indicating support. If omitted, the default value is false. - """ - - require_request_uri_registration: typing.Optional[bool] = pydantic.Field(default=None) - """ - Boolean value specifying whether the OP requires use of the request_uri parameter. If omitted, the default value is false. - """ - - response_modes_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the OAuth 2.0 response_mode values that this OP supports. If omitted, the default for Dynamic OpenID Providers is ["query", "fragment"] - """ - - response_types_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the OAuth 2.0 response_type values that this OP supports. Dynamic OpenID Providers MUST support the code, id_token, and the token id_token Response Type values - """ - - scopes_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the OAuth 2.0 [RFC6749] scope values that this server supports. The server MUST support the openid scope value. Servers MAY choose not to advertise some supported scope values even when this parameter is used, although those defined in [OpenID.Core] SHOULD be listed, if supported. RECOMMENDED but not REQUIRED - """ - - service_documentation: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of a page containing human-readable information that developers might want or need to know when using the OpenID Provider. In particular, if the OpenID Provider does not support Dynamic Client Registration, then information on how to register Clients needs to be provided in this documentation. - """ - - subject_types_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of the Subject Identifier types that this OP supports. Valid types include pairwise and public - """ - - token_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow. - """ - - token_endpoint_auth_methods_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of Client Authentication methods supported by this Token Endpoint. The options are client_secret_post, client_secret_basic, client_secret_jwt, and private_key_jwt, as described in Section 9 of OpenID Connect Core 1.0 [OpenID.Core]. Other authentication methods MAY be defined by extensions. If omitted, the default is client_secret_basic -- the HTTP Basic Authentication Scheme specified in Section 2.3.1 of OAuth 2.0 [RFC6749]. - """ - - token_endpoint_auth_signing_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used. - """ - - ui_locales_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Languages and scripts supported for the user interface, represented as a JSON array of BCP47 [RFC5646] language tag values. - """ - - userinfo_encryption_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE [JWE] encryption algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. - """ - - userinfo_encryption_enc_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWE encryption algorithms (enc values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. - """ - - userinfo_endpoint: typing.Optional[str] = pydantic.Field(default=None) - """ - Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token. - """ - - userinfo_signing_alg_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - JSON array containing a list of the JWS [JWS] signing algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. The value none MAY be included. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_2_options_protocol_binding_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_2_options_protocol_binding_enum.py deleted file mode 100644 index 8c3a2ed1..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_2_options_protocol_binding_enum.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsProtocolBindingEnum = typing.Union[ - typing.Literal[ - "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST", "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect" - ], - typing.Any, -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_2_options_set_user_root_attributes_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_2_options_set_user_root_attributes_enum.py deleted file mode 100644 index cc4eeea7..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_2_options_set_user_root_attributes_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsSetUserRootAttributesEnum = typing.Union[ - typing.Literal["on_each_login", "on_first_login", "never_on_login"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_2_options_signature_algorithm_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_2_options_signature_algorithm_enum.py deleted file mode 100644 index c842206c..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_2_options_signature_algorithm_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsSignatureAlgorithmEnum = typing.Union[ - typing.Literal["rsa-sha1", "rsa-sha256"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_2_options_subject.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_2_options_subject.py deleted file mode 100644 index 1e08a611..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_2_options_subject.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsSubject(UniversalBaseModel): - """ - Certificate Subject Distinguished Name (DN) extracted from the identity provider's signing certificate. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_2_options_upstream_params.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_2_options_upstream_params.py deleted file mode 100644 index 1f417c8e..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_2_options_upstream_params.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedPreviousObject2OptionsUpstreamParams = typing.Dict[str, typing.Any] -""" -Additional parameters to include in authorization requests sent to the identity provider. Useful for passing custom claims, selecting specific identity sources, or configuring provider-specific behavior. See https://auth0.com/docs/authenticate/identity-providers/pass-parameters-to-idps -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_2_strategy_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_2_strategy_enum.py deleted file mode 100644 index bf670d97..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_2_strategy_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedPreviousObject2StrategyEnum = typing.Union[typing.Literal["samlp"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_3.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_3.py deleted file mode 100644 index 7d49a31d..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_3.py +++ /dev/null @@ -1,73 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_updated_previous_object_3_authentication import ( - EventStreamCloudEventConnectionUpdatedPreviousObject3Authentication, -) -from .event_stream_cloud_event_connection_updated_previous_object_3_connected_accounts import ( - EventStreamCloudEventConnectionUpdatedPreviousObject3ConnectedAccounts, -) -from .event_stream_cloud_event_connection_updated_previous_object_3_metadata import ( - EventStreamCloudEventConnectionUpdatedPreviousObject3Metadata, -) -from .event_stream_cloud_event_connection_updated_previous_object_3_options import ( - EventStreamCloudEventConnectionUpdatedPreviousObject3Options, -) -from .event_stream_cloud_event_connection_updated_previous_object_3_strategy_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject3StrategyEnum, -) - - -class EventStreamCloudEventConnectionUpdatedPreviousObject3(UniversalBaseModel): - authentication: typing.Optional[EventStreamCloudEventConnectionUpdatedPreviousObject3Authentication] = None - connected_accounts: typing.Optional[EventStreamCloudEventConnectionUpdatedPreviousObject3ConnectedAccounts] = None - display_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Connection name used in the new universal login experience - """ - - enabled_clients: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. - """ - - id: str = pydantic.Field() - """ - The connection's identifier - """ - - is_domain_connection: typing.Optional[bool] = pydantic.Field(default=None) - """ - true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) - """ - - metadata: typing.Optional[EventStreamCloudEventConnectionUpdatedPreviousObject3Metadata] = None - name: str = pydantic.Field() - """ - The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 - """ - - realms: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. - """ - - options: typing.Optional[EventStreamCloudEventConnectionUpdatedPreviousObject3Options] = None - show_as_button: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to `false`. - """ - - strategy: EventStreamCloudEventConnectionUpdatedPreviousObject3StrategyEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_3_authentication.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_3_authentication.py deleted file mode 100644 index 66815f7c..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_3_authentication.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionUpdatedPreviousObject3Authentication(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for authentication during login. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_3_connected_accounts.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_3_connected_accounts.py deleted file mode 100644 index 18a97451..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_3_connected_accounts.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionUpdatedPreviousObject3ConnectedAccounts(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for connected accounts and Token Vault. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_3_metadata.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_3_metadata.py deleted file mode 100644 index b48110ad..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_3_metadata.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionUpdatedPreviousObject3Metadata(UniversalBaseModel): - """ - Metadata associated with the connection in the form of an object with string values (max 255 chars). Maximum of 10 metadata properties allowed. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_3_options.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_3_options.py deleted file mode 100644 index fd08c5b7..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_3_options.py +++ /dev/null @@ -1,172 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_connection_updated_previous_object_3_options_assertion_decryption_settings import ( - EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsAssertionDecryptionSettings, -) -from .event_stream_cloud_event_connection_updated_previous_object_3_options_digest_algorithm_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsDigestAlgorithmEnum, -) -from .event_stream_cloud_event_connection_updated_previous_object_3_options_idpinitiated import ( - EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsIdpinitiated, -) -from .event_stream_cloud_event_connection_updated_previous_object_3_options_protocol_binding_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsProtocolBindingEnum, -) -from .event_stream_cloud_event_connection_updated_previous_object_3_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsSetUserRootAttributesEnum, -) -from .event_stream_cloud_event_connection_updated_previous_object_3_options_signature_algorithm_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsSignatureAlgorithmEnum, -) -from .event_stream_cloud_event_connection_updated_previous_object_3_options_subject import ( - EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsSubject, -) -from .event_stream_cloud_event_connection_updated_previous_object_3_options_upstream_params import ( - EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsUpstreamParams, -) - - -class EventStreamCloudEventConnectionUpdatedPreviousObject3Options(UniversalBaseModel): - """ - Options for the 'pingfederate' connection - """ - - assertion_decryption_settings: typing.Optional[ - EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsAssertionDecryptionSettings - ] = None - cert: typing.Optional[str] = pydantic.Field(default=None) - """ - X.509 signing certificate from the identity provider in .der format. Used to validate signatures in SAML Responses and Assertions. This is an alternative to signingCert and is kept for backward compatibility. Prefer using signingCert instead. - """ - - cert_rollover_notification: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Timestamp of the last certificate expiring soon notification. - """ - - digest_algorithm: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsDigestAlgorithmEnum], - FieldMetadata(alias="digestAlgorithm"), - pydantic.Field(alias="digestAlgorithm"), - ] = None - domain_aliases: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Domain aliases for the connection - """ - - entity_id: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="entityId"), - pydantic.Field( - alias="entityId", - description="The entity identifier (Issuer) for the SAML Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'. This value is included in SAML AuthnRequest messages sent to the identity provider.", - ), - ] = None - """ - The entity identifier (Issuer) for the SAML Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'. This value is included in SAML AuthnRequest messages sent to the identity provider. - """ - - expires: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - ISO 8601 formatted datetime indicating when the identity provider's signing certificate expires. - """ - - icon_url: typing.Optional[str] = pydantic.Field(default=None) - """ - URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows. - """ - - idpinitiated: typing.Optional[EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsIdpinitiated] = None - non_persistent_attrs: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) - """ - - protocol_binding: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsProtocolBindingEnum], - FieldMetadata(alias="protocolBinding"), - pydantic.Field(alias="protocolBinding"), - ] = None - set_user_root_attributes: typing.Optional[ - EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsSetUserRootAttributesEnum - ] = None - signature_algorithm: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsSignatureAlgorithmEnum], - FieldMetadata(alias="signatureAlgorithm"), - pydantic.Field(alias="signatureAlgorithm"), - ] = None - sign_in_endpoint: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="signInEndpoint"), - pydantic.Field( - alias="signInEndpoint", - description="Identity provider's SAML SingleSignOnService endpoint URL where Auth0 sends SAML authentication requests. This is the primary login URL for the SAML connection. Required unless using metadataUrl or metadataXml.", - ), - ] = None - """ - Identity provider's SAML SingleSignOnService endpoint URL where Auth0 sends SAML authentication requests. This is the primary login URL for the SAML connection. Required unless using metadataUrl or metadataXml. - """ - - signing_cert: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="signingCert"), - pydantic.Field( - alias="signingCert", - description="Base64-encoded X.509 certificate from the identity provider used to validate signatures in SAML responses and assertions. The certificate is decoded and used for cryptographic signature verification.", - ), - ] = None - """ - Base64-encoded X.509 certificate from the identity provider used to validate signatures in SAML responses and assertions. The certificate is decoded and used for cryptographic signature verification. - """ - - sign_saml_request: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="signSAMLRequest"), - pydantic.Field( - alias="signSAMLRequest", - description="When true, Auth0 signs SAML authentication requests using the connection's signing key. The signature includes the request's digest and is validated by the identity provider. Defaults to false (unsigned requests).", - ), - ] = None - """ - When true, Auth0 signs SAML authentication requests using the connection's signing key. The signature includes the request's digest and is validated by the identity provider. Defaults to false (unsigned requests). - """ - - subject: typing.Optional[EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsSubject] = None - tenant_domain: typing.Optional[str] = pydantic.Field(default=None) - """ - For SAML connections, the tenant domain used to construct the login endpoint URL. Can be a string for single-tenant or an array of strings for multi-tenant validation. - """ - - thumbprints: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - SHA-1 thumbprints (fingerprints) of the identity provider's signing certificates. Automatically computed from signingCert during connection creation. Each thumbprint must be a 40-character hexadecimal string. - """ - - upstream_params: typing.Optional[EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsUpstreamParams] = None - ping_federate_base_url: typing_extensions.Annotated[ - str, - FieldMetadata(alias="pingFederateBaseUrl"), - pydantic.Field( - alias="pingFederateBaseUrl", - description="URL provided by PingFederate which returns information used for creating the connection", - ), - ] - """ - URL provided by PingFederate which returns information used for creating the connection - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_3_options_assertion_decryption_settings.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_3_options_assertion_decryption_settings.py deleted file mode 100644 index 5ac30784..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_3_options_assertion_decryption_settings.py +++ /dev/null @@ -1,33 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_updated_previous_object_3_options_assertion_decryption_settings_algorithm_profile_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum, -) - - -class EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsAssertionDecryptionSettings(UniversalBaseModel): - """ - Settings for SAML assertion decryption. - """ - - algorithm_exceptions: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - A list of insecure algorithms to allow for SAML assertion decryption. - """ - - algorithm_profile: ( - EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum - ) - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_3_options_assertion_decryption_settings_algorithm_profile_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_3_options_assertion_decryption_settings_algorithm_profile_enum.py deleted file mode 100644 index d210b077..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_3_options_assertion_decryption_settings_algorithm_profile_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum = ( - typing.Union[typing.Literal["v2026-1"], typing.Any] -) diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_3_options_digest_algorithm_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_3_options_digest_algorithm_enum.py deleted file mode 100644 index 4155fb34..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_3_options_digest_algorithm_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsDigestAlgorithmEnum = typing.Union[ - typing.Literal["sha1", "sha256"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_3_options_idpinitiated.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_3_options_idpinitiated.py deleted file mode 100644 index 18acc57d..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_3_options_idpinitiated.py +++ /dev/null @@ -1,42 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_updated_previous_object_3_options_idpinitiated_client_protocol_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsIdpinitiatedClientProtocolEnum, -) - - -class EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsIdpinitiated(UniversalBaseModel): - """ - Configuration for IdP-Initiated SAML Single Sign-On. When enabled, allows users to initiate login directly from their SAML identity provider without first visiting Auth0. The IdP must include the connection parameter in the post-back URL (Assertion Consumer Service URL). - """ - - client_authorizequery: typing.Optional[str] = pydantic.Field(default=None) - """ - The query string sent to the default application - """ - - client_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The client ID to use for IdP-initiated login requests. - """ - - client_protocol: typing.Optional[ - EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsIdpinitiatedClientProtocolEnum - ] = None - enabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true, enables IdP-initiated login support for this SAML connection. Allows users to log in directly from the identity provider without first visiting Auth0. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_3_options_idpinitiated_client_protocol_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_3_options_idpinitiated_client_protocol_enum.py deleted file mode 100644 index e49dd44e..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_3_options_idpinitiated_client_protocol_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsIdpinitiatedClientProtocolEnum = typing.Union[ - typing.Literal["oidc", "samlp", "wsfed"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_3_options_protocol_binding_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_3_options_protocol_binding_enum.py deleted file mode 100644 index 559f8ed1..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_3_options_protocol_binding_enum.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsProtocolBindingEnum = typing.Union[ - typing.Literal[ - "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST", "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect" - ], - typing.Any, -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_3_options_set_user_root_attributes_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_3_options_set_user_root_attributes_enum.py deleted file mode 100644 index 0ddd56b7..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_3_options_set_user_root_attributes_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsSetUserRootAttributesEnum = typing.Union[ - typing.Literal["on_each_login", "on_first_login", "never_on_login"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_3_options_signature_algorithm_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_3_options_signature_algorithm_enum.py deleted file mode 100644 index 931e830a..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_3_options_signature_algorithm_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsSignatureAlgorithmEnum = typing.Union[ - typing.Literal["rsa-sha1", "rsa-sha256"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_3_options_subject.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_3_options_subject.py deleted file mode 100644 index c95492a4..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_3_options_subject.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsSubject(UniversalBaseModel): - """ - Certificate Subject Distinguished Name (DN) extracted from the identity provider's signing certificate. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_3_options_upstream_params.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_3_options_upstream_params.py deleted file mode 100644 index 6c7321fd..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_3_options_upstream_params.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedPreviousObject3OptionsUpstreamParams = typing.Dict[str, typing.Any] -""" -Additional parameters to include in authorization requests sent to the identity provider. Useful for passing custom claims, selecting specific identity sources, or configuring provider-specific behavior. See https://auth0.com/docs/authenticate/identity-providers/pass-parameters-to-idps -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_3_strategy_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_3_strategy_enum.py deleted file mode 100644 index 36ce3ab4..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_3_strategy_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedPreviousObject3StrategyEnum = typing.Union[ - typing.Literal["pingfederate"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_4.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_4.py deleted file mode 100644 index 08cde7f2..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_4.py +++ /dev/null @@ -1,73 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_updated_previous_object_4_authentication import ( - EventStreamCloudEventConnectionUpdatedPreviousObject4Authentication, -) -from .event_stream_cloud_event_connection_updated_previous_object_4_connected_accounts import ( - EventStreamCloudEventConnectionUpdatedPreviousObject4ConnectedAccounts, -) -from .event_stream_cloud_event_connection_updated_previous_object_4_metadata import ( - EventStreamCloudEventConnectionUpdatedPreviousObject4Metadata, -) -from .event_stream_cloud_event_connection_updated_previous_object_4_options import ( - EventStreamCloudEventConnectionUpdatedPreviousObject4Options, -) -from .event_stream_cloud_event_connection_updated_previous_object_4_strategy_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject4StrategyEnum, -) - - -class EventStreamCloudEventConnectionUpdatedPreviousObject4(UniversalBaseModel): - authentication: typing.Optional[EventStreamCloudEventConnectionUpdatedPreviousObject4Authentication] = None - connected_accounts: typing.Optional[EventStreamCloudEventConnectionUpdatedPreviousObject4ConnectedAccounts] = None - display_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Connection name used in the new universal login experience - """ - - enabled_clients: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. - """ - - id: str = pydantic.Field() - """ - The connection's identifier - """ - - is_domain_connection: typing.Optional[bool] = pydantic.Field(default=None) - """ - true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) - """ - - metadata: typing.Optional[EventStreamCloudEventConnectionUpdatedPreviousObject4Metadata] = None - name: str = pydantic.Field() - """ - The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 - """ - - realms: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. - """ - - options: typing.Optional[EventStreamCloudEventConnectionUpdatedPreviousObject4Options] = None - show_as_button: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to `false`. - """ - - strategy: EventStreamCloudEventConnectionUpdatedPreviousObject4StrategyEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_4_authentication.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_4_authentication.py deleted file mode 100644 index 612eae72..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_4_authentication.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionUpdatedPreviousObject4Authentication(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for authentication during login. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_4_connected_accounts.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_4_connected_accounts.py deleted file mode 100644 index 3318a57a..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_4_connected_accounts.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionUpdatedPreviousObject4ConnectedAccounts(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for connected accounts and Token Vault. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_4_metadata.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_4_metadata.py deleted file mode 100644 index f61c3418..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_4_metadata.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionUpdatedPreviousObject4Metadata(UniversalBaseModel): - """ - Metadata associated with the connection in the form of an object with string values (max 255 chars). Maximum of 10 metadata properties allowed. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_4_options.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_4_options.py deleted file mode 100644 index 0439ae74..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_4_options.py +++ /dev/null @@ -1,121 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_connection_updated_previous_object_4_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject4OptionsSetUserRootAttributesEnum, -) -from .event_stream_cloud_event_connection_updated_previous_object_4_options_should_trust_email_verified_connection_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject4OptionsShouldTrustEmailVerifiedConnectionEnum, -) -from .event_stream_cloud_event_connection_updated_previous_object_4_options_upstream_params import ( - EventStreamCloudEventConnectionUpdatedPreviousObject4OptionsUpstreamParams, -) - - -class EventStreamCloudEventConnectionUpdatedPreviousObject4Options(UniversalBaseModel): - """ - Options for the 'adfs' connection - """ - - adfs_server: typing.Optional[str] = pydantic.Field(default=None) - """ - ADFS federation metadata host or XML URL used to discover WS-Fed endpoints and certificates. Errors if adfs_server and fedMetadataXml are both absent. - """ - - cert_rollover_notification: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Timestamp of the last certificate expiring soon notification. - """ - - domain_aliases: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication. - """ - - entity_id: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="entityId"), - pydantic.Field( - alias="entityId", - description="The entity identifier (Issuer) for the ADFS Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'.", - ), - ] = None - """ - The entity identifier (Issuer) for the ADFS Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'. - """ - - fed_metadata_xml: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="fedMetadataXml"), - pydantic.Field( - alias="fedMetadataXml", - description="Inline XML alternative to 'adfs_server'. Cannot be set together with 'adfs_server'.", - ), - ] = None - """ - Inline XML alternative to 'adfs_server'. Cannot be set together with 'adfs_server'. - """ - - icon_url: typing.Optional[str] = pydantic.Field(default=None) - """ - URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows. - """ - - non_persistent_attrs: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) - """ - - prev_thumbprints: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Array of certificate thumbprints (SHA-128/SHA-256/SHA-512 hex hashes) for validating SAML signatures. Used with WS-Federation protocol. Maximum 20 thumbprints. Each thumbprint must be a hexadecimal string. - """ - - set_user_root_attributes: typing.Optional[ - EventStreamCloudEventConnectionUpdatedPreviousObject4OptionsSetUserRootAttributesEnum - ] = None - should_trust_email_verified_connection: typing.Optional[ - EventStreamCloudEventConnectionUpdatedPreviousObject4OptionsShouldTrustEmailVerifiedConnectionEnum - ] = None - sign_in_endpoint: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="signInEndpoint"), - pydantic.Field( - alias="signInEndpoint", - description="Passive Requestor (WS-Fed) sign-in endpoint discovered from metadata or provided explicitly.", - ), - ] = None - """ - Passive Requestor (WS-Fed) sign-in endpoint discovered from metadata or provided explicitly. - """ - - tenant_domain: typing.Optional[str] = pydantic.Field(default=None) - """ - Tenant domain - """ - - thumbprints: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Array of certificate thumbprints (SHA-128/SHA-256/SHA-512 hex hashes) for validating SAML signatures. Used with WS-Federation protocol. Maximum 20 thumbprints. Each thumbprint must be a hexadecimal string. - """ - - upstream_params: typing.Optional[EventStreamCloudEventConnectionUpdatedPreviousObject4OptionsUpstreamParams] = None - user_id_attribute: typing.Optional[str] = pydantic.Field(default=None) - """ - Custom ADFS claim to use as the unique user identifier. When provided, this attribute is prepended to the default user_id mapping list with highest priority. Accepts a string (single ADFS claim name). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_4_options_set_user_root_attributes_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_4_options_set_user_root_attributes_enum.py deleted file mode 100644 index 4d3390e1..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_4_options_set_user_root_attributes_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedPreviousObject4OptionsSetUserRootAttributesEnum = typing.Union[ - typing.Literal["on_each_login", "on_first_login", "never_on_login"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_4_options_should_trust_email_verified_connection_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_4_options_should_trust_email_verified_connection_enum.py deleted file mode 100644 index 34f019e3..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_4_options_should_trust_email_verified_connection_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedPreviousObject4OptionsShouldTrustEmailVerifiedConnectionEnum = typing.Union[ - typing.Literal["never_set_emails_as_verified", "always_set_emails_as_verified"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_4_options_upstream_params.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_4_options_upstream_params.py deleted file mode 100644 index 55958620..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_4_options_upstream_params.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedPreviousObject4OptionsUpstreamParams = typing.Dict[str, typing.Any] -""" -Additional parameters to include in authorization requests sent to the identity provider. Useful for passing custom claims, selecting specific identity sources, or configuring provider-specific behavior. See https://auth0.com/docs/authenticate/identity-providers/pass-parameters-to-idps -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_4_strategy_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_4_strategy_enum.py deleted file mode 100644 index edb88b65..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_4_strategy_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedPreviousObject4StrategyEnum = typing.Union[typing.Literal["adfs"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_5.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_5.py deleted file mode 100644 index cd604df1..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_5.py +++ /dev/null @@ -1,68 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_updated_previous_object_5_authentication import ( - EventStreamCloudEventConnectionUpdatedPreviousObject5Authentication, -) -from .event_stream_cloud_event_connection_updated_previous_object_5_connected_accounts import ( - EventStreamCloudEventConnectionUpdatedPreviousObject5ConnectedAccounts, -) -from .event_stream_cloud_event_connection_updated_previous_object_5_metadata import ( - EventStreamCloudEventConnectionUpdatedPreviousObject5Metadata, -) -from .event_stream_cloud_event_connection_updated_previous_object_5_options import ( - EventStreamCloudEventConnectionUpdatedPreviousObject5Options, -) -from .event_stream_cloud_event_connection_updated_previous_object_5_strategy_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject5StrategyEnum, -) - - -class EventStreamCloudEventConnectionUpdatedPreviousObject5(UniversalBaseModel): - authentication: typing.Optional[EventStreamCloudEventConnectionUpdatedPreviousObject5Authentication] = None - connected_accounts: typing.Optional[EventStreamCloudEventConnectionUpdatedPreviousObject5ConnectedAccounts] = None - display_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Connection name used in the new universal login experience - """ - - enabled_clients: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. - """ - - id: str = pydantic.Field() - """ - The connection's identifier - """ - - is_domain_connection: typing.Optional[bool] = pydantic.Field(default=None) - """ - true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) - """ - - metadata: typing.Optional[EventStreamCloudEventConnectionUpdatedPreviousObject5Metadata] = None - name: str = pydantic.Field() - """ - The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 - """ - - realms: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. - """ - - options: typing.Optional[EventStreamCloudEventConnectionUpdatedPreviousObject5Options] = None - strategy: EventStreamCloudEventConnectionUpdatedPreviousObject5StrategyEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_5_authentication.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_5_authentication.py deleted file mode 100644 index 54862b91..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_5_authentication.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionUpdatedPreviousObject5Authentication(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for authentication during login. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_5_connected_accounts.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_5_connected_accounts.py deleted file mode 100644 index 534416fe..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_5_connected_accounts.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionUpdatedPreviousObject5ConnectedAccounts(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for connected accounts and Token Vault. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_5_metadata.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_5_metadata.py deleted file mode 100644 index e6f91019..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_5_metadata.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionUpdatedPreviousObject5Metadata(UniversalBaseModel): - """ - Metadata associated with the connection in the form of an object with string values (max 255 chars). Maximum of 10 metadata properties allowed. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_5_options.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_5_options.py deleted file mode 100644 index c8f5fb1a..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_5_options.py +++ /dev/null @@ -1,154 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_connection_updated_previous_object_5_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject5OptionsSetUserRootAttributesEnum, -) -from .event_stream_cloud_event_connection_updated_previous_object_5_options_upstream_params import ( - EventStreamCloudEventConnectionUpdatedPreviousObject5OptionsUpstreamParams, -) - - -class EventStreamCloudEventConnectionUpdatedPreviousObject5Options(UniversalBaseModel): - """ - Options for the 'ad' connection - """ - - agent_ip: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="agentIP"), - pydantic.Field( - alias="agentIP", - description="IP address of the AD connector agent used to validate that authentication requests originate from the corporate network for Kerberos authentication (managed by the AD Connector agent).", - ), - ] = None - """ - IP address of the AD connector agent used to validate that authentication requests originate from the corporate network for Kerberos authentication (managed by the AD Connector agent). - """ - - agent_mode: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="agentMode"), - pydantic.Field( - alias="agentMode", - description="When enabled, allows direct username/password authentication through the AD connector agent instead of WS-Federation protocol (managed by the AD Connector agent).", - ), - ] = None - """ - When enabled, allows direct username/password authentication through the AD connector agent instead of WS-Federation protocol (managed by the AD Connector agent). - """ - - agent_version: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="agentVersion"), - pydantic.Field( - alias="agentVersion", - description="Version identifier of the installed AD connector agent software (managed by the AD Connector agent).", - ), - ] = None - """ - Version identifier of the installed AD connector agent software (managed by the AD Connector agent). - """ - - brute_force_protection: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables Auth0's brute force protection to prevent credential stuffing attacks. When enabled, blocks suspicious login attempts from specific IP addresses after repeated failures. - """ - - cert_auth: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="certAuth"), - pydantic.Field( - alias="certAuth", - description="Enables client SSL certificate authentication for the AD connector, requiring HTTPS on the sign-in endpoint", - ), - ] = None - """ - Enables client SSL certificate authentication for the AD connector, requiring HTTPS on the sign-in endpoint - """ - - certs: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Array of X.509 certificates in PEM format used for validating SAML signatures from the AD identity provider (managed by the AD Connector agent). - """ - - disable_cache: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, disables caching of AD connector authentication results to ensure real-time validation against the directory - """ - - disable_self_service_change_password: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, hides the 'Forgot Password' link on login pages to prevent users from initiating self-service password resets - """ - - domain_aliases: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - List of domain names that can be used with identifier-first authentication flow to route users to this AD connection; each domain must be a valid DNS name up to 256 characters - """ - - icon_url: typing.Optional[str] = pydantic.Field(default=None) - """ - https url of the icon to be shown - """ - - ips: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Array of IP address ranges in CIDR notation used to determine if authentication requests originate from the corporate network for Kerberos or certificate authentication. - """ - - kerberos: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables Windows Integrated Authentication (Kerberos) for seamless SSO when users authenticate from within the corporate network IP ranges - """ - - kerberos_only: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true, restricts the connection to Kerberos-only authentication, disallowing username/password fallback. - """ - - non_persistent_attrs: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) - """ - - set_user_root_attributes: typing.Optional[ - EventStreamCloudEventConnectionUpdatedPreviousObject5OptionsSetUserRootAttributesEnum - ] = None - sign_in_endpoint: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="signInEndpoint"), - pydantic.Field( - alias="signInEndpoint", - description="The sign-in endpoint type for the AD-LDAP connector agent (managed by the AD Connector agent).", - ), - ] = None - """ - The sign-in endpoint type for the AD-LDAP connector agent (managed by the AD Connector agent). - """ - - tenant_domain: typing.Optional[str] = pydantic.Field(default=None) - """ - Primary AD domain hint used for HRD and discovery. - """ - - thumbprints: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Array of certificate SHA-1 thumbprints for validating signatures. Managed by Auth0 when using the AD Connector agent. - """ - - upstream_params: typing.Optional[EventStreamCloudEventConnectionUpdatedPreviousObject5OptionsUpstreamParams] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_5_options_set_user_root_attributes_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_5_options_set_user_root_attributes_enum.py deleted file mode 100644 index 3758f78d..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_5_options_set_user_root_attributes_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedPreviousObject5OptionsSetUserRootAttributesEnum = typing.Union[ - typing.Literal["on_each_login", "on_first_login", "never_on_login"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_5_options_upstream_params.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_5_options_upstream_params.py deleted file mode 100644 index c08a5b3a..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_5_options_upstream_params.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedPreviousObject5OptionsUpstreamParams = typing.Dict[str, typing.Any] -""" -Additional parameters to include in authorization requests sent to the identity provider. Useful for passing custom claims, selecting specific identity sources, or configuring provider-specific behavior. See https://auth0.com/docs/authenticate/identity-providers/pass-parameters-to-idps -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_5_strategy_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_5_strategy_enum.py deleted file mode 100644 index 60252d47..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_5_strategy_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedPreviousObject5StrategyEnum = typing.Union[typing.Literal["ad"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_6.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_6.py deleted file mode 100644 index 20b48557..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_6.py +++ /dev/null @@ -1,73 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_updated_previous_object_6_authentication import ( - EventStreamCloudEventConnectionUpdatedPreviousObject6Authentication, -) -from .event_stream_cloud_event_connection_updated_previous_object_6_connected_accounts import ( - EventStreamCloudEventConnectionUpdatedPreviousObject6ConnectedAccounts, -) -from .event_stream_cloud_event_connection_updated_previous_object_6_metadata import ( - EventStreamCloudEventConnectionUpdatedPreviousObject6Metadata, -) -from .event_stream_cloud_event_connection_updated_previous_object_6_options import ( - EventStreamCloudEventConnectionUpdatedPreviousObject6Options, -) -from .event_stream_cloud_event_connection_updated_previous_object_6_strategy_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject6StrategyEnum, -) - - -class EventStreamCloudEventConnectionUpdatedPreviousObject6(UniversalBaseModel): - authentication: typing.Optional[EventStreamCloudEventConnectionUpdatedPreviousObject6Authentication] = None - connected_accounts: typing.Optional[EventStreamCloudEventConnectionUpdatedPreviousObject6ConnectedAccounts] = None - display_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Connection name used in the new universal login experience - """ - - enabled_clients: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. - """ - - id: str = pydantic.Field() - """ - The connection's identifier - """ - - is_domain_connection: typing.Optional[bool] = pydantic.Field(default=None) - """ - true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) - """ - - metadata: typing.Optional[EventStreamCloudEventConnectionUpdatedPreviousObject6Metadata] = None - name: str = pydantic.Field() - """ - The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 - """ - - realms: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. - """ - - options: typing.Optional[EventStreamCloudEventConnectionUpdatedPreviousObject6Options] = None - show_as_button: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to `false`. - """ - - strategy: EventStreamCloudEventConnectionUpdatedPreviousObject6StrategyEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_6_authentication.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_6_authentication.py deleted file mode 100644 index f22bb993..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_6_authentication.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionUpdatedPreviousObject6Authentication(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for authentication during login. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_6_connected_accounts.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_6_connected_accounts.py deleted file mode 100644 index 3924a380..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_6_connected_accounts.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionUpdatedPreviousObject6ConnectedAccounts(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for connected accounts and Token Vault. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_6_metadata.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_6_metadata.py deleted file mode 100644 index db9a5952..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_6_metadata.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionUpdatedPreviousObject6Metadata(UniversalBaseModel): - """ - Metadata associated with the connection in the form of an object with string values (max 255 chars). Maximum of 10 metadata properties allowed. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_6_options.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_6_options.py deleted file mode 100644 index 2889280a..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_6_options.py +++ /dev/null @@ -1,139 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_updated_previous_object_6_options_federated_connections_access_tokens import ( - EventStreamCloudEventConnectionUpdatedPreviousObject6OptionsFederatedConnectionsAccessTokens, -) -from .event_stream_cloud_event_connection_updated_previous_object_6_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject6OptionsSetUserRootAttributesEnum, -) -from .event_stream_cloud_event_connection_updated_previous_object_6_options_upstream_params import ( - EventStreamCloudEventConnectionUpdatedPreviousObject6OptionsUpstreamParams, -) - - -class EventStreamCloudEventConnectionUpdatedPreviousObject6Options(UniversalBaseModel): - """ - Options for the 'google-apps' connection - """ - - admin_access_token_expiresin: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Expiration timestamp for the `admin_access_token` in ISO 8601 format. Auth0 uses this value to determine when to refresh the token. - """ - - allow_setting_login_scopes: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true, allows customization of OAuth scopes requested during user login. Custom scopes are appended to the mandatory email and profile scopes. When false or omitted, only the default email and profile scopes are used. This property is automatically enabled when Token Vault or Connected Accounts features are activated. - """ - - api_enable_groups: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables integration with the Google Workspace Admin SDK Directory API for groups. When true, Auth0 can synchronize groups & group memberships and supports inbound directory provisioning for groups. Defaults to false. - """ - - api_enable_users: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables integration with the Google Workspace Admin SDK Directory API. When true, Auth0 can retrieve extended user attributes (admin status, suspension status, group memberships) and supports inbound directory provisioning (SCIM). Defaults to true. - """ - - client_id: str = pydantic.Field() - """ - Your Google OAuth 2.0 client ID. You can find this in your [Google Cloud Console](https://console.cloud.google.com/apis/credentials) under the OAuth 2.0 Client IDs section. - """ - - domain: typing.Optional[str] = pydantic.Field(default=None) - """ - Primary Google Workspace domain name that users must belong to. - """ - - domain_aliases: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication. - """ - - email: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether the OAuth flow requests the `email` scope. - """ - - ext_agreed_terms: typing.Optional[bool] = pydantic.Field(default=None) - """ - Fetches the `agreedToTerms` flag from the Google Directory profile. - """ - - ext_groups: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables enrichment with Google group memberships (required for `ext_groups_extended`). - """ - - ext_groups_extended: typing.Optional[bool] = pydantic.Field(default=None) - """ - Controls whether enriched group entries include `id`, `email`, `name` (true) or only the group name (false); can only be set when `ext_groups` is true. - """ - - ext_is_admin: typing.Optional[bool] = pydantic.Field(default=None) - """ - Fetches the Google Directory admin flag for the signing-in user. - """ - - ext_is_suspended: typing.Optional[bool] = pydantic.Field(default=None) - """ - Fetches the Google Directory suspended flag for the signing-in user. - """ - - federated_connections_access_tokens: typing.Optional[ - EventStreamCloudEventConnectionUpdatedPreviousObject6OptionsFederatedConnectionsAccessTokens - ] = None - handle_login_from_social: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled, users who sign in with their Google account through a social login will be automatically routed to this Google Workspace connection if their email domain matches the configured tenant_domain or domain_aliases. This ensures enterprise users authenticate through their organization's Google Workspace identity provider rather than through a generic Google social login, enabling access to directory-based attributes and enforcing organizational security policies. Defaults to true for new connections. - """ - - icon_url: typing.Optional[str] = pydantic.Field(default=None) - """ - URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows. - """ - - map_user_id_to_id: typing.Optional[bool] = pydantic.Field(default=None) - """ - Determines how Auth0 generates the user_id for Google Workspace users. When false (default), the user's email address is used. When true, Google's stable numeric user ID is used instead, which persists even if the user's email changes. This setting can only be configured when creating the connection and cannot be changed afterward. - """ - - non_persistent_attrs: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) - """ - - profile: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether the OAuth flow requests the `profile` scope. - """ - - scope: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Additional OAuth scopes requested beyond the default `email profile` scopes; ignored unless `allow_setting_login_scopes` is true. - """ - - set_user_root_attributes: typing.Optional[ - EventStreamCloudEventConnectionUpdatedPreviousObject6OptionsSetUserRootAttributesEnum - ] = None - tenant_domain: typing.Optional[str] = pydantic.Field(default=None) - """ - The Google Workspace primary domain used to identify the organization during authentication. - """ - - upstream_params: typing.Optional[EventStreamCloudEventConnectionUpdatedPreviousObject6OptionsUpstreamParams] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_6_options_federated_connections_access_tokens.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_6_options_federated_connections_access_tokens.py deleted file mode 100644 index 2c719fba..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_6_options_federated_connections_access_tokens.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionUpdatedPreviousObject6OptionsFederatedConnectionsAccessTokens(UniversalBaseModel): - """ - Configuration for storing identity provider tokens in Auth0's Token Vault. When active, Auth0 securely stores access and refresh tokens from federated logins, enabling your application to make authenticated API calls on behalf of users. - """ - - active: bool = pydantic.Field() - """ - Enables refresh tokens and access tokens collection for federated connections - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_6_options_set_user_root_attributes_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_6_options_set_user_root_attributes_enum.py deleted file mode 100644 index fedebb54..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_6_options_set_user_root_attributes_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedPreviousObject6OptionsSetUserRootAttributesEnum = typing.Union[ - typing.Literal["on_each_login", "on_first_login", "never_on_login"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_6_options_upstream_params.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_6_options_upstream_params.py deleted file mode 100644 index 235061d4..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_6_options_upstream_params.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedPreviousObject6OptionsUpstreamParams = typing.Dict[str, typing.Any] -""" -Additional parameters to include in authorization requests sent to the identity provider. Useful for passing custom claims, selecting specific identity sources, or configuring provider-specific behavior. See https://auth0.com/docs/authenticate/identity-providers/pass-parameters-to-idps -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_6_strategy_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_6_strategy_enum.py deleted file mode 100644 index f26e0e6d..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_6_strategy_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedPreviousObject6StrategyEnum = typing.Union[ - typing.Literal["google-apps"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_7.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_7.py deleted file mode 100644 index d000d55c..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_7.py +++ /dev/null @@ -1,73 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_updated_previous_object_7_authentication import ( - EventStreamCloudEventConnectionUpdatedPreviousObject7Authentication, -) -from .event_stream_cloud_event_connection_updated_previous_object_7_connected_accounts import ( - EventStreamCloudEventConnectionUpdatedPreviousObject7ConnectedAccounts, -) -from .event_stream_cloud_event_connection_updated_previous_object_7_metadata import ( - EventStreamCloudEventConnectionUpdatedPreviousObject7Metadata, -) -from .event_stream_cloud_event_connection_updated_previous_object_7_options import ( - EventStreamCloudEventConnectionUpdatedPreviousObject7Options, -) -from .event_stream_cloud_event_connection_updated_previous_object_7_strategy_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject7StrategyEnum, -) - - -class EventStreamCloudEventConnectionUpdatedPreviousObject7(UniversalBaseModel): - authentication: typing.Optional[EventStreamCloudEventConnectionUpdatedPreviousObject7Authentication] = None - connected_accounts: typing.Optional[EventStreamCloudEventConnectionUpdatedPreviousObject7ConnectedAccounts] = None - display_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Connection name used in the new universal login experience - """ - - enabled_clients: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. - """ - - id: str = pydantic.Field() - """ - The connection's identifier - """ - - is_domain_connection: typing.Optional[bool] = pydantic.Field(default=None) - """ - true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) - """ - - metadata: typing.Optional[EventStreamCloudEventConnectionUpdatedPreviousObject7Metadata] = None - name: str = pydantic.Field() - """ - The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 - """ - - realms: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. - """ - - options: typing.Optional[EventStreamCloudEventConnectionUpdatedPreviousObject7Options] = None - show_as_button: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to `false`. - """ - - strategy: EventStreamCloudEventConnectionUpdatedPreviousObject7StrategyEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_7_authentication.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_7_authentication.py deleted file mode 100644 index 6139cc69..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_7_authentication.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionUpdatedPreviousObject7Authentication(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for authentication during login. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_7_connected_accounts.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_7_connected_accounts.py deleted file mode 100644 index 469e2f60..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_7_connected_accounts.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionUpdatedPreviousObject7ConnectedAccounts(UniversalBaseModel): - """ - Configure the purpose of a connection to be used for connected accounts and Token Vault. - """ - - active: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_7_metadata.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_7_metadata.py deleted file mode 100644 index 961a45d9..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_7_metadata.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionUpdatedPreviousObject7Metadata(UniversalBaseModel): - """ - Metadata associated with the connection in the form of an object with string values (max 255 chars). Maximum of 10 metadata properties allowed. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_7_options.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_7_options.py deleted file mode 100644 index 867dd666..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_7_options.py +++ /dev/null @@ -1,179 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_connection_updated_previous_object_7_options_federated_connections_access_tokens import ( - EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsFederatedConnectionsAccessTokens, -) -from .event_stream_cloud_event_connection_updated_previous_object_7_options_identity_api_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsIdentityApiEnum, -) -from .event_stream_cloud_event_connection_updated_previous_object_7_options_set_user_root_attributes_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsSetUserRootAttributesEnum, -) -from .event_stream_cloud_event_connection_updated_previous_object_7_options_should_trust_email_verified_connection_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum, -) -from .event_stream_cloud_event_connection_updated_previous_object_7_options_tenant_domain_one import ( - EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsTenantDomainOne, -) -from .event_stream_cloud_event_connection_updated_previous_object_7_options_upstream_params import ( - EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsUpstreamParams, -) -from .event_stream_cloud_event_connection_updated_previous_object_7_options_userid_attribute_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsUseridAttributeEnum, -) -from .event_stream_cloud_event_connection_updated_previous_object_7_options_waad_protocol_enum import ( - EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsWaadProtocolEnum, -) - - -class EventStreamCloudEventConnectionUpdatedPreviousObject7Options(UniversalBaseModel): - """ - Options for the 'waad' connection - """ - - api_enable_users: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enable users API - """ - - app_domain: typing.Optional[str] = pydantic.Field(default=None) - """ - The Azure AD application domain (e.g., 'contoso.onmicrosoft.com'). Used primarily with WS-Federation protocol and Azure AD v1 endpoints. - """ - - app_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The Application ID URI (App ID URI) for the Azure AD application. Required when using Azure AD v1 with the Resource Owner Password flow. Used to identify the resource being requested in OAuth token requests. - """ - - basic_profile: typing.Optional[bool] = pydantic.Field(default=None) - """ - Includes basic user profile information from Azure AD (name, email, given_name, family_name). Always enabled and required - represents the minimum profile data retrieved during authentication. - """ - - cert_rollover_notification: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Timestamp of the last certificate expiring soon notification. - """ - - client_id: str = pydantic.Field() - """ - OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider. - """ - - domain: typing.Optional[str] = pydantic.Field(default=None) - """ - The primary Azure AD tenant domain (e.g., 'contoso.onmicrosoft.com' or 'contoso.com'). - """ - - domain_aliases: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Alternative domain names associated with this Azure AD tenant. Allows users from multiple verified domains to authenticate through this connection. Can be an array of domain strings. - """ - - ext_groups: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled (true), retrieves and stores Azure AD security group memberships for the user. Requires Microsoft Graph API permissions (Directory.Read.All). Allows configuring max_groups_to_retrieve. - """ - - ext_nested_groups: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true, stores all groups the user is member of, including transitive group memberships (groups within groups). When false (default), only direct group memberships are included. - """ - - ext_profile: typing.Optional[bool] = pydantic.Field(default=None) - """ - When enabled (true), retrieves extended profile attributes from Azure AD via Microsoft Graph API (job title, department, office location, etc.). Requires Graph API permissions. Only available with Azure AD v1 or when explicitly enabled for v2. - """ - - federated_connections_access_tokens: typing.Optional[ - EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsFederatedConnectionsAccessTokens - ] = None - granted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether admin consent has been granted for the required Azure AD permissions. Read-only status field managed by Auth0 during the OAuth authorization flow. - """ - - icon_url: typing.Optional[str] = pydantic.Field(default=None) - """ - URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows. - """ - - identity_api: typing.Optional[EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsIdentityApiEnum] = None - max_groups_to_retrieve: typing.Optional[str] = pydantic.Field(default=None) - """ - Maximum number of Azure AD groups to retrieve per user during authentication. Helps prevent performance issues for users in many groups. Only applies when ext_groups is enabled. Leave empty to use platform default. - """ - - non_persistent_attrs: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) - """ - - scope: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - OAuth 2.0 scopes to request from Azure AD during authentication. Each scope represents a permission (e.g., 'User.Read', 'Group.Read.All'). Only applies with Microsoft Identity Platform v2.0. See Microsoft Graph permissions reference for available scopes. - """ - - set_user_root_attributes: typing.Optional[ - EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsSetUserRootAttributesEnum - ] = None - should_trust_email_verified_connection: typing.Optional[ - EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum - ] = None - tenant_domain: typing.Optional[EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsTenantDomainOne] = None - tenant_id: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="tenantId"), - pydantic.Field( - alias="tenantId", - description="The Azure AD tenant ID as a UUID. The unique identifier for your Azure AD organization. Must be a valid 36-character UUID.", - ), - ] = None - """ - The Azure AD tenant ID as a UUID. The unique identifier for your Azure AD organization. Must be a valid 36-character UUID. - """ - - thumbprints: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Array of certificate thumbprints (SHA-128/SHA-256/SHA-512 hex hashes) for validating SAML signatures. Used with WS-Federation protocol. Maximum 20 thumbprints. Each thumbprint must be a hexadecimal string. - """ - - upstream_params: typing.Optional[EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsUpstreamParams] = None - use_wsfed: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates WS-Federation protocol usage. When true, uses WS-Federation; when false, uses OpenID Connect. - """ - - use_common_endpoint: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="useCommonEndpoint"), - pydantic.Field( - alias="useCommonEndpoint", - description="When enabled (true), uses the Azure AD common endpoint for multi-tenant authentication. Allows users from any Azure AD organization to sign in. Requires userid_attribute set to 'sub' (not 'oid'). Cannot be used with SCIM provisioning. Defaults to false.", - ), - ] = None - """ - When enabled (true), uses the Azure AD common endpoint for multi-tenant authentication. Allows users from any Azure AD organization to sign in. Requires userid_attribute set to 'sub' (not 'oid'). Cannot be used with SCIM provisioning. Defaults to false. - """ - - userid_attribute: typing.Optional[ - EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsUseridAttributeEnum - ] = None - waad_protocol: typing.Optional[EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsWaadProtocolEnum] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_7_options_federated_connections_access_tokens.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_7_options_federated_connections_access_tokens.py deleted file mode 100644 index 66e5e9e7..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_7_options_federated_connections_access_tokens.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsFederatedConnectionsAccessTokens(UniversalBaseModel): - """ - Configuration for storing identity provider tokens in Auth0's Token Vault. When active, Auth0 securely stores access and refresh tokens from federated logins, enabling your application to make authenticated API calls on behalf of users. - """ - - active: bool = pydantic.Field() - """ - Enables refresh tokens and access tokens collection for federated connections - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_7_options_identity_api_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_7_options_identity_api_enum.py deleted file mode 100644 index f0508923..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_7_options_identity_api_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsIdentityApiEnum = typing.Union[ - typing.Literal["microsoft-identity-platform-v2.0", "azure-active-directory-v1.0"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_7_options_set_user_root_attributes_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_7_options_set_user_root_attributes_enum.py deleted file mode 100644 index 90377d1a..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_7_options_set_user_root_attributes_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsSetUserRootAttributesEnum = typing.Union[ - typing.Literal["on_each_login", "on_first_login", "never_on_login"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_7_options_should_trust_email_verified_connection_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_7_options_should_trust_email_verified_connection_enum.py deleted file mode 100644 index 417e743d..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_7_options_should_trust_email_verified_connection_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsShouldTrustEmailVerifiedConnectionEnum = typing.Union[ - typing.Literal["never_set_emails_as_verified", "always_set_emails_as_verified"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_7_options_tenant_domain_one.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_7_options_tenant_domain_one.py deleted file mode 100644 index 53c9199b..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_7_options_tenant_domain_one.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsTenantDomainOne = str -""" -Azure AD tenant domain as a UUID tenant ID. -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_7_options_upstream_params.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_7_options_upstream_params.py deleted file mode 100644 index a91806a6..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_7_options_upstream_params.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsUpstreamParams = typing.Dict[str, typing.Any] -""" -Additional parameters to include in authorization requests sent to the identity provider. Useful for passing custom claims, selecting specific identity sources, or configuring provider-specific behavior. See https://auth0.com/docs/authenticate/identity-providers/pass-parameters-to-idps -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_7_options_userid_attribute_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_7_options_userid_attribute_enum.py deleted file mode 100644 index ed19c045..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_7_options_userid_attribute_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsUseridAttributeEnum = typing.Union[ - typing.Literal["oid", "sub"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_7_options_waad_protocol_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_7_options_waad_protocol_enum.py deleted file mode 100644 index b44e403c..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_7_options_waad_protocol_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedPreviousObject7OptionsWaadProtocolEnum = typing.Union[ - typing.Literal["ws-federation", "openid-connect"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_7_strategy_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_7_strategy_enum.py deleted file mode 100644 index 73812943..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_previous_object_7_strategy_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedPreviousObject7StrategyEnum = typing.Union[typing.Literal["waad"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_connection_updated_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_connection_updated_type_enum.py deleted file mode 100644 index 19644d76..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_connection_updated_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventConnectionUpdatedTypeEnum = typing.Union[typing.Literal["connection.updated"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_context.py b/src/auth0/management/types/event_stream_cloud_event_context.py deleted file mode 100644 index 3c065cfc..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_context.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_context_client import EventStreamCloudEventContextClient -from .event_stream_cloud_event_context_connection import EventStreamCloudEventContextConnection -from .event_stream_cloud_event_context_request import EventStreamCloudEventContextRequest -from .event_stream_cloud_event_context_tenant import EventStreamCloudEventContextTenant -from .event_stream_cloud_event_context_transaction import EventStreamCloudEventContextTransaction - - -class EventStreamCloudEventContext(UniversalBaseModel): - """ - Information about the context in which the event was produced. This may include things like - HTTP request details, client information, connection information, etc. - - Note: This field may not be present on all events, depending on the event type and the - context in which it was generated. - """ - - client: typing.Optional[EventStreamCloudEventContextClient] = None - connection: typing.Optional[EventStreamCloudEventContextConnection] = None - request: typing.Optional[EventStreamCloudEventContextRequest] = None - tenant: EventStreamCloudEventContextTenant - transaction: typing.Optional[EventStreamCloudEventContextTransaction] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_context_client.py b/src/auth0/management/types/event_stream_cloud_event_context_client.py deleted file mode 100644 index 010251cc..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_context_client.py +++ /dev/null @@ -1,34 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_context_client_metadata import EventStreamCloudEventContextClientMetadata - - -class EventStreamCloudEventContextClient(UniversalBaseModel): - """ - The OAuth Client requesting or presenting an access token. - """ - - id: str = pydantic.Field() - """ - The client identifier. - """ - - name: str = pydantic.Field() - """ - The client name. - """ - - metadata: EventStreamCloudEventContextClientMetadata - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_context_client_metadata.py b/src/auth0/management/types/event_stream_cloud_event_context_client_metadata.py deleted file mode 100644 index 7549c25f..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_context_client_metadata.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventContextClientMetadata = typing.Dict[str, typing.Any] -""" -Client metadata. -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_context_connection.py b/src/auth0/management/types/event_stream_cloud_event_context_connection.py deleted file mode 100644 index 85cf5dda..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_context_connection.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventContextConnection(UniversalBaseModel): - """ - The Auth0 Connection used for the authentication transaction that generated the event. - """ - - id: str = pydantic.Field() - """ - The ID of the connection. - """ - - name: str = pydantic.Field() - """ - The name of the connection. - """ - - strategy: str = pydantic.Field() - """ - The auth strategy implemented by the connection. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_context_request.py b/src/auth0/management/types/event_stream_cloud_event_context_request.py deleted file mode 100644 index 31629de9..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_context_request.py +++ /dev/null @@ -1,48 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_context_request_geo import EventStreamCloudEventContextRequestGeo - - -class EventStreamCloudEventContextRequest(UniversalBaseModel): - """ - An HTTP request. - """ - - geo: EventStreamCloudEventContextRequestGeo - hostname: str = pydantic.Field() - """ - The hostname the request is for. - """ - - custom_domain: typing.Optional[str] = pydantic.Field(default=None) - """ - The custom domain used in the request (if any). - """ - - ip: str = pydantic.Field() - """ - The originating IP address of the request. - """ - - method: str = pydantic.Field() - """ - The HTTP method used for the request. - """ - - user_agent: str = pydantic.Field() - """ - The value of the `User-Agent` header. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_context_request_geo.py b/src/auth0/management/types/event_stream_cloud_event_context_request_geo.py deleted file mode 100644 index 1788ed21..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_context_request_geo.py +++ /dev/null @@ -1,66 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventContextRequestGeo(UniversalBaseModel): - """ - Geographic information about the request origin. - """ - - continent_code: typing.Optional[str] = pydantic.Field(default=None) - """ - Continent code. - """ - - country_code: typing.Optional[str] = pydantic.Field(default=None) - """ - Country code. - """ - - country_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Country name. - """ - - latitude: typing.Optional[float] = pydantic.Field(default=None) - """ - Latitude coordinate. - """ - - longitude: typing.Optional[float] = pydantic.Field(default=None) - """ - Longitude coordinate. - """ - - subdivision_code: typing.Optional[str] = pydantic.Field(default=None) - """ - Subdivision (state/province) code. - """ - - subdivision_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Subdivision (state/province) name. - """ - - city_name: typing.Optional[str] = pydantic.Field(default=None) - """ - City name. - """ - - time_zone: typing.Optional[str] = pydantic.Field(default=None) - """ - Time zone. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_context_tenant.py b/src/auth0/management/types/event_stream_cloud_event_context_tenant.py deleted file mode 100644 index 487fdf6c..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_context_tenant.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventContextTenant(UniversalBaseModel): - """ - Reference to a tenant in event context - """ - - id: str = pydantic.Field() - """ - User-provided tenant identifier. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_context_transaction.py b/src/auth0/management/types/event_stream_cloud_event_context_transaction.py deleted file mode 100644 index 57f5ba29..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_context_transaction.py +++ /dev/null @@ -1,79 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_context_transaction_protocol_enum import ( - EventStreamCloudEventContextTransactionProtocolEnum, -) -from .event_stream_cloud_event_context_transaction_response_mode_enum import ( - EventStreamCloudEventContextTransactionResponseModeEnum, -) -from .event_stream_cloud_event_context_transaction_response_type_item_enum import ( - EventStreamCloudEventContextTransactionResponseTypeItemEnum, -) - - -class EventStreamCloudEventContextTransaction(UniversalBaseModel): - """ - An auth transaction. - """ - - acr_values: typing.List[str] = pydantic.Field() - """ - acr_values in the request. - """ - - locale: str = pydantic.Field() - """ - The locale used for this transaction. - """ - - login_hint: typing.Optional[str] = pydantic.Field(default=None) - """ - Hint about the login identifier the user might use in this transaction. - """ - - prompt: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Instructions indicating whether the user may be prompted for re-authentication and consent. - """ - - protocol: typing.Optional[EventStreamCloudEventContextTransactionProtocolEnum] = None - redirect_uri: typing.Optional[str] = pydantic.Field(default=None) - """ - The URL to which the client will be redirected when the transaction completes. - """ - - requested_scopes: typing.List[str] = pydantic.Field() - """ - The scopes requested. - """ - - response_mode: typing.Optional[EventStreamCloudEventContextTransactionResponseModeEnum] = None - response_type: typing.Optional[typing.List[EventStreamCloudEventContextTransactionResponseTypeItemEnum]] = ( - pydantic.Field(default=None) - ) - """ - The kind of credential issued by this transaction. - """ - - state: typing.Optional[str] = pydantic.Field(default=None) - """ - The OAuth state parameter for this transaction. - """ - - ui_locales: typing.List[str] = pydantic.Field() - """ - The ui_locales requested for this transaction. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_context_transaction_protocol_enum.py b/src/auth0/management/types/event_stream_cloud_event_context_transaction_protocol_enum.py deleted file mode 100644 index 009d6ed8..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_context_transaction_protocol_enum.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventContextTransactionProtocolEnum = typing.Union[ - typing.Literal[ - "oidc-basic-profile", - "oidc-implicit-profile", - "oauth2-device-code", - "oauth2-resource-owner", - "oauth2-resource-owner-jwt-bearer", - "oauth2-password", - "oauth2-webauthn", - "oauth2-access-token", - "oauth2-refresh-token", - "oauth2-token-exchange", - "oidc-hybrid-profile", - "samlp", - "wsfed", - "wstrust-usernamemixed", - ], - typing.Any, -] diff --git a/src/auth0/management/types/event_stream_cloud_event_context_transaction_response_mode_enum.py b/src/auth0/management/types/event_stream_cloud_event_context_transaction_response_mode_enum.py deleted file mode 100644 index 2999557a..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_context_transaction_response_mode_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventContextTransactionResponseModeEnum = typing.Union[ - typing.Literal["query", "fragment", "form_post", "web_message"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_context_transaction_response_type_item_enum.py b/src/auth0/management/types/event_stream_cloud_event_context_transaction_response_type_item_enum.py deleted file mode 100644 index a2fb4260..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_context_transaction_response_type_item_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventContextTransactionResponseTypeItemEnum = typing.Union[ - typing.Literal["code", "token", "id_token"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_data.py b/src/auth0/management/types/event_stream_cloud_event_data.py deleted file mode 100644 index 3e462ac8..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_data.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventData = typing.Dict[str, typing.Any] -""" -Event contents. -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_error_code_enum.py b/src/auth0/management/types/event_stream_cloud_event_error_code_enum.py deleted file mode 100644 index 17b87523..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_error_code_enum.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventErrorCodeEnum = typing.Union[ - typing.Literal[ - "invalid_cursor", "cursor_expired", "timeout", "payload_too_large", "processing_error", "connection_timeout" - ], - typing.Any, -] diff --git a/src/auth0/management/types/event_stream_cloud_event_error_detail.py b/src/auth0/management/types/event_stream_cloud_event_error_detail.py deleted file mode 100644 index cb6ca654..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_error_detail.py +++ /dev/null @@ -1,33 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_error_code_enum import EventStreamCloudEventErrorCodeEnum - - -class EventStreamCloudEventErrorDetail(UniversalBaseModel): - """ - Error details. - """ - - code: EventStreamCloudEventErrorCodeEnum - message: str = pydantic.Field() - """ - Human-readable error message. - """ - - offset: typing.Optional[str] = pydantic.Field(default=None) - """ - The cursor at the time of the error (when available). Can be used to resume from this position. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_error_message.py b/src/auth0/management/types/event_stream_cloud_event_error_message.py deleted file mode 100644 index 9ffe0aa1..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_error_message.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_error_detail import EventStreamCloudEventErrorDetail - - -class EventStreamCloudEventErrorMessage(UniversalBaseModel): - """ - An error message delivered via the SSE stream. The stream closes after this message. - """ - - error: EventStreamCloudEventErrorDetail - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_error_message_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_error_message_type_enum.py deleted file mode 100644 index 40e15815..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_error_message_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventErrorMessageTypeEnum = typing.Union[typing.Literal["error"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_group_created.py b/src/auth0/management/types/event_stream_cloud_event_group_created.py deleted file mode 100644 index bcd61ac9..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_created.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_group_created_cloud_event import EventStreamCloudEventGroupCreatedCloudEvent - - -class EventStreamCloudEventGroupCreated(UniversalBaseModel): - """ - SSE message for group.created. - """ - - offset: str = pydantic.Field() - """ - Opaque cursor representing position in the stream. Pass as the `from` query parameter to resume. - """ - - event: EventStreamCloudEventGroupCreatedCloudEvent - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_created_cloud_event.py b/src/auth0/management/types/event_stream_cloud_event_group_created_cloud_event.py deleted file mode 100644 index 3725c514..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_created_cloud_event.py +++ /dev/null @@ -1,77 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_a_0_purpose_enum import EventStreamCloudEventA0PurposeEnum -from .event_stream_cloud_event_group_created_cloud_event_type_enum import ( - EventStreamCloudEventGroupCreatedCloudEventTypeEnum, -) -from .event_stream_cloud_event_group_created_data import EventStreamCloudEventGroupCreatedData -from .event_stream_cloud_event_spec_version_enum import EventStreamCloudEventSpecVersionEnum - - -class EventStreamCloudEventGroupCreatedCloudEvent(UniversalBaseModel): - """ - Represents an event that occurs when a group is created. - """ - - specversion: EventStreamCloudEventSpecVersionEnum - type: EventStreamCloudEventGroupCreatedCloudEventTypeEnum - source: str = pydantic.Field() - """ - The source of the event. This will take the form 'urn:auth0:.'. - """ - - id: str = pydantic.Field() - """ - A unique identifier for the event. - """ - - time: dt.datetime = pydantic.Field() - """ - An ISO-8601 timestamp indicating when the event physically occurred. - """ - - data: EventStreamCloudEventGroupCreatedData - a_0_tenant: typing_extensions.Annotated[ - str, - FieldMetadata(alias="a0tenant"), - pydantic.Field(alias="a0tenant", description="The auth0 tenant ID to which the event is associated."), - ] - """ - The auth0 tenant ID to which the event is associated. - """ - - a_0_stream: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="a0stream"), - pydantic.Field( - alias="a0stream", - description="The auth0 event stream ID of the stream the event was delivered on.\nPresent when the event is delivered via an event stream; omitted when\nevents are retrieved via the Events API (GET /api/v2/events).", - ), - ] = None - """ - The auth0 event stream ID of the stream the event was delivered on. - Present when the event is delivered via an event stream; omitted when - events are retrieved via the Events API (GET /api/v2/events). - """ - - a_0_purpose: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventA0PurposeEnum], - FieldMetadata(alias="a0purpose"), - pydantic.Field(alias="a0purpose"), - ] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_created_cloud_event_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_group_created_cloud_event_type_enum.py deleted file mode 100644 index 264978ee..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_created_cloud_event_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventGroupCreatedCloudEventTypeEnum = typing.Union[typing.Literal["group.created"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_group_created_data.py b/src/auth0/management/types/event_stream_cloud_event_group_created_data.py deleted file mode 100644 index ee4c72e3..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_created_data.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_context import EventStreamCloudEventContext -from .event_stream_cloud_event_group_created_object import EventStreamCloudEventGroupCreatedObject -from .event_stream_cloud_event_group_created_previous_object import EventStreamCloudEventGroupCreatedPreviousObject - - -class EventStreamCloudEventGroupCreatedData(UniversalBaseModel): - """ - The event payload. - """ - - object: EventStreamCloudEventGroupCreatedObject - previous_object: typing.Optional[EventStreamCloudEventGroupCreatedPreviousObject] = None - context: typing.Optional[EventStreamCloudEventContext] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_created_object.py b/src/auth0/management/types/event_stream_cloud_event_group_created_object.py deleted file mode 100644 index f43465ee..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_created_object.py +++ /dev/null @@ -1,13 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .event_stream_cloud_event_group_created_object_0 import EventStreamCloudEventGroupCreatedObject0 -from .event_stream_cloud_event_group_created_object_1 import EventStreamCloudEventGroupCreatedObject1 -from .event_stream_cloud_event_group_created_object_2 import EventStreamCloudEventGroupCreatedObject2 - -EventStreamCloudEventGroupCreatedObject = typing.Union[ - EventStreamCloudEventGroupCreatedObject0, - EventStreamCloudEventGroupCreatedObject1, - EventStreamCloudEventGroupCreatedObject2, -] diff --git a/src/auth0/management/types/event_stream_cloud_event_group_created_object_0.py b/src/auth0/management/types/event_stream_cloud_event_group_created_object_0.py deleted file mode 100644 index 15c50e6a..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_created_object_0.py +++ /dev/null @@ -1,49 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_group_created_object_0_type_enum import EventStreamCloudEventGroupCreatedObject0TypeEnum - - -class EventStreamCloudEventGroupCreatedObject0(UniversalBaseModel): - """ - Represents a connection group entity. - """ - - id: str = pydantic.Field() - """ - The unique identifier for the group. - """ - - name: str = pydantic.Field() - """ - The name of the group. - """ - - external_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The external identifier for the group. - """ - - created_at: dt.datetime = pydantic.Field() - """ - Date and time when this entity was created (ISO_8601 format). - """ - - type: EventStreamCloudEventGroupCreatedObject0TypeEnum - connection_id: str = pydantic.Field() - """ - The connection ID associated with the group. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_created_object_0_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_group_created_object_0_type_enum.py deleted file mode 100644 index dcf86a0e..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_created_object_0_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventGroupCreatedObject0TypeEnum = typing.Union[typing.Literal["connection"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_group_created_object_1.py b/src/auth0/management/types/event_stream_cloud_event_group_created_object_1.py deleted file mode 100644 index 8a4d9920..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_created_object_1.py +++ /dev/null @@ -1,49 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_group_created_object_1_type_enum import EventStreamCloudEventGroupCreatedObject1TypeEnum - - -class EventStreamCloudEventGroupCreatedObject1(UniversalBaseModel): - """ - Represents an organization group entity. - """ - - id: str = pydantic.Field() - """ - The unique identifier for the group. - """ - - name: str = pydantic.Field() - """ - The name of the group. - """ - - external_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The external identifier for the group. - """ - - created_at: dt.datetime = pydantic.Field() - """ - Date and time when this entity was created (ISO_8601 format). - """ - - type: EventStreamCloudEventGroupCreatedObject1TypeEnum - organization_id: str = pydantic.Field() - """ - The organization ID associated with the group. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_created_object_1_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_group_created_object_1_type_enum.py deleted file mode 100644 index 6e2a97d3..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_created_object_1_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventGroupCreatedObject1TypeEnum = typing.Union[typing.Literal["organization"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_group_created_object_2.py b/src/auth0/management/types/event_stream_cloud_event_group_created_object_2.py deleted file mode 100644 index 2f460920..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_created_object_2.py +++ /dev/null @@ -1,45 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_group_created_object_2_type_enum import EventStreamCloudEventGroupCreatedObject2TypeEnum - - -class EventStreamCloudEventGroupCreatedObject2(UniversalBaseModel): - """ - Represents a tenant group entity. - """ - - id: str = pydantic.Field() - """ - The unique identifier for the group. - """ - - name: str = pydantic.Field() - """ - The name of the group. - """ - - external_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The external identifier for the group. - """ - - created_at: dt.datetime = pydantic.Field() - """ - Date and time when this entity was created (ISO_8601 format). - """ - - type: EventStreamCloudEventGroupCreatedObject2TypeEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_created_object_2_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_group_created_object_2_type_enum.py deleted file mode 100644 index cbb93ff7..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_created_object_2_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventGroupCreatedObject2TypeEnum = typing.Union[typing.Literal["tenant"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_group_created_previous_object.py b/src/auth0/management/types/event_stream_cloud_event_group_created_previous_object.py deleted file mode 100644 index 439d4fc8..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_created_previous_object.py +++ /dev/null @@ -1,13 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .event_stream_cloud_event_group_created_previous_object_0 import EventStreamCloudEventGroupCreatedPreviousObject0 -from .event_stream_cloud_event_group_created_previous_object_1 import EventStreamCloudEventGroupCreatedPreviousObject1 -from .event_stream_cloud_event_group_created_previous_object_2 import EventStreamCloudEventGroupCreatedPreviousObject2 - -EventStreamCloudEventGroupCreatedPreviousObject = typing.Union[ - EventStreamCloudEventGroupCreatedPreviousObject0, - EventStreamCloudEventGroupCreatedPreviousObject1, - EventStreamCloudEventGroupCreatedPreviousObject2, -] diff --git a/src/auth0/management/types/event_stream_cloud_event_group_created_previous_object_0.py b/src/auth0/management/types/event_stream_cloud_event_group_created_previous_object_0.py deleted file mode 100644 index 73be0bcb..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_created_previous_object_0.py +++ /dev/null @@ -1,51 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_group_created_previous_object_0_type_enum import ( - EventStreamCloudEventGroupCreatedPreviousObject0TypeEnum, -) - - -class EventStreamCloudEventGroupCreatedPreviousObject0(UniversalBaseModel): - """ - Represents a connection group entity. - """ - - id: str = pydantic.Field() - """ - The unique identifier for the group. - """ - - name: str = pydantic.Field() - """ - The name of the group. - """ - - external_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The external identifier for the group. - """ - - created_at: dt.datetime = pydantic.Field() - """ - Date and time when this entity was created (ISO_8601 format). - """ - - type: EventStreamCloudEventGroupCreatedPreviousObject0TypeEnum - connection_id: str = pydantic.Field() - """ - The connection ID associated with the group. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_created_previous_object_0_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_group_created_previous_object_0_type_enum.py deleted file mode 100644 index 4bcc06bc..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_created_previous_object_0_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventGroupCreatedPreviousObject0TypeEnum = typing.Union[typing.Literal["connection"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_group_created_previous_object_1.py b/src/auth0/management/types/event_stream_cloud_event_group_created_previous_object_1.py deleted file mode 100644 index e1ff4365..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_created_previous_object_1.py +++ /dev/null @@ -1,51 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_group_created_previous_object_1_type_enum import ( - EventStreamCloudEventGroupCreatedPreviousObject1TypeEnum, -) - - -class EventStreamCloudEventGroupCreatedPreviousObject1(UniversalBaseModel): - """ - Represents an organization group entity. - """ - - id: str = pydantic.Field() - """ - The unique identifier for the group. - """ - - name: str = pydantic.Field() - """ - The name of the group. - """ - - external_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The external identifier for the group. - """ - - created_at: dt.datetime = pydantic.Field() - """ - Date and time when this entity was created (ISO_8601 format). - """ - - type: EventStreamCloudEventGroupCreatedPreviousObject1TypeEnum - organization_id: str = pydantic.Field() - """ - The organization ID associated with the group. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_created_previous_object_1_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_group_created_previous_object_1_type_enum.py deleted file mode 100644 index 119d3ef2..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_created_previous_object_1_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventGroupCreatedPreviousObject1TypeEnum = typing.Union[typing.Literal["organization"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_group_created_previous_object_2.py b/src/auth0/management/types/event_stream_cloud_event_group_created_previous_object_2.py deleted file mode 100644 index a8f6d0ec..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_created_previous_object_2.py +++ /dev/null @@ -1,47 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_group_created_previous_object_2_type_enum import ( - EventStreamCloudEventGroupCreatedPreviousObject2TypeEnum, -) - - -class EventStreamCloudEventGroupCreatedPreviousObject2(UniversalBaseModel): - """ - Represents a tenant group entity. - """ - - id: str = pydantic.Field() - """ - The unique identifier for the group. - """ - - name: str = pydantic.Field() - """ - The name of the group. - """ - - external_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The external identifier for the group. - """ - - created_at: dt.datetime = pydantic.Field() - """ - Date and time when this entity was created (ISO_8601 format). - """ - - type: EventStreamCloudEventGroupCreatedPreviousObject2TypeEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_created_previous_object_2_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_group_created_previous_object_2_type_enum.py deleted file mode 100644 index 043282fb..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_created_previous_object_2_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventGroupCreatedPreviousObject2TypeEnum = typing.Union[typing.Literal["tenant"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_group_created_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_group_created_type_enum.py deleted file mode 100644 index 633d9f0b..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_created_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventGroupCreatedTypeEnum = typing.Union[typing.Literal["group.created"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_group_deleted.py b/src/auth0/management/types/event_stream_cloud_event_group_deleted.py deleted file mode 100644 index 3c465ed6..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_deleted.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_group_deleted_cloud_event import EventStreamCloudEventGroupDeletedCloudEvent - - -class EventStreamCloudEventGroupDeleted(UniversalBaseModel): - """ - SSE message for group.deleted. - """ - - offset: str = pydantic.Field() - """ - Opaque cursor representing position in the stream. Pass as the `from` query parameter to resume. - """ - - event: EventStreamCloudEventGroupDeletedCloudEvent - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_deleted_cloud_event.py b/src/auth0/management/types/event_stream_cloud_event_group_deleted_cloud_event.py deleted file mode 100644 index ecea1104..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_deleted_cloud_event.py +++ /dev/null @@ -1,77 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_a_0_purpose_enum import EventStreamCloudEventA0PurposeEnum -from .event_stream_cloud_event_group_deleted_cloud_event_type_enum import ( - EventStreamCloudEventGroupDeletedCloudEventTypeEnum, -) -from .event_stream_cloud_event_group_deleted_data import EventStreamCloudEventGroupDeletedData -from .event_stream_cloud_event_spec_version_enum import EventStreamCloudEventSpecVersionEnum - - -class EventStreamCloudEventGroupDeletedCloudEvent(UniversalBaseModel): - """ - Represents an event that occurs when a group is deleted. - """ - - specversion: EventStreamCloudEventSpecVersionEnum - type: EventStreamCloudEventGroupDeletedCloudEventTypeEnum - source: str = pydantic.Field() - """ - The source of the event. This will take the form 'urn:auth0:.'. - """ - - id: str = pydantic.Field() - """ - A unique identifier for the event. - """ - - time: dt.datetime = pydantic.Field() - """ - An ISO-8601 timestamp indicating when the event physically occurred. - """ - - data: EventStreamCloudEventGroupDeletedData - a_0_tenant: typing_extensions.Annotated[ - str, - FieldMetadata(alias="a0tenant"), - pydantic.Field(alias="a0tenant", description="The auth0 tenant ID to which the event is associated."), - ] - """ - The auth0 tenant ID to which the event is associated. - """ - - a_0_stream: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="a0stream"), - pydantic.Field( - alias="a0stream", - description="The auth0 event stream ID of the stream the event was delivered on.\nPresent when the event is delivered via an event stream; omitted when\nevents are retrieved via the Events API (GET /api/v2/events).", - ), - ] = None - """ - The auth0 event stream ID of the stream the event was delivered on. - Present when the event is delivered via an event stream; omitted when - events are retrieved via the Events API (GET /api/v2/events). - """ - - a_0_purpose: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventA0PurposeEnum], - FieldMetadata(alias="a0purpose"), - pydantic.Field(alias="a0purpose"), - ] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_deleted_cloud_event_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_group_deleted_cloud_event_type_enum.py deleted file mode 100644 index ad13c871..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_deleted_cloud_event_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventGroupDeletedCloudEventTypeEnum = typing.Union[typing.Literal["group.deleted"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_group_deleted_data.py b/src/auth0/management/types/event_stream_cloud_event_group_deleted_data.py deleted file mode 100644 index 3414c150..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_deleted_data.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_context import EventStreamCloudEventContext -from .event_stream_cloud_event_group_deleted_object import EventStreamCloudEventGroupDeletedObject -from .event_stream_cloud_event_group_deleted_previous_object import EventStreamCloudEventGroupDeletedPreviousObject - - -class EventStreamCloudEventGroupDeletedData(UniversalBaseModel): - """ - The event payload. - """ - - object: EventStreamCloudEventGroupDeletedObject - previous_object: typing.Optional[EventStreamCloudEventGroupDeletedPreviousObject] = None - context: typing.Optional[EventStreamCloudEventContext] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_deleted_object.py b/src/auth0/management/types/event_stream_cloud_event_group_deleted_object.py deleted file mode 100644 index 30eb6933..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_deleted_object.py +++ /dev/null @@ -1,13 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .event_stream_cloud_event_group_deleted_object_0 import EventStreamCloudEventGroupDeletedObject0 -from .event_stream_cloud_event_group_deleted_object_1 import EventStreamCloudEventGroupDeletedObject1 -from .event_stream_cloud_event_group_deleted_object_2 import EventStreamCloudEventGroupDeletedObject2 - -EventStreamCloudEventGroupDeletedObject = typing.Union[ - EventStreamCloudEventGroupDeletedObject0, - EventStreamCloudEventGroupDeletedObject1, - EventStreamCloudEventGroupDeletedObject2, -] diff --git a/src/auth0/management/types/event_stream_cloud_event_group_deleted_object_0.py b/src/auth0/management/types/event_stream_cloud_event_group_deleted_object_0.py deleted file mode 100644 index 2ac30c96..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_deleted_object_0.py +++ /dev/null @@ -1,54 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_group_deleted_object_0_type_enum import EventStreamCloudEventGroupDeletedObject0TypeEnum - - -class EventStreamCloudEventGroupDeletedObject0(UniversalBaseModel): - """ - Connection group with updated_at timestamp - """ - - id: str = pydantic.Field() - """ - The unique identifier for the group. - """ - - name: str = pydantic.Field() - """ - The name of the group. - """ - - external_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The external identifier for the group. - """ - - created_at: dt.datetime = pydantic.Field() - """ - Date and time when this entity was created (ISO_8601 format). - """ - - type: EventStreamCloudEventGroupDeletedObject0TypeEnum - connection_id: str = pydantic.Field() - """ - The connection ID associated with the group. - """ - - updated_at: dt.datetime = pydantic.Field() - """ - Date and time when this entity was last updated/modified (ISO_8601 format). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_deleted_object_0_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_group_deleted_object_0_type_enum.py deleted file mode 100644 index ac08835b..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_deleted_object_0_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventGroupDeletedObject0TypeEnum = typing.Union[typing.Literal["connection"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_group_deleted_object_1.py b/src/auth0/management/types/event_stream_cloud_event_group_deleted_object_1.py deleted file mode 100644 index 3c6c4c7d..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_deleted_object_1.py +++ /dev/null @@ -1,54 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_group_deleted_object_1_type_enum import EventStreamCloudEventGroupDeletedObject1TypeEnum - - -class EventStreamCloudEventGroupDeletedObject1(UniversalBaseModel): - """ - Organization group with updated_at timestamp - """ - - id: str = pydantic.Field() - """ - The unique identifier for the group. - """ - - name: str = pydantic.Field() - """ - The name of the group. - """ - - external_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The external identifier for the group. - """ - - created_at: dt.datetime = pydantic.Field() - """ - Date and time when this entity was created (ISO_8601 format). - """ - - type: EventStreamCloudEventGroupDeletedObject1TypeEnum - organization_id: str = pydantic.Field() - """ - The organization ID associated with the group. - """ - - updated_at: dt.datetime = pydantic.Field() - """ - Date and time when this entity was last updated/modified (ISO_8601 format). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_deleted_object_1_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_group_deleted_object_1_type_enum.py deleted file mode 100644 index 48e6cd1c..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_deleted_object_1_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventGroupDeletedObject1TypeEnum = typing.Union[typing.Literal["organization"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_group_deleted_object_2.py b/src/auth0/management/types/event_stream_cloud_event_group_deleted_object_2.py deleted file mode 100644 index df07cf03..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_deleted_object_2.py +++ /dev/null @@ -1,49 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_group_deleted_object_2_type_enum import EventStreamCloudEventGroupDeletedObject2TypeEnum - - -class EventStreamCloudEventGroupDeletedObject2(UniversalBaseModel): - """ - Tenant group with updated_at timestamp - """ - - id: str = pydantic.Field() - """ - The unique identifier for the group. - """ - - name: str = pydantic.Field() - """ - The name of the group. - """ - - external_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The external identifier for the group. - """ - - created_at: dt.datetime = pydantic.Field() - """ - Date and time when this entity was created (ISO_8601 format). - """ - - type: EventStreamCloudEventGroupDeletedObject2TypeEnum - updated_at: dt.datetime = pydantic.Field() - """ - Date and time when this entity was last updated/modified (ISO_8601 format). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_deleted_object_2_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_group_deleted_object_2_type_enum.py deleted file mode 100644 index 796bae81..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_deleted_object_2_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventGroupDeletedObject2TypeEnum = typing.Union[typing.Literal["tenant"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_group_deleted_previous_object.py b/src/auth0/management/types/event_stream_cloud_event_group_deleted_previous_object.py deleted file mode 100644 index c13d3b5a..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_deleted_previous_object.py +++ /dev/null @@ -1,13 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .event_stream_cloud_event_group_deleted_previous_object_0 import EventStreamCloudEventGroupDeletedPreviousObject0 -from .event_stream_cloud_event_group_deleted_previous_object_1 import EventStreamCloudEventGroupDeletedPreviousObject1 -from .event_stream_cloud_event_group_deleted_previous_object_2 import EventStreamCloudEventGroupDeletedPreviousObject2 - -EventStreamCloudEventGroupDeletedPreviousObject = typing.Union[ - EventStreamCloudEventGroupDeletedPreviousObject0, - EventStreamCloudEventGroupDeletedPreviousObject1, - EventStreamCloudEventGroupDeletedPreviousObject2, -] diff --git a/src/auth0/management/types/event_stream_cloud_event_group_deleted_previous_object_0.py b/src/auth0/management/types/event_stream_cloud_event_group_deleted_previous_object_0.py deleted file mode 100644 index d4794c78..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_deleted_previous_object_0.py +++ /dev/null @@ -1,56 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_group_deleted_previous_object_0_type_enum import ( - EventStreamCloudEventGroupDeletedPreviousObject0TypeEnum, -) - - -class EventStreamCloudEventGroupDeletedPreviousObject0(UniversalBaseModel): - """ - Connection group with updated_at timestamp - """ - - id: str = pydantic.Field() - """ - The unique identifier for the group. - """ - - name: str = pydantic.Field() - """ - The name of the group. - """ - - external_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The external identifier for the group. - """ - - created_at: dt.datetime = pydantic.Field() - """ - Date and time when this entity was created (ISO_8601 format). - """ - - type: EventStreamCloudEventGroupDeletedPreviousObject0TypeEnum - connection_id: str = pydantic.Field() - """ - The connection ID associated with the group. - """ - - updated_at: dt.datetime = pydantic.Field() - """ - Date and time when this entity was last updated/modified (ISO_8601 format). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_deleted_previous_object_0_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_group_deleted_previous_object_0_type_enum.py deleted file mode 100644 index 9435bbd0..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_deleted_previous_object_0_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventGroupDeletedPreviousObject0TypeEnum = typing.Union[typing.Literal["connection"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_group_deleted_previous_object_1.py b/src/auth0/management/types/event_stream_cloud_event_group_deleted_previous_object_1.py deleted file mode 100644 index 1f9afd86..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_deleted_previous_object_1.py +++ /dev/null @@ -1,56 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_group_deleted_previous_object_1_type_enum import ( - EventStreamCloudEventGroupDeletedPreviousObject1TypeEnum, -) - - -class EventStreamCloudEventGroupDeletedPreviousObject1(UniversalBaseModel): - """ - Organization group with updated_at timestamp - """ - - id: str = pydantic.Field() - """ - The unique identifier for the group. - """ - - name: str = pydantic.Field() - """ - The name of the group. - """ - - external_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The external identifier for the group. - """ - - created_at: dt.datetime = pydantic.Field() - """ - Date and time when this entity was created (ISO_8601 format). - """ - - type: EventStreamCloudEventGroupDeletedPreviousObject1TypeEnum - organization_id: str = pydantic.Field() - """ - The organization ID associated with the group. - """ - - updated_at: dt.datetime = pydantic.Field() - """ - Date and time when this entity was last updated/modified (ISO_8601 format). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_deleted_previous_object_1_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_group_deleted_previous_object_1_type_enum.py deleted file mode 100644 index fbb2375b..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_deleted_previous_object_1_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventGroupDeletedPreviousObject1TypeEnum = typing.Union[typing.Literal["organization"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_group_deleted_previous_object_2.py b/src/auth0/management/types/event_stream_cloud_event_group_deleted_previous_object_2.py deleted file mode 100644 index 8941065a..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_deleted_previous_object_2.py +++ /dev/null @@ -1,51 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_group_deleted_previous_object_2_type_enum import ( - EventStreamCloudEventGroupDeletedPreviousObject2TypeEnum, -) - - -class EventStreamCloudEventGroupDeletedPreviousObject2(UniversalBaseModel): - """ - Tenant group with updated_at timestamp - """ - - id: str = pydantic.Field() - """ - The unique identifier for the group. - """ - - name: str = pydantic.Field() - """ - The name of the group. - """ - - external_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The external identifier for the group. - """ - - created_at: dt.datetime = pydantic.Field() - """ - Date and time when this entity was created (ISO_8601 format). - """ - - type: EventStreamCloudEventGroupDeletedPreviousObject2TypeEnum - updated_at: dt.datetime = pydantic.Field() - """ - Date and time when this entity was last updated/modified (ISO_8601 format). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_deleted_previous_object_2_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_group_deleted_previous_object_2_type_enum.py deleted file mode 100644 index c02e6c67..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_deleted_previous_object_2_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventGroupDeletedPreviousObject2TypeEnum = typing.Union[typing.Literal["tenant"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_group_deleted_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_group_deleted_type_enum.py deleted file mode 100644 index 14e88a34..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_deleted_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventGroupDeletedTypeEnum = typing.Union[typing.Literal["group.deleted"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_group_member_added.py b/src/auth0/management/types/event_stream_cloud_event_group_member_added.py deleted file mode 100644 index 1d4a8a9f..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_member_added.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_group_member_added_cloud_event import EventStreamCloudEventGroupMemberAddedCloudEvent - - -class EventStreamCloudEventGroupMemberAdded(UniversalBaseModel): - """ - SSE message for group.member.added. - """ - - offset: str = pydantic.Field() - """ - Opaque cursor representing position in the stream. Pass as the `from` query parameter to resume. - """ - - event: EventStreamCloudEventGroupMemberAddedCloudEvent - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_member_added_cloud_event.py b/src/auth0/management/types/event_stream_cloud_event_group_member_added_cloud_event.py deleted file mode 100644 index 490bc035..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_member_added_cloud_event.py +++ /dev/null @@ -1,77 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_a_0_purpose_enum import EventStreamCloudEventA0PurposeEnum -from .event_stream_cloud_event_group_member_added_cloud_event_type_enum import ( - EventStreamCloudEventGroupMemberAddedCloudEventTypeEnum, -) -from .event_stream_cloud_event_group_member_added_data import EventStreamCloudEventGroupMemberAddedData -from .event_stream_cloud_event_spec_version_enum import EventStreamCloudEventSpecVersionEnum - - -class EventStreamCloudEventGroupMemberAddedCloudEvent(UniversalBaseModel): - """ - Represents an event that occurs when a member is added to a group. - """ - - specversion: EventStreamCloudEventSpecVersionEnum - type: EventStreamCloudEventGroupMemberAddedCloudEventTypeEnum - source: str = pydantic.Field() - """ - The source of the event. This will take the form 'urn:auth0:.'. - """ - - id: str = pydantic.Field() - """ - A unique identifier for the event. - """ - - time: dt.datetime = pydantic.Field() - """ - An ISO-8601 timestamp indicating when the event physically occurred. - """ - - data: EventStreamCloudEventGroupMemberAddedData - a_0_tenant: typing_extensions.Annotated[ - str, - FieldMetadata(alias="a0tenant"), - pydantic.Field(alias="a0tenant", description="The auth0 tenant ID to which the event is associated."), - ] - """ - The auth0 tenant ID to which the event is associated. - """ - - a_0_stream: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="a0stream"), - pydantic.Field( - alias="a0stream", - description="The auth0 event stream ID of the stream the event was delivered on.\nPresent when the event is delivered via an event stream; omitted when\nevents are retrieved via the Events API (GET /api/v2/events).", - ), - ] = None - """ - The auth0 event stream ID of the stream the event was delivered on. - Present when the event is delivered via an event stream; omitted when - events are retrieved via the Events API (GET /api/v2/events). - """ - - a_0_purpose: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventA0PurposeEnum], - FieldMetadata(alias="a0purpose"), - pydantic.Field(alias="a0purpose"), - ] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_member_added_cloud_event_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_group_member_added_cloud_event_type_enum.py deleted file mode 100644 index 93d3b440..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_member_added_cloud_event_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventGroupMemberAddedCloudEventTypeEnum = typing.Union[typing.Literal["group.member.added"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_group_member_added_data.py b/src/auth0/management/types/event_stream_cloud_event_group_member_added_data.py deleted file mode 100644 index 4c110ab2..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_member_added_data.py +++ /dev/null @@ -1,30 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_context import EventStreamCloudEventContext -from .event_stream_cloud_event_group_member_added_object import EventStreamCloudEventGroupMemberAddedObject -from .event_stream_cloud_event_group_member_added_previous_object import ( - EventStreamCloudEventGroupMemberAddedPreviousObject, -) - - -class EventStreamCloudEventGroupMemberAddedData(UniversalBaseModel): - """ - The event payload. - """ - - object: EventStreamCloudEventGroupMemberAddedObject - previous_object: typing.Optional[EventStreamCloudEventGroupMemberAddedPreviousObject] = None - context: typing.Optional[EventStreamCloudEventContext] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_member_added_object.py b/src/auth0/management/types/event_stream_cloud_event_group_member_added_object.py deleted file mode 100644 index cd3bbe78..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_member_added_object.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_group_member_added_object_group import EventStreamCloudEventGroupMemberAddedObjectGroup -from .event_stream_cloud_event_group_member_added_object_member import EventStreamCloudEventGroupMemberAddedObjectMember - - -class EventStreamCloudEventGroupMemberAddedObject(UniversalBaseModel): - """ - The event content. - """ - - group: EventStreamCloudEventGroupMemberAddedObjectGroup - member: EventStreamCloudEventGroupMemberAddedObjectMember - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_member_added_object_group.py b/src/auth0/management/types/event_stream_cloud_event_group_member_added_object_group.py deleted file mode 100644 index 421066b6..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_member_added_object_group.py +++ /dev/null @@ -1,19 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .event_stream_cloud_event_group_member_added_object_group_0 import ( - EventStreamCloudEventGroupMemberAddedObjectGroup0, -) -from .event_stream_cloud_event_group_member_added_object_group_1 import ( - EventStreamCloudEventGroupMemberAddedObjectGroup1, -) -from .event_stream_cloud_event_group_member_added_object_group_2 import ( - EventStreamCloudEventGroupMemberAddedObjectGroup2, -) - -EventStreamCloudEventGroupMemberAddedObjectGroup = typing.Union[ - EventStreamCloudEventGroupMemberAddedObjectGroup0, - EventStreamCloudEventGroupMemberAddedObjectGroup1, - EventStreamCloudEventGroupMemberAddedObjectGroup2, -] diff --git a/src/auth0/management/types/event_stream_cloud_event_group_member_added_object_group_0.py b/src/auth0/management/types/event_stream_cloud_event_group_member_added_object_group_0.py deleted file mode 100644 index 1c124923..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_member_added_object_group_0.py +++ /dev/null @@ -1,40 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_group_member_added_object_group_0_type_enum import ( - EventStreamCloudEventGroupMemberAddedObjectGroup0TypeEnum, -) - - -class EventStreamCloudEventGroupMemberAddedObjectGroup0(UniversalBaseModel): - """ - Reference to a connection group - """ - - id: str = pydantic.Field() - """ - The unique identifier for the group. - """ - - external_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The external identifier for the group. - """ - - type: EventStreamCloudEventGroupMemberAddedObjectGroup0TypeEnum - connection_id: str = pydantic.Field() - """ - The connection ID associated with the group. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_member_added_object_group_0_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_group_member_added_object_group_0_type_enum.py deleted file mode 100644 index 52c22818..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_member_added_object_group_0_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventGroupMemberAddedObjectGroup0TypeEnum = typing.Union[typing.Literal["connection"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_group_member_added_object_group_1.py b/src/auth0/management/types/event_stream_cloud_event_group_member_added_object_group_1.py deleted file mode 100644 index 64ee5fc6..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_member_added_object_group_1.py +++ /dev/null @@ -1,40 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_group_member_added_object_group_1_type_enum import ( - EventStreamCloudEventGroupMemberAddedObjectGroup1TypeEnum, -) - - -class EventStreamCloudEventGroupMemberAddedObjectGroup1(UniversalBaseModel): - """ - Reference to an organization group - """ - - id: str = pydantic.Field() - """ - The unique identifier for the group. - """ - - external_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The external identifier for the group. - """ - - type: EventStreamCloudEventGroupMemberAddedObjectGroup1TypeEnum - organization_id: str = pydantic.Field() - """ - The organization ID associated with the group. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_member_added_object_group_1_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_group_member_added_object_group_1_type_enum.py deleted file mode 100644 index 57c0258f..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_member_added_object_group_1_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventGroupMemberAddedObjectGroup1TypeEnum = typing.Union[typing.Literal["organization"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_group_member_added_object_group_2.py b/src/auth0/management/types/event_stream_cloud_event_group_member_added_object_group_2.py deleted file mode 100644 index c0a7eb76..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_member_added_object_group_2.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_group_member_added_object_group_2_type_enum import ( - EventStreamCloudEventGroupMemberAddedObjectGroup2TypeEnum, -) - - -class EventStreamCloudEventGroupMemberAddedObjectGroup2(UniversalBaseModel): - """ - Reference to a tenant group - """ - - id: str = pydantic.Field() - """ - The unique identifier for the group. - """ - - external_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The external identifier for the group. - """ - - type: EventStreamCloudEventGroupMemberAddedObjectGroup2TypeEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_member_added_object_group_2_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_group_member_added_object_group_2_type_enum.py deleted file mode 100644 index ede863bb..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_member_added_object_group_2_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventGroupMemberAddedObjectGroup2TypeEnum = typing.Union[typing.Literal["tenant"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_group_member_added_object_member.py b/src/auth0/management/types/event_stream_cloud_event_group_member_added_object_member.py deleted file mode 100644 index 46b788cd..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_member_added_object_member.py +++ /dev/null @@ -1,14 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .event_stream_cloud_event_group_member_added_object_member_0 import ( - EventStreamCloudEventGroupMemberAddedObjectMember0, -) -from .event_stream_cloud_event_group_member_added_object_member_1 import ( - EventStreamCloudEventGroupMemberAddedObjectMember1, -) - -EventStreamCloudEventGroupMemberAddedObjectMember = typing.Union[ - EventStreamCloudEventGroupMemberAddedObjectMember0, EventStreamCloudEventGroupMemberAddedObjectMember1 -] diff --git a/src/auth0/management/types/event_stream_cloud_event_group_member_added_object_member_0.py b/src/auth0/management/types/event_stream_cloud_event_group_member_added_object_member_0.py deleted file mode 100644 index 37a4ded4..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_member_added_object_member_0.py +++ /dev/null @@ -1,30 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_group_member_added_object_member_0_member_type_enum import ( - EventStreamCloudEventGroupMemberAddedObjectMember0MemberTypeEnum, -) - - -class EventStreamCloudEventGroupMemberAddedObjectMember0(UniversalBaseModel): - """ - A group member of member_type user - """ - - member_type: EventStreamCloudEventGroupMemberAddedObjectMember0MemberTypeEnum - id: str = pydantic.Field() - """ - The user's unique identifier - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_member_added_object_member_0_member_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_group_member_added_object_member_0_member_type_enum.py deleted file mode 100644 index ad414951..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_member_added_object_member_0_member_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventGroupMemberAddedObjectMember0MemberTypeEnum = typing.Union[typing.Literal["user"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_group_member_added_object_member_1.py b/src/auth0/management/types/event_stream_cloud_event_group_member_added_object_member_1.py deleted file mode 100644 index 6d12c8e7..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_member_added_object_member_1.py +++ /dev/null @@ -1,40 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_group_member_added_object_member_1_member_type_enum import ( - EventStreamCloudEventGroupMemberAddedObjectMember1MemberTypeEnum, -) - - -class EventStreamCloudEventGroupMemberAddedObjectMember1(UniversalBaseModel): - """ - A group member of member_type group - """ - - member_type: EventStreamCloudEventGroupMemberAddedObjectMember1MemberTypeEnum - id: str = pydantic.Field() - """ - The connection member's unique identifier - """ - - type: str = pydantic.Field() - """ - The type of the connection - """ - - connection_id: str = pydantic.Field() - """ - Connection ID associated with the member - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_member_added_object_member_1_member_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_group_member_added_object_member_1_member_type_enum.py deleted file mode 100644 index 3dfe9ad2..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_member_added_object_member_1_member_type_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventGroupMemberAddedObjectMember1MemberTypeEnum = typing.Union[ - typing.Literal["connection"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_group_member_added_previous_object.py b/src/auth0/management/types/event_stream_cloud_event_group_member_added_previous_object.py deleted file mode 100644 index a152e313..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_member_added_previous_object.py +++ /dev/null @@ -1,30 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_group_member_added_previous_object_group import ( - EventStreamCloudEventGroupMemberAddedPreviousObjectGroup, -) -from .event_stream_cloud_event_group_member_added_previous_object_member import ( - EventStreamCloudEventGroupMemberAddedPreviousObjectMember, -) - - -class EventStreamCloudEventGroupMemberAddedPreviousObject(UniversalBaseModel): - """ - The event content as it was prior to the change described by this event, when applicable. - """ - - group: EventStreamCloudEventGroupMemberAddedPreviousObjectGroup - member: EventStreamCloudEventGroupMemberAddedPreviousObjectMember - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_member_added_previous_object_group.py b/src/auth0/management/types/event_stream_cloud_event_group_member_added_previous_object_group.py deleted file mode 100644 index c9d2ee53..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_member_added_previous_object_group.py +++ /dev/null @@ -1,19 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .event_stream_cloud_event_group_member_added_previous_object_group_0 import ( - EventStreamCloudEventGroupMemberAddedPreviousObjectGroup0, -) -from .event_stream_cloud_event_group_member_added_previous_object_group_1 import ( - EventStreamCloudEventGroupMemberAddedPreviousObjectGroup1, -) -from .event_stream_cloud_event_group_member_added_previous_object_group_2 import ( - EventStreamCloudEventGroupMemberAddedPreviousObjectGroup2, -) - -EventStreamCloudEventGroupMemberAddedPreviousObjectGroup = typing.Union[ - EventStreamCloudEventGroupMemberAddedPreviousObjectGroup0, - EventStreamCloudEventGroupMemberAddedPreviousObjectGroup1, - EventStreamCloudEventGroupMemberAddedPreviousObjectGroup2, -] diff --git a/src/auth0/management/types/event_stream_cloud_event_group_member_added_previous_object_group_0.py b/src/auth0/management/types/event_stream_cloud_event_group_member_added_previous_object_group_0.py deleted file mode 100644 index 2894fd52..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_member_added_previous_object_group_0.py +++ /dev/null @@ -1,40 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_group_member_added_previous_object_group_0_type_enum import ( - EventStreamCloudEventGroupMemberAddedPreviousObjectGroup0TypeEnum, -) - - -class EventStreamCloudEventGroupMemberAddedPreviousObjectGroup0(UniversalBaseModel): - """ - Reference to a connection group - """ - - id: str = pydantic.Field() - """ - The unique identifier for the group. - """ - - external_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The external identifier for the group. - """ - - type: EventStreamCloudEventGroupMemberAddedPreviousObjectGroup0TypeEnum - connection_id: str = pydantic.Field() - """ - The connection ID associated with the group. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_member_added_previous_object_group_0_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_group_member_added_previous_object_group_0_type_enum.py deleted file mode 100644 index 38b3cc05..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_member_added_previous_object_group_0_type_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventGroupMemberAddedPreviousObjectGroup0TypeEnum = typing.Union[ - typing.Literal["connection"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_group_member_added_previous_object_group_1.py b/src/auth0/management/types/event_stream_cloud_event_group_member_added_previous_object_group_1.py deleted file mode 100644 index 7fca221c..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_member_added_previous_object_group_1.py +++ /dev/null @@ -1,40 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_group_member_added_previous_object_group_1_type_enum import ( - EventStreamCloudEventGroupMemberAddedPreviousObjectGroup1TypeEnum, -) - - -class EventStreamCloudEventGroupMemberAddedPreviousObjectGroup1(UniversalBaseModel): - """ - Reference to an organization group - """ - - id: str = pydantic.Field() - """ - The unique identifier for the group. - """ - - external_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The external identifier for the group. - """ - - type: EventStreamCloudEventGroupMemberAddedPreviousObjectGroup1TypeEnum - organization_id: str = pydantic.Field() - """ - The organization ID associated with the group. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_member_added_previous_object_group_1_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_group_member_added_previous_object_group_1_type_enum.py deleted file mode 100644 index f6f7241d..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_member_added_previous_object_group_1_type_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventGroupMemberAddedPreviousObjectGroup1TypeEnum = typing.Union[ - typing.Literal["organization"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_group_member_added_previous_object_group_2.py b/src/auth0/management/types/event_stream_cloud_event_group_member_added_previous_object_group_2.py deleted file mode 100644 index 8708b3f7..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_member_added_previous_object_group_2.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_group_member_added_previous_object_group_2_type_enum import ( - EventStreamCloudEventGroupMemberAddedPreviousObjectGroup2TypeEnum, -) - - -class EventStreamCloudEventGroupMemberAddedPreviousObjectGroup2(UniversalBaseModel): - """ - Reference to a tenant group - """ - - id: str = pydantic.Field() - """ - The unique identifier for the group. - """ - - external_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The external identifier for the group. - """ - - type: EventStreamCloudEventGroupMemberAddedPreviousObjectGroup2TypeEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_member_added_previous_object_group_2_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_group_member_added_previous_object_group_2_type_enum.py deleted file mode 100644 index 085db915..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_member_added_previous_object_group_2_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventGroupMemberAddedPreviousObjectGroup2TypeEnum = typing.Union[typing.Literal["tenant"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_group_member_added_previous_object_member.py b/src/auth0/management/types/event_stream_cloud_event_group_member_added_previous_object_member.py deleted file mode 100644 index a7387172..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_member_added_previous_object_member.py +++ /dev/null @@ -1,15 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .event_stream_cloud_event_group_member_added_previous_object_member_0 import ( - EventStreamCloudEventGroupMemberAddedPreviousObjectMember0, -) -from .event_stream_cloud_event_group_member_added_previous_object_member_1 import ( - EventStreamCloudEventGroupMemberAddedPreviousObjectMember1, -) - -EventStreamCloudEventGroupMemberAddedPreviousObjectMember = typing.Union[ - EventStreamCloudEventGroupMemberAddedPreviousObjectMember0, - EventStreamCloudEventGroupMemberAddedPreviousObjectMember1, -] diff --git a/src/auth0/management/types/event_stream_cloud_event_group_member_added_previous_object_member_0.py b/src/auth0/management/types/event_stream_cloud_event_group_member_added_previous_object_member_0.py deleted file mode 100644 index 91fdd90d..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_member_added_previous_object_member_0.py +++ /dev/null @@ -1,30 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_group_member_added_previous_object_member_0_member_type_enum import ( - EventStreamCloudEventGroupMemberAddedPreviousObjectMember0MemberTypeEnum, -) - - -class EventStreamCloudEventGroupMemberAddedPreviousObjectMember0(UniversalBaseModel): - """ - A group member of member_type user - """ - - member_type: EventStreamCloudEventGroupMemberAddedPreviousObjectMember0MemberTypeEnum - id: str = pydantic.Field() - """ - The user's unique identifier - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_member_added_previous_object_member_0_member_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_group_member_added_previous_object_member_0_member_type_enum.py deleted file mode 100644 index e62084f2..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_member_added_previous_object_member_0_member_type_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventGroupMemberAddedPreviousObjectMember0MemberTypeEnum = typing.Union[ - typing.Literal["user"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_group_member_added_previous_object_member_1.py b/src/auth0/management/types/event_stream_cloud_event_group_member_added_previous_object_member_1.py deleted file mode 100644 index ffbb479d..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_member_added_previous_object_member_1.py +++ /dev/null @@ -1,40 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_group_member_added_previous_object_member_1_member_type_enum import ( - EventStreamCloudEventGroupMemberAddedPreviousObjectMember1MemberTypeEnum, -) - - -class EventStreamCloudEventGroupMemberAddedPreviousObjectMember1(UniversalBaseModel): - """ - A group member of member_type group - """ - - member_type: EventStreamCloudEventGroupMemberAddedPreviousObjectMember1MemberTypeEnum - id: str = pydantic.Field() - """ - The connection member's unique identifier - """ - - type: str = pydantic.Field() - """ - The type of the connection - """ - - connection_id: str = pydantic.Field() - """ - Connection ID associated with the member - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_member_added_previous_object_member_1_member_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_group_member_added_previous_object_member_1_member_type_enum.py deleted file mode 100644 index 6114f9ad..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_member_added_previous_object_member_1_member_type_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventGroupMemberAddedPreviousObjectMember1MemberTypeEnum = typing.Union[ - typing.Literal["connection"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_group_member_added_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_group_member_added_type_enum.py deleted file mode 100644 index a664f668..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_member_added_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventGroupMemberAddedTypeEnum = typing.Union[typing.Literal["group.member.added"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_group_member_deleted.py b/src/auth0/management/types/event_stream_cloud_event_group_member_deleted.py deleted file mode 100644 index 6daac122..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_member_deleted.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_group_member_deleted_cloud_event import EventStreamCloudEventGroupMemberDeletedCloudEvent - - -class EventStreamCloudEventGroupMemberDeleted(UniversalBaseModel): - """ - SSE message for group.member.deleted. - """ - - offset: str = pydantic.Field() - """ - Opaque cursor representing position in the stream. Pass as the `from` query parameter to resume. - """ - - event: EventStreamCloudEventGroupMemberDeletedCloudEvent - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_cloud_event.py b/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_cloud_event.py deleted file mode 100644 index 8fa80793..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_cloud_event.py +++ /dev/null @@ -1,77 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_a_0_purpose_enum import EventStreamCloudEventA0PurposeEnum -from .event_stream_cloud_event_group_member_deleted_cloud_event_type_enum import ( - EventStreamCloudEventGroupMemberDeletedCloudEventTypeEnum, -) -from .event_stream_cloud_event_group_member_deleted_data import EventStreamCloudEventGroupMemberDeletedData -from .event_stream_cloud_event_spec_version_enum import EventStreamCloudEventSpecVersionEnum - - -class EventStreamCloudEventGroupMemberDeletedCloudEvent(UniversalBaseModel): - """ - Represents an event that occurs when a member is removed from a group. - """ - - specversion: EventStreamCloudEventSpecVersionEnum - type: EventStreamCloudEventGroupMemberDeletedCloudEventTypeEnum - source: str = pydantic.Field() - """ - The source of the event. This will take the form 'urn:auth0:.'. - """ - - id: str = pydantic.Field() - """ - A unique identifier for the event. - """ - - time: dt.datetime = pydantic.Field() - """ - An ISO-8601 timestamp indicating when the event physically occurred. - """ - - data: EventStreamCloudEventGroupMemberDeletedData - a_0_tenant: typing_extensions.Annotated[ - str, - FieldMetadata(alias="a0tenant"), - pydantic.Field(alias="a0tenant", description="The auth0 tenant ID to which the event is associated."), - ] - """ - The auth0 tenant ID to which the event is associated. - """ - - a_0_stream: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="a0stream"), - pydantic.Field( - alias="a0stream", - description="The auth0 event stream ID of the stream the event was delivered on.\nPresent when the event is delivered via an event stream; omitted when\nevents are retrieved via the Events API (GET /api/v2/events).", - ), - ] = None - """ - The auth0 event stream ID of the stream the event was delivered on. - Present when the event is delivered via an event stream; omitted when - events are retrieved via the Events API (GET /api/v2/events). - """ - - a_0_purpose: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventA0PurposeEnum], - FieldMetadata(alias="a0purpose"), - pydantic.Field(alias="a0purpose"), - ] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_cloud_event_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_cloud_event_type_enum.py deleted file mode 100644 index 64909960..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_cloud_event_type_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventGroupMemberDeletedCloudEventTypeEnum = typing.Union[ - typing.Literal["group.member.deleted"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_data.py b/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_data.py deleted file mode 100644 index 9c78a44b..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_data.py +++ /dev/null @@ -1,30 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_context import EventStreamCloudEventContext -from .event_stream_cloud_event_group_member_deleted_object import EventStreamCloudEventGroupMemberDeletedObject -from .event_stream_cloud_event_group_member_deleted_previous_object import ( - EventStreamCloudEventGroupMemberDeletedPreviousObject, -) - - -class EventStreamCloudEventGroupMemberDeletedData(UniversalBaseModel): - """ - The event payload. - """ - - object: EventStreamCloudEventGroupMemberDeletedObject - previous_object: typing.Optional[EventStreamCloudEventGroupMemberDeletedPreviousObject] = None - context: typing.Optional[EventStreamCloudEventContext] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_object.py b/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_object.py deleted file mode 100644 index cc74ac82..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_object.py +++ /dev/null @@ -1,30 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_group_member_deleted_object_group import ( - EventStreamCloudEventGroupMemberDeletedObjectGroup, -) -from .event_stream_cloud_event_group_member_deleted_object_member import ( - EventStreamCloudEventGroupMemberDeletedObjectMember, -) - - -class EventStreamCloudEventGroupMemberDeletedObject(UniversalBaseModel): - """ - The event content. - """ - - group: EventStreamCloudEventGroupMemberDeletedObjectGroup - member: EventStreamCloudEventGroupMemberDeletedObjectMember - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_object_group.py b/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_object_group.py deleted file mode 100644 index feedcf0d..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_object_group.py +++ /dev/null @@ -1,19 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .event_stream_cloud_event_group_member_deleted_object_group_0 import ( - EventStreamCloudEventGroupMemberDeletedObjectGroup0, -) -from .event_stream_cloud_event_group_member_deleted_object_group_1 import ( - EventStreamCloudEventGroupMemberDeletedObjectGroup1, -) -from .event_stream_cloud_event_group_member_deleted_object_group_2 import ( - EventStreamCloudEventGroupMemberDeletedObjectGroup2, -) - -EventStreamCloudEventGroupMemberDeletedObjectGroup = typing.Union[ - EventStreamCloudEventGroupMemberDeletedObjectGroup0, - EventStreamCloudEventGroupMemberDeletedObjectGroup1, - EventStreamCloudEventGroupMemberDeletedObjectGroup2, -] diff --git a/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_object_group_0.py b/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_object_group_0.py deleted file mode 100644 index ea5d0780..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_object_group_0.py +++ /dev/null @@ -1,40 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_group_member_deleted_object_group_0_type_enum import ( - EventStreamCloudEventGroupMemberDeletedObjectGroup0TypeEnum, -) - - -class EventStreamCloudEventGroupMemberDeletedObjectGroup0(UniversalBaseModel): - """ - Reference to a connection group - """ - - id: str = pydantic.Field() - """ - The unique identifier for the group. - """ - - external_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The external identifier for the group. - """ - - type: EventStreamCloudEventGroupMemberDeletedObjectGroup0TypeEnum - connection_id: str = pydantic.Field() - """ - The connection ID associated with the group. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_object_group_0_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_object_group_0_type_enum.py deleted file mode 100644 index 73d376d4..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_object_group_0_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventGroupMemberDeletedObjectGroup0TypeEnum = typing.Union[typing.Literal["connection"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_object_group_1.py b/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_object_group_1.py deleted file mode 100644 index 9986c250..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_object_group_1.py +++ /dev/null @@ -1,40 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_group_member_deleted_object_group_1_type_enum import ( - EventStreamCloudEventGroupMemberDeletedObjectGroup1TypeEnum, -) - - -class EventStreamCloudEventGroupMemberDeletedObjectGroup1(UniversalBaseModel): - """ - Reference to an organization group - """ - - id: str = pydantic.Field() - """ - The unique identifier for the group. - """ - - external_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The external identifier for the group. - """ - - type: EventStreamCloudEventGroupMemberDeletedObjectGroup1TypeEnum - organization_id: str = pydantic.Field() - """ - The organization ID associated with the group. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_object_group_1_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_object_group_1_type_enum.py deleted file mode 100644 index f299236a..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_object_group_1_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventGroupMemberDeletedObjectGroup1TypeEnum = typing.Union[typing.Literal["organization"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_object_group_2.py b/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_object_group_2.py deleted file mode 100644 index a2e27f0c..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_object_group_2.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_group_member_deleted_object_group_2_type_enum import ( - EventStreamCloudEventGroupMemberDeletedObjectGroup2TypeEnum, -) - - -class EventStreamCloudEventGroupMemberDeletedObjectGroup2(UniversalBaseModel): - """ - Reference to a tenant group - """ - - id: str = pydantic.Field() - """ - The unique identifier for the group. - """ - - external_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The external identifier for the group. - """ - - type: EventStreamCloudEventGroupMemberDeletedObjectGroup2TypeEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_object_group_2_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_object_group_2_type_enum.py deleted file mode 100644 index 4961ab25..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_object_group_2_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventGroupMemberDeletedObjectGroup2TypeEnum = typing.Union[typing.Literal["tenant"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_object_member.py b/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_object_member.py deleted file mode 100644 index 26a3a19a..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_object_member.py +++ /dev/null @@ -1,14 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .event_stream_cloud_event_group_member_deleted_object_member_0 import ( - EventStreamCloudEventGroupMemberDeletedObjectMember0, -) -from .event_stream_cloud_event_group_member_deleted_object_member_1 import ( - EventStreamCloudEventGroupMemberDeletedObjectMember1, -) - -EventStreamCloudEventGroupMemberDeletedObjectMember = typing.Union[ - EventStreamCloudEventGroupMemberDeletedObjectMember0, EventStreamCloudEventGroupMemberDeletedObjectMember1 -] diff --git a/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_object_member_0.py b/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_object_member_0.py deleted file mode 100644 index c459f51e..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_object_member_0.py +++ /dev/null @@ -1,30 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_group_member_deleted_object_member_0_member_type_enum import ( - EventStreamCloudEventGroupMemberDeletedObjectMember0MemberTypeEnum, -) - - -class EventStreamCloudEventGroupMemberDeletedObjectMember0(UniversalBaseModel): - """ - A group member of member_type user - """ - - member_type: EventStreamCloudEventGroupMemberDeletedObjectMember0MemberTypeEnum - id: str = pydantic.Field() - """ - The user's unique identifier - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_object_member_0_member_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_object_member_0_member_type_enum.py deleted file mode 100644 index a6cd72c1..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_object_member_0_member_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventGroupMemberDeletedObjectMember0MemberTypeEnum = typing.Union[typing.Literal["user"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_object_member_1.py b/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_object_member_1.py deleted file mode 100644 index da70bd85..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_object_member_1.py +++ /dev/null @@ -1,40 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_group_member_deleted_object_member_1_member_type_enum import ( - EventStreamCloudEventGroupMemberDeletedObjectMember1MemberTypeEnum, -) - - -class EventStreamCloudEventGroupMemberDeletedObjectMember1(UniversalBaseModel): - """ - A group member of member_type group - """ - - member_type: EventStreamCloudEventGroupMemberDeletedObjectMember1MemberTypeEnum - id: str = pydantic.Field() - """ - The connection member's unique identifier - """ - - type: str = pydantic.Field() - """ - The type of the connection - """ - - connection_id: str = pydantic.Field() - """ - Connection ID associated with the member - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_object_member_1_member_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_object_member_1_member_type_enum.py deleted file mode 100644 index 24567bd8..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_object_member_1_member_type_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventGroupMemberDeletedObjectMember1MemberTypeEnum = typing.Union[ - typing.Literal["connection"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_previous_object.py b/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_previous_object.py deleted file mode 100644 index 4244f23d..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_previous_object.py +++ /dev/null @@ -1,30 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_group_member_deleted_previous_object_group import ( - EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup, -) -from .event_stream_cloud_event_group_member_deleted_previous_object_member import ( - EventStreamCloudEventGroupMemberDeletedPreviousObjectMember, -) - - -class EventStreamCloudEventGroupMemberDeletedPreviousObject(UniversalBaseModel): - """ - The event content as it was prior to the change described by this event, when applicable. - """ - - group: EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup - member: EventStreamCloudEventGroupMemberDeletedPreviousObjectMember - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_previous_object_group.py b/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_previous_object_group.py deleted file mode 100644 index 59389803..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_previous_object_group.py +++ /dev/null @@ -1,19 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .event_stream_cloud_event_group_member_deleted_previous_object_group_0 import ( - EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup0, -) -from .event_stream_cloud_event_group_member_deleted_previous_object_group_1 import ( - EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup1, -) -from .event_stream_cloud_event_group_member_deleted_previous_object_group_2 import ( - EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup2, -) - -EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup = typing.Union[ - EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup0, - EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup1, - EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup2, -] diff --git a/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_previous_object_group_0.py b/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_previous_object_group_0.py deleted file mode 100644 index 9641b61a..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_previous_object_group_0.py +++ /dev/null @@ -1,40 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_group_member_deleted_previous_object_group_0_type_enum import ( - EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup0TypeEnum, -) - - -class EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup0(UniversalBaseModel): - """ - Reference to a connection group - """ - - id: str = pydantic.Field() - """ - The unique identifier for the group. - """ - - external_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The external identifier for the group. - """ - - type: EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup0TypeEnum - connection_id: str = pydantic.Field() - """ - The connection ID associated with the group. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_previous_object_group_0_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_previous_object_group_0_type_enum.py deleted file mode 100644 index f457c841..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_previous_object_group_0_type_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup0TypeEnum = typing.Union[ - typing.Literal["connection"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_previous_object_group_1.py b/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_previous_object_group_1.py deleted file mode 100644 index 2c17366d..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_previous_object_group_1.py +++ /dev/null @@ -1,40 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_group_member_deleted_previous_object_group_1_type_enum import ( - EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup1TypeEnum, -) - - -class EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup1(UniversalBaseModel): - """ - Reference to an organization group - """ - - id: str = pydantic.Field() - """ - The unique identifier for the group. - """ - - external_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The external identifier for the group. - """ - - type: EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup1TypeEnum - organization_id: str = pydantic.Field() - """ - The organization ID associated with the group. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_previous_object_group_1_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_previous_object_group_1_type_enum.py deleted file mode 100644 index 245d86ec..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_previous_object_group_1_type_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup1TypeEnum = typing.Union[ - typing.Literal["organization"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_previous_object_group_2.py b/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_previous_object_group_2.py deleted file mode 100644 index ca028dc5..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_previous_object_group_2.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_group_member_deleted_previous_object_group_2_type_enum import ( - EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup2TypeEnum, -) - - -class EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup2(UniversalBaseModel): - """ - Reference to a tenant group - """ - - id: str = pydantic.Field() - """ - The unique identifier for the group. - """ - - external_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The external identifier for the group. - """ - - type: EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup2TypeEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_previous_object_group_2_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_previous_object_group_2_type_enum.py deleted file mode 100644 index ef17521a..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_previous_object_group_2_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventGroupMemberDeletedPreviousObjectGroup2TypeEnum = typing.Union[typing.Literal["tenant"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_previous_object_member.py b/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_previous_object_member.py deleted file mode 100644 index d991beae..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_previous_object_member.py +++ /dev/null @@ -1,15 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .event_stream_cloud_event_group_member_deleted_previous_object_member_0 import ( - EventStreamCloudEventGroupMemberDeletedPreviousObjectMember0, -) -from .event_stream_cloud_event_group_member_deleted_previous_object_member_1 import ( - EventStreamCloudEventGroupMemberDeletedPreviousObjectMember1, -) - -EventStreamCloudEventGroupMemberDeletedPreviousObjectMember = typing.Union[ - EventStreamCloudEventGroupMemberDeletedPreviousObjectMember0, - EventStreamCloudEventGroupMemberDeletedPreviousObjectMember1, -] diff --git a/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_previous_object_member_0.py b/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_previous_object_member_0.py deleted file mode 100644 index f4aaf2ea..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_previous_object_member_0.py +++ /dev/null @@ -1,30 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_group_member_deleted_previous_object_member_0_member_type_enum import ( - EventStreamCloudEventGroupMemberDeletedPreviousObjectMember0MemberTypeEnum, -) - - -class EventStreamCloudEventGroupMemberDeletedPreviousObjectMember0(UniversalBaseModel): - """ - A group member of member_type user - """ - - member_type: EventStreamCloudEventGroupMemberDeletedPreviousObjectMember0MemberTypeEnum - id: str = pydantic.Field() - """ - The user's unique identifier - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_previous_object_member_0_member_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_previous_object_member_0_member_type_enum.py deleted file mode 100644 index c7ca1432..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_previous_object_member_0_member_type_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventGroupMemberDeletedPreviousObjectMember0MemberTypeEnum = typing.Union[ - typing.Literal["user"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_previous_object_member_1.py b/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_previous_object_member_1.py deleted file mode 100644 index be0c7e42..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_previous_object_member_1.py +++ /dev/null @@ -1,40 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_group_member_deleted_previous_object_member_1_member_type_enum import ( - EventStreamCloudEventGroupMemberDeletedPreviousObjectMember1MemberTypeEnum, -) - - -class EventStreamCloudEventGroupMemberDeletedPreviousObjectMember1(UniversalBaseModel): - """ - A group member of member_type group - """ - - member_type: EventStreamCloudEventGroupMemberDeletedPreviousObjectMember1MemberTypeEnum - id: str = pydantic.Field() - """ - The connection member's unique identifier - """ - - type: str = pydantic.Field() - """ - The type of the connection - """ - - connection_id: str = pydantic.Field() - """ - Connection ID associated with the member - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_previous_object_member_1_member_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_previous_object_member_1_member_type_enum.py deleted file mode 100644 index 3d210944..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_previous_object_member_1_member_type_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventGroupMemberDeletedPreviousObjectMember1MemberTypeEnum = typing.Union[ - typing.Literal["connection"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_type_enum.py deleted file mode 100644 index acea0458..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_member_deleted_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventGroupMemberDeletedTypeEnum = typing.Union[typing.Literal["group.member.deleted"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_group_role_assigned.py b/src/auth0/management/types/event_stream_cloud_event_group_role_assigned.py deleted file mode 100644 index 1a54c9cf..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_role_assigned.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_group_role_assigned_cloud_event import EventStreamCloudEventGroupRoleAssignedCloudEvent - - -class EventStreamCloudEventGroupRoleAssigned(UniversalBaseModel): - """ - SSE message for group.role.assigned. - """ - - offset: str = pydantic.Field() - """ - Opaque cursor representing position in the stream. Pass as the `from` query parameter to resume. - """ - - event: EventStreamCloudEventGroupRoleAssignedCloudEvent - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_role_assigned_cloud_event.py b/src/auth0/management/types/event_stream_cloud_event_group_role_assigned_cloud_event.py deleted file mode 100644 index d27fd9f9..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_role_assigned_cloud_event.py +++ /dev/null @@ -1,77 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_a_0_purpose_enum import EventStreamCloudEventA0PurposeEnum -from .event_stream_cloud_event_group_role_assigned_cloud_event_type_enum import ( - EventStreamCloudEventGroupRoleAssignedCloudEventTypeEnum, -) -from .event_stream_cloud_event_group_role_assigned_data import EventStreamCloudEventGroupRoleAssignedData -from .event_stream_cloud_event_spec_version_enum import EventStreamCloudEventSpecVersionEnum - - -class EventStreamCloudEventGroupRoleAssignedCloudEvent(UniversalBaseModel): - """ - Represents an event that occurs when a role is assigned to a group. - """ - - specversion: EventStreamCloudEventSpecVersionEnum - type: EventStreamCloudEventGroupRoleAssignedCloudEventTypeEnum - source: str = pydantic.Field() - """ - The source of the event. This will take the form 'urn:auth0:.'. - """ - - id: str = pydantic.Field() - """ - A unique identifier for the event. - """ - - time: dt.datetime = pydantic.Field() - """ - An ISO-8601 timestamp indicating when the event physically occurred. - """ - - data: EventStreamCloudEventGroupRoleAssignedData - a_0_tenant: typing_extensions.Annotated[ - str, - FieldMetadata(alias="a0tenant"), - pydantic.Field(alias="a0tenant", description="The auth0 tenant ID to which the event is associated."), - ] - """ - The auth0 tenant ID to which the event is associated. - """ - - a_0_stream: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="a0stream"), - pydantic.Field( - alias="a0stream", - description="The auth0 event stream ID of the stream the event was delivered on.\nPresent when the event is delivered via an event stream; omitted when\nevents are retrieved via the Events API (GET /api/v2/events).", - ), - ] = None - """ - The auth0 event stream ID of the stream the event was delivered on. - Present when the event is delivered via an event stream; omitted when - events are retrieved via the Events API (GET /api/v2/events). - """ - - a_0_purpose: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventA0PurposeEnum], - FieldMetadata(alias="a0purpose"), - pydantic.Field(alias="a0purpose"), - ] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_role_assigned_cloud_event_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_group_role_assigned_cloud_event_type_enum.py deleted file mode 100644 index 4517fc5d..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_role_assigned_cloud_event_type_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventGroupRoleAssignedCloudEventTypeEnum = typing.Union[ - typing.Literal["group.role.assigned"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_group_role_assigned_data.py b/src/auth0/management/types/event_stream_cloud_event_group_role_assigned_data.py deleted file mode 100644 index 542f48ef..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_role_assigned_data.py +++ /dev/null @@ -1,30 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_context import EventStreamCloudEventContext -from .event_stream_cloud_event_group_role_assigned_object import EventStreamCloudEventGroupRoleAssignedObject -from .event_stream_cloud_event_group_role_assigned_previous_object import ( - EventStreamCloudEventGroupRoleAssignedPreviousObject, -) - - -class EventStreamCloudEventGroupRoleAssignedData(UniversalBaseModel): - """ - The event payload. - """ - - object: EventStreamCloudEventGroupRoleAssignedObject - previous_object: typing.Optional[EventStreamCloudEventGroupRoleAssignedPreviousObject] = None - context: typing.Optional[EventStreamCloudEventContext] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_role_assigned_object.py b/src/auth0/management/types/event_stream_cloud_event_group_role_assigned_object.py deleted file mode 100644 index 0632739f..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_role_assigned_object.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_group_role_assigned_object_group import EventStreamCloudEventGroupRoleAssignedObjectGroup -from .event_stream_cloud_event_group_role_assigned_object_role import EventStreamCloudEventGroupRoleAssignedObjectRole - - -class EventStreamCloudEventGroupRoleAssignedObject(UniversalBaseModel): - """ - The event content. - """ - - group: EventStreamCloudEventGroupRoleAssignedObjectGroup - role: EventStreamCloudEventGroupRoleAssignedObjectRole - created_at: dt.datetime = pydantic.Field() - """ - The time at which the role was assigned to the group. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_role_assigned_object_group.py b/src/auth0/management/types/event_stream_cloud_event_group_role_assigned_object_group.py deleted file mode 100644 index c6716978..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_role_assigned_object_group.py +++ /dev/null @@ -1,19 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .event_stream_cloud_event_group_role_assigned_object_group_0 import ( - EventStreamCloudEventGroupRoleAssignedObjectGroup0, -) -from .event_stream_cloud_event_group_role_assigned_object_group_1 import ( - EventStreamCloudEventGroupRoleAssignedObjectGroup1, -) -from .event_stream_cloud_event_group_role_assigned_object_group_2 import ( - EventStreamCloudEventGroupRoleAssignedObjectGroup2, -) - -EventStreamCloudEventGroupRoleAssignedObjectGroup = typing.Union[ - EventStreamCloudEventGroupRoleAssignedObjectGroup0, - EventStreamCloudEventGroupRoleAssignedObjectGroup1, - EventStreamCloudEventGroupRoleAssignedObjectGroup2, -] diff --git a/src/auth0/management/types/event_stream_cloud_event_group_role_assigned_object_group_0.py b/src/auth0/management/types/event_stream_cloud_event_group_role_assigned_object_group_0.py deleted file mode 100644 index d44911c4..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_role_assigned_object_group_0.py +++ /dev/null @@ -1,40 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_group_role_assigned_object_group_0_type_enum import ( - EventStreamCloudEventGroupRoleAssignedObjectGroup0TypeEnum, -) - - -class EventStreamCloudEventGroupRoleAssignedObjectGroup0(UniversalBaseModel): - """ - Reference to a connection group - """ - - id: str = pydantic.Field() - """ - The unique identifier for the group. - """ - - external_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The external identifier for the group. - """ - - type: EventStreamCloudEventGroupRoleAssignedObjectGroup0TypeEnum - connection_id: str = pydantic.Field() - """ - The connection ID associated with the group. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_role_assigned_object_group_0_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_group_role_assigned_object_group_0_type_enum.py deleted file mode 100644 index 6b7fca6d..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_role_assigned_object_group_0_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventGroupRoleAssignedObjectGroup0TypeEnum = typing.Union[typing.Literal["connection"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_group_role_assigned_object_group_1.py b/src/auth0/management/types/event_stream_cloud_event_group_role_assigned_object_group_1.py deleted file mode 100644 index 383d5006..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_role_assigned_object_group_1.py +++ /dev/null @@ -1,40 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_group_role_assigned_object_group_1_type_enum import ( - EventStreamCloudEventGroupRoleAssignedObjectGroup1TypeEnum, -) - - -class EventStreamCloudEventGroupRoleAssignedObjectGroup1(UniversalBaseModel): - """ - Reference to an organization group - """ - - id: str = pydantic.Field() - """ - The unique identifier for the group. - """ - - external_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The external identifier for the group. - """ - - type: EventStreamCloudEventGroupRoleAssignedObjectGroup1TypeEnum - organization_id: str = pydantic.Field() - """ - The organization ID associated with the group. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_role_assigned_object_group_1_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_group_role_assigned_object_group_1_type_enum.py deleted file mode 100644 index 2173f54a..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_role_assigned_object_group_1_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventGroupRoleAssignedObjectGroup1TypeEnum = typing.Union[typing.Literal["organization"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_group_role_assigned_object_group_2.py b/src/auth0/management/types/event_stream_cloud_event_group_role_assigned_object_group_2.py deleted file mode 100644 index 8776e62e..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_role_assigned_object_group_2.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_group_role_assigned_object_group_2_type_enum import ( - EventStreamCloudEventGroupRoleAssignedObjectGroup2TypeEnum, -) - - -class EventStreamCloudEventGroupRoleAssignedObjectGroup2(UniversalBaseModel): - """ - Reference to a tenant group - """ - - id: str = pydantic.Field() - """ - The unique identifier for the group. - """ - - external_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The external identifier for the group. - """ - - type: EventStreamCloudEventGroupRoleAssignedObjectGroup2TypeEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_role_assigned_object_group_2_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_group_role_assigned_object_group_2_type_enum.py deleted file mode 100644 index 1392ecde..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_role_assigned_object_group_2_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventGroupRoleAssignedObjectGroup2TypeEnum = typing.Union[typing.Literal["tenant"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_group_role_assigned_object_role.py b/src/auth0/management/types/event_stream_cloud_event_group_role_assigned_object_role.py deleted file mode 100644 index eb3e9285..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_role_assigned_object_role.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventGroupRoleAssignedObjectRole(UniversalBaseModel): - """ - The role assigned to the group. - """ - - id: str = pydantic.Field() - """ - The ID of the role. - """ - - name: str = pydantic.Field() - """ - The name of the role. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_role_assigned_previous_object.py b/src/auth0/management/types/event_stream_cloud_event_group_role_assigned_previous_object.py deleted file mode 100644 index 424079a2..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_role_assigned_previous_object.py +++ /dev/null @@ -1,35 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_group_role_assigned_previous_object_group import ( - EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup, -) -from .event_stream_cloud_event_group_role_assigned_previous_object_role import ( - EventStreamCloudEventGroupRoleAssignedPreviousObjectRole, -) - - -class EventStreamCloudEventGroupRoleAssignedPreviousObject(UniversalBaseModel): - """ - The event content as it was prior to the change described by this event, when applicable. - """ - - group: EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup - role: EventStreamCloudEventGroupRoleAssignedPreviousObjectRole - created_at: dt.datetime = pydantic.Field() - """ - The time at which the role was assigned to the group. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_role_assigned_previous_object_group.py b/src/auth0/management/types/event_stream_cloud_event_group_role_assigned_previous_object_group.py deleted file mode 100644 index 4478d4dd..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_role_assigned_previous_object_group.py +++ /dev/null @@ -1,19 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .event_stream_cloud_event_group_role_assigned_previous_object_group_0 import ( - EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup0, -) -from .event_stream_cloud_event_group_role_assigned_previous_object_group_1 import ( - EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup1, -) -from .event_stream_cloud_event_group_role_assigned_previous_object_group_2 import ( - EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup2, -) - -EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup = typing.Union[ - EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup0, - EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup1, - EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup2, -] diff --git a/src/auth0/management/types/event_stream_cloud_event_group_role_assigned_previous_object_group_0.py b/src/auth0/management/types/event_stream_cloud_event_group_role_assigned_previous_object_group_0.py deleted file mode 100644 index 4b3d237b..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_role_assigned_previous_object_group_0.py +++ /dev/null @@ -1,40 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_group_role_assigned_previous_object_group_0_type_enum import ( - EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup0TypeEnum, -) - - -class EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup0(UniversalBaseModel): - """ - Reference to a connection group - """ - - id: str = pydantic.Field() - """ - The unique identifier for the group. - """ - - external_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The external identifier for the group. - """ - - type: EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup0TypeEnum - connection_id: str = pydantic.Field() - """ - The connection ID associated with the group. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_role_assigned_previous_object_group_0_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_group_role_assigned_previous_object_group_0_type_enum.py deleted file mode 100644 index b3802dec..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_role_assigned_previous_object_group_0_type_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup0TypeEnum = typing.Union[ - typing.Literal["connection"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_group_role_assigned_previous_object_group_1.py b/src/auth0/management/types/event_stream_cloud_event_group_role_assigned_previous_object_group_1.py deleted file mode 100644 index 0629ddef..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_role_assigned_previous_object_group_1.py +++ /dev/null @@ -1,40 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_group_role_assigned_previous_object_group_1_type_enum import ( - EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup1TypeEnum, -) - - -class EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup1(UniversalBaseModel): - """ - Reference to an organization group - """ - - id: str = pydantic.Field() - """ - The unique identifier for the group. - """ - - external_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The external identifier for the group. - """ - - type: EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup1TypeEnum - organization_id: str = pydantic.Field() - """ - The organization ID associated with the group. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_role_assigned_previous_object_group_1_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_group_role_assigned_previous_object_group_1_type_enum.py deleted file mode 100644 index dabce301..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_role_assigned_previous_object_group_1_type_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup1TypeEnum = typing.Union[ - typing.Literal["organization"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_group_role_assigned_previous_object_group_2.py b/src/auth0/management/types/event_stream_cloud_event_group_role_assigned_previous_object_group_2.py deleted file mode 100644 index 9fab0005..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_role_assigned_previous_object_group_2.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_group_role_assigned_previous_object_group_2_type_enum import ( - EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup2TypeEnum, -) - - -class EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup2(UniversalBaseModel): - """ - Reference to a tenant group - """ - - id: str = pydantic.Field() - """ - The unique identifier for the group. - """ - - external_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The external identifier for the group. - """ - - type: EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup2TypeEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_role_assigned_previous_object_group_2_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_group_role_assigned_previous_object_group_2_type_enum.py deleted file mode 100644 index 23758c4b..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_role_assigned_previous_object_group_2_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventGroupRoleAssignedPreviousObjectGroup2TypeEnum = typing.Union[typing.Literal["tenant"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_group_role_assigned_previous_object_role.py b/src/auth0/management/types/event_stream_cloud_event_group_role_assigned_previous_object_role.py deleted file mode 100644 index 2ecc5c5a..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_role_assigned_previous_object_role.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventGroupRoleAssignedPreviousObjectRole(UniversalBaseModel): - """ - The role assigned to the group. - """ - - id: str = pydantic.Field() - """ - The ID of the role. - """ - - name: str = pydantic.Field() - """ - The name of the role. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_role_assigned_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_group_role_assigned_type_enum.py deleted file mode 100644 index fa4cf2c5..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_role_assigned_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventGroupRoleAssignedTypeEnum = typing.Union[typing.Literal["group.role.assigned"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_group_role_deleted.py b/src/auth0/management/types/event_stream_cloud_event_group_role_deleted.py deleted file mode 100644 index b1f16b5f..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_role_deleted.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_group_role_deleted_cloud_event import EventStreamCloudEventGroupRoleDeletedCloudEvent - - -class EventStreamCloudEventGroupRoleDeleted(UniversalBaseModel): - """ - SSE message for group.role.deleted. - """ - - offset: str = pydantic.Field() - """ - Opaque cursor representing position in the stream. Pass as the `from` query parameter to resume. - """ - - event: EventStreamCloudEventGroupRoleDeletedCloudEvent - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_role_deleted_cloud_event.py b/src/auth0/management/types/event_stream_cloud_event_group_role_deleted_cloud_event.py deleted file mode 100644 index dd2df1bb..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_role_deleted_cloud_event.py +++ /dev/null @@ -1,77 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_a_0_purpose_enum import EventStreamCloudEventA0PurposeEnum -from .event_stream_cloud_event_group_role_deleted_cloud_event_type_enum import ( - EventStreamCloudEventGroupRoleDeletedCloudEventTypeEnum, -) -from .event_stream_cloud_event_group_role_deleted_data import EventStreamCloudEventGroupRoleDeletedData -from .event_stream_cloud_event_spec_version_enum import EventStreamCloudEventSpecVersionEnum - - -class EventStreamCloudEventGroupRoleDeletedCloudEvent(UniversalBaseModel): - """ - Represents an event that occurs when a role is removed from a group. - """ - - specversion: EventStreamCloudEventSpecVersionEnum - type: EventStreamCloudEventGroupRoleDeletedCloudEventTypeEnum - source: str = pydantic.Field() - """ - The source of the event. This will take the form 'urn:auth0:.'. - """ - - id: str = pydantic.Field() - """ - A unique identifier for the event. - """ - - time: dt.datetime = pydantic.Field() - """ - An ISO-8601 timestamp indicating when the event physically occurred. - """ - - data: EventStreamCloudEventGroupRoleDeletedData - a_0_tenant: typing_extensions.Annotated[ - str, - FieldMetadata(alias="a0tenant"), - pydantic.Field(alias="a0tenant", description="The auth0 tenant ID to which the event is associated."), - ] - """ - The auth0 tenant ID to which the event is associated. - """ - - a_0_stream: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="a0stream"), - pydantic.Field( - alias="a0stream", - description="The auth0 event stream ID of the stream the event was delivered on.\nPresent when the event is delivered via an event stream; omitted when\nevents are retrieved via the Events API (GET /api/v2/events).", - ), - ] = None - """ - The auth0 event stream ID of the stream the event was delivered on. - Present when the event is delivered via an event stream; omitted when - events are retrieved via the Events API (GET /api/v2/events). - """ - - a_0_purpose: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventA0PurposeEnum], - FieldMetadata(alias="a0purpose"), - pydantic.Field(alias="a0purpose"), - ] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_role_deleted_cloud_event_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_group_role_deleted_cloud_event_type_enum.py deleted file mode 100644 index bbc1a170..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_role_deleted_cloud_event_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventGroupRoleDeletedCloudEventTypeEnum = typing.Union[typing.Literal["group.role.deleted"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_group_role_deleted_data.py b/src/auth0/management/types/event_stream_cloud_event_group_role_deleted_data.py deleted file mode 100644 index 6f5d03cb..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_role_deleted_data.py +++ /dev/null @@ -1,30 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_context import EventStreamCloudEventContext -from .event_stream_cloud_event_group_role_deleted_object import EventStreamCloudEventGroupRoleDeletedObject -from .event_stream_cloud_event_group_role_deleted_previous_object import ( - EventStreamCloudEventGroupRoleDeletedPreviousObject, -) - - -class EventStreamCloudEventGroupRoleDeletedData(UniversalBaseModel): - """ - The event payload. - """ - - object: EventStreamCloudEventGroupRoleDeletedObject - previous_object: typing.Optional[EventStreamCloudEventGroupRoleDeletedPreviousObject] = None - context: typing.Optional[EventStreamCloudEventContext] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_role_deleted_object.py b/src/auth0/management/types/event_stream_cloud_event_group_role_deleted_object.py deleted file mode 100644 index 5799fd39..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_role_deleted_object.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_group_role_deleted_object_group import EventStreamCloudEventGroupRoleDeletedObjectGroup -from .event_stream_cloud_event_group_role_deleted_object_role import EventStreamCloudEventGroupRoleDeletedObjectRole - - -class EventStreamCloudEventGroupRoleDeletedObject(UniversalBaseModel): - """ - The event content. - """ - - group: EventStreamCloudEventGroupRoleDeletedObjectGroup - role: EventStreamCloudEventGroupRoleDeletedObjectRole - deleted_at: dt.datetime = pydantic.Field() - """ - The time at which the role was removed from the group. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_role_deleted_object_group.py b/src/auth0/management/types/event_stream_cloud_event_group_role_deleted_object_group.py deleted file mode 100644 index 15cee74e..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_role_deleted_object_group.py +++ /dev/null @@ -1,19 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .event_stream_cloud_event_group_role_deleted_object_group_0 import ( - EventStreamCloudEventGroupRoleDeletedObjectGroup0, -) -from .event_stream_cloud_event_group_role_deleted_object_group_1 import ( - EventStreamCloudEventGroupRoleDeletedObjectGroup1, -) -from .event_stream_cloud_event_group_role_deleted_object_group_2 import ( - EventStreamCloudEventGroupRoleDeletedObjectGroup2, -) - -EventStreamCloudEventGroupRoleDeletedObjectGroup = typing.Union[ - EventStreamCloudEventGroupRoleDeletedObjectGroup0, - EventStreamCloudEventGroupRoleDeletedObjectGroup1, - EventStreamCloudEventGroupRoleDeletedObjectGroup2, -] diff --git a/src/auth0/management/types/event_stream_cloud_event_group_role_deleted_object_group_0.py b/src/auth0/management/types/event_stream_cloud_event_group_role_deleted_object_group_0.py deleted file mode 100644 index 9f01246a..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_role_deleted_object_group_0.py +++ /dev/null @@ -1,40 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_group_role_deleted_object_group_0_type_enum import ( - EventStreamCloudEventGroupRoleDeletedObjectGroup0TypeEnum, -) - - -class EventStreamCloudEventGroupRoleDeletedObjectGroup0(UniversalBaseModel): - """ - Reference to a connection group - """ - - id: str = pydantic.Field() - """ - The unique identifier for the group. - """ - - external_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The external identifier for the group. - """ - - type: EventStreamCloudEventGroupRoleDeletedObjectGroup0TypeEnum - connection_id: str = pydantic.Field() - """ - The connection ID associated with the group. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_role_deleted_object_group_0_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_group_role_deleted_object_group_0_type_enum.py deleted file mode 100644 index c128b563..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_role_deleted_object_group_0_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventGroupRoleDeletedObjectGroup0TypeEnum = typing.Union[typing.Literal["connection"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_group_role_deleted_object_group_1.py b/src/auth0/management/types/event_stream_cloud_event_group_role_deleted_object_group_1.py deleted file mode 100644 index c4e8ddec..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_role_deleted_object_group_1.py +++ /dev/null @@ -1,40 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_group_role_deleted_object_group_1_type_enum import ( - EventStreamCloudEventGroupRoleDeletedObjectGroup1TypeEnum, -) - - -class EventStreamCloudEventGroupRoleDeletedObjectGroup1(UniversalBaseModel): - """ - Reference to an organization group - """ - - id: str = pydantic.Field() - """ - The unique identifier for the group. - """ - - external_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The external identifier for the group. - """ - - type: EventStreamCloudEventGroupRoleDeletedObjectGroup1TypeEnum - organization_id: str = pydantic.Field() - """ - The organization ID associated with the group. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_role_deleted_object_group_1_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_group_role_deleted_object_group_1_type_enum.py deleted file mode 100644 index b6a4bdef..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_role_deleted_object_group_1_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventGroupRoleDeletedObjectGroup1TypeEnum = typing.Union[typing.Literal["organization"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_group_role_deleted_object_group_2.py b/src/auth0/management/types/event_stream_cloud_event_group_role_deleted_object_group_2.py deleted file mode 100644 index a072fb2b..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_role_deleted_object_group_2.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_group_role_deleted_object_group_2_type_enum import ( - EventStreamCloudEventGroupRoleDeletedObjectGroup2TypeEnum, -) - - -class EventStreamCloudEventGroupRoleDeletedObjectGroup2(UniversalBaseModel): - """ - Reference to a tenant group - """ - - id: str = pydantic.Field() - """ - The unique identifier for the group. - """ - - external_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The external identifier for the group. - """ - - type: EventStreamCloudEventGroupRoleDeletedObjectGroup2TypeEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_role_deleted_object_group_2_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_group_role_deleted_object_group_2_type_enum.py deleted file mode 100644 index a93bc55b..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_role_deleted_object_group_2_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventGroupRoleDeletedObjectGroup2TypeEnum = typing.Union[typing.Literal["tenant"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_group_role_deleted_object_role.py b/src/auth0/management/types/event_stream_cloud_event_group_role_deleted_object_role.py deleted file mode 100644 index c1aa54d0..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_role_deleted_object_role.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventGroupRoleDeletedObjectRole(UniversalBaseModel): - """ - The role removed from the group. - """ - - id: str = pydantic.Field() - """ - The ID of the role. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_role_deleted_previous_object.py b/src/auth0/management/types/event_stream_cloud_event_group_role_deleted_previous_object.py deleted file mode 100644 index c8a82ff6..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_role_deleted_previous_object.py +++ /dev/null @@ -1,35 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_group_role_deleted_previous_object_group import ( - EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup, -) -from .event_stream_cloud_event_group_role_deleted_previous_object_role import ( - EventStreamCloudEventGroupRoleDeletedPreviousObjectRole, -) - - -class EventStreamCloudEventGroupRoleDeletedPreviousObject(UniversalBaseModel): - """ - The event content as it was prior to the change described by this event, when applicable. - """ - - group: EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup - role: EventStreamCloudEventGroupRoleDeletedPreviousObjectRole - created_at: dt.datetime = pydantic.Field() - """ - The time at which the role was assigned to the group. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_role_deleted_previous_object_group.py b/src/auth0/management/types/event_stream_cloud_event_group_role_deleted_previous_object_group.py deleted file mode 100644 index e86e89e6..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_role_deleted_previous_object_group.py +++ /dev/null @@ -1,19 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .event_stream_cloud_event_group_role_deleted_previous_object_group_0 import ( - EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup0, -) -from .event_stream_cloud_event_group_role_deleted_previous_object_group_1 import ( - EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup1, -) -from .event_stream_cloud_event_group_role_deleted_previous_object_group_2 import ( - EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup2, -) - -EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup = typing.Union[ - EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup0, - EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup1, - EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup2, -] diff --git a/src/auth0/management/types/event_stream_cloud_event_group_role_deleted_previous_object_group_0.py b/src/auth0/management/types/event_stream_cloud_event_group_role_deleted_previous_object_group_0.py deleted file mode 100644 index c3f96bb6..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_role_deleted_previous_object_group_0.py +++ /dev/null @@ -1,40 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_group_role_deleted_previous_object_group_0_type_enum import ( - EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup0TypeEnum, -) - - -class EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup0(UniversalBaseModel): - """ - Reference to a connection group - """ - - id: str = pydantic.Field() - """ - The unique identifier for the group. - """ - - external_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The external identifier for the group. - """ - - type: EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup0TypeEnum - connection_id: str = pydantic.Field() - """ - The connection ID associated with the group. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_role_deleted_previous_object_group_0_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_group_role_deleted_previous_object_group_0_type_enum.py deleted file mode 100644 index fc7ee588..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_role_deleted_previous_object_group_0_type_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup0TypeEnum = typing.Union[ - typing.Literal["connection"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_group_role_deleted_previous_object_group_1.py b/src/auth0/management/types/event_stream_cloud_event_group_role_deleted_previous_object_group_1.py deleted file mode 100644 index e588bd02..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_role_deleted_previous_object_group_1.py +++ /dev/null @@ -1,40 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_group_role_deleted_previous_object_group_1_type_enum import ( - EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup1TypeEnum, -) - - -class EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup1(UniversalBaseModel): - """ - Reference to an organization group - """ - - id: str = pydantic.Field() - """ - The unique identifier for the group. - """ - - external_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The external identifier for the group. - """ - - type: EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup1TypeEnum - organization_id: str = pydantic.Field() - """ - The organization ID associated with the group. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_role_deleted_previous_object_group_1_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_group_role_deleted_previous_object_group_1_type_enum.py deleted file mode 100644 index 018b6df4..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_role_deleted_previous_object_group_1_type_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup1TypeEnum = typing.Union[ - typing.Literal["organization"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_group_role_deleted_previous_object_group_2.py b/src/auth0/management/types/event_stream_cloud_event_group_role_deleted_previous_object_group_2.py deleted file mode 100644 index 4f818167..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_role_deleted_previous_object_group_2.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_group_role_deleted_previous_object_group_2_type_enum import ( - EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup2TypeEnum, -) - - -class EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup2(UniversalBaseModel): - """ - Reference to a tenant group - """ - - id: str = pydantic.Field() - """ - The unique identifier for the group. - """ - - external_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The external identifier for the group. - """ - - type: EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup2TypeEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_role_deleted_previous_object_group_2_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_group_role_deleted_previous_object_group_2_type_enum.py deleted file mode 100644 index 8313cce9..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_role_deleted_previous_object_group_2_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventGroupRoleDeletedPreviousObjectGroup2TypeEnum = typing.Union[typing.Literal["tenant"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_group_role_deleted_previous_object_role.py b/src/auth0/management/types/event_stream_cloud_event_group_role_deleted_previous_object_role.py deleted file mode 100644 index 96dd3c43..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_role_deleted_previous_object_role.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventGroupRoleDeletedPreviousObjectRole(UniversalBaseModel): - """ - The role assigned to the group. - """ - - id: str = pydantic.Field() - """ - The ID of the role. - """ - - name: str = pydantic.Field() - """ - The name of the role. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_role_deleted_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_group_role_deleted_type_enum.py deleted file mode 100644 index c37add10..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_role_deleted_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventGroupRoleDeletedTypeEnum = typing.Union[typing.Literal["group.role.deleted"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_group_updated.py b/src/auth0/management/types/event_stream_cloud_event_group_updated.py deleted file mode 100644 index aab8aaf8..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_updated.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_group_updated_cloud_event import EventStreamCloudEventGroupUpdatedCloudEvent - - -class EventStreamCloudEventGroupUpdated(UniversalBaseModel): - """ - SSE message for group.updated. - """ - - offset: str = pydantic.Field() - """ - Opaque cursor representing position in the stream. Pass as the `from` query parameter to resume. - """ - - event: EventStreamCloudEventGroupUpdatedCloudEvent - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_updated_cloud_event.py b/src/auth0/management/types/event_stream_cloud_event_group_updated_cloud_event.py deleted file mode 100644 index f73ce928..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_updated_cloud_event.py +++ /dev/null @@ -1,77 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_a_0_purpose_enum import EventStreamCloudEventA0PurposeEnum -from .event_stream_cloud_event_group_updated_cloud_event_type_enum import ( - EventStreamCloudEventGroupUpdatedCloudEventTypeEnum, -) -from .event_stream_cloud_event_group_updated_data import EventStreamCloudEventGroupUpdatedData -from .event_stream_cloud_event_spec_version_enum import EventStreamCloudEventSpecVersionEnum - - -class EventStreamCloudEventGroupUpdatedCloudEvent(UniversalBaseModel): - """ - Represents an event that occurs when a group is updated. - """ - - specversion: EventStreamCloudEventSpecVersionEnum - type: EventStreamCloudEventGroupUpdatedCloudEventTypeEnum - source: str = pydantic.Field() - """ - The source of the event. This will take the form 'urn:auth0:.'. - """ - - id: str = pydantic.Field() - """ - A unique identifier for the event. - """ - - time: dt.datetime = pydantic.Field() - """ - An ISO-8601 timestamp indicating when the event physically occurred. - """ - - data: EventStreamCloudEventGroupUpdatedData - a_0_tenant: typing_extensions.Annotated[ - str, - FieldMetadata(alias="a0tenant"), - pydantic.Field(alias="a0tenant", description="The auth0 tenant ID to which the event is associated."), - ] - """ - The auth0 tenant ID to which the event is associated. - """ - - a_0_stream: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="a0stream"), - pydantic.Field( - alias="a0stream", - description="The auth0 event stream ID of the stream the event was delivered on.\nPresent when the event is delivered via an event stream; omitted when\nevents are retrieved via the Events API (GET /api/v2/events).", - ), - ] = None - """ - The auth0 event stream ID of the stream the event was delivered on. - Present when the event is delivered via an event stream; omitted when - events are retrieved via the Events API (GET /api/v2/events). - """ - - a_0_purpose: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventA0PurposeEnum], - FieldMetadata(alias="a0purpose"), - pydantic.Field(alias="a0purpose"), - ] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_updated_cloud_event_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_group_updated_cloud_event_type_enum.py deleted file mode 100644 index 09e7707f..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_updated_cloud_event_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventGroupUpdatedCloudEventTypeEnum = typing.Union[typing.Literal["group.updated"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_group_updated_data.py b/src/auth0/management/types/event_stream_cloud_event_group_updated_data.py deleted file mode 100644 index a3408dc7..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_updated_data.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_context import EventStreamCloudEventContext -from .event_stream_cloud_event_group_updated_object import EventStreamCloudEventGroupUpdatedObject -from .event_stream_cloud_event_group_updated_previous_object import EventStreamCloudEventGroupUpdatedPreviousObject - - -class EventStreamCloudEventGroupUpdatedData(UniversalBaseModel): - """ - The event payload. - """ - - object: EventStreamCloudEventGroupUpdatedObject - previous_object: typing.Optional[EventStreamCloudEventGroupUpdatedPreviousObject] = None - context: typing.Optional[EventStreamCloudEventContext] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_updated_object.py b/src/auth0/management/types/event_stream_cloud_event_group_updated_object.py deleted file mode 100644 index 5ece306f..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_updated_object.py +++ /dev/null @@ -1,13 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .event_stream_cloud_event_group_updated_object_0 import EventStreamCloudEventGroupUpdatedObject0 -from .event_stream_cloud_event_group_updated_object_1 import EventStreamCloudEventGroupUpdatedObject1 -from .event_stream_cloud_event_group_updated_object_2 import EventStreamCloudEventGroupUpdatedObject2 - -EventStreamCloudEventGroupUpdatedObject = typing.Union[ - EventStreamCloudEventGroupUpdatedObject0, - EventStreamCloudEventGroupUpdatedObject1, - EventStreamCloudEventGroupUpdatedObject2, -] diff --git a/src/auth0/management/types/event_stream_cloud_event_group_updated_object_0.py b/src/auth0/management/types/event_stream_cloud_event_group_updated_object_0.py deleted file mode 100644 index 2dcbfd78..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_updated_object_0.py +++ /dev/null @@ -1,54 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_group_updated_object_0_type_enum import EventStreamCloudEventGroupUpdatedObject0TypeEnum - - -class EventStreamCloudEventGroupUpdatedObject0(UniversalBaseModel): - """ - Connection group with updated_at timestamp - """ - - id: str = pydantic.Field() - """ - The unique identifier for the group. - """ - - name: str = pydantic.Field() - """ - The name of the group. - """ - - external_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The external identifier for the group. - """ - - created_at: dt.datetime = pydantic.Field() - """ - Date and time when this entity was created (ISO_8601 format). - """ - - type: EventStreamCloudEventGroupUpdatedObject0TypeEnum - connection_id: str = pydantic.Field() - """ - The connection ID associated with the group. - """ - - updated_at: dt.datetime = pydantic.Field() - """ - Date and time when this entity was last updated/modified (ISO_8601 format). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_updated_object_0_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_group_updated_object_0_type_enum.py deleted file mode 100644 index 33ddac9f..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_updated_object_0_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventGroupUpdatedObject0TypeEnum = typing.Union[typing.Literal["connection"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_group_updated_object_1.py b/src/auth0/management/types/event_stream_cloud_event_group_updated_object_1.py deleted file mode 100644 index 4d441660..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_updated_object_1.py +++ /dev/null @@ -1,54 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_group_updated_object_1_type_enum import EventStreamCloudEventGroupUpdatedObject1TypeEnum - - -class EventStreamCloudEventGroupUpdatedObject1(UniversalBaseModel): - """ - Organization group with updated_at timestamp - """ - - id: str = pydantic.Field() - """ - The unique identifier for the group. - """ - - name: str = pydantic.Field() - """ - The name of the group. - """ - - external_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The external identifier for the group. - """ - - created_at: dt.datetime = pydantic.Field() - """ - Date and time when this entity was created (ISO_8601 format). - """ - - type: EventStreamCloudEventGroupUpdatedObject1TypeEnum - organization_id: str = pydantic.Field() - """ - The organization ID associated with the group. - """ - - updated_at: dt.datetime = pydantic.Field() - """ - Date and time when this entity was last updated/modified (ISO_8601 format). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_updated_object_1_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_group_updated_object_1_type_enum.py deleted file mode 100644 index 6aeb8602..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_updated_object_1_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventGroupUpdatedObject1TypeEnum = typing.Union[typing.Literal["organization"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_group_updated_object_2.py b/src/auth0/management/types/event_stream_cloud_event_group_updated_object_2.py deleted file mode 100644 index b20790f9..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_updated_object_2.py +++ /dev/null @@ -1,49 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_group_updated_object_2_type_enum import EventStreamCloudEventGroupUpdatedObject2TypeEnum - - -class EventStreamCloudEventGroupUpdatedObject2(UniversalBaseModel): - """ - Tenant group with updated_at timestamp - """ - - id: str = pydantic.Field() - """ - The unique identifier for the group. - """ - - name: str = pydantic.Field() - """ - The name of the group. - """ - - external_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The external identifier for the group. - """ - - created_at: dt.datetime = pydantic.Field() - """ - Date and time when this entity was created (ISO_8601 format). - """ - - type: EventStreamCloudEventGroupUpdatedObject2TypeEnum - updated_at: dt.datetime = pydantic.Field() - """ - Date and time when this entity was last updated/modified (ISO_8601 format). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_updated_object_2_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_group_updated_object_2_type_enum.py deleted file mode 100644 index 946b237d..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_updated_object_2_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventGroupUpdatedObject2TypeEnum = typing.Union[typing.Literal["tenant"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_group_updated_previous_object.py b/src/auth0/management/types/event_stream_cloud_event_group_updated_previous_object.py deleted file mode 100644 index 15fd60ce..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_updated_previous_object.py +++ /dev/null @@ -1,13 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .event_stream_cloud_event_group_updated_previous_object_0 import EventStreamCloudEventGroupUpdatedPreviousObject0 -from .event_stream_cloud_event_group_updated_previous_object_1 import EventStreamCloudEventGroupUpdatedPreviousObject1 -from .event_stream_cloud_event_group_updated_previous_object_2 import EventStreamCloudEventGroupUpdatedPreviousObject2 - -EventStreamCloudEventGroupUpdatedPreviousObject = typing.Union[ - EventStreamCloudEventGroupUpdatedPreviousObject0, - EventStreamCloudEventGroupUpdatedPreviousObject1, - EventStreamCloudEventGroupUpdatedPreviousObject2, -] diff --git a/src/auth0/management/types/event_stream_cloud_event_group_updated_previous_object_0.py b/src/auth0/management/types/event_stream_cloud_event_group_updated_previous_object_0.py deleted file mode 100644 index c53e672a..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_updated_previous_object_0.py +++ /dev/null @@ -1,56 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_group_updated_previous_object_0_type_enum import ( - EventStreamCloudEventGroupUpdatedPreviousObject0TypeEnum, -) - - -class EventStreamCloudEventGroupUpdatedPreviousObject0(UniversalBaseModel): - """ - Connection group with updated_at timestamp - """ - - id: str = pydantic.Field() - """ - The unique identifier for the group. - """ - - name: str = pydantic.Field() - """ - The name of the group. - """ - - external_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The external identifier for the group. - """ - - created_at: dt.datetime = pydantic.Field() - """ - Date and time when this entity was created (ISO_8601 format). - """ - - type: EventStreamCloudEventGroupUpdatedPreviousObject0TypeEnum - connection_id: str = pydantic.Field() - """ - The connection ID associated with the group. - """ - - updated_at: dt.datetime = pydantic.Field() - """ - Date and time when this entity was last updated/modified (ISO_8601 format). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_updated_previous_object_0_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_group_updated_previous_object_0_type_enum.py deleted file mode 100644 index de690e60..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_updated_previous_object_0_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventGroupUpdatedPreviousObject0TypeEnum = typing.Union[typing.Literal["connection"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_group_updated_previous_object_1.py b/src/auth0/management/types/event_stream_cloud_event_group_updated_previous_object_1.py deleted file mode 100644 index 74e5d362..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_updated_previous_object_1.py +++ /dev/null @@ -1,56 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_group_updated_previous_object_1_type_enum import ( - EventStreamCloudEventGroupUpdatedPreviousObject1TypeEnum, -) - - -class EventStreamCloudEventGroupUpdatedPreviousObject1(UniversalBaseModel): - """ - Organization group with updated_at timestamp - """ - - id: str = pydantic.Field() - """ - The unique identifier for the group. - """ - - name: str = pydantic.Field() - """ - The name of the group. - """ - - external_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The external identifier for the group. - """ - - created_at: dt.datetime = pydantic.Field() - """ - Date and time when this entity was created (ISO_8601 format). - """ - - type: EventStreamCloudEventGroupUpdatedPreviousObject1TypeEnum - organization_id: str = pydantic.Field() - """ - The organization ID associated with the group. - """ - - updated_at: dt.datetime = pydantic.Field() - """ - Date and time when this entity was last updated/modified (ISO_8601 format). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_updated_previous_object_1_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_group_updated_previous_object_1_type_enum.py deleted file mode 100644 index 265eeeea..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_updated_previous_object_1_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventGroupUpdatedPreviousObject1TypeEnum = typing.Union[typing.Literal["organization"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_group_updated_previous_object_2.py b/src/auth0/management/types/event_stream_cloud_event_group_updated_previous_object_2.py deleted file mode 100644 index c7392405..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_updated_previous_object_2.py +++ /dev/null @@ -1,51 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_group_updated_previous_object_2_type_enum import ( - EventStreamCloudEventGroupUpdatedPreviousObject2TypeEnum, -) - - -class EventStreamCloudEventGroupUpdatedPreviousObject2(UniversalBaseModel): - """ - Tenant group with updated_at timestamp - """ - - id: str = pydantic.Field() - """ - The unique identifier for the group. - """ - - name: str = pydantic.Field() - """ - The name of the group. - """ - - external_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The external identifier for the group. - """ - - created_at: dt.datetime = pydantic.Field() - """ - Date and time when this entity was created (ISO_8601 format). - """ - - type: EventStreamCloudEventGroupUpdatedPreviousObject2TypeEnum - updated_at: dt.datetime = pydantic.Field() - """ - Date and time when this entity was last updated/modified (ISO_8601 format). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_group_updated_previous_object_2_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_group_updated_previous_object_2_type_enum.py deleted file mode 100644 index 54bfd064..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_updated_previous_object_2_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventGroupUpdatedPreviousObject2TypeEnum = typing.Union[typing.Literal["tenant"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_group_updated_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_group_updated_type_enum.py deleted file mode 100644 index bd6985e2..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_group_updated_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventGroupUpdatedTypeEnum = typing.Union[typing.Literal["group.updated"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_offset_only_message.py b/src/auth0/management/types/event_stream_cloud_event_offset_only_message.py deleted file mode 100644 index 6af98e8d..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_offset_only_message.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventOffsetOnlyMessage(UniversalBaseModel): - """ - An offset-only heartbeat message. Advances the cursor without delivering an event. - """ - - offset: str = pydantic.Field() - """ - Opaque cursor representing the latest position in the stream. Pass as the `from` query parameter to resume. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_offset_only_message_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_offset_only_message_type_enum.py deleted file mode 100644 index 6dbad516..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_offset_only_message_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventOffsetOnlyMessageTypeEnum = typing.Union[typing.Literal["offset-only"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_org_connection_added.py b/src/auth0/management/types/event_stream_cloud_event_org_connection_added.py deleted file mode 100644 index fff4df59..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_connection_added.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_org_connection_added_cloud_event import EventStreamCloudEventOrgConnectionAddedCloudEvent - - -class EventStreamCloudEventOrgConnectionAdded(UniversalBaseModel): - """ - SSE message for organization.connection.added. - """ - - offset: str = pydantic.Field() - """ - Opaque cursor representing position in the stream. Pass as the `from` query parameter to resume. - """ - - event: EventStreamCloudEventOrgConnectionAddedCloudEvent - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_connection_added_cloud_event.py b/src/auth0/management/types/event_stream_cloud_event_org_connection_added_cloud_event.py deleted file mode 100644 index b088e28a..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_connection_added_cloud_event.py +++ /dev/null @@ -1,77 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_a_0_purpose_enum import EventStreamCloudEventA0PurposeEnum -from .event_stream_cloud_event_org_connection_added_cloud_event_type_enum import ( - EventStreamCloudEventOrgConnectionAddedCloudEventTypeEnum, -) -from .event_stream_cloud_event_org_connection_added_data import EventStreamCloudEventOrgConnectionAddedData -from .event_stream_cloud_event_spec_version_enum import EventStreamCloudEventSpecVersionEnum - - -class EventStreamCloudEventOrgConnectionAddedCloudEvent(UniversalBaseModel): - """ - Represents an event that occurs when a connection is added to an organization. - """ - - specversion: EventStreamCloudEventSpecVersionEnum - type: EventStreamCloudEventOrgConnectionAddedCloudEventTypeEnum - source: str = pydantic.Field() - """ - The source of the event. This will take the form 'urn:auth0:.'. - """ - - id: str = pydantic.Field() - """ - A unique identifier for the event. - """ - - time: dt.datetime = pydantic.Field() - """ - An ISO-8601 timestamp indicating when the event physically occurred. - """ - - data: EventStreamCloudEventOrgConnectionAddedData - a_0_tenant: typing_extensions.Annotated[ - str, - FieldMetadata(alias="a0tenant"), - pydantic.Field(alias="a0tenant", description="The auth0 tenant ID to which the event is associated."), - ] - """ - The auth0 tenant ID to which the event is associated. - """ - - a_0_stream: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="a0stream"), - pydantic.Field( - alias="a0stream", - description="The auth0 event stream ID of the stream the event was delivered on.\nPresent when the event is delivered via an event stream; omitted when\nevents are retrieved via the Events API (GET /api/v2/events).", - ), - ] = None - """ - The auth0 event stream ID of the stream the event was delivered on. - Present when the event is delivered via an event stream; omitted when - events are retrieved via the Events API (GET /api/v2/events). - """ - - a_0_purpose: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventA0PurposeEnum], - FieldMetadata(alias="a0purpose"), - pydantic.Field(alias="a0purpose"), - ] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_connection_added_cloud_event_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_org_connection_added_cloud_event_type_enum.py deleted file mode 100644 index 6e1c26c2..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_connection_added_cloud_event_type_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventOrgConnectionAddedCloudEventTypeEnum = typing.Union[ - typing.Literal["organization.connection.added"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_org_connection_added_data.py b/src/auth0/management/types/event_stream_cloud_event_org_connection_added_data.py deleted file mode 100644 index 1dbfaf13..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_connection_added_data.py +++ /dev/null @@ -1,30 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_context import EventStreamCloudEventContext -from .event_stream_cloud_event_org_connection_added_object import EventStreamCloudEventOrgConnectionAddedObject -from .event_stream_cloud_event_org_connection_added_previous_object import ( - EventStreamCloudEventOrgConnectionAddedPreviousObject, -) - - -class EventStreamCloudEventOrgConnectionAddedData(UniversalBaseModel): - """ - The event payload. - """ - - object: EventStreamCloudEventOrgConnectionAddedObject - previous_object: typing.Optional[EventStreamCloudEventOrgConnectionAddedPreviousObject] = None - context: typing.Optional[EventStreamCloudEventContext] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_connection_added_object.py b/src/auth0/management/types/event_stream_cloud_event_org_connection_added_object.py deleted file mode 100644 index dc6246aa..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_connection_added_object.py +++ /dev/null @@ -1,66 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_org_connection_added_object_connection import ( - EventStreamCloudEventOrgConnectionAddedObjectConnection, -) -from .event_stream_cloud_event_org_connection_added_object_organization import ( - EventStreamCloudEventOrgConnectionAddedObjectOrganization, -) -from .event_stream_cloud_event_org_connection_added_object_organization_access_level import ( - EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel, -) -from .event_stream_cloud_event_org_connection_added_object_organization_member_access_level import ( - EventStreamCloudEventOrgConnectionAddedObjectOrganizationMemberAccessLevel, -) - - -class EventStreamCloudEventOrgConnectionAddedObject(UniversalBaseModel): - """ - The event content. - """ - - organization: EventStreamCloudEventOrgConnectionAddedObjectOrganization - connection: EventStreamCloudEventOrgConnectionAddedObjectConnection - assign_membership_on_login: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true, all users that log in with this connection will be automatically granted membership - in the organization. When false, users must be granted membership in the organization before - logging in with this connection. - """ - - show_as_button: typing.Optional[bool] = pydantic.Field(default=None) - """ - Determines whether a connection should be displayed on this organization’s login prompt. - Only applicable for enterprise connections. - """ - - is_signup_enabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - Determines whether organization signup should be enabled for this organization connection. - Only applicable for database connections. - """ - - is_enabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - Determines whether the connection is enabled for the organization. - """ - - organization_access_level: typing.Optional[EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel] = ( - None - ) - organization_member_access_level: typing.Optional[ - EventStreamCloudEventOrgConnectionAddedObjectOrganizationMemberAccessLevel - ] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_connection_added_object_connection.py b/src/auth0/management/types/event_stream_cloud_event_org_connection_added_object_connection.py deleted file mode 100644 index e27d5b53..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_connection_added_object_connection.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventOrgConnectionAddedObjectConnection(UniversalBaseModel): - id: str = pydantic.Field() - """ - The ID of the connection. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_connection_added_object_organization.py b/src/auth0/management/types/event_stream_cloud_event_org_connection_added_object_organization.py deleted file mode 100644 index f92d2065..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_connection_added_object_organization.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventOrgConnectionAddedObjectOrganization(UniversalBaseModel): - """ - Information about an Auth0 Organization. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The human-readable identifier for the organization that will be used by end-users to direct them to their organization in your application.. - """ - - id: str = pydantic.Field() - """ - ID of the organization. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_connection_added_object_organization_access_level.py b/src/auth0/management/types/event_stream_cloud_event_org_connection_added_object_organization_access_level.py deleted file mode 100644 index 1111eeed..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_connection_added_object_organization_access_level.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .event_stream_cloud_event_org_connection_added_object_organization_access_level_0_enum import ( - EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel0Enum, -) -from .event_stream_cloud_event_org_connection_added_object_organization_access_level_1_enum import ( - EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel1Enum, -) -from .event_stream_cloud_event_org_connection_added_object_organization_access_level_2_enum import ( - EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel2Enum, -) -from .event_stream_cloud_event_org_connection_added_object_organization_access_level_3_enum import ( - EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel3Enum, -) - -EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel = typing.Union[ - EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel0Enum, - EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel1Enum, - EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel2Enum, - EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel3Enum, -] diff --git a/src/auth0/management/types/event_stream_cloud_event_org_connection_added_object_organization_access_level_0_enum.py b/src/auth0/management/types/event_stream_cloud_event_org_connection_added_object_organization_access_level_0_enum.py deleted file mode 100644 index 9069a1fc..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_connection_added_object_organization_access_level_0_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel0Enum = typing.Union[ - typing.Literal["none"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_org_connection_added_object_organization_access_level_1_enum.py b/src/auth0/management/types/event_stream_cloud_event_org_connection_added_object_organization_access_level_1_enum.py deleted file mode 100644 index 560a2414..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_connection_added_object_organization_access_level_1_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel1Enum = typing.Union[ - typing.Literal["readonly"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_org_connection_added_object_organization_access_level_2_enum.py b/src/auth0/management/types/event_stream_cloud_event_org_connection_added_object_organization_access_level_2_enum.py deleted file mode 100644 index a0b082b6..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_connection_added_object_organization_access_level_2_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel2Enum = typing.Union[ - typing.Literal["limited"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_org_connection_added_object_organization_access_level_3_enum.py b/src/auth0/management/types/event_stream_cloud_event_org_connection_added_object_organization_access_level_3_enum.py deleted file mode 100644 index 662e0f51..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_connection_added_object_organization_access_level_3_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventOrgConnectionAddedObjectOrganizationAccessLevel3Enum = typing.Union[ - typing.Literal["full"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_org_connection_added_object_organization_member_access_level.py b/src/auth0/management/types/event_stream_cloud_event_org_connection_added_object_organization_member_access_level.py deleted file mode 100644 index 5cd0e0e1..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_connection_added_object_organization_member_access_level.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .event_stream_cloud_event_org_connection_added_object_organization_member_access_level_0_enum import ( - EventStreamCloudEventOrgConnectionAddedObjectOrganizationMemberAccessLevel0Enum, -) -from .event_stream_cloud_event_org_connection_added_object_organization_member_access_level_1_enum import ( - EventStreamCloudEventOrgConnectionAddedObjectOrganizationMemberAccessLevel1Enum, -) -from .event_stream_cloud_event_org_connection_added_object_organization_member_access_level_2_enum import ( - EventStreamCloudEventOrgConnectionAddedObjectOrganizationMemberAccessLevel2Enum, -) -from .event_stream_cloud_event_org_connection_added_object_organization_member_access_level_3_enum import ( - EventStreamCloudEventOrgConnectionAddedObjectOrganizationMemberAccessLevel3Enum, -) - -EventStreamCloudEventOrgConnectionAddedObjectOrganizationMemberAccessLevel = typing.Union[ - EventStreamCloudEventOrgConnectionAddedObjectOrganizationMemberAccessLevel0Enum, - EventStreamCloudEventOrgConnectionAddedObjectOrganizationMemberAccessLevel1Enum, - EventStreamCloudEventOrgConnectionAddedObjectOrganizationMemberAccessLevel2Enum, - EventStreamCloudEventOrgConnectionAddedObjectOrganizationMemberAccessLevel3Enum, -] diff --git a/src/auth0/management/types/event_stream_cloud_event_org_connection_added_object_organization_member_access_level_0_enum.py b/src/auth0/management/types/event_stream_cloud_event_org_connection_added_object_organization_member_access_level_0_enum.py deleted file mode 100644 index a74eb699..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_connection_added_object_organization_member_access_level_0_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventOrgConnectionAddedObjectOrganizationMemberAccessLevel0Enum = typing.Union[ - typing.Literal["none"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_org_connection_added_object_organization_member_access_level_1_enum.py b/src/auth0/management/types/event_stream_cloud_event_org_connection_added_object_organization_member_access_level_1_enum.py deleted file mode 100644 index f8763297..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_connection_added_object_organization_member_access_level_1_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventOrgConnectionAddedObjectOrganizationMemberAccessLevel1Enum = typing.Union[ - typing.Literal["readonly"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_org_connection_added_object_organization_member_access_level_2_enum.py b/src/auth0/management/types/event_stream_cloud_event_org_connection_added_object_organization_member_access_level_2_enum.py deleted file mode 100644 index 880e3274..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_connection_added_object_organization_member_access_level_2_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventOrgConnectionAddedObjectOrganizationMemberAccessLevel2Enum = typing.Union[ - typing.Literal["limited"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_org_connection_added_object_organization_member_access_level_3_enum.py b/src/auth0/management/types/event_stream_cloud_event_org_connection_added_object_organization_member_access_level_3_enum.py deleted file mode 100644 index 6273aa19..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_connection_added_object_organization_member_access_level_3_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventOrgConnectionAddedObjectOrganizationMemberAccessLevel3Enum = typing.Union[ - typing.Literal["full"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_org_connection_added_previous_object.py b/src/auth0/management/types/event_stream_cloud_event_org_connection_added_previous_object.py deleted file mode 100644 index b1a034f3..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_connection_added_previous_object.py +++ /dev/null @@ -1,66 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_org_connection_added_previous_object_connection import ( - EventStreamCloudEventOrgConnectionAddedPreviousObjectConnection, -) -from .event_stream_cloud_event_org_connection_added_previous_object_organization import ( - EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganization, -) -from .event_stream_cloud_event_org_connection_added_previous_object_organization_access_level import ( - EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel, -) -from .event_stream_cloud_event_org_connection_added_previous_object_organization_member_access_level import ( - EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationMemberAccessLevel, -) - - -class EventStreamCloudEventOrgConnectionAddedPreviousObject(UniversalBaseModel): - """ - The event content as it was prior to the change described by this event, when applicable. - """ - - organization: EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganization - connection: EventStreamCloudEventOrgConnectionAddedPreviousObjectConnection - assign_membership_on_login: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true, all users that log in with this connection will be automatically granted membership - in the organization. When false, users must be granted membership in the organization before - logging in with this connection. - """ - - show_as_button: typing.Optional[bool] = pydantic.Field(default=None) - """ - Determines whether a connection should be displayed on this organization’s login prompt. - Only applicable for enterprise connections. - """ - - is_signup_enabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - Determines whether organization signup should be enabled for this organization connection. - Only applicable for database connections. - """ - - is_enabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - Determines whether the connection is enabled for the organization. - """ - - organization_access_level: typing.Optional[ - EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel - ] = None - organization_member_access_level: typing.Optional[ - EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationMemberAccessLevel - ] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_connection_added_previous_object_connection.py b/src/auth0/management/types/event_stream_cloud_event_org_connection_added_previous_object_connection.py deleted file mode 100644 index 0d236246..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_connection_added_previous_object_connection.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventOrgConnectionAddedPreviousObjectConnection(UniversalBaseModel): - id: str = pydantic.Field() - """ - The ID of the connection. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_connection_added_previous_object_organization.py b/src/auth0/management/types/event_stream_cloud_event_org_connection_added_previous_object_organization.py deleted file mode 100644 index f25cf5ac..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_connection_added_previous_object_organization.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganization(UniversalBaseModel): - """ - Information about an Auth0 Organization. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The human-readable identifier for the organization that will be used by end-users to direct them to their organization in your application.. - """ - - id: str = pydantic.Field() - """ - ID of the organization. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_connection_added_previous_object_organization_access_level.py b/src/auth0/management/types/event_stream_cloud_event_org_connection_added_previous_object_organization_access_level.py deleted file mode 100644 index c2217101..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_connection_added_previous_object_organization_access_level.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .event_stream_cloud_event_org_connection_added_previous_object_organization_access_level_0_enum import ( - EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel0Enum, -) -from .event_stream_cloud_event_org_connection_added_previous_object_organization_access_level_1_enum import ( - EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel1Enum, -) -from .event_stream_cloud_event_org_connection_added_previous_object_organization_access_level_2_enum import ( - EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel2Enum, -) -from .event_stream_cloud_event_org_connection_added_previous_object_organization_access_level_3_enum import ( - EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel3Enum, -) - -EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel = typing.Union[ - EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel0Enum, - EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel1Enum, - EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel2Enum, - EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel3Enum, -] diff --git a/src/auth0/management/types/event_stream_cloud_event_org_connection_added_previous_object_organization_access_level_0_enum.py b/src/auth0/management/types/event_stream_cloud_event_org_connection_added_previous_object_organization_access_level_0_enum.py deleted file mode 100644 index 204719ff..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_connection_added_previous_object_organization_access_level_0_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel0Enum = typing.Union[ - typing.Literal["none"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_org_connection_added_previous_object_organization_access_level_1_enum.py b/src/auth0/management/types/event_stream_cloud_event_org_connection_added_previous_object_organization_access_level_1_enum.py deleted file mode 100644 index cf3f0bb9..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_connection_added_previous_object_organization_access_level_1_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel1Enum = typing.Union[ - typing.Literal["readonly"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_org_connection_added_previous_object_organization_access_level_2_enum.py b/src/auth0/management/types/event_stream_cloud_event_org_connection_added_previous_object_organization_access_level_2_enum.py deleted file mode 100644 index 55612542..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_connection_added_previous_object_organization_access_level_2_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel2Enum = typing.Union[ - typing.Literal["limited"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_org_connection_added_previous_object_organization_access_level_3_enum.py b/src/auth0/management/types/event_stream_cloud_event_org_connection_added_previous_object_organization_access_level_3_enum.py deleted file mode 100644 index 6121a8c0..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_connection_added_previous_object_organization_access_level_3_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationAccessLevel3Enum = typing.Union[ - typing.Literal["full"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_org_connection_added_previous_object_organization_member_access_level.py b/src/auth0/management/types/event_stream_cloud_event_org_connection_added_previous_object_organization_member_access_level.py deleted file mode 100644 index c2c19780..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_connection_added_previous_object_organization_member_access_level.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .event_stream_cloud_event_org_connection_added_previous_object_organization_member_access_level_0_enum import ( - EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationMemberAccessLevel0Enum, -) -from .event_stream_cloud_event_org_connection_added_previous_object_organization_member_access_level_1_enum import ( - EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationMemberAccessLevel1Enum, -) -from .event_stream_cloud_event_org_connection_added_previous_object_organization_member_access_level_2_enum import ( - EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationMemberAccessLevel2Enum, -) -from .event_stream_cloud_event_org_connection_added_previous_object_organization_member_access_level_3_enum import ( - EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationMemberAccessLevel3Enum, -) - -EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationMemberAccessLevel = typing.Union[ - EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationMemberAccessLevel0Enum, - EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationMemberAccessLevel1Enum, - EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationMemberAccessLevel2Enum, - EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationMemberAccessLevel3Enum, -] diff --git a/src/auth0/management/types/event_stream_cloud_event_org_connection_added_previous_object_organization_member_access_level_0_enum.py b/src/auth0/management/types/event_stream_cloud_event_org_connection_added_previous_object_organization_member_access_level_0_enum.py deleted file mode 100644 index d4ab69f4..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_connection_added_previous_object_organization_member_access_level_0_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationMemberAccessLevel0Enum = typing.Union[ - typing.Literal["none"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_org_connection_added_previous_object_organization_member_access_level_1_enum.py b/src/auth0/management/types/event_stream_cloud_event_org_connection_added_previous_object_organization_member_access_level_1_enum.py deleted file mode 100644 index 9a9ebaa4..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_connection_added_previous_object_organization_member_access_level_1_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationMemberAccessLevel1Enum = typing.Union[ - typing.Literal["readonly"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_org_connection_added_previous_object_organization_member_access_level_2_enum.py b/src/auth0/management/types/event_stream_cloud_event_org_connection_added_previous_object_organization_member_access_level_2_enum.py deleted file mode 100644 index a1593a0f..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_connection_added_previous_object_organization_member_access_level_2_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationMemberAccessLevel2Enum = typing.Union[ - typing.Literal["limited"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_org_connection_added_previous_object_organization_member_access_level_3_enum.py b/src/auth0/management/types/event_stream_cloud_event_org_connection_added_previous_object_organization_member_access_level_3_enum.py deleted file mode 100644 index a65f7b8d..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_connection_added_previous_object_organization_member_access_level_3_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventOrgConnectionAddedPreviousObjectOrganizationMemberAccessLevel3Enum = typing.Union[ - typing.Literal["full"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_org_connection_added_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_org_connection_added_type_enum.py deleted file mode 100644 index 5785025f..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_connection_added_type_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventOrgConnectionAddedTypeEnum = typing.Union[ - typing.Literal["organization.connection.added"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_org_connection_removed.py b/src/auth0/management/types/event_stream_cloud_event_org_connection_removed.py deleted file mode 100644 index d395dc34..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_connection_removed.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_org_connection_removed_cloud_event import ( - EventStreamCloudEventOrgConnectionRemovedCloudEvent, -) - - -class EventStreamCloudEventOrgConnectionRemoved(UniversalBaseModel): - """ - SSE message for organization.connection.removed. - """ - - offset: str = pydantic.Field() - """ - Opaque cursor representing position in the stream. Pass as the `from` query parameter to resume. - """ - - event: EventStreamCloudEventOrgConnectionRemovedCloudEvent - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_connection_removed_cloud_event.py b/src/auth0/management/types/event_stream_cloud_event_org_connection_removed_cloud_event.py deleted file mode 100644 index 305f80ef..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_connection_removed_cloud_event.py +++ /dev/null @@ -1,77 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_a_0_purpose_enum import EventStreamCloudEventA0PurposeEnum -from .event_stream_cloud_event_org_connection_removed_cloud_event_type_enum import ( - EventStreamCloudEventOrgConnectionRemovedCloudEventTypeEnum, -) -from .event_stream_cloud_event_org_connection_removed_data import EventStreamCloudEventOrgConnectionRemovedData -from .event_stream_cloud_event_spec_version_enum import EventStreamCloudEventSpecVersionEnum - - -class EventStreamCloudEventOrgConnectionRemovedCloudEvent(UniversalBaseModel): - """ - Represents an event that occurs when a connection is removed from an organization. - """ - - specversion: EventStreamCloudEventSpecVersionEnum - type: EventStreamCloudEventOrgConnectionRemovedCloudEventTypeEnum - source: str = pydantic.Field() - """ - The source of the event. This will take the form 'urn:auth0:.'. - """ - - id: str = pydantic.Field() - """ - A unique identifier for the event. - """ - - time: dt.datetime = pydantic.Field() - """ - An ISO-8601 timestamp indicating when the event physically occurred. - """ - - data: EventStreamCloudEventOrgConnectionRemovedData - a_0_tenant: typing_extensions.Annotated[ - str, - FieldMetadata(alias="a0tenant"), - pydantic.Field(alias="a0tenant", description="The auth0 tenant ID to which the event is associated."), - ] - """ - The auth0 tenant ID to which the event is associated. - """ - - a_0_stream: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="a0stream"), - pydantic.Field( - alias="a0stream", - description="The auth0 event stream ID of the stream the event was delivered on.\nPresent when the event is delivered via an event stream; omitted when\nevents are retrieved via the Events API (GET /api/v2/events).", - ), - ] = None - """ - The auth0 event stream ID of the stream the event was delivered on. - Present when the event is delivered via an event stream; omitted when - events are retrieved via the Events API (GET /api/v2/events). - """ - - a_0_purpose: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventA0PurposeEnum], - FieldMetadata(alias="a0purpose"), - pydantic.Field(alias="a0purpose"), - ] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_connection_removed_cloud_event_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_org_connection_removed_cloud_event_type_enum.py deleted file mode 100644 index 624f5e5a..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_connection_removed_cloud_event_type_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventOrgConnectionRemovedCloudEventTypeEnum = typing.Union[ - typing.Literal["organization.connection.removed"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_org_connection_removed_data.py b/src/auth0/management/types/event_stream_cloud_event_org_connection_removed_data.py deleted file mode 100644 index 6e414909..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_connection_removed_data.py +++ /dev/null @@ -1,30 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_context import EventStreamCloudEventContext -from .event_stream_cloud_event_org_connection_removed_object import EventStreamCloudEventOrgConnectionRemovedObject -from .event_stream_cloud_event_org_connection_removed_previous_object import ( - EventStreamCloudEventOrgConnectionRemovedPreviousObject, -) - - -class EventStreamCloudEventOrgConnectionRemovedData(UniversalBaseModel): - """ - The event payload. - """ - - object: EventStreamCloudEventOrgConnectionRemovedObject - previous_object: typing.Optional[EventStreamCloudEventOrgConnectionRemovedPreviousObject] = None - context: typing.Optional[EventStreamCloudEventContext] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_connection_removed_object.py b/src/auth0/management/types/event_stream_cloud_event_org_connection_removed_object.py deleted file mode 100644 index ac58e383..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_connection_removed_object.py +++ /dev/null @@ -1,30 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_org_connection_removed_object_connection import ( - EventStreamCloudEventOrgConnectionRemovedObjectConnection, -) -from .event_stream_cloud_event_org_connection_removed_object_organization import ( - EventStreamCloudEventOrgConnectionRemovedObjectOrganization, -) - - -class EventStreamCloudEventOrgConnectionRemovedObject(UniversalBaseModel): - """ - The event content. - """ - - organization: EventStreamCloudEventOrgConnectionRemovedObjectOrganization - connection: EventStreamCloudEventOrgConnectionRemovedObjectConnection - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_connection_removed_object_connection.py b/src/auth0/management/types/event_stream_cloud_event_org_connection_removed_object_connection.py deleted file mode 100644 index b9b0dea4..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_connection_removed_object_connection.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventOrgConnectionRemovedObjectConnection(UniversalBaseModel): - id: str = pydantic.Field() - """ - The ID of the connection. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_connection_removed_object_organization.py b/src/auth0/management/types/event_stream_cloud_event_org_connection_removed_object_organization.py deleted file mode 100644 index 43803db0..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_connection_removed_object_organization.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventOrgConnectionRemovedObjectOrganization(UniversalBaseModel): - """ - Information about an Auth0 Organization. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The human-readable identifier for the organization that will be used by end-users to direct them to their organization in your application.. - """ - - id: str = pydantic.Field() - """ - ID of the organization. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_connection_removed_previous_object.py b/src/auth0/management/types/event_stream_cloud_event_org_connection_removed_previous_object.py deleted file mode 100644 index 87f220d4..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_connection_removed_previous_object.py +++ /dev/null @@ -1,30 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_org_connection_removed_previous_object_connection import ( - EventStreamCloudEventOrgConnectionRemovedPreviousObjectConnection, -) -from .event_stream_cloud_event_org_connection_removed_previous_object_organization import ( - EventStreamCloudEventOrgConnectionRemovedPreviousObjectOrganization, -) - - -class EventStreamCloudEventOrgConnectionRemovedPreviousObject(UniversalBaseModel): - """ - The event content as it was prior to the change described by this event, when applicable. - """ - - organization: EventStreamCloudEventOrgConnectionRemovedPreviousObjectOrganization - connection: EventStreamCloudEventOrgConnectionRemovedPreviousObjectConnection - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_connection_removed_previous_object_connection.py b/src/auth0/management/types/event_stream_cloud_event_org_connection_removed_previous_object_connection.py deleted file mode 100644 index e17d3132..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_connection_removed_previous_object_connection.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventOrgConnectionRemovedPreviousObjectConnection(UniversalBaseModel): - id: str = pydantic.Field() - """ - The ID of the connection. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_connection_removed_previous_object_organization.py b/src/auth0/management/types/event_stream_cloud_event_org_connection_removed_previous_object_organization.py deleted file mode 100644 index fd7f896d..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_connection_removed_previous_object_organization.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventOrgConnectionRemovedPreviousObjectOrganization(UniversalBaseModel): - """ - Information about an Auth0 Organization. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The human-readable identifier for the organization that will be used by end-users to direct them to their organization in your application.. - """ - - id: str = pydantic.Field() - """ - ID of the organization. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_connection_removed_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_org_connection_removed_type_enum.py deleted file mode 100644 index 6fffa5ef..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_connection_removed_type_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventOrgConnectionRemovedTypeEnum = typing.Union[ - typing.Literal["organization.connection.removed"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_org_connection_updated.py b/src/auth0/management/types/event_stream_cloud_event_org_connection_updated.py deleted file mode 100644 index a0bc9976..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_connection_updated.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_org_connection_updated_cloud_event import ( - EventStreamCloudEventOrgConnectionUpdatedCloudEvent, -) - - -class EventStreamCloudEventOrgConnectionUpdated(UniversalBaseModel): - """ - SSE message for organization.connection.updated. - """ - - offset: str = pydantic.Field() - """ - Opaque cursor representing position in the stream. Pass as the `from` query parameter to resume. - """ - - event: EventStreamCloudEventOrgConnectionUpdatedCloudEvent - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_cloud_event.py b/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_cloud_event.py deleted file mode 100644 index 8afd9d66..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_cloud_event.py +++ /dev/null @@ -1,77 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_a_0_purpose_enum import EventStreamCloudEventA0PurposeEnum -from .event_stream_cloud_event_org_connection_updated_cloud_event_type_enum import ( - EventStreamCloudEventOrgConnectionUpdatedCloudEventTypeEnum, -) -from .event_stream_cloud_event_org_connection_updated_data import EventStreamCloudEventOrgConnectionUpdatedData -from .event_stream_cloud_event_spec_version_enum import EventStreamCloudEventSpecVersionEnum - - -class EventStreamCloudEventOrgConnectionUpdatedCloudEvent(UniversalBaseModel): - """ - Represents an event that occurs when a organization connection is updated. - """ - - specversion: EventStreamCloudEventSpecVersionEnum - type: EventStreamCloudEventOrgConnectionUpdatedCloudEventTypeEnum - source: str = pydantic.Field() - """ - The source of the event. This will take the form 'urn:auth0:.'. - """ - - id: str = pydantic.Field() - """ - A unique identifier for the event. - """ - - time: dt.datetime = pydantic.Field() - """ - An ISO-8601 timestamp indicating when the event physically occurred. - """ - - data: EventStreamCloudEventOrgConnectionUpdatedData - a_0_tenant: typing_extensions.Annotated[ - str, - FieldMetadata(alias="a0tenant"), - pydantic.Field(alias="a0tenant", description="The auth0 tenant ID to which the event is associated."), - ] - """ - The auth0 tenant ID to which the event is associated. - """ - - a_0_stream: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="a0stream"), - pydantic.Field( - alias="a0stream", - description="The auth0 event stream ID of the stream the event was delivered on.\nPresent when the event is delivered via an event stream; omitted when\nevents are retrieved via the Events API (GET /api/v2/events).", - ), - ] = None - """ - The auth0 event stream ID of the stream the event was delivered on. - Present when the event is delivered via an event stream; omitted when - events are retrieved via the Events API (GET /api/v2/events). - """ - - a_0_purpose: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventA0PurposeEnum], - FieldMetadata(alias="a0purpose"), - pydantic.Field(alias="a0purpose"), - ] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_cloud_event_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_cloud_event_type_enum.py deleted file mode 100644 index 0a46e2ae..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_cloud_event_type_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventOrgConnectionUpdatedCloudEventTypeEnum = typing.Union[ - typing.Literal["organization.connection.updated"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_data.py b/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_data.py deleted file mode 100644 index 77aed87b..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_data.py +++ /dev/null @@ -1,30 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_context import EventStreamCloudEventContext -from .event_stream_cloud_event_org_connection_updated_object import EventStreamCloudEventOrgConnectionUpdatedObject -from .event_stream_cloud_event_org_connection_updated_previous_object import ( - EventStreamCloudEventOrgConnectionUpdatedPreviousObject, -) - - -class EventStreamCloudEventOrgConnectionUpdatedData(UniversalBaseModel): - """ - The event payload. - """ - - object: EventStreamCloudEventOrgConnectionUpdatedObject - previous_object: typing.Optional[EventStreamCloudEventOrgConnectionUpdatedPreviousObject] = None - context: typing.Optional[EventStreamCloudEventContext] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_object.py b/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_object.py deleted file mode 100644 index 28ae5ca5..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_object.py +++ /dev/null @@ -1,66 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_org_connection_updated_object_connection import ( - EventStreamCloudEventOrgConnectionUpdatedObjectConnection, -) -from .event_stream_cloud_event_org_connection_updated_object_organization import ( - EventStreamCloudEventOrgConnectionUpdatedObjectOrganization, -) -from .event_stream_cloud_event_org_connection_updated_object_organization_access_level import ( - EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel, -) -from .event_stream_cloud_event_org_connection_updated_object_organization_member_access_level import ( - EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationMemberAccessLevel, -) - - -class EventStreamCloudEventOrgConnectionUpdatedObject(UniversalBaseModel): - """ - The event content. - """ - - organization: EventStreamCloudEventOrgConnectionUpdatedObjectOrganization - connection: EventStreamCloudEventOrgConnectionUpdatedObjectConnection - assign_membership_on_login: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true, all users that log in with this connection will be automatically granted membership - in the organization. When false, users must be granted membership in the organization before - logging in with this connection. - """ - - show_as_button: typing.Optional[bool] = pydantic.Field(default=None) - """ - Determines whether a connection should be displayed on this organization’s login prompt. - Only applicable for enterprise connections. - """ - - is_signup_enabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - Determines whether organization signup should be enabled for this organization connection. - Only applicable for database connections. - """ - - is_enabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - Determines whether the connection is enabled for the organization. - """ - - organization_access_level: typing.Optional[ - EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel - ] = None - organization_member_access_level: typing.Optional[ - EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationMemberAccessLevel - ] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_object_connection.py b/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_object_connection.py deleted file mode 100644 index 21e46ef8..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_object_connection.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventOrgConnectionUpdatedObjectConnection(UniversalBaseModel): - id: str = pydantic.Field() - """ - The ID of the connection. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_object_organization.py b/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_object_organization.py deleted file mode 100644 index 45650fdd..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_object_organization.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventOrgConnectionUpdatedObjectOrganization(UniversalBaseModel): - """ - Information about an Auth0 Organization. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The human-readable identifier for the organization that will be used by end-users to direct them to their organization in your application.. - """ - - id: str = pydantic.Field() - """ - ID of the organization. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_object_organization_access_level.py b/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_object_organization_access_level.py deleted file mode 100644 index f8218454..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_object_organization_access_level.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .event_stream_cloud_event_org_connection_updated_object_organization_access_level_0_enum import ( - EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel0Enum, -) -from .event_stream_cloud_event_org_connection_updated_object_organization_access_level_1_enum import ( - EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel1Enum, -) -from .event_stream_cloud_event_org_connection_updated_object_organization_access_level_2_enum import ( - EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel2Enum, -) -from .event_stream_cloud_event_org_connection_updated_object_organization_access_level_3_enum import ( - EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel3Enum, -) - -EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel = typing.Union[ - EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel0Enum, - EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel1Enum, - EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel2Enum, - EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel3Enum, -] diff --git a/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_object_organization_access_level_0_enum.py b/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_object_organization_access_level_0_enum.py deleted file mode 100644 index 38a00552..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_object_organization_access_level_0_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel0Enum = typing.Union[ - typing.Literal["none"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_object_organization_access_level_1_enum.py b/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_object_organization_access_level_1_enum.py deleted file mode 100644 index a967b417..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_object_organization_access_level_1_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel1Enum = typing.Union[ - typing.Literal["readonly"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_object_organization_access_level_2_enum.py b/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_object_organization_access_level_2_enum.py deleted file mode 100644 index b24bee6e..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_object_organization_access_level_2_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel2Enum = typing.Union[ - typing.Literal["limited"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_object_organization_access_level_3_enum.py b/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_object_organization_access_level_3_enum.py deleted file mode 100644 index a6c1df70..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_object_organization_access_level_3_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationAccessLevel3Enum = typing.Union[ - typing.Literal["full"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_object_organization_member_access_level.py b/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_object_organization_member_access_level.py deleted file mode 100644 index 8945f1ff..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_object_organization_member_access_level.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .event_stream_cloud_event_org_connection_updated_object_organization_member_access_level_0_enum import ( - EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationMemberAccessLevel0Enum, -) -from .event_stream_cloud_event_org_connection_updated_object_organization_member_access_level_1_enum import ( - EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationMemberAccessLevel1Enum, -) -from .event_stream_cloud_event_org_connection_updated_object_organization_member_access_level_2_enum import ( - EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationMemberAccessLevel2Enum, -) -from .event_stream_cloud_event_org_connection_updated_object_organization_member_access_level_3_enum import ( - EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationMemberAccessLevel3Enum, -) - -EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationMemberAccessLevel = typing.Union[ - EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationMemberAccessLevel0Enum, - EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationMemberAccessLevel1Enum, - EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationMemberAccessLevel2Enum, - EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationMemberAccessLevel3Enum, -] diff --git a/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_object_organization_member_access_level_0_enum.py b/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_object_organization_member_access_level_0_enum.py deleted file mode 100644 index 15fb0ff7..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_object_organization_member_access_level_0_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationMemberAccessLevel0Enum = typing.Union[ - typing.Literal["none"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_object_organization_member_access_level_1_enum.py b/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_object_organization_member_access_level_1_enum.py deleted file mode 100644 index c1a833ea..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_object_organization_member_access_level_1_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationMemberAccessLevel1Enum = typing.Union[ - typing.Literal["readonly"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_object_organization_member_access_level_2_enum.py b/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_object_organization_member_access_level_2_enum.py deleted file mode 100644 index 8a0597e1..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_object_organization_member_access_level_2_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationMemberAccessLevel2Enum = typing.Union[ - typing.Literal["limited"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_object_organization_member_access_level_3_enum.py b/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_object_organization_member_access_level_3_enum.py deleted file mode 100644 index d748dbcc..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_object_organization_member_access_level_3_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventOrgConnectionUpdatedObjectOrganizationMemberAccessLevel3Enum = typing.Union[ - typing.Literal["full"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_previous_object.py b/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_previous_object.py deleted file mode 100644 index 1d4c3ba0..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_previous_object.py +++ /dev/null @@ -1,66 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_org_connection_updated_previous_object_connection import ( - EventStreamCloudEventOrgConnectionUpdatedPreviousObjectConnection, -) -from .event_stream_cloud_event_org_connection_updated_previous_object_organization import ( - EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganization, -) -from .event_stream_cloud_event_org_connection_updated_previous_object_organization_access_level import ( - EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel, -) -from .event_stream_cloud_event_org_connection_updated_previous_object_organization_member_access_level import ( - EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationMemberAccessLevel, -) - - -class EventStreamCloudEventOrgConnectionUpdatedPreviousObject(UniversalBaseModel): - """ - The event content as it was prior to the change described by this event, when applicable. - """ - - organization: EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganization - connection: EventStreamCloudEventOrgConnectionUpdatedPreviousObjectConnection - assign_membership_on_login: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true, all users that log in with this connection will be automatically granted membership - in the organization. When false, users must be granted membership in the organization before - logging in with this connection. - """ - - show_as_button: typing.Optional[bool] = pydantic.Field(default=None) - """ - Determines whether a connection should be displayed on this organization’s login prompt. - Only applicable for enterprise connections. - """ - - is_signup_enabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - Determines whether organization signup should be enabled for this organization connection. - Only applicable for database connections. - """ - - is_enabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - Determines whether the connection is enabled for the organization. - """ - - organization_access_level: typing.Optional[ - EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel - ] = None - organization_member_access_level: typing.Optional[ - EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationMemberAccessLevel - ] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_previous_object_connection.py b/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_previous_object_connection.py deleted file mode 100644 index c038a15a..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_previous_object_connection.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventOrgConnectionUpdatedPreviousObjectConnection(UniversalBaseModel): - id: str = pydantic.Field() - """ - The ID of the connection. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_previous_object_organization.py b/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_previous_object_organization.py deleted file mode 100644 index 6afd5800..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_previous_object_organization.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganization(UniversalBaseModel): - """ - Information about an Auth0 Organization. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The human-readable identifier for the organization that will be used by end-users to direct them to their organization in your application.. - """ - - id: str = pydantic.Field() - """ - ID of the organization. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_previous_object_organization_access_level.py b/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_previous_object_organization_access_level.py deleted file mode 100644 index 7a42e572..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_previous_object_organization_access_level.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .event_stream_cloud_event_org_connection_updated_previous_object_organization_access_level_0_enum import ( - EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel0Enum, -) -from .event_stream_cloud_event_org_connection_updated_previous_object_organization_access_level_1_enum import ( - EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel1Enum, -) -from .event_stream_cloud_event_org_connection_updated_previous_object_organization_access_level_2_enum import ( - EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel2Enum, -) -from .event_stream_cloud_event_org_connection_updated_previous_object_organization_access_level_3_enum import ( - EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel3Enum, -) - -EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel = typing.Union[ - EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel0Enum, - EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel1Enum, - EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel2Enum, - EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel3Enum, -] diff --git a/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_previous_object_organization_access_level_0_enum.py b/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_previous_object_organization_access_level_0_enum.py deleted file mode 100644 index b9e82974..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_previous_object_organization_access_level_0_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel0Enum = typing.Union[ - typing.Literal["none"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_previous_object_organization_access_level_1_enum.py b/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_previous_object_organization_access_level_1_enum.py deleted file mode 100644 index a0e3072f..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_previous_object_organization_access_level_1_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel1Enum = typing.Union[ - typing.Literal["readonly"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_previous_object_organization_access_level_2_enum.py b/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_previous_object_organization_access_level_2_enum.py deleted file mode 100644 index 68cd436a..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_previous_object_organization_access_level_2_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel2Enum = typing.Union[ - typing.Literal["limited"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_previous_object_organization_access_level_3_enum.py b/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_previous_object_organization_access_level_3_enum.py deleted file mode 100644 index 93c3b346..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_previous_object_organization_access_level_3_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationAccessLevel3Enum = typing.Union[ - typing.Literal["full"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_previous_object_organization_member_access_level.py b/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_previous_object_organization_member_access_level.py deleted file mode 100644 index cf539427..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_previous_object_organization_member_access_level.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .event_stream_cloud_event_org_connection_updated_previous_object_organization_member_access_level_0_enum import ( - EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationMemberAccessLevel0Enum, -) -from .event_stream_cloud_event_org_connection_updated_previous_object_organization_member_access_level_1_enum import ( - EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationMemberAccessLevel1Enum, -) -from .event_stream_cloud_event_org_connection_updated_previous_object_organization_member_access_level_2_enum import ( - EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationMemberAccessLevel2Enum, -) -from .event_stream_cloud_event_org_connection_updated_previous_object_organization_member_access_level_3_enum import ( - EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationMemberAccessLevel3Enum, -) - -EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationMemberAccessLevel = typing.Union[ - EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationMemberAccessLevel0Enum, - EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationMemberAccessLevel1Enum, - EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationMemberAccessLevel2Enum, - EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationMemberAccessLevel3Enum, -] diff --git a/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_previous_object_organization_member_access_level_0_enum.py b/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_previous_object_organization_member_access_level_0_enum.py deleted file mode 100644 index ee2a7cea..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_previous_object_organization_member_access_level_0_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationMemberAccessLevel0Enum = typing.Union[ - typing.Literal["none"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_previous_object_organization_member_access_level_1_enum.py b/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_previous_object_organization_member_access_level_1_enum.py deleted file mode 100644 index 46a0a81a..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_previous_object_organization_member_access_level_1_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationMemberAccessLevel1Enum = typing.Union[ - typing.Literal["readonly"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_previous_object_organization_member_access_level_2_enum.py b/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_previous_object_organization_member_access_level_2_enum.py deleted file mode 100644 index 2fb9aab8..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_previous_object_organization_member_access_level_2_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationMemberAccessLevel2Enum = typing.Union[ - typing.Literal["limited"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_previous_object_organization_member_access_level_3_enum.py b/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_previous_object_organization_member_access_level_3_enum.py deleted file mode 100644 index 2aba1018..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_previous_object_organization_member_access_level_3_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventOrgConnectionUpdatedPreviousObjectOrganizationMemberAccessLevel3Enum = typing.Union[ - typing.Literal["full"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_type_enum.py deleted file mode 100644 index a5f837f9..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_connection_updated_type_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventOrgConnectionUpdatedTypeEnum = typing.Union[ - typing.Literal["organization.connection.updated"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_org_created.py b/src/auth0/management/types/event_stream_cloud_event_org_created.py deleted file mode 100644 index edb829a3..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_created.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_org_created_cloud_event import EventStreamCloudEventOrgCreatedCloudEvent - - -class EventStreamCloudEventOrgCreated(UniversalBaseModel): - """ - SSE message for organization.created. - """ - - offset: str = pydantic.Field() - """ - Opaque cursor representing position in the stream. Pass as the `from` query parameter to resume. - """ - - event: EventStreamCloudEventOrgCreatedCloudEvent - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_created_cloud_event.py b/src/auth0/management/types/event_stream_cloud_event_org_created_cloud_event.py deleted file mode 100644 index 8e581963..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_created_cloud_event.py +++ /dev/null @@ -1,77 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_a_0_purpose_enum import EventStreamCloudEventA0PurposeEnum -from .event_stream_cloud_event_org_created_cloud_event_type_enum import ( - EventStreamCloudEventOrgCreatedCloudEventTypeEnum, -) -from .event_stream_cloud_event_org_created_data import EventStreamCloudEventOrgCreatedData -from .event_stream_cloud_event_spec_version_enum import EventStreamCloudEventSpecVersionEnum - - -class EventStreamCloudEventOrgCreatedCloudEvent(UniversalBaseModel): - """ - Represents an event that occurs when an organization is created. - """ - - specversion: EventStreamCloudEventSpecVersionEnum - type: EventStreamCloudEventOrgCreatedCloudEventTypeEnum - source: str = pydantic.Field() - """ - The source of the event. This will take the form 'urn:auth0:.'. - """ - - id: str = pydantic.Field() - """ - A unique identifier for the event. - """ - - time: dt.datetime = pydantic.Field() - """ - An ISO-8601 timestamp indicating when the event physically occurred. - """ - - data: EventStreamCloudEventOrgCreatedData - a_0_tenant: typing_extensions.Annotated[ - str, - FieldMetadata(alias="a0tenant"), - pydantic.Field(alias="a0tenant", description="The auth0 tenant ID to which the event is associated."), - ] - """ - The auth0 tenant ID to which the event is associated. - """ - - a_0_stream: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="a0stream"), - pydantic.Field( - alias="a0stream", - description="The auth0 event stream ID of the stream the event was delivered on.\nPresent when the event is delivered via an event stream; omitted when\nevents are retrieved via the Events API (GET /api/v2/events).", - ), - ] = None - """ - The auth0 event stream ID of the stream the event was delivered on. - Present when the event is delivered via an event stream; omitted when - events are retrieved via the Events API (GET /api/v2/events). - """ - - a_0_purpose: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventA0PurposeEnum], - FieldMetadata(alias="a0purpose"), - pydantic.Field(alias="a0purpose"), - ] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_created_cloud_event_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_org_created_cloud_event_type_enum.py deleted file mode 100644 index 965eaa44..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_created_cloud_event_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventOrgCreatedCloudEventTypeEnum = typing.Union[typing.Literal["organization.created"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_org_created_data.py b/src/auth0/management/types/event_stream_cloud_event_org_created_data.py deleted file mode 100644 index 9da46ecc..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_created_data.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_context import EventStreamCloudEventContext -from .event_stream_cloud_event_org_created_object import EventStreamCloudEventOrgCreatedObject -from .event_stream_cloud_event_org_created_previous_object import EventStreamCloudEventOrgCreatedPreviousObject - - -class EventStreamCloudEventOrgCreatedData(UniversalBaseModel): - """ - The event payload. - """ - - object: EventStreamCloudEventOrgCreatedObject - previous_object: typing.Optional[EventStreamCloudEventOrgCreatedPreviousObject] = None - context: typing.Optional[EventStreamCloudEventContext] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_created_object.py b/src/auth0/management/types/event_stream_cloud_event_org_created_object.py deleted file mode 100644 index f0e48255..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_created_object.py +++ /dev/null @@ -1,41 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_org_created_object_branding import EventStreamCloudEventOrgCreatedObjectBranding -from .event_stream_cloud_event_org_created_object_metadata import EventStreamCloudEventOrgCreatedObjectMetadata - - -class EventStreamCloudEventOrgCreatedObject(UniversalBaseModel): - """ - The event content. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The human-readable identifier for the organization that will be used by end-users to direct them to their organization in your application.. - """ - - id: str = pydantic.Field() - """ - ID of the organization. - """ - - display_name: typing.Optional[str] = pydantic.Field(default=None) - """ - If set, the name that will be displayed to end-users for this organization in any interaction with them. - """ - - metadata: typing.Optional[EventStreamCloudEventOrgCreatedObjectMetadata] = None - branding: typing.Optional[EventStreamCloudEventOrgCreatedObjectBranding] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_created_object_branding.py b/src/auth0/management/types/event_stream_cloud_event_org_created_object_branding.py deleted file mode 100644 index 3b03fb48..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_created_object_branding.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_org_created_object_branding_colors import ( - EventStreamCloudEventOrgCreatedObjectBrandingColors, -) - - -class EventStreamCloudEventOrgCreatedObjectBranding(UniversalBaseModel): - """ - The branding associated with the organization. - """ - - logo_url: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of logo to display on login page. - """ - - colors: typing.Optional[EventStreamCloudEventOrgCreatedObjectBrandingColors] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_created_object_branding_colors.py b/src/auth0/management/types/event_stream_cloud_event_org_created_object_branding_colors.py deleted file mode 100644 index fb17d5ed..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_created_object_branding_colors.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventOrgCreatedObjectBrandingColors(UniversalBaseModel): - """ - Color scheme used to customize the login pages. - """ - - primary: typing.Optional[str] = pydantic.Field(default=None) - """ - HEX Color for primary elements. - """ - - page_background: typing.Optional[str] = pydantic.Field(default=None) - """ - HEX Color for background. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_created_object_metadata.py b/src/auth0/management/types/event_stream_cloud_event_org_created_object_metadata.py deleted file mode 100644 index f1e0608b..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_created_object_metadata.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventOrgCreatedObjectMetadata = typing.Dict[str, typing.Any] -""" -The metadata associated with the organization. -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_org_created_previous_object.py b/src/auth0/management/types/event_stream_cloud_event_org_created_previous_object.py deleted file mode 100644 index 2fd6adb6..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_created_previous_object.py +++ /dev/null @@ -1,45 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_org_created_previous_object_branding import ( - EventStreamCloudEventOrgCreatedPreviousObjectBranding, -) -from .event_stream_cloud_event_org_created_previous_object_metadata import ( - EventStreamCloudEventOrgCreatedPreviousObjectMetadata, -) - - -class EventStreamCloudEventOrgCreatedPreviousObject(UniversalBaseModel): - """ - The event content as it was prior to the change described by this event, when applicable. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The human-readable identifier for the organization that will be used by end-users to direct them to their organization in your application.. - """ - - id: str = pydantic.Field() - """ - ID of the organization. - """ - - display_name: typing.Optional[str] = pydantic.Field(default=None) - """ - If set, the name that will be displayed to end-users for this organization in any interaction with them. - """ - - metadata: typing.Optional[EventStreamCloudEventOrgCreatedPreviousObjectMetadata] = None - branding: typing.Optional[EventStreamCloudEventOrgCreatedPreviousObjectBranding] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_created_previous_object_branding.py b/src/auth0/management/types/event_stream_cloud_event_org_created_previous_object_branding.py deleted file mode 100644 index ef87494a..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_created_previous_object_branding.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_org_created_previous_object_branding_colors import ( - EventStreamCloudEventOrgCreatedPreviousObjectBrandingColors, -) - - -class EventStreamCloudEventOrgCreatedPreviousObjectBranding(UniversalBaseModel): - """ - The branding associated with the organization. - """ - - logo_url: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of logo to display on login page. - """ - - colors: typing.Optional[EventStreamCloudEventOrgCreatedPreviousObjectBrandingColors] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_created_previous_object_branding_colors.py b/src/auth0/management/types/event_stream_cloud_event_org_created_previous_object_branding_colors.py deleted file mode 100644 index 1e584d59..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_created_previous_object_branding_colors.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventOrgCreatedPreviousObjectBrandingColors(UniversalBaseModel): - """ - Color scheme used to customize the login pages. - """ - - primary: typing.Optional[str] = pydantic.Field(default=None) - """ - HEX Color for primary elements. - """ - - page_background: typing.Optional[str] = pydantic.Field(default=None) - """ - HEX Color for background. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_created_previous_object_metadata.py b/src/auth0/management/types/event_stream_cloud_event_org_created_previous_object_metadata.py deleted file mode 100644 index 964490c1..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_created_previous_object_metadata.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventOrgCreatedPreviousObjectMetadata = typing.Dict[str, typing.Any] -""" -The metadata associated with the organization. -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_org_created_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_org_created_type_enum.py deleted file mode 100644 index e9f19ab9..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_created_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventOrgCreatedTypeEnum = typing.Union[typing.Literal["organization.created"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_org_deleted.py b/src/auth0/management/types/event_stream_cloud_event_org_deleted.py deleted file mode 100644 index 9cad3be1..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_deleted.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_org_deleted_cloud_event import EventStreamCloudEventOrgDeletedCloudEvent - - -class EventStreamCloudEventOrgDeleted(UniversalBaseModel): - """ - SSE message for organization.deleted. - """ - - offset: str = pydantic.Field() - """ - Opaque cursor representing position in the stream. Pass as the `from` query parameter to resume. - """ - - event: EventStreamCloudEventOrgDeletedCloudEvent - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_deleted_cloud_event.py b/src/auth0/management/types/event_stream_cloud_event_org_deleted_cloud_event.py deleted file mode 100644 index 2187db05..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_deleted_cloud_event.py +++ /dev/null @@ -1,77 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_a_0_purpose_enum import EventStreamCloudEventA0PurposeEnum -from .event_stream_cloud_event_org_deleted_cloud_event_type_enum import ( - EventStreamCloudEventOrgDeletedCloudEventTypeEnum, -) -from .event_stream_cloud_event_org_deleted_data import EventStreamCloudEventOrgDeletedData -from .event_stream_cloud_event_spec_version_enum import EventStreamCloudEventSpecVersionEnum - - -class EventStreamCloudEventOrgDeletedCloudEvent(UniversalBaseModel): - """ - Represents an event that occurs when an organization is deleted. - """ - - specversion: EventStreamCloudEventSpecVersionEnum - type: EventStreamCloudEventOrgDeletedCloudEventTypeEnum - source: str = pydantic.Field() - """ - The source of the event. This will take the form 'urn:auth0:.'. - """ - - id: str = pydantic.Field() - """ - A unique identifier for the event. - """ - - time: dt.datetime = pydantic.Field() - """ - An ISO-8601 timestamp indicating when the event physically occurred. - """ - - data: EventStreamCloudEventOrgDeletedData - a_0_tenant: typing_extensions.Annotated[ - str, - FieldMetadata(alias="a0tenant"), - pydantic.Field(alias="a0tenant", description="The auth0 tenant ID to which the event is associated."), - ] - """ - The auth0 tenant ID to which the event is associated. - """ - - a_0_stream: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="a0stream"), - pydantic.Field( - alias="a0stream", - description="The auth0 event stream ID of the stream the event was delivered on.\nPresent when the event is delivered via an event stream; omitted when\nevents are retrieved via the Events API (GET /api/v2/events).", - ), - ] = None - """ - The auth0 event stream ID of the stream the event was delivered on. - Present when the event is delivered via an event stream; omitted when - events are retrieved via the Events API (GET /api/v2/events). - """ - - a_0_purpose: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventA0PurposeEnum], - FieldMetadata(alias="a0purpose"), - pydantic.Field(alias="a0purpose"), - ] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_deleted_cloud_event_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_org_deleted_cloud_event_type_enum.py deleted file mode 100644 index f99941fa..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_deleted_cloud_event_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventOrgDeletedCloudEventTypeEnum = typing.Union[typing.Literal["organization.deleted"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_org_deleted_data.py b/src/auth0/management/types/event_stream_cloud_event_org_deleted_data.py deleted file mode 100644 index bbde6ea5..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_deleted_data.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_context import EventStreamCloudEventContext -from .event_stream_cloud_event_org_deleted_object import EventStreamCloudEventOrgDeletedObject -from .event_stream_cloud_event_org_deleted_previous_object import EventStreamCloudEventOrgDeletedPreviousObject - - -class EventStreamCloudEventOrgDeletedData(UniversalBaseModel): - """ - The event payload. - """ - - object: EventStreamCloudEventOrgDeletedObject - previous_object: typing.Optional[EventStreamCloudEventOrgDeletedPreviousObject] = None - context: typing.Optional[EventStreamCloudEventContext] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_deleted_object.py b/src/auth0/management/types/event_stream_cloud_event_org_deleted_object.py deleted file mode 100644 index 200c2050..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_deleted_object.py +++ /dev/null @@ -1,39 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_org_deleted_object_metadata import EventStreamCloudEventOrgDeletedObjectMetadata - - -class EventStreamCloudEventOrgDeletedObject(UniversalBaseModel): - """ - The event content. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The human-readable identifier for the organization that will be used by end-users to direct them to their organization in your application.. - """ - - id: str = pydantic.Field() - """ - ID of the organization. - """ - - display_name: typing.Optional[str] = pydantic.Field(default=None) - """ - If set, the name that will be displayed to end-users for this organization in any interaction with them. - """ - - metadata: typing.Optional[EventStreamCloudEventOrgDeletedObjectMetadata] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_deleted_object_metadata.py b/src/auth0/management/types/event_stream_cloud_event_org_deleted_object_metadata.py deleted file mode 100644 index b5798860..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_deleted_object_metadata.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventOrgDeletedObjectMetadata = typing.Dict[str, typing.Any] -""" -The metadata associated with the organization. -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_org_deleted_previous_object.py b/src/auth0/management/types/event_stream_cloud_event_org_deleted_previous_object.py deleted file mode 100644 index 1c0d07aa..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_deleted_previous_object.py +++ /dev/null @@ -1,41 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_org_deleted_previous_object_metadata import ( - EventStreamCloudEventOrgDeletedPreviousObjectMetadata, -) - - -class EventStreamCloudEventOrgDeletedPreviousObject(UniversalBaseModel): - """ - The event content as it was prior to the change described by this event, when applicable. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The human-readable identifier for the organization that will be used by end-users to direct them to their organization in your application.. - """ - - id: str = pydantic.Field() - """ - ID of the organization. - """ - - display_name: typing.Optional[str] = pydantic.Field(default=None) - """ - If set, the name that will be displayed to end-users for this organization in any interaction with them. - """ - - metadata: typing.Optional[EventStreamCloudEventOrgDeletedPreviousObjectMetadata] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_deleted_previous_object_metadata.py b/src/auth0/management/types/event_stream_cloud_event_org_deleted_previous_object_metadata.py deleted file mode 100644 index 8ac317be..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_deleted_previous_object_metadata.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventOrgDeletedPreviousObjectMetadata = typing.Dict[str, typing.Any] -""" -The metadata associated with the organization. -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_org_deleted_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_org_deleted_type_enum.py deleted file mode 100644 index fd150500..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_deleted_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventOrgDeletedTypeEnum = typing.Union[typing.Literal["organization.deleted"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned.py b/src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned.py deleted file mode 100644 index 86fa323c..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_org_group_role_assigned_cloud_event import ( - EventStreamCloudEventOrgGroupRoleAssignedCloudEvent, -) - - -class EventStreamCloudEventOrgGroupRoleAssigned(UniversalBaseModel): - """ - SSE message for organization.group.role.assigned. - """ - - offset: str = pydantic.Field() - """ - Opaque cursor representing position in the stream. Pass as the `from` query parameter to resume. - """ - - event: EventStreamCloudEventOrgGroupRoleAssignedCloudEvent - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_cloud_event.py b/src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_cloud_event.py deleted file mode 100644 index 12ee9612..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_cloud_event.py +++ /dev/null @@ -1,77 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_a_0_purpose_enum import EventStreamCloudEventA0PurposeEnum -from .event_stream_cloud_event_org_group_role_assigned_cloud_event_type_enum import ( - EventStreamCloudEventOrgGroupRoleAssignedCloudEventTypeEnum, -) -from .event_stream_cloud_event_org_group_role_assigned_data import EventStreamCloudEventOrgGroupRoleAssignedData -from .event_stream_cloud_event_spec_version_enum import EventStreamCloudEventSpecVersionEnum - - -class EventStreamCloudEventOrgGroupRoleAssignedCloudEvent(UniversalBaseModel): - """ - Represents an event that occurs when a role is assigned to an organization group. - """ - - specversion: EventStreamCloudEventSpecVersionEnum - type: EventStreamCloudEventOrgGroupRoleAssignedCloudEventTypeEnum - source: str = pydantic.Field() - """ - The source of the event. This will take the form 'urn:auth0:.'. - """ - - id: str = pydantic.Field() - """ - A unique identifier for the event. - """ - - time: dt.datetime = pydantic.Field() - """ - An ISO-8601 timestamp indicating when the event physically occurred. - """ - - data: EventStreamCloudEventOrgGroupRoleAssignedData - a_0_tenant: typing_extensions.Annotated[ - str, - FieldMetadata(alias="a0tenant"), - pydantic.Field(alias="a0tenant", description="The auth0 tenant ID to which the event is associated."), - ] - """ - The auth0 tenant ID to which the event is associated. - """ - - a_0_stream: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="a0stream"), - pydantic.Field( - alias="a0stream", - description="The auth0 event stream ID of the stream the event was delivered on.\nPresent when the event is delivered via an event stream; omitted when\nevents are retrieved via the Events API (GET /api/v2/events).", - ), - ] = None - """ - The auth0 event stream ID of the stream the event was delivered on. - Present when the event is delivered via an event stream; omitted when - events are retrieved via the Events API (GET /api/v2/events). - """ - - a_0_purpose: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventA0PurposeEnum], - FieldMetadata(alias="a0purpose"), - pydantic.Field(alias="a0purpose"), - ] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_cloud_event_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_cloud_event_type_enum.py deleted file mode 100644 index 10b5850a..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_cloud_event_type_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventOrgGroupRoleAssignedCloudEventTypeEnum = typing.Union[ - typing.Literal["organization.group.role.assigned"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_data.py b/src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_data.py deleted file mode 100644 index 89e66bdf..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_data.py +++ /dev/null @@ -1,30 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_context import EventStreamCloudEventContext -from .event_stream_cloud_event_org_group_role_assigned_object import EventStreamCloudEventOrgGroupRoleAssignedObject -from .event_stream_cloud_event_org_group_role_assigned_previous_object import ( - EventStreamCloudEventOrgGroupRoleAssignedPreviousObject, -) - - -class EventStreamCloudEventOrgGroupRoleAssignedData(UniversalBaseModel): - """ - The event payload. - """ - - object: EventStreamCloudEventOrgGroupRoleAssignedObject - previous_object: typing.Optional[EventStreamCloudEventOrgGroupRoleAssignedPreviousObject] = None - context: typing.Optional[EventStreamCloudEventContext] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_object.py b/src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_object.py deleted file mode 100644 index 68536c11..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_object.py +++ /dev/null @@ -1,39 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_org_group_role_assigned_object_group import ( - EventStreamCloudEventOrgGroupRoleAssignedObjectGroup, -) -from .event_stream_cloud_event_org_group_role_assigned_object_organization import ( - EventStreamCloudEventOrgGroupRoleAssignedObjectOrganization, -) -from .event_stream_cloud_event_org_group_role_assigned_object_role import ( - EventStreamCloudEventOrgGroupRoleAssignedObjectRole, -) - - -class EventStreamCloudEventOrgGroupRoleAssignedObject(UniversalBaseModel): - """ - The event content. - """ - - organization: EventStreamCloudEventOrgGroupRoleAssignedObjectOrganization - role: EventStreamCloudEventOrgGroupRoleAssignedObjectRole - group: EventStreamCloudEventOrgGroupRoleAssignedObjectGroup - created_at: dt.datetime = pydantic.Field() - """ - The time at which the role was assigned to the group in the organization. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_object_group.py b/src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_object_group.py deleted file mode 100644 index 89825c08..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_object_group.py +++ /dev/null @@ -1,19 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .event_stream_cloud_event_org_group_role_assigned_object_group_0 import ( - EventStreamCloudEventOrgGroupRoleAssignedObjectGroup0, -) -from .event_stream_cloud_event_org_group_role_assigned_object_group_1 import ( - EventStreamCloudEventOrgGroupRoleAssignedObjectGroup1, -) -from .event_stream_cloud_event_org_group_role_assigned_object_group_2 import ( - EventStreamCloudEventOrgGroupRoleAssignedObjectGroup2, -) - -EventStreamCloudEventOrgGroupRoleAssignedObjectGroup = typing.Union[ - EventStreamCloudEventOrgGroupRoleAssignedObjectGroup0, - EventStreamCloudEventOrgGroupRoleAssignedObjectGroup1, - EventStreamCloudEventOrgGroupRoleAssignedObjectGroup2, -] diff --git a/src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_object_group_0.py b/src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_object_group_0.py deleted file mode 100644 index b106d692..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_object_group_0.py +++ /dev/null @@ -1,40 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_org_group_role_assigned_object_group_0_type_enum import ( - EventStreamCloudEventOrgGroupRoleAssignedObjectGroup0TypeEnum, -) - - -class EventStreamCloudEventOrgGroupRoleAssignedObjectGroup0(UniversalBaseModel): - """ - Reference to a connection group - """ - - id: str = pydantic.Field() - """ - The unique identifier for the group. - """ - - external_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The external identifier for the group. - """ - - type: EventStreamCloudEventOrgGroupRoleAssignedObjectGroup0TypeEnum - connection_id: str = pydantic.Field() - """ - The connection ID associated with the group. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_object_group_0_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_object_group_0_type_enum.py deleted file mode 100644 index 6f67d29c..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_object_group_0_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventOrgGroupRoleAssignedObjectGroup0TypeEnum = typing.Union[typing.Literal["connection"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_object_group_1.py b/src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_object_group_1.py deleted file mode 100644 index eb0c0e6d..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_object_group_1.py +++ /dev/null @@ -1,40 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_org_group_role_assigned_object_group_1_type_enum import ( - EventStreamCloudEventOrgGroupRoleAssignedObjectGroup1TypeEnum, -) - - -class EventStreamCloudEventOrgGroupRoleAssignedObjectGroup1(UniversalBaseModel): - """ - Reference to an organization group - """ - - id: str = pydantic.Field() - """ - The unique identifier for the group. - """ - - external_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The external identifier for the group. - """ - - type: EventStreamCloudEventOrgGroupRoleAssignedObjectGroup1TypeEnum - organization_id: str = pydantic.Field() - """ - The organization ID associated with the group. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_object_group_1_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_object_group_1_type_enum.py deleted file mode 100644 index febbd8e0..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_object_group_1_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventOrgGroupRoleAssignedObjectGroup1TypeEnum = typing.Union[typing.Literal["organization"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_object_group_2.py b/src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_object_group_2.py deleted file mode 100644 index d17d75b5..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_object_group_2.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_org_group_role_assigned_object_group_2_type_enum import ( - EventStreamCloudEventOrgGroupRoleAssignedObjectGroup2TypeEnum, -) - - -class EventStreamCloudEventOrgGroupRoleAssignedObjectGroup2(UniversalBaseModel): - """ - Reference to a tenant group - """ - - id: str = pydantic.Field() - """ - The unique identifier for the group. - """ - - external_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The external identifier for the group. - """ - - type: EventStreamCloudEventOrgGroupRoleAssignedObjectGroup2TypeEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_object_group_2_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_object_group_2_type_enum.py deleted file mode 100644 index e75f90ba..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_object_group_2_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventOrgGroupRoleAssignedObjectGroup2TypeEnum = typing.Union[typing.Literal["tenant"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_object_organization.py b/src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_object_organization.py deleted file mode 100644 index 4d360038..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_object_organization.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventOrgGroupRoleAssignedObjectOrganization(UniversalBaseModel): - """ - The organization the group role is assigned in. - """ - - id: str = pydantic.Field() - """ - ID of the organization. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_object_role.py b/src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_object_role.py deleted file mode 100644 index dfe8abe3..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_object_role.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventOrgGroupRoleAssignedObjectRole(UniversalBaseModel): - """ - The role assigned to the group in the organization. - """ - - id: str = pydantic.Field() - """ - The ID of the role. - """ - - name: str = pydantic.Field() - """ - The name of the role. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_previous_object.py b/src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_previous_object.py deleted file mode 100644 index cd112239..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_previous_object.py +++ /dev/null @@ -1,39 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_org_group_role_assigned_previous_object_group import ( - EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup, -) -from .event_stream_cloud_event_org_group_role_assigned_previous_object_organization import ( - EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectOrganization, -) -from .event_stream_cloud_event_org_group_role_assigned_previous_object_role import ( - EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectRole, -) - - -class EventStreamCloudEventOrgGroupRoleAssignedPreviousObject(UniversalBaseModel): - """ - The event content as it was prior to the change described by this event, when applicable. - """ - - organization: EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectOrganization - role: EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectRole - group: EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup - created_at: dt.datetime = pydantic.Field() - """ - The time at which the role was assigned to the group in the organization. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_previous_object_group.py b/src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_previous_object_group.py deleted file mode 100644 index 9e9c1b6d..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_previous_object_group.py +++ /dev/null @@ -1,19 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .event_stream_cloud_event_org_group_role_assigned_previous_object_group_0 import ( - EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup0, -) -from .event_stream_cloud_event_org_group_role_assigned_previous_object_group_1 import ( - EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup1, -) -from .event_stream_cloud_event_org_group_role_assigned_previous_object_group_2 import ( - EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup2, -) - -EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup = typing.Union[ - EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup0, - EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup1, - EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup2, -] diff --git a/src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_previous_object_group_0.py b/src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_previous_object_group_0.py deleted file mode 100644 index 7f1abc01..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_previous_object_group_0.py +++ /dev/null @@ -1,40 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_org_group_role_assigned_previous_object_group_0_type_enum import ( - EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup0TypeEnum, -) - - -class EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup0(UniversalBaseModel): - """ - Reference to a connection group - """ - - id: str = pydantic.Field() - """ - The unique identifier for the group. - """ - - external_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The external identifier for the group. - """ - - type: EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup0TypeEnum - connection_id: str = pydantic.Field() - """ - The connection ID associated with the group. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_previous_object_group_0_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_previous_object_group_0_type_enum.py deleted file mode 100644 index 62ba6eac..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_previous_object_group_0_type_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup0TypeEnum = typing.Union[ - typing.Literal["connection"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_previous_object_group_1.py b/src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_previous_object_group_1.py deleted file mode 100644 index 521cb6c8..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_previous_object_group_1.py +++ /dev/null @@ -1,40 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_org_group_role_assigned_previous_object_group_1_type_enum import ( - EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup1TypeEnum, -) - - -class EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup1(UniversalBaseModel): - """ - Reference to an organization group - """ - - id: str = pydantic.Field() - """ - The unique identifier for the group. - """ - - external_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The external identifier for the group. - """ - - type: EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup1TypeEnum - organization_id: str = pydantic.Field() - """ - The organization ID associated with the group. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_previous_object_group_1_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_previous_object_group_1_type_enum.py deleted file mode 100644 index 9d354793..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_previous_object_group_1_type_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup1TypeEnum = typing.Union[ - typing.Literal["organization"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_previous_object_group_2.py b/src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_previous_object_group_2.py deleted file mode 100644 index d148abad..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_previous_object_group_2.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_org_group_role_assigned_previous_object_group_2_type_enum import ( - EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup2TypeEnum, -) - - -class EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup2(UniversalBaseModel): - """ - Reference to a tenant group - """ - - id: str = pydantic.Field() - """ - The unique identifier for the group. - """ - - external_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The external identifier for the group. - """ - - type: EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup2TypeEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_previous_object_group_2_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_previous_object_group_2_type_enum.py deleted file mode 100644 index 3206632f..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_previous_object_group_2_type_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectGroup2TypeEnum = typing.Union[ - typing.Literal["tenant"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_previous_object_organization.py b/src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_previous_object_organization.py deleted file mode 100644 index 66efb22b..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_previous_object_organization.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectOrganization(UniversalBaseModel): - """ - The organization the group role is assigned in. - """ - - id: str = pydantic.Field() - """ - ID of the organization. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_previous_object_role.py b/src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_previous_object_role.py deleted file mode 100644 index e751a3b1..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_previous_object_role.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventOrgGroupRoleAssignedPreviousObjectRole(UniversalBaseModel): - """ - The role assigned to the group in the organization. - """ - - id: str = pydantic.Field() - """ - The ID of the role. - """ - - name: str = pydantic.Field() - """ - The name of the role. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_type_enum.py deleted file mode 100644 index 65f94dba..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_group_role_assigned_type_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventOrgGroupRoleAssignedTypeEnum = typing.Union[ - typing.Literal["organization.group.role.assigned"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted.py b/src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted.py deleted file mode 100644 index adc2c185..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_org_group_role_deleted_cloud_event import ( - EventStreamCloudEventOrgGroupRoleDeletedCloudEvent, -) - - -class EventStreamCloudEventOrgGroupRoleDeleted(UniversalBaseModel): - """ - SSE message for organization.group.role.deleted. - """ - - offset: str = pydantic.Field() - """ - Opaque cursor representing position in the stream. Pass as the `from` query parameter to resume. - """ - - event: EventStreamCloudEventOrgGroupRoleDeletedCloudEvent - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_cloud_event.py b/src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_cloud_event.py deleted file mode 100644 index 3ca2e011..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_cloud_event.py +++ /dev/null @@ -1,77 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_a_0_purpose_enum import EventStreamCloudEventA0PurposeEnum -from .event_stream_cloud_event_org_group_role_deleted_cloud_event_type_enum import ( - EventStreamCloudEventOrgGroupRoleDeletedCloudEventTypeEnum, -) -from .event_stream_cloud_event_org_group_role_deleted_data import EventStreamCloudEventOrgGroupRoleDeletedData -from .event_stream_cloud_event_spec_version_enum import EventStreamCloudEventSpecVersionEnum - - -class EventStreamCloudEventOrgGroupRoleDeletedCloudEvent(UniversalBaseModel): - """ - Represents an event that occurs when a role is removed from an organization group. - """ - - specversion: EventStreamCloudEventSpecVersionEnum - type: EventStreamCloudEventOrgGroupRoleDeletedCloudEventTypeEnum - source: str = pydantic.Field() - """ - The source of the event. This will take the form 'urn:auth0:.'. - """ - - id: str = pydantic.Field() - """ - A unique identifier for the event. - """ - - time: dt.datetime = pydantic.Field() - """ - An ISO-8601 timestamp indicating when the event physically occurred. - """ - - data: EventStreamCloudEventOrgGroupRoleDeletedData - a_0_tenant: typing_extensions.Annotated[ - str, - FieldMetadata(alias="a0tenant"), - pydantic.Field(alias="a0tenant", description="The auth0 tenant ID to which the event is associated."), - ] - """ - The auth0 tenant ID to which the event is associated. - """ - - a_0_stream: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="a0stream"), - pydantic.Field( - alias="a0stream", - description="The auth0 event stream ID of the stream the event was delivered on.\nPresent when the event is delivered via an event stream; omitted when\nevents are retrieved via the Events API (GET /api/v2/events).", - ), - ] = None - """ - The auth0 event stream ID of the stream the event was delivered on. - Present when the event is delivered via an event stream; omitted when - events are retrieved via the Events API (GET /api/v2/events). - """ - - a_0_purpose: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventA0PurposeEnum], - FieldMetadata(alias="a0purpose"), - pydantic.Field(alias="a0purpose"), - ] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_cloud_event_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_cloud_event_type_enum.py deleted file mode 100644 index 9244a94b..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_cloud_event_type_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventOrgGroupRoleDeletedCloudEventTypeEnum = typing.Union[ - typing.Literal["organization.group.role.deleted"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_data.py b/src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_data.py deleted file mode 100644 index 5f59e902..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_data.py +++ /dev/null @@ -1,30 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_context import EventStreamCloudEventContext -from .event_stream_cloud_event_org_group_role_deleted_object import EventStreamCloudEventOrgGroupRoleDeletedObject -from .event_stream_cloud_event_org_group_role_deleted_previous_object import ( - EventStreamCloudEventOrgGroupRoleDeletedPreviousObject, -) - - -class EventStreamCloudEventOrgGroupRoleDeletedData(UniversalBaseModel): - """ - The event payload. - """ - - object: EventStreamCloudEventOrgGroupRoleDeletedObject - previous_object: typing.Optional[EventStreamCloudEventOrgGroupRoleDeletedPreviousObject] = None - context: typing.Optional[EventStreamCloudEventContext] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_object.py b/src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_object.py deleted file mode 100644 index d98f82a7..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_object.py +++ /dev/null @@ -1,39 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_org_group_role_deleted_object_group import ( - EventStreamCloudEventOrgGroupRoleDeletedObjectGroup, -) -from .event_stream_cloud_event_org_group_role_deleted_object_organization import ( - EventStreamCloudEventOrgGroupRoleDeletedObjectOrganization, -) -from .event_stream_cloud_event_org_group_role_deleted_object_role import ( - EventStreamCloudEventOrgGroupRoleDeletedObjectRole, -) - - -class EventStreamCloudEventOrgGroupRoleDeletedObject(UniversalBaseModel): - """ - The event content. - """ - - organization: EventStreamCloudEventOrgGroupRoleDeletedObjectOrganization - role: EventStreamCloudEventOrgGroupRoleDeletedObjectRole - group: EventStreamCloudEventOrgGroupRoleDeletedObjectGroup - deleted_at: dt.datetime = pydantic.Field() - """ - The time at which the role was removed from the group in the organization. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_object_group.py b/src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_object_group.py deleted file mode 100644 index 0330a025..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_object_group.py +++ /dev/null @@ -1,19 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .event_stream_cloud_event_org_group_role_deleted_object_group_0 import ( - EventStreamCloudEventOrgGroupRoleDeletedObjectGroup0, -) -from .event_stream_cloud_event_org_group_role_deleted_object_group_1 import ( - EventStreamCloudEventOrgGroupRoleDeletedObjectGroup1, -) -from .event_stream_cloud_event_org_group_role_deleted_object_group_2 import ( - EventStreamCloudEventOrgGroupRoleDeletedObjectGroup2, -) - -EventStreamCloudEventOrgGroupRoleDeletedObjectGroup = typing.Union[ - EventStreamCloudEventOrgGroupRoleDeletedObjectGroup0, - EventStreamCloudEventOrgGroupRoleDeletedObjectGroup1, - EventStreamCloudEventOrgGroupRoleDeletedObjectGroup2, -] diff --git a/src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_object_group_0.py b/src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_object_group_0.py deleted file mode 100644 index 511a7dba..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_object_group_0.py +++ /dev/null @@ -1,40 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_org_group_role_deleted_object_group_0_type_enum import ( - EventStreamCloudEventOrgGroupRoleDeletedObjectGroup0TypeEnum, -) - - -class EventStreamCloudEventOrgGroupRoleDeletedObjectGroup0(UniversalBaseModel): - """ - Reference to a connection group - """ - - id: str = pydantic.Field() - """ - The unique identifier for the group. - """ - - external_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The external identifier for the group. - """ - - type: EventStreamCloudEventOrgGroupRoleDeletedObjectGroup0TypeEnum - connection_id: str = pydantic.Field() - """ - The connection ID associated with the group. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_object_group_0_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_object_group_0_type_enum.py deleted file mode 100644 index 1bca8342..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_object_group_0_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventOrgGroupRoleDeletedObjectGroup0TypeEnum = typing.Union[typing.Literal["connection"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_object_group_1.py b/src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_object_group_1.py deleted file mode 100644 index dc9c8a3f..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_object_group_1.py +++ /dev/null @@ -1,40 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_org_group_role_deleted_object_group_1_type_enum import ( - EventStreamCloudEventOrgGroupRoleDeletedObjectGroup1TypeEnum, -) - - -class EventStreamCloudEventOrgGroupRoleDeletedObjectGroup1(UniversalBaseModel): - """ - Reference to an organization group - """ - - id: str = pydantic.Field() - """ - The unique identifier for the group. - """ - - external_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The external identifier for the group. - """ - - type: EventStreamCloudEventOrgGroupRoleDeletedObjectGroup1TypeEnum - organization_id: str = pydantic.Field() - """ - The organization ID associated with the group. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_object_group_1_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_object_group_1_type_enum.py deleted file mode 100644 index 1db8b58f..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_object_group_1_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventOrgGroupRoleDeletedObjectGroup1TypeEnum = typing.Union[typing.Literal["organization"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_object_group_2.py b/src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_object_group_2.py deleted file mode 100644 index 5cf14a6f..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_object_group_2.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_org_group_role_deleted_object_group_2_type_enum import ( - EventStreamCloudEventOrgGroupRoleDeletedObjectGroup2TypeEnum, -) - - -class EventStreamCloudEventOrgGroupRoleDeletedObjectGroup2(UniversalBaseModel): - """ - Reference to a tenant group - """ - - id: str = pydantic.Field() - """ - The unique identifier for the group. - """ - - external_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The external identifier for the group. - """ - - type: EventStreamCloudEventOrgGroupRoleDeletedObjectGroup2TypeEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_object_group_2_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_object_group_2_type_enum.py deleted file mode 100644 index 658e9016..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_object_group_2_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventOrgGroupRoleDeletedObjectGroup2TypeEnum = typing.Union[typing.Literal["tenant"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_object_organization.py b/src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_object_organization.py deleted file mode 100644 index 8c06d778..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_object_organization.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventOrgGroupRoleDeletedObjectOrganization(UniversalBaseModel): - """ - The organization the group role is removed from. - """ - - id: str = pydantic.Field() - """ - ID of the organization. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_object_role.py b/src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_object_role.py deleted file mode 100644 index 54c6fed2..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_object_role.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventOrgGroupRoleDeletedObjectRole(UniversalBaseModel): - """ - The role removed from the group. - """ - - id: str = pydantic.Field() - """ - The ID of the role. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_previous_object.py b/src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_previous_object.py deleted file mode 100644 index 9b7ba4be..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_previous_object.py +++ /dev/null @@ -1,39 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_org_group_role_deleted_previous_object_group import ( - EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup, -) -from .event_stream_cloud_event_org_group_role_deleted_previous_object_organization import ( - EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectOrganization, -) -from .event_stream_cloud_event_org_group_role_deleted_previous_object_role import ( - EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectRole, -) - - -class EventStreamCloudEventOrgGroupRoleDeletedPreviousObject(UniversalBaseModel): - """ - The event content as it was prior to the change described by this event, when applicable. - """ - - organization: EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectOrganization - role: EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectRole - group: EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup - created_at: dt.datetime = pydantic.Field() - """ - The time at which the role was assigned to the group in the organization. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_previous_object_group.py b/src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_previous_object_group.py deleted file mode 100644 index 7b7b5d72..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_previous_object_group.py +++ /dev/null @@ -1,19 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .event_stream_cloud_event_org_group_role_deleted_previous_object_group_0 import ( - EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup0, -) -from .event_stream_cloud_event_org_group_role_deleted_previous_object_group_1 import ( - EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup1, -) -from .event_stream_cloud_event_org_group_role_deleted_previous_object_group_2 import ( - EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup2, -) - -EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup = typing.Union[ - EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup0, - EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup1, - EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup2, -] diff --git a/src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_previous_object_group_0.py b/src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_previous_object_group_0.py deleted file mode 100644 index 61b58b20..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_previous_object_group_0.py +++ /dev/null @@ -1,40 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_org_group_role_deleted_previous_object_group_0_type_enum import ( - EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup0TypeEnum, -) - - -class EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup0(UniversalBaseModel): - """ - Reference to a connection group - """ - - id: str = pydantic.Field() - """ - The unique identifier for the group. - """ - - external_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The external identifier for the group. - """ - - type: EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup0TypeEnum - connection_id: str = pydantic.Field() - """ - The connection ID associated with the group. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_previous_object_group_0_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_previous_object_group_0_type_enum.py deleted file mode 100644 index 593be762..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_previous_object_group_0_type_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup0TypeEnum = typing.Union[ - typing.Literal["connection"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_previous_object_group_1.py b/src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_previous_object_group_1.py deleted file mode 100644 index d8ce1c3f..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_previous_object_group_1.py +++ /dev/null @@ -1,40 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_org_group_role_deleted_previous_object_group_1_type_enum import ( - EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup1TypeEnum, -) - - -class EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup1(UniversalBaseModel): - """ - Reference to an organization group - """ - - id: str = pydantic.Field() - """ - The unique identifier for the group. - """ - - external_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The external identifier for the group. - """ - - type: EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup1TypeEnum - organization_id: str = pydantic.Field() - """ - The organization ID associated with the group. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_previous_object_group_1_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_previous_object_group_1_type_enum.py deleted file mode 100644 index dabd89b0..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_previous_object_group_1_type_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup1TypeEnum = typing.Union[ - typing.Literal["organization"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_previous_object_group_2.py b/src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_previous_object_group_2.py deleted file mode 100644 index fdc20aa9..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_previous_object_group_2.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_org_group_role_deleted_previous_object_group_2_type_enum import ( - EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup2TypeEnum, -) - - -class EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup2(UniversalBaseModel): - """ - Reference to a tenant group - """ - - id: str = pydantic.Field() - """ - The unique identifier for the group. - """ - - external_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The external identifier for the group. - """ - - type: EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup2TypeEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_previous_object_group_2_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_previous_object_group_2_type_enum.py deleted file mode 100644 index a3f7e58c..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_previous_object_group_2_type_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectGroup2TypeEnum = typing.Union[ - typing.Literal["tenant"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_previous_object_organization.py b/src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_previous_object_organization.py deleted file mode 100644 index 5a85be3e..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_previous_object_organization.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectOrganization(UniversalBaseModel): - """ - The organization the group role is assigned in. - """ - - id: str = pydantic.Field() - """ - ID of the organization. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_previous_object_role.py b/src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_previous_object_role.py deleted file mode 100644 index c51311c7..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_previous_object_role.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventOrgGroupRoleDeletedPreviousObjectRole(UniversalBaseModel): - """ - The role assigned to the group in the organization. - """ - - id: str = pydantic.Field() - """ - The ID of the role. - """ - - name: str = pydantic.Field() - """ - The name of the role. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_type_enum.py deleted file mode 100644 index cdd1193a..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_group_role_deleted_type_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventOrgGroupRoleDeletedTypeEnum = typing.Union[ - typing.Literal["organization.group.role.deleted"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_org_member_added.py b/src/auth0/management/types/event_stream_cloud_event_org_member_added.py deleted file mode 100644 index dd0d7365..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_member_added.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_org_member_added_cloud_event import EventStreamCloudEventOrgMemberAddedCloudEvent - - -class EventStreamCloudEventOrgMemberAdded(UniversalBaseModel): - """ - SSE message for organization.member.added. - """ - - offset: str = pydantic.Field() - """ - Opaque cursor representing position in the stream. Pass as the `from` query parameter to resume. - """ - - event: EventStreamCloudEventOrgMemberAddedCloudEvent - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_member_added_cloud_event.py b/src/auth0/management/types/event_stream_cloud_event_org_member_added_cloud_event.py deleted file mode 100644 index 41f5a668..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_member_added_cloud_event.py +++ /dev/null @@ -1,77 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_a_0_purpose_enum import EventStreamCloudEventA0PurposeEnum -from .event_stream_cloud_event_org_member_added_cloud_event_type_enum import ( - EventStreamCloudEventOrgMemberAddedCloudEventTypeEnum, -) -from .event_stream_cloud_event_org_member_added_data import EventStreamCloudEventOrgMemberAddedData -from .event_stream_cloud_event_spec_version_enum import EventStreamCloudEventSpecVersionEnum - - -class EventStreamCloudEventOrgMemberAddedCloudEvent(UniversalBaseModel): - """ - Represents an event that occurs when a member is added to an organization. - """ - - specversion: EventStreamCloudEventSpecVersionEnum - type: EventStreamCloudEventOrgMemberAddedCloudEventTypeEnum - source: str = pydantic.Field() - """ - The source of the event. This will take the form 'urn:auth0:.'. - """ - - id: str = pydantic.Field() - """ - A unique identifier for the event. - """ - - time: dt.datetime = pydantic.Field() - """ - An ISO-8601 timestamp indicating when the event physically occurred. - """ - - data: EventStreamCloudEventOrgMemberAddedData - a_0_tenant: typing_extensions.Annotated[ - str, - FieldMetadata(alias="a0tenant"), - pydantic.Field(alias="a0tenant", description="The auth0 tenant ID to which the event is associated."), - ] - """ - The auth0 tenant ID to which the event is associated. - """ - - a_0_stream: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="a0stream"), - pydantic.Field( - alias="a0stream", - description="The auth0 event stream ID of the stream the event was delivered on.\nPresent when the event is delivered via an event stream; omitted when\nevents are retrieved via the Events API (GET /api/v2/events).", - ), - ] = None - """ - The auth0 event stream ID of the stream the event was delivered on. - Present when the event is delivered via an event stream; omitted when - events are retrieved via the Events API (GET /api/v2/events). - """ - - a_0_purpose: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventA0PurposeEnum], - FieldMetadata(alias="a0purpose"), - pydantic.Field(alias="a0purpose"), - ] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_member_added_cloud_event_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_org_member_added_cloud_event_type_enum.py deleted file mode 100644 index 191f5c2a..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_member_added_cloud_event_type_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventOrgMemberAddedCloudEventTypeEnum = typing.Union[ - typing.Literal["organization.member.added"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_org_member_added_data.py b/src/auth0/management/types/event_stream_cloud_event_org_member_added_data.py deleted file mode 100644 index 94436b1e..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_member_added_data.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_context import EventStreamCloudEventContext -from .event_stream_cloud_event_org_member_added_object import EventStreamCloudEventOrgMemberAddedObject -from .event_stream_cloud_event_org_member_added_previous_object import EventStreamCloudEventOrgMemberAddedPreviousObject - - -class EventStreamCloudEventOrgMemberAddedData(UniversalBaseModel): - """ - The event payload. - """ - - object: EventStreamCloudEventOrgMemberAddedObject - previous_object: typing.Optional[EventStreamCloudEventOrgMemberAddedPreviousObject] = None - context: typing.Optional[EventStreamCloudEventContext] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_member_added_object.py b/src/auth0/management/types/event_stream_cloud_event_org_member_added_object.py deleted file mode 100644 index 7f534648..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_member_added_object.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_org_member_added_object_organization import ( - EventStreamCloudEventOrgMemberAddedObjectOrganization, -) -from .event_stream_cloud_event_org_member_added_object_user import EventStreamCloudEventOrgMemberAddedObjectUser - - -class EventStreamCloudEventOrgMemberAddedObject(UniversalBaseModel): - """ - The event content. - """ - - organization: EventStreamCloudEventOrgMemberAddedObjectOrganization - user: EventStreamCloudEventOrgMemberAddedObjectUser - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_member_added_object_organization.py b/src/auth0/management/types/event_stream_cloud_event_org_member_added_object_organization.py deleted file mode 100644 index 5b244366..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_member_added_object_organization.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventOrgMemberAddedObjectOrganization(UniversalBaseModel): - """ - The organization the member belongs to. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The human-readable identifier for the organization that will be used by end-users to direct them to their organization in your application.. - """ - - id: str = pydantic.Field() - """ - ID of the organization. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_member_added_object_user.py b/src/auth0/management/types/event_stream_cloud_event_org_member_added_object_user.py deleted file mode 100644 index 1eff1545..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_member_added_object_user.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventOrgMemberAddedObjectUser(UniversalBaseModel): - """ - The user that is a member of the organization. - """ - - user_id: str = pydantic.Field() - """ - ID of the user which can be used when interacting with other APIs. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_member_added_previous_object.py b/src/auth0/management/types/event_stream_cloud_event_org_member_added_previous_object.py deleted file mode 100644 index 54337da8..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_member_added_previous_object.py +++ /dev/null @@ -1,30 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_org_member_added_previous_object_organization import ( - EventStreamCloudEventOrgMemberAddedPreviousObjectOrganization, -) -from .event_stream_cloud_event_org_member_added_previous_object_user import ( - EventStreamCloudEventOrgMemberAddedPreviousObjectUser, -) - - -class EventStreamCloudEventOrgMemberAddedPreviousObject(UniversalBaseModel): - """ - The event content as it was prior to the change described by this event, when applicable. - """ - - organization: EventStreamCloudEventOrgMemberAddedPreviousObjectOrganization - user: EventStreamCloudEventOrgMemberAddedPreviousObjectUser - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_member_added_previous_object_organization.py b/src/auth0/management/types/event_stream_cloud_event_org_member_added_previous_object_organization.py deleted file mode 100644 index 00ab043a..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_member_added_previous_object_organization.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventOrgMemberAddedPreviousObjectOrganization(UniversalBaseModel): - """ - The organization the member belongs to. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The human-readable identifier for the organization that will be used by end-users to direct them to their organization in your application.. - """ - - id: str = pydantic.Field() - """ - ID of the organization. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_member_added_previous_object_user.py b/src/auth0/management/types/event_stream_cloud_event_org_member_added_previous_object_user.py deleted file mode 100644 index 7257dcdf..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_member_added_previous_object_user.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventOrgMemberAddedPreviousObjectUser(UniversalBaseModel): - """ - The user that is a member of the organization. - """ - - user_id: str = pydantic.Field() - """ - ID of the user which can be used when interacting with other APIs. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_member_added_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_org_member_added_type_enum.py deleted file mode 100644 index cecd07c4..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_member_added_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventOrgMemberAddedTypeEnum = typing.Union[typing.Literal["organization.member.added"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_org_member_deleted.py b/src/auth0/management/types/event_stream_cloud_event_org_member_deleted.py deleted file mode 100644 index edc4f9d7..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_member_deleted.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_org_member_deleted_cloud_event import EventStreamCloudEventOrgMemberDeletedCloudEvent - - -class EventStreamCloudEventOrgMemberDeleted(UniversalBaseModel): - """ - SSE message for organization.member.deleted. - """ - - offset: str = pydantic.Field() - """ - Opaque cursor representing position in the stream. Pass as the `from` query parameter to resume. - """ - - event: EventStreamCloudEventOrgMemberDeletedCloudEvent - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_member_deleted_cloud_event.py b/src/auth0/management/types/event_stream_cloud_event_org_member_deleted_cloud_event.py deleted file mode 100644 index ae728af9..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_member_deleted_cloud_event.py +++ /dev/null @@ -1,77 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_a_0_purpose_enum import EventStreamCloudEventA0PurposeEnum -from .event_stream_cloud_event_org_member_deleted_cloud_event_type_enum import ( - EventStreamCloudEventOrgMemberDeletedCloudEventTypeEnum, -) -from .event_stream_cloud_event_org_member_deleted_data import EventStreamCloudEventOrgMemberDeletedData -from .event_stream_cloud_event_spec_version_enum import EventStreamCloudEventSpecVersionEnum - - -class EventStreamCloudEventOrgMemberDeletedCloudEvent(UniversalBaseModel): - """ - Represents an event that occurs when a member is removed from an organization. - """ - - specversion: EventStreamCloudEventSpecVersionEnum - type: EventStreamCloudEventOrgMemberDeletedCloudEventTypeEnum - source: str = pydantic.Field() - """ - The source of the event. This will take the form 'urn:auth0:.'. - """ - - id: str = pydantic.Field() - """ - A unique identifier for the event. - """ - - time: dt.datetime = pydantic.Field() - """ - An ISO-8601 timestamp indicating when the event physically occurred. - """ - - data: EventStreamCloudEventOrgMemberDeletedData - a_0_tenant: typing_extensions.Annotated[ - str, - FieldMetadata(alias="a0tenant"), - pydantic.Field(alias="a0tenant", description="The auth0 tenant ID to which the event is associated."), - ] - """ - The auth0 tenant ID to which the event is associated. - """ - - a_0_stream: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="a0stream"), - pydantic.Field( - alias="a0stream", - description="The auth0 event stream ID of the stream the event was delivered on.\nPresent when the event is delivered via an event stream; omitted when\nevents are retrieved via the Events API (GET /api/v2/events).", - ), - ] = None - """ - The auth0 event stream ID of the stream the event was delivered on. - Present when the event is delivered via an event stream; omitted when - events are retrieved via the Events API (GET /api/v2/events). - """ - - a_0_purpose: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventA0PurposeEnum], - FieldMetadata(alias="a0purpose"), - pydantic.Field(alias="a0purpose"), - ] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_member_deleted_cloud_event_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_org_member_deleted_cloud_event_type_enum.py deleted file mode 100644 index a6631b6c..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_member_deleted_cloud_event_type_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventOrgMemberDeletedCloudEventTypeEnum = typing.Union[ - typing.Literal["organization.member.deleted"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_org_member_deleted_data.py b/src/auth0/management/types/event_stream_cloud_event_org_member_deleted_data.py deleted file mode 100644 index 60b505a5..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_member_deleted_data.py +++ /dev/null @@ -1,30 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_context import EventStreamCloudEventContext -from .event_stream_cloud_event_org_member_deleted_object import EventStreamCloudEventOrgMemberDeletedObject -from .event_stream_cloud_event_org_member_deleted_previous_object import ( - EventStreamCloudEventOrgMemberDeletedPreviousObject, -) - - -class EventStreamCloudEventOrgMemberDeletedData(UniversalBaseModel): - """ - The event payload. - """ - - object: EventStreamCloudEventOrgMemberDeletedObject - previous_object: typing.Optional[EventStreamCloudEventOrgMemberDeletedPreviousObject] = None - context: typing.Optional[EventStreamCloudEventContext] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_member_deleted_object.py b/src/auth0/management/types/event_stream_cloud_event_org_member_deleted_object.py deleted file mode 100644 index b12ac41c..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_member_deleted_object.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_org_member_deleted_object_organization import ( - EventStreamCloudEventOrgMemberDeletedObjectOrganization, -) -from .event_stream_cloud_event_org_member_deleted_object_user import EventStreamCloudEventOrgMemberDeletedObjectUser - - -class EventStreamCloudEventOrgMemberDeletedObject(UniversalBaseModel): - """ - The event content. - """ - - organization: EventStreamCloudEventOrgMemberDeletedObjectOrganization - user: EventStreamCloudEventOrgMemberDeletedObjectUser - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_member_deleted_object_organization.py b/src/auth0/management/types/event_stream_cloud_event_org_member_deleted_object_organization.py deleted file mode 100644 index 05361664..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_member_deleted_object_organization.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventOrgMemberDeletedObjectOrganization(UniversalBaseModel): - """ - The organization the member belongs to. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The human-readable identifier for the organization that will be used by end-users to direct them to their organization in your application.. - """ - - id: str = pydantic.Field() - """ - ID of the organization. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_member_deleted_object_user.py b/src/auth0/management/types/event_stream_cloud_event_org_member_deleted_object_user.py deleted file mode 100644 index 83f695b6..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_member_deleted_object_user.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventOrgMemberDeletedObjectUser(UniversalBaseModel): - """ - The user that is a member of the organization. - """ - - user_id: str = pydantic.Field() - """ - ID of the user which can be used when interacting with other APIs. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_member_deleted_previous_object.py b/src/auth0/management/types/event_stream_cloud_event_org_member_deleted_previous_object.py deleted file mode 100644 index 46580278..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_member_deleted_previous_object.py +++ /dev/null @@ -1,30 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_org_member_deleted_previous_object_organization import ( - EventStreamCloudEventOrgMemberDeletedPreviousObjectOrganization, -) -from .event_stream_cloud_event_org_member_deleted_previous_object_user import ( - EventStreamCloudEventOrgMemberDeletedPreviousObjectUser, -) - - -class EventStreamCloudEventOrgMemberDeletedPreviousObject(UniversalBaseModel): - """ - The event content as it was prior to the change described by this event, when applicable. - """ - - organization: EventStreamCloudEventOrgMemberDeletedPreviousObjectOrganization - user: EventStreamCloudEventOrgMemberDeletedPreviousObjectUser - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_member_deleted_previous_object_organization.py b/src/auth0/management/types/event_stream_cloud_event_org_member_deleted_previous_object_organization.py deleted file mode 100644 index 693ff8d0..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_member_deleted_previous_object_organization.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventOrgMemberDeletedPreviousObjectOrganization(UniversalBaseModel): - """ - The organization the member belongs to. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The human-readable identifier for the organization that will be used by end-users to direct them to their organization in your application.. - """ - - id: str = pydantic.Field() - """ - ID of the organization. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_member_deleted_previous_object_user.py b/src/auth0/management/types/event_stream_cloud_event_org_member_deleted_previous_object_user.py deleted file mode 100644 index 7965cd5e..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_member_deleted_previous_object_user.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventOrgMemberDeletedPreviousObjectUser(UniversalBaseModel): - """ - The user that is a member of the organization. - """ - - user_id: str = pydantic.Field() - """ - ID of the user which can be used when interacting with other APIs. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_member_deleted_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_org_member_deleted_type_enum.py deleted file mode 100644 index 244c7273..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_member_deleted_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventOrgMemberDeletedTypeEnum = typing.Union[typing.Literal["organization.member.deleted"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_org_member_role_assigned.py b/src/auth0/management/types/event_stream_cloud_event_org_member_role_assigned.py deleted file mode 100644 index c5a8825f..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_member_role_assigned.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_org_member_role_assigned_cloud_event import ( - EventStreamCloudEventOrgMemberRoleAssignedCloudEvent, -) - - -class EventStreamCloudEventOrgMemberRoleAssigned(UniversalBaseModel): - """ - SSE message for organization.member.role.assigned. - """ - - offset: str = pydantic.Field() - """ - Opaque cursor representing position in the stream. Pass as the `from` query parameter to resume. - """ - - event: EventStreamCloudEventOrgMemberRoleAssignedCloudEvent - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_member_role_assigned_cloud_event.py b/src/auth0/management/types/event_stream_cloud_event_org_member_role_assigned_cloud_event.py deleted file mode 100644 index 57944ecc..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_member_role_assigned_cloud_event.py +++ /dev/null @@ -1,77 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_a_0_purpose_enum import EventStreamCloudEventA0PurposeEnum -from .event_stream_cloud_event_org_member_role_assigned_cloud_event_type_enum import ( - EventStreamCloudEventOrgMemberRoleAssignedCloudEventTypeEnum, -) -from .event_stream_cloud_event_org_member_role_assigned_data import EventStreamCloudEventOrgMemberRoleAssignedData -from .event_stream_cloud_event_spec_version_enum import EventStreamCloudEventSpecVersionEnum - - -class EventStreamCloudEventOrgMemberRoleAssignedCloudEvent(UniversalBaseModel): - """ - Represents an event that occurs when a member is added to an organization. - """ - - specversion: EventStreamCloudEventSpecVersionEnum - type: EventStreamCloudEventOrgMemberRoleAssignedCloudEventTypeEnum - source: str = pydantic.Field() - """ - The source of the event. This will take the form 'urn:auth0:.'. - """ - - id: str = pydantic.Field() - """ - A unique identifier for the event. - """ - - time: dt.datetime = pydantic.Field() - """ - An ISO-8601 timestamp indicating when the event physically occurred. - """ - - data: EventStreamCloudEventOrgMemberRoleAssignedData - a_0_tenant: typing_extensions.Annotated[ - str, - FieldMetadata(alias="a0tenant"), - pydantic.Field(alias="a0tenant", description="The auth0 tenant ID to which the event is associated."), - ] - """ - The auth0 tenant ID to which the event is associated. - """ - - a_0_stream: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="a0stream"), - pydantic.Field( - alias="a0stream", - description="The auth0 event stream ID of the stream the event was delivered on.\nPresent when the event is delivered via an event stream; omitted when\nevents are retrieved via the Events API (GET /api/v2/events).", - ), - ] = None - """ - The auth0 event stream ID of the stream the event was delivered on. - Present when the event is delivered via an event stream; omitted when - events are retrieved via the Events API (GET /api/v2/events). - """ - - a_0_purpose: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventA0PurposeEnum], - FieldMetadata(alias="a0purpose"), - pydantic.Field(alias="a0purpose"), - ] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_member_role_assigned_cloud_event_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_org_member_role_assigned_cloud_event_type_enum.py deleted file mode 100644 index 44e12634..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_member_role_assigned_cloud_event_type_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventOrgMemberRoleAssignedCloudEventTypeEnum = typing.Union[ - typing.Literal["organization.member.role.assigned"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_org_member_role_assigned_data.py b/src/auth0/management/types/event_stream_cloud_event_org_member_role_assigned_data.py deleted file mode 100644 index ceaae4fc..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_member_role_assigned_data.py +++ /dev/null @@ -1,30 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_context import EventStreamCloudEventContext -from .event_stream_cloud_event_org_member_role_assigned_object import EventStreamCloudEventOrgMemberRoleAssignedObject -from .event_stream_cloud_event_org_member_role_assigned_previous_object import ( - EventStreamCloudEventOrgMemberRoleAssignedPreviousObject, -) - - -class EventStreamCloudEventOrgMemberRoleAssignedData(UniversalBaseModel): - """ - The event payload. - """ - - object: EventStreamCloudEventOrgMemberRoleAssignedObject - previous_object: typing.Optional[EventStreamCloudEventOrgMemberRoleAssignedPreviousObject] = None - context: typing.Optional[EventStreamCloudEventContext] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_member_role_assigned_object.py b/src/auth0/management/types/event_stream_cloud_event_org_member_role_assigned_object.py deleted file mode 100644 index 1f373f3a..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_member_role_assigned_object.py +++ /dev/null @@ -1,34 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_org_member_role_assigned_object_organization import ( - EventStreamCloudEventOrgMemberRoleAssignedObjectOrganization, -) -from .event_stream_cloud_event_org_member_role_assigned_object_role import ( - EventStreamCloudEventOrgMemberRoleAssignedObjectRole, -) -from .event_stream_cloud_event_org_member_role_assigned_object_user import ( - EventStreamCloudEventOrgMemberRoleAssignedObjectUser, -) - - -class EventStreamCloudEventOrgMemberRoleAssignedObject(UniversalBaseModel): - """ - The event content. - """ - - organization: EventStreamCloudEventOrgMemberRoleAssignedObjectOrganization - user: EventStreamCloudEventOrgMemberRoleAssignedObjectUser - role: EventStreamCloudEventOrgMemberRoleAssignedObjectRole - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_member_role_assigned_object_organization.py b/src/auth0/management/types/event_stream_cloud_event_org_member_role_assigned_object_organization.py deleted file mode 100644 index da7dcbef..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_member_role_assigned_object_organization.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventOrgMemberRoleAssignedObjectOrganization(UniversalBaseModel): - """ - The organization the member belongs to. - """ - - id: str = pydantic.Field() - """ - ID of the organization. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_member_role_assigned_object_role.py b/src/auth0/management/types/event_stream_cloud_event_org_member_role_assigned_object_role.py deleted file mode 100644 index 60202542..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_member_role_assigned_object_role.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventOrgMemberRoleAssignedObjectRole(UniversalBaseModel): - """ - The role assigned to the user in the organization. - """ - - id: str = pydantic.Field() - """ - The ID of the role. - """ - - name: str = pydantic.Field() - """ - The name of the role. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_member_role_assigned_object_user.py b/src/auth0/management/types/event_stream_cloud_event_org_member_role_assigned_object_user.py deleted file mode 100644 index 8a13be90..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_member_role_assigned_object_user.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventOrgMemberRoleAssignedObjectUser(UniversalBaseModel): - """ - The user that is a member of the organization. - """ - - user_id: str = pydantic.Field() - """ - ID of the user which can be used when interacting with other APIs. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_member_role_assigned_previous_object.py b/src/auth0/management/types/event_stream_cloud_event_org_member_role_assigned_previous_object.py deleted file mode 100644 index 51e82db1..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_member_role_assigned_previous_object.py +++ /dev/null @@ -1,34 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_org_member_role_assigned_previous_object_organization import ( - EventStreamCloudEventOrgMemberRoleAssignedPreviousObjectOrganization, -) -from .event_stream_cloud_event_org_member_role_assigned_previous_object_role import ( - EventStreamCloudEventOrgMemberRoleAssignedPreviousObjectRole, -) -from .event_stream_cloud_event_org_member_role_assigned_previous_object_user import ( - EventStreamCloudEventOrgMemberRoleAssignedPreviousObjectUser, -) - - -class EventStreamCloudEventOrgMemberRoleAssignedPreviousObject(UniversalBaseModel): - """ - The event content as it was prior to the change described by this event, when applicable. - """ - - organization: EventStreamCloudEventOrgMemberRoleAssignedPreviousObjectOrganization - user: EventStreamCloudEventOrgMemberRoleAssignedPreviousObjectUser - role: EventStreamCloudEventOrgMemberRoleAssignedPreviousObjectRole - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_member_role_assigned_previous_object_organization.py b/src/auth0/management/types/event_stream_cloud_event_org_member_role_assigned_previous_object_organization.py deleted file mode 100644 index 9c638d40..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_member_role_assigned_previous_object_organization.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventOrgMemberRoleAssignedPreviousObjectOrganization(UniversalBaseModel): - """ - The organization the member belongs to. - """ - - id: str = pydantic.Field() - """ - ID of the organization. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_member_role_assigned_previous_object_role.py b/src/auth0/management/types/event_stream_cloud_event_org_member_role_assigned_previous_object_role.py deleted file mode 100644 index 322bca86..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_member_role_assigned_previous_object_role.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventOrgMemberRoleAssignedPreviousObjectRole(UniversalBaseModel): - """ - The role assigned to the user in the organization. - """ - - id: str = pydantic.Field() - """ - The ID of the role. - """ - - name: str = pydantic.Field() - """ - The name of the role. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_member_role_assigned_previous_object_user.py b/src/auth0/management/types/event_stream_cloud_event_org_member_role_assigned_previous_object_user.py deleted file mode 100644 index 99a281d5..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_member_role_assigned_previous_object_user.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventOrgMemberRoleAssignedPreviousObjectUser(UniversalBaseModel): - """ - The user that is a member of the organization. - """ - - user_id: str = pydantic.Field() - """ - ID of the user which can be used when interacting with other APIs. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_member_role_assigned_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_org_member_role_assigned_type_enum.py deleted file mode 100644 index 704d61f5..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_member_role_assigned_type_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventOrgMemberRoleAssignedTypeEnum = typing.Union[ - typing.Literal["organization.member.role.assigned"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_org_member_role_deleted.py b/src/auth0/management/types/event_stream_cloud_event_org_member_role_deleted.py deleted file mode 100644 index cef68b89..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_member_role_deleted.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_org_member_role_deleted_cloud_event import ( - EventStreamCloudEventOrgMemberRoleDeletedCloudEvent, -) - - -class EventStreamCloudEventOrgMemberRoleDeleted(UniversalBaseModel): - """ - SSE message for organization.member.role.deleted. - """ - - offset: str = pydantic.Field() - """ - Opaque cursor representing position in the stream. Pass as the `from` query parameter to resume. - """ - - event: EventStreamCloudEventOrgMemberRoleDeletedCloudEvent - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_member_role_deleted_cloud_event.py b/src/auth0/management/types/event_stream_cloud_event_org_member_role_deleted_cloud_event.py deleted file mode 100644 index 596a0a5b..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_member_role_deleted_cloud_event.py +++ /dev/null @@ -1,77 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_a_0_purpose_enum import EventStreamCloudEventA0PurposeEnum -from .event_stream_cloud_event_org_member_role_deleted_cloud_event_type_enum import ( - EventStreamCloudEventOrgMemberRoleDeletedCloudEventTypeEnum, -) -from .event_stream_cloud_event_org_member_role_deleted_data import EventStreamCloudEventOrgMemberRoleDeletedData -from .event_stream_cloud_event_spec_version_enum import EventStreamCloudEventSpecVersionEnum - - -class EventStreamCloudEventOrgMemberRoleDeletedCloudEvent(UniversalBaseModel): - """ - Represents an event that occurs when a member is removed from an organization. - """ - - specversion: EventStreamCloudEventSpecVersionEnum - type: EventStreamCloudEventOrgMemberRoleDeletedCloudEventTypeEnum - source: str = pydantic.Field() - """ - The source of the event. This will take the form 'urn:auth0:.'. - """ - - id: str = pydantic.Field() - """ - A unique identifier for the event. - """ - - time: dt.datetime = pydantic.Field() - """ - An ISO-8601 timestamp indicating when the event physically occurred. - """ - - data: EventStreamCloudEventOrgMemberRoleDeletedData - a_0_tenant: typing_extensions.Annotated[ - str, - FieldMetadata(alias="a0tenant"), - pydantic.Field(alias="a0tenant", description="The auth0 tenant ID to which the event is associated."), - ] - """ - The auth0 tenant ID to which the event is associated. - """ - - a_0_stream: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="a0stream"), - pydantic.Field( - alias="a0stream", - description="The auth0 event stream ID of the stream the event was delivered on.\nPresent when the event is delivered via an event stream; omitted when\nevents are retrieved via the Events API (GET /api/v2/events).", - ), - ] = None - """ - The auth0 event stream ID of the stream the event was delivered on. - Present when the event is delivered via an event stream; omitted when - events are retrieved via the Events API (GET /api/v2/events). - """ - - a_0_purpose: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventA0PurposeEnum], - FieldMetadata(alias="a0purpose"), - pydantic.Field(alias="a0purpose"), - ] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_member_role_deleted_cloud_event_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_org_member_role_deleted_cloud_event_type_enum.py deleted file mode 100644 index 0e13c2a8..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_member_role_deleted_cloud_event_type_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventOrgMemberRoleDeletedCloudEventTypeEnum = typing.Union[ - typing.Literal["organization.member.role.deleted"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_org_member_role_deleted_data.py b/src/auth0/management/types/event_stream_cloud_event_org_member_role_deleted_data.py deleted file mode 100644 index 4b15194d..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_member_role_deleted_data.py +++ /dev/null @@ -1,30 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_context import EventStreamCloudEventContext -from .event_stream_cloud_event_org_member_role_deleted_object import EventStreamCloudEventOrgMemberRoleDeletedObject -from .event_stream_cloud_event_org_member_role_deleted_previous_object import ( - EventStreamCloudEventOrgMemberRoleDeletedPreviousObject, -) - - -class EventStreamCloudEventOrgMemberRoleDeletedData(UniversalBaseModel): - """ - The event payload. - """ - - object: EventStreamCloudEventOrgMemberRoleDeletedObject - previous_object: typing.Optional[EventStreamCloudEventOrgMemberRoleDeletedPreviousObject] = None - context: typing.Optional[EventStreamCloudEventContext] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_member_role_deleted_object.py b/src/auth0/management/types/event_stream_cloud_event_org_member_role_deleted_object.py deleted file mode 100644 index a7e5f9df..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_member_role_deleted_object.py +++ /dev/null @@ -1,34 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_org_member_role_deleted_object_organization import ( - EventStreamCloudEventOrgMemberRoleDeletedObjectOrganization, -) -from .event_stream_cloud_event_org_member_role_deleted_object_role import ( - EventStreamCloudEventOrgMemberRoleDeletedObjectRole, -) -from .event_stream_cloud_event_org_member_role_deleted_object_user import ( - EventStreamCloudEventOrgMemberRoleDeletedObjectUser, -) - - -class EventStreamCloudEventOrgMemberRoleDeletedObject(UniversalBaseModel): - """ - The event content. - """ - - organization: EventStreamCloudEventOrgMemberRoleDeletedObjectOrganization - user: EventStreamCloudEventOrgMemberRoleDeletedObjectUser - role: EventStreamCloudEventOrgMemberRoleDeletedObjectRole - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_member_role_deleted_object_organization.py b/src/auth0/management/types/event_stream_cloud_event_org_member_role_deleted_object_organization.py deleted file mode 100644 index 319a4a53..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_member_role_deleted_object_organization.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventOrgMemberRoleDeletedObjectOrganization(UniversalBaseModel): - """ - The organization the member belongs to. - """ - - id: str = pydantic.Field() - """ - ID of the organization. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_member_role_deleted_object_role.py b/src/auth0/management/types/event_stream_cloud_event_org_member_role_deleted_object_role.py deleted file mode 100644 index bf9a1c0f..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_member_role_deleted_object_role.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventOrgMemberRoleDeletedObjectRole(UniversalBaseModel): - """ - The role assigned to the user in the organization. - """ - - id: str = pydantic.Field() - """ - The ID of the role. - """ - - name: str = pydantic.Field() - """ - The name of the role. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_member_role_deleted_object_user.py b/src/auth0/management/types/event_stream_cloud_event_org_member_role_deleted_object_user.py deleted file mode 100644 index c7902519..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_member_role_deleted_object_user.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventOrgMemberRoleDeletedObjectUser(UniversalBaseModel): - """ - The user that is a member of the organization. - """ - - user_id: str = pydantic.Field() - """ - ID of the user which can be used when interacting with other APIs. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_member_role_deleted_previous_object.py b/src/auth0/management/types/event_stream_cloud_event_org_member_role_deleted_previous_object.py deleted file mode 100644 index 3494846e..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_member_role_deleted_previous_object.py +++ /dev/null @@ -1,34 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_org_member_role_deleted_previous_object_organization import ( - EventStreamCloudEventOrgMemberRoleDeletedPreviousObjectOrganization, -) -from .event_stream_cloud_event_org_member_role_deleted_previous_object_role import ( - EventStreamCloudEventOrgMemberRoleDeletedPreviousObjectRole, -) -from .event_stream_cloud_event_org_member_role_deleted_previous_object_user import ( - EventStreamCloudEventOrgMemberRoleDeletedPreviousObjectUser, -) - - -class EventStreamCloudEventOrgMemberRoleDeletedPreviousObject(UniversalBaseModel): - """ - The event content as it was prior to the change described by this event, when applicable. - """ - - organization: EventStreamCloudEventOrgMemberRoleDeletedPreviousObjectOrganization - user: EventStreamCloudEventOrgMemberRoleDeletedPreviousObjectUser - role: EventStreamCloudEventOrgMemberRoleDeletedPreviousObjectRole - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_member_role_deleted_previous_object_organization.py b/src/auth0/management/types/event_stream_cloud_event_org_member_role_deleted_previous_object_organization.py deleted file mode 100644 index 3d5acfd8..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_member_role_deleted_previous_object_organization.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventOrgMemberRoleDeletedPreviousObjectOrganization(UniversalBaseModel): - """ - The organization the member belongs to. - """ - - id: str = pydantic.Field() - """ - ID of the organization. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_member_role_deleted_previous_object_role.py b/src/auth0/management/types/event_stream_cloud_event_org_member_role_deleted_previous_object_role.py deleted file mode 100644 index 0a779fdf..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_member_role_deleted_previous_object_role.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventOrgMemberRoleDeletedPreviousObjectRole(UniversalBaseModel): - """ - The role assigned to the user in the organization. - """ - - id: str = pydantic.Field() - """ - The ID of the role. - """ - - name: str = pydantic.Field() - """ - The name of the role. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_member_role_deleted_previous_object_user.py b/src/auth0/management/types/event_stream_cloud_event_org_member_role_deleted_previous_object_user.py deleted file mode 100644 index bb776319..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_member_role_deleted_previous_object_user.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventOrgMemberRoleDeletedPreviousObjectUser(UniversalBaseModel): - """ - The user that is a member of the organization. - """ - - user_id: str = pydantic.Field() - """ - ID of the user which can be used when interacting with other APIs. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_member_role_deleted_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_org_member_role_deleted_type_enum.py deleted file mode 100644 index 8b731b66..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_member_role_deleted_type_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventOrgMemberRoleDeletedTypeEnum = typing.Union[ - typing.Literal["organization.member.role.deleted"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_org_updated.py b/src/auth0/management/types/event_stream_cloud_event_org_updated.py deleted file mode 100644 index 20e91b93..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_updated.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_org_updated_cloud_event import EventStreamCloudEventOrgUpdatedCloudEvent - - -class EventStreamCloudEventOrgUpdated(UniversalBaseModel): - """ - SSE message for organization.updated. - """ - - offset: str = pydantic.Field() - """ - Opaque cursor representing position in the stream. Pass as the `from` query parameter to resume. - """ - - event: EventStreamCloudEventOrgUpdatedCloudEvent - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_updated_cloud_event.py b/src/auth0/management/types/event_stream_cloud_event_org_updated_cloud_event.py deleted file mode 100644 index 1ace98b7..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_updated_cloud_event.py +++ /dev/null @@ -1,77 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_a_0_purpose_enum import EventStreamCloudEventA0PurposeEnum -from .event_stream_cloud_event_org_updated_cloud_event_type_enum import ( - EventStreamCloudEventOrgUpdatedCloudEventTypeEnum, -) -from .event_stream_cloud_event_org_updated_data import EventStreamCloudEventOrgUpdatedData -from .event_stream_cloud_event_spec_version_enum import EventStreamCloudEventSpecVersionEnum - - -class EventStreamCloudEventOrgUpdatedCloudEvent(UniversalBaseModel): - """ - Represents an event that occurs when an organization is updated. - """ - - specversion: EventStreamCloudEventSpecVersionEnum - type: EventStreamCloudEventOrgUpdatedCloudEventTypeEnum - source: str = pydantic.Field() - """ - The source of the event. This will take the form 'urn:auth0:.'. - """ - - id: str = pydantic.Field() - """ - A unique identifier for the event. - """ - - time: dt.datetime = pydantic.Field() - """ - An ISO-8601 timestamp indicating when the event physically occurred. - """ - - data: EventStreamCloudEventOrgUpdatedData - a_0_tenant: typing_extensions.Annotated[ - str, - FieldMetadata(alias="a0tenant"), - pydantic.Field(alias="a0tenant", description="The auth0 tenant ID to which the event is associated."), - ] - """ - The auth0 tenant ID to which the event is associated. - """ - - a_0_stream: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="a0stream"), - pydantic.Field( - alias="a0stream", - description="The auth0 event stream ID of the stream the event was delivered on.\nPresent when the event is delivered via an event stream; omitted when\nevents are retrieved via the Events API (GET /api/v2/events).", - ), - ] = None - """ - The auth0 event stream ID of the stream the event was delivered on. - Present when the event is delivered via an event stream; omitted when - events are retrieved via the Events API (GET /api/v2/events). - """ - - a_0_purpose: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventA0PurposeEnum], - FieldMetadata(alias="a0purpose"), - pydantic.Field(alias="a0purpose"), - ] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_updated_cloud_event_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_org_updated_cloud_event_type_enum.py deleted file mode 100644 index 8c782db6..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_updated_cloud_event_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventOrgUpdatedCloudEventTypeEnum = typing.Union[typing.Literal["organization.updated"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_org_updated_data.py b/src/auth0/management/types/event_stream_cloud_event_org_updated_data.py deleted file mode 100644 index 463b54ec..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_updated_data.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_context import EventStreamCloudEventContext -from .event_stream_cloud_event_org_updated_object import EventStreamCloudEventOrgUpdatedObject -from .event_stream_cloud_event_org_updated_previous_object import EventStreamCloudEventOrgUpdatedPreviousObject - - -class EventStreamCloudEventOrgUpdatedData(UniversalBaseModel): - """ - The event payload. - """ - - object: EventStreamCloudEventOrgUpdatedObject - previous_object: typing.Optional[EventStreamCloudEventOrgUpdatedPreviousObject] = None - context: typing.Optional[EventStreamCloudEventContext] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_updated_object.py b/src/auth0/management/types/event_stream_cloud_event_org_updated_object.py deleted file mode 100644 index 76ebea34..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_updated_object.py +++ /dev/null @@ -1,41 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_org_updated_object_branding import EventStreamCloudEventOrgUpdatedObjectBranding -from .event_stream_cloud_event_org_updated_object_metadata import EventStreamCloudEventOrgUpdatedObjectMetadata - - -class EventStreamCloudEventOrgUpdatedObject(UniversalBaseModel): - """ - The event content. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The human-readable identifier for the organization that will be used by end-users to direct them to their organization in your application.. - """ - - id: str = pydantic.Field() - """ - ID of the organization. - """ - - display_name: typing.Optional[str] = pydantic.Field(default=None) - """ - If set, the name that will be displayed to end-users for this organization in any interaction with them. - """ - - metadata: typing.Optional[EventStreamCloudEventOrgUpdatedObjectMetadata] = None - branding: typing.Optional[EventStreamCloudEventOrgUpdatedObjectBranding] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_updated_object_branding.py b/src/auth0/management/types/event_stream_cloud_event_org_updated_object_branding.py deleted file mode 100644 index 655f337d..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_updated_object_branding.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_org_updated_object_branding_colors import ( - EventStreamCloudEventOrgUpdatedObjectBrandingColors, -) - - -class EventStreamCloudEventOrgUpdatedObjectBranding(UniversalBaseModel): - """ - The branding associated with the organization. - """ - - logo_url: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of logo to display on login page. - """ - - colors: typing.Optional[EventStreamCloudEventOrgUpdatedObjectBrandingColors] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_updated_object_branding_colors.py b/src/auth0/management/types/event_stream_cloud_event_org_updated_object_branding_colors.py deleted file mode 100644 index 92dbb73d..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_updated_object_branding_colors.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventOrgUpdatedObjectBrandingColors(UniversalBaseModel): - """ - Color scheme used to customize the login pages. - """ - - primary: typing.Optional[str] = pydantic.Field(default=None) - """ - HEX Color for primary elements. - """ - - page_background: typing.Optional[str] = pydantic.Field(default=None) - """ - HEX Color for background. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_updated_object_metadata.py b/src/auth0/management/types/event_stream_cloud_event_org_updated_object_metadata.py deleted file mode 100644 index 5132722a..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_updated_object_metadata.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventOrgUpdatedObjectMetadata = typing.Dict[str, typing.Any] -""" -The metadata associated with the organization. -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_org_updated_previous_object.py b/src/auth0/management/types/event_stream_cloud_event_org_updated_previous_object.py deleted file mode 100644 index 7e9cde0a..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_updated_previous_object.py +++ /dev/null @@ -1,45 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_org_updated_previous_object_branding import ( - EventStreamCloudEventOrgUpdatedPreviousObjectBranding, -) -from .event_stream_cloud_event_org_updated_previous_object_metadata import ( - EventStreamCloudEventOrgUpdatedPreviousObjectMetadata, -) - - -class EventStreamCloudEventOrgUpdatedPreviousObject(UniversalBaseModel): - """ - The event content as it was prior to the change described by this event, when applicable. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The human-readable identifier for the organization that will be used by end-users to direct them to their organization in your application.. - """ - - id: str = pydantic.Field() - """ - ID of the organization. - """ - - display_name: typing.Optional[str] = pydantic.Field(default=None) - """ - If set, the name that will be displayed to end-users for this organization in any interaction with them. - """ - - metadata: typing.Optional[EventStreamCloudEventOrgUpdatedPreviousObjectMetadata] = None - branding: typing.Optional[EventStreamCloudEventOrgUpdatedPreviousObjectBranding] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_updated_previous_object_branding.py b/src/auth0/management/types/event_stream_cloud_event_org_updated_previous_object_branding.py deleted file mode 100644 index 5ac28a98..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_updated_previous_object_branding.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_org_updated_previous_object_branding_colors import ( - EventStreamCloudEventOrgUpdatedPreviousObjectBrandingColors, -) - - -class EventStreamCloudEventOrgUpdatedPreviousObjectBranding(UniversalBaseModel): - """ - The branding associated with the organization. - """ - - logo_url: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of logo to display on login page. - """ - - colors: typing.Optional[EventStreamCloudEventOrgUpdatedPreviousObjectBrandingColors] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_updated_previous_object_branding_colors.py b/src/auth0/management/types/event_stream_cloud_event_org_updated_previous_object_branding_colors.py deleted file mode 100644 index 2cceb574..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_updated_previous_object_branding_colors.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventOrgUpdatedPreviousObjectBrandingColors(UniversalBaseModel): - """ - Color scheme used to customize the login pages. - """ - - primary: typing.Optional[str] = pydantic.Field(default=None) - """ - HEX Color for primary elements. - """ - - page_background: typing.Optional[str] = pydantic.Field(default=None) - """ - HEX Color for background. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_org_updated_previous_object_metadata.py b/src/auth0/management/types/event_stream_cloud_event_org_updated_previous_object_metadata.py deleted file mode 100644 index 7c74a770..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_updated_previous_object_metadata.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventOrgUpdatedPreviousObjectMetadata = typing.Dict[str, typing.Any] -""" -The metadata associated with the organization. -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_org_updated_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_org_updated_type_enum.py deleted file mode 100644 index e3001f85..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_org_updated_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventOrgUpdatedTypeEnum = typing.Union[typing.Literal["organization.updated"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_spec_version_enum.py b/src/auth0/management/types/event_stream_cloud_event_spec_version_enum.py deleted file mode 100644 index 3d55dd5b..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_spec_version_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventSpecVersionEnum = typing.Union[typing.Literal["1.0"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_user_created.py b/src/auth0/management/types/event_stream_cloud_event_user_created.py deleted file mode 100644 index 2d36a452..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_created.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_user_created_cloud_event import EventStreamCloudEventUserCreatedCloudEvent - - -class EventStreamCloudEventUserCreated(UniversalBaseModel): - """ - SSE message for user.created. - """ - - offset: str = pydantic.Field() - """ - Opaque cursor representing position in the stream. Pass as the `from` query parameter to resume. - """ - - event: EventStreamCloudEventUserCreatedCloudEvent - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_user_created_cloud_event.py b/src/auth0/management/types/event_stream_cloud_event_user_created_cloud_event.py deleted file mode 100644 index 136d9efd..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_created_cloud_event.py +++ /dev/null @@ -1,77 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_a_0_purpose_enum import EventStreamCloudEventA0PurposeEnum -from .event_stream_cloud_event_spec_version_enum import EventStreamCloudEventSpecVersionEnum -from .event_stream_cloud_event_user_created_cloud_event_type_enum import ( - EventStreamCloudEventUserCreatedCloudEventTypeEnum, -) -from .event_stream_cloud_event_user_created_data import EventStreamCloudEventUserCreatedData - - -class EventStreamCloudEventUserCreatedCloudEvent(UniversalBaseModel): - """ - Represents an event that occurs when a user is created. - """ - - specversion: EventStreamCloudEventSpecVersionEnum - type: EventStreamCloudEventUserCreatedCloudEventTypeEnum - source: str = pydantic.Field() - """ - The source of the event. This will take the form 'urn:auth0:.'. - """ - - id: str = pydantic.Field() - """ - A unique identifier for the event. - """ - - time: dt.datetime = pydantic.Field() - """ - An ISO-8601 timestamp indicating when the event physically occurred. - """ - - data: EventStreamCloudEventUserCreatedData - a_0_tenant: typing_extensions.Annotated[ - str, - FieldMetadata(alias="a0tenant"), - pydantic.Field(alias="a0tenant", description="The auth0 tenant ID to which the event is associated."), - ] - """ - The auth0 tenant ID to which the event is associated. - """ - - a_0_stream: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="a0stream"), - pydantic.Field( - alias="a0stream", - description="The auth0 event stream ID of the stream the event was delivered on.\nPresent when the event is delivered via an event stream; omitted when\nevents are retrieved via the Events API (GET /api/v2/events).", - ), - ] = None - """ - The auth0 event stream ID of the stream the event was delivered on. - Present when the event is delivered via an event stream; omitted when - events are retrieved via the Events API (GET /api/v2/events). - """ - - a_0_purpose: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventA0PurposeEnum], - FieldMetadata(alias="a0purpose"), - pydantic.Field(alias="a0purpose"), - ] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_user_created_cloud_event_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_user_created_cloud_event_type_enum.py deleted file mode 100644 index b80c5c88..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_created_cloud_event_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventUserCreatedCloudEventTypeEnum = typing.Union[typing.Literal["user.created"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_user_created_data.py b/src/auth0/management/types/event_stream_cloud_event_user_created_data.py deleted file mode 100644 index 3b04d060..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_created_data.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_context import EventStreamCloudEventContext -from .event_stream_cloud_event_user_created_object import EventStreamCloudEventUserCreatedObject -from .event_stream_cloud_event_user_created_previous_object import EventStreamCloudEventUserCreatedPreviousObject - - -class EventStreamCloudEventUserCreatedData(UniversalBaseModel): - """ - The event payload. - """ - - object: EventStreamCloudEventUserCreatedObject - previous_object: typing.Optional[EventStreamCloudEventUserCreatedPreviousObject] = None - context: typing.Optional[EventStreamCloudEventContext] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_user_created_object.py b/src/auth0/management/types/event_stream_cloud_event_user_created_object.py deleted file mode 100644 index e0221b9e..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_created_object.py +++ /dev/null @@ -1,126 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_user_created_object_app_metadata import EventStreamCloudEventUserCreatedObjectAppMetadata -from .event_stream_cloud_event_user_created_object_identities_item import ( - EventStreamCloudEventUserCreatedObjectIdentitiesItem, -) -from .event_stream_cloud_event_user_created_object_user_metadata import ( - EventStreamCloudEventUserCreatedObjectUserMetadata, -) - - -class EventStreamCloudEventUserCreatedObject(UniversalBaseModel): - """ - The event content. - """ - - user_id: str = pydantic.Field() - """ - ID of the user which can be used when interacting with other APIs. - """ - - email: typing.Optional[str] = pydantic.Field(default=None) - """ - Email address of this user. - """ - - email_verified: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this email address is verified (true) or unverified (false). - """ - - username: typing.Optional[str] = pydantic.Field(default=None) - """ - Username of this user. - """ - - phone_number: typing.Optional[str] = pydantic.Field(default=None) - """ - Phone number of this user. - """ - - phone_verified: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this phone number has been verified (true) or not (false). - """ - - created_at: dt.datetime = pydantic.Field() - """ - Date and time when this entity was created (ISO_8601 format). - """ - - updated_at: dt.datetime = pydantic.Field() - """ - Date and time when this entity was last updated/modified (ISO_8601 format). - """ - - identities: typing.List[EventStreamCloudEventUserCreatedObjectIdentitiesItem] = pydantic.Field() - """ - Array of user identity objects when accounts are linked. - """ - - app_metadata: typing.Optional[EventStreamCloudEventUserCreatedObjectAppMetadata] = None - user_metadata: typing.Optional[EventStreamCloudEventUserCreatedObjectUserMetadata] = None - picture: typing.Optional[str] = pydantic.Field(default=None) - """ - URL to picture, photo, or avatar of this user. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of this user. - """ - - nickname: typing.Optional[str] = pydantic.Field(default=None) - """ - Preferred nickname or alias of this user. - """ - - multifactor: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - List of multi-factor authentication providers with which this user has enrolled. - """ - - last_ip: typing.Optional[str] = pydantic.Field(default=None) - """ - Last IP address from which this user logged in. - """ - - last_login: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Last date and time this user logged in (ISO_8601 format). - """ - - logins_count: typing.Optional[int] = pydantic.Field(default=None) - """ - Total number of logins this user has performed. - """ - - blocked: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this user was blocked by an administrator (true) or is not (false). - """ - - given_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Given name/first name/forename of this user. - """ - - family_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Family name/last name/surname of this user. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_user_created_object_app_metadata.py b/src/auth0/management/types/event_stream_cloud_event_user_created_object_app_metadata.py deleted file mode 100644 index 2122c666..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_created_object_app_metadata.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventUserCreatedObjectAppMetadata = typing.Dict[str, typing.Any] -""" -User metadata to which this user has read-only access. -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item.py b/src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item.py deleted file mode 100644 index 2ccc7d81..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .event_stream_cloud_event_user_created_object_identities_item_custom import ( - EventStreamCloudEventUserCreatedObjectIdentitiesItemCustom, -) -from .event_stream_cloud_event_user_created_object_identities_item_database import ( - EventStreamCloudEventUserCreatedObjectIdentitiesItemDatabase, -) -from .event_stream_cloud_event_user_created_object_identities_item_enterprise import ( - EventStreamCloudEventUserCreatedObjectIdentitiesItemEnterprise, -) -from .event_stream_cloud_event_user_created_object_identities_item_passwordless import ( - EventStreamCloudEventUserCreatedObjectIdentitiesItemPasswordless, -) -from .event_stream_cloud_event_user_created_object_identities_item_social import ( - EventStreamCloudEventUserCreatedObjectIdentitiesItemSocial, -) - -EventStreamCloudEventUserCreatedObjectIdentitiesItem = typing.Union[ - EventStreamCloudEventUserCreatedObjectIdentitiesItemCustom, - EventStreamCloudEventUserCreatedObjectIdentitiesItemDatabase, - EventStreamCloudEventUserCreatedObjectIdentitiesItemEnterprise, - EventStreamCloudEventUserCreatedObjectIdentitiesItemPasswordless, - EventStreamCloudEventUserCreatedObjectIdentitiesItemSocial, -] diff --git a/src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_custom.py b/src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_custom.py deleted file mode 100644 index 0798928b..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_custom.py +++ /dev/null @@ -1,53 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_user_created_object_identities_item_custom_is_social_enum import ( - EventStreamCloudEventUserCreatedObjectIdentitiesItemCustomIsSocialEnum, -) -from .event_stream_cloud_event_user_created_object_identities_item_custom_profile_data import ( - EventStreamCloudEventUserCreatedObjectIdentitiesItemCustomProfileData, -) -from .event_stream_cloud_event_user_created_object_identities_item_custom_provider_enum import ( - EventStreamCloudEventUserCreatedObjectIdentitiesItemCustomProviderEnum, -) -from .event_stream_cloud_event_user_created_object_identities_item_custom_user_id import ( - EventStreamCloudEventUserCreatedObjectIdentitiesItemCustomUserId, -) - - -class EventStreamCloudEventUserCreatedObjectIdentitiesItemCustom(UniversalBaseModel): - """ - The identity object for custom identity providers. - """ - - connection: str = pydantic.Field() - """ - Name of the connection containing this identity. - """ - - user_id: EventStreamCloudEventUserCreatedObjectIdentitiesItemCustomUserId - profile_data: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventUserCreatedObjectIdentitiesItemCustomProfileData], - FieldMetadata(alias="profileData"), - pydantic.Field(alias="profileData"), - ] = None - provider: EventStreamCloudEventUserCreatedObjectIdentitiesItemCustomProviderEnum - is_social: typing_extensions.Annotated[ - EventStreamCloudEventUserCreatedObjectIdentitiesItemCustomIsSocialEnum, - FieldMetadata(alias="isSocial"), - pydantic.Field(alias="isSocial"), - ] - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_custom_is_social_enum.py b/src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_custom_is_social_enum.py deleted file mode 100644 index f30a2f4c..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_custom_is_social_enum.py +++ /dev/null @@ -1,3 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -EventStreamCloudEventUserCreatedObjectIdentitiesItemCustomIsSocialEnum = bool diff --git a/src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_custom_profile_data.py b/src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_custom_profile_data.py deleted file mode 100644 index 862a5123..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_custom_profile_data.py +++ /dev/null @@ -1,61 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventUserCreatedObjectIdentitiesItemCustomProfileData(UniversalBaseModel): - """ - Profile data for the user. - """ - - email: typing.Optional[str] = pydantic.Field(default=None) - """ - Email address of this user. - """ - - email_verified: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this email address is verified (true) or unverified (false). - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of this user. - """ - - username: typing.Optional[str] = pydantic.Field(default=None) - """ - Username of this user. - """ - - given_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Given name/first name/forename of this user. - """ - - family_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Family name/last name/surname of this user. - """ - - phone_number: typing.Optional[str] = pydantic.Field(default=None) - """ - Phone number of this user. - """ - - phone_verified: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this phone number has been verified (true) or not (false). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_custom_provider_enum.py b/src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_custom_provider_enum.py deleted file mode 100644 index 366ec6ea..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_custom_provider_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventUserCreatedObjectIdentitiesItemCustomProviderEnum = typing.Union[ - typing.Literal["custom"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_custom_user_id.py b/src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_custom_user_id.py deleted file mode 100644 index 1cdde83c..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_custom_user_id.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventUserCreatedObjectIdentitiesItemCustomUserId = typing.Union[str, int] diff --git a/src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_database.py b/src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_database.py deleted file mode 100644 index 0191a5ca..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_database.py +++ /dev/null @@ -1,53 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_user_created_object_identities_item_database_is_social_enum import ( - EventStreamCloudEventUserCreatedObjectIdentitiesItemDatabaseIsSocialEnum, -) -from .event_stream_cloud_event_user_created_object_identities_item_database_profile_data import ( - EventStreamCloudEventUserCreatedObjectIdentitiesItemDatabaseProfileData, -) -from .event_stream_cloud_event_user_created_object_identities_item_database_provider_enum import ( - EventStreamCloudEventUserCreatedObjectIdentitiesItemDatabaseProviderEnum, -) -from .event_stream_cloud_event_user_created_object_identities_item_database_user_id import ( - EventStreamCloudEventUserCreatedObjectIdentitiesItemDatabaseUserId, -) - - -class EventStreamCloudEventUserCreatedObjectIdentitiesItemDatabase(UniversalBaseModel): - """ - The identity object for database identity providers. - """ - - connection: str = pydantic.Field() - """ - Name of the connection containing this identity. - """ - - user_id: EventStreamCloudEventUserCreatedObjectIdentitiesItemDatabaseUserId - profile_data: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventUserCreatedObjectIdentitiesItemDatabaseProfileData], - FieldMetadata(alias="profileData"), - pydantic.Field(alias="profileData"), - ] = None - provider: EventStreamCloudEventUserCreatedObjectIdentitiesItemDatabaseProviderEnum - is_social: typing_extensions.Annotated[ - EventStreamCloudEventUserCreatedObjectIdentitiesItemDatabaseIsSocialEnum, - FieldMetadata(alias="isSocial"), - pydantic.Field(alias="isSocial"), - ] - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_database_is_social_enum.py b/src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_database_is_social_enum.py deleted file mode 100644 index fc12aedc..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_database_is_social_enum.py +++ /dev/null @@ -1,3 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -EventStreamCloudEventUserCreatedObjectIdentitiesItemDatabaseIsSocialEnum = bool diff --git a/src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_database_profile_data.py b/src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_database_profile_data.py deleted file mode 100644 index 646ca1d3..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_database_profile_data.py +++ /dev/null @@ -1,61 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventUserCreatedObjectIdentitiesItemDatabaseProfileData(UniversalBaseModel): - """ - Profile data for the user. - """ - - email: typing.Optional[str] = pydantic.Field(default=None) - """ - Email address of this user. - """ - - email_verified: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this email address is verified (true) or unverified (false). - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of this user. - """ - - username: typing.Optional[str] = pydantic.Field(default=None) - """ - Username of this user. - """ - - given_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Given name/first name/forename of this user. - """ - - family_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Family name/last name/surname of this user. - """ - - phone_number: typing.Optional[str] = pydantic.Field(default=None) - """ - Phone number of this user. - """ - - phone_verified: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this phone number has been verified (true) or not (false). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_database_provider_enum.py b/src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_database_provider_enum.py deleted file mode 100644 index 80cc9224..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_database_provider_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventUserCreatedObjectIdentitiesItemDatabaseProviderEnum = typing.Union[ - typing.Literal["auth0"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_database_user_id.py b/src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_database_user_id.py deleted file mode 100644 index 5bbb6f52..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_database_user_id.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventUserCreatedObjectIdentitiesItemDatabaseUserId = typing.Union[str, int] diff --git a/src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_enterprise.py b/src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_enterprise.py deleted file mode 100644 index 35aaff87..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_enterprise.py +++ /dev/null @@ -1,53 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_user_created_object_identities_item_enterprise_is_social_enum import ( - EventStreamCloudEventUserCreatedObjectIdentitiesItemEnterpriseIsSocialEnum, -) -from .event_stream_cloud_event_user_created_object_identities_item_enterprise_profile_data import ( - EventStreamCloudEventUserCreatedObjectIdentitiesItemEnterpriseProfileData, -) -from .event_stream_cloud_event_user_created_object_identities_item_enterprise_provider_enum import ( - EventStreamCloudEventUserCreatedObjectIdentitiesItemEnterpriseProviderEnum, -) -from .event_stream_cloud_event_user_created_object_identities_item_enterprise_user_id import ( - EventStreamCloudEventUserCreatedObjectIdentitiesItemEnterpriseUserId, -) - - -class EventStreamCloudEventUserCreatedObjectIdentitiesItemEnterprise(UniversalBaseModel): - """ - The identity object for enterprise identity providers. - """ - - connection: str = pydantic.Field() - """ - Name of the connection containing this identity. - """ - - user_id: EventStreamCloudEventUserCreatedObjectIdentitiesItemEnterpriseUserId - profile_data: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventUserCreatedObjectIdentitiesItemEnterpriseProfileData], - FieldMetadata(alias="profileData"), - pydantic.Field(alias="profileData"), - ] = None - provider: EventStreamCloudEventUserCreatedObjectIdentitiesItemEnterpriseProviderEnum - is_social: typing_extensions.Annotated[ - EventStreamCloudEventUserCreatedObjectIdentitiesItemEnterpriseIsSocialEnum, - FieldMetadata(alias="isSocial"), - pydantic.Field(alias="isSocial"), - ] - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_enterprise_is_social_enum.py b/src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_enterprise_is_social_enum.py deleted file mode 100644 index 9cc8da75..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_enterprise_is_social_enum.py +++ /dev/null @@ -1,3 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -EventStreamCloudEventUserCreatedObjectIdentitiesItemEnterpriseIsSocialEnum = bool diff --git a/src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_enterprise_profile_data.py b/src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_enterprise_profile_data.py deleted file mode 100644 index 9fe1fc52..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_enterprise_profile_data.py +++ /dev/null @@ -1,61 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventUserCreatedObjectIdentitiesItemEnterpriseProfileData(UniversalBaseModel): - """ - Profile data for the user. - """ - - email: typing.Optional[str] = pydantic.Field(default=None) - """ - Email address of this user. - """ - - email_verified: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this email address is verified (true) or unverified (false). - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of this user. - """ - - username: typing.Optional[str] = pydantic.Field(default=None) - """ - Username of this user. - """ - - given_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Given name/first name/forename of this user. - """ - - family_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Family name/last name/surname of this user. - """ - - phone_number: typing.Optional[str] = pydantic.Field(default=None) - """ - Phone number of this user. - """ - - phone_verified: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this phone number has been verified (true) or not (false). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_enterprise_provider_enum.py b/src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_enterprise_provider_enum.py deleted file mode 100644 index 1b08d23e..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_enterprise_provider_enum.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventUserCreatedObjectIdentitiesItemEnterpriseProviderEnum = typing.Union[ - typing.Literal[ - "ad", "adfs", "google-apps", "ip", "office365", "oidc", "okta", "pingfederate", "samlp", "sharepoint", "waad" - ], - typing.Any, -] diff --git a/src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_enterprise_user_id.py b/src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_enterprise_user_id.py deleted file mode 100644 index f5e9d179..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_enterprise_user_id.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventUserCreatedObjectIdentitiesItemEnterpriseUserId = typing.Union[str, int] diff --git a/src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_passwordless.py b/src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_passwordless.py deleted file mode 100644 index c99ec560..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_passwordless.py +++ /dev/null @@ -1,53 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_user_created_object_identities_item_passwordless_is_social_enum import ( - EventStreamCloudEventUserCreatedObjectIdentitiesItemPasswordlessIsSocialEnum, -) -from .event_stream_cloud_event_user_created_object_identities_item_passwordless_profile_data import ( - EventStreamCloudEventUserCreatedObjectIdentitiesItemPasswordlessProfileData, -) -from .event_stream_cloud_event_user_created_object_identities_item_passwordless_provider_enum import ( - EventStreamCloudEventUserCreatedObjectIdentitiesItemPasswordlessProviderEnum, -) -from .event_stream_cloud_event_user_created_object_identities_item_passwordless_user_id import ( - EventStreamCloudEventUserCreatedObjectIdentitiesItemPasswordlessUserId, -) - - -class EventStreamCloudEventUserCreatedObjectIdentitiesItemPasswordless(UniversalBaseModel): - """ - The identity object for passwordless identity providers. - """ - - connection: str = pydantic.Field() - """ - Name of the connection containing this identity. - """ - - user_id: EventStreamCloudEventUserCreatedObjectIdentitiesItemPasswordlessUserId - profile_data: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventUserCreatedObjectIdentitiesItemPasswordlessProfileData], - FieldMetadata(alias="profileData"), - pydantic.Field(alias="profileData"), - ] = None - provider: EventStreamCloudEventUserCreatedObjectIdentitiesItemPasswordlessProviderEnum - is_social: typing_extensions.Annotated[ - EventStreamCloudEventUserCreatedObjectIdentitiesItemPasswordlessIsSocialEnum, - FieldMetadata(alias="isSocial"), - pydantic.Field(alias="isSocial"), - ] - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_passwordless_is_social_enum.py b/src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_passwordless_is_social_enum.py deleted file mode 100644 index 969cc603..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_passwordless_is_social_enum.py +++ /dev/null @@ -1,3 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -EventStreamCloudEventUserCreatedObjectIdentitiesItemPasswordlessIsSocialEnum = bool diff --git a/src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_passwordless_profile_data.py b/src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_passwordless_profile_data.py deleted file mode 100644 index 123ec2a1..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_passwordless_profile_data.py +++ /dev/null @@ -1,61 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventUserCreatedObjectIdentitiesItemPasswordlessProfileData(UniversalBaseModel): - """ - Profile data for the user. - """ - - email: typing.Optional[str] = pydantic.Field(default=None) - """ - Email address of this user. - """ - - email_verified: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this email address is verified (true) or unverified (false). - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of this user. - """ - - username: typing.Optional[str] = pydantic.Field(default=None) - """ - Username of this user. - """ - - given_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Given name/first name/forename of this user. - """ - - family_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Family name/last name/surname of this user. - """ - - phone_number: typing.Optional[str] = pydantic.Field(default=None) - """ - Phone number of this user. - """ - - phone_verified: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this phone number has been verified (true) or not (false). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_passwordless_provider_enum.py b/src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_passwordless_provider_enum.py deleted file mode 100644 index 0bd11d03..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_passwordless_provider_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventUserCreatedObjectIdentitiesItemPasswordlessProviderEnum = typing.Union[ - typing.Literal["email", "sms"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_passwordless_user_id.py b/src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_passwordless_user_id.py deleted file mode 100644 index b1409502..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_passwordless_user_id.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventUserCreatedObjectIdentitiesItemPasswordlessUserId = typing.Union[str, int] diff --git a/src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_social.py b/src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_social.py deleted file mode 100644 index a77cbb0b..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_social.py +++ /dev/null @@ -1,53 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_user_created_object_identities_item_social_is_social_enum import ( - EventStreamCloudEventUserCreatedObjectIdentitiesItemSocialIsSocialEnum, -) -from .event_stream_cloud_event_user_created_object_identities_item_social_profile_data import ( - EventStreamCloudEventUserCreatedObjectIdentitiesItemSocialProfileData, -) -from .event_stream_cloud_event_user_created_object_identities_item_social_provider_enum import ( - EventStreamCloudEventUserCreatedObjectIdentitiesItemSocialProviderEnum, -) -from .event_stream_cloud_event_user_created_object_identities_item_social_user_id import ( - EventStreamCloudEventUserCreatedObjectIdentitiesItemSocialUserId, -) - - -class EventStreamCloudEventUserCreatedObjectIdentitiesItemSocial(UniversalBaseModel): - """ - The identity object for social identity providers. - """ - - connection: str = pydantic.Field() - """ - Name of the connection containing this identity. - """ - - user_id: EventStreamCloudEventUserCreatedObjectIdentitiesItemSocialUserId - profile_data: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventUserCreatedObjectIdentitiesItemSocialProfileData], - FieldMetadata(alias="profileData"), - pydantic.Field(alias="profileData"), - ] = None - provider: EventStreamCloudEventUserCreatedObjectIdentitiesItemSocialProviderEnum - is_social: typing_extensions.Annotated[ - EventStreamCloudEventUserCreatedObjectIdentitiesItemSocialIsSocialEnum, - FieldMetadata(alias="isSocial"), - pydantic.Field(alias="isSocial"), - ] - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_social_is_social_enum.py b/src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_social_is_social_enum.py deleted file mode 100644 index 77d06317..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_social_is_social_enum.py +++ /dev/null @@ -1,3 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -EventStreamCloudEventUserCreatedObjectIdentitiesItemSocialIsSocialEnum = bool diff --git a/src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_social_profile_data.py b/src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_social_profile_data.py deleted file mode 100644 index 4d55adaa..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_social_profile_data.py +++ /dev/null @@ -1,61 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventUserCreatedObjectIdentitiesItemSocialProfileData(UniversalBaseModel): - """ - Profile data for the user. - """ - - email: typing.Optional[str] = pydantic.Field(default=None) - """ - Email address of this user. - """ - - email_verified: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this email address is verified (true) or unverified (false). - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of this user. - """ - - username: typing.Optional[str] = pydantic.Field(default=None) - """ - Username of this user. - """ - - given_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Given name/first name/forename of this user. - """ - - family_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Family name/last name/surname of this user. - """ - - phone_number: typing.Optional[str] = pydantic.Field(default=None) - """ - Phone number of this user. - """ - - phone_verified: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this phone number has been verified (true) or not (false). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_social_provider_enum.py b/src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_social_provider_enum.py deleted file mode 100644 index 0a9e3941..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_social_provider_enum.py +++ /dev/null @@ -1,48 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventUserCreatedObjectIdentitiesItemSocialProviderEnum = typing.Union[ - typing.Literal[ - "amazon", - "apple", - "dropbox", - "bitbucket", - "auth0-oidc", - "baidu", - "bitly", - "box", - "daccount", - "dwolla", - "evernote-sandbox", - "evernote", - "exact", - "facebook", - "fitbit", - "github", - "google-oauth2", - "instagram", - "line", - "linkedin", - "oauth1", - "oauth2", - "paypal", - "paypal-sandbox", - "planningcenter", - "salesforce-community", - "salesforce-sandbox", - "salesforce", - "shopify", - "soundcloud", - "thirtysevensignals", - "twitter", - "untapped", - "vkontakte", - "weibo", - "windowslive", - "wordpress", - "yahoo", - "yandex", - ], - typing.Any, -] diff --git a/src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_social_user_id.py b/src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_social_user_id.py deleted file mode 100644 index 194d3121..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_created_object_identities_item_social_user_id.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventUserCreatedObjectIdentitiesItemSocialUserId = typing.Union[str, int] diff --git a/src/auth0/management/types/event_stream_cloud_event_user_created_object_user_metadata.py b/src/auth0/management/types/event_stream_cloud_event_user_created_object_user_metadata.py deleted file mode 100644 index 996d7352..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_created_object_user_metadata.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventUserCreatedObjectUserMetadata = typing.Dict[str, typing.Any] -""" -User metadata to which this user has read/write access. -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object.py b/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object.py deleted file mode 100644 index 1f76fa34..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object.py +++ /dev/null @@ -1,128 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_user_created_previous_object_app_metadata import ( - EventStreamCloudEventUserCreatedPreviousObjectAppMetadata, -) -from .event_stream_cloud_event_user_created_previous_object_identities_item import ( - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItem, -) -from .event_stream_cloud_event_user_created_previous_object_user_metadata import ( - EventStreamCloudEventUserCreatedPreviousObjectUserMetadata, -) - - -class EventStreamCloudEventUserCreatedPreviousObject(UniversalBaseModel): - """ - The event content as it was prior to the change described by this event, when applicable. - """ - - user_id: str = pydantic.Field() - """ - ID of the user which can be used when interacting with other APIs. - """ - - email: typing.Optional[str] = pydantic.Field(default=None) - """ - Email address of this user. - """ - - email_verified: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this email address is verified (true) or unverified (false). - """ - - username: typing.Optional[str] = pydantic.Field(default=None) - """ - Username of this user. - """ - - phone_number: typing.Optional[str] = pydantic.Field(default=None) - """ - Phone number of this user. - """ - - phone_verified: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this phone number has been verified (true) or not (false). - """ - - created_at: dt.datetime = pydantic.Field() - """ - Date and time when this entity was created (ISO_8601 format). - """ - - updated_at: dt.datetime = pydantic.Field() - """ - Date and time when this entity was last updated/modified (ISO_8601 format). - """ - - identities: typing.List[EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItem] = pydantic.Field() - """ - Array of user identity objects when accounts are linked. - """ - - app_metadata: typing.Optional[EventStreamCloudEventUserCreatedPreviousObjectAppMetadata] = None - user_metadata: typing.Optional[EventStreamCloudEventUserCreatedPreviousObjectUserMetadata] = None - picture: typing.Optional[str] = pydantic.Field(default=None) - """ - URL to picture, photo, or avatar of this user. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of this user. - """ - - nickname: typing.Optional[str] = pydantic.Field(default=None) - """ - Preferred nickname or alias of this user. - """ - - multifactor: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - List of multi-factor authentication providers with which this user has enrolled. - """ - - last_ip: typing.Optional[str] = pydantic.Field(default=None) - """ - Last IP address from which this user logged in. - """ - - last_login: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Last date and time this user logged in (ISO_8601 format). - """ - - logins_count: typing.Optional[int] = pydantic.Field(default=None) - """ - Total number of logins this user has performed. - """ - - blocked: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this user was blocked by an administrator (true) or is not (false). - """ - - given_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Given name/first name/forename of this user. - """ - - family_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Family name/last name/surname of this user. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_app_metadata.py b/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_app_metadata.py deleted file mode 100644 index 1cf0c91b..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_app_metadata.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventUserCreatedPreviousObjectAppMetadata = typing.Dict[str, typing.Any] -""" -User metadata to which this user has read-only access. -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item.py b/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item.py deleted file mode 100644 index 251afce9..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .event_stream_cloud_event_user_created_previous_object_identities_item_custom import ( - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustom, -) -from .event_stream_cloud_event_user_created_previous_object_identities_item_database import ( - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabase, -) -from .event_stream_cloud_event_user_created_previous_object_identities_item_enterprise import ( - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterprise, -) -from .event_stream_cloud_event_user_created_previous_object_identities_item_passwordless import ( - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordless, -) -from .event_stream_cloud_event_user_created_previous_object_identities_item_social import ( - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocial, -) - -EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItem = typing.Union[ - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustom, - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabase, - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterprise, - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordless, - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocial, -] diff --git a/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_custom.py b/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_custom.py deleted file mode 100644 index 36538a37..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_custom.py +++ /dev/null @@ -1,53 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_user_created_previous_object_identities_item_custom_is_social_enum import ( - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomIsSocialEnum, -) -from .event_stream_cloud_event_user_created_previous_object_identities_item_custom_profile_data import ( - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomProfileData, -) -from .event_stream_cloud_event_user_created_previous_object_identities_item_custom_provider_enum import ( - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomProviderEnum, -) -from .event_stream_cloud_event_user_created_previous_object_identities_item_custom_user_id import ( - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomUserId, -) - - -class EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustom(UniversalBaseModel): - """ - The identity object for custom identity providers. - """ - - connection: str = pydantic.Field() - """ - Name of the connection containing this identity. - """ - - user_id: EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomUserId - profile_data: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomProfileData], - FieldMetadata(alias="profileData"), - pydantic.Field(alias="profileData"), - ] = None - provider: EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomProviderEnum - is_social: typing_extensions.Annotated[ - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomIsSocialEnum, - FieldMetadata(alias="isSocial"), - pydantic.Field(alias="isSocial"), - ] - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_custom_is_social_enum.py b/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_custom_is_social_enum.py deleted file mode 100644 index 6f3f852a..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_custom_is_social_enum.py +++ /dev/null @@ -1,3 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomIsSocialEnum = bool diff --git a/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_custom_profile_data.py b/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_custom_profile_data.py deleted file mode 100644 index 65e40eb4..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_custom_profile_data.py +++ /dev/null @@ -1,61 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomProfileData(UniversalBaseModel): - """ - Profile data for the user. - """ - - email: typing.Optional[str] = pydantic.Field(default=None) - """ - Email address of this user. - """ - - email_verified: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this email address is verified (true) or unverified (false). - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of this user. - """ - - username: typing.Optional[str] = pydantic.Field(default=None) - """ - Username of this user. - """ - - given_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Given name/first name/forename of this user. - """ - - family_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Family name/last name/surname of this user. - """ - - phone_number: typing.Optional[str] = pydantic.Field(default=None) - """ - Phone number of this user. - """ - - phone_verified: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this phone number has been verified (true) or not (false). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_custom_provider_enum.py b/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_custom_provider_enum.py deleted file mode 100644 index 96223465..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_custom_provider_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomProviderEnum = typing.Union[ - typing.Literal["custom"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_custom_user_id.py b/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_custom_user_id.py deleted file mode 100644 index e49bb7e2..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_custom_user_id.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemCustomUserId = typing.Union[str, int] diff --git a/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_database.py b/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_database.py deleted file mode 100644 index 2067f518..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_database.py +++ /dev/null @@ -1,53 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_user_created_previous_object_identities_item_database_is_social_enum import ( - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseIsSocialEnum, -) -from .event_stream_cloud_event_user_created_previous_object_identities_item_database_profile_data import ( - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseProfileData, -) -from .event_stream_cloud_event_user_created_previous_object_identities_item_database_provider_enum import ( - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseProviderEnum, -) -from .event_stream_cloud_event_user_created_previous_object_identities_item_database_user_id import ( - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseUserId, -) - - -class EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabase(UniversalBaseModel): - """ - The identity object for database identity providers. - """ - - connection: str = pydantic.Field() - """ - Name of the connection containing this identity. - """ - - user_id: EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseUserId - profile_data: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseProfileData], - FieldMetadata(alias="profileData"), - pydantic.Field(alias="profileData"), - ] = None - provider: EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseProviderEnum - is_social: typing_extensions.Annotated[ - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseIsSocialEnum, - FieldMetadata(alias="isSocial"), - pydantic.Field(alias="isSocial"), - ] - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_database_is_social_enum.py b/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_database_is_social_enum.py deleted file mode 100644 index 97969b30..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_database_is_social_enum.py +++ /dev/null @@ -1,3 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseIsSocialEnum = bool diff --git a/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_database_profile_data.py b/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_database_profile_data.py deleted file mode 100644 index 7e6a7810..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_database_profile_data.py +++ /dev/null @@ -1,61 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseProfileData(UniversalBaseModel): - """ - Profile data for the user. - """ - - email: typing.Optional[str] = pydantic.Field(default=None) - """ - Email address of this user. - """ - - email_verified: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this email address is verified (true) or unverified (false). - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of this user. - """ - - username: typing.Optional[str] = pydantic.Field(default=None) - """ - Username of this user. - """ - - given_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Given name/first name/forename of this user. - """ - - family_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Family name/last name/surname of this user. - """ - - phone_number: typing.Optional[str] = pydantic.Field(default=None) - """ - Phone number of this user. - """ - - phone_verified: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this phone number has been verified (true) or not (false). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_database_provider_enum.py b/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_database_provider_enum.py deleted file mode 100644 index 3461e67c..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_database_provider_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseProviderEnum = typing.Union[ - typing.Literal["auth0"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_database_user_id.py b/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_database_user_id.py deleted file mode 100644 index 5642198c..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_database_user_id.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemDatabaseUserId = typing.Union[str, int] diff --git a/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_enterprise.py b/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_enterprise.py deleted file mode 100644 index 33678009..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_enterprise.py +++ /dev/null @@ -1,53 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_user_created_previous_object_identities_item_enterprise_is_social_enum import ( - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseIsSocialEnum, -) -from .event_stream_cloud_event_user_created_previous_object_identities_item_enterprise_profile_data import ( - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseProfileData, -) -from .event_stream_cloud_event_user_created_previous_object_identities_item_enterprise_provider_enum import ( - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseProviderEnum, -) -from .event_stream_cloud_event_user_created_previous_object_identities_item_enterprise_user_id import ( - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseUserId, -) - - -class EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterprise(UniversalBaseModel): - """ - The identity object for enterprise identity providers. - """ - - connection: str = pydantic.Field() - """ - Name of the connection containing this identity. - """ - - user_id: EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseUserId - profile_data: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseProfileData], - FieldMetadata(alias="profileData"), - pydantic.Field(alias="profileData"), - ] = None - provider: EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseProviderEnum - is_social: typing_extensions.Annotated[ - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseIsSocialEnum, - FieldMetadata(alias="isSocial"), - pydantic.Field(alias="isSocial"), - ] - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_enterprise_is_social_enum.py b/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_enterprise_is_social_enum.py deleted file mode 100644 index 3d5e40ca..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_enterprise_is_social_enum.py +++ /dev/null @@ -1,3 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseIsSocialEnum = bool diff --git a/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_enterprise_profile_data.py b/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_enterprise_profile_data.py deleted file mode 100644 index 96f61748..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_enterprise_profile_data.py +++ /dev/null @@ -1,61 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseProfileData(UniversalBaseModel): - """ - Profile data for the user. - """ - - email: typing.Optional[str] = pydantic.Field(default=None) - """ - Email address of this user. - """ - - email_verified: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this email address is verified (true) or unverified (false). - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of this user. - """ - - username: typing.Optional[str] = pydantic.Field(default=None) - """ - Username of this user. - """ - - given_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Given name/first name/forename of this user. - """ - - family_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Family name/last name/surname of this user. - """ - - phone_number: typing.Optional[str] = pydantic.Field(default=None) - """ - Phone number of this user. - """ - - phone_verified: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this phone number has been verified (true) or not (false). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_enterprise_provider_enum.py b/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_enterprise_provider_enum.py deleted file mode 100644 index 99682af2..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_enterprise_provider_enum.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseProviderEnum = typing.Union[ - typing.Literal[ - "ad", "adfs", "google-apps", "ip", "office365", "oidc", "okta", "pingfederate", "samlp", "sharepoint", "waad" - ], - typing.Any, -] diff --git a/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_enterprise_user_id.py b/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_enterprise_user_id.py deleted file mode 100644 index d1cb7856..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_enterprise_user_id.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemEnterpriseUserId = typing.Union[str, int] diff --git a/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_passwordless.py b/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_passwordless.py deleted file mode 100644 index e8f0c8f1..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_passwordless.py +++ /dev/null @@ -1,53 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_user_created_previous_object_identities_item_passwordless_is_social_enum import ( - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessIsSocialEnum, -) -from .event_stream_cloud_event_user_created_previous_object_identities_item_passwordless_profile_data import ( - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessProfileData, -) -from .event_stream_cloud_event_user_created_previous_object_identities_item_passwordless_provider_enum import ( - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessProviderEnum, -) -from .event_stream_cloud_event_user_created_previous_object_identities_item_passwordless_user_id import ( - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessUserId, -) - - -class EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordless(UniversalBaseModel): - """ - The identity object for passwordless identity providers. - """ - - connection: str = pydantic.Field() - """ - Name of the connection containing this identity. - """ - - user_id: EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessUserId - profile_data: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessProfileData], - FieldMetadata(alias="profileData"), - pydantic.Field(alias="profileData"), - ] = None - provider: EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessProviderEnum - is_social: typing_extensions.Annotated[ - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessIsSocialEnum, - FieldMetadata(alias="isSocial"), - pydantic.Field(alias="isSocial"), - ] - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_passwordless_is_social_enum.py b/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_passwordless_is_social_enum.py deleted file mode 100644 index 295d9d87..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_passwordless_is_social_enum.py +++ /dev/null @@ -1,3 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessIsSocialEnum = bool diff --git a/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_passwordless_profile_data.py b/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_passwordless_profile_data.py deleted file mode 100644 index fd7f810e..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_passwordless_profile_data.py +++ /dev/null @@ -1,61 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessProfileData(UniversalBaseModel): - """ - Profile data for the user. - """ - - email: typing.Optional[str] = pydantic.Field(default=None) - """ - Email address of this user. - """ - - email_verified: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this email address is verified (true) or unverified (false). - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of this user. - """ - - username: typing.Optional[str] = pydantic.Field(default=None) - """ - Username of this user. - """ - - given_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Given name/first name/forename of this user. - """ - - family_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Family name/last name/surname of this user. - """ - - phone_number: typing.Optional[str] = pydantic.Field(default=None) - """ - Phone number of this user. - """ - - phone_verified: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this phone number has been verified (true) or not (false). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_passwordless_provider_enum.py b/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_passwordless_provider_enum.py deleted file mode 100644 index 1f5bd75a..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_passwordless_provider_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessProviderEnum = typing.Union[ - typing.Literal["email", "sms"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_passwordless_user_id.py b/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_passwordless_user_id.py deleted file mode 100644 index 32947d7a..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_passwordless_user_id.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemPasswordlessUserId = typing.Union[str, int] diff --git a/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_social.py b/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_social.py deleted file mode 100644 index c9b5c8cd..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_social.py +++ /dev/null @@ -1,53 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_user_created_previous_object_identities_item_social_is_social_enum import ( - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialIsSocialEnum, -) -from .event_stream_cloud_event_user_created_previous_object_identities_item_social_profile_data import ( - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProfileData, -) -from .event_stream_cloud_event_user_created_previous_object_identities_item_social_provider_enum import ( - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum, -) -from .event_stream_cloud_event_user_created_previous_object_identities_item_social_user_id import ( - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialUserId, -) - - -class EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocial(UniversalBaseModel): - """ - The identity object for social identity providers. - """ - - connection: str = pydantic.Field() - """ - Name of the connection containing this identity. - """ - - user_id: EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialUserId - profile_data: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProfileData], - FieldMetadata(alias="profileData"), - pydantic.Field(alias="profileData"), - ] = None - provider: EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum - is_social: typing_extensions.Annotated[ - EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialIsSocialEnum, - FieldMetadata(alias="isSocial"), - pydantic.Field(alias="isSocial"), - ] - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_social_is_social_enum.py b/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_social_is_social_enum.py deleted file mode 100644 index cbf955d4..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_social_is_social_enum.py +++ /dev/null @@ -1,3 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialIsSocialEnum = bool diff --git a/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_social_profile_data.py b/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_social_profile_data.py deleted file mode 100644 index c493db9a..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_social_profile_data.py +++ /dev/null @@ -1,61 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProfileData(UniversalBaseModel): - """ - Profile data for the user. - """ - - email: typing.Optional[str] = pydantic.Field(default=None) - """ - Email address of this user. - """ - - email_verified: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this email address is verified (true) or unverified (false). - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of this user. - """ - - username: typing.Optional[str] = pydantic.Field(default=None) - """ - Username of this user. - """ - - given_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Given name/first name/forename of this user. - """ - - family_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Family name/last name/surname of this user. - """ - - phone_number: typing.Optional[str] = pydantic.Field(default=None) - """ - Phone number of this user. - """ - - phone_verified: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this phone number has been verified (true) or not (false). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_social_provider_enum.py b/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_social_provider_enum.py deleted file mode 100644 index 1e40f442..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_social_provider_enum.py +++ /dev/null @@ -1,48 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialProviderEnum = typing.Union[ - typing.Literal[ - "amazon", - "apple", - "dropbox", - "bitbucket", - "auth0-oidc", - "baidu", - "bitly", - "box", - "daccount", - "dwolla", - "evernote-sandbox", - "evernote", - "exact", - "facebook", - "fitbit", - "github", - "google-oauth2", - "instagram", - "line", - "linkedin", - "oauth1", - "oauth2", - "paypal", - "paypal-sandbox", - "planningcenter", - "salesforce-community", - "salesforce-sandbox", - "salesforce", - "shopify", - "soundcloud", - "thirtysevensignals", - "twitter", - "untapped", - "vkontakte", - "weibo", - "windowslive", - "wordpress", - "yahoo", - "yandex", - ], - typing.Any, -] diff --git a/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_social_user_id.py b/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_social_user_id.py deleted file mode 100644 index d36a13a8..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_identities_item_social_user_id.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventUserCreatedPreviousObjectIdentitiesItemSocialUserId = typing.Union[str, int] diff --git a/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_user_metadata.py b/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_user_metadata.py deleted file mode 100644 index c2e72518..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_created_previous_object_user_metadata.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventUserCreatedPreviousObjectUserMetadata = typing.Dict[str, typing.Any] -""" -User metadata to which this user has read/write access. -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_user_created_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_user_created_type_enum.py deleted file mode 100644 index 3b7a4174..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_created_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventUserCreatedTypeEnum = typing.Union[typing.Literal["user.created"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_user_deleted.py b/src/auth0/management/types/event_stream_cloud_event_user_deleted.py deleted file mode 100644 index 89618f23..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_deleted.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_user_deleted_cloud_event import EventStreamCloudEventUserDeletedCloudEvent - - -class EventStreamCloudEventUserDeleted(UniversalBaseModel): - """ - SSE message for user.deleted. - """ - - offset: str = pydantic.Field() - """ - Opaque cursor representing position in the stream. Pass as the `from` query parameter to resume. - """ - - event: EventStreamCloudEventUserDeletedCloudEvent - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_user_deleted_cloud_event.py b/src/auth0/management/types/event_stream_cloud_event_user_deleted_cloud_event.py deleted file mode 100644 index 6ebe685d..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_deleted_cloud_event.py +++ /dev/null @@ -1,77 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_a_0_purpose_enum import EventStreamCloudEventA0PurposeEnum -from .event_stream_cloud_event_spec_version_enum import EventStreamCloudEventSpecVersionEnum -from .event_stream_cloud_event_user_deleted_cloud_event_type_enum import ( - EventStreamCloudEventUserDeletedCloudEventTypeEnum, -) -from .event_stream_cloud_event_user_deleted_data import EventStreamCloudEventUserDeletedData - - -class EventStreamCloudEventUserDeletedCloudEvent(UniversalBaseModel): - """ - Represents an event that occurs when a user is deleted. - """ - - specversion: EventStreamCloudEventSpecVersionEnum - type: EventStreamCloudEventUserDeletedCloudEventTypeEnum - source: str = pydantic.Field() - """ - The source of the event. This will take the form 'urn:auth0:.'. - """ - - id: str = pydantic.Field() - """ - A unique identifier for the event. - """ - - time: dt.datetime = pydantic.Field() - """ - An ISO-8601 timestamp indicating when the event physically occurred. - """ - - data: EventStreamCloudEventUserDeletedData - a_0_tenant: typing_extensions.Annotated[ - str, - FieldMetadata(alias="a0tenant"), - pydantic.Field(alias="a0tenant", description="The auth0 tenant ID to which the event is associated."), - ] - """ - The auth0 tenant ID to which the event is associated. - """ - - a_0_stream: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="a0stream"), - pydantic.Field( - alias="a0stream", - description="The auth0 event stream ID of the stream the event was delivered on.\nPresent when the event is delivered via an event stream; omitted when\nevents are retrieved via the Events API (GET /api/v2/events).", - ), - ] = None - """ - The auth0 event stream ID of the stream the event was delivered on. - Present when the event is delivered via an event stream; omitted when - events are retrieved via the Events API (GET /api/v2/events). - """ - - a_0_purpose: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventA0PurposeEnum], - FieldMetadata(alias="a0purpose"), - pydantic.Field(alias="a0purpose"), - ] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_user_deleted_cloud_event_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_user_deleted_cloud_event_type_enum.py deleted file mode 100644 index 6247f3e3..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_deleted_cloud_event_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventUserDeletedCloudEventTypeEnum = typing.Union[typing.Literal["user.deleted"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_user_deleted_data.py b/src/auth0/management/types/event_stream_cloud_event_user_deleted_data.py deleted file mode 100644 index c7566a4d..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_deleted_data.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_context import EventStreamCloudEventContext -from .event_stream_cloud_event_user_deleted_object import EventStreamCloudEventUserDeletedObject -from .event_stream_cloud_event_user_deleted_previous_object import EventStreamCloudEventUserDeletedPreviousObject - - -class EventStreamCloudEventUserDeletedData(UniversalBaseModel): - """ - The event payload. - """ - - object: EventStreamCloudEventUserDeletedObject - previous_object: typing.Optional[EventStreamCloudEventUserDeletedPreviousObject] = None - context: typing.Optional[EventStreamCloudEventContext] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_user_deleted_object.py b/src/auth0/management/types/event_stream_cloud_event_user_deleted_object.py deleted file mode 100644 index 2830428f..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_deleted_object.py +++ /dev/null @@ -1,131 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_user_deleted_object_app_metadata import EventStreamCloudEventUserDeletedObjectAppMetadata -from .event_stream_cloud_event_user_deleted_object_identities_item import ( - EventStreamCloudEventUserDeletedObjectIdentitiesItem, -) -from .event_stream_cloud_event_user_deleted_object_user_metadata import ( - EventStreamCloudEventUserDeletedObjectUserMetadata, -) - - -class EventStreamCloudEventUserDeletedObject(UniversalBaseModel): - """ - The event content. - """ - - user_id: str = pydantic.Field() - """ - ID of the user which can be used when interacting with other APIs. - """ - - email: typing.Optional[str] = pydantic.Field(default=None) - """ - Email address of this user. - """ - - email_verified: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this email address is verified (true) or unverified (false). - """ - - username: typing.Optional[str] = pydantic.Field(default=None) - """ - Username of this user. - """ - - phone_number: typing.Optional[str] = pydantic.Field(default=None) - """ - Phone number of this user. - """ - - phone_verified: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this phone number has been verified (true) or not (false). - """ - - created_at: dt.datetime = pydantic.Field() - """ - Date and time when this entity was created (ISO_8601 format). - """ - - updated_at: dt.datetime = pydantic.Field() - """ - Date and time when this entity was last updated/modified (ISO_8601 format). - """ - - identities: typing.List[EventStreamCloudEventUserDeletedObjectIdentitiesItem] = pydantic.Field() - """ - Array of user identity objects when accounts are linked. - """ - - app_metadata: typing.Optional[EventStreamCloudEventUserDeletedObjectAppMetadata] = None - user_metadata: typing.Optional[EventStreamCloudEventUserDeletedObjectUserMetadata] = None - picture: typing.Optional[str] = pydantic.Field(default=None) - """ - URL to picture, photo, or avatar of this user. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of this user. - """ - - nickname: typing.Optional[str] = pydantic.Field(default=None) - """ - Preferred nickname or alias of this user. - """ - - multifactor: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - List of multi-factor authentication providers with which this user has enrolled. - """ - - last_ip: typing.Optional[str] = pydantic.Field(default=None) - """ - Last IP address from which this user logged in. - """ - - last_login: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Last date and time this user logged in (ISO_8601 format). - """ - - logins_count: typing.Optional[int] = pydantic.Field(default=None) - """ - Total number of logins this user has performed. - """ - - blocked: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this user was blocked by an administrator (true) or is not (false). - """ - - given_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Given name/first name/forename of this user. - """ - - family_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Family name/last name/surname of this user. - """ - - deleted_at: dt.datetime = pydantic.Field() - """ - Date and time when this entity was deleted (ISO_8601 format). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_app_metadata.py b/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_app_metadata.py deleted file mode 100644 index 79be092a..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_app_metadata.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventUserDeletedObjectAppMetadata = typing.Dict[str, typing.Any] -""" -User metadata to which this user has read-only access. -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item.py b/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item.py deleted file mode 100644 index 69b5a16c..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .event_stream_cloud_event_user_deleted_object_identities_item_custom import ( - EventStreamCloudEventUserDeletedObjectIdentitiesItemCustom, -) -from .event_stream_cloud_event_user_deleted_object_identities_item_database import ( - EventStreamCloudEventUserDeletedObjectIdentitiesItemDatabase, -) -from .event_stream_cloud_event_user_deleted_object_identities_item_enterprise import ( - EventStreamCloudEventUserDeletedObjectIdentitiesItemEnterprise, -) -from .event_stream_cloud_event_user_deleted_object_identities_item_passwordless import ( - EventStreamCloudEventUserDeletedObjectIdentitiesItemPasswordless, -) -from .event_stream_cloud_event_user_deleted_object_identities_item_social import ( - EventStreamCloudEventUserDeletedObjectIdentitiesItemSocial, -) - -EventStreamCloudEventUserDeletedObjectIdentitiesItem = typing.Union[ - EventStreamCloudEventUserDeletedObjectIdentitiesItemCustom, - EventStreamCloudEventUserDeletedObjectIdentitiesItemDatabase, - EventStreamCloudEventUserDeletedObjectIdentitiesItemEnterprise, - EventStreamCloudEventUserDeletedObjectIdentitiesItemPasswordless, - EventStreamCloudEventUserDeletedObjectIdentitiesItemSocial, -] diff --git a/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_custom.py b/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_custom.py deleted file mode 100644 index 622ded7f..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_custom.py +++ /dev/null @@ -1,53 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_user_deleted_object_identities_item_custom_is_social_enum import ( - EventStreamCloudEventUserDeletedObjectIdentitiesItemCustomIsSocialEnum, -) -from .event_stream_cloud_event_user_deleted_object_identities_item_custom_profile_data import ( - EventStreamCloudEventUserDeletedObjectIdentitiesItemCustomProfileData, -) -from .event_stream_cloud_event_user_deleted_object_identities_item_custom_provider_enum import ( - EventStreamCloudEventUserDeletedObjectIdentitiesItemCustomProviderEnum, -) -from .event_stream_cloud_event_user_deleted_object_identities_item_custom_user_id import ( - EventStreamCloudEventUserDeletedObjectIdentitiesItemCustomUserId, -) - - -class EventStreamCloudEventUserDeletedObjectIdentitiesItemCustom(UniversalBaseModel): - """ - The identity object for custom identity providers. - """ - - connection: str = pydantic.Field() - """ - Name of the connection containing this identity. - """ - - user_id: EventStreamCloudEventUserDeletedObjectIdentitiesItemCustomUserId - profile_data: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventUserDeletedObjectIdentitiesItemCustomProfileData], - FieldMetadata(alias="profileData"), - pydantic.Field(alias="profileData"), - ] = None - provider: EventStreamCloudEventUserDeletedObjectIdentitiesItemCustomProviderEnum - is_social: typing_extensions.Annotated[ - EventStreamCloudEventUserDeletedObjectIdentitiesItemCustomIsSocialEnum, - FieldMetadata(alias="isSocial"), - pydantic.Field(alias="isSocial"), - ] - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_custom_is_social_enum.py b/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_custom_is_social_enum.py deleted file mode 100644 index 80f37ff9..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_custom_is_social_enum.py +++ /dev/null @@ -1,3 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -EventStreamCloudEventUserDeletedObjectIdentitiesItemCustomIsSocialEnum = bool diff --git a/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_custom_profile_data.py b/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_custom_profile_data.py deleted file mode 100644 index c241d317..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_custom_profile_data.py +++ /dev/null @@ -1,61 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventUserDeletedObjectIdentitiesItemCustomProfileData(UniversalBaseModel): - """ - Profile data for the user. - """ - - email: typing.Optional[str] = pydantic.Field(default=None) - """ - Email address of this user. - """ - - email_verified: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this email address is verified (true) or unverified (false). - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of this user. - """ - - username: typing.Optional[str] = pydantic.Field(default=None) - """ - Username of this user. - """ - - given_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Given name/first name/forename of this user. - """ - - family_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Family name/last name/surname of this user. - """ - - phone_number: typing.Optional[str] = pydantic.Field(default=None) - """ - Phone number of this user. - """ - - phone_verified: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this phone number has been verified (true) or not (false). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_custom_provider_enum.py b/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_custom_provider_enum.py deleted file mode 100644 index 2510c79b..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_custom_provider_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventUserDeletedObjectIdentitiesItemCustomProviderEnum = typing.Union[ - typing.Literal["custom"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_custom_user_id.py b/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_custom_user_id.py deleted file mode 100644 index bce4f2b7..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_custom_user_id.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventUserDeletedObjectIdentitiesItemCustomUserId = typing.Union[str, int] diff --git a/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_database.py b/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_database.py deleted file mode 100644 index f999cb76..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_database.py +++ /dev/null @@ -1,53 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_user_deleted_object_identities_item_database_is_social_enum import ( - EventStreamCloudEventUserDeletedObjectIdentitiesItemDatabaseIsSocialEnum, -) -from .event_stream_cloud_event_user_deleted_object_identities_item_database_profile_data import ( - EventStreamCloudEventUserDeletedObjectIdentitiesItemDatabaseProfileData, -) -from .event_stream_cloud_event_user_deleted_object_identities_item_database_provider_enum import ( - EventStreamCloudEventUserDeletedObjectIdentitiesItemDatabaseProviderEnum, -) -from .event_stream_cloud_event_user_deleted_object_identities_item_database_user_id import ( - EventStreamCloudEventUserDeletedObjectIdentitiesItemDatabaseUserId, -) - - -class EventStreamCloudEventUserDeletedObjectIdentitiesItemDatabase(UniversalBaseModel): - """ - The identity object for database identity providers. - """ - - connection: str = pydantic.Field() - """ - Name of the connection containing this identity. - """ - - user_id: EventStreamCloudEventUserDeletedObjectIdentitiesItemDatabaseUserId - profile_data: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventUserDeletedObjectIdentitiesItemDatabaseProfileData], - FieldMetadata(alias="profileData"), - pydantic.Field(alias="profileData"), - ] = None - provider: EventStreamCloudEventUserDeletedObjectIdentitiesItemDatabaseProviderEnum - is_social: typing_extensions.Annotated[ - EventStreamCloudEventUserDeletedObjectIdentitiesItemDatabaseIsSocialEnum, - FieldMetadata(alias="isSocial"), - pydantic.Field(alias="isSocial"), - ] - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_database_is_social_enum.py b/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_database_is_social_enum.py deleted file mode 100644 index 4bbb3f00..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_database_is_social_enum.py +++ /dev/null @@ -1,3 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -EventStreamCloudEventUserDeletedObjectIdentitiesItemDatabaseIsSocialEnum = bool diff --git a/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_database_profile_data.py b/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_database_profile_data.py deleted file mode 100644 index e6e6f52c..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_database_profile_data.py +++ /dev/null @@ -1,61 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventUserDeletedObjectIdentitiesItemDatabaseProfileData(UniversalBaseModel): - """ - Profile data for the user. - """ - - email: typing.Optional[str] = pydantic.Field(default=None) - """ - Email address of this user. - """ - - email_verified: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this email address is verified (true) or unverified (false). - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of this user. - """ - - username: typing.Optional[str] = pydantic.Field(default=None) - """ - Username of this user. - """ - - given_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Given name/first name/forename of this user. - """ - - family_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Family name/last name/surname of this user. - """ - - phone_number: typing.Optional[str] = pydantic.Field(default=None) - """ - Phone number of this user. - """ - - phone_verified: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this phone number has been verified (true) or not (false). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_database_provider_enum.py b/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_database_provider_enum.py deleted file mode 100644 index 6618893b..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_database_provider_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventUserDeletedObjectIdentitiesItemDatabaseProviderEnum = typing.Union[ - typing.Literal["auth0"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_database_user_id.py b/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_database_user_id.py deleted file mode 100644 index 9cd18713..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_database_user_id.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventUserDeletedObjectIdentitiesItemDatabaseUserId = typing.Union[str, int] diff --git a/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_enterprise.py b/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_enterprise.py deleted file mode 100644 index d00cbc71..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_enterprise.py +++ /dev/null @@ -1,53 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_user_deleted_object_identities_item_enterprise_is_social_enum import ( - EventStreamCloudEventUserDeletedObjectIdentitiesItemEnterpriseIsSocialEnum, -) -from .event_stream_cloud_event_user_deleted_object_identities_item_enterprise_profile_data import ( - EventStreamCloudEventUserDeletedObjectIdentitiesItemEnterpriseProfileData, -) -from .event_stream_cloud_event_user_deleted_object_identities_item_enterprise_provider_enum import ( - EventStreamCloudEventUserDeletedObjectIdentitiesItemEnterpriseProviderEnum, -) -from .event_stream_cloud_event_user_deleted_object_identities_item_enterprise_user_id import ( - EventStreamCloudEventUserDeletedObjectIdentitiesItemEnterpriseUserId, -) - - -class EventStreamCloudEventUserDeletedObjectIdentitiesItemEnterprise(UniversalBaseModel): - """ - The identity object for enterprise identity providers. - """ - - connection: str = pydantic.Field() - """ - Name of the connection containing this identity. - """ - - user_id: EventStreamCloudEventUserDeletedObjectIdentitiesItemEnterpriseUserId - profile_data: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventUserDeletedObjectIdentitiesItemEnterpriseProfileData], - FieldMetadata(alias="profileData"), - pydantic.Field(alias="profileData"), - ] = None - provider: EventStreamCloudEventUserDeletedObjectIdentitiesItemEnterpriseProviderEnum - is_social: typing_extensions.Annotated[ - EventStreamCloudEventUserDeletedObjectIdentitiesItemEnterpriseIsSocialEnum, - FieldMetadata(alias="isSocial"), - pydantic.Field(alias="isSocial"), - ] - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_enterprise_is_social_enum.py b/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_enterprise_is_social_enum.py deleted file mode 100644 index 291f00da..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_enterprise_is_social_enum.py +++ /dev/null @@ -1,3 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -EventStreamCloudEventUserDeletedObjectIdentitiesItemEnterpriseIsSocialEnum = bool diff --git a/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_enterprise_profile_data.py b/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_enterprise_profile_data.py deleted file mode 100644 index 116da6dd..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_enterprise_profile_data.py +++ /dev/null @@ -1,61 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventUserDeletedObjectIdentitiesItemEnterpriseProfileData(UniversalBaseModel): - """ - Profile data for the user. - """ - - email: typing.Optional[str] = pydantic.Field(default=None) - """ - Email address of this user. - """ - - email_verified: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this email address is verified (true) or unverified (false). - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of this user. - """ - - username: typing.Optional[str] = pydantic.Field(default=None) - """ - Username of this user. - """ - - given_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Given name/first name/forename of this user. - """ - - family_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Family name/last name/surname of this user. - """ - - phone_number: typing.Optional[str] = pydantic.Field(default=None) - """ - Phone number of this user. - """ - - phone_verified: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this phone number has been verified (true) or not (false). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_enterprise_provider_enum.py b/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_enterprise_provider_enum.py deleted file mode 100644 index 7f2e6ad1..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_enterprise_provider_enum.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventUserDeletedObjectIdentitiesItemEnterpriseProviderEnum = typing.Union[ - typing.Literal[ - "ad", "adfs", "google-apps", "ip", "office365", "oidc", "okta", "pingfederate", "samlp", "sharepoint", "waad" - ], - typing.Any, -] diff --git a/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_enterprise_user_id.py b/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_enterprise_user_id.py deleted file mode 100644 index 260b169a..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_enterprise_user_id.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventUserDeletedObjectIdentitiesItemEnterpriseUserId = typing.Union[str, int] diff --git a/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_passwordless.py b/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_passwordless.py deleted file mode 100644 index 0044b146..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_passwordless.py +++ /dev/null @@ -1,53 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_user_deleted_object_identities_item_passwordless_is_social_enum import ( - EventStreamCloudEventUserDeletedObjectIdentitiesItemPasswordlessIsSocialEnum, -) -from .event_stream_cloud_event_user_deleted_object_identities_item_passwordless_profile_data import ( - EventStreamCloudEventUserDeletedObjectIdentitiesItemPasswordlessProfileData, -) -from .event_stream_cloud_event_user_deleted_object_identities_item_passwordless_provider_enum import ( - EventStreamCloudEventUserDeletedObjectIdentitiesItemPasswordlessProviderEnum, -) -from .event_stream_cloud_event_user_deleted_object_identities_item_passwordless_user_id import ( - EventStreamCloudEventUserDeletedObjectIdentitiesItemPasswordlessUserId, -) - - -class EventStreamCloudEventUserDeletedObjectIdentitiesItemPasswordless(UniversalBaseModel): - """ - The identity object for passwordless identity providers. - """ - - connection: str = pydantic.Field() - """ - Name of the connection containing this identity. - """ - - user_id: EventStreamCloudEventUserDeletedObjectIdentitiesItemPasswordlessUserId - profile_data: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventUserDeletedObjectIdentitiesItemPasswordlessProfileData], - FieldMetadata(alias="profileData"), - pydantic.Field(alias="profileData"), - ] = None - provider: EventStreamCloudEventUserDeletedObjectIdentitiesItemPasswordlessProviderEnum - is_social: typing_extensions.Annotated[ - EventStreamCloudEventUserDeletedObjectIdentitiesItemPasswordlessIsSocialEnum, - FieldMetadata(alias="isSocial"), - pydantic.Field(alias="isSocial"), - ] - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_passwordless_is_social_enum.py b/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_passwordless_is_social_enum.py deleted file mode 100644 index c3878279..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_passwordless_is_social_enum.py +++ /dev/null @@ -1,3 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -EventStreamCloudEventUserDeletedObjectIdentitiesItemPasswordlessIsSocialEnum = bool diff --git a/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_passwordless_profile_data.py b/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_passwordless_profile_data.py deleted file mode 100644 index 8a588fcf..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_passwordless_profile_data.py +++ /dev/null @@ -1,61 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventUserDeletedObjectIdentitiesItemPasswordlessProfileData(UniversalBaseModel): - """ - Profile data for the user. - """ - - email: typing.Optional[str] = pydantic.Field(default=None) - """ - Email address of this user. - """ - - email_verified: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this email address is verified (true) or unverified (false). - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of this user. - """ - - username: typing.Optional[str] = pydantic.Field(default=None) - """ - Username of this user. - """ - - given_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Given name/first name/forename of this user. - """ - - family_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Family name/last name/surname of this user. - """ - - phone_number: typing.Optional[str] = pydantic.Field(default=None) - """ - Phone number of this user. - """ - - phone_verified: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this phone number has been verified (true) or not (false). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_passwordless_provider_enum.py b/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_passwordless_provider_enum.py deleted file mode 100644 index 472f3501..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_passwordless_provider_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventUserDeletedObjectIdentitiesItemPasswordlessProviderEnum = typing.Union[ - typing.Literal["email", "sms"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_passwordless_user_id.py b/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_passwordless_user_id.py deleted file mode 100644 index f1742a86..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_passwordless_user_id.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventUserDeletedObjectIdentitiesItemPasswordlessUserId = typing.Union[str, int] diff --git a/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_social.py b/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_social.py deleted file mode 100644 index cc3b060b..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_social.py +++ /dev/null @@ -1,53 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_user_deleted_object_identities_item_social_is_social_enum import ( - EventStreamCloudEventUserDeletedObjectIdentitiesItemSocialIsSocialEnum, -) -from .event_stream_cloud_event_user_deleted_object_identities_item_social_profile_data import ( - EventStreamCloudEventUserDeletedObjectIdentitiesItemSocialProfileData, -) -from .event_stream_cloud_event_user_deleted_object_identities_item_social_provider_enum import ( - EventStreamCloudEventUserDeletedObjectIdentitiesItemSocialProviderEnum, -) -from .event_stream_cloud_event_user_deleted_object_identities_item_social_user_id import ( - EventStreamCloudEventUserDeletedObjectIdentitiesItemSocialUserId, -) - - -class EventStreamCloudEventUserDeletedObjectIdentitiesItemSocial(UniversalBaseModel): - """ - The identity object for social identity providers. - """ - - connection: str = pydantic.Field() - """ - Name of the connection containing this identity. - """ - - user_id: EventStreamCloudEventUserDeletedObjectIdentitiesItemSocialUserId - profile_data: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventUserDeletedObjectIdentitiesItemSocialProfileData], - FieldMetadata(alias="profileData"), - pydantic.Field(alias="profileData"), - ] = None - provider: EventStreamCloudEventUserDeletedObjectIdentitiesItemSocialProviderEnum - is_social: typing_extensions.Annotated[ - EventStreamCloudEventUserDeletedObjectIdentitiesItemSocialIsSocialEnum, - FieldMetadata(alias="isSocial"), - pydantic.Field(alias="isSocial"), - ] - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_social_is_social_enum.py b/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_social_is_social_enum.py deleted file mode 100644 index 5033a2ba..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_social_is_social_enum.py +++ /dev/null @@ -1,3 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -EventStreamCloudEventUserDeletedObjectIdentitiesItemSocialIsSocialEnum = bool diff --git a/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_social_profile_data.py b/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_social_profile_data.py deleted file mode 100644 index d289dae5..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_social_profile_data.py +++ /dev/null @@ -1,61 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventUserDeletedObjectIdentitiesItemSocialProfileData(UniversalBaseModel): - """ - Profile data for the user. - """ - - email: typing.Optional[str] = pydantic.Field(default=None) - """ - Email address of this user. - """ - - email_verified: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this email address is verified (true) or unverified (false). - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of this user. - """ - - username: typing.Optional[str] = pydantic.Field(default=None) - """ - Username of this user. - """ - - given_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Given name/first name/forename of this user. - """ - - family_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Family name/last name/surname of this user. - """ - - phone_number: typing.Optional[str] = pydantic.Field(default=None) - """ - Phone number of this user. - """ - - phone_verified: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this phone number has been verified (true) or not (false). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_social_provider_enum.py b/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_social_provider_enum.py deleted file mode 100644 index 3930b8cb..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_social_provider_enum.py +++ /dev/null @@ -1,48 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventUserDeletedObjectIdentitiesItemSocialProviderEnum = typing.Union[ - typing.Literal[ - "amazon", - "apple", - "dropbox", - "bitbucket", - "auth0-oidc", - "baidu", - "bitly", - "box", - "daccount", - "dwolla", - "evernote-sandbox", - "evernote", - "exact", - "facebook", - "fitbit", - "github", - "google-oauth2", - "instagram", - "line", - "linkedin", - "oauth1", - "oauth2", - "paypal", - "paypal-sandbox", - "planningcenter", - "salesforce-community", - "salesforce-sandbox", - "salesforce", - "shopify", - "soundcloud", - "thirtysevensignals", - "twitter", - "untapped", - "vkontakte", - "weibo", - "windowslive", - "wordpress", - "yahoo", - "yandex", - ], - typing.Any, -] diff --git a/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_social_user_id.py b/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_social_user_id.py deleted file mode 100644 index bb6f92e3..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_identities_item_social_user_id.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventUserDeletedObjectIdentitiesItemSocialUserId = typing.Union[str, int] diff --git a/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_user_metadata.py b/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_user_metadata.py deleted file mode 100644 index 6492cc01..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_deleted_object_user_metadata.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventUserDeletedObjectUserMetadata = typing.Dict[str, typing.Any] -""" -User metadata to which this user has read/write access. -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object.py b/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object.py deleted file mode 100644 index d5a64f41..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object.py +++ /dev/null @@ -1,128 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_user_deleted_previous_object_app_metadata import ( - EventStreamCloudEventUserDeletedPreviousObjectAppMetadata, -) -from .event_stream_cloud_event_user_deleted_previous_object_identities_item import ( - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItem, -) -from .event_stream_cloud_event_user_deleted_previous_object_user_metadata import ( - EventStreamCloudEventUserDeletedPreviousObjectUserMetadata, -) - - -class EventStreamCloudEventUserDeletedPreviousObject(UniversalBaseModel): - """ - The event content as it was prior to the change described by this event, when applicable. - """ - - user_id: str = pydantic.Field() - """ - ID of the user which can be used when interacting with other APIs. - """ - - email: typing.Optional[str] = pydantic.Field(default=None) - """ - Email address of this user. - """ - - email_verified: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this email address is verified (true) or unverified (false). - """ - - username: typing.Optional[str] = pydantic.Field(default=None) - """ - Username of this user. - """ - - phone_number: typing.Optional[str] = pydantic.Field(default=None) - """ - Phone number of this user. - """ - - phone_verified: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this phone number has been verified (true) or not (false). - """ - - created_at: dt.datetime = pydantic.Field() - """ - Date and time when this entity was created (ISO_8601 format). - """ - - updated_at: dt.datetime = pydantic.Field() - """ - Date and time when this entity was last updated/modified (ISO_8601 format). - """ - - identities: typing.List[EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItem] = pydantic.Field() - """ - Array of user identity objects when accounts are linked. - """ - - app_metadata: typing.Optional[EventStreamCloudEventUserDeletedPreviousObjectAppMetadata] = None - user_metadata: typing.Optional[EventStreamCloudEventUserDeletedPreviousObjectUserMetadata] = None - picture: typing.Optional[str] = pydantic.Field(default=None) - """ - URL to picture, photo, or avatar of this user. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of this user. - """ - - nickname: typing.Optional[str] = pydantic.Field(default=None) - """ - Preferred nickname or alias of this user. - """ - - multifactor: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - List of multi-factor authentication providers with which this user has enrolled. - """ - - last_ip: typing.Optional[str] = pydantic.Field(default=None) - """ - Last IP address from which this user logged in. - """ - - last_login: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Last date and time this user logged in (ISO_8601 format). - """ - - logins_count: typing.Optional[int] = pydantic.Field(default=None) - """ - Total number of logins this user has performed. - """ - - blocked: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this user was blocked by an administrator (true) or is not (false). - """ - - given_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Given name/first name/forename of this user. - """ - - family_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Family name/last name/surname of this user. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_app_metadata.py b/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_app_metadata.py deleted file mode 100644 index 2830ee8a..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_app_metadata.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventUserDeletedPreviousObjectAppMetadata = typing.Dict[str, typing.Any] -""" -User metadata to which this user has read-only access. -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item.py b/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item.py deleted file mode 100644 index 07b020d8..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .event_stream_cloud_event_user_deleted_previous_object_identities_item_custom import ( - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustom, -) -from .event_stream_cloud_event_user_deleted_previous_object_identities_item_database import ( - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabase, -) -from .event_stream_cloud_event_user_deleted_previous_object_identities_item_enterprise import ( - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterprise, -) -from .event_stream_cloud_event_user_deleted_previous_object_identities_item_passwordless import ( - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordless, -) -from .event_stream_cloud_event_user_deleted_previous_object_identities_item_social import ( - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocial, -) - -EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItem = typing.Union[ - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustom, - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabase, - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterprise, - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordless, - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocial, -] diff --git a/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_custom.py b/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_custom.py deleted file mode 100644 index cffb4b39..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_custom.py +++ /dev/null @@ -1,53 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_user_deleted_previous_object_identities_item_custom_is_social_enum import ( - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomIsSocialEnum, -) -from .event_stream_cloud_event_user_deleted_previous_object_identities_item_custom_profile_data import ( - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomProfileData, -) -from .event_stream_cloud_event_user_deleted_previous_object_identities_item_custom_provider_enum import ( - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomProviderEnum, -) -from .event_stream_cloud_event_user_deleted_previous_object_identities_item_custom_user_id import ( - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomUserId, -) - - -class EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustom(UniversalBaseModel): - """ - The identity object for custom identity providers. - """ - - connection: str = pydantic.Field() - """ - Name of the connection containing this identity. - """ - - user_id: EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomUserId - profile_data: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomProfileData], - FieldMetadata(alias="profileData"), - pydantic.Field(alias="profileData"), - ] = None - provider: EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomProviderEnum - is_social: typing_extensions.Annotated[ - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomIsSocialEnum, - FieldMetadata(alias="isSocial"), - pydantic.Field(alias="isSocial"), - ] - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_custom_is_social_enum.py b/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_custom_is_social_enum.py deleted file mode 100644 index 9371a7f4..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_custom_is_social_enum.py +++ /dev/null @@ -1,3 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomIsSocialEnum = bool diff --git a/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_custom_profile_data.py b/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_custom_profile_data.py deleted file mode 100644 index db82f190..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_custom_profile_data.py +++ /dev/null @@ -1,61 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomProfileData(UniversalBaseModel): - """ - Profile data for the user. - """ - - email: typing.Optional[str] = pydantic.Field(default=None) - """ - Email address of this user. - """ - - email_verified: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this email address is verified (true) or unverified (false). - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of this user. - """ - - username: typing.Optional[str] = pydantic.Field(default=None) - """ - Username of this user. - """ - - given_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Given name/first name/forename of this user. - """ - - family_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Family name/last name/surname of this user. - """ - - phone_number: typing.Optional[str] = pydantic.Field(default=None) - """ - Phone number of this user. - """ - - phone_verified: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this phone number has been verified (true) or not (false). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_custom_provider_enum.py b/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_custom_provider_enum.py deleted file mode 100644 index 9f5f1845..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_custom_provider_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomProviderEnum = typing.Union[ - typing.Literal["custom"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_custom_user_id.py b/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_custom_user_id.py deleted file mode 100644 index 39d9c61d..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_custom_user_id.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemCustomUserId = typing.Union[str, int] diff --git a/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_database.py b/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_database.py deleted file mode 100644 index f0124aeb..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_database.py +++ /dev/null @@ -1,53 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_user_deleted_previous_object_identities_item_database_is_social_enum import ( - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseIsSocialEnum, -) -from .event_stream_cloud_event_user_deleted_previous_object_identities_item_database_profile_data import ( - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseProfileData, -) -from .event_stream_cloud_event_user_deleted_previous_object_identities_item_database_provider_enum import ( - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseProviderEnum, -) -from .event_stream_cloud_event_user_deleted_previous_object_identities_item_database_user_id import ( - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseUserId, -) - - -class EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabase(UniversalBaseModel): - """ - The identity object for database identity providers. - """ - - connection: str = pydantic.Field() - """ - Name of the connection containing this identity. - """ - - user_id: EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseUserId - profile_data: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseProfileData], - FieldMetadata(alias="profileData"), - pydantic.Field(alias="profileData"), - ] = None - provider: EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseProviderEnum - is_social: typing_extensions.Annotated[ - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseIsSocialEnum, - FieldMetadata(alias="isSocial"), - pydantic.Field(alias="isSocial"), - ] - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_database_is_social_enum.py b/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_database_is_social_enum.py deleted file mode 100644 index 96bf9dba..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_database_is_social_enum.py +++ /dev/null @@ -1,3 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseIsSocialEnum = bool diff --git a/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_database_profile_data.py b/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_database_profile_data.py deleted file mode 100644 index 0ea0e080..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_database_profile_data.py +++ /dev/null @@ -1,61 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseProfileData(UniversalBaseModel): - """ - Profile data for the user. - """ - - email: typing.Optional[str] = pydantic.Field(default=None) - """ - Email address of this user. - """ - - email_verified: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this email address is verified (true) or unverified (false). - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of this user. - """ - - username: typing.Optional[str] = pydantic.Field(default=None) - """ - Username of this user. - """ - - given_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Given name/first name/forename of this user. - """ - - family_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Family name/last name/surname of this user. - """ - - phone_number: typing.Optional[str] = pydantic.Field(default=None) - """ - Phone number of this user. - """ - - phone_verified: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this phone number has been verified (true) or not (false). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_database_provider_enum.py b/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_database_provider_enum.py deleted file mode 100644 index 4341f3bd..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_database_provider_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseProviderEnum = typing.Union[ - typing.Literal["auth0"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_database_user_id.py b/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_database_user_id.py deleted file mode 100644 index 6723e70e..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_database_user_id.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemDatabaseUserId = typing.Union[str, int] diff --git a/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_enterprise.py b/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_enterprise.py deleted file mode 100644 index aa16f353..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_enterprise.py +++ /dev/null @@ -1,53 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_user_deleted_previous_object_identities_item_enterprise_is_social_enum import ( - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseIsSocialEnum, -) -from .event_stream_cloud_event_user_deleted_previous_object_identities_item_enterprise_profile_data import ( - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseProfileData, -) -from .event_stream_cloud_event_user_deleted_previous_object_identities_item_enterprise_provider_enum import ( - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseProviderEnum, -) -from .event_stream_cloud_event_user_deleted_previous_object_identities_item_enterprise_user_id import ( - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseUserId, -) - - -class EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterprise(UniversalBaseModel): - """ - The identity object for enterprise identity providers. - """ - - connection: str = pydantic.Field() - """ - Name of the connection containing this identity. - """ - - user_id: EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseUserId - profile_data: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseProfileData], - FieldMetadata(alias="profileData"), - pydantic.Field(alias="profileData"), - ] = None - provider: EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseProviderEnum - is_social: typing_extensions.Annotated[ - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseIsSocialEnum, - FieldMetadata(alias="isSocial"), - pydantic.Field(alias="isSocial"), - ] - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_enterprise_is_social_enum.py b/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_enterprise_is_social_enum.py deleted file mode 100644 index c90578d0..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_enterprise_is_social_enum.py +++ /dev/null @@ -1,3 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseIsSocialEnum = bool diff --git a/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_enterprise_profile_data.py b/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_enterprise_profile_data.py deleted file mode 100644 index 79682bae..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_enterprise_profile_data.py +++ /dev/null @@ -1,61 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseProfileData(UniversalBaseModel): - """ - Profile data for the user. - """ - - email: typing.Optional[str] = pydantic.Field(default=None) - """ - Email address of this user. - """ - - email_verified: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this email address is verified (true) or unverified (false). - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of this user. - """ - - username: typing.Optional[str] = pydantic.Field(default=None) - """ - Username of this user. - """ - - given_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Given name/first name/forename of this user. - """ - - family_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Family name/last name/surname of this user. - """ - - phone_number: typing.Optional[str] = pydantic.Field(default=None) - """ - Phone number of this user. - """ - - phone_verified: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this phone number has been verified (true) or not (false). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_enterprise_provider_enum.py b/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_enterprise_provider_enum.py deleted file mode 100644 index 8f7dd572..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_enterprise_provider_enum.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseProviderEnum = typing.Union[ - typing.Literal[ - "ad", "adfs", "google-apps", "ip", "office365", "oidc", "okta", "pingfederate", "samlp", "sharepoint", "waad" - ], - typing.Any, -] diff --git a/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_enterprise_user_id.py b/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_enterprise_user_id.py deleted file mode 100644 index 5f485b3f..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_enterprise_user_id.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemEnterpriseUserId = typing.Union[str, int] diff --git a/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_passwordless.py b/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_passwordless.py deleted file mode 100644 index 8afd9700..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_passwordless.py +++ /dev/null @@ -1,53 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_user_deleted_previous_object_identities_item_passwordless_is_social_enum import ( - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessIsSocialEnum, -) -from .event_stream_cloud_event_user_deleted_previous_object_identities_item_passwordless_profile_data import ( - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessProfileData, -) -from .event_stream_cloud_event_user_deleted_previous_object_identities_item_passwordless_provider_enum import ( - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessProviderEnum, -) -from .event_stream_cloud_event_user_deleted_previous_object_identities_item_passwordless_user_id import ( - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessUserId, -) - - -class EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordless(UniversalBaseModel): - """ - The identity object for passwordless identity providers. - """ - - connection: str = pydantic.Field() - """ - Name of the connection containing this identity. - """ - - user_id: EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessUserId - profile_data: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessProfileData], - FieldMetadata(alias="profileData"), - pydantic.Field(alias="profileData"), - ] = None - provider: EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessProviderEnum - is_social: typing_extensions.Annotated[ - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessIsSocialEnum, - FieldMetadata(alias="isSocial"), - pydantic.Field(alias="isSocial"), - ] - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_passwordless_is_social_enum.py b/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_passwordless_is_social_enum.py deleted file mode 100644 index 72fd6b0b..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_passwordless_is_social_enum.py +++ /dev/null @@ -1,3 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessIsSocialEnum = bool diff --git a/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_passwordless_profile_data.py b/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_passwordless_profile_data.py deleted file mode 100644 index 39c31278..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_passwordless_profile_data.py +++ /dev/null @@ -1,61 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessProfileData(UniversalBaseModel): - """ - Profile data for the user. - """ - - email: typing.Optional[str] = pydantic.Field(default=None) - """ - Email address of this user. - """ - - email_verified: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this email address is verified (true) or unverified (false). - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of this user. - """ - - username: typing.Optional[str] = pydantic.Field(default=None) - """ - Username of this user. - """ - - given_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Given name/first name/forename of this user. - """ - - family_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Family name/last name/surname of this user. - """ - - phone_number: typing.Optional[str] = pydantic.Field(default=None) - """ - Phone number of this user. - """ - - phone_verified: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this phone number has been verified (true) or not (false). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_passwordless_provider_enum.py b/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_passwordless_provider_enum.py deleted file mode 100644 index 18a9c2f5..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_passwordless_provider_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessProviderEnum = typing.Union[ - typing.Literal["email", "sms"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_passwordless_user_id.py b/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_passwordless_user_id.py deleted file mode 100644 index 3961f676..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_passwordless_user_id.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemPasswordlessUserId = typing.Union[str, int] diff --git a/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_social.py b/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_social.py deleted file mode 100644 index 0e53dd73..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_social.py +++ /dev/null @@ -1,53 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_user_deleted_previous_object_identities_item_social_is_social_enum import ( - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialIsSocialEnum, -) -from .event_stream_cloud_event_user_deleted_previous_object_identities_item_social_profile_data import ( - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProfileData, -) -from .event_stream_cloud_event_user_deleted_previous_object_identities_item_social_provider_enum import ( - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum, -) -from .event_stream_cloud_event_user_deleted_previous_object_identities_item_social_user_id import ( - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialUserId, -) - - -class EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocial(UniversalBaseModel): - """ - The identity object for social identity providers. - """ - - connection: str = pydantic.Field() - """ - Name of the connection containing this identity. - """ - - user_id: EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialUserId - profile_data: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProfileData], - FieldMetadata(alias="profileData"), - pydantic.Field(alias="profileData"), - ] = None - provider: EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum - is_social: typing_extensions.Annotated[ - EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialIsSocialEnum, - FieldMetadata(alias="isSocial"), - pydantic.Field(alias="isSocial"), - ] - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_social_is_social_enum.py b/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_social_is_social_enum.py deleted file mode 100644 index 066c7b02..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_social_is_social_enum.py +++ /dev/null @@ -1,3 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialIsSocialEnum = bool diff --git a/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_social_profile_data.py b/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_social_profile_data.py deleted file mode 100644 index 7fdbd677..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_social_profile_data.py +++ /dev/null @@ -1,61 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProfileData(UniversalBaseModel): - """ - Profile data for the user. - """ - - email: typing.Optional[str] = pydantic.Field(default=None) - """ - Email address of this user. - """ - - email_verified: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this email address is verified (true) or unverified (false). - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of this user. - """ - - username: typing.Optional[str] = pydantic.Field(default=None) - """ - Username of this user. - """ - - given_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Given name/first name/forename of this user. - """ - - family_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Family name/last name/surname of this user. - """ - - phone_number: typing.Optional[str] = pydantic.Field(default=None) - """ - Phone number of this user. - """ - - phone_verified: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this phone number has been verified (true) or not (false). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_social_provider_enum.py b/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_social_provider_enum.py deleted file mode 100644 index 0ab011a4..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_social_provider_enum.py +++ /dev/null @@ -1,48 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialProviderEnum = typing.Union[ - typing.Literal[ - "amazon", - "apple", - "dropbox", - "bitbucket", - "auth0-oidc", - "baidu", - "bitly", - "box", - "daccount", - "dwolla", - "evernote-sandbox", - "evernote", - "exact", - "facebook", - "fitbit", - "github", - "google-oauth2", - "instagram", - "line", - "linkedin", - "oauth1", - "oauth2", - "paypal", - "paypal-sandbox", - "planningcenter", - "salesforce-community", - "salesforce-sandbox", - "salesforce", - "shopify", - "soundcloud", - "thirtysevensignals", - "twitter", - "untapped", - "vkontakte", - "weibo", - "windowslive", - "wordpress", - "yahoo", - "yandex", - ], - typing.Any, -] diff --git a/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_social_user_id.py b/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_social_user_id.py deleted file mode 100644 index ccf77e8b..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_identities_item_social_user_id.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventUserDeletedPreviousObjectIdentitiesItemSocialUserId = typing.Union[str, int] diff --git a/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_user_metadata.py b/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_user_metadata.py deleted file mode 100644 index afebefb0..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_deleted_previous_object_user_metadata.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventUserDeletedPreviousObjectUserMetadata = typing.Dict[str, typing.Any] -""" -User metadata to which this user has read/write access. -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_user_deleted_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_user_deleted_type_enum.py deleted file mode 100644 index 8e8fcb85..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_deleted_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventUserDeletedTypeEnum = typing.Union[typing.Literal["user.deleted"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_user_updated.py b/src/auth0/management/types/event_stream_cloud_event_user_updated.py deleted file mode 100644 index 38dcee17..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_updated.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_user_updated_cloud_event import EventStreamCloudEventUserUpdatedCloudEvent - - -class EventStreamCloudEventUserUpdated(UniversalBaseModel): - """ - SSE message for user.updated. - """ - - offset: str = pydantic.Field() - """ - Opaque cursor representing position in the stream. Pass as the `from` query parameter to resume. - """ - - event: EventStreamCloudEventUserUpdatedCloudEvent - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_user_updated_cloud_event.py b/src/auth0/management/types/event_stream_cloud_event_user_updated_cloud_event.py deleted file mode 100644 index d37b06af..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_updated_cloud_event.py +++ /dev/null @@ -1,77 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_a_0_purpose_enum import EventStreamCloudEventA0PurposeEnum -from .event_stream_cloud_event_spec_version_enum import EventStreamCloudEventSpecVersionEnum -from .event_stream_cloud_event_user_updated_cloud_event_type_enum import ( - EventStreamCloudEventUserUpdatedCloudEventTypeEnum, -) -from .event_stream_cloud_event_user_updated_data import EventStreamCloudEventUserUpdatedData - - -class EventStreamCloudEventUserUpdatedCloudEvent(UniversalBaseModel): - """ - Represents an event that occurs when a user is updated. - """ - - specversion: EventStreamCloudEventSpecVersionEnum - type: EventStreamCloudEventUserUpdatedCloudEventTypeEnum - source: str = pydantic.Field() - """ - The source of the event. This will take the form 'urn:auth0:.'. - """ - - id: str = pydantic.Field() - """ - A unique identifier for the event. - """ - - time: dt.datetime = pydantic.Field() - """ - An ISO-8601 timestamp indicating when the event physically occurred. - """ - - data: EventStreamCloudEventUserUpdatedData - a_0_tenant: typing_extensions.Annotated[ - str, - FieldMetadata(alias="a0tenant"), - pydantic.Field(alias="a0tenant", description="The auth0 tenant ID to which the event is associated."), - ] - """ - The auth0 tenant ID to which the event is associated. - """ - - a_0_stream: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="a0stream"), - pydantic.Field( - alias="a0stream", - description="The auth0 event stream ID of the stream the event was delivered on.\nPresent when the event is delivered via an event stream; omitted when\nevents are retrieved via the Events API (GET /api/v2/events).", - ), - ] = None - """ - The auth0 event stream ID of the stream the event was delivered on. - Present when the event is delivered via an event stream; omitted when - events are retrieved via the Events API (GET /api/v2/events). - """ - - a_0_purpose: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventA0PurposeEnum], - FieldMetadata(alias="a0purpose"), - pydantic.Field(alias="a0purpose"), - ] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_user_updated_cloud_event_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_user_updated_cloud_event_type_enum.py deleted file mode 100644 index eac60b3a..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_updated_cloud_event_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventUserUpdatedCloudEventTypeEnum = typing.Union[typing.Literal["user.updated"], typing.Any] diff --git a/src/auth0/management/types/event_stream_cloud_event_user_updated_data.py b/src/auth0/management/types/event_stream_cloud_event_user_updated_data.py deleted file mode 100644 index db3fcb92..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_updated_data.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_context import EventStreamCloudEventContext -from .event_stream_cloud_event_user_updated_object import EventStreamCloudEventUserUpdatedObject -from .event_stream_cloud_event_user_updated_previous_object import EventStreamCloudEventUserUpdatedPreviousObject - - -class EventStreamCloudEventUserUpdatedData(UniversalBaseModel): - """ - The event payload. - """ - - object: EventStreamCloudEventUserUpdatedObject - previous_object: typing.Optional[EventStreamCloudEventUserUpdatedPreviousObject] = None - context: typing.Optional[EventStreamCloudEventContext] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_user_updated_object.py b/src/auth0/management/types/event_stream_cloud_event_user_updated_object.py deleted file mode 100644 index bbf42ace..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_updated_object.py +++ /dev/null @@ -1,126 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_user_updated_object_app_metadata import EventStreamCloudEventUserUpdatedObjectAppMetadata -from .event_stream_cloud_event_user_updated_object_identities_item import ( - EventStreamCloudEventUserUpdatedObjectIdentitiesItem, -) -from .event_stream_cloud_event_user_updated_object_user_metadata import ( - EventStreamCloudEventUserUpdatedObjectUserMetadata, -) - - -class EventStreamCloudEventUserUpdatedObject(UniversalBaseModel): - """ - The event content. - """ - - user_id: str = pydantic.Field() - """ - ID of the user which can be used when interacting with other APIs. - """ - - email: typing.Optional[str] = pydantic.Field(default=None) - """ - Email address of this user. - """ - - email_verified: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this email address is verified (true) or unverified (false). - """ - - username: typing.Optional[str] = pydantic.Field(default=None) - """ - Username of this user. - """ - - phone_number: typing.Optional[str] = pydantic.Field(default=None) - """ - Phone number of this user. - """ - - phone_verified: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this phone number has been verified (true) or not (false). - """ - - created_at: dt.datetime = pydantic.Field() - """ - Date and time when this entity was created (ISO_8601 format). - """ - - updated_at: dt.datetime = pydantic.Field() - """ - Date and time when this entity was last updated/modified (ISO_8601 format). - """ - - identities: typing.List[EventStreamCloudEventUserUpdatedObjectIdentitiesItem] = pydantic.Field() - """ - Array of user identity objects when accounts are linked. - """ - - app_metadata: typing.Optional[EventStreamCloudEventUserUpdatedObjectAppMetadata] = None - user_metadata: typing.Optional[EventStreamCloudEventUserUpdatedObjectUserMetadata] = None - picture: typing.Optional[str] = pydantic.Field(default=None) - """ - URL to picture, photo, or avatar of this user. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of this user. - """ - - nickname: typing.Optional[str] = pydantic.Field(default=None) - """ - Preferred nickname or alias of this user. - """ - - multifactor: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - List of multi-factor authentication providers with which this user has enrolled. - """ - - last_ip: typing.Optional[str] = pydantic.Field(default=None) - """ - Last IP address from which this user logged in. - """ - - last_login: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Last date and time this user logged in (ISO_8601 format). - """ - - logins_count: typing.Optional[int] = pydantic.Field(default=None) - """ - Total number of logins this user has performed. - """ - - blocked: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this user was blocked by an administrator (true) or is not (false). - """ - - given_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Given name/first name/forename of this user. - """ - - family_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Family name/last name/surname of this user. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_user_updated_object_app_metadata.py b/src/auth0/management/types/event_stream_cloud_event_user_updated_object_app_metadata.py deleted file mode 100644 index 38708c7f..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_updated_object_app_metadata.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventUserUpdatedObjectAppMetadata = typing.Dict[str, typing.Any] -""" -User metadata to which this user has read-only access. -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item.py b/src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item.py deleted file mode 100644 index 058053c3..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .event_stream_cloud_event_user_updated_object_identities_item_custom import ( - EventStreamCloudEventUserUpdatedObjectIdentitiesItemCustom, -) -from .event_stream_cloud_event_user_updated_object_identities_item_database import ( - EventStreamCloudEventUserUpdatedObjectIdentitiesItemDatabase, -) -from .event_stream_cloud_event_user_updated_object_identities_item_enterprise import ( - EventStreamCloudEventUserUpdatedObjectIdentitiesItemEnterprise, -) -from .event_stream_cloud_event_user_updated_object_identities_item_passwordless import ( - EventStreamCloudEventUserUpdatedObjectIdentitiesItemPasswordless, -) -from .event_stream_cloud_event_user_updated_object_identities_item_social import ( - EventStreamCloudEventUserUpdatedObjectIdentitiesItemSocial, -) - -EventStreamCloudEventUserUpdatedObjectIdentitiesItem = typing.Union[ - EventStreamCloudEventUserUpdatedObjectIdentitiesItemCustom, - EventStreamCloudEventUserUpdatedObjectIdentitiesItemDatabase, - EventStreamCloudEventUserUpdatedObjectIdentitiesItemEnterprise, - EventStreamCloudEventUserUpdatedObjectIdentitiesItemPasswordless, - EventStreamCloudEventUserUpdatedObjectIdentitiesItemSocial, -] diff --git a/src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_custom.py b/src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_custom.py deleted file mode 100644 index 4aa6c7fd..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_custom.py +++ /dev/null @@ -1,53 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_user_updated_object_identities_item_custom_is_social_enum import ( - EventStreamCloudEventUserUpdatedObjectIdentitiesItemCustomIsSocialEnum, -) -from .event_stream_cloud_event_user_updated_object_identities_item_custom_profile_data import ( - EventStreamCloudEventUserUpdatedObjectIdentitiesItemCustomProfileData, -) -from .event_stream_cloud_event_user_updated_object_identities_item_custom_provider_enum import ( - EventStreamCloudEventUserUpdatedObjectIdentitiesItemCustomProviderEnum, -) -from .event_stream_cloud_event_user_updated_object_identities_item_custom_user_id import ( - EventStreamCloudEventUserUpdatedObjectIdentitiesItemCustomUserId, -) - - -class EventStreamCloudEventUserUpdatedObjectIdentitiesItemCustom(UniversalBaseModel): - """ - The identity object for custom identity providers. - """ - - connection: str = pydantic.Field() - """ - Name of the connection containing this identity. - """ - - user_id: EventStreamCloudEventUserUpdatedObjectIdentitiesItemCustomUserId - profile_data: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventUserUpdatedObjectIdentitiesItemCustomProfileData], - FieldMetadata(alias="profileData"), - pydantic.Field(alias="profileData"), - ] = None - provider: EventStreamCloudEventUserUpdatedObjectIdentitiesItemCustomProviderEnum - is_social: typing_extensions.Annotated[ - EventStreamCloudEventUserUpdatedObjectIdentitiesItemCustomIsSocialEnum, - FieldMetadata(alias="isSocial"), - pydantic.Field(alias="isSocial"), - ] - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_custom_is_social_enum.py b/src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_custom_is_social_enum.py deleted file mode 100644 index f4cb239b..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_custom_is_social_enum.py +++ /dev/null @@ -1,3 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -EventStreamCloudEventUserUpdatedObjectIdentitiesItemCustomIsSocialEnum = bool diff --git a/src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_custom_profile_data.py b/src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_custom_profile_data.py deleted file mode 100644 index 2070c343..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_custom_profile_data.py +++ /dev/null @@ -1,61 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventUserUpdatedObjectIdentitiesItemCustomProfileData(UniversalBaseModel): - """ - Profile data for the user. - """ - - email: typing.Optional[str] = pydantic.Field(default=None) - """ - Email address of this user. - """ - - email_verified: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this email address is verified (true) or unverified (false). - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of this user. - """ - - username: typing.Optional[str] = pydantic.Field(default=None) - """ - Username of this user. - """ - - given_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Given name/first name/forename of this user. - """ - - family_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Family name/last name/surname of this user. - """ - - phone_number: typing.Optional[str] = pydantic.Field(default=None) - """ - Phone number of this user. - """ - - phone_verified: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this phone number has been verified (true) or not (false). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_custom_provider_enum.py b/src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_custom_provider_enum.py deleted file mode 100644 index 80814c45..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_custom_provider_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventUserUpdatedObjectIdentitiesItemCustomProviderEnum = typing.Union[ - typing.Literal["custom"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_custom_user_id.py b/src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_custom_user_id.py deleted file mode 100644 index f045b841..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_custom_user_id.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventUserUpdatedObjectIdentitiesItemCustomUserId = typing.Union[str, int] diff --git a/src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_database.py b/src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_database.py deleted file mode 100644 index 919b6fd9..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_database.py +++ /dev/null @@ -1,53 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_user_updated_object_identities_item_database_is_social_enum import ( - EventStreamCloudEventUserUpdatedObjectIdentitiesItemDatabaseIsSocialEnum, -) -from .event_stream_cloud_event_user_updated_object_identities_item_database_profile_data import ( - EventStreamCloudEventUserUpdatedObjectIdentitiesItemDatabaseProfileData, -) -from .event_stream_cloud_event_user_updated_object_identities_item_database_provider_enum import ( - EventStreamCloudEventUserUpdatedObjectIdentitiesItemDatabaseProviderEnum, -) -from .event_stream_cloud_event_user_updated_object_identities_item_database_user_id import ( - EventStreamCloudEventUserUpdatedObjectIdentitiesItemDatabaseUserId, -) - - -class EventStreamCloudEventUserUpdatedObjectIdentitiesItemDatabase(UniversalBaseModel): - """ - The identity object for database identity providers. - """ - - connection: str = pydantic.Field() - """ - Name of the connection containing this identity. - """ - - user_id: EventStreamCloudEventUserUpdatedObjectIdentitiesItemDatabaseUserId - profile_data: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventUserUpdatedObjectIdentitiesItemDatabaseProfileData], - FieldMetadata(alias="profileData"), - pydantic.Field(alias="profileData"), - ] = None - provider: EventStreamCloudEventUserUpdatedObjectIdentitiesItemDatabaseProviderEnum - is_social: typing_extensions.Annotated[ - EventStreamCloudEventUserUpdatedObjectIdentitiesItemDatabaseIsSocialEnum, - FieldMetadata(alias="isSocial"), - pydantic.Field(alias="isSocial"), - ] - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_database_is_social_enum.py b/src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_database_is_social_enum.py deleted file mode 100644 index 6b27c27e..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_database_is_social_enum.py +++ /dev/null @@ -1,3 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -EventStreamCloudEventUserUpdatedObjectIdentitiesItemDatabaseIsSocialEnum = bool diff --git a/src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_database_profile_data.py b/src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_database_profile_data.py deleted file mode 100644 index 0db137b9..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_database_profile_data.py +++ /dev/null @@ -1,61 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventUserUpdatedObjectIdentitiesItemDatabaseProfileData(UniversalBaseModel): - """ - Profile data for the user. - """ - - email: typing.Optional[str] = pydantic.Field(default=None) - """ - Email address of this user. - """ - - email_verified: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this email address is verified (true) or unverified (false). - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of this user. - """ - - username: typing.Optional[str] = pydantic.Field(default=None) - """ - Username of this user. - """ - - given_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Given name/first name/forename of this user. - """ - - family_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Family name/last name/surname of this user. - """ - - phone_number: typing.Optional[str] = pydantic.Field(default=None) - """ - Phone number of this user. - """ - - phone_verified: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this phone number has been verified (true) or not (false). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_database_provider_enum.py b/src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_database_provider_enum.py deleted file mode 100644 index 4057e6ca..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_database_provider_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventUserUpdatedObjectIdentitiesItemDatabaseProviderEnum = typing.Union[ - typing.Literal["auth0"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_database_user_id.py b/src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_database_user_id.py deleted file mode 100644 index 8a70f4f8..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_database_user_id.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventUserUpdatedObjectIdentitiesItemDatabaseUserId = typing.Union[str, int] diff --git a/src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_enterprise.py b/src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_enterprise.py deleted file mode 100644 index fb01f294..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_enterprise.py +++ /dev/null @@ -1,53 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_user_updated_object_identities_item_enterprise_is_social_enum import ( - EventStreamCloudEventUserUpdatedObjectIdentitiesItemEnterpriseIsSocialEnum, -) -from .event_stream_cloud_event_user_updated_object_identities_item_enterprise_profile_data import ( - EventStreamCloudEventUserUpdatedObjectIdentitiesItemEnterpriseProfileData, -) -from .event_stream_cloud_event_user_updated_object_identities_item_enterprise_provider_enum import ( - EventStreamCloudEventUserUpdatedObjectIdentitiesItemEnterpriseProviderEnum, -) -from .event_stream_cloud_event_user_updated_object_identities_item_enterprise_user_id import ( - EventStreamCloudEventUserUpdatedObjectIdentitiesItemEnterpriseUserId, -) - - -class EventStreamCloudEventUserUpdatedObjectIdentitiesItemEnterprise(UniversalBaseModel): - """ - The identity object for enterprise identity providers. - """ - - connection: str = pydantic.Field() - """ - Name of the connection containing this identity. - """ - - user_id: EventStreamCloudEventUserUpdatedObjectIdentitiesItemEnterpriseUserId - profile_data: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventUserUpdatedObjectIdentitiesItemEnterpriseProfileData], - FieldMetadata(alias="profileData"), - pydantic.Field(alias="profileData"), - ] = None - provider: EventStreamCloudEventUserUpdatedObjectIdentitiesItemEnterpriseProviderEnum - is_social: typing_extensions.Annotated[ - EventStreamCloudEventUserUpdatedObjectIdentitiesItemEnterpriseIsSocialEnum, - FieldMetadata(alias="isSocial"), - pydantic.Field(alias="isSocial"), - ] - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_enterprise_is_social_enum.py b/src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_enterprise_is_social_enum.py deleted file mode 100644 index 1a45544c..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_enterprise_is_social_enum.py +++ /dev/null @@ -1,3 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -EventStreamCloudEventUserUpdatedObjectIdentitiesItemEnterpriseIsSocialEnum = bool diff --git a/src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_enterprise_profile_data.py b/src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_enterprise_profile_data.py deleted file mode 100644 index abee8194..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_enterprise_profile_data.py +++ /dev/null @@ -1,61 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventUserUpdatedObjectIdentitiesItemEnterpriseProfileData(UniversalBaseModel): - """ - Profile data for the user. - """ - - email: typing.Optional[str] = pydantic.Field(default=None) - """ - Email address of this user. - """ - - email_verified: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this email address is verified (true) or unverified (false). - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of this user. - """ - - username: typing.Optional[str] = pydantic.Field(default=None) - """ - Username of this user. - """ - - given_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Given name/first name/forename of this user. - """ - - family_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Family name/last name/surname of this user. - """ - - phone_number: typing.Optional[str] = pydantic.Field(default=None) - """ - Phone number of this user. - """ - - phone_verified: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this phone number has been verified (true) or not (false). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_enterprise_provider_enum.py b/src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_enterprise_provider_enum.py deleted file mode 100644 index af6286b9..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_enterprise_provider_enum.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventUserUpdatedObjectIdentitiesItemEnterpriseProviderEnum = typing.Union[ - typing.Literal[ - "ad", "adfs", "google-apps", "ip", "office365", "oidc", "okta", "pingfederate", "samlp", "sharepoint", "waad" - ], - typing.Any, -] diff --git a/src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_enterprise_user_id.py b/src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_enterprise_user_id.py deleted file mode 100644 index 06bc22b8..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_enterprise_user_id.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventUserUpdatedObjectIdentitiesItemEnterpriseUserId = typing.Union[str, int] diff --git a/src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_passwordless.py b/src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_passwordless.py deleted file mode 100644 index 07f8d305..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_passwordless.py +++ /dev/null @@ -1,53 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_user_updated_object_identities_item_passwordless_is_social_enum import ( - EventStreamCloudEventUserUpdatedObjectIdentitiesItemPasswordlessIsSocialEnum, -) -from .event_stream_cloud_event_user_updated_object_identities_item_passwordless_profile_data import ( - EventStreamCloudEventUserUpdatedObjectIdentitiesItemPasswordlessProfileData, -) -from .event_stream_cloud_event_user_updated_object_identities_item_passwordless_provider_enum import ( - EventStreamCloudEventUserUpdatedObjectIdentitiesItemPasswordlessProviderEnum, -) -from .event_stream_cloud_event_user_updated_object_identities_item_passwordless_user_id import ( - EventStreamCloudEventUserUpdatedObjectIdentitiesItemPasswordlessUserId, -) - - -class EventStreamCloudEventUserUpdatedObjectIdentitiesItemPasswordless(UniversalBaseModel): - """ - The identity object for passwordless identity providers. - """ - - connection: str = pydantic.Field() - """ - Name of the connection containing this identity. - """ - - user_id: EventStreamCloudEventUserUpdatedObjectIdentitiesItemPasswordlessUserId - profile_data: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventUserUpdatedObjectIdentitiesItemPasswordlessProfileData], - FieldMetadata(alias="profileData"), - pydantic.Field(alias="profileData"), - ] = None - provider: EventStreamCloudEventUserUpdatedObjectIdentitiesItemPasswordlessProviderEnum - is_social: typing_extensions.Annotated[ - EventStreamCloudEventUserUpdatedObjectIdentitiesItemPasswordlessIsSocialEnum, - FieldMetadata(alias="isSocial"), - pydantic.Field(alias="isSocial"), - ] - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_passwordless_is_social_enum.py b/src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_passwordless_is_social_enum.py deleted file mode 100644 index 661c79a7..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_passwordless_is_social_enum.py +++ /dev/null @@ -1,3 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -EventStreamCloudEventUserUpdatedObjectIdentitiesItemPasswordlessIsSocialEnum = bool diff --git a/src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_passwordless_profile_data.py b/src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_passwordless_profile_data.py deleted file mode 100644 index d4febee1..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_passwordless_profile_data.py +++ /dev/null @@ -1,61 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventUserUpdatedObjectIdentitiesItemPasswordlessProfileData(UniversalBaseModel): - """ - Profile data for the user. - """ - - email: typing.Optional[str] = pydantic.Field(default=None) - """ - Email address of this user. - """ - - email_verified: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this email address is verified (true) or unverified (false). - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of this user. - """ - - username: typing.Optional[str] = pydantic.Field(default=None) - """ - Username of this user. - """ - - given_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Given name/first name/forename of this user. - """ - - family_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Family name/last name/surname of this user. - """ - - phone_number: typing.Optional[str] = pydantic.Field(default=None) - """ - Phone number of this user. - """ - - phone_verified: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this phone number has been verified (true) or not (false). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_passwordless_provider_enum.py b/src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_passwordless_provider_enum.py deleted file mode 100644 index 8f6beae1..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_passwordless_provider_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventUserUpdatedObjectIdentitiesItemPasswordlessProviderEnum = typing.Union[ - typing.Literal["email", "sms"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_passwordless_user_id.py b/src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_passwordless_user_id.py deleted file mode 100644 index 0df96b96..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_passwordless_user_id.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventUserUpdatedObjectIdentitiesItemPasswordlessUserId = typing.Union[str, int] diff --git a/src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_social.py b/src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_social.py deleted file mode 100644 index ff077f14..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_social.py +++ /dev/null @@ -1,53 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_user_updated_object_identities_item_social_is_social_enum import ( - EventStreamCloudEventUserUpdatedObjectIdentitiesItemSocialIsSocialEnum, -) -from .event_stream_cloud_event_user_updated_object_identities_item_social_profile_data import ( - EventStreamCloudEventUserUpdatedObjectIdentitiesItemSocialProfileData, -) -from .event_stream_cloud_event_user_updated_object_identities_item_social_provider_enum import ( - EventStreamCloudEventUserUpdatedObjectIdentitiesItemSocialProviderEnum, -) -from .event_stream_cloud_event_user_updated_object_identities_item_social_user_id import ( - EventStreamCloudEventUserUpdatedObjectIdentitiesItemSocialUserId, -) - - -class EventStreamCloudEventUserUpdatedObjectIdentitiesItemSocial(UniversalBaseModel): - """ - The identity object for social identity providers. - """ - - connection: str = pydantic.Field() - """ - Name of the connection containing this identity. - """ - - user_id: EventStreamCloudEventUserUpdatedObjectIdentitiesItemSocialUserId - profile_data: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventUserUpdatedObjectIdentitiesItemSocialProfileData], - FieldMetadata(alias="profileData"), - pydantic.Field(alias="profileData"), - ] = None - provider: EventStreamCloudEventUserUpdatedObjectIdentitiesItemSocialProviderEnum - is_social: typing_extensions.Annotated[ - EventStreamCloudEventUserUpdatedObjectIdentitiesItemSocialIsSocialEnum, - FieldMetadata(alias="isSocial"), - pydantic.Field(alias="isSocial"), - ] - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_social_is_social_enum.py b/src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_social_is_social_enum.py deleted file mode 100644 index 63dfb2a0..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_social_is_social_enum.py +++ /dev/null @@ -1,3 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -EventStreamCloudEventUserUpdatedObjectIdentitiesItemSocialIsSocialEnum = bool diff --git a/src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_social_profile_data.py b/src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_social_profile_data.py deleted file mode 100644 index 125552f8..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_social_profile_data.py +++ /dev/null @@ -1,61 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventUserUpdatedObjectIdentitiesItemSocialProfileData(UniversalBaseModel): - """ - Profile data for the user. - """ - - email: typing.Optional[str] = pydantic.Field(default=None) - """ - Email address of this user. - """ - - email_verified: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this email address is verified (true) or unverified (false). - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of this user. - """ - - username: typing.Optional[str] = pydantic.Field(default=None) - """ - Username of this user. - """ - - given_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Given name/first name/forename of this user. - """ - - family_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Family name/last name/surname of this user. - """ - - phone_number: typing.Optional[str] = pydantic.Field(default=None) - """ - Phone number of this user. - """ - - phone_verified: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this phone number has been verified (true) or not (false). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_social_provider_enum.py b/src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_social_provider_enum.py deleted file mode 100644 index 1911ef29..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_social_provider_enum.py +++ /dev/null @@ -1,48 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventUserUpdatedObjectIdentitiesItemSocialProviderEnum = typing.Union[ - typing.Literal[ - "amazon", - "apple", - "dropbox", - "bitbucket", - "auth0-oidc", - "baidu", - "bitly", - "box", - "daccount", - "dwolla", - "evernote-sandbox", - "evernote", - "exact", - "facebook", - "fitbit", - "github", - "google-oauth2", - "instagram", - "line", - "linkedin", - "oauth1", - "oauth2", - "paypal", - "paypal-sandbox", - "planningcenter", - "salesforce-community", - "salesforce-sandbox", - "salesforce", - "shopify", - "soundcloud", - "thirtysevensignals", - "twitter", - "untapped", - "vkontakte", - "weibo", - "windowslive", - "wordpress", - "yahoo", - "yandex", - ], - typing.Any, -] diff --git a/src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_social_user_id.py b/src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_social_user_id.py deleted file mode 100644 index 466bebbb..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_updated_object_identities_item_social_user_id.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventUserUpdatedObjectIdentitiesItemSocialUserId = typing.Union[str, int] diff --git a/src/auth0/management/types/event_stream_cloud_event_user_updated_object_user_metadata.py b/src/auth0/management/types/event_stream_cloud_event_user_updated_object_user_metadata.py deleted file mode 100644 index 971d8af8..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_updated_object_user_metadata.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventUserUpdatedObjectUserMetadata = typing.Dict[str, typing.Any] -""" -User metadata to which this user has read/write access. -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object.py b/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object.py deleted file mode 100644 index 4f61944e..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object.py +++ /dev/null @@ -1,128 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_user_updated_previous_object_app_metadata import ( - EventStreamCloudEventUserUpdatedPreviousObjectAppMetadata, -) -from .event_stream_cloud_event_user_updated_previous_object_identities_item import ( - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItem, -) -from .event_stream_cloud_event_user_updated_previous_object_user_metadata import ( - EventStreamCloudEventUserUpdatedPreviousObjectUserMetadata, -) - - -class EventStreamCloudEventUserUpdatedPreviousObject(UniversalBaseModel): - """ - The event content as it was prior to the change described by this event, when applicable. - """ - - user_id: str = pydantic.Field() - """ - ID of the user which can be used when interacting with other APIs. - """ - - email: typing.Optional[str] = pydantic.Field(default=None) - """ - Email address of this user. - """ - - email_verified: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this email address is verified (true) or unverified (false). - """ - - username: typing.Optional[str] = pydantic.Field(default=None) - """ - Username of this user. - """ - - phone_number: typing.Optional[str] = pydantic.Field(default=None) - """ - Phone number of this user. - """ - - phone_verified: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this phone number has been verified (true) or not (false). - """ - - created_at: dt.datetime = pydantic.Field() - """ - Date and time when this entity was created (ISO_8601 format). - """ - - updated_at: dt.datetime = pydantic.Field() - """ - Date and time when this entity was last updated/modified (ISO_8601 format). - """ - - identities: typing.List[EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItem] = pydantic.Field() - """ - Array of user identity objects when accounts are linked. - """ - - app_metadata: typing.Optional[EventStreamCloudEventUserUpdatedPreviousObjectAppMetadata] = None - user_metadata: typing.Optional[EventStreamCloudEventUserUpdatedPreviousObjectUserMetadata] = None - picture: typing.Optional[str] = pydantic.Field(default=None) - """ - URL to picture, photo, or avatar of this user. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of this user. - """ - - nickname: typing.Optional[str] = pydantic.Field(default=None) - """ - Preferred nickname or alias of this user. - """ - - multifactor: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - List of multi-factor authentication providers with which this user has enrolled. - """ - - last_ip: typing.Optional[str] = pydantic.Field(default=None) - """ - Last IP address from which this user logged in. - """ - - last_login: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Last date and time this user logged in (ISO_8601 format). - """ - - logins_count: typing.Optional[int] = pydantic.Field(default=None) - """ - Total number of logins this user has performed. - """ - - blocked: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this user was blocked by an administrator (true) or is not (false). - """ - - given_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Given name/first name/forename of this user. - """ - - family_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Family name/last name/surname of this user. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_app_metadata.py b/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_app_metadata.py deleted file mode 100644 index 01c1ed20..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_app_metadata.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventUserUpdatedPreviousObjectAppMetadata = typing.Dict[str, typing.Any] -""" -User metadata to which this user has read-only access. -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item.py b/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item.py deleted file mode 100644 index 47ea8999..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .event_stream_cloud_event_user_updated_previous_object_identities_item_custom import ( - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustom, -) -from .event_stream_cloud_event_user_updated_previous_object_identities_item_database import ( - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabase, -) -from .event_stream_cloud_event_user_updated_previous_object_identities_item_enterprise import ( - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterprise, -) -from .event_stream_cloud_event_user_updated_previous_object_identities_item_passwordless import ( - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordless, -) -from .event_stream_cloud_event_user_updated_previous_object_identities_item_social import ( - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocial, -) - -EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItem = typing.Union[ - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustom, - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabase, - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterprise, - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordless, - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocial, -] diff --git a/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_custom.py b/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_custom.py deleted file mode 100644 index 0485c9e6..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_custom.py +++ /dev/null @@ -1,53 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_user_updated_previous_object_identities_item_custom_is_social_enum import ( - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomIsSocialEnum, -) -from .event_stream_cloud_event_user_updated_previous_object_identities_item_custom_profile_data import ( - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomProfileData, -) -from .event_stream_cloud_event_user_updated_previous_object_identities_item_custom_provider_enum import ( - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomProviderEnum, -) -from .event_stream_cloud_event_user_updated_previous_object_identities_item_custom_user_id import ( - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomUserId, -) - - -class EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustom(UniversalBaseModel): - """ - The identity object for custom identity providers. - """ - - connection: str = pydantic.Field() - """ - Name of the connection containing this identity. - """ - - user_id: EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomUserId - profile_data: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomProfileData], - FieldMetadata(alias="profileData"), - pydantic.Field(alias="profileData"), - ] = None - provider: EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomProviderEnum - is_social: typing_extensions.Annotated[ - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomIsSocialEnum, - FieldMetadata(alias="isSocial"), - pydantic.Field(alias="isSocial"), - ] - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_custom_is_social_enum.py b/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_custom_is_social_enum.py deleted file mode 100644 index a7918a7a..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_custom_is_social_enum.py +++ /dev/null @@ -1,3 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomIsSocialEnum = bool diff --git a/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_custom_profile_data.py b/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_custom_profile_data.py deleted file mode 100644 index 8d03f70a..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_custom_profile_data.py +++ /dev/null @@ -1,61 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomProfileData(UniversalBaseModel): - """ - Profile data for the user. - """ - - email: typing.Optional[str] = pydantic.Field(default=None) - """ - Email address of this user. - """ - - email_verified: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this email address is verified (true) or unverified (false). - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of this user. - """ - - username: typing.Optional[str] = pydantic.Field(default=None) - """ - Username of this user. - """ - - given_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Given name/first name/forename of this user. - """ - - family_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Family name/last name/surname of this user. - """ - - phone_number: typing.Optional[str] = pydantic.Field(default=None) - """ - Phone number of this user. - """ - - phone_verified: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this phone number has been verified (true) or not (false). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_custom_provider_enum.py b/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_custom_provider_enum.py deleted file mode 100644 index 179d35a8..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_custom_provider_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomProviderEnum = typing.Union[ - typing.Literal["custom"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_custom_user_id.py b/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_custom_user_id.py deleted file mode 100644 index af6f0185..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_custom_user_id.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemCustomUserId = typing.Union[str, int] diff --git a/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_database.py b/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_database.py deleted file mode 100644 index 975f7eff..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_database.py +++ /dev/null @@ -1,53 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_user_updated_previous_object_identities_item_database_is_social_enum import ( - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseIsSocialEnum, -) -from .event_stream_cloud_event_user_updated_previous_object_identities_item_database_profile_data import ( - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseProfileData, -) -from .event_stream_cloud_event_user_updated_previous_object_identities_item_database_provider_enum import ( - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseProviderEnum, -) -from .event_stream_cloud_event_user_updated_previous_object_identities_item_database_user_id import ( - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseUserId, -) - - -class EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabase(UniversalBaseModel): - """ - The identity object for database identity providers. - """ - - connection: str = pydantic.Field() - """ - Name of the connection containing this identity. - """ - - user_id: EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseUserId - profile_data: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseProfileData], - FieldMetadata(alias="profileData"), - pydantic.Field(alias="profileData"), - ] = None - provider: EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseProviderEnum - is_social: typing_extensions.Annotated[ - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseIsSocialEnum, - FieldMetadata(alias="isSocial"), - pydantic.Field(alias="isSocial"), - ] - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_database_is_social_enum.py b/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_database_is_social_enum.py deleted file mode 100644 index 0b02f61c..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_database_is_social_enum.py +++ /dev/null @@ -1,3 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseIsSocialEnum = bool diff --git a/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_database_profile_data.py b/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_database_profile_data.py deleted file mode 100644 index a68f5d9d..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_database_profile_data.py +++ /dev/null @@ -1,61 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseProfileData(UniversalBaseModel): - """ - Profile data for the user. - """ - - email: typing.Optional[str] = pydantic.Field(default=None) - """ - Email address of this user. - """ - - email_verified: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this email address is verified (true) or unverified (false). - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of this user. - """ - - username: typing.Optional[str] = pydantic.Field(default=None) - """ - Username of this user. - """ - - given_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Given name/first name/forename of this user. - """ - - family_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Family name/last name/surname of this user. - """ - - phone_number: typing.Optional[str] = pydantic.Field(default=None) - """ - Phone number of this user. - """ - - phone_verified: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this phone number has been verified (true) or not (false). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_database_provider_enum.py b/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_database_provider_enum.py deleted file mode 100644 index e2db6776..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_database_provider_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseProviderEnum = typing.Union[ - typing.Literal["auth0"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_database_user_id.py b/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_database_user_id.py deleted file mode 100644 index bd73bc1f..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_database_user_id.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemDatabaseUserId = typing.Union[str, int] diff --git a/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_enterprise.py b/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_enterprise.py deleted file mode 100644 index 705ce9e1..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_enterprise.py +++ /dev/null @@ -1,53 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_user_updated_previous_object_identities_item_enterprise_is_social_enum import ( - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseIsSocialEnum, -) -from .event_stream_cloud_event_user_updated_previous_object_identities_item_enterprise_profile_data import ( - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseProfileData, -) -from .event_stream_cloud_event_user_updated_previous_object_identities_item_enterprise_provider_enum import ( - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseProviderEnum, -) -from .event_stream_cloud_event_user_updated_previous_object_identities_item_enterprise_user_id import ( - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseUserId, -) - - -class EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterprise(UniversalBaseModel): - """ - The identity object for enterprise identity providers. - """ - - connection: str = pydantic.Field() - """ - Name of the connection containing this identity. - """ - - user_id: EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseUserId - profile_data: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseProfileData], - FieldMetadata(alias="profileData"), - pydantic.Field(alias="profileData"), - ] = None - provider: EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseProviderEnum - is_social: typing_extensions.Annotated[ - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseIsSocialEnum, - FieldMetadata(alias="isSocial"), - pydantic.Field(alias="isSocial"), - ] - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_enterprise_is_social_enum.py b/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_enterprise_is_social_enum.py deleted file mode 100644 index c7fc7b06..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_enterprise_is_social_enum.py +++ /dev/null @@ -1,3 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseIsSocialEnum = bool diff --git a/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_enterprise_profile_data.py b/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_enterprise_profile_data.py deleted file mode 100644 index 683cf20a..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_enterprise_profile_data.py +++ /dev/null @@ -1,61 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseProfileData(UniversalBaseModel): - """ - Profile data for the user. - """ - - email: typing.Optional[str] = pydantic.Field(default=None) - """ - Email address of this user. - """ - - email_verified: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this email address is verified (true) or unverified (false). - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of this user. - """ - - username: typing.Optional[str] = pydantic.Field(default=None) - """ - Username of this user. - """ - - given_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Given name/first name/forename of this user. - """ - - family_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Family name/last name/surname of this user. - """ - - phone_number: typing.Optional[str] = pydantic.Field(default=None) - """ - Phone number of this user. - """ - - phone_verified: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this phone number has been verified (true) or not (false). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_enterprise_provider_enum.py b/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_enterprise_provider_enum.py deleted file mode 100644 index bc0a8d1a..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_enterprise_provider_enum.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseProviderEnum = typing.Union[ - typing.Literal[ - "ad", "adfs", "google-apps", "ip", "office365", "oidc", "okta", "pingfederate", "samlp", "sharepoint", "waad" - ], - typing.Any, -] diff --git a/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_enterprise_user_id.py b/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_enterprise_user_id.py deleted file mode 100644 index d70aa968..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_enterprise_user_id.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemEnterpriseUserId = typing.Union[str, int] diff --git a/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_passwordless.py b/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_passwordless.py deleted file mode 100644 index b4dd86b3..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_passwordless.py +++ /dev/null @@ -1,53 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_user_updated_previous_object_identities_item_passwordless_is_social_enum import ( - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessIsSocialEnum, -) -from .event_stream_cloud_event_user_updated_previous_object_identities_item_passwordless_profile_data import ( - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessProfileData, -) -from .event_stream_cloud_event_user_updated_previous_object_identities_item_passwordless_provider_enum import ( - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessProviderEnum, -) -from .event_stream_cloud_event_user_updated_previous_object_identities_item_passwordless_user_id import ( - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessUserId, -) - - -class EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordless(UniversalBaseModel): - """ - The identity object for passwordless identity providers. - """ - - connection: str = pydantic.Field() - """ - Name of the connection containing this identity. - """ - - user_id: EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessUserId - profile_data: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessProfileData], - FieldMetadata(alias="profileData"), - pydantic.Field(alias="profileData"), - ] = None - provider: EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessProviderEnum - is_social: typing_extensions.Annotated[ - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessIsSocialEnum, - FieldMetadata(alias="isSocial"), - pydantic.Field(alias="isSocial"), - ] - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_passwordless_is_social_enum.py b/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_passwordless_is_social_enum.py deleted file mode 100644 index f08431d1..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_passwordless_is_social_enum.py +++ /dev/null @@ -1,3 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessIsSocialEnum = bool diff --git a/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_passwordless_profile_data.py b/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_passwordless_profile_data.py deleted file mode 100644 index 90d74d93..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_passwordless_profile_data.py +++ /dev/null @@ -1,61 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessProfileData(UniversalBaseModel): - """ - Profile data for the user. - """ - - email: typing.Optional[str] = pydantic.Field(default=None) - """ - Email address of this user. - """ - - email_verified: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this email address is verified (true) or unverified (false). - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of this user. - """ - - username: typing.Optional[str] = pydantic.Field(default=None) - """ - Username of this user. - """ - - given_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Given name/first name/forename of this user. - """ - - family_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Family name/last name/surname of this user. - """ - - phone_number: typing.Optional[str] = pydantic.Field(default=None) - """ - Phone number of this user. - """ - - phone_verified: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this phone number has been verified (true) or not (false). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_passwordless_provider_enum.py b/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_passwordless_provider_enum.py deleted file mode 100644 index f71d2d36..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_passwordless_provider_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessProviderEnum = typing.Union[ - typing.Literal["email", "sms"], typing.Any -] diff --git a/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_passwordless_user_id.py b/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_passwordless_user_id.py deleted file mode 100644 index 4453094f..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_passwordless_user_id.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemPasswordlessUserId = typing.Union[str, int] diff --git a/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_social.py b/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_social.py deleted file mode 100644 index e0098551..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_social.py +++ /dev/null @@ -1,53 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_cloud_event_user_updated_previous_object_identities_item_social_is_social_enum import ( - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialIsSocialEnum, -) -from .event_stream_cloud_event_user_updated_previous_object_identities_item_social_profile_data import ( - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProfileData, -) -from .event_stream_cloud_event_user_updated_previous_object_identities_item_social_provider_enum import ( - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum, -) -from .event_stream_cloud_event_user_updated_previous_object_identities_item_social_user_id import ( - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialUserId, -) - - -class EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocial(UniversalBaseModel): - """ - The identity object for social identity providers. - """ - - connection: str = pydantic.Field() - """ - Name of the connection containing this identity. - """ - - user_id: EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialUserId - profile_data: typing_extensions.Annotated[ - typing.Optional[EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProfileData], - FieldMetadata(alias="profileData"), - pydantic.Field(alias="profileData"), - ] = None - provider: EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum - is_social: typing_extensions.Annotated[ - EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialIsSocialEnum, - FieldMetadata(alias="isSocial"), - pydantic.Field(alias="isSocial"), - ] - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_social_is_social_enum.py b/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_social_is_social_enum.py deleted file mode 100644 index 44af3cf8..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_social_is_social_enum.py +++ /dev/null @@ -1,3 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialIsSocialEnum = bool diff --git a/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_social_profile_data.py b/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_social_profile_data.py deleted file mode 100644 index 979c033e..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_social_profile_data.py +++ /dev/null @@ -1,61 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProfileData(UniversalBaseModel): - """ - Profile data for the user. - """ - - email: typing.Optional[str] = pydantic.Field(default=None) - """ - Email address of this user. - """ - - email_verified: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this email address is verified (true) or unverified (false). - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of this user. - """ - - username: typing.Optional[str] = pydantic.Field(default=None) - """ - Username of this user. - """ - - given_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Given name/first name/forename of this user. - """ - - family_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Family name/last name/surname of this user. - """ - - phone_number: typing.Optional[str] = pydantic.Field(default=None) - """ - Phone number of this user. - """ - - phone_verified: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this phone number has been verified (true) or not (false). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_social_provider_enum.py b/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_social_provider_enum.py deleted file mode 100644 index b6294fb0..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_social_provider_enum.py +++ /dev/null @@ -1,48 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialProviderEnum = typing.Union[ - typing.Literal[ - "amazon", - "apple", - "dropbox", - "bitbucket", - "auth0-oidc", - "baidu", - "bitly", - "box", - "daccount", - "dwolla", - "evernote-sandbox", - "evernote", - "exact", - "facebook", - "fitbit", - "github", - "google-oauth2", - "instagram", - "line", - "linkedin", - "oauth1", - "oauth2", - "paypal", - "paypal-sandbox", - "planningcenter", - "salesforce-community", - "salesforce-sandbox", - "salesforce", - "shopify", - "soundcloud", - "thirtysevensignals", - "twitter", - "untapped", - "vkontakte", - "weibo", - "windowslive", - "wordpress", - "yahoo", - "yandex", - ], - typing.Any, -] diff --git a/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_social_user_id.py b/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_social_user_id.py deleted file mode 100644 index 1e4a7f97..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_identities_item_social_user_id.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventUserUpdatedPreviousObjectIdentitiesItemSocialUserId = typing.Union[str, int] diff --git a/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_user_metadata.py b/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_user_metadata.py deleted file mode 100644 index 404fee77..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_updated_previous_object_user_metadata.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventUserUpdatedPreviousObjectUserMetadata = typing.Dict[str, typing.Any] -""" -User metadata to which this user has read/write access. -""" diff --git a/src/auth0/management/types/event_stream_cloud_event_user_updated_type_enum.py b/src/auth0/management/types/event_stream_cloud_event_user_updated_type_enum.py deleted file mode 100644 index 7f51ba00..00000000 --- a/src/auth0/management/types/event_stream_cloud_event_user_updated_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamCloudEventUserUpdatedTypeEnum = typing.Union[typing.Literal["user.updated"], typing.Any] diff --git a/src/auth0/management/types/event_stream_delivery.py b/src/auth0/management/types/event_stream_delivery.py deleted file mode 100644 index 0639bb58..00000000 --- a/src/auth0/management/types/event_stream_delivery.py +++ /dev/null @@ -1,44 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event import EventStreamCloudEvent -from .event_stream_delivery_attempt import EventStreamDeliveryAttempt -from .event_stream_delivery_event_type_enum import EventStreamDeliveryEventTypeEnum -from .event_stream_delivery_status_enum import EventStreamDeliveryStatusEnum - - -class EventStreamDelivery(UniversalBaseModel): - """ - Metadata about a specific attempt to deliver an event - """ - - id: str = pydantic.Field() - """ - Unique identifier for the delivery - """ - - event_stream_id: str = pydantic.Field() - """ - Unique identifier for the event stream. - """ - - status: EventStreamDeliveryStatusEnum - event_type: EventStreamDeliveryEventTypeEnum - attempts: typing.List[EventStreamDeliveryAttempt] = pydantic.Field() - """ - Results of delivery attempts - """ - - event: typing.Optional[EventStreamCloudEvent] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_delivery_attempt.py b/src/auth0/management/types/event_stream_delivery_attempt.py deleted file mode 100644 index 6f5ed69e..00000000 --- a/src/auth0/management/types/event_stream_delivery_attempt.py +++ /dev/null @@ -1,35 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_delivery_status_enum import EventStreamDeliveryStatusEnum - - -class EventStreamDeliveryAttempt(UniversalBaseModel): - status: EventStreamDeliveryStatusEnum - timestamp: dt.datetime = pydantic.Field() - """ - Timestamp of delivery attempt - """ - - error_message: typing.Optional[str] = pydantic.Field(default=None) - """ - Delivery error message, if applicable - """ - - duration: typing.Optional[float] = pydantic.Field(default=None) - """ - Duration of the delivery attempt in milliseconds - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_delivery_event_type_enum.py b/src/auth0/management/types/event_stream_delivery_event_type_enum.py deleted file mode 100644 index 2ebf419e..00000000 --- a/src/auth0/management/types/event_stream_delivery_event_type_enum.py +++ /dev/null @@ -1,34 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamDeliveryEventTypeEnum = typing.Union[ - typing.Literal[ - "connection.created", - "connection.deleted", - "connection.updated", - "group.created", - "group.deleted", - "group.member.added", - "group.member.deleted", - "group.role.assigned", - "group.role.deleted", - "group.updated", - "organization.connection.added", - "organization.connection.removed", - "organization.connection.updated", - "organization.created", - "organization.deleted", - "organization.group.role.assigned", - "organization.group.role.deleted", - "organization.member.added", - "organization.member.deleted", - "organization.member.role.assigned", - "organization.member.role.deleted", - "organization.updated", - "user.created", - "user.deleted", - "user.updated", - ], - typing.Any, -] diff --git a/src/auth0/management/types/event_stream_delivery_status_enum.py b/src/auth0/management/types/event_stream_delivery_status_enum.py deleted file mode 100644 index 8376f778..00000000 --- a/src/auth0/management/types/event_stream_delivery_status_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamDeliveryStatusEnum = typing.Union[typing.Literal["failed"], typing.Any] diff --git a/src/auth0/management/types/event_stream_destination_patch.py b/src/auth0/management/types/event_stream_destination_patch.py deleted file mode 100644 index 283b833c..00000000 --- a/src/auth0/management/types/event_stream_destination_patch.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .event_stream_action_destination import EventStreamActionDestination -from .event_stream_webhook_destination import EventStreamWebhookDestination - -EventStreamDestinationPatch = typing.Union[EventStreamWebhookDestination, EventStreamActionDestination] diff --git a/src/auth0/management/types/event_stream_event_bridge_aws_region_enum.py b/src/auth0/management/types/event_stream_event_bridge_aws_region_enum.py deleted file mode 100644 index 863e1388..00000000 --- a/src/auth0/management/types/event_stream_event_bridge_aws_region_enum.py +++ /dev/null @@ -1,45 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamEventBridgeAwsRegionEnum = typing.Union[ - typing.Literal[ - "af-south-1", - "ap-east-1", - "ap-east-2", - "ap-northeast-1", - "ap-northeast-2", - "ap-northeast-3", - "ap-south-1", - "ap-south-2", - "ap-southeast-1", - "ap-southeast-2", - "ap-southeast-3", - "ap-southeast-4", - "ap-southeast-5", - "ap-southeast-6", - "ap-southeast-7", - "ca-central-1", - "ca-west-1", - "eu-central-1", - "eu-central-2", - "eu-north-1", - "eu-south-1", - "eu-south-2", - "eu-west-1", - "eu-west-2", - "eu-west-3", - "il-central-1", - "me-central-1", - "me-south-1", - "mx-central-1", - "sa-east-1", - "us-gov-east-1", - "us-gov-west-1", - "us-east-1", - "us-east-2", - "us-west-1", - "us-west-2", - ], - typing.Any, -] diff --git a/src/auth0/management/types/event_stream_event_bridge_configuration.py b/src/auth0/management/types/event_stream_event_bridge_configuration.py deleted file mode 100644 index b03488e9..00000000 --- a/src/auth0/management/types/event_stream_event_bridge_configuration.py +++ /dev/null @@ -1,33 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_event_bridge_aws_region_enum import EventStreamEventBridgeAwsRegionEnum - - -class EventStreamEventBridgeConfiguration(UniversalBaseModel): - """ - Configuration specific to an eventbridge destination. - """ - - aws_account_id: str = pydantic.Field() - """ - AWS Account ID for EventBridge destination. - """ - - aws_region: EventStreamEventBridgeAwsRegionEnum - aws_partner_event_source: typing.Optional[str] = pydantic.Field(default=None) - """ - AWS Partner Event Source for EventBridge destination. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_event_bridge_destination.py b/src/auth0/management/types/event_stream_event_bridge_destination.py deleted file mode 100644 index 8ce299f8..00000000 --- a/src/auth0/management/types/event_stream_event_bridge_destination.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_event_bridge_configuration import EventStreamEventBridgeConfiguration -from .event_stream_event_bridge_destination_type_enum import EventStreamEventBridgeDestinationTypeEnum - - -class EventStreamEventBridgeDestination(UniversalBaseModel): - type: EventStreamEventBridgeDestinationTypeEnum - configuration: EventStreamEventBridgeConfiguration - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_event_bridge_destination_type_enum.py b/src/auth0/management/types/event_stream_event_bridge_destination_type_enum.py deleted file mode 100644 index 6ec37fbc..00000000 --- a/src/auth0/management/types/event_stream_event_bridge_destination_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamEventBridgeDestinationTypeEnum = typing.Union[typing.Literal["eventbridge"], typing.Any] diff --git a/src/auth0/management/types/event_stream_event_bridge_response_content.py b/src/auth0/management/types/event_stream_event_bridge_response_content.py deleted file mode 100644 index cfc68613..00000000 --- a/src/auth0/management/types/event_stream_event_bridge_response_content.py +++ /dev/null @@ -1,48 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_event_bridge_destination import EventStreamEventBridgeDestination -from .event_stream_status_enum import EventStreamStatusEnum -from .event_stream_subscription import EventStreamSubscription - - -class EventStreamEventBridgeResponseContent(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - Unique identifier for the event stream. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of the event stream. - """ - - subscriptions: typing.Optional[typing.List[EventStreamSubscription]] = pydantic.Field(default=None) - """ - List of event types subscribed to in this stream. - """ - - destination: typing.Optional[EventStreamEventBridgeDestination] = None - status: typing.Optional[EventStreamStatusEnum] = None - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Timestamp when the event stream was created. - """ - - updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Timestamp when the event stream was last updated. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_event_type_enum.py b/src/auth0/management/types/event_stream_event_type_enum.py deleted file mode 100644 index 6dce7aa0..00000000 --- a/src/auth0/management/types/event_stream_event_type_enum.py +++ /dev/null @@ -1,34 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamEventTypeEnum = typing.Union[ - typing.Literal[ - "connection.created", - "connection.deleted", - "connection.updated", - "group.created", - "group.deleted", - "group.member.added", - "group.member.deleted", - "group.role.assigned", - "group.role.deleted", - "group.updated", - "organization.connection.added", - "organization.connection.removed", - "organization.connection.updated", - "organization.created", - "organization.deleted", - "organization.group.role.assigned", - "organization.group.role.deleted", - "organization.member.added", - "organization.member.deleted", - "organization.member.role.assigned", - "organization.member.role.deleted", - "organization.updated", - "user.created", - "user.deleted", - "user.updated", - ], - typing.Any, -] diff --git a/src/auth0/management/types/event_stream_response_content.py b/src/auth0/management/types/event_stream_response_content.py deleted file mode 100644 index 9706a598..00000000 --- a/src/auth0/management/types/event_stream_response_content.py +++ /dev/null @@ -1,11 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .event_stream_action_response_content import EventStreamActionResponseContent -from .event_stream_event_bridge_response_content import EventStreamEventBridgeResponseContent -from .event_stream_webhook_response_content import EventStreamWebhookResponseContent - -EventStreamResponseContent = typing.Union[ - EventStreamWebhookResponseContent, EventStreamEventBridgeResponseContent, EventStreamActionResponseContent -] diff --git a/src/auth0/management/types/event_stream_status_enum.py b/src/auth0/management/types/event_stream_status_enum.py deleted file mode 100644 index b1f14373..00000000 --- a/src/auth0/management/types/event_stream_status_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamStatusEnum = typing.Union[typing.Literal["enabled", "disabled"], typing.Any] diff --git a/src/auth0/management/types/event_stream_subscribe_events_event_type_enum.py b/src/auth0/management/types/event_stream_subscribe_events_event_type_enum.py deleted file mode 100644 index d87067c9..00000000 --- a/src/auth0/management/types/event_stream_subscribe_events_event_type_enum.py +++ /dev/null @@ -1,34 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamSubscribeEventsEventTypeEnum = typing.Union[ - typing.Literal[ - "connection.created", - "connection.deleted", - "connection.updated", - "group.created", - "group.deleted", - "group.member.added", - "group.member.deleted", - "group.role.assigned", - "group.role.deleted", - "group.updated", - "organization.connection.added", - "organization.connection.removed", - "organization.connection.updated", - "organization.created", - "organization.deleted", - "organization.group.role.assigned", - "organization.group.role.deleted", - "organization.member.added", - "organization.member.deleted", - "organization.member.role.assigned", - "organization.member.role.deleted", - "organization.updated", - "user.created", - "user.deleted", - "user.updated", - ], - typing.Any, -] diff --git a/src/auth0/management/types/event_stream_subscribe_events_event_type_param.py b/src/auth0/management/types/event_stream_subscribe_events_event_type_param.py deleted file mode 100644 index 7b320126..00000000 --- a/src/auth0/management/types/event_stream_subscribe_events_event_type_param.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .event_stream_subscribe_events_event_type_enum import EventStreamSubscribeEventsEventTypeEnum - -EventStreamSubscribeEventsEventTypeParam = typing.List[EventStreamSubscribeEventsEventTypeEnum] -""" -Event type(s) to listen for. Specify multiple times for multiple types (e.g., ?event_type=user.created&event_type=user.updated). If not provided, all event types will be streamed. -""" diff --git a/src/auth0/management/types/event_stream_subscribe_events_response_content.py b/src/auth0/management/types/event_stream_subscribe_events_response_content.py deleted file mode 100644 index 7646a2bd..00000000 --- a/src/auth0/management/types/event_stream_subscribe_events_response_content.py +++ /dev/null @@ -1,592 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event_connection_created_cloud_event import EventStreamCloudEventConnectionCreatedCloudEvent -from .event_stream_cloud_event_connection_deleted_cloud_event import EventStreamCloudEventConnectionDeletedCloudEvent -from .event_stream_cloud_event_connection_updated_cloud_event import EventStreamCloudEventConnectionUpdatedCloudEvent -from .event_stream_cloud_event_error_detail import EventStreamCloudEventErrorDetail -from .event_stream_cloud_event_group_created_cloud_event import EventStreamCloudEventGroupCreatedCloudEvent -from .event_stream_cloud_event_group_deleted_cloud_event import EventStreamCloudEventGroupDeletedCloudEvent -from .event_stream_cloud_event_group_member_added_cloud_event import EventStreamCloudEventGroupMemberAddedCloudEvent -from .event_stream_cloud_event_group_member_deleted_cloud_event import EventStreamCloudEventGroupMemberDeletedCloudEvent -from .event_stream_cloud_event_group_role_assigned_cloud_event import EventStreamCloudEventGroupRoleAssignedCloudEvent -from .event_stream_cloud_event_group_role_deleted_cloud_event import EventStreamCloudEventGroupRoleDeletedCloudEvent -from .event_stream_cloud_event_group_updated_cloud_event import EventStreamCloudEventGroupUpdatedCloudEvent -from .event_stream_cloud_event_org_connection_added_cloud_event import EventStreamCloudEventOrgConnectionAddedCloudEvent -from .event_stream_cloud_event_org_connection_removed_cloud_event import ( - EventStreamCloudEventOrgConnectionRemovedCloudEvent, -) -from .event_stream_cloud_event_org_connection_updated_cloud_event import ( - EventStreamCloudEventOrgConnectionUpdatedCloudEvent, -) -from .event_stream_cloud_event_org_created_cloud_event import EventStreamCloudEventOrgCreatedCloudEvent -from .event_stream_cloud_event_org_deleted_cloud_event import EventStreamCloudEventOrgDeletedCloudEvent -from .event_stream_cloud_event_org_group_role_assigned_cloud_event import ( - EventStreamCloudEventOrgGroupRoleAssignedCloudEvent, -) -from .event_stream_cloud_event_org_group_role_deleted_cloud_event import ( - EventStreamCloudEventOrgGroupRoleDeletedCloudEvent, -) -from .event_stream_cloud_event_org_member_added_cloud_event import EventStreamCloudEventOrgMemberAddedCloudEvent -from .event_stream_cloud_event_org_member_deleted_cloud_event import EventStreamCloudEventOrgMemberDeletedCloudEvent -from .event_stream_cloud_event_org_member_role_assigned_cloud_event import ( - EventStreamCloudEventOrgMemberRoleAssignedCloudEvent, -) -from .event_stream_cloud_event_org_member_role_deleted_cloud_event import ( - EventStreamCloudEventOrgMemberRoleDeletedCloudEvent, -) -from .event_stream_cloud_event_org_updated_cloud_event import EventStreamCloudEventOrgUpdatedCloudEvent -from .event_stream_cloud_event_user_created_cloud_event import EventStreamCloudEventUserCreatedCloudEvent -from .event_stream_cloud_event_user_deleted_cloud_event import EventStreamCloudEventUserDeletedCloudEvent -from .event_stream_cloud_event_user_updated_cloud_event import EventStreamCloudEventUserUpdatedCloudEvent - - -class EventStreamSubscribeEventsResponseContent_ConnectionCreated(UniversalBaseModel): - """ - The JSON payload delivered in each SSE data line. The type field is injected from the SSE event field by the SDK. Discriminated by type: an event type name for events, "error" for errors, and "offset-only" for cursor-only heartbeats. - """ - - type: typing.Literal["connection.created"] = "connection.created" - offset: str - event: EventStreamCloudEventConnectionCreatedCloudEvent - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -class EventStreamSubscribeEventsResponseContent_ConnectionDeleted(UniversalBaseModel): - """ - The JSON payload delivered in each SSE data line. The type field is injected from the SSE event field by the SDK. Discriminated by type: an event type name for events, "error" for errors, and "offset-only" for cursor-only heartbeats. - """ - - type: typing.Literal["connection.deleted"] = "connection.deleted" - offset: str - event: EventStreamCloudEventConnectionDeletedCloudEvent - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -class EventStreamSubscribeEventsResponseContent_ConnectionUpdated(UniversalBaseModel): - """ - The JSON payload delivered in each SSE data line. The type field is injected from the SSE event field by the SDK. Discriminated by type: an event type name for events, "error" for errors, and "offset-only" for cursor-only heartbeats. - """ - - type: typing.Literal["connection.updated"] = "connection.updated" - offset: str - event: EventStreamCloudEventConnectionUpdatedCloudEvent - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -class EventStreamSubscribeEventsResponseContent_GroupCreated(UniversalBaseModel): - """ - The JSON payload delivered in each SSE data line. The type field is injected from the SSE event field by the SDK. Discriminated by type: an event type name for events, "error" for errors, and "offset-only" for cursor-only heartbeats. - """ - - type: typing.Literal["group.created"] = "group.created" - offset: str - event: EventStreamCloudEventGroupCreatedCloudEvent - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -class EventStreamSubscribeEventsResponseContent_GroupDeleted(UniversalBaseModel): - """ - The JSON payload delivered in each SSE data line. The type field is injected from the SSE event field by the SDK. Discriminated by type: an event type name for events, "error" for errors, and "offset-only" for cursor-only heartbeats. - """ - - type: typing.Literal["group.deleted"] = "group.deleted" - offset: str - event: EventStreamCloudEventGroupDeletedCloudEvent - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -class EventStreamSubscribeEventsResponseContent_GroupMemberAdded(UniversalBaseModel): - """ - The JSON payload delivered in each SSE data line. The type field is injected from the SSE event field by the SDK. Discriminated by type: an event type name for events, "error" for errors, and "offset-only" for cursor-only heartbeats. - """ - - type: typing.Literal["group.member.added"] = "group.member.added" - offset: str - event: EventStreamCloudEventGroupMemberAddedCloudEvent - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -class EventStreamSubscribeEventsResponseContent_GroupMemberDeleted(UniversalBaseModel): - """ - The JSON payload delivered in each SSE data line. The type field is injected from the SSE event field by the SDK. Discriminated by type: an event type name for events, "error" for errors, and "offset-only" for cursor-only heartbeats. - """ - - type: typing.Literal["group.member.deleted"] = "group.member.deleted" - offset: str - event: EventStreamCloudEventGroupMemberDeletedCloudEvent - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -class EventStreamSubscribeEventsResponseContent_GroupRoleAssigned(UniversalBaseModel): - """ - The JSON payload delivered in each SSE data line. The type field is injected from the SSE event field by the SDK. Discriminated by type: an event type name for events, "error" for errors, and "offset-only" for cursor-only heartbeats. - """ - - type: typing.Literal["group.role.assigned"] = "group.role.assigned" - offset: str - event: EventStreamCloudEventGroupRoleAssignedCloudEvent - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -class EventStreamSubscribeEventsResponseContent_GroupRoleDeleted(UniversalBaseModel): - """ - The JSON payload delivered in each SSE data line. The type field is injected from the SSE event field by the SDK. Discriminated by type: an event type name for events, "error" for errors, and "offset-only" for cursor-only heartbeats. - """ - - type: typing.Literal["group.role.deleted"] = "group.role.deleted" - offset: str - event: EventStreamCloudEventGroupRoleDeletedCloudEvent - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -class EventStreamSubscribeEventsResponseContent_GroupUpdated(UniversalBaseModel): - """ - The JSON payload delivered in each SSE data line. The type field is injected from the SSE event field by the SDK. Discriminated by type: an event type name for events, "error" for errors, and "offset-only" for cursor-only heartbeats. - """ - - type: typing.Literal["group.updated"] = "group.updated" - offset: str - event: EventStreamCloudEventGroupUpdatedCloudEvent - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -class EventStreamSubscribeEventsResponseContent_OrganizationConnectionAdded(UniversalBaseModel): - """ - The JSON payload delivered in each SSE data line. The type field is injected from the SSE event field by the SDK. Discriminated by type: an event type name for events, "error" for errors, and "offset-only" for cursor-only heartbeats. - """ - - type: typing.Literal["organization.connection.added"] = "organization.connection.added" - offset: str - event: EventStreamCloudEventOrgConnectionAddedCloudEvent - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -class EventStreamSubscribeEventsResponseContent_OrganizationConnectionRemoved(UniversalBaseModel): - """ - The JSON payload delivered in each SSE data line. The type field is injected from the SSE event field by the SDK. Discriminated by type: an event type name for events, "error" for errors, and "offset-only" for cursor-only heartbeats. - """ - - type: typing.Literal["organization.connection.removed"] = "organization.connection.removed" - offset: str - event: EventStreamCloudEventOrgConnectionRemovedCloudEvent - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -class EventStreamSubscribeEventsResponseContent_OrganizationConnectionUpdated(UniversalBaseModel): - """ - The JSON payload delivered in each SSE data line. The type field is injected from the SSE event field by the SDK. Discriminated by type: an event type name for events, "error" for errors, and "offset-only" for cursor-only heartbeats. - """ - - type: typing.Literal["organization.connection.updated"] = "organization.connection.updated" - offset: str - event: EventStreamCloudEventOrgConnectionUpdatedCloudEvent - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -class EventStreamSubscribeEventsResponseContent_OrganizationCreated(UniversalBaseModel): - """ - The JSON payload delivered in each SSE data line. The type field is injected from the SSE event field by the SDK. Discriminated by type: an event type name for events, "error" for errors, and "offset-only" for cursor-only heartbeats. - """ - - type: typing.Literal["organization.created"] = "organization.created" - offset: str - event: EventStreamCloudEventOrgCreatedCloudEvent - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -class EventStreamSubscribeEventsResponseContent_OrganizationDeleted(UniversalBaseModel): - """ - The JSON payload delivered in each SSE data line. The type field is injected from the SSE event field by the SDK. Discriminated by type: an event type name for events, "error" for errors, and "offset-only" for cursor-only heartbeats. - """ - - type: typing.Literal["organization.deleted"] = "organization.deleted" - offset: str - event: EventStreamCloudEventOrgDeletedCloudEvent - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -class EventStreamSubscribeEventsResponseContent_OrganizationGroupRoleAssigned(UniversalBaseModel): - """ - The JSON payload delivered in each SSE data line. The type field is injected from the SSE event field by the SDK. Discriminated by type: an event type name for events, "error" for errors, and "offset-only" for cursor-only heartbeats. - """ - - type: typing.Literal["organization.group.role.assigned"] = "organization.group.role.assigned" - offset: str - event: EventStreamCloudEventOrgGroupRoleAssignedCloudEvent - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -class EventStreamSubscribeEventsResponseContent_OrganizationGroupRoleDeleted(UniversalBaseModel): - """ - The JSON payload delivered in each SSE data line. The type field is injected from the SSE event field by the SDK. Discriminated by type: an event type name for events, "error" for errors, and "offset-only" for cursor-only heartbeats. - """ - - type: typing.Literal["organization.group.role.deleted"] = "organization.group.role.deleted" - offset: str - event: EventStreamCloudEventOrgGroupRoleDeletedCloudEvent - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -class EventStreamSubscribeEventsResponseContent_OrganizationMemberAdded(UniversalBaseModel): - """ - The JSON payload delivered in each SSE data line. The type field is injected from the SSE event field by the SDK. Discriminated by type: an event type name for events, "error" for errors, and "offset-only" for cursor-only heartbeats. - """ - - type: typing.Literal["organization.member.added"] = "organization.member.added" - offset: str - event: EventStreamCloudEventOrgMemberAddedCloudEvent - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -class EventStreamSubscribeEventsResponseContent_OrganizationMemberDeleted(UniversalBaseModel): - """ - The JSON payload delivered in each SSE data line. The type field is injected from the SSE event field by the SDK. Discriminated by type: an event type name for events, "error" for errors, and "offset-only" for cursor-only heartbeats. - """ - - type: typing.Literal["organization.member.deleted"] = "organization.member.deleted" - offset: str - event: EventStreamCloudEventOrgMemberDeletedCloudEvent - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -class EventStreamSubscribeEventsResponseContent_OrganizationMemberRoleAssigned(UniversalBaseModel): - """ - The JSON payload delivered in each SSE data line. The type field is injected from the SSE event field by the SDK. Discriminated by type: an event type name for events, "error" for errors, and "offset-only" for cursor-only heartbeats. - """ - - type: typing.Literal["organization.member.role.assigned"] = "organization.member.role.assigned" - offset: str - event: EventStreamCloudEventOrgMemberRoleAssignedCloudEvent - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -class EventStreamSubscribeEventsResponseContent_OrganizationMemberRoleDeleted(UniversalBaseModel): - """ - The JSON payload delivered in each SSE data line. The type field is injected from the SSE event field by the SDK. Discriminated by type: an event type name for events, "error" for errors, and "offset-only" for cursor-only heartbeats. - """ - - type: typing.Literal["organization.member.role.deleted"] = "organization.member.role.deleted" - offset: str - event: EventStreamCloudEventOrgMemberRoleDeletedCloudEvent - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -class EventStreamSubscribeEventsResponseContent_OrganizationUpdated(UniversalBaseModel): - """ - The JSON payload delivered in each SSE data line. The type field is injected from the SSE event field by the SDK. Discriminated by type: an event type name for events, "error" for errors, and "offset-only" for cursor-only heartbeats. - """ - - type: typing.Literal["organization.updated"] = "organization.updated" - offset: str - event: EventStreamCloudEventOrgUpdatedCloudEvent - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -class EventStreamSubscribeEventsResponseContent_UserCreated(UniversalBaseModel): - """ - The JSON payload delivered in each SSE data line. The type field is injected from the SSE event field by the SDK. Discriminated by type: an event type name for events, "error" for errors, and "offset-only" for cursor-only heartbeats. - """ - - type: typing.Literal["user.created"] = "user.created" - offset: str - event: EventStreamCloudEventUserCreatedCloudEvent - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -class EventStreamSubscribeEventsResponseContent_UserDeleted(UniversalBaseModel): - """ - The JSON payload delivered in each SSE data line. The type field is injected from the SSE event field by the SDK. Discriminated by type: an event type name for events, "error" for errors, and "offset-only" for cursor-only heartbeats. - """ - - type: typing.Literal["user.deleted"] = "user.deleted" - offset: str - event: EventStreamCloudEventUserDeletedCloudEvent - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -class EventStreamSubscribeEventsResponseContent_UserUpdated(UniversalBaseModel): - """ - The JSON payload delivered in each SSE data line. The type field is injected from the SSE event field by the SDK. Discriminated by type: an event type name for events, "error" for errors, and "offset-only" for cursor-only heartbeats. - """ - - type: typing.Literal["user.updated"] = "user.updated" - offset: str - event: EventStreamCloudEventUserUpdatedCloudEvent - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -class EventStreamSubscribeEventsResponseContent_Error(UniversalBaseModel): - """ - The JSON payload delivered in each SSE data line. The type field is injected from the SSE event field by the SDK. Discriminated by type: an event type name for events, "error" for errors, and "offset-only" for cursor-only heartbeats. - """ - - type: typing.Literal["error"] = "error" - error: EventStreamCloudEventErrorDetail - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -class EventStreamSubscribeEventsResponseContent_OffsetOnly(UniversalBaseModel): - """ - The JSON payload delivered in each SSE data line. The type field is injected from the SSE event field by the SDK. Discriminated by type: an event type name for events, "error" for errors, and "offset-only" for cursor-only heartbeats. - """ - - type: typing.Literal["offset-only"] = "offset-only" - offset: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -EventStreamSubscribeEventsResponseContent = typing_extensions.Annotated[ - typing.Union[ - EventStreamSubscribeEventsResponseContent_ConnectionCreated, - EventStreamSubscribeEventsResponseContent_ConnectionDeleted, - EventStreamSubscribeEventsResponseContent_ConnectionUpdated, - EventStreamSubscribeEventsResponseContent_GroupCreated, - EventStreamSubscribeEventsResponseContent_GroupDeleted, - EventStreamSubscribeEventsResponseContent_GroupMemberAdded, - EventStreamSubscribeEventsResponseContent_GroupMemberDeleted, - EventStreamSubscribeEventsResponseContent_GroupRoleAssigned, - EventStreamSubscribeEventsResponseContent_GroupRoleDeleted, - EventStreamSubscribeEventsResponseContent_GroupUpdated, - EventStreamSubscribeEventsResponseContent_OrganizationConnectionAdded, - EventStreamSubscribeEventsResponseContent_OrganizationConnectionRemoved, - EventStreamSubscribeEventsResponseContent_OrganizationConnectionUpdated, - EventStreamSubscribeEventsResponseContent_OrganizationCreated, - EventStreamSubscribeEventsResponseContent_OrganizationDeleted, - EventStreamSubscribeEventsResponseContent_OrganizationGroupRoleAssigned, - EventStreamSubscribeEventsResponseContent_OrganizationGroupRoleDeleted, - EventStreamSubscribeEventsResponseContent_OrganizationMemberAdded, - EventStreamSubscribeEventsResponseContent_OrganizationMemberDeleted, - EventStreamSubscribeEventsResponseContent_OrganizationMemberRoleAssigned, - EventStreamSubscribeEventsResponseContent_OrganizationMemberRoleDeleted, - EventStreamSubscribeEventsResponseContent_OrganizationUpdated, - EventStreamSubscribeEventsResponseContent_UserCreated, - EventStreamSubscribeEventsResponseContent_UserDeleted, - EventStreamSubscribeEventsResponseContent_UserUpdated, - EventStreamSubscribeEventsResponseContent_Error, - EventStreamSubscribeEventsResponseContent_OffsetOnly, - ], - pydantic.Field(discriminator="type"), -] diff --git a/src/auth0/management/types/event_stream_subscription.py b/src/auth0/management/types/event_stream_subscription.py deleted file mode 100644 index cf68b4f2..00000000 --- a/src/auth0/management/types/event_stream_subscription.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class EventStreamSubscription(UniversalBaseModel): - """ - Event types - """ - - event_type: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_test_event_type_enum.py b/src/auth0/management/types/event_stream_test_event_type_enum.py deleted file mode 100644 index b5b74b46..00000000 --- a/src/auth0/management/types/event_stream_test_event_type_enum.py +++ /dev/null @@ -1,34 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamTestEventTypeEnum = typing.Union[ - typing.Literal[ - "connection.created", - "connection.deleted", - "connection.updated", - "group.created", - "group.deleted", - "group.member.added", - "group.member.deleted", - "group.role.assigned", - "group.role.deleted", - "group.updated", - "organization.connection.added", - "organization.connection.removed", - "organization.connection.updated", - "organization.created", - "organization.deleted", - "organization.group.role.assigned", - "organization.group.role.deleted", - "organization.member.added", - "organization.member.deleted", - "organization.member.role.assigned", - "organization.member.role.deleted", - "organization.updated", - "user.created", - "user.deleted", - "user.updated", - ], - typing.Any, -] diff --git a/src/auth0/management/types/event_stream_webhook_authorization_response.py b/src/auth0/management/types/event_stream_webhook_authorization_response.py deleted file mode 100644 index d911b1ca..00000000 --- a/src/auth0/management/types/event_stream_webhook_authorization_response.py +++ /dev/null @@ -1,11 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .event_stream_webhook_basic_auth import EventStreamWebhookBasicAuth -from .event_stream_webhook_bearer_auth import EventStreamWebhookBearerAuth -from .event_stream_webhook_custom_header_auth import EventStreamWebhookCustomHeaderAuth - -EventStreamWebhookAuthorizationResponse = typing.Union[ - EventStreamWebhookBasicAuth, EventStreamWebhookBearerAuth, EventStreamWebhookCustomHeaderAuth -] diff --git a/src/auth0/management/types/event_stream_webhook_basic_auth.py b/src/auth0/management/types/event_stream_webhook_basic_auth.py deleted file mode 100644 index 3dfbdd62..00000000 --- a/src/auth0/management/types/event_stream_webhook_basic_auth.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_webhook_basic_auth_method_enum import EventStreamWebhookBasicAuthMethodEnum - - -class EventStreamWebhookBasicAuth(UniversalBaseModel): - """ - Basic Authorization for HTTP requests (e.g., 'Basic credentials'). - """ - - method: EventStreamWebhookBasicAuthMethodEnum - username: str = pydantic.Field() - """ - Username - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_webhook_basic_auth_method_enum.py b/src/auth0/management/types/event_stream_webhook_basic_auth_method_enum.py deleted file mode 100644 index 73681477..00000000 --- a/src/auth0/management/types/event_stream_webhook_basic_auth_method_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamWebhookBasicAuthMethodEnum = typing.Union[typing.Literal["basic"], typing.Any] diff --git a/src/auth0/management/types/event_stream_webhook_bearer_auth.py b/src/auth0/management/types/event_stream_webhook_bearer_auth.py deleted file mode 100644 index 6ac9779a..00000000 --- a/src/auth0/management/types/event_stream_webhook_bearer_auth.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_webhook_bearer_auth_method_enum import EventStreamWebhookBearerAuthMethodEnum - - -class EventStreamWebhookBearerAuth(UniversalBaseModel): - """ - Bearer Authorization for HTTP requests (e.g., 'Bearer token'). - """ - - method: EventStreamWebhookBearerAuthMethodEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_webhook_bearer_auth_method_enum.py b/src/auth0/management/types/event_stream_webhook_bearer_auth_method_enum.py deleted file mode 100644 index 34addf4e..00000000 --- a/src/auth0/management/types/event_stream_webhook_bearer_auth_method_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamWebhookBearerAuthMethodEnum = typing.Union[typing.Literal["bearer"], typing.Any] diff --git a/src/auth0/management/types/event_stream_webhook_configuration.py b/src/auth0/management/types/event_stream_webhook_configuration.py deleted file mode 100644 index 305c5dbb..00000000 --- a/src/auth0/management/types/event_stream_webhook_configuration.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_webhook_authorization_response import EventStreamWebhookAuthorizationResponse - - -class EventStreamWebhookConfiguration(UniversalBaseModel): - """ - Configuration specific to a webhook destination. - """ - - webhook_endpoint: str = pydantic.Field() - """ - Target HTTP endpoint URL. - """ - - webhook_authorization: EventStreamWebhookAuthorizationResponse - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_webhook_custom_header_auth.py b/src/auth0/management/types/event_stream_webhook_custom_header_auth.py deleted file mode 100644 index c676698f..00000000 --- a/src/auth0/management/types/event_stream_webhook_custom_header_auth.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_webhook_custom_header_auth_method_enum import EventStreamWebhookCustomHeaderAuthMethodEnum - - -class EventStreamWebhookCustomHeaderAuth(UniversalBaseModel): - """ - Custom header authorization for HTTP requests. - """ - - method: EventStreamWebhookCustomHeaderAuthMethodEnum - header_key: str = pydantic.Field() - """ - HTTP header name. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_webhook_custom_header_auth_method_enum.py b/src/auth0/management/types/event_stream_webhook_custom_header_auth_method_enum.py deleted file mode 100644 index df69efa5..00000000 --- a/src/auth0/management/types/event_stream_webhook_custom_header_auth_method_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamWebhookCustomHeaderAuthMethodEnum = typing.Union[typing.Literal["custom_header"], typing.Any] diff --git a/src/auth0/management/types/event_stream_webhook_destination.py b/src/auth0/management/types/event_stream_webhook_destination.py deleted file mode 100644 index 6b3449de..00000000 --- a/src/auth0/management/types/event_stream_webhook_destination.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_webhook_configuration import EventStreamWebhookConfiguration -from .event_stream_webhook_destination_type_enum import EventStreamWebhookDestinationTypeEnum - - -class EventStreamWebhookDestination(UniversalBaseModel): - type: EventStreamWebhookDestinationTypeEnum - configuration: EventStreamWebhookConfiguration - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/event_stream_webhook_destination_type_enum.py b/src/auth0/management/types/event_stream_webhook_destination_type_enum.py deleted file mode 100644 index 43b976ae..00000000 --- a/src/auth0/management/types/event_stream_webhook_destination_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -EventStreamWebhookDestinationTypeEnum = typing.Union[typing.Literal["webhook"], typing.Any] diff --git a/src/auth0/management/types/event_stream_webhook_response_content.py b/src/auth0/management/types/event_stream_webhook_response_content.py deleted file mode 100644 index 69501cc1..00000000 --- a/src/auth0/management/types/event_stream_webhook_response_content.py +++ /dev/null @@ -1,48 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_status_enum import EventStreamStatusEnum -from .event_stream_subscription import EventStreamSubscription -from .event_stream_webhook_destination import EventStreamWebhookDestination - - -class EventStreamWebhookResponseContent(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - Unique identifier for the event stream. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of the event stream. - """ - - subscriptions: typing.Optional[typing.List[EventStreamSubscription]] = pydantic.Field(default=None) - """ - List of event types subscribed to in this stream. - """ - - destination: typing.Optional[EventStreamWebhookDestination] = None - status: typing.Optional[EventStreamStatusEnum] = None - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Timestamp when the event stream was created. - """ - - updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Timestamp when the event stream was last updated. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/experiment_list_item.py b/src/auth0/management/types/experiment_list_item.py deleted file mode 100644 index d77a6d5e..00000000 --- a/src/auth0/management/types/experiment_list_item.py +++ /dev/null @@ -1,58 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .allocation_item import AllocationItem -from .allocation_strategy_enum import AllocationStrategyEnum -from .default_config_enum import DefaultConfigEnum -from .experiment_status_enum import ExperimentStatusEnum - - -class ExperimentListItem(UniversalBaseModel): - id: str - name: str - description: typing.Optional[str] = None - feature_flag_id: str - feature_flag_name: typing.Optional[str] = None - authentication_flow: str - allocation_strategy: AllocationStrategyEnum - status: ExperimentStatusEnum - is_valid: bool = pydantic.Field() - """ - Whether the experiment is valid and ready to activate, as of its last update. It can lag changes made later to related entities. Call POST /experiments/{id}/validate for the current result. - """ - - default_config: typing.Optional[DefaultConfigEnum] = None - feature_flag_snapshot: typing.Optional[typing.Dict[str, typing.Any]] = None - allocations: typing.List[AllocationItem] - editable_fields: typing.List[str] = pydantic.Field() - """ - Fields that may be mutated given the experiment's current status. Computed at response time; always current with the API's enforcement logic. - """ - - levels: typing.Optional[typing.List[int]] = pydantic.Field(default=None) - """ - Ramp experiment levels configuration. - """ - - current_level: typing.Optional[int] = pydantic.Field(default=None) - """ - Read-only. The active exposure percentage for the current ramp step. Null when no ramp schedule is active. - """ - - started_at: typing.Optional[dt.datetime] = None - ended_at: typing.Optional[dt.datetime] = None - created_at: dt.datetime - updated_at: dt.datetime - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/experiment_status_enum.py b/src/auth0/management/types/experiment_status_enum.py deleted file mode 100644 index e0d8f152..00000000 --- a/src/auth0/management/types/experiment_status_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ExperimentStatusEnum = typing.Union[typing.Literal["draft", "active", "paused", "completed", "archived"], typing.Any] diff --git a/src/auth0/management/types/experiment_transition_status_enum.py b/src/auth0/management/types/experiment_transition_status_enum.py deleted file mode 100644 index 264d2ab8..00000000 --- a/src/auth0/management/types/experiment_transition_status_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ExperimentTransitionStatusEnum = typing.Union[typing.Literal["active", "paused", "completed", "archived"], typing.Any] diff --git a/src/auth0/management/types/experiment_validation_error.py b/src/auth0/management/types/experiment_validation_error.py deleted file mode 100644 index 01b7a291..00000000 --- a/src/auth0/management/types/experiment_validation_error.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class ExperimentValidationError(UniversalBaseModel): - code: str = pydantic.Field() - """ - Machine-readable error code identifying the validation failure. - """ - - message: str = pydantic.Field() - """ - Human-readable description of the validation failure. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/express_configuration.py b/src/auth0/management/types/express_configuration.py deleted file mode 100644 index f4314d23..00000000 --- a/src/auth0/management/types/express_configuration.py +++ /dev/null @@ -1,72 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .linked_client_configuration import LinkedClientConfiguration - - -class ExpressConfiguration(UniversalBaseModel): - """ - Application specific configuration for use with the OIN Express Configuration feature. - """ - - initiate_login_uri_template: str = pydantic.Field() - """ - The URI users should bookmark to log in to this application. Variable substitution is permitted for the following properties: organization_name, organization_id, and connection_name. - """ - - user_attribute_profile_id: str = pydantic.Field() - """ - The ID of the user attribute profile to use for this application. - """ - - connection_profile_id: str = pydantic.Field() - """ - The ID of the connection profile to use for this application. - """ - - enable_client: bool = pydantic.Field() - """ - When true, all connections made via express configuration will be enabled for this application. - """ - - enable_organization: bool = pydantic.Field() - """ - When true, all connections made via express configuration will have the associated organization enabled. - """ - - linked_clients: typing.Optional[typing.List[LinkedClientConfiguration]] = pydantic.Field(default=None) - """ - List of client IDs that are linked to this express configuration (e.g. web or mobile clients). - """ - - okta_oin_client_id: str = pydantic.Field() - """ - This is the unique identifier for the Okta OIN Express Configuration Client, which Okta will use for this application. - """ - - admin_login_domain: str = pydantic.Field() - """ - This is the domain that admins are expected to log in via for authenticating for express configuration. It can be either the canonical domain or a registered custom domain. - """ - - oin_submission_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The identifier of the published application in the OKTA OIN. - """ - - okta_oin_listing_url: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the application's listing in the Okta Integration Network (OIN) catalog, used to redirect customers into OIN Express Configuration. Must be an https URL on an okta.com domain with no query string or fragment. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/express_configuration_or_null.py b/src/auth0/management/types/express_configuration_or_null.py deleted file mode 100644 index 18b67cfa..00000000 --- a/src/auth0/management/types/express_configuration_or_null.py +++ /dev/null @@ -1,72 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .linked_client_configuration import LinkedClientConfiguration - - -class ExpressConfigurationOrNull(UniversalBaseModel): - """ - Application specific configuration for use with the OIN Express Configuration feature. - """ - - initiate_login_uri_template: str = pydantic.Field() - """ - The URI users should bookmark to log in to this application. Variable substitution is permitted for the following properties: organization_name, organization_id, and connection_name. - """ - - user_attribute_profile_id: str = pydantic.Field() - """ - The ID of the user attribute profile to use for this application. - """ - - connection_profile_id: str = pydantic.Field() - """ - The ID of the connection profile to use for this application. - """ - - enable_client: bool = pydantic.Field() - """ - When true, all connections made via express configuration will be enabled for this application. - """ - - enable_organization: bool = pydantic.Field() - """ - When true, all connections made via express configuration will have the associated organization enabled. - """ - - linked_clients: typing.Optional[typing.List[LinkedClientConfiguration]] = pydantic.Field(default=None) - """ - List of client IDs that are linked to this express configuration (e.g. web or mobile clients). - """ - - okta_oin_client_id: str = pydantic.Field() - """ - This is the unique identifier for the Okta OIN Express Configuration Client, which Okta will use for this application. - """ - - admin_login_domain: str = pydantic.Field() - """ - This is the domain that admins are expected to log in via for authenticating for express configuration. It can be either the canonical domain or a registered custom domain. - """ - - oin_submission_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The identifier of the published application in the OKTA OIN. - """ - - okta_oin_listing_url: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the application's listing in the Okta Integration Network (OIN) catalog, used to redirect customers into OIN Express Configuration. Must be an https URL on an okta.com domain with no query string or fragment. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/feature_flag.py b/src/auth0/management/types/feature_flag.py deleted file mode 100644 index 8366ff79..00000000 --- a/src/auth0/management/types/feature_flag.py +++ /dev/null @@ -1,30 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .feature_flag_config_params import FeatureFlagConfigParams -from .feature_flag_status_enum import FeatureFlagStatusEnum -from .feature_flag_type_enum import FeatureFlagTypeEnum - - -class FeatureFlag(UniversalBaseModel): - id: str - name: str - description: typing.Optional[str] = None - type: FeatureFlagTypeEnum - status: FeatureFlagStatusEnum - parameters: typing.Optional[FeatureFlagConfigParams] = None - created_at: dt.datetime - updated_at: dt.datetime - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/feature_flag_config_param.py b/src/auth0/management/types/feature_flag_config_param.py deleted file mode 100644 index eef7477f..00000000 --- a/src/auth0/management/types/feature_flag_config_param.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .feature_flag_config_param_type_enum import FeatureFlagConfigParamTypeEnum - - -class FeatureFlagConfigParam(UniversalBaseModel): - type: FeatureFlagConfigParamTypeEnum - value: typing.Any - description: typing.Optional[str] = pydantic.Field(default=None) - """ - A human-readable description of the parameter - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/feature_flag_config_param_type_enum.py b/src/auth0/management/types/feature_flag_config_param_type_enum.py deleted file mode 100644 index 928f82a6..00000000 --- a/src/auth0/management/types/feature_flag_config_param_type_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FeatureFlagConfigParamTypeEnum = typing.Union[ - typing.Literal["string", "boolean", "number", "array", "object"], typing.Any -] diff --git a/src/auth0/management/types/feature_flag_config_params.py b/src/auth0/management/types/feature_flag_config_params.py deleted file mode 100644 index b68b0798..00000000 --- a/src/auth0/management/types/feature_flag_config_params.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .feature_flag_config_param import FeatureFlagConfigParam - -FeatureFlagConfigParams = typing.Dict[str, FeatureFlagConfigParam] -""" -Configuration parameters for this feature flag -""" diff --git a/src/auth0/management/types/feature_flag_status_enum.py b/src/auth0/management/types/feature_flag_status_enum.py deleted file mode 100644 index 3a379401..00000000 --- a/src/auth0/management/types/feature_flag_status_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FeatureFlagStatusEnum = typing.Union[typing.Literal["draft", "active", "archived"], typing.Any] diff --git a/src/auth0/management/types/feature_flag_type_enum.py b/src/auth0/management/types/feature_flag_type_enum.py deleted file mode 100644 index 1852075f..00000000 --- a/src/auth0/management/types/feature_flag_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FeatureFlagTypeEnum = typing.Union[typing.Literal["auth0", "self"], typing.Any] diff --git a/src/auth0/management/types/fed_cm_login.py b/src/auth0/management/types/fed_cm_login.py deleted file mode 100644 index 4541ab6e..00000000 --- a/src/auth0/management/types/fed_cm_login.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .fed_cm_login_google import FedCmLoginGoogle - - -class FedCmLogin(UniversalBaseModel): - """ - Configure FedCM login settings for New Universal Login - """ - - google: typing.Optional[FedCmLoginGoogle] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/fed_cm_login_google.py b/src/auth0/management/types/fed_cm_login_google.py deleted file mode 100644 index 01c7e43b..00000000 --- a/src/auth0/management/types/fed_cm_login_google.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class FedCmLoginGoogle(UniversalBaseModel): - """ - Google FedCM configuration for this client - """ - - is_enabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true, shows the Google FedCM prompt on New Universal Login for this client - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/fed_cm_login_google_patch.py b/src/auth0/management/types/fed_cm_login_google_patch.py deleted file mode 100644 index af43605c..00000000 --- a/src/auth0/management/types/fed_cm_login_google_patch.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class FedCmLoginGooglePatch(UniversalBaseModel): - """ - Google FedCM configuration for this client - """ - - is_enabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true, shows the Google FedCM prompt on New Universal Login for this client - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/fed_cm_login_patch.py b/src/auth0/management/types/fed_cm_login_patch.py deleted file mode 100644 index 012974a5..00000000 --- a/src/auth0/management/types/fed_cm_login_patch.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .fed_cm_login_google_patch import FedCmLoginGooglePatch - - -class FedCmLoginPatch(UniversalBaseModel): - """ - Configure FedCM login settings for New Universal Login - """ - - google: typing.Optional[FedCmLoginGooglePatch] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action.py b/src/auth0/management/types/flow_action.py deleted file mode 100644 index 64499a6a..00000000 --- a/src/auth0/management/types/flow_action.py +++ /dev/null @@ -1,60 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -from .flow_action_activecampaign import FlowActionActivecampaign -from .flow_action_airtable import FlowActionAirtable -from .flow_action_auth_0 import FlowActionAuth0 -from .flow_action_bigquery import FlowActionBigquery -from .flow_action_clearbit import FlowActionClearbit -from .flow_action_email import FlowActionEmail -from .flow_action_google_sheets import FlowActionGoogleSheets -from .flow_action_http import FlowActionHttp -from .flow_action_hubspot import FlowActionHubspot -from .flow_action_json import FlowActionJson -from .flow_action_jwt import FlowActionJwt -from .flow_action_mailchimp import FlowActionMailchimp -from .flow_action_mailjet import FlowActionMailjet -from .flow_action_otp import FlowActionOtp -from .flow_action_pipedrive import FlowActionPipedrive -from .flow_action_salesforce import FlowActionSalesforce -from .flow_action_sendgrid import FlowActionSendgrid -from .flow_action_slack import FlowActionSlack -from .flow_action_stripe import FlowActionStripe -from .flow_action_telegram import FlowActionTelegram -from .flow_action_twilio import FlowActionTwilio -from .flow_action_whatsapp import FlowActionWhatsapp -from .flow_action_xml import FlowActionXml -from .flow_action_zapier import FlowActionZapier - -if typing.TYPE_CHECKING: - from .flow_action_flow import FlowActionFlow -FlowAction = typing.Union[ - FlowActionActivecampaign, - FlowActionAirtable, - FlowActionAuth0, - FlowActionBigquery, - FlowActionClearbit, - FlowActionEmail, - "FlowActionFlow", - FlowActionGoogleSheets, - FlowActionHttp, - FlowActionHubspot, - FlowActionJson, - FlowActionJwt, - FlowActionMailchimp, - FlowActionMailjet, - FlowActionOtp, - FlowActionPipedrive, - FlowActionSalesforce, - FlowActionSendgrid, - FlowActionSlack, - FlowActionStripe, - FlowActionTelegram, - FlowActionTwilio, - FlowActionWhatsapp, - FlowActionXml, - FlowActionZapier, -] diff --git a/src/auth0/management/types/flow_action_activecampaign.py b/src/auth0/management/types/flow_action_activecampaign.py deleted file mode 100644 index 0689b392..00000000 --- a/src/auth0/management/types/flow_action_activecampaign.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .flow_action_activecampaign_list_contacts import FlowActionActivecampaignListContacts -from .flow_action_activecampaign_upsert_contact import FlowActionActivecampaignUpsertContact - -FlowActionActivecampaign = typing.Union[FlowActionActivecampaignListContacts, FlowActionActivecampaignUpsertContact] diff --git a/src/auth0/management/types/flow_action_activecampaign_list_contacts.py b/src/auth0/management/types/flow_action_activecampaign_list_contacts.py deleted file mode 100644 index 9608e0ac..00000000 --- a/src/auth0/management/types/flow_action_activecampaign_list_contacts.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_activecampaign_list_contacts_action import FlowActionActivecampaignListContactsAction -from .flow_action_activecampaign_list_contacts_params import FlowActionActivecampaignListContactsParams -from .flow_action_activecampaign_list_contacts_type import FlowActionActivecampaignListContactsType - - -class FlowActionActivecampaignListContacts(UniversalBaseModel): - id: str - alias: typing.Optional[str] = None - type: FlowActionActivecampaignListContactsType - action: FlowActionActivecampaignListContactsAction - allow_failure: typing.Optional[bool] = None - mask_output: typing.Optional[bool] = None - params: FlowActionActivecampaignListContactsParams - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_activecampaign_list_contacts_action.py b/src/auth0/management/types/flow_action_activecampaign_list_contacts_action.py deleted file mode 100644 index 2c72a039..00000000 --- a/src/auth0/management/types/flow_action_activecampaign_list_contacts_action.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionActivecampaignListContactsAction = typing.Union[typing.Literal["LIST_CONTACTS"], typing.Any] diff --git a/src/auth0/management/types/flow_action_activecampaign_list_contacts_type.py b/src/auth0/management/types/flow_action_activecampaign_list_contacts_type.py deleted file mode 100644 index 812baeed..00000000 --- a/src/auth0/management/types/flow_action_activecampaign_list_contacts_type.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionActivecampaignListContactsType = typing.Union[typing.Literal["ACTIVECAMPAIGN"], typing.Any] diff --git a/src/auth0/management/types/flow_action_activecampaign_upsert_contact.py b/src/auth0/management/types/flow_action_activecampaign_upsert_contact.py deleted file mode 100644 index 42a3c927..00000000 --- a/src/auth0/management/types/flow_action_activecampaign_upsert_contact.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_activecampaign_upsert_contact_action import FlowActionActivecampaignUpsertContactAction -from .flow_action_activecampaign_upsert_contact_params import FlowActionActivecampaignUpsertContactParams -from .flow_action_activecampaign_upsert_contact_type import FlowActionActivecampaignUpsertContactType - - -class FlowActionActivecampaignUpsertContact(UniversalBaseModel): - id: str - alias: typing.Optional[str] = None - type: FlowActionActivecampaignUpsertContactType - action: FlowActionActivecampaignUpsertContactAction - allow_failure: typing.Optional[bool] = None - mask_output: typing.Optional[bool] = None - params: FlowActionActivecampaignUpsertContactParams - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_activecampaign_upsert_contact_action.py b/src/auth0/management/types/flow_action_activecampaign_upsert_contact_action.py deleted file mode 100644 index 074d25fc..00000000 --- a/src/auth0/management/types/flow_action_activecampaign_upsert_contact_action.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionActivecampaignUpsertContactAction = typing.Union[typing.Literal["UPSERT_CONTACT"], typing.Any] diff --git a/src/auth0/management/types/flow_action_activecampaign_upsert_contact_params.py b/src/auth0/management/types/flow_action_activecampaign_upsert_contact_params.py deleted file mode 100644 index a729287d..00000000 --- a/src/auth0/management/types/flow_action_activecampaign_upsert_contact_params.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_activecampaign_upsert_contact_params_custom_fields import ( - FlowActionActivecampaignUpsertContactParamsCustomFields, -) - - -class FlowActionActivecampaignUpsertContactParams(UniversalBaseModel): - connection_id: str - email: str - first_name: typing.Optional[str] = None - last_name: typing.Optional[str] = None - phone: typing.Optional[str] = None - custom_fields: typing.Optional[FlowActionActivecampaignUpsertContactParamsCustomFields] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_activecampaign_upsert_contact_params_custom_fields.py b/src/auth0/management/types/flow_action_activecampaign_upsert_contact_params_custom_fields.py deleted file mode 100644 index 45a6c128..00000000 --- a/src/auth0/management/types/flow_action_activecampaign_upsert_contact_params_custom_fields.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionActivecampaignUpsertContactParamsCustomFields = typing.Dict[str, typing.Any] diff --git a/src/auth0/management/types/flow_action_activecampaign_upsert_contact_type.py b/src/auth0/management/types/flow_action_activecampaign_upsert_contact_type.py deleted file mode 100644 index 12542c60..00000000 --- a/src/auth0/management/types/flow_action_activecampaign_upsert_contact_type.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionActivecampaignUpsertContactType = typing.Union[typing.Literal["ACTIVECAMPAIGN"], typing.Any] diff --git a/src/auth0/management/types/flow_action_airtable.py b/src/auth0/management/types/flow_action_airtable.py deleted file mode 100644 index a4b443a1..00000000 --- a/src/auth0/management/types/flow_action_airtable.py +++ /dev/null @@ -1,11 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .flow_action_airtable_create_record import FlowActionAirtableCreateRecord -from .flow_action_airtable_list_records import FlowActionAirtableListRecords -from .flow_action_airtable_update_record import FlowActionAirtableUpdateRecord - -FlowActionAirtable = typing.Union[ - FlowActionAirtableCreateRecord, FlowActionAirtableListRecords, FlowActionAirtableUpdateRecord -] diff --git a/src/auth0/management/types/flow_action_airtable_create_record.py b/src/auth0/management/types/flow_action_airtable_create_record.py deleted file mode 100644 index 10752678..00000000 --- a/src/auth0/management/types/flow_action_airtable_create_record.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_airtable_create_record_action import FlowActionAirtableCreateRecordAction -from .flow_action_airtable_create_record_params import FlowActionAirtableCreateRecordParams -from .flow_action_airtable_create_record_type import FlowActionAirtableCreateRecordType - - -class FlowActionAirtableCreateRecord(UniversalBaseModel): - id: str - alias: typing.Optional[str] = None - type: FlowActionAirtableCreateRecordType - action: FlowActionAirtableCreateRecordAction - allow_failure: typing.Optional[bool] = None - mask_output: typing.Optional[bool] = None - params: FlowActionAirtableCreateRecordParams - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_airtable_create_record_action.py b/src/auth0/management/types/flow_action_airtable_create_record_action.py deleted file mode 100644 index 98c758a8..00000000 --- a/src/auth0/management/types/flow_action_airtable_create_record_action.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionAirtableCreateRecordAction = typing.Union[typing.Literal["CREATE_RECORD"], typing.Any] diff --git a/src/auth0/management/types/flow_action_airtable_create_record_params.py b/src/auth0/management/types/flow_action_airtable_create_record_params.py deleted file mode 100644 index 094e4ab9..00000000 --- a/src/auth0/management/types/flow_action_airtable_create_record_params.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_airtable_create_record_params_fields import FlowActionAirtableCreateRecordParamsFields - - -class FlowActionAirtableCreateRecordParams(UniversalBaseModel): - connection_id: str - base_id: str - table_name: str - fields: typing.Optional[FlowActionAirtableCreateRecordParamsFields] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_airtable_create_record_params_fields.py b/src/auth0/management/types/flow_action_airtable_create_record_params_fields.py deleted file mode 100644 index d0f5bf57..00000000 --- a/src/auth0/management/types/flow_action_airtable_create_record_params_fields.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionAirtableCreateRecordParamsFields = typing.Dict[str, typing.Any] diff --git a/src/auth0/management/types/flow_action_airtable_create_record_type.py b/src/auth0/management/types/flow_action_airtable_create_record_type.py deleted file mode 100644 index 6ec6c7df..00000000 --- a/src/auth0/management/types/flow_action_airtable_create_record_type.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionAirtableCreateRecordType = typing.Union[typing.Literal["AIRTABLE"], typing.Any] diff --git a/src/auth0/management/types/flow_action_airtable_list_records.py b/src/auth0/management/types/flow_action_airtable_list_records.py deleted file mode 100644 index 78e6e7e4..00000000 --- a/src/auth0/management/types/flow_action_airtable_list_records.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_airtable_list_records_action import FlowActionAirtableListRecordsAction -from .flow_action_airtable_list_records_params import FlowActionAirtableListRecordsParams -from .flow_action_airtable_list_records_type import FlowActionAirtableListRecordsType - - -class FlowActionAirtableListRecords(UniversalBaseModel): - id: str - alias: typing.Optional[str] = None - type: FlowActionAirtableListRecordsType - action: FlowActionAirtableListRecordsAction - allow_failure: typing.Optional[bool] = None - mask_output: typing.Optional[bool] = None - params: FlowActionAirtableListRecordsParams - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_airtable_list_records_action.py b/src/auth0/management/types/flow_action_airtable_list_records_action.py deleted file mode 100644 index ef0e4181..00000000 --- a/src/auth0/management/types/flow_action_airtable_list_records_action.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionAirtableListRecordsAction = typing.Union[typing.Literal["LIST_RECORDS"], typing.Any] diff --git a/src/auth0/management/types/flow_action_airtable_list_records_params.py b/src/auth0/management/types/flow_action_airtable_list_records_params.py deleted file mode 100644 index 7f9df903..00000000 --- a/src/auth0/management/types/flow_action_airtable_list_records_params.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class FlowActionAirtableListRecordsParams(UniversalBaseModel): - connection_id: str - base_id: str - table_name: str - query: typing.Optional[str] = None - view: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_airtable_list_records_type.py b/src/auth0/management/types/flow_action_airtable_list_records_type.py deleted file mode 100644 index 0fab5c63..00000000 --- a/src/auth0/management/types/flow_action_airtable_list_records_type.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionAirtableListRecordsType = typing.Union[typing.Literal["AIRTABLE"], typing.Any] diff --git a/src/auth0/management/types/flow_action_airtable_update_record.py b/src/auth0/management/types/flow_action_airtable_update_record.py deleted file mode 100644 index 5f76c958..00000000 --- a/src/auth0/management/types/flow_action_airtable_update_record.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_airtable_update_record_action import FlowActionAirtableUpdateRecordAction -from .flow_action_airtable_update_record_params import FlowActionAirtableUpdateRecordParams -from .flow_action_airtable_update_record_type import FlowActionAirtableUpdateRecordType - - -class FlowActionAirtableUpdateRecord(UniversalBaseModel): - id: str - alias: typing.Optional[str] = None - type: FlowActionAirtableUpdateRecordType - action: FlowActionAirtableUpdateRecordAction - allow_failure: typing.Optional[bool] = None - mask_output: typing.Optional[bool] = None - params: FlowActionAirtableUpdateRecordParams - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_airtable_update_record_action.py b/src/auth0/management/types/flow_action_airtable_update_record_action.py deleted file mode 100644 index e51c9765..00000000 --- a/src/auth0/management/types/flow_action_airtable_update_record_action.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionAirtableUpdateRecordAction = typing.Union[typing.Literal["UPDATE_RECORD"], typing.Any] diff --git a/src/auth0/management/types/flow_action_airtable_update_record_params.py b/src/auth0/management/types/flow_action_airtable_update_record_params.py deleted file mode 100644 index 70e8c680..00000000 --- a/src/auth0/management/types/flow_action_airtable_update_record_params.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_airtable_update_record_params_fields import FlowActionAirtableUpdateRecordParamsFields - - -class FlowActionAirtableUpdateRecordParams(UniversalBaseModel): - connection_id: str - base_id: str - table_name: str - record_id: str - fields: typing.Optional[FlowActionAirtableUpdateRecordParamsFields] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_airtable_update_record_params_fields.py b/src/auth0/management/types/flow_action_airtable_update_record_params_fields.py deleted file mode 100644 index 27e4736c..00000000 --- a/src/auth0/management/types/flow_action_airtable_update_record_params_fields.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionAirtableUpdateRecordParamsFields = typing.Dict[str, typing.Any] diff --git a/src/auth0/management/types/flow_action_airtable_update_record_type.py b/src/auth0/management/types/flow_action_airtable_update_record_type.py deleted file mode 100644 index 12901318..00000000 --- a/src/auth0/management/types/flow_action_airtable_update_record_type.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionAirtableUpdateRecordType = typing.Union[typing.Literal["AIRTABLE"], typing.Any] diff --git a/src/auth0/management/types/flow_action_auth_0.py b/src/auth0/management/types/flow_action_auth_0.py deleted file mode 100644 index 4b5d734e..00000000 --- a/src/auth0/management/types/flow_action_auth_0.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .flow_action_auth_0_create_user import FlowActionAuth0CreateUser -from .flow_action_auth_0_get_user import FlowActionAuth0GetUser -from .flow_action_auth_0_make_call import FlowActionAuth0MakeCall -from .flow_action_auth_0_send_email import FlowActionAuth0SendEmail -from .flow_action_auth_0_send_request import FlowActionAuth0SendRequest -from .flow_action_auth_0_send_sms import FlowActionAuth0SendSms -from .flow_action_auth_0_update_user import FlowActionAuth0UpdateUser - -FlowActionAuth0 = typing.Union[ - FlowActionAuth0CreateUser, - FlowActionAuth0GetUser, - FlowActionAuth0UpdateUser, - FlowActionAuth0SendRequest, - FlowActionAuth0SendEmail, - FlowActionAuth0SendSms, - FlowActionAuth0MakeCall, -] diff --git a/src/auth0/management/types/flow_action_auth_0_create_user.py b/src/auth0/management/types/flow_action_auth_0_create_user.py deleted file mode 100644 index de9fc868..00000000 --- a/src/auth0/management/types/flow_action_auth_0_create_user.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_auth_0_create_user_action import FlowActionAuth0CreateUserAction -from .flow_action_auth_0_create_user_params import FlowActionAuth0CreateUserParams -from .flow_action_auth_0_create_user_type import FlowActionAuth0CreateUserType - - -class FlowActionAuth0CreateUser(UniversalBaseModel): - id: str - alias: typing.Optional[str] = None - type: FlowActionAuth0CreateUserType - action: FlowActionAuth0CreateUserAction - allow_failure: typing.Optional[bool] = None - mask_output: typing.Optional[bool] = None - params: FlowActionAuth0CreateUserParams - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_auth_0_create_user_action.py b/src/auth0/management/types/flow_action_auth_0_create_user_action.py deleted file mode 100644 index 6e923a5a..00000000 --- a/src/auth0/management/types/flow_action_auth_0_create_user_action.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionAuth0CreateUserAction = typing.Union[typing.Literal["CREATE_USER"], typing.Any] diff --git a/src/auth0/management/types/flow_action_auth_0_create_user_params.py b/src/auth0/management/types/flow_action_auth_0_create_user_params.py deleted file mode 100644 index 0b75156c..00000000 --- a/src/auth0/management/types/flow_action_auth_0_create_user_params.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_auth_0_create_user_params_payload import FlowActionAuth0CreateUserParamsPayload - - -class FlowActionAuth0CreateUserParams(UniversalBaseModel): - connection_id: str - payload: FlowActionAuth0CreateUserParamsPayload - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_auth_0_create_user_params_payload.py b/src/auth0/management/types/flow_action_auth_0_create_user_params_payload.py deleted file mode 100644 index 7cd7d376..00000000 --- a/src/auth0/management/types/flow_action_auth_0_create_user_params_payload.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionAuth0CreateUserParamsPayload = typing.Dict[str, typing.Any] diff --git a/src/auth0/management/types/flow_action_auth_0_create_user_type.py b/src/auth0/management/types/flow_action_auth_0_create_user_type.py deleted file mode 100644 index f5a6e799..00000000 --- a/src/auth0/management/types/flow_action_auth_0_create_user_type.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionAuth0CreateUserType = typing.Union[typing.Literal["AUTH0"], typing.Any] diff --git a/src/auth0/management/types/flow_action_auth_0_get_user.py b/src/auth0/management/types/flow_action_auth_0_get_user.py deleted file mode 100644 index c1ae56b5..00000000 --- a/src/auth0/management/types/flow_action_auth_0_get_user.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_auth_0_get_user_action import FlowActionAuth0GetUserAction -from .flow_action_auth_0_get_user_params import FlowActionAuth0GetUserParams -from .flow_action_auth_0_get_user_type import FlowActionAuth0GetUserType - - -class FlowActionAuth0GetUser(UniversalBaseModel): - id: str - alias: typing.Optional[str] = None - type: FlowActionAuth0GetUserType - action: FlowActionAuth0GetUserAction - allow_failure: typing.Optional[bool] = None - mask_output: typing.Optional[bool] = None - params: FlowActionAuth0GetUserParams - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_auth_0_get_user_action.py b/src/auth0/management/types/flow_action_auth_0_get_user_action.py deleted file mode 100644 index c53d96e8..00000000 --- a/src/auth0/management/types/flow_action_auth_0_get_user_action.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionAuth0GetUserAction = typing.Union[typing.Literal["GET_USER"], typing.Any] diff --git a/src/auth0/management/types/flow_action_auth_0_get_user_params.py b/src/auth0/management/types/flow_action_auth_0_get_user_params.py deleted file mode 100644 index 9e0e0f23..00000000 --- a/src/auth0/management/types/flow_action_auth_0_get_user_params.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class FlowActionAuth0GetUserParams(UniversalBaseModel): - connection_id: str - user_id: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_auth_0_get_user_type.py b/src/auth0/management/types/flow_action_auth_0_get_user_type.py deleted file mode 100644 index bac9c707..00000000 --- a/src/auth0/management/types/flow_action_auth_0_get_user_type.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionAuth0GetUserType = typing.Union[typing.Literal["AUTH0"], typing.Any] diff --git a/src/auth0/management/types/flow_action_auth_0_make_call.py b/src/auth0/management/types/flow_action_auth_0_make_call.py deleted file mode 100644 index 273f7798..00000000 --- a/src/auth0/management/types/flow_action_auth_0_make_call.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_auth_0_make_call_action import FlowActionAuth0MakeCallAction -from .flow_action_auth_0_make_call_params import FlowActionAuth0MakeCallParams -from .flow_action_auth_0_make_call_type import FlowActionAuth0MakeCallType - - -class FlowActionAuth0MakeCall(UniversalBaseModel): - id: str - alias: typing.Optional[str] = None - type: FlowActionAuth0MakeCallType - action: FlowActionAuth0MakeCallAction - allow_failure: typing.Optional[bool] = None - mask_output: typing.Optional[bool] = None - params: FlowActionAuth0MakeCallParams - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_auth_0_make_call_action.py b/src/auth0/management/types/flow_action_auth_0_make_call_action.py deleted file mode 100644 index e6862f3b..00000000 --- a/src/auth0/management/types/flow_action_auth_0_make_call_action.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionAuth0MakeCallAction = typing.Union[typing.Literal["MAKE_CALL"], typing.Any] diff --git a/src/auth0/management/types/flow_action_auth_0_make_call_params.py b/src/auth0/management/types/flow_action_auth_0_make_call_params.py deleted file mode 100644 index 158fa7e7..00000000 --- a/src/auth0/management/types/flow_action_auth_0_make_call_params.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .flow_action_auth_0_make_call_params_custom_vars import FlowActionAuth0MakeCallParamsCustomVars - - -class FlowActionAuth0MakeCallParams(UniversalBaseModel): - from_: typing_extensions.Annotated[ - typing.Optional[str], FieldMetadata(alias="from"), pydantic.Field(alias="from") - ] = None - to: str - message: str - custom_vars: typing.Optional[FlowActionAuth0MakeCallParamsCustomVars] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_auth_0_make_call_params_custom_vars.py b/src/auth0/management/types/flow_action_auth_0_make_call_params_custom_vars.py deleted file mode 100644 index 979443a7..00000000 --- a/src/auth0/management/types/flow_action_auth_0_make_call_params_custom_vars.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionAuth0MakeCallParamsCustomVars = typing.Dict[str, typing.Any] diff --git a/src/auth0/management/types/flow_action_auth_0_make_call_type.py b/src/auth0/management/types/flow_action_auth_0_make_call_type.py deleted file mode 100644 index 7be38fcc..00000000 --- a/src/auth0/management/types/flow_action_auth_0_make_call_type.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionAuth0MakeCallType = typing.Union[typing.Literal["AUTH0"], typing.Any] diff --git a/src/auth0/management/types/flow_action_auth_0_send_email.py b/src/auth0/management/types/flow_action_auth_0_send_email.py deleted file mode 100644 index b40cb4d7..00000000 --- a/src/auth0/management/types/flow_action_auth_0_send_email.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_auth_0_send_email_action import FlowActionAuth0SendEmailAction -from .flow_action_auth_0_send_email_params import FlowActionAuth0SendEmailParams -from .flow_action_auth_0_send_email_type import FlowActionAuth0SendEmailType - - -class FlowActionAuth0SendEmail(UniversalBaseModel): - id: str - alias: typing.Optional[str] = None - type: FlowActionAuth0SendEmailType - action: FlowActionAuth0SendEmailAction - allow_failure: typing.Optional[bool] = None - mask_output: typing.Optional[bool] = None - params: FlowActionAuth0SendEmailParams - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_auth_0_send_email_action.py b/src/auth0/management/types/flow_action_auth_0_send_email_action.py deleted file mode 100644 index b0c54a38..00000000 --- a/src/auth0/management/types/flow_action_auth_0_send_email_action.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionAuth0SendEmailAction = typing.Union[typing.Literal["SEND_EMAIL"], typing.Any] diff --git a/src/auth0/management/types/flow_action_auth_0_send_email_params.py b/src/auth0/management/types/flow_action_auth_0_send_email_params.py deleted file mode 100644 index b4e9609e..00000000 --- a/src/auth0/management/types/flow_action_auth_0_send_email_params.py +++ /dev/null @@ -1,30 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .flow_action_auth_0_send_email_params_from import FlowActionAuth0SendEmailParamsFrom -from .flow_action_auth_0_send_email_params_to import FlowActionAuth0SendEmailParamsTo -from .flow_action_auth_0_send_request_params_custom_vars import FlowActionAuth0SendRequestParamsCustomVars - - -class FlowActionAuth0SendEmailParams(UniversalBaseModel): - from_: typing_extensions.Annotated[ - typing.Optional[FlowActionAuth0SendEmailParamsFrom], FieldMetadata(alias="from"), pydantic.Field(alias="from") - ] = None - to: FlowActionAuth0SendEmailParamsTo - subject: str - body: str - custom_vars: typing.Optional[FlowActionAuth0SendRequestParamsCustomVars] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_auth_0_send_email_params_from.py b/src/auth0/management/types/flow_action_auth_0_send_email_params_from.py deleted file mode 100644 index 5c4b71cd..00000000 --- a/src/auth0/management/types/flow_action_auth_0_send_email_params_from.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_auth_0_send_email_params_from_email import FlowActionAuth0SendEmailParamsFromEmail - - -class FlowActionAuth0SendEmailParamsFrom(UniversalBaseModel): - name: typing.Optional[str] = None - email: FlowActionAuth0SendEmailParamsFromEmail - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_auth_0_send_email_params_from_email.py b/src/auth0/management/types/flow_action_auth_0_send_email_params_from_email.py deleted file mode 100644 index 6f9456a5..00000000 --- a/src/auth0/management/types/flow_action_auth_0_send_email_params_from_email.py +++ /dev/null @@ -1,3 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -FlowActionAuth0SendEmailParamsFromEmail = str diff --git a/src/auth0/management/types/flow_action_auth_0_send_email_params_to.py b/src/auth0/management/types/flow_action_auth_0_send_email_params_to.py deleted file mode 100644 index c97f9335..00000000 --- a/src/auth0/management/types/flow_action_auth_0_send_email_params_to.py +++ /dev/null @@ -1,3 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -FlowActionAuth0SendEmailParamsTo = str diff --git a/src/auth0/management/types/flow_action_auth_0_send_email_type.py b/src/auth0/management/types/flow_action_auth_0_send_email_type.py deleted file mode 100644 index ace77681..00000000 --- a/src/auth0/management/types/flow_action_auth_0_send_email_type.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionAuth0SendEmailType = typing.Union[typing.Literal["AUTH0"], typing.Any] diff --git a/src/auth0/management/types/flow_action_auth_0_send_request.py b/src/auth0/management/types/flow_action_auth_0_send_request.py deleted file mode 100644 index cd2c2cff..00000000 --- a/src/auth0/management/types/flow_action_auth_0_send_request.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_auth_0_send_request_action import FlowActionAuth0SendRequestAction -from .flow_action_auth_0_send_request_params import FlowActionAuth0SendRequestParams -from .flow_action_auth_0_send_request_type import FlowActionAuth0SendRequestType - - -class FlowActionAuth0SendRequest(UniversalBaseModel): - id: str - alias: typing.Optional[str] = None - type: FlowActionAuth0SendRequestType - action: FlowActionAuth0SendRequestAction - allow_failure: typing.Optional[bool] = None - mask_output: typing.Optional[bool] = None - params: FlowActionAuth0SendRequestParams - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_auth_0_send_request_action.py b/src/auth0/management/types/flow_action_auth_0_send_request_action.py deleted file mode 100644 index 35d7e273..00000000 --- a/src/auth0/management/types/flow_action_auth_0_send_request_action.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionAuth0SendRequestAction = typing.Union[typing.Literal["SEND_REQUEST"], typing.Any] diff --git a/src/auth0/management/types/flow_action_auth_0_send_request_params.py b/src/auth0/management/types/flow_action_auth_0_send_request_params.py deleted file mode 100644 index 7c63d67c..00000000 --- a/src/auth0/management/types/flow_action_auth_0_send_request_params.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_auth_0_send_request_params_headers import FlowActionAuth0SendRequestParamsHeaders -from .flow_action_auth_0_send_request_params_method import FlowActionAuth0SendRequestParamsMethod -from .flow_action_auth_0_send_request_params_payload import FlowActionAuth0SendRequestParamsPayload -from .flow_action_auth_0_send_request_params_query_params import FlowActionAuth0SendRequestParamsQueryParams - - -class FlowActionAuth0SendRequestParams(UniversalBaseModel): - connection_id: str - pathname: str - method: typing.Optional[FlowActionAuth0SendRequestParamsMethod] = None - headers: typing.Optional[FlowActionAuth0SendRequestParamsHeaders] = None - params: typing.Optional[FlowActionAuth0SendRequestParamsQueryParams] = None - payload: typing.Optional[FlowActionAuth0SendRequestParamsPayload] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_auth_0_send_request_params_custom_vars.py b/src/auth0/management/types/flow_action_auth_0_send_request_params_custom_vars.py deleted file mode 100644 index 1235e9c4..00000000 --- a/src/auth0/management/types/flow_action_auth_0_send_request_params_custom_vars.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionAuth0SendRequestParamsCustomVars = typing.Dict[str, typing.Any] diff --git a/src/auth0/management/types/flow_action_auth_0_send_request_params_headers.py b/src/auth0/management/types/flow_action_auth_0_send_request_params_headers.py deleted file mode 100644 index cc261d75..00000000 --- a/src/auth0/management/types/flow_action_auth_0_send_request_params_headers.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionAuth0SendRequestParamsHeaders = typing.Dict[str, typing.Any] diff --git a/src/auth0/management/types/flow_action_auth_0_send_request_params_method.py b/src/auth0/management/types/flow_action_auth_0_send_request_params_method.py deleted file mode 100644 index 3e70072b..00000000 --- a/src/auth0/management/types/flow_action_auth_0_send_request_params_method.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionAuth0SendRequestParamsMethod = typing.Union[ - typing.Literal["GET", "POST", "PUT", "PATCH", "DELETE"], typing.Any -] diff --git a/src/auth0/management/types/flow_action_auth_0_send_request_params_payload.py b/src/auth0/management/types/flow_action_auth_0_send_request_params_payload.py deleted file mode 100644 index 0d214ef7..00000000 --- a/src/auth0/management/types/flow_action_auth_0_send_request_params_payload.py +++ /dev/null @@ -1,9 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .flow_action_auth_0_send_request_params_payload_object import FlowActionAuth0SendRequestParamsPayloadObject - -FlowActionAuth0SendRequestParamsPayload = typing.Union[ - str, typing.List[typing.Any], FlowActionAuth0SendRequestParamsPayloadObject -] diff --git a/src/auth0/management/types/flow_action_auth_0_send_request_params_payload_object.py b/src/auth0/management/types/flow_action_auth_0_send_request_params_payload_object.py deleted file mode 100644 index ec8354c9..00000000 --- a/src/auth0/management/types/flow_action_auth_0_send_request_params_payload_object.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionAuth0SendRequestParamsPayloadObject = typing.Dict[str, typing.Any] diff --git a/src/auth0/management/types/flow_action_auth_0_send_request_params_query_params.py b/src/auth0/management/types/flow_action_auth_0_send_request_params_query_params.py deleted file mode 100644 index aa704f7e..00000000 --- a/src/auth0/management/types/flow_action_auth_0_send_request_params_query_params.py +++ /dev/null @@ -1,9 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .flow_action_auth_0_send_request_params_query_params_value import FlowActionAuth0SendRequestParamsQueryParamsValue - -FlowActionAuth0SendRequestParamsQueryParams = typing.Dict[ - str, typing.Optional[FlowActionAuth0SendRequestParamsQueryParamsValue] -] diff --git a/src/auth0/management/types/flow_action_auth_0_send_request_params_query_params_value.py b/src/auth0/management/types/flow_action_auth_0_send_request_params_query_params_value.py deleted file mode 100644 index 62a9e38f..00000000 --- a/src/auth0/management/types/flow_action_auth_0_send_request_params_query_params_value.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionAuth0SendRequestParamsQueryParamsValue = typing.Union[float, str] diff --git a/src/auth0/management/types/flow_action_auth_0_send_request_type.py b/src/auth0/management/types/flow_action_auth_0_send_request_type.py deleted file mode 100644 index d96c65af..00000000 --- a/src/auth0/management/types/flow_action_auth_0_send_request_type.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionAuth0SendRequestType = typing.Union[typing.Literal["AUTH0"], typing.Any] diff --git a/src/auth0/management/types/flow_action_auth_0_send_sms.py b/src/auth0/management/types/flow_action_auth_0_send_sms.py deleted file mode 100644 index 1885b75e..00000000 --- a/src/auth0/management/types/flow_action_auth_0_send_sms.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_auth_0_send_sms_action import FlowActionAuth0SendSmsAction -from .flow_action_auth_0_send_sms_params import FlowActionAuth0SendSmsParams -from .flow_action_auth_0_send_sms_type import FlowActionAuth0SendSmsType - - -class FlowActionAuth0SendSms(UniversalBaseModel): - id: str - alias: typing.Optional[str] = None - type: FlowActionAuth0SendSmsType - action: FlowActionAuth0SendSmsAction - allow_failure: typing.Optional[bool] = None - mask_output: typing.Optional[bool] = None - params: FlowActionAuth0SendSmsParams - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_auth_0_send_sms_action.py b/src/auth0/management/types/flow_action_auth_0_send_sms_action.py deleted file mode 100644 index 02126b68..00000000 --- a/src/auth0/management/types/flow_action_auth_0_send_sms_action.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionAuth0SendSmsAction = typing.Union[typing.Literal["SEND_SMS"], typing.Any] diff --git a/src/auth0/management/types/flow_action_auth_0_send_sms_params.py b/src/auth0/management/types/flow_action_auth_0_send_sms_params.py deleted file mode 100644 index 115fb0fd..00000000 --- a/src/auth0/management/types/flow_action_auth_0_send_sms_params.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .flow_action_auth_0_send_sms_params_custom_vars import FlowActionAuth0SendSmsParamsCustomVars - - -class FlowActionAuth0SendSmsParams(UniversalBaseModel): - from_: typing_extensions.Annotated[ - typing.Optional[str], FieldMetadata(alias="from"), pydantic.Field(alias="from") - ] = None - to: str - message: str - custom_vars: typing.Optional[FlowActionAuth0SendSmsParamsCustomVars] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_auth_0_send_sms_params_custom_vars.py b/src/auth0/management/types/flow_action_auth_0_send_sms_params_custom_vars.py deleted file mode 100644 index 7d086d66..00000000 --- a/src/auth0/management/types/flow_action_auth_0_send_sms_params_custom_vars.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionAuth0SendSmsParamsCustomVars = typing.Dict[str, typing.Any] diff --git a/src/auth0/management/types/flow_action_auth_0_send_sms_type.py b/src/auth0/management/types/flow_action_auth_0_send_sms_type.py deleted file mode 100644 index c967b36f..00000000 --- a/src/auth0/management/types/flow_action_auth_0_send_sms_type.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionAuth0SendSmsType = typing.Union[typing.Literal["AUTH0"], typing.Any] diff --git a/src/auth0/management/types/flow_action_auth_0_update_user.py b/src/auth0/management/types/flow_action_auth_0_update_user.py deleted file mode 100644 index 3cf01488..00000000 --- a/src/auth0/management/types/flow_action_auth_0_update_user.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_auth_0_update_user_action import FlowActionAuth0UpdateUserAction -from .flow_action_auth_0_update_user_params import FlowActionAuth0UpdateUserParams -from .flow_action_auth_0_update_user_type import FlowActionAuth0UpdateUserType - - -class FlowActionAuth0UpdateUser(UniversalBaseModel): - id: str - alias: typing.Optional[str] = None - type: FlowActionAuth0UpdateUserType - action: FlowActionAuth0UpdateUserAction - allow_failure: typing.Optional[bool] = None - mask_output: typing.Optional[bool] = None - params: FlowActionAuth0UpdateUserParams - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_auth_0_update_user_action.py b/src/auth0/management/types/flow_action_auth_0_update_user_action.py deleted file mode 100644 index d608c280..00000000 --- a/src/auth0/management/types/flow_action_auth_0_update_user_action.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionAuth0UpdateUserAction = typing.Union[typing.Literal["UPDATE_USER"], typing.Any] diff --git a/src/auth0/management/types/flow_action_auth_0_update_user_params.py b/src/auth0/management/types/flow_action_auth_0_update_user_params.py deleted file mode 100644 index f0877460..00000000 --- a/src/auth0/management/types/flow_action_auth_0_update_user_params.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_auth_0_update_user_params_changes import FlowActionAuth0UpdateUserParamsChanges - - -class FlowActionAuth0UpdateUserParams(UniversalBaseModel): - connection_id: str - user_id: str - changes: FlowActionAuth0UpdateUserParamsChanges - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_auth_0_update_user_params_changes.py b/src/auth0/management/types/flow_action_auth_0_update_user_params_changes.py deleted file mode 100644 index 60140746..00000000 --- a/src/auth0/management/types/flow_action_auth_0_update_user_params_changes.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionAuth0UpdateUserParamsChanges = typing.Dict[str, typing.Any] diff --git a/src/auth0/management/types/flow_action_auth_0_update_user_type.py b/src/auth0/management/types/flow_action_auth_0_update_user_type.py deleted file mode 100644 index e9a0f2be..00000000 --- a/src/auth0/management/types/flow_action_auth_0_update_user_type.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionAuth0UpdateUserType = typing.Union[typing.Literal["AUTH0"], typing.Any] diff --git a/src/auth0/management/types/flow_action_bigquery.py b/src/auth0/management/types/flow_action_bigquery.py deleted file mode 100644 index 6711cc93..00000000 --- a/src/auth0/management/types/flow_action_bigquery.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from .flow_action_bigquery_insert_rows import FlowActionBigqueryInsertRows - -FlowActionBigquery = FlowActionBigqueryInsertRows diff --git a/src/auth0/management/types/flow_action_bigquery_insert_rows.py b/src/auth0/management/types/flow_action_bigquery_insert_rows.py deleted file mode 100644 index a27e9b1f..00000000 --- a/src/auth0/management/types/flow_action_bigquery_insert_rows.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_bigquery_insert_rows_action import FlowActionBigqueryInsertRowsAction -from .flow_action_bigquery_insert_rows_params import FlowActionBigqueryInsertRowsParams -from .flow_action_bigquery_insert_rows_type import FlowActionBigqueryInsertRowsType - - -class FlowActionBigqueryInsertRows(UniversalBaseModel): - id: str - alias: typing.Optional[str] = None - type: FlowActionBigqueryInsertRowsType - action: FlowActionBigqueryInsertRowsAction - allow_failure: typing.Optional[bool] = None - mask_output: typing.Optional[bool] = None - params: FlowActionBigqueryInsertRowsParams - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_bigquery_insert_rows_action.py b/src/auth0/management/types/flow_action_bigquery_insert_rows_action.py deleted file mode 100644 index 6ce49f4d..00000000 --- a/src/auth0/management/types/flow_action_bigquery_insert_rows_action.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionBigqueryInsertRowsAction = typing.Union[typing.Literal["INSERT_ROWS"], typing.Any] diff --git a/src/auth0/management/types/flow_action_bigquery_insert_rows_params.py b/src/auth0/management/types/flow_action_bigquery_insert_rows_params.py deleted file mode 100644 index bacf9675..00000000 --- a/src/auth0/management/types/flow_action_bigquery_insert_rows_params.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_bigquery_insert_rows_params_data import FlowActionBigqueryInsertRowsParamsData - - -class FlowActionBigqueryInsertRowsParams(UniversalBaseModel): - connection_id: str - dataset_id: str - table_id: str - data: typing.Optional[FlowActionBigqueryInsertRowsParamsData] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_bigquery_insert_rows_params_data.py b/src/auth0/management/types/flow_action_bigquery_insert_rows_params_data.py deleted file mode 100644 index f55b9e71..00000000 --- a/src/auth0/management/types/flow_action_bigquery_insert_rows_params_data.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionBigqueryInsertRowsParamsData = typing.Dict[str, typing.Any] diff --git a/src/auth0/management/types/flow_action_bigquery_insert_rows_type.py b/src/auth0/management/types/flow_action_bigquery_insert_rows_type.py deleted file mode 100644 index 709e0b87..00000000 --- a/src/auth0/management/types/flow_action_bigquery_insert_rows_type.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionBigqueryInsertRowsType = typing.Union[typing.Literal["BIGQUERY"], typing.Any] diff --git a/src/auth0/management/types/flow_action_clearbit.py b/src/auth0/management/types/flow_action_clearbit.py deleted file mode 100644 index f10fb840..00000000 --- a/src/auth0/management/types/flow_action_clearbit.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .flow_action_clearbit_find_company import FlowActionClearbitFindCompany -from .flow_action_clearbit_find_person import FlowActionClearbitFindPerson - -FlowActionClearbit = typing.Union[FlowActionClearbitFindPerson, FlowActionClearbitFindCompany] diff --git a/src/auth0/management/types/flow_action_clearbit_find_company.py b/src/auth0/management/types/flow_action_clearbit_find_company.py deleted file mode 100644 index 31c44359..00000000 --- a/src/auth0/management/types/flow_action_clearbit_find_company.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_clearbit_find_company_action import FlowActionClearbitFindCompanyAction -from .flow_action_clearbit_find_company_params import FlowActionClearbitFindCompanyParams -from .flow_action_clearbit_find_company_type import FlowActionClearbitFindCompanyType - - -class FlowActionClearbitFindCompany(UniversalBaseModel): - id: str - alias: typing.Optional[str] = None - type: FlowActionClearbitFindCompanyType - action: FlowActionClearbitFindCompanyAction - allow_failure: typing.Optional[bool] = None - mask_output: typing.Optional[bool] = None - params: FlowActionClearbitFindCompanyParams - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_clearbit_find_company_action.py b/src/auth0/management/types/flow_action_clearbit_find_company_action.py deleted file mode 100644 index a68b3e9f..00000000 --- a/src/auth0/management/types/flow_action_clearbit_find_company_action.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionClearbitFindCompanyAction = typing.Union[typing.Literal["FIND_COMPANY"], typing.Any] diff --git a/src/auth0/management/types/flow_action_clearbit_find_company_params.py b/src/auth0/management/types/flow_action_clearbit_find_company_params.py deleted file mode 100644 index fb5aeffe..00000000 --- a/src/auth0/management/types/flow_action_clearbit_find_company_params.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class FlowActionClearbitFindCompanyParams(UniversalBaseModel): - connection_id: str - domain: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_clearbit_find_company_type.py b/src/auth0/management/types/flow_action_clearbit_find_company_type.py deleted file mode 100644 index db59c204..00000000 --- a/src/auth0/management/types/flow_action_clearbit_find_company_type.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionClearbitFindCompanyType = typing.Union[typing.Literal["CLEARBIT"], typing.Any] diff --git a/src/auth0/management/types/flow_action_clearbit_find_person.py b/src/auth0/management/types/flow_action_clearbit_find_person.py deleted file mode 100644 index a15c9100..00000000 --- a/src/auth0/management/types/flow_action_clearbit_find_person.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_clearbit_find_person_action import FlowActionClearbitFindPersonAction -from .flow_action_clearbit_find_person_params import FlowActionClearbitFindPersonParams -from .flow_action_clearbit_find_person_type import FlowActionClearbitFindPersonType - - -class FlowActionClearbitFindPerson(UniversalBaseModel): - id: str - alias: typing.Optional[str] = None - type: FlowActionClearbitFindPersonType - action: FlowActionClearbitFindPersonAction - allow_failure: typing.Optional[bool] = None - mask_output: typing.Optional[bool] = None - params: FlowActionClearbitFindPersonParams - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_clearbit_find_person_action.py b/src/auth0/management/types/flow_action_clearbit_find_person_action.py deleted file mode 100644 index 857b6ac0..00000000 --- a/src/auth0/management/types/flow_action_clearbit_find_person_action.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionClearbitFindPersonAction = typing.Union[typing.Literal["FIND_PERSON"], typing.Any] diff --git a/src/auth0/management/types/flow_action_clearbit_find_person_params.py b/src/auth0/management/types/flow_action_clearbit_find_person_params.py deleted file mode 100644 index a38664ed..00000000 --- a/src/auth0/management/types/flow_action_clearbit_find_person_params.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class FlowActionClearbitFindPersonParams(UniversalBaseModel): - connection_id: str - email: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_clearbit_find_person_type.py b/src/auth0/management/types/flow_action_clearbit_find_person_type.py deleted file mode 100644 index 412bd7fa..00000000 --- a/src/auth0/management/types/flow_action_clearbit_find_person_type.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionClearbitFindPersonType = typing.Union[typing.Literal["CLEARBIT"], typing.Any] diff --git a/src/auth0/management/types/flow_action_email.py b/src/auth0/management/types/flow_action_email.py deleted file mode 100644 index 69b863fb..00000000 --- a/src/auth0/management/types/flow_action_email.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from .flow_action_email_verify_email import FlowActionEmailVerifyEmail - -FlowActionEmail = FlowActionEmailVerifyEmail diff --git a/src/auth0/management/types/flow_action_email_verify_email.py b/src/auth0/management/types/flow_action_email_verify_email.py deleted file mode 100644 index 6eb14a8c..00000000 --- a/src/auth0/management/types/flow_action_email_verify_email.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_email_verify_email_action import FlowActionEmailVerifyEmailAction -from .flow_action_email_verify_email_params import FlowActionEmailVerifyEmailParams -from .flow_action_email_verify_email_type import FlowActionEmailVerifyEmailType - - -class FlowActionEmailVerifyEmail(UniversalBaseModel): - id: str - alias: typing.Optional[str] = None - type: FlowActionEmailVerifyEmailType - action: FlowActionEmailVerifyEmailAction - allow_failure: typing.Optional[bool] = None - mask_output: typing.Optional[bool] = None - params: FlowActionEmailVerifyEmailParams - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_email_verify_email_action.py b/src/auth0/management/types/flow_action_email_verify_email_action.py deleted file mode 100644 index 7870ab81..00000000 --- a/src/auth0/management/types/flow_action_email_verify_email_action.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionEmailVerifyEmailAction = typing.Union[typing.Literal["VERIFY_EMAIL"], typing.Any] diff --git a/src/auth0/management/types/flow_action_email_verify_email_params.py b/src/auth0/management/types/flow_action_email_verify_email_params.py deleted file mode 100644 index 1f0c3799..00000000 --- a/src/auth0/management/types/flow_action_email_verify_email_params.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_email_verify_email_params_rules import FlowActionEmailVerifyEmailParamsRules - - -class FlowActionEmailVerifyEmailParams(UniversalBaseModel): - email: str - rules: typing.Optional[FlowActionEmailVerifyEmailParamsRules] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_email_verify_email_params_rules.py b/src/auth0/management/types/flow_action_email_verify_email_params_rules.py deleted file mode 100644 index f4a92146..00000000 --- a/src/auth0/management/types/flow_action_email_verify_email_params_rules.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class FlowActionEmailVerifyEmailParamsRules(UniversalBaseModel): - require_mx_record: typing.Optional[bool] = None - block_aliases: typing.Optional[bool] = None - block_free_emails: typing.Optional[bool] = None - block_disposable_emails: typing.Optional[bool] = None - blocklist: typing.Optional[typing.List[str]] = None - allowlist: typing.Optional[typing.List[str]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_email_verify_email_type.py b/src/auth0/management/types/flow_action_email_verify_email_type.py deleted file mode 100644 index 0b504bae..00000000 --- a/src/auth0/management/types/flow_action_email_verify_email_type.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionEmailVerifyEmailType = typing.Union[typing.Literal["EMAIL"], typing.Any] diff --git a/src/auth0/management/types/flow_action_flow.py b/src/auth0/management/types/flow_action_flow.py deleted file mode 100644 index 2ea7db82..00000000 --- a/src/auth0/management/types/flow_action_flow.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -from .flow_action_flow_delay_flow import FlowActionFlowDelayFlow -from .flow_action_flow_do_nothing import FlowActionFlowDoNothing -from .flow_action_flow_error_message import FlowActionFlowErrorMessage -from .flow_action_flow_map_value import FlowActionFlowMapValue -from .flow_action_flow_return_json import FlowActionFlowReturnJson -from .flow_action_flow_store_vars import FlowActionFlowStoreVars - -if typing.TYPE_CHECKING: - from .flow_action_flow_boolean_condition import FlowActionFlowBooleanCondition -FlowActionFlow = typing.Union[ - "FlowActionFlowBooleanCondition", - FlowActionFlowDelayFlow, - FlowActionFlowDoNothing, - FlowActionFlowErrorMessage, - FlowActionFlowMapValue, - FlowActionFlowReturnJson, - FlowActionFlowStoreVars, -] diff --git a/src/auth0/management/types/flow_action_flow_boolean_condition.py b/src/auth0/management/types/flow_action_flow_boolean_condition.py deleted file mode 100644 index 511a7721..00000000 --- a/src/auth0/management/types/flow_action_flow_boolean_condition.py +++ /dev/null @@ -1,41 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel, update_forward_refs -from .flow_action_flow_boolean_condition_action import FlowActionFlowBooleanConditionAction -from .flow_action_flow_boolean_condition_type import FlowActionFlowBooleanConditionType - - -class FlowActionFlowBooleanCondition(UniversalBaseModel): - id: str - alias: typing.Optional[str] = None - type: FlowActionFlowBooleanConditionType - action: FlowActionFlowBooleanConditionAction - allow_failure: typing.Optional[bool] = None - mask_output: typing.Optional[bool] = None - params: "FlowActionFlowBooleanConditionParams" - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .flow_action import FlowAction # noqa: E402, I001 -from .flow_action_flow import FlowActionFlow # noqa: E402, I001 -from .flow_action_flow_boolean_condition_params import FlowActionFlowBooleanConditionParams # noqa: E402, I001 - -update_forward_refs( - FlowActionFlowBooleanCondition, - FlowAction=FlowAction, - FlowActionFlow=FlowActionFlow, - FlowActionFlowBooleanConditionParams=FlowActionFlowBooleanConditionParams, -) diff --git a/src/auth0/management/types/flow_action_flow_boolean_condition_action.py b/src/auth0/management/types/flow_action_flow_boolean_condition_action.py deleted file mode 100644 index f2c88e00..00000000 --- a/src/auth0/management/types/flow_action_flow_boolean_condition_action.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionFlowBooleanConditionAction = typing.Union[typing.Literal["BOOLEAN_CONDITION"], typing.Any] diff --git a/src/auth0/management/types/flow_action_flow_boolean_condition_params.py b/src/auth0/management/types/flow_action_flow_boolean_condition_params.py deleted file mode 100644 index 3b711586..00000000 --- a/src/auth0/management/types/flow_action_flow_boolean_condition_params.py +++ /dev/null @@ -1,38 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel, update_forward_refs -from ..core.serialization import FieldMetadata - - -class FlowActionFlowBooleanConditionParams(UniversalBaseModel): - then: typing.Optional[typing.List["FlowAction"]] = None - else_: typing_extensions.Annotated[ - typing.Optional[typing.List["FlowAction"]], FieldMetadata(alias="else"), pydantic.Field(alias="else") - ] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .flow_action import FlowAction # noqa: E402, I001 -from .flow_action_flow import FlowActionFlow # noqa: E402, I001 -from .flow_action_flow_boolean_condition import FlowActionFlowBooleanCondition # noqa: E402, I001 - -update_forward_refs( - FlowActionFlowBooleanConditionParams, - FlowAction=FlowAction, - FlowActionFlow=FlowActionFlow, - FlowActionFlowBooleanCondition=FlowActionFlowBooleanCondition, -) diff --git a/src/auth0/management/types/flow_action_flow_boolean_condition_type.py b/src/auth0/management/types/flow_action_flow_boolean_condition_type.py deleted file mode 100644 index 2c60aa42..00000000 --- a/src/auth0/management/types/flow_action_flow_boolean_condition_type.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionFlowBooleanConditionType = typing.Union[typing.Literal["FLOW"], typing.Any] diff --git a/src/auth0/management/types/flow_action_flow_delay_flow.py b/src/auth0/management/types/flow_action_flow_delay_flow.py deleted file mode 100644 index f432861d..00000000 --- a/src/auth0/management/types/flow_action_flow_delay_flow.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_flow_delay_flow_action import FlowActionFlowDelayFlowAction -from .flow_action_flow_delay_flow_params import FlowActionFlowDelayFlowParams -from .flow_action_flow_delay_flow_type import FlowActionFlowDelayFlowType - - -class FlowActionFlowDelayFlow(UniversalBaseModel): - id: str - alias: typing.Optional[str] = None - type: FlowActionFlowDelayFlowType - action: FlowActionFlowDelayFlowAction - allow_failure: typing.Optional[bool] = None - mask_output: typing.Optional[bool] = None - params: FlowActionFlowDelayFlowParams - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_flow_delay_flow_action.py b/src/auth0/management/types/flow_action_flow_delay_flow_action.py deleted file mode 100644 index 3ec538de..00000000 --- a/src/auth0/management/types/flow_action_flow_delay_flow_action.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionFlowDelayFlowAction = typing.Union[typing.Literal["DELAY_FLOW"], typing.Any] diff --git a/src/auth0/management/types/flow_action_flow_delay_flow_params.py b/src/auth0/management/types/flow_action_flow_delay_flow_params.py deleted file mode 100644 index 667c2954..00000000 --- a/src/auth0/management/types/flow_action_flow_delay_flow_params.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_flow_delay_flow_params_number import FlowActionFlowDelayFlowParamsNumber -from .flow_action_flow_delay_flow_params_units import FlowActionFlowDelayFlowParamsUnits - - -class FlowActionFlowDelayFlowParams(UniversalBaseModel): - number: FlowActionFlowDelayFlowParamsNumber - units: typing.Optional[FlowActionFlowDelayFlowParamsUnits] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_flow_delay_flow_params_number.py b/src/auth0/management/types/flow_action_flow_delay_flow_params_number.py deleted file mode 100644 index 37c59345..00000000 --- a/src/auth0/management/types/flow_action_flow_delay_flow_params_number.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionFlowDelayFlowParamsNumber = typing.Union[int, str] diff --git a/src/auth0/management/types/flow_action_flow_delay_flow_params_units.py b/src/auth0/management/types/flow_action_flow_delay_flow_params_units.py deleted file mode 100644 index e6b7aeca..00000000 --- a/src/auth0/management/types/flow_action_flow_delay_flow_params_units.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionFlowDelayFlowParamsUnits = typing.Union[typing.Literal["SECONDS", "MINUTES", "HOURS", "DAYS"], typing.Any] diff --git a/src/auth0/management/types/flow_action_flow_delay_flow_type.py b/src/auth0/management/types/flow_action_flow_delay_flow_type.py deleted file mode 100644 index cd6cd7c2..00000000 --- a/src/auth0/management/types/flow_action_flow_delay_flow_type.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionFlowDelayFlowType = typing.Union[typing.Literal["FLOW"], typing.Any] diff --git a/src/auth0/management/types/flow_action_flow_do_nothing.py b/src/auth0/management/types/flow_action_flow_do_nothing.py deleted file mode 100644 index 4dbed95b..00000000 --- a/src/auth0/management/types/flow_action_flow_do_nothing.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_flow_do_nothing_action import FlowActionFlowDoNothingAction -from .flow_action_flow_do_nothing_params import FlowActionFlowDoNothingParams -from .flow_action_flow_do_nothing_type import FlowActionFlowDoNothingType - - -class FlowActionFlowDoNothing(UniversalBaseModel): - id: str - alias: typing.Optional[str] = None - type: FlowActionFlowDoNothingType - action: FlowActionFlowDoNothingAction - allow_failure: typing.Optional[bool] = None - mask_output: typing.Optional[bool] = None - params: typing.Optional[FlowActionFlowDoNothingParams] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_flow_do_nothing_action.py b/src/auth0/management/types/flow_action_flow_do_nothing_action.py deleted file mode 100644 index 523731e0..00000000 --- a/src/auth0/management/types/flow_action_flow_do_nothing_action.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionFlowDoNothingAction = typing.Union[typing.Literal["DO_NOTHING"], typing.Any] diff --git a/src/auth0/management/types/flow_action_flow_do_nothing_type.py b/src/auth0/management/types/flow_action_flow_do_nothing_type.py deleted file mode 100644 index 2e656975..00000000 --- a/src/auth0/management/types/flow_action_flow_do_nothing_type.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionFlowDoNothingType = typing.Union[typing.Literal["FLOW"], typing.Any] diff --git a/src/auth0/management/types/flow_action_flow_error_message.py b/src/auth0/management/types/flow_action_flow_error_message.py deleted file mode 100644 index b960053f..00000000 --- a/src/auth0/management/types/flow_action_flow_error_message.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_flow_error_message_action import FlowActionFlowErrorMessageAction -from .flow_action_flow_error_message_params import FlowActionFlowErrorMessageParams -from .flow_action_flow_error_message_type import FlowActionFlowErrorMessageType - - -class FlowActionFlowErrorMessage(UniversalBaseModel): - id: str - alias: typing.Optional[str] = None - type: FlowActionFlowErrorMessageType - action: FlowActionFlowErrorMessageAction - allow_failure: typing.Optional[bool] = None - mask_output: typing.Optional[bool] = None - params: FlowActionFlowErrorMessageParams - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_flow_error_message_action.py b/src/auth0/management/types/flow_action_flow_error_message_action.py deleted file mode 100644 index 2b2b7c65..00000000 --- a/src/auth0/management/types/flow_action_flow_error_message_action.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionFlowErrorMessageAction = typing.Union[typing.Literal["ERROR_MESSAGE"], typing.Any] diff --git a/src/auth0/management/types/flow_action_flow_error_message_params.py b/src/auth0/management/types/flow_action_flow_error_message_params.py deleted file mode 100644 index 8247b7f1..00000000 --- a/src/auth0/management/types/flow_action_flow_error_message_params.py +++ /dev/null @@ -1,19 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class FlowActionFlowErrorMessageParams(UniversalBaseModel): - message: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_flow_error_message_type.py b/src/auth0/management/types/flow_action_flow_error_message_type.py deleted file mode 100644 index 48c5fb96..00000000 --- a/src/auth0/management/types/flow_action_flow_error_message_type.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionFlowErrorMessageType = typing.Union[typing.Literal["FLOW"], typing.Any] diff --git a/src/auth0/management/types/flow_action_flow_map_value.py b/src/auth0/management/types/flow_action_flow_map_value.py deleted file mode 100644 index 25b701d0..00000000 --- a/src/auth0/management/types/flow_action_flow_map_value.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_flow_map_value_action import FlowActionFlowMapValueAction -from .flow_action_flow_map_value_params import FlowActionFlowMapValueParams -from .flow_action_flow_map_value_type import FlowActionFlowMapValueType - - -class FlowActionFlowMapValue(UniversalBaseModel): - id: str - alias: typing.Optional[str] = None - type: FlowActionFlowMapValueType - action: FlowActionFlowMapValueAction - allow_failure: typing.Optional[bool] = None - mask_output: typing.Optional[bool] = None - params: FlowActionFlowMapValueParams - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_flow_map_value_action.py b/src/auth0/management/types/flow_action_flow_map_value_action.py deleted file mode 100644 index a58e0312..00000000 --- a/src/auth0/management/types/flow_action_flow_map_value_action.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionFlowMapValueAction = typing.Union[typing.Literal["MAP_VALUE"], typing.Any] diff --git a/src/auth0/management/types/flow_action_flow_map_value_params.py b/src/auth0/management/types/flow_action_flow_map_value_params.py deleted file mode 100644 index c19c397b..00000000 --- a/src/auth0/management/types/flow_action_flow_map_value_params.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_flow_map_value_params_cases import FlowActionFlowMapValueParamsCases -from .flow_action_flow_map_value_params_fallback import FlowActionFlowMapValueParamsFallback -from .flow_action_flow_map_value_params_input import FlowActionFlowMapValueParamsInput - - -class FlowActionFlowMapValueParams(UniversalBaseModel): - input: FlowActionFlowMapValueParamsInput - cases: typing.Optional[FlowActionFlowMapValueParamsCases] = None - fallback: typing.Optional[FlowActionFlowMapValueParamsFallback] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_flow_map_value_params_cases.py b/src/auth0/management/types/flow_action_flow_map_value_params_cases.py deleted file mode 100644 index b16a9ac6..00000000 --- a/src/auth0/management/types/flow_action_flow_map_value_params_cases.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionFlowMapValueParamsCases = typing.Dict[str, typing.Any] diff --git a/src/auth0/management/types/flow_action_flow_map_value_params_fallback.py b/src/auth0/management/types/flow_action_flow_map_value_params_fallback.py deleted file mode 100644 index b60fcd9a..00000000 --- a/src/auth0/management/types/flow_action_flow_map_value_params_fallback.py +++ /dev/null @@ -1,9 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .flow_action_flow_map_value_params_fallback_object import FlowActionFlowMapValueParamsFallbackObject - -FlowActionFlowMapValueParamsFallback = typing.Union[ - str, float, FlowActionFlowMapValueParamsFallbackObject, typing.List[typing.Any] -] diff --git a/src/auth0/management/types/flow_action_flow_map_value_params_fallback_object.py b/src/auth0/management/types/flow_action_flow_map_value_params_fallback_object.py deleted file mode 100644 index ff6529cb..00000000 --- a/src/auth0/management/types/flow_action_flow_map_value_params_fallback_object.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionFlowMapValueParamsFallbackObject = typing.Dict[str, typing.Any] diff --git a/src/auth0/management/types/flow_action_flow_map_value_params_input.py b/src/auth0/management/types/flow_action_flow_map_value_params_input.py deleted file mode 100644 index 8c8e9d4d..00000000 --- a/src/auth0/management/types/flow_action_flow_map_value_params_input.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionFlowMapValueParamsInput = typing.Union[str, float] diff --git a/src/auth0/management/types/flow_action_flow_return_json.py b/src/auth0/management/types/flow_action_flow_return_json.py deleted file mode 100644 index 90aa9905..00000000 --- a/src/auth0/management/types/flow_action_flow_return_json.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_flow_return_json_action import FlowActionFlowReturnJsonAction -from .flow_action_flow_return_json_params import FlowActionFlowReturnJsonParams -from .flow_action_flow_return_json_type import FlowActionFlowReturnJsonType - - -class FlowActionFlowReturnJson(UniversalBaseModel): - id: str - alias: typing.Optional[str] = None - type: FlowActionFlowReturnJsonType - action: FlowActionFlowReturnJsonAction - allow_failure: typing.Optional[bool] = None - mask_output: typing.Optional[bool] = None - params: FlowActionFlowReturnJsonParams - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_flow_return_json_action.py b/src/auth0/management/types/flow_action_flow_return_json_action.py deleted file mode 100644 index 06a593ea..00000000 --- a/src/auth0/management/types/flow_action_flow_return_json_action.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionFlowReturnJsonAction = typing.Union[typing.Literal["RETURN_JSON"], typing.Any] diff --git a/src/auth0/management/types/flow_action_flow_return_json_params.py b/src/auth0/management/types/flow_action_flow_return_json_params.py deleted file mode 100644 index 895f0652..00000000 --- a/src/auth0/management/types/flow_action_flow_return_json_params.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_flow_return_json_params_payload import FlowActionFlowReturnJsonParamsPayload - - -class FlowActionFlowReturnJsonParams(UniversalBaseModel): - payload: FlowActionFlowReturnJsonParamsPayload - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_flow_return_json_params_payload.py b/src/auth0/management/types/flow_action_flow_return_json_params_payload.py deleted file mode 100644 index a66d9c8d..00000000 --- a/src/auth0/management/types/flow_action_flow_return_json_params_payload.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .flow_action_flow_return_json_params_payload_object import FlowActionFlowReturnJsonParamsPayloadObject - -FlowActionFlowReturnJsonParamsPayload = typing.Union[FlowActionFlowReturnJsonParamsPayloadObject, str] diff --git a/src/auth0/management/types/flow_action_flow_return_json_params_payload_object.py b/src/auth0/management/types/flow_action_flow_return_json_params_payload_object.py deleted file mode 100644 index 7b274c6a..00000000 --- a/src/auth0/management/types/flow_action_flow_return_json_params_payload_object.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionFlowReturnJsonParamsPayloadObject = typing.Dict[str, typing.Any] diff --git a/src/auth0/management/types/flow_action_flow_return_json_type.py b/src/auth0/management/types/flow_action_flow_return_json_type.py deleted file mode 100644 index 0b4a9907..00000000 --- a/src/auth0/management/types/flow_action_flow_return_json_type.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionFlowReturnJsonType = typing.Union[typing.Literal["FLOW"], typing.Any] diff --git a/src/auth0/management/types/flow_action_flow_store_vars.py b/src/auth0/management/types/flow_action_flow_store_vars.py deleted file mode 100644 index a4028ee3..00000000 --- a/src/auth0/management/types/flow_action_flow_store_vars.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_flow_store_vars_action import FlowActionFlowStoreVarsAction -from .flow_action_flow_store_vars_params import FlowActionFlowStoreVarsParams -from .flow_action_flow_store_vars_type import FlowActionFlowStoreVarsType - - -class FlowActionFlowStoreVars(UniversalBaseModel): - id: str - alias: typing.Optional[str] = None - type: FlowActionFlowStoreVarsType - action: FlowActionFlowStoreVarsAction - allow_failure: typing.Optional[bool] = None - mask_output: typing.Optional[bool] = None - params: FlowActionFlowStoreVarsParams - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_flow_store_vars_action.py b/src/auth0/management/types/flow_action_flow_store_vars_action.py deleted file mode 100644 index b0af4afe..00000000 --- a/src/auth0/management/types/flow_action_flow_store_vars_action.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionFlowStoreVarsAction = typing.Union[typing.Literal["STORE_VARS"], typing.Any] diff --git a/src/auth0/management/types/flow_action_flow_store_vars_params.py b/src/auth0/management/types/flow_action_flow_store_vars_params.py deleted file mode 100644 index d405ccf9..00000000 --- a/src/auth0/management/types/flow_action_flow_store_vars_params.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_flow_store_vars_params_vars import FlowActionFlowStoreVarsParamsVars - - -class FlowActionFlowStoreVarsParams(UniversalBaseModel): - vars: FlowActionFlowStoreVarsParamsVars - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_flow_store_vars_params_vars.py b/src/auth0/management/types/flow_action_flow_store_vars_params_vars.py deleted file mode 100644 index b4912acc..00000000 --- a/src/auth0/management/types/flow_action_flow_store_vars_params_vars.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionFlowStoreVarsParamsVars = typing.Dict[str, typing.Any] diff --git a/src/auth0/management/types/flow_action_flow_store_vars_type.py b/src/auth0/management/types/flow_action_flow_store_vars_type.py deleted file mode 100644 index d8084cd7..00000000 --- a/src/auth0/management/types/flow_action_flow_store_vars_type.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionFlowStoreVarsType = typing.Union[typing.Literal["FLOW"], typing.Any] diff --git a/src/auth0/management/types/flow_action_google_sheets.py b/src/auth0/management/types/flow_action_google_sheets.py deleted file mode 100644 index d958c31c..00000000 --- a/src/auth0/management/types/flow_action_google_sheets.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from .flow_action_google_sheets_add_row import FlowActionGoogleSheetsAddRow - -FlowActionGoogleSheets = FlowActionGoogleSheetsAddRow diff --git a/src/auth0/management/types/flow_action_google_sheets_add_row.py b/src/auth0/management/types/flow_action_google_sheets_add_row.py deleted file mode 100644 index ce31bdee..00000000 --- a/src/auth0/management/types/flow_action_google_sheets_add_row.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_google_sheets_add_row_action import FlowActionGoogleSheetsAddRowAction -from .flow_action_google_sheets_add_row_params import FlowActionGoogleSheetsAddRowParams -from .flow_action_google_sheets_add_row_type import FlowActionGoogleSheetsAddRowType - - -class FlowActionGoogleSheetsAddRow(UniversalBaseModel): - id: str - alias: typing.Optional[str] = None - type: FlowActionGoogleSheetsAddRowType - action: FlowActionGoogleSheetsAddRowAction - allow_failure: typing.Optional[bool] = None - mask_output: typing.Optional[bool] = None - params: FlowActionGoogleSheetsAddRowParams - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_google_sheets_add_row_action.py b/src/auth0/management/types/flow_action_google_sheets_add_row_action.py deleted file mode 100644 index cb9e0f99..00000000 --- a/src/auth0/management/types/flow_action_google_sheets_add_row_action.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionGoogleSheetsAddRowAction = typing.Union[typing.Literal["ADD_ROW"], typing.Any] diff --git a/src/auth0/management/types/flow_action_google_sheets_add_row_params.py b/src/auth0/management/types/flow_action_google_sheets_add_row_params.py deleted file mode 100644 index a52048f6..00000000 --- a/src/auth0/management/types/flow_action_google_sheets_add_row_params.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_google_sheets_add_row_params_sheet_id import FlowActionGoogleSheetsAddRowParamsSheetId -from .flow_action_google_sheets_add_row_params_values import FlowActionGoogleSheetsAddRowParamsValues - - -class FlowActionGoogleSheetsAddRowParams(UniversalBaseModel): - connection_id: str - spreadsheet_id: str - sheet_id: typing.Optional[FlowActionGoogleSheetsAddRowParamsSheetId] = None - values: typing.Optional[FlowActionGoogleSheetsAddRowParamsValues] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_google_sheets_add_row_params_sheet_id.py b/src/auth0/management/types/flow_action_google_sheets_add_row_params_sheet_id.py deleted file mode 100644 index 8eefe60e..00000000 --- a/src/auth0/management/types/flow_action_google_sheets_add_row_params_sheet_id.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionGoogleSheetsAddRowParamsSheetId = typing.Union[int, str] diff --git a/src/auth0/management/types/flow_action_google_sheets_add_row_params_values.py b/src/auth0/management/types/flow_action_google_sheets_add_row_params_values.py deleted file mode 100644 index 524c4e44..00000000 --- a/src/auth0/management/types/flow_action_google_sheets_add_row_params_values.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionGoogleSheetsAddRowParamsValues = typing.List[typing.Optional[str]] diff --git a/src/auth0/management/types/flow_action_google_sheets_add_row_type.py b/src/auth0/management/types/flow_action_google_sheets_add_row_type.py deleted file mode 100644 index 749e4b57..00000000 --- a/src/auth0/management/types/flow_action_google_sheets_add_row_type.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionGoogleSheetsAddRowType = typing.Union[typing.Literal["GOOGLE_SHEETS"], typing.Any] diff --git a/src/auth0/management/types/flow_action_http.py b/src/auth0/management/types/flow_action_http.py deleted file mode 100644 index 4d84ae26..00000000 --- a/src/auth0/management/types/flow_action_http.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from .flow_action_http_send_request import FlowActionHttpSendRequest - -FlowActionHttp = FlowActionHttpSendRequest diff --git a/src/auth0/management/types/flow_action_http_send_request.py b/src/auth0/management/types/flow_action_http_send_request.py deleted file mode 100644 index 900b4284..00000000 --- a/src/auth0/management/types/flow_action_http_send_request.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_http_send_request_action import FlowActionHttpSendRequestAction -from .flow_action_http_send_request_params import FlowActionHttpSendRequestParams -from .flow_action_http_send_request_type import FlowActionHttpSendRequestType - - -class FlowActionHttpSendRequest(UniversalBaseModel): - id: str - alias: typing.Optional[str] = None - type: FlowActionHttpSendRequestType - action: FlowActionHttpSendRequestAction - allow_failure: typing.Optional[bool] = None - mask_output: typing.Optional[bool] = None - params: FlowActionHttpSendRequestParams - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_http_send_request_action.py b/src/auth0/management/types/flow_action_http_send_request_action.py deleted file mode 100644 index 66292002..00000000 --- a/src/auth0/management/types/flow_action_http_send_request_action.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionHttpSendRequestAction = typing.Union[typing.Literal["SEND_REQUEST"], typing.Any] diff --git a/src/auth0/management/types/flow_action_http_send_request_params.py b/src/auth0/management/types/flow_action_http_send_request_params.py deleted file mode 100644 index d16764d5..00000000 --- a/src/auth0/management/types/flow_action_http_send_request_params.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_http_send_request_params_basic_auth import FlowActionHttpSendRequestParamsBasicAuth -from .flow_action_http_send_request_params_content_type import FlowActionHttpSendRequestParamsContentType -from .flow_action_http_send_request_params_headers import FlowActionHttpSendRequestParamsHeaders -from .flow_action_http_send_request_params_method import FlowActionHttpSendRequestParamsMethod -from .flow_action_http_send_request_params_payload import FlowActionHttpSendRequestParamsPayload -from .flow_action_http_send_request_params_query_params import FlowActionHttpSendRequestParamsQueryParams - - -class FlowActionHttpSendRequestParams(UniversalBaseModel): - connection_id: typing.Optional[str] = None - url: str - method: typing.Optional[FlowActionHttpSendRequestParamsMethod] = None - headers: typing.Optional[FlowActionHttpSendRequestParamsHeaders] = None - basic: typing.Optional[FlowActionHttpSendRequestParamsBasicAuth] = None - params: typing.Optional[FlowActionHttpSendRequestParamsQueryParams] = None - payload: typing.Optional[FlowActionHttpSendRequestParamsPayload] = None - content_type: typing.Optional[FlowActionHttpSendRequestParamsContentType] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_http_send_request_params_basic_auth.py b/src/auth0/management/types/flow_action_http_send_request_params_basic_auth.py deleted file mode 100644 index fe952576..00000000 --- a/src/auth0/management/types/flow_action_http_send_request_params_basic_auth.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class FlowActionHttpSendRequestParamsBasicAuth(UniversalBaseModel): - username: typing.Optional[str] = None - password: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_http_send_request_params_content_type.py b/src/auth0/management/types/flow_action_http_send_request_params_content_type.py deleted file mode 100644 index d7901125..00000000 --- a/src/auth0/management/types/flow_action_http_send_request_params_content_type.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionHttpSendRequestParamsContentType = typing.Union[typing.Literal["JSON", "FORM", "XML"], typing.Any] diff --git a/src/auth0/management/types/flow_action_http_send_request_params_headers.py b/src/auth0/management/types/flow_action_http_send_request_params_headers.py deleted file mode 100644 index 2363bb1d..00000000 --- a/src/auth0/management/types/flow_action_http_send_request_params_headers.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionHttpSendRequestParamsHeaders = typing.Dict[str, typing.Any] diff --git a/src/auth0/management/types/flow_action_http_send_request_params_method.py b/src/auth0/management/types/flow_action_http_send_request_params_method.py deleted file mode 100644 index 380e7e27..00000000 --- a/src/auth0/management/types/flow_action_http_send_request_params_method.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionHttpSendRequestParamsMethod = typing.Union[ - typing.Literal["GET", "POST", "PUT", "PATCH", "DELETE"], typing.Any -] diff --git a/src/auth0/management/types/flow_action_http_send_request_params_payload.py b/src/auth0/management/types/flow_action_http_send_request_params_payload.py deleted file mode 100644 index a3e8da05..00000000 --- a/src/auth0/management/types/flow_action_http_send_request_params_payload.py +++ /dev/null @@ -1,9 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .flow_action_http_send_request_params_payload_object import FlowActionHttpSendRequestParamsPayloadObject - -FlowActionHttpSendRequestParamsPayload = typing.Union[ - str, typing.List[typing.Any], FlowActionHttpSendRequestParamsPayloadObject -] diff --git a/src/auth0/management/types/flow_action_http_send_request_params_query_params.py b/src/auth0/management/types/flow_action_http_send_request_params_query_params.py deleted file mode 100644 index 9b4f4fbb..00000000 --- a/src/auth0/management/types/flow_action_http_send_request_params_query_params.py +++ /dev/null @@ -1,9 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .flow_action_http_send_request_params_query_params_value import FlowActionHttpSendRequestParamsQueryParamsValue - -FlowActionHttpSendRequestParamsQueryParams = typing.Dict[ - str, typing.Optional[FlowActionHttpSendRequestParamsQueryParamsValue] -] diff --git a/src/auth0/management/types/flow_action_http_send_request_params_query_params_value.py b/src/auth0/management/types/flow_action_http_send_request_params_query_params_value.py deleted file mode 100644 index 9e2bef12..00000000 --- a/src/auth0/management/types/flow_action_http_send_request_params_query_params_value.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionHttpSendRequestParamsQueryParamsValue = typing.Union[float, str] diff --git a/src/auth0/management/types/flow_action_http_send_request_type.py b/src/auth0/management/types/flow_action_http_send_request_type.py deleted file mode 100644 index f376cc2c..00000000 --- a/src/auth0/management/types/flow_action_http_send_request_type.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionHttpSendRequestType = typing.Union[typing.Literal["HTTP"], typing.Any] diff --git a/src/auth0/management/types/flow_action_hubspot.py b/src/auth0/management/types/flow_action_hubspot.py deleted file mode 100644 index 6b05484b..00000000 --- a/src/auth0/management/types/flow_action_hubspot.py +++ /dev/null @@ -1,11 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .flow_action_hubspot_enroll_contact import FlowActionHubspotEnrollContact -from .flow_action_hubspot_get_contact import FlowActionHubspotGetContact -from .flow_action_hubspot_upsert_contact import FlowActionHubspotUpsertContact - -FlowActionHubspot = typing.Union[ - FlowActionHubspotEnrollContact, FlowActionHubspotGetContact, FlowActionHubspotUpsertContact -] diff --git a/src/auth0/management/types/flow_action_hubspot_enroll_contact.py b/src/auth0/management/types/flow_action_hubspot_enroll_contact.py deleted file mode 100644 index 63eb6209..00000000 --- a/src/auth0/management/types/flow_action_hubspot_enroll_contact.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_hubspot_enroll_contact_action import FlowActionHubspotEnrollContactAction -from .flow_action_hubspot_enroll_contact_params import FlowActionHubspotEnrollContactParams -from .flow_action_hubspot_enroll_contact_type import FlowActionHubspotEnrollContactType - - -class FlowActionHubspotEnrollContact(UniversalBaseModel): - id: str - alias: typing.Optional[str] = None - type: FlowActionHubspotEnrollContactType - action: FlowActionHubspotEnrollContactAction - allow_failure: typing.Optional[bool] = None - mask_output: typing.Optional[bool] = None - params: FlowActionHubspotEnrollContactParams - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_hubspot_enroll_contact_action.py b/src/auth0/management/types/flow_action_hubspot_enroll_contact_action.py deleted file mode 100644 index 966d23e1..00000000 --- a/src/auth0/management/types/flow_action_hubspot_enroll_contact_action.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionHubspotEnrollContactAction = typing.Union[typing.Literal["ENROLL_CONTACT"], typing.Any] diff --git a/src/auth0/management/types/flow_action_hubspot_enroll_contact_params.py b/src/auth0/management/types/flow_action_hubspot_enroll_contact_params.py deleted file mode 100644 index cbe7fe8d..00000000 --- a/src/auth0/management/types/flow_action_hubspot_enroll_contact_params.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_hubspot_enroll_contact_params_workflow_id import FlowActionHubspotEnrollContactParamsWorkflowId - - -class FlowActionHubspotEnrollContactParams(UniversalBaseModel): - connection_id: str - email: str - workflow_id: FlowActionHubspotEnrollContactParamsWorkflowId - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_hubspot_enroll_contact_params_workflow_id.py b/src/auth0/management/types/flow_action_hubspot_enroll_contact_params_workflow_id.py deleted file mode 100644 index 1693f5b8..00000000 --- a/src/auth0/management/types/flow_action_hubspot_enroll_contact_params_workflow_id.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionHubspotEnrollContactParamsWorkflowId = typing.Union[str, int] diff --git a/src/auth0/management/types/flow_action_hubspot_enroll_contact_type.py b/src/auth0/management/types/flow_action_hubspot_enroll_contact_type.py deleted file mode 100644 index 8811cbc3..00000000 --- a/src/auth0/management/types/flow_action_hubspot_enroll_contact_type.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionHubspotEnrollContactType = typing.Union[typing.Literal["HUBSPOT"], typing.Any] diff --git a/src/auth0/management/types/flow_action_hubspot_get_contact.py b/src/auth0/management/types/flow_action_hubspot_get_contact.py deleted file mode 100644 index c58da565..00000000 --- a/src/auth0/management/types/flow_action_hubspot_get_contact.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_hubspot_get_contact_action import FlowActionHubspotGetContactAction -from .flow_action_hubspot_get_contact_params import FlowActionHubspotGetContactParams -from .flow_action_hubspot_get_contact_type import FlowActionHubspotGetContactType - - -class FlowActionHubspotGetContact(UniversalBaseModel): - id: str - alias: typing.Optional[str] = None - type: FlowActionHubspotGetContactType - action: FlowActionHubspotGetContactAction - allow_failure: typing.Optional[bool] = None - mask_output: typing.Optional[bool] = None - params: FlowActionHubspotGetContactParams - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_hubspot_get_contact_action.py b/src/auth0/management/types/flow_action_hubspot_get_contact_action.py deleted file mode 100644 index ecceec25..00000000 --- a/src/auth0/management/types/flow_action_hubspot_get_contact_action.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionHubspotGetContactAction = typing.Union[typing.Literal["GET_CONTACT"], typing.Any] diff --git a/src/auth0/management/types/flow_action_hubspot_get_contact_params.py b/src/auth0/management/types/flow_action_hubspot_get_contact_params.py deleted file mode 100644 index 9f3ba426..00000000 --- a/src/auth0/management/types/flow_action_hubspot_get_contact_params.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class FlowActionHubspotGetContactParams(UniversalBaseModel): - connection_id: str - email: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_hubspot_get_contact_type.py b/src/auth0/management/types/flow_action_hubspot_get_contact_type.py deleted file mode 100644 index 3d34d396..00000000 --- a/src/auth0/management/types/flow_action_hubspot_get_contact_type.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionHubspotGetContactType = typing.Union[typing.Literal["HUBSPOT"], typing.Any] diff --git a/src/auth0/management/types/flow_action_hubspot_upsert_contact.py b/src/auth0/management/types/flow_action_hubspot_upsert_contact.py deleted file mode 100644 index f91459ee..00000000 --- a/src/auth0/management/types/flow_action_hubspot_upsert_contact.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_hubspot_upsert_contact_action import FlowActionHubspotUpsertContactAction -from .flow_action_hubspot_upsert_contact_params import FlowActionHubspotUpsertContactParams -from .flow_action_hubspot_upsert_contact_type import FlowActionHubspotUpsertContactType - - -class FlowActionHubspotUpsertContact(UniversalBaseModel): - id: str - alias: typing.Optional[str] = None - type: FlowActionHubspotUpsertContactType - action: FlowActionHubspotUpsertContactAction - allow_failure: typing.Optional[bool] = None - mask_output: typing.Optional[bool] = None - params: FlowActionHubspotUpsertContactParams - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_hubspot_upsert_contact_action.py b/src/auth0/management/types/flow_action_hubspot_upsert_contact_action.py deleted file mode 100644 index a3b83654..00000000 --- a/src/auth0/management/types/flow_action_hubspot_upsert_contact_action.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionHubspotUpsertContactAction = typing.Union[typing.Literal["UPSERT_CONTACT"], typing.Any] diff --git a/src/auth0/management/types/flow_action_hubspot_upsert_contact_params.py b/src/auth0/management/types/flow_action_hubspot_upsert_contact_params.py deleted file mode 100644 index c9380bad..00000000 --- a/src/auth0/management/types/flow_action_hubspot_upsert_contact_params.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_hubspot_upsert_contact_params_property import FlowActionHubspotUpsertContactParamsProperty - - -class FlowActionHubspotUpsertContactParams(UniversalBaseModel): - connection_id: str - email: str - properties: typing.Optional[typing.List[FlowActionHubspotUpsertContactParamsProperty]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_hubspot_upsert_contact_params_property.py b/src/auth0/management/types/flow_action_hubspot_upsert_contact_params_property.py deleted file mode 100644 index c30fb41b..00000000 --- a/src/auth0/management/types/flow_action_hubspot_upsert_contact_params_property.py +++ /dev/null @@ -1,19 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class FlowActionHubspotUpsertContactParamsProperty(UniversalBaseModel): - property: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_hubspot_upsert_contact_type.py b/src/auth0/management/types/flow_action_hubspot_upsert_contact_type.py deleted file mode 100644 index 1a1aeceb..00000000 --- a/src/auth0/management/types/flow_action_hubspot_upsert_contact_type.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionHubspotUpsertContactType = typing.Union[typing.Literal["HUBSPOT"], typing.Any] diff --git a/src/auth0/management/types/flow_action_json.py b/src/auth0/management/types/flow_action_json.py deleted file mode 100644 index 01ce22dc..00000000 --- a/src/auth0/management/types/flow_action_json.py +++ /dev/null @@ -1,9 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .flow_action_json_create_json import FlowActionJsonCreateJson -from .flow_action_json_parse_json import FlowActionJsonParseJson -from .flow_action_json_serialize_json import FlowActionJsonSerializeJson - -FlowActionJson = typing.Union[FlowActionJsonCreateJson, FlowActionJsonParseJson, FlowActionJsonSerializeJson] diff --git a/src/auth0/management/types/flow_action_json_create_json.py b/src/auth0/management/types/flow_action_json_create_json.py deleted file mode 100644 index 2e60cd23..00000000 --- a/src/auth0/management/types/flow_action_json_create_json.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_json_create_json_action import FlowActionJsonCreateJsonAction -from .flow_action_json_create_json_params import FlowActionJsonCreateJsonParams -from .flow_action_json_create_json_type import FlowActionJsonCreateJsonType - - -class FlowActionJsonCreateJson(UniversalBaseModel): - id: str - alias: typing.Optional[str] = None - type: FlowActionJsonCreateJsonType - action: FlowActionJsonCreateJsonAction - allow_failure: typing.Optional[bool] = None - mask_output: typing.Optional[bool] = None - params: FlowActionJsonCreateJsonParams - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_json_create_json_action.py b/src/auth0/management/types/flow_action_json_create_json_action.py deleted file mode 100644 index d0bfb61c..00000000 --- a/src/auth0/management/types/flow_action_json_create_json_action.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionJsonCreateJsonAction = typing.Union[typing.Literal["CREATE_JSON"], typing.Any] diff --git a/src/auth0/management/types/flow_action_json_create_json_params.py b/src/auth0/management/types/flow_action_json_create_json_params.py deleted file mode 100644 index 4c483928..00000000 --- a/src/auth0/management/types/flow_action_json_create_json_params.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_json_create_json_params_object import FlowActionJsonCreateJsonParamsObject - - -class FlowActionJsonCreateJsonParams(UniversalBaseModel): - object: FlowActionJsonCreateJsonParamsObject - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_json_create_json_params_object.py b/src/auth0/management/types/flow_action_json_create_json_params_object.py deleted file mode 100644 index 2256a54b..00000000 --- a/src/auth0/management/types/flow_action_json_create_json_params_object.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionJsonCreateJsonParamsObject = typing.Dict[str, typing.Any] diff --git a/src/auth0/management/types/flow_action_json_create_json_type.py b/src/auth0/management/types/flow_action_json_create_json_type.py deleted file mode 100644 index d1a56091..00000000 --- a/src/auth0/management/types/flow_action_json_create_json_type.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionJsonCreateJsonType = typing.Union[typing.Literal["JSON"], typing.Any] diff --git a/src/auth0/management/types/flow_action_json_parse_json.py b/src/auth0/management/types/flow_action_json_parse_json.py deleted file mode 100644 index 9f1719bb..00000000 --- a/src/auth0/management/types/flow_action_json_parse_json.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_json_parse_json_action import FlowActionJsonParseJsonAction -from .flow_action_json_parse_json_params import FlowActionJsonParseJsonParams -from .flow_action_json_parse_json_type import FlowActionJsonParseJsonType - - -class FlowActionJsonParseJson(UniversalBaseModel): - id: str - alias: typing.Optional[str] = None - type: FlowActionJsonParseJsonType - action: FlowActionJsonParseJsonAction - allow_failure: typing.Optional[bool] = None - mask_output: typing.Optional[bool] = None - params: FlowActionJsonParseJsonParams - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_json_parse_json_action.py b/src/auth0/management/types/flow_action_json_parse_json_action.py deleted file mode 100644 index aded9dd7..00000000 --- a/src/auth0/management/types/flow_action_json_parse_json_action.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionJsonParseJsonAction = typing.Union[typing.Literal["PARSE_JSON"], typing.Any] diff --git a/src/auth0/management/types/flow_action_json_parse_json_params.py b/src/auth0/management/types/flow_action_json_parse_json_params.py deleted file mode 100644 index fc3c889d..00000000 --- a/src/auth0/management/types/flow_action_json_parse_json_params.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata - - -class FlowActionJsonParseJsonParams(UniversalBaseModel): - json_: typing_extensions.Annotated[str, FieldMetadata(alias="json"), pydantic.Field(alias="json")] - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_json_parse_json_type.py b/src/auth0/management/types/flow_action_json_parse_json_type.py deleted file mode 100644 index 765c7fe3..00000000 --- a/src/auth0/management/types/flow_action_json_parse_json_type.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionJsonParseJsonType = typing.Union[typing.Literal["JSON"], typing.Any] diff --git a/src/auth0/management/types/flow_action_json_serialize_json.py b/src/auth0/management/types/flow_action_json_serialize_json.py deleted file mode 100644 index 90ca7e0f..00000000 --- a/src/auth0/management/types/flow_action_json_serialize_json.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_json_serialize_json_action import FlowActionJsonSerializeJsonAction -from .flow_action_json_serialize_json_params import FlowActionJsonSerializeJsonParams -from .flow_action_json_serialize_json_type import FlowActionJsonSerializeJsonType - - -class FlowActionJsonSerializeJson(UniversalBaseModel): - id: str - alias: typing.Optional[str] = None - type: FlowActionJsonSerializeJsonType - action: FlowActionJsonSerializeJsonAction - allow_failure: typing.Optional[bool] = None - mask_output: typing.Optional[bool] = None - params: FlowActionJsonSerializeJsonParams - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_json_serialize_json_action.py b/src/auth0/management/types/flow_action_json_serialize_json_action.py deleted file mode 100644 index 1eae14ed..00000000 --- a/src/auth0/management/types/flow_action_json_serialize_json_action.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionJsonSerializeJsonAction = typing.Union[typing.Literal["SERIALIZE_JSON"], typing.Any] diff --git a/src/auth0/management/types/flow_action_json_serialize_json_params.py b/src/auth0/management/types/flow_action_json_serialize_json_params.py deleted file mode 100644 index 65ca83b8..00000000 --- a/src/auth0/management/types/flow_action_json_serialize_json_params.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_json_serialize_json_params_object import FlowActionJsonSerializeJsonParamsObject - - -class FlowActionJsonSerializeJsonParams(UniversalBaseModel): - object: FlowActionJsonSerializeJsonParamsObject - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_json_serialize_json_params_object.py b/src/auth0/management/types/flow_action_json_serialize_json_params_object.py deleted file mode 100644 index 473ca198..00000000 --- a/src/auth0/management/types/flow_action_json_serialize_json_params_object.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .flow_action_json_serialize_json_params_object_object import FlowActionJsonSerializeJsonParamsObjectObject - -FlowActionJsonSerializeJsonParamsObject = typing.Union[str, FlowActionJsonSerializeJsonParamsObjectObject] diff --git a/src/auth0/management/types/flow_action_json_serialize_json_params_object_object.py b/src/auth0/management/types/flow_action_json_serialize_json_params_object_object.py deleted file mode 100644 index a73cbb6a..00000000 --- a/src/auth0/management/types/flow_action_json_serialize_json_params_object_object.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionJsonSerializeJsonParamsObjectObject = typing.Dict[str, typing.Any] diff --git a/src/auth0/management/types/flow_action_json_serialize_json_type.py b/src/auth0/management/types/flow_action_json_serialize_json_type.py deleted file mode 100644 index 4f54378a..00000000 --- a/src/auth0/management/types/flow_action_json_serialize_json_type.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionJsonSerializeJsonType = typing.Union[typing.Literal["JSON"], typing.Any] diff --git a/src/auth0/management/types/flow_action_jwt.py b/src/auth0/management/types/flow_action_jwt.py deleted file mode 100644 index 818710c2..00000000 --- a/src/auth0/management/types/flow_action_jwt.py +++ /dev/null @@ -1,9 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .flow_action_jwt_decode_jwt import FlowActionJwtDecodeJwt -from .flow_action_jwt_sign_jwt import FlowActionJwtSignJwt -from .flow_action_jwt_verify_jwt import FlowActionJwtVerifyJwt - -FlowActionJwt = typing.Union[FlowActionJwtDecodeJwt, FlowActionJwtSignJwt, FlowActionJwtVerifyJwt] diff --git a/src/auth0/management/types/flow_action_jwt_decode_jwt.py b/src/auth0/management/types/flow_action_jwt_decode_jwt.py deleted file mode 100644 index aed203e6..00000000 --- a/src/auth0/management/types/flow_action_jwt_decode_jwt.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_jwt_decode_jwt_action import FlowActionJwtDecodeJwtAction -from .flow_action_jwt_decode_jwt_params import FlowActionJwtDecodeJwtParams -from .flow_action_jwt_decode_jwt_type import FlowActionJwtDecodeJwtType - - -class FlowActionJwtDecodeJwt(UniversalBaseModel): - id: str - alias: typing.Optional[str] = None - type: FlowActionJwtDecodeJwtType - action: FlowActionJwtDecodeJwtAction - allow_failure: typing.Optional[bool] = None - mask_output: typing.Optional[bool] = None - params: FlowActionJwtDecodeJwtParams - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_jwt_decode_jwt_action.py b/src/auth0/management/types/flow_action_jwt_decode_jwt_action.py deleted file mode 100644 index 0f1cfae8..00000000 --- a/src/auth0/management/types/flow_action_jwt_decode_jwt_action.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionJwtDecodeJwtAction = typing.Union[typing.Literal["DECODE_JWT"], typing.Any] diff --git a/src/auth0/management/types/flow_action_jwt_decode_jwt_params.py b/src/auth0/management/types/flow_action_jwt_decode_jwt_params.py deleted file mode 100644 index 0dc9381c..00000000 --- a/src/auth0/management/types/flow_action_jwt_decode_jwt_params.py +++ /dev/null @@ -1,19 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class FlowActionJwtDecodeJwtParams(UniversalBaseModel): - token: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_jwt_decode_jwt_type.py b/src/auth0/management/types/flow_action_jwt_decode_jwt_type.py deleted file mode 100644 index 3ef08297..00000000 --- a/src/auth0/management/types/flow_action_jwt_decode_jwt_type.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionJwtDecodeJwtType = typing.Union[typing.Literal["JWT"], typing.Any] diff --git a/src/auth0/management/types/flow_action_jwt_sign_jwt.py b/src/auth0/management/types/flow_action_jwt_sign_jwt.py deleted file mode 100644 index eb545f4b..00000000 --- a/src/auth0/management/types/flow_action_jwt_sign_jwt.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_jwt_sign_jwt_action import FlowActionJwtSignJwtAction -from .flow_action_jwt_sign_jwt_params import FlowActionJwtSignJwtParams -from .flow_action_jwt_sign_jwt_type import FlowActionJwtSignJwtType - - -class FlowActionJwtSignJwt(UniversalBaseModel): - id: str - alias: typing.Optional[str] = None - type: FlowActionJwtSignJwtType - action: FlowActionJwtSignJwtAction - allow_failure: typing.Optional[bool] = None - mask_output: typing.Optional[bool] = None - params: FlowActionJwtSignJwtParams - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_jwt_sign_jwt_action.py b/src/auth0/management/types/flow_action_jwt_sign_jwt_action.py deleted file mode 100644 index 1461e610..00000000 --- a/src/auth0/management/types/flow_action_jwt_sign_jwt_action.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionJwtSignJwtAction = typing.Union[typing.Literal["SIGN_JWT"], typing.Any] diff --git a/src/auth0/management/types/flow_action_jwt_sign_jwt_params.py b/src/auth0/management/types/flow_action_jwt_sign_jwt_params.py deleted file mode 100644 index 97bcb067..00000000 --- a/src/auth0/management/types/flow_action_jwt_sign_jwt_params.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_jwt_sign_jwt_params_payload import FlowActionJwtSignJwtParamsPayload - - -class FlowActionJwtSignJwtParams(UniversalBaseModel): - connection_id: str - payload: typing.Optional[FlowActionJwtSignJwtParamsPayload] = None - subject: typing.Optional[str] = None - issuer: typing.Optional[str] = None - audience: typing.Optional[str] = None - expires_in: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_jwt_sign_jwt_params_payload.py b/src/auth0/management/types/flow_action_jwt_sign_jwt_params_payload.py deleted file mode 100644 index a05cafa9..00000000 --- a/src/auth0/management/types/flow_action_jwt_sign_jwt_params_payload.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionJwtSignJwtParamsPayload = typing.Dict[str, typing.Any] diff --git a/src/auth0/management/types/flow_action_jwt_sign_jwt_type.py b/src/auth0/management/types/flow_action_jwt_sign_jwt_type.py deleted file mode 100644 index 55fddecd..00000000 --- a/src/auth0/management/types/flow_action_jwt_sign_jwt_type.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionJwtSignJwtType = typing.Union[typing.Literal["JWT"], typing.Any] diff --git a/src/auth0/management/types/flow_action_jwt_verify_jwt.py b/src/auth0/management/types/flow_action_jwt_verify_jwt.py deleted file mode 100644 index f022889f..00000000 --- a/src/auth0/management/types/flow_action_jwt_verify_jwt.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_jwt_verify_jwt_action import FlowActionJwtVerifyJwtAction -from .flow_action_jwt_verify_jwt_params import FlowActionJwtVerifyJwtParams -from .flow_action_jwt_verify_jwt_type import FlowActionJwtVerifyJwtType - - -class FlowActionJwtVerifyJwt(UniversalBaseModel): - id: str - alias: typing.Optional[str] = None - type: FlowActionJwtVerifyJwtType - action: FlowActionJwtVerifyJwtAction - allow_failure: typing.Optional[bool] = None - mask_output: typing.Optional[bool] = None - params: FlowActionJwtVerifyJwtParams - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_jwt_verify_jwt_action.py b/src/auth0/management/types/flow_action_jwt_verify_jwt_action.py deleted file mode 100644 index bda1cc46..00000000 --- a/src/auth0/management/types/flow_action_jwt_verify_jwt_action.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionJwtVerifyJwtAction = typing.Union[typing.Literal["VERIFY_JWT"], typing.Any] diff --git a/src/auth0/management/types/flow_action_jwt_verify_jwt_params.py b/src/auth0/management/types/flow_action_jwt_verify_jwt_params.py deleted file mode 100644 index 65517f6d..00000000 --- a/src/auth0/management/types/flow_action_jwt_verify_jwt_params.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class FlowActionJwtVerifyJwtParams(UniversalBaseModel): - connection_id: str - token: str - audience: typing.Optional[str] = None - issuer: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_jwt_verify_jwt_type.py b/src/auth0/management/types/flow_action_jwt_verify_jwt_type.py deleted file mode 100644 index 8d79d8aa..00000000 --- a/src/auth0/management/types/flow_action_jwt_verify_jwt_type.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionJwtVerifyJwtType = typing.Union[typing.Literal["JWT"], typing.Any] diff --git a/src/auth0/management/types/flow_action_mailchimp.py b/src/auth0/management/types/flow_action_mailchimp.py deleted file mode 100644 index 15138995..00000000 --- a/src/auth0/management/types/flow_action_mailchimp.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from .flow_action_mailchimp_upsert_member import FlowActionMailchimpUpsertMember - -FlowActionMailchimp = FlowActionMailchimpUpsertMember diff --git a/src/auth0/management/types/flow_action_mailchimp_upsert_member.py b/src/auth0/management/types/flow_action_mailchimp_upsert_member.py deleted file mode 100644 index 6886f5da..00000000 --- a/src/auth0/management/types/flow_action_mailchimp_upsert_member.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_mailchimp_upsert_member_action import FlowActionMailchimpUpsertMemberAction -from .flow_action_mailchimp_upsert_member_params import FlowActionMailchimpUpsertMemberParams -from .flow_action_mailchimp_upsert_member_type import FlowActionMailchimpUpsertMemberType - - -class FlowActionMailchimpUpsertMember(UniversalBaseModel): - id: str - alias: typing.Optional[str] = None - type: FlowActionMailchimpUpsertMemberType - action: FlowActionMailchimpUpsertMemberAction - allow_failure: typing.Optional[bool] = None - mask_output: typing.Optional[bool] = None - params: FlowActionMailchimpUpsertMemberParams - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_mailchimp_upsert_member_action.py b/src/auth0/management/types/flow_action_mailchimp_upsert_member_action.py deleted file mode 100644 index 8e9f37d1..00000000 --- a/src/auth0/management/types/flow_action_mailchimp_upsert_member_action.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionMailchimpUpsertMemberAction = typing.Union[typing.Literal["UPSERT_MEMBER"], typing.Any] diff --git a/src/auth0/management/types/flow_action_mailchimp_upsert_member_params.py b/src/auth0/management/types/flow_action_mailchimp_upsert_member_params.py deleted file mode 100644 index f1595295..00000000 --- a/src/auth0/management/types/flow_action_mailchimp_upsert_member_params.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_mailchimp_upsert_member_params_member import FlowActionMailchimpUpsertMemberParamsMember - - -class FlowActionMailchimpUpsertMemberParams(UniversalBaseModel): - connection_id: str - list_id: str - member: FlowActionMailchimpUpsertMemberParamsMember - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_mailchimp_upsert_member_params_member.py b/src/auth0/management/types/flow_action_mailchimp_upsert_member_params_member.py deleted file mode 100644 index ea0e8736..00000000 --- a/src/auth0/management/types/flow_action_mailchimp_upsert_member_params_member.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_mailchimp_upsert_member_params_member_merge_fields import ( - FlowActionMailchimpUpsertMemberParamsMemberMergeFields, -) - - -class FlowActionMailchimpUpsertMemberParamsMember(UniversalBaseModel): - email_address: str - status_if_new: str - merge_fields: typing.Optional[FlowActionMailchimpUpsertMemberParamsMemberMergeFields] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_mailchimp_upsert_member_params_member_merge_fields.py b/src/auth0/management/types/flow_action_mailchimp_upsert_member_params_member_merge_fields.py deleted file mode 100644 index 4bbb1499..00000000 --- a/src/auth0/management/types/flow_action_mailchimp_upsert_member_params_member_merge_fields.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionMailchimpUpsertMemberParamsMemberMergeFields = typing.Dict[str, typing.Any] diff --git a/src/auth0/management/types/flow_action_mailchimp_upsert_member_type.py b/src/auth0/management/types/flow_action_mailchimp_upsert_member_type.py deleted file mode 100644 index ca4b806f..00000000 --- a/src/auth0/management/types/flow_action_mailchimp_upsert_member_type.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionMailchimpUpsertMemberType = typing.Union[typing.Literal["MAILCHIMP"], typing.Any] diff --git a/src/auth0/management/types/flow_action_mailjet.py b/src/auth0/management/types/flow_action_mailjet.py deleted file mode 100644 index 7edb9d7c..00000000 --- a/src/auth0/management/types/flow_action_mailjet.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from .flow_action_mailjet_send_email import FlowActionMailjetSendEmail - -FlowActionMailjet = FlowActionMailjetSendEmail diff --git a/src/auth0/management/types/flow_action_mailjet_send_email.py b/src/auth0/management/types/flow_action_mailjet_send_email.py deleted file mode 100644 index c6f9280d..00000000 --- a/src/auth0/management/types/flow_action_mailjet_send_email.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_mailjet_send_email_action import FlowActionMailjetSendEmailAction -from .flow_action_mailjet_send_email_params import FlowActionMailjetSendEmailParams -from .flow_action_mailjet_send_email_type import FlowActionMailjetSendEmailType - - -class FlowActionMailjetSendEmail(UniversalBaseModel): - id: str - alias: typing.Optional[str] = None - type: FlowActionMailjetSendEmailType - action: FlowActionMailjetSendEmailAction - allow_failure: typing.Optional[bool] = None - mask_output: typing.Optional[bool] = None - params: FlowActionMailjetSendEmailParams - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_mailjet_send_email_action.py b/src/auth0/management/types/flow_action_mailjet_send_email_action.py deleted file mode 100644 index 1066f8db..00000000 --- a/src/auth0/management/types/flow_action_mailjet_send_email_action.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionMailjetSendEmailAction = typing.Union[typing.Literal["SEND_EMAIL"], typing.Any] diff --git a/src/auth0/management/types/flow_action_mailjet_send_email_params.py b/src/auth0/management/types/flow_action_mailjet_send_email_params.py deleted file mode 100644 index f28b6d02..00000000 --- a/src/auth0/management/types/flow_action_mailjet_send_email_params.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .flow_action_mailjet_send_email_params_content import FlowActionMailjetSendEmailParamsContent -from .flow_action_mailjet_send_email_params_template_id import FlowActionMailjetSendEmailParamsTemplateId - -FlowActionMailjetSendEmailParams = typing.Union[ - FlowActionMailjetSendEmailParamsContent, FlowActionMailjetSendEmailParamsTemplateId -] diff --git a/src/auth0/management/types/flow_action_mailjet_send_email_params_content.py b/src/auth0/management/types/flow_action_mailjet_send_email_params_content.py deleted file mode 100644 index a935e2ae..00000000 --- a/src/auth0/management/types/flow_action_mailjet_send_email_params_content.py +++ /dev/null @@ -1,19 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class FlowActionMailjetSendEmailParamsContent(UniversalBaseModel): - content: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_mailjet_send_email_params_template_id.py b/src/auth0/management/types/flow_action_mailjet_send_email_params_template_id.py deleted file mode 100644 index 43a4e1ae..00000000 --- a/src/auth0/management/types/flow_action_mailjet_send_email_params_template_id.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class FlowActionMailjetSendEmailParamsTemplateId(UniversalBaseModel): - template_id: int - variables: typing.Optional[typing.Dict[str, typing.Any]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_mailjet_send_email_type.py b/src/auth0/management/types/flow_action_mailjet_send_email_type.py deleted file mode 100644 index ee7042c3..00000000 --- a/src/auth0/management/types/flow_action_mailjet_send_email_type.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionMailjetSendEmailType = typing.Union[typing.Literal["MAILJET"], typing.Any] diff --git a/src/auth0/management/types/flow_action_otp.py b/src/auth0/management/types/flow_action_otp.py deleted file mode 100644 index fe899eb9..00000000 --- a/src/auth0/management/types/flow_action_otp.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .flow_action_otp_generate_code import FlowActionOtpGenerateCode -from .flow_action_otp_verify_code import FlowActionOtpVerifyCode - -FlowActionOtp = typing.Union[FlowActionOtpGenerateCode, FlowActionOtpVerifyCode] diff --git a/src/auth0/management/types/flow_action_otp_generate_code.py b/src/auth0/management/types/flow_action_otp_generate_code.py deleted file mode 100644 index d7d339ed..00000000 --- a/src/auth0/management/types/flow_action_otp_generate_code.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_otp_generate_code_action import FlowActionOtpGenerateCodeAction -from .flow_action_otp_generate_code_params import FlowActionOtpGenerateCodeParams -from .flow_action_otp_generate_code_type import FlowActionOtpGenerateCodeType - - -class FlowActionOtpGenerateCode(UniversalBaseModel): - id: str - alias: typing.Optional[str] = None - type: FlowActionOtpGenerateCodeType - action: FlowActionOtpGenerateCodeAction - allow_failure: typing.Optional[bool] = None - mask_output: typing.Optional[bool] = None - params: FlowActionOtpGenerateCodeParams - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_otp_generate_code_action.py b/src/auth0/management/types/flow_action_otp_generate_code_action.py deleted file mode 100644 index 9ae300f2..00000000 --- a/src/auth0/management/types/flow_action_otp_generate_code_action.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionOtpGenerateCodeAction = typing.Union[typing.Literal["GENERATE_CODE"], typing.Any] diff --git a/src/auth0/management/types/flow_action_otp_generate_code_params.py b/src/auth0/management/types/flow_action_otp_generate_code_params.py deleted file mode 100644 index d91aef65..00000000 --- a/src/auth0/management/types/flow_action_otp_generate_code_params.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class FlowActionOtpGenerateCodeParams(UniversalBaseModel): - reference: str - length: int - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_otp_generate_code_type.py b/src/auth0/management/types/flow_action_otp_generate_code_type.py deleted file mode 100644 index 689187b2..00000000 --- a/src/auth0/management/types/flow_action_otp_generate_code_type.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionOtpGenerateCodeType = typing.Union[typing.Literal["OTP"], typing.Any] diff --git a/src/auth0/management/types/flow_action_otp_verify_code.py b/src/auth0/management/types/flow_action_otp_verify_code.py deleted file mode 100644 index b04d47b4..00000000 --- a/src/auth0/management/types/flow_action_otp_verify_code.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_otp_verify_code_action import FlowActionOtpVerifyCodeAction -from .flow_action_otp_verify_code_params import FlowActionOtpVerifyCodeParams -from .flow_action_otp_verify_code_type import FlowActionOtpVerifyCodeType - - -class FlowActionOtpVerifyCode(UniversalBaseModel): - id: str - alias: typing.Optional[str] = None - type: FlowActionOtpVerifyCodeType - action: FlowActionOtpVerifyCodeAction - allow_failure: typing.Optional[bool] = None - mask_output: typing.Optional[bool] = None - params: FlowActionOtpVerifyCodeParams - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_otp_verify_code_action.py b/src/auth0/management/types/flow_action_otp_verify_code_action.py deleted file mode 100644 index 4331b0fe..00000000 --- a/src/auth0/management/types/flow_action_otp_verify_code_action.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionOtpVerifyCodeAction = typing.Union[typing.Literal["VERIFY_CODE"], typing.Any] diff --git a/src/auth0/management/types/flow_action_otp_verify_code_params.py b/src/auth0/management/types/flow_action_otp_verify_code_params.py deleted file mode 100644 index 8d516326..00000000 --- a/src/auth0/management/types/flow_action_otp_verify_code_params.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_otp_verify_code_params_code import FlowActionOtpVerifyCodeParamsCode - - -class FlowActionOtpVerifyCodeParams(UniversalBaseModel): - reference: str - code: FlowActionOtpVerifyCodeParamsCode - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_otp_verify_code_params_code.py b/src/auth0/management/types/flow_action_otp_verify_code_params_code.py deleted file mode 100644 index 8b95299f..00000000 --- a/src/auth0/management/types/flow_action_otp_verify_code_params_code.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionOtpVerifyCodeParamsCode = typing.Union[int, str] diff --git a/src/auth0/management/types/flow_action_otp_verify_code_type.py b/src/auth0/management/types/flow_action_otp_verify_code_type.py deleted file mode 100644 index fce7a227..00000000 --- a/src/auth0/management/types/flow_action_otp_verify_code_type.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionOtpVerifyCodeType = typing.Union[typing.Literal["OTP"], typing.Any] diff --git a/src/auth0/management/types/flow_action_pipedrive.py b/src/auth0/management/types/flow_action_pipedrive.py deleted file mode 100644 index 57a4fe41..00000000 --- a/src/auth0/management/types/flow_action_pipedrive.py +++ /dev/null @@ -1,11 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .flow_action_pipedrive_add_deal import FlowActionPipedriveAddDeal -from .flow_action_pipedrive_add_organization import FlowActionPipedriveAddOrganization -from .flow_action_pipedrive_add_person import FlowActionPipedriveAddPerson - -FlowActionPipedrive = typing.Union[ - FlowActionPipedriveAddDeal, FlowActionPipedriveAddOrganization, FlowActionPipedriveAddPerson -] diff --git a/src/auth0/management/types/flow_action_pipedrive_add_deal.py b/src/auth0/management/types/flow_action_pipedrive_add_deal.py deleted file mode 100644 index 1576c764..00000000 --- a/src/auth0/management/types/flow_action_pipedrive_add_deal.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_pipedrive_add_deal_action import FlowActionPipedriveAddDealAction -from .flow_action_pipedrive_add_deal_params import FlowActionPipedriveAddDealParams -from .flow_action_pipedrive_add_deal_type import FlowActionPipedriveAddDealType - - -class FlowActionPipedriveAddDeal(UniversalBaseModel): - id: str - alias: typing.Optional[str] = None - type: FlowActionPipedriveAddDealType - action: FlowActionPipedriveAddDealAction - allow_failure: typing.Optional[bool] = None - mask_output: typing.Optional[bool] = None - params: FlowActionPipedriveAddDealParams - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_pipedrive_add_deal_action.py b/src/auth0/management/types/flow_action_pipedrive_add_deal_action.py deleted file mode 100644 index 0ec215c4..00000000 --- a/src/auth0/management/types/flow_action_pipedrive_add_deal_action.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionPipedriveAddDealAction = typing.Union[typing.Literal["ADD_DEAL"], typing.Any] diff --git a/src/auth0/management/types/flow_action_pipedrive_add_deal_params.py b/src/auth0/management/types/flow_action_pipedrive_add_deal_params.py deleted file mode 100644 index 903c9267..00000000 --- a/src/auth0/management/types/flow_action_pipedrive_add_deal_params.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_pipedrive_add_deal_params_fields import FlowActionPipedriveAddDealParamsFields -from .flow_action_pipedrive_add_deal_params_organization_id import FlowActionPipedriveAddDealParamsOrganizationId -from .flow_action_pipedrive_add_deal_params_person_id import FlowActionPipedriveAddDealParamsPersonId -from .flow_action_pipedrive_add_deal_params_stage_id import FlowActionPipedriveAddDealParamsStageId -from .flow_action_pipedrive_add_deal_params_user_id import FlowActionPipedriveAddDealParamsUserId - - -class FlowActionPipedriveAddDealParams(UniversalBaseModel): - connection_id: str - title: str - value: typing.Optional[str] = None - user_id: typing.Optional[FlowActionPipedriveAddDealParamsUserId] = None - person_id: typing.Optional[FlowActionPipedriveAddDealParamsPersonId] = None - organization_id: typing.Optional[FlowActionPipedriveAddDealParamsOrganizationId] = None - stage_id: typing.Optional[FlowActionPipedriveAddDealParamsStageId] = None - fields: typing.Optional[FlowActionPipedriveAddDealParamsFields] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_pipedrive_add_deal_params_fields.py b/src/auth0/management/types/flow_action_pipedrive_add_deal_params_fields.py deleted file mode 100644 index 425381f0..00000000 --- a/src/auth0/management/types/flow_action_pipedrive_add_deal_params_fields.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionPipedriveAddDealParamsFields = typing.Dict[str, typing.Any] diff --git a/src/auth0/management/types/flow_action_pipedrive_add_deal_params_organization_id.py b/src/auth0/management/types/flow_action_pipedrive_add_deal_params_organization_id.py deleted file mode 100644 index 0cab9354..00000000 --- a/src/auth0/management/types/flow_action_pipedrive_add_deal_params_organization_id.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionPipedriveAddDealParamsOrganizationId = typing.Union[str, float] diff --git a/src/auth0/management/types/flow_action_pipedrive_add_deal_params_person_id.py b/src/auth0/management/types/flow_action_pipedrive_add_deal_params_person_id.py deleted file mode 100644 index 3fb603dd..00000000 --- a/src/auth0/management/types/flow_action_pipedrive_add_deal_params_person_id.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionPipedriveAddDealParamsPersonId = typing.Union[str, float] diff --git a/src/auth0/management/types/flow_action_pipedrive_add_deal_params_stage_id.py b/src/auth0/management/types/flow_action_pipedrive_add_deal_params_stage_id.py deleted file mode 100644 index 3412010c..00000000 --- a/src/auth0/management/types/flow_action_pipedrive_add_deal_params_stage_id.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionPipedriveAddDealParamsStageId = typing.Union[str, float] diff --git a/src/auth0/management/types/flow_action_pipedrive_add_deal_params_user_id.py b/src/auth0/management/types/flow_action_pipedrive_add_deal_params_user_id.py deleted file mode 100644 index 5f19888f..00000000 --- a/src/auth0/management/types/flow_action_pipedrive_add_deal_params_user_id.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionPipedriveAddDealParamsUserId = typing.Union[str, float] diff --git a/src/auth0/management/types/flow_action_pipedrive_add_deal_type.py b/src/auth0/management/types/flow_action_pipedrive_add_deal_type.py deleted file mode 100644 index 2629a5b9..00000000 --- a/src/auth0/management/types/flow_action_pipedrive_add_deal_type.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionPipedriveAddDealType = typing.Union[typing.Literal["PIPEDRIVE"], typing.Any] diff --git a/src/auth0/management/types/flow_action_pipedrive_add_organization.py b/src/auth0/management/types/flow_action_pipedrive_add_organization.py deleted file mode 100644 index 05a32590..00000000 --- a/src/auth0/management/types/flow_action_pipedrive_add_organization.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_pipedrive_add_organization_action import FlowActionPipedriveAddOrganizationAction -from .flow_action_pipedrive_add_organization_params import FlowActionPipedriveAddOrganizationParams -from .flow_action_pipedrive_add_organization_type import FlowActionPipedriveAddOrganizationType - - -class FlowActionPipedriveAddOrganization(UniversalBaseModel): - id: str - alias: typing.Optional[str] = None - type: FlowActionPipedriveAddOrganizationType - action: FlowActionPipedriveAddOrganizationAction - allow_failure: typing.Optional[bool] = None - mask_output: typing.Optional[bool] = None - params: FlowActionPipedriveAddOrganizationParams - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_pipedrive_add_organization_action.py b/src/auth0/management/types/flow_action_pipedrive_add_organization_action.py deleted file mode 100644 index 0a69d92d..00000000 --- a/src/auth0/management/types/flow_action_pipedrive_add_organization_action.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionPipedriveAddOrganizationAction = typing.Union[typing.Literal["ADD_ORGANIZATION"], typing.Any] diff --git a/src/auth0/management/types/flow_action_pipedrive_add_organization_params.py b/src/auth0/management/types/flow_action_pipedrive_add_organization_params.py deleted file mode 100644 index ed0dfdb5..00000000 --- a/src/auth0/management/types/flow_action_pipedrive_add_organization_params.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_pipedrive_add_organization_params_fields import FlowActionPipedriveAddOrganizationParamsFields -from .flow_action_pipedrive_add_organization_params_owner_id import FlowActionPipedriveAddOrganizationParamsOwnerId - - -class FlowActionPipedriveAddOrganizationParams(UniversalBaseModel): - connection_id: str - name: str - owner_id: typing.Optional[FlowActionPipedriveAddOrganizationParamsOwnerId] = None - fields: typing.Optional[FlowActionPipedriveAddOrganizationParamsFields] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_pipedrive_add_organization_params_fields.py b/src/auth0/management/types/flow_action_pipedrive_add_organization_params_fields.py deleted file mode 100644 index 9ab8bc0b..00000000 --- a/src/auth0/management/types/flow_action_pipedrive_add_organization_params_fields.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionPipedriveAddOrganizationParamsFields = typing.Dict[str, typing.Any] diff --git a/src/auth0/management/types/flow_action_pipedrive_add_organization_params_owner_id.py b/src/auth0/management/types/flow_action_pipedrive_add_organization_params_owner_id.py deleted file mode 100644 index 698b4757..00000000 --- a/src/auth0/management/types/flow_action_pipedrive_add_organization_params_owner_id.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionPipedriveAddOrganizationParamsOwnerId = typing.Union[str, float] diff --git a/src/auth0/management/types/flow_action_pipedrive_add_organization_type.py b/src/auth0/management/types/flow_action_pipedrive_add_organization_type.py deleted file mode 100644 index 0809fd55..00000000 --- a/src/auth0/management/types/flow_action_pipedrive_add_organization_type.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionPipedriveAddOrganizationType = typing.Union[typing.Literal["PIPEDRIVE"], typing.Any] diff --git a/src/auth0/management/types/flow_action_pipedrive_add_person.py b/src/auth0/management/types/flow_action_pipedrive_add_person.py deleted file mode 100644 index 7cd5a1d2..00000000 --- a/src/auth0/management/types/flow_action_pipedrive_add_person.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_pipedrive_add_person_action import FlowActionPipedriveAddPersonAction -from .flow_action_pipedrive_add_person_params import FlowActionPipedriveAddPersonParams -from .flow_action_pipedrive_add_person_type import FlowActionPipedriveAddPersonType - - -class FlowActionPipedriveAddPerson(UniversalBaseModel): - id: str - alias: typing.Optional[str] = None - type: FlowActionPipedriveAddPersonType - action: FlowActionPipedriveAddPersonAction - allow_failure: typing.Optional[bool] = None - mask_output: typing.Optional[bool] = None - params: FlowActionPipedriveAddPersonParams - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_pipedrive_add_person_action.py b/src/auth0/management/types/flow_action_pipedrive_add_person_action.py deleted file mode 100644 index 5605537b..00000000 --- a/src/auth0/management/types/flow_action_pipedrive_add_person_action.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionPipedriveAddPersonAction = typing.Union[typing.Literal["ADD_PERSON"], typing.Any] diff --git a/src/auth0/management/types/flow_action_pipedrive_add_person_params.py b/src/auth0/management/types/flow_action_pipedrive_add_person_params.py deleted file mode 100644 index 23e761a7..00000000 --- a/src/auth0/management/types/flow_action_pipedrive_add_person_params.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_pipedrive_add_person_params_fields import FlowActionPipedriveAddPersonParamsFields -from .flow_action_pipedrive_add_person_params_organization_id import FlowActionPipedriveAddPersonParamsOrganizationId -from .flow_action_pipedrive_add_person_params_owner_id import FlowActionPipedriveAddPersonParamsOwnerId - - -class FlowActionPipedriveAddPersonParams(UniversalBaseModel): - connection_id: str - name: str - email: typing.Optional[str] = None - phone: typing.Optional[str] = None - owner_id: typing.Optional[FlowActionPipedriveAddPersonParamsOwnerId] = None - organization_id: typing.Optional[FlowActionPipedriveAddPersonParamsOrganizationId] = None - fields: typing.Optional[FlowActionPipedriveAddPersonParamsFields] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_pipedrive_add_person_params_fields.py b/src/auth0/management/types/flow_action_pipedrive_add_person_params_fields.py deleted file mode 100644 index 6fed663d..00000000 --- a/src/auth0/management/types/flow_action_pipedrive_add_person_params_fields.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionPipedriveAddPersonParamsFields = typing.Dict[str, typing.Any] diff --git a/src/auth0/management/types/flow_action_pipedrive_add_person_params_organization_id.py b/src/auth0/management/types/flow_action_pipedrive_add_person_params_organization_id.py deleted file mode 100644 index f07c2511..00000000 --- a/src/auth0/management/types/flow_action_pipedrive_add_person_params_organization_id.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionPipedriveAddPersonParamsOrganizationId = typing.Union[str, float] diff --git a/src/auth0/management/types/flow_action_pipedrive_add_person_params_owner_id.py b/src/auth0/management/types/flow_action_pipedrive_add_person_params_owner_id.py deleted file mode 100644 index f001cb35..00000000 --- a/src/auth0/management/types/flow_action_pipedrive_add_person_params_owner_id.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionPipedriveAddPersonParamsOwnerId = typing.Union[str, float] diff --git a/src/auth0/management/types/flow_action_pipedrive_add_person_type.py b/src/auth0/management/types/flow_action_pipedrive_add_person_type.py deleted file mode 100644 index ab06cb4c..00000000 --- a/src/auth0/management/types/flow_action_pipedrive_add_person_type.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionPipedriveAddPersonType = typing.Union[typing.Literal["PIPEDRIVE"], typing.Any] diff --git a/src/auth0/management/types/flow_action_salesforce.py b/src/auth0/management/types/flow_action_salesforce.py deleted file mode 100644 index bc011e8b..00000000 --- a/src/auth0/management/types/flow_action_salesforce.py +++ /dev/null @@ -1,15 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .flow_action_salesforce_create_lead import FlowActionSalesforceCreateLead -from .flow_action_salesforce_get_lead import FlowActionSalesforceGetLead -from .flow_action_salesforce_search_leads import FlowActionSalesforceSearchLeads -from .flow_action_salesforce_update_lead import FlowActionSalesforceUpdateLead - -FlowActionSalesforce = typing.Union[ - FlowActionSalesforceCreateLead, - FlowActionSalesforceGetLead, - FlowActionSalesforceSearchLeads, - FlowActionSalesforceUpdateLead, -] diff --git a/src/auth0/management/types/flow_action_salesforce_create_lead.py b/src/auth0/management/types/flow_action_salesforce_create_lead.py deleted file mode 100644 index a174bcd5..00000000 --- a/src/auth0/management/types/flow_action_salesforce_create_lead.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_salesforce_create_lead_action import FlowActionSalesforceCreateLeadAction -from .flow_action_salesforce_create_lead_params import FlowActionSalesforceCreateLeadParams -from .flow_action_salesforce_create_lead_type import FlowActionSalesforceCreateLeadType - - -class FlowActionSalesforceCreateLead(UniversalBaseModel): - id: str - alias: typing.Optional[str] = None - type: FlowActionSalesforceCreateLeadType - action: FlowActionSalesforceCreateLeadAction - allow_failure: typing.Optional[bool] = None - mask_output: typing.Optional[bool] = None - params: FlowActionSalesforceCreateLeadParams - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_salesforce_create_lead_action.py b/src/auth0/management/types/flow_action_salesforce_create_lead_action.py deleted file mode 100644 index 933fb2cf..00000000 --- a/src/auth0/management/types/flow_action_salesforce_create_lead_action.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionSalesforceCreateLeadAction = typing.Union[typing.Literal["CREATE_LEAD"], typing.Any] diff --git a/src/auth0/management/types/flow_action_salesforce_create_lead_params.py b/src/auth0/management/types/flow_action_salesforce_create_lead_params.py deleted file mode 100644 index 2af872d0..00000000 --- a/src/auth0/management/types/flow_action_salesforce_create_lead_params.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_salesforce_create_lead_params_payload import FlowActionSalesforceCreateLeadParamsPayload - - -class FlowActionSalesforceCreateLeadParams(UniversalBaseModel): - connection_id: str - first_name: typing.Optional[str] = None - last_name: str - company: str - email: typing.Optional[str] = None - phone: typing.Optional[str] = None - payload: typing.Optional[FlowActionSalesforceCreateLeadParamsPayload] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_salesforce_create_lead_params_payload.py b/src/auth0/management/types/flow_action_salesforce_create_lead_params_payload.py deleted file mode 100644 index 673673ac..00000000 --- a/src/auth0/management/types/flow_action_salesforce_create_lead_params_payload.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionSalesforceCreateLeadParamsPayload = typing.Dict[str, typing.Any] diff --git a/src/auth0/management/types/flow_action_salesforce_create_lead_type.py b/src/auth0/management/types/flow_action_salesforce_create_lead_type.py deleted file mode 100644 index c22c4032..00000000 --- a/src/auth0/management/types/flow_action_salesforce_create_lead_type.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionSalesforceCreateLeadType = typing.Union[typing.Literal["SALESFORCE"], typing.Any] diff --git a/src/auth0/management/types/flow_action_salesforce_get_lead.py b/src/auth0/management/types/flow_action_salesforce_get_lead.py deleted file mode 100644 index 7bac4323..00000000 --- a/src/auth0/management/types/flow_action_salesforce_get_lead.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_salesforce_get_lead_action import FlowActionSalesforceGetLeadAction -from .flow_action_salesforce_get_lead_params import FlowActionSalesforceGetLeadParams -from .flow_action_salesforce_get_lead_type import FlowActionSalesforceGetLeadType - - -class FlowActionSalesforceGetLead(UniversalBaseModel): - id: str - alias: typing.Optional[str] = None - type: FlowActionSalesforceGetLeadType - action: FlowActionSalesforceGetLeadAction - allow_failure: typing.Optional[bool] = None - mask_output: typing.Optional[bool] = None - params: FlowActionSalesforceGetLeadParams - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_salesforce_get_lead_action.py b/src/auth0/management/types/flow_action_salesforce_get_lead_action.py deleted file mode 100644 index 87fa2ec5..00000000 --- a/src/auth0/management/types/flow_action_salesforce_get_lead_action.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionSalesforceGetLeadAction = typing.Union[typing.Literal["GET_LEAD"], typing.Any] diff --git a/src/auth0/management/types/flow_action_salesforce_get_lead_params.py b/src/auth0/management/types/flow_action_salesforce_get_lead_params.py deleted file mode 100644 index 638e1f75..00000000 --- a/src/auth0/management/types/flow_action_salesforce_get_lead_params.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class FlowActionSalesforceGetLeadParams(UniversalBaseModel): - connection_id: str - lead_id: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_salesforce_get_lead_type.py b/src/auth0/management/types/flow_action_salesforce_get_lead_type.py deleted file mode 100644 index d170ca64..00000000 --- a/src/auth0/management/types/flow_action_salesforce_get_lead_type.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionSalesforceGetLeadType = typing.Union[typing.Literal["SALESFORCE"], typing.Any] diff --git a/src/auth0/management/types/flow_action_salesforce_search_leads.py b/src/auth0/management/types/flow_action_salesforce_search_leads.py deleted file mode 100644 index 38472afd..00000000 --- a/src/auth0/management/types/flow_action_salesforce_search_leads.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_salesforce_search_leads_action import FlowActionSalesforceSearchLeadsAction -from .flow_action_salesforce_search_leads_params import FlowActionSalesforceSearchLeadsParams -from .flow_action_salesforce_search_leads_type import FlowActionSalesforceSearchLeadsType - - -class FlowActionSalesforceSearchLeads(UniversalBaseModel): - id: str - alias: typing.Optional[str] = None - type: FlowActionSalesforceSearchLeadsType - action: FlowActionSalesforceSearchLeadsAction - allow_failure: typing.Optional[bool] = None - mask_output: typing.Optional[bool] = None - params: FlowActionSalesforceSearchLeadsParams - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_salesforce_search_leads_action.py b/src/auth0/management/types/flow_action_salesforce_search_leads_action.py deleted file mode 100644 index c60ed3d7..00000000 --- a/src/auth0/management/types/flow_action_salesforce_search_leads_action.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionSalesforceSearchLeadsAction = typing.Union[typing.Literal["SEARCH_LEADS"], typing.Any] diff --git a/src/auth0/management/types/flow_action_salesforce_search_leads_params.py b/src/auth0/management/types/flow_action_salesforce_search_leads_params.py deleted file mode 100644 index b73c5a92..00000000 --- a/src/auth0/management/types/flow_action_salesforce_search_leads_params.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_salesforce_search_leads_params_search_field import FlowActionSalesforceSearchLeadsParamsSearchField - - -class FlowActionSalesforceSearchLeadsParams(UniversalBaseModel): - connection_id: str - search_field: FlowActionSalesforceSearchLeadsParamsSearchField - search_value: str - lead_fields: typing.List[str] - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_salesforce_search_leads_params_search_field.py b/src/auth0/management/types/flow_action_salesforce_search_leads_params_search_field.py deleted file mode 100644 index 872cb066..00000000 --- a/src/auth0/management/types/flow_action_salesforce_search_leads_params_search_field.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionSalesforceSearchLeadsParamsSearchField = typing.Union[ - typing.Literal["email", "name", "phone", "all"], typing.Any -] diff --git a/src/auth0/management/types/flow_action_salesforce_search_leads_type.py b/src/auth0/management/types/flow_action_salesforce_search_leads_type.py deleted file mode 100644 index 2b89a6c5..00000000 --- a/src/auth0/management/types/flow_action_salesforce_search_leads_type.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionSalesforceSearchLeadsType = typing.Union[typing.Literal["SALESFORCE"], typing.Any] diff --git a/src/auth0/management/types/flow_action_salesforce_update_lead.py b/src/auth0/management/types/flow_action_salesforce_update_lead.py deleted file mode 100644 index d696b578..00000000 --- a/src/auth0/management/types/flow_action_salesforce_update_lead.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_salesforce_update_lead_action import FlowActionSalesforceUpdateLeadAction -from .flow_action_salesforce_update_lead_params import FlowActionSalesforceUpdateLeadParams -from .flow_action_salesforce_update_lead_type import FlowActionSalesforceUpdateLeadType - - -class FlowActionSalesforceUpdateLead(UniversalBaseModel): - id: str - alias: typing.Optional[str] = None - type: FlowActionSalesforceUpdateLeadType - action: FlowActionSalesforceUpdateLeadAction - allow_failure: typing.Optional[bool] = None - mask_output: typing.Optional[bool] = None - params: FlowActionSalesforceUpdateLeadParams - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_salesforce_update_lead_action.py b/src/auth0/management/types/flow_action_salesforce_update_lead_action.py deleted file mode 100644 index 82544a87..00000000 --- a/src/auth0/management/types/flow_action_salesforce_update_lead_action.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionSalesforceUpdateLeadAction = typing.Union[typing.Literal["UPDATE_LEAD"], typing.Any] diff --git a/src/auth0/management/types/flow_action_salesforce_update_lead_params.py b/src/auth0/management/types/flow_action_salesforce_update_lead_params.py deleted file mode 100644 index f1f4a967..00000000 --- a/src/auth0/management/types/flow_action_salesforce_update_lead_params.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_salesforce_update_lead_params_payload import FlowActionSalesforceUpdateLeadParamsPayload - - -class FlowActionSalesforceUpdateLeadParams(UniversalBaseModel): - connection_id: str - lead_id: str - payload: typing.Optional[FlowActionSalesforceUpdateLeadParamsPayload] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_salesforce_update_lead_params_payload.py b/src/auth0/management/types/flow_action_salesforce_update_lead_params_payload.py deleted file mode 100644 index f86a244c..00000000 --- a/src/auth0/management/types/flow_action_salesforce_update_lead_params_payload.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionSalesforceUpdateLeadParamsPayload = typing.Dict[str, typing.Any] diff --git a/src/auth0/management/types/flow_action_salesforce_update_lead_type.py b/src/auth0/management/types/flow_action_salesforce_update_lead_type.py deleted file mode 100644 index 65a602eb..00000000 --- a/src/auth0/management/types/flow_action_salesforce_update_lead_type.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionSalesforceUpdateLeadType = typing.Union[typing.Literal["SALESFORCE"], typing.Any] diff --git a/src/auth0/management/types/flow_action_sendgrid.py b/src/auth0/management/types/flow_action_sendgrid.py deleted file mode 100644 index 62678770..00000000 --- a/src/auth0/management/types/flow_action_sendgrid.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from .flow_action_sendgrid_send_email import FlowActionSendgridSendEmail - -FlowActionSendgrid = FlowActionSendgridSendEmail diff --git a/src/auth0/management/types/flow_action_sendgrid_send_email.py b/src/auth0/management/types/flow_action_sendgrid_send_email.py deleted file mode 100644 index 07bf6c69..00000000 --- a/src/auth0/management/types/flow_action_sendgrid_send_email.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_sendgrid_send_email_action import FlowActionSendgridSendEmailAction -from .flow_action_sendgrid_send_email_params import FlowActionSendgridSendEmailParams -from .flow_action_sendgrid_send_email_type import FlowActionSendgridSendEmailType - - -class FlowActionSendgridSendEmail(UniversalBaseModel): - id: str - alias: typing.Optional[str] = None - type: FlowActionSendgridSendEmailType - action: FlowActionSendgridSendEmailAction - allow_failure: typing.Optional[bool] = None - mask_output: typing.Optional[bool] = None - params: FlowActionSendgridSendEmailParams - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_sendgrid_send_email_action.py b/src/auth0/management/types/flow_action_sendgrid_send_email_action.py deleted file mode 100644 index 4dcb59e6..00000000 --- a/src/auth0/management/types/flow_action_sendgrid_send_email_action.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionSendgridSendEmailAction = typing.Union[typing.Literal["SEND_EMAIL"], typing.Any] diff --git a/src/auth0/management/types/flow_action_sendgrid_send_email_params.py b/src/auth0/management/types/flow_action_sendgrid_send_email_params.py deleted file mode 100644 index 5eb2a5c1..00000000 --- a/src/auth0/management/types/flow_action_sendgrid_send_email_params.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .flow_action_sendgrid_send_email_params_person import FlowActionSendgridSendEmailParamsPerson - - -class FlowActionSendgridSendEmailParams(UniversalBaseModel): - connection_id: str - from_: typing_extensions.Annotated[ - FlowActionSendgridSendEmailParamsPerson, FieldMetadata(alias="from"), pydantic.Field(alias="from") - ] - personalizations: typing.List[typing.Any] - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_sendgrid_send_email_params_person.py b/src/auth0/management/types/flow_action_sendgrid_send_email_params_person.py deleted file mode 100644 index bad5cb33..00000000 --- a/src/auth0/management/types/flow_action_sendgrid_send_email_params_person.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class FlowActionSendgridSendEmailParamsPerson(UniversalBaseModel): - name: typing.Optional[str] = None - email: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_sendgrid_send_email_type.py b/src/auth0/management/types/flow_action_sendgrid_send_email_type.py deleted file mode 100644 index c1be2d71..00000000 --- a/src/auth0/management/types/flow_action_sendgrid_send_email_type.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionSendgridSendEmailType = typing.Union[typing.Literal["SENDGRID"], typing.Any] diff --git a/src/auth0/management/types/flow_action_slack.py b/src/auth0/management/types/flow_action_slack.py deleted file mode 100644 index 7ac9bfb9..00000000 --- a/src/auth0/management/types/flow_action_slack.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from .flow_action_slack_post_message import FlowActionSlackPostMessage - -FlowActionSlack = FlowActionSlackPostMessage diff --git a/src/auth0/management/types/flow_action_slack_post_message.py b/src/auth0/management/types/flow_action_slack_post_message.py deleted file mode 100644 index 32a3c789..00000000 --- a/src/auth0/management/types/flow_action_slack_post_message.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_slack_post_message_action import FlowActionSlackPostMessageAction -from .flow_action_slack_post_message_params import FlowActionSlackPostMessageParams -from .flow_action_slack_post_message_type import FlowActionSlackPostMessageType - - -class FlowActionSlackPostMessage(UniversalBaseModel): - id: str - alias: typing.Optional[str] = None - type: FlowActionSlackPostMessageType - action: FlowActionSlackPostMessageAction - allow_failure: typing.Optional[bool] = None - mask_output: typing.Optional[bool] = None - params: FlowActionSlackPostMessageParams - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_slack_post_message_action.py b/src/auth0/management/types/flow_action_slack_post_message_action.py deleted file mode 100644 index c04e61c3..00000000 --- a/src/auth0/management/types/flow_action_slack_post_message_action.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionSlackPostMessageAction = typing.Union[typing.Literal["POST_MESSAGE"], typing.Any] diff --git a/src/auth0/management/types/flow_action_slack_post_message_params.py b/src/auth0/management/types/flow_action_slack_post_message_params.py deleted file mode 100644 index 66a27e2a..00000000 --- a/src/auth0/management/types/flow_action_slack_post_message_params.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_slack_post_message_params_attachment import FlowActionSlackPostMessageParamsAttachment - - -class FlowActionSlackPostMessageParams(UniversalBaseModel): - connection_id: str - text: typing.Optional[str] = None - attachments: typing.Optional[typing.List[FlowActionSlackPostMessageParamsAttachment]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_slack_post_message_params_attachment.py b/src/auth0/management/types/flow_action_slack_post_message_params_attachment.py deleted file mode 100644 index 0d8bd71a..00000000 --- a/src/auth0/management/types/flow_action_slack_post_message_params_attachment.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_slack_post_message_params_attachment_color import FlowActionSlackPostMessageParamsAttachmentColor -from .flow_action_slack_post_message_params_attachment_field import FlowActionSlackPostMessageParamsAttachmentField - - -class FlowActionSlackPostMessageParamsAttachment(UniversalBaseModel): - color: typing.Optional[FlowActionSlackPostMessageParamsAttachmentColor] = None - pretext: typing.Optional[str] = None - text: typing.Optional[str] = None - fields: typing.Optional[typing.List[FlowActionSlackPostMessageParamsAttachmentField]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_slack_post_message_params_attachment_color.py b/src/auth0/management/types/flow_action_slack_post_message_params_attachment_color.py deleted file mode 100644 index 6e9d43ff..00000000 --- a/src/auth0/management/types/flow_action_slack_post_message_params_attachment_color.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionSlackPostMessageParamsAttachmentColor = typing.Union[typing.Literal["GOOD", "WARNING", "DANGER"], typing.Any] diff --git a/src/auth0/management/types/flow_action_slack_post_message_params_attachment_field.py b/src/auth0/management/types/flow_action_slack_post_message_params_attachment_field.py deleted file mode 100644 index 3cdf846f..00000000 --- a/src/auth0/management/types/flow_action_slack_post_message_params_attachment_field.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class FlowActionSlackPostMessageParamsAttachmentField(UniversalBaseModel): - title: str - value: typing.Optional[str] = None - short: typing.Optional[bool] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_slack_post_message_type.py b/src/auth0/management/types/flow_action_slack_post_message_type.py deleted file mode 100644 index a3e8ecee..00000000 --- a/src/auth0/management/types/flow_action_slack_post_message_type.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionSlackPostMessageType = typing.Union[typing.Literal["SLACK"], typing.Any] diff --git a/src/auth0/management/types/flow_action_stripe.py b/src/auth0/management/types/flow_action_stripe.py deleted file mode 100644 index f5e81146..00000000 --- a/src/auth0/management/types/flow_action_stripe.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .flow_action_stripe_add_tax_id import FlowActionStripeAddTaxId -from .flow_action_stripe_create_customer import FlowActionStripeCreateCustomer -from .flow_action_stripe_create_portal_session import FlowActionStripeCreatePortalSession -from .flow_action_stripe_delete_tax_id import FlowActionStripeDeleteTaxId -from .flow_action_stripe_find_customers import FlowActionStripeFindCustomers -from .flow_action_stripe_get_customer import FlowActionStripeGetCustomer -from .flow_action_stripe_update_customer import FlowActionStripeUpdateCustomer - -FlowActionStripe = typing.Union[ - FlowActionStripeAddTaxId, - FlowActionStripeCreateCustomer, - FlowActionStripeCreatePortalSession, - FlowActionStripeDeleteTaxId, - FlowActionStripeFindCustomers, - FlowActionStripeGetCustomer, - FlowActionStripeUpdateCustomer, -] diff --git a/src/auth0/management/types/flow_action_stripe_add_tax_id.py b/src/auth0/management/types/flow_action_stripe_add_tax_id.py deleted file mode 100644 index fac204b4..00000000 --- a/src/auth0/management/types/flow_action_stripe_add_tax_id.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_stripe_add_tax_id_action import FlowActionStripeAddTaxIdAction -from .flow_action_stripe_add_tax_id_params import FlowActionStripeAddTaxIdParams -from .flow_action_stripe_add_tax_id_type import FlowActionStripeAddTaxIdType - - -class FlowActionStripeAddTaxId(UniversalBaseModel): - id: str - alias: typing.Optional[str] = None - type: FlowActionStripeAddTaxIdType - action: FlowActionStripeAddTaxIdAction - allow_failure: typing.Optional[bool] = None - mask_output: typing.Optional[bool] = None - params: FlowActionStripeAddTaxIdParams - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_stripe_add_tax_id_action.py b/src/auth0/management/types/flow_action_stripe_add_tax_id_action.py deleted file mode 100644 index 5767d9c5..00000000 --- a/src/auth0/management/types/flow_action_stripe_add_tax_id_action.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionStripeAddTaxIdAction = typing.Union[typing.Literal["ADD_TAX_ID"], typing.Any] diff --git a/src/auth0/management/types/flow_action_stripe_add_tax_id_params.py b/src/auth0/management/types/flow_action_stripe_add_tax_id_params.py deleted file mode 100644 index 4aaa2830..00000000 --- a/src/auth0/management/types/flow_action_stripe_add_tax_id_params.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class FlowActionStripeAddTaxIdParams(UniversalBaseModel): - connection_id: str - customer_id: str - type: str - value: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_stripe_add_tax_id_type.py b/src/auth0/management/types/flow_action_stripe_add_tax_id_type.py deleted file mode 100644 index 76a10a86..00000000 --- a/src/auth0/management/types/flow_action_stripe_add_tax_id_type.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionStripeAddTaxIdType = typing.Union[typing.Literal["STRIPE"], typing.Any] diff --git a/src/auth0/management/types/flow_action_stripe_address.py b/src/auth0/management/types/flow_action_stripe_address.py deleted file mode 100644 index c6868eda..00000000 --- a/src/auth0/management/types/flow_action_stripe_address.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata - - -class FlowActionStripeAddress(UniversalBaseModel): - line_1: typing_extensions.Annotated[ - typing.Optional[str], FieldMetadata(alias="line1"), pydantic.Field(alias="line1") - ] = None - line_2: typing_extensions.Annotated[ - typing.Optional[str], FieldMetadata(alias="line2"), pydantic.Field(alias="line2") - ] = None - postal_code: typing_extensions.Annotated[ - typing.Optional[str], FieldMetadata(alias="postalCode"), pydantic.Field(alias="postalCode") - ] = None - city: typing.Optional[str] = None - state: typing.Optional[str] = None - country: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_stripe_create_customer.py b/src/auth0/management/types/flow_action_stripe_create_customer.py deleted file mode 100644 index 9878e0a3..00000000 --- a/src/auth0/management/types/flow_action_stripe_create_customer.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_stripe_create_customer_action import FlowActionStripeCreateCustomerAction -from .flow_action_stripe_create_customer_params import FlowActionStripeCreateCustomerParams -from .flow_action_stripe_create_customer_type import FlowActionStripeCreateCustomerType - - -class FlowActionStripeCreateCustomer(UniversalBaseModel): - id: str - alias: typing.Optional[str] = None - type: FlowActionStripeCreateCustomerType - action: FlowActionStripeCreateCustomerAction - allow_failure: typing.Optional[bool] = None - mask_output: typing.Optional[bool] = None - params: FlowActionStripeCreateCustomerParams - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_stripe_create_customer_action.py b/src/auth0/management/types/flow_action_stripe_create_customer_action.py deleted file mode 100644 index eb69b1fe..00000000 --- a/src/auth0/management/types/flow_action_stripe_create_customer_action.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionStripeCreateCustomerAction = typing.Union[typing.Literal["CREATE_CUSTOMER"], typing.Any] diff --git a/src/auth0/management/types/flow_action_stripe_create_customer_params.py b/src/auth0/management/types/flow_action_stripe_create_customer_params.py deleted file mode 100644 index 5be88503..00000000 --- a/src/auth0/management/types/flow_action_stripe_create_customer_params.py +++ /dev/null @@ -1,30 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_stripe_address import FlowActionStripeAddress -from .flow_action_stripe_metadata import FlowActionStripeMetadata -from .flow_action_stripe_tax_id import FlowActionStripeTaxId - - -class FlowActionStripeCreateCustomerParams(UniversalBaseModel): - connection_id: str - tax_id: typing.Optional[FlowActionStripeTaxId] = None - name: typing.Optional[str] = None - description: typing.Optional[str] = None - email: typing.Optional[str] = None - phone: typing.Optional[str] = None - tax_exempt: typing.Optional[str] = None - address: typing.Optional[FlowActionStripeAddress] = None - metadata: typing.Optional[FlowActionStripeMetadata] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_stripe_create_customer_type.py b/src/auth0/management/types/flow_action_stripe_create_customer_type.py deleted file mode 100644 index 744e7e30..00000000 --- a/src/auth0/management/types/flow_action_stripe_create_customer_type.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionStripeCreateCustomerType = typing.Union[typing.Literal["STRIPE"], typing.Any] diff --git a/src/auth0/management/types/flow_action_stripe_create_portal_session.py b/src/auth0/management/types/flow_action_stripe_create_portal_session.py deleted file mode 100644 index ad64d189..00000000 --- a/src/auth0/management/types/flow_action_stripe_create_portal_session.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_stripe_create_portal_session_action import FlowActionStripeCreatePortalSessionAction -from .flow_action_stripe_create_portal_session_params import FlowActionStripeCreatePortalSessionParams -from .flow_action_stripe_create_portal_session_type import FlowActionStripeCreatePortalSessionType - - -class FlowActionStripeCreatePortalSession(UniversalBaseModel): - id: str - alias: typing.Optional[str] = None - type: FlowActionStripeCreatePortalSessionType - action: FlowActionStripeCreatePortalSessionAction - allow_failure: typing.Optional[bool] = None - mask_output: typing.Optional[bool] = None - params: FlowActionStripeCreatePortalSessionParams - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_stripe_create_portal_session_action.py b/src/auth0/management/types/flow_action_stripe_create_portal_session_action.py deleted file mode 100644 index 6cb46602..00000000 --- a/src/auth0/management/types/flow_action_stripe_create_portal_session_action.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionStripeCreatePortalSessionAction = typing.Union[typing.Literal["CREATE_PORTAL_SESSION"], typing.Any] diff --git a/src/auth0/management/types/flow_action_stripe_create_portal_session_params.py b/src/auth0/management/types/flow_action_stripe_create_portal_session_params.py deleted file mode 100644 index 488ebdb3..00000000 --- a/src/auth0/management/types/flow_action_stripe_create_portal_session_params.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class FlowActionStripeCreatePortalSessionParams(UniversalBaseModel): - connection_id: str - customer_id: str - return_url: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_stripe_create_portal_session_type.py b/src/auth0/management/types/flow_action_stripe_create_portal_session_type.py deleted file mode 100644 index d2682de2..00000000 --- a/src/auth0/management/types/flow_action_stripe_create_portal_session_type.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionStripeCreatePortalSessionType = typing.Union[typing.Literal["STRIPE"], typing.Any] diff --git a/src/auth0/management/types/flow_action_stripe_delete_tax_id.py b/src/auth0/management/types/flow_action_stripe_delete_tax_id.py deleted file mode 100644 index ba0ab16f..00000000 --- a/src/auth0/management/types/flow_action_stripe_delete_tax_id.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_stripe_delete_tax_id_action import FlowActionStripeDeleteTaxIdAction -from .flow_action_stripe_delete_tax_id_params import FlowActionStripeDeleteTaxIdParams -from .flow_action_stripe_delete_tax_id_type import FlowActionStripeDeleteTaxIdType - - -class FlowActionStripeDeleteTaxId(UniversalBaseModel): - id: str - alias: typing.Optional[str] = None - type: FlowActionStripeDeleteTaxIdType - action: FlowActionStripeDeleteTaxIdAction - allow_failure: typing.Optional[bool] = None - mask_output: typing.Optional[bool] = None - params: FlowActionStripeDeleteTaxIdParams - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_stripe_delete_tax_id_action.py b/src/auth0/management/types/flow_action_stripe_delete_tax_id_action.py deleted file mode 100644 index a8c570be..00000000 --- a/src/auth0/management/types/flow_action_stripe_delete_tax_id_action.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionStripeDeleteTaxIdAction = typing.Union[typing.Literal["DELETE_TAX_ID"], typing.Any] diff --git a/src/auth0/management/types/flow_action_stripe_delete_tax_id_params.py b/src/auth0/management/types/flow_action_stripe_delete_tax_id_params.py deleted file mode 100644 index b40fb4cf..00000000 --- a/src/auth0/management/types/flow_action_stripe_delete_tax_id_params.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class FlowActionStripeDeleteTaxIdParams(UniversalBaseModel): - connection_id: str - customer_id: str - id: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_stripe_delete_tax_id_type.py b/src/auth0/management/types/flow_action_stripe_delete_tax_id_type.py deleted file mode 100644 index 468a934d..00000000 --- a/src/auth0/management/types/flow_action_stripe_delete_tax_id_type.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionStripeDeleteTaxIdType = typing.Union[typing.Literal["STRIPE"], typing.Any] diff --git a/src/auth0/management/types/flow_action_stripe_find_customers.py b/src/auth0/management/types/flow_action_stripe_find_customers.py deleted file mode 100644 index de4a16fe..00000000 --- a/src/auth0/management/types/flow_action_stripe_find_customers.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_stripe_find_customers_action import FlowActionStripeFindCustomersAction -from .flow_action_stripe_find_customers_params import FlowActionStripeFindCustomersParams -from .flow_action_stripe_find_customers_type import FlowActionStripeFindCustomersType - - -class FlowActionStripeFindCustomers(UniversalBaseModel): - id: str - alias: typing.Optional[str] = None - type: FlowActionStripeFindCustomersType - action: FlowActionStripeFindCustomersAction - allow_failure: typing.Optional[bool] = None - mask_output: typing.Optional[bool] = None - params: FlowActionStripeFindCustomersParams - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_stripe_find_customers_action.py b/src/auth0/management/types/flow_action_stripe_find_customers_action.py deleted file mode 100644 index dc62cdc0..00000000 --- a/src/auth0/management/types/flow_action_stripe_find_customers_action.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionStripeFindCustomersAction = typing.Union[typing.Literal["FIND_CUSTOMERS"], typing.Any] diff --git a/src/auth0/management/types/flow_action_stripe_find_customers_params.py b/src/auth0/management/types/flow_action_stripe_find_customers_params.py deleted file mode 100644 index 16712015..00000000 --- a/src/auth0/management/types/flow_action_stripe_find_customers_params.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class FlowActionStripeFindCustomersParams(UniversalBaseModel): - connection_id: str - email: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_stripe_find_customers_type.py b/src/auth0/management/types/flow_action_stripe_find_customers_type.py deleted file mode 100644 index dec543c7..00000000 --- a/src/auth0/management/types/flow_action_stripe_find_customers_type.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionStripeFindCustomersType = typing.Union[typing.Literal["STRIPE"], typing.Any] diff --git a/src/auth0/management/types/flow_action_stripe_get_customer.py b/src/auth0/management/types/flow_action_stripe_get_customer.py deleted file mode 100644 index 58430fad..00000000 --- a/src/auth0/management/types/flow_action_stripe_get_customer.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_stripe_get_customer_action import FlowActionStripeGetCustomerAction -from .flow_action_stripe_get_customer_params import FlowActionStripeGetCustomerParams -from .flow_action_stripe_get_customer_type import FlowActionStripeGetCustomerType - - -class FlowActionStripeGetCustomer(UniversalBaseModel): - id: str - alias: typing.Optional[str] = None - type: FlowActionStripeGetCustomerType - action: FlowActionStripeGetCustomerAction - allow_failure: typing.Optional[bool] = None - mask_output: typing.Optional[bool] = None - params: FlowActionStripeGetCustomerParams - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_stripe_get_customer_action.py b/src/auth0/management/types/flow_action_stripe_get_customer_action.py deleted file mode 100644 index 1af68fd0..00000000 --- a/src/auth0/management/types/flow_action_stripe_get_customer_action.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionStripeGetCustomerAction = typing.Union[typing.Literal["GET_CUSTOMER"], typing.Any] diff --git a/src/auth0/management/types/flow_action_stripe_get_customer_params.py b/src/auth0/management/types/flow_action_stripe_get_customer_params.py deleted file mode 100644 index 862696bd..00000000 --- a/src/auth0/management/types/flow_action_stripe_get_customer_params.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class FlowActionStripeGetCustomerParams(UniversalBaseModel): - connection_id: str - id: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_stripe_get_customer_type.py b/src/auth0/management/types/flow_action_stripe_get_customer_type.py deleted file mode 100644 index aa897a75..00000000 --- a/src/auth0/management/types/flow_action_stripe_get_customer_type.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionStripeGetCustomerType = typing.Union[typing.Literal["STRIPE"], typing.Any] diff --git a/src/auth0/management/types/flow_action_stripe_metadata.py b/src/auth0/management/types/flow_action_stripe_metadata.py deleted file mode 100644 index cfd3d6c6..00000000 --- a/src/auth0/management/types/flow_action_stripe_metadata.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionStripeMetadata = typing.Dict[str, str] diff --git a/src/auth0/management/types/flow_action_stripe_tax_id.py b/src/auth0/management/types/flow_action_stripe_tax_id.py deleted file mode 100644 index 320ecf7a..00000000 --- a/src/auth0/management/types/flow_action_stripe_tax_id.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class FlowActionStripeTaxId(UniversalBaseModel): - type: str - value: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_stripe_update_customer.py b/src/auth0/management/types/flow_action_stripe_update_customer.py deleted file mode 100644 index c368cca9..00000000 --- a/src/auth0/management/types/flow_action_stripe_update_customer.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_stripe_update_customer_action import FlowActionStripeUpdateCustomerAction -from .flow_action_stripe_update_customer_params import FlowActionStripeUpdateCustomerParams -from .flow_action_stripe_update_customer_type import FlowActionStripeUpdateCustomerType - - -class FlowActionStripeUpdateCustomer(UniversalBaseModel): - id: str - alias: typing.Optional[str] = None - type: FlowActionStripeUpdateCustomerType - action: FlowActionStripeUpdateCustomerAction - allow_failure: typing.Optional[bool] = None - mask_output: typing.Optional[bool] = None - params: FlowActionStripeUpdateCustomerParams - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_stripe_update_customer_action.py b/src/auth0/management/types/flow_action_stripe_update_customer_action.py deleted file mode 100644 index ab78cc75..00000000 --- a/src/auth0/management/types/flow_action_stripe_update_customer_action.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionStripeUpdateCustomerAction = typing.Union[typing.Literal["UPDATE_CUSTOMER"], typing.Any] diff --git a/src/auth0/management/types/flow_action_stripe_update_customer_params.py b/src/auth0/management/types/flow_action_stripe_update_customer_params.py deleted file mode 100644 index 159ef3b7..00000000 --- a/src/auth0/management/types/flow_action_stripe_update_customer_params.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_stripe_address import FlowActionStripeAddress -from .flow_action_stripe_metadata import FlowActionStripeMetadata - - -class FlowActionStripeUpdateCustomerParams(UniversalBaseModel): - connection_id: str - id: str - name: typing.Optional[str] = None - description: typing.Optional[str] = None - email: typing.Optional[str] = None - phone: typing.Optional[str] = None - tax_exempt: typing.Optional[str] = None - address: typing.Optional[FlowActionStripeAddress] = None - metadata: typing.Optional[FlowActionStripeMetadata] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_stripe_update_customer_type.py b/src/auth0/management/types/flow_action_stripe_update_customer_type.py deleted file mode 100644 index f6d637bd..00000000 --- a/src/auth0/management/types/flow_action_stripe_update_customer_type.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionStripeUpdateCustomerType = typing.Union[typing.Literal["STRIPE"], typing.Any] diff --git a/src/auth0/management/types/flow_action_telegram.py b/src/auth0/management/types/flow_action_telegram.py deleted file mode 100644 index e83d459d..00000000 --- a/src/auth0/management/types/flow_action_telegram.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from .flow_action_telegram_send_message import FlowActionTelegramSendMessage - -FlowActionTelegram = FlowActionTelegramSendMessage diff --git a/src/auth0/management/types/flow_action_telegram_send_message.py b/src/auth0/management/types/flow_action_telegram_send_message.py deleted file mode 100644 index 9e85d33c..00000000 --- a/src/auth0/management/types/flow_action_telegram_send_message.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_telegram_send_message_action import FlowActionTelegramSendMessageAction -from .flow_action_telegram_send_message_params import FlowActionTelegramSendMessageParams -from .flow_action_telegram_send_message_type import FlowActionTelegramSendMessageType - - -class FlowActionTelegramSendMessage(UniversalBaseModel): - id: str - alias: typing.Optional[str] = None - type: FlowActionTelegramSendMessageType - action: FlowActionTelegramSendMessageAction - allow_failure: typing.Optional[bool] = None - mask_output: typing.Optional[bool] = None - params: FlowActionTelegramSendMessageParams - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_telegram_send_message_action.py b/src/auth0/management/types/flow_action_telegram_send_message_action.py deleted file mode 100644 index 6e0d38ed..00000000 --- a/src/auth0/management/types/flow_action_telegram_send_message_action.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionTelegramSendMessageAction = typing.Union[typing.Literal["SEND_MESSAGE"], typing.Any] diff --git a/src/auth0/management/types/flow_action_telegram_send_message_params.py b/src/auth0/management/types/flow_action_telegram_send_message_params.py deleted file mode 100644 index 5791d300..00000000 --- a/src/auth0/management/types/flow_action_telegram_send_message_params.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class FlowActionTelegramSendMessageParams(UniversalBaseModel): - connection_id: str - chat_id: str - text: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_telegram_send_message_type.py b/src/auth0/management/types/flow_action_telegram_send_message_type.py deleted file mode 100644 index 79e5d4c4..00000000 --- a/src/auth0/management/types/flow_action_telegram_send_message_type.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionTelegramSendMessageType = typing.Union[typing.Literal["TELEGRAM"], typing.Any] diff --git a/src/auth0/management/types/flow_action_twilio.py b/src/auth0/management/types/flow_action_twilio.py deleted file mode 100644 index bd60346e..00000000 --- a/src/auth0/management/types/flow_action_twilio.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .flow_action_twilio_make_call import FlowActionTwilioMakeCall -from .flow_action_twilio_send_sms import FlowActionTwilioSendSms - -FlowActionTwilio = typing.Union[FlowActionTwilioMakeCall, FlowActionTwilioSendSms] diff --git a/src/auth0/management/types/flow_action_twilio_make_call.py b/src/auth0/management/types/flow_action_twilio_make_call.py deleted file mode 100644 index 37da58ee..00000000 --- a/src/auth0/management/types/flow_action_twilio_make_call.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_twilio_make_call_action import FlowActionTwilioMakeCallAction -from .flow_action_twilio_make_call_params import FlowActionTwilioMakeCallParams -from .flow_action_twilio_make_call_type import FlowActionTwilioMakeCallType - - -class FlowActionTwilioMakeCall(UniversalBaseModel): - id: str - alias: typing.Optional[str] = None - type: FlowActionTwilioMakeCallType - action: FlowActionTwilioMakeCallAction - allow_failure: typing.Optional[bool] = None - mask_output: typing.Optional[bool] = None - params: FlowActionTwilioMakeCallParams - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_twilio_make_call_action.py b/src/auth0/management/types/flow_action_twilio_make_call_action.py deleted file mode 100644 index 26da85fe..00000000 --- a/src/auth0/management/types/flow_action_twilio_make_call_action.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionTwilioMakeCallAction = typing.Union[typing.Literal["MAKE_CALL"], typing.Any] diff --git a/src/auth0/management/types/flow_action_twilio_make_call_params.py b/src/auth0/management/types/flow_action_twilio_make_call_params.py deleted file mode 100644 index 747b356f..00000000 --- a/src/auth0/management/types/flow_action_twilio_make_call_params.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata - - -class FlowActionTwilioMakeCallParams(UniversalBaseModel): - connection_id: str - from_: typing_extensions.Annotated[str, FieldMetadata(alias="from"), pydantic.Field(alias="from")] - to: str - payload: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_twilio_make_call_type.py b/src/auth0/management/types/flow_action_twilio_make_call_type.py deleted file mode 100644 index 5ebc28f2..00000000 --- a/src/auth0/management/types/flow_action_twilio_make_call_type.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionTwilioMakeCallType = typing.Union[typing.Literal["TWILIO"], typing.Any] diff --git a/src/auth0/management/types/flow_action_twilio_send_sms.py b/src/auth0/management/types/flow_action_twilio_send_sms.py deleted file mode 100644 index d8b350bf..00000000 --- a/src/auth0/management/types/flow_action_twilio_send_sms.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_twilio_send_sms_action import FlowActionTwilioSendSmsAction -from .flow_action_twilio_send_sms_params import FlowActionTwilioSendSmsParams -from .flow_action_twilio_send_sms_type import FlowActionTwilioSendSmsType - - -class FlowActionTwilioSendSms(UniversalBaseModel): - id: str - alias: typing.Optional[str] = None - type: FlowActionTwilioSendSmsType - action: FlowActionTwilioSendSmsAction - allow_failure: typing.Optional[bool] = None - mask_output: typing.Optional[bool] = None - params: FlowActionTwilioSendSmsParams - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_twilio_send_sms_action.py b/src/auth0/management/types/flow_action_twilio_send_sms_action.py deleted file mode 100644 index 1b9e5a0a..00000000 --- a/src/auth0/management/types/flow_action_twilio_send_sms_action.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionTwilioSendSmsAction = typing.Union[typing.Literal["SEND_SMS"], typing.Any] diff --git a/src/auth0/management/types/flow_action_twilio_send_sms_params.py b/src/auth0/management/types/flow_action_twilio_send_sms_params.py deleted file mode 100644 index 0797320b..00000000 --- a/src/auth0/management/types/flow_action_twilio_send_sms_params.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata - - -class FlowActionTwilioSendSmsParams(UniversalBaseModel): - connection_id: str - from_: typing_extensions.Annotated[str, FieldMetadata(alias="from"), pydantic.Field(alias="from")] - to: str - message: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_twilio_send_sms_type.py b/src/auth0/management/types/flow_action_twilio_send_sms_type.py deleted file mode 100644 index d50714bb..00000000 --- a/src/auth0/management/types/flow_action_twilio_send_sms_type.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionTwilioSendSmsType = typing.Union[typing.Literal["TWILIO"], typing.Any] diff --git a/src/auth0/management/types/flow_action_whatsapp.py b/src/auth0/management/types/flow_action_whatsapp.py deleted file mode 100644 index 23cc8fce..00000000 --- a/src/auth0/management/types/flow_action_whatsapp.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from .flow_action_whatsapp_send_message import FlowActionWhatsappSendMessage - -FlowActionWhatsapp = FlowActionWhatsappSendMessage diff --git a/src/auth0/management/types/flow_action_whatsapp_send_message.py b/src/auth0/management/types/flow_action_whatsapp_send_message.py deleted file mode 100644 index a614bf4f..00000000 --- a/src/auth0/management/types/flow_action_whatsapp_send_message.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_whatsapp_send_message_action import FlowActionWhatsappSendMessageAction -from .flow_action_whatsapp_send_message_params import FlowActionWhatsappSendMessageParams -from .flow_action_whatsapp_send_message_type import FlowActionWhatsappSendMessageType - - -class FlowActionWhatsappSendMessage(UniversalBaseModel): - id: str - alias: typing.Optional[str] = None - type: FlowActionWhatsappSendMessageType - action: FlowActionWhatsappSendMessageAction - allow_failure: typing.Optional[bool] = None - mask_output: typing.Optional[bool] = None - params: FlowActionWhatsappSendMessageParams - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_whatsapp_send_message_action.py b/src/auth0/management/types/flow_action_whatsapp_send_message_action.py deleted file mode 100644 index f0d33153..00000000 --- a/src/auth0/management/types/flow_action_whatsapp_send_message_action.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionWhatsappSendMessageAction = typing.Union[typing.Literal["SEND_MESSAGE"], typing.Any] diff --git a/src/auth0/management/types/flow_action_whatsapp_send_message_params.py b/src/auth0/management/types/flow_action_whatsapp_send_message_params.py deleted file mode 100644 index fd82753e..00000000 --- a/src/auth0/management/types/flow_action_whatsapp_send_message_params.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_whatsapp_send_message_params_payload import FlowActionWhatsappSendMessageParamsPayload -from .flow_action_whatsapp_send_message_params_type import FlowActionWhatsappSendMessageParamsType - - -class FlowActionWhatsappSendMessageParams(UniversalBaseModel): - connection_id: str - sender_id: str - recipient_number: str - type: FlowActionWhatsappSendMessageParamsType - payload: FlowActionWhatsappSendMessageParamsPayload - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_whatsapp_send_message_params_payload.py b/src/auth0/management/types/flow_action_whatsapp_send_message_params_payload.py deleted file mode 100644 index 2f9c669f..00000000 --- a/src/auth0/management/types/flow_action_whatsapp_send_message_params_payload.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .flow_action_whatsapp_send_message_params_payload_object import FlowActionWhatsappSendMessageParamsPayloadObject - -FlowActionWhatsappSendMessageParamsPayload = typing.Union[FlowActionWhatsappSendMessageParamsPayloadObject, str] diff --git a/src/auth0/management/types/flow_action_whatsapp_send_message_params_payload_object.py b/src/auth0/management/types/flow_action_whatsapp_send_message_params_payload_object.py deleted file mode 100644 index ab677252..00000000 --- a/src/auth0/management/types/flow_action_whatsapp_send_message_params_payload_object.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionWhatsappSendMessageParamsPayloadObject = typing.Dict[str, typing.Any] diff --git a/src/auth0/management/types/flow_action_whatsapp_send_message_params_type.py b/src/auth0/management/types/flow_action_whatsapp_send_message_params_type.py deleted file mode 100644 index 14cea946..00000000 --- a/src/auth0/management/types/flow_action_whatsapp_send_message_params_type.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionWhatsappSendMessageParamsType = typing.Union[ - typing.Literal["AUDIO", "CONTACTS", "DOCUMENT", "IMAGE", "INTERACTIVE", "LOCATION", "STICKER", "TEMPLATE", "TEXT"], - typing.Any, -] diff --git a/src/auth0/management/types/flow_action_whatsapp_send_message_type.py b/src/auth0/management/types/flow_action_whatsapp_send_message_type.py deleted file mode 100644 index f6b7aeb4..00000000 --- a/src/auth0/management/types/flow_action_whatsapp_send_message_type.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionWhatsappSendMessageType = typing.Union[typing.Literal["WHATSAPP"], typing.Any] diff --git a/src/auth0/management/types/flow_action_xml.py b/src/auth0/management/types/flow_action_xml.py deleted file mode 100644 index b5d6890c..00000000 --- a/src/auth0/management/types/flow_action_xml.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .flow_action_xml_parse_xml import FlowActionXmlParseXml -from .flow_action_xml_serialize_xml import FlowActionXmlSerializeXml - -FlowActionXml = typing.Union[FlowActionXmlParseXml, FlowActionXmlSerializeXml] diff --git a/src/auth0/management/types/flow_action_xml_parse_xml.py b/src/auth0/management/types/flow_action_xml_parse_xml.py deleted file mode 100644 index 0f7ee179..00000000 --- a/src/auth0/management/types/flow_action_xml_parse_xml.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_xml_parse_xml_action import FlowActionXmlParseXmlAction -from .flow_action_xml_parse_xml_params import FlowActionXmlParseXmlParams -from .flow_action_xml_parse_xml_type import FlowActionXmlParseXmlType - - -class FlowActionXmlParseXml(UniversalBaseModel): - id: str - alias: typing.Optional[str] = None - type: FlowActionXmlParseXmlType - action: FlowActionXmlParseXmlAction - allow_failure: typing.Optional[bool] = None - mask_output: typing.Optional[bool] = None - params: FlowActionXmlParseXmlParams - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_xml_parse_xml_action.py b/src/auth0/management/types/flow_action_xml_parse_xml_action.py deleted file mode 100644 index ea4b1179..00000000 --- a/src/auth0/management/types/flow_action_xml_parse_xml_action.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionXmlParseXmlAction = typing.Union[typing.Literal["PARSE_XML"], typing.Any] diff --git a/src/auth0/management/types/flow_action_xml_parse_xml_params.py b/src/auth0/management/types/flow_action_xml_parse_xml_params.py deleted file mode 100644 index 9521b743..00000000 --- a/src/auth0/management/types/flow_action_xml_parse_xml_params.py +++ /dev/null @@ -1,19 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class FlowActionXmlParseXmlParams(UniversalBaseModel): - xml: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_xml_parse_xml_type.py b/src/auth0/management/types/flow_action_xml_parse_xml_type.py deleted file mode 100644 index 51085846..00000000 --- a/src/auth0/management/types/flow_action_xml_parse_xml_type.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionXmlParseXmlType = typing.Union[typing.Literal["XML"], typing.Any] diff --git a/src/auth0/management/types/flow_action_xml_serialize_xml.py b/src/auth0/management/types/flow_action_xml_serialize_xml.py deleted file mode 100644 index 1d2ce08d..00000000 --- a/src/auth0/management/types/flow_action_xml_serialize_xml.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_xml_serialize_xml_action import FlowActionXmlSerializeXmlAction -from .flow_action_xml_serialize_xml_params import FlowActionXmlSerializeXmlParams -from .flow_action_xml_serialize_xml_type import FlowActionXmlSerializeXmlType - - -class FlowActionXmlSerializeXml(UniversalBaseModel): - id: str - alias: typing.Optional[str] = None - type: FlowActionXmlSerializeXmlType - action: FlowActionXmlSerializeXmlAction - allow_failure: typing.Optional[bool] = None - mask_output: typing.Optional[bool] = None - params: FlowActionXmlSerializeXmlParams - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_xml_serialize_xml_action.py b/src/auth0/management/types/flow_action_xml_serialize_xml_action.py deleted file mode 100644 index b8b91509..00000000 --- a/src/auth0/management/types/flow_action_xml_serialize_xml_action.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionXmlSerializeXmlAction = typing.Union[typing.Literal["SERIALIZE_XML"], typing.Any] diff --git a/src/auth0/management/types/flow_action_xml_serialize_xml_params.py b/src/auth0/management/types/flow_action_xml_serialize_xml_params.py deleted file mode 100644 index bfdbab5b..00000000 --- a/src/auth0/management/types/flow_action_xml_serialize_xml_params.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_xml_serialize_xml_params_object import FlowActionXmlSerializeXmlParamsObject - - -class FlowActionXmlSerializeXmlParams(UniversalBaseModel): - object: FlowActionXmlSerializeXmlParamsObject - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_xml_serialize_xml_params_object.py b/src/auth0/management/types/flow_action_xml_serialize_xml_params_object.py deleted file mode 100644 index 9917ff5a..00000000 --- a/src/auth0/management/types/flow_action_xml_serialize_xml_params_object.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .flow_action_xml_serialize_xml_params_object_object import FlowActionXmlSerializeXmlParamsObjectObject - -FlowActionXmlSerializeXmlParamsObject = typing.Union[str, FlowActionXmlSerializeXmlParamsObjectObject] diff --git a/src/auth0/management/types/flow_action_xml_serialize_xml_params_object_object.py b/src/auth0/management/types/flow_action_xml_serialize_xml_params_object_object.py deleted file mode 100644 index 8bd9aa08..00000000 --- a/src/auth0/management/types/flow_action_xml_serialize_xml_params_object_object.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionXmlSerializeXmlParamsObjectObject = typing.Dict[str, typing.Any] diff --git a/src/auth0/management/types/flow_action_xml_serialize_xml_type.py b/src/auth0/management/types/flow_action_xml_serialize_xml_type.py deleted file mode 100644 index b82cedd2..00000000 --- a/src/auth0/management/types/flow_action_xml_serialize_xml_type.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionXmlSerializeXmlType = typing.Union[typing.Literal["XML"], typing.Any] diff --git a/src/auth0/management/types/flow_action_zapier.py b/src/auth0/management/types/flow_action_zapier.py deleted file mode 100644 index 9583f18d..00000000 --- a/src/auth0/management/types/flow_action_zapier.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from .flow_action_zapier_trigger_webhook import FlowActionZapierTriggerWebhook - -FlowActionZapier = FlowActionZapierTriggerWebhook diff --git a/src/auth0/management/types/flow_action_zapier_trigger_webhook.py b/src/auth0/management/types/flow_action_zapier_trigger_webhook.py deleted file mode 100644 index c85853f4..00000000 --- a/src/auth0/management/types/flow_action_zapier_trigger_webhook.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_zapier_trigger_webhook_action import FlowActionZapierTriggerWebhookAction -from .flow_action_zapier_trigger_webhook_params import FlowActionZapierTriggerWebhookParams -from .flow_action_zapier_trigger_webhook_type import FlowActionZapierTriggerWebhookType - - -class FlowActionZapierTriggerWebhook(UniversalBaseModel): - id: str - alias: typing.Optional[str] = None - type: FlowActionZapierTriggerWebhookType - action: FlowActionZapierTriggerWebhookAction - allow_failure: typing.Optional[bool] = None - mask_output: typing.Optional[bool] = None - params: FlowActionZapierTriggerWebhookParams - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_zapier_trigger_webhook_action.py b/src/auth0/management/types/flow_action_zapier_trigger_webhook_action.py deleted file mode 100644 index c0a6c778..00000000 --- a/src/auth0/management/types/flow_action_zapier_trigger_webhook_action.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionZapierTriggerWebhookAction = typing.Union[typing.Literal["TRIGGER_WEBHOOK"], typing.Any] diff --git a/src/auth0/management/types/flow_action_zapier_trigger_webhook_params.py b/src/auth0/management/types/flow_action_zapier_trigger_webhook_params.py deleted file mode 100644 index 606657c3..00000000 --- a/src/auth0/management/types/flow_action_zapier_trigger_webhook_params.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_action_zapier_trigger_webhook_params_method import FlowActionZapierTriggerWebhookParamsMethod - - -class FlowActionZapierTriggerWebhookParams(UniversalBaseModel): - connection_id: str - method: typing.Optional[FlowActionZapierTriggerWebhookParamsMethod] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_action_zapier_trigger_webhook_params_method.py b/src/auth0/management/types/flow_action_zapier_trigger_webhook_params_method.py deleted file mode 100644 index 459ab0f8..00000000 --- a/src/auth0/management/types/flow_action_zapier_trigger_webhook_params_method.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionZapierTriggerWebhookParamsMethod = typing.Union[typing.Literal["GET", "POST", "PUT"], typing.Any] diff --git a/src/auth0/management/types/flow_action_zapier_trigger_webhook_type.py b/src/auth0/management/types/flow_action_zapier_trigger_webhook_type.py deleted file mode 100644 index 845cd2bd..00000000 --- a/src/auth0/management/types/flow_action_zapier_trigger_webhook_type.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowActionZapierTriggerWebhookType = typing.Union[typing.Literal["ZAPIER"], typing.Any] diff --git a/src/auth0/management/types/flow_execution_debug.py b/src/auth0/management/types/flow_execution_debug.py deleted file mode 100644 index deb92707..00000000 --- a/src/auth0/management/types/flow_execution_debug.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowExecutionDebug = typing.Dict[str, typing.Any] -""" -Flow execution debug. -""" diff --git a/src/auth0/management/types/flow_execution_summary.py b/src/auth0/management/types/flow_execution_summary.py deleted file mode 100644 index 2ffe522c..00000000 --- a/src/auth0/management/types/flow_execution_summary.py +++ /dev/null @@ -1,58 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class FlowExecutionSummary(UniversalBaseModel): - id: str = pydantic.Field() - """ - Flow execution identifier - """ - - trace_id: str = pydantic.Field() - """ - Trace id - """ - - journey_id: typing.Optional[str] = pydantic.Field(default=None) - """ - Journey id - """ - - status: str = pydantic.Field() - """ - Execution status - """ - - created_at: dt.datetime = pydantic.Field() - """ - The ISO 8601 formatted date when this flow execution was created. - """ - - updated_at: dt.datetime = pydantic.Field() - """ - The ISO 8601 formatted date when this flow execution was updated. - """ - - started_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The ISO 8601 formatted date when this flow execution started. - """ - - ended_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The ISO 8601 formatted date when this flow execution ended. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flow_summary.py b/src/auth0/management/types/flow_summary.py deleted file mode 100644 index b0f060ee..00000000 --- a/src/auth0/management/types/flow_summary.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class FlowSummary(UniversalBaseModel): - id: str - name: str - created_at: dt.datetime - updated_at: dt.datetime - executed_at: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flows_vault_connectio_setup_api_key.py b/src/auth0/management/types/flows_vault_connectio_setup_api_key.py deleted file mode 100644 index 725d1271..00000000 --- a/src/auth0/management/types/flows_vault_connectio_setup_api_key.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flows_vault_connectio_setup_type_api_key_enum import FlowsVaultConnectioSetupTypeApiKeyEnum - - -class FlowsVaultConnectioSetupApiKey(UniversalBaseModel): - type: FlowsVaultConnectioSetupTypeApiKeyEnum - api_key: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flows_vault_connectio_setup_api_key_with_base_url.py b/src/auth0/management/types/flows_vault_connectio_setup_api_key_with_base_url.py deleted file mode 100644 index 6b982245..00000000 --- a/src/auth0/management/types/flows_vault_connectio_setup_api_key_with_base_url.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flows_vault_connectio_setup_type_api_key_enum import FlowsVaultConnectioSetupTypeApiKeyEnum - - -class FlowsVaultConnectioSetupApiKeyWithBaseUrl(UniversalBaseModel): - type: FlowsVaultConnectioSetupTypeApiKeyEnum - api_key: str - base_url: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flows_vault_connectio_setup_bigquery_oauth_jwt.py b/src/auth0/management/types/flows_vault_connectio_setup_bigquery_oauth_jwt.py deleted file mode 100644 index c0d4097a..00000000 --- a/src/auth0/management/types/flows_vault_connectio_setup_bigquery_oauth_jwt.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flows_vault_connectio_setup_type_oauth_jwt_enum import FlowsVaultConnectioSetupTypeOauthJwtEnum - - -class FlowsVaultConnectioSetupBigqueryOauthJwt(UniversalBaseModel): - type: typing.Optional[FlowsVaultConnectioSetupTypeOauthJwtEnum] = None - project_id: typing.Optional[str] = None - private_key: typing.Optional[str] = None - client_email: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flows_vault_connectio_setup_http_bearer.py b/src/auth0/management/types/flows_vault_connectio_setup_http_bearer.py deleted file mode 100644 index d546d116..00000000 --- a/src/auth0/management/types/flows_vault_connectio_setup_http_bearer.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flows_vault_connectio_setup_type_bearer_enum import FlowsVaultConnectioSetupTypeBearerEnum - - -class FlowsVaultConnectioSetupHttpBearer(UniversalBaseModel): - type: FlowsVaultConnectioSetupTypeBearerEnum - token: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flows_vault_connectio_setup_jwt.py b/src/auth0/management/types/flows_vault_connectio_setup_jwt.py deleted file mode 100644 index a7201f56..00000000 --- a/src/auth0/management/types/flows_vault_connectio_setup_jwt.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flows_vault_connectio_setup_jwt_algorithm_enum import FlowsVaultConnectioSetupJwtAlgorithmEnum -from .flows_vault_connectio_setup_type_jwt_enum import FlowsVaultConnectioSetupTypeJwtEnum - - -class FlowsVaultConnectioSetupJwt(UniversalBaseModel): - type: FlowsVaultConnectioSetupTypeJwtEnum - algorithm: FlowsVaultConnectioSetupJwtAlgorithmEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flows_vault_connectio_setup_jwt_algorithm_enum.py b/src/auth0/management/types/flows_vault_connectio_setup_jwt_algorithm_enum.py deleted file mode 100644 index a9e0590a..00000000 --- a/src/auth0/management/types/flows_vault_connectio_setup_jwt_algorithm_enum.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowsVaultConnectioSetupJwtAlgorithmEnum = typing.Union[ - typing.Literal[ - "HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "ES256", "ES384", "ES512", "PS256", "PS384", "PS512" - ], - typing.Any, -] diff --git a/src/auth0/management/types/flows_vault_connectio_setup_mailjet_api_key.py b/src/auth0/management/types/flows_vault_connectio_setup_mailjet_api_key.py deleted file mode 100644 index eda7be42..00000000 --- a/src/auth0/management/types/flows_vault_connectio_setup_mailjet_api_key.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flows_vault_connectio_setup_type_api_key_enum import FlowsVaultConnectioSetupTypeApiKeyEnum - - -class FlowsVaultConnectioSetupMailjetApiKey(UniversalBaseModel): - type: FlowsVaultConnectioSetupTypeApiKeyEnum - api_key: str - secret_key: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flows_vault_connectio_setup_oauth_app.py b/src/auth0/management/types/flows_vault_connectio_setup_oauth_app.py deleted file mode 100644 index e141fdfb..00000000 --- a/src/auth0/management/types/flows_vault_connectio_setup_oauth_app.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flows_vault_connectio_setup_type_oauth_app_enum import FlowsVaultConnectioSetupTypeOauthAppEnum - - -class FlowsVaultConnectioSetupOauthApp(UniversalBaseModel): - type: FlowsVaultConnectioSetupTypeOauthAppEnum - client_id: str - client_secret: str - domain: str - audience: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flows_vault_connectio_setup_oauth_code.py b/src/auth0/management/types/flows_vault_connectio_setup_oauth_code.py deleted file mode 100644 index 628e403d..00000000 --- a/src/auth0/management/types/flows_vault_connectio_setup_oauth_code.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flows_vault_connectio_setup_type_oauth_code_enum import FlowsVaultConnectioSetupTypeOauthCodeEnum - - -class FlowsVaultConnectioSetupOauthCode(UniversalBaseModel): - type: typing.Optional[FlowsVaultConnectioSetupTypeOauthCodeEnum] = None - code: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flows_vault_connectio_setup_secret_api_key.py b/src/auth0/management/types/flows_vault_connectio_setup_secret_api_key.py deleted file mode 100644 index 26311d86..00000000 --- a/src/auth0/management/types/flows_vault_connectio_setup_secret_api_key.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flows_vault_connectio_setup_type_api_key_enum import FlowsVaultConnectioSetupTypeApiKeyEnum - - -class FlowsVaultConnectioSetupSecretApiKey(UniversalBaseModel): - type: FlowsVaultConnectioSetupTypeApiKeyEnum - secret_key: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flows_vault_connectio_setup_stripe_key_pair.py b/src/auth0/management/types/flows_vault_connectio_setup_stripe_key_pair.py deleted file mode 100644 index d38a1ce1..00000000 --- a/src/auth0/management/types/flows_vault_connectio_setup_stripe_key_pair.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flows_vault_connectio_setup_type_key_pair_enum import FlowsVaultConnectioSetupTypeKeyPairEnum - - -class FlowsVaultConnectioSetupStripeKeyPair(UniversalBaseModel): - type: FlowsVaultConnectioSetupTypeKeyPairEnum - private_key: str - public_key: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flows_vault_connectio_setup_token.py b/src/auth0/management/types/flows_vault_connectio_setup_token.py deleted file mode 100644 index 6d1a8de4..00000000 --- a/src/auth0/management/types/flows_vault_connectio_setup_token.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flows_vault_connectio_setup_type_token_enum import FlowsVaultConnectioSetupTypeTokenEnum - - -class FlowsVaultConnectioSetupToken(UniversalBaseModel): - type: FlowsVaultConnectioSetupTypeTokenEnum - token: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flows_vault_connectio_setup_twilio_api_key.py b/src/auth0/management/types/flows_vault_connectio_setup_twilio_api_key.py deleted file mode 100644 index 0faf2f7c..00000000 --- a/src/auth0/management/types/flows_vault_connectio_setup_twilio_api_key.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flows_vault_connectio_setup_type_api_key_enum import FlowsVaultConnectioSetupTypeApiKeyEnum - - -class FlowsVaultConnectioSetupTwilioApiKey(UniversalBaseModel): - type: FlowsVaultConnectioSetupTypeApiKeyEnum - account_id: str - api_key: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flows_vault_connectio_setup_type_api_key_enum.py b/src/auth0/management/types/flows_vault_connectio_setup_type_api_key_enum.py deleted file mode 100644 index e467b24c..00000000 --- a/src/auth0/management/types/flows_vault_connectio_setup_type_api_key_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowsVaultConnectioSetupTypeApiKeyEnum = typing.Union[typing.Literal["API_KEY"], typing.Any] diff --git a/src/auth0/management/types/flows_vault_connectio_setup_type_bearer_enum.py b/src/auth0/management/types/flows_vault_connectio_setup_type_bearer_enum.py deleted file mode 100644 index 87d71ccf..00000000 --- a/src/auth0/management/types/flows_vault_connectio_setup_type_bearer_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowsVaultConnectioSetupTypeBearerEnum = typing.Union[typing.Literal["BEARER"], typing.Any] diff --git a/src/auth0/management/types/flows_vault_connectio_setup_type_jwt_enum.py b/src/auth0/management/types/flows_vault_connectio_setup_type_jwt_enum.py deleted file mode 100644 index 81e4dc47..00000000 --- a/src/auth0/management/types/flows_vault_connectio_setup_type_jwt_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowsVaultConnectioSetupTypeJwtEnum = typing.Union[typing.Literal["JWT"], typing.Any] diff --git a/src/auth0/management/types/flows_vault_connectio_setup_type_key_pair_enum.py b/src/auth0/management/types/flows_vault_connectio_setup_type_key_pair_enum.py deleted file mode 100644 index 8a702a18..00000000 --- a/src/auth0/management/types/flows_vault_connectio_setup_type_key_pair_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowsVaultConnectioSetupTypeKeyPairEnum = typing.Union[typing.Literal["KEY_PAIR"], typing.Any] diff --git a/src/auth0/management/types/flows_vault_connectio_setup_type_oauth_app_enum.py b/src/auth0/management/types/flows_vault_connectio_setup_type_oauth_app_enum.py deleted file mode 100644 index 1517f8d8..00000000 --- a/src/auth0/management/types/flows_vault_connectio_setup_type_oauth_app_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowsVaultConnectioSetupTypeOauthAppEnum = typing.Union[typing.Literal["OAUTH_APP"], typing.Any] diff --git a/src/auth0/management/types/flows_vault_connectio_setup_type_oauth_code_enum.py b/src/auth0/management/types/flows_vault_connectio_setup_type_oauth_code_enum.py deleted file mode 100644 index 6462d1c9..00000000 --- a/src/auth0/management/types/flows_vault_connectio_setup_type_oauth_code_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowsVaultConnectioSetupTypeOauthCodeEnum = typing.Union[typing.Literal["OAUTH_CODE"], typing.Any] diff --git a/src/auth0/management/types/flows_vault_connectio_setup_type_oauth_jwt_enum.py b/src/auth0/management/types/flows_vault_connectio_setup_type_oauth_jwt_enum.py deleted file mode 100644 index cf127c24..00000000 --- a/src/auth0/management/types/flows_vault_connectio_setup_type_oauth_jwt_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowsVaultConnectioSetupTypeOauthJwtEnum = typing.Union[typing.Literal["OAUTH_JWT"], typing.Any] diff --git a/src/auth0/management/types/flows_vault_connectio_setup_type_token_enum.py b/src/auth0/management/types/flows_vault_connectio_setup_type_token_enum.py deleted file mode 100644 index be305a06..00000000 --- a/src/auth0/management/types/flows_vault_connectio_setup_type_token_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowsVaultConnectioSetupTypeTokenEnum = typing.Union[typing.Literal["TOKEN"], typing.Any] diff --git a/src/auth0/management/types/flows_vault_connectio_setup_type_webhook_enum.py b/src/auth0/management/types/flows_vault_connectio_setup_type_webhook_enum.py deleted file mode 100644 index 5849bdce..00000000 --- a/src/auth0/management/types/flows_vault_connectio_setup_type_webhook_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowsVaultConnectioSetupTypeWebhookEnum = typing.Union[typing.Literal["WEBHOOK"], typing.Any] diff --git a/src/auth0/management/types/flows_vault_connectio_setup_webhook.py b/src/auth0/management/types/flows_vault_connectio_setup_webhook.py deleted file mode 100644 index 74d40196..00000000 --- a/src/auth0/management/types/flows_vault_connectio_setup_webhook.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flows_vault_connectio_setup_type_webhook_enum import FlowsVaultConnectioSetupTypeWebhookEnum - - -class FlowsVaultConnectioSetupWebhook(UniversalBaseModel): - type: FlowsVaultConnectioSetupTypeWebhookEnum - url: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flows_vault_connection_app_id_activecampaign_enum.py b/src/auth0/management/types/flows_vault_connection_app_id_activecampaign_enum.py deleted file mode 100644 index f9b1d61d..00000000 --- a/src/auth0/management/types/flows_vault_connection_app_id_activecampaign_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowsVaultConnectionAppIdActivecampaignEnum = typing.Union[typing.Literal["ACTIVECAMPAIGN"], typing.Any] diff --git a/src/auth0/management/types/flows_vault_connection_app_id_airtable_enum.py b/src/auth0/management/types/flows_vault_connection_app_id_airtable_enum.py deleted file mode 100644 index d4e36014..00000000 --- a/src/auth0/management/types/flows_vault_connection_app_id_airtable_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowsVaultConnectionAppIdAirtableEnum = typing.Union[typing.Literal["AIRTABLE"], typing.Any] diff --git a/src/auth0/management/types/flows_vault_connection_app_id_auth_0_enum.py b/src/auth0/management/types/flows_vault_connection_app_id_auth_0_enum.py deleted file mode 100644 index 95d39d04..00000000 --- a/src/auth0/management/types/flows_vault_connection_app_id_auth_0_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowsVaultConnectionAppIdAuth0Enum = typing.Union[typing.Literal["AUTH0"], typing.Any] diff --git a/src/auth0/management/types/flows_vault_connection_app_id_bigquery_enum.py b/src/auth0/management/types/flows_vault_connection_app_id_bigquery_enum.py deleted file mode 100644 index aea8ffca..00000000 --- a/src/auth0/management/types/flows_vault_connection_app_id_bigquery_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowsVaultConnectionAppIdBigqueryEnum = typing.Union[typing.Literal["BIGQUERY"], typing.Any] diff --git a/src/auth0/management/types/flows_vault_connection_app_id_clearbit_enum.py b/src/auth0/management/types/flows_vault_connection_app_id_clearbit_enum.py deleted file mode 100644 index 057ac91b..00000000 --- a/src/auth0/management/types/flows_vault_connection_app_id_clearbit_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowsVaultConnectionAppIdClearbitEnum = typing.Union[typing.Literal["CLEARBIT"], typing.Any] diff --git a/src/auth0/management/types/flows_vault_connection_app_id_docusign_enum.py b/src/auth0/management/types/flows_vault_connection_app_id_docusign_enum.py deleted file mode 100644 index 3bf1e20d..00000000 --- a/src/auth0/management/types/flows_vault_connection_app_id_docusign_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowsVaultConnectionAppIdDocusignEnum = typing.Union[typing.Literal["DOCUSIGN"], typing.Any] diff --git a/src/auth0/management/types/flows_vault_connection_app_id_google_sheets_enum.py b/src/auth0/management/types/flows_vault_connection_app_id_google_sheets_enum.py deleted file mode 100644 index 2c16b828..00000000 --- a/src/auth0/management/types/flows_vault_connection_app_id_google_sheets_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowsVaultConnectionAppIdGoogleSheetsEnum = typing.Union[typing.Literal["GOOGLE_SHEETS"], typing.Any] diff --git a/src/auth0/management/types/flows_vault_connection_app_id_http_enum.py b/src/auth0/management/types/flows_vault_connection_app_id_http_enum.py deleted file mode 100644 index 65d8a960..00000000 --- a/src/auth0/management/types/flows_vault_connection_app_id_http_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowsVaultConnectionAppIdHttpEnum = typing.Union[typing.Literal["HTTP"], typing.Any] diff --git a/src/auth0/management/types/flows_vault_connection_app_id_hubspot_enum.py b/src/auth0/management/types/flows_vault_connection_app_id_hubspot_enum.py deleted file mode 100644 index b73415cf..00000000 --- a/src/auth0/management/types/flows_vault_connection_app_id_hubspot_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowsVaultConnectionAppIdHubspotEnum = typing.Union[typing.Literal["HUBSPOT"], typing.Any] diff --git a/src/auth0/management/types/flows_vault_connection_app_id_jwt_enum.py b/src/auth0/management/types/flows_vault_connection_app_id_jwt_enum.py deleted file mode 100644 index 6a94c024..00000000 --- a/src/auth0/management/types/flows_vault_connection_app_id_jwt_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowsVaultConnectionAppIdJwtEnum = typing.Union[typing.Literal["JWT"], typing.Any] diff --git a/src/auth0/management/types/flows_vault_connection_app_id_mailchimp_enum.py b/src/auth0/management/types/flows_vault_connection_app_id_mailchimp_enum.py deleted file mode 100644 index e2d965d7..00000000 --- a/src/auth0/management/types/flows_vault_connection_app_id_mailchimp_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowsVaultConnectionAppIdMailchimpEnum = typing.Union[typing.Literal["MAILCHIMP"], typing.Any] diff --git a/src/auth0/management/types/flows_vault_connection_app_id_mailjet_enum.py b/src/auth0/management/types/flows_vault_connection_app_id_mailjet_enum.py deleted file mode 100644 index 546f6c4d..00000000 --- a/src/auth0/management/types/flows_vault_connection_app_id_mailjet_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowsVaultConnectionAppIdMailjetEnum = typing.Union[typing.Literal["MAILJET"], typing.Any] diff --git a/src/auth0/management/types/flows_vault_connection_app_id_pipedrive_enum.py b/src/auth0/management/types/flows_vault_connection_app_id_pipedrive_enum.py deleted file mode 100644 index fd0eaf63..00000000 --- a/src/auth0/management/types/flows_vault_connection_app_id_pipedrive_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowsVaultConnectionAppIdPipedriveEnum = typing.Union[typing.Literal["PIPEDRIVE"], typing.Any] diff --git a/src/auth0/management/types/flows_vault_connection_app_id_salesforce_enum.py b/src/auth0/management/types/flows_vault_connection_app_id_salesforce_enum.py deleted file mode 100644 index 31060342..00000000 --- a/src/auth0/management/types/flows_vault_connection_app_id_salesforce_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowsVaultConnectionAppIdSalesforceEnum = typing.Union[typing.Literal["SALESFORCE"], typing.Any] diff --git a/src/auth0/management/types/flows_vault_connection_app_id_sendgrid_enum.py b/src/auth0/management/types/flows_vault_connection_app_id_sendgrid_enum.py deleted file mode 100644 index e4842d89..00000000 --- a/src/auth0/management/types/flows_vault_connection_app_id_sendgrid_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowsVaultConnectionAppIdSendgridEnum = typing.Union[typing.Literal["SENDGRID"], typing.Any] diff --git a/src/auth0/management/types/flows_vault_connection_app_id_slack_enum.py b/src/auth0/management/types/flows_vault_connection_app_id_slack_enum.py deleted file mode 100644 index d9eb9382..00000000 --- a/src/auth0/management/types/flows_vault_connection_app_id_slack_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowsVaultConnectionAppIdSlackEnum = typing.Union[typing.Literal["SLACK"], typing.Any] diff --git a/src/auth0/management/types/flows_vault_connection_app_id_stripe_enum.py b/src/auth0/management/types/flows_vault_connection_app_id_stripe_enum.py deleted file mode 100644 index 91f37c03..00000000 --- a/src/auth0/management/types/flows_vault_connection_app_id_stripe_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowsVaultConnectionAppIdStripeEnum = typing.Union[typing.Literal["STRIPE"], typing.Any] diff --git a/src/auth0/management/types/flows_vault_connection_app_id_telegram_enum.py b/src/auth0/management/types/flows_vault_connection_app_id_telegram_enum.py deleted file mode 100644 index 920f0b56..00000000 --- a/src/auth0/management/types/flows_vault_connection_app_id_telegram_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowsVaultConnectionAppIdTelegramEnum = typing.Union[typing.Literal["TELEGRAM"], typing.Any] diff --git a/src/auth0/management/types/flows_vault_connection_app_id_twilio_enum.py b/src/auth0/management/types/flows_vault_connection_app_id_twilio_enum.py deleted file mode 100644 index 9895bbe2..00000000 --- a/src/auth0/management/types/flows_vault_connection_app_id_twilio_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowsVaultConnectionAppIdTwilioEnum = typing.Union[typing.Literal["TWILIO"], typing.Any] diff --git a/src/auth0/management/types/flows_vault_connection_app_id_whatsapp_enum.py b/src/auth0/management/types/flows_vault_connection_app_id_whatsapp_enum.py deleted file mode 100644 index e0e2ae77..00000000 --- a/src/auth0/management/types/flows_vault_connection_app_id_whatsapp_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowsVaultConnectionAppIdWhatsappEnum = typing.Union[typing.Literal["WHATSAPP"], typing.Any] diff --git a/src/auth0/management/types/flows_vault_connection_app_id_zapier_enum.py b/src/auth0/management/types/flows_vault_connection_app_id_zapier_enum.py deleted file mode 100644 index ddb85eff..00000000 --- a/src/auth0/management/types/flows_vault_connection_app_id_zapier_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowsVaultConnectionAppIdZapierEnum = typing.Union[typing.Literal["ZAPIER"], typing.Any] diff --git a/src/auth0/management/types/flows_vault_connection_http_api_key_setup.py b/src/auth0/management/types/flows_vault_connection_http_api_key_setup.py deleted file mode 100644 index 02de9a99..00000000 --- a/src/auth0/management/types/flows_vault_connection_http_api_key_setup.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .flows_vault_connection_http_api_key_setup_in_enum import FlowsVaultConnectionHttpApiKeySetupInEnum -from .flows_vault_connection_setup_type_api_key_enum import FlowsVaultConnectionSetupTypeApiKeyEnum - - -class FlowsVaultConnectionHttpApiKeySetup(UniversalBaseModel): - type: FlowsVaultConnectionSetupTypeApiKeyEnum - name: str - value: str - in_: typing_extensions.Annotated[ - FlowsVaultConnectionHttpApiKeySetupInEnum, FieldMetadata(alias="in"), pydantic.Field(alias="in") - ] - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flows_vault_connection_http_api_key_setup_in_enum.py b/src/auth0/management/types/flows_vault_connection_http_api_key_setup_in_enum.py deleted file mode 100644 index 44b73290..00000000 --- a/src/auth0/management/types/flows_vault_connection_http_api_key_setup_in_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowsVaultConnectionHttpApiKeySetupInEnum = typing.Union[typing.Literal["HEADER", "QUERY"], typing.Any] diff --git a/src/auth0/management/types/flows_vault_connection_http_basic_auth_setup.py b/src/auth0/management/types/flows_vault_connection_http_basic_auth_setup.py deleted file mode 100644 index 137a6384..00000000 --- a/src/auth0/management/types/flows_vault_connection_http_basic_auth_setup.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flows_vault_connection_setup_type_basic_auth_enum import FlowsVaultConnectionSetupTypeBasicAuthEnum - - -class FlowsVaultConnectionHttpBasicAuthSetup(UniversalBaseModel): - type: FlowsVaultConnectionSetupTypeBasicAuthEnum - username: str - password: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flows_vault_connection_http_oauth_client_credentials_setup.py b/src/auth0/management/types/flows_vault_connection_http_oauth_client_credentials_setup.py deleted file mode 100644 index fc27ca1e..00000000 --- a/src/auth0/management/types/flows_vault_connection_http_oauth_client_credentials_setup.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flows_vault_connection_setup_type_oauth_client_credentials_enum import ( - FlowsVaultConnectionSetupTypeOauthClientCredentialsEnum, -) - - -class FlowsVaultConnectionHttpOauthClientCredentialsSetup(UniversalBaseModel): - type: FlowsVaultConnectionSetupTypeOauthClientCredentialsEnum - client_id: str - client_secret: str - token_endpoint: str - audience: typing.Optional[str] = None - resource: typing.Optional[str] = None - scope: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/flows_vault_connection_setup_type_api_key_enum.py b/src/auth0/management/types/flows_vault_connection_setup_type_api_key_enum.py deleted file mode 100644 index 3d5161bf..00000000 --- a/src/auth0/management/types/flows_vault_connection_setup_type_api_key_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowsVaultConnectionSetupTypeApiKeyEnum = typing.Union[typing.Literal["API_KEY"], typing.Any] diff --git a/src/auth0/management/types/flows_vault_connection_setup_type_basic_auth_enum.py b/src/auth0/management/types/flows_vault_connection_setup_type_basic_auth_enum.py deleted file mode 100644 index 462c3ff6..00000000 --- a/src/auth0/management/types/flows_vault_connection_setup_type_basic_auth_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowsVaultConnectionSetupTypeBasicAuthEnum = typing.Union[typing.Literal["BASIC_AUTH"], typing.Any] diff --git a/src/auth0/management/types/flows_vault_connection_setup_type_oauth_client_credentials_enum.py b/src/auth0/management/types/flows_vault_connection_setup_type_oauth_client_credentials_enum.py deleted file mode 100644 index 201ddacb..00000000 --- a/src/auth0/management/types/flows_vault_connection_setup_type_oauth_client_credentials_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FlowsVaultConnectionSetupTypeOauthClientCredentialsEnum = typing.Union[ - typing.Literal["OAUTH_CLIENT_CREDENTIALS"], typing.Any -] diff --git a/src/auth0/management/types/flows_vault_connection_summary.py b/src/auth0/management/types/flows_vault_connection_summary.py deleted file mode 100644 index 6d18b13e..00000000 --- a/src/auth0/management/types/flows_vault_connection_summary.py +++ /dev/null @@ -1,60 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class FlowsVaultConnectionSummary(UniversalBaseModel): - id: str = pydantic.Field() - """ - Flows Vault Connection identifier. - """ - - app_id: str = pydantic.Field() - """ - Flows Vault Connection app identifier. - """ - - name: str = pydantic.Field() - """ - Flows Vault Connection name. - """ - - account_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Flows Vault Connection custom account name. - """ - - ready: bool = pydantic.Field() - """ - Whether the Flows Vault Connection is configured. - """ - - created_at: dt.datetime = pydantic.Field() - """ - The ISO 8601 formatted date when this Flows Vault Connection was created. - """ - - updated_at: dt.datetime = pydantic.Field() - """ - The ISO 8601 formatted date when this Flows Vault Connection was updated. - """ - - refreshed_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The ISO 8601 formatted date when this Flows Vault Connection was refreshed. - """ - - fingerprint: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/forbidden_schema.py b/src/auth0/management/types/forbidden_schema.py deleted file mode 100644 index 9bbd6c4c..00000000 --- a/src/auth0/management/types/forbidden_schema.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .forbidden_schema_error import ForbiddenSchemaError - - -class ForbiddenSchema(UniversalBaseModel): - """ - Forbidden - """ - - message: str - status_code: typing_extensions.Annotated[str, FieldMetadata(alias="statusCode"), pydantic.Field(alias="statusCode")] - error: ForbiddenSchemaError - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/forbidden_schema_error.py b/src/auth0/management/types/forbidden_schema_error.py deleted file mode 100644 index b7b2b9a4..00000000 --- a/src/auth0/management/types/forbidden_schema_error.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ForbiddenSchemaError = typing.Union[typing.Literal["Forbidden"], typing.Any] diff --git a/src/auth0/management/types/form_block.py b/src/auth0/management/types/form_block.py deleted file mode 100644 index b939871e..00000000 --- a/src/auth0/management/types/form_block.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .form_block_divider import FormBlockDivider -from .form_block_html import FormBlockHtml -from .form_block_image import FormBlockImage -from .form_block_jump_button import FormBlockJumpButton -from .form_block_next_button import FormBlockNextButton -from .form_block_previous_button import FormBlockPreviousButton -from .form_block_resend_button import FormBlockResendButton -from .form_block_rich_text import FormBlockRichText - -FormBlock = typing.Union[ - FormBlockDivider, - FormBlockHtml, - FormBlockImage, - FormBlockJumpButton, - FormBlockResendButton, - FormBlockNextButton, - FormBlockPreviousButton, - FormBlockRichText, -] diff --git a/src/auth0/management/types/form_block_divider.py b/src/auth0/management/types/form_block_divider.py deleted file mode 100644 index 1bd3d1af..00000000 --- a/src/auth0/management/types/form_block_divider.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .form_block_divider_config import FormBlockDividerConfig -from .form_block_type_divider_const import FormBlockTypeDividerConst -from .form_component_category_block_const import FormComponentCategoryBlockConst - - -class FormBlockDivider(UniversalBaseModel): - id: str - category: FormComponentCategoryBlockConst - type: FormBlockTypeDividerConst - config: typing.Optional[FormBlockDividerConfig] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_block_divider_config.py b/src/auth0/management/types/form_block_divider_config.py deleted file mode 100644 index 97f02c53..00000000 --- a/src/auth0/management/types/form_block_divider_config.py +++ /dev/null @@ -1,19 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class FormBlockDividerConfig(UniversalBaseModel): - text: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_block_html.py b/src/auth0/management/types/form_block_html.py deleted file mode 100644 index a534d771..00000000 --- a/src/auth0/management/types/form_block_html.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .form_block_html_config import FormBlockHtmlConfig -from .form_block_type_html_const import FormBlockTypeHtmlConst -from .form_component_category_block_const import FormComponentCategoryBlockConst - - -class FormBlockHtml(UniversalBaseModel): - id: str - category: FormComponentCategoryBlockConst - type: FormBlockTypeHtmlConst - config: typing.Optional[FormBlockHtmlConfig] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_block_html_config.py b/src/auth0/management/types/form_block_html_config.py deleted file mode 100644 index 49aa5f7b..00000000 --- a/src/auth0/management/types/form_block_html_config.py +++ /dev/null @@ -1,19 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class FormBlockHtmlConfig(UniversalBaseModel): - content: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_block_image.py b/src/auth0/management/types/form_block_image.py deleted file mode 100644 index 3da77044..00000000 --- a/src/auth0/management/types/form_block_image.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .form_block_image_config import FormBlockImageConfig -from .form_block_type_image_const import FormBlockTypeImageConst -from .form_component_category_block_const import FormComponentCategoryBlockConst - - -class FormBlockImage(UniversalBaseModel): - id: str - category: FormComponentCategoryBlockConst - type: FormBlockTypeImageConst - config: typing.Optional[FormBlockImageConfig] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_block_image_config.py b/src/auth0/management/types/form_block_image_config.py deleted file mode 100644 index 0b685788..00000000 --- a/src/auth0/management/types/form_block_image_config.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .form_block_image_config_position_enum import FormBlockImageConfigPositionEnum - - -class FormBlockImageConfig(UniversalBaseModel): - src: str - position: typing.Optional[FormBlockImageConfigPositionEnum] = None - height: typing.Optional[float] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_block_image_config_position_enum.py b/src/auth0/management/types/form_block_image_config_position_enum.py deleted file mode 100644 index f96b4178..00000000 --- a/src/auth0/management/types/form_block_image_config_position_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FormBlockImageConfigPositionEnum = typing.Union[typing.Literal["LEFT", "CENTER", "RIGHT"], typing.Any] diff --git a/src/auth0/management/types/form_block_jump_button.py b/src/auth0/management/types/form_block_jump_button.py deleted file mode 100644 index cc6d342f..00000000 --- a/src/auth0/management/types/form_block_jump_button.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .form_block_jump_button_config import FormBlockJumpButtonConfig -from .form_block_type_jump_button_const import FormBlockTypeJumpButtonConst -from .form_component_category_block_const import FormComponentCategoryBlockConst - - -class FormBlockJumpButton(UniversalBaseModel): - id: str - category: FormComponentCategoryBlockConst - type: FormBlockTypeJumpButtonConst - config: FormBlockJumpButtonConfig - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_block_jump_button_config.py b/src/auth0/management/types/form_block_jump_button_config.py deleted file mode 100644 index 77329d02..00000000 --- a/src/auth0/management/types/form_block_jump_button_config.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .form_block_jump_button_config_style import FormBlockJumpButtonConfigStyle -from .form_node_pointer import FormNodePointer - - -class FormBlockJumpButtonConfig(UniversalBaseModel): - text: str - next_node: FormNodePointer - style: typing.Optional[FormBlockJumpButtonConfigStyle] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_block_jump_button_config_style.py b/src/auth0/management/types/form_block_jump_button_config_style.py deleted file mode 100644 index f77985d1..00000000 --- a/src/auth0/management/types/form_block_jump_button_config_style.py +++ /dev/null @@ -1,19 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class FormBlockJumpButtonConfigStyle(UniversalBaseModel): - background_color: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_block_next_button.py b/src/auth0/management/types/form_block_next_button.py deleted file mode 100644 index cb25804c..00000000 --- a/src/auth0/management/types/form_block_next_button.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .form_block_next_button_config import FormBlockNextButtonConfig -from .form_block_type_next_button_const import FormBlockTypeNextButtonConst -from .form_component_category_block_const import FormComponentCategoryBlockConst - - -class FormBlockNextButton(UniversalBaseModel): - id: str - category: FormComponentCategoryBlockConst - type: FormBlockTypeNextButtonConst - config: FormBlockNextButtonConfig - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_block_previous_button.py b/src/auth0/management/types/form_block_previous_button.py deleted file mode 100644 index 538c2018..00000000 --- a/src/auth0/management/types/form_block_previous_button.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .form_block_previous_button_config import FormBlockPreviousButtonConfig -from .form_block_type_previous_button_const import FormBlockTypePreviousButtonConst -from .form_component_category_block_const import FormComponentCategoryBlockConst - - -class FormBlockPreviousButton(UniversalBaseModel): - id: str - category: FormComponentCategoryBlockConst - type: FormBlockTypePreviousButtonConst - config: FormBlockPreviousButtonConfig - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_block_previous_button_config.py b/src/auth0/management/types/form_block_previous_button_config.py deleted file mode 100644 index 4af7476b..00000000 --- a/src/auth0/management/types/form_block_previous_button_config.py +++ /dev/null @@ -1,19 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class FormBlockPreviousButtonConfig(UniversalBaseModel): - text: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_block_resend_button.py b/src/auth0/management/types/form_block_resend_button.py deleted file mode 100644 index 69bd4a8b..00000000 --- a/src/auth0/management/types/form_block_resend_button.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .form_block_resend_button_config import FormBlockResendButtonConfig -from .form_block_type_resend_button_const import FormBlockTypeResendButtonConst -from .form_component_category_block_const import FormComponentCategoryBlockConst - - -class FormBlockResendButton(UniversalBaseModel): - id: str - category: FormComponentCategoryBlockConst - type: FormBlockTypeResendButtonConst - config: FormBlockResendButtonConfig - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_block_resend_button_config.py b/src/auth0/management/types/form_block_resend_button_config.py deleted file mode 100644 index b9ab650f..00000000 --- a/src/auth0/management/types/form_block_resend_button_config.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .form_block_resend_button_config_text_alignment_enum import FormBlockResendButtonConfigTextAlignmentEnum - - -class FormBlockResendButtonConfig(UniversalBaseModel): - active_text: str - button_text: str - waiting_text: str - text_alignment: typing.Optional[FormBlockResendButtonConfigTextAlignmentEnum] = None - flow_id: str - max_attempts: typing.Optional[float] = None - waiting_time: typing.Optional[float] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_block_resend_button_config_text_alignment_enum.py b/src/auth0/management/types/form_block_resend_button_config_text_alignment_enum.py deleted file mode 100644 index 0d1e8c68..00000000 --- a/src/auth0/management/types/form_block_resend_button_config_text_alignment_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FormBlockResendButtonConfigTextAlignmentEnum = typing.Union[typing.Literal["LEFT", "CENTER", "RIGHT"], typing.Any] diff --git a/src/auth0/management/types/form_block_rich_text.py b/src/auth0/management/types/form_block_rich_text.py deleted file mode 100644 index 4c6c0ee1..00000000 --- a/src/auth0/management/types/form_block_rich_text.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .form_block_rich_text_config import FormBlockRichTextConfig -from .form_block_type_rich_text_const import FormBlockTypeRichTextConst -from .form_component_category_block_const import FormComponentCategoryBlockConst - - -class FormBlockRichText(UniversalBaseModel): - id: str - category: FormComponentCategoryBlockConst - type: FormBlockTypeRichTextConst - config: typing.Optional[FormBlockRichTextConfig] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_block_rich_text_config.py b/src/auth0/management/types/form_block_rich_text_config.py deleted file mode 100644 index 42c304a7..00000000 --- a/src/auth0/management/types/form_block_rich_text_config.py +++ /dev/null @@ -1,19 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class FormBlockRichTextConfig(UniversalBaseModel): - content: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_block_type_divider_const.py b/src/auth0/management/types/form_block_type_divider_const.py deleted file mode 100644 index 2f6021c9..00000000 --- a/src/auth0/management/types/form_block_type_divider_const.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FormBlockTypeDividerConst = typing.Union[typing.Literal["DIVIDER"], typing.Any] diff --git a/src/auth0/management/types/form_block_type_html_const.py b/src/auth0/management/types/form_block_type_html_const.py deleted file mode 100644 index 82f5ef58..00000000 --- a/src/auth0/management/types/form_block_type_html_const.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FormBlockTypeHtmlConst = typing.Union[typing.Literal["HTML"], typing.Any] diff --git a/src/auth0/management/types/form_block_type_image_const.py b/src/auth0/management/types/form_block_type_image_const.py deleted file mode 100644 index d8213797..00000000 --- a/src/auth0/management/types/form_block_type_image_const.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FormBlockTypeImageConst = typing.Union[typing.Literal["IMAGE"], typing.Any] diff --git a/src/auth0/management/types/form_block_type_jump_button_const.py b/src/auth0/management/types/form_block_type_jump_button_const.py deleted file mode 100644 index e02ef07a..00000000 --- a/src/auth0/management/types/form_block_type_jump_button_const.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FormBlockTypeJumpButtonConst = typing.Union[typing.Literal["JUMP_BUTTON"], typing.Any] diff --git a/src/auth0/management/types/form_block_type_next_button_const.py b/src/auth0/management/types/form_block_type_next_button_const.py deleted file mode 100644 index 5088dc26..00000000 --- a/src/auth0/management/types/form_block_type_next_button_const.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FormBlockTypeNextButtonConst = typing.Union[typing.Literal["NEXT_BUTTON"], typing.Any] diff --git a/src/auth0/management/types/form_block_type_previous_button_const.py b/src/auth0/management/types/form_block_type_previous_button_const.py deleted file mode 100644 index bfe734c2..00000000 --- a/src/auth0/management/types/form_block_type_previous_button_const.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FormBlockTypePreviousButtonConst = typing.Union[typing.Literal["PREVIOUS_BUTTON"], typing.Any] diff --git a/src/auth0/management/types/form_block_type_resend_button_const.py b/src/auth0/management/types/form_block_type_resend_button_const.py deleted file mode 100644 index dc5cf814..00000000 --- a/src/auth0/management/types/form_block_type_resend_button_const.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FormBlockTypeResendButtonConst = typing.Union[typing.Literal["RESEND_BUTTON"], typing.Any] diff --git a/src/auth0/management/types/form_block_type_rich_text_const.py b/src/auth0/management/types/form_block_type_rich_text_const.py deleted file mode 100644 index 054f4098..00000000 --- a/src/auth0/management/types/form_block_type_rich_text_const.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FormBlockTypeRichTextConst = typing.Union[typing.Literal["RICH_TEXT"], typing.Any] diff --git a/src/auth0/management/types/form_component.py b/src/auth0/management/types/form_component.py deleted file mode 100644 index ddc1b124..00000000 --- a/src/auth0/management/types/form_component.py +++ /dev/null @@ -1,9 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .form_block import FormBlock -from .form_field import FormField -from .form_widget import FormWidget - -FormComponent = typing.Union[FormBlock, FormWidget, FormField] diff --git a/src/auth0/management/types/form_component_category_block_const.py b/src/auth0/management/types/form_component_category_block_const.py deleted file mode 100644 index c6ad462e..00000000 --- a/src/auth0/management/types/form_component_category_block_const.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FormComponentCategoryBlockConst = typing.Union[typing.Literal["BLOCK"], typing.Any] diff --git a/src/auth0/management/types/form_component_category_field_const.py b/src/auth0/management/types/form_component_category_field_const.py deleted file mode 100644 index 4261e471..00000000 --- a/src/auth0/management/types/form_component_category_field_const.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FormComponentCategoryFieldConst = typing.Union[typing.Literal["FIELD"], typing.Any] diff --git a/src/auth0/management/types/form_component_category_widget_const.py b/src/auth0/management/types/form_component_category_widget_const.py deleted file mode 100644 index 17366136..00000000 --- a/src/auth0/management/types/form_component_category_widget_const.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FormComponentCategoryWidgetConst = typing.Union[typing.Literal["WIDGET"], typing.Any] diff --git a/src/auth0/management/types/form_ending_node.py b/src/auth0/management/types/form_ending_node.py deleted file mode 100644 index 757425a8..00000000 --- a/src/auth0/management/types/form_ending_node.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .form_ending_node_after_submit import FormEndingNodeAfterSubmit -from .form_ending_node_redirection import FormEndingNodeRedirection -from .form_ending_node_resume_flow_true_const import FormEndingNodeResumeFlowTrueConst -from .form_node_coordinates import FormNodeCoordinates - - -class FormEndingNode(UniversalBaseModel): - redirection: typing.Optional[FormEndingNodeRedirection] = None - after_submit: typing.Optional[FormEndingNodeAfterSubmit] = None - coordinates: typing.Optional[FormNodeCoordinates] = None - resume_flow: typing.Optional[FormEndingNodeResumeFlowTrueConst] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_ending_node_after_submit.py b/src/auth0/management/types/form_ending_node_after_submit.py deleted file mode 100644 index e3394c30..00000000 --- a/src/auth0/management/types/form_ending_node_after_submit.py +++ /dev/null @@ -1,19 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class FormEndingNodeAfterSubmit(UniversalBaseModel): - flow_id: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_ending_node_id.py b/src/auth0/management/types/form_ending_node_id.py deleted file mode 100644 index f7e1ef62..00000000 --- a/src/auth0/management/types/form_ending_node_id.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FormEndingNodeId = typing.Union[typing.Literal["$ending"], typing.Any] diff --git a/src/auth0/management/types/form_ending_node_nullable.py b/src/auth0/management/types/form_ending_node_nullable.py deleted file mode 100644 index 7851e07d..00000000 --- a/src/auth0/management/types/form_ending_node_nullable.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .form_ending_node import FormEndingNode - -FormEndingNodeNullable = typing.Optional[FormEndingNode] diff --git a/src/auth0/management/types/form_ending_node_redirection.py b/src/auth0/management/types/form_ending_node_redirection.py deleted file mode 100644 index ef5c3f09..00000000 --- a/src/auth0/management/types/form_ending_node_redirection.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class FormEndingNodeRedirection(UniversalBaseModel): - delay: typing.Optional[int] = None - target: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_ending_node_resume_flow_true_const.py b/src/auth0/management/types/form_ending_node_resume_flow_true_const.py deleted file mode 100644 index 0d1f60e2..00000000 --- a/src/auth0/management/types/form_ending_node_resume_flow_true_const.py +++ /dev/null @@ -1,3 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -FormEndingNodeResumeFlowTrueConst = bool diff --git a/src/auth0/management/types/form_field.py b/src/auth0/management/types/form_field.py deleted file mode 100644 index d61af7ed..00000000 --- a/src/auth0/management/types/form_field.py +++ /dev/null @@ -1,39 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .form_field_boolean import FormFieldBoolean -from .form_field_cards import FormFieldCards -from .form_field_choice import FormFieldChoice -from .form_field_custom import FormFieldCustom -from .form_field_date import FormFieldDate -from .form_field_dropdown import FormFieldDropdown -from .form_field_email import FormFieldEmail -from .form_field_file import FormFieldFile -from .form_field_legal import FormFieldLegal -from .form_field_number import FormFieldNumber -from .form_field_password import FormFieldPassword -from .form_field_payment import FormFieldPayment -from .form_field_social import FormFieldSocial -from .form_field_tel import FormFieldTel -from .form_field_text import FormFieldText -from .form_field_url import FormFieldUrl - -FormField = typing.Union[ - FormFieldBoolean, - FormFieldCards, - FormFieldChoice, - FormFieldCustom, - FormFieldDate, - FormFieldDropdown, - FormFieldEmail, - FormFieldFile, - FormFieldLegal, - FormFieldNumber, - FormFieldPassword, - FormFieldPayment, - FormFieldSocial, - FormFieldTel, - FormFieldText, - FormFieldUrl, -] diff --git a/src/auth0/management/types/form_field_boolean.py b/src/auth0/management/types/form_field_boolean.py deleted file mode 100644 index fa6e6761..00000000 --- a/src/auth0/management/types/form_field_boolean.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .form_component_category_field_const import FormComponentCategoryFieldConst -from .form_field_boolean_config import FormFieldBooleanConfig -from .form_field_type_boolean_const import FormFieldTypeBooleanConst - - -class FormFieldBoolean(UniversalBaseModel): - id: str - category: FormComponentCategoryFieldConst - type: FormFieldTypeBooleanConst - config: FormFieldBooleanConfig - label: typing.Optional[str] = None - hint: typing.Optional[str] = None - required: typing.Optional[bool] = None - sensitive: typing.Optional[bool] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_field_boolean_config.py b/src/auth0/management/types/form_field_boolean_config.py deleted file mode 100644 index 59403d4e..00000000 --- a/src/auth0/management/types/form_field_boolean_config.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .form_field_boolean_config_options import FormFieldBooleanConfigOptions - - -class FormFieldBooleanConfig(UniversalBaseModel): - default_value: typing.Optional[bool] = None - options: typing.Optional[FormFieldBooleanConfigOptions] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_field_boolean_config_options.py b/src/auth0/management/types/form_field_boolean_config_options.py deleted file mode 100644 index d26a5226..00000000 --- a/src/auth0/management/types/form_field_boolean_config_options.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class FormFieldBooleanConfigOptions(UniversalBaseModel): - true: typing.Optional[str] = None - false: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_field_cards.py b/src/auth0/management/types/form_field_cards.py deleted file mode 100644 index 3ee29052..00000000 --- a/src/auth0/management/types/form_field_cards.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .form_component_category_field_const import FormComponentCategoryFieldConst -from .form_field_cards_config import FormFieldCardsConfig -from .form_field_type_cards_const import FormFieldTypeCardsConst - - -class FormFieldCards(UniversalBaseModel): - id: str - category: FormComponentCategoryFieldConst - type: FormFieldTypeCardsConst - config: typing.Optional[FormFieldCardsConfig] = None - label: typing.Optional[str] = None - hint: typing.Optional[str] = None - required: typing.Optional[bool] = None - sensitive: typing.Optional[bool] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_field_cards_config.py b/src/auth0/management/types/form_field_cards_config.py deleted file mode 100644 index 4090959f..00000000 --- a/src/auth0/management/types/form_field_cards_config.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .form_field_cards_config_option import FormFieldCardsConfigOption - - -class FormFieldCardsConfig(UniversalBaseModel): - hide_labels: typing.Optional[bool] = None - multiple: typing.Optional[bool] = None - options: typing.Optional[typing.List[FormFieldCardsConfigOption]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_field_cards_config_option.py b/src/auth0/management/types/form_field_cards_config_option.py deleted file mode 100644 index 1d82a941..00000000 --- a/src/auth0/management/types/form_field_cards_config_option.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class FormFieldCardsConfigOption(UniversalBaseModel): - value: str - label: str - image_url: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_field_choice.py b/src/auth0/management/types/form_field_choice.py deleted file mode 100644 index 584cd0e7..00000000 --- a/src/auth0/management/types/form_field_choice.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .form_component_category_field_const import FormComponentCategoryFieldConst -from .form_field_choice_config import FormFieldChoiceConfig -from .form_field_type_choice_const import FormFieldTypeChoiceConst - - -class FormFieldChoice(UniversalBaseModel): - id: str - category: FormComponentCategoryFieldConst - type: FormFieldTypeChoiceConst - config: typing.Optional[FormFieldChoiceConfig] = None - label: typing.Optional[str] = None - hint: typing.Optional[str] = None - required: typing.Optional[bool] = None - sensitive: typing.Optional[bool] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_field_choice_config.py b/src/auth0/management/types/form_field_choice_config.py deleted file mode 100644 index 733c4f0d..00000000 --- a/src/auth0/management/types/form_field_choice_config.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .form_field_choice_config_allow_other import FormFieldChoiceConfigAllowOther -from .form_field_choice_config_option import FormFieldChoiceConfigOption - - -class FormFieldChoiceConfig(UniversalBaseModel): - multiple: typing.Optional[bool] = None - options: typing.Optional[typing.List[FormFieldChoiceConfigOption]] = None - allow_other: typing.Optional[FormFieldChoiceConfigAllowOther] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_field_choice_config_allow_other.py b/src/auth0/management/types/form_field_choice_config_allow_other.py deleted file mode 100644 index 6b0e9186..00000000 --- a/src/auth0/management/types/form_field_choice_config_allow_other.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .form_field_choice_config_allow_other_enabled_true_enum import FormFieldChoiceConfigAllowOtherEnabledTrueEnum - - -class FormFieldChoiceConfigAllowOther(UniversalBaseModel): - enabled: typing.Optional[FormFieldChoiceConfigAllowOtherEnabledTrueEnum] = None - label: typing.Optional[str] = None - placeholder: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_field_choice_config_allow_other_enabled_true_enum.py b/src/auth0/management/types/form_field_choice_config_allow_other_enabled_true_enum.py deleted file mode 100644 index c2f58a9c..00000000 --- a/src/auth0/management/types/form_field_choice_config_allow_other_enabled_true_enum.py +++ /dev/null @@ -1,3 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -FormFieldChoiceConfigAllowOtherEnabledTrueEnum = bool diff --git a/src/auth0/management/types/form_field_choice_config_option.py b/src/auth0/management/types/form_field_choice_config_option.py deleted file mode 100644 index 3218a657..00000000 --- a/src/auth0/management/types/form_field_choice_config_option.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class FormFieldChoiceConfigOption(UniversalBaseModel): - value: str - label: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_field_custom.py b/src/auth0/management/types/form_field_custom.py deleted file mode 100644 index f21bcb0a..00000000 --- a/src/auth0/management/types/form_field_custom.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .form_component_category_field_const import FormComponentCategoryFieldConst -from .form_field_custom_config import FormFieldCustomConfig -from .form_field_type_custom_const import FormFieldTypeCustomConst - - -class FormFieldCustom(UniversalBaseModel): - id: str - category: FormComponentCategoryFieldConst - type: FormFieldTypeCustomConst - config: FormFieldCustomConfig - label: typing.Optional[str] = None - hint: typing.Optional[str] = None - required: typing.Optional[bool] = None - sensitive: typing.Optional[bool] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_field_custom_config.py b/src/auth0/management/types/form_field_custom_config.py deleted file mode 100644 index 812969a5..00000000 --- a/src/auth0/management/types/form_field_custom_config.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .form_field_custom_config_params import FormFieldCustomConfigParams -from .form_field_custom_config_schema import FormFieldCustomConfigSchema - - -class FormFieldCustomConfig(UniversalBaseModel): - schema_: typing_extensions.Annotated[ - FormFieldCustomConfigSchema, FieldMetadata(alias="schema"), pydantic.Field(alias="schema") - ] - code: str - css: typing.Optional[str] = None - params: typing.Optional[FormFieldCustomConfigParams] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_field_custom_config_params.py b/src/auth0/management/types/form_field_custom_config_params.py deleted file mode 100644 index 51290396..00000000 --- a/src/auth0/management/types/form_field_custom_config_params.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FormFieldCustomConfigParams = typing.Dict[str, str] diff --git a/src/auth0/management/types/form_field_custom_config_schema.py b/src/auth0/management/types/form_field_custom_config_schema.py deleted file mode 100644 index c2947a40..00000000 --- a/src/auth0/management/types/form_field_custom_config_schema.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FormFieldCustomConfigSchema = typing.Dict[str, typing.Any] diff --git a/src/auth0/management/types/form_field_date.py b/src/auth0/management/types/form_field_date.py deleted file mode 100644 index 5af82f81..00000000 --- a/src/auth0/management/types/form_field_date.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .form_component_category_field_const import FormComponentCategoryFieldConst -from .form_field_date_config import FormFieldDateConfig -from .form_field_type_date_const import FormFieldTypeDateConst - - -class FormFieldDate(UniversalBaseModel): - id: str - category: FormComponentCategoryFieldConst - type: FormFieldTypeDateConst - config: FormFieldDateConfig - label: typing.Optional[str] = None - hint: typing.Optional[str] = None - required: typing.Optional[bool] = None - sensitive: typing.Optional[bool] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_field_date_config.py b/src/auth0/management/types/form_field_date_config.py deleted file mode 100644 index bfb80cf6..00000000 --- a/src/auth0/management/types/form_field_date_config.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .form_field_date_config_format_enum import FormFieldDateConfigFormatEnum - - -class FormFieldDateConfig(UniversalBaseModel): - format: typing.Optional[FormFieldDateConfigFormatEnum] = None - default_value: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_field_date_config_format_enum.py b/src/auth0/management/types/form_field_date_config_format_enum.py deleted file mode 100644 index e353b174..00000000 --- a/src/auth0/management/types/form_field_date_config_format_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FormFieldDateConfigFormatEnum = typing.Union[typing.Literal["DATE", "TIME"], typing.Any] diff --git a/src/auth0/management/types/form_field_dropdown.py b/src/auth0/management/types/form_field_dropdown.py deleted file mode 100644 index 184b7586..00000000 --- a/src/auth0/management/types/form_field_dropdown.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .form_component_category_field_const import FormComponentCategoryFieldConst -from .form_field_dropdown_config import FormFieldDropdownConfig -from .form_field_type_dropdown_const import FormFieldTypeDropdownConst - - -class FormFieldDropdown(UniversalBaseModel): - id: str - category: FormComponentCategoryFieldConst - type: FormFieldTypeDropdownConst - config: typing.Optional[FormFieldDropdownConfig] = None - label: typing.Optional[str] = None - hint: typing.Optional[str] = None - required: typing.Optional[bool] = None - sensitive: typing.Optional[bool] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_field_dropdown_config.py b/src/auth0/management/types/form_field_dropdown_config.py deleted file mode 100644 index 9783fc1c..00000000 --- a/src/auth0/management/types/form_field_dropdown_config.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .form_field_dropdown_config_option import FormFieldDropdownConfigOption - - -class FormFieldDropdownConfig(UniversalBaseModel): - multiple: typing.Optional[bool] = None - options: typing.Optional[typing.List[FormFieldDropdownConfigOption]] = None - placeholder: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_field_dropdown_config_option.py b/src/auth0/management/types/form_field_dropdown_config_option.py deleted file mode 100644 index e3594d48..00000000 --- a/src/auth0/management/types/form_field_dropdown_config_option.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class FormFieldDropdownConfigOption(UniversalBaseModel): - value: str - label: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_field_email.py b/src/auth0/management/types/form_field_email.py deleted file mode 100644 index 98e82697..00000000 --- a/src/auth0/management/types/form_field_email.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .form_component_category_field_const import FormComponentCategoryFieldConst -from .form_field_email_config import FormFieldEmailConfig -from .form_field_type_email_const import FormFieldTypeEmailConst - - -class FormFieldEmail(UniversalBaseModel): - id: str - category: FormComponentCategoryFieldConst - type: FormFieldTypeEmailConst - config: typing.Optional[FormFieldEmailConfig] = None - label: typing.Optional[str] = None - hint: typing.Optional[str] = None - required: typing.Optional[bool] = None - sensitive: typing.Optional[bool] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_field_email_config.py b/src/auth0/management/types/form_field_email_config.py deleted file mode 100644 index e9a4be97..00000000 --- a/src/auth0/management/types/form_field_email_config.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class FormFieldEmailConfig(UniversalBaseModel): - default_value: typing.Optional[str] = None - placeholder: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_field_file.py b/src/auth0/management/types/form_field_file.py deleted file mode 100644 index fe573ec8..00000000 --- a/src/auth0/management/types/form_field_file.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .form_component_category_field_const import FormComponentCategoryFieldConst -from .form_field_file_config import FormFieldFileConfig -from .form_field_type_file_const import FormFieldTypeFileConst - - -class FormFieldFile(UniversalBaseModel): - id: str - category: FormComponentCategoryFieldConst - type: FormFieldTypeFileConst - config: typing.Optional[FormFieldFileConfig] = None - label: typing.Optional[str] = None - hint: typing.Optional[str] = None - required: typing.Optional[bool] = None - sensitive: typing.Optional[bool] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_field_file_config.py b/src/auth0/management/types/form_field_file_config.py deleted file mode 100644 index f3a296b1..00000000 --- a/src/auth0/management/types/form_field_file_config.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .form_field_file_config_category_enum import FormFieldFileConfigCategoryEnum -from .form_field_file_config_storage import FormFieldFileConfigStorage - - -class FormFieldFileConfig(UniversalBaseModel): - multiple: typing.Optional[bool] = None - storage: typing.Optional[FormFieldFileConfigStorage] = None - categories: typing.Optional[typing.List[FormFieldFileConfigCategoryEnum]] = None - extensions: typing.Optional[typing.List[str]] = None - max_size: typing_extensions.Annotated[ - typing.Optional[int], FieldMetadata(alias="maxSize"), pydantic.Field(alias="maxSize") - ] = None - max_files: typing_extensions.Annotated[ - typing.Optional[int], FieldMetadata(alias="maxFiles"), pydantic.Field(alias="maxFiles") - ] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_field_file_config_category_enum.py b/src/auth0/management/types/form_field_file_config_category_enum.py deleted file mode 100644 index 5baf9fee..00000000 --- a/src/auth0/management/types/form_field_file_config_category_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FormFieldFileConfigCategoryEnum = typing.Union[ - typing.Literal["AUDIO", "VIDEO", "IMAGE", "DOCUMENT", "ARCHIVE"], typing.Any -] diff --git a/src/auth0/management/types/form_field_file_config_storage.py b/src/auth0/management/types/form_field_file_config_storage.py deleted file mode 100644 index 845884f1..00000000 --- a/src/auth0/management/types/form_field_file_config_storage.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .form_field_file_config_storage_type_enum import FormFieldFileConfigStorageTypeEnum - - -class FormFieldFileConfigStorage(UniversalBaseModel): - type: FormFieldFileConfigStorageTypeEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_field_file_config_storage_type_enum.py b/src/auth0/management/types/form_field_file_config_storage_type_enum.py deleted file mode 100644 index 4e7d9b94..00000000 --- a/src/auth0/management/types/form_field_file_config_storage_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FormFieldFileConfigStorageTypeEnum = typing.Union[typing.Literal["MANAGED", "CUSTOM"], typing.Any] diff --git a/src/auth0/management/types/form_field_legal.py b/src/auth0/management/types/form_field_legal.py deleted file mode 100644 index b09721aa..00000000 --- a/src/auth0/management/types/form_field_legal.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .form_component_category_field_const import FormComponentCategoryFieldConst -from .form_field_legal_config import FormFieldLegalConfig -from .form_field_type_legal_const import FormFieldTypeLegalConst - - -class FormFieldLegal(UniversalBaseModel): - id: str - category: FormComponentCategoryFieldConst - type: FormFieldTypeLegalConst - config: typing.Optional[FormFieldLegalConfig] = None - label: typing.Optional[str] = None - hint: typing.Optional[str] = None - required: typing.Optional[bool] = None - sensitive: typing.Optional[bool] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_field_legal_config.py b/src/auth0/management/types/form_field_legal_config.py deleted file mode 100644 index d65b21ac..00000000 --- a/src/auth0/management/types/form_field_legal_config.py +++ /dev/null @@ -1,19 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class FormFieldLegalConfig(UniversalBaseModel): - text: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_field_number.py b/src/auth0/management/types/form_field_number.py deleted file mode 100644 index 3e3eb2d7..00000000 --- a/src/auth0/management/types/form_field_number.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .form_component_category_field_const import FormComponentCategoryFieldConst -from .form_field_number_config import FormFieldNumberConfig -from .form_field_type_number_const import FormFieldTypeNumberConst - - -class FormFieldNumber(UniversalBaseModel): - id: str - category: FormComponentCategoryFieldConst - type: FormFieldTypeNumberConst - config: typing.Optional[FormFieldNumberConfig] = None - label: typing.Optional[str] = None - hint: typing.Optional[str] = None - required: typing.Optional[bool] = None - sensitive: typing.Optional[bool] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_field_number_config.py b/src/auth0/management/types/form_field_number_config.py deleted file mode 100644 index 22451cb9..00000000 --- a/src/auth0/management/types/form_field_number_config.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class FormFieldNumberConfig(UniversalBaseModel): - default_value: typing.Optional[float] = None - placeholder: typing.Optional[str] = None - min_value: typing.Optional[float] = None - max_value: typing.Optional[float] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_field_password.py b/src/auth0/management/types/form_field_password.py deleted file mode 100644 index 8ab320b7..00000000 --- a/src/auth0/management/types/form_field_password.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .form_component_category_field_const import FormComponentCategoryFieldConst -from .form_field_password_config import FormFieldPasswordConfig -from .form_field_type_password_const import FormFieldTypePasswordConst - - -class FormFieldPassword(UniversalBaseModel): - id: str - category: FormComponentCategoryFieldConst - type: FormFieldTypePasswordConst - config: FormFieldPasswordConfig - label: typing.Optional[str] = None - hint: typing.Optional[str] = None - required: typing.Optional[bool] = None - sensitive: typing.Optional[bool] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_field_password_config.py b/src/auth0/management/types/form_field_password_config.py deleted file mode 100644 index fc0ec977..00000000 --- a/src/auth0/management/types/form_field_password_config.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .form_field_password_config_hash_enum import FormFieldPasswordConfigHashEnum - - -class FormFieldPasswordConfig(UniversalBaseModel): - hash: typing.Optional[FormFieldPasswordConfigHashEnum] = None - placeholder: typing.Optional[str] = None - min_length: typing.Optional[int] = None - max_length: typing.Optional[int] = None - complexity: typing.Optional[bool] = None - nist: typing.Optional[bool] = None - strength_meter: typing.Optional[bool] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_field_password_config_hash_enum.py b/src/auth0/management/types/form_field_password_config_hash_enum.py deleted file mode 100644 index 9f6c956c..00000000 --- a/src/auth0/management/types/form_field_password_config_hash_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FormFieldPasswordConfigHashEnum = typing.Union[typing.Literal["NONE", "MD5", "SHA1", "SHA256", "SHA512"], typing.Any] diff --git a/src/auth0/management/types/form_field_payment.py b/src/auth0/management/types/form_field_payment.py deleted file mode 100644 index cb6e335d..00000000 --- a/src/auth0/management/types/form_field_payment.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .form_component_category_field_const import FormComponentCategoryFieldConst -from .form_field_payment_config import FormFieldPaymentConfig -from .form_field_type_payment_const import FormFieldTypePaymentConst - - -class FormFieldPayment(UniversalBaseModel): - id: str - category: FormComponentCategoryFieldConst - type: FormFieldTypePaymentConst - config: FormFieldPaymentConfig - label: typing.Optional[str] = None - hint: typing.Optional[str] = None - required: typing.Optional[bool] = None - sensitive: typing.Optional[bool] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_field_payment_config.py b/src/auth0/management/types/form_field_payment_config.py deleted file mode 100644 index 6540c157..00000000 --- a/src/auth0/management/types/form_field_payment_config.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .form_field_payment_config_charge import FormFieldPaymentConfigCharge -from .form_field_payment_config_credentials import FormFieldPaymentConfigCredentials -from .form_field_payment_config_customer import FormFieldPaymentConfigCustomer -from .form_field_payment_config_fields import FormFieldPaymentConfigFields -from .form_field_payment_config_provider_enum import FormFieldPaymentConfigProviderEnum - - -class FormFieldPaymentConfig(UniversalBaseModel): - provider: typing.Optional[FormFieldPaymentConfigProviderEnum] = None - charge: FormFieldPaymentConfigCharge - credentials: FormFieldPaymentConfigCredentials - customer: typing.Optional[FormFieldPaymentConfigCustomer] = None - fields: typing.Optional[FormFieldPaymentConfigFields] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_field_payment_config_charge.py b/src/auth0/management/types/form_field_payment_config_charge.py deleted file mode 100644 index 51ebb0e2..00000000 --- a/src/auth0/management/types/form_field_payment_config_charge.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .form_field_payment_config_charge_one_off import FormFieldPaymentConfigChargeOneOff -from .form_field_payment_config_charge_subscription import FormFieldPaymentConfigChargeSubscription - -FormFieldPaymentConfigCharge = typing.Union[ - FormFieldPaymentConfigChargeOneOff, FormFieldPaymentConfigChargeSubscription -] diff --git a/src/auth0/management/types/form_field_payment_config_charge_one_off.py b/src/auth0/management/types/form_field_payment_config_charge_one_off.py deleted file mode 100644 index 07703dae..00000000 --- a/src/auth0/management/types/form_field_payment_config_charge_one_off.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .form_field_payment_config_charge_one_off_one_off import FormFieldPaymentConfigChargeOneOffOneOff -from .form_field_payment_config_charge_type_one_off_const import FormFieldPaymentConfigChargeTypeOneOffConst - - -class FormFieldPaymentConfigChargeOneOff(UniversalBaseModel): - type: FormFieldPaymentConfigChargeTypeOneOffConst - one_off: FormFieldPaymentConfigChargeOneOffOneOff - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_field_payment_config_charge_one_off_currency_enum.py b/src/auth0/management/types/form_field_payment_config_charge_one_off_currency_enum.py deleted file mode 100644 index 15d21e48..00000000 --- a/src/auth0/management/types/form_field_payment_config_charge_one_off_currency_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FormFieldPaymentConfigChargeOneOffCurrencyEnum = typing.Union[ - typing.Literal["AUD", "CAD", "CHF", "EUR", "GBP", "INR", "MXN", "SEK", "USD"], typing.Any -] diff --git a/src/auth0/management/types/form_field_payment_config_charge_one_off_one_off.py b/src/auth0/management/types/form_field_payment_config_charge_one_off_one_off.py deleted file mode 100644 index 19c86dfe..00000000 --- a/src/auth0/management/types/form_field_payment_config_charge_one_off_one_off.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .form_field_payment_config_charge_one_off_currency_enum import FormFieldPaymentConfigChargeOneOffCurrencyEnum -from .form_field_payment_config_charge_one_off_one_off_amount import FormFieldPaymentConfigChargeOneOffOneOffAmount - - -class FormFieldPaymentConfigChargeOneOffOneOff(UniversalBaseModel): - amount: FormFieldPaymentConfigChargeOneOffOneOffAmount - currency: FormFieldPaymentConfigChargeOneOffCurrencyEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_field_payment_config_charge_one_off_one_off_amount.py b/src/auth0/management/types/form_field_payment_config_charge_one_off_one_off_amount.py deleted file mode 100644 index ae19fc11..00000000 --- a/src/auth0/management/types/form_field_payment_config_charge_one_off_one_off_amount.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FormFieldPaymentConfigChargeOneOffOneOffAmount = typing.Union[str, float] diff --git a/src/auth0/management/types/form_field_payment_config_charge_subscription.py b/src/auth0/management/types/form_field_payment_config_charge_subscription.py deleted file mode 100644 index c7739448..00000000 --- a/src/auth0/management/types/form_field_payment_config_charge_subscription.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .form_field_payment_config_charge_type_subscription_const import FormFieldPaymentConfigChargeTypeSubscriptionConst -from .form_field_payment_config_subscription import FormFieldPaymentConfigSubscription - - -class FormFieldPaymentConfigChargeSubscription(UniversalBaseModel): - type: FormFieldPaymentConfigChargeTypeSubscriptionConst - subscription: FormFieldPaymentConfigSubscription - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_field_payment_config_charge_type_one_off_const.py b/src/auth0/management/types/form_field_payment_config_charge_type_one_off_const.py deleted file mode 100644 index 97387080..00000000 --- a/src/auth0/management/types/form_field_payment_config_charge_type_one_off_const.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FormFieldPaymentConfigChargeTypeOneOffConst = typing.Union[typing.Literal["ONE_OFF"], typing.Any] diff --git a/src/auth0/management/types/form_field_payment_config_charge_type_subscription_const.py b/src/auth0/management/types/form_field_payment_config_charge_type_subscription_const.py deleted file mode 100644 index 6ed00dfe..00000000 --- a/src/auth0/management/types/form_field_payment_config_charge_type_subscription_const.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FormFieldPaymentConfigChargeTypeSubscriptionConst = typing.Union[typing.Literal["SUBSCRIPTION"], typing.Any] diff --git a/src/auth0/management/types/form_field_payment_config_credentials.py b/src/auth0/management/types/form_field_payment_config_credentials.py deleted file mode 100644 index 066c5ff6..00000000 --- a/src/auth0/management/types/form_field_payment_config_credentials.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class FormFieldPaymentConfigCredentials(UniversalBaseModel): - public_key: str - private_key: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_field_payment_config_customer.py b/src/auth0/management/types/form_field_payment_config_customer.py deleted file mode 100644 index 09ff92cf..00000000 --- a/src/auth0/management/types/form_field_payment_config_customer.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FormFieldPaymentConfigCustomer = typing.Dict[str, typing.Any] diff --git a/src/auth0/management/types/form_field_payment_config_field_properties.py b/src/auth0/management/types/form_field_payment_config_field_properties.py deleted file mode 100644 index 823403de..00000000 --- a/src/auth0/management/types/form_field_payment_config_field_properties.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class FormFieldPaymentConfigFieldProperties(UniversalBaseModel): - label: typing.Optional[str] = None - placeholder: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_field_payment_config_fields.py b/src/auth0/management/types/form_field_payment_config_fields.py deleted file mode 100644 index 9ef0712f..00000000 --- a/src/auth0/management/types/form_field_payment_config_fields.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .form_field_payment_config_field_properties import FormFieldPaymentConfigFieldProperties - - -class FormFieldPaymentConfigFields(UniversalBaseModel): - card_number: typing.Optional[FormFieldPaymentConfigFieldProperties] = None - expiration_date: typing.Optional[FormFieldPaymentConfigFieldProperties] = None - security_code: typing.Optional[FormFieldPaymentConfigFieldProperties] = None - trustmarks: typing.Optional[bool] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_field_payment_config_provider_enum.py b/src/auth0/management/types/form_field_payment_config_provider_enum.py deleted file mode 100644 index 6267255c..00000000 --- a/src/auth0/management/types/form_field_payment_config_provider_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FormFieldPaymentConfigProviderEnum = typing.Union[typing.Literal["STRIPE"], typing.Any] diff --git a/src/auth0/management/types/form_field_payment_config_subscription.py b/src/auth0/management/types/form_field_payment_config_subscription.py deleted file mode 100644 index eb8bde7e..00000000 --- a/src/auth0/management/types/form_field_payment_config_subscription.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FormFieldPaymentConfigSubscription = typing.Dict[str, typing.Any] diff --git a/src/auth0/management/types/form_field_social.py b/src/auth0/management/types/form_field_social.py deleted file mode 100644 index 5598c14d..00000000 --- a/src/auth0/management/types/form_field_social.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .form_component_category_field_const import FormComponentCategoryFieldConst -from .form_field_social_config import FormFieldSocialConfig -from .form_field_type_social_const import FormFieldTypeSocialConst - - -class FormFieldSocial(UniversalBaseModel): - id: str - category: FormComponentCategoryFieldConst - type: FormFieldTypeSocialConst - config: typing.Optional[FormFieldSocialConfig] = None - label: typing.Optional[str] = None - hint: typing.Optional[str] = None - required: typing.Optional[bool] = None - sensitive: typing.Optional[bool] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_field_social_config.py b/src/auth0/management/types/form_field_social_config.py deleted file mode 100644 index 2cbce7a1..00000000 --- a/src/auth0/management/types/form_field_social_config.py +++ /dev/null @@ -1,17 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class FormFieldSocialConfig(UniversalBaseModel): - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_field_tel.py b/src/auth0/management/types/form_field_tel.py deleted file mode 100644 index cebda9f7..00000000 --- a/src/auth0/management/types/form_field_tel.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .form_component_category_field_const import FormComponentCategoryFieldConst -from .form_field_tel_config import FormFieldTelConfig -from .form_field_type_tel_const import FormFieldTypeTelConst - - -class FormFieldTel(UniversalBaseModel): - id: str - category: FormComponentCategoryFieldConst - type: FormFieldTypeTelConst - config: typing.Optional[FormFieldTelConfig] = None - label: typing.Optional[str] = None - hint: typing.Optional[str] = None - required: typing.Optional[bool] = None - sensitive: typing.Optional[bool] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_field_tel_config.py b/src/auth0/management/types/form_field_tel_config.py deleted file mode 100644 index f0a674e1..00000000 --- a/src/auth0/management/types/form_field_tel_config.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .form_field_tel_config_strings import FormFieldTelConfigStrings - - -class FormFieldTelConfig(UniversalBaseModel): - default_value: typing.Optional[str] = None - placeholder: typing.Optional[str] = None - min_length: typing.Optional[int] = None - max_length: typing.Optional[int] = None - country_picker: typing.Optional[bool] = None - strings: typing.Optional[FormFieldTelConfigStrings] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_field_tel_config_strings.py b/src/auth0/management/types/form_field_tel_config_strings.py deleted file mode 100644 index 463f84e5..00000000 --- a/src/auth0/management/types/form_field_tel_config_strings.py +++ /dev/null @@ -1,19 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class FormFieldTelConfigStrings(UniversalBaseModel): - filter_placeholder: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_field_text.py b/src/auth0/management/types/form_field_text.py deleted file mode 100644 index 0b3c1913..00000000 --- a/src/auth0/management/types/form_field_text.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .form_component_category_field_const import FormComponentCategoryFieldConst -from .form_field_text_config import FormFieldTextConfig -from .form_field_type_text_const import FormFieldTypeTextConst - - -class FormFieldText(UniversalBaseModel): - id: str - category: FormComponentCategoryFieldConst - type: FormFieldTypeTextConst - config: typing.Optional[FormFieldTextConfig] = None - label: typing.Optional[str] = None - hint: typing.Optional[str] = None - required: typing.Optional[bool] = None - sensitive: typing.Optional[bool] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_field_text_config.py b/src/auth0/management/types/form_field_text_config.py deleted file mode 100644 index 73eabb40..00000000 --- a/src/auth0/management/types/form_field_text_config.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class FormFieldTextConfig(UniversalBaseModel): - multiline: typing.Optional[bool] = None - default_value: typing.Optional[str] = None - placeholder: typing.Optional[str] = None - min_length: typing.Optional[int] = None - max_length: typing.Optional[int] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_field_type_boolean_const.py b/src/auth0/management/types/form_field_type_boolean_const.py deleted file mode 100644 index 4bdb9ee7..00000000 --- a/src/auth0/management/types/form_field_type_boolean_const.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FormFieldTypeBooleanConst = typing.Union[typing.Literal["BOOLEAN"], typing.Any] diff --git a/src/auth0/management/types/form_field_type_cards_const.py b/src/auth0/management/types/form_field_type_cards_const.py deleted file mode 100644 index 1ec606ab..00000000 --- a/src/auth0/management/types/form_field_type_cards_const.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FormFieldTypeCardsConst = typing.Union[typing.Literal["CARDS"], typing.Any] diff --git a/src/auth0/management/types/form_field_type_choice_const.py b/src/auth0/management/types/form_field_type_choice_const.py deleted file mode 100644 index 20053068..00000000 --- a/src/auth0/management/types/form_field_type_choice_const.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FormFieldTypeChoiceConst = typing.Union[typing.Literal["CHOICE"], typing.Any] diff --git a/src/auth0/management/types/form_field_type_custom_const.py b/src/auth0/management/types/form_field_type_custom_const.py deleted file mode 100644 index 19bde7a6..00000000 --- a/src/auth0/management/types/form_field_type_custom_const.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FormFieldTypeCustomConst = typing.Union[typing.Literal["CUSTOM"], typing.Any] diff --git a/src/auth0/management/types/form_field_type_date_const.py b/src/auth0/management/types/form_field_type_date_const.py deleted file mode 100644 index 64728226..00000000 --- a/src/auth0/management/types/form_field_type_date_const.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FormFieldTypeDateConst = typing.Union[typing.Literal["DATE"], typing.Any] diff --git a/src/auth0/management/types/form_field_type_dropdown_const.py b/src/auth0/management/types/form_field_type_dropdown_const.py deleted file mode 100644 index 4062b952..00000000 --- a/src/auth0/management/types/form_field_type_dropdown_const.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FormFieldTypeDropdownConst = typing.Union[typing.Literal["DROPDOWN"], typing.Any] diff --git a/src/auth0/management/types/form_field_type_email_const.py b/src/auth0/management/types/form_field_type_email_const.py deleted file mode 100644 index dbd1fc56..00000000 --- a/src/auth0/management/types/form_field_type_email_const.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FormFieldTypeEmailConst = typing.Union[typing.Literal["EMAIL"], typing.Any] diff --git a/src/auth0/management/types/form_field_type_file_const.py b/src/auth0/management/types/form_field_type_file_const.py deleted file mode 100644 index 45c831bd..00000000 --- a/src/auth0/management/types/form_field_type_file_const.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FormFieldTypeFileConst = typing.Union[typing.Literal["FILE"], typing.Any] diff --git a/src/auth0/management/types/form_field_type_legal_const.py b/src/auth0/management/types/form_field_type_legal_const.py deleted file mode 100644 index cb8c8f24..00000000 --- a/src/auth0/management/types/form_field_type_legal_const.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FormFieldTypeLegalConst = typing.Union[typing.Literal["LEGAL"], typing.Any] diff --git a/src/auth0/management/types/form_field_type_number_const.py b/src/auth0/management/types/form_field_type_number_const.py deleted file mode 100644 index 43aaa648..00000000 --- a/src/auth0/management/types/form_field_type_number_const.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FormFieldTypeNumberConst = typing.Union[typing.Literal["NUMBER"], typing.Any] diff --git a/src/auth0/management/types/form_field_type_password_const.py b/src/auth0/management/types/form_field_type_password_const.py deleted file mode 100644 index 58d0321b..00000000 --- a/src/auth0/management/types/form_field_type_password_const.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FormFieldTypePasswordConst = typing.Union[typing.Literal["PASSWORD"], typing.Any] diff --git a/src/auth0/management/types/form_field_type_payment_const.py b/src/auth0/management/types/form_field_type_payment_const.py deleted file mode 100644 index 68fd2350..00000000 --- a/src/auth0/management/types/form_field_type_payment_const.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FormFieldTypePaymentConst = typing.Union[typing.Literal["PAYMENT"], typing.Any] diff --git a/src/auth0/management/types/form_field_type_social_const.py b/src/auth0/management/types/form_field_type_social_const.py deleted file mode 100644 index e0f91e19..00000000 --- a/src/auth0/management/types/form_field_type_social_const.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FormFieldTypeSocialConst = typing.Union[typing.Literal["SOCIAL"], typing.Any] diff --git a/src/auth0/management/types/form_field_type_tel_const.py b/src/auth0/management/types/form_field_type_tel_const.py deleted file mode 100644 index 3d203444..00000000 --- a/src/auth0/management/types/form_field_type_tel_const.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FormFieldTypeTelConst = typing.Union[typing.Literal["TEL"], typing.Any] diff --git a/src/auth0/management/types/form_field_type_text_const.py b/src/auth0/management/types/form_field_type_text_const.py deleted file mode 100644 index 48d9bf05..00000000 --- a/src/auth0/management/types/form_field_type_text_const.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FormFieldTypeTextConst = typing.Union[typing.Literal["TEXT"], typing.Any] diff --git a/src/auth0/management/types/form_field_type_url_const.py b/src/auth0/management/types/form_field_type_url_const.py deleted file mode 100644 index a6e2c035..00000000 --- a/src/auth0/management/types/form_field_type_url_const.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FormFieldTypeUrlConst = typing.Union[typing.Literal["URL"], typing.Any] diff --git a/src/auth0/management/types/form_field_url.py b/src/auth0/management/types/form_field_url.py deleted file mode 100644 index 722fc58d..00000000 --- a/src/auth0/management/types/form_field_url.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .form_component_category_field_const import FormComponentCategoryFieldConst -from .form_field_type_url_const import FormFieldTypeUrlConst -from .form_field_url_config import FormFieldUrlConfig - - -class FormFieldUrl(UniversalBaseModel): - id: str - category: FormComponentCategoryFieldConst - type: FormFieldTypeUrlConst - config: typing.Optional[FormFieldUrlConfig] = None - label: typing.Optional[str] = None - hint: typing.Optional[str] = None - required: typing.Optional[bool] = None - sensitive: typing.Optional[bool] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_field_url_config.py b/src/auth0/management/types/form_field_url_config.py deleted file mode 100644 index e93a450d..00000000 --- a/src/auth0/management/types/form_field_url_config.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class FormFieldUrlConfig(UniversalBaseModel): - default_value: typing.Optional[str] = None - placeholder: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_flow.py b/src/auth0/management/types/form_flow.py deleted file mode 100644 index de0d6e8d..00000000 --- a/src/auth0/management/types/form_flow.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .form_flow_config import FormFlowConfig -from .form_node_coordinates import FormNodeCoordinates -from .form_node_type_flow_const import FormNodeTypeFlowConst - - -class FormFlow(UniversalBaseModel): - id: str - type: FormNodeTypeFlowConst - coordinates: typing.Optional[FormNodeCoordinates] = None - alias: typing.Optional[str] = None - config: FormFlowConfig - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_flow_config.py b/src/auth0/management/types/form_flow_config.py deleted file mode 100644 index 5ad89719..00000000 --- a/src/auth0/management/types/form_flow_config.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .form_node_pointer import FormNodePointer - - -class FormFlowConfig(UniversalBaseModel): - flow_id: str - next_node: typing.Optional[FormNodePointer] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_hidden_field.py b/src/auth0/management/types/form_hidden_field.py deleted file mode 100644 index c3a57f7f..00000000 --- a/src/auth0/management/types/form_hidden_field.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class FormHiddenField(UniversalBaseModel): - key: str - value: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_languages.py b/src/auth0/management/types/form_languages.py deleted file mode 100644 index 43930c22..00000000 --- a/src/auth0/management/types/form_languages.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class FormLanguages(UniversalBaseModel): - primary: typing.Optional[str] = None - default: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_languages_nullable.py b/src/auth0/management/types/form_languages_nullable.py deleted file mode 100644 index a0bc6c3b..00000000 --- a/src/auth0/management/types/form_languages_nullable.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .form_languages import FormLanguages - -FormLanguagesNullable = typing.Optional[FormLanguages] diff --git a/src/auth0/management/types/form_messages.py b/src/auth0/management/types/form_messages.py deleted file mode 100644 index 85eba1fc..00000000 --- a/src/auth0/management/types/form_messages.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .form_messages_custom import FormMessagesCustom -from .form_messages_error import FormMessagesError - - -class FormMessages(UniversalBaseModel): - errors: typing.Optional[FormMessagesError] = None - custom: typing.Optional[FormMessagesCustom] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_messages_custom.py b/src/auth0/management/types/form_messages_custom.py deleted file mode 100644 index a607984f..00000000 --- a/src/auth0/management/types/form_messages_custom.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FormMessagesCustom = typing.Dict[str, str] diff --git a/src/auth0/management/types/form_messages_error.py b/src/auth0/management/types/form_messages_error.py deleted file mode 100644 index 9c9705ac..00000000 --- a/src/auth0/management/types/form_messages_error.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FormMessagesError = typing.Dict[str, str] diff --git a/src/auth0/management/types/form_messages_nullable.py b/src/auth0/management/types/form_messages_nullable.py deleted file mode 100644 index 1ec691e1..00000000 --- a/src/auth0/management/types/form_messages_nullable.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .form_messages import FormMessages - -FormMessagesNullable = typing.Optional[FormMessages] diff --git a/src/auth0/management/types/form_node.py b/src/auth0/management/types/form_node.py deleted file mode 100644 index fad6e9e6..00000000 --- a/src/auth0/management/types/form_node.py +++ /dev/null @@ -1,9 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .form_flow import FormFlow -from .form_router import FormRouter -from .form_step import FormStep - -FormNode = typing.Union[FormFlow, FormRouter, FormStep] diff --git a/src/auth0/management/types/form_node_coordinates.py b/src/auth0/management/types/form_node_coordinates.py deleted file mode 100644 index dc009c3e..00000000 --- a/src/auth0/management/types/form_node_coordinates.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class FormNodeCoordinates(UniversalBaseModel): - x: int - y: int - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_node_list.py b/src/auth0/management/types/form_node_list.py deleted file mode 100644 index 33c79790..00000000 --- a/src/auth0/management/types/form_node_list.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .form_node import FormNode - -FormNodeList = typing.List[FormNode] diff --git a/src/auth0/management/types/form_node_list_nullable.py b/src/auth0/management/types/form_node_list_nullable.py deleted file mode 100644 index e3c4cb61..00000000 --- a/src/auth0/management/types/form_node_list_nullable.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .form_node_list import FormNodeList - -FormNodeListNullable = typing.Optional[FormNodeList] diff --git a/src/auth0/management/types/form_node_pointer.py b/src/auth0/management/types/form_node_pointer.py deleted file mode 100644 index b8b09210..00000000 --- a/src/auth0/management/types/form_node_pointer.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .form_ending_node_id import FormEndingNodeId - -FormNodePointer = typing.Union[str, FormEndingNodeId] diff --git a/src/auth0/management/types/form_node_type_flow_const.py b/src/auth0/management/types/form_node_type_flow_const.py deleted file mode 100644 index a004489a..00000000 --- a/src/auth0/management/types/form_node_type_flow_const.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FormNodeTypeFlowConst = typing.Union[typing.Literal["FLOW"], typing.Any] diff --git a/src/auth0/management/types/form_node_type_router_const.py b/src/auth0/management/types/form_node_type_router_const.py deleted file mode 100644 index 9fa4be7d..00000000 --- a/src/auth0/management/types/form_node_type_router_const.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FormNodeTypeRouterConst = typing.Union[typing.Literal["ROUTER"], typing.Any] diff --git a/src/auth0/management/types/form_node_type_step_const.py b/src/auth0/management/types/form_node_type_step_const.py deleted file mode 100644 index 32602818..00000000 --- a/src/auth0/management/types/form_node_type_step_const.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FormNodeTypeStepConst = typing.Union[typing.Literal["STEP"], typing.Any] diff --git a/src/auth0/management/types/form_router.py b/src/auth0/management/types/form_router.py deleted file mode 100644 index dd98f20e..00000000 --- a/src/auth0/management/types/form_router.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .form_node_coordinates import FormNodeCoordinates -from .form_node_type_router_const import FormNodeTypeRouterConst -from .form_router_config import FormRouterConfig - - -class FormRouter(UniversalBaseModel): - id: str - type: FormNodeTypeRouterConst - coordinates: typing.Optional[FormNodeCoordinates] = None - alias: typing.Optional[str] = None - config: typing.Optional[FormRouterConfig] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_router_config.py b/src/auth0/management/types/form_router_config.py deleted file mode 100644 index ac4011a4..00000000 --- a/src/auth0/management/types/form_router_config.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .form_node_pointer import FormNodePointer -from .form_router_rule import FormRouterRule - - -class FormRouterConfig(UniversalBaseModel): - rules: typing.Optional[typing.List[FormRouterRule]] = None - fallback: typing.Optional[FormNodePointer] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_router_rule.py b/src/auth0/management/types/form_router_rule.py deleted file mode 100644 index 8c6cf7a5..00000000 --- a/src/auth0/management/types/form_router_rule.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .form_node_pointer import FormNodePointer - - -class FormRouterRule(UniversalBaseModel): - id: str - alias: typing.Optional[str] = None - next_node: typing.Optional[FormNodePointer] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_start_node.py b/src/auth0/management/types/form_start_node.py deleted file mode 100644 index 43b6bebc..00000000 --- a/src/auth0/management/types/form_start_node.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .form_hidden_field import FormHiddenField -from .form_node_coordinates import FormNodeCoordinates -from .form_node_pointer import FormNodePointer - - -class FormStartNode(UniversalBaseModel): - hidden_fields: typing.Optional[typing.List[FormHiddenField]] = None - next_node: typing.Optional[FormNodePointer] = None - coordinates: typing.Optional[FormNodeCoordinates] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_start_node_nullable.py b/src/auth0/management/types/form_start_node_nullable.py deleted file mode 100644 index 43bae42e..00000000 --- a/src/auth0/management/types/form_start_node_nullable.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .form_start_node import FormStartNode - -FormStartNodeNullable = typing.Optional[FormStartNode] diff --git a/src/auth0/management/types/form_step.py b/src/auth0/management/types/form_step.py deleted file mode 100644 index dbde80bd..00000000 --- a/src/auth0/management/types/form_step.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .form_node_coordinates import FormNodeCoordinates -from .form_node_type_step_const import FormNodeTypeStepConst -from .form_step_config import FormStepConfig - - -class FormStep(UniversalBaseModel): - id: str - type: FormNodeTypeStepConst - coordinates: typing.Optional[FormNodeCoordinates] = None - alias: typing.Optional[str] = None - config: typing.Optional[FormStepConfig] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_step_component_list.py b/src/auth0/management/types/form_step_component_list.py deleted file mode 100644 index d9988e0a..00000000 --- a/src/auth0/management/types/form_step_component_list.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .form_component import FormComponent - -FormStepComponentList = typing.List[FormComponent] diff --git a/src/auth0/management/types/form_step_config.py b/src/auth0/management/types/form_step_config.py deleted file mode 100644 index 7c25dbd6..00000000 --- a/src/auth0/management/types/form_step_config.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .form_node_pointer import FormNodePointer -from .form_step_component_list import FormStepComponentList - - -class FormStepConfig(UniversalBaseModel): - components: typing.Optional[FormStepComponentList] = None - next_node: typing.Optional[FormNodePointer] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_style.py b/src/auth0/management/types/form_style.py deleted file mode 100644 index 07348f75..00000000 --- a/src/auth0/management/types/form_style.py +++ /dev/null @@ -1,19 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class FormStyle(UniversalBaseModel): - css: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_style_nullable.py b/src/auth0/management/types/form_style_nullable.py deleted file mode 100644 index cc0d913e..00000000 --- a/src/auth0/management/types/form_style_nullable.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .form_style import FormStyle - -FormStyleNullable = typing.Optional[FormStyle] diff --git a/src/auth0/management/types/form_summary.py b/src/auth0/management/types/form_summary.py deleted file mode 100644 index 482baa07..00000000 --- a/src/auth0/management/types/form_summary.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class FormSummary(UniversalBaseModel): - id: str - name: str - created_at: dt.datetime - updated_at: dt.datetime - embedded_at: typing.Optional[str] = None - submitted_at: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_translations.py b/src/auth0/management/types/form_translations.py deleted file mode 100644 index e40c281a..00000000 --- a/src/auth0/management/types/form_translations.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FormTranslations = typing.Dict[str, typing.Dict[str, typing.Any]] diff --git a/src/auth0/management/types/form_translations_nullable.py b/src/auth0/management/types/form_translations_nullable.py deleted file mode 100644 index f11e7501..00000000 --- a/src/auth0/management/types/form_translations_nullable.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .form_translations import FormTranslations - -FormTranslationsNullable = typing.Optional[FormTranslations] diff --git a/src/auth0/management/types/form_widget.py b/src/auth0/management/types/form_widget.py deleted file mode 100644 index 50b39eb1..00000000 --- a/src/auth0/management/types/form_widget.py +++ /dev/null @@ -1,9 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .form_widget_auth_0_verifiable_credentials import FormWidgetAuth0VerifiableCredentials -from .form_widget_g_maps_address import FormWidgetGMapsAddress -from .form_widget_recaptcha import FormWidgetRecaptcha - -FormWidget = typing.Union[FormWidgetAuth0VerifiableCredentials, FormWidgetGMapsAddress, FormWidgetRecaptcha] diff --git a/src/auth0/management/types/form_widget_auth_0_verifiable_credentials.py b/src/auth0/management/types/form_widget_auth_0_verifiable_credentials.py deleted file mode 100644 index 3196a2c6..00000000 --- a/src/auth0/management/types/form_widget_auth_0_verifiable_credentials.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .form_component_category_widget_const import FormComponentCategoryWidgetConst -from .form_widget_auth_0_verifiable_credentials_config import FormWidgetAuth0VerifiableCredentialsConfig -from .form_widget_type_auth_0_verifiable_credentials_const import FormWidgetTypeAuth0VerifiableCredentialsConst - - -class FormWidgetAuth0VerifiableCredentials(UniversalBaseModel): - id: str - category: FormComponentCategoryWidgetConst - type: FormWidgetTypeAuth0VerifiableCredentialsConst - config: FormWidgetAuth0VerifiableCredentialsConfig - label: typing.Optional[str] = None - hint: typing.Optional[str] = None - required: typing.Optional[bool] = None - sensitive: typing.Optional[bool] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_widget_auth_0_verifiable_credentials_config.py b/src/auth0/management/types/form_widget_auth_0_verifiable_credentials_config.py deleted file mode 100644 index e4c1c088..00000000 --- a/src/auth0/management/types/form_widget_auth_0_verifiable_credentials_config.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class FormWidgetAuth0VerifiableCredentialsConfig(UniversalBaseModel): - url: str - size: typing.Optional[float] = None - alternate_text: str - access_token: str - verification_id: str - max_wait: typing.Optional[float] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_widget_g_maps_address.py b/src/auth0/management/types/form_widget_g_maps_address.py deleted file mode 100644 index 4873c00f..00000000 --- a/src/auth0/management/types/form_widget_g_maps_address.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .form_component_category_widget_const import FormComponentCategoryWidgetConst -from .form_widget_g_maps_address_config import FormWidgetGMapsAddressConfig -from .form_widget_type_g_maps_address_const import FormWidgetTypeGMapsAddressConst - - -class FormWidgetGMapsAddress(UniversalBaseModel): - id: str - category: FormComponentCategoryWidgetConst - type: FormWidgetTypeGMapsAddressConst - config: FormWidgetGMapsAddressConfig - label: typing.Optional[str] = None - hint: typing.Optional[str] = None - required: typing.Optional[bool] = None - sensitive: typing.Optional[bool] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_widget_g_maps_address_config.py b/src/auth0/management/types/form_widget_g_maps_address_config.py deleted file mode 100644 index 2fc8addc..00000000 --- a/src/auth0/management/types/form_widget_g_maps_address_config.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class FormWidgetGMapsAddressConfig(UniversalBaseModel): - api_key: str - server_key: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_widget_recaptcha.py b/src/auth0/management/types/form_widget_recaptcha.py deleted file mode 100644 index ea1e3482..00000000 --- a/src/auth0/management/types/form_widget_recaptcha.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .form_component_category_widget_const import FormComponentCategoryWidgetConst -from .form_widget_recaptcha_config import FormWidgetRecaptchaConfig -from .form_widget_type_recaptcha_const import FormWidgetTypeRecaptchaConst - - -class FormWidgetRecaptcha(UniversalBaseModel): - id: str - category: FormComponentCategoryWidgetConst - type: FormWidgetTypeRecaptchaConst - config: FormWidgetRecaptchaConfig - label: typing.Optional[str] = None - hint: typing.Optional[str] = None - required: typing.Optional[bool] = None - sensitive: typing.Optional[bool] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_widget_recaptcha_config.py b/src/auth0/management/types/form_widget_recaptcha_config.py deleted file mode 100644 index 86a22a27..00000000 --- a/src/auth0/management/types/form_widget_recaptcha_config.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class FormWidgetRecaptchaConfig(UniversalBaseModel): - site_key: str - secret_key: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/form_widget_type_auth_0_verifiable_credentials_const.py b/src/auth0/management/types/form_widget_type_auth_0_verifiable_credentials_const.py deleted file mode 100644 index db7e7882..00000000 --- a/src/auth0/management/types/form_widget_type_auth_0_verifiable_credentials_const.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FormWidgetTypeAuth0VerifiableCredentialsConst = typing.Union[typing.Literal["AUTH0_VERIFIABLE_CREDENTIALS"], typing.Any] diff --git a/src/auth0/management/types/form_widget_type_g_maps_address_const.py b/src/auth0/management/types/form_widget_type_g_maps_address_const.py deleted file mode 100644 index c8539d6b..00000000 --- a/src/auth0/management/types/form_widget_type_g_maps_address_const.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FormWidgetTypeGMapsAddressConst = typing.Union[typing.Literal["GMAPS_ADDRESS"], typing.Any] diff --git a/src/auth0/management/types/form_widget_type_recaptcha_const.py b/src/auth0/management/types/form_widget_type_recaptcha_const.py deleted file mode 100644 index a8e76fe5..00000000 --- a/src/auth0/management/types/form_widget_type_recaptcha_const.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FormWidgetTypeRecaptchaConst = typing.Union[typing.Literal["RECAPTCHA"], typing.Any] diff --git a/src/auth0/management/types/forms_request_parameters_hydrate_enum.py b/src/auth0/management/types/forms_request_parameters_hydrate_enum.py deleted file mode 100644 index d916ae1c..00000000 --- a/src/auth0/management/types/forms_request_parameters_hydrate_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FormsRequestParametersHydrateEnum = typing.Union[typing.Literal["flow_count", "links"], typing.Any] diff --git a/src/auth0/management/types/get_action_execution_response_content.py b/src/auth0/management/types/get_action_execution_response_content.py deleted file mode 100644 index cfdf22a1..00000000 --- a/src/auth0/management/types/get_action_execution_response_content.py +++ /dev/null @@ -1,43 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .action_execution_result import ActionExecutionResult -from .action_execution_status_enum import ActionExecutionStatusEnum -from .action_trigger_type_enum import ActionTriggerTypeEnum - - -class GetActionExecutionResponseContent(UniversalBaseModel): - """ - The result of a specific execution of a trigger. - """ - - id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID identifies this specific execution simulation. These IDs would resemble real executions in production. - """ - - trigger_id: typing.Optional[ActionTriggerTypeEnum] = None - status: typing.Optional[ActionExecutionStatusEnum] = None - results: typing.Optional[typing.List[ActionExecutionResult]] = None - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The time that the execution was started. - """ - - updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The time that the exeution finished executing. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_action_module_actions_response_content.py b/src/auth0/management/types/get_action_module_actions_response_content.py deleted file mode 100644 index d3d8b5c9..00000000 --- a/src/auth0/management/types/get_action_module_actions_response_content.py +++ /dev/null @@ -1,38 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .action_module_action import ActionModuleAction - - -class GetActionModuleActionsResponseContent(UniversalBaseModel): - actions: typing.Optional[typing.List[ActionModuleAction]] = pydantic.Field(default=None) - """ - A list of action references. - """ - - total: typing.Optional[int] = pydantic.Field(default=None) - """ - The total number of actions using this module. - """ - - page: typing.Optional[int] = pydantic.Field(default=None) - """ - The page index of the returned results. - """ - - per_page: typing.Optional[int] = pydantic.Field(default=None) - """ - The number of results requested per page. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_action_module_response_content.py b/src/auth0/management/types/get_action_module_response_content.py deleted file mode 100644 index 21121d4a..00000000 --- a/src/auth0/management/types/get_action_module_response_content.py +++ /dev/null @@ -1,73 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .action_module_dependency import ActionModuleDependency -from .action_module_secret import ActionModuleSecret -from .action_module_version_reference import ActionModuleVersionReference - - -class GetActionModuleResponseContent(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - The unique ID of the module. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The name of the module. - """ - - code: typing.Optional[str] = pydantic.Field(default=None) - """ - The source code from the module's draft version. - """ - - dependencies: typing.Optional[typing.List[ActionModuleDependency]] = pydantic.Field(default=None) - """ - The npm dependencies from the module's draft version. - """ - - secrets: typing.Optional[typing.List[ActionModuleSecret]] = pydantic.Field(default=None) - """ - The secrets from the module's draft version (names and timestamps only, values never returned). - """ - - actions_using_module_total: typing.Optional[int] = pydantic.Field(default=None) - """ - The number of deployed actions using this module. - """ - - all_changes_published: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether all draft changes have been published as a version. - """ - - latest_version_number: typing.Optional[int] = pydantic.Field(default=None) - """ - The version number of the latest published version. Omitted if no versions have been published. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Timestamp when the module was created. - """ - - updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Timestamp when the module was last updated. - """ - - latest_version: typing.Optional[ActionModuleVersionReference] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_action_module_version_response_content.py b/src/auth0/management/types/get_action_module_version_response_content.py deleted file mode 100644 index f1f245f0..00000000 --- a/src/auth0/management/types/get_action_module_version_response_content.py +++ /dev/null @@ -1,55 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .action_module_dependency import ActionModuleDependency -from .action_module_secret import ActionModuleSecret - - -class GetActionModuleVersionResponseContent(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - The unique ID for this version. - """ - - module_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The ID of the parent module. - """ - - version_number: typing.Optional[int] = pydantic.Field(default=None) - """ - The sequential version number. - """ - - code: typing.Optional[str] = pydantic.Field(default=None) - """ - The exact source code that was published with this version. - """ - - secrets: typing.Optional[typing.List[ActionModuleSecret]] = pydantic.Field(default=None) - """ - Secrets available to this version (name and updated_at only, values never returned). - """ - - dependencies: typing.Optional[typing.List[ActionModuleDependency]] = pydantic.Field(default=None) - """ - Dependencies locked to this version. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The timestamp when this version was created. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_action_module_versions_response_content.py b/src/auth0/management/types/get_action_module_versions_response_content.py deleted file mode 100644 index 005d3abf..00000000 --- a/src/auth0/management/types/get_action_module_versions_response_content.py +++ /dev/null @@ -1,38 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .action_module_version import ActionModuleVersion - - -class GetActionModuleVersionsResponseContent(UniversalBaseModel): - versions: typing.Optional[typing.List[ActionModuleVersion]] = pydantic.Field(default=None) - """ - A list of ActionsModuleVersion objects. - """ - - total: typing.Optional[int] = pydantic.Field(default=None) - """ - The total number of versions for this module. - """ - - page: typing.Optional[int] = pydantic.Field(default=None) - """ - The page index of the returned results. - """ - - per_page: typing.Optional[int] = pydantic.Field(default=None) - """ - The number of results requested per page. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_action_modules_response_content.py b/src/auth0/management/types/get_action_modules_response_content.py deleted file mode 100644 index 1856ff93..00000000 --- a/src/auth0/management/types/get_action_modules_response_content.py +++ /dev/null @@ -1,38 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .action_module_list_item import ActionModuleListItem - - -class GetActionModulesResponseContent(UniversalBaseModel): - modules: typing.Optional[typing.List[ActionModuleListItem]] = pydantic.Field(default=None) - """ - A list of ActionsModule objects. - """ - - total: typing.Optional[int] = pydantic.Field(default=None) - """ - The total number of modules in the tenant. - """ - - page: typing.Optional[int] = pydantic.Field(default=None) - """ - The page index of the returned results. - """ - - per_page: typing.Optional[int] = pydantic.Field(default=None) - """ - The number of results requested per page. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_action_response_content.py b/src/auth0/management/types/get_action_response_content.py deleted file mode 100644 index aaabb82c..00000000 --- a/src/auth0/management/types/get_action_response_content.py +++ /dev/null @@ -1,98 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .action_build_status_enum import ActionBuildStatusEnum -from .action_deployed_version import ActionDeployedVersion -from .action_module_reference import ActionModuleReference -from .action_secret_response import ActionSecretResponse -from .action_trigger import ActionTrigger -from .action_version_dependency import ActionVersionDependency -from .integration import Integration - - -class GetActionResponseContent(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - The unique ID of the action. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The name of an action. - """ - - supported_triggers: typing.Optional[typing.List[ActionTrigger]] = pydantic.Field(default=None) - """ - The list of triggers that this action supports. At this time, an action can only target a single trigger at a time. - """ - - all_changes_deployed: typing.Optional[bool] = pydantic.Field(default=None) - """ - True if all of an Action's contents have been deployed. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The time when this action was created. - """ - - updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The time when this action was updated. - """ - - code: typing.Optional[str] = pydantic.Field(default=None) - """ - The source code of the action. - """ - - dependencies: typing.Optional[typing.List[ActionVersionDependency]] = pydantic.Field(default=None) - """ - The list of third party npm modules, and their versions, that this action depends on. - """ - - runtime: typing.Optional[str] = pydantic.Field(default=None) - """ - The Node runtime. For example: `node22`, defaults to `node22` - """ - - secrets: typing.Optional[typing.List[ActionSecretResponse]] = pydantic.Field(default=None) - """ - The list of secrets that are included in an action or a version of an action. - """ - - deployed_version: typing.Optional[ActionDeployedVersion] = None - installed_integration_id: typing.Optional[str] = pydantic.Field(default=None) - """ - installed_integration_id is the fk reference to the InstalledIntegration entity. - """ - - integration: typing.Optional[Integration] = None - status: typing.Optional[ActionBuildStatusEnum] = None - built_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The time when this action was built successfully. - """ - - deploy: typing.Optional[bool] = pydantic.Field(default=None) - """ - True if the action should be deployed after creation. - """ - - modules: typing.Optional[typing.List[ActionModuleReference]] = pydantic.Field(default=None) - """ - The list of action modules and their versions used by this action. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_action_version_response_content.py b/src/auth0/management/types/get_action_version_response_content.py deleted file mode 100644 index acdccd00..00000000 --- a/src/auth0/management/types/get_action_version_response_content.py +++ /dev/null @@ -1,97 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .action_base import ActionBase -from .action_error import ActionError -from .action_module_reference import ActionModuleReference -from .action_secret_response import ActionSecretResponse -from .action_trigger import ActionTrigger -from .action_version_build_status_enum import ActionVersionBuildStatusEnum -from .action_version_dependency import ActionVersionDependency - - -class GetActionVersionResponseContent(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - The unique id of an action version. - """ - - action_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The id of the action to which this version belongs. - """ - - code: typing.Optional[str] = pydantic.Field(default=None) - """ - The source code of this specific version of the action. - """ - - dependencies: typing.Optional[typing.List[ActionVersionDependency]] = pydantic.Field(default=None) - """ - The list of third party npm modules, and their versions, that this specific version depends on. - """ - - deployed: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates if this specific version is the currently one deployed. - """ - - runtime: typing.Optional[str] = pydantic.Field(default=None) - """ - The Node runtime. For example: `node22` - """ - - secrets: typing.Optional[typing.List[ActionSecretResponse]] = pydantic.Field(default=None) - """ - The list of secrets that are included in an action or a version of an action. - """ - - status: typing.Optional[ActionVersionBuildStatusEnum] = None - number: typing.Optional[float] = pydantic.Field(default=None) - """ - The index of this version in list of versions for the action. - """ - - errors: typing.Optional[typing.List[ActionError]] = pydantic.Field(default=None) - """ - Any errors that occurred while the version was being built. - """ - - action: typing.Optional[ActionBase] = None - built_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The time when this version was built successfully. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The time when this version was created. - """ - - updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The time when a version was updated. Versions are never updated externally. Only Auth0 will update an action version as it is being built. - """ - - supported_triggers: typing.Optional[typing.List[ActionTrigger]] = pydantic.Field(default=None) - """ - The list of triggers that this version supports. At this time, a version can only target a single trigger at a time. - """ - - modules: typing.Optional[typing.List[ActionModuleReference]] = pydantic.Field(default=None) - """ - The list of action modules and their versions used by this action version. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_active_users_count_stats_response_content.py b/src/auth0/management/types/get_active_users_count_stats_response_content.py deleted file mode 100644 index e1314ad4..00000000 --- a/src/auth0/management/types/get_active_users_count_stats_response_content.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -GetActiveUsersCountStatsResponseContent = float -""" -Number of active users in the last 30 days. -""" diff --git a/src/auth0/management/types/get_acul_response_content.py b/src/auth0/management/types/get_acul_response_content.py deleted file mode 100644 index 38bc022d..00000000 --- a/src/auth0/management/types/get_acul_response_content.py +++ /dev/null @@ -1,59 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .acul_context_configuration import AculContextConfiguration -from .acul_filters import AculFilters -from .acul_head_tag import AculHeadTag -from .acul_rendering_mode_enum import AculRenderingModeEnum - - -class GetAculResponseContent(UniversalBaseModel): - tenant: typing.Optional[str] = pydantic.Field(default=None) - """ - Tenant ID - """ - - prompt: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of the prompt - """ - - screen: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of the screen - """ - - rendering_mode: typing.Optional[AculRenderingModeEnum] = pydantic.Field(default=None) - """ - Rendering mode - """ - - context_configuration: typing.Optional[AculContextConfiguration] = None - default_head_tags_disabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - Override Universal Login default head tags - """ - - use_page_template: typing.Optional[bool] = pydantic.Field(default=None) - """ - Use page template with ACUL - """ - - head_tags: typing.Optional[typing.List[AculHeadTag]] = pydantic.Field(default=None) - """ - An array of head tags - """ - - filters: typing.Optional[AculFilters] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_all_keys_network_acls_response_content.py b/src/auth0/management/types/get_all_keys_network_acls_response_content.py deleted file mode 100644 index bfffa4d2..00000000 --- a/src/auth0/management/types/get_all_keys_network_acls_response_content.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .network_acl_key import NetworkAclKey - - -class GetAllKeysNetworkAclsResponseContent(UniversalBaseModel): - keys: typing.List[NetworkAclKey] = pydantic.Field() - """ - The tenant's Network ACL Keys. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_attack_protection_captcha_response_content.py b/src/auth0/management/types/get_attack_protection_captcha_response_content.py deleted file mode 100644 index 7442875e..00000000 --- a/src/auth0/management/types/get_attack_protection_captcha_response_content.py +++ /dev/null @@ -1,47 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .attack_protection_captcha_arkose_response_content import AttackProtectionCaptchaArkoseResponseContent -from .attack_protection_captcha_auth_challenge_response_content import ( - AttackProtectionCaptchaAuthChallengeResponseContent, -) -from .attack_protection_captcha_friendly_captcha_response_content import ( - AttackProtectionCaptchaFriendlyCaptchaResponseContent, -) -from .attack_protection_captcha_hcaptcha_response_content import AttackProtectionCaptchaHcaptchaResponseContent -from .attack_protection_captcha_recaptcha_enterprise_response_content import ( - AttackProtectionCaptchaRecaptchaEnterpriseResponseContent, -) -from .attack_protection_captcha_recaptcha_v_2_response_content import AttackProtectionCaptchaRecaptchaV2ResponseContent -from .attack_protection_captcha_simple_captcha_response_content import ( - AttackProtectionCaptchaSimpleCaptchaResponseContent, -) - - -class GetAttackProtectionCaptchaResponseContent(UniversalBaseModel): - active_provider_id: typing.Optional[str] = None - arkose: typing.Optional[AttackProtectionCaptchaArkoseResponseContent] = None - auth_challenge: typing.Optional[AttackProtectionCaptchaAuthChallengeResponseContent] = None - hcaptcha: typing.Optional[AttackProtectionCaptchaHcaptchaResponseContent] = None - friendly_captcha: typing.Optional[AttackProtectionCaptchaFriendlyCaptchaResponseContent] = None - recaptcha_enterprise: typing.Optional[AttackProtectionCaptchaRecaptchaEnterpriseResponseContent] = None - recaptcha_v_2: typing_extensions.Annotated[ - typing.Optional[AttackProtectionCaptchaRecaptchaV2ResponseContent], - FieldMetadata(alias="recaptcha_v2"), - pydantic.Field(alias="recaptcha_v2"), - ] = None - simple_captcha: typing.Optional[AttackProtectionCaptchaSimpleCaptchaResponseContent] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_bot_detection_settings_response_content.py b/src/auth0/management/types/get_bot_detection_settings_response_content.py deleted file mode 100644 index 7d3572e3..00000000 --- a/src/auth0/management/types/get_bot_detection_settings_response_content.py +++ /dev/null @@ -1,30 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .bot_detection_allowlist import BotDetectionAllowlist -from .bot_detection_challenge_policy_password_flow_enum import BotDetectionChallengePolicyPasswordFlowEnum -from .bot_detection_challenge_policy_password_reset_flow_enum import BotDetectionChallengePolicyPasswordResetFlowEnum -from .bot_detection_challenge_policy_passwordless_flow_enum import BotDetectionChallengePolicyPasswordlessFlowEnum -from .bot_detection_level_enum import BotDetectionLevelEnum -from .bot_detection_monitoring_mode_enabled import BotDetectionMonitoringModeEnabled - - -class GetBotDetectionSettingsResponseContent(UniversalBaseModel): - bot_detection_level: BotDetectionLevelEnum - challenge_password_policy: BotDetectionChallengePolicyPasswordFlowEnum - challenge_passwordless_policy: BotDetectionChallengePolicyPasswordlessFlowEnum - challenge_password_reset_policy: BotDetectionChallengePolicyPasswordResetFlowEnum - allowlist: BotDetectionAllowlist - monitoring_mode_enabled: BotDetectionMonitoringModeEnabled - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_branding_default_theme_response_content.py b/src/auth0/management/types/get_branding_default_theme_response_content.py deleted file mode 100644 index 26103ac3..00000000 --- a/src/auth0/management/types/get_branding_default_theme_response_content.py +++ /dev/null @@ -1,46 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .branding_theme_borders import BrandingThemeBorders -from .branding_theme_colors import BrandingThemeColors -from .branding_theme_fonts import BrandingThemeFonts -from .branding_theme_identifiers import BrandingThemeIdentifiers -from .branding_theme_page_background import BrandingThemePageBackground -from .branding_theme_widget import BrandingThemeWidget - - -class GetBrandingDefaultThemeResponseContent(UniversalBaseModel): - borders: BrandingThemeBorders - colors: BrandingThemeColors - display_name: typing_extensions.Annotated[ - str, FieldMetadata(alias="displayName"), pydantic.Field(alias="displayName", description="Display Name") - ] - """ - Display Name - """ - - fonts: BrandingThemeFonts - identifiers: typing.Optional[BrandingThemeIdentifiers] = None - page_background: BrandingThemePageBackground - theme_id: typing_extensions.Annotated[ - str, FieldMetadata(alias="themeId"), pydantic.Field(alias="themeId", description="Theme Id") - ] - """ - Theme Id - """ - - widget: BrandingThemeWidget - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_branding_phone_provider_response_content.py b/src/auth0/management/types/get_branding_phone_provider_response_content.py deleted file mode 100644 index 8006fd2f..00000000 --- a/src/auth0/management/types/get_branding_phone_provider_response_content.py +++ /dev/null @@ -1,49 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .phone_provider_channel_enum import PhoneProviderChannelEnum -from .phone_provider_configuration import PhoneProviderConfiguration -from .phone_provider_name_enum import PhoneProviderNameEnum - - -class GetBrandingPhoneProviderResponseContent(UniversalBaseModel): - """ - Phone provider configuration schema - """ - - id: typing.Optional[str] = None - tenant: typing.Optional[str] = pydantic.Field(default=None) - """ - The name of the tenant - """ - - name: PhoneProviderNameEnum - channel: typing.Optional[PhoneProviderChannelEnum] = None - disabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether the provider is enabled (false) or disabled (true). - """ - - configuration: typing.Optional[PhoneProviderConfiguration] = None - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The provider's creation date and time in ISO 8601 format - """ - - updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The date and time of the last update to the provider in ISO 8601 format - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_branding_response_content.py b/src/auth0/management/types/get_branding_response_content.py deleted file mode 100644 index d510b59f..00000000 --- a/src/auth0/management/types/get_branding_response_content.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .branding_colors import BrandingColors -from .branding_font import BrandingFont - - -class GetBrandingResponseContent(UniversalBaseModel): - colors: typing.Optional[BrandingColors] = None - favicon_url: typing.Optional[str] = pydantic.Field(default=None) - """ - URL for the favicon. Must use HTTPS. - """ - - logo_url: typing.Optional[str] = pydantic.Field(default=None) - """ - URL for the logo. Must use HTTPS. - """ - - font: typing.Optional[BrandingFont] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_branding_theme_response_content.py b/src/auth0/management/types/get_branding_theme_response_content.py deleted file mode 100644 index 8032b082..00000000 --- a/src/auth0/management/types/get_branding_theme_response_content.py +++ /dev/null @@ -1,46 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .branding_theme_borders import BrandingThemeBorders -from .branding_theme_colors import BrandingThemeColors -from .branding_theme_fonts import BrandingThemeFonts -from .branding_theme_identifiers import BrandingThemeIdentifiers -from .branding_theme_page_background import BrandingThemePageBackground -from .branding_theme_widget import BrandingThemeWidget - - -class GetBrandingThemeResponseContent(UniversalBaseModel): - borders: BrandingThemeBorders - colors: BrandingThemeColors - display_name: typing_extensions.Annotated[ - str, FieldMetadata(alias="displayName"), pydantic.Field(alias="displayName", description="Display Name") - ] - """ - Display Name - """ - - fonts: BrandingThemeFonts - identifiers: typing.Optional[BrandingThemeIdentifiers] = None - page_background: BrandingThemePageBackground - theme_id: typing_extensions.Annotated[ - str, FieldMetadata(alias="themeId"), pydantic.Field(alias="themeId", description="Theme Id") - ] - """ - Theme Id - """ - - widget: BrandingThemeWidget - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_breached_password_detection_settings_response_content.py b/src/auth0/management/types/get_breached_password_detection_settings_response_content.py deleted file mode 100644 index 9bdffe95..00000000 --- a/src/auth0/management/types/get_breached_password_detection_settings_response_content.py +++ /dev/null @@ -1,45 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .breached_password_detection_admin_notification_frequency_enum import ( - BreachedPasswordDetectionAdminNotificationFrequencyEnum, -) -from .breached_password_detection_method_enum import BreachedPasswordDetectionMethodEnum -from .breached_password_detection_shields_enum import BreachedPasswordDetectionShieldsEnum -from .breached_password_detection_stage import BreachedPasswordDetectionStage - - -class GetBreachedPasswordDetectionSettingsResponseContent(UniversalBaseModel): - enabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether or not breached password detection is active. - """ - - shields: typing.Optional[typing.List[BreachedPasswordDetectionShieldsEnum]] = pydantic.Field(default=None) - """ - Action to take when a breached password is detected during a login. - Possible values: block, user_notification, admin_notification. - """ - - admin_notification_frequency: typing.Optional[ - typing.List[BreachedPasswordDetectionAdminNotificationFrequencyEnum] - ] = pydantic.Field(default=None) - """ - When "admin_notification" is enabled, determines how often email notifications are sent. - Possible values: immediately, daily, weekly, monthly. - """ - - method: typing.Optional[BreachedPasswordDetectionMethodEnum] = None - stage: typing.Optional[BreachedPasswordDetectionStage] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_brute_force_settings_response_content.py b/src/auth0/management/types/get_brute_force_settings_response_content.py deleted file mode 100644 index 52f650a7..00000000 --- a/src/auth0/management/types/get_brute_force_settings_response_content.py +++ /dev/null @@ -1,43 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .brute_force_protection_form_submission_mode_enum import BruteForceProtectionFormSubmissionModeEnum -from .brute_force_protection_mode_enum import BruteForceProtectionModeEnum -from .brute_force_protection_shields_enum import BruteForceProtectionShieldsEnum - - -class GetBruteForceSettingsResponseContent(UniversalBaseModel): - enabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether or not brute force attack protections are active. - """ - - shields: typing.Optional[typing.List[BruteForceProtectionShieldsEnum]] = pydantic.Field(default=None) - """ - Action to take when a brute force protection threshold is violated. - Possible values: block, user_notification. - """ - - allowlist: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - List of trusted IP addresses that will not have attack protection enforced against them. - """ - - mode: typing.Optional[BruteForceProtectionModeEnum] = None - form_submission_mode: typing.Optional[BruteForceProtectionFormSubmissionModeEnum] = None - max_attempts: typing.Optional[int] = pydantic.Field(default=None) - """ - Maximum number of unsuccessful attempts. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_client_credential_response_content.py b/src/auth0/management/types/get_client_credential_response_content.py deleted file mode 100644 index d595a6eb..00000000 --- a/src/auth0/management/types/get_client_credential_response_content.py +++ /dev/null @@ -1,68 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .client_credential_algorithm_enum import ClientCredentialAlgorithmEnum -from .client_credential_type_enum import ClientCredentialTypeEnum - - -class GetClientCredentialResponseContent(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of the credential. Generated on creation. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The name given to the credential by the user. - """ - - kid: typing.Optional[str] = pydantic.Field(default=None) - """ - The key identifier of the credential, generated on creation. - """ - - alg: typing.Optional[ClientCredentialAlgorithmEnum] = None - credential_type: typing.Optional[ClientCredentialTypeEnum] = None - subject_dn: typing.Optional[str] = pydantic.Field(default=None) - """ - The X509 certificate's Subject Distinguished Name - """ - - thumbprint_sha_256: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="thumbprint_sha256"), - pydantic.Field(alias="thumbprint_sha256", description="The X509 certificate's SHA256 thumbprint"), - ] = None - """ - The X509 certificate's SHA256 thumbprint - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The ISO 8601 formatted date the credential was created. - """ - - updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The ISO 8601 formatted date the credential was updated. - """ - - expires_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The ISO 8601 formatted date representing the expiration of the credential. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_client_grant_response_content.py b/src/auth0/management/types/get_client_grant_response_content.py deleted file mode 100644 index 2c1078a0..00000000 --- a/src/auth0/management/types/get_client_grant_response_content.py +++ /dev/null @@ -1,63 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .client_grant_default_for_enum import ClientGrantDefaultForEnum -from .client_grant_organization_usage_enum import ClientGrantOrganizationUsageEnum -from .client_grant_subject_type_enum import ClientGrantSubjectTypeEnum - - -class GetClientGrantResponseContent(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of the client grant. - """ - - client_id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of the client. - """ - - audience: typing.Optional[str] = pydantic.Field(default=None) - """ - The audience (API identifier) of this client grant. - """ - - scope: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Scopes allowed for this client grant. - """ - - organization_usage: typing.Optional[ClientGrantOrganizationUsageEnum] = None - allow_any_organization: typing.Optional[bool] = pydantic.Field(default=None) - """ - If enabled, any organization can be used with this grant. If disabled (default), the grant must be explicitly assigned to the desired organizations. - """ - - default_for: typing.Optional[ClientGrantDefaultForEnum] = None - is_system: typing.Optional[bool] = pydantic.Field(default=None) - """ - If enabled, this grant is a special grant created by Auth0. It cannot be modified or deleted directly. - """ - - subject_type: typing.Optional[ClientGrantSubjectTypeEnum] = None - authorization_details_types: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Types of authorization_details allowed for this client grant. - """ - - allow_all_scopes: typing.Optional[bool] = pydantic.Field(default=None) - """ - If enabled, all scopes configured on the resource server are allowed for this grant. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_client_response_content.py b/src/auth0/management/types/get_client_response_content.py deleted file mode 100644 index 161e4231..00000000 --- a/src/auth0/management/types/get_client_response_content.py +++ /dev/null @@ -1,299 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .anonymous_sessions import AnonymousSessions -from .b_2_b_integration_configuration import B2BIntegrationConfiguration -from .client_addons import ClientAddons -from .client_anonymous_session_transfer_network_binding_enum import ClientAnonymousSessionTransferNetworkBindingEnum -from .client_app_type_enum import ClientAppTypeEnum -from .client_async_approval_notifications_channels_api_post_configuration import ( - ClientAsyncApprovalNotificationsChannelsApiPostConfiguration, -) -from .client_authentication_method import ClientAuthenticationMethod -from .client_compliance_level_enum import ClientComplianceLevelEnum -from .client_default_organization import ClientDefaultOrganization -from .client_encryption_key import ClientEncryptionKey -from .client_external_metadata_created_by_enum import ClientExternalMetadataCreatedByEnum -from .client_external_metadata_status_enum import ClientExternalMetadataStatusEnum -from .client_external_metadata_type_enum import ClientExternalMetadataTypeEnum -from .client_jwt_configuration import ClientJwtConfiguration -from .client_metadata import ClientMetadata -from .client_mobile import ClientMobile -from .client_my_organization_response_configuration import ClientMyOrganizationResponseConfiguration -from .client_oidc_backchannel_logout_settings import ClientOidcBackchannelLogoutSettings -from .client_oidc_support import ClientOidcSupport -from .client_organization_discovery_enum import ClientOrganizationDiscoveryEnum -from .client_organization_require_behavior_enum import ClientOrganizationRequireBehaviorEnum -from .client_organization_usage_enum import ClientOrganizationUsageEnum -from .client_redirection_policy_enum import ClientRedirectionPolicyEnum -from .client_refresh_token_configuration import ClientRefreshTokenConfiguration -from .client_session_transfer_configuration import ClientSessionTransferConfiguration -from .client_signed_request_object_with_credential_id import ClientSignedRequestObjectWithCredentialId -from .client_signing_keys import ClientSigningKeys -from .client_third_party_security_mode_enum import ClientThirdPartySecurityModeEnum -from .client_token_endpoint_auth_method_enum import ClientTokenEndpointAuthMethodEnum -from .client_token_exchange_configuration import ClientTokenExchangeConfiguration -from .client_token_vault_privileged_access_with_credential_id import ClientTokenVaultPrivilegedAccessWithCredentialId -from .express_configuration import ExpressConfiguration -from .fed_cm_login import FedCmLogin -from .google_account_linking_configuration import GoogleAccountLinkingConfiguration -from .identity_assertion_authorization_grant import IdentityAssertionAuthorizationGrant -from .native_social_login import NativeSocialLogin -from .token_quota import TokenQuota - - -class GetClientResponseContent(UniversalBaseModel): - client_id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of this client. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The ISO 8601 timestamp of when this client was created. - """ - - updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The ISO 8601 timestamp of when this client was last updated. - """ - - tenant: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of the tenant this client belongs to. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of this client (min length: 1 character, does not allow `<` or `>`). - """ - - description: typing.Optional[str] = pydantic.Field(default=None) - """ - Free text description of this client (max length: 140 characters). - """ - - global_: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="global"), - pydantic.Field( - alias="global", - description="Whether this is your global 'All Applications' client representing legacy tenant settings (true) or a regular client (false).", - ), - ] = None - """ - Whether this is your global 'All Applications' client representing legacy tenant settings (true) or a regular client (false). - """ - - client_secret: typing.Optional[str] = pydantic.Field(default=None) - """ - Client secret (which you must not make public). - """ - - app_type: typing.Optional[ClientAppTypeEnum] = None - logo_uri: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the logo to display for this client. Recommended size is 150x150 pixels. - """ - - is_first_party: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this client a first party client (true) or not (false). - """ - - oidc_conformant: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this client conforms to strict OIDC specifications (true) or uses legacy features (false). - """ - - callbacks: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Comma-separated list of URLs whitelisted for Auth0 to use as a callback to the client after authentication. - """ - - allowed_origins: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Comma-separated list of URLs allowed to make requests from JavaScript to Auth0 API (typically used with CORS). By default, all your callback URLs will be allowed. This field allows you to enter other origins if necessary. You can also use wildcards at the subdomain level (e.g., https://*.contoso.com). Query strings and hash information are not taken into account when validating these URLs. - """ - - web_origins: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Comma-separated list of allowed origins for use with Cross-Origin Authentication, Device Flow, and web message response mode. - """ - - client_aliases: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - List of audiences/realms for SAML protocol. Used by the wsfed addon. - """ - - allowed_clients: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - List of allow clients and API ids that are allowed to make delegation requests. Empty means all all your clients are allowed. - """ - - allowed_logout_urls: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Comma-separated list of URLs that are valid to redirect to after logout from Auth0. Wildcards are allowed for subdomains. - """ - - session_transfer: typing.Optional[ClientSessionTransferConfiguration] = None - oidc_logout: typing.Optional[ClientOidcBackchannelLogoutSettings] = None - grant_types: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - List of grant types supported for this application. Can include `authorization_code`, `implicit`, `refresh_token`, `client_credentials`, `password`, `http://auth0.com/oauth/grant-type/password-realm`, `http://auth0.com/oauth/grant-type/mfa-oob`, `http://auth0.com/oauth/grant-type/mfa-otp`, `http://auth0.com/oauth/grant-type/mfa-recovery-code`, `urn:openid:params:grant-type:ciba`, `urn:ietf:params:oauth:grant-type:device_code`, and `urn:auth0:params:oauth:grant-type:token-exchange:federated-connection-access-token`. - """ - - jwt_configuration: typing.Optional[ClientJwtConfiguration] = None - signing_keys: typing.Optional[ClientSigningKeys] = None - encryption_key: typing.Optional[ClientEncryptionKey] = None - sso: typing.Optional[bool] = pydantic.Field(default=None) - """ - Applies only to SSO clients and determines whether Auth0 will handle Single Sign On (true) or whether the Identity Provider will (false). - """ - - sso_disabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether Single Sign On is disabled (true) or enabled (true). Defaults to true. - """ - - cross_origin_authentication: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this client can be used to make cross-origin authentication requests (true) or it is not allowed to make such requests (false). - """ - - cross_origin_loc: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the location in your site where the cross origin verification takes place for the cross-origin auth flow when performing Auth in your own domain instead of Auth0 hosted login page. - """ - - custom_login_page_on: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether a custom login page is to be used (true) or the default provided login page (false). - """ - - custom_login_page: typing.Optional[str] = pydantic.Field(default=None) - """ - The content (HTML, CSS, JS) of the custom login page. - """ - - custom_login_page_preview: typing.Optional[str] = pydantic.Field(default=None) - """ - The content (HTML, CSS, JS) of the custom login page. (Used on Previews) - """ - - form_template: typing.Optional[str] = pydantic.Field(default=None) - """ - HTML form template to be used for WS-Federation. - """ - - addons: typing.Optional[ClientAddons] = None - token_endpoint_auth_method: typing.Optional[ClientTokenEndpointAuthMethodEnum] = None - is_token_endpoint_ip_header_trusted: typing.Optional[bool] = pydantic.Field(default=None) - """ - If true, trust that the IP specified in the `auth0-forwarded-for` header is the end-user's IP for brute-force-protection on token endpoint. - """ - - client_metadata: typing.Optional[ClientMetadata] = None - mobile: typing.Optional[ClientMobile] = None - initiate_login_uri: typing.Optional[str] = pydantic.Field(default=None) - """ - Initiate login uri, must be https - """ - - native_social_login: typing.Optional[NativeSocialLogin] = None - fedcm_login: typing.Optional[FedCmLogin] = None - refresh_token: typing.Optional[ClientRefreshTokenConfiguration] = None - default_organization: typing.Optional[ClientDefaultOrganization] = None - organization_usage: typing.Optional[ClientOrganizationUsageEnum] = None - organization_require_behavior: typing.Optional[ClientOrganizationRequireBehaviorEnum] = None - organization_discovery_methods: typing.Optional[typing.List[ClientOrganizationDiscoveryEnum]] = pydantic.Field( - default=None - ) - """ - Defines the available methods for organization discovery during the `pre_login_prompt`. Users can discover their organization either by `email`, `organization_name` or both. - """ - - client_authentication_methods: typing.Optional[ClientAuthenticationMethod] = None - require_pushed_authorization_requests: typing.Optional[bool] = pydantic.Field(default=None) - """ - Makes the use of Pushed Authorization Requests mandatory for this client - """ - - require_proof_of_possession: typing.Optional[bool] = pydantic.Field(default=None) - """ - Makes the use of Proof-of-Possession mandatory for this client - """ - - signed_request_object: typing.Optional[ClientSignedRequestObjectWithCredentialId] = None - token_vault_privileged_access: typing.Optional[ClientTokenVaultPrivilegedAccessWithCredentialId] = None - compliance_level: typing.Optional[ClientComplianceLevelEnum] = None - skip_non_verifiable_callback_uri_confirmation_prompt: typing.Optional[bool] = pydantic.Field(default=None) - """ - Controls whether a confirmation prompt is shown during login flows when the redirect URI uses non-verifiable callback URIs (for example, a custom URI schema such as `myapp://`, or `localhost`). - If set to true, a confirmation prompt will not be shown. We recommend that this is set to false for improved protection from malicious apps. - See https://auth0.com/docs/secure/security-guidance/measures-against-app-impersonation for more information. - """ - - token_exchange: typing.Optional[ClientTokenExchangeConfiguration] = None - par_request_expiry: typing.Optional[int] = pydantic.Field(default=None) - """ - Specifies how long, in seconds, a Pushed Authorization Request URI remains valid - """ - - token_quota: typing.Optional[TokenQuota] = None - express_configuration: typing.Optional[ExpressConfiguration] = None - b_2_b_integration_configuration: typing_extensions.Annotated[ - typing.Optional[B2BIntegrationConfiguration], - FieldMetadata(alias="b2b_integration_configuration"), - pydantic.Field(alias="b2b_integration_configuration"), - ] = None - my_organization_configuration: typing.Optional[ClientMyOrganizationResponseConfiguration] = None - google_account_linking: typing.Optional[GoogleAccountLinkingConfiguration] = None - identity_assertion_authorization_grant: typing.Optional[IdentityAssertionAuthorizationGrant] = None - anonymous_sessions: typing.Optional[AnonymousSessions] = None - enforce_anon_session_transfer_network_binding: typing.Optional[ClientAnonymousSessionTransferNetworkBindingEnum] = ( - None - ) - third_party_security_mode: typing.Optional[ClientThirdPartySecurityModeEnum] = None - oidc_support: typing.Optional[ClientOidcSupport] = None - redirection_policy: typing.Optional[ClientRedirectionPolicyEnum] = None - resource_server_identifier: typing.Optional[str] = pydantic.Field(default=None) - """ - The identifier of the resource server that this client is linked to. - """ - - async_approval_notification_channels: typing.Optional[ - ClientAsyncApprovalNotificationsChannelsApiPostConfiguration - ] = None - external_metadata_type: typing.Optional[ClientExternalMetadataTypeEnum] = None - external_metadata_created_by: typing.Optional[ClientExternalMetadataCreatedByEnum] = None - external_metadata_status: typing.Optional[ClientExternalMetadataStatusEnum] = None - agent_id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of the agent associated with this client. - """ - - external_client_id: typing.Optional[str] = pydantic.Field(default=None) - """ - An alternate client identifier to be used during authorization flows. Only supports CIMD-based client identifiers. - """ - - jwks_uri: typing.Optional[str] = pydantic.Field(default=None) - """ - URL for the JSON Web Key Set (JWKS) containing the public keys used for private_key_jwt authentication. Only present for CIMD clients using private_key_jwt authentication. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_connection_enabled_clients_response_content.py b/src/auth0/management/types/get_connection_enabled_clients_response_content.py deleted file mode 100644 index db18a2c6..00000000 --- a/src/auth0/management/types/get_connection_enabled_clients_response_content.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .connection_enabled_client import ConnectionEnabledClient - - -class GetConnectionEnabledClientsResponseContent(UniversalBaseModel): - clients: typing.List[ConnectionEnabledClient] = pydantic.Field() - """ - Clients for which the connection is enabled - """ - - next: typing.Optional[str] = pydantic.Field(default=None) - """ - Encoded next token - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_connection_profile_response_content.py b/src/auth0/management/types/get_connection_profile_response_content.py deleted file mode 100644 index 371ab892..00000000 --- a/src/auth0/management/types/get_connection_profile_response_content.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .connection_name_prefix_template import ConnectionNamePrefixTemplate -from .connection_profile_config import ConnectionProfileConfig -from .connection_profile_cross_app_access_resource_app import ConnectionProfileCrossAppAccessResourceApp -from .connection_profile_enabled_features import ConnectionProfileEnabledFeatures -from .connection_profile_id import ConnectionProfileId -from .connection_profile_name import ConnectionProfileName -from .connection_profile_organization import ConnectionProfileOrganization -from .connection_profile_provisioning import ConnectionProfileProvisioning -from .connection_profile_strategy_overrides import ConnectionProfileStrategyOverrides - - -class GetConnectionProfileResponseContent(UniversalBaseModel): - id: typing.Optional[ConnectionProfileId] = None - name: typing.Optional[ConnectionProfileName] = None - organization: typing.Optional[ConnectionProfileOrganization] = None - connection_name_prefix_template: typing.Optional[ConnectionNamePrefixTemplate] = None - enabled_features: typing.Optional[ConnectionProfileEnabledFeatures] = None - connection_config: typing.Optional[ConnectionProfileConfig] = None - strategy_overrides: typing.Optional[ConnectionProfileStrategyOverrides] = None - provisioning: typing.Optional[ConnectionProfileProvisioning] = None - cross_app_access_resource_app: typing.Optional[ConnectionProfileCrossAppAccessResourceApp] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_connection_profile_template_response_content.py b/src/auth0/management/types/get_connection_profile_template_response_content.py deleted file mode 100644 index 28d5571f..00000000 --- a/src/auth0/management/types/get_connection_profile_template_response_content.py +++ /dev/null @@ -1,30 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .connection_profile_template import ConnectionProfileTemplate - - -class GetConnectionProfileTemplateResponseContent(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - The id of the template. - """ - - display_name: typing.Optional[str] = pydantic.Field(default=None) - """ - The user-friendly name of the template displayed in the UI. - """ - - template: typing.Optional[ConnectionProfileTemplate] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_connection_response_content.py b/src/auth0/management/types/get_connection_response_content.py deleted file mode 100644 index 5d3846d6..00000000 --- a/src/auth0/management/types/get_connection_response_content.py +++ /dev/null @@ -1,70 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .connection_authentication_purpose import ConnectionAuthenticationPurpose -from .connection_connected_accounts_purpose import ConnectionConnectedAccountsPurpose -from .connection_options import ConnectionOptions -from .connections_metadata import ConnectionsMetadata -from .cross_app_access_requesting_app import CrossAppAccessRequestingApp -from .cross_app_access_resource_app import CrossAppAccessResourceApp - - -class GetConnectionResponseContent(UniversalBaseModel): - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The name of the connection - """ - - display_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Connection name used in login screen - """ - - options: typing.Optional[ConnectionOptions] = None - id: typing.Optional[str] = pydantic.Field(default=None) - """ - The connection's identifier - """ - - strategy: typing.Optional[str] = pydantic.Field(default=None) - """ - The type of the connection, related to the identity provider - """ - - realms: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. - """ - - enabled_clients: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - DEPRECATED property. Use the GET /connections/:id/clients endpoint to get the ids of the clients for which the connection is enabled - """ - - is_domain_connection: typing.Optional[bool] = pydantic.Field(default=None) - """ - True if the connection is domain level - """ - - show_as_button: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. - """ - - metadata: typing.Optional[ConnectionsMetadata] = None - authentication: typing.Optional[ConnectionAuthenticationPurpose] = None - connected_accounts: typing.Optional[ConnectionConnectedAccountsPurpose] = None - cross_app_access_requesting_app: typing.Optional[CrossAppAccessRequestingApp] = None - cross_app_access_resource_app: typing.Optional[CrossAppAccessResourceApp] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_custom_domain_response_content.py b/src/auth0/management/types/get_custom_domain_response_content.py deleted file mode 100644 index e97e02bf..00000000 --- a/src/auth0/management/types/get_custom_domain_response_content.py +++ /dev/null @@ -1,67 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .custom_domain_status_filter_enum import CustomDomainStatusFilterEnum -from .custom_domain_type_enum import CustomDomainTypeEnum -from .domain_certificate import DomainCertificate -from .domain_metadata import DomainMetadata -from .domain_verification import DomainVerification - - -class GetCustomDomainResponseContent(UniversalBaseModel): - custom_domain_id: str = pydantic.Field() - """ - ID of the custom domain. - """ - - domain: str = pydantic.Field() - """ - Domain name. - """ - - primary: bool = pydantic.Field() - """ - Whether this is a primary domain (true) or not (false). - """ - - is_default: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this is the default custom domain (true) or not (false). - """ - - status: CustomDomainStatusFilterEnum - type: CustomDomainTypeEnum - origin_domain_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Intermediate address. - """ - - verification: typing.Optional[DomainVerification] = None - custom_client_ip_header: typing.Optional[str] = pydantic.Field(default=None) - """ - The HTTP header to fetch the client's IP address - """ - - tls_policy: typing.Optional[str] = pydantic.Field(default=None) - """ - The TLS version policy - """ - - domain_metadata: typing.Optional[DomainMetadata] = None - certificate: typing.Optional[DomainCertificate] = None - relying_party_identifier: typing.Optional[str] = pydantic.Field(default=None) - """ - Relying Party ID (rpId) to be used for Passkeys on this custom domain. If not present, the full domain will be used. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_custom_signing_keys_response_content.py b/src/auth0/management/types/get_custom_signing_keys_response_content.py deleted file mode 100644 index 67ca21fe..00000000 --- a/src/auth0/management/types/get_custom_signing_keys_response_content.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .custom_signing_key_jwk import CustomSigningKeyJwk - - -class GetCustomSigningKeysResponseContent(UniversalBaseModel): - """ - JWKS representing an array of custom public signing keys. - """ - - keys: typing.Optional[typing.List[CustomSigningKeyJwk]] = pydantic.Field(default=None) - """ - An array of custom public signing keys. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_custom_texts_by_language_response_content.py b/src/auth0/management/types/get_custom_texts_by_language_response_content.py deleted file mode 100644 index d5c43a06..00000000 --- a/src/auth0/management/types/get_custom_texts_by_language_response_content.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -GetCustomTextsByLanguageResponseContent = typing.Dict[str, typing.Any] -""" -An object containing custom dictionaries for a group of screens. -""" diff --git a/src/auth0/management/types/get_default_canonical_domain_response_content.py b/src/auth0/management/types/get_default_canonical_domain_response_content.py deleted file mode 100644 index f570bb18..00000000 --- a/src/auth0/management/types/get_default_canonical_domain_response_content.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class GetDefaultCanonicalDomainResponseContent(UniversalBaseModel): - domain: str = pydantic.Field() - """ - Domain name. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_default_custom_domain_response_content.py b/src/auth0/management/types/get_default_custom_domain_response_content.py deleted file mode 100644 index aed76417..00000000 --- a/src/auth0/management/types/get_default_custom_domain_response_content.py +++ /dev/null @@ -1,67 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .custom_domain_status_filter_enum import CustomDomainStatusFilterEnum -from .custom_domain_type_enum import CustomDomainTypeEnum -from .domain_certificate import DomainCertificate -from .domain_metadata import DomainMetadata -from .domain_verification import DomainVerification - - -class GetDefaultCustomDomainResponseContent(UniversalBaseModel): - custom_domain_id: str = pydantic.Field() - """ - ID of the custom domain. - """ - - domain: str = pydantic.Field() - """ - Domain name. - """ - - primary: bool = pydantic.Field() - """ - Whether this is a primary domain (true) or not (false). - """ - - is_default: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this is the default custom domain (true) or not (false). - """ - - status: CustomDomainStatusFilterEnum - type: CustomDomainTypeEnum - origin_domain_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Intermediate address. - """ - - verification: typing.Optional[DomainVerification] = None - custom_client_ip_header: typing.Optional[str] = pydantic.Field(default=None) - """ - The HTTP header to fetch the client's IP address - """ - - tls_policy: typing.Optional[str] = pydantic.Field(default=None) - """ - The TLS version policy - """ - - domain_metadata: typing.Optional[DomainMetadata] = None - certificate: typing.Optional[DomainCertificate] = None - relying_party_identifier: typing.Optional[str] = pydantic.Field(default=None) - """ - Relying Party ID (rpId) to be used for Passkeys on this custom domain. If not present, the full domain will be used. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_default_domain_response_content.py b/src/auth0/management/types/get_default_domain_response_content.py deleted file mode 100644 index 0adf04b7..00000000 --- a/src/auth0/management/types/get_default_domain_response_content.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .get_default_canonical_domain_response_content import GetDefaultCanonicalDomainResponseContent -from .get_default_custom_domain_response_content import GetDefaultCustomDomainResponseContent - -GetDefaultDomainResponseContent = typing.Union[ - GetDefaultCustomDomainResponseContent, GetDefaultCanonicalDomainResponseContent -] diff --git a/src/auth0/management/types/get_directory_provisioning_default_mapping_response_content.py b/src/auth0/management/types/get_directory_provisioning_default_mapping_response_content.py deleted file mode 100644 index f743c4ec..00000000 --- a/src/auth0/management/types/get_directory_provisioning_default_mapping_response_content.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .directory_provisioning_mapping_item import DirectoryProvisioningMappingItem - - -class GetDirectoryProvisioningDefaultMappingResponseContent(UniversalBaseModel): - mapping: typing.Optional[typing.List[DirectoryProvisioningMappingItem]] = pydantic.Field(default=None) - """ - The mapping between Auth0 and IDP user attributes - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_directory_provisioning_response_content.py b/src/auth0/management/types/get_directory_provisioning_response_content.py deleted file mode 100644 index acd93e45..00000000 --- a/src/auth0/management/types/get_directory_provisioning_response_content.py +++ /dev/null @@ -1,71 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .directory_provisioning_mapping_item import DirectoryProvisioningMappingItem -from .synchronize_groups_enum import SynchronizeGroupsEnum - - -class GetDirectoryProvisioningResponseContent(UniversalBaseModel): - connection_id: str = pydantic.Field() - """ - The connection's identifier - """ - - connection_name: str = pydantic.Field() - """ - The connection's name - """ - - strategy: str = pydantic.Field() - """ - The connection's strategy - """ - - mapping: typing.List[DirectoryProvisioningMappingItem] = pydantic.Field() - """ - The mapping between Auth0 and IDP user attributes - """ - - synchronize_automatically: bool = pydantic.Field() - """ - Whether periodic automatic synchronization is enabled - """ - - synchronize_groups: typing.Optional[SynchronizeGroupsEnum] = None - created_at: dt.datetime = pydantic.Field() - """ - The timestamp at which the directory provisioning configuration was created - """ - - updated_at: dt.datetime = pydantic.Field() - """ - The timestamp at which the directory provisioning configuration was last updated - """ - - last_synchronization_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The timestamp at which the connection was last synchronized - """ - - last_synchronization_status: typing.Optional[str] = pydantic.Field(default=None) - """ - The status of the last synchronization - """ - - last_synchronization_error: typing.Optional[str] = pydantic.Field(default=None) - """ - The error message of the last synchronization, if any - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_email_factor_settings_response_content.py b/src/auth0/management/types/get_email_factor_settings_response_content.py deleted file mode 100644 index 1ca40ee7..00000000 --- a/src/auth0/management/types/get_email_factor_settings_response_content.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class GetEmailFactorSettingsResponseContent(UniversalBaseModel): - otp_length: int = pydantic.Field() - """ - The length of the OTP code. - """ - - otp_expiration_time: int = pydantic.Field() - """ - The OTP expiration time in seconds. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_email_provider_response_content.py b/src/auth0/management/types/get_email_provider_response_content.py deleted file mode 100644 index 9430cad3..00000000 --- a/src/auth0/management/types/get_email_provider_response_content.py +++ /dev/null @@ -1,37 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .email_provider_credentials import EmailProviderCredentials -from .email_provider_settings import EmailProviderSettings - - -class GetEmailProviderResponseContent(UniversalBaseModel): - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of the email provider. Can be `mailgun`, `mandrill`, `sendgrid`, `resend`, `ses`, `sparkpost`, `smtp`, `azure_cs`, `ms365`, or `custom`. - """ - - enabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether the provider is enabled (true) or disabled (false). - """ - - default_from_address: typing.Optional[str] = pydantic.Field(default=None) - """ - Email address to use as "from" when no other address specified. - """ - - credentials: typing.Optional[EmailProviderCredentials] = None - settings: typing.Optional[EmailProviderSettings] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_email_template_response_content.py b/src/auth0/management/types/get_email_template_response_content.py deleted file mode 100644 index 51490698..00000000 --- a/src/auth0/management/types/get_email_template_response_content.py +++ /dev/null @@ -1,83 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .email_template_name_enum import EmailTemplateNameEnum - - -class GetEmailTemplateResponseContent(UniversalBaseModel): - template: typing.Optional[EmailTemplateNameEnum] = None - body: typing.Optional[str] = pydantic.Field(default=None) - """ - Body of the email template. - """ - - from_: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="from"), - pydantic.Field(alias="from", description="Senders `from` email address."), - ] = None - """ - Senders `from` email address. - """ - - result_url: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="resultUrl"), - pydantic.Field(alias="resultUrl", description="URL to redirect the user to after a successful action."), - ] = None - """ - URL to redirect the user to after a successful action. - """ - - subject: typing.Optional[str] = pydantic.Field(default=None) - """ - Subject line of the email. - """ - - syntax: typing.Optional[str] = pydantic.Field(default=None) - """ - Syntax of the template body. - """ - - url_lifetime_in_seconds: typing_extensions.Annotated[ - typing.Optional[float], - FieldMetadata(alias="urlLifetimeInSeconds"), - pydantic.Field( - alias="urlLifetimeInSeconds", - description="Lifetime in seconds that the link within the email will be valid for.", - ), - ] = None - """ - Lifetime in seconds that the link within the email will be valid for. - """ - - include_email_in_redirect: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="includeEmailInRedirect"), - pydantic.Field( - alias="includeEmailInRedirect", - description="Whether the `reset_email` and `verify_email` templates should include the user's email address as the `email` parameter in the returnUrl (true) or whether no email address should be included in the redirect (false). Defaults to true.", - ), - ] = None - """ - Whether the `reset_email` and `verify_email` templates should include the user's email address as the `email` parameter in the returnUrl (true) or whether no email address should be included in the redirect (false). Defaults to true. - """ - - enabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether the template is enabled (true) or disabled (false). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_encryption_key_response_content.py b/src/auth0/management/types/get_encryption_key_response_content.py deleted file mode 100644 index 86fc7778..00000000 --- a/src/auth0/management/types/get_encryption_key_response_content.py +++ /dev/null @@ -1,51 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .encryption_key_state import EncryptionKeyState -from .encryption_key_type import EncryptionKeyType - - -class GetEncryptionKeyResponseContent(UniversalBaseModel): - """ - Encryption key - """ - - kid: str = pydantic.Field() - """ - Key ID - """ - - type: EncryptionKeyType - state: EncryptionKeyState - created_at: dt.datetime = pydantic.Field() - """ - Key creation timestamp - """ - - updated_at: dt.datetime = pydantic.Field() - """ - Key update timestamp - """ - - parent_kid: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of parent wrapping key - """ - - public_key: typing.Optional[str] = pydantic.Field(default=None) - """ - Public key in PEM format - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_event_stream_delivery_history_response_content.py b/src/auth0/management/types/get_event_stream_delivery_history_response_content.py deleted file mode 100644 index 0613ee95..00000000 --- a/src/auth0/management/types/get_event_stream_delivery_history_response_content.py +++ /dev/null @@ -1,44 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_cloud_event import EventStreamCloudEvent -from .event_stream_delivery_attempt import EventStreamDeliveryAttempt -from .event_stream_delivery_event_type_enum import EventStreamDeliveryEventTypeEnum -from .event_stream_delivery_status_enum import EventStreamDeliveryStatusEnum - - -class GetEventStreamDeliveryHistoryResponseContent(UniversalBaseModel): - """ - Metadata about a specific attempt to deliver an event - """ - - id: str = pydantic.Field() - """ - Unique identifier for the delivery - """ - - event_stream_id: str = pydantic.Field() - """ - Unique identifier for the event stream. - """ - - status: EventStreamDeliveryStatusEnum - event_type: EventStreamDeliveryEventTypeEnum - attempts: typing.List[EventStreamDeliveryAttempt] = pydantic.Field() - """ - Results of delivery attempts - """ - - event: typing.Optional[EventStreamCloudEvent] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_event_stream_response_content.py b/src/auth0/management/types/get_event_stream_response_content.py deleted file mode 100644 index 44a1d3b7..00000000 --- a/src/auth0/management/types/get_event_stream_response_content.py +++ /dev/null @@ -1,11 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .event_stream_action_response_content import EventStreamActionResponseContent -from .event_stream_event_bridge_response_content import EventStreamEventBridgeResponseContent -from .event_stream_webhook_response_content import EventStreamWebhookResponseContent - -GetEventStreamResponseContent = typing.Union[ - EventStreamWebhookResponseContent, EventStreamEventBridgeResponseContent, EventStreamActionResponseContent -] diff --git a/src/auth0/management/types/get_experiment_response_content.py b/src/auth0/management/types/get_experiment_response_content.py deleted file mode 100644 index 5411931d..00000000 --- a/src/auth0/management/types/get_experiment_response_content.py +++ /dev/null @@ -1,58 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .allocation_item import AllocationItem -from .allocation_strategy_enum import AllocationStrategyEnum -from .default_config_enum import DefaultConfigEnum -from .experiment_status_enum import ExperimentStatusEnum - - -class GetExperimentResponseContent(UniversalBaseModel): - id: str - name: str - description: typing.Optional[str] = None - feature_flag_id: str - feature_flag_name: typing.Optional[str] = None - authentication_flow: str - allocation_strategy: AllocationStrategyEnum - status: ExperimentStatusEnum - is_valid: bool = pydantic.Field() - """ - Whether the experiment is valid and ready to activate, as of its last update. It can lag changes made later to related entities. Call POST /experiments/{id}/validate for the current result. - """ - - default_config: typing.Optional[DefaultConfigEnum] = None - feature_flag_snapshot: typing.Optional[typing.Dict[str, typing.Any]] = None - allocations: typing.List[AllocationItem] - editable_fields: typing.List[str] = pydantic.Field() - """ - Fields that may be mutated given the experiment's current status. Computed at response time; always current with the API's enforcement logic. - """ - - levels: typing.Optional[typing.List[int]] = pydantic.Field(default=None) - """ - Ramp experiment levels configuration. - """ - - current_level: typing.Optional[int] = pydantic.Field(default=None) - """ - Read-only. The active exposure percentage for the current ramp step. Null when no ramp schedule is active. - """ - - started_at: typing.Optional[dt.datetime] = None - ended_at: typing.Optional[dt.datetime] = None - created_at: dt.datetime - updated_at: dt.datetime - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_feature_flag_response_content.py b/src/auth0/management/types/get_feature_flag_response_content.py deleted file mode 100644 index cbf3985c..00000000 --- a/src/auth0/management/types/get_feature_flag_response_content.py +++ /dev/null @@ -1,30 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .feature_flag_config_params import FeatureFlagConfigParams -from .feature_flag_status_enum import FeatureFlagStatusEnum -from .feature_flag_type_enum import FeatureFlagTypeEnum - - -class GetFeatureFlagResponseContent(UniversalBaseModel): - id: str - name: str - description: typing.Optional[str] = None - type: FeatureFlagTypeEnum - status: FeatureFlagStatusEnum - parameters: typing.Optional[FeatureFlagConfigParams] = None - created_at: dt.datetime - updated_at: dt.datetime - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_flow_execution_request_parameters_hydrate_enum.py b/src/auth0/management/types/get_flow_execution_request_parameters_hydrate_enum.py deleted file mode 100644 index 47b9e140..00000000 --- a/src/auth0/management/types/get_flow_execution_request_parameters_hydrate_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -GetFlowExecutionRequestParametersHydrateEnum = typing.Union[typing.Literal["debug"], typing.Any] diff --git a/src/auth0/management/types/get_flow_execution_response_content.py b/src/auth0/management/types/get_flow_execution_response_content.py deleted file mode 100644 index 5ae33cc9..00000000 --- a/src/auth0/management/types/get_flow_execution_response_content.py +++ /dev/null @@ -1,60 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_execution_debug import FlowExecutionDebug - - -class GetFlowExecutionResponseContent(UniversalBaseModel): - id: str = pydantic.Field() - """ - Flow execution identifier - """ - - trace_id: str = pydantic.Field() - """ - Trace id - """ - - journey_id: typing.Optional[str] = pydantic.Field(default=None) - """ - Journey id - """ - - status: str = pydantic.Field() - """ - Execution status - """ - - debug: typing.Optional[FlowExecutionDebug] = None - created_at: dt.datetime = pydantic.Field() - """ - The ISO 8601 formatted date when this flow execution was created. - """ - - updated_at: dt.datetime = pydantic.Field() - """ - The ISO 8601 formatted date when this flow execution was updated. - """ - - started_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The ISO 8601 formatted date when this flow execution started. - """ - - ended_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The ISO 8601 formatted date when this flow execution ended. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_flow_request_parameters_hydrate_enum.py b/src/auth0/management/types/get_flow_request_parameters_hydrate_enum.py deleted file mode 100644 index 724065ca..00000000 --- a/src/auth0/management/types/get_flow_request_parameters_hydrate_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -GetFlowRequestParametersHydrateEnum = typing.Union[typing.Literal["form_count", "forms"], typing.Any] diff --git a/src/auth0/management/types/get_flow_response_content.py b/src/auth0/management/types/get_flow_response_content.py deleted file mode 100644 index ba4e56b4..00000000 --- a/src/auth0/management/types/get_flow_response_content.py +++ /dev/null @@ -1,41 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel, update_forward_refs - - -class GetFlowResponseContent(UniversalBaseModel): - id: str - name: str - actions: typing.Optional[typing.List["FlowAction"]] = None - created_at: dt.datetime - updated_at: dt.datetime - executed_at: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .flow_action import FlowAction # noqa: E402, I001 -from .flow_action_flow import FlowActionFlow # noqa: E402, I001 -from .flow_action_flow_boolean_condition import FlowActionFlowBooleanCondition # noqa: E402, I001 -from .flow_action_flow_boolean_condition_params import FlowActionFlowBooleanConditionParams # noqa: E402, I001 - -update_forward_refs( - GetFlowResponseContent, - FlowAction=FlowAction, - FlowActionFlow=FlowActionFlow, - FlowActionFlowBooleanCondition=FlowActionFlowBooleanCondition, - FlowActionFlowBooleanConditionParams=FlowActionFlowBooleanConditionParams, -) diff --git a/src/auth0/management/types/get_flows_vault_connection_response_content.py b/src/auth0/management/types/get_flows_vault_connection_response_content.py deleted file mode 100644 index 07580154..00000000 --- a/src/auth0/management/types/get_flows_vault_connection_response_content.py +++ /dev/null @@ -1,65 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class GetFlowsVaultConnectionResponseContent(UniversalBaseModel): - id: str = pydantic.Field() - """ - Flows Vault Connection identifier. - """ - - app_id: str = pydantic.Field() - """ - Flows Vault Connection app identifier. - """ - - environment: typing.Optional[str] = pydantic.Field(default=None) - """ - Flows Vault Connection environment. - """ - - name: str = pydantic.Field() - """ - Flows Vault Connection name. - """ - - account_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Flows Vault Connection custom account name. - """ - - ready: bool = pydantic.Field() - """ - Whether the Flows Vault Connection is configured. - """ - - created_at: dt.datetime = pydantic.Field() - """ - The ISO 8601 formatted date when this Flows Vault Connection was created. - """ - - updated_at: dt.datetime = pydantic.Field() - """ - The ISO 8601 formatted date when this Flows Vault Connection was updated. - """ - - refreshed_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The ISO 8601 formatted date when this Flows Vault Connection was refreshed. - """ - - fingerprint: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_form_response_content.py b/src/auth0/management/types/get_form_response_content.py deleted file mode 100644 index d2989080..00000000 --- a/src/auth0/management/types/get_form_response_content.py +++ /dev/null @@ -1,39 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .form_ending_node import FormEndingNode -from .form_languages import FormLanguages -from .form_messages import FormMessages -from .form_node_list import FormNodeList -from .form_start_node import FormStartNode -from .form_style import FormStyle -from .form_translations import FormTranslations - - -class GetFormResponseContent(UniversalBaseModel): - id: str - name: str - messages: typing.Optional[FormMessages] = None - languages: typing.Optional[FormLanguages] = None - translations: typing.Optional[FormTranslations] = None - nodes: typing.Optional[FormNodeList] = None - start: typing.Optional[FormStartNode] = None - ending: typing.Optional[FormEndingNode] = None - style: typing.Optional[FormStyle] = None - created_at: dt.datetime - updated_at: dt.datetime - embedded_at: typing.Optional[str] = None - submitted_at: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_group_members_response_content.py b/src/auth0/management/types/get_group_members_response_content.py deleted file mode 100644 index 275e25ef..00000000 --- a/src/auth0/management/types/get_group_members_response_content.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .group_member import GroupMember - - -class GetGroupMembersResponseContent(UniversalBaseModel): - members: typing.List[GroupMember] - next: typing.Optional[str] = pydantic.Field(default=None) - """ - A cursor to be used as the "from" query parameter for the next page of results. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_group_response_content.py b/src/auth0/management/types/get_group_response_content.py deleted file mode 100644 index c20048b7..00000000 --- a/src/auth0/management/types/get_group_response_content.py +++ /dev/null @@ -1,57 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class GetGroupResponseContent(UniversalBaseModel): - """ - Represents the metadata of a group. Member lists are retrieved via a separate endpoint. - """ - - id: str = pydantic.Field() - """ - Unique identifier for the group (service-generated). - """ - - name: str = pydantic.Field() - """ - Name of the group. Must be unique within its connection. Must contain between 1 and 128 printable ASCII characters. - """ - - external_id: typing.Optional[str] = pydantic.Field(default=None) - """ - External identifier for the group, often used for SCIM synchronization. Max length of 256 characters. - """ - - connection_id: typing.Optional[str] = pydantic.Field(default=None) - """ - Identifier for the connection this group belongs to (if a connection group). - """ - - tenant_name: str = pydantic.Field() - """ - Identifier for the tenant this group belongs to. - """ - - created_at: dt.datetime = pydantic.Field() - """ - Timestamp of when the group was created. - """ - - updated_at: dt.datetime = pydantic.Field() - """ - Timestamp of when the group was last updated. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_guardian_enrollment_response_content.py b/src/auth0/management/types/get_guardian_enrollment_response_content.py deleted file mode 100644 index af120f51..00000000 --- a/src/auth0/management/types/get_guardian_enrollment_response_content.py +++ /dev/null @@ -1,43 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .guardian_enrollment_date import GuardianEnrollmentDate -from .guardian_enrollment_status import GuardianEnrollmentStatus - - -class GetGuardianEnrollmentResponseContent(UniversalBaseModel): - id: str = pydantic.Field() - """ - ID for this enrollment. - """ - - status: typing.Optional[GuardianEnrollmentStatus] = None - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Device name (only for push notification). - """ - - identifier: typing.Optional[str] = pydantic.Field(default=None) - """ - Device identifier. This is usually the phone identifier. - """ - - phone_number: typing.Optional[str] = pydantic.Field(default=None) - """ - Phone number. - """ - - enrolled_at: typing.Optional[GuardianEnrollmentDate] = None - last_auth: typing.Optional[GuardianEnrollmentDate] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_guardian_factor_duo_settings_response_content.py b/src/auth0/management/types/get_guardian_factor_duo_settings_response_content.py deleted file mode 100644 index fab5fd55..00000000 --- a/src/auth0/management/types/get_guardian_factor_duo_settings_response_content.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class GetGuardianFactorDuoSettingsResponseContent(UniversalBaseModel): - ikey: typing.Optional[str] = None - skey: typing.Optional[str] = None - host: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_guardian_factor_phone_message_types_response_content.py b/src/auth0/management/types/get_guardian_factor_phone_message_types_response_content.py deleted file mode 100644 index a42ffb11..00000000 --- a/src/auth0/management/types/get_guardian_factor_phone_message_types_response_content.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .guardian_factor_phone_factor_message_type_enum import GuardianFactorPhoneFactorMessageTypeEnum - - -class GetGuardianFactorPhoneMessageTypesResponseContent(UniversalBaseModel): - message_types: typing.Optional[typing.List[GuardianFactorPhoneFactorMessageTypeEnum]] = pydantic.Field(default=None) - """ - The list of phone factors to enable on the tenant. Can include `sms` and `voice`. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_guardian_factor_phone_templates_response_content.py b/src/auth0/management/types/get_guardian_factor_phone_templates_response_content.py deleted file mode 100644 index 9cdd3ecd..00000000 --- a/src/auth0/management/types/get_guardian_factor_phone_templates_response_content.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class GetGuardianFactorPhoneTemplatesResponseContent(UniversalBaseModel): - enrollment_message: str = pydantic.Field() - """ - Message sent to the user when they are invited to enroll with a phone number. - """ - - verification_message: str = pydantic.Field() - """ - Message sent to the user when they are prompted to verify their account. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_guardian_factor_sms_templates_response_content.py b/src/auth0/management/types/get_guardian_factor_sms_templates_response_content.py deleted file mode 100644 index 7ca6bc2c..00000000 --- a/src/auth0/management/types/get_guardian_factor_sms_templates_response_content.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class GetGuardianFactorSmsTemplatesResponseContent(UniversalBaseModel): - enrollment_message: str = pydantic.Field() - """ - Message sent to the user when they are invited to enroll with a phone number. - """ - - verification_message: str = pydantic.Field() - """ - Message sent to the user when they are prompted to verify their account. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_guardian_factors_provider_apns_response_content.py b/src/auth0/management/types/get_guardian_factors_provider_apns_response_content.py deleted file mode 100644 index d8493787..00000000 --- a/src/auth0/management/types/get_guardian_factors_provider_apns_response_content.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class GetGuardianFactorsProviderApnsResponseContent(UniversalBaseModel): - bundle_id: typing.Optional[str] = None - sandbox: typing.Optional[bool] = None - enabled: typing.Optional[bool] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_guardian_factors_provider_phone_response_content.py b/src/auth0/management/types/get_guardian_factors_provider_phone_response_content.py deleted file mode 100644 index 05cd4856..00000000 --- a/src/auth0/management/types/get_guardian_factors_provider_phone_response_content.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .guardian_factors_provider_sms_provider_enum import GuardianFactorsProviderSmsProviderEnum - - -class GetGuardianFactorsProviderPhoneResponseContent(UniversalBaseModel): - provider: typing.Optional[GuardianFactorsProviderSmsProviderEnum] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_guardian_factors_provider_phone_twilio_response_content.py b/src/auth0/management/types/get_guardian_factors_provider_phone_twilio_response_content.py deleted file mode 100644 index 66fd5a2b..00000000 --- a/src/auth0/management/types/get_guardian_factors_provider_phone_twilio_response_content.py +++ /dev/null @@ -1,41 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata - - -class GetGuardianFactorsProviderPhoneTwilioResponseContent(UniversalBaseModel): - from_: typing_extensions.Annotated[ - typing.Optional[str], FieldMetadata(alias="from"), pydantic.Field(alias="from", description="From number") - ] = None - """ - From number - """ - - messaging_service_sid: typing.Optional[str] = pydantic.Field(default=None) - """ - Copilot SID - """ - - auth_token: typing.Optional[str] = pydantic.Field(default=None) - """ - Twilio Authentication token - """ - - sid: typing.Optional[str] = pydantic.Field(default=None) - """ - Twilio SID - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_guardian_factors_provider_push_notification_response_content.py b/src/auth0/management/types/get_guardian_factors_provider_push_notification_response_content.py deleted file mode 100644 index cd4a9c8e..00000000 --- a/src/auth0/management/types/get_guardian_factors_provider_push_notification_response_content.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .guardian_factors_provider_push_notification_provider_data_enum import ( - GuardianFactorsProviderPushNotificationProviderDataEnum, -) - - -class GetGuardianFactorsProviderPushNotificationResponseContent(UniversalBaseModel): - provider: typing.Optional[GuardianFactorsProviderPushNotificationProviderDataEnum] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_guardian_factors_provider_sms_response_content.py b/src/auth0/management/types/get_guardian_factors_provider_sms_response_content.py deleted file mode 100644 index df91d100..00000000 --- a/src/auth0/management/types/get_guardian_factors_provider_sms_response_content.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .guardian_factors_provider_sms_provider_enum import GuardianFactorsProviderSmsProviderEnum - - -class GetGuardianFactorsProviderSmsResponseContent(UniversalBaseModel): - provider: typing.Optional[GuardianFactorsProviderSmsProviderEnum] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_guardian_factors_provider_sms_twilio_response_content.py b/src/auth0/management/types/get_guardian_factors_provider_sms_twilio_response_content.py deleted file mode 100644 index cf247f45..00000000 --- a/src/auth0/management/types/get_guardian_factors_provider_sms_twilio_response_content.py +++ /dev/null @@ -1,41 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata - - -class GetGuardianFactorsProviderSmsTwilioResponseContent(UniversalBaseModel): - from_: typing_extensions.Annotated[ - typing.Optional[str], FieldMetadata(alias="from"), pydantic.Field(alias="from", description="From number") - ] = None - """ - From number - """ - - messaging_service_sid: typing.Optional[str] = pydantic.Field(default=None) - """ - Copilot SID - """ - - auth_token: typing.Optional[str] = pydantic.Field(default=None) - """ - Twilio Authentication token - """ - - sid: typing.Optional[str] = pydantic.Field(default=None) - """ - Twilio SID - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_guardian_factors_provider_sns_response_content.py b/src/auth0/management/types/get_guardian_factors_provider_sns_response_content.py deleted file mode 100644 index 86c57d65..00000000 --- a/src/auth0/management/types/get_guardian_factors_provider_sns_response_content.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class GetGuardianFactorsProviderSnsResponseContent(UniversalBaseModel): - aws_access_key_id: typing.Optional[str] = None - aws_secret_access_key: typing.Optional[str] = None - aws_region: typing.Optional[str] = None - sns_apns_platform_application_arn: typing.Optional[str] = None - sns_gcm_platform_application_arn: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_guardian_settings_response_content.py b/src/auth0/management/types/get_guardian_settings_response_content.py deleted file mode 100644 index cc89d780..00000000 --- a/src/auth0/management/types/get_guardian_settings_response_content.py +++ /dev/null @@ -1,37 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class GetGuardianSettingsResponseContent(UniversalBaseModel): - display_remember_me_checkbox: bool = pydantic.Field() - """ - Determines whether to display the "Remember Me" checkbox on the MFA prompt in Universal Login. - """ - - remember_me_default_value: bool = pydantic.Field() - """ - Determines the default state of the "Remember Me" checkbox on the MFA prompt in Universal Login. - """ - - mfa_session_inactivity_timeout: int = pydantic.Field() - """ - Duration of inactivity after which the user will be prompted for MFA. Represented as seconds. Minimum duration is 1 hour, maximum is 30 days, and cannot exceed the overall timeout. - """ - - mfa_session_overall_timeout: int = pydantic.Field() - """ - Maximum duration after which the user will be prompted for MFA regardless of activity. Represented as seconds. Minimum duration is 1 hour, maximum is 90 days. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_hook_response_content.py b/src/auth0/management/types/get_hook_response_content.py deleted file mode 100644 index 59a72052..00000000 --- a/src/auth0/management/types/get_hook_response_content.py +++ /dev/null @@ -1,51 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .hook_dependencies import HookDependencies - - -class GetHookResponseContent(UniversalBaseModel): - trigger_id: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="triggerId"), - pydantic.Field(alias="triggerId", description="Trigger ID"), - ] = None - """ - Trigger ID - """ - - id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of this hook. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of this hook. - """ - - enabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this hook will be executed (true) or ignored (false). - """ - - script: typing.Optional[str] = pydantic.Field(default=None) - """ - Code to be executed when this hook runs. - """ - - dependencies: typing.Optional[HookDependencies] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_hook_secret_response_content.py b/src/auth0/management/types/get_hook_secret_response_content.py deleted file mode 100644 index a945fa53..00000000 --- a/src/auth0/management/types/get_hook_secret_response_content.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -GetHookSecretResponseContent = typing.Dict[str, str] -""" -Hashmap of key-value pairs where the value must be a string. -""" diff --git a/src/auth0/management/types/get_job_error_response_content.py b/src/auth0/management/types/get_job_error_response_content.py deleted file mode 100644 index 4e4bc004..00000000 --- a/src/auth0/management/types/get_job_error_response_content.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .get_job_import_user_error import GetJobImportUserError -from .get_job_user_error import GetJobUserError - - -class GetJobErrorResponseContent(UniversalBaseModel): - user: typing.Optional[GetJobUserError] = None - errors: typing.Optional[typing.List[GetJobImportUserError]] = pydantic.Field(default=None) - """ - Errors importing the user. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_job_generic_error_response_content.py b/src/auth0/management/types/get_job_generic_error_response_content.py deleted file mode 100644 index 11777974..00000000 --- a/src/auth0/management/types/get_job_generic_error_response_content.py +++ /dev/null @@ -1,47 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class GetJobGenericErrorResponseContent(UniversalBaseModel): - status: str = pydantic.Field() - """ - Status of this job. - """ - - type: str = pydantic.Field() - """ - Type of job this is. - """ - - created_at: typing.Optional[str] = pydantic.Field(default=None) - """ - When this job was created. - """ - - id: str = pydantic.Field() - """ - ID of this job. - """ - - connection_id: typing.Optional[str] = pydantic.Field(default=None) - """ - connection_id of the connection this job uses. - """ - - status_details: typing.Optional[str] = pydantic.Field(default=None) - """ - Status details. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_job_import_user_error.py b/src/auth0/management/types/get_job_import_user_error.py deleted file mode 100644 index 4c489908..00000000 --- a/src/auth0/management/types/get_job_import_user_error.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class GetJobImportUserError(UniversalBaseModel): - code: typing.Optional[str] = pydantic.Field(default=None) - """ - Error code. - """ - - message: typing.Optional[str] = pydantic.Field(default=None) - """ - Error message. - """ - - path: typing.Optional[str] = pydantic.Field(default=None) - """ - Error field. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_job_response_content.py b/src/auth0/management/types/get_job_response_content.py deleted file mode 100644 index b72a1344..00000000 --- a/src/auth0/management/types/get_job_response_content.py +++ /dev/null @@ -1,67 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .get_job_summary import GetJobSummary -from .job_file_format_enum import JobFileFormatEnum - - -class GetJobResponseContent(UniversalBaseModel): - status: str = pydantic.Field() - """ - Status of this job. - """ - - type: str = pydantic.Field() - """ - Type of job this is. - """ - - created_at: typing.Optional[str] = pydantic.Field(default=None) - """ - When this job was created. - """ - - id: str = pydantic.Field() - """ - ID of this job. - """ - - connection_id: typing.Optional[str] = pydantic.Field(default=None) - """ - connection_id of the connection this job uses. - """ - - location: typing.Optional[str] = pydantic.Field(default=None) - """ - URL to download the result of this job. - """ - - percentage_done: typing.Optional[int] = pydantic.Field(default=None) - """ - Completion percentage of this job. - """ - - time_left_seconds: typing.Optional[int] = pydantic.Field(default=None) - """ - Estimated time remaining before job completes. - """ - - format: typing.Optional[JobFileFormatEnum] = None - status_details: typing.Optional[str] = pydantic.Field(default=None) - """ - Status details. - """ - - summary: typing.Optional[GetJobSummary] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_job_summary.py b/src/auth0/management/types/get_job_summary.py deleted file mode 100644 index 3cc4533b..00000000 --- a/src/auth0/management/types/get_job_summary.py +++ /dev/null @@ -1,41 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class GetJobSummary(UniversalBaseModel): - """ - Job execution summary. - """ - - failed: typing.Optional[int] = pydantic.Field(default=None) - """ - Number of failed operations. - """ - - updated: typing.Optional[int] = pydantic.Field(default=None) - """ - Number of updated records. - """ - - inserted: typing.Optional[int] = pydantic.Field(default=None) - """ - Number of inserted records. - """ - - total: typing.Optional[int] = pydantic.Field(default=None) - """ - Total number of operations. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_job_user_error.py b/src/auth0/management/types/get_job_user_error.py deleted file mode 100644 index 16d4d468..00000000 --- a/src/auth0/management/types/get_job_user_error.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -GetJobUserError = typing.Dict[str, typing.Any] -""" -User, as provided in the import file -""" diff --git a/src/auth0/management/types/get_log_response_content.py b/src/auth0/management/types/get_log_response_content.py deleted file mode 100644 index 1f22c8f2..00000000 --- a/src/auth0/management/types/get_log_response_content.py +++ /dev/null @@ -1,120 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .log_date import LogDate -from .log_details import LogDetails -from .log_location_info import LogLocationInfo -from .log_security_context import LogSecurityContext - - -class GetLogResponseContent(UniversalBaseModel): - date: typing.Optional[LogDate] = None - type: typing.Optional[str] = pydantic.Field(default=None) - """ - Type of event. - """ - - description: typing.Optional[str] = pydantic.Field(default=None) - """ - Description of this event. - """ - - connection: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of the connection the event relates to. - """ - - connection_id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of the connection the event relates to. - """ - - client_id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of the client (application). - """ - - client_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of the client (application). - """ - - ip: typing.Optional[str] = pydantic.Field(default=None) - """ - IP address of the log event source. - """ - - hostname: typing.Optional[str] = pydantic.Field(default=None) - """ - Hostname the event applies to. - """ - - user_id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of the user involved in the event. - """ - - user_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of the user involved in the event. - """ - - audience: typing.Optional[str] = pydantic.Field(default=None) - """ - API audience the event applies to. - """ - - scope: typing.Optional[str] = pydantic.Field(default=None) - """ - Scope permissions applied to the event. - """ - - strategy: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of the strategy involved in the event. - """ - - strategy_type: typing.Optional[str] = pydantic.Field(default=None) - """ - Type of strategy involved in the event. - """ - - log_id: typing.Optional[str] = pydantic.Field(default=None) - """ - Unique ID of the event. - """ - - is_mobile: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="isMobile"), - pydantic.Field( - alias="isMobile", - description="Whether the client was a mobile device (true) or desktop/laptop/server (false).", - ), - ] = None - """ - Whether the client was a mobile device (true) or desktop/laptop/server (false). - """ - - details: typing.Optional[LogDetails] = None - user_agent: typing.Optional[str] = pydantic.Field(default=None) - """ - User agent string from the client device that caused the event. - """ - - security_context: typing.Optional[LogSecurityContext] = None - location_info: typing.Optional[LogLocationInfo] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_log_stream_response_content.py b/src/auth0/management/types/get_log_stream_response_content.py deleted file mode 100644 index a5ea6c8e..00000000 --- a/src/auth0/management/types/get_log_stream_response_content.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .log_stream_datadog_response_schema import LogStreamDatadogResponseSchema -from .log_stream_event_bridge_response_schema import LogStreamEventBridgeResponseSchema -from .log_stream_event_grid_response_schema import LogStreamEventGridResponseSchema -from .log_stream_http_response_schema import LogStreamHttpResponseSchema -from .log_stream_mixpanel_response_schema import LogStreamMixpanelResponseSchema -from .log_stream_segment_response_schema import LogStreamSegmentResponseSchema -from .log_stream_splunk_response_schema import LogStreamSplunkResponseSchema -from .log_stream_sumo_response_schema import LogStreamSumoResponseSchema - -GetLogStreamResponseContent = typing.Union[ - LogStreamHttpResponseSchema, - LogStreamEventBridgeResponseSchema, - LogStreamEventGridResponseSchema, - LogStreamDatadogResponseSchema, - LogStreamSplunkResponseSchema, - LogStreamSumoResponseSchema, - LogStreamSegmentResponseSchema, - LogStreamMixpanelResponseSchema, -] diff --git a/src/auth0/management/types/get_network_acls_response_content.py b/src/auth0/management/types/get_network_acls_response_content.py deleted file mode 100644 index 451faf0c..00000000 --- a/src/auth0/management/types/get_network_acls_response_content.py +++ /dev/null @@ -1,33 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .network_acl_rule import NetworkAclRule - - -class GetNetworkAclsResponseContent(UniversalBaseModel): - id: typing.Optional[str] = None - description: typing.Optional[str] = None - active: typing.Optional[bool] = None - priority: typing.Optional[float] = None - rule: typing.Optional[NetworkAclRule] = None - created_at: typing.Optional[str] = pydantic.Field(default=None) - """ - The timestamp when the Network ACL Configuration was created - """ - - updated_at: typing.Optional[str] = pydantic.Field(default=None) - """ - The timestamp when the Network ACL Configuration was last updated - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_organization_all_connection_response_content.py b/src/auth0/management/types/get_organization_all_connection_response_content.py deleted file mode 100644 index 37c7e563..00000000 --- a/src/auth0/management/types/get_organization_all_connection_response_content.py +++ /dev/null @@ -1,54 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .organization_access_level_enum import OrganizationAccessLevelEnum -from .organization_connection_information import OrganizationConnectionInformation -from .organization_member_access_level_enum import OrganizationMemberAccessLevelEnum - - -class GetOrganizationAllConnectionResponseContent(UniversalBaseModel): - organization_connection_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of the connection in the scope of this organization. - """ - - assign_membership_on_login: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true, all users that log in with this connection will be automatically granted membership in the organization. When false, users must be granted membership in the organization before logging in with this connection. - """ - - show_as_button: typing.Optional[bool] = pydantic.Field(default=None) - """ - Determines whether a connection should be displayed on this organization’s login prompt. Only applicable for enterprise connections. Default: true. - """ - - is_signup_enabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - Determines whether organization signup should be enabled for this organization connection. Only applicable for database connections. Default: false. - """ - - organization_access_level: typing.Optional[OrganizationAccessLevelEnum] = None - organization_member_access_level: typing.Optional[OrganizationMemberAccessLevelEnum] = None - is_enabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether the connection is enabled for the organization. - """ - - connection_id: str = pydantic.Field() - """ - Connection identifier. - """ - - connection: typing.Optional[OrganizationConnectionInformation] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_organization_by_name_response_content.py b/src/auth0/management/types/get_organization_by_name_response_content.py deleted file mode 100644 index c03d2d2b..00000000 --- a/src/auth0/management/types/get_organization_by_name_response_content.py +++ /dev/null @@ -1,48 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .organization_branding import OrganizationBranding -from .organization_client_association import OrganizationClientAssociation -from .organization_metadata import OrganizationMetadata -from .organization_third_party_client_access_enum import OrganizationThirdPartyClientAccessEnum -from .token_quota import TokenQuota - - -class GetOrganizationByNameResponseContent(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - Organization identifier. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The name of this organization. - """ - - display_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Friendly name of this organization. - """ - - branding: typing.Optional[OrganizationBranding] = None - metadata: typing.Optional[OrganizationMetadata] = None - token_quota: typing.Optional[TokenQuota] = None - third_party_client_access: typing.Optional[OrganizationThirdPartyClientAccessEnum] = None - is_app_entitlement_active: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether app entitlement is active for this organization. - """ - - client: typing.Optional[OrganizationClientAssociation] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_organization_client_response_content.py b/src/auth0/management/types/get_organization_client_response_content.py deleted file mode 100644 index 5c88887f..00000000 --- a/src/auth0/management/types/get_organization_client_response_content.py +++ /dev/null @@ -1,30 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .organization_client_metadata import OrganizationClientMetadata - - -class GetOrganizationClientResponseContent(UniversalBaseModel): - client_id: str = pydantic.Field() - """ - The identifier of the client associated with the organization. - """ - - use_for_member_access: bool = pydantic.Field() - """ - Whether this client is used for member access to the organization. - """ - - client: OrganizationClientMetadata - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_organization_connection_response_content.py b/src/auth0/management/types/get_organization_connection_response_content.py deleted file mode 100644 index 3c26e260..00000000 --- a/src/auth0/management/types/get_organization_connection_response_content.py +++ /dev/null @@ -1,40 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .organization_connection_information import OrganizationConnectionInformation - - -class GetOrganizationConnectionResponseContent(UniversalBaseModel): - connection_id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of the connection. - """ - - assign_membership_on_login: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true, all users that log in with this connection will be automatically granted membership in the organization. When false, users must be granted membership in the organization before logging in with this connection. - """ - - show_as_button: typing.Optional[bool] = pydantic.Field(default=None) - """ - Determines whether a connection should be displayed on this organization’s login prompt. Only applicable for enterprise connections. Default: true. - """ - - is_signup_enabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - Determines whether organization signup should be enabled for this organization connection. Only applicable for database connections. Default: false. - """ - - connection: typing.Optional[OrganizationConnectionInformation] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_organization_discovery_domain_by_name_response_content.py b/src/auth0/management/types/get_organization_discovery_domain_by_name_response_content.py deleted file mode 100644 index 9513b48f..00000000 --- a/src/auth0/management/types/get_organization_discovery_domain_by_name_response_content.py +++ /dev/null @@ -1,44 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .organization_discovery_domain_status import OrganizationDiscoveryDomainStatus - - -class GetOrganizationDiscoveryDomainByNameResponseContent(UniversalBaseModel): - id: str = pydantic.Field() - """ - Organization discovery domain identifier. - """ - - domain: str = pydantic.Field() - """ - The domain name to associate with the organization e.g. acme.com. - """ - - status: OrganizationDiscoveryDomainStatus - use_for_organization_discovery: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether this domain should be used for organization discovery. - """ - - verification_txt: str = pydantic.Field() - """ - A unique token generated for the discovery domain. This must be placed in a DNS TXT record at the location specified by the verification_host field to prove domain ownership. - """ - - verification_host: str = pydantic.Field() - """ - The full domain where the TXT record should be added. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_organization_discovery_domain_response_content.py b/src/auth0/management/types/get_organization_discovery_domain_response_content.py deleted file mode 100644 index ba439bde..00000000 --- a/src/auth0/management/types/get_organization_discovery_domain_response_content.py +++ /dev/null @@ -1,44 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .organization_discovery_domain_status import OrganizationDiscoveryDomainStatus - - -class GetOrganizationDiscoveryDomainResponseContent(UniversalBaseModel): - id: str = pydantic.Field() - """ - Organization discovery domain identifier. - """ - - domain: str = pydantic.Field() - """ - The domain name to associate with the organization e.g. acme.com. - """ - - status: OrganizationDiscoveryDomainStatus - use_for_organization_discovery: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether this domain should be used for organization discovery. - """ - - verification_txt: str = pydantic.Field() - """ - A unique token generated for the discovery domain. This must be placed in a DNS TXT record at the location specified by the verification_host field to prove domain ownership. - """ - - verification_host: str = pydantic.Field() - """ - The full domain where the TXT record should be added. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_organization_invitation_response_content.py b/src/auth0/management/types/get_organization_invitation_response_content.py deleted file mode 100644 index f09f4bf8..00000000 --- a/src/auth0/management/types/get_organization_invitation_response_content.py +++ /dev/null @@ -1,71 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .app_metadata import AppMetadata -from .organization_invitation_invitee import OrganizationInvitationInvitee -from .organization_invitation_inviter import OrganizationInvitationInviter -from .user_metadata import UserMetadata - - -class GetOrganizationInvitationResponseContent(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - The id of the user invitation. - """ - - organization_id: typing.Optional[str] = pydantic.Field(default=None) - """ - Organization identifier. - """ - - inviter: typing.Optional[OrganizationInvitationInviter] = None - invitee: typing.Optional[OrganizationInvitationInvitee] = None - invitation_url: typing.Optional[str] = pydantic.Field(default=None) - """ - The invitation url to be send to the invitee. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The ISO 8601 formatted timestamp representing the creation time of the invitation. - """ - - expires_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The ISO 8601 formatted timestamp representing the expiration time of the invitation. - """ - - client_id: typing.Optional[str] = pydantic.Field(default=None) - """ - Auth0 client ID. Used to resolve the application's login initiation endpoint. - """ - - connection_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The id of the connection to force invitee to authenticate with. - """ - - app_metadata: typing.Optional[AppMetadata] = None - user_metadata: typing.Optional[UserMetadata] = None - roles: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - List of roles IDs to associated with the user. - """ - - ticket_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The id of the invitation ticket - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_organization_response_content.py b/src/auth0/management/types/get_organization_response_content.py deleted file mode 100644 index 2c0ec21e..00000000 --- a/src/auth0/management/types/get_organization_response_content.py +++ /dev/null @@ -1,48 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .organization_branding import OrganizationBranding -from .organization_client_association import OrganizationClientAssociation -from .organization_metadata import OrganizationMetadata -from .organization_third_party_client_access_enum import OrganizationThirdPartyClientAccessEnum -from .token_quota import TokenQuota - - -class GetOrganizationResponseContent(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - Organization identifier. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The name of this organization. - """ - - display_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Friendly name of this organization. - """ - - branding: typing.Optional[OrganizationBranding] = None - metadata: typing.Optional[OrganizationMetadata] = None - token_quota: typing.Optional[TokenQuota] = None - third_party_client_access: typing.Optional[OrganizationThirdPartyClientAccessEnum] = None - is_app_entitlement_active: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether app entitlement is active for this organization. - """ - - client: typing.Optional[OrganizationClientAssociation] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_partials_response_content.py b/src/auth0/management/types/get_partials_response_content.py deleted file mode 100644 index fc06896d..00000000 --- a/src/auth0/management/types/get_partials_response_content.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -GetPartialsResponseContent = typing.Dict[str, typing.Any] -""" -An object containing template partials for a group of screens. -""" diff --git a/src/auth0/management/types/get_phone_factor_settings_response_content.py b/src/auth0/management/types/get_phone_factor_settings_response_content.py deleted file mode 100644 index b7109f6d..00000000 --- a/src/auth0/management/types/get_phone_factor_settings_response_content.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class GetPhoneFactorSettingsResponseContent(UniversalBaseModel): - otp_length: int = pydantic.Field() - """ - The length of the OTP code. - """ - - otp_expiration_time: int = pydantic.Field() - """ - The OTP expiration time in seconds. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_phone_provider_protection_response_content.py b/src/auth0/management/types/get_phone_provider_protection_response_content.py deleted file mode 100644 index 6a9169fa..00000000 --- a/src/auth0/management/types/get_phone_provider_protection_response_content.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .phone_provider_protection_backoff_strategy_enum import PhoneProviderProtectionBackoffStrategyEnum - - -class GetPhoneProviderProtectionResponseContent(UniversalBaseModel): - type: PhoneProviderProtectionBackoffStrategyEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_phone_template_response_content.py b/src/auth0/management/types/get_phone_template_response_content.py deleted file mode 100644 index ade414d7..00000000 --- a/src/auth0/management/types/get_phone_template_response_content.py +++ /dev/null @@ -1,30 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .phone_template_content import PhoneTemplateContent -from .phone_template_notification_type_enum import PhoneTemplateNotificationTypeEnum - - -class GetPhoneTemplateResponseContent(UniversalBaseModel): - id: typing.Optional[str] = None - channel: typing.Optional[str] = None - customizable: typing.Optional[bool] = None - tenant: typing.Optional[str] = None - content: PhoneTemplateContent - type: PhoneTemplateNotificationTypeEnum - disabled: bool = pydantic.Field() - """ - Whether the template is enabled (false) or disabled (true). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_rate_limit_policy_response_content.py b/src/auth0/management/types/get_rate_limit_policy_response_content.py deleted file mode 100644 index 90bee455..00000000 --- a/src/auth0/management/types/get_rate_limit_policy_response_content.py +++ /dev/null @@ -1,44 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .rate_limit_policy_configuration import RateLimitPolicyConfiguration -from .rate_limit_policy_consumer_enum import RateLimitPolicyConsumerEnum -from .rate_limit_policy_resource_enum import RateLimitPolicyResourceEnum - - -class GetRateLimitPolicyResponseContent(UniversalBaseModel): - id: str = pydantic.Field() - """ - Unique identifier for the Rate Limit Policy. - """ - - resource: RateLimitPolicyResourceEnum - consumer: RateLimitPolicyConsumerEnum - consumer_selector: str = pydantic.Field() - """ - Identifier or category within the consumer to which the policy applies. Supported values: `client_id:` to target a specific client by ID, `client_id:` to target a CIMD client by URI, `cimd_clients` to target all CIMD clients, `third_party_clients` to target all third-party clients, or `default` to apply the policy to any consumer identifier not otherwise explicitly targeted. - """ - - configuration: RateLimitPolicyConfiguration - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The date and time when the rate limit policy was created. - """ - - updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The date and time when the rate limit policy was last updated. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_refresh_token_response_content.py b/src/auth0/management/types/get_refresh_token_response_content.py deleted file mode 100644 index e7596db0..00000000 --- a/src/auth0/management/types/get_refresh_token_response_content.py +++ /dev/null @@ -1,55 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .refresh_token_date import RefreshTokenDate -from .refresh_token_device import RefreshTokenDevice -from .refresh_token_metadata import RefreshTokenMetadata -from .refresh_token_resource_server import RefreshTokenResourceServer -from .refresh_token_session_id import RefreshTokenSessionId - - -class GetRefreshTokenResponseContent(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - The ID of the refresh token - """ - - user_id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of the user which can be used when interacting with other APIs. - """ - - created_at: typing.Optional[RefreshTokenDate] = None - idle_expires_at: typing.Optional[RefreshTokenDate] = None - expires_at: typing.Optional[RefreshTokenDate] = None - device: typing.Optional[RefreshTokenDevice] = None - client_id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of the client application granted with this refresh token - """ - - session_id: typing.Optional[RefreshTokenSessionId] = None - rotating: typing.Optional[bool] = pydantic.Field(default=None) - """ - True if the token is a rotating refresh token - """ - - resource_servers: typing.Optional[typing.List[RefreshTokenResourceServer]] = pydantic.Field(default=None) - """ - A list of the resource server IDs associated to this refresh-token and their granted scopes - """ - - refresh_token_metadata: typing.Optional[RefreshTokenMetadata] = None - last_exchanged_at: typing.Optional[RefreshTokenDate] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_refresh_tokens_paginated_response_content.py b/src/auth0/management/types/get_refresh_tokens_paginated_response_content.py deleted file mode 100644 index 0947f8bc..00000000 --- a/src/auth0/management/types/get_refresh_tokens_paginated_response_content.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .refresh_token_response_content import RefreshTokenResponseContent - - -class GetRefreshTokensPaginatedResponseContent(UniversalBaseModel): - refresh_tokens: typing.Optional[typing.List[RefreshTokenResponseContent]] = None - next: typing.Optional[str] = pydantic.Field(default=None) - """ - A cursor to be used as the "from" query parameter for the next page of results. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_resource_server_response_content.py b/src/auth0/management/types/get_resource_server_response_content.py deleted file mode 100644 index c8aae3f9..00000000 --- a/src/auth0/management/types/get_resource_server_response_content.py +++ /dev/null @@ -1,120 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .resource_server_access_token import ResourceServerAccessToken -from .resource_server_agent_subject_claims_response_enum import ResourceServerAgentSubjectClaimsResponseEnum -from .resource_server_authorization_policy import ResourceServerAuthorizationPolicy -from .resource_server_consent_policy_enum import ResourceServerConsentPolicyEnum -from .resource_server_proof_of_possession import ResourceServerProofOfPossession -from .resource_server_scope import ResourceServerScope -from .resource_server_subject_type_authorization import ResourceServerSubjectTypeAuthorization -from .resource_server_token_dialect_response_enum import ResourceServerTokenDialectResponseEnum -from .resource_server_token_encryption import ResourceServerTokenEncryption -from .resource_server_type_enum import ResourceServerTypeEnum -from .signing_algorithm_enum import SigningAlgorithmEnum - - -class GetResourceServerResponseContent(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of the API (resource server). - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Friendly name for this resource server. Can not contain `<` or `>` characters. - """ - - is_system: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this is an Auth0 system API (true) or a custom API (false). - """ - - identifier: typing.Optional[str] = pydantic.Field(default=None) - """ - Unique identifier for the API used as the audience parameter on authorization calls. Can not be changed once set. - """ - - scopes: typing.Optional[typing.List[ResourceServerScope]] = pydantic.Field(default=None) - """ - List of permissions (scopes) that this API uses. - """ - - signing_alg: typing.Optional[SigningAlgorithmEnum] = None - signing_secret: typing.Optional[str] = pydantic.Field(default=None) - """ - Secret used to sign tokens when using symmetric algorithms (HS256). - """ - - allow_offline_access: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether refresh tokens can be issued for this API (true) or not (false). - """ - - allow_online_access: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether Online Refresh Tokens can be issued for this API (true) or not (false). - """ - - allow_online_access_with_ephemeral_sessions: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether Online Refresh Tokens can be issued even when sessions are configured as ephemeral (true) or not (false). - """ - - skip_consent_for_verifiable_first_party_clients: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether to skip user consent for applications flagged as first party (true) or not (false). - """ - - token_lifetime: typing.Optional[int] = pydantic.Field(default=None) - """ - Expiration value (in seconds) for access tokens issued for this API from the token endpoint. - """ - - token_lifetime_for_web: typing.Optional[int] = pydantic.Field(default=None) - """ - Expiration value (in seconds) for access tokens issued for this API via Implicit or Hybrid Flows. Cannot be greater than the `token_lifetime` value. - """ - - enforce_policies: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether authorization polices are enforced (true) or unenforced (false). - """ - - token_lifetime_for_anonymous_access_tokens: typing.Optional[int] = pydantic.Field(default=None) - """ - Expiration value (in seconds) for anonymous-session access tokens issued for this API. - """ - - token_dialect: typing.Optional[ResourceServerTokenDialectResponseEnum] = None - access_token: typing.Optional[ResourceServerAccessToken] = None - token_encryption: typing.Optional[ResourceServerTokenEncryption] = None - consent_policy: typing.Optional[ResourceServerConsentPolicyEnum] = None - require_consent_non_repudiation: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true, the resource server requires every consent approval to be digitally signed, so the approver cannot later deny a consent they granted. When false, consent decisions do not need a signature. Defaults to false. A configured value is still returned even after the related entitlement is disabled. - """ - - authorization_details: typing.Optional[typing.List[typing.Any]] = None - proof_of_possession: typing.Optional[ResourceServerProofOfPossession] = None - subject_type_authorization: typing.Optional[ResourceServerSubjectTypeAuthorization] = None - authorization_policy: typing.Optional[ResourceServerAuthorizationPolicy] = None - client_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The client ID of the client that this resource server is linked to - """ - - agent_subject_claims: typing.Optional[ResourceServerAgentSubjectClaimsResponseEnum] = None - type: typing.Optional[ResourceServerTypeEnum] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_risk_assessments_settings_new_device_response_content.py b/src/auth0/management/types/get_risk_assessments_settings_new_device_response_content.py deleted file mode 100644 index 51f59f55..00000000 --- a/src/auth0/management/types/get_risk_assessments_settings_new_device_response_content.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class GetRiskAssessmentsSettingsNewDeviceResponseContent(UniversalBaseModel): - remember_for: int = pydantic.Field() - """ - Length of time to remember devices for, in days. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_risk_assessments_settings_response_content.py b/src/auth0/management/types/get_risk_assessments_settings_response_content.py deleted file mode 100644 index 8d4e57a6..00000000 --- a/src/auth0/management/types/get_risk_assessments_settings_response_content.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class GetRiskAssessmentsSettingsResponseContent(UniversalBaseModel): - enabled: bool = pydantic.Field() - """ - Whether or not risk assessment is enabled. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_role_response_content.py b/src/auth0/management/types/get_role_response_content.py deleted file mode 100644 index a912ffe7..00000000 --- a/src/auth0/management/types/get_role_response_content.py +++ /dev/null @@ -1,37 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .role_owner_id import RoleOwnerId -from .role_type_enum import RoleTypeEnum - - -class GetRoleResponseContent(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID for this role. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of this role. - """ - - description: typing.Optional[str] = pydantic.Field(default=None) - """ - Description of this role. - """ - - type: typing.Optional[RoleTypeEnum] = None - owner_id: typing.Optional[RoleOwnerId] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_rule_response_content.py b/src/auth0/management/types/get_rule_response_content.py deleted file mode 100644 index 62836d2c..00000000 --- a/src/auth0/management/types/get_rule_response_content.py +++ /dev/null @@ -1,47 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class GetRuleResponseContent(UniversalBaseModel): - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of this rule. - """ - - id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of this rule. - """ - - enabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether the rule is enabled (true), or disabled (false). - """ - - script: typing.Optional[str] = pydantic.Field(default=None) - """ - Code to be executed when this rule runs. - """ - - order: typing.Optional[float] = pydantic.Field(default=None) - """ - Order that this rule should execute in relative to other rules. Lower-valued rules execute first. - """ - - stage: typing.Optional[str] = pydantic.Field(default=None) - """ - Execution stage of this rule. Can be `login_success`, `login_failure`, or `pre_authorize`. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_scim_configuration_default_mapping_response_content.py b/src/auth0/management/types/get_scim_configuration_default_mapping_response_content.py deleted file mode 100644 index b11f5295..00000000 --- a/src/auth0/management/types/get_scim_configuration_default_mapping_response_content.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .scim_mapping_item import ScimMappingItem - - -class GetScimConfigurationDefaultMappingResponseContent(UniversalBaseModel): - mapping: typing.Optional[typing.List[ScimMappingItem]] = pydantic.Field(default=None) - """ - The mapping between auth0 and SCIM - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_scim_configuration_response_content.py b/src/auth0/management/types/get_scim_configuration_response_content.py deleted file mode 100644 index 83d6dc37..00000000 --- a/src/auth0/management/types/get_scim_configuration_response_content.py +++ /dev/null @@ -1,59 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .scim_mapping_item import ScimMappingItem - - -class GetScimConfigurationResponseContent(UniversalBaseModel): - connection_id: str = pydantic.Field() - """ - The connection's identifier - """ - - connection_name: str = pydantic.Field() - """ - The connection's name - """ - - strategy: str = pydantic.Field() - """ - The connection's strategy - """ - - tenant_name: str = pydantic.Field() - """ - The tenant's name - """ - - user_id_attribute: str = pydantic.Field() - """ - User ID attribute for generating unique user ids - """ - - mapping: typing.List[ScimMappingItem] = pydantic.Field() - """ - The mapping between auth0 and SCIM - """ - - created_at: dt.datetime = pydantic.Field() - """ - The ISO 8601 date and time the SCIM configuration was created at - """ - - updated_on: dt.datetime = pydantic.Field() - """ - The ISO 8601 date and time the SCIM configuration was last updated on - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_scim_tokens_response_content.py b/src/auth0/management/types/get_scim_tokens_response_content.py deleted file mode 100644 index 24aaacf3..00000000 --- a/src/auth0/management/types/get_scim_tokens_response_content.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .scim_token_item import ScimTokenItem - -GetScimTokensResponseContent = typing.List[ScimTokenItem] -""" -The list of scim tokens for scim clients -""" diff --git a/src/auth0/management/types/get_segment_response_content.py b/src/auth0/management/types/get_segment_response_content.py deleted file mode 100644 index 0aa1724e..00000000 --- a/src/auth0/management/types/get_segment_response_content.py +++ /dev/null @@ -1,30 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .segment_rule import SegmentRule -from .segment_status_enum import SegmentStatusEnum -from .segment_type_enum import SegmentTypeEnum - - -class GetSegmentResponseContent(UniversalBaseModel): - id: str - name: str - description: typing.Optional[str] = None - type: SegmentTypeEnum - status: SegmentStatusEnum - rules: typing.List[SegmentRule] - created_at: dt.datetime - updated_at: dt.datetime - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_self_service_profile_response_content.py b/src/auth0/management/types/get_self_service_profile_response_content.py deleted file mode 100644 index 9843962b..00000000 --- a/src/auth0/management/types/get_self_service_profile_response_content.py +++ /dev/null @@ -1,64 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .self_service_profile_allowed_strategy_enum import SelfServiceProfileAllowedStrategyEnum -from .self_service_profile_branding_properties import SelfServiceProfileBrandingProperties -from .self_service_profile_user_attribute import SelfServiceProfileUserAttribute - - -class GetSelfServiceProfileResponseContent(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - The unique ID of the self-service Profile. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The name of the self-service Profile. - """ - - description: typing.Optional[str] = pydantic.Field(default=None) - """ - The description of the self-service Profile. - """ - - user_attributes: typing.Optional[typing.List[SelfServiceProfileUserAttribute]] = pydantic.Field(default=None) - """ - List of attributes to be mapped that will be shown to the user during the Self-Service Enterprise Configuration flow. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The time when this self-service Profile was created. - """ - - updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The time when this self-service Profile was updated. - """ - - branding: typing.Optional[SelfServiceProfileBrandingProperties] = None - allowed_strategies: typing.Optional[typing.List[SelfServiceProfileAllowedStrategyEnum]] = pydantic.Field( - default=None - ) - """ - List of IdP strategies that will be shown to users during the Self-Service Enterprise Configuration flow. Possible values: [`oidc`, `samlp`, `waad`, `google-apps`, `adfs`, `okta`, `auth0-samlp`, `okta-samlp`, `keycloak-samlp`, `pingfederate`] - """ - - user_attribute_profile_id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of the user-attribute-profile to associate with this self-service profile. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_session_response_content.py b/src/auth0/management/types/get_session_response_content.py deleted file mode 100644 index 55ad903e..00000000 --- a/src/auth0/management/types/get_session_response_content.py +++ /dev/null @@ -1,51 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .session_actor_metadata import SessionActorMetadata -from .session_authentication_signals import SessionAuthenticationSignals -from .session_client_metadata import SessionClientMetadata -from .session_cookie_metadata import SessionCookieMetadata -from .session_date import SessionDate -from .session_device_metadata import SessionDeviceMetadata -from .session_metadata import SessionMetadata - - -class GetSessionResponseContent(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - The ID of the session - """ - - user_id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of the user which can be used when interacting with other APIs. - """ - - created_at: typing.Optional[SessionDate] = None - updated_at: typing.Optional[SessionDate] = None - authenticated_at: typing.Optional[SessionDate] = None - idle_expires_at: typing.Optional[SessionDate] = None - expires_at: typing.Optional[SessionDate] = None - last_interacted_at: typing.Optional[SessionDate] = None - device: typing.Optional[SessionDeviceMetadata] = None - clients: typing.Optional[typing.List[SessionClientMetadata]] = pydantic.Field(default=None) - """ - List of client details for the session - """ - - authentication: typing.Optional[SessionAuthenticationSignals] = None - cookie: typing.Optional[SessionCookieMetadata] = None - session_metadata: typing.Optional[SessionMetadata] = None - actor: typing.Optional[SessionActorMetadata] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_settings_response_content.py b/src/auth0/management/types/get_settings_response_content.py deleted file mode 100644 index 0a11cfa4..00000000 --- a/src/auth0/management/types/get_settings_response_content.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .universal_login_experience_enum import UniversalLoginExperienceEnum - - -class GetSettingsResponseContent(UniversalBaseModel): - universal_login_experience: typing.Optional[UniversalLoginExperienceEnum] = None - identifier_first: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether identifier first is enabled or not - """ - - webauthn_platform_first_factor: typing.Optional[bool] = pydantic.Field(default=None) - """ - Use WebAuthn with Device Biometrics as the first authentication factor - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_signing_keys_response_content.py b/src/auth0/management/types/get_signing_keys_response_content.py deleted file mode 100644 index 945344f1..00000000 --- a/src/auth0/management/types/get_signing_keys_response_content.py +++ /dev/null @@ -1,73 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .signing_keys_date import SigningKeysDate - - -class GetSigningKeysResponseContent(UniversalBaseModel): - kid: str = pydantic.Field() - """ - The key id of the signing key - """ - - cert: str = pydantic.Field() - """ - The public certificate of the signing key - """ - - pkcs_7: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="pkcs7"), - pydantic.Field(alias="pkcs7", description="The public certificate of the signing key in pkcs7 format"), - ] = None - """ - The public certificate of the signing key in pkcs7 format - """ - - current: typing.Optional[bool] = pydantic.Field(default=None) - """ - True if the key is the the current key - """ - - next: typing.Optional[bool] = pydantic.Field(default=None) - """ - True if the key is the the next key - """ - - previous: typing.Optional[bool] = pydantic.Field(default=None) - """ - True if the key is the the previous key - """ - - current_since: typing.Optional[SigningKeysDate] = None - current_until: typing.Optional[SigningKeysDate] = None - fingerprint: str = pydantic.Field() - """ - The cert fingerprint - """ - - thumbprint: str = pydantic.Field() - """ - The cert thumbprint - """ - - revoked: typing.Optional[bool] = pydantic.Field(default=None) - """ - True if the key is revoked - """ - - revoked_at: typing.Optional[SigningKeysDate] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_supplemental_signals_response_content.py b/src/auth0/management/types/get_supplemental_signals_response_content.py deleted file mode 100644 index c50ea93b..00000000 --- a/src/auth0/management/types/get_supplemental_signals_response_content.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class GetSupplementalSignalsResponseContent(UniversalBaseModel): - akamai_enabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates if incoming Akamai Headers should be processed - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_suspicious_ip_throttling_settings_response_content.py b/src/auth0/management/types/get_suspicious_ip_throttling_settings_response_content.py deleted file mode 100644 index 840d0674..00000000 --- a/src/auth0/management/types/get_suspicious_ip_throttling_settings_response_content.py +++ /dev/null @@ -1,34 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .suspicious_ip_throttling_allowlist import SuspiciousIpThrottlingAllowlist -from .suspicious_ip_throttling_shields_enum import SuspiciousIpThrottlingShieldsEnum -from .suspicious_ip_throttling_stage import SuspiciousIpThrottlingStage - - -class GetSuspiciousIpThrottlingSettingsResponseContent(UniversalBaseModel): - enabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether or not suspicious IP throttling attack protections are active. - """ - - shields: typing.Optional[typing.List[SuspiciousIpThrottlingShieldsEnum]] = pydantic.Field(default=None) - """ - Action to take when a suspicious IP throttling threshold is violated. - Possible values: block, admin_notification. - """ - - allowlist: typing.Optional[SuspiciousIpThrottlingAllowlist] = None - stage: typing.Optional[SuspiciousIpThrottlingStage] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_tenant_settings_response_content.py b/src/auth0/management/types/get_tenant_settings_response_content.py deleted file mode 100644 index 8b510bbe..00000000 --- a/src/auth0/management/types/get_tenant_settings_response_content.py +++ /dev/null @@ -1,195 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .default_token_quota import DefaultTokenQuota -from .resource_server_access_token import ResourceServerAccessToken -from .session_cookie_schema import SessionCookieSchema -from .supported_locales import SupportedLocales -from .tenant_oidc_logout_settings import TenantOidcLogoutSettings -from .tenant_settings_country_codes_response import TenantSettingsCountryCodesResponse -from .tenant_settings_device_flow import TenantSettingsDeviceFlow -from .tenant_settings_dynamic_client_registration_security_mode import ( - TenantSettingsDynamicClientRegistrationSecurityMode, -) -from .tenant_settings_error_page import TenantSettingsErrorPage -from .tenant_settings_flags import TenantSettingsFlags -from .tenant_settings_guardian_page import TenantSettingsGuardianPage -from .tenant_settings_mtls import TenantSettingsMtls -from .tenant_settings_nullable_security_headers import TenantSettingsNullableSecurityHeaders -from .tenant_settings_password_page import TenantSettingsPasswordPage -from .tenant_settings_resource_parameter_profile import TenantSettingsResourceParameterProfile -from .tenant_settings_sessions import TenantSettingsSessions - - -class GetTenantSettingsResponseContent(UniversalBaseModel): - change_password: typing.Optional[TenantSettingsPasswordPage] = None - guardian_mfa_page: typing.Optional[TenantSettingsGuardianPage] = None - default_audience: typing.Optional[str] = pydantic.Field(default=None) - """ - Default audience for API authorization. - """ - - default_directory: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of connection used for password grants at the `/token`endpoint. The following connection types are supported: LDAP, AD, Database Connections, Passwordless, Windows Azure Active Directory, ADFS. - """ - - error_page: typing.Optional[TenantSettingsErrorPage] = None - device_flow: typing.Optional[TenantSettingsDeviceFlow] = None - default_token_quota: typing.Optional[DefaultTokenQuota] = None - flags: typing.Optional[TenantSettingsFlags] = None - friendly_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Friendly name for this tenant. - """ - - picture_url: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of logo to be shown for this tenant (recommended size: 150x150) - """ - - support_email: typing.Optional[str] = pydantic.Field(default=None) - """ - End-user support email address. - """ - - support_url: typing.Optional[str] = pydantic.Field(default=None) - """ - End-user support URL. - """ - - allowed_logout_urls: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - URLs that are valid to redirect to after logout from Auth0. - """ - - session_lifetime: typing.Optional[float] = pydantic.Field(default=None) - """ - Number of hours a session will stay valid. - """ - - idle_session_lifetime: typing.Optional[float] = pydantic.Field(default=None) - """ - Number of hours for which a session can be inactive before the user must log in again. - """ - - ephemeral_session_lifetime: typing.Optional[float] = pydantic.Field(default=None) - """ - Number of hours an ephemeral (non-persistent) session will stay valid. - """ - - idle_ephemeral_session_lifetime: typing.Optional[float] = pydantic.Field(default=None) - """ - Number of hours for which an ephemeral (non-persistent) session can be inactive before the user must log in again. - """ - - sandbox_version: typing.Optional[str] = pydantic.Field(default=None) - """ - Selected sandbox version for the extensibility environment. - """ - - legacy_sandbox_version: typing.Optional[str] = pydantic.Field(default=None) - """ - Selected sandbox version for rules and hooks extensibility. - """ - - sandbox_versions_available: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Available sandbox versions for the extensibility environment. - """ - - default_redirection_uri: typing.Optional[str] = pydantic.Field(default=None) - """ - The default absolute redirection uri, must be https - """ - - enabled_locales: typing.Optional[typing.List[SupportedLocales]] = pydantic.Field(default=None) - """ - Supported locales for the user interface. - """ - - access_token: typing.Optional[ResourceServerAccessToken] = None - security_headers: typing.Optional[TenantSettingsNullableSecurityHeaders] = None - session_cookie: typing.Optional[SessionCookieSchema] = None - sessions: typing.Optional[TenantSettingsSessions] = None - oidc_logout: typing.Optional[TenantOidcLogoutSettings] = None - allow_organization_name_in_authentication_api: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether to accept an organization name instead of an ID on auth endpoints - """ - - customize_mfa_in_postlogin_action: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether to enable flexible factors for MFA in the PostLogin action - """ - - acr_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Supported ACR values - """ - - mtls: typing.Optional[TenantSettingsMtls] = None - pushed_authorization_requests_supported: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables the use of Pushed Authorization Requests - """ - - authorization_response_iss_parameter_supported: typing.Optional[bool] = pydantic.Field(default=None) - """ - Supports iss parameter in authorization responses - """ - - dpop_strict_refresh_token_binding: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables strict DPoP refresh token binding per RFC 9449: all refresh tokens issued to public clients that present a DPoP proof are bound to the sender's key, and the binding is validated on every subsequent exchange. When disabled, DPoP refresh token binding may still apply for specific audiences for backwards compatibility. - """ - - skip_non_verifiable_callback_uri_confirmation_prompt: typing.Optional[bool] = pydantic.Field(default=None) - """ - Controls whether a confirmation prompt is shown during login flows when the redirect URI uses non-verifiable callback URIs (for example, a custom URI schema such as `myapp://`, or `localhost`). - If set to true, a confirmation prompt will not be shown. We recommend that this is set to false for improved protection from malicious apps. - See https://auth0.com/docs/secure/security-guidance/measures-against-app-impersonation for more information. - """ - - resource_parameter_profile: typing.Optional[TenantSettingsResourceParameterProfile] = None - client_id_metadata_document_supported: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether the authorization server supports retrieving client metadata from a client_id URL. - """ - - client_id_metadata_document_dynamic_registration_supported: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether the authorization server supports registering clients dynamically from a client_id URL. Requires client_id_metadata_document_supported to be enabled. - """ - - phone_consolidated_experience: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether Phone Consolidated Experience is enabled for this tenant. - """ - - enable_ai_guide: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether Auth0 Guide (AI-powered assistance) is enabled for this tenant. - """ - - include_session_metadata_in_tenant_logs: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether session metadata is included in specific tenant logs (slo, oidc_backchannel_logout_failed, oidc_backchannel_logout_succeeded). - """ - - dynamic_client_registration_security_mode: typing.Optional[TenantSettingsDynamicClientRegistrationSecurityMode] = ( - None - ) - country_codes: typing.Optional[TenantSettingsCountryCodesResponse] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_token_exchange_profile_response_content.py b/src/auth0/management/types/get_token_exchange_profile_response_content.py deleted file mode 100644 index e03fcd66..00000000 --- a/src/auth0/management/types/get_token_exchange_profile_response_content.py +++ /dev/null @@ -1,50 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .token_exchange_profile_type_enum import TokenExchangeProfileTypeEnum - - -class GetTokenExchangeProfileResponseContent(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - The unique ID of the token exchange profile. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Friendly name of this profile. - """ - - subject_token_type: typing.Optional[str] = pydantic.Field(default=None) - """ - Subject token type for this profile. When receiving a token exchange request on the Authentication API, the corresponding token exchange profile with a matching subject_token_type will be executed. This must be a URI. - """ - - action_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The ID of the Custom Token Exchange action to execute for this profile, in order to validate the subject_token. The action must use the custom-token-exchange trigger. - """ - - type: typing.Optional[TokenExchangeProfileTypeEnum] = None - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The time when this profile was created. - """ - - updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The time when this profile was updated. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_universal_login_template.py b/src/auth0/management/types/get_universal_login_template.py deleted file mode 100644 index 59b48b10..00000000 --- a/src/auth0/management/types/get_universal_login_template.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class GetUniversalLoginTemplate(UniversalBaseModel): - body: typing.Optional[str] = pydantic.Field(default=None) - """ - The custom page template for the New Universal Login Experience - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_universal_login_template_response_content.py b/src/auth0/management/types/get_universal_login_template_response_content.py deleted file mode 100644 index 220097aa..00000000 --- a/src/auth0/management/types/get_universal_login_template_response_content.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .get_universal_login_template import GetUniversalLoginTemplate - -GetUniversalLoginTemplateResponseContent = typing.Union[GetUniversalLoginTemplate, str] diff --git a/src/auth0/management/types/get_user_attribute_profile_response_content.py b/src/auth0/management/types/get_user_attribute_profile_response_content.py deleted file mode 100644 index c4ba0f4b..00000000 --- a/src/auth0/management/types/get_user_attribute_profile_response_content.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .user_attribute_profile_id import UserAttributeProfileId -from .user_attribute_profile_name import UserAttributeProfileName -from .user_attribute_profile_user_attributes import UserAttributeProfileUserAttributes -from .user_attribute_profile_user_id import UserAttributeProfileUserId - - -class GetUserAttributeProfileResponseContent(UniversalBaseModel): - id: typing.Optional[UserAttributeProfileId] = None - name: typing.Optional[UserAttributeProfileName] = None - user_id: typing.Optional[UserAttributeProfileUserId] = None - user_attributes: typing.Optional[UserAttributeProfileUserAttributes] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_user_attribute_profile_template_response_content.py b/src/auth0/management/types/get_user_attribute_profile_template_response_content.py deleted file mode 100644 index 9acbcedf..00000000 --- a/src/auth0/management/types/get_user_attribute_profile_template_response_content.py +++ /dev/null @@ -1,30 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .user_attribute_profile_template import UserAttributeProfileTemplate - - -class GetUserAttributeProfileTemplateResponseContent(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - The id of the template. - """ - - display_name: typing.Optional[str] = pydantic.Field(default=None) - """ - The user-friendly name of the template displayed in the UI. - """ - - template: typing.Optional[UserAttributeProfileTemplate] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_user_authentication_method_response_content.py b/src/auth0/management/types/get_user_authentication_method_response_content.py deleted file mode 100644 index 16a3a7dd..00000000 --- a/src/auth0/management/types/get_user_authentication_method_response_content.py +++ /dev/null @@ -1,119 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .authentication_method_type_enum import AuthenticationMethodTypeEnum -from .preferred_authentication_method_enum import PreferredAuthenticationMethodEnum -from .user_authentication_method_properties import UserAuthenticationMethodProperties - - -class GetUserAuthenticationMethodResponseContent(UniversalBaseModel): - id: str = pydantic.Field() - """ - The ID of the authentication method (auto generated) - """ - - type: AuthenticationMethodTypeEnum - confirmed: typing.Optional[bool] = pydantic.Field(default=None) - """ - The authentication method status - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - A human-readable label to identify the authentication method - """ - - authentication_methods: typing.Optional[typing.List[UserAuthenticationMethodProperties]] = None - preferred_authentication_method: typing.Optional[PreferredAuthenticationMethodEnum] = None - link_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The ID of a linked authentication method. Linked authentication methods will be deleted together. - """ - - phone_number: typing.Optional[str] = pydantic.Field(default=None) - """ - Applies to phone authentication methods only. The destination phone number used to send verification codes via text and voice. - """ - - email: typing.Optional[str] = pydantic.Field(default=None) - """ - Applies to email and email-verification authentication methods only. The email address used to send verification messages. - """ - - key_id: typing.Optional[str] = pydantic.Field(default=None) - """ - Applies to webauthn authentication methods only. The ID of the generated credential. - """ - - public_key: typing.Optional[str] = pydantic.Field(default=None) - """ - Applies to webauthn authentication methods only. The public key. - """ - - created_at: dt.datetime = pydantic.Field() - """ - Authenticator creation date - """ - - enrolled_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Enrollment date - """ - - last_auth_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Last authentication - """ - - credential_device_type: typing.Optional[str] = pydantic.Field(default=None) - """ - Applies to passkeys only. The kind of device the credential is stored on as defined by backup eligibility. "single_device" credentials cannot be backed up and synced to another device, "multi_device" credentials can be backed up if enabled by the end-user. - """ - - credential_backed_up: typing.Optional[bool] = pydantic.Field(default=None) - """ - Applies to passkeys only. Whether the credential was backed up. - """ - - identity_user_id: typing.Optional[str] = pydantic.Field(default=None) - """ - Applies to passkeys only. The ID of the user identity linked with the authentication method. - """ - - user_agent: typing.Optional[str] = pydantic.Field(default=None) - """ - Applies to passkeys only. The user-agent of the browser used to create the passkey. - """ - - user_handle: typing.Optional[str] = pydantic.Field(default=None) - """ - Applies to passkeys only. The user handle of the user identity. - """ - - transports: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Applies to passkeys only. The transports used by clients to communicate with the authenticator. - """ - - aaguid: typing.Optional[str] = pydantic.Field(default=None) - """ - Applies to passkey authentication methods only. Authenticator Attestation Globally Unique Identifier. - """ - - relying_party_identifier: typing.Optional[str] = pydantic.Field(default=None) - """ - Applies to webauthn/passkey authentication methods only. The credential's relying party identifier. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_user_groups_paginated_response_content.py b/src/auth0/management/types/get_user_groups_paginated_response_content.py deleted file mode 100644 index f2c9cd48..00000000 --- a/src/auth0/management/types/get_user_groups_paginated_response_content.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .user_groups_response_schema import UserGroupsResponseSchema - - -class GetUserGroupsPaginatedResponseContent(UniversalBaseModel): - groups: typing.List[UserGroupsResponseSchema] - next: typing.Optional[str] = pydantic.Field(default=None) - """ - A cursor to be used as the "from" query parameter for the next page of results. - """ - - start: typing.Optional[float] = None - limit: typing.Optional[float] = None - total: typing.Optional[float] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_user_response_content.py b/src/auth0/management/types/get_user_response_content.py deleted file mode 100644 index f99e7ca9..00000000 --- a/src/auth0/management/types/get_user_response_content.py +++ /dev/null @@ -1,128 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .user_app_metadata_schema import UserAppMetadataSchema -from .user_identity_schema import UserIdentitySchema -from .user_metadata_schema import UserMetadataSchema - - -class GetUserResponseContent(UniversalBaseModel): - user_id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of the user which can be used when interacting with other APIs. - """ - - email: typing.Optional[str] = pydantic.Field(default=None) - """ - Email address of this user. - """ - - email_verified: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this email address is verified (true) or unverified (false). - """ - - username: typing.Optional[str] = pydantic.Field(default=None) - """ - Username of this user. - """ - - phone_number: typing.Optional[str] = pydantic.Field(default=None) - """ - Phone number for this user. Follows the E.164 recommendation. - """ - - phone_verified: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this phone number has been verified (true) or not (false). - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Date and time when this user was created. - """ - - updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Date and time when this user was last updated/modified. - """ - - identities: typing.Optional[typing.List[UserIdentitySchema]] = pydantic.Field(default=None) - """ - Array of user identity objects when accounts are linked. - """ - - app_metadata: typing.Optional[UserAppMetadataSchema] = None - user_metadata: typing.Optional[UserMetadataSchema] = None - picture: typing.Optional[str] = pydantic.Field(default=None) - """ - URL to picture, photo, or avatar of this user. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of this user. - """ - - nickname: typing.Optional[str] = pydantic.Field(default=None) - """ - Preferred nickname or alias of this user. - """ - - multifactor: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - List of multi-factor authentication providers with which this user has enrolled. - """ - - multifactor_last_modified: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Last date and time this user's multi-factor authentication providers were updated. - """ - - last_ip: typing.Optional[str] = pydantic.Field(default=None) - """ - Last IP address from which this user logged in. - """ - - last_login: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Last date and time this user logged in. - """ - - last_password_reset: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Last date and time this user had their password reset. - """ - - logins_count: typing.Optional[int] = pydantic.Field(default=None) - """ - Total number of logins this user has performed. - """ - - blocked: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this user was blocked by an administrator (true) or is not (false). - """ - - given_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Given name/first name/forename of this user. - """ - - family_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Family name/last name/surname of this user. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_variation_response_content.py b/src/auth0/management/types/get_variation_response_content.py deleted file mode 100644 index 747c9566..00000000 --- a/src/auth0/management/types/get_variation_response_content.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .variation_overrides_map import VariationOverridesMap - - -class GetVariationResponseContent(UniversalBaseModel): - id: str - feature_flag_id: str - name: str - description: typing.Optional[str] = None - overrides: VariationOverridesMap - created_at: dt.datetime - updated_at: dt.datetime - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/get_verifiable_credential_template_response_content.py b/src/auth0/management/types/get_verifiable_credential_template_response_content.py deleted file mode 100644 index 864524bd..00000000 --- a/src/auth0/management/types/get_verifiable_credential_template_response_content.py +++ /dev/null @@ -1,60 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .mdl_presentation_request import MdlPresentationRequest - - -class GetVerifiableCredentialTemplateResponseContent(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - The id of the template. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The name of the template. - """ - - type: typing.Optional[str] = pydantic.Field(default=None) - """ - The type of the template. - """ - - dialect: typing.Optional[str] = pydantic.Field(default=None) - """ - The dialect of the template. - """ - - presentation: typing.Optional[MdlPresentationRequest] = None - custom_certificate_authority: typing.Optional[str] = pydantic.Field(default=None) - """ - The custom certificate authority. - """ - - well_known_trusted_issuers: typing.Optional[str] = pydantic.Field(default=None) - """ - The well-known trusted issuers, comma separated. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The date and time the template was created. - """ - - updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The date and time the template was created. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/google_account_linking_configuration.py b/src/auth0/management/types/google_account_linking_configuration.py deleted file mode 100644 index 30c81f48..00000000 --- a/src/auth0/management/types/google_account_linking_configuration.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class GoogleAccountLinkingConfiguration(UniversalBaseModel): - """ - Configuration for Google account linking. - """ - - allow_streamlined_linking: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables the Google streamlined account linking flow for this client. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/google_account_linking_configuration_create.py b/src/auth0/management/types/google_account_linking_configuration_create.py deleted file mode 100644 index 80314080..00000000 --- a/src/auth0/management/types/google_account_linking_configuration_create.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class GoogleAccountLinkingConfigurationCreate(UniversalBaseModel): - """ - Configuration for Google account linking. - """ - - allow_streamlined_linking: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables the Google streamlined account linking flow for this client. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/google_account_linking_configuration_or_null.py b/src/auth0/management/types/google_account_linking_configuration_or_null.py deleted file mode 100644 index fe4db0a3..00000000 --- a/src/auth0/management/types/google_account_linking_configuration_or_null.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class GoogleAccountLinkingConfigurationOrNull(UniversalBaseModel): - """ - Configuration for Google account linking. - """ - - allow_streamlined_linking: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables the Google streamlined account linking flow for this client. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/group.py b/src/auth0/management/types/group.py deleted file mode 100644 index 1faba1c9..00000000 --- a/src/auth0/management/types/group.py +++ /dev/null @@ -1,57 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class Group(UniversalBaseModel): - """ - Represents the metadata of a group. Member lists are retrieved via a separate endpoint. - """ - - id: typing.Optional[str] = pydantic.Field(default=None) - """ - Unique identifier for the group (service-generated). - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of the group. Must be unique within its connection. Must contain between 1 and 128 printable ASCII characters. - """ - - external_id: typing.Optional[str] = pydantic.Field(default=None) - """ - External identifier for the group, often used for SCIM synchronization. Max length of 256 characters. - """ - - connection_id: typing.Optional[str] = pydantic.Field(default=None) - """ - Identifier for the connection this group belongs to (if a connection group). - """ - - tenant_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Identifier for the tenant this group belongs to. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Timestamp of when the group was created. - """ - - updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Timestamp of when the group was last updated. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/group_member.py b/src/auth0/management/types/group_member.py deleted file mode 100644 index 0c98a861..00000000 --- a/src/auth0/management/types/group_member.py +++ /dev/null @@ -1,41 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .group_member_type_enum import GroupMemberTypeEnum -from .group_type_enum import GroupTypeEnum - - -class GroupMember(UniversalBaseModel): - """ - Represents the metadata of a group membership. - """ - - id: typing.Optional[str] = pydantic.Field(default=None) - """ - Unique identifier for the member. - """ - - member_type: typing.Optional[GroupMemberTypeEnum] = None - type: typing.Optional[GroupTypeEnum] = None - connection_id: typing.Optional[str] = pydantic.Field(default=None) - """ - Identifier for the connection this group belongs to (if a connection group). - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Timestamp of when the membership was created. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/group_member_type_enum.py b/src/auth0/management/types/group_member_type_enum.py deleted file mode 100644 index 8d55b3fe..00000000 --- a/src/auth0/management/types/group_member_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -GroupMemberTypeEnum = typing.Union[typing.Literal["user", "group"], typing.Any] diff --git a/src/auth0/management/types/group_type_enum.py b/src/auth0/management/types/group_type_enum.py deleted file mode 100644 index 1eeb731e..00000000 --- a/src/auth0/management/types/group_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -GroupTypeEnum = typing.Union[typing.Literal["connection", "organization", "tenant"], typing.Any] diff --git a/src/auth0/management/types/guardian_enrollment_date.py b/src/auth0/management/types/guardian_enrollment_date.py deleted file mode 100644 index 66abfd81..00000000 --- a/src/auth0/management/types/guardian_enrollment_date.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -GuardianEnrollmentDate = str -""" -Enrollment date and time. -""" diff --git a/src/auth0/management/types/guardian_enrollment_factor_enum.py b/src/auth0/management/types/guardian_enrollment_factor_enum.py deleted file mode 100644 index 38732ce3..00000000 --- a/src/auth0/management/types/guardian_enrollment_factor_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -GuardianEnrollmentFactorEnum = typing.Union[ - typing.Literal["push-notification", "phone", "email", "otp", "webauthn-roaming", "webauthn-platform"], typing.Any -] diff --git a/src/auth0/management/types/guardian_enrollment_status.py b/src/auth0/management/types/guardian_enrollment_status.py deleted file mode 100644 index fe2f127d..00000000 --- a/src/auth0/management/types/guardian_enrollment_status.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -GuardianEnrollmentStatus = typing.Union[typing.Literal["pending", "confirmed"], typing.Any] diff --git a/src/auth0/management/types/guardian_factor.py b/src/auth0/management/types/guardian_factor.py deleted file mode 100644 index c658787f..00000000 --- a/src/auth0/management/types/guardian_factor.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .guardian_factor_name_enum import GuardianFactorNameEnum -from .guardian_factor_settings import GuardianFactorSettings - - -class GuardianFactor(UniversalBaseModel): - enabled: bool = pydantic.Field() - """ - Whether this factor is enabled (true) or disabled (false). - """ - - trial_expired: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether trial limits have been exceeded. - """ - - name: typing.Optional[GuardianFactorNameEnum] = None - settings: typing.Optional[GuardianFactorSettings] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/guardian_factor_name_enum.py b/src/auth0/management/types/guardian_factor_name_enum.py deleted file mode 100644 index f147a42d..00000000 --- a/src/auth0/management/types/guardian_factor_name_enum.py +++ /dev/null @@ -1,18 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -GuardianFactorNameEnum = typing.Union[ - typing.Literal[ - "push-notification", - "sms", - "email", - "duo", - "otp", - "webauthn-roaming", - "webauthn-platform", - "recovery-code", - "passkey", - ], - typing.Any, -] diff --git a/src/auth0/management/types/guardian_factor_phone_factor_message_type_enum.py b/src/auth0/management/types/guardian_factor_phone_factor_message_type_enum.py deleted file mode 100644 index bb393f98..00000000 --- a/src/auth0/management/types/guardian_factor_phone_factor_message_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -GuardianFactorPhoneFactorMessageTypeEnum = typing.Union[typing.Literal["sms", "voice"], typing.Any] diff --git a/src/auth0/management/types/guardian_factor_settings.py b/src/auth0/management/types/guardian_factor_settings.py deleted file mode 100644 index 056b1b7f..00000000 --- a/src/auth0/management/types/guardian_factor_settings.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class GuardianFactorSettings(UniversalBaseModel): - """ - Factor-specific settings. Only returned when include_settings=true. - """ - - otp_length: typing.Optional[int] = pydantic.Field(default=None) - """ - The length of the OTP code. - """ - - otp_expiration_time: typing.Optional[int] = pydantic.Field(default=None) - """ - The OTP expiration time in seconds. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/guardian_factors_provider_push_notification_provider_data_enum.py b/src/auth0/management/types/guardian_factors_provider_push_notification_provider_data_enum.py deleted file mode 100644 index c333028b..00000000 --- a/src/auth0/management/types/guardian_factors_provider_push_notification_provider_data_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -GuardianFactorsProviderPushNotificationProviderDataEnum = typing.Union[ - typing.Literal["guardian", "sns", "direct"], typing.Any -] diff --git a/src/auth0/management/types/guardian_factors_provider_sms_provider_enum.py b/src/auth0/management/types/guardian_factors_provider_sms_provider_enum.py deleted file mode 100644 index 04872204..00000000 --- a/src/auth0/management/types/guardian_factors_provider_sms_provider_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -GuardianFactorsProviderSmsProviderEnum = typing.Union[ - typing.Literal["auth0", "twilio", "phone-message-hook"], typing.Any -] diff --git a/src/auth0/management/types/hook.py b/src/auth0/management/types/hook.py deleted file mode 100644 index 08abada8..00000000 --- a/src/auth0/management/types/hook.py +++ /dev/null @@ -1,51 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .hook_dependencies import HookDependencies - - -class Hook(UniversalBaseModel): - trigger_id: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="triggerId"), - pydantic.Field(alias="triggerId", description="Trigger ID"), - ] = None - """ - Trigger ID - """ - - id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of this hook. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of this hook. - """ - - enabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this hook will be executed (true) or ignored (false). - """ - - script: typing.Optional[str] = pydantic.Field(default=None) - """ - Code to be executed when this hook runs. - """ - - dependencies: typing.Optional[HookDependencies] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/hook_dependencies.py b/src/auth0/management/types/hook_dependencies.py deleted file mode 100644 index 1d15ca5a..00000000 --- a/src/auth0/management/types/hook_dependencies.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -HookDependencies = typing.Dict[str, str] -""" -Dependencies of this hook used by webtask server. -""" diff --git a/src/auth0/management/types/hook_trigger_id_enum.py b/src/auth0/management/types/hook_trigger_id_enum.py deleted file mode 100644 index 88b2c8e0..00000000 --- a/src/auth0/management/types/hook_trigger_id_enum.py +++ /dev/null @@ -1,14 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -HookTriggerIdEnum = typing.Union[ - typing.Literal[ - "credentials-exchange", - "pre-user-registration", - "post-user-registration", - "post-change-password", - "send-phone-message", - ], - typing.Any, -] diff --git a/src/auth0/management/types/http_custom_header.py b/src/auth0/management/types/http_custom_header.py deleted file mode 100644 index 75f9ca6b..00000000 --- a/src/auth0/management/types/http_custom_header.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class HttpCustomHeader(UniversalBaseModel): - header: typing.Optional[str] = pydantic.Field(default=None) - """ - HTTP header name - """ - - value: typing.Optional[str] = pydantic.Field(default=None) - """ - HTTP header value - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/identity.py b/src/auth0/management/types/identity.py deleted file mode 100644 index a7fd0700..00000000 --- a/src/auth0/management/types/identity.py +++ /dev/null @@ -1,33 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .identity_provider_enum import IdentityProviderEnum - - -class Identity(UniversalBaseModel): - """ - This must be provided to verify primary social, enterprise and passwordless email identities. Also, is needed to verify secondary identities. - """ - - user_id: str = pydantic.Field() - """ - user_id of the identity to be verified. - """ - - provider: IdentityProviderEnum - connection_id: typing.Optional[str] = pydantic.Field(default=None) - """ - connection_id of the identity. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/identity_assertion_authorization_grant.py b/src/auth0/management/types/identity_assertion_authorization_grant.py deleted file mode 100644 index 1c4ee9c5..00000000 --- a/src/auth0/management/types/identity_assertion_authorization_grant.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class IdentityAssertionAuthorizationGrant(UniversalBaseModel): - """ - Configuration on the use of ID-JAGs for Cross App Access. - """ - - active: bool = pydantic.Field() - """ - If set to true, the client can exchange ID-JAGs for access tokens. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/identity_provider_enum.py b/src/auth0/management/types/identity_provider_enum.py deleted file mode 100644 index c576e65a..00000000 --- a/src/auth0/management/types/identity_provider_enum.py +++ /dev/null @@ -1,64 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -IdentityProviderEnum = typing.Union[ - typing.Literal[ - "ad", - "adfs", - "amazon", - "apple", - "dropbox", - "bitbucket", - "auth0-oidc", - "auth0", - "baidu", - "bitly", - "box", - "custom", - "daccount", - "dwolla", - "email", - "evernote-sandbox", - "evernote", - "exact", - "facebook", - "fitbit", - "github", - "google-apps", - "google-oauth2", - "instagram", - "ip", - "line", - "linkedin", - "oauth1", - "oauth2", - "office365", - "oidc", - "okta", - "paypal", - "paypal-sandbox", - "pingfederate", - "planningcenter", - "salesforce-community", - "salesforce-sandbox", - "salesforce", - "samlp", - "sharepoint", - "shopify", - "shop", - "sms", - "soundcloud", - "thirtysevensignals", - "twitter", - "untappd", - "vkontakte", - "waad", - "weibo", - "windowslive", - "wordpress", - "yahoo", - "yandex", - ], - typing.Any, -] diff --git a/src/auth0/management/types/identity_provider_only_auth_0_enum.py b/src/auth0/management/types/identity_provider_only_auth_0_enum.py deleted file mode 100644 index bb899db7..00000000 --- a/src/auth0/management/types/identity_provider_only_auth_0_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -IdentityProviderOnlyAuth0Enum = typing.Union[typing.Literal["auth0"], typing.Any] diff --git a/src/auth0/management/types/import_encryption_key_response_content.py b/src/auth0/management/types/import_encryption_key_response_content.py deleted file mode 100644 index ae3e26fd..00000000 --- a/src/auth0/management/types/import_encryption_key_response_content.py +++ /dev/null @@ -1,51 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .encryption_key_state import EncryptionKeyState -from .encryption_key_type import EncryptionKeyType - - -class ImportEncryptionKeyResponseContent(UniversalBaseModel): - """ - Encryption key - """ - - kid: str = pydantic.Field() - """ - Key ID - """ - - type: EncryptionKeyType - state: EncryptionKeyState - created_at: dt.datetime = pydantic.Field() - """ - Key creation timestamp - """ - - updated_at: dt.datetime = pydantic.Field() - """ - Key update timestamp - """ - - parent_kid: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of parent wrapping key - """ - - public_key: typing.Optional[str] = pydantic.Field(default=None) - """ - Public key in PEM format - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/include_user_profile_size_header_enum.py b/src/auth0/management/types/include_user_profile_size_header_enum.py deleted file mode 100644 index df9389c7..00000000 --- a/src/auth0/management/types/include_user_profile_size_header_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -IncludeUserProfileSizeHeaderEnum = typing.Union[typing.Literal["true"], typing.Any] diff --git a/src/auth0/management/types/integration.py b/src/auth0/management/types/integration.py deleted file mode 100644 index d20c7e18..00000000 --- a/src/auth0/management/types/integration.py +++ /dev/null @@ -1,76 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .integration_feature_type_enum import IntegrationFeatureTypeEnum -from .integration_release import IntegrationRelease - - -class Integration(UniversalBaseModel): - """ - Integration defines a self contained functioning unit which partners - publish. A partner may create one or many of these integrations. - """ - - id: typing.Optional[str] = pydantic.Field(default=None) - """ - id is a system generated GUID. This same ID is designed to be federated in - all the applicable localities. - """ - - catalog_id: typing.Optional[str] = pydantic.Field(default=None) - """ - catalog_id refers to the ID in the marketplace catalog - """ - - url_slug: typing.Optional[str] = pydantic.Field(default=None) - """ - url_slug refers to the url_slug in the marketplace catalog - """ - - partner_id: typing.Optional[str] = pydantic.Field(default=None) - """ - partner_id is the foreign key reference to the partner account this - integration belongs to. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - name is the integration name, which will be used for display purposes in - the marketplace. - - To start we're going to make sure the display name is at least 3 - characters. Can adjust this easily later. - """ - - description: typing.Optional[str] = pydantic.Field(default=None) - """ - description adds more text for the integration name -- also relevant for - the marketplace listing. - """ - - short_description: typing.Optional[str] = pydantic.Field(default=None) - """ - short_description is the brief description of the integration, which is used for display purposes in cards - """ - - logo: typing.Optional[str] = None - feature_type: typing.Optional[IntegrationFeatureTypeEnum] = None - terms_of_use_url: typing.Optional[str] = None - privacy_policy_url: typing.Optional[str] = None - public_support_link: typing.Optional[str] = None - current_release: typing.Optional[IntegrationRelease] = None - created_at: typing.Optional[dt.datetime] = None - updated_at: typing.Optional[dt.datetime] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/integration_feature_type_enum.py b/src/auth0/management/types/integration_feature_type_enum.py deleted file mode 100644 index 85e280f1..00000000 --- a/src/auth0/management/types/integration_feature_type_enum.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -IntegrationFeatureTypeEnum = typing.Union[ - typing.Literal["unspecified", "action", "social_connection", "log_stream", "sso_integration", "sms_provider"], - typing.Any, -] diff --git a/src/auth0/management/types/integration_release.py b/src/auth0/management/types/integration_release.py deleted file mode 100644 index 66d7e363..00000000 --- a/src/auth0/management/types/integration_release.py +++ /dev/null @@ -1,38 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .action_trigger import ActionTrigger -from .integration_required_param import IntegrationRequiredParam -from .integration_sem_ver import IntegrationSemVer - - -class IntegrationRelease(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - The id of the associated IntegrationRelease - """ - - trigger: typing.Optional[ActionTrigger] = None - semver: typing.Optional[IntegrationSemVer] = None - required_secrets: typing.Optional[typing.List[IntegrationRequiredParam]] = pydantic.Field(default=None) - """ - required_secrets declares all the necessary secrets for an integration to - work. - """ - - required_configuration: typing.Optional[typing.List[IntegrationRequiredParam]] = pydantic.Field(default=None) - """ - required_configuration declares all the necessary configuration fields for an integration to work. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/integration_required_param.py b/src/auth0/management/types/integration_required_param.py deleted file mode 100644 index bf25cdcc..00000000 --- a/src/auth0/management/types/integration_required_param.py +++ /dev/null @@ -1,69 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .integration_required_param_option import IntegrationRequiredParamOption -from .integration_required_param_type_enum import IntegrationRequiredParamTypeEnum - - -class IntegrationRequiredParam(UniversalBaseModel): - """ - Param are form input values, primarily utilized when specifying secrets and - configuration values for actions. - - These are especially important for partner integrations -- but can be - exposed to tenant admins as well if they want to parameterize their custom - actions. - """ - - type: typing.Optional[IntegrationRequiredParamTypeEnum] = None - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The name of the parameter. - """ - - required: typing.Optional[bool] = pydantic.Field(default=None) - """ - The flag for if this parameter is required. - """ - - optional: typing.Optional[bool] = pydantic.Field(default=None) - """ - The temp flag for if this parameter is required (experimental; for Labs use only). - """ - - label: typing.Optional[str] = pydantic.Field(default=None) - """ - The short label for this parameter. - """ - - description: typing.Optional[str] = pydantic.Field(default=None) - """ - The lengthier description for this parameter. - """ - - default_value: typing.Optional[str] = pydantic.Field(default=None) - """ - The default value for this parameter. - """ - - placeholder: typing.Optional[str] = pydantic.Field(default=None) - """ - Placeholder text for this parameter. - """ - - options: typing.Optional[typing.List[IntegrationRequiredParamOption]] = pydantic.Field(default=None) - """ - The allowable options for this param. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/integration_required_param_option.py b/src/auth0/management/types/integration_required_param_option.py deleted file mode 100644 index 74598889..00000000 --- a/src/auth0/management/types/integration_required_param_option.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class IntegrationRequiredParamOption(UniversalBaseModel): - value: typing.Optional[str] = pydantic.Field(default=None) - """ - The value of an option that will be used within the application. - """ - - label: typing.Optional[str] = pydantic.Field(default=None) - """ - The display value of an option suitable for displaying in a UI. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/integration_required_param_type_enum.py b/src/auth0/management/types/integration_required_param_type_enum.py deleted file mode 100644 index 01045311..00000000 --- a/src/auth0/management/types/integration_required_param_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -IntegrationRequiredParamTypeEnum = typing.Union[typing.Literal["UNSPECIFIED", "STRING"], typing.Any] diff --git a/src/auth0/management/types/integration_sem_ver.py b/src/auth0/management/types/integration_sem_ver.py deleted file mode 100644 index 669adf1a..00000000 --- a/src/auth0/management/types/integration_sem_ver.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class IntegrationSemVer(UniversalBaseModel): - """ - Semver denotes the major.minor version of an integration release - """ - - major: typing.Optional[int] = pydantic.Field(default=None) - """ - Major is the major number of a semver - """ - - minor: typing.Optional[int] = pydantic.Field(default=None) - """ - Minior is the minior number of a semver - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/internal_server_error_body.py b/src/auth0/management/types/internal_server_error_body.py deleted file mode 100644 index e403356b..00000000 --- a/src/auth0/management/types/internal_server_error_body.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .internal_server_error_body_error import InternalServerErrorBodyError - - -class InternalServerErrorBody(UniversalBaseModel): - message: str - status_code: typing_extensions.Annotated[str, FieldMetadata(alias="statusCode"), pydantic.Field(alias="statusCode")] - error: InternalServerErrorBodyError - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/internal_server_error_body_error.py b/src/auth0/management/types/internal_server_error_body_error.py deleted file mode 100644 index 09403d7b..00000000 --- a/src/auth0/management/types/internal_server_error_body_error.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -InternalServerErrorBodyError = typing.Union[typing.Literal["Internal Server Error"], typing.Any] diff --git a/src/auth0/management/types/job_file_format_enum.py b/src/auth0/management/types/job_file_format_enum.py deleted file mode 100644 index 4f3ffb7b..00000000 --- a/src/auth0/management/types/job_file_format_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -JobFileFormatEnum = typing.Union[typing.Literal["json", "csv"], typing.Any] diff --git a/src/auth0/management/types/linked_client_configuration.py b/src/auth0/management/types/linked_client_configuration.py deleted file mode 100644 index f352d49d..00000000 --- a/src/auth0/management/types/linked_client_configuration.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class LinkedClientConfiguration(UniversalBaseModel): - """ - Configuration for linked clients in the OIN Express Configuration feature. - """ - - client_id: str = pydantic.Field() - """ - The ID of the linked client. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/list_action_bindings_paginated_response_content.py b/src/auth0/management/types/list_action_bindings_paginated_response_content.py deleted file mode 100644 index d534b26b..00000000 --- a/src/auth0/management/types/list_action_bindings_paginated_response_content.py +++ /dev/null @@ -1,38 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .action_binding import ActionBinding - - -class ListActionBindingsPaginatedResponseContent(UniversalBaseModel): - total: typing.Optional[float] = pydantic.Field(default=None) - """ - The total result count. - """ - - page: typing.Optional[float] = pydantic.Field(default=None) - """ - Page index of the results being returned. First page is 0. - """ - - per_page: typing.Optional[float] = pydantic.Field(default=None) - """ - Number of results per page. - """ - - bindings: typing.Optional[typing.List[ActionBinding]] = pydantic.Field(default=None) - """ - The list of actions that are bound to this trigger in the order in which they will be executed. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/list_action_triggers_response_content.py b/src/auth0/management/types/list_action_triggers_response_content.py deleted file mode 100644 index 312ba200..00000000 --- a/src/auth0/management/types/list_action_triggers_response_content.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .action_trigger import ActionTrigger - - -class ListActionTriggersResponseContent(UniversalBaseModel): - triggers: typing.Optional[typing.List[ActionTrigger]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/list_action_versions_paginated_response_content.py b/src/auth0/management/types/list_action_versions_paginated_response_content.py deleted file mode 100644 index a11c10d9..00000000 --- a/src/auth0/management/types/list_action_versions_paginated_response_content.py +++ /dev/null @@ -1,35 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .action_version import ActionVersion - - -class ListActionVersionsPaginatedResponseContent(UniversalBaseModel): - total: typing.Optional[float] = pydantic.Field(default=None) - """ - The total result count. - """ - - page: typing.Optional[float] = pydantic.Field(default=None) - """ - Page index of the results being returned. First page is 0. - """ - - per_page: typing.Optional[float] = pydantic.Field(default=None) - """ - Number of results per page. - """ - - versions: typing.Optional[typing.List[ActionVersion]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/list_actions_paginated_response_content.py b/src/auth0/management/types/list_actions_paginated_response_content.py deleted file mode 100644 index 2573b82e..00000000 --- a/src/auth0/management/types/list_actions_paginated_response_content.py +++ /dev/null @@ -1,38 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .action import Action - - -class ListActionsPaginatedResponseContent(UniversalBaseModel): - total: typing.Optional[float] = pydantic.Field(default=None) - """ - The total result count. - """ - - page: typing.Optional[float] = pydantic.Field(default=None) - """ - Page index of the results being returned. First page is 0. - """ - - per_page: typing.Optional[float] = pydantic.Field(default=None) - """ - Number of results per page. - """ - - actions: typing.Optional[typing.List[Action]] = pydantic.Field(default=None) - """ - The list of actions. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/list_aculs_offset_paginated_response_content.py b/src/auth0/management/types/list_aculs_offset_paginated_response_content.py deleted file mode 100644 index 6c9b1326..00000000 --- a/src/auth0/management/types/list_aculs_offset_paginated_response_content.py +++ /dev/null @@ -1,34 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .list_aculs_response_content_item import ListAculsResponseContentItem - - -class ListAculsOffsetPaginatedResponseContent(UniversalBaseModel): - configs: typing.Optional[typing.List[ListAculsResponseContentItem]] = None - start: typing.Optional[float] = pydantic.Field(default=None) - """ - the index of the first configuration in the response (before filtering) - """ - - limit: typing.Optional[float] = pydantic.Field(default=None) - """ - the maximum number of configurations shown per page (before filtering) - """ - - total: typing.Optional[float] = pydantic.Field(default=None) - """ - the total number of configurations on this tenant - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/list_aculs_response_content_item.py b/src/auth0/management/types/list_aculs_response_content_item.py deleted file mode 100644 index ed05d389..00000000 --- a/src/auth0/management/types/list_aculs_response_content_item.py +++ /dev/null @@ -1,59 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .acul_context_configuration import AculContextConfiguration -from .acul_filters import AculFilters -from .acul_head_tag import AculHeadTag -from .acul_rendering_mode_enum import AculRenderingModeEnum - - -class ListAculsResponseContentItem(UniversalBaseModel): - tenant: typing.Optional[str] = pydantic.Field(default=None) - """ - Tenant ID - """ - - prompt: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of the prompt - """ - - screen: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of the screen - """ - - rendering_mode: typing.Optional[AculRenderingModeEnum] = pydantic.Field(default=None) - """ - Rendering mode - """ - - context_configuration: typing.Optional[AculContextConfiguration] = None - default_head_tags_disabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - Override Universal Login default head tags - """ - - use_page_template: typing.Optional[bool] = pydantic.Field(default=None) - """ - Use page template with ACUL - """ - - head_tags: typing.Optional[typing.List[AculHeadTag]] = pydantic.Field(default=None) - """ - An array of head tags - """ - - filters: typing.Optional[AculFilters] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/list_agents_response_content.py b/src/auth0/management/types/list_agents_response_content.py deleted file mode 100644 index fd8cfab0..00000000 --- a/src/auth0/management/types/list_agents_response_content.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .agent_response_content import AgentResponseContent - - -class ListAgentsResponseContent(UniversalBaseModel): - agents: typing.List[AgentResponseContent] - next: typing.Optional[str] = pydantic.Field(default=None) - """ - A cursor to be used as the "from" query parameter for the next page of results. Omitted when there are no further results. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/list_branding_phone_providers_response_content.py b/src/auth0/management/types/list_branding_phone_providers_response_content.py deleted file mode 100644 index 899cb491..00000000 --- a/src/auth0/management/types/list_branding_phone_providers_response_content.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .phone_provider_schema_masked import PhoneProviderSchemaMasked - - -class ListBrandingPhoneProvidersResponseContent(UniversalBaseModel): - providers: typing.Optional[typing.List[PhoneProviderSchemaMasked]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/list_client_connections_response_content.py b/src/auth0/management/types/list_client_connections_response_content.py deleted file mode 100644 index 2d3c2f24..00000000 --- a/src/auth0/management/types/list_client_connections_response_content.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .connection_for_list import ConnectionForList - - -class ListClientConnectionsResponseContent(UniversalBaseModel): - connections: typing.List[ConnectionForList] - next: typing.Optional[str] = pydantic.Field(default=None) - """ - Encoded next token - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/list_client_grant_organizations_paginated_response_content.py b/src/auth0/management/types/list_client_grant_organizations_paginated_response_content.py deleted file mode 100644 index dc9e774c..00000000 --- a/src/auth0/management/types/list_client_grant_organizations_paginated_response_content.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .organization import Organization - - -class ListClientGrantOrganizationsPaginatedResponseContent(UniversalBaseModel): - next: typing.Optional[str] = pydantic.Field(default=None) - """ - Opaque identifier for use with the from query parameter for the next page of results.
This identifier is valid for 24 hours. - """ - - organizations: typing.Optional[typing.List[Organization]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/list_client_grant_paginated_response_content.py b/src/auth0/management/types/list_client_grant_paginated_response_content.py deleted file mode 100644 index 97f20889..00000000 --- a/src/auth0/management/types/list_client_grant_paginated_response_content.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .client_grant_response_content import ClientGrantResponseContent - - -class ListClientGrantPaginatedResponseContent(UniversalBaseModel): - next: typing.Optional[str] = pydantic.Field(default=None) - """ - Opaque identifier for use with the from query parameter for the next page of results.
This identifier is valid for 24 hours. - """ - - client_grants: typing.Optional[typing.List[ClientGrantResponseContent]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/list_client_profiles_paginated_response_content.py b/src/auth0/management/types/list_client_profiles_paginated_response_content.py deleted file mode 100644 index 4352075a..00000000 --- a/src/auth0/management/types/list_client_profiles_paginated_response_content.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .client_profile import ClientProfile - - -class ListClientProfilesPaginatedResponseContent(UniversalBaseModel): - """ - Checkpoint paginated list of client profiles. - """ - - next: typing.Optional[str] = pydantic.Field(default=None) - """ - A cursor to be used as the "from" query parameter for the next page of results. - """ - - client_profiles: typing.List[ClientProfile] - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/list_clients_offset_paginated_response_content.py b/src/auth0/management/types/list_clients_offset_paginated_response_content.py deleted file mode 100644 index 47e6ee6f..00000000 --- a/src/auth0/management/types/list_clients_offset_paginated_response_content.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .client import Client - - -class ListClientsOffsetPaginatedResponseContent(UniversalBaseModel): - start: typing.Optional[float] = None - limit: typing.Optional[float] = None - total: typing.Optional[float] = None - clients: typing.Optional[typing.List[Client]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/list_connection_profile_template_response_content.py b/src/auth0/management/types/list_connection_profile_template_response_content.py deleted file mode 100644 index 80b8f527..00000000 --- a/src/auth0/management/types/list_connection_profile_template_response_content.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .connection_profile_template_item import ConnectionProfileTemplateItem - - -class ListConnectionProfileTemplateResponseContent(UniversalBaseModel): - connection_profile_templates: typing.Optional[typing.List[ConnectionProfileTemplateItem]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/list_connection_profiles_paginated_response_content.py b/src/auth0/management/types/list_connection_profiles_paginated_response_content.py deleted file mode 100644 index 526d497b..00000000 --- a/src/auth0/management/types/list_connection_profiles_paginated_response_content.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .connection_profile import ConnectionProfile - - -class ListConnectionProfilesPaginatedResponseContent(UniversalBaseModel): - next: typing.Optional[str] = pydantic.Field(default=None) - """ - A cursor to be used as the "from" query parameter for the next page of results. - """ - - connection_profiles: typing.Optional[typing.List[ConnectionProfile]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/list_connections_checkpoint_paginated_response_content.py b/src/auth0/management/types/list_connections_checkpoint_paginated_response_content.py deleted file mode 100644 index 346e775e..00000000 --- a/src/auth0/management/types/list_connections_checkpoint_paginated_response_content.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .connection_for_list import ConnectionForList - - -class ListConnectionsCheckpointPaginatedResponseContent(UniversalBaseModel): - next: typing.Optional[str] = pydantic.Field(default=None) - """ - Opaque identifier for use with the from query parameter for the next page of results. - """ - - connections: typing.Optional[typing.List[ConnectionForList]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/list_custom_domains_response_content.py b/src/auth0/management/types/list_custom_domains_response_content.py deleted file mode 100644 index a8abb5db..00000000 --- a/src/auth0/management/types/list_custom_domains_response_content.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .custom_domain import CustomDomain - -ListCustomDomainsResponseContent = typing.List[CustomDomain] diff --git a/src/auth0/management/types/list_device_credentials_offset_paginated_response_content.py b/src/auth0/management/types/list_device_credentials_offset_paginated_response_content.py deleted file mode 100644 index 983a33ce..00000000 --- a/src/auth0/management/types/list_device_credentials_offset_paginated_response_content.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .device_credential import DeviceCredential - - -class ListDeviceCredentialsOffsetPaginatedResponseContent(UniversalBaseModel): - start: typing.Optional[float] = None - limit: typing.Optional[float] = None - total: typing.Optional[float] = None - device_credentials: typing.Optional[typing.List[DeviceCredential]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/list_directory_provisionings_response_content.py b/src/auth0/management/types/list_directory_provisionings_response_content.py deleted file mode 100644 index f665fcf2..00000000 --- a/src/auth0/management/types/list_directory_provisionings_response_content.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .directory_provisioning import DirectoryProvisioning - - -class ListDirectoryProvisioningsResponseContent(UniversalBaseModel): - directory_provisionings: typing.List[DirectoryProvisioning] = pydantic.Field() - """ - List of directory provisioning configurations - """ - - next: typing.Optional[str] = pydantic.Field(default=None) - """ - The cursor to be used as the "from" query parameter for the next page of results. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/list_encryption_key_offset_paginated_response_content.py b/src/auth0/management/types/list_encryption_key_offset_paginated_response_content.py deleted file mode 100644 index b0fcd22d..00000000 --- a/src/auth0/management/types/list_encryption_key_offset_paginated_response_content.py +++ /dev/null @@ -1,38 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .encryption_key import EncryptionKey - - -class ListEncryptionKeyOffsetPaginatedResponseContent(UniversalBaseModel): - start: typing.Optional[int] = pydantic.Field(default=None) - """ - Page index of the results to return. First page is 0. - """ - - limit: typing.Optional[int] = pydantic.Field(default=None) - """ - Number of results per page. - """ - - total: typing.Optional[int] = pydantic.Field(default=None) - """ - Total amount of encryption keys. - """ - - keys: typing.Optional[typing.List[EncryptionKey]] = pydantic.Field(default=None) - """ - Encryption keys. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/list_event_stream_deliveries_response_content.py b/src/auth0/management/types/list_event_stream_deliveries_response_content.py deleted file mode 100644 index 26e05241..00000000 --- a/src/auth0/management/types/list_event_stream_deliveries_response_content.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .event_stream_delivery import EventStreamDelivery - - -class ListEventStreamDeliveriesResponseContent(UniversalBaseModel): - deliveries: typing.List[EventStreamDelivery] = pydantic.Field() - """ - List of event stream deliveries - """ - - next: typing.Optional[str] = pydantic.Field(default=None) - """ - The cursor to be used as the "from" query parameter for the next page of results. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/list_event_streams_response_content.py b/src/auth0/management/types/list_event_streams_response_content.py deleted file mode 100644 index 53be159c..00000000 --- a/src/auth0/management/types/list_event_streams_response_content.py +++ /dev/null @@ -1,30 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .event_stream_response_content import EventStreamResponseContent - - -class ListEventStreamsResponseContent(UniversalBaseModel): - event_streams: typing_extensions.Annotated[ - typing.Optional[typing.List[EventStreamResponseContent]], - FieldMetadata(alias="eventStreams"), - pydantic.Field(alias="eventStreams"), - ] = None - next: typing.Optional[str] = pydantic.Field(default=None) - """ - Opaque identifier for use with the from query parameter for the next page of results. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/list_experiments_response_content.py b/src/auth0/management/types/list_experiments_response_content.py deleted file mode 100644 index e4d965b9..00000000 --- a/src/auth0/management/types/list_experiments_response_content.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .experiment_list_item import ExperimentListItem - - -class ListExperimentsResponseContent(UniversalBaseModel): - experiments: typing.List[ExperimentListItem] - next: typing.Optional[str] = pydantic.Field(default=None) - """ - Checkpoint token for the next page. Omitted when there are no further results. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/list_feature_flags_response_content.py b/src/auth0/management/types/list_feature_flags_response_content.py deleted file mode 100644 index 19ea3893..00000000 --- a/src/auth0/management/types/list_feature_flags_response_content.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .feature_flag import FeatureFlag - - -class ListFeatureFlagsResponseContent(UniversalBaseModel): - feature_flags: typing.List[FeatureFlag] - next: typing.Optional[str] = pydantic.Field(default=None) - """ - Checkpoint token for the next page. Omitted when there are no further results. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/list_flow_executions_paginated_response_content.py b/src/auth0/management/types/list_flow_executions_paginated_response_content.py deleted file mode 100644 index e597ada4..00000000 --- a/src/auth0/management/types/list_flow_executions_paginated_response_content.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_execution_summary import FlowExecutionSummary - - -class ListFlowExecutionsPaginatedResponseContent(UniversalBaseModel): - next: typing.Optional[str] = pydantic.Field(default=None) - """ - Opaque identifier for use with the from query parameter for the next page of results.
This identifier is valid for 24 hours. - """ - - executions: typing.Optional[typing.List[FlowExecutionSummary]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/list_flows_offset_paginated_response_content.py b/src/auth0/management/types/list_flows_offset_paginated_response_content.py deleted file mode 100644 index 7a3bad27..00000000 --- a/src/auth0/management/types/list_flows_offset_paginated_response_content.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flow_summary import FlowSummary - - -class ListFlowsOffsetPaginatedResponseContent(UniversalBaseModel): - start: typing.Optional[float] = None - limit: typing.Optional[float] = None - total: typing.Optional[float] = None - flows: typing.Optional[typing.List[FlowSummary]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/list_flows_request_parameters_hydrate_enum.py b/src/auth0/management/types/list_flows_request_parameters_hydrate_enum.py deleted file mode 100644 index f87b1f95..00000000 --- a/src/auth0/management/types/list_flows_request_parameters_hydrate_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ListFlowsRequestParametersHydrateEnum = typing.Union[typing.Literal["form_count"], typing.Any] diff --git a/src/auth0/management/types/list_flows_vault_connections_offset_paginated_response_content.py b/src/auth0/management/types/list_flows_vault_connections_offset_paginated_response_content.py deleted file mode 100644 index 64321299..00000000 --- a/src/auth0/management/types/list_flows_vault_connections_offset_paginated_response_content.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .flows_vault_connection_summary import FlowsVaultConnectionSummary - - -class ListFlowsVaultConnectionsOffsetPaginatedResponseContent(UniversalBaseModel): - start: typing.Optional[float] = None - limit: typing.Optional[float] = None - total: typing.Optional[float] = None - connections: typing.Optional[typing.List[FlowsVaultConnectionSummary]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/list_forms_offset_paginated_response_content.py b/src/auth0/management/types/list_forms_offset_paginated_response_content.py deleted file mode 100644 index 81ac12dd..00000000 --- a/src/auth0/management/types/list_forms_offset_paginated_response_content.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .form_summary import FormSummary - - -class ListFormsOffsetPaginatedResponseContent(UniversalBaseModel): - start: typing.Optional[float] = None - limit: typing.Optional[float] = None - total: typing.Optional[float] = None - forms: typing.Optional[typing.List[FormSummary]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/list_group_roles_response_content.py b/src/auth0/management/types/list_group_roles_response_content.py deleted file mode 100644 index ebdc5a38..00000000 --- a/src/auth0/management/types/list_group_roles_response_content.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .role import Role - - -class ListGroupRolesResponseContent(UniversalBaseModel): - roles: typing.List[Role] - next: typing.Optional[str] = pydantic.Field(default=None) - """ - A cursor to be used as the "from" query parameter for the next page of results. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/list_groups_paginated_response_content.py b/src/auth0/management/types/list_groups_paginated_response_content.py deleted file mode 100644 index b6f54d09..00000000 --- a/src/auth0/management/types/list_groups_paginated_response_content.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .group import Group - - -class ListGroupsPaginatedResponseContent(UniversalBaseModel): - groups: typing.List[Group] - next: typing.Optional[str] = pydantic.Field(default=None) - """ - A cursor to be used as the "from" query parameter for the next page of results. - """ - - start: typing.Optional[float] = None - limit: typing.Optional[float] = None - total: typing.Optional[float] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/list_guardian_policies_response_content.py b/src/auth0/management/types/list_guardian_policies_response_content.py deleted file mode 100644 index ad397c3b..00000000 --- a/src/auth0/management/types/list_guardian_policies_response_content.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .mfa_policy_enum import MfaPolicyEnum - -ListGuardianPoliciesResponseContent = typing.List[MfaPolicyEnum] diff --git a/src/auth0/management/types/list_hooks_offset_paginated_response_content.py b/src/auth0/management/types/list_hooks_offset_paginated_response_content.py deleted file mode 100644 index e49f21e4..00000000 --- a/src/auth0/management/types/list_hooks_offset_paginated_response_content.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .hook import Hook - - -class ListHooksOffsetPaginatedResponseContent(UniversalBaseModel): - start: typing.Optional[float] = None - limit: typing.Optional[float] = None - total: typing.Optional[float] = None - hooks: typing.Optional[typing.List[Hook]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/list_log_offset_paginated_response_content.py b/src/auth0/management/types/list_log_offset_paginated_response_content.py deleted file mode 100644 index ffdf0f76..00000000 --- a/src/auth0/management/types/list_log_offset_paginated_response_content.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .log import Log - - -class ListLogOffsetPaginatedResponseContent(UniversalBaseModel): - start: typing.Optional[float] = None - limit: typing.Optional[float] = None - length: typing.Optional[float] = None - total: typing.Optional[float] = None - logs: typing.Optional[typing.List[Log]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/list_network_acls_offset_paginated_response_content.py b/src/auth0/management/types/list_network_acls_offset_paginated_response_content.py deleted file mode 100644 index b7cc3a7b..00000000 --- a/src/auth0/management/types/list_network_acls_offset_paginated_response_content.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .network_acls_response_content import NetworkAclsResponseContent - - -class ListNetworkAclsOffsetPaginatedResponseContent(UniversalBaseModel): - network_acls: typing.Optional[typing.List[NetworkAclsResponseContent]] = None - start: typing.Optional[float] = None - limit: typing.Optional[float] = None - total: typing.Optional[float] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/list_organization_all_connections_offset_paginated_response_content.py b/src/auth0/management/types/list_organization_all_connections_offset_paginated_response_content.py deleted file mode 100644 index ac847999..00000000 --- a/src/auth0/management/types/list_organization_all_connections_offset_paginated_response_content.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .organization_all_connection_post import OrganizationAllConnectionPost - - -class ListOrganizationAllConnectionsOffsetPaginatedResponseContent(UniversalBaseModel): - start: typing.Optional[float] = None - limit: typing.Optional[float] = None - total: typing.Optional[float] = None - connections: typing.Optional[typing.List[OrganizationAllConnectionPost]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/list_organization_client_grants_offset_paginated_response_content.py b/src/auth0/management/types/list_organization_client_grants_offset_paginated_response_content.py deleted file mode 100644 index beea0ee6..00000000 --- a/src/auth0/management/types/list_organization_client_grants_offset_paginated_response_content.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .organization_client_grant import OrganizationClientGrant - - -class ListOrganizationClientGrantsOffsetPaginatedResponseContent(UniversalBaseModel): - start: typing.Optional[float] = None - limit: typing.Optional[float] = None - total: typing.Optional[float] = None - client_grants: typing.Optional[typing.List[OrganizationClientGrant]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/list_organization_clients_response_content.py b/src/auth0/management/types/list_organization_clients_response_content.py deleted file mode 100644 index ae8c884d..00000000 --- a/src/auth0/management/types/list_organization_clients_response_content.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .organization_client import OrganizationClient - - -class ListOrganizationClientsResponseContent(UniversalBaseModel): - clients: typing.List[OrganizationClient] = pydantic.Field() - """ - The list of clients associated with the organization. - """ - - next: typing.Optional[str] = pydantic.Field(default=None) - """ - An opaque token that, when present, can be passed as the `from` query parameter to retrieve the next page of results. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/list_organization_connections_offset_paginated_response_content.py b/src/auth0/management/types/list_organization_connections_offset_paginated_response_content.py deleted file mode 100644 index 27890828..00000000 --- a/src/auth0/management/types/list_organization_connections_offset_paginated_response_content.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .organization_connection import OrganizationConnection - - -class ListOrganizationConnectionsOffsetPaginatedResponseContent(UniversalBaseModel): - start: typing.Optional[float] = None - limit: typing.Optional[float] = None - total: typing.Optional[float] = None - enabled_connections: typing.Optional[typing.List[OrganizationConnection]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/list_organization_discovery_domains_response_content.py b/src/auth0/management/types/list_organization_discovery_domains_response_content.py deleted file mode 100644 index 9a84aac5..00000000 --- a/src/auth0/management/types/list_organization_discovery_domains_response_content.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .organization_discovery_domain import OrganizationDiscoveryDomain - - -class ListOrganizationDiscoveryDomainsResponseContent(UniversalBaseModel): - next: typing.Optional[str] = None - domains: typing.List[OrganizationDiscoveryDomain] - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/list_organization_group_roles_response_content.py b/src/auth0/management/types/list_organization_group_roles_response_content.py deleted file mode 100644 index 5b19a848..00000000 --- a/src/auth0/management/types/list_organization_group_roles_response_content.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .role import Role - - -class ListOrganizationGroupRolesResponseContent(UniversalBaseModel): - roles: typing.List[Role] - next: typing.Optional[str] = pydantic.Field(default=None) - """ - A cursor to be used as the "from" query parameter for the next page of results. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/list_organization_groups_response_content.py b/src/auth0/management/types/list_organization_groups_response_content.py deleted file mode 100644 index d04d7627..00000000 --- a/src/auth0/management/types/list_organization_groups_response_content.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .group import Group - - -class ListOrganizationGroupsResponseContent(UniversalBaseModel): - groups: typing.List[Group] - next: typing.Optional[str] = pydantic.Field(default=None) - """ - A cursor to be used as the "from" query parameter for the next page of results. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/list_organization_invitations_offset_paginated_response_content.py b/src/auth0/management/types/list_organization_invitations_offset_paginated_response_content.py deleted file mode 100644 index ed6c4151..00000000 --- a/src/auth0/management/types/list_organization_invitations_offset_paginated_response_content.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .organization_invitation import OrganizationInvitation - - -class ListOrganizationInvitationsOffsetPaginatedResponseContent(UniversalBaseModel): - start: typing.Optional[float] = None - limit: typing.Optional[float] = None - invitations: typing.Optional[typing.List[OrganizationInvitation]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/list_organization_member_effective_roles_response_content.py b/src/auth0/management/types/list_organization_member_effective_roles_response_content.py deleted file mode 100644 index 0ee07d60..00000000 --- a/src/auth0/management/types/list_organization_member_effective_roles_response_content.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .organization_member_effective_role import OrganizationMemberEffectiveRole - - -class ListOrganizationMemberEffectiveRolesResponseContent(UniversalBaseModel): - roles: typing.List[OrganizationMemberEffectiveRole] - next: typing.Optional[str] = pydantic.Field(default=None) - """ - Cursor for the next page of results - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/list_organization_member_role_source_groups_response_content.py b/src/auth0/management/types/list_organization_member_role_source_groups_response_content.py deleted file mode 100644 index 76d2c3b8..00000000 --- a/src/auth0/management/types/list_organization_member_role_source_groups_response_content.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .group import Group - - -class ListOrganizationMemberRoleSourceGroupsResponseContent(UniversalBaseModel): - groups: typing.List[Group] - next: typing.Optional[str] = pydantic.Field(default=None) - """ - A cursor to be used as the "from" query parameter for the next page of results. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/list_organization_member_roles_offset_paginated_response_content.py b/src/auth0/management/types/list_organization_member_roles_offset_paginated_response_content.py deleted file mode 100644 index e26d87ee..00000000 --- a/src/auth0/management/types/list_organization_member_roles_offset_paginated_response_content.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .role import Role - - -class ListOrganizationMemberRolesOffsetPaginatedResponseContent(UniversalBaseModel): - start: typing.Optional[float] = None - limit: typing.Optional[float] = None - total: typing.Optional[float] = None - roles: typing.Optional[typing.List[Role]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/list_organization_members_paginated_response_content.py b/src/auth0/management/types/list_organization_members_paginated_response_content.py deleted file mode 100644 index d85fb5db..00000000 --- a/src/auth0/management/types/list_organization_members_paginated_response_content.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .organization_member import OrganizationMember - - -class ListOrganizationMembersPaginatedResponseContent(UniversalBaseModel): - next: typing.Optional[str] = None - members: typing.Optional[typing.List[OrganizationMember]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/list_organization_role_groups_response_content.py b/src/auth0/management/types/list_organization_role_groups_response_content.py deleted file mode 100644 index 06bde444..00000000 --- a/src/auth0/management/types/list_organization_role_groups_response_content.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .role_group import RoleGroup - - -class ListOrganizationRoleGroupsResponseContent(UniversalBaseModel): - """ - Checkpoint paginated list of groups assigned to a role within an organization. - """ - - groups: typing.List[RoleGroup] - next: typing.Optional[str] = pydantic.Field(default=None) - """ - A cursor to be used as the "from" query parameter for the next page of results. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/list_organization_role_members_response_content.py b/src/auth0/management/types/list_organization_role_members_response_content.py deleted file mode 100644 index f0bc37ca..00000000 --- a/src/auth0/management/types/list_organization_role_members_response_content.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .role_member import RoleMember - - -class ListOrganizationRoleMembersResponseContent(UniversalBaseModel): - members: typing.List[RoleMember] = pydantic.Field() - """ - List of members assigned to the role within the organization. - """ - - next: typing.Optional[str] = pydantic.Field(default=None) - """ - Cursor for the next page of results. Absent when there are no more results. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/list_organizations_paginated_response_content.py b/src/auth0/management/types/list_organizations_paginated_response_content.py deleted file mode 100644 index 5463e3c9..00000000 --- a/src/auth0/management/types/list_organizations_paginated_response_content.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .organization import Organization - - -class ListOrganizationsPaginatedResponseContent(UniversalBaseModel): - next: typing.Optional[str] = None - organizations: typing.Optional[typing.List[Organization]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/list_phone_templates_response_content.py b/src/auth0/management/types/list_phone_templates_response_content.py deleted file mode 100644 index deda0b8d..00000000 --- a/src/auth0/management/types/list_phone_templates_response_content.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .phone_template import PhoneTemplate - - -class ListPhoneTemplatesResponseContent(UniversalBaseModel): - templates: typing.Optional[typing.List[PhoneTemplate]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/list_portals_response_content.py b/src/auth0/management/types/list_portals_response_content.py deleted file mode 100644 index 221c487b..00000000 --- a/src/auth0/management/types/list_portals_response_content.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .portal_summary import PortalSummary - - -class ListPortalsResponseContent(UniversalBaseModel): - portals: typing.List[PortalSummary] - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/list_rate_limit_policies_paginated_response_content.py b/src/auth0/management/types/list_rate_limit_policies_paginated_response_content.py deleted file mode 100644 index 9cac792d..00000000 --- a/src/auth0/management/types/list_rate_limit_policies_paginated_response_content.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .rate_limit_policy import RateLimitPolicy - - -class ListRateLimitPoliciesPaginatedResponseContent(UniversalBaseModel): - rate_limit_policies: typing.Optional[typing.List[RateLimitPolicy]] = None - next: typing.Optional[str] = pydantic.Field(default=None) - """ - A cursor to be used as the "from" query parameter for the next page of results. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/list_refresh_tokens_paginated_response_content.py b/src/auth0/management/types/list_refresh_tokens_paginated_response_content.py deleted file mode 100644 index f393f0c1..00000000 --- a/src/auth0/management/types/list_refresh_tokens_paginated_response_content.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .refresh_token_response_content import RefreshTokenResponseContent - - -class ListRefreshTokensPaginatedResponseContent(UniversalBaseModel): - tokens: typing.Optional[typing.List[RefreshTokenResponseContent]] = None - next: typing.Optional[str] = pydantic.Field(default=None) - """ - A cursor to be used as the "from" query parameter for the next page of results. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/list_resource_server_offset_paginated_response_content.py b/src/auth0/management/types/list_resource_server_offset_paginated_response_content.py deleted file mode 100644 index 4a3a9394..00000000 --- a/src/auth0/management/types/list_resource_server_offset_paginated_response_content.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .resource_server import ResourceServer - - -class ListResourceServerOffsetPaginatedResponseContent(UniversalBaseModel): - start: typing.Optional[float] = None - limit: typing.Optional[float] = None - total: typing.Optional[float] = None - resource_servers: typing.Optional[typing.List[ResourceServer]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/list_role_groups_response_content.py b/src/auth0/management/types/list_role_groups_response_content.py deleted file mode 100644 index c62969a5..00000000 --- a/src/auth0/management/types/list_role_groups_response_content.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .group import Group - - -class ListRoleGroupsResponseContent(UniversalBaseModel): - groups: typing.List[Group] - next: typing.Optional[str] = pydantic.Field(default=None) - """ - A cursor to be used as the "from" query parameter for the next page of results. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/list_role_permissions_offset_paginated_response_content.py b/src/auth0/management/types/list_role_permissions_offset_paginated_response_content.py deleted file mode 100644 index 03b0f67e..00000000 --- a/src/auth0/management/types/list_role_permissions_offset_paginated_response_content.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .permissions_response_payload import PermissionsResponsePayload - - -class ListRolePermissionsOffsetPaginatedResponseContent(UniversalBaseModel): - start: typing.Optional[float] = None - limit: typing.Optional[float] = None - total: typing.Optional[float] = None - permissions: typing.Optional[typing.List[PermissionsResponsePayload]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/list_role_users_paginated_response_content.py b/src/auth0/management/types/list_role_users_paginated_response_content.py deleted file mode 100644 index c03df0c2..00000000 --- a/src/auth0/management/types/list_role_users_paginated_response_content.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .role_user import RoleUser - - -class ListRoleUsersPaginatedResponseContent(UniversalBaseModel): - next: typing.Optional[str] = None - users: typing.Optional[typing.List[RoleUser]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/list_roles_offset_paginated_response_content.py b/src/auth0/management/types/list_roles_offset_paginated_response_content.py deleted file mode 100644 index 7e8e8ee7..00000000 --- a/src/auth0/management/types/list_roles_offset_paginated_response_content.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .role import Role - - -class ListRolesOffsetPaginatedResponseContent(UniversalBaseModel): - start: float - limit: float - total: float - roles: typing.Optional[typing.List[Role]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/list_rules_offset_paginated_response_content.py b/src/auth0/management/types/list_rules_offset_paginated_response_content.py deleted file mode 100644 index bef24b37..00000000 --- a/src/auth0/management/types/list_rules_offset_paginated_response_content.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .rule import Rule - - -class ListRulesOffsetPaginatedResponseContent(UniversalBaseModel): - start: typing.Optional[float] = None - limit: typing.Optional[float] = None - total: typing.Optional[float] = None - rules: typing.Optional[typing.List[Rule]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/list_scim_configurations_response_content.py b/src/auth0/management/types/list_scim_configurations_response_content.py deleted file mode 100644 index df644b1f..00000000 --- a/src/auth0/management/types/list_scim_configurations_response_content.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .scim_configuration import ScimConfiguration - - -class ListScimConfigurationsResponseContent(UniversalBaseModel): - scim_configurations: typing.List[ScimConfiguration] = pydantic.Field() - """ - List of SCIM configurations - """ - - next: typing.Optional[str] = pydantic.Field(default=None) - """ - The cursor to be used as the "from" query parameter for the next page of results. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/list_segments_response_content.py b/src/auth0/management/types/list_segments_response_content.py deleted file mode 100644 index 0147aaa0..00000000 --- a/src/auth0/management/types/list_segments_response_content.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .segment import Segment - - -class ListSegmentsResponseContent(UniversalBaseModel): - segments: typing.List[Segment] - next: typing.Optional[str] = pydantic.Field(default=None) - """ - Checkpoint token for the next page. Omitted when there are no further results. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/list_self_service_profile_custom_text_response_content.py b/src/auth0/management/types/list_self_service_profile_custom_text_response_content.py deleted file mode 100644 index edbcd797..00000000 --- a/src/auth0/management/types/list_self_service_profile_custom_text_response_content.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ListSelfServiceProfileCustomTextResponseContent = typing.Dict[str, str] -""" -The list of custom text keys and values. -""" diff --git a/src/auth0/management/types/list_self_service_profiles_paginated_response_content.py b/src/auth0/management/types/list_self_service_profiles_paginated_response_content.py deleted file mode 100644 index a45c6737..00000000 --- a/src/auth0/management/types/list_self_service_profiles_paginated_response_content.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .self_service_profile import SelfServiceProfile - - -class ListSelfServiceProfilesPaginatedResponseContent(UniversalBaseModel): - start: typing.Optional[float] = None - limit: typing.Optional[float] = None - total: typing.Optional[float] = None - self_service_profiles: typing.Optional[typing.List[SelfServiceProfile]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/list_synchronized_groups_response_content.py b/src/auth0/management/types/list_synchronized_groups_response_content.py deleted file mode 100644 index 5cf48495..00000000 --- a/src/auth0/management/types/list_synchronized_groups_response_content.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .synchronized_group_payload import SynchronizedGroupPayload - - -class ListSynchronizedGroupsResponseContent(UniversalBaseModel): - groups: typing.List[SynchronizedGroupPayload] = pydantic.Field() - """ - Array of Google Workspace group ids configured for synchronization. - """ - - next: typing.Optional[str] = pydantic.Field(default=None) - """ - The cursor to be used as the "from" query parameter for the next page of results. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/list_token_exchange_profile_response_content.py b/src/auth0/management/types/list_token_exchange_profile_response_content.py deleted file mode 100644 index 3ce5e665..00000000 --- a/src/auth0/management/types/list_token_exchange_profile_response_content.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .token_exchange_profile_response_content import TokenExchangeProfileResponseContent - - -class ListTokenExchangeProfileResponseContent(UniversalBaseModel): - next: typing.Optional[str] = pydantic.Field(default=None) - """ - Opaque identifier for use with the from query parameter for the next page of results.
This identifier is valid for 24 hours. - """ - - token_exchange_profiles: typing.Optional[typing.List[TokenExchangeProfileResponseContent]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/list_user_attribute_profile_template_response_content.py b/src/auth0/management/types/list_user_attribute_profile_template_response_content.py deleted file mode 100644 index e2cd3cc1..00000000 --- a/src/auth0/management/types/list_user_attribute_profile_template_response_content.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .user_attribute_profile_template_item import UserAttributeProfileTemplateItem - - -class ListUserAttributeProfileTemplateResponseContent(UniversalBaseModel): - user_attribute_profile_templates: typing.Optional[typing.List[UserAttributeProfileTemplateItem]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/list_user_attribute_profiles_paginated_response_content.py b/src/auth0/management/types/list_user_attribute_profiles_paginated_response_content.py deleted file mode 100644 index acdb4c7e..00000000 --- a/src/auth0/management/types/list_user_attribute_profiles_paginated_response_content.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .user_attribute_profile import UserAttributeProfile - - -class ListUserAttributeProfilesPaginatedResponseContent(UniversalBaseModel): - next: typing.Optional[str] = pydantic.Field(default=None) - """ - A cursor to be used as the "from" query parameter for the next page of results. - """ - - user_attribute_profiles: typing.Optional[typing.List[UserAttributeProfile]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/list_user_authentication_methods_offset_paginated_response_content.py b/src/auth0/management/types/list_user_authentication_methods_offset_paginated_response_content.py deleted file mode 100644 index b19441d3..00000000 --- a/src/auth0/management/types/list_user_authentication_methods_offset_paginated_response_content.py +++ /dev/null @@ -1,38 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .user_authentication_method import UserAuthenticationMethod - - -class ListUserAuthenticationMethodsOffsetPaginatedResponseContent(UniversalBaseModel): - start: typing.Optional[float] = pydantic.Field(default=None) - """ - Index of the starting record. Derived from the page and per_page parameters. - """ - - limit: typing.Optional[float] = pydantic.Field(default=None) - """ - Maximum amount of records to return. - """ - - total: typing.Optional[float] = pydantic.Field(default=None) - """ - Total number of pageable records. - """ - - authenticators: typing.Optional[typing.List[UserAuthenticationMethod]] = pydantic.Field(default=None) - """ - The paginated authentication methods. Returned in this structure when include_totals is true. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/list_user_blocks_by_identifier_response_content.py b/src/auth0/management/types/list_user_blocks_by_identifier_response_content.py deleted file mode 100644 index 17228e24..00000000 --- a/src/auth0/management/types/list_user_blocks_by_identifier_response_content.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .user_block_identifier import UserBlockIdentifier - - -class ListUserBlocksByIdentifierResponseContent(UniversalBaseModel): - blocked_for: typing.Optional[typing.List[UserBlockIdentifier]] = pydantic.Field(default=None) - """ - Array of identifier + IP address pairs. IP address is optional, and may be omitted in certain circumstances (such as Account Lockout mode). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/list_user_blocks_response_content.py b/src/auth0/management/types/list_user_blocks_response_content.py deleted file mode 100644 index ccd715ab..00000000 --- a/src/auth0/management/types/list_user_blocks_response_content.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .user_block_identifier import UserBlockIdentifier - - -class ListUserBlocksResponseContent(UniversalBaseModel): - blocked_for: typing.Optional[typing.List[UserBlockIdentifier]] = pydantic.Field(default=None) - """ - Array of identifier + IP address pairs. IP address is optional, and may be omitted in certain circumstances (such as Account Lockout mode). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/list_user_connected_accounts_response_content.py b/src/auth0/management/types/list_user_connected_accounts_response_content.py deleted file mode 100644 index 17a066bc..00000000 --- a/src/auth0/management/types/list_user_connected_accounts_response_content.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .connected_account import ConnectedAccount - - -class ListUserConnectedAccountsResponseContent(UniversalBaseModel): - connected_accounts: typing.List[ConnectedAccount] - next: typing.Optional[str] = pydantic.Field(default=None) - """ - The token to retrieve the next page of connected accounts (if there is one) - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/list_user_consent_signing_keys_response_content.py b/src/auth0/management/types/list_user_consent_signing_keys_response_content.py deleted file mode 100644 index c728dd67..00000000 --- a/src/auth0/management/types/list_user_consent_signing_keys_response_content.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .consent_signing_key import ConsentSigningKey - - -class ListUserConsentSigningKeysResponseContent(UniversalBaseModel): - keys: typing.List[ConsentSigningKey] = pydantic.Field() - """ - The consent signing keys registered for the user. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/list_user_effective_permission_role_sources_response_content.py b/src/auth0/management/types/list_user_effective_permission_role_sources_response_content.py deleted file mode 100644 index 008c34ad..00000000 --- a/src/auth0/management/types/list_user_effective_permission_role_sources_response_content.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .user_effective_permission_role_source_response_content import UserEffectivePermissionRoleSourceResponseContent - - -class ListUserEffectivePermissionRoleSourcesResponseContent(UniversalBaseModel): - roles: typing.List[UserEffectivePermissionRoleSourceResponseContent] = pydantic.Field() - """ - Roles with the specified permission assigned to the user, both directly and via groups. - """ - - next: typing.Optional[str] = pydantic.Field(default=None) - """ - A cursor to be used as the "from" query parameter for the next page of results. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/list_user_effective_permissions_response_content.py b/src/auth0/management/types/list_user_effective_permissions_response_content.py deleted file mode 100644 index 1b8a01c1..00000000 --- a/src/auth0/management/types/list_user_effective_permissions_response_content.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .user_effective_permission_response_content import UserEffectivePermissionResponseContent - - -class ListUserEffectivePermissionsResponseContent(UniversalBaseModel): - permissions: typing.List[UserEffectivePermissionResponseContent] = pydantic.Field() - """ - List of permissions assigned to the user. - """ - - next: typing.Optional[str] = pydantic.Field(default=None) - """ - A cursor to be used as the "from" query parameter for the next page of results. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/list_user_effective_roles_response_content.py b/src/auth0/management/types/list_user_effective_roles_response_content.py deleted file mode 100644 index 918cae58..00000000 --- a/src/auth0/management/types/list_user_effective_roles_response_content.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .user_effective_role import UserEffectiveRole - - -class ListUserEffectiveRolesResponseContent(UniversalBaseModel): - roles: typing.List[UserEffectiveRole] - next: typing.Optional[str] = pydantic.Field(default=None) - """ - Cursor for the next page of results - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/list_user_grants_offset_paginated_response_content.py b/src/auth0/management/types/list_user_grants_offset_paginated_response_content.py deleted file mode 100644 index a8515707..00000000 --- a/src/auth0/management/types/list_user_grants_offset_paginated_response_content.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .user_grant import UserGrant - - -class ListUserGrantsOffsetPaginatedResponseContent(UniversalBaseModel): - start: typing.Optional[float] = None - limit: typing.Optional[float] = None - total: typing.Optional[float] = None - grants: typing.Optional[typing.List[UserGrant]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/list_user_organizations_offset_paginated_response_content.py b/src/auth0/management/types/list_user_organizations_offset_paginated_response_content.py deleted file mode 100644 index 84da6cc1..00000000 --- a/src/auth0/management/types/list_user_organizations_offset_paginated_response_content.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .organization import Organization - - -class ListUserOrganizationsOffsetPaginatedResponseContent(UniversalBaseModel): - start: typing.Optional[float] = None - limit: typing.Optional[float] = None - total: typing.Optional[float] = None - organizations: typing.Optional[typing.List[Organization]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/list_user_permissions_offset_paginated_response_content.py b/src/auth0/management/types/list_user_permissions_offset_paginated_response_content.py deleted file mode 100644 index e6f12f7d..00000000 --- a/src/auth0/management/types/list_user_permissions_offset_paginated_response_content.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .user_permission_schema import UserPermissionSchema - - -class ListUserPermissionsOffsetPaginatedResponseContent(UniversalBaseModel): - start: typing.Optional[float] = None - limit: typing.Optional[float] = None - total: typing.Optional[float] = None - permissions: typing.Optional[typing.List[UserPermissionSchema]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/list_user_role_source_groups_response_content.py b/src/auth0/management/types/list_user_role_source_groups_response_content.py deleted file mode 100644 index 81798967..00000000 --- a/src/auth0/management/types/list_user_role_source_groups_response_content.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .group import Group - - -class ListUserRoleSourceGroupsResponseContent(UniversalBaseModel): - groups: typing.List[Group] - next: typing.Optional[str] = pydantic.Field(default=None) - """ - A cursor to be used as the "from" query parameter for the next page of results. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/list_user_roles_offset_paginated_response_content.py b/src/auth0/management/types/list_user_roles_offset_paginated_response_content.py deleted file mode 100644 index 29755415..00000000 --- a/src/auth0/management/types/list_user_roles_offset_paginated_response_content.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .role import Role - - -class ListUserRolesOffsetPaginatedResponseContent(UniversalBaseModel): - start: typing.Optional[float] = None - limit: typing.Optional[float] = None - total: typing.Optional[float] = None - roles: typing.Optional[typing.List[Role]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/list_user_sessions_paginated_response_content.py b/src/auth0/management/types/list_user_sessions_paginated_response_content.py deleted file mode 100644 index cc3ee1f4..00000000 --- a/src/auth0/management/types/list_user_sessions_paginated_response_content.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .session_response_content import SessionResponseContent - - -class ListUserSessionsPaginatedResponseContent(UniversalBaseModel): - sessions: typing.Optional[typing.List[SessionResponseContent]] = None - next: typing.Optional[str] = pydantic.Field(default=None) - """ - A cursor to be used as the "from" query parameter for the next page of results. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/list_users_offset_paginated_response_content.py b/src/auth0/management/types/list_users_offset_paginated_response_content.py deleted file mode 100644 index 9b0dccdc..00000000 --- a/src/auth0/management/types/list_users_offset_paginated_response_content.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .user_response_schema import UserResponseSchema - - -class ListUsersOffsetPaginatedResponseContent(UniversalBaseModel): - start: typing.Optional[float] = None - limit: typing.Optional[float] = None - length: typing.Optional[float] = None - total: typing.Optional[float] = None - users: typing.Optional[typing.List[UserResponseSchema]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/list_variations_response_content.py b/src/auth0/management/types/list_variations_response_content.py deleted file mode 100644 index a4d76655..00000000 --- a/src/auth0/management/types/list_variations_response_content.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .variation import Variation - - -class ListVariationsResponseContent(UniversalBaseModel): - variations: typing.List[Variation] - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/list_verifiable_credential_templates_paginated_response_content.py b/src/auth0/management/types/list_verifiable_credential_templates_paginated_response_content.py deleted file mode 100644 index 4ac23654..00000000 --- a/src/auth0/management/types/list_verifiable_credential_templates_paginated_response_content.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .verifiable_credential_template_response import VerifiableCredentialTemplateResponse - - -class ListVerifiableCredentialTemplatesPaginatedResponseContent(UniversalBaseModel): - next: typing.Optional[str] = pydantic.Field(default=None) - """ - Opaque identifier for use with the from query parameter for the next page of results.
This identifier is valid for 24 hours. - """ - - templates: typing.Optional[typing.List[VerifiableCredentialTemplateResponse]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/log.py b/src/auth0/management/types/log.py deleted file mode 100644 index cf2eeb3c..00000000 --- a/src/auth0/management/types/log.py +++ /dev/null @@ -1,120 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .log_date import LogDate -from .log_details import LogDetails -from .log_location_info import LogLocationInfo -from .log_security_context import LogSecurityContext - - -class Log(UniversalBaseModel): - date: typing.Optional[LogDate] = None - type: typing.Optional[str] = pydantic.Field(default=None) - """ - Type of event. - """ - - description: typing.Optional[str] = pydantic.Field(default=None) - """ - Description of this event. - """ - - connection: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of the connection the event relates to. - """ - - connection_id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of the connection the event relates to. - """ - - client_id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of the client (application). - """ - - client_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of the client (application). - """ - - ip: typing.Optional[str] = pydantic.Field(default=None) - """ - IP address of the log event source. - """ - - hostname: typing.Optional[str] = pydantic.Field(default=None) - """ - Hostname the event applies to. - """ - - user_id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of the user involved in the event. - """ - - user_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of the user involved in the event. - """ - - audience: typing.Optional[str] = pydantic.Field(default=None) - """ - API audience the event applies to. - """ - - scope: typing.Optional[str] = pydantic.Field(default=None) - """ - Scope permissions applied to the event. - """ - - strategy: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of the strategy involved in the event. - """ - - strategy_type: typing.Optional[str] = pydantic.Field(default=None) - """ - Type of strategy involved in the event. - """ - - log_id: typing.Optional[str] = pydantic.Field(default=None) - """ - Unique ID of the event. - """ - - is_mobile: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="isMobile"), - pydantic.Field( - alias="isMobile", - description="Whether the client was a mobile device (true) or desktop/laptop/server (false).", - ), - ] = None - """ - Whether the client was a mobile device (true) or desktop/laptop/server (false). - """ - - details: typing.Optional[LogDetails] = None - user_agent: typing.Optional[str] = pydantic.Field(default=None) - """ - User agent string from the client device that caused the event. - """ - - security_context: typing.Optional[LogSecurityContext] = None - location_info: typing.Optional[LogLocationInfo] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/log_date.py b/src/auth0/management/types/log_date.py deleted file mode 100644 index 022dcb93..00000000 --- a/src/auth0/management/types/log_date.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .log_date_object import LogDateObject - -LogDate = typing.Union[str, LogDateObject] diff --git a/src/auth0/management/types/log_date_object.py b/src/auth0/management/types/log_date_object.py deleted file mode 100644 index 90f0497c..00000000 --- a/src/auth0/management/types/log_date_object.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -LogDateObject = typing.Dict[str, typing.Any] -""" -Date when the event occurred in ISO 8601 format. -""" diff --git a/src/auth0/management/types/log_details.py b/src/auth0/management/types/log_details.py deleted file mode 100644 index c4264b6d..00000000 --- a/src/auth0/management/types/log_details.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -LogDetails = typing.Dict[str, typing.Any] -""" -Additional useful details about this event (structure is dependent upon event type). -""" diff --git a/src/auth0/management/types/log_location_info.py b/src/auth0/management/types/log_location_info.py deleted file mode 100644 index a542bd8d..00000000 --- a/src/auth0/management/types/log_location_info.py +++ /dev/null @@ -1,70 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata - - -class LogLocationInfo(UniversalBaseModel): - """ - Information about the location that triggered this event based on the `ip`. - """ - - country_code: typing.Optional[str] = pydantic.Field(default=None) - """ - Two-letter Alpha-2 ISO 3166-1 country code. - """ - - country_code_3: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="country_code3"), - pydantic.Field( - alias="country_code3", - description='Three-letter Alpha-3 ISO 3166-1 country code.', - ), - ] = None - """ - Three-letter Alpha-3 ISO 3166-1 country code. - """ - - country_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Full country name in English. - """ - - city_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Full city name in English. - """ - - latitude: typing.Optional[float] = pydantic.Field(default=None) - """ - Global latitude (horizontal) position. - """ - - longitude: typing.Optional[float] = pydantic.Field(default=None) - """ - Global longitude (vertical) position. - """ - - time_zone: typing.Optional[str] = pydantic.Field(default=None) - """ - Time zone name as found in the tz database. - """ - - continent_code: typing.Optional[str] = pydantic.Field(default=None) - """ - Continent the country is located within. Can be `AF` (Africa), `AN` (Antarctica), `AS` (Asia), `EU` (Europe), `NA` (North America), `OC` (Oceania) or `SA` (South America). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/log_security_context.py b/src/auth0/management/types/log_security_context.py deleted file mode 100644 index 28c86c4a..00000000 --- a/src/auth0/management/types/log_security_context.py +++ /dev/null @@ -1,41 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata - - -class LogSecurityContext(UniversalBaseModel): - """ - Information about security-related signals. - """ - - ja_3: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="ja3"), - pydantic.Field(alias="ja3", description="JA3 fingerprint value."), - ] = None - """ - JA3 fingerprint value. - """ - - ja_4: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="ja4"), - pydantic.Field(alias="ja4", description="JA4 fingerprint value."), - ] = None - """ - JA4 fingerprint value. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/log_stream_datadog_enum.py b/src/auth0/management/types/log_stream_datadog_enum.py deleted file mode 100644 index fca13779..00000000 --- a/src/auth0/management/types/log_stream_datadog_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -LogStreamDatadogEnum = typing.Union[typing.Literal["datadog"], typing.Any] diff --git a/src/auth0/management/types/log_stream_datadog_region_enum.py b/src/auth0/management/types/log_stream_datadog_region_enum.py deleted file mode 100644 index e8d83088..00000000 --- a/src/auth0/management/types/log_stream_datadog_region_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -LogStreamDatadogRegionEnum = typing.Union[typing.Literal["us", "eu", "us3", "us5"], typing.Any] diff --git a/src/auth0/management/types/log_stream_datadog_response_schema.py b/src/auth0/management/types/log_stream_datadog_response_schema.py deleted file mode 100644 index 979ad177..00000000 --- a/src/auth0/management/types/log_stream_datadog_response_schema.py +++ /dev/null @@ -1,53 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .log_stream_datadog_enum import LogStreamDatadogEnum -from .log_stream_datadog_sink import LogStreamDatadogSink -from .log_stream_filter import LogStreamFilter -from .log_stream_pii_config import LogStreamPiiConfig -from .log_stream_status_enum import LogStreamStatusEnum - - -class LogStreamDatadogResponseSchema(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - The id of the log stream - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - log stream name - """ - - status: typing.Optional[LogStreamStatusEnum] = None - type: typing.Optional[LogStreamDatadogEnum] = None - is_priority: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="isPriority"), - pydantic.Field(alias="isPriority", description="True for priority log streams, false for non-priority"), - ] = None - """ - True for priority log streams, false for non-priority - """ - - filters: typing.Optional[typing.List[LogStreamFilter]] = pydantic.Field(default=None) - """ - Only logs events matching these filters will be delivered by the stream. If omitted or empty, all events will be delivered. - """ - - pii_config: typing.Optional[LogStreamPiiConfig] = None - sink: typing.Optional[LogStreamDatadogSink] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/log_stream_datadog_sink.py b/src/auth0/management/types/log_stream_datadog_sink.py deleted file mode 100644 index f0a474c1..00000000 --- a/src/auth0/management/types/log_stream_datadog_sink.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .log_stream_datadog_region_enum import LogStreamDatadogRegionEnum - - -class LogStreamDatadogSink(UniversalBaseModel): - datadog_api_key: typing_extensions.Annotated[ - str, FieldMetadata(alias="datadogApiKey"), pydantic.Field(alias="datadogApiKey", description="Datadog API Key") - ] - """ - Datadog API Key - """ - - datadog_region: typing_extensions.Annotated[ - LogStreamDatadogRegionEnum, FieldMetadata(alias="datadogRegion"), pydantic.Field(alias="datadogRegion") - ] - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/log_stream_event_bridge_enum.py b/src/auth0/management/types/log_stream_event_bridge_enum.py deleted file mode 100644 index 575afcbb..00000000 --- a/src/auth0/management/types/log_stream_event_bridge_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -LogStreamEventBridgeEnum = typing.Union[typing.Literal["eventbridge"], typing.Any] diff --git a/src/auth0/management/types/log_stream_event_bridge_response_schema.py b/src/auth0/management/types/log_stream_event_bridge_response_schema.py deleted file mode 100644 index 7b2cdfc8..00000000 --- a/src/auth0/management/types/log_stream_event_bridge_response_schema.py +++ /dev/null @@ -1,53 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .log_stream_event_bridge_enum import LogStreamEventBridgeEnum -from .log_stream_event_bridge_sink import LogStreamEventBridgeSink -from .log_stream_filter import LogStreamFilter -from .log_stream_pii_config import LogStreamPiiConfig -from .log_stream_status_enum import LogStreamStatusEnum - - -class LogStreamEventBridgeResponseSchema(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - The id of the log stream - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - log stream name - """ - - status: typing.Optional[LogStreamStatusEnum] = None - type: typing.Optional[LogStreamEventBridgeEnum] = None - is_priority: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="isPriority"), - pydantic.Field(alias="isPriority", description="True for priority log streams, false for non-priority"), - ] = None - """ - True for priority log streams, false for non-priority - """ - - filters: typing.Optional[typing.List[LogStreamFilter]] = pydantic.Field(default=None) - """ - Only logs events matching these filters will be delivered by the stream. If omitted or empty, all events will be delivered. - """ - - pii_config: typing.Optional[LogStreamPiiConfig] = None - sink: typing.Optional[LogStreamEventBridgeSink] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/log_stream_event_bridge_sink.py b/src/auth0/management/types/log_stream_event_bridge_sink.py deleted file mode 100644 index 259c9ae1..00000000 --- a/src/auth0/management/types/log_stream_event_bridge_sink.py +++ /dev/null @@ -1,39 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .log_stream_event_bridge_sink_region_enum import LogStreamEventBridgeSinkRegionEnum - - -class LogStreamEventBridgeSink(UniversalBaseModel): - aws_account_id: typing_extensions.Annotated[ - str, FieldMetadata(alias="awsAccountId"), pydantic.Field(alias="awsAccountId", description="AWS account ID") - ] - """ - AWS account ID - """ - - aws_region: typing_extensions.Annotated[ - LogStreamEventBridgeSinkRegionEnum, FieldMetadata(alias="awsRegion"), pydantic.Field(alias="awsRegion") - ] - aws_partner_event_source: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="awsPartnerEventSource"), - pydantic.Field(alias="awsPartnerEventSource", description="AWS EventBridge partner event source"), - ] = None - """ - AWS EventBridge partner event source - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/log_stream_event_bridge_sink_region_enum.py b/src/auth0/management/types/log_stream_event_bridge_sink_region_enum.py deleted file mode 100644 index 2dd2b8b8..00000000 --- a/src/auth0/management/types/log_stream_event_bridge_sink_region_enum.py +++ /dev/null @@ -1,45 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -LogStreamEventBridgeSinkRegionEnum = typing.Union[ - typing.Literal[ - "af-south-1", - "ap-east-1", - "ap-east-2", - "ap-northeast-1", - "ap-northeast-2", - "ap-northeast-3", - "ap-south-1", - "ap-south-2", - "ap-southeast-1", - "ap-southeast-2", - "ap-southeast-3", - "ap-southeast-4", - "ap-southeast-5", - "ap-southeast-6", - "ap-southeast-7", - "ca-central-1", - "ca-west-1", - "eu-central-1", - "eu-central-2", - "eu-north-1", - "eu-south-1", - "eu-south-2", - "eu-west-1", - "eu-west-2", - "eu-west-3", - "il-central-1", - "me-central-1", - "me-south-1", - "mx-central-1", - "sa-east-1", - "us-gov-east-1", - "us-gov-west-1", - "us-east-1", - "us-east-2", - "us-west-1", - "us-west-2", - ], - typing.Any, -] diff --git a/src/auth0/management/types/log_stream_event_grid_enum.py b/src/auth0/management/types/log_stream_event_grid_enum.py deleted file mode 100644 index d8d3d3a1..00000000 --- a/src/auth0/management/types/log_stream_event_grid_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -LogStreamEventGridEnum = typing.Union[typing.Literal["eventgrid"], typing.Any] diff --git a/src/auth0/management/types/log_stream_event_grid_region_enum.py b/src/auth0/management/types/log_stream_event_grid_region_enum.py deleted file mode 100644 index 10d95e2a..00000000 --- a/src/auth0/management/types/log_stream_event_grid_region_enum.py +++ /dev/null @@ -1,43 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -LogStreamEventGridRegionEnum = typing.Union[ - typing.Literal[ - "australiacentral", - "australiaeast", - "australiasoutheast", - "brazilsouth", - "canadacentral", - "canadaeast", - "centralindia", - "centralus", - "eastasia", - "eastus", - "eastus2", - "francecentral", - "germanywestcentral", - "japaneast", - "japanwest", - "koreacentral", - "koreasouth", - "northcentralus", - "northeurope", - "norwayeast", - "southafricanorth", - "southcentralus", - "southeastasia", - "southindia", - "swedencentral", - "switzerlandnorth", - "uaenorth", - "uksouth", - "ukwest", - "westcentralus", - "westeurope", - "westindia", - "westus", - "westus2", - ], - typing.Any, -] diff --git a/src/auth0/management/types/log_stream_event_grid_response_schema.py b/src/auth0/management/types/log_stream_event_grid_response_schema.py deleted file mode 100644 index 26eca64a..00000000 --- a/src/auth0/management/types/log_stream_event_grid_response_schema.py +++ /dev/null @@ -1,53 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .log_stream_event_grid_enum import LogStreamEventGridEnum -from .log_stream_event_grid_sink import LogStreamEventGridSink -from .log_stream_filter import LogStreamFilter -from .log_stream_pii_config import LogStreamPiiConfig -from .log_stream_status_enum import LogStreamStatusEnum - - -class LogStreamEventGridResponseSchema(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - The id of the log stream - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - log stream name - """ - - status: typing.Optional[LogStreamStatusEnum] = None - type: typing.Optional[LogStreamEventGridEnum] = None - is_priority: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="isPriority"), - pydantic.Field(alias="isPriority", description="True for priority log streams, false for non-priority"), - ] = None - """ - True for priority log streams, false for non-priority - """ - - filters: typing.Optional[typing.List[LogStreamFilter]] = pydantic.Field(default=None) - """ - Only logs events matching these filters will be delivered by the stream. If omitted or empty, all events will be delivered. - """ - - pii_config: typing.Optional[LogStreamPiiConfig] = None - sink: typing.Optional[LogStreamEventGridSink] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/log_stream_event_grid_sink.py b/src/auth0/management/types/log_stream_event_grid_sink.py deleted file mode 100644 index b814b799..00000000 --- a/src/auth0/management/types/log_stream_event_grid_sink.py +++ /dev/null @@ -1,50 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .log_stream_event_grid_region_enum import LogStreamEventGridRegionEnum - - -class LogStreamEventGridSink(UniversalBaseModel): - azure_subscription_id: typing_extensions.Annotated[ - str, - FieldMetadata(alias="azureSubscriptionId"), - pydantic.Field(alias="azureSubscriptionId", description="Subscription ID"), - ] - """ - Subscription ID - """ - - azure_region: typing_extensions.Annotated[ - LogStreamEventGridRegionEnum, FieldMetadata(alias="azureRegion"), pydantic.Field(alias="azureRegion") - ] - azure_resource_group: typing_extensions.Annotated[ - str, - FieldMetadata(alias="azureResourceGroup"), - pydantic.Field(alias="azureResourceGroup", description="Resource Group"), - ] - """ - Resource Group - """ - - azure_partner_topic: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="azurePartnerTopic"), - pydantic.Field(alias="azurePartnerTopic", description="Partner Topic"), - ] = None - """ - Partner Topic - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/log_stream_filter.py b/src/auth0/management/types/log_stream_filter.py deleted file mode 100644 index 0bf55b41..00000000 --- a/src/auth0/management/types/log_stream_filter.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .log_stream_filter_group_name_enum import LogStreamFilterGroupNameEnum -from .log_stream_filter_type_enum import LogStreamFilterTypeEnum - - -class LogStreamFilter(UniversalBaseModel): - type: typing.Optional[LogStreamFilterTypeEnum] = None - name: typing.Optional[LogStreamFilterGroupNameEnum] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/log_stream_filter_group_name_enum.py b/src/auth0/management/types/log_stream_filter_group_name_enum.py deleted file mode 100644 index b002b384..00000000 --- a/src/auth0/management/types/log_stream_filter_group_name_enum.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -LogStreamFilterGroupNameEnum = typing.Union[ - typing.Literal[ - "auth.login.fail", - "auth.login.notification", - "auth.login.success", - "auth.logout.fail", - "auth.logout.success", - "auth.signup.fail", - "auth.signup.success", - "auth.silent_auth.fail", - "auth.silent_auth.success", - "auth.token_exchange.fail", - "auth.token_exchange.success", - "management.fail", - "management.success", - "scim.event", - "system.notification", - "user.fail", - "user.notification", - "user.success", - "actions", - "agent_gateway.authentication.fail", - "agent_gateway.operation.fail", - "agent_gateway.operation.success", - "other", - ], - typing.Any, -] diff --git a/src/auth0/management/types/log_stream_filter_type_enum.py b/src/auth0/management/types/log_stream_filter_type_enum.py deleted file mode 100644 index 3519bf1f..00000000 --- a/src/auth0/management/types/log_stream_filter_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -LogStreamFilterTypeEnum = typing.Union[typing.Literal["category"], typing.Any] diff --git a/src/auth0/management/types/log_stream_http_content_format_enum.py b/src/auth0/management/types/log_stream_http_content_format_enum.py deleted file mode 100644 index 682638ab..00000000 --- a/src/auth0/management/types/log_stream_http_content_format_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -LogStreamHttpContentFormatEnum = typing.Union[typing.Literal["JSONARRAY", "JSONLINES", "JSONOBJECT"], typing.Any] diff --git a/src/auth0/management/types/log_stream_http_enum.py b/src/auth0/management/types/log_stream_http_enum.py deleted file mode 100644 index 60ca48ef..00000000 --- a/src/auth0/management/types/log_stream_http_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -LogStreamHttpEnum = typing.Union[typing.Literal["http"], typing.Any] diff --git a/src/auth0/management/types/log_stream_http_response_schema.py b/src/auth0/management/types/log_stream_http_response_schema.py deleted file mode 100644 index d79e581f..00000000 --- a/src/auth0/management/types/log_stream_http_response_schema.py +++ /dev/null @@ -1,53 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .log_stream_filter import LogStreamFilter -from .log_stream_http_enum import LogStreamHttpEnum -from .log_stream_http_sink import LogStreamHttpSink -from .log_stream_pii_config import LogStreamPiiConfig -from .log_stream_status_enum import LogStreamStatusEnum - - -class LogStreamHttpResponseSchema(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - The id of the log stream - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - log stream name - """ - - status: typing.Optional[LogStreamStatusEnum] = None - type: typing.Optional[LogStreamHttpEnum] = None - is_priority: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="isPriority"), - pydantic.Field(alias="isPriority", description="True for priority log streams, false for non-priority"), - ] = None - """ - True for priority log streams, false for non-priority - """ - - filters: typing.Optional[typing.List[LogStreamFilter]] = pydantic.Field(default=None) - """ - Only logs events matching these filters will be delivered by the stream. If omitted or empty, all events will be delivered. - """ - - pii_config: typing.Optional[LogStreamPiiConfig] = None - sink: typing.Optional[LogStreamHttpSink] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/log_stream_http_sink.py b/src/auth0/management/types/log_stream_http_sink.py deleted file mode 100644 index 9feb12c4..00000000 --- a/src/auth0/management/types/log_stream_http_sink.py +++ /dev/null @@ -1,60 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .http_custom_header import HttpCustomHeader -from .log_stream_http_content_format_enum import LogStreamHttpContentFormatEnum - - -class LogStreamHttpSink(UniversalBaseModel): - http_authorization: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="httpAuthorization"), - pydantic.Field(alias="httpAuthorization", description="HTTP Authorization header"), - ] = None - """ - HTTP Authorization header - """ - - http_content_format: typing_extensions.Annotated[ - typing.Optional[LogStreamHttpContentFormatEnum], - FieldMetadata(alias="httpContentFormat"), - pydantic.Field(alias="httpContentFormat"), - ] = None - http_content_type: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="httpContentType"), - pydantic.Field(alias="httpContentType", description="HTTP Content-Type header"), - ] = None - """ - HTTP Content-Type header - """ - - http_endpoint: typing_extensions.Annotated[ - str, FieldMetadata(alias="httpEndpoint"), pydantic.Field(alias="httpEndpoint", description="HTTP endpoint") - ] - """ - HTTP endpoint - """ - - http_custom_headers: typing_extensions.Annotated[ - typing.Optional[typing.List[HttpCustomHeader]], - FieldMetadata(alias="httpCustomHeaders"), - pydantic.Field(alias="httpCustomHeaders", description="custom HTTP headers"), - ] = None - """ - custom HTTP headers - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/log_stream_mixpanel_enum.py b/src/auth0/management/types/log_stream_mixpanel_enum.py deleted file mode 100644 index 3ef7f81c..00000000 --- a/src/auth0/management/types/log_stream_mixpanel_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -LogStreamMixpanelEnum = typing.Union[typing.Literal["mixpanel"], typing.Any] diff --git a/src/auth0/management/types/log_stream_mixpanel_region_enum.py b/src/auth0/management/types/log_stream_mixpanel_region_enum.py deleted file mode 100644 index f093d5d0..00000000 --- a/src/auth0/management/types/log_stream_mixpanel_region_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -LogStreamMixpanelRegionEnum = typing.Union[typing.Literal["us", "eu"], typing.Any] diff --git a/src/auth0/management/types/log_stream_mixpanel_response_schema.py b/src/auth0/management/types/log_stream_mixpanel_response_schema.py deleted file mode 100644 index 0daba858..00000000 --- a/src/auth0/management/types/log_stream_mixpanel_response_schema.py +++ /dev/null @@ -1,53 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .log_stream_filter import LogStreamFilter -from .log_stream_mixpanel_enum import LogStreamMixpanelEnum -from .log_stream_mixpanel_sink import LogStreamMixpanelSink -from .log_stream_pii_config import LogStreamPiiConfig -from .log_stream_status_enum import LogStreamStatusEnum - - -class LogStreamMixpanelResponseSchema(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - The id of the log stream - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - log stream name - """ - - status: typing.Optional[LogStreamStatusEnum] = None - type: typing.Optional[LogStreamMixpanelEnum] = None - is_priority: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="isPriority"), - pydantic.Field(alias="isPriority", description="True for priority log streams, false for non-priority"), - ] = None - """ - True for priority log streams, false for non-priority - """ - - filters: typing.Optional[typing.List[LogStreamFilter]] = pydantic.Field(default=None) - """ - Only logs events matching these filters will be delivered by the stream. If omitted or empty, all events will be delivered. - """ - - pii_config: typing.Optional[LogStreamPiiConfig] = None - sink: typing.Optional[LogStreamMixpanelSink] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/log_stream_mixpanel_sink.py b/src/auth0/management/types/log_stream_mixpanel_sink.py deleted file mode 100644 index 5d07e462..00000000 --- a/src/auth0/management/types/log_stream_mixpanel_sink.py +++ /dev/null @@ -1,50 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .log_stream_mixpanel_region_enum import LogStreamMixpanelRegionEnum - - -class LogStreamMixpanelSink(UniversalBaseModel): - mixpanel_region: typing_extensions.Annotated[ - LogStreamMixpanelRegionEnum, FieldMetadata(alias="mixpanelRegion"), pydantic.Field(alias="mixpanelRegion") - ] - mixpanel_project_id: typing_extensions.Annotated[ - str, - FieldMetadata(alias="mixpanelProjectId"), - pydantic.Field(alias="mixpanelProjectId", description="Mixpanel Project Id"), - ] - """ - Mixpanel Project Id - """ - - mixpanel_service_account_username: typing_extensions.Annotated[ - str, - FieldMetadata(alias="mixpanelServiceAccountUsername"), - pydantic.Field(alias="mixpanelServiceAccountUsername", description="Mixpanel Service Account Username"), - ] - """ - Mixpanel Service Account Username - """ - - mixpanel_service_account_password: typing_extensions.Annotated[ - str, - FieldMetadata(alias="mixpanelServiceAccountPassword"), - pydantic.Field(alias="mixpanelServiceAccountPassword", description="Mixpanel Service Account Password"), - ] - """ - Mixpanel Service Account Password - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/log_stream_mixpanel_sink_patch.py b/src/auth0/management/types/log_stream_mixpanel_sink_patch.py deleted file mode 100644 index 2cc5e0c3..00000000 --- a/src/auth0/management/types/log_stream_mixpanel_sink_patch.py +++ /dev/null @@ -1,50 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .log_stream_mixpanel_region_enum import LogStreamMixpanelRegionEnum - - -class LogStreamMixpanelSinkPatch(UniversalBaseModel): - mixpanel_region: typing_extensions.Annotated[ - LogStreamMixpanelRegionEnum, FieldMetadata(alias="mixpanelRegion"), pydantic.Field(alias="mixpanelRegion") - ] - mixpanel_project_id: typing_extensions.Annotated[ - str, - FieldMetadata(alias="mixpanelProjectId"), - pydantic.Field(alias="mixpanelProjectId", description="Mixpanel Project Id"), - ] - """ - Mixpanel Project Id - """ - - mixpanel_service_account_username: typing_extensions.Annotated[ - str, - FieldMetadata(alias="mixpanelServiceAccountUsername"), - pydantic.Field(alias="mixpanelServiceAccountUsername", description="Mixpanel Service Account Username"), - ] - """ - Mixpanel Service Account Username - """ - - mixpanel_service_account_password: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="mixpanelServiceAccountPassword"), - pydantic.Field(alias="mixpanelServiceAccountPassword", description="Mixpanel Service Account Password"), - ] = None - """ - Mixpanel Service Account Password - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/log_stream_pii_algorithm_enum.py b/src/auth0/management/types/log_stream_pii_algorithm_enum.py deleted file mode 100644 index 7ad19518..00000000 --- a/src/auth0/management/types/log_stream_pii_algorithm_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -LogStreamPiiAlgorithmEnum = typing.Union[typing.Literal["xxhash"], typing.Any] diff --git a/src/auth0/management/types/log_stream_pii_config.py b/src/auth0/management/types/log_stream_pii_config.py deleted file mode 100644 index 2bb8bedb..00000000 --- a/src/auth0/management/types/log_stream_pii_config.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .log_stream_pii_algorithm_enum import LogStreamPiiAlgorithmEnum -from .log_stream_pii_log_fields_enum import LogStreamPiiLogFieldsEnum -from .log_stream_pii_method_enum import LogStreamPiiMethodEnum - - -class LogStreamPiiConfig(UniversalBaseModel): - log_fields: typing.List[LogStreamPiiLogFieldsEnum] - method: typing.Optional[LogStreamPiiMethodEnum] = None - algorithm: typing.Optional[LogStreamPiiAlgorithmEnum] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/log_stream_pii_log_fields_enum.py b/src/auth0/management/types/log_stream_pii_log_fields_enum.py deleted file mode 100644 index 3aff4d6b..00000000 --- a/src/auth0/management/types/log_stream_pii_log_fields_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -LogStreamPiiLogFieldsEnum = typing.Union[ - typing.Literal["first_name", "last_name", "username", "email", "phone", "address"], typing.Any -] diff --git a/src/auth0/management/types/log_stream_pii_method_enum.py b/src/auth0/management/types/log_stream_pii_method_enum.py deleted file mode 100644 index 837e2284..00000000 --- a/src/auth0/management/types/log_stream_pii_method_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -LogStreamPiiMethodEnum = typing.Union[typing.Literal["mask", "hash"], typing.Any] diff --git a/src/auth0/management/types/log_stream_response_schema.py b/src/auth0/management/types/log_stream_response_schema.py deleted file mode 100644 index e1d19d23..00000000 --- a/src/auth0/management/types/log_stream_response_schema.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .log_stream_datadog_response_schema import LogStreamDatadogResponseSchema -from .log_stream_event_bridge_response_schema import LogStreamEventBridgeResponseSchema -from .log_stream_event_grid_response_schema import LogStreamEventGridResponseSchema -from .log_stream_http_response_schema import LogStreamHttpResponseSchema -from .log_stream_mixpanel_response_schema import LogStreamMixpanelResponseSchema -from .log_stream_segment_response_schema import LogStreamSegmentResponseSchema -from .log_stream_splunk_response_schema import LogStreamSplunkResponseSchema -from .log_stream_sumo_response_schema import LogStreamSumoResponseSchema - -LogStreamResponseSchema = typing.Union[ - LogStreamHttpResponseSchema, - LogStreamEventBridgeResponseSchema, - LogStreamEventGridResponseSchema, - LogStreamDatadogResponseSchema, - LogStreamSplunkResponseSchema, - LogStreamSumoResponseSchema, - LogStreamSegmentResponseSchema, - LogStreamMixpanelResponseSchema, -] diff --git a/src/auth0/management/types/log_stream_segment_enum.py b/src/auth0/management/types/log_stream_segment_enum.py deleted file mode 100644 index f25d3e79..00000000 --- a/src/auth0/management/types/log_stream_segment_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -LogStreamSegmentEnum = typing.Union[typing.Literal["segment"], typing.Any] diff --git a/src/auth0/management/types/log_stream_segment_response_schema.py b/src/auth0/management/types/log_stream_segment_response_schema.py deleted file mode 100644 index eb5b59d6..00000000 --- a/src/auth0/management/types/log_stream_segment_response_schema.py +++ /dev/null @@ -1,53 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .log_stream_filter import LogStreamFilter -from .log_stream_pii_config import LogStreamPiiConfig -from .log_stream_segment_enum import LogStreamSegmentEnum -from .log_stream_segment_sink_write_key import LogStreamSegmentSinkWriteKey -from .log_stream_status_enum import LogStreamStatusEnum - - -class LogStreamSegmentResponseSchema(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - The id of the log stream - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - log stream name - """ - - status: typing.Optional[LogStreamStatusEnum] = None - type: typing.Optional[LogStreamSegmentEnum] = None - is_priority: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="isPriority"), - pydantic.Field(alias="isPriority", description="True for priority log streams, false for non-priority"), - ] = None - """ - True for priority log streams, false for non-priority - """ - - filters: typing.Optional[typing.List[LogStreamFilter]] = pydantic.Field(default=None) - """ - Only logs events matching these filters will be delivered by the stream. If omitted or empty, all events will be delivered. - """ - - pii_config: typing.Optional[LogStreamPiiConfig] = None - sink: typing.Optional[LogStreamSegmentSinkWriteKey] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/log_stream_segment_sink.py b/src/auth0/management/types/log_stream_segment_sink.py deleted file mode 100644 index 50281710..00000000 --- a/src/auth0/management/types/log_stream_segment_sink.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata - - -class LogStreamSegmentSink(UniversalBaseModel): - segment_write_key: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="segmentWriteKey"), - pydantic.Field(alias="segmentWriteKey", description="Segment write key"), - ] = None - """ - Segment write key - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/log_stream_segment_sink_write_key.py b/src/auth0/management/types/log_stream_segment_sink_write_key.py deleted file mode 100644 index 9678a388..00000000 --- a/src/auth0/management/types/log_stream_segment_sink_write_key.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata - - -class LogStreamSegmentSinkWriteKey(UniversalBaseModel): - segment_write_key: typing_extensions.Annotated[ - str, - FieldMetadata(alias="segmentWriteKey"), - pydantic.Field(alias="segmentWriteKey", description="Segment write key"), - ] - """ - Segment write key - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/log_stream_sink_patch.py b/src/auth0/management/types/log_stream_sink_patch.py deleted file mode 100644 index 08645194..00000000 --- a/src/auth0/management/types/log_stream_sink_patch.py +++ /dev/null @@ -1,19 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .log_stream_datadog_sink import LogStreamDatadogSink -from .log_stream_http_sink import LogStreamHttpSink -from .log_stream_mixpanel_sink_patch import LogStreamMixpanelSinkPatch -from .log_stream_segment_sink import LogStreamSegmentSink -from .log_stream_splunk_sink import LogStreamSplunkSink -from .log_stream_sumo_sink import LogStreamSumoSink - -LogStreamSinkPatch = typing.Union[ - LogStreamHttpSink, - LogStreamDatadogSink, - LogStreamSplunkSink, - LogStreamSumoSink, - LogStreamSegmentSink, - LogStreamMixpanelSinkPatch, -] diff --git a/src/auth0/management/types/log_stream_splunk_enum.py b/src/auth0/management/types/log_stream_splunk_enum.py deleted file mode 100644 index c8208d54..00000000 --- a/src/auth0/management/types/log_stream_splunk_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -LogStreamSplunkEnum = typing.Union[typing.Literal["splunk"], typing.Any] diff --git a/src/auth0/management/types/log_stream_splunk_response_schema.py b/src/auth0/management/types/log_stream_splunk_response_schema.py deleted file mode 100644 index be701746..00000000 --- a/src/auth0/management/types/log_stream_splunk_response_schema.py +++ /dev/null @@ -1,53 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .log_stream_filter import LogStreamFilter -from .log_stream_pii_config import LogStreamPiiConfig -from .log_stream_splunk_enum import LogStreamSplunkEnum -from .log_stream_splunk_sink import LogStreamSplunkSink -from .log_stream_status_enum import LogStreamStatusEnum - - -class LogStreamSplunkResponseSchema(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - The id of the log stream - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - log stream name - """ - - status: typing.Optional[LogStreamStatusEnum] = None - type: typing.Optional[LogStreamSplunkEnum] = None - is_priority: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="isPriority"), - pydantic.Field(alias="isPriority", description="True for priority log streams, false for non-priority"), - ] = None - """ - True for priority log streams, false for non-priority - """ - - filters: typing.Optional[typing.List[LogStreamFilter]] = pydantic.Field(default=None) - """ - Only logs events matching these filters will be delivered by the stream. If omitted or empty, all events will be delivered. - """ - - pii_config: typing.Optional[LogStreamPiiConfig] = None - sink: typing.Optional[LogStreamSplunkSink] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/log_stream_splunk_sink.py b/src/auth0/management/types/log_stream_splunk_sink.py deleted file mode 100644 index 2538fc41..00000000 --- a/src/auth0/management/types/log_stream_splunk_sink.py +++ /dev/null @@ -1,51 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata - - -class LogStreamSplunkSink(UniversalBaseModel): - splunk_domain: typing_extensions.Annotated[ - str, - FieldMetadata(alias="splunkDomain"), - pydantic.Field(alias="splunkDomain", description="Splunk URL Endpoint"), - ] - """ - Splunk URL Endpoint - """ - - splunk_port: typing_extensions.Annotated[ - str, FieldMetadata(alias="splunkPort"), pydantic.Field(alias="splunkPort", description="Port") - ] - """ - Port - """ - - splunk_token: typing_extensions.Annotated[ - str, FieldMetadata(alias="splunkToken"), pydantic.Field(alias="splunkToken", description="Splunk token") - ] - """ - Splunk token - """ - - splunk_secure: typing_extensions.Annotated[ - bool, - FieldMetadata(alias="splunkSecure"), - pydantic.Field(alias="splunkSecure", description="Verify TLS certificate"), - ] - """ - Verify TLS certificate - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/log_stream_status_enum.py b/src/auth0/management/types/log_stream_status_enum.py deleted file mode 100644 index 29cf9a40..00000000 --- a/src/auth0/management/types/log_stream_status_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -LogStreamStatusEnum = typing.Union[typing.Literal["active", "paused", "suspended"], typing.Any] diff --git a/src/auth0/management/types/log_stream_sumo_enum.py b/src/auth0/management/types/log_stream_sumo_enum.py deleted file mode 100644 index f739d640..00000000 --- a/src/auth0/management/types/log_stream_sumo_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -LogStreamSumoEnum = typing.Union[typing.Literal["sumo"], typing.Any] diff --git a/src/auth0/management/types/log_stream_sumo_response_schema.py b/src/auth0/management/types/log_stream_sumo_response_schema.py deleted file mode 100644 index 02a2e03f..00000000 --- a/src/auth0/management/types/log_stream_sumo_response_schema.py +++ /dev/null @@ -1,53 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .log_stream_filter import LogStreamFilter -from .log_stream_pii_config import LogStreamPiiConfig -from .log_stream_status_enum import LogStreamStatusEnum -from .log_stream_sumo_enum import LogStreamSumoEnum -from .log_stream_sumo_sink import LogStreamSumoSink - - -class LogStreamSumoResponseSchema(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - The id of the log stream - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - log stream name - """ - - status: typing.Optional[LogStreamStatusEnum] = None - type: typing.Optional[LogStreamSumoEnum] = None - is_priority: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="isPriority"), - pydantic.Field(alias="isPriority", description="True for priority log streams, false for non-priority"), - ] = None - """ - True for priority log streams, false for non-priority - """ - - filters: typing.Optional[typing.List[LogStreamFilter]] = pydantic.Field(default=None) - """ - Only logs events matching these filters will be delivered by the stream. If omitted or empty, all events will be delivered. - """ - - pii_config: typing.Optional[LogStreamPiiConfig] = None - sink: typing.Optional[LogStreamSumoSink] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/log_stream_sumo_sink.py b/src/auth0/management/types/log_stream_sumo_sink.py deleted file mode 100644 index 2cc16a35..00000000 --- a/src/auth0/management/types/log_stream_sumo_sink.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata - - -class LogStreamSumoSink(UniversalBaseModel): - sumo_source_address: typing_extensions.Annotated[ - str, - FieldMetadata(alias="sumoSourceAddress"), - pydantic.Field(alias="sumoSourceAddress", description="HTTP Source Address"), - ] - """ - HTTP Source Address - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/mdl_presentation_properties.py b/src/auth0/management/types/mdl_presentation_properties.py deleted file mode 100644 index 69a9a98b..00000000 --- a/src/auth0/management/types/mdl_presentation_properties.py +++ /dev/null @@ -1,122 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class MdlPresentationProperties(UniversalBaseModel): - family_name: typing.Optional[bool] = pydantic.Field(default=None) - """ - Family Name - """ - - given_name: typing.Optional[bool] = pydantic.Field(default=None) - """ - Given Name - """ - - birth_date: typing.Optional[bool] = pydantic.Field(default=None) - """ - Birth Date - """ - - issue_date: typing.Optional[bool] = pydantic.Field(default=None) - """ - Issue Date - """ - - expiry_date: typing.Optional[bool] = pydantic.Field(default=None) - """ - Expiry Date - """ - - issuing_country: typing.Optional[bool] = pydantic.Field(default=None) - """ - Issuing Country - """ - - issuing_authority: typing.Optional[bool] = pydantic.Field(default=None) - """ - Issuing Authority - """ - - portrait: typing.Optional[bool] = pydantic.Field(default=None) - """ - Portrait - """ - - driving_privileges: typing.Optional[bool] = pydantic.Field(default=None) - """ - Driving Privileges - """ - - resident_address: typing.Optional[bool] = pydantic.Field(default=None) - """ - Resident Address - """ - - portrait_capture_date: typing.Optional[bool] = pydantic.Field(default=None) - """ - Portrait Capture Date - """ - - age_in_years: typing.Optional[bool] = pydantic.Field(default=None) - """ - Age in Years - """ - - age_birth_year: typing.Optional[bool] = pydantic.Field(default=None) - """ - Age Birth Year - """ - - issuing_jurisdiction: typing.Optional[bool] = pydantic.Field(default=None) - """ - Issuing Jurisdiction - """ - - nationality: typing.Optional[bool] = pydantic.Field(default=None) - """ - Nationality - """ - - resident_city: typing.Optional[bool] = pydantic.Field(default=None) - """ - Resident City - """ - - resident_state: typing.Optional[bool] = pydantic.Field(default=None) - """ - Resident State - """ - - resident_postal_code: typing.Optional[bool] = pydantic.Field(default=None) - """ - Resident Postal Code - """ - - resident_country: typing.Optional[bool] = pydantic.Field(default=None) - """ - Resident Country - """ - - family_name_national_character: typing.Optional[bool] = pydantic.Field(default=None) - """ - Family Name National Character - """ - - given_name_national_character: typing.Optional[bool] = pydantic.Field(default=None) - """ - Given Name National Character - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/mdl_presentation_request.py b/src/auth0/management/types/mdl_presentation_request.py deleted file mode 100644 index 684c0b8b..00000000 --- a/src/auth0/management/types/mdl_presentation_request.py +++ /dev/null @@ -1,30 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .mdl_presentation_request_properties import MdlPresentationRequestProperties - - -class MdlPresentationRequest(UniversalBaseModel): - """ - A simplified presentation request - """ - - org_iso_18013_5_1_m_dl: typing_extensions.Annotated[ - MdlPresentationRequestProperties, - FieldMetadata(alias="org.iso.18013.5.1.mDL"), - pydantic.Field(alias="org.iso.18013.5.1.mDL"), - ] - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/mdl_presentation_request_properties.py b/src/auth0/management/types/mdl_presentation_request_properties.py deleted file mode 100644 index cb6be49a..00000000 --- a/src/auth0/management/types/mdl_presentation_request_properties.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .mdl_presentation_properties import MdlPresentationProperties - - -class MdlPresentationRequestProperties(UniversalBaseModel): - org_iso_18013_5_1: typing_extensions.Annotated[ - MdlPresentationProperties, FieldMetadata(alias="org.iso.18013.5.1"), pydantic.Field(alias="org.iso.18013.5.1") - ] - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/mfa_policy_enum.py b/src/auth0/management/types/mfa_policy_enum.py deleted file mode 100644 index bcb5d854..00000000 --- a/src/auth0/management/types/mfa_policy_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -MfaPolicyEnum = typing.Union[typing.Literal["all-applications", "confidence-score"], typing.Any] diff --git a/src/auth0/management/types/native_social_login.py b/src/auth0/management/types/native_social_login.py deleted file mode 100644 index 686eb32d..00000000 --- a/src/auth0/management/types/native_social_login.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .native_social_login_apple import NativeSocialLoginApple -from .native_social_login_facebook import NativeSocialLoginFacebook -from .native_social_login_google import NativeSocialLoginGoogle - - -class NativeSocialLogin(UniversalBaseModel): - """ - Configure native social settings - """ - - apple: typing.Optional[NativeSocialLoginApple] = None - facebook: typing.Optional[NativeSocialLoginFacebook] = None - google: typing.Optional[NativeSocialLoginGoogle] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/native_social_login_apple.py b/src/auth0/management/types/native_social_login_apple.py deleted file mode 100644 index 29164ed6..00000000 --- a/src/auth0/management/types/native_social_login_apple.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class NativeSocialLoginApple(UniversalBaseModel): - """ - Native Social Login support for the Apple connection - """ - - enabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - Determine whether or not to allow signing in natively using an Apple authorization code - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/native_social_login_apple_patch.py b/src/auth0/management/types/native_social_login_apple_patch.py deleted file mode 100644 index 19bcafac..00000000 --- a/src/auth0/management/types/native_social_login_apple_patch.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class NativeSocialLoginApplePatch(UniversalBaseModel): - """ - Native Social Login support for the Apple connection - """ - - enabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - Determine whether or not to allow signing in natively using an Apple authorization code - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/native_social_login_facebook.py b/src/auth0/management/types/native_social_login_facebook.py deleted file mode 100644 index 1563e38f..00000000 --- a/src/auth0/management/types/native_social_login_facebook.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class NativeSocialLoginFacebook(UniversalBaseModel): - """ - Native Social Login support for the Facebook connection - """ - - enabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - Determine whether or not to allow signing in natively using Facebook - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/native_social_login_facebook_patch.py b/src/auth0/management/types/native_social_login_facebook_patch.py deleted file mode 100644 index 3fe96b36..00000000 --- a/src/auth0/management/types/native_social_login_facebook_patch.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class NativeSocialLoginFacebookPatch(UniversalBaseModel): - """ - Native Social Login support for the Facebook connection - """ - - enabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - Determine whether or not to allow signing in natively using Facebook - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/native_social_login_google.py b/src/auth0/management/types/native_social_login_google.py deleted file mode 100644 index 04c4cfff..00000000 --- a/src/auth0/management/types/native_social_login_google.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class NativeSocialLoginGoogle(UniversalBaseModel): - """ - Native Social Login support for the google-oauth2 connection - """ - - enabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - Determine whether or not to allow signing in natively using a Google ID token - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/native_social_login_google_patch.py b/src/auth0/management/types/native_social_login_google_patch.py deleted file mode 100644 index 16c543f0..00000000 --- a/src/auth0/management/types/native_social_login_google_patch.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class NativeSocialLoginGooglePatch(UniversalBaseModel): - """ - Native Social Login support for the google-oauth2 connection - """ - - enabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - Determine whether or not to allow signing in natively using a Google ID token - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/native_social_login_patch.py b/src/auth0/management/types/native_social_login_patch.py deleted file mode 100644 index 2e93bc9e..00000000 --- a/src/auth0/management/types/native_social_login_patch.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .native_social_login_apple_patch import NativeSocialLoginApplePatch -from .native_social_login_facebook_patch import NativeSocialLoginFacebookPatch -from .native_social_login_google_patch import NativeSocialLoginGooglePatch - - -class NativeSocialLoginPatch(UniversalBaseModel): - """ - Configure native social settings - """ - - apple: typing.Optional[NativeSocialLoginApplePatch] = None - facebook: typing.Optional[NativeSocialLoginFacebookPatch] = None - google: typing.Optional[NativeSocialLoginGooglePatch] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/network_acl_action.py b/src/auth0/management/types/network_acl_action.py deleted file mode 100644 index 349dcbb0..00000000 --- a/src/auth0/management/types/network_acl_action.py +++ /dev/null @@ -1,30 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .network_acl_action_allow_enum import NetworkAclActionAllowEnum -from .network_acl_action_block_enum import NetworkAclActionBlockEnum -from .network_acl_action_log_enum import NetworkAclActionLogEnum -from .network_acl_action_redirect_enum import NetworkAclActionRedirectEnum - - -class NetworkAclAction(UniversalBaseModel): - block: typing.Optional[NetworkAclActionBlockEnum] = None - allow: typing.Optional[NetworkAclActionAllowEnum] = None - log: typing.Optional[NetworkAclActionLogEnum] = None - redirect: typing.Optional[NetworkAclActionRedirectEnum] = None - redirect_uri: typing.Optional[str] = pydantic.Field(default=None) - """ - The URI to which the match or not_match requests will be routed - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/network_acl_action_allow_enum.py b/src/auth0/management/types/network_acl_action_allow_enum.py deleted file mode 100644 index 3e72f15a..00000000 --- a/src/auth0/management/types/network_acl_action_allow_enum.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -NetworkAclActionAllowEnum = bool -""" -Indicates the rule will allow requests that either match or not_match specific criteria -""" diff --git a/src/auth0/management/types/network_acl_action_block_enum.py b/src/auth0/management/types/network_acl_action_block_enum.py deleted file mode 100644 index 0c75f2fb..00000000 --- a/src/auth0/management/types/network_acl_action_block_enum.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -NetworkAclActionBlockEnum = bool -""" -Indicates the rule will block requests that either match or not_match specific criteria -""" diff --git a/src/auth0/management/types/network_acl_action_log_enum.py b/src/auth0/management/types/network_acl_action_log_enum.py deleted file mode 100644 index 9e17aa86..00000000 --- a/src/auth0/management/types/network_acl_action_log_enum.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -NetworkAclActionLogEnum = bool -""" -Indicates the rule will log requests that either match or not_match specific criteria -""" diff --git a/src/auth0/management/types/network_acl_action_redirect_enum.py b/src/auth0/management/types/network_acl_action_redirect_enum.py deleted file mode 100644 index 17a16201..00000000 --- a/src/auth0/management/types/network_acl_action_redirect_enum.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -NetworkAclActionRedirectEnum = bool -""" -Indicates the rule will redirect requests that either match or not_match specific criteria -""" diff --git a/src/auth0/management/types/network_acl_http_message_signature.py b/src/auth0/management/types/network_acl_http_message_signature.py deleted file mode 100644 index 90fe90d8..00000000 --- a/src/auth0/management/types/network_acl_http_message_signature.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .network_acl_http_message_signature_keys import NetworkAclHttpMessageSignatureKeys - - -class NetworkAclHttpMessageSignature(UniversalBaseModel): - """ - HTTP Message Signature configuration. - """ - - keys: NetworkAclHttpMessageSignatureKeys - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/network_acl_http_message_signature_key.py b/src/auth0/management/types/network_acl_http_message_signature_key.py deleted file mode 100644 index 6a16d011..00000000 --- a/src/auth0/management/types/network_acl_http_message_signature_key.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class NetworkAclHttpMessageSignatureKey(UniversalBaseModel): - id: str = pydantic.Field() - """ - Auth0-generated identifier for the key, as returned by `POST /api/v2/keys/network-acls`. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/network_acl_http_message_signature_keys.py b/src/auth0/management/types/network_acl_http_message_signature_keys.py deleted file mode 100644 index b7eced28..00000000 --- a/src/auth0/management/types/network_acl_http_message_signature_keys.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .network_acl_http_message_signature_key import NetworkAclHttpMessageSignatureKey - -NetworkAclHttpMessageSignatureKeys = typing.List[NetworkAclHttpMessageSignatureKey] -""" -The keys whose signatures satisfy this rule. Each id references a key that was already created via `POST /api/v2/keys/network-acls`. -""" diff --git a/src/auth0/management/types/network_acl_key.py b/src/auth0/management/types/network_acl_key.py deleted file mode 100644 index 3027c1b9..00000000 --- a/src/auth0/management/types/network_acl_key.py +++ /dev/null @@ -1,44 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .network_acl_key_algorithm_enum import NetworkAclKeyAlgorithmEnum - - -class NetworkAclKey(UniversalBaseModel): - id: str = pydantic.Field() - """ - Generated identifier for the key. Used to reference the key from a Network ACL and to identify it in Tenant Logs. - """ - - name: str = pydantic.Field() - """ - User supplied label for the key. - """ - - alg: NetworkAclKeyAlgorithmEnum - fingerprint: str = pydantic.Field() - """ - Fingerprint of the key material, determined by the algorithm specified. Currently only HMAC-SHA256 is supported. - """ - - created_at: str = pydantic.Field() - """ - Time when the key was created. - """ - - updated_at: str = pydantic.Field() - """ - Time when the key was last updated. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/network_acl_key_algorithm_enum.py b/src/auth0/management/types/network_acl_key_algorithm_enum.py deleted file mode 100644 index 666730e9..00000000 --- a/src/auth0/management/types/network_acl_key_algorithm_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -NetworkAclKeyAlgorithmEnum = typing.Union[typing.Literal["hmac-sha256"], typing.Any] diff --git a/src/auth0/management/types/network_acl_match.py b/src/auth0/management/types/network_acl_match.py deleted file mode 100644 index 3e1aa36a..00000000 --- a/src/auth0/management/types/network_acl_match.py +++ /dev/null @@ -1,64 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .network_acl_http_message_signature import NetworkAclHttpMessageSignature -from .network_acl_match_connecting_ipv_4_cidr import NetworkAclMatchConnectingIpv4Cidr -from .network_acl_match_connecting_ipv_6_cidr import NetworkAclMatchConnectingIpv6Cidr -from .network_acl_match_ipv_4_cidr import NetworkAclMatchIpv4Cidr -from .network_acl_match_ipv_6_cidr import NetworkAclMatchIpv6Cidr - - -class NetworkAclMatch(UniversalBaseModel): - asns: typing.Optional[typing.List[int]] = None - auth_0_managed: typing_extensions.Annotated[ - typing.Optional[typing.List[str]], FieldMetadata(alias="auth0_managed"), pydantic.Field(alias="auth0_managed") - ] = None - geo_country_codes: typing.Optional[typing.List[str]] = None - geo_subdivision_codes: typing.Optional[typing.List[str]] = None - ipv_4_cidrs: typing_extensions.Annotated[ - typing.Optional[typing.List[NetworkAclMatchIpv4Cidr]], - FieldMetadata(alias="ipv4_cidrs"), - pydantic.Field(alias="ipv4_cidrs"), - ] = None - ipv_6_cidrs: typing_extensions.Annotated[ - typing.Optional[typing.List[NetworkAclMatchIpv6Cidr]], - FieldMetadata(alias="ipv6_cidrs"), - pydantic.Field(alias="ipv6_cidrs"), - ] = None - ja_3_fingerprints: typing_extensions.Annotated[ - typing.Optional[typing.List[str]], - FieldMetadata(alias="ja3_fingerprints"), - pydantic.Field(alias="ja3_fingerprints"), - ] = None - ja_4_fingerprints: typing_extensions.Annotated[ - typing.Optional[typing.List[str]], - FieldMetadata(alias="ja4_fingerprints"), - pydantic.Field(alias="ja4_fingerprints"), - ] = None - user_agents: typing.Optional[typing.List[str]] = None - hostnames: typing.Optional[typing.List[str]] = None - connecting_ipv_4_cidrs: typing_extensions.Annotated[ - typing.Optional[typing.List[NetworkAclMatchConnectingIpv4Cidr]], - FieldMetadata(alias="connecting_ipv4_cidrs"), - pydantic.Field(alias="connecting_ipv4_cidrs"), - ] = None - connecting_ipv_6_cidrs: typing_extensions.Annotated[ - typing.Optional[typing.List[NetworkAclMatchConnectingIpv6Cidr]], - FieldMetadata(alias="connecting_ipv6_cidrs"), - pydantic.Field(alias="connecting_ipv6_cidrs"), - ] = None - http_message_signature: typing.Optional[NetworkAclHttpMessageSignature] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/network_acl_match_connecting_ipv_4_cidr.py b/src/auth0/management/types/network_acl_match_connecting_ipv_4_cidr.py deleted file mode 100644 index cfc118ef..00000000 --- a/src/auth0/management/types/network_acl_match_connecting_ipv_4_cidr.py +++ /dev/null @@ -1,3 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -NetworkAclMatchConnectingIpv4Cidr = str diff --git a/src/auth0/management/types/network_acl_match_connecting_ipv_6_cidr.py b/src/auth0/management/types/network_acl_match_connecting_ipv_6_cidr.py deleted file mode 100644 index 0d74f88f..00000000 --- a/src/auth0/management/types/network_acl_match_connecting_ipv_6_cidr.py +++ /dev/null @@ -1,3 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -NetworkAclMatchConnectingIpv6Cidr = str diff --git a/src/auth0/management/types/network_acl_match_ipv_4_cidr.py b/src/auth0/management/types/network_acl_match_ipv_4_cidr.py deleted file mode 100644 index 8f83af1a..00000000 --- a/src/auth0/management/types/network_acl_match_ipv_4_cidr.py +++ /dev/null @@ -1,3 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -NetworkAclMatchIpv4Cidr = str diff --git a/src/auth0/management/types/network_acl_match_ipv_6_cidr.py b/src/auth0/management/types/network_acl_match_ipv_6_cidr.py deleted file mode 100644 index 0ca363cd..00000000 --- a/src/auth0/management/types/network_acl_match_ipv_6_cidr.py +++ /dev/null @@ -1,3 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -NetworkAclMatchIpv6Cidr = str diff --git a/src/auth0/management/types/network_acl_rule.py b/src/auth0/management/types/network_acl_rule.py deleted file mode 100644 index 769c011a..00000000 --- a/src/auth0/management/types/network_acl_rule.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .network_acl_action import NetworkAclAction -from .network_acl_match import NetworkAclMatch -from .network_acl_rule_match_all_enum import NetworkAclRuleMatchAllEnum -from .network_acl_rule_scope_enum import NetworkAclRuleScopeEnum - - -class NetworkAclRule(UniversalBaseModel): - action: NetworkAclAction - match: typing.Optional[NetworkAclMatch] = None - not_match: typing.Optional[NetworkAclMatch] = None - match_all: typing.Optional[NetworkAclRuleMatchAllEnum] = None - scope: NetworkAclRuleScopeEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/network_acl_rule_match_all_enum.py b/src/auth0/management/types/network_acl_rule_match_all_enum.py deleted file mode 100644 index db9e7caa..00000000 --- a/src/auth0/management/types/network_acl_rule_match_all_enum.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -NetworkAclRuleMatchAllEnum = bool -""" -When true, the rule unconditionally matches all traffic regardless of any other signals. Mutually exclusive with `match` and `not_match`. -""" diff --git a/src/auth0/management/types/network_acl_rule_scope_enum.py b/src/auth0/management/types/network_acl_rule_scope_enum.py deleted file mode 100644 index c2bb2117..00000000 --- a/src/auth0/management/types/network_acl_rule_scope_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -NetworkAclRuleScopeEnum = typing.Union[ - typing.Literal["management", "authentication", "tenant", "dynamic_client_registration"], typing.Any -] diff --git a/src/auth0/management/types/network_acls_response_content.py b/src/auth0/management/types/network_acls_response_content.py deleted file mode 100644 index ae6c9895..00000000 --- a/src/auth0/management/types/network_acls_response_content.py +++ /dev/null @@ -1,33 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .network_acl_rule import NetworkAclRule - - -class NetworkAclsResponseContent(UniversalBaseModel): - id: typing.Optional[str] = None - description: typing.Optional[str] = None - active: typing.Optional[bool] = None - priority: typing.Optional[float] = None - rule: typing.Optional[NetworkAclRule] = None - created_at: typing.Optional[str] = pydantic.Field(default=None) - """ - The timestamp when the Network ACL Configuration was created - """ - - updated_at: typing.Optional[str] = pydantic.Field(default=None) - """ - The timestamp when the Network ACL Configuration was last updated - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/not_found_error_body.py b/src/auth0/management/types/not_found_error_body.py deleted file mode 100644 index 9b16480c..00000000 --- a/src/auth0/management/types/not_found_error_body.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .not_found_error_body_error import NotFoundErrorBodyError - - -class NotFoundErrorBody(UniversalBaseModel): - message: str - status_code: typing_extensions.Annotated[str, FieldMetadata(alias="statusCode"), pydantic.Field(alias="statusCode")] - error: NotFoundErrorBodyError - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/not_found_error_body_error.py b/src/auth0/management/types/not_found_error_body_error.py deleted file mode 100644 index 99b09242..00000000 --- a/src/auth0/management/types/not_found_error_body_error.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -NotFoundErrorBodyError = typing.Union[typing.Literal["Not Found"], typing.Any] diff --git a/src/auth0/management/types/not_found_schema.py b/src/auth0/management/types/not_found_schema.py deleted file mode 100644 index f96985a3..00000000 --- a/src/auth0/management/types/not_found_schema.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .not_found_schema_error import NotFoundSchemaError - - -class NotFoundSchema(UniversalBaseModel): - """ - Not Found - """ - - message: str - status_code: typing_extensions.Annotated[str, FieldMetadata(alias="statusCode"), pydantic.Field(alias="statusCode")] - error: NotFoundSchemaError - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/not_found_schema_error.py b/src/auth0/management/types/not_found_schema_error.py deleted file mode 100644 index 9c3f4bee..00000000 --- a/src/auth0/management/types/not_found_schema_error.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -NotFoundSchemaError = typing.Union[typing.Literal["Not Found"], typing.Any] diff --git a/src/auth0/management/types/oauth_scope.py b/src/auth0/management/types/oauth_scope.py deleted file mode 100644 index 288dd2f5..00000000 --- a/src/auth0/management/types/oauth_scope.py +++ /dev/null @@ -1,268 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -OauthScope = typing.Union[ - typing.Literal[ - "create:actions", - "read:actions", - "update:actions", - "delete:actions", - "create:agents", - "read:agents", - "update:agents", - "delete:agents", - "read:anomaly_blocks", - "delete:anomaly_blocks", - "read:attack_protection", - "update:attack_protection", - "create:authentication_methods", - "read:authentication_methods", - "update:authentication_methods", - "delete:authentication_methods", - "read:branding", - "update:branding", - "delete:branding", - "create:client_credentials", - "read:client_credentials", - "update:client_credentials", - "delete:client_credentials", - "create:client_grants", - "read:client_grants", - "update:client_grants", - "delete:client_grants", - "read:client_keys", - "update:client_keys", - "read:client_summary", - "update:client_token_vault_privileged_access", - "create:clients", - "read:clients", - "update:clients", - "delete:clients", - "create:connection_profiles", - "read:connection_profiles", - "update:connection_profiles", - "delete:connection_profiles", - "create:connections", - "read:connections", - "update:connections", - "delete:connections", - "create:connections_keys", - "read:connections_keys", - "update:connections_keys", - "read:current_user", - "delete:current_user", - "create:current_user_device_credentials", - "delete:current_user_device_credentials", - "update:current_user_identities", - "update:current_user_metadata", - "create:custom_domains", - "read:custom_domains", - "update:custom_domains", - "delete:custom_domains", - "create:custom_signing_keys", - "read:custom_signing_keys", - "update:custom_signing_keys", - "delete:custom_signing_keys", - "read:device_credentials", - "delete:device_credentials", - "create:directory_provisionings", - "read:directory_provisionings", - "update:directory_provisionings", - "delete:directory_provisionings", - "create:email_provider", - "read:email_provider", - "update:email_provider", - "delete:email_provider", - "create:email_templates", - "read:email_templates", - "update:email_templates", - "create:encryption_keys", - "read:encryption_keys", - "update:encryption_keys", - "delete:encryption_keys", - "read:event_deliveries", - "update:event_deliveries", - "create:event_streams", - "read:event_streams", - "update:event_streams", - "delete:event_streams", - "read:events", - "create:experimentation", - "read:experimentation", - "update:experimentation", - "delete:experimentation", - "create:flows", - "read:flows", - "update:flows", - "delete:flows", - "read:flows_executions", - "delete:flows_executions", - "create:flows_vault_connections", - "read:flows_vault_connections", - "update:flows_vault_connections", - "delete:flows_vault_connections", - "create:forms", - "read:forms", - "update:forms", - "delete:forms", - "read:grants", - "delete:grants", - "read:group_members", - "create:group_roles", - "read:group_roles", - "delete:group_roles", - "read:groups", - "delete:groups", - "create:guardian_enrollment_tickets", - "read:guardian_enrollments", - "delete:guardian_enrollments", - "read:guardian_factors", - "update:guardian_factors", - "create:hooks", - "read:hooks", - "update:hooks", - "delete:hooks", - "create:log_streams", - "read:log_streams", - "update:log_streams", - "delete:log_streams", - "read:logs", - "read:logs_users", - "read:mfa_policies", - "update:mfa_policies", - "create:network_acls", - "read:network_acls", - "update:network_acls", - "delete:network_acls", - "create:organization_client_grants", - "read:organization_client_grants", - "delete:organization_client_grants", - "create:organization_connections", - "read:organization_connections", - "update:organization_connections", - "delete:organization_connections", - "create:organization_discovery_domains", - "read:organization_discovery_domains", - "update:organization_discovery_domains", - "delete:organization_discovery_domains", - "create:organization_group_roles", - "read:organization_group_roles", - "delete:organization_group_roles", - "read:organization_groups", - "create:organization_invitations", - "read:organization_invitations", - "delete:organization_invitations", - "read:organization_member_effective_roles", - "read:organization_member_role_source_groups", - "create:organization_member_roles", - "read:organization_member_roles", - "delete:organization_member_roles", - "create:organization_members", - "read:organization_members", - "delete:organization_members", - "create:organizations", - "read:organizations", - "update:organizations", - "delete:organizations", - "read:organizations_summary", - "create:phone_providers", - "read:phone_providers", - "update:phone_providers", - "delete:phone_providers", - "create:phone_templates", - "read:phone_templates", - "update:phone_templates", - "delete:phone_templates", - "read:prompts", - "update:prompts", - "create:rate_limit_policies", - "read:rate_limit_policies", - "update:rate_limit_policies", - "delete:rate_limit_policies", - "read:refresh_tokens", - "update:refresh_tokens", - "delete:refresh_tokens", - "create:resource_servers", - "read:resource_servers", - "update:resource_servers", - "delete:resource_servers", - "create:role_members", - "read:role_members", - "delete:role_members", - "create:roles", - "read:roles", - "update:roles", - "delete:roles", - "create:rules", - "read:rules", - "update:rules", - "delete:rules", - "read:rules_configs", - "update:rules_configs", - "delete:rules_configs", - "create:scim_config", - "read:scim_config", - "update:scim_config", - "delete:scim_config", - "create:scim_token", - "read:scim_token", - "delete:scim_token", - "read:self_service_profile_custom_texts", - "update:self_service_profile_custom_texts", - "create:self_service_profiles", - "read:self_service_profiles", - "update:self_service_profiles", - "delete:self_service_profiles", - "read:sessions", - "update:sessions", - "delete:sessions", - "create:signing_keys", - "read:signing_keys", - "update:signing_keys", - "create:sso_access_tickets", - "delete:sso_access_tickets", - "read:stats", - "read:tenant_settings", - "update:tenant_settings", - "create:token_exchange_profiles", - "read:token_exchange_profiles", - "update:token_exchange_profiles", - "delete:token_exchange_profiles", - "create:user_attribute_profiles", - "read:user_attribute_profiles", - "update:user_attribute_profiles", - "delete:user_attribute_profiles", - "read:user_effective_permissions", - "read:user_effective_roles", - "read:user_idp_tokens", - "read:user_permission_source_roles", - "read:user_role_source_groups", - "create:user_tickets", - "create:users", - "read:users", - "update:users", - "delete:users", - "update:users_app_metadata", - "create:vdcs_templates", - "read:vdcs_templates", - "update:vdcs_templates", - "delete:vdcs_templates", - "create:client_profiles", - "read:client_profiles", - "update:client_profiles", - "delete:client_profiles", - "create:organization_clients", - "read:organization_clients", - "update:organization_clients", - "delete:organization_clients", - "create:portals", - "read:portals", - "update:portals", - "delete:portals", - "create:network_acl_keys", - "read:network_acl_keys", - "delete:network_acl_keys", - ], - typing.Any, -] diff --git a/src/auth0/management/types/organization.py b/src/auth0/management/types/organization.py deleted file mode 100644 index 9c88a613..00000000 --- a/src/auth0/management/types/organization.py +++ /dev/null @@ -1,48 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .organization_branding import OrganizationBranding -from .organization_client_association import OrganizationClientAssociation -from .organization_metadata import OrganizationMetadata -from .organization_third_party_client_access_enum import OrganizationThirdPartyClientAccessEnum -from .token_quota import TokenQuota - - -class Organization(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - Organization identifier. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The name of this organization. - """ - - display_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Friendly name of this organization. - """ - - branding: typing.Optional[OrganizationBranding] = None - metadata: typing.Optional[OrganizationMetadata] = None - token_quota: typing.Optional[TokenQuota] = None - third_party_client_access: typing.Optional[OrganizationThirdPartyClientAccessEnum] = None - is_app_entitlement_active: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether app entitlement is active for this organization. - """ - - client: typing.Optional[OrganizationClientAssociation] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/organization_access_level_enum.py b/src/auth0/management/types/organization_access_level_enum.py deleted file mode 100644 index 9370b115..00000000 --- a/src/auth0/management/types/organization_access_level_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -OrganizationAccessLevelEnum = typing.Union[typing.Literal["none", "readonly", "limited", "full"], typing.Any] diff --git a/src/auth0/management/types/organization_access_level_enum_with_null.py b/src/auth0/management/types/organization_access_level_enum_with_null.py deleted file mode 100644 index cefdd95e..00000000 --- a/src/auth0/management/types/organization_access_level_enum_with_null.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -OrganizationAccessLevelEnumWithNull = typing.Union[typing.Literal["none", "readonly", "limited", "full"], typing.Any] diff --git a/src/auth0/management/types/organization_all_connection_post.py b/src/auth0/management/types/organization_all_connection_post.py deleted file mode 100644 index 95f06c38..00000000 --- a/src/auth0/management/types/organization_all_connection_post.py +++ /dev/null @@ -1,54 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .organization_access_level_enum import OrganizationAccessLevelEnum -from .organization_connection_information import OrganizationConnectionInformation -from .organization_member_access_level_enum import OrganizationMemberAccessLevelEnum - - -class OrganizationAllConnectionPost(UniversalBaseModel): - organization_connection_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of the connection in the scope of this organization. - """ - - assign_membership_on_login: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true, all users that log in with this connection will be automatically granted membership in the organization. When false, users must be granted membership in the organization before logging in with this connection. - """ - - show_as_button: typing.Optional[bool] = pydantic.Field(default=None) - """ - Determines whether a connection should be displayed on this organization’s login prompt. Only applicable for enterprise connections. Default: true. - """ - - is_signup_enabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - Determines whether organization signup should be enabled for this organization connection. Only applicable for database connections. Default: false. - """ - - organization_access_level: typing.Optional[OrganizationAccessLevelEnum] = None - organization_member_access_level: typing.Optional[OrganizationMemberAccessLevelEnum] = None - is_enabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether the connection is enabled for the organization. - """ - - connection_id: str = pydantic.Field() - """ - Connection identifier. - """ - - connection: typing.Optional[OrganizationConnectionInformation] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/organization_branding.py b/src/auth0/management/types/organization_branding.py deleted file mode 100644 index 251f5689..00000000 --- a/src/auth0/management/types/organization_branding.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .organization_branding_colors import OrganizationBrandingColors - - -class OrganizationBranding(UniversalBaseModel): - """ - Theme defines how to style the login pages. - """ - - logo_url: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of logo to display on login page. - """ - - colors: typing.Optional[OrganizationBrandingColors] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/organization_branding_colors.py b/src/auth0/management/types/organization_branding_colors.py deleted file mode 100644 index b21a3dde..00000000 --- a/src/auth0/management/types/organization_branding_colors.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class OrganizationBrandingColors(UniversalBaseModel): - """ - Color scheme used to customize the login pages. - """ - - primary: str = pydantic.Field() - """ - HEX Color for primary elements. - """ - - page_background: str = pydantic.Field() - """ - HEX Color for background. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/organization_client.py b/src/auth0/management/types/organization_client.py deleted file mode 100644 index 4307befa..00000000 --- a/src/auth0/management/types/organization_client.py +++ /dev/null @@ -1,30 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .organization_client_metadata import OrganizationClientMetadata - - -class OrganizationClient(UniversalBaseModel): - client_id: str = pydantic.Field() - """ - The identifier of the client associated with the organization. - """ - - use_for_member_access: bool = pydantic.Field() - """ - Whether this client is used for member access to the organization. - """ - - client: OrganizationClientMetadata - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/organization_client_association.py b/src/auth0/management/types/organization_client_association.py deleted file mode 100644 index 0ff428ce..00000000 --- a/src/auth0/management/types/organization_client_association.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class OrganizationClientAssociation(UniversalBaseModel): - """ - The organization's association with the client passed in the include_client_association_for query parameter. - """ - - use_for_member_access: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this client is used for member access to the organization. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/organization_client_grant.py b/src/auth0/management/types/organization_client_grant.py deleted file mode 100644 index 04df5158..00000000 --- a/src/auth0/management/types/organization_client_grant.py +++ /dev/null @@ -1,44 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .organization_usage_enum import OrganizationUsageEnum - - -class OrganizationClientGrant(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of the client grant. - """ - - client_id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of the client. - """ - - audience: typing.Optional[str] = pydantic.Field(default=None) - """ - The audience (API identifier) of this client grant - """ - - scope: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Scopes allowed for this client grant. - """ - - organization_usage: typing.Optional[OrganizationUsageEnum] = None - allow_any_organization: typing.Optional[bool] = pydantic.Field(default=None) - """ - If enabled, any organization can be used with this grant. If disabled (default), the grant must be explicitly assigned to the desired organizations. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/organization_client_metadata.py b/src/auth0/management/types/organization_client_metadata.py deleted file mode 100644 index 12dca5c7..00000000 --- a/src/auth0/management/types/organization_client_metadata.py +++ /dev/null @@ -1,49 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .organization_client_metadata_organization_usage_enum import OrganizationClientMetadataOrganizationUsageEnum - - -class OrganizationClientMetadata(UniversalBaseModel): - """ - Metadata about the associated client. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The name of the client. - """ - - app_type: typing.Optional[str] = pydantic.Field(default=None) - """ - The type of the client application. - """ - - logo_uri: typing.Optional[str] = pydantic.Field(default=None) - """ - The URI of the client logo. - """ - - is_first_party: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this client is a first-party client (true) or not (false). - """ - - grant_types: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - The grant types enabled for the client. - """ - - organization_usage: typing.Optional[OrganizationClientMetadataOrganizationUsageEnum] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/organization_client_metadata_organization_usage_enum.py b/src/auth0/management/types/organization_client_metadata_organization_usage_enum.py deleted file mode 100644 index 205ce00a..00000000 --- a/src/auth0/management/types/organization_client_metadata_organization_usage_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -OrganizationClientMetadataOrganizationUsageEnum = typing.Union[typing.Literal["deny", "allow", "require"], typing.Any] diff --git a/src/auth0/management/types/organization_connection.py b/src/auth0/management/types/organization_connection.py deleted file mode 100644 index 21789707..00000000 --- a/src/auth0/management/types/organization_connection.py +++ /dev/null @@ -1,40 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .organization_connection_information import OrganizationConnectionInformation - - -class OrganizationConnection(UniversalBaseModel): - connection_id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of the connection. - """ - - assign_membership_on_login: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true, all users that log in with this connection will be automatically granted membership in the organization. When false, users must be granted membership in the organization before logging in with this connection. - """ - - show_as_button: typing.Optional[bool] = pydantic.Field(default=None) - """ - Determines whether a connection should be displayed on this organization’s login prompt. Only applicable for enterprise connections. Default: true. - """ - - is_signup_enabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - Determines whether organization signup should be enabled for this organization connection. Only applicable for database connections. Default: false. - """ - - connection: typing.Optional[OrganizationConnectionInformation] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/organization_connection_information.py b/src/auth0/management/types/organization_connection_information.py deleted file mode 100644 index e71d9a67..00000000 --- a/src/auth0/management/types/organization_connection_information.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class OrganizationConnectionInformation(UniversalBaseModel): - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The name of the enabled connection. - """ - - strategy: typing.Optional[str] = pydantic.Field(default=None) - """ - The strategy of the enabled connection. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/organization_discovery_domain.py b/src/auth0/management/types/organization_discovery_domain.py deleted file mode 100644 index 0e432341..00000000 --- a/src/auth0/management/types/organization_discovery_domain.py +++ /dev/null @@ -1,44 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .organization_discovery_domain_status import OrganizationDiscoveryDomainStatus - - -class OrganizationDiscoveryDomain(UniversalBaseModel): - id: str = pydantic.Field() - """ - Organization discovery domain identifier. - """ - - domain: str = pydantic.Field() - """ - The domain name to associate with the organization e.g. acme.com. - """ - - status: OrganizationDiscoveryDomainStatus - use_for_organization_discovery: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether this domain should be used for organization discovery. - """ - - verification_txt: str = pydantic.Field() - """ - A unique token generated for the discovery domain. This must be placed in a DNS TXT record at the location specified by the verification_host field to prove domain ownership. - """ - - verification_host: str = pydantic.Field() - """ - The full domain where the TXT record should be added. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/organization_discovery_domain_status.py b/src/auth0/management/types/organization_discovery_domain_status.py deleted file mode 100644 index f6515872..00000000 --- a/src/auth0/management/types/organization_discovery_domain_status.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -OrganizationDiscoveryDomainStatus = typing.Union[typing.Literal["pending", "verified"], typing.Any] diff --git a/src/auth0/management/types/organization_enabled_connection.py b/src/auth0/management/types/organization_enabled_connection.py deleted file mode 100644 index 3c1d035d..00000000 --- a/src/auth0/management/types/organization_enabled_connection.py +++ /dev/null @@ -1,40 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .organization_connection_information import OrganizationConnectionInformation - - -class OrganizationEnabledConnection(UniversalBaseModel): - connection_id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of the connection. - """ - - assign_membership_on_login: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true, all users that log in with this connection will be automatically granted membership in the organization. When false, users must be granted membership in the organization before logging in with this connection. - """ - - show_as_button: typing.Optional[bool] = pydantic.Field(default=None) - """ - Determines whether a connection should be displayed on this organization’s login prompt. Only applicable for enterprise connections. Default: true. - """ - - is_signup_enabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - Determines whether organization signup should be enabled for this organization connection. Only applicable for database connections. Default: false. - """ - - connection: typing.Optional[OrganizationConnectionInformation] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/organization_invitation.py b/src/auth0/management/types/organization_invitation.py deleted file mode 100644 index cf2adbf0..00000000 --- a/src/auth0/management/types/organization_invitation.py +++ /dev/null @@ -1,71 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .app_metadata import AppMetadata -from .organization_invitation_invitee import OrganizationInvitationInvitee -from .organization_invitation_inviter import OrganizationInvitationInviter -from .user_metadata import UserMetadata - - -class OrganizationInvitation(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - The id of the user invitation. - """ - - organization_id: typing.Optional[str] = pydantic.Field(default=None) - """ - Organization identifier. - """ - - inviter: typing.Optional[OrganizationInvitationInviter] = None - invitee: typing.Optional[OrganizationInvitationInvitee] = None - invitation_url: typing.Optional[str] = pydantic.Field(default=None) - """ - The invitation url to be send to the invitee. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The ISO 8601 formatted timestamp representing the creation time of the invitation. - """ - - expires_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The ISO 8601 formatted timestamp representing the expiration time of the invitation. - """ - - client_id: typing.Optional[str] = pydantic.Field(default=None) - """ - Auth0 client ID. Used to resolve the application's login initiation endpoint. - """ - - connection_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The id of the connection to force invitee to authenticate with. - """ - - app_metadata: typing.Optional[AppMetadata] = None - user_metadata: typing.Optional[UserMetadata] = None - roles: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - List of roles IDs to associated with the user. - """ - - ticket_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The id of the invitation ticket - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/organization_invitation_invitee.py b/src/auth0/management/types/organization_invitation_invitee.py deleted file mode 100644 index 1876174b..00000000 --- a/src/auth0/management/types/organization_invitation_invitee.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class OrganizationInvitationInvitee(UniversalBaseModel): - email: str = pydantic.Field() - """ - The invitee's email. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/organization_invitation_inviter.py b/src/auth0/management/types/organization_invitation_inviter.py deleted file mode 100644 index f73da984..00000000 --- a/src/auth0/management/types/organization_invitation_inviter.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class OrganizationInvitationInviter(UniversalBaseModel): - name: str = pydantic.Field() - """ - The inviter's name. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/organization_member.py b/src/auth0/management/types/organization_member.py deleted file mode 100644 index 4e14aa4b..00000000 --- a/src/auth0/management/types/organization_member.py +++ /dev/null @@ -1,40 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .organization_member_role import OrganizationMemberRole - - -class OrganizationMember(UniversalBaseModel): - user_id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of this user. - """ - - picture: typing.Optional[str] = pydantic.Field(default=None) - """ - URL to a picture for this user. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of this user. - """ - - email: typing.Optional[str] = pydantic.Field(default=None) - """ - Email address of this user. - """ - - roles: typing.Optional[typing.List[OrganizationMemberRole]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/organization_member_access_level_enum.py b/src/auth0/management/types/organization_member_access_level_enum.py deleted file mode 100644 index c4f3b0f1..00000000 --- a/src/auth0/management/types/organization_member_access_level_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -OrganizationMemberAccessLevelEnum = typing.Union[typing.Literal["none", "readonly", "limited", "full"], typing.Any] diff --git a/src/auth0/management/types/organization_member_access_level_enum_with_null.py b/src/auth0/management/types/organization_member_access_level_enum_with_null.py deleted file mode 100644 index b5bae1bd..00000000 --- a/src/auth0/management/types/organization_member_access_level_enum_with_null.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -OrganizationMemberAccessLevelEnumWithNull = typing.Union[ - typing.Literal["none", "readonly", "limited", "full"], typing.Any -] diff --git a/src/auth0/management/types/organization_member_effective_role.py b/src/auth0/management/types/organization_member_effective_role.py deleted file mode 100644 index b512aed4..00000000 --- a/src/auth0/management/types/organization_member_effective_role.py +++ /dev/null @@ -1,38 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .organization_member_effective_role_source import OrganizationMemberEffectiveRoleSource - - -class OrganizationMemberEffectiveRole(UniversalBaseModel): - id: str = pydantic.Field() - """ - Role ID - """ - - name: str = pydantic.Field() - """ - Role name - """ - - description: str = pydantic.Field() - """ - Role description - """ - - sources: typing.List[OrganizationMemberEffectiveRoleSource] = pydantic.Field() - """ - Sources of the role assignment (direct or through group membership) - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/organization_member_effective_role_source.py b/src/auth0/management/types/organization_member_effective_role_source.py deleted file mode 100644 index 5f08b7b7..00000000 --- a/src/auth0/management/types/organization_member_effective_role_source.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -OrganizationMemberEffectiveRoleSource = typing.Union[typing.Literal["direct", "groups"], typing.Any] diff --git a/src/auth0/management/types/organization_member_role.py b/src/auth0/management/types/organization_member_role.py deleted file mode 100644 index 033655ae..00000000 --- a/src/auth0/management/types/organization_member_role.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class OrganizationMemberRole(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID for this role. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of this role. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/organization_metadata.py b/src/auth0/management/types/organization_metadata.py deleted file mode 100644 index 1442d676..00000000 --- a/src/auth0/management/types/organization_metadata.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -OrganizationMetadata = typing.Dict[str, typing.Optional[str]] -""" -Metadata associated with the organization, in the form of an object with string values (max 255 chars). Maximum of 25 metadata properties allowed. -""" diff --git a/src/auth0/management/types/organization_sort_field_enum.py b/src/auth0/management/types/organization_sort_field_enum.py deleted file mode 100644 index 5aef175b..00000000 --- a/src/auth0/management/types/organization_sort_field_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -OrganizationSortFieldEnum = typing.Union[typing.Literal["name", "display_name", "created_at"], typing.Any] diff --git a/src/auth0/management/types/organization_third_party_client_access_enum.py b/src/auth0/management/types/organization_third_party_client_access_enum.py deleted file mode 100644 index a30613a6..00000000 --- a/src/auth0/management/types/organization_third_party_client_access_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -OrganizationThirdPartyClientAccessEnum = typing.Union[typing.Literal["block", "allow"], typing.Any] diff --git a/src/auth0/management/types/organization_usage_enum.py b/src/auth0/management/types/organization_usage_enum.py deleted file mode 100644 index db8df02c..00000000 --- a/src/auth0/management/types/organization_usage_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -OrganizationUsageEnum = typing.Union[typing.Literal["deny", "allow", "require"], typing.Any] diff --git a/src/auth0/management/types/page_component.py b/src/auth0/management/types/page_component.py deleted file mode 100644 index 1f739fda..00000000 --- a/src/auth0/management/types/page_component.py +++ /dev/null @@ -1,206 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .page_component_auth_0_form_config import PageComponentAuth0FormConfig -from .page_component_auth_0_media_image_config import PageComponentAuth0MediaImageConfig -from .page_component_auth_0_my_account_mfa_management_config import PageComponentAuth0MyAccountMfaManagementConfig -from .page_component_auth_0_my_account_passkey_management_config import ( - PageComponentAuth0MyAccountPasskeyManagementConfig, -) -from .page_component_auth_0_my_organization_details_edit_config import PageComponentAuth0MyOrganizationDetailsEditConfig -from .page_component_auth_0_my_organization_domain_table_config import PageComponentAuth0MyOrganizationDomainTableConfig -from .page_component_auth_0_my_organization_member_management_config import ( - PageComponentAuth0MyOrganizationMemberManagementConfig, -) -from .page_component_auth_0_structure_section_config import PageComponentAuth0StructureSectionConfig -from .page_component_auth_0_structure_separator_config import PageComponentAuth0StructureSeparatorConfig -from .page_component_auth_0_typography_heading_config import PageComponentAuth0TypographyHeadingConfig -from .page_component_auth_0_typography_rich_text_config import PageComponentAuth0TypographyRichTextConfig - - -class PageComponent_PageComponentAuth0Form(UniversalBaseModel): - type: typing.Literal["page:component:auth0:form"] = "page:component:auth0:form" - config: PageComponentAuth0FormConfig - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -class PageComponent_PageComponentAuth0TypographyHeading(UniversalBaseModel): - type: typing.Literal["page:component:auth0:typography:heading"] = "page:component:auth0:typography:heading" - config: PageComponentAuth0TypographyHeadingConfig - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -class PageComponent_PageComponentAuth0MediaImage(UniversalBaseModel): - type: typing.Literal["page:component:auth0:media:image"] = "page:component:auth0:media:image" - config: PageComponentAuth0MediaImageConfig - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -class PageComponent_PageComponentAuth0TypographyRichText(UniversalBaseModel): - type: typing.Literal["page:component:auth0:typography:rich_text"] = "page:component:auth0:typography:rich_text" - config: PageComponentAuth0TypographyRichTextConfig - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -class PageComponent_PageComponentAuth0StructureSection(UniversalBaseModel): - type: typing.Literal["page:component:auth0:structure:section"] = "page:component:auth0:structure:section" - config: PageComponentAuth0StructureSectionConfig - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -class PageComponent_PageComponentAuth0StructureSeparator(UniversalBaseModel): - type: typing.Literal["page:component:auth0:structure:separator"] = "page:component:auth0:structure:separator" - config: typing.Optional[PageComponentAuth0StructureSeparatorConfig] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -class PageComponent_PageComponentAuth0MyOrganizationDomainTable(UniversalBaseModel): - type: typing.Literal["page:component:auth0:my_organization:domain_table"] = ( - "page:component:auth0:my_organization:domain_table" - ) - config: typing.Optional[PageComponentAuth0MyOrganizationDomainTableConfig] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -class PageComponent_PageComponentAuth0MyOrganizationMemberManagement(UniversalBaseModel): - type: typing.Literal["page:component:auth0:my_organization:member_management"] = ( - "page:component:auth0:my_organization:member_management" - ) - config: typing.Optional[PageComponentAuth0MyOrganizationMemberManagementConfig] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -class PageComponent_PageComponentAuth0MyOrganizationDetailsEdit(UniversalBaseModel): - type: typing.Literal["page:component:auth0:my_organization:details_edit"] = ( - "page:component:auth0:my_organization:details_edit" - ) - config: typing.Optional[PageComponentAuth0MyOrganizationDetailsEditConfig] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -class PageComponent_PageComponentAuth0MyAccountPasskeyManagement(UniversalBaseModel): - type: typing.Literal["page:component:auth0:my_account:passkey_management"] = ( - "page:component:auth0:my_account:passkey_management" - ) - config: typing.Optional[PageComponentAuth0MyAccountPasskeyManagementConfig] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -class PageComponent_PageComponentAuth0MyAccountMfaManagement(UniversalBaseModel): - type: typing.Literal["page:component:auth0:my_account:mfa_management"] = ( - "page:component:auth0:my_account:mfa_management" - ) - config: typing.Optional[PageComponentAuth0MyAccountMfaManagementConfig] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -PageComponent = typing_extensions.Annotated[ - typing.Union[ - PageComponent_PageComponentAuth0Form, - PageComponent_PageComponentAuth0TypographyHeading, - PageComponent_PageComponentAuth0MediaImage, - PageComponent_PageComponentAuth0TypographyRichText, - PageComponent_PageComponentAuth0StructureSection, - PageComponent_PageComponentAuth0StructureSeparator, - PageComponent_PageComponentAuth0MyOrganizationDomainTable, - PageComponent_PageComponentAuth0MyOrganizationMemberManagement, - PageComponent_PageComponentAuth0MyOrganizationDetailsEdit, - PageComponent_PageComponentAuth0MyAccountPasskeyManagement, - PageComponent_PageComponentAuth0MyAccountMfaManagement, - ], - pydantic.Field(discriminator="type"), -] diff --git a/src/auth0/management/types/page_component_auth_0_form.py b/src/auth0/management/types/page_component_auth_0_form.py deleted file mode 100644 index 41f2c7d4..00000000 --- a/src/auth0/management/types/page_component_auth_0_form.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .page_component_auth_0_form_config import PageComponentAuth0FormConfig - - -class PageComponentAuth0Form(UniversalBaseModel): - config: PageComponentAuth0FormConfig - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/page_component_auth_0_form_config.py b/src/auth0/management/types/page_component_auth_0_form_config.py deleted file mode 100644 index 61b90487..00000000 --- a/src/auth0/management/types/page_component_auth_0_form_config.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class PageComponentAuth0FormConfig(UniversalBaseModel): - form_id: str = pydantic.Field() - """ - The identifier of the form you want to render. - """ - - completion_message: str = pydantic.Field() - """ - Toast message displayed after successful form submission. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/page_component_auth_0_media_image.py b/src/auth0/management/types/page_component_auth_0_media_image.py deleted file mode 100644 index 4fdf0cc3..00000000 --- a/src/auth0/management/types/page_component_auth_0_media_image.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .page_component_auth_0_media_image_config import PageComponentAuth0MediaImageConfig - - -class PageComponentAuth0MediaImage(UniversalBaseModel): - config: PageComponentAuth0MediaImageConfig - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/page_component_auth_0_media_image_config.py b/src/auth0/management/types/page_component_auth_0_media_image_config.py deleted file mode 100644 index 6d21d887..00000000 --- a/src/auth0/management/types/page_component_auth_0_media_image_config.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .position import Position - - -class PageComponentAuth0MediaImageConfig(UniversalBaseModel): - src: str = pydantic.Field() - """ - URL of the image to display. - """ - - position: typing.Optional[Position] = None - height: typing.Optional[int] = pydantic.Field(default=None) - """ - Height of the image in pixels. Width scales automatically to preserve aspect ratio. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/page_component_auth_0_my_account_mfa_management.py b/src/auth0/management/types/page_component_auth_0_my_account_mfa_management.py deleted file mode 100644 index b9e11b09..00000000 --- a/src/auth0/management/types/page_component_auth_0_my_account_mfa_management.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .page_component_auth_0_my_account_mfa_management_config import PageComponentAuth0MyAccountMfaManagementConfig - - -class PageComponentAuth0MyAccountMfaManagement(UniversalBaseModel): - config: typing.Optional[PageComponentAuth0MyAccountMfaManagementConfig] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/page_component_auth_0_my_account_mfa_management_config.py b/src/auth0/management/types/page_component_auth_0_my_account_mfa_management_config.py deleted file mode 100644 index 70f877ac..00000000 --- a/src/auth0/management/types/page_component_auth_0_my_account_mfa_management_config.py +++ /dev/null @@ -1,17 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class PageComponentAuth0MyAccountMfaManagementConfig(UniversalBaseModel): - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/page_component_auth_0_my_account_passkey_management.py b/src/auth0/management/types/page_component_auth_0_my_account_passkey_management.py deleted file mode 100644 index 78cdb119..00000000 --- a/src/auth0/management/types/page_component_auth_0_my_account_passkey_management.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .page_component_auth_0_my_account_passkey_management_config import ( - PageComponentAuth0MyAccountPasskeyManagementConfig, -) - - -class PageComponentAuth0MyAccountPasskeyManagement(UniversalBaseModel): - config: typing.Optional[PageComponentAuth0MyAccountPasskeyManagementConfig] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/page_component_auth_0_my_account_passkey_management_config.py b/src/auth0/management/types/page_component_auth_0_my_account_passkey_management_config.py deleted file mode 100644 index f27b3520..00000000 --- a/src/auth0/management/types/page_component_auth_0_my_account_passkey_management_config.py +++ /dev/null @@ -1,17 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class PageComponentAuth0MyAccountPasskeyManagementConfig(UniversalBaseModel): - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/page_component_auth_0_my_organization_details_edit.py b/src/auth0/management/types/page_component_auth_0_my_organization_details_edit.py deleted file mode 100644 index 962cdd45..00000000 --- a/src/auth0/management/types/page_component_auth_0_my_organization_details_edit.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .page_component_auth_0_my_organization_details_edit_config import PageComponentAuth0MyOrganizationDetailsEditConfig - - -class PageComponentAuth0MyOrganizationDetailsEdit(UniversalBaseModel): - config: typing.Optional[PageComponentAuth0MyOrganizationDetailsEditConfig] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/page_component_auth_0_my_organization_details_edit_config.py b/src/auth0/management/types/page_component_auth_0_my_organization_details_edit_config.py deleted file mode 100644 index 0fbd7601..00000000 --- a/src/auth0/management/types/page_component_auth_0_my_organization_details_edit_config.py +++ /dev/null @@ -1,17 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class PageComponentAuth0MyOrganizationDetailsEditConfig(UniversalBaseModel): - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/page_component_auth_0_my_organization_domain_table.py b/src/auth0/management/types/page_component_auth_0_my_organization_domain_table.py deleted file mode 100644 index 83240b3b..00000000 --- a/src/auth0/management/types/page_component_auth_0_my_organization_domain_table.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .page_component_auth_0_my_organization_domain_table_config import PageComponentAuth0MyOrganizationDomainTableConfig - - -class PageComponentAuth0MyOrganizationDomainTable(UniversalBaseModel): - config: typing.Optional[PageComponentAuth0MyOrganizationDomainTableConfig] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/page_component_auth_0_my_organization_domain_table_config.py b/src/auth0/management/types/page_component_auth_0_my_organization_domain_table_config.py deleted file mode 100644 index 8f514a79..00000000 --- a/src/auth0/management/types/page_component_auth_0_my_organization_domain_table_config.py +++ /dev/null @@ -1,17 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class PageComponentAuth0MyOrganizationDomainTableConfig(UniversalBaseModel): - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/page_component_auth_0_my_organization_member_management.py b/src/auth0/management/types/page_component_auth_0_my_organization_member_management.py deleted file mode 100644 index 5973fc09..00000000 --- a/src/auth0/management/types/page_component_auth_0_my_organization_member_management.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .page_component_auth_0_my_organization_member_management_config import ( - PageComponentAuth0MyOrganizationMemberManagementConfig, -) - - -class PageComponentAuth0MyOrganizationMemberManagement(UniversalBaseModel): - config: typing.Optional[PageComponentAuth0MyOrganizationMemberManagementConfig] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/page_component_auth_0_my_organization_member_management_config.py b/src/auth0/management/types/page_component_auth_0_my_organization_member_management_config.py deleted file mode 100644 index f0e182b1..00000000 --- a/src/auth0/management/types/page_component_auth_0_my_organization_member_management_config.py +++ /dev/null @@ -1,17 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class PageComponentAuth0MyOrganizationMemberManagementConfig(UniversalBaseModel): - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/page_component_auth_0_structure_section.py b/src/auth0/management/types/page_component_auth_0_structure_section.py deleted file mode 100644 index c2d23a55..00000000 --- a/src/auth0/management/types/page_component_auth_0_structure_section.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .page_component_auth_0_structure_section_config import PageComponentAuth0StructureSectionConfig - - -class PageComponentAuth0StructureSection(UniversalBaseModel): - config: PageComponentAuth0StructureSectionConfig - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/page_component_auth_0_structure_section_config.py b/src/auth0/management/types/page_component_auth_0_structure_section_config.py deleted file mode 100644 index 262cdd12..00000000 --- a/src/auth0/management/types/page_component_auth_0_structure_section_config.py +++ /dev/null @@ -1,35 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .page_component_auth_0_structure_section_variant_enum import PageComponentAuth0StructureSectionVariantEnum -from .page_component_no_children import PageComponentNoChildren - - -class PageComponentAuth0StructureSectionConfig(UniversalBaseModel): - title: typing.Optional[str] = pydantic.Field(default=None) - """ - Heading displayed at the top of the section. - """ - - description: typing.Optional[str] = pydantic.Field(default=None) - """ - Optional description displayed below the title. - """ - - variant: PageComponentAuth0StructureSectionVariantEnum - children: typing.List[PageComponentNoChildren] = pydantic.Field() - """ - Components to render inside the section. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/page_component_auth_0_structure_section_variant_enum.py b/src/auth0/management/types/page_component_auth_0_structure_section_variant_enum.py deleted file mode 100644 index 41212b22..00000000 --- a/src/auth0/management/types/page_component_auth_0_structure_section_variant_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -PageComponentAuth0StructureSectionVariantEnum = typing.Union[typing.Literal["card", "none"], typing.Any] diff --git a/src/auth0/management/types/page_component_auth_0_structure_separator.py b/src/auth0/management/types/page_component_auth_0_structure_separator.py deleted file mode 100644 index 5d94427b..00000000 --- a/src/auth0/management/types/page_component_auth_0_structure_separator.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .page_component_auth_0_structure_separator_config import PageComponentAuth0StructureSeparatorConfig - - -class PageComponentAuth0StructureSeparator(UniversalBaseModel): - config: typing.Optional[PageComponentAuth0StructureSeparatorConfig] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/page_component_auth_0_structure_separator_config.py b/src/auth0/management/types/page_component_auth_0_structure_separator_config.py deleted file mode 100644 index ea8d3c59..00000000 --- a/src/auth0/management/types/page_component_auth_0_structure_separator_config.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .page_component_auth_0_structure_separator_variant_enum import PageComponentAuth0StructureSeparatorVariantEnum - - -class PageComponentAuth0StructureSeparatorConfig(UniversalBaseModel): - variant: typing.Optional[PageComponentAuth0StructureSeparatorVariantEnum] = None - text: typing.Optional[str] = pydantic.Field(default=None) - """ - Optional label centered within the separator line (ignored when variant is "none"). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/page_component_auth_0_structure_separator_variant_enum.py b/src/auth0/management/types/page_component_auth_0_structure_separator_variant_enum.py deleted file mode 100644 index bbfe06b6..00000000 --- a/src/auth0/management/types/page_component_auth_0_structure_separator_variant_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -PageComponentAuth0StructureSeparatorVariantEnum = typing.Union[typing.Literal["dashed", "none", "solid"], typing.Any] diff --git a/src/auth0/management/types/page_component_auth_0_typography_heading.py b/src/auth0/management/types/page_component_auth_0_typography_heading.py deleted file mode 100644 index d6329d10..00000000 --- a/src/auth0/management/types/page_component_auth_0_typography_heading.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .page_component_auth_0_typography_heading_config import PageComponentAuth0TypographyHeadingConfig - - -class PageComponentAuth0TypographyHeading(UniversalBaseModel): - config: PageComponentAuth0TypographyHeadingConfig - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/page_component_auth_0_typography_heading_config.py b/src/auth0/management/types/page_component_auth_0_typography_heading_config.py deleted file mode 100644 index 89fcd0a6..00000000 --- a/src/auth0/management/types/page_component_auth_0_typography_heading_config.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class PageComponentAuth0TypographyHeadingConfig(UniversalBaseModel): - title: str = pydantic.Field() - """ - Heading displayed. - """ - - description: typing.Optional[str] = pydantic.Field(default=None) - """ - Optional description displayed below the title. Supports basic HTML formatting: links, bold, italic, and underline. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/page_component_auth_0_typography_rich_text.py b/src/auth0/management/types/page_component_auth_0_typography_rich_text.py deleted file mode 100644 index 8595ea71..00000000 --- a/src/auth0/management/types/page_component_auth_0_typography_rich_text.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .page_component_auth_0_typography_rich_text_config import PageComponentAuth0TypographyRichTextConfig - - -class PageComponentAuth0TypographyRichText(UniversalBaseModel): - config: PageComponentAuth0TypographyRichTextConfig - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/page_component_auth_0_typography_rich_text_config.py b/src/auth0/management/types/page_component_auth_0_typography_rich_text_config.py deleted file mode 100644 index cefce21f..00000000 --- a/src/auth0/management/types/page_component_auth_0_typography_rich_text_config.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class PageComponentAuth0TypographyRichTextConfig(UniversalBaseModel): - content: str = pydantic.Field() - """ - HTML content to render. Supports headings, bold, italic, underline, links, text alignment, and lists. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/page_component_no_children.py b/src/auth0/management/types/page_component_no_children.py deleted file mode 100644 index 0e2280fe..00000000 --- a/src/auth0/management/types/page_component_no_children.py +++ /dev/null @@ -1,190 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .page_component_auth_0_form_config import PageComponentAuth0FormConfig -from .page_component_auth_0_media_image_config import PageComponentAuth0MediaImageConfig -from .page_component_auth_0_my_account_mfa_management_config import PageComponentAuth0MyAccountMfaManagementConfig -from .page_component_auth_0_my_account_passkey_management_config import ( - PageComponentAuth0MyAccountPasskeyManagementConfig, -) -from .page_component_auth_0_my_organization_details_edit_config import PageComponentAuth0MyOrganizationDetailsEditConfig -from .page_component_auth_0_my_organization_domain_table_config import PageComponentAuth0MyOrganizationDomainTableConfig -from .page_component_auth_0_my_organization_member_management_config import ( - PageComponentAuth0MyOrganizationMemberManagementConfig, -) -from .page_component_auth_0_structure_separator_config import PageComponentAuth0StructureSeparatorConfig -from .page_component_auth_0_typography_heading_config import PageComponentAuth0TypographyHeadingConfig -from .page_component_auth_0_typography_rich_text_config import PageComponentAuth0TypographyRichTextConfig - - -class PageComponentNoChildren_PageComponentAuth0Form(UniversalBaseModel): - type: typing.Literal["page:component:auth0:form"] = "page:component:auth0:form" - config: PageComponentAuth0FormConfig - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -class PageComponentNoChildren_PageComponentAuth0TypographyHeading(UniversalBaseModel): - type: typing.Literal["page:component:auth0:typography:heading"] = "page:component:auth0:typography:heading" - config: PageComponentAuth0TypographyHeadingConfig - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -class PageComponentNoChildren_PageComponentAuth0MediaImage(UniversalBaseModel): - type: typing.Literal["page:component:auth0:media:image"] = "page:component:auth0:media:image" - config: PageComponentAuth0MediaImageConfig - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -class PageComponentNoChildren_PageComponentAuth0TypographyRichText(UniversalBaseModel): - type: typing.Literal["page:component:auth0:typography:rich_text"] = "page:component:auth0:typography:rich_text" - config: PageComponentAuth0TypographyRichTextConfig - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -class PageComponentNoChildren_PageComponentAuth0StructureSeparator(UniversalBaseModel): - type: typing.Literal["page:component:auth0:structure:separator"] = "page:component:auth0:structure:separator" - config: typing.Optional[PageComponentAuth0StructureSeparatorConfig] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -class PageComponentNoChildren_PageComponentAuth0MyOrganizationDomainTable(UniversalBaseModel): - type: typing.Literal["page:component:auth0:my_organization:domain_table"] = ( - "page:component:auth0:my_organization:domain_table" - ) - config: typing.Optional[PageComponentAuth0MyOrganizationDomainTableConfig] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -class PageComponentNoChildren_PageComponentAuth0MyOrganizationMemberManagement(UniversalBaseModel): - type: typing.Literal["page:component:auth0:my_organization:member_management"] = ( - "page:component:auth0:my_organization:member_management" - ) - config: typing.Optional[PageComponentAuth0MyOrganizationMemberManagementConfig] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -class PageComponentNoChildren_PageComponentAuth0MyOrganizationDetailsEdit(UniversalBaseModel): - type: typing.Literal["page:component:auth0:my_organization:details_edit"] = ( - "page:component:auth0:my_organization:details_edit" - ) - config: typing.Optional[PageComponentAuth0MyOrganizationDetailsEditConfig] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -class PageComponentNoChildren_PageComponentAuth0MyAccountPasskeyManagement(UniversalBaseModel): - type: typing.Literal["page:component:auth0:my_account:passkey_management"] = ( - "page:component:auth0:my_account:passkey_management" - ) - config: typing.Optional[PageComponentAuth0MyAccountPasskeyManagementConfig] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -class PageComponentNoChildren_PageComponentAuth0MyAccountMfaManagement(UniversalBaseModel): - type: typing.Literal["page:component:auth0:my_account:mfa_management"] = ( - "page:component:auth0:my_account:mfa_management" - ) - config: typing.Optional[PageComponentAuth0MyAccountMfaManagementConfig] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -PageComponentNoChildren = typing_extensions.Annotated[ - typing.Union[ - PageComponentNoChildren_PageComponentAuth0Form, - PageComponentNoChildren_PageComponentAuth0TypographyHeading, - PageComponentNoChildren_PageComponentAuth0MediaImage, - PageComponentNoChildren_PageComponentAuth0TypographyRichText, - PageComponentNoChildren_PageComponentAuth0StructureSeparator, - PageComponentNoChildren_PageComponentAuth0MyOrganizationDomainTable, - PageComponentNoChildren_PageComponentAuth0MyOrganizationMemberManagement, - PageComponentNoChildren_PageComponentAuth0MyOrganizationDetailsEdit, - PageComponentNoChildren_PageComponentAuth0MyAccountPasskeyManagement, - PageComponentNoChildren_PageComponentAuth0MyAccountMfaManagement, - ], - pydantic.Field(discriminator="type"), -] diff --git a/src/auth0/management/types/page_slug.py b/src/auth0/management/types/page_slug.py deleted file mode 100644 index aed64965..00000000 --- a/src/auth0/management/types/page_slug.py +++ /dev/null @@ -1,3 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -PageSlug = str diff --git a/src/auth0/management/types/partial_groups_enum.py b/src/auth0/management/types/partial_groups_enum.py deleted file mode 100644 index 68babfc2..00000000 --- a/src/auth0/management/types/partial_groups_enum.py +++ /dev/null @@ -1,19 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -PartialGroupsEnum = typing.Union[ - typing.Literal[ - "login", - "login-id", - "login-password", - "login-passwordless", - "signup", - "signup-id", - "signup-password", - "customized-consent", - "passkeys", - "confirmation", - ], - typing.Any, -] diff --git a/src/auth0/management/types/partial_phone_template_content.py b/src/auth0/management/types/partial_phone_template_content.py deleted file mode 100644 index ce22ea88..00000000 --- a/src/auth0/management/types/partial_phone_template_content.py +++ /dev/null @@ -1,33 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .phone_template_body import PhoneTemplateBody - - -class PartialPhoneTemplateContent(UniversalBaseModel): - from_: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="from"), - pydantic.Field( - alias="from", description="Default phone number to be used as 'from' when sending a phone notification" - ), - ] = None - """ - Default phone number to be used as 'from' when sending a phone notification - """ - - body: typing.Optional[PhoneTemplateBody] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/password_character_type_enum.py b/src/auth0/management/types/password_character_type_enum.py deleted file mode 100644 index 71903639..00000000 --- a/src/auth0/management/types/password_character_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -PasswordCharacterTypeEnum = typing.Union[typing.Literal["uppercase", "lowercase", "number", "special"], typing.Any] diff --git a/src/auth0/management/types/password_character_type_rule_policy_enum.py b/src/auth0/management/types/password_character_type_rule_policy_enum.py deleted file mode 100644 index 5822ebdf..00000000 --- a/src/auth0/management/types/password_character_type_rule_policy_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -PasswordCharacterTypeRulePolicyEnum = typing.Union[typing.Literal["all", "three_of_four"], typing.Any] diff --git a/src/auth0/management/types/password_default_dictionaries_enum.py b/src/auth0/management/types/password_default_dictionaries_enum.py deleted file mode 100644 index e4f796dd..00000000 --- a/src/auth0/management/types/password_default_dictionaries_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -PasswordDefaultDictionariesEnum = typing.Union[typing.Literal["en_10k", "en_100k"], typing.Any] diff --git a/src/auth0/management/types/password_dictionary_match_type_enum.py b/src/auth0/management/types/password_dictionary_match_type_enum.py deleted file mode 100644 index cb30f57d..00000000 --- a/src/auth0/management/types/password_dictionary_match_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -PasswordDictionaryMatchTypeEnum = typing.Union[typing.Literal["exact", "substring"], typing.Any] diff --git a/src/auth0/management/types/password_identical_characters_policy_enum.py b/src/auth0/management/types/password_identical_characters_policy_enum.py deleted file mode 100644 index 1287cb02..00000000 --- a/src/auth0/management/types/password_identical_characters_policy_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -PasswordIdenticalCharactersPolicyEnum = typing.Union[typing.Literal["allow", "block"], typing.Any] diff --git a/src/auth0/management/types/password_max_length_exceeded_policy_enum.py b/src/auth0/management/types/password_max_length_exceeded_policy_enum.py deleted file mode 100644 index 71306009..00000000 --- a/src/auth0/management/types/password_max_length_exceeded_policy_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -PasswordMaxLengthExceededPolicyEnum = typing.Union[typing.Literal["truncate", "error"], typing.Any] diff --git a/src/auth0/management/types/password_sequential_characters_policy_enum.py b/src/auth0/management/types/password_sequential_characters_policy_enum.py deleted file mode 100644 index 49a23384..00000000 --- a/src/auth0/management/types/password_sequential_characters_policy_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -PasswordSequentialCharactersPolicyEnum = typing.Union[typing.Literal["allow", "block"], typing.Any] diff --git a/src/auth0/management/types/patch_client_credential_response_content.py b/src/auth0/management/types/patch_client_credential_response_content.py deleted file mode 100644 index ab3dd192..00000000 --- a/src/auth0/management/types/patch_client_credential_response_content.py +++ /dev/null @@ -1,68 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .client_credential_algorithm_enum import ClientCredentialAlgorithmEnum -from .client_credential_type_enum import ClientCredentialTypeEnum - - -class PatchClientCredentialResponseContent(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of the credential. Generated on creation. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The name given to the credential by the user. - """ - - kid: typing.Optional[str] = pydantic.Field(default=None) - """ - The key identifier of the credential, generated on creation. - """ - - alg: typing.Optional[ClientCredentialAlgorithmEnum] = None - credential_type: typing.Optional[ClientCredentialTypeEnum] = None - subject_dn: typing.Optional[str] = pydantic.Field(default=None) - """ - The X509 certificate's Subject Distinguished Name - """ - - thumbprint_sha_256: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="thumbprint_sha256"), - pydantic.Field(alias="thumbprint_sha256", description="The X509 certificate's SHA256 thumbprint"), - ] = None - """ - The X509 certificate's SHA256 thumbprint - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The ISO 8601 formatted date the credential was created. - """ - - updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The ISO 8601 formatted date the credential was updated. - """ - - expires_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The ISO 8601 formatted date representing the expiration of the credential. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/patch_phone_provider_protection_response_content.py b/src/auth0/management/types/patch_phone_provider_protection_response_content.py deleted file mode 100644 index fcfa9d30..00000000 --- a/src/auth0/management/types/patch_phone_provider_protection_response_content.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .phone_provider_protection_backoff_strategy_enum import PhoneProviderProtectionBackoffStrategyEnum - - -class PatchPhoneProviderProtectionResponseContent(UniversalBaseModel): - type: PhoneProviderProtectionBackoffStrategyEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/patch_rate_limit_policy_configuration_request_content.py b/src/auth0/management/types/patch_rate_limit_policy_configuration_request_content.py deleted file mode 100644 index 21c904a7..00000000 --- a/src/auth0/management/types/patch_rate_limit_policy_configuration_request_content.py +++ /dev/null @@ -1,19 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .patch_rate_limit_policy_configuration_request_content_action import ( - PatchRateLimitPolicyConfigurationRequestContentAction, -) -from .patch_rate_limit_policy_configuration_request_content_one import ( - PatchRateLimitPolicyConfigurationRequestContentOne, -) -from .patch_rate_limit_policy_configuration_request_content_zero import ( - PatchRateLimitPolicyConfigurationRequestContentZero, -) - -PatchRateLimitPolicyConfigurationRequestContent = typing.Union[ - PatchRateLimitPolicyConfigurationRequestContentZero, - PatchRateLimitPolicyConfigurationRequestContentOne, - PatchRateLimitPolicyConfigurationRequestContentAction, -] diff --git a/src/auth0/management/types/patch_rate_limit_policy_configuration_request_content_action.py b/src/auth0/management/types/patch_rate_limit_policy_configuration_request_content_action.py deleted file mode 100644 index 4c5af507..00000000 --- a/src/auth0/management/types/patch_rate_limit_policy_configuration_request_content_action.py +++ /dev/null @@ -1,35 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .patch_rate_limit_policy_configuration_request_content_action_action import ( - PatchRateLimitPolicyConfigurationRequestContentActionAction, -) - - -class PatchRateLimitPolicyConfigurationRequestContentAction(UniversalBaseModel): - action: PatchRateLimitPolicyConfigurationRequestContentActionAction = pydantic.Field() - """ - Determines the action to take when the rate limit is exceeded. - """ - - limit: int = pydantic.Field() - """ - The maximum number of requests allowed per second. - """ - - redirect_uri: str = pydantic.Field() - """ - The HTTPS URI to redirect to when the rate limit is exceeded. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/patch_rate_limit_policy_configuration_request_content_action_action.py b/src/auth0/management/types/patch_rate_limit_policy_configuration_request_content_action_action.py deleted file mode 100644 index 74688b27..00000000 --- a/src/auth0/management/types/patch_rate_limit_policy_configuration_request_content_action_action.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -PatchRateLimitPolicyConfigurationRequestContentActionAction = typing.Union[typing.Literal["redirect"], typing.Any] diff --git a/src/auth0/management/types/patch_rate_limit_policy_configuration_request_content_one.py b/src/auth0/management/types/patch_rate_limit_policy_configuration_request_content_one.py deleted file mode 100644 index 20b69ea4..00000000 --- a/src/auth0/management/types/patch_rate_limit_policy_configuration_request_content_one.py +++ /dev/null @@ -1,30 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .patch_rate_limit_policy_configuration_request_content_one_action import ( - PatchRateLimitPolicyConfigurationRequestContentOneAction, -) - - -class PatchRateLimitPolicyConfigurationRequestContentOne(UniversalBaseModel): - action: PatchRateLimitPolicyConfigurationRequestContentOneAction = pydantic.Field() - """ - Determines the action to take when the rate limit is exceeded. - """ - - limit: int = pydantic.Field() - """ - The maximum number of requests allowed per second. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/patch_rate_limit_policy_configuration_request_content_one_action.py b/src/auth0/management/types/patch_rate_limit_policy_configuration_request_content_one_action.py deleted file mode 100644 index b0d7568d..00000000 --- a/src/auth0/management/types/patch_rate_limit_policy_configuration_request_content_one_action.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -PatchRateLimitPolicyConfigurationRequestContentOneAction = typing.Union[typing.Literal["block", "log"], typing.Any] diff --git a/src/auth0/management/types/patch_rate_limit_policy_configuration_request_content_zero.py b/src/auth0/management/types/patch_rate_limit_policy_configuration_request_content_zero.py deleted file mode 100644 index c5993b0c..00000000 --- a/src/auth0/management/types/patch_rate_limit_policy_configuration_request_content_zero.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .patch_rate_limit_policy_configuration_request_content_zero_action import ( - PatchRateLimitPolicyConfigurationRequestContentZeroAction, -) - - -class PatchRateLimitPolicyConfigurationRequestContentZero(UniversalBaseModel): - action: PatchRateLimitPolicyConfigurationRequestContentZeroAction = pydantic.Field() - """ - Determines the action to take when the rate limit is exceeded. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/patch_rate_limit_policy_configuration_request_content_zero_action.py b/src/auth0/management/types/patch_rate_limit_policy_configuration_request_content_zero_action.py deleted file mode 100644 index d3ca6657..00000000 --- a/src/auth0/management/types/patch_rate_limit_policy_configuration_request_content_zero_action.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -PatchRateLimitPolicyConfigurationRequestContentZeroAction = typing.Union[typing.Literal["allow"], typing.Any] diff --git a/src/auth0/management/types/patch_supplemental_signals_response_content.py b/src/auth0/management/types/patch_supplemental_signals_response_content.py deleted file mode 100644 index c4a1859a..00000000 --- a/src/auth0/management/types/patch_supplemental_signals_response_content.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class PatchSupplementalSignalsResponseContent(UniversalBaseModel): - akamai_enabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates if incoming Akamai Headers should be processed - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/permission_request_payload.py b/src/auth0/management/types/permission_request_payload.py deleted file mode 100644 index 2082dbb6..00000000 --- a/src/auth0/management/types/permission_request_payload.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class PermissionRequestPayload(UniversalBaseModel): - resource_server_identifier: str = pydantic.Field() - """ - Resource server (API) identifier that this permission is for. - """ - - permission_name: str = pydantic.Field() - """ - Name of this permission. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/permissions_response_payload.py b/src/auth0/management/types/permissions_response_payload.py deleted file mode 100644 index 5772d2c1..00000000 --- a/src/auth0/management/types/permissions_response_payload.py +++ /dev/null @@ -1,37 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class PermissionsResponsePayload(UniversalBaseModel): - resource_server_identifier: typing.Optional[str] = pydantic.Field(default=None) - """ - Resource server (API) identifier that this permission is for. - """ - - permission_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of this permission. - """ - - resource_server_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Resource server (API) name this permission is for. - """ - - description: typing.Optional[str] = pydantic.Field(default=None) - """ - Description of this permission. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/phone_attribute.py b/src/auth0/management/types/phone_attribute.py deleted file mode 100644 index 5e61ea69..00000000 --- a/src/auth0/management/types/phone_attribute.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .phone_attribute_identifier import PhoneAttributeIdentifier -from .signup_verified import SignupVerified - - -class PhoneAttribute(UniversalBaseModel): - """ - Configuration for the phone number attribute for users. - """ - - identifier: typing.Optional[PhoneAttributeIdentifier] = None - profile_required: typing.Optional[bool] = pydantic.Field(default=None) - """ - Determines if property should be required for users - """ - - signup: typing.Optional[SignupVerified] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/phone_attribute_identifier.py b/src/auth0/management/types/phone_attribute_identifier.py deleted file mode 100644 index aea45f6c..00000000 --- a/src/auth0/management/types/phone_attribute_identifier.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .default_method_phone_number_identifier_enum import DefaultMethodPhoneNumberIdentifierEnum - - -class PhoneAttributeIdentifier(UniversalBaseModel): - active: typing.Optional[bool] = pydantic.Field(default=None) - """ - Determines if the attribute is used for identification - """ - - default_method: typing.Optional[DefaultMethodPhoneNumberIdentifierEnum] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/phone_provider_channel_enum.py b/src/auth0/management/types/phone_provider_channel_enum.py deleted file mode 100644 index 7afa33c9..00000000 --- a/src/auth0/management/types/phone_provider_channel_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -PhoneProviderChannelEnum = typing.Union[typing.Literal["phone"], typing.Any] diff --git a/src/auth0/management/types/phone_provider_configuration.py b/src/auth0/management/types/phone_provider_configuration.py deleted file mode 100644 index 9ef69de7..00000000 --- a/src/auth0/management/types/phone_provider_configuration.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .custom_provider_configuration import CustomProviderConfiguration -from .twilio_provider_configuration import TwilioProviderConfiguration - -PhoneProviderConfiguration = typing.Union[TwilioProviderConfiguration, CustomProviderConfiguration] diff --git a/src/auth0/management/types/phone_provider_credentials.py b/src/auth0/management/types/phone_provider_credentials.py deleted file mode 100644 index 71f56db3..00000000 --- a/src/auth0/management/types/phone_provider_credentials.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .custom_provider_credentials import CustomProviderCredentials -from .twilio_provider_credentials import TwilioProviderCredentials - -PhoneProviderCredentials = typing.Union[TwilioProviderCredentials, CustomProviderCredentials] diff --git a/src/auth0/management/types/phone_provider_delivery_method_enum.py b/src/auth0/management/types/phone_provider_delivery_method_enum.py deleted file mode 100644 index 87c12f74..00000000 --- a/src/auth0/management/types/phone_provider_delivery_method_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -PhoneProviderDeliveryMethodEnum = typing.Union[typing.Literal["text", "voice"], typing.Any] diff --git a/src/auth0/management/types/phone_provider_name_enum.py b/src/auth0/management/types/phone_provider_name_enum.py deleted file mode 100644 index dbc8f26c..00000000 --- a/src/auth0/management/types/phone_provider_name_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -PhoneProviderNameEnum = typing.Union[typing.Literal["twilio", "custom"], typing.Any] diff --git a/src/auth0/management/types/phone_provider_protection_backoff_strategy_enum.py b/src/auth0/management/types/phone_provider_protection_backoff_strategy_enum.py deleted file mode 100644 index 5b2cf7af..00000000 --- a/src/auth0/management/types/phone_provider_protection_backoff_strategy_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -PhoneProviderProtectionBackoffStrategyEnum = typing.Union[typing.Literal["exponential", "default"], typing.Any] diff --git a/src/auth0/management/types/phone_provider_schema_masked.py b/src/auth0/management/types/phone_provider_schema_masked.py deleted file mode 100644 index b9cd8ad6..00000000 --- a/src/auth0/management/types/phone_provider_schema_masked.py +++ /dev/null @@ -1,49 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .phone_provider_channel_enum import PhoneProviderChannelEnum -from .phone_provider_configuration import PhoneProviderConfiguration -from .phone_provider_name_enum import PhoneProviderNameEnum - - -class PhoneProviderSchemaMasked(UniversalBaseModel): - """ - Phone provider configuration schema - """ - - id: typing.Optional[str] = None - tenant: typing.Optional[str] = pydantic.Field(default=None) - """ - The name of the tenant - """ - - name: PhoneProviderNameEnum - channel: typing.Optional[PhoneProviderChannelEnum] = None - disabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether the provider is enabled (false) or disabled (true). - """ - - configuration: typing.Optional[PhoneProviderConfiguration] = None - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The provider's creation date and time in ISO 8601 format - """ - - updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The date and time of the last update to the provider in ISO 8601 format - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/phone_template.py b/src/auth0/management/types/phone_template.py deleted file mode 100644 index 26d30a9e..00000000 --- a/src/auth0/management/types/phone_template.py +++ /dev/null @@ -1,30 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .phone_template_content import PhoneTemplateContent -from .phone_template_notification_type_enum import PhoneTemplateNotificationTypeEnum - - -class PhoneTemplate(UniversalBaseModel): - id: typing.Optional[str] = None - channel: typing.Optional[str] = None - customizable: typing.Optional[bool] = None - tenant: typing.Optional[str] = None - content: PhoneTemplateContent - type: PhoneTemplateNotificationTypeEnum - disabled: bool = pydantic.Field() - """ - Whether the template is enabled (false) or disabled (true). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/phone_template_body.py b/src/auth0/management/types/phone_template_body.py deleted file mode 100644 index e6bb7ff3..00000000 --- a/src/auth0/management/types/phone_template_body.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class PhoneTemplateBody(UniversalBaseModel): - text: typing.Optional[str] = pydantic.Field(default=None) - """ - Content of the phone template for text notifications - """ - - voice: typing.Optional[str] = pydantic.Field(default=None) - """ - Content of the phone template for voice notifications - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/phone_template_content.py b/src/auth0/management/types/phone_template_content.py deleted file mode 100644 index 775cdf28..00000000 --- a/src/auth0/management/types/phone_template_content.py +++ /dev/null @@ -1,34 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .phone_template_body import PhoneTemplateBody - - -class PhoneTemplateContent(UniversalBaseModel): - syntax: typing.Optional[str] = None - from_: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="from"), - pydantic.Field( - alias="from", description="Default phone number to be used as 'from' when sending a phone notification" - ), - ] = None - """ - Default phone number to be used as 'from' when sending a phone notification - """ - - body: typing.Optional[PhoneTemplateBody] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/phone_template_notification_type_enum.py b/src/auth0/management/types/phone_template_notification_type_enum.py deleted file mode 100644 index 84706c51..00000000 --- a/src/auth0/management/types/phone_template_notification_type_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -PhoneTemplateNotificationTypeEnum = typing.Union[ - typing.Literal["otp_verify", "otp_enroll", "change_password", "blocked_account", "password_breach"], typing.Any -] diff --git a/src/auth0/management/types/portal.py b/src/auth0/management/types/portal.py deleted file mode 100644 index b1d57730..00000000 --- a/src/auth0/management/types/portal.py +++ /dev/null @@ -1,35 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .portal_client_secret_post import PortalClientSecretPost -from .portal_custom_code import PortalCustomCode -from .portal_date_time import PortalDateTime -from .portal_id import PortalId -from .portal_name import PortalName -from .portal_navigation import PortalNavigation -from .portal_pages_by_type import PortalPagesByType -from .portal_slug import PortalSlug - - -class Portal(UniversalBaseModel): - id: PortalId - name: PortalName - navigation: typing.Optional[PortalNavigation] = None - pages: typing.Optional[PortalPagesByType] = None - slug: PortalSlug - client: typing.Optional[PortalClientSecretPost] = None - custom_code: typing.Optional[PortalCustomCode] = None - created_at: PortalDateTime - updated_at: PortalDateTime - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/portal_client_secret_post.py b/src/auth0/management/types/portal_client_secret_post.py deleted file mode 100644 index be3a9340..00000000 --- a/src/auth0/management/types/portal_client_secret_post.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .portal_client_secret_post_token_endpoint_auth_method import PortalClientSecretPostTokenEndpointAuthMethod - - -class PortalClientSecretPost(UniversalBaseModel): - token_endpoint_auth_method: PortalClientSecretPostTokenEndpointAuthMethod - client_id: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/portal_client_secret_post_request.py b/src/auth0/management/types/portal_client_secret_post_request.py deleted file mode 100644 index d335c44a..00000000 --- a/src/auth0/management/types/portal_client_secret_post_request.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .portal_client_secret_post_request_token_endpoint_auth_method import ( - PortalClientSecretPostRequestTokenEndpointAuthMethod, -) - - -class PortalClientSecretPostRequest(UniversalBaseModel): - token_endpoint_auth_method: PortalClientSecretPostRequestTokenEndpointAuthMethod - client_id: str - client_secret: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/portal_client_secret_post_request_token_endpoint_auth_method.py b/src/auth0/management/types/portal_client_secret_post_request_token_endpoint_auth_method.py deleted file mode 100644 index 7d82b712..00000000 --- a/src/auth0/management/types/portal_client_secret_post_request_token_endpoint_auth_method.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -PortalClientSecretPostRequestTokenEndpointAuthMethod = typing.Union[typing.Literal["client_secret_post"], typing.Any] diff --git a/src/auth0/management/types/portal_client_secret_post_token_endpoint_auth_method.py b/src/auth0/management/types/portal_client_secret_post_token_endpoint_auth_method.py deleted file mode 100644 index 55bd9fc4..00000000 --- a/src/auth0/management/types/portal_client_secret_post_token_endpoint_auth_method.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -PortalClientSecretPostTokenEndpointAuthMethod = typing.Union[typing.Literal["client_secret_post"], typing.Any] diff --git a/src/auth0/management/types/portal_custom_code.py b/src/auth0/management/types/portal_custom_code.py deleted file mode 100644 index 8fa5f7a0..00000000 --- a/src/auth0/management/types/portal_custom_code.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class PortalCustomCode(UniversalBaseModel): - head: typing.Optional[str] = pydantic.Field(default=None) - """ - Custom code injected into the of the portal. Only injected when the portal is accessed via a custom domain; it is not injected on canonical domains. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/portal_custom_code_nullable.py b/src/auth0/management/types/portal_custom_code_nullable.py deleted file mode 100644 index b8c34a1c..00000000 --- a/src/auth0/management/types/portal_custom_code_nullable.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .portal_custom_code import PortalCustomCode - -PortalCustomCodeNullable = typing.Optional[PortalCustomCode] diff --git a/src/auth0/management/types/portal_date_time.py b/src/auth0/management/types/portal_date_time.py deleted file mode 100644 index 38400300..00000000 --- a/src/auth0/management/types/portal_date_time.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt - -PortalDateTime = dt.datetime diff --git a/src/auth0/management/types/portal_id.py b/src/auth0/management/types/portal_id.py deleted file mode 100644 index 28d8ab39..00000000 --- a/src/auth0/management/types/portal_id.py +++ /dev/null @@ -1,3 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -PortalId = str diff --git a/src/auth0/management/types/portal_name.py b/src/auth0/management/types/portal_name.py deleted file mode 100644 index 4c7a1f2a..00000000 --- a/src/auth0/management/types/portal_name.py +++ /dev/null @@ -1,3 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -PortalName = str diff --git a/src/auth0/management/types/portal_navigation.py b/src/auth0/management/types/portal_navigation.py deleted file mode 100644 index beccb936..00000000 --- a/src/auth0/management/types/portal_navigation.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .sidebar import Sidebar - - -class PortalNavigation(UniversalBaseModel): - sidebar: typing.Optional[Sidebar] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/portal_navigation_nullable.py b/src/auth0/management/types/portal_navigation_nullable.py deleted file mode 100644 index 4c5ffe37..00000000 --- a/src/auth0/management/types/portal_navigation_nullable.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .portal_navigation import PortalNavigation - -PortalNavigationNullable = typing.Optional[PortalNavigation] diff --git a/src/auth0/management/types/portal_page.py b/src/auth0/management/types/portal_page.py deleted file mode 100644 index ee656fd4..00000000 --- a/src/auth0/management/types/portal_page.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .page_component import PageComponent -from .page_slug import PageSlug - - -class PortalPage(UniversalBaseModel): - title: str - slug: PageSlug - components: typing.Optional[typing.List[PageComponent]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/portal_pages_by_type.py b/src/auth0/management/types/portal_pages_by_type.py deleted file mode 100644 index 512dbd7a..00000000 --- a/src/auth0/management/types/portal_pages_by_type.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .page_slug import PageSlug -from .portal_page import PortalPage - - -class PortalPagesByType(UniversalBaseModel): - default: typing.Optional[PageSlug] = None - standard: typing.Optional[typing.List[PortalPage]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/portal_pages_by_type_nullable.py b/src/auth0/management/types/portal_pages_by_type_nullable.py deleted file mode 100644 index b8f123fd..00000000 --- a/src/auth0/management/types/portal_pages_by_type_nullable.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .portal_pages_by_type import PortalPagesByType - -PortalPagesByTypeNullable = typing.Optional[PortalPagesByType] diff --git a/src/auth0/management/types/portal_slug.py b/src/auth0/management/types/portal_slug.py deleted file mode 100644 index 08a75501..00000000 --- a/src/auth0/management/types/portal_slug.py +++ /dev/null @@ -1,3 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -PortalSlug = str diff --git a/src/auth0/management/types/portal_summary.py b/src/auth0/management/types/portal_summary.py deleted file mode 100644 index 4c9b98ee..00000000 --- a/src/auth0/management/types/portal_summary.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .portal_date_time import PortalDateTime -from .portal_id import PortalId -from .portal_name import PortalName -from .portal_slug import PortalSlug - - -class PortalSummary(UniversalBaseModel): - id: PortalId - name: PortalName - slug: PortalSlug - created_at: PortalDateTime - updated_at: PortalDateTime - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/position.py b/src/auth0/management/types/position.py deleted file mode 100644 index 1a8a6743..00000000 --- a/src/auth0/management/types/position.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -Position = typing.Union[typing.Literal["left", "center", "right"], typing.Any] diff --git a/src/auth0/management/types/post_client_credential_response_content.py b/src/auth0/management/types/post_client_credential_response_content.py deleted file mode 100644 index dd5fef7f..00000000 --- a/src/auth0/management/types/post_client_credential_response_content.py +++ /dev/null @@ -1,68 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .client_credential_algorithm_enum import ClientCredentialAlgorithmEnum -from .client_credential_type_enum import ClientCredentialTypeEnum - - -class PostClientCredentialResponseContent(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of the credential. Generated on creation. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The name given to the credential by the user. - """ - - kid: typing.Optional[str] = pydantic.Field(default=None) - """ - The key identifier of the credential, generated on creation. - """ - - alg: typing.Optional[ClientCredentialAlgorithmEnum] = None - credential_type: typing.Optional[ClientCredentialTypeEnum] = None - subject_dn: typing.Optional[str] = pydantic.Field(default=None) - """ - The X509 certificate's Subject Distinguished Name - """ - - thumbprint_sha_256: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="thumbprint_sha256"), - pydantic.Field(alias="thumbprint_sha256", description="The X509 certificate's SHA256 thumbprint"), - ] = None - """ - The X509 certificate's SHA256 thumbprint - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The ISO 8601 formatted date the credential was created. - """ - - updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The ISO 8601 formatted date the credential was updated. - """ - - expires_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The ISO 8601 formatted date representing the expiration of the credential. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/post_connection_keys_alg_enum.py b/src/auth0/management/types/post_connection_keys_alg_enum.py deleted file mode 100644 index d1b54b21..00000000 --- a/src/auth0/management/types/post_connection_keys_alg_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -PostConnectionKeysAlgEnum = typing.Union[ - typing.Literal["RS256", "RS384", "RS512", "PS256", "PS384", "ES256", "ES384"], typing.Any -] diff --git a/src/auth0/management/types/post_connection_keys_request_content.py b/src/auth0/management/types/post_connection_keys_request_content.py deleted file mode 100644 index 78737e42..00000000 --- a/src/auth0/management/types/post_connection_keys_request_content.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .connection_key_use_enum import ConnectionKeyUseEnum -from .post_connection_keys_alg_enum import PostConnectionKeysAlgEnum - - -class PostConnectionKeysRequestContent(UniversalBaseModel): - key_use: typing.Optional[ConnectionKeyUseEnum] = pydantic.Field(default=None) - """ - Whether to provision a signing key (default) or an encryption key for the connection. - """ - - signing_alg: typing.Optional[PostConnectionKeysAlgEnum] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/post_connections_keys_response_content.py b/src/auth0/management/types/post_connections_keys_response_content.py deleted file mode 100644 index 35a74e07..00000000 --- a/src/auth0/management/types/post_connections_keys_response_content.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .post_connections_keys_response_content_item import PostConnectionsKeysResponseContentItem - -PostConnectionsKeysResponseContent = typing.List[PostConnectionsKeysResponseContentItem] diff --git a/src/auth0/management/types/post_connections_keys_response_content_item.py b/src/auth0/management/types/post_connections_keys_response_content_item.py deleted file mode 100644 index efbfa16c..00000000 --- a/src/auth0/management/types/post_connections_keys_response_content_item.py +++ /dev/null @@ -1,66 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .connection_key_use_enum import ConnectionKeyUseEnum - - -class PostConnectionsKeysResponseContentItem(UniversalBaseModel): - kid: str = pydantic.Field() - """ - The key id of the signing or encryption key - """ - - cert: str = pydantic.Field() - """ - The public certificate of the signing or encryption key - """ - - pkcs: typing.Optional[str] = pydantic.Field(default=None) - """ - The public certificate of the signing or encryption key in pkcs7 format - """ - - current: typing.Optional[bool] = pydantic.Field(default=None) - """ - True if the key is the current key - """ - - next: typing.Optional[bool] = pydantic.Field(default=None) - """ - True if the key is the next key - """ - - current_since: typing.Optional[str] = pydantic.Field(default=None) - """ - The date and time when the key became the current key - """ - - fingerprint: str = pydantic.Field() - """ - The cert fingerprint - """ - - thumbprint: str = pydantic.Field() - """ - The cert thumbprint - """ - - algorithm: typing.Optional[str] = pydantic.Field(default=None) - """ - Key algorithm: a signing algorithm for signing keys, or a key-management algorithm for encryption keys - """ - - key_use: typing.Optional[ConnectionKeyUseEnum] = None - subject_dn: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/preferred_authentication_method_enum.py b/src/auth0/management/types/preferred_authentication_method_enum.py deleted file mode 100644 index a36ca01e..00000000 --- a/src/auth0/management/types/preferred_authentication_method_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -PreferredAuthenticationMethodEnum = typing.Union[typing.Literal["voice", "sms"], typing.Any] diff --git a/src/auth0/management/types/preview_cimd_metadata_response_content.py b/src/auth0/management/types/preview_cimd_metadata_response_content.py deleted file mode 100644 index 90b6d838..00000000 --- a/src/auth0/management/types/preview_cimd_metadata_response_content.py +++ /dev/null @@ -1,34 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .cimd_external_metadata_created_by_enum import CimdExternalMetadataCreatedByEnum -from .cimd_mapped_client_fields import CimdMappedClientFields -from .cimd_validation_result import CimdValidationResult - - -class PreviewCimdMetadataResponseContent(UniversalBaseModel): - client_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The client_id of an existing client registered with this external_client_id, if one exists. - """ - - external_metadata_created_by: typing.Optional[CimdExternalMetadataCreatedByEnum] = None - errors: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Array of retrieval errors (populated when the metadata document could not be fetched). When present, validation is omitted. - """ - - validation: typing.Optional[CimdValidationResult] = None - mapped_fields: typing.Optional[CimdMappedClientFields] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/prompt_group_name_enum.py b/src/auth0/management/types/prompt_group_name_enum.py deleted file mode 100644 index 9a304c44..00000000 --- a/src/auth0/management/types/prompt_group_name_enum.py +++ /dev/null @@ -1,46 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -PromptGroupNameEnum = typing.Union[ - typing.Literal[ - "login", - "login-id", - "login-password", - "login-passwordless", - "login-email-verification", - "signup", - "signup-id", - "signup-password", - "phone-identifier-enrollment", - "phone-identifier-challenge", - "email-identifier-challenge", - "reset-password", - "custom-form", - "consent", - "customized-consent", - "logout", - "mfa-push", - "mfa-otp", - "mfa-voice", - "mfa-phone", - "mfa-webauthn", - "mfa-sms", - "mfa-email", - "mfa-recovery-code", - "mfa", - "status", - "device-flow", - "email-verification", - "email-otp-challenge", - "organizations", - "invitation", - "common", - "passkeys", - "captcha", - "brute-force-protection", - "async-approval-flow", - "confirmation", - ], - typing.Any, -] diff --git a/src/auth0/management/types/prompt_language_enum.py b/src/auth0/management/types/prompt_language_enum.py deleted file mode 100644 index fdce413e..00000000 --- a/src/auth0/management/types/prompt_language_enum.py +++ /dev/null @@ -1,91 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -PromptLanguageEnum = typing.Union[ - typing.Literal[ - "am", - "ar", - "ar-EG", - "ar-SA", - "az", - "bg", - "bn", - "bs", - "ca-ES", - "cnr", - "cs", - "cy", - "da", - "de", - "el", - "en", - "en-CA", - "es", - "es-419", - "es-AR", - "es-MX", - "et", - "eu-ES", - "fa", - "fi", - "fr", - "fr-CA", - "fr-FR", - "gl-ES", - "gu", - "he", - "hi", - "hr", - "hu", - "hy", - "id", - "is", - "it", - "ja", - "ka", - "kk", - "kn", - "ko", - "lt", - "lv", - "mk", - "ml", - "mn", - "mr", - "ms", - "my", - "nb", - "nl", - "nn", - "no", - "pa", - "pl", - "pt", - "pt-BR", - "pt-PT", - "ro", - "ru", - "sk", - "sl", - "so", - "sq", - "sr", - "sv", - "sw", - "ta", - "te", - "th", - "tl", - "tr", - "uk", - "ur", - "vi", - "zgh", - "zh-CN", - "zh-HK", - "zh-MO", - "zh-TW", - ], - typing.Any, -] diff --git a/src/auth0/management/types/public_key_credential.py b/src/auth0/management/types/public_key_credential.py deleted file mode 100644 index 84624612..00000000 --- a/src/auth0/management/types/public_key_credential.py +++ /dev/null @@ -1,47 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .public_key_credential_algorithm_enum import PublicKeyCredentialAlgorithmEnum -from .public_key_credential_type_enum import PublicKeyCredentialTypeEnum - - -class PublicKeyCredential(UniversalBaseModel): - credential_type: PublicKeyCredentialTypeEnum - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Friendly name for a credential. - """ - - pem: str = pydantic.Field() - """ - PEM-formatted public key (SPKI and PKCS1) or X509 certificate. Must be JSON escaped. - """ - - alg: typing.Optional[PublicKeyCredentialAlgorithmEnum] = None - parse_expiry_from_cert: typing.Optional[bool] = pydantic.Field(default=None) - """ - Parse expiry from x509 certificate. If true, attempts to parse the expiry date from the provided PEM. Applies to `public_key` credential type. - """ - - expires_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The ISO 8601 formatted date representing the expiration of the credential. If not specified (not recommended), the credential never expires. Applies to `public_key` credential type. - """ - - kid: typing.Optional[str] = pydantic.Field(default=None) - """ - Optional kid (Key ID), used to uniquely identify the credential. If not specified, a kid value will be auto-generated. The kid header parameter in JWTs sent by your client should match this value. Valid format is [0-9a-zA-Z-_]{10,64} - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/public_key_credential_algorithm_enum.py b/src/auth0/management/types/public_key_credential_algorithm_enum.py deleted file mode 100644 index 34be6829..00000000 --- a/src/auth0/management/types/public_key_credential_algorithm_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -PublicKeyCredentialAlgorithmEnum = typing.Union[typing.Literal["RS256", "RS384", "PS256"], typing.Any] diff --git a/src/auth0/management/types/public_key_credential_type_enum.py b/src/auth0/management/types/public_key_credential_type_enum.py deleted file mode 100644 index 41dbd04e..00000000 --- a/src/auth0/management/types/public_key_credential_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -PublicKeyCredentialTypeEnum = typing.Union[typing.Literal["public_key"], typing.Any] diff --git a/src/auth0/management/types/rate_limit_policy.py b/src/auth0/management/types/rate_limit_policy.py deleted file mode 100644 index bcc146d6..00000000 --- a/src/auth0/management/types/rate_limit_policy.py +++ /dev/null @@ -1,44 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .rate_limit_policy_configuration import RateLimitPolicyConfiguration -from .rate_limit_policy_consumer_enum import RateLimitPolicyConsumerEnum -from .rate_limit_policy_resource_enum import RateLimitPolicyResourceEnum - - -class RateLimitPolicy(UniversalBaseModel): - id: str = pydantic.Field() - """ - Unique identifier for the Rate Limit Policy. - """ - - resource: RateLimitPolicyResourceEnum - consumer: RateLimitPolicyConsumerEnum - consumer_selector: str = pydantic.Field() - """ - Identifier or category within the consumer to which the policy applies. Supported values: `client_id:` to target a specific client by ID, `client_id:` to target a CIMD client by URI, `cimd_clients` to target all CIMD clients, `third_party_clients` to target all third-party clients, or `default` to apply the policy to any consumer identifier not otherwise explicitly targeted. - """ - - configuration: RateLimitPolicyConfiguration - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The date and time when the rate limit policy was created. - """ - - updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The date and time when the rate limit policy was last updated. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/rate_limit_policy_configuration.py b/src/auth0/management/types/rate_limit_policy_configuration.py deleted file mode 100644 index d579a9fd..00000000 --- a/src/auth0/management/types/rate_limit_policy_configuration.py +++ /dev/null @@ -1,11 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .rate_limit_policy_configuration_action import RateLimitPolicyConfigurationAction -from .rate_limit_policy_configuration_one import RateLimitPolicyConfigurationOne -from .rate_limit_policy_configuration_zero import RateLimitPolicyConfigurationZero - -RateLimitPolicyConfiguration = typing.Union[ - RateLimitPolicyConfigurationZero, RateLimitPolicyConfigurationOne, RateLimitPolicyConfigurationAction -] diff --git a/src/auth0/management/types/rate_limit_policy_configuration_action.py b/src/auth0/management/types/rate_limit_policy_configuration_action.py deleted file mode 100644 index daff62bc..00000000 --- a/src/auth0/management/types/rate_limit_policy_configuration_action.py +++ /dev/null @@ -1,33 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .rate_limit_policy_configuration_action_action import RateLimitPolicyConfigurationActionAction - - -class RateLimitPolicyConfigurationAction(UniversalBaseModel): - action: RateLimitPolicyConfigurationActionAction = pydantic.Field() - """ - Determines the action to take when the rate limit is exceeded. - """ - - limit: int = pydantic.Field() - """ - The maximum number of requests allowed per second. - """ - - redirect_uri: str = pydantic.Field() - """ - The HTTPS URI to redirect to when the rate limit is exceeded. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/rate_limit_policy_configuration_action_action.py b/src/auth0/management/types/rate_limit_policy_configuration_action_action.py deleted file mode 100644 index e6ec781c..00000000 --- a/src/auth0/management/types/rate_limit_policy_configuration_action_action.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -RateLimitPolicyConfigurationActionAction = typing.Union[typing.Literal["redirect"], typing.Any] diff --git a/src/auth0/management/types/rate_limit_policy_configuration_one.py b/src/auth0/management/types/rate_limit_policy_configuration_one.py deleted file mode 100644 index 416fb94f..00000000 --- a/src/auth0/management/types/rate_limit_policy_configuration_one.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .rate_limit_policy_configuration_one_action import RateLimitPolicyConfigurationOneAction - - -class RateLimitPolicyConfigurationOne(UniversalBaseModel): - action: RateLimitPolicyConfigurationOneAction = pydantic.Field() - """ - Determines the action to take when the rate limit is exceeded. - """ - - limit: int = pydantic.Field() - """ - The maximum number of requests allowed per second. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/rate_limit_policy_configuration_one_action.py b/src/auth0/management/types/rate_limit_policy_configuration_one_action.py deleted file mode 100644 index 888c29b6..00000000 --- a/src/auth0/management/types/rate_limit_policy_configuration_one_action.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -RateLimitPolicyConfigurationOneAction = typing.Union[typing.Literal["block", "log"], typing.Any] diff --git a/src/auth0/management/types/rate_limit_policy_configuration_zero.py b/src/auth0/management/types/rate_limit_policy_configuration_zero.py deleted file mode 100644 index 562108c4..00000000 --- a/src/auth0/management/types/rate_limit_policy_configuration_zero.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .rate_limit_policy_configuration_zero_action import RateLimitPolicyConfigurationZeroAction - - -class RateLimitPolicyConfigurationZero(UniversalBaseModel): - action: RateLimitPolicyConfigurationZeroAction = pydantic.Field() - """ - Determines the action to take when the rate limit is exceeded. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/rate_limit_policy_configuration_zero_action.py b/src/auth0/management/types/rate_limit_policy_configuration_zero_action.py deleted file mode 100644 index 99265031..00000000 --- a/src/auth0/management/types/rate_limit_policy_configuration_zero_action.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -RateLimitPolicyConfigurationZeroAction = typing.Union[typing.Literal["allow"], typing.Any] diff --git a/src/auth0/management/types/rate_limit_policy_consumer_enum.py b/src/auth0/management/types/rate_limit_policy_consumer_enum.py deleted file mode 100644 index 10923ef1..00000000 --- a/src/auth0/management/types/rate_limit_policy_consumer_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -RateLimitPolicyConsumerEnum = typing.Union[typing.Literal["client"], typing.Any] diff --git a/src/auth0/management/types/rate_limit_policy_resource_enum.py b/src/auth0/management/types/rate_limit_policy_resource_enum.py deleted file mode 100644 index d064a821..00000000 --- a/src/auth0/management/types/rate_limit_policy_resource_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -RateLimitPolicyResourceEnum = typing.Union[typing.Literal["oauth_authentication_api"], typing.Any] diff --git a/src/auth0/management/types/refresh_token_date.py b/src/auth0/management/types/refresh_token_date.py deleted file mode 100644 index 2d65d4bd..00000000 --- a/src/auth0/management/types/refresh_token_date.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .refresh_token_date_object import RefreshTokenDateObject - -RefreshTokenDate = typing.Union[dt.datetime, RefreshTokenDateObject] diff --git a/src/auth0/management/types/refresh_token_date_object.py b/src/auth0/management/types/refresh_token_date_object.py deleted file mode 100644 index 37c90a6d..00000000 --- a/src/auth0/management/types/refresh_token_date_object.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -RefreshTokenDateObject = typing.Dict[str, typing.Any] -""" -The date and time when the refresh token was created -""" diff --git a/src/auth0/management/types/refresh_token_device.py b/src/auth0/management/types/refresh_token_device.py deleted file mode 100644 index fa64c937..00000000 --- a/src/auth0/management/types/refresh_token_device.py +++ /dev/null @@ -1,51 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class RefreshTokenDevice(UniversalBaseModel): - """ - Device used while issuing/exchanging the refresh token - """ - - initial_ip: typing.Optional[str] = pydantic.Field(default=None) - """ - First IP address associated with the refresh token - """ - - initial_asn: typing.Optional[str] = pydantic.Field(default=None) - """ - First autonomous system number associated with the refresh token - """ - - initial_user_agent: typing.Optional[str] = pydantic.Field(default=None) - """ - First user agent associated with the refresh token - """ - - last_ip: typing.Optional[str] = pydantic.Field(default=None) - """ - Last IP address associated with the refresh token - """ - - last_asn: typing.Optional[str] = pydantic.Field(default=None) - """ - Last autonomous system number associated with the refresh token - """ - - last_user_agent: typing.Optional[str] = pydantic.Field(default=None) - """ - Last user agent associated with the refresh token - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/refresh_token_expiration_type_enum.py b/src/auth0/management/types/refresh_token_expiration_type_enum.py deleted file mode 100644 index 6e9bc3c8..00000000 --- a/src/auth0/management/types/refresh_token_expiration_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -RefreshTokenExpirationTypeEnum = typing.Union[typing.Literal["expiring", "non-expiring"], typing.Any] diff --git a/src/auth0/management/types/refresh_token_metadata.py b/src/auth0/management/types/refresh_token_metadata.py deleted file mode 100644 index c45b52b1..00000000 --- a/src/auth0/management/types/refresh_token_metadata.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -RefreshTokenMetadata = typing.Optional[typing.Dict[str, typing.Any]] -""" -Metadata associated with the refresh token, in the form of an object with string values (max 255 chars). Maximum of 25 metadata properties allowed. -""" diff --git a/src/auth0/management/types/refresh_token_resource_server.py b/src/auth0/management/types/refresh_token_resource_server.py deleted file mode 100644 index 3e0fa388..00000000 --- a/src/auth0/management/types/refresh_token_resource_server.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class RefreshTokenResourceServer(UniversalBaseModel): - audience: typing.Optional[str] = pydantic.Field(default=None) - """ - Resource server ID - """ - - scopes: typing.Optional[str] = pydantic.Field(default=None) - """ - List of scopes for the refresh token - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/refresh_token_response_content.py b/src/auth0/management/types/refresh_token_response_content.py deleted file mode 100644 index bf937de4..00000000 --- a/src/auth0/management/types/refresh_token_response_content.py +++ /dev/null @@ -1,55 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .refresh_token_date import RefreshTokenDate -from .refresh_token_device import RefreshTokenDevice -from .refresh_token_metadata import RefreshTokenMetadata -from .refresh_token_resource_server import RefreshTokenResourceServer -from .refresh_token_session_id import RefreshTokenSessionId - - -class RefreshTokenResponseContent(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - The ID of the refresh token - """ - - user_id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of the user which can be used when interacting with other APIs. - """ - - created_at: typing.Optional[RefreshTokenDate] = None - idle_expires_at: typing.Optional[RefreshTokenDate] = None - expires_at: typing.Optional[RefreshTokenDate] = None - device: typing.Optional[RefreshTokenDevice] = None - client_id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of the client application granted with this refresh token - """ - - session_id: typing.Optional[RefreshTokenSessionId] = None - rotating: typing.Optional[bool] = pydantic.Field(default=None) - """ - True if the token is a rotating refresh token - """ - - resource_servers: typing.Optional[typing.List[RefreshTokenResourceServer]] = pydantic.Field(default=None) - """ - A list of the resource server IDs associated to this refresh-token and their granted scopes - """ - - refresh_token_metadata: typing.Optional[RefreshTokenMetadata] = None - last_exchanged_at: typing.Optional[RefreshTokenDate] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/refresh_token_rotation_type_enum.py b/src/auth0/management/types/refresh_token_rotation_type_enum.py deleted file mode 100644 index 6a625333..00000000 --- a/src/auth0/management/types/refresh_token_rotation_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -RefreshTokenRotationTypeEnum = typing.Union[typing.Literal["rotating", "non-rotating"], typing.Any] diff --git a/src/auth0/management/types/refresh_token_session_id.py b/src/auth0/management/types/refresh_token_session_id.py deleted file mode 100644 index 73de5fec..00000000 --- a/src/auth0/management/types/refresh_token_session_id.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -RefreshTokenSessionId = typing.Optional[str] -""" -ID of the authenticated session used to obtain this refresh-token -""" diff --git a/src/auth0/management/types/regenerate_users_recovery_code_response_content.py b/src/auth0/management/types/regenerate_users_recovery_code_response_content.py deleted file mode 100644 index 0b8fd6a1..00000000 --- a/src/auth0/management/types/regenerate_users_recovery_code_response_content.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class RegenerateUsersRecoveryCodeResponseContent(UniversalBaseModel): - recovery_code: typing.Optional[str] = pydantic.Field(default=None) - """ - New account recovery code. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/register_cimd_client_response_content.py b/src/auth0/management/types/register_cimd_client_response_content.py deleted file mode 100644 index 6b874064..00000000 --- a/src/auth0/management/types/register_cimd_client_response_content.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .cimd_mapped_client_fields import CimdMappedClientFields -from .cimd_validation_result import CimdValidationResult - - -class RegisterCimdClientResponseContent(UniversalBaseModel): - """ - Response after successfully registering or updating a CIMD client - """ - - client_id: str = pydantic.Field() - """ - The Auth0 client_id of the created or updated client - """ - - mapped_fields: CimdMappedClientFields - validation: CimdValidationResult - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/reset_phone_template_request_content.py b/src/auth0/management/types/reset_phone_template_request_content.py deleted file mode 100644 index 0eafaffd..00000000 --- a/src/auth0/management/types/reset_phone_template_request_content.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ResetPhoneTemplateRequestContent = typing.Any diff --git a/src/auth0/management/types/reset_phone_template_response_content.py b/src/auth0/management/types/reset_phone_template_response_content.py deleted file mode 100644 index 7d3b9028..00000000 --- a/src/auth0/management/types/reset_phone_template_response_content.py +++ /dev/null @@ -1,30 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .phone_template_content import PhoneTemplateContent -from .phone_template_notification_type_enum import PhoneTemplateNotificationTypeEnum - - -class ResetPhoneTemplateResponseContent(UniversalBaseModel): - id: typing.Optional[str] = None - channel: typing.Optional[str] = None - customizable: typing.Optional[bool] = None - tenant: typing.Optional[str] = None - content: PhoneTemplateContent - type: PhoneTemplateNotificationTypeEnum - disabled: bool = pydantic.Field() - """ - Whether the template is enabled (false) or disabled (true). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/resource_server.py b/src/auth0/management/types/resource_server.py deleted file mode 100644 index 0dfdbf79..00000000 --- a/src/auth0/management/types/resource_server.py +++ /dev/null @@ -1,120 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .resource_server_access_token import ResourceServerAccessToken -from .resource_server_agent_subject_claims_response_enum import ResourceServerAgentSubjectClaimsResponseEnum -from .resource_server_authorization_policy import ResourceServerAuthorizationPolicy -from .resource_server_consent_policy_enum import ResourceServerConsentPolicyEnum -from .resource_server_proof_of_possession import ResourceServerProofOfPossession -from .resource_server_scope import ResourceServerScope -from .resource_server_subject_type_authorization import ResourceServerSubjectTypeAuthorization -from .resource_server_token_dialect_response_enum import ResourceServerTokenDialectResponseEnum -from .resource_server_token_encryption import ResourceServerTokenEncryption -from .resource_server_type_enum import ResourceServerTypeEnum -from .signing_algorithm_enum import SigningAlgorithmEnum - - -class ResourceServer(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of the API (resource server). - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Friendly name for this resource server. Can not contain `<` or `>` characters. - """ - - is_system: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this is an Auth0 system API (true) or a custom API (false). - """ - - identifier: typing.Optional[str] = pydantic.Field(default=None) - """ - Unique identifier for the API used as the audience parameter on authorization calls. Can not be changed once set. - """ - - scopes: typing.Optional[typing.List[ResourceServerScope]] = pydantic.Field(default=None) - """ - List of permissions (scopes) that this API uses. - """ - - signing_alg: typing.Optional[SigningAlgorithmEnum] = None - signing_secret: typing.Optional[str] = pydantic.Field(default=None) - """ - Secret used to sign tokens when using symmetric algorithms (HS256). - """ - - allow_offline_access: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether refresh tokens can be issued for this API (true) or not (false). - """ - - allow_online_access: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether Online Refresh Tokens can be issued for this API (true) or not (false). - """ - - allow_online_access_with_ephemeral_sessions: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether Online Refresh Tokens can be issued even when sessions are configured as ephemeral (true) or not (false). - """ - - skip_consent_for_verifiable_first_party_clients: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether to skip user consent for applications flagged as first party (true) or not (false). - """ - - token_lifetime: typing.Optional[int] = pydantic.Field(default=None) - """ - Expiration value (in seconds) for access tokens issued for this API from the token endpoint. - """ - - token_lifetime_for_web: typing.Optional[int] = pydantic.Field(default=None) - """ - Expiration value (in seconds) for access tokens issued for this API via Implicit or Hybrid Flows. Cannot be greater than the `token_lifetime` value. - """ - - enforce_policies: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether authorization polices are enforced (true) or unenforced (false). - """ - - token_lifetime_for_anonymous_access_tokens: typing.Optional[int] = pydantic.Field(default=None) - """ - Expiration value (in seconds) for anonymous-session access tokens issued for this API. - """ - - token_dialect: typing.Optional[ResourceServerTokenDialectResponseEnum] = None - access_token: typing.Optional[ResourceServerAccessToken] = None - token_encryption: typing.Optional[ResourceServerTokenEncryption] = None - consent_policy: typing.Optional[ResourceServerConsentPolicyEnum] = None - require_consent_non_repudiation: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true, the resource server requires every consent approval to be digitally signed, so the approver cannot later deny a consent they granted. When false, consent decisions do not need a signature. Defaults to false. A configured value is still returned even after the related entitlement is disabled. - """ - - authorization_details: typing.Optional[typing.List[typing.Any]] = None - proof_of_possession: typing.Optional[ResourceServerProofOfPossession] = None - subject_type_authorization: typing.Optional[ResourceServerSubjectTypeAuthorization] = None - authorization_policy: typing.Optional[ResourceServerAuthorizationPolicy] = None - client_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The client ID of the client that this resource server is linked to - """ - - agent_subject_claims: typing.Optional[ResourceServerAgentSubjectClaimsResponseEnum] = None - type: typing.Optional[ResourceServerTypeEnum] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/resource_server_access_token.py b/src/auth0/management/types/resource_server_access_token.py deleted file mode 100644 index f79bfbd1..00000000 --- a/src/auth0/management/types/resource_server_access_token.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .resource_server_access_token_claims_mapping import ResourceServerAccessTokenClaimsMapping - - -class ResourceServerAccessToken(UniversalBaseModel): - """ - Custom configuration for access tokens - """ - - claims_mapping: typing.Optional[ResourceServerAccessTokenClaimsMapping] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/resource_server_access_token_claims_mapping.py b/src/auth0/management/types/resource_server_access_token_claims_mapping.py deleted file mode 100644 index 9a25cb91..00000000 --- a/src/auth0/management/types/resource_server_access_token_claims_mapping.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .resource_server_access_token_custom_claims_mapping import ResourceServerAccessTokenCustomClaimsMapping - - -class ResourceServerAccessTokenClaimsMapping(UniversalBaseModel): - """ - Custom configuration for claims in access tokens - """ - - custom_claims: typing.Optional[ResourceServerAccessTokenCustomClaimsMapping] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/resource_server_access_token_custom_claims_mapping.py b/src/auth0/management/types/resource_server_access_token_custom_claims_mapping.py deleted file mode 100644 index 0c307d3f..00000000 --- a/src/auth0/management/types/resource_server_access_token_custom_claims_mapping.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .resource_server_access_token_custom_claims_mapping_rule import ResourceServerAccessTokenCustomClaimsMappingRule - -ResourceServerAccessTokenCustomClaimsMapping = typing.List[ResourceServerAccessTokenCustomClaimsMappingRule] -""" -Custom claims to emit in anonymous-session access tokens. Each rule maps a value read from the anonymous-session context (via a restricted dot-path expression) onto a named access-token claim. -""" diff --git a/src/auth0/management/types/resource_server_access_token_custom_claims_mapping_rule.py b/src/auth0/management/types/resource_server_access_token_custom_claims_mapping_rule.py deleted file mode 100644 index ae0b7397..00000000 --- a/src/auth0/management/types/resource_server_access_token_custom_claims_mapping_rule.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class ResourceServerAccessTokenCustomClaimsMappingRule(UniversalBaseModel): - name: str = pydantic.Field() - """ - The access-token claim name to emit, stored with the casing you provide. Reserved OIDC/JWT claim names are not allowed (compared case-insensitively). - """ - - expression: str = pydantic.Field() - """ - Restricted dot-path expression read from the anonymous-session context (e.g. `anonymous_session.metadata.country`). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/resource_server_agent_subject_claims_response_enum.py b/src/auth0/management/types/resource_server_agent_subject_claims_response_enum.py deleted file mode 100644 index 57c205f2..00000000 --- a/src/auth0/management/types/resource_server_agent_subject_claims_response_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ResourceServerAgentSubjectClaimsResponseEnum = typing.Union[typing.Literal["off", "auth0-v1"], typing.Any] diff --git a/src/auth0/management/types/resource_server_agent_subject_claims_schema_enum.py b/src/auth0/management/types/resource_server_agent_subject_claims_schema_enum.py deleted file mode 100644 index a2fc5d5c..00000000 --- a/src/auth0/management/types/resource_server_agent_subject_claims_schema_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ResourceServerAgentSubjectClaimsSchemaEnum = typing.Union[typing.Literal["off", "auth0-v1"], typing.Any] diff --git a/src/auth0/management/types/resource_server_authorization_policy.py b/src/auth0/management/types/resource_server_authorization_policy.py deleted file mode 100644 index 7b9d9d96..00000000 --- a/src/auth0/management/types/resource_server_authorization_policy.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class ResourceServerAuthorizationPolicy(UniversalBaseModel): - """ - Authorization policy for the resource server. - """ - - policy_id: str = pydantic.Field() - """ - The ID of the authorization policy to apply. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/resource_server_consent_policy_enum.py b/src/auth0/management/types/resource_server_consent_policy_enum.py deleted file mode 100644 index 2e8d9414..00000000 --- a/src/auth0/management/types/resource_server_consent_policy_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ResourceServerConsentPolicyEnum = typing.Union[typing.Literal["transactional-authorization-with-mfa"], typing.Any] diff --git a/src/auth0/management/types/resource_server_proof_of_possession.py b/src/auth0/management/types/resource_server_proof_of_possession.py deleted file mode 100644 index c8601a74..00000000 --- a/src/auth0/management/types/resource_server_proof_of_possession.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .resource_server_proof_of_possession_mechanism_enum import ResourceServerProofOfPossessionMechanismEnum -from .resource_server_proof_of_possession_required_for_enum import ResourceServerProofOfPossessionRequiredForEnum - - -class ResourceServerProofOfPossession(UniversalBaseModel): - """ - Proof-of-Possession configuration for access tokens - """ - - mechanism: ResourceServerProofOfPossessionMechanismEnum - required: bool = pydantic.Field() - """ - Whether the use of Proof-of-Possession is required for the resource server - """ - - required_for: typing.Optional[ResourceServerProofOfPossessionRequiredForEnum] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/resource_server_proof_of_possession_mechanism_enum.py b/src/auth0/management/types/resource_server_proof_of_possession_mechanism_enum.py deleted file mode 100644 index 57f39fd5..00000000 --- a/src/auth0/management/types/resource_server_proof_of_possession_mechanism_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ResourceServerProofOfPossessionMechanismEnum = typing.Union[typing.Literal["mtls", "dpop"], typing.Any] diff --git a/src/auth0/management/types/resource_server_proof_of_possession_required_for_enum.py b/src/auth0/management/types/resource_server_proof_of_possession_required_for_enum.py deleted file mode 100644 index 322056fc..00000000 --- a/src/auth0/management/types/resource_server_proof_of_possession_required_for_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ResourceServerProofOfPossessionRequiredForEnum = typing.Union[ - typing.Literal["public_clients", "all_clients"], typing.Any -] diff --git a/src/auth0/management/types/resource_server_scope.py b/src/auth0/management/types/resource_server_scope.py deleted file mode 100644 index 610d2e39..00000000 --- a/src/auth0/management/types/resource_server_scope.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class ResourceServerScope(UniversalBaseModel): - value: str = pydantic.Field() - """ - Value of this scope. - """ - - description: typing.Optional[str] = pydantic.Field(default=None) - """ - User-friendly description of this scope. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/resource_server_search_response.py b/src/auth0/management/types/resource_server_search_response.py deleted file mode 100644 index 8f2df766..00000000 --- a/src/auth0/management/types/resource_server_search_response.py +++ /dev/null @@ -1,115 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .resource_server_access_token import ResourceServerAccessToken -from .resource_server_agent_subject_claims_response_enum import ResourceServerAgentSubjectClaimsResponseEnum -from .resource_server_authorization_policy import ResourceServerAuthorizationPolicy -from .resource_server_consent_policy_enum import ResourceServerConsentPolicyEnum -from .resource_server_proof_of_possession import ResourceServerProofOfPossession -from .resource_server_scope import ResourceServerScope -from .resource_server_subject_type_authorization import ResourceServerSubjectTypeAuthorization -from .resource_server_token_dialect_response_enum import ResourceServerTokenDialectResponseEnum -from .resource_server_token_encryption import ResourceServerTokenEncryption -from .resource_server_type_enum import ResourceServerTypeEnum -from .signing_algorithm_enum import SigningAlgorithmEnum - - -class ResourceServerSearchResponse(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of the API (resource server). - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Friendly name for this resource server. Can not contain `<` or `>` characters. - """ - - is_system: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this is an Auth0 system API (true) or a custom API (false). - """ - - identifier: typing.Optional[str] = pydantic.Field(default=None) - """ - Unique identifier for the API used as the audience parameter on authorization calls. Can not be changed once set. - """ - - scopes: typing.Optional[typing.List[ResourceServerScope]] = pydantic.Field(default=None) - """ - List of permissions (scopes) that this API uses. - """ - - signing_alg: typing.Optional[SigningAlgorithmEnum] = None - allow_offline_access: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether refresh tokens can be issued for this API (true) or not (false). - """ - - allow_online_access: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether Online Refresh Tokens can be issued for this API (true) or not (false). - """ - - allow_online_access_with_ephemeral_sessions: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether Online Refresh Tokens can be issued even when sessions are configured as ephemeral (true) or not (false). - """ - - skip_consent_for_verifiable_first_party_clients: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether to skip user consent for applications flagged as first party (true) or not (false). - """ - - token_lifetime: typing.Optional[int] = pydantic.Field(default=None) - """ - Expiration value (in seconds) for access tokens issued for this API from the token endpoint. - """ - - token_lifetime_for_web: typing.Optional[int] = pydantic.Field(default=None) - """ - Expiration value (in seconds) for access tokens issued for this API via Implicit or Hybrid Flows. Cannot be greater than the `token_lifetime` value. - """ - - enforce_policies: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether authorization polices are enforced (true) or unenforced (false). - """ - - token_lifetime_for_anonymous_access_tokens: typing.Optional[int] = pydantic.Field(default=None) - """ - Expiration value (in seconds) for anonymous-session access tokens issued for this API. - """ - - token_dialect: typing.Optional[ResourceServerTokenDialectResponseEnum] = None - access_token: typing.Optional[ResourceServerAccessToken] = None - token_encryption: typing.Optional[ResourceServerTokenEncryption] = None - consent_policy: typing.Optional[ResourceServerConsentPolicyEnum] = None - require_consent_non_repudiation: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true, the resource server requires every consent approval to be digitally signed, so the approver cannot later deny a consent they granted. When false, consent decisions do not need a signature. Defaults to false. A configured value is still returned even after the related entitlement is disabled. - """ - - authorization_details: typing.Optional[typing.List[typing.Any]] = None - proof_of_possession: typing.Optional[ResourceServerProofOfPossession] = None - subject_type_authorization: typing.Optional[ResourceServerSubjectTypeAuthorization] = None - authorization_policy: typing.Optional[ResourceServerAuthorizationPolicy] = None - client_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The client ID of the client that this resource server is linked to - """ - - agent_subject_claims: typing.Optional[ResourceServerAgentSubjectClaimsResponseEnum] = None - type: typing.Optional[ResourceServerTypeEnum] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/resource_server_sort_field_enum.py b/src/auth0/management/types/resource_server_sort_field_enum.py deleted file mode 100644 index 34e0182e..00000000 --- a/src/auth0/management/types/resource_server_sort_field_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ResourceServerSortFieldEnum = typing.Union[typing.Literal["identifier", "name", "updated_at"], typing.Any] diff --git a/src/auth0/management/types/resource_server_subject_type_authorization.py b/src/auth0/management/types/resource_server_subject_type_authorization.py deleted file mode 100644 index d6006b7d..00000000 --- a/src/auth0/management/types/resource_server_subject_type_authorization.py +++ /dev/null @@ -1,30 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .resource_server_subject_type_authorization_anonymous_user import ( - ResourceServerSubjectTypeAuthorizationAnonymousUser, -) -from .resource_server_subject_type_authorization_client import ResourceServerSubjectTypeAuthorizationClient -from .resource_server_subject_type_authorization_user import ResourceServerSubjectTypeAuthorizationUser - - -class ResourceServerSubjectTypeAuthorization(UniversalBaseModel): - """ - Defines application access permission for a resource server - """ - - user: typing.Optional[ResourceServerSubjectTypeAuthorizationUser] = None - client: typing.Optional[ResourceServerSubjectTypeAuthorizationClient] = None - anonymous_user: typing.Optional[ResourceServerSubjectTypeAuthorizationAnonymousUser] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/resource_server_subject_type_authorization_anonymous_user.py b/src/auth0/management/types/resource_server_subject_type_authorization_anonymous_user.py deleted file mode 100644 index 23dfd519..00000000 --- a/src/auth0/management/types/resource_server_subject_type_authorization_anonymous_user.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .resource_server_subject_type_authorization_anonymous_user_policy_enum import ( - ResourceServerSubjectTypeAuthorizationAnonymousUserPolicyEnum, -) - - -class ResourceServerSubjectTypeAuthorizationAnonymousUser(UniversalBaseModel): - """ - Access Permissions for anonymous user flows - """ - - policy: typing.Optional[ResourceServerSubjectTypeAuthorizationAnonymousUserPolicyEnum] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/resource_server_subject_type_authorization_anonymous_user_policy_enum.py b/src/auth0/management/types/resource_server_subject_type_authorization_anonymous_user_policy_enum.py deleted file mode 100644 index 3990f227..00000000 --- a/src/auth0/management/types/resource_server_subject_type_authorization_anonymous_user_policy_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ResourceServerSubjectTypeAuthorizationAnonymousUserPolicyEnum = typing.Union[ - typing.Literal["deny_all", "require_client_grant"], typing.Any -] diff --git a/src/auth0/management/types/resource_server_subject_type_authorization_client.py b/src/auth0/management/types/resource_server_subject_type_authorization_client.py deleted file mode 100644 index 9f902c9a..00000000 --- a/src/auth0/management/types/resource_server_subject_type_authorization_client.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .resource_server_subject_type_authorization_client_policy_enum import ( - ResourceServerSubjectTypeAuthorizationClientPolicyEnum, -) - - -class ResourceServerSubjectTypeAuthorizationClient(UniversalBaseModel): - """ - Access Permissions for client flows - """ - - policy: typing.Optional[ResourceServerSubjectTypeAuthorizationClientPolicyEnum] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/resource_server_subject_type_authorization_client_policy_enum.py b/src/auth0/management/types/resource_server_subject_type_authorization_client_policy_enum.py deleted file mode 100644 index 5c97f08b..00000000 --- a/src/auth0/management/types/resource_server_subject_type_authorization_client_policy_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ResourceServerSubjectTypeAuthorizationClientPolicyEnum = typing.Union[ - typing.Literal["deny_all", "require_client_grant"], typing.Any -] diff --git a/src/auth0/management/types/resource_server_subject_type_authorization_user.py b/src/auth0/management/types/resource_server_subject_type_authorization_user.py deleted file mode 100644 index ba65fba6..00000000 --- a/src/auth0/management/types/resource_server_subject_type_authorization_user.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .resource_server_subject_type_authorization_user_policy_enum import ( - ResourceServerSubjectTypeAuthorizationUserPolicyEnum, -) - - -class ResourceServerSubjectTypeAuthorizationUser(UniversalBaseModel): - """ - Access Permissions for user flows - """ - - policy: typing.Optional[ResourceServerSubjectTypeAuthorizationUserPolicyEnum] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/resource_server_subject_type_authorization_user_policy_enum.py b/src/auth0/management/types/resource_server_subject_type_authorization_user_policy_enum.py deleted file mode 100644 index 6d8cdbc6..00000000 --- a/src/auth0/management/types/resource_server_subject_type_authorization_user_policy_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ResourceServerSubjectTypeAuthorizationUserPolicyEnum = typing.Union[ - typing.Literal["allow_all", "deny_all", "require_client_grant"], typing.Any -] diff --git a/src/auth0/management/types/resource_server_token_dialect_response_enum.py b/src/auth0/management/types/resource_server_token_dialect_response_enum.py deleted file mode 100644 index 14c80b5e..00000000 --- a/src/auth0/management/types/resource_server_token_dialect_response_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ResourceServerTokenDialectResponseEnum = typing.Union[ - typing.Literal["access_token", "access_token_authz", "rfc9068_profile", "rfc9068_profile_authz"], typing.Any -] diff --git a/src/auth0/management/types/resource_server_token_dialect_schema_enum.py b/src/auth0/management/types/resource_server_token_dialect_schema_enum.py deleted file mode 100644 index a86de48a..00000000 --- a/src/auth0/management/types/resource_server_token_dialect_schema_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ResourceServerTokenDialectSchemaEnum = typing.Union[ - typing.Literal["access_token", "access_token_authz", "rfc9068_profile", "rfc9068_profile_authz"], typing.Any -] diff --git a/src/auth0/management/types/resource_server_token_encryption.py b/src/auth0/management/types/resource_server_token_encryption.py deleted file mode 100644 index f04f9604..00000000 --- a/src/auth0/management/types/resource_server_token_encryption.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .resource_server_token_encryption_format_enum import ResourceServerTokenEncryptionFormatEnum -from .resource_server_token_encryption_key import ResourceServerTokenEncryptionKey - - -class ResourceServerTokenEncryption(UniversalBaseModel): - format: ResourceServerTokenEncryptionFormatEnum - encryption_key: ResourceServerTokenEncryptionKey - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/resource_server_token_encryption_algorithm_enum.py b/src/auth0/management/types/resource_server_token_encryption_algorithm_enum.py deleted file mode 100644 index 64388d0b..00000000 --- a/src/auth0/management/types/resource_server_token_encryption_algorithm_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ResourceServerTokenEncryptionAlgorithmEnum = typing.Union[ - typing.Literal["RSA-OAEP-256", "RSA-OAEP-384", "RSA-OAEP-512"], typing.Any -] diff --git a/src/auth0/management/types/resource_server_token_encryption_format_enum.py b/src/auth0/management/types/resource_server_token_encryption_format_enum.py deleted file mode 100644 index aa0b9676..00000000 --- a/src/auth0/management/types/resource_server_token_encryption_format_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ResourceServerTokenEncryptionFormatEnum = typing.Union[typing.Literal["compact-nested-jwe"], typing.Any] diff --git a/src/auth0/management/types/resource_server_token_encryption_key.py b/src/auth0/management/types/resource_server_token_encryption_key.py deleted file mode 100644 index 7f85ee90..00000000 --- a/src/auth0/management/types/resource_server_token_encryption_key.py +++ /dev/null @@ -1,34 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .resource_server_token_encryption_algorithm_enum import ResourceServerTokenEncryptionAlgorithmEnum - - -class ResourceServerTokenEncryptionKey(UniversalBaseModel): - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of the encryption key. - """ - - alg: ResourceServerTokenEncryptionAlgorithmEnum - kid: typing.Optional[str] = pydantic.Field(default=None) - """ - Key ID. - """ - - pem: str = pydantic.Field() - """ - PEM-formatted public key. Must be JSON escaped. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/resource_server_type_enum.py b/src/auth0/management/types/resource_server_type_enum.py deleted file mode 100644 index d73a67c9..00000000 --- a/src/auth0/management/types/resource_server_type_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ResourceServerTypeEnum = typing.Union[ - typing.Literal["universal_commerce_protocol_server", "model_context_protocol_server"], typing.Any -] diff --git a/src/auth0/management/types/resource_server_verification_key_pem_certificate.py b/src/auth0/management/types/resource_server_verification_key_pem_certificate.py deleted file mode 100644 index a9081a81..00000000 --- a/src/auth0/management/types/resource_server_verification_key_pem_certificate.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ResourceServerVerificationKeyPemCertificate = str -""" -PEM-encoded certificate -""" diff --git a/src/auth0/management/types/revoked_signing_keys_response_content.py b/src/auth0/management/types/revoked_signing_keys_response_content.py deleted file mode 100644 index 3a8ac6f8..00000000 --- a/src/auth0/management/types/revoked_signing_keys_response_content.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class RevokedSigningKeysResponseContent(UniversalBaseModel): - cert: str = pydantic.Field() - """ - Revoked key certificate - """ - - kid: str = pydantic.Field() - """ - Revoked key id - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/role.py b/src/auth0/management/types/role.py deleted file mode 100644 index 1938f4b0..00000000 --- a/src/auth0/management/types/role.py +++ /dev/null @@ -1,37 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .role_owner_id import RoleOwnerId -from .role_type_enum import RoleTypeEnum - - -class Role(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID for this role. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of this role. - """ - - description: typing.Optional[str] = pydantic.Field(default=None) - """ - Description of this role. - """ - - type: typing.Optional[RoleTypeEnum] = None - owner_id: typing.Optional[RoleOwnerId] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/role_group.py b/src/auth0/management/types/role_group.py deleted file mode 100644 index 23fd20b9..00000000 --- a/src/auth0/management/types/role_group.py +++ /dev/null @@ -1,67 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class RoleGroup(UniversalBaseModel): - """ - A group assigned to a role in the context of an organization. - """ - - id: str = pydantic.Field() - """ - Unique identifier for the group (service-generated). - """ - - name: str = pydantic.Field() - """ - Name of the group. Must be unique within its connection. Must contain between 1 and 128 printable ASCII characters. - """ - - external_id: typing.Optional[str] = pydantic.Field(default=None) - """ - External identifier for the group, often used for SCIM synchronization. Max length of 256 characters. - """ - - connection_id: typing.Optional[str] = pydantic.Field(default=None) - """ - Identifier for the connection this group belongs to (if a connection group). - """ - - organization_id: typing.Optional[str] = pydantic.Field(default=None) - """ - Identifier for the organization this group belongs to (if an organization group). - """ - - tenant_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Identifier for the tenant this group belongs to. - """ - - description: typing.Optional[str] = pydantic.Field(default=None) - """ - Description of the group. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Timestamp of when the group was created. - """ - - updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Timestamp of when the group was last updated. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/role_member.py b/src/auth0/management/types/role_member.py deleted file mode 100644 index 81bc859e..00000000 --- a/src/auth0/management/types/role_member.py +++ /dev/null @@ -1,37 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class RoleMember(UniversalBaseModel): - user_id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of this user. - """ - - picture: typing.Optional[str] = pydantic.Field(default=None) - """ - URL to a picture for this user. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of this user. - """ - - email: typing.Optional[str] = pydantic.Field(default=None) - """ - Email address of this user. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/role_owner_id.py b/src/auth0/management/types/role_owner_id.py deleted file mode 100644 index bf828cce..00000000 --- a/src/auth0/management/types/role_owner_id.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -RoleOwnerId = str -""" -The id of the entity that owns this role: an organization id, or "auth0" for Auth0-managed System Roles. -""" diff --git a/src/auth0/management/types/role_owner_id_filter.py b/src/auth0/management/types/role_owner_id_filter.py deleted file mode 100644 index 6c0fba28..00000000 --- a/src/auth0/management/types/role_owner_id_filter.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -RoleOwnerIdFilter = str -""" -Filter organization-level roles by owner ID. Use an organization ID to filter that organization's roles, or "auth0" to retrieve Auth0-managed System Roles. Required when type is "organization". -""" diff --git a/src/auth0/management/types/role_type_enum.py b/src/auth0/management/types/role_type_enum.py deleted file mode 100644 index 73b06d86..00000000 --- a/src/auth0/management/types/role_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -RoleTypeEnum = typing.Union[typing.Literal["tenant", "organization"], typing.Any] diff --git a/src/auth0/management/types/role_user.py b/src/auth0/management/types/role_user.py deleted file mode 100644 index d9d78dff..00000000 --- a/src/auth0/management/types/role_user.py +++ /dev/null @@ -1,37 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class RoleUser(UniversalBaseModel): - user_id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of this user. - """ - - picture: typing.Optional[str] = pydantic.Field(default=None) - """ - URL to a picture for this user. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of this user. - """ - - email: typing.Optional[str] = pydantic.Field(default=None) - """ - Email address of this user. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/rollback_action_module_response_content.py b/src/auth0/management/types/rollback_action_module_response_content.py deleted file mode 100644 index 1b567299..00000000 --- a/src/auth0/management/types/rollback_action_module_response_content.py +++ /dev/null @@ -1,73 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .action_module_dependency import ActionModuleDependency -from .action_module_secret import ActionModuleSecret -from .action_module_version_reference import ActionModuleVersionReference - - -class RollbackActionModuleResponseContent(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - The unique ID of the module. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The name of the module. - """ - - code: typing.Optional[str] = pydantic.Field(default=None) - """ - The source code from the module's draft version. - """ - - dependencies: typing.Optional[typing.List[ActionModuleDependency]] = pydantic.Field(default=None) - """ - The npm dependencies from the module's draft version. - """ - - secrets: typing.Optional[typing.List[ActionModuleSecret]] = pydantic.Field(default=None) - """ - The secrets from the module's draft version (names and timestamps only, values never returned). - """ - - actions_using_module_total: typing.Optional[int] = pydantic.Field(default=None) - """ - The number of deployed actions using this module. - """ - - all_changes_published: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether all draft changes have been published as a version. - """ - - latest_version_number: typing.Optional[int] = pydantic.Field(default=None) - """ - The version number of the latest published version. Omitted if no versions have been published. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Timestamp when the module was created. - """ - - updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Timestamp when the module was last updated. - """ - - latest_version: typing.Optional[ActionModuleVersionReference] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/rotate_client_secret_response_content.py b/src/auth0/management/types/rotate_client_secret_response_content.py deleted file mode 100644 index 6759842e..00000000 --- a/src/auth0/management/types/rotate_client_secret_response_content.py +++ /dev/null @@ -1,299 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .anonymous_sessions import AnonymousSessions -from .b_2_b_integration_configuration import B2BIntegrationConfiguration -from .client_addons import ClientAddons -from .client_anonymous_session_transfer_network_binding_enum import ClientAnonymousSessionTransferNetworkBindingEnum -from .client_app_type_enum import ClientAppTypeEnum -from .client_async_approval_notifications_channels_api_post_configuration import ( - ClientAsyncApprovalNotificationsChannelsApiPostConfiguration, -) -from .client_authentication_method import ClientAuthenticationMethod -from .client_compliance_level_enum import ClientComplianceLevelEnum -from .client_default_organization import ClientDefaultOrganization -from .client_encryption_key import ClientEncryptionKey -from .client_external_metadata_created_by_enum import ClientExternalMetadataCreatedByEnum -from .client_external_metadata_status_enum import ClientExternalMetadataStatusEnum -from .client_external_metadata_type_enum import ClientExternalMetadataTypeEnum -from .client_jwt_configuration import ClientJwtConfiguration -from .client_metadata import ClientMetadata -from .client_mobile import ClientMobile -from .client_my_organization_response_configuration import ClientMyOrganizationResponseConfiguration -from .client_oidc_backchannel_logout_settings import ClientOidcBackchannelLogoutSettings -from .client_oidc_support import ClientOidcSupport -from .client_organization_discovery_enum import ClientOrganizationDiscoveryEnum -from .client_organization_require_behavior_enum import ClientOrganizationRequireBehaviorEnum -from .client_organization_usage_enum import ClientOrganizationUsageEnum -from .client_redirection_policy_enum import ClientRedirectionPolicyEnum -from .client_refresh_token_configuration import ClientRefreshTokenConfiguration -from .client_session_transfer_configuration import ClientSessionTransferConfiguration -from .client_signed_request_object_with_credential_id import ClientSignedRequestObjectWithCredentialId -from .client_signing_keys import ClientSigningKeys -from .client_third_party_security_mode_enum import ClientThirdPartySecurityModeEnum -from .client_token_endpoint_auth_method_enum import ClientTokenEndpointAuthMethodEnum -from .client_token_exchange_configuration import ClientTokenExchangeConfiguration -from .client_token_vault_privileged_access_with_credential_id import ClientTokenVaultPrivilegedAccessWithCredentialId -from .express_configuration import ExpressConfiguration -from .fed_cm_login import FedCmLogin -from .google_account_linking_configuration import GoogleAccountLinkingConfiguration -from .identity_assertion_authorization_grant import IdentityAssertionAuthorizationGrant -from .native_social_login import NativeSocialLogin -from .token_quota import TokenQuota - - -class RotateClientSecretResponseContent(UniversalBaseModel): - client_id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of this client. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The ISO 8601 timestamp of when this client was created. - """ - - updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The ISO 8601 timestamp of when this client was last updated. - """ - - tenant: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of the tenant this client belongs to. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of this client (min length: 1 character, does not allow `<` or `>`). - """ - - description: typing.Optional[str] = pydantic.Field(default=None) - """ - Free text description of this client (max length: 140 characters). - """ - - global_: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="global"), - pydantic.Field( - alias="global", - description="Whether this is your global 'All Applications' client representing legacy tenant settings (true) or a regular client (false).", - ), - ] = None - """ - Whether this is your global 'All Applications' client representing legacy tenant settings (true) or a regular client (false). - """ - - client_secret: typing.Optional[str] = pydantic.Field(default=None) - """ - Client secret (which you must not make public). - """ - - app_type: typing.Optional[ClientAppTypeEnum] = None - logo_uri: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the logo to display for this client. Recommended size is 150x150 pixels. - """ - - is_first_party: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this client a first party client (true) or not (false). - """ - - oidc_conformant: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this client conforms to strict OIDC specifications (true) or uses legacy features (false). - """ - - callbacks: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Comma-separated list of URLs whitelisted for Auth0 to use as a callback to the client after authentication. - """ - - allowed_origins: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Comma-separated list of URLs allowed to make requests from JavaScript to Auth0 API (typically used with CORS). By default, all your callback URLs will be allowed. This field allows you to enter other origins if necessary. You can also use wildcards at the subdomain level (e.g., https://*.contoso.com). Query strings and hash information are not taken into account when validating these URLs. - """ - - web_origins: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Comma-separated list of allowed origins for use with Cross-Origin Authentication, Device Flow, and web message response mode. - """ - - client_aliases: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - List of audiences/realms for SAML protocol. Used by the wsfed addon. - """ - - allowed_clients: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - List of allow clients and API ids that are allowed to make delegation requests. Empty means all all your clients are allowed. - """ - - allowed_logout_urls: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Comma-separated list of URLs that are valid to redirect to after logout from Auth0. Wildcards are allowed for subdomains. - """ - - session_transfer: typing.Optional[ClientSessionTransferConfiguration] = None - oidc_logout: typing.Optional[ClientOidcBackchannelLogoutSettings] = None - grant_types: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - List of grant types supported for this application. Can include `authorization_code`, `implicit`, `refresh_token`, `client_credentials`, `password`, `http://auth0.com/oauth/grant-type/password-realm`, `http://auth0.com/oauth/grant-type/mfa-oob`, `http://auth0.com/oauth/grant-type/mfa-otp`, `http://auth0.com/oauth/grant-type/mfa-recovery-code`, `urn:openid:params:grant-type:ciba`, `urn:ietf:params:oauth:grant-type:device_code`, and `urn:auth0:params:oauth:grant-type:token-exchange:federated-connection-access-token`. - """ - - jwt_configuration: typing.Optional[ClientJwtConfiguration] = None - signing_keys: typing.Optional[ClientSigningKeys] = None - encryption_key: typing.Optional[ClientEncryptionKey] = None - sso: typing.Optional[bool] = pydantic.Field(default=None) - """ - Applies only to SSO clients and determines whether Auth0 will handle Single Sign On (true) or whether the Identity Provider will (false). - """ - - sso_disabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether Single Sign On is disabled (true) or enabled (true). Defaults to true. - """ - - cross_origin_authentication: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this client can be used to make cross-origin authentication requests (true) or it is not allowed to make such requests (false). - """ - - cross_origin_loc: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the location in your site where the cross origin verification takes place for the cross-origin auth flow when performing Auth in your own domain instead of Auth0 hosted login page. - """ - - custom_login_page_on: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether a custom login page is to be used (true) or the default provided login page (false). - """ - - custom_login_page: typing.Optional[str] = pydantic.Field(default=None) - """ - The content (HTML, CSS, JS) of the custom login page. - """ - - custom_login_page_preview: typing.Optional[str] = pydantic.Field(default=None) - """ - The content (HTML, CSS, JS) of the custom login page. (Used on Previews) - """ - - form_template: typing.Optional[str] = pydantic.Field(default=None) - """ - HTML form template to be used for WS-Federation. - """ - - addons: typing.Optional[ClientAddons] = None - token_endpoint_auth_method: typing.Optional[ClientTokenEndpointAuthMethodEnum] = None - is_token_endpoint_ip_header_trusted: typing.Optional[bool] = pydantic.Field(default=None) - """ - If true, trust that the IP specified in the `auth0-forwarded-for` header is the end-user's IP for brute-force-protection on token endpoint. - """ - - client_metadata: typing.Optional[ClientMetadata] = None - mobile: typing.Optional[ClientMobile] = None - initiate_login_uri: typing.Optional[str] = pydantic.Field(default=None) - """ - Initiate login uri, must be https - """ - - native_social_login: typing.Optional[NativeSocialLogin] = None - fedcm_login: typing.Optional[FedCmLogin] = None - refresh_token: typing.Optional[ClientRefreshTokenConfiguration] = None - default_organization: typing.Optional[ClientDefaultOrganization] = None - organization_usage: typing.Optional[ClientOrganizationUsageEnum] = None - organization_require_behavior: typing.Optional[ClientOrganizationRequireBehaviorEnum] = None - organization_discovery_methods: typing.Optional[typing.List[ClientOrganizationDiscoveryEnum]] = pydantic.Field( - default=None - ) - """ - Defines the available methods for organization discovery during the `pre_login_prompt`. Users can discover their organization either by `email`, `organization_name` or both. - """ - - client_authentication_methods: typing.Optional[ClientAuthenticationMethod] = None - require_pushed_authorization_requests: typing.Optional[bool] = pydantic.Field(default=None) - """ - Makes the use of Pushed Authorization Requests mandatory for this client - """ - - require_proof_of_possession: typing.Optional[bool] = pydantic.Field(default=None) - """ - Makes the use of Proof-of-Possession mandatory for this client - """ - - signed_request_object: typing.Optional[ClientSignedRequestObjectWithCredentialId] = None - token_vault_privileged_access: typing.Optional[ClientTokenVaultPrivilegedAccessWithCredentialId] = None - compliance_level: typing.Optional[ClientComplianceLevelEnum] = None - skip_non_verifiable_callback_uri_confirmation_prompt: typing.Optional[bool] = pydantic.Field(default=None) - """ - Controls whether a confirmation prompt is shown during login flows when the redirect URI uses non-verifiable callback URIs (for example, a custom URI schema such as `myapp://`, or `localhost`). - If set to true, a confirmation prompt will not be shown. We recommend that this is set to false for improved protection from malicious apps. - See https://auth0.com/docs/secure/security-guidance/measures-against-app-impersonation for more information. - """ - - token_exchange: typing.Optional[ClientTokenExchangeConfiguration] = None - par_request_expiry: typing.Optional[int] = pydantic.Field(default=None) - """ - Specifies how long, in seconds, a Pushed Authorization Request URI remains valid - """ - - token_quota: typing.Optional[TokenQuota] = None - express_configuration: typing.Optional[ExpressConfiguration] = None - b_2_b_integration_configuration: typing_extensions.Annotated[ - typing.Optional[B2BIntegrationConfiguration], - FieldMetadata(alias="b2b_integration_configuration"), - pydantic.Field(alias="b2b_integration_configuration"), - ] = None - my_organization_configuration: typing.Optional[ClientMyOrganizationResponseConfiguration] = None - google_account_linking: typing.Optional[GoogleAccountLinkingConfiguration] = None - identity_assertion_authorization_grant: typing.Optional[IdentityAssertionAuthorizationGrant] = None - anonymous_sessions: typing.Optional[AnonymousSessions] = None - enforce_anon_session_transfer_network_binding: typing.Optional[ClientAnonymousSessionTransferNetworkBindingEnum] = ( - None - ) - third_party_security_mode: typing.Optional[ClientThirdPartySecurityModeEnum] = None - oidc_support: typing.Optional[ClientOidcSupport] = None - redirection_policy: typing.Optional[ClientRedirectionPolicyEnum] = None - resource_server_identifier: typing.Optional[str] = pydantic.Field(default=None) - """ - The identifier of the resource server that this client is linked to. - """ - - async_approval_notification_channels: typing.Optional[ - ClientAsyncApprovalNotificationsChannelsApiPostConfiguration - ] = None - external_metadata_type: typing.Optional[ClientExternalMetadataTypeEnum] = None - external_metadata_created_by: typing.Optional[ClientExternalMetadataCreatedByEnum] = None - external_metadata_status: typing.Optional[ClientExternalMetadataStatusEnum] = None - agent_id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of the agent associated with this client. - """ - - external_client_id: typing.Optional[str] = pydantic.Field(default=None) - """ - An alternate client identifier to be used during authorization flows. Only supports CIMD-based client identifiers. - """ - - jwks_uri: typing.Optional[str] = pydantic.Field(default=None) - """ - URL for the JSON Web Key Set (JWKS) containing the public keys used for private_key_jwt authentication. Only present for CIMD clients using private_key_jwt authentication. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/rotate_connection_keys_request_content.py b/src/auth0/management/types/rotate_connection_keys_request_content.py deleted file mode 100644 index 39e0f92b..00000000 --- a/src/auth0/management/types/rotate_connection_keys_request_content.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .connection_key_use_enum import ConnectionKeyUseEnum -from .rotate_connection_keys_signing_alg_enum import RotateConnectionKeysSigningAlgEnum - - -class RotateConnectionKeysRequestContent(UniversalBaseModel): - key_use: typing.Optional[ConnectionKeyUseEnum] = pydantic.Field(default=None) - """ - Whether to rotate the signing key (default) or the encryption key for the connection. - """ - - signing_alg: typing.Optional[RotateConnectionKeysSigningAlgEnum] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/rotate_connection_keys_signing_alg_enum.py b/src/auth0/management/types/rotate_connection_keys_signing_alg_enum.py deleted file mode 100644 index 9e4618c0..00000000 --- a/src/auth0/management/types/rotate_connection_keys_signing_alg_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -RotateConnectionKeysSigningAlgEnum = typing.Union[ - typing.Literal["RS256", "RS384", "RS512", "PS256", "PS384", "ES256", "ES384"], typing.Any -] diff --git a/src/auth0/management/types/rotate_connections_keys_response_content.py b/src/auth0/management/types/rotate_connections_keys_response_content.py deleted file mode 100644 index 26f40dee..00000000 --- a/src/auth0/management/types/rotate_connections_keys_response_content.py +++ /dev/null @@ -1,56 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .connection_key_use_enum import ConnectionKeyUseEnum - - -class RotateConnectionsKeysResponseContent(UniversalBaseModel): - kid: str = pydantic.Field() - """ - The key id of the signing or encryption key - """ - - cert: str = pydantic.Field() - """ - The public certificate of the signing or encryption key - """ - - pkcs: typing.Optional[str] = pydantic.Field(default=None) - """ - The public certificate of the signing or encryption key in pkcs7 format - """ - - next: typing.Optional[bool] = pydantic.Field(default=None) - """ - True if the key is the the next key - """ - - fingerprint: str = pydantic.Field() - """ - The cert fingerprint - """ - - thumbprint: str = pydantic.Field() - """ - The cert thumbprint - """ - - algorithm: typing.Optional[str] = pydantic.Field(default=None) - """ - Key algorithm: a signing algorithm for signing keys, or a key-management algorithm for encryption keys - """ - - key_use: typing.Optional[ConnectionKeyUseEnum] = None - subject_dn: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/rotate_signing_keys_response_content.py b/src/auth0/management/types/rotate_signing_keys_response_content.py deleted file mode 100644 index 921b92c2..00000000 --- a/src/auth0/management/types/rotate_signing_keys_response_content.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class RotateSigningKeysResponseContent(UniversalBaseModel): - cert: str = pydantic.Field() - """ - Next key certificate - """ - - kid: str = pydantic.Field() - """ - Next key id - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/rule.py b/src/auth0/management/types/rule.py deleted file mode 100644 index c7a0065e..00000000 --- a/src/auth0/management/types/rule.py +++ /dev/null @@ -1,47 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class Rule(UniversalBaseModel): - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of this rule. - """ - - id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of this rule. - """ - - enabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether the rule is enabled (true), or disabled (false). - """ - - script: typing.Optional[str] = pydantic.Field(default=None) - """ - Code to be executed when this rule runs. - """ - - order: typing.Optional[float] = pydantic.Field(default=None) - """ - Order that this rule should execute in relative to other rules. Lower-valued rules execute first. - """ - - stage: typing.Optional[str] = pydantic.Field(default=None) - """ - Execution stage of this rule. Can be `login_success`, `login_failure`, or `pre_authorize`. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/rules_config.py b/src/auth0/management/types/rules_config.py deleted file mode 100644 index f716d6ee..00000000 --- a/src/auth0/management/types/rules_config.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class RulesConfig(UniversalBaseModel): - key: typing.Optional[str] = pydantic.Field(default=None) - """ - Key for a rules config variable. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/scim_configuration.py b/src/auth0/management/types/scim_configuration.py deleted file mode 100644 index 68c9b757..00000000 --- a/src/auth0/management/types/scim_configuration.py +++ /dev/null @@ -1,59 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .scim_mapping_item import ScimMappingItem - - -class ScimConfiguration(UniversalBaseModel): - connection_id: str = pydantic.Field() - """ - The connection's identifier - """ - - connection_name: str = pydantic.Field() - """ - The connection's name - """ - - strategy: str = pydantic.Field() - """ - The connection's strategy - """ - - tenant_name: str = pydantic.Field() - """ - The tenant's name - """ - - user_id_attribute: str = pydantic.Field() - """ - User ID attribute for generating unique user ids - """ - - mapping: typing.List[ScimMappingItem] = pydantic.Field() - """ - The mapping between auth0 and SCIM - """ - - created_at: dt.datetime = pydantic.Field() - """ - The ISO 8601 date and time the SCIM configuration was created at - """ - - updated_on: dt.datetime = pydantic.Field() - """ - The ISO 8601 date and time the SCIM configuration was last updated on - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/scim_mapping_item.py b/src/auth0/management/types/scim_mapping_item.py deleted file mode 100644 index 5fc6dd55..00000000 --- a/src/auth0/management/types/scim_mapping_item.py +++ /dev/null @@ -1,33 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata - - -class ScimMappingItem(UniversalBaseModel): - auth_0: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="auth0"), - pydantic.Field(alias="auth0", description="The field location in the auth0 schema"), - ] = None - """ - The field location in the auth0 schema - """ - - scim: typing.Optional[str] = pydantic.Field(default=None) - """ - The field location in the SCIM schema - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/scim_token_item.py b/src/auth0/management/types/scim_token_item.py deleted file mode 100644 index e779a840..00000000 --- a/src/auth0/management/types/scim_token_item.py +++ /dev/null @@ -1,42 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class ScimTokenItem(UniversalBaseModel): - token_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The token's identifier - """ - - scopes: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - The scopes of the scim token - """ - - created_at: typing.Optional[str] = pydantic.Field(default=None) - """ - The token's created at timestamp - """ - - valid_until: typing.Optional[str] = pydantic.Field(default=None) - """ - The token's valid until timestamp - """ - - last_used_at: typing.Optional[str] = pydantic.Field(default=None) - """ - The token's last used at timestamp - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/screen_group_name_enum.py b/src/auth0/management/types/screen_group_name_enum.py deleted file mode 100644 index dcba880a..00000000 --- a/src/auth0/management/types/screen_group_name_enum.py +++ /dev/null @@ -1,101 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ScreenGroupNameEnum = typing.Union[ - typing.Literal[ - "login", - "login-id", - "login-password", - "login-passwordless-email-code", - "login-passwordless-email-link", - "login-passwordless-sms-otp", - "login-email-verification", - "signup", - "signup-id", - "signup-password", - "phone-identifier-enrollment", - "phone-identifier-challenge", - "email-identifier-challenge", - "reset-password-request", - "reset-password-email", - "reset-password", - "reset-password-success", - "reset-password-error", - "reset-password-mfa-email-challenge", - "reset-password-mfa-otp-challenge", - "reset-password-mfa-phone-challenge", - "reset-password-mfa-push-challenge-push", - "reset-password-mfa-recovery-code-challenge", - "reset-password-mfa-sms-challenge", - "reset-password-mfa-voice-challenge", - "reset-password-mfa-webauthn-platform-challenge", - "reset-password-mfa-webauthn-roaming-challenge", - "custom-form", - "consent", - "consent-tenant-scopes", - "pending-consent", - "customized-consent", - "logout", - "logout-complete", - "logout-aborted", - "mfa-push-welcome", - "mfa-push-enrollment-qr", - "mfa-push-enrollment-code", - "mfa-push-success", - "mfa-push-challenge-push", - "mfa-push-list", - "mfa-otp-enrollment-qr", - "mfa-otp-enrollment-code", - "mfa-otp-challenge", - "mfa-voice-enrollment", - "mfa-voice-challenge", - "mfa-phone-challenge", - "mfa-phone-enrollment", - "mfa-webauthn-platform-enrollment", - "mfa-webauthn-roaming-enrollment", - "mfa-webauthn-platform-challenge", - "mfa-webauthn-roaming-challenge", - "mfa-webauthn-change-key-nickname", - "mfa-webauthn-enrollment-success", - "mfa-webauthn-error", - "mfa-webauthn-not-available-error", - "mfa-country-codes", - "mfa-sms-enrollment", - "mfa-sms-challenge", - "mfa-sms-list", - "mfa-email-challenge", - "mfa-email-list", - "mfa-recovery-code-enrollment", - "mfa-recovery-code-challenge-new-code", - "mfa-recovery-code-challenge", - "mfa-detect-browser-capabilities", - "mfa-enroll-result", - "mfa-login-options", - "mfa-begin-enroll-options", - "status", - "device-code-activation", - "device-code-activation-allowed", - "device-code-activation-denied", - "device-code-confirmation", - "email-verification-result", - "email-otp-challenge", - "organization-selection", - "organization-picker", - "pre-login-organization-picker", - "accept-invitation", - "redeem-ticket", - "passkey-enrollment", - "passkey-enrollment-local", - "interstitial-captcha", - "brute-force-protection-unblock", - "brute-force-protection-unblock-success", - "brute-force-protection-unblock-failure", - "async-approval-error", - "async-approval-accepted", - "async-approval-denied", - "confirmation", - "async-approval-wrong-user", - ], - typing.Any, -] diff --git a/src/auth0/management/types/search_client_grants_response_content.py b/src/auth0/management/types/search_client_grants_response_content.py deleted file mode 100644 index de7de006..00000000 --- a/src/auth0/management/types/search_client_grants_response_content.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .client_grant_response_content import ClientGrantResponseContent - - -class SearchClientGrantsResponseContent(UniversalBaseModel): - client_grants: typing.List[ClientGrantResponseContent] = pydantic.Field() - """ - Array of client grant objects matching the search criteria. - """ - - next: typing.Optional[str] = pydantic.Field(default=None) - """ - Cursor for retrieving the next page of results. Omitted if there are no more results. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/search_clients_response_content.py b/src/auth0/management/types/search_clients_response_content.py deleted file mode 100644 index 207e6bb7..00000000 --- a/src/auth0/management/types/search_clients_response_content.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .client_search_response import ClientSearchResponse - - -class SearchClientsResponseContent(UniversalBaseModel): - clients: typing.List[ClientSearchResponse] = pydantic.Field() - """ - Array of client objects matching the search criteria. - """ - - next: typing.Optional[str] = pydantic.Field(default=None) - """ - Cursor for retrieving the next page of results. Absent when no more results are available. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/search_engine_versions_enum.py b/src/auth0/management/types/search_engine_versions_enum.py deleted file mode 100644 index ce9d038c..00000000 --- a/src/auth0/management/types/search_engine_versions_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -SearchEngineVersionsEnum = typing.Union[typing.Literal["v1", "v2", "v3"], typing.Any] diff --git a/src/auth0/management/types/search_organization.py b/src/auth0/management/types/search_organization.py deleted file mode 100644 index 79a03ece..00000000 --- a/src/auth0/management/types/search_organization.py +++ /dev/null @@ -1,43 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .organization_branding import OrganizationBranding -from .organization_third_party_client_access_enum import OrganizationThirdPartyClientAccessEnum -from .token_quota import TokenQuota - - -class SearchOrganization(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - Organization identifier. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The name of this organization. - """ - - display_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Friendly name of this organization. - """ - - branding: typing.Optional[OrganizationBranding] = None - token_quota: typing.Optional[TokenQuota] = None - third_party_client_access: typing.Optional[OrganizationThirdPartyClientAccessEnum] = None - is_app_entitlement_active: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether app entitlement is active for this organization. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/search_organizations_paginated_response_content.py b/src/auth0/management/types/search_organizations_paginated_response_content.py deleted file mode 100644 index a8d2c7cd..00000000 --- a/src/auth0/management/types/search_organizations_paginated_response_content.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .search_organization import SearchOrganization - - -class SearchOrganizationsPaginatedResponseContent(UniversalBaseModel): - organizations: typing.List[SearchOrganization] = pydantic.Field() - """ - Array of organization objects matching the search criteria. - """ - - next: typing.Optional[str] = pydantic.Field(default=None) - """ - Cursor for retrieving the next page of results. Absent when no more results are available. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/search_parser_enum.py b/src/auth0/management/types/search_parser_enum.py deleted file mode 100644 index 17775898..00000000 --- a/src/auth0/management/types/search_parser_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -SearchParserEnum = typing.Union[typing.Literal["scim", "lucene"], typing.Any] diff --git a/src/auth0/management/types/search_resource_servers_response_content.py b/src/auth0/management/types/search_resource_servers_response_content.py deleted file mode 100644 index c56eb540..00000000 --- a/src/auth0/management/types/search_resource_servers_response_content.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .resource_server_search_response import ResourceServerSearchResponse - - -class SearchResourceServersResponseContent(UniversalBaseModel): - resource_servers: typing.List[ResourceServerSearchResponse] = pydantic.Field() - """ - Array of resource server objects matching the search criteria. - """ - - next: typing.Optional[str] = pydantic.Field(default=None) - """ - Cursor for retrieving the next page of results. Omitted if there are no more results. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/segment.py b/src/auth0/management/types/segment.py deleted file mode 100644 index e0cd89d6..00000000 --- a/src/auth0/management/types/segment.py +++ /dev/null @@ -1,30 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .segment_rule import SegmentRule -from .segment_status_enum import SegmentStatusEnum -from .segment_type_enum import SegmentTypeEnum - - -class Segment(UniversalBaseModel): - id: str - name: str - description: typing.Optional[str] = None - type: SegmentTypeEnum - status: SegmentStatusEnum - rules: typing.List[SegmentRule] - created_at: dt.datetime - updated_at: dt.datetime - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/segment_contains_expression.py b/src/auth0/management/types/segment_contains_expression.py deleted file mode 100644 index d1c084a7..00000000 --- a/src/auth0/management/types/segment_contains_expression.py +++ /dev/null @@ -1,19 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class SegmentContainsExpression(UniversalBaseModel): - contains: typing.List[str] - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/segment_ends_with_expression.py b/src/auth0/management/types/segment_ends_with_expression.py deleted file mode 100644 index ba5c8aee..00000000 --- a/src/auth0/management/types/segment_ends_with_expression.py +++ /dev/null @@ -1,19 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class SegmentEndsWithExpression(UniversalBaseModel): - ends_with: typing.List[str] - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/segment_exists_expression.py b/src/auth0/management/types/segment_exists_expression.py deleted file mode 100644 index 727d9d21..00000000 --- a/src/auth0/management/types/segment_exists_expression.py +++ /dev/null @@ -1,19 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class SegmentExistsExpression(UniversalBaseModel): - exists: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/segment_match_conditions.py b/src/auth0/management/types/segment_match_conditions.py deleted file mode 100644 index ef905a7e..00000000 --- a/src/auth0/management/types/segment_match_conditions.py +++ /dev/null @@ -1,34 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .segment_match_expression import SegmentMatchExpression - - -class SegmentMatchConditions(UniversalBaseModel): - """ - Attribute conditions that must match. - """ - - client_id: typing.Optional[SegmentMatchExpression] = None - connection: typing.Optional[SegmentMatchExpression] = None - connection_type: typing.Optional[SegmentMatchExpression] = None - organization_id: typing.Optional[SegmentMatchExpression] = None - domain: typing.Optional[SegmentMatchExpression] = None - device_type: typing.Optional[SegmentMatchExpression] = None - browser: typing.Optional[SegmentMatchExpression] = None - platform: typing.Optional[SegmentMatchExpression] = None - user_agent: typing.Optional[SegmentMatchExpression] = None - country: typing.Optional[SegmentMatchExpression] = None - region: typing.Optional[SegmentMatchExpression] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/segment_match_expression.py b/src/auth0/management/types/segment_match_expression.py deleted file mode 100644 index b440d326..00000000 --- a/src/auth0/management/types/segment_match_expression.py +++ /dev/null @@ -1,16 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .segment_contains_expression import SegmentContainsExpression -from .segment_ends_with_expression import SegmentEndsWithExpression -from .segment_exists_expression import SegmentExistsExpression -from .segment_starts_with_expression import SegmentStartsWithExpression - -SegmentMatchExpression = typing.Union[ - typing.List[str], - SegmentContainsExpression, - SegmentStartsWithExpression, - SegmentEndsWithExpression, - SegmentExistsExpression, -] diff --git a/src/auth0/management/types/segment_not_match_conditions.py b/src/auth0/management/types/segment_not_match_conditions.py deleted file mode 100644 index f3810d46..00000000 --- a/src/auth0/management/types/segment_not_match_conditions.py +++ /dev/null @@ -1,34 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .segment_match_expression import SegmentMatchExpression - - -class SegmentNotMatchConditions(UniversalBaseModel): - """ - Attribute conditions that must not match. - """ - - client_id: typing.Optional[SegmentMatchExpression] = None - connection: typing.Optional[SegmentMatchExpression] = None - connection_type: typing.Optional[SegmentMatchExpression] = None - organization_id: typing.Optional[SegmentMatchExpression] = None - domain: typing.Optional[SegmentMatchExpression] = None - device_type: typing.Optional[SegmentMatchExpression] = None - browser: typing.Optional[SegmentMatchExpression] = None - platform: typing.Optional[SegmentMatchExpression] = None - user_agent: typing.Optional[SegmentMatchExpression] = None - country: typing.Optional[SegmentMatchExpression] = None - region: typing.Optional[SegmentMatchExpression] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/segment_rule.py b/src/auth0/management/types/segment_rule.py deleted file mode 100644 index 239f86ec..00000000 --- a/src/auth0/management/types/segment_rule.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .segment_match_conditions import SegmentMatchConditions -from .segment_not_match_conditions import SegmentNotMatchConditions - - -class SegmentRule(UniversalBaseModel): - match: typing.Optional[SegmentMatchConditions] = None - not_match: typing.Optional[SegmentNotMatchConditions] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/segment_starts_with_expression.py b/src/auth0/management/types/segment_starts_with_expression.py deleted file mode 100644 index 05af74f6..00000000 --- a/src/auth0/management/types/segment_starts_with_expression.py +++ /dev/null @@ -1,19 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class SegmentStartsWithExpression(UniversalBaseModel): - starts_with: typing.List[str] - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/segment_status_enum.py b/src/auth0/management/types/segment_status_enum.py deleted file mode 100644 index 7d9a103d..00000000 --- a/src/auth0/management/types/segment_status_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -SegmentStatusEnum = typing.Union[typing.Literal["active", "archived"], typing.Any] diff --git a/src/auth0/management/types/segment_type_enum.py b/src/auth0/management/types/segment_type_enum.py deleted file mode 100644 index b7abaed2..00000000 --- a/src/auth0/management/types/segment_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -SegmentTypeEnum = typing.Union[typing.Literal["self", "auth0"], typing.Any] diff --git a/src/auth0/management/types/segment_type_filter_enum.py b/src/auth0/management/types/segment_type_filter_enum.py deleted file mode 100644 index 558de32e..00000000 --- a/src/auth0/management/types/segment_type_filter_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -SegmentTypeFilterEnum = typing.Union[typing.Literal["auth0", "self"], typing.Any] diff --git a/src/auth0/management/types/self_service_profile.py b/src/auth0/management/types/self_service_profile.py deleted file mode 100644 index a3770c3d..00000000 --- a/src/auth0/management/types/self_service_profile.py +++ /dev/null @@ -1,64 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .self_service_profile_allowed_strategy_enum import SelfServiceProfileAllowedStrategyEnum -from .self_service_profile_branding_properties import SelfServiceProfileBrandingProperties -from .self_service_profile_user_attribute import SelfServiceProfileUserAttribute - - -class SelfServiceProfile(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - The unique ID of the self-service Profile. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The name of the self-service Profile. - """ - - description: typing.Optional[str] = pydantic.Field(default=None) - """ - The description of the self-service Profile. - """ - - user_attributes: typing.Optional[typing.List[SelfServiceProfileUserAttribute]] = pydantic.Field(default=None) - """ - List of attributes to be mapped that will be shown to the user during the Self-Service Enterprise Configuration flow. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The time when this self-service Profile was created. - """ - - updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The time when this self-service Profile was updated. - """ - - branding: typing.Optional[SelfServiceProfileBrandingProperties] = None - allowed_strategies: typing.Optional[typing.List[SelfServiceProfileAllowedStrategyEnum]] = pydantic.Field( - default=None - ) - """ - List of IdP strategies that will be shown to users during the Self-Service Enterprise Configuration flow. Possible values: [`oidc`, `samlp`, `waad`, `google-apps`, `adfs`, `okta`, `auth0-samlp`, `okta-samlp`, `keycloak-samlp`, `pingfederate`] - """ - - user_attribute_profile_id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of the user-attribute-profile to associate with this self-service profile. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/self_service_profile_allowed_strategy_enum.py b/src/auth0/management/types/self_service_profile_allowed_strategy_enum.py deleted file mode 100644 index 1e1edfd6..00000000 --- a/src/auth0/management/types/self_service_profile_allowed_strategy_enum.py +++ /dev/null @@ -1,19 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -SelfServiceProfileAllowedStrategyEnum = typing.Union[ - typing.Literal[ - "oidc", - "samlp", - "waad", - "google-apps", - "adfs", - "okta", - "auth0-samlp", - "okta-samlp", - "keycloak-samlp", - "pingfederate", - ], - typing.Any, -] diff --git a/src/auth0/management/types/self_service_profile_branding.py b/src/auth0/management/types/self_service_profile_branding.py deleted file mode 100644 index abc87c3c..00000000 --- a/src/auth0/management/types/self_service_profile_branding.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .self_service_profile_branding_properties import SelfServiceProfileBrandingProperties - -SelfServiceProfileBranding = typing.Optional[SelfServiceProfileBrandingProperties] diff --git a/src/auth0/management/types/self_service_profile_branding_colors.py b/src/auth0/management/types/self_service_profile_branding_colors.py deleted file mode 100644 index 6a822ac3..00000000 --- a/src/auth0/management/types/self_service_profile_branding_colors.py +++ /dev/null @@ -1,19 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class SelfServiceProfileBrandingColors(UniversalBaseModel): - primary: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/self_service_profile_branding_properties.py b/src/auth0/management/types/self_service_profile_branding_properties.py deleted file mode 100644 index e0ae505a..00000000 --- a/src/auth0/management/types/self_service_profile_branding_properties.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .self_service_profile_branding_colors import SelfServiceProfileBrandingColors - - -class SelfServiceProfileBrandingProperties(UniversalBaseModel): - logo_url: typing.Optional[str] = None - colors: typing.Optional[SelfServiceProfileBrandingColors] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/self_service_profile_custom_text_language_enum.py b/src/auth0/management/types/self_service_profile_custom_text_language_enum.py deleted file mode 100644 index fa1da32f..00000000 --- a/src/auth0/management/types/self_service_profile_custom_text_language_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -SelfServiceProfileCustomTextLanguageEnum = typing.Union[typing.Literal["en"], typing.Any] diff --git a/src/auth0/management/types/self_service_profile_custom_text_page_enum.py b/src/auth0/management/types/self_service_profile_custom_text_page_enum.py deleted file mode 100644 index 8ab4be59..00000000 --- a/src/auth0/management/types/self_service_profile_custom_text_page_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -SelfServiceProfileCustomTextPageEnum = typing.Union[typing.Literal["get-started"], typing.Any] diff --git a/src/auth0/management/types/self_service_profile_description.py b/src/auth0/management/types/self_service_profile_description.py deleted file mode 100644 index a1afbf1e..00000000 --- a/src/auth0/management/types/self_service_profile_description.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -SelfServiceProfileDescription = typing.Optional[str] -""" -The description of the self-service Profile. -""" diff --git a/src/auth0/management/types/self_service_profile_sso_ticket_connection_config.py b/src/auth0/management/types/self_service_profile_sso_ticket_connection_config.py deleted file mode 100644 index a755be30..00000000 --- a/src/auth0/management/types/self_service_profile_sso_ticket_connection_config.py +++ /dev/null @@ -1,46 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .connections_metadata import ConnectionsMetadata -from .self_service_profile_sso_ticket_connection_options import SelfServiceProfileSsoTicketConnectionOptions - - -class SelfServiceProfileSsoTicketConnectionConfig(UniversalBaseModel): - """ - If provided, this will create a new connection for the Self-Service Enterprise Configuration flow with the given configuration - """ - - name: str = pydantic.Field() - """ - The name of the connection that will be created as a part of the Self-Service Enterprise Configuration flow. - """ - - display_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Connection name used in the new universal login experience - """ - - is_domain_connection: typing.Optional[bool] = pydantic.Field(default=None) - """ - true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) - """ - - show_as_button: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. (Defaults to false.) - """ - - metadata: typing.Optional[ConnectionsMetadata] = None - options: typing.Optional[SelfServiceProfileSsoTicketConnectionOptions] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/self_service_profile_sso_ticket_connection_options.py b/src/auth0/management/types/self_service_profile_sso_ticket_connection_options.py deleted file mode 100644 index 0e612829..00000000 --- a/src/auth0/management/types/self_service_profile_sso_ticket_connection_options.py +++ /dev/null @@ -1,34 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .self_service_profile_sso_ticket_idp_initiated_options import SelfServiceProfileSsoTicketIdpInitiatedOptions - - -class SelfServiceProfileSsoTicketConnectionOptions(UniversalBaseModel): - """ - The connection's options (depend on the connection strategy) - """ - - icon_url: typing.Optional[str] = pydantic.Field(default=None) - """ - URL for the icon. Must use HTTPS. - """ - - domain_aliases: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - List of domain_aliases that can be authenticated in the Identity Provider - """ - - idpinitiated: typing.Optional[SelfServiceProfileSsoTicketIdpInitiatedOptions] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/self_service_profile_sso_ticket_domain_aliases_config.py b/src/auth0/management/types/self_service_profile_sso_ticket_domain_aliases_config.py deleted file mode 100644 index 5d931ad9..00000000 --- a/src/auth0/management/types/self_service_profile_sso_ticket_domain_aliases_config.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .self_service_profile_sso_ticket_domain_verification_enum import SelfServiceProfileSsoTicketDomainVerificationEnum - - -class SelfServiceProfileSsoTicketDomainAliasesConfig(UniversalBaseModel): - """ - Configuration for the setup of the connection’s domain_aliases in the Self-Service Enterprise Configuration flow. - """ - - domain_verification: SelfServiceProfileSsoTicketDomainVerificationEnum - pending_domains: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - List of domains that will be submitted for verification during the Self-Service Enterprise Configuration flow. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/self_service_profile_sso_ticket_domain_verification_enum.py b/src/auth0/management/types/self_service_profile_sso_ticket_domain_verification_enum.py deleted file mode 100644 index 07ba4007..00000000 --- a/src/auth0/management/types/self_service_profile_sso_ticket_domain_verification_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -SelfServiceProfileSsoTicketDomainVerificationEnum = typing.Union[ - typing.Literal["none", "optional", "required"], typing.Any -] diff --git a/src/auth0/management/types/self_service_profile_sso_ticket_enabled_features.py b/src/auth0/management/types/self_service_profile_sso_ticket_enabled_features.py deleted file mode 100644 index 778906f0..00000000 --- a/src/auth0/management/types/self_service_profile_sso_ticket_enabled_features.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class SelfServiceProfileSsoTicketEnabledFeatures(UniversalBaseModel): - """ - Specifies which features are enabled for an "edit connection" ticket. Only applicable when connection ID is provided. - """ - - sso: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether SSO configuration is enabled in this ticket. - """ - - domain_verification: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether domain verification is enabled in this ticket. - """ - - provisioning: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether provisioning configuration is enabled in this ticket. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/self_service_profile_sso_ticket_enabled_organization.py b/src/auth0/management/types/self_service_profile_sso_ticket_enabled_organization.py deleted file mode 100644 index ad15baac..00000000 --- a/src/auth0/management/types/self_service_profile_sso_ticket_enabled_organization.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class SelfServiceProfileSsoTicketEnabledOrganization(UniversalBaseModel): - organization_id: str = pydantic.Field() - """ - Organization identifier. - """ - - assign_membership_on_login: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true, all users that log in with this connection will be automatically granted membership in the organization. When false, users must be granted membership in the organization before logging in with this connection. - """ - - show_as_button: typing.Optional[bool] = pydantic.Field(default=None) - """ - Determines whether a connection should be displayed on this organization’s login prompt. Only applicable for enterprise connections. Default: true. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/self_service_profile_sso_ticket_google_workspace_config.py b/src/auth0/management/types/self_service_profile_sso_ticket_google_workspace_config.py deleted file mode 100644 index f79d4d1b..00000000 --- a/src/auth0/management/types/self_service_profile_sso_ticket_google_workspace_config.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class SelfServiceProfileSsoTicketGoogleWorkspaceConfig(UniversalBaseModel): - """ - Configuration for Google Workspace Directory Sync during the self-service flow. - """ - - sync_users: bool = pydantic.Field() - """ - Whether to enable Google Workspace Directory Sync for users during the self-service flow. - """ - - sync_groups: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether to enable Google Workspace Directory Sync for groups during the self-service flow. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/self_service_profile_sso_ticket_idp_initiated_client_protocol_enum.py b/src/auth0/management/types/self_service_profile_sso_ticket_idp_initiated_client_protocol_enum.py deleted file mode 100644 index 44c1fb1d..00000000 --- a/src/auth0/management/types/self_service_profile_sso_ticket_idp_initiated_client_protocol_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -SelfServiceProfileSsoTicketIdpInitiatedClientProtocolEnum = typing.Union[ - typing.Literal["samlp", "wsfed", "oauth2"], typing.Any -] diff --git a/src/auth0/management/types/self_service_profile_sso_ticket_idp_initiated_options.py b/src/auth0/management/types/self_service_profile_sso_ticket_idp_initiated_options.py deleted file mode 100644 index 955a561d..00000000 --- a/src/auth0/management/types/self_service_profile_sso_ticket_idp_initiated_options.py +++ /dev/null @@ -1,40 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .self_service_profile_sso_ticket_idp_initiated_client_protocol_enum import ( - SelfServiceProfileSsoTicketIdpInitiatedClientProtocolEnum, -) - - -class SelfServiceProfileSsoTicketIdpInitiatedOptions(UniversalBaseModel): - """ - Allows IdP-initiated login - """ - - enabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables IdP-initiated login for this connection - """ - - client_id: typing.Optional[str] = pydantic.Field(default=None) - """ - Default application client_id user is redirected to after validated SAML response - """ - - client_protocol: typing.Optional[SelfServiceProfileSsoTicketIdpInitiatedClientProtocolEnum] = None - client_authorizequery: typing.Optional[str] = pydantic.Field(default=None) - """ - Query string options to customize the behaviour for OpenID Connect when idpinitiated.client_protocol is oauth2. Allowed parameters: redirect_uri, scope, response_type. For example, redirect_uri=https://jwt.io&scope=openid email&response_type=token - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/self_service_profile_sso_ticket_provisioning_config.py b/src/auth0/management/types/self_service_profile_sso_ticket_provisioning_config.py deleted file mode 100644 index 545e24b7..00000000 --- a/src/auth0/management/types/self_service_profile_sso_ticket_provisioning_config.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .self_service_profile_sso_ticket_google_workspace_config import SelfServiceProfileSsoTicketGoogleWorkspaceConfig -from .self_service_profile_sso_ticket_provisioning_scope_enum import SelfServiceProfileSsoTicketProvisioningScopeEnum - - -class SelfServiceProfileSsoTicketProvisioningConfig(UniversalBaseModel): - """ - Configuration for the setup of Provisioning in the self-service flow. - """ - - scopes: typing.Optional[typing.List[SelfServiceProfileSsoTicketProvisioningScopeEnum]] = pydantic.Field( - default=None - ) - """ - The scopes of the SCIM tokens generated during the self-service flow. - """ - - google_workspace: typing.Optional[SelfServiceProfileSsoTicketGoogleWorkspaceConfig] = None - token_lifetime: typing.Optional[int] = pydantic.Field(default=None) - """ - Lifetime of the tokens in seconds. Must be greater than 900. If not provided, the tokens don't expire. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/self_service_profile_sso_ticket_provisioning_scope_enum.py b/src/auth0/management/types/self_service_profile_sso_ticket_provisioning_scope_enum.py deleted file mode 100644 index 4e30af68..00000000 --- a/src/auth0/management/types/self_service_profile_sso_ticket_provisioning_scope_enum.py +++ /dev/null @@ -1,19 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -SelfServiceProfileSsoTicketProvisioningScopeEnum = typing.Union[ - typing.Literal[ - "get:users", - "post:users", - "put:users", - "patch:users", - "delete:users", - "get:groups", - "post:groups", - "put:groups", - "patch:groups", - "delete:groups", - ], - typing.Any, -] diff --git a/src/auth0/management/types/self_service_profile_sso_ticket_universal_logout_config.py b/src/auth0/management/types/self_service_profile_sso_ticket_universal_logout_config.py deleted file mode 100644 index f5b83065..00000000 --- a/src/auth0/management/types/self_service_profile_sso_ticket_universal_logout_config.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class SelfServiceProfileSsoTicketUniversalLogoutConfig(UniversalBaseModel): - """ - Configuration for the setup of Universal Logout in the Self-Service Enterprise Configuration flow. - """ - - allow_configuration: bool = pydantic.Field() - """ - Whether the end user can set up Universal Logout during the Self-Service Enterprise Configuration flow. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/self_service_profile_user_attribute.py b/src/auth0/management/types/self_service_profile_user_attribute.py deleted file mode 100644 index afcfa6dd..00000000 --- a/src/auth0/management/types/self_service_profile_user_attribute.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class SelfServiceProfileUserAttribute(UniversalBaseModel): - name: str = pydantic.Field() - """ - Identifier of this attribute. - """ - - description: str = pydantic.Field() - """ - Description of this attribute. - """ - - is_optional: bool = pydantic.Field() - """ - Determines if this attribute is required - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/self_service_profile_user_attributes.py b/src/auth0/management/types/self_service_profile_user_attributes.py deleted file mode 100644 index 00cc7bf2..00000000 --- a/src/auth0/management/types/self_service_profile_user_attributes.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .self_service_profile_user_attribute import SelfServiceProfileUserAttribute - -SelfServiceProfileUserAttributes = typing.Optional[typing.List[SelfServiceProfileUserAttribute]] -""" -List of attributes to be mapped that will be shown to the user during the Self-Service Enterprise Configuration flow. -""" diff --git a/src/auth0/management/types/flow_action_activecampaign_list_contacts_params.py b/src/auth0/management/types/send_base.py similarity index 77% rename from src/auth0/management/types/flow_action_activecampaign_list_contacts_params.py rename to src/auth0/management/types/send_base.py index 7000d5ae..48a41a1a 100644 --- a/src/auth0/management/types/flow_action_activecampaign_list_contacts_params.py +++ b/src/auth0/management/types/send_base.py @@ -4,11 +4,13 @@ import pydantic from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel +from .send_base_type import SendBaseType -class FlowActionActivecampaignListContactsParams(UniversalBaseModel): +class SendBase(UniversalBaseModel): connection_id: str - email: str + type: SendBaseType + subject: typing.Optional[str] = None if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 diff --git a/src/auth0/management/types/flow_action_http_send_request_params_payload_object.py b/src/auth0/management/types/send_base_type.py similarity index 58% rename from src/auth0/management/types/flow_action_http_send_request_params_payload_object.py rename to src/auth0/management/types/send_base_type.py index f87aad0b..02194bdd 100644 --- a/src/auth0/management/types/flow_action_http_send_request_params_payload_object.py +++ b/src/auth0/management/types/send_base_type.py @@ -2,4 +2,4 @@ import typing -FlowActionHttpSendRequestParamsPayloadObject = typing.Dict[str, typing.Any] +SendBaseType = typing.Union[typing.Literal["HTML", "TEMPLATE"], typing.Any] diff --git a/src/auth0/management/types/custom_provider_credentials.py b/src/auth0/management/types/send_by_content.py similarity index 88% rename from src/auth0/management/types/custom_provider_credentials.py rename to src/auth0/management/types/send_by_content.py index 282bf91a..3bef0de8 100644 --- a/src/auth0/management/types/custom_provider_credentials.py +++ b/src/auth0/management/types/send_by_content.py @@ -6,7 +6,9 @@ from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -class CustomProviderCredentials(UniversalBaseModel): +class SendByContent(UniversalBaseModel): + content: str + if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 else: diff --git a/src/auth0/management/types/extensibility_email_provider_credentials.py b/src/auth0/management/types/send_by_template.py similarity index 87% rename from src/auth0/management/types/extensibility_email_provider_credentials.py rename to src/auth0/management/types/send_by_template.py index 78a1e3fd..7e3a1fa3 100644 --- a/src/auth0/management/types/extensibility_email_provider_credentials.py +++ b/src/auth0/management/types/send_by_template.py @@ -6,7 +6,9 @@ from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -class ExtensibilityEmailProviderCredentials(UniversalBaseModel): +class SendByTemplate(UniversalBaseModel): + template_id: int + if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 else: diff --git a/src/auth0/management/types/send_params.py b/src/auth0/management/types/send_params.py new file mode 100644 index 00000000..4ad224ce --- /dev/null +++ b/src/auth0/management/types/send_params.py @@ -0,0 +1,8 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +from .send_params_content import SendParamsContent +from .send_params_template_id import SendParamsTemplateId + +SendParams = typing.Union[SendParamsContent, SendParamsTemplateId] diff --git a/src/auth0/management/types/flow_action_flow_do_nothing_params.py b/src/auth0/management/types/send_params_content.py similarity index 88% rename from src/auth0/management/types/flow_action_flow_do_nothing_params.py rename to src/auth0/management/types/send_params_content.py index 1572d329..725c58ab 100644 --- a/src/auth0/management/types/flow_action_flow_do_nothing_params.py +++ b/src/auth0/management/types/send_params_content.py @@ -6,7 +6,9 @@ from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -class FlowActionFlowDoNothingParams(UniversalBaseModel): +class SendParamsContent(UniversalBaseModel): + content: str + if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 else: diff --git a/src/auth0/management/types/form_block_next_button_config.py b/src/auth0/management/types/send_params_template_id.py similarity index 87% rename from src/auth0/management/types/form_block_next_button_config.py rename to src/auth0/management/types/send_params_template_id.py index 39af66a4..b81831b3 100644 --- a/src/auth0/management/types/form_block_next_button_config.py +++ b/src/auth0/management/types/send_params_template_id.py @@ -6,8 +6,8 @@ from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -class FormBlockNextButtonConfig(UniversalBaseModel): - text: str +class SendParamsTemplateId(UniversalBaseModel): + template_id: int if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 diff --git a/src/auth0/management/types/flow_action_flow_map_value_type.py b/src/auth0/management/types/send_params_type.py similarity index 59% rename from src/auth0/management/types/flow_action_flow_map_value_type.py rename to src/auth0/management/types/send_params_type.py index d17bf3c8..650aff99 100644 --- a/src/auth0/management/types/flow_action_flow_map_value_type.py +++ b/src/auth0/management/types/send_params_type.py @@ -2,4 +2,4 @@ import typing -FlowActionFlowMapValueType = typing.Union[typing.Literal["FLOW"], typing.Any] +SendParamsType = typing.Union[typing.Literal["HTML", "TEMPLATE"], typing.Any] diff --git a/src/auth0/management/types/session_actor_claim_value.py b/src/auth0/management/types/session_actor_claim_value.py deleted file mode 100644 index 60517fbc..00000000 --- a/src/auth0/management/types/session_actor_claim_value.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -SessionActorClaimValue = typing.Union[str, bool, float] diff --git a/src/auth0/management/types/session_actor_metadata.py b/src/auth0/management/types/session_actor_metadata.py deleted file mode 100644 index 63719cfb..00000000 --- a/src/auth0/management/types/session_actor_metadata.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class SessionActorMetadata(UniversalBaseModel): - """ - The identity of the delegating party/session actor for delegated sessions. Present only on delegated sessions. Contains "sub" and up to 5 additional primitive claims. - """ - - sub: str = pydantic.Field() - """ - Subject identifier of the actor - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/session_authentication_signal.py b/src/auth0/management/types/session_authentication_signal.py deleted file mode 100644 index ff6030b0..00000000 --- a/src/auth0/management/types/session_authentication_signal.py +++ /dev/null @@ -1,33 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .session_date import SessionDate - - -class SessionAuthenticationSignal(UniversalBaseModel): - """ - Authentication signal details - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - One of: "federated", "passkey", "pwd", "sms", "email", "mfa", "mock" or a custom method denoted by a URL - """ - - timestamp: typing.Optional[SessionDate] = None - type: typing.Optional[str] = pydantic.Field(default=None) - """ - A specific MFA factor. Only present when "name" is set to "mfa" - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/session_authentication_signals.py b/src/auth0/management/types/session_authentication_signals.py deleted file mode 100644 index 754c2c02..00000000 --- a/src/auth0/management/types/session_authentication_signals.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .session_authentication_signal import SessionAuthenticationSignal - - -class SessionAuthenticationSignals(UniversalBaseModel): - """ - Details about authentication signals obtained during the login flow - """ - - methods: typing.Optional[typing.List[SessionAuthenticationSignal]] = pydantic.Field(default=None) - """ - Contains the authentication methods a user has completed during their session - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/session_client_metadata.py b/src/auth0/management/types/session_client_metadata.py deleted file mode 100644 index 2eccbe59..00000000 --- a/src/auth0/management/types/session_client_metadata.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class SessionClientMetadata(UniversalBaseModel): - """ - Client details - """ - - client_id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of client for the session - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/session_cookie_metadata.py b/src/auth0/management/types/session_cookie_metadata.py deleted file mode 100644 index a9c01799..00000000 --- a/src/auth0/management/types/session_cookie_metadata.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .session_cookie_metadata_mode_enum import SessionCookieMetadataModeEnum - - -class SessionCookieMetadata(UniversalBaseModel): - """ - [Private Early Access] Session cookie configuration. - """ - - mode: typing.Optional[SessionCookieMetadataModeEnum] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/session_cookie_metadata_mode_enum.py b/src/auth0/management/types/session_cookie_metadata_mode_enum.py deleted file mode 100644 index c8540ef1..00000000 --- a/src/auth0/management/types/session_cookie_metadata_mode_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -SessionCookieMetadataModeEnum = typing.Union[typing.Literal["non-persistent", "persistent"], typing.Any] diff --git a/src/auth0/management/types/session_cookie_mode_enum.py b/src/auth0/management/types/session_cookie_mode_enum.py deleted file mode 100644 index 801eecb6..00000000 --- a/src/auth0/management/types/session_cookie_mode_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -SessionCookieModeEnum = typing.Union[typing.Literal["persistent", "non-persistent"], typing.Any] diff --git a/src/auth0/management/types/session_cookie_schema.py b/src/auth0/management/types/session_cookie_schema.py deleted file mode 100644 index bf14ca53..00000000 --- a/src/auth0/management/types/session_cookie_schema.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .session_cookie_mode_enum import SessionCookieModeEnum - - -class SessionCookieSchema(UniversalBaseModel): - """ - Session cookie configuration - """ - - mode: SessionCookieModeEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/session_date.py b/src/auth0/management/types/session_date.py deleted file mode 100644 index d13bff7e..00000000 --- a/src/auth0/management/types/session_date.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -SessionDate = typing.Union[dt.datetime, typing.Dict[str, typing.Any]] diff --git a/src/auth0/management/types/session_device_metadata.py b/src/auth0/management/types/session_device_metadata.py deleted file mode 100644 index 3838b0ce..00000000 --- a/src/auth0/management/types/session_device_metadata.py +++ /dev/null @@ -1,44 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .session_ip import SessionIp - - -class SessionDeviceMetadata(UniversalBaseModel): - """ - Metadata related to the device used in the session - """ - - initial_user_agent: typing.Optional[str] = pydantic.Field(default=None) - """ - First user agent of the device from which this user logged in - """ - - initial_ip: typing.Optional[SessionIp] = None - initial_asn: typing.Optional[str] = pydantic.Field(default=None) - """ - First autonomous system number associated with this session - """ - - last_user_agent: typing.Optional[str] = pydantic.Field(default=None) - """ - Last user agent of the device from which this user logged in - """ - - last_ip: typing.Optional[SessionIp] = None - last_asn: typing.Optional[str] = pydantic.Field(default=None) - """ - Last autonomous system number from which this user logged in - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/session_ip.py b/src/auth0/management/types/session_ip.py deleted file mode 100644 index d93fb234..00000000 --- a/src/auth0/management/types/session_ip.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -SessionIp = typing.Optional[str] -""" -First IP address associated with this session -""" diff --git a/src/auth0/management/types/session_metadata.py b/src/auth0/management/types/session_metadata.py deleted file mode 100644 index 28624886..00000000 --- a/src/auth0/management/types/session_metadata.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -SessionMetadata = typing.Optional[typing.Dict[str, typing.Any]] -""" -Metadata associated with the session, in the form of an object with string values (max 255 chars). Maximum of 25 metadata properties allowed. -""" diff --git a/src/auth0/management/types/session_response_content.py b/src/auth0/management/types/session_response_content.py deleted file mode 100644 index 4b5ae44e..00000000 --- a/src/auth0/management/types/session_response_content.py +++ /dev/null @@ -1,51 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .session_actor_metadata import SessionActorMetadata -from .session_authentication_signals import SessionAuthenticationSignals -from .session_client_metadata import SessionClientMetadata -from .session_cookie_metadata import SessionCookieMetadata -from .session_date import SessionDate -from .session_device_metadata import SessionDeviceMetadata -from .session_metadata import SessionMetadata - - -class SessionResponseContent(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - The ID of the session - """ - - user_id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of the user which can be used when interacting with other APIs. - """ - - created_at: typing.Optional[SessionDate] = None - updated_at: typing.Optional[SessionDate] = None - authenticated_at: typing.Optional[SessionDate] = None - idle_expires_at: typing.Optional[SessionDate] = None - expires_at: typing.Optional[SessionDate] = None - last_interacted_at: typing.Optional[SessionDate] = None - device: typing.Optional[SessionDeviceMetadata] = None - clients: typing.Optional[typing.List[SessionClientMetadata]] = pydantic.Field(default=None) - """ - List of client details for the session - """ - - authentication: typing.Optional[SessionAuthenticationSignals] = None - cookie: typing.Optional[SessionCookieMetadata] = None - session_metadata: typing.Optional[SessionMetadata] = None - actor: typing.Optional[SessionActorMetadata] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/set_custom_signing_keys_response_content.py b/src/auth0/management/types/set_custom_signing_keys_response_content.py deleted file mode 100644 index 890a7e83..00000000 --- a/src/auth0/management/types/set_custom_signing_keys_response_content.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .custom_signing_key_jwk import CustomSigningKeyJwk - - -class SetCustomSigningKeysResponseContent(UniversalBaseModel): - """ - JWKS representing an array of custom public signing keys. - """ - - keys: typing.Optional[typing.List[CustomSigningKeyJwk]] = pydantic.Field(default=None) - """ - An array of custom public signing keys. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/set_email_factor_settings_response_content.py b/src/auth0/management/types/set_email_factor_settings_response_content.py deleted file mode 100644 index aad8e1ee..00000000 --- a/src/auth0/management/types/set_email_factor_settings_response_content.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class SetEmailFactorSettingsResponseContent(UniversalBaseModel): - otp_length: int = pydantic.Field() - """ - The length of the OTP code. - """ - - otp_expiration_time: int = pydantic.Field() - """ - The OTP expiration time in seconds. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/set_email_template_response_content.py b/src/auth0/management/types/set_email_template_response_content.py deleted file mode 100644 index e5793d33..00000000 --- a/src/auth0/management/types/set_email_template_response_content.py +++ /dev/null @@ -1,83 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .email_template_name_enum import EmailTemplateNameEnum - - -class SetEmailTemplateResponseContent(UniversalBaseModel): - template: EmailTemplateNameEnum - body: typing.Optional[str] = pydantic.Field(default=None) - """ - Body of the email template. - """ - - from_: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="from"), - pydantic.Field(alias="from", description="Senders `from` email address."), - ] = None - """ - Senders `from` email address. - """ - - result_url: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="resultUrl"), - pydantic.Field(alias="resultUrl", description="URL to redirect the user to after a successful action."), - ] = None - """ - URL to redirect the user to after a successful action. - """ - - subject: typing.Optional[str] = pydantic.Field(default=None) - """ - Subject line of the email. - """ - - syntax: typing.Optional[str] = pydantic.Field(default=None) - """ - Syntax of the template body. - """ - - url_lifetime_in_seconds: typing_extensions.Annotated[ - typing.Optional[float], - FieldMetadata(alias="urlLifetimeInSeconds"), - pydantic.Field( - alias="urlLifetimeInSeconds", - description="Lifetime in seconds that the link within the email will be valid for.", - ), - ] = None - """ - Lifetime in seconds that the link within the email will be valid for. - """ - - include_email_in_redirect: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="includeEmailInRedirect"), - pydantic.Field( - alias="includeEmailInRedirect", - description="Whether the `reset_email` and `verify_email` templates should include the user's email address as the `email` parameter in the returnUrl (true) or whether no email address should be included in the redirect (false). Defaults to true.", - ), - ] = None - """ - Whether the `reset_email` and `verify_email` templates should include the user's email address as the `email` parameter in the returnUrl (true) or whether no email address should be included in the redirect (false). Defaults to true. - """ - - enabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether the template is enabled (true) or disabled (false). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/set_guardian_factor_duo_settings_response_content.py b/src/auth0/management/types/set_guardian_factor_duo_settings_response_content.py deleted file mode 100644 index 1edd9781..00000000 --- a/src/auth0/management/types/set_guardian_factor_duo_settings_response_content.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class SetGuardianFactorDuoSettingsResponseContent(UniversalBaseModel): - ikey: typing.Optional[str] = None - skey: typing.Optional[str] = None - host: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/set_guardian_factor_phone_message_types_response_content.py b/src/auth0/management/types/set_guardian_factor_phone_message_types_response_content.py deleted file mode 100644 index 6b7fce32..00000000 --- a/src/auth0/management/types/set_guardian_factor_phone_message_types_response_content.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .guardian_factor_phone_factor_message_type_enum import GuardianFactorPhoneFactorMessageTypeEnum - - -class SetGuardianFactorPhoneMessageTypesResponseContent(UniversalBaseModel): - message_types: typing.Optional[typing.List[GuardianFactorPhoneFactorMessageTypeEnum]] = pydantic.Field(default=None) - """ - The list of phone factors to enable on the tenant. Can include `sms` and `voice`. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/set_guardian_factor_phone_templates_response_content.py b/src/auth0/management/types/set_guardian_factor_phone_templates_response_content.py deleted file mode 100644 index b2a131fb..00000000 --- a/src/auth0/management/types/set_guardian_factor_phone_templates_response_content.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class SetGuardianFactorPhoneTemplatesResponseContent(UniversalBaseModel): - enrollment_message: str = pydantic.Field() - """ - Message sent to the user when they are invited to enroll with a phone number. - """ - - verification_message: str = pydantic.Field() - """ - Message sent to the user when they are prompted to verify their account. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/set_guardian_factor_response_content.py b/src/auth0/management/types/set_guardian_factor_response_content.py deleted file mode 100644 index 42533a20..00000000 --- a/src/auth0/management/types/set_guardian_factor_response_content.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class SetGuardianFactorResponseContent(UniversalBaseModel): - enabled: bool = pydantic.Field() - """ - Whether this factor is enabled (true) or disabled (false). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/set_guardian_factor_sms_templates_response_content.py b/src/auth0/management/types/set_guardian_factor_sms_templates_response_content.py deleted file mode 100644 index dcedfbbc..00000000 --- a/src/auth0/management/types/set_guardian_factor_sms_templates_response_content.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class SetGuardianFactorSmsTemplatesResponseContent(UniversalBaseModel): - enrollment_message: str = pydantic.Field() - """ - Message sent to the user when they are invited to enroll with a phone number. - """ - - verification_message: str = pydantic.Field() - """ - Message sent to the user when they are prompted to verify their account. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/set_guardian_factors_provider_phone_response_content.py b/src/auth0/management/types/set_guardian_factors_provider_phone_response_content.py deleted file mode 100644 index 7ba7fa1f..00000000 --- a/src/auth0/management/types/set_guardian_factors_provider_phone_response_content.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .guardian_factors_provider_sms_provider_enum import GuardianFactorsProviderSmsProviderEnum - - -class SetGuardianFactorsProviderPhoneResponseContent(UniversalBaseModel): - provider: typing.Optional[GuardianFactorsProviderSmsProviderEnum] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/set_guardian_factors_provider_phone_twilio_response_content.py b/src/auth0/management/types/set_guardian_factors_provider_phone_twilio_response_content.py deleted file mode 100644 index e5a16a0e..00000000 --- a/src/auth0/management/types/set_guardian_factors_provider_phone_twilio_response_content.py +++ /dev/null @@ -1,41 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata - - -class SetGuardianFactorsProviderPhoneTwilioResponseContent(UniversalBaseModel): - from_: typing_extensions.Annotated[ - typing.Optional[str], FieldMetadata(alias="from"), pydantic.Field(alias="from", description="From number") - ] = None - """ - From number - """ - - messaging_service_sid: typing.Optional[str] = pydantic.Field(default=None) - """ - Copilot SID - """ - - auth_token: typing.Optional[str] = pydantic.Field(default=None) - """ - Twilio Authentication token - """ - - sid: typing.Optional[str] = pydantic.Field(default=None) - """ - Twilio SID - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/set_guardian_factors_provider_push_notification_apns_response_content.py b/src/auth0/management/types/set_guardian_factors_provider_push_notification_apns_response_content.py deleted file mode 100644 index b5f87a70..00000000 --- a/src/auth0/management/types/set_guardian_factors_provider_push_notification_apns_response_content.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class SetGuardianFactorsProviderPushNotificationApnsResponseContent(UniversalBaseModel): - sandbox: typing.Optional[bool] = None - bundle_id: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/set_guardian_factors_provider_push_notification_fcm_response_content.py b/src/auth0/management/types/set_guardian_factors_provider_push_notification_fcm_response_content.py deleted file mode 100644 index 1f7180db..00000000 --- a/src/auth0/management/types/set_guardian_factors_provider_push_notification_fcm_response_content.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -SetGuardianFactorsProviderPushNotificationFcmResponseContent = typing.Dict[str, typing.Any] diff --git a/src/auth0/management/types/set_guardian_factors_provider_push_notification_fcmv_1_response_content.py b/src/auth0/management/types/set_guardian_factors_provider_push_notification_fcmv_1_response_content.py deleted file mode 100644 index c5867129..00000000 --- a/src/auth0/management/types/set_guardian_factors_provider_push_notification_fcmv_1_response_content.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -SetGuardianFactorsProviderPushNotificationFcmv1ResponseContent = typing.Dict[str, typing.Any] diff --git a/src/auth0/management/types/set_guardian_factors_provider_push_notification_response_content.py b/src/auth0/management/types/set_guardian_factors_provider_push_notification_response_content.py deleted file mode 100644 index 4a19a882..00000000 --- a/src/auth0/management/types/set_guardian_factors_provider_push_notification_response_content.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .guardian_factors_provider_push_notification_provider_data_enum import ( - GuardianFactorsProviderPushNotificationProviderDataEnum, -) - - -class SetGuardianFactorsProviderPushNotificationResponseContent(UniversalBaseModel): - provider: typing.Optional[GuardianFactorsProviderPushNotificationProviderDataEnum] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/set_guardian_factors_provider_push_notification_sns_response_content.py b/src/auth0/management/types/set_guardian_factors_provider_push_notification_sns_response_content.py deleted file mode 100644 index 6d6f1d31..00000000 --- a/src/auth0/management/types/set_guardian_factors_provider_push_notification_sns_response_content.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class SetGuardianFactorsProviderPushNotificationSnsResponseContent(UniversalBaseModel): - aws_access_key_id: typing.Optional[str] = None - aws_secret_access_key: typing.Optional[str] = None - aws_region: typing.Optional[str] = None - sns_apns_platform_application_arn: typing.Optional[str] = None - sns_gcm_platform_application_arn: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/set_guardian_factors_provider_sms_response_content.py b/src/auth0/management/types/set_guardian_factors_provider_sms_response_content.py deleted file mode 100644 index f109a5b8..00000000 --- a/src/auth0/management/types/set_guardian_factors_provider_sms_response_content.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .guardian_factors_provider_sms_provider_enum import GuardianFactorsProviderSmsProviderEnum - - -class SetGuardianFactorsProviderSmsResponseContent(UniversalBaseModel): - provider: typing.Optional[GuardianFactorsProviderSmsProviderEnum] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/set_guardian_factors_provider_sms_twilio_response_content.py b/src/auth0/management/types/set_guardian_factors_provider_sms_twilio_response_content.py deleted file mode 100644 index 85e96af9..00000000 --- a/src/auth0/management/types/set_guardian_factors_provider_sms_twilio_response_content.py +++ /dev/null @@ -1,41 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata - - -class SetGuardianFactorsProviderSmsTwilioResponseContent(UniversalBaseModel): - from_: typing_extensions.Annotated[ - typing.Optional[str], FieldMetadata(alias="from"), pydantic.Field(alias="from", description="From number") - ] = None - """ - From number - """ - - messaging_service_sid: typing.Optional[str] = pydantic.Field(default=None) - """ - Copilot SID - """ - - auth_token: typing.Optional[str] = pydantic.Field(default=None) - """ - Twilio Authentication token - """ - - sid: typing.Optional[str] = pydantic.Field(default=None) - """ - Twilio SID - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/set_guardian_policies_request_content.py b/src/auth0/management/types/set_guardian_policies_request_content.py deleted file mode 100644 index b0eacd4a..00000000 --- a/src/auth0/management/types/set_guardian_policies_request_content.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .mfa_policy_enum import MfaPolicyEnum - -SetGuardianPoliciesRequestContent = typing.List[MfaPolicyEnum] diff --git a/src/auth0/management/types/set_guardian_policies_response_content.py b/src/auth0/management/types/set_guardian_policies_response_content.py deleted file mode 100644 index 7ecd6f92..00000000 --- a/src/auth0/management/types/set_guardian_policies_response_content.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .mfa_policy_enum import MfaPolicyEnum - -SetGuardianPoliciesResponseContent = typing.List[MfaPolicyEnum] diff --git a/src/auth0/management/types/set_guardian_settings_response_content.py b/src/auth0/management/types/set_guardian_settings_response_content.py deleted file mode 100644 index 7f2848bb..00000000 --- a/src/auth0/management/types/set_guardian_settings_response_content.py +++ /dev/null @@ -1,37 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class SetGuardianSettingsResponseContent(UniversalBaseModel): - display_remember_me_checkbox: bool = pydantic.Field() - """ - Determines whether to display the "Remember Me" checkbox on the MFA prompt in Universal Login. - """ - - remember_me_default_value: bool = pydantic.Field() - """ - Determines the default state of the "Remember Me" checkbox on the MFA prompt in Universal Login. - """ - - mfa_session_inactivity_timeout: int = pydantic.Field() - """ - Duration of inactivity after which the user will be prompted for MFA. Represented as seconds. Minimum duration is 1 hour, maximum is 30 days, and cannot exceed the overall timeout. - """ - - mfa_session_overall_timeout: int = pydantic.Field() - """ - Maximum duration after which the user will be prompted for MFA regardless of activity. Represented as seconds. Minimum duration is 1 hour, maximum is 90 days. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/set_network_acls_response_content.py b/src/auth0/management/types/set_network_acls_response_content.py deleted file mode 100644 index c4542498..00000000 --- a/src/auth0/management/types/set_network_acls_response_content.py +++ /dev/null @@ -1,33 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .network_acl_rule import NetworkAclRule - - -class SetNetworkAclsResponseContent(UniversalBaseModel): - id: typing.Optional[str] = None - description: typing.Optional[str] = None - active: typing.Optional[bool] = None - priority: typing.Optional[float] = None - rule: typing.Optional[NetworkAclRule] = None - created_at: typing.Optional[str] = pydantic.Field(default=None) - """ - The timestamp when the Network ACL Configuration was created - """ - - updated_at: typing.Optional[str] = pydantic.Field(default=None) - """ - The timestamp when the Network ACL Configuration was last updated - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/set_partials_request_content.py b/src/auth0/management/types/set_partials_request_content.py deleted file mode 100644 index 2059471b..00000000 --- a/src/auth0/management/types/set_partials_request_content.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -SetPartialsRequestContent = typing.Dict[str, typing.Any] -""" -An object containing template partials for a group of screens. -""" diff --git a/src/auth0/management/types/set_phone_factor_settings_response_content.py b/src/auth0/management/types/set_phone_factor_settings_response_content.py deleted file mode 100644 index b4610ea9..00000000 --- a/src/auth0/management/types/set_phone_factor_settings_response_content.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class SetPhoneFactorSettingsResponseContent(UniversalBaseModel): - otp_length: int = pydantic.Field() - """ - The length of the OTP code. - """ - - otp_expiration_time: int = pydantic.Field() - """ - The OTP expiration time in seconds. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/set_rules_config_response_content.py b/src/auth0/management/types/set_rules_config_response_content.py deleted file mode 100644 index 0a3c2440..00000000 --- a/src/auth0/management/types/set_rules_config_response_content.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class SetRulesConfigResponseContent(UniversalBaseModel): - key: str = pydantic.Field() - """ - Key for a rules config variable. - """ - - value: str = pydantic.Field() - """ - Value for a rules config variable. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/set_self_service_profile_custom_text_request_content.py b/src/auth0/management/types/set_self_service_profile_custom_text_request_content.py deleted file mode 100644 index ff0d7cb7..00000000 --- a/src/auth0/management/types/set_self_service_profile_custom_text_request_content.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -SetSelfServiceProfileCustomTextRequestContent = typing.Dict[str, str] -""" -The list of text keys and values to customize the Self-Service Enterprise Configuration flow page. Values can be plain text or rich HTML content limited to basic styling tags and hyperlinks. -""" diff --git a/src/auth0/management/types/set_self_service_profile_custom_text_response_content.py b/src/auth0/management/types/set_self_service_profile_custom_text_response_content.py deleted file mode 100644 index 22180288..00000000 --- a/src/auth0/management/types/set_self_service_profile_custom_text_response_content.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -SetSelfServiceProfileCustomTextResponseContent = typing.Dict[str, str] -""" -The resulting list of custom text keys and values. -""" diff --git a/src/auth0/management/types/set_user_authentication_method_response_content.py b/src/auth0/management/types/set_user_authentication_method_response_content.py deleted file mode 100644 index c85313d3..00000000 --- a/src/auth0/management/types/set_user_authentication_method_response_content.py +++ /dev/null @@ -1,82 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .created_authentication_method_type_enum import CreatedAuthenticationMethodTypeEnum -from .preferred_authentication_method_enum import PreferredAuthenticationMethodEnum -from .user_authentication_method_properties import UserAuthenticationMethodProperties - - -class SetUserAuthenticationMethodResponseContent(UniversalBaseModel): - """ - The successfully created authentication method. - """ - - id: typing.Optional[str] = pydantic.Field(default=None) - """ - The ID of the newly created authentication method (automatically generated by the application) - """ - - type: CreatedAuthenticationMethodTypeEnum - name: typing.Optional[str] = pydantic.Field(default=None) - """ - A human-readable label to identify the authentication method. - """ - - totp_secret: typing.Optional[str] = pydantic.Field(default=None) - """ - Base32 encoded secret for TOTP generation - """ - - phone_number: typing.Optional[str] = pydantic.Field(default=None) - """ - Applies to phone authentication methods only. The destination phone number used to send verification codes via text and voice. - """ - - email: typing.Optional[str] = pydantic.Field(default=None) - """ - Applies to email authentication methods only. The email address used to send verification messages. - """ - - authentication_methods: typing.Optional[typing.List[UserAuthenticationMethodProperties]] = None - preferred_authentication_method: typing.Optional[PreferredAuthenticationMethodEnum] = pydantic.Field(default=None) - """ - Preferred phone authentication method - """ - - key_id: typing.Optional[str] = pydantic.Field(default=None) - """ - Applies to webauthn authenticators only. The id of the credential. - """ - - public_key: typing.Optional[str] = pydantic.Field(default=None) - """ - Applies to webauthn authenticators only. The public key. - """ - - aaguid: typing.Optional[str] = pydantic.Field(default=None) - """ - Applies to passkeys only. Authenticator Attestation Globally Unique Identifier. - """ - - relying_party_identifier: typing.Optional[str] = pydantic.Field(default=None) - """ - Applies to webauthn authenticators only. The relying party identifier. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Authentication method creation date - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/set_user_authentication_methods.py b/src/auth0/management/types/set_user_authentication_methods.py deleted file mode 100644 index 366f42ab..00000000 --- a/src/auth0/management/types/set_user_authentication_methods.py +++ /dev/null @@ -1,41 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .authentication_type_enum import AuthenticationTypeEnum -from .preferred_authentication_method_enum import PreferredAuthenticationMethodEnum - - -class SetUserAuthenticationMethods(UniversalBaseModel): - type: AuthenticationTypeEnum - preferred_authentication_method: typing.Optional[PreferredAuthenticationMethodEnum] = None - name: typing.Optional[str] = pydantic.Field(default=None) - """ - AA human-readable label to identify the authentication method. - """ - - phone_number: typing.Optional[str] = pydantic.Field(default=None) - """ - Applies to phone authentication methods only. The destination phone number used to send verification codes via text and voice. - """ - - email: typing.Optional[str] = pydantic.Field(default=None) - """ - Applies to email authentication methods only. The email address used to send verification messages. - """ - - totp_secret: typing.Optional[str] = pydantic.Field(default=None) - """ - Applies to totp authentication methods only. The base32 encoded secret for TOTP generation. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/set_user_authentication_methods_request_content.py b/src/auth0/management/types/set_user_authentication_methods_request_content.py deleted file mode 100644 index f4910466..00000000 --- a/src/auth0/management/types/set_user_authentication_methods_request_content.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .set_user_authentication_methods import SetUserAuthenticationMethods - -SetUserAuthenticationMethodsRequestContent = typing.List[SetUserAuthenticationMethods] diff --git a/src/auth0/management/types/sets_custom_texts_by_language_request_content.py b/src/auth0/management/types/sets_custom_texts_by_language_request_content.py deleted file mode 100644 index f8ebe391..00000000 --- a/src/auth0/management/types/sets_custom_texts_by_language_request_content.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -SetsCustomTextsByLanguageRequestContent = typing.Dict[str, typing.Any] -""" -An object containing custom dictionaries for a group of screens. -""" diff --git a/src/auth0/management/types/sidebar.py b/src/auth0/management/types/sidebar.py deleted file mode 100644 index c7dcabbc..00000000 --- a/src/auth0/management/types/sidebar.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .sidebar_component import SidebarComponent - - -class Sidebar(UniversalBaseModel): - components: typing.Optional[typing.List[SidebarComponent]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/sidebar_component.py b/src/auth0/management/types/sidebar_component.py deleted file mode 100644 index 75cd97a9..00000000 --- a/src/auth0/management/types/sidebar_component.py +++ /dev/null @@ -1,80 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .sidebar_component_auth_0_external_link_config import SidebarComponentAuth0ExternalLinkConfig -from .sidebar_component_auth_0_external_link_v_2_config import SidebarComponentAuth0ExternalLinkV2Config -from .sidebar_component_auth_0_internal_link_config import SidebarComponentAuth0InternalLinkConfig -from .sidebar_component_auth_0_internal_link_v_2_config import SidebarComponentAuth0InternalLinkV2Config - - -class SidebarComponent_SidebarComponentAuth0ExternalLink(UniversalBaseModel): - type: typing.Literal["sidebar:component:auth0:external_link"] = "sidebar:component:auth0:external_link" - config: SidebarComponentAuth0ExternalLinkConfig - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -class SidebarComponent_SidebarComponentAuth0InternalLink(UniversalBaseModel): - type: typing.Literal["sidebar:component:auth0:internal_link"] = "sidebar:component:auth0:internal_link" - config: SidebarComponentAuth0InternalLinkConfig - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -class SidebarComponent_SidebarComponentAuth0ExternalLinkV2(UniversalBaseModel): - type: typing.Literal["sidebar:component:auth0:external_link:v2"] = "sidebar:component:auth0:external_link:v2" - config: SidebarComponentAuth0ExternalLinkV2Config - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -class SidebarComponent_SidebarComponentAuth0InternalLinkV2(UniversalBaseModel): - type: typing.Literal["sidebar:component:auth0:internal_link:v2"] = "sidebar:component:auth0:internal_link:v2" - config: SidebarComponentAuth0InternalLinkV2Config - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -SidebarComponent = typing_extensions.Annotated[ - typing.Union[ - SidebarComponent_SidebarComponentAuth0ExternalLink, - SidebarComponent_SidebarComponentAuth0InternalLink, - SidebarComponent_SidebarComponentAuth0ExternalLinkV2, - SidebarComponent_SidebarComponentAuth0InternalLinkV2, - ], - pydantic.Field(discriminator="type"), -] diff --git a/src/auth0/management/types/sidebar_component_auth_0_external_link.py b/src/auth0/management/types/sidebar_component_auth_0_external_link.py deleted file mode 100644 index 6f53493a..00000000 --- a/src/auth0/management/types/sidebar_component_auth_0_external_link.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .sidebar_component_auth_0_external_link_config import SidebarComponentAuth0ExternalLinkConfig - - -class SidebarComponentAuth0ExternalLink(UniversalBaseModel): - """ - Deprecated. Use "sidebar:component:auth0:external_link:v2" instead. - """ - - config: SidebarComponentAuth0ExternalLinkConfig - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/sidebar_component_auth_0_external_link_config.py b/src/auth0/management/types/sidebar_component_auth_0_external_link_config.py deleted file mode 100644 index c71cc9a9..00000000 --- a/src/auth0/management/types/sidebar_component_auth_0_external_link_config.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class SidebarComponentAuth0ExternalLinkConfig(UniversalBaseModel): - label: str = pydantic.Field() - """ - Text shown for the link. - """ - - url: str = pydantic.Field() - """ - External URL to navigate to. - """ - - icon: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of the icon displayed next to the link label. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/sidebar_component_auth_0_external_link_v_2.py b/src/auth0/management/types/sidebar_component_auth_0_external_link_v_2.py deleted file mode 100644 index 70201df5..00000000 --- a/src/auth0/management/types/sidebar_component_auth_0_external_link_v_2.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .sidebar_component_auth_0_external_link_v_2_config import SidebarComponentAuth0ExternalLinkV2Config - - -class SidebarComponentAuth0ExternalLinkV2(UniversalBaseModel): - config: SidebarComponentAuth0ExternalLinkV2Config - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/sidebar_component_auth_0_external_link_v_2_config.py b/src/auth0/management/types/sidebar_component_auth_0_external_link_v_2_config.py deleted file mode 100644 index d11e4c86..00000000 --- a/src/auth0/management/types/sidebar_component_auth_0_external_link_v_2_config.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class SidebarComponentAuth0ExternalLinkV2Config(UniversalBaseModel): - label: str = pydantic.Field() - """ - Text shown for the link. - """ - - href: str = pydantic.Field() - """ - External URL to navigate to. - """ - - icon: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of the icon displayed next to the link label. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/sidebar_component_auth_0_internal_link.py b/src/auth0/management/types/sidebar_component_auth_0_internal_link.py deleted file mode 100644 index 49d027ba..00000000 --- a/src/auth0/management/types/sidebar_component_auth_0_internal_link.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .sidebar_component_auth_0_internal_link_config import SidebarComponentAuth0InternalLinkConfig - - -class SidebarComponentAuth0InternalLink(UniversalBaseModel): - """ - Deprecated. Use "sidebar:component:auth0:internal_link:v2" instead. - """ - - config: SidebarComponentAuth0InternalLinkConfig - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/sidebar_component_auth_0_internal_link_config.py b/src/auth0/management/types/sidebar_component_auth_0_internal_link_config.py deleted file mode 100644 index 8da90ff3..00000000 --- a/src/auth0/management/types/sidebar_component_auth_0_internal_link_config.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class SidebarComponentAuth0InternalLinkConfig(UniversalBaseModel): - label: str = pydantic.Field() - """ - Text shown for the link. - """ - - to: str = pydantic.Field() - """ - Slug of the internal portal page to navigate to. - """ - - icon: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of the icon displayed next to the link label. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/sidebar_component_auth_0_internal_link_v_2.py b/src/auth0/management/types/sidebar_component_auth_0_internal_link_v_2.py deleted file mode 100644 index 06c42a14..00000000 --- a/src/auth0/management/types/sidebar_component_auth_0_internal_link_v_2.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .sidebar_component_auth_0_internal_link_v_2_config import SidebarComponentAuth0InternalLinkV2Config - - -class SidebarComponentAuth0InternalLinkV2(UniversalBaseModel): - config: SidebarComponentAuth0InternalLinkV2Config - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/sidebar_component_auth_0_internal_link_v_2_config.py b/src/auth0/management/types/sidebar_component_auth_0_internal_link_v_2_config.py deleted file mode 100644 index e4f4a542..00000000 --- a/src/auth0/management/types/sidebar_component_auth_0_internal_link_v_2_config.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class SidebarComponentAuth0InternalLinkV2Config(UniversalBaseModel): - label: str = pydantic.Field() - """ - Text shown for the link. - """ - - page_slug: str = pydantic.Field() - """ - Slug of the internal portal page to navigate to. - """ - - icon: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of the icon displayed next to the link label. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/signing_algorithm_enum.py b/src/auth0/management/types/signing_algorithm_enum.py deleted file mode 100644 index ce520ac6..00000000 --- a/src/auth0/management/types/signing_algorithm_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -SigningAlgorithmEnum = typing.Union[typing.Literal["HS256", "RS256", "RS512", "PS256"], typing.Any] diff --git a/src/auth0/management/types/signing_keys.py b/src/auth0/management/types/signing_keys.py deleted file mode 100644 index 0e5178e7..00000000 --- a/src/auth0/management/types/signing_keys.py +++ /dev/null @@ -1,73 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .signing_keys_date import SigningKeysDate - - -class SigningKeys(UniversalBaseModel): - kid: str = pydantic.Field() - """ - The key id of the signing key - """ - - cert: str = pydantic.Field() - """ - The public certificate of the signing key - """ - - pkcs_7: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="pkcs7"), - pydantic.Field(alias="pkcs7", description="The public certificate of the signing key in pkcs7 format"), - ] = None - """ - The public certificate of the signing key in pkcs7 format - """ - - current: typing.Optional[bool] = pydantic.Field(default=None) - """ - True if the key is the the current key - """ - - next: typing.Optional[bool] = pydantic.Field(default=None) - """ - True if the key is the the next key - """ - - previous: typing.Optional[bool] = pydantic.Field(default=None) - """ - True if the key is the the previous key - """ - - current_since: typing.Optional[SigningKeysDate] = None - current_until: typing.Optional[SigningKeysDate] = None - fingerprint: str = pydantic.Field() - """ - The cert fingerprint - """ - - thumbprint: str = pydantic.Field() - """ - The cert thumbprint - """ - - revoked: typing.Optional[bool] = pydantic.Field(default=None) - """ - True if the key is revoked - """ - - revoked_at: typing.Optional[SigningKeysDate] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/signing_keys_date.py b/src/auth0/management/types/signing_keys_date.py deleted file mode 100644 index e67fca2e..00000000 --- a/src/auth0/management/types/signing_keys_date.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -SigningKeysDate = typing.Union[str, typing.Dict[str, typing.Any]] diff --git a/src/auth0/management/types/signup_schema.py b/src/auth0/management/types/signup_schema.py deleted file mode 100644 index 1553eedd..00000000 --- a/src/auth0/management/types/signup_schema.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .signup_status_enum import SignupStatusEnum - - -class SignupSchema(UniversalBaseModel): - status: typing.Optional[SignupStatusEnum] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/signup_status_enum.py b/src/auth0/management/types/signup_status_enum.py deleted file mode 100644 index e0193950..00000000 --- a/src/auth0/management/types/signup_status_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -SignupStatusEnum = typing.Union[typing.Literal["required", "optional", "inactive"], typing.Any] diff --git a/src/auth0/management/types/signup_verification.py b/src/auth0/management/types/signup_verification.py deleted file mode 100644 index ba76f497..00000000 --- a/src/auth0/management/types/signup_verification.py +++ /dev/null @@ -1,19 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class SignupVerification(UniversalBaseModel): - active: typing.Optional[bool] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/signup_verified.py b/src/auth0/management/types/signup_verified.py deleted file mode 100644 index 6bb9af8b..00000000 --- a/src/auth0/management/types/signup_verified.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .signup_status_enum import SignupStatusEnum -from .signup_verification import SignupVerification - - -class SignupVerified(UniversalBaseModel): - status: typing.Optional[SignupStatusEnum] = None - verification: typing.Optional[SignupVerification] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/supported_locales.py b/src/auth0/management/types/supported_locales.py deleted file mode 100644 index 44168a33..00000000 --- a/src/auth0/management/types/supported_locales.py +++ /dev/null @@ -1,91 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -SupportedLocales = typing.Union[ - typing.Literal[ - "am", - "ar", - "ar-EG", - "ar-SA", - "az", - "bg", - "bn", - "bs", - "ca-ES", - "cnr", - "cs", - "cy", - "da", - "de", - "el", - "en", - "en-CA", - "es", - "es-419", - "es-AR", - "es-MX", - "et", - "eu-ES", - "fa", - "fi", - "fr", - "fr-CA", - "fr-FR", - "gl-ES", - "gu", - "he", - "hi", - "hr", - "hu", - "hy", - "id", - "is", - "it", - "ja", - "ka", - "kk", - "kn", - "ko", - "lt", - "lv", - "mk", - "ml", - "mn", - "mr", - "ms", - "my", - "nb", - "nl", - "nn", - "no", - "pa", - "pl", - "pt", - "pt-BR", - "pt-PT", - "ro", - "ru", - "sk", - "sl", - "so", - "sq", - "sr", - "sv", - "sw", - "ta", - "te", - "th", - "tl", - "tr", - "uk", - "ur", - "vi", - "zgh", - "zh-CN", - "zh-HK", - "zh-MO", - "zh-TW", - ], - typing.Any, -] diff --git a/src/auth0/management/types/suspicious_ip_throttling_allowlist.py b/src/auth0/management/types/suspicious_ip_throttling_allowlist.py deleted file mode 100644 index 07c5716e..00000000 --- a/src/auth0/management/types/suspicious_ip_throttling_allowlist.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .suspicious_ip_throttling_allowlist_item import SuspiciousIpThrottlingAllowlistItem - -SuspiciousIpThrottlingAllowlist = typing.List[SuspiciousIpThrottlingAllowlistItem] -""" -List of trusted IP addresses that will not have attack protection enforced against them. -""" diff --git a/src/auth0/management/types/suspicious_ip_throttling_allowlist_item.py b/src/auth0/management/types/suspicious_ip_throttling_allowlist_item.py deleted file mode 100644 index 96019194..00000000 --- a/src/auth0/management/types/suspicious_ip_throttling_allowlist_item.py +++ /dev/null @@ -1,3 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -SuspiciousIpThrottlingAllowlistItem = str diff --git a/src/auth0/management/types/suspicious_ip_throttling_pre_custom_token_exchange_stage.py b/src/auth0/management/types/suspicious_ip_throttling_pre_custom_token_exchange_stage.py deleted file mode 100644 index c2b51d0b..00000000 --- a/src/auth0/management/types/suspicious_ip_throttling_pre_custom_token_exchange_stage.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class SuspiciousIpThrottlingPreCustomTokenExchangeStage(UniversalBaseModel): - """ - Configuration options that apply before every custom token exchange attempt. - """ - - max_attempts: typing.Optional[int] = pydantic.Field(default=None) - """ - Total number of attempts allowed. - """ - - rate: typing.Optional[int] = pydantic.Field(default=None) - """ - Interval of time, given in milliseconds, at which new attempts are granted. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/suspicious_ip_throttling_pre_login_stage.py b/src/auth0/management/types/suspicious_ip_throttling_pre_login_stage.py deleted file mode 100644 index 52839284..00000000 --- a/src/auth0/management/types/suspicious_ip_throttling_pre_login_stage.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class SuspiciousIpThrottlingPreLoginStage(UniversalBaseModel): - """ - Configuration options that apply before every login attempt. - """ - - max_attempts: typing.Optional[int] = pydantic.Field(default=None) - """ - Total number of attempts allowed per day. - """ - - rate: typing.Optional[int] = pydantic.Field(default=None) - """ - Interval of time, given in milliseconds, at which new attempts are granted. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/suspicious_ip_throttling_pre_user_registration_stage.py b/src/auth0/management/types/suspicious_ip_throttling_pre_user_registration_stage.py deleted file mode 100644 index adc9c448..00000000 --- a/src/auth0/management/types/suspicious_ip_throttling_pre_user_registration_stage.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class SuspiciousIpThrottlingPreUserRegistrationStage(UniversalBaseModel): - """ - Configuration options that apply before every user registration attempt. - """ - - max_attempts: typing.Optional[int] = pydantic.Field(default=None) - """ - Total number of attempts allowed. - """ - - rate: typing.Optional[int] = pydantic.Field(default=None) - """ - Interval of time, given in milliseconds, at which new attempts are granted. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/suspicious_ip_throttling_shields_enum.py b/src/auth0/management/types/suspicious_ip_throttling_shields_enum.py deleted file mode 100644 index 9d570f3c..00000000 --- a/src/auth0/management/types/suspicious_ip_throttling_shields_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -SuspiciousIpThrottlingShieldsEnum = typing.Union[typing.Literal["block", "admin_notification"], typing.Any] diff --git a/src/auth0/management/types/suspicious_ip_throttling_stage.py b/src/auth0/management/types/suspicious_ip_throttling_stage.py deleted file mode 100644 index 5876508e..00000000 --- a/src/auth0/management/types/suspicious_ip_throttling_stage.py +++ /dev/null @@ -1,42 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .suspicious_ip_throttling_pre_custom_token_exchange_stage import SuspiciousIpThrottlingPreCustomTokenExchangeStage -from .suspicious_ip_throttling_pre_login_stage import SuspiciousIpThrottlingPreLoginStage -from .suspicious_ip_throttling_pre_user_registration_stage import SuspiciousIpThrottlingPreUserRegistrationStage - - -class SuspiciousIpThrottlingStage(UniversalBaseModel): - """ - Holds per-stage configuration options (max_attempts and rate). - """ - - pre_login: typing_extensions.Annotated[ - typing.Optional[SuspiciousIpThrottlingPreLoginStage], - FieldMetadata(alias="pre-login"), - pydantic.Field(alias="pre-login"), - ] = None - pre_user_registration: typing_extensions.Annotated[ - typing.Optional[SuspiciousIpThrottlingPreUserRegistrationStage], - FieldMetadata(alias="pre-user-registration"), - pydantic.Field(alias="pre-user-registration"), - ] = None - pre_custom_token_exchange: typing_extensions.Annotated[ - typing.Optional[SuspiciousIpThrottlingPreCustomTokenExchangeStage], - FieldMetadata(alias="pre-custom-token-exchange"), - pydantic.Field(alias="pre-custom-token-exchange"), - ] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/synchronize_groups_enum.py b/src/auth0/management/types/synchronize_groups_enum.py deleted file mode 100644 index 9eaa390a..00000000 --- a/src/auth0/management/types/synchronize_groups_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -SynchronizeGroupsEnum = typing.Union[typing.Literal["all", "off", "selected"], typing.Any] diff --git a/src/auth0/management/types/synchronized_group_payload.py b/src/auth0/management/types/synchronized_group_payload.py deleted file mode 100644 index 37dafa2d..00000000 --- a/src/auth0/management/types/synchronized_group_payload.py +++ /dev/null @@ -1,37 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class SynchronizedGroupPayload(UniversalBaseModel): - id: str = pydantic.Field() - """ - Google Workspace Directory group ID. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Google Workspace Directory group name. - """ - - email: typing.Optional[str] = pydantic.Field(default=None) - """ - Google Workspace Directory group email. - """ - - direct_members_count: typing.Optional[int] = pydantic.Field(default=None) - """ - Number of direct members in the Google Workspace Directory group. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/synchronized_group_selection_id.py b/src/auth0/management/types/synchronized_group_selection_id.py deleted file mode 100644 index 0510875e..00000000 --- a/src/auth0/management/types/synchronized_group_selection_id.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class SynchronizedGroupSelectionId(UniversalBaseModel): - id: str = pydantic.Field() - """ - Google Workspace Directory group ID. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/system_role_owner_id.py b/src/auth0/management/types/system_role_owner_id.py deleted file mode 100644 index 61a8a3e3..00000000 --- a/src/auth0/management/types/system_role_owner_id.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -SystemRoleOwnerId = typing.Union[typing.Literal["auth0"], typing.Any] diff --git a/src/auth0/management/types/tenant_oidc_logout_settings.py b/src/auth0/management/types/tenant_oidc_logout_settings.py deleted file mode 100644 index 53dcea35..00000000 --- a/src/auth0/management/types/tenant_oidc_logout_settings.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class TenantOidcLogoutSettings(UniversalBaseModel): - """ - Settings related to OIDC RP-initiated Logout - """ - - rp_logout_end_session_endpoint_discovery: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enable the end_session_endpoint URL in the .well-known discovery configuration - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/tenant_settings_country_codes.py b/src/auth0/management/types/tenant_settings_country_codes.py deleted file mode 100644 index 783a8b96..00000000 --- a/src/auth0/management/types/tenant_settings_country_codes.py +++ /dev/null @@ -1,35 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .tenant_settings_country_codes_mode import TenantSettingsCountryCodesMode - - -class TenantSettingsCountryCodes(UniversalBaseModel): - """ - Phone country code configuration for identifier input. - """ - - list_: typing_extensions.Annotated[ - typing.Optional[typing.List[str]], - FieldMetadata(alias="list"), - pydantic.Field(alias="list", description="Array of ISO 3166-1 alpha-2 country codes."), - ] = None - """ - Array of ISO 3166-1 alpha-2 country codes. - """ - - mode: typing.Optional[TenantSettingsCountryCodesMode] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/tenant_settings_country_codes_mode.py b/src/auth0/management/types/tenant_settings_country_codes_mode.py deleted file mode 100644 index c3f1cb10..00000000 --- a/src/auth0/management/types/tenant_settings_country_codes_mode.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -TenantSettingsCountryCodesMode = typing.Union[typing.Literal["allow", "deny"], typing.Any] diff --git a/src/auth0/management/types/tenant_settings_country_codes_mode_response.py b/src/auth0/management/types/tenant_settings_country_codes_mode_response.py deleted file mode 100644 index ac28c6dc..00000000 --- a/src/auth0/management/types/tenant_settings_country_codes_mode_response.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -TenantSettingsCountryCodesModeResponse = typing.Union[typing.Literal["allow", "deny"], typing.Any] diff --git a/src/auth0/management/types/tenant_settings_country_codes_response.py b/src/auth0/management/types/tenant_settings_country_codes_response.py deleted file mode 100644 index 94ab748f..00000000 --- a/src/auth0/management/types/tenant_settings_country_codes_response.py +++ /dev/null @@ -1,35 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .tenant_settings_country_codes_mode_response import TenantSettingsCountryCodesModeResponse - - -class TenantSettingsCountryCodesResponse(UniversalBaseModel): - """ - Phone country code configuration for identifier input. - """ - - list_: typing_extensions.Annotated[ - typing.Optional[typing.List[str]], - FieldMetadata(alias="list"), - pydantic.Field(alias="list", description="Array of ISO 3166-1 alpha-2 country codes."), - ] = None - """ - Array of ISO 3166-1 alpha-2 country codes. - """ - - mode: typing.Optional[TenantSettingsCountryCodesModeResponse] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/tenant_settings_device_flow.py b/src/auth0/management/types/tenant_settings_device_flow.py deleted file mode 100644 index 89071d97..00000000 --- a/src/auth0/management/types/tenant_settings_device_flow.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .tenant_settings_device_flow_charset import TenantSettingsDeviceFlowCharset - - -class TenantSettingsDeviceFlow(UniversalBaseModel): - """ - Device Flow configuration - """ - - charset: typing.Optional[TenantSettingsDeviceFlowCharset] = None - mask: typing.Optional[str] = pydantic.Field(default=None) - """ - Mask used to format a generated User Code into a friendly, readable format. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/tenant_settings_device_flow_charset.py b/src/auth0/management/types/tenant_settings_device_flow_charset.py deleted file mode 100644 index 7b68910b..00000000 --- a/src/auth0/management/types/tenant_settings_device_flow_charset.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -TenantSettingsDeviceFlowCharset = typing.Union[typing.Literal["base20", "digits"], typing.Any] diff --git a/src/auth0/management/types/tenant_settings_dynamic_client_registration_security_mode.py b/src/auth0/management/types/tenant_settings_dynamic_client_registration_security_mode.py deleted file mode 100644 index f9ed6c0a..00000000 --- a/src/auth0/management/types/tenant_settings_dynamic_client_registration_security_mode.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -TenantSettingsDynamicClientRegistrationSecurityMode = typing.Union[typing.Literal["strict", "permissive"], typing.Any] diff --git a/src/auth0/management/types/tenant_settings_error_page.py b/src/auth0/management/types/tenant_settings_error_page.py deleted file mode 100644 index 2a30673f..00000000 --- a/src/auth0/management/types/tenant_settings_error_page.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class TenantSettingsErrorPage(UniversalBaseModel): - """ - Error page customization. - """ - - html: typing.Optional[str] = pydantic.Field(default=None) - """ - Custom Error HTML (Liquid syntax is supported). - """ - - show_log_link: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether to show the link to log as part of the default error page (true, default) or not to show the link (false). - """ - - url: typing.Optional[str] = pydantic.Field(default=None) - """ - URL to redirect to when an error occurs instead of showing the default error page. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/tenant_settings_flags.py b/src/auth0/management/types/tenant_settings_flags.py deleted file mode 100644 index 515f92a7..00000000 --- a/src/auth0/management/types/tenant_settings_flags.py +++ /dev/null @@ -1,189 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata - - -class TenantSettingsFlags(UniversalBaseModel): - """ - Flags used to change the behavior of this tenant. - """ - - change_pwd_flow_v_1: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="change_pwd_flow_v1"), - pydantic.Field( - alias="change_pwd_flow_v1", - description="Whether to use the older v1 change password flow (true, not recommended except for backward compatibility) or the newer safer flow (false, recommended).", - ), - ] = None - """ - Whether to use the older v1 change password flow (true, not recommended except for backward compatibility) or the newer safer flow (false, recommended). - """ - - enable_apis_section: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether the APIs section is enabled (true) or disabled (false). - """ - - disable_impersonation: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether the impersonation functionality has been disabled (true) or not (false). Read-only. - """ - - enable_client_connections: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether all current connections should be enabled when a new client (application) is created (true, default) or not (false). - """ - - enable_pipeline_2: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="enable_pipeline2"), - pydantic.Field( - alias="enable_pipeline2", - description="Whether advanced API Authorization scenarios are enabled (true) or disabled (false).", - ), - ] = None - """ - Whether advanced API Authorization scenarios are enabled (true) or disabled (false). - """ - - allow_legacy_delegation_grant_types: typing.Optional[bool] = pydantic.Field(default=None) - """ - If enabled, clients are able to add legacy delegation grants. - """ - - allow_legacy_ro_grant_types: typing.Optional[bool] = pydantic.Field(default=None) - """ - If enabled, clients are able to add legacy RO grants. - """ - - allow_legacy_tokeninfo_endpoint: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether the legacy `/tokeninfo` endpoint is enabled for your account (true) or unavailable (false). - """ - - enable_legacy_profile: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether ID tokens and the userinfo endpoint includes a complete user profile (true) or only OpenID Connect claims (false). - """ - - enable_idtoken_api_2: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="enable_idtoken_api2"), - pydantic.Field( - alias="enable_idtoken_api2", - description="Whether ID tokens can be used to authorize some types of requests to API v2 (true) not not (false).", - ), - ] = None - """ - Whether ID tokens can be used to authorize some types of requests to API v2 (true) not not (false). - """ - - enable_public_signup_user_exists_error: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether the public sign up process shows a user_exists error (true) or a generic error (false) if the user already exists. - """ - - enable_sso: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether users are prompted to confirm log in before SSO redirection (false) or are not prompted (true). - """ - - allow_changing_enable_sso: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether the `enable_sso` setting can be changed (true) or not (false). - """ - - disable_clickjack_protection_headers: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether classic Universal Login prompts include additional security headers to prevent clickjacking (true) or no safeguard (false). - """ - - no_disclose_enterprise_connections: typing.Optional[bool] = pydantic.Field(default=None) - """ - Do not Publish Enterprise Connections Information with IdP domains on the lock configuration file. - """ - - enforce_client_authentication_on_passwordless_start: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enforce client authentication for passwordless start. - """ - - enable_adfs_waad_email_verification: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables the email verification flow during login for Azure AD and ADFS connections - """ - - revoke_refresh_token_grant: typing.Optional[bool] = pydantic.Field(default=None) - """ - Delete underlying grant when a Refresh Token is revoked via the Authentication API. - """ - - dashboard_log_streams_next: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables beta access to log streaming changes - """ - - dashboard_insights_view: typing.Optional[bool] = pydantic.Field(default=None) - """ - Deprecated. This flag has no effect and is retained only for backward compatibility - """ - - disable_fields_map_fix: typing.Optional[bool] = pydantic.Field(default=None) - """ - Disables SAML fields map fix for bad mappings with repeated attributes - """ - - mfa_show_factor_list_on_enrollment: typing.Optional[bool] = pydantic.Field(default=None) - """ - Used to allow users to pick what factor to enroll of the available MFA factors. - """ - - remove_alg_from_jwks: typing.Optional[bool] = pydantic.Field(default=None) - """ - Removes alg property from jwks .well-known endpoint - """ - - improved_signup_bot_detection_in_classic: typing.Optional[bool] = pydantic.Field(default=None) - """ - Improves bot detection during signup in classic universal login - """ - - local_resource_discovery: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether the Local Resource Discovery endpoint is enabled (true) or disabled (false). - """ - - enable_dynamic_client_registration: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether third-party developers can dynamically register applications for your APIs (true) or not (false). This flag enables dynamic client registration. - """ - - disable_management_api_sms_obfuscation: typing.Optional[bool] = pydantic.Field(default=None) - """ - If true, SMS phone numbers will not be obfuscated in Management API GET calls. - """ - - trust_azure_adfs_email_verified_connection_property: typing.Optional[bool] = pydantic.Field(default=None) - """ - Changes email_verified behavior for Azure AD/ADFS connections when enabled. Sets email_verified to false otherwise. - """ - - custom_domains_provisioning: typing.Optional[bool] = pydantic.Field(default=None) - """ - If true, custom domains feature will be enabled for tenant. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/tenant_settings_guardian_page.py b/src/auth0/management/types/tenant_settings_guardian_page.py deleted file mode 100644 index 9744bd76..00000000 --- a/src/auth0/management/types/tenant_settings_guardian_page.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class TenantSettingsGuardianPage(UniversalBaseModel): - """ - Guardian page customization. - """ - - enabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether to use the custom Guardian HTML (true) or the default Auth0 page (false, default) - """ - - html: typing.Optional[str] = pydantic.Field(default=None) - """ - Custom Guardian HTML (Liquid syntax is supported). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/tenant_settings_mtls.py b/src/auth0/management/types/tenant_settings_mtls.py deleted file mode 100644 index afd8bb24..00000000 --- a/src/auth0/management/types/tenant_settings_mtls.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class TenantSettingsMtls(UniversalBaseModel): - """ - mTLS configuration. - """ - - enable_endpoint_aliases: typing.Optional[bool] = pydantic.Field(default=None) - """ - If true, enables mTLS endpoint aliases - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/tenant_settings_nullable_security_headers.py b/src/auth0/management/types/tenant_settings_nullable_security_headers.py deleted file mode 100644 index aa6ca1ee..00000000 --- a/src/auth0/management/types/tenant_settings_nullable_security_headers.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .content_security_policy_config import ContentSecurityPolicyConfig -from .xss_protection_config import XssProtectionConfig - - -class TenantSettingsNullableSecurityHeaders(UniversalBaseModel): - """ - Security headers configuration for tenant responses. - """ - - content_security_policy: typing.Optional[ContentSecurityPolicyConfig] = None - x_xss_protection: typing.Optional[XssProtectionConfig] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/tenant_settings_password_page.py b/src/auth0/management/types/tenant_settings_password_page.py deleted file mode 100644 index adfa6ad8..00000000 --- a/src/auth0/management/types/tenant_settings_password_page.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class TenantSettingsPasswordPage(UniversalBaseModel): - """ - Change Password page customization. - """ - - enabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether to use the custom change password HTML (true) or the default Auth0 page (false). Default is to use the Auth0 page. - """ - - html: typing.Optional[str] = pydantic.Field(default=None) - """ - Custom change password HTML (Liquid syntax supported). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/tenant_settings_resource_parameter_profile.py b/src/auth0/management/types/tenant_settings_resource_parameter_profile.py deleted file mode 100644 index 8afd1312..00000000 --- a/src/auth0/management/types/tenant_settings_resource_parameter_profile.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -TenantSettingsResourceParameterProfile = typing.Union[typing.Literal["audience", "compatibility"], typing.Any] diff --git a/src/auth0/management/types/tenant_settings_sessions.py b/src/auth0/management/types/tenant_settings_sessions.py deleted file mode 100644 index 8ef86c8b..00000000 --- a/src/auth0/management/types/tenant_settings_sessions.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .tenant_settings_sessions_anonymous import TenantSettingsSessionsAnonymous - - -class TenantSettingsSessions(UniversalBaseModel): - """ - Sessions related settings for tenant - """ - - oidc_logout_prompt_enabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether to bypass prompting logic (false) when performing OIDC Logout - """ - - anonymous: typing.Optional[TenantSettingsSessionsAnonymous] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/tenant_settings_sessions_anonymous.py b/src/auth0/management/types/tenant_settings_sessions_anonymous.py deleted file mode 100644 index 4df223e7..00000000 --- a/src/auth0/management/types/tenant_settings_sessions_anonymous.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class TenantSettingsSessionsAnonymous(UniversalBaseModel): - """ - Anonymous session settings for tenant. - """ - - lifetime_in_minutes: typing.Optional[int] = pydantic.Field(default=None) - """ - Anonymous session lifetime, in minutes. Defaults to 43200 (30 days); maximum 525600 (1 year). - """ - - activate_cookie: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether anonymous session requests return the `auth0_anon` cookie. Defaults to enabled; set to false to stop issuing the cookie. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/tenant_settings_supported_locales_enum.py b/src/auth0/management/types/tenant_settings_supported_locales_enum.py deleted file mode 100644 index c21b898e..00000000 --- a/src/auth0/management/types/tenant_settings_supported_locales_enum.py +++ /dev/null @@ -1,91 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -TenantSettingsSupportedLocalesEnum = typing.Union[ - typing.Literal[ - "am", - "ar", - "ar-EG", - "ar-SA", - "az", - "bg", - "bn", - "bs", - "ca-ES", - "cnr", - "cs", - "cy", - "da", - "de", - "el", - "en", - "en-CA", - "es", - "es-419", - "es-AR", - "es-MX", - "et", - "eu-ES", - "fa", - "fi", - "fr", - "fr-CA", - "fr-FR", - "gl-ES", - "gu", - "he", - "hi", - "hr", - "hu", - "hy", - "id", - "is", - "it", - "ja", - "ka", - "kk", - "kn", - "ko", - "lt", - "lv", - "mk", - "ml", - "mn", - "mr", - "ms", - "my", - "nb", - "nl", - "nn", - "no", - "pa", - "pl", - "pt", - "pt-BR", - "pt-PT", - "ro", - "ru", - "sk", - "sl", - "so", - "sq", - "sr", - "sv", - "sw", - "ta", - "te", - "th", - "tl", - "tr", - "uk", - "ur", - "vi", - "zgh", - "zh-CN", - "zh-HK", - "zh-MO", - "zh-TW", - ], - typing.Any, -] diff --git a/src/auth0/management/types/test_action_payload.py b/src/auth0/management/types/test_action_payload.py deleted file mode 100644 index e713ce86..00000000 --- a/src/auth0/management/types/test_action_payload.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -TestActionPayload = typing.Dict[str, typing.Any] -""" -The payload for the action. -""" diff --git a/src/auth0/management/types/test_action_response_content.py b/src/auth0/management/types/test_action_response_content.py deleted file mode 100644 index c5b5ca5b..00000000 --- a/src/auth0/management/types/test_action_response_content.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .test_action_result_payload import TestActionResultPayload - - -class TestActionResponseContent(UniversalBaseModel): - payload: typing.Optional[TestActionResultPayload] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/test_action_result_payload.py b/src/auth0/management/types/test_action_result_payload.py deleted file mode 100644 index 24536d40..00000000 --- a/src/auth0/management/types/test_action_result_payload.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -TestActionResultPayload = typing.Dict[str, typing.Any] -""" -The resulting payload after an action was executed. -""" diff --git a/src/auth0/management/types/test_custom_domain_response_content.py b/src/auth0/management/types/test_custom_domain_response_content.py deleted file mode 100644 index a1c79a20..00000000 --- a/src/auth0/management/types/test_custom_domain_response_content.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class TestCustomDomainResponseContent(UniversalBaseModel): - success: bool = pydantic.Field() - """ - Result of the operation. - """ - - message: typing.Optional[str] = pydantic.Field(default=None) - """ - Message describing the operation status. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/test_event_data_content.py b/src/auth0/management/types/test_event_data_content.py deleted file mode 100644 index 8b62dc4f..00000000 --- a/src/auth0/management/types/test_event_data_content.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -TestEventDataContent = typing.Dict[str, typing.Any] -""" -The raw payload of the test event. -""" diff --git a/src/auth0/management/types/third_party_client_access_config.py b/src/auth0/management/types/third_party_client_access_config.py deleted file mode 100644 index ff87c8a5..00000000 --- a/src/auth0/management/types/third_party_client_access_config.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class ThirdPartyClientAccessConfig(UniversalBaseModel): - """ - Configuration for Third Party Client Access during the Self-Service Enterprise Configuration flow. - """ - - allow_configuration: bool = pydantic.Field() - """ - Whether third-party applications can configure the connection as a domain-level connection during the Self-Service Enterprise Configuration flow. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/token_exchange_profile_response_content.py b/src/auth0/management/types/token_exchange_profile_response_content.py deleted file mode 100644 index 61e759e6..00000000 --- a/src/auth0/management/types/token_exchange_profile_response_content.py +++ /dev/null @@ -1,50 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .token_exchange_profile_type_enum import TokenExchangeProfileTypeEnum - - -class TokenExchangeProfileResponseContent(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - The unique ID of the token exchange profile. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Friendly name of this profile. - """ - - subject_token_type: typing.Optional[str] = pydantic.Field(default=None) - """ - Subject token type for this profile. When receiving a token exchange request on the Authentication API, the corresponding token exchange profile with a matching subject_token_type will be executed. This must be a URI. - """ - - action_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The ID of the Custom Token Exchange action to execute for this profile, in order to validate the subject_token. The action must use the custom-token-exchange trigger. - """ - - type: typing.Optional[TokenExchangeProfileTypeEnum] = None - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The time when this profile was created. - """ - - updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The time when this profile was updated. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/token_exchange_profile_type_enum.py b/src/auth0/management/types/token_exchange_profile_type_enum.py deleted file mode 100644 index 56fe406c..00000000 --- a/src/auth0/management/types/token_exchange_profile_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -TokenExchangeProfileTypeEnum = typing.Union[typing.Literal["custom_authentication"], typing.Any] diff --git a/src/auth0/management/types/token_quota.py b/src/auth0/management/types/token_quota.py deleted file mode 100644 index b12ef20b..00000000 --- a/src/auth0/management/types/token_quota.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .token_quota_client_credentials import TokenQuotaClientCredentials - - -class TokenQuota(UniversalBaseModel): - client_credentials: TokenQuotaClientCredentials - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/token_quota_client_credentials.py b/src/auth0/management/types/token_quota_client_credentials.py deleted file mode 100644 index 87a2dfb8..00000000 --- a/src/auth0/management/types/token_quota_client_credentials.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class TokenQuotaClientCredentials(UniversalBaseModel): - """ - The token quota configuration - """ - - enforce: typing.Optional[bool] = pydantic.Field(default=None) - """ - If enabled, the quota will be enforced and requests in excess of the quota will fail. If disabled, the quota will not be enforced, but notifications for requests exceeding the quota will be available in logs. - """ - - per_day: typing.Optional[int] = pydantic.Field(default=None) - """ - Maximum number of issued tokens per day - """ - - per_hour: typing.Optional[int] = pydantic.Field(default=None) - """ - Maximum number of issued tokens per hour - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/token_quota_configuration.py b/src/auth0/management/types/token_quota_configuration.py deleted file mode 100644 index d7ccea5f..00000000 --- a/src/auth0/management/types/token_quota_configuration.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .token_quota_client_credentials import TokenQuotaClientCredentials - - -class TokenQuotaConfiguration(UniversalBaseModel): - client_credentials: TokenQuotaClientCredentials - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/token_vault_privileged_access_grant.py b/src/auth0/management/types/token_vault_privileged_access_grant.py deleted file mode 100644 index d28e6392..00000000 --- a/src/auth0/management/types/token_vault_privileged_access_grant.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class TokenVaultPrivilegedAccessGrant(UniversalBaseModel): - connection: str - scopes: typing.List[str] - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/token_vault_privileged_access_ip_allowlist_entry.py b/src/auth0/management/types/token_vault_privileged_access_ip_allowlist_entry.py deleted file mode 100644 index 372b8657..00000000 --- a/src/auth0/management/types/token_vault_privileged_access_ip_allowlist_entry.py +++ /dev/null @@ -1,3 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -TokenVaultPrivilegedAccessIpAllowlistEntry = str diff --git a/src/auth0/management/types/too_many_requests_error_body.py b/src/auth0/management/types/too_many_requests_error_body.py deleted file mode 100644 index 61e5254e..00000000 --- a/src/auth0/management/types/too_many_requests_error_body.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .too_many_requests_error_body_error import TooManyRequestsErrorBodyError - - -class TooManyRequestsErrorBody(UniversalBaseModel): - message: str - status_code: typing_extensions.Annotated[str, FieldMetadata(alias="statusCode"), pydantic.Field(alias="statusCode")] - error: TooManyRequestsErrorBodyError - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/too_many_requests_error_body_error.py b/src/auth0/management/types/too_many_requests_error_body_error.py deleted file mode 100644 index f6bfb865..00000000 --- a/src/auth0/management/types/too_many_requests_error_body_error.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -TooManyRequestsErrorBodyError = typing.Union[typing.Literal["Too Many Requests"], typing.Any] diff --git a/src/auth0/management/types/too_many_requests_schema.py b/src/auth0/management/types/too_many_requests_schema.py deleted file mode 100644 index 037d5f35..00000000 --- a/src/auth0/management/types/too_many_requests_schema.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .too_many_requests_schema_error import TooManyRequestsSchemaError - - -class TooManyRequestsSchema(UniversalBaseModel): - """ - Too Many Requests - """ - - message: str - status_code: typing_extensions.Annotated[str, FieldMetadata(alias="statusCode"), pydantic.Field(alias="statusCode")] - error: TooManyRequestsSchemaError - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/too_many_requests_schema_error.py b/src/auth0/management/types/too_many_requests_schema_error.py deleted file mode 100644 index 19cfa390..00000000 --- a/src/auth0/management/types/too_many_requests_schema_error.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -TooManyRequestsSchemaError = typing.Union[typing.Literal["Too Many Requests"], typing.Any] diff --git a/src/auth0/management/types/twilio_provider_configuration.py b/src/auth0/management/types/twilio_provider_configuration.py deleted file mode 100644 index 6cba6298..00000000 --- a/src/auth0/management/types/twilio_provider_configuration.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .twilio_provider_delivery_method_enum import TwilioProviderDeliveryMethodEnum - - -class TwilioProviderConfiguration(UniversalBaseModel): - default_from: typing.Optional[str] = None - mssid: typing.Optional[str] = None - sid: str - delivery_methods: typing.List[TwilioProviderDeliveryMethodEnum] - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/twilio_provider_credentials.py b/src/auth0/management/types/twilio_provider_credentials.py deleted file mode 100644 index 4fa1b55c..00000000 --- a/src/auth0/management/types/twilio_provider_credentials.py +++ /dev/null @@ -1,19 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class TwilioProviderCredentials(UniversalBaseModel): - auth_token: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/twilio_provider_delivery_method_enum.py b/src/auth0/management/types/twilio_provider_delivery_method_enum.py deleted file mode 100644 index b0bef591..00000000 --- a/src/auth0/management/types/twilio_provider_delivery_method_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -TwilioProviderDeliveryMethodEnum = typing.Union[typing.Literal["text", "voice"], typing.Any] diff --git a/src/auth0/management/types/unauthorized_schema.py b/src/auth0/management/types/unauthorized_schema.py deleted file mode 100644 index e034b792..00000000 --- a/src/auth0/management/types/unauthorized_schema.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .unauthorized_schema_error import UnauthorizedSchemaError - - -class UnauthorizedSchema(UniversalBaseModel): - """ - Unauthorized - """ - - message: str - status_code: typing_extensions.Annotated[str, FieldMetadata(alias="statusCode"), pydantic.Field(alias="statusCode")] - error: UnauthorizedSchemaError - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/unauthorized_schema_error.py b/src/auth0/management/types/unauthorized_schema_error.py deleted file mode 100644 index 643e2b41..00000000 --- a/src/auth0/management/types/unauthorized_schema_error.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -UnauthorizedSchemaError = typing.Union[typing.Literal["Unauthorized"], typing.Any] diff --git a/src/auth0/management/types/universal_login_experience_enum.py b/src/auth0/management/types/universal_login_experience_enum.py deleted file mode 100644 index 44159c8c..00000000 --- a/src/auth0/management/types/universal_login_experience_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -UniversalLoginExperienceEnum = typing.Union[typing.Literal["new", "classic"], typing.Any] diff --git a/src/auth0/management/types/update_action_bindings_response_content.py b/src/auth0/management/types/update_action_bindings_response_content.py deleted file mode 100644 index 8b165baa..00000000 --- a/src/auth0/management/types/update_action_bindings_response_content.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .action_binding import ActionBinding - - -class UpdateActionBindingsResponseContent(UniversalBaseModel): - bindings: typing.Optional[typing.List[ActionBinding]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_action_module_response_content.py b/src/auth0/management/types/update_action_module_response_content.py deleted file mode 100644 index 05a85ecd..00000000 --- a/src/auth0/management/types/update_action_module_response_content.py +++ /dev/null @@ -1,73 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .action_module_dependency import ActionModuleDependency -from .action_module_secret import ActionModuleSecret -from .action_module_version_reference import ActionModuleVersionReference - - -class UpdateActionModuleResponseContent(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - The unique ID of the module. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The name of the module. - """ - - code: typing.Optional[str] = pydantic.Field(default=None) - """ - The source code from the module's draft version. - """ - - dependencies: typing.Optional[typing.List[ActionModuleDependency]] = pydantic.Field(default=None) - """ - The npm dependencies from the module's draft version. - """ - - secrets: typing.Optional[typing.List[ActionModuleSecret]] = pydantic.Field(default=None) - """ - The secrets from the module's draft version (names and timestamps only, values never returned). - """ - - actions_using_module_total: typing.Optional[int] = pydantic.Field(default=None) - """ - The number of deployed actions using this module. - """ - - all_changes_published: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether all draft changes have been published as a version. - """ - - latest_version_number: typing.Optional[int] = pydantic.Field(default=None) - """ - The version number of the latest published version. Omitted if no versions have been published. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Timestamp when the module was created. - """ - - updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Timestamp when the module was last updated. - """ - - latest_version: typing.Optional[ActionModuleVersionReference] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_action_response_content.py b/src/auth0/management/types/update_action_response_content.py deleted file mode 100644 index 198acae8..00000000 --- a/src/auth0/management/types/update_action_response_content.py +++ /dev/null @@ -1,98 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .action_build_status_enum import ActionBuildStatusEnum -from .action_deployed_version import ActionDeployedVersion -from .action_module_reference import ActionModuleReference -from .action_secret_response import ActionSecretResponse -from .action_trigger import ActionTrigger -from .action_version_dependency import ActionVersionDependency -from .integration import Integration - - -class UpdateActionResponseContent(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - The unique ID of the action. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The name of an action. - """ - - supported_triggers: typing.Optional[typing.List[ActionTrigger]] = pydantic.Field(default=None) - """ - The list of triggers that this action supports. At this time, an action can only target a single trigger at a time. - """ - - all_changes_deployed: typing.Optional[bool] = pydantic.Field(default=None) - """ - True if all of an Action's contents have been deployed. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The time when this action was created. - """ - - updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The time when this action was updated. - """ - - code: typing.Optional[str] = pydantic.Field(default=None) - """ - The source code of the action. - """ - - dependencies: typing.Optional[typing.List[ActionVersionDependency]] = pydantic.Field(default=None) - """ - The list of third party npm modules, and their versions, that this action depends on. - """ - - runtime: typing.Optional[str] = pydantic.Field(default=None) - """ - The Node runtime. For example: `node22`, defaults to `node22` - """ - - secrets: typing.Optional[typing.List[ActionSecretResponse]] = pydantic.Field(default=None) - """ - The list of secrets that are included in an action or a version of an action. - """ - - deployed_version: typing.Optional[ActionDeployedVersion] = None - installed_integration_id: typing.Optional[str] = pydantic.Field(default=None) - """ - installed_integration_id is the fk reference to the InstalledIntegration entity. - """ - - integration: typing.Optional[Integration] = None - status: typing.Optional[ActionBuildStatusEnum] = None - built_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The time when this action was built successfully. - """ - - deploy: typing.Optional[bool] = pydantic.Field(default=None) - """ - True if the action should be deployed after creation. - """ - - modules: typing.Optional[typing.List[ActionModuleReference]] = pydantic.Field(default=None) - """ - The list of action modules and their versions used by this action. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_acul_response_content.py b/src/auth0/management/types/update_acul_response_content.py deleted file mode 100644 index c982c060..00000000 --- a/src/auth0/management/types/update_acul_response_content.py +++ /dev/null @@ -1,44 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .acul_context_configuration import AculContextConfiguration -from .acul_filters import AculFilters -from .acul_head_tag import AculHeadTag -from .acul_rendering_mode_enum import AculRenderingModeEnum - - -class UpdateAculResponseContent(UniversalBaseModel): - rendering_mode: typing.Optional[AculRenderingModeEnum] = pydantic.Field(default=None) - """ - Rendering mode - """ - - context_configuration: typing.Optional[AculContextConfiguration] = None - default_head_tags_disabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - Override Universal Login default head tags - """ - - use_page_template: typing.Optional[bool] = pydantic.Field(default=None) - """ - Use page template with ACUL - """ - - head_tags: typing.Optional[typing.List[AculHeadTag]] = pydantic.Field(default=None) - """ - An array of head tags - """ - - filters: typing.Optional[AculFilters] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_anonymous_sessions.py b/src/auth0/management/types/update_anonymous_sessions.py deleted file mode 100644 index 88404c09..00000000 --- a/src/auth0/management/types/update_anonymous_sessions.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class UpdateAnonymousSessions(UniversalBaseModel): - """ - Anonymous sessions configuration for this client. - """ - - active: bool = pydantic.Field() - """ - If set to true, this client is allowed to create anonymous sessions. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_attack_protection_captcha_response_content.py b/src/auth0/management/types/update_attack_protection_captcha_response_content.py deleted file mode 100644 index 0df1b7df..00000000 --- a/src/auth0/management/types/update_attack_protection_captcha_response_content.py +++ /dev/null @@ -1,47 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .attack_protection_captcha_arkose_response_content import AttackProtectionCaptchaArkoseResponseContent -from .attack_protection_captcha_auth_challenge_response_content import ( - AttackProtectionCaptchaAuthChallengeResponseContent, -) -from .attack_protection_captcha_friendly_captcha_response_content import ( - AttackProtectionCaptchaFriendlyCaptchaResponseContent, -) -from .attack_protection_captcha_hcaptcha_response_content import AttackProtectionCaptchaHcaptchaResponseContent -from .attack_protection_captcha_recaptcha_enterprise_response_content import ( - AttackProtectionCaptchaRecaptchaEnterpriseResponseContent, -) -from .attack_protection_captcha_recaptcha_v_2_response_content import AttackProtectionCaptchaRecaptchaV2ResponseContent -from .attack_protection_captcha_simple_captcha_response_content import ( - AttackProtectionCaptchaSimpleCaptchaResponseContent, -) - - -class UpdateAttackProtectionCaptchaResponseContent(UniversalBaseModel): - active_provider_id: typing.Optional[str] = None - arkose: typing.Optional[AttackProtectionCaptchaArkoseResponseContent] = None - auth_challenge: typing.Optional[AttackProtectionCaptchaAuthChallengeResponseContent] = None - hcaptcha: typing.Optional[AttackProtectionCaptchaHcaptchaResponseContent] = None - friendly_captcha: typing.Optional[AttackProtectionCaptchaFriendlyCaptchaResponseContent] = None - recaptcha_enterprise: typing.Optional[AttackProtectionCaptchaRecaptchaEnterpriseResponseContent] = None - recaptcha_v_2: typing_extensions.Annotated[ - typing.Optional[AttackProtectionCaptchaRecaptchaV2ResponseContent], - FieldMetadata(alias="recaptcha_v2"), - pydantic.Field(alias="recaptcha_v2"), - ] = None - simple_captcha: typing.Optional[AttackProtectionCaptchaSimpleCaptchaResponseContent] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_bot_detection_settings_response_content.py b/src/auth0/management/types/update_bot_detection_settings_response_content.py deleted file mode 100644 index a679df9f..00000000 --- a/src/auth0/management/types/update_bot_detection_settings_response_content.py +++ /dev/null @@ -1,30 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .bot_detection_allowlist import BotDetectionAllowlist -from .bot_detection_challenge_policy_password_flow_enum import BotDetectionChallengePolicyPasswordFlowEnum -from .bot_detection_challenge_policy_password_reset_flow_enum import BotDetectionChallengePolicyPasswordResetFlowEnum -from .bot_detection_challenge_policy_passwordless_flow_enum import BotDetectionChallengePolicyPasswordlessFlowEnum -from .bot_detection_level_enum import BotDetectionLevelEnum -from .bot_detection_monitoring_mode_enabled import BotDetectionMonitoringModeEnabled - - -class UpdateBotDetectionSettingsResponseContent(UniversalBaseModel): - bot_detection_level: typing.Optional[BotDetectionLevelEnum] = None - challenge_password_policy: typing.Optional[BotDetectionChallengePolicyPasswordFlowEnum] = None - challenge_passwordless_policy: typing.Optional[BotDetectionChallengePolicyPasswordlessFlowEnum] = None - challenge_password_reset_policy: typing.Optional[BotDetectionChallengePolicyPasswordResetFlowEnum] = None - allowlist: typing.Optional[BotDetectionAllowlist] = None - monitoring_mode_enabled: typing.Optional[BotDetectionMonitoringModeEnabled] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_branding_colors.py b/src/auth0/management/types/update_branding_colors.py deleted file mode 100644 index 96a723aa..00000000 --- a/src/auth0/management/types/update_branding_colors.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .update_branding_page_background import UpdateBrandingPageBackground - - -class UpdateBrandingColors(UniversalBaseModel): - """ - Custom color settings. - """ - - primary: typing.Optional[str] = pydantic.Field(default=None) - """ - Accent color. - """ - - page_background: typing.Optional[UpdateBrandingPageBackground] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_branding_font.py b/src/auth0/management/types/update_branding_font.py deleted file mode 100644 index f3b0aee9..00000000 --- a/src/auth0/management/types/update_branding_font.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class UpdateBrandingFont(UniversalBaseModel): - """ - Custom font settings. - """ - - url: typing.Optional[str] = pydantic.Field(default=None) - """ - URL for the custom font. The URL must point to a font file and not a stylesheet. Must use HTTPS. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_branding_page_background.py b/src/auth0/management/types/update_branding_page_background.py deleted file mode 100644 index 4c562d8a..00000000 --- a/src/auth0/management/types/update_branding_page_background.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -UpdateBrandingPageBackground = typing.Union[typing.Optional[str], typing.Optional[typing.Dict[str, typing.Any]]] diff --git a/src/auth0/management/types/update_branding_phone_provider_response_content.py b/src/auth0/management/types/update_branding_phone_provider_response_content.py deleted file mode 100644 index 6f20b80a..00000000 --- a/src/auth0/management/types/update_branding_phone_provider_response_content.py +++ /dev/null @@ -1,49 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .phone_provider_channel_enum import PhoneProviderChannelEnum -from .phone_provider_configuration import PhoneProviderConfiguration -from .phone_provider_name_enum import PhoneProviderNameEnum - - -class UpdateBrandingPhoneProviderResponseContent(UniversalBaseModel): - """ - Phone provider configuration schema - """ - - id: typing.Optional[str] = None - tenant: typing.Optional[str] = pydantic.Field(default=None) - """ - The name of the tenant - """ - - name: PhoneProviderNameEnum - channel: typing.Optional[PhoneProviderChannelEnum] = None - disabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether the provider is enabled (false) or disabled (true). - """ - - configuration: typing.Optional[PhoneProviderConfiguration] = None - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The provider's creation date and time in ISO 8601 format - """ - - updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The date and time of the last update to the provider in ISO 8601 format - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_branding_response_content.py b/src/auth0/management/types/update_branding_response_content.py deleted file mode 100644 index 0aa9bd46..00000000 --- a/src/auth0/management/types/update_branding_response_content.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .branding_colors import BrandingColors -from .branding_font import BrandingFont - - -class UpdateBrandingResponseContent(UniversalBaseModel): - colors: typing.Optional[BrandingColors] = None - favicon_url: typing.Optional[str] = pydantic.Field(default=None) - """ - URL for the favicon. Must use HTTPS. - """ - - logo_url: typing.Optional[str] = pydantic.Field(default=None) - """ - URL for the logo. Must use HTTPS. - """ - - font: typing.Optional[BrandingFont] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_branding_theme_response_content.py b/src/auth0/management/types/update_branding_theme_response_content.py deleted file mode 100644 index ab374b3b..00000000 --- a/src/auth0/management/types/update_branding_theme_response_content.py +++ /dev/null @@ -1,46 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .branding_theme_borders import BrandingThemeBorders -from .branding_theme_colors import BrandingThemeColors -from .branding_theme_fonts import BrandingThemeFonts -from .branding_theme_identifiers import BrandingThemeIdentifiers -from .branding_theme_page_background import BrandingThemePageBackground -from .branding_theme_widget import BrandingThemeWidget - - -class UpdateBrandingThemeResponseContent(UniversalBaseModel): - borders: BrandingThemeBorders - colors: BrandingThemeColors - display_name: typing_extensions.Annotated[ - str, FieldMetadata(alias="displayName"), pydantic.Field(alias="displayName", description="Display Name") - ] - """ - Display Name - """ - - fonts: BrandingThemeFonts - identifiers: typing.Optional[BrandingThemeIdentifiers] = None - page_background: BrandingThemePageBackground - theme_id: typing_extensions.Annotated[ - str, FieldMetadata(alias="themeId"), pydantic.Field(alias="themeId", description="Theme Id") - ] - """ - Theme Id - """ - - widget: BrandingThemeWidget - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_breached_password_detection_settings_response_content.py b/src/auth0/management/types/update_breached_password_detection_settings_response_content.py deleted file mode 100644 index d1fc1704..00000000 --- a/src/auth0/management/types/update_breached_password_detection_settings_response_content.py +++ /dev/null @@ -1,45 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .breached_password_detection_admin_notification_frequency_enum import ( - BreachedPasswordDetectionAdminNotificationFrequencyEnum, -) -from .breached_password_detection_method_enum import BreachedPasswordDetectionMethodEnum -from .breached_password_detection_shields_enum import BreachedPasswordDetectionShieldsEnum -from .breached_password_detection_stage import BreachedPasswordDetectionStage - - -class UpdateBreachedPasswordDetectionSettingsResponseContent(UniversalBaseModel): - enabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether or not breached password detection is active. - """ - - shields: typing.Optional[typing.List[BreachedPasswordDetectionShieldsEnum]] = pydantic.Field(default=None) - """ - Action to take when a breached password is detected during a login. - Possible values: block, user_notification, admin_notification. - """ - - admin_notification_frequency: typing.Optional[ - typing.List[BreachedPasswordDetectionAdminNotificationFrequencyEnum] - ] = pydantic.Field(default=None) - """ - When "admin_notification" is enabled, determines how often email notifications are sent. - Possible values: immediately, daily, weekly, monthly. - """ - - method: typing.Optional[BreachedPasswordDetectionMethodEnum] = None - stage: typing.Optional[BreachedPasswordDetectionStage] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_brute_force_settings_response_content.py b/src/auth0/management/types/update_brute_force_settings_response_content.py deleted file mode 100644 index e01750f1..00000000 --- a/src/auth0/management/types/update_brute_force_settings_response_content.py +++ /dev/null @@ -1,43 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .brute_force_protection_form_submission_mode_enum import BruteForceProtectionFormSubmissionModeEnum -from .brute_force_protection_mode_enum import BruteForceProtectionModeEnum -from .brute_force_protection_shields_enum import BruteForceProtectionShieldsEnum - - -class UpdateBruteForceSettingsResponseContent(UniversalBaseModel): - enabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether or not brute force attack protections are active. - """ - - shields: typing.Optional[typing.List[BruteForceProtectionShieldsEnum]] = pydantic.Field(default=None) - """ - Action to take when a brute force protection threshold is violated. - Possible values: block, user_notification. - """ - - allowlist: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - List of trusted IP addresses that will not have attack protection enforced against them. - """ - - mode: typing.Optional[BruteForceProtectionModeEnum] = None - form_submission_mode: typing.Optional[BruteForceProtectionFormSubmissionModeEnum] = None - max_attempts: typing.Optional[int] = pydantic.Field(default=None) - """ - Maximum number of unsuccessful attempts. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_client_grant_response_content.py b/src/auth0/management/types/update_client_grant_response_content.py deleted file mode 100644 index cf4bb38e..00000000 --- a/src/auth0/management/types/update_client_grant_response_content.py +++ /dev/null @@ -1,63 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .client_grant_default_for_enum import ClientGrantDefaultForEnum -from .client_grant_organization_usage_enum import ClientGrantOrganizationUsageEnum -from .client_grant_subject_type_enum import ClientGrantSubjectTypeEnum - - -class UpdateClientGrantResponseContent(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of the client grant. - """ - - client_id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of the client. - """ - - audience: typing.Optional[str] = pydantic.Field(default=None) - """ - The audience (API identifier) of this client grant. - """ - - scope: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Scopes allowed for this client grant. - """ - - organization_usage: typing.Optional[ClientGrantOrganizationUsageEnum] = None - allow_any_organization: typing.Optional[bool] = pydantic.Field(default=None) - """ - If enabled, any organization can be used with this grant. If disabled (default), the grant must be explicitly assigned to the desired organizations. - """ - - default_for: typing.Optional[ClientGrantDefaultForEnum] = None - is_system: typing.Optional[bool] = pydantic.Field(default=None) - """ - If enabled, this grant is a special grant created by Auth0. It cannot be modified or deleted directly. - """ - - subject_type: typing.Optional[ClientGrantSubjectTypeEnum] = None - authorization_details_types: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Types of authorization_details allowed for this client grant. - """ - - allow_all_scopes: typing.Optional[bool] = pydantic.Field(default=None) - """ - If enabled, all scopes configured on the resource server are allowed for this grant. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_client_response_content.py b/src/auth0/management/types/update_client_response_content.py deleted file mode 100644 index c46c67d5..00000000 --- a/src/auth0/management/types/update_client_response_content.py +++ /dev/null @@ -1,299 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .anonymous_sessions import AnonymousSessions -from .b_2_b_integration_configuration import B2BIntegrationConfiguration -from .client_addons import ClientAddons -from .client_anonymous_session_transfer_network_binding_enum import ClientAnonymousSessionTransferNetworkBindingEnum -from .client_app_type_enum import ClientAppTypeEnum -from .client_async_approval_notifications_channels_api_post_configuration import ( - ClientAsyncApprovalNotificationsChannelsApiPostConfiguration, -) -from .client_authentication_method import ClientAuthenticationMethod -from .client_compliance_level_enum import ClientComplianceLevelEnum -from .client_default_organization import ClientDefaultOrganization -from .client_encryption_key import ClientEncryptionKey -from .client_external_metadata_created_by_enum import ClientExternalMetadataCreatedByEnum -from .client_external_metadata_status_enum import ClientExternalMetadataStatusEnum -from .client_external_metadata_type_enum import ClientExternalMetadataTypeEnum -from .client_jwt_configuration import ClientJwtConfiguration -from .client_metadata import ClientMetadata -from .client_mobile import ClientMobile -from .client_my_organization_response_configuration import ClientMyOrganizationResponseConfiguration -from .client_oidc_backchannel_logout_settings import ClientOidcBackchannelLogoutSettings -from .client_oidc_support import ClientOidcSupport -from .client_organization_discovery_enum import ClientOrganizationDiscoveryEnum -from .client_organization_require_behavior_enum import ClientOrganizationRequireBehaviorEnum -from .client_organization_usage_enum import ClientOrganizationUsageEnum -from .client_redirection_policy_enum import ClientRedirectionPolicyEnum -from .client_refresh_token_configuration import ClientRefreshTokenConfiguration -from .client_session_transfer_configuration import ClientSessionTransferConfiguration -from .client_signed_request_object_with_credential_id import ClientSignedRequestObjectWithCredentialId -from .client_signing_keys import ClientSigningKeys -from .client_third_party_security_mode_enum import ClientThirdPartySecurityModeEnum -from .client_token_endpoint_auth_method_enum import ClientTokenEndpointAuthMethodEnum -from .client_token_exchange_configuration import ClientTokenExchangeConfiguration -from .client_token_vault_privileged_access_with_credential_id import ClientTokenVaultPrivilegedAccessWithCredentialId -from .express_configuration import ExpressConfiguration -from .fed_cm_login import FedCmLogin -from .google_account_linking_configuration import GoogleAccountLinkingConfiguration -from .identity_assertion_authorization_grant import IdentityAssertionAuthorizationGrant -from .native_social_login import NativeSocialLogin -from .token_quota import TokenQuota - - -class UpdateClientResponseContent(UniversalBaseModel): - client_id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of this client. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The ISO 8601 timestamp of when this client was created. - """ - - updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The ISO 8601 timestamp of when this client was last updated. - """ - - tenant: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of the tenant this client belongs to. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of this client (min length: 1 character, does not allow `<` or `>`). - """ - - description: typing.Optional[str] = pydantic.Field(default=None) - """ - Free text description of this client (max length: 140 characters). - """ - - global_: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="global"), - pydantic.Field( - alias="global", - description="Whether this is your global 'All Applications' client representing legacy tenant settings (true) or a regular client (false).", - ), - ] = None - """ - Whether this is your global 'All Applications' client representing legacy tenant settings (true) or a regular client (false). - """ - - client_secret: typing.Optional[str] = pydantic.Field(default=None) - """ - Client secret (which you must not make public). - """ - - app_type: typing.Optional[ClientAppTypeEnum] = None - logo_uri: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the logo to display for this client. Recommended size is 150x150 pixels. - """ - - is_first_party: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this client a first party client (true) or not (false). - """ - - oidc_conformant: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this client conforms to strict OIDC specifications (true) or uses legacy features (false). - """ - - callbacks: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Comma-separated list of URLs whitelisted for Auth0 to use as a callback to the client after authentication. - """ - - allowed_origins: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Comma-separated list of URLs allowed to make requests from JavaScript to Auth0 API (typically used with CORS). By default, all your callback URLs will be allowed. This field allows you to enter other origins if necessary. You can also use wildcards at the subdomain level (e.g., https://*.contoso.com). Query strings and hash information are not taken into account when validating these URLs. - """ - - web_origins: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Comma-separated list of allowed origins for use with Cross-Origin Authentication, Device Flow, and web message response mode. - """ - - client_aliases: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - List of audiences/realms for SAML protocol. Used by the wsfed addon. - """ - - allowed_clients: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - List of allow clients and API ids that are allowed to make delegation requests. Empty means all all your clients are allowed. - """ - - allowed_logout_urls: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Comma-separated list of URLs that are valid to redirect to after logout from Auth0. Wildcards are allowed for subdomains. - """ - - session_transfer: typing.Optional[ClientSessionTransferConfiguration] = None - oidc_logout: typing.Optional[ClientOidcBackchannelLogoutSettings] = None - grant_types: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - List of grant types supported for this application. Can include `authorization_code`, `implicit`, `refresh_token`, `client_credentials`, `password`, `http://auth0.com/oauth/grant-type/password-realm`, `http://auth0.com/oauth/grant-type/mfa-oob`, `http://auth0.com/oauth/grant-type/mfa-otp`, `http://auth0.com/oauth/grant-type/mfa-recovery-code`, `urn:openid:params:grant-type:ciba`, `urn:ietf:params:oauth:grant-type:device_code`, and `urn:auth0:params:oauth:grant-type:token-exchange:federated-connection-access-token`. - """ - - jwt_configuration: typing.Optional[ClientJwtConfiguration] = None - signing_keys: typing.Optional[ClientSigningKeys] = None - encryption_key: typing.Optional[ClientEncryptionKey] = None - sso: typing.Optional[bool] = pydantic.Field(default=None) - """ - Applies only to SSO clients and determines whether Auth0 will handle Single Sign On (true) or whether the Identity Provider will (false). - """ - - sso_disabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether Single Sign On is disabled (true) or enabled (true). Defaults to true. - """ - - cross_origin_authentication: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this client can be used to make cross-origin authentication requests (true) or it is not allowed to make such requests (false). - """ - - cross_origin_loc: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of the location in your site where the cross origin verification takes place for the cross-origin auth flow when performing Auth in your own domain instead of Auth0 hosted login page. - """ - - custom_login_page_on: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether a custom login page is to be used (true) or the default provided login page (false). - """ - - custom_login_page: typing.Optional[str] = pydantic.Field(default=None) - """ - The content (HTML, CSS, JS) of the custom login page. - """ - - custom_login_page_preview: typing.Optional[str] = pydantic.Field(default=None) - """ - The content (HTML, CSS, JS) of the custom login page. (Used on Previews) - """ - - form_template: typing.Optional[str] = pydantic.Field(default=None) - """ - HTML form template to be used for WS-Federation. - """ - - addons: typing.Optional[ClientAddons] = None - token_endpoint_auth_method: typing.Optional[ClientTokenEndpointAuthMethodEnum] = None - is_token_endpoint_ip_header_trusted: typing.Optional[bool] = pydantic.Field(default=None) - """ - If true, trust that the IP specified in the `auth0-forwarded-for` header is the end-user's IP for brute-force-protection on token endpoint. - """ - - client_metadata: typing.Optional[ClientMetadata] = None - mobile: typing.Optional[ClientMobile] = None - initiate_login_uri: typing.Optional[str] = pydantic.Field(default=None) - """ - Initiate login uri, must be https - """ - - native_social_login: typing.Optional[NativeSocialLogin] = None - fedcm_login: typing.Optional[FedCmLogin] = None - refresh_token: typing.Optional[ClientRefreshTokenConfiguration] = None - default_organization: typing.Optional[ClientDefaultOrganization] = None - organization_usage: typing.Optional[ClientOrganizationUsageEnum] = None - organization_require_behavior: typing.Optional[ClientOrganizationRequireBehaviorEnum] = None - organization_discovery_methods: typing.Optional[typing.List[ClientOrganizationDiscoveryEnum]] = pydantic.Field( - default=None - ) - """ - Defines the available methods for organization discovery during the `pre_login_prompt`. Users can discover their organization either by `email`, `organization_name` or both. - """ - - client_authentication_methods: typing.Optional[ClientAuthenticationMethod] = None - require_pushed_authorization_requests: typing.Optional[bool] = pydantic.Field(default=None) - """ - Makes the use of Pushed Authorization Requests mandatory for this client - """ - - require_proof_of_possession: typing.Optional[bool] = pydantic.Field(default=None) - """ - Makes the use of Proof-of-Possession mandatory for this client - """ - - signed_request_object: typing.Optional[ClientSignedRequestObjectWithCredentialId] = None - token_vault_privileged_access: typing.Optional[ClientTokenVaultPrivilegedAccessWithCredentialId] = None - compliance_level: typing.Optional[ClientComplianceLevelEnum] = None - skip_non_verifiable_callback_uri_confirmation_prompt: typing.Optional[bool] = pydantic.Field(default=None) - """ - Controls whether a confirmation prompt is shown during login flows when the redirect URI uses non-verifiable callback URIs (for example, a custom URI schema such as `myapp://`, or `localhost`). - If set to true, a confirmation prompt will not be shown. We recommend that this is set to false for improved protection from malicious apps. - See https://auth0.com/docs/secure/security-guidance/measures-against-app-impersonation for more information. - """ - - token_exchange: typing.Optional[ClientTokenExchangeConfiguration] = None - par_request_expiry: typing.Optional[int] = pydantic.Field(default=None) - """ - Specifies how long, in seconds, a Pushed Authorization Request URI remains valid - """ - - token_quota: typing.Optional[TokenQuota] = None - express_configuration: typing.Optional[ExpressConfiguration] = None - b_2_b_integration_configuration: typing_extensions.Annotated[ - typing.Optional[B2BIntegrationConfiguration], - FieldMetadata(alias="b2b_integration_configuration"), - pydantic.Field(alias="b2b_integration_configuration"), - ] = None - my_organization_configuration: typing.Optional[ClientMyOrganizationResponseConfiguration] = None - google_account_linking: typing.Optional[GoogleAccountLinkingConfiguration] = None - identity_assertion_authorization_grant: typing.Optional[IdentityAssertionAuthorizationGrant] = None - anonymous_sessions: typing.Optional[AnonymousSessions] = None - enforce_anon_session_transfer_network_binding: typing.Optional[ClientAnonymousSessionTransferNetworkBindingEnum] = ( - None - ) - third_party_security_mode: typing.Optional[ClientThirdPartySecurityModeEnum] = None - oidc_support: typing.Optional[ClientOidcSupport] = None - redirection_policy: typing.Optional[ClientRedirectionPolicyEnum] = None - resource_server_identifier: typing.Optional[str] = pydantic.Field(default=None) - """ - The identifier of the resource server that this client is linked to. - """ - - async_approval_notification_channels: typing.Optional[ - ClientAsyncApprovalNotificationsChannelsApiPostConfiguration - ] = None - external_metadata_type: typing.Optional[ClientExternalMetadataTypeEnum] = None - external_metadata_created_by: typing.Optional[ClientExternalMetadataCreatedByEnum] = None - external_metadata_status: typing.Optional[ClientExternalMetadataStatusEnum] = None - agent_id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of the agent associated with this client. - """ - - external_client_id: typing.Optional[str] = pydantic.Field(default=None) - """ - An alternate client identifier to be used during authorization flows. Only supports CIMD-based client identifiers. - """ - - jwks_uri: typing.Optional[str] = pydantic.Field(default=None) - """ - URL for the JSON Web Key Set (JWKS) containing the public keys used for private_key_jwt authentication. Only present for CIMD clients using private_key_jwt authentication. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_connection_options.py b/src/auth0/management/types/update_connection_options.py deleted file mode 100644 index 78eb1fba..00000000 --- a/src/auth0/management/types/update_connection_options.py +++ /dev/null @@ -1,153 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .connection_assertion_decryption_settings import ConnectionAssertionDecryptionSettings -from .connection_attributes import ConnectionAttributes -from .connection_authentication_methods import ConnectionAuthenticationMethods -from .connection_custom_scripts import ConnectionCustomScripts -from .connection_dpop_signing_alg_enum import ConnectionDpopSigningAlgEnum -from .connection_enable_pushed_authorization_requests import ConnectionEnablePushedAuthorizationRequests -from .connection_gateway_authentication import ConnectionGatewayAuthentication -from .connection_id_token_session_expiry_supported import ConnectionIdTokenSessionExpirySupported -from .connection_id_token_signed_response_algs import ConnectionIdTokenSignedResponseAlgs -from .connection_identifier_precedence_enum import ConnectionIdentifierPrecedenceEnum -from .connection_otp_settings import ConnectionOtpSettings -from .connection_passkey_options import ConnectionPasskeyOptions -from .connection_password_complexity_options import ConnectionPasswordComplexityOptions -from .connection_password_dictionary_options import ConnectionPasswordDictionaryOptions -from .connection_password_history_options import ConnectionPasswordHistoryOptions -from .connection_password_no_personal_info_options import ConnectionPasswordNoPersonalInfoOptions -from .connection_password_options import ConnectionPasswordOptions -from .connection_password_policy_enum import ConnectionPasswordPolicyEnum -from .connection_pushed_authorization_request_endpoint import ConnectionPushedAuthorizationRequestEndpoint -from .connection_set_user_root_attributes_enum import ConnectionSetUserRootAttributesEnum -from .connection_thumbprints import ConnectionThumbprints -from .connection_thumbprints_sha_384 import ConnectionThumbprintsSha384 -from .connection_token_endpoint_auth_method_enum import ConnectionTokenEndpointAuthMethodEnum -from .connection_token_endpoint_auth_signing_alg_enum import ConnectionTokenEndpointAuthSigningAlgEnum -from .connection_token_endpoint_jwtca_aud_format_enum_oidc import ConnectionTokenEndpointJwtcaAudFormatEnumOidc -from .connection_upstream_params import ConnectionUpstreamParams -from .connection_use_oauth_spec_scope import ConnectionUseOauthSpecScope -from .connection_validation_options import ConnectionValidationOptions -from .connections_discovery_url import ConnectionsDiscoveryUrl -from .connections_oidc_metadata import ConnectionsOidcMetadata - - -class UpdateConnectionOptions(UniversalBaseModel): - """ - The connection's options (depend on the connection strategy). To update these options, the `update:connections_options` scope must be present. To verify your changes, also include the `read:connections_options` scope. If this scope is not specified, you will not be able to review the updated object. - """ - - validation: typing.Optional[ConnectionValidationOptions] = None - non_persistent_attrs: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) - """ - - precedence: typing.Optional[typing.List[ConnectionIdentifierPrecedenceEnum]] = pydantic.Field(default=None) - """ - Order of precedence for attribute types. If the property is not specified, the default precedence of attributes will be used. - """ - - attributes: typing.Optional[ConnectionAttributes] = None - enable_script_context: typing.Optional[bool] = pydantic.Field(default=None) - """ - Set to true to inject context into custom DB scripts (warning: cannot be disabled once enabled) - """ - - enabled_database_customization: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="enabledDatabaseCustomization"), - pydantic.Field(alias="enabledDatabaseCustomization", description="Set to true to use a legacy user store"), - ] = None - """ - Set to true to use a legacy user store - """ - - import_mode: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enable this if you have a legacy user store and you want to gradually migrate those users to the Auth0 user store - """ - - configuration: typing.Optional[typing.Dict[str, typing.Optional[str]]] = pydantic.Field(default=None) - """ - Stores encrypted string only configurations for connections - """ - - custom_scripts: typing_extensions.Annotated[ - typing.Optional[ConnectionCustomScripts], - FieldMetadata(alias="customScripts"), - pydantic.Field(alias="customScripts"), - ] = None - otp_settings: typing.Optional[ConnectionOtpSettings] = None - authentication_methods: typing.Optional[ConnectionAuthenticationMethods] = None - passkey_options: typing.Optional[ConnectionPasskeyOptions] = None - password_policy: typing_extensions.Annotated[ - typing.Optional[ConnectionPasswordPolicyEnum], - FieldMetadata(alias="passwordPolicy"), - pydantic.Field(alias="passwordPolicy"), - ] = None - password_complexity_options: typing.Optional[ConnectionPasswordComplexityOptions] = None - password_history: typing.Optional[ConnectionPasswordHistoryOptions] = None - password_no_personal_info: typing.Optional[ConnectionPasswordNoPersonalInfoOptions] = None - password_dictionary: typing.Optional[ConnectionPasswordDictionaryOptions] = None - api_enable_users: typing.Optional[bool] = None - api_enable_groups: typing.Optional[bool] = None - basic_profile: typing.Optional[bool] = None - ext_admin: typing.Optional[bool] = None - ext_is_suspended: typing.Optional[bool] = None - ext_agreed_terms: typing.Optional[bool] = None - ext_groups: typing.Optional[bool] = None - ext_assigned_plans: typing.Optional[bool] = None - ext_profile: typing.Optional[bool] = None - disable_self_service_change_password: typing.Optional[bool] = None - upstream_params: typing.Optional[ConnectionUpstreamParams] = None - set_user_root_attributes: typing.Optional[ConnectionSetUserRootAttributesEnum] = None - gateway_authentication: typing.Optional[ConnectionGatewayAuthentication] = None - password_options: typing.Optional[ConnectionPasswordOptions] = None - assertion_decryption_settings: typing.Optional[ConnectionAssertionDecryptionSettings] = None - id_token_signed_response_algs: typing.Optional[ConnectionIdTokenSignedResponseAlgs] = None - dpop_signing_alg: typing.Optional[ConnectionDpopSigningAlgEnum] = None - enable_pushed_authorization_requests: typing.Optional[ConnectionEnablePushedAuthorizationRequests] = None - pushed_authorization_request_endpoint: typing.Optional[ConnectionPushedAuthorizationRequestEndpoint] = None - token_endpoint_auth_method: typing.Optional[ConnectionTokenEndpointAuthMethodEnum] = None - token_endpoint_auth_signing_alg: typing.Optional[ConnectionTokenEndpointAuthSigningAlgEnum] = None - token_endpoint_jwtca_aud_format: typing.Optional[ConnectionTokenEndpointJwtcaAudFormatEnumOidc] = None - id_token_session_expiry_supported: typing.Optional[ConnectionIdTokenSessionExpirySupported] = None - use_oauth_spec_scope: typing_extensions.Annotated[ - typing.Optional[ConnectionUseOauthSpecScope], - FieldMetadata(alias="useOauthSpecScope"), - pydantic.Field(alias="useOauthSpecScope"), - ] = None - client_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The client ID registered with the identity provider - """ - - allowed_audiences: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Additional Google client IDs accepted as the `aud` (audience) of Google ID tokens, used by Google native login and Google Streamlined Linking. - """ - - discovery_url: typing.Optional[ConnectionsDiscoveryUrl] = None - oidc_metadata: typing.Optional[ConnectionsOidcMetadata] = None - thumbprints: typing.Optional[ConnectionThumbprints] = None - thumbprints_sha_384: typing_extensions.Annotated[ - typing.Optional[ConnectionThumbprintsSha384], - FieldMetadata(alias="thumbprints_sha384"), - pydantic.Field(alias="thumbprints_sha384"), - ] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_connection_profile_response_content.py b/src/auth0/management/types/update_connection_profile_response_content.py deleted file mode 100644 index 474f9736..00000000 --- a/src/auth0/management/types/update_connection_profile_response_content.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .connection_name_prefix_template import ConnectionNamePrefixTemplate -from .connection_profile_config import ConnectionProfileConfig -from .connection_profile_cross_app_access_resource_app import ConnectionProfileCrossAppAccessResourceApp -from .connection_profile_enabled_features import ConnectionProfileEnabledFeatures -from .connection_profile_id import ConnectionProfileId -from .connection_profile_name import ConnectionProfileName -from .connection_profile_organization import ConnectionProfileOrganization -from .connection_profile_provisioning import ConnectionProfileProvisioning -from .connection_profile_strategy_overrides import ConnectionProfileStrategyOverrides - - -class UpdateConnectionProfileResponseContent(UniversalBaseModel): - id: typing.Optional[ConnectionProfileId] = None - name: typing.Optional[ConnectionProfileName] = None - organization: typing.Optional[ConnectionProfileOrganization] = None - connection_name_prefix_template: typing.Optional[ConnectionNamePrefixTemplate] = None - enabled_features: typing.Optional[ConnectionProfileEnabledFeatures] = None - connection_config: typing.Optional[ConnectionProfileConfig] = None - strategy_overrides: typing.Optional[ConnectionProfileStrategyOverrides] = None - provisioning: typing.Optional[ConnectionProfileProvisioning] = None - cross_app_access_resource_app: typing.Optional[ConnectionProfileCrossAppAccessResourceApp] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_connection_request_content_ad.py b/src/auth0/management/types/update_connection_request_content_ad.py deleted file mode 100644 index eb185d01..00000000 --- a/src/auth0/management/types/update_connection_request_content_ad.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_common import ConnectionCommon -from .connection_options_ad import ConnectionOptionsAd - - -class UpdateConnectionRequestContentAd(ConnectionCommon): - """ - Update a connection with strategy=ad - """ - - options: typing.Optional[ConnectionOptionsAd] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_connection_request_content_adfs.py b/src/auth0/management/types/update_connection_request_content_adfs.py deleted file mode 100644 index 4e12e190..00000000 --- a/src/auth0/management/types/update_connection_request_content_adfs.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_common import ConnectionCommon -from .connection_options_adfs import ConnectionOptionsAdfs -from .connection_show_as_button import ConnectionShowAsButton - - -class UpdateConnectionRequestContentAdfs(ConnectionCommon): - """ - Update a connection with strategy=adfs - """ - - options: typing.Optional[ConnectionOptionsAdfs] = None - show_as_button: typing.Optional[ConnectionShowAsButton] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_connection_request_content_amazon.py b/src/auth0/management/types/update_connection_request_content_amazon.py deleted file mode 100644 index 97422c80..00000000 --- a/src/auth0/management/types/update_connection_request_content_amazon.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_common import ConnectionCommon -from .connection_options_amazon import ConnectionOptionsAmazon - - -class UpdateConnectionRequestContentAmazon(ConnectionCommon): - """ - Update a connection with strategy=amazon - """ - - options: typing.Optional[ConnectionOptionsAmazon] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_connection_request_content_apple.py b/src/auth0/management/types/update_connection_request_content_apple.py deleted file mode 100644 index b8bf54f0..00000000 --- a/src/auth0/management/types/update_connection_request_content_apple.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_common import ConnectionCommon -from .connection_options_apple import ConnectionOptionsApple - - -class UpdateConnectionRequestContentApple(ConnectionCommon): - """ - Update a connection with strategy=apple - """ - - options: typing.Optional[ConnectionOptionsApple] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_connection_request_content_auth_0.py b/src/auth0/management/types/update_connection_request_content_auth_0.py deleted file mode 100644 index 34365f9e..00000000 --- a/src/auth0/management/types/update_connection_request_content_auth_0.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_common import ConnectionCommon -from .connection_options_auth_0 import ConnectionOptionsAuth0 -from .connection_realms import ConnectionRealms - - -class UpdateConnectionRequestContentAuth0(ConnectionCommon): - """ - Update a connection with strategy=auth0 - """ - - options: typing.Optional[ConnectionOptionsAuth0] = None - realms: typing.Optional[ConnectionRealms] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_connection_request_content_auth_0_oidc.py b/src/auth0/management/types/update_connection_request_content_auth_0_oidc.py deleted file mode 100644 index d317534e..00000000 --- a/src/auth0/management/types/update_connection_request_content_auth_0_oidc.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_common import ConnectionCommon -from .connection_options_auth_0_oidc import ConnectionOptionsAuth0Oidc - - -class UpdateConnectionRequestContentAuth0Oidc(ConnectionCommon): - """ - Update a connection with strategy=auth0-oidc - """ - - options: typing.Optional[ConnectionOptionsAuth0Oidc] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_connection_request_content_azure_ad.py b/src/auth0/management/types/update_connection_request_content_azure_ad.py deleted file mode 100644 index 7e7b3e29..00000000 --- a/src/auth0/management/types/update_connection_request_content_azure_ad.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_common import ConnectionCommon -from .connection_options_azure_ad import ConnectionOptionsAzureAd -from .connection_show_as_button import ConnectionShowAsButton - - -class UpdateConnectionRequestContentAzureAd(ConnectionCommon): - """ - Update a connection with strategy=waad - """ - - options: typing.Optional[ConnectionOptionsAzureAd] = None - show_as_button: typing.Optional[ConnectionShowAsButton] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_connection_request_content_baidu.py b/src/auth0/management/types/update_connection_request_content_baidu.py deleted file mode 100644 index c8d3d88d..00000000 --- a/src/auth0/management/types/update_connection_request_content_baidu.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_common import ConnectionCommon -from .connection_options_baidu import ConnectionOptionsBaidu - - -class UpdateConnectionRequestContentBaidu(ConnectionCommon): - """ - Update a connection with strategy=baidu - """ - - options: typing.Optional[ConnectionOptionsBaidu] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_connection_request_content_bitbucket.py b/src/auth0/management/types/update_connection_request_content_bitbucket.py deleted file mode 100644 index 8c95b5c4..00000000 --- a/src/auth0/management/types/update_connection_request_content_bitbucket.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_common import ConnectionCommon -from .connection_options_bitbucket import ConnectionOptionsBitbucket - - -class UpdateConnectionRequestContentBitbucket(ConnectionCommon): - """ - Update a connection with strategy=bitbucket - """ - - options: typing.Optional[ConnectionOptionsBitbucket] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_connection_request_content_bitly.py b/src/auth0/management/types/update_connection_request_content_bitly.py deleted file mode 100644 index 44681886..00000000 --- a/src/auth0/management/types/update_connection_request_content_bitly.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_common import ConnectionCommon -from .connection_options_bitly import ConnectionOptionsBitly - - -class UpdateConnectionRequestContentBitly(ConnectionCommon): - """ - Update a connection with strategy=bitly - """ - - options: typing.Optional[ConnectionOptionsBitly] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_connection_request_content_box.py b/src/auth0/management/types/update_connection_request_content_box.py deleted file mode 100644 index ff30c52e..00000000 --- a/src/auth0/management/types/update_connection_request_content_box.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_common import ConnectionCommon -from .connection_options_box import ConnectionOptionsBox -from .connection_purposes import ConnectionPurposes - - -class UpdateConnectionRequestContentBox(ConnectionCommon, ConnectionPurposes): - """ - Update a connection with strategy=box - """ - - options: typing.Optional[ConnectionOptionsBox] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_connection_request_content_custom.py b/src/auth0/management/types/update_connection_request_content_custom.py deleted file mode 100644 index 1c147d94..00000000 --- a/src/auth0/management/types/update_connection_request_content_custom.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_common import ConnectionCommon -from .connection_options_custom import ConnectionOptionsCustom - - -class UpdateConnectionRequestContentCustom(ConnectionCommon): - """ - Update a connection with strategy=custom - """ - - options: typing.Optional[ConnectionOptionsCustom] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_connection_request_content_daccount.py b/src/auth0/management/types/update_connection_request_content_daccount.py deleted file mode 100644 index eab2a3b7..00000000 --- a/src/auth0/management/types/update_connection_request_content_daccount.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_common import ConnectionCommon -from .connection_options_daccount import ConnectionOptionsDaccount - - -class UpdateConnectionRequestContentDaccount(ConnectionCommon): - """ - Update a connection with strategy=daccount - """ - - options: typing.Optional[ConnectionOptionsDaccount] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_connection_request_content_dropbox.py b/src/auth0/management/types/update_connection_request_content_dropbox.py deleted file mode 100644 index 31ae7b0e..00000000 --- a/src/auth0/management/types/update_connection_request_content_dropbox.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_common import ConnectionCommon -from .connection_options_dropbox import ConnectionOptionsDropbox - - -class UpdateConnectionRequestContentDropbox(ConnectionCommon): - """ - Update a connection with strategy=dropbox - """ - - options: typing.Optional[ConnectionOptionsDropbox] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_connection_request_content_dwolla.py b/src/auth0/management/types/update_connection_request_content_dwolla.py deleted file mode 100644 index bb078208..00000000 --- a/src/auth0/management/types/update_connection_request_content_dwolla.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_common import ConnectionCommon -from .connection_options_dwolla import ConnectionOptionsDwolla - - -class UpdateConnectionRequestContentDwolla(ConnectionCommon): - """ - Update a connection with strategy=dwolla - """ - - options: typing.Optional[ConnectionOptionsDwolla] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_connection_request_content_email.py b/src/auth0/management/types/update_connection_request_content_email.py deleted file mode 100644 index b5d37df7..00000000 --- a/src/auth0/management/types/update_connection_request_content_email.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_common import ConnectionCommon -from .connection_options_email import ConnectionOptionsEmail - - -class UpdateConnectionRequestContentEmail(ConnectionCommon): - """ - Update a connection with strategy=email - """ - - options: typing.Optional[ConnectionOptionsEmail] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_connection_request_content_evernote.py b/src/auth0/management/types/update_connection_request_content_evernote.py deleted file mode 100644 index 9b350b78..00000000 --- a/src/auth0/management/types/update_connection_request_content_evernote.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_common import ConnectionCommon -from .connection_options_evernote import ConnectionOptionsEvernote - - -class UpdateConnectionRequestContentEvernote(ConnectionCommon): - """ - Update a connection with strategy=evernote - """ - - options: typing.Optional[ConnectionOptionsEvernote] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_connection_request_content_evernote_sandbox.py b/src/auth0/management/types/update_connection_request_content_evernote_sandbox.py deleted file mode 100644 index bfccc450..00000000 --- a/src/auth0/management/types/update_connection_request_content_evernote_sandbox.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_common import ConnectionCommon -from .connection_options_evernote import ConnectionOptionsEvernote - - -class UpdateConnectionRequestContentEvernoteSandbox(ConnectionCommon): - """ - Update a connection with strategy=evernote-sandbox - """ - - options: typing.Optional[ConnectionOptionsEvernote] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_connection_request_content_exact.py b/src/auth0/management/types/update_connection_request_content_exact.py deleted file mode 100644 index e9807633..00000000 --- a/src/auth0/management/types/update_connection_request_content_exact.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_common import ConnectionCommon -from .connection_options_exact import ConnectionOptionsExact - - -class UpdateConnectionRequestContentExact(ConnectionCommon): - """ - Update a connection with strategy=exact - """ - - options: typing.Optional[ConnectionOptionsExact] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_connection_request_content_facebook.py b/src/auth0/management/types/update_connection_request_content_facebook.py deleted file mode 100644 index 72daf6d3..00000000 --- a/src/auth0/management/types/update_connection_request_content_facebook.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_common import ConnectionCommon -from .connection_options_facebook import ConnectionOptionsFacebook - - -class UpdateConnectionRequestContentFacebook(ConnectionCommon): - """ - Update a connection with strategy=facebook - """ - - options: typing.Optional[ConnectionOptionsFacebook] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_connection_request_content_fitbit.py b/src/auth0/management/types/update_connection_request_content_fitbit.py deleted file mode 100644 index 68523d0b..00000000 --- a/src/auth0/management/types/update_connection_request_content_fitbit.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_common import ConnectionCommon -from .connection_options_fitbit import ConnectionOptionsFitbit - - -class UpdateConnectionRequestContentFitbit(ConnectionCommon): - """ - Update a connection with strategy=fitbit - """ - - options: typing.Optional[ConnectionOptionsFitbit] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_connection_request_content_git_hub.py b/src/auth0/management/types/update_connection_request_content_git_hub.py deleted file mode 100644 index be8ec1f5..00000000 --- a/src/auth0/management/types/update_connection_request_content_git_hub.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_common import ConnectionCommon -from .connection_options_git_hub import ConnectionOptionsGitHub -from .connection_purposes import ConnectionPurposes - - -class UpdateConnectionRequestContentGitHub(ConnectionCommon, ConnectionPurposes): - """ - Update a connection with strategy=github - """ - - options: typing.Optional[ConnectionOptionsGitHub] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_connection_request_content_google_apps.py b/src/auth0/management/types/update_connection_request_content_google_apps.py deleted file mode 100644 index cf3a22a2..00000000 --- a/src/auth0/management/types/update_connection_request_content_google_apps.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_common import ConnectionCommon -from .connection_options_google_apps import ConnectionOptionsGoogleApps -from .connection_show_as_button import ConnectionShowAsButton - - -class UpdateConnectionRequestContentGoogleApps(ConnectionCommon): - """ - Update a connection with strategy=google-apps - """ - - options: typing.Optional[ConnectionOptionsGoogleApps] = None - show_as_button: typing.Optional[ConnectionShowAsButton] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_connection_request_content_google_o_auth_2.py b/src/auth0/management/types/update_connection_request_content_google_o_auth_2.py deleted file mode 100644 index 53780738..00000000 --- a/src/auth0/management/types/update_connection_request_content_google_o_auth_2.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_common import ConnectionCommon -from .connection_options_google_o_auth_2 import ConnectionOptionsGoogleOAuth2 -from .connection_purposes import ConnectionPurposes - - -class UpdateConnectionRequestContentGoogleOAuth2(ConnectionCommon, ConnectionPurposes): - """ - Update a connection with strategy=google-oauth2 - """ - - options: typing.Optional[ConnectionOptionsGoogleOAuth2] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_connection_request_content_instagram.py b/src/auth0/management/types/update_connection_request_content_instagram.py deleted file mode 100644 index 3623553e..00000000 --- a/src/auth0/management/types/update_connection_request_content_instagram.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_common import ConnectionCommon -from .connection_options_instagram import ConnectionOptionsInstagram - - -class UpdateConnectionRequestContentInstagram(ConnectionCommon): - """ - Update a connection with strategy=instagram - """ - - options: typing.Optional[ConnectionOptionsInstagram] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_connection_request_content_ip.py b/src/auth0/management/types/update_connection_request_content_ip.py deleted file mode 100644 index dde3724d..00000000 --- a/src/auth0/management/types/update_connection_request_content_ip.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_common import ConnectionCommon -from .connection_options_ip import ConnectionOptionsIp -from .connection_show_as_button import ConnectionShowAsButton - - -class UpdateConnectionRequestContentIp(ConnectionCommon): - """ - Update a connection with strategy=ip - """ - - options: typing.Optional[ConnectionOptionsIp] = None - show_as_button: typing.Optional[ConnectionShowAsButton] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_connection_request_content_line.py b/src/auth0/management/types/update_connection_request_content_line.py deleted file mode 100644 index 456f66bb..00000000 --- a/src/auth0/management/types/update_connection_request_content_line.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_common import ConnectionCommon -from .connection_options_line import ConnectionOptionsLine - - -class UpdateConnectionRequestContentLine(ConnectionCommon): - """ - Update a connection with strategy=line - """ - - options: typing.Optional[ConnectionOptionsLine] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_connection_request_content_linkedin.py b/src/auth0/management/types/update_connection_request_content_linkedin.py deleted file mode 100644 index 2e919367..00000000 --- a/src/auth0/management/types/update_connection_request_content_linkedin.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_common import ConnectionCommon -from .connection_options_linkedin import ConnectionOptionsLinkedin - - -class UpdateConnectionRequestContentLinkedin(ConnectionCommon): - """ - Update a connection with strategy=linkedin - """ - - options: typing.Optional[ConnectionOptionsLinkedin] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_connection_request_content_o_auth_1.py b/src/auth0/management/types/update_connection_request_content_o_auth_1.py deleted file mode 100644 index 6ffe8283..00000000 --- a/src/auth0/management/types/update_connection_request_content_o_auth_1.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_common import ConnectionCommon -from .connection_options_o_auth_1 import ConnectionOptionsOAuth1 - - -class UpdateConnectionRequestContentOAuth1(ConnectionCommon): - """ - Update a connection with strategy=oauth1 - """ - - options: typing.Optional[ConnectionOptionsOAuth1] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_connection_request_content_o_auth_2.py b/src/auth0/management/types/update_connection_request_content_o_auth_2.py deleted file mode 100644 index c1b9f0f2..00000000 --- a/src/auth0/management/types/update_connection_request_content_o_auth_2.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_common import ConnectionCommon -from .connection_options_o_auth_2 import ConnectionOptionsOAuth2 -from .connection_purposes import ConnectionPurposes - - -class UpdateConnectionRequestContentOAuth2(ConnectionCommon, ConnectionPurposes): - """ - Update a connection with strategy=oauth2 - """ - - options: typing.Optional[ConnectionOptionsOAuth2] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_connection_request_content_office_365.py b/src/auth0/management/types/update_connection_request_content_office_365.py deleted file mode 100644 index 6e616a3e..00000000 --- a/src/auth0/management/types/update_connection_request_content_office_365.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_common import ConnectionCommon -from .connection_options_office_365 import ConnectionOptionsOffice365 -from .connection_show_as_button import ConnectionShowAsButton - - -class UpdateConnectionRequestContentOffice365(ConnectionCommon): - """ - Update a connection with strategy=office365 - """ - - options: typing.Optional[ConnectionOptionsOffice365] = None - show_as_button: typing.Optional[ConnectionShowAsButton] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_connection_request_content_oidc.py b/src/auth0/management/types/update_connection_request_content_oidc.py deleted file mode 100644 index 79658211..00000000 --- a/src/auth0/management/types/update_connection_request_content_oidc.py +++ /dev/null @@ -1,35 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_authentication_purpose import ConnectionAuthenticationPurpose -from .connection_common import ConnectionCommon -from .connection_connected_accounts_purpose_xaa import ConnectionConnectedAccountsPurposeXaa -from .connection_cross_app_access_resource_app import ConnectionCrossAppAccessResourceApp -from .connection_options_oidc import ConnectionOptionsOidc -from .connection_show_as_button import ConnectionShowAsButton -from .cross_app_access_requesting_app import CrossAppAccessRequestingApp - - -class UpdateConnectionRequestContentOidc(ConnectionCommon): - """ - Update a connection with strategy=oidc - """ - - options: typing.Optional[ConnectionOptionsOidc] = None - authentication: typing.Optional[ConnectionAuthenticationPurpose] = None - connected_accounts: typing.Optional[ConnectionConnectedAccountsPurposeXaa] = None - cross_app_access_requesting_app: typing.Optional[CrossAppAccessRequestingApp] = None - cross_app_access_resource_app: typing.Optional[ConnectionCrossAppAccessResourceApp] = None - show_as_button: typing.Optional[ConnectionShowAsButton] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_connection_request_content_okta.py b/src/auth0/management/types/update_connection_request_content_okta.py deleted file mode 100644 index f8580eac..00000000 --- a/src/auth0/management/types/update_connection_request_content_okta.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_common import ConnectionCommon -from .connection_options_okta import ConnectionOptionsOkta -from .connection_show_as_button import ConnectionShowAsButton -from .cross_app_access_requesting_app import CrossAppAccessRequestingApp - - -class UpdateConnectionRequestContentOkta(ConnectionCommon): - """ - Update a connection with strategy=okta - """ - - cross_app_access_requesting_app: typing.Optional[CrossAppAccessRequestingApp] = None - options: typing.Optional[ConnectionOptionsOkta] = None - show_as_button: typing.Optional[ConnectionShowAsButton] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_connection_request_content_paypal.py b/src/auth0/management/types/update_connection_request_content_paypal.py deleted file mode 100644 index f657468c..00000000 --- a/src/auth0/management/types/update_connection_request_content_paypal.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_common import ConnectionCommon -from .connection_options_paypal import ConnectionOptionsPaypal - - -class UpdateConnectionRequestContentPaypal(ConnectionCommon): - """ - Update a connection with strategy=paypal - """ - - options: typing.Optional[ConnectionOptionsPaypal] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_connection_request_content_paypal_sandbox.py b/src/auth0/management/types/update_connection_request_content_paypal_sandbox.py deleted file mode 100644 index c7016c20..00000000 --- a/src/auth0/management/types/update_connection_request_content_paypal_sandbox.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_common import ConnectionCommon -from .connection_options_paypal import ConnectionOptionsPaypal - - -class UpdateConnectionRequestContentPaypalSandbox(ConnectionCommon): - """ - Update a connection with strategy=paypal-sandbox - """ - - options: typing.Optional[ConnectionOptionsPaypal] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_connection_request_content_ping_federate.py b/src/auth0/management/types/update_connection_request_content_ping_federate.py deleted file mode 100644 index fc52b66d..00000000 --- a/src/auth0/management/types/update_connection_request_content_ping_federate.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_common import ConnectionCommon -from .connection_options_ping_federate import ConnectionOptionsPingFederate -from .connection_show_as_button import ConnectionShowAsButton - - -class UpdateConnectionRequestContentPingFederate(ConnectionCommon): - """ - Update a connection with strategy=pingfederate - """ - - options: typing.Optional[ConnectionOptionsPingFederate] = None - show_as_button: typing.Optional[ConnectionShowAsButton] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_connection_request_content_planning_center.py b/src/auth0/management/types/update_connection_request_content_planning_center.py deleted file mode 100644 index 3f54a916..00000000 --- a/src/auth0/management/types/update_connection_request_content_planning_center.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_common import ConnectionCommon -from .connection_options_planning_center import ConnectionOptionsPlanningCenter - - -class UpdateConnectionRequestContentPlanningCenter(ConnectionCommon): - """ - Update a connection with strategy=planningcenter - """ - - options: typing.Optional[ConnectionOptionsPlanningCenter] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_connection_request_content_salesforce.py b/src/auth0/management/types/update_connection_request_content_salesforce.py deleted file mode 100644 index 79c0155e..00000000 --- a/src/auth0/management/types/update_connection_request_content_salesforce.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_common import ConnectionCommon -from .connection_options_salesforce import ConnectionOptionsSalesforce - - -class UpdateConnectionRequestContentSalesforce(ConnectionCommon): - """ - Update a connection with strategy=salesforce - """ - - options: typing.Optional[ConnectionOptionsSalesforce] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_connection_request_content_salesforce_community.py b/src/auth0/management/types/update_connection_request_content_salesforce_community.py deleted file mode 100644 index 3a47f9af..00000000 --- a/src/auth0/management/types/update_connection_request_content_salesforce_community.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_common import ConnectionCommon -from .connection_options_salesforce_community import ConnectionOptionsSalesforceCommunity - - -class UpdateConnectionRequestContentSalesforceCommunity(ConnectionCommon): - """ - Update a connection with strategy=salesforce-community - """ - - options: typing.Optional[ConnectionOptionsSalesforceCommunity] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_connection_request_content_salesforce_sandbox.py b/src/auth0/management/types/update_connection_request_content_salesforce_sandbox.py deleted file mode 100644 index 3240e019..00000000 --- a/src/auth0/management/types/update_connection_request_content_salesforce_sandbox.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_common import ConnectionCommon -from .connection_options_salesforce import ConnectionOptionsSalesforce - - -class UpdateConnectionRequestContentSalesforceSandbox(ConnectionCommon): - """ - Update a connection with strategy=salesforce-sandbox - """ - - options: typing.Optional[ConnectionOptionsSalesforce] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_connection_request_content_saml.py b/src/auth0/management/types/update_connection_request_content_saml.py deleted file mode 100644 index 8718562c..00000000 --- a/src/auth0/management/types/update_connection_request_content_saml.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_common import ConnectionCommon -from .connection_cross_app_access_resource_app import ConnectionCrossAppAccessResourceApp -from .connection_options_saml import ConnectionOptionsSaml -from .connection_show_as_button import ConnectionShowAsButton -from .cross_app_access_requesting_app import CrossAppAccessRequestingApp - - -class UpdateConnectionRequestContentSaml(ConnectionCommon): - """ - Update a connection with strategy=samlp - """ - - options: typing.Optional[ConnectionOptionsSaml] = None - cross_app_access_requesting_app: typing.Optional[CrossAppAccessRequestingApp] = None - cross_app_access_resource_app: typing.Optional[ConnectionCrossAppAccessResourceApp] = None - show_as_button: typing.Optional[ConnectionShowAsButton] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_connection_request_content_sharepoint.py b/src/auth0/management/types/update_connection_request_content_sharepoint.py deleted file mode 100644 index 64df0544..00000000 --- a/src/auth0/management/types/update_connection_request_content_sharepoint.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_common import ConnectionCommon -from .connection_options_sharepoint import ConnectionOptionsSharepoint -from .connection_show_as_button import ConnectionShowAsButton - - -class UpdateConnectionRequestContentSharepoint(ConnectionCommon): - """ - Update a connection with strategy=sharepoint - """ - - options: typing.Optional[ConnectionOptionsSharepoint] = None - show_as_button: typing.Optional[ConnectionShowAsButton] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_connection_request_content_shop.py b/src/auth0/management/types/update_connection_request_content_shop.py deleted file mode 100644 index 34a305e9..00000000 --- a/src/auth0/management/types/update_connection_request_content_shop.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_common import ConnectionCommon -from .connection_options_shop import ConnectionOptionsShop - - -class UpdateConnectionRequestContentShop(ConnectionCommon): - """ - Update a connection with strategy=shop - """ - - options: typing.Optional[ConnectionOptionsShop] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_connection_request_content_shopify.py b/src/auth0/management/types/update_connection_request_content_shopify.py deleted file mode 100644 index e9215a13..00000000 --- a/src/auth0/management/types/update_connection_request_content_shopify.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_common import ConnectionCommon -from .connection_options_shopify import ConnectionOptionsShopify - - -class UpdateConnectionRequestContentShopify(ConnectionCommon): - """ - Update a connection with strategy=shopify - """ - - options: typing.Optional[ConnectionOptionsShopify] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_connection_request_content_sms.py b/src/auth0/management/types/update_connection_request_content_sms.py deleted file mode 100644 index c696407f..00000000 --- a/src/auth0/management/types/update_connection_request_content_sms.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_common import ConnectionCommon -from .connection_options_sms import ConnectionOptionsSms - - -class UpdateConnectionRequestContentSms(ConnectionCommon): - """ - Update a connection with strategy=sms - """ - - options: typing.Optional[ConnectionOptionsSms] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_connection_request_content_soundcloud.py b/src/auth0/management/types/update_connection_request_content_soundcloud.py deleted file mode 100644 index 39a2e2f6..00000000 --- a/src/auth0/management/types/update_connection_request_content_soundcloud.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_common import ConnectionCommon -from .connection_options_soundcloud import ConnectionOptionsSoundcloud - - -class UpdateConnectionRequestContentSoundcloud(ConnectionCommon): - """ - Update a connection with strategy=soundcloud - """ - - options: typing.Optional[ConnectionOptionsSoundcloud] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_connection_request_content_thirty_seven_signals.py b/src/auth0/management/types/update_connection_request_content_thirty_seven_signals.py deleted file mode 100644 index a0a07364..00000000 --- a/src/auth0/management/types/update_connection_request_content_thirty_seven_signals.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_common import ConnectionCommon -from .connection_options_thirty_seven_signals import ConnectionOptionsThirtySevenSignals - - -class UpdateConnectionRequestContentThirtySevenSignals(ConnectionCommon): - """ - Update a connection with strategy=thirtysevensignals - """ - - options: typing.Optional[ConnectionOptionsThirtySevenSignals] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_connection_request_content_twitter.py b/src/auth0/management/types/update_connection_request_content_twitter.py deleted file mode 100644 index c7bbcc74..00000000 --- a/src/auth0/management/types/update_connection_request_content_twitter.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_common import ConnectionCommon -from .connection_options_twitter import ConnectionOptionsTwitter - - -class UpdateConnectionRequestContentTwitter(ConnectionCommon): - """ - Update a connection with strategy=twitter - """ - - options: typing.Optional[ConnectionOptionsTwitter] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_connection_request_content_untappd.py b/src/auth0/management/types/update_connection_request_content_untappd.py deleted file mode 100644 index 3cef6eac..00000000 --- a/src/auth0/management/types/update_connection_request_content_untappd.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_common import ConnectionCommon -from .connection_options_untappd import ConnectionOptionsUntappd - - -class UpdateConnectionRequestContentUntappd(ConnectionCommon): - """ - Update a connection with strategy=untappd - """ - - options: typing.Optional[ConnectionOptionsUntappd] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_connection_request_content_vkontakte.py b/src/auth0/management/types/update_connection_request_content_vkontakte.py deleted file mode 100644 index bdc81d49..00000000 --- a/src/auth0/management/types/update_connection_request_content_vkontakte.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_common import ConnectionCommon -from .connection_options_vkontakte import ConnectionOptionsVkontakte - - -class UpdateConnectionRequestContentVkontakte(ConnectionCommon): - """ - Update a connection with strategy=vkontakte - """ - - options: typing.Optional[ConnectionOptionsVkontakte] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_connection_request_content_weibo.py b/src/auth0/management/types/update_connection_request_content_weibo.py deleted file mode 100644 index 34fe51a0..00000000 --- a/src/auth0/management/types/update_connection_request_content_weibo.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_common import ConnectionCommon -from .connection_options_weibo import ConnectionOptionsWeibo - - -class UpdateConnectionRequestContentWeibo(ConnectionCommon): - """ - Update a connection with strategy=weibo - """ - - options: typing.Optional[ConnectionOptionsWeibo] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_connection_request_content_windows_live.py b/src/auth0/management/types/update_connection_request_content_windows_live.py deleted file mode 100644 index 69210135..00000000 --- a/src/auth0/management/types/update_connection_request_content_windows_live.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_common import ConnectionCommon -from .connection_options_windows_live import ConnectionOptionsWindowsLive -from .connection_purposes import ConnectionPurposes - - -class UpdateConnectionRequestContentWindowsLive(ConnectionCommon, ConnectionPurposes): - """ - Update a connection with strategy=windowslive - """ - - options: typing.Optional[ConnectionOptionsWindowsLive] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_connection_request_content_wordpress.py b/src/auth0/management/types/update_connection_request_content_wordpress.py deleted file mode 100644 index 5b59802d..00000000 --- a/src/auth0/management/types/update_connection_request_content_wordpress.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_common import ConnectionCommon -from .connection_options_wordpress import ConnectionOptionsWordpress - - -class UpdateConnectionRequestContentWordpress(ConnectionCommon): - """ - Update a connection with strategy=wordpress - """ - - options: typing.Optional[ConnectionOptionsWordpress] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_connection_request_content_yahoo.py b/src/auth0/management/types/update_connection_request_content_yahoo.py deleted file mode 100644 index df903d24..00000000 --- a/src/auth0/management/types/update_connection_request_content_yahoo.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_common import ConnectionCommon -from .connection_options_yahoo import ConnectionOptionsYahoo - - -class UpdateConnectionRequestContentYahoo(ConnectionCommon): - """ - Update a connection with strategy=yahoo - """ - - options: typing.Optional[ConnectionOptionsYahoo] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_connection_request_content_yandex.py b/src/auth0/management/types/update_connection_request_content_yandex.py deleted file mode 100644 index ea4ef6da..00000000 --- a/src/auth0/management/types/update_connection_request_content_yandex.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .connection_common import ConnectionCommon -from .connection_options_yandex import ConnectionOptionsYandex - - -class UpdateConnectionRequestContentYandex(ConnectionCommon): - """ - Update a connection with strategy=yandex - """ - - options: typing.Optional[ConnectionOptionsYandex] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_connection_response_content.py b/src/auth0/management/types/update_connection_response_content.py deleted file mode 100644 index 34adc274..00000000 --- a/src/auth0/management/types/update_connection_response_content.py +++ /dev/null @@ -1,70 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .connection_authentication_purpose import ConnectionAuthenticationPurpose -from .connection_connected_accounts_purpose import ConnectionConnectedAccountsPurpose -from .connection_options import ConnectionOptions -from .connections_metadata import ConnectionsMetadata -from .cross_app_access_requesting_app import CrossAppAccessRequestingApp -from .cross_app_access_resource_app import CrossAppAccessResourceApp - - -class UpdateConnectionResponseContent(UniversalBaseModel): - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The name of the connection - """ - - display_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Connection name used in login screen - """ - - options: typing.Optional[ConnectionOptions] = None - id: typing.Optional[str] = pydantic.Field(default=None) - """ - The connection's identifier - """ - - strategy: typing.Optional[str] = pydantic.Field(default=None) - """ - The type of the connection, related to the identity provider - """ - - realms: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. - """ - - enabled_clients: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - DEPRECATED property. Use the GET /connections/:id/clients endpoint to get the ids of the clients for which the connection is enabled - """ - - is_domain_connection: typing.Optional[bool] = pydantic.Field(default=None) - """ - True if the connection is domain level - """ - - show_as_button: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. - """ - - metadata: typing.Optional[ConnectionsMetadata] = None - authentication: typing.Optional[ConnectionAuthenticationPurpose] = None - connected_accounts: typing.Optional[ConnectionConnectedAccountsPurpose] = None - cross_app_access_requesting_app: typing.Optional[CrossAppAccessRequestingApp] = None - cross_app_access_resource_app: typing.Optional[CrossAppAccessResourceApp] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_cross_app_access_resource_app.py b/src/auth0/management/types/update_cross_app_access_resource_app.py deleted file mode 100644 index 6613bb85..00000000 --- a/src/auth0/management/types/update_cross_app_access_resource_app.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .cross_app_access_resource_app_status_enum import CrossAppAccessResourceAppStatusEnum - - -class UpdateCrossAppAccessResourceApp(UniversalBaseModel): - """ - Cross App Access - Resource App settings that apply to this connection. - """ - - status: CrossAppAccessResourceAppStatusEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_custom_domain_response_content.py b/src/auth0/management/types/update_custom_domain_response_content.py deleted file mode 100644 index 06216537..00000000 --- a/src/auth0/management/types/update_custom_domain_response_content.py +++ /dev/null @@ -1,62 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .custom_domain_status_filter_enum import CustomDomainStatusFilterEnum -from .custom_domain_type_enum import CustomDomainTypeEnum -from .domain_certificate import DomainCertificate -from .domain_metadata import DomainMetadata -from .domain_verification import DomainVerification - - -class UpdateCustomDomainResponseContent(UniversalBaseModel): - custom_domain_id: str = pydantic.Field() - """ - ID of the custom domain. - """ - - domain: str = pydantic.Field() - """ - Domain name. - """ - - primary: bool = pydantic.Field() - """ - Whether this is a primary domain (true) or not (false). - """ - - is_default: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this is the default custom domain (true) or not (false). - """ - - status: CustomDomainStatusFilterEnum - type: CustomDomainTypeEnum - verification: DomainVerification - custom_client_ip_header: typing.Optional[str] = pydantic.Field(default=None) - """ - The HTTP header to fetch the client's IP address - """ - - tls_policy: typing.Optional[str] = pydantic.Field(default=None) - """ - The TLS version policy - """ - - domain_metadata: typing.Optional[DomainMetadata] = None - certificate: typing.Optional[DomainCertificate] = None - relying_party_identifier: typing.Optional[str] = pydantic.Field(default=None) - """ - Relying Party ID (rpId) to be used for Passkeys on this custom domain. If not present, the full domain will be used. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_default_canonical_domain_response_content.py b/src/auth0/management/types/update_default_canonical_domain_response_content.py deleted file mode 100644 index ee169b12..00000000 --- a/src/auth0/management/types/update_default_canonical_domain_response_content.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class UpdateDefaultCanonicalDomainResponseContent(UniversalBaseModel): - domain: str = pydantic.Field() - """ - Domain name. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_default_custom_domain_response_content.py b/src/auth0/management/types/update_default_custom_domain_response_content.py deleted file mode 100644 index 692cc2b2..00000000 --- a/src/auth0/management/types/update_default_custom_domain_response_content.py +++ /dev/null @@ -1,67 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .custom_domain_status_filter_enum import CustomDomainStatusFilterEnum -from .custom_domain_type_enum import CustomDomainTypeEnum -from .domain_certificate import DomainCertificate -from .domain_metadata import DomainMetadata -from .domain_verification import DomainVerification - - -class UpdateDefaultCustomDomainResponseContent(UniversalBaseModel): - custom_domain_id: str = pydantic.Field() - """ - ID of the custom domain. - """ - - domain: str = pydantic.Field() - """ - Domain name. - """ - - primary: bool = pydantic.Field() - """ - Whether this is a primary domain (true) or not (false). - """ - - is_default: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this is the default custom domain (true) or not (false). - """ - - status: CustomDomainStatusFilterEnum - type: CustomDomainTypeEnum - origin_domain_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Intermediate address. - """ - - verification: typing.Optional[DomainVerification] = None - custom_client_ip_header: typing.Optional[str] = pydantic.Field(default=None) - """ - The HTTP header to fetch the client's IP address - """ - - tls_policy: typing.Optional[str] = pydantic.Field(default=None) - """ - The TLS version policy - """ - - domain_metadata: typing.Optional[DomainMetadata] = None - certificate: typing.Optional[DomainCertificate] = None - relying_party_identifier: typing.Optional[str] = pydantic.Field(default=None) - """ - Relying Party ID (rpId) to be used for Passkeys on this custom domain. If not present, the full domain will be used. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_default_domain_response_content.py b/src/auth0/management/types/update_default_domain_response_content.py deleted file mode 100644 index 49cd3eb1..00000000 --- a/src/auth0/management/types/update_default_domain_response_content.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .update_default_canonical_domain_response_content import UpdateDefaultCanonicalDomainResponseContent -from .update_default_custom_domain_response_content import UpdateDefaultCustomDomainResponseContent - -UpdateDefaultDomainResponseContent = typing.Union[ - UpdateDefaultCustomDomainResponseContent, UpdateDefaultCanonicalDomainResponseContent -] diff --git a/src/auth0/management/types/update_directory_provisioning_request_content.py b/src/auth0/management/types/update_directory_provisioning_request_content.py deleted file mode 100644 index 67114689..00000000 --- a/src/auth0/management/types/update_directory_provisioning_request_content.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .directory_provisioning_mapping_item import DirectoryProvisioningMappingItem -from .synchronize_groups_enum import SynchronizeGroupsEnum - - -class UpdateDirectoryProvisioningRequestContent(UniversalBaseModel): - mapping: typing.Optional[typing.List[DirectoryProvisioningMappingItem]] = pydantic.Field(default=None) - """ - The mapping between Auth0 and IDP user attributes - """ - - synchronize_automatically: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether periodic automatic synchronization is enabled - """ - - synchronize_groups: typing.Optional[SynchronizeGroupsEnum] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_directory_provisioning_response_content.py b/src/auth0/management/types/update_directory_provisioning_response_content.py deleted file mode 100644 index e5faf9f3..00000000 --- a/src/auth0/management/types/update_directory_provisioning_response_content.py +++ /dev/null @@ -1,71 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .directory_provisioning_mapping_item import DirectoryProvisioningMappingItem -from .synchronize_groups_enum import SynchronizeGroupsEnum - - -class UpdateDirectoryProvisioningResponseContent(UniversalBaseModel): - connection_id: str = pydantic.Field() - """ - The connection's identifier - """ - - connection_name: str = pydantic.Field() - """ - The connection's name - """ - - strategy: str = pydantic.Field() - """ - The connection's strategy - """ - - mapping: typing.List[DirectoryProvisioningMappingItem] = pydantic.Field() - """ - The mapping between Auth0 and IDP user attributes - """ - - synchronize_automatically: bool = pydantic.Field() - """ - Whether periodic automatic synchronization is enabled - """ - - synchronize_groups: typing.Optional[SynchronizeGroupsEnum] = None - created_at: dt.datetime = pydantic.Field() - """ - The timestamp at which the directory provisioning configuration was created - """ - - updated_at: dt.datetime = pydantic.Field() - """ - The timestamp at which the directory provisioning configuration was last updated - """ - - last_synchronization_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The timestamp at which the connection was last synchronized - """ - - last_synchronization_status: typing.Optional[str] = pydantic.Field(default=None) - """ - The status of the last synchronization - """ - - last_synchronization_error: typing.Optional[str] = pydantic.Field(default=None) - """ - The error message of the last synchronization, if any - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_email_provider_response_content.py b/src/auth0/management/types/update_email_provider_response_content.py deleted file mode 100644 index f8c953a7..00000000 --- a/src/auth0/management/types/update_email_provider_response_content.py +++ /dev/null @@ -1,37 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .email_provider_credentials import EmailProviderCredentials -from .email_provider_settings import EmailProviderSettings - - -class UpdateEmailProviderResponseContent(UniversalBaseModel): - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of the email provider. Can be `mailgun`, `mandrill`, `sendgrid`, `resend`, `ses`, `sparkpost`, `smtp`, `azure_cs`, `ms365`, or `custom`. - """ - - enabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether the provider is enabled (true) or disabled (false). - """ - - default_from_address: typing.Optional[str] = pydantic.Field(default=None) - """ - Email address to use as "from" when no other address specified. - """ - - credentials: typing.Optional[EmailProviderCredentials] = None - settings: typing.Optional[EmailProviderSettings] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_email_template_response_content.py b/src/auth0/management/types/update_email_template_response_content.py deleted file mode 100644 index a2ab19b1..00000000 --- a/src/auth0/management/types/update_email_template_response_content.py +++ /dev/null @@ -1,83 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .email_template_name_enum import EmailTemplateNameEnum - - -class UpdateEmailTemplateResponseContent(UniversalBaseModel): - template: typing.Optional[EmailTemplateNameEnum] = None - body: typing.Optional[str] = pydantic.Field(default=None) - """ - Body of the email template. - """ - - from_: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="from"), - pydantic.Field(alias="from", description="Senders `from` email address."), - ] = None - """ - Senders `from` email address. - """ - - result_url: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="resultUrl"), - pydantic.Field(alias="resultUrl", description="URL to redirect the user to after a successful action."), - ] = None - """ - URL to redirect the user to after a successful action. - """ - - subject: typing.Optional[str] = pydantic.Field(default=None) - """ - Subject line of the email. - """ - - syntax: typing.Optional[str] = pydantic.Field(default=None) - """ - Syntax of the template body. - """ - - url_lifetime_in_seconds: typing_extensions.Annotated[ - typing.Optional[float], - FieldMetadata(alias="urlLifetimeInSeconds"), - pydantic.Field( - alias="urlLifetimeInSeconds", - description="Lifetime in seconds that the link within the email will be valid for.", - ), - ] = None - """ - Lifetime in seconds that the link within the email will be valid for. - """ - - include_email_in_redirect: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="includeEmailInRedirect"), - pydantic.Field( - alias="includeEmailInRedirect", - description="Whether the `reset_email` and `verify_email` templates should include the user's email address as the `email` parameter in the returnUrl (true) or whether no email address should be included in the redirect (false). Defaults to true.", - ), - ] = None - """ - Whether the `reset_email` and `verify_email` templates should include the user's email address as the `email` parameter in the returnUrl (true) or whether no email address should be included in the redirect (false). Defaults to true. - """ - - enabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether the template is enabled (true) or disabled (false). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_enabled_client_connections_request_content.py b/src/auth0/management/types/update_enabled_client_connections_request_content.py deleted file mode 100644 index 1bbacb2b..00000000 --- a/src/auth0/management/types/update_enabled_client_connections_request_content.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .update_enabled_client_connections_request_content_item import UpdateEnabledClientConnectionsRequestContentItem - -UpdateEnabledClientConnectionsRequestContent = typing.List[UpdateEnabledClientConnectionsRequestContentItem] diff --git a/src/auth0/management/types/update_enabled_client_connections_request_content_item.py b/src/auth0/management/types/update_enabled_client_connections_request_content_item.py deleted file mode 100644 index 6bd641e9..00000000 --- a/src/auth0/management/types/update_enabled_client_connections_request_content_item.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class UpdateEnabledClientConnectionsRequestContentItem(UniversalBaseModel): - client_id: str = pydantic.Field() - """ - The client_id of the client whose status will be changed. Note that the limit per PATCH request is 50 clients. - """ - - status: bool = pydantic.Field() - """ - Whether the connection is enabled or not for this client_id - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_event_stream_response_content.py b/src/auth0/management/types/update_event_stream_response_content.py deleted file mode 100644 index 8e36e28d..00000000 --- a/src/auth0/management/types/update_event_stream_response_content.py +++ /dev/null @@ -1,11 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .event_stream_action_response_content import EventStreamActionResponseContent -from .event_stream_event_bridge_response_content import EventStreamEventBridgeResponseContent -from .event_stream_webhook_response_content import EventStreamWebhookResponseContent - -UpdateEventStreamResponseContent = typing.Union[ - EventStreamWebhookResponseContent, EventStreamEventBridgeResponseContent, EventStreamActionResponseContent -] diff --git a/src/auth0/management/types/update_experiment_response_content.py b/src/auth0/management/types/update_experiment_response_content.py deleted file mode 100644 index 2f25ab9c..00000000 --- a/src/auth0/management/types/update_experiment_response_content.py +++ /dev/null @@ -1,58 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .allocation_item import AllocationItem -from .allocation_strategy_enum import AllocationStrategyEnum -from .default_config_enum import DefaultConfigEnum -from .experiment_status_enum import ExperimentStatusEnum - - -class UpdateExperimentResponseContent(UniversalBaseModel): - id: str - name: str - description: typing.Optional[str] = None - feature_flag_id: str - feature_flag_name: typing.Optional[str] = None - authentication_flow: str - allocation_strategy: AllocationStrategyEnum - status: ExperimentStatusEnum - is_valid: bool = pydantic.Field() - """ - Whether the experiment is valid and ready to activate, as of its last update. It can lag changes made later to related entities. Call POST /experiments/{id}/validate for the current result. - """ - - default_config: typing.Optional[DefaultConfigEnum] = None - feature_flag_snapshot: typing.Optional[typing.Dict[str, typing.Any]] = None - allocations: typing.List[AllocationItem] - editable_fields: typing.List[str] = pydantic.Field() - """ - Fields that may be mutated given the experiment's current status. Computed at response time; always current with the API's enforcement logic. - """ - - levels: typing.Optional[typing.List[int]] = pydantic.Field(default=None) - """ - Ramp experiment levels configuration. - """ - - current_level: typing.Optional[int] = pydantic.Field(default=None) - """ - Read-only. The active exposure percentage for the current ramp step. Null when no ramp schedule is active. - """ - - started_at: typing.Optional[dt.datetime] = None - ended_at: typing.Optional[dt.datetime] = None - created_at: dt.datetime - updated_at: dt.datetime - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_feature_flag_parameters.py b/src/auth0/management/types/update_feature_flag_parameters.py deleted file mode 100644 index 73c8d175..00000000 --- a/src/auth0/management/types/update_feature_flag_parameters.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .feature_flag_config_param import FeatureFlagConfigParam - -UpdateFeatureFlagParameters = typing.Dict[str, FeatureFlagConfigParam] -""" -Configuration parameters for this feature flag -""" diff --git a/src/auth0/management/types/update_feature_flag_response_content.py b/src/auth0/management/types/update_feature_flag_response_content.py deleted file mode 100644 index de02e56a..00000000 --- a/src/auth0/management/types/update_feature_flag_response_content.py +++ /dev/null @@ -1,30 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .feature_flag_config_params import FeatureFlagConfigParams -from .feature_flag_status_enum import FeatureFlagStatusEnum -from .feature_flag_type_enum import FeatureFlagTypeEnum - - -class UpdateFeatureFlagResponseContent(UniversalBaseModel): - id: str - name: str - description: typing.Optional[str] = None - type: FeatureFlagTypeEnum - status: FeatureFlagStatusEnum - parameters: typing.Optional[FeatureFlagConfigParams] = None - created_at: dt.datetime - updated_at: dt.datetime - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_flow_response_content.py b/src/auth0/management/types/update_flow_response_content.py deleted file mode 100644 index 28829865..00000000 --- a/src/auth0/management/types/update_flow_response_content.py +++ /dev/null @@ -1,41 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel, update_forward_refs - - -class UpdateFlowResponseContent(UniversalBaseModel): - id: str - name: str - actions: typing.Optional[typing.List["FlowAction"]] = None - created_at: dt.datetime - updated_at: dt.datetime - executed_at: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .flow_action import FlowAction # noqa: E402, I001 -from .flow_action_flow import FlowActionFlow # noqa: E402, I001 -from .flow_action_flow_boolean_condition import FlowActionFlowBooleanCondition # noqa: E402, I001 -from .flow_action_flow_boolean_condition_params import FlowActionFlowBooleanConditionParams # noqa: E402, I001 - -update_forward_refs( - UpdateFlowResponseContent, - FlowAction=FlowAction, - FlowActionFlow=FlowActionFlow, - FlowActionFlowBooleanCondition=FlowActionFlowBooleanCondition, - FlowActionFlowBooleanConditionParams=FlowActionFlowBooleanConditionParams, -) diff --git a/src/auth0/management/types/update_flows_vault_connection_response_content.py b/src/auth0/management/types/update_flows_vault_connection_response_content.py deleted file mode 100644 index a0b6f277..00000000 --- a/src/auth0/management/types/update_flows_vault_connection_response_content.py +++ /dev/null @@ -1,65 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class UpdateFlowsVaultConnectionResponseContent(UniversalBaseModel): - id: str = pydantic.Field() - """ - Flows Vault Connection identifier. - """ - - app_id: str = pydantic.Field() - """ - Flows Vault Connection app identifier. - """ - - environment: typing.Optional[str] = pydantic.Field(default=None) - """ - Flows Vault Connection environment. - """ - - name: str = pydantic.Field() - """ - Flows Vault Connection name. - """ - - account_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Flows Vault Connection custom account name. - """ - - ready: bool = pydantic.Field() - """ - Whether the Flows Vault Connection is configured. - """ - - created_at: dt.datetime = pydantic.Field() - """ - The ISO 8601 formatted date when this Flows Vault Connection was created. - """ - - updated_at: dt.datetime = pydantic.Field() - """ - The ISO 8601 formatted date when this Flows Vault Connection was updated. - """ - - refreshed_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The ISO 8601 formatted date when this Flows Vault Connection was refreshed. - """ - - fingerprint: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_flows_vault_connection_setup.py b/src/auth0/management/types/update_flows_vault_connection_setup.py deleted file mode 100644 index 969d1fc7..00000000 --- a/src/auth0/management/types/update_flows_vault_connection_setup.py +++ /dev/null @@ -1,41 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .flows_vault_connectio_setup_api_key import FlowsVaultConnectioSetupApiKey -from .flows_vault_connectio_setup_api_key_with_base_url import FlowsVaultConnectioSetupApiKeyWithBaseUrl -from .flows_vault_connectio_setup_bigquery_oauth_jwt import FlowsVaultConnectioSetupBigqueryOauthJwt -from .flows_vault_connectio_setup_http_bearer import FlowsVaultConnectioSetupHttpBearer -from .flows_vault_connectio_setup_jwt import FlowsVaultConnectioSetupJwt -from .flows_vault_connectio_setup_mailjet_api_key import FlowsVaultConnectioSetupMailjetApiKey -from .flows_vault_connectio_setup_oauth_app import FlowsVaultConnectioSetupOauthApp -from .flows_vault_connectio_setup_oauth_code import FlowsVaultConnectioSetupOauthCode -from .flows_vault_connectio_setup_secret_api_key import FlowsVaultConnectioSetupSecretApiKey -from .flows_vault_connectio_setup_stripe_key_pair import FlowsVaultConnectioSetupStripeKeyPair -from .flows_vault_connectio_setup_token import FlowsVaultConnectioSetupToken -from .flows_vault_connectio_setup_twilio_api_key import FlowsVaultConnectioSetupTwilioApiKey -from .flows_vault_connectio_setup_webhook import FlowsVaultConnectioSetupWebhook -from .flows_vault_connection_http_api_key_setup import FlowsVaultConnectionHttpApiKeySetup -from .flows_vault_connection_http_basic_auth_setup import FlowsVaultConnectionHttpBasicAuthSetup -from .flows_vault_connection_http_oauth_client_credentials_setup import ( - FlowsVaultConnectionHttpOauthClientCredentialsSetup, -) - -UpdateFlowsVaultConnectionSetup = typing.Union[ - FlowsVaultConnectioSetupApiKeyWithBaseUrl, - FlowsVaultConnectioSetupApiKey, - FlowsVaultConnectioSetupOauthApp, - FlowsVaultConnectioSetupBigqueryOauthJwt, - FlowsVaultConnectioSetupSecretApiKey, - FlowsVaultConnectioSetupHttpBearer, - FlowsVaultConnectionHttpBasicAuthSetup, - FlowsVaultConnectionHttpApiKeySetup, - FlowsVaultConnectionHttpOauthClientCredentialsSetup, - FlowsVaultConnectioSetupJwt, - FlowsVaultConnectioSetupMailjetApiKey, - FlowsVaultConnectioSetupToken, - FlowsVaultConnectioSetupWebhook, - FlowsVaultConnectioSetupStripeKeyPair, - FlowsVaultConnectioSetupOauthCode, - FlowsVaultConnectioSetupTwilioApiKey, -] diff --git a/src/auth0/management/types/update_form_response_content.py b/src/auth0/management/types/update_form_response_content.py deleted file mode 100644 index bd93da87..00000000 --- a/src/auth0/management/types/update_form_response_content.py +++ /dev/null @@ -1,39 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .form_ending_node import FormEndingNode -from .form_languages import FormLanguages -from .form_messages import FormMessages -from .form_node_list import FormNodeList -from .form_start_node import FormStartNode -from .form_style import FormStyle -from .form_translations import FormTranslations - - -class UpdateFormResponseContent(UniversalBaseModel): - id: str - name: str - messages: typing.Optional[FormMessages] = None - languages: typing.Optional[FormLanguages] = None - translations: typing.Optional[FormTranslations] = None - nodes: typing.Optional[FormNodeList] = None - start: typing.Optional[FormStartNode] = None - ending: typing.Optional[FormEndingNode] = None - style: typing.Optional[FormStyle] = None - created_at: dt.datetime - updated_at: dt.datetime - embedded_at: typing.Optional[str] = None - submitted_at: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_guardian_factor_duo_settings_response_content.py b/src/auth0/management/types/update_guardian_factor_duo_settings_response_content.py deleted file mode 100644 index 38d6b495..00000000 --- a/src/auth0/management/types/update_guardian_factor_duo_settings_response_content.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class UpdateGuardianFactorDuoSettingsResponseContent(UniversalBaseModel): - ikey: typing.Optional[str] = None - skey: typing.Optional[str] = None - host: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_guardian_factors_provider_push_notification_apns_response_content.py b/src/auth0/management/types/update_guardian_factors_provider_push_notification_apns_response_content.py deleted file mode 100644 index 3cc16f7f..00000000 --- a/src/auth0/management/types/update_guardian_factors_provider_push_notification_apns_response_content.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class UpdateGuardianFactorsProviderPushNotificationApnsResponseContent(UniversalBaseModel): - sandbox: typing.Optional[bool] = None - bundle_id: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_guardian_factors_provider_push_notification_fcm_response_content.py b/src/auth0/management/types/update_guardian_factors_provider_push_notification_fcm_response_content.py deleted file mode 100644 index 917227f9..00000000 --- a/src/auth0/management/types/update_guardian_factors_provider_push_notification_fcm_response_content.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -UpdateGuardianFactorsProviderPushNotificationFcmResponseContent = typing.Dict[str, typing.Any] diff --git a/src/auth0/management/types/update_guardian_factors_provider_push_notification_fcmv_1_response_content.py b/src/auth0/management/types/update_guardian_factors_provider_push_notification_fcmv_1_response_content.py deleted file mode 100644 index 707a2d69..00000000 --- a/src/auth0/management/types/update_guardian_factors_provider_push_notification_fcmv_1_response_content.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -UpdateGuardianFactorsProviderPushNotificationFcmv1ResponseContent = typing.Dict[str, typing.Any] diff --git a/src/auth0/management/types/update_guardian_factors_provider_push_notification_sns_response_content.py b/src/auth0/management/types/update_guardian_factors_provider_push_notification_sns_response_content.py deleted file mode 100644 index 91039974..00000000 --- a/src/auth0/management/types/update_guardian_factors_provider_push_notification_sns_response_content.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class UpdateGuardianFactorsProviderPushNotificationSnsResponseContent(UniversalBaseModel): - aws_access_key_id: typing.Optional[str] = None - aws_secret_access_key: typing.Optional[str] = None - aws_region: typing.Optional[str] = None - sns_apns_platform_application_arn: typing.Optional[str] = None - sns_gcm_platform_application_arn: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_hook_response_content.py b/src/auth0/management/types/update_hook_response_content.py deleted file mode 100644 index de74f600..00000000 --- a/src/auth0/management/types/update_hook_response_content.py +++ /dev/null @@ -1,51 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .hook_dependencies import HookDependencies - - -class UpdateHookResponseContent(UniversalBaseModel): - trigger_id: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="triggerId"), - pydantic.Field(alias="triggerId", description="Trigger ID"), - ] = None - """ - Trigger ID - """ - - id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of this hook. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of this hook. - """ - - enabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this hook will be executed (true) or ignored (false). - """ - - script: typing.Optional[str] = pydantic.Field(default=None) - """ - Code to be executed when this hook runs. - """ - - dependencies: typing.Optional[HookDependencies] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_hook_secret_request_content.py b/src/auth0/management/types/update_hook_secret_request_content.py deleted file mode 100644 index 2f9c68d3..00000000 --- a/src/auth0/management/types/update_hook_secret_request_content.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -UpdateHookSecretRequestContent = typing.Dict[str, str] -""" -Hashmap of key-value pairs where the value must be a string. -""" diff --git a/src/auth0/management/types/update_identity_assertion_authorization_grant.py b/src/auth0/management/types/update_identity_assertion_authorization_grant.py deleted file mode 100644 index 9c4a481b..00000000 --- a/src/auth0/management/types/update_identity_assertion_authorization_grant.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class UpdateIdentityAssertionAuthorizationGrant(UniversalBaseModel): - """ - Configuration on the use of ID-JAGs for Cross App Access. - """ - - active: bool = pydantic.Field() - """ - If set to true, the client can exchange ID-JAGs for access tokens. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_log_stream_response_content.py b/src/auth0/management/types/update_log_stream_response_content.py deleted file mode 100644 index b1c03cca..00000000 --- a/src/auth0/management/types/update_log_stream_response_content.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .log_stream_datadog_response_schema import LogStreamDatadogResponseSchema -from .log_stream_event_bridge_response_schema import LogStreamEventBridgeResponseSchema -from .log_stream_event_grid_response_schema import LogStreamEventGridResponseSchema -from .log_stream_http_response_schema import LogStreamHttpResponseSchema -from .log_stream_mixpanel_response_schema import LogStreamMixpanelResponseSchema -from .log_stream_segment_response_schema import LogStreamSegmentResponseSchema -from .log_stream_splunk_response_schema import LogStreamSplunkResponseSchema -from .log_stream_sumo_response_schema import LogStreamSumoResponseSchema - -UpdateLogStreamResponseContent = typing.Union[ - LogStreamHttpResponseSchema, - LogStreamEventBridgeResponseSchema, - LogStreamEventGridResponseSchema, - LogStreamDatadogResponseSchema, - LogStreamSplunkResponseSchema, - LogStreamSumoResponseSchema, - LogStreamSegmentResponseSchema, - LogStreamMixpanelResponseSchema, -] diff --git a/src/auth0/management/types/update_network_acl_response_content.py b/src/auth0/management/types/update_network_acl_response_content.py deleted file mode 100644 index 7c55ecd1..00000000 --- a/src/auth0/management/types/update_network_acl_response_content.py +++ /dev/null @@ -1,33 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .network_acl_rule import NetworkAclRule - - -class UpdateNetworkAclResponseContent(UniversalBaseModel): - id: typing.Optional[str] = None - description: typing.Optional[str] = None - active: typing.Optional[bool] = None - priority: typing.Optional[float] = None - rule: typing.Optional[NetworkAclRule] = None - created_at: typing.Optional[str] = pydantic.Field(default=None) - """ - The timestamp when the Network ACL Configuration was created - """ - - updated_at: typing.Optional[str] = pydantic.Field(default=None) - """ - The timestamp when the Network ACL Configuration was last updated - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_organization_all_connection_response_content.py b/src/auth0/management/types/update_organization_all_connection_response_content.py deleted file mode 100644 index 0012ea2c..00000000 --- a/src/auth0/management/types/update_organization_all_connection_response_content.py +++ /dev/null @@ -1,54 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .organization_access_level_enum import OrganizationAccessLevelEnum -from .organization_connection_information import OrganizationConnectionInformation -from .organization_member_access_level_enum import OrganizationMemberAccessLevelEnum - - -class UpdateOrganizationAllConnectionResponseContent(UniversalBaseModel): - organization_connection_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of the connection in the scope of this organization. - """ - - assign_membership_on_login: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true, all users that log in with this connection will be automatically granted membership in the organization. When false, users must be granted membership in the organization before logging in with this connection. - """ - - show_as_button: typing.Optional[bool] = pydantic.Field(default=None) - """ - Determines whether a connection should be displayed on this organization’s login prompt. Only applicable for enterprise connections. Default: true. - """ - - is_signup_enabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - Determines whether organization signup should be enabled for this organization connection. Only applicable for database connections. Default: false. - """ - - organization_access_level: typing.Optional[OrganizationAccessLevelEnum] = None - organization_member_access_level: typing.Optional[OrganizationMemberAccessLevelEnum] = None - is_enabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether the connection is enabled for the organization. - """ - - connection_id: str = pydantic.Field() - """ - Connection identifier. - """ - - connection: typing.Optional[OrganizationConnectionInformation] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_organization_client_response_content.py b/src/auth0/management/types/update_organization_client_response_content.py deleted file mode 100644 index 487a60f8..00000000 --- a/src/auth0/management/types/update_organization_client_response_content.py +++ /dev/null @@ -1,30 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .organization_client_metadata import OrganizationClientMetadata - - -class UpdateOrganizationClientResponseContent(UniversalBaseModel): - client_id: str = pydantic.Field() - """ - The identifier of the client associated with the organization. - """ - - use_for_member_access: bool = pydantic.Field() - """ - Whether this client is used for member access to the organization. - """ - - client: typing.Optional[OrganizationClientMetadata] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_organization_connection_response_content.py b/src/auth0/management/types/update_organization_connection_response_content.py deleted file mode 100644 index f20a09e8..00000000 --- a/src/auth0/management/types/update_organization_connection_response_content.py +++ /dev/null @@ -1,40 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .organization_connection_information import OrganizationConnectionInformation - - -class UpdateOrganizationConnectionResponseContent(UniversalBaseModel): - connection_id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of the connection. - """ - - assign_membership_on_login: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true, all users that log in with this connection will be automatically granted membership in the organization. When false, users must be granted membership in the organization before logging in with this connection. - """ - - show_as_button: typing.Optional[bool] = pydantic.Field(default=None) - """ - Determines whether a connection should be displayed on this organization’s login prompt. Only applicable for enterprise connections. Default: true. - """ - - is_signup_enabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - Determines whether organization signup should be enabled for this organization connection. Only applicable for database connections. Default: false. - """ - - connection: typing.Optional[OrganizationConnectionInformation] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_organization_discovery_domain_response_content.py b/src/auth0/management/types/update_organization_discovery_domain_response_content.py deleted file mode 100644 index b15699d0..00000000 --- a/src/auth0/management/types/update_organization_discovery_domain_response_content.py +++ /dev/null @@ -1,44 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .organization_discovery_domain_status import OrganizationDiscoveryDomainStatus - - -class UpdateOrganizationDiscoveryDomainResponseContent(UniversalBaseModel): - id: str = pydantic.Field() - """ - Organization discovery domain identifier. - """ - - domain: str = pydantic.Field() - """ - The domain name to associate with the organization e.g. acme.com. - """ - - status: OrganizationDiscoveryDomainStatus - use_for_organization_discovery: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether this domain should be used for organization discovery. - """ - - verification_txt: str = pydantic.Field() - """ - A unique token generated for the discovery domain. This must be placed in a DNS TXT record at the location specified by the verification_host field to prove domain ownership. - """ - - verification_host: str = pydantic.Field() - """ - The full domain where the TXT record should be added. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_organization_response_content.py b/src/auth0/management/types/update_organization_response_content.py deleted file mode 100644 index 76f738ab..00000000 --- a/src/auth0/management/types/update_organization_response_content.py +++ /dev/null @@ -1,48 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .organization_branding import OrganizationBranding -from .organization_client_association import OrganizationClientAssociation -from .organization_metadata import OrganizationMetadata -from .organization_third_party_client_access_enum import OrganizationThirdPartyClientAccessEnum -from .token_quota import TokenQuota - - -class UpdateOrganizationResponseContent(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - Organization identifier. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The name of this organization. - """ - - display_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Friendly name of this organization. - """ - - branding: typing.Optional[OrganizationBranding] = None - metadata: typing.Optional[OrganizationMetadata] = None - token_quota: typing.Optional[TokenQuota] = None - third_party_client_access: typing.Optional[OrganizationThirdPartyClientAccessEnum] = None - is_app_entitlement_active: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether app entitlement is active for this organization. - """ - - client: typing.Optional[OrganizationClientAssociation] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_phone_template_response_content.py b/src/auth0/management/types/update_phone_template_response_content.py deleted file mode 100644 index 5c4efde8..00000000 --- a/src/auth0/management/types/update_phone_template_response_content.py +++ /dev/null @@ -1,30 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .phone_template_content import PhoneTemplateContent -from .phone_template_notification_type_enum import PhoneTemplateNotificationTypeEnum - - -class UpdatePhoneTemplateResponseContent(UniversalBaseModel): - id: typing.Optional[str] = None - channel: typing.Optional[str] = None - customizable: typing.Optional[bool] = None - tenant: typing.Optional[str] = None - content: PhoneTemplateContent - type: PhoneTemplateNotificationTypeEnum - disabled: bool = pydantic.Field() - """ - Whether the template is enabled (false) or disabled (true). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_rate_limit_policy_response_content.py b/src/auth0/management/types/update_rate_limit_policy_response_content.py deleted file mode 100644 index 07977682..00000000 --- a/src/auth0/management/types/update_rate_limit_policy_response_content.py +++ /dev/null @@ -1,44 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .rate_limit_policy_configuration import RateLimitPolicyConfiguration -from .rate_limit_policy_consumer_enum import RateLimitPolicyConsumerEnum -from .rate_limit_policy_resource_enum import RateLimitPolicyResourceEnum - - -class UpdateRateLimitPolicyResponseContent(UniversalBaseModel): - id: str = pydantic.Field() - """ - Unique identifier for the Rate Limit Policy. - """ - - resource: RateLimitPolicyResourceEnum - consumer: RateLimitPolicyConsumerEnum - consumer_selector: str = pydantic.Field() - """ - Identifier or category within the consumer to which the policy applies. Supported values: `client_id:` to target a specific client by ID, `client_id:` to target a CIMD client by URI, `cimd_clients` to target all CIMD clients, `third_party_clients` to target all third-party clients, or `default` to apply the policy to any consumer identifier not otherwise explicitly targeted. - """ - - configuration: RateLimitPolicyConfiguration - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The date and time when the rate limit policy was created. - """ - - updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The date and time when the rate limit policy was last updated. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_refresh_token_response_content.py b/src/auth0/management/types/update_refresh_token_response_content.py deleted file mode 100644 index 410862a8..00000000 --- a/src/auth0/management/types/update_refresh_token_response_content.py +++ /dev/null @@ -1,55 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .refresh_token_date import RefreshTokenDate -from .refresh_token_device import RefreshTokenDevice -from .refresh_token_metadata import RefreshTokenMetadata -from .refresh_token_resource_server import RefreshTokenResourceServer -from .refresh_token_session_id import RefreshTokenSessionId - - -class UpdateRefreshTokenResponseContent(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - The ID of the refresh token - """ - - user_id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of the user which can be used when interacting with other APIs. - """ - - created_at: typing.Optional[RefreshTokenDate] = None - idle_expires_at: typing.Optional[RefreshTokenDate] = None - expires_at: typing.Optional[RefreshTokenDate] = None - device: typing.Optional[RefreshTokenDevice] = None - client_id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of the client application granted with this refresh token - """ - - session_id: typing.Optional[RefreshTokenSessionId] = None - rotating: typing.Optional[bool] = pydantic.Field(default=None) - """ - True if the token is a rotating refresh token - """ - - resource_servers: typing.Optional[typing.List[RefreshTokenResourceServer]] = pydantic.Field(default=None) - """ - A list of the resource server IDs associated to this refresh-token and their granted scopes - """ - - refresh_token_metadata: typing.Optional[RefreshTokenMetadata] = None - last_exchanged_at: typing.Optional[RefreshTokenDate] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_resource_server_response_content.py b/src/auth0/management/types/update_resource_server_response_content.py deleted file mode 100644 index 720e9da9..00000000 --- a/src/auth0/management/types/update_resource_server_response_content.py +++ /dev/null @@ -1,120 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .resource_server_access_token import ResourceServerAccessToken -from .resource_server_agent_subject_claims_response_enum import ResourceServerAgentSubjectClaimsResponseEnum -from .resource_server_authorization_policy import ResourceServerAuthorizationPolicy -from .resource_server_consent_policy_enum import ResourceServerConsentPolicyEnum -from .resource_server_proof_of_possession import ResourceServerProofOfPossession -from .resource_server_scope import ResourceServerScope -from .resource_server_subject_type_authorization import ResourceServerSubjectTypeAuthorization -from .resource_server_token_dialect_response_enum import ResourceServerTokenDialectResponseEnum -from .resource_server_token_encryption import ResourceServerTokenEncryption -from .resource_server_type_enum import ResourceServerTypeEnum -from .signing_algorithm_enum import SigningAlgorithmEnum - - -class UpdateResourceServerResponseContent(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of the API (resource server). - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Friendly name for this resource server. Can not contain `<` or `>` characters. - """ - - is_system: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this is an Auth0 system API (true) or a custom API (false). - """ - - identifier: typing.Optional[str] = pydantic.Field(default=None) - """ - Unique identifier for the API used as the audience parameter on authorization calls. Can not be changed once set. - """ - - scopes: typing.Optional[typing.List[ResourceServerScope]] = pydantic.Field(default=None) - """ - List of permissions (scopes) that this API uses. - """ - - signing_alg: typing.Optional[SigningAlgorithmEnum] = None - signing_secret: typing.Optional[str] = pydantic.Field(default=None) - """ - Secret used to sign tokens when using symmetric algorithms (HS256). - """ - - allow_offline_access: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether refresh tokens can be issued for this API (true) or not (false). - """ - - allow_online_access: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether Online Refresh Tokens can be issued for this API (true) or not (false). - """ - - allow_online_access_with_ephemeral_sessions: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether Online Refresh Tokens can be issued even when sessions are configured as ephemeral (true) or not (false). - """ - - skip_consent_for_verifiable_first_party_clients: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether to skip user consent for applications flagged as first party (true) or not (false). - """ - - token_lifetime: typing.Optional[int] = pydantic.Field(default=None) - """ - Expiration value (in seconds) for access tokens issued for this API from the token endpoint. - """ - - token_lifetime_for_web: typing.Optional[int] = pydantic.Field(default=None) - """ - Expiration value (in seconds) for access tokens issued for this API via Implicit or Hybrid Flows. Cannot be greater than the `token_lifetime` value. - """ - - enforce_policies: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether authorization polices are enforced (true) or unenforced (false). - """ - - token_lifetime_for_anonymous_access_tokens: typing.Optional[int] = pydantic.Field(default=None) - """ - Expiration value (in seconds) for anonymous-session access tokens issued for this API. - """ - - token_dialect: typing.Optional[ResourceServerTokenDialectResponseEnum] = None - access_token: typing.Optional[ResourceServerAccessToken] = None - token_encryption: typing.Optional[ResourceServerTokenEncryption] = None - consent_policy: typing.Optional[ResourceServerConsentPolicyEnum] = None - require_consent_non_repudiation: typing.Optional[bool] = pydantic.Field(default=None) - """ - When true, the resource server requires every consent approval to be digitally signed, so the approver cannot later deny a consent they granted. When false, consent decisions do not need a signature. Defaults to false. A configured value is still returned even after the related entitlement is disabled. - """ - - authorization_details: typing.Optional[typing.List[typing.Any]] = None - proof_of_possession: typing.Optional[ResourceServerProofOfPossession] = None - subject_type_authorization: typing.Optional[ResourceServerSubjectTypeAuthorization] = None - authorization_policy: typing.Optional[ResourceServerAuthorizationPolicy] = None - client_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The client ID of the client that this resource server is linked to - """ - - agent_subject_claims: typing.Optional[ResourceServerAgentSubjectClaimsResponseEnum] = None - type: typing.Optional[ResourceServerTypeEnum] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_risk_assessments_settings_new_device_response_content.py b/src/auth0/management/types/update_risk_assessments_settings_new_device_response_content.py deleted file mode 100644 index 915b0c0c..00000000 --- a/src/auth0/management/types/update_risk_assessments_settings_new_device_response_content.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class UpdateRiskAssessmentsSettingsNewDeviceResponseContent(UniversalBaseModel): - remember_for: int = pydantic.Field() - """ - Length of time to remember devices for, in days. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_risk_assessments_settings_response_content.py b/src/auth0/management/types/update_risk_assessments_settings_response_content.py deleted file mode 100644 index 5f68ff97..00000000 --- a/src/auth0/management/types/update_risk_assessments_settings_response_content.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class UpdateRiskAssessmentsSettingsResponseContent(UniversalBaseModel): - enabled: bool = pydantic.Field() - """ - Whether or not risk assessment is enabled. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_role_response_content.py b/src/auth0/management/types/update_role_response_content.py deleted file mode 100644 index eca3708e..00000000 --- a/src/auth0/management/types/update_role_response_content.py +++ /dev/null @@ -1,37 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .role_owner_id import RoleOwnerId -from .role_type_enum import RoleTypeEnum - - -class UpdateRoleResponseContent(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID for this role. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of this role. - """ - - description: typing.Optional[str] = pydantic.Field(default=None) - """ - Description of this role. - """ - - type: typing.Optional[RoleTypeEnum] = None - owner_id: typing.Optional[RoleOwnerId] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_rule_response_content.py b/src/auth0/management/types/update_rule_response_content.py deleted file mode 100644 index 58cfc5b0..00000000 --- a/src/auth0/management/types/update_rule_response_content.py +++ /dev/null @@ -1,47 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class UpdateRuleResponseContent(UniversalBaseModel): - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of this rule. - """ - - id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of this rule. - """ - - enabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether the rule is enabled (true), or disabled (false). - """ - - script: typing.Optional[str] = pydantic.Field(default=None) - """ - Code to be executed when this rule runs. - """ - - order: typing.Optional[float] = pydantic.Field(default=None) - """ - Order that this rule should execute in relative to other rules. Lower-valued rules execute first. - """ - - stage: typing.Optional[str] = pydantic.Field(default=None) - """ - Execution stage of this rule. Can be `login_success`, `login_failure`, or `pre_authorize`. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_scim_configuration_response_content.py b/src/auth0/management/types/update_scim_configuration_response_content.py deleted file mode 100644 index 18308218..00000000 --- a/src/auth0/management/types/update_scim_configuration_response_content.py +++ /dev/null @@ -1,59 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .scim_mapping_item import ScimMappingItem - - -class UpdateScimConfigurationResponseContent(UniversalBaseModel): - connection_id: str = pydantic.Field() - """ - The connection's identifier - """ - - connection_name: str = pydantic.Field() - """ - The connection's name - """ - - strategy: str = pydantic.Field() - """ - The connection's strategy - """ - - tenant_name: str = pydantic.Field() - """ - The tenant's name - """ - - user_id_attribute: str = pydantic.Field() - """ - User ID attribute for generating unique user ids - """ - - mapping: typing.List[ScimMappingItem] = pydantic.Field() - """ - The mapping between auth0 and SCIM - """ - - created_at: dt.datetime = pydantic.Field() - """ - The ISO 8601 date and time the SCIM configuration was created at - """ - - updated_on: dt.datetime = pydantic.Field() - """ - The ISO 8601 date and time the SCIM configuration was last updated on - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_segment_response_content.py b/src/auth0/management/types/update_segment_response_content.py deleted file mode 100644 index f498c118..00000000 --- a/src/auth0/management/types/update_segment_response_content.py +++ /dev/null @@ -1,30 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .segment_rule import SegmentRule -from .segment_status_enum import SegmentStatusEnum -from .segment_type_enum import SegmentTypeEnum - - -class UpdateSegmentResponseContent(UniversalBaseModel): - id: str - name: str - description: typing.Optional[str] = None - type: SegmentTypeEnum - status: SegmentStatusEnum - rules: typing.List[SegmentRule] - created_at: dt.datetime - updated_at: dt.datetime - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_self_service_profile_response_content.py b/src/auth0/management/types/update_self_service_profile_response_content.py deleted file mode 100644 index d9e83214..00000000 --- a/src/auth0/management/types/update_self_service_profile_response_content.py +++ /dev/null @@ -1,64 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .self_service_profile_allowed_strategy_enum import SelfServiceProfileAllowedStrategyEnum -from .self_service_profile_branding_properties import SelfServiceProfileBrandingProperties -from .self_service_profile_user_attribute import SelfServiceProfileUserAttribute - - -class UpdateSelfServiceProfileResponseContent(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - The unique ID of the self-service Profile. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The name of the self-service Profile. - """ - - description: typing.Optional[str] = pydantic.Field(default=None) - """ - The description of the self-service Profile. - """ - - user_attributes: typing.Optional[typing.List[SelfServiceProfileUserAttribute]] = pydantic.Field(default=None) - """ - List of attributes to be mapped that will be shown to the user during the Self-Service Enterprise Configuration flow. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The time when this self-service Profile was created. - """ - - updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The time when this self-service Profile was updated. - """ - - branding: typing.Optional[SelfServiceProfileBrandingProperties] = None - allowed_strategies: typing.Optional[typing.List[SelfServiceProfileAllowedStrategyEnum]] = pydantic.Field( - default=None - ) - """ - List of IdP strategies that will be shown to users during the Self-Service Enterprise Configuration flow. Possible values: [`oidc`, `samlp`, `waad`, `google-apps`, `adfs`, `okta`, `auth0-samlp`, `okta-samlp`, `keycloak-samlp`, `pingfederate`] - """ - - user_attribute_profile_id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of the user-attribute-profile to associate with this self-service profile. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_session_response_content.py b/src/auth0/management/types/update_session_response_content.py deleted file mode 100644 index 11341250..00000000 --- a/src/auth0/management/types/update_session_response_content.py +++ /dev/null @@ -1,51 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .session_actor_metadata import SessionActorMetadata -from .session_authentication_signals import SessionAuthenticationSignals -from .session_client_metadata import SessionClientMetadata -from .session_cookie_metadata import SessionCookieMetadata -from .session_date import SessionDate -from .session_device_metadata import SessionDeviceMetadata -from .session_metadata import SessionMetadata - - -class UpdateSessionResponseContent(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - The ID of the session - """ - - user_id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of the user which can be used when interacting with other APIs. - """ - - created_at: typing.Optional[SessionDate] = None - updated_at: typing.Optional[SessionDate] = None - authenticated_at: typing.Optional[SessionDate] = None - idle_expires_at: typing.Optional[SessionDate] = None - expires_at: typing.Optional[SessionDate] = None - last_interacted_at: typing.Optional[SessionDate] = None - device: typing.Optional[SessionDeviceMetadata] = None - clients: typing.Optional[typing.List[SessionClientMetadata]] = pydantic.Field(default=None) - """ - List of client details for the session - """ - - authentication: typing.Optional[SessionAuthenticationSignals] = None - cookie: typing.Optional[SessionCookieMetadata] = None - session_metadata: typing.Optional[SessionMetadata] = None - actor: typing.Optional[SessionActorMetadata] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_settings_response_content.py b/src/auth0/management/types/update_settings_response_content.py deleted file mode 100644 index a314f1a2..00000000 --- a/src/auth0/management/types/update_settings_response_content.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .universal_login_experience_enum import UniversalLoginExperienceEnum - - -class UpdateSettingsResponseContent(UniversalBaseModel): - universal_login_experience: typing.Optional[UniversalLoginExperienceEnum] = None - identifier_first: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether identifier first is enabled or not - """ - - webauthn_platform_first_factor: typing.Optional[bool] = pydantic.Field(default=None) - """ - Use WebAuthn with Device Biometrics as the first authentication factor - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_suspicious_ip_throttling_settings_response_content.py b/src/auth0/management/types/update_suspicious_ip_throttling_settings_response_content.py deleted file mode 100644 index c3c961ec..00000000 --- a/src/auth0/management/types/update_suspicious_ip_throttling_settings_response_content.py +++ /dev/null @@ -1,34 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .suspicious_ip_throttling_allowlist import SuspiciousIpThrottlingAllowlist -from .suspicious_ip_throttling_shields_enum import SuspiciousIpThrottlingShieldsEnum -from .suspicious_ip_throttling_stage import SuspiciousIpThrottlingStage - - -class UpdateSuspiciousIpThrottlingSettingsResponseContent(UniversalBaseModel): - enabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether or not suspicious IP throttling attack protections are active. - """ - - shields: typing.Optional[typing.List[SuspiciousIpThrottlingShieldsEnum]] = pydantic.Field(default=None) - """ - Action to take when a suspicious IP throttling threshold is violated. - Possible values: block, admin_notification. - """ - - allowlist: typing.Optional[SuspiciousIpThrottlingAllowlist] = None - stage: typing.Optional[SuspiciousIpThrottlingStage] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_tenant_settings_response_content.py b/src/auth0/management/types/update_tenant_settings_response_content.py deleted file mode 100644 index fa5b3869..00000000 --- a/src/auth0/management/types/update_tenant_settings_response_content.py +++ /dev/null @@ -1,195 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .default_token_quota import DefaultTokenQuota -from .resource_server_access_token import ResourceServerAccessToken -from .session_cookie_schema import SessionCookieSchema -from .supported_locales import SupportedLocales -from .tenant_oidc_logout_settings import TenantOidcLogoutSettings -from .tenant_settings_country_codes_response import TenantSettingsCountryCodesResponse -from .tenant_settings_device_flow import TenantSettingsDeviceFlow -from .tenant_settings_dynamic_client_registration_security_mode import ( - TenantSettingsDynamicClientRegistrationSecurityMode, -) -from .tenant_settings_error_page import TenantSettingsErrorPage -from .tenant_settings_flags import TenantSettingsFlags -from .tenant_settings_guardian_page import TenantSettingsGuardianPage -from .tenant_settings_mtls import TenantSettingsMtls -from .tenant_settings_nullable_security_headers import TenantSettingsNullableSecurityHeaders -from .tenant_settings_password_page import TenantSettingsPasswordPage -from .tenant_settings_resource_parameter_profile import TenantSettingsResourceParameterProfile -from .tenant_settings_sessions import TenantSettingsSessions - - -class UpdateTenantSettingsResponseContent(UniversalBaseModel): - change_password: typing.Optional[TenantSettingsPasswordPage] = None - guardian_mfa_page: typing.Optional[TenantSettingsGuardianPage] = None - default_audience: typing.Optional[str] = pydantic.Field(default=None) - """ - Default audience for API authorization. - """ - - default_directory: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of connection used for password grants at the `/token`endpoint. The following connection types are supported: LDAP, AD, Database Connections, Passwordless, Windows Azure Active Directory, ADFS. - """ - - error_page: typing.Optional[TenantSettingsErrorPage] = None - device_flow: typing.Optional[TenantSettingsDeviceFlow] = None - default_token_quota: typing.Optional[DefaultTokenQuota] = None - flags: typing.Optional[TenantSettingsFlags] = None - friendly_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Friendly name for this tenant. - """ - - picture_url: typing.Optional[str] = pydantic.Field(default=None) - """ - URL of logo to be shown for this tenant (recommended size: 150x150) - """ - - support_email: typing.Optional[str] = pydantic.Field(default=None) - """ - End-user support email address. - """ - - support_url: typing.Optional[str] = pydantic.Field(default=None) - """ - End-user support URL. - """ - - allowed_logout_urls: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - URLs that are valid to redirect to after logout from Auth0. - """ - - session_lifetime: typing.Optional[float] = pydantic.Field(default=None) - """ - Number of hours a session will stay valid. - """ - - idle_session_lifetime: typing.Optional[float] = pydantic.Field(default=None) - """ - Number of hours for which a session can be inactive before the user must log in again. - """ - - ephemeral_session_lifetime: typing.Optional[float] = pydantic.Field(default=None) - """ - Number of hours an ephemeral (non-persistent) session will stay valid. - """ - - idle_ephemeral_session_lifetime: typing.Optional[float] = pydantic.Field(default=None) - """ - Number of hours for which an ephemeral (non-persistent) session can be inactive before the user must log in again. - """ - - sandbox_version: typing.Optional[str] = pydantic.Field(default=None) - """ - Selected sandbox version for the extensibility environment. - """ - - legacy_sandbox_version: typing.Optional[str] = pydantic.Field(default=None) - """ - Selected sandbox version for rules and hooks extensibility. - """ - - sandbox_versions_available: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Available sandbox versions for the extensibility environment. - """ - - default_redirection_uri: typing.Optional[str] = pydantic.Field(default=None) - """ - The default absolute redirection uri, must be https - """ - - enabled_locales: typing.Optional[typing.List[SupportedLocales]] = pydantic.Field(default=None) - """ - Supported locales for the user interface. - """ - - access_token: typing.Optional[ResourceServerAccessToken] = None - security_headers: typing.Optional[TenantSettingsNullableSecurityHeaders] = None - session_cookie: typing.Optional[SessionCookieSchema] = None - sessions: typing.Optional[TenantSettingsSessions] = None - oidc_logout: typing.Optional[TenantOidcLogoutSettings] = None - allow_organization_name_in_authentication_api: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether to accept an organization name instead of an ID on auth endpoints - """ - - customize_mfa_in_postlogin_action: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether to enable flexible factors for MFA in the PostLogin action - """ - - acr_values_supported: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Supported ACR values - """ - - mtls: typing.Optional[TenantSettingsMtls] = None - pushed_authorization_requests_supported: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables the use of Pushed Authorization Requests - """ - - authorization_response_iss_parameter_supported: typing.Optional[bool] = pydantic.Field(default=None) - """ - Supports iss parameter in authorization responses - """ - - dpop_strict_refresh_token_binding: typing.Optional[bool] = pydantic.Field(default=None) - """ - Enables strict DPoP refresh token binding per RFC 9449: all refresh tokens issued to public clients that present a DPoP proof are bound to the sender's key, and the binding is validated on every subsequent exchange. When disabled, DPoP refresh token binding may still apply for specific audiences for backwards compatibility. - """ - - skip_non_verifiable_callback_uri_confirmation_prompt: typing.Optional[bool] = pydantic.Field(default=None) - """ - Controls whether a confirmation prompt is shown during login flows when the redirect URI uses non-verifiable callback URIs (for example, a custom URI schema such as `myapp://`, or `localhost`). - If set to true, a confirmation prompt will not be shown. We recommend that this is set to false for improved protection from malicious apps. - See https://auth0.com/docs/secure/security-guidance/measures-against-app-impersonation for more information. - """ - - resource_parameter_profile: typing.Optional[TenantSettingsResourceParameterProfile] = None - client_id_metadata_document_supported: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether the authorization server supports retrieving client metadata from a client_id URL. - """ - - client_id_metadata_document_dynamic_registration_supported: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether the authorization server supports registering clients dynamically from a client_id URL. Requires client_id_metadata_document_supported to be enabled. - """ - - phone_consolidated_experience: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether Phone Consolidated Experience is enabled for this tenant. - """ - - enable_ai_guide: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether Auth0 Guide (AI-powered assistance) is enabled for this tenant. - """ - - include_session_metadata_in_tenant_logs: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether session metadata is included in specific tenant logs (slo, oidc_backchannel_logout_failed, oidc_backchannel_logout_succeeded). - """ - - dynamic_client_registration_security_mode: typing.Optional[TenantSettingsDynamicClientRegistrationSecurityMode] = ( - None - ) - country_codes: typing.Optional[TenantSettingsCountryCodesResponse] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_token_quota.py b/src/auth0/management/types/update_token_quota.py deleted file mode 100644 index 5fdedbf6..00000000 --- a/src/auth0/management/types/update_token_quota.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .token_quota_client_credentials import TokenQuotaClientCredentials - - -class UpdateTokenQuota(UniversalBaseModel): - client_credentials: TokenQuotaClientCredentials - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_universal_login_template_request_content.py b/src/auth0/management/types/update_universal_login_template_request_content.py deleted file mode 100644 index d9555f3d..00000000 --- a/src/auth0/management/types/update_universal_login_template_request_content.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .update_universal_login_template_request_content_template import UpdateUniversalLoginTemplateRequestContentTemplate - -UpdateUniversalLoginTemplateRequestContent = typing.Union[str, UpdateUniversalLoginTemplateRequestContentTemplate] diff --git a/src/auth0/management/types/update_universal_login_template_request_content_template.py b/src/auth0/management/types/update_universal_login_template_request_content_template.py deleted file mode 100644 index 3b739b24..00000000 --- a/src/auth0/management/types/update_universal_login_template_request_content_template.py +++ /dev/null @@ -1,19 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class UpdateUniversalLoginTemplateRequestContentTemplate(UniversalBaseModel): - template: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_user_attribute_profile_response_content.py b/src/auth0/management/types/update_user_attribute_profile_response_content.py deleted file mode 100644 index 13ed794b..00000000 --- a/src/auth0/management/types/update_user_attribute_profile_response_content.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .user_attribute_profile_id import UserAttributeProfileId -from .user_attribute_profile_name import UserAttributeProfileName -from .user_attribute_profile_user_attributes import UserAttributeProfileUserAttributes -from .user_attribute_profile_user_id import UserAttributeProfileUserId - - -class UpdateUserAttributeProfileResponseContent(UniversalBaseModel): - id: typing.Optional[UserAttributeProfileId] = None - name: typing.Optional[UserAttributeProfileName] = None - user_id: typing.Optional[UserAttributeProfileUserId] = None - user_attributes: typing.Optional[UserAttributeProfileUserAttributes] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_user_authentication_method_response_content.py b/src/auth0/management/types/update_user_authentication_method_response_content.py deleted file mode 100644 index 8c351bb7..00000000 --- a/src/auth0/management/types/update_user_authentication_method_response_content.py +++ /dev/null @@ -1,83 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .created_authentication_method_type_enum import CreatedAuthenticationMethodTypeEnum -from .preferred_authentication_method_enum import PreferredAuthenticationMethodEnum -from .user_authentication_method_properties import UserAuthenticationMethodProperties - - -class UpdateUserAuthenticationMethodResponseContent(UniversalBaseModel): - """ - The successfully created authentication method. - """ - - id: typing.Optional[str] = pydantic.Field(default=None) - """ - The ID of the newly created authentication method (automatically generated by the application) - """ - - type: CreatedAuthenticationMethodTypeEnum - name: typing.Optional[str] = pydantic.Field(default=None) - """ - A human-readable label to identify the authentication method. - """ - - totp_secret: typing.Optional[str] = pydantic.Field(default=None) - """ - Base32 encoded secret for TOTP generation - """ - - phone_number: typing.Optional[str] = pydantic.Field(default=None) - """ - Applies to phone authentication methods only. The destination phone number used to send verification codes via text and voice. - """ - - email: typing.Optional[str] = pydantic.Field(default=None) - """ - Applies to email authentication methods only. The email address used to send verification messages. - """ - - authentication_methods: typing.Optional[typing.List[UserAuthenticationMethodProperties]] = None - preferred_authentication_method: typing.Optional[PreferredAuthenticationMethodEnum] = None - key_id: typing.Optional[str] = pydantic.Field(default=None) - """ - Applies to webauthn authentication methods only. The id of the credential. - """ - - public_key: typing.Optional[str] = pydantic.Field(default=None) - """ - Applies to webauthn authentication methods only. The public key. - """ - - aaguid: typing.Optional[str] = pydantic.Field(default=None) - """ - Applies to passkey authentication methods only. Authenticator Attestation Globally Unique Identifier. - """ - - relying_party_identifier: typing.Optional[str] = pydantic.Field(default=None) - """ - Applies to webauthn authentication methods only. The relying party identifier. - """ - - confirmed: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether the authentication method has been confirmed. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Authentication method creation date - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_user_response_content.py b/src/auth0/management/types/update_user_response_content.py deleted file mode 100644 index 57901fe3..00000000 --- a/src/auth0/management/types/update_user_response_content.py +++ /dev/null @@ -1,128 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .user_app_metadata_schema import UserAppMetadataSchema -from .user_identity_schema import UserIdentitySchema -from .user_metadata_schema import UserMetadataSchema - - -class UpdateUserResponseContent(UniversalBaseModel): - user_id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of the user which can be used when interacting with other APIs. - """ - - email: typing.Optional[str] = pydantic.Field(default=None) - """ - Email address of this user. - """ - - email_verified: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this email address is verified (true) or unverified (false). - """ - - username: typing.Optional[str] = pydantic.Field(default=None) - """ - Username of this user. - """ - - phone_number: typing.Optional[str] = pydantic.Field(default=None) - """ - Phone number for this user. Follows the E.164 recommendation. - """ - - phone_verified: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this phone number has been verified (true) or not (false). - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Date and time when this user was created. - """ - - updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Date and time when this user was last updated/modified. - """ - - identities: typing.Optional[typing.List[UserIdentitySchema]] = pydantic.Field(default=None) - """ - Array of user identity objects when accounts are linked. - """ - - app_metadata: typing.Optional[UserAppMetadataSchema] = None - user_metadata: typing.Optional[UserMetadataSchema] = None - picture: typing.Optional[str] = pydantic.Field(default=None) - """ - URL to picture, photo, or avatar of this user. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of this user. - """ - - nickname: typing.Optional[str] = pydantic.Field(default=None) - """ - Preferred nickname or alias of this user. - """ - - multifactor: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - List of multi-factor authentication providers with which this user has enrolled. - """ - - multifactor_last_modified: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Last date and time this user's multi-factor authentication providers were updated. - """ - - last_ip: typing.Optional[str] = pydantic.Field(default=None) - """ - Last IP address from which this user logged in. - """ - - last_login: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Last date and time this user logged in. - """ - - last_password_reset: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Last date and time this user had their password reset. - """ - - logins_count: typing.Optional[int] = pydantic.Field(default=None) - """ - Total number of logins this user has performed. - """ - - blocked: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this user was blocked by an administrator (true) or is not (false). - """ - - given_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Given name/first name/forename of this user. - """ - - family_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Family name/last name/surname of this user. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_variation_overrides_map.py b/src/auth0/management/types/update_variation_overrides_map.py deleted file mode 100644 index 0e202ae3..00000000 --- a/src/auth0/management/types/update_variation_overrides_map.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -UpdateVariationOverridesMap = typing.Optional[typing.Dict[str, typing.Any]] -""" -Top-level keys merge into the stored overrides. Set a key to `null` to remove it. Set `overrides` to `null` or `{}` to clear all. Keys must exist in the parent flag parameters. -""" diff --git a/src/auth0/management/types/update_variation_response_content.py b/src/auth0/management/types/update_variation_response_content.py deleted file mode 100644 index 08e9cb40..00000000 --- a/src/auth0/management/types/update_variation_response_content.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .variation_overrides_map import VariationOverridesMap - - -class UpdateVariationResponseContent(UniversalBaseModel): - id: str - feature_flag_id: str - name: str - description: typing.Optional[str] = None - overrides: VariationOverridesMap - created_at: dt.datetime - updated_at: dt.datetime - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/update_verifiable_credential_template_response_content.py b/src/auth0/management/types/update_verifiable_credential_template_response_content.py deleted file mode 100644 index d14ab11a..00000000 --- a/src/auth0/management/types/update_verifiable_credential_template_response_content.py +++ /dev/null @@ -1,60 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .mdl_presentation_request import MdlPresentationRequest - - -class UpdateVerifiableCredentialTemplateResponseContent(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - The id of the template. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The name of the template. - """ - - type: typing.Optional[str] = pydantic.Field(default=None) - """ - The type of the template. - """ - - dialect: typing.Optional[str] = pydantic.Field(default=None) - """ - The dialect of the template. - """ - - presentation: typing.Optional[MdlPresentationRequest] = None - custom_certificate_authority: typing.Optional[str] = pydantic.Field(default=None) - """ - The custom certificate authority. - """ - - well_known_trusted_issuers: typing.Optional[str] = pydantic.Field(default=None) - """ - The well-known trusted issuers, comma separated. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The date and time the template was created. - """ - - updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The date and time the template was created. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/user_app_metadata_schema.py b/src/auth0/management/types/user_app_metadata_schema.py deleted file mode 100644 index ce82ead6..00000000 --- a/src/auth0/management/types/user_app_metadata_schema.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -UserAppMetadataSchema = typing.Dict[str, typing.Any] -""" -User metadata to which this user has read-only access. -""" diff --git a/src/auth0/management/types/user_attribute_profile.py b/src/auth0/management/types/user_attribute_profile.py deleted file mode 100644 index 9e8079e4..00000000 --- a/src/auth0/management/types/user_attribute_profile.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .user_attribute_profile_id import UserAttributeProfileId -from .user_attribute_profile_name import UserAttributeProfileName -from .user_attribute_profile_user_attributes import UserAttributeProfileUserAttributes -from .user_attribute_profile_user_id import UserAttributeProfileUserId - - -class UserAttributeProfile(UniversalBaseModel): - id: typing.Optional[UserAttributeProfileId] = None - name: typing.Optional[UserAttributeProfileName] = None - user_id: typing.Optional[UserAttributeProfileUserId] = None - user_attributes: typing.Optional[UserAttributeProfileUserAttributes] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/user_attribute_profile_id.py b/src/auth0/management/types/user_attribute_profile_id.py deleted file mode 100644 index 6ee253ec..00000000 --- a/src/auth0/management/types/user_attribute_profile_id.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -UserAttributeProfileId = str -""" -User Attribute Profile identifier. -""" diff --git a/src/auth0/management/types/user_attribute_profile_name.py b/src/auth0/management/types/user_attribute_profile_name.py deleted file mode 100644 index a1a630ec..00000000 --- a/src/auth0/management/types/user_attribute_profile_name.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -UserAttributeProfileName = str -""" -The name of the user attribute profile. -""" diff --git a/src/auth0/management/types/user_attribute_profile_oidc_mapping.py b/src/auth0/management/types/user_attribute_profile_oidc_mapping.py deleted file mode 100644 index b676c7e0..00000000 --- a/src/auth0/management/types/user_attribute_profile_oidc_mapping.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class UserAttributeProfileOidcMapping(UniversalBaseModel): - """ - OIDC mapping for this attribute - """ - - mapping: str = pydantic.Field() - """ - OIDC mapping field - """ - - display_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Display name for the OIDC mapping - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/user_attribute_profile_patch_user_id.py b/src/auth0/management/types/user_attribute_profile_patch_user_id.py deleted file mode 100644 index b6e87b47..00000000 --- a/src/auth0/management/types/user_attribute_profile_patch_user_id.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .user_attribute_profile_user_id import UserAttributeProfileUserId - -UserAttributeProfilePatchUserId = typing.Optional[UserAttributeProfileUserId] diff --git a/src/auth0/management/types/user_attribute_profile_saml_mapping.py b/src/auth0/management/types/user_attribute_profile_saml_mapping.py deleted file mode 100644 index 7e03a6a0..00000000 --- a/src/auth0/management/types/user_attribute_profile_saml_mapping.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -UserAttributeProfileSamlMapping = typing.List[str] -""" -SAML mapping override for this strategy -""" diff --git a/src/auth0/management/types/user_attribute_profile_strategy_overrides.py b/src/auth0/management/types/user_attribute_profile_strategy_overrides.py deleted file mode 100644 index 3062df87..00000000 --- a/src/auth0/management/types/user_attribute_profile_strategy_overrides.py +++ /dev/null @@ -1,37 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .user_attribute_profile_strategy_overrides_mapping import UserAttributeProfileStrategyOverridesMapping - - -class UserAttributeProfileStrategyOverrides(UniversalBaseModel): - """ - Strategy-specific overrides for this attribute - """ - - pingfederate: typing.Optional[UserAttributeProfileStrategyOverridesMapping] = None - ad: typing.Optional[UserAttributeProfileStrategyOverridesMapping] = None - adfs: typing.Optional[UserAttributeProfileStrategyOverridesMapping] = None - waad: typing.Optional[UserAttributeProfileStrategyOverridesMapping] = None - google_apps: typing_extensions.Annotated[ - typing.Optional[UserAttributeProfileStrategyOverridesMapping], - FieldMetadata(alias="google-apps"), - pydantic.Field(alias="google-apps"), - ] = None - okta: typing.Optional[UserAttributeProfileStrategyOverridesMapping] = None - oidc: typing.Optional[UserAttributeProfileStrategyOverridesMapping] = None - samlp: typing.Optional[UserAttributeProfileStrategyOverridesMapping] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/user_attribute_profile_strategy_overrides_mapping.py b/src/auth0/management/types/user_attribute_profile_strategy_overrides_mapping.py deleted file mode 100644 index 2e7cdeb0..00000000 --- a/src/auth0/management/types/user_attribute_profile_strategy_overrides_mapping.py +++ /dev/null @@ -1,30 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .user_attribute_profile_oidc_mapping import UserAttributeProfileOidcMapping -from .user_attribute_profile_saml_mapping import UserAttributeProfileSamlMapping - - -class UserAttributeProfileStrategyOverridesMapping(UniversalBaseModel): - oidc_mapping: typing.Optional[UserAttributeProfileOidcMapping] = pydantic.Field(default=None) - """ - OIDC mapping override for this strategy - """ - - saml_mapping: typing.Optional[UserAttributeProfileSamlMapping] = None - scim_mapping: typing.Optional[str] = pydantic.Field(default=None) - """ - SCIM mapping override for this strategy - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/user_attribute_profile_strategy_overrides_user_id.py b/src/auth0/management/types/user_attribute_profile_strategy_overrides_user_id.py deleted file mode 100644 index 606f0a15..00000000 --- a/src/auth0/management/types/user_attribute_profile_strategy_overrides_user_id.py +++ /dev/null @@ -1,39 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .user_attribute_profile_strategy_overrides_user_id_mapping import ( - UserAttributeProfileStrategyOverridesUserIdMapping, -) - - -class UserAttributeProfileStrategyOverridesUserId(UniversalBaseModel): - """ - Strategy-specific overrides for user ID - """ - - pingfederate: typing.Optional[UserAttributeProfileStrategyOverridesUserIdMapping] = None - ad: typing.Optional[UserAttributeProfileStrategyOverridesUserIdMapping] = None - adfs: typing.Optional[UserAttributeProfileStrategyOverridesUserIdMapping] = None - waad: typing.Optional[UserAttributeProfileStrategyOverridesUserIdMapping] = None - google_apps: typing_extensions.Annotated[ - typing.Optional[UserAttributeProfileStrategyOverridesUserIdMapping], - FieldMetadata(alias="google-apps"), - pydantic.Field(alias="google-apps"), - ] = None - okta: typing.Optional[UserAttributeProfileStrategyOverridesUserIdMapping] = None - oidc: typing.Optional[UserAttributeProfileStrategyOverridesUserIdMapping] = None - samlp: typing.Optional[UserAttributeProfileStrategyOverridesUserIdMapping] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/user_attribute_profile_strategy_overrides_user_id_mapping.py b/src/auth0/management/types/user_attribute_profile_strategy_overrides_user_id_mapping.py deleted file mode 100644 index cf032267..00000000 --- a/src/auth0/management/types/user_attribute_profile_strategy_overrides_user_id_mapping.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .user_attribute_profile_saml_mapping import UserAttributeProfileSamlMapping -from .user_attribute_profile_user_id_oidc_strategy_override_mapping import ( - UserAttributeProfileUserIdOidcStrategyOverrideMapping, -) - - -class UserAttributeProfileStrategyOverridesUserIdMapping(UniversalBaseModel): - oidc_mapping: typing.Optional[UserAttributeProfileUserIdOidcStrategyOverrideMapping] = None - saml_mapping: typing.Optional[UserAttributeProfileSamlMapping] = None - scim_mapping: typing.Optional[str] = pydantic.Field(default=None) - """ - SCIM mapping override for this strategy - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/user_attribute_profile_template.py b/src/auth0/management/types/user_attribute_profile_template.py deleted file mode 100644 index 47905255..00000000 --- a/src/auth0/management/types/user_attribute_profile_template.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .user_attribute_profile_name import UserAttributeProfileName -from .user_attribute_profile_user_attributes import UserAttributeProfileUserAttributes -from .user_attribute_profile_user_id import UserAttributeProfileUserId - - -class UserAttributeProfileTemplate(UniversalBaseModel): - """ - The structure of the template, which can be used as the payload for creating or updating a User Attribute Profile. - """ - - name: typing.Optional[UserAttributeProfileName] = None - user_id: typing.Optional[UserAttributeProfileUserId] = None - user_attributes: typing.Optional[UserAttributeProfileUserAttributes] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/user_attribute_profile_template_item.py b/src/auth0/management/types/user_attribute_profile_template_item.py deleted file mode 100644 index d89c0e35..00000000 --- a/src/auth0/management/types/user_attribute_profile_template_item.py +++ /dev/null @@ -1,30 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .user_attribute_profile_template import UserAttributeProfileTemplate - - -class UserAttributeProfileTemplateItem(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - The id of the template. - """ - - display_name: typing.Optional[str] = pydantic.Field(default=None) - """ - The user-friendly name of the template displayed in the UI. - """ - - template: typing.Optional[UserAttributeProfileTemplate] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/user_attribute_profile_user_attribute_additional_properties.py b/src/auth0/management/types/user_attribute_profile_user_attribute_additional_properties.py deleted file mode 100644 index 34604117..00000000 --- a/src/auth0/management/types/user_attribute_profile_user_attribute_additional_properties.py +++ /dev/null @@ -1,59 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .user_attribute_profile_oidc_mapping import UserAttributeProfileOidcMapping -from .user_attribute_profile_saml_mapping import UserAttributeProfileSamlMapping -from .user_attribute_profile_strategy_overrides import UserAttributeProfileStrategyOverrides - - -class UserAttributeProfileUserAttributeAdditionalProperties(UniversalBaseModel): - description: str = pydantic.Field() - """ - Description of this attribute - """ - - label: str = pydantic.Field() - """ - Display label for this attribute - """ - - profile_required: bool = pydantic.Field() - """ - Whether this attribute is required in the profile - """ - - auth_0_mapping: typing_extensions.Annotated[ - str, - FieldMetadata(alias="auth0_mapping"), - pydantic.Field(alias="auth0_mapping", description="Auth0 mapping for this attribute"), - ] - """ - Auth0 mapping for this attribute - """ - - oidc_mapping: typing.Optional[UserAttributeProfileOidcMapping] = None - saml_mapping: typing.Optional[UserAttributeProfileSamlMapping] = pydantic.Field(default=None) - """ - SAML mapping for this attribute - """ - - scim_mapping: typing.Optional[str] = pydantic.Field(default=None) - """ - SCIM mapping for this attribute - """ - - strategy_overrides: typing.Optional[UserAttributeProfileStrategyOverrides] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/user_attribute_profile_user_attributes.py b/src/auth0/management/types/user_attribute_profile_user_attributes.py deleted file mode 100644 index 21e23ba3..00000000 --- a/src/auth0/management/types/user_attribute_profile_user_attributes.py +++ /dev/null @@ -1,12 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .user_attribute_profile_user_attribute_additional_properties import ( - UserAttributeProfileUserAttributeAdditionalProperties, -) - -UserAttributeProfileUserAttributes = typing.Dict[str, UserAttributeProfileUserAttributeAdditionalProperties] -""" -User attributes configuration map. Keys are attribute names, values are the mapping configuration for each attribute. -""" diff --git a/src/auth0/management/types/user_attribute_profile_user_id.py b/src/auth0/management/types/user_attribute_profile_user_id.py deleted file mode 100644 index bdaad750..00000000 --- a/src/auth0/management/types/user_attribute_profile_user_id.py +++ /dev/null @@ -1,33 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .user_attribute_profile_strategy_overrides_user_id import UserAttributeProfileStrategyOverridesUserId -from .user_attribute_profile_user_id_oidc_mapping_enum import UserAttributeProfileUserIdOidcMappingEnum -from .user_attribute_profile_user_id_saml_mapping import UserAttributeProfileUserIdSamlMapping - - -class UserAttributeProfileUserId(UniversalBaseModel): - """ - User ID mapping configuration - """ - - oidc_mapping: typing.Optional[UserAttributeProfileUserIdOidcMappingEnum] = None - saml_mapping: typing.Optional[UserAttributeProfileUserIdSamlMapping] = None - scim_mapping: typing.Optional[str] = pydantic.Field(default=None) - """ - SCIM mapping for user ID - """ - - strategy_overrides: typing.Optional[UserAttributeProfileStrategyOverridesUserId] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/user_attribute_profile_user_id_oidc_mapping_enum.py b/src/auth0/management/types/user_attribute_profile_user_id_oidc_mapping_enum.py deleted file mode 100644 index 344db07b..00000000 --- a/src/auth0/management/types/user_attribute_profile_user_id_oidc_mapping_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -UserAttributeProfileUserIdOidcMappingEnum = typing.Union[typing.Literal["sub"], typing.Any] diff --git a/src/auth0/management/types/user_attribute_profile_user_id_oidc_strategy_override_mapping.py b/src/auth0/management/types/user_attribute_profile_user_id_oidc_strategy_override_mapping.py deleted file mode 100644 index fa0b7b07..00000000 --- a/src/auth0/management/types/user_attribute_profile_user_id_oidc_strategy_override_mapping.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -UserAttributeProfileUserIdOidcStrategyOverrideMapping = typing.Union[typing.Literal["sub", "oid", "email"], typing.Any] diff --git a/src/auth0/management/types/user_attribute_profile_user_id_saml_mapping.py b/src/auth0/management/types/user_attribute_profile_user_id_saml_mapping.py deleted file mode 100644 index ee133a86..00000000 --- a/src/auth0/management/types/user_attribute_profile_user_id_saml_mapping.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -UserAttributeProfileUserIdSamlMapping = typing.List[str] -""" -SAML mapping for user ID -""" diff --git a/src/auth0/management/types/user_authentication_method.py b/src/auth0/management/types/user_authentication_method.py deleted file mode 100644 index 29a4620c..00000000 --- a/src/auth0/management/types/user_authentication_method.py +++ /dev/null @@ -1,119 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .authentication_method_type_enum import AuthenticationMethodTypeEnum -from .preferred_authentication_method_enum import PreferredAuthenticationMethodEnum -from .user_authentication_method_properties import UserAuthenticationMethodProperties - - -class UserAuthenticationMethod(UniversalBaseModel): - id: str = pydantic.Field() - """ - The ID of the authentication method (auto generated) - """ - - type: AuthenticationMethodTypeEnum - confirmed: typing.Optional[bool] = pydantic.Field(default=None) - """ - The authentication method status - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - A human-readable label to identify the authentication method - """ - - authentication_methods: typing.Optional[typing.List[UserAuthenticationMethodProperties]] = None - preferred_authentication_method: typing.Optional[PreferredAuthenticationMethodEnum] = None - link_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The ID of a linked authentication method. Linked authentication methods will be deleted together. - """ - - phone_number: typing.Optional[str] = pydantic.Field(default=None) - """ - Applies to phone authentication methods only. The destination phone number used to send verification codes via text and voice. - """ - - email: typing.Optional[str] = pydantic.Field(default=None) - """ - Applies to email and email-verification authentication methods only. The email address used to send verification messages. - """ - - key_id: typing.Optional[str] = pydantic.Field(default=None) - """ - Applies to webauthn authentication methods only. The ID of the generated credential. - """ - - public_key: typing.Optional[str] = pydantic.Field(default=None) - """ - Applies to webauthn authentication methods only. The public key. - """ - - created_at: dt.datetime = pydantic.Field() - """ - Authenticator creation date - """ - - enrolled_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Enrollment date - """ - - last_auth_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Last authentication - """ - - credential_device_type: typing.Optional[str] = pydantic.Field(default=None) - """ - Applies to passkeys only. The kind of device the credential is stored on as defined by backup eligibility. "single_device" credentials cannot be backed up and synced to another device, "multi_device" credentials can be backed up if enabled by the end-user. - """ - - credential_backed_up: typing.Optional[bool] = pydantic.Field(default=None) - """ - Applies to passkeys only. Whether the credential was backed up. - """ - - identity_user_id: typing.Optional[str] = pydantic.Field(default=None) - """ - Applies to passkeys only. The ID of the user identity linked with the authentication method. - """ - - user_agent: typing.Optional[str] = pydantic.Field(default=None) - """ - Applies to passkeys only. The user-agent of the browser used to create the passkey. - """ - - user_handle: typing.Optional[str] = pydantic.Field(default=None) - """ - Applies to passkeys only. The user handle of the user identity. - """ - - transports: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Applies to passkeys only. The transports used by clients to communicate with the authenticator. - """ - - aaguid: typing.Optional[str] = pydantic.Field(default=None) - """ - Applies to passkey authentication methods only. Authenticator Attestation Globally Unique Identifier. - """ - - relying_party_identifier: typing.Optional[str] = pydantic.Field(default=None) - """ - Applies to webauthn/passkey authentication methods only. The credential's relying party identifier. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/user_authentication_method_properties.py b/src/auth0/management/types/user_authentication_method_properties.py deleted file mode 100644 index 34ebed86..00000000 --- a/src/auth0/management/types/user_authentication_method_properties.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .user_authentication_method_properties_enum import UserAuthenticationMethodPropertiesEnum - - -class UserAuthenticationMethodProperties(UniversalBaseModel): - type: typing.Optional[UserAuthenticationMethodPropertiesEnum] = None - id: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/user_authentication_method_properties_enum.py b/src/auth0/management/types/user_authentication_method_properties_enum.py deleted file mode 100644 index 9def1d50..00000000 --- a/src/auth0/management/types/user_authentication_method_properties_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -UserAuthenticationMethodPropertiesEnum = typing.Union[typing.Literal["totp", "push", "sms", "voice"], typing.Any] diff --git a/src/auth0/management/types/user_block_identifier.py b/src/auth0/management/types/user_block_identifier.py deleted file mode 100644 index 687e0fd1..00000000 --- a/src/auth0/management/types/user_block_identifier.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class UserBlockIdentifier(UniversalBaseModel): - identifier: typing.Optional[str] = pydantic.Field(default=None) - """ - Identifier (should be any of an `email`, `username`, or `phone_number`) - """ - - ip: typing.Optional[str] = pydantic.Field(default=None) - """ - IP Address - """ - - connection: typing.Optional[str] = pydantic.Field(default=None) - """ - Connection identifier - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/user_effective_permission_response_content.py b/src/auth0/management/types/user_effective_permission_response_content.py deleted file mode 100644 index 043d725f..00000000 --- a/src/auth0/management/types/user_effective_permission_response_content.py +++ /dev/null @@ -1,43 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .user_effective_permission_source_enum import UserEffectivePermissionSourceEnum - - -class UserEffectivePermissionResponseContent(UniversalBaseModel): - resource_server_identifier: typing.Optional[str] = pydantic.Field(default=None) - """ - Resource server (API) identifier that this permission is for. - """ - - permission_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of this permission. - """ - - resource_server_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Resource server (API) name this permission is for. - """ - - description: typing.Optional[str] = pydantic.Field(default=None) - """ - Description of this permission. - """ - - sources: typing.Optional[typing.List[UserEffectivePermissionSourceEnum]] = pydantic.Field(default=None) - """ - List of sources where this permission is coming from. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/user_effective_permission_role_source_enum.py b/src/auth0/management/types/user_effective_permission_role_source_enum.py deleted file mode 100644 index 77739ce1..00000000 --- a/src/auth0/management/types/user_effective_permission_role_source_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -UserEffectivePermissionRoleSourceEnum = typing.Union[typing.Literal["direct", "groups"], typing.Any] diff --git a/src/auth0/management/types/user_effective_permission_role_source_response_content.py b/src/auth0/management/types/user_effective_permission_role_source_response_content.py deleted file mode 100644 index e174f7f9..00000000 --- a/src/auth0/management/types/user_effective_permission_role_source_response_content.py +++ /dev/null @@ -1,42 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .role_owner_id import RoleOwnerId -from .role_type_enum import RoleTypeEnum -from .user_effective_permission_role_source_enum import UserEffectivePermissionRoleSourceEnum - - -class UserEffectivePermissionRoleSourceResponseContent(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID for this role. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of this role. - """ - - description: typing.Optional[str] = pydantic.Field(default=None) - """ - Description of this role. - """ - - type: typing.Optional[RoleTypeEnum] = None - owner_id: typing.Optional[RoleOwnerId] = None - sources: typing.Optional[typing.List[UserEffectivePermissionRoleSourceEnum]] = pydantic.Field(default=None) - """ - List of sources where this role is coming from. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/user_effective_permission_source_enum.py b/src/auth0/management/types/user_effective_permission_source_enum.py deleted file mode 100644 index e6e2a0ff..00000000 --- a/src/auth0/management/types/user_effective_permission_source_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -UserEffectivePermissionSourceEnum = typing.Union[typing.Literal["direct", "roles"], typing.Any] diff --git a/src/auth0/management/types/user_effective_role.py b/src/auth0/management/types/user_effective_role.py deleted file mode 100644 index 200c4834..00000000 --- a/src/auth0/management/types/user_effective_role.py +++ /dev/null @@ -1,38 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .user_effective_role_source import UserEffectiveRoleSource - - -class UserEffectiveRole(UniversalBaseModel): - id: str = pydantic.Field() - """ - Role ID - """ - - name: str = pydantic.Field() - """ - Role name - """ - - description: str = pydantic.Field() - """ - Role description - """ - - sources: typing.List[UserEffectiveRoleSource] = pydantic.Field() - """ - Sources of the role assignment (direct or through group membership) - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/user_effective_role_source.py b/src/auth0/management/types/user_effective_role_source.py deleted file mode 100644 index 48dcd602..00000000 --- a/src/auth0/management/types/user_effective_role_source.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -UserEffectiveRoleSource = typing.Union[typing.Literal["direct", "groups"], typing.Any] diff --git a/src/auth0/management/types/user_enrollment_auth_method_enum.py b/src/auth0/management/types/user_enrollment_auth_method_enum.py deleted file mode 100644 index b620d6e2..00000000 --- a/src/auth0/management/types/user_enrollment_auth_method_enum.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -UserEnrollmentAuthMethodEnum = typing.Union[ - typing.Literal["authenticator", "guardian", "sms", "webauthn-platform", "webauthn-roaming"], typing.Any -] diff --git a/src/auth0/management/types/user_enrollment_status_enum.py b/src/auth0/management/types/user_enrollment_status_enum.py deleted file mode 100644 index b8afa334..00000000 --- a/src/auth0/management/types/user_enrollment_status_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -UserEnrollmentStatusEnum = typing.Union[typing.Literal["pending", "confirmed"], typing.Any] diff --git a/src/auth0/management/types/user_grant.py b/src/auth0/management/types/user_grant.py deleted file mode 100644 index 4e59eb2b..00000000 --- a/src/auth0/management/types/user_grant.py +++ /dev/null @@ -1,53 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata - - -class UserGrant(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of the grant. - """ - - client_id: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="clientID"), - pydantic.Field(alias="clientID", description="ID of the client."), - ] = None - """ - ID of the client. - """ - - user_id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of the user. - """ - - audience: typing.Optional[str] = pydantic.Field(default=None) - """ - Audience of the grant. - """ - - scope: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Scopes included in this grant. - """ - - organization_id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of the organization associated with the grant. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/user_groups_response_schema.py b/src/auth0/management/types/user_groups_response_schema.py deleted file mode 100644 index 2ab13d1d..00000000 --- a/src/auth0/management/types/user_groups_response_schema.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .group import Group - - -class UserGroupsResponseSchema(Group): - membership_created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Timestamp of when the group membership was added. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/user_id.py b/src/auth0/management/types/user_id.py deleted file mode 100644 index a35851ca..00000000 --- a/src/auth0/management/types/user_id.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -UserId = typing.Union[str, int] diff --git a/src/auth0/management/types/user_identity.py b/src/auth0/management/types/user_identity.py deleted file mode 100644 index 8f900f9b..00000000 --- a/src/auth0/management/types/user_identity.py +++ /dev/null @@ -1,65 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .user_id import UserId -from .user_profile_data import UserProfileData - - -class UserIdentity(UniversalBaseModel): - connection: str = pydantic.Field() - """ - Connection name of this identity. - """ - - user_id: UserId = pydantic.Field() - """ - user_id of this identity. - """ - - provider: str = pydantic.Field() - """ - Type of identity provider. - """ - - profile_data: typing_extensions.Annotated[ - typing.Optional[UserProfileData], FieldMetadata(alias="profileData"), pydantic.Field(alias="profileData") - ] = None - is_social: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="isSocial"), - pydantic.Field( - alias="isSocial", description="Whether the identity provider is a social provider (true) or not (false)." - ), - ] = None - """ - Whether the identity provider is a social provider (true) or not (false). - """ - - access_token: typing.Optional[str] = pydantic.Field(default=None) - """ - IDP access token returned if scope `read:user_idp_tokens` is defined. - """ - - access_token_secret: typing.Optional[str] = pydantic.Field(default=None) - """ - IDP access token secret returned only if `scope read:user_idp_tokens` is defined. - """ - - refresh_token: typing.Optional[str] = pydantic.Field(default=None) - """ - IDP refresh token returned only if scope `read:user_idp_tokens` is defined. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/user_identity_provider_enum.py b/src/auth0/management/types/user_identity_provider_enum.py deleted file mode 100644 index 859b3d4e..00000000 --- a/src/auth0/management/types/user_identity_provider_enum.py +++ /dev/null @@ -1,64 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -UserIdentityProviderEnum = typing.Union[ - typing.Literal[ - "ad", - "adfs", - "amazon", - "apple", - "dropbox", - "bitbucket", - "auth0-oidc", - "auth0", - "baidu", - "bitly", - "box", - "custom", - "daccount", - "dwolla", - "email", - "evernote-sandbox", - "evernote", - "exact", - "facebook", - "fitbit", - "github", - "google-apps", - "google-oauth2", - "instagram", - "ip", - "line", - "linkedin", - "oauth1", - "oauth2", - "office365", - "oidc", - "okta", - "paypal", - "paypal-sandbox", - "pingfederate", - "planningcenter", - "salesforce-community", - "salesforce-sandbox", - "salesforce", - "samlp", - "sharepoint", - "shopify", - "shop", - "sms", - "soundcloud", - "thirtysevensignals", - "twitter", - "untappd", - "vkontakte", - "waad", - "weibo", - "windowslive", - "wordpress", - "yahoo", - "yandex", - ], - typing.Any, -] diff --git a/src/auth0/management/types/user_identity_schema.py b/src/auth0/management/types/user_identity_schema.py deleted file mode 100644 index a7f287d9..00000000 --- a/src/auth0/management/types/user_identity_schema.py +++ /dev/null @@ -1,59 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .user_id import UserId -from .user_identity_provider_enum import UserIdentityProviderEnum -from .user_profile_data import UserProfileData - - -class UserIdentitySchema(UniversalBaseModel): - connection: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of the connection containing this identity. - """ - - user_id: typing.Optional[UserId] = None - provider: typing.Optional[UserIdentityProviderEnum] = None - is_social: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="isSocial"), - pydantic.Field( - alias="isSocial", description="Whether this identity is from a social provider (true) or not (false)." - ), - ] = None - """ - Whether this identity is from a social provider (true) or not (false). - """ - - access_token: typing.Optional[str] = pydantic.Field(default=None) - """ - IDP access token returned only if scope read:user_idp_tokens is defined. - """ - - access_token_secret: typing.Optional[str] = pydantic.Field(default=None) - """ - IDP access token secret returned only if scope read:user_idp_tokens is defined. - """ - - refresh_token: typing.Optional[str] = pydantic.Field(default=None) - """ - IDP refresh token returned only if scope read:user_idp_tokens is defined. - """ - - profile_data: typing_extensions.Annotated[ - typing.Optional[UserProfileData], FieldMetadata(alias="profileData"), pydantic.Field(alias="profileData") - ] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/user_list_log_offset_paginated_response_content.py b/src/auth0/management/types/user_list_log_offset_paginated_response_content.py deleted file mode 100644 index 1cd3acdf..00000000 --- a/src/auth0/management/types/user_list_log_offset_paginated_response_content.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .log import Log - - -class UserListLogOffsetPaginatedResponseContent(UniversalBaseModel): - start: typing.Optional[float] = None - limit: typing.Optional[float] = None - length: typing.Optional[float] = None - total: typing.Optional[float] = None - logs: typing.Optional[typing.List[Log]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/user_metadata.py b/src/auth0/management/types/user_metadata.py deleted file mode 100644 index 2cd63926..00000000 --- a/src/auth0/management/types/user_metadata.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -UserMetadata = typing.Dict[str, typing.Any] -""" -Data related to the user that does not affect the application's core functionality. -""" diff --git a/src/auth0/management/types/user_metadata_schema.py b/src/auth0/management/types/user_metadata_schema.py deleted file mode 100644 index 573f0441..00000000 --- a/src/auth0/management/types/user_metadata_schema.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -UserMetadataSchema = typing.Dict[str, typing.Any] -""" -User metadata to which this user has read/write access. -""" diff --git a/src/auth0/management/types/user_multifactor_provider_enum.py b/src/auth0/management/types/user_multifactor_provider_enum.py deleted file mode 100644 index 7481748e..00000000 --- a/src/auth0/management/types/user_multifactor_provider_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -UserMultifactorProviderEnum = typing.Union[typing.Literal["duo", "google-authenticator"], typing.Any] diff --git a/src/auth0/management/types/user_permission_schema.py b/src/auth0/management/types/user_permission_schema.py deleted file mode 100644 index 1329d8b0..00000000 --- a/src/auth0/management/types/user_permission_schema.py +++ /dev/null @@ -1,37 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class UserPermissionSchema(UniversalBaseModel): - resource_server_identifier: typing.Optional[str] = pydantic.Field(default=None) - """ - Resource server (API) identifier that this permission is for. - """ - - permission_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of this permission. - """ - - resource_server_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Resource server (API) name this permission is for. - """ - - description: typing.Optional[str] = pydantic.Field(default=None) - """ - Description of this permission. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/user_profile_data.py b/src/auth0/management/types/user_profile_data.py deleted file mode 100644 index 6d1efe6c..00000000 --- a/src/auth0/management/types/user_profile_data.py +++ /dev/null @@ -1,57 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class UserProfileData(UniversalBaseModel): - email: typing.Optional[str] = pydantic.Field(default=None) - """ - Email address of this user. - """ - - email_verified: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this email address is verified (true) or unverified (false). - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of this user. - """ - - username: typing.Optional[str] = pydantic.Field(default=None) - """ - Username of this user. - """ - - given_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Given name/first name/forename of this user. - """ - - phone_number: typing.Optional[str] = pydantic.Field(default=None) - """ - Phone number for this user. - """ - - phone_verified: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this phone number is verified (true) or unverified (false). - """ - - family_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Family name/last name/surname of this user. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/user_response_schema.py b/src/auth0/management/types/user_response_schema.py deleted file mode 100644 index 93d9a24e..00000000 --- a/src/auth0/management/types/user_response_schema.py +++ /dev/null @@ -1,128 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .user_app_metadata_schema import UserAppMetadataSchema -from .user_identity_schema import UserIdentitySchema -from .user_metadata_schema import UserMetadataSchema - - -class UserResponseSchema(UniversalBaseModel): - user_id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of the user which can be used when interacting with other APIs. - """ - - email: typing.Optional[str] = pydantic.Field(default=None) - """ - Email address of this user. - """ - - email_verified: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this email address is verified (true) or unverified (false). - """ - - username: typing.Optional[str] = pydantic.Field(default=None) - """ - Username of this user. - """ - - phone_number: typing.Optional[str] = pydantic.Field(default=None) - """ - Phone number for this user. Follows the E.164 recommendation. - """ - - phone_verified: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this phone number has been verified (true) or not (false). - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Date and time when this user was created. - """ - - updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Date and time when this user was last updated/modified. - """ - - identities: typing.Optional[typing.List[UserIdentitySchema]] = pydantic.Field(default=None) - """ - Array of user identity objects when accounts are linked. - """ - - app_metadata: typing.Optional[UserAppMetadataSchema] = None - user_metadata: typing.Optional[UserMetadataSchema] = None - picture: typing.Optional[str] = pydantic.Field(default=None) - """ - URL to picture, photo, or avatar of this user. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of this user. - """ - - nickname: typing.Optional[str] = pydantic.Field(default=None) - """ - Preferred nickname or alias of this user. - """ - - multifactor: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - List of multi-factor authentication providers with which this user has enrolled. - """ - - multifactor_last_modified: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Last date and time this user's multi-factor authentication providers were updated. - """ - - last_ip: typing.Optional[str] = pydantic.Field(default=None) - """ - Last IP address from which this user logged in. - """ - - last_login: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Last date and time this user logged in. - """ - - last_password_reset: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Last date and time this user had their password reset. - """ - - logins_count: typing.Optional[int] = pydantic.Field(default=None) - """ - Total number of logins this user has performed. - """ - - blocked: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this user was blocked by an administrator (true) or is not (false). - """ - - given_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Given name/first name/forename of this user. - """ - - family_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Family name/last name/surname of this user. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/username_allowed_types.py b/src/auth0/management/types/username_allowed_types.py deleted file mode 100644 index d1c97ad4..00000000 --- a/src/auth0/management/types/username_allowed_types.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class UsernameAllowedTypes(UniversalBaseModel): - email: typing.Optional[bool] = None - phone_number: typing.Optional[bool] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/username_attribute.py b/src/auth0/management/types/username_attribute.py deleted file mode 100644 index ded4e685..00000000 --- a/src/auth0/management/types/username_attribute.py +++ /dev/null @@ -1,33 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .signup_schema import SignupSchema -from .username_attribute_identifier import UsernameAttributeIdentifier -from .username_validation import UsernameValidation - - -class UsernameAttribute(UniversalBaseModel): - """ - Configuration for the username attribute for users. - """ - - identifier: typing.Optional[UsernameAttributeIdentifier] = None - profile_required: typing.Optional[bool] = pydantic.Field(default=None) - """ - Determines if property should be required for users - """ - - signup: typing.Optional[SignupSchema] = None - validation: typing.Optional[UsernameValidation] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/username_attribute_identifier.py b/src/auth0/management/types/username_attribute_identifier.py deleted file mode 100644 index 3d5cd053..00000000 --- a/src/auth0/management/types/username_attribute_identifier.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class UsernameAttributeIdentifier(UniversalBaseModel): - active: typing.Optional[bool] = pydantic.Field(default=None) - """ - Determines if the attribute is used for identification - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/username_validation.py b/src/auth0/management/types/username_validation.py deleted file mode 100644 index d852729d..00000000 --- a/src/auth0/management/types/username_validation.py +++ /dev/null @@ -1,30 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .username_allowed_types import UsernameAllowedTypes - - -class UsernameValidation(UniversalBaseModel): - min_length: typing.Optional[float] = pydantic.Field(default=None) - """ - Minimum allowed length - """ - - max_length: typing.Optional[float] = pydantic.Field(default=None) - """ - Maximum allowed length - """ - - allowed_types: typing.Optional[UsernameAllowedTypes] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/users_enrollment.py b/src/auth0/management/types/users_enrollment.py deleted file mode 100644 index 280cbd9d..00000000 --- a/src/auth0/management/types/users_enrollment.py +++ /dev/null @@ -1,57 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .user_enrollment_auth_method_enum import UserEnrollmentAuthMethodEnum -from .user_enrollment_status_enum import UserEnrollmentStatusEnum - - -class UsersEnrollment(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of this enrollment. - """ - - status: typing.Optional[UserEnrollmentStatusEnum] = None - type: typing.Optional[str] = pydantic.Field(default=None) - """ - Type of enrollment. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of enrollment (usually phone number). - """ - - identifier: typing.Optional[str] = pydantic.Field(default=None) - """ - Device identifier (usually phone identifier) of this enrollment. - """ - - phone_number: typing.Optional[str] = pydantic.Field(default=None) - """ - Phone number for this enrollment. - """ - - auth_method: typing.Optional[UserEnrollmentAuthMethodEnum] = None - enrolled_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Start date and time of this enrollment. - """ - - last_auth: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Last authentication date and time of this enrollment. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/validate_experiment_response_content.py b/src/auth0/management/types/validate_experiment_response_content.py deleted file mode 100644 index a2ded55c..00000000 --- a/src/auth0/management/types/validate_experiment_response_content.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .experiment_validation_error import ExperimentValidationError - - -class ValidateExperimentResponseContent(UniversalBaseModel): - is_valid: bool = pydantic.Field() - """ - Whether the experiment is ready to be activated. - """ - - errors: typing.List[ExperimentValidationError] = pydantic.Field() - """ - List of validation errors preventing activation. Empty when is_valid is true. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/variation.py b/src/auth0/management/types/variation.py deleted file mode 100644 index 1899441d..00000000 --- a/src/auth0/management/types/variation.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .variation_overrides_map import VariationOverridesMap - - -class Variation(UniversalBaseModel): - id: str - feature_flag_id: str - name: str - description: typing.Optional[str] = None - overrides: VariationOverridesMap - created_at: dt.datetime - updated_at: dt.datetime - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/variation_overrides_map.py b/src/auth0/management/types/variation_overrides_map.py deleted file mode 100644 index 07816f49..00000000 --- a/src/auth0/management/types/variation_overrides_map.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -VariationOverridesMap = typing.Dict[str, typing.Any] -""" -Configuration overrides for this variation -""" diff --git a/src/auth0/management/types/verifiable_credential_template_response.py b/src/auth0/management/types/verifiable_credential_template_response.py deleted file mode 100644 index 983a98c3..00000000 --- a/src/auth0/management/types/verifiable_credential_template_response.py +++ /dev/null @@ -1,60 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .mdl_presentation_request import MdlPresentationRequest - - -class VerifiableCredentialTemplateResponse(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - The id of the template. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The name of the template. - """ - - type: typing.Optional[str] = pydantic.Field(default=None) - """ - The type of the template. - """ - - dialect: typing.Optional[str] = pydantic.Field(default=None) - """ - The dialect of the template. - """ - - presentation: typing.Optional[MdlPresentationRequest] = None - custom_certificate_authority: typing.Optional[str] = pydantic.Field(default=None) - """ - The custom certificate authority. - """ - - well_known_trusted_issuers: typing.Optional[str] = pydantic.Field(default=None) - """ - The well-known trusted issuers, comma separated. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The date and time the template was created. - """ - - updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The date and time the template was created. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/verification_method_enum.py b/src/auth0/management/types/verification_method_enum.py deleted file mode 100644 index 12315de7..00000000 --- a/src/auth0/management/types/verification_method_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -VerificationMethodEnum = typing.Union[typing.Literal["link", "otp"], typing.Any] diff --git a/src/auth0/management/types/verify_custom_domain_response_content.py b/src/auth0/management/types/verify_custom_domain_response_content.py deleted file mode 100644 index fdc72015..00000000 --- a/src/auth0/management/types/verify_custom_domain_response_content.py +++ /dev/null @@ -1,63 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .custom_domain_status_filter_enum import CustomDomainStatusFilterEnum -from .custom_domain_type_enum import CustomDomainTypeEnum -from .domain_certificate import DomainCertificate -from .domain_metadata import DomainMetadata -from .domain_verification import DomainVerification - - -class VerifyCustomDomainResponseContent(UniversalBaseModel): - custom_domain_id: str = pydantic.Field() - """ - ID of the custom domain. - """ - - domain: str = pydantic.Field() - """ - Domain name. - """ - - primary: bool = pydantic.Field() - """ - Whether this is a primary domain (true) or not (false). - """ - - status: CustomDomainStatusFilterEnum - type: CustomDomainTypeEnum - cname_api_key: typing.Optional[str] = pydantic.Field(default=None) - """ - CNAME API key header. - """ - - origin_domain_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Intermediate address. - """ - - verification: typing.Optional[DomainVerification] = None - custom_client_ip_header: typing.Optional[str] = pydantic.Field(default=None) - """ - The HTTP header to fetch the client's IP address - """ - - tls_policy: typing.Optional[str] = pydantic.Field(default=None) - """ - The TLS version policy - """ - - domain_metadata: typing.Optional[DomainMetadata] = None - certificate: typing.Optional[DomainCertificate] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/verify_email_ticket_response_content.py b/src/auth0/management/types/verify_email_ticket_response_content.py deleted file mode 100644 index c6d37d5d..00000000 --- a/src/auth0/management/types/verify_email_ticket_response_content.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class VerifyEmailTicketResponseContent(UniversalBaseModel): - ticket: str = pydantic.Field() - """ - URL representing the ticket. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/x_509_certificate_credential.py b/src/auth0/management/types/x_509_certificate_credential.py deleted file mode 100644 index 84aabb6e..00000000 --- a/src/auth0/management/types/x_509_certificate_credential.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .x_509_certificate_credential_type_enum import X509CertificateCredentialTypeEnum - - -class X509CertificateCredential(UniversalBaseModel): - credential_type: X509CertificateCredentialTypeEnum - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Friendly name for a credential. - """ - - pem: str = pydantic.Field() - """ - PEM-formatted X509 certificate. Must be JSON escaped. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/x_509_certificate_credential_type_enum.py b/src/auth0/management/types/x_509_certificate_credential_type_enum.py deleted file mode 100644 index 141821e2..00000000 --- a/src/auth0/management/types/x_509_certificate_credential_type_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -X509CertificateCredentialTypeEnum = typing.Union[typing.Literal["x509_cert"], typing.Any] diff --git a/src/auth0/management/types/xss_protection_config.py b/src/auth0/management/types/xss_protection_config.py deleted file mode 100644 index c4027db2..00000000 --- a/src/auth0/management/types/xss_protection_config.py +++ /dev/null @@ -1,33 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .xss_protection_mode import XssProtectionMode - - -class XssProtectionConfig(UniversalBaseModel): - """ - X-XSS-Protection header configuration (deprecated header, use CSP instead). - """ - - enabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether X-XSS-Protection header is enabled. - """ - - mode: typing.Optional[XssProtectionMode] = None - report_uri: typing.Optional[str] = pydantic.Field(default=None) - """ - HTTPS endpoint for X-XSS-Protection violation reports. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/xss_protection_mode.py b/src/auth0/management/types/xss_protection_mode.py deleted file mode 100644 index fea7bd49..00000000 --- a/src/auth0/management/types/xss_protection_mode.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -XssProtectionMode = typing.Union[typing.Literal["block"], typing.Any] diff --git a/src/auth0/management/user_attribute_profiles/__init__.py b/src/auth0/management/user_attribute_profiles/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/user_attribute_profiles/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/user_attribute_profiles/client.py b/src/auth0/management/user_attribute_profiles/client.py deleted file mode 100644 index 4de7a095..00000000 --- a/src/auth0/management/user_attribute_profiles/client.py +++ /dev/null @@ -1,652 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.pagination import AsyncPager, SyncPager -from ..core.request_options import RequestOptions -from ..types.create_user_attribute_profile_response_content import CreateUserAttributeProfileResponseContent -from ..types.get_user_attribute_profile_response_content import GetUserAttributeProfileResponseContent -from ..types.get_user_attribute_profile_template_response_content import GetUserAttributeProfileTemplateResponseContent -from ..types.list_user_attribute_profile_template_response_content import ( - ListUserAttributeProfileTemplateResponseContent, -) -from ..types.list_user_attribute_profiles_paginated_response_content import ( - ListUserAttributeProfilesPaginatedResponseContent, -) -from ..types.update_user_attribute_profile_response_content import UpdateUserAttributeProfileResponseContent -from ..types.user_attribute_profile import UserAttributeProfile -from ..types.user_attribute_profile_name import UserAttributeProfileName -from ..types.user_attribute_profile_patch_user_id import UserAttributeProfilePatchUserId -from ..types.user_attribute_profile_user_attributes import UserAttributeProfileUserAttributes -from ..types.user_attribute_profile_user_id import UserAttributeProfileUserId -from .raw_client import AsyncRawUserAttributeProfilesClient, RawUserAttributeProfilesClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class UserAttributeProfilesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawUserAttributeProfilesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawUserAttributeProfilesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawUserAttributeProfilesClient - """ - return self._raw_client - - def list( - self, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[UserAttributeProfile, ListUserAttributeProfilesPaginatedResponseContent]: - """ - Retrieve a list of User Attribute Profiles. This endpoint supports Checkpoint pagination. - - Parameters - ---------- - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 5. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[UserAttributeProfile, ListUserAttributeProfilesPaginatedResponseContent] - User Attribute Profiles successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.user_attribute_profiles.list( - from_="from", - take=1, - ) - for item in response: - yield item - # alternatively, you can paginate page-by-page - for page in response.iter_pages(): - yield page - """ - return self._raw_client.list(from_=from_, take=take, request_options=request_options) - - def create( - self, - *, - name: UserAttributeProfileName, - user_attributes: UserAttributeProfileUserAttributes, - user_id: typing.Optional[UserAttributeProfileUserId] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateUserAttributeProfileResponseContent: - """ - Create a User Attribute Profile. - - Parameters - ---------- - name : UserAttributeProfileName - - user_attributes : UserAttributeProfileUserAttributes - - user_id : typing.Optional[UserAttributeProfileUserId] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateUserAttributeProfileResponseContent - User attribute successfully created. - - Examples - -------- - from auth0 import Auth0, UserAttributeProfileUserAttributeAdditionalProperties - - client = Auth0( - token="YOUR_TOKEN", - ) - client.user_attribute_profiles.create( - name="name", - user_attributes={ - "key": UserAttributeProfileUserAttributeAdditionalProperties( - description="description", - label="label", - profile_required=True, - auth_0_mapping="auth0_mapping", - ) - }, - ) - """ - _response = self._raw_client.create( - name=name, user_attributes=user_attributes, user_id=user_id, request_options=request_options - ) - return _response.data - - def list_templates( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> ListUserAttributeProfileTemplateResponseContent: - """ - Retrieve a list of User Attribute Profile Templates. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - ListUserAttributeProfileTemplateResponseContent - User Attribute Profile Templates successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.user_attribute_profiles.list_templates() - """ - _response = self._raw_client.list_templates(request_options=request_options) - return _response.data - - def get_template( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetUserAttributeProfileTemplateResponseContent: - """ - Retrieve a User Attribute Profile Template. - - Parameters - ---------- - id : str - ID of the user-attribute-profile-template to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetUserAttributeProfileTemplateResponseContent - User Attribute Profile Template successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.user_attribute_profiles.get_template( - id="id", - ) - """ - _response = self._raw_client.get_template(id, request_options=request_options) - return _response.data - - def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetUserAttributeProfileResponseContent: - """ - Retrieve details about a single User Attribute Profile specified by ID. - - Parameters - ---------- - id : str - ID of the user-attribute-profile to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetUserAttributeProfileResponseContent - Record for existing user attribute profile. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.user_attribute_profiles.get( - id="id", - ) - """ - _response = self._raw_client.get(id, request_options=request_options) - return _response.data - - def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete a single User Attribute Profile specified by ID. - - Parameters - ---------- - id : str - ID of the user-attribute-profile to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.user_attribute_profiles.delete( - id="id", - ) - """ - _response = self._raw_client.delete(id, request_options=request_options) - return _response.data - - def update( - self, - id: str, - *, - name: typing.Optional[UserAttributeProfileName] = OMIT, - user_id: typing.Optional[UserAttributeProfilePatchUserId] = OMIT, - user_attributes: typing.Optional[UserAttributeProfileUserAttributes] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateUserAttributeProfileResponseContent: - """ - Update the details of a specific User attribute profile, such as name, user_id and user_attributes. - - Parameters - ---------- - id : str - ID of the user attribute profile to update. - - name : typing.Optional[UserAttributeProfileName] - - user_id : typing.Optional[UserAttributeProfilePatchUserId] - - user_attributes : typing.Optional[UserAttributeProfileUserAttributes] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateUserAttributeProfileResponseContent - User attribute profile successfully updated. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.user_attribute_profiles.update( - id="id", - ) - """ - _response = self._raw_client.update( - id, name=name, user_id=user_id, user_attributes=user_attributes, request_options=request_options - ) - return _response.data - - -class AsyncUserAttributeProfilesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawUserAttributeProfilesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawUserAttributeProfilesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawUserAttributeProfilesClient - """ - return self._raw_client - - async def list( - self, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[UserAttributeProfile, ListUserAttributeProfilesPaginatedResponseContent]: - """ - Retrieve a list of User Attribute Profiles. This endpoint supports Checkpoint pagination. - - Parameters - ---------- - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 5. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[UserAttributeProfile, ListUserAttributeProfilesPaginatedResponseContent] - User Attribute Profiles successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.user_attribute_profiles.list( - from_="from", - take=1, - ) - async for item in response: - yield item - - # alternatively, you can paginate page-by-page - async for page in response.iter_pages(): - yield page - - - asyncio.run(main()) - """ - return await self._raw_client.list(from_=from_, take=take, request_options=request_options) - - async def create( - self, - *, - name: UserAttributeProfileName, - user_attributes: UserAttributeProfileUserAttributes, - user_id: typing.Optional[UserAttributeProfileUserId] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateUserAttributeProfileResponseContent: - """ - Create a User Attribute Profile. - - Parameters - ---------- - name : UserAttributeProfileName - - user_attributes : UserAttributeProfileUserAttributes - - user_id : typing.Optional[UserAttributeProfileUserId] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateUserAttributeProfileResponseContent - User attribute successfully created. - - Examples - -------- - import asyncio - - from auth0 import ( - AsyncAuth0, - UserAttributeProfileUserAttributeAdditionalProperties, - ) - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.user_attribute_profiles.create( - name="name", - user_attributes={ - "key": UserAttributeProfileUserAttributeAdditionalProperties( - description="description", - label="label", - profile_required=True, - auth_0_mapping="auth0_mapping", - ) - }, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - name=name, user_attributes=user_attributes, user_id=user_id, request_options=request_options - ) - return _response.data - - async def list_templates( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> ListUserAttributeProfileTemplateResponseContent: - """ - Retrieve a list of User Attribute Profile Templates. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - ListUserAttributeProfileTemplateResponseContent - User Attribute Profile Templates successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.user_attribute_profiles.list_templates() - - - asyncio.run(main()) - """ - _response = await self._raw_client.list_templates(request_options=request_options) - return _response.data - - async def get_template( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetUserAttributeProfileTemplateResponseContent: - """ - Retrieve a User Attribute Profile Template. - - Parameters - ---------- - id : str - ID of the user-attribute-profile-template to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetUserAttributeProfileTemplateResponseContent - User Attribute Profile Template successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.user_attribute_profiles.get_template( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.get_template(id, request_options=request_options) - return _response.data - - async def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetUserAttributeProfileResponseContent: - """ - Retrieve details about a single User Attribute Profile specified by ID. - - Parameters - ---------- - id : str - ID of the user-attribute-profile to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetUserAttributeProfileResponseContent - Record for existing user attribute profile. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.user_attribute_profiles.get( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.get(id, request_options=request_options) - return _response.data - - async def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete a single User Attribute Profile specified by ID. - - Parameters - ---------- - id : str - ID of the user-attribute-profile to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.user_attribute_profiles.delete( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete(id, request_options=request_options) - return _response.data - - async def update( - self, - id: str, - *, - name: typing.Optional[UserAttributeProfileName] = OMIT, - user_id: typing.Optional[UserAttributeProfilePatchUserId] = OMIT, - user_attributes: typing.Optional[UserAttributeProfileUserAttributes] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateUserAttributeProfileResponseContent: - """ - Update the details of a specific User attribute profile, such as name, user_id and user_attributes. - - Parameters - ---------- - id : str - ID of the user attribute profile to update. - - name : typing.Optional[UserAttributeProfileName] - - user_id : typing.Optional[UserAttributeProfilePatchUserId] - - user_attributes : typing.Optional[UserAttributeProfileUserAttributes] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateUserAttributeProfileResponseContent - User attribute profile successfully updated. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.user_attribute_profiles.update( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.update( - id, name=name, user_id=user_id, user_attributes=user_attributes, request_options=request_options - ) - return _response.data diff --git a/src/auth0/management/user_attribute_profiles/raw_client.py b/src/auth0/management/user_attribute_profiles/raw_client.py deleted file mode 100644 index 043ad367..00000000 --- a/src/auth0/management/user_attribute_profiles/raw_client.py +++ /dev/null @@ -1,1376 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ..core.api_error import ApiError -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.http_response import AsyncHttpResponse, HttpResponse -from ..core.jsonable_encoder import quote_path_param -from ..core.pagination import AsyncPager, SyncPager -from ..core.parse_error import ParsingError -from ..core.pydantic_utilities import parse_obj_as -from ..core.request_options import RequestOptions -from ..core.serialization import convert_and_respect_annotation_metadata -from ..errors.bad_request_error import BadRequestError -from ..errors.conflict_error import ConflictError -from ..errors.forbidden_error import ForbiddenError -from ..errors.not_found_error import NotFoundError -from ..errors.too_many_requests_error import TooManyRequestsError -from ..errors.unauthorized_error import UnauthorizedError -from ..types.create_user_attribute_profile_response_content import CreateUserAttributeProfileResponseContent -from ..types.get_user_attribute_profile_response_content import GetUserAttributeProfileResponseContent -from ..types.get_user_attribute_profile_template_response_content import GetUserAttributeProfileTemplateResponseContent -from ..types.list_user_attribute_profile_template_response_content import ( - ListUserAttributeProfileTemplateResponseContent, -) -from ..types.list_user_attribute_profiles_paginated_response_content import ( - ListUserAttributeProfilesPaginatedResponseContent, -) -from ..types.update_user_attribute_profile_response_content import UpdateUserAttributeProfileResponseContent -from ..types.user_attribute_profile import UserAttributeProfile -from ..types.user_attribute_profile_name import UserAttributeProfileName -from ..types.user_attribute_profile_patch_user_id import UserAttributeProfilePatchUserId -from ..types.user_attribute_profile_user_attributes import UserAttributeProfileUserAttributes -from ..types.user_attribute_profile_user_id import UserAttributeProfileUserId -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawUserAttributeProfilesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[UserAttributeProfile, ListUserAttributeProfilesPaginatedResponseContent]: - """ - Retrieve a list of User Attribute Profiles. This endpoint supports Checkpoint pagination. - - Parameters - ---------- - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 5. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[UserAttributeProfile, ListUserAttributeProfilesPaginatedResponseContent] - User Attribute Profiles successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - "user-attribute-profiles", - method="GET", - params={ - "from": from_, - "take": take, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListUserAttributeProfilesPaginatedResponseContent, - parse_obj_as( - type_=ListUserAttributeProfilesPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.user_attribute_profiles - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - _get_next = lambda: self.list( - from_=_parsed_next, - take=take, - request_options=request_options, - ) - return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - *, - name: UserAttributeProfileName, - user_attributes: UserAttributeProfileUserAttributes, - user_id: typing.Optional[UserAttributeProfileUserId] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[CreateUserAttributeProfileResponseContent]: - """ - Create a User Attribute Profile. - - Parameters - ---------- - name : UserAttributeProfileName - - user_attributes : UserAttributeProfileUserAttributes - - user_id : typing.Optional[UserAttributeProfileUserId] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CreateUserAttributeProfileResponseContent] - User attribute successfully created. - """ - _response = self._client_wrapper.httpx_client.request( - "user-attribute-profiles", - method="POST", - json={ - "name": name, - "user_id": convert_and_respect_annotation_metadata( - object_=user_id, annotation=UserAttributeProfileUserId, direction="write" - ), - "user_attributes": convert_and_respect_annotation_metadata( - object_=user_attributes, annotation=UserAttributeProfileUserAttributes, direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateUserAttributeProfileResponseContent, - parse_obj_as( - type_=CreateUserAttributeProfileResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def list_templates( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[ListUserAttributeProfileTemplateResponseContent]: - """ - Retrieve a list of User Attribute Profile Templates. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[ListUserAttributeProfileTemplateResponseContent] - User Attribute Profile Templates successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - "user-attribute-profiles/templates", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - ListUserAttributeProfileTemplateResponseContent, - parse_obj_as( - type_=ListUserAttributeProfileTemplateResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def get_template( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetUserAttributeProfileTemplateResponseContent]: - """ - Retrieve a User Attribute Profile Template. - - Parameters - ---------- - id : str - ID of the user-attribute-profile-template to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetUserAttributeProfileTemplateResponseContent] - User Attribute Profile Template successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - f"user-attribute-profiles/templates/{quote_path_param(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetUserAttributeProfileTemplateResponseContent, - parse_obj_as( - type_=GetUserAttributeProfileTemplateResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetUserAttributeProfileResponseContent]: - """ - Retrieve details about a single User Attribute Profile specified by ID. - - Parameters - ---------- - id : str - ID of the user-attribute-profile to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetUserAttributeProfileResponseContent] - Record for existing user attribute profile. - """ - _response = self._client_wrapper.httpx_client.request( - f"user-attribute-profiles/{quote_path_param(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetUserAttributeProfileResponseContent, - parse_obj_as( - type_=GetUserAttributeProfileResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[None]: - """ - Delete a single User Attribute Profile specified by ID. - - Parameters - ---------- - id : str - ID of the user-attribute-profile to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"user-attribute-profiles/{quote_path_param(id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def update( - self, - id: str, - *, - name: typing.Optional[UserAttributeProfileName] = OMIT, - user_id: typing.Optional[UserAttributeProfilePatchUserId] = OMIT, - user_attributes: typing.Optional[UserAttributeProfileUserAttributes] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[UpdateUserAttributeProfileResponseContent]: - """ - Update the details of a specific User attribute profile, such as name, user_id and user_attributes. - - Parameters - ---------- - id : str - ID of the user attribute profile to update. - - name : typing.Optional[UserAttributeProfileName] - - user_id : typing.Optional[UserAttributeProfilePatchUserId] - - user_attributes : typing.Optional[UserAttributeProfileUserAttributes] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[UpdateUserAttributeProfileResponseContent] - User attribute profile successfully updated. - """ - _response = self._client_wrapper.httpx_client.request( - f"user-attribute-profiles/{quote_path_param(id)}", - method="PATCH", - json={ - "name": name, - "user_id": convert_and_respect_annotation_metadata( - object_=user_id, annotation=typing.Optional[UserAttributeProfilePatchUserId], direction="write" - ), - "user_attributes": convert_and_respect_annotation_metadata( - object_=user_attributes, annotation=UserAttributeProfileUserAttributes, direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateUserAttributeProfileResponseContent, - parse_obj_as( - type_=UpdateUserAttributeProfileResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawUserAttributeProfilesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[UserAttributeProfile, ListUserAttributeProfilesPaginatedResponseContent]: - """ - Retrieve a list of User Attribute Profiles. This endpoint supports Checkpoint pagination. - - Parameters - ---------- - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 5. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[UserAttributeProfile, ListUserAttributeProfilesPaginatedResponseContent] - User Attribute Profiles successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - "user-attribute-profiles", - method="GET", - params={ - "from": from_, - "take": take, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListUserAttributeProfilesPaginatedResponseContent, - parse_obj_as( - type_=ListUserAttributeProfilesPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.user_attribute_profiles - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - - async def _get_next(): - return await self.list( - from_=_parsed_next, - take=take, - request_options=request_options, - ) - - return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - *, - name: UserAttributeProfileName, - user_attributes: UserAttributeProfileUserAttributes, - user_id: typing.Optional[UserAttributeProfileUserId] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[CreateUserAttributeProfileResponseContent]: - """ - Create a User Attribute Profile. - - Parameters - ---------- - name : UserAttributeProfileName - - user_attributes : UserAttributeProfileUserAttributes - - user_id : typing.Optional[UserAttributeProfileUserId] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CreateUserAttributeProfileResponseContent] - User attribute successfully created. - """ - _response = await self._client_wrapper.httpx_client.request( - "user-attribute-profiles", - method="POST", - json={ - "name": name, - "user_id": convert_and_respect_annotation_metadata( - object_=user_id, annotation=UserAttributeProfileUserId, direction="write" - ), - "user_attributes": convert_and_respect_annotation_metadata( - object_=user_attributes, annotation=UserAttributeProfileUserAttributes, direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateUserAttributeProfileResponseContent, - parse_obj_as( - type_=CreateUserAttributeProfileResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def list_templates( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[ListUserAttributeProfileTemplateResponseContent]: - """ - Retrieve a list of User Attribute Profile Templates. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[ListUserAttributeProfileTemplateResponseContent] - User Attribute Profile Templates successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - "user-attribute-profiles/templates", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - ListUserAttributeProfileTemplateResponseContent, - parse_obj_as( - type_=ListUserAttributeProfileTemplateResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def get_template( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetUserAttributeProfileTemplateResponseContent]: - """ - Retrieve a User Attribute Profile Template. - - Parameters - ---------- - id : str - ID of the user-attribute-profile-template to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetUserAttributeProfileTemplateResponseContent] - User Attribute Profile Template successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - f"user-attribute-profiles/templates/{quote_path_param(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetUserAttributeProfileTemplateResponseContent, - parse_obj_as( - type_=GetUserAttributeProfileTemplateResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetUserAttributeProfileResponseContent]: - """ - Retrieve details about a single User Attribute Profile specified by ID. - - Parameters - ---------- - id : str - ID of the user-attribute-profile to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetUserAttributeProfileResponseContent] - Record for existing user attribute profile. - """ - _response = await self._client_wrapper.httpx_client.request( - f"user-attribute-profiles/{quote_path_param(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetUserAttributeProfileResponseContent, - parse_obj_as( - type_=GetUserAttributeProfileResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def delete( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Delete a single User Attribute Profile specified by ID. - - Parameters - ---------- - id : str - ID of the user-attribute-profile to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"user-attribute-profiles/{quote_path_param(id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def update( - self, - id: str, - *, - name: typing.Optional[UserAttributeProfileName] = OMIT, - user_id: typing.Optional[UserAttributeProfilePatchUserId] = OMIT, - user_attributes: typing.Optional[UserAttributeProfileUserAttributes] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[UpdateUserAttributeProfileResponseContent]: - """ - Update the details of a specific User attribute profile, such as name, user_id and user_attributes. - - Parameters - ---------- - id : str - ID of the user attribute profile to update. - - name : typing.Optional[UserAttributeProfileName] - - user_id : typing.Optional[UserAttributeProfilePatchUserId] - - user_attributes : typing.Optional[UserAttributeProfileUserAttributes] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[UpdateUserAttributeProfileResponseContent] - User attribute profile successfully updated. - """ - _response = await self._client_wrapper.httpx_client.request( - f"user-attribute-profiles/{quote_path_param(id)}", - method="PATCH", - json={ - "name": name, - "user_id": convert_and_respect_annotation_metadata( - object_=user_id, annotation=typing.Optional[UserAttributeProfilePatchUserId], direction="write" - ), - "user_attributes": convert_and_respect_annotation_metadata( - object_=user_attributes, annotation=UserAttributeProfileUserAttributes, direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateUserAttributeProfileResponseContent, - parse_obj_as( - type_=UpdateUserAttributeProfileResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/user_blocks/__init__.py b/src/auth0/management/user_blocks/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/user_blocks/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/user_blocks/client.py b/src/auth0/management/user_blocks/client.py deleted file mode 100644 index 26546e9a..00000000 --- a/src/auth0/management/user_blocks/client.py +++ /dev/null @@ -1,391 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.request_options import RequestOptions -from ..types.list_user_blocks_by_identifier_response_content import ListUserBlocksByIdentifierResponseContent -from ..types.list_user_blocks_response_content import ListUserBlocksResponseContent -from .raw_client import AsyncRawUserBlocksClient, RawUserBlocksClient - - -class UserBlocksClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawUserBlocksClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawUserBlocksClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawUserBlocksClient - """ - return self._raw_client - - def list_by_identifier( - self, - *, - identifier: str, - consider_brute_force_enablement: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> ListUserBlocksByIdentifierResponseContent: - """ - Retrieve details of all [Brute-force Protection](https://auth0.com/docs/secure/attack-protection/brute-force-protection) blocks for a user with the given identifier (username, phone number, or email). - - Parameters - ---------- - identifier : str - Should be any of a username, phone number, or email. - - consider_brute_force_enablement : typing.Optional[bool] - - If true, returns only blocks that are currently enforced (e.g. subject to protection status, IP allowlist, etc.). - If false or omitted, returns all blocks regardless of enforcement state. - - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - ListUserBlocksByIdentifierResponseContent - User successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.user_blocks.list_by_identifier( - identifier="identifier", - consider_brute_force_enablement=True, - ) - """ - _response = self._raw_client.list_by_identifier( - identifier=identifier, - consider_brute_force_enablement=consider_brute_force_enablement, - request_options=request_options, - ) - return _response.data - - def delete_by_identifier(self, *, identifier: str, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Remove all [Brute-force Protection](https://auth0.com/docs/secure/attack-protection/brute-force-protection) blocks for the user with the given identifier (username, phone number, or email). - - Note: This endpoint does not unblock users that were [blocked by a tenant administrator](https://auth0.com/docs/user-profile#block-and-unblock-a-user). - - Parameters - ---------- - identifier : str - Should be any of a username, phone number, or email. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.user_blocks.delete_by_identifier( - identifier="identifier", - ) - """ - _response = self._raw_client.delete_by_identifier(identifier=identifier, request_options=request_options) - return _response.data - - def list( - self, - id: str, - *, - consider_brute_force_enablement: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> ListUserBlocksResponseContent: - """ - Retrieve details of all [Brute-force Protection](https://auth0.com/docs/secure/attack-protection/brute-force-protection) blocks for the user with the given ID. - - Parameters - ---------- - id : str - user_id of the user blocks to retrieve. - - consider_brute_force_enablement : typing.Optional[bool] - - If true, returns only blocks that are currently enforced (e.g. subject to protection status, IP allowlist, etc.). - If false or omitted, returns all blocks regardless of enforcement state. - - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - ListUserBlocksResponseContent - User block successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.user_blocks.list( - id="id", - consider_brute_force_enablement=True, - ) - """ - _response = self._raw_client.list( - id, consider_brute_force_enablement=consider_brute_force_enablement, request_options=request_options - ) - return _response.data - - def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Remove all [Brute-force Protection](https://auth0.com/docs/secure/attack-protection/brute-force-protection) blocks for the user with the given ID. - - Note: This endpoint does not unblock users that were [blocked by a tenant administrator](https://auth0.com/docs/user-profile#block-and-unblock-a-user). - - Parameters - ---------- - id : str - The user_id of the user to update. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.user_blocks.delete( - id="id", - ) - """ - _response = self._raw_client.delete(id, request_options=request_options) - return _response.data - - -class AsyncUserBlocksClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawUserBlocksClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawUserBlocksClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawUserBlocksClient - """ - return self._raw_client - - async def list_by_identifier( - self, - *, - identifier: str, - consider_brute_force_enablement: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> ListUserBlocksByIdentifierResponseContent: - """ - Retrieve details of all [Brute-force Protection](https://auth0.com/docs/secure/attack-protection/brute-force-protection) blocks for a user with the given identifier (username, phone number, or email). - - Parameters - ---------- - identifier : str - Should be any of a username, phone number, or email. - - consider_brute_force_enablement : typing.Optional[bool] - - If true, returns only blocks that are currently enforced (e.g. subject to protection status, IP allowlist, etc.). - If false or omitted, returns all blocks regardless of enforcement state. - - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - ListUserBlocksByIdentifierResponseContent - User successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.user_blocks.list_by_identifier( - identifier="identifier", - consider_brute_force_enablement=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list_by_identifier( - identifier=identifier, - consider_brute_force_enablement=consider_brute_force_enablement, - request_options=request_options, - ) - return _response.data - - async def delete_by_identifier( - self, *, identifier: str, request_options: typing.Optional[RequestOptions] = None - ) -> None: - """ - Remove all [Brute-force Protection](https://auth0.com/docs/secure/attack-protection/brute-force-protection) blocks for the user with the given identifier (username, phone number, or email). - - Note: This endpoint does not unblock users that were [blocked by a tenant administrator](https://auth0.com/docs/user-profile#block-and-unblock-a-user). - - Parameters - ---------- - identifier : str - Should be any of a username, phone number, or email. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.user_blocks.delete_by_identifier( - identifier="identifier", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete_by_identifier(identifier=identifier, request_options=request_options) - return _response.data - - async def list( - self, - id: str, - *, - consider_brute_force_enablement: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> ListUserBlocksResponseContent: - """ - Retrieve details of all [Brute-force Protection](https://auth0.com/docs/secure/attack-protection/brute-force-protection) blocks for the user with the given ID. - - Parameters - ---------- - id : str - user_id of the user blocks to retrieve. - - consider_brute_force_enablement : typing.Optional[bool] - - If true, returns only blocks that are currently enforced (e.g. subject to protection status, IP allowlist, etc.). - If false or omitted, returns all blocks regardless of enforcement state. - - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - ListUserBlocksResponseContent - User block successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.user_blocks.list( - id="id", - consider_brute_force_enablement=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - id, consider_brute_force_enablement=consider_brute_force_enablement, request_options=request_options - ) - return _response.data - - async def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Remove all [Brute-force Protection](https://auth0.com/docs/secure/attack-protection/brute-force-protection) blocks for the user with the given ID. - - Note: This endpoint does not unblock users that were [blocked by a tenant administrator](https://auth0.com/docs/user-profile#block-and-unblock-a-user). - - Parameters - ---------- - id : str - The user_id of the user to update. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.user_blocks.delete( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete(id, request_options=request_options) - return _response.data diff --git a/src/auth0/management/user_blocks/raw_client.py b/src/auth0/management/user_blocks/raw_client.py deleted file mode 100644 index 1090aee8..00000000 --- a/src/auth0/management/user_blocks/raw_client.py +++ /dev/null @@ -1,804 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ..core.api_error import ApiError -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.http_response import AsyncHttpResponse, HttpResponse -from ..core.jsonable_encoder import quote_path_param -from ..core.parse_error import ParsingError -from ..core.pydantic_utilities import parse_obj_as -from ..core.request_options import RequestOptions -from ..errors.bad_request_error import BadRequestError -from ..errors.forbidden_error import ForbiddenError -from ..errors.not_found_error import NotFoundError -from ..errors.too_many_requests_error import TooManyRequestsError -from ..errors.unauthorized_error import UnauthorizedError -from ..types.list_user_blocks_by_identifier_response_content import ListUserBlocksByIdentifierResponseContent -from ..types.list_user_blocks_response_content import ListUserBlocksResponseContent -from pydantic import ValidationError - - -class RawUserBlocksClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list_by_identifier( - self, - *, - identifier: str, - consider_brute_force_enablement: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[ListUserBlocksByIdentifierResponseContent]: - """ - Retrieve details of all [Brute-force Protection](https://auth0.com/docs/secure/attack-protection/brute-force-protection) blocks for a user with the given identifier (username, phone number, or email). - - Parameters - ---------- - identifier : str - Should be any of a username, phone number, or email. - - consider_brute_force_enablement : typing.Optional[bool] - - If true, returns only blocks that are currently enforced (e.g. subject to protection status, IP allowlist, etc.). - If false or omitted, returns all blocks regardless of enforcement state. - - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[ListUserBlocksByIdentifierResponseContent] - User successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - "user-blocks", - method="GET", - params={ - "identifier": identifier, - "consider_brute_force_enablement": consider_brute_force_enablement, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - ListUserBlocksByIdentifierResponseContent, - parse_obj_as( - type_=ListUserBlocksByIdentifierResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def delete_by_identifier( - self, *, identifier: str, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[None]: - """ - Remove all [Brute-force Protection](https://auth0.com/docs/secure/attack-protection/brute-force-protection) blocks for the user with the given identifier (username, phone number, or email). - - Note: This endpoint does not unblock users that were [blocked by a tenant administrator](https://auth0.com/docs/user-profile#block-and-unblock-a-user). - - Parameters - ---------- - identifier : str - Should be any of a username, phone number, or email. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - "user-blocks", - method="DELETE", - params={ - "identifier": identifier, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def list( - self, - id: str, - *, - consider_brute_force_enablement: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[ListUserBlocksResponseContent]: - """ - Retrieve details of all [Brute-force Protection](https://auth0.com/docs/secure/attack-protection/brute-force-protection) blocks for the user with the given ID. - - Parameters - ---------- - id : str - user_id of the user blocks to retrieve. - - consider_brute_force_enablement : typing.Optional[bool] - - If true, returns only blocks that are currently enforced (e.g. subject to protection status, IP allowlist, etc.). - If false or omitted, returns all blocks regardless of enforcement state. - - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[ListUserBlocksResponseContent] - User block successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - f"user-blocks/{quote_path_param(id)}", - method="GET", - params={ - "consider_brute_force_enablement": consider_brute_force_enablement, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - ListUserBlocksResponseContent, - parse_obj_as( - type_=ListUserBlocksResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[None]: - """ - Remove all [Brute-force Protection](https://auth0.com/docs/secure/attack-protection/brute-force-protection) blocks for the user with the given ID. - - Note: This endpoint does not unblock users that were [blocked by a tenant administrator](https://auth0.com/docs/user-profile#block-and-unblock-a-user). - - Parameters - ---------- - id : str - The user_id of the user to update. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"user-blocks/{quote_path_param(id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawUserBlocksClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list_by_identifier( - self, - *, - identifier: str, - consider_brute_force_enablement: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[ListUserBlocksByIdentifierResponseContent]: - """ - Retrieve details of all [Brute-force Protection](https://auth0.com/docs/secure/attack-protection/brute-force-protection) blocks for a user with the given identifier (username, phone number, or email). - - Parameters - ---------- - identifier : str - Should be any of a username, phone number, or email. - - consider_brute_force_enablement : typing.Optional[bool] - - If true, returns only blocks that are currently enforced (e.g. subject to protection status, IP allowlist, etc.). - If false or omitted, returns all blocks regardless of enforcement state. - - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[ListUserBlocksByIdentifierResponseContent] - User successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - "user-blocks", - method="GET", - params={ - "identifier": identifier, - "consider_brute_force_enablement": consider_brute_force_enablement, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - ListUserBlocksByIdentifierResponseContent, - parse_obj_as( - type_=ListUserBlocksByIdentifierResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def delete_by_identifier( - self, *, identifier: str, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Remove all [Brute-force Protection](https://auth0.com/docs/secure/attack-protection/brute-force-protection) blocks for the user with the given identifier (username, phone number, or email). - - Note: This endpoint does not unblock users that were [blocked by a tenant administrator](https://auth0.com/docs/user-profile#block-and-unblock-a-user). - - Parameters - ---------- - identifier : str - Should be any of a username, phone number, or email. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - "user-blocks", - method="DELETE", - params={ - "identifier": identifier, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def list( - self, - id: str, - *, - consider_brute_force_enablement: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[ListUserBlocksResponseContent]: - """ - Retrieve details of all [Brute-force Protection](https://auth0.com/docs/secure/attack-protection/brute-force-protection) blocks for the user with the given ID. - - Parameters - ---------- - id : str - user_id of the user blocks to retrieve. - - consider_brute_force_enablement : typing.Optional[bool] - - If true, returns only blocks that are currently enforced (e.g. subject to protection status, IP allowlist, etc.). - If false or omitted, returns all blocks regardless of enforcement state. - - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[ListUserBlocksResponseContent] - User block successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - f"user-blocks/{quote_path_param(id)}", - method="GET", - params={ - "consider_brute_force_enablement": consider_brute_force_enablement, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - ListUserBlocksResponseContent, - parse_obj_as( - type_=ListUserBlocksResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def delete( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Remove all [Brute-force Protection](https://auth0.com/docs/secure/attack-protection/brute-force-protection) blocks for the user with the given ID. - - Note: This endpoint does not unblock users that were [blocked by a tenant administrator](https://auth0.com/docs/user-profile#block-and-unblock-a-user). - - Parameters - ---------- - id : str - The user_id of the user to update. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"user-blocks/{quote_path_param(id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/user_grants/__init__.py b/src/auth0/management/user_grants/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/user_grants/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/user_grants/client.py b/src/auth0/management/user_grants/client.py deleted file mode 100644 index b6b96f52..00000000 --- a/src/auth0/management/user_grants/client.py +++ /dev/null @@ -1,333 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.pagination import AsyncPager, SyncPager -from ..core.request_options import RequestOptions -from ..types.list_user_grants_offset_paginated_response_content import ListUserGrantsOffsetPaginatedResponseContent -from ..types.user_grant import UserGrant -from .raw_client import AsyncRawUserGrantsClient, RawUserGrantsClient - - -class UserGrantsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawUserGrantsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawUserGrantsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawUserGrantsClient - """ - return self._raw_client - - def list( - self, - *, - per_page: typing.Optional[int] = 50, - page: typing.Optional[int] = 0, - include_totals: typing.Optional[bool] = True, - user_id: typing.Optional[str] = None, - client_id: typing.Optional[str] = None, - audience: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[UserGrant, ListUserGrantsOffsetPaginatedResponseContent]: - """ - Retrieve the [grants](https://auth0.com/docs/api-auth/which-oauth-flow-to-use) associated with your account. - - Parameters - ---------- - per_page : typing.Optional[int] - Number of results per page. - - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - user_id : typing.Optional[str] - user_id of the grants to retrieve. - - client_id : typing.Optional[str] - client_id of the grants to retrieve. - - audience : typing.Optional[str] - audience of the grants to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[UserGrant, ListUserGrantsOffsetPaginatedResponseContent] - Grants successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.user_grants.list( - per_page=1, - page=1, - include_totals=True, - user_id="user_id", - client_id="client_id", - audience="audience", - ) - for item in response: - yield item - # alternatively, you can paginate page-by-page - for page in response.iter_pages(): - yield page - """ - return self._raw_client.list( - per_page=per_page, - page=page, - include_totals=include_totals, - user_id=user_id, - client_id=client_id, - audience=audience, - request_options=request_options, - ) - - def delete_by_user_id(self, *, user_id: str, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete a grant associated with your account. - - Parameters - ---------- - user_id : str - user_id of the grant to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.user_grants.delete_by_user_id( - user_id="user_id", - ) - """ - _response = self._raw_client.delete_by_user_id(user_id=user_id, request_options=request_options) - return _response.data - - def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete a grant associated with your account. - - Parameters - ---------- - id : str - ID of the grant to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.user_grants.delete( - id="id", - ) - """ - _response = self._raw_client.delete(id, request_options=request_options) - return _response.data - - -class AsyncUserGrantsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawUserGrantsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawUserGrantsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawUserGrantsClient - """ - return self._raw_client - - async def list( - self, - *, - per_page: typing.Optional[int] = 50, - page: typing.Optional[int] = 0, - include_totals: typing.Optional[bool] = True, - user_id: typing.Optional[str] = None, - client_id: typing.Optional[str] = None, - audience: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[UserGrant, ListUserGrantsOffsetPaginatedResponseContent]: - """ - Retrieve the [grants](https://auth0.com/docs/api-auth/which-oauth-flow-to-use) associated with your account. - - Parameters - ---------- - per_page : typing.Optional[int] - Number of results per page. - - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - user_id : typing.Optional[str] - user_id of the grants to retrieve. - - client_id : typing.Optional[str] - client_id of the grants to retrieve. - - audience : typing.Optional[str] - audience of the grants to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[UserGrant, ListUserGrantsOffsetPaginatedResponseContent] - Grants successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.user_grants.list( - per_page=1, - page=1, - include_totals=True, - user_id="user_id", - client_id="client_id", - audience="audience", - ) - async for item in response: - yield item - - # alternatively, you can paginate page-by-page - async for page in response.iter_pages(): - yield page - - - asyncio.run(main()) - """ - return await self._raw_client.list( - per_page=per_page, - page=page, - include_totals=include_totals, - user_id=user_id, - client_id=client_id, - audience=audience, - request_options=request_options, - ) - - async def delete_by_user_id(self, *, user_id: str, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete a grant associated with your account. - - Parameters - ---------- - user_id : str - user_id of the grant to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.user_grants.delete_by_user_id( - user_id="user_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete_by_user_id(user_id=user_id, request_options=request_options) - return _response.data - - async def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete a grant associated with your account. - - Parameters - ---------- - id : str - ID of the grant to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.user_grants.delete( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete(id, request_options=request_options) - return _response.data diff --git a/src/auth0/management/user_grants/raw_client.py b/src/auth0/management/user_grants/raw_client.py deleted file mode 100644 index 90b9b3a9..00000000 --- a/src/auth0/management/user_grants/raw_client.py +++ /dev/null @@ -1,548 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ..core.api_error import ApiError -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.http_response import AsyncHttpResponse, HttpResponse -from ..core.jsonable_encoder import quote_path_param -from ..core.pagination import AsyncPager, SyncPager -from ..core.parse_error import ParsingError -from ..core.pydantic_utilities import parse_obj_as -from ..core.request_options import RequestOptions -from ..errors.forbidden_error import ForbiddenError -from ..errors.too_many_requests_error import TooManyRequestsError -from ..errors.unauthorized_error import UnauthorizedError -from ..types.list_user_grants_offset_paginated_response_content import ListUserGrantsOffsetPaginatedResponseContent -from ..types.user_grant import UserGrant -from pydantic import ValidationError - - -class RawUserGrantsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - per_page: typing.Optional[int] = 50, - page: typing.Optional[int] = 0, - include_totals: typing.Optional[bool] = True, - user_id: typing.Optional[str] = None, - client_id: typing.Optional[str] = None, - audience: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[UserGrant, ListUserGrantsOffsetPaginatedResponseContent]: - """ - Retrieve the [grants](https://auth0.com/docs/api-auth/which-oauth-flow-to-use) associated with your account. - - Parameters - ---------- - per_page : typing.Optional[int] - Number of results per page. - - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - user_id : typing.Optional[str] - user_id of the grants to retrieve. - - client_id : typing.Optional[str] - client_id of the grants to retrieve. - - audience : typing.Optional[str] - audience of the grants to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[UserGrant, ListUserGrantsOffsetPaginatedResponseContent] - Grants successfully retrieved. - """ - page = page if page is not None else 0 - - _response = self._client_wrapper.httpx_client.request( - "grants", - method="GET", - params={ - "per_page": per_page, - "page": page, - "include_totals": include_totals, - "user_id": user_id, - "client_id": client_id, - "audience": audience, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListUserGrantsOffsetPaginatedResponseContent, - parse_obj_as( - type_=ListUserGrantsOffsetPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.grants - _has_next = len(_items or []) > 0 - _get_next = lambda: self.list( - per_page=per_page, - page=page + 1, - include_totals=include_totals, - user_id=user_id, - client_id=client_id, - audience=audience, - request_options=request_options, - ) - return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def delete_by_user_id( - self, *, user_id: str, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[None]: - """ - Delete a grant associated with your account. - - Parameters - ---------- - user_id : str - user_id of the grant to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - "grants", - method="DELETE", - params={ - "user_id": user_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[None]: - """ - Delete a grant associated with your account. - - Parameters - ---------- - id : str - ID of the grant to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"grants/{quote_path_param(id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawUserGrantsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - per_page: typing.Optional[int] = 50, - page: typing.Optional[int] = 0, - include_totals: typing.Optional[bool] = True, - user_id: typing.Optional[str] = None, - client_id: typing.Optional[str] = None, - audience: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[UserGrant, ListUserGrantsOffsetPaginatedResponseContent]: - """ - Retrieve the [grants](https://auth0.com/docs/api-auth/which-oauth-flow-to-use) associated with your account. - - Parameters - ---------- - per_page : typing.Optional[int] - Number of results per page. - - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - user_id : typing.Optional[str] - user_id of the grants to retrieve. - - client_id : typing.Optional[str] - client_id of the grants to retrieve. - - audience : typing.Optional[str] - audience of the grants to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[UserGrant, ListUserGrantsOffsetPaginatedResponseContent] - Grants successfully retrieved. - """ - page = page if page is not None else 0 - - _response = await self._client_wrapper.httpx_client.request( - "grants", - method="GET", - params={ - "per_page": per_page, - "page": page, - "include_totals": include_totals, - "user_id": user_id, - "client_id": client_id, - "audience": audience, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListUserGrantsOffsetPaginatedResponseContent, - parse_obj_as( - type_=ListUserGrantsOffsetPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.grants - _has_next = len(_items or []) > 0 - - async def _get_next(): - return await self.list( - per_page=per_page, - page=page + 1, - include_totals=include_totals, - user_id=user_id, - client_id=client_id, - audience=audience, - request_options=request_options, - ) - - return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def delete_by_user_id( - self, *, user_id: str, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Delete a grant associated with your account. - - Parameters - ---------- - user_id : str - user_id of the grant to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - "grants", - method="DELETE", - params={ - "user_id": user_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def delete( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Delete a grant associated with your account. - - Parameters - ---------- - id : str - ID of the grant to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"grants/{quote_path_param(id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/users/__init__.py b/src/auth0/management/users/__init__.py deleted file mode 100644 index 9710bc8a..00000000 --- a/src/auth0/management/users/__init__.py +++ /dev/null @@ -1,85 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from . import ( - authentication_methods, - authenticators, - connected_accounts, - effective_permissions, - effective_roles, - enrollments, - groups, - identities, - logs, - multifactor, - organizations, - permissions, - refresh_token, - risk_assessments, - roles, - sessions, - ) -_dynamic_imports: typing.Dict[str, str] = { - "authentication_methods": ".authentication_methods", - "authenticators": ".authenticators", - "connected_accounts": ".connected_accounts", - "effective_permissions": ".effective_permissions", - "effective_roles": ".effective_roles", - "enrollments": ".enrollments", - "groups": ".groups", - "identities": ".identities", - "logs": ".logs", - "multifactor": ".multifactor", - "organizations": ".organizations", - "permissions": ".permissions", - "refresh_token": ".refresh_token", - "risk_assessments": ".risk_assessments", - "roles": ".roles", - "sessions": ".sessions", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - if module_name == f".{attr_name}": - return module - else: - return getattr(module, attr_name) - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = [ - "authentication_methods", - "authenticators", - "connected_accounts", - "effective_permissions", - "effective_roles", - "enrollments", - "groups", - "identities", - "logs", - "multifactor", - "organizations", - "permissions", - "refresh_token", - "risk_assessments", - "roles", - "sessions", -] diff --git a/src/auth0/management/users/authentication_methods/__init__.py b/src/auth0/management/users/authentication_methods/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/users/authentication_methods/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/users/authentication_methods/client.py b/src/auth0/management/users/authentication_methods/client.py deleted file mode 100644 index 7eeb1ee5..00000000 --- a/src/auth0/management/users/authentication_methods/client.py +++ /dev/null @@ -1,864 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.pagination import AsyncPager, SyncPager -from ...core.request_options import RequestOptions -from ...types.create_user_authentication_method_response_content import CreateUserAuthenticationMethodResponseContent -from ...types.created_user_authentication_method_type_enum import CreatedUserAuthenticationMethodTypeEnum -from ...types.credential_device_type_enum import CredentialDeviceTypeEnum -from ...types.get_user_authentication_method_response_content import GetUserAuthenticationMethodResponseContent -from ...types.list_user_authentication_methods_offset_paginated_response_content import ( - ListUserAuthenticationMethodsOffsetPaginatedResponseContent, -) -from ...types.preferred_authentication_method_enum import PreferredAuthenticationMethodEnum -from ...types.set_user_authentication_method_response_content import SetUserAuthenticationMethodResponseContent -from ...types.set_user_authentication_methods_request_content import SetUserAuthenticationMethodsRequestContent -from ...types.update_user_authentication_method_response_content import UpdateUserAuthenticationMethodResponseContent -from ...types.user_authentication_method import UserAuthenticationMethod -from .raw_client import AsyncRawAuthenticationMethodsClient, RawAuthenticationMethodsClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class AuthenticationMethodsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawAuthenticationMethodsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawAuthenticationMethodsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawAuthenticationMethodsClient - """ - return self._raw_client - - def list( - self, - id: str, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - include_totals: typing.Optional[bool] = True, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[UserAuthenticationMethod, ListUserAuthenticationMethodsOffsetPaginatedResponseContent]: - """ - Retrieve detailed list of authentication methods associated with a specified user. - - Parameters - ---------- - id : str - The ID of the user in question. - - page : typing.Optional[int] - Page index of the results to return. First page is 0. Default is 0. - - per_page : typing.Optional[int] - Number of results per page. Default is 50. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[UserAuthenticationMethod, ListUserAuthenticationMethodsOffsetPaginatedResponseContent] - The authentication methods for the user were retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.users.authentication_methods.list( - id="id", - page=1, - per_page=1, - include_totals=True, - ) - for item in response: - yield item - # alternatively, you can paginate page-by-page - for page in response.iter_pages(): - yield page - """ - return self._raw_client.list( - id, page=page, per_page=per_page, include_totals=include_totals, request_options=request_options - ) - - def create( - self, - id: str, - *, - type: CreatedUserAuthenticationMethodTypeEnum, - name: typing.Optional[str] = OMIT, - totp_secret: typing.Optional[str] = OMIT, - phone_number: typing.Optional[str] = OMIT, - email: typing.Optional[str] = OMIT, - preferred_authentication_method: typing.Optional[PreferredAuthenticationMethodEnum] = OMIT, - key_id: typing.Optional[str] = OMIT, - public_key: typing.Optional[str] = OMIT, - aaguid: typing.Optional[str] = OMIT, - relying_party_identifier: typing.Optional[str] = OMIT, - credential_device_type: typing.Optional[CredentialDeviceTypeEnum] = OMIT, - credential_backed_up: typing.Optional[bool] = OMIT, - identity_user_id: typing.Optional[str] = OMIT, - user_agent: typing.Optional[str] = OMIT, - user_handle: typing.Optional[str] = OMIT, - transports: typing.Optional[typing.Sequence[str]] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateUserAuthenticationMethodResponseContent: - """ - Create an authentication method. Authentication methods created via this endpoint will be auto confirmed and should already have verification completed. - - Parameters - ---------- - id : str - The ID of the user to whom the new authentication method will be assigned. - - type : CreatedUserAuthenticationMethodTypeEnum - - name : typing.Optional[str] - A human-readable label to identify the authentication method. - - totp_secret : typing.Optional[str] - Base32 encoded secret for TOTP generation. - - phone_number : typing.Optional[str] - Applies to phone authentication methods only. The destination phone number used to send verification codes via text and voice. - - email : typing.Optional[str] - Applies to email authentication methods only. The email address used to send verification messages. - - preferred_authentication_method : typing.Optional[PreferredAuthenticationMethodEnum] - - key_id : typing.Optional[str] - Applies to webauthn/passkey authentication methods only. The id of the credential. - - public_key : typing.Optional[str] - Applies to webauthn/passkey authentication methods only. The public key, which is encoded as base64. - - aaguid : typing.Optional[str] - Applies to passkeys only. Authenticator Attestation Globally Unique Identifier - - relying_party_identifier : typing.Optional[str] - Applies to webauthn authentication methods only. The relying party identifier. - - credential_device_type : typing.Optional[CredentialDeviceTypeEnum] - - credential_backed_up : typing.Optional[bool] - Applies to passkeys only. Whether the credential was backed up. - - identity_user_id : typing.Optional[str] - Applies to passkeys only. The ID of the user identity linked with the authentication method. - - user_agent : typing.Optional[str] - Applies to passkeys only. The user-agent of the browser used to create the passkey. - - user_handle : typing.Optional[str] - Applies to passkeys only. The user handle of the user identity. - - transports : typing.Optional[typing.Sequence[str]] - Applies to passkeys only. The transports used by clients to communicate with the authenticator. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateUserAuthenticationMethodResponseContent - Authentication method created. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.users.authentication_methods.create( - id="id", - type="phone", - ) - """ - _response = self._raw_client.create( - id, - type=type, - name=name, - totp_secret=totp_secret, - phone_number=phone_number, - email=email, - preferred_authentication_method=preferred_authentication_method, - key_id=key_id, - public_key=public_key, - aaguid=aaguid, - relying_party_identifier=relying_party_identifier, - credential_device_type=credential_device_type, - credential_backed_up=credential_backed_up, - identity_user_id=identity_user_id, - user_agent=user_agent, - user_handle=user_handle, - transports=transports, - request_options=request_options, - ) - return _response.data - - def set( - self, - id: str, - *, - request: SetUserAuthenticationMethodsRequestContent, - request_options: typing.Optional[RequestOptions] = None, - ) -> typing.List[SetUserAuthenticationMethodResponseContent]: - """ - Replace the specified user authentication methods with supplied values. - - Note: Authentication methods supplied through this action do not iterate on existing methods. Instead, any methods passed will overwrite the user’s existing settings. - - Parameters - ---------- - id : str - The ID of the user in question. - - request : SetUserAuthenticationMethodsRequestContent - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - typing.List[SetUserAuthenticationMethodResponseContent] - All authentication methods successfully updated. - - Examples - -------- - from auth0 import Auth0, SetUserAuthenticationMethods - - client = Auth0( - token="YOUR_TOKEN", - ) - client.users.authentication_methods.set( - id="id", - request=[ - SetUserAuthenticationMethods( - type="phone", - ) - ], - ) - """ - _response = self._raw_client.set(id, request=request, request_options=request_options) - return _response.data - - def delete_all(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Remove all authentication methods (i.e., enrolled MFA factors) from the specified user account. This action cannot be undone. - - Parameters - ---------- - id : str - The ID of the user in question. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.users.authentication_methods.delete_all( - id="id", - ) - """ - _response = self._raw_client.delete_all(id, request_options=request_options) - return _response.data - - def get( - self, id: str, authentication_method_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetUserAuthenticationMethodResponseContent: - """ - Parameters - ---------- - id : str - The ID of the user in question. - - authentication_method_id : str - The ID of the authentication methods in question. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetUserAuthenticationMethodResponseContent - Authentication method retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.users.authentication_methods.get( - id="id", - authentication_method_id="authentication_method_id", - ) - """ - _response = self._raw_client.get(id, authentication_method_id, request_options=request_options) - return _response.data - - def delete( - self, id: str, authentication_method_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> None: - """ - Remove the authentication method with the given ID from the specified user. For more information, review Manage Authentication Methods with Management API. - - Parameters - ---------- - id : str - The ID of the user in question. - - authentication_method_id : str - The ID of the authentication method to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.users.authentication_methods.delete( - id="id", - authentication_method_id="authentication_method_id", - ) - """ - _response = self._raw_client.delete(id, authentication_method_id, request_options=request_options) - return _response.data - - def update( - self, - id: str, - authentication_method_id: str, - *, - name: typing.Optional[str] = OMIT, - preferred_authentication_method: typing.Optional[PreferredAuthenticationMethodEnum] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateUserAuthenticationMethodResponseContent: - """ - Modify the authentication method with the given ID from the specified user. For more information, review Manage Authentication Methods with Management API. - - Parameters - ---------- - id : str - The ID of the user in question. - - authentication_method_id : str - The ID of the authentication method to update. - - name : typing.Optional[str] - A human-readable label to identify the authentication method. - - preferred_authentication_method : typing.Optional[PreferredAuthenticationMethodEnum] - Preferred phone authentication method - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateUserAuthenticationMethodResponseContent - Authentication method updated. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.users.authentication_methods.update( - id="id", - authentication_method_id="authentication_method_id", - ) - """ - _response = self._raw_client.update( - id, - authentication_method_id, - name=name, - preferred_authentication_method=preferred_authentication_method, - request_options=request_options, - ) - return _response.data - - -class AsyncAuthenticationMethodsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawAuthenticationMethodsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawAuthenticationMethodsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawAuthenticationMethodsClient - """ - return self._raw_client - - async def list( - self, - id: str, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - include_totals: typing.Optional[bool] = True, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[UserAuthenticationMethod, ListUserAuthenticationMethodsOffsetPaginatedResponseContent]: - """ - Retrieve detailed list of authentication methods associated with a specified user. - - Parameters - ---------- - id : str - The ID of the user in question. - - page : typing.Optional[int] - Page index of the results to return. First page is 0. Default is 0. - - per_page : typing.Optional[int] - Number of results per page. Default is 50. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[UserAuthenticationMethod, ListUserAuthenticationMethodsOffsetPaginatedResponseContent] - The authentication methods for the user were retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.users.authentication_methods.list( - id="id", - page=1, - per_page=1, - include_totals=True, - ) - async for item in response: - yield item - - # alternatively, you can paginate page-by-page - async for page in response.iter_pages(): - yield page - - - asyncio.run(main()) - """ - return await self._raw_client.list( - id, page=page, per_page=per_page, include_totals=include_totals, request_options=request_options - ) - - async def create( - self, - id: str, - *, - type: CreatedUserAuthenticationMethodTypeEnum, - name: typing.Optional[str] = OMIT, - totp_secret: typing.Optional[str] = OMIT, - phone_number: typing.Optional[str] = OMIT, - email: typing.Optional[str] = OMIT, - preferred_authentication_method: typing.Optional[PreferredAuthenticationMethodEnum] = OMIT, - key_id: typing.Optional[str] = OMIT, - public_key: typing.Optional[str] = OMIT, - aaguid: typing.Optional[str] = OMIT, - relying_party_identifier: typing.Optional[str] = OMIT, - credential_device_type: typing.Optional[CredentialDeviceTypeEnum] = OMIT, - credential_backed_up: typing.Optional[bool] = OMIT, - identity_user_id: typing.Optional[str] = OMIT, - user_agent: typing.Optional[str] = OMIT, - user_handle: typing.Optional[str] = OMIT, - transports: typing.Optional[typing.Sequence[str]] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateUserAuthenticationMethodResponseContent: - """ - Create an authentication method. Authentication methods created via this endpoint will be auto confirmed and should already have verification completed. - - Parameters - ---------- - id : str - The ID of the user to whom the new authentication method will be assigned. - - type : CreatedUserAuthenticationMethodTypeEnum - - name : typing.Optional[str] - A human-readable label to identify the authentication method. - - totp_secret : typing.Optional[str] - Base32 encoded secret for TOTP generation. - - phone_number : typing.Optional[str] - Applies to phone authentication methods only. The destination phone number used to send verification codes via text and voice. - - email : typing.Optional[str] - Applies to email authentication methods only. The email address used to send verification messages. - - preferred_authentication_method : typing.Optional[PreferredAuthenticationMethodEnum] - - key_id : typing.Optional[str] - Applies to webauthn/passkey authentication methods only. The id of the credential. - - public_key : typing.Optional[str] - Applies to webauthn/passkey authentication methods only. The public key, which is encoded as base64. - - aaguid : typing.Optional[str] - Applies to passkeys only. Authenticator Attestation Globally Unique Identifier - - relying_party_identifier : typing.Optional[str] - Applies to webauthn authentication methods only. The relying party identifier. - - credential_device_type : typing.Optional[CredentialDeviceTypeEnum] - - credential_backed_up : typing.Optional[bool] - Applies to passkeys only. Whether the credential was backed up. - - identity_user_id : typing.Optional[str] - Applies to passkeys only. The ID of the user identity linked with the authentication method. - - user_agent : typing.Optional[str] - Applies to passkeys only. The user-agent of the browser used to create the passkey. - - user_handle : typing.Optional[str] - Applies to passkeys only. The user handle of the user identity. - - transports : typing.Optional[typing.Sequence[str]] - Applies to passkeys only. The transports used by clients to communicate with the authenticator. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateUserAuthenticationMethodResponseContent - Authentication method created. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.users.authentication_methods.create( - id="id", - type="phone", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - id, - type=type, - name=name, - totp_secret=totp_secret, - phone_number=phone_number, - email=email, - preferred_authentication_method=preferred_authentication_method, - key_id=key_id, - public_key=public_key, - aaguid=aaguid, - relying_party_identifier=relying_party_identifier, - credential_device_type=credential_device_type, - credential_backed_up=credential_backed_up, - identity_user_id=identity_user_id, - user_agent=user_agent, - user_handle=user_handle, - transports=transports, - request_options=request_options, - ) - return _response.data - - async def set( - self, - id: str, - *, - request: SetUserAuthenticationMethodsRequestContent, - request_options: typing.Optional[RequestOptions] = None, - ) -> typing.List[SetUserAuthenticationMethodResponseContent]: - """ - Replace the specified user authentication methods with supplied values. - - Note: Authentication methods supplied through this action do not iterate on existing methods. Instead, any methods passed will overwrite the user’s existing settings. - - Parameters - ---------- - id : str - The ID of the user in question. - - request : SetUserAuthenticationMethodsRequestContent - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - typing.List[SetUserAuthenticationMethodResponseContent] - All authentication methods successfully updated. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0, SetUserAuthenticationMethods - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.users.authentication_methods.set( - id="id", - request=[ - SetUserAuthenticationMethods( - type="phone", - ) - ], - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.set(id, request=request, request_options=request_options) - return _response.data - - async def delete_all(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Remove all authentication methods (i.e., enrolled MFA factors) from the specified user account. This action cannot be undone. - - Parameters - ---------- - id : str - The ID of the user in question. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.users.authentication_methods.delete_all( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete_all(id, request_options=request_options) - return _response.data - - async def get( - self, id: str, authentication_method_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetUserAuthenticationMethodResponseContent: - """ - Parameters - ---------- - id : str - The ID of the user in question. - - authentication_method_id : str - The ID of the authentication methods in question. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetUserAuthenticationMethodResponseContent - Authentication method retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.users.authentication_methods.get( - id="id", - authentication_method_id="authentication_method_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.get(id, authentication_method_id, request_options=request_options) - return _response.data - - async def delete( - self, id: str, authentication_method_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> None: - """ - Remove the authentication method with the given ID from the specified user. For more information, review Manage Authentication Methods with Management API. - - Parameters - ---------- - id : str - The ID of the user in question. - - authentication_method_id : str - The ID of the authentication method to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.users.authentication_methods.delete( - id="id", - authentication_method_id="authentication_method_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete(id, authentication_method_id, request_options=request_options) - return _response.data - - async def update( - self, - id: str, - authentication_method_id: str, - *, - name: typing.Optional[str] = OMIT, - preferred_authentication_method: typing.Optional[PreferredAuthenticationMethodEnum] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateUserAuthenticationMethodResponseContent: - """ - Modify the authentication method with the given ID from the specified user. For more information, review Manage Authentication Methods with Management API. - - Parameters - ---------- - id : str - The ID of the user in question. - - authentication_method_id : str - The ID of the authentication method to update. - - name : typing.Optional[str] - A human-readable label to identify the authentication method. - - preferred_authentication_method : typing.Optional[PreferredAuthenticationMethodEnum] - Preferred phone authentication method - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateUserAuthenticationMethodResponseContent - Authentication method updated. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.users.authentication_methods.update( - id="id", - authentication_method_id="authentication_method_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.update( - id, - authentication_method_id, - name=name, - preferred_authentication_method=preferred_authentication_method, - request_options=request_options, - ) - return _response.data diff --git a/src/auth0/management/users/authentication_methods/raw_client.py b/src/auth0/management/users/authentication_methods/raw_client.py deleted file mode 100644 index 60e47973..00000000 --- a/src/auth0/management/users/authentication_methods/raw_client.py +++ /dev/null @@ -1,1699 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ...core.api_error import ApiError -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.http_response import AsyncHttpResponse, HttpResponse -from ...core.jsonable_encoder import quote_path_param -from ...core.pagination import AsyncPager, SyncPager -from ...core.parse_error import ParsingError -from ...core.pydantic_utilities import parse_obj_as -from ...core.request_options import RequestOptions -from ...core.serialization import convert_and_respect_annotation_metadata -from ...errors.bad_request_error import BadRequestError -from ...errors.conflict_error import ConflictError -from ...errors.forbidden_error import ForbiddenError -from ...errors.not_found_error import NotFoundError -from ...errors.too_many_requests_error import TooManyRequestsError -from ...errors.unauthorized_error import UnauthorizedError -from ...types.create_user_authentication_method_response_content import CreateUserAuthenticationMethodResponseContent -from ...types.created_user_authentication_method_type_enum import CreatedUserAuthenticationMethodTypeEnum -from ...types.credential_device_type_enum import CredentialDeviceTypeEnum -from ...types.get_user_authentication_method_response_content import GetUserAuthenticationMethodResponseContent -from ...types.list_user_authentication_methods_offset_paginated_response_content import ( - ListUserAuthenticationMethodsOffsetPaginatedResponseContent, -) -from ...types.preferred_authentication_method_enum import PreferredAuthenticationMethodEnum -from ...types.set_user_authentication_method_response_content import SetUserAuthenticationMethodResponseContent -from ...types.set_user_authentication_methods_request_content import SetUserAuthenticationMethodsRequestContent -from ...types.update_user_authentication_method_response_content import UpdateUserAuthenticationMethodResponseContent -from ...types.user_authentication_method import UserAuthenticationMethod -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawAuthenticationMethodsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - id: str, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - include_totals: typing.Optional[bool] = True, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[UserAuthenticationMethod, ListUserAuthenticationMethodsOffsetPaginatedResponseContent]: - """ - Retrieve detailed list of authentication methods associated with a specified user. - - Parameters - ---------- - id : str - The ID of the user in question. - - page : typing.Optional[int] - Page index of the results to return. First page is 0. Default is 0. - - per_page : typing.Optional[int] - Number of results per page. Default is 50. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[UserAuthenticationMethod, ListUserAuthenticationMethodsOffsetPaginatedResponseContent] - The authentication methods for the user were retrieved. - """ - page = page if page is not None else 0 - - _response = self._client_wrapper.httpx_client.request( - f"users/{quote_path_param(id)}/authentication-methods", - method="GET", - params={ - "page": page, - "per_page": per_page, - "include_totals": include_totals, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListUserAuthenticationMethodsOffsetPaginatedResponseContent, - parse_obj_as( - type_=ListUserAuthenticationMethodsOffsetPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.authenticators - _has_next = len(_items or []) > 0 - _get_next = lambda: self.list( - id, - page=page + 1, - per_page=per_page, - include_totals=include_totals, - request_options=request_options, - ) - return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - id: str, - *, - type: CreatedUserAuthenticationMethodTypeEnum, - name: typing.Optional[str] = OMIT, - totp_secret: typing.Optional[str] = OMIT, - phone_number: typing.Optional[str] = OMIT, - email: typing.Optional[str] = OMIT, - preferred_authentication_method: typing.Optional[PreferredAuthenticationMethodEnum] = OMIT, - key_id: typing.Optional[str] = OMIT, - public_key: typing.Optional[str] = OMIT, - aaguid: typing.Optional[str] = OMIT, - relying_party_identifier: typing.Optional[str] = OMIT, - credential_device_type: typing.Optional[CredentialDeviceTypeEnum] = OMIT, - credential_backed_up: typing.Optional[bool] = OMIT, - identity_user_id: typing.Optional[str] = OMIT, - user_agent: typing.Optional[str] = OMIT, - user_handle: typing.Optional[str] = OMIT, - transports: typing.Optional[typing.Sequence[str]] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[CreateUserAuthenticationMethodResponseContent]: - """ - Create an authentication method. Authentication methods created via this endpoint will be auto confirmed and should already have verification completed. - - Parameters - ---------- - id : str - The ID of the user to whom the new authentication method will be assigned. - - type : CreatedUserAuthenticationMethodTypeEnum - - name : typing.Optional[str] - A human-readable label to identify the authentication method. - - totp_secret : typing.Optional[str] - Base32 encoded secret for TOTP generation. - - phone_number : typing.Optional[str] - Applies to phone authentication methods only. The destination phone number used to send verification codes via text and voice. - - email : typing.Optional[str] - Applies to email authentication methods only. The email address used to send verification messages. - - preferred_authentication_method : typing.Optional[PreferredAuthenticationMethodEnum] - - key_id : typing.Optional[str] - Applies to webauthn/passkey authentication methods only. The id of the credential. - - public_key : typing.Optional[str] - Applies to webauthn/passkey authentication methods only. The public key, which is encoded as base64. - - aaguid : typing.Optional[str] - Applies to passkeys only. Authenticator Attestation Globally Unique Identifier - - relying_party_identifier : typing.Optional[str] - Applies to webauthn authentication methods only. The relying party identifier. - - credential_device_type : typing.Optional[CredentialDeviceTypeEnum] - - credential_backed_up : typing.Optional[bool] - Applies to passkeys only. Whether the credential was backed up. - - identity_user_id : typing.Optional[str] - Applies to passkeys only. The ID of the user identity linked with the authentication method. - - user_agent : typing.Optional[str] - Applies to passkeys only. The user-agent of the browser used to create the passkey. - - user_handle : typing.Optional[str] - Applies to passkeys only. The user handle of the user identity. - - transports : typing.Optional[typing.Sequence[str]] - Applies to passkeys only. The transports used by clients to communicate with the authenticator. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CreateUserAuthenticationMethodResponseContent] - Authentication method created. - """ - _response = self._client_wrapper.httpx_client.request( - f"users/{quote_path_param(id)}/authentication-methods", - method="POST", - json={ - "type": type, - "name": name, - "totp_secret": totp_secret, - "phone_number": phone_number, - "email": email, - "preferred_authentication_method": preferred_authentication_method, - "key_id": key_id, - "public_key": public_key, - "aaguid": aaguid, - "relying_party_identifier": relying_party_identifier, - "credential_device_type": credential_device_type, - "credential_backed_up": credential_backed_up, - "identity_user_id": identity_user_id, - "user_agent": user_agent, - "user_handle": user_handle, - "transports": transports, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateUserAuthenticationMethodResponseContent, - parse_obj_as( - type_=CreateUserAuthenticationMethodResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def set( - self, - id: str, - *, - request: SetUserAuthenticationMethodsRequestContent, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[typing.List[SetUserAuthenticationMethodResponseContent]]: - """ - Replace the specified user authentication methods with supplied values. - - Note: Authentication methods supplied through this action do not iterate on existing methods. Instead, any methods passed will overwrite the user’s existing settings. - - Parameters - ---------- - id : str - The ID of the user in question. - - request : SetUserAuthenticationMethodsRequestContent - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[typing.List[SetUserAuthenticationMethodResponseContent]] - All authentication methods successfully updated. - """ - _response = self._client_wrapper.httpx_client.request( - f"users/{quote_path_param(id)}/authentication-methods", - method="PUT", - json=convert_and_respect_annotation_metadata( - object_=request, annotation=SetUserAuthenticationMethodsRequestContent, direction="write" - ), - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - typing.List[SetUserAuthenticationMethodResponseContent], - parse_obj_as( - type_=typing.List[SetUserAuthenticationMethodResponseContent], # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def delete_all(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[None]: - """ - Remove all authentication methods (i.e., enrolled MFA factors) from the specified user account. This action cannot be undone. - - Parameters - ---------- - id : str - The ID of the user in question. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"users/{quote_path_param(id)}/authentication-methods", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def get( - self, id: str, authentication_method_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetUserAuthenticationMethodResponseContent]: - """ - Parameters - ---------- - id : str - The ID of the user in question. - - authentication_method_id : str - The ID of the authentication methods in question. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetUserAuthenticationMethodResponseContent] - Authentication method retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - f"users/{quote_path_param(id)}/authentication-methods/{quote_path_param(authentication_method_id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetUserAuthenticationMethodResponseContent, - parse_obj_as( - type_=GetUserAuthenticationMethodResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def delete( - self, id: str, authentication_method_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[None]: - """ - Remove the authentication method with the given ID from the specified user. For more information, review Manage Authentication Methods with Management API. - - Parameters - ---------- - id : str - The ID of the user in question. - - authentication_method_id : str - The ID of the authentication method to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"users/{quote_path_param(id)}/authentication-methods/{quote_path_param(authentication_method_id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def update( - self, - id: str, - authentication_method_id: str, - *, - name: typing.Optional[str] = OMIT, - preferred_authentication_method: typing.Optional[PreferredAuthenticationMethodEnum] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[UpdateUserAuthenticationMethodResponseContent]: - """ - Modify the authentication method with the given ID from the specified user. For more information, review Manage Authentication Methods with Management API. - - Parameters - ---------- - id : str - The ID of the user in question. - - authentication_method_id : str - The ID of the authentication method to update. - - name : typing.Optional[str] - A human-readable label to identify the authentication method. - - preferred_authentication_method : typing.Optional[PreferredAuthenticationMethodEnum] - Preferred phone authentication method - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[UpdateUserAuthenticationMethodResponseContent] - Authentication method updated. - """ - _response = self._client_wrapper.httpx_client.request( - f"users/{quote_path_param(id)}/authentication-methods/{quote_path_param(authentication_method_id)}", - method="PATCH", - json={ - "name": name, - "preferred_authentication_method": preferred_authentication_method, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateUserAuthenticationMethodResponseContent, - parse_obj_as( - type_=UpdateUserAuthenticationMethodResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawAuthenticationMethodsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - id: str, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - include_totals: typing.Optional[bool] = True, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[UserAuthenticationMethod, ListUserAuthenticationMethodsOffsetPaginatedResponseContent]: - """ - Retrieve detailed list of authentication methods associated with a specified user. - - Parameters - ---------- - id : str - The ID of the user in question. - - page : typing.Optional[int] - Page index of the results to return. First page is 0. Default is 0. - - per_page : typing.Optional[int] - Number of results per page. Default is 50. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[UserAuthenticationMethod, ListUserAuthenticationMethodsOffsetPaginatedResponseContent] - The authentication methods for the user were retrieved. - """ - page = page if page is not None else 0 - - _response = await self._client_wrapper.httpx_client.request( - f"users/{quote_path_param(id)}/authentication-methods", - method="GET", - params={ - "page": page, - "per_page": per_page, - "include_totals": include_totals, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListUserAuthenticationMethodsOffsetPaginatedResponseContent, - parse_obj_as( - type_=ListUserAuthenticationMethodsOffsetPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.authenticators - _has_next = len(_items or []) > 0 - - async def _get_next(): - return await self.list( - id, - page=page + 1, - per_page=per_page, - include_totals=include_totals, - request_options=request_options, - ) - - return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - id: str, - *, - type: CreatedUserAuthenticationMethodTypeEnum, - name: typing.Optional[str] = OMIT, - totp_secret: typing.Optional[str] = OMIT, - phone_number: typing.Optional[str] = OMIT, - email: typing.Optional[str] = OMIT, - preferred_authentication_method: typing.Optional[PreferredAuthenticationMethodEnum] = OMIT, - key_id: typing.Optional[str] = OMIT, - public_key: typing.Optional[str] = OMIT, - aaguid: typing.Optional[str] = OMIT, - relying_party_identifier: typing.Optional[str] = OMIT, - credential_device_type: typing.Optional[CredentialDeviceTypeEnum] = OMIT, - credential_backed_up: typing.Optional[bool] = OMIT, - identity_user_id: typing.Optional[str] = OMIT, - user_agent: typing.Optional[str] = OMIT, - user_handle: typing.Optional[str] = OMIT, - transports: typing.Optional[typing.Sequence[str]] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[CreateUserAuthenticationMethodResponseContent]: - """ - Create an authentication method. Authentication methods created via this endpoint will be auto confirmed and should already have verification completed. - - Parameters - ---------- - id : str - The ID of the user to whom the new authentication method will be assigned. - - type : CreatedUserAuthenticationMethodTypeEnum - - name : typing.Optional[str] - A human-readable label to identify the authentication method. - - totp_secret : typing.Optional[str] - Base32 encoded secret for TOTP generation. - - phone_number : typing.Optional[str] - Applies to phone authentication methods only. The destination phone number used to send verification codes via text and voice. - - email : typing.Optional[str] - Applies to email authentication methods only. The email address used to send verification messages. - - preferred_authentication_method : typing.Optional[PreferredAuthenticationMethodEnum] - - key_id : typing.Optional[str] - Applies to webauthn/passkey authentication methods only. The id of the credential. - - public_key : typing.Optional[str] - Applies to webauthn/passkey authentication methods only. The public key, which is encoded as base64. - - aaguid : typing.Optional[str] - Applies to passkeys only. Authenticator Attestation Globally Unique Identifier - - relying_party_identifier : typing.Optional[str] - Applies to webauthn authentication methods only. The relying party identifier. - - credential_device_type : typing.Optional[CredentialDeviceTypeEnum] - - credential_backed_up : typing.Optional[bool] - Applies to passkeys only. Whether the credential was backed up. - - identity_user_id : typing.Optional[str] - Applies to passkeys only. The ID of the user identity linked with the authentication method. - - user_agent : typing.Optional[str] - Applies to passkeys only. The user-agent of the browser used to create the passkey. - - user_handle : typing.Optional[str] - Applies to passkeys only. The user handle of the user identity. - - transports : typing.Optional[typing.Sequence[str]] - Applies to passkeys only. The transports used by clients to communicate with the authenticator. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CreateUserAuthenticationMethodResponseContent] - Authentication method created. - """ - _response = await self._client_wrapper.httpx_client.request( - f"users/{quote_path_param(id)}/authentication-methods", - method="POST", - json={ - "type": type, - "name": name, - "totp_secret": totp_secret, - "phone_number": phone_number, - "email": email, - "preferred_authentication_method": preferred_authentication_method, - "key_id": key_id, - "public_key": public_key, - "aaguid": aaguid, - "relying_party_identifier": relying_party_identifier, - "credential_device_type": credential_device_type, - "credential_backed_up": credential_backed_up, - "identity_user_id": identity_user_id, - "user_agent": user_agent, - "user_handle": user_handle, - "transports": transports, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateUserAuthenticationMethodResponseContent, - parse_obj_as( - type_=CreateUserAuthenticationMethodResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def set( - self, - id: str, - *, - request: SetUserAuthenticationMethodsRequestContent, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[typing.List[SetUserAuthenticationMethodResponseContent]]: - """ - Replace the specified user authentication methods with supplied values. - - Note: Authentication methods supplied through this action do not iterate on existing methods. Instead, any methods passed will overwrite the user’s existing settings. - - Parameters - ---------- - id : str - The ID of the user in question. - - request : SetUserAuthenticationMethodsRequestContent - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[typing.List[SetUserAuthenticationMethodResponseContent]] - All authentication methods successfully updated. - """ - _response = await self._client_wrapper.httpx_client.request( - f"users/{quote_path_param(id)}/authentication-methods", - method="PUT", - json=convert_and_respect_annotation_metadata( - object_=request, annotation=SetUserAuthenticationMethodsRequestContent, direction="write" - ), - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - typing.List[SetUserAuthenticationMethodResponseContent], - parse_obj_as( - type_=typing.List[SetUserAuthenticationMethodResponseContent], # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def delete_all( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Remove all authentication methods (i.e., enrolled MFA factors) from the specified user account. This action cannot be undone. - - Parameters - ---------- - id : str - The ID of the user in question. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"users/{quote_path_param(id)}/authentication-methods", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def get( - self, id: str, authentication_method_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetUserAuthenticationMethodResponseContent]: - """ - Parameters - ---------- - id : str - The ID of the user in question. - - authentication_method_id : str - The ID of the authentication methods in question. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetUserAuthenticationMethodResponseContent] - Authentication method retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - f"users/{quote_path_param(id)}/authentication-methods/{quote_path_param(authentication_method_id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetUserAuthenticationMethodResponseContent, - parse_obj_as( - type_=GetUserAuthenticationMethodResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def delete( - self, id: str, authentication_method_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Remove the authentication method with the given ID from the specified user. For more information, review Manage Authentication Methods with Management API. - - Parameters - ---------- - id : str - The ID of the user in question. - - authentication_method_id : str - The ID of the authentication method to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"users/{quote_path_param(id)}/authentication-methods/{quote_path_param(authentication_method_id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def update( - self, - id: str, - authentication_method_id: str, - *, - name: typing.Optional[str] = OMIT, - preferred_authentication_method: typing.Optional[PreferredAuthenticationMethodEnum] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[UpdateUserAuthenticationMethodResponseContent]: - """ - Modify the authentication method with the given ID from the specified user. For more information, review Manage Authentication Methods with Management API. - - Parameters - ---------- - id : str - The ID of the user in question. - - authentication_method_id : str - The ID of the authentication method to update. - - name : typing.Optional[str] - A human-readable label to identify the authentication method. - - preferred_authentication_method : typing.Optional[PreferredAuthenticationMethodEnum] - Preferred phone authentication method - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[UpdateUserAuthenticationMethodResponseContent] - Authentication method updated. - """ - _response = await self._client_wrapper.httpx_client.request( - f"users/{quote_path_param(id)}/authentication-methods/{quote_path_param(authentication_method_id)}", - method="PATCH", - json={ - "name": name, - "preferred_authentication_method": preferred_authentication_method, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateUserAuthenticationMethodResponseContent, - parse_obj_as( - type_=UpdateUserAuthenticationMethodResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/users/authenticators/__init__.py b/src/auth0/management/users/authenticators/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/users/authenticators/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/users/authenticators/client.py b/src/auth0/management/users/authenticators/client.py deleted file mode 100644 index e4af1008..00000000 --- a/src/auth0/management/users/authenticators/client.py +++ /dev/null @@ -1,107 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.request_options import RequestOptions -from .raw_client import AsyncRawAuthenticatorsClient, RawAuthenticatorsClient - - -class AuthenticatorsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawAuthenticatorsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawAuthenticatorsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawAuthenticatorsClient - """ - return self._raw_client - - def delete_all(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Remove all authenticators registered to a given user ID, such as OTP, email, phone, and push-notification. This action cannot be undone. For more information, review [Manage Authentication Methods with Management API](https://auth0.com/docs/secure/multi-factor-authentication/manage-mfa-auth0-apis/manage-authentication-methods-with-management-api). - - Parameters - ---------- - id : str - ID of the user to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.users.authenticators.delete_all( - id="id", - ) - """ - _response = self._raw_client.delete_all(id, request_options=request_options) - return _response.data - - -class AsyncAuthenticatorsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawAuthenticatorsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawAuthenticatorsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawAuthenticatorsClient - """ - return self._raw_client - - async def delete_all(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Remove all authenticators registered to a given user ID, such as OTP, email, phone, and push-notification. This action cannot be undone. For more information, review [Manage Authentication Methods with Management API](https://auth0.com/docs/secure/multi-factor-authentication/manage-mfa-auth0-apis/manage-authentication-methods-with-management-api). - - Parameters - ---------- - id : str - ID of the user to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.users.authenticators.delete_all( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete_all(id, request_options=request_options) - return _response.data diff --git a/src/auth0/management/users/authenticators/raw_client.py b/src/auth0/management/users/authenticators/raw_client.py deleted file mode 100644 index 863b5427..00000000 --- a/src/auth0/management/users/authenticators/raw_client.py +++ /dev/null @@ -1,183 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ...core.api_error import ApiError -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.http_response import AsyncHttpResponse, HttpResponse -from ...core.jsonable_encoder import quote_path_param -from ...core.parse_error import ParsingError -from ...core.pydantic_utilities import parse_obj_as -from ...core.request_options import RequestOptions -from ...errors.bad_request_error import BadRequestError -from ...errors.forbidden_error import ForbiddenError -from ...errors.too_many_requests_error import TooManyRequestsError -from ...errors.unauthorized_error import UnauthorizedError -from pydantic import ValidationError - - -class RawAuthenticatorsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def delete_all(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[None]: - """ - Remove all authenticators registered to a given user ID, such as OTP, email, phone, and push-notification. This action cannot be undone. For more information, review [Manage Authentication Methods with Management API](https://auth0.com/docs/secure/multi-factor-authentication/manage-mfa-auth0-apis/manage-authentication-methods-with-management-api). - - Parameters - ---------- - id : str - ID of the user to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"users/{quote_path_param(id)}/authenticators", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawAuthenticatorsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def delete_all( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Remove all authenticators registered to a given user ID, such as OTP, email, phone, and push-notification. This action cannot be undone. For more information, review [Manage Authentication Methods with Management API](https://auth0.com/docs/secure/multi-factor-authentication/manage-mfa-auth0-apis/manage-authentication-methods-with-management-api). - - Parameters - ---------- - id : str - ID of the user to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"users/{quote_path_param(id)}/authenticators", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/users/client.py b/src/auth0/management/users/client.py deleted file mode 100644 index d87146b8..00000000 --- a/src/auth0/management/users/client.py +++ /dev/null @@ -1,1980 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.pagination import AsyncPager, SyncPager -from ..core.request_options import RequestOptions -from ..types.app_metadata import AppMetadata -from ..types.consent_signing_key import ConsentSigningKey -from ..types.create_user_response_content import CreateUserResponseContent -from ..types.get_user_response_content import GetUserResponseContent -from ..types.list_user_consent_signing_keys_response_content import ListUserConsentSigningKeysResponseContent -from ..types.list_users_offset_paginated_response_content import ListUsersOffsetPaginatedResponseContent -from ..types.regenerate_users_recovery_code_response_content import RegenerateUsersRecoveryCodeResponseContent -from ..types.search_engine_versions_enum import SearchEngineVersionsEnum -from ..types.update_user_response_content import UpdateUserResponseContent -from ..types.user_metadata import UserMetadata -from ..types.user_response_schema import UserResponseSchema -from .raw_client import AsyncRawUsersClient, RawUsersClient - -if typing.TYPE_CHECKING: - from .authentication_methods.client import AsyncAuthenticationMethodsClient, AuthenticationMethodsClient - from .authenticators.client import AsyncAuthenticatorsClient, AuthenticatorsClient - from .connected_accounts.client import AsyncConnectedAccountsClient, ConnectedAccountsClient - from .effective_permissions.client import AsyncEffectivePermissionsClient, EffectivePermissionsClient - from .effective_roles.client import AsyncEffectiveRolesClient, EffectiveRolesClient - from .enrollments.client import AsyncEnrollmentsClient, EnrollmentsClient - from .groups.client import AsyncGroupsClient, GroupsClient - from .identities.client import AsyncIdentitiesClient, IdentitiesClient - from .logs.client import AsyncLogsClient, LogsClient - from .multifactor.client import AsyncMultifactorClient, MultifactorClient - from .organizations.client import AsyncOrganizationsClient, OrganizationsClient - from .permissions.client import AsyncPermissionsClient, PermissionsClient - from .refresh_token.client import AsyncRefreshTokenClient, RefreshTokenClient - from .risk_assessments.client import AsyncRiskAssessmentsClient, RiskAssessmentsClient - from .roles.client import AsyncRolesClient, RolesClient - from .sessions.client import AsyncSessionsClient, SessionsClient -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class UsersClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawUsersClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._authentication_methods: typing.Optional[AuthenticationMethodsClient] = None - self._authenticators: typing.Optional[AuthenticatorsClient] = None - self._connected_accounts: typing.Optional[ConnectedAccountsClient] = None - self._effective_permissions: typing.Optional[EffectivePermissionsClient] = None - self._effective_roles: typing.Optional[EffectiveRolesClient] = None - self._enrollments: typing.Optional[EnrollmentsClient] = None - self._groups: typing.Optional[GroupsClient] = None - self._identities: typing.Optional[IdentitiesClient] = None - self._logs: typing.Optional[LogsClient] = None - self._multifactor: typing.Optional[MultifactorClient] = None - self._organizations: typing.Optional[OrganizationsClient] = None - self._permissions: typing.Optional[PermissionsClient] = None - self._risk_assessments: typing.Optional[RiskAssessmentsClient] = None - self._roles: typing.Optional[RolesClient] = None - self._refresh_token: typing.Optional[RefreshTokenClient] = None - self._sessions: typing.Optional[SessionsClient] = None - - @property - def with_raw_response(self) -> RawUsersClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawUsersClient - """ - return self._raw_client - - def list( - self, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - include_totals: typing.Optional[bool] = True, - sort: typing.Optional[str] = None, - connection: typing.Optional[str] = None, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - q: typing.Optional[str] = None, - search_engine: typing.Optional[SearchEngineVersionsEnum] = None, - primary_order: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[UserResponseSchema, ListUsersOffsetPaginatedResponseContent]: - """ - This endpoint retrieves details of users. It's best suited to interactive, best-effort search and lookups where slightly stale results are acceptable. With it, you can: - - - Specify search criteria for users - - Sort the users to be returned - - Select the fields to be returned - - Specify the number of users to retrieve per page and the page index - - This endpoint is **not suited for use in critical paths**. It is eventually consistent and runs under a short (~2 second) query time limit, so results can be stale and heavy queries can return a 503. - - - Do not use this endpoint for authentication, account linking, or logic inside login-flow Actions. Instead, [look users up directly by ID or email](https://auth0.com/docs/manage-users/user-search/get-users-by-id-or-email#management-api) to get their current state. - - Do not use this endpoint to keep an external system in sync with user data. Instead, subscribe to [Event Streams](https://auth0.com/docs/customize/events/sync-data-across-systems) to receive every change as it happens. - - Do not use this endpoint to enumerate or export your entire user base. Instead, run a [bulk user export](https://auth0.com/docs/manage-users/user-migration/bulk-user-exports) to retrieve the full set. - - Use the `q` query parameter to match users with [query string syntax](https://auth0.com/docs/manage-users/user-search/user-search-query-syntax). For full instructions and guidance, see [How to List and Search Users](https://auth0.com/docs/manage-users/user-search/list-and-search-users). - - For efficient queries, prefer indexed top-level fields and exact matches. Certain kinds of queries can be slow and may time out, such as filtering on freeform or multi-value fields (like user-defined attributes in `app_metadata` or `user_metadata`) or using leading wildcards. - - Parameters - ---------- - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - sort : typing.Optional[str] - Field to sort by. Use field:order where order is 1 for ascending and -1 for descending. e.g. created_at:1 - - connection : typing.Optional[str] - Connection filter. Only applies when using search_engine=v1. To filter by connection with search_engine=v2|v3, use q=identities.connection:"connection_name" - - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). - - q : typing.Optional[str] - Query in Lucene query string syntax. Some query types cannot be used on metadata fields, for details see Searchable Fields. - - search_engine : typing.Optional[SearchEngineVersionsEnum] - The version of the search engine - - primary_order : typing.Optional[bool] - If true (default), results are returned in a deterministic order. If false, results may be returned in a non-deterministic order, which can enhance performance for complex queries targeting a small number of users. Set to false only when consistent ordering and pagination is not required. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[UserResponseSchema, ListUsersOffsetPaginatedResponseContent] - Users successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.users.list( - page=1, - per_page=1, - include_totals=True, - sort="sort", - connection="connection", - fields="fields", - include_fields=True, - q="q", - search_engine="v1", - primary_order=True, - ) - for item in response: - yield item - # alternatively, you can paginate page-by-page - for page in response.iter_pages(): - yield page - """ - return self._raw_client.list( - page=page, - per_page=per_page, - include_totals=include_totals, - sort=sort, - connection=connection, - fields=fields, - include_fields=include_fields, - q=q, - search_engine=search_engine, - primary_order=primary_order, - request_options=request_options, - ) - - def create( - self, - *, - connection: str, - email: typing.Optional[str] = OMIT, - phone_number: typing.Optional[str] = OMIT, - user_metadata: typing.Optional[UserMetadata] = OMIT, - blocked: typing.Optional[bool] = OMIT, - email_verified: typing.Optional[bool] = OMIT, - phone_verified: typing.Optional[bool] = OMIT, - app_metadata: typing.Optional[AppMetadata] = OMIT, - given_name: typing.Optional[str] = OMIT, - family_name: typing.Optional[str] = OMIT, - name: typing.Optional[str] = OMIT, - nickname: typing.Optional[str] = OMIT, - picture: typing.Optional[str] = OMIT, - user_id: typing.Optional[str] = OMIT, - password: typing.Optional[str] = OMIT, - verify_email: typing.Optional[bool] = OMIT, - username: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateUserResponseContent: - """ - Create a new user for a given [database](https://auth0.com/docs/connections/database) or [passwordless](https://auth0.com/docs/connections/passwordless) connection. - - Note: `connection` is required but other parameters such as `email` and `password` are dependent upon the type of connection. - - Parameters - ---------- - connection : str - Name of the connection this user should be created in. - - email : typing.Optional[str] - The user's email. - - phone_number : typing.Optional[str] - The user's phone number (following the E.164 recommendation). - - user_metadata : typing.Optional[UserMetadata] - - blocked : typing.Optional[bool] - Whether this user was blocked by an administrator (true) or not (false). - - email_verified : typing.Optional[bool] - Whether this email address is verified (true) or unverified (false). User will receive a verification email after creation if `email_verified` is false or not specified - - phone_verified : typing.Optional[bool] - Whether this phone number has been verified (true) or not (false). - - app_metadata : typing.Optional[AppMetadata] - - given_name : typing.Optional[str] - The user's given name(s). - - family_name : typing.Optional[str] - The user's family name(s). - - name : typing.Optional[str] - The user's full name. - - nickname : typing.Optional[str] - The user's nickname. - - picture : typing.Optional[str] - A URI pointing to the user's picture. - - user_id : typing.Optional[str] - The external user's id provided by the identity provider. - - password : typing.Optional[str] - Initial password for this user. Only valid for auth0 connection strategy. - - verify_email : typing.Optional[bool] - Whether the user will receive a verification email after creation (true) or no email (false). Overrides behavior of `email_verified` parameter. - - username : typing.Optional[str] - The user's username. Only valid if the connection requires a username. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateUserResponseContent - User successfully created. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.users.create( - connection="connection", - ) - """ - _response = self._raw_client.create( - connection=connection, - email=email, - phone_number=phone_number, - user_metadata=user_metadata, - blocked=blocked, - email_verified=email_verified, - phone_verified=phone_verified, - app_metadata=app_metadata, - given_name=given_name, - family_name=family_name, - name=name, - nickname=nickname, - picture=picture, - user_id=user_id, - password=password, - verify_email=verify_email, - username=username, - request_options=request_options, - ) - return _response.data - - def list_users_by_email( - self, - *, - email: str, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> typing.List[UserResponseSchema]: - """ - Find users by email. If Auth0 is the identity provider (idP), the email address associated with a user is saved in lower case, regardless of how you initially provided it. - - For example, if you register a user as JohnSmith@example.com, Auth0 saves the user's email as johnsmith@example.com. - - Therefore, when using this endpoint, make sure that you are searching for users via email addresses using the correct case. - - Parameters - ---------- - email : str - Email address to search for (case-sensitive). - - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). Defaults to true. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - typing.List[UserResponseSchema] - Users successfully searched. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.users.list_users_by_email( - fields="fields", - include_fields=True, - email="email", - ) - """ - _response = self._raw_client.list_users_by_email( - email=email, fields=fields, include_fields=include_fields, request_options=request_options - ) - return _response.data - - def get( - self, - id: str, - *, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> GetUserResponseContent: - """ - Retrieve user details. A list of fields to include or exclude may also be specified. For more information, see [Retrieve Users with the Get Users Endpoint](https://auth0.com/docs/manage-users/user-search/retrieve-users-with-get-users-endpoint). - - Parameters - ---------- - id : str - ID of the user to retrieve. - - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetUserResponseContent - User successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.users.get( - id="id", - fields="fields", - include_fields=True, - ) - """ - _response = self._raw_client.get( - id, fields=fields, include_fields=include_fields, request_options=request_options - ) - return _response.data - - def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete a user by user ID. This action cannot be undone. For Auth0 Dashboard instructions, see [Delete Users](https://auth0.com/docs/manage-users/user-accounts/delete-users). - - Parameters - ---------- - id : str - ID of the user to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.users.delete( - id="id", - ) - """ - _response = self._raw_client.delete(id, request_options=request_options) - return _response.data - - def update( - self, - id: str, - *, - blocked: typing.Optional[bool] = OMIT, - email_verified: typing.Optional[bool] = OMIT, - email: typing.Optional[str] = OMIT, - phone_number: typing.Optional[str] = OMIT, - phone_verified: typing.Optional[bool] = OMIT, - user_metadata: typing.Optional[UserMetadata] = OMIT, - app_metadata: typing.Optional[AppMetadata] = OMIT, - given_name: typing.Optional[str] = OMIT, - family_name: typing.Optional[str] = OMIT, - name: typing.Optional[str] = OMIT, - nickname: typing.Optional[str] = OMIT, - picture: typing.Optional[str] = OMIT, - verify_email: typing.Optional[bool] = OMIT, - verify_phone_number: typing.Optional[bool] = OMIT, - password: typing.Optional[str] = OMIT, - connection: typing.Optional[str] = OMIT, - client_id: typing.Optional[str] = OMIT, - username: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateUserResponseContent: - """ - Update a user. - - These are the attributes that can be updated at the root level: - - - app_metadata - - blocked - - email - - email_verified - - family_name - - given_name - - name - - nickname - - password - - phone_number - - phone_verified - - picture - - username - - user_metadata - - verify_email - - Some considerations: - - - The properties of the new object will replace the old ones. - - The metadata fields are an exception to this rule (`user_metadata` and `app_metadata`). These properties are merged instead of being replaced but be careful, the merge only occurs on the first level. - - If you are updating `email`, `email_verified`, `phone_number`, `phone_verified`, `username` or `password` of a secondary identity, you need to specify the `connection` property too. - - If you are updating `email` or `phone_number` you can specify, optionally, the `client_id` property. - - Updating `email_verified` is not supported for enterprise and passwordless sms connections. - - Updating the `blocked` to `false` does not affect the user's blocked state from an excessive amount of incorrectly provided credentials. Use the "Unblock a user" endpoint from the "User Blocks" API to change the user's state. - - Supported attributes can be unset by supplying `null` as the value. - - **Updating a field (non-metadata property)** - - To mark the email address of a user as verified, the body to send should be: - - ```json - { "email_verified": true } - ``` - - **Updating a user metadata root property** - - Let's assume that our test user has the following `user_metadata`: - - ```json - { "user_metadata" : { "profileCode": 1479 } } - ``` - - To add the field `addresses` the body to send should be: - - ```json - { "user_metadata" : { "addresses": {"work_address": "100 Industrial Way"} }} - ``` - - The modified object ends up with the following `user_metadata` property: - - ```json - { - "user_metadata": { - "profileCode": 1479, - "addresses": { "work_address": "100 Industrial Way" } - } - } - ``` - - **Updating an inner user metadata property** - - If there's existing user metadata to which we want to add `"home_address": "742 Evergreen Terrace"` (using the `addresses` property) we should send the whole `addresses` object. Since this is a first-level object, the object will be merged in, but its own properties will not be. The body to send should be: - - ```json - { - "user_metadata": { - "addresses": { - "work_address": "100 Industrial Way", - "home_address": "742 Evergreen Terrace" - } - } - } - ``` - - The modified object ends up with the following `user_metadata` property: - - ```json - { - "user_metadata": { - "profileCode": 1479, - "addresses": { - "work_address": "100 Industrial Way", - "home_address": "742 Evergreen Terrace" - } - } - } - ``` - - Parameters - ---------- - id : str - ID of the user to update. - - blocked : typing.Optional[bool] - Whether this user was blocked by an administrator (true) or not (false). - - email_verified : typing.Optional[bool] - Whether this email address is verified (true) or unverified (false). If set to false the user will not receive a verification email unless `verify_email` is set to true. - - email : typing.Optional[str] - Email address of this user. - - phone_number : typing.Optional[str] - The user's phone number (following the E.164 recommendation). - - phone_verified : typing.Optional[bool] - Whether this phone number has been verified (true) or not (false). - - user_metadata : typing.Optional[UserMetadata] - User metadata to which this user has read/write access. - - app_metadata : typing.Optional[AppMetadata] - User metadata to which this user has read-only access. - - given_name : typing.Optional[str] - Given name/first name/forename of this user. - - family_name : typing.Optional[str] - Family name/last name/surname of this user. - - name : typing.Optional[str] - Name of this user. - - nickname : typing.Optional[str] - Preferred nickname or alias of this user. - - picture : typing.Optional[str] - URL to picture, photo, or avatar of this user. - - verify_email : typing.Optional[bool] - Whether this user will receive a verification email after creation (true) or no email (false). Overrides behavior of `email_verified` parameter. - - verify_phone_number : typing.Optional[bool] - Whether this user will receive a text after changing the phone number (true) or no text (false). Only valid when changing phone number for SMS connections. - - password : typing.Optional[str] - New password for this user. Only valid for database connections. - - connection : typing.Optional[str] - Name of the connection to target for this user update. - - client_id : typing.Optional[str] - Auth0 client ID. Only valid when updating email address. - - username : typing.Optional[str] - The user's username. Only valid if the connection requires a username. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateUserResponseContent - User successfully updated. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.users.update( - id="id", - ) - """ - _response = self._raw_client.update( - id, - blocked=blocked, - email_verified=email_verified, - email=email, - phone_number=phone_number, - phone_verified=phone_verified, - user_metadata=user_metadata, - app_metadata=app_metadata, - given_name=given_name, - family_name=family_name, - name=name, - nickname=nickname, - picture=picture, - verify_email=verify_email, - verify_phone_number=verify_phone_number, - password=password, - connection=connection, - client_id=client_id, - username=username, - request_options=request_options, - ) - return _response.data - - def list_consent_signing_keys( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> ListUserConsentSigningKeysResponseContent: - """ - Retrieve all consent signing keys registered for a user. Returns an empty `keys` array when the user has no keys registered. - - Parameters - ---------- - id : str - The ID of the user. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - ListUserConsentSigningKeysResponseContent - The user's consent signing keys were returned. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.users.list_consent_signing_keys( - id="id", - ) - """ - _response = self._raw_client.list_consent_signing_keys(id, request_options=request_options) - return _response.data - - def get_consent_signing_key( - self, id: str, kid: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> ConsentSigningKey: - """ - Retrieve a single consent signing key for a user by its key identifier (kid). Returns 404 if the key does not exist. - - Parameters - ---------- - id : str - The ID of the user. - - kid : str - The key identifier of the consent signing key. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - ConsentSigningKey - The consent signing key was returned. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.users.get_consent_signing_key( - id="id", - kid="kid", - ) - """ - _response = self._raw_client.get_consent_signing_key(id, kid, request_options=request_options) - return _response.data - - def delete_consent_signing_key( - self, id: str, kid: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> None: - """ - Remove a single consent signing key for a user by its key identifier (kid). The operation is idempotent and returns 204 whether or not the key existed. - - Parameters - ---------- - id : str - The ID of the user. - - kid : str - The key identifier of the consent signing key. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.users.delete_consent_signing_key( - id="id", - kid="kid", - ) - """ - _response = self._raw_client.delete_consent_signing_key(id, kid, request_options=request_options) - return _response.data - - def regenerate_recovery_code( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> RegenerateUsersRecoveryCodeResponseContent: - """ - Remove an existing multi-factor authentication (MFA) [recovery code](https://auth0.com/docs/secure/multi-factor-authentication/reset-user-mfa) and generate a new one. If a user cannot access the original device or account used for MFA enrollment, they can use a recovery code to authenticate. - - Parameters - ---------- - id : str - ID of the user to regenerate a multi-factor authentication recovery code for. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - RegenerateUsersRecoveryCodeResponseContent - New recovery code successfully generated. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.users.regenerate_recovery_code( - id="id", - ) - """ - _response = self._raw_client.regenerate_recovery_code(id, request_options=request_options) - return _response.data - - def revoke_access( - self, - id: str, - *, - session_id: typing.Optional[str] = OMIT, - preserve_refresh_tokens: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> None: - """ - Revokes selected resources related to a user (sessions, refresh tokens, ...). - - Parameters - ---------- - id : str - ID of the user. - - session_id : typing.Optional[str] - ID of the session to revoke. - - preserve_refresh_tokens : typing.Optional[bool] - Whether to preserve the refresh tokens associated with the session. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.users.revoke_access( - id="id", - ) - """ - _response = self._raw_client.revoke_access( - id, session_id=session_id, preserve_refresh_tokens=preserve_refresh_tokens, request_options=request_options - ) - return _response.data - - @property - def authentication_methods(self): - if self._authentication_methods is None: - from .authentication_methods.client import AuthenticationMethodsClient # noqa: E402 - - self._authentication_methods = AuthenticationMethodsClient(client_wrapper=self._client_wrapper) - return self._authentication_methods - - @property - def authenticators(self): - if self._authenticators is None: - from .authenticators.client import AuthenticatorsClient # noqa: E402 - - self._authenticators = AuthenticatorsClient(client_wrapper=self._client_wrapper) - return self._authenticators - - @property - def connected_accounts(self): - if self._connected_accounts is None: - from .connected_accounts.client import ConnectedAccountsClient # noqa: E402 - - self._connected_accounts = ConnectedAccountsClient(client_wrapper=self._client_wrapper) - return self._connected_accounts - - @property - def effective_permissions(self): - if self._effective_permissions is None: - from .effective_permissions.client import EffectivePermissionsClient # noqa: E402 - - self._effective_permissions = EffectivePermissionsClient(client_wrapper=self._client_wrapper) - return self._effective_permissions - - @property - def effective_roles(self): - if self._effective_roles is None: - from .effective_roles.client import EffectiveRolesClient # noqa: E402 - - self._effective_roles = EffectiveRolesClient(client_wrapper=self._client_wrapper) - return self._effective_roles - - @property - def enrollments(self): - if self._enrollments is None: - from .enrollments.client import EnrollmentsClient # noqa: E402 - - self._enrollments = EnrollmentsClient(client_wrapper=self._client_wrapper) - return self._enrollments - - @property - def groups(self): - if self._groups is None: - from .groups.client import GroupsClient # noqa: E402 - - self._groups = GroupsClient(client_wrapper=self._client_wrapper) - return self._groups - - @property - def identities(self): - if self._identities is None: - from .identities.client import IdentitiesClient # noqa: E402 - - self._identities = IdentitiesClient(client_wrapper=self._client_wrapper) - return self._identities - - @property - def logs(self): - if self._logs is None: - from .logs.client import LogsClient # noqa: E402 - - self._logs = LogsClient(client_wrapper=self._client_wrapper) - return self._logs - - @property - def multifactor(self): - if self._multifactor is None: - from .multifactor.client import MultifactorClient # noqa: E402 - - self._multifactor = MultifactorClient(client_wrapper=self._client_wrapper) - return self._multifactor - - @property - def organizations(self): - if self._organizations is None: - from .organizations.client import OrganizationsClient # noqa: E402 - - self._organizations = OrganizationsClient(client_wrapper=self._client_wrapper) - return self._organizations - - @property - def permissions(self): - if self._permissions is None: - from .permissions.client import PermissionsClient # noqa: E402 - - self._permissions = PermissionsClient(client_wrapper=self._client_wrapper) - return self._permissions - - @property - def risk_assessments(self): - if self._risk_assessments is None: - from .risk_assessments.client import RiskAssessmentsClient # noqa: E402 - - self._risk_assessments = RiskAssessmentsClient(client_wrapper=self._client_wrapper) - return self._risk_assessments - - @property - def roles(self): - if self._roles is None: - from .roles.client import RolesClient # noqa: E402 - - self._roles = RolesClient(client_wrapper=self._client_wrapper) - return self._roles - - @property - def refresh_token(self): - if self._refresh_token is None: - from .refresh_token.client import RefreshTokenClient # noqa: E402 - - self._refresh_token = RefreshTokenClient(client_wrapper=self._client_wrapper) - return self._refresh_token - - @property - def sessions(self): - if self._sessions is None: - from .sessions.client import SessionsClient # noqa: E402 - - self._sessions = SessionsClient(client_wrapper=self._client_wrapper) - return self._sessions - - -class AsyncUsersClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawUsersClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._authentication_methods: typing.Optional[AsyncAuthenticationMethodsClient] = None - self._authenticators: typing.Optional[AsyncAuthenticatorsClient] = None - self._connected_accounts: typing.Optional[AsyncConnectedAccountsClient] = None - self._effective_permissions: typing.Optional[AsyncEffectivePermissionsClient] = None - self._effective_roles: typing.Optional[AsyncEffectiveRolesClient] = None - self._enrollments: typing.Optional[AsyncEnrollmentsClient] = None - self._groups: typing.Optional[AsyncGroupsClient] = None - self._identities: typing.Optional[AsyncIdentitiesClient] = None - self._logs: typing.Optional[AsyncLogsClient] = None - self._multifactor: typing.Optional[AsyncMultifactorClient] = None - self._organizations: typing.Optional[AsyncOrganizationsClient] = None - self._permissions: typing.Optional[AsyncPermissionsClient] = None - self._risk_assessments: typing.Optional[AsyncRiskAssessmentsClient] = None - self._roles: typing.Optional[AsyncRolesClient] = None - self._refresh_token: typing.Optional[AsyncRefreshTokenClient] = None - self._sessions: typing.Optional[AsyncSessionsClient] = None - - @property - def with_raw_response(self) -> AsyncRawUsersClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawUsersClient - """ - return self._raw_client - - async def list( - self, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - include_totals: typing.Optional[bool] = True, - sort: typing.Optional[str] = None, - connection: typing.Optional[str] = None, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - q: typing.Optional[str] = None, - search_engine: typing.Optional[SearchEngineVersionsEnum] = None, - primary_order: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[UserResponseSchema, ListUsersOffsetPaginatedResponseContent]: - """ - This endpoint retrieves details of users. It's best suited to interactive, best-effort search and lookups where slightly stale results are acceptable. With it, you can: - - - Specify search criteria for users - - Sort the users to be returned - - Select the fields to be returned - - Specify the number of users to retrieve per page and the page index - - This endpoint is **not suited for use in critical paths**. It is eventually consistent and runs under a short (~2 second) query time limit, so results can be stale and heavy queries can return a 503. - - - Do not use this endpoint for authentication, account linking, or logic inside login-flow Actions. Instead, [look users up directly by ID or email](https://auth0.com/docs/manage-users/user-search/get-users-by-id-or-email#management-api) to get their current state. - - Do not use this endpoint to keep an external system in sync with user data. Instead, subscribe to [Event Streams](https://auth0.com/docs/customize/events/sync-data-across-systems) to receive every change as it happens. - - Do not use this endpoint to enumerate or export your entire user base. Instead, run a [bulk user export](https://auth0.com/docs/manage-users/user-migration/bulk-user-exports) to retrieve the full set. - - Use the `q` query parameter to match users with [query string syntax](https://auth0.com/docs/manage-users/user-search/user-search-query-syntax). For full instructions and guidance, see [How to List and Search Users](https://auth0.com/docs/manage-users/user-search/list-and-search-users). - - For efficient queries, prefer indexed top-level fields and exact matches. Certain kinds of queries can be slow and may time out, such as filtering on freeform or multi-value fields (like user-defined attributes in `app_metadata` or `user_metadata`) or using leading wildcards. - - Parameters - ---------- - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - sort : typing.Optional[str] - Field to sort by. Use field:order where order is 1 for ascending and -1 for descending. e.g. created_at:1 - - connection : typing.Optional[str] - Connection filter. Only applies when using search_engine=v1. To filter by connection with search_engine=v2|v3, use q=identities.connection:"connection_name" - - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). - - q : typing.Optional[str] - Query in Lucene query string syntax. Some query types cannot be used on metadata fields, for details see Searchable Fields. - - search_engine : typing.Optional[SearchEngineVersionsEnum] - The version of the search engine - - primary_order : typing.Optional[bool] - If true (default), results are returned in a deterministic order. If false, results may be returned in a non-deterministic order, which can enhance performance for complex queries targeting a small number of users. Set to false only when consistent ordering and pagination is not required. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[UserResponseSchema, ListUsersOffsetPaginatedResponseContent] - Users successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.users.list( - page=1, - per_page=1, - include_totals=True, - sort="sort", - connection="connection", - fields="fields", - include_fields=True, - q="q", - search_engine="v1", - primary_order=True, - ) - async for item in response: - yield item - - # alternatively, you can paginate page-by-page - async for page in response.iter_pages(): - yield page - - - asyncio.run(main()) - """ - return await self._raw_client.list( - page=page, - per_page=per_page, - include_totals=include_totals, - sort=sort, - connection=connection, - fields=fields, - include_fields=include_fields, - q=q, - search_engine=search_engine, - primary_order=primary_order, - request_options=request_options, - ) - - async def create( - self, - *, - connection: str, - email: typing.Optional[str] = OMIT, - phone_number: typing.Optional[str] = OMIT, - user_metadata: typing.Optional[UserMetadata] = OMIT, - blocked: typing.Optional[bool] = OMIT, - email_verified: typing.Optional[bool] = OMIT, - phone_verified: typing.Optional[bool] = OMIT, - app_metadata: typing.Optional[AppMetadata] = OMIT, - given_name: typing.Optional[str] = OMIT, - family_name: typing.Optional[str] = OMIT, - name: typing.Optional[str] = OMIT, - nickname: typing.Optional[str] = OMIT, - picture: typing.Optional[str] = OMIT, - user_id: typing.Optional[str] = OMIT, - password: typing.Optional[str] = OMIT, - verify_email: typing.Optional[bool] = OMIT, - username: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateUserResponseContent: - """ - Create a new user for a given [database](https://auth0.com/docs/connections/database) or [passwordless](https://auth0.com/docs/connections/passwordless) connection. - - Note: `connection` is required but other parameters such as `email` and `password` are dependent upon the type of connection. - - Parameters - ---------- - connection : str - Name of the connection this user should be created in. - - email : typing.Optional[str] - The user's email. - - phone_number : typing.Optional[str] - The user's phone number (following the E.164 recommendation). - - user_metadata : typing.Optional[UserMetadata] - - blocked : typing.Optional[bool] - Whether this user was blocked by an administrator (true) or not (false). - - email_verified : typing.Optional[bool] - Whether this email address is verified (true) or unverified (false). User will receive a verification email after creation if `email_verified` is false or not specified - - phone_verified : typing.Optional[bool] - Whether this phone number has been verified (true) or not (false). - - app_metadata : typing.Optional[AppMetadata] - - given_name : typing.Optional[str] - The user's given name(s). - - family_name : typing.Optional[str] - The user's family name(s). - - name : typing.Optional[str] - The user's full name. - - nickname : typing.Optional[str] - The user's nickname. - - picture : typing.Optional[str] - A URI pointing to the user's picture. - - user_id : typing.Optional[str] - The external user's id provided by the identity provider. - - password : typing.Optional[str] - Initial password for this user. Only valid for auth0 connection strategy. - - verify_email : typing.Optional[bool] - Whether the user will receive a verification email after creation (true) or no email (false). Overrides behavior of `email_verified` parameter. - - username : typing.Optional[str] - The user's username. Only valid if the connection requires a username. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateUserResponseContent - User successfully created. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.users.create( - connection="connection", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - connection=connection, - email=email, - phone_number=phone_number, - user_metadata=user_metadata, - blocked=blocked, - email_verified=email_verified, - phone_verified=phone_verified, - app_metadata=app_metadata, - given_name=given_name, - family_name=family_name, - name=name, - nickname=nickname, - picture=picture, - user_id=user_id, - password=password, - verify_email=verify_email, - username=username, - request_options=request_options, - ) - return _response.data - - async def list_users_by_email( - self, - *, - email: str, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> typing.List[UserResponseSchema]: - """ - Find users by email. If Auth0 is the identity provider (idP), the email address associated with a user is saved in lower case, regardless of how you initially provided it. - - For example, if you register a user as JohnSmith@example.com, Auth0 saves the user's email as johnsmith@example.com. - - Therefore, when using this endpoint, make sure that you are searching for users via email addresses using the correct case. - - Parameters - ---------- - email : str - Email address to search for (case-sensitive). - - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). Defaults to true. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - typing.List[UserResponseSchema] - Users successfully searched. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.users.list_users_by_email( - fields="fields", - include_fields=True, - email="email", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list_users_by_email( - email=email, fields=fields, include_fields=include_fields, request_options=request_options - ) - return _response.data - - async def get( - self, - id: str, - *, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> GetUserResponseContent: - """ - Retrieve user details. A list of fields to include or exclude may also be specified. For more information, see [Retrieve Users with the Get Users Endpoint](https://auth0.com/docs/manage-users/user-search/retrieve-users-with-get-users-endpoint). - - Parameters - ---------- - id : str - ID of the user to retrieve. - - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetUserResponseContent - User successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.users.get( - id="id", - fields="fields", - include_fields=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.get( - id, fields=fields, include_fields=include_fields, request_options=request_options - ) - return _response.data - - async def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete a user by user ID. This action cannot be undone. For Auth0 Dashboard instructions, see [Delete Users](https://auth0.com/docs/manage-users/user-accounts/delete-users). - - Parameters - ---------- - id : str - ID of the user to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.users.delete( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete(id, request_options=request_options) - return _response.data - - async def update( - self, - id: str, - *, - blocked: typing.Optional[bool] = OMIT, - email_verified: typing.Optional[bool] = OMIT, - email: typing.Optional[str] = OMIT, - phone_number: typing.Optional[str] = OMIT, - phone_verified: typing.Optional[bool] = OMIT, - user_metadata: typing.Optional[UserMetadata] = OMIT, - app_metadata: typing.Optional[AppMetadata] = OMIT, - given_name: typing.Optional[str] = OMIT, - family_name: typing.Optional[str] = OMIT, - name: typing.Optional[str] = OMIT, - nickname: typing.Optional[str] = OMIT, - picture: typing.Optional[str] = OMIT, - verify_email: typing.Optional[bool] = OMIT, - verify_phone_number: typing.Optional[bool] = OMIT, - password: typing.Optional[str] = OMIT, - connection: typing.Optional[str] = OMIT, - client_id: typing.Optional[str] = OMIT, - username: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateUserResponseContent: - """ - Update a user. - - These are the attributes that can be updated at the root level: - - - app_metadata - - blocked - - email - - email_verified - - family_name - - given_name - - name - - nickname - - password - - phone_number - - phone_verified - - picture - - username - - user_metadata - - verify_email - - Some considerations: - - - The properties of the new object will replace the old ones. - - The metadata fields are an exception to this rule (`user_metadata` and `app_metadata`). These properties are merged instead of being replaced but be careful, the merge only occurs on the first level. - - If you are updating `email`, `email_verified`, `phone_number`, `phone_verified`, `username` or `password` of a secondary identity, you need to specify the `connection` property too. - - If you are updating `email` or `phone_number` you can specify, optionally, the `client_id` property. - - Updating `email_verified` is not supported for enterprise and passwordless sms connections. - - Updating the `blocked` to `false` does not affect the user's blocked state from an excessive amount of incorrectly provided credentials. Use the "Unblock a user" endpoint from the "User Blocks" API to change the user's state. - - Supported attributes can be unset by supplying `null` as the value. - - **Updating a field (non-metadata property)** - - To mark the email address of a user as verified, the body to send should be: - - ```json - { "email_verified": true } - ``` - - **Updating a user metadata root property** - - Let's assume that our test user has the following `user_metadata`: - - ```json - { "user_metadata" : { "profileCode": 1479 } } - ``` - - To add the field `addresses` the body to send should be: - - ```json - { "user_metadata" : { "addresses": {"work_address": "100 Industrial Way"} }} - ``` - - The modified object ends up with the following `user_metadata` property: - - ```json - { - "user_metadata": { - "profileCode": 1479, - "addresses": { "work_address": "100 Industrial Way" } - } - } - ``` - - **Updating an inner user metadata property** - - If there's existing user metadata to which we want to add `"home_address": "742 Evergreen Terrace"` (using the `addresses` property) we should send the whole `addresses` object. Since this is a first-level object, the object will be merged in, but its own properties will not be. The body to send should be: - - ```json - { - "user_metadata": { - "addresses": { - "work_address": "100 Industrial Way", - "home_address": "742 Evergreen Terrace" - } - } - } - ``` - - The modified object ends up with the following `user_metadata` property: - - ```json - { - "user_metadata": { - "profileCode": 1479, - "addresses": { - "work_address": "100 Industrial Way", - "home_address": "742 Evergreen Terrace" - } - } - } - ``` - - Parameters - ---------- - id : str - ID of the user to update. - - blocked : typing.Optional[bool] - Whether this user was blocked by an administrator (true) or not (false). - - email_verified : typing.Optional[bool] - Whether this email address is verified (true) or unverified (false). If set to false the user will not receive a verification email unless `verify_email` is set to true. - - email : typing.Optional[str] - Email address of this user. - - phone_number : typing.Optional[str] - The user's phone number (following the E.164 recommendation). - - phone_verified : typing.Optional[bool] - Whether this phone number has been verified (true) or not (false). - - user_metadata : typing.Optional[UserMetadata] - User metadata to which this user has read/write access. - - app_metadata : typing.Optional[AppMetadata] - User metadata to which this user has read-only access. - - given_name : typing.Optional[str] - Given name/first name/forename of this user. - - family_name : typing.Optional[str] - Family name/last name/surname of this user. - - name : typing.Optional[str] - Name of this user. - - nickname : typing.Optional[str] - Preferred nickname or alias of this user. - - picture : typing.Optional[str] - URL to picture, photo, or avatar of this user. - - verify_email : typing.Optional[bool] - Whether this user will receive a verification email after creation (true) or no email (false). Overrides behavior of `email_verified` parameter. - - verify_phone_number : typing.Optional[bool] - Whether this user will receive a text after changing the phone number (true) or no text (false). Only valid when changing phone number for SMS connections. - - password : typing.Optional[str] - New password for this user. Only valid for database connections. - - connection : typing.Optional[str] - Name of the connection to target for this user update. - - client_id : typing.Optional[str] - Auth0 client ID. Only valid when updating email address. - - username : typing.Optional[str] - The user's username. Only valid if the connection requires a username. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateUserResponseContent - User successfully updated. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.users.update( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.update( - id, - blocked=blocked, - email_verified=email_verified, - email=email, - phone_number=phone_number, - phone_verified=phone_verified, - user_metadata=user_metadata, - app_metadata=app_metadata, - given_name=given_name, - family_name=family_name, - name=name, - nickname=nickname, - picture=picture, - verify_email=verify_email, - verify_phone_number=verify_phone_number, - password=password, - connection=connection, - client_id=client_id, - username=username, - request_options=request_options, - ) - return _response.data - - async def list_consent_signing_keys( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> ListUserConsentSigningKeysResponseContent: - """ - Retrieve all consent signing keys registered for a user. Returns an empty `keys` array when the user has no keys registered. - - Parameters - ---------- - id : str - The ID of the user. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - ListUserConsentSigningKeysResponseContent - The user's consent signing keys were returned. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.users.list_consent_signing_keys( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list_consent_signing_keys(id, request_options=request_options) - return _response.data - - async def get_consent_signing_key( - self, id: str, kid: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> ConsentSigningKey: - """ - Retrieve a single consent signing key for a user by its key identifier (kid). Returns 404 if the key does not exist. - - Parameters - ---------- - id : str - The ID of the user. - - kid : str - The key identifier of the consent signing key. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - ConsentSigningKey - The consent signing key was returned. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.users.get_consent_signing_key( - id="id", - kid="kid", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.get_consent_signing_key(id, kid, request_options=request_options) - return _response.data - - async def delete_consent_signing_key( - self, id: str, kid: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> None: - """ - Remove a single consent signing key for a user by its key identifier (kid). The operation is idempotent and returns 204 whether or not the key existed. - - Parameters - ---------- - id : str - The ID of the user. - - kid : str - The key identifier of the consent signing key. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.users.delete_consent_signing_key( - id="id", - kid="kid", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete_consent_signing_key(id, kid, request_options=request_options) - return _response.data - - async def regenerate_recovery_code( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> RegenerateUsersRecoveryCodeResponseContent: - """ - Remove an existing multi-factor authentication (MFA) [recovery code](https://auth0.com/docs/secure/multi-factor-authentication/reset-user-mfa) and generate a new one. If a user cannot access the original device or account used for MFA enrollment, they can use a recovery code to authenticate. - - Parameters - ---------- - id : str - ID of the user to regenerate a multi-factor authentication recovery code for. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - RegenerateUsersRecoveryCodeResponseContent - New recovery code successfully generated. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.users.regenerate_recovery_code( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.regenerate_recovery_code(id, request_options=request_options) - return _response.data - - async def revoke_access( - self, - id: str, - *, - session_id: typing.Optional[str] = OMIT, - preserve_refresh_tokens: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> None: - """ - Revokes selected resources related to a user (sessions, refresh tokens, ...). - - Parameters - ---------- - id : str - ID of the user. - - session_id : typing.Optional[str] - ID of the session to revoke. - - preserve_refresh_tokens : typing.Optional[bool] - Whether to preserve the refresh tokens associated with the session. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.users.revoke_access( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.revoke_access( - id, session_id=session_id, preserve_refresh_tokens=preserve_refresh_tokens, request_options=request_options - ) - return _response.data - - @property - def authentication_methods(self): - if self._authentication_methods is None: - from .authentication_methods.client import AsyncAuthenticationMethodsClient # noqa: E402 - - self._authentication_methods = AsyncAuthenticationMethodsClient(client_wrapper=self._client_wrapper) - return self._authentication_methods - - @property - def authenticators(self): - if self._authenticators is None: - from .authenticators.client import AsyncAuthenticatorsClient # noqa: E402 - - self._authenticators = AsyncAuthenticatorsClient(client_wrapper=self._client_wrapper) - return self._authenticators - - @property - def connected_accounts(self): - if self._connected_accounts is None: - from .connected_accounts.client import AsyncConnectedAccountsClient # noqa: E402 - - self._connected_accounts = AsyncConnectedAccountsClient(client_wrapper=self._client_wrapper) - return self._connected_accounts - - @property - def effective_permissions(self): - if self._effective_permissions is None: - from .effective_permissions.client import AsyncEffectivePermissionsClient # noqa: E402 - - self._effective_permissions = AsyncEffectivePermissionsClient(client_wrapper=self._client_wrapper) - return self._effective_permissions - - @property - def effective_roles(self): - if self._effective_roles is None: - from .effective_roles.client import AsyncEffectiveRolesClient # noqa: E402 - - self._effective_roles = AsyncEffectiveRolesClient(client_wrapper=self._client_wrapper) - return self._effective_roles - - @property - def enrollments(self): - if self._enrollments is None: - from .enrollments.client import AsyncEnrollmentsClient # noqa: E402 - - self._enrollments = AsyncEnrollmentsClient(client_wrapper=self._client_wrapper) - return self._enrollments - - @property - def groups(self): - if self._groups is None: - from .groups.client import AsyncGroupsClient # noqa: E402 - - self._groups = AsyncGroupsClient(client_wrapper=self._client_wrapper) - return self._groups - - @property - def identities(self): - if self._identities is None: - from .identities.client import AsyncIdentitiesClient # noqa: E402 - - self._identities = AsyncIdentitiesClient(client_wrapper=self._client_wrapper) - return self._identities - - @property - def logs(self): - if self._logs is None: - from .logs.client import AsyncLogsClient # noqa: E402 - - self._logs = AsyncLogsClient(client_wrapper=self._client_wrapper) - return self._logs - - @property - def multifactor(self): - if self._multifactor is None: - from .multifactor.client import AsyncMultifactorClient # noqa: E402 - - self._multifactor = AsyncMultifactorClient(client_wrapper=self._client_wrapper) - return self._multifactor - - @property - def organizations(self): - if self._organizations is None: - from .organizations.client import AsyncOrganizationsClient # noqa: E402 - - self._organizations = AsyncOrganizationsClient(client_wrapper=self._client_wrapper) - return self._organizations - - @property - def permissions(self): - if self._permissions is None: - from .permissions.client import AsyncPermissionsClient # noqa: E402 - - self._permissions = AsyncPermissionsClient(client_wrapper=self._client_wrapper) - return self._permissions - - @property - def risk_assessments(self): - if self._risk_assessments is None: - from .risk_assessments.client import AsyncRiskAssessmentsClient # noqa: E402 - - self._risk_assessments = AsyncRiskAssessmentsClient(client_wrapper=self._client_wrapper) - return self._risk_assessments - - @property - def roles(self): - if self._roles is None: - from .roles.client import AsyncRolesClient # noqa: E402 - - self._roles = AsyncRolesClient(client_wrapper=self._client_wrapper) - return self._roles - - @property - def refresh_token(self): - if self._refresh_token is None: - from .refresh_token.client import AsyncRefreshTokenClient # noqa: E402 - - self._refresh_token = AsyncRefreshTokenClient(client_wrapper=self._client_wrapper) - return self._refresh_token - - @property - def sessions(self): - if self._sessions is None: - from .sessions.client import AsyncSessionsClient # noqa: E402 - - self._sessions = AsyncSessionsClient(client_wrapper=self._client_wrapper) - return self._sessions diff --git a/src/auth0/management/users/connected_accounts/__init__.py b/src/auth0/management/users/connected_accounts/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/users/connected_accounts/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/users/connected_accounts/client.py b/src/auth0/management/users/connected_accounts/client.py deleted file mode 100644 index c54eeed8..00000000 --- a/src/auth0/management/users/connected_accounts/client.py +++ /dev/null @@ -1,151 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.pagination import AsyncPager, SyncPager -from ...core.request_options import RequestOptions -from ...types.connected_account import ConnectedAccount -from ...types.list_user_connected_accounts_response_content import ListUserConnectedAccountsResponseContent -from .raw_client import AsyncRawConnectedAccountsClient, RawConnectedAccountsClient - - -class ConnectedAccountsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawConnectedAccountsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawConnectedAccountsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawConnectedAccountsClient - """ - return self._raw_client - - def list( - self, - id: str, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[ConnectedAccount, ListUserConnectedAccountsResponseContent]: - """ - Retrieve all connected accounts associated with the user. - - Parameters - ---------- - id : str - ID of the user to list connected accounts for. - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results to return. Defaults to 10 with a maximum of 20 - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[ConnectedAccount, ListUserConnectedAccountsResponseContent] - Connected accounts successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.users.connected_accounts.list( - id="id", - from_="from", - take=1, - ) - for item in response: - yield item - # alternatively, you can paginate page-by-page - for page in response.iter_pages(): - yield page - """ - return self._raw_client.list(id, from_=from_, take=take, request_options=request_options) - - -class AsyncConnectedAccountsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawConnectedAccountsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawConnectedAccountsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawConnectedAccountsClient - """ - return self._raw_client - - async def list( - self, - id: str, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[ConnectedAccount, ListUserConnectedAccountsResponseContent]: - """ - Retrieve all connected accounts associated with the user. - - Parameters - ---------- - id : str - ID of the user to list connected accounts for. - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results to return. Defaults to 10 with a maximum of 20 - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[ConnectedAccount, ListUserConnectedAccountsResponseContent] - Connected accounts successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.users.connected_accounts.list( - id="id", - from_="from", - take=1, - ) - async for item in response: - yield item - - # alternatively, you can paginate page-by-page - async for page in response.iter_pages(): - yield page - - - asyncio.run(main()) - """ - return await self._raw_client.list(id, from_=from_, take=take, request_options=request_options) diff --git a/src/auth0/management/users/connected_accounts/raw_client.py b/src/auth0/management/users/connected_accounts/raw_client.py deleted file mode 100644 index c18e7326..00000000 --- a/src/auth0/management/users/connected_accounts/raw_client.py +++ /dev/null @@ -1,277 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ...core.api_error import ApiError -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.jsonable_encoder import quote_path_param -from ...core.pagination import AsyncPager, SyncPager -from ...core.parse_error import ParsingError -from ...core.pydantic_utilities import parse_obj_as -from ...core.request_options import RequestOptions -from ...errors.bad_request_error import BadRequestError -from ...errors.forbidden_error import ForbiddenError -from ...errors.not_found_error import NotFoundError -from ...errors.too_many_requests_error import TooManyRequestsError -from ...errors.unauthorized_error import UnauthorizedError -from ...types.connected_account import ConnectedAccount -from ...types.list_user_connected_accounts_response_content import ListUserConnectedAccountsResponseContent -from pydantic import ValidationError - - -class RawConnectedAccountsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - id: str, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[ConnectedAccount, ListUserConnectedAccountsResponseContent]: - """ - Retrieve all connected accounts associated with the user. - - Parameters - ---------- - id : str - ID of the user to list connected accounts for. - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results to return. Defaults to 10 with a maximum of 20 - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[ConnectedAccount, ListUserConnectedAccountsResponseContent] - Connected accounts successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - f"users/{quote_path_param(id)}/connected-accounts", - method="GET", - params={ - "from": from_, - "take": take, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListUserConnectedAccountsResponseContent, - parse_obj_as( - type_=ListUserConnectedAccountsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.connected_accounts - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - _get_next = lambda: self.list( - id, - from_=_parsed_next, - take=take, - request_options=request_options, - ) - return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawConnectedAccountsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - id: str, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[ConnectedAccount, ListUserConnectedAccountsResponseContent]: - """ - Retrieve all connected accounts associated with the user. - - Parameters - ---------- - id : str - ID of the user to list connected accounts for. - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results to return. Defaults to 10 with a maximum of 20 - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[ConnectedAccount, ListUserConnectedAccountsResponseContent] - Connected accounts successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - f"users/{quote_path_param(id)}/connected-accounts", - method="GET", - params={ - "from": from_, - "take": take, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListUserConnectedAccountsResponseContent, - parse_obj_as( - type_=ListUserConnectedAccountsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.connected_accounts - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - - async def _get_next(): - return await self.list( - id, - from_=_parsed_next, - take=take, - request_options=request_options, - ) - - return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/users/effective_permissions/__init__.py b/src/auth0/management/users/effective_permissions/__init__.py deleted file mode 100644 index 504a42f7..00000000 --- a/src/auth0/management/users/effective_permissions/__init__.py +++ /dev/null @@ -1,34 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from . import sources -_dynamic_imports: typing.Dict[str, str] = {"sources": ".sources"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - if module_name == f".{attr_name}": - return module - else: - return getattr(module, attr_name) - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["sources"] diff --git a/src/auth0/management/users/effective_permissions/client.py b/src/auth0/management/users/effective_permissions/client.py deleted file mode 100644 index 8a1154d2..00000000 --- a/src/auth0/management/users/effective_permissions/client.py +++ /dev/null @@ -1,198 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.pagination import AsyncPager, SyncPager -from ...core.request_options import RequestOptions -from ...types.list_user_effective_permissions_response_content import ListUserEffectivePermissionsResponseContent -from ...types.user_effective_permission_response_content import UserEffectivePermissionResponseContent -from .raw_client import AsyncRawEffectivePermissionsClient, RawEffectivePermissionsClient - -if typing.TYPE_CHECKING: - from .sources.client import AsyncSourcesClient, SourcesClient - - -class EffectivePermissionsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawEffectivePermissionsClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._sources: typing.Optional[SourcesClient] = None - - @property - def with_raw_response(self) -> RawEffectivePermissionsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawEffectivePermissionsClient - """ - return self._raw_client - - def list( - self, - id: str, - *, - resource_server_identifier: str, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[UserEffectivePermissionResponseContent, ListUserEffectivePermissionsResponseContent]: - """ - Returns the list of effective permissions for a user, taking into account permissions granted directly to the user, as well as those inherited through roles and group memberships. - - Parameters - ---------- - id : str - ID of the user to retrieve the permissions for. - - resource_server_identifier : str - The identifier of the resource server for which to calculate user permissions. - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[UserEffectivePermissionResponseContent, ListUserEffectivePermissionsResponseContent] - User's effective permissions successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.users.effective_permissions.list( - id="id", - from_="from", - take=1, - resource_server_identifier="resource_server_identifier", - ) - for item in response: - yield item - # alternatively, you can paginate page-by-page - for page in response.iter_pages(): - yield page - """ - return self._raw_client.list( - id, - resource_server_identifier=resource_server_identifier, - from_=from_, - take=take, - request_options=request_options, - ) - - @property - def sources(self): - if self._sources is None: - from .sources.client import SourcesClient # noqa: E402 - - self._sources = SourcesClient(client_wrapper=self._client_wrapper) - return self._sources - - -class AsyncEffectivePermissionsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawEffectivePermissionsClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._sources: typing.Optional[AsyncSourcesClient] = None - - @property - def with_raw_response(self) -> AsyncRawEffectivePermissionsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawEffectivePermissionsClient - """ - return self._raw_client - - async def list( - self, - id: str, - *, - resource_server_identifier: str, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[UserEffectivePermissionResponseContent, ListUserEffectivePermissionsResponseContent]: - """ - Returns the list of effective permissions for a user, taking into account permissions granted directly to the user, as well as those inherited through roles and group memberships. - - Parameters - ---------- - id : str - ID of the user to retrieve the permissions for. - - resource_server_identifier : str - The identifier of the resource server for which to calculate user permissions. - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[UserEffectivePermissionResponseContent, ListUserEffectivePermissionsResponseContent] - User's effective permissions successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.users.effective_permissions.list( - id="id", - from_="from", - take=1, - resource_server_identifier="resource_server_identifier", - ) - async for item in response: - yield item - - # alternatively, you can paginate page-by-page - async for page in response.iter_pages(): - yield page - - - asyncio.run(main()) - """ - return await self._raw_client.list( - id, - resource_server_identifier=resource_server_identifier, - from_=from_, - take=take, - request_options=request_options, - ) - - @property - def sources(self): - if self._sources is None: - from .sources.client import AsyncSourcesClient # noqa: E402 - - self._sources = AsyncSourcesClient(client_wrapper=self._client_wrapper) - return self._sources diff --git a/src/auth0/management/users/effective_permissions/raw_client.py b/src/auth0/management/users/effective_permissions/raw_client.py deleted file mode 100644 index a29c1778..00000000 --- a/src/auth0/management/users/effective_permissions/raw_client.py +++ /dev/null @@ -1,289 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ...core.api_error import ApiError -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.jsonable_encoder import quote_path_param -from ...core.pagination import AsyncPager, SyncPager -from ...core.parse_error import ParsingError -from ...core.pydantic_utilities import parse_obj_as -from ...core.request_options import RequestOptions -from ...errors.bad_request_error import BadRequestError -from ...errors.forbidden_error import ForbiddenError -from ...errors.not_found_error import NotFoundError -from ...errors.too_many_requests_error import TooManyRequestsError -from ...errors.unauthorized_error import UnauthorizedError -from ...types.list_user_effective_permissions_response_content import ListUserEffectivePermissionsResponseContent -from ...types.user_effective_permission_response_content import UserEffectivePermissionResponseContent -from pydantic import ValidationError - - -class RawEffectivePermissionsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - id: str, - *, - resource_server_identifier: str, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[UserEffectivePermissionResponseContent, ListUserEffectivePermissionsResponseContent]: - """ - Returns the list of effective permissions for a user, taking into account permissions granted directly to the user, as well as those inherited through roles and group memberships. - - Parameters - ---------- - id : str - ID of the user to retrieve the permissions for. - - resource_server_identifier : str - The identifier of the resource server for which to calculate user permissions. - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[UserEffectivePermissionResponseContent, ListUserEffectivePermissionsResponseContent] - User's effective permissions successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - f"users/{quote_path_param(id)}/effective-permissions", - method="GET", - params={ - "from": from_, - "take": take, - "resource_server_identifier": resource_server_identifier, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListUserEffectivePermissionsResponseContent, - parse_obj_as( - type_=ListUserEffectivePermissionsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.permissions - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - _get_next = lambda: self.list( - id, - resource_server_identifier=resource_server_identifier, - from_=_parsed_next, - take=take, - request_options=request_options, - ) - return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawEffectivePermissionsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - id: str, - *, - resource_server_identifier: str, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[UserEffectivePermissionResponseContent, ListUserEffectivePermissionsResponseContent]: - """ - Returns the list of effective permissions for a user, taking into account permissions granted directly to the user, as well as those inherited through roles and group memberships. - - Parameters - ---------- - id : str - ID of the user to retrieve the permissions for. - - resource_server_identifier : str - The identifier of the resource server for which to calculate user permissions. - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[UserEffectivePermissionResponseContent, ListUserEffectivePermissionsResponseContent] - User's effective permissions successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - f"users/{quote_path_param(id)}/effective-permissions", - method="GET", - params={ - "from": from_, - "take": take, - "resource_server_identifier": resource_server_identifier, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListUserEffectivePermissionsResponseContent, - parse_obj_as( - type_=ListUserEffectivePermissionsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.permissions - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - - async def _get_next(): - return await self.list( - id, - resource_server_identifier=resource_server_identifier, - from_=_parsed_next, - take=take, - request_options=request_options, - ) - - return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/users/effective_permissions/sources/__init__.py b/src/auth0/management/users/effective_permissions/sources/__init__.py deleted file mode 100644 index 686aa754..00000000 --- a/src/auth0/management/users/effective_permissions/sources/__init__.py +++ /dev/null @@ -1,34 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from . import roles -_dynamic_imports: typing.Dict[str, str] = {"roles": ".roles"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - if module_name == f".{attr_name}": - return module - else: - return getattr(module, attr_name) - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["roles"] diff --git a/src/auth0/management/users/effective_permissions/sources/client.py b/src/auth0/management/users/effective_permissions/sources/client.py deleted file mode 100644 index 95383a21..00000000 --- a/src/auth0/management/users/effective_permissions/sources/client.py +++ /dev/null @@ -1,63 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -from ....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .raw_client import AsyncRawSourcesClient, RawSourcesClient - -if typing.TYPE_CHECKING: - from .roles.client import AsyncRolesClient, RolesClient - - -class SourcesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawSourcesClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._roles: typing.Optional[RolesClient] = None - - @property - def with_raw_response(self) -> RawSourcesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawSourcesClient - """ - return self._raw_client - - @property - def roles(self): - if self._roles is None: - from .roles.client import RolesClient # noqa: E402 - - self._roles = RolesClient(client_wrapper=self._client_wrapper) - return self._roles - - -class AsyncSourcesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawSourcesClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._roles: typing.Optional[AsyncRolesClient] = None - - @property - def with_raw_response(self) -> AsyncRawSourcesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawSourcesClient - """ - return self._raw_client - - @property - def roles(self): - if self._roles is None: - from .roles.client import AsyncRolesClient # noqa: E402 - - self._roles = AsyncRolesClient(client_wrapper=self._client_wrapper) - return self._roles diff --git a/src/auth0/management/users/effective_permissions/sources/raw_client.py b/src/auth0/management/users/effective_permissions/sources/raw_client.py deleted file mode 100644 index e5f566c6..00000000 --- a/src/auth0/management/users/effective_permissions/sources/raw_client.py +++ /dev/null @@ -1,13 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from ....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper - - -class RawSourcesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - -class AsyncRawSourcesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper diff --git a/src/auth0/management/users/effective_permissions/sources/roles/__init__.py b/src/auth0/management/users/effective_permissions/sources/roles/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/users/effective_permissions/sources/roles/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/users/effective_permissions/sources/roles/client.py b/src/auth0/management/users/effective_permissions/sources/roles/client.py deleted file mode 100644 index 6183b9b4..00000000 --- a/src/auth0/management/users/effective_permissions/sources/roles/client.py +++ /dev/null @@ -1,193 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.pagination import AsyncPager, SyncPager -from .....core.request_options import RequestOptions -from .....types.list_user_effective_permission_role_sources_response_content import ( - ListUserEffectivePermissionRoleSourcesResponseContent, -) -from .....types.user_effective_permission_role_source_response_content import ( - UserEffectivePermissionRoleSourceResponseContent, -) -from .raw_client import AsyncRawRolesClient, RawRolesClient - - -class RolesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawRolesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawRolesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawRolesClient - """ - return self._raw_client - - def list( - self, - id: str, - *, - resource_server_identifier: str, - permission_name: str, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[ - UserEffectivePermissionRoleSourceResponseContent, ListUserEffectivePermissionRoleSourcesResponseContent - ]: - """ - Lists the roles which grant the user a given permission, including roles assigned directly to the user and those inherited through group memberships. - - Parameters - ---------- - id : str - ID of the user to retrieve the permissions for. - - resource_server_identifier : str - The identifier of the resource server for which to calculate user permissions. - - permission_name : str - Name of this permission - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[UserEffectivePermissionRoleSourceResponseContent, ListUserEffectivePermissionRoleSourcesResponseContent] - User's effective permission role sources successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.users.effective_permissions.sources.roles.list( - id="id", - from_="from", - take=1, - resource_server_identifier="resource_server_identifier", - permission_name="permission_name", - ) - for item in response: - yield item - # alternatively, you can paginate page-by-page - for page in response.iter_pages(): - yield page - """ - return self._raw_client.list( - id, - resource_server_identifier=resource_server_identifier, - permission_name=permission_name, - from_=from_, - take=take, - request_options=request_options, - ) - - -class AsyncRolesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawRolesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawRolesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawRolesClient - """ - return self._raw_client - - async def list( - self, - id: str, - *, - resource_server_identifier: str, - permission_name: str, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[ - UserEffectivePermissionRoleSourceResponseContent, ListUserEffectivePermissionRoleSourcesResponseContent - ]: - """ - Lists the roles which grant the user a given permission, including roles assigned directly to the user and those inherited through group memberships. - - Parameters - ---------- - id : str - ID of the user to retrieve the permissions for. - - resource_server_identifier : str - The identifier of the resource server for which to calculate user permissions. - - permission_name : str - Name of this permission - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[UserEffectivePermissionRoleSourceResponseContent, ListUserEffectivePermissionRoleSourcesResponseContent] - User's effective permission role sources successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.users.effective_permissions.sources.roles.list( - id="id", - from_="from", - take=1, - resource_server_identifier="resource_server_identifier", - permission_name="permission_name", - ) - async for item in response: - yield item - - # alternatively, you can paginate page-by-page - async for page in response.iter_pages(): - yield page - - - asyncio.run(main()) - """ - return await self._raw_client.list( - id, - resource_server_identifier=resource_server_identifier, - permission_name=permission_name, - from_=from_, - take=take, - request_options=request_options, - ) diff --git a/src/auth0/management/users/effective_permissions/sources/roles/raw_client.py b/src/auth0/management/users/effective_permissions/sources/roles/raw_client.py deleted file mode 100644 index 4f5e425d..00000000 --- a/src/auth0/management/users/effective_permissions/sources/roles/raw_client.py +++ /dev/null @@ -1,309 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.jsonable_encoder import quote_path_param -from .....core.pagination import AsyncPager, SyncPager -from .....core.parse_error import ParsingError -from .....core.pydantic_utilities import parse_obj_as -from .....core.request_options import RequestOptions -from .....errors.bad_request_error import BadRequestError -from .....errors.forbidden_error import ForbiddenError -from .....errors.not_found_error import NotFoundError -from .....errors.too_many_requests_error import TooManyRequestsError -from .....errors.unauthorized_error import UnauthorizedError -from .....types.list_user_effective_permission_role_sources_response_content import ( - ListUserEffectivePermissionRoleSourcesResponseContent, -) -from .....types.user_effective_permission_role_source_response_content import ( - UserEffectivePermissionRoleSourceResponseContent, -) -from pydantic import ValidationError - - -class RawRolesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - id: str, - *, - resource_server_identifier: str, - permission_name: str, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[ - UserEffectivePermissionRoleSourceResponseContent, ListUserEffectivePermissionRoleSourcesResponseContent - ]: - """ - Lists the roles which grant the user a given permission, including roles assigned directly to the user and those inherited through group memberships. - - Parameters - ---------- - id : str - ID of the user to retrieve the permissions for. - - resource_server_identifier : str - The identifier of the resource server for which to calculate user permissions. - - permission_name : str - Name of this permission - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[UserEffectivePermissionRoleSourceResponseContent, ListUserEffectivePermissionRoleSourcesResponseContent] - User's effective permission role sources successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - f"users/{quote_path_param(id)}/effective-permissions/sources/effective-roles", - method="GET", - params={ - "from": from_, - "take": take, - "resource_server_identifier": resource_server_identifier, - "permission_name": permission_name, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListUserEffectivePermissionRoleSourcesResponseContent, - parse_obj_as( - type_=ListUserEffectivePermissionRoleSourcesResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.roles - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - _get_next = lambda: self.list( - id, - resource_server_identifier=resource_server_identifier, - permission_name=permission_name, - from_=_parsed_next, - take=take, - request_options=request_options, - ) - return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawRolesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - id: str, - *, - resource_server_identifier: str, - permission_name: str, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[ - UserEffectivePermissionRoleSourceResponseContent, ListUserEffectivePermissionRoleSourcesResponseContent - ]: - """ - Lists the roles which grant the user a given permission, including roles assigned directly to the user and those inherited through group memberships. - - Parameters - ---------- - id : str - ID of the user to retrieve the permissions for. - - resource_server_identifier : str - The identifier of the resource server for which to calculate user permissions. - - permission_name : str - Name of this permission - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[UserEffectivePermissionRoleSourceResponseContent, ListUserEffectivePermissionRoleSourcesResponseContent] - User's effective permission role sources successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - f"users/{quote_path_param(id)}/effective-permissions/sources/effective-roles", - method="GET", - params={ - "from": from_, - "take": take, - "resource_server_identifier": resource_server_identifier, - "permission_name": permission_name, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListUserEffectivePermissionRoleSourcesResponseContent, - parse_obj_as( - type_=ListUserEffectivePermissionRoleSourcesResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.roles - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - - async def _get_next(): - return await self.list( - id, - resource_server_identifier=resource_server_identifier, - permission_name=permission_name, - from_=_parsed_next, - take=take, - request_options=request_options, - ) - - return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/users/effective_roles/__init__.py b/src/auth0/management/users/effective_roles/__init__.py deleted file mode 100644 index 504a42f7..00000000 --- a/src/auth0/management/users/effective_roles/__init__.py +++ /dev/null @@ -1,34 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from . import sources -_dynamic_imports: typing.Dict[str, str] = {"sources": ".sources"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - if module_name == f".{attr_name}": - return module - else: - return getattr(module, attr_name) - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["sources"] diff --git a/src/auth0/management/users/effective_roles/client.py b/src/auth0/management/users/effective_roles/client.py deleted file mode 100644 index 87b46f3f..00000000 --- a/src/auth0/management/users/effective_roles/client.py +++ /dev/null @@ -1,176 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.pagination import AsyncPager, SyncPager -from ...core.request_options import RequestOptions -from ...types.list_user_effective_roles_response_content import ListUserEffectiveRolesResponseContent -from ...types.user_effective_role import UserEffectiveRole -from .raw_client import AsyncRawEffectiveRolesClient, RawEffectiveRolesClient - -if typing.TYPE_CHECKING: - from .sources.client import AsyncSourcesClient, SourcesClient - - -class EffectiveRolesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawEffectiveRolesClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._sources: typing.Optional[SourcesClient] = None - - @property - def with_raw_response(self) -> RawEffectiveRolesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawEffectiveRolesClient - """ - return self._raw_client - - def list( - self, - id: str, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[UserEffectiveRole, ListUserEffectiveRolesResponseContent]: - """ - Retrieve detailed list of effective roles for a user, including roles assigned directly and through group memberships. - - Parameters - ---------- - id : str - ID of the user to list effective roles for. - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[UserEffectiveRole, ListUserEffectiveRolesResponseContent] - User's effective roles successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.users.effective_roles.list( - id="id", - from_="from", - take=1, - ) - for item in response: - yield item - # alternatively, you can paginate page-by-page - for page in response.iter_pages(): - yield page - """ - return self._raw_client.list(id, from_=from_, take=take, request_options=request_options) - - @property - def sources(self): - if self._sources is None: - from .sources.client import SourcesClient # noqa: E402 - - self._sources = SourcesClient(client_wrapper=self._client_wrapper) - return self._sources - - -class AsyncEffectiveRolesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawEffectiveRolesClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._sources: typing.Optional[AsyncSourcesClient] = None - - @property - def with_raw_response(self) -> AsyncRawEffectiveRolesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawEffectiveRolesClient - """ - return self._raw_client - - async def list( - self, - id: str, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[UserEffectiveRole, ListUserEffectiveRolesResponseContent]: - """ - Retrieve detailed list of effective roles for a user, including roles assigned directly and through group memberships. - - Parameters - ---------- - id : str - ID of the user to list effective roles for. - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[UserEffectiveRole, ListUserEffectiveRolesResponseContent] - User's effective roles successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.users.effective_roles.list( - id="id", - from_="from", - take=1, - ) - async for item in response: - yield item - - # alternatively, you can paginate page-by-page - async for page in response.iter_pages(): - yield page - - - asyncio.run(main()) - """ - return await self._raw_client.list(id, from_=from_, take=take, request_options=request_options) - - @property - def sources(self): - if self._sources is None: - from .sources.client import AsyncSourcesClient # noqa: E402 - - self._sources = AsyncSourcesClient(client_wrapper=self._client_wrapper) - return self._sources diff --git a/src/auth0/management/users/effective_roles/raw_client.py b/src/auth0/management/users/effective_roles/raw_client.py deleted file mode 100644 index 75ddcd17..00000000 --- a/src/auth0/management/users/effective_roles/raw_client.py +++ /dev/null @@ -1,277 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ...core.api_error import ApiError -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.jsonable_encoder import quote_path_param -from ...core.pagination import AsyncPager, SyncPager -from ...core.parse_error import ParsingError -from ...core.pydantic_utilities import parse_obj_as -from ...core.request_options import RequestOptions -from ...errors.bad_request_error import BadRequestError -from ...errors.forbidden_error import ForbiddenError -from ...errors.not_found_error import NotFoundError -from ...errors.too_many_requests_error import TooManyRequestsError -from ...errors.unauthorized_error import UnauthorizedError -from ...types.list_user_effective_roles_response_content import ListUserEffectiveRolesResponseContent -from ...types.user_effective_role import UserEffectiveRole -from pydantic import ValidationError - - -class RawEffectiveRolesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - id: str, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[UserEffectiveRole, ListUserEffectiveRolesResponseContent]: - """ - Retrieve detailed list of effective roles for a user, including roles assigned directly and through group memberships. - - Parameters - ---------- - id : str - ID of the user to list effective roles for. - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[UserEffectiveRole, ListUserEffectiveRolesResponseContent] - User's effective roles successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - f"users/{quote_path_param(id)}/effective-roles", - method="GET", - params={ - "from": from_, - "take": take, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListUserEffectiveRolesResponseContent, - parse_obj_as( - type_=ListUserEffectiveRolesResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.roles - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - _get_next = lambda: self.list( - id, - from_=_parsed_next, - take=take, - request_options=request_options, - ) - return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawEffectiveRolesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - id: str, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[UserEffectiveRole, ListUserEffectiveRolesResponseContent]: - """ - Retrieve detailed list of effective roles for a user, including roles assigned directly and through group memberships. - - Parameters - ---------- - id : str - ID of the user to list effective roles for. - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[UserEffectiveRole, ListUserEffectiveRolesResponseContent] - User's effective roles successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - f"users/{quote_path_param(id)}/effective-roles", - method="GET", - params={ - "from": from_, - "take": take, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListUserEffectiveRolesResponseContent, - parse_obj_as( - type_=ListUserEffectiveRolesResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.roles - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - - async def _get_next(): - return await self.list( - id, - from_=_parsed_next, - take=take, - request_options=request_options, - ) - - return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/users/effective_roles/sources/__init__.py b/src/auth0/management/users/effective_roles/sources/__init__.py deleted file mode 100644 index 345b2fe1..00000000 --- a/src/auth0/management/users/effective_roles/sources/__init__.py +++ /dev/null @@ -1,34 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from . import groups -_dynamic_imports: typing.Dict[str, str] = {"groups": ".groups"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - if module_name == f".{attr_name}": - return module - else: - return getattr(module, attr_name) - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["groups"] diff --git a/src/auth0/management/users/effective_roles/sources/client.py b/src/auth0/management/users/effective_roles/sources/client.py deleted file mode 100644 index e50a1e13..00000000 --- a/src/auth0/management/users/effective_roles/sources/client.py +++ /dev/null @@ -1,63 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -from ....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .raw_client import AsyncRawSourcesClient, RawSourcesClient - -if typing.TYPE_CHECKING: - from .groups.client import AsyncGroupsClient, GroupsClient - - -class SourcesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawSourcesClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._groups: typing.Optional[GroupsClient] = None - - @property - def with_raw_response(self) -> RawSourcesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawSourcesClient - """ - return self._raw_client - - @property - def groups(self): - if self._groups is None: - from .groups.client import GroupsClient # noqa: E402 - - self._groups = GroupsClient(client_wrapper=self._client_wrapper) - return self._groups - - -class AsyncSourcesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawSourcesClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._groups: typing.Optional[AsyncGroupsClient] = None - - @property - def with_raw_response(self) -> AsyncRawSourcesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawSourcesClient - """ - return self._raw_client - - @property - def groups(self): - if self._groups is None: - from .groups.client import AsyncGroupsClient # noqa: E402 - - self._groups = AsyncGroupsClient(client_wrapper=self._client_wrapper) - return self._groups diff --git a/src/auth0/management/users/effective_roles/sources/groups/__init__.py b/src/auth0/management/users/effective_roles/sources/groups/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/users/effective_roles/sources/groups/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/users/effective_roles/sources/groups/client.py b/src/auth0/management/users/effective_roles/sources/groups/client.py deleted file mode 100644 index 673aa49e..00000000 --- a/src/auth0/management/users/effective_roles/sources/groups/client.py +++ /dev/null @@ -1,161 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.pagination import AsyncPager, SyncPager -from .....core.request_options import RequestOptions -from .....types.group import Group -from .....types.list_user_role_source_groups_response_content import ListUserRoleSourceGroupsResponseContent -from .raw_client import AsyncRawGroupsClient, RawGroupsClient - - -class GroupsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawGroupsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawGroupsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawGroupsClient - """ - return self._raw_client - - def list( - self, - id: str, - *, - role_id: str, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[Group, ListUserRoleSourceGroupsResponseContent]: - """ - Lists the groups that grant a user a specific role. - - Parameters - ---------- - id : str - ID of the user to list role source groups for. - - role_id : str - ID of the role to get source groups for. - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[Group, ListUserRoleSourceGroupsResponseContent] - User's role source groups successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.users.effective_roles.sources.groups.list( - id="id", - role_id="role_id", - from_="from", - take=1, - ) - for item in response: - yield item - # alternatively, you can paginate page-by-page - for page in response.iter_pages(): - yield page - """ - return self._raw_client.list(id, role_id=role_id, from_=from_, take=take, request_options=request_options) - - -class AsyncGroupsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawGroupsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawGroupsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawGroupsClient - """ - return self._raw_client - - async def list( - self, - id: str, - *, - role_id: str, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[Group, ListUserRoleSourceGroupsResponseContent]: - """ - Lists the groups that grant a user a specific role. - - Parameters - ---------- - id : str - ID of the user to list role source groups for. - - role_id : str - ID of the role to get source groups for. - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[Group, ListUserRoleSourceGroupsResponseContent] - User's role source groups successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.users.effective_roles.sources.groups.list( - id="id", - role_id="role_id", - from_="from", - take=1, - ) - async for item in response: - yield item - - # alternatively, you can paginate page-by-page - async for page in response.iter_pages(): - yield page - - - asyncio.run(main()) - """ - return await self._raw_client.list(id, role_id=role_id, from_=from_, take=take, request_options=request_options) diff --git a/src/auth0/management/users/effective_roles/sources/groups/raw_client.py b/src/auth0/management/users/effective_roles/sources/groups/raw_client.py deleted file mode 100644 index 724bc06f..00000000 --- a/src/auth0/management/users/effective_roles/sources/groups/raw_client.py +++ /dev/null @@ -1,289 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.jsonable_encoder import quote_path_param -from .....core.pagination import AsyncPager, SyncPager -from .....core.parse_error import ParsingError -from .....core.pydantic_utilities import parse_obj_as -from .....core.request_options import RequestOptions -from .....errors.bad_request_error import BadRequestError -from .....errors.forbidden_error import ForbiddenError -from .....errors.not_found_error import NotFoundError -from .....errors.too_many_requests_error import TooManyRequestsError -from .....errors.unauthorized_error import UnauthorizedError -from .....types.group import Group -from .....types.list_user_role_source_groups_response_content import ListUserRoleSourceGroupsResponseContent -from pydantic import ValidationError - - -class RawGroupsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - id: str, - *, - role_id: str, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[Group, ListUserRoleSourceGroupsResponseContent]: - """ - Lists the groups that grant a user a specific role. - - Parameters - ---------- - id : str - ID of the user to list role source groups for. - - role_id : str - ID of the role to get source groups for. - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[Group, ListUserRoleSourceGroupsResponseContent] - User's role source groups successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - f"users/{quote_path_param(id)}/effective-roles/sources/groups", - method="GET", - params={ - "role_id": role_id, - "from": from_, - "take": take, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListUserRoleSourceGroupsResponseContent, - parse_obj_as( - type_=ListUserRoleSourceGroupsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.groups - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - _get_next = lambda: self.list( - id, - role_id=role_id, - from_=_parsed_next, - take=take, - request_options=request_options, - ) - return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawGroupsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - id: str, - *, - role_id: str, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[Group, ListUserRoleSourceGroupsResponseContent]: - """ - Lists the groups that grant a user a specific role. - - Parameters - ---------- - id : str - ID of the user to list role source groups for. - - role_id : str - ID of the role to get source groups for. - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[Group, ListUserRoleSourceGroupsResponseContent] - User's role source groups successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - f"users/{quote_path_param(id)}/effective-roles/sources/groups", - method="GET", - params={ - "role_id": role_id, - "from": from_, - "take": take, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListUserRoleSourceGroupsResponseContent, - parse_obj_as( - type_=ListUserRoleSourceGroupsResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.groups - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - - async def _get_next(): - return await self.list( - id, - role_id=role_id, - from_=_parsed_next, - take=take, - request_options=request_options, - ) - - return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/users/effective_roles/sources/raw_client.py b/src/auth0/management/users/effective_roles/sources/raw_client.py deleted file mode 100644 index e5f566c6..00000000 --- a/src/auth0/management/users/effective_roles/sources/raw_client.py +++ /dev/null @@ -1,13 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from ....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper - - -class RawSourcesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - -class AsyncRawSourcesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper diff --git a/src/auth0/management/users/enrollments/__init__.py b/src/auth0/management/users/enrollments/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/users/enrollments/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/users/enrollments/client.py b/src/auth0/management/users/enrollments/client.py deleted file mode 100644 index 4e8093cf..00000000 --- a/src/auth0/management/users/enrollments/client.py +++ /dev/null @@ -1,112 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.request_options import RequestOptions -from ...types.users_enrollment import UsersEnrollment -from .raw_client import AsyncRawEnrollmentsClient, RawEnrollmentsClient - - -class EnrollmentsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawEnrollmentsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawEnrollmentsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawEnrollmentsClient - """ - return self._raw_client - - def get(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> typing.List[UsersEnrollment]: - """ - Retrieve the first [multi-factor authentication](https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors) enrollment that a specific user has confirmed. - - Parameters - ---------- - id : str - ID of the user to list enrollments for. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - typing.List[UsersEnrollment] - Enrollments successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.users.enrollments.get( - id="id", - ) - """ - _response = self._raw_client.get(id, request_options=request_options) - return _response.data - - -class AsyncEnrollmentsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawEnrollmentsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawEnrollmentsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawEnrollmentsClient - """ - return self._raw_client - - async def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> typing.List[UsersEnrollment]: - """ - Retrieve the first [multi-factor authentication](https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors) enrollment that a specific user has confirmed. - - Parameters - ---------- - id : str - ID of the user to list enrollments for. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - typing.List[UsersEnrollment] - Enrollments successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.users.enrollments.get( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.get(id, request_options=request_options) - return _response.data diff --git a/src/auth0/management/users/enrollments/raw_client.py b/src/auth0/management/users/enrollments/raw_client.py deleted file mode 100644 index 0ef303d3..00000000 --- a/src/auth0/management/users/enrollments/raw_client.py +++ /dev/null @@ -1,225 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ...core.api_error import ApiError -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.http_response import AsyncHttpResponse, HttpResponse -from ...core.jsonable_encoder import quote_path_param -from ...core.parse_error import ParsingError -from ...core.pydantic_utilities import parse_obj_as -from ...core.request_options import RequestOptions -from ...errors.bad_request_error import BadRequestError -from ...errors.forbidden_error import ForbiddenError -from ...errors.not_found_error import NotFoundError -from ...errors.too_many_requests_error import TooManyRequestsError -from ...errors.unauthorized_error import UnauthorizedError -from ...types.users_enrollment import UsersEnrollment -from pydantic import ValidationError - - -class RawEnrollmentsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[typing.List[UsersEnrollment]]: - """ - Retrieve the first [multi-factor authentication](https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors) enrollment that a specific user has confirmed. - - Parameters - ---------- - id : str - ID of the user to list enrollments for. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[typing.List[UsersEnrollment]] - Enrollments successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - f"users/{quote_path_param(id)}/enrollments", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - typing.List[UsersEnrollment], - parse_obj_as( - type_=typing.List[UsersEnrollment], # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawEnrollmentsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[typing.List[UsersEnrollment]]: - """ - Retrieve the first [multi-factor authentication](https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors) enrollment that a specific user has confirmed. - - Parameters - ---------- - id : str - ID of the user to list enrollments for. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[typing.List[UsersEnrollment]] - Enrollments successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - f"users/{quote_path_param(id)}/enrollments", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - typing.List[UsersEnrollment], - parse_obj_as( - type_=typing.List[UsersEnrollment], # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/users/groups/__init__.py b/src/auth0/management/users/groups/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/users/groups/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/users/groups/client.py b/src/auth0/management/users/groups/client.py deleted file mode 100644 index dfd94c62..00000000 --- a/src/auth0/management/users/groups/client.py +++ /dev/null @@ -1,197 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.pagination import AsyncPager, SyncPager -from ...core.request_options import RequestOptions -from ...types.get_user_groups_paginated_response_content import GetUserGroupsPaginatedResponseContent -from ...types.user_groups_response_schema import UserGroupsResponseSchema -from .raw_client import AsyncRawGroupsClient, RawGroupsClient - - -class GroupsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawGroupsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawGroupsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawGroupsClient - """ - return self._raw_client - - def get( - self, - id: str, - *, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - include_totals: typing.Optional[bool] = True, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[UserGroupsResponseSchema, GetUserGroupsPaginatedResponseContent]: - """ - List all groups to which this user belongs. - - Parameters - ---------- - id : str - ID of the user to list groups for. - - fields : typing.Optional[str] - A comma separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). The returned total reflects at most 1,000 results. - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[UserGroupsResponseSchema, GetUserGroupsPaginatedResponseContent] - Groups successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.users.groups.get( - id="id", - fields="fields", - include_fields=True, - include_totals=True, - from_="from", - take=1, - ) - for item in response: - yield item - # alternatively, you can paginate page-by-page - for page in response.iter_pages(): - yield page - """ - return self._raw_client.get( - id, - fields=fields, - include_fields=include_fields, - include_totals=include_totals, - from_=from_, - take=take, - request_options=request_options, - ) - - -class AsyncGroupsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawGroupsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawGroupsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawGroupsClient - """ - return self._raw_client - - async def get( - self, - id: str, - *, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - include_totals: typing.Optional[bool] = True, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[UserGroupsResponseSchema, GetUserGroupsPaginatedResponseContent]: - """ - List all groups to which this user belongs. - - Parameters - ---------- - id : str - ID of the user to list groups for. - - fields : typing.Optional[str] - A comma separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). The returned total reflects at most 1,000 results. - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[UserGroupsResponseSchema, GetUserGroupsPaginatedResponseContent] - Groups successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.users.groups.get( - id="id", - fields="fields", - include_fields=True, - include_totals=True, - from_="from", - take=1, - ) - async for item in response: - yield item - - # alternatively, you can paginate page-by-page - async for page in response.iter_pages(): - yield page - - - asyncio.run(main()) - """ - return await self._raw_client.get( - id, - fields=fields, - include_fields=include_fields, - include_totals=include_totals, - from_=from_, - take=take, - request_options=request_options, - ) diff --git a/src/auth0/management/users/groups/raw_client.py b/src/auth0/management/users/groups/raw_client.py deleted file mode 100644 index d25ca6af..00000000 --- a/src/auth0/management/users/groups/raw_client.py +++ /dev/null @@ -1,313 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ...core.api_error import ApiError -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.jsonable_encoder import quote_path_param -from ...core.pagination import AsyncPager, SyncPager -from ...core.parse_error import ParsingError -from ...core.pydantic_utilities import parse_obj_as -from ...core.request_options import RequestOptions -from ...errors.bad_request_error import BadRequestError -from ...errors.forbidden_error import ForbiddenError -from ...errors.not_found_error import NotFoundError -from ...errors.too_many_requests_error import TooManyRequestsError -from ...errors.unauthorized_error import UnauthorizedError -from ...types.get_user_groups_paginated_response_content import GetUserGroupsPaginatedResponseContent -from ...types.user_groups_response_schema import UserGroupsResponseSchema -from pydantic import ValidationError - - -class RawGroupsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def get( - self, - id: str, - *, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - include_totals: typing.Optional[bool] = True, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[UserGroupsResponseSchema, GetUserGroupsPaginatedResponseContent]: - """ - List all groups to which this user belongs. - - Parameters - ---------- - id : str - ID of the user to list groups for. - - fields : typing.Optional[str] - A comma separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). The returned total reflects at most 1,000 results. - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[UserGroupsResponseSchema, GetUserGroupsPaginatedResponseContent] - Groups successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - f"users/{quote_path_param(id)}/groups", - method="GET", - params={ - "fields": fields, - "include_fields": include_fields, - "include_totals": include_totals, - "from": from_, - "take": take, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - GetUserGroupsPaginatedResponseContent, - parse_obj_as( - type_=GetUserGroupsPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.groups - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - _get_next = lambda: self.get( - id, - fields=fields, - include_fields=include_fields, - include_totals=include_totals, - from_=_parsed_next, - take=take, - request_options=request_options, - ) - return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawGroupsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def get( - self, - id: str, - *, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - include_totals: typing.Optional[bool] = True, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[UserGroupsResponseSchema, GetUserGroupsPaginatedResponseContent]: - """ - List all groups to which this user belongs. - - Parameters - ---------- - id : str - ID of the user to list groups for. - - fields : typing.Optional[str] - A comma separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). The returned total reflects at most 1,000 results. - - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[UserGroupsResponseSchema, GetUserGroupsPaginatedResponseContent] - Groups successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - f"users/{quote_path_param(id)}/groups", - method="GET", - params={ - "fields": fields, - "include_fields": include_fields, - "include_totals": include_totals, - "from": from_, - "take": take, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - GetUserGroupsPaginatedResponseContent, - parse_obj_as( - type_=GetUserGroupsPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.groups - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - - async def _get_next(): - return await self.get( - id, - fields=fields, - include_fields=include_fields, - include_totals=include_totals, - from_=_parsed_next, - take=take, - request_options=request_options, - ) - - return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/users/identities/__init__.py b/src/auth0/management/users/identities/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/users/identities/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/users/identities/client.py b/src/auth0/management/users/identities/client.py deleted file mode 100644 index 0a1cd473..00000000 --- a/src/auth0/management/users/identities/client.py +++ /dev/null @@ -1,332 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.request_options import RequestOptions -from ...types.delete_user_identity_response_content import DeleteUserIdentityResponseContent -from ...types.user_id import UserId -from ...types.user_identity import UserIdentity -from ...types.user_identity_provider_enum import UserIdentityProviderEnum -from .raw_client import AsyncRawIdentitiesClient, RawIdentitiesClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class IdentitiesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawIdentitiesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawIdentitiesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawIdentitiesClient - """ - return self._raw_client - - def link( - self, - id: str, - *, - provider: typing.Optional[UserIdentityProviderEnum] = OMIT, - connection_id: typing.Optional[str] = OMIT, - user_id: typing.Optional[UserId] = OMIT, - link_with: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> typing.List[UserIdentity]: - """ - Link two user accounts together forming a primary and secondary relationship. On successful linking, the endpoint returns the new array of the primary account identities. - - Note: There are two ways of invoking the endpoint: - - - With the authenticated primary account's JWT in the Authorization header, which has the `update:current_user_identities` scope: - - ```http - POST /api/v2/users/PRIMARY_ACCOUNT_USER_ID/identities - Authorization: "Bearer PRIMARY_ACCOUNT_JWT" - { - "link_with": "SECONDARY_ACCOUNT_JWT" - } - ``` - - In this case, only the `link_with` param is required in the body, which also contains the JWT obtained upon the secondary account's authentication. - - - With a token generated by the API V2 containing the `update:users` scope: - - ```http - POST /api/v2/users/PRIMARY_ACCOUNT_USER_ID/identities - Authorization: "Bearer YOUR_API_V2_TOKEN" - { - "provider": "SECONDARY_ACCOUNT_PROVIDER", - "connection_id": "SECONDARY_ACCOUNT_CONNECTION_ID(OPTIONAL)", - "user_id": "SECONDARY_ACCOUNT_USER_ID" - } - ``` - - In this case you need to send `provider` and `user_id` in the body. Optionally you can also send the `connection_id` param which is suitable for identifying a particular database connection for the 'auth0' provider. - - Parameters - ---------- - id : str - ID of the primary user account to link a second user account to. - - provider : typing.Optional[UserIdentityProviderEnum] - Identity provider of the secondary user account being linked. - - connection_id : typing.Optional[str] - connection_id of the secondary user account being linked when more than one `auth0` database provider exists. - - user_id : typing.Optional[UserId] - user_id of the secondary user account being linked. - - link_with : typing.Optional[str] - JWT for the secondary account being linked. If sending this parameter, `provider`, `user_id`, and `connection_id` must not be sent. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - typing.List[UserIdentity] - Identity successfully added. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.users.identities.link( - id="id", - ) - """ - _response = self._raw_client.link( - id, - provider=provider, - connection_id=connection_id, - user_id=user_id, - link_with=link_with, - request_options=request_options, - ) - return _response.data - - def delete( - self, - id: str, - provider: UserIdentityProviderEnum, - user_id: str, - *, - request_options: typing.Optional[RequestOptions] = None, - ) -> DeleteUserIdentityResponseContent: - """ - Unlink a specific secondary account from a target user. This action requires the ID of both the target user and the secondary account. - - Unlinking the secondary account removes it from the identities array of the target user and creates a new standalone profile for the secondary account. To learn more, review [Unlink User Accounts](https://auth0.com/docs/manage-users/user-accounts/user-account-linking/unlink-user-accounts). - - Parameters - ---------- - id : str - ID of the primary user account. - - provider : UserIdentityProviderEnum - Identity provider name of the secondary linked account (e.g. `google-oauth2`). - - user_id : str - ID of the secondary linked account (e.g. `123456789081523216417` part after the `|` in `google-oauth2|123456789081523216417`). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - DeleteUserIdentityResponseContent - User identity successfully unlinked. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.users.identities.delete( - id="id", - provider="ad", - user_id="user_id", - ) - """ - _response = self._raw_client.delete(id, provider, user_id, request_options=request_options) - return _response.data - - -class AsyncIdentitiesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawIdentitiesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawIdentitiesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawIdentitiesClient - """ - return self._raw_client - - async def link( - self, - id: str, - *, - provider: typing.Optional[UserIdentityProviderEnum] = OMIT, - connection_id: typing.Optional[str] = OMIT, - user_id: typing.Optional[UserId] = OMIT, - link_with: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> typing.List[UserIdentity]: - """ - Link two user accounts together forming a primary and secondary relationship. On successful linking, the endpoint returns the new array of the primary account identities. - - Note: There are two ways of invoking the endpoint: - - - With the authenticated primary account's JWT in the Authorization header, which has the `update:current_user_identities` scope: - - ```http - POST /api/v2/users/PRIMARY_ACCOUNT_USER_ID/identities - Authorization: "Bearer PRIMARY_ACCOUNT_JWT" - { - "link_with": "SECONDARY_ACCOUNT_JWT" - } - ``` - - In this case, only the `link_with` param is required in the body, which also contains the JWT obtained upon the secondary account's authentication. - - - With a token generated by the API V2 containing the `update:users` scope: - - ```http - POST /api/v2/users/PRIMARY_ACCOUNT_USER_ID/identities - Authorization: "Bearer YOUR_API_V2_TOKEN" - { - "provider": "SECONDARY_ACCOUNT_PROVIDER", - "connection_id": "SECONDARY_ACCOUNT_CONNECTION_ID(OPTIONAL)", - "user_id": "SECONDARY_ACCOUNT_USER_ID" - } - ``` - - In this case you need to send `provider` and `user_id` in the body. Optionally you can also send the `connection_id` param which is suitable for identifying a particular database connection for the 'auth0' provider. - - Parameters - ---------- - id : str - ID of the primary user account to link a second user account to. - - provider : typing.Optional[UserIdentityProviderEnum] - Identity provider of the secondary user account being linked. - - connection_id : typing.Optional[str] - connection_id of the secondary user account being linked when more than one `auth0` database provider exists. - - user_id : typing.Optional[UserId] - user_id of the secondary user account being linked. - - link_with : typing.Optional[str] - JWT for the secondary account being linked. If sending this parameter, `provider`, `user_id`, and `connection_id` must not be sent. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - typing.List[UserIdentity] - Identity successfully added. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.users.identities.link( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.link( - id, - provider=provider, - connection_id=connection_id, - user_id=user_id, - link_with=link_with, - request_options=request_options, - ) - return _response.data - - async def delete( - self, - id: str, - provider: UserIdentityProviderEnum, - user_id: str, - *, - request_options: typing.Optional[RequestOptions] = None, - ) -> DeleteUserIdentityResponseContent: - """ - Unlink a specific secondary account from a target user. This action requires the ID of both the target user and the secondary account. - - Unlinking the secondary account removes it from the identities array of the target user and creates a new standalone profile for the secondary account. To learn more, review [Unlink User Accounts](https://auth0.com/docs/manage-users/user-accounts/user-account-linking/unlink-user-accounts). - - Parameters - ---------- - id : str - ID of the primary user account. - - provider : UserIdentityProviderEnum - Identity provider name of the secondary linked account (e.g. `google-oauth2`). - - user_id : str - ID of the secondary linked account (e.g. `123456789081523216417` part after the `|` in `google-oauth2|123456789081523216417`). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - DeleteUserIdentityResponseContent - User identity successfully unlinked. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.users.identities.delete( - id="id", - provider="ad", - user_id="user_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete(id, provider, user_id, request_options=request_options) - return _response.data diff --git a/src/auth0/management/users/identities/raw_client.py b/src/auth0/management/users/identities/raw_client.py deleted file mode 100644 index cffd36ee..00000000 --- a/src/auth0/management/users/identities/raw_client.py +++ /dev/null @@ -1,550 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ...core.api_error import ApiError -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.http_response import AsyncHttpResponse, HttpResponse -from ...core.jsonable_encoder import quote_path_param -from ...core.parse_error import ParsingError -from ...core.pydantic_utilities import parse_obj_as -from ...core.request_options import RequestOptions -from ...core.serialization import convert_and_respect_annotation_metadata -from ...errors.bad_request_error import BadRequestError -from ...errors.conflict_error import ConflictError -from ...errors.forbidden_error import ForbiddenError -from ...errors.too_many_requests_error import TooManyRequestsError -from ...errors.unauthorized_error import UnauthorizedError -from ...types.delete_user_identity_response_content import DeleteUserIdentityResponseContent -from ...types.user_id import UserId -from ...types.user_identity import UserIdentity -from ...types.user_identity_provider_enum import UserIdentityProviderEnum -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawIdentitiesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def link( - self, - id: str, - *, - provider: typing.Optional[UserIdentityProviderEnum] = OMIT, - connection_id: typing.Optional[str] = OMIT, - user_id: typing.Optional[UserId] = OMIT, - link_with: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[typing.List[UserIdentity]]: - """ - Link two user accounts together forming a primary and secondary relationship. On successful linking, the endpoint returns the new array of the primary account identities. - - Note: There are two ways of invoking the endpoint: - - - With the authenticated primary account's JWT in the Authorization header, which has the `update:current_user_identities` scope: - - ```http - POST /api/v2/users/PRIMARY_ACCOUNT_USER_ID/identities - Authorization: "Bearer PRIMARY_ACCOUNT_JWT" - { - "link_with": "SECONDARY_ACCOUNT_JWT" - } - ``` - - In this case, only the `link_with` param is required in the body, which also contains the JWT obtained upon the secondary account's authentication. - - - With a token generated by the API V2 containing the `update:users` scope: - - ```http - POST /api/v2/users/PRIMARY_ACCOUNT_USER_ID/identities - Authorization: "Bearer YOUR_API_V2_TOKEN" - { - "provider": "SECONDARY_ACCOUNT_PROVIDER", - "connection_id": "SECONDARY_ACCOUNT_CONNECTION_ID(OPTIONAL)", - "user_id": "SECONDARY_ACCOUNT_USER_ID" - } - ``` - - In this case you need to send `provider` and `user_id` in the body. Optionally you can also send the `connection_id` param which is suitable for identifying a particular database connection for the 'auth0' provider. - - Parameters - ---------- - id : str - ID of the primary user account to link a second user account to. - - provider : typing.Optional[UserIdentityProviderEnum] - Identity provider of the secondary user account being linked. - - connection_id : typing.Optional[str] - connection_id of the secondary user account being linked when more than one `auth0` database provider exists. - - user_id : typing.Optional[UserId] - user_id of the secondary user account being linked. - - link_with : typing.Optional[str] - JWT for the secondary account being linked. If sending this parameter, `provider`, `user_id`, and `connection_id` must not be sent. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[typing.List[UserIdentity]] - Identity successfully added. - """ - _response = self._client_wrapper.httpx_client.request( - f"users/{quote_path_param(id)}/identities", - method="POST", - json={ - "provider": provider, - "connection_id": connection_id, - "user_id": convert_and_respect_annotation_metadata( - object_=user_id, annotation=UserId, direction="write" - ), - "link_with": link_with, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - typing.List[UserIdentity], - parse_obj_as( - type_=typing.List[UserIdentity], # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def delete( - self, - id: str, - provider: UserIdentityProviderEnum, - user_id: str, - *, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[DeleteUserIdentityResponseContent]: - """ - Unlink a specific secondary account from a target user. This action requires the ID of both the target user and the secondary account. - - Unlinking the secondary account removes it from the identities array of the target user and creates a new standalone profile for the secondary account. To learn more, review [Unlink User Accounts](https://auth0.com/docs/manage-users/user-accounts/user-account-linking/unlink-user-accounts). - - Parameters - ---------- - id : str - ID of the primary user account. - - provider : UserIdentityProviderEnum - Identity provider name of the secondary linked account (e.g. `google-oauth2`). - - user_id : str - ID of the secondary linked account (e.g. `123456789081523216417` part after the `|` in `google-oauth2|123456789081523216417`). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[DeleteUserIdentityResponseContent] - User identity successfully unlinked. - """ - _response = self._client_wrapper.httpx_client.request( - f"users/{quote_path_param(id)}/identities/{quote_path_param(provider)}/{quote_path_param(user_id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - DeleteUserIdentityResponseContent, - parse_obj_as( - type_=DeleteUserIdentityResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawIdentitiesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def link( - self, - id: str, - *, - provider: typing.Optional[UserIdentityProviderEnum] = OMIT, - connection_id: typing.Optional[str] = OMIT, - user_id: typing.Optional[UserId] = OMIT, - link_with: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[typing.List[UserIdentity]]: - """ - Link two user accounts together forming a primary and secondary relationship. On successful linking, the endpoint returns the new array of the primary account identities. - - Note: There are two ways of invoking the endpoint: - - - With the authenticated primary account's JWT in the Authorization header, which has the `update:current_user_identities` scope: - - ```http - POST /api/v2/users/PRIMARY_ACCOUNT_USER_ID/identities - Authorization: "Bearer PRIMARY_ACCOUNT_JWT" - { - "link_with": "SECONDARY_ACCOUNT_JWT" - } - ``` - - In this case, only the `link_with` param is required in the body, which also contains the JWT obtained upon the secondary account's authentication. - - - With a token generated by the API V2 containing the `update:users` scope: - - ```http - POST /api/v2/users/PRIMARY_ACCOUNT_USER_ID/identities - Authorization: "Bearer YOUR_API_V2_TOKEN" - { - "provider": "SECONDARY_ACCOUNT_PROVIDER", - "connection_id": "SECONDARY_ACCOUNT_CONNECTION_ID(OPTIONAL)", - "user_id": "SECONDARY_ACCOUNT_USER_ID" - } - ``` - - In this case you need to send `provider` and `user_id` in the body. Optionally you can also send the `connection_id` param which is suitable for identifying a particular database connection for the 'auth0' provider. - - Parameters - ---------- - id : str - ID of the primary user account to link a second user account to. - - provider : typing.Optional[UserIdentityProviderEnum] - Identity provider of the secondary user account being linked. - - connection_id : typing.Optional[str] - connection_id of the secondary user account being linked when more than one `auth0` database provider exists. - - user_id : typing.Optional[UserId] - user_id of the secondary user account being linked. - - link_with : typing.Optional[str] - JWT for the secondary account being linked. If sending this parameter, `provider`, `user_id`, and `connection_id` must not be sent. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[typing.List[UserIdentity]] - Identity successfully added. - """ - _response = await self._client_wrapper.httpx_client.request( - f"users/{quote_path_param(id)}/identities", - method="POST", - json={ - "provider": provider, - "connection_id": connection_id, - "user_id": convert_and_respect_annotation_metadata( - object_=user_id, annotation=UserId, direction="write" - ), - "link_with": link_with, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - typing.List[UserIdentity], - parse_obj_as( - type_=typing.List[UserIdentity], # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def delete( - self, - id: str, - provider: UserIdentityProviderEnum, - user_id: str, - *, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[DeleteUserIdentityResponseContent]: - """ - Unlink a specific secondary account from a target user. This action requires the ID of both the target user and the secondary account. - - Unlinking the secondary account removes it from the identities array of the target user and creates a new standalone profile for the secondary account. To learn more, review [Unlink User Accounts](https://auth0.com/docs/manage-users/user-accounts/user-account-linking/unlink-user-accounts). - - Parameters - ---------- - id : str - ID of the primary user account. - - provider : UserIdentityProviderEnum - Identity provider name of the secondary linked account (e.g. `google-oauth2`). - - user_id : str - ID of the secondary linked account (e.g. `123456789081523216417` part after the `|` in `google-oauth2|123456789081523216417`). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[DeleteUserIdentityResponseContent] - User identity successfully unlinked. - """ - _response = await self._client_wrapper.httpx_client.request( - f"users/{quote_path_param(id)}/identities/{quote_path_param(provider)}/{quote_path_param(user_id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - DeleteUserIdentityResponseContent, - parse_obj_as( - type_=DeleteUserIdentityResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/users/logs/__init__.py b/src/auth0/management/users/logs/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/users/logs/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/users/logs/client.py b/src/auth0/management/users/logs/client.py deleted file mode 100644 index 85445fa5..00000000 --- a/src/auth0/management/users/logs/client.py +++ /dev/null @@ -1,187 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.pagination import AsyncPager, SyncPager -from ...core.request_options import RequestOptions -from ...types.log import Log -from ...types.user_list_log_offset_paginated_response_content import UserListLogOffsetPaginatedResponseContent -from .raw_client import AsyncRawLogsClient, RawLogsClient - - -class LogsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawLogsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawLogsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawLogsClient - """ - return self._raw_client - - def list( - self, - id: str, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - sort: typing.Optional[str] = None, - include_totals: typing.Optional[bool] = True, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[Log, UserListLogOffsetPaginatedResponseContent]: - """ - Retrieve log events for a specific user. - - Note: For more information on all possible event types, their respective acronyms and descriptions, see Log Event Type Codes. - - For more information on the list of fields that can be used in `sort`, see Searchable Fields. - - Auth0 limits the number of logs you can return by search criteria to 100 logs per request. Furthermore, you may only paginate through up to 1,000 search results. If you exceed this threshold, please redefine your search. - - Parameters - ---------- - id : str - ID of the user of the logs to retrieve - - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. Paging is disabled if parameter not sent. - - sort : typing.Optional[str] - Field to sort by. Use `fieldname:1` for ascending order and `fieldname:-1` for descending. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[Log, UserListLogOffsetPaginatedResponseContent] - Logs successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.users.logs.list( - id="id", - page=1, - per_page=1, - sort="sort", - include_totals=True, - ) - for item in response: - yield item - # alternatively, you can paginate page-by-page - for page in response.iter_pages(): - yield page - """ - return self._raw_client.list( - id, page=page, per_page=per_page, sort=sort, include_totals=include_totals, request_options=request_options - ) - - -class AsyncLogsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawLogsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawLogsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawLogsClient - """ - return self._raw_client - - async def list( - self, - id: str, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - sort: typing.Optional[str] = None, - include_totals: typing.Optional[bool] = True, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[Log, UserListLogOffsetPaginatedResponseContent]: - """ - Retrieve log events for a specific user. - - Note: For more information on all possible event types, their respective acronyms and descriptions, see Log Event Type Codes. - - For more information on the list of fields that can be used in `sort`, see Searchable Fields. - - Auth0 limits the number of logs you can return by search criteria to 100 logs per request. Furthermore, you may only paginate through up to 1,000 search results. If you exceed this threshold, please redefine your search. - - Parameters - ---------- - id : str - ID of the user of the logs to retrieve - - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. Paging is disabled if parameter not sent. - - sort : typing.Optional[str] - Field to sort by. Use `fieldname:1` for ascending order and `fieldname:-1` for descending. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[Log, UserListLogOffsetPaginatedResponseContent] - Logs successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.users.logs.list( - id="id", - page=1, - per_page=1, - sort="sort", - include_totals=True, - ) - async for item in response: - yield item - - # alternatively, you can paginate page-by-page - async for page in response.iter_pages(): - yield page - - - asyncio.run(main()) - """ - return await self._raw_client.list( - id, page=page, per_page=per_page, sort=sort, include_totals=include_totals, request_options=request_options - ) diff --git a/src/auth0/management/users/logs/raw_client.py b/src/auth0/management/users/logs/raw_client.py deleted file mode 100644 index 78b5e9e0..00000000 --- a/src/auth0/management/users/logs/raw_client.py +++ /dev/null @@ -1,292 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ...core.api_error import ApiError -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.jsonable_encoder import quote_path_param -from ...core.pagination import AsyncPager, SyncPager -from ...core.parse_error import ParsingError -from ...core.pydantic_utilities import parse_obj_as -from ...core.request_options import RequestOptions -from ...errors.bad_request_error import BadRequestError -from ...errors.forbidden_error import ForbiddenError -from ...errors.too_many_requests_error import TooManyRequestsError -from ...errors.unauthorized_error import UnauthorizedError -from ...types.log import Log -from ...types.user_list_log_offset_paginated_response_content import UserListLogOffsetPaginatedResponseContent -from pydantic import ValidationError - - -class RawLogsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - id: str, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - sort: typing.Optional[str] = None, - include_totals: typing.Optional[bool] = True, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[Log, UserListLogOffsetPaginatedResponseContent]: - """ - Retrieve log events for a specific user. - - Note: For more information on all possible event types, their respective acronyms and descriptions, see Log Event Type Codes. - - For more information on the list of fields that can be used in `sort`, see Searchable Fields. - - Auth0 limits the number of logs you can return by search criteria to 100 logs per request. Furthermore, you may only paginate through up to 1,000 search results. If you exceed this threshold, please redefine your search. - - Parameters - ---------- - id : str - ID of the user of the logs to retrieve - - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. Paging is disabled if parameter not sent. - - sort : typing.Optional[str] - Field to sort by. Use `fieldname:1` for ascending order and `fieldname:-1` for descending. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[Log, UserListLogOffsetPaginatedResponseContent] - Logs successfully retrieved. - """ - page = page if page is not None else 0 - - _response = self._client_wrapper.httpx_client.request( - f"users/{quote_path_param(id)}/logs", - method="GET", - params={ - "page": page, - "per_page": per_page, - "sort": sort, - "include_totals": include_totals, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - UserListLogOffsetPaginatedResponseContent, - parse_obj_as( - type_=UserListLogOffsetPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.logs - _has_next = len(_items or []) > 0 - _get_next = lambda: self.list( - id, - page=page + 1, - per_page=per_page, - sort=sort, - include_totals=include_totals, - request_options=request_options, - ) - return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawLogsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - id: str, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - sort: typing.Optional[str] = None, - include_totals: typing.Optional[bool] = True, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[Log, UserListLogOffsetPaginatedResponseContent]: - """ - Retrieve log events for a specific user. - - Note: For more information on all possible event types, their respective acronyms and descriptions, see Log Event Type Codes. - - For more information on the list of fields that can be used in `sort`, see Searchable Fields. - - Auth0 limits the number of logs you can return by search criteria to 100 logs per request. Furthermore, you may only paginate through up to 1,000 search results. If you exceed this threshold, please redefine your search. - - Parameters - ---------- - id : str - ID of the user of the logs to retrieve - - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. Paging is disabled if parameter not sent. - - sort : typing.Optional[str] - Field to sort by. Use `fieldname:1` for ascending order and `fieldname:-1` for descending. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[Log, UserListLogOffsetPaginatedResponseContent] - Logs successfully retrieved. - """ - page = page if page is not None else 0 - - _response = await self._client_wrapper.httpx_client.request( - f"users/{quote_path_param(id)}/logs", - method="GET", - params={ - "page": page, - "per_page": per_page, - "sort": sort, - "include_totals": include_totals, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - UserListLogOffsetPaginatedResponseContent, - parse_obj_as( - type_=UserListLogOffsetPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.logs - _has_next = len(_items or []) > 0 - - async def _get_next(): - return await self.list( - id, - page=page + 1, - per_page=per_page, - sort=sort, - include_totals=include_totals, - request_options=request_options, - ) - - return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/users/multifactor/__init__.py b/src/auth0/management/users/multifactor/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/users/multifactor/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/users/multifactor/client.py b/src/auth0/management/users/multifactor/client.py deleted file mode 100644 index 0b493652..00000000 --- a/src/auth0/management/users/multifactor/client.py +++ /dev/null @@ -1,190 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.request_options import RequestOptions -from ...types.user_multifactor_provider_enum import UserMultifactorProviderEnum -from .raw_client import AsyncRawMultifactorClient, RawMultifactorClient - - -class MultifactorClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawMultifactorClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawMultifactorClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawMultifactorClient - """ - return self._raw_client - - def invalidate_remember_browser(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Invalidate all remembered browsers across all [authentication factors](https://auth0.com/docs/multifactor-authentication) for a user. - - Parameters - ---------- - id : str - ID of the user to invalidate all remembered browsers and authentication factors for. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.users.multifactor.invalidate_remember_browser( - id="id", - ) - """ - _response = self._raw_client.invalidate_remember_browser(id, request_options=request_options) - return _response.data - - def delete_provider( - self, id: str, provider: UserMultifactorProviderEnum, *, request_options: typing.Optional[RequestOptions] = None - ) -> None: - """ - Remove a [multifactor](https://auth0.com/docs/multifactor-authentication) authentication configuration from a user's account. This forces the user to manually reconfigure the multi-factor provider. - - Parameters - ---------- - id : str - ID of the user to remove a multifactor configuration from. - - provider : UserMultifactorProviderEnum - The multi-factor provider. Supported values 'duo' or 'google-authenticator' - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.users.multifactor.delete_provider( - id="id", - provider="duo", - ) - """ - _response = self._raw_client.delete_provider(id, provider, request_options=request_options) - return _response.data - - -class AsyncMultifactorClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawMultifactorClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawMultifactorClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawMultifactorClient - """ - return self._raw_client - - async def invalidate_remember_browser( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> None: - """ - Invalidate all remembered browsers across all [authentication factors](https://auth0.com/docs/multifactor-authentication) for a user. - - Parameters - ---------- - id : str - ID of the user to invalidate all remembered browsers and authentication factors for. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.users.multifactor.invalidate_remember_browser( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.invalidate_remember_browser(id, request_options=request_options) - return _response.data - - async def delete_provider( - self, id: str, provider: UserMultifactorProviderEnum, *, request_options: typing.Optional[RequestOptions] = None - ) -> None: - """ - Remove a [multifactor](https://auth0.com/docs/multifactor-authentication) authentication configuration from a user's account. This forces the user to manually reconfigure the multi-factor provider. - - Parameters - ---------- - id : str - ID of the user to remove a multifactor configuration from. - - provider : UserMultifactorProviderEnum - The multi-factor provider. Supported values 'duo' or 'google-authenticator' - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.users.multifactor.delete_provider( - id="id", - provider="duo", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete_provider(id, provider, request_options=request_options) - return _response.data diff --git a/src/auth0/management/users/multifactor/raw_client.py b/src/auth0/management/users/multifactor/raw_client.py deleted file mode 100644 index a4684d60..00000000 --- a/src/auth0/management/users/multifactor/raw_client.py +++ /dev/null @@ -1,351 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ...core.api_error import ApiError -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.http_response import AsyncHttpResponse, HttpResponse -from ...core.jsonable_encoder import quote_path_param -from ...core.parse_error import ParsingError -from ...core.pydantic_utilities import parse_obj_as -from ...core.request_options import RequestOptions -from ...errors.bad_request_error import BadRequestError -from ...errors.forbidden_error import ForbiddenError -from ...errors.not_found_error import NotFoundError -from ...errors.too_many_requests_error import TooManyRequestsError -from ...errors.unauthorized_error import UnauthorizedError -from ...types.user_multifactor_provider_enum import UserMultifactorProviderEnum -from pydantic import ValidationError - - -class RawMultifactorClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def invalidate_remember_browser( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[None]: - """ - Invalidate all remembered browsers across all [authentication factors](https://auth0.com/docs/multifactor-authentication) for a user. - - Parameters - ---------- - id : str - ID of the user to invalidate all remembered browsers and authentication factors for. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"users/{quote_path_param(id)}/multifactor/actions/invalidate-remember-browser", - method="POST", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def delete_provider( - self, id: str, provider: UserMultifactorProviderEnum, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[None]: - """ - Remove a [multifactor](https://auth0.com/docs/multifactor-authentication) authentication configuration from a user's account. This forces the user to manually reconfigure the multi-factor provider. - - Parameters - ---------- - id : str - ID of the user to remove a multifactor configuration from. - - provider : UserMultifactorProviderEnum - The multi-factor provider. Supported values 'duo' or 'google-authenticator' - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"users/{quote_path_param(id)}/multifactor/{quote_path_param(provider)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawMultifactorClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def invalidate_remember_browser( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Invalidate all remembered browsers across all [authentication factors](https://auth0.com/docs/multifactor-authentication) for a user. - - Parameters - ---------- - id : str - ID of the user to invalidate all remembered browsers and authentication factors for. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"users/{quote_path_param(id)}/multifactor/actions/invalidate-remember-browser", - method="POST", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def delete_provider( - self, id: str, provider: UserMultifactorProviderEnum, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Remove a [multifactor](https://auth0.com/docs/multifactor-authentication) authentication configuration from a user's account. This forces the user to manually reconfigure the multi-factor provider. - - Parameters - ---------- - id : str - ID of the user to remove a multifactor configuration from. - - provider : UserMultifactorProviderEnum - The multi-factor provider. Supported values 'duo' or 'google-authenticator' - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"users/{quote_path_param(id)}/multifactor/{quote_path_param(provider)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/users/organizations/__init__.py b/src/auth0/management/users/organizations/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/users/organizations/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/users/organizations/client.py b/src/auth0/management/users/organizations/client.py deleted file mode 100644 index e4cca7b1..00000000 --- a/src/auth0/management/users/organizations/client.py +++ /dev/null @@ -1,199 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.pagination import AsyncPager, SyncPager -from ...core.request_options import RequestOptions -from ...types.list_user_organizations_offset_paginated_response_content import ( - ListUserOrganizationsOffsetPaginatedResponseContent, -) -from ...types.organization import Organization -from .raw_client import AsyncRawOrganizationsClient, RawOrganizationsClient - - -class OrganizationsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawOrganizationsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawOrganizationsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawOrganizationsClient - """ - return self._raw_client - - def list( - self, - id: str, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - include_totals: typing.Optional[bool] = True, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[Organization, ListUserOrganizationsOffsetPaginatedResponseContent]: - """ - Retrieve list of the specified user's current Organization memberships. User must be specified by user ID. For more information, review [Auth0 Organizations](https://auth0.com/docs/manage-users/organizations). - - This endpoint supports two types of pagination: - - - Offset pagination - - Checkpoint pagination - - Checkpoint pagination must be used if you need to retrieve more than 1000 organizations. - - **Checkpoint Pagination** - - To search by checkpoint, use the following parameters: - - - `from`: Optional id from which to start selection. - - `take`: The total number of entries to retrieve when using the `from` parameter. Defaults to 50. - - **Note**: The first time you call this endpoint using checkpoint pagination, omit the `from` parameter. If there are more results, a `next` value is included in the response. You can use this for subsequent API calls. When `next` is no longer included in the response, no pages are remaining. - - Parameters - ---------- - id : str - ID of the user to retrieve the organizations for. - - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. Defaults to 50. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[Organization, ListUserOrganizationsOffsetPaginatedResponseContent] - Organizations successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.users.organizations.list( - id="id", - page=1, - per_page=1, - include_totals=True, - ) - for item in response: - yield item - # alternatively, you can paginate page-by-page - for page in response.iter_pages(): - yield page - """ - return self._raw_client.list( - id, page=page, per_page=per_page, include_totals=include_totals, request_options=request_options - ) - - -class AsyncOrganizationsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawOrganizationsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawOrganizationsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawOrganizationsClient - """ - return self._raw_client - - async def list( - self, - id: str, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - include_totals: typing.Optional[bool] = True, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[Organization, ListUserOrganizationsOffsetPaginatedResponseContent]: - """ - Retrieve list of the specified user's current Organization memberships. User must be specified by user ID. For more information, review [Auth0 Organizations](https://auth0.com/docs/manage-users/organizations). - - This endpoint supports two types of pagination: - - - Offset pagination - - Checkpoint pagination - - Checkpoint pagination must be used if you need to retrieve more than 1000 organizations. - - **Checkpoint Pagination** - - To search by checkpoint, use the following parameters: - - - `from`: Optional id from which to start selection. - - `take`: The total number of entries to retrieve when using the `from` parameter. Defaults to 50. - - **Note**: The first time you call this endpoint using checkpoint pagination, omit the `from` parameter. If there are more results, a `next` value is included in the response. You can use this for subsequent API calls. When `next` is no longer included in the response, no pages are remaining. - - Parameters - ---------- - id : str - ID of the user to retrieve the organizations for. - - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. Defaults to 50. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[Organization, ListUserOrganizationsOffsetPaginatedResponseContent] - Organizations successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.users.organizations.list( - id="id", - page=1, - per_page=1, - include_totals=True, - ) - async for item in response: - yield item - - # alternatively, you can paginate page-by-page - async for page in response.iter_pages(): - yield page - - - asyncio.run(main()) - """ - return await self._raw_client.list( - id, page=page, per_page=per_page, include_totals=include_totals, request_options=request_options - ) diff --git a/src/auth0/management/users/organizations/raw_client.py b/src/auth0/management/users/organizations/raw_client.py deleted file mode 100644 index dde71f55..00000000 --- a/src/auth0/management/users/organizations/raw_client.py +++ /dev/null @@ -1,325 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ...core.api_error import ApiError -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.jsonable_encoder import quote_path_param -from ...core.pagination import AsyncPager, SyncPager -from ...core.parse_error import ParsingError -from ...core.pydantic_utilities import parse_obj_as -from ...core.request_options import RequestOptions -from ...errors.bad_request_error import BadRequestError -from ...errors.forbidden_error import ForbiddenError -from ...errors.not_found_error import NotFoundError -from ...errors.too_many_requests_error import TooManyRequestsError -from ...errors.unauthorized_error import UnauthorizedError -from ...types.list_user_organizations_offset_paginated_response_content import ( - ListUserOrganizationsOffsetPaginatedResponseContent, -) -from ...types.organization import Organization -from pydantic import ValidationError - - -class RawOrganizationsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - id: str, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - include_totals: typing.Optional[bool] = True, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[Organization, ListUserOrganizationsOffsetPaginatedResponseContent]: - """ - Retrieve list of the specified user's current Organization memberships. User must be specified by user ID. For more information, review [Auth0 Organizations](https://auth0.com/docs/manage-users/organizations). - - This endpoint supports two types of pagination: - - - Offset pagination - - Checkpoint pagination - - Checkpoint pagination must be used if you need to retrieve more than 1000 organizations. - - **Checkpoint Pagination** - - To search by checkpoint, use the following parameters: - - - `from`: Optional id from which to start selection. - - `take`: The total number of entries to retrieve when using the `from` parameter. Defaults to 50. - - **Note**: The first time you call this endpoint using checkpoint pagination, omit the `from` parameter. If there are more results, a `next` value is included in the response. You can use this for subsequent API calls. When `next` is no longer included in the response, no pages are remaining. - - Parameters - ---------- - id : str - ID of the user to retrieve the organizations for. - - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. Defaults to 50. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[Organization, ListUserOrganizationsOffsetPaginatedResponseContent] - Organizations successfully retrieved. - """ - page = page if page is not None else 0 - - _response = self._client_wrapper.httpx_client.request( - f"users/{quote_path_param(id)}/organizations", - method="GET", - params={ - "page": page, - "per_page": per_page, - "include_totals": include_totals, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListUserOrganizationsOffsetPaginatedResponseContent, - parse_obj_as( - type_=ListUserOrganizationsOffsetPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.organizations - _has_next = len(_items or []) > 0 - _get_next = lambda: self.list( - id, - page=page + 1, - per_page=per_page, - include_totals=include_totals, - request_options=request_options, - ) - return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawOrganizationsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - id: str, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - include_totals: typing.Optional[bool] = True, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[Organization, ListUserOrganizationsOffsetPaginatedResponseContent]: - """ - Retrieve list of the specified user's current Organization memberships. User must be specified by user ID. For more information, review [Auth0 Organizations](https://auth0.com/docs/manage-users/organizations). - - This endpoint supports two types of pagination: - - - Offset pagination - - Checkpoint pagination - - Checkpoint pagination must be used if you need to retrieve more than 1000 organizations. - - **Checkpoint Pagination** - - To search by checkpoint, use the following parameters: - - - `from`: Optional id from which to start selection. - - `take`: The total number of entries to retrieve when using the `from` parameter. Defaults to 50. - - **Note**: The first time you call this endpoint using checkpoint pagination, omit the `from` parameter. If there are more results, a `next` value is included in the response. You can use this for subsequent API calls. When `next` is no longer included in the response, no pages are remaining. - - Parameters - ---------- - id : str - ID of the user to retrieve the organizations for. - - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. Defaults to 50. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[Organization, ListUserOrganizationsOffsetPaginatedResponseContent] - Organizations successfully retrieved. - """ - page = page if page is not None else 0 - - _response = await self._client_wrapper.httpx_client.request( - f"users/{quote_path_param(id)}/organizations", - method="GET", - params={ - "page": page, - "per_page": per_page, - "include_totals": include_totals, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListUserOrganizationsOffsetPaginatedResponseContent, - parse_obj_as( - type_=ListUserOrganizationsOffsetPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.organizations - _has_next = len(_items or []) > 0 - - async def _get_next(): - return await self.list( - id, - page=page + 1, - per_page=per_page, - include_totals=include_totals, - request_options=request_options, - ) - - return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/users/permissions/__init__.py b/src/auth0/management/users/permissions/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/users/permissions/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/users/permissions/client.py b/src/auth0/management/users/permissions/client.py deleted file mode 100644 index e6c70e56..00000000 --- a/src/auth0/management/users/permissions/client.py +++ /dev/null @@ -1,371 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.pagination import AsyncPager, SyncPager -from ...core.request_options import RequestOptions -from ...types.list_user_permissions_offset_paginated_response_content import ( - ListUserPermissionsOffsetPaginatedResponseContent, -) -from ...types.permission_request_payload import PermissionRequestPayload -from ...types.user_permission_schema import UserPermissionSchema -from .raw_client import AsyncRawPermissionsClient, RawPermissionsClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class PermissionsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawPermissionsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawPermissionsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawPermissionsClient - """ - return self._raw_client - - def list( - self, - id: str, - *, - per_page: typing.Optional[int] = 50, - page: typing.Optional[int] = 0, - include_totals: typing.Optional[bool] = True, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[UserPermissionSchema, ListUserPermissionsOffsetPaginatedResponseContent]: - """ - Retrieve all permissions associated with the user. - - **Note**: Returns only permissions from direct assignments and directly assigned roles. For permissions a user has via group-based role assignments, use `GET /api/v2/users/{id}/effective-permissions`. - - Parameters - ---------- - id : str - ID of the user to retrieve the permissions for. - - per_page : typing.Optional[int] - Number of results per page. - - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[UserPermissionSchema, ListUserPermissionsOffsetPaginatedResponseContent] - Permissions successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.users.permissions.list( - id="id", - per_page=1, - page=1, - include_totals=True, - ) - for item in response: - yield item - # alternatively, you can paginate page-by-page - for page in response.iter_pages(): - yield page - """ - return self._raw_client.list( - id, per_page=per_page, page=page, include_totals=include_totals, request_options=request_options - ) - - def create( - self, - id: str, - *, - permissions: typing.Sequence[PermissionRequestPayload], - request_options: typing.Optional[RequestOptions] = None, - ) -> None: - """ - Assign permissions to a user. - - Parameters - ---------- - id : str - ID of the user to assign permissions to. - - permissions : typing.Sequence[PermissionRequestPayload] - List of permissions to add to this user. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0, PermissionRequestPayload - - client = Auth0( - token="YOUR_TOKEN", - ) - client.users.permissions.create( - id="id", - permissions=[ - PermissionRequestPayload( - resource_server_identifier="resource_server_identifier", - permission_name="permission_name", - ) - ], - ) - """ - _response = self._raw_client.create(id, permissions=permissions, request_options=request_options) - return _response.data - - def delete( - self, - id: str, - *, - permissions: typing.Sequence[PermissionRequestPayload], - request_options: typing.Optional[RequestOptions] = None, - ) -> None: - """ - Remove permissions from a user. - - Parameters - ---------- - id : str - ID of the user to remove permissions from. - - permissions : typing.Sequence[PermissionRequestPayload] - List of permissions to remove from this user. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0, PermissionRequestPayload - - client = Auth0( - token="YOUR_TOKEN", - ) - client.users.permissions.delete( - id="id", - permissions=[ - PermissionRequestPayload( - resource_server_identifier="resource_server_identifier", - permission_name="permission_name", - ) - ], - ) - """ - _response = self._raw_client.delete(id, permissions=permissions, request_options=request_options) - return _response.data - - -class AsyncPermissionsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawPermissionsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawPermissionsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawPermissionsClient - """ - return self._raw_client - - async def list( - self, - id: str, - *, - per_page: typing.Optional[int] = 50, - page: typing.Optional[int] = 0, - include_totals: typing.Optional[bool] = True, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[UserPermissionSchema, ListUserPermissionsOffsetPaginatedResponseContent]: - """ - Retrieve all permissions associated with the user. - - **Note**: Returns only permissions from direct assignments and directly assigned roles. For permissions a user has via group-based role assignments, use `GET /api/v2/users/{id}/effective-permissions`. - - Parameters - ---------- - id : str - ID of the user to retrieve the permissions for. - - per_page : typing.Optional[int] - Number of results per page. - - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[UserPermissionSchema, ListUserPermissionsOffsetPaginatedResponseContent] - Permissions successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.users.permissions.list( - id="id", - per_page=1, - page=1, - include_totals=True, - ) - async for item in response: - yield item - - # alternatively, you can paginate page-by-page - async for page in response.iter_pages(): - yield page - - - asyncio.run(main()) - """ - return await self._raw_client.list( - id, per_page=per_page, page=page, include_totals=include_totals, request_options=request_options - ) - - async def create( - self, - id: str, - *, - permissions: typing.Sequence[PermissionRequestPayload], - request_options: typing.Optional[RequestOptions] = None, - ) -> None: - """ - Assign permissions to a user. - - Parameters - ---------- - id : str - ID of the user to assign permissions to. - - permissions : typing.Sequence[PermissionRequestPayload] - List of permissions to add to this user. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0, PermissionRequestPayload - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.users.permissions.create( - id="id", - permissions=[ - PermissionRequestPayload( - resource_server_identifier="resource_server_identifier", - permission_name="permission_name", - ) - ], - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create(id, permissions=permissions, request_options=request_options) - return _response.data - - async def delete( - self, - id: str, - *, - permissions: typing.Sequence[PermissionRequestPayload], - request_options: typing.Optional[RequestOptions] = None, - ) -> None: - """ - Remove permissions from a user. - - Parameters - ---------- - id : str - ID of the user to remove permissions from. - - permissions : typing.Sequence[PermissionRequestPayload] - List of permissions to remove from this user. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0, PermissionRequestPayload - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.users.permissions.delete( - id="id", - permissions=[ - PermissionRequestPayload( - resource_server_identifier="resource_server_identifier", - permission_name="permission_name", - ) - ], - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete(id, permissions=permissions, request_options=request_options) - return _response.data diff --git a/src/auth0/management/users/permissions/raw_client.py b/src/auth0/management/users/permissions/raw_client.py deleted file mode 100644 index df0cbc0f..00000000 --- a/src/auth0/management/users/permissions/raw_client.py +++ /dev/null @@ -1,727 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ...core.api_error import ApiError -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.http_response import AsyncHttpResponse, HttpResponse -from ...core.jsonable_encoder import quote_path_param -from ...core.pagination import AsyncPager, SyncPager -from ...core.parse_error import ParsingError -from ...core.pydantic_utilities import parse_obj_as -from ...core.request_options import RequestOptions -from ...core.serialization import convert_and_respect_annotation_metadata -from ...errors.bad_request_error import BadRequestError -from ...errors.forbidden_error import ForbiddenError -from ...errors.not_found_error import NotFoundError -from ...errors.too_many_requests_error import TooManyRequestsError -from ...errors.unauthorized_error import UnauthorizedError -from ...types.list_user_permissions_offset_paginated_response_content import ( - ListUserPermissionsOffsetPaginatedResponseContent, -) -from ...types.permission_request_payload import PermissionRequestPayload -from ...types.user_permission_schema import UserPermissionSchema -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawPermissionsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - id: str, - *, - per_page: typing.Optional[int] = 50, - page: typing.Optional[int] = 0, - include_totals: typing.Optional[bool] = True, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[UserPermissionSchema, ListUserPermissionsOffsetPaginatedResponseContent]: - """ - Retrieve all permissions associated with the user. - - **Note**: Returns only permissions from direct assignments and directly assigned roles. For permissions a user has via group-based role assignments, use `GET /api/v2/users/{id}/effective-permissions`. - - Parameters - ---------- - id : str - ID of the user to retrieve the permissions for. - - per_page : typing.Optional[int] - Number of results per page. - - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[UserPermissionSchema, ListUserPermissionsOffsetPaginatedResponseContent] - Permissions successfully retrieved. - """ - page = page if page is not None else 0 - - _response = self._client_wrapper.httpx_client.request( - f"users/{quote_path_param(id)}/permissions", - method="GET", - params={ - "per_page": per_page, - "page": page, - "include_totals": include_totals, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListUserPermissionsOffsetPaginatedResponseContent, - parse_obj_as( - type_=ListUserPermissionsOffsetPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.permissions - _has_next = len(_items or []) > 0 - _get_next = lambda: self.list( - id, - per_page=per_page, - page=page + 1, - include_totals=include_totals, - request_options=request_options, - ) - return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - id: str, - *, - permissions: typing.Sequence[PermissionRequestPayload], - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[None]: - """ - Assign permissions to a user. - - Parameters - ---------- - id : str - ID of the user to assign permissions to. - - permissions : typing.Sequence[PermissionRequestPayload] - List of permissions to add to this user. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"users/{quote_path_param(id)}/permissions", - method="POST", - json={ - "permissions": convert_and_respect_annotation_metadata( - object_=permissions, annotation=typing.Sequence[PermissionRequestPayload], direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def delete( - self, - id: str, - *, - permissions: typing.Sequence[PermissionRequestPayload], - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[None]: - """ - Remove permissions from a user. - - Parameters - ---------- - id : str - ID of the user to remove permissions from. - - permissions : typing.Sequence[PermissionRequestPayload] - List of permissions to remove from this user. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"users/{quote_path_param(id)}/permissions", - method="DELETE", - json={ - "permissions": convert_and_respect_annotation_metadata( - object_=permissions, annotation=typing.Sequence[PermissionRequestPayload], direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawPermissionsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - id: str, - *, - per_page: typing.Optional[int] = 50, - page: typing.Optional[int] = 0, - include_totals: typing.Optional[bool] = True, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[UserPermissionSchema, ListUserPermissionsOffsetPaginatedResponseContent]: - """ - Retrieve all permissions associated with the user. - - **Note**: Returns only permissions from direct assignments and directly assigned roles. For permissions a user has via group-based role assignments, use `GET /api/v2/users/{id}/effective-permissions`. - - Parameters - ---------- - id : str - ID of the user to retrieve the permissions for. - - per_page : typing.Optional[int] - Number of results per page. - - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[UserPermissionSchema, ListUserPermissionsOffsetPaginatedResponseContent] - Permissions successfully retrieved. - """ - page = page if page is not None else 0 - - _response = await self._client_wrapper.httpx_client.request( - f"users/{quote_path_param(id)}/permissions", - method="GET", - params={ - "per_page": per_page, - "page": page, - "include_totals": include_totals, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListUserPermissionsOffsetPaginatedResponseContent, - parse_obj_as( - type_=ListUserPermissionsOffsetPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.permissions - _has_next = len(_items or []) > 0 - - async def _get_next(): - return await self.list( - id, - per_page=per_page, - page=page + 1, - include_totals=include_totals, - request_options=request_options, - ) - - return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - id: str, - *, - permissions: typing.Sequence[PermissionRequestPayload], - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[None]: - """ - Assign permissions to a user. - - Parameters - ---------- - id : str - ID of the user to assign permissions to. - - permissions : typing.Sequence[PermissionRequestPayload] - List of permissions to add to this user. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"users/{quote_path_param(id)}/permissions", - method="POST", - json={ - "permissions": convert_and_respect_annotation_metadata( - object_=permissions, annotation=typing.Sequence[PermissionRequestPayload], direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def delete( - self, - id: str, - *, - permissions: typing.Sequence[PermissionRequestPayload], - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[None]: - """ - Remove permissions from a user. - - Parameters - ---------- - id : str - ID of the user to remove permissions from. - - permissions : typing.Sequence[PermissionRequestPayload] - List of permissions to remove from this user. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"users/{quote_path_param(id)}/permissions", - method="DELETE", - json={ - "permissions": convert_and_respect_annotation_metadata( - object_=permissions, annotation=typing.Sequence[PermissionRequestPayload], direction="write" - ), - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/users/raw_client.py b/src/auth0/management/users/raw_client.py deleted file mode 100644 index 23c34bf5..00000000 --- a/src/auth0/management/users/raw_client.py +++ /dev/null @@ -1,2866 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ..core.api_error import ApiError -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.http_response import AsyncHttpResponse, HttpResponse -from ..core.jsonable_encoder import quote_path_param -from ..core.pagination import AsyncPager, SyncPager -from ..core.parse_error import ParsingError -from ..core.pydantic_utilities import parse_obj_as -from ..core.request_options import RequestOptions -from ..errors.bad_request_error import BadRequestError -from ..errors.conflict_error import ConflictError -from ..errors.forbidden_error import ForbiddenError -from ..errors.not_found_error import NotFoundError -from ..errors.service_unavailable_error import ServiceUnavailableError -from ..errors.too_many_requests_error import TooManyRequestsError -from ..errors.unauthorized_error import UnauthorizedError -from ..types.app_metadata import AppMetadata -from ..types.consent_signing_key import ConsentSigningKey -from ..types.create_user_response_content import CreateUserResponseContent -from ..types.get_user_response_content import GetUserResponseContent -from ..types.list_user_consent_signing_keys_response_content import ListUserConsentSigningKeysResponseContent -from ..types.list_users_offset_paginated_response_content import ListUsersOffsetPaginatedResponseContent -from ..types.regenerate_users_recovery_code_response_content import RegenerateUsersRecoveryCodeResponseContent -from ..types.search_engine_versions_enum import SearchEngineVersionsEnum -from ..types.update_user_response_content import UpdateUserResponseContent -from ..types.user_metadata import UserMetadata -from ..types.user_response_schema import UserResponseSchema -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawUsersClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - include_totals: typing.Optional[bool] = True, - sort: typing.Optional[str] = None, - connection: typing.Optional[str] = None, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - q: typing.Optional[str] = None, - search_engine: typing.Optional[SearchEngineVersionsEnum] = None, - primary_order: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[UserResponseSchema, ListUsersOffsetPaginatedResponseContent]: - """ - This endpoint retrieves details of users. It's best suited to interactive, best-effort search and lookups where slightly stale results are acceptable. With it, you can: - - - Specify search criteria for users - - Sort the users to be returned - - Select the fields to be returned - - Specify the number of users to retrieve per page and the page index - - This endpoint is **not suited for use in critical paths**. It is eventually consistent and runs under a short (~2 second) query time limit, so results can be stale and heavy queries can return a 503. - - - Do not use this endpoint for authentication, account linking, or logic inside login-flow Actions. Instead, [look users up directly by ID or email](https://auth0.com/docs/manage-users/user-search/get-users-by-id-or-email#management-api) to get their current state. - - Do not use this endpoint to keep an external system in sync with user data. Instead, subscribe to [Event Streams](https://auth0.com/docs/customize/events/sync-data-across-systems) to receive every change as it happens. - - Do not use this endpoint to enumerate or export your entire user base. Instead, run a [bulk user export](https://auth0.com/docs/manage-users/user-migration/bulk-user-exports) to retrieve the full set. - - Use the `q` query parameter to match users with [query string syntax](https://auth0.com/docs/manage-users/user-search/user-search-query-syntax). For full instructions and guidance, see [How to List and Search Users](https://auth0.com/docs/manage-users/user-search/list-and-search-users). - - For efficient queries, prefer indexed top-level fields and exact matches. Certain kinds of queries can be slow and may time out, such as filtering on freeform or multi-value fields (like user-defined attributes in `app_metadata` or `user_metadata`) or using leading wildcards. - - Parameters - ---------- - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - sort : typing.Optional[str] - Field to sort by. Use field:order where order is 1 for ascending and -1 for descending. e.g. created_at:1 - - connection : typing.Optional[str] - Connection filter. Only applies when using search_engine=v1. To filter by connection with search_engine=v2|v3, use q=identities.connection:"connection_name" - - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). - - q : typing.Optional[str] - Query in Lucene query string syntax. Some query types cannot be used on metadata fields, for details see Searchable Fields. - - search_engine : typing.Optional[SearchEngineVersionsEnum] - The version of the search engine - - primary_order : typing.Optional[bool] - If true (default), results are returned in a deterministic order. If false, results may be returned in a non-deterministic order, which can enhance performance for complex queries targeting a small number of users. Set to false only when consistent ordering and pagination is not required. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[UserResponseSchema, ListUsersOffsetPaginatedResponseContent] - Users successfully retrieved. - """ - page = page if page is not None else 0 - - _response = self._client_wrapper.httpx_client.request( - "users", - method="GET", - params={ - "page": page, - "per_page": per_page, - "include_totals": include_totals, - "sort": sort, - "connection": connection, - "fields": fields, - "include_fields": include_fields, - "q": q, - "search_engine": search_engine, - "primary_order": primary_order, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListUsersOffsetPaginatedResponseContent, - parse_obj_as( - type_=ListUsersOffsetPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.users - _has_next = len(_items or []) > 0 - _get_next = lambda: self.list( - page=page + 1, - per_page=per_page, - include_totals=include_totals, - sort=sort, - connection=connection, - fields=fields, - include_fields=include_fields, - q=q, - search_engine=search_engine, - primary_order=primary_order, - request_options=request_options, - ) - return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 503: - raise ServiceUnavailableError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - *, - connection: str, - email: typing.Optional[str] = OMIT, - phone_number: typing.Optional[str] = OMIT, - user_metadata: typing.Optional[UserMetadata] = OMIT, - blocked: typing.Optional[bool] = OMIT, - email_verified: typing.Optional[bool] = OMIT, - phone_verified: typing.Optional[bool] = OMIT, - app_metadata: typing.Optional[AppMetadata] = OMIT, - given_name: typing.Optional[str] = OMIT, - family_name: typing.Optional[str] = OMIT, - name: typing.Optional[str] = OMIT, - nickname: typing.Optional[str] = OMIT, - picture: typing.Optional[str] = OMIT, - user_id: typing.Optional[str] = OMIT, - password: typing.Optional[str] = OMIT, - verify_email: typing.Optional[bool] = OMIT, - username: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[CreateUserResponseContent]: - """ - Create a new user for a given [database](https://auth0.com/docs/connections/database) or [passwordless](https://auth0.com/docs/connections/passwordless) connection. - - Note: `connection` is required but other parameters such as `email` and `password` are dependent upon the type of connection. - - Parameters - ---------- - connection : str - Name of the connection this user should be created in. - - email : typing.Optional[str] - The user's email. - - phone_number : typing.Optional[str] - The user's phone number (following the E.164 recommendation). - - user_metadata : typing.Optional[UserMetadata] - - blocked : typing.Optional[bool] - Whether this user was blocked by an administrator (true) or not (false). - - email_verified : typing.Optional[bool] - Whether this email address is verified (true) or unverified (false). User will receive a verification email after creation if `email_verified` is false or not specified - - phone_verified : typing.Optional[bool] - Whether this phone number has been verified (true) or not (false). - - app_metadata : typing.Optional[AppMetadata] - - given_name : typing.Optional[str] - The user's given name(s). - - family_name : typing.Optional[str] - The user's family name(s). - - name : typing.Optional[str] - The user's full name. - - nickname : typing.Optional[str] - The user's nickname. - - picture : typing.Optional[str] - A URI pointing to the user's picture. - - user_id : typing.Optional[str] - The external user's id provided by the identity provider. - - password : typing.Optional[str] - Initial password for this user. Only valid for auth0 connection strategy. - - verify_email : typing.Optional[bool] - Whether the user will receive a verification email after creation (true) or no email (false). Overrides behavior of `email_verified` parameter. - - username : typing.Optional[str] - The user's username. Only valid if the connection requires a username. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CreateUserResponseContent] - User successfully created. - """ - _response = self._client_wrapper.httpx_client.request( - "users", - method="POST", - json={ - "email": email, - "phone_number": phone_number, - "user_metadata": user_metadata, - "blocked": blocked, - "email_verified": email_verified, - "phone_verified": phone_verified, - "app_metadata": app_metadata, - "given_name": given_name, - "family_name": family_name, - "name": name, - "nickname": nickname, - "picture": picture, - "user_id": user_id, - "connection": connection, - "password": password, - "verify_email": verify_email, - "username": username, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateUserResponseContent, - parse_obj_as( - type_=CreateUserResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def list_users_by_email( - self, - *, - email: str, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[typing.List[UserResponseSchema]]: - """ - Find users by email. If Auth0 is the identity provider (idP), the email address associated with a user is saved in lower case, regardless of how you initially provided it. - - For example, if you register a user as JohnSmith@example.com, Auth0 saves the user's email as johnsmith@example.com. - - Therefore, when using this endpoint, make sure that you are searching for users via email addresses using the correct case. - - Parameters - ---------- - email : str - Email address to search for (case-sensitive). - - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). Defaults to true. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[typing.List[UserResponseSchema]] - Users successfully searched. - """ - _response = self._client_wrapper.httpx_client.request( - "users-by-email", - method="GET", - params={ - "fields": fields, - "include_fields": include_fields, - "email": email, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - typing.List[UserResponseSchema], - parse_obj_as( - type_=typing.List[UserResponseSchema], # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def get( - self, - id: str, - *, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[GetUserResponseContent]: - """ - Retrieve user details. A list of fields to include or exclude may also be specified. For more information, see [Retrieve Users with the Get Users Endpoint](https://auth0.com/docs/manage-users/user-search/retrieve-users-with-get-users-endpoint). - - Parameters - ---------- - id : str - ID of the user to retrieve. - - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetUserResponseContent] - User successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - f"users/{quote_path_param(id)}", - method="GET", - params={ - "fields": fields, - "include_fields": include_fields, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetUserResponseContent, - parse_obj_as( - type_=GetUserResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[None]: - """ - Delete a user by user ID. This action cannot be undone. For Auth0 Dashboard instructions, see [Delete Users](https://auth0.com/docs/manage-users/user-accounts/delete-users). - - Parameters - ---------- - id : str - ID of the user to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"users/{quote_path_param(id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def update( - self, - id: str, - *, - blocked: typing.Optional[bool] = OMIT, - email_verified: typing.Optional[bool] = OMIT, - email: typing.Optional[str] = OMIT, - phone_number: typing.Optional[str] = OMIT, - phone_verified: typing.Optional[bool] = OMIT, - user_metadata: typing.Optional[UserMetadata] = OMIT, - app_metadata: typing.Optional[AppMetadata] = OMIT, - given_name: typing.Optional[str] = OMIT, - family_name: typing.Optional[str] = OMIT, - name: typing.Optional[str] = OMIT, - nickname: typing.Optional[str] = OMIT, - picture: typing.Optional[str] = OMIT, - verify_email: typing.Optional[bool] = OMIT, - verify_phone_number: typing.Optional[bool] = OMIT, - password: typing.Optional[str] = OMIT, - connection: typing.Optional[str] = OMIT, - client_id: typing.Optional[str] = OMIT, - username: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[UpdateUserResponseContent]: - """ - Update a user. - - These are the attributes that can be updated at the root level: - - - app_metadata - - blocked - - email - - email_verified - - family_name - - given_name - - name - - nickname - - password - - phone_number - - phone_verified - - picture - - username - - user_metadata - - verify_email - - Some considerations: - - - The properties of the new object will replace the old ones. - - The metadata fields are an exception to this rule (`user_metadata` and `app_metadata`). These properties are merged instead of being replaced but be careful, the merge only occurs on the first level. - - If you are updating `email`, `email_verified`, `phone_number`, `phone_verified`, `username` or `password` of a secondary identity, you need to specify the `connection` property too. - - If you are updating `email` or `phone_number` you can specify, optionally, the `client_id` property. - - Updating `email_verified` is not supported for enterprise and passwordless sms connections. - - Updating the `blocked` to `false` does not affect the user's blocked state from an excessive amount of incorrectly provided credentials. Use the "Unblock a user" endpoint from the "User Blocks" API to change the user's state. - - Supported attributes can be unset by supplying `null` as the value. - - **Updating a field (non-metadata property)** - - To mark the email address of a user as verified, the body to send should be: - - ```json - { "email_verified": true } - ``` - - **Updating a user metadata root property** - - Let's assume that our test user has the following `user_metadata`: - - ```json - { "user_metadata" : { "profileCode": 1479 } } - ``` - - To add the field `addresses` the body to send should be: - - ```json - { "user_metadata" : { "addresses": {"work_address": "100 Industrial Way"} }} - ``` - - The modified object ends up with the following `user_metadata` property: - - ```json - { - "user_metadata": { - "profileCode": 1479, - "addresses": { "work_address": "100 Industrial Way" } - } - } - ``` - - **Updating an inner user metadata property** - - If there's existing user metadata to which we want to add `"home_address": "742 Evergreen Terrace"` (using the `addresses` property) we should send the whole `addresses` object. Since this is a first-level object, the object will be merged in, but its own properties will not be. The body to send should be: - - ```json - { - "user_metadata": { - "addresses": { - "work_address": "100 Industrial Way", - "home_address": "742 Evergreen Terrace" - } - } - } - ``` - - The modified object ends up with the following `user_metadata` property: - - ```json - { - "user_metadata": { - "profileCode": 1479, - "addresses": { - "work_address": "100 Industrial Way", - "home_address": "742 Evergreen Terrace" - } - } - } - ``` - - Parameters - ---------- - id : str - ID of the user to update. - - blocked : typing.Optional[bool] - Whether this user was blocked by an administrator (true) or not (false). - - email_verified : typing.Optional[bool] - Whether this email address is verified (true) or unverified (false). If set to false the user will not receive a verification email unless `verify_email` is set to true. - - email : typing.Optional[str] - Email address of this user. - - phone_number : typing.Optional[str] - The user's phone number (following the E.164 recommendation). - - phone_verified : typing.Optional[bool] - Whether this phone number has been verified (true) or not (false). - - user_metadata : typing.Optional[UserMetadata] - User metadata to which this user has read/write access. - - app_metadata : typing.Optional[AppMetadata] - User metadata to which this user has read-only access. - - given_name : typing.Optional[str] - Given name/first name/forename of this user. - - family_name : typing.Optional[str] - Family name/last name/surname of this user. - - name : typing.Optional[str] - Name of this user. - - nickname : typing.Optional[str] - Preferred nickname or alias of this user. - - picture : typing.Optional[str] - URL to picture, photo, or avatar of this user. - - verify_email : typing.Optional[bool] - Whether this user will receive a verification email after creation (true) or no email (false). Overrides behavior of `email_verified` parameter. - - verify_phone_number : typing.Optional[bool] - Whether this user will receive a text after changing the phone number (true) or no text (false). Only valid when changing phone number for SMS connections. - - password : typing.Optional[str] - New password for this user. Only valid for database connections. - - connection : typing.Optional[str] - Name of the connection to target for this user update. - - client_id : typing.Optional[str] - Auth0 client ID. Only valid when updating email address. - - username : typing.Optional[str] - The user's username. Only valid if the connection requires a username. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[UpdateUserResponseContent] - User successfully updated. - """ - _response = self._client_wrapper.httpx_client.request( - f"users/{quote_path_param(id)}", - method="PATCH", - json={ - "blocked": blocked, - "email_verified": email_verified, - "email": email, - "phone_number": phone_number, - "phone_verified": phone_verified, - "user_metadata": user_metadata, - "app_metadata": app_metadata, - "given_name": given_name, - "family_name": family_name, - "name": name, - "nickname": nickname, - "picture": picture, - "verify_email": verify_email, - "verify_phone_number": verify_phone_number, - "password": password, - "connection": connection, - "client_id": client_id, - "username": username, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateUserResponseContent, - parse_obj_as( - type_=UpdateUserResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def list_consent_signing_keys( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[ListUserConsentSigningKeysResponseContent]: - """ - Retrieve all consent signing keys registered for a user. Returns an empty `keys` array when the user has no keys registered. - - Parameters - ---------- - id : str - The ID of the user. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[ListUserConsentSigningKeysResponseContent] - The user's consent signing keys were returned. - """ - _response = self._client_wrapper.httpx_client.request( - f"users/{quote_path_param(id)}/consent-signing-keys", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - ListUserConsentSigningKeysResponseContent, - parse_obj_as( - type_=ListUserConsentSigningKeysResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def get_consent_signing_key( - self, id: str, kid: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[ConsentSigningKey]: - """ - Retrieve a single consent signing key for a user by its key identifier (kid). Returns 404 if the key does not exist. - - Parameters - ---------- - id : str - The ID of the user. - - kid : str - The key identifier of the consent signing key. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[ConsentSigningKey] - The consent signing key was returned. - """ - _response = self._client_wrapper.httpx_client.request( - f"users/{quote_path_param(id)}/consent-signing-keys/{quote_path_param(kid)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - ConsentSigningKey, - parse_obj_as( - type_=ConsentSigningKey, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def delete_consent_signing_key( - self, id: str, kid: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[None]: - """ - Remove a single consent signing key for a user by its key identifier (kid). The operation is idempotent and returns 204 whether or not the key existed. - - Parameters - ---------- - id : str - The ID of the user. - - kid : str - The key identifier of the consent signing key. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"users/{quote_path_param(id)}/consent-signing-keys/{quote_path_param(kid)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def regenerate_recovery_code( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[RegenerateUsersRecoveryCodeResponseContent]: - """ - Remove an existing multi-factor authentication (MFA) [recovery code](https://auth0.com/docs/secure/multi-factor-authentication/reset-user-mfa) and generate a new one. If a user cannot access the original device or account used for MFA enrollment, they can use a recovery code to authenticate. - - Parameters - ---------- - id : str - ID of the user to regenerate a multi-factor authentication recovery code for. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[RegenerateUsersRecoveryCodeResponseContent] - New recovery code successfully generated. - """ - _response = self._client_wrapper.httpx_client.request( - f"users/{quote_path_param(id)}/recovery-code-regeneration", - method="POST", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - RegenerateUsersRecoveryCodeResponseContent, - parse_obj_as( - type_=RegenerateUsersRecoveryCodeResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def revoke_access( - self, - id: str, - *, - session_id: typing.Optional[str] = OMIT, - preserve_refresh_tokens: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[None]: - """ - Revokes selected resources related to a user (sessions, refresh tokens, ...). - - Parameters - ---------- - id : str - ID of the user. - - session_id : typing.Optional[str] - ID of the session to revoke. - - preserve_refresh_tokens : typing.Optional[bool] - Whether to preserve the refresh tokens associated with the session. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"users/{quote_path_param(id)}/revoke-access", - method="POST", - json={ - "session_id": session_id, - "preserve_refresh_tokens": preserve_refresh_tokens, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawUsersClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - page: typing.Optional[int] = 0, - per_page: typing.Optional[int] = 50, - include_totals: typing.Optional[bool] = True, - sort: typing.Optional[str] = None, - connection: typing.Optional[str] = None, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - q: typing.Optional[str] = None, - search_engine: typing.Optional[SearchEngineVersionsEnum] = None, - primary_order: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[UserResponseSchema, ListUsersOffsetPaginatedResponseContent]: - """ - This endpoint retrieves details of users. It's best suited to interactive, best-effort search and lookups where slightly stale results are acceptable. With it, you can: - - - Specify search criteria for users - - Sort the users to be returned - - Select the fields to be returned - - Specify the number of users to retrieve per page and the page index - - This endpoint is **not suited for use in critical paths**. It is eventually consistent and runs under a short (~2 second) query time limit, so results can be stale and heavy queries can return a 503. - - - Do not use this endpoint for authentication, account linking, or logic inside login-flow Actions. Instead, [look users up directly by ID or email](https://auth0.com/docs/manage-users/user-search/get-users-by-id-or-email#management-api) to get their current state. - - Do not use this endpoint to keep an external system in sync with user data. Instead, subscribe to [Event Streams](https://auth0.com/docs/customize/events/sync-data-across-systems) to receive every change as it happens. - - Do not use this endpoint to enumerate or export your entire user base. Instead, run a [bulk user export](https://auth0.com/docs/manage-users/user-migration/bulk-user-exports) to retrieve the full set. - - Use the `q` query parameter to match users with [query string syntax](https://auth0.com/docs/manage-users/user-search/user-search-query-syntax). For full instructions and guidance, see [How to List and Search Users](https://auth0.com/docs/manage-users/user-search/list-and-search-users). - - For efficient queries, prefer indexed top-level fields and exact matches. Certain kinds of queries can be slow and may time out, such as filtering on freeform or multi-value fields (like user-defined attributes in `app_metadata` or `user_metadata`) or using leading wildcards. - - Parameters - ---------- - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - per_page : typing.Optional[int] - Number of results per page. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - sort : typing.Optional[str] - Field to sort by. Use field:order where order is 1 for ascending and -1 for descending. e.g. created_at:1 - - connection : typing.Optional[str] - Connection filter. Only applies when using search_engine=v1. To filter by connection with search_engine=v2|v3, use q=identities.connection:"connection_name" - - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). - - q : typing.Optional[str] - Query in Lucene query string syntax. Some query types cannot be used on metadata fields, for details see Searchable Fields. - - search_engine : typing.Optional[SearchEngineVersionsEnum] - The version of the search engine - - primary_order : typing.Optional[bool] - If true (default), results are returned in a deterministic order. If false, results may be returned in a non-deterministic order, which can enhance performance for complex queries targeting a small number of users. Set to false only when consistent ordering and pagination is not required. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[UserResponseSchema, ListUsersOffsetPaginatedResponseContent] - Users successfully retrieved. - """ - page = page if page is not None else 0 - - _response = await self._client_wrapper.httpx_client.request( - "users", - method="GET", - params={ - "page": page, - "per_page": per_page, - "include_totals": include_totals, - "sort": sort, - "connection": connection, - "fields": fields, - "include_fields": include_fields, - "q": q, - "search_engine": search_engine, - "primary_order": primary_order, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListUsersOffsetPaginatedResponseContent, - parse_obj_as( - type_=ListUsersOffsetPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.users - _has_next = len(_items or []) > 0 - - async def _get_next(): - return await self.list( - page=page + 1, - per_page=per_page, - include_totals=include_totals, - sort=sort, - connection=connection, - fields=fields, - include_fields=include_fields, - q=q, - search_engine=search_engine, - primary_order=primary_order, - request_options=request_options, - ) - - return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 503: - raise ServiceUnavailableError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - *, - connection: str, - email: typing.Optional[str] = OMIT, - phone_number: typing.Optional[str] = OMIT, - user_metadata: typing.Optional[UserMetadata] = OMIT, - blocked: typing.Optional[bool] = OMIT, - email_verified: typing.Optional[bool] = OMIT, - phone_verified: typing.Optional[bool] = OMIT, - app_metadata: typing.Optional[AppMetadata] = OMIT, - given_name: typing.Optional[str] = OMIT, - family_name: typing.Optional[str] = OMIT, - name: typing.Optional[str] = OMIT, - nickname: typing.Optional[str] = OMIT, - picture: typing.Optional[str] = OMIT, - user_id: typing.Optional[str] = OMIT, - password: typing.Optional[str] = OMIT, - verify_email: typing.Optional[bool] = OMIT, - username: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[CreateUserResponseContent]: - """ - Create a new user for a given [database](https://auth0.com/docs/connections/database) or [passwordless](https://auth0.com/docs/connections/passwordless) connection. - - Note: `connection` is required but other parameters such as `email` and `password` are dependent upon the type of connection. - - Parameters - ---------- - connection : str - Name of the connection this user should be created in. - - email : typing.Optional[str] - The user's email. - - phone_number : typing.Optional[str] - The user's phone number (following the E.164 recommendation). - - user_metadata : typing.Optional[UserMetadata] - - blocked : typing.Optional[bool] - Whether this user was blocked by an administrator (true) or not (false). - - email_verified : typing.Optional[bool] - Whether this email address is verified (true) or unverified (false). User will receive a verification email after creation if `email_verified` is false or not specified - - phone_verified : typing.Optional[bool] - Whether this phone number has been verified (true) or not (false). - - app_metadata : typing.Optional[AppMetadata] - - given_name : typing.Optional[str] - The user's given name(s). - - family_name : typing.Optional[str] - The user's family name(s). - - name : typing.Optional[str] - The user's full name. - - nickname : typing.Optional[str] - The user's nickname. - - picture : typing.Optional[str] - A URI pointing to the user's picture. - - user_id : typing.Optional[str] - The external user's id provided by the identity provider. - - password : typing.Optional[str] - Initial password for this user. Only valid for auth0 connection strategy. - - verify_email : typing.Optional[bool] - Whether the user will receive a verification email after creation (true) or no email (false). Overrides behavior of `email_verified` parameter. - - username : typing.Optional[str] - The user's username. Only valid if the connection requires a username. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CreateUserResponseContent] - User successfully created. - """ - _response = await self._client_wrapper.httpx_client.request( - "users", - method="POST", - json={ - "email": email, - "phone_number": phone_number, - "user_metadata": user_metadata, - "blocked": blocked, - "email_verified": email_verified, - "phone_verified": phone_verified, - "app_metadata": app_metadata, - "given_name": given_name, - "family_name": family_name, - "name": name, - "nickname": nickname, - "picture": picture, - "user_id": user_id, - "connection": connection, - "password": password, - "verify_email": verify_email, - "username": username, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateUserResponseContent, - parse_obj_as( - type_=CreateUserResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def list_users_by_email( - self, - *, - email: str, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[typing.List[UserResponseSchema]]: - """ - Find users by email. If Auth0 is the identity provider (idP), the email address associated with a user is saved in lower case, regardless of how you initially provided it. - - For example, if you register a user as JohnSmith@example.com, Auth0 saves the user's email as johnsmith@example.com. - - Therefore, when using this endpoint, make sure that you are searching for users via email addresses using the correct case. - - Parameters - ---------- - email : str - Email address to search for (case-sensitive). - - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). Defaults to true. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[typing.List[UserResponseSchema]] - Users successfully searched. - """ - _response = await self._client_wrapper.httpx_client.request( - "users-by-email", - method="GET", - params={ - "fields": fields, - "include_fields": include_fields, - "email": email, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - typing.List[UserResponseSchema], - parse_obj_as( - type_=typing.List[UserResponseSchema], # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def get( - self, - id: str, - *, - fields: typing.Optional[str] = None, - include_fields: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[GetUserResponseContent]: - """ - Retrieve user details. A list of fields to include or exclude may also be specified. For more information, see [Retrieve Users with the Get Users Endpoint](https://auth0.com/docs/manage-users/user-search/retrieve-users-with-get-users-endpoint). - - Parameters - ---------- - id : str - ID of the user to retrieve. - - fields : typing.Optional[str] - Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. - - include_fields : typing.Optional[bool] - Whether specified fields are to be included (true) or excluded (false). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetUserResponseContent] - User successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - f"users/{quote_path_param(id)}", - method="GET", - params={ - "fields": fields, - "include_fields": include_fields, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetUserResponseContent, - parse_obj_as( - type_=GetUserResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def delete( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Delete a user by user ID. This action cannot be undone. For Auth0 Dashboard instructions, see [Delete Users](https://auth0.com/docs/manage-users/user-accounts/delete-users). - - Parameters - ---------- - id : str - ID of the user to delete. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"users/{quote_path_param(id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def update( - self, - id: str, - *, - blocked: typing.Optional[bool] = OMIT, - email_verified: typing.Optional[bool] = OMIT, - email: typing.Optional[str] = OMIT, - phone_number: typing.Optional[str] = OMIT, - phone_verified: typing.Optional[bool] = OMIT, - user_metadata: typing.Optional[UserMetadata] = OMIT, - app_metadata: typing.Optional[AppMetadata] = OMIT, - given_name: typing.Optional[str] = OMIT, - family_name: typing.Optional[str] = OMIT, - name: typing.Optional[str] = OMIT, - nickname: typing.Optional[str] = OMIT, - picture: typing.Optional[str] = OMIT, - verify_email: typing.Optional[bool] = OMIT, - verify_phone_number: typing.Optional[bool] = OMIT, - password: typing.Optional[str] = OMIT, - connection: typing.Optional[str] = OMIT, - client_id: typing.Optional[str] = OMIT, - username: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[UpdateUserResponseContent]: - """ - Update a user. - - These are the attributes that can be updated at the root level: - - - app_metadata - - blocked - - email - - email_verified - - family_name - - given_name - - name - - nickname - - password - - phone_number - - phone_verified - - picture - - username - - user_metadata - - verify_email - - Some considerations: - - - The properties of the new object will replace the old ones. - - The metadata fields are an exception to this rule (`user_metadata` and `app_metadata`). These properties are merged instead of being replaced but be careful, the merge only occurs on the first level. - - If you are updating `email`, `email_verified`, `phone_number`, `phone_verified`, `username` or `password` of a secondary identity, you need to specify the `connection` property too. - - If you are updating `email` or `phone_number` you can specify, optionally, the `client_id` property. - - Updating `email_verified` is not supported for enterprise and passwordless sms connections. - - Updating the `blocked` to `false` does not affect the user's blocked state from an excessive amount of incorrectly provided credentials. Use the "Unblock a user" endpoint from the "User Blocks" API to change the user's state. - - Supported attributes can be unset by supplying `null` as the value. - - **Updating a field (non-metadata property)** - - To mark the email address of a user as verified, the body to send should be: - - ```json - { "email_verified": true } - ``` - - **Updating a user metadata root property** - - Let's assume that our test user has the following `user_metadata`: - - ```json - { "user_metadata" : { "profileCode": 1479 } } - ``` - - To add the field `addresses` the body to send should be: - - ```json - { "user_metadata" : { "addresses": {"work_address": "100 Industrial Way"} }} - ``` - - The modified object ends up with the following `user_metadata` property: - - ```json - { - "user_metadata": { - "profileCode": 1479, - "addresses": { "work_address": "100 Industrial Way" } - } - } - ``` - - **Updating an inner user metadata property** - - If there's existing user metadata to which we want to add `"home_address": "742 Evergreen Terrace"` (using the `addresses` property) we should send the whole `addresses` object. Since this is a first-level object, the object will be merged in, but its own properties will not be. The body to send should be: - - ```json - { - "user_metadata": { - "addresses": { - "work_address": "100 Industrial Way", - "home_address": "742 Evergreen Terrace" - } - } - } - ``` - - The modified object ends up with the following `user_metadata` property: - - ```json - { - "user_metadata": { - "profileCode": 1479, - "addresses": { - "work_address": "100 Industrial Way", - "home_address": "742 Evergreen Terrace" - } - } - } - ``` - - Parameters - ---------- - id : str - ID of the user to update. - - blocked : typing.Optional[bool] - Whether this user was blocked by an administrator (true) or not (false). - - email_verified : typing.Optional[bool] - Whether this email address is verified (true) or unverified (false). If set to false the user will not receive a verification email unless `verify_email` is set to true. - - email : typing.Optional[str] - Email address of this user. - - phone_number : typing.Optional[str] - The user's phone number (following the E.164 recommendation). - - phone_verified : typing.Optional[bool] - Whether this phone number has been verified (true) or not (false). - - user_metadata : typing.Optional[UserMetadata] - User metadata to which this user has read/write access. - - app_metadata : typing.Optional[AppMetadata] - User metadata to which this user has read-only access. - - given_name : typing.Optional[str] - Given name/first name/forename of this user. - - family_name : typing.Optional[str] - Family name/last name/surname of this user. - - name : typing.Optional[str] - Name of this user. - - nickname : typing.Optional[str] - Preferred nickname or alias of this user. - - picture : typing.Optional[str] - URL to picture, photo, or avatar of this user. - - verify_email : typing.Optional[bool] - Whether this user will receive a verification email after creation (true) or no email (false). Overrides behavior of `email_verified` parameter. - - verify_phone_number : typing.Optional[bool] - Whether this user will receive a text after changing the phone number (true) or no text (false). Only valid when changing phone number for SMS connections. - - password : typing.Optional[str] - New password for this user. Only valid for database connections. - - connection : typing.Optional[str] - Name of the connection to target for this user update. - - client_id : typing.Optional[str] - Auth0 client ID. Only valid when updating email address. - - username : typing.Optional[str] - The user's username. Only valid if the connection requires a username. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[UpdateUserResponseContent] - User successfully updated. - """ - _response = await self._client_wrapper.httpx_client.request( - f"users/{quote_path_param(id)}", - method="PATCH", - json={ - "blocked": blocked, - "email_verified": email_verified, - "email": email, - "phone_number": phone_number, - "phone_verified": phone_verified, - "user_metadata": user_metadata, - "app_metadata": app_metadata, - "given_name": given_name, - "family_name": family_name, - "name": name, - "nickname": nickname, - "picture": picture, - "verify_email": verify_email, - "verify_phone_number": verify_phone_number, - "password": password, - "connection": connection, - "client_id": client_id, - "username": username, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateUserResponseContent, - parse_obj_as( - type_=UpdateUserResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def list_consent_signing_keys( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[ListUserConsentSigningKeysResponseContent]: - """ - Retrieve all consent signing keys registered for a user. Returns an empty `keys` array when the user has no keys registered. - - Parameters - ---------- - id : str - The ID of the user. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[ListUserConsentSigningKeysResponseContent] - The user's consent signing keys were returned. - """ - _response = await self._client_wrapper.httpx_client.request( - f"users/{quote_path_param(id)}/consent-signing-keys", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - ListUserConsentSigningKeysResponseContent, - parse_obj_as( - type_=ListUserConsentSigningKeysResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def get_consent_signing_key( - self, id: str, kid: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[ConsentSigningKey]: - """ - Retrieve a single consent signing key for a user by its key identifier (kid). Returns 404 if the key does not exist. - - Parameters - ---------- - id : str - The ID of the user. - - kid : str - The key identifier of the consent signing key. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[ConsentSigningKey] - The consent signing key was returned. - """ - _response = await self._client_wrapper.httpx_client.request( - f"users/{quote_path_param(id)}/consent-signing-keys/{quote_path_param(kid)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - ConsentSigningKey, - parse_obj_as( - type_=ConsentSigningKey, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def delete_consent_signing_key( - self, id: str, kid: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Remove a single consent signing key for a user by its key identifier (kid). The operation is idempotent and returns 204 whether or not the key existed. - - Parameters - ---------- - id : str - The ID of the user. - - kid : str - The key identifier of the consent signing key. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"users/{quote_path_param(id)}/consent-signing-keys/{quote_path_param(kid)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def regenerate_recovery_code( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[RegenerateUsersRecoveryCodeResponseContent]: - """ - Remove an existing multi-factor authentication (MFA) [recovery code](https://auth0.com/docs/secure/multi-factor-authentication/reset-user-mfa) and generate a new one. If a user cannot access the original device or account used for MFA enrollment, they can use a recovery code to authenticate. - - Parameters - ---------- - id : str - ID of the user to regenerate a multi-factor authentication recovery code for. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[RegenerateUsersRecoveryCodeResponseContent] - New recovery code successfully generated. - """ - _response = await self._client_wrapper.httpx_client.request( - f"users/{quote_path_param(id)}/recovery-code-regeneration", - method="POST", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - RegenerateUsersRecoveryCodeResponseContent, - parse_obj_as( - type_=RegenerateUsersRecoveryCodeResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def revoke_access( - self, - id: str, - *, - session_id: typing.Optional[str] = OMIT, - preserve_refresh_tokens: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[None]: - """ - Revokes selected resources related to a user (sessions, refresh tokens, ...). - - Parameters - ---------- - id : str - ID of the user. - - session_id : typing.Optional[str] - ID of the session to revoke. - - preserve_refresh_tokens : typing.Optional[bool] - Whether to preserve the refresh tokens associated with the session. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"users/{quote_path_param(id)}/revoke-access", - method="POST", - json={ - "session_id": session_id, - "preserve_refresh_tokens": preserve_refresh_tokens, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/users/refresh_token/__init__.py b/src/auth0/management/users/refresh_token/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/users/refresh_token/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/users/refresh_token/client.py b/src/auth0/management/users/refresh_token/client.py deleted file mode 100644 index 56ef1e90..00000000 --- a/src/auth0/management/users/refresh_token/client.py +++ /dev/null @@ -1,233 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.pagination import AsyncPager, SyncPager -from ...core.request_options import RequestOptions -from ...types.list_refresh_tokens_paginated_response_content import ListRefreshTokensPaginatedResponseContent -from ...types.refresh_token_response_content import RefreshTokenResponseContent -from .raw_client import AsyncRawRefreshTokenClient, RawRefreshTokenClient - - -class RefreshTokenClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawRefreshTokenClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawRefreshTokenClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawRefreshTokenClient - """ - return self._raw_client - - def list( - self, - user_id: str, - *, - include_totals: typing.Optional[bool] = True, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[RefreshTokenResponseContent, ListRefreshTokensPaginatedResponseContent]: - """ - Retrieve details for a user's refresh tokens. - - Parameters - ---------- - user_id : str - ID of the user to get refresh tokens for - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - from_ : typing.Optional[str] - An optional cursor from which to start the selection (exclusive). - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[RefreshTokenResponseContent, ListRefreshTokensPaginatedResponseContent] - The refresh tokens were retrieved - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.users.refresh_token.list( - user_id="user_id", - include_totals=True, - from_="from", - take=1, - ) - for item in response: - yield item - # alternatively, you can paginate page-by-page - for page in response.iter_pages(): - yield page - """ - return self._raw_client.list( - user_id, include_totals=include_totals, from_=from_, take=take, request_options=request_options - ) - - def delete(self, user_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete all refresh tokens for a user. - - Parameters - ---------- - user_id : str - ID of the user to get remove refresh tokens for - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.users.refresh_token.delete( - user_id="user_id", - ) - """ - _response = self._raw_client.delete(user_id, request_options=request_options) - return _response.data - - -class AsyncRefreshTokenClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawRefreshTokenClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawRefreshTokenClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawRefreshTokenClient - """ - return self._raw_client - - async def list( - self, - user_id: str, - *, - include_totals: typing.Optional[bool] = True, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[RefreshTokenResponseContent, ListRefreshTokensPaginatedResponseContent]: - """ - Retrieve details for a user's refresh tokens. - - Parameters - ---------- - user_id : str - ID of the user to get refresh tokens for - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - from_ : typing.Optional[str] - An optional cursor from which to start the selection (exclusive). - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[RefreshTokenResponseContent, ListRefreshTokensPaginatedResponseContent] - The refresh tokens were retrieved - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.users.refresh_token.list( - user_id="user_id", - include_totals=True, - from_="from", - take=1, - ) - async for item in response: - yield item - - # alternatively, you can paginate page-by-page - async for page in response.iter_pages(): - yield page - - - asyncio.run(main()) - """ - return await self._raw_client.list( - user_id, include_totals=include_totals, from_=from_, take=take, request_options=request_options - ) - - async def delete(self, user_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete all refresh tokens for a user. - - Parameters - ---------- - user_id : str - ID of the user to get remove refresh tokens for - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.users.refresh_token.delete( - user_id="user_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete(user_id, request_options=request_options) - return _response.data diff --git a/src/auth0/management/users/refresh_token/raw_client.py b/src/auth0/management/users/refresh_token/raw_client.py deleted file mode 100644 index bbf8ad20..00000000 --- a/src/auth0/management/users/refresh_token/raw_client.py +++ /dev/null @@ -1,446 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ...core.api_error import ApiError -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.http_response import AsyncHttpResponse, HttpResponse -from ...core.jsonable_encoder import quote_path_param -from ...core.pagination import AsyncPager, SyncPager -from ...core.parse_error import ParsingError -from ...core.pydantic_utilities import parse_obj_as -from ...core.request_options import RequestOptions -from ...errors.bad_request_error import BadRequestError -from ...errors.forbidden_error import ForbiddenError -from ...errors.not_found_error import NotFoundError -from ...errors.too_many_requests_error import TooManyRequestsError -from ...errors.unauthorized_error import UnauthorizedError -from ...types.list_refresh_tokens_paginated_response_content import ListRefreshTokensPaginatedResponseContent -from ...types.refresh_token_response_content import RefreshTokenResponseContent -from pydantic import ValidationError - - -class RawRefreshTokenClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - user_id: str, - *, - include_totals: typing.Optional[bool] = True, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[RefreshTokenResponseContent, ListRefreshTokensPaginatedResponseContent]: - """ - Retrieve details for a user's refresh tokens. - - Parameters - ---------- - user_id : str - ID of the user to get refresh tokens for - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - from_ : typing.Optional[str] - An optional cursor from which to start the selection (exclusive). - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[RefreshTokenResponseContent, ListRefreshTokensPaginatedResponseContent] - The refresh tokens were retrieved - """ - _response = self._client_wrapper.httpx_client.request( - f"users/{quote_path_param(user_id)}/refresh-tokens", - method="GET", - params={ - "include_totals": include_totals, - "from": from_, - "take": take, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListRefreshTokensPaginatedResponseContent, - parse_obj_as( - type_=ListRefreshTokensPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.tokens - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - _get_next = lambda: self.list( - user_id, - include_totals=include_totals, - from_=_parsed_next, - take=take, - request_options=request_options, - ) - return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def delete(self, user_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[None]: - """ - Delete all refresh tokens for a user. - - Parameters - ---------- - user_id : str - ID of the user to get remove refresh tokens for - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"users/{quote_path_param(user_id)}/refresh-tokens", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawRefreshTokenClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - user_id: str, - *, - include_totals: typing.Optional[bool] = True, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[RefreshTokenResponseContent, ListRefreshTokensPaginatedResponseContent]: - """ - Retrieve details for a user's refresh tokens. - - Parameters - ---------- - user_id : str - ID of the user to get refresh tokens for - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - from_ : typing.Optional[str] - An optional cursor from which to start the selection (exclusive). - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[RefreshTokenResponseContent, ListRefreshTokensPaginatedResponseContent] - The refresh tokens were retrieved - """ - _response = await self._client_wrapper.httpx_client.request( - f"users/{quote_path_param(user_id)}/refresh-tokens", - method="GET", - params={ - "include_totals": include_totals, - "from": from_, - "take": take, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListRefreshTokensPaginatedResponseContent, - parse_obj_as( - type_=ListRefreshTokensPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.tokens - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - - async def _get_next(): - return await self.list( - user_id, - include_totals=include_totals, - from_=_parsed_next, - take=take, - request_options=request_options, - ) - - return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def delete( - self, user_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Delete all refresh tokens for a user. - - Parameters - ---------- - user_id : str - ID of the user to get remove refresh tokens for - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"users/{quote_path_param(user_id)}/refresh-tokens", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/users/risk_assessments/__init__.py b/src/auth0/management/users/risk_assessments/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/users/risk_assessments/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/users/risk_assessments/client.py b/src/auth0/management/users/risk_assessments/client.py deleted file mode 100644 index f868b4bc..00000000 --- a/src/auth0/management/users/risk_assessments/client.py +++ /dev/null @@ -1,145 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.request_options import RequestOptions -from ...types.assessors_type_enum import AssessorsTypeEnum -from .raw_client import AsyncRawRiskAssessmentsClient, RawRiskAssessmentsClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RiskAssessmentsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawRiskAssessmentsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawRiskAssessmentsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawRiskAssessmentsClient - """ - return self._raw_client - - def clear( - self, - id: str, - *, - connection: str, - assessors: typing.Sequence[AssessorsTypeEnum], - request_options: typing.Optional[RequestOptions] = None, - ) -> None: - """ - Clear risk assessment assessors for a specific user - - Parameters - ---------- - id : str - ID of the user to clear assessors for. - - connection : str - The name of the connection containing the user whose assessors should be cleared. - - assessors : typing.Sequence[AssessorsTypeEnum] - List of assessors to clear. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.users.risk_assessments.clear( - id="id", - connection="connection", - assessors=["new-device"], - ) - """ - _response = self._raw_client.clear( - id, connection=connection, assessors=assessors, request_options=request_options - ) - return _response.data - - -class AsyncRiskAssessmentsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawRiskAssessmentsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawRiskAssessmentsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawRiskAssessmentsClient - """ - return self._raw_client - - async def clear( - self, - id: str, - *, - connection: str, - assessors: typing.Sequence[AssessorsTypeEnum], - request_options: typing.Optional[RequestOptions] = None, - ) -> None: - """ - Clear risk assessment assessors for a specific user - - Parameters - ---------- - id : str - ID of the user to clear assessors for. - - connection : str - The name of the connection containing the user whose assessors should be cleared. - - assessors : typing.Sequence[AssessorsTypeEnum] - List of assessors to clear. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.users.risk_assessments.clear( - id="id", - connection="connection", - assessors=["new-device"], - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.clear( - id, connection=connection, assessors=assessors, request_options=request_options - ) - return _response.data diff --git a/src/auth0/management/users/risk_assessments/raw_client.py b/src/auth0/management/users/risk_assessments/raw_client.py deleted file mode 100644 index d5ea49f6..00000000 --- a/src/auth0/management/users/risk_assessments/raw_client.py +++ /dev/null @@ -1,227 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ...core.api_error import ApiError -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.http_response import AsyncHttpResponse, HttpResponse -from ...core.jsonable_encoder import quote_path_param -from ...core.parse_error import ParsingError -from ...core.pydantic_utilities import parse_obj_as -from ...core.request_options import RequestOptions -from ...errors.bad_request_error import BadRequestError -from ...errors.forbidden_error import ForbiddenError -from ...errors.too_many_requests_error import TooManyRequestsError -from ...errors.unauthorized_error import UnauthorizedError -from ...types.assessors_type_enum import AssessorsTypeEnum -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawRiskAssessmentsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def clear( - self, - id: str, - *, - connection: str, - assessors: typing.Sequence[AssessorsTypeEnum], - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[None]: - """ - Clear risk assessment assessors for a specific user - - Parameters - ---------- - id : str - ID of the user to clear assessors for. - - connection : str - The name of the connection containing the user whose assessors should be cleared. - - assessors : typing.Sequence[AssessorsTypeEnum] - List of assessors to clear. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"users/{quote_path_param(id)}/risk-assessments/clear", - method="POST", - json={ - "connection": connection, - "assessors": assessors, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawRiskAssessmentsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def clear( - self, - id: str, - *, - connection: str, - assessors: typing.Sequence[AssessorsTypeEnum], - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[None]: - """ - Clear risk assessment assessors for a specific user - - Parameters - ---------- - id : str - ID of the user to clear assessors for. - - connection : str - The name of the connection containing the user whose assessors should be cleared. - - assessors : typing.Sequence[AssessorsTypeEnum] - List of assessors to clear. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"users/{quote_path_param(id)}/risk-assessments/clear", - method="POST", - json={ - "connection": connection, - "assessors": assessors, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/users/roles/__init__.py b/src/auth0/management/users/roles/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/users/roles/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/users/roles/client.py b/src/auth0/management/users/roles/client.py deleted file mode 100644 index f8732af6..00000000 --- a/src/auth0/management/users/roles/client.py +++ /dev/null @@ -1,344 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.pagination import AsyncPager, SyncPager -from ...core.request_options import RequestOptions -from ...types.list_user_roles_offset_paginated_response_content import ListUserRolesOffsetPaginatedResponseContent -from ...types.role import Role -from .raw_client import AsyncRawRolesClient, RawRolesClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RolesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawRolesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawRolesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawRolesClient - """ - return self._raw_client - - def list( - self, - id: str, - *, - per_page: typing.Optional[int] = 50, - page: typing.Optional[int] = 0, - include_totals: typing.Optional[bool] = True, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[Role, ListUserRolesOffsetPaginatedResponseContent]: - """ - Retrieve detailed list of all user roles currently assigned to a user. - - **Note**: This action retrieves all roles assigned to a user in the context of your whole tenant. To retrieve Organization-specific roles, use the following endpoint: [Get user roles assigned to an Organization member](https://auth0.com/docs/api/management/v2/organizations/get-organization-member-roles). - - **Note**: Returns only direct role assignments. To also include group-based role assignments, use `GET /api/v2/users/{id}/effective-roles`. - - Parameters - ---------- - id : str - ID of the user to list roles for. - - per_page : typing.Optional[int] - Number of results per page. - - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[Role, ListUserRolesOffsetPaginatedResponseContent] - Roles successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.users.roles.list( - id="id", - per_page=1, - page=1, - include_totals=True, - ) - for item in response: - yield item - # alternatively, you can paginate page-by-page - for page in response.iter_pages(): - yield page - """ - return self._raw_client.list( - id, per_page=per_page, page=page, include_totals=include_totals, request_options=request_options - ) - - def assign( - self, id: str, *, roles: typing.Sequence[str], request_options: typing.Optional[RequestOptions] = None - ) -> None: - """ - Assign one or more existing user roles to a user. For more information, review [Role-Based Access Control](https://auth0.com/docs/manage-users/access-control/rbac). - - **Note**: New roles cannot be created through this action. Additionally, this action is used to assign roles to a user in the context of your whole tenant. To assign roles in the context of a specific Organization, use the following endpoint: [Assign user roles to an Organization member](https://auth0.com/docs/api/management/v2/organizations/post-organization-member-roles). - - Parameters - ---------- - id : str - ID of the user to associate roles with. - - roles : typing.Sequence[str] - List of roles IDs to associated with the user. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.users.roles.assign( - id="id", - roles=["roles"], - ) - """ - _response = self._raw_client.assign(id, roles=roles, request_options=request_options) - return _response.data - - def delete( - self, id: str, *, roles: typing.Sequence[str], request_options: typing.Optional[RequestOptions] = None - ) -> None: - """ - Remove one or more specified user roles assigned to a user. - - **Note**: This action removes a role from a user in the context of your whole tenant. If you want to unassign a role from a user in the context of a specific Organization, use the following endpoint: [Delete user roles from an Organization member](https://auth0.com/docs/api/management/v2/organizations/delete-organization-member-roles). - - Parameters - ---------- - id : str - ID of the user to remove roles from. - - roles : typing.Sequence[str] - List of roles IDs to remove from the user. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.users.roles.delete( - id="id", - roles=["roles"], - ) - """ - _response = self._raw_client.delete(id, roles=roles, request_options=request_options) - return _response.data - - -class AsyncRolesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawRolesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawRolesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawRolesClient - """ - return self._raw_client - - async def list( - self, - id: str, - *, - per_page: typing.Optional[int] = 50, - page: typing.Optional[int] = 0, - include_totals: typing.Optional[bool] = True, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[Role, ListUserRolesOffsetPaginatedResponseContent]: - """ - Retrieve detailed list of all user roles currently assigned to a user. - - **Note**: This action retrieves all roles assigned to a user in the context of your whole tenant. To retrieve Organization-specific roles, use the following endpoint: [Get user roles assigned to an Organization member](https://auth0.com/docs/api/management/v2/organizations/get-organization-member-roles). - - **Note**: Returns only direct role assignments. To also include group-based role assignments, use `GET /api/v2/users/{id}/effective-roles`. - - Parameters - ---------- - id : str - ID of the user to list roles for. - - per_page : typing.Optional[int] - Number of results per page. - - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[Role, ListUserRolesOffsetPaginatedResponseContent] - Roles successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.users.roles.list( - id="id", - per_page=1, - page=1, - include_totals=True, - ) - async for item in response: - yield item - - # alternatively, you can paginate page-by-page - async for page in response.iter_pages(): - yield page - - - asyncio.run(main()) - """ - return await self._raw_client.list( - id, per_page=per_page, page=page, include_totals=include_totals, request_options=request_options - ) - - async def assign( - self, id: str, *, roles: typing.Sequence[str], request_options: typing.Optional[RequestOptions] = None - ) -> None: - """ - Assign one or more existing user roles to a user. For more information, review [Role-Based Access Control](https://auth0.com/docs/manage-users/access-control/rbac). - - **Note**: New roles cannot be created through this action. Additionally, this action is used to assign roles to a user in the context of your whole tenant. To assign roles in the context of a specific Organization, use the following endpoint: [Assign user roles to an Organization member](https://auth0.com/docs/api/management/v2/organizations/post-organization-member-roles). - - Parameters - ---------- - id : str - ID of the user to associate roles with. - - roles : typing.Sequence[str] - List of roles IDs to associated with the user. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.users.roles.assign( - id="id", - roles=["roles"], - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.assign(id, roles=roles, request_options=request_options) - return _response.data - - async def delete( - self, id: str, *, roles: typing.Sequence[str], request_options: typing.Optional[RequestOptions] = None - ) -> None: - """ - Remove one or more specified user roles assigned to a user. - - **Note**: This action removes a role from a user in the context of your whole tenant. If you want to unassign a role from a user in the context of a specific Organization, use the following endpoint: [Delete user roles from an Organization member](https://auth0.com/docs/api/management/v2/organizations/delete-organization-member-roles). - - Parameters - ---------- - id : str - ID of the user to remove roles from. - - roles : typing.Sequence[str] - List of roles IDs to remove from the user. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.users.roles.delete( - id="id", - roles=["roles"], - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete(id, roles=roles, request_options=request_options) - return _response.data diff --git a/src/auth0/management/users/roles/raw_client.py b/src/auth0/management/users/roles/raw_client.py deleted file mode 100644 index c22f5da5..00000000 --- a/src/auth0/management/users/roles/raw_client.py +++ /dev/null @@ -1,689 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ...core.api_error import ApiError -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.http_response import AsyncHttpResponse, HttpResponse -from ...core.jsonable_encoder import quote_path_param -from ...core.pagination import AsyncPager, SyncPager -from ...core.parse_error import ParsingError -from ...core.pydantic_utilities import parse_obj_as -from ...core.request_options import RequestOptions -from ...errors.bad_request_error import BadRequestError -from ...errors.forbidden_error import ForbiddenError -from ...errors.not_found_error import NotFoundError -from ...errors.too_many_requests_error import TooManyRequestsError -from ...errors.unauthorized_error import UnauthorizedError -from ...types.list_user_roles_offset_paginated_response_content import ListUserRolesOffsetPaginatedResponseContent -from ...types.role import Role -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawRolesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - id: str, - *, - per_page: typing.Optional[int] = 50, - page: typing.Optional[int] = 0, - include_totals: typing.Optional[bool] = True, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[Role, ListUserRolesOffsetPaginatedResponseContent]: - """ - Retrieve detailed list of all user roles currently assigned to a user. - - **Note**: This action retrieves all roles assigned to a user in the context of your whole tenant. To retrieve Organization-specific roles, use the following endpoint: [Get user roles assigned to an Organization member](https://auth0.com/docs/api/management/v2/organizations/get-organization-member-roles). - - **Note**: Returns only direct role assignments. To also include group-based role assignments, use `GET /api/v2/users/{id}/effective-roles`. - - Parameters - ---------- - id : str - ID of the user to list roles for. - - per_page : typing.Optional[int] - Number of results per page. - - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[Role, ListUserRolesOffsetPaginatedResponseContent] - Roles successfully retrieved. - """ - page = page if page is not None else 0 - - _response = self._client_wrapper.httpx_client.request( - f"users/{quote_path_param(id)}/roles", - method="GET", - params={ - "per_page": per_page, - "page": page, - "include_totals": include_totals, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListUserRolesOffsetPaginatedResponseContent, - parse_obj_as( - type_=ListUserRolesOffsetPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.roles - _has_next = len(_items or []) > 0 - _get_next = lambda: self.list( - id, - per_page=per_page, - page=page + 1, - include_totals=include_totals, - request_options=request_options, - ) - return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def assign( - self, id: str, *, roles: typing.Sequence[str], request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[None]: - """ - Assign one or more existing user roles to a user. For more information, review [Role-Based Access Control](https://auth0.com/docs/manage-users/access-control/rbac). - - **Note**: New roles cannot be created through this action. Additionally, this action is used to assign roles to a user in the context of your whole tenant. To assign roles in the context of a specific Organization, use the following endpoint: [Assign user roles to an Organization member](https://auth0.com/docs/api/management/v2/organizations/post-organization-member-roles). - - Parameters - ---------- - id : str - ID of the user to associate roles with. - - roles : typing.Sequence[str] - List of roles IDs to associated with the user. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"users/{quote_path_param(id)}/roles", - method="POST", - json={ - "roles": roles, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def delete( - self, id: str, *, roles: typing.Sequence[str], request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[None]: - """ - Remove one or more specified user roles assigned to a user. - - **Note**: This action removes a role from a user in the context of your whole tenant. If you want to unassign a role from a user in the context of a specific Organization, use the following endpoint: [Delete user roles from an Organization member](https://auth0.com/docs/api/management/v2/organizations/delete-organization-member-roles). - - Parameters - ---------- - id : str - ID of the user to remove roles from. - - roles : typing.Sequence[str] - List of roles IDs to remove from the user. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"users/{quote_path_param(id)}/roles", - method="DELETE", - json={ - "roles": roles, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawRolesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - id: str, - *, - per_page: typing.Optional[int] = 50, - page: typing.Optional[int] = 0, - include_totals: typing.Optional[bool] = True, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[Role, ListUserRolesOffsetPaginatedResponseContent]: - """ - Retrieve detailed list of all user roles currently assigned to a user. - - **Note**: This action retrieves all roles assigned to a user in the context of your whole tenant. To retrieve Organization-specific roles, use the following endpoint: [Get user roles assigned to an Organization member](https://auth0.com/docs/api/management/v2/organizations/get-organization-member-roles). - - **Note**: Returns only direct role assignments. To also include group-based role assignments, use `GET /api/v2/users/{id}/effective-roles`. - - Parameters - ---------- - id : str - ID of the user to list roles for. - - per_page : typing.Optional[int] - Number of results per page. - - page : typing.Optional[int] - Page index of the results to return. First page is 0. - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[Role, ListUserRolesOffsetPaginatedResponseContent] - Roles successfully retrieved. - """ - page = page if page is not None else 0 - - _response = await self._client_wrapper.httpx_client.request( - f"users/{quote_path_param(id)}/roles", - method="GET", - params={ - "per_page": per_page, - "page": page, - "include_totals": include_totals, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListUserRolesOffsetPaginatedResponseContent, - parse_obj_as( - type_=ListUserRolesOffsetPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.roles - _has_next = len(_items or []) > 0 - - async def _get_next(): - return await self.list( - id, - per_page=per_page, - page=page + 1, - include_totals=include_totals, - request_options=request_options, - ) - - return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def assign( - self, id: str, *, roles: typing.Sequence[str], request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Assign one or more existing user roles to a user. For more information, review [Role-Based Access Control](https://auth0.com/docs/manage-users/access-control/rbac). - - **Note**: New roles cannot be created through this action. Additionally, this action is used to assign roles to a user in the context of your whole tenant. To assign roles in the context of a specific Organization, use the following endpoint: [Assign user roles to an Organization member](https://auth0.com/docs/api/management/v2/organizations/post-organization-member-roles). - - Parameters - ---------- - id : str - ID of the user to associate roles with. - - roles : typing.Sequence[str] - List of roles IDs to associated with the user. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"users/{quote_path_param(id)}/roles", - method="POST", - json={ - "roles": roles, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def delete( - self, id: str, *, roles: typing.Sequence[str], request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Remove one or more specified user roles assigned to a user. - - **Note**: This action removes a role from a user in the context of your whole tenant. If you want to unassign a role from a user in the context of a specific Organization, use the following endpoint: [Delete user roles from an Organization member](https://auth0.com/docs/api/management/v2/organizations/delete-organization-member-roles). - - Parameters - ---------- - id : str - ID of the user to remove roles from. - - roles : typing.Sequence[str] - List of roles IDs to remove from the user. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"users/{quote_path_param(id)}/roles", - method="DELETE", - json={ - "roles": roles, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/users/sessions/__init__.py b/src/auth0/management/users/sessions/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/users/sessions/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/users/sessions/client.py b/src/auth0/management/users/sessions/client.py deleted file mode 100644 index a4284a82..00000000 --- a/src/auth0/management/users/sessions/client.py +++ /dev/null @@ -1,233 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.pagination import AsyncPager, SyncPager -from ...core.request_options import RequestOptions -from ...types.list_user_sessions_paginated_response_content import ListUserSessionsPaginatedResponseContent -from ...types.session_response_content import SessionResponseContent -from .raw_client import AsyncRawSessionsClient, RawSessionsClient - - -class SessionsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawSessionsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawSessionsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawSessionsClient - """ - return self._raw_client - - def list( - self, - user_id: str, - *, - include_totals: typing.Optional[bool] = True, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[SessionResponseContent, ListUserSessionsPaginatedResponseContent]: - """ - Retrieve details for a user's sessions. - - Parameters - ---------- - user_id : str - ID of the user to get sessions for - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - from_ : typing.Optional[str] - An optional cursor from which to start the selection (exclusive). - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[SessionResponseContent, ListUserSessionsPaginatedResponseContent] - The sessions were retrieved - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.users.sessions.list( - user_id="user_id", - include_totals=True, - from_="from", - take=1, - ) - for item in response: - yield item - # alternatively, you can paginate page-by-page - for page in response.iter_pages(): - yield page - """ - return self._raw_client.list( - user_id, include_totals=include_totals, from_=from_, take=take, request_options=request_options - ) - - def delete(self, user_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete all sessions for a user. - - Parameters - ---------- - user_id : str - ID of the user to get sessions for - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.users.sessions.delete( - user_id="user_id", - ) - """ - _response = self._raw_client.delete(user_id, request_options=request_options) - return _response.data - - -class AsyncSessionsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawSessionsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawSessionsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawSessionsClient - """ - return self._raw_client - - async def list( - self, - user_id: str, - *, - include_totals: typing.Optional[bool] = True, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[SessionResponseContent, ListUserSessionsPaginatedResponseContent]: - """ - Retrieve details for a user's sessions. - - Parameters - ---------- - user_id : str - ID of the user to get sessions for - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - from_ : typing.Optional[str] - An optional cursor from which to start the selection (exclusive). - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[SessionResponseContent, ListUserSessionsPaginatedResponseContent] - The sessions were retrieved - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.users.sessions.list( - user_id="user_id", - include_totals=True, - from_="from", - take=1, - ) - async for item in response: - yield item - - # alternatively, you can paginate page-by-page - async for page in response.iter_pages(): - yield page - - - asyncio.run(main()) - """ - return await self._raw_client.list( - user_id, include_totals=include_totals, from_=from_, take=take, request_options=request_options - ) - - async def delete(self, user_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete all sessions for a user. - - Parameters - ---------- - user_id : str - ID of the user to get sessions for - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.users.sessions.delete( - user_id="user_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete(user_id, request_options=request_options) - return _response.data diff --git a/src/auth0/management/users/sessions/raw_client.py b/src/auth0/management/users/sessions/raw_client.py deleted file mode 100644 index e3f57f8c..00000000 --- a/src/auth0/management/users/sessions/raw_client.py +++ /dev/null @@ -1,446 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ...core.api_error import ApiError -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ...core.http_response import AsyncHttpResponse, HttpResponse -from ...core.jsonable_encoder import quote_path_param -from ...core.pagination import AsyncPager, SyncPager -from ...core.parse_error import ParsingError -from ...core.pydantic_utilities import parse_obj_as -from ...core.request_options import RequestOptions -from ...errors.bad_request_error import BadRequestError -from ...errors.forbidden_error import ForbiddenError -from ...errors.not_found_error import NotFoundError -from ...errors.too_many_requests_error import TooManyRequestsError -from ...errors.unauthorized_error import UnauthorizedError -from ...types.list_user_sessions_paginated_response_content import ListUserSessionsPaginatedResponseContent -from ...types.session_response_content import SessionResponseContent -from pydantic import ValidationError - - -class RawSessionsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - user_id: str, - *, - include_totals: typing.Optional[bool] = True, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[SessionResponseContent, ListUserSessionsPaginatedResponseContent]: - """ - Retrieve details for a user's sessions. - - Parameters - ---------- - user_id : str - ID of the user to get sessions for - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - from_ : typing.Optional[str] - An optional cursor from which to start the selection (exclusive). - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[SessionResponseContent, ListUserSessionsPaginatedResponseContent] - The sessions were retrieved - """ - _response = self._client_wrapper.httpx_client.request( - f"users/{quote_path_param(user_id)}/sessions", - method="GET", - params={ - "include_totals": include_totals, - "from": from_, - "take": take, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListUserSessionsPaginatedResponseContent, - parse_obj_as( - type_=ListUserSessionsPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.sessions - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - _get_next = lambda: self.list( - user_id, - include_totals=include_totals, - from_=_parsed_next, - take=take, - request_options=request_options, - ) - return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def delete(self, user_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[None]: - """ - Delete all sessions for a user. - - Parameters - ---------- - user_id : str - ID of the user to get sessions for - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"users/{quote_path_param(user_id)}/sessions", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawSessionsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - user_id: str, - *, - include_totals: typing.Optional[bool] = True, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[SessionResponseContent, ListUserSessionsPaginatedResponseContent]: - """ - Retrieve details for a user's sessions. - - Parameters - ---------- - user_id : str - ID of the user to get sessions for - - include_totals : typing.Optional[bool] - Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). - - from_ : typing.Optional[str] - An optional cursor from which to start the selection (exclusive). - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[SessionResponseContent, ListUserSessionsPaginatedResponseContent] - The sessions were retrieved - """ - _response = await self._client_wrapper.httpx_client.request( - f"users/{quote_path_param(user_id)}/sessions", - method="GET", - params={ - "include_totals": include_totals, - "from": from_, - "take": take, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListUserSessionsPaginatedResponseContent, - parse_obj_as( - type_=ListUserSessionsPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.sessions - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - - async def _get_next(): - return await self.list( - user_id, - include_totals=include_totals, - from_=_parsed_next, - take=take, - request_options=request_options, - ) - - return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def delete( - self, user_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Delete all sessions for a user. - - Parameters - ---------- - user_id : str - ID of the user to get sessions for - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"users/{quote_path_param(user_id)}/sessions", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/auth0/management/verifiable_credentials/__init__.py b/src/auth0/management/verifiable_credentials/__init__.py deleted file mode 100644 index 6b6426c9..00000000 --- a/src/auth0/management/verifiable_credentials/__init__.py +++ /dev/null @@ -1,34 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from . import verification -_dynamic_imports: typing.Dict[str, str] = {"verification": ".verification"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - if module_name == f".{attr_name}": - return module - else: - return getattr(module, attr_name) - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["verification"] diff --git a/src/auth0/management/verifiable_credentials/client.py b/src/auth0/management/verifiable_credentials/client.py deleted file mode 100644 index c9ef315f..00000000 --- a/src/auth0/management/verifiable_credentials/client.py +++ /dev/null @@ -1,63 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .raw_client import AsyncRawVerifiableCredentialsClient, RawVerifiableCredentialsClient - -if typing.TYPE_CHECKING: - from .verification.client import AsyncVerificationClient, VerificationClient - - -class VerifiableCredentialsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawVerifiableCredentialsClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._verification: typing.Optional[VerificationClient] = None - - @property - def with_raw_response(self) -> RawVerifiableCredentialsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawVerifiableCredentialsClient - """ - return self._raw_client - - @property - def verification(self): - if self._verification is None: - from .verification.client import VerificationClient # noqa: E402 - - self._verification = VerificationClient(client_wrapper=self._client_wrapper) - return self._verification - - -class AsyncVerifiableCredentialsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawVerifiableCredentialsClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._verification: typing.Optional[AsyncVerificationClient] = None - - @property - def with_raw_response(self) -> AsyncRawVerifiableCredentialsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawVerifiableCredentialsClient - """ - return self._raw_client - - @property - def verification(self): - if self._verification is None: - from .verification.client import AsyncVerificationClient # noqa: E402 - - self._verification = AsyncVerificationClient(client_wrapper=self._client_wrapper) - return self._verification diff --git a/src/auth0/management/verifiable_credentials/raw_client.py b/src/auth0/management/verifiable_credentials/raw_client.py deleted file mode 100644 index a5013b9b..00000000 --- a/src/auth0/management/verifiable_credentials/raw_client.py +++ /dev/null @@ -1,13 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper - - -class RawVerifiableCredentialsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - -class AsyncRawVerifiableCredentialsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper diff --git a/src/auth0/management/verifiable_credentials/verification/__init__.py b/src/auth0/management/verifiable_credentials/verification/__init__.py deleted file mode 100644 index bf052681..00000000 --- a/src/auth0/management/verifiable_credentials/verification/__init__.py +++ /dev/null @@ -1,34 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from . import templates -_dynamic_imports: typing.Dict[str, str] = {"templates": ".templates"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - if module_name == f".{attr_name}": - return module - else: - return getattr(module, attr_name) - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["templates"] diff --git a/src/auth0/management/verifiable_credentials/verification/client.py b/src/auth0/management/verifiable_credentials/verification/client.py deleted file mode 100644 index de486f4d..00000000 --- a/src/auth0/management/verifiable_credentials/verification/client.py +++ /dev/null @@ -1,63 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .raw_client import AsyncRawVerificationClient, RawVerificationClient - -if typing.TYPE_CHECKING: - from .templates.client import AsyncTemplatesClient, TemplatesClient - - -class VerificationClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawVerificationClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._templates: typing.Optional[TemplatesClient] = None - - @property - def with_raw_response(self) -> RawVerificationClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawVerificationClient - """ - return self._raw_client - - @property - def templates(self): - if self._templates is None: - from .templates.client import TemplatesClient # noqa: E402 - - self._templates = TemplatesClient(client_wrapper=self._client_wrapper) - return self._templates - - -class AsyncVerificationClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawVerificationClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._templates: typing.Optional[AsyncTemplatesClient] = None - - @property - def with_raw_response(self) -> AsyncRawVerificationClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawVerificationClient - """ - return self._raw_client - - @property - def templates(self): - if self._templates is None: - from .templates.client import AsyncTemplatesClient # noqa: E402 - - self._templates = AsyncTemplatesClient(client_wrapper=self._client_wrapper) - return self._templates diff --git a/src/auth0/management/verifiable_credentials/verification/raw_client.py b/src/auth0/management/verifiable_credentials/verification/raw_client.py deleted file mode 100644 index eae3c5bc..00000000 --- a/src/auth0/management/verifiable_credentials/verification/raw_client.py +++ /dev/null @@ -1,13 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper - - -class RawVerificationClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - -class AsyncRawVerificationClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper diff --git a/src/auth0/management/verifiable_credentials/verification/templates/__init__.py b/src/auth0/management/verifiable_credentials/verification/templates/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/auth0/management/verifiable_credentials/verification/templates/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/auth0/management/verifiable_credentials/verification/templates/client.py b/src/auth0/management/verifiable_credentials/verification/templates/client.py deleted file mode 100644 index ee4975f3..00000000 --- a/src/auth0/management/verifiable_credentials/verification/templates/client.py +++ /dev/null @@ -1,580 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ....core.pagination import AsyncPager, SyncPager -from ....core.request_options import RequestOptions -from ....types.create_verifiable_credential_template_response_content import ( - CreateVerifiableCredentialTemplateResponseContent, -) -from ....types.get_verifiable_credential_template_response_content import GetVerifiableCredentialTemplateResponseContent -from ....types.list_verifiable_credential_templates_paginated_response_content import ( - ListVerifiableCredentialTemplatesPaginatedResponseContent, -) -from ....types.mdl_presentation_request import MdlPresentationRequest -from ....types.update_verifiable_credential_template_response_content import ( - UpdateVerifiableCredentialTemplateResponseContent, -) -from ....types.verifiable_credential_template_response import VerifiableCredentialTemplateResponse -from .raw_client import AsyncRawTemplatesClient, RawTemplatesClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class TemplatesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawTemplatesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawTemplatesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawTemplatesClient - """ - return self._raw_client - - def list( - self, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[VerifiableCredentialTemplateResponse, ListVerifiableCredentialTemplatesPaginatedResponseContent]: - """ - List verifiable credential templates. - - Parameters - ---------- - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[VerifiableCredentialTemplateResponse, ListVerifiableCredentialTemplatesPaginatedResponseContent] - Templates successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - response = client.verifiable_credentials.verification.templates.list( - from_="from", - take=1, - ) - for item in response: - yield item - # alternatively, you can paginate page-by-page - for page in response.iter_pages(): - yield page - """ - return self._raw_client.list(from_=from_, take=take, request_options=request_options) - - def create( - self, - *, - name: str, - type: str, - dialect: str, - presentation: MdlPresentationRequest, - well_known_trusted_issuers: str, - custom_certificate_authority: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateVerifiableCredentialTemplateResponseContent: - """ - Create a verifiable credential template. - - Parameters - ---------- - name : str - - type : str - - dialect : str - - presentation : MdlPresentationRequest - - well_known_trusted_issuers : str - - custom_certificate_authority : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateVerifiableCredentialTemplateResponseContent - Template successfully created. - - Examples - -------- - from auth0 import ( - Auth0, - MdlPresentationProperties, - MdlPresentationRequest, - MdlPresentationRequestProperties, - ) - - client = Auth0( - token="YOUR_TOKEN", - ) - client.verifiable_credentials.verification.templates.create( - name="name", - type="type", - dialect="dialect", - presentation=MdlPresentationRequest( - org_iso_18013_5_1_m_dl=MdlPresentationRequestProperties( - org_iso_18013_5_1=MdlPresentationProperties(), - ), - ), - well_known_trusted_issuers="well_known_trusted_issuers", - ) - """ - _response = self._raw_client.create( - name=name, - type=type, - dialect=dialect, - presentation=presentation, - well_known_trusted_issuers=well_known_trusted_issuers, - custom_certificate_authority=custom_certificate_authority, - request_options=request_options, - ) - return _response.data - - def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetVerifiableCredentialTemplateResponseContent: - """ - Get a verifiable credential template. - - Parameters - ---------- - id : str - ID of the template to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetVerifiableCredentialTemplateResponseContent - Template successfully retrieved. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.verifiable_credentials.verification.templates.get( - id="id", - ) - """ - _response = self._raw_client.get(id, request_options=request_options) - return _response.data - - def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete a verifiable credential template. - - Parameters - ---------- - id : str - ID of the template to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.verifiable_credentials.verification.templates.delete( - id="id", - ) - """ - _response = self._raw_client.delete(id, request_options=request_options) - return _response.data - - def update( - self, - id: str, - *, - name: typing.Optional[str] = OMIT, - type: typing.Optional[str] = OMIT, - dialect: typing.Optional[str] = OMIT, - presentation: typing.Optional[MdlPresentationRequest] = OMIT, - well_known_trusted_issuers: typing.Optional[str] = OMIT, - version: typing.Optional[float] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateVerifiableCredentialTemplateResponseContent: - """ - Update a verifiable credential template. - - Parameters - ---------- - id : str - ID of the template to retrieve. - - name : typing.Optional[str] - - type : typing.Optional[str] - - dialect : typing.Optional[str] - - presentation : typing.Optional[MdlPresentationRequest] - - well_known_trusted_issuers : typing.Optional[str] - - version : typing.Optional[float] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateVerifiableCredentialTemplateResponseContent - Template successfully updated. - - Examples - -------- - from auth0 import Auth0 - - client = Auth0( - token="YOUR_TOKEN", - ) - client.verifiable_credentials.verification.templates.update( - id="id", - ) - """ - _response = self._raw_client.update( - id, - name=name, - type=type, - dialect=dialect, - presentation=presentation, - well_known_trusted_issuers=well_known_trusted_issuers, - version=version, - request_options=request_options, - ) - return _response.data - - -class AsyncTemplatesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawTemplatesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawTemplatesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawTemplatesClient - """ - return self._raw_client - - async def list( - self, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[VerifiableCredentialTemplateResponse, ListVerifiableCredentialTemplatesPaginatedResponseContent]: - """ - List verifiable credential templates. - - Parameters - ---------- - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[VerifiableCredentialTemplateResponse, ListVerifiableCredentialTemplatesPaginatedResponseContent] - Templates successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.verifiable_credentials.verification.templates.list( - from_="from", - take=1, - ) - async for item in response: - yield item - - # alternatively, you can paginate page-by-page - async for page in response.iter_pages(): - yield page - - - asyncio.run(main()) - """ - return await self._raw_client.list(from_=from_, take=take, request_options=request_options) - - async def create( - self, - *, - name: str, - type: str, - dialect: str, - presentation: MdlPresentationRequest, - well_known_trusted_issuers: str, - custom_certificate_authority: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreateVerifiableCredentialTemplateResponseContent: - """ - Create a verifiable credential template. - - Parameters - ---------- - name : str - - type : str - - dialect : str - - presentation : MdlPresentationRequest - - well_known_trusted_issuers : str - - custom_certificate_authority : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreateVerifiableCredentialTemplateResponseContent - Template successfully created. - - Examples - -------- - import asyncio - - from auth0 import ( - AsyncAuth0, - MdlPresentationProperties, - MdlPresentationRequest, - MdlPresentationRequestProperties, - ) - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.verifiable_credentials.verification.templates.create( - name="name", - type="type", - dialect="dialect", - presentation=MdlPresentationRequest( - org_iso_18013_5_1_m_dl=MdlPresentationRequestProperties( - org_iso_18013_5_1=MdlPresentationProperties(), - ), - ), - well_known_trusted_issuers="well_known_trusted_issuers", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - name=name, - type=type, - dialect=dialect, - presentation=presentation, - well_known_trusted_issuers=well_known_trusted_issuers, - custom_certificate_authority=custom_certificate_authority, - request_options=request_options, - ) - return _response.data - - async def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> GetVerifiableCredentialTemplateResponseContent: - """ - Get a verifiable credential template. - - Parameters - ---------- - id : str - ID of the template to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GetVerifiableCredentialTemplateResponseContent - Template successfully retrieved. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.verifiable_credentials.verification.templates.get( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.get(id, request_options=request_options) - return _response.data - - async def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete a verifiable credential template. - - Parameters - ---------- - id : str - ID of the template to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.verifiable_credentials.verification.templates.delete( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete(id, request_options=request_options) - return _response.data - - async def update( - self, - id: str, - *, - name: typing.Optional[str] = OMIT, - type: typing.Optional[str] = OMIT, - dialect: typing.Optional[str] = OMIT, - presentation: typing.Optional[MdlPresentationRequest] = OMIT, - well_known_trusted_issuers: typing.Optional[str] = OMIT, - version: typing.Optional[float] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> UpdateVerifiableCredentialTemplateResponseContent: - """ - Update a verifiable credential template. - - Parameters - ---------- - id : str - ID of the template to retrieve. - - name : typing.Optional[str] - - type : typing.Optional[str] - - dialect : typing.Optional[str] - - presentation : typing.Optional[MdlPresentationRequest] - - well_known_trusted_issuers : typing.Optional[str] - - version : typing.Optional[float] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - UpdateVerifiableCredentialTemplateResponseContent - Template successfully updated. - - Examples - -------- - import asyncio - - from auth0 import AsyncAuth0 - - client = AsyncAuth0( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.verifiable_credentials.verification.templates.update( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.update( - id, - name=name, - type=type, - dialect=dialect, - presentation=presentation, - well_known_trusted_issuers=well_known_trusted_issuers, - version=version, - request_options=request_options, - ) - return _response.data diff --git a/src/auth0/management/verifiable_credentials/verification/templates/raw_client.py b/src/auth0/management/verifiable_credentials/verification/templates/raw_client.py deleted file mode 100644 index 00dcee9f..00000000 --- a/src/auth0/management/verifiable_credentials/verification/templates/raw_client.py +++ /dev/null @@ -1,1137 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from ....core.api_error import ApiError -from ....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ....core.http_response import AsyncHttpResponse, HttpResponse -from ....core.jsonable_encoder import quote_path_param -from ....core.pagination import AsyncPager, SyncPager -from ....core.parse_error import ParsingError -from ....core.pydantic_utilities import parse_obj_as -from ....core.request_options import RequestOptions -from ....core.serialization import convert_and_respect_annotation_metadata -from ....errors.bad_request_error import BadRequestError -from ....errors.conflict_error import ConflictError -from ....errors.forbidden_error import ForbiddenError -from ....errors.not_found_error import NotFoundError -from ....errors.too_many_requests_error import TooManyRequestsError -from ....errors.unauthorized_error import UnauthorizedError -from ....types.create_verifiable_credential_template_response_content import ( - CreateVerifiableCredentialTemplateResponseContent, -) -from ....types.get_verifiable_credential_template_response_content import GetVerifiableCredentialTemplateResponseContent -from ....types.list_verifiable_credential_templates_paginated_response_content import ( - ListVerifiableCredentialTemplatesPaginatedResponseContent, -) -from ....types.mdl_presentation_request import MdlPresentationRequest -from ....types.update_verifiable_credential_template_response_content import ( - UpdateVerifiableCredentialTemplateResponseContent, -) -from ....types.verifiable_credential_template_response import VerifiableCredentialTemplateResponse -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawTemplatesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[VerifiableCredentialTemplateResponse, ListVerifiableCredentialTemplatesPaginatedResponseContent]: - """ - List verifiable credential templates. - - Parameters - ---------- - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[VerifiableCredentialTemplateResponse, ListVerifiableCredentialTemplatesPaginatedResponseContent] - Templates successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - "verifiable-credentials/verification/templates", - method="GET", - params={ - "from": from_, - "take": take, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListVerifiableCredentialTemplatesPaginatedResponseContent, - parse_obj_as( - type_=ListVerifiableCredentialTemplatesPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.templates - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - _get_next = lambda: self.list( - from_=_parsed_next, - take=take, - request_options=request_options, - ) - return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - *, - name: str, - type: str, - dialect: str, - presentation: MdlPresentationRequest, - well_known_trusted_issuers: str, - custom_certificate_authority: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[CreateVerifiableCredentialTemplateResponseContent]: - """ - Create a verifiable credential template. - - Parameters - ---------- - name : str - - type : str - - dialect : str - - presentation : MdlPresentationRequest - - well_known_trusted_issuers : str - - custom_certificate_authority : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CreateVerifiableCredentialTemplateResponseContent] - Template successfully created. - """ - _response = self._client_wrapper.httpx_client.request( - "verifiable-credentials/verification/templates", - method="POST", - json={ - "name": name, - "type": type, - "dialect": dialect, - "presentation": convert_and_respect_annotation_metadata( - object_=presentation, annotation=MdlPresentationRequest, direction="write" - ), - "custom_certificate_authority": custom_certificate_authority, - "well_known_trusted_issuers": well_known_trusted_issuers, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateVerifiableCredentialTemplateResponseContent, - parse_obj_as( - type_=CreateVerifiableCredentialTemplateResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[GetVerifiableCredentialTemplateResponseContent]: - """ - Get a verifiable credential template. - - Parameters - ---------- - id : str - ID of the template to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GetVerifiableCredentialTemplateResponseContent] - Template successfully retrieved. - """ - _response = self._client_wrapper.httpx_client.request( - f"verifiable-credentials/verification/templates/{quote_path_param(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetVerifiableCredentialTemplateResponseContent, - parse_obj_as( - type_=GetVerifiableCredentialTemplateResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[None]: - """ - Delete a verifiable credential template. - - Parameters - ---------- - id : str - ID of the template to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"verifiable-credentials/verification/templates/{quote_path_param(id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def update( - self, - id: str, - *, - name: typing.Optional[str] = OMIT, - type: typing.Optional[str] = OMIT, - dialect: typing.Optional[str] = OMIT, - presentation: typing.Optional[MdlPresentationRequest] = OMIT, - well_known_trusted_issuers: typing.Optional[str] = OMIT, - version: typing.Optional[float] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[UpdateVerifiableCredentialTemplateResponseContent]: - """ - Update a verifiable credential template. - - Parameters - ---------- - id : str - ID of the template to retrieve. - - name : typing.Optional[str] - - type : typing.Optional[str] - - dialect : typing.Optional[str] - - presentation : typing.Optional[MdlPresentationRequest] - - well_known_trusted_issuers : typing.Optional[str] - - version : typing.Optional[float] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[UpdateVerifiableCredentialTemplateResponseContent] - Template successfully updated. - """ - _response = self._client_wrapper.httpx_client.request( - f"verifiable-credentials/verification/templates/{quote_path_param(id)}", - method="PATCH", - json={ - "name": name, - "type": type, - "dialect": dialect, - "presentation": convert_and_respect_annotation_metadata( - object_=presentation, annotation=MdlPresentationRequest, direction="write" - ), - "well_known_trusted_issuers": well_known_trusted_issuers, - "version": version, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateVerifiableCredentialTemplateResponseContent, - parse_obj_as( - type_=UpdateVerifiableCredentialTemplateResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawTemplatesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - from_: typing.Optional[str] = None, - take: typing.Optional[int] = 50, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[VerifiableCredentialTemplateResponse, ListVerifiableCredentialTemplatesPaginatedResponseContent]: - """ - List verifiable credential templates. - - Parameters - ---------- - from_ : typing.Optional[str] - Optional Id from which to start selection. - - take : typing.Optional[int] - Number of results per page. Defaults to 50. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[VerifiableCredentialTemplateResponse, ListVerifiableCredentialTemplatesPaginatedResponseContent] - Templates successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - "verifiable-credentials/verification/templates", - method="GET", - params={ - "from": from_, - "take": take, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListVerifiableCredentialTemplatesPaginatedResponseContent, - parse_obj_as( - type_=ListVerifiableCredentialTemplatesPaginatedResponseContent, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.templates - _parsed_next = _parsed_response.next - _has_next = _parsed_next is not None and _parsed_next != "" - - async def _get_next(): - return await self.list( - from_=_parsed_next, - take=take, - request_options=request_options, - ) - - return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - *, - name: str, - type: str, - dialect: str, - presentation: MdlPresentationRequest, - well_known_trusted_issuers: str, - custom_certificate_authority: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[CreateVerifiableCredentialTemplateResponseContent]: - """ - Create a verifiable credential template. - - Parameters - ---------- - name : str - - type : str - - dialect : str - - presentation : MdlPresentationRequest - - well_known_trusted_issuers : str - - custom_certificate_authority : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CreateVerifiableCredentialTemplateResponseContent] - Template successfully created. - """ - _response = await self._client_wrapper.httpx_client.request( - "verifiable-credentials/verification/templates", - method="POST", - json={ - "name": name, - "type": type, - "dialect": dialect, - "presentation": convert_and_respect_annotation_metadata( - object_=presentation, annotation=MdlPresentationRequest, direction="write" - ), - "custom_certificate_authority": custom_certificate_authority, - "well_known_trusted_issuers": well_known_trusted_issuers, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreateVerifiableCredentialTemplateResponseContent, - parse_obj_as( - type_=CreateVerifiableCredentialTemplateResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def get( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[GetVerifiableCredentialTemplateResponseContent]: - """ - Get a verifiable credential template. - - Parameters - ---------- - id : str - ID of the template to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GetVerifiableCredentialTemplateResponseContent] - Template successfully retrieved. - """ - _response = await self._client_wrapper.httpx_client.request( - f"verifiable-credentials/verification/templates/{quote_path_param(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GetVerifiableCredentialTemplateResponseContent, - parse_obj_as( - type_=GetVerifiableCredentialTemplateResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 404: - raise NotFoundError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def delete( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Delete a verifiable credential template. - - Parameters - ---------- - id : str - ID of the template to retrieve. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"verifiable-credentials/verification/templates/{quote_path_param(id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def update( - self, - id: str, - *, - name: typing.Optional[str] = OMIT, - type: typing.Optional[str] = OMIT, - dialect: typing.Optional[str] = OMIT, - presentation: typing.Optional[MdlPresentationRequest] = OMIT, - well_known_trusted_issuers: typing.Optional[str] = OMIT, - version: typing.Optional[float] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[UpdateVerifiableCredentialTemplateResponseContent]: - """ - Update a verifiable credential template. - - Parameters - ---------- - id : str - ID of the template to retrieve. - - name : typing.Optional[str] - - type : typing.Optional[str] - - dialect : typing.Optional[str] - - presentation : typing.Optional[MdlPresentationRequest] - - well_known_trusted_issuers : typing.Optional[str] - - version : typing.Optional[float] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[UpdateVerifiableCredentialTemplateResponseContent] - Template successfully updated. - """ - _response = await self._client_wrapper.httpx_client.request( - f"verifiable-credentials/verification/templates/{quote_path_param(id)}", - method="PATCH", - json={ - "name": name, - "type": type, - "dialect": dialect, - "presentation": convert_and_respect_annotation_metadata( - object_=presentation, annotation=MdlPresentationRequest, direction="write" - ), - "well_known_trusted_issuers": well_known_trusted_issuers, - "version": version, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - UpdateVerifiableCredentialTemplateResponseContent, - parse_obj_as( - type_=UpdateVerifiableCredentialTemplateResponseContent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - if _response.status_code == 400: - raise BadRequestError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 401: - raise UnauthorizedError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 403: - raise ForbiddenError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 409: - raise ConflictError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - if _response.status_code == 429: - raise TooManyRequestsError( - headers=dict(_response.headers), - body=typing.cast( - typing.Any, - parse_obj_as( - type_=typing.Any, # type: ignore - object_=_response.json(), - ), - ), - ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/tests/wire/conftest.py b/tests/wire/conftest.py index e2ccc65f..ca98a55b 100644 --- a/tests/wire/conftest.py +++ b/tests/wire/conftest.py @@ -46,13 +46,11 @@ def get_client(test_id: str) -> Auth0: return Auth0( base_url=base_url, headers=test_headers, - token="test_token", ) return Auth0( base_url=base_url, httpx_client=httpx.Client(headers=test_headers), - token="test_token", ) diff --git a/tests/wire/test_.py b/tests/wire/test_.py new file mode 100644 index 00000000..34f6447d --- /dev/null +++ b/tests/wire/test_.py @@ -0,0 +1,26 @@ +from .conftest import get_client, verify_request_count + +from auth0.management import SendParamsContent + + +def test__send() -> None: + """Test send endpoint with WireMock""" + test_id = "send.0" + client = get_client(test_id) + client.send( + request=SendParamsContent( + content="content", + ), + ) + verify_request_count(test_id, "POST", "/send", None, 1) + + +def test__send_all_of() -> None: + """Test sendAllOf endpoint with WireMock""" + test_id = "send_all_of.0" + client = get_client(test_id) + client.send_all_of( + connection_id="connection_id", + type="HTML", + ) + verify_request_count(test_id, "POST", "/send-allof", None, 1) diff --git a/tests/wire/test_actions.py b/tests/wire/test_actions.py deleted file mode 100644 index a33ac236..00000000 --- a/tests/wire/test_actions.py +++ /dev/null @@ -1,98 +0,0 @@ -from .conftest import get_client, verify_request_count - -from auth0.management import ActionTrigger - - -def test_actions_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "actions.list_.0" - client = get_client(test_id) - client.actions.list( - trigger_id="post-login", - action_name="actionName", - deployed=True, - page=1, - per_page=1, - installed=True, - ) - verify_request_count( - test_id, - "GET", - "/actions/actions", - { - "triggerId": "post-login", - "actionName": "actionName", - "deployed": "true", - "page": "1", - "per_page": "1", - "installed": "true", - }, - 1, - ) - - -def test_actions_create() -> None: - """Test create endpoint with WireMock""" - test_id = "actions.create.0" - client = get_client(test_id) - client.actions.create( - name="name", - supported_triggers=[ - ActionTrigger( - id="post-login", - ) - ], - ) - verify_request_count(test_id, "POST", "/actions/actions", None, 1) - - -def test_actions_get() -> None: - """Test get endpoint with WireMock""" - test_id = "actions.get.0" - client = get_client(test_id) - client.actions.get( - id="id", - ) - verify_request_count(test_id, "GET", "/actions/actions/id", None, 1) - - -def test_actions_delete() -> None: - """Test delete endpoint with WireMock""" - test_id = "actions.delete.0" - client = get_client(test_id) - client.actions.delete( - id="id", - force=True, - ) - verify_request_count(test_id, "DELETE", "/actions/actions/id", {"force": "true"}, 1) - - -def test_actions_update() -> None: - """Test update endpoint with WireMock""" - test_id = "actions.update.0" - client = get_client(test_id) - client.actions.update( - id="id", - ) - verify_request_count(test_id, "PATCH", "/actions/actions/id", None, 1) - - -def test_actions_deploy() -> None: - """Test deploy endpoint with WireMock""" - test_id = "actions.deploy.0" - client = get_client(test_id) - client.actions.deploy( - id="id", - ) - verify_request_count(test_id, "POST", "/actions/actions/id/deploy", None, 1) - - -def test_actions_test() -> None: - """Test test endpoint with WireMock""" - test_id = "actions.test.0" - client = get_client(test_id) - client.actions.test( - id="id", - payload={"key": "value"}, - ) - verify_request_count(test_id, "POST", "/actions/actions/id/test", None, 1) diff --git a/tests/wire/test_actions_executions.py b/tests/wire/test_actions_executions.py deleted file mode 100644 index b229b3a5..00000000 --- a/tests/wire/test_actions_executions.py +++ /dev/null @@ -1,11 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_actions_executions_get() -> None: - """Test get endpoint with WireMock""" - test_id = "actions.executions.get.0" - client = get_client(test_id) - client.actions.executions.get( - id="id", - ) - verify_request_count(test_id, "GET", "/actions/executions/id", None, 1) diff --git a/tests/wire/test_actions_modules.py b/tests/wire/test_actions_modules.py deleted file mode 100644 index b1c3196f..00000000 --- a/tests/wire/test_actions_modules.py +++ /dev/null @@ -1,76 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_actions_modules_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "actions.modules.list_.0" - client = get_client(test_id) - client.actions.modules.list( - page=1, - per_page=1, - ) - verify_request_count(test_id, "GET", "/actions/modules", {"page": "1", "per_page": "1"}, 1) - - -def test_actions_modules_create() -> None: - """Test create endpoint with WireMock""" - test_id = "actions.modules.create.0" - client = get_client(test_id) - client.actions.modules.create( - name="name", - code="code", - ) - verify_request_count(test_id, "POST", "/actions/modules", None, 1) - - -def test_actions_modules_get() -> None: - """Test get endpoint with WireMock""" - test_id = "actions.modules.get.0" - client = get_client(test_id) - client.actions.modules.get( - id="id", - ) - verify_request_count(test_id, "GET", "/actions/modules/id", None, 1) - - -def test_actions_modules_delete() -> None: - """Test delete endpoint with WireMock""" - test_id = "actions.modules.delete.0" - client = get_client(test_id) - client.actions.modules.delete( - id="id", - ) - verify_request_count(test_id, "DELETE", "/actions/modules/id", None, 1) - - -def test_actions_modules_update() -> None: - """Test update endpoint with WireMock""" - test_id = "actions.modules.update.0" - client = get_client(test_id) - client.actions.modules.update( - id="id", - ) - verify_request_count(test_id, "PATCH", "/actions/modules/id", None, 1) - - -def test_actions_modules_list_actions() -> None: - """Test listActions endpoint with WireMock""" - test_id = "actions.modules.list_actions.0" - client = get_client(test_id) - client.actions.modules.list_actions( - id="id", - page=1, - per_page=1, - ) - verify_request_count(test_id, "GET", "/actions/modules/id/actions", {"page": "1", "per_page": "1"}, 1) - - -def test_actions_modules_rollback() -> None: - """Test rollback endpoint with WireMock""" - test_id = "actions.modules.rollback.0" - client = get_client(test_id) - client.actions.modules.rollback( - id="id", - module_version_id="module_version_id", - ) - verify_request_count(test_id, "POST", "/actions/modules/id/rollback", None, 1) diff --git a/tests/wire/test_actions_modules_versions.py b/tests/wire/test_actions_modules_versions.py deleted file mode 100644 index 2cbecebc..00000000 --- a/tests/wire/test_actions_modules_versions.py +++ /dev/null @@ -1,34 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_actions_modules_versions_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "actions.modules.versions.list_.0" - client = get_client(test_id) - client.actions.modules.versions.list( - id="id", - page=1, - per_page=1, - ) - verify_request_count(test_id, "GET", "/actions/modules/id/versions", {"page": "1", "per_page": "1"}, 1) - - -def test_actions_modules_versions_create() -> None: - """Test create endpoint with WireMock""" - test_id = "actions.modules.versions.create.0" - client = get_client(test_id) - client.actions.modules.versions.create( - id="id", - ) - verify_request_count(test_id, "POST", "/actions/modules/id/versions", None, 1) - - -def test_actions_modules_versions_get() -> None: - """Test get endpoint with WireMock""" - test_id = "actions.modules.versions.get.0" - client = get_client(test_id) - client.actions.modules.versions.get( - id="id", - version_id="versionId", - ) - verify_request_count(test_id, "GET", "/actions/modules/id/versions/versionId", None, 1) diff --git a/tests/wire/test_actions_triggers.py b/tests/wire/test_actions_triggers.py deleted file mode 100644 index 1b0a6c68..00000000 --- a/tests/wire/test_actions_triggers.py +++ /dev/null @@ -1,9 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_actions_triggers_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "actions.triggers.list_.0" - client = get_client(test_id) - client.actions.triggers.list() - verify_request_count(test_id, "GET", "/actions/triggers", None, 1) diff --git a/tests/wire/test_actions_triggers_bindings.py b/tests/wire/test_actions_triggers_bindings.py deleted file mode 100644 index 9906dd9c..00000000 --- a/tests/wire/test_actions_triggers_bindings.py +++ /dev/null @@ -1,23 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_actions_triggers_bindings_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "actions.triggers.bindings.list_.0" - client = get_client(test_id) - client.actions.triggers.bindings.list( - trigger_id="post-login", - page=1, - per_page=1, - ) - verify_request_count(test_id, "GET", "/actions/triggers/post-login/bindings", {"page": "1", "per_page": "1"}, 1) - - -def test_actions_triggers_bindings_update_many() -> None: - """Test updateMany endpoint with WireMock""" - test_id = "actions.triggers.bindings.update_many.0" - client = get_client(test_id) - client.actions.triggers.bindings.update_many( - trigger_id="post-login", - ) - verify_request_count(test_id, "PATCH", "/actions/triggers/post-login/bindings", None, 1) diff --git a/tests/wire/test_actions_versions.py b/tests/wire/test_actions_versions.py deleted file mode 100644 index fa52d6aa..00000000 --- a/tests/wire/test_actions_versions.py +++ /dev/null @@ -1,38 +0,0 @@ -from .conftest import get_client, verify_request_count - -from auth0.management import DeployActionVersionRequestContent - - -def test_actions_versions_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "actions.versions.list_.0" - client = get_client(test_id) - client.actions.versions.list( - action_id="actionId", - page=1, - per_page=1, - ) - verify_request_count(test_id, "GET", "/actions/actions/actionId/versions", {"page": "1", "per_page": "1"}, 1) - - -def test_actions_versions_get() -> None: - """Test get endpoint with WireMock""" - test_id = "actions.versions.get.0" - client = get_client(test_id) - client.actions.versions.get( - action_id="actionId", - id="id", - ) - verify_request_count(test_id, "GET", "/actions/actions/actionId/versions/id", None, 1) - - -def test_actions_versions_deploy() -> None: - """Test deploy endpoint with WireMock""" - test_id = "actions.versions.deploy.0" - client = get_client(test_id) - client.actions.versions.deploy( - action_id="actionId", - id="id", - request=DeployActionVersionRequestContent(), - ) - verify_request_count(test_id, "POST", "/actions/actions/actionId/versions/id/deploy", None, 1) diff --git a/tests/wire/test_agents.py b/tests/wire/test_agents.py deleted file mode 100644 index b3c98689..00000000 --- a/tests/wire/test_agents.py +++ /dev/null @@ -1,52 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_agents_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "agents.list_.0" - client = get_client(test_id) - client.agents.list( - from_="from", - take=1, - ) - verify_request_count(test_id, "GET", "/agents", {"from": "from", "take": "1"}, 1) - - -def test_agents_create() -> None: - """Test create endpoint with WireMock""" - test_id = "agents.create.0" - client = get_client(test_id) - client.agents.create( - name="name", - ) - verify_request_count(test_id, "POST", "/agents", None, 1) - - -def test_agents_read() -> None: - """Test read endpoint with WireMock""" - test_id = "agents.read.0" - client = get_client(test_id) - client.agents.read( - id="id", - ) - verify_request_count(test_id, "GET", "/agents/id", None, 1) - - -def test_agents_delete() -> None: - """Test delete endpoint with WireMock""" - test_id = "agents.delete.0" - client = get_client(test_id) - client.agents.delete( - id="id", - ) - verify_request_count(test_id, "DELETE", "/agents/id", None, 1) - - -def test_agents_update() -> None: - """Test update endpoint with WireMock""" - test_id = "agents.update.0" - client = get_client(test_id) - client.agents.update( - id="id", - ) - verify_request_count(test_id, "PATCH", "/agents/id", None, 1) diff --git a/tests/wire/test_anomaly_blocks.py b/tests/wire/test_anomaly_blocks.py deleted file mode 100644 index be48ba26..00000000 --- a/tests/wire/test_anomaly_blocks.py +++ /dev/null @@ -1,21 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_anomaly_blocks_check_ip() -> None: - """Test checkIp endpoint with WireMock""" - test_id = "anomaly.blocks.check_ip.0" - client = get_client(test_id) - client.anomaly.blocks.check_ip( - id="id", - ) - verify_request_count(test_id, "GET", "/anomaly/blocks/ips/id", None, 1) - - -def test_anomaly_blocks_unblock_ip() -> None: - """Test unblockIp endpoint with WireMock""" - test_id = "anomaly.blocks.unblock_ip.0" - client = get_client(test_id) - client.anomaly.blocks.unblock_ip( - id="id", - ) - verify_request_count(test_id, "DELETE", "/anomaly/blocks/ips/id", None, 1) diff --git a/tests/wire/test_attackProtection_botDetection.py b/tests/wire/test_attackProtection_botDetection.py deleted file mode 100644 index 82518e20..00000000 --- a/tests/wire/test_attackProtection_botDetection.py +++ /dev/null @@ -1,17 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_attackProtection_botDetection_get() -> None: - """Test get endpoint with WireMock""" - test_id = "attack_protection.bot_detection.get.0" - client = get_client(test_id) - client.attack_protection.bot_detection.get() - verify_request_count(test_id, "GET", "/attack-protection/bot-detection", None, 1) - - -def test_attackProtection_botDetection_update() -> None: - """Test update endpoint with WireMock""" - test_id = "attack_protection.bot_detection.update.0" - client = get_client(test_id) - client.attack_protection.bot_detection.update() - verify_request_count(test_id, "PATCH", "/attack-protection/bot-detection", None, 1) diff --git a/tests/wire/test_attackProtection_breachedPasswordDetection.py b/tests/wire/test_attackProtection_breachedPasswordDetection.py deleted file mode 100644 index c1fe47bb..00000000 --- a/tests/wire/test_attackProtection_breachedPasswordDetection.py +++ /dev/null @@ -1,17 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_attackProtection_breachedPasswordDetection_get() -> None: - """Test get endpoint with WireMock""" - test_id = "attack_protection.breached_password_detection.get.0" - client = get_client(test_id) - client.attack_protection.breached_password_detection.get() - verify_request_count(test_id, "GET", "/attack-protection/breached-password-detection", None, 1) - - -def test_attackProtection_breachedPasswordDetection_update() -> None: - """Test update endpoint with WireMock""" - test_id = "attack_protection.breached_password_detection.update.0" - client = get_client(test_id) - client.attack_protection.breached_password_detection.update() - verify_request_count(test_id, "PATCH", "/attack-protection/breached-password-detection", None, 1) diff --git a/tests/wire/test_attackProtection_bruteForceProtection.py b/tests/wire/test_attackProtection_bruteForceProtection.py deleted file mode 100644 index 41badaf1..00000000 --- a/tests/wire/test_attackProtection_bruteForceProtection.py +++ /dev/null @@ -1,17 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_attackProtection_bruteForceProtection_get() -> None: - """Test get endpoint with WireMock""" - test_id = "attack_protection.brute_force_protection.get.0" - client = get_client(test_id) - client.attack_protection.brute_force_protection.get() - verify_request_count(test_id, "GET", "/attack-protection/brute-force-protection", None, 1) - - -def test_attackProtection_bruteForceProtection_update() -> None: - """Test update endpoint with WireMock""" - test_id = "attack_protection.brute_force_protection.update.0" - client = get_client(test_id) - client.attack_protection.brute_force_protection.update() - verify_request_count(test_id, "PATCH", "/attack-protection/brute-force-protection", None, 1) diff --git a/tests/wire/test_attackProtection_captcha.py b/tests/wire/test_attackProtection_captcha.py deleted file mode 100644 index 1555293c..00000000 --- a/tests/wire/test_attackProtection_captcha.py +++ /dev/null @@ -1,17 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_attackProtection_captcha_get() -> None: - """Test get endpoint with WireMock""" - test_id = "attack_protection.captcha.get.0" - client = get_client(test_id) - client.attack_protection.captcha.get() - verify_request_count(test_id, "GET", "/attack-protection/captcha", None, 1) - - -def test_attackProtection_captcha_update() -> None: - """Test update endpoint with WireMock""" - test_id = "attack_protection.captcha.update.0" - client = get_client(test_id) - client.attack_protection.captcha.update() - verify_request_count(test_id, "PATCH", "/attack-protection/captcha", None, 1) diff --git a/tests/wire/test_attackProtection_phoneProviderProtection.py b/tests/wire/test_attackProtection_phoneProviderProtection.py deleted file mode 100644 index 2d5ffb51..00000000 --- a/tests/wire/test_attackProtection_phoneProviderProtection.py +++ /dev/null @@ -1,19 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_attackProtection_phoneProviderProtection_get() -> None: - """Test get endpoint with WireMock""" - test_id = "attack_protection.phone_provider_protection.get.0" - client = get_client(test_id) - client.attack_protection.phone_provider_protection.get() - verify_request_count(test_id, "GET", "/attack-protection/phone-provider-protection", None, 1) - - -def test_attackProtection_phoneProviderProtection_patch() -> None: - """Test patch endpoint with WireMock""" - test_id = "attack_protection.phone_provider_protection.patch.0" - client = get_client(test_id) - client.attack_protection.phone_provider_protection.patch( - type="exponential", - ) - verify_request_count(test_id, "PATCH", "/attack-protection/phone-provider-protection", None, 1) diff --git a/tests/wire/test_attackProtection_suspiciousIpThrottling.py b/tests/wire/test_attackProtection_suspiciousIpThrottling.py deleted file mode 100644 index 19be468b..00000000 --- a/tests/wire/test_attackProtection_suspiciousIpThrottling.py +++ /dev/null @@ -1,17 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_attackProtection_suspiciousIpThrottling_get() -> None: - """Test get endpoint with WireMock""" - test_id = "attack_protection.suspicious_ip_throttling.get.0" - client = get_client(test_id) - client.attack_protection.suspicious_ip_throttling.get() - verify_request_count(test_id, "GET", "/attack-protection/suspicious-ip-throttling", None, 1) - - -def test_attackProtection_suspiciousIpThrottling_update() -> None: - """Test update endpoint with WireMock""" - test_id = "attack_protection.suspicious_ip_throttling.update.0" - client = get_client(test_id) - client.attack_protection.suspicious_ip_throttling.update() - verify_request_count(test_id, "PATCH", "/attack-protection/suspicious-ip-throttling", None, 1) diff --git a/tests/wire/test_branding.py b/tests/wire/test_branding.py deleted file mode 100644 index 37b91728..00000000 --- a/tests/wire/test_branding.py +++ /dev/null @@ -1,17 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_branding_get() -> None: - """Test get endpoint with WireMock""" - test_id = "branding.get.0" - client = get_client(test_id) - client.branding.get() - verify_request_count(test_id, "GET", "/branding", None, 1) - - -def test_branding_update() -> None: - """Test update endpoint with WireMock""" - test_id = "branding.update.0" - client = get_client(test_id) - client.branding.update() - verify_request_count(test_id, "PATCH", "/branding", None, 1) diff --git a/tests/wire/test_branding_phone_providers.py b/tests/wire/test_branding_phone_providers.py deleted file mode 100644 index 5cbdb1f0..00000000 --- a/tests/wire/test_branding_phone_providers.py +++ /dev/null @@ -1,67 +0,0 @@ -from .conftest import get_client, verify_request_count - -from auth0.management import TwilioProviderCredentials - - -def test_branding_phone_providers_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "branding.phone.providers.list_.0" - client = get_client(test_id) - client.branding.phone.providers.list( - disabled=True, - ) - verify_request_count(test_id, "GET", "/branding/phone/providers", {"disabled": "true"}, 1) - - -def test_branding_phone_providers_create() -> None: - """Test create endpoint with WireMock""" - test_id = "branding.phone.providers.create.0" - client = get_client(test_id) - client.branding.phone.providers.create( - name="twilio", - credentials=TwilioProviderCredentials( - auth_token="auth_token", - ), - ) - verify_request_count(test_id, "POST", "/branding/phone/providers", None, 1) - - -def test_branding_phone_providers_get() -> None: - """Test get endpoint with WireMock""" - test_id = "branding.phone.providers.get.0" - client = get_client(test_id) - client.branding.phone.providers.get( - id="id", - ) - verify_request_count(test_id, "GET", "/branding/phone/providers/id", None, 1) - - -def test_branding_phone_providers_delete() -> None: - """Test delete endpoint with WireMock""" - test_id = "branding.phone.providers.delete.0" - client = get_client(test_id) - client.branding.phone.providers.delete( - id="id", - ) - verify_request_count(test_id, "DELETE", "/branding/phone/providers/id", None, 1) - - -def test_branding_phone_providers_update() -> None: - """Test update endpoint with WireMock""" - test_id = "branding.phone.providers.update.0" - client = get_client(test_id) - client.branding.phone.providers.update( - id="id", - ) - verify_request_count(test_id, "PATCH", "/branding/phone/providers/id", None, 1) - - -def test_branding_phone_providers_test() -> None: - """Test test endpoint with WireMock""" - test_id = "branding.phone.providers.test.0" - client = get_client(test_id) - client.branding.phone.providers.test( - id="id", - to="to", - ) - verify_request_count(test_id, "POST", "/branding/phone/providers/id/try", None, 1) diff --git a/tests/wire/test_branding_phone_templates.py b/tests/wire/test_branding_phone_templates.py deleted file mode 100644 index 63e8a905..00000000 --- a/tests/wire/test_branding_phone_templates.py +++ /dev/null @@ -1,71 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_branding_phone_templates_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "branding.phone.templates.list_.0" - client = get_client(test_id) - client.branding.phone.templates.list( - disabled=True, - ) - verify_request_count(test_id, "GET", "/branding/phone/templates", {"disabled": "true"}, 1) - - -def test_branding_phone_templates_create() -> None: - """Test create endpoint with WireMock""" - test_id = "branding.phone.templates.create.0" - client = get_client(test_id) - client.branding.phone.templates.create() - verify_request_count(test_id, "POST", "/branding/phone/templates", None, 1) - - -def test_branding_phone_templates_get() -> None: - """Test get endpoint with WireMock""" - test_id = "branding.phone.templates.get.0" - client = get_client(test_id) - client.branding.phone.templates.get( - id="id", - ) - verify_request_count(test_id, "GET", "/branding/phone/templates/id", None, 1) - - -def test_branding_phone_templates_delete() -> None: - """Test delete endpoint with WireMock""" - test_id = "branding.phone.templates.delete.0" - client = get_client(test_id) - client.branding.phone.templates.delete( - id="id", - ) - verify_request_count(test_id, "DELETE", "/branding/phone/templates/id", None, 1) - - -def test_branding_phone_templates_update() -> None: - """Test update endpoint with WireMock""" - test_id = "branding.phone.templates.update.0" - client = get_client(test_id) - client.branding.phone.templates.update( - id="id", - ) - verify_request_count(test_id, "PATCH", "/branding/phone/templates/id", None, 1) - - -def test_branding_phone_templates_reset() -> None: - """Test reset endpoint with WireMock""" - test_id = "branding.phone.templates.reset.0" - client = get_client(test_id) - client.branding.phone.templates.reset( - id="id", - request={"key": "value"}, - ) - verify_request_count(test_id, "PATCH", "/branding/phone/templates/id/reset", None, 1) - - -def test_branding_phone_templates_test() -> None: - """Test test endpoint with WireMock""" - test_id = "branding.phone.templates.test.0" - client = get_client(test_id) - client.branding.phone.templates.test( - id="id", - to="to", - ) - verify_request_count(test_id, "POST", "/branding/phone/templates/id/try", None, 1) diff --git a/tests/wire/test_branding_templates.py b/tests/wire/test_branding_templates.py deleted file mode 100644 index 72b4974b..00000000 --- a/tests/wire/test_branding_templates.py +++ /dev/null @@ -1,27 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_branding_templates_get_universal_login() -> None: - """Test getUniversalLogin endpoint with WireMock""" - test_id = "branding.templates.get_universal_login.0" - client = get_client(test_id) - client.branding.templates.get_universal_login() - verify_request_count(test_id, "GET", "/branding/templates/universal-login", None, 1) - - -def test_branding_templates_update_universal_login() -> None: - """Test updateUniversalLogin endpoint with WireMock""" - test_id = "branding.templates.update_universal_login.0" - client = get_client(test_id) - client.branding.templates.update_universal_login( - request="string", - ) - verify_request_count(test_id, "PUT", "/branding/templates/universal-login", None, 1) - - -def test_branding_templates_delete_universal_login() -> None: - """Test deleteUniversalLogin endpoint with WireMock""" - test_id = "branding.templates.delete_universal_login.0" - client = get_client(test_id) - client.branding.templates.delete_universal_login() - verify_request_count(test_id, "DELETE", "/branding/templates/universal-login", None, 1) diff --git a/tests/wire/test_branding_themes.py b/tests/wire/test_branding_themes.py deleted file mode 100644 index 1d75cdd7..00000000 --- a/tests/wire/test_branding_themes.py +++ /dev/null @@ -1,202 +0,0 @@ -from .conftest import get_client, verify_request_count - -from auth0.management import ( - BrandingThemeBorders, - BrandingThemeColors, - BrandingThemeFontBodyText, - BrandingThemeFontButtonsText, - BrandingThemeFontInputLabels, - BrandingThemeFontLinks, - BrandingThemeFonts, - BrandingThemeFontSubtitle, - BrandingThemeFontTitle, - BrandingThemePageBackground, - BrandingThemeWidget, -) - - -def test_branding_themes_create() -> None: - """Test create endpoint with WireMock""" - test_id = "branding.themes.create.0" - client = get_client(test_id) - client.branding.themes.create( - borders=BrandingThemeBorders( - button_border_radius=1.1, - button_border_weight=1.1, - buttons_style="pill", - input_border_radius=1.1, - input_border_weight=1.1, - inputs_style="pill", - show_widget_shadow=True, - widget_border_weight=1.1, - widget_corner_radius=1.1, - ), - colors=BrandingThemeColors( - body_text="body_text", - error="error", - header="header", - icons="icons", - input_background="input_background", - input_border="input_border", - input_filled_text="input_filled_text", - input_labels_placeholders="input_labels_placeholders", - links_focused_components="links_focused_components", - primary_button="primary_button", - primary_button_label="primary_button_label", - secondary_button_border="secondary_button_border", - secondary_button_label="secondary_button_label", - success="success", - widget_background="widget_background", - widget_border="widget_border", - ), - fonts=BrandingThemeFonts( - body_text=BrandingThemeFontBodyText( - bold=True, - size=1.1, - ), - buttons_text=BrandingThemeFontButtonsText( - bold=True, - size=1.1, - ), - font_url="font_url", - input_labels=BrandingThemeFontInputLabels( - bold=True, - size=1.1, - ), - links=BrandingThemeFontLinks( - bold=True, - size=1.1, - ), - links_style="normal", - reference_text_size=1.1, - subtitle=BrandingThemeFontSubtitle( - bold=True, - size=1.1, - ), - title=BrandingThemeFontTitle( - bold=True, - size=1.1, - ), - ), - page_background=BrandingThemePageBackground( - background_color="background_color", - background_image_url="background_image_url", - page_layout="center", - ), - widget=BrandingThemeWidget( - header_text_alignment="center", - logo_height=1.1, - logo_position="center", - logo_url="logo_url", - social_buttons_layout="bottom", - ), - ) - verify_request_count(test_id, "POST", "/branding/themes", None, 1) - - -def test_branding_themes_get_default() -> None: - """Test getDefault endpoint with WireMock""" - test_id = "branding.themes.get_default.0" - client = get_client(test_id) - client.branding.themes.get_default() - verify_request_count(test_id, "GET", "/branding/themes/default", None, 1) - - -def test_branding_themes_get() -> None: - """Test get endpoint with WireMock""" - test_id = "branding.themes.get.0" - client = get_client(test_id) - client.branding.themes.get( - theme_id="themeId", - ) - verify_request_count(test_id, "GET", "/branding/themes/themeId", None, 1) - - -def test_branding_themes_delete() -> None: - """Test delete endpoint with WireMock""" - test_id = "branding.themes.delete.0" - client = get_client(test_id) - client.branding.themes.delete( - theme_id="themeId", - ) - verify_request_count(test_id, "DELETE", "/branding/themes/themeId", None, 1) - - -def test_branding_themes_update() -> None: - """Test update endpoint with WireMock""" - test_id = "branding.themes.update.0" - client = get_client(test_id) - client.branding.themes.update( - theme_id="themeId", - borders=BrandingThemeBorders( - button_border_radius=1.1, - button_border_weight=1.1, - buttons_style="pill", - input_border_radius=1.1, - input_border_weight=1.1, - inputs_style="pill", - show_widget_shadow=True, - widget_border_weight=1.1, - widget_corner_radius=1.1, - ), - colors=BrandingThemeColors( - body_text="body_text", - error="error", - header="header", - icons="icons", - input_background="input_background", - input_border="input_border", - input_filled_text="input_filled_text", - input_labels_placeholders="input_labels_placeholders", - links_focused_components="links_focused_components", - primary_button="primary_button", - primary_button_label="primary_button_label", - secondary_button_border="secondary_button_border", - secondary_button_label="secondary_button_label", - success="success", - widget_background="widget_background", - widget_border="widget_border", - ), - fonts=BrandingThemeFonts( - body_text=BrandingThemeFontBodyText( - bold=True, - size=1.1, - ), - buttons_text=BrandingThemeFontButtonsText( - bold=True, - size=1.1, - ), - font_url="font_url", - input_labels=BrandingThemeFontInputLabels( - bold=True, - size=1.1, - ), - links=BrandingThemeFontLinks( - bold=True, - size=1.1, - ), - links_style="normal", - reference_text_size=1.1, - subtitle=BrandingThemeFontSubtitle( - bold=True, - size=1.1, - ), - title=BrandingThemeFontTitle( - bold=True, - size=1.1, - ), - ), - page_background=BrandingThemePageBackground( - background_color="background_color", - background_image_url="background_image_url", - page_layout="center", - ), - widget=BrandingThemeWidget( - header_text_alignment="center", - logo_height=1.1, - logo_position="center", - logo_url="logo_url", - social_buttons_layout="bottom", - ), - ) - verify_request_count(test_id, "PATCH", "/branding/themes/themeId", None, 1) diff --git a/tests/wire/test_clientGrants.py b/tests/wire/test_clientGrants.py deleted file mode 100644 index f9bda114..00000000 --- a/tests/wire/test_clientGrants.py +++ /dev/null @@ -1,103 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_clientGrants_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "client_grants.list_.0" - client = get_client(test_id) - client.client_grants.list( - include_totals=True, - from_="from", - take=1, - audience="audience", - client_id="client_id", - allow_any_organization=True, - subject_type="client", - default_for="third_party_clients", - ) - verify_request_count( - test_id, - "GET", - "/client-grants", - { - "include_totals": "true", - "from": "from", - "take": "1", - "audience": "audience", - "client_id": "client_id", - "allow_any_organization": "true", - "subject_type": "client", - "default_for": "third_party_clients", - }, - 1, - ) - - -def test_clientGrants_create() -> None: - """Test create endpoint with WireMock""" - test_id = "client_grants.create.0" - client = get_client(test_id) - client.client_grants.create( - audience="audience", - ) - verify_request_count(test_id, "POST", "/client-grants", None, 1) - - -def test_clientGrants_search() -> None: - """Test search endpoint with WireMock""" - test_id = "client_grants.search.0" - client = get_client(test_id) - client.client_grants.search( - q="q", - parser="scim", - fields="fields", - include_fields=True, - take=1, - from_="from", - sort="audience", - ) - verify_request_count( - test_id, - "GET", - "/client-grants/search", - { - "q": "q", - "parser": "scim", - "fields": "fields", - "include_fields": "true", - "take": "1", - "from": "from", - "sort": "audience", - }, - 1, - ) - - -def test_clientGrants_get() -> None: - """Test get endpoint with WireMock""" - test_id = "client_grants.get.0" - client = get_client(test_id) - client.client_grants.get( - id="id", - ) - verify_request_count(test_id, "GET", "/client-grants/id", None, 1) - - -def test_clientGrants_delete() -> None: - """Test delete endpoint with WireMock""" - test_id = "client_grants.delete.0" - client = get_client(test_id) - client.client_grants.delete( - id="id", - ) - verify_request_count(test_id, "DELETE", "/client-grants/id", None, 1) - - -def test_clientGrants_update() -> None: - """Test update endpoint with WireMock""" - test_id = "client_grants.update.0" - client = get_client(test_id) - client.client_grants.update( - id="id", - ) - verify_request_count(test_id, "PATCH", "/client-grants/id", None, 1) diff --git a/tests/wire/test_clientGrants_organizations.py b/tests/wire/test_clientGrants_organizations.py deleted file mode 100644 index 05972038..00000000 --- a/tests/wire/test_clientGrants_organizations.py +++ /dev/null @@ -1,16 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_clientGrants_organizations_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "client_grants.organizations.list_.0" - client = get_client(test_id) - client.client_grants.organizations.list( - id="id", - include_totals=True, - from_="from", - take=1, - ) - verify_request_count( - test_id, "GET", "/client-grants/id/organizations", {"include_totals": "true", "from": "from", "take": "1"}, 1 - ) diff --git a/tests/wire/test_clientProfiles.py b/tests/wire/test_clientProfiles.py deleted file mode 100644 index de409ce7..00000000 --- a/tests/wire/test_clientProfiles.py +++ /dev/null @@ -1,59 +0,0 @@ -from .conftest import get_client, verify_request_count - -from auth0.management import ClientProfileApplyPolicy, ClientProfileClientConfiguration - - -def test_clientProfiles_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "client_profiles.list_.0" - client = get_client(test_id) - client.client_profiles.list( - from_="from", - take=1, - ) - verify_request_count(test_id, "GET", "/client-profiles", {"from": "from", "take": "1"}, 1) - - -def test_clientProfiles_create() -> None: - """Test create endpoint with WireMock""" - test_id = "client_profiles.create.0" - client = get_client(test_id) - client.client_profiles.create( - name="name", - client_configuration=ClientProfileClientConfiguration(), - apply_policy=ClientProfileApplyPolicy( - external_metadata_type="cimd", - external_metadata_created_by="client", - ), - ) - verify_request_count(test_id, "POST", "/client-profiles", None, 1) - - -def test_clientProfiles_get() -> None: - """Test get endpoint with WireMock""" - test_id = "client_profiles.get.0" - client = get_client(test_id) - client.client_profiles.get( - id="id", - ) - verify_request_count(test_id, "GET", "/client-profiles/id", None, 1) - - -def test_clientProfiles_delete() -> None: - """Test delete endpoint with WireMock""" - test_id = "client_profiles.delete.0" - client = get_client(test_id) - client.client_profiles.delete( - id="id", - ) - verify_request_count(test_id, "DELETE", "/client-profiles/id", None, 1) - - -def test_clientProfiles_update() -> None: - """Test update endpoint with WireMock""" - test_id = "client_profiles.update.0" - client = get_client(test_id) - client.client_profiles.update( - id="id", - ) - verify_request_count(test_id, "PATCH", "/client-profiles/id", None, 1) diff --git a/tests/wire/test_clients.py b/tests/wire/test_clients.py deleted file mode 100644 index f7247791..00000000 --- a/tests/wire/test_clients.py +++ /dev/null @@ -1,141 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_clients_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "clients.list_.0" - client = get_client(test_id) - client.clients.list( - fields="fields", - include_fields=True, - page=1, - per_page=1, - include_totals=True, - is_global=True, - is_first_party=True, - app_type="app_type", - external_client_id="external_client_id", - agent_id="agent_id", - q="q", - ) - verify_request_count( - test_id, - "GET", - "/clients", - { - "fields": "fields", - "include_fields": "true", - "page": "1", - "per_page": "1", - "include_totals": "true", - "is_global": "true", - "is_first_party": "true", - "app_type": "app_type", - "external_client_id": "external_client_id", - "agent_id": "agent_id", - "q": "q", - }, - 1, - ) - - -def test_clients_create() -> None: - """Test create endpoint with WireMock""" - test_id = "clients.create.0" - client = get_client(test_id) - client.clients.create( - name="name", - ) - verify_request_count(test_id, "POST", "/clients", None, 1) - - -def test_clients_preview_cimd_metadata() -> None: - """Test previewCimdMetadata endpoint with WireMock""" - test_id = "clients.preview_cimd_metadata.0" - client = get_client(test_id) - client.clients.preview_cimd_metadata( - external_client_id="external_client_id", - ) - verify_request_count(test_id, "POST", "/clients/cimd/preview", None, 1) - - -def test_clients_register_cimd_client() -> None: - """Test registerCimdClient endpoint with WireMock""" - test_id = "clients.register_cimd_client.0" - client = get_client(test_id) - client.clients.register_cimd_client( - external_client_id="external_client_id", - ) - verify_request_count(test_id, "POST", "/clients/cimd/register", None, 1) - - -def test_clients_search() -> None: - """Test search endpoint with WireMock""" - test_id = "clients.search.0" - client = get_client(test_id) - client.clients.search( - q="q", - parser="scim", - fields="fields", - include_fields=True, - take=1, - from_="from", - sort="name", - ) - verify_request_count( - test_id, - "GET", - "/clients/search", - { - "q": "q", - "parser": "scim", - "fields": "fields", - "include_fields": "true", - "take": "1", - "from": "from", - "sort": "name", - }, - 1, - ) - - -def test_clients_get() -> None: - """Test get endpoint with WireMock""" - test_id = "clients.get.0" - client = get_client(test_id) - client.clients.get( - id="id", - fields="fields", - include_fields=True, - ) - verify_request_count(test_id, "GET", "/clients/id", {"fields": "fields", "include_fields": "true"}, 1) - - -def test_clients_delete() -> None: - """Test delete endpoint with WireMock""" - test_id = "clients.delete.0" - client = get_client(test_id) - client.clients.delete( - id="id", - ) - verify_request_count(test_id, "DELETE", "/clients/id", None, 1) - - -def test_clients_update() -> None: - """Test update endpoint with WireMock""" - test_id = "clients.update.0" - client = get_client(test_id) - client.clients.update( - id="id", - ) - verify_request_count(test_id, "PATCH", "/clients/id", None, 1) - - -def test_clients_rotate_secret() -> None: - """Test rotateSecret endpoint with WireMock""" - test_id = "clients.rotate_secret.0" - client = get_client(test_id) - client.clients.rotate_secret( - id="id", - ) - verify_request_count(test_id, "POST", "/clients/id/rotate-secret", None, 1) diff --git a/tests/wire/test_clients_connections.py b/tests/wire/test_clients_connections.py deleted file mode 100644 index 8735b96b..00000000 --- a/tests/wire/test_clients_connections.py +++ /dev/null @@ -1,22 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_clients_connections_get() -> None: - """Test get endpoint with WireMock""" - test_id = "clients.connections.get.0" - client = get_client(test_id) - client.clients.connections.get( - id="id", - strategy=["ad"], - from_="from", - take=1, - fields="fields", - include_fields=True, - ) - verify_request_count( - test_id, - "GET", - "/clients/id/connections", - {"strategy": "ad", "from": "from", "take": "1", "fields": "fields", "include_fields": "true"}, - 1, - ) diff --git a/tests/wire/test_clients_credentials.py b/tests/wire/test_clients_credentials.py deleted file mode 100644 index 9187df0a..00000000 --- a/tests/wire/test_clients_credentials.py +++ /dev/null @@ -1,55 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_clients_credentials_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "clients.credentials.list_.0" - client = get_client(test_id) - client.clients.credentials.list( - client_id="client_id", - ) - verify_request_count(test_id, "GET", "/clients/client_id/credentials", None, 1) - - -def test_clients_credentials_create() -> None: - """Test create endpoint with WireMock""" - test_id = "clients.credentials.create.0" - client = get_client(test_id) - client.clients.credentials.create( - client_id="client_id", - credential_type="public_key", - ) - verify_request_count(test_id, "POST", "/clients/client_id/credentials", None, 1) - - -def test_clients_credentials_get() -> None: - """Test get endpoint with WireMock""" - test_id = "clients.credentials.get.0" - client = get_client(test_id) - client.clients.credentials.get( - client_id="client_id", - credential_id="credential_id", - ) - verify_request_count(test_id, "GET", "/clients/client_id/credentials/credential_id", None, 1) - - -def test_clients_credentials_delete() -> None: - """Test delete endpoint with WireMock""" - test_id = "clients.credentials.delete.0" - client = get_client(test_id) - client.clients.credentials.delete( - client_id="client_id", - credential_id="credential_id", - ) - verify_request_count(test_id, "DELETE", "/clients/client_id/credentials/credential_id", None, 1) - - -def test_clients_credentials_update() -> None: - """Test update endpoint with WireMock""" - test_id = "clients.credentials.update.0" - client = get_client(test_id) - client.clients.credentials.update( - client_id="client_id", - credential_id="credential_id", - ) - verify_request_count(test_id, "PATCH", "/clients/client_id/credentials/credential_id", None, 1) diff --git a/tests/wire/test_connectionProfiles.py b/tests/wire/test_connectionProfiles.py deleted file mode 100644 index 04def4c8..00000000 --- a/tests/wire/test_connectionProfiles.py +++ /dev/null @@ -1,70 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_connectionProfiles_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "connection_profiles.list_.0" - client = get_client(test_id) - client.connection_profiles.list( - from_="from", - take=1, - ) - verify_request_count(test_id, "GET", "/connection-profiles", {"from": "from", "take": "1"}, 1) - - -def test_connectionProfiles_create() -> None: - """Test create endpoint with WireMock""" - test_id = "connection_profiles.create.0" - client = get_client(test_id) - client.connection_profiles.create( - name="name", - ) - verify_request_count(test_id, "POST", "/connection-profiles", None, 1) - - -def test_connectionProfiles_list_templates() -> None: - """Test listTemplates endpoint with WireMock""" - test_id = "connection_profiles.list_templates.0" - client = get_client(test_id) - client.connection_profiles.list_templates() - verify_request_count(test_id, "GET", "/connection-profiles/templates", None, 1) - - -def test_connectionProfiles_get_template() -> None: - """Test getTemplate endpoint with WireMock""" - test_id = "connection_profiles.get_template.0" - client = get_client(test_id) - client.connection_profiles.get_template( - id="id", - ) - verify_request_count(test_id, "GET", "/connection-profiles/templates/id", None, 1) - - -def test_connectionProfiles_get() -> None: - """Test get endpoint with WireMock""" - test_id = "connection_profiles.get.0" - client = get_client(test_id) - client.connection_profiles.get( - id="id", - ) - verify_request_count(test_id, "GET", "/connection-profiles/id", None, 1) - - -def test_connectionProfiles_delete() -> None: - """Test delete endpoint with WireMock""" - test_id = "connection_profiles.delete.0" - client = get_client(test_id) - client.connection_profiles.delete( - id="id", - ) - verify_request_count(test_id, "DELETE", "/connection-profiles/id", None, 1) - - -def test_connectionProfiles_update() -> None: - """Test update endpoint with WireMock""" - test_id = "connection_profiles.update.0" - client = get_client(test_id) - client.connection_profiles.update( - id="id", - ) - verify_request_count(test_id, "PATCH", "/connection-profiles/id", None, 1) diff --git a/tests/wire/test_connections.py b/tests/wire/test_connections.py deleted file mode 100644 index 020c1e3c..00000000 --- a/tests/wire/test_connections.py +++ /dev/null @@ -1,84 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_connections_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "connections.list_.0" - client = get_client(test_id) - client.connections.list( - include_totals=True, - from_="from", - take=1, - strategy=["ad"], - name="name", - fields="fields", - include_fields=True, - ) - verify_request_count( - test_id, - "GET", - "/connections", - { - "include_totals": "true", - "from": "from", - "take": "1", - "strategy": "ad", - "name": "name", - "fields": "fields", - "include_fields": "true", - }, - 1, - ) - - -def test_connections_create() -> None: - """Test create endpoint with WireMock""" - test_id = "connections.create.0" - client = get_client(test_id) - client.connections.create( - name="name", - strategy="ad", - ) - verify_request_count(test_id, "POST", "/connections", None, 1) - - -def test_connections_get() -> None: - """Test get endpoint with WireMock""" - test_id = "connections.get.0" - client = get_client(test_id) - client.connections.get( - id="id", - fields="fields", - include_fields=True, - ) - verify_request_count(test_id, "GET", "/connections/id", {"fields": "fields", "include_fields": "true"}, 1) - - -def test_connections_delete() -> None: - """Test delete endpoint with WireMock""" - test_id = "connections.delete.0" - client = get_client(test_id) - client.connections.delete( - id="id", - ) - verify_request_count(test_id, "DELETE", "/connections/id", None, 1) - - -def test_connections_update() -> None: - """Test update endpoint with WireMock""" - test_id = "connections.update.0" - client = get_client(test_id) - client.connections.update( - id="id", - ) - verify_request_count(test_id, "PATCH", "/connections/id", None, 1) - - -def test_connections_check_status() -> None: - """Test checkStatus endpoint with WireMock""" - test_id = "connections.check_status.0" - client = get_client(test_id) - client.connections.check_status( - id="id", - ) - verify_request_count(test_id, "GET", "/connections/id/status", None, 1) diff --git a/tests/wire/test_connections_clients.py b/tests/wire/test_connections_clients.py deleted file mode 100644 index 72d44378..00000000 --- a/tests/wire/test_connections_clients.py +++ /dev/null @@ -1,31 +0,0 @@ -from .conftest import get_client, verify_request_count - -from auth0.management import UpdateEnabledClientConnectionsRequestContentItem - - -def test_connections_clients_get() -> None: - """Test get endpoint with WireMock""" - test_id = "connections.clients.get.0" - client = get_client(test_id) - client.connections.clients.get( - id="id", - take=1, - from_="from", - ) - verify_request_count(test_id, "GET", "/connections/id/clients", {"take": "1", "from": "from"}, 1) - - -def test_connections_clients_update() -> None: - """Test update endpoint with WireMock""" - test_id = "connections.clients.update.0" - client = get_client(test_id) - client.connections.clients.update( - id="id", - request=[ - UpdateEnabledClientConnectionsRequestContentItem( - client_id="client_id", - status=True, - ) - ], - ) - verify_request_count(test_id, "PATCH", "/connections/id/clients", None, 1) diff --git a/tests/wire/test_connections_directoryProvisioning.py b/tests/wire/test_connections_directoryProvisioning.py deleted file mode 100644 index ce074547..00000000 --- a/tests/wire/test_connections_directoryProvisioning.py +++ /dev/null @@ -1,135 +0,0 @@ -from .conftest import get_client, verify_request_count - -from auth0.management import ( - CreateDirectoryProvisioningRequestContent, - SynchronizedGroupPayload, - SynchronizedGroupSelectionId, - UpdateDirectoryProvisioningRequestContent, -) - - -def test_connections_directoryProvisioning_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "connections.directory_provisioning.list_.0" - client = get_client(test_id) - client.connections.directory_provisioning.list( - from_="from", - take=1, - ) - verify_request_count(test_id, "GET", "/connections-directory-provisionings", {"from": "from", "take": "1"}, 1) - - -def test_connections_directoryProvisioning_get() -> None: - """Test get endpoint with WireMock""" - test_id = "connections.directory_provisioning.get.0" - client = get_client(test_id) - client.connections.directory_provisioning.get( - id="id", - ) - verify_request_count(test_id, "GET", "/connections/id/directory-provisioning", None, 1) - - -def test_connections_directoryProvisioning_create() -> None: - """Test create endpoint with WireMock""" - test_id = "connections.directory_provisioning.create.0" - client = get_client(test_id) - client.connections.directory_provisioning.create( - id="id", - request=CreateDirectoryProvisioningRequestContent(), - ) - verify_request_count(test_id, "POST", "/connections/id/directory-provisioning", None, 1) - - -def test_connections_directoryProvisioning_delete() -> None: - """Test delete endpoint with WireMock""" - test_id = "connections.directory_provisioning.delete.0" - client = get_client(test_id) - client.connections.directory_provisioning.delete( - id="id", - ) - verify_request_count(test_id, "DELETE", "/connections/id/directory-provisioning", None, 1) - - -def test_connections_directoryProvisioning_update() -> None: - """Test update endpoint with WireMock""" - test_id = "connections.directory_provisioning.update.0" - client = get_client(test_id) - client.connections.directory_provisioning.update( - id="id", - request=UpdateDirectoryProvisioningRequestContent(), - ) - verify_request_count(test_id, "PATCH", "/connections/id/directory-provisioning", None, 1) - - -def test_connections_directoryProvisioning_get_default_mapping() -> None: - """Test getDefaultMapping endpoint with WireMock""" - test_id = "connections.directory_provisioning.get_default_mapping.0" - client = get_client(test_id) - client.connections.directory_provisioning.get_default_mapping( - id="id", - ) - verify_request_count(test_id, "GET", "/connections/id/directory-provisioning/default-mapping", None, 1) - - -def test_connections_directoryProvisioning_list_synchronized_groups() -> None: - """Test listSynchronizedGroups endpoint with WireMock""" - test_id = "connections.directory_provisioning.list_synchronized_groups.0" - client = get_client(test_id) - client.connections.directory_provisioning.list_synchronized_groups( - id="id", - from_="from", - take=1, - q="q", - ) - verify_request_count( - test_id, - "GET", - "/connections/id/directory-provisioning/synchronized-groups", - {"from": "from", "take": "1", "q": "q"}, - 1, - ) - - -def test_connections_directoryProvisioning_add_synchronized_group_selections() -> None: - """Test addSynchronizedGroupSelections endpoint with WireMock""" - test_id = "connections.directory_provisioning.add_synchronized_group_selections.0" - client = get_client(test_id) - client.connections.directory_provisioning.add_synchronized_group_selections( - id="id", - groups=[ - SynchronizedGroupPayload( - id="id", - ) - ], - ) - verify_request_count(test_id, "POST", "/connections/id/directory-provisioning/synchronized-groups", None, 1) - - -def test_connections_directoryProvisioning_set_() -> None: - """Test set endpoint with WireMock""" - test_id = "connections.directory_provisioning.set_.0" - client = get_client(test_id) - client.connections.directory_provisioning.set( - id="id", - groups=[ - SynchronizedGroupPayload( - id="id", - ) - ], - ) - verify_request_count(test_id, "PUT", "/connections/id/directory-provisioning/synchronized-groups", None, 1) - - -def test_connections_directoryProvisioning_delete_synchronized_group_selections() -> None: - """Test deleteSynchronizedGroupSelections endpoint with WireMock""" - test_id = "connections.directory_provisioning.delete_synchronized_group_selections.0" - client = get_client(test_id) - client.connections.directory_provisioning.delete_synchronized_group_selections( - id="id", - groups=[ - SynchronizedGroupSelectionId( - id="id", - ) - ], - ) - verify_request_count(test_id, "DELETE", "/connections/id/directory-provisioning/synchronized-groups", None, 1) diff --git a/tests/wire/test_connections_directoryProvisioning_synchronizations.py b/tests/wire/test_connections_directoryProvisioning_synchronizations.py deleted file mode 100644 index 3e7f5e5c..00000000 --- a/tests/wire/test_connections_directoryProvisioning_synchronizations.py +++ /dev/null @@ -1,11 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_connections_directoryProvisioning_synchronizations_create() -> None: - """Test create endpoint with WireMock""" - test_id = "connections.directory_provisioning.synchronizations.create.0" - client = get_client(test_id) - client.connections.directory_provisioning.synchronizations.create( - id="id", - ) - verify_request_count(test_id, "POST", "/connections/id/directory-provisioning/synchronizations", None, 1) diff --git a/tests/wire/test_connections_keys.py b/tests/wire/test_connections_keys.py deleted file mode 100644 index a4d8e7f6..00000000 --- a/tests/wire/test_connections_keys.py +++ /dev/null @@ -1,35 +0,0 @@ -from .conftest import get_client, verify_request_count - -from auth0.management import PostConnectionKeysRequestContent, RotateConnectionKeysRequestContent - - -def test_connections_keys_get() -> None: - """Test get endpoint with WireMock""" - test_id = "connections.keys.get.0" - client = get_client(test_id) - client.connections.keys.get( - id="id", - ) - verify_request_count(test_id, "GET", "/connections/id/keys", None, 1) - - -def test_connections_keys_create() -> None: - """Test create endpoint with WireMock""" - test_id = "connections.keys.create.0" - client = get_client(test_id) - client.connections.keys.create( - id="id", - request=PostConnectionKeysRequestContent(), - ) - verify_request_count(test_id, "POST", "/connections/id/keys", None, 1) - - -def test_connections_keys_rotate() -> None: - """Test rotate endpoint with WireMock""" - test_id = "connections.keys.rotate.0" - client = get_client(test_id) - client.connections.keys.rotate( - id="id", - request=RotateConnectionKeysRequestContent(), - ) - verify_request_count(test_id, "POST", "/connections/id/keys/rotate", None, 1) diff --git a/tests/wire/test_connections_scimConfiguration.py b/tests/wire/test_connections_scimConfiguration.py deleted file mode 100644 index 1dfd6c39..00000000 --- a/tests/wire/test_connections_scimConfiguration.py +++ /dev/null @@ -1,67 +0,0 @@ -from .conftest import get_client, verify_request_count - -from auth0.management import CreateScimConfigurationRequestContent, ScimMappingItem - - -def test_connections_scimConfiguration_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "connections.scim_configuration.list_.0" - client = get_client(test_id) - client.connections.scim_configuration.list( - from_="from", - take=1, - ) - verify_request_count(test_id, "GET", "/connections-scim-configurations", {"from": "from", "take": "1"}, 1) - - -def test_connections_scimConfiguration_get() -> None: - """Test get endpoint with WireMock""" - test_id = "connections.scim_configuration.get.0" - client = get_client(test_id) - client.connections.scim_configuration.get( - id="id", - ) - verify_request_count(test_id, "GET", "/connections/id/scim-configuration", None, 1) - - -def test_connections_scimConfiguration_create() -> None: - """Test create endpoint with WireMock""" - test_id = "connections.scim_configuration.create.0" - client = get_client(test_id) - client.connections.scim_configuration.create( - id="id", - request=CreateScimConfigurationRequestContent(), - ) - verify_request_count(test_id, "POST", "/connections/id/scim-configuration", None, 1) - - -def test_connections_scimConfiguration_delete() -> None: - """Test delete endpoint with WireMock""" - test_id = "connections.scim_configuration.delete.0" - client = get_client(test_id) - client.connections.scim_configuration.delete( - id="id", - ) - verify_request_count(test_id, "DELETE", "/connections/id/scim-configuration", None, 1) - - -def test_connections_scimConfiguration_update() -> None: - """Test update endpoint with WireMock""" - test_id = "connections.scim_configuration.update.0" - client = get_client(test_id) - client.connections.scim_configuration.update( - id="id", - user_id_attribute="user_id_attribute", - mapping=[ScimMappingItem()], - ) - verify_request_count(test_id, "PATCH", "/connections/id/scim-configuration", None, 1) - - -def test_connections_scimConfiguration_get_default_mapping() -> None: - """Test getDefaultMapping endpoint with WireMock""" - test_id = "connections.scim_configuration.get_default_mapping.0" - client = get_client(test_id) - client.connections.scim_configuration.get_default_mapping( - id="id", - ) - verify_request_count(test_id, "GET", "/connections/id/scim-configuration/default-mapping", None, 1) diff --git a/tests/wire/test_connections_scimConfiguration_tokens.py b/tests/wire/test_connections_scimConfiguration_tokens.py deleted file mode 100644 index 6475210a..00000000 --- a/tests/wire/test_connections_scimConfiguration_tokens.py +++ /dev/null @@ -1,32 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_connections_scimConfiguration_tokens_get() -> None: - """Test get endpoint with WireMock""" - test_id = "connections.scim_configuration.tokens.get.0" - client = get_client(test_id) - client.connections.scim_configuration.tokens.get( - id="id", - ) - verify_request_count(test_id, "GET", "/connections/id/scim-configuration/tokens", None, 1) - - -def test_connections_scimConfiguration_tokens_create() -> None: - """Test create endpoint with WireMock""" - test_id = "connections.scim_configuration.tokens.create.0" - client = get_client(test_id) - client.connections.scim_configuration.tokens.create( - id="id", - ) - verify_request_count(test_id, "POST", "/connections/id/scim-configuration/tokens", None, 1) - - -def test_connections_scimConfiguration_tokens_delete() -> None: - """Test delete endpoint with WireMock""" - test_id = "connections.scim_configuration.tokens.delete.0" - client = get_client(test_id) - client.connections.scim_configuration.tokens.delete( - id="id", - token_id="tokenId", - ) - verify_request_count(test_id, "DELETE", "/connections/id/scim-configuration/tokens/tokenId", None, 1) diff --git a/tests/wire/test_connections_users.py b/tests/wire/test_connections_users.py deleted file mode 100644 index 890ae073..00000000 --- a/tests/wire/test_connections_users.py +++ /dev/null @@ -1,12 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_connections_users_delete_by_email() -> None: - """Test deleteByEmail endpoint with WireMock""" - test_id = "connections.users.delete_by_email.0" - client = get_client(test_id) - client.connections.users.delete_by_email( - id="id", - email="email", - ) - verify_request_count(test_id, "DELETE", "/connections/id/users", {"email": "email"}, 1) diff --git a/tests/wire/test_customDomains.py b/tests/wire/test_customDomains.py deleted file mode 100644 index a4e0066c..00000000 --- a/tests/wire/test_customDomains.py +++ /dev/null @@ -1,95 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_customDomains_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "custom_domains.list_.0" - client = get_client(test_id) - client.custom_domains.list( - q="q", - fields="fields", - include_fields=True, - sort="sort", - ) - verify_request_count( - test_id, "GET", "/custom-domains", {"q": "q", "fields": "fields", "include_fields": "true", "sort": "sort"}, 1 - ) - - -def test_customDomains_create() -> None: - """Test create endpoint with WireMock""" - test_id = "custom_domains.create.0" - client = get_client(test_id) - client.custom_domains.create( - domain="domain", - type="auth0_managed_certs", - ) - verify_request_count(test_id, "POST", "/custom-domains", None, 1) - - -def test_customDomains_get_default() -> None: - """Test getDefault endpoint with WireMock""" - test_id = "custom_domains.get_default.0" - client = get_client(test_id) - client.custom_domains.get_default() - verify_request_count(test_id, "GET", "/custom-domains/default", None, 1) - - -def test_customDomains_set_default() -> None: - """Test setDefault endpoint with WireMock""" - test_id = "custom_domains.set_default.0" - client = get_client(test_id) - client.custom_domains.set_default( - domain="domain", - ) - verify_request_count(test_id, "PATCH", "/custom-domains/default", None, 1) - - -def test_customDomains_get() -> None: - """Test get endpoint with WireMock""" - test_id = "custom_domains.get.0" - client = get_client(test_id) - client.custom_domains.get( - id="id", - ) - verify_request_count(test_id, "GET", "/custom-domains/id", None, 1) - - -def test_customDomains_delete() -> None: - """Test delete endpoint with WireMock""" - test_id = "custom_domains.delete.0" - client = get_client(test_id) - client.custom_domains.delete( - id="id", - ) - verify_request_count(test_id, "DELETE", "/custom-domains/id", None, 1) - - -def test_customDomains_update() -> None: - """Test update endpoint with WireMock""" - test_id = "custom_domains.update.0" - client = get_client(test_id) - client.custom_domains.update( - id="id", - ) - verify_request_count(test_id, "PATCH", "/custom-domains/id", None, 1) - - -def test_customDomains_test() -> None: - """Test test endpoint with WireMock""" - test_id = "custom_domains.test.0" - client = get_client(test_id) - client.custom_domains.test( - id="id", - ) - verify_request_count(test_id, "POST", "/custom-domains/id/test", None, 1) - - -def test_customDomains_verify() -> None: - """Test verify endpoint with WireMock""" - test_id = "custom_domains.verify.0" - client = get_client(test_id) - client.custom_domains.verify( - id="id", - ) - verify_request_count(test_id, "POST", "/custom-domains/id/verify", None, 1) diff --git a/tests/wire/test_deviceCredentials.py b/tests/wire/test_deviceCredentials.py deleted file mode 100644 index bb49c2ce..00000000 --- a/tests/wire/test_deviceCredentials.py +++ /dev/null @@ -1,56 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_deviceCredentials_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "device_credentials.list_.0" - client = get_client(test_id) - client.device_credentials.list( - page=1, - per_page=1, - include_totals=True, - fields="fields", - include_fields=True, - user_id="user_id", - client_id="client_id", - type="public_key", - ) - verify_request_count( - test_id, - "GET", - "/device-credentials", - { - "page": "1", - "per_page": "1", - "include_totals": "true", - "fields": "fields", - "include_fields": "true", - "user_id": "user_id", - "client_id": "client_id", - "type": "public_key", - }, - 1, - ) - - -def test_deviceCredentials_create_public_key() -> None: - """Test createPublicKey endpoint with WireMock""" - test_id = "device_credentials.create_public_key.0" - client = get_client(test_id) - client.device_credentials.create_public_key( - device_name="device_name", - type="public_key", - value="value", - device_id="device_id", - ) - verify_request_count(test_id, "POST", "/device-credentials", None, 1) - - -def test_deviceCredentials_delete() -> None: - """Test delete endpoint with WireMock""" - test_id = "device_credentials.delete.0" - client = get_client(test_id) - client.device_credentials.delete( - id="id", - ) - verify_request_count(test_id, "DELETE", "/device-credentials/id", None, 1) diff --git a/tests/wire/test_emailTemplates.py b/tests/wire/test_emailTemplates.py deleted file mode 100644 index 8824367d..00000000 --- a/tests/wire/test_emailTemplates.py +++ /dev/null @@ -1,52 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_emailTemplates_create() -> None: - """Test create endpoint with WireMock""" - test_id = "email_templates.create.0" - client = get_client(test_id) - client.email_templates.create( - template="verify_email", - body=None, - from_=None, - subject=None, - syntax=None, - enabled=None, - ) - verify_request_count(test_id, "POST", "/email-templates", None, 1) - - -def test_emailTemplates_get() -> None: - """Test get endpoint with WireMock""" - test_id = "email_templates.get.0" - client = get_client(test_id) - client.email_templates.get( - template_name="verify_email", - ) - verify_request_count(test_id, "GET", "/email-templates/verify_email", None, 1) - - -def test_emailTemplates_set_() -> None: - """Test set endpoint with WireMock""" - test_id = "email_templates.set_.0" - client = get_client(test_id) - client.email_templates.set( - template_name="verify_email", - template="verify_email", - body=None, - from_=None, - subject=None, - syntax=None, - enabled=None, - ) - verify_request_count(test_id, "PUT", "/email-templates/verify_email", None, 1) - - -def test_emailTemplates_update() -> None: - """Test update endpoint with WireMock""" - test_id = "email_templates.update.0" - client = get_client(test_id) - client.email_templates.update( - template_name="verify_email", - ) - verify_request_count(test_id, "PATCH", "/email-templates/verify_email", None, 1) diff --git a/tests/wire/test_emails_provider.py b/tests/wire/test_emails_provider.py deleted file mode 100644 index f30da1ba..00000000 --- a/tests/wire/test_emails_provider.py +++ /dev/null @@ -1,38 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_emails_provider_get() -> None: - """Test get endpoint with WireMock""" - test_id = "emails.provider.get.0" - client = get_client(test_id) - client.emails.provider.get( - fields="fields", - include_fields=True, - ) - verify_request_count(test_id, "GET", "/emails/provider", {"fields": "fields", "include_fields": "true"}, 1) - - -def test_emails_provider_create() -> None: - """Test create endpoint with WireMock""" - test_id = "emails.provider.create.0" - client = get_client(test_id) - client.emails.provider.create( - name="mailgun", - ) - verify_request_count(test_id, "POST", "/emails/provider", None, 1) - - -def test_emails_provider_delete() -> None: - """Test delete endpoint with WireMock""" - test_id = "emails.provider.delete.0" - client = get_client(test_id) - client.emails.provider.delete() - verify_request_count(test_id, "DELETE", "/emails/provider", None, 1) - - -def test_emails_provider_update() -> None: - """Test update endpoint with WireMock""" - test_id = "emails.provider.update.0" - client = get_client(test_id) - client.emails.provider.update() - verify_request_count(test_id, "PATCH", "/emails/provider", None, 1) diff --git a/tests/wire/test_eventStreams.py b/tests/wire/test_eventStreams.py deleted file mode 100644 index 67eadbb8..00000000 --- a/tests/wire/test_eventStreams.py +++ /dev/null @@ -1,81 +0,0 @@ -from .conftest import get_client, verify_request_count - -from auth0.management import ( - CreateEventStreamWebHookRequestContent, - EventStreamWebhookBasicAuth, - EventStreamWebhookConfiguration, - EventStreamWebhookDestination, -) - - -def test_eventStreams_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "event_streams.list_.0" - client = get_client(test_id) - client.event_streams.list( - from_="from", - take=1, - ) - verify_request_count(test_id, "GET", "/event-streams", {"from": "from", "take": "1"}, 1) - - -def test_eventStreams_create() -> None: - """Test create endpoint with WireMock""" - test_id = "event_streams.create.0" - client = get_client(test_id) - client.event_streams.create( - request=CreateEventStreamWebHookRequestContent( - destination=EventStreamWebhookDestination( - type="webhook", - configuration=EventStreamWebhookConfiguration( - webhook_endpoint="webhook_endpoint", - webhook_authorization=EventStreamWebhookBasicAuth( - method="basic", - username="username", - ), - ), - ), - ), - ) - verify_request_count(test_id, "POST", "/event-streams", None, 1) - - -def test_eventStreams_get() -> None: - """Test get endpoint with WireMock""" - test_id = "event_streams.get.0" - client = get_client(test_id) - client.event_streams.get( - id="id", - ) - verify_request_count(test_id, "GET", "/event-streams/id", None, 1) - - -def test_eventStreams_delete() -> None: - """Test delete endpoint with WireMock""" - test_id = "event_streams.delete.0" - client = get_client(test_id) - client.event_streams.delete( - id="id", - ) - verify_request_count(test_id, "DELETE", "/event-streams/id", None, 1) - - -def test_eventStreams_update() -> None: - """Test update endpoint with WireMock""" - test_id = "event_streams.update.0" - client = get_client(test_id) - client.event_streams.update( - id="id", - ) - verify_request_count(test_id, "PATCH", "/event-streams/id", None, 1) - - -def test_eventStreams_test() -> None: - """Test test endpoint with WireMock""" - test_id = "event_streams.test.0" - client = get_client(test_id) - client.event_streams.test( - id="id", - event_type="connection.created", - ) - verify_request_count(test_id, "POST", "/event-streams/id/test", None, 1) diff --git a/tests/wire/test_eventStreams_deliveries.py b/tests/wire/test_eventStreams_deliveries.py deleted file mode 100644 index 48d402e6..00000000 --- a/tests/wire/test_eventStreams_deliveries.py +++ /dev/null @@ -1,41 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_eventStreams_deliveries_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "event_streams.deliveries.list_.0" - client = get_client(test_id) - client.event_streams.deliveries.list( - id="id", - statuses="statuses", - event_types="event_types", - date_from="date_from", - date_to="date_to", - from_="from", - take=1, - ) - verify_request_count( - test_id, - "GET", - "/event-streams/id/deliveries", - { - "statuses": "statuses", - "event_types": "event_types", - "date_from": "date_from", - "date_to": "date_to", - "from": "from", - "take": "1", - }, - 1, - ) - - -def test_eventStreams_deliveries_get_history() -> None: - """Test getHistory endpoint with WireMock""" - test_id = "event_streams.deliveries.get_history.0" - client = get_client(test_id) - client.event_streams.deliveries.get_history( - id="id", - event_id="event_id", - ) - verify_request_count(test_id, "GET", "/event-streams/id/deliveries/event_id", None, 1) diff --git a/tests/wire/test_eventStreams_redeliveries.py b/tests/wire/test_eventStreams_redeliveries.py deleted file mode 100644 index 2e55ad5e..00000000 --- a/tests/wire/test_eventStreams_redeliveries.py +++ /dev/null @@ -1,22 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_eventStreams_redeliveries_create() -> None: - """Test create endpoint with WireMock""" - test_id = "event_streams.redeliveries.create.0" - client = get_client(test_id) - client.event_streams.redeliveries.create( - id="id", - ) - verify_request_count(test_id, "POST", "/event-streams/id/redeliver", None, 1) - - -def test_eventStreams_redeliveries_create_by_id() -> None: - """Test createById endpoint with WireMock""" - test_id = "event_streams.redeliveries.create_by_id.0" - client = get_client(test_id) - client.event_streams.redeliveries.create_by_id( - id="id", - event_id="event_id", - ) - verify_request_count(test_id, "POST", "/event-streams/id/redeliver/event_id", None, 1) diff --git a/tests/wire/test_events.py b/tests/wire/test_events.py deleted file mode 100644 index 54c5ac7a..00000000 --- a/tests/wire/test_events.py +++ /dev/null @@ -1,20 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_events_subscribe() -> None: - """Test subscribe endpoint with WireMock""" - test_id = "events.subscribe.0" - client = get_client(test_id) - for _ in client.events.subscribe( - from_="from", - from_timestamp="from_timestamp", - event_type=["connection.created"], - ): - pass - verify_request_count( - test_id, - "GET", - "/events", - {"from": "from", "from_timestamp": "from_timestamp", "event_type": "connection.created"}, - 1, - ) diff --git a/tests/wire/test_experimentation_experiments.py b/tests/wire/test_experimentation_experiments.py deleted file mode 100644 index 9fb9a7c7..00000000 --- a/tests/wire/test_experimentation_experiments.py +++ /dev/null @@ -1,91 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_experimentation_experiments_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "experimentation.experiments.list_.0" - client = get_client(test_id) - client.experimentation.experiments.list( - from_="from", - take=1, - status="draft", - authentication_flow="authentication_flow", - feature_flag_id="feature_flag_id", - ) - verify_request_count( - test_id, - "GET", - "/experimentation/experiments", - { - "from": "from", - "take": "1", - "status": "draft", - "authentication_flow": "authentication_flow", - "feature_flag_id": "feature_flag_id", - }, - 1, - ) - - -def test_experimentation_experiments_create() -> None: - """Test create endpoint with WireMock""" - test_id = "experimentation.experiments.create.0" - client = get_client(test_id) - client.experimentation.experiments.create( - name="name", - feature_flag_id="feature_flag_id", - authentication_flow="authentication", - allocation_strategy="percentage", - ) - verify_request_count(test_id, "POST", "/experimentation/experiments", None, 1) - - -def test_experimentation_experiments_get() -> None: - """Test get endpoint with WireMock""" - test_id = "experimentation.experiments.get.0" - client = get_client(test_id) - client.experimentation.experiments.get( - id="id", - ) - verify_request_count(test_id, "GET", "/experimentation/experiments/id", None, 1) - - -def test_experimentation_experiments_delete() -> None: - """Test delete endpoint with WireMock""" - test_id = "experimentation.experiments.delete.0" - client = get_client(test_id) - client.experimentation.experiments.delete( - id="id", - ) - verify_request_count(test_id, "DELETE", "/experimentation/experiments/id", None, 1) - - -def test_experimentation_experiments_update() -> None: - """Test update endpoint with WireMock""" - test_id = "experimentation.experiments.update.0" - client = get_client(test_id) - client.experimentation.experiments.update( - id="id", - ) - verify_request_count(test_id, "PATCH", "/experimentation/experiments/id", None, 1) - - -def test_experimentation_experiments_advance_ramp() -> None: - """Test advanceRamp endpoint with WireMock""" - test_id = "experimentation.experiments.advance_ramp.0" - client = get_client(test_id) - client.experimentation.experiments.advance_ramp( - id="id", - target_level=1, - ) - verify_request_count(test_id, "POST", "/experimentation/experiments/id/advance-ramp", None, 1) - - -def test_experimentation_experiments_validate() -> None: - """Test validate endpoint with WireMock""" - test_id = "experimentation.experiments.validate.0" - client = get_client(test_id) - client.experimentation.experiments.validate( - id="id", - ) - verify_request_count(test_id, "POST", "/experimentation/experiments/id/validate", None, 1) diff --git a/tests/wire/test_experimentation_featureFlags.py b/tests/wire/test_experimentation_featureFlags.py deleted file mode 100644 index fa33a650..00000000 --- a/tests/wire/test_experimentation_featureFlags.py +++ /dev/null @@ -1,61 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_experimentation_featureFlags_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "experimentation.feature_flags.list_.0" - client = get_client(test_id) - client.experimentation.feature_flags.list( - from_="from", - take=1, - type="auth0", - status="draft", - ) - verify_request_count( - test_id, - "GET", - "/experimentation/feature-flags", - {"from": "from", "take": "1", "type": "auth0", "status": "draft"}, - 1, - ) - - -def test_experimentation_featureFlags_create() -> None: - """Test create endpoint with WireMock""" - test_id = "experimentation.feature_flags.create.0" - client = get_client(test_id) - client.experimentation.feature_flags.create( - name="name", - parameters={}, - ) - verify_request_count(test_id, "POST", "/experimentation/feature-flags", None, 1) - - -def test_experimentation_featureFlags_get() -> None: - """Test get endpoint with WireMock""" - test_id = "experimentation.feature_flags.get.0" - client = get_client(test_id) - client.experimentation.feature_flags.get( - id="id", - ) - verify_request_count(test_id, "GET", "/experimentation/feature-flags/id", None, 1) - - -def test_experimentation_featureFlags_delete() -> None: - """Test delete endpoint with WireMock""" - test_id = "experimentation.feature_flags.delete.0" - client = get_client(test_id) - client.experimentation.feature_flags.delete( - id="id", - ) - verify_request_count(test_id, "DELETE", "/experimentation/feature-flags/id", None, 1) - - -def test_experimentation_featureFlags_update() -> None: - """Test update endpoint with WireMock""" - test_id = "experimentation.feature_flags.update.0" - client = get_client(test_id) - client.experimentation.feature_flags.update( - id="id", - ) - verify_request_count(test_id, "PATCH", "/experimentation/feature-flags/id", None, 1) diff --git a/tests/wire/test_experimentation_featureFlags_variations.py b/tests/wire/test_experimentation_featureFlags_variations.py deleted file mode 100644 index a779b2d7..00000000 --- a/tests/wire/test_experimentation_featureFlags_variations.py +++ /dev/null @@ -1,56 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_experimentation_featureFlags_variations_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "experimentation.feature_flags.variations.list_.0" - client = get_client(test_id) - client.experimentation.feature_flags.variations.list( - id="id", - ) - verify_request_count(test_id, "GET", "/experimentation/feature-flags/id/variations", None, 1) - - -def test_experimentation_featureFlags_variations_create() -> None: - """Test create endpoint with WireMock""" - test_id = "experimentation.feature_flags.variations.create.0" - client = get_client(test_id) - client.experimentation.feature_flags.variations.create( - id="id", - name="name", - overrides={"key": "value"}, - ) - verify_request_count(test_id, "POST", "/experimentation/feature-flags/id/variations", None, 1) - - -def test_experimentation_featureFlags_variations_get() -> None: - """Test get endpoint with WireMock""" - test_id = "experimentation.feature_flags.variations.get.0" - client = get_client(test_id) - client.experimentation.feature_flags.variations.get( - id="id", - vid="vid", - ) - verify_request_count(test_id, "GET", "/experimentation/feature-flags/id/variations/vid", None, 1) - - -def test_experimentation_featureFlags_variations_delete() -> None: - """Test delete endpoint with WireMock""" - test_id = "experimentation.feature_flags.variations.delete.0" - client = get_client(test_id) - client.experimentation.feature_flags.variations.delete( - id="id", - vid="vid", - ) - verify_request_count(test_id, "DELETE", "/experimentation/feature-flags/id/variations/vid", None, 1) - - -def test_experimentation_featureFlags_variations_update() -> None: - """Test update endpoint with WireMock""" - test_id = "experimentation.feature_flags.variations.update.0" - client = get_client(test_id) - client.experimentation.feature_flags.variations.update( - id="id", - vid="vid", - ) - verify_request_count(test_id, "PATCH", "/experimentation/feature-flags/id/variations/vid", None, 1) diff --git a/tests/wire/test_experimentation_segments.py b/tests/wire/test_experimentation_segments.py deleted file mode 100644 index 62d15bc3..00000000 --- a/tests/wire/test_experimentation_segments.py +++ /dev/null @@ -1,63 +0,0 @@ -from .conftest import get_client, verify_request_count - -from auth0.management import SegmentRule - - -def test_experimentation_segments_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "experimentation.segments.list_.0" - client = get_client(test_id) - client.experimentation.segments.list( - from_="from", - take=1, - type="auth0", - status="active", - ) - verify_request_count( - test_id, - "GET", - "/experimentation/segments", - {"from": "from", "take": "1", "type": "auth0", "status": "active"}, - 1, - ) - - -def test_experimentation_segments_create() -> None: - """Test create endpoint with WireMock""" - test_id = "experimentation.segments.create.0" - client = get_client(test_id) - client.experimentation.segments.create( - name="name", - rules=[SegmentRule()], - ) - verify_request_count(test_id, "POST", "/experimentation/segments", None, 1) - - -def test_experimentation_segments_get() -> None: - """Test get endpoint with WireMock""" - test_id = "experimentation.segments.get.0" - client = get_client(test_id) - client.experimentation.segments.get( - id="id", - ) - verify_request_count(test_id, "GET", "/experimentation/segments/id", None, 1) - - -def test_experimentation_segments_delete() -> None: - """Test delete endpoint with WireMock""" - test_id = "experimentation.segments.delete.0" - client = get_client(test_id) - client.experimentation.segments.delete( - id="id", - ) - verify_request_count(test_id, "DELETE", "/experimentation/segments/id", None, 1) - - -def test_experimentation_segments_update() -> None: - """Test update endpoint with WireMock""" - test_id = "experimentation.segments.update.0" - client = get_client(test_id) - client.experimentation.segments.update( - id="id", - ) - verify_request_count(test_id, "PATCH", "/experimentation/segments/id", None, 1) diff --git a/tests/wire/test_flows.py b/tests/wire/test_flows.py deleted file mode 100644 index a19de00c..00000000 --- a/tests/wire/test_flows.py +++ /dev/null @@ -1,62 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_flows_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "flows.list_.0" - client = get_client(test_id) - client.flows.list( - page=1, - per_page=1, - include_totals=True, - hydrate=["form_count"], - synchronous=True, - ) - verify_request_count( - test_id, - "GET", - "/flows", - {"page": "1", "per_page": "1", "include_totals": "true", "hydrate": "form_count", "synchronous": "true"}, - 1, - ) - - -def test_flows_create() -> None: - """Test create endpoint with WireMock""" - test_id = "flows.create.0" - client = get_client(test_id) - client.flows.create( - name="name", - ) - verify_request_count(test_id, "POST", "/flows", None, 1) - - -def test_flows_get() -> None: - """Test get endpoint with WireMock""" - test_id = "flows.get.0" - client = get_client(test_id) - client.flows.get( - id="id", - hydrate=["form_count"], - ) - verify_request_count(test_id, "GET", "/flows/id", {"hydrate": "form_count"}, 1) - - -def test_flows_delete() -> None: - """Test delete endpoint with WireMock""" - test_id = "flows.delete.0" - client = get_client(test_id) - client.flows.delete( - id="id", - ) - verify_request_count(test_id, "DELETE", "/flows/id", None, 1) - - -def test_flows_update() -> None: - """Test update endpoint with WireMock""" - test_id = "flows.update.0" - client = get_client(test_id) - client.flows.update( - id="id", - ) - verify_request_count(test_id, "PATCH", "/flows/id", None, 1) diff --git a/tests/wire/test_flows_executions.py b/tests/wire/test_flows_executions.py deleted file mode 100644 index 51db97b1..00000000 --- a/tests/wire/test_flows_executions.py +++ /dev/null @@ -1,39 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_flows_executions_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "flows.executions.list_.0" - client = get_client(test_id) - client.flows.executions.list( - flow_id="flow_id", - include_totals=True, - from_="from", - take=1, - ) - verify_request_count( - test_id, "GET", "/flows/flow_id/executions", {"include_totals": "true", "from": "from", "take": "1"}, 1 - ) - - -def test_flows_executions_get() -> None: - """Test get endpoint with WireMock""" - test_id = "flows.executions.get.0" - client = get_client(test_id) - client.flows.executions.get( - flow_id="flow_id", - execution_id="execution_id", - hydrate=["debug"], - ) - verify_request_count(test_id, "GET", "/flows/flow_id/executions/execution_id", {"hydrate": "debug"}, 1) - - -def test_flows_executions_delete() -> None: - """Test delete endpoint with WireMock""" - test_id = "flows.executions.delete.0" - client = get_client(test_id) - client.flows.executions.delete( - flow_id="flow_id", - execution_id="execution_id", - ) - verify_request_count(test_id, "DELETE", "/flows/flow_id/executions/execution_id", None, 1) diff --git a/tests/wire/test_flows_vault_connections.py b/tests/wire/test_flows_vault_connections.py deleted file mode 100644 index 871761bd..00000000 --- a/tests/wire/test_flows_vault_connections.py +++ /dev/null @@ -1,65 +0,0 @@ -from .conftest import get_client, verify_request_count - -from auth0.management import CreateFlowsVaultConnectionActivecampaignApiKey, FlowsVaultConnectioSetupApiKeyWithBaseUrl - - -def test_flows_vault_connections_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "flows.vault.connections.list_.0" - client = get_client(test_id) - client.flows.vault.connections.list( - page=1, - per_page=1, - include_totals=True, - ) - verify_request_count( - test_id, "GET", "/flows/vault/connections", {"page": "1", "per_page": "1", "include_totals": "true"}, 1 - ) - - -def test_flows_vault_connections_create() -> None: - """Test create endpoint with WireMock""" - test_id = "flows.vault.connections.create.0" - client = get_client(test_id) - client.flows.vault.connections.create( - request=CreateFlowsVaultConnectionActivecampaignApiKey( - name="name", - app_id="ACTIVECAMPAIGN", - setup=FlowsVaultConnectioSetupApiKeyWithBaseUrl( - type="API_KEY", - api_key="api_key", - base_url="base_url", - ), - ), - ) - verify_request_count(test_id, "POST", "/flows/vault/connections", None, 1) - - -def test_flows_vault_connections_get() -> None: - """Test get endpoint with WireMock""" - test_id = "flows.vault.connections.get.0" - client = get_client(test_id) - client.flows.vault.connections.get( - id="id", - ) - verify_request_count(test_id, "GET", "/flows/vault/connections/id", None, 1) - - -def test_flows_vault_connections_delete() -> None: - """Test delete endpoint with WireMock""" - test_id = "flows.vault.connections.delete.0" - client = get_client(test_id) - client.flows.vault.connections.delete( - id="id", - ) - verify_request_count(test_id, "DELETE", "/flows/vault/connections/id", None, 1) - - -def test_flows_vault_connections_update() -> None: - """Test update endpoint with WireMock""" - test_id = "flows.vault.connections.update.0" - client = get_client(test_id) - client.flows.vault.connections.update( - id="id", - ) - verify_request_count(test_id, "PATCH", "/flows/vault/connections/id", None, 1) diff --git a/tests/wire/test_forms.py b/tests/wire/test_forms.py deleted file mode 100644 index da4d0cc7..00000000 --- a/tests/wire/test_forms.py +++ /dev/null @@ -1,57 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_forms_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "forms.list_.0" - client = get_client(test_id) - client.forms.list( - page=1, - per_page=1, - include_totals=True, - hydrate=["flow_count"], - ) - verify_request_count( - test_id, "GET", "/forms", {"page": "1", "per_page": "1", "include_totals": "true", "hydrate": "flow_count"}, 1 - ) - - -def test_forms_create() -> None: - """Test create endpoint with WireMock""" - test_id = "forms.create.0" - client = get_client(test_id) - client.forms.create( - name="name", - ) - verify_request_count(test_id, "POST", "/forms", None, 1) - - -def test_forms_get() -> None: - """Test get endpoint with WireMock""" - test_id = "forms.get.0" - client = get_client(test_id) - client.forms.get( - id="id", - hydrate=["flow_count"], - ) - verify_request_count(test_id, "GET", "/forms/id", {"hydrate": "flow_count"}, 1) - - -def test_forms_delete() -> None: - """Test delete endpoint with WireMock""" - test_id = "forms.delete.0" - client = get_client(test_id) - client.forms.delete( - id="id", - ) - verify_request_count(test_id, "DELETE", "/forms/id", None, 1) - - -def test_forms_update() -> None: - """Test update endpoint with WireMock""" - test_id = "forms.update.0" - client = get_client(test_id) - client.forms.update( - id="id", - ) - verify_request_count(test_id, "PATCH", "/forms/id", None, 1) diff --git a/tests/wire/test_groups.py b/tests/wire/test_groups.py deleted file mode 100644 index 23f7b00a..00000000 --- a/tests/wire/test_groups.py +++ /dev/null @@ -1,55 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_groups_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "groups.list_.0" - client = get_client(test_id) - client.groups.list( - connection_id="connection_id", - name="name", - external_id="external_id", - search="search", - fields="fields", - include_fields=True, - include_totals=True, - from_="from", - take=1, - ) - verify_request_count( - test_id, - "GET", - "/groups", - { - "connection_id": "connection_id", - "name": "name", - "external_id": "external_id", - "search": "search", - "fields": "fields", - "include_fields": "true", - "include_totals": "true", - "from": "from", - "take": "1", - }, - 1, - ) - - -def test_groups_get() -> None: - """Test get endpoint with WireMock""" - test_id = "groups.get.0" - client = get_client(test_id) - client.groups.get( - id="id", - ) - verify_request_count(test_id, "GET", "/groups/id", None, 1) - - -def test_groups_delete() -> None: - """Test delete endpoint with WireMock""" - test_id = "groups.delete.0" - client = get_client(test_id) - client.groups.delete( - id="id", - ) - verify_request_count(test_id, "DELETE", "/groups/id", None, 1) diff --git a/tests/wire/test_groups_members.py b/tests/wire/test_groups_members.py deleted file mode 100644 index f40d8d05..00000000 --- a/tests/wire/test_groups_members.py +++ /dev/null @@ -1,21 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_groups_members_get() -> None: - """Test get endpoint with WireMock""" - test_id = "groups.members.get.0" - client = get_client(test_id) - client.groups.members.get( - id="id", - fields="fields", - include_fields=True, - from_="from", - take=1, - ) - verify_request_count( - test_id, - "GET", - "/groups/id/members", - {"fields": "fields", "include_fields": "true", "from": "from", "take": "1"}, - 1, - ) diff --git a/tests/wire/test_groups_roles.py b/tests/wire/test_groups_roles.py deleted file mode 100644 index 10de9cc2..00000000 --- a/tests/wire/test_groups_roles.py +++ /dev/null @@ -1,35 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_groups_roles_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "groups.roles.list_.0" - client = get_client(test_id) - client.groups.roles.list( - id="id", - from_="from", - take=1, - ) - verify_request_count(test_id, "GET", "/groups/id/roles", {"from": "from", "take": "1"}, 1) - - -def test_groups_roles_create() -> None: - """Test create endpoint with WireMock""" - test_id = "groups.roles.create.0" - client = get_client(test_id) - client.groups.roles.create( - id="id", - roles=["roles"], - ) - verify_request_count(test_id, "POST", "/groups/id/roles", None, 1) - - -def test_groups_roles_delete() -> None: - """Test delete endpoint with WireMock""" - test_id = "groups.roles.delete.0" - client = get_client(test_id) - client.groups.roles.delete( - id="id", - roles=["roles"], - ) - verify_request_count(test_id, "DELETE", "/groups/id/roles", None, 1) diff --git a/tests/wire/test_guardian.py b/tests/wire/test_guardian.py deleted file mode 100644 index 1e547070..00000000 --- a/tests/wire/test_guardian.py +++ /dev/null @@ -1,22 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_guardian_get() -> None: - """Test get endpoint with WireMock""" - test_id = "guardian.get.0" - client = get_client(test_id) - client.guardian.get() - verify_request_count(test_id, "GET", "/guardian/settings", None, 1) - - -def test_guardian_set_() -> None: - """Test set endpoint with WireMock""" - test_id = "guardian.set_.0" - client = get_client(test_id) - client.guardian.set( - display_remember_me_checkbox=True, - remember_me_default_value=True, - mfa_session_inactivity_timeout=1, - mfa_session_overall_timeout=1, - ) - verify_request_count(test_id, "PUT", "/guardian/settings", None, 1) diff --git a/tests/wire/test_guardian_enrollments.py b/tests/wire/test_guardian_enrollments.py deleted file mode 100644 index 6c3f8cf4..00000000 --- a/tests/wire/test_guardian_enrollments.py +++ /dev/null @@ -1,31 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_guardian_enrollments_create_ticket() -> None: - """Test createTicket endpoint with WireMock""" - test_id = "guardian.enrollments.create_ticket.0" - client = get_client(test_id) - client.guardian.enrollments.create_ticket( - user_id="user_id", - ) - verify_request_count(test_id, "POST", "/guardian/enrollments/ticket", None, 1) - - -def test_guardian_enrollments_get() -> None: - """Test get endpoint with WireMock""" - test_id = "guardian.enrollments.get.0" - client = get_client(test_id) - client.guardian.enrollments.get( - id="id", - ) - verify_request_count(test_id, "GET", "/guardian/enrollments/id", None, 1) - - -def test_guardian_enrollments_delete() -> None: - """Test delete endpoint with WireMock""" - test_id = "guardian.enrollments.delete.0" - client = get_client(test_id) - client.guardian.enrollments.delete( - id="id", - ) - verify_request_count(test_id, "DELETE", "/guardian/enrollments/id", None, 1) diff --git a/tests/wire/test_guardian_factors.py b/tests/wire/test_guardian_factors.py deleted file mode 100644 index 743163dd..00000000 --- a/tests/wire/test_guardian_factors.py +++ /dev/null @@ -1,20 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_guardian_factors_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "guardian.factors.list_.0" - client = get_client(test_id) - client.guardian.factors.list() - verify_request_count(test_id, "GET", "/guardian/factors", None, 1) - - -def test_guardian_factors_set_() -> None: - """Test set endpoint with WireMock""" - test_id = "guardian.factors.set_.0" - client = get_client(test_id) - client.guardian.factors.set( - name="push-notification", - enabled=True, - ) - verify_request_count(test_id, "PUT", "/guardian/factors/push-notification", None, 1) diff --git a/tests/wire/test_guardian_factors_duo_settings.py b/tests/wire/test_guardian_factors_duo_settings.py deleted file mode 100644 index 518e1d67..00000000 --- a/tests/wire/test_guardian_factors_duo_settings.py +++ /dev/null @@ -1,25 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_guardian_factors_duo_settings_get() -> None: - """Test get endpoint with WireMock""" - test_id = "guardian.factors.duo.settings.get.0" - client = get_client(test_id) - client.guardian.factors.duo.settings.get() - verify_request_count(test_id, "GET", "/guardian/factors/duo/settings", None, 1) - - -def test_guardian_factors_duo_settings_set_() -> None: - """Test set endpoint with WireMock""" - test_id = "guardian.factors.duo.settings.set_.0" - client = get_client(test_id) - client.guardian.factors.duo.settings.set() - verify_request_count(test_id, "PUT", "/guardian/factors/duo/settings", None, 1) - - -def test_guardian_factors_duo_settings_update() -> None: - """Test update endpoint with WireMock""" - test_id = "guardian.factors.duo.settings.update.0" - client = get_client(test_id) - client.guardian.factors.duo.settings.update() - verify_request_count(test_id, "PATCH", "/guardian/factors/duo/settings", None, 1) diff --git a/tests/wire/test_guardian_factors_email.py b/tests/wire/test_guardian_factors_email.py deleted file mode 100644 index b20a9d02..00000000 --- a/tests/wire/test_guardian_factors_email.py +++ /dev/null @@ -1,20 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_guardian_factors_email_get() -> None: - """Test get endpoint with WireMock""" - test_id = "guardian.factors.email.get.0" - client = get_client(test_id) - client.guardian.factors.email.get() - verify_request_count(test_id, "GET", "/guardian/factors/email/settings", None, 1) - - -def test_guardian_factors_email_set_() -> None: - """Test set endpoint with WireMock""" - test_id = "guardian.factors.email.set_.0" - client = get_client(test_id) - client.guardian.factors.email.set( - otp_length=1, - otp_expiration_time=1, - ) - verify_request_count(test_id, "PUT", "/guardian/factors/email/settings", None, 1) diff --git a/tests/wire/test_guardian_factors_phone.py b/tests/wire/test_guardian_factors_phone.py deleted file mode 100644 index f3d766f5..00000000 --- a/tests/wire/test_guardian_factors_phone.py +++ /dev/null @@ -1,91 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_guardian_factors_phone_get_message_types() -> None: - """Test getMessageTypes endpoint with WireMock""" - test_id = "guardian.factors.phone.get_message_types.0" - client = get_client(test_id) - client.guardian.factors.phone.get_message_types() - verify_request_count(test_id, "GET", "/guardian/factors/phone/message-types", None, 1) - - -def test_guardian_factors_phone_set_message_types() -> None: - """Test setMessageTypes endpoint with WireMock""" - test_id = "guardian.factors.phone.set_message_types.0" - client = get_client(test_id) - client.guardian.factors.phone.set_message_types( - message_types=["sms"], - ) - verify_request_count(test_id, "PUT", "/guardian/factors/phone/message-types", None, 1) - - -def test_guardian_factors_phone_get_twilio_provider() -> None: - """Test getTwilioProvider endpoint with WireMock""" - test_id = "guardian.factors.phone.get_twilio_provider.0" - client = get_client(test_id) - client.guardian.factors.phone.get_twilio_provider() - verify_request_count(test_id, "GET", "/guardian/factors/phone/providers/twilio", None, 1) - - -def test_guardian_factors_phone_set_twilio_provider() -> None: - """Test setTwilioProvider endpoint with WireMock""" - test_id = "guardian.factors.phone.set_twilio_provider.0" - client = get_client(test_id) - client.guardian.factors.phone.set_twilio_provider() - verify_request_count(test_id, "PUT", "/guardian/factors/phone/providers/twilio", None, 1) - - -def test_guardian_factors_phone_get_selected_provider() -> None: - """Test getSelectedProvider endpoint with WireMock""" - test_id = "guardian.factors.phone.get_selected_provider.0" - client = get_client(test_id) - client.guardian.factors.phone.get_selected_provider() - verify_request_count(test_id, "GET", "/guardian/factors/phone/selected-provider", None, 1) - - -def test_guardian_factors_phone_set_provider() -> None: - """Test setProvider endpoint with WireMock""" - test_id = "guardian.factors.phone.set_provider.0" - client = get_client(test_id) - client.guardian.factors.phone.set_provider( - provider="auth0", - ) - verify_request_count(test_id, "PUT", "/guardian/factors/phone/selected-provider", None, 1) - - -def test_guardian_factors_phone_get() -> None: - """Test get endpoint with WireMock""" - test_id = "guardian.factors.phone.get.0" - client = get_client(test_id) - client.guardian.factors.phone.get() - verify_request_count(test_id, "GET", "/guardian/factors/phone/settings", None, 1) - - -def test_guardian_factors_phone_set_() -> None: - """Test set endpoint with WireMock""" - test_id = "guardian.factors.phone.set_.0" - client = get_client(test_id) - client.guardian.factors.phone.set( - otp_length=1, - otp_expiration_time=1, - ) - verify_request_count(test_id, "PUT", "/guardian/factors/phone/settings", None, 1) - - -def test_guardian_factors_phone_get_templates() -> None: - """Test getTemplates endpoint with WireMock""" - test_id = "guardian.factors.phone.get_templates.0" - client = get_client(test_id) - client.guardian.factors.phone.get_templates() - verify_request_count(test_id, "GET", "/guardian/factors/phone/templates", None, 1) - - -def test_guardian_factors_phone_set_templates() -> None: - """Test setTemplates endpoint with WireMock""" - test_id = "guardian.factors.phone.set_templates.0" - client = get_client(test_id) - client.guardian.factors.phone.set_templates( - enrollment_message="enrollment_message", - verification_message="verification_message", - ) - verify_request_count(test_id, "PUT", "/guardian/factors/phone/templates", None, 1) diff --git a/tests/wire/test_guardian_factors_pushNotification.py b/tests/wire/test_guardian_factors_pushNotification.py deleted file mode 100644 index ff661d6d..00000000 --- a/tests/wire/test_guardian_factors_pushNotification.py +++ /dev/null @@ -1,99 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_guardian_factors_pushNotification_get_apns_provider() -> None: - """Test getApnsProvider endpoint with WireMock""" - test_id = "guardian.factors.push_notification.get_apns_provider.0" - client = get_client(test_id) - client.guardian.factors.push_notification.get_apns_provider() - verify_request_count(test_id, "GET", "/guardian/factors/push-notification/providers/apns", None, 1) - - -def test_guardian_factors_pushNotification_set_apns_provider() -> None: - """Test setApnsProvider endpoint with WireMock""" - test_id = "guardian.factors.push_notification.set_apns_provider.0" - client = get_client(test_id) - client.guardian.factors.push_notification.set_apns_provider() - verify_request_count(test_id, "PUT", "/guardian/factors/push-notification/providers/apns", None, 1) - - -def test_guardian_factors_pushNotification_update_apns_provider() -> None: - """Test updateApnsProvider endpoint with WireMock""" - test_id = "guardian.factors.push_notification.update_apns_provider.0" - client = get_client(test_id) - client.guardian.factors.push_notification.update_apns_provider() - verify_request_count(test_id, "PATCH", "/guardian/factors/push-notification/providers/apns", None, 1) - - -def test_guardian_factors_pushNotification_set_fcm_provider() -> None: - """Test setFcmProvider endpoint with WireMock""" - test_id = "guardian.factors.push_notification.set_fcm_provider.0" - client = get_client(test_id) - client.guardian.factors.push_notification.set_fcm_provider() - verify_request_count(test_id, "PUT", "/guardian/factors/push-notification/providers/fcm", None, 1) - - -def test_guardian_factors_pushNotification_update_fcm_provider() -> None: - """Test updateFcmProvider endpoint with WireMock""" - test_id = "guardian.factors.push_notification.update_fcm_provider.0" - client = get_client(test_id) - client.guardian.factors.push_notification.update_fcm_provider() - verify_request_count(test_id, "PATCH", "/guardian/factors/push-notification/providers/fcm", None, 1) - - -def test_guardian_factors_pushNotification_set_fcmv_1_provider() -> None: - """Test setFcmv1Provider endpoint with WireMock""" - test_id = "guardian.factors.push_notification.set_fcmv_1_provider.0" - client = get_client(test_id) - client.guardian.factors.push_notification.set_fcmv_1_provider() - verify_request_count(test_id, "PUT", "/guardian/factors/push-notification/providers/fcmv1", None, 1) - - -def test_guardian_factors_pushNotification_update_fcmv_1_provider() -> None: - """Test updateFcmv1Provider endpoint with WireMock""" - test_id = "guardian.factors.push_notification.update_fcmv_1_provider.0" - client = get_client(test_id) - client.guardian.factors.push_notification.update_fcmv_1_provider() - verify_request_count(test_id, "PATCH", "/guardian/factors/push-notification/providers/fcmv1", None, 1) - - -def test_guardian_factors_pushNotification_get_sns_provider() -> None: - """Test getSnsProvider endpoint with WireMock""" - test_id = "guardian.factors.push_notification.get_sns_provider.0" - client = get_client(test_id) - client.guardian.factors.push_notification.get_sns_provider() - verify_request_count(test_id, "GET", "/guardian/factors/push-notification/providers/sns", None, 1) - - -def test_guardian_factors_pushNotification_set_sns_provider() -> None: - """Test setSnsProvider endpoint with WireMock""" - test_id = "guardian.factors.push_notification.set_sns_provider.0" - client = get_client(test_id) - client.guardian.factors.push_notification.set_sns_provider() - verify_request_count(test_id, "PUT", "/guardian/factors/push-notification/providers/sns", None, 1) - - -def test_guardian_factors_pushNotification_update_sns_provider() -> None: - """Test updateSnsProvider endpoint with WireMock""" - test_id = "guardian.factors.push_notification.update_sns_provider.0" - client = get_client(test_id) - client.guardian.factors.push_notification.update_sns_provider() - verify_request_count(test_id, "PATCH", "/guardian/factors/push-notification/providers/sns", None, 1) - - -def test_guardian_factors_pushNotification_get_selected_provider() -> None: - """Test getSelectedProvider endpoint with WireMock""" - test_id = "guardian.factors.push_notification.get_selected_provider.0" - client = get_client(test_id) - client.guardian.factors.push_notification.get_selected_provider() - verify_request_count(test_id, "GET", "/guardian/factors/push-notification/selected-provider", None, 1) - - -def test_guardian_factors_pushNotification_set_provider() -> None: - """Test setProvider endpoint with WireMock""" - test_id = "guardian.factors.push_notification.set_provider.0" - client = get_client(test_id) - client.guardian.factors.push_notification.set_provider( - provider="guardian", - ) - verify_request_count(test_id, "PUT", "/guardian/factors/push-notification/selected-provider", None, 1) diff --git a/tests/wire/test_guardian_factors_sms.py b/tests/wire/test_guardian_factors_sms.py deleted file mode 100644 index 235ba505..00000000 --- a/tests/wire/test_guardian_factors_sms.py +++ /dev/null @@ -1,54 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_guardian_factors_sms_get_twilio_provider() -> None: - """Test getTwilioProvider endpoint with WireMock""" - test_id = "guardian.factors.sms.get_twilio_provider.0" - client = get_client(test_id) - client.guardian.factors.sms.get_twilio_provider() - verify_request_count(test_id, "GET", "/guardian/factors/sms/providers/twilio", None, 1) - - -def test_guardian_factors_sms_set_twilio_provider() -> None: - """Test setTwilioProvider endpoint with WireMock""" - test_id = "guardian.factors.sms.set_twilio_provider.0" - client = get_client(test_id) - client.guardian.factors.sms.set_twilio_provider() - verify_request_count(test_id, "PUT", "/guardian/factors/sms/providers/twilio", None, 1) - - -def test_guardian_factors_sms_get_selected_provider() -> None: - """Test getSelectedProvider endpoint with WireMock""" - test_id = "guardian.factors.sms.get_selected_provider.0" - client = get_client(test_id) - client.guardian.factors.sms.get_selected_provider() - verify_request_count(test_id, "GET", "/guardian/factors/sms/selected-provider", None, 1) - - -def test_guardian_factors_sms_set_provider() -> None: - """Test setProvider endpoint with WireMock""" - test_id = "guardian.factors.sms.set_provider.0" - client = get_client(test_id) - client.guardian.factors.sms.set_provider( - provider="auth0", - ) - verify_request_count(test_id, "PUT", "/guardian/factors/sms/selected-provider", None, 1) - - -def test_guardian_factors_sms_get_templates() -> None: - """Test getTemplates endpoint with WireMock""" - test_id = "guardian.factors.sms.get_templates.0" - client = get_client(test_id) - client.guardian.factors.sms.get_templates() - verify_request_count(test_id, "GET", "/guardian/factors/sms/templates", None, 1) - - -def test_guardian_factors_sms_set_templates() -> None: - """Test setTemplates endpoint with WireMock""" - test_id = "guardian.factors.sms.set_templates.0" - client = get_client(test_id) - client.guardian.factors.sms.set_templates( - enrollment_message="enrollment_message", - verification_message="verification_message", - ) - verify_request_count(test_id, "PUT", "/guardian/factors/sms/templates", None, 1) diff --git a/tests/wire/test_guardian_policies.py b/tests/wire/test_guardian_policies.py deleted file mode 100644 index e26796a6..00000000 --- a/tests/wire/test_guardian_policies.py +++ /dev/null @@ -1,19 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_guardian_policies_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "guardian.policies.list_.0" - client = get_client(test_id) - client.guardian.policies.list() - verify_request_count(test_id, "GET", "/guardian/policies", None, 1) - - -def test_guardian_policies_set_() -> None: - """Test set endpoint with WireMock""" - test_id = "guardian.policies.set_.0" - client = get_client(test_id) - client.guardian.policies.set( - request=["all-applications"], - ) - verify_request_count(test_id, "PUT", "/guardian/policies", None, 1) diff --git a/tests/wire/test_hooks.py b/tests/wire/test_hooks.py deleted file mode 100644 index 796e681b..00000000 --- a/tests/wire/test_hooks.py +++ /dev/null @@ -1,72 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_hooks_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "hooks.list_.0" - client = get_client(test_id) - client.hooks.list( - page=1, - per_page=1, - include_totals=True, - enabled=True, - fields="fields", - trigger_id="credentials-exchange", - ) - verify_request_count( - test_id, - "GET", - "/hooks", - { - "page": "1", - "per_page": "1", - "include_totals": "true", - "enabled": "true", - "fields": "fields", - "triggerId": "credentials-exchange", - }, - 1, - ) - - -def test_hooks_create() -> None: - """Test create endpoint with WireMock""" - test_id = "hooks.create.0" - client = get_client(test_id) - client.hooks.create( - name="name", - script="script", - trigger_id="credentials-exchange", - ) - verify_request_count(test_id, "POST", "/hooks", None, 1) - - -def test_hooks_get() -> None: - """Test get endpoint with WireMock""" - test_id = "hooks.get.0" - client = get_client(test_id) - client.hooks.get( - id="id", - fields="fields", - ) - verify_request_count(test_id, "GET", "/hooks/id", {"fields": "fields"}, 1) - - -def test_hooks_delete() -> None: - """Test delete endpoint with WireMock""" - test_id = "hooks.delete.0" - client = get_client(test_id) - client.hooks.delete( - id="id", - ) - verify_request_count(test_id, "DELETE", "/hooks/id", None, 1) - - -def test_hooks_update() -> None: - """Test update endpoint with WireMock""" - test_id = "hooks.update.0" - client = get_client(test_id) - client.hooks.update( - id="id", - ) - verify_request_count(test_id, "PATCH", "/hooks/id", None, 1) diff --git a/tests/wire/test_hooks_secrets.py b/tests/wire/test_hooks_secrets.py deleted file mode 100644 index be31618c..00000000 --- a/tests/wire/test_hooks_secrets.py +++ /dev/null @@ -1,44 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_hooks_secrets_get() -> None: - """Test get endpoint with WireMock""" - test_id = "hooks.secrets.get.0" - client = get_client(test_id) - client.hooks.secrets.get( - id="id", - ) - verify_request_count(test_id, "GET", "/hooks/id/secrets", None, 1) - - -def test_hooks_secrets_create() -> None: - """Test create endpoint with WireMock""" - test_id = "hooks.secrets.create.0" - client = get_client(test_id) - client.hooks.secrets.create( - id="id", - request={"key": "value"}, - ) - verify_request_count(test_id, "POST", "/hooks/id/secrets", None, 1) - - -def test_hooks_secrets_delete() -> None: - """Test delete endpoint with WireMock""" - test_id = "hooks.secrets.delete.0" - client = get_client(test_id) - client.hooks.secrets.delete( - id="id", - request=["string"], - ) - verify_request_count(test_id, "DELETE", "/hooks/id/secrets", None, 1) - - -def test_hooks_secrets_update() -> None: - """Test update endpoint with WireMock""" - test_id = "hooks.secrets.update.0" - client = get_client(test_id) - client.hooks.secrets.update( - id="id", - request={"key": "value"}, - ) - verify_request_count(test_id, "PATCH", "/hooks/id/secrets", None, 1) diff --git a/tests/wire/test_jobs.py b/tests/wire/test_jobs.py deleted file mode 100644 index bf57aaf7..00000000 --- a/tests/wire/test_jobs.py +++ /dev/null @@ -1,11 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_jobs_get() -> None: - """Test get endpoint with WireMock""" - test_id = "jobs.get.0" - client = get_client(test_id) - client.jobs.get( - id="id", - ) - verify_request_count(test_id, "GET", "/jobs/id", None, 1) diff --git a/tests/wire/test_jobs_errors.py b/tests/wire/test_jobs_errors.py deleted file mode 100644 index 5a990994..00000000 --- a/tests/wire/test_jobs_errors.py +++ /dev/null @@ -1,11 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_jobs_errors_get() -> None: - """Test get endpoint with WireMock""" - test_id = "jobs.errors.get.0" - client = get_client(test_id) - client.jobs.errors.get( - id="id", - ) - verify_request_count(test_id, "GET", "/jobs/id/errors", None, 1) diff --git a/tests/wire/test_jobs_usersExports.py b/tests/wire/test_jobs_usersExports.py deleted file mode 100644 index 1861d556..00000000 --- a/tests/wire/test_jobs_usersExports.py +++ /dev/null @@ -1,9 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_jobs_usersExports_create() -> None: - """Test create endpoint with WireMock""" - test_id = "jobs.users_exports.create.0" - client = get_client(test_id) - client.jobs.users_exports.create() - verify_request_count(test_id, "POST", "/jobs/users-exports", None, 1) diff --git a/tests/wire/test_jobs_usersImports.py b/tests/wire/test_jobs_usersImports.py deleted file mode 100644 index 2c944805..00000000 --- a/tests/wire/test_jobs_usersImports.py +++ /dev/null @@ -1,12 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_jobs_usersImports_create() -> None: - """Test create endpoint with WireMock""" - test_id = "jobs.users_imports.create.0" - client = get_client(test_id) - client.jobs.users_imports.create( - users="example_users", - connection_id="connection_id", - ) - verify_request_count(test_id, "POST", "/jobs/users-imports", None, 1) diff --git a/tests/wire/test_jobs_verificationEmail.py b/tests/wire/test_jobs_verificationEmail.py deleted file mode 100644 index fbe2549d..00000000 --- a/tests/wire/test_jobs_verificationEmail.py +++ /dev/null @@ -1,11 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_jobs_verificationEmail_create() -> None: - """Test create endpoint with WireMock""" - test_id = "jobs.verification_email.create.0" - client = get_client(test_id) - client.jobs.verification_email.create( - user_id="user_id", - ) - verify_request_count(test_id, "POST", "/jobs/verification-email", None, 1) diff --git a/tests/wire/test_keys_customSigning.py b/tests/wire/test_keys_customSigning.py deleted file mode 100644 index e4c8e15e..00000000 --- a/tests/wire/test_keys_customSigning.py +++ /dev/null @@ -1,33 +0,0 @@ -from .conftest import get_client, verify_request_count - -from auth0.management import CustomSigningKeyJwk - - -def test_keys_customSigning_get() -> None: - """Test get endpoint with WireMock""" - test_id = "keys.custom_signing.get.0" - client = get_client(test_id) - client.keys.custom_signing.get() - verify_request_count(test_id, "GET", "/keys/custom-signing", None, 1) - - -def test_keys_customSigning_set_() -> None: - """Test set endpoint with WireMock""" - test_id = "keys.custom_signing.set_.0" - client = get_client(test_id) - client.keys.custom_signing.set( - keys=[ - CustomSigningKeyJwk( - kty="EC", - ) - ], - ) - verify_request_count(test_id, "PUT", "/keys/custom-signing", None, 1) - - -def test_keys_customSigning_delete() -> None: - """Test delete endpoint with WireMock""" - test_id = "keys.custom_signing.delete.0" - client = get_client(test_id) - client.keys.custom_signing.delete() - verify_request_count(test_id, "DELETE", "/keys/custom-signing", None, 1) diff --git a/tests/wire/test_keys_encryption.py b/tests/wire/test_keys_encryption.py deleted file mode 100644 index a165bb3f..00000000 --- a/tests/wire/test_keys_encryption.py +++ /dev/null @@ -1,74 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_keys_encryption_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "keys.encryption.list_.0" - client = get_client(test_id) - client.keys.encryption.list( - page=1, - per_page=1, - include_totals=True, - ) - verify_request_count( - test_id, "GET", "/keys/encryption", {"page": "1", "per_page": "1", "include_totals": "true"}, 1 - ) - - -def test_keys_encryption_create() -> None: - """Test create endpoint with WireMock""" - test_id = "keys.encryption.create.0" - client = get_client(test_id) - client.keys.encryption.create( - type="customer-provided-root-key", - ) - verify_request_count(test_id, "POST", "/keys/encryption", None, 1) - - -def test_keys_encryption_rekey() -> None: - """Test rekey endpoint with WireMock""" - test_id = "keys.encryption.rekey.0" - client = get_client(test_id) - client.keys.encryption.rekey() - verify_request_count(test_id, "POST", "/keys/encryption/rekey", None, 1) - - -def test_keys_encryption_get() -> None: - """Test get endpoint with WireMock""" - test_id = "keys.encryption.get.0" - client = get_client(test_id) - client.keys.encryption.get( - kid="kid", - ) - verify_request_count(test_id, "GET", "/keys/encryption/kid", None, 1) - - -def test_keys_encryption_import_() -> None: - """Test import endpoint with WireMock""" - test_id = "keys.encryption.import_.0" - client = get_client(test_id) - client.keys.encryption.import_( - kid="kid", - wrapped_key="wrapped_key", - ) - verify_request_count(test_id, "POST", "/keys/encryption/kid", None, 1) - - -def test_keys_encryption_delete() -> None: - """Test delete endpoint with WireMock""" - test_id = "keys.encryption.delete.0" - client = get_client(test_id) - client.keys.encryption.delete( - kid="kid", - ) - verify_request_count(test_id, "DELETE", "/keys/encryption/kid", None, 1) - - -def test_keys_encryption_create_public_wrapping_key() -> None: - """Test createPublicWrappingKey endpoint with WireMock""" - test_id = "keys.encryption.create_public_wrapping_key.0" - client = get_client(test_id) - client.keys.encryption.create_public_wrapping_key( - kid="kid", - ) - verify_request_count(test_id, "POST", "/keys/encryption/kid/wrapping-key", None, 1) diff --git a/tests/wire/test_keys_networkAcls.py b/tests/wire/test_keys_networkAcls.py deleted file mode 100644 index 3aae06a0..00000000 --- a/tests/wire/test_keys_networkAcls.py +++ /dev/null @@ -1,41 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_keys_networkAcls_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "keys.network_acls.list_.0" - client = get_client(test_id) - client.keys.network_acls.list() - verify_request_count(test_id, "GET", "/keys/network-acls", None, 1) - - -def test_keys_networkAcls_create() -> None: - """Test create endpoint with WireMock""" - test_id = "keys.network_acls.create.0" - client = get_client(test_id) - client.keys.network_acls.create( - name="name", - alg="hmac-sha256", - value="value", - ) - verify_request_count(test_id, "POST", "/keys/network-acls", None, 1) - - -def test_keys_networkAcls_get() -> None: - """Test get endpoint with WireMock""" - test_id = "keys.network_acls.get.0" - client = get_client(test_id) - client.keys.network_acls.get( - id="id", - ) - verify_request_count(test_id, "GET", "/keys/network-acls/id", None, 1) - - -def test_keys_networkAcls_delete() -> None: - """Test delete endpoint with WireMock""" - test_id = "keys.network_acls.delete.0" - client = get_client(test_id) - client.keys.network_acls.delete( - id="id", - ) - verify_request_count(test_id, "DELETE", "/keys/network-acls/id", None, 1) diff --git a/tests/wire/test_keys_signing.py b/tests/wire/test_keys_signing.py deleted file mode 100644 index df08005c..00000000 --- a/tests/wire/test_keys_signing.py +++ /dev/null @@ -1,37 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_keys_signing_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "keys.signing.list_.0" - client = get_client(test_id) - client.keys.signing.list() - verify_request_count(test_id, "GET", "/keys/signing", None, 1) - - -def test_keys_signing_rotate() -> None: - """Test rotate endpoint with WireMock""" - test_id = "keys.signing.rotate.0" - client = get_client(test_id) - client.keys.signing.rotate() - verify_request_count(test_id, "POST", "/keys/signing/rotate", None, 1) - - -def test_keys_signing_get() -> None: - """Test get endpoint with WireMock""" - test_id = "keys.signing.get.0" - client = get_client(test_id) - client.keys.signing.get( - kid="kid", - ) - verify_request_count(test_id, "GET", "/keys/signing/kid", None, 1) - - -def test_keys_signing_revoke() -> None: - """Test revoke endpoint with WireMock""" - test_id = "keys.signing.revoke.0" - client = get_client(test_id) - client.keys.signing.revoke( - kid="kid", - ) - verify_request_count(test_id, "PUT", "/keys/signing/kid/revoke", None, 1) diff --git a/tests/wire/test_logStreams.py b/tests/wire/test_logStreams.py deleted file mode 100644 index 533297f7..00000000 --- a/tests/wire/test_logStreams.py +++ /dev/null @@ -1,56 +0,0 @@ -from .conftest import get_client, verify_request_count - -from auth0.management import CreateLogStreamHttpRequestBody, LogStreamHttpSink - - -def test_logStreams_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "log_streams.list_.0" - client = get_client(test_id) - client.log_streams.list() - verify_request_count(test_id, "GET", "/log-streams", None, 1) - - -def test_logStreams_create() -> None: - """Test create endpoint with WireMock""" - test_id = "log_streams.create.0" - client = get_client(test_id) - client.log_streams.create( - request=CreateLogStreamHttpRequestBody( - type="http", - sink=LogStreamHttpSink( - http_endpoint="httpEndpoint", - ), - ), - ) - verify_request_count(test_id, "POST", "/log-streams", None, 1) - - -def test_logStreams_get() -> None: - """Test get endpoint with WireMock""" - test_id = "log_streams.get.0" - client = get_client(test_id) - client.log_streams.get( - id="id", - ) - verify_request_count(test_id, "GET", "/log-streams/id", None, 1) - - -def test_logStreams_delete() -> None: - """Test delete endpoint with WireMock""" - test_id = "log_streams.delete.0" - client = get_client(test_id) - client.log_streams.delete( - id="id", - ) - verify_request_count(test_id, "DELETE", "/log-streams/id", None, 1) - - -def test_logStreams_update() -> None: - """Test update endpoint with WireMock""" - test_id = "log_streams.update.0" - client = get_client(test_id) - client.log_streams.update( - id="id", - ) - verify_request_count(test_id, "PATCH", "/log-streams/id", None, 1) diff --git a/tests/wire/test_logs.py b/tests/wire/test_logs.py deleted file mode 100644 index 7567de69..00000000 --- a/tests/wire/test_logs.py +++ /dev/null @@ -1,41 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_logs_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "logs.list_.0" - client = get_client(test_id) - client.logs.list( - page=1, - per_page=1, - sort="sort", - fields="fields", - include_fields=True, - include_totals=True, - search="search", - ) - verify_request_count( - test_id, - "GET", - "/logs", - { - "page": "1", - "per_page": "1", - "sort": "sort", - "fields": "fields", - "include_fields": "true", - "include_totals": "true", - "search": "search", - }, - 1, - ) - - -def test_logs_get() -> None: - """Test get endpoint with WireMock""" - test_id = "logs.get.0" - client = get_client(test_id) - client.logs.get( - id="id", - ) - verify_request_count(test_id, "GET", "/logs/id", None, 1) diff --git a/tests/wire/test_networkAcls.py b/tests/wire/test_networkAcls.py deleted file mode 100644 index 1181a8e3..00000000 --- a/tests/wire/test_networkAcls.py +++ /dev/null @@ -1,76 +0,0 @@ -from .conftest import get_client, verify_request_count - -from auth0.management import NetworkAclAction, NetworkAclRule - - -def test_networkAcls_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "network_acls.list_.0" - client = get_client(test_id) - client.network_acls.list( - page=1, - per_page=1, - include_totals=True, - ) - verify_request_count(test_id, "GET", "/network-acls", {"page": "1", "per_page": "1", "include_totals": "true"}, 1) - - -def test_networkAcls_create() -> None: - """Test create endpoint with WireMock""" - test_id = "network_acls.create.0" - client = get_client(test_id) - client.network_acls.create( - description="description", - active=True, - rule=NetworkAclRule( - action=NetworkAclAction(), - scope="management", - ), - ) - verify_request_count(test_id, "POST", "/network-acls", None, 1) - - -def test_networkAcls_get() -> None: - """Test get endpoint with WireMock""" - test_id = "network_acls.get.0" - client = get_client(test_id) - client.network_acls.get( - id="id", - ) - verify_request_count(test_id, "GET", "/network-acls/id", None, 1) - - -def test_networkAcls_set_() -> None: - """Test set endpoint with WireMock""" - test_id = "network_acls.set_.0" - client = get_client(test_id) - client.network_acls.set( - id="id", - description="description", - active=True, - rule=NetworkAclRule( - action=NetworkAclAction(), - scope="management", - ), - ) - verify_request_count(test_id, "PUT", "/network-acls/id", None, 1) - - -def test_networkAcls_delete() -> None: - """Test delete endpoint with WireMock""" - test_id = "network_acls.delete.0" - client = get_client(test_id) - client.network_acls.delete( - id="id", - ) - verify_request_count(test_id, "DELETE", "/network-acls/id", None, 1) - - -def test_networkAcls_update() -> None: - """Test update endpoint with WireMock""" - test_id = "network_acls.update.0" - client = get_client(test_id) - client.network_acls.update( - id="id", - ) - verify_request_count(test_id, "PATCH", "/network-acls/id", None, 1) diff --git a/tests/wire/test_organizations.py b/tests/wire/test_organizations.py deleted file mode 100644 index 81ef6a15..00000000 --- a/tests/wire/test_organizations.py +++ /dev/null @@ -1,97 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_organizations_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "organizations.list_.0" - client = get_client(test_id) - client.organizations.list( - include_totals=True, - from_="from", - take=1, - sort="sort", - include_client_association_for="include_client_association_for", - ) - verify_request_count( - test_id, - "GET", - "/organizations", - { - "include_totals": "true", - "from": "from", - "take": "1", - "sort": "sort", - "include_client_association_for": "include_client_association_for", - }, - 1, - ) - - -def test_organizations_create() -> None: - """Test create endpoint with WireMock""" - test_id = "organizations.create.0" - client = get_client(test_id) - client.organizations.create( - name="name", - ) - verify_request_count(test_id, "POST", "/organizations", None, 1) - - -def test_organizations_get_by_name() -> None: - """Test getByName endpoint with WireMock""" - test_id = "organizations.get_by_name.0" - client = get_client(test_id) - client.organizations.get_by_name( - name="name", - ) - verify_request_count(test_id, "GET", "/organizations/name/name", None, 1) - - -def test_organizations_search() -> None: - """Test search endpoint with WireMock""" - test_id = "organizations.search.0" - client = get_client(test_id) - client.organizations.search( - q="q", - parser="scim", - take=1, - from_="from", - sort="name", - ) - verify_request_count( - test_id, - "GET", - "/organizations/search", - {"q": "q", "parser": "scim", "take": "1", "from": "from", "sort": "name"}, - 1, - ) - - -def test_organizations_get() -> None: - """Test get endpoint with WireMock""" - test_id = "organizations.get.0" - client = get_client(test_id) - client.organizations.get( - id="id", - ) - verify_request_count(test_id, "GET", "/organizations/id", None, 1) - - -def test_organizations_delete() -> None: - """Test delete endpoint with WireMock""" - test_id = "organizations.delete.0" - client = get_client(test_id) - client.organizations.delete( - id="id", - ) - verify_request_count(test_id, "DELETE", "/organizations/id", None, 1) - - -def test_organizations_update() -> None: - """Test update endpoint with WireMock""" - test_id = "organizations.update.0" - client = get_client(test_id) - client.organizations.update( - id="id", - ) - verify_request_count(test_id, "PATCH", "/organizations/id", None, 1) diff --git a/tests/wire/test_organizations_clientGrants.py b/tests/wire/test_organizations_clientGrants.py deleted file mode 100644 index a8a2138d..00000000 --- a/tests/wire/test_organizations_clientGrants.py +++ /dev/null @@ -1,52 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_organizations_clientGrants_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "organizations.client_grants.list_.0" - client = get_client(test_id) - client.organizations.client_grants.list( - id="id", - audience="audience", - client_id="client_id", - grant_ids=["grant_ids"], - page=1, - per_page=1, - include_totals=True, - ) - verify_request_count( - test_id, - "GET", - "/organizations/id/client-grants", - { - "audience": "audience", - "client_id": "client_id", - "grant_ids": "grant_ids", - "page": "1", - "per_page": "1", - "include_totals": "true", - }, - 1, - ) - - -def test_organizations_clientGrants_create() -> None: - """Test create endpoint with WireMock""" - test_id = "organizations.client_grants.create.0" - client = get_client(test_id) - client.organizations.client_grants.create( - id="id", - grant_id="grant_id", - ) - verify_request_count(test_id, "POST", "/organizations/id/client-grants", None, 1) - - -def test_organizations_clientGrants_delete() -> None: - """Test delete endpoint with WireMock""" - test_id = "organizations.client_grants.delete.0" - client = get_client(test_id) - client.organizations.client_grants.delete( - id="id", - grant_id="grant_id", - ) - verify_request_count(test_id, "DELETE", "/organizations/id/client-grants/grant_id", None, 1) diff --git a/tests/wire/test_organizations_clients.py b/tests/wire/test_organizations_clients.py deleted file mode 100644 index 13ed30cd..00000000 --- a/tests/wire/test_organizations_clients.py +++ /dev/null @@ -1,64 +0,0 @@ -from .conftest import get_client, verify_request_count - -from auth0.management import CreateOrganizationClientRequestItem - - -def test_organizations_clients_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "organizations.clients.list_.0" - client = get_client(test_id) - client.organizations.clients.list( - id="id", - from_="from", - take=1, - ) - verify_request_count(test_id, "GET", "/organizations/id/clients", {"from": "from", "take": "1"}, 1) - - -def test_organizations_clients_create() -> None: - """Test create endpoint with WireMock""" - test_id = "organizations.clients.create.0" - client = get_client(test_id) - client.organizations.clients.create( - id="id", - clients=[ - CreateOrganizationClientRequestItem( - client_id="client_id", - use_for_member_access=True, - ) - ], - ) - verify_request_count(test_id, "POST", "/organizations/id/clients", None, 1) - - -def test_organizations_clients_delete() -> None: - """Test delete endpoint with WireMock""" - test_id = "organizations.clients.delete.0" - client = get_client(test_id) - client.organizations.clients.delete( - id="id", - clients=["clients"], - ) - verify_request_count(test_id, "DELETE", "/organizations/id/clients", None, 1) - - -def test_organizations_clients_get() -> None: - """Test get endpoint with WireMock""" - test_id = "organizations.clients.get.0" - client = get_client(test_id) - client.organizations.clients.get( - id="id", - client_id="client_id", - ) - verify_request_count(test_id, "GET", "/organizations/id/clients/client_id", None, 1) - - -def test_organizations_clients_update() -> None: - """Test update endpoint with WireMock""" - test_id = "organizations.clients.update.0" - client = get_client(test_id) - client.organizations.clients.update( - id="id", - client_id="client_id", - ) - verify_request_count(test_id, "PATCH", "/organizations/id/clients/client_id", None, 1) diff --git a/tests/wire/test_organizations_connections.py b/tests/wire/test_organizations_connections.py deleted file mode 100644 index 7290af32..00000000 --- a/tests/wire/test_organizations_connections.py +++ /dev/null @@ -1,65 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_organizations_connections_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "organizations.connections.list_.0" - client = get_client(test_id) - client.organizations.connections.list( - id="id", - page=1, - per_page=1, - include_totals=True, - is_enabled=True, - ) - verify_request_count( - test_id, - "GET", - "/organizations/id/connections", - {"page": "1", "per_page": "1", "include_totals": "true", "is_enabled": "true"}, - 1, - ) - - -def test_organizations_connections_create() -> None: - """Test create endpoint with WireMock""" - test_id = "organizations.connections.create.0" - client = get_client(test_id) - client.organizations.connections.create( - id="id", - connection_id="connection_id", - ) - verify_request_count(test_id, "POST", "/organizations/id/connections", None, 1) - - -def test_organizations_connections_get() -> None: - """Test get endpoint with WireMock""" - test_id = "organizations.connections.get.0" - client = get_client(test_id) - client.organizations.connections.get( - id="id", - connection_id="connection_id", - ) - verify_request_count(test_id, "GET", "/organizations/id/connections/connection_id", None, 1) - - -def test_organizations_connections_delete() -> None: - """Test delete endpoint with WireMock""" - test_id = "organizations.connections.delete.0" - client = get_client(test_id) - client.organizations.connections.delete( - id="id", - connection_id="connection_id", - ) - verify_request_count(test_id, "DELETE", "/organizations/id/connections/connection_id", None, 1) - - -def test_organizations_connections_update() -> None: - """Test update endpoint with WireMock""" - test_id = "organizations.connections.update.0" - client = get_client(test_id) - client.organizations.connections.update( - id="id", - connection_id="connection_id", - ) - verify_request_count(test_id, "PATCH", "/organizations/id/connections/connection_id", None, 1) diff --git a/tests/wire/test_organizations_discoveryDomains.py b/tests/wire/test_organizations_discoveryDomains.py deleted file mode 100644 index be9bb52c..00000000 --- a/tests/wire/test_organizations_discoveryDomains.py +++ /dev/null @@ -1,68 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_organizations_discoveryDomains_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "organizations.discovery_domains.list_.0" - client = get_client(test_id) - client.organizations.discovery_domains.list( - id="id", - from_="from", - take=1, - ) - verify_request_count(test_id, "GET", "/organizations/id/discovery-domains", {"from": "from", "take": "1"}, 1) - - -def test_organizations_discoveryDomains_create() -> None: - """Test create endpoint with WireMock""" - test_id = "organizations.discovery_domains.create.0" - client = get_client(test_id) - client.organizations.discovery_domains.create( - id="id", - domain="domain", - ) - verify_request_count(test_id, "POST", "/organizations/id/discovery-domains", None, 1) - - -def test_organizations_discoveryDomains_get_by_name() -> None: - """Test getByName endpoint with WireMock""" - test_id = "organizations.discovery_domains.get_by_name.0" - client = get_client(test_id) - client.organizations.discovery_domains.get_by_name( - id="id", - discovery_domain="discovery_domain", - ) - verify_request_count(test_id, "GET", "/organizations/id/discovery-domains/name/discovery_domain", None, 1) - - -def test_organizations_discoveryDomains_get() -> None: - """Test get endpoint with WireMock""" - test_id = "organizations.discovery_domains.get.0" - client = get_client(test_id) - client.organizations.discovery_domains.get( - id="id", - discovery_domain_id="discovery_domain_id", - ) - verify_request_count(test_id, "GET", "/organizations/id/discovery-domains/discovery_domain_id", None, 1) - - -def test_organizations_discoveryDomains_delete() -> None: - """Test delete endpoint with WireMock""" - test_id = "organizations.discovery_domains.delete.0" - client = get_client(test_id) - client.organizations.discovery_domains.delete( - id="id", - discovery_domain_id="discovery_domain_id", - ) - verify_request_count(test_id, "DELETE", "/organizations/id/discovery-domains/discovery_domain_id", None, 1) - - -def test_organizations_discoveryDomains_update() -> None: - """Test update endpoint with WireMock""" - test_id = "organizations.discovery_domains.update.0" - client = get_client(test_id) - client.organizations.discovery_domains.update( - id="id", - discovery_domain_id="discovery_domain_id", - ) - verify_request_count(test_id, "PATCH", "/organizations/id/discovery-domains/discovery_domain_id", None, 1) diff --git a/tests/wire/test_organizations_enabledConnections.py b/tests/wire/test_organizations_enabledConnections.py deleted file mode 100644 index 29cbb1c8..00000000 --- a/tests/wire/test_organizations_enabledConnections.py +++ /dev/null @@ -1,64 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_organizations_enabledConnections_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "organizations.enabled_connections.list_.0" - client = get_client(test_id) - client.organizations.enabled_connections.list( - id="id", - page=1, - per_page=1, - include_totals=True, - ) - verify_request_count( - test_id, - "GET", - "/organizations/id/enabled_connections", - {"page": "1", "per_page": "1", "include_totals": "true"}, - 1, - ) - - -def test_organizations_enabledConnections_add() -> None: - """Test add endpoint with WireMock""" - test_id = "organizations.enabled_connections.add.0" - client = get_client(test_id) - client.organizations.enabled_connections.add( - id="id", - connection_id="connection_id", - ) - verify_request_count(test_id, "POST", "/organizations/id/enabled_connections", None, 1) - - -def test_organizations_enabledConnections_get() -> None: - """Test get endpoint with WireMock""" - test_id = "organizations.enabled_connections.get.0" - client = get_client(test_id) - client.organizations.enabled_connections.get( - id="id", - connection_id="connectionId", - ) - verify_request_count(test_id, "GET", "/organizations/id/enabled_connections/connectionId", None, 1) - - -def test_organizations_enabledConnections_delete() -> None: - """Test delete endpoint with WireMock""" - test_id = "organizations.enabled_connections.delete.0" - client = get_client(test_id) - client.organizations.enabled_connections.delete( - id="id", - connection_id="connectionId", - ) - verify_request_count(test_id, "DELETE", "/organizations/id/enabled_connections/connectionId", None, 1) - - -def test_organizations_enabledConnections_update() -> None: - """Test update endpoint with WireMock""" - test_id = "organizations.enabled_connections.update.0" - client = get_client(test_id) - client.organizations.enabled_connections.update( - id="id", - connection_id="connectionId", - ) - verify_request_count(test_id, "PATCH", "/organizations/id/enabled_connections/connectionId", None, 1) diff --git a/tests/wire/test_organizations_groups.py b/tests/wire/test_organizations_groups.py deleted file mode 100644 index 2929e974..00000000 --- a/tests/wire/test_organizations_groups.py +++ /dev/null @@ -1,13 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_organizations_groups_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "organizations.groups.list_.0" - client = get_client(test_id) - client.organizations.groups.list( - organization_id="organization_id", - from_="from", - take=1, - ) - verify_request_count(test_id, "GET", "/organizations/organization_id/groups", {"from": "from", "take": "1"}, 1) diff --git a/tests/wire/test_organizations_groups_roles.py b/tests/wire/test_organizations_groups_roles.py deleted file mode 100644 index e496c80f..00000000 --- a/tests/wire/test_organizations_groups_roles.py +++ /dev/null @@ -1,40 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_organizations_groups_roles_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "organizations.groups.roles.list_.0" - client = get_client(test_id) - client.organizations.groups.roles.list( - organization_id="organization_id", - group_id="group_id", - from_="from", - take=1, - ) - verify_request_count( - test_id, "GET", "/organizations/organization_id/groups/group_id/roles", {"from": "from", "take": "1"}, 1 - ) - - -def test_organizations_groups_roles_create() -> None: - """Test create endpoint with WireMock""" - test_id = "organizations.groups.roles.create.0" - client = get_client(test_id) - client.organizations.groups.roles.create( - organization_id="organization_id", - group_id="group_id", - roles=["roles"], - ) - verify_request_count(test_id, "POST", "/organizations/organization_id/groups/group_id/roles", None, 1) - - -def test_organizations_groups_roles_delete() -> None: - """Test delete endpoint with WireMock""" - test_id = "organizations.groups.roles.delete.0" - client = get_client(test_id) - client.organizations.groups.roles.delete( - organization_id="organization_id", - group_id="group_id", - roles=["roles"], - ) - verify_request_count(test_id, "DELETE", "/organizations/organization_id/groups/group_id/roles", None, 1) diff --git a/tests/wire/test_organizations_invitations.py b/tests/wire/test_organizations_invitations.py deleted file mode 100644 index c02fa1da..00000000 --- a/tests/wire/test_organizations_invitations.py +++ /dev/null @@ -1,75 +0,0 @@ -from .conftest import get_client, verify_request_count - -from auth0.management import OrganizationInvitationInvitee, OrganizationInvitationInviter - - -def test_organizations_invitations_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "organizations.invitations.list_.0" - client = get_client(test_id) - client.organizations.invitations.list( - id="id", - page=1, - per_page=1, - include_totals=True, - fields="fields", - include_fields=True, - sort="sort", - ) - verify_request_count( - test_id, - "GET", - "/organizations/id/invitations", - { - "page": "1", - "per_page": "1", - "include_totals": "true", - "fields": "fields", - "include_fields": "true", - "sort": "sort", - }, - 1, - ) - - -def test_organizations_invitations_create() -> None: - """Test create endpoint with WireMock""" - test_id = "organizations.invitations.create.0" - client = get_client(test_id) - client.organizations.invitations.create( - id="id", - inviter=OrganizationInvitationInviter( - name="name", - ), - invitee=OrganizationInvitationInvitee( - email="email", - ), - client_id="client_id", - ) - verify_request_count(test_id, "POST", "/organizations/id/invitations", None, 1) - - -def test_organizations_invitations_get() -> None: - """Test get endpoint with WireMock""" - test_id = "organizations.invitations.get.0" - client = get_client(test_id) - client.organizations.invitations.get( - id="id", - invitation_id="invitation_id", - fields="fields", - include_fields=True, - ) - verify_request_count( - test_id, "GET", "/organizations/id/invitations/invitation_id", {"fields": "fields", "include_fields": "true"}, 1 - ) - - -def test_organizations_invitations_delete() -> None: - """Test delete endpoint with WireMock""" - test_id = "organizations.invitations.delete.0" - client = get_client(test_id) - client.organizations.invitations.delete( - id="id", - invitation_id="invitation_id", - ) - verify_request_count(test_id, "DELETE", "/organizations/id/invitations/invitation_id", None, 1) diff --git a/tests/wire/test_organizations_members.py b/tests/wire/test_organizations_members.py deleted file mode 100644 index 622a77b2..00000000 --- a/tests/wire/test_organizations_members.py +++ /dev/null @@ -1,44 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_organizations_members_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "organizations.members.list_.0" - client = get_client(test_id) - client.organizations.members.list( - id="id", - include_totals=True, - from_="from", - take=1, - fields="fields", - include_fields=True, - ) - verify_request_count( - test_id, - "GET", - "/organizations/id/members", - {"include_totals": "true", "from": "from", "take": "1", "fields": "fields", "include_fields": "true"}, - 1, - ) - - -def test_organizations_members_create() -> None: - """Test create endpoint with WireMock""" - test_id = "organizations.members.create.0" - client = get_client(test_id) - client.organizations.members.create( - id="id", - members=["members"], - ) - verify_request_count(test_id, "POST", "/organizations/id/members", None, 1) - - -def test_organizations_members_delete() -> None: - """Test delete endpoint with WireMock""" - test_id = "organizations.members.delete.0" - client = get_client(test_id) - client.organizations.members.delete( - id="id", - members=["members"], - ) - verify_request_count(test_id, "DELETE", "/organizations/id/members", None, 1) diff --git a/tests/wire/test_organizations_members_effectiveRoles.py b/tests/wire/test_organizations_members_effectiveRoles.py deleted file mode 100644 index db9c8871..00000000 --- a/tests/wire/test_organizations_members_effectiveRoles.py +++ /dev/null @@ -1,16 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_organizations_members_effectiveRoles_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "organizations.members.effective_roles.list_.0" - client = get_client(test_id) - client.organizations.members.effective_roles.list( - id="id", - user_id="user_id", - from_="from", - take=1, - ) - verify_request_count( - test_id, "GET", "/organizations/id/members/user_id/effective-roles", {"from": "from", "take": "1"}, 1 - ) diff --git a/tests/wire/test_organizations_members_effectiveRoles_sources_groups.py b/tests/wire/test_organizations_members_effectiveRoles_sources_groups.py deleted file mode 100644 index 92c4fb71..00000000 --- a/tests/wire/test_organizations_members_effectiveRoles_sources_groups.py +++ /dev/null @@ -1,21 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_organizations_members_effectiveRoles_sources_groups_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "organizations.members.effective_roles.sources.groups.list_.0" - client = get_client(test_id) - client.organizations.members.effective_roles.sources.groups.list( - id="id", - user_id="user_id", - from_="from", - take=1, - role_id="role_id", - ) - verify_request_count( - test_id, - "GET", - "/organizations/id/members/user_id/effective-roles/sources/groups", - {"from": "from", "take": "1", "role_id": "role_id"}, - 1, - ) diff --git a/tests/wire/test_organizations_members_roles.py b/tests/wire/test_organizations_members_roles.py deleted file mode 100644 index 69e2da22..00000000 --- a/tests/wire/test_organizations_members_roles.py +++ /dev/null @@ -1,45 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_organizations_members_roles_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "organizations.members.roles.list_.0" - client = get_client(test_id) - client.organizations.members.roles.list( - id="id", - user_id="user_id", - page=1, - per_page=1, - include_totals=True, - ) - verify_request_count( - test_id, - "GET", - "/organizations/id/members/user_id/roles", - {"page": "1", "per_page": "1", "include_totals": "true"}, - 1, - ) - - -def test_organizations_members_roles_assign() -> None: - """Test assign endpoint with WireMock""" - test_id = "organizations.members.roles.assign.0" - client = get_client(test_id) - client.organizations.members.roles.assign( - id="id", - user_id="user_id", - roles=["roles"], - ) - verify_request_count(test_id, "POST", "/organizations/id/members/user_id/roles", None, 1) - - -def test_organizations_members_roles_delete() -> None: - """Test delete endpoint with WireMock""" - test_id = "organizations.members.roles.delete.0" - client = get_client(test_id) - client.organizations.members.roles.delete( - id="id", - user_id="user_id", - roles=["roles"], - ) - verify_request_count(test_id, "DELETE", "/organizations/id/members/user_id/roles", None, 1) diff --git a/tests/wire/test_organizations_roles_groups.py b/tests/wire/test_organizations_roles_groups.py deleted file mode 100644 index b461d7b8..00000000 --- a/tests/wire/test_organizations_roles_groups.py +++ /dev/null @@ -1,16 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_organizations_roles_groups_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "organizations.roles.groups.list_.0" - client = get_client(test_id) - client.organizations.roles.groups.list( - organization_id="organization_id", - role_id="role_id", - from_="from", - take=1, - ) - verify_request_count( - test_id, "GET", "/organizations/organization_id/roles/role_id/groups", {"from": "from", "take": "1"}, 1 - ) diff --git a/tests/wire/test_organizations_roles_members.py b/tests/wire/test_organizations_roles_members.py deleted file mode 100644 index 1f2e75d7..00000000 --- a/tests/wire/test_organizations_roles_members.py +++ /dev/null @@ -1,22 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_organizations_roles_members_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "organizations.roles.members.list_.0" - client = get_client(test_id) - client.organizations.roles.members.list( - id="id", - role_id="role_id", - from_="from", - take=1, - fields="fields", - include_fields=True, - ) - verify_request_count( - test_id, - "GET", - "/organizations/id/roles/role_id/members", - {"from": "from", "take": "1", "fields": "fields", "include_fields": "true"}, - 1, - ) diff --git a/tests/wire/test_portals.py b/tests/wire/test_portals.py deleted file mode 100644 index c77b25aa..00000000 --- a/tests/wire/test_portals.py +++ /dev/null @@ -1,57 +0,0 @@ -from .conftest import get_client, verify_request_count - -from auth0.management import PortalClientSecretPostRequest - - -def test_portals_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "portals.list_.0" - client = get_client(test_id) - client.portals.list() - verify_request_count(test_id, "GET", "/portals", None, 1) - - -def test_portals_create() -> None: - """Test create endpoint with WireMock""" - test_id = "portals.create.0" - client = get_client(test_id) - client.portals.create( - slug="slug", - name="name", - client=PortalClientSecretPostRequest( - token_endpoint_auth_method="client_secret_post", - client_id="client_id", - client_secret="client_secret", - ), - ) - verify_request_count(test_id, "POST", "/portals", None, 1) - - -def test_portals_get() -> None: - """Test get endpoint with WireMock""" - test_id = "portals.get.0" - client = get_client(test_id) - client.portals.get( - id="id", - ) - verify_request_count(test_id, "GET", "/portals/id", None, 1) - - -def test_portals_delete() -> None: - """Test delete endpoint with WireMock""" - test_id = "portals.delete.0" - client = get_client(test_id) - client.portals.delete( - id="id", - ) - verify_request_count(test_id, "DELETE", "/portals/id", None, 1) - - -def test_portals_update() -> None: - """Test update endpoint with WireMock""" - test_id = "portals.update.0" - client = get_client(test_id) - client.portals.update( - id="id", - ) - verify_request_count(test_id, "PATCH", "/portals/id", None, 1) diff --git a/tests/wire/test_prompts.py b/tests/wire/test_prompts.py deleted file mode 100644 index b11ab5e6..00000000 --- a/tests/wire/test_prompts.py +++ /dev/null @@ -1,17 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_prompts_get_settings() -> None: - """Test getSettings endpoint with WireMock""" - test_id = "prompts.get_settings.0" - client = get_client(test_id) - client.prompts.get_settings() - verify_request_count(test_id, "GET", "/prompts", None, 1) - - -def test_prompts_update_settings() -> None: - """Test updateSettings endpoint with WireMock""" - test_id = "prompts.update_settings.0" - client = get_client(test_id) - client.prompts.update_settings() - verify_request_count(test_id, "PATCH", "/prompts", None, 1) diff --git a/tests/wire/test_prompts_customText.py b/tests/wire/test_prompts_customText.py deleted file mode 100644 index 97a48a67..00000000 --- a/tests/wire/test_prompts_customText.py +++ /dev/null @@ -1,24 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_prompts_customText_get() -> None: - """Test get endpoint with WireMock""" - test_id = "prompts.custom_text.get.0" - client = get_client(test_id) - client.prompts.custom_text.get( - prompt="login", - language="am", - ) - verify_request_count(test_id, "GET", "/prompts/login/custom-text/am", None, 1) - - -def test_prompts_customText_set_() -> None: - """Test set endpoint with WireMock""" - test_id = "prompts.custom_text.set_.0" - client = get_client(test_id) - client.prompts.custom_text.set( - prompt="login", - language="am", - request={"key": "value"}, - ) - verify_request_count(test_id, "PUT", "/prompts/login/custom-text/am", None, 1) diff --git a/tests/wire/test_prompts_partials.py b/tests/wire/test_prompts_partials.py deleted file mode 100644 index 43fe6665..00000000 --- a/tests/wire/test_prompts_partials.py +++ /dev/null @@ -1,22 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_prompts_partials_get() -> None: - """Test get endpoint with WireMock""" - test_id = "prompts.partials.get.0" - client = get_client(test_id) - client.prompts.partials.get( - prompt="login", - ) - verify_request_count(test_id, "GET", "/prompts/login/partials", None, 1) - - -def test_prompts_partials_set_() -> None: - """Test set endpoint with WireMock""" - test_id = "prompts.partials.set_.0" - client = get_client(test_id) - client.prompts.partials.set( - prompt="login", - request={"key": "value"}, - ) - verify_request_count(test_id, "PUT", "/prompts/login/partials", None, 1) diff --git a/tests/wire/test_prompts_rendering.py b/tests/wire/test_prompts_rendering.py deleted file mode 100644 index 92915437..00000000 --- a/tests/wire/test_prompts_rendering.py +++ /dev/null @@ -1,72 +0,0 @@ -from .conftest import get_client, verify_request_count - -from auth0.management import AculConfigsItem - - -def test_prompts_rendering_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "prompts.rendering.list_.0" - client = get_client(test_id) - client.prompts.rendering.list( - fields="fields", - include_fields=True, - page=1, - per_page=1, - include_totals=True, - prompt="prompt", - screen="screen", - rendering_mode="advanced", - ) - verify_request_count( - test_id, - "GET", - "/prompts/rendering", - { - "fields": "fields", - "include_fields": "true", - "page": "1", - "per_page": "1", - "include_totals": "true", - "prompt": "prompt", - "screen": "screen", - "rendering_mode": "advanced", - }, - 1, - ) - - -def test_prompts_rendering_bulk_update() -> None: - """Test bulkUpdate endpoint with WireMock""" - test_id = "prompts.rendering.bulk_update.0" - client = get_client(test_id) - client.prompts.rendering.bulk_update( - configs=[ - AculConfigsItem( - prompt="login", - screen="login", - ) - ], - ) - verify_request_count(test_id, "PATCH", "/prompts/rendering", None, 1) - - -def test_prompts_rendering_get() -> None: - """Test get endpoint with WireMock""" - test_id = "prompts.rendering.get.0" - client = get_client(test_id) - client.prompts.rendering.get( - prompt="login", - screen="login", - ) - verify_request_count(test_id, "GET", "/prompts/login/screen/login/rendering", None, 1) - - -def test_prompts_rendering_update() -> None: - """Test update endpoint with WireMock""" - test_id = "prompts.rendering.update.0" - client = get_client(test_id) - client.prompts.rendering.update( - prompt="login", - screen="login", - ) - verify_request_count(test_id, "PATCH", "/prompts/login/screen/login/rendering", None, 1) diff --git a/tests/wire/test_rateLimitPolicies.py b/tests/wire/test_rateLimitPolicies.py deleted file mode 100644 index 702d9968..00000000 --- a/tests/wire/test_rateLimitPolicies.py +++ /dev/null @@ -1,77 +0,0 @@ -from .conftest import get_client, verify_request_count - -from auth0.management import PatchRateLimitPolicyConfigurationRequestContentZero, RateLimitPolicyConfigurationZero - - -def test_rateLimitPolicies_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "rate_limit_policies.list_.0" - client = get_client(test_id) - client.rate_limit_policies.list( - resource="oauth_authentication_api", - consumer="client", - consumer_selector="consumer_selector", - take=1, - from_="from", - ) - verify_request_count( - test_id, - "GET", - "/rate-limit-policies", - { - "resource": "oauth_authentication_api", - "consumer": "client", - "consumer_selector": "consumer_selector", - "take": "1", - "from": "from", - }, - 1, - ) - - -def test_rateLimitPolicies_create() -> None: - """Test create endpoint with WireMock""" - test_id = "rate_limit_policies.create.0" - client = get_client(test_id) - client.rate_limit_policies.create( - resource="oauth_authentication_api", - consumer="client", - consumer_selector="consumer_selector", - configuration=RateLimitPolicyConfigurationZero( - action="allow", - ), - ) - verify_request_count(test_id, "POST", "/rate-limit-policies", None, 1) - - -def test_rateLimitPolicies_get() -> None: - """Test get endpoint with WireMock""" - test_id = "rate_limit_policies.get.0" - client = get_client(test_id) - client.rate_limit_policies.get( - id="id", - ) - verify_request_count(test_id, "GET", "/rate-limit-policies/id", None, 1) - - -def test_rateLimitPolicies_delete() -> None: - """Test delete endpoint with WireMock""" - test_id = "rate_limit_policies.delete.0" - client = get_client(test_id) - client.rate_limit_policies.delete( - id="id", - ) - verify_request_count(test_id, "DELETE", "/rate-limit-policies/id", None, 1) - - -def test_rateLimitPolicies_update() -> None: - """Test update endpoint with WireMock""" - test_id = "rate_limit_policies.update.0" - client = get_client(test_id) - client.rate_limit_policies.update( - id="id", - configuration=PatchRateLimitPolicyConfigurationRequestContentZero( - action="allow", - ), - ) - verify_request_count(test_id, "PATCH", "/rate-limit-policies/id", None, 1) diff --git a/tests/wire/test_refreshTokens.py b/tests/wire/test_refreshTokens.py deleted file mode 100644 index 65f05491..00000000 --- a/tests/wire/test_refreshTokens.py +++ /dev/null @@ -1,67 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_refreshTokens_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "refresh_tokens.list_.0" - client = get_client(test_id) - client.refresh_tokens.list( - user_id="user_id", - client_id="client_id", - from_="from", - take=1, - fields="fields", - include_fields=True, - ) - verify_request_count( - test_id, - "GET", - "/refresh-tokens", - { - "user_id": "user_id", - "client_id": "client_id", - "from": "from", - "take": "1", - "fields": "fields", - "include_fields": "true", - }, - 1, - ) - - -def test_refreshTokens_revoke() -> None: - """Test revoke endpoint with WireMock""" - test_id = "refresh_tokens.revoke.0" - client = get_client(test_id) - client.refresh_tokens.revoke() - verify_request_count(test_id, "POST", "/refresh-tokens/revoke", None, 1) - - -def test_refreshTokens_get() -> None: - """Test get endpoint with WireMock""" - test_id = "refresh_tokens.get.0" - client = get_client(test_id) - client.refresh_tokens.get( - id="id", - ) - verify_request_count(test_id, "GET", "/refresh-tokens/id", None, 1) - - -def test_refreshTokens_delete() -> None: - """Test delete endpoint with WireMock""" - test_id = "refresh_tokens.delete.0" - client = get_client(test_id) - client.refresh_tokens.delete( - id="id", - ) - verify_request_count(test_id, "DELETE", "/refresh-tokens/id", None, 1) - - -def test_refreshTokens_update() -> None: - """Test update endpoint with WireMock""" - test_id = "refresh_tokens.update.0" - client = get_client(test_id) - client.refresh_tokens.update( - id="id", - ) - verify_request_count(test_id, "PATCH", "/refresh-tokens/id", None, 1) diff --git a/tests/wire/test_resourceServers.py b/tests/wire/test_resourceServers.py deleted file mode 100644 index c725e726..00000000 --- a/tests/wire/test_resourceServers.py +++ /dev/null @@ -1,98 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_resourceServers_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "resource_servers.list_.0" - client = get_client(test_id) - client.resource_servers.list( - identifiers=["identifiers"], - page=1, - per_page=1, - include_totals=True, - include_fields=True, - ) - verify_request_count( - test_id, - "GET", - "/resource-servers", - { - "identifiers": "identifiers", - "page": "1", - "per_page": "1", - "include_totals": "true", - "include_fields": "true", - }, - 1, - ) - - -def test_resourceServers_create() -> None: - """Test create endpoint with WireMock""" - test_id = "resource_servers.create.0" - client = get_client(test_id) - client.resource_servers.create( - identifier="identifier", - ) - verify_request_count(test_id, "POST", "/resource-servers", None, 1) - - -def test_resourceServers_search() -> None: - """Test search endpoint with WireMock""" - test_id = "resource_servers.search.0" - client = get_client(test_id) - client.resource_servers.search( - q="q", - parser="scim", - fields="fields", - include_fields=True, - take=1, - from_="from", - sort="identifier", - ) - verify_request_count( - test_id, - "GET", - "/resource-servers/search", - { - "q": "q", - "parser": "scim", - "fields": "fields", - "include_fields": "true", - "take": "1", - "from": "from", - "sort": "identifier", - }, - 1, - ) - - -def test_resourceServers_get() -> None: - """Test get endpoint with WireMock""" - test_id = "resource_servers.get.0" - client = get_client(test_id) - client.resource_servers.get( - id="id", - include_fields=True, - ) - verify_request_count(test_id, "GET", "/resource-servers/id", {"include_fields": "true"}, 1) - - -def test_resourceServers_delete() -> None: - """Test delete endpoint with WireMock""" - test_id = "resource_servers.delete.0" - client = get_client(test_id) - client.resource_servers.delete( - id="id", - ) - verify_request_count(test_id, "DELETE", "/resource-servers/id", None, 1) - - -def test_resourceServers_update() -> None: - """Test update endpoint with WireMock""" - test_id = "resource_servers.update.0" - client = get_client(test_id) - client.resource_servers.update( - id="id", - ) - verify_request_count(test_id, "PATCH", "/resource-servers/id", None, 1) diff --git a/tests/wire/test_riskAssessments_settings.py b/tests/wire/test_riskAssessments_settings.py deleted file mode 100644 index ba85006c..00000000 --- a/tests/wire/test_riskAssessments_settings.py +++ /dev/null @@ -1,19 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_riskAssessments_settings_get() -> None: - """Test get endpoint with WireMock""" - test_id = "risk_assessments.settings.get.0" - client = get_client(test_id) - client.risk_assessments.settings.get() - verify_request_count(test_id, "GET", "/risk-assessments/settings", None, 1) - - -def test_riskAssessments_settings_update() -> None: - """Test update endpoint with WireMock""" - test_id = "risk_assessments.settings.update.0" - client = get_client(test_id) - client.risk_assessments.settings.update( - enabled=True, - ) - verify_request_count(test_id, "PATCH", "/risk-assessments/settings", None, 1) diff --git a/tests/wire/test_riskAssessments_settings_newDevice.py b/tests/wire/test_riskAssessments_settings_newDevice.py deleted file mode 100644 index 4dbbaf66..00000000 --- a/tests/wire/test_riskAssessments_settings_newDevice.py +++ /dev/null @@ -1,19 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_riskAssessments_settings_newDevice_get() -> None: - """Test get endpoint with WireMock""" - test_id = "risk_assessments.settings.new_device.get.0" - client = get_client(test_id) - client.risk_assessments.settings.new_device.get() - verify_request_count(test_id, "GET", "/risk-assessments/settings/new-device", None, 1) - - -def test_riskAssessments_settings_newDevice_update() -> None: - """Test update endpoint with WireMock""" - test_id = "risk_assessments.settings.new_device.update.0" - client = get_client(test_id) - client.risk_assessments.settings.new_device.update( - remember_for=1, - ) - verify_request_count(test_id, "PATCH", "/risk-assessments/settings/new-device", None, 1) diff --git a/tests/wire/test_roles.py b/tests/wire/test_roles.py deleted file mode 100644 index 33e8a1fb..00000000 --- a/tests/wire/test_roles.py +++ /dev/null @@ -1,69 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_roles_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "roles.list_.0" - client = get_client(test_id) - client.roles.list( - per_page=1, - page=1, - include_totals=True, - name_filter="name_filter", - type="tenant", - owner_id="owner_id", - ) - verify_request_count( - test_id, - "GET", - "/roles", - { - "per_page": "1", - "page": "1", - "include_totals": "true", - "name_filter": "name_filter", - "type": "tenant", - "owner_id": "owner_id", - }, - 1, - ) - - -def test_roles_create() -> None: - """Test create endpoint with WireMock""" - test_id = "roles.create.0" - client = get_client(test_id) - client.roles.create( - name="name", - ) - verify_request_count(test_id, "POST", "/roles", None, 1) - - -def test_roles_get() -> None: - """Test get endpoint with WireMock""" - test_id = "roles.get.0" - client = get_client(test_id) - client.roles.get( - id="id", - ) - verify_request_count(test_id, "GET", "/roles/id", None, 1) - - -def test_roles_delete() -> None: - """Test delete endpoint with WireMock""" - test_id = "roles.delete.0" - client = get_client(test_id) - client.roles.delete( - id="id", - ) - verify_request_count(test_id, "DELETE", "/roles/id", None, 1) - - -def test_roles_update() -> None: - """Test update endpoint with WireMock""" - test_id = "roles.update.0" - client = get_client(test_id) - client.roles.update( - id="id", - ) - verify_request_count(test_id, "PATCH", "/roles/id", None, 1) diff --git a/tests/wire/test_roles_groups.py b/tests/wire/test_roles_groups.py deleted file mode 100644 index bcfcee01..00000000 --- a/tests/wire/test_roles_groups.py +++ /dev/null @@ -1,35 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_roles_groups_get() -> None: - """Test get endpoint with WireMock""" - test_id = "roles.groups.get.0" - client = get_client(test_id) - client.roles.groups.get( - id="id", - from_="from", - take=1, - ) - verify_request_count(test_id, "GET", "/roles/id/groups", {"from": "from", "take": "1"}, 1) - - -def test_roles_groups_create() -> None: - """Test create endpoint with WireMock""" - test_id = "roles.groups.create.0" - client = get_client(test_id) - client.roles.groups.create( - id="id", - groups=["groups"], - ) - verify_request_count(test_id, "POST", "/roles/id/groups", None, 1) - - -def test_roles_groups_delete() -> None: - """Test delete endpoint with WireMock""" - test_id = "roles.groups.delete.0" - client = get_client(test_id) - client.roles.groups.delete( - id="id", - groups=["groups"], - ) - verify_request_count(test_id, "DELETE", "/roles/id/groups", None, 1) diff --git a/tests/wire/test_roles_permissions.py b/tests/wire/test_roles_permissions.py deleted file mode 100644 index fd8214e1..00000000 --- a/tests/wire/test_roles_permissions.py +++ /dev/null @@ -1,50 +0,0 @@ -from .conftest import get_client, verify_request_count - -from auth0.management import PermissionRequestPayload - - -def test_roles_permissions_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "roles.permissions.list_.0" - client = get_client(test_id) - client.roles.permissions.list( - id="id", - per_page=1, - page=1, - include_totals=True, - ) - verify_request_count( - test_id, "GET", "/roles/id/permissions", {"per_page": "1", "page": "1", "include_totals": "true"}, 1 - ) - - -def test_roles_permissions_add() -> None: - """Test add endpoint with WireMock""" - test_id = "roles.permissions.add.0" - client = get_client(test_id) - client.roles.permissions.add( - id="id", - permissions=[ - PermissionRequestPayload( - resource_server_identifier="resource_server_identifier", - permission_name="permission_name", - ) - ], - ) - verify_request_count(test_id, "POST", "/roles/id/permissions", None, 1) - - -def test_roles_permissions_delete() -> None: - """Test delete endpoint with WireMock""" - test_id = "roles.permissions.delete.0" - client = get_client(test_id) - client.roles.permissions.delete( - id="id", - permissions=[ - PermissionRequestPayload( - resource_server_identifier="resource_server_identifier", - permission_name="permission_name", - ) - ], - ) - verify_request_count(test_id, "DELETE", "/roles/id/permissions", None, 1) diff --git a/tests/wire/test_roles_users.py b/tests/wire/test_roles_users.py deleted file mode 100644 index 8add4680..00000000 --- a/tests/wire/test_roles_users.py +++ /dev/null @@ -1,25 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_roles_users_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "roles.users.list_.0" - client = get_client(test_id) - client.roles.users.list( - id="id", - include_totals=True, - from_="from", - take=1, - ) - verify_request_count(test_id, "GET", "/roles/id/users", {"include_totals": "true", "from": "from", "take": "1"}, 1) - - -def test_roles_users_assign() -> None: - """Test assign endpoint with WireMock""" - test_id = "roles.users.assign.0" - client = get_client(test_id) - client.roles.users.assign( - id="id", - users=["users"], - ) - verify_request_count(test_id, "POST", "/roles/id/users", None, 1) diff --git a/tests/wire/test_rules.py b/tests/wire/test_rules.py deleted file mode 100644 index 99f5d84d..00000000 --- a/tests/wire/test_rules.py +++ /dev/null @@ -1,72 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_rules_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "rules.list_.0" - client = get_client(test_id) - client.rules.list( - page=1, - per_page=1, - include_totals=True, - enabled=True, - fields="fields", - include_fields=True, - ) - verify_request_count( - test_id, - "GET", - "/rules", - { - "page": "1", - "per_page": "1", - "include_totals": "true", - "enabled": "true", - "fields": "fields", - "include_fields": "true", - }, - 1, - ) - - -def test_rules_create() -> None: - """Test create endpoint with WireMock""" - test_id = "rules.create.0" - client = get_client(test_id) - client.rules.create( - name="name", - script="script", - ) - verify_request_count(test_id, "POST", "/rules", None, 1) - - -def test_rules_get() -> None: - """Test get endpoint with WireMock""" - test_id = "rules.get.0" - client = get_client(test_id) - client.rules.get( - id="id", - fields="fields", - include_fields=True, - ) - verify_request_count(test_id, "GET", "/rules/id", {"fields": "fields", "include_fields": "true"}, 1) - - -def test_rules_delete() -> None: - """Test delete endpoint with WireMock""" - test_id = "rules.delete.0" - client = get_client(test_id) - client.rules.delete( - id="id", - ) - verify_request_count(test_id, "DELETE", "/rules/id", None, 1) - - -def test_rules_update() -> None: - """Test update endpoint with WireMock""" - test_id = "rules.update.0" - client = get_client(test_id) - client.rules.update( - id="id", - ) - verify_request_count(test_id, "PATCH", "/rules/id", None, 1) diff --git a/tests/wire/test_rulesConfigs.py b/tests/wire/test_rulesConfigs.py deleted file mode 100644 index e732be79..00000000 --- a/tests/wire/test_rulesConfigs.py +++ /dev/null @@ -1,30 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_rulesConfigs_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "rules_configs.list_.0" - client = get_client(test_id) - client.rules_configs.list() - verify_request_count(test_id, "GET", "/rules-configs", None, 1) - - -def test_rulesConfigs_set_() -> None: - """Test set endpoint with WireMock""" - test_id = "rules_configs.set_.0" - client = get_client(test_id) - client.rules_configs.set( - key="key", - value="value", - ) - verify_request_count(test_id, "PUT", "/rules-configs/key", None, 1) - - -def test_rulesConfigs_delete() -> None: - """Test delete endpoint with WireMock""" - test_id = "rules_configs.delete.0" - client = get_client(test_id) - client.rules_configs.delete( - key="key", - ) - verify_request_count(test_id, "DELETE", "/rules-configs/key", None, 1) diff --git a/tests/wire/test_selfServiceProfiles.py b/tests/wire/test_selfServiceProfiles.py deleted file mode 100644 index ac183bde..00000000 --- a/tests/wire/test_selfServiceProfiles.py +++ /dev/null @@ -1,55 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_selfServiceProfiles_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "self_service_profiles.list_.0" - client = get_client(test_id) - client.self_service_profiles.list( - page=1, - per_page=1, - include_totals=True, - ) - verify_request_count( - test_id, "GET", "/self-service-profiles", {"page": "1", "per_page": "1", "include_totals": "true"}, 1 - ) - - -def test_selfServiceProfiles_create() -> None: - """Test create endpoint with WireMock""" - test_id = "self_service_profiles.create.0" - client = get_client(test_id) - client.self_service_profiles.create( - name="name", - ) - verify_request_count(test_id, "POST", "/self-service-profiles", None, 1) - - -def test_selfServiceProfiles_get() -> None: - """Test get endpoint with WireMock""" - test_id = "self_service_profiles.get.0" - client = get_client(test_id) - client.self_service_profiles.get( - id="id", - ) - verify_request_count(test_id, "GET", "/self-service-profiles/id", None, 1) - - -def test_selfServiceProfiles_delete() -> None: - """Test delete endpoint with WireMock""" - test_id = "self_service_profiles.delete.0" - client = get_client(test_id) - client.self_service_profiles.delete( - id="id", - ) - verify_request_count(test_id, "DELETE", "/self-service-profiles/id", None, 1) - - -def test_selfServiceProfiles_update() -> None: - """Test update endpoint with WireMock""" - test_id = "self_service_profiles.update.0" - client = get_client(test_id) - client.self_service_profiles.update( - id="id", - ) - verify_request_count(test_id, "PATCH", "/self-service-profiles/id", None, 1) diff --git a/tests/wire/test_selfServiceProfiles_customText.py b/tests/wire/test_selfServiceProfiles_customText.py deleted file mode 100644 index b84167b4..00000000 --- a/tests/wire/test_selfServiceProfiles_customText.py +++ /dev/null @@ -1,26 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_selfServiceProfiles_customText_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "self_service_profiles.custom_text.list_.0" - client = get_client(test_id) - client.self_service_profiles.custom_text.list( - id="id", - language="en", - page="get-started", - ) - verify_request_count(test_id, "GET", "/self-service-profiles/id/custom-text/en/get-started", None, 1) - - -def test_selfServiceProfiles_customText_set_() -> None: - """Test set endpoint with WireMock""" - test_id = "self_service_profiles.custom_text.set_.0" - client = get_client(test_id) - client.self_service_profiles.custom_text.set( - id="id", - language="en", - page="get-started", - request={"key": "value"}, - ) - verify_request_count(test_id, "PUT", "/self-service-profiles/id/custom-text/en/get-started", None, 1) diff --git a/tests/wire/test_selfServiceProfiles_ssoTicket.py b/tests/wire/test_selfServiceProfiles_ssoTicket.py deleted file mode 100644 index e17e0eb8..00000000 --- a/tests/wire/test_selfServiceProfiles_ssoTicket.py +++ /dev/null @@ -1,22 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_selfServiceProfiles_ssoTicket_create() -> None: - """Test create endpoint with WireMock""" - test_id = "self_service_profiles.sso_ticket.create.0" - client = get_client(test_id) - client.self_service_profiles.sso_ticket.create( - id="id", - ) - verify_request_count(test_id, "POST", "/self-service-profiles/id/sso-ticket", None, 1) - - -def test_selfServiceProfiles_ssoTicket_revoke() -> None: - """Test revoke endpoint with WireMock""" - test_id = "self_service_profiles.sso_ticket.revoke.0" - client = get_client(test_id) - client.self_service_profiles.sso_ticket.revoke( - profile_id="profileId", - id="id", - ) - verify_request_count(test_id, "POST", "/self-service-profiles/profileId/sso-ticket/id/revoke", None, 1) diff --git a/tests/wire/test_sessions.py b/tests/wire/test_sessions.py deleted file mode 100644 index a547f607..00000000 --- a/tests/wire/test_sessions.py +++ /dev/null @@ -1,41 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_sessions_get() -> None: - """Test get endpoint with WireMock""" - test_id = "sessions.get.0" - client = get_client(test_id) - client.sessions.get( - id="id", - ) - verify_request_count(test_id, "GET", "/sessions/id", None, 1) - - -def test_sessions_delete() -> None: - """Test delete endpoint with WireMock""" - test_id = "sessions.delete.0" - client = get_client(test_id) - client.sessions.delete( - id="id", - ) - verify_request_count(test_id, "DELETE", "/sessions/id", None, 1) - - -def test_sessions_update() -> None: - """Test update endpoint with WireMock""" - test_id = "sessions.update.0" - client = get_client(test_id) - client.sessions.update( - id="id", - ) - verify_request_count(test_id, "PATCH", "/sessions/id", None, 1) - - -def test_sessions_revoke() -> None: - """Test revoke endpoint with WireMock""" - test_id = "sessions.revoke.0" - client = get_client(test_id) - client.sessions.revoke( - id="id", - ) - verify_request_count(test_id, "POST", "/sessions/id/revoke", None, 1) diff --git a/tests/wire/test_stats.py b/tests/wire/test_stats.py deleted file mode 100644 index f36e070b..00000000 --- a/tests/wire/test_stats.py +++ /dev/null @@ -1,20 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_stats_get_active_users_count() -> None: - """Test getActiveUsersCount endpoint with WireMock""" - test_id = "stats.get_active_users_count.0" - client = get_client(test_id) - client.stats.get_active_users_count() - verify_request_count(test_id, "GET", "/stats/active-users", None, 1) - - -def test_stats_get_daily() -> None: - """Test getDaily endpoint with WireMock""" - test_id = "stats.get_daily.0" - client = get_client(test_id) - client.stats.get_daily( - from_="from", - to="to", - ) - verify_request_count(test_id, "GET", "/stats/daily", {"from": "from", "to": "to"}, 1) diff --git a/tests/wire/test_supplementalSignals.py b/tests/wire/test_supplementalSignals.py deleted file mode 100644 index 8a1c0a47..00000000 --- a/tests/wire/test_supplementalSignals.py +++ /dev/null @@ -1,19 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_supplementalSignals_get() -> None: - """Test get endpoint with WireMock""" - test_id = "supplemental_signals.get.0" - client = get_client(test_id) - client.supplemental_signals.get() - verify_request_count(test_id, "GET", "/supplemental-signals", None, 1) - - -def test_supplementalSignals_patch() -> None: - """Test patch endpoint with WireMock""" - test_id = "supplemental_signals.patch.0" - client = get_client(test_id) - client.supplemental_signals.patch( - akamai_enabled=True, - ) - verify_request_count(test_id, "PATCH", "/supplemental-signals", None, 1) diff --git a/tests/wire/test_tenants_settings.py b/tests/wire/test_tenants_settings.py deleted file mode 100644 index 4f00d2a2..00000000 --- a/tests/wire/test_tenants_settings.py +++ /dev/null @@ -1,20 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_tenants_settings_get() -> None: - """Test get endpoint with WireMock""" - test_id = "tenants.settings.get.0" - client = get_client(test_id) - client.tenants.settings.get( - fields="fields", - include_fields=True, - ) - verify_request_count(test_id, "GET", "/tenants/settings", {"fields": "fields", "include_fields": "true"}, 1) - - -def test_tenants_settings_update() -> None: - """Test update endpoint with WireMock""" - test_id = "tenants.settings.update.0" - client = get_client(test_id) - client.tenants.settings.update() - verify_request_count(test_id, "PATCH", "/tenants/settings", None, 1) diff --git a/tests/wire/test_tickets.py b/tests/wire/test_tickets.py deleted file mode 100644 index b92bfb16..00000000 --- a/tests/wire/test_tickets.py +++ /dev/null @@ -1,19 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_tickets_verify_email() -> None: - """Test verifyEmail endpoint with WireMock""" - test_id = "tickets.verify_email.0" - client = get_client(test_id) - client.tickets.verify_email( - user_id="user_id", - ) - verify_request_count(test_id, "POST", "/tickets/email-verification", None, 1) - - -def test_tickets_change_password() -> None: - """Test changePassword endpoint with WireMock""" - test_id = "tickets.change_password.0" - client = get_client(test_id) - client.tickets.change_password() - verify_request_count(test_id, "POST", "/tickets/password-change", None, 1) diff --git a/tests/wire/test_tokenExchangeProfiles.py b/tests/wire/test_tokenExchangeProfiles.py deleted file mode 100644 index 6156438e..00000000 --- a/tests/wire/test_tokenExchangeProfiles.py +++ /dev/null @@ -1,55 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_tokenExchangeProfiles_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "token_exchange_profiles.list_.0" - client = get_client(test_id) - client.token_exchange_profiles.list( - from_="from", - take=1, - ) - verify_request_count(test_id, "GET", "/token-exchange-profiles", {"from": "from", "take": "1"}, 1) - - -def test_tokenExchangeProfiles_create() -> None: - """Test create endpoint with WireMock""" - test_id = "token_exchange_profiles.create.0" - client = get_client(test_id) - client.token_exchange_profiles.create( - name="name", - subject_token_type="subject_token_type", - action_id="action_id", - type="custom_authentication", - ) - verify_request_count(test_id, "POST", "/token-exchange-profiles", None, 1) - - -def test_tokenExchangeProfiles_get() -> None: - """Test get endpoint with WireMock""" - test_id = "token_exchange_profiles.get.0" - client = get_client(test_id) - client.token_exchange_profiles.get( - id="id", - ) - verify_request_count(test_id, "GET", "/token-exchange-profiles/id", None, 1) - - -def test_tokenExchangeProfiles_delete() -> None: - """Test delete endpoint with WireMock""" - test_id = "token_exchange_profiles.delete.0" - client = get_client(test_id) - client.token_exchange_profiles.delete( - id="id", - ) - verify_request_count(test_id, "DELETE", "/token-exchange-profiles/id", None, 1) - - -def test_tokenExchangeProfiles_update() -> None: - """Test update endpoint with WireMock""" - test_id = "token_exchange_profiles.update.0" - client = get_client(test_id) - client.token_exchange_profiles.update( - id="id", - ) - verify_request_count(test_id, "PATCH", "/token-exchange-profiles/id", None, 1) diff --git a/tests/wire/test_userAttributeProfiles.py b/tests/wire/test_userAttributeProfiles.py deleted file mode 100644 index 17a2b391..00000000 --- a/tests/wire/test_userAttributeProfiles.py +++ /dev/null @@ -1,80 +0,0 @@ -from .conftest import get_client, verify_request_count - -from auth0.management import UserAttributeProfileUserAttributeAdditionalProperties - - -def test_userAttributeProfiles_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "user_attribute_profiles.list_.0" - client = get_client(test_id) - client.user_attribute_profiles.list( - from_="from", - take=1, - ) - verify_request_count(test_id, "GET", "/user-attribute-profiles", {"from": "from", "take": "1"}, 1) - - -def test_userAttributeProfiles_create() -> None: - """Test create endpoint with WireMock""" - test_id = "user_attribute_profiles.create.0" - client = get_client(test_id) - client.user_attribute_profiles.create( - name="name", - user_attributes={ - "key": UserAttributeProfileUserAttributeAdditionalProperties( - description="description", - label="label", - profile_required=True, - auth_0_mapping="auth0_mapping", - ) - }, - ) - verify_request_count(test_id, "POST", "/user-attribute-profiles", None, 1) - - -def test_userAttributeProfiles_list_templates() -> None: - """Test listTemplates endpoint with WireMock""" - test_id = "user_attribute_profiles.list_templates.0" - client = get_client(test_id) - client.user_attribute_profiles.list_templates() - verify_request_count(test_id, "GET", "/user-attribute-profiles/templates", None, 1) - - -def test_userAttributeProfiles_get_template() -> None: - """Test getTemplate endpoint with WireMock""" - test_id = "user_attribute_profiles.get_template.0" - client = get_client(test_id) - client.user_attribute_profiles.get_template( - id="id", - ) - verify_request_count(test_id, "GET", "/user-attribute-profiles/templates/id", None, 1) - - -def test_userAttributeProfiles_get() -> None: - """Test get endpoint with WireMock""" - test_id = "user_attribute_profiles.get.0" - client = get_client(test_id) - client.user_attribute_profiles.get( - id="id", - ) - verify_request_count(test_id, "GET", "/user-attribute-profiles/id", None, 1) - - -def test_userAttributeProfiles_delete() -> None: - """Test delete endpoint with WireMock""" - test_id = "user_attribute_profiles.delete.0" - client = get_client(test_id) - client.user_attribute_profiles.delete( - id="id", - ) - verify_request_count(test_id, "DELETE", "/user-attribute-profiles/id", None, 1) - - -def test_userAttributeProfiles_update() -> None: - """Test update endpoint with WireMock""" - test_id = "user_attribute_profiles.update.0" - client = get_client(test_id) - client.user_attribute_profiles.update( - id="id", - ) - verify_request_count(test_id, "PATCH", "/user-attribute-profiles/id", None, 1) diff --git a/tests/wire/test_userBlocks.py b/tests/wire/test_userBlocks.py deleted file mode 100644 index 37271275..00000000 --- a/tests/wire/test_userBlocks.py +++ /dev/null @@ -1,45 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_userBlocks_list_by_identifier() -> None: - """Test listByIdentifier endpoint with WireMock""" - test_id = "user_blocks.list_by_identifier.0" - client = get_client(test_id) - client.user_blocks.list_by_identifier( - identifier="identifier", - consider_brute_force_enablement=True, - ) - verify_request_count( - test_id, "GET", "/user-blocks", {"identifier": "identifier", "consider_brute_force_enablement": "true"}, 1 - ) - - -def test_userBlocks_delete_by_identifier() -> None: - """Test deleteByIdentifier endpoint with WireMock""" - test_id = "user_blocks.delete_by_identifier.0" - client = get_client(test_id) - client.user_blocks.delete_by_identifier( - identifier="identifier", - ) - verify_request_count(test_id, "DELETE", "/user-blocks", {"identifier": "identifier"}, 1) - - -def test_userBlocks_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "user_blocks.list_.0" - client = get_client(test_id) - client.user_blocks.list( - id="id", - consider_brute_force_enablement=True, - ) - verify_request_count(test_id, "GET", "/user-blocks/id", {"consider_brute_force_enablement": "true"}, 1) - - -def test_userBlocks_delete() -> None: - """Test delete endpoint with WireMock""" - test_id = "user_blocks.delete.0" - client = get_client(test_id) - client.user_blocks.delete( - id="id", - ) - verify_request_count(test_id, "DELETE", "/user-blocks/id", None, 1) diff --git a/tests/wire/test_userGrants.py b/tests/wire/test_userGrants.py deleted file mode 100644 index 0cf9f48e..00000000 --- a/tests/wire/test_userGrants.py +++ /dev/null @@ -1,49 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_userGrants_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "user_grants.list_.0" - client = get_client(test_id) - client.user_grants.list( - per_page=1, - page=1, - include_totals=True, - user_id="user_id", - client_id="client_id", - audience="audience", - ) - verify_request_count( - test_id, - "GET", - "/grants", - { - "per_page": "1", - "page": "1", - "include_totals": "true", - "user_id": "user_id", - "client_id": "client_id", - "audience": "audience", - }, - 1, - ) - - -def test_userGrants_delete_by_user_id() -> None: - """Test deleteByUserId endpoint with WireMock""" - test_id = "user_grants.delete_by_user_id.0" - client = get_client(test_id) - client.user_grants.delete_by_user_id( - user_id="user_id", - ) - verify_request_count(test_id, "DELETE", "/grants", {"user_id": "user_id"}, 1) - - -def test_userGrants_delete() -> None: - """Test delete endpoint with WireMock""" - test_id = "user_grants.delete.0" - client = get_client(test_id) - client.user_grants.delete( - id="id", - ) - verify_request_count(test_id, "DELETE", "/grants/id", None, 1) diff --git a/tests/wire/test_users.py b/tests/wire/test_users.py deleted file mode 100644 index 433188e6..00000000 --- a/tests/wire/test_users.py +++ /dev/null @@ -1,145 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_users_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "users.list_.0" - client = get_client(test_id) - client.users.list( - page=1, - per_page=1, - include_totals=True, - sort="sort", - connection="connection", - fields="fields", - include_fields=True, - q="q", - search_engine="v1", - primary_order=True, - ) - verify_request_count( - test_id, - "GET", - "/users", - { - "page": "1", - "per_page": "1", - "include_totals": "true", - "sort": "sort", - "connection": "connection", - "fields": "fields", - "include_fields": "true", - "q": "q", - "search_engine": "v1", - "primary_order": "true", - }, - 1, - ) - - -def test_users_create() -> None: - """Test create endpoint with WireMock""" - test_id = "users.create.0" - client = get_client(test_id) - client.users.create( - connection="connection", - ) - verify_request_count(test_id, "POST", "/users", None, 1) - - -def test_users_list_users_by_email() -> None: - """Test listUsersByEmail endpoint with WireMock""" - test_id = "users.list_users_by_email.0" - client = get_client(test_id) - client.users.list_users_by_email( - fields="fields", - include_fields=True, - email="email", - ) - verify_request_count( - test_id, "GET", "/users-by-email", {"fields": "fields", "include_fields": "true", "email": "email"}, 1 - ) - - -def test_users_get() -> None: - """Test get endpoint with WireMock""" - test_id = "users.get.0" - client = get_client(test_id) - client.users.get( - id="id", - fields="fields", - include_fields=True, - ) - verify_request_count(test_id, "GET", "/users/id", {"fields": "fields", "include_fields": "true"}, 1) - - -def test_users_delete() -> None: - """Test delete endpoint with WireMock""" - test_id = "users.delete.0" - client = get_client(test_id) - client.users.delete( - id="id", - ) - verify_request_count(test_id, "DELETE", "/users/id", None, 1) - - -def test_users_update() -> None: - """Test update endpoint with WireMock""" - test_id = "users.update.0" - client = get_client(test_id) - client.users.update( - id="id", - ) - verify_request_count(test_id, "PATCH", "/users/id", None, 1) - - -def test_users_list_consent_signing_keys() -> None: - """Test listConsentSigningKeys endpoint with WireMock""" - test_id = "users.list_consent_signing_keys.0" - client = get_client(test_id) - client.users.list_consent_signing_keys( - id="id", - ) - verify_request_count(test_id, "GET", "/users/id/consent-signing-keys", None, 1) - - -def test_users_get_consent_signing_key() -> None: - """Test getConsentSigningKey endpoint with WireMock""" - test_id = "users.get_consent_signing_key.0" - client = get_client(test_id) - client.users.get_consent_signing_key( - id="id", - kid="kid", - ) - verify_request_count(test_id, "GET", "/users/id/consent-signing-keys/kid", None, 1) - - -def test_users_delete_consent_signing_key() -> None: - """Test deleteConsentSigningKey endpoint with WireMock""" - test_id = "users.delete_consent_signing_key.0" - client = get_client(test_id) - client.users.delete_consent_signing_key( - id="id", - kid="kid", - ) - verify_request_count(test_id, "DELETE", "/users/id/consent-signing-keys/kid", None, 1) - - -def test_users_regenerate_recovery_code() -> None: - """Test regenerateRecoveryCode endpoint with WireMock""" - test_id = "users.regenerate_recovery_code.0" - client = get_client(test_id) - client.users.regenerate_recovery_code( - id="id", - ) - verify_request_count(test_id, "POST", "/users/id/recovery-code-regeneration", None, 1) - - -def test_users_revoke_access() -> None: - """Test revokeAccess endpoint with WireMock""" - test_id = "users.revoke_access.0" - client = get_client(test_id) - client.users.revoke_access( - id="id", - ) - verify_request_count(test_id, "POST", "/users/id/revoke-access", None, 1) diff --git a/tests/wire/test_users_authenticationMethods.py b/tests/wire/test_users_authenticationMethods.py deleted file mode 100644 index 8631d572..00000000 --- a/tests/wire/test_users_authenticationMethods.py +++ /dev/null @@ -1,87 +0,0 @@ -from .conftest import get_client, verify_request_count - -from auth0.management import SetUserAuthenticationMethods - - -def test_users_authenticationMethods_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "users.authentication_methods.list_.0" - client = get_client(test_id) - client.users.authentication_methods.list( - id="id", - page=1, - per_page=1, - include_totals=True, - ) - verify_request_count( - test_id, "GET", "/users/id/authentication-methods", {"page": "1", "per_page": "1", "include_totals": "true"}, 1 - ) - - -def test_users_authenticationMethods_create() -> None: - """Test create endpoint with WireMock""" - test_id = "users.authentication_methods.create.0" - client = get_client(test_id) - client.users.authentication_methods.create( - id="id", - type="phone", - ) - verify_request_count(test_id, "POST", "/users/id/authentication-methods", None, 1) - - -def test_users_authenticationMethods_set_() -> None: - """Test set endpoint with WireMock""" - test_id = "users.authentication_methods.set_.0" - client = get_client(test_id) - client.users.authentication_methods.set( - id="id", - request=[ - SetUserAuthenticationMethods( - type="phone", - ) - ], - ) - verify_request_count(test_id, "PUT", "/users/id/authentication-methods", None, 1) - - -def test_users_authenticationMethods_delete_all() -> None: - """Test deleteAll endpoint with WireMock""" - test_id = "users.authentication_methods.delete_all.0" - client = get_client(test_id) - client.users.authentication_methods.delete_all( - id="id", - ) - verify_request_count(test_id, "DELETE", "/users/id/authentication-methods", None, 1) - - -def test_users_authenticationMethods_get() -> None: - """Test get endpoint with WireMock""" - test_id = "users.authentication_methods.get.0" - client = get_client(test_id) - client.users.authentication_methods.get( - id="id", - authentication_method_id="authentication_method_id", - ) - verify_request_count(test_id, "GET", "/users/id/authentication-methods/authentication_method_id", None, 1) - - -def test_users_authenticationMethods_delete() -> None: - """Test delete endpoint with WireMock""" - test_id = "users.authentication_methods.delete.0" - client = get_client(test_id) - client.users.authentication_methods.delete( - id="id", - authentication_method_id="authentication_method_id", - ) - verify_request_count(test_id, "DELETE", "/users/id/authentication-methods/authentication_method_id", None, 1) - - -def test_users_authenticationMethods_update() -> None: - """Test update endpoint with WireMock""" - test_id = "users.authentication_methods.update.0" - client = get_client(test_id) - client.users.authentication_methods.update( - id="id", - authentication_method_id="authentication_method_id", - ) - verify_request_count(test_id, "PATCH", "/users/id/authentication-methods/authentication_method_id", None, 1) diff --git a/tests/wire/test_users_authenticators.py b/tests/wire/test_users_authenticators.py deleted file mode 100644 index 84def5b3..00000000 --- a/tests/wire/test_users_authenticators.py +++ /dev/null @@ -1,11 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_users_authenticators_delete_all() -> None: - """Test deleteAll endpoint with WireMock""" - test_id = "users.authenticators.delete_all.0" - client = get_client(test_id) - client.users.authenticators.delete_all( - id="id", - ) - verify_request_count(test_id, "DELETE", "/users/id/authenticators", None, 1) diff --git a/tests/wire/test_users_connectedAccounts.py b/tests/wire/test_users_connectedAccounts.py deleted file mode 100644 index df0f062e..00000000 --- a/tests/wire/test_users_connectedAccounts.py +++ /dev/null @@ -1,13 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_users_connectedAccounts_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "users.connected_accounts.list_.0" - client = get_client(test_id) - client.users.connected_accounts.list( - id="id", - from_="from", - take=1, - ) - verify_request_count(test_id, "GET", "/users/id/connected-accounts", {"from": "from", "take": "1"}, 1) diff --git a/tests/wire/test_users_effectivePermissions.py b/tests/wire/test_users_effectivePermissions.py deleted file mode 100644 index 8ef11df5..00000000 --- a/tests/wire/test_users_effectivePermissions.py +++ /dev/null @@ -1,20 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_users_effectivePermissions_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "users.effective_permissions.list_.0" - client = get_client(test_id) - client.users.effective_permissions.list( - id="id", - from_="from", - take=1, - resource_server_identifier="resource_server_identifier", - ) - verify_request_count( - test_id, - "GET", - "/users/id/effective-permissions", - {"from": "from", "take": "1", "resource_server_identifier": "resource_server_identifier"}, - 1, - ) diff --git a/tests/wire/test_users_effectivePermissions_sources_roles.py b/tests/wire/test_users_effectivePermissions_sources_roles.py deleted file mode 100644 index ac420b37..00000000 --- a/tests/wire/test_users_effectivePermissions_sources_roles.py +++ /dev/null @@ -1,26 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_users_effectivePermissions_sources_roles_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "users.effective_permissions.sources.roles.list_.0" - client = get_client(test_id) - client.users.effective_permissions.sources.roles.list( - id="id", - from_="from", - take=1, - resource_server_identifier="resource_server_identifier", - permission_name="permission_name", - ) - verify_request_count( - test_id, - "GET", - "/users/id/effective-permissions/sources/effective-roles", - { - "from": "from", - "take": "1", - "resource_server_identifier": "resource_server_identifier", - "permission_name": "permission_name", - }, - 1, - ) diff --git a/tests/wire/test_users_effectiveRoles.py b/tests/wire/test_users_effectiveRoles.py deleted file mode 100644 index e1fb6379..00000000 --- a/tests/wire/test_users_effectiveRoles.py +++ /dev/null @@ -1,13 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_users_effectiveRoles_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "users.effective_roles.list_.0" - client = get_client(test_id) - client.users.effective_roles.list( - id="id", - from_="from", - take=1, - ) - verify_request_count(test_id, "GET", "/users/id/effective-roles", {"from": "from", "take": "1"}, 1) diff --git a/tests/wire/test_users_effectiveRoles_sources_groups.py b/tests/wire/test_users_effectiveRoles_sources_groups.py deleted file mode 100644 index 755599ff..00000000 --- a/tests/wire/test_users_effectiveRoles_sources_groups.py +++ /dev/null @@ -1,20 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_users_effectiveRoles_sources_groups_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "users.effective_roles.sources.groups.list_.0" - client = get_client(test_id) - client.users.effective_roles.sources.groups.list( - id="id", - role_id="role_id", - from_="from", - take=1, - ) - verify_request_count( - test_id, - "GET", - "/users/id/effective-roles/sources/groups", - {"role_id": "role_id", "from": "from", "take": "1"}, - 1, - ) diff --git a/tests/wire/test_users_enrollments.py b/tests/wire/test_users_enrollments.py deleted file mode 100644 index 650f2626..00000000 --- a/tests/wire/test_users_enrollments.py +++ /dev/null @@ -1,11 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_users_enrollments_get() -> None: - """Test get endpoint with WireMock""" - test_id = "users.enrollments.get.0" - client = get_client(test_id) - client.users.enrollments.get( - id="id", - ) - verify_request_count(test_id, "GET", "/users/id/enrollments", None, 1) diff --git a/tests/wire/test_users_groups.py b/tests/wire/test_users_groups.py deleted file mode 100644 index ad380b23..00000000 --- a/tests/wire/test_users_groups.py +++ /dev/null @@ -1,22 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_users_groups_get() -> None: - """Test get endpoint with WireMock""" - test_id = "users.groups.get.0" - client = get_client(test_id) - client.users.groups.get( - id="id", - fields="fields", - include_fields=True, - include_totals=True, - from_="from", - take=1, - ) - verify_request_count( - test_id, - "GET", - "/users/id/groups", - {"fields": "fields", "include_fields": "true", "include_totals": "true", "from": "from", "take": "1"}, - 1, - ) diff --git a/tests/wire/test_users_identities.py b/tests/wire/test_users_identities.py deleted file mode 100644 index e28c75d1..00000000 --- a/tests/wire/test_users_identities.py +++ /dev/null @@ -1,23 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_users_identities_link() -> None: - """Test link endpoint with WireMock""" - test_id = "users.identities.link.0" - client = get_client(test_id) - client.users.identities.link( - id="id", - ) - verify_request_count(test_id, "POST", "/users/id/identities", None, 1) - - -def test_users_identities_delete() -> None: - """Test delete endpoint with WireMock""" - test_id = "users.identities.delete.0" - client = get_client(test_id) - client.users.identities.delete( - id="id", - provider="ad", - user_id="user_id", - ) - verify_request_count(test_id, "DELETE", "/users/id/identities/ad/user_id", None, 1) diff --git a/tests/wire/test_users_logs.py b/tests/wire/test_users_logs.py deleted file mode 100644 index 93537ed3..00000000 --- a/tests/wire/test_users_logs.py +++ /dev/null @@ -1,17 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_users_logs_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "users.logs.list_.0" - client = get_client(test_id) - client.users.logs.list( - id="id", - page=1, - per_page=1, - sort="sort", - include_totals=True, - ) - verify_request_count( - test_id, "GET", "/users/id/logs", {"page": "1", "per_page": "1", "sort": "sort", "include_totals": "true"}, 1 - ) diff --git a/tests/wire/test_users_multifactor.py b/tests/wire/test_users_multifactor.py deleted file mode 100644 index 92736cb3..00000000 --- a/tests/wire/test_users_multifactor.py +++ /dev/null @@ -1,22 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_users_multifactor_invalidate_remember_browser() -> None: - """Test invalidateRememberBrowser endpoint with WireMock""" - test_id = "users.multifactor.invalidate_remember_browser.0" - client = get_client(test_id) - client.users.multifactor.invalidate_remember_browser( - id="id", - ) - verify_request_count(test_id, "POST", "/users/id/multifactor/actions/invalidate-remember-browser", None, 1) - - -def test_users_multifactor_delete_provider() -> None: - """Test deleteProvider endpoint with WireMock""" - test_id = "users.multifactor.delete_provider.0" - client = get_client(test_id) - client.users.multifactor.delete_provider( - id="id", - provider="duo", - ) - verify_request_count(test_id, "DELETE", "/users/id/multifactor/duo", None, 1) diff --git a/tests/wire/test_users_organizations.py b/tests/wire/test_users_organizations.py deleted file mode 100644 index abae7813..00000000 --- a/tests/wire/test_users_organizations.py +++ /dev/null @@ -1,16 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_users_organizations_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "users.organizations.list_.0" - client = get_client(test_id) - client.users.organizations.list( - id="id", - page=1, - per_page=1, - include_totals=True, - ) - verify_request_count( - test_id, "GET", "/users/id/organizations", {"page": "1", "per_page": "1", "include_totals": "true"}, 1 - ) diff --git a/tests/wire/test_users_permissions.py b/tests/wire/test_users_permissions.py deleted file mode 100644 index ffef5f26..00000000 --- a/tests/wire/test_users_permissions.py +++ /dev/null @@ -1,50 +0,0 @@ -from .conftest import get_client, verify_request_count - -from auth0.management import PermissionRequestPayload - - -def test_users_permissions_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "users.permissions.list_.0" - client = get_client(test_id) - client.users.permissions.list( - id="id", - per_page=1, - page=1, - include_totals=True, - ) - verify_request_count( - test_id, "GET", "/users/id/permissions", {"per_page": "1", "page": "1", "include_totals": "true"}, 1 - ) - - -def test_users_permissions_create() -> None: - """Test create endpoint with WireMock""" - test_id = "users.permissions.create.0" - client = get_client(test_id) - client.users.permissions.create( - id="id", - permissions=[ - PermissionRequestPayload( - resource_server_identifier="resource_server_identifier", - permission_name="permission_name", - ) - ], - ) - verify_request_count(test_id, "POST", "/users/id/permissions", None, 1) - - -def test_users_permissions_delete() -> None: - """Test delete endpoint with WireMock""" - test_id = "users.permissions.delete.0" - client = get_client(test_id) - client.users.permissions.delete( - id="id", - permissions=[ - PermissionRequestPayload( - resource_server_identifier="resource_server_identifier", - permission_name="permission_name", - ) - ], - ) - verify_request_count(test_id, "DELETE", "/users/id/permissions", None, 1) diff --git a/tests/wire/test_users_refreshToken.py b/tests/wire/test_users_refreshToken.py deleted file mode 100644 index 9bf6d765..00000000 --- a/tests/wire/test_users_refreshToken.py +++ /dev/null @@ -1,26 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_users_refreshToken_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "users.refresh_token.list_.0" - client = get_client(test_id) - client.users.refresh_token.list( - user_id="user_id", - include_totals=True, - from_="from", - take=1, - ) - verify_request_count( - test_id, "GET", "/users/user_id/refresh-tokens", {"include_totals": "true", "from": "from", "take": "1"}, 1 - ) - - -def test_users_refreshToken_delete() -> None: - """Test delete endpoint with WireMock""" - test_id = "users.refresh_token.delete.0" - client = get_client(test_id) - client.users.refresh_token.delete( - user_id="user_id", - ) - verify_request_count(test_id, "DELETE", "/users/user_id/refresh-tokens", None, 1) diff --git a/tests/wire/test_users_riskAssessments.py b/tests/wire/test_users_riskAssessments.py deleted file mode 100644 index f841d257..00000000 --- a/tests/wire/test_users_riskAssessments.py +++ /dev/null @@ -1,13 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_users_riskAssessments_clear() -> None: - """Test clear endpoint with WireMock""" - test_id = "users.risk_assessments.clear.0" - client = get_client(test_id) - client.users.risk_assessments.clear( - id="id", - connection="connection", - assessors=["new-device"], - ) - verify_request_count(test_id, "POST", "/users/id/risk-assessments/clear", None, 1) diff --git a/tests/wire/test_users_roles.py b/tests/wire/test_users_roles.py deleted file mode 100644 index 7730d838..00000000 --- a/tests/wire/test_users_roles.py +++ /dev/null @@ -1,36 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_users_roles_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "users.roles.list_.0" - client = get_client(test_id) - client.users.roles.list( - id="id", - per_page=1, - page=1, - include_totals=True, - ) - verify_request_count(test_id, "GET", "/users/id/roles", {"per_page": "1", "page": "1", "include_totals": "true"}, 1) - - -def test_users_roles_assign() -> None: - """Test assign endpoint with WireMock""" - test_id = "users.roles.assign.0" - client = get_client(test_id) - client.users.roles.assign( - id="id", - roles=["roles"], - ) - verify_request_count(test_id, "POST", "/users/id/roles", None, 1) - - -def test_users_roles_delete() -> None: - """Test delete endpoint with WireMock""" - test_id = "users.roles.delete.0" - client = get_client(test_id) - client.users.roles.delete( - id="id", - roles=["roles"], - ) - verify_request_count(test_id, "DELETE", "/users/id/roles", None, 1) diff --git a/tests/wire/test_users_sessions.py b/tests/wire/test_users_sessions.py deleted file mode 100644 index 31ed5fcb..00000000 --- a/tests/wire/test_users_sessions.py +++ /dev/null @@ -1,26 +0,0 @@ -from .conftest import get_client, verify_request_count - - -def test_users_sessions_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "users.sessions.list_.0" - client = get_client(test_id) - client.users.sessions.list( - user_id="user_id", - include_totals=True, - from_="from", - take=1, - ) - verify_request_count( - test_id, "GET", "/users/user_id/sessions", {"include_totals": "true", "from": "from", "take": "1"}, 1 - ) - - -def test_users_sessions_delete() -> None: - """Test delete endpoint with WireMock""" - test_id = "users.sessions.delete.0" - client = get_client(test_id) - client.users.sessions.delete( - user_id="user_id", - ) - verify_request_count(test_id, "DELETE", "/users/user_id/sessions", None, 1) diff --git a/tests/wire/test_verifiableCredentials_verification_templates.py b/tests/wire/test_verifiableCredentials_verification_templates.py deleted file mode 100644 index fd59f20c..00000000 --- a/tests/wire/test_verifiableCredentials_verification_templates.py +++ /dev/null @@ -1,64 +0,0 @@ -from .conftest import get_client, verify_request_count - -from auth0.management import MdlPresentationProperties, MdlPresentationRequest, MdlPresentationRequestProperties - - -def test_verifiableCredentials_verification_templates_list_() -> None: - """Test list endpoint with WireMock""" - test_id = "verifiable_credentials.verification.templates.list_.0" - client = get_client(test_id) - client.verifiable_credentials.verification.templates.list( - from_="from", - take=1, - ) - verify_request_count( - test_id, "GET", "/verifiable-credentials/verification/templates", {"from": "from", "take": "1"}, 1 - ) - - -def test_verifiableCredentials_verification_templates_create() -> None: - """Test create endpoint with WireMock""" - test_id = "verifiable_credentials.verification.templates.create.0" - client = get_client(test_id) - client.verifiable_credentials.verification.templates.create( - name="name", - type="type", - dialect="dialect", - presentation=MdlPresentationRequest( - org_iso_18013_5_1_m_dl=MdlPresentationRequestProperties( - org_iso_18013_5_1=MdlPresentationProperties(), - ), - ), - well_known_trusted_issuers="well_known_trusted_issuers", - ) - verify_request_count(test_id, "POST", "/verifiable-credentials/verification/templates", None, 1) - - -def test_verifiableCredentials_verification_templates_get() -> None: - """Test get endpoint with WireMock""" - test_id = "verifiable_credentials.verification.templates.get.0" - client = get_client(test_id) - client.verifiable_credentials.verification.templates.get( - id="id", - ) - verify_request_count(test_id, "GET", "/verifiable-credentials/verification/templates/id", None, 1) - - -def test_verifiableCredentials_verification_templates_delete() -> None: - """Test delete endpoint with WireMock""" - test_id = "verifiable_credentials.verification.templates.delete.0" - client = get_client(test_id) - client.verifiable_credentials.verification.templates.delete( - id="id", - ) - verify_request_count(test_id, "DELETE", "/verifiable-credentials/verification/templates/id", None, 1) - - -def test_verifiableCredentials_verification_templates_update() -> None: - """Test update endpoint with WireMock""" - test_id = "verifiable_credentials.verification.templates.update.0" - client = get_client(test_id) - client.verifiable_credentials.verification.templates.update( - id="id", - ) - verify_request_count(test_id, "PATCH", "/verifiable-credentials/verification/templates/id", None, 1) diff --git a/wiremock/wiremock-mappings.json b/wiremock/wiremock-mappings.json index 6f06cd95..1638a43c 100644 --- a/wiremock/wiremock-mappings.json +++ b/wiremock/wiremock-mappings.json @@ -1,18058 +1,11 @@ { "mappings": [ { - "id": "33519415-78d5-4e20-b7ed-c0f6609b6e90", - "name": "Get actions - default", + "id": "af6e371e-279a-42c5-8816-1349477935f3", + "name": "Wrapper declares properties and required next to oneOf - default", "request": { - "urlPathTemplate": "/actions/actions", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "queryParameters": { - "triggerId": { - "equalTo": "post-login" - }, - "actionName": { - "equalTo": "actionName" - }, - "deployed": { - "equalTo": "true" - }, - "page": { - "equalTo": "1" - }, - "per_page": { - "equalTo": "1" - }, - "installed": { - "equalTo": "true" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"total\": 1.1,\n \"page\": 1.1,\n \"per_page\": 1.1,\n \"actions\": [\n {\n \"id\": \"id\",\n \"name\": \"name\",\n \"supported_triggers\": [\n {\n \"id\": \"post-login\"\n }\n ],\n \"all_changes_deployed\": true,\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\",\n \"code\": \"code\",\n \"dependencies\": [\n {}\n ],\n \"runtime\": \"runtime\",\n \"secrets\": [\n {}\n ],\n \"installed_integration_id\": \"installed_integration_id\",\n \"status\": \"pending\",\n \"built_at\": \"2024-01-15T09:30:00Z\",\n \"deploy\": true,\n \"modules\": [\n {}\n ]\n }\n ]\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "33519415-78d5-4e20-b7ed-c0f6609b6e90", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "0af03b66-13d2-4fbe-a736-0f9dae1a89da", - "name": "Create an action - default", - "request": { - "urlPathTemplate": "/actions/actions", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 201, - "body": "{\n \"id\": \"id\",\n \"name\": \"name\",\n \"supported_triggers\": [\n {\n \"id\": \"post-login\",\n \"version\": \"version\",\n \"status\": \"status\",\n \"runtimes\": [\n \"runtimes\"\n ],\n \"default_runtime\": \"default_runtime\",\n \"compatible_triggers\": [\n {\n \"id\": \"post-login\",\n \"version\": \"version\"\n }\n ],\n \"binding_policy\": \"trigger-bound\"\n }\n ],\n \"all_changes_deployed\": true,\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\",\n \"code\": \"code\",\n \"dependencies\": [\n {\n \"name\": \"name\",\n \"version\": \"version\",\n \"registry_url\": \"registry_url\"\n }\n ],\n \"runtime\": \"runtime\",\n \"secrets\": [\n {\n \"name\": \"name\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n }\n ],\n \"deployed_version\": {\n \"id\": \"id\",\n \"action_id\": \"action_id\",\n \"code\": \"code\",\n \"dependencies\": [\n {}\n ],\n \"deployed\": true,\n \"runtime\": \"runtime\",\n \"secrets\": [\n {}\n ],\n \"status\": \"pending\",\n \"number\": 1.1,\n \"errors\": [\n {}\n ],\n \"action\": {\n \"id\": \"id\",\n \"name\": \"name\",\n \"supported_triggers\": [\n {\n \"id\": \"post-login\"\n }\n ],\n \"all_changes_deployed\": true,\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n },\n \"built_at\": \"2024-01-15T09:30:00Z\",\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\",\n \"supported_triggers\": [\n {\n \"id\": \"post-login\"\n }\n ],\n \"modules\": [\n {}\n ]\n },\n \"installed_integration_id\": \"installed_integration_id\",\n \"integration\": {\n \"id\": \"id\",\n \"catalog_id\": \"catalog_id\",\n \"url_slug\": \"url_slug\",\n \"partner_id\": \"partner_id\",\n \"name\": \"name\",\n \"description\": \"description\",\n \"short_description\": \"short_description\",\n \"logo\": \"logo\",\n \"feature_type\": \"unspecified\",\n \"terms_of_use_url\": \"terms_of_use_url\",\n \"privacy_policy_url\": \"privacy_policy_url\",\n \"public_support_link\": \"public_support_link\",\n \"current_release\": {\n \"id\": \"id\",\n \"trigger\": {\n \"id\": \"post-login\"\n },\n \"required_secrets\": [\n {}\n ],\n \"required_configuration\": [\n {}\n ]\n },\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n },\n \"status\": \"pending\",\n \"built_at\": \"2024-01-15T09:30:00Z\",\n \"deploy\": true,\n \"modules\": [\n {\n \"module_id\": \"module_id\",\n \"module_name\": \"module_name\",\n \"module_version_id\": \"module_version_id\",\n \"module_version_number\": 1\n }\n ]\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "0af03b66-13d2-4fbe-a736-0f9dae1a89da", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "9919a572-ff14-4914-88b8-acd7f6acc41d", - "name": "Get an action - default", - "request": { - "urlPathTemplate": "/actions/actions/{id}", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"id\": \"id\",\n \"name\": \"name\",\n \"supported_triggers\": [\n {\n \"id\": \"post-login\",\n \"version\": \"version\",\n \"status\": \"status\",\n \"runtimes\": [\n \"runtimes\"\n ],\n \"default_runtime\": \"default_runtime\",\n \"compatible_triggers\": [\n {\n \"id\": \"post-login\",\n \"version\": \"version\"\n }\n ],\n \"binding_policy\": \"trigger-bound\"\n }\n ],\n \"all_changes_deployed\": true,\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\",\n \"code\": \"code\",\n \"dependencies\": [\n {\n \"name\": \"name\",\n \"version\": \"version\",\n \"registry_url\": \"registry_url\"\n }\n ],\n \"runtime\": \"runtime\",\n \"secrets\": [\n {\n \"name\": \"name\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n }\n ],\n \"deployed_version\": {\n \"id\": \"id\",\n \"action_id\": \"action_id\",\n \"code\": \"code\",\n \"dependencies\": [\n {}\n ],\n \"deployed\": true,\n \"runtime\": \"runtime\",\n \"secrets\": [\n {}\n ],\n \"status\": \"pending\",\n \"number\": 1.1,\n \"errors\": [\n {}\n ],\n \"action\": {\n \"id\": \"id\",\n \"name\": \"name\",\n \"supported_triggers\": [\n {\n \"id\": \"post-login\"\n }\n ],\n \"all_changes_deployed\": true,\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n },\n \"built_at\": \"2024-01-15T09:30:00Z\",\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\",\n \"supported_triggers\": [\n {\n \"id\": \"post-login\"\n }\n ],\n \"modules\": [\n {}\n ]\n },\n \"installed_integration_id\": \"installed_integration_id\",\n \"integration\": {\n \"id\": \"id\",\n \"catalog_id\": \"catalog_id\",\n \"url_slug\": \"url_slug\",\n \"partner_id\": \"partner_id\",\n \"name\": \"name\",\n \"description\": \"description\",\n \"short_description\": \"short_description\",\n \"logo\": \"logo\",\n \"feature_type\": \"unspecified\",\n \"terms_of_use_url\": \"terms_of_use_url\",\n \"privacy_policy_url\": \"privacy_policy_url\",\n \"public_support_link\": \"public_support_link\",\n \"current_release\": {\n \"id\": \"id\",\n \"trigger\": {\n \"id\": \"post-login\"\n },\n \"required_secrets\": [\n {}\n ],\n \"required_configuration\": [\n {}\n ]\n },\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n },\n \"status\": \"pending\",\n \"built_at\": \"2024-01-15T09:30:00Z\",\n \"deploy\": true,\n \"modules\": [\n {\n \"module_id\": \"module_id\",\n \"module_name\": \"module_name\",\n \"module_version_id\": \"module_version_id\",\n \"module_version_number\": 1\n }\n ]\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "9919a572-ff14-4914-88b8-acd7f6acc41d", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "1bb73e26-2243-414b-80fc-fcf53169d4fe", - "name": "Delete an action - default", - "request": { - "urlPathTemplate": "/actions/actions/{id}", - "method": "DELETE", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - }, - "queryParameters": { - "force": { - "equalTo": "true" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "1bb73e26-2243-414b-80fc-fcf53169d4fe", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "2679764d-6f00-495e-b8fb-210d140167ba", - "name": "Update an action - default", - "request": { - "urlPathTemplate": "/actions/actions/{id}", - "method": "PATCH", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"id\": \"id\",\n \"name\": \"name\",\n \"supported_triggers\": [\n {\n \"id\": \"post-login\",\n \"version\": \"version\",\n \"status\": \"status\",\n \"runtimes\": [\n \"runtimes\"\n ],\n \"default_runtime\": \"default_runtime\",\n \"compatible_triggers\": [\n {\n \"id\": \"post-login\",\n \"version\": \"version\"\n }\n ],\n \"binding_policy\": \"trigger-bound\"\n }\n ],\n \"all_changes_deployed\": true,\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\",\n \"code\": \"code\",\n \"dependencies\": [\n {\n \"name\": \"name\",\n \"version\": \"version\",\n \"registry_url\": \"registry_url\"\n }\n ],\n \"runtime\": \"runtime\",\n \"secrets\": [\n {\n \"name\": \"name\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n }\n ],\n \"deployed_version\": {\n \"id\": \"id\",\n \"action_id\": \"action_id\",\n \"code\": \"code\",\n \"dependencies\": [\n {}\n ],\n \"deployed\": true,\n \"runtime\": \"runtime\",\n \"secrets\": [\n {}\n ],\n \"status\": \"pending\",\n \"number\": 1.1,\n \"errors\": [\n {}\n ],\n \"action\": {\n \"id\": \"id\",\n \"name\": \"name\",\n \"supported_triggers\": [\n {\n \"id\": \"post-login\"\n }\n ],\n \"all_changes_deployed\": true,\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n },\n \"built_at\": \"2024-01-15T09:30:00Z\",\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\",\n \"supported_triggers\": [\n {\n \"id\": \"post-login\"\n }\n ],\n \"modules\": [\n {}\n ]\n },\n \"installed_integration_id\": \"installed_integration_id\",\n \"integration\": {\n \"id\": \"id\",\n \"catalog_id\": \"catalog_id\",\n \"url_slug\": \"url_slug\",\n \"partner_id\": \"partner_id\",\n \"name\": \"name\",\n \"description\": \"description\",\n \"short_description\": \"short_description\",\n \"logo\": \"logo\",\n \"feature_type\": \"unspecified\",\n \"terms_of_use_url\": \"terms_of_use_url\",\n \"privacy_policy_url\": \"privacy_policy_url\",\n \"public_support_link\": \"public_support_link\",\n \"current_release\": {\n \"id\": \"id\",\n \"trigger\": {\n \"id\": \"post-login\"\n },\n \"required_secrets\": [\n {}\n ],\n \"required_configuration\": [\n {}\n ]\n },\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n },\n \"status\": \"pending\",\n \"built_at\": \"2024-01-15T09:30:00Z\",\n \"deploy\": true,\n \"modules\": [\n {\n \"module_id\": \"module_id\",\n \"module_name\": \"module_name\",\n \"module_version_id\": \"module_version_id\",\n \"module_version_number\": 1\n }\n ]\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "2679764d-6f00-495e-b8fb-210d140167ba", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "0bde5116-17ac-4ea2-be52-e584711a6b70", - "name": "Deploy an action - default", - "request": { - "urlPathTemplate": "/actions/actions/{id}/deploy", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 202, - "body": "{\n \"id\": \"id\",\n \"action_id\": \"action_id\",\n \"code\": \"code\",\n \"dependencies\": [\n {\n \"name\": \"name\",\n \"version\": \"version\",\n \"registry_url\": \"registry_url\"\n }\n ],\n \"deployed\": true,\n \"runtime\": \"runtime\",\n \"secrets\": [\n {\n \"name\": \"name\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n }\n ],\n \"status\": \"pending\",\n \"number\": 1.1,\n \"errors\": [\n {\n \"id\": \"id\",\n \"msg\": \"msg\",\n \"url\": \"url\"\n }\n ],\n \"action\": {\n \"id\": \"id\",\n \"name\": \"name\",\n \"supported_triggers\": [\n {\n \"id\": \"post-login\"\n }\n ],\n \"all_changes_deployed\": true,\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n },\n \"built_at\": \"2024-01-15T09:30:00Z\",\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\",\n \"supported_triggers\": [\n {\n \"id\": \"post-login\",\n \"version\": \"version\",\n \"status\": \"status\",\n \"runtimes\": [\n \"runtimes\"\n ],\n \"default_runtime\": \"default_runtime\",\n \"compatible_triggers\": [\n {\n \"id\": \"post-login\",\n \"version\": \"version\"\n }\n ],\n \"binding_policy\": \"trigger-bound\"\n }\n ],\n \"modules\": [\n {\n \"module_id\": \"module_id\",\n \"module_name\": \"module_name\",\n \"module_version_id\": \"module_version_id\",\n \"module_version_number\": 1\n }\n ]\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "0bde5116-17ac-4ea2-be52-e584711a6b70", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "ebf627bb-6f85-4597-a454-0c654c35202c", - "name": "Test an Action - default", - "request": { - "urlPathTemplate": "/actions/actions/{id}/test", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"payload\": {\n \"key\": \"value\"\n }\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "ebf627bb-6f85-4597-a454-0c654c35202c", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "e57d3d93-924c-454b-894e-3e0deab81c8a", - "name": "Get agents - default", - "request": { - "urlPathTemplate": "/agents", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "queryParameters": { - "from": { - "equalTo": "from" - }, - "take": { - "equalTo": "1" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"agents\": [\n {\n \"agent_id\": \"agent_id\",\n \"name\": \"name\",\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\",\n \"external_agent_id\": \"external_agent_id\",\n \"metadata\": {\n \"key\": \"value\"\n }\n }\n ],\n \"next\": \"next\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "e57d3d93-924c-454b-894e-3e0deab81c8a", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "95ffdeb2-8e4d-45a8-b3e6-dfee451101bc", - "name": "Create an agent - default", - "request": { - "urlPathTemplate": "/agents", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 201, - "body": "{\n \"agent_id\": \"agent_id\",\n \"name\": \"name\",\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\",\n \"external_agent_id\": \"external_agent_id\",\n \"metadata\": {\n \"key\": \"value\"\n }\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "95ffdeb2-8e4d-45a8-b3e6-dfee451101bc", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "e6eacf15-64ae-4475-9825-02e2304fc092", - "name": "Get an agent - default", - "request": { - "urlPathTemplate": "/agents/{id}", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"agent_id\": \"agent_id\",\n \"name\": \"name\",\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\",\n \"external_agent_id\": \"external_agent_id\",\n \"metadata\": {\n \"key\": \"value\"\n }\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "e6eacf15-64ae-4475-9825-02e2304fc092", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "7077fe4c-7880-4955-9e36-8e52330fb15a", - "name": "Delete an agent - default", - "request": { - "urlPathTemplate": "/agents/{id}", - "method": "DELETE", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "7077fe4c-7880-4955-9e36-8e52330fb15a", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "b357e80d-57fc-4f4a-becb-184125842929", - "name": "Update an agent - default", - "request": { - "urlPathTemplate": "/agents/{id}", - "method": "PATCH", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"agent_id\": \"agent_id\",\n \"name\": \"name\",\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\",\n \"external_agent_id\": \"external_agent_id\",\n \"metadata\": {\n \"key\": \"value\"\n }\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "b357e80d-57fc-4f4a-becb-184125842929", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "0f76d290-6b70-4f62-abc8-3760917fe787", - "name": "Get branding settings - default", - "request": { - "urlPathTemplate": "/branding", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"colors\": {\n \"primary\": \"primary\",\n \"page_background\": \"page_background\"\n },\n \"favicon_url\": \"favicon_url\",\n \"logo_url\": \"logo_url\",\n \"font\": {\n \"url\": \"url\"\n }\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "0f76d290-6b70-4f62-abc8-3760917fe787", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "9ca9e729-0745-457c-828d-37f7c8ab1698", - "name": "Update branding settings - default", - "request": { - "urlPathTemplate": "/branding", - "method": "PATCH", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"colors\": {\n \"primary\": \"primary\",\n \"page_background\": \"page_background\"\n },\n \"favicon_url\": \"favicon_url\",\n \"logo_url\": \"logo_url\",\n \"font\": {\n \"url\": \"url\"\n }\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "9ca9e729-0745-457c-828d-37f7c8ab1698", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "5dbe0859-fbb5-4eb1-a803-8132e840e762", - "name": "Get client grants - default", - "request": { - "urlPathTemplate": "/client-grants", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "queryParameters": { - "include_totals": { - "equalTo": "true" - }, - "from": { - "equalTo": "from" - }, - "take": { - "equalTo": "1" - }, - "audience": { - "equalTo": "audience" - }, - "client_id": { - "equalTo": "client_id" - }, - "allow_any_organization": { - "equalTo": "true" - }, - "subject_type": { - "equalTo": "client" - }, - "default_for": { - "equalTo": "third_party_clients" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"next\": \"next\",\n \"client_grants\": [\n {\n \"id\": \"id\",\n \"client_id\": \"client_id\",\n \"audience\": \"audience\",\n \"scope\": [\n \"scope\"\n ],\n \"organization_usage\": \"deny\",\n \"allow_any_organization\": true,\n \"default_for\": \"third_party_clients\",\n \"is_system\": true,\n \"subject_type\": \"client\",\n \"authorization_details_types\": [\n \"authorization_details_types\"\n ],\n \"allow_all_scopes\": true\n }\n ]\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "5dbe0859-fbb5-4eb1-a803-8132e840e762", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "006f7f26-5002-4b98-a65f-39f8aee8e968", - "name": "Create client grant - default", - "request": { - "urlPathTemplate": "/client-grants", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 201, - "body": "{\n \"id\": \"id\",\n \"client_id\": \"client_id\",\n \"audience\": \"audience\",\n \"scope\": [\n \"scope\"\n ],\n \"organization_usage\": \"deny\",\n \"allow_any_organization\": true,\n \"default_for\": \"third_party_clients\",\n \"is_system\": true,\n \"subject_type\": \"client\",\n \"authorization_details_types\": [\n \"authorization_details_types\"\n ],\n \"allow_all_scopes\": true\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "006f7f26-5002-4b98-a65f-39f8aee8e968", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "e809df23-d9d6-4332-9016-571f480d902f", - "name": "Search client grants - default", - "request": { - "urlPathTemplate": "/client-grants/search", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "queryParameters": { - "q": { - "equalTo": "q" - }, - "parser": { - "equalTo": "scim" - }, - "fields": { - "equalTo": "fields" - }, - "include_fields": { - "equalTo": "true" - }, - "take": { - "equalTo": "1" - }, - "from": { - "equalTo": "from" - }, - "sort": { - "equalTo": "audience" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"client_grants\": [\n {\n \"id\": \"id\",\n \"client_id\": \"client_id\",\n \"audience\": \"audience\",\n \"scope\": [\n \"scope\"\n ],\n \"organization_usage\": \"deny\",\n \"allow_any_organization\": true,\n \"default_for\": \"third_party_clients\",\n \"is_system\": true,\n \"subject_type\": \"client\",\n \"authorization_details_types\": [\n \"authorization_details_types\"\n ],\n \"allow_all_scopes\": true\n }\n ],\n \"next\": \"next\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "e809df23-d9d6-4332-9016-571f480d902f", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "03f565a5-e2d6-4f29-ac5c-7e1d2bd25c37", - "name": "Get client grant - default", - "request": { - "urlPathTemplate": "/client-grants/{id}", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"id\": \"id\",\n \"client_id\": \"client_id\",\n \"audience\": \"audience\",\n \"scope\": [\n \"scope\"\n ],\n \"organization_usage\": \"deny\",\n \"allow_any_organization\": true,\n \"default_for\": \"third_party_clients\",\n \"is_system\": true,\n \"subject_type\": \"client\",\n \"authorization_details_types\": [\n \"authorization_details_types\"\n ],\n \"allow_all_scopes\": true\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "03f565a5-e2d6-4f29-ac5c-7e1d2bd25c37", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "00010fe3-8553-4cd6-9b9a-68aad031054f", - "name": "Delete client grant - default", - "request": { - "urlPathTemplate": "/client-grants/{id}", - "method": "DELETE", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "00010fe3-8553-4cd6-9b9a-68aad031054f", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "d4a5deb2-fef3-4f0d-84ab-d78760e07405", - "name": "Update client grant - default", - "request": { - "urlPathTemplate": "/client-grants/{id}", - "method": "PATCH", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"id\": \"id\",\n \"client_id\": \"client_id\",\n \"audience\": \"audience\",\n \"scope\": [\n \"scope\"\n ],\n \"organization_usage\": \"deny\",\n \"allow_any_organization\": true,\n \"default_for\": \"third_party_clients\",\n \"is_system\": true,\n \"subject_type\": \"client\",\n \"authorization_details_types\": [\n \"authorization_details_types\"\n ],\n \"allow_all_scopes\": true\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "d4a5deb2-fef3-4f0d-84ab-d78760e07405", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "8f69f1ad-0119-4385-b58b-3613d7ce5ee1", - "name": "List client profiles - default", - "request": { - "urlPathTemplate": "/client-profiles", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "queryParameters": { - "from": { - "equalTo": "from" - }, - "take": { - "equalTo": "1" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"next\": \"next\",\n \"client_profiles\": [\n {\n \"id\": \"id\",\n \"name\": \"name\",\n \"description\": \"description\",\n \"client_configuration\": {},\n \"apply_policy\": {\n \"external_metadata_type\": \"cimd\",\n \"external_metadata_created_by\": \"client\"\n },\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n }\n ]\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "8f69f1ad-0119-4385-b58b-3613d7ce5ee1", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "f65ac957-f4a8-4cb4-8a85-c5303f99f3dd", - "name": "Create a client profile - default", - "request": { - "urlPathTemplate": "/client-profiles", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 201, - "body": "{\n \"id\": \"id\",\n \"name\": \"name\",\n \"description\": \"description\",\n \"client_configuration\": {\n \"organization_usage\": {\n \"default_value\": \"deny\"\n },\n \"organization_require_behavior\": {\n \"default_value\": \"no_prompt\"\n },\n \"organization_discovery_methods\": {\n \"default_value\": [\n \"email\"\n ]\n },\n \"require_proof_of_possession\": {\n \"default_value\": true\n },\n \"oidc_support\": {\n \"default_value\": {\n \"is_allowed\": true\n }\n }\n },\n \"apply_policy\": {\n \"external_metadata_type\": \"cimd\",\n \"external_metadata_created_by\": \"client\"\n },\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "f65ac957-f4a8-4cb4-8a85-c5303f99f3dd", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "c42dd8bf-5033-45dd-9932-4fc6a7459ae6", - "name": "Get a client profile - default", - "request": { - "urlPathTemplate": "/client-profiles/{id}", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"id\": \"id\",\n \"name\": \"name\",\n \"description\": \"description\",\n \"client_configuration\": {\n \"organization_usage\": {\n \"default_value\": \"deny\"\n },\n \"organization_require_behavior\": {\n \"default_value\": \"no_prompt\"\n },\n \"organization_discovery_methods\": {\n \"default_value\": [\n \"email\"\n ]\n },\n \"require_proof_of_possession\": {\n \"default_value\": true\n },\n \"oidc_support\": {\n \"default_value\": {\n \"is_allowed\": true\n }\n }\n },\n \"apply_policy\": {\n \"external_metadata_type\": \"cimd\",\n \"external_metadata_created_by\": \"client\"\n },\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "c42dd8bf-5033-45dd-9932-4fc6a7459ae6", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "874f2f6a-21a0-4699-b722-67cfd41798dc", - "name": "Delete a client profile - default", - "request": { - "urlPathTemplate": "/client-profiles/{id}", - "method": "DELETE", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "874f2f6a-21a0-4699-b722-67cfd41798dc", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "fa483d55-61de-42ae-8a75-bdc8bf1eaa99", - "name": "Update a client profile - default", - "request": { - "urlPathTemplate": "/client-profiles/{id}", - "method": "PATCH", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"id\": \"id\",\n \"name\": \"name\",\n \"description\": \"description\",\n \"client_configuration\": {\n \"organization_usage\": {\n \"default_value\": \"deny\"\n },\n \"organization_require_behavior\": {\n \"default_value\": \"no_prompt\"\n },\n \"organization_discovery_methods\": {\n \"default_value\": [\n \"email\"\n ]\n },\n \"require_proof_of_possession\": {\n \"default_value\": true\n },\n \"oidc_support\": {\n \"default_value\": {\n \"is_allowed\": true\n }\n }\n },\n \"apply_policy\": {\n \"external_metadata_type\": \"cimd\",\n \"external_metadata_created_by\": \"client\"\n },\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "fa483d55-61de-42ae-8a75-bdc8bf1eaa99", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "e9057410-f073-4b5b-83dc-dc4d5625ef27", - "name": "Get clients - default", - "request": { - "urlPathTemplate": "/clients", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "queryParameters": { - "fields": { - "equalTo": "fields" - }, - "include_fields": { - "equalTo": "true" - }, - "page": { - "equalTo": "1" - }, - "per_page": { - "equalTo": "1" - }, - "include_totals": { - "equalTo": "true" - }, - "is_global": { - "equalTo": "true" - }, - "is_first_party": { - "equalTo": "true" - }, - "app_type": { - "equalTo": "app_type" - }, - "external_client_id": { - "equalTo": "external_client_id" - }, - "agent_id": { - "equalTo": "agent_id" - }, - "q": { - "equalTo": "q" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"start\": 1.1,\n \"limit\": 1.1,\n \"total\": 1.1,\n \"clients\": [\n {\n \"client_id\": \"client_id\",\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\",\n \"tenant\": \"tenant\",\n \"name\": \"name\",\n \"description\": \"description\",\n \"global\": true,\n \"client_secret\": \"client_secret\",\n \"app_type\": \"native\",\n \"logo_uri\": \"logo_uri\",\n \"is_first_party\": true,\n \"oidc_conformant\": true,\n \"callbacks\": [\n \"callbacks\"\n ],\n \"allowed_origins\": [\n \"allowed_origins\"\n ],\n \"web_origins\": [\n \"web_origins\"\n ],\n \"client_aliases\": [\n \"client_aliases\"\n ],\n \"allowed_clients\": [\n \"allowed_clients\"\n ],\n \"allowed_logout_urls\": [\n \"allowed_logout_urls\"\n ],\n \"grant_types\": [\n \"grant_types\"\n ],\n \"signing_keys\": [\n {}\n ],\n \"sso\": true,\n \"sso_disabled\": true,\n \"cross_origin_authentication\": true,\n \"cross_origin_loc\": \"cross_origin_loc\",\n \"custom_login_page_on\": true,\n \"custom_login_page\": \"custom_login_page\",\n \"custom_login_page_preview\": \"custom_login_page_preview\",\n \"form_template\": \"form_template\",\n \"token_endpoint_auth_method\": \"none\",\n \"is_token_endpoint_ip_header_trusted\": true,\n \"client_metadata\": {\n \"key\": \"value\"\n },\n \"initiate_login_uri\": \"initiate_login_uri\",\n \"refresh_token\": {\n \"rotation_type\": \"rotating\",\n \"expiration_type\": \"expiring\"\n },\n \"default_organization\": {\n \"organization_id\": \"organization_id\",\n \"flows\": [\n \"client_credentials\"\n ]\n },\n \"organization_usage\": \"deny\",\n \"organization_require_behavior\": \"no_prompt\",\n \"organization_discovery_methods\": [\n \"email\"\n ],\n \"require_pushed_authorization_requests\": true,\n \"require_proof_of_possession\": true,\n \"token_vault_privileged_access\": {\n \"credentials\": [\n {\n \"id\": \"id\"\n }\n ]\n },\n \"compliance_level\": \"none\",\n \"skip_non_verifiable_callback_uri_confirmation_prompt\": true,\n \"par_request_expiry\": 1,\n \"token_quota\": {\n \"client_credentials\": {}\n },\n \"express_configuration\": {\n \"initiate_login_uri_template\": \"initiate_login_uri_template\",\n \"user_attribute_profile_id\": \"user_attribute_profile_id\",\n \"connection_profile_id\": \"connection_profile_id\",\n \"enable_client\": true,\n \"enable_organization\": true,\n \"okta_oin_client_id\": \"okta_oin_client_id\",\n \"admin_login_domain\": \"admin_login_domain\"\n },\n \"my_organization_configuration\": {\n \"allowed_strategies\": [\n \"pingfederate\"\n ],\n \"connection_deletion_behavior\": \"allow\"\n },\n \"identity_assertion_authorization_grant\": {\n \"active\": true\n },\n \"anonymous_sessions\": {\n \"active\": true\n },\n \"enforce_anon_session_transfer_network_binding\": \"ip\",\n \"third_party_security_mode\": \"strict\",\n \"redirection_policy\": \"allow_always\",\n \"resource_server_identifier\": \"resource_server_identifier\",\n \"async_approval_notification_channels\": [\n \"guardian-push\"\n ],\n \"external_metadata_type\": \"cimd\",\n \"external_metadata_created_by\": \"admin\",\n \"external_metadata_status\": \"available\",\n \"agent_id\": \"agent_id\",\n \"external_client_id\": \"external_client_id\",\n \"jwks_uri\": \"jwks_uri\"\n }\n ]\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "e9057410-f073-4b5b-83dc-dc4d5625ef27", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "f689c30d-6d4c-42b6-8ab3-1dd1ca9672d6", - "name": "Create a client - default", - "request": { - "urlPathTemplate": "/clients", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 201, - "body": "{\n \"client_id\": \"client_id\",\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\",\n \"tenant\": \"tenant\",\n \"name\": \"name\",\n \"description\": \"description\",\n \"global\": true,\n \"client_secret\": \"client_secret\",\n \"app_type\": \"native\",\n \"logo_uri\": \"logo_uri\",\n \"is_first_party\": true,\n \"oidc_conformant\": true,\n \"callbacks\": [\n \"callbacks\"\n ],\n \"allowed_origins\": [\n \"allowed_origins\"\n ],\n \"web_origins\": [\n \"web_origins\"\n ],\n \"client_aliases\": [\n \"client_aliases\"\n ],\n \"allowed_clients\": [\n \"allowed_clients\"\n ],\n \"allowed_logout_urls\": [\n \"allowed_logout_urls\"\n ],\n \"session_transfer\": {\n \"can_create_session_transfer_token\": true,\n \"enforce_cascade_revocation\": true,\n \"allowed_authentication_methods\": [\n \"cookie\"\n ],\n \"enforce_device_binding\": \"ip\",\n \"allow_refresh_token\": true,\n \"enforce_online_refresh_tokens\": true,\n \"delegation\": {\n \"allow_delegated_access\": true,\n \"enforce_device_binding\": \"ip\"\n }\n },\n \"oidc_logout\": {\n \"backchannel_logout_urls\": [\n \"backchannel_logout_urls\"\n ],\n \"backchannel_logout_initiators\": {\n \"mode\": \"custom\",\n \"selected_initiators\": [\n \"rp-logout\"\n ]\n },\n \"backchannel_logout_session_metadata\": {\n \"include\": true\n }\n },\n \"grant_types\": [\n \"grant_types\"\n ],\n \"jwt_configuration\": {\n \"lifetime_in_seconds\": 1,\n \"secret_encoded\": true,\n \"scopes\": {\n \"key\": \"value\"\n },\n \"alg\": \"HS256\"\n },\n \"signing_keys\": [\n {\n \"pkcs7\": \"pkcs7\",\n \"cert\": \"cert\",\n \"subject\": \"subject\"\n }\n ],\n \"encryption_key\": {\n \"pub\": \"pub\",\n \"cert\": \"cert\",\n \"subject\": \"subject\"\n },\n \"sso\": true,\n \"sso_disabled\": true,\n \"cross_origin_authentication\": true,\n \"cross_origin_loc\": \"cross_origin_loc\",\n \"custom_login_page_on\": true,\n \"custom_login_page\": \"custom_login_page\",\n \"custom_login_page_preview\": \"custom_login_page_preview\",\n \"form_template\": \"form_template\",\n \"addons\": {\n \"aws\": {\n \"principal\": \"principal\",\n \"role\": \"role\",\n \"lifetime_in_seconds\": 1\n },\n \"azure_blob\": {\n \"accountName\": \"accountName\",\n \"storageAccessKey\": \"storageAccessKey\",\n \"containerName\": \"containerName\",\n \"blobName\": \"blobName\",\n \"expiration\": 1,\n \"signedIdentifier\": \"signedIdentifier\",\n \"blob_read\": true,\n \"blob_write\": true,\n \"blob_delete\": true,\n \"container_read\": true,\n \"container_write\": true,\n \"container_delete\": true,\n \"container_list\": true\n },\n \"azure_sb\": {\n \"namespace\": \"namespace\",\n \"sasKeyName\": \"sasKeyName\",\n \"sasKey\": \"sasKey\",\n \"entityPath\": \"entityPath\",\n \"expiration\": 1\n },\n \"rms\": {\n \"url\": \"url\"\n },\n \"mscrm\": {\n \"url\": \"url\"\n },\n \"slack\": {\n \"team\": \"team\"\n },\n \"sentry\": {\n \"org_slug\": \"org_slug\",\n \"base_url\": \"base_url\"\n },\n \"box\": {\n \"key\": \"value\"\n },\n \"cloudbees\": {\n \"key\": \"value\"\n },\n \"concur\": {\n \"key\": \"value\"\n },\n \"dropbox\": {\n \"key\": \"value\"\n },\n \"echosign\": {\n \"domain\": \"domain\"\n },\n \"egnyte\": {\n \"domain\": \"domain\"\n },\n \"firebase\": {\n \"secret\": \"secret\",\n \"private_key_id\": \"private_key_id\",\n \"private_key\": \"private_key\",\n \"client_email\": \"client_email\",\n \"lifetime_in_seconds\": 1\n },\n \"newrelic\": {\n \"account\": \"account\"\n },\n \"office365\": {\n \"domain\": \"domain\",\n \"connection\": \"connection\"\n },\n \"salesforce\": {\n \"entity_id\": \"entity_id\"\n },\n \"salesforce_api\": {\n \"clientid\": \"clientid\",\n \"principal\": \"principal\",\n \"communityName\": \"communityName\",\n \"community_url_section\": \"community_url_section\"\n },\n \"salesforce_sandbox_api\": {\n \"clientid\": \"clientid\",\n \"principal\": \"principal\",\n \"communityName\": \"communityName\",\n \"community_url_section\": \"community_url_section\"\n },\n \"samlp\": {\n \"mappings\": {\n \"key\": \"value\"\n },\n \"audience\": \"audience\",\n \"recipient\": \"recipient\",\n \"createUpnClaim\": true,\n \"mapUnknownClaimsAsIs\": true,\n \"passthroughClaimsWithNoMapping\": true,\n \"mapIdentities\": true,\n \"signatureAlgorithm\": \"signatureAlgorithm\",\n \"digestAlgorithm\": \"digestAlgorithm\",\n \"issuer\": \"issuer\",\n \"destination\": \"destination\",\n \"lifetimeInSeconds\": 1,\n \"signResponse\": true,\n \"nameIdentifierFormat\": \"nameIdentifierFormat\",\n \"nameIdentifierProbes\": [\n \"nameIdentifierProbes\"\n ],\n \"authnContextClassRef\": \"authnContextClassRef\"\n },\n \"layer\": {\n \"providerId\": \"providerId\",\n \"keyId\": \"keyId\",\n \"privateKey\": \"privateKey\",\n \"principal\": \"principal\",\n \"expiration\": 1\n },\n \"sap_api\": {\n \"clientid\": \"clientid\",\n \"usernameAttribute\": \"usernameAttribute\",\n \"tokenEndpointUrl\": \"tokenEndpointUrl\",\n \"scope\": \"scope\",\n \"servicePassword\": \"servicePassword\",\n \"nameIdentifierFormat\": \"nameIdentifierFormat\"\n },\n \"sharepoint\": {\n \"url\": \"url\",\n \"external_url\": [\n \"external_url\"\n ]\n },\n \"springcm\": {\n \"acsurl\": \"acsurl\"\n },\n \"wams\": {\n \"masterkey\": \"masterkey\"\n },\n \"wsfed\": {\n \"key\": \"value\"\n },\n \"zendesk\": {\n \"accountName\": \"accountName\"\n },\n \"zoom\": {\n \"account\": \"account\"\n },\n \"sso_integration\": {\n \"name\": \"name\",\n \"version\": \"version\"\n }\n },\n \"token_endpoint_auth_method\": \"none\",\n \"is_token_endpoint_ip_header_trusted\": true,\n \"client_metadata\": {\n \"key\": \"value\"\n },\n \"mobile\": {\n \"android\": {\n \"app_package_name\": \"app_package_name\",\n \"sha256_cert_fingerprints\": [\n \"sha256_cert_fingerprints\"\n ]\n },\n \"ios\": {\n \"team_id\": \"team_id\",\n \"app_bundle_identifier\": \"app_bundle_identifier\"\n }\n },\n \"initiate_login_uri\": \"initiate_login_uri\",\n \"native_social_login\": {\n \"apple\": {\n \"enabled\": true\n },\n \"facebook\": {\n \"enabled\": true\n },\n \"google\": {\n \"enabled\": true\n }\n },\n \"fedcm_login\": {\n \"google\": {\n \"is_enabled\": true\n }\n },\n \"refresh_token\": {\n \"rotation_type\": \"rotating\",\n \"expiration_type\": \"expiring\",\n \"leeway\": 1,\n \"token_lifetime\": 1,\n \"infinite_token_lifetime\": true,\n \"idle_token_lifetime\": 1,\n \"infinite_idle_token_lifetime\": true,\n \"policies\": [\n {\n \"audience\": \"audience\",\n \"scope\": [\n \"scope\"\n ]\n }\n ]\n },\n \"default_organization\": {\n \"organization_id\": \"organization_id\",\n \"flows\": [\n \"client_credentials\"\n ]\n },\n \"organization_usage\": \"deny\",\n \"organization_require_behavior\": \"no_prompt\",\n \"organization_discovery_methods\": [\n \"email\"\n ],\n \"client_authentication_methods\": {\n \"private_key_jwt\": {\n \"credentials\": [\n {\n \"id\": \"id\"\n }\n ]\n },\n \"tls_client_auth\": {\n \"credentials\": [\n {\n \"id\": \"id\"\n }\n ]\n },\n \"self_signed_tls_client_auth\": {\n \"credentials\": [\n {\n \"id\": \"id\"\n }\n ]\n }\n },\n \"require_pushed_authorization_requests\": true,\n \"require_proof_of_possession\": true,\n \"signed_request_object\": {\n \"required\": true,\n \"credentials\": [\n {\n \"id\": \"id\"\n }\n ]\n },\n \"token_vault_privileged_access\": {\n \"credentials\": [\n {\n \"id\": \"id\"\n }\n ],\n \"ip_allowlist\": [\n \"ip_allowlist\"\n ],\n \"grants\": [\n {\n \"connection\": \"connection\",\n \"scopes\": [\n \"scopes\"\n ]\n }\n ]\n },\n \"compliance_level\": \"none\",\n \"skip_non_verifiable_callback_uri_confirmation_prompt\": true,\n \"token_exchange\": {\n \"allow_any_profile_of_type\": [\n \"custom_authentication\"\n ]\n },\n \"par_request_expiry\": 1,\n \"token_quota\": {\n \"client_credentials\": {\n \"enforce\": true,\n \"per_day\": 1,\n \"per_hour\": 1\n }\n },\n \"express_configuration\": {\n \"initiate_login_uri_template\": \"initiate_login_uri_template\",\n \"user_attribute_profile_id\": \"user_attribute_profile_id\",\n \"connection_profile_id\": \"connection_profile_id\",\n \"enable_client\": true,\n \"enable_organization\": true,\n \"linked_clients\": [\n {\n \"client_id\": \"client_id\"\n }\n ],\n \"okta_oin_client_id\": \"okta_oin_client_id\",\n \"admin_login_domain\": \"admin_login_domain\",\n \"oin_submission_id\": \"oin_submission_id\",\n \"okta_oin_listing_url\": \"okta_oin_listing_url\"\n },\n \"b2b_integration_configuration\": {\n \"sso_profiles\": [\n \"sso_profiles\"\n ],\n \"integration_type\": \"custom_auth_server\"\n },\n \"my_organization_configuration\": {\n \"connection_profile_id\": \"connection_profile_id\",\n \"user_attribute_profile_id\": \"user_attribute_profile_id\",\n \"allowed_strategies\": [\n \"pingfederate\"\n ],\n \"third_party_client_access\": {\n \"default_value\": \"block\",\n \"allowed_values\": [\n \"allow\"\n ]\n },\n \"connection_deletion_behavior\": \"allow\",\n \"invitation_landing_client_id\": \"invitation_landing_client_id\",\n \"enforce_permission_ceiling\": true,\n \"enforce_self_assignment_restriction\": true\n },\n \"google_account_linking\": {\n \"allow_streamlined_linking\": true\n },\n \"identity_assertion_authorization_grant\": {\n \"active\": true\n },\n \"anonymous_sessions\": {\n \"active\": true\n },\n \"enforce_anon_session_transfer_network_binding\": \"ip\",\n \"third_party_security_mode\": \"strict\",\n \"oidc_support\": {\n \"is_allowed\": true,\n \"allow_all_scopes\": true,\n \"allowed_scopes\": [\n \"profile\"\n ]\n },\n \"redirection_policy\": \"allow_always\",\n \"resource_server_identifier\": \"resource_server_identifier\",\n \"async_approval_notification_channels\": [\n \"guardian-push\"\n ],\n \"external_metadata_type\": \"cimd\",\n \"external_metadata_created_by\": \"admin\",\n \"external_metadata_status\": \"available\",\n \"agent_id\": \"agent_id\",\n \"external_client_id\": \"external_client_id\",\n \"jwks_uri\": \"jwks_uri\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "f689c30d-6d4c-42b6-8ab3-1dd1ca9672d6", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "b8d4879d-c044-46cf-9b84-f94f05858081", - "name": "Preview and validate Client ID Metadata Document - default", - "request": { - "urlPathTemplate": "/clients/cimd/preview", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"client_id\": \"client_id\",\n \"external_metadata_created_by\": \"admin\",\n \"errors\": [\n \"errors\"\n ],\n \"validation\": {\n \"valid\": true,\n \"violations\": [\n \"violations\"\n ],\n \"warnings\": [\n \"warnings\"\n ]\n },\n \"mapped_fields\": {\n \"external_client_id\": \"external_client_id\",\n \"name\": \"name\",\n \"app_type\": \"app_type\",\n \"callbacks\": [\n \"callbacks\"\n ],\n \"logo_uri\": \"logo_uri\",\n \"description\": \"description\",\n \"grant_types\": [\n \"grant_types\"\n ],\n \"token_endpoint_auth_method\": \"token_endpoint_auth_method\",\n \"jwks_uri\": \"jwks_uri\",\n \"client_authentication_methods\": {\n \"private_key_jwt\": {\n \"credentials\": [\n {\n \"credential_type\": \"credential_type\",\n \"kid\": \"kid\",\n \"alg\": \"alg\"\n }\n ]\n }\n }\n }\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "b8d4879d-c044-46cf-9b84-f94f05858081", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "89ded3bf-7977-43f9-93dc-2f65f3dbc0fe", - "name": "Register or update a CIMD client via metadata URI - default", - "request": { - "urlPathTemplate": "/clients/cimd/register", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"client_id\": \"client_id\",\n \"mapped_fields\": {\n \"external_client_id\": \"external_client_id\",\n \"name\": \"name\",\n \"app_type\": \"app_type\",\n \"callbacks\": [\n \"callbacks\"\n ],\n \"logo_uri\": \"logo_uri\",\n \"description\": \"description\",\n \"grant_types\": [\n \"grant_types\"\n ],\n \"token_endpoint_auth_method\": \"token_endpoint_auth_method\",\n \"jwks_uri\": \"jwks_uri\",\n \"client_authentication_methods\": {\n \"private_key_jwt\": {\n \"credentials\": [\n {\n \"credential_type\": \"credential_type\",\n \"kid\": \"kid\",\n \"alg\": \"alg\"\n }\n ]\n }\n }\n },\n \"validation\": {\n \"valid\": true,\n \"violations\": [\n \"violations\"\n ],\n \"warnings\": [\n \"warnings\"\n ]\n }\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "89ded3bf-7977-43f9-93dc-2f65f3dbc0fe", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "e4f1c4be-c358-48c6-9536-845bfd9b7f1e", - "name": "Search clients using SCIM or Lucene filter syntax - default", - "request": { - "urlPathTemplate": "/clients/search", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "queryParameters": { - "q": { - "equalTo": "q" - }, - "parser": { - "equalTo": "scim" - }, - "fields": { - "equalTo": "fields" - }, - "include_fields": { - "equalTo": "true" - }, - "take": { - "equalTo": "1" - }, - "from": { - "equalTo": "from" - }, - "sort": { - "equalTo": "name" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"clients\": [\n {\n \"client_id\": \"client_id\",\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\",\n \"tenant\": \"tenant\",\n \"name\": \"name\",\n \"description\": \"description\",\n \"global\": true,\n \"app_type\": \"native\",\n \"logo_uri\": \"logo_uri\",\n \"is_first_party\": true,\n \"oidc_conformant\": true,\n \"callbacks\": [\n \"callbacks\"\n ],\n \"allowed_origins\": [\n \"allowed_origins\"\n ],\n \"web_origins\": [\n \"web_origins\"\n ],\n \"client_aliases\": [\n \"client_aliases\"\n ],\n \"allowed_clients\": [\n \"allowed_clients\"\n ],\n \"allowed_logout_urls\": [\n \"allowed_logout_urls\"\n ],\n \"grant_types\": [\n \"grant_types\"\n ],\n \"sso\": true,\n \"sso_disabled\": true,\n \"cross_origin_authentication\": true,\n \"cross_origin_loc\": \"cross_origin_loc\",\n \"custom_login_page_on\": true,\n \"custom_login_page\": \"custom_login_page\",\n \"custom_login_page_preview\": \"custom_login_page_preview\",\n \"form_template\": \"form_template\",\n \"token_endpoint_auth_method\": \"none\",\n \"is_token_endpoint_ip_header_trusted\": true,\n \"client_metadata\": {\n \"key\": \"value\"\n },\n \"initiate_login_uri\": \"initiate_login_uri\",\n \"refresh_token\": {\n \"rotation_type\": \"rotating\",\n \"expiration_type\": \"expiring\"\n },\n \"default_organization\": {\n \"organization_id\": \"organization_id\",\n \"flows\": [\n \"client_credentials\"\n ]\n },\n \"organization_usage\": \"deny\",\n \"organization_require_behavior\": \"no_prompt\",\n \"organization_discovery_methods\": [\n \"email\"\n ],\n \"require_pushed_authorization_requests\": true,\n \"require_proof_of_possession\": true,\n \"token_vault_privileged_access\": {\n \"credentials\": [\n {\n \"id\": \"id\"\n }\n ]\n },\n \"compliance_level\": \"none\",\n \"skip_non_verifiable_callback_uri_confirmation_prompt\": true,\n \"par_request_expiry\": 1,\n \"token_quota\": {\n \"client_credentials\": {}\n },\n \"express_configuration\": {\n \"initiate_login_uri_template\": \"initiate_login_uri_template\",\n \"user_attribute_profile_id\": \"user_attribute_profile_id\",\n \"connection_profile_id\": \"connection_profile_id\",\n \"enable_client\": true,\n \"enable_organization\": true,\n \"okta_oin_client_id\": \"okta_oin_client_id\",\n \"admin_login_domain\": \"admin_login_domain\"\n },\n \"my_organization_configuration\": {\n \"allowed_strategies\": [\n \"pingfederate\"\n ],\n \"connection_deletion_behavior\": \"allow\"\n },\n \"identity_assertion_authorization_grant\": {\n \"active\": true\n },\n \"anonymous_sessions\": {\n \"active\": true\n },\n \"enforce_anon_session_transfer_network_binding\": \"ip\",\n \"third_party_security_mode\": \"strict\",\n \"redirection_policy\": \"allow_always\",\n \"resource_server_identifier\": \"resource_server_identifier\",\n \"async_approval_notification_channels\": [\n \"guardian-push\"\n ],\n \"external_metadata_type\": \"cimd\",\n \"external_metadata_created_by\": \"admin\",\n \"external_metadata_status\": \"available\",\n \"agent_id\": \"agent_id\",\n \"external_client_id\": \"external_client_id\",\n \"jwks_uri\": \"jwks_uri\"\n }\n ],\n \"next\": \"next\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "e4f1c4be-c358-48c6-9536-845bfd9b7f1e", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "12071cdc-1adc-4b32-8601-2cd12aa19c0c", - "name": "Get client by ID - default", - "request": { - "urlPathTemplate": "/clients/{id}", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - }, - "queryParameters": { - "fields": { - "equalTo": "fields" - }, - "include_fields": { - "equalTo": "true" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"client_id\": \"client_id\",\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\",\n \"tenant\": \"tenant\",\n \"name\": \"name\",\n \"description\": \"description\",\n \"global\": true,\n \"client_secret\": \"client_secret\",\n \"app_type\": \"native\",\n \"logo_uri\": \"logo_uri\",\n \"is_first_party\": true,\n \"oidc_conformant\": true,\n \"callbacks\": [\n \"callbacks\"\n ],\n \"allowed_origins\": [\n \"allowed_origins\"\n ],\n \"web_origins\": [\n \"web_origins\"\n ],\n \"client_aliases\": [\n \"client_aliases\"\n ],\n \"allowed_clients\": [\n \"allowed_clients\"\n ],\n \"allowed_logout_urls\": [\n \"allowed_logout_urls\"\n ],\n \"session_transfer\": {\n \"can_create_session_transfer_token\": true,\n \"enforce_cascade_revocation\": true,\n \"allowed_authentication_methods\": [\n \"cookie\"\n ],\n \"enforce_device_binding\": \"ip\",\n \"allow_refresh_token\": true,\n \"enforce_online_refresh_tokens\": true,\n \"delegation\": {\n \"allow_delegated_access\": true,\n \"enforce_device_binding\": \"ip\"\n }\n },\n \"oidc_logout\": {\n \"backchannel_logout_urls\": [\n \"backchannel_logout_urls\"\n ],\n \"backchannel_logout_initiators\": {\n \"mode\": \"custom\",\n \"selected_initiators\": [\n \"rp-logout\"\n ]\n },\n \"backchannel_logout_session_metadata\": {\n \"include\": true\n }\n },\n \"grant_types\": [\n \"grant_types\"\n ],\n \"jwt_configuration\": {\n \"lifetime_in_seconds\": 1,\n \"secret_encoded\": true,\n \"scopes\": {\n \"key\": \"value\"\n },\n \"alg\": \"HS256\"\n },\n \"signing_keys\": [\n {\n \"pkcs7\": \"pkcs7\",\n \"cert\": \"cert\",\n \"subject\": \"subject\"\n }\n ],\n \"encryption_key\": {\n \"pub\": \"pub\",\n \"cert\": \"cert\",\n \"subject\": \"subject\"\n },\n \"sso\": true,\n \"sso_disabled\": true,\n \"cross_origin_authentication\": true,\n \"cross_origin_loc\": \"cross_origin_loc\",\n \"custom_login_page_on\": true,\n \"custom_login_page\": \"custom_login_page\",\n \"custom_login_page_preview\": \"custom_login_page_preview\",\n \"form_template\": \"form_template\",\n \"addons\": {\n \"aws\": {\n \"principal\": \"principal\",\n \"role\": \"role\",\n \"lifetime_in_seconds\": 1\n },\n \"azure_blob\": {\n \"accountName\": \"accountName\",\n \"storageAccessKey\": \"storageAccessKey\",\n \"containerName\": \"containerName\",\n \"blobName\": \"blobName\",\n \"expiration\": 1,\n \"signedIdentifier\": \"signedIdentifier\",\n \"blob_read\": true,\n \"blob_write\": true,\n \"blob_delete\": true,\n \"container_read\": true,\n \"container_write\": true,\n \"container_delete\": true,\n \"container_list\": true\n },\n \"azure_sb\": {\n \"namespace\": \"namespace\",\n \"sasKeyName\": \"sasKeyName\",\n \"sasKey\": \"sasKey\",\n \"entityPath\": \"entityPath\",\n \"expiration\": 1\n },\n \"rms\": {\n \"url\": \"url\"\n },\n \"mscrm\": {\n \"url\": \"url\"\n },\n \"slack\": {\n \"team\": \"team\"\n },\n \"sentry\": {\n \"org_slug\": \"org_slug\",\n \"base_url\": \"base_url\"\n },\n \"box\": {\n \"key\": \"value\"\n },\n \"cloudbees\": {\n \"key\": \"value\"\n },\n \"concur\": {\n \"key\": \"value\"\n },\n \"dropbox\": {\n \"key\": \"value\"\n },\n \"echosign\": {\n \"domain\": \"domain\"\n },\n \"egnyte\": {\n \"domain\": \"domain\"\n },\n \"firebase\": {\n \"secret\": \"secret\",\n \"private_key_id\": \"private_key_id\",\n \"private_key\": \"private_key\",\n \"client_email\": \"client_email\",\n \"lifetime_in_seconds\": 1\n },\n \"newrelic\": {\n \"account\": \"account\"\n },\n \"office365\": {\n \"domain\": \"domain\",\n \"connection\": \"connection\"\n },\n \"salesforce\": {\n \"entity_id\": \"entity_id\"\n },\n \"salesforce_api\": {\n \"clientid\": \"clientid\",\n \"principal\": \"principal\",\n \"communityName\": \"communityName\",\n \"community_url_section\": \"community_url_section\"\n },\n \"salesforce_sandbox_api\": {\n \"clientid\": \"clientid\",\n \"principal\": \"principal\",\n \"communityName\": \"communityName\",\n \"community_url_section\": \"community_url_section\"\n },\n \"samlp\": {\n \"mappings\": {\n \"key\": \"value\"\n },\n \"audience\": \"audience\",\n \"recipient\": \"recipient\",\n \"createUpnClaim\": true,\n \"mapUnknownClaimsAsIs\": true,\n \"passthroughClaimsWithNoMapping\": true,\n \"mapIdentities\": true,\n \"signatureAlgorithm\": \"signatureAlgorithm\",\n \"digestAlgorithm\": \"digestAlgorithm\",\n \"issuer\": \"issuer\",\n \"destination\": \"destination\",\n \"lifetimeInSeconds\": 1,\n \"signResponse\": true,\n \"nameIdentifierFormat\": \"nameIdentifierFormat\",\n \"nameIdentifierProbes\": [\n \"nameIdentifierProbes\"\n ],\n \"authnContextClassRef\": \"authnContextClassRef\"\n },\n \"layer\": {\n \"providerId\": \"providerId\",\n \"keyId\": \"keyId\",\n \"privateKey\": \"privateKey\",\n \"principal\": \"principal\",\n \"expiration\": 1\n },\n \"sap_api\": {\n \"clientid\": \"clientid\",\n \"usernameAttribute\": \"usernameAttribute\",\n \"tokenEndpointUrl\": \"tokenEndpointUrl\",\n \"scope\": \"scope\",\n \"servicePassword\": \"servicePassword\",\n \"nameIdentifierFormat\": \"nameIdentifierFormat\"\n },\n \"sharepoint\": {\n \"url\": \"url\",\n \"external_url\": [\n \"external_url\"\n ]\n },\n \"springcm\": {\n \"acsurl\": \"acsurl\"\n },\n \"wams\": {\n \"masterkey\": \"masterkey\"\n },\n \"wsfed\": {\n \"key\": \"value\"\n },\n \"zendesk\": {\n \"accountName\": \"accountName\"\n },\n \"zoom\": {\n \"account\": \"account\"\n },\n \"sso_integration\": {\n \"name\": \"name\",\n \"version\": \"version\"\n }\n },\n \"token_endpoint_auth_method\": \"none\",\n \"is_token_endpoint_ip_header_trusted\": true,\n \"client_metadata\": {\n \"key\": \"value\"\n },\n \"mobile\": {\n \"android\": {\n \"app_package_name\": \"app_package_name\",\n \"sha256_cert_fingerprints\": [\n \"sha256_cert_fingerprints\"\n ]\n },\n \"ios\": {\n \"team_id\": \"team_id\",\n \"app_bundle_identifier\": \"app_bundle_identifier\"\n }\n },\n \"initiate_login_uri\": \"initiate_login_uri\",\n \"native_social_login\": {\n \"apple\": {\n \"enabled\": true\n },\n \"facebook\": {\n \"enabled\": true\n },\n \"google\": {\n \"enabled\": true\n }\n },\n \"fedcm_login\": {\n \"google\": {\n \"is_enabled\": true\n }\n },\n \"refresh_token\": {\n \"rotation_type\": \"rotating\",\n \"expiration_type\": \"expiring\",\n \"leeway\": 1,\n \"token_lifetime\": 1,\n \"infinite_token_lifetime\": true,\n \"idle_token_lifetime\": 1,\n \"infinite_idle_token_lifetime\": true,\n \"policies\": [\n {\n \"audience\": \"audience\",\n \"scope\": [\n \"scope\"\n ]\n }\n ]\n },\n \"default_organization\": {\n \"organization_id\": \"organization_id\",\n \"flows\": [\n \"client_credentials\"\n ]\n },\n \"organization_usage\": \"deny\",\n \"organization_require_behavior\": \"no_prompt\",\n \"organization_discovery_methods\": [\n \"email\"\n ],\n \"client_authentication_methods\": {\n \"private_key_jwt\": {\n \"credentials\": [\n {\n \"id\": \"id\"\n }\n ]\n },\n \"tls_client_auth\": {\n \"credentials\": [\n {\n \"id\": \"id\"\n }\n ]\n },\n \"self_signed_tls_client_auth\": {\n \"credentials\": [\n {\n \"id\": \"id\"\n }\n ]\n }\n },\n \"require_pushed_authorization_requests\": true,\n \"require_proof_of_possession\": true,\n \"signed_request_object\": {\n \"required\": true,\n \"credentials\": [\n {\n \"id\": \"id\"\n }\n ]\n },\n \"token_vault_privileged_access\": {\n \"credentials\": [\n {\n \"id\": \"id\"\n }\n ],\n \"ip_allowlist\": [\n \"ip_allowlist\"\n ],\n \"grants\": [\n {\n \"connection\": \"connection\",\n \"scopes\": [\n \"scopes\"\n ]\n }\n ]\n },\n \"compliance_level\": \"none\",\n \"skip_non_verifiable_callback_uri_confirmation_prompt\": true,\n \"token_exchange\": {\n \"allow_any_profile_of_type\": [\n \"custom_authentication\"\n ]\n },\n \"par_request_expiry\": 1,\n \"token_quota\": {\n \"client_credentials\": {\n \"enforce\": true,\n \"per_day\": 1,\n \"per_hour\": 1\n }\n },\n \"express_configuration\": {\n \"initiate_login_uri_template\": \"initiate_login_uri_template\",\n \"user_attribute_profile_id\": \"user_attribute_profile_id\",\n \"connection_profile_id\": \"connection_profile_id\",\n \"enable_client\": true,\n \"enable_organization\": true,\n \"linked_clients\": [\n {\n \"client_id\": \"client_id\"\n }\n ],\n \"okta_oin_client_id\": \"okta_oin_client_id\",\n \"admin_login_domain\": \"admin_login_domain\",\n \"oin_submission_id\": \"oin_submission_id\",\n \"okta_oin_listing_url\": \"okta_oin_listing_url\"\n },\n \"b2b_integration_configuration\": {\n \"sso_profiles\": [\n \"sso_profiles\"\n ],\n \"integration_type\": \"custom_auth_server\"\n },\n \"my_organization_configuration\": {\n \"connection_profile_id\": \"connection_profile_id\",\n \"user_attribute_profile_id\": \"user_attribute_profile_id\",\n \"allowed_strategies\": [\n \"pingfederate\"\n ],\n \"third_party_client_access\": {\n \"default_value\": \"block\",\n \"allowed_values\": [\n \"allow\"\n ]\n },\n \"connection_deletion_behavior\": \"allow\",\n \"invitation_landing_client_id\": \"invitation_landing_client_id\",\n \"enforce_permission_ceiling\": true,\n \"enforce_self_assignment_restriction\": true\n },\n \"google_account_linking\": {\n \"allow_streamlined_linking\": true\n },\n \"identity_assertion_authorization_grant\": {\n \"active\": true\n },\n \"anonymous_sessions\": {\n \"active\": true\n },\n \"enforce_anon_session_transfer_network_binding\": \"ip\",\n \"third_party_security_mode\": \"strict\",\n \"oidc_support\": {\n \"is_allowed\": true,\n \"allow_all_scopes\": true,\n \"allowed_scopes\": [\n \"profile\"\n ]\n },\n \"redirection_policy\": \"allow_always\",\n \"resource_server_identifier\": \"resource_server_identifier\",\n \"async_approval_notification_channels\": [\n \"guardian-push\"\n ],\n \"external_metadata_type\": \"cimd\",\n \"external_metadata_created_by\": \"admin\",\n \"external_metadata_status\": \"available\",\n \"agent_id\": \"agent_id\",\n \"external_client_id\": \"external_client_id\",\n \"jwks_uri\": \"jwks_uri\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "12071cdc-1adc-4b32-8601-2cd12aa19c0c", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "814f5054-4723-45e8-8d89-5a7da08db0d8", - "name": "Delete a client - default", - "request": { - "urlPathTemplate": "/clients/{id}", - "method": "DELETE", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "814f5054-4723-45e8-8d89-5a7da08db0d8", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "b4e5dc6c-c84f-4128-b87a-50876b601f77", - "name": "Update a client - default", - "request": { - "urlPathTemplate": "/clients/{id}", - "method": "PATCH", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"client_id\": \"client_id\",\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\",\n \"tenant\": \"tenant\",\n \"name\": \"name\",\n \"description\": \"description\",\n \"global\": true,\n \"client_secret\": \"client_secret\",\n \"app_type\": \"native\",\n \"logo_uri\": \"logo_uri\",\n \"is_first_party\": true,\n \"oidc_conformant\": true,\n \"callbacks\": [\n \"callbacks\"\n ],\n \"allowed_origins\": [\n \"allowed_origins\"\n ],\n \"web_origins\": [\n \"web_origins\"\n ],\n \"client_aliases\": [\n \"client_aliases\"\n ],\n \"allowed_clients\": [\n \"allowed_clients\"\n ],\n \"allowed_logout_urls\": [\n \"allowed_logout_urls\"\n ],\n \"session_transfer\": {\n \"can_create_session_transfer_token\": true,\n \"enforce_cascade_revocation\": true,\n \"allowed_authentication_methods\": [\n \"cookie\"\n ],\n \"enforce_device_binding\": \"ip\",\n \"allow_refresh_token\": true,\n \"enforce_online_refresh_tokens\": true,\n \"delegation\": {\n \"allow_delegated_access\": true,\n \"enforce_device_binding\": \"ip\"\n }\n },\n \"oidc_logout\": {\n \"backchannel_logout_urls\": [\n \"backchannel_logout_urls\"\n ],\n \"backchannel_logout_initiators\": {\n \"mode\": \"custom\",\n \"selected_initiators\": [\n \"rp-logout\"\n ]\n },\n \"backchannel_logout_session_metadata\": {\n \"include\": true\n }\n },\n \"grant_types\": [\n \"grant_types\"\n ],\n \"jwt_configuration\": {\n \"lifetime_in_seconds\": 1,\n \"secret_encoded\": true,\n \"scopes\": {\n \"key\": \"value\"\n },\n \"alg\": \"HS256\"\n },\n \"signing_keys\": [\n {\n \"pkcs7\": \"pkcs7\",\n \"cert\": \"cert\",\n \"subject\": \"subject\"\n }\n ],\n \"encryption_key\": {\n \"pub\": \"pub\",\n \"cert\": \"cert\",\n \"subject\": \"subject\"\n },\n \"sso\": true,\n \"sso_disabled\": true,\n \"cross_origin_authentication\": true,\n \"cross_origin_loc\": \"cross_origin_loc\",\n \"custom_login_page_on\": true,\n \"custom_login_page\": \"custom_login_page\",\n \"custom_login_page_preview\": \"custom_login_page_preview\",\n \"form_template\": \"form_template\",\n \"addons\": {\n \"aws\": {\n \"principal\": \"principal\",\n \"role\": \"role\",\n \"lifetime_in_seconds\": 1\n },\n \"azure_blob\": {\n \"accountName\": \"accountName\",\n \"storageAccessKey\": \"storageAccessKey\",\n \"containerName\": \"containerName\",\n \"blobName\": \"blobName\",\n \"expiration\": 1,\n \"signedIdentifier\": \"signedIdentifier\",\n \"blob_read\": true,\n \"blob_write\": true,\n \"blob_delete\": true,\n \"container_read\": true,\n \"container_write\": true,\n \"container_delete\": true,\n \"container_list\": true\n },\n \"azure_sb\": {\n \"namespace\": \"namespace\",\n \"sasKeyName\": \"sasKeyName\",\n \"sasKey\": \"sasKey\",\n \"entityPath\": \"entityPath\",\n \"expiration\": 1\n },\n \"rms\": {\n \"url\": \"url\"\n },\n \"mscrm\": {\n \"url\": \"url\"\n },\n \"slack\": {\n \"team\": \"team\"\n },\n \"sentry\": {\n \"org_slug\": \"org_slug\",\n \"base_url\": \"base_url\"\n },\n \"box\": {\n \"key\": \"value\"\n },\n \"cloudbees\": {\n \"key\": \"value\"\n },\n \"concur\": {\n \"key\": \"value\"\n },\n \"dropbox\": {\n \"key\": \"value\"\n },\n \"echosign\": {\n \"domain\": \"domain\"\n },\n \"egnyte\": {\n \"domain\": \"domain\"\n },\n \"firebase\": {\n \"secret\": \"secret\",\n \"private_key_id\": \"private_key_id\",\n \"private_key\": \"private_key\",\n \"client_email\": \"client_email\",\n \"lifetime_in_seconds\": 1\n },\n \"newrelic\": {\n \"account\": \"account\"\n },\n \"office365\": {\n \"domain\": \"domain\",\n \"connection\": \"connection\"\n },\n \"salesforce\": {\n \"entity_id\": \"entity_id\"\n },\n \"salesforce_api\": {\n \"clientid\": \"clientid\",\n \"principal\": \"principal\",\n \"communityName\": \"communityName\",\n \"community_url_section\": \"community_url_section\"\n },\n \"salesforce_sandbox_api\": {\n \"clientid\": \"clientid\",\n \"principal\": \"principal\",\n \"communityName\": \"communityName\",\n \"community_url_section\": \"community_url_section\"\n },\n \"samlp\": {\n \"mappings\": {\n \"key\": \"value\"\n },\n \"audience\": \"audience\",\n \"recipient\": \"recipient\",\n \"createUpnClaim\": true,\n \"mapUnknownClaimsAsIs\": true,\n \"passthroughClaimsWithNoMapping\": true,\n \"mapIdentities\": true,\n \"signatureAlgorithm\": \"signatureAlgorithm\",\n \"digestAlgorithm\": \"digestAlgorithm\",\n \"issuer\": \"issuer\",\n \"destination\": \"destination\",\n \"lifetimeInSeconds\": 1,\n \"signResponse\": true,\n \"nameIdentifierFormat\": \"nameIdentifierFormat\",\n \"nameIdentifierProbes\": [\n \"nameIdentifierProbes\"\n ],\n \"authnContextClassRef\": \"authnContextClassRef\"\n },\n \"layer\": {\n \"providerId\": \"providerId\",\n \"keyId\": \"keyId\",\n \"privateKey\": \"privateKey\",\n \"principal\": \"principal\",\n \"expiration\": 1\n },\n \"sap_api\": {\n \"clientid\": \"clientid\",\n \"usernameAttribute\": \"usernameAttribute\",\n \"tokenEndpointUrl\": \"tokenEndpointUrl\",\n \"scope\": \"scope\",\n \"servicePassword\": \"servicePassword\",\n \"nameIdentifierFormat\": \"nameIdentifierFormat\"\n },\n \"sharepoint\": {\n \"url\": \"url\",\n \"external_url\": [\n \"external_url\"\n ]\n },\n \"springcm\": {\n \"acsurl\": \"acsurl\"\n },\n \"wams\": {\n \"masterkey\": \"masterkey\"\n },\n \"wsfed\": {\n \"key\": \"value\"\n },\n \"zendesk\": {\n \"accountName\": \"accountName\"\n },\n \"zoom\": {\n \"account\": \"account\"\n },\n \"sso_integration\": {\n \"name\": \"name\",\n \"version\": \"version\"\n }\n },\n \"token_endpoint_auth_method\": \"none\",\n \"is_token_endpoint_ip_header_trusted\": true,\n \"client_metadata\": {\n \"key\": \"value\"\n },\n \"mobile\": {\n \"android\": {\n \"app_package_name\": \"app_package_name\",\n \"sha256_cert_fingerprints\": [\n \"sha256_cert_fingerprints\"\n ]\n },\n \"ios\": {\n \"team_id\": \"team_id\",\n \"app_bundle_identifier\": \"app_bundle_identifier\"\n }\n },\n \"initiate_login_uri\": \"initiate_login_uri\",\n \"native_social_login\": {\n \"apple\": {\n \"enabled\": true\n },\n \"facebook\": {\n \"enabled\": true\n },\n \"google\": {\n \"enabled\": true\n }\n },\n \"fedcm_login\": {\n \"google\": {\n \"is_enabled\": true\n }\n },\n \"refresh_token\": {\n \"rotation_type\": \"rotating\",\n \"expiration_type\": \"expiring\",\n \"leeway\": 1,\n \"token_lifetime\": 1,\n \"infinite_token_lifetime\": true,\n \"idle_token_lifetime\": 1,\n \"infinite_idle_token_lifetime\": true,\n \"policies\": [\n {\n \"audience\": \"audience\",\n \"scope\": [\n \"scope\"\n ]\n }\n ]\n },\n \"default_organization\": {\n \"organization_id\": \"organization_id\",\n \"flows\": [\n \"client_credentials\"\n ]\n },\n \"organization_usage\": \"deny\",\n \"organization_require_behavior\": \"no_prompt\",\n \"organization_discovery_methods\": [\n \"email\"\n ],\n \"client_authentication_methods\": {\n \"private_key_jwt\": {\n \"credentials\": [\n {\n \"id\": \"id\"\n }\n ]\n },\n \"tls_client_auth\": {\n \"credentials\": [\n {\n \"id\": \"id\"\n }\n ]\n },\n \"self_signed_tls_client_auth\": {\n \"credentials\": [\n {\n \"id\": \"id\"\n }\n ]\n }\n },\n \"require_pushed_authorization_requests\": true,\n \"require_proof_of_possession\": true,\n \"signed_request_object\": {\n \"required\": true,\n \"credentials\": [\n {\n \"id\": \"id\"\n }\n ]\n },\n \"token_vault_privileged_access\": {\n \"credentials\": [\n {\n \"id\": \"id\"\n }\n ],\n \"ip_allowlist\": [\n \"ip_allowlist\"\n ],\n \"grants\": [\n {\n \"connection\": \"connection\",\n \"scopes\": [\n \"scopes\"\n ]\n }\n ]\n },\n \"compliance_level\": \"none\",\n \"skip_non_verifiable_callback_uri_confirmation_prompt\": true,\n \"token_exchange\": {\n \"allow_any_profile_of_type\": [\n \"custom_authentication\"\n ]\n },\n \"par_request_expiry\": 1,\n \"token_quota\": {\n \"client_credentials\": {\n \"enforce\": true,\n \"per_day\": 1,\n \"per_hour\": 1\n }\n },\n \"express_configuration\": {\n \"initiate_login_uri_template\": \"initiate_login_uri_template\",\n \"user_attribute_profile_id\": \"user_attribute_profile_id\",\n \"connection_profile_id\": \"connection_profile_id\",\n \"enable_client\": true,\n \"enable_organization\": true,\n \"linked_clients\": [\n {\n \"client_id\": \"client_id\"\n }\n ],\n \"okta_oin_client_id\": \"okta_oin_client_id\",\n \"admin_login_domain\": \"admin_login_domain\",\n \"oin_submission_id\": \"oin_submission_id\",\n \"okta_oin_listing_url\": \"okta_oin_listing_url\"\n },\n \"b2b_integration_configuration\": {\n \"sso_profiles\": [\n \"sso_profiles\"\n ],\n \"integration_type\": \"custom_auth_server\"\n },\n \"my_organization_configuration\": {\n \"connection_profile_id\": \"connection_profile_id\",\n \"user_attribute_profile_id\": \"user_attribute_profile_id\",\n \"allowed_strategies\": [\n \"pingfederate\"\n ],\n \"third_party_client_access\": {\n \"default_value\": \"block\",\n \"allowed_values\": [\n \"allow\"\n ]\n },\n \"connection_deletion_behavior\": \"allow\",\n \"invitation_landing_client_id\": \"invitation_landing_client_id\",\n \"enforce_permission_ceiling\": true,\n \"enforce_self_assignment_restriction\": true\n },\n \"google_account_linking\": {\n \"allow_streamlined_linking\": true\n },\n \"identity_assertion_authorization_grant\": {\n \"active\": true\n },\n \"anonymous_sessions\": {\n \"active\": true\n },\n \"enforce_anon_session_transfer_network_binding\": \"ip\",\n \"third_party_security_mode\": \"strict\",\n \"oidc_support\": {\n \"is_allowed\": true,\n \"allow_all_scopes\": true,\n \"allowed_scopes\": [\n \"profile\"\n ]\n },\n \"redirection_policy\": \"allow_always\",\n \"resource_server_identifier\": \"resource_server_identifier\",\n \"async_approval_notification_channels\": [\n \"guardian-push\"\n ],\n \"external_metadata_type\": \"cimd\",\n \"external_metadata_created_by\": \"admin\",\n \"external_metadata_status\": \"available\",\n \"agent_id\": \"agent_id\",\n \"external_client_id\": \"external_client_id\",\n \"jwks_uri\": \"jwks_uri\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "b4e5dc6c-c84f-4128-b87a-50876b601f77", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "3dbf1f11-9054-4a8d-b670-96640f3ba9a5", - "name": "Rotate a client secret - default", - "request": { - "urlPathTemplate": "/clients/{id}/rotate-secret", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"client_id\": \"client_id\",\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\",\n \"tenant\": \"tenant\",\n \"name\": \"name\",\n \"description\": \"description\",\n \"global\": true,\n \"client_secret\": \"client_secret\",\n \"app_type\": \"native\",\n \"logo_uri\": \"logo_uri\",\n \"is_first_party\": true,\n \"oidc_conformant\": true,\n \"callbacks\": [\n \"callbacks\"\n ],\n \"allowed_origins\": [\n \"allowed_origins\"\n ],\n \"web_origins\": [\n \"web_origins\"\n ],\n \"client_aliases\": [\n \"client_aliases\"\n ],\n \"allowed_clients\": [\n \"allowed_clients\"\n ],\n \"allowed_logout_urls\": [\n \"allowed_logout_urls\"\n ],\n \"session_transfer\": {\n \"can_create_session_transfer_token\": true,\n \"enforce_cascade_revocation\": true,\n \"allowed_authentication_methods\": [\n \"cookie\"\n ],\n \"enforce_device_binding\": \"ip\",\n \"allow_refresh_token\": true,\n \"enforce_online_refresh_tokens\": true,\n \"delegation\": {\n \"allow_delegated_access\": true,\n \"enforce_device_binding\": \"ip\"\n }\n },\n \"oidc_logout\": {\n \"backchannel_logout_urls\": [\n \"backchannel_logout_urls\"\n ],\n \"backchannel_logout_initiators\": {\n \"mode\": \"custom\",\n \"selected_initiators\": [\n \"rp-logout\"\n ]\n },\n \"backchannel_logout_session_metadata\": {\n \"include\": true\n }\n },\n \"grant_types\": [\n \"grant_types\"\n ],\n \"jwt_configuration\": {\n \"lifetime_in_seconds\": 1,\n \"secret_encoded\": true,\n \"scopes\": {\n \"key\": \"value\"\n },\n \"alg\": \"HS256\"\n },\n \"signing_keys\": [\n {\n \"pkcs7\": \"pkcs7\",\n \"cert\": \"cert\",\n \"subject\": \"subject\"\n }\n ],\n \"encryption_key\": {\n \"pub\": \"pub\",\n \"cert\": \"cert\",\n \"subject\": \"subject\"\n },\n \"sso\": true,\n \"sso_disabled\": true,\n \"cross_origin_authentication\": true,\n \"cross_origin_loc\": \"cross_origin_loc\",\n \"custom_login_page_on\": true,\n \"custom_login_page\": \"custom_login_page\",\n \"custom_login_page_preview\": \"custom_login_page_preview\",\n \"form_template\": \"form_template\",\n \"addons\": {\n \"aws\": {\n \"principal\": \"principal\",\n \"role\": \"role\",\n \"lifetime_in_seconds\": 1\n },\n \"azure_blob\": {\n \"accountName\": \"accountName\",\n \"storageAccessKey\": \"storageAccessKey\",\n \"containerName\": \"containerName\",\n \"blobName\": \"blobName\",\n \"expiration\": 1,\n \"signedIdentifier\": \"signedIdentifier\",\n \"blob_read\": true,\n \"blob_write\": true,\n \"blob_delete\": true,\n \"container_read\": true,\n \"container_write\": true,\n \"container_delete\": true,\n \"container_list\": true\n },\n \"azure_sb\": {\n \"namespace\": \"namespace\",\n \"sasKeyName\": \"sasKeyName\",\n \"sasKey\": \"sasKey\",\n \"entityPath\": \"entityPath\",\n \"expiration\": 1\n },\n \"rms\": {\n \"url\": \"url\"\n },\n \"mscrm\": {\n \"url\": \"url\"\n },\n \"slack\": {\n \"team\": \"team\"\n },\n \"sentry\": {\n \"org_slug\": \"org_slug\",\n \"base_url\": \"base_url\"\n },\n \"box\": {\n \"key\": \"value\"\n },\n \"cloudbees\": {\n \"key\": \"value\"\n },\n \"concur\": {\n \"key\": \"value\"\n },\n \"dropbox\": {\n \"key\": \"value\"\n },\n \"echosign\": {\n \"domain\": \"domain\"\n },\n \"egnyte\": {\n \"domain\": \"domain\"\n },\n \"firebase\": {\n \"secret\": \"secret\",\n \"private_key_id\": \"private_key_id\",\n \"private_key\": \"private_key\",\n \"client_email\": \"client_email\",\n \"lifetime_in_seconds\": 1\n },\n \"newrelic\": {\n \"account\": \"account\"\n },\n \"office365\": {\n \"domain\": \"domain\",\n \"connection\": \"connection\"\n },\n \"salesforce\": {\n \"entity_id\": \"entity_id\"\n },\n \"salesforce_api\": {\n \"clientid\": \"clientid\",\n \"principal\": \"principal\",\n \"communityName\": \"communityName\",\n \"community_url_section\": \"community_url_section\"\n },\n \"salesforce_sandbox_api\": {\n \"clientid\": \"clientid\",\n \"principal\": \"principal\",\n \"communityName\": \"communityName\",\n \"community_url_section\": \"community_url_section\"\n },\n \"samlp\": {\n \"mappings\": {\n \"key\": \"value\"\n },\n \"audience\": \"audience\",\n \"recipient\": \"recipient\",\n \"createUpnClaim\": true,\n \"mapUnknownClaimsAsIs\": true,\n \"passthroughClaimsWithNoMapping\": true,\n \"mapIdentities\": true,\n \"signatureAlgorithm\": \"signatureAlgorithm\",\n \"digestAlgorithm\": \"digestAlgorithm\",\n \"issuer\": \"issuer\",\n \"destination\": \"destination\",\n \"lifetimeInSeconds\": 1,\n \"signResponse\": true,\n \"nameIdentifierFormat\": \"nameIdentifierFormat\",\n \"nameIdentifierProbes\": [\n \"nameIdentifierProbes\"\n ],\n \"authnContextClassRef\": \"authnContextClassRef\"\n },\n \"layer\": {\n \"providerId\": \"providerId\",\n \"keyId\": \"keyId\",\n \"privateKey\": \"privateKey\",\n \"principal\": \"principal\",\n \"expiration\": 1\n },\n \"sap_api\": {\n \"clientid\": \"clientid\",\n \"usernameAttribute\": \"usernameAttribute\",\n \"tokenEndpointUrl\": \"tokenEndpointUrl\",\n \"scope\": \"scope\",\n \"servicePassword\": \"servicePassword\",\n \"nameIdentifierFormat\": \"nameIdentifierFormat\"\n },\n \"sharepoint\": {\n \"url\": \"url\",\n \"external_url\": [\n \"external_url\"\n ]\n },\n \"springcm\": {\n \"acsurl\": \"acsurl\"\n },\n \"wams\": {\n \"masterkey\": \"masterkey\"\n },\n \"wsfed\": {\n \"key\": \"value\"\n },\n \"zendesk\": {\n \"accountName\": \"accountName\"\n },\n \"zoom\": {\n \"account\": \"account\"\n },\n \"sso_integration\": {\n \"name\": \"name\",\n \"version\": \"version\"\n }\n },\n \"token_endpoint_auth_method\": \"none\",\n \"is_token_endpoint_ip_header_trusted\": true,\n \"client_metadata\": {\n \"key\": \"value\"\n },\n \"mobile\": {\n \"android\": {\n \"app_package_name\": \"app_package_name\",\n \"sha256_cert_fingerprints\": [\n \"sha256_cert_fingerprints\"\n ]\n },\n \"ios\": {\n \"team_id\": \"team_id\",\n \"app_bundle_identifier\": \"app_bundle_identifier\"\n }\n },\n \"initiate_login_uri\": \"initiate_login_uri\",\n \"native_social_login\": {\n \"apple\": {\n \"enabled\": true\n },\n \"facebook\": {\n \"enabled\": true\n },\n \"google\": {\n \"enabled\": true\n }\n },\n \"fedcm_login\": {\n \"google\": {\n \"is_enabled\": true\n }\n },\n \"refresh_token\": {\n \"rotation_type\": \"rotating\",\n \"expiration_type\": \"expiring\",\n \"leeway\": 1,\n \"token_lifetime\": 1,\n \"infinite_token_lifetime\": true,\n \"idle_token_lifetime\": 1,\n \"infinite_idle_token_lifetime\": true,\n \"policies\": [\n {\n \"audience\": \"audience\",\n \"scope\": [\n \"scope\"\n ]\n }\n ]\n },\n \"default_organization\": {\n \"organization_id\": \"organization_id\",\n \"flows\": [\n \"client_credentials\"\n ]\n },\n \"organization_usage\": \"deny\",\n \"organization_require_behavior\": \"no_prompt\",\n \"organization_discovery_methods\": [\n \"email\"\n ],\n \"client_authentication_methods\": {\n \"private_key_jwt\": {\n \"credentials\": [\n {\n \"id\": \"id\"\n }\n ]\n },\n \"tls_client_auth\": {\n \"credentials\": [\n {\n \"id\": \"id\"\n }\n ]\n },\n \"self_signed_tls_client_auth\": {\n \"credentials\": [\n {\n \"id\": \"id\"\n }\n ]\n }\n },\n \"require_pushed_authorization_requests\": true,\n \"require_proof_of_possession\": true,\n \"signed_request_object\": {\n \"required\": true,\n \"credentials\": [\n {\n \"id\": \"id\"\n }\n ]\n },\n \"token_vault_privileged_access\": {\n \"credentials\": [\n {\n \"id\": \"id\"\n }\n ],\n \"ip_allowlist\": [\n \"ip_allowlist\"\n ],\n \"grants\": [\n {\n \"connection\": \"connection\",\n \"scopes\": [\n \"scopes\"\n ]\n }\n ]\n },\n \"compliance_level\": \"none\",\n \"skip_non_verifiable_callback_uri_confirmation_prompt\": true,\n \"token_exchange\": {\n \"allow_any_profile_of_type\": [\n \"custom_authentication\"\n ]\n },\n \"par_request_expiry\": 1,\n \"token_quota\": {\n \"client_credentials\": {\n \"enforce\": true,\n \"per_day\": 1,\n \"per_hour\": 1\n }\n },\n \"express_configuration\": {\n \"initiate_login_uri_template\": \"initiate_login_uri_template\",\n \"user_attribute_profile_id\": \"user_attribute_profile_id\",\n \"connection_profile_id\": \"connection_profile_id\",\n \"enable_client\": true,\n \"enable_organization\": true,\n \"linked_clients\": [\n {\n \"client_id\": \"client_id\"\n }\n ],\n \"okta_oin_client_id\": \"okta_oin_client_id\",\n \"admin_login_domain\": \"admin_login_domain\",\n \"oin_submission_id\": \"oin_submission_id\",\n \"okta_oin_listing_url\": \"okta_oin_listing_url\"\n },\n \"b2b_integration_configuration\": {\n \"sso_profiles\": [\n \"sso_profiles\"\n ],\n \"integration_type\": \"custom_auth_server\"\n },\n \"my_organization_configuration\": {\n \"connection_profile_id\": \"connection_profile_id\",\n \"user_attribute_profile_id\": \"user_attribute_profile_id\",\n \"allowed_strategies\": [\n \"pingfederate\"\n ],\n \"third_party_client_access\": {\n \"default_value\": \"block\",\n \"allowed_values\": [\n \"allow\"\n ]\n },\n \"connection_deletion_behavior\": \"allow\",\n \"invitation_landing_client_id\": \"invitation_landing_client_id\",\n \"enforce_permission_ceiling\": true,\n \"enforce_self_assignment_restriction\": true\n },\n \"google_account_linking\": {\n \"allow_streamlined_linking\": true\n },\n \"identity_assertion_authorization_grant\": {\n \"active\": true\n },\n \"anonymous_sessions\": {\n \"active\": true\n },\n \"enforce_anon_session_transfer_network_binding\": \"ip\",\n \"third_party_security_mode\": \"strict\",\n \"oidc_support\": {\n \"is_allowed\": true,\n \"allow_all_scopes\": true,\n \"allowed_scopes\": [\n \"profile\"\n ]\n },\n \"redirection_policy\": \"allow_always\",\n \"resource_server_identifier\": \"resource_server_identifier\",\n \"async_approval_notification_channels\": [\n \"guardian-push\"\n ],\n \"external_metadata_type\": \"cimd\",\n \"external_metadata_created_by\": \"admin\",\n \"external_metadata_status\": \"available\",\n \"agent_id\": \"agent_id\",\n \"external_client_id\": \"external_client_id\",\n \"jwks_uri\": \"jwks_uri\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "3dbf1f11-9054-4a8d-b670-96640f3ba9a5", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "af1dc5c5-16af-447c-8374-e80a178ce120", - "name": "Get Connection Profiles - default", - "request": { - "urlPathTemplate": "/connection-profiles", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "queryParameters": { - "from": { - "equalTo": "from" - }, - "take": { - "equalTo": "1" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"next\": \"next\",\n \"connection_profiles\": [\n {\n \"id\": \"id\",\n \"name\": \"name\",\n \"connection_name_prefix_template\": \"connection_name_prefix_template\",\n \"enabled_features\": [\n \"scim\"\n ],\n \"cross_app_access_resource_app\": {\n \"status\": {\n \"default_value\": \"enabled\"\n }\n }\n }\n ]\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "af1dc5c5-16af-447c-8374-e80a178ce120", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "759e4e87-7cf1-4e78-9d5e-ae5cdd0f4947", - "name": "Create a connection profile - default", - "request": { - "urlPathTemplate": "/connection-profiles", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 201, - "body": "{\n \"id\": \"id\",\n \"name\": \"name\",\n \"organization\": {\n \"show_as_button\": \"none\",\n \"assign_membership_on_login\": \"none\"\n },\n \"connection_name_prefix_template\": \"connection_name_prefix_template\",\n \"enabled_features\": [\n \"scim\"\n ],\n \"strategy_overrides\": {\n \"pingfederate\": {\n \"enabled_features\": [\n \"scim\"\n ]\n },\n \"ad\": {\n \"enabled_features\": [\n \"scim\"\n ]\n },\n \"adfs\": {\n \"enabled_features\": [\n \"scim\"\n ]\n },\n \"waad\": {\n \"enabled_features\": [\n \"scim\"\n ]\n },\n \"google-apps\": {\n \"enabled_features\": [\n \"scim\"\n ]\n },\n \"okta\": {\n \"enabled_features\": [\n \"scim\"\n ]\n },\n \"oidc\": {\n \"enabled_features\": [\n \"scim\"\n ]\n },\n \"samlp\": {\n \"enabled_features\": [\n \"scim\"\n ]\n }\n },\n \"provisioning\": {\n \"scim\": {\n \"tokens\": {\n \"scopes\": [\n \"get:users\"\n ]\n }\n },\n \"google_workspace\": {\n \"sync_users\": true\n }\n },\n \"cross_app_access_resource_app\": {\n \"status\": {\n \"default_value\": \"enabled\",\n \"allowed_values\": [\n \"enabled\"\n ]\n }\n }\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "759e4e87-7cf1-4e78-9d5e-ae5cdd0f4947", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "0d6f52e7-dd90-4579-a469-761793294ec5", - "name": "Get Connection Profile Templates - default", - "request": { - "urlPathTemplate": "/connection-profiles/templates", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"connection_profile_templates\": [\n {\n \"id\": \"id\",\n \"display_name\": \"display_name\"\n }\n ]\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "0d6f52e7-dd90-4579-a469-761793294ec5", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "4e7a3895-5c6c-41cc-b32f-4303e2a973d9", - "name": "Get Connection Profile Template - default", - "request": { - "urlPathTemplate": "/connection-profiles/templates/{id}", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"id\": \"id\",\n \"display_name\": \"display_name\",\n \"template\": {\n \"name\": \"name\",\n \"organization\": {\n \"show_as_button\": \"none\",\n \"assign_membership_on_login\": \"none\"\n },\n \"connection_name_prefix_template\": \"connection_name_prefix_template\",\n \"enabled_features\": [\n \"scim\"\n ],\n \"provisioning\": {\n \"scim\": {\n \"tokens\": {\n \"scopes\": [\n \"get:users\"\n ]\n }\n },\n \"google_workspace\": {\n \"sync_users\": true\n }\n }\n }\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "4e7a3895-5c6c-41cc-b32f-4303e2a973d9", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "d5fff7c1-6be8-487e-a8b2-45fa4f4713d9", - "name": "Get Connection Profile - default", - "request": { - "urlPathTemplate": "/connection-profiles/{id}", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"id\": \"id\",\n \"name\": \"name\",\n \"organization\": {\n \"show_as_button\": \"none\",\n \"assign_membership_on_login\": \"none\"\n },\n \"connection_name_prefix_template\": \"connection_name_prefix_template\",\n \"enabled_features\": [\n \"scim\"\n ],\n \"strategy_overrides\": {\n \"pingfederate\": {\n \"enabled_features\": [\n \"scim\"\n ]\n },\n \"ad\": {\n \"enabled_features\": [\n \"scim\"\n ]\n },\n \"adfs\": {\n \"enabled_features\": [\n \"scim\"\n ]\n },\n \"waad\": {\n \"enabled_features\": [\n \"scim\"\n ]\n },\n \"google-apps\": {\n \"enabled_features\": [\n \"scim\"\n ]\n },\n \"okta\": {\n \"enabled_features\": [\n \"scim\"\n ]\n },\n \"oidc\": {\n \"enabled_features\": [\n \"scim\"\n ]\n },\n \"samlp\": {\n \"enabled_features\": [\n \"scim\"\n ]\n }\n },\n \"provisioning\": {\n \"scim\": {\n \"tokens\": {\n \"scopes\": [\n \"get:users\"\n ]\n }\n },\n \"google_workspace\": {\n \"sync_users\": true\n }\n },\n \"cross_app_access_resource_app\": {\n \"status\": {\n \"default_value\": \"enabled\",\n \"allowed_values\": [\n \"enabled\"\n ]\n }\n }\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "d5fff7c1-6be8-487e-a8b2-45fa4f4713d9", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "fcfdce88-b3c9-4a57-8c4b-672e88f0363c", - "name": "Delete Connection Profile - default", - "request": { - "urlPathTemplate": "/connection-profiles/{id}", - "method": "DELETE", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "fcfdce88-b3c9-4a57-8c4b-672e88f0363c", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "77f167dc-e4c6-478a-b74f-0e1385df797c", - "name": "Modify a Connection Profile - default", - "request": { - "urlPathTemplate": "/connection-profiles/{id}", - "method": "PATCH", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"id\": \"id\",\n \"name\": \"name\",\n \"organization\": {\n \"show_as_button\": \"none\",\n \"assign_membership_on_login\": \"none\"\n },\n \"connection_name_prefix_template\": \"connection_name_prefix_template\",\n \"enabled_features\": [\n \"scim\"\n ],\n \"strategy_overrides\": {\n \"pingfederate\": {\n \"enabled_features\": [\n \"scim\"\n ]\n },\n \"ad\": {\n \"enabled_features\": [\n \"scim\"\n ]\n },\n \"adfs\": {\n \"enabled_features\": [\n \"scim\"\n ]\n },\n \"waad\": {\n \"enabled_features\": [\n \"scim\"\n ]\n },\n \"google-apps\": {\n \"enabled_features\": [\n \"scim\"\n ]\n },\n \"okta\": {\n \"enabled_features\": [\n \"scim\"\n ]\n },\n \"oidc\": {\n \"enabled_features\": [\n \"scim\"\n ]\n },\n \"samlp\": {\n \"enabled_features\": [\n \"scim\"\n ]\n }\n },\n \"provisioning\": {\n \"scim\": {\n \"tokens\": {\n \"scopes\": [\n \"get:users\"\n ]\n }\n },\n \"google_workspace\": {\n \"sync_users\": true\n }\n },\n \"cross_app_access_resource_app\": {\n \"status\": {\n \"default_value\": \"enabled\",\n \"allowed_values\": [\n \"enabled\"\n ]\n }\n }\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "77f167dc-e4c6-478a-b74f-0e1385df797c", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "baf70a92-2b1e-4355-a67e-a94f22a92ab5", - "name": "Get all connections - default", - "request": { - "urlPathTemplate": "/connections", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "queryParameters": { - "include_totals": { - "equalTo": "true" - }, - "from": { - "equalTo": "from" - }, - "take": { - "equalTo": "1" - }, - "strategy": { - "hasExactly": [ - { - "equalTo": "ad" - } - ] - }, - "name": { - "equalTo": "name" - }, - "fields": { - "equalTo": "fields" - }, - "include_fields": { - "equalTo": "true" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"next\": \"next\",\n \"connections\": [\n {\n \"name\": \"name\",\n \"display_name\": \"display_name\",\n \"options\": {\n \"key\": \"value\"\n },\n \"id\": \"id\",\n \"strategy\": \"strategy\",\n \"realms\": [\n \"realms\"\n ],\n \"is_domain_connection\": true,\n \"show_as_button\": true,\n \"authentication\": {\n \"active\": true\n },\n \"connected_accounts\": {\n \"active\": true\n },\n \"cross_app_access_requesting_app\": {\n \"active\": true\n },\n \"cross_app_access_resource_app\": {\n \"status\": \"enabled\"\n }\n }\n ]\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "baf70a92-2b1e-4355-a67e-a94f22a92ab5", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "bfae8759-4528-462e-9a50-239cbd75f902", - "name": "Create a connection - default", - "request": { - "urlPathTemplate": "/connections", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 201, - "body": "{\n \"name\": \"name\",\n \"display_name\": \"display_name\",\n \"options\": {\n \"key\": \"value\"\n },\n \"id\": \"id\",\n \"strategy\": \"strategy\",\n \"realms\": [\n \"realms\"\n ],\n \"enabled_clients\": [\n \"enabled_clients\"\n ],\n \"is_domain_connection\": true,\n \"show_as_button\": true,\n \"metadata\": {\n \"key\": \"value\"\n },\n \"authentication\": {\n \"active\": true\n },\n \"connected_accounts\": {\n \"active\": true,\n \"cross_app_access\": true,\n \"allow_missing_user_id\": true\n },\n \"cross_app_access_requesting_app\": {\n \"active\": true\n },\n \"cross_app_access_resource_app\": {\n \"status\": \"enabled\"\n }\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "bfae8759-4528-462e-9a50-239cbd75f902", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "eb9c1976-0ef9-4666-adde-d2059ed3c1a2", - "name": "Get a connection - default", - "request": { - "urlPathTemplate": "/connections/{id}", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - }, - "queryParameters": { - "fields": { - "equalTo": "fields" - }, - "include_fields": { - "equalTo": "true" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"name\": \"name\",\n \"display_name\": \"display_name\",\n \"options\": {\n \"key\": \"value\"\n },\n \"id\": \"id\",\n \"strategy\": \"strategy\",\n \"realms\": [\n \"realms\"\n ],\n \"enabled_clients\": [\n \"enabled_clients\"\n ],\n \"is_domain_connection\": true,\n \"show_as_button\": true,\n \"metadata\": {\n \"key\": \"value\"\n },\n \"authentication\": {\n \"active\": true\n },\n \"connected_accounts\": {\n \"active\": true,\n \"cross_app_access\": true,\n \"allow_missing_user_id\": true\n },\n \"cross_app_access_requesting_app\": {\n \"active\": true\n },\n \"cross_app_access_resource_app\": {\n \"status\": \"enabled\"\n }\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "eb9c1976-0ef9-4666-adde-d2059ed3c1a2", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "e55d516f-7f79-4796-8adf-e0032183c04c", - "name": "Delete a connection - default", - "request": { - "urlPathTemplate": "/connections/{id}", - "method": "DELETE", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "e55d516f-7f79-4796-8adf-e0032183c04c", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "aa701672-a67f-47fc-9cfd-3d68353d9846", - "name": "Update a connection - default", - "request": { - "urlPathTemplate": "/connections/{id}", - "method": "PATCH", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"name\": \"name\",\n \"display_name\": \"display_name\",\n \"options\": {\n \"key\": \"value\"\n },\n \"id\": \"id\",\n \"strategy\": \"strategy\",\n \"realms\": [\n \"realms\"\n ],\n \"enabled_clients\": [\n \"enabled_clients\"\n ],\n \"is_domain_connection\": true,\n \"show_as_button\": true,\n \"metadata\": {\n \"key\": \"value\"\n },\n \"authentication\": {\n \"active\": true\n },\n \"connected_accounts\": {\n \"active\": true,\n \"cross_app_access\": true,\n \"allow_missing_user_id\": true\n },\n \"cross_app_access_requesting_app\": {\n \"active\": true\n },\n \"cross_app_access_resource_app\": {\n \"status\": \"enabled\"\n }\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "aa701672-a67f-47fc-9cfd-3d68353d9846", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "6e5db857-6ab6-4406-a83f-fb4332f72b48", - "name": "Check connection status - default", - "request": { - "urlPathTemplate": "/connections/{id}/status", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "6e5db857-6ab6-4406-a83f-fb4332f72b48", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "c65f529d-2be4-4dc7-81c0-6d696834184e", - "name": "Get custom domains configurations - default", - "request": { - "urlPathTemplate": "/custom-domains", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "queryParameters": { - "q": { - "equalTo": "q" - }, - "fields": { - "equalTo": "fields" - }, - "include_fields": { - "equalTo": "true" - }, - "sort": { - "equalTo": "sort" - } - } - }, - "response": { - "status": 200, - "body": "[\n {\n \"custom_domain_id\": \"custom_domain_id\",\n \"domain\": \"domain\",\n \"primary\": true,\n \"is_default\": true,\n \"status\": \"pending_verification\",\n \"type\": \"auth0_managed_certs\",\n \"origin_domain_name\": \"origin_domain_name\",\n \"verification\": {\n \"methods\": [\n {\n \"name\": \"cname\",\n \"record\": \"record\"\n }\n ],\n \"status\": \"verified\",\n \"error_msg\": \"error_msg\",\n \"last_verified_at\": \"last_verified_at\"\n },\n \"custom_client_ip_header\": \"custom_client_ip_header\",\n \"tls_policy\": \"tls_policy\",\n \"domain_metadata\": {\n \"key\": \"value\"\n },\n \"certificate\": {\n \"status\": \"provisioning\",\n \"error_msg\": \"error_msg\",\n \"certificate_authority\": \"letsencrypt\",\n \"renews_before\": \"renews_before\"\n },\n \"relying_party_identifier\": \"relying_party_identifier\"\n }\n]", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "c65f529d-2be4-4dc7-81c0-6d696834184e", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "d2917b20-da7e-4962-a75f-362f99682cf9", - "name": "Configure a new custom domain - default", - "request": { - "urlPathTemplate": "/custom-domains", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 201, - "body": "{\n \"custom_domain_id\": \"custom_domain_id\",\n \"domain\": \"domain\",\n \"primary\": true,\n \"is_default\": true,\n \"status\": \"pending_verification\",\n \"type\": \"auth0_managed_certs\",\n \"verification\": {\n \"methods\": [\n {\n \"name\": \"cname\",\n \"record\": \"record\"\n }\n ],\n \"status\": \"verified\",\n \"error_msg\": \"error_msg\",\n \"last_verified_at\": \"last_verified_at\"\n },\n \"custom_client_ip_header\": \"custom_client_ip_header\",\n \"tls_policy\": \"tls_policy\",\n \"domain_metadata\": {\n \"key\": \"value\"\n },\n \"certificate\": {\n \"status\": \"provisioning\",\n \"error_msg\": \"error_msg\",\n \"certificate_authority\": \"letsencrypt\",\n \"renews_before\": \"renews_before\"\n },\n \"relying_party_identifier\": \"relying_party_identifier\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "d2917b20-da7e-4962-a75f-362f99682cf9", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "3d8672c6-5dc1-4542-a4d4-d8538c1fcb62", - "name": "Get the default domain - default", - "request": { - "urlPathTemplate": "/custom-domains/default", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"custom_domain_id\": \"custom_domain_id\",\n \"domain\": \"domain\",\n \"primary\": true,\n \"is_default\": true,\n \"status\": \"pending_verification\",\n \"type\": \"auth0_managed_certs\",\n \"origin_domain_name\": \"origin_domain_name\",\n \"verification\": {\n \"methods\": [\n {\n \"name\": \"cname\",\n \"record\": \"record\"\n }\n ],\n \"status\": \"verified\",\n \"error_msg\": \"error_msg\",\n \"last_verified_at\": \"last_verified_at\"\n },\n \"custom_client_ip_header\": \"custom_client_ip_header\",\n \"tls_policy\": \"tls_policy\",\n \"domain_metadata\": {\n \"key\": \"value\"\n },\n \"certificate\": {\n \"status\": \"provisioning\",\n \"error_msg\": \"error_msg\",\n \"certificate_authority\": \"letsencrypt\",\n \"renews_before\": \"renews_before\"\n },\n \"relying_party_identifier\": \"relying_party_identifier\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "3d8672c6-5dc1-4542-a4d4-d8538c1fcb62", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "9234f676-54a6-42a5-b92b-9d5b98462b82", - "name": "Update the default custom domain for the tenant - default", - "request": { - "urlPathTemplate": "/custom-domains/default", - "method": "PATCH", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"custom_domain_id\": \"custom_domain_id\",\n \"domain\": \"domain\",\n \"primary\": true,\n \"is_default\": true,\n \"status\": \"pending_verification\",\n \"type\": \"auth0_managed_certs\",\n \"origin_domain_name\": \"origin_domain_name\",\n \"verification\": {\n \"methods\": [\n {\n \"name\": \"cname\",\n \"record\": \"record\"\n }\n ],\n \"status\": \"verified\",\n \"error_msg\": \"error_msg\",\n \"last_verified_at\": \"last_verified_at\"\n },\n \"custom_client_ip_header\": \"custom_client_ip_header\",\n \"tls_policy\": \"tls_policy\",\n \"domain_metadata\": {\n \"key\": \"value\"\n },\n \"certificate\": {\n \"status\": \"provisioning\",\n \"error_msg\": \"error_msg\",\n \"certificate_authority\": \"letsencrypt\",\n \"renews_before\": \"renews_before\"\n },\n \"relying_party_identifier\": \"relying_party_identifier\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "9234f676-54a6-42a5-b92b-9d5b98462b82", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "d56d6773-eda9-4b8a-9193-025d27feecb9", - "name": "Get custom domain configuration - default", - "request": { - "urlPathTemplate": "/custom-domains/{id}", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"custom_domain_id\": \"custom_domain_id\",\n \"domain\": \"domain\",\n \"primary\": true,\n \"is_default\": true,\n \"status\": \"pending_verification\",\n \"type\": \"auth0_managed_certs\",\n \"origin_domain_name\": \"origin_domain_name\",\n \"verification\": {\n \"methods\": [\n {\n \"name\": \"cname\",\n \"record\": \"record\"\n }\n ],\n \"status\": \"verified\",\n \"error_msg\": \"error_msg\",\n \"last_verified_at\": \"last_verified_at\"\n },\n \"custom_client_ip_header\": \"custom_client_ip_header\",\n \"tls_policy\": \"tls_policy\",\n \"domain_metadata\": {\n \"key\": \"value\"\n },\n \"certificate\": {\n \"status\": \"provisioning\",\n \"error_msg\": \"error_msg\",\n \"certificate_authority\": \"letsencrypt\",\n \"renews_before\": \"renews_before\"\n },\n \"relying_party_identifier\": \"relying_party_identifier\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "d56d6773-eda9-4b8a-9193-025d27feecb9", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "0d3570c3-79d1-49e1-85ca-aa706fb2834d", - "name": "Delete custom domain configuration - default", - "request": { - "urlPathTemplate": "/custom-domains/{id}", - "method": "DELETE", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "0d3570c3-79d1-49e1-85ca-aa706fb2834d", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "38539a1e-230b-4e70-b2f9-7ae0f252e1b6", - "name": "Update custom domain configuration - default", - "request": { - "urlPathTemplate": "/custom-domains/{id}", - "method": "PATCH", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"custom_domain_id\": \"custom_domain_id\",\n \"domain\": \"domain\",\n \"primary\": true,\n \"is_default\": true,\n \"status\": \"pending_verification\",\n \"type\": \"auth0_managed_certs\",\n \"verification\": {\n \"methods\": [\n {\n \"name\": \"cname\",\n \"record\": \"record\"\n }\n ],\n \"status\": \"verified\",\n \"error_msg\": \"error_msg\",\n \"last_verified_at\": \"last_verified_at\"\n },\n \"custom_client_ip_header\": \"custom_client_ip_header\",\n \"tls_policy\": \"tls_policy\",\n \"domain_metadata\": {\n \"key\": \"value\"\n },\n \"certificate\": {\n \"status\": \"provisioning\",\n \"error_msg\": \"error_msg\",\n \"certificate_authority\": \"letsencrypt\",\n \"renews_before\": \"renews_before\"\n },\n \"relying_party_identifier\": \"relying_party_identifier\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "38539a1e-230b-4e70-b2f9-7ae0f252e1b6", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "cbb866f2-d5e1-4c1e-8e0e-9f50b3b5632c", - "name": "Test a custom domain - default", - "request": { - "urlPathTemplate": "/custom-domains/{id}/test", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"success\": true,\n \"message\": \"message\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "cbb866f2-d5e1-4c1e-8e0e-9f50b3b5632c", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "43d540a8-528e-44db-9bda-83cf1ef8a54d", - "name": "Verify a custom domain - default", - "request": { - "urlPathTemplate": "/custom-domains/{id}/verify", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"custom_domain_id\": \"custom_domain_id\",\n \"domain\": \"domain\",\n \"primary\": true,\n \"status\": \"pending_verification\",\n \"type\": \"auth0_managed_certs\",\n \"cname_api_key\": \"cname_api_key\",\n \"origin_domain_name\": \"origin_domain_name\",\n \"verification\": {\n \"methods\": [\n {\n \"name\": \"cname\",\n \"record\": \"record\"\n }\n ],\n \"status\": \"verified\",\n \"error_msg\": \"error_msg\",\n \"last_verified_at\": \"last_verified_at\"\n },\n \"custom_client_ip_header\": \"custom_client_ip_header\",\n \"tls_policy\": \"tls_policy\",\n \"domain_metadata\": {\n \"key\": \"value\"\n },\n \"certificate\": {\n \"status\": \"provisioning\",\n \"error_msg\": \"error_msg\",\n \"certificate_authority\": \"letsencrypt\",\n \"renews_before\": \"renews_before\"\n }\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "43d540a8-528e-44db-9bda-83cf1ef8a54d", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "cfcb7751-7a75-45bf-b39f-29bac41590da", - "name": "Retrieve device credentials - default", - "request": { - "urlPathTemplate": "/device-credentials", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "queryParameters": { - "page": { - "equalTo": "1" - }, - "per_page": { - "equalTo": "1" - }, - "include_totals": { - "equalTo": "true" - }, - "fields": { - "equalTo": "fields" - }, - "include_fields": { - "equalTo": "true" - }, - "user_id": { - "equalTo": "user_id" - }, - "client_id": { - "equalTo": "client_id" - }, - "type": { - "equalTo": "public_key" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"start\": 1.1,\n \"limit\": 1.1,\n \"total\": 1.1,\n \"device_credentials\": [\n {\n \"id\": \"id\",\n \"device_name\": \"device_name\",\n \"device_id\": \"device_id\",\n \"type\": \"public_key\",\n \"user_id\": \"user_id\",\n \"client_id\": \"client_id\"\n }\n ]\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "cfcb7751-7a75-45bf-b39f-29bac41590da", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "01818d23-c5cc-483a-90d7-5a5b11bf52e7", - "name": "Create a device public key credential - default", - "request": { - "urlPathTemplate": "/device-credentials", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 201, - "body": "{\n \"id\": \"id\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "01818d23-c5cc-483a-90d7-5a5b11bf52e7", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "d2da3529-65a2-4a85-a6c8-c60a55a085ad", - "name": "Delete a device credential - default", - "request": { - "urlPathTemplate": "/device-credentials/{id}", - "method": "DELETE", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "d2da3529-65a2-4a85-a6c8-c60a55a085ad", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "27d925db-b0e4-4cad-bf10-75440adb5dea", - "name": "Create an email template - default", - "request": { - "urlPathTemplate": "/email-templates", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"template\": \"verify_email\",\n \"body\": \"body\",\n \"from\": \"from\",\n \"resultUrl\": \"resultUrl\",\n \"subject\": \"subject\",\n \"syntax\": \"syntax\",\n \"urlLifetimeInSeconds\": 1.1,\n \"includeEmailInRedirect\": true,\n \"enabled\": true\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "27d925db-b0e4-4cad-bf10-75440adb5dea", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "e41992b1-8cf3-4611-9179-334debfd831a", - "name": "Get an email template - default", - "request": { - "urlPathTemplate": "/email-templates/{templateName}", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "templateName": { - "equalTo": "verify_email" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"template\": \"verify_email\",\n \"body\": \"body\",\n \"from\": \"from\",\n \"resultUrl\": \"resultUrl\",\n \"subject\": \"subject\",\n \"syntax\": \"syntax\",\n \"urlLifetimeInSeconds\": 1.1,\n \"includeEmailInRedirect\": true,\n \"enabled\": true\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "e41992b1-8cf3-4611-9179-334debfd831a", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "4b7ee5d7-df46-44d7-8747-1db6f37bcda8", - "name": "Update an email template - default", - "request": { - "urlPathTemplate": "/email-templates/{templateName}", - "method": "PUT", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "templateName": { - "equalTo": "verify_email" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"template\": \"verify_email\",\n \"body\": \"body\",\n \"from\": \"from\",\n \"resultUrl\": \"resultUrl\",\n \"subject\": \"subject\",\n \"syntax\": \"syntax\",\n \"urlLifetimeInSeconds\": 1.1,\n \"includeEmailInRedirect\": true,\n \"enabled\": true\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "4b7ee5d7-df46-44d7-8747-1db6f37bcda8", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "1489d312-c6ca-4277-a1d2-01ce4c4fdad9", - "name": "Patch an email template - default", - "request": { - "urlPathTemplate": "/email-templates/{templateName}", - "method": "PATCH", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "templateName": { - "equalTo": "verify_email" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"template\": \"verify_email\",\n \"body\": \"body\",\n \"from\": \"from\",\n \"resultUrl\": \"resultUrl\",\n \"subject\": \"subject\",\n \"syntax\": \"syntax\",\n \"urlLifetimeInSeconds\": 1.1,\n \"includeEmailInRedirect\": true,\n \"enabled\": true\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "1489d312-c6ca-4277-a1d2-01ce4c4fdad9", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "0fe7f4b8-58ff-4442-9339-c48f5185600f", - "name": "Get event streams - default", - "request": { - "urlPathTemplate": "/event-streams", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "queryParameters": { - "from": { - "equalTo": "from" - }, - "take": { - "equalTo": "1" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"eventStreams\": [\n {\n \"id\": \"id\",\n \"name\": \"name\",\n \"subscriptions\": [\n {}\n ],\n \"destination\": {\n \"type\": \"webhook\",\n \"configuration\": {\n \"webhook_endpoint\": \"webhook_endpoint\",\n \"webhook_authorization\": {\n \"method\": \"basic\",\n \"username\": \"username\"\n }\n }\n },\n \"status\": \"enabled\",\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n }\n ],\n \"next\": \"next\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "0fe7f4b8-58ff-4442-9339-c48f5185600f", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "5b1a29bf-5c5c-45dd-a9fb-64f6944455e0", - "name": "Create an event stream - default", - "request": { - "urlPathTemplate": "/event-streams", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 201, - "body": "{\n \"id\": \"id\",\n \"name\": \"name\",\n \"subscriptions\": [\n {\n \"event_type\": \"event_type\"\n }\n ],\n \"destination\": {\n \"type\": \"webhook\",\n \"configuration\": {\n \"webhook_endpoint\": \"webhook_endpoint\",\n \"webhook_authorization\": {\n \"method\": \"basic\",\n \"username\": \"username\"\n }\n }\n },\n \"status\": \"enabled\",\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "5b1a29bf-5c5c-45dd-a9fb-64f6944455e0", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "85d4a52f-7433-408c-a7cc-30776d9ed641", - "name": "Get an event stream by ID - default", - "request": { - "urlPathTemplate": "/event-streams/{id}", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"id\": \"id\",\n \"name\": \"name\",\n \"subscriptions\": [\n {\n \"event_type\": \"event_type\"\n }\n ],\n \"destination\": {\n \"type\": \"webhook\",\n \"configuration\": {\n \"webhook_endpoint\": \"webhook_endpoint\",\n \"webhook_authorization\": {\n \"method\": \"basic\",\n \"username\": \"username\"\n }\n }\n },\n \"status\": \"enabled\",\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "85d4a52f-7433-408c-a7cc-30776d9ed641", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "4812fcc9-8f28-4732-96d4-8adb072fa78a", - "name": "Delete an event stream - default", - "request": { - "urlPathTemplate": "/event-streams/{id}", - "method": "DELETE", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "4812fcc9-8f28-4732-96d4-8adb072fa78a", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "08468f05-d404-462e-8fdd-ce9dca3f4e3c", - "name": "Update an event stream - default", - "request": { - "urlPathTemplate": "/event-streams/{id}", - "method": "PATCH", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"id\": \"id\",\n \"name\": \"name\",\n \"subscriptions\": [\n {\n \"event_type\": \"event_type\"\n }\n ],\n \"destination\": {\n \"type\": \"webhook\",\n \"configuration\": {\n \"webhook_endpoint\": \"webhook_endpoint\",\n \"webhook_authorization\": {\n \"method\": \"basic\",\n \"username\": \"username\"\n }\n }\n },\n \"status\": \"enabled\",\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "08468f05-d404-462e-8fdd-ce9dca3f4e3c", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "4ba115c6-e86b-4427-9ce9-8468a24916b0", - "name": "Send a test event to an event stream - default", - "request": { - "urlPathTemplate": "/event-streams/{id}/test", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 202, - "body": "{\n \"id\": \"id\",\n \"event_stream_id\": \"event_stream_id\",\n \"status\": \"failed\",\n \"event_type\": \"connection.created\",\n \"attempts\": [\n {\n \"status\": \"failed\",\n \"timestamp\": \"2024-01-15T09:30:00Z\",\n \"error_message\": \"error_message\",\n \"duration\": 1.1\n }\n ],\n \"event\": {\n \"id\": \"id\",\n \"source\": \"source\",\n \"specversion\": \"specversion\",\n \"type\": \"type\",\n \"time\": \"2024-01-15T09:30:00Z\",\n \"data\": {\n \"key\": \"value\"\n }\n }\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "4ba115c6-e86b-4427-9ce9-8468a24916b0", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "396f02e3-b8ea-4947-982d-a5026bc0319f", - "name": "Subscribe to events via Server-Sent Events (SSE) - default", - "request": { - "urlPathTemplate": "/events", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "queryParameters": { - "from": { - "equalTo": "from" - }, - "from_timestamp": { - "equalTo": "from_timestamp" - }, - "event_type": { - "hasExactly": [ - { - "equalTo": "connection.created" - } - ] - } - } - }, - "response": { - "status": 200, - "body": "event: message\ndata: {\"offset\":\"offset\",\"event\":{\"specversion\":\"1.0\",\"type\":\"connection.created\",\"source\":\"source\",\"id\":\"id\",\"time\":\"2024-01-15T09:30:00Z\",\"data\":{\"object\":{\"id\":\"id\",\"name\":\"name\",\"strategy\":\"oidc\"},\"previous_object\":{\"id\":\"id\",\"name\":\"name\",\"strategy\":\"oidc\"},\"context\":{\"tenant\":{\"id\":\"id\"}}},\"a0tenant\":\"a0tenant\",\"a0stream\":\"a0stream\",\"a0purpose\":\"test\"},\"type\":\"connection.created\"}\n", - "headers": { - "Content-Type": "text/event-stream" - } - }, - "uuid": "396f02e3-b8ea-4947-982d-a5026bc0319f", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "9bee2213-71c4-41f8-9350-d50ede2f6c53", - "name": "Get flows - default", - "request": { - "urlPathTemplate": "/flows", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "queryParameters": { - "page": { - "equalTo": "1" - }, - "per_page": { - "equalTo": "1" - }, - "include_totals": { - "equalTo": "true" - }, - "hydrate": { - "hasExactly": [ - { - "equalTo": "form_count" - } - ] - }, - "synchronous": { - "equalTo": "true" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"start\": 1.1,\n \"limit\": 1.1,\n \"total\": 1.1,\n \"flows\": [\n {\n \"id\": \"id\",\n \"name\": \"name\",\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\",\n \"executed_at\": \"executed_at\"\n }\n ]\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "9bee2213-71c4-41f8-9350-d50ede2f6c53", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "6eb24c4a-01ad-47bc-bf9a-927970d1096e", - "name": "Create a flow - default", - "request": { - "urlPathTemplate": "/flows", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 201, - "body": "{\n \"id\": \"id\",\n \"name\": \"name\",\n \"actions\": [\n {\n \"id\": \"id\",\n \"alias\": \"alias\",\n \"type\": \"ACTIVECAMPAIGN\",\n \"action\": \"LIST_CONTACTS\",\n \"allow_failure\": true,\n \"mask_output\": true,\n \"params\": {\n \"connection_id\": \"connection_id\",\n \"email\": \"email\"\n }\n }\n ],\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\",\n \"executed_at\": \"executed_at\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "6eb24c4a-01ad-47bc-bf9a-927970d1096e", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "1eccebc1-db7b-4349-8fae-45c8537e9880", - "name": "Get a flow - default", - "request": { - "urlPathTemplate": "/flows/{id}", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - }, - "queryParameters": { - "hydrate": { - "hasExactly": [ - { - "equalTo": "form_count" - } - ] - } - } - }, - "response": { - "status": 200, - "body": "{\n \"id\": \"id\",\n \"name\": \"name\",\n \"actions\": [\n {\n \"id\": \"id\",\n \"alias\": \"alias\",\n \"type\": \"ACTIVECAMPAIGN\",\n \"action\": \"LIST_CONTACTS\",\n \"allow_failure\": true,\n \"mask_output\": true,\n \"params\": {\n \"connection_id\": \"connection_id\",\n \"email\": \"email\"\n }\n }\n ],\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\",\n \"executed_at\": \"executed_at\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "1eccebc1-db7b-4349-8fae-45c8537e9880", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "4dba8bf4-bec9-4e15-8591-752e9ac3644e", - "name": "Delete a flow - default", - "request": { - "urlPathTemplate": "/flows/{id}", - "method": "DELETE", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "4dba8bf4-bec9-4e15-8591-752e9ac3644e", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "fc07198a-b41e-4537-aec6-1226e9691c86", - "name": "Update a flow - default", - "request": { - "urlPathTemplate": "/flows/{id}", - "method": "PATCH", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"id\": \"id\",\n \"name\": \"name\",\n \"actions\": [\n {\n \"id\": \"id\",\n \"alias\": \"alias\",\n \"type\": \"ACTIVECAMPAIGN\",\n \"action\": \"LIST_CONTACTS\",\n \"allow_failure\": true,\n \"mask_output\": true,\n \"params\": {\n \"connection_id\": \"connection_id\",\n \"email\": \"email\"\n }\n }\n ],\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\",\n \"executed_at\": \"executed_at\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "fc07198a-b41e-4537-aec6-1226e9691c86", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "3bf65872-e8cf-4987-becb-bb082f08419f", - "name": "Get forms - default", - "request": { - "urlPathTemplate": "/forms", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "queryParameters": { - "page": { - "equalTo": "1" - }, - "per_page": { - "equalTo": "1" - }, - "include_totals": { - "equalTo": "true" - }, - "hydrate": { - "hasExactly": [ - { - "equalTo": "flow_count" - } - ] - } - } - }, - "response": { - "status": 200, - "body": "{\n \"start\": 1.1,\n \"limit\": 1.1,\n \"total\": 1.1,\n \"forms\": [\n {\n \"id\": \"id\",\n \"name\": \"name\",\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\",\n \"embedded_at\": \"embedded_at\",\n \"submitted_at\": \"submitted_at\"\n }\n ]\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "3bf65872-e8cf-4987-becb-bb082f08419f", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "6255561a-7fa0-4557-a0e7-5d3a6f40b2a1", - "name": "Create a form - default", - "request": { - "urlPathTemplate": "/forms", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 201, - "body": "{\n \"id\": \"id\",\n \"name\": \"name\",\n \"messages\": {\n \"errors\": {\n \"key\": \"value\"\n },\n \"custom\": {\n \"key\": \"value\"\n }\n },\n \"languages\": {\n \"primary\": \"primary\",\n \"default\": \"default\"\n },\n \"translations\": {\n \"key\": {\n \"key\": \"value\"\n }\n },\n \"nodes\": [\n {\n \"id\": \"id\",\n \"type\": \"FLOW\",\n \"coordinates\": {\n \"x\": 1,\n \"y\": 1\n },\n \"alias\": \"alias\",\n \"config\": {\n \"flow_id\": \"flow_id\"\n }\n }\n ],\n \"start\": {\n \"hidden_fields\": [\n {\n \"key\": \"key\"\n }\n ],\n \"next_node\": \"$ending\",\n \"coordinates\": {\n \"x\": 1,\n \"y\": 1\n }\n },\n \"ending\": {\n \"redirection\": {\n \"delay\": 1,\n \"target\": \"target\"\n },\n \"after_submit\": {\n \"flow_id\": \"flow_id\"\n },\n \"coordinates\": {\n \"x\": 1,\n \"y\": 1\n },\n \"resume_flow\": true\n },\n \"style\": {\n \"css\": \"css\"\n },\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\",\n \"embedded_at\": \"embedded_at\",\n \"submitted_at\": \"submitted_at\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "6255561a-7fa0-4557-a0e7-5d3a6f40b2a1", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "0bf329d0-420d-4f08-aec1-df5f12d67762", - "name": "Get a form - default", - "request": { - "urlPathTemplate": "/forms/{id}", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - }, - "queryParameters": { - "hydrate": { - "hasExactly": [ - { - "equalTo": "flow_count" - } - ] - } - } - }, - "response": { - "status": 200, - "body": "{\n \"id\": \"id\",\n \"name\": \"name\",\n \"messages\": {\n \"errors\": {\n \"key\": \"value\"\n },\n \"custom\": {\n \"key\": \"value\"\n }\n },\n \"languages\": {\n \"primary\": \"primary\",\n \"default\": \"default\"\n },\n \"translations\": {\n \"key\": {\n \"key\": \"value\"\n }\n },\n \"nodes\": [\n {\n \"id\": \"id\",\n \"type\": \"FLOW\",\n \"coordinates\": {\n \"x\": 1,\n \"y\": 1\n },\n \"alias\": \"alias\",\n \"config\": {\n \"flow_id\": \"flow_id\"\n }\n }\n ],\n \"start\": {\n \"hidden_fields\": [\n {\n \"key\": \"key\"\n }\n ],\n \"next_node\": \"$ending\",\n \"coordinates\": {\n \"x\": 1,\n \"y\": 1\n }\n },\n \"ending\": {\n \"redirection\": {\n \"delay\": 1,\n \"target\": \"target\"\n },\n \"after_submit\": {\n \"flow_id\": \"flow_id\"\n },\n \"coordinates\": {\n \"x\": 1,\n \"y\": 1\n },\n \"resume_flow\": true\n },\n \"style\": {\n \"css\": \"css\"\n },\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\",\n \"embedded_at\": \"embedded_at\",\n \"submitted_at\": \"submitted_at\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "0bf329d0-420d-4f08-aec1-df5f12d67762", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "c91995fc-fe8b-410c-9cbf-e13e1d538d1e", - "name": "Delete a form - default", - "request": { - "urlPathTemplate": "/forms/{id}", - "method": "DELETE", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "c91995fc-fe8b-410c-9cbf-e13e1d538d1e", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "944b211b-eacb-4acc-8f40-a3463ae62f37", - "name": "Update a form - default", - "request": { - "urlPathTemplate": "/forms/{id}", - "method": "PATCH", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"id\": \"id\",\n \"name\": \"name\",\n \"messages\": {\n \"errors\": {\n \"key\": \"value\"\n },\n \"custom\": {\n \"key\": \"value\"\n }\n },\n \"languages\": {\n \"primary\": \"primary\",\n \"default\": \"default\"\n },\n \"translations\": {\n \"key\": {\n \"key\": \"value\"\n }\n },\n \"nodes\": [\n {\n \"id\": \"id\",\n \"type\": \"FLOW\",\n \"coordinates\": {\n \"x\": 1,\n \"y\": 1\n },\n \"alias\": \"alias\",\n \"config\": {\n \"flow_id\": \"flow_id\"\n }\n }\n ],\n \"start\": {\n \"hidden_fields\": [\n {\n \"key\": \"key\"\n }\n ],\n \"next_node\": \"$ending\",\n \"coordinates\": {\n \"x\": 1,\n \"y\": 1\n }\n },\n \"ending\": {\n \"redirection\": {\n \"delay\": 1,\n \"target\": \"target\"\n },\n \"after_submit\": {\n \"flow_id\": \"flow_id\"\n },\n \"coordinates\": {\n \"x\": 1,\n \"y\": 1\n },\n \"resume_flow\": true\n },\n \"style\": {\n \"css\": \"css\"\n },\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\",\n \"embedded_at\": \"embedded_at\",\n \"submitted_at\": \"submitted_at\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "944b211b-eacb-4acc-8f40-a3463ae62f37", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "800693b3-6319-4d73-997d-7899f5d8b842", - "name": "Get grants - default", - "request": { - "urlPathTemplate": "/grants", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "queryParameters": { - "per_page": { - "equalTo": "1" - }, - "page": { - "equalTo": "1" - }, - "include_totals": { - "equalTo": "true" - }, - "user_id": { - "equalTo": "user_id" - }, - "client_id": { - "equalTo": "client_id" - }, - "audience": { - "equalTo": "audience" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"start\": 1.1,\n \"limit\": 1.1,\n \"total\": 1.1,\n \"grants\": [\n {\n \"id\": \"id\",\n \"clientID\": \"clientID\",\n \"user_id\": \"user_id\",\n \"audience\": \"audience\",\n \"scope\": [\n \"scope\"\n ],\n \"organization_id\": \"organization_id\"\n }\n ]\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "800693b3-6319-4d73-997d-7899f5d8b842", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "42d14bbf-3fda-4f6e-82c7-0511f2cc78b4", - "name": "Delete a grant by user_id - default", - "request": { - "urlPathTemplate": "/grants", - "method": "DELETE", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "queryParameters": { - "user_id": { - "equalTo": "user_id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "42d14bbf-3fda-4f6e-82c7-0511f2cc78b4", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "0384a6d8-8b93-4c86-9b01-4a78b2056a0b", - "name": "Delete a grant by id - default", - "request": { - "urlPathTemplate": "/grants/{id}", - "method": "DELETE", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "0384a6d8-8b93-4c86-9b01-4a78b2056a0b", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "eef0d4e7-35b8-494e-9e36-bcdefebe33db", - "name": "Get all Groups - default", - "request": { - "urlPathTemplate": "/groups", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "queryParameters": { - "connection_id": { - "equalTo": "connection_id" - }, - "name": { - "equalTo": "name" - }, - "external_id": { - "equalTo": "external_id" - }, - "search": { - "equalTo": "search" - }, - "fields": { - "equalTo": "fields" - }, - "include_fields": { - "equalTo": "true" - }, - "include_totals": { - "equalTo": "true" - }, - "from": { - "equalTo": "from" - }, - "take": { - "equalTo": "1" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"groups\": [\n {\n \"id\": \"id\",\n \"name\": \"name\",\n \"external_id\": \"external_id\",\n \"connection_id\": \"connection_id\",\n \"tenant_name\": \"tenant_name\",\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n }\n ],\n \"next\": \"next\",\n \"start\": 1.1,\n \"limit\": 1.1,\n \"total\": 1.1\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "eef0d4e7-35b8-494e-9e36-bcdefebe33db", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "871b57bd-a1f8-4a23-8337-5872e46fc987", - "name": "Get a Group - default", - "request": { - "urlPathTemplate": "/groups/{id}", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"id\": \"id\",\n \"name\": \"name\",\n \"external_id\": \"external_id\",\n \"connection_id\": \"connection_id\",\n \"tenant_name\": \"tenant_name\",\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "871b57bd-a1f8-4a23-8337-5872e46fc987", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "8cbbad9c-deff-4a46-bd84-189922d9d131", - "name": "Delete a Group - default", - "request": { - "urlPathTemplate": "/groups/{id}", - "method": "DELETE", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "8cbbad9c-deff-4a46-bd84-189922d9d131", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "030ba040-b4c7-4f3a-80f7-7fb0d0f518d4", - "name": "Get Guardian Settings - default", - "request": { - "urlPathTemplate": "/guardian/settings", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"display_remember_me_checkbox\": true,\n \"remember_me_default_value\": true,\n \"mfa_session_inactivity_timeout\": 1,\n \"mfa_session_overall_timeout\": 1\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "030ba040-b4c7-4f3a-80f7-7fb0d0f518d4", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "907da77c-fa4a-45bc-ae41-5c52367c3a9b", - "name": "Set the Guardian Settings - default", - "request": { - "urlPathTemplate": "/guardian/settings", - "method": "PUT", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"display_remember_me_checkbox\": true,\n \"remember_me_default_value\": true,\n \"mfa_session_inactivity_timeout\": 1,\n \"mfa_session_overall_timeout\": 1\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "907da77c-fa4a-45bc-ae41-5c52367c3a9b", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "8e59d144-ec26-4602-a30e-51471fa41a83", - "name": "Get hooks - default", - "request": { - "urlPathTemplate": "/hooks", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "queryParameters": { - "page": { - "equalTo": "1" - }, - "per_page": { - "equalTo": "1" - }, - "include_totals": { - "equalTo": "true" - }, - "enabled": { - "equalTo": "true" - }, - "fields": { - "equalTo": "fields" - }, - "triggerId": { - "equalTo": "credentials-exchange" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"start\": 1.1,\n \"limit\": 1.1,\n \"total\": 1.1,\n \"hooks\": [\n {\n \"triggerId\": \"triggerId\",\n \"id\": \"id\",\n \"name\": \"name\",\n \"enabled\": true,\n \"script\": \"script\",\n \"dependencies\": {\n \"key\": \"value\"\n }\n }\n ]\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "8e59d144-ec26-4602-a30e-51471fa41a83", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "275f3fd6-ea46-4d4e-b0b7-b3ccfa929d1b", - "name": "Create a hook - default", - "request": { - "urlPathTemplate": "/hooks", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 201, - "body": "{\n \"triggerId\": \"triggerId\",\n \"id\": \"id\",\n \"name\": \"name\",\n \"enabled\": true,\n \"script\": \"script\",\n \"dependencies\": {\n \"key\": \"value\"\n }\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "275f3fd6-ea46-4d4e-b0b7-b3ccfa929d1b", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "f14ce249-5900-4b4f-acd6-a9fa7255d829", - "name": "Get a hook - default", - "request": { - "urlPathTemplate": "/hooks/{id}", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - }, - "queryParameters": { - "fields": { - "equalTo": "fields" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"triggerId\": \"triggerId\",\n \"id\": \"id\",\n \"name\": \"name\",\n \"enabled\": true,\n \"script\": \"script\",\n \"dependencies\": {\n \"key\": \"value\"\n }\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "f14ce249-5900-4b4f-acd6-a9fa7255d829", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "fff91330-4870-4c93-ac97-6d27a8f1fb9e", - "name": "Delete a hook - default", - "request": { - "urlPathTemplate": "/hooks/{id}", - "method": "DELETE", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "fff91330-4870-4c93-ac97-6d27a8f1fb9e", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "5b56e935-667b-4af8-be86-94a3aa61008d", - "name": "Update a hook - default", - "request": { - "urlPathTemplate": "/hooks/{id}", - "method": "PATCH", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 201, - "body": "{\n \"triggerId\": \"triggerId\",\n \"id\": \"id\",\n \"name\": \"name\",\n \"enabled\": true,\n \"script\": \"script\",\n \"dependencies\": {\n \"key\": \"value\"\n }\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "5b56e935-667b-4af8-be86-94a3aa61008d", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "fcdce95c-c559-471a-985a-45682f16bc5a", - "name": "Get a job - default", - "request": { - "urlPathTemplate": "/jobs/{id}", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"status\": \"status\",\n \"type\": \"type\",\n \"created_at\": \"created_at\",\n \"id\": \"id\",\n \"connection_id\": \"connection_id\",\n \"location\": \"location\",\n \"percentage_done\": 1,\n \"time_left_seconds\": 1,\n \"format\": \"json\",\n \"status_details\": \"status_details\",\n \"summary\": {\n \"failed\": 1,\n \"updated\": 1,\n \"inserted\": 1,\n \"total\": 1\n }\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "fcdce95c-c559-471a-985a-45682f16bc5a", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "0ce12a9c-ca36-486e-aa2a-e41e0eb1ef44", - "name": "Get log streams - default", - "request": { - "urlPathTemplate": "/log-streams", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "[\n {\n \"id\": \"id\",\n \"name\": \"name\",\n \"status\": \"active\",\n \"type\": \"http\",\n \"isPriority\": true,\n \"filters\": [\n {}\n ],\n \"pii_config\": {\n \"log_fields\": [\n \"first_name\"\n ],\n \"method\": \"mask\",\n \"algorithm\": \"xxhash\"\n },\n \"sink\": {\n \"httpAuthorization\": \"httpAuthorization\",\n \"httpContentFormat\": \"JSONARRAY\",\n \"httpContentType\": \"httpContentType\",\n \"httpEndpoint\": \"httpEndpoint\",\n \"httpCustomHeaders\": [\n {}\n ]\n }\n }\n]", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "0ce12a9c-ca36-486e-aa2a-e41e0eb1ef44", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "3cac6a38-0d9f-40e0-983f-439cbedfa617", - "name": "Create a log stream - default", - "request": { - "urlPathTemplate": "/log-streams", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"id\": \"id\",\n \"name\": \"name\",\n \"status\": \"active\",\n \"type\": \"http\",\n \"isPriority\": true,\n \"filters\": [\n {\n \"type\": \"category\",\n \"name\": \"auth.login.fail\"\n }\n ],\n \"pii_config\": {\n \"log_fields\": [\n \"first_name\"\n ],\n \"method\": \"mask\",\n \"algorithm\": \"xxhash\"\n },\n \"sink\": {\n \"httpAuthorization\": \"httpAuthorization\",\n \"httpContentFormat\": \"JSONARRAY\",\n \"httpContentType\": \"httpContentType\",\n \"httpEndpoint\": \"httpEndpoint\",\n \"httpCustomHeaders\": [\n {}\n ]\n }\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "3cac6a38-0d9f-40e0-983f-439cbedfa617", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "046f0424-b1aa-49bc-bf20-db22d7a7bdf4", - "name": "Get log stream by ID - default", - "request": { - "urlPathTemplate": "/log-streams/{id}", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"id\": \"id\",\n \"name\": \"name\",\n \"status\": \"active\",\n \"type\": \"http\",\n \"isPriority\": true,\n \"filters\": [\n {\n \"type\": \"category\",\n \"name\": \"auth.login.fail\"\n }\n ],\n \"pii_config\": {\n \"log_fields\": [\n \"first_name\"\n ],\n \"method\": \"mask\",\n \"algorithm\": \"xxhash\"\n },\n \"sink\": {\n \"httpAuthorization\": \"httpAuthorization\",\n \"httpContentFormat\": \"JSONARRAY\",\n \"httpContentType\": \"httpContentType\",\n \"httpEndpoint\": \"httpEndpoint\",\n \"httpCustomHeaders\": [\n {}\n ]\n }\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "046f0424-b1aa-49bc-bf20-db22d7a7bdf4", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "9fb04f8d-0fba-4891-8126-013d70d871aa", - "name": "Delete log stream - default", - "request": { - "urlPathTemplate": "/log-streams/{id}", - "method": "DELETE", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "9fb04f8d-0fba-4891-8126-013d70d871aa", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "8d10acdd-e185-496c-98c4-c91d469e6ed2", - "name": "Update a log stream - default", - "request": { - "urlPathTemplate": "/log-streams/{id}", - "method": "PATCH", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"id\": \"id\",\n \"name\": \"name\",\n \"status\": \"active\",\n \"type\": \"http\",\n \"isPriority\": true,\n \"filters\": [\n {\n \"type\": \"category\",\n \"name\": \"auth.login.fail\"\n }\n ],\n \"pii_config\": {\n \"log_fields\": [\n \"first_name\"\n ],\n \"method\": \"mask\",\n \"algorithm\": \"xxhash\"\n },\n \"sink\": {\n \"httpAuthorization\": \"httpAuthorization\",\n \"httpContentFormat\": \"JSONARRAY\",\n \"httpContentType\": \"httpContentType\",\n \"httpEndpoint\": \"httpEndpoint\",\n \"httpCustomHeaders\": [\n {}\n ]\n }\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "8d10acdd-e185-496c-98c4-c91d469e6ed2", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "dc2b7d2b-54f2-4803-8bf1-bd0cfdcb6132", - "name": "Search log events - default", - "request": { - "urlPathTemplate": "/logs", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "queryParameters": { - "page": { - "equalTo": "1" - }, - "per_page": { - "equalTo": "1" - }, - "sort": { - "equalTo": "sort" - }, - "fields": { - "equalTo": "fields" - }, - "include_fields": { - "equalTo": "true" - }, - "include_totals": { - "equalTo": "true" - }, - "search": { - "equalTo": "search" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"start\": 1.1,\n \"limit\": 1.1,\n \"length\": 1.1,\n \"total\": 1.1,\n \"logs\": [\n {\n \"date\": \"date\",\n \"type\": \"type\",\n \"description\": \"description\",\n \"connection\": \"connection\",\n \"connection_id\": \"connection_id\",\n \"client_id\": \"client_id\",\n \"client_name\": \"client_name\",\n \"ip\": \"ip\",\n \"hostname\": \"hostname\",\n \"user_id\": \"user_id\",\n \"user_name\": \"user_name\",\n \"audience\": \"audience\",\n \"scope\": \"scope\",\n \"strategy\": \"strategy\",\n \"strategy_type\": \"strategy_type\",\n \"log_id\": \"log_id\",\n \"isMobile\": true,\n \"details\": {\n \"key\": \"value\"\n },\n \"user_agent\": \"user_agent\"\n }\n ]\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "dc2b7d2b-54f2-4803-8bf1-bd0cfdcb6132", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "b10cc251-b48a-429a-a136-810cdb7290fc", - "name": "Get a log event by id - default", - "request": { - "urlPathTemplate": "/logs/{id}", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"date\": \"date\",\n \"type\": \"type\",\n \"description\": \"description\",\n \"connection\": \"connection\",\n \"connection_id\": \"connection_id\",\n \"client_id\": \"client_id\",\n \"client_name\": \"client_name\",\n \"ip\": \"ip\",\n \"hostname\": \"hostname\",\n \"user_id\": \"user_id\",\n \"user_name\": \"user_name\",\n \"audience\": \"audience\",\n \"scope\": \"scope\",\n \"strategy\": \"strategy\",\n \"strategy_type\": \"strategy_type\",\n \"log_id\": \"log_id\",\n \"isMobile\": true,\n \"details\": {\n \"key\": \"value\"\n },\n \"user_agent\": \"user_agent\",\n \"security_context\": {\n \"ja3\": \"ja3\",\n \"ja4\": \"ja4\"\n },\n \"location_info\": {\n \"country_code\": \"country_code\",\n \"country_code3\": \"country_code3\",\n \"country_name\": \"country_name\",\n \"city_name\": \"city_name\",\n \"latitude\": 1.1,\n \"longitude\": 1.1,\n \"time_zone\": \"time_zone\",\n \"continent_code\": \"continent_code\"\n }\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "b10cc251-b48a-429a-a136-810cdb7290fc", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "858e0070-39b1-460a-a2d5-53d0a5c3524a", - "name": "Get all access control list entries for a tenant - default", - "request": { - "urlPathTemplate": "/network-acls", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "queryParameters": { - "page": { - "equalTo": "1" - }, - "per_page": { - "equalTo": "1" - }, - "include_totals": { - "equalTo": "true" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"network_acls\": [\n {\n \"id\": \"id\",\n \"description\": \"description\",\n \"active\": true,\n \"priority\": 1.1,\n \"rule\": {\n \"action\": {},\n \"scope\": \"management\"\n },\n \"created_at\": \"created_at\",\n \"updated_at\": \"updated_at\"\n }\n ],\n \"start\": 1.1,\n \"limit\": 1.1,\n \"total\": 1.1\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "858e0070-39b1-460a-a2d5-53d0a5c3524a", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "f8a963bf-a53b-445d-b1d7-e21a4b253957", - "name": "Create Access Control List - default", - "request": { - "urlPathTemplate": "/network-acls", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "f8a963bf-a53b-445d-b1d7-e21a4b253957", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "fb3b0b5f-3ab2-4b19-b79b-8f10391b7deb", - "name": "Get a specific access control list entry for a tenant - default", - "request": { - "urlPathTemplate": "/network-acls/{id}", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"id\": \"id\",\n \"description\": \"description\",\n \"active\": true,\n \"priority\": 1.1,\n \"rule\": {\n \"action\": {\n \"block\": true,\n \"allow\": true,\n \"log\": true,\n \"redirect\": true,\n \"redirect_uri\": \"redirect_uri\"\n },\n \"match\": {\n \"asns\": [\n 1\n ],\n \"auth0_managed\": [\n \"auth0_managed\"\n ],\n \"geo_country_codes\": [\n \"geo_country_codes\"\n ],\n \"geo_subdivision_codes\": [\n \"geo_subdivision_codes\"\n ],\n \"ipv4_cidrs\": [\n \"ipv4_cidrs\"\n ],\n \"ipv6_cidrs\": [\n \"ipv6_cidrs\"\n ],\n \"ja3_fingerprints\": [\n \"ja3_fingerprints\"\n ],\n \"ja4_fingerprints\": [\n \"ja4_fingerprints\"\n ],\n \"user_agents\": [\n \"user_agents\"\n ],\n \"hostnames\": [\n \"hostnames\"\n ],\n \"connecting_ipv4_cidrs\": [\n \"connecting_ipv4_cidrs\"\n ],\n \"connecting_ipv6_cidrs\": [\n \"connecting_ipv6_cidrs\"\n ],\n \"http_message_signature\": {\n \"keys\": [\n {\n \"id\": \"id\"\n }\n ]\n }\n },\n \"not_match\": {\n \"asns\": [\n 1\n ],\n \"auth0_managed\": [\n \"auth0_managed\"\n ],\n \"geo_country_codes\": [\n \"geo_country_codes\"\n ],\n \"geo_subdivision_codes\": [\n \"geo_subdivision_codes\"\n ],\n \"ipv4_cidrs\": [\n \"ipv4_cidrs\"\n ],\n \"ipv6_cidrs\": [\n \"ipv6_cidrs\"\n ],\n \"ja3_fingerprints\": [\n \"ja3_fingerprints\"\n ],\n \"ja4_fingerprints\": [\n \"ja4_fingerprints\"\n ],\n \"user_agents\": [\n \"user_agents\"\n ],\n \"hostnames\": [\n \"hostnames\"\n ],\n \"connecting_ipv4_cidrs\": [\n \"connecting_ipv4_cidrs\"\n ],\n \"connecting_ipv6_cidrs\": [\n \"connecting_ipv6_cidrs\"\n ],\n \"http_message_signature\": {\n \"keys\": [\n {\n \"id\": \"id\"\n }\n ]\n }\n },\n \"match_all\": true,\n \"scope\": \"management\"\n },\n \"created_at\": \"created_at\",\n \"updated_at\": \"updated_at\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "fb3b0b5f-3ab2-4b19-b79b-8f10391b7deb", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "b26d23ea-edcd-4512-a319-51a6e98131a0", - "name": "Update Access Control List - default", - "request": { - "urlPathTemplate": "/network-acls/{id}", - "method": "PUT", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"id\": \"id\",\n \"description\": \"description\",\n \"active\": true,\n \"priority\": 1.1,\n \"rule\": {\n \"action\": {\n \"block\": true,\n \"allow\": true,\n \"log\": true,\n \"redirect\": true,\n \"redirect_uri\": \"redirect_uri\"\n },\n \"match\": {\n \"asns\": [\n 1\n ],\n \"auth0_managed\": [\n \"auth0_managed\"\n ],\n \"geo_country_codes\": [\n \"geo_country_codes\"\n ],\n \"geo_subdivision_codes\": [\n \"geo_subdivision_codes\"\n ],\n \"ipv4_cidrs\": [\n \"ipv4_cidrs\"\n ],\n \"ipv6_cidrs\": [\n \"ipv6_cidrs\"\n ],\n \"ja3_fingerprints\": [\n \"ja3_fingerprints\"\n ],\n \"ja4_fingerprints\": [\n \"ja4_fingerprints\"\n ],\n \"user_agents\": [\n \"user_agents\"\n ],\n \"hostnames\": [\n \"hostnames\"\n ],\n \"connecting_ipv4_cidrs\": [\n \"connecting_ipv4_cidrs\"\n ],\n \"connecting_ipv6_cidrs\": [\n \"connecting_ipv6_cidrs\"\n ],\n \"http_message_signature\": {\n \"keys\": [\n {\n \"id\": \"id\"\n }\n ]\n }\n },\n \"not_match\": {\n \"asns\": [\n 1\n ],\n \"auth0_managed\": [\n \"auth0_managed\"\n ],\n \"geo_country_codes\": [\n \"geo_country_codes\"\n ],\n \"geo_subdivision_codes\": [\n \"geo_subdivision_codes\"\n ],\n \"ipv4_cidrs\": [\n \"ipv4_cidrs\"\n ],\n \"ipv6_cidrs\": [\n \"ipv6_cidrs\"\n ],\n \"ja3_fingerprints\": [\n \"ja3_fingerprints\"\n ],\n \"ja4_fingerprints\": [\n \"ja4_fingerprints\"\n ],\n \"user_agents\": [\n \"user_agents\"\n ],\n \"hostnames\": [\n \"hostnames\"\n ],\n \"connecting_ipv4_cidrs\": [\n \"connecting_ipv4_cidrs\"\n ],\n \"connecting_ipv6_cidrs\": [\n \"connecting_ipv6_cidrs\"\n ],\n \"http_message_signature\": {\n \"keys\": [\n {\n \"id\": \"id\"\n }\n ]\n }\n },\n \"match_all\": true,\n \"scope\": \"management\"\n },\n \"created_at\": \"created_at\",\n \"updated_at\": \"updated_at\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "b26d23ea-edcd-4512-a319-51a6e98131a0", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "6df7bc0d-d051-4e5f-8f62-608e9d028cc6", - "name": "Delete Access Control List - default", - "request": { - "urlPathTemplate": "/network-acls/{id}", - "method": "DELETE", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "6df7bc0d-d051-4e5f-8f62-608e9d028cc6", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "80648d37-b6ab-4ab4-ba80-17f00933453d", - "name": "Partial Update for an Access Control List - default", - "request": { - "urlPathTemplate": "/network-acls/{id}", - "method": "PATCH", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"id\": \"id\",\n \"description\": \"description\",\n \"active\": true,\n \"priority\": 1.1,\n \"rule\": {\n \"action\": {\n \"block\": true,\n \"allow\": true,\n \"log\": true,\n \"redirect\": true,\n \"redirect_uri\": \"redirect_uri\"\n },\n \"match\": {\n \"asns\": [\n 1\n ],\n \"auth0_managed\": [\n \"auth0_managed\"\n ],\n \"geo_country_codes\": [\n \"geo_country_codes\"\n ],\n \"geo_subdivision_codes\": [\n \"geo_subdivision_codes\"\n ],\n \"ipv4_cidrs\": [\n \"ipv4_cidrs\"\n ],\n \"ipv6_cidrs\": [\n \"ipv6_cidrs\"\n ],\n \"ja3_fingerprints\": [\n \"ja3_fingerprints\"\n ],\n \"ja4_fingerprints\": [\n \"ja4_fingerprints\"\n ],\n \"user_agents\": [\n \"user_agents\"\n ],\n \"hostnames\": [\n \"hostnames\"\n ],\n \"connecting_ipv4_cidrs\": [\n \"connecting_ipv4_cidrs\"\n ],\n \"connecting_ipv6_cidrs\": [\n \"connecting_ipv6_cidrs\"\n ],\n \"http_message_signature\": {\n \"keys\": [\n {\n \"id\": \"id\"\n }\n ]\n }\n },\n \"not_match\": {\n \"asns\": [\n 1\n ],\n \"auth0_managed\": [\n \"auth0_managed\"\n ],\n \"geo_country_codes\": [\n \"geo_country_codes\"\n ],\n \"geo_subdivision_codes\": [\n \"geo_subdivision_codes\"\n ],\n \"ipv4_cidrs\": [\n \"ipv4_cidrs\"\n ],\n \"ipv6_cidrs\": [\n \"ipv6_cidrs\"\n ],\n \"ja3_fingerprints\": [\n \"ja3_fingerprints\"\n ],\n \"ja4_fingerprints\": [\n \"ja4_fingerprints\"\n ],\n \"user_agents\": [\n \"user_agents\"\n ],\n \"hostnames\": [\n \"hostnames\"\n ],\n \"connecting_ipv4_cidrs\": [\n \"connecting_ipv4_cidrs\"\n ],\n \"connecting_ipv6_cidrs\": [\n \"connecting_ipv6_cidrs\"\n ],\n \"http_message_signature\": {\n \"keys\": [\n {\n \"id\": \"id\"\n }\n ]\n }\n },\n \"match_all\": true,\n \"scope\": \"management\"\n },\n \"created_at\": \"created_at\",\n \"updated_at\": \"updated_at\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "80648d37-b6ab-4ab4-ba80-17f00933453d", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "a4016e68-1c58-4a5c-b698-27ca350b937c", - "name": "Get organizations - default", - "request": { - "urlPathTemplate": "/organizations", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "queryParameters": { - "include_totals": { - "equalTo": "true" - }, - "from": { - "equalTo": "from" - }, - "take": { - "equalTo": "1" - }, - "sort": { - "equalTo": "sort" - }, - "include_client_association_for": { - "equalTo": "include_client_association_for" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"next\": \"next\",\n \"organizations\": [\n {\n \"id\": \"id\",\n \"name\": \"name\",\n \"display_name\": \"display_name\",\n \"token_quota\": {\n \"client_credentials\": {}\n },\n \"third_party_client_access\": \"block\",\n \"is_app_entitlement_active\": true\n }\n ]\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "a4016e68-1c58-4a5c-b698-27ca350b937c", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "61349de2-c20a-4002-822b-9ed84e87ca1f", - "name": "Create an Organization - default", - "request": { - "urlPathTemplate": "/organizations", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 201, - "body": "{\n \"id\": \"id\",\n \"name\": \"name\",\n \"display_name\": \"display_name\",\n \"branding\": {\n \"logo_url\": \"logo_url\",\n \"colors\": {\n \"primary\": \"primary\",\n \"page_background\": \"page_background\"\n }\n },\n \"metadata\": {\n \"key\": \"value\"\n },\n \"token_quota\": {\n \"client_credentials\": {\n \"enforce\": true,\n \"per_day\": 1,\n \"per_hour\": 1\n }\n },\n \"third_party_client_access\": \"block\",\n \"is_app_entitlement_active\": true,\n \"client\": {\n \"use_for_member_access\": true\n },\n \"enabled_connections\": [\n {\n \"connection_id\": \"connection_id\",\n \"assign_membership_on_login\": true,\n \"show_as_button\": true,\n \"is_signup_enabled\": true\n }\n ]\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "61349de2-c20a-4002-822b-9ed84e87ca1f", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "dabd338a-8798-40ba-aaa0-8ce9b262b711", - "name": "Get organization by name - default", - "request": { - "urlPathTemplate": "/organizations/name/{name}", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "name": { - "equalTo": "name" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"id\": \"id\",\n \"name\": \"name\",\n \"display_name\": \"display_name\",\n \"branding\": {\n \"logo_url\": \"logo_url\",\n \"colors\": {\n \"primary\": \"primary\",\n \"page_background\": \"page_background\"\n }\n },\n \"metadata\": {\n \"key\": \"value\"\n },\n \"token_quota\": {\n \"client_credentials\": {\n \"enforce\": true,\n \"per_day\": 1,\n \"per_hour\": 1\n }\n },\n \"third_party_client_access\": \"block\",\n \"is_app_entitlement_active\": true,\n \"client\": {\n \"use_for_member_access\": true\n }\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "dabd338a-8798-40ba-aaa0-8ce9b262b711", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "649058a2-0c93-4131-92c0-7ce68e3716db", - "name": "Search organizations - default", - "request": { - "urlPathTemplate": "/organizations/search", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "queryParameters": { - "q": { - "equalTo": "q" - }, - "parser": { - "equalTo": "scim" - }, - "take": { - "equalTo": "1" - }, - "from": { - "equalTo": "from" - }, - "sort": { - "equalTo": "name" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"organizations\": [\n {\n \"id\": \"id\",\n \"name\": \"name\",\n \"display_name\": \"display_name\",\n \"token_quota\": {\n \"client_credentials\": {}\n },\n \"third_party_client_access\": \"block\",\n \"is_app_entitlement_active\": true\n }\n ],\n \"next\": \"next\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "649058a2-0c93-4131-92c0-7ce68e3716db", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "da7fe10b-f528-48cf-b4e0-8d769617a66c", - "name": "Get organization - default", - "request": { - "urlPathTemplate": "/organizations/{id}", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"id\": \"id\",\n \"name\": \"name\",\n \"display_name\": \"display_name\",\n \"branding\": {\n \"logo_url\": \"logo_url\",\n \"colors\": {\n \"primary\": \"primary\",\n \"page_background\": \"page_background\"\n }\n },\n \"metadata\": {\n \"key\": \"value\"\n },\n \"token_quota\": {\n \"client_credentials\": {\n \"enforce\": true,\n \"per_day\": 1,\n \"per_hour\": 1\n }\n },\n \"third_party_client_access\": \"block\",\n \"is_app_entitlement_active\": true,\n \"client\": {\n \"use_for_member_access\": true\n }\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "da7fe10b-f528-48cf-b4e0-8d769617a66c", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "82031fa8-9043-489a-aa84-46bae3772393", - "name": "Delete organization - default", - "request": { - "urlPathTemplate": "/organizations/{id}", - "method": "DELETE", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "82031fa8-9043-489a-aa84-46bae3772393", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "a03fdbdd-77b7-4c31-9a5f-6d63cf2c017a", - "name": "Modify an Organization - default", - "request": { - "urlPathTemplate": "/organizations/{id}", - "method": "PATCH", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"id\": \"id\",\n \"name\": \"name\",\n \"display_name\": \"display_name\",\n \"branding\": {\n \"logo_url\": \"logo_url\",\n \"colors\": {\n \"primary\": \"primary\",\n \"page_background\": \"page_background\"\n }\n },\n \"metadata\": {\n \"key\": \"value\"\n },\n \"token_quota\": {\n \"client_credentials\": {\n \"enforce\": true,\n \"per_day\": 1,\n \"per_hour\": 1\n }\n },\n \"third_party_client_access\": \"block\",\n \"is_app_entitlement_active\": true,\n \"client\": {\n \"use_for_member_access\": true\n }\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "a03fdbdd-77b7-4c31-9a5f-6d63cf2c017a", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "4ddbe67a-e92f-41ef-a60a-225432ebeeec", - "name": "Retrieve all portals - default", - "request": { - "urlPathTemplate": "/portals", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"portals\": [\n {\n \"id\": \"id\",\n \"name\": \"name\",\n \"slug\": \"slug\",\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n }\n ]\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "4ddbe67a-e92f-41ef-a60a-225432ebeeec", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "df8690a5-5c50-48cd-a77a-783311cb9838", - "name": "Create a portal - default", - "request": { - "urlPathTemplate": "/portals", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 201, - "body": "{\n \"id\": \"id\",\n \"name\": \"name\",\n \"navigation\": {\n \"sidebar\": {\n \"components\": [\n {\n \"config\": {\n \"label\": \"label\",\n \"url\": \"url\"\n },\n \"type\": \"sidebar:component:auth0:external_link\"\n }\n ]\n }\n },\n \"pages\": {\n \"default\": \"default\",\n \"standard\": [\n {\n \"title\": \"title\",\n \"slug\": \"slug\"\n }\n ]\n },\n \"slug\": \"slug\",\n \"client\": {\n \"token_endpoint_auth_method\": \"client_secret_post\",\n \"client_id\": \"client_id\"\n },\n \"custom_code\": {\n \"head\": \"head\"\n },\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "df8690a5-5c50-48cd-a77a-783311cb9838", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "8811b138-cc96-4b85-b569-e52e2bbe3fa8", - "name": "Get a portal - default", - "request": { - "urlPathTemplate": "/portals/{id}", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"id\": \"id\",\n \"name\": \"name\",\n \"navigation\": {\n \"sidebar\": {\n \"components\": [\n {\n \"config\": {\n \"label\": \"label\",\n \"url\": \"url\"\n },\n \"type\": \"sidebar:component:auth0:external_link\"\n }\n ]\n }\n },\n \"pages\": {\n \"default\": \"default\",\n \"standard\": [\n {\n \"title\": \"title\",\n \"slug\": \"slug\"\n }\n ]\n },\n \"slug\": \"slug\",\n \"client\": {\n \"token_endpoint_auth_method\": \"client_secret_post\",\n \"client_id\": \"client_id\"\n },\n \"custom_code\": {\n \"head\": \"head\"\n },\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "8811b138-cc96-4b85-b569-e52e2bbe3fa8", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "767fc5f8-1b0b-4219-b009-a2a630c22250", - "name": "Delete a portal - default", - "request": { - "urlPathTemplate": "/portals/{id}", - "method": "DELETE", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "767fc5f8-1b0b-4219-b009-a2a630c22250", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "db5492fb-a2c3-461b-8042-7148be3185aa", - "name": "Update a portal - default", - "request": { - "urlPathTemplate": "/portals/{id}", - "method": "PATCH", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"id\": \"id\",\n \"name\": \"name\",\n \"navigation\": {\n \"sidebar\": {\n \"components\": [\n {\n \"config\": {\n \"label\": \"label\",\n \"url\": \"url\"\n },\n \"type\": \"sidebar:component:auth0:external_link\"\n }\n ]\n }\n },\n \"pages\": {\n \"default\": \"default\",\n \"standard\": [\n {\n \"title\": \"title\",\n \"slug\": \"slug\"\n }\n ]\n },\n \"slug\": \"slug\",\n \"client\": {\n \"token_endpoint_auth_method\": \"client_secret_post\",\n \"client_id\": \"client_id\"\n },\n \"custom_code\": {\n \"head\": \"head\"\n },\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "db5492fb-a2c3-461b-8042-7148be3185aa", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "a5b27e78-ff1e-480e-a2ff-cda4a7e2a15e", - "name": "Get prompt settings - default", - "request": { - "urlPathTemplate": "/prompts", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"universal_login_experience\": \"new\",\n \"identifier_first\": true,\n \"webauthn_platform_first_factor\": true\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "a5b27e78-ff1e-480e-a2ff-cda4a7e2a15e", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "170f5b5a-a3d8-415f-b2ab-64eb7e3b775b", - "name": "Update prompt settings - default", - "request": { - "urlPathTemplate": "/prompts", - "method": "PATCH", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"universal_login_experience\": \"new\",\n \"identifier_first\": true,\n \"webauthn_platform_first_factor\": true\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "170f5b5a-a3d8-415f-b2ab-64eb7e3b775b", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "ffa760a3-13f2-4a02-8c0b-0a50833659d1", - "name": "Get rate limit policies - default", - "request": { - "urlPathTemplate": "/rate-limit-policies", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "queryParameters": { - "resource": { - "equalTo": "oauth_authentication_api" - }, - "consumer": { - "equalTo": "client" - }, - "consumer_selector": { - "equalTo": "consumer_selector" - }, - "take": { - "equalTo": "1" - }, - "from": { - "equalTo": "from" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"rate_limit_policies\": [\n {\n \"id\": \"id\",\n \"resource\": \"oauth_authentication_api\",\n \"consumer\": \"client\",\n \"consumer_selector\": \"consumer_selector\",\n \"configuration\": {\n \"action\": \"allow\"\n },\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n }\n ],\n \"next\": \"next\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "ffa760a3-13f2-4a02-8c0b-0a50833659d1", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "8d96433a-d9e1-4c04-b3c7-6a38e20fb85f", - "name": "Create a rate limit policy - default", - "request": { - "urlPathTemplate": "/rate-limit-policies", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 201, - "body": "{\n \"id\": \"id\",\n \"resource\": \"oauth_authentication_api\",\n \"consumer\": \"client\",\n \"consumer_selector\": \"consumer_selector\",\n \"configuration\": {\n \"action\": \"allow\"\n },\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "8d96433a-d9e1-4c04-b3c7-6a38e20fb85f", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "252162e3-2c11-4b7f-aa9a-b9f245700110", - "name": "Get a rate limit policy - default", - "request": { - "urlPathTemplate": "/rate-limit-policies/{id}", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"id\": \"id\",\n \"resource\": \"oauth_authentication_api\",\n \"consumer\": \"client\",\n \"consumer_selector\": \"consumer_selector\",\n \"configuration\": {\n \"action\": \"allow\"\n },\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "252162e3-2c11-4b7f-aa9a-b9f245700110", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "8827be53-c433-4722-9aef-6c36aedd8e8f", - "name": "Delete a rate limit policy - default", - "request": { - "urlPathTemplate": "/rate-limit-policies/{id}", - "method": "DELETE", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "8827be53-c433-4722-9aef-6c36aedd8e8f", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "067fc71d-f738-4be0-bbd8-7b63d5cef466", - "name": "Update a rate limit policy - default", - "request": { - "urlPathTemplate": "/rate-limit-policies/{id}", - "method": "PATCH", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"id\": \"id\",\n \"resource\": \"oauth_authentication_api\",\n \"consumer\": \"client\",\n \"consumer_selector\": \"consumer_selector\",\n \"configuration\": {\n \"action\": \"allow\"\n },\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "067fc71d-f738-4be0-bbd8-7b63d5cef466", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "1be8f43f-0f7e-4335-879a-b48d21ecfac6", - "name": "Get refresh tokens - default", - "request": { - "urlPathTemplate": "/refresh-tokens", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "queryParameters": { - "user_id": { - "equalTo": "user_id" - }, - "client_id": { - "equalTo": "client_id" - }, - "from": { - "equalTo": "from" - }, - "take": { - "equalTo": "1" - }, - "fields": { - "equalTo": "fields" - }, - "include_fields": { - "equalTo": "true" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"refresh_tokens\": [\n {\n \"id\": \"id\",\n \"user_id\": \"user_id\",\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"idle_expires_at\": \"2024-01-15T09:30:00Z\",\n \"expires_at\": \"2024-01-15T09:30:00Z\",\n \"client_id\": \"client_id\",\n \"session_id\": \"session_id\",\n \"rotating\": true,\n \"resource_servers\": [\n {}\n ],\n \"refresh_token_metadata\": {\n \"key\": \"value\"\n },\n \"last_exchanged_at\": \"2024-01-15T09:30:00Z\"\n }\n ],\n \"next\": \"next\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "1be8f43f-0f7e-4335-879a-b48d21ecfac6", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "65469ecb-a8c6-48b9-ab08-19befcf04503", - "name": "Revoke refresh tokens - default", - "request": { - "urlPathTemplate": "/refresh-tokens/revoke", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "65469ecb-a8c6-48b9-ab08-19befcf04503", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "6a045b19-b94d-495c-b30c-c1de79efc46f", - "name": "Get a refresh token - default", - "request": { - "urlPathTemplate": "/refresh-tokens/{id}", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"id\": \"id\",\n \"user_id\": \"user_id\",\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"idle_expires_at\": \"2024-01-15T09:30:00Z\",\n \"expires_at\": \"2024-01-15T09:30:00Z\",\n \"device\": {\n \"initial_ip\": \"initial_ip\",\n \"initial_asn\": \"initial_asn\",\n \"initial_user_agent\": \"initial_user_agent\",\n \"last_ip\": \"last_ip\",\n \"last_asn\": \"last_asn\",\n \"last_user_agent\": \"last_user_agent\"\n },\n \"client_id\": \"client_id\",\n \"session_id\": \"session_id\",\n \"rotating\": true,\n \"resource_servers\": [\n {\n \"audience\": \"audience\",\n \"scopes\": \"scopes\"\n }\n ],\n \"refresh_token_metadata\": {\n \"key\": \"value\"\n },\n \"last_exchanged_at\": \"2024-01-15T09:30:00Z\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "6a045b19-b94d-495c-b30c-c1de79efc46f", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "9b9572e8-f0ad-4d7d-9367-b2d3e62c7cd7", - "name": "Delete a refresh token - default", - "request": { - "urlPathTemplate": "/refresh-tokens/{id}", - "method": "DELETE", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "9b9572e8-f0ad-4d7d-9367-b2d3e62c7cd7", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "7ea8e845-2337-4fbc-9632-246f4befb072", - "name": "Update a refresh token - default", - "request": { - "urlPathTemplate": "/refresh-tokens/{id}", - "method": "PATCH", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"id\": \"id\",\n \"user_id\": \"user_id\",\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"idle_expires_at\": \"2024-01-15T09:30:00Z\",\n \"expires_at\": \"2024-01-15T09:30:00Z\",\n \"device\": {\n \"initial_ip\": \"initial_ip\",\n \"initial_asn\": \"initial_asn\",\n \"initial_user_agent\": \"initial_user_agent\",\n \"last_ip\": \"last_ip\",\n \"last_asn\": \"last_asn\",\n \"last_user_agent\": \"last_user_agent\"\n },\n \"client_id\": \"client_id\",\n \"session_id\": \"session_id\",\n \"rotating\": true,\n \"resource_servers\": [\n {\n \"audience\": \"audience\",\n \"scopes\": \"scopes\"\n }\n ],\n \"refresh_token_metadata\": {\n \"key\": \"value\"\n },\n \"last_exchanged_at\": \"2024-01-15T09:30:00Z\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "7ea8e845-2337-4fbc-9632-246f4befb072", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "8e9d39f1-8389-4238-acc7-0c1fd5f97c1b", - "name": "Get resource servers - default", - "request": { - "urlPathTemplate": "/resource-servers", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "queryParameters": { - "identifiers": { - "hasExactly": [ - { - "equalTo": "identifiers" - } - ] - }, - "page": { - "equalTo": "1" - }, - "per_page": { - "equalTo": "1" - }, - "include_totals": { - "equalTo": "true" - }, - "include_fields": { - "equalTo": "true" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"start\": 1.1,\n \"limit\": 1.1,\n \"total\": 1.1,\n \"resource_servers\": [\n {\n \"id\": \"id\",\n \"name\": \"name\",\n \"is_system\": true,\n \"identifier\": \"identifier\",\n \"scopes\": [\n {\n \"value\": \"value\"\n }\n ],\n \"signing_alg\": \"HS256\",\n \"signing_secret\": \"signing_secret\",\n \"allow_offline_access\": true,\n \"allow_online_access\": true,\n \"allow_online_access_with_ephemeral_sessions\": true,\n \"skip_consent_for_verifiable_first_party_clients\": true,\n \"token_lifetime\": 1,\n \"token_lifetime_for_web\": 1,\n \"enforce_policies\": true,\n \"token_lifetime_for_anonymous_access_tokens\": 1,\n \"token_dialect\": \"access_token\",\n \"token_encryption\": {\n \"format\": \"compact-nested-jwe\",\n \"encryption_key\": {\n \"alg\": \"RSA-OAEP-256\",\n \"pem\": \"pem\"\n }\n },\n \"consent_policy\": \"transactional-authorization-with-mfa\",\n \"require_consent_non_repudiation\": true,\n \"proof_of_possession\": {\n \"mechanism\": \"mtls\",\n \"required\": true\n },\n \"authorization_policy\": {\n \"policy_id\": \"policy_id\"\n },\n \"client_id\": \"client_id\",\n \"agent_subject_claims\": \"off\",\n \"type\": \"universal_commerce_protocol_server\"\n }\n ]\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "8e9d39f1-8389-4238-acc7-0c1fd5f97c1b", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "47aa9a64-a544-47e0-9817-a2fe54866219", - "name": "Create a resource server - default", - "request": { - "urlPathTemplate": "/resource-servers", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 201, - "body": "{\n \"id\": \"id\",\n \"name\": \"name\",\n \"is_system\": true,\n \"identifier\": \"identifier\",\n \"scopes\": [\n {\n \"value\": \"value\",\n \"description\": \"description\"\n }\n ],\n \"signing_alg\": \"HS256\",\n \"signing_secret\": \"signing_secret\",\n \"allow_offline_access\": true,\n \"allow_online_access\": true,\n \"allow_online_access_with_ephemeral_sessions\": true,\n \"skip_consent_for_verifiable_first_party_clients\": true,\n \"token_lifetime\": 1,\n \"token_lifetime_for_web\": 1,\n \"enforce_policies\": true,\n \"token_lifetime_for_anonymous_access_tokens\": 1,\n \"token_dialect\": \"access_token\",\n \"access_token\": {\n \"claims_mapping\": {\n \"custom_claims\": [\n {\n \"name\": \"name\",\n \"expression\": \"expression\"\n }\n ]\n }\n },\n \"token_encryption\": {\n \"format\": \"compact-nested-jwe\",\n \"encryption_key\": {\n \"name\": \"name\",\n \"alg\": \"RSA-OAEP-256\",\n \"kid\": \"kid\",\n \"pem\": \"pem\"\n }\n },\n \"consent_policy\": \"transactional-authorization-with-mfa\",\n \"require_consent_non_repudiation\": true,\n \"authorization_details\": [\n {\n \"key\": \"value\"\n }\n ],\n \"proof_of_possession\": {\n \"mechanism\": \"mtls\",\n \"required\": true,\n \"required_for\": \"public_clients\"\n },\n \"subject_type_authorization\": {\n \"user\": {\n \"policy\": \"allow_all\"\n },\n \"client\": {\n \"policy\": \"deny_all\"\n },\n \"anonymous_user\": {\n \"policy\": \"deny_all\"\n }\n },\n \"authorization_policy\": {\n \"policy_id\": \"policy_id\"\n },\n \"client_id\": \"client_id\",\n \"agent_subject_claims\": \"off\",\n \"type\": \"universal_commerce_protocol_server\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "47aa9a64-a544-47e0-9817-a2fe54866219", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "d0cae775-80a1-4fdf-bda8-308cccbf3e2d", - "name": "Search resource servers - default", - "request": { - "urlPathTemplate": "/resource-servers/search", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "queryParameters": { - "q": { - "equalTo": "q" - }, - "parser": { - "equalTo": "scim" - }, - "fields": { - "equalTo": "fields" - }, - "include_fields": { - "equalTo": "true" - }, - "take": { - "equalTo": "1" - }, - "from": { - "equalTo": "from" - }, - "sort": { - "equalTo": "identifier" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"resource_servers\": [\n {\n \"id\": \"id\",\n \"name\": \"name\",\n \"is_system\": true,\n \"identifier\": \"identifier\",\n \"scopes\": [\n {\n \"value\": \"value\"\n }\n ],\n \"signing_alg\": \"HS256\",\n \"allow_offline_access\": true,\n \"allow_online_access\": true,\n \"allow_online_access_with_ephemeral_sessions\": true,\n \"skip_consent_for_verifiable_first_party_clients\": true,\n \"token_lifetime\": 1,\n \"token_lifetime_for_web\": 1,\n \"enforce_policies\": true,\n \"token_lifetime_for_anonymous_access_tokens\": 1,\n \"token_dialect\": \"access_token\",\n \"token_encryption\": {\n \"format\": \"compact-nested-jwe\",\n \"encryption_key\": {\n \"alg\": \"RSA-OAEP-256\",\n \"pem\": \"pem\"\n }\n },\n \"consent_policy\": \"transactional-authorization-with-mfa\",\n \"require_consent_non_repudiation\": true,\n \"proof_of_possession\": {\n \"mechanism\": \"mtls\",\n \"required\": true\n },\n \"authorization_policy\": {\n \"policy_id\": \"policy_id\"\n },\n \"client_id\": \"client_id\",\n \"agent_subject_claims\": \"off\",\n \"type\": \"universal_commerce_protocol_server\"\n }\n ],\n \"next\": \"next\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "d0cae775-80a1-4fdf-bda8-308cccbf3e2d", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "da399a32-c9a2-481c-9995-fc402c47f72a", - "name": "Get a resource server - default", - "request": { - "urlPathTemplate": "/resource-servers/{id}", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - }, - "queryParameters": { - "include_fields": { - "equalTo": "true" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"id\": \"id\",\n \"name\": \"name\",\n \"is_system\": true,\n \"identifier\": \"identifier\",\n \"scopes\": [\n {\n \"value\": \"value\",\n \"description\": \"description\"\n }\n ],\n \"signing_alg\": \"HS256\",\n \"signing_secret\": \"signing_secret\",\n \"allow_offline_access\": true,\n \"allow_online_access\": true,\n \"allow_online_access_with_ephemeral_sessions\": true,\n \"skip_consent_for_verifiable_first_party_clients\": true,\n \"token_lifetime\": 1,\n \"token_lifetime_for_web\": 1,\n \"enforce_policies\": true,\n \"token_lifetime_for_anonymous_access_tokens\": 1,\n \"token_dialect\": \"access_token\",\n \"access_token\": {\n \"claims_mapping\": {\n \"custom_claims\": [\n {\n \"name\": \"name\",\n \"expression\": \"expression\"\n }\n ]\n }\n },\n \"token_encryption\": {\n \"format\": \"compact-nested-jwe\",\n \"encryption_key\": {\n \"name\": \"name\",\n \"alg\": \"RSA-OAEP-256\",\n \"kid\": \"kid\",\n \"pem\": \"pem\"\n }\n },\n \"consent_policy\": \"transactional-authorization-with-mfa\",\n \"require_consent_non_repudiation\": true,\n \"authorization_details\": [\n {\n \"key\": \"value\"\n }\n ],\n \"proof_of_possession\": {\n \"mechanism\": \"mtls\",\n \"required\": true,\n \"required_for\": \"public_clients\"\n },\n \"subject_type_authorization\": {\n \"user\": {\n \"policy\": \"allow_all\"\n },\n \"client\": {\n \"policy\": \"deny_all\"\n },\n \"anonymous_user\": {\n \"policy\": \"deny_all\"\n }\n },\n \"authorization_policy\": {\n \"policy_id\": \"policy_id\"\n },\n \"client_id\": \"client_id\",\n \"agent_subject_claims\": \"off\",\n \"type\": \"universal_commerce_protocol_server\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "da399a32-c9a2-481c-9995-fc402c47f72a", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "f46b0f05-ce0a-4b6a-9004-650a8a9d14da", - "name": "Delete a resource server - default", - "request": { - "urlPathTemplate": "/resource-servers/{id}", - "method": "DELETE", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "f46b0f05-ce0a-4b6a-9004-650a8a9d14da", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "dd7769c9-ea3c-4d2e-bf38-bc9cd0083bc7", - "name": "Update a resource server - default", - "request": { - "urlPathTemplate": "/resource-servers/{id}", - "method": "PATCH", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 201, - "body": "{\n \"id\": \"id\",\n \"name\": \"name\",\n \"is_system\": true,\n \"identifier\": \"identifier\",\n \"scopes\": [\n {\n \"value\": \"value\",\n \"description\": \"description\"\n }\n ],\n \"signing_alg\": \"HS256\",\n \"signing_secret\": \"signing_secret\",\n \"allow_offline_access\": true,\n \"allow_online_access\": true,\n \"allow_online_access_with_ephemeral_sessions\": true,\n \"skip_consent_for_verifiable_first_party_clients\": true,\n \"token_lifetime\": 1,\n \"token_lifetime_for_web\": 1,\n \"enforce_policies\": true,\n \"token_lifetime_for_anonymous_access_tokens\": 1,\n \"token_dialect\": \"access_token\",\n \"access_token\": {\n \"claims_mapping\": {\n \"custom_claims\": [\n {\n \"name\": \"name\",\n \"expression\": \"expression\"\n }\n ]\n }\n },\n \"token_encryption\": {\n \"format\": \"compact-nested-jwe\",\n \"encryption_key\": {\n \"name\": \"name\",\n \"alg\": \"RSA-OAEP-256\",\n \"kid\": \"kid\",\n \"pem\": \"pem\"\n }\n },\n \"consent_policy\": \"transactional-authorization-with-mfa\",\n \"require_consent_non_repudiation\": true,\n \"authorization_details\": [\n {\n \"key\": \"value\"\n }\n ],\n \"proof_of_possession\": {\n \"mechanism\": \"mtls\",\n \"required\": true,\n \"required_for\": \"public_clients\"\n },\n \"subject_type_authorization\": {\n \"user\": {\n \"policy\": \"allow_all\"\n },\n \"client\": {\n \"policy\": \"deny_all\"\n },\n \"anonymous_user\": {\n \"policy\": \"deny_all\"\n }\n },\n \"authorization_policy\": {\n \"policy_id\": \"policy_id\"\n },\n \"client_id\": \"client_id\",\n \"agent_subject_claims\": \"off\",\n \"type\": \"universal_commerce_protocol_server\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "dd7769c9-ea3c-4d2e-bf38-bc9cd0083bc7", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "d64f1dab-8cae-47da-98e9-b16c1a5189dc", - "name": "Get roles - default", - "request": { - "urlPathTemplate": "/roles", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "queryParameters": { - "per_page": { - "equalTo": "1" - }, - "page": { - "equalTo": "1" - }, - "include_totals": { - "equalTo": "true" - }, - "name_filter": { - "equalTo": "name_filter" - }, - "type": { - "equalTo": "tenant" - }, - "owner_id": { - "equalTo": "owner_id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"start\": 1.1,\n \"limit\": 1.1,\n \"total\": 1.1,\n \"roles\": [\n {\n \"id\": \"id\",\n \"name\": \"name\",\n \"description\": \"description\",\n \"type\": \"tenant\",\n \"owner_id\": \"owner_id\"\n }\n ]\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "d64f1dab-8cae-47da-98e9-b16c1a5189dc", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "ddc91359-6806-4cf1-b143-e8d1bc363c3f", - "name": "Create a role - default", - "request": { - "urlPathTemplate": "/roles", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"id\": \"id\",\n \"name\": \"name\",\n \"description\": \"description\",\n \"type\": \"tenant\",\n \"owner_id\": \"owner_id\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "ddc91359-6806-4cf1-b143-e8d1bc363c3f", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "18803f36-8ee6-4051-9c5e-ab4a2a000ec7", - "name": "Get a role - default", - "request": { - "urlPathTemplate": "/roles/{id}", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"id\": \"id\",\n \"name\": \"name\",\n \"description\": \"description\",\n \"type\": \"tenant\",\n \"owner_id\": \"owner_id\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "18803f36-8ee6-4051-9c5e-ab4a2a000ec7", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "53428abe-f9c9-49e7-ada5-7cabecc6f0f5", - "name": "Delete a role - default", - "request": { - "urlPathTemplate": "/roles/{id}", - "method": "DELETE", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "53428abe-f9c9-49e7-ada5-7cabecc6f0f5", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "fb25cab0-ca38-4950-ba80-98504d41bb20", - "name": "Update a role - default", - "request": { - "urlPathTemplate": "/roles/{id}", - "method": "PATCH", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"id\": \"id\",\n \"name\": \"name\",\n \"description\": \"description\",\n \"type\": \"tenant\",\n \"owner_id\": \"owner_id\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "fb25cab0-ca38-4950-ba80-98504d41bb20", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "551dd253-310d-4f66-ab80-e07988490a37", - "name": "Get rules - default", - "request": { - "urlPathTemplate": "/rules", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "queryParameters": { - "page": { - "equalTo": "1" - }, - "per_page": { - "equalTo": "1" - }, - "include_totals": { - "equalTo": "true" - }, - "enabled": { - "equalTo": "true" - }, - "fields": { - "equalTo": "fields" - }, - "include_fields": { - "equalTo": "true" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"start\": 1.1,\n \"limit\": 1.1,\n \"total\": 1.1,\n \"rules\": [\n {\n \"name\": \"name\",\n \"id\": \"id\",\n \"enabled\": true,\n \"script\": \"script\",\n \"order\": 1.1,\n \"stage\": \"stage\"\n }\n ]\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "551dd253-310d-4f66-ab80-e07988490a37", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "6eba8e54-3d94-4b5a-9f90-34ea57895fb5", - "name": "Create a rule - default", - "request": { - "urlPathTemplate": "/rules", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 201, - "body": "{\n \"name\": \"name\",\n \"id\": \"id\",\n \"enabled\": true,\n \"script\": \"script\",\n \"order\": 1.1,\n \"stage\": \"stage\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "6eba8e54-3d94-4b5a-9f90-34ea57895fb5", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "6bd903b2-17f8-4021-9cae-4c1141223c95", - "name": "Get a rule - default", - "request": { - "urlPathTemplate": "/rules/{id}", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - }, - "queryParameters": { - "fields": { - "equalTo": "fields" - }, - "include_fields": { - "equalTo": "true" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"name\": \"name\",\n \"id\": \"id\",\n \"enabled\": true,\n \"script\": \"script\",\n \"order\": 1.1,\n \"stage\": \"stage\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "6bd903b2-17f8-4021-9cae-4c1141223c95", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "6110c86e-027f-441b-bb72-e5b0e6096803", - "name": "Delete a rule - default", - "request": { - "urlPathTemplate": "/rules/{id}", - "method": "DELETE", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "6110c86e-027f-441b-bb72-e5b0e6096803", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "3033effa-f1f9-4988-8752-203075bb6aec", - "name": "Update a rule - default", - "request": { - "urlPathTemplate": "/rules/{id}", - "method": "PATCH", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"name\": \"name\",\n \"id\": \"id\",\n \"enabled\": true,\n \"script\": \"script\",\n \"order\": 1.1,\n \"stage\": \"stage\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "3033effa-f1f9-4988-8752-203075bb6aec", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "3abfda6c-fc81-4be8-a87e-be80fcef8c2f", - "name": "Retrieve config variable keys for rules (get_rules-configs) - default", - "request": { - "urlPathTemplate": "/rules-configs", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "[\n {\n \"key\": \"key\"\n }\n]", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "3abfda6c-fc81-4be8-a87e-be80fcef8c2f", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "f90321dc-6914-4101-8af1-743cafaa62d7", - "name": "Set rules config for a given key - default", - "request": { - "urlPathTemplate": "/rules-configs/{key}", - "method": "PUT", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "key": { - "equalTo": "key" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"key\": \"key\",\n \"value\": \"value\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "f90321dc-6914-4101-8af1-743cafaa62d7", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "4e06c73c-ffd7-4b88-9857-99801c652707", - "name": "Delete rules config for a given key - default", - "request": { - "urlPathTemplate": "/rules-configs/{key}", - "method": "DELETE", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "key": { - "equalTo": "key" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "4e06c73c-ffd7-4b88-9857-99801c652707", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "466bc78c-8022-4a7f-96e1-2a01c78c0b54", - "name": "Get self-service profiles - default", - "request": { - "urlPathTemplate": "/self-service-profiles", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "queryParameters": { - "page": { - "equalTo": "1" - }, - "per_page": { - "equalTo": "1" - }, - "include_totals": { - "equalTo": "true" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"start\": 1.1,\n \"limit\": 1.1,\n \"total\": 1.1,\n \"self_service_profiles\": [\n {\n \"id\": \"id\",\n \"name\": \"name\",\n \"description\": \"description\",\n \"user_attributes\": [\n {\n \"name\": \"name\",\n \"description\": \"description\",\n \"is_optional\": true\n }\n ],\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\",\n \"allowed_strategies\": [\n \"oidc\"\n ],\n \"user_attribute_profile_id\": \"user_attribute_profile_id\"\n }\n ]\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "466bc78c-8022-4a7f-96e1-2a01c78c0b54", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "bc8551be-c96c-4800-a5cc-dbbecc17b15b", - "name": "Create a self-service profile - default", - "request": { - "urlPathTemplate": "/self-service-profiles", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 201, - "body": "{\n \"id\": \"id\",\n \"name\": \"name\",\n \"description\": \"description\",\n \"user_attributes\": [\n {\n \"name\": \"name\",\n \"description\": \"description\",\n \"is_optional\": true\n }\n ],\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\",\n \"branding\": {\n \"logo_url\": \"logo_url\",\n \"colors\": {\n \"primary\": \"primary\"\n }\n },\n \"allowed_strategies\": [\n \"oidc\"\n ],\n \"user_attribute_profile_id\": \"user_attribute_profile_id\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "bc8551be-c96c-4800-a5cc-dbbecc17b15b", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "19739c76-9199-492a-bd18-730f773b6ffb", - "name": "Get a self-service profile by Id - default", - "request": { - "urlPathTemplate": "/self-service-profiles/{id}", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"id\": \"id\",\n \"name\": \"name\",\n \"description\": \"description\",\n \"user_attributes\": [\n {\n \"name\": \"name\",\n \"description\": \"description\",\n \"is_optional\": true\n }\n ],\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\",\n \"branding\": {\n \"logo_url\": \"logo_url\",\n \"colors\": {\n \"primary\": \"primary\"\n }\n },\n \"allowed_strategies\": [\n \"oidc\"\n ],\n \"user_attribute_profile_id\": \"user_attribute_profile_id\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "19739c76-9199-492a-bd18-730f773b6ffb", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "5378d984-8d98-4586-9b4a-7dd9f2ef00af", - "name": "Delete a self-service profile by Id - default", - "request": { - "urlPathTemplate": "/self-service-profiles/{id}", - "method": "DELETE", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "5378d984-8d98-4586-9b4a-7dd9f2ef00af", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "d25c3782-1ef8-47b4-bf73-67a8f977fb17", - "name": "Update a self-service profile - default", - "request": { - "urlPathTemplate": "/self-service-profiles/{id}", - "method": "PATCH", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"id\": \"id\",\n \"name\": \"name\",\n \"description\": \"description\",\n \"user_attributes\": [\n {\n \"name\": \"name\",\n \"description\": \"description\",\n \"is_optional\": true\n }\n ],\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\",\n \"branding\": {\n \"logo_url\": \"logo_url\",\n \"colors\": {\n \"primary\": \"primary\"\n }\n },\n \"allowed_strategies\": [\n \"oidc\"\n ],\n \"user_attribute_profile_id\": \"user_attribute_profile_id\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "d25c3782-1ef8-47b4-bf73-67a8f977fb17", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "3eff16ca-bc50-43ac-9373-249bdaf18766", - "name": "Get session - default", - "request": { - "urlPathTemplate": "/sessions/{id}", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"id\": \"id\",\n \"user_id\": \"user_id\",\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\",\n \"authenticated_at\": \"2024-01-15T09:30:00Z\",\n \"idle_expires_at\": \"2024-01-15T09:30:00Z\",\n \"expires_at\": \"2024-01-15T09:30:00Z\",\n \"last_interacted_at\": \"2024-01-15T09:30:00Z\",\n \"device\": {\n \"initial_user_agent\": \"initial_user_agent\",\n \"initial_ip\": \"initial_ip\",\n \"initial_asn\": \"initial_asn\",\n \"last_user_agent\": \"last_user_agent\",\n \"last_ip\": \"last_ip\",\n \"last_asn\": \"last_asn\"\n },\n \"clients\": [\n {\n \"client_id\": \"client_id\"\n }\n ],\n \"authentication\": {\n \"methods\": [\n {}\n ]\n },\n \"cookie\": {\n \"mode\": \"non-persistent\"\n },\n \"session_metadata\": {\n \"key\": \"value\"\n },\n \"actor\": {\n \"sub\": \"sub\"\n }\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "3eff16ca-bc50-43ac-9373-249bdaf18766", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "046df2cc-1fd5-4ffb-bf25-97235e3418aa", - "name": "Delete session - default", - "request": { - "urlPathTemplate": "/sessions/{id}", - "method": "DELETE", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "046df2cc-1fd5-4ffb-bf25-97235e3418aa", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "cde85d14-94e2-472f-93d0-ab0f6a1e29e6", - "name": "Update session - default", - "request": { - "urlPathTemplate": "/sessions/{id}", - "method": "PATCH", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"id\": \"id\",\n \"user_id\": \"user_id\",\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\",\n \"authenticated_at\": \"2024-01-15T09:30:00Z\",\n \"idle_expires_at\": \"2024-01-15T09:30:00Z\",\n \"expires_at\": \"2024-01-15T09:30:00Z\",\n \"last_interacted_at\": \"2024-01-15T09:30:00Z\",\n \"device\": {\n \"initial_user_agent\": \"initial_user_agent\",\n \"initial_ip\": \"initial_ip\",\n \"initial_asn\": \"initial_asn\",\n \"last_user_agent\": \"last_user_agent\",\n \"last_ip\": \"last_ip\",\n \"last_asn\": \"last_asn\"\n },\n \"clients\": [\n {\n \"client_id\": \"client_id\"\n }\n ],\n \"authentication\": {\n \"methods\": [\n {}\n ]\n },\n \"cookie\": {\n \"mode\": \"non-persistent\"\n },\n \"session_metadata\": {\n \"key\": \"value\"\n },\n \"actor\": {\n \"sub\": \"sub\"\n }\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "cde85d14-94e2-472f-93d0-ab0f6a1e29e6", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "eceb4045-ef5a-414d-a73f-ebbc3266db3b", - "name": "Revokes a session - default", - "request": { - "urlPathTemplate": "/sessions/{id}/revoke", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "eceb4045-ef5a-414d-a73f-ebbc3266db3b", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "deb6f466-7529-4d43-9ae7-ec08cdee6fc8", - "name": "Get active users count - default", - "request": { - "urlPathTemplate": "/stats/active-users", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "1.1", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "deb6f466-7529-4d43-9ae7-ec08cdee6fc8", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "a1c7c8b9-a534-46f2-ae35-eb70ca7628ae", - "name": "Get daily stats - default", - "request": { - "urlPathTemplate": "/stats/daily", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "queryParameters": { - "from": { - "equalTo": "from" - }, - "to": { - "equalTo": "to" - } - } - }, - "response": { - "status": 200, - "body": "[\n {\n \"date\": \"date\",\n \"logins\": 1,\n \"signups\": 1,\n \"leaked_passwords\": 1,\n \"updated_at\": \"updated_at\",\n \"created_at\": \"created_at\"\n }\n]", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "a1c7c8b9-a534-46f2-ae35-eb70ca7628ae", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "818f5cc7-86b3-4568-8861-9d114c5669ef", - "name": "Get the supplemental signals configuration for a tenant - default", - "request": { - "urlPathTemplate": "/supplemental-signals", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"akamai_enabled\": true\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "818f5cc7-86b3-4568-8861-9d114c5669ef", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "7ba85b66-eee6-4f11-b0e1-ae58fc016a79", - "name": "Update the supplemental signals configuration for a tenant - default", - "request": { - "urlPathTemplate": "/supplemental-signals", - "method": "PATCH", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"akamai_enabled\": true\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "7ba85b66-eee6-4f11-b0e1-ae58fc016a79", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "5b479979-e975-4c68-b8fd-ca081dfcbca7", - "name": "Create an email verification ticket - default", - "request": { - "urlPathTemplate": "/tickets/email-verification", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 201, - "body": "{\n \"ticket\": \"ticket\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "5b479979-e975-4c68-b8fd-ca081dfcbca7", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "2b3107dc-9258-4e8c-bfb4-9f4d911eefec", - "name": "Create a password change ticket - default", - "request": { - "urlPathTemplate": "/tickets/password-change", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 201, - "body": "{\n \"ticket\": \"ticket\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "2b3107dc-9258-4e8c-bfb4-9f4d911eefec", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "83be5ec3-d77b-4a3a-9e52-87f57af4d962", - "name": "Get token exchange profiles - default", - "request": { - "urlPathTemplate": "/token-exchange-profiles", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "queryParameters": { - "from": { - "equalTo": "from" - }, - "take": { - "equalTo": "1" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"next\": \"next\",\n \"token_exchange_profiles\": [\n {\n \"id\": \"id\",\n \"name\": \"name\",\n \"subject_token_type\": \"subject_token_type\",\n \"action_id\": \"action_id\",\n \"type\": \"custom_authentication\",\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n }\n ]\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "83be5ec3-d77b-4a3a-9e52-87f57af4d962", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "98e2d250-d01b-4580-a4b1-92e13a0b54b9", - "name": "Create a token exchange profile - default", - "request": { - "urlPathTemplate": "/token-exchange-profiles", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 201, - "body": "{\n \"id\": \"id\",\n \"name\": \"name\",\n \"subject_token_type\": \"subject_token_type\",\n \"action_id\": \"action_id\",\n \"type\": \"custom_authentication\",\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "98e2d250-d01b-4580-a4b1-92e13a0b54b9", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "4594d614-c499-48ab-9fee-e1d4df134a89", - "name": "Get a token exchange profile - default", - "request": { - "urlPathTemplate": "/token-exchange-profiles/{id}", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"id\": \"id\",\n \"name\": \"name\",\n \"subject_token_type\": \"subject_token_type\",\n \"action_id\": \"action_id\",\n \"type\": \"custom_authentication\",\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "4594d614-c499-48ab-9fee-e1d4df134a89", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "172477bd-43d7-47ae-8ec8-eeb2f403f89c", - "name": "Delete a token exchange profile - default", - "request": { - "urlPathTemplate": "/token-exchange-profiles/{id}", - "method": "DELETE", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "172477bd-43d7-47ae-8ec8-eeb2f403f89c", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "2d5941b9-03b1-47b9-ad3b-1466357ae3b0", - "name": "Update an existing token exchange profile - default", - "request": { - "urlPathTemplate": "/token-exchange-profiles/{id}", - "method": "PATCH", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "2d5941b9-03b1-47b9-ad3b-1466357ae3b0", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "b4e9ccbb-5ef3-4c51-8149-56153dc787d4", - "name": "Get User Attribute Profiles - default", - "request": { - "urlPathTemplate": "/user-attribute-profiles", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "queryParameters": { - "from": { - "equalTo": "from" - }, - "take": { - "equalTo": "1" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"next\": \"next\",\n \"user_attribute_profiles\": [\n {\n \"id\": \"id\",\n \"name\": \"name\",\n \"user_attributes\": {\n \"key\": {\n \"description\": \"description\",\n \"label\": \"label\",\n \"profile_required\": true,\n \"auth0_mapping\": \"auth0_mapping\"\n }\n }\n }\n ]\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "b4e9ccbb-5ef3-4c51-8149-56153dc787d4", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "d032e452-b3cb-4a7a-8906-bb80a76c6b8f", - "name": "Post User Attribute Profile - default", - "request": { - "urlPathTemplate": "/user-attribute-profiles", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 201, - "body": "{\n \"id\": \"id\",\n \"name\": \"name\",\n \"user_id\": {\n \"oidc_mapping\": \"sub\",\n \"saml_mapping\": [\n \"saml_mapping\"\n ],\n \"scim_mapping\": \"scim_mapping\"\n },\n \"user_attributes\": {\n \"key\": {\n \"description\": \"description\",\n \"label\": \"label\",\n \"profile_required\": true,\n \"auth0_mapping\": \"auth0_mapping\",\n \"oidc_mapping\": {\n \"mapping\": \"mapping\"\n },\n \"saml_mapping\": [\n \"saml_mapping\"\n ],\n \"scim_mapping\": \"scim_mapping\"\n }\n }\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "d032e452-b3cb-4a7a-8906-bb80a76c6b8f", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "5a222f5e-5188-4dff-ae26-46d41f56c061", - "name": "Get User Attribute Profile Templates - default", - "request": { - "urlPathTemplate": "/user-attribute-profiles/templates", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"user_attribute_profile_templates\": [\n {\n \"id\": \"id\",\n \"display_name\": \"display_name\"\n }\n ]\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "5a222f5e-5188-4dff-ae26-46d41f56c061", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "6672c8c9-01d1-4aae-9ade-20890bbff6b3", - "name": "Get User Attribute Profile Template - default", - "request": { - "urlPathTemplate": "/user-attribute-profiles/templates/{id}", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"id\": \"id\",\n \"display_name\": \"display_name\",\n \"template\": {\n \"name\": \"name\",\n \"user_id\": {\n \"oidc_mapping\": \"sub\",\n \"saml_mapping\": [\n \"saml_mapping\"\n ],\n \"scim_mapping\": \"scim_mapping\"\n },\n \"user_attributes\": {\n \"key\": {\n \"description\": \"description\",\n \"label\": \"label\",\n \"profile_required\": true,\n \"auth0_mapping\": \"auth0_mapping\"\n }\n }\n }\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "6672c8c9-01d1-4aae-9ade-20890bbff6b3", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "b09540c6-726c-42e3-b5e8-dbc7182c2147", - "name": "Get User Attribute Profile - default", - "request": { - "urlPathTemplate": "/user-attribute-profiles/{id}", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"id\": \"id\",\n \"name\": \"name\",\n \"user_id\": {\n \"oidc_mapping\": \"sub\",\n \"saml_mapping\": [\n \"saml_mapping\"\n ],\n \"scim_mapping\": \"scim_mapping\"\n },\n \"user_attributes\": {\n \"key\": {\n \"description\": \"description\",\n \"label\": \"label\",\n \"profile_required\": true,\n \"auth0_mapping\": \"auth0_mapping\",\n \"oidc_mapping\": {\n \"mapping\": \"mapping\"\n },\n \"saml_mapping\": [\n \"saml_mapping\"\n ],\n \"scim_mapping\": \"scim_mapping\"\n }\n }\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "b09540c6-726c-42e3-b5e8-dbc7182c2147", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "ce0d7ce2-8b91-4791-be9b-2774f5efeec0", - "name": "Delete User Attribute Profile - default", - "request": { - "urlPathTemplate": "/user-attribute-profiles/{id}", - "method": "DELETE", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "ce0d7ce2-8b91-4791-be9b-2774f5efeec0", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "2e6307a7-6f62-4b1f-a02b-e6414927a286", - "name": "Modify a user attribute profile - default", - "request": { - "urlPathTemplate": "/user-attribute-profiles/{id}", - "method": "PATCH", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"id\": \"id\",\n \"name\": \"name\",\n \"user_id\": {\n \"oidc_mapping\": \"sub\",\n \"saml_mapping\": [\n \"saml_mapping\"\n ],\n \"scim_mapping\": \"scim_mapping\"\n },\n \"user_attributes\": {\n \"key\": {\n \"description\": \"description\",\n \"label\": \"label\",\n \"profile_required\": true,\n \"auth0_mapping\": \"auth0_mapping\",\n \"oidc_mapping\": {\n \"mapping\": \"mapping\"\n },\n \"saml_mapping\": [\n \"saml_mapping\"\n ],\n \"scim_mapping\": \"scim_mapping\"\n }\n }\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "2e6307a7-6f62-4b1f-a02b-e6414927a286", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "2522dc7d-5aa2-4655-a7a9-24f79a2b8425", - "name": "Get blocks by identifier - default", - "request": { - "urlPathTemplate": "/user-blocks", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "queryParameters": { - "identifier": { - "equalTo": "identifier" - }, - "consider_brute_force_enablement": { - "equalTo": "true" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"blocked_for\": [\n {\n \"identifier\": \"identifier\",\n \"ip\": \"ip\",\n \"connection\": \"connection\"\n }\n ]\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "2522dc7d-5aa2-4655-a7a9-24f79a2b8425", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "049ee4c7-943e-481c-8ebf-dc6d21d5260c", - "name": "Unblock by identifier - default", - "request": { - "urlPathTemplate": "/user-blocks", - "method": "DELETE", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "queryParameters": { - "identifier": { - "equalTo": "identifier" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "049ee4c7-943e-481c-8ebf-dc6d21d5260c", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "d2565899-4c2a-4b6b-93b5-caecdbadc782", - "name": "Get a user's blocks - default", - "request": { - "urlPathTemplate": "/user-blocks/{id}", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - }, - "queryParameters": { - "consider_brute_force_enablement": { - "equalTo": "true" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"blocked_for\": [\n {\n \"identifier\": \"identifier\",\n \"ip\": \"ip\",\n \"connection\": \"connection\"\n }\n ]\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "d2565899-4c2a-4b6b-93b5-caecdbadc782", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "b3f82ebe-f646-4a06-9770-8ece4e55d861", - "name": "Unblock a user - default", - "request": { - "urlPathTemplate": "/user-blocks/{id}", - "method": "DELETE", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "b3f82ebe-f646-4a06-9770-8ece4e55d861", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "8b4e8914-5be6-4e9b-896f-0b72752d9671", - "name": "List or Search Users - default", - "request": { - "urlPathTemplate": "/users", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "queryParameters": { - "page": { - "equalTo": "1" - }, - "per_page": { - "equalTo": "1" - }, - "include_totals": { - "equalTo": "true" - }, - "sort": { - "equalTo": "sort" - }, - "connection": { - "equalTo": "connection" - }, - "fields": { - "equalTo": "fields" - }, - "include_fields": { - "equalTo": "true" - }, - "q": { - "equalTo": "q" - }, - "search_engine": { - "equalTo": "v1" - }, - "primary_order": { - "equalTo": "true" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"start\": 1.1,\n \"limit\": 1.1,\n \"length\": 1.1,\n \"total\": 1.1,\n \"users\": [\n {\n \"user_id\": \"user_id\",\n \"email\": \"email\",\n \"email_verified\": true,\n \"username\": \"username\",\n \"phone_number\": \"phone_number\",\n \"phone_verified\": true,\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\",\n \"identities\": [\n {}\n ],\n \"app_metadata\": {\n \"key\": \"value\"\n },\n \"user_metadata\": {\n \"key\": \"value\"\n },\n \"picture\": \"picture\",\n \"name\": \"name\",\n \"nickname\": \"nickname\",\n \"multifactor\": [\n \"multifactor\"\n ],\n \"multifactor_last_modified\": \"2024-01-15T09:30:00Z\",\n \"last_ip\": \"last_ip\",\n \"last_login\": \"2024-01-15T09:30:00Z\",\n \"last_password_reset\": \"2024-01-15T09:30:00Z\",\n \"logins_count\": 1,\n \"blocked\": true,\n \"given_name\": \"given_name\",\n \"family_name\": \"family_name\"\n }\n ]\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "8b4e8914-5be6-4e9b-896f-0b72752d9671", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "4a8c54d7-9d2a-4a48-ad89-4b2481eed23a", - "name": "Create a User - default", - "request": { - "urlPathTemplate": "/users", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 201, - "body": "{\n \"user_id\": \"user_id\",\n \"email\": \"email\",\n \"email_verified\": true,\n \"username\": \"username\",\n \"phone_number\": \"phone_number\",\n \"phone_verified\": true,\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\",\n \"identities\": [\n {\n \"connection\": \"connection\",\n \"user_id\": \"user_id\",\n \"provider\": \"ad\",\n \"isSocial\": true,\n \"access_token\": \"access_token\",\n \"access_token_secret\": \"access_token_secret\",\n \"refresh_token\": \"refresh_token\"\n }\n ],\n \"app_metadata\": {\n \"key\": \"value\"\n },\n \"user_metadata\": {\n \"key\": \"value\"\n },\n \"picture\": \"picture\",\n \"name\": \"name\",\n \"nickname\": \"nickname\",\n \"multifactor\": [\n \"multifactor\"\n ],\n \"multifactor_last_modified\": \"2024-01-15T09:30:00Z\",\n \"last_ip\": \"last_ip\",\n \"last_login\": \"2024-01-15T09:30:00Z\",\n \"last_password_reset\": \"2024-01-15T09:30:00Z\",\n \"logins_count\": 1,\n \"blocked\": true,\n \"given_name\": \"given_name\",\n \"family_name\": \"family_name\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "4a8c54d7-9d2a-4a48-ad89-4b2481eed23a", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "414f2fd9-cbe8-4b07-b181-1bc4d03f38d6", - "name": "Search Users by Email - default", - "request": { - "urlPathTemplate": "/users-by-email", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "queryParameters": { - "fields": { - "equalTo": "fields" - }, - "include_fields": { - "equalTo": "true" - }, - "email": { - "equalTo": "email" - } - } - }, - "response": { - "status": 200, - "body": "[\n {\n \"user_id\": \"user_id\",\n \"email\": \"email\",\n \"email_verified\": true,\n \"username\": \"username\",\n \"phone_number\": \"phone_number\",\n \"phone_verified\": true,\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\",\n \"identities\": [\n {}\n ],\n \"app_metadata\": {\n \"key\": \"value\"\n },\n \"user_metadata\": {\n \"key\": \"value\"\n },\n \"picture\": \"picture\",\n \"name\": \"name\",\n \"nickname\": \"nickname\",\n \"multifactor\": [\n \"multifactor\"\n ],\n \"multifactor_last_modified\": \"2024-01-15T09:30:00Z\",\n \"last_ip\": \"last_ip\",\n \"last_login\": \"2024-01-15T09:30:00Z\",\n \"last_password_reset\": \"2024-01-15T09:30:00Z\",\n \"logins_count\": 1,\n \"blocked\": true,\n \"given_name\": \"given_name\",\n \"family_name\": \"family_name\"\n }\n]", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "414f2fd9-cbe8-4b07-b181-1bc4d03f38d6", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "9fc639a9-4bc3-4dab-909f-41947203684a", - "name": "Get a User - default", - "request": { - "urlPathTemplate": "/users/{id}", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - }, - "queryParameters": { - "fields": { - "equalTo": "fields" - }, - "include_fields": { - "equalTo": "true" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"user_id\": \"user_id\",\n \"email\": \"email\",\n \"email_verified\": true,\n \"username\": \"username\",\n \"phone_number\": \"phone_number\",\n \"phone_verified\": true,\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\",\n \"identities\": [\n {\n \"connection\": \"connection\",\n \"user_id\": \"user_id\",\n \"provider\": \"ad\",\n \"isSocial\": true,\n \"access_token\": \"access_token\",\n \"access_token_secret\": \"access_token_secret\",\n \"refresh_token\": \"refresh_token\"\n }\n ],\n \"app_metadata\": {\n \"key\": \"value\"\n },\n \"user_metadata\": {\n \"key\": \"value\"\n },\n \"picture\": \"picture\",\n \"name\": \"name\",\n \"nickname\": \"nickname\",\n \"multifactor\": [\n \"multifactor\"\n ],\n \"multifactor_last_modified\": \"2024-01-15T09:30:00Z\",\n \"last_ip\": \"last_ip\",\n \"last_login\": \"2024-01-15T09:30:00Z\",\n \"last_password_reset\": \"2024-01-15T09:30:00Z\",\n \"logins_count\": 1,\n \"blocked\": true,\n \"given_name\": \"given_name\",\n \"family_name\": \"family_name\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "9fc639a9-4bc3-4dab-909f-41947203684a", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "265181b3-7abf-472b-99f2-d2e6eb47b27e", - "name": "Delete a User - default", - "request": { - "urlPathTemplate": "/users/{id}", - "method": "DELETE", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "265181b3-7abf-472b-99f2-d2e6eb47b27e", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "c65910b9-fa24-4a35-87b7-3b8e611f2d5c", - "name": "Update a User - default", - "request": { - "urlPathTemplate": "/users/{id}", - "method": "PATCH", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"user_id\": \"user_id\",\n \"email\": \"email\",\n \"email_verified\": true,\n \"username\": \"username\",\n \"phone_number\": \"phone_number\",\n \"phone_verified\": true,\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\",\n \"identities\": [\n {\n \"connection\": \"connection\",\n \"user_id\": \"user_id\",\n \"provider\": \"ad\",\n \"isSocial\": true,\n \"access_token\": \"access_token\",\n \"access_token_secret\": \"access_token_secret\",\n \"refresh_token\": \"refresh_token\"\n }\n ],\n \"app_metadata\": {\n \"key\": \"value\"\n },\n \"user_metadata\": {\n \"key\": \"value\"\n },\n \"picture\": \"picture\",\n \"name\": \"name\",\n \"nickname\": \"nickname\",\n \"multifactor\": [\n \"multifactor\"\n ],\n \"multifactor_last_modified\": \"2024-01-15T09:30:00Z\",\n \"last_ip\": \"last_ip\",\n \"last_login\": \"2024-01-15T09:30:00Z\",\n \"last_password_reset\": \"2024-01-15T09:30:00Z\",\n \"logins_count\": 1,\n \"blocked\": true,\n \"given_name\": \"given_name\",\n \"family_name\": \"family_name\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "c65910b9-fa24-4a35-87b7-3b8e611f2d5c", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "9bc0f8b4-abad-4f66-9979-0abe967f0c6b", - "name": "Get consent signing keys for a user - default", - "request": { - "urlPathTemplate": "/users/{id}/consent-signing-keys", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"keys\": [\n {\n \"kid\": \"kid\",\n \"device_identifier\": \"device_identifier\",\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"expires_at\": \"2024-01-15T09:30:00Z\"\n }\n ]\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "9bc0f8b4-abad-4f66-9979-0abe967f0c6b", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "28d3e4b7-f78e-4fa9-b458-5629d6274ebc", - "name": "Get a consent signing key by key ID - default", - "request": { - "urlPathTemplate": "/users/{id}/consent-signing-keys/{kid}", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - }, - "kid": { - "equalTo": "kid" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"kid\": \"kid\",\n \"device_identifier\": \"device_identifier\",\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"expires_at\": \"2024-01-15T09:30:00Z\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "28d3e4b7-f78e-4fa9-b458-5629d6274ebc", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "a39e1747-47fb-442f-96ba-b45ab6609569", - "name": "Delete a consent signing key by key ID - default", - "request": { - "urlPathTemplate": "/users/{id}/consent-signing-keys/{kid}", - "method": "DELETE", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - }, - "kid": { - "equalTo": "kid" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "a39e1747-47fb-442f-96ba-b45ab6609569", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "365cef77-10c1-4fea-9b15-317ad7a38e99", - "name": "Generate New Multi-factor Authentication (MFA) Recovery Code - default", - "request": { - "urlPathTemplate": "/users/{id}/recovery-code-regeneration", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"recovery_code\": \"recovery_code\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "365cef77-10c1-4fea-9b15-317ad7a38e99", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "a562240d-132f-4adc-a0f6-763101460526", - "name": "Revokes selected resources from a user - default", - "request": { - "urlPathTemplate": "/users/{id}/revoke-access", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "a562240d-132f-4adc-a0f6-763101460526", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "ccdc2dc5-d900-4938-9ae0-3a9466191ed1", - "name": "Get an action's versions - default", - "request": { - "urlPathTemplate": "/actions/actions/{actionId}/versions", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "actionId": { - "equalTo": "actionId" - } - }, - "queryParameters": { - "page": { - "equalTo": "1" - }, - "per_page": { - "equalTo": "1" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"total\": 1.1,\n \"page\": 1.1,\n \"per_page\": 1.1,\n \"versions\": [\n {\n \"id\": \"id\",\n \"action_id\": \"action_id\",\n \"code\": \"code\",\n \"dependencies\": [\n {}\n ],\n \"deployed\": true,\n \"runtime\": \"runtime\",\n \"secrets\": [\n {}\n ],\n \"status\": \"pending\",\n \"number\": 1.1,\n \"errors\": [\n {}\n ],\n \"built_at\": \"2024-01-15T09:30:00Z\",\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\",\n \"supported_triggers\": [\n {\n \"id\": \"post-login\"\n }\n ],\n \"modules\": [\n {}\n ]\n }\n ]\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "ccdc2dc5-d900-4938-9ae0-3a9466191ed1", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "33c0cb30-ca1f-4477-9078-8647e82f975f", - "name": "Get a specific version of an action - default", - "request": { - "urlPathTemplate": "/actions/actions/{actionId}/versions/{id}", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "actionId": { - "equalTo": "actionId" - }, - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"id\": \"id\",\n \"action_id\": \"action_id\",\n \"code\": \"code\",\n \"dependencies\": [\n {\n \"name\": \"name\",\n \"version\": \"version\",\n \"registry_url\": \"registry_url\"\n }\n ],\n \"deployed\": true,\n \"runtime\": \"runtime\",\n \"secrets\": [\n {\n \"name\": \"name\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n }\n ],\n \"status\": \"pending\",\n \"number\": 1.1,\n \"errors\": [\n {\n \"id\": \"id\",\n \"msg\": \"msg\",\n \"url\": \"url\"\n }\n ],\n \"action\": {\n \"id\": \"id\",\n \"name\": \"name\",\n \"supported_triggers\": [\n {\n \"id\": \"post-login\"\n }\n ],\n \"all_changes_deployed\": true,\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n },\n \"built_at\": \"2024-01-15T09:30:00Z\",\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\",\n \"supported_triggers\": [\n {\n \"id\": \"post-login\",\n \"version\": \"version\",\n \"status\": \"status\",\n \"runtimes\": [\n \"runtimes\"\n ],\n \"default_runtime\": \"default_runtime\",\n \"compatible_triggers\": [\n {\n \"id\": \"post-login\",\n \"version\": \"version\"\n }\n ],\n \"binding_policy\": \"trigger-bound\"\n }\n ],\n \"modules\": [\n {\n \"module_id\": \"module_id\",\n \"module_name\": \"module_name\",\n \"module_version_id\": \"module_version_id\",\n \"module_version_number\": 1\n }\n ]\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "33c0cb30-ca1f-4477-9078-8647e82f975f", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "746fbf5a-cee7-4302-ad86-14035a3912f7", - "name": "Roll back to a previous action version - default", - "request": { - "urlPathTemplate": "/actions/actions/{actionId}/versions/{id}/deploy", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "actionId": { - "equalTo": "actionId" - }, - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 202, - "body": "{\n \"id\": \"id\",\n \"action_id\": \"action_id\",\n \"code\": \"code\",\n \"dependencies\": [\n {\n \"name\": \"name\",\n \"version\": \"version\",\n \"registry_url\": \"registry_url\"\n }\n ],\n \"deployed\": true,\n \"runtime\": \"runtime\",\n \"secrets\": [\n {\n \"name\": \"name\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n }\n ],\n \"status\": \"pending\",\n \"number\": 1.1,\n \"errors\": [\n {\n \"id\": \"id\",\n \"msg\": \"msg\",\n \"url\": \"url\"\n }\n ],\n \"action\": {\n \"id\": \"id\",\n \"name\": \"name\",\n \"supported_triggers\": [\n {\n \"id\": \"post-login\"\n }\n ],\n \"all_changes_deployed\": true,\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n },\n \"built_at\": \"2024-01-15T09:30:00Z\",\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\",\n \"supported_triggers\": [\n {\n \"id\": \"post-login\",\n \"version\": \"version\",\n \"status\": \"status\",\n \"runtimes\": [\n \"runtimes\"\n ],\n \"default_runtime\": \"default_runtime\",\n \"compatible_triggers\": [\n {\n \"id\": \"post-login\",\n \"version\": \"version\"\n }\n ],\n \"binding_policy\": \"trigger-bound\"\n }\n ],\n \"modules\": [\n {\n \"module_id\": \"module_id\",\n \"module_name\": \"module_name\",\n \"module_version_id\": \"module_version_id\",\n \"module_version_number\": 1\n }\n ]\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "746fbf5a-cee7-4302-ad86-14035a3912f7", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "822dd98d-546e-46d8-a976-8f2c97028432", - "name": "Get an execution - default", - "request": { - "urlPathTemplate": "/actions/executions/{id}", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"id\": \"id\",\n \"trigger_id\": \"post-login\",\n \"status\": \"unspecified\",\n \"results\": [\n {\n \"action_name\": \"action_name\",\n \"started_at\": \"2024-01-15T09:30:00Z\",\n \"ended_at\": \"2024-01-15T09:30:00Z\"\n }\n ],\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "822dd98d-546e-46d8-a976-8f2c97028432", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "8abc8ed4-7895-434f-a43b-613d4101d6bc", - "name": "List Actions Modules - default", - "request": { - "urlPathTemplate": "/actions/modules", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "queryParameters": { - "page": { - "equalTo": "1" - }, - "per_page": { - "equalTo": "1" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"modules\": [\n {\n \"id\": \"id\",\n \"name\": \"name\",\n \"code\": \"code\",\n \"dependencies\": [\n {}\n ],\n \"secrets\": [\n {}\n ],\n \"actions_using_module_total\": 1,\n \"all_changes_published\": true,\n \"latest_version_number\": 1,\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n }\n ],\n \"total\": 1,\n \"page\": 1,\n \"per_page\": 1\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "8abc8ed4-7895-434f-a43b-613d4101d6bc", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "3e5b836f-105d-4d50-a185-5cd051f4db56", - "name": "Create a new Actions Module - default", - "request": { - "urlPathTemplate": "/actions/modules", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 201, - "body": "{\n \"id\": \"id\",\n \"name\": \"name\",\n \"code\": \"code\",\n \"dependencies\": [\n {\n \"name\": \"name\",\n \"version\": \"version\"\n }\n ],\n \"secrets\": [\n {\n \"name\": \"name\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n }\n ],\n \"actions_using_module_total\": 1,\n \"all_changes_published\": true,\n \"latest_version_number\": 1,\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\",\n \"latest_version\": {\n \"id\": \"id\",\n \"version_number\": 1,\n \"code\": \"code\",\n \"dependencies\": [\n {}\n ],\n \"secrets\": [\n {}\n ],\n \"created_at\": \"2024-01-15T09:30:00Z\"\n }\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "3e5b836f-105d-4d50-a185-5cd051f4db56", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "51d32ec1-89e7-4db1-aae7-76445e9e0cd2", - "name": "Get a specific Actions Module by ID - default", - "request": { - "urlPathTemplate": "/actions/modules/{id}", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"id\": \"id\",\n \"name\": \"name\",\n \"code\": \"code\",\n \"dependencies\": [\n {\n \"name\": \"name\",\n \"version\": \"version\"\n }\n ],\n \"secrets\": [\n {\n \"name\": \"name\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n }\n ],\n \"actions_using_module_total\": 1,\n \"all_changes_published\": true,\n \"latest_version_number\": 1,\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\",\n \"latest_version\": {\n \"id\": \"id\",\n \"version_number\": 1,\n \"code\": \"code\",\n \"dependencies\": [\n {}\n ],\n \"secrets\": [\n {}\n ],\n \"created_at\": \"2024-01-15T09:30:00Z\"\n }\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "51d32ec1-89e7-4db1-aae7-76445e9e0cd2", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "613a56ac-b303-417b-bbfe-d8ceda21db89", - "name": "Delete a specific Actions Module by ID - default", - "request": { - "urlPathTemplate": "/actions/modules/{id}", - "method": "DELETE", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "613a56ac-b303-417b-bbfe-d8ceda21db89", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "33cfded9-118e-4c8a-b0a1-207b0f1ae202", - "name": "Update a specific Actions Module - default", - "request": { - "urlPathTemplate": "/actions/modules/{id}", - "method": "PATCH", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"id\": \"id\",\n \"name\": \"name\",\n \"code\": \"code\",\n \"dependencies\": [\n {\n \"name\": \"name\",\n \"version\": \"version\"\n }\n ],\n \"secrets\": [\n {\n \"name\": \"name\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n }\n ],\n \"actions_using_module_total\": 1,\n \"all_changes_published\": true,\n \"latest_version_number\": 1,\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\",\n \"latest_version\": {\n \"id\": \"id\",\n \"version_number\": 1,\n \"code\": \"code\",\n \"dependencies\": [\n {}\n ],\n \"secrets\": [\n {}\n ],\n \"created_at\": \"2024-01-15T09:30:00Z\"\n }\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "33cfded9-118e-4c8a-b0a1-207b0f1ae202", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "989d944b-6872-44fc-957b-87900af162f6", - "name": "List all actions using an Actions Module - default", - "request": { - "urlPathTemplate": "/actions/modules/{id}/actions", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - }, - "queryParameters": { - "page": { - "equalTo": "1" - }, - "per_page": { - "equalTo": "1" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"actions\": [\n {\n \"action_id\": \"action_id\",\n \"action_name\": \"action_name\",\n \"module_version_id\": \"module_version_id\",\n \"module_version_number\": 1,\n \"supported_triggers\": [\n {\n \"id\": \"post-login\"\n }\n ]\n }\n ],\n \"total\": 1,\n \"page\": 1,\n \"per_page\": 1\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "989d944b-6872-44fc-957b-87900af162f6", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "d83ce3f7-bfbf-4999-97ba-7813c7fb466b", - "name": "Rollback an Actions Module to a previous version - default", - "request": { - "urlPathTemplate": "/actions/modules/{id}/rollback", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"id\": \"id\",\n \"name\": \"name\",\n \"code\": \"code\",\n \"dependencies\": [\n {\n \"name\": \"name\",\n \"version\": \"version\"\n }\n ],\n \"secrets\": [\n {\n \"name\": \"name\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n }\n ],\n \"actions_using_module_total\": 1,\n \"all_changes_published\": true,\n \"latest_version_number\": 1,\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\",\n \"latest_version\": {\n \"id\": \"id\",\n \"version_number\": 1,\n \"code\": \"code\",\n \"dependencies\": [\n {}\n ],\n \"secrets\": [\n {}\n ],\n \"created_at\": \"2024-01-15T09:30:00Z\"\n }\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "d83ce3f7-bfbf-4999-97ba-7813c7fb466b", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "f6c96303-6883-4084-989f-2dbadb13c1d9", - "name": "Get triggers - default", - "request": { - "urlPathTemplate": "/actions/triggers", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"triggers\": [\n {\n \"id\": \"post-login\",\n \"version\": \"version\",\n \"status\": \"status\",\n \"runtimes\": [\n \"runtimes\"\n ],\n \"default_runtime\": \"default_runtime\",\n \"compatible_triggers\": [\n {\n \"id\": \"post-login\",\n \"version\": \"version\"\n }\n ],\n \"binding_policy\": \"trigger-bound\"\n }\n ]\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "f6c96303-6883-4084-989f-2dbadb13c1d9", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "f9d3c975-0170-4fb7-977a-8b220d9f62bb", - "name": "List all versions of an Actions Module - default", - "request": { - "urlPathTemplate": "/actions/modules/{id}/versions", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - }, - "queryParameters": { - "page": { - "equalTo": "1" - }, - "per_page": { - "equalTo": "1" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"versions\": [\n {\n \"id\": \"id\",\n \"module_id\": \"module_id\",\n \"version_number\": 1,\n \"code\": \"code\",\n \"secrets\": [\n {}\n ],\n \"dependencies\": [\n {}\n ],\n \"created_at\": \"2024-01-15T09:30:00Z\"\n }\n ],\n \"total\": 1,\n \"page\": 1,\n \"per_page\": 1\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "f9d3c975-0170-4fb7-977a-8b220d9f62bb", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "f2ae0322-48cb-47bb-a197-e4607ede713a", - "name": "Create a new version of an Actions Module - default", - "request": { - "urlPathTemplate": "/actions/modules/{id}/versions", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"id\": \"id\",\n \"module_id\": \"module_id\",\n \"version_number\": 1,\n \"code\": \"code\",\n \"secrets\": [\n {\n \"name\": \"name\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n }\n ],\n \"dependencies\": [\n {\n \"name\": \"name\",\n \"version\": \"version\"\n }\n ],\n \"created_at\": \"2024-01-15T09:30:00Z\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "f2ae0322-48cb-47bb-a197-e4607ede713a", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "29f3eb37-e484-460b-a662-6e196927da74", - "name": "Get a specific version of an Actions Module - default", - "request": { - "urlPathTemplate": "/actions/modules/{id}/versions/{versionId}", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - }, - "versionId": { - "equalTo": "versionId" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"id\": \"id\",\n \"module_id\": \"module_id\",\n \"version_number\": 1,\n \"code\": \"code\",\n \"secrets\": [\n {\n \"name\": \"name\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n }\n ],\n \"dependencies\": [\n {\n \"name\": \"name\",\n \"version\": \"version\"\n }\n ],\n \"created_at\": \"2024-01-15T09:30:00Z\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "29f3eb37-e484-460b-a662-6e196927da74", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "eb7071fc-50a8-4dc9-a79d-ce47e23d4637", - "name": "Get trigger bindings - default", - "request": { - "urlPathTemplate": "/actions/triggers/{triggerId}/bindings", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "triggerId": { - "equalTo": "post-login" - } - }, - "queryParameters": { - "page": { - "equalTo": "1" - }, - "per_page": { - "equalTo": "1" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"total\": 1.1,\n \"page\": 1.1,\n \"per_page\": 1.1,\n \"bindings\": [\n {\n \"id\": \"id\",\n \"trigger_id\": \"post-login\",\n \"display_name\": \"display_name\",\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n }\n ]\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "eb7071fc-50a8-4dc9-a79d-ce47e23d4637", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "677bf282-a2a0-4bc7-a065-b5de9e248673", - "name": "Update trigger bindings - default", - "request": { - "urlPathTemplate": "/actions/triggers/{triggerId}/bindings", - "method": "PATCH", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "triggerId": { - "equalTo": "post-login" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"bindings\": [\n {\n \"id\": \"id\",\n \"trigger_id\": \"post-login\",\n \"display_name\": \"display_name\",\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n }\n ]\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "677bf282-a2a0-4bc7-a065-b5de9e248673", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "858c0df0-350f-4619-8960-6f774c0f234a", - "name": "Check if an IP address is blocked - default", - "request": { - "urlPathTemplate": "/anomaly/blocks/ips/{id}", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "858c0df0-350f-4619-8960-6f774c0f234a", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "3c386455-0d8c-4edf-a027-a4ac0ff2e391", - "name": "Remove the blocked IP address - default", - "request": { - "urlPathTemplate": "/anomaly/blocks/ips/{id}", - "method": "DELETE", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "3c386455-0d8c-4edf-a027-a4ac0ff2e391", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "80b1e16c-5284-48f9-9802-ff189fca3b63", - "name": "Get Bot Detection settings - default", - "request": { - "urlPathTemplate": "/attack-protection/bot-detection", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"bot_detection_level\": \"low\",\n \"challenge_password_policy\": \"never\",\n \"challenge_passwordless_policy\": \"never\",\n \"challenge_password_reset_policy\": \"never\",\n \"allowlist\": [\n \"allowlist\"\n ],\n \"monitoring_mode_enabled\": true\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "80b1e16c-5284-48f9-9802-ff189fca3b63", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "bf92fa51-631d-42ef-bf27-8161f3bcab37", - "name": "Update Bot Detection settings - default", - "request": { - "urlPathTemplate": "/attack-protection/bot-detection", - "method": "PATCH", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"bot_detection_level\": \"low\",\n \"challenge_password_policy\": \"never\",\n \"challenge_passwordless_policy\": \"never\",\n \"challenge_password_reset_policy\": \"never\",\n \"allowlist\": [\n \"allowlist\"\n ],\n \"monitoring_mode_enabled\": true\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "bf92fa51-631d-42ef-bf27-8161f3bcab37", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "3ecb5fd3-5290-46e1-80da-bbdc282e2e86", - "name": "Get Breached Password Detection settings - default", - "request": { - "urlPathTemplate": "/attack-protection/breached-password-detection", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"enabled\": true,\n \"shields\": [\n \"block\"\n ],\n \"admin_notification_frequency\": [\n \"immediately\"\n ],\n \"method\": \"standard\",\n \"stage\": {\n \"pre-user-registration\": {\n \"shields\": [\n \"block\"\n ]\n },\n \"pre-change-password\": {\n \"shields\": [\n \"block\"\n ]\n }\n }\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "3ecb5fd3-5290-46e1-80da-bbdc282e2e86", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "7f0c04d7-e36a-49ce-af70-af9df4825f56", - "name": "Update Breached Password Detection settings - default", - "request": { - "urlPathTemplate": "/attack-protection/breached-password-detection", - "method": "PATCH", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"enabled\": true,\n \"shields\": [\n \"block\"\n ],\n \"admin_notification_frequency\": [\n \"immediately\"\n ],\n \"method\": \"standard\",\n \"stage\": {\n \"pre-user-registration\": {\n \"shields\": [\n \"block\"\n ]\n },\n \"pre-change-password\": {\n \"shields\": [\n \"block\"\n ]\n }\n }\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "7f0c04d7-e36a-49ce-af70-af9df4825f56", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "7870c330-d1c9-4a9f-9745-40e1d8b2d0ac", - "name": "Get Brute-force settings - default", - "request": { - "urlPathTemplate": "/attack-protection/brute-force-protection", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"enabled\": true,\n \"shields\": [\n \"block\"\n ],\n \"allowlist\": [\n \"allowlist\"\n ],\n \"mode\": \"count_per_identifier_and_ip\",\n \"form_submission_mode\": \"auto\",\n \"max_attempts\": 1\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "7870c330-d1c9-4a9f-9745-40e1d8b2d0ac", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "23e440e9-0ef4-4ec5-96f3-0b4d84085d92", - "name": "Update Brute-force settings - default", - "request": { - "urlPathTemplate": "/attack-protection/brute-force-protection", - "method": "PATCH", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"enabled\": true,\n \"shields\": [\n \"block\"\n ],\n \"allowlist\": [\n \"allowlist\"\n ],\n \"mode\": \"count_per_identifier_and_ip\",\n \"form_submission_mode\": \"auto\",\n \"max_attempts\": 1\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "23e440e9-0ef4-4ec5-96f3-0b4d84085d92", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "1cfbbf1e-0b0a-4d9e-bfe5-8d796adbfb34", - "name": "Get the CAPTCHA configuration for a tenant - default", - "request": { - "urlPathTemplate": "/attack-protection/captcha", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"active_provider_id\": \"active_provider_id\",\n \"arkose\": {\n \"site_key\": \"site_key\",\n \"fail_open\": true,\n \"client_subdomain\": \"client_subdomain\",\n \"verify_subdomain\": \"verify_subdomain\"\n },\n \"auth_challenge\": {\n \"fail_open\": true\n },\n \"hcaptcha\": {\n \"site_key\": \"site_key\"\n },\n \"friendly_captcha\": {\n \"site_key\": \"site_key\"\n },\n \"recaptcha_enterprise\": {\n \"site_key\": \"site_key\",\n \"project_id\": \"project_id\"\n },\n \"recaptcha_v2\": {\n \"site_key\": \"site_key\"\n },\n \"simple_captcha\": {\n \"key\": \"value\"\n }\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "1cfbbf1e-0b0a-4d9e-bfe5-8d796adbfb34", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "c8a6243c-e0ad-49f2-8b47-405276a8ae5e", - "name": "Partial Update for CAPTCHA Configuration - default", - "request": { - "urlPathTemplate": "/attack-protection/captcha", - "method": "PATCH", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"active_provider_id\": \"active_provider_id\",\n \"arkose\": {\n \"site_key\": \"site_key\",\n \"fail_open\": true,\n \"client_subdomain\": \"client_subdomain\",\n \"verify_subdomain\": \"verify_subdomain\"\n },\n \"auth_challenge\": {\n \"fail_open\": true\n },\n \"hcaptcha\": {\n \"site_key\": \"site_key\"\n },\n \"friendly_captcha\": {\n \"site_key\": \"site_key\"\n },\n \"recaptcha_enterprise\": {\n \"site_key\": \"site_key\",\n \"project_id\": \"project_id\"\n },\n \"recaptcha_v2\": {\n \"site_key\": \"site_key\"\n },\n \"simple_captcha\": {\n \"key\": \"value\"\n }\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "c8a6243c-e0ad-49f2-8b47-405276a8ae5e", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "e3a2dc7e-fb58-4806-a3f1-3d94a401a38f", - "name": "Get Phone Provider Protection settings - default", - "request": { - "urlPathTemplate": "/attack-protection/phone-provider-protection", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"type\": \"exponential\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "e3a2dc7e-fb58-4806-a3f1-3d94a401a38f", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "336b75f5-4a3b-4a34-b2ef-248cc14ee45b", - "name": "Update Phone Provider Protection settings - default", - "request": { - "urlPathTemplate": "/attack-protection/phone-provider-protection", - "method": "PATCH", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"type\": \"exponential\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "336b75f5-4a3b-4a34-b2ef-248cc14ee45b", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "a3ae14b8-1582-4cae-bb51-84b1d3b3fccf", - "name": "Get Suspicious IP Throttling settings - default", - "request": { - "urlPathTemplate": "/attack-protection/suspicious-ip-throttling", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"enabled\": true,\n \"shields\": [\n \"block\"\n ],\n \"allowlist\": [\n \"allowlist\"\n ],\n \"stage\": {\n \"pre-login\": {\n \"max_attempts\": 1,\n \"rate\": 1\n },\n \"pre-user-registration\": {\n \"max_attempts\": 1,\n \"rate\": 1\n },\n \"pre-custom-token-exchange\": {\n \"max_attempts\": 1,\n \"rate\": 1\n }\n }\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "a3ae14b8-1582-4cae-bb51-84b1d3b3fccf", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "119c9fe7-b349-4ad0-8846-3e6be6a9661e", - "name": "Update Suspicious IP Throttling settings - default", - "request": { - "urlPathTemplate": "/attack-protection/suspicious-ip-throttling", - "method": "PATCH", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"enabled\": true,\n \"shields\": [\n \"block\"\n ],\n \"allowlist\": [\n \"allowlist\"\n ],\n \"stage\": {\n \"pre-login\": {\n \"max_attempts\": 1,\n \"rate\": 1\n },\n \"pre-user-registration\": {\n \"max_attempts\": 1,\n \"rate\": 1\n },\n \"pre-custom-token-exchange\": {\n \"max_attempts\": 1,\n \"rate\": 1\n }\n }\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "119c9fe7-b349-4ad0-8846-3e6be6a9661e", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "bdf661b2-3819-41c2-98f8-4b9137f67189", - "name": "Get template for New Universal Login Experience - default", - "request": { - "urlPathTemplate": "/branding/templates/universal-login", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"body\": \"body\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "bdf661b2-3819-41c2-98f8-4b9137f67189", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "44f5b8dc-7d64-47a1-8889-79cda94f7809", - "name": "Set template for New Universal Login Experience - default", - "request": { - "urlPathTemplate": "/branding/templates/universal-login", - "method": "PUT", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "44f5b8dc-7d64-47a1-8889-79cda94f7809", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "c2b51bd9-187b-466d-8fe6-68a2eb02e00f", - "name": "Delete template for New Universal Login Experience - default", - "request": { - "urlPathTemplate": "/branding/templates/universal-login", - "method": "DELETE", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "c2b51bd9-187b-466d-8fe6-68a2eb02e00f", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "2c7a5627-a851-4881-9e60-689c81a3122b", - "name": "Create branding theme - default", - "request": { - "urlPathTemplate": "/branding/themes", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"borders\": {\n \"button_border_radius\": 1.1,\n \"button_border_weight\": 1.1,\n \"buttons_style\": \"pill\",\n \"input_border_radius\": 1.1,\n \"input_border_weight\": 1.1,\n \"inputs_style\": \"pill\",\n \"show_widget_shadow\": true,\n \"widget_border_weight\": 1.1,\n \"widget_corner_radius\": 1.1\n },\n \"colors\": {\n \"base_focus_color\": \"base_focus_color\",\n \"base_hover_color\": \"base_hover_color\",\n \"body_text\": \"body_text\",\n \"captcha_widget_theme\": \"auto\",\n \"error\": \"error\",\n \"header\": \"header\",\n \"icons\": \"icons\",\n \"input_background\": \"input_background\",\n \"input_border\": \"input_border\",\n \"input_filled_text\": \"input_filled_text\",\n \"input_labels_placeholders\": \"input_labels_placeholders\",\n \"links_focused_components\": \"links_focused_components\",\n \"primary_button\": \"primary_button\",\n \"primary_button_label\": \"primary_button_label\",\n \"read_only_background\": \"read_only_background\",\n \"secondary_button_border\": \"secondary_button_border\",\n \"secondary_button_label\": \"secondary_button_label\",\n \"success\": \"success\",\n \"widget_background\": \"widget_background\",\n \"widget_border\": \"widget_border\"\n },\n \"displayName\": \"displayName\",\n \"fonts\": {\n \"body_text\": {\n \"bold\": true,\n \"size\": 1.1\n },\n \"buttons_text\": {\n \"bold\": true,\n \"size\": 1.1\n },\n \"font_url\": \"font_url\",\n \"input_labels\": {\n \"bold\": true,\n \"size\": 1.1\n },\n \"links\": {\n \"bold\": true,\n \"size\": 1.1\n },\n \"links_style\": \"normal\",\n \"reference_text_size\": 1.1,\n \"subtitle\": {\n \"bold\": true,\n \"size\": 1.1\n },\n \"title\": {\n \"bold\": true,\n \"size\": 1.1\n }\n },\n \"identifiers\": {\n \"login_display\": \"separate\",\n \"otp_autocomplete\": true,\n \"phone_display\": {\n \"formatting\": \"international\",\n \"masking\": \"hide_country_code\"\n }\n },\n \"page_background\": {\n \"background_color\": \"background_color\",\n \"background_image_url\": \"background_image_url\",\n \"page_layout\": \"center\"\n },\n \"themeId\": \"themeId\",\n \"widget\": {\n \"header_text_alignment\": \"center\",\n \"logo_height\": 1.1,\n \"logo_position\": \"center\",\n \"logo_url\": \"logo_url\",\n \"social_buttons_layout\": \"bottom\"\n }\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "2c7a5627-a851-4881-9e60-689c81a3122b", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "91d16fa4-7e8b-4de2-aa78-061a5267295b", - "name": "Get default branding theme - default", - "request": { - "urlPathTemplate": "/branding/themes/default", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"borders\": {\n \"button_border_radius\": 1.1,\n \"button_border_weight\": 1.1,\n \"buttons_style\": \"pill\",\n \"input_border_radius\": 1.1,\n \"input_border_weight\": 1.1,\n \"inputs_style\": \"pill\",\n \"show_widget_shadow\": true,\n \"widget_border_weight\": 1.1,\n \"widget_corner_radius\": 1.1\n },\n \"colors\": {\n \"base_focus_color\": \"base_focus_color\",\n \"base_hover_color\": \"base_hover_color\",\n \"body_text\": \"body_text\",\n \"captcha_widget_theme\": \"auto\",\n \"error\": \"error\",\n \"header\": \"header\",\n \"icons\": \"icons\",\n \"input_background\": \"input_background\",\n \"input_border\": \"input_border\",\n \"input_filled_text\": \"input_filled_text\",\n \"input_labels_placeholders\": \"input_labels_placeholders\",\n \"links_focused_components\": \"links_focused_components\",\n \"primary_button\": \"primary_button\",\n \"primary_button_label\": \"primary_button_label\",\n \"read_only_background\": \"read_only_background\",\n \"secondary_button_border\": \"secondary_button_border\",\n \"secondary_button_label\": \"secondary_button_label\",\n \"success\": \"success\",\n \"widget_background\": \"widget_background\",\n \"widget_border\": \"widget_border\"\n },\n \"displayName\": \"displayName\",\n \"fonts\": {\n \"body_text\": {\n \"bold\": true,\n \"size\": 1.1\n },\n \"buttons_text\": {\n \"bold\": true,\n \"size\": 1.1\n },\n \"font_url\": \"font_url\",\n \"input_labels\": {\n \"bold\": true,\n \"size\": 1.1\n },\n \"links\": {\n \"bold\": true,\n \"size\": 1.1\n },\n \"links_style\": \"normal\",\n \"reference_text_size\": 1.1,\n \"subtitle\": {\n \"bold\": true,\n \"size\": 1.1\n },\n \"title\": {\n \"bold\": true,\n \"size\": 1.1\n }\n },\n \"identifiers\": {\n \"login_display\": \"separate\",\n \"otp_autocomplete\": true,\n \"phone_display\": {\n \"formatting\": \"international\",\n \"masking\": \"hide_country_code\"\n }\n },\n \"page_background\": {\n \"background_color\": \"background_color\",\n \"background_image_url\": \"background_image_url\",\n \"page_layout\": \"center\"\n },\n \"themeId\": \"themeId\",\n \"widget\": {\n \"header_text_alignment\": \"center\",\n \"logo_height\": 1.1,\n \"logo_position\": \"center\",\n \"logo_url\": \"logo_url\",\n \"social_buttons_layout\": \"bottom\"\n }\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "91d16fa4-7e8b-4de2-aa78-061a5267295b", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "f102da1c-5323-41ec-b320-888d05f069b8", - "name": "Get branding theme - default", - "request": { - "urlPathTemplate": "/branding/themes/{themeId}", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "themeId": { - "equalTo": "themeId" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"borders\": {\n \"button_border_radius\": 1.1,\n \"button_border_weight\": 1.1,\n \"buttons_style\": \"pill\",\n \"input_border_radius\": 1.1,\n \"input_border_weight\": 1.1,\n \"inputs_style\": \"pill\",\n \"show_widget_shadow\": true,\n \"widget_border_weight\": 1.1,\n \"widget_corner_radius\": 1.1\n },\n \"colors\": {\n \"base_focus_color\": \"base_focus_color\",\n \"base_hover_color\": \"base_hover_color\",\n \"body_text\": \"body_text\",\n \"captcha_widget_theme\": \"auto\",\n \"error\": \"error\",\n \"header\": \"header\",\n \"icons\": \"icons\",\n \"input_background\": \"input_background\",\n \"input_border\": \"input_border\",\n \"input_filled_text\": \"input_filled_text\",\n \"input_labels_placeholders\": \"input_labels_placeholders\",\n \"links_focused_components\": \"links_focused_components\",\n \"primary_button\": \"primary_button\",\n \"primary_button_label\": \"primary_button_label\",\n \"read_only_background\": \"read_only_background\",\n \"secondary_button_border\": \"secondary_button_border\",\n \"secondary_button_label\": \"secondary_button_label\",\n \"success\": \"success\",\n \"widget_background\": \"widget_background\",\n \"widget_border\": \"widget_border\"\n },\n \"displayName\": \"displayName\",\n \"fonts\": {\n \"body_text\": {\n \"bold\": true,\n \"size\": 1.1\n },\n \"buttons_text\": {\n \"bold\": true,\n \"size\": 1.1\n },\n \"font_url\": \"font_url\",\n \"input_labels\": {\n \"bold\": true,\n \"size\": 1.1\n },\n \"links\": {\n \"bold\": true,\n \"size\": 1.1\n },\n \"links_style\": \"normal\",\n \"reference_text_size\": 1.1,\n \"subtitle\": {\n \"bold\": true,\n \"size\": 1.1\n },\n \"title\": {\n \"bold\": true,\n \"size\": 1.1\n }\n },\n \"identifiers\": {\n \"login_display\": \"separate\",\n \"otp_autocomplete\": true,\n \"phone_display\": {\n \"formatting\": \"international\",\n \"masking\": \"hide_country_code\"\n }\n },\n \"page_background\": {\n \"background_color\": \"background_color\",\n \"background_image_url\": \"background_image_url\",\n \"page_layout\": \"center\"\n },\n \"themeId\": \"themeId\",\n \"widget\": {\n \"header_text_alignment\": \"center\",\n \"logo_height\": 1.1,\n \"logo_position\": \"center\",\n \"logo_url\": \"logo_url\",\n \"social_buttons_layout\": \"bottom\"\n }\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "f102da1c-5323-41ec-b320-888d05f069b8", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "215eeb29-68c9-4243-857e-d87a7c62795f", - "name": "Delete branding theme - default", - "request": { - "urlPathTemplate": "/branding/themes/{themeId}", - "method": "DELETE", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "themeId": { - "equalTo": "themeId" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "215eeb29-68c9-4243-857e-d87a7c62795f", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "2dbbd929-7e98-438f-8310-2500cb90f70c", - "name": "Update branding theme - default", - "request": { - "urlPathTemplate": "/branding/themes/{themeId}", - "method": "PATCH", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "themeId": { - "equalTo": "themeId" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"borders\": {\n \"button_border_radius\": 1.1,\n \"button_border_weight\": 1.1,\n \"buttons_style\": \"pill\",\n \"input_border_radius\": 1.1,\n \"input_border_weight\": 1.1,\n \"inputs_style\": \"pill\",\n \"show_widget_shadow\": true,\n \"widget_border_weight\": 1.1,\n \"widget_corner_radius\": 1.1\n },\n \"colors\": {\n \"base_focus_color\": \"base_focus_color\",\n \"base_hover_color\": \"base_hover_color\",\n \"body_text\": \"body_text\",\n \"captcha_widget_theme\": \"auto\",\n \"error\": \"error\",\n \"header\": \"header\",\n \"icons\": \"icons\",\n \"input_background\": \"input_background\",\n \"input_border\": \"input_border\",\n \"input_filled_text\": \"input_filled_text\",\n \"input_labels_placeholders\": \"input_labels_placeholders\",\n \"links_focused_components\": \"links_focused_components\",\n \"primary_button\": \"primary_button\",\n \"primary_button_label\": \"primary_button_label\",\n \"read_only_background\": \"read_only_background\",\n \"secondary_button_border\": \"secondary_button_border\",\n \"secondary_button_label\": \"secondary_button_label\",\n \"success\": \"success\",\n \"widget_background\": \"widget_background\",\n \"widget_border\": \"widget_border\"\n },\n \"displayName\": \"displayName\",\n \"fonts\": {\n \"body_text\": {\n \"bold\": true,\n \"size\": 1.1\n },\n \"buttons_text\": {\n \"bold\": true,\n \"size\": 1.1\n },\n \"font_url\": \"font_url\",\n \"input_labels\": {\n \"bold\": true,\n \"size\": 1.1\n },\n \"links\": {\n \"bold\": true,\n \"size\": 1.1\n },\n \"links_style\": \"normal\",\n \"reference_text_size\": 1.1,\n \"subtitle\": {\n \"bold\": true,\n \"size\": 1.1\n },\n \"title\": {\n \"bold\": true,\n \"size\": 1.1\n }\n },\n \"identifiers\": {\n \"login_display\": \"separate\",\n \"otp_autocomplete\": true,\n \"phone_display\": {\n \"formatting\": \"international\",\n \"masking\": \"hide_country_code\"\n }\n },\n \"page_background\": {\n \"background_color\": \"background_color\",\n \"background_image_url\": \"background_image_url\",\n \"page_layout\": \"center\"\n },\n \"themeId\": \"themeId\",\n \"widget\": {\n \"header_text_alignment\": \"center\",\n \"logo_height\": 1.1,\n \"logo_position\": \"center\",\n \"logo_url\": \"logo_url\",\n \"social_buttons_layout\": \"bottom\"\n }\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "2dbbd929-7e98-438f-8310-2500cb90f70c", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "520b4b30-1317-42da-89bf-a0491d1694b6", - "name": "Get a list of phone providers - default", - "request": { - "urlPathTemplate": "/branding/phone/providers", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "queryParameters": { - "disabled": { - "equalTo": "true" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"providers\": [\n {\n \"id\": \"id\",\n \"tenant\": \"tenant\",\n \"name\": \"twilio\",\n \"channel\": \"phone\",\n \"disabled\": true,\n \"configuration\": {\n \"sid\": \"sid\",\n \"delivery_methods\": [\n \"text\"\n ]\n },\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n }\n ]\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "520b4b30-1317-42da-89bf-a0491d1694b6", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "be5761ff-7af6-40ca-95bb-4fdc3bf8eb00", - "name": "Configure the phone provider - default", - "request": { - "urlPathTemplate": "/branding/phone/providers", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 201, - "body": "{\n \"id\": \"id\",\n \"tenant\": \"tenant\",\n \"name\": \"twilio\",\n \"channel\": \"phone\",\n \"disabled\": true,\n \"configuration\": {\n \"default_from\": \"default_from\",\n \"mssid\": \"mssid\",\n \"sid\": \"sid\",\n \"delivery_methods\": [\n \"text\"\n ]\n },\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "be5761ff-7af6-40ca-95bb-4fdc3bf8eb00", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "8c639058-4844-47c5-8ad8-c0ccd33399bb", - "name": "Get a phone provider - default", - "request": { - "urlPathTemplate": "/branding/phone/providers/{id}", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"id\": \"id\",\n \"tenant\": \"tenant\",\n \"name\": \"twilio\",\n \"channel\": \"phone\",\n \"disabled\": true,\n \"configuration\": {\n \"default_from\": \"default_from\",\n \"mssid\": \"mssid\",\n \"sid\": \"sid\",\n \"delivery_methods\": [\n \"text\"\n ]\n },\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "8c639058-4844-47c5-8ad8-c0ccd33399bb", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "a6175428-056a-47f4-b776-4dcf8260822c", - "name": "Deletes a Phone Provider - default", - "request": { - "urlPathTemplate": "/branding/phone/providers/{id}", - "method": "DELETE", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "a6175428-056a-47f4-b776-4dcf8260822c", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "95edda2c-d9d9-4854-9130-044ebb441bd7", - "name": "Update the phone provider - default", - "request": { - "urlPathTemplate": "/branding/phone/providers/{id}", - "method": "PATCH", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"id\": \"id\",\n \"tenant\": \"tenant\",\n \"name\": \"twilio\",\n \"channel\": \"phone\",\n \"disabled\": true,\n \"configuration\": {\n \"default_from\": \"default_from\",\n \"mssid\": \"mssid\",\n \"sid\": \"sid\",\n \"delivery_methods\": [\n \"text\"\n ]\n },\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "95edda2c-d9d9-4854-9130-044ebb441bd7", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "eced0fdd-3915-430a-8c28-1161ab6a3313", - "name": "Send a test phone notification for the configured provider - default", - "request": { - "urlPathTemplate": "/branding/phone/providers/{id}/try", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 202, - "body": "{\n \"code\": 1.1,\n \"message\": \"message\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "eced0fdd-3915-430a-8c28-1161ab6a3313", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "927ee9f5-34f7-4b77-83bf-5eb0b1a61e2d", - "name": "Get a list of phone notification templates - default", - "request": { - "urlPathTemplate": "/branding/phone/templates", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "queryParameters": { - "disabled": { - "equalTo": "true" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"templates\": [\n {\n \"id\": \"id\",\n \"channel\": \"channel\",\n \"customizable\": true,\n \"tenant\": \"tenant\",\n \"content\": {},\n \"type\": \"otp_verify\",\n \"disabled\": true\n }\n ]\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "927ee9f5-34f7-4b77-83bf-5eb0b1a61e2d", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "300d3eb8-52bc-4001-8af4-a0594f4242d9", - "name": "Create a phone notification template - default", - "request": { - "urlPathTemplate": "/branding/phone/templates", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 201, - "body": "{\n \"id\": \"id\",\n \"channel\": \"channel\",\n \"customizable\": true,\n \"tenant\": \"tenant\",\n \"content\": {\n \"syntax\": \"syntax\",\n \"from\": \"from\",\n \"body\": {\n \"text\": \"text\",\n \"voice\": \"voice\"\n }\n },\n \"type\": \"otp_verify\",\n \"disabled\": true\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "300d3eb8-52bc-4001-8af4-a0594f4242d9", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "76aa966c-5fbe-4a23-a2a4-7cbf13eb043c", - "name": "Get a phone notification template - default", - "request": { - "urlPathTemplate": "/branding/phone/templates/{id}", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"id\": \"id\",\n \"channel\": \"channel\",\n \"customizable\": true,\n \"tenant\": \"tenant\",\n \"content\": {\n \"syntax\": \"syntax\",\n \"from\": \"from\",\n \"body\": {\n \"text\": \"text\",\n \"voice\": \"voice\"\n }\n },\n \"type\": \"otp_verify\",\n \"disabled\": true\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "76aa966c-5fbe-4a23-a2a4-7cbf13eb043c", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "97c15733-1abd-4f5e-8eda-3dc1b372e0ec", - "name": "Delete a phone notification template - default", - "request": { - "urlPathTemplate": "/branding/phone/templates/{id}", - "method": "DELETE", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "97c15733-1abd-4f5e-8eda-3dc1b372e0ec", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "2e4c517e-f1d0-4252-bfea-7b6342825fba", - "name": "Update a phone notification template - default", - "request": { - "urlPathTemplate": "/branding/phone/templates/{id}", - "method": "PATCH", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"id\": \"id\",\n \"channel\": \"channel\",\n \"customizable\": true,\n \"tenant\": \"tenant\",\n \"content\": {\n \"syntax\": \"syntax\",\n \"from\": \"from\",\n \"body\": {\n \"text\": \"text\",\n \"voice\": \"voice\"\n }\n },\n \"type\": \"otp_verify\",\n \"disabled\": true\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "2e4c517e-f1d0-4252-bfea-7b6342825fba", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "7d7a4ccb-4b23-4fb0-813d-9f0eef8f6ed4", - "name": "Resets a phone notification template values - default", - "request": { - "urlPathTemplate": "/branding/phone/templates/{id}/reset", - "method": "PATCH", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"id\": \"x\",\n \"channel\": \"channel\",\n \"customizable\": true,\n \"tenant\": \"x\",\n \"content\": {\n \"syntax\": \"syntax\",\n \"from\": \"x\",\n \"body\": {\n \"text\": \"x\",\n \"voice\": \"x\"\n }\n },\n \"type\": \"otp_verify\",\n \"disabled\": true\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "7d7a4ccb-4b23-4fb0-813d-9f0eef8f6ed4", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "0d9ba799-020f-40db-86d6-08de485ad618", - "name": "Send a test phone notification for the configured template - default", - "request": { - "urlPathTemplate": "/branding/phone/templates/{id}/try", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 202, - "body": "{\n \"message\": \"message\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "0d9ba799-020f-40db-86d6-08de485ad618", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "f3b442cc-02a6-4c76-9a8f-3c3bd4c6efde", - "name": "Get the organizations associated to a client grant - default", - "request": { - "urlPathTemplate": "/client-grants/{id}/organizations", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - }, - "queryParameters": { - "include_totals": { - "equalTo": "true" - }, - "from": { - "equalTo": "from" - }, - "take": { - "equalTo": "1" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"next\": \"next\",\n \"organizations\": [\n {\n \"id\": \"id\",\n \"name\": \"name\",\n \"display_name\": \"display_name\",\n \"token_quota\": {\n \"client_credentials\": {}\n },\n \"third_party_client_access\": \"block\",\n \"is_app_entitlement_active\": true\n }\n ]\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "f3b442cc-02a6-4c76-9a8f-3c3bd4c6efde", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "318739d6-2060-4406-9548-e1dca9fc9306", - "name": "Get client credentials - default", - "request": { - "urlPathTemplate": "/clients/{client_id}/credentials", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "client_id": { - "equalTo": "client_id" - } - } - }, - "response": { - "status": 200, - "body": "[\n {\n \"id\": \"id\",\n \"name\": \"name\",\n \"kid\": \"kid\",\n \"alg\": \"RS256\",\n \"credential_type\": \"public_key\",\n \"subject_dn\": \"subject_dn\",\n \"thumbprint_sha256\": \"thumbprint_sha256\",\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\",\n \"expires_at\": \"2024-01-15T09:30:00Z\"\n }\n]", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "318739d6-2060-4406-9548-e1dca9fc9306", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "e1b4ce2a-40cd-428d-98c4-4fe2c4dfb358", - "name": "Create a client credential - default", - "request": { - "urlPathTemplate": "/clients/{client_id}/credentials", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "client_id": { - "equalTo": "client_id" - } - } - }, - "response": { - "status": 201, - "body": "{\n \"id\": \"id\",\n \"name\": \"name\",\n \"kid\": \"kid\",\n \"alg\": \"RS256\",\n \"credential_type\": \"public_key\",\n \"subject_dn\": \"subject_dn\",\n \"thumbprint_sha256\": \"thumbprint_sha256\",\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\",\n \"expires_at\": \"2024-01-15T09:30:00Z\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "e1b4ce2a-40cd-428d-98c4-4fe2c4dfb358", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "84fb49da-5fa4-4f09-8176-cf14ff179829", - "name": "Get client credential details - default", - "request": { - "urlPathTemplate": "/clients/{client_id}/credentials/{credential_id}", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "client_id": { - "equalTo": "client_id" - }, - "credential_id": { - "equalTo": "credential_id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"id\": \"id\",\n \"name\": \"name\",\n \"kid\": \"kid\",\n \"alg\": \"RS256\",\n \"credential_type\": \"public_key\",\n \"subject_dn\": \"subject_dn\",\n \"thumbprint_sha256\": \"thumbprint_sha256\",\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\",\n \"expires_at\": \"2024-01-15T09:30:00Z\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "84fb49da-5fa4-4f09-8176-cf14ff179829", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "ac24c006-0300-485b-b881-9bfd0a38c4aa", - "name": "Delete a client credential - default", - "request": { - "urlPathTemplate": "/clients/{client_id}/credentials/{credential_id}", - "method": "DELETE", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "client_id": { - "equalTo": "client_id" - }, - "credential_id": { - "equalTo": "credential_id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "ac24c006-0300-485b-b881-9bfd0a38c4aa", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "c820cce1-37c3-4aa6-8700-119563b70d23", - "name": "Update a client credential - default", - "request": { - "urlPathTemplate": "/clients/{client_id}/credentials/{credential_id}", - "method": "PATCH", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "client_id": { - "equalTo": "client_id" - }, - "credential_id": { - "equalTo": "credential_id" - } - } - }, - "response": { - "status": 201, - "body": "{\n \"id\": \"id\",\n \"name\": \"name\",\n \"kid\": \"kid\",\n \"alg\": \"RS256\",\n \"credential_type\": \"public_key\",\n \"subject_dn\": \"subject_dn\",\n \"thumbprint_sha256\": \"thumbprint_sha256\",\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\",\n \"expires_at\": \"2024-01-15T09:30:00Z\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "c820cce1-37c3-4aa6-8700-119563b70d23", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "324ddd4f-5b97-4bf3-8c51-91ad2c931c47", - "name": "Get enabled connections for a client - default", - "request": { - "urlPathTemplate": "/clients/{id}/connections", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - }, - "queryParameters": { - "strategy": { - "hasExactly": [ - { - "equalTo": "ad" - } - ] - }, - "from": { - "equalTo": "from" - }, - "take": { - "equalTo": "1" - }, - "fields": { - "equalTo": "fields" - }, - "include_fields": { - "equalTo": "true" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"connections\": [\n {\n \"name\": \"name\",\n \"display_name\": \"display_name\",\n \"options\": {\n \"key\": \"value\"\n },\n \"id\": \"id\",\n \"strategy\": \"strategy\",\n \"realms\": [\n \"realms\"\n ],\n \"is_domain_connection\": true,\n \"show_as_button\": true,\n \"authentication\": {\n \"active\": true\n },\n \"connected_accounts\": {\n \"active\": true\n },\n \"cross_app_access_requesting_app\": {\n \"active\": true\n },\n \"cross_app_access_resource_app\": {\n \"status\": \"enabled\"\n }\n }\n ],\n \"next\": \"next\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "324ddd4f-5b97-4bf3-8c51-91ad2c931c47", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "7960ea97-24a9-4c8e-ad42-2dcb8c0215bc", - "name": "Get a list of directory provisioning configurations - default", - "request": { - "urlPathTemplate": "/connections-directory-provisionings", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "queryParameters": { - "from": { - "equalTo": "from" - }, - "take": { - "equalTo": "1" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"directory_provisionings\": [\n {\n \"connection_id\": \"connection_id\",\n \"connection_name\": \"connection_name\",\n \"strategy\": \"strategy\",\n \"mapping\": [\n {\n \"auth0\": \"auth0\",\n \"idp\": \"idp\"\n }\n ],\n \"synchronize_automatically\": true,\n \"synchronize_groups\": \"all\",\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\",\n \"last_synchronization_at\": \"2024-01-15T09:30:00Z\",\n \"last_synchronization_status\": \"last_synchronization_status\",\n \"last_synchronization_error\": \"last_synchronization_error\"\n }\n ],\n \"next\": \"next\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "7960ea97-24a9-4c8e-ad42-2dcb8c0215bc", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "feeddf21-212e-4dbc-a0eb-4a922ec0341b", - "name": "Get a directory provisioning configuration - default", - "request": { - "urlPathTemplate": "/connections/{id}/directory-provisioning", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"connection_id\": \"connection_id\",\n \"connection_name\": \"connection_name\",\n \"strategy\": \"strategy\",\n \"mapping\": [\n {\n \"auth0\": \"auth0\",\n \"idp\": \"idp\"\n }\n ],\n \"synchronize_automatically\": true,\n \"synchronize_groups\": \"all\",\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\",\n \"last_synchronization_at\": \"2024-01-15T09:30:00Z\",\n \"last_synchronization_status\": \"last_synchronization_status\",\n \"last_synchronization_error\": \"last_synchronization_error\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "feeddf21-212e-4dbc-a0eb-4a922ec0341b", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "3cfd3977-6fa4-44df-bdf3-78fee867315a", - "name": "Create a directory provisioning configuration - default", - "request": { - "urlPathTemplate": "/connections/{id}/directory-provisioning", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 201, - "body": "{\n \"connection_id\": \"connection_id\",\n \"connection_name\": \"connection_name\",\n \"strategy\": \"strategy\",\n \"mapping\": [\n {\n \"auth0\": \"auth0\",\n \"idp\": \"idp\"\n }\n ],\n \"synchronize_automatically\": true,\n \"synchronize_groups\": \"all\",\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\",\n \"last_synchronization_at\": \"2024-01-15T09:30:00Z\",\n \"last_synchronization_status\": \"last_synchronization_status\",\n \"last_synchronization_error\": \"last_synchronization_error\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "3cfd3977-6fa4-44df-bdf3-78fee867315a", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "2ee66349-1719-45a8-bbbc-65b8e4e783a3", - "name": "Delete a directory provisioning configuration - default", - "request": { - "urlPathTemplate": "/connections/{id}/directory-provisioning", - "method": "DELETE", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "2ee66349-1719-45a8-bbbc-65b8e4e783a3", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "738a6f0e-a176-48c6-ac5b-1bcc67bc8656", - "name": "Patch a directory provisioning configuration - default", - "request": { - "urlPathTemplate": "/connections/{id}/directory-provisioning", - "method": "PATCH", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"connection_id\": \"connection_id\",\n \"connection_name\": \"connection_name\",\n \"strategy\": \"strategy\",\n \"mapping\": [\n {\n \"auth0\": \"auth0\",\n \"idp\": \"idp\"\n }\n ],\n \"synchronize_automatically\": true,\n \"synchronize_groups\": \"all\",\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\",\n \"last_synchronization_at\": \"2024-01-15T09:30:00Z\",\n \"last_synchronization_status\": \"last_synchronization_status\",\n \"last_synchronization_error\": \"last_synchronization_error\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "738a6f0e-a176-48c6-ac5b-1bcc67bc8656", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "181a029d-c4d1-4386-8c0d-4e517aea7579", - "name": "Get a connection's default directory provisioning attribute mapping - default", - "request": { - "urlPathTemplate": "/connections/{id}/directory-provisioning/default-mapping", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"mapping\": [\n {\n \"auth0\": \"auth0\",\n \"idp\": \"idp\"\n }\n ]\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "181a029d-c4d1-4386-8c0d-4e517aea7579", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "54b92a05-a1d2-41b6-887a-45227b7b7901", - "name": "Get synchronized groups for a directory provisioning configuration - default", - "request": { - "urlPathTemplate": "/connections/{id}/directory-provisioning/synchronized-groups", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - }, - "queryParameters": { - "from": { - "equalTo": "from" - }, - "take": { - "equalTo": "1" - }, - "q": { - "equalTo": "q" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"groups\": [\n {\n \"id\": \"id\",\n \"name\": \"name\",\n \"email\": \"email\",\n \"direct_members_count\": 1\n }\n ],\n \"next\": \"next\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "54b92a05-a1d2-41b6-887a-45227b7b7901", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "5bbdfb31-4781-467f-8fba-9b4896124cb2", - "name": "Add synchronized group selections to a directory provisioning configuration - default", - "request": { - "urlPathTemplate": "/connections/{id}/directory-provisioning/synchronized-groups", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "5bbdfb31-4781-467f-8fba-9b4896124cb2", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "3862e103-ed23-45b1-9543-8c83720a6c9c", - "name": "Create or replace synchronized group selections for a directory provisioning configuration - default", - "request": { - "urlPathTemplate": "/connections/{id}/directory-provisioning/synchronized-groups", - "method": "PUT", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "3862e103-ed23-45b1-9543-8c83720a6c9c", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "e0e41a59-3e51-4a64-b4c9-8bfae41b828f", - "name": "Delete synchronized group selections for a directory provisioning configuration - default", - "request": { - "urlPathTemplate": "/connections/{id}/directory-provisioning/synchronized-groups", - "method": "DELETE", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "e0e41a59-3e51-4a64-b4c9-8bfae41b828f", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "9821e94c-1529-464c-911e-9b351dbc15bd", - "name": "Get a list of SCIM configurations - default", - "request": { - "urlPathTemplate": "/connections-scim-configurations", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "queryParameters": { - "from": { - "equalTo": "from" - }, - "take": { - "equalTo": "1" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"scim_configurations\": [\n {\n \"connection_id\": \"connection_id\",\n \"connection_name\": \"connection_name\",\n \"strategy\": \"strategy\",\n \"tenant_name\": \"tenant_name\",\n \"user_id_attribute\": \"user_id_attribute\",\n \"mapping\": [\n {}\n ],\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_on\": \"2024-01-15T09:30:00Z\"\n }\n ],\n \"next\": \"next\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "9821e94c-1529-464c-911e-9b351dbc15bd", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "30a0fe58-a2bc-4645-9d9e-c1ca9f8c3e2f", - "name": "Get a connection's SCIM configuration - default", - "request": { - "urlPathTemplate": "/connections/{id}/scim-configuration", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"connection_id\": \"connection_id\",\n \"connection_name\": \"connection_name\",\n \"strategy\": \"strategy\",\n \"tenant_name\": \"tenant_name\",\n \"user_id_attribute\": \"user_id_attribute\",\n \"mapping\": [\n {\n \"auth0\": \"auth0\",\n \"scim\": \"scim\"\n }\n ],\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_on\": \"2024-01-15T09:30:00Z\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "30a0fe58-a2bc-4645-9d9e-c1ca9f8c3e2f", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "45f92e80-8b92-4937-b29b-76fac22cf624", - "name": "Create a SCIM configuration - default", - "request": { - "urlPathTemplate": "/connections/{id}/scim-configuration", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 201, - "body": "{\n \"connection_id\": \"connection_id\",\n \"connection_name\": \"connection_name\",\n \"strategy\": \"strategy\",\n \"tenant_name\": \"tenant_name\",\n \"user_id_attribute\": \"user_id_attribute\",\n \"mapping\": [\n {\n \"auth0\": \"auth0\",\n \"scim\": \"scim\"\n }\n ],\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_on\": \"2024-01-15T09:30:00Z\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "45f92e80-8b92-4937-b29b-76fac22cf624", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "c9239c3d-f534-4c1d-a05e-64c0785f569a", - "name": "Delete a connection's SCIM configuration - default", - "request": { - "urlPathTemplate": "/connections/{id}/scim-configuration", - "method": "DELETE", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "c9239c3d-f534-4c1d-a05e-64c0785f569a", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "d298cb6d-3c6a-4510-a78c-556fad17fd65", - "name": "Patch a connection's SCIM configuration - default", - "request": { - "urlPathTemplate": "/connections/{id}/scim-configuration", - "method": "PATCH", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"connection_id\": \"connection_id\",\n \"connection_name\": \"connection_name\",\n \"strategy\": \"strategy\",\n \"tenant_name\": \"tenant_name\",\n \"user_id_attribute\": \"user_id_attribute\",\n \"mapping\": [\n {\n \"auth0\": \"auth0\",\n \"scim\": \"scim\"\n }\n ],\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_on\": \"2024-01-15T09:30:00Z\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "d298cb6d-3c6a-4510-a78c-556fad17fd65", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "4cc31df0-e4df-450c-9fac-16b9c893e9fa", - "name": "Get a connection's default SCIM mapping - default", - "request": { - "urlPathTemplate": "/connections/{id}/scim-configuration/default-mapping", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"mapping\": [\n {\n \"auth0\": \"auth0\",\n \"scim\": \"scim\"\n }\n ]\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "4cc31df0-e4df-450c-9fac-16b9c893e9fa", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "4cda0987-d608-47ba-b465-245ecfaabb90", - "name": "Get enabled clients for a connection - default", - "request": { - "urlPathTemplate": "/connections/{id}/clients", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - }, - "queryParameters": { - "take": { - "equalTo": "1" - }, - "from": { - "equalTo": "from" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"clients\": [\n {\n \"client_id\": \"client_id\"\n }\n ],\n \"next\": \"next\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "4cda0987-d608-47ba-b465-245ecfaabb90", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "0c56da15-4d9a-470c-9fcd-64f2c04dd3d3", - "name": "Update enabled clients for a connection - default", - "request": { - "urlPathTemplate": "/connections/{id}/clients", - "method": "PATCH", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "0c56da15-4d9a-470c-9fcd-64f2c04dd3d3", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "bf72570e-1315-4eaa-8145-3f400d3eccf0", - "name": "Get connection keys - default", - "request": { - "urlPathTemplate": "/connections/{id}/keys", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "[\n {\n \"kid\": \"kid\",\n \"cert\": \"cert\",\n \"pkcs\": \"pkcs\",\n \"current\": true,\n \"next\": true,\n \"previous\": true,\n \"current_since\": \"current_since\",\n \"fingerprint\": \"fingerprint\",\n \"thumbprint\": \"thumbprint\",\n \"algorithm\": \"algorithm\",\n \"key_use\": \"encryption\",\n \"subject_dn\": \"subject_dn\"\n }\n]", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "bf72570e-1315-4eaa-8145-3f400d3eccf0", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "faa363d9-1b22-41f6-a15a-6b53ce1566f2", - "name": "Create connection keys - default", - "request": { - "urlPathTemplate": "/connections/{id}/keys", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 201, - "body": "[\n {\n \"kid\": \"kid\",\n \"cert\": \"cert\",\n \"pkcs\": \"pkcs\",\n \"current\": true,\n \"next\": true,\n \"current_since\": \"current_since\",\n \"fingerprint\": \"fingerprint\",\n \"thumbprint\": \"thumbprint\",\n \"algorithm\": \"algorithm\",\n \"key_use\": \"encryption\",\n \"subject_dn\": \"subject_dn\"\n }\n]", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "faa363d9-1b22-41f6-a15a-6b53ce1566f2", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "b11a1483-99df-4d6a-ace7-cb55bf35ba34", - "name": "Rotate connection keys - default", - "request": { - "urlPathTemplate": "/connections/{id}/keys/rotate", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 201, - "body": "{\n \"kid\": \"kid\",\n \"cert\": \"cert\",\n \"pkcs\": \"pkcs\",\n \"next\": true,\n \"fingerprint\": \"fingerprint\",\n \"thumbprint\": \"thumbprint\",\n \"algorithm\": \"algorithm\",\n \"key_use\": \"encryption\",\n \"subject_dn\": \"subject_dn\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "b11a1483-99df-4d6a-ace7-cb55bf35ba34", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "1d0cb62f-340c-4168-bd90-0fa1ba032e3a", - "name": "Delete a connection user - default", - "request": { - "urlPathTemplate": "/connections/{id}/users", - "method": "DELETE", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - }, - "queryParameters": { - "email": { - "equalTo": "email" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "1d0cb62f-340c-4168-bd90-0fa1ba032e3a", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "175c0550-405b-4cd6-b498-6501a695ed33", - "name": "Request an on-demand synchronization of the directory - default", - "request": { - "urlPathTemplate": "/connections/{id}/directory-provisioning/synchronizations", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 201, - "body": "{\n \"connection_id\": \"connection_id\",\n \"synchronization_id\": \"synchronization_id\",\n \"status\": \"status\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "175c0550-405b-4cd6-b498-6501a695ed33", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "58eab082-4eda-42df-9764-ed787b38df1e", - "name": "Get a connection's SCIM tokens - default", - "request": { - "urlPathTemplate": "/connections/{id}/scim-configuration/tokens", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "[\n {\n \"token_id\": \"token_id\",\n \"scopes\": [\n \"scopes\"\n ],\n \"created_at\": \"created_at\",\n \"valid_until\": \"valid_until\",\n \"last_used_at\": \"last_used_at\"\n }\n]", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "58eab082-4eda-42df-9764-ed787b38df1e", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "b55da7ed-453d-4799-b895-796f72020abb", - "name": "Create a SCIM Token - default", - "request": { - "urlPathTemplate": "/connections/{id}/scim-configuration/tokens", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 201, - "body": "{\n \"token_id\": \"token_id\",\n \"token\": \"token\",\n \"scopes\": [\n \"scopes\"\n ],\n \"created_at\": \"created_at\",\n \"valid_until\": \"valid_until\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "b55da7ed-453d-4799-b895-796f72020abb", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "e0eaabd0-7ebe-4b89-90e6-f0c7b43be7c9", - "name": "Delete a connection's SCIM token - default", - "request": { - "urlPathTemplate": "/connections/{id}/scim-configuration/tokens/{tokenId}", - "method": "DELETE", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - }, - "tokenId": { - "equalTo": "tokenId" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "e0eaabd0-7ebe-4b89-90e6-f0c7b43be7c9", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "53da06f4-1ed4-4e51-8bb8-0ce04e219464", - "name": "Get email provider - default", - "request": { - "urlPathTemplate": "/emails/provider", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "queryParameters": { - "fields": { - "equalTo": "fields" - }, - "include_fields": { - "equalTo": "true" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"name\": \"name\",\n \"enabled\": true,\n \"default_from_address\": \"default_from_address\",\n \"credentials\": {\n \"api_user\": \"api_user\",\n \"region\": \"region\",\n \"smtp_host\": \"smtp_host\",\n \"smtp_port\": 1,\n \"smtp_user\": \"smtp_user\"\n },\n \"settings\": {\n \"key\": \"value\"\n }\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "53da06f4-1ed4-4e51-8bb8-0ce04e219464", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "d1a0f535-378f-4200-865f-23ca6cf50b9d", - "name": "Configure email provider - default", - "request": { - "urlPathTemplate": "/emails/provider", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 201, - "body": "{\n \"name\": \"name\",\n \"enabled\": true,\n \"default_from_address\": \"default_from_address\",\n \"credentials\": {\n \"api_user\": \"api_user\",\n \"region\": \"region\",\n \"smtp_host\": \"smtp_host\",\n \"smtp_port\": 1,\n \"smtp_user\": \"smtp_user\"\n },\n \"settings\": {\n \"key\": \"value\"\n }\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "d1a0f535-378f-4200-865f-23ca6cf50b9d", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "a57ca053-0cf9-416a-9cb3-144e7c5bd4d5", - "name": "Delete email provider - default", - "request": { - "urlPathTemplate": "/emails/provider", - "method": "DELETE", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "a57ca053-0cf9-416a-9cb3-144e7c5bd4d5", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "36f2813e-a299-41fd-a6d6-54938ea37a15", - "name": "Update email provider - default", - "request": { - "urlPathTemplate": "/emails/provider", - "method": "PATCH", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"name\": \"name\",\n \"enabled\": true,\n \"default_from_address\": \"default_from_address\",\n \"credentials\": {\n \"api_user\": \"api_user\",\n \"region\": \"region\",\n \"smtp_host\": \"smtp_host\",\n \"smtp_port\": 1,\n \"smtp_user\": \"smtp_user\"\n },\n \"settings\": {\n \"key\": \"value\"\n }\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "36f2813e-a299-41fd-a6d6-54938ea37a15", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "c3751490-b492-4376-9596-bd7d6f5e8443", - "name": "Get this event stream's delivery history - default", - "request": { - "urlPathTemplate": "/event-streams/{id}/deliveries", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - }, - "queryParameters": { - "statuses": { - "equalTo": "statuses" - }, - "event_types": { - "equalTo": "event_types" - }, - "date_from": { - "equalTo": "date_from" - }, - "date_to": { - "equalTo": "date_to" - }, - "from": { - "equalTo": "from" - }, - "take": { - "equalTo": "1" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"deliveries\": [\n {\n \"id\": \"id\",\n \"event_stream_id\": \"event_stream_id\",\n \"status\": \"failed\",\n \"event_type\": \"connection.created\",\n \"attempts\": [\n {\n \"status\": \"failed\",\n \"timestamp\": \"2024-01-15T09:30:00Z\"\n }\n ]\n }\n ],\n \"next\": \"next\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "c3751490-b492-4376-9596-bd7d6f5e8443", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "93fa5cb1-a92c-4b20-8483-814c91175496", - "name": "Get a specific event's delivery history - default", - "request": { - "urlPathTemplate": "/event-streams/{id}/deliveries/{event_id}", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - }, - "event_id": { - "equalTo": "event_id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"id\": \"id\",\n \"event_stream_id\": \"event_stream_id\",\n \"status\": \"failed\",\n \"event_type\": \"connection.created\",\n \"attempts\": [\n {\n \"status\": \"failed\",\n \"timestamp\": \"2024-01-15T09:30:00Z\",\n \"error_message\": \"error_message\",\n \"duration\": 1.1\n }\n ],\n \"event\": {\n \"id\": \"id\",\n \"source\": \"source\",\n \"specversion\": \"specversion\",\n \"type\": \"type\",\n \"time\": \"2024-01-15T09:30:00Z\",\n \"data\": {\n \"key\": \"value\"\n }\n }\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "93fa5cb1-a92c-4b20-8483-814c91175496", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "25856d60-9bad-4777-b7f2-7b5e2656b133", - "name": "Redeliver failed events - default", - "request": { - "urlPathTemplate": "/event-streams/{id}/redeliver", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 202, - "body": "{\n \"date_from\": \"2024-01-15T09:30:00Z\",\n \"date_to\": \"2024-01-15T09:30:00Z\",\n \"statuses\": [\n \"failed\"\n ],\n \"event_types\": [\n \"connection.created\"\n ]\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "25856d60-9bad-4777-b7f2-7b5e2656b133", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "05d8b619-8b8d-41ea-b60f-bea3298d5e33", - "name": "Redeliver a single failed event by ID - default", - "request": { - "urlPathTemplate": "/event-streams/{id}/redeliver/{event_id}", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - }, - "event_id": { - "equalTo": "event_id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "05d8b619-8b8d-41ea-b60f-bea3298d5e33", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "bd75bcab-7889-4be2-8450-869b365b3fd6", - "name": "List experiments for the tenant. - default", - "request": { - "urlPathTemplate": "/experimentation/experiments", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "queryParameters": { - "from": { - "equalTo": "from" - }, - "take": { - "equalTo": "1" - }, - "status": { - "equalTo": "draft" - }, - "authentication_flow": { - "equalTo": "authentication_flow" - }, - "feature_flag_id": { - "equalTo": "feature_flag_id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"experiments\": [\n {\n \"id\": \"id\",\n \"name\": \"name\",\n \"description\": \"description\",\n \"feature_flag_id\": \"feature_flag_id\",\n \"feature_flag_name\": \"feature_flag_name\",\n \"authentication_flow\": \"authentication_flow\",\n \"allocation_strategy\": \"percentage\",\n \"status\": \"draft\",\n \"is_valid\": true,\n \"default_config\": \"tenant\",\n \"feature_flag_snapshot\": {\n \"key\": \"value\"\n },\n \"allocations\": [\n {}\n ],\n \"editable_fields\": [\n \"editable_fields\"\n ],\n \"levels\": [\n 1\n ],\n \"current_level\": 1,\n \"started_at\": \"2024-01-15T09:30:00Z\",\n \"ended_at\": \"2024-01-15T09:30:00Z\",\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n }\n ],\n \"next\": \"next\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "bd75bcab-7889-4be2-8450-869b365b3fd6", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "8134b9b9-4d8a-4951-a430-6287adc0df07", - "name": "Create an experiment for the Experiment Center. - default", - "request": { - "urlPathTemplate": "/experimentation/experiments", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 201, - "body": "{\n \"id\": \"id\",\n \"name\": \"name\",\n \"description\": \"description\",\n \"feature_flag_id\": \"feature_flag_id\",\n \"feature_flag_name\": \"feature_flag_name\",\n \"authentication_flow\": \"authentication_flow\",\n \"allocation_strategy\": \"percentage\",\n \"status\": \"draft\",\n \"is_valid\": true,\n \"default_config\": \"tenant\",\n \"feature_flag_snapshot\": {\n \"key\": \"value\"\n },\n \"allocations\": [\n {\n \"variation_id\": \"variation_id\",\n \"variation_name\": \"variation_name\",\n \"segment_id\": \"segment_id\",\n \"segment_name\": \"segment_name\",\n \"weight\": 1,\n \"priority\": 1,\n \"is_control\": true,\n \"is_fallback\": true,\n \"variation_snapshot\": {\n \"key\": \"value\"\n },\n \"segment_snapshot\": {\n \"key\": \"value\"\n }\n }\n ],\n \"editable_fields\": [\n \"editable_fields\"\n ],\n \"levels\": [\n 1\n ],\n \"current_level\": 1,\n \"started_at\": \"2024-01-15T09:30:00Z\",\n \"ended_at\": \"2024-01-15T09:30:00Z\",\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "8134b9b9-4d8a-4951-a430-6287adc0df07", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "274d4dba-dc33-4e37-8a85-e46845e575b9", - "name": "Get an experiment by ID. - default", - "request": { - "urlPathTemplate": "/experimentation/experiments/{id}", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"id\": \"id\",\n \"name\": \"name\",\n \"description\": \"description\",\n \"feature_flag_id\": \"feature_flag_id\",\n \"feature_flag_name\": \"feature_flag_name\",\n \"authentication_flow\": \"authentication_flow\",\n \"allocation_strategy\": \"percentage\",\n \"status\": \"draft\",\n \"is_valid\": true,\n \"default_config\": \"tenant\",\n \"feature_flag_snapshot\": {\n \"key\": \"value\"\n },\n \"allocations\": [\n {\n \"variation_id\": \"variation_id\",\n \"variation_name\": \"variation_name\",\n \"segment_id\": \"segment_id\",\n \"segment_name\": \"segment_name\",\n \"weight\": 1,\n \"priority\": 1,\n \"is_control\": true,\n \"is_fallback\": true,\n \"variation_snapshot\": {\n \"key\": \"value\"\n },\n \"segment_snapshot\": {\n \"key\": \"value\"\n }\n }\n ],\n \"editable_fields\": [\n \"editable_fields\"\n ],\n \"levels\": [\n 1\n ],\n \"current_level\": 1,\n \"started_at\": \"2024-01-15T09:30:00Z\",\n \"ended_at\": \"2024-01-15T09:30:00Z\",\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "274d4dba-dc33-4e37-8a85-e46845e575b9", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "0029389e-1345-4549-9a99-7244a9975ed8", - "name": "Delete an experiment. - default", - "request": { - "urlPathTemplate": "/experimentation/experiments/{id}", - "method": "DELETE", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "0029389e-1345-4549-9a99-7244a9975ed8", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "2f052315-dd21-4094-b6d2-095774dabfe2", - "name": "Update an experiment. - default", - "request": { - "urlPathTemplate": "/experimentation/experiments/{id}", - "method": "PATCH", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"id\": \"id\",\n \"name\": \"name\",\n \"description\": \"description\",\n \"feature_flag_id\": \"feature_flag_id\",\n \"feature_flag_name\": \"feature_flag_name\",\n \"authentication_flow\": \"authentication_flow\",\n \"allocation_strategy\": \"percentage\",\n \"status\": \"draft\",\n \"is_valid\": true,\n \"default_config\": \"tenant\",\n \"feature_flag_snapshot\": {\n \"key\": \"value\"\n },\n \"allocations\": [\n {\n \"variation_id\": \"variation_id\",\n \"variation_name\": \"variation_name\",\n \"segment_id\": \"segment_id\",\n \"segment_name\": \"segment_name\",\n \"weight\": 1,\n \"priority\": 1,\n \"is_control\": true,\n \"is_fallback\": true,\n \"variation_snapshot\": {\n \"key\": \"value\"\n },\n \"segment_snapshot\": {\n \"key\": \"value\"\n }\n }\n ],\n \"editable_fields\": [\n \"editable_fields\"\n ],\n \"levels\": [\n 1\n ],\n \"current_level\": 1,\n \"started_at\": \"2024-01-15T09:30:00Z\",\n \"ended_at\": \"2024-01-15T09:30:00Z\",\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "2f052315-dd21-4094-b6d2-095774dabfe2", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "82b4942b-e9d7-43ff-9167-27f89f0fb6e3", - "name": "Advance the rollout level of a ramp experiment. - default", - "request": { - "urlPathTemplate": "/experimentation/experiments/{id}/advance-ramp", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 201, - "body": "{\n \"experiment_id\": \"experiment_id\",\n \"from_level\": 1,\n \"to_level\": 1,\n \"current_level\": 1\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "82b4942b-e9d7-43ff-9167-27f89f0fb6e3", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "20ae6e00-fdf5-43c3-a259-bcdbc0129c9d", - "name": "Validate an experiment. - default", - "request": { - "urlPathTemplate": "/experimentation/experiments/{id}/validate", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"is_valid\": true,\n \"errors\": [\n {\n \"code\": \"code\",\n \"message\": \"message\"\n }\n ]\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "20ae6e00-fdf5-43c3-a259-bcdbc0129c9d", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "c7a5a02e-7595-4d10-b58d-5a96d5a3f7c8", - "name": "List feature flags for the tenant. - default", - "request": { - "urlPathTemplate": "/experimentation/feature-flags", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "queryParameters": { - "from": { - "equalTo": "from" - }, - "take": { - "equalTo": "1" - }, - "type": { - "equalTo": "auth0" - }, - "status": { - "equalTo": "draft" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"feature_flags\": [\n {\n \"id\": \"id\",\n \"name\": \"name\",\n \"description\": \"description\",\n \"type\": \"auth0\",\n \"status\": \"draft\",\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n }\n ],\n \"next\": \"next\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "c7a5a02e-7595-4d10-b58d-5a96d5a3f7c8", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "5b965deb-f921-4ef0-b7db-7ba8c30d1fef", - "name": "Create a feature flag for the Experiment Center. - default", - "request": { - "urlPathTemplate": "/experimentation/feature-flags", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 201, - "body": "{\n \"id\": \"id\",\n \"name\": \"name\",\n \"description\": \"description\",\n \"type\": \"auth0\",\n \"status\": \"draft\",\n \"parameters\": {\n \"key\": {\n \"type\": \"string\",\n \"value\": {\n \"key\": \"value\"\n },\n \"description\": \"description\"\n }\n },\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "5b965deb-f921-4ef0-b7db-7ba8c30d1fef", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "d67c44c6-dd70-4a7a-a203-566a40f7970f", - "name": "Get a feature flag by ID. - default", - "request": { - "urlPathTemplate": "/experimentation/feature-flags/{id}", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"id\": \"id\",\n \"name\": \"name\",\n \"description\": \"description\",\n \"type\": \"auth0\",\n \"status\": \"draft\",\n \"parameters\": {\n \"key\": {\n \"type\": \"string\",\n \"value\": {\n \"key\": \"value\"\n },\n \"description\": \"description\"\n }\n },\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "d67c44c6-dd70-4a7a-a203-566a40f7970f", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "94fc1535-b1de-4f15-a050-e0db73d2031d", - "name": "Delete a feature flag. - default", - "request": { - "urlPathTemplate": "/experimentation/feature-flags/{id}", - "method": "DELETE", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "94fc1535-b1de-4f15-a050-e0db73d2031d", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "fca842b6-3f36-4dfb-ae90-568e68695c8c", - "name": "Update a feature flag. - default", - "request": { - "urlPathTemplate": "/experimentation/feature-flags/{id}", - "method": "PATCH", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"id\": \"id\",\n \"name\": \"name\",\n \"description\": \"description\",\n \"type\": \"auth0\",\n \"status\": \"draft\",\n \"parameters\": {\n \"key\": {\n \"type\": \"string\",\n \"value\": {\n \"key\": \"value\"\n },\n \"description\": \"description\"\n }\n },\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "fca842b6-3f36-4dfb-ae90-568e68695c8c", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "f3d101fb-cdd6-4ae1-9613-a72ab8cb6207", - "name": "List segments for the tenant. - default", - "request": { - "urlPathTemplate": "/experimentation/segments", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "queryParameters": { - "from": { - "equalTo": "from" - }, - "take": { - "equalTo": "1" - }, - "type": { - "equalTo": "auth0" - }, - "status": { - "equalTo": "active" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"segments\": [\n {\n \"id\": \"id\",\n \"name\": \"name\",\n \"description\": \"description\",\n \"type\": \"self\",\n \"status\": \"active\",\n \"rules\": [\n {}\n ],\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n }\n ],\n \"next\": \"next\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "f3d101fb-cdd6-4ae1-9613-a72ab8cb6207", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "d8d193b6-8822-4d36-8044-479bd24483e1", - "name": "Create a segment for the Experiment Center. - default", - "request": { - "urlPathTemplate": "/experimentation/segments", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 201, - "body": "{\n \"id\": \"id\",\n \"name\": \"name\",\n \"description\": \"description\",\n \"type\": \"self\",\n \"status\": \"active\",\n \"rules\": [\n {}\n ],\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "d8d193b6-8822-4d36-8044-479bd24483e1", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "f205ed84-327b-4abc-9154-889fab0fb681", - "name": "Get a segment by ID. - default", - "request": { - "urlPathTemplate": "/experimentation/segments/{id}", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"id\": \"id\",\n \"name\": \"name\",\n \"description\": \"description\",\n \"type\": \"self\",\n \"status\": \"active\",\n \"rules\": [\n {}\n ],\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "f205ed84-327b-4abc-9154-889fab0fb681", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "1f1e87b3-9fdc-4b26-8ac2-537a57b6d8ae", - "name": "Delete a segment. - default", - "request": { - "urlPathTemplate": "/experimentation/segments/{id}", - "method": "DELETE", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "1f1e87b3-9fdc-4b26-8ac2-537a57b6d8ae", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "e2397c3e-6009-45bf-8ebd-62d6d9ccc2bd", - "name": "Update a segment. - default", - "request": { - "urlPathTemplate": "/experimentation/segments/{id}", - "method": "PATCH", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"id\": \"id\",\n \"name\": \"name\",\n \"description\": \"description\",\n \"type\": \"self\",\n \"status\": \"active\",\n \"rules\": [\n {}\n ],\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "e2397c3e-6009-45bf-8ebd-62d6d9ccc2bd", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "1abb2607-78fd-4896-bc90-9384a36aafdc", - "name": "List all variations for a feature flag. - default", - "request": { - "urlPathTemplate": "/experimentation/feature-flags/{id}/variations", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"variations\": [\n {\n \"id\": \"id\",\n \"feature_flag_id\": \"feature_flag_id\",\n \"name\": \"name\",\n \"description\": \"description\",\n \"overrides\": {\n \"key\": \"value\"\n },\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n }\n ]\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "1abb2607-78fd-4896-bc90-9384a36aafdc", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "c9d939f1-99ea-420a-a6ad-0f672876141b", - "name": "Create a variation for a feature flag. - default", - "request": { - "urlPathTemplate": "/experimentation/feature-flags/{id}/variations", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 201, - "body": "{\n \"id\": \"id\",\n \"feature_flag_id\": \"feature_flag_id\",\n \"name\": \"name\",\n \"description\": \"description\",\n \"overrides\": {\n \"key\": \"value\"\n },\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "c9d939f1-99ea-420a-a6ad-0f672876141b", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "e2d62924-fd55-44bd-a420-b2af14221ab3", - "name": "Get a variation by ID. - default", - "request": { - "urlPathTemplate": "/experimentation/feature-flags/{id}/variations/{vid}", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - }, - "vid": { - "equalTo": "vid" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"id\": \"id\",\n \"feature_flag_id\": \"feature_flag_id\",\n \"name\": \"name\",\n \"description\": \"description\",\n \"overrides\": {\n \"key\": \"value\"\n },\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "e2d62924-fd55-44bd-a420-b2af14221ab3", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "c581e83f-a6d2-4f3f-b7c3-fd93c5d99b1b", - "name": "Delete a variation. - default", - "request": { - "urlPathTemplate": "/experimentation/feature-flags/{id}/variations/{vid}", - "method": "DELETE", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - }, - "vid": { - "equalTo": "vid" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "c581e83f-a6d2-4f3f-b7c3-fd93c5d99b1b", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "f2b8f79d-6aa1-47c2-8894-b917b3dea8e3", - "name": "Update a variation. - default", - "request": { - "urlPathTemplate": "/experimentation/feature-flags/{id}/variations/{vid}", - "method": "PATCH", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - }, - "vid": { - "equalTo": "vid" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"id\": \"id\",\n \"feature_flag_id\": \"feature_flag_id\",\n \"name\": \"name\",\n \"description\": \"description\",\n \"overrides\": {\n \"key\": \"value\"\n },\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "f2b8f79d-6aa1-47c2-8894-b917b3dea8e3", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "62d121a4-93bc-4281-8659-06708ac8d781", - "name": "Get flow executions - default", - "request": { - "urlPathTemplate": "/flows/{flow_id}/executions", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "flow_id": { - "equalTo": "flow_id" - } - }, - "queryParameters": { - "include_totals": { - "equalTo": "true" - }, - "from": { - "equalTo": "from" - }, - "take": { - "equalTo": "1" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"next\": \"next\",\n \"executions\": [\n {\n \"id\": \"id\",\n \"trace_id\": \"trace_id\",\n \"journey_id\": \"journey_id\",\n \"status\": \"status\",\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\",\n \"started_at\": \"2024-01-15T09:30:00Z\",\n \"ended_at\": \"2024-01-15T09:30:00Z\"\n }\n ]\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "62d121a4-93bc-4281-8659-06708ac8d781", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "3151ee0d-c1ca-45b6-9f72-5b4138b4b90d", - "name": "Get a flow execution - default", - "request": { - "urlPathTemplate": "/flows/{flow_id}/executions/{execution_id}", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "flow_id": { - "equalTo": "flow_id" - }, - "execution_id": { - "equalTo": "execution_id" - } - }, - "queryParameters": { - "hydrate": { - "hasExactly": [ - { - "equalTo": "debug" - } - ] - } - } - }, - "response": { - "status": 200, - "body": "{\n \"id\": \"id\",\n \"trace_id\": \"trace_id\",\n \"journey_id\": \"journey_id\",\n \"status\": \"status\",\n \"debug\": {\n \"key\": \"value\"\n },\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\",\n \"started_at\": \"2024-01-15T09:30:00Z\",\n \"ended_at\": \"2024-01-15T09:30:00Z\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "3151ee0d-c1ca-45b6-9f72-5b4138b4b90d", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "9f81cb02-c44f-4e52-a1a3-cc26c0ae01a5", - "name": "Delete a flow execution - default", - "request": { - "urlPathTemplate": "/flows/{flow_id}/executions/{execution_id}", - "method": "DELETE", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "flow_id": { - "equalTo": "flow_id" - }, - "execution_id": { - "equalTo": "execution_id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "9f81cb02-c44f-4e52-a1a3-cc26c0ae01a5", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "ee40f82d-4bce-4a5a-8cbb-bb5eda1909ee", - "name": "Get Flows Vault connection list - default", - "request": { - "urlPathTemplate": "/flows/vault/connections", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "queryParameters": { - "page": { - "equalTo": "1" - }, - "per_page": { - "equalTo": "1" - }, - "include_totals": { - "equalTo": "true" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"start\": 1.1,\n \"limit\": 1.1,\n \"total\": 1.1,\n \"connections\": [\n {\n \"id\": \"id\",\n \"app_id\": \"app_id\",\n \"name\": \"name\",\n \"account_name\": \"account_name\",\n \"ready\": true,\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\",\n \"refreshed_at\": \"2024-01-15T09:30:00Z\",\n \"fingerprint\": \"fingerprint\"\n }\n ]\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "ee40f82d-4bce-4a5a-8cbb-bb5eda1909ee", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "b56d64da-174f-4d7e-86e7-3240fb1a8174", - "name": "Create a Flows Vault connection - default", - "request": { - "urlPathTemplate": "/flows/vault/connections", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 201, - "body": "{\n \"id\": \"id\",\n \"app_id\": \"app_id\",\n \"environment\": \"environment\",\n \"name\": \"name\",\n \"account_name\": \"account_name\",\n \"ready\": true,\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\",\n \"refreshed_at\": \"2024-01-15T09:30:00Z\",\n \"fingerprint\": \"fingerprint\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "b56d64da-174f-4d7e-86e7-3240fb1a8174", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "6cc30ec0-8e30-44ab-b033-e2db27abc3ac", - "name": "Get a Flows Vault connection - default", - "request": { - "urlPathTemplate": "/flows/vault/connections/{id}", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"id\": \"id\",\n \"app_id\": \"app_id\",\n \"environment\": \"environment\",\n \"name\": \"name\",\n \"account_name\": \"account_name\",\n \"ready\": true,\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\",\n \"refreshed_at\": \"2024-01-15T09:30:00Z\",\n \"fingerprint\": \"fingerprint\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "6cc30ec0-8e30-44ab-b033-e2db27abc3ac", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "97e2e46c-2af3-4cf0-b6df-e09cd0f4151a", - "name": "Delete a Flows Vault connection - default", - "request": { - "urlPathTemplate": "/flows/vault/connections/{id}", - "method": "DELETE", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "97e2e46c-2af3-4cf0-b6df-e09cd0f4151a", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "cdbf8062-2c13-4861-9280-e1ef2af24823", - "name": "Update a Flows Vault connection - default", - "request": { - "urlPathTemplate": "/flows/vault/connections/{id}", - "method": "PATCH", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"id\": \"id\",\n \"app_id\": \"app_id\",\n \"environment\": \"environment\",\n \"name\": \"name\",\n \"account_name\": \"account_name\",\n \"ready\": true,\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\",\n \"refreshed_at\": \"2024-01-15T09:30:00Z\",\n \"fingerprint\": \"fingerprint\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "cdbf8062-2c13-4861-9280-e1ef2af24823", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "a79f7c93-ff7f-4b2e-8d07-41cdddf27eeb", - "name": "Get Group Members - default", - "request": { - "urlPathTemplate": "/groups/{id}/members", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - }, - "queryParameters": { - "fields": { - "equalTo": "fields" - }, - "include_fields": { - "equalTo": "true" - }, - "from": { - "equalTo": "from" - }, - "take": { - "equalTo": "1" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"members\": [\n {\n \"id\": \"id\",\n \"member_type\": \"user\",\n \"type\": \"connection\",\n \"connection_id\": \"connection_id\",\n \"created_at\": \"2024-01-15T09:30:00Z\"\n }\n ],\n \"next\": \"next\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "a79f7c93-ff7f-4b2e-8d07-41cdddf27eeb", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "a6180ede-b842-44df-ae1d-d9243c735673", - "name": "Get a group's roles - default", - "request": { - "urlPathTemplate": "/groups/{id}/roles", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - }, - "queryParameters": { - "from": { - "equalTo": "from" - }, - "take": { - "equalTo": "1" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"roles\": [\n {\n \"id\": \"id\",\n \"name\": \"name\",\n \"description\": \"description\",\n \"type\": \"tenant\",\n \"owner_id\": \"owner_id\"\n }\n ],\n \"next\": \"next\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "a6180ede-b842-44df-ae1d-d9243c735673", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "89bf9bc1-fdef-4324-af0b-ae27bc06a0b7", - "name": "Assign roles to a group - default", - "request": { - "urlPathTemplate": "/groups/{id}/roles", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "89bf9bc1-fdef-4324-af0b-ae27bc06a0b7", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "8524f74e-b4e7-406d-847c-49ff4fda5446", - "name": "Remove roles from a group - default", - "request": { - "urlPathTemplate": "/groups/{id}/roles", - "method": "DELETE", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "8524f74e-b4e7-406d-847c-49ff4fda5446", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "a2982e98-d69b-4815-a50d-57f1267374d8", - "name": "Create a multi-factor authentication enrollment ticket - default", - "request": { - "urlPathTemplate": "/guardian/enrollments/ticket", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"ticket_id\": \"ticket_id\",\n \"ticket_url\": \"ticket_url\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "a2982e98-d69b-4815-a50d-57f1267374d8", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "029d8a45-40e7-4697-b2da-a0c12a4d3895", - "name": "Get a multi-factor authentication enrollment - default", - "request": { - "urlPathTemplate": "/guardian/enrollments/{id}", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"id\": \"id\",\n \"status\": \"pending\",\n \"name\": \"name\",\n \"identifier\": \"identifier\",\n \"phone_number\": \"phone_number\",\n \"enrolled_at\": \"enrolled_at\",\n \"last_auth\": \"last_auth\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "029d8a45-40e7-4697-b2da-a0c12a4d3895", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "d28abba4-f155-4fa4-ba9b-077e8ea016ad", - "name": "Delete a multi-factor authentication enrollment - default", - "request": { - "urlPathTemplate": "/guardian/enrollments/{id}", - "method": "DELETE", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "d28abba4-f155-4fa4-ba9b-077e8ea016ad", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "12377456-a682-4cdc-b63d-41a188b3ce32", - "name": "Get Factors and multi-factor authentication details - default", - "request": { - "urlPathTemplate": "/guardian/factors", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "[\n {\n \"enabled\": true,\n \"trial_expired\": true,\n \"name\": \"push-notification\",\n \"settings\": {\n \"otp_length\": 1,\n \"otp_expiration_time\": 1\n }\n }\n]", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "12377456-a682-4cdc-b63d-41a188b3ce32", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "93c9905e-4981-4cb3-a7b0-026dab1704d6", - "name": "Update multi-factor authentication type - default", - "request": { - "urlPathTemplate": "/guardian/factors/{name}", - "method": "PUT", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "name": { - "equalTo": "push-notification" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"enabled\": true\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "93c9905e-4981-4cb3-a7b0-026dab1704d6", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "e47dd04a-f3a3-409a-a301-7732f16f3bec", - "name": "Get multi-factor authentication policies - default", - "request": { - "urlPathTemplate": "/guardian/policies", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "[\n \"all-applications\"\n]", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "e47dd04a-f3a3-409a-a301-7732f16f3bec", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "8ee26dda-4638-4269-9b14-59f2907ef28b", - "name": "Update multi-factor authentication policies - default", - "request": { - "urlPathTemplate": "/guardian/policies", - "method": "PUT", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "[\n \"all-applications\"\n]", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "8ee26dda-4638-4269-9b14-59f2907ef28b", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "42069ebb-c0f8-4cbd-9a08-c6006af4bdc2", - "name": "Get Email Factor Settings - default", - "request": { - "urlPathTemplate": "/guardian/factors/email/settings", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"otp_length\": 1,\n \"otp_expiration_time\": 1\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "42069ebb-c0f8-4cbd-9a08-c6006af4bdc2", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "2e305645-5aea-4725-9542-96afbf858842", - "name": "Set the Email Factor Settings - default", - "request": { - "urlPathTemplate": "/guardian/factors/email/settings", - "method": "PUT", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"otp_length\": 1,\n \"otp_expiration_time\": 1\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "2e305645-5aea-4725-9542-96afbf858842", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "ed435b3e-66b6-47b0-882f-08d926944cad", - "name": "Get Enabled Phone Factors - default", - "request": { - "urlPathTemplate": "/guardian/factors/phone/message-types", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"message_types\": [\n \"sms\"\n ]\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "ed435b3e-66b6-47b0-882f-08d926944cad", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "92b96146-6175-4994-87af-ac137f73595d", - "name": "Update the Enabled Phone Factors - default", - "request": { - "urlPathTemplate": "/guardian/factors/phone/message-types", - "method": "PUT", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"message_types\": [\n \"sms\"\n ]\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "92b96146-6175-4994-87af-ac137f73595d", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "bd1421c2-3dbe-4603-b96c-02e53872498b", - "name": "Get Twilio configuration - default", - "request": { - "urlPathTemplate": "/guardian/factors/phone/providers/twilio", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"from\": \"from\",\n \"messaging_service_sid\": \"messaging_service_sid\",\n \"auth_token\": \"auth_token\",\n \"sid\": \"sid\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "bd1421c2-3dbe-4603-b96c-02e53872498b", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "92ac09b5-25bb-4b34-8fad-73bbd1a12984", - "name": "Update Twilio configuration - default", - "request": { - "urlPathTemplate": "/guardian/factors/phone/providers/twilio", - "method": "PUT", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"from\": \"from\",\n \"messaging_service_sid\": \"messaging_service_sid\",\n \"auth_token\": \"auth_token\",\n \"sid\": \"sid\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "92ac09b5-25bb-4b34-8fad-73bbd1a12984", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "5c310715-a914-4928-9142-141be90dd71e", - "name": "Get phone provider configuration - default", - "request": { - "urlPathTemplate": "/guardian/factors/phone/selected-provider", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"provider\": \"auth0\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "5c310715-a914-4928-9142-141be90dd71e", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "555dfcb1-93af-4dcf-8241-1114028c32b4", - "name": "Update phone provider configuration - default", - "request": { - "urlPathTemplate": "/guardian/factors/phone/selected-provider", - "method": "PUT", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"provider\": \"auth0\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "555dfcb1-93af-4dcf-8241-1114028c32b4", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "a1c996a2-8f68-4dd2-9497-e1fac204c099", - "name": "Get Phone Factor Settings - default", - "request": { - "urlPathTemplate": "/guardian/factors/phone/settings", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"otp_length\": 1,\n \"otp_expiration_time\": 1\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "a1c996a2-8f68-4dd2-9497-e1fac204c099", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "d96e86d1-f45b-45a8-ac01-0c50ac8b829e", - "name": "Set the Phone Factor Settings - default", - "request": { - "urlPathTemplate": "/guardian/factors/phone/settings", - "method": "PUT", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"otp_length\": 1,\n \"otp_expiration_time\": 1\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "d96e86d1-f45b-45a8-ac01-0c50ac8b829e", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "0e83b2df-19bf-4909-b1c4-0522a7f929a3", - "name": "Get Enrollment and Verification Phone Templates - default", - "request": { - "urlPathTemplate": "/guardian/factors/phone/templates", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"enrollment_message\": \"enrollment_message\",\n \"verification_message\": \"verification_message\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "0e83b2df-19bf-4909-b1c4-0522a7f929a3", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "d55307be-4c05-42f6-888f-c5a6ee1d2ae2", - "name": "Update Enrollment and Verification Phone Templates - default", - "request": { - "urlPathTemplate": "/guardian/factors/phone/templates", - "method": "PUT", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"enrollment_message\": \"enrollment_message\",\n \"verification_message\": \"verification_message\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "d55307be-4c05-42f6-888f-c5a6ee1d2ae2", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "11ed0ad4-9dc8-48ea-bc9c-9824179b9f32", - "name": "Get APNS push notification configuration - default", - "request": { - "urlPathTemplate": "/guardian/factors/push-notification/providers/apns", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"bundle_id\": \"bundle_id\",\n \"sandbox\": true,\n \"enabled\": true\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "11ed0ad4-9dc8-48ea-bc9c-9824179b9f32", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "e3a3549b-eb87-4309-aa03-a9f08b1b17a7", - "name": "Update APNS configuration - default", - "request": { - "urlPathTemplate": "/guardian/factors/push-notification/providers/apns", - "method": "PUT", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"sandbox\": true,\n \"bundle_id\": \"bundle_id\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "e3a3549b-eb87-4309-aa03-a9f08b1b17a7", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "177fd0d5-49f0-4b48-8c6a-6d7dfc8e7784", - "name": "Update APNs provider configuration - default", - "request": { - "urlPathTemplate": "/guardian/factors/push-notification/providers/apns", - "method": "PATCH", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"sandbox\": true,\n \"bundle_id\": \"bundle_id\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "177fd0d5-49f0-4b48-8c6a-6d7dfc8e7784", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "2a5a732a-4ffa-4f42-8454-448f5735b2f3", - "name": "Overwrite FCM configuration - default", - "request": { - "urlPathTemplate": "/guardian/factors/push-notification/providers/fcm", - "method": "PUT", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"key\": \"value\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "2a5a732a-4ffa-4f42-8454-448f5735b2f3", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "96fb85cc-6ac7-4ec7-9234-6b2db38ea009", - "name": "Updates FCM configuration - default", - "request": { - "urlPathTemplate": "/guardian/factors/push-notification/providers/fcm", - "method": "PATCH", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"key\": \"value\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "96fb85cc-6ac7-4ec7-9234-6b2db38ea009", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "712dc55b-7135-4196-89c9-281072bf1983", - "name": "Overwrite FCMV1 configuration - default", - "request": { - "urlPathTemplate": "/guardian/factors/push-notification/providers/fcmv1", - "method": "PUT", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"key\": \"value\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "712dc55b-7135-4196-89c9-281072bf1983", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "de696b9c-3ffb-4bc8-adde-131913ca6338", - "name": "Updates FCMV1 configuration - default", - "request": { - "urlPathTemplate": "/guardian/factors/push-notification/providers/fcmv1", - "method": "PATCH", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"key\": \"value\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "de696b9c-3ffb-4bc8-adde-131913ca6338", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "a03df5fb-b6e0-4345-9c83-e920d88114c9", - "name": "Get AWS SNS configuration - default", - "request": { - "urlPathTemplate": "/guardian/factors/push-notification/providers/sns", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"aws_access_key_id\": \"aws_access_key_id\",\n \"aws_secret_access_key\": \"aws_secret_access_key\",\n \"aws_region\": \"aws_region\",\n \"sns_apns_platform_application_arn\": \"sns_apns_platform_application_arn\",\n \"sns_gcm_platform_application_arn\": \"sns_gcm_platform_application_arn\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "a03df5fb-b6e0-4345-9c83-e920d88114c9", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "e2945e05-5067-4c32-b82b-483fff53cfc3", - "name": "Configure AWS SNS configuration - default", - "request": { - "urlPathTemplate": "/guardian/factors/push-notification/providers/sns", - "method": "PUT", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"aws_access_key_id\": \"aws_access_key_id\",\n \"aws_secret_access_key\": \"aws_secret_access_key\",\n \"aws_region\": \"aws_region\",\n \"sns_apns_platform_application_arn\": \"sns_apns_platform_application_arn\",\n \"sns_gcm_platform_application_arn\": \"sns_gcm_platform_application_arn\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "e2945e05-5067-4c32-b82b-483fff53cfc3", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "79a10ee8-bacd-486b-b5f3-4f23e2382c4b", - "name": "Update AWS SNS configuration - default", - "request": { - "urlPathTemplate": "/guardian/factors/push-notification/providers/sns", - "method": "PATCH", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"aws_access_key_id\": \"aws_access_key_id\",\n \"aws_secret_access_key\": \"aws_secret_access_key\",\n \"aws_region\": \"aws_region\",\n \"sns_apns_platform_application_arn\": \"sns_apns_platform_application_arn\",\n \"sns_gcm_platform_application_arn\": \"sns_gcm_platform_application_arn\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "79a10ee8-bacd-486b-b5f3-4f23e2382c4b", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "0496348c-7357-4623-8514-fb741a753c75", - "name": "Get push notification provider - default", - "request": { - "urlPathTemplate": "/guardian/factors/push-notification/selected-provider", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"provider\": \"guardian\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "0496348c-7357-4623-8514-fb741a753c75", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "7285a311-6499-4a95-a8cc-6701a6997bf5", - "name": "Update Push Notification configuration - default", - "request": { - "urlPathTemplate": "/guardian/factors/push-notification/selected-provider", - "method": "PUT", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"provider\": \"guardian\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "7285a311-6499-4a95-a8cc-6701a6997bf5", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "e8ca19da-0184-44a0-868c-f020f73cbcbe", - "name": "Get Twilio SMS configuration - default", - "request": { - "urlPathTemplate": "/guardian/factors/sms/providers/twilio", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"from\": \"from\",\n \"messaging_service_sid\": \"messaging_service_sid\",\n \"auth_token\": \"auth_token\",\n \"sid\": \"sid\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "e8ca19da-0184-44a0-868c-f020f73cbcbe", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "8e51f842-c731-4fc6-9f28-42d20d05f8a7", - "name": "Update Twilio SMS configuration - default", - "request": { - "urlPathTemplate": "/guardian/factors/sms/providers/twilio", - "method": "PUT", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"from\": \"from\",\n \"messaging_service_sid\": \"messaging_service_sid\",\n \"auth_token\": \"auth_token\",\n \"sid\": \"sid\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "8e51f842-c731-4fc6-9f28-42d20d05f8a7", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "a9bd6f03-210a-4eba-9f63-48eb355c59a5", - "name": "Get SMS configuration - default", - "request": { - "urlPathTemplate": "/guardian/factors/sms/selected-provider", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"provider\": \"auth0\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "a9bd6f03-210a-4eba-9f63-48eb355c59a5", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "69919759-0017-4dd6-8df8-a40088848ddb", - "name": "Update SMS configuration - default", - "request": { - "urlPathTemplate": "/guardian/factors/sms/selected-provider", - "method": "PUT", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"provider\": \"auth0\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "69919759-0017-4dd6-8df8-a40088848ddb", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "1731b364-a171-42f2-8475-62bdb634879d", - "name": "Get SMS enrollment and verification templates - default", - "request": { - "urlPathTemplate": "/guardian/factors/sms/templates", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"enrollment_message\": \"enrollment_message\",\n \"verification_message\": \"verification_message\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "1731b364-a171-42f2-8475-62bdb634879d", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "2b0be931-6224-442e-92ca-1b5dfe5c06ba", - "name": "Update SMS enrollment and verification templates - default", - "request": { - "urlPathTemplate": "/guardian/factors/sms/templates", - "method": "PUT", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"enrollment_message\": \"enrollment_message\",\n \"verification_message\": \"verification_message\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "2b0be931-6224-442e-92ca-1b5dfe5c06ba", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "47cb059e-e754-4e4c-804b-52d84dd12162", - "name": "Get DUO Configuration - default", - "request": { - "urlPathTemplate": "/guardian/factors/duo/settings", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"ikey\": \"ikey\",\n \"skey\": \"skey\",\n \"host\": \"host\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "47cb059e-e754-4e4c-804b-52d84dd12162", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "0bc934b5-9b7a-4a4d-9ffe-54d5473d5f62", - "name": "Set the DUO Configuration - default", - "request": { - "urlPathTemplate": "/guardian/factors/duo/settings", - "method": "PUT", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"ikey\": \"ikey\",\n \"skey\": \"skey\",\n \"host\": \"host\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "0bc934b5-9b7a-4a4d-9ffe-54d5473d5f62", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "38a5aa65-75f0-471c-ab5e-10b544359b3c", - "name": "Update the DUO Configuration - default", - "request": { - "urlPathTemplate": "/guardian/factors/duo/settings", - "method": "PATCH", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"ikey\": \"ikey\",\n \"skey\": \"skey\",\n \"host\": \"host\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "38a5aa65-75f0-471c-ab5e-10b544359b3c", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "fcdfec44-0fb3-42b6-a292-48e9fb13271a", - "name": "Get hook secrets - default", - "request": { - "urlPathTemplate": "/hooks/{id}/secrets", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"key\": \"value\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "fcdfec44-0fb3-42b6-a292-48e9fb13271a", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "a4e022c8-8ee2-4d3b-a52d-18c34a18c1e2", - "name": "Add hook secrets - default", - "request": { - "urlPathTemplate": "/hooks/{id}/secrets", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "a4e022c8-8ee2-4d3b-a52d-18c34a18c1e2", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "1e6e250b-ded1-4ca6-831a-83d54b71295e", - "name": "Delete hook secrets - default", - "request": { - "urlPathTemplate": "/hooks/{id}/secrets", - "method": "DELETE", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "1e6e250b-ded1-4ca6-831a-83d54b71295e", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "81e2c92a-69de-446b-82c8-7f320f9e1060", - "name": "Update hook secrets - default", - "request": { - "urlPathTemplate": "/hooks/{id}/secrets", - "method": "PATCH", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "81e2c92a-69de-446b-82c8-7f320f9e1060", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "a93c6324-dab3-4581-8117-74e0dc2c05b3", - "name": "Create export users job - default", - "request": { - "urlPathTemplate": "/jobs/users-exports", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"status\": \"status\",\n \"type\": \"type\",\n \"created_at\": \"created_at\",\n \"id\": \"id\",\n \"connection_id\": \"connection_id\",\n \"format\": \"json\",\n \"limit\": 1,\n \"fields\": [\n {\n \"name\": \"name\",\n \"export_as\": \"export_as\"\n }\n ]\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "a93c6324-dab3-4581-8117-74e0dc2c05b3", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "d7d59bf9-f846-4967-a50c-0d5e2daaf044", - "name": "Create import users job - default", - "request": { - "urlPathTemplate": "/jobs/users-imports", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 202, - "body": "{\n \"status\": \"status\",\n \"type\": \"type\",\n \"created_at\": \"created_at\",\n \"id\": \"id\",\n \"connection_id\": \"connection_id\",\n \"external_id\": \"external_id\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "d7d59bf9-f846-4967-a50c-0d5e2daaf044", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "1ec86184-b7ac-4cff-9fa1-e78fcdcaa954", - "name": "Send an email address verification email - default", - "request": { - "urlPathTemplate": "/jobs/verification-email", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 201, - "body": "{\n \"status\": \"status\",\n \"type\": \"type\",\n \"created_at\": \"created_at\",\n \"id\": \"id\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "1ec86184-b7ac-4cff-9fa1-e78fcdcaa954", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "1ddcb674-4117-4538-98e8-5723fdb083e8", - "name": "Get job error details - default", - "request": { - "urlPathTemplate": "/jobs/{id}/errors", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "[\n {\n \"user\": {\n \"key\": \"value\"\n },\n \"errors\": [\n {}\n ]\n }\n]", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "1ddcb674-4117-4538-98e8-5723fdb083e8", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "70e1c2da-e7db-401a-b166-be0b5da6139c", - "name": "Get custom signing keys - default", - "request": { - "urlPathTemplate": "/keys/custom-signing", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"keys\": [\n {\n \"kty\": \"EC\",\n \"kid\": \"kid\",\n \"use\": \"sig\",\n \"key_ops\": [\n \"verify\"\n ],\n \"alg\": \"RS256\",\n \"n\": \"n\",\n \"e\": \"e\",\n \"crv\": \"P-256\",\n \"x\": \"x\",\n \"y\": \"y\",\n \"x5u\": \"x5u\",\n \"x5c\": [\n \"x5c\"\n ],\n \"x5t\": \"x5t\",\n \"x5t#S256\": \"x5t#S256\"\n }\n ]\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "70e1c2da-e7db-401a-b166-be0b5da6139c", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "3b40098d-d649-4030-bc12-31606e807e15", - "name": "Create or replace custom signing keys - default", - "request": { - "urlPathTemplate": "/keys/custom-signing", - "method": "PUT", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"keys\": [\n {\n \"kty\": \"EC\",\n \"kid\": \"kid\",\n \"use\": \"sig\",\n \"key_ops\": [\n \"verify\"\n ],\n \"alg\": \"RS256\",\n \"n\": \"n\",\n \"e\": \"e\",\n \"crv\": \"P-256\",\n \"x\": \"x\",\n \"y\": \"y\",\n \"x5u\": \"x5u\",\n \"x5c\": [\n \"x5c\"\n ],\n \"x5t\": \"x5t\",\n \"x5t#S256\": \"x5t#S256\"\n }\n ]\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "3b40098d-d649-4030-bc12-31606e807e15", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "f9b82290-1c82-4a29-891c-cee6ec28bcc5", - "name": "Delete custom signing keys - default", - "request": { - "urlPathTemplate": "/keys/custom-signing", - "method": "DELETE", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "f9b82290-1c82-4a29-891c-cee6ec28bcc5", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "c09166ed-9d73-4607-92f6-ae884592a5e5", - "name": "Get all encryption keys - default", - "request": { - "urlPathTemplate": "/keys/encryption", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "queryParameters": { - "page": { - "equalTo": "1" - }, - "per_page": { - "equalTo": "1" - }, - "include_totals": { - "equalTo": "true" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"start\": 1,\n \"limit\": 1,\n \"total\": 1,\n \"keys\": [\n {\n \"kid\": \"kid\",\n \"type\": \"customer-provided-root-key\",\n \"state\": \"pre-activation\",\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\",\n \"parent_kid\": \"parent_kid\",\n \"public_key\": \"public_key\"\n }\n ]\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "c09166ed-9d73-4607-92f6-ae884592a5e5", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "b0a9c75d-5268-41dd-849a-da3c0cfcb04b", - "name": "Create the new encryption key - default", - "request": { - "urlPathTemplate": "/keys/encryption", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 201, - "body": "{\n \"kid\": \"kid\",\n \"type\": \"customer-provided-root-key\",\n \"state\": \"pre-activation\",\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\",\n \"parent_kid\": \"parent_kid\",\n \"public_key\": \"public_key\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "b0a9c75d-5268-41dd-849a-da3c0cfcb04b", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "974880c1-1ef6-4001-a614-aa43c37b4420", - "name": "Rekey the key hierarchy - default", - "request": { - "urlPathTemplate": "/keys/encryption/rekey", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "974880c1-1ef6-4001-a614-aa43c37b4420", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "77bab061-9dae-4268-84d0-0b63e263f1ab", - "name": "Get the encryption key by its key id - default", - "request": { - "urlPathTemplate": "/keys/encryption/{kid}", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "kid": { - "equalTo": "kid" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"kid\": \"kid\",\n \"type\": \"customer-provided-root-key\",\n \"state\": \"pre-activation\",\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\",\n \"parent_kid\": \"parent_kid\",\n \"public_key\": \"public_key\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "77bab061-9dae-4268-84d0-0b63e263f1ab", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "86a3fc30-c02a-4c36-ac4c-7900289870b8", - "name": "Import the encryption key - default", - "request": { - "urlPathTemplate": "/keys/encryption/{kid}", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "kid": { - "equalTo": "kid" - } - } - }, - "response": { - "status": 201, - "body": "{\n \"kid\": \"kid\",\n \"type\": \"customer-provided-root-key\",\n \"state\": \"pre-activation\",\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\",\n \"parent_kid\": \"parent_kid\",\n \"public_key\": \"public_key\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "86a3fc30-c02a-4c36-ac4c-7900289870b8", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "cb3a536a-7775-4fcf-a037-f10b16d2fe1d", - "name": "Delete the encryption key by its key id - default", - "request": { - "urlPathTemplate": "/keys/encryption/{kid}", - "method": "DELETE", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "kid": { - "equalTo": "kid" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "cb3a536a-7775-4fcf-a037-f10b16d2fe1d", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "cf0b4ec6-52f1-4f55-974a-9eadd755c04f", - "name": "Create the public wrapping key - default", - "request": { - "urlPathTemplate": "/keys/encryption/{kid}/wrapping-key", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "kid": { - "equalTo": "kid" - } - } - }, - "response": { - "status": 201, - "body": "{\n \"public_key\": \"public_key\",\n \"algorithm\": \"CKM_RSA_AES_KEY_WRAP\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "cf0b4ec6-52f1-4f55-974a-9eadd755c04f", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "b208e814-8b1a-41b6-84a1-eb2ddde585c0", - "name": "Get all Network ACL keys - default", - "request": { - "urlPathTemplate": "/keys/network-acls", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"keys\": [\n {\n \"id\": \"id\",\n \"name\": \"name\",\n \"alg\": \"hmac-sha256\",\n \"fingerprint\": \"fingerprint\",\n \"created_at\": \"created_at\",\n \"updated_at\": \"updated_at\"\n }\n ]\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "b208e814-8b1a-41b6-84a1-eb2ddde585c0", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "c0cd46f9-9e74-46b7-83ad-2a2dc48f2b21", - "name": "Create a Network ACL key - default", - "request": { - "urlPathTemplate": "/keys/network-acls", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 201, - "body": "{\n \"id\": \"id\",\n \"name\": \"name\",\n \"alg\": \"hmac-sha256\",\n \"fingerprint\": \"fingerprint\",\n \"created_at\": \"created_at\",\n \"updated_at\": \"updated_at\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "c0cd46f9-9e74-46b7-83ad-2a2dc48f2b21", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "70abaeea-0098-4253-9ddf-c5866aa153cd", - "name": "Get a Network ACL Key - default", - "request": { - "urlPathTemplate": "/keys/network-acls/{id}", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"id\": \"id\",\n \"name\": \"name\",\n \"alg\": \"hmac-sha256\",\n \"fingerprint\": \"fingerprint\",\n \"created_at\": \"created_at\",\n \"updated_at\": \"updated_at\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "70abaeea-0098-4253-9ddf-c5866aa153cd", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "d615e76a-1190-4dc3-8bb4-4b336863e1be", - "name": "Delete a Network ACL key - default", - "request": { - "urlPathTemplate": "/keys/network-acls/{id}", - "method": "DELETE", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "d615e76a-1190-4dc3-8bb4-4b336863e1be", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "1bde50a3-a51e-41b4-9018-8f46bd597774", - "name": "Get all Application Signing Keys - default", - "request": { - "urlPathTemplate": "/keys/signing", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "[\n {\n \"kid\": \"kid\",\n \"cert\": \"cert\",\n \"pkcs7\": \"pkcs7\",\n \"current\": true,\n \"next\": true,\n \"previous\": true,\n \"current_since\": \"current_since\",\n \"current_until\": \"current_until\",\n \"fingerprint\": \"fingerprint\",\n \"thumbprint\": \"thumbprint\",\n \"revoked\": true,\n \"revoked_at\": \"revoked_at\"\n }\n]", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "1bde50a3-a51e-41b4-9018-8f46bd597774", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "e9d4827d-c55c-4b09-a761-24a551052257", - "name": "Rotate the Application Signing Key - default", - "request": { - "urlPathTemplate": "/keys/signing/rotate", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 201, - "body": "{\n \"cert\": \"cert\",\n \"kid\": \"kid\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "e9d4827d-c55c-4b09-a761-24a551052257", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "adec0e81-f58d-4f1f-9071-2c1f28b236e1", - "name": "Get an Application Signing Key by its key id - default", - "request": { - "urlPathTemplate": "/keys/signing/{kid}", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "kid": { - "equalTo": "kid" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"kid\": \"kid\",\n \"cert\": \"cert\",\n \"pkcs7\": \"pkcs7\",\n \"current\": true,\n \"next\": true,\n \"previous\": true,\n \"current_since\": \"current_since\",\n \"current_until\": \"current_until\",\n \"fingerprint\": \"fingerprint\",\n \"thumbprint\": \"thumbprint\",\n \"revoked\": true,\n \"revoked_at\": \"revoked_at\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "adec0e81-f58d-4f1f-9071-2c1f28b236e1", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "cab3e5d7-c549-4ce9-aa51-648a2d61b321", - "name": "Revoke an Application Signing Key by its key id - default", - "request": { - "urlPathTemplate": "/keys/signing/{kid}/revoke", - "method": "PUT", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "kid": { - "equalTo": "kid" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"cert\": \"cert\",\n \"kid\": \"kid\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "cab3e5d7-c549-4ce9-aa51-648a2d61b321", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "3bd5c630-fb83-4b4e-a903-67268e3218e0", - "name": "Get client grants associated to an organization - default", - "request": { - "urlPathTemplate": "/organizations/{id}/client-grants", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - }, - "queryParameters": { - "audience": { - "equalTo": "audience" - }, - "client_id": { - "equalTo": "client_id" - }, - "grant_ids": { - "hasExactly": [ - { - "equalTo": "grant_ids" - } - ] - }, - "page": { - "equalTo": "1" - }, - "per_page": { - "equalTo": "1" - }, - "include_totals": { - "equalTo": "true" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"start\": 1.1,\n \"limit\": 1.1,\n \"total\": 1.1,\n \"client_grants\": [\n {\n \"id\": \"id\",\n \"client_id\": \"client_id\",\n \"audience\": \"audience\",\n \"scope\": [\n \"scope\"\n ],\n \"organization_usage\": \"deny\",\n \"allow_any_organization\": true\n }\n ]\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "3bd5c630-fb83-4b4e-a903-67268e3218e0", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "e4a9924e-c625-4ff3-a5ed-44c5e7f20053", - "name": "Associate a client grant with an organization - default", - "request": { - "urlPathTemplate": "/organizations/{id}/client-grants", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 201, - "body": "{\n \"id\": \"id\",\n \"client_id\": \"client_id\",\n \"audience\": \"audience\",\n \"scope\": [\n \"scope\"\n ],\n \"organization_usage\": \"deny\",\n \"allow_any_organization\": true\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "e4a9924e-c625-4ff3-a5ed-44c5e7f20053", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "36ae6d81-83b3-4c2c-8f37-5e921d4740ad", - "name": "Remove a client grant from an organization - default", - "request": { - "urlPathTemplate": "/organizations/{id}/client-grants/{grant_id}", - "method": "DELETE", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - }, - "grant_id": { - "equalTo": "grant_id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "36ae6d81-83b3-4c2c-8f37-5e921d4740ad", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "a3c9ba95-a693-4d69-a1b3-1aa9120eb072", - "name": "List organization client associations - default", - "request": { - "urlPathTemplate": "/organizations/{id}/clients", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - }, - "queryParameters": { - "from": { - "equalTo": "from" - }, - "take": { - "equalTo": "1" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"clients\": [\n {\n \"client_id\": \"client_id\",\n \"use_for_member_access\": true,\n \"client\": {}\n }\n ],\n \"next\": \"next\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "a3c9ba95-a693-4d69-a1b3-1aa9120eb072", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "2fa25415-ea73-486d-a4db-dc430b35eb0b", - "name": "Associate clients with an organization - default", - "request": { - "urlPathTemplate": "/organizations/{id}/clients", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 201, - "body": "[\n {\n \"client_id\": \"client_id\",\n \"use_for_member_access\": true,\n \"client\": {\n \"name\": \"name\",\n \"app_type\": \"app_type\",\n \"logo_uri\": \"logo_uri\",\n \"is_first_party\": true,\n \"grant_types\": [\n \"grant_types\"\n ],\n \"organization_usage\": \"deny\"\n }\n }\n]", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "2fa25415-ea73-486d-a4db-dc430b35eb0b", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "20855d1e-636b-4663-bac9-875b3eb0d7b3", - "name": "Remove client associations from an organization - default", - "request": { - "urlPathTemplate": "/organizations/{id}/clients", - "method": "DELETE", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "20855d1e-636b-4663-bac9-875b3eb0d7b3", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "87f91e02-b7a6-470d-9913-43e936377815", - "name": "Get an organization client association - default", - "request": { - "urlPathTemplate": "/organizations/{id}/clients/{client_id}", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - }, - "client_id": { - "equalTo": "client_id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"client_id\": \"client_id\",\n \"use_for_member_access\": true,\n \"client\": {\n \"name\": \"name\",\n \"app_type\": \"app_type\",\n \"logo_uri\": \"logo_uri\",\n \"is_first_party\": true,\n \"grant_types\": [\n \"grant_types\"\n ],\n \"organization_usage\": \"deny\"\n }\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "87f91e02-b7a6-470d-9913-43e936377815", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "da35509c-6faa-46b7-b7d9-809febc746b9", - "name": "Update an organization client association - default", - "request": { - "urlPathTemplate": "/organizations/{id}/clients/{client_id}", - "method": "PATCH", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - }, - "client_id": { - "equalTo": "client_id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"client_id\": \"client_id\",\n \"use_for_member_access\": true,\n \"client\": {\n \"name\": \"name\",\n \"app_type\": \"app_type\",\n \"logo_uri\": \"logo_uri\",\n \"is_first_party\": true,\n \"grant_types\": [\n \"grant_types\"\n ],\n \"organization_usage\": \"deny\"\n }\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "da35509c-6faa-46b7-b7d9-809febc746b9", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "4c65b7b7-43a0-4437-b96f-7f47fdad6550", - "name": "Get connections associated with an organization - default", - "request": { - "urlPathTemplate": "/organizations/{id}/connections", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - }, - "queryParameters": { - "page": { - "equalTo": "1" - }, - "per_page": { - "equalTo": "1" - }, - "include_totals": { - "equalTo": "true" - }, - "is_enabled": { - "equalTo": "true" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"start\": 1.1,\n \"limit\": 1.1,\n \"total\": 1.1,\n \"connections\": [\n {\n \"organization_connection_name\": \"organization_connection_name\",\n \"assign_membership_on_login\": true,\n \"show_as_button\": true,\n \"is_signup_enabled\": true,\n \"organization_access_level\": \"none\",\n \"organization_member_access_level\": \"none\",\n \"is_enabled\": true,\n \"connection_id\": \"connection_id\"\n }\n ]\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "4c65b7b7-43a0-4437-b96f-7f47fdad6550", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "1d212ed4-03d7-4aac-a774-8ae99461b148", - "name": "Add a connection to an organization - default", - "request": { - "urlPathTemplate": "/organizations/{id}/connections", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 201, - "body": "{\n \"organization_connection_name\": \"organization_connection_name\",\n \"assign_membership_on_login\": true,\n \"show_as_button\": true,\n \"is_signup_enabled\": true,\n \"organization_access_level\": \"none\",\n \"organization_member_access_level\": \"none\",\n \"is_enabled\": true,\n \"connection_id\": \"connection_id\",\n \"connection\": {\n \"name\": \"name\",\n \"strategy\": \"strategy\"\n }\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "1d212ed4-03d7-4aac-a774-8ae99461b148", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "ac4ecac7-55a4-49de-b0d5-639975924208", - "name": "Get a specific connection associated with an organization - default", - "request": { - "urlPathTemplate": "/organizations/{id}/connections/{connection_id}", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - }, - "connection_id": { - "equalTo": "connection_id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"organization_connection_name\": \"organization_connection_name\",\n \"assign_membership_on_login\": true,\n \"show_as_button\": true,\n \"is_signup_enabled\": true,\n \"organization_access_level\": \"none\",\n \"organization_member_access_level\": \"none\",\n \"is_enabled\": true,\n \"connection_id\": \"connection_id\",\n \"connection\": {\n \"name\": \"name\",\n \"strategy\": \"strategy\"\n }\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "ac4ecac7-55a4-49de-b0d5-639975924208", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "dea1d6a9-c8e5-43e2-b22c-b1008e34c6f1", - "name": "Delete a connection from an organization - default", - "request": { - "urlPathTemplate": "/organizations/{id}/connections/{connection_id}", - "method": "DELETE", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - }, - "connection_id": { - "equalTo": "connection_id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "dea1d6a9-c8e5-43e2-b22c-b1008e34c6f1", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "98e911b3-5c83-4a51-9fdc-6b4a18bac7c0", - "name": "Update a connection for an organization - default", - "request": { - "urlPathTemplate": "/organizations/{id}/connections/{connection_id}", - "method": "PATCH", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - }, - "connection_id": { - "equalTo": "connection_id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"organization_connection_name\": \"organization_connection_name\",\n \"assign_membership_on_login\": true,\n \"show_as_button\": true,\n \"is_signup_enabled\": true,\n \"organization_access_level\": \"none\",\n \"organization_member_access_level\": \"none\",\n \"is_enabled\": true,\n \"connection_id\": \"connection_id\",\n \"connection\": {\n \"name\": \"name\",\n \"strategy\": \"strategy\"\n }\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "98e911b3-5c83-4a51-9fdc-6b4a18bac7c0", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "2edde951-0b04-4e05-9389-658b85c37299", - "name": "Retrieve all organization discovery domains - default", - "request": { - "urlPathTemplate": "/organizations/{id}/discovery-domains", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - }, - "queryParameters": { - "from": { - "equalTo": "from" - }, - "take": { - "equalTo": "1" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"next\": \"next\",\n \"domains\": [\n {\n \"id\": \"id\",\n \"domain\": \"domain\",\n \"status\": \"pending\",\n \"use_for_organization_discovery\": true,\n \"verification_txt\": \"verification_txt\",\n \"verification_host\": \"verification_host\"\n }\n ]\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "2edde951-0b04-4e05-9389-658b85c37299", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "fdfc20b0-5e2b-4eb6-98af-e0f922aefac7", - "name": "Create an organization discovery domain - default", - "request": { - "urlPathTemplate": "/organizations/{id}/discovery-domains", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 201, - "body": "{\n \"id\": \"id\",\n \"domain\": \"domain\",\n \"status\": \"pending\",\n \"use_for_organization_discovery\": true,\n \"verification_txt\": \"verification_txt\",\n \"verification_host\": \"verification_host\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "fdfc20b0-5e2b-4eb6-98af-e0f922aefac7", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "6880f9c8-a623-4d59-b041-fc7f1b5104cc", - "name": "Retrieve an organization discovery domain by domain name - default", - "request": { - "urlPathTemplate": "/organizations/{id}/discovery-domains/name/{discovery_domain}", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - }, - "discovery_domain": { - "equalTo": "discovery_domain" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"id\": \"id\",\n \"domain\": \"domain\",\n \"status\": \"pending\",\n \"use_for_organization_discovery\": true,\n \"verification_txt\": \"verification_txt\",\n \"verification_host\": \"verification_host\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "6880f9c8-a623-4d59-b041-fc7f1b5104cc", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "4cb0d18e-2a9a-4d6c-a1f3-f2c3e5c3c496", - "name": "Retrieve an organization discovery domain by ID - default", - "request": { - "urlPathTemplate": "/organizations/{id}/discovery-domains/{discovery_domain_id}", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - }, - "discovery_domain_id": { - "equalTo": "discovery_domain_id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"id\": \"id\",\n \"domain\": \"domain\",\n \"status\": \"pending\",\n \"use_for_organization_discovery\": true,\n \"verification_txt\": \"verification_txt\",\n \"verification_host\": \"verification_host\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "4cb0d18e-2a9a-4d6c-a1f3-f2c3e5c3c496", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "803a298e-d6f6-4370-8e03-37d06547eeef", - "name": "Delete an organization discovery domain - default", - "request": { - "urlPathTemplate": "/organizations/{id}/discovery-domains/{discovery_domain_id}", - "method": "DELETE", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - }, - "discovery_domain_id": { - "equalTo": "discovery_domain_id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "803a298e-d6f6-4370-8e03-37d06547eeef", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "fca95551-032d-44de-a3cf-849f98ec2177", - "name": "Update an organization discovery domain - default", - "request": { - "urlPathTemplate": "/organizations/{id}/discovery-domains/{discovery_domain_id}", - "method": "PATCH", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - }, - "discovery_domain_id": { - "equalTo": "discovery_domain_id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"id\": \"id\",\n \"domain\": \"domain\",\n \"status\": \"pending\",\n \"use_for_organization_discovery\": true,\n \"verification_txt\": \"verification_txt\",\n \"verification_host\": \"verification_host\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "fca95551-032d-44de-a3cf-849f98ec2177", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "47767c5f-78ac-42c3-affe-a5d3e1ed6800", - "name": "Get connections enabled for an organization - default", - "request": { - "urlPathTemplate": "/organizations/{id}/enabled_connections", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - }, - "queryParameters": { - "page": { - "equalTo": "1" - }, - "per_page": { - "equalTo": "1" - }, - "include_totals": { - "equalTo": "true" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"start\": 1.1,\n \"limit\": 1.1,\n \"total\": 1.1,\n \"enabled_connections\": [\n {\n \"connection_id\": \"connection_id\",\n \"assign_membership_on_login\": true,\n \"show_as_button\": true,\n \"is_signup_enabled\": true\n }\n ]\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "47767c5f-78ac-42c3-affe-a5d3e1ed6800", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "c311c287-5333-41bd-819e-e813c541ed66", - "name": "Add connections to an organization - default", - "request": { - "urlPathTemplate": "/organizations/{id}/enabled_connections", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 201, - "body": "{\n \"connection_id\": \"connection_id\",\n \"assign_membership_on_login\": true,\n \"show_as_button\": true,\n \"is_signup_enabled\": true,\n \"connection\": {\n \"name\": \"name\",\n \"strategy\": \"strategy\"\n }\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "c311c287-5333-41bd-819e-e813c541ed66", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "c455a9b2-1f8f-45e1-8100-df1d73cd097d", - "name": "Get an enabled connection for an organization - default", - "request": { - "urlPathTemplate": "/organizations/{id}/enabled_connections/{connectionId}", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - }, - "connectionId": { - "equalTo": "connectionId" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"connection_id\": \"connection_id\",\n \"assign_membership_on_login\": true,\n \"show_as_button\": true,\n \"is_signup_enabled\": true,\n \"connection\": {\n \"name\": \"name\",\n \"strategy\": \"strategy\"\n }\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "c455a9b2-1f8f-45e1-8100-df1d73cd097d", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "0dc9106a-150c-40d8-9000-176bd6350a98", - "name": "Delete connections from an organization - default", - "request": { - "urlPathTemplate": "/organizations/{id}/enabled_connections/{connectionId}", - "method": "DELETE", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - }, - "connectionId": { - "equalTo": "connectionId" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "0dc9106a-150c-40d8-9000-176bd6350a98", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "9a371d52-abea-44dc-a464-f04f63a601b0", - "name": "Update the Connection of an Organization - default", - "request": { - "urlPathTemplate": "/organizations/{id}/enabled_connections/{connectionId}", - "method": "PATCH", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - }, - "connectionId": { - "equalTo": "connectionId" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"connection_id\": \"connection_id\",\n \"assign_membership_on_login\": true,\n \"show_as_button\": true,\n \"is_signup_enabled\": true,\n \"connection\": {\n \"name\": \"name\",\n \"strategy\": \"strategy\"\n }\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "9a371d52-abea-44dc-a464-f04f63a601b0", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "7fb2e068-8caf-4234-aa52-3b51c9f37300", - "name": "Get invitations to an organization - default", - "request": { - "urlPathTemplate": "/organizations/{id}/invitations", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - }, - "queryParameters": { - "page": { - "equalTo": "1" - }, - "per_page": { - "equalTo": "1" - }, - "include_totals": { - "equalTo": "true" - }, - "fields": { - "equalTo": "fields" - }, - "include_fields": { - "equalTo": "true" - }, - "sort": { - "equalTo": "sort" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"start\": 1.1,\n \"limit\": 1.1,\n \"invitations\": [\n {\n \"id\": \"id\",\n \"organization_id\": \"organization_id\",\n \"inviter\": {\n \"name\": \"name\"\n },\n \"invitee\": {\n \"email\": \"email\"\n },\n \"invitation_url\": \"invitation_url\",\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"expires_at\": \"2024-01-15T09:30:00Z\",\n \"client_id\": \"client_id\",\n \"connection_id\": \"connection_id\",\n \"app_metadata\": {\n \"key\": \"value\"\n },\n \"user_metadata\": {\n \"key\": \"value\"\n },\n \"roles\": [\n \"roles\"\n ],\n \"ticket_id\": \"ticket_id\"\n }\n ]\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "7fb2e068-8caf-4234-aa52-3b51c9f37300", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "49ad8742-5d95-4969-87cf-09427959682f", - "name": "Create invitations to an organization - default", - "request": { - "urlPathTemplate": "/organizations/{id}/invitations", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"id\": \"id\",\n \"organization_id\": \"organization_id\",\n \"inviter\": {\n \"name\": \"name\"\n },\n \"invitee\": {\n \"email\": \"email\"\n },\n \"invitation_url\": \"invitation_url\",\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"expires_at\": \"2024-01-15T09:30:00Z\",\n \"client_id\": \"client_id\",\n \"connection_id\": \"connection_id\",\n \"app_metadata\": {\n \"key\": \"value\"\n },\n \"user_metadata\": {\n \"key\": \"value\"\n },\n \"roles\": [\n \"roles\"\n ],\n \"ticket_id\": \"ticket_id\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "49ad8742-5d95-4969-87cf-09427959682f", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "2bf04456-d49c-45d6-aedf-19598f4c6df8", - "name": "Get a specific invitation to an Organization - default", - "request": { - "urlPathTemplate": "/organizations/{id}/invitations/{invitation_id}", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - }, - "invitation_id": { - "equalTo": "invitation_id" - } - }, - "queryParameters": { - "fields": { - "equalTo": "fields" - }, - "include_fields": { - "equalTo": "true" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"id\": \"id\",\n \"organization_id\": \"organization_id\",\n \"inviter\": {\n \"name\": \"name\"\n },\n \"invitee\": {\n \"email\": \"email\"\n },\n \"invitation_url\": \"invitation_url\",\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"expires_at\": \"2024-01-15T09:30:00Z\",\n \"client_id\": \"client_id\",\n \"connection_id\": \"connection_id\",\n \"app_metadata\": {\n \"key\": \"value\"\n },\n \"user_metadata\": {\n \"key\": \"value\"\n },\n \"roles\": [\n \"roles\"\n ],\n \"ticket_id\": \"ticket_id\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "2bf04456-d49c-45d6-aedf-19598f4c6df8", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "1a1c3283-fac9-4185-bcb8-3a9053a43163", - "name": "Delete an invitation to an Organization - default", - "request": { - "urlPathTemplate": "/organizations/{id}/invitations/{invitation_id}", - "method": "DELETE", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - }, - "invitation_id": { - "equalTo": "invitation_id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "1a1c3283-fac9-4185-bcb8-3a9053a43163", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "b33d5e95-cdf1-4d3a-b019-7fa6e46267a0", - "name": "Get members who belong to an organization - default", - "request": { - "urlPathTemplate": "/organizations/{id}/members", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - }, - "queryParameters": { - "include_totals": { - "equalTo": "true" - }, - "from": { - "equalTo": "from" - }, - "take": { - "equalTo": "1" - }, - "fields": { - "equalTo": "fields" - }, - "include_fields": { - "equalTo": "true" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"next\": \"next\",\n \"members\": [\n {\n \"user_id\": \"user_id\",\n \"picture\": \"picture\",\n \"name\": \"name\",\n \"email\": \"email\",\n \"roles\": [\n {}\n ]\n }\n ]\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "b33d5e95-cdf1-4d3a-b019-7fa6e46267a0", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "8536454b-53b8-4272-8829-062f2cb9092d", - "name": "Add members to an organization - default", - "request": { - "urlPathTemplate": "/organizations/{id}/members", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "8536454b-53b8-4272-8829-062f2cb9092d", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "71dcfc22-87b0-4591-921b-7d7088bd16ae", - "name": "Delete members from an organization - default", - "request": { - "urlPathTemplate": "/organizations/{id}/members", - "method": "DELETE", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "71dcfc22-87b0-4591-921b-7d7088bd16ae", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "6d9e3ba1-00dd-4040-89c3-a856e4b77da2", - "name": "List the groups that are assigned to the organization. - default", - "request": { - "urlPathTemplate": "/organizations/{organization_id}/groups", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "organization_id": { - "equalTo": "organization_id" - } - }, - "queryParameters": { - "from": { - "equalTo": "from" - }, - "take": { - "equalTo": "1" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"groups\": [\n {\n \"id\": \"id\",\n \"name\": \"name\",\n \"external_id\": \"external_id\",\n \"connection_id\": \"connection_id\",\n \"tenant_name\": \"tenant_name\",\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n }\n ],\n \"next\": \"next\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "6d9e3ba1-00dd-4040-89c3-a856e4b77da2", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "709cfc79-902f-4c6b-9c1d-8f115c63e170", - "name": "List the roles assigned to a group in the context of an organization. - default", - "request": { - "urlPathTemplate": "/organizations/{organization_id}/groups/{group_id}/roles", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "organization_id": { - "equalTo": "organization_id" - }, - "group_id": { - "equalTo": "group_id" - } - }, - "queryParameters": { - "from": { - "equalTo": "from" - }, - "take": { - "equalTo": "1" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"roles\": [\n {\n \"id\": \"id\",\n \"name\": \"name\",\n \"description\": \"description\",\n \"type\": \"tenant\",\n \"owner_id\": \"owner_id\"\n }\n ],\n \"next\": \"next\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "709cfc79-902f-4c6b-9c1d-8f115c63e170", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "51f1e8f1-c3f9-4662-b84c-98d35f72e50c", - "name": "Assign roles to a group in an organization context. - default", - "request": { - "urlPathTemplate": "/organizations/{organization_id}/groups/{group_id}/roles", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "organization_id": { - "equalTo": "organization_id" - }, - "group_id": { - "equalTo": "group_id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "51f1e8f1-c3f9-4662-b84c-98d35f72e50c", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "41aa31c6-ab88-4d21-a15f-f2238b94e356", - "name": "Remove roles assigned to a group in an organization context. - default", - "request": { - "urlPathTemplate": "/organizations/{organization_id}/groups/{group_id}/roles", - "method": "DELETE", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "organization_id": { - "equalTo": "organization_id" - }, - "group_id": { - "equalTo": "group_id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "41aa31c6-ab88-4d21-a15f-f2238b94e356", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "5927f1a7-b918-4d94-b4f5-66e48d50773d", - "name": "List organization member effective roles. - default", - "request": { - "urlPathTemplate": "/organizations/{id}/members/{user_id}/effective-roles", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - }, - "user_id": { - "equalTo": "user_id" - } - }, - "queryParameters": { - "from": { - "equalTo": "from" - }, - "take": { - "equalTo": "1" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"roles\": [\n {\n \"id\": \"id\",\n \"name\": \"name\",\n \"description\": \"description\",\n \"sources\": [\n \"direct\"\n ]\n }\n ],\n \"next\": \"next\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "5927f1a7-b918-4d94-b4f5-66e48d50773d", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "2c099b94-dfed-4bf8-b370-25ceade844b1", - "name": "Get user roles assigned to an Organization member - default", - "request": { - "urlPathTemplate": "/organizations/{id}/members/{user_id}/roles", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - }, - "user_id": { - "equalTo": "user_id" - } - }, - "queryParameters": { - "page": { - "equalTo": "1" - }, - "per_page": { - "equalTo": "1" - }, - "include_totals": { - "equalTo": "true" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"start\": 1.1,\n \"limit\": 1.1,\n \"total\": 1.1,\n \"roles\": [\n {\n \"id\": \"id\",\n \"name\": \"name\",\n \"description\": \"description\",\n \"type\": \"tenant\",\n \"owner_id\": \"owner_id\"\n }\n ]\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "2c099b94-dfed-4bf8-b370-25ceade844b1", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "8a5dc31c-084d-4753-9c95-0a0ddd2294da", - "name": "Assign user roles to an Organization member - default", - "request": { - "urlPathTemplate": "/organizations/{id}/members/{user_id}/roles", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - }, - "user_id": { - "equalTo": "user_id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "8a5dc31c-084d-4753-9c95-0a0ddd2294da", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "245dc825-fc94-49ca-9547-a4b30ac4485a", - "name": "Delete user roles from an Organization member - default", - "request": { - "urlPathTemplate": "/organizations/{id}/members/{user_id}/roles", - "method": "DELETE", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - }, - "user_id": { - "equalTo": "user_id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "245dc825-fc94-49ca-9547-a4b30ac4485a", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "730f9e46-6a5a-455f-94ce-2b274a2c74f9", - "name": "List organization member role group sources. - default", - "request": { - "urlPathTemplate": "/organizations/{id}/members/{user_id}/effective-roles/sources/groups", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - }, - "user_id": { - "equalTo": "user_id" - } - }, - "queryParameters": { - "from": { - "equalTo": "from" - }, - "take": { - "equalTo": "1" - }, - "role_id": { - "equalTo": "role_id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"groups\": [\n {\n \"id\": \"id\",\n \"name\": \"name\",\n \"external_id\": \"external_id\",\n \"connection_id\": \"connection_id\",\n \"tenant_name\": \"tenant_name\",\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n }\n ],\n \"next\": \"next\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "730f9e46-6a5a-455f-94ce-2b274a2c74f9", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "b184f317-24f3-4e73-9e7b-c6e7decd08e0", - "name": "List the members assigned to a role in the context of an organization - default", - "request": { - "urlPathTemplate": "/organizations/{id}/roles/{role_id}/members", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - }, - "role_id": { - "equalTo": "role_id" - } - }, - "queryParameters": { - "from": { - "equalTo": "from" - }, - "take": { - "equalTo": "1" - }, - "fields": { - "equalTo": "fields" - }, - "include_fields": { - "equalTo": "true" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"members\": [\n {\n \"user_id\": \"user_id\",\n \"picture\": \"picture\",\n \"name\": \"name\",\n \"email\": \"email\"\n }\n ],\n \"next\": \"next\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "b184f317-24f3-4e73-9e7b-c6e7decd08e0", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "c6a72036-f7db-4e59-a8cf-684c7aa65301", - "name": "List the groups assigned to a role in the context of an organization - default", - "request": { - "urlPathTemplate": "/organizations/{organization_id}/roles/{role_id}/groups", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "organization_id": { - "equalTo": "organization_id" - }, - "role_id": { - "equalTo": "role_id" - } - }, - "queryParameters": { - "from": { - "equalTo": "from" - }, - "take": { - "equalTo": "1" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"groups\": [\n {\n \"id\": \"id\",\n \"name\": \"name\",\n \"external_id\": \"external_id\",\n \"connection_id\": \"connection_id\",\n \"organization_id\": \"organization_id\",\n \"tenant_name\": \"tenant_name\",\n \"description\": \"description\",\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n }\n ],\n \"next\": \"next\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "c6a72036-f7db-4e59-a8cf-684c7aa65301", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "f02cb8dc-cee0-4470-b69b-596e4d0653f9", - "name": "Get render setting configurations for all screens - default", - "request": { - "urlPathTemplate": "/prompts/rendering", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "queryParameters": { - "fields": { - "equalTo": "fields" - }, - "include_fields": { - "equalTo": "true" - }, - "page": { - "equalTo": "1" - }, - "per_page": { - "equalTo": "1" - }, - "include_totals": { - "equalTo": "true" - }, - "prompt": { - "equalTo": "prompt" - }, - "screen": { - "equalTo": "screen" - }, - "rendering_mode": { - "equalTo": "advanced" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"configs\": [\n {\n \"tenant\": \"tenant\",\n \"prompt\": \"prompt\",\n \"screen\": \"screen\",\n \"rendering_mode\": \"advanced\",\n \"context_configuration\": [\n \"branding.settings\"\n ],\n \"default_head_tags_disabled\": true,\n \"use_page_template\": true,\n \"head_tags\": [\n {}\n ]\n }\n ],\n \"start\": 1.1,\n \"limit\": 1.1,\n \"total\": 1.1\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "f02cb8dc-cee0-4470-b69b-596e4d0653f9", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "d0abb404-e603-4992-9c65-19a5766a9462", - "name": "Update render settings for multiple screens - default", - "request": { - "urlPathTemplate": "/prompts/rendering", - "method": "PATCH", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"configs\": [\n {\n \"prompt\": \"login\",\n \"screen\": \"login\",\n \"rendering_mode\": \"advanced\",\n \"context_configuration\": [\n \"branding.settings\"\n ],\n \"default_head_tags_disabled\": true,\n \"use_page_template\": true,\n \"head_tags\": [\n {}\n ]\n }\n ]\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "d0abb404-e603-4992-9c65-19a5766a9462", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "b6f4a3c0-8032-487e-be5c-24b52aea56c3", - "name": "Get render settings for a screen - default", - "request": { - "urlPathTemplate": "/prompts/{prompt}/screen/{screen}/rendering", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "prompt": { - "equalTo": "login" - }, - "screen": { - "equalTo": "login" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"tenant\": \"tenant\",\n \"prompt\": \"prompt\",\n \"screen\": \"screen\",\n \"rendering_mode\": \"advanced\",\n \"context_configuration\": [\n \"branding.settings\"\n ],\n \"default_head_tags_disabled\": true,\n \"use_page_template\": true,\n \"head_tags\": [\n {\n \"tag\": \"tag\",\n \"attributes\": {\n \"key\": \"value\"\n },\n \"content\": \"content\"\n }\n ],\n \"filters\": {\n \"match_type\": \"includes_any\",\n \"clients\": [\n {\n \"id\": \"id\"\n }\n ],\n \"organizations\": [\n {\n \"id\": \"id\"\n }\n ],\n \"domains\": [\n {\n \"id\": \"id\"\n }\n ]\n }\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "b6f4a3c0-8032-487e-be5c-24b52aea56c3", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "248d2934-0ee0-434c-a9a5-df7501ef901c", - "name": "Update render settings for a screen - default", - "request": { - "urlPathTemplate": "/prompts/{prompt}/screen/{screen}/rendering", - "method": "PATCH", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "prompt": { - "equalTo": "login" - }, - "screen": { - "equalTo": "login" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"rendering_mode\": \"advanced\",\n \"context_configuration\": [\n \"branding.settings\"\n ],\n \"default_head_tags_disabled\": true,\n \"use_page_template\": true,\n \"head_tags\": [\n {\n \"tag\": \"tag\",\n \"attributes\": {\n \"key\": \"value\"\n },\n \"content\": \"content\"\n }\n ],\n \"filters\": {\n \"match_type\": \"includes_any\",\n \"clients\": [\n {\n \"id\": \"id\"\n }\n ],\n \"organizations\": [\n {\n \"id\": \"id\"\n }\n ],\n \"domains\": [\n {\n \"id\": \"id\"\n }\n ]\n }\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "248d2934-0ee0-434c-a9a5-df7501ef901c", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "1cd54de8-b246-4b0a-863b-f5fa0184e206", - "name": "Get custom text for a prompt - default", - "request": { - "urlPathTemplate": "/prompts/{prompt}/custom-text/{language}", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "prompt": { - "equalTo": "login" - }, - "language": { - "equalTo": "am" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"key\": \"value\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "1cd54de8-b246-4b0a-863b-f5fa0184e206", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "bff89979-efc7-413e-8aaf-a45d84f1793b", - "name": "Set custom text for a specific prompt - default", - "request": { - "urlPathTemplate": "/prompts/{prompt}/custom-text/{language}", - "method": "PUT", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "prompt": { - "equalTo": "login" - }, - "language": { - "equalTo": "am" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "bff89979-efc7-413e-8aaf-a45d84f1793b", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "e2ccf6be-be59-4e7f-90f9-dd24529c4981", - "name": "Get partials for a prompt - default", - "request": { - "urlPathTemplate": "/prompts/{prompt}/partials", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "prompt": { - "equalTo": "login" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"key\": \"value\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "e2ccf6be-be59-4e7f-90f9-dd24529c4981", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "c9517422-8a42-4204-8156-cda9b385f017", - "name": "Set partials for a prompt - default", - "request": { - "urlPathTemplate": "/prompts/{prompt}/partials", - "method": "PUT", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "prompt": { - "equalTo": "login" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "c9517422-8a42-4204-8156-cda9b385f017", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "cb391545-5076-433d-8b32-b19ed3d73939", - "name": "Get risk assessment settings - default", - "request": { - "urlPathTemplate": "/risk-assessments/settings", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"enabled\": true\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "cb391545-5076-433d-8b32-b19ed3d73939", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "8018c245-2f30-469f-992f-dc1668cccd75", - "name": "Update risk assessment settings - default", - "request": { - "urlPathTemplate": "/risk-assessments/settings", - "method": "PATCH", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"enabled\": true\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "8018c245-2f30-469f-992f-dc1668cccd75", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "b25bc47f-4ec8-4cd8-b419-5323232b8bb8", - "name": "Get new device assessor - default", - "request": { - "urlPathTemplate": "/risk-assessments/settings/new-device", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"remember_for\": 1\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "b25bc47f-4ec8-4cd8-b419-5323232b8bb8", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "07a0ab5c-d2e9-4e3d-899b-3f9a833c3813", - "name": "Update new device assessor - default", - "request": { - "urlPathTemplate": "/risk-assessments/settings/new-device", - "method": "PATCH", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"remember_for\": 1\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "07a0ab5c-d2e9-4e3d-899b-3f9a833c3813", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "25c64235-59ca-41e7-a5b7-7431295591d4", - "name": "Get a role's groups - default", - "request": { - "urlPathTemplate": "/roles/{id}/groups", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - }, - "queryParameters": { - "from": { - "equalTo": "from" - }, - "take": { - "equalTo": "1" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"groups\": [\n {\n \"id\": \"id\",\n \"name\": \"name\",\n \"external_id\": \"external_id\",\n \"connection_id\": \"connection_id\",\n \"tenant_name\": \"tenant_name\",\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n }\n ],\n \"next\": \"next\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "25c64235-59ca-41e7-a5b7-7431295591d4", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "1b19f0e9-b733-4cf4-99e5-7536043c1d8b", - "name": "Assign groups to a role - default", - "request": { - "urlPathTemplate": "/roles/{id}/groups", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "1b19f0e9-b733-4cf4-99e5-7536043c1d8b", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "e7233c54-c20d-4709-baea-47148eb72066", - "name": "Remove groups from a role - default", - "request": { - "urlPathTemplate": "/roles/{id}/groups", - "method": "DELETE", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "e7233c54-c20d-4709-baea-47148eb72066", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "bf10686c-2651-4040-8299-93e4bbc9834d", - "name": "Get permissions granted by role - default", - "request": { - "urlPathTemplate": "/roles/{id}/permissions", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - }, - "queryParameters": { - "per_page": { - "equalTo": "1" - }, - "page": { - "equalTo": "1" - }, - "include_totals": { - "equalTo": "true" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"start\": 1.1,\n \"limit\": 1.1,\n \"total\": 1.1,\n \"permissions\": [\n {\n \"resource_server_identifier\": \"resource_server_identifier\",\n \"permission_name\": \"permission_name\",\n \"resource_server_name\": \"resource_server_name\",\n \"description\": \"description\"\n }\n ]\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "bf10686c-2651-4040-8299-93e4bbc9834d", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "23e27895-e8da-4c4d-bec9-94df0205eb5c", - "name": "Associate permissions with a role - default", - "request": { - "urlPathTemplate": "/roles/{id}/permissions", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "23e27895-e8da-4c4d-bec9-94df0205eb5c", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "b94e86fc-05a4-43a3-a57f-ecd7e72ca50a", - "name": "Remove permissions from a role - default", - "request": { - "urlPathTemplate": "/roles/{id}/permissions", - "method": "DELETE", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "b94e86fc-05a4-43a3-a57f-ecd7e72ca50a", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "c87640fd-900b-400f-93f0-9ccb6702a609", - "name": "Get a role's users - default", - "request": { - "urlPathTemplate": "/roles/{id}/users", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - }, - "queryParameters": { - "include_totals": { - "equalTo": "true" - }, - "from": { - "equalTo": "from" - }, - "take": { - "equalTo": "1" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"next\": \"next\",\n \"users\": [\n {\n \"user_id\": \"user_id\",\n \"picture\": \"picture\",\n \"name\": \"name\",\n \"email\": \"email\"\n }\n ]\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "c87640fd-900b-400f-93f0-9ccb6702a609", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "3715bf7c-6aeb-4cbb-b3a0-57d86272ae3f", - "name": "Assign users to a role - default", - "request": { - "urlPathTemplate": "/roles/{id}/users", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "3715bf7c-6aeb-4cbb-b3a0-57d86272ae3f", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "f6173c4f-82c6-420c-a40d-889a713cb3e7", - "name": "Get custom text for a self-service profile - default", - "request": { - "urlPathTemplate": "/self-service-profiles/{id}/custom-text/{language}/{page}", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - }, - "language": { - "equalTo": "en" - }, - "page": { - "equalTo": "get-started" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"key\": \"value\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "f6173c4f-82c6-420c-a40d-889a713cb3e7", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "52a78cce-bea7-4f10-be84-5b860989a20e", - "name": "Set custom text for a self-service profile - default", - "request": { - "urlPathTemplate": "/self-service-profiles/{id}/custom-text/{language}/{page}", - "method": "PUT", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - }, - "language": { - "equalTo": "en" - }, - "page": { - "equalTo": "get-started" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"key\": \"value\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "52a78cce-bea7-4f10-be84-5b860989a20e", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "7e182693-df12-4840-b9bc-73e1de098435", - "name": "Create an access ticket to initiate the Self-Service Enterprise Configuration flow - default", - "request": { - "urlPathTemplate": "/self-service-profiles/{id}/sso-ticket", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 201, - "body": "{\n \"ticket\": \"ticket\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "7e182693-df12-4840-b9bc-73e1de098435", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "aafed087-998d-432b-8617-d217875bf59b", - "name": "Revoke a Self-Service Enterprise Configuration access ticket - default", - "request": { - "urlPathTemplate": "/self-service-profiles/{profileId}/sso-ticket/{id}/revoke", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "profileId": { - "equalTo": "profileId" - }, - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "aafed087-998d-432b-8617-d217875bf59b", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "12199f5c-a53a-4405-8a5f-a83867b89865", - "name": "Get tenant settings - default", - "request": { - "urlPathTemplate": "/tenants/settings", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "queryParameters": { - "fields": { - "equalTo": "fields" - }, - "include_fields": { - "equalTo": "true" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"change_password\": {\n \"enabled\": true,\n \"html\": \"html\"\n },\n \"guardian_mfa_page\": {\n \"enabled\": true,\n \"html\": \"html\"\n },\n \"default_audience\": \"default_audience\",\n \"default_directory\": \"default_directory\",\n \"error_page\": {\n \"html\": \"html\",\n \"show_log_link\": true,\n \"url\": \"url\"\n },\n \"device_flow\": {\n \"charset\": \"base20\",\n \"mask\": \"mask\"\n },\n \"default_token_quota\": {\n \"clients\": {\n \"client_credentials\": {}\n },\n \"organizations\": {\n \"client_credentials\": {}\n }\n },\n \"flags\": {\n \"change_pwd_flow_v1\": true,\n \"enable_apis_section\": true,\n \"disable_impersonation\": true,\n \"enable_client_connections\": true,\n \"enable_pipeline2\": true,\n \"allow_legacy_delegation_grant_types\": true,\n \"allow_legacy_ro_grant_types\": true,\n \"allow_legacy_tokeninfo_endpoint\": true,\n \"enable_legacy_profile\": true,\n \"enable_idtoken_api2\": true,\n \"enable_public_signup_user_exists_error\": true,\n \"enable_sso\": true,\n \"allow_changing_enable_sso\": true,\n \"disable_clickjack_protection_headers\": true,\n \"no_disclose_enterprise_connections\": true,\n \"enforce_client_authentication_on_passwordless_start\": true,\n \"enable_adfs_waad_email_verification\": true,\n \"revoke_refresh_token_grant\": true,\n \"dashboard_log_streams_next\": true,\n \"dashboard_insights_view\": true,\n \"disable_fields_map_fix\": true,\n \"mfa_show_factor_list_on_enrollment\": true,\n \"remove_alg_from_jwks\": true,\n \"improved_signup_bot_detection_in_classic\": true,\n \"local_resource_discovery\": true,\n \"enable_dynamic_client_registration\": true,\n \"disable_management_api_sms_obfuscation\": true,\n \"trust_azure_adfs_email_verified_connection_property\": true,\n \"custom_domains_provisioning\": true\n },\n \"friendly_name\": \"friendly_name\",\n \"picture_url\": \"picture_url\",\n \"support_email\": \"support_email\",\n \"support_url\": \"support_url\",\n \"allowed_logout_urls\": [\n \"allowed_logout_urls\"\n ],\n \"session_lifetime\": 1.1,\n \"idle_session_lifetime\": 1.1,\n \"ephemeral_session_lifetime\": 1.1,\n \"idle_ephemeral_session_lifetime\": 1.1,\n \"sandbox_version\": \"sandbox_version\",\n \"legacy_sandbox_version\": \"legacy_sandbox_version\",\n \"sandbox_versions_available\": [\n \"sandbox_versions_available\"\n ],\n \"default_redirection_uri\": \"default_redirection_uri\",\n \"enabled_locales\": [\n \"am\"\n ],\n \"access_token\": {\n \"claims_mapping\": {\n \"custom_claims\": [\n {\n \"name\": \"name\",\n \"expression\": \"expression\"\n }\n ]\n }\n },\n \"security_headers\": {\n \"content_security_policy\": {\n \"enabled\": true,\n \"policies\": [\n {}\n ]\n },\n \"x_xss_protection\": {\n \"enabled\": true,\n \"mode\": \"block\",\n \"report_uri\": \"report_uri\"\n }\n },\n \"session_cookie\": {\n \"mode\": \"persistent\"\n },\n \"sessions\": {\n \"oidc_logout_prompt_enabled\": true,\n \"anonymous\": {\n \"lifetime_in_minutes\": 1,\n \"activate_cookie\": true\n }\n },\n \"oidc_logout\": {\n \"rp_logout_end_session_endpoint_discovery\": true\n },\n \"allow_organization_name_in_authentication_api\": true,\n \"customize_mfa_in_postlogin_action\": true,\n \"acr_values_supported\": [\n \"acr_values_supported\"\n ],\n \"mtls\": {\n \"enable_endpoint_aliases\": true\n },\n \"pushed_authorization_requests_supported\": true,\n \"authorization_response_iss_parameter_supported\": true,\n \"dpop_strict_refresh_token_binding\": true,\n \"skip_non_verifiable_callback_uri_confirmation_prompt\": true,\n \"resource_parameter_profile\": \"audience\",\n \"client_id_metadata_document_supported\": true,\n \"client_id_metadata_document_dynamic_registration_supported\": true,\n \"phone_consolidated_experience\": true,\n \"enable_ai_guide\": true,\n \"include_session_metadata_in_tenant_logs\": true,\n \"dynamic_client_registration_security_mode\": \"strict\",\n \"country_codes\": {\n \"list\": [\n \"list\"\n ],\n \"mode\": \"allow\"\n }\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "12199f5c-a53a-4405-8a5f-a83867b89865", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "48a056e4-f2d6-45a2-9b0a-3b7d173c8597", - "name": "Update tenant settings - default", - "request": { - "urlPathTemplate": "/tenants/settings", - "method": "PATCH", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"change_password\": {\n \"enabled\": true,\n \"html\": \"html\"\n },\n \"guardian_mfa_page\": {\n \"enabled\": true,\n \"html\": \"html\"\n },\n \"default_audience\": \"default_audience\",\n \"default_directory\": \"default_directory\",\n \"error_page\": {\n \"html\": \"html\",\n \"show_log_link\": true,\n \"url\": \"url\"\n },\n \"device_flow\": {\n \"charset\": \"base20\",\n \"mask\": \"mask\"\n },\n \"default_token_quota\": {\n \"clients\": {\n \"client_credentials\": {}\n },\n \"organizations\": {\n \"client_credentials\": {}\n }\n },\n \"flags\": {\n \"change_pwd_flow_v1\": true,\n \"enable_apis_section\": true,\n \"disable_impersonation\": true,\n \"enable_client_connections\": true,\n \"enable_pipeline2\": true,\n \"allow_legacy_delegation_grant_types\": true,\n \"allow_legacy_ro_grant_types\": true,\n \"allow_legacy_tokeninfo_endpoint\": true,\n \"enable_legacy_profile\": true,\n \"enable_idtoken_api2\": true,\n \"enable_public_signup_user_exists_error\": true,\n \"enable_sso\": true,\n \"allow_changing_enable_sso\": true,\n \"disable_clickjack_protection_headers\": true,\n \"no_disclose_enterprise_connections\": true,\n \"enforce_client_authentication_on_passwordless_start\": true,\n \"enable_adfs_waad_email_verification\": true,\n \"revoke_refresh_token_grant\": true,\n \"dashboard_log_streams_next\": true,\n \"dashboard_insights_view\": true,\n \"disable_fields_map_fix\": true,\n \"mfa_show_factor_list_on_enrollment\": true,\n \"remove_alg_from_jwks\": true,\n \"improved_signup_bot_detection_in_classic\": true,\n \"local_resource_discovery\": true,\n \"enable_dynamic_client_registration\": true,\n \"disable_management_api_sms_obfuscation\": true,\n \"trust_azure_adfs_email_verified_connection_property\": true,\n \"custom_domains_provisioning\": true\n },\n \"friendly_name\": \"friendly_name\",\n \"picture_url\": \"picture_url\",\n \"support_email\": \"support_email\",\n \"support_url\": \"support_url\",\n \"allowed_logout_urls\": [\n \"allowed_logout_urls\"\n ],\n \"session_lifetime\": 1.1,\n \"idle_session_lifetime\": 1.1,\n \"ephemeral_session_lifetime\": 1.1,\n \"idle_ephemeral_session_lifetime\": 1.1,\n \"sandbox_version\": \"sandbox_version\",\n \"legacy_sandbox_version\": \"legacy_sandbox_version\",\n \"sandbox_versions_available\": [\n \"sandbox_versions_available\"\n ],\n \"default_redirection_uri\": \"default_redirection_uri\",\n \"enabled_locales\": [\n \"am\"\n ],\n \"access_token\": {\n \"claims_mapping\": {\n \"custom_claims\": [\n {\n \"name\": \"name\",\n \"expression\": \"expression\"\n }\n ]\n }\n },\n \"security_headers\": {\n \"content_security_policy\": {\n \"enabled\": true,\n \"policies\": [\n {}\n ]\n },\n \"x_xss_protection\": {\n \"enabled\": true,\n \"mode\": \"block\",\n \"report_uri\": \"report_uri\"\n }\n },\n \"session_cookie\": {\n \"mode\": \"persistent\"\n },\n \"sessions\": {\n \"oidc_logout_prompt_enabled\": true,\n \"anonymous\": {\n \"lifetime_in_minutes\": 1,\n \"activate_cookie\": true\n }\n },\n \"oidc_logout\": {\n \"rp_logout_end_session_endpoint_discovery\": true\n },\n \"allow_organization_name_in_authentication_api\": true,\n \"customize_mfa_in_postlogin_action\": true,\n \"acr_values_supported\": [\n \"acr_values_supported\"\n ],\n \"mtls\": {\n \"enable_endpoint_aliases\": true\n },\n \"pushed_authorization_requests_supported\": true,\n \"authorization_response_iss_parameter_supported\": true,\n \"dpop_strict_refresh_token_binding\": true,\n \"skip_non_verifiable_callback_uri_confirmation_prompt\": true,\n \"resource_parameter_profile\": \"audience\",\n \"client_id_metadata_document_supported\": true,\n \"client_id_metadata_document_dynamic_registration_supported\": true,\n \"phone_consolidated_experience\": true,\n \"enable_ai_guide\": true,\n \"include_session_metadata_in_tenant_logs\": true,\n \"dynamic_client_registration_security_mode\": \"strict\",\n \"country_codes\": {\n \"list\": [\n \"list\"\n ],\n \"mode\": \"allow\"\n }\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "48a056e4-f2d6-45a2-9b0a-3b7d173c8597", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "3d87eb15-86f8-42c9-b9bf-b1bdcb1d72d5", - "name": "Get a list of authentication methods - default", - "request": { - "urlPathTemplate": "/users/{id}/authentication-methods", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - }, - "queryParameters": { - "page": { - "equalTo": "1" - }, - "per_page": { - "equalTo": "1" - }, - "include_totals": { - "equalTo": "true" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"start\": 1.1,\n \"limit\": 1.1,\n \"total\": 1.1,\n \"authenticators\": [\n {\n \"id\": \"id\",\n \"type\": \"recovery-code\",\n \"confirmed\": true,\n \"name\": \"name\",\n \"authentication_methods\": [\n {}\n ],\n \"preferred_authentication_method\": \"voice\",\n \"link_id\": \"link_id\",\n \"phone_number\": \"phone_number\",\n \"email\": \"email\",\n \"key_id\": \"key_id\",\n \"public_key\": \"public_key\",\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"enrolled_at\": \"2024-01-15T09:30:00Z\",\n \"last_auth_at\": \"2024-01-15T09:30:00Z\",\n \"credential_device_type\": \"credential_device_type\",\n \"credential_backed_up\": true,\n \"identity_user_id\": \"identity_user_id\",\n \"user_agent\": \"user_agent\",\n \"user_handle\": \"user_handle\",\n \"transports\": [\n \"transports\"\n ],\n \"aaguid\": \"aaguid\",\n \"relying_party_identifier\": \"relying_party_identifier\"\n }\n ]\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "3d87eb15-86f8-42c9-b9bf-b1bdcb1d72d5", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "a786d309-f573-4722-9c1a-4336dcb2ca34", - "name": "Creates an authentication method for a given user - default", - "request": { - "urlPathTemplate": "/users/{id}/authentication-methods", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 201, - "body": "{\n \"id\": \"id\",\n \"type\": \"phone\",\n \"name\": \"name\",\n \"totp_secret\": \"totp_secret\",\n \"phone_number\": \"phone_number\",\n \"email\": \"email\",\n \"authentication_methods\": [\n {\n \"type\": \"totp\",\n \"id\": \"id\"\n }\n ],\n \"preferred_authentication_method\": \"voice\",\n \"key_id\": \"key_id\",\n \"public_key\": \"public_key\",\n \"aaguid\": \"aaguid\",\n \"relying_party_identifier\": \"relying_party_identifier\",\n \"credential_device_type\": \"single_device\",\n \"credential_backed_up\": true,\n \"identity_user_id\": \"identity_user_id\",\n \"user_agent\": \"user_agent\",\n \"user_handle\": \"user_handle\",\n \"transports\": [\n \"transports\"\n ],\n \"created_at\": \"2024-01-15T09:30:00Z\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "a786d309-f573-4722-9c1a-4336dcb2ca34", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "de90147a-4c08-43b0-9e64-3c7afab7fe48", - "name": "Update all authentication methods by replacing them with the given ones - default", - "request": { - "urlPathTemplate": "/users/{id}/authentication-methods", - "method": "PUT", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "[\n {\n \"id\": \"id\",\n \"type\": \"phone\",\n \"name\": \"name\",\n \"totp_secret\": \"totp_secret\",\n \"phone_number\": \"phone_number\",\n \"email\": \"email\",\n \"authentication_methods\": [\n {}\n ],\n \"preferred_authentication_method\": \"voice\",\n \"key_id\": \"key_id\",\n \"public_key\": \"public_key\",\n \"aaguid\": \"aaguid\",\n \"relying_party_identifier\": \"relying_party_identifier\",\n \"created_at\": \"2024-01-15T09:30:00Z\"\n }\n]", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "de90147a-4c08-43b0-9e64-3c7afab7fe48", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "0fd546c5-9e1f-4319-b6f2-9ee49c498250", - "name": "Delete all authentication methods for the given user - default", - "request": { - "urlPathTemplate": "/users/{id}/authentication-methods", - "method": "DELETE", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "0fd546c5-9e1f-4319-b6f2-9ee49c498250", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "a3ee9cc4-e4af-46b6-9fcc-371bb0db0e03", - "name": "Get an authentication method by ID - default", - "request": { - "urlPathTemplate": "/users/{id}/authentication-methods/{authentication_method_id}", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - }, - "authentication_method_id": { - "equalTo": "authentication_method_id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"id\": \"id\",\n \"type\": \"recovery-code\",\n \"confirmed\": true,\n \"name\": \"name\",\n \"authentication_methods\": [\n {\n \"type\": \"totp\",\n \"id\": \"id\"\n }\n ],\n \"preferred_authentication_method\": \"voice\",\n \"link_id\": \"link_id\",\n \"phone_number\": \"phone_number\",\n \"email\": \"email\",\n \"key_id\": \"key_id\",\n \"public_key\": \"public_key\",\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"enrolled_at\": \"2024-01-15T09:30:00Z\",\n \"last_auth_at\": \"2024-01-15T09:30:00Z\",\n \"credential_device_type\": \"credential_device_type\",\n \"credential_backed_up\": true,\n \"identity_user_id\": \"identity_user_id\",\n \"user_agent\": \"user_agent\",\n \"user_handle\": \"user_handle\",\n \"transports\": [\n \"transports\"\n ],\n \"aaguid\": \"aaguid\",\n \"relying_party_identifier\": \"relying_party_identifier\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "a3ee9cc4-e4af-46b6-9fcc-371bb0db0e03", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "add53361-2a24-44ea-93fe-fd31b9981468", - "name": "Delete an authentication method by ID - default", - "request": { - "urlPathTemplate": "/users/{id}/authentication-methods/{authentication_method_id}", - "method": "DELETE", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - }, - "authentication_method_id": { - "equalTo": "authentication_method_id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "add53361-2a24-44ea-93fe-fd31b9981468", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "1cfc820b-23ae-4b7b-8b10-d9e1c2825e51", - "name": "Update an authentication method - default", - "request": { - "urlPathTemplate": "/users/{id}/authentication-methods/{authentication_method_id}", - "method": "PATCH", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - }, - "authentication_method_id": { - "equalTo": "authentication_method_id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"id\": \"id\",\n \"type\": \"phone\",\n \"name\": \"name\",\n \"totp_secret\": \"totp_secret\",\n \"phone_number\": \"phone_number\",\n \"email\": \"email\",\n \"authentication_methods\": [\n {\n \"type\": \"totp\",\n \"id\": \"id\"\n }\n ],\n \"preferred_authentication_method\": \"voice\",\n \"key_id\": \"key_id\",\n \"public_key\": \"public_key\",\n \"aaguid\": \"aaguid\",\n \"relying_party_identifier\": \"relying_party_identifier\",\n \"confirmed\": true,\n \"created_at\": \"2024-01-15T09:30:00Z\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "1cfc820b-23ae-4b7b-8b10-d9e1c2825e51", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "59e259ee-3764-496e-9875-949a218233be", - "name": "Delete All Authenticators - default", - "request": { - "urlPathTemplate": "/users/{id}/authenticators", - "method": "DELETE", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "59e259ee-3764-496e-9875-949a218233be", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "0f4d4b1f-e7f1-42bd-8a14-64c2e7348b16", - "name": "Get a User's Connected Accounts - default", - "request": { - "urlPathTemplate": "/users/{id}/connected-accounts", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - }, - "queryParameters": { - "from": { - "equalTo": "from" - }, - "take": { - "equalTo": "1" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"connected_accounts\": [\n {\n \"id\": \"id\",\n \"connection\": \"connection\",\n \"connection_id\": \"connection_id\",\n \"strategy\": \"strategy\",\n \"access_type\": \"offline\",\n \"scopes\": [\n \"scopes\"\n ],\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"expires_at\": \"2024-01-15T09:30:00Z\",\n \"organization_id\": \"organization_id\"\n }\n ],\n \"next\": \"next\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "0f4d4b1f-e7f1-42bd-8a14-64c2e7348b16", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "7536c164-3568-4198-bcd2-c4f13e028cf6", - "name": "List the permissions assigned to a user directly or through roles or groups. - default", - "request": { - "urlPathTemplate": "/users/{id}/effective-permissions", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - }, - "queryParameters": { - "from": { - "equalTo": "from" - }, - "take": { - "equalTo": "1" - }, - "resource_server_identifier": { - "equalTo": "resource_server_identifier" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"permissions\": [\n {\n \"resource_server_identifier\": \"resource_server_identifier\",\n \"permission_name\": \"permission_name\",\n \"resource_server_name\": \"resource_server_name\",\n \"description\": \"description\",\n \"sources\": [\n \"direct\"\n ]\n }\n ],\n \"next\": \"next\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "7536c164-3568-4198-bcd2-c4f13e028cf6", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "ca15acda-19bd-4ac9-8810-10a77a44c083", - "name": "List the roles for a user with sources: directly assigned or through group membership. - default", - "request": { - "urlPathTemplate": "/users/{id}/effective-roles", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - }, - "queryParameters": { - "from": { - "equalTo": "from" - }, - "take": { - "equalTo": "1" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"roles\": [\n {\n \"id\": \"id\",\n \"name\": \"name\",\n \"description\": \"description\",\n \"sources\": [\n \"direct\"\n ]\n }\n ],\n \"next\": \"next\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "ca15acda-19bd-4ac9-8810-10a77a44c083", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "b12cc020-548e-4219-bf5f-7896e003fa92", - "name": "Get the First Confirmed Multi-factor Authentication (MFA) Enrollment - default", - "request": { - "urlPathTemplate": "/users/{id}/enrollments", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "[\n {\n \"id\": \"id\",\n \"status\": \"pending\",\n \"type\": \"type\",\n \"name\": \"name\",\n \"identifier\": \"identifier\",\n \"phone_number\": \"phone_number\",\n \"auth_method\": \"authenticator\",\n \"enrolled_at\": \"2024-01-15T09:30:00Z\",\n \"last_auth\": \"2024-01-15T09:30:00Z\"\n }\n]", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "b12cc020-548e-4219-bf5f-7896e003fa92", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "10f1d36a-08fb-4d1c-9ae0-7e3a75f996ee", - "name": "Get user's groups - default", - "request": { - "urlPathTemplate": "/users/{id}/groups", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - }, - "queryParameters": { - "fields": { - "equalTo": "fields" - }, - "include_fields": { - "equalTo": "true" - }, - "include_totals": { - "equalTo": "true" - }, - "from": { - "equalTo": "from" - }, - "take": { - "equalTo": "1" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"groups\": [\n {\n \"id\": \"id\",\n \"name\": \"name\",\n \"external_id\": \"external_id\",\n \"connection_id\": \"connection_id\",\n \"tenant_name\": \"tenant_name\",\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\",\n \"membership_created_at\": \"2024-01-15T09:30:00Z\"\n }\n ],\n \"next\": \"next\",\n \"start\": 1.1,\n \"limit\": 1.1,\n \"total\": 1.1\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "10f1d36a-08fb-4d1c-9ae0-7e3a75f996ee", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "0333210f-005f-4731-9928-1487697620ba", - "name": "Link a User Account - default", - "request": { - "urlPathTemplate": "/users/{id}/identities", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 201, - "body": "[\n {\n \"connection\": \"connection\",\n \"user_id\": \"user_id\",\n \"provider\": \"provider\",\n \"profileData\": {\n \"email\": \"email\",\n \"email_verified\": true,\n \"name\": \"name\",\n \"username\": \"username\",\n \"given_name\": \"given_name\",\n \"phone_number\": \"phone_number\",\n \"phone_verified\": true,\n \"family_name\": \"family_name\"\n },\n \"isSocial\": true,\n \"access_token\": \"access_token\",\n \"access_token_secret\": \"access_token_secret\",\n \"refresh_token\": \"refresh_token\"\n }\n]", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "0333210f-005f-4731-9928-1487697620ba", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "2dc23165-ddbe-4c7a-8f82-ed8cb6afed3c", - "name": "Unlink a User Identity - default", - "request": { - "urlPathTemplate": "/users/{id}/identities/{provider}/{user_id}", - "method": "DELETE", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - }, - "provider": { - "equalTo": "ad" - }, - "user_id": { - "equalTo": "user_id" - } - } - }, - "response": { - "status": 200, - "body": "[\n {\n \"connection\": \"connection\",\n \"user_id\": \"user_id\",\n \"provider\": \"provider\",\n \"isSocial\": true,\n \"access_token\": \"access_token\",\n \"access_token_secret\": \"access_token_secret\",\n \"refresh_token\": \"refresh_token\",\n \"profileData\": {\n \"email\": \"email\",\n \"email_verified\": true,\n \"name\": \"name\",\n \"username\": \"username\",\n \"given_name\": \"given_name\",\n \"phone_number\": \"phone_number\",\n \"phone_verified\": true,\n \"family_name\": \"family_name\"\n }\n }\n]", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "2dc23165-ddbe-4c7a-8f82-ed8cb6afed3c", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "bb12a5f2-c0fc-41b9-874a-4d0b151ca508", - "name": "Get user's log events - default", - "request": { - "urlPathTemplate": "/users/{id}/logs", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - }, - "queryParameters": { - "page": { - "equalTo": "1" - }, - "per_page": { - "equalTo": "1" - }, - "sort": { - "equalTo": "sort" - }, - "include_totals": { - "equalTo": "true" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"start\": 1.1,\n \"limit\": 1.1,\n \"length\": 1.1,\n \"total\": 1.1,\n \"logs\": [\n {\n \"date\": \"date\",\n \"type\": \"type\",\n \"description\": \"description\",\n \"connection\": \"connection\",\n \"connection_id\": \"connection_id\",\n \"client_id\": \"client_id\",\n \"client_name\": \"client_name\",\n \"ip\": \"ip\",\n \"hostname\": \"hostname\",\n \"user_id\": \"user_id\",\n \"user_name\": \"user_name\",\n \"audience\": \"audience\",\n \"scope\": \"scope\",\n \"strategy\": \"strategy\",\n \"strategy_type\": \"strategy_type\",\n \"log_id\": \"log_id\",\n \"isMobile\": true,\n \"details\": {\n \"key\": \"value\"\n },\n \"user_agent\": \"user_agent\"\n }\n ]\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "bb12a5f2-c0fc-41b9-874a-4d0b151ca508", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "b4ab10fb-07fa-43d6-97f0-2f777308b563", - "name": "Invalidate All Remembered Browsers for Multi-factor Authentication (MFA) - default", - "request": { - "urlPathTemplate": "/users/{id}/multifactor/actions/invalidate-remember-browser", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "b4ab10fb-07fa-43d6-97f0-2f777308b563", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "86847e95-c858-46df-b005-c0f0392ae95c", - "name": "Delete a User's Multi-factor Provider - default", - "request": { - "urlPathTemplate": "/users/{id}/multifactor/{provider}", - "method": "DELETE", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - }, - "provider": { - "equalTo": "duo" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "86847e95-c858-46df-b005-c0f0392ae95c", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "3a825384-1ed6-44a5-9a15-b2be0438a1d6", - "name": "List user's organizations - default", - "request": { - "urlPathTemplate": "/users/{id}/organizations", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - }, - "queryParameters": { - "page": { - "equalTo": "1" - }, - "per_page": { - "equalTo": "1" - }, - "include_totals": { - "equalTo": "true" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"start\": 1.1,\n \"limit\": 1.1,\n \"total\": 1.1,\n \"organizations\": [\n {\n \"id\": \"id\",\n \"name\": \"name\",\n \"display_name\": \"display_name\",\n \"token_quota\": {\n \"client_credentials\": {}\n },\n \"third_party_client_access\": \"block\",\n \"is_app_entitlement_active\": true\n }\n ]\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "3a825384-1ed6-44a5-9a15-b2be0438a1d6", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "58cc0983-45ee-47d2-8a5c-b6e215c83942", - "name": "Get a User's Permissions - default", - "request": { - "urlPathTemplate": "/users/{id}/permissions", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - }, - "queryParameters": { - "per_page": { - "equalTo": "1" - }, - "page": { - "equalTo": "1" - }, - "include_totals": { - "equalTo": "true" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"start\": 1.1,\n \"limit\": 1.1,\n \"total\": 1.1,\n \"permissions\": [\n {\n \"resource_server_identifier\": \"resource_server_identifier\",\n \"permission_name\": \"permission_name\",\n \"resource_server_name\": \"resource_server_name\",\n \"description\": \"description\"\n }\n ]\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "58cc0983-45ee-47d2-8a5c-b6e215c83942", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "812e845d-b47e-41b3-ad6b-edf602577cc4", - "name": "Assign Permissions to a User - default", - "request": { - "urlPathTemplate": "/users/{id}/permissions", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "812e845d-b47e-41b3-ad6b-edf602577cc4", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "6829e581-25db-4d58-99ad-1fd675c362f1", - "name": "Remove Permissions from a User - default", - "request": { - "urlPathTemplate": "/users/{id}/permissions", - "method": "DELETE", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "6829e581-25db-4d58-99ad-1fd675c362f1", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "0bf944f2-8c7e-474c-82eb-9e21bb625219", - "name": "Clear risk assessment assessors for a specific user - default", - "request": { - "urlPathTemplate": "/users/{id}/risk-assessments/clear", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "0bf944f2-8c7e-474c-82eb-9e21bb625219", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "96a14af0-6c21-49ec-af86-512e672dd464", - "name": "Get a user's roles - default", - "request": { - "urlPathTemplate": "/users/{id}/roles", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - }, - "queryParameters": { - "per_page": { - "equalTo": "1" - }, - "page": { - "equalTo": "1" - }, - "include_totals": { - "equalTo": "true" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"start\": 1.1,\n \"limit\": 1.1,\n \"total\": 1.1,\n \"roles\": [\n {\n \"id\": \"id\",\n \"name\": \"name\",\n \"description\": \"description\",\n \"type\": \"tenant\",\n \"owner_id\": \"owner_id\"\n }\n ]\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "96a14af0-6c21-49ec-af86-512e672dd464", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "fcc9270b-77f1-4374-b64e-ce2381665996", - "name": "Assign roles to a user - default", - "request": { - "urlPathTemplate": "/users/{id}/roles", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "fcc9270b-77f1-4374-b64e-ce2381665996", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "45b3a04d-67d0-4781-84c6-686818e8cc76", - "name": "Remove roles from a user - default", - "request": { - "urlPathTemplate": "/users/{id}/roles", - "method": "DELETE", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "45b3a04d-67d0-4781-84c6-686818e8cc76", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "28b46c14-5cc3-42ad-8808-0072fb3249ba", - "name": "Get refresh tokens for a user - default", - "request": { - "urlPathTemplate": "/users/{user_id}/refresh-tokens", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "user_id": { - "equalTo": "user_id" - } - }, - "queryParameters": { - "include_totals": { - "equalTo": "true" - }, - "from": { - "equalTo": "from" - }, - "take": { - "equalTo": "1" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"tokens\": [\n {\n \"id\": \"id\",\n \"user_id\": \"user_id\",\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"idle_expires_at\": \"2024-01-15T09:30:00Z\",\n \"expires_at\": \"2024-01-15T09:30:00Z\",\n \"client_id\": \"client_id\",\n \"session_id\": \"session_id\",\n \"rotating\": true,\n \"resource_servers\": [\n {}\n ],\n \"refresh_token_metadata\": {\n \"key\": \"value\"\n },\n \"last_exchanged_at\": \"2024-01-15T09:30:00Z\"\n }\n ],\n \"next\": \"next\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "28b46c14-5cc3-42ad-8808-0072fb3249ba", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "1f25d8aa-36f6-4ba8-9865-27c99731105f", - "name": "Delete refresh tokens for a user - default", - "request": { - "urlPathTemplate": "/users/{user_id}/refresh-tokens", - "method": "DELETE", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "user_id": { - "equalTo": "user_id" - } - } - }, - "response": { - "status": 200, - "body": "\"\"", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "1f25d8aa-36f6-4ba8-9865-27c99731105f", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "dd1c4072-54e4-4dbc-82d9-ca1c27916f1d", - "name": "Get sessions for user - default", - "request": { - "urlPathTemplate": "/users/{user_id}/sessions", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "user_id": { - "equalTo": "user_id" - } - }, - "queryParameters": { - "include_totals": { - "equalTo": "true" - }, - "from": { - "equalTo": "from" - }, - "take": { - "equalTo": "1" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"sessions\": [\n {\n \"id\": \"id\",\n \"user_id\": \"user_id\",\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\",\n \"authenticated_at\": \"2024-01-15T09:30:00Z\",\n \"idle_expires_at\": \"2024-01-15T09:30:00Z\",\n \"expires_at\": \"2024-01-15T09:30:00Z\",\n \"last_interacted_at\": \"2024-01-15T09:30:00Z\",\n \"clients\": [\n {}\n ],\n \"session_metadata\": {\n \"key\": \"value\"\n },\n \"actor\": {\n \"sub\": \"sub\"\n }\n }\n ],\n \"next\": \"next\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "dd1c4072-54e4-4dbc-82d9-ca1c27916f1d", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "0691684c-d746-4411-aa18-4de52a90a463", - "name": "Delete sessions for user - default", - "request": { - "urlPathTemplate": "/users/{user_id}/sessions", - "method": "DELETE", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "user_id": { - "equalTo": "user_id" - } - } + "urlPathTemplate": "/send", + "method": "POST" }, "response": { "status": 200, @@ -18061,211 +14,7 @@ "Content-Type": "application/json" } }, - "uuid": "0691684c-d746-4411-aa18-4de52a90a463", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "4e6af123-91a7-4267-8471-a054fc227366", - "name": "List the roles which grant the user a given permission (whether directly or through groups). - default", - "request": { - "urlPathTemplate": "/users/{id}/effective-permissions/sources/effective-roles", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - }, - "queryParameters": { - "from": { - "equalTo": "from" - }, - "take": { - "equalTo": "1" - }, - "resource_server_identifier": { - "equalTo": "resource_server_identifier" - }, - "permission_name": { - "equalTo": "permission_name" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"roles\": [\n {\n \"id\": \"id\",\n \"name\": \"name\",\n \"description\": \"description\",\n \"type\": \"tenant\",\n \"owner_id\": \"owner_id\",\n \"sources\": [\n \"direct\"\n ]\n }\n ],\n \"next\": \"next\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "4e6af123-91a7-4267-8471-a054fc227366", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "6d4f49b1-9731-4224-af65-0673be60a0c1", - "name": "Get a user's role source groups - default", - "request": { - "urlPathTemplate": "/users/{id}/effective-roles/sources/groups", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - }, - "queryParameters": { - "role_id": { - "equalTo": "role_id" - }, - "from": { - "equalTo": "from" - }, - "take": { - "equalTo": "1" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"groups\": [\n {\n \"id\": \"id\",\n \"name\": \"name\",\n \"external_id\": \"external_id\",\n \"connection_id\": \"connection_id\",\n \"tenant_name\": \"tenant_name\",\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n }\n ],\n \"next\": \"next\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "6d4f49b1-9731-4224-af65-0673be60a0c1", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "e370a2a2-5b39-4ba1-ac2b-4b5be9ef38f2", - "name": "List verifiable credential templates for a tenant. - default", - "request": { - "urlPathTemplate": "/verifiable-credentials/verification/templates", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "queryParameters": { - "from": { - "equalTo": "from" - }, - "take": { - "equalTo": "1" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"next\": \"next\",\n \"templates\": [\n {\n \"id\": \"id\",\n \"name\": \"name\",\n \"type\": \"type\",\n \"dialect\": \"dialect\",\n \"presentation\": {\n \"org.iso.18013.5.1.mDL\": {\n \"org.iso.18013.5.1\": {}\n }\n },\n \"custom_certificate_authority\": \"custom_certificate_authority\",\n \"well_known_trusted_issuers\": \"well_known_trusted_issuers\",\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n }\n ]\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "e370a2a2-5b39-4ba1-ac2b-4b5be9ef38f2", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - }, - "postServeActions": [] - }, - { - "id": "65b53386-72a6-4ac3-afba-c41377b10e93", - "name": "Create a verifiable credential template. - default", - "request": { - "urlPathTemplate": "/verifiable-credentials/verification/templates", - "method": "POST", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - } - }, - "response": { - "status": 201, - "body": "{\n \"id\": \"id\",\n \"name\": \"name\",\n \"type\": \"type\",\n \"dialect\": \"dialect\",\n \"presentation\": {\n \"org.iso.18013.5.1.mDL\": {\n \"org.iso.18013.5.1\": {}\n }\n },\n \"custom_certificate_authority\": \"custom_certificate_authority\",\n \"well_known_trusted_issuers\": \"well_known_trusted_issuers\",\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "65b53386-72a6-4ac3-afba-c41377b10e93", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "bac80375-0249-4659-a3d4-3cad535b4a20", - "name": "Get a verifiable credential template by ID. - default", - "request": { - "urlPathTemplate": "/verifiable-credentials/verification/templates/{id}", - "method": "GET", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"id\": \"id\",\n \"name\": \"name\",\n \"type\": \"type\",\n \"dialect\": \"dialect\",\n \"presentation\": {\n \"org.iso.18013.5.1.mDL\": {\n \"org.iso.18013.5.1\": {}\n }\n },\n \"custom_certificate_authority\": \"custom_certificate_authority\",\n \"well_known_trusted_issuers\": \"well_known_trusted_issuers\",\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "bac80375-0249-4659-a3d4-3cad535b4a20", + "uuid": "af6e371e-279a-42c5-8816-1349477935f3", "persistent": true, "priority": 3, "metadata": { @@ -18278,21 +27,11 @@ } }, { - "id": "ca7ff9f3-642c-4fae-92b4-0e4e95f34d4c", - "name": "Delete a verifiable credential template by ID. - default", + "id": "b262a865-fae8-443b-906b-7146b05ea20f", + "name": "Control, same fields modelled with allOf - default", "request": { - "urlPathTemplate": "/verifiable-credentials/verification/templates/{id}", - "method": "DELETE", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } + "urlPathTemplate": "/send-allof", + "method": "POST" }, "response": { "status": 200, @@ -18301,43 +40,7 @@ "Content-Type": "application/json" } }, - "uuid": "ca7ff9f3-642c-4fae-92b4-0e4e95f34d4c", - "persistent": true, - "priority": 3, - "metadata": { - "mocklab": { - "created": { - "at": "2020-01-01T00:00:00.000Z", - "via": "SYSTEM" - } - } - } - }, - { - "id": "9934fba5-6f64-4698-89dd-6123d0878561", - "name": "Update a verifiable credential template by ID. - default", - "request": { - "urlPathTemplate": "/verifiable-credentials/verification/templates/{id}", - "method": "PATCH", - "headers": { - "Authorization": { - "matches": "Bearer .+" - } - }, - "pathParameters": { - "id": { - "equalTo": "id" - } - } - }, - "response": { - "status": 200, - "body": "{\n \"id\": \"id\",\n \"name\": \"name\",\n \"type\": \"type\",\n \"dialect\": \"dialect\",\n \"presentation\": {\n \"org.iso.18013.5.1.mDL\": {\n \"org.iso.18013.5.1\": {}\n }\n },\n \"custom_certificate_authority\": \"custom_certificate_authority\",\n \"well_known_trusted_issuers\": \"well_known_trusted_issuers\",\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n}", - "headers": { - "Content-Type": "application/json" - } - }, - "uuid": "9934fba5-6f64-4698-89dd-6123d0878561", + "uuid": "b262a865-fae8-443b-906b-7146b05ea20f", "persistent": true, "priority": 3, "metadata": { @@ -18351,6 +54,6 @@ } ], "meta": { - "total": 490 + "total": 2 } } \ No newline at end of file From aaa191a46fc016ba67945b49e88390a7a4638921 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Wed, 2 Dec 2026 11:46:32 +0000 Subject: [PATCH 2/2] [fern-replay] Applied customizations Patches applied (1): - patch-3bac717a: Restore Auth0 telemetry headers and keep UPGRADING.md (#900) --- .fern/replay.lock | 31 ++++++++------------- src/auth0/management/core/client_wrapper.py | 16 +++++++++++ 2 files changed, 28 insertions(+), 19 deletions(-) diff --git a/.fern/replay.lock b/.fern/replay.lock index 7c705d13..bd77f0d9 100644 --- a/.fern/replay.lock +++ b/.fern/replay.lock @@ -30,19 +30,25 @@ generations: cli_version: unknown generator_versions: fernapi/fern-python-sdk: 5.26.0 -current_generation: 89e85b537368a6c746f34041680bd4f7fa3cfb5a + - commit_sha: 44b48ff6a5f9d1ab9ecc4c4dd2b5c62bcecafe7f + tree_hash: 174e3ee4579f57cf83f21f72f332264fa13023c5 + timestamp: 2026-12-02T11:46:27.660Z + cli_version: unknown + generator_versions: + fernapi/fern-python-sdk: 5.26.0 +current_generation: 44b48ff6a5f9d1ab9ecc4c4dd2b5c62bcecafe7f patches: - id: patch-3bac717a - content_hash: sha256:f4ad3ba43b0430fa3dfb54bfcf588cb697efe8185eb30350f9955849f831083f + content_hash: sha256:e881a84480ee7d6831fe330b312e6eae9f152dad7af62c87f627a86a73ae599f original_commit: 3bac717acae703868197afb75fc26d296957a4fd original_message: Restore Auth0 telemetry headers and keep UPGRADING.md (#900) original_author: Kunal Dawar <35455566+developerkunal@users.noreply.github.com> - base_generation: 89e85b537368a6c746f34041680bd4f7fa3cfb5a + base_generation: 44b48ff6a5f9d1ab9ecc4c4dd2b5c62bcecafe7f files: - src/auth0/management/core/client_wrapper.py patch_content: | diff --git a/src/auth0/management/core/client_wrapper.py b/src/auth0/management/core/client_wrapper.py - index abce2c81..fd991f52 100644 + index 88629824..cb014b66 100644 --- a/src/auth0/management/core/client_wrapper.py +++ b/src/auth0/management/core/client_wrapper.py @@ -1,6 +1,11 @@ @@ -57,7 +63,7 @@ patches: import httpx from .http_client import AsyncHttpClient, HttpClient - @@ -30,7 +35,18 @@ class BaseClientWrapper: + @@ -28,7 +33,18 @@ class BaseClientWrapper: self._logging = logging def get_headers(self) -> typing.Dict[str, str]: @@ -75,7 +81,7 @@ patches: + "Auth0-Client": base64.b64encode(auth0_client).decode(), **(self.get_custom_headers() or {}), } - headers["Authorization"] = f"Bearer {self._get_token()}" + return headers theirs_snapshot: src/auth0/management/core/client_wrapper.py: | # This file was auto-generated by Fern from our API Definition. @@ -96,7 +102,6 @@ patches: def __init__( self, *, - token: typing.Union[str, typing.Callable[[], str]], headers: typing.Optional[typing.Dict[str, str]] = None, base_url: str, timeout: typing.Optional[float] = None, @@ -105,7 +110,6 @@ patches: max_stream_reconnection_attempts: typing.Optional[int] = None, logging: typing.Optional[typing.Union[LogConfig, Logger]] = None, ): - self._token = token self._headers = headers self._base_url = base_url self._timeout = timeout @@ -129,15 +133,8 @@ patches: "Auth0-Client": base64.b64encode(auth0_client).decode(), **(self.get_custom_headers() or {}), } - headers["Authorization"] = f"Bearer {self._get_token()}" return headers - def _get_token(self) -> str: - if isinstance(self._token, str): - return self._token - else: - return self._token() - def get_custom_headers(self) -> typing.Optional[typing.Dict[str, str]]: return self._headers @@ -161,7 +158,6 @@ patches: def __init__( self, *, - token: typing.Union[str, typing.Callable[[], str]], headers: typing.Optional[typing.Dict[str, str]] = None, base_url: str, timeout: typing.Optional[float] = None, @@ -172,7 +168,6 @@ patches: httpx_client: httpx.Client, ): super().__init__( - token=token, headers=headers, base_url=base_url, timeout=timeout, @@ -195,7 +190,6 @@ patches: def __init__( self, *, - token: typing.Union[str, typing.Callable[[], str]], headers: typing.Optional[typing.Dict[str, str]] = None, base_url: str, timeout: typing.Optional[float] = None, @@ -207,7 +201,6 @@ patches: httpx_client: httpx.AsyncClient, ): super().__init__( - token=token, headers=headers, base_url=base_url, timeout=timeout, diff --git a/src/auth0/management/core/client_wrapper.py b/src/auth0/management/core/client_wrapper.py index 88629824..cb014b66 100644 --- a/src/auth0/management/core/client_wrapper.py +++ b/src/auth0/management/core/client_wrapper.py @@ -1,6 +1,11 @@ # This file was auto-generated by Fern from our API Definition. +# Modified by Auth0 to use Auth0 telemetry format with dynamic versioning +import base64 +import platform +import sys import typing +from json import dumps import httpx from .http_client import AsyncHttpClient, HttpClient @@ -28,7 +33,18 @@ def __init__( self._logging = logging def get_headers(self) -> typing.Dict[str, str]: + py_version = platform.python_version() + version = sys.modules["auth0"].__version__ + + auth0_client = dumps({ + "name": "auth0-python", + "version": version, + "env": {"python": py_version} + }).encode("utf-8") + headers: typing.Dict[str, str] = { + "User-Agent": f"Python/{py_version}", + "Auth0-Client": base64.b64encode(auth0_client).decode(), **(self.get_custom_headers() or {}), } return headers